Strata Runs Alibaba's 35B Qwen4 on a 6GB GPU by Streaming Weights
Strata ships a Qwen4-35B-A3B build that runs on a 6 GB GPU or 16 GB Mac, with three packs trading size for near-original quality.
Takeaways
- Strata released three quantized packs of Qwen4-35B-A3B sized 11.49, 22.64, and 28.08 GB.
- Runs on GPUs with as little as 6 GB VRAM or 16 GB Macs via expert streaming.
- Ultra pack matches the original model's next-token choice 97.6% of the time, Compact 89.3%.
- Weights use quantization-aware training, averaging 2.13 to 6.21 bits per expert vs. 16 original.
- Ships OpenAI- and Anthropic-compatible local API; works with Claude Code, Codex CLI, and others.
- Apache 2.0 model, MIT engine, free, no account needed via the Strata installer.
Strata has released three quantized packs of Qwen4-35B-A3B for local inference. Its runtime keeps active experts in GPU memory while streaming other weights from system RAM or storage, giving consumer hardware access to a 35-billion-parameter mixture-of-experts model.
The project advertises support for configurations with 6 GB of VRAM or a 16 GB Mac, although its smallest pack is tuned for a 12 GB graphics card. Lower-memory systems transfer more data between the GPU, RAM, and disk, which can reduce generation speed.
When this article was prepared, the model led Hugging Face’s trending list with hundreds of thousands of downloads, and the Strata repository had passed 44,000 GitHub stars. Hugging Face counts qualifying file requests, including repeated pulls, in its download metric, and trending rankings change over time.
Why 35B fits
Qwen4-35B-A3B is Alibaba’s mixture-of-experts model with 35 billion total parameters and roughly 3 billion active parameters for each token. A router selects a subset of specialized expert weights during inference, reducing the computation required for each generated token.
All 35 billion parameters still need to remain available somewhere. Strata places the current working set on the GPU and stores other experts in system memory or on disk, then predicts and fetches weights before the model needs them. GPU capacity, RAM bandwidth, storage speed, and prediction accuracy therefore affect throughput.
Pack size sets the trade
The three packs exchange storage and memory use for closer agreement with the full BF16 model. Core storage below includes the standard 11.52 GB lookup file and excludes optional modules.
| Pack | Pack file | Tuned VRAM | Core storage | Token agreement | High-confidence disagreement |
|---|---|---|---|---|---|
| Compact | 11.49 GB | 12 GB | 23.01 GB | 89.3% | 3.69% |
| Balanced | 22.64 GB | 24 GB | 34.16 GB | 96.8% | 0.13% |
| Ultra | 28.08 GB | 32 GB | 39.60 GB | 97.6% | 0.04% |
Every pack requires a lookup file that helps route and retrieve experts. The standard version is 11.52 GB, while a higher-precision 21.76 GB version adds 10.24 GB to each storage total. On discrete-GPU systems, the lookup occupies system RAM; on Macs, it draws from unified memory. A 16 GB Mac still needs at least 23.01 GB of storage for Compact and the standard lookup.
Add decoding, reasoning, or vision
- MTP: A 0.38 GB draft file intended to accelerate decoding through multi-token prediction.
- Loop: An add-on that runs a second reasoning pass.
- Vision: A module that accepts image input.
Compact pays a fidelity penalty
Strata measured each pack against the full BF16 model across 36 prompts and 5,760 generated tokens. Exact token agreement records how often a pack selected the same next token as the original model. The high-confidence figure records disagreements for tokens placed in the project’s most confident bucket.
Ultra and Balanced remain close to the BF16 output under this test. Compact changes more than one in ten tokens overall and 3.69% of high-confidence choices, making its memory savings the most consequential quality trade-off.
The sample is small, and a changed token can alter the rest of an autoregressive continuation. These results measure quantization fidelity under the tested prompts; coding accuracy, reasoning quality, tool use, long-context behavior, and workload-specific reliability still require separate evaluation.
Precision follows expert demand
Strata assigns more precision to frequently selected experts and to layers near the beginning and end of the network. Average expert weights use 2.13 bits in Compact, 4.85 bits in Balanced, and 6.21 bits in Ultra, compared with 16 bits in the BF16 model.
Quantization-aware training exposed the model to reduced-precision weights during optimization, allowing it to adapt to the compression. This approach generally preserves behavior better than applying equivalent rounding after training, particularly at aggressive bit depths.
Each pack also contains an expert-prediction guide of roughly 0.16 GiB. The runtime uses it to anticipate upcoming experts and prefetch their weights from RAM or storage. At the default settings, Strata reports context-memory use of 10,560 bytes per token, or about 0.32 GiB for a 32K-token context.
From install script to local API
Linux and macOS installation uses the project’s release script. Reviewing downloaded scripts before execution reduces supply-chain risk:
curl -fsSL https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh
less install.sh
sh install.sh
strata launch
After launch, Strata exposes OpenAI-compatible and Anthropic-compatible interfaces on localhost. Claude Code, Codex CLI, and other compatible clients can connect after their base URL and provider settings point to http://localhost or the address printed by the launcher.
The recommended generation settings are temperature=1.0, top_p=0.95, and top_k=20, with thinking mode enabled by default. Keep the service bound to the loopback interface unless remote access is protected with authentication, network controls, and encryption.
Throughput depends on how much of the working set fits in GPU memory, how often experts come from RAM or disk, storage latency, context length, and optional decoding modules. The release’s cited results cover fidelity, leaving tokens-per-second and time-to-first-token measurements to each hardware configuration.
Check the model page and engine repository for their respective license terms before redistribution or commercial deployment.
Where streaming works
- Local coding assistants: Connect editors and command-line tools through the compatible API when moderate latency is acceptable.
- Private document workflows: Keep prompts and retrieved documents on the machine, while auditing clients and plug-ins for external requests.
- Agent experiments: Run long loops without usage-based API charges, accounting for local hardware and electricity costs.
- Quantization research: Compare precision tiers and expert-streaming behavior on the same base model.
Workloads that require predictable low latency, high-throughput batching, or verified parity with the full model are better served by larger resident-memory systems or hosted inference. Systems below the advertised 6 GB VRAM floor, machines without sufficient SSD capacity, and quality-sensitive deployments also need a different configuration or a smaller model.