{"id":26116,"date":"2026-11-27T17:11:46","date_gmt":"2026-11-27T08:11:46","guid":{"rendered":"https:\/\/localmodelwatch.tsuchitsuchi.com\/2026\/11\/27\/magnitude-0-3-6-released\/"},"modified":"2026-11-27T19:11:53","modified_gmt":"2026-11-27T10:11:53","slug":"magnitude-0-3-6-released","status":"publish","type":"post","link":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/27\/magnitude-0-3-6-released\/","title":{"rendered":"Magnitude 0.3.6 Released: Speeds Up MoE Streaming &#038; Lowers Memory"},"content":{"rendered":"<p><!-- lmw:facts --><\/p>\n<h2>At a Glance<\/h2>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Repository<\/td>\n<td><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\">magnitudedev\/magnitude<\/a><\/td>\n<\/tr>\n<tr>\n<td>Version<\/td>\n<td><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/releases\/tag\/@magnitudedev\/cli@0.3.6\">@magnitudedev\/cli@0.3.6<\/a><\/td>\n<\/tr>\n<tr>\n<td>Published<\/td>\n<td>2026-11-27<\/td>\n<\/tr>\n<tr>\n<td>License<\/td>\n<td>Apache-2.0<\/td>\n<\/tr>\n<tr>\n<td>Source type<\/td>\n<td>Primary source (the publisher itself)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><em>Values determined by this site&#8217;s code when the information was collected. Dates are JST.<\/em><\/p>\n<p><!-- \/lmw:facts --><\/p>\n<h2>Overview<\/h2>\n<p>A new version of <a href=\"https:\/\/github.com\/magnitudedev\/magnitude\">magnitudedev\/magnitude<\/a>, <code>@magnitudedev\/cli@0.3.6<\/code>, has been released. <code>magnitude<\/code> 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.<\/p>\n<p>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.<\/p>\n<h2>Key Changes<\/h2>\n<h3>Faster Streaming Inference and Memory Reduction for MoE Models<\/h3>\n<p>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.<\/p>\n<p>Specifically, the following improvements are included:<br \/>\n&#8211; 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.<br \/>\n&#8211; 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.<br \/>\n&#8211; Storage I\/O acceleration via Linux <code>io_uring<\/code> direct I\/O batching (with automatic fallback) alongside tokenizer host memory reclamation (approx. 350 MB).<\/p>\n<h3>Mitigation of Excessive GPU Memory Allocation in Long Contexts and Bug Fixes<\/h3>\n<p>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).<\/p>\n<p>Additionally, interrupted states are now shared across integrated prompt groups, fixing bugs (<a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/issues\/294\">#294<\/a>, <a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/issues\/238\">#238<\/a>) where aborting long prompts could lead to non-finite outputs or pollute the prefix cache.<\/p>\n<h3>Sliding Window Memory Allocation Optimization<\/h3>\n<p>Request memory allocation and reclamation have been modified to use sliding window history limits (<a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/pull\/291\">#291<\/a>). 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.<\/p>\n<h3>KV Prefix Cache Eviction Priority Improvement<\/h3>\n<p>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.<\/p>\n<h3>License Clarification in Rust Workspace and Packages<\/h3>\n<p>The <code>Apache-2.0<\/code> license has been explicitly declared in the Rust workspace and various package manifests (<a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/pull\/273\">#273<\/a>). Previously, Cargo manifests listed them as <code>UNLICENSED<\/code>, which caused tools like <code>cargo metadata<\/code>, <code>cargo deny<\/code>, or SBOM tools to misidentify them as proprietary or unpermitted. This affects project maintainers utilizing dependency auditing tools.<\/p>\n<h2>Supported Models and Hardware<\/h2>\n<p>In this version (<code>@magnitudedev\/cli@0.3.6<\/code>), operational optimizations and speedups are applied to specific large MoE models and hardware environments. Below is a summary of the supported environments and models.<\/p>\n<h3>Supported Models and Architectures<\/h3>\n<p>Streaming inference speedups and significant memory reduction optimizations are applied to the following large MoE models:<\/p>\n<ul>\n<li><strong>DeepSeek-V4.1-Flash<\/strong><br \/>\n  Prefill and decode processing speeds are improved, and workspace allocation during large context operations is capped to enable execution with minimized unnecessary memory consumption.<\/li>\n<li><strong>Qwen3.8-Flash-Next<\/strong><br \/>\n  Inference speedups and memory savings are implemented in Apple Silicon and NVIDIA GPU environments, including NVFP4 quantization formats.<\/li>\n<li><strong>GLM-5.3 Flash<\/strong><br \/>\n  Improvements in decode and prefill speeds alongside reductions in host memory consumption have been confirmed for streaming inference.<\/li>\n<li><strong>Sliding Window Supported Models<\/strong><br \/>\n  Memory allocation aligned with sliding window history limits is applied, preventing long text inputs from being rejected due to unnecessary storage requests.<\/li>\n<\/ul>\n<h3>Supported Hardware and Operating Environments<\/h3>\n<p><code>magnitude<\/code> is an engine that operates models by combining GPU, RAM, and SSD, and this version enhances the utilization of various hardware features.<\/p>\n<ul>\n<li><strong>Apple Silicon<\/strong><br \/>\n  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.<\/li>\n<li><strong>NVIDIA GPU<\/strong><br \/>\n  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.<\/li>\n<li><strong>Linux<\/strong><br \/>\n  In Linux environments, batched <code>io_uring<\/code> direct I\/O (with automatic fallback) is adopted, unifying and accelerating data transfers from storage and I\/O scheduling.<\/li>\n<li><strong>Other Environments (CPU \/ AMD \/ Intel)<\/strong><br \/>\n  While <code>magnitude<\/code> itself 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.<\/li>\n<\/ul>\n<h2>How to Get It<\/h2>\n<p>Specific command-line procedures regarding package installation or updating for this release are not directly documented in official materials.<\/p>\n<p>For details on updating to the latest version <code>@magnitudedev\/cli@0.3.6<\/code> and detailed setup steps, please check the official GitHub releases page and project repository guidelines.<\/p>\n<p><!-- lmw:releases --><\/p>\n<h2>Releases Since Our Last Article<\/h2>\n<p><em>Compiled by Local Model Watch from the project&#8217;s GitHub releases: the versions between this release and the last one we covered, which did not get separate articles.<\/em> <em>Full history: <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-magnitude-en\/\">release tracker<\/a>.<\/em><\/p>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Version<\/th>\n<th>Released<\/th>\n<th>Release notes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>@magnitudedev\/cli@0.3.5<\/td>\n<td>2026-11-26<\/td>\n<td><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/releases\/tag\/%40magnitudedev\/cli%400.3.5\">GitHub<\/a><\/td>\n<\/tr>\n<tr>\n<td>@magnitudedev\/cli@0.3.4<\/td>\n<td>2026-11-26<\/td>\n<td><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/releases\/tag\/%40magnitudedev\/cli%400.3.4\">GitHub<\/a><\/td>\n<\/tr>\n<tr>\n<td>@magnitudedev\/cli@0.3.3<\/td>\n<td>2026-11-26<\/td>\n<td><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/releases\/tag\/%40magnitudedev\/cli%400.3.3\">GitHub<\/a><\/td>\n<\/tr>\n<tr>\n<td>@magnitudedev\/cli@0.3.2<\/td>\n<td>2026-11-25<\/td>\n<td><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/releases\/tag\/%40magnitudedev\/cli%400.3.2\">GitHub<\/a><\/td>\n<\/tr>\n<tr>\n<td>@magnitudedev\/cli@0.3.1<\/td>\n<td>2026-11-25<\/td>\n<td><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/releases\/tag\/%40magnitudedev\/cli%400.3.1\">GitHub<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><!-- \/lmw:releases --><\/p>\n<p><!-- lmw:related --><\/p>\n<h2>Related Articles<\/h2>\n<ul>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/magnitude-cli-0-2-14-released\/\">Magnitude CLI 0.2.14 Released: Faster CPU Decoding and More<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/magnitude-cli-0-2-10-released-2\/\">Magnitude CLI 0.2.10 Released with Memory Fixes and New Quantizations<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/10\/06\/magnitudedev-magnitude-026-released\/\">magnitudedev\/magnitude v0.2.6 Released: Major Mac Speedups<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/10\/03\/magnitude-cli-v0-2-5-released\/\">Magnitude CLI v0.2.5 Released: M5 Mac &amp; MoE Speedups<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:related --><\/p>\n<p><!-- lmw:next-steps --><\/p>\n<h2>What to Read Next<\/h2>\n<ul>\n<li><strong>Follow this tool<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-magnitude-en\/\">Magnitude overview and release history (24 releases tracked)<\/a><\/li>\n<li><strong>Other inference engines and runtimes<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-llama-cpp-en\/\">llama.cpp<\/a> \/ <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-ollama-en\/\">Ollama<\/a> \/ <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-vllm-en\/\">vLLM<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:next-steps --><\/p>\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/releases\/tag\/%40magnitudedev\/cli%400.3.6\">magnitudedev\/magnitude @magnitudedev\/cli@0.3.6<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/magnitudedev\/magnitude\/pull\/273\">Declare Apache-2.0 in the Rust workspace and package manifests (#273)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Magnitude 0.3.6 improves MoE streaming inference speed and reduces memory usage on Apple Silicon and NVIDIA GPU setups.<\/p>\n","protected":false},"author":1,"featured_media":26115,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[505,774,2791,165,5973,2967,1547],"class_list":["post-26116","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engines-and-tools","tag-apple-silicon-en","tag-deepseek-v4-1-flash-en","tag-magnitude-en","tag-moe-en","tag-nvidia-cuda-en","tag-qwen3-8-flash-next-en","tag-verified"],"lang":"en","translations":{"en":26116,"ja":26114},"_links":{"self":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/comments?post=26116"}],"version-history":[{"count":1,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26116\/revisions"}],"predecessor-version":[{"id":26195,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26116\/revisions\/26195"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media\/26115"}],"wp:attachment":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media?parent=26116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/categories?post=26116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/tags?post=26116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}