A 16 GB M1 Mac ran Llama 3.1 8B Instruct at 13.8 output tokens/s after a 1,024-token input. It took 7.8 seconds to start writing. At 4,096 tokens it still generated 12.5 tokens/s, but the first token took 32.2 seconds. That is why this model can be useful for short offline jobs on an older Mac and still feel slow on a long document. On PC, the tests below show which settings to compare before you buy hardware or change runtimes.

Model release: 2024-07-23. Meta’s announcement. All measurements below are from the original testers. OnDevice Works did not rerun them.

Which model is this?

This guide is for Meta Llama 3.1 8B Instruct, a text-input and text-output instruction model. It excludes the pretrained base, Llama 3 8B, the 70B and 405B versions, and third-party fine-tunes. GGUF and MLX packages here are conversions of the named Instruct checkpoint, not new model releases. Q4_K_M GGUF and MLX 4-bit do not use the same weights representation.

Meta lists a 128K context window. That is a model limit, not a claim that a local machine can handle a 128K prompt at usable speed. The weights are available under the Llama 3.1 Community License, not Apache 2.0. Check the terms if you plan to redistribute the weights or build a product around them.

What do the official scores measure?

Evaluation Reported score What the task checks
MMLU, 5-shot 69.4 Multiple-choice questions across academic and professional subjects
IFEval 80.4 Whether answers meet mechanically checkable instructions
HumanEval, 0-shot pass@1 72.6 Whether the first code sample passes the task’s tests
GSM-8K, 8-shot chain of thought 84.5 Grade-school math word problems under the specified prompting setup

These are Meta’s Instruct model-card results, not an evaluation of every quantized package below. A fast decode result does not establish accuracy. Before replacing a working model, test it on one real extraction or rewrite where you can check missing facts and formatting.

What did Mac, NVIDIA and AMD runs measure?

Prefill (PP) is input processing speed. Generation (TG) is output speed once the model starts writing. Time to first token (TTFT) is the measured wait for the first token, not a value calculated from PP. Use all three when comparing interactive work. A combined throughput number from many parallel requests is not one user’s generation speed.

Fourteen devices on the same short-prompt test

The chart uses the exact Q4_K_M LocalScore benchmark model and one workload: 1,024 input tokens, 16 output tokens. It shows one submitted run per listed device, not each device’s fastest result. The main table identifies the package version. These share a benchmark protocol, not a controlled lab, and use different hosts, OSes and accelerator backends. This is a useful baseline, not a hardware leaderboard or the speed you should expect from every application.

Llama 3.1 8B Instruct: measured LocalScore output speedFourteen selected entries using Q4_K_M and the same 1,024 input, 16 output token test. Actual output rates in tokens per second, not a lab ranking. Full measured first-token results and original links are in the following table.Llama 3.1 8B Instruct · output speedLocalScore · Q4_K_M · 1,024 input / 16 output tokens0255075100RTX 3090 desktop104RTX 4090 desktop98.6RTX 5090 desktop79.8RTX 5080 desktop75.1RTX 3070 desktop67.6Radeon RX 7900 XTX60.4RTX 5090 Laptop GPU59.7Radeon RX 7800 XT45.2Apple M5 Ultra (64 GPU)102Apple M5 Max (40 GPU)80.9Apple M5 Pro (20 GPU)46.7Apple M4 Pro (16 GPU)33.1Apple M2 (10 GPU)16.3Apple M1 (8 GPU)15.1
Output tokens per second on the same LocalScore short workload. These are selected submitted runs, not guaranteed device speeds. Measured first-token times and run links are below.
Device / reported capacity llamafile Prefill tok/s Output tok/s Measured TTFT
RTX 3090 desktop / 24 GB 0.9.2 4,200 104 253 ms
RTX 4090 desktop / 24 GB 0.9.3 9,430 98.6 119 ms
RTX 5090 desktop / 31 GB reported 0.9.2 7,830 79.8 143 ms
RTX 5080 desktop / 16 GB 0.9.2 6,413 75.1 173 ms
RTX 3070 desktop / 8 GB 0.9.2 2,576 67.6 413 ms
Radeon RX 7900 XTX / 24 GB 0.9.3 1,044 60.4 997 ms
RTX 5090 Laptop GPU / 24 GB 0.9.3 3,802 59.7 285 ms
Radeon RX 7800 XT / 16 GB 0.9.3 681 45.2 1,530 ms
Apple M5 Ultra (64 GPU cores) / 256 GB 0.9.2 1,457 102 713 ms
Apple M5 Max (40 GPU cores) / 64 GB 0.9.2 919 80.9 1,130 ms
Apple M5 Pro (20 GPU cores) / 48 GB 0.9.2 464 46.7 2,230 ms
Apple M4 Pro (16 GPU cores) / 24 GB 0.9.2 339 33.1 3,050 ms
Apple M2 (10 GPU cores) / 24 GB 0.9.2 160 16.3 6,480 ms
Apple M1 (8 GPU cores) / 8 GB 0.9.2 146 15.1 7,090 ms

