feat: serve Ministral 3; add --max-batch-tokens flag #58
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ministral3-serving"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Also fixes a group of documentation issues
Automated review by pr-reviewer v0.44.2 | Safety Check | Claude Sonnet 5 | tracking id
r-725075-4c5604This is an AI-generated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: LGTM — The changes are additive and gated behind nil/zero checks preserving prior behavior; no secrets, breaking changes, or obvious bugs found.
Went through the diff carefully given its size.
llama4Scalein mistral4 was replaced with a call toconfig.RopeParameters.Llama4AttnScale, which is documented as nil-safe (rp == nilcheck).mistral4.gonow storesropeParamsdirectly (possibly nil) instead of copying outllama4Beta/llama4OrigCtxwith zero defaults — sinceLlama4AttnScaleis a method with a nil-receiver guard, this is safe and equivalent behavior for models without rope_parameters..weight_scale,.weight_scale_inv) and handles 0-d scalar shapes by coercing to[1]. This looks like a reasonable, backward-compatible extension (old suffix still tried first).llama4Scalesbatch logic: uses max position in the batch to decide whether to skip scaling; correctly documented as monotonic in position, so this early-exit is safe.--max-batch-tokensflag simply wires an int into an existing struct field, default 0 meaning "use built-in default" — no red flags.forward_vectors_llama4.jsonand.safetensorsfixture: these are generated test goldens/fixtures accompanied by a generator script (generate_llama4.py), consistent with the existing testdata pattern in this repo (similar fixtures exist elsewhere). Not vendored/foreign code, just a large test golden — flagged by the automated diff stats but appears legitimate given context and thorough docstring explaining generation parameters.Nothing here looks like an accidental commit, security issue, or logic bug that would break existing behavior; the new code paths are only additive (new flag, new optional scaling, new fallback for FP8 scale names) and gated behind nil/zero checks that preserve old behavior for models without llama_4 scaling.