To get more tokens per second from a local model on a MacBook, start with the model build and the length of the prompt it actually receives. In our M5 Max tests, Qwen 3.6 processed a short writing task in 2.74 seconds and a much longer prompt in 16.18 seconds. Both replies had the same 256-token cap. The longer prompt took extra time to read before the output started.
1. Pin the model build and runner
Write down the hardware, Ollama version and exact model tag. Two builds of the same model can use different weight formats or acceleration. On an Apple Silicon Mac, Ollamaโs explicit MLX and NVFP4 tags make the intended runner clear. Compare a build on your own prompt before deciding to use it for every job.
The three Qwen models we tested had different strengths. Qwen 3.6 had the highest median generation rate across our production-style panel. Qwen 4 was much faster than the dense Qwen 3.8 27B in our document-review sample. If a smaller or faster model misses required facts, the time lost to review and retries belongs in your comparison.
2. Measure prompt time and output time separately
With the listed model installed in Ollama, this example returns native timing fields from a warm local request. It uses jq to read the JSON. Change the model and prompt to match your own workload, then run each condition once to warm it and repeat it with comparable examples.
curl -fsS http://127.0.0.1:11434/api/generate \
-H 'Content-Type: application/json' \
--data '{"model":"qwen3.6:35b-a3b-nvfp4","prompt":"Describe how to check the totals on a spreadsheet.","think":false,"stream":false,"options":{"num_ctx":8192,"num_predict":256,"temperature":0}}' |
jq '{
input_tokens: .prompt_eval_count,
output_tokens: .eval_count,
prompt_seconds: (.prompt_eval_duration / 1e9),
output_tokens_per_second: (if .eval_duration > 0 then .eval_count * 1e9 / .eval_duration else null end),
total_seconds: (.total_duration / 1e9)
}'
Record the total as well as the generation rate. If your application is slow to show the first text, also time the first streamed chunk. A few tokens of exact JSON and several paragraphs of prose can yield very different rates on the same setup.
3. Fit the context to the job
Set the context high enough for instructions, source text and a complete answer. Remove duplicated excerpts and stale conversation history before making it smaller. Verify that required information near the beginning and end of the document still affects the result. For a memory-limited Mac, compare the loaded modelโs reported allocation with the machineโs memory pressure while you run the real task.
4. Test acceleration against a fixed baseline
Make a run with the normal settings before changing one option. Then try the accelerated configuration on the same prompts, at the same context sizes, with the same output budget. Look for an improvement across multiple prompts. A change that accelerates a long written answer can have little effect on a short verdict attached to a large document.
On our Qwen 4 GGUF build, output generation was 12โ14% faster with drafting off for the three synthetic prompt lengths we tested. On the native MLX build, the same request option left drafting active. The Qwen 4 multi-token prediction test shows how we confirmed the difference. Compare package defaults as well, since our MLX and GGUF runs showed a larger total-time gap at the longest input.
Use the Qwen 4 and 3.6 speed comparison for measured task timings and the Qwen 4 and 3.8 document comparison for examples of quality checks you can use alongside speed.
