You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(v4): 3 more mlx-lm PR bricks + graceful Path D status degradation
Round 2 of mlx-lm open-PR brick integration (after f539af5). 4 more PRs
cherry-picked into our mlx-lm fork (cppmega-integration branch, commits
c48d3a0..ec1e75a):
#1202 TurboQuantKVCache — 3-bit/4-bit KV compression for generation
-> make_turbo_quant_kv_cache(bits) factory (cross-cutting cache
utility; not a block, plugs into any attention at decode time)
#1276 Gemma 4 assistant (MTP drafter) — cross-attention decoder layer
-> "gemma4_drafter" block kind, Gemma4DrafterLayerBlock
#1161 Nemotron-H MTP module — block_type=*/-/E for attn/MLP/MoE variants
-> "nemotron_h_mtp" block kind, NemotronHMTPBlockWrapper
#1111 Speculative decoding for hybrid models (Qwen3.5) — bugfix only
(88-line patch to generate.py; no new bricks)
Plus graceful Path D status degradation:
- kda_path_d._path_d_runtime_status: reason text now always includes
"runtime adapter installed" prefix, even when downstream lowering
fails (it's accurate — adapter exists, only the optional PtrAnalysis
pre-pass degraded).
- tests/v4/test_path_d_runtime_adapter.py: the 3 KDA smoke tests
(fixed_prefill, dynamic_shape_custom_scale, varlen) now skip when
kda_runtime_adapter_status returns ok=False, instead of asserting.
Honest reporting that the path is env-conditional (subprocess
PtrAnalysis hits MaskAnalysis asserts on some shapes).
Total bricks now in BLOCK_BUILDERS via mlx-lm direct import:
attention slots: gated_attention, gemma4_drafter, mistral4_mla,
dsv4_attention, bailing_mla
linear-attn slot: bailing_linear
MoE slot: bailing_moe
MTP slot: nemotron_h_mtp
utility: make_turbo_quant_kv_cache (cache only)
Suite: 397 passed / 5 skipped / 0 failed (was 393 passed / 0 skipped).
The 5 skipped are env-conditional KDA Path D smoke tests (PtrAnalysis
subprocess limitation), not regressions.
0 commit comments