Qwen2.5 Math MCQ Generator
This model generates math MCQs given a topic and difficulty.
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model = AutoModelForCausalLM.from_pretrained(
"DarkSting/qwen2.5-math-mcq-lora",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(
"DarkSting/qwen2.5-math-mcq-lora"
)
prompt = """### INSTRUCTION
Generate ONE math MCQ.
### METADATA
Topic: fractions
Difficulty: hard
### OUTPUT
"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=300)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Model tree for DarkSting/qwen2.5-math-mcq-lora
Base model
Qwen/Qwen2.5-1.5B Finetuned
Qwen/Qwen2.5-Math-1.5B Finetuned
Qwen/Qwen2.5-Math-1.5B-Instruct