Spectral Surgery β Math
Collection
Math reasoning adapters and Spectral Surgery ablations on MetaMathQA-50K. β’ 12 items β’ Updated
How to use tianzl66/Qwen3-8B-MetaMathQA-50K-LoRA with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("/root/autodl-tmp/Qwen3-8B")
model = PeftModel.from_pretrained(base_model, "tianzl66/Qwen3-8B-MetaMathQA-50K-LoRA")This repository contains the Qwen3-8B LoRA adapter trained on MetaMathQA-50K.
Qwen/Qwen3-8B
enable_thinking=False)Evaluation on GSM8K (test split, 1319 examples).
| Model | GSM8K |
|---|---|
| Base | 86.66% (1143/1319) |
| LoRA | 84.00% (1108/1319) |
| HNS 4+1, all modules | 88.40% (1166/1319) |
| HNS 8+2, all modules | 88.02% (1161/1319) |
Settings: Qwen3 non-thinking chat template (enable_thinking=False), greedy decoding,
max_new_tokens=2048, vLLM backend, FLASH_ATTENTION, seed 42.
The base score is unchanged at max_new_tokens=4096 (86.66%, 1143/1319), confirming the comparison is not truncation-limited.
With max_new_tokens=256, the base model's longer reasoning chains are truncated:
| Model | GSM8K |
|---|---|
| Base | 68.01% (897/1319) |
| LoRA | 83.32% (1099/1319) |
| HNS 4+1, all modules | 86.20% (1137/1319) |
| HNS 8+2, all modules | 86.05% (1135/1319) |
adapter_model.safetensors: PEFT LoRA weightsadapter_config.json: PEFT configurationeval-gsm8k-maxnew2048/metrics.json: aggregate GSM8K metricseval-gsm8k-maxnew2048/predictions.jsonl: per-example predictionsrun_config.json / run_args.json: training configuration