Skip to content

armgit / Soup

Public Imported from GitHub
0

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

600 B
Raw Blame
  • GRPO gradient watchdog now identifies which parameters went non-finite in warning logs and trainer state (#342 by @here-2007 with @harshitthek in #2060). GRPOStabilityCallback inspects named_parameters() (falling back to parameters()) when a non-finite gradient step is detected, reporting the count and first few offending parameter names in the console/logger warning. Persists per-step non-finite parameter records and the cumulative run summary (nan_param_count, nan_param_names) in state.log_history and trainer_state.json. Tested on CPU with NaN injection on a real module.