b6190357ba
Cross-host Gemma 4 throughput comparison across three architectures. Harness at scripts/gpu-bakeoff/; writeup at docs/reference/gpu-bakeoff-2026-04-20.md. Key findings: - RTX 3090 Ti wins decode decisively (128 tok/s on gemma4:26b MoE Q4, ~4.7× faster than gemma4:31b dense on the same card). - AMD Strix Halo iGPU lands at ~42% of 3090 Ti decode on ~25% of the memory bandwidth — good SIMD utilization, especially for MoE. - V100 numbers are DEGRADED: CT 167 ai-visualizer SDXL consumes 31/32 GB of its VRAM, forcing Gemma 4 models 95% onto CPU. Isolated V100 run requires SDXL eviction — left as follow-up. - MoE vs dense is the dominant latency factor across all GPUs: ~4 B active params of gemma4:26b beats 31.3 B active of gemma4:31b by the same ratio (~4.7×) on every card tested. Methodology: 1 warmup + 3 measurement runs per (host × model × prompt-length), Ollama's canonical timing fields, temp=0 greedy, num_predict=256. All three Ollama servers accessed via HTTP (Strix via Tailscale). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
81 lines
1.8 KiB
JSON
81 lines
1.8 KiB
JSON
{
|
|
"host": "pve197",
|
|
"gpu": "Tesla V100-PCIE-32GB",
|
|
"vram_gb": 32,
|
|
"model_alias": "gemma4:31b",
|
|
"model_tag": "gemma4:31b-it-q4_K_M",
|
|
"prompt_key": "long",
|
|
"prompt_chars": 1614,
|
|
"num_predict": 256,
|
|
"num_ctx": 4096,
|
|
"runs": [
|
|
{
|
|
"prompt_tokens": 318,
|
|
"prompt_eval_ms": 728.7,
|
|
"prefill_tok_per_s": 436.37,
|
|
"output_tokens": 256,
|
|
"eval_ms": 163511.0,
|
|
"decode_tok_per_s": 1.57,
|
|
"load_ms": 495.0,
|
|
"total_ms": 164970.4,
|
|
"harness_wall_s": 164.977,
|
|
"done_reason": "length"
|
|
},
|
|
{
|
|
"prompt_tokens": 318,
|
|
"prompt_eval_ms": 682.8,
|
|
"prefill_tok_per_s": 465.71,
|
|
"output_tokens": 256,
|
|
"eval_ms": 168727.1,
|
|
"decode_tok_per_s": 1.52,
|
|
"load_ms": 545.3,
|
|
"total_ms": 170207.4,
|
|
"harness_wall_s": 170.214,
|
|
"done_reason": "length"
|
|
},
|
|
{
|
|
"prompt_tokens": 318,
|
|
"prompt_eval_ms": 950.0,
|
|
"prefill_tok_per_s": 334.75,
|
|
"output_tokens": 256,
|
|
"eval_ms": 163102.9,
|
|
"decode_tok_per_s": 1.57,
|
|
"load_ms": 507.9,
|
|
"total_ms": 164801.8,
|
|
"harness_wall_s": 164.809,
|
|
"done_reason": "length"
|
|
}
|
|
],
|
|
"warmup": {
|
|
"prompt_tokens": 318,
|
|
"prompt_eval_ms": 3883.3,
|
|
"prefill_tok_per_s": 81.89,
|
|
"output_tokens": 256,
|
|
"eval_ms": 172199.4,
|
|
"decode_tok_per_s": 1.49,
|
|
"load_ms": 528.0,
|
|
"total_ms": 176864.8,
|
|
"harness_wall_s": 176.871,
|
|
"done_reason": "length"
|
|
},
|
|
"summary": {
|
|
"prefill_tok_per_s": {
|
|
"min": 334.75,
|
|
"median": 436.37,
|
|
"max": 465.71,
|
|
"n": 3
|
|
},
|
|
"decode_tok_per_s": {
|
|
"min": 1.52,
|
|
"median": 1.57,
|
|
"max": 1.57,
|
|
"n": 3
|
|
},
|
|
"total_ms": {
|
|
"min": 164801.8,
|
|
"median": 164970.4,
|
|
"max": 170207.4,
|
|
"n": 3
|
|
}
|
|
}
|
|
} |