Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

mlxrunner: raise the MTP pending-flush cap to 256 tokens

Jesse Gross123b1f24793f
diff --git a/x/mlxrunner/mtp.go b/x/mlxrunner/mtp.go
index d559c6b4b..bf40e5696 100644
--- a/x/mlxrunner/mtp.go
+++ b/x/mlxrunner/mtp.go
@@ -11,7 +11,7 @@ import (
// mtpPendingFlushTokens caps how many committed look-ahead tokens wait in the
// pending buffer before a batched flush, bounding the pinned hidden states
// regardless of what else triggers a flush.
-const mtpPendingFlushTokens = 32
+const mtpPendingFlushTokens = 256
// mtpDrafter drafts with a model's multi-token-prediction head. Constructed
// at load, it fixes the trie keys' draft look-ahead for the model's lifetime