One illustration of the spread inside a GPU name: the two RTX 4090 submissions #3287 and #4329 produce 98.6 and 79.0 tok/s under that same short test. They are different Windows hosts, both listed as llamafile 0.9.3. That does not isolate a cause or mean either card is faulty. The benchmark methodology also publishes eight other prompt/output pairs. Do not substitute the platform’s all-tests average for this named short workload.

Longer input increases the wait before the first token

These two M1 entries came from one oMLX 0.2.19 run session: 16 GB unified memory, eight GPU cores, 4-bit weights, macOS 26.3.1. Peak memory is what oMLX reports, not total system memory in use.

Input Measured TTFT Prefill Generation Reported peak memory
1,024 tokens 7.799 s 131.4 tok/s 13.8 tok/s 5.5 GB
4,096 tokens 32.235 s 127.1 tok/s 12.5 tok/s 6.0 GB

On this Mac, the first-token wait got about four times longer while the generation rate fell by about 9%. That pattern also appears in the M5 Max LocalScore run: 1.13 s at 1,024 input tokens and 4.86 s at 4,096, with different output test lengths. Those are two points from another harness, not an oMLX comparison. If generation feels fine but pasting a document stalls your chat, start by trimming the input or retrieving fewer excerpts.

A format comparison on one Mac

In the mac-llm-bench 32 GB M5 test, the 4-bit MLX package reached 528.0 prefill tok/s at 512 tokens and 28.3 tok/s in tg128. The Q4_K_M GGUF package reached 179.3 and 10.8 tok/s in the corresponding columns. Peak process RSS was 5.06 GB for MLX and 4.72 GB for GGUF. This compares two packages and runtimes on one host; it does not isolate a format effect or measure TTFT. The same project reports 37.5 tok/s in tg128 on a 32 GB M2 Max with Q4_K_M GGUF. That is a separate setup, not evidence that the older chip is inherently faster.

Other PC tests are useful, but do not belong on the same chart

Source and device Runtime and test Prefill Generation Measured TTFT
RTX 5070 Ti, 16 GB llama.cpp, Q4_K_M, Timebench 3, one concurrent request 2,783.48 tok/s 140.90 tok/s 1.005 s
RX 7900 XTX, 24 GB llama.cpp, Q4_K_M, Timebench 3, one concurrent request 3,037.33 tok/s 108.60 tok/s 0.811 s
RX 7900 XTX, alternate quant llama.cpp, Q8_0, Timebench 3, one concurrent request 3,302.65 tok/s 80.98 tok/s 0.746 s
Intel Arc Pro B70, 32 GB llama.cpp b9739, Vulkan, Q4_K_M, fully offloaded, separate pp512/tg128 1,980.11 tok/s 42.00 tok/s Not measured
Same Arc Pro B70, Q5_K_M Same tests, heavier quant 1,889.51 tok/s 38.86 tok/s Not measured
Same Arc Pro B70, Q8_0 Same tests, heavier quant 2,053.59 tok/s 20.31 tok/s Not measured

The first three rows are the public run summaries for Timebench 3; the chart’s prompt length and output cap do not apply to them. On the B70, the highest prefill result was also the slowest decode of the three tested packs. Its Q4_K_M file was 4.58 GiB on disk, not a peak VRAM measurement. A separate same-author llama-bench series found 204.19 tok/s on an RTX 5090 and 120.67 tok/s on an RTX 3090 with Q4_K_M in its tg128 test. The author used different hosts. The difference from LocalScore is not evidence that one benchmark is wrong; standalone decode, short completion after an input, and different binaries test different things.

