Magnitude CLI 0.3.18 Released with MoE and DSpark Fixes

Magnitude CLI 0.3.18 Released with MoE and DSpark Fixes

At a Glance

Item Value
Repository magnitudedev/magnitude
Version @magnitudedev/cli@0.3.18
Published 2026-12-06
License Apache-2.0
Source type Primary source (the publisher itself)

Values determined by this site’s code when the information was collected. Dates are JST.

Overview

The latest CLI version of the distributed inference engine “magnitude", @magnitudedev/cli@0.3.18, has been released. Magnitude is a Rust-based inference engine (Apache-2.0 license) that makes it possible to run large-scale AI models on everyday Macs and standard PCs by appropriately distributing model weights and processing across GPUs, main memory (RAM), and SSDs.

The most significant change in this version is the fix for an issue in streaming MoE (Mixture of Experts) models where decode speeds plummeted to one-third or one-fourth after executing long prefills exceeding 16k tokens. Alongside this, several fixes have been introduced to enhance execution efficiency on everyday hardware, including resolving memory leaks during prompt processing, substantially eliminating stalls in the speculative decoding feature (DSpark), and supporting low-memory execution of multimodal models in 6GB VRAM environments.

Key Changes

Resolution of MoE Decode Slowdowns and Memory Retention After Long Prefills

In streaming MoE models, the phenomenon where decode processing became 3x to 4x slower after inputting long contexts of 16k tokens or more (caused by cuGraphExecKernelNodeSetParams overload and subsequent token pipeline processing isolation) has been resolved. Internal execution domain control and memory pool release conditions were revised to suppress unnecessary queue termination processing. Furthermore, group buffers for prompt processing are now immediately detached at the start of decoding to return VRAM and host RAM to the expert bank, and hierarchical discrete GPUs have been extended to allow memory reclamation for expert slots in the host tier as well. This directly benefits users processing long texts with MoE models or those using environments combining GPUs and host memory. Users do not need to change any settings; the update applies simply by upgrading.

Elimination of Kernel Re-preparation Stalls and Error Fixes in DSpark Speculative Decoding

In “DSpark", which handles speculative decoding, the process of re-preparing kernels for every graph construction has been revised and optimized to require preparation only once per draft. This eliminates stalls lasting from 1 second to 4.5 seconds that occurred during initial draft steps or as context lengths grew, significantly improving overall draft processing speed. In addition, a bug where the RNN-type DSpark drafter stopped during its first execution due to a schema mismatch error stating “parameter product axis 0 does not satisfy the call schema" was fixed. Users leveraging speedups via DSpark can now enjoy smooth inference without needing to re-convert models.

Support for Multimodal Model Operation in 6GB VRAM and Improved Memory Management

Optimizations have progressed for limited VRAM environments and older GPUs. Through exclusive memory allocation control and runtime idle release for vision models (Vision) and inference heads (Head), it is now possible to fit and run multimodal models featuring mmproj and DFlash 2 simultaneously within 6GB of VRAM. Additionally, over-accounting of VRAM in the Vulkan backend and the calculation of reclaimable memory (KReclaimable) on Linux have been reviewed. This is an important improvement for users wanting to run vision-enabled models on entry-level GPUs or PCs with low VRAM capacity.

Fix for Gemma 4 and Other Load Failures on Apple Silicon Macs

Compilation errors occurring in per_layer_gate_stage within Metal shaders on Apple Silicon environments (no member named 'form' in 'projection::operands<0>') have been fixed. This allows Gemma 4 E2B/E4B models with non-NVFP4/MXFP8 weights, such as q4g32s@rows32, to load successfully on Macs. Furthermore, an unsigned underflow in Metal attention decoding that occurred in models with $G < 8$ (such as Gemma 4 E4B and Qwen3.5-4B) was also fixed. Users running these models on Macs can avoid startup failures and potential issues by updating to this version.

Resolution of Vulkan Shader Compilation Hangs and MoE Deadlocks

In Linux Mesa RADV environments, the issue where SPIRV-Tools shader compilation halted for over 20 minutes when loading models like Inkling-2-Mini, Gemma 4 26B-A4B, and Qwen4-35B-A3B has been fixed. In addition, deterministic deadlocks occurring during warmup and decoding when running fused streaming MoE models like Qwen4-35B-A3B alongside CPU memory in Vulkan environments have been resolved. Users running large models on AMD GPUs or via Vulkan will see significant improvements in startup time and operational stability.

Fixes for Model Catalog Download Errors and Path Resolution

