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.

616 B
Raw Blame
  • PRM and RAFT divide each accumulated micro-batch mean by gradient_accumulation_steps (#1444 by @Momoyeyu in #1771). Both trainers return a per-micro-batch mean and cannot honour HF's label-count num_items_in_batch; they now decline loss kwargs so Trainer.training_step applies its standard 1 / gradient_accumulation_steps normalisation. Logged loss, train_loss and grad_norm match a gradient_accumulation_steps: 1 run instead of reading G times too large, and max_grad_norm clips the gradient for the stated loss. RAFT's loss_weights weighted mean, including citation boosts, is unchanged.