Magnitude 0.3.6 Released: Speeds Up MoE Streaming & Lowers Memory

- 1. At a Glance
- 2. Overview
- 3. Key Changes
- 3.1. Faster Streaming Inference and Memory Reduction for MoE Models
- 3.2. Mitigation of Excessive GPU Memory Allocation in Long Contexts and Bug Fixes
- 3.3. Sliding Window Memory Allocation Optimization
- 3.4. KV Prefix Cache Eviction Priority Improvement
- 3.5. License Clarification in Rust Workspace and Packages
- 4. Supported Models and Hardware
- 5. How to Get It
- 6. Releases Since Our Last Article
- 7. Related Articles
- 8. What to Read Next
- 9. Sources
At a Glance
| Item | Value |
|---|---|
| Repository | magnitudedev/magnitude |
| Version | @magnitudedev/cli@0.3.6 |
| Published | 2026-11-27 |
| 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
A new version of magnitudedev/magnitude, @magnitudedev/cli@0.3.6, has been released. magnitude is an open-source inference engine (built in Rust, licensed under Apache-2.0) designed to run models on standard Macs and PCs by distributing them across the GPU, RAM, and SSD.
The most impactful changes in this version are improved streaming inference performance and reduced memory consumption for large Mixture of Experts (MoE) models on Apple Silicon and NVIDIA GPU environments. Decode speeds are reported to be up to 1.88x faster, prefill speeds up to 2.07x faster, along with significant savings in GPU and host memory.
Key Changes
Faster Streaming Inference and Memory Reduction for MoE Models
Processing has been significantly optimized for streaming inference with large MoE models (such as DeepSeek-V4.1-Flash, Qwen3.8-Flash-Next, and GLM-5.3 Flash). In Apple Silicon and NVIDIA GPU environments, decode speeds are accelerated by up to 1.88x, prefill speeds by up to 2.07x, and host memory usage is reduced by approximately 2.6 GB.
Specifically, the following improvements are included:
– Expert streaming utilizing VRAM / RAM / SSD has been unified into a single 3-layer pipeline, consolidating staging pools to save approximately 2.2 GB of host RAM.
– GPU execution speedups include on-device CUDA host staging, zero-rebind CUDA graph replay, fused quantization tile packing across all 29 CUDA formats, and Metal command batch fusing.
– Storage I/O acceleration via Linux io_uring direct I/O batching (with automatic fallback) alongside tokenizer host memory reclamation (approx. 350 MB).
Mitigation of Excessive GPU Memory Allocation in Long Contexts and Bug Fixes
A cap has been introduced on the prefill workspace size for resident MoE models. This reduces unused workspace and graph allocations ranging from 16 to 57 GB on models with 64K to 256K context lengths (such as DeepSeek-V4.1-Flash on 256 GB Apple Silicon or Qwen3.8-Flash-Next on 128 GB Apple Silicon).
Additionally, interrupted states are now shared across integrated prompt groups, fixing bugs (#294, #238) where aborting long prompts could lead to non-finite outputs or pollute the prefix cache.
Sliding Window Memory Allocation Optimization
Request memory allocation and reclamation have been modified to use sliding window history limits (#291). This avoids issues where long prompts are rejected due to charging for window storage that is not actually required. This impacts users inputting long texts with models that use sliding windows.
KV Prefix Cache Eviction Priority Improvement
Newly retained 0-hit KV prefix cache entries are now assigned initial prefill recomputation values. This prevents bugs where active conversation prefixes might be discarded before lower-value caches during memory eviction processing.
License Clarification in Rust Workspace and Packages
The Apache-2.0 license has been explicitly declared in the Rust workspace and various package manifests (#273). Previously, Cargo manifests listed them as UNLICENSED, which caused tools like cargo metadata, cargo deny, or SBOM tools to misidentify them as proprietary or unpermitted. This affects project maintainers utilizing dependency auditing tools.
Supported Models and Hardware
In this version (@magnitudedev/cli@0.3.6), operational optimizations and speedups are applied to specific large MoE models and hardware environments. Below is a summary of the supported environments and models.
Supported Models and Architectures
Streaming inference speedups and significant memory reduction optimizations are applied to the following large MoE models:
- DeepSeek-V4.1-Flash
Prefill and decode processing speeds are improved, and workspace allocation during large context operations is capped to enable execution with minimized unnecessary memory consumption. - Qwen3.8-Flash-Next
Inference speedups and memory savings are implemented in Apple Silicon and NVIDIA GPU environments, including NVFP4 quantization formats. - GLM-5.3 Flash
Improvements in decode and prefill speeds alongside reductions in host memory consumption have been confirmed for streaming inference. - Sliding Window Supported Models
Memory allocation aligned with sliding window history limits is applied, preventing long text inputs from being rejected due to unnecessary storage requests.
Supported Hardware and Operating Environments
magnitude is an engine that operates models by combining GPU, RAM, and SSD, and this version enhances the utilization of various hardware features.
- Apple Silicon
On high-capacity Apple Silicon environments such as 128 GB or 256 GB, running large MoE models with 64K to 256K long contexts eliminates 16 to 57 GB of unused workspace allocations. Execution performance is also improved via Metal command batch fusing. - NVIDIA GPU
On-device CUDA host staging, zero-rebind CUDA graph replay, and fused quantization tile packing for all 29 CUDA formats have been added, improving MoE model execution efficiency on NVIDIA GPUs. - Linux
In Linux environments, batchedio_uringdirect I/O (with automatic fallback) is adopted, unifying and accelerating data transfers from storage and I/O scheduling. - Other Environments (CPU / AMD / Intel)
Whilemagnitudeitself supports CPUs, AMD, Intel, and daily PC/Mac environments, the streaming inference optimizations and GPU execution improvements in this release are particularly effective on Apple Silicon, NVIDIA GPUs, and Linux storage configurations.
How to Get It
Specific command-line procedures regarding package installation or updating for this release are not directly documented in official materials.
For details on updating to the latest version @magnitudedev/cli@0.3.6 and detailed setup steps, please check the official GitHub releases page and project repository guidelines.
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.5 | 2026-11-26 | GitHub |
| @magnitudedev/cli@0.3.4 | 2026-11-26 | GitHub |
| @magnitudedev/cli@0.3.3 | 2026-11-26 | GitHub |
| @magnitudedev/cli@0.3.2 | 2026-11-25 | GitHub |
| @magnitudedev/cli@0.3.1 | 2026-11-25 | GitHub |
Related Articles
- Magnitude CLI 0.2.14 Released: Faster CPU Decoding and More
- Magnitude CLI 0.2.10 Released with Memory Fixes and New Quantizations
- magnitudedev/magnitude v0.2.6 Released: Major Mac Speedups
- Magnitude CLI v0.2.5 Released: M5 Mac & MoE Speedups
What to Read Next
- Follow this tool → Magnitude overview and release history (24 releases tracked)
- Other inference engines and runtimes → llama.cpp / Ollama / vLLM
Sources
Engines and ToolsApple Silicon,DeepSeek-V4.1-Flash,Magnitude,MoE,NVIDIA CUDA,Qwen3.8-Flash-Next,Verified

