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.

634 B
Raw Blame
  • KL calibration probability calculation now uses numerically stable log-softmax without artificial flooring (#1772 by @here-2007 in #1780). eval.calibrate.kl_divergence previously floored candidate probabilities at 1e-12 before taking logarithms, which truncated large logit divergences (gaps > ~27.6) and caused run_calibration to return MINOR when the actual divergence exceeded the documented MAJOR threshold (>= 0.20). KL divergence is now evaluated directly using stable log-probabilities via _log_softmax, preserving monotonic scaling for large divergence gaps without underestimating quant-calibration deltas.