Check data and labels first: correct chat template, loss masking, no empty or garbled targets, sensible token counts, and shuffled data.
Check the learning rate (the usual culprit): lower it, add warmup, and use gradient clipping; for FP16 check loss scaling, or switch to BF16.
Overfit a tiny subset of examples; if the model cannot memorize 20 examples, there is a bug in the code or setup.
Inspect gradient norms, confirm the right parameters are trainable (adapters actually receiving gradients), and compare against a known-good configuration.
Loading…