Repository navigation
Upstream open PRs, batch B: new architectures, tool parsers, fixes - #47
Merged
Merged
Conversation
…-explore#1968) From ml-explore/mlx-lm PR ml-explore#1968 by @hierophantos (not merged upstream yet): ml-explore#1968 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…xplore#1964) From ml-explore/mlx-lm PR ml-explore#1964 by @JayeshSuryavanshi (not merged upstream yet): ml-explore#1964 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1903 by @ursk (not merged upstream yet): ml-explore#1903 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1959 by @Knightkolla (not merged upstream yet): ml-explore#1959 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…ml-explore#1869) From ml-explore/mlx-lm PR ml-explore#1869 by @mloiterman (not merged upstream yet): ml-explore#1869 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…upstream ml-explore#1867) From ml-explore/mlx-lm PR ml-explore#1867 by @eejd (not merged upstream yet): ml-explore#1867 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…guments (upstream ml-explore#1967) From ml-explore/mlx-lm PR ml-explore#1967 by @anidotdev (not merged upstream yet): ml-explore#1967 Applied 3-way; test/ack conflicts resolved by keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…l-explore#1965) From ml-explore/mlx-lm PR ml-explore#1965 by @HamedShams (not merged upstream yet): ml-explore#1965 Applied 3-way; test/ack conflicts resolved by keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…upstream ml-explore#1552) From ml-explore/mlx-lm PR ml-explore#1552 by @robertlangdonn (not merged upstream yet): ml-explore#1552 Applied 3-way; test/ack conflicts resolved by keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1416 by @anjansastry-hash (not merged upstream yet): ml-explore#1416 Applied 3-way; test/ack conflicts resolved by keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1264 by @jonpspri (not merged upstream yet): ml-explore#1264 Applied 3-way; test/ack conflicts resolved by keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…st cases split (MiniMax-M3 merge) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…pstream ml-explore#1337) From ml-explore/mlx-lm PR ml-explore#1337 by @snagnever (not merged upstream yet): ml-explore#1337 Inference line ported into the fork's _infer_tool_parser. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1271 by @anthonyhchan (not merged upstream yet): ml-explore#1271 Its inference line was added with ml-explore#1337's (fork's _infer_tool_parser). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…ixes ml-explore#1041) (upstream ml-explore#1329) From ml-explore/mlx-lm PR ml-explore#1329 by @robertlangdonn (not merged upstream yet): ml-explore#1329 Ported by hand into the fork's detokenizer selection. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…pstream ml-explore#1863) From ml-explore/mlx-lm PR ml-explore#1863 by @twallgren (not merged upstream yet): ml-explore#1863 Import conflict in qwen3_moe resolved (both). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…old (upstream ml-explore#1817) From ml-explore/mlx-lm PR ml-explore#1817 by @stooit (not merged upstream yet): ml-explore#1817 Import conflicts merged; glm4_moe_lite takes the PR's absorbed dims. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1917 by @ykhrustalev (not merged upstream yet): ml-explore#1917 Ported by hand: /tokenize routed beside the fork's routes; ignore_eos in the logits processors of every path (batched, sequential, handoff); context length read from the loaded model's args. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1937 by @e-mon (not merged upstream yet): ml-explore#1937 Helper kept beside the fork's _chat_template_text; test import adapted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…unts, omni key layout) (upstream ml-explore#1982) From ml-explore/mlx-lm PR ml-explore#1982 by @vichzp (not merged upstream yet): ml-explore#1982 Ported by hand into the fork's Nemotron-H: one sanitize keeps the MTP head and stacks experts per Puzzle block; config merges block_configs with the MTP fields. Supersedes ml-explore#1535. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1948 by @Avicennasis (not merged upstream yet): ml-explore#1948 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…(upstream ml-explore#1945) From ml-explore/mlx-lm PR ml-explore#1945 by @velaia (not merged upstream yet): ml-explore#1945 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…e#1931) From ml-explore/mlx-lm PR ml-explore#1931 by @mitmul (not merged upstream yet): ml-explore#1931 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…#1918) From ml-explore/mlx-lm PR ml-explore#1918 by @12ohan (not merged upstream yet): ml-explore#1918 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1901 by @TokenAI-zer (not merged upstream yet): ml-explore#1901 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1831 by @AlphaKure (not merged upstream yet): ml-explore#1831 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1195 by @rltakashige (not merged upstream yet): ml-explore#1195 utils: E8M0 safetensors loading merged with the fork's weight sources; the PR's gated-delta test edits (another kernel signature) left out. Also: xing4 test skips without torch; plamo3's gradient check uses 64 rows (MLX's single-query SDPA has no VJP). Chosen over ml-explore#1797 (same model, older). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…#1788) From ml-explore/mlx-lm PR ml-explore#1788 by @eauchs (not merged upstream yet): ml-explore#1788 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1771 by @nightscape (not merged upstream yet): ml-explore#1771 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1464 by @kernelpool (not merged upstream yet): ml-explore#1464 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…ing (GLM-5.2) (upstream ml-explore#1410) From ml-explore/mlx-lm PR ml-explore#1410 by @pcuenca (not merged upstream yet): ml-explore#1410 Typing import merged; the layer loop uses the fork's pipeline_layers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
) From ml-explore/mlx-lm PR ml-explore#1407 by @SahilChachra (not merged upstream yet): ml-explore#1407 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1340 by @Terrencezzj (not merged upstream yet): ml-explore#1340 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1325 by @kernelpool (not merged upstream yet): ml-explore#1325 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1261 by @kyr0 (not merged upstream yet): ml-explore#1261 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1219 by @kernelpool (not merged upstream yet): ml-explore#1219 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1199 by @robertobissanti (not merged upstream yet): ml-explore#1199 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1021 by @Goekdeniz-Guelmez (not merged upstream yet): ml-explore#1021 ssm.py: the fork's version kept (Nemotron-H MTP rollback, native dt); Mamba-3's compute_dt_eff, trapezoidal decode/update and the _dt_eff parameter added to it. The paper PDF the PR adds at the repo root left out. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#991 by @rachittibrewal-sarvam (not merged upstream yet): ml-explore#991 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#724 by @proazr (not merged upstream yet): ml-explore#724 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
From ml-explore/mlx-lm PR ml-explore#1484 by @faustomilletari (not merged upstream yet): ml-explore#1484 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…yers (upstream ml-explore#1927) From ml-explore/mlx-lm PR ml-explore#1927 by @aidiffuser (not merged upstream yet): ml-explore#1927 Applied: code 3-way, tests with context fuzz. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…; close the stop-sequence test's batch generator Lazy imports created the generation stream on whichever thread first touched mlx_lm.generate, and batch generation then failed with "There is no Stream(gpu, N) in current thread". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
It passes sizes= to mlx.nn.layers.distributed.shard_linear, which the MLX the fork runs on (0.32.x) doesn't take: every tensor-parallel load of Llama, Qwen2/3, Qwen3-MoE, GLM4-MoE and DeepSeek-V2/V3 would raise. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
Its prefill doesn't match its own decode recurrence: the next token's input term lands on the current token's output (scalar check: prefill 1.0 vs decode 0.5), and a multi-token continuation ignores the carried prev_Bx, so chunked prefill and prompt-cache continuation drift. Left out until upstream fixes it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
…e model (mxfp4); Olmo3 arguments split only at top-level commas; the next turn's warm-up holds the harmony answer as the client got it; stray .orig dropped Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not-yet-merged ml-explore/mlx-lm PRs, one commit each crediting its author.
Models: Nemotron 3.5 Bolt / Puzzle (ml-explore#1982, ported into the fork's Nemotron-H with its MTP head; supersedes ml-explore#1535), DeepSeek-V4 (ml-explore#1195, over the older ml-explore#1797), Qwen3.8-Flash-Next (ml-explore#1788), GLM-5.2 IndexShare (ml-explore#1410), LongCat-2.0 (ml-explore#1464), MiMo V2.5 (ml-explore#1219) + MiMo-V2 fused attention (ml-explore#1927), Step 3.7 Flash (ml-explore#1325), Cohere2-MoE (ml-explore#1340), Zamba2 (ml-explore#724), ZAYA1 (ml-explore#1261), K2-Horizon (ml-explore#1948), PLaMo3 (ml-explore#1931), Kolibri (ml-explore#1945), Intern-S2-Mobius (ml-explore#1771), Quasar-Long (ml-explore#1407), xing4 (ml-explore#1901), G9v3 (ml-explore#1831), EngGPT (ml-explore#1199), Sarvam (ml-explore#991), Nemotron-Labs-Diffusion (ml-explore#1918), ESM C / ESMFold2 (ml-explore#1484).
Tool parsers: MiniMax-M3 (ml-explore#1416), DeepSeek DSML (ml-explore#1337), Olmo3 (ml-explore#1271, arguments now split only at top-level commas), Granite (ml-explore#1264), LLM-jp-4.1 (ml-explore#1937).
Fixes: transformers-5 rope_parameters (ml-explore#1964), qwen3_moe rope_scaling (ml-explore#1968), Gemma2 attention (ml-explore#1903), ERNIE-4.5 routing (ml-explore#1959), Qwen3-Coder big integers (ml-explore#1967), /v1/models (ml-explore#1965), stop match_sequence (ml-explore#1869), gpt-oss harmony (ml-explore#1867), DSV3.2 indexer sinks (ml-explore#1552), byte-level detokenizer (ml-explore#1329), /tokenize + ignore_eos (ml-explore#1917), absorbed MLA threshold (ml-explore#1817).
Left out: ml-explore#1863 (needs shard_linear(sizes=), not in MLX 0.32), ml-explore#1021 Mamba3 (prefill doesn't match its decode), ml-explore#1419 (its own MTP and cache-state format clash with the fork's), ml-explore#1412 (overlaps ml-explore#1410), ml-explore#1484's lazy package imports (broke batch generation streams).
Tests: 721 passed (MLX_ENABLE_TF32=0). Reviewed by codex and muse; their findings fixed or the PR reverted.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XhEwWJCoJPXFyyCzp988Bx