Small Apache-2.0 Models Against Gemma 4 E2B on One TPU v5e: Which Ones Keep Up?
Post · https://dev.to/gde/small-apache-20-models-against-gemma-4-e2b-on-one-tpu-v5e-which-ones-keep-up-mm4
Fourteen Apache-2.0 and MIT open-weight models that fit one TPU v5e chip, served one after another through vLLM on the same pinned image and scored on GSM8K and BFCL against Gemma 4 E2B. Qwen3-4B matches Gemma's accuracy at 0.57x its output, SmolLM3-3B and Granite 3.3 2B match it on tool calls, and Gemma keeps the lead on long prompts.
First seen by Oriel on .
AI summary
The article benchmarks small Apache-2.0 and MIT language models against Gemma 4 E2B on one TPU v5e, finding that Gemma leads on speed with long prompts while Qwen3-4B matches its measured accuracy at lower throughput.
- All models were served with the same pinned vLLM image and settings, then evaluated on 1,319 GSM8K problems and 400 BFCL tool-call records.
- Qwen3-4B scored level with Gemma on both tests, but generated at 0.57x its output speed and 0.36x its speed with 3,072-token prompts.
- SmolLM3-3B and Granite 3.3 2B were level with Gemma on BFCL, scoring 5.3 and 9.5 percentage points lower on GSM8K, respectively.
- Gemma’s single-head, sliding-window, shared KV cache holds 2.6 to 6.3 times as many tokens as several competitors, helping it retain speed with long prompts.
- The results apply to one TPU v5e-1 and the tested vLLM image; DeepSeek-R1-Distill-Qwen-1.5B and OLMo 2 1B failed to load or compile.
#llm inference #tpu #vllm #model benchmarking
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 4839822 | https://dev.to/gde/small-apache-20-models-against-gemma-4-e2b-on-one-tpu-v5e-which-ones-keep-up-mm4 Read discussion |