The 4.75x in this comparison’s title is Phi-4 Mini’s 3.8 billion parameters divided by Qwen3.5-0.8B’s 0.8 billion (3.8 ÷ 0.8 = 4.75), a pairing that skips the sizes where the three families actually meet, so it should not decide anything. Google’s Gemma 4 launch post lists E2B and E4B as its edge models: E2B lines up with Qwen3.5-2B, and E4B with Phi-4 Mini and Qwen3.5-4B. The working order is to pick the tier your memory allows, then the family your task needs. Our anchor is a CPU run on 12 November 2026: on four cores Qwen3.5-0.8B generated 27.2 tokens/s in 0.81 GB and Qwen3.5-2B generated 14.7 tokens/s in 1.88 GB.
Don't miss new tech stories on Google
Add Tech Insider once in the Google app and our stories appear in your news suggestions.
The fair matchups sit at 2B and 4B, one tier above the title’s pairing
NVIDIA’s NIM model card lists Phi-4 Mini as a dense decoder-only transformer with 3.8B parameters. DeepInfra’s Qwen3.5-0.8B post says Alibaba Cloud released the Qwen3.5 small series on March 2, 2026, and the models.dev catalogue entry for Qwen3.5-4B records the same series, in four sizes (0.8B, 2B, 4B and 9B), announced on 2 March 2026 under Apache 2.0. Qwen’s own cards, Qwen3.5-0.8B and Qwen3.5-2B, cover the two smallest sizes. Setting Phi-4 Mini against the smallest Qwen pits a 4B-class model against a 1B-class one; the matched pairs sit one tier up: Gemma 4 E2B against Qwen3.5-2B, and Gemma 4 E4B against Phi-4 Mini and Qwen3.5-4B. Google released Gemma 4 on 2 April 2026 in four sizes (E2B, E4B, a 26B mixture of experts and a 31B dense model), and says E2B and E4B “activate an effective 2 billion and 4 billion parameter footprint during inference to preserve RAM and battery life”.
| Tier | Model | Size as the vendor names it | Released | Licence |
|---|---|---|---|---|
| About 1B | Qwen3.5-0.8B | 0.8B | 2 March 2026 | Apache 2.0 |
| About 2B | Gemma 4 E2B | Effective 2B | 2 April 2026 | Apache 2.0 |
| About 2B | Qwen3.5-2B | 2B | 2 March 2026 | Apache 2.0 |
| About 4B | Gemma 4 E4B | Effective 4B | 2 April 2026 | Apache 2.0 |
| About 4B | Phi-4 Mini | 3.8B | 27 February 2025 | MIT |
| About 4B | Qwen3.5-4B | 4B | 2 March 2026 | Apache 2.0 |
Sources for the table: Google’s launch post for Gemma 4’s sizes, date and Apache 2.0 licence, NVIDIA’s card for Phi-4 Mini’s size, release date and MIT licence, and the models.dev entry and DeepInfra’s post for the Qwen3.5 release date and Apache 2.0 licence. Context windows differ in a way that matters for prompts: Google gives Gemma 4’s edge models a 128K window and its larger models up to 256K, and Phi-4 Mini’s window is also 128K (131,072 tokens). Qwen3.5-0.8B’s own card says the model has a default context length of 262,144 tokens. Google documents native audio input for E2B and E4B, and says Gemma 4 is natively trained on over 140 languages.
One Gemma size needs care. Google says the 26B mixture of experts activates 3.8 billion parameters during inference, a figure its 26B A4B name rounds to 4B and one that puts it in Phi-4 Mini’s 3.8B speed class, but it also says the unquantized bfloat16 weights of the 26B and 31B models are sized to fit a single 80GB NVIDIA H100. That puts both in the workstation tier, whatever their active-parameter speed class. For the family as a whole, see our Gemma 4 open-model article.
Qwen3.5-0.8B and 2B on four CPU cores: 27.2 and 14.7 tokens/s in 0.81 and 1.88 GB
On 12 November 2026 we ran the two small Qwen3.5 sizes on our lab server: Ubuntu Linux on x86_64 (kernel 5.15), four virtual Intel cores, 7 GB of RAM and no GPU. The runtime was the official ubuntu-x64 release of llama.cpp, build 12314 (commit e1f7593c3), which unpacks to 57 MB, and the models were unsloth’s Q4_K_M GGUF files. Speeds come from llama-bench -t 4 -p 128 -n 64 -r 3, which times a 128-token prompt and 64 generated tokens in three runs. Memory and wall time come from /usr/bin/time around three runs of llama-completion with a 512-token context and 48 generated tokens at temperature 0. Gemma 4 and Phi-4 Mini were not run, so nothing here is a head-to-head and no speed or memory figure for them comes from our lab.


