Fine-tuning / client work
Teaching a 7B model new books without forgetting
Qwen2.5-7B learned a series of fact books one at a time and kept its general skills.
The context
A client needed Qwen2.5-7B to learn a series of fact books in another language, one book at a time, without forgetting earlier books or losing its general skills.
What I worked on
- Book-by-book training with a fresh LoRA per book and a KL anchor.
- Data pipeline: Q&A and trap-question generation with open teacher models on vLLM, deduplication, and contamination checks against benchmark test sets.
- Evaluation with lm-evaluation-harness, custom exams and LLM-as-judge.
What came out of the work
The model answers from the books, rejects false-premise questions, and after the first book scored at or above base on IFEval and GSM8K and within 0.7 points on MMLU. Across a real three-book sequence, it kept 93% of book-1 answers after book 2 and 87% after book 3, with general benchmarks within 0.7 points of base. It was delivered as a frozen, hash-verified package the client re-runs on their own GPUs with their own seeds.
Have a question about this work?
Get in touch