How to Run Qwen 3 Flash Locally: Hardware, VRAM, and Engine Picks
A practical guide to running Qwen's large flash MoE model locally: memory needs, quantization, and how llama.cpp compares to vendor engines.

What does it take to run a large Qwen MoE model locally?
Running a large Qwen flash model locally means finding a machine with enough unified or video memory to hold the full weight file, then picking software that actually uses your hardware well. The model discussed here is a mixture-of-experts (MoE) design: roughly 125 billion total parameters, but only about 6 billion active per token. At 4-bit quantization, that works out to a 94 GB file. That number alone rules out any 64 GB machine and makes 128 GB systems the realistic entry point.
TL;DR
- The 4-bit quantized weight file is about 94 GB, which means you need a machine with 128 GB of unified or shared memory to load it at all, since the OS and other processes also need headroom.
- Mixture-of-experts architecture makes this model faster than its size suggests, because only around 6 billion of the roughly 125 billion parameters activate per token, unlike a dense model that uses all of its weights every time.
- Memory bandwidth drives token generation speed, while compute (GPU cores) drives prompt processing speed, and these two bottlenecks scale very differently across hardware.
- Vendor-specific inference engines dramatically outperform generic llama.cpp on the same hardware, sometimes doubling generation speed and cutting prompt processing time by a factor of five or more.
- A Mac Studio with an M5 Max chip delivered the fastest llama.cpp generation speed of the machines tested, largely because its memory bandwidth measured around 502 GB/s, roughly double the other systems.
- Price does not map cleanly to performance. A machine costing $3,000 more sometimes only gained a few extra tokens per second in generation, though it could still win heavily on prompt processing.
- Software-level optimizations like speculative decoding and engine-specific builds (TensorRT, MLX, vendor forks of llama.cpp) can matter as much as the hardware purchase itself.
Everyone else built a construction worker.
We built the contractor.
One file at a time.
UI, API, database, deploy.
How much memory do you actually need?
The headline number is the file size: about 94 GB for the 4-bit quantized version of the large Qwen flash MoE model. That means a 64 GB machine is out regardless of how fast its chip is. You need 128 GB of total memory, and even then you may need to manually raise how much of that memory the GPU is allowed to use, since operating systems reserve a chunk for everything else.
On a Linux mini PC tested with a Ryzen AI 9 HX370-class chip, the GPU was only allotted about 61 GB of memory by default. Since the model file is 94 GB, that’s nowhere close to enough. The fix was a kernel setting that raised the GPU’s memory ceiling to 116 GB, which left room for the file to load with headroom for context (the 133,000-token prompt used in testing was large enough to matter here). Without that adjustment, the model simply won’t fit.
Mac Studio systems have a similar quirk: macOS imposes its own default GPU memory limit, and running a model this size requires raising that ceiling manually before loading the weights. Skipping this step means the load fails even though the hardware technically has enough physical memory.
For comparison, a dense 27B version of the same model family produces a much smaller 19 GB file that fits on a 32 GB machine, and OpenAI’s GPT-OSS-120B model comes in around 63 GB, just over the edge of what a 64 GB machine can hold once overhead is accounted for.
Why does a mixture-of-experts model run faster than its parameter count suggests?
A dense model activates every parameter for every token it generates. A MoE model routes each token through a small subset of “expert” subnetworks and leaves the rest idle. In this case, the active footprint is about 6 billion parameters out of a roughly 125 billion total, so generation speed looks much closer to a 6B dense model than a 125B one, even though the full weight table still has to sit in memory.
This explains a seemingly odd result: across every machine tested, the larger 125B-class MoE model generated tokens faster than the smaller 27B dense model. The dense model has to touch all 27 billion parameters on every step; the MoE model only touches a fraction of its much larger table. Memory capacity cost goes up with a MoE model, but generation speed doesn’t necessarily suffer, and often improves.
Llama.cpp vs vendor engines: which should you use?
Llama.cpp is the baseline choice because it runs on essentially any hardware and any model format, which makes it the fairest way to benchmark different machines side by side on identical files. That consistency is also its weakness: it generally leaves performance on the table compared to an engine built for a specific chip.
When each machine switched to its own vendor-tuned engine, the gains were large:
- A Ryzen AI Max+ machine using a vendor-specific engine (referred to in testing as “Hallogen”) jumped from 26.6 tokens per second on llama.cpp to 51 tokens per second for single-user generation, nearly doubling throughput. Prompt processing on the large test prompt dropped from 8 minutes to 71 seconds.
- An Nvidia GB10-class system (the same silicon used in Nvidia’s DGX Spark) using TensorRT roughly doubled generation speed as well, hitting around 97 tokens per second in one run, with results across multiple runs ranging from about 63 to 112 tokens per second depending on memory settings. The large prompt that took 2.7 minutes on llama.cpp dropped to around 67 seconds.
- A Mac Studio using Apple’s MLX framework showed a similar pattern of large single-user speedups, though throughput dropped sharply as soon as a second concurrent user was added, a different scaling curve than the other two engines.
- The mini PC in testing (Strix Point silicon, distinct from Strix Halo) had no equivalent vendor engine available. Trying alternate llama.cpp builds, including a Vulkan backend, produced roughly the same speed as the default, meaning that machine simply had no upgrade path beyond llama.cpp.
Many of these vendor engines also default to speculative decoding, where the model quickly drafts several likely next tokens and verifies them in a single batched pass instead of generating one token at a time. When the draft guesses are correct, this effectively skips steps and speeds up generation, sometimes substantially.
How do memory bandwidth and compute change the picture?
Two separate hardware bottlenecks explain almost all the performance differences observed:
Token generation (decode) depends on memory bandwidth, because every new token requires re-reading the active weights from memory. In llama.cpp testing, measured bandwidth ranged from about 81 GB/s on the mini PC up to roughly 239 to 240 GB/s on the Ryzen AI Max+ and GB10-class machines, and around 502 GB/s on the Mac Studio with an M5 Max chip. Generation speed tracked this ordering almost exactly: about 10.6 tokens per second on the slowest machine versus 47.7 tokens per second on the Mac.
Prompt processing (prefill) depends on raw compute instead, specifically GPU core count. A Ryzen AI Max+ chip with 40 compute units processed a 133,000-token prompt in about 8 minutes, while a chip with only 16 compute units took nearly 27 minutes on the same prompt and same file. The GB10-class machine pulled further ahead here even though its generation speed was close to the Ryzen AI Max+, finishing the same large prompt in under 3 minutes thanks to stronger compute.
This split matters for anyone choosing hardware: if your workload involves short prompts and long generations (chat-style use), bandwidth matters most. If you’re feeding large codebases or long documents as context (the kind of agentic workloads many developers now run), compute and prompt processing speed matter just as much, sometimes more.
Is spending more money worth it?
Not always, and it depends heavily on which metric you care about. In testing, a machine priced about $3,000 higher than a Ryzen AI Max+ system only generated about 2.5 more tokens per second on the large MoE model, working out to roughly $1,200 per extra token per second if generation speed is your only concern. But that more expensive machine processed the large prompt nearly three times faster, a difference that matters a lot if you’re regularly handing large codebases or documents to the model.
The Mac Studio landed in between on price and came out ahead on raw generation speed thanks to its bandwidth advantage, while matching the fastest machine on prompt processing. Under multi-user load, it also posted the highest combined throughput at every tested user count, peaking around 70 tokens per second total with two simultaneous users.
The practical takeaway: match the purchase to the workload. Heavy single-session generation favors bandwidth-strong hardware. Large-context, codebase-style work favors compute-strong hardware. And whichever machine you buy, check whether a vendor-specific engine exists for it, because the jump from generic llama.cpp to a tuned engine can matter more than the hardware tier you pick.
Frequently Asked Questions
How much RAM or VRAM do I need to run this model locally?
At 4-bit quantization the weight file is about 94 GB, so you need a machine with at least 128 GB of total memory, and you’ll typically need to manually raise the default GPU memory allocation on both Linux and macOS to make room for the file plus context.
Is llama.cpp good enough, or do I need a vendor engine?
Llama.cpp works everywhere and is a reasonable starting point, but vendor-tuned engines (TensorRT on Nvidia’s GB10-class hardware, MLX on Apple Silicon, platform-specific builds on AMD’s Strix Halo chips) roughly doubled generation speed and cut prompt processing time dramatically in testing. If your hardware has a dedicated engine available, use it.
Does more expensive hardware always mean faster inference?
No. In one comparison, a $3,000 price gap between two machines translated into only a few extra tokens per second of generation speed, though the pricier machine processed large prompts far faster. The right choice depends on whether your workload is generation-heavy or prompt-heavy.
Why does the larger mixture-of-experts model generate faster than a smaller dense model?
Because only a fraction of its parameters (around 6 billion out of roughly 125 billion) activate per token, while a dense model of a given size activates all of its parameters every time. The MoE model costs more in memory but less in compute per generated token.
Does multi-user performance follow the same pattern as single-user speed?
Not necessarily. Engines scale differently under concurrent load: some hold single-user speed advantages but drop off sharply with a second user, while others stay flatter or even climb slightly as more users are added. Total throughput across all machines tended to converge more at higher user counts than single-user numbers suggested.
