Views
No views yet
| Metric | Score |
|---|---|
| Accuracy (Pass@1) | 5.0% |
| Pass@k | 15.0% |
| Majority Voting | 5.0% |
| Consistency | 52.5% |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("2796gauravc/qwen2.5-0.5b-math")
4tokenizer = AutoTokenizer.from_pretrained("2796gauravc/qwen2.5-0.5b-math")
5
6question = "Janet has 10 apples. She gives 3 to her friend. How many does she have left?"
7prompt = f"<|im_start|>user\n{question}<|im_end|>\n<|im_start|>assistant\n"
8
9inputs = tokenizer(prompt, return_tensors="pt")
10outputs = model.generate(**inputs, max_new_tokens=256)
11print(tokenizer.decode(outputs[0]))1@misc{qwen2.5_0.5b_math},
2 author = {Gaurav Chaudhary},
3 title = {qwen2.5-0.5b-math: Small Model Math Reasoning},
4 year = {2026},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/2796gauravc/qwen2.5-0.5b-math}
7}