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))
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for DarkSting/qwen2.5-math-mcq-lora

Finetuned
(90)
this model