A fine-tuned SAT tutor built on
Qwen/Qwen2.5-7B-Instruct
with QLoRA (4-bit). It answers SAT Math and Reading & Writing questions with step-by-step explanations, and can also give hint-only nudges (first step only) so the student finishes the problem themselves.
"Parsed" = responses ending in the
Answer: X
marker the tutor was trained to emit. The base model scores 0 on this grader because it never learned the marker format — the fine-tune teaches the tutor format and the reasoning holds up.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel
import torch
base = "Qwen/Qwen2.5-7B-Instruct"
tok = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.float16)
model = AutoModelForCausalLM.from_pretrained(
base, quantization_config=bnb, device_map="auto", trust_remote_code=True)
model = PeftModel.from_pretrained(model, "agk4444/sat-tutor-qwen2.5-7b")
model.eval()
msgs = [{"role": "user", "content":
"SAT Math practice question:\n\nIf 3x + 5 = 20, what is x?\nA) 3 B) 5 C) 7 D) 15"}]
prompt = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
inp = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(inp["input_ids"], attention_mask=inp.get("attention_mask"),
max_new_tokens=400, do_sample=False,
pad_token_id=tok.eos_token_id)
print(tok.decode(out[0][inp["input_ids"].shape[1]:], skip_special_tokens=True))
Runs of agk4444 sat-tutor-qwen2.5-7b on huggingface.co
42
Total runs
0
24-hour runs
0
3-day runs
2
7-day runs
42
30-day runs
More Information About sat-tutor-qwen2.5-7b huggingface.co Model
sat-tutor-qwen2.5-7b huggingface.co is an AI model on huggingface.co that provides sat-tutor-qwen2.5-7b's model effect (), which can be used instantly with this agk4444 sat-tutor-qwen2.5-7b model. huggingface.co supports a free trial of the sat-tutor-qwen2.5-7b model, and also provides paid use of the sat-tutor-qwen2.5-7b. Support call sat-tutor-qwen2.5-7b model through api, including Node.js, Python, http.
sat-tutor-qwen2.5-7b huggingface.co is an online trial and call api platform, which integrates sat-tutor-qwen2.5-7b's modeling effects, including api services, and provides a free online trial of sat-tutor-qwen2.5-7b, you can try sat-tutor-qwen2.5-7b online for free by clicking the link below.
agk4444 sat-tutor-qwen2.5-7b online free url in huggingface.co:
sat-tutor-qwen2.5-7b is an open source model from GitHub that offers a free installation service, and any user can find sat-tutor-qwen2.5-7b on GitHub to install. At the same time, huggingface.co provides the effect of sat-tutor-qwen2.5-7b install, users can directly use sat-tutor-qwen2.5-7b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
sat-tutor-qwen2.5-7b install url in huggingface.co: