If you have a 16 GB Mac, don’t start by assuming the standard 4-bit build fits. One 16 GB M4 ran a 2-bit conversion with an assistant configured and reached 11.0 tok/s at 4K, but waited 61.8 seconds for the first token. A plain 4-bit run on a 32 GB M6 and a separate NVIDIA/AMD long-context sweep show why fit, first-token delay and output speed need separate checks.
Qwen released Qwen3.8-27B on August 14, 2026. This guide covers the Qwen/Qwen3.8-27B checkpoint and named local conversions, not Qwen3.8 Flash, a distillation or Qwen3.5-27B. The linked testers ran these measurements; OnDevice Works did not rerun them.
What does the official model score?
This Apache 2.0 dense model takes text and image input and produces text. Its model card lists 262,144 native context tokens, with an extension to one million using additional configuration. That describes the model, not a length every local setup can hold or process quickly.
| Qwen model-card evaluation | Published score |
|---|---|
| Terminal Bench 2.1 (Terminus) | 73.0 |
| SWE-bench Pro | 61.7 |
| DeepSWE 1.1 | 42.2 |
| CoWorkBench | 70.7 |
| IFBench | 79.5 |
| GPQA Diamond | 89.2 |
| LiveCodeBench v6 | 90.3 |
These are publisher scores with the conditions in the model card. SWE-bench Pro is not SWE-bench Verified. These results do not establish the quality of a particular 4-bit download.
Can a 32 GB Mac run Qwen3.8-27B?
A 16 GB experiment is not a 4-bit recommendation
An original 16 GB M4 run used 10 GPU cores, macOS 26.5.1, oMLX 0.6.3rc2 and a 2-bit MLX conversion. At 4,096 tokens it processed 66.3 PP tok/s, generated 11.0 TG tok/s, reached its first token after 61.797 s, and reported 10.9 GB peak memory. At 1,024 tokens it reported 63.7 PP, 11.1 TG and 9.6 GB peak. PP means prompt processing; TG means token generation.
The run’s recipe reports VLM MTP enabled, even though the plain MTP setting is off. That is a separate assisted configuration, not unassisted decode or an image benchmark. A 2-bit conversion also does not prove acceptable quality for your task. Compare against a higher-precision answer before relying on it. For typical 4-bit installations, the original M5 Max logs distinguish roughly 16 GB of weights from memory used to serve them. A file that is about as large as your Mac’s memory is not a fit test.
Observed 32 GB configurations
One M6 oMLX session tested a 12-core GPU and 32 GB unified memory with oMLX 0.7.0, macOS 27.0.1 and a package labeled Qwen3.8-27B 4-bit. PP measures how quickly the model processes input and TG how quickly it generates output, both in tokens per second. The run reports both MTP settings off. These are single-stream results, not the separate batching figures in that submission.
| Test point | PP | TG | Peak reported memory |
|---|---|---|---|
| 1K | 263.7 | 9.8 | 15.8 GB |
| 4K | 314.5 | 9.7 | 17.0 GB |
| 8K | 311.4 | 9.5 | 17.3 GB |
This shows one 32 GB configuration running the model, not a minimum memory requirement. An original M1 Max report from a 24-core GPU/32 GB Mac Studio found plain MLX 4-bit at 81.76 PP / 15.81 TG with 16.39 GB reported peak, compared with 99.61 PP / 9.69 TG in a separate llama.cpp test of Unsloth UD-Q4_K_M. The tester did not use an MTP or DFlash drafter for that comparison. Different packages and harnesses mean the result is useful for choosing a test, not isolating the effect of the runner.
Two other 4-bit oMLX records make useful lookup points at the same 4,096-token setting. Both report MTP and VLM MTP off, but their conversions and test hosts are not otherwise matched.
| Original sample | Runtime | PP / TG (tok/s) | Measured TTFT | Reported peak |
|---|---|---|---|---|
| M4 Pro, 20-core GPU, 24 GB | oMLX 0.6.2, macOS 26.6.2 | 132.1 / 15.1 | 30.999 s | 17.0 GB |
| M5 Pro, 20-core GPU, 48 GB | oMLX 0.6.2, macOS 26.6.1 | 486.8 / 17.8 | 8.415 s | 17.4 GB |
Fresh input versus a repeated prefix
An original M5 Max MacBook Pro benchmark reports a useful contrast within one MLX test arm. It used 128 GB unified memory, macOS 27.0.1, Bionic/LM Studio 1.1.7, the LM Studio community 4-bit MLX conversion, one streamed request, temperature zero and an output cap of 256 tokens for the long case. The MLX arm lists no draft model. The first measured request used an unseen prompt; the later runs repeated the same prefix. This is cold prefix versus reused prefix, not a timed app launch.
| 4-bit MLX workload on that M5 Max | Measured first token | Output rate |
|---|---|---|
| Short prompt, under 100 tokens | 0.293 s | 31.1 tok/s |
| Fresh prompt, about 2.5K tokens | 3.71 s | 29.2 tok/s for the ~2.5K scenario |
| Fresh prompt, 19,984 tokens | 36.0 s | 22.4 tok/s for the long scenario |
| Same long prefix repeated | 0.715 s | Not separately reported |
The source’s PP measurement used a separate one-token request. Its reported 497 tok/s long-prompt PP is not a substitute for measured TTFT. Its reasoning tokens count toward first response; the wait to a useful visible answer can be longer.
What changes at 100K context on NVIDIA and AMD?
RiKuWe published a depth sweep with the same Unsloth UD-Q4_K_XL weights. Each PP number is a 512-token prefill test after the listed context was already loaded; TG is a separate 128-token generation test. The 100K rows are not measurements of how long a cold 100K input takes to load.
| Hardware and backend | Preloaded tokens | PP | TG |
|---|---|---|---|
| RTX PRO 6000 Blackwell, CUDA | 0 | 4,126.92 | 74.73 |
| Same RTX PRO 6000 | 100,000 | 1,955.39 | 56.97 |
| Same RTX PRO 6000 | 250,000 | 1,049.22 | 42.29 |
| NVIDIA GB10, CUDA | 0 | 837.56 | 12.56 |
| Same GB10 | 100,000 | 502.12 | 9.06 |
| AMD Radeon 8060S, Vulkan | 0 | 365.24 | 12.33 |
| Same AMD system, ROCm | 0 | 378.24 | 12.06 |
| AMD Radeon 8060S, Vulkan | 100,000 | 41.57 | 9.00 |
| Same AMD system, ROCm | 100,000 | 121.85 | 9.05 |
On that same AMD machine, ROCm processed the additional prompt almost three times as fast at 100K, while output speed was nearly the same. At zero preloaded context, the prefill difference was much smaller. This is why backend choice matters more for some document workloads than it does for short chat.
A second original Radeon 8060S project tested a Ryzen AI MAX+ PRO 395 with an 80 GiB unified GTT pool, ROCm 7.14.0, and llama.cpp HIP pinned to build commit 4df29be. Its default UD-Q4_K_XL baseline at 131,072 configured context reports 10.1 tok/s per stream. That is a separate application setup; a configured window is not a preloaded depth. Reconcile the runtime commit, concurrency, quantization and context definition before combining AMD figures.
Desktop NVIDIA examples: memory budget and reuse
An original RTX 5080 16 GB study ran Unsloth UD-Q3_K_XL (12.24 GiB) with llama.cpp b10588 on Ubuntu 26.04, driver 595.84 and CUDA 13.3. In its separate depth sweep, generation was 57.10 tok/s at zero preloaded tokens and 33.70 tok/s at 131,072, where peak VRAM was 15,533 MiB. Its streamed server cache test measured 20.743 s fresh versus 0.151 s repeated with a 36,080-token prompt and 36,076 cached tokens. The cache section does not isolate the effect of MTP, so use only the within-setup latency contrast. The display was offloaded to an integrated GPU before testing.
For a different baseline, Kingy’s measured RTX 4090 desktop run reported 49.1 tok/s for Q4_K_M on llama.cpp b10453, the median of five synthetic 256-token decode repeats. The author’s estimated Mac results and separate 64K context-fill workload are not that 4090 decode measurement. The RTX 5080 and 4090 studies used different quantizations and workloads, so these numbers are not a ranking.
How much faster does speculative decoding make it?
Qwen trained an MTP head, short for multi-token prediction. Some runtimes can use it to draft tokens and verify them in groups, but the model package must preserve the head and the app must actually enable it. The benefit depends on how many proposed tokens are accepted.
In a separate run from the synthetic tests above, the same tester logged 96 coding requests on the RTX PRO 6000 with MTP enabled. Median output speed was 134.9 tok/s, with a reported range of 86 to 194. Do not divide this median by the 74.73 synthetic result to estimate an MTP speedup: they used different prompts and context states. Test your own workload with MTP on and off.
Separate accelerated runs from the baseline
- M5 Max, 128 GB, a 16K structured-output task: oMLX oQ4 and Lightning MTP generated 68.4 tok/s, versus 47.2 tok/s for oQ8 and MTP. Both ran with MTP, so this does not measure turning it on.
- M3 Ultra, 256 GB, Rapid-MLX 0.13.4 candidate with a verified 4-bit MTP build: at 8,156 actual input tokens and 256 output, median TTFT 24.656 s and TG 43.38 tok/s over three cold-prefix runs. Although the command omitted a speculation flag, this runtime enabled the compatible drafter automatically. The source records the artifact and runtime commits.
- In the Radeon 8060S project, a separate depth-1 MTP pairing reported 13.86 tok/s per stream. It is not a universal multiplier for the AMD baseline in the previous section.
What does DFlash reach on an M4 Max or M5 Ultra?
The MLX-Serve maintainer’s original benchmark tested the same named 4-bit Qwen3.8-27B conversion with DFlash on two Macs. The table records steady decode on a coding-completion prompt: ReleaseFast, the fastest configuration reported for each machine, warm-up excluded, and the median of three runs.
| Apple Silicon | Unified memory | MLX-Serve release | Decode (tok/s) | First-token time |
|---|---|---|---|---|
| M4 Max | 128 GB | 26.11.3 | 103 | Not reported |
| M5 Ultra (80-core GPU) | 256 GB | 26.11.3 | 244 | Not reported |
| M5 Ultra (80-core GPU) | 256 GB | 26.11.4 | 250 | Not reported |
Start with the two 26.11.3 rows if you want observations on the same runtime release. They do not isolate the chip: memory and the fastest selected settings also differ. The M4 Max was not measured in 26.11.4 for this conversion, so do not pair its 103 with the later 250 to estimate an upgrade. These results are for DFlash-assisted code completion, not chat latency, peak memory, long-context speed, or a comparison against the NVIDIA and AMD rows. If you try this configuration, first check that DFlash actually engages, then record both first-token time and decode on your own prompt.
Decide whether the fast path matches your input
If your application sends a new document for every request, start with the measured fresh-prefix case. An existing conversation with a reused prefix has a different workload. To check both, make one request with a short fixed note, repeat it with a new question using the same note, then try a second note of similar length and a similarly short question. Save the full outputs. A fast repeat that misses the changed value fails the task.
The 24 GB M4 Pro result reports 30.999 seconds to first token at the 4,096-token point and 15.1 output tok/s. For a workflow that must begin returning useful text within 20 seconds, that observed first-token time already exceeds the example limit. Use the source row to decide how to scope the first trial. A different runtime, model artifact or much shorter query may change the result. Record the new conditions instead of using this number as a standard wait on the Mac.
When comparing a documented DFlash, MTP or baseline configuration, name the package, draft model or method, runtime build, previous context, prompt and output limit. Give each comparison a concrete answer key. For an extraction example, vary one field in the input and require all fields in the output. Score omissions and unsupported changes even if generated token rates are high. If the original report measured only speed, leave accuracy as a separate open question.
Treat the 16 GB example as a way to select a carefully bounded trial. Check what package was selected, whether the system used swap and which workload actually completed. If the Mac is needed for other work while generation runs, try the same short extraction with the usual apps open. A larger task should earn its own pass before you depend on it. On a 32 GB machine, apply the same checks instead of assuming a roomier working set eliminates long initial waits.
How can I verify my own setup?
Record the exact conversion and whether an assistant model is enabled before your first test. Check the answer on a short prompt, then the time to the first readable answer on a real document. Keep the results for your exact setup separate from the plain 4-bit run reported on a larger Mac.
- Record the exact checkpoint, quantization, runtime version and GPU placement. If you need images or MTP, check that your chosen package includes the required components.
- Run a short uncached prompt first. Try a realistic long input with the same output cap, then replay that long input as a distinct cache test. Verify the run log for draft or MTP activation; a missing command-line flag is not proof that the feature was off. Record time to first token, time to a usable answer and peak memory. Check swap on Mac, or dedicated VRAM and offload on PC.
- Put one fact near the beginning and another near the end of the long input. Check both facts in the response. If either is missing or the wait is too long, reduce context or narrow the material before changing hardware.