Archived
serve: --rope-scaling writes static YaRN over a container's own rotary keys
yarn:FACTOR[:ORIG] (or none) is written at load into the rotary object yarn_from takes first -- for a Qwen3.8 container text_config.rope_parameters, which already says default, so YaRN written beside it would never be read -- and resolved and checked exactly as a converted container's is. An existing container serves past its trained context with no reconvert; a DFlash2 drafter gets the same factor over its own trained length; a checkpoint's own YaRN has its factor replaced and its stale attention_factor/mscale dropped; linear or other explicit types are refused. Startup names the rotary's reach and warns when --max-model-len is past it, and a persisted prefix cache written under another --rope-scaling is not reused. core/format/rope_override.h is held to yarn_from in tests/yarn_test.cpp.
This commit is contained in:
1 parent
ee5fcf1024
commit
6fa7707dff
9 files changed
+457
-1
No files matched your search
@@ -984,6 +984,7 @@ one line naming each one the command line moved.
|
||||
| `--max-num-batched-tokens N` | 8192 | largest token count one step may carry |
|
||||
| `--max-num-seqs N` | 256 | largest number of sequences one step may carry |
|
||||
| `--max-model-len N` | 0 | context bound; 0 takes the model's training context |
|
||||
| `--rope-scaling SPEC` | — | `yarn:FACTOR[:ORIG]`: static YaRN over the container's own rotary keys, no reconvert; `none` takes a checkpoint's YaRN off ([YARN.md](YARN.md)) |
|
||||
|
||||
**Memory**
|
||||
|
||||
|
||||
Reference in new issue
Block a user