Runs comfortably: Qwen3.8-27B needs 19.36 GiB on Apple M2 Max (Rough estimate)

Runs comfortably. Needs 16.11 GiB–19.36 GiB on Apple M2 Max (64 GB unified memory) against 54.00 GiB net. GGUF UD-Q4_K_M (Unsloth), 8,192 tokens. Rough estimate 64 GB unified memory is not discrete VRAM.

Conditional memory judgement for one configuration. Change context, quant, or engine and the conclusion can change. Configuration used on this page: GGUF UD-Q4_K_M (Unsloth), 8,192 cached tokens, 1 sequence, engine llama.cpp. Status: Likely fits. Software: Not verified..

Likely fitsNot verifiedThis result is an estimate, not a measured trace.

How this estimate is calculated

Catalog config for Qwen/Qwen3.8-27B (revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0) is the Hugging Face config.json linked below. text_config records 64 layers, hidden size 5,120, 24 attention heads, 4 KV heads, head_dim 256, and max_position_embeddings 262,144. The hybrid spec is 16 groups of 3 Gated DeltaNet layers and 1 gated-attention layer (16 attention layers, 48 linear layers). KV uses those attention layers only. The all-layer GQA formula is not used. This page pins GGUF UD-Q4_K_M (Unsloth), file Qwen3.8-27B-UD-Q4_K_M.gguf from unsloth/Qwen3.8-27B-GGUF, 16,464,440,224 bytes. The model page auto-select is GGUF Q4_K_M (mradermacher), file Qwen3.8-27B.Q4_K_M.gguf, a different published file. At 8,192 tokens, 1 sequence, FP16 KV, llama.cpp, the calculator estimates 16.11 GiB–19.36 GiB. This catalog has no calibration and no planned benchmark for this model. The range is a calculator estimate, not a measured run.

On Apple M2 Max the catalog net budget is 54.00 GiB after the default reserve. 64 GB unified memory is unified memory, one shared pool. Host RAM is not added on top.

Calculator notes for this setup

Verdict on Apple M2 Max 64GB unified (MacBook Pro / Mac Studio)

Yes, run Q8_0. The calculator puts it at 27.8 GiB–33.1 GiB at 8,192 tokens, inside 54.0 GiB of usable unified memory (after the OS reserve).

With Q8_0, the longest context that still counts as a fit is about 214,512 tokens of a 262,144-token native window, one sequence, fp16 KV cache.

Published GGUF quants for Qwen3.8-27B on Apple M2 Max 64GB unified (MacBook Pro / Mac Studio) at 8,192 tokens
GGUF quantFile weightsKV cacheEstimated totalVerdict
Q8_0 (recommended)27.1 GiB0.5 GiB27.8 GiB–33.1 GiBComfortable
Q6_K20.9 GiB0.5 GiB21.7 GiB–25.9 GiBComfortable
Q5_K_M18.2 GiB0.5 GiB19.0 GiB–22.7 GiBComfortable
Q4_K_M15.7 GiB0.5 GiB16.4 GiB–19.7 GiBComfortable

Engine llama.cpp, one sequence, fp16 KV. File weights are the published GGUF sizes in the catalog. Totals come from the same calculator that powers the tool below; they are estimates, not a measurement of this setup.

Fixed page configuration

Qwen3.8-27B GGUF Q4-class on M2 Max 64GB unified memory (not discrete VRAM).

Technical identifiers and share data
  • Modelqwen3.8-27b
  • Hardwareapple-m2-max-64gb-unified
  • Quantizationgguf-ud-q4_k_m
  • Share fragment for this identityv2.eyJzY2hlbWFWZXJzaW9uIjoyLCJjYWxjdWxhdG9yVmVyc2lvbiI6IjAuMy4wIiwiZGF0YXNldFZlcnNpb24iOiIyMDI2LTEwLTAyLjEiLCJjb25maWciOnsibW9kZWxJZCI6InF3ZW4zLjgtMjdiIiwiaGFyZHdhcmVJZCI6ImFwcGxlLW0yLW1heC02NGdiLXVuaWZpZWQiLCJkZXZpY2VDb3VudCI6MSwicXVhbnRpemF0aW9uSWQiOiJnZ3VmLXVkLXE0X2tfbSIsImNvbnRleHRUb2tlbnMiOjgxOTIsImNvbmN1cnJlbnRTZXF1ZW5jZXMiOjEsImVuZ2luZSI6ImxsYW1hLmNwcCIsImt2VHlwZSI6ImZwMTYifX0

Memory breakdown

Weight artifact
15.33 GiB (16,464,440,224 bytes)
Raw KV cache
0.50 GiB (536,870,912 bytes)
Engine extras / workspace
0.27 GiB–3.53 GiB
Total estimated demand
16.11 GiB–19.36 GiB
Net calculator budget
54.00 GiB
OS / display reserve
10.00 GiB
Remaining vs net budget
34.64 GiB–37.89 GiB

19.36 GiB high estimate vs 54.00 GiB net

Enough memory does not mean this engine, quant, and OS will run. Support does not mean it will be fast.