The fixed revision for “nvidia/NVIDIA-Nemotron-3.5-Bolt-E4B-4GB" registered in models.lock.json was updated in accordance with upstream changes, resolving the HTTP 403 error encountered during downloads. Furthermore, a bug in split Hugging Face packages where identical subdirectories were redundantly appended to model paths acquired via the API has also been fixed. Users who were unable to download the target Nemotron model should try fetching it again after updating.

Supported Models and Hardware

This version features broad adjustments to compatibility and inference behavior across specific model architectures and hardware environments. Details of the target models and hardware confirmed from the documentation are as follows.

Supported and Adjusted Models

  • Gemma 4 Series (E2B / E4B / 12B / 26B-A4B)
  • Gemma 4 E2B / E4B: Load failures (Metal shader compilation errors) on Apple Silicon Mac environments with configurations using non-NVFP4/MXFP8 weights such as q4g32s@rows32 have been resolved. In addition, an underflow issue in Metal attention decoding (attention_decode_k8v4) occurring in models with fewer than 8 attention groups ($G < 8$) was fixed. – Gemma 4 12B: In configurations performing history lookup only ($F=0$), unnecessary instructions and barriers were organized for proprietary AMD Vulkan drivers (amdvlk64.dll LLPC), improving inference pipeline stability. – Gemma 4 26B-A4B: Processing order was optimized to avoid stalls (hangs) exceeding 20 minutes that occurred during shader compilation under Linux Mesa RADV environments.

  • Qwen Series (Qwen4-35B-A3B / Qwen3.5-4B)

  • Qwen4-35B-A3B: Shader compilation stalls on Mesa RADV were resolved, and deadlocks during warmup and decoding in Vulkan environments—which occurred when running fused streaming MoE execution placing all experts in host RAM using combined CPU memory and GPU—were fixed. – Qwen3.5-4B: Similar to Gemma 4 E4B, underflows in Metal decode processing under $G < 8$ conditions were fixed.

  • nvidia/NVIDIA-Nemotron-3.5-Bolt-E4B-4GB

  • Fixed revisions in the package catalog (models.lock.json) were updated to address HTTP 403 download errors caused by upstream repository reorganizations, enabling successful retrieval.

  • Inkling-2-Mini

  • Long shader compilation stalls on Mesa RADV were eliminated, and stable operation in evaluation and verification environments using DSpark speculative decoding has been promoted.

  • Multimodal Models (mmproj) and DFlash 2

  • Exclusive memory management for visual processing (Vision) and inference processing (Head) was introduced, making it possible to run multimodal models accompanied by mmproj and DFlash 2 concurrently even in 6GB VRAM environments.

Hardware and Execution Environments

  • Apple Silicon (Metal)
  • Compatibility for quantized weights has been expanded due to syntax error fixes in shader compilation. Boundary condition evaluation logic for attention decoding has also been reviewed.

  • AMD GPU (Vulkan / Mesa RADV / AMD Proprietary)

  • In Linux Mesa RADV environments, the optimization pass order for shader code containing loops and early returns (DeadBranchElim and MergeReturn executed before InlineExhaustive) was changed, eliminating extreme compilation delays by SPIRV-Tools. – In AMD_PROPRIETARY Vulkan environments, unreachable functions and dead code were reduced to enable stable inference.

  • NVIDIA GPU (CUDA / Pascal Architecture)

  • Adjustments regarding workgroup reconvergence (reduce_group_exclusive_add) in SPIR-V were applied to Pascal-generation GPUs. – Across discrete GPUs in general, optimizations were made for expert bank reclamation in the host memory tier and transfer processing aligned with PCIe bandwidth.

  • Unified Memory (UMA) Environments

  • Partial host record lease control during unified memory execution was reviewed, resolving deadlocks that occurred during transitions of drafter processing.

  • Linux General

  • The application scope of glibc heap settings (M_ARENA_MAX=2) was narrowed to mitigate multi-core contention during parallel shader compilation. Additionally, the host RAM calculation accuracy for reclaimable memory (KReclaimable) was improved.

How to Get It

Specific installation commands for this release are not listed in the documentation. For update procedures in CLI environments and binary distribution statuses, please check the release list page on the official repository.

Releases Since Our Last Article

Compiled by Local Model Watch from the project’s GitHub releases: the versions between this release and the last one we covered, which did not get separate articles. Full history: release tracker.

Version Released Release notes
@magnitudedev/cli@0.3.17 2026-12-04 GitHub
@magnitudedev/cli@0.3.16 2026-12-04 GitHub

Related Articles

What to Read Next

Sources