rlrazor-qwen2.5-0.5b-gsm8k-iterative-rft
a compact LLM for math without heavy forgetting
2 min read
This large language model (LLM) solves grade-school math problems in English, reasoning step-by-step and formatting the final answer inside \boxed{}. It is built on the compact 0.49B-parameter Qwen2.5-0.5B-Instruct, fine-tuned by Andrew Qiu to reproduce the RL's Razor paper. The core advantage of iterative RFT (iterative fine-tuning on the model's own correct answers) is that it boosts math accuracy while barely degrading skills on other tasks. This checkpoint is useful for researchers and developers studying catastrophic forgetting in small models.
Key features
- Full fine-tune: all model weights were trained in bfloat16 (not a LoRA) and released under the Apache-2.0 license.
- 4 rounds of iterative RFT: at each stage, the model generated 4 candidate responses per GSM8K problem and was fine-tuned on its own verified solutions.
- Minimal forgetting: the average score change across 6 external benchmarks (MMLU, HellaSwag, TruthfulQA, IFEval, Winogrande, HumanEval) was just −0.2 percentage points.
What you can do
- Study catastrophic forgetting: compare this checkpoint against the base Qwen2.5-0.5B-Instruct on general benchmarks and reasoning tests.
- Plug into a local pipeline: run it via the
transformerslibrary to solve simple English math problems step-by-step with minimal compute overhead.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "crushsoccer/rlrazor-qwen2.5-0.5b-gsm8k-iterative-rft"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto")
messages = [{"role": "system", "content": "Please reason step by step, and put your final answer within \\boxed{}."},
{"role": "user", "content": "Natalia sold clips to 48 friends in April, and half as many in May. How many altogether?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
print(tokenizer.decode(model.generate(**inputs, max_new_tokens=512)[0]))
Read more
DetailsGSM8K accuracy (1,319 problems): 49.7% vs. 48.1% for the base model.
IFEval score change: −3.0 percentage points (base: 26.4%).
Training setup: 7,473 training prompts, AdamW, learning rate 3e-6, batch size 32, seed 0.
Limitations: research checkpoint built for a single narrow English task; not intended for general-purpose chat.










Comments