Other published files on this device

Same model, device and context (8,192 tokens, 1 sequence, FP16 KV). Each row is one published weight-file set with its usual engine, sorted by memory.

Show all 28 published files
QuantizationEngineEstimated memoryFit
BF16 safetensorsvllm53.02 GiB–63.15 GiBTight fit · Rough estimate
GGUF BF16 (Unsloth)llama.cpp51.68 GiB–61.08 GiBTight fit · Rough estimate
GGUF UD-Q8_K_XL (Unsloth)llama.cpp30.07 GiB–35.74 GiBRuns comfortably · Rough estimate
GGUF Q8_0 (Unsloth)llama.cpp27.83 GiB–33.10 GiBRuns comfortably · Rough estimate
GGUF Q8_0 (mradermacher)llama.cpp27.83 GiB–33.10 GiBRuns comfortably · Rough estimate
GGUF UD-Q6_K_XL (Unsloth)llama.cpp24.33 GiB–29.01 GiBRuns comfortably · Rough estimate
GGUF Q6_K (mradermacher)llama.cpp21.66 GiB–25.88 GiBRuns comfortably · Rough estimate
GGUF UD-Q5_K_M (Unsloth)llama.cpp19.19 GiB–22.97 GiBRuns comfortably · Rough estimate
GGUF Q5_K_M (mradermacher)llama.cpp18.97 GiB–22.71 GiBRuns comfortably · Rough estimate
GGUF Q5_K_S (mradermacher)llama.cpp18.44 GiB–22.10 GiBRuns comfortably · Rough estimate
GGUF UD-Q4_K_XL (Unsloth)llama.cpp17.13 GiB–20.55 GiBRuns comfortably · Rough estimate
GGUF Q4_1 (Unsloth)llama.cpp17.11 GiB–20.53 GiBRuns comfortably · Rough estimate
GGUF Q4_K_M (mradermacher)llama.cpp16.43 GiB–19.74 GiBRuns comfortably · Rough estimate
GGUF UD-Q4_K_M (Unsloth) This pagellama.cpp16.11 GiB–19.36 GiBRuns comfortably · Rough estimate
GGUF Q4_0 (Unsloth)llama.cpp15.73 GiB–18.91 GiBRuns comfortably · Rough estimate
GGUF Q4_K_S (mradermacher)llama.cpp15.51 GiB–18.66 GiBRuns comfortably · Rough estimate
GGUF IQ4_XS (mradermacher)llama.cpp15.13 GiB–18.22 GiBRuns comfortably · Rough estimate
GGUF Q3_K_L (mradermacher)llama.cpp14.33 GiB–17.28 GiBRuns comfortably · Rough estimate
GGUF UD-IQ4_XS (Unsloth)llama.cpp14.05 GiB–16.94 GiBRuns comfortably · Rough estimate
GGUF Q3_K_M (mradermacher)llama.cpp13.35 GiB–16.12 GiBRuns comfortably · Rough estimate
GGUF Q3_K_S (mradermacher)llama.cpp12.19 GiB–14.76 GiBRuns comfortably · Rough estimate
GGUF UD-IQ3_S (Unsloth)llama.cpp11.99 GiB–14.53 GiBRuns comfortably · Rough estimate
GGUF UD-IQ3_XXS (Unsloth)llama.cpp10.96 GiB–13.32 GiBRuns comfortably · Rough estimate
GGUF Q2_K (mradermacher)llama.cpp10.89 GiB–13.24 GiBRuns comfortably · Rough estimate
GGUF UD-IQ2_S (Unsloth)llama.cpp8.57 GiB–10.52 GiBRuns comfortably · Rough estimate
GGUF UD-IQ2_XXS (Unsloth)llama.cpp7.54 GiB–9.31 GiBRuns comfortably · Rough estimate
GGUF UD-IQ1_M (Unsloth)llama.cpp7.04 GiB–8.72 GiBRuns comfortably · Rough estimate
GGUF UD-IQ1_S (Unsloth)llama.cpp6.54 GiB–8.14 GiBRuns comfortably · Rough estimate

Assumptions that affect this result

Open this combo in the calculatorKV Cache

Related pages

Sources

Calculator

This combo page keeps the route model and device. Customize to change them on the main calculator; the share then keeps that identity.

Loading catalog snapshot…

Choose a model first, then check a device.

Quantization

Device type

Workload

Context length primarily affects KV cache memory.

Advanced settings
Runtime

Engine and KV cache type for this estimate.

Workload

Overhead scenario and the prefill workspace.

Topology

How the model is split across devices. Memory is not added together.

Replica count is an advanced deployment option. Quantity is nodes or GPUs, not replicas.

Budget

System reserve and safety margin. An empty number keeps the previous value.

GiB (2^30 bytes)

%

Custom model

Import a config or type the architecture. Nothing is scanned until you import.

Parsed in the browser. The file is not uploaded.

Only huggingface.co, config.json, no token. Private repos are rejected.

Search or pick a catalog checkpoint to see memory demand.

Search or pick a catalog checkpoint to see memory demand.