Run Qwen3.8-27B on M5 Ultra

Qwen3.8-27B runs at 48 tok/s on a 256 GB M5 Ultra, a published figure reported by macstories.net (MLX, oQ4e, 6,091-token prompt). It needs about 19 GB of unified memory. It is Alibaba's 27.8B dense model, released under the Apache 2.0 licence.

Speed
sourced48
tok/s
First Token
sourced4.0
seconds
RAM Needed
19
GB minimum
Engine
MLX
of this figure
Want to run Qwen3.8-27B faster — or step up to bigger models? Find your Mac →

The figure

This is a published figure: a real run, reported by its source and linked below. The index records it as given and never adjusts it.

MetricValue
Tokens per secondsourced48 tok/s
Provenancepublished figure · macstories.net
QuantizationoQ4e
EngineMLX
Time to first token4.0s
Prompt processing (prefill)sourced1701 tok/s at 6K context
Context6,091-token prompt
Figure dated2026-09
Minimum RAM19 GB
Parameters27.8B
Chip bandwidth1228 GB/s

Every figure for Qwen3.8-27B on the M5 Ultra

Each row as the index holds it, with its source. “Mac RAM” is the memory of the Mac a run used, not the model’s requirement (19 GB). The headline figure follows the reference rule: the lower-median measured plain-decode run at 5 bits or fewer (a run whose quant was not stated counts only when no stated-quant run qualifies), else the estimate; a run marked “not used to anchor estimates” is listed here but never becomes the headline.

SpeedQuantEngineMac RAMContextSourceNote
sourced55 tok/sQ4_K_MLM Studio256 GB—bgr.com—
community54.7 tok/s4-bitMLX256 GB512-token prompt, 128 generatedgithub.comMac Studio, 80-core GPU, 256 GB, macOS 27.0. mlx_lm.benchmark -p 512 -g 128 -n 5 (mlx-lm 0.31.3, MLX 0.32.2): plain decode with no HTTP server or chat template, median of the five trial lines in the repo's engine.json; mlx-community/Qwen3.8-27B-4bit. The repo's headline test streams the same cell through mlx_lm.server (thinking and prompt cache off): 49.2 tok/s.
sourced48 tok/soQ4eMLX256 GB6,091-token promptmacstories.netMacStories review: oMLX 0.7.0.dev2, MTP off, thinking off, single run; Qwen3.8-27B-oQ4e-mtp checkpoint.
sourced46.27 tok/sQ4_K_Mllama.cpp256 GBISL 2048 / OSL 512, depth 0tomshardware.com80-core GPU. Tom's Hardware review; llama.cpp, no MTP.
sourced19.69 tok/sBF16MLX512 GB8,192-token context, 128 generatedmachinelearning.apple.comApple ML Research: mlx_lm.benchmark -p 8192 -g 128 -b 1 on one Mac Studio.
Provenance key
sourced
Published figure — vendor or press review
estimated
community
Linked individual run — blog, forum or submission

Speed by context depth: Qwen3.8-27B on the M5 Ultra

Measured figures only, each from its source’s own session; the index does not estimate long-context or prefill speed, so a missing cell is —. Each @ column is plain decode with that many tokens already in the prompt, from the same session as the row’s short-context figure: decode slows as the KV cache it reads grows. Prefill is prompt processing, the tokens per second a runtime reads a prompt at; with long agent contexts it sets how long you wait before the first token.

RunDecode (row)@4K@8K@16K@32K@64K@128KPrefillTTFT
MLX · 4-bit · 256 GB Mac · github.comcommunity54.7 tok/s
512-token prompt, 128 generated
community53.5 tok/s—community50.5 tok/scommunity47.6 tok/s——community1838 tok/s
at 4K
—
MLX · oQ4e · 256 GB Mac · macstories.netsourced48 tok/s
6,091-token prompt
————sourced38.9 tok/ssourced32.4 tok/ssourced1701 tok/s
at 6K
sourced4 s
MLX · BF16 · 512 GB Mac · machinelearning.apple.comsourced19.69 tok/s
8,192-token context, 128 generated
—sourced19.69 tok/s——sourced17.87 tok/s——sourced4.1 s

Setup: run Qwen3.8-27B on a Mac

