Will It Run AI

Can Qwen 3.5 397B A17B run on Mac Studio M3 Ultra 256GB?

YES — With Q2_K

S91Excellent
Estimated from fit model

Qwen 3.5 397B A17B needs ~186.2 GB VRAM. Mac Studio M3 Ultra 256GB has 184.3 GB. With Q2_K quantization, expect ~15 tok/s.

Runtime: llama.cppCapacity: OffloadBandwidth: HighStack: StandardBottleneck: Balanced
Share:

Operating mode

Choose the run profile you care about

Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.

Current mode

Balanced

Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.

Qwen 3.5 397B A17B at Q4_K_M needs 273.6 GB — too much for Mac Studio M3 Ultra 256GB (184.3 GB). Runs at Q2_K (186.2 GB) with low quality.
Capabilities:

Select quantization to explore

Q4_K_M (Medium quality) 273.6 GB, exceeds 184.3 GB available
273.6 GB required184.3 GB available
148% VRAM needed

89.3 GB over capacity — needs offload or smaller quantization

Fit status

Too heavy

Decode

6.9 tok/s

TTFT

28047 ms

Safe context

4K

Memory

273.6 GB / 184.3 GB

Offload

30%

Memory breakdown

Weights242.2 GB
KV Cache2.9 GB
Runtime0.9 GB
Headroom27.6 GB

See how fast it feels

With memory offload — actual speed may be lower
See how fast it feelsQwen 3.5 397B A17B on Mac Studio M3 Ultra 256GB
1st promptCold start — includes initialization
>Write a Python function to sort a list
Here's a Python function that sorts a list using quicksort: def quicksort(arr): if len(arr) <= 1: return arr pivot = arr[len(arr) // 2] left = [x for x in arr if x < pivot] middle = [x for x in arr if x == pivot] right = [x for x in arr if x > pivot] return quicksort(left) + middle + quicksort(right) # Example usage numbers = [3, 6, 8, 10, 1, 2, 1] print(quicksort(numbers)) # [1, 1, 2, 3, 6, 8, 10] The algorithm picks a pivot, partitions the list into smaller, equal, and larger elements, then recursively sorts each partition and concatenates the results.
2nd promptWarm — model ready, no init overhead
>Now add type hints and a docstring
def quicksort(arr: list[int]) -> list[int]: """Sort a list using the quicksort algorithm. Args: arr: List of integers to sort. Returns: A new sorted list. """ if len(arr) <= 1: return arr pivot = arr[len(arr) // 2] left = [x for x in arr if x < pivot] middle = [x for x in arr if x == pivot] right = [x for x in arr if x > pivot] return quicksort(left) + middle + quicksort(right) Added type hints for the input and return type, plus a Google-style docstring.
Estimated: 6.9 tok/s decode · 28.0s TTFT (warm) · 17 tok/s prefill

What limits this setup

This setup is broadly balanced for this model.

Very little memory headroom

You can run the model, but there is not much room left for longer context, bigger batches, extra apps, or future model updates.

Shared-memory contention still exists

The OS, browser, and inference runtime all compete for the same physical memory pool, so real-world headroom is less forgiving than raw capacity suggests.

Best improvement path

Buy headroom, not only minimum fit

A slightly larger memory tier gives you safer context growth and makes the recommendation more future-proof.

Performance by workload

WorkloadGradeFitDecodeTTFTContext
ChatFToo heavy6.9 tok/s15207 ms4K
CodingFToo heavy6.9 tok/s28047 ms4K
Agentic CodingFToo heavy6.8 tok/s41283 ms4K
ReasoningFToo heavy6.9 tok/s33147 ms4K
RAGFToo heavy6.8 tok/s51604 ms4K

Quantization options

How Qwen 3.5 397B A17B (397B params) fits at each quantization level on Mac Studio M3 Ultra 256GB (184.3 GB usable).

QuantBitsVRAMQualityFit
Q2_K
2
154.8 GB
LowF0
Q3_K_S
3
194.5 GB
LowF0
NVFP4
4
222.3 GB
MediumF0
Q4_K_M
4
242.2 GB
MediumF0
Q5_K_M
5
285.8 GB
HighF0
Q6_K
6
325.5 GB
HighF0
Q8_0
8
424.8 GB
Very HighF0
F16
16
813.8 GB
MaximumF0

Get started

Copy-paste commands to run Qwen 3.5 397B A17B on your machine.

Run

docker run --rm -it ghcr.io/ggerganov/llama.cpp:full \ --hf-repo "Qwen/Qwen3.5-397B-A17B-Instruct" \ --hf-file "Qwen3.5-397B-A17B-Instruct-Q4_K_M.gguf" \ -c 4096 -ngl 99

Opções de upgrade

Hardware que roda bem Qwen 3.5 397B A17B

Frequently asked questions

Can Mac Studio M3 Ultra 256GB run Qwen 3.5 397B A17B?

Yes, Mac Studio M3 Ultra 256GB can run Qwen 3.5 397B A17B at Q2_K quantization (Runs with offload (needs ~1.6 GB host RAM)). The recommended Q4_K_M requires 273.6 GB which exceeds available memory, but at Q2_K it needs only 186.2 GB. Expected decode speed: 15.1 tok/s.

How much VRAM does Qwen 3.5 397B A17B need?

Qwen 3.5 397B A17B (397B parameters) requires approximately 273.6 GB at Q4_K_M quantization. On Mac Studio M3 Ultra 256GB, it fits at Q2_K using 186.2 GB.

What is the best quantization for Qwen 3.5 397B A17B?

The recommended quantization is Q4_K_M, but on Mac Studio M3 Ultra 256GB the best fitting quantization is Q2_K, which uses 186.2 GB.

What speed will Qwen 3.5 397B A17B run at on Mac Studio M3 Ultra 256GB?

On Mac Studio M3 Ultra 256GB, Qwen 3.5 397B A17B achieves approximately 15.1 tokens per second decode speed with a time-to-first-token of 12815ms using Q2_K quantization.

Can Mac Studio M3 Ultra 256GB run Qwen 3.5 397B A17B for coding?

For coding workloads, Qwen 3.5 397B A17B on Mac Studio M3 Ultra 256GB receives a F grade with 6.9 tok/s and 4K context.

What context window can Qwen 3.5 397B A17B use on Mac Studio M3 Ultra 256GB?

On Mac Studio M3 Ultra 256GB, Qwen 3.5 397B A17B can safely use up to 5K tokens of context at Q2_K quantization. The model's official context limit is 131K, but available memory constrains the safe maximum.

What should I upgrade first if Qwen 3.5 397B A17B feels slow on Mac Studio M3 Ultra 256GB?

Buy headroom, not only minimum fit. A slightly larger memory tier gives you safer context growth and makes the recommendation more future-proof.

Is unified memory on Mac Studio M3 Ultra 256GB as fast as VRAM for Qwen 3.5 397B A17B?

Not always. Mac Studio M3 Ultra 256GB can often fit larger models thanks to unified memory, but a discrete GPU with dedicated high-bandwidth VRAM may still decode faster once the model fits. For this combination, the important distinction is capacity versus sustained throughput.

See all results for Mac Studio M3 Ultra 256GBSee all hardware for Qwen 3.5 397B A17B
Embed this result

Paste this snippet into any page to show a live fit card.

<iframe src="https://willitrunai.com/embed/qwen-3.5-397b-a17b-on-m3-ultra-256gb" width="400" height="180" frameborder="0" style="border:none;border-radius:12px;overflow:hidden;" title="Will It Run AI — fit result"></iframe>

Preview: