Skip to main content

Hardware

Mac with 16 GB unified memory

The catalogued Qwen3 8B Q4_K_M GGUF (5.028 GB) in LM Studio at 4,096 tokens needs about 6.8 GiB of 12.0 GiB available unified memory, with one user, FP16 conversation memory and a 20% safety allowance. Ollama's 5.2 GB package is a different file. Drop to Qwen3 4B if memory pressure rises.

Example: 16 GB unified memoryUpdated

At a glance

Model sizes to check
1B–4B · 8B Q4 · 14B Q4 fits in Ollama and LM Studio at 4,096 tokens, with little room left
Likely bottleneck
The stated 4,096-token example gives Qwen3 8B room within the 16 GB Mac’s shared-memory budget; Qwen3 14B Q4_K_M fits with Ollama and LM Studio but leaves little room for other apps.
Good first workload
A short rewrite or source-based question with Qwen3 8B Q4_K_M at 4,096 tokens, then repeat with the applications you normally keep open.
Upgrade trigger
Move beyond 16 GB when the model or document workload you actually need fails the memory check even after closing avoidable apps and using a smaller context.

What this profile is for

This profile assumes an Apple Silicon Mac with 16 GB total unified memory. The model, graphics, macOS, browser, and other apps share that pool; it is not 16 GB of dedicated VRAM beside separate system RAM.

Start with one small chat

Follow install LM Studio for a visual setup. In Discover, choose a Qwen3 8B GGUF build labeled Q4_K_M, inspect its file size, and load it with 4096-token context. A different quantization or an MLX package is a different memory case.

For a command-line setup, follow install Ollama, then run ollama run qwen3:8b. In the chat prompt use /set parameter num_ctx 4096 before your first short question. If memory pressure rises sharply, try ollama run qwen3:4b-q4_K_M instead. The library's Q4_K_M downloads are about 5.2 GB and 2.6 GB respectively; file size is only the starting cost.

Why 8B first: at 4,096 tokens the catalogued GGUF in LM Studio needs about 6.8 GiB of the 12.0 GiB the calculator counts as available, so it fits with room for a browser. Speed depends on memory bandwidth, which is how fast the chip can read the model from memory. On an M5 chip (153 GB/s) the upper limit for Qwen3 8B is about 29 tokens a second, worked out from that bandwidth and the 5.2 GB file; real speed is lower. Qwen3 4B has roughly twice that limit.

Worked memory example

Open the 16 GiB unified-memory LM Studio calculation. It selects Qwen3 8B, Q4, 4,096 tokens, one user and a 20% safety allowance. The calculator uses GiB and includes model weights, context and runtime allowances in the shared pool. Replace the example capacity with your actual memory and select Ollama if that is your app.

Compare it with Activity Monitor's Memory Pressure and Swap Used while chatting with your normal applications open. If pressure climbs or swapping grows, shorten context, close another loaded model, or choose the 4B model.

When to try a larger model

Keep Qwen3 8B if it handles your writing or short coding questions. Move up only for a task it fails, and repeat a normal conversation with your usual apps open. Document chat and image input need extra room for their own parts.

Qwen3 14B Q4 fits at 4,096 tokens in both apps: the catalogued GGUF needs 10.58 GiB with LM Studio, leaving 1.42 GiB of the 12.0 GiB available, and 10.13 GiB with the recorded Ollama package, leaving 1.87 GiB. Either way it leaves little room for other apps, so 24 GB or more is the comfortable choice.

Google says Gemma 4 12B runs with 16 GB of VRAM or unified memory. Its documentation lists the weights at 6.7 GB in 4-bit (Q4_0) and 13.4 GB in 8-bit, before conversation memory. On a 16 GB Mac only the 4-bit build leaves room for macOS and your apps; the 8-bit build (12.5 GiB) is more than the calculator's 12.0 GiB budget. Try it after Qwen3 8B works.

The graphics side gets only part of the memory

macOS limits how much unified memory the GPU part of the chip may use. Apple does not publish the default. Community reports put it near two thirds of memory on Macs with 32 GB or less: about 10.7 GiB on this Mac, below the 12.0 GiB the calculator treats as available. The calculator gives 12.0 GiB after its system allowance. Metal also reports a recommended GPU working-set size. Load the selected 8B file at 4,096 tokens, inspect placement and check Memory Pressure during a real chat before raising context.

Use the Mac setup comparison to choose the app. If loading fails, follow memory troubleshooting before downloading a larger file.

Sources

Ollama's Qwen3 downloads, Ollama context settings, Google's Gemma 4 12B announcement, Gemma memory requirements, community reports of the macOS GPU memory limit.