Sentinel
I built an early-stage evaluator that looks for capability regressions during LLM fine-tuning using versioned canary data and repeatable checkpoint comparisons.
The problem
Fine-tuning can improve a target behavior while quietly degrading unrelated knowledge, reasoning, fluency, or instruction-following capabilities.
What I built
I implemented a framework-independent checkpoint evaluator, versioned canary buckets, result schemas, appendable JSONL logs, and correctness tests for the scoring path.
Engineering decisions
Prompt labels are masked from loss, samples are length-grouped into bounded microbatches, canary integrity can be checksum-verified, and CUDA out-of-memory errors return a skipped result instead of crashing training.
Technical approach
The evaluator measures token-weighted perplexity only over completion tokens, compares each capability bucket with a baseline, and optionally performs forward-only accuracy checks without requiring text generation.
What changed
The repository includes focused tests for completion-token masking, token-weighted aggregation, canary handling, and result persistence. No benchmark outcome is claimed.
Technical details
Python, PyTorch, Transformers, pytest, JSONL, Pydantic
