A 4-bit Phi-4 run on a 64 GB M4 Pro generated 27.6 tokens per second at 1K and 18.2 at 16K. That makes context length worth testing before you choose it for long documents. A separate RTX 5060 Ti run kept the Q4_K_M model on its 16 GB GPU.

Microsoft released Phi-4 on December 12, 2024. This is the MIT-licensed microsoft/phi-4 text model in the 14B class, not Phi-4-mini, Phi-4-reasoning, or Phi-4-multimodal. The original model card specifies a 16K context and reports MMLU 84.8 and GPQA 56.1 under Microsoft’s evaluation settings. Those quality scores are not measurements for the 4-bit builds below.

What did people measure on Mac, NVIDIA and AMD?

PP is prompt processing and TG is token generation, both in tokens per second. TTFT is time to first token. The linked testers ran these benchmarks; OnDevice Works did not run them.

Hardware Test conditions PP TG TTFT
M4 Pro, 20-core GPU, 64 GB macOS 26.5.1, oMLX 0.4.4, 4-bit, 1,024 context, batch 1 238.6 27.6 4.291 s
RTX 5060 Ti, 16 GB llama.cpp 3fc4e10, Q4_K_M GGUF fully on GPU, Flash Attention, q8_0 K/V, no speculative decoding; separate 512-input and 128-output tests 2,033 45.6 Not reported
Radeon 8060S, Ryzen AI Max+ 395, 128 GB unified memory Windows, ROCm 7.1, Ollama 0.34.4, Q4_K_M, Flash Attention, 16K configured context 135 at about 4K; 122 at about 12K 5.0 for one stream 0.75 s

On that Mac, reported peak memory rose from 8.6 GB at 1K to 13.2 GB at 16K. The PC tester measured 8,873 MiB peak VRAM in the short synthetic RTX test. Neither figure is a minimum system requirement. The AMD tester measured 8.9 tok/s combined across four streams; that is not one answer’s speed.

The same NVIDIA tester measured Qwen3-8B at 80.6 tok/s in the same 128-output test, versus 45.6 for Phi-4. That comparison is for this machine and protocol only. The Mac and AMD results measure different workloads and should not be ranked alongside it.

Choose the 14B text model for a checkable job

Use the exact Microsoft Phi-4 checkpoint identified above. It is a dense text model in the 14B class. Its official evaluation describes the publisher’s own conditions. When you choose a local conversion, verify a task with a known answer before relying on those reported scores. Start with a small reasoning or comprehension problem that resembles the work a reader will give the model. Track the output the reader can actually use.

A short arithmetic check can include one condition that changes which operation is required. For example, “A team orders 18 notebooks in packs of six. One already paid pack is included in the 18. How many additional packs should it pay for?” The answer is two, because 18 requires three packs in total and one was already paid. Ask for the result and one sentence of explanation. A correct number with an explanation that ignores the paid pack should be reviewed, because it may be a guess that will fail on the next version.

Include a negative case before trusting an explanation

Make a companion prompt where packs are still six each but the order does not give a total. Ask whether there is enough information to calculate the remaining count. The correct conclusion is that the total is missing. Keep a near match that gives 18 as the number ordered on a different date. This helps determine whether the model is reading the applicable line or calculating from any plausible number in the prompt. Check the two final answers independently.

For a writing or reading task, choose a requirement that depends on a short exception. Give a brief source that says all pickups are before noon, with a later line allowing refrigerated pickups at 13:15. Ask for the result for that specific kind of pickup, and verify the time and exception. If a larger reply omits the qualifier, keep the failure even if it appears polished. Use the exact excerpt to verify that a format change preserves the source logic.

Read the Mac context comparison in two measurements

The published M4 Pro session moved from 27.6 to 18.2 output tokens per second between its 1K and 16K points, a difference of 9.4 tokens per second. Its benchmark peak moved from 8.6 to 13.2 GB, a difference of 4.6 GB. This gives a reason to test context with the real input. It leaves open how long the job waits before useful output at the larger point and whether a heavily loaded system can reproduce the same behavior.

