CoolFace
Modelpublic

reasoning-degeneration-dev/algo-sft-formal-logic-distill-qwq

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes7downloads
Model Card

Formal Logic — QwQ Distillation

LoRA adapter for Qwen/Qwen2.5-1.5B-Instruct fine-tuned on formal logic via QwQ-32B Distillation.

Part of the Algorithmic SFT vs Distillation experiment studying whether deterministic algorithmic templates teach procedural reasoning more effectively than distillation from large reasoning models.

Training

ParameterValue
Base modelQwen/Qwen2.5-1.5B-Instruct
MethodQwQ-32B Distillation
FrameworkLLaMA-Factory (SFT stage)
LoRA rank64
LoRA targetall linear layers
Learning rate1e-4
Epochs3
Batch size1 (grad accum 16)
Cutoff length32,768 tokens
Training data5,000 QwQ-32B reasoning traces (d5, filtered). Teacher solve rate: 92.0%

Evaluation (v3, MAX_TOKENS=32768)

SplitAccuracy
Test (in-distribution)87.4%
Harder variant85.6%
Structural OOD71.2%

Notes

Strongest distillation result. Competitive in-distribution but 20pp gap on OOD vs algo SFT.

Usage

python
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
model = PeftModel.from_pretrained(base, "reasoning-degeneration-dev/algo-sft-formal-logic-distill-qwq")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")

Related Datasets