Downloads · 30 days
0
DarkSting/qwen2.5-math-mcq-lora
qwen2.5-math-mcq-lora is a text generation model from DarkSting. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model generates math MCQs given a topic and difficulty.
Downloads · 30 days
0
Access
Public
Updated Dec 29, 2025
Repo size
5.6 GB
Likes
0
Public
Click a slice to open those files.
.safetensors5.6 GB · 100%
From the Hugging Face model README
This model generates math MCQs given a topic and difficulty.
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))