Skip to content

Commit a7c7335

Browse files
committed
docs(changes): the MLX state cache refuses a length-dependent RoPE (#50)
1 parent 6c6af75 commit a7c7335

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎docs/changes/50.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- **`--mode mlx` refuses the state cache for a RoPE that depends on the sequence length** (`--state-cache-gb`,
2+
`--prefix-cache`). Cached keys are continued in forwards of other lengths. With a dynamic-NTK RoPE, a state
3+
continued from the cache was therefore read with keys rotated for another length. On a small test model past its
4+
`max_position_embeddings` this gave probabilities 6e-5 off the uncached ones, which the cache otherwise matches bit
5+
for bit. Such a model is now refused at start with a message. The default, linear, llama3, yarn, longrope and
6+
Gemma 4's proportional RoPE take the cache as before; every basal model uses one of them, so nothing changes for
7+
basal's models. The `--state-cache-gb` help and SERVING.md also say that the cache is shared by all clients: a
8+
client can tell from the response time whether a state it guesses is cached. Contributed by Grzegorz Stark
9+
(@gstark0), [#50](https://github.com/rkinas/basal/pull/50).

0 commit comments

Comments
 (0)