Server evidence answers another question. An RTX 4090 vLLM test reports 66 ms median TTFT and 456 tok/s aggregate at eight concurrent streams, using BF16. Its aggregate number is not personal chat speed. Winder’s single-H100 campaign, NVIDIA NIM and Intel Gaudi 3 are useful if you are evaluating a service. Keep them out of a desktop GGUF ranking.

Choose the setup using a result you can verify

The LocalScore 8 GB M1 run provides a starting point for a particular short output workload. If you use a Mac with the same memory capacity, verify one small prompt first and keep the exact model tag and package in your notes. Then send a representative task while the machine is doing the work you usually keep open. Record whether it completes, the time and whether the answer is correct. The result from an exact machine and benchmark answers a narrower question than everyday performance with other applications loaded.

Begin with a two-line editing task. For example, ask it to rewrite a note into one sentence while preserving that a draft is due Thursday and will be reviewed on Monday. Score the date attached to each action. Then ask the same type of question about a longer message with distracting context. If evaluation fails after adding length, check if the needed lines reached the model and whether the final answer cut off. Note any context setting and whether you reused the prompt.

Quantization choices should be tested against the same workload. Keep both candidates within the supported format and use the same prompts, output requirement and execution settings wherever possible. If different weight packages use different runtimes, report that as a combined comparison. Use the small and larger input trials for both candidates. A speed gain that appears only with the smallest input may have very little impact on your actual document review.

If the complete result matters, retain request-to-finish time and any first-text delay. The matched LocalScore table allows comparison under that short benchmark protocol, and other reports here have different builds and depths. Select one nearby measured setup to try. For your own workflow, qualify it with exact results instead of using a brand or capacity label as a guarantee.

How do I check my own setup?

For interactive chat, run the same short question with and without your document attached. Keep the file format and output limit fixed. Compare the wait for the first response and check which facts the answer used. This highlights a prefill bottleneck that a short decode benchmark may miss.

  1. Start with your current hardware. On an 8 GB Mac, one LocalScore submission shows the Q4_K_M model can run in a short test; it does not promise headroom with other apps open or long inputs. Start with 1K or less, close heavy apps, and compare with a smaller model if it swaps or starts too slowly. A 16 GB Mac gives more room, but the oMLX result above shows that memory alone does not fix prefill latency. On a PC, check that the runtime actually placed the model on the intended GPU.
  2. Use an exact package. For Ollama, the explicit command below selects Instruct Q4_K_M. For a Mac MLX runtime, choose the named 4-bit Instruct conversion. For a GGUF runtime, use a named Instruct GGUF conversion and record the exact filename, runtime version and GPU offload. Do not compare different quantizations just because both say “4-bit.”
  3. Benchmark reading and writing, then time real chat. llama-bench reports separate pp512 and tg128 rates; it does not measure an app’s first streamed token. Separately time one short prompt and one document prompt with the same output cap, one request at a time. Record the first visible streamed token and full response separately; note whether the model was already loaded and whether the prompt cache was reused.
  4. Check usefulness and headroom. Verify that a real answer includes the requested facts and follows the format. Check dedicated VRAM or Mac memory pressure and swap while it runs. Keep the faster configuration only if it still passes your quality check. If long input is the bottleneck, try a smaller input before buying a GPU.
ollama run llama3.1:8b-instruct-q4_K_M

If you already have a GPU-enabled llama.cpp build and the downloaded GGUF:

llama-bench -m /path/to/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf -ngl 99 -p 512 -n 128 -r 3

How we counted the evidence

The results ledger separates original run pages, repeated configurations and source families. LocalScore supplies many separately uploaded runs on identifiable device and host configurations under one public benchmark. Where the hardware, host and timestamps indicated repeats or a shared campaign, we grouped the records; submitter identity is not independently known for every entry. The LocalScore pages are not independent publications, and the 14 rows above are not a random market sample. The oMLX 1K and 4K cards are one session; the paired Radeon quantizations and Intel Arc variants similarly count as one campaign each. A model card, tool documentation or leaderboard that links existing runs adds context, not an extra benchmark.

Which runtime can I use?

Used in published benchmarks

Officially listed, not benchmarked here

The setup links are for Macs. Use the benchmark and official package links to check the exact build, model file and requirements on your own hardware.