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.

598 B
Raw Blame
  • task: simpo on the transformers backend caps the prompt as DPO and ORPO do (#2112 by @dryn85-max in #2116). TRL 0.29.1's CPO tokenizer cuts only the answers, so a long prompt reached the model whole, beyond data.max_length. After TRL tokenizes, the prompt is now cut to data.max_length // 2 tokens, keeping its end, and the answers to the room left, so no sequence exceeds data.max_length. A prompt longer than data.max_length // 2 tokens is cut even when the whole row would fit; a row whose prompt is at most data.max_length // 2 tokens and which fits is unchanged.