Long Context (v0.49.0)
Three RoPE-scaling strategies for 128k+ context fine-tuning.
YaRN
yaml
training:
rope_scaling_type: yarn # linear | dynamic | yarn | longrope
yarn_factor: 8.0
yarn_beta_fast: 32
yarn_beta_slow: 1The RoPE keys are flat fields on training, not a nested rope_scaling block.
Dynamic NTK
yaml
training:
rope_scaling_type: dynamic
yarn_factor: 4.0LongLoRA S² shifted-sparse attention
yaml
training:
use_longlora: trueLive: the forward-pass override is applied by the SFT trainer, and the group size is derived rather than configured.
Llama 3.1 NTK-aware scaling
Set rope_scaling_type: llama3 and Soup wires up the Llama 3.1-style NTK-aware schedule.
Gates: validate_longlora_compat + is_llama_model reject incompatible architectures at config-load. Pair with Multipack to keep variable-length samples efficient on long-context runs.
Soup is free and Apache-2.0. If it saved you a training run, starring the repo costs nothing and helps most. You can also fund the GPU time behind the work a 4 GB laptop cannot reach.