Ollama — install it (brew install ollama or the app from ollama.com), then pull the model by its tag, checked on ollama.com on 2026-11-14:

ollama run qwen3.8:27b

MLX — pick a build from Hugging Face’s MLX listings, then run it with its repo id:

pip install -U mlx-lm
mlx_lm.generate --model <repo-id> --prompt "Hello"

Downloads: Ollama page → · Hugging Face model card →

The 48 tok/s figure above came from MLX at oQ4e; other runtimes and quants run at different speeds.

Prefer a GUI? LM Studio downloads GGUF and MLX builds in one click. Step by step: install Ollama on a Mac.

Qwen3.8-27B on other Apple Silicon chips

ChipSpeedQuantEngineBandwidth
M3 Ultracommunity38 tok/s4-bitMLX819 GB/s
M5 Maxcommunity31 tok/s4-bitMLX614 GB/s
M4 Maxestimated26 tok/sQ4_K_MMLX546 GB/s
M1 Maxestimated21 tok/sQ4_K_M—400 GB/s
M3 Maxestimated19 tok/sQ4_K_MMLX400 GB/s
M5 Prosourced17 tok/s4-bitllama.cpp307 GB/s
M4 Proestimated13 tok/sQ4_K_MOllama273 GB/s
M6community10 tok/s4-bitMLX170 GB/s

For the estimated figures here, the bandwidth formula’s typical error for dense models is ±9%, against 75 measured runs of 20 models (how it is computed).

About Qwen3.8-27B

Alibaba's Apache 2.0 27.8B dense vision-language model (2026-08-14): image and video input, 262K context (1M with YaRN), thinking mode with reasoning_effort. Runs 4-bit in ~19 GB, so it fits a 24 GB Mac; ~29 tok/s estimated on M5 Max, and BGR's review measured ~55 on an M5 Ultra and ~40 on an M3 Ultra — within 4% of the index's estimates. Model card: SWE-Bench Pro 61.7 (vendor scaffold), Terminal-Bench 2.1 73.0, LiveCodeBench v6 90.3, GPQA 89.2. 1,000+ GGUF quants; Ollama, llama.cpp and LM Studio supported.

Apache 2.0 licence · 27.8B · 262K context · LLMCheck capability 46/50 · see its leaderboard rank →

Memory by context length

Estimated, not measured: the index’s minimum for Qwen3.8-27B (19 GB — the weights at the quant that fits, plus ~2 GB) plus the KV cache for that many tokens, computed from its config.json. hybrid: full attention on 16 of 64 layers; Gated DeltaNet layers keep a constant state. A 16-bit KV cache is the default in llama.cpp, Ollama, LM Studio and mlx-lm; a q8 cache halves the KV part. Coding agents hold 64K tokens or more. Runtimes also add a buffer that grows with context, so leave a few GB spare. macOS lets the GPU use only part of a Mac’s memory by default (figures for an M5 Ultra Mac, which runs macOS 26 or later): “fits” means within the GPU memory a Mac of that tier can use with the limit raised, a tier tagged raise GPU limit fits only after sudo sysctl iogpu.wired_limit_mb raises it (the tooltip has the exact command), and the last column is the smallest Mac memory size whose default limit holds it (the GPU memory limit).

ContextKV cache (16-bit)RAM neededRAM, q8 KVSmallest tier that fitsWithin the default GPU limit
8K~0.5 GB~19.3 GB~19.1 GB24 GB Mac raise GPU limit32 GB Mac
32K~2.1 GB~20.9 GB~19.9 GB32 GB Macsame
64K (coding-agent context)~4.3 GB~23.0 GB~21.0 GB32 GB Macsame
128K~8.6 GB~27.3 GB~23.2 GB32 GB Mac raise GPU limit36 GB Mac

System requirements

Macs with the M5 Ultra

🛒 Get a Mac that runs Qwen3.8-27B

Qwen3.8-27B needs about 19 GB of unified memory. These Apple Silicon Macs have enough to run it. Apple builds the higher-memory configurations to order; Amazon does not stock them.

As an Amazon Associate, LLMCheck earns from qualifying purchases. These affiliate links cost you nothing extra and help keep the LLMCheck index free.

Compare More Models

See how Qwen3.8-27B stacks up against other models on your specific Mac hardware.

Open Compare Tool Full Leaderboard