Views
No views yet
model.safetensors, tokenizer và các file cấu hình). Đây là model causal language model cho suy luận toán học bằng tiếng Anh.abs(weight) * abs(gradient).calibration/s1k.json: 1.000 mẫu, mỗi record gồm question và cot_solution. Đây là biến thể ngắn/task-oriented.calibration/s1k-1.1.json: 630 mẫu, mỗi record gồm question, thinking và cot_solution; chỉ giữ các record có deepseek_grade == "Yes". Đây là biến thể reasoning/distillation.question_cot. Khi chạy sensitivity analysis, pipeline lấy 100 mẫu đầu tiên của file calibration tương ứng.Avg Acc là trung bình các dataset có kết quả; dấu — nghĩa là không có kết quả trong bảng.| Model / phương pháp | college_math | gsm8k | math | minerva_math | olympiadbench | Avg Acc (%) | Avg Tokens |
|---|---|---|---|---|---|---|---|
| Qwen2.5-Math-1.5B | 23.5 | 46.5 | 70.0 | 11.5 | 11.5 | 32.6 | 505 |
| DeepSeek-R1-Distill-Qwen-1.5B | 64.0 | 76.0 | 70.5 | 19.0 | 15.0 | 48.9 | 1383 |
| aim | 17.1 | 21.7 | 17.3 | 4.8 | 11.7 | 14.5 | 3960 |
| average | 11.1 | 28.2 | 13.5 | 6.6 | 4.7 | 12.8 | 3724 |
| Sens (model này) | 62.9 | 81.4 | 81.0 | 22.4 | 35.0 | 56.5 | 691 |
| task arithmetic | 56.5 | 74.1 | 66.9 | 18.4 | 27.7 | 48.7 | 1336 |
| TIES | 50.9 | 75.9 | 76.2 | 21.0 | 33.6 | 51.5 | 907 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "quangdung/Qwen2.5-Math-Distill-1.5b-Sens"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(
6 model_id,
7 torch_dtype="auto",
8 device_map="auto",
9)
10
11prompt = "Solve this problem step by step: What is 2 + 2?"
12inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
13outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
14print(tokenizer.decode(outputs[0], skip_special_tokens=True))