| Measurement | Qwen3.5-0.8B, all runs | 0.8B median | Qwen3.5-2B, all runs | 2B median |
|---|---|---|---|---|
| File size (Q4_K_M) | 532,517,120 bytes (one file) | 0.53 GB | 1,280,835,840 bytes (one file) | 1.28 GB |
| Generation, 64 tokens (tokens/s) | 27.23, 26.68, 27.63 | 27.2 | 14.71, 14.47, 15.10 | 14.7 |
| Prompt processing, 128 tokens (tokens/s) | 143.35, 83.21, 130.10 | 130.1 | 54.15, 64.57, 71.50 | 64.6 |
| Peak memory, 48-token run (kB) | 814,296; 814,504; 814,748 | 0.81 GB | 1,883,112; 1,882,696; 1,882,924 | 1.88 GB |
| Wall time, load plus 48 tokens (s) | 3.38, 3.65, 3.38 | 3.4 | 13.71, 5.97, 6.85 | 6.9 |
Divide the 2B medians by the 0.8B medians and no cost grows as fast as the 2.5x nominal parameter ratio: file size 2.41x, peak memory 2.31x, wall time 2.03x, prompt processing takes 2.01x as long and generation 1.85x as long per token. Stepping down from 2B to 0.8B frees 1.07 GB of peak memory (57%) and roughly halves load-plus-generation time, but generation gets only 1.85x faster.
The run-by-run tokens-per-second and memory readings for both model sizes sit in the lab server’s results file.

