witcheer commited on
Commit
3cfafd7
·
verified ·
1 Parent(s): b83a6ca

add Gemma 4 31B report

Browse files
Files changed (1) hide show
  1. reports/gemma-4-31b-it-q6-k.md +97 -0
reports/gemma-4-31b-it-q6-k.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Report: gemma-4-31B-it (Q6_K)
2
+
3
+ **Date:** 2026-05-29
4
+ **Author:** WITCHEER
5
+ **Platform:** NVIDIA GeForce RTX 5090 Benchmark Rig (capsule)
6
+
7
+ ---
8
+
9
+ ## Model
10
+
11
+ | Field | Value |
12
+ |-------|-------|
13
+ | Model | gemma-4-31B-it |
14
+ | Parameters | 30.70 B (dense) |
15
+ | Quantization | Q6_K |
16
+ | File size | 23.47 GiB |
17
+ | Engine | llama.cpp (CUDA 12.8 (patched)) |
18
+
19
+ ## Hardware
20
+
21
+ | Component | Spec |
22
+ |-----------|------|
23
+ | GPU | NVIDIA GeForce RTX 5090 |
24
+ | CPU | AMD Ryzen 5 9600 |
25
+ | RAM | 64GB DDR5-5600 |
26
+ | OS | Ubuntu 26.04 LTS |
27
+ | CUDA | 12.8 (patched) |
28
+
29
+ ---
30
+
31
+ ## Quality Benchmarks
32
+
33
+ All benchmarks use generative evaluation via llama-server chat completions. Multiple-choice tasks (MMLU, ARC, HellaSwag) use letter extraction instead of loglikelihood scoring -- results are internally consistent for model comparison but absolute scores may differ from logprob-based evaluations by 5-15%.
34
+
35
+ ### Summary
36
+
37
+ | Benchmark | Score | Metric |
38
+ |-----------|------:|--------|
39
+ | **MMLU** | **87.82%** | accuracy |
40
+ | **ARC-Challenge** | **97.61%** | accuracy |
41
+ | **HellaSwag** | **91.95%** | accuracy |
42
+ | **HumanEval** | **95.73%** | pass@1 |
43
+ | **GSM8K** | **97.50%** | exact_match |
44
+
45
+ ### MMLU Breakdown by Category
46
+
47
+ | Category | Score | Correct / Total |
48
+ |----------|------:|----------------:|
49
+ | Stem | 87.52% | 1,319 / 1,507 |
50
+ | Humanities | 90.01% | 1,424 / 1,582 |
51
+ | Social Sciences | 92.86% | 1,535 / 1,653 |
52
+ | Other | 82.80% | 1,878 / 2,268 |
53
+
54
+ *Sampled at 50% (seed 42)*
55
+
56
+ ---
57
+
58
+ ## Speed Benchmarks
59
+
60
+ Measured with `llama-bench`. All layers GPU-offloaded (`-ngl 99`).
61
+
62
+ ### Prompt Processing (tokens/s)
63
+
64
+ | Context Length | Speed | +/-sigma |
65
+ |---------------:|------:|---------:|
66
+ | 128 | 2,486 | 170.3 |
67
+ | 512 | 2,932 | 29.7 |
68
+ | 2048 | 2,751 | 2.4 |
69
+ | 4096 | 2,657 | 1.6 |
70
+ | 8192 | 2,520 | 2.6 |
71
+ | 16384 | 2,316 | 3.1 |
72
+
73
+ ### Generation (tokens/s)
74
+
75
+ | Metric | Speed | +/-sigma |
76
+ |--------|------:|---------:|
77
+ | tg128 | 52.8 | 0.0 |
78
+
79
+ ---
80
+
81
+ ## Methodology
82
+
83
+ ### Evaluation Framework
84
+
85
+ Custom generative evaluators built for this rig. All benchmarks run through llama-server's `/v1/chat/completions` endpoint.
86
+
87
+ - **Scoring:** Generative evaluation (not loglikelihood)
88
+ - **Thinking:** disabled
89
+ - **MCQ scoring:** First valid letter extracted from response (A/B/C/D)
90
+ - **Sampling:** 50% of dataset used
91
+ - **Temperature:** 0 (deterministic)
92
+ - **Max tokens:** 2,048
93
+ - **GPU offload:** All layers (`-ngl 99`)
94
+
95
+ ---
96
+
97
+ *Benchmarked by WITCHEER on the RTX 5090 Benchmark Rig. Source: [github.com/notwitcheer/llm-bench-rig/blob/main/reports/gemma-4-31b-it-q6-k.md](https://github.com/notwitcheer/llm-bench-rig/blob/main/reports/gemma-4-31b-it-q6-k.md). Dataset: [huggingface.co/datasets/witcheer/rtx-5090-benchmarks/blob/main/reports/gemma-4-31b-it-q6-k.md](https://huggingface.co/datasets/witcheer/rtx-5090-benchmarks/blob/main/reports/gemma-4-31b-it-q6-k.md).*