Repository navigation
feat: Qwen3.5 GatedDeltaNet fixes - #37
Merged
Merged
Conversation
Adds Qwen3.5 model family with GatedDeltaNet layers: - Gated linear attention with delta rule - Hybrid SSM + sliding window attention - Short convolution state management - MoE support via SwitchLayers Key improvements from tom-eric branch: - Fix bf16 dtype promotion in computeGatedDeltaG (no fp32 roundtrip) - Add eval barriers in gatedDeltaOps to bound prefill memory - Use ops fallback for gatedDeltaUpdate (Metal kernel has T>1 bug) - Add .contiguous() on conv cache to prevent 9GB memory leak - Force dtype per-layer to prevent bf16->fp32 promotion in lazy graph - Per-layer eval during prefill to cap activation memory - RotatingKVCache support for attention layers Deferred: fused Metal kernels, FusedGateUpSwitchGLU, quadratic attention Co-Authored-By: tturney1@gmail.com Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
TheTom
force-pushed
the
pr/alpha-7-qwen35-gdn
branch
from
April 16, 2026 04:24
f76f3d5 to
f77cb9c
Compare
ekryski
approved these changes
Apr 16, 2026
div0-space
pushed a commit
to LibraxisAI/mlx-swift-lm
that referenced
this pull request
Nov 29, 2026
mlx-swift 4c6ca4c53169d0ec52a31707e5ec9cc4fb8aab13 (local wip/cluster-next): cluster ekryski#56 + single-Mac ekryski#58, pinning core a1d75679 (cluster ekryski#35 + single-Mac ekryski#37, the 4d913204 revert) and mlx-c 1d0ce055. The merge before this needs GPU.withCommandBufferLimits, which only this stack has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Clean port from ek/tom-eric-moe-tuning. Part of alpha cleanup.