Short runs on this shared virtual machine are noisy. The 0.8B model’s prompt processing ranged from 83 to 143 tokens/s across three runs, and a separate single llama-completion run of the 2B model reported 4.34 tokens/s over 47 generated tokens, against the 14.7 in the table. That slow figure is not a second estimate of steady-state speed: 47 tokens at 4.34 tokens/s is about 10.8 s of generation alone, which fits only the 13.71 s first wall-time run and not the 5.97 and 6.85 s runs, so it sits with the cold-cache outlier rather than with the warm runs. llama-bench and llama-completion are also different tools, and we have not re-run the completion to settle the gap, so the table keeps the llama-bench medians and the single run stands as a reminder to repeat any measurement on your own device. Both models answered the prompt “Q: What is 17 times 23? A:” with 391 and then kept generating up to the 48-token limit, which makes it a sanity check, not a capability test.
Run the same two-model test on your own device
#!/usr/bin/env bash
set -euo pipefail
threads="${1:-4}"
work="$(mktemp -d)"
trap 'rm -rf "$work"' EXIT
cd "$work"
curl -fsSL -o llama.tgz \
https://github.com/ggml-org/llama.cpp/releases/download/b12314/llama-b12314-bin-ubuntu-x64.tar.gz
tar xzf llama.tgz
bench="$(find . -name llama-bench -type f -print -quit)"
bin="$(dirname "$bench")"
curl -fsSL -o qwen-small.gguf \
https://huggingface.co/unsloth/Qwen3.5-0.8B-GGUF/resolve/main/Qwen3.5-0.8B-Q4_K_M.gguf
curl -fsSL -o qwen-mid.gguf \
https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/Qwen3.5-2B-Q4_K_M.gguf
for model in qwen-small.gguf qwen-mid.gguf; do
echo "== $model"
"$bin/llama-bench" -m "$model" -t "$threads" -p 128 -n 64 -r 3 -o json
/usr/bin/time -f '%e s wall, %M kB peak RSS' \
"$bin/llama-completion" -m "$model" -t "$threads" -c 512 -n 48 --temp 0 -no-cnv \
-p 'Q: What is 17 times 23? A:'
done
The script works in a temporary directory that is deleted when it exits. The release asset is Linux x86_64; on macOS or ARM pick the matching llama.cpp release asset and swap /usr/bin/time -f, a GNU option, for your platform’s memory report. Set the thread count to the cores you will actually give the model in your product.
A memory budget by tier: the file, plus 0.28 to 0.60 GB of runtime, then your context
Peak resident memory ran 0.28 GB above the model file for Qwen3.5-0.8B and 0.60 GB above it for Qwen3.5-2B at a 512-token context (0.81 GB minus 0.53 GB, and 1.88 GB minus 1.28 GB). Budget the file plus 0.28 to 0.60 GB, treat that as a floor, and add room for your own context length, since this run used only 512 tokens. Qwen’s card gives a default context length of 262,144 tokens and advises reducing the context window if you hit out-of-memory errors, so set the window deliberately. File size tracked the model name closely, at about 0.67 GB per nominal billion parameters for the 0.8B model and 0.64 GB for the 2B (0.53 GB ÷ 0.8 and 1.28 GB ÷ 2).
Applied to Phi-4 Mini, that rule gives 3.8 × 0.64 to 0.67, roughly 2.4 to 2.5 GB on disk at Q4_K_M. It is an extrapolation from two Qwen models with a different architecture, so use it to shortlist and take the real figure from the file listing of the GGUF you download. Gemma’s sizes are effective counts, so the same shortcut is less safe there; read the file size of the build you plan to ship.
Our earlier Phi-4 Mini vs Gemma 3 vs Llama 3.2 comparison covers Llama 3.2 and the previous Gemma generation.
To read Phi-4 Mini’s real Q4_K_M file size when no pre-quantised GGUF suits you, llama.cpp’s converter and quantiser produce the file to measure:
#!/usr/bin/env bash
set -euo pipefail
# Run from a llama.cpp checkout; ./phi-mini-src is a local copy of the Hugging Face checkpoint
python convert_hf_to_gguf.py ./phi-mini-src --outfile phi-mini-base.gguf
./llama-quantize phi-mini-base.gguf phi-mini-quant.gguf Q4_K_M
Published scores: one overlap on GPQA, then each vendor’s own coding and math
The vendors report different tests, so a single scoreboard across the three would compare things that do not match. GPQA is the one test that both Gemma 4 and Qwen3.5 report, so its rows come first; the coding and math rows are each vendor’s own choice. The Gemma figures are from DeepMind’s Gemma 4 page, the Phi-4 Mini figures are Microsoft’s, as reproduced on NVIDIA’s card, the Qwen3.5-2B GPQA figure is from the Qwen3.5-2B card on Hugging Face, checked on 12 November 2026, and the Qwen3.5-0.8B figure is from the Qwen3.5-0.8B card, which lists it as GPQA Diamond 11.9. The Qwen3.5-0.8B IFEval figure is from the unsloth copy of the Qwen3.5-0.8B card, which lists it under instruction following in thinking mode.
| Model | Test | Score | Setting |
|---|---|---|---|
| Qwen3.5-0.8B | GPQA Diamond | 11.9 | Thinking mode |
| Qwen3.5-2B | GPQA | 51.6 | Thinking mode |
| Qwen3.5-0.8B | IFEval | 44.0 | Thinking mode |
| Gemma 4 E2B | GPQA Diamond | 43.4 | No tools |
| Gemma 4 E4B | GPQA Diamond | 58.6 | No tools |
| Gemma 4 E2B | LiveCodeBench v6 | 44.0 | Thinking |
| Gemma 4 E4B | LiveCodeBench v6 | 52.0 | Thinking |
| Gemma 4 E2B | AIME 2026 | 37.5 | No tools |
| Gemma 4 E4B | AIME 2026 | 42.5 | No tools |
| Phi-4 Mini | GSM8K | 88.6 | 8-shot, chain of thought |
| Phi-4 Mini | HumanEval | 74.4 | Microsoft model-card value |
| Phi-4 Mini | MMLU | 67.3 | Microsoft model-card value |
| Phi-4 Mini | MMLU-Pro | 52.8 | Microsoft model-card value |
Two cautions apply. The 11.9 for Qwen3.5-0.8B sits below the 25 percent a random guess earns on a four-option test, so treat it as evidence that this model does not handle this task in this setting, not as a precise measurement. And because the settings and labels differ (Qwen’s 2B card says GPQA, Google’s page says GPQA Diamond), the 8.2-point lead of Qwen3.5-2B (51.6) over Gemma 4 E2B (43.4) is indicative, not a ranking. The 0.8B IFEval score of 44.0 is a third test that only Qwen reports in this table, so it does not rank against any other row. Between Phi-4 Mini and Gemma 4 E4B nothing can be ranked at all: Microsoft reports GSM8K and HumanEval, Google reports LiveCodeBench and AIME 2026. Qwen3.5-4B has no row in this table, so measure it on your task before putting it in a decision.
Licence and route to the device: no fee in any of the three cases, then what each vendor ships
Licence does not separate the three. Google says Gemma 4 is “released under a commercially permissive Apache 2.0 license”, the models.dev catalogue lists the Qwen3.5 small series under Apache 2.0, and Phi-4 Mini is MIT per NVIDIA’s card. Local weights therefore carry no licence fee in any of the three cases, and hosting is optional: Google Cloud offers Gemma-4-26B-A4B-IT as a managed model with GPU and TPU deployment tutorials, for teams that would rather not run it themselves.
The routes to hardware differ. Google’s Gemma 4 launch post says E2B and E4B run offline on phones, Raspberry Pi boards and NVIDIA Jetson Orin Nano boards, and its post on the download milestone says Gemma has surpassed a billion downloads and that developers have published over one hundred thousand variants (checked 12 November 2026), so fine-tunes and tooling are plentiful. For Windows, Microsoft says ONNX-optimized Phi-4-reasoning and Phi-4-mini-reasoning run on Snapdragon-powered Copilot+ PCs, in an update dated 15 May 2025; that is the reasoning variant, not the base Phi-4 Mini. Qwen3.5 ran through llama.cpp in our test from unsloth’s Q4_K_M files, which is the route the measurements above describe.
Which model for which constraint, with the number that decides it
| Constraint | Pick | Deciding number | What you give up |
|---|---|---|---|
| About 1 GB free, short and narrow tasks | Qwen3.5-0.8B | 0.81 GB peak and 27.2 tokens/s on four cores | GPQA Diamond 11.9 in thinking mode, so expect weak results on hard science questions, and check instruction following on your own prompts |
| About 2 GB free, CPU only | Qwen3.5-2B | 1.88 GB and 14.7 tokens/s on four cores; GPQA 51.6 | Generation 1.85x slower than the 0.8B model |
| About 2 GB, audio input | Gemma 4 E2B | Native audio input; GPQA Diamond 43.4, LiveCodeBench v6 44.0 | No Gemma speed or memory from our lab; benchmark it on the device |
| About 4B, MIT licence wanted | Phi-4 Mini | MIT licence; Microsoft’s GSM8K 88.6 and HumanEval 74.4 are its own tests, not a ranking over Gemma 4 E4B | Roughly 2.4 to 2.5 GB on disk is an extrapolation, and no math or code score comparable with Gemma’s |
| About 4B with audio input | Gemma 4 E4B | GPQA Diamond 58.6, LiveCodeBench v6 52.0 | Read the real file size before budgeting |
| Workstation or server GPU | Gemma 4 26B mixture of experts or 31B | Google’s 3.8 billion active parameters in the 26B A4B; bfloat16 weights fit one 80GB H100 | Memory of the full model, not the active count |
Going from the 2B to the 0.8B model frees 1.07 GB and makes generation 1.85x faster, but the published GPQA figure falls from 51.6 to a below-chance 11.9, so the smaller tier is rarely the cheaper product. Use 0.8B when memory forces it, not as a default.
With around 2 GB free and CPU only, start with Qwen3.5-2B and put Gemma 4 E2B beside it if you need audio. Take Phi-4 Mini when the MIT licence matters and test its math and code against Gemma 4 E4B on your own prompts, since their published scores are on different tests; take Gemma 4 E4B when audio matters at the 4B tier, and put Qwen3.5-4B on the shortlist too. Then run llama-bench from the script above on the target device against the one or two Q4_K_M files you shortlisted, because our four-core virtual machine says nothing about phone or NPU speeds.
Correction, 12 November 2026: this comparison first gave Qwen3.5-0.8B’s GPQA score as 51.6; the figure published on the 0.8B card is 11.9.





