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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Benchmark Report: gpt-oss-20b (Q4_K_M)
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-05-28
|
| 4 |
+
**Author:** WITCHEER
|
| 5 |
+
**Platform:** RTX 5090 Benchmark Rig (capsule)
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## Model
|
| 10 |
+
|
| 11 |
+
| Field | Value |
|
| 12 |
+
|-------|-------|
|
| 13 |
+
| Model | gpt-oss-20b |
|
| 14 |
+
| Parameters | 20.91B (dense) |
|
| 15 |
+
| Quantization | Q4_K_M |
|
| 16 |
+
| File size | 10.83 GiB |
|
| 17 |
+
| Engine | llama.cpp (CUDA 12.8, sm_120) |
|
| 18 |
+
|
| 19 |
+
## Hardware
|
| 20 |
+
|
| 21 |
+
| Component | Spec |
|
| 22 |
+
|-----------|------|
|
| 23 |
+
| GPU | NVIDIA GeForce RTX 5090 (32 GB GDDR7) |
|
| 24 |
+
| CPU | AMD Ryzen 5 9600 (6c/12t, 3.8/5.2 GHz) |
|
| 25 |
+
| RAM | 64 GB DDR5-5600 |
|
| 26 |
+
| OS | Ubuntu Server 26.04 LTS (headless) |
|
| 27 |
+
| CUDA | 12.8 (patched for glibc 2.41 compat) |
|
| 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 | Correct / Total | Time |
|
| 38 |
+
|-----------|------:|--------|----------------:|-----:|
|
| 39 |
+
| **MMLU** (5-shot) | **78.56%** | accuracy | 11,031 / 14,042 | 3h 49m |
|
| 40 |
+
| **ARC-Challenge** (25-shot) | **94.62%** | accuracy | 1,109 / 1,172 | 10m 40s |
|
| 41 |
+
| **HellaSwag** (10-shot) | **74.49%** | accuracy | 7,480 / 10,042 | 3h 31m |
|
| 42 |
+
| **GSM8K** (5-shot, CoT) | **94.77%** | exact match | 1,250 / 1,319 | 22m 0s |
|
| 43 |
+
| **HumanEval** (0-shot) | **12.20%** | pass@1 | 20 / 164 | 2m 48s |
|
| 44 |
+
|
| 45 |
+
**Total evaluation time:** 7h 56m
|
| 46 |
+
|
| 47 |
+
### MMLU Breakdown by Category
|
| 48 |
+
|
| 49 |
+
| Category | Score | Correct / Total |
|
| 50 |
+
|----------|------:|----------------:|
|
| 51 |
+
| STEM | 89.83% | 2,711 / 3,018 |
|
| 52 |
+
| Social Sciences | 84.45% | 2,796 / 3,311 |
|
| 53 |
+
| Humanities | 77.45% | 2,456 / 3,171 |
|
| 54 |
+
| Other | 67.55% | 3,068 / 4,542 |
|
| 55 |
+
|
| 56 |
+
**Top 5 subjects:**
|
| 57 |
+
|
| 58 |
+
| Subject | Score |
|
| 59 |
+
|---------|------:|
|
| 60 |
+
| High School Computer Science | 99.0% |
|
| 61 |
+
| Elementary Mathematics | 96.8% |
|
| 62 |
+
| College Physics | 95.1% |
|
| 63 |
+
| High School Mathematics | 93.7% |
|
| 64 |
+
| College Biology | 92.4% |
|
| 65 |
+
|
| 66 |
+
**Bottom 5 subjects:**
|
| 67 |
+
|
| 68 |
+
| Subject | Score |
|
| 69 |
+
|---------|------:|
|
| 70 |
+
| Professional Law | 44.3% |
|
| 71 |
+
| Global Facts | 47.0% |
|
| 72 |
+
| Virology | 59.0% |
|
| 73 |
+
| Moral Disputes | 67.9% |
|
| 74 |
+
| Philosophy | 68.8% |
|
| 75 |
+
|
| 76 |
+
### Parse Reliability
|
| 77 |
+
|
| 78 |
+
The model uses extended reasoning (`reasoning_content` field) before responding. With `max_tokens=2048`, most reasoning chains complete successfully.
|
| 79 |
+
|
| 80 |
+
| Benchmark | Parse Failures | Failure Rate |
|
| 81 |
+
|-----------|---------------:|-------------:|
|
| 82 |
+
| MMLU | 653 | 4.6% |
|
| 83 |
+
| ARC-Challenge | 5 | 0.4% |
|
| 84 |
+
| HellaSwag | 37 | 0.4% |
|
| 85 |
+
| GSM8K | 0 | 0.0% |
|
| 86 |
+
| **Total** | **695** | **2.6%** |
|
| 87 |
+
|
| 88 |
+
Parse failures are scored as incorrect. The majority occur in MMLU subjects with long reasoning chains (professional_law, moral_scenarios) where the model's thinking exceeds the token budget.
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
+
|
| 92 |
+
## Speed Benchmarks
|
| 93 |
+
|
| 94 |
+
Measured with `llama-bench`. All layers GPU-offloaded (`-ngl 99`).
|
| 95 |
+
|
| 96 |
+
### Prompt Processing (tokens/s)
|
| 97 |
+
|
| 98 |
+
| Context Length | Speed | ±σ |
|
| 99 |
+
|---------------:|------:|---:|
|
| 100 |
+
| 128 | 7,221 | 67 |
|
| 101 |
+
| 512 | 16,750 | 149 |
|
| 102 |
+
| 2,048 | 13,524 | 12 |
|
| 103 |
+
| 4,096 | 11,685 | 44 |
|
| 104 |
+
| 8,192 | 9,414 | 16 |
|
| 105 |
+
| 16,384 | 6,678 | 14 |
|
| 106 |
+
|
| 107 |
+
### Generation (tokens/s)
|
| 108 |
+
|
| 109 |
+
| Metric | Speed | ±σ |
|
| 110 |
+
|--------|------:|---:|
|
| 111 |
+
| tg128 | 367.9 | 1.2 |
|
| 112 |
+
|
| 113 |
+
### Context Degradation
|
| 114 |
+
|
| 115 |
+
Prompt processing peaks at 512 tokens (16,750 t/s) then drops 60% at 16K context (6,678 t/s). This is the steepest degradation of any model in the rig — characteristic of smaller dense models with limited KV-cache efficiency.
|
| 116 |
+
|
| 117 |
+
---
|
| 118 |
+
|
| 119 |
+
## Methodology
|
| 120 |
+
|
| 121 |
+
### Evaluation Framework
|
| 122 |
+
|
| 123 |
+
Custom generative evaluators built for this rig. No dependency on `lm-evaluation-harness` — all benchmarks run through llama-server's `/v1/chat/completions` endpoint.
|
| 124 |
+
|
| 125 |
+
| Benchmark | Dataset | Eval Split | Few-shot | Scoring |
|
| 126 |
+
|-----------|---------|-----------|----------|---------|
|
| 127 |
+
| MMLU | `cais/mmlu` | test (14,042) | 5-shot per subject from `dev` | First valid A/B/C/D letter extracted from response |
|
| 128 |
+
| ARC-Challenge | `allenai/ai2_arc` | test (1,172) | 25-shot from `train` | First valid letter, numeric labels normalized to A–D |
|
| 129 |
+
| HellaSwag | `Rowan/hellaswag` | validation (10,042) | 10-shot from `train` | First valid A/B/C/D letter |
|
| 130 |
+
| GSM8K | `openai/gsm8k` | test (1,319) | 5-shot CoT from `train` | Exact match on extracted numeric answer |
|
| 131 |
+
| HumanEval | `openai/openai_humaneval` | test (164) | 0-shot | pass@1 via subprocess execution (10s timeout) |
|
| 132 |
+
|
| 133 |
+
### Inference Configuration
|
| 134 |
+
|
| 135 |
+
- **Server:** llama-server (llama.cpp, CUDA 12.8, Blackwell sm_120)
|
| 136 |
+
- **Temperature:** 0 (deterministic)
|
| 137 |
+
- **Max tokens:** 2,048 (accommodates reasoning models)
|
| 138 |
+
- **GPU offload:** All layers (`-ngl 99`)
|
| 139 |
+
- **Serving:** Single request, sequential (no batching)
|
| 140 |
+
|
| 141 |
+
### Differences from Standard Benchmarks
|
| 142 |
+
|
| 143 |
+
- **Generative vs loglikelihood:** MMLU, ARC, and HellaSwag are traditionally scored using token logprobabilities. This rig uses generative letter extraction, which typically yields scores 5–15% lower on the same model. Rankings between models remain consistent.
|
| 144 |
+
- **Thinking models:** gpt-oss-20b produces extended reasoning in a separate `reasoning_content` field. When the primary `content` field is empty, the evaluator falls back to parsing the reasoning chain for the final answer.
|
| 145 |
+
- **No normalized accuracy:** Standard HellaSwag reporting uses `acc_norm` (length-normalized). This rig reports raw accuracy, which may be lower for completions of varying length.
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## Reproduction
|
| 150 |
+
|
| 151 |
+
```bash
|
| 152 |
+
# On capsule (192.168.1.9)
|
| 153 |
+
cd ~/benchmark-rig && source venv/bin/activate
|
| 154 |
+
|
| 155 |
+
# Full benchmark (speed + quality)
|
| 156 |
+
python3 bench.py /path/to/gpt-oss-20b-Q4_K_M.gguf
|
| 157 |
+
|
| 158 |
+
# Quality only
|
| 159 |
+
python3 bench.py /path/to/gpt-oss-20b-Q4_K_M.gguf --quality-only
|
| 160 |
+
|
| 161 |
+
# Individual evaluator
|
| 162 |
+
python3 -m lib.evals.mmlu --api-base http://127.0.0.1:8090/v1 --model gpt-oss-20b
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
+
All results, detailed per-subject breakdowns, and checkpoint files are stored in `results/gpt-oss-20b-q4-k-m/`.
|
| 166 |
+
|
| 167 |
+
---
|
| 168 |
+
|
| 169 |
+
*Benchmarked by WITCHEER on the RTX 5090 Benchmark Rig. Source: [github.com/notwitcheer/llm-bench-rig](https://github.com/notwitcheer/llm-bench-rig). Dataset: [huggingface.co/datasets/witcheer/rtx-5090-benchmarks](https://huggingface.co/datasets/witcheer/rtx-5090-benchmarks).*
|