Begin with the source excerpt that contains all information needed to answer. Then try a longer version that adds project notes or older decisions without removing the necessary exception. Preserve the exact expected answer while changing input size. Record the actual prompt length and system behavior with your normal apps open. If a model loads at 1K and the whole session becomes uncomfortable at a larger length, record the observed fit boundary rather than choosing from the download size alone.

Use completion time when a comparison informs an interactive choice

Set an actual deadline and note when generation starts, when the final answer first becomes usable and when it finishes. Keep a line for results that did not finish or gave a wrong answer. If a reported benchmark only includes a fixed number of output tokens, use that number to describe its measure. A short explanatory answer and a much longer answer may show different user waits at the same reported decode rate.

When trying a smaller model, use the same problem, text and output requirement as the Phi-4 run. If both give the correct result, choose the one that fits the user’s wait and capacity needs under matched conditions. If the smaller one is faster but overlooks the exception, preserve the result for a narrower task where it is actually correct. A paired comparison shows the size trade-off for a job, while an unrelated hardware row supplies a different kind of evidence.

Handle the PC rows as measured configurations

The RTX 5060 Ti test used separate input and output microbenchmarks. The same test author’s comparison with Qwen3-8B reports different output speed on a short fixed protocol. It does not tell you how each model would answer the notebook problem or how long it would take to reach the start of a finished answer. The Radeon submission includes aggregate throughput under multiple streams. A single user’s original task needs its own one-request evidence.

When evaluating on a PC, note the exact conversion and confirmed device placement before interpreting memory use. Compare the actual number of input and output tokens with any benchmark you cite. An engine using the GPU as requested is still subject to the real configured cache and prompt. If a system exposes peak process memory, dedicated VRAM and total memory separately, keep the measures in separate fields. The existing figures use different units and scopes and should not substitute for one another.

Leave a useful record after adapting the prompt

For each practice case, save the selected model and input, the expected answer, the actual complete reply, observed start and finish and any case you excluded because it failed. Note why a small excerpt is sufficient in one task and why a longer source is necessary in another. If you use structured output, verify the values after parsing, then save what the recipient actually gets. A model can answer correctly in a chat display and still be consumed incorrectly by an application.

Before changing quantization or the runner, retain a known working version. Repeat the positive and negative cases with a fresh value so a stored response cannot serve as a result. Verify the logic, the time it takes for your task and the system fit. Those observations give you a defensible reason to choose the local Phi-4 setup for some jobs while continuing to review others.

Separate arithmetic errors from the way a prompt was framed

Use a second notebook example with a different rule. Suppose there are 19 notebooks needed, six per pack, and one paid pack already counts. Four packs in total are required because three supply only 18. The number still to pay for is three. Keep the original 18-notebook example and this rounding case together. Verify that the model’s explanation shows the same counting rule rather than answering three simply because the order contains more than 18. Scoring both cases can tell you whether an efficient reply still handles the boundary.

If the response gives a decimal number of packs, look at whether the question explicitly says only whole packs are sold. Add that constraint and compare the same values. If the answer is correct after narrowing the question, keep the prompt rule with your result. If both versions end early, inspect the route’s actual completion and output cap before judging the arithmetic. Preserve which stage failed so a prompt improvement is not confused with changing model capacity.

For a workflow that saves results elsewhere, verify the final note keeps “additional” separate from “total.” A model might report the total packs correctly but put that number in the additional field. Check each label as well as the value. Keep both tested cases in the handoff so a later user can repeat them after changing model or runtime. Read the saved fields directly before using them to make a real decision.

What should you install and check first?

Compare the same question on a short excerpt and on the whole source. Ask for one exact fact with a fixed short reply, then check both results. Record the delay and accuracy separately so a faster answer taken from the wrong passage does not win the comparison.

  • Mac: Choose a 4-bit conversion of the exact microsoft/phi-4 checkpoint in oMLX.
  • NVIDIA: Load the Phi-4 Q4_K_M GGUF in llama.cpp. Check the startup log to see how much of the model is on the GPU.
  • AMD: Test Ollama’s exact Q4_K_M package and confirm your run uses the AMD GPU rather than assuming GPU acceleration.

Use one short text prompt first. Record first-token time, generation speed and memory use. Then repeat with a document of the length you actually use, without changing the quantization, runtime or max output length. For structured output, separately check whether the model returns valid JSON consistently; fast generation does not establish that.