Datasets:
Publish RTX PRO 4000 benchmark scaffold
Browse files- CONTRIBUTING.md +41 -0
- METHODOLOGY.md +65 -0
- README.md +67 -0
- SCHEMA.md +88 -0
- data/results.jsonl +16 -0
- schema.json +69 -0
- templates/result-row.json +28 -0
- tests/README.md +7 -0
- tests/invalid-desktop-sff-bandwidth.jsonl +1 -0
- tests/invalid-laptop-vram.jsonl +1 -0
- tests/invalid-sff-desktop-bandwidth.jsonl +1 -0
- validate.py +208 -0
CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contributing Results
|
| 2 |
+
|
| 3 |
+
Benchmarks and configs are welcome. Support requests are out of scope.
|
| 4 |
+
|
| 5 |
+
## Result Rules
|
| 6 |
+
|
| 7 |
+
- Rows must be owner-measured on hardware the submitter operates.
|
| 8 |
+
- Cloud, vendor, review-site, or copied rows are rejected.
|
| 9 |
+
- `variant` is mandatory.
|
| 10 |
+
- `bandwidth_gbps`, `tdp_w`, and `pcie_lanes` are mandatory and must match the
|
| 11 |
+
declared desktop/SFF variant.
|
| 12 |
+
- `vram_gb`, `memory_type`, and `bus_width_bit` are required metadata, but they
|
| 13 |
+
do not identify desktop versus SFF. Desktop and SFF entries are both 24 GB
|
| 14 |
+
GDDR7 ECC on a 192-bit bus.
|
| 15 |
+
- Desktop, SFF, and laptop rows are accepted but segregated by variant and never
|
| 16 |
+
merged into desktop tables.
|
| 17 |
+
- Include enough metadata for another owner to repeat the run.
|
| 18 |
+
- Tag related Hugging Face model cards with `rtx-pro-4000`.
|
| 19 |
+
|
| 20 |
+
## Required Metadata
|
| 21 |
+
|
| 22 |
+
Use `templates/result-row.json` as the starting point.
|
| 23 |
+
|
| 24 |
+
Keep notes short but useful: backend flags, power method, whether the run was
|
| 25 |
+
served or local, and what else was stopped to isolate the GPU.
|
| 26 |
+
|
| 27 |
+
## Validation
|
| 28 |
+
|
| 29 |
+
Before submitting:
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
python validate.py data/results.jsonl
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
To validate a proposed row separately:
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
python validate.py path/to/proposed.jsonl
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Rows with `source` other than `owner-measured` fail validation.
|
METHODOLOGY.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Methodology
|
| 2 |
+
|
| 3 |
+
This methodology is canonical for the benchmark dataset.
|
| 4 |
+
|
| 5 |
+
## Scope
|
| 6 |
+
|
| 7 |
+
Rows must come from owner-operated hardware. Cloud instances, vendor marketing
|
| 8 |
+
numbers, and third-party reposts are excluded because the value of this dataset
|
| 9 |
+
is reproducible local workstation behavior.
|
| 10 |
+
|
| 11 |
+
## Throughput Mode
|
| 12 |
+
|
| 13 |
+
Throughput rows should run with model "thinking" disabled when the backend and
|
| 14 |
+
model expose that control. Thinking can improve quality, but it changes token
|
| 15 |
+
budget use and makes raw tok/s comparisons noisy. Quality belongs in a separate
|
| 16 |
+
axis from speed.
|
| 17 |
+
|
| 18 |
+
If thinking cannot be disabled, set `thinking=n/a` and explain why in `notes`.
|
| 19 |
+
|
| 20 |
+
## Served vs Local
|
| 21 |
+
|
| 22 |
+
Record whether the model was served through `llama.cpp`, `vllm`,
|
| 23 |
+
`tensorrt-llm`, or another backend. Served HTTP measurements include scheduler
|
| 24 |
+
and loopback overhead; local CLI measurements may not. Do not merge those
|
| 25 |
+
without keeping the `backend` and `backend_version` fields visible.
|
| 26 |
+
|
| 27 |
+
## Clean Runs
|
| 28 |
+
|
| 29 |
+
GPU bandwidth contention invalidates results. Do not run benchmarks while another
|
| 30 |
+
model is using the same GPU's memory bus.
|
| 31 |
+
|
| 32 |
+
The seed rows come from llm-lab card-bench, which stops the production stack for
|
| 33 |
+
clean card-bench windows. Current P620 placement from DC-BRIEFING is:
|
| 34 |
+
|
| 35 |
+
- GPU 0: `gemma-aeon`, single-card production model.
|
| 36 |
+
- GPU 1: utility/lab card, with embed/rerank and free VRAM for suitable
|
| 37 |
+
single-GPU lab work.
|
| 38 |
+
|
| 39 |
+
Practical rule for this rig: a single-GPU run that fits on the lab card does not
|
| 40 |
+
need a production teardown. A TP=2 or all-GPU run requires stopping
|
| 41 |
+
`gemma-aeon`, entering maintenance mode, running the benchmark, then restarting
|
| 42 |
+
and LAN-verifying the production endpoint.
|
| 43 |
+
|
| 44 |
+
For other owners: report what else was running on each GPU and how you isolated
|
| 45 |
+
the measurement window.
|
| 46 |
+
|
| 47 |
+
## Required Reporting
|
| 48 |
+
|
| 49 |
+
Every row must report:
|
| 50 |
+
|
| 51 |
+
- Variant: desktop, sff, or laptop.
|
| 52 |
+
- Bandwidth, TDP, and PCIe lanes. These separate desktop from SFF.
|
| 53 |
+
- VRAM, memory type, and memory bus width. These are required metadata but do
|
| 54 |
+
not separate desktop from SFF because both are 24 GB GDDR7 ECC on a 192-bit
|
| 55 |
+
bus.
|
| 56 |
+
- Driver version.
|
| 57 |
+
- Backend and backend version.
|
| 58 |
+
- Single-GPU vs multi-GPU.
|
| 59 |
+
- Context length and concurrency.
|
| 60 |
+
- Prefill tok/s and decode tok/s.
|
| 61 |
+
- Peak VRAM used.
|
| 62 |
+
- Power measurement method in `notes`.
|
| 63 |
+
|
| 64 |
+
Power should be measured from board telemetry where possible, not a wall plug
|
| 65 |
+
unless that is explicitly stated.
|
README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- rtx-pro-4000
|
| 9 |
+
- blackwell
|
| 10 |
+
- llm-inference
|
| 11 |
+
- owner-measured
|
| 12 |
+
pretty_name: RTX PRO 4000 Blackwell Owner Benchmarks
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# RTX PRO 4000 Blackwell Owner Benchmarks
|
| 16 |
+
|
| 17 |
+
This dataset records owner-operated inference benchmark rows for the NVIDIA RTX
|
| 18 |
+
PRO 4000 Blackwell family, anchored on the desktop 24 GB card.
|
| 19 |
+
|
| 20 |
+
The point of the dataset is measured workstation behavior. Cloud benchmark rows,
|
| 21 |
+
vendor marketing rows, and unverified screenshots are out of scope.
|
| 22 |
+
|
| 23 |
+
## Files
|
| 24 |
+
|
| 25 |
+
- `data/results.jsonl` - benchmark rows, one JSON object per line.
|
| 26 |
+
- `schema.json` - machine-readable JSON Schema.
|
| 27 |
+
- `SCHEMA.md` - human-readable field contract and variant rules.
|
| 28 |
+
- `METHODOLOGY.md` - how runs should be measured and compared.
|
| 29 |
+
- `CONTRIBUTING.md` - contribution rules and submission template.
|
| 30 |
+
- `validate.py` - local validator used before accepting rows.
|
| 31 |
+
- `tests/` - validator fixtures; not benchmark data.
|
| 32 |
+
|
| 33 |
+
## Variant Rule
|
| 34 |
+
|
| 35 |
+
Every row must set `variant` to one of:
|
| 36 |
+
|
| 37 |
+
- `desktop`
|
| 38 |
+
- `sff`
|
| 39 |
+
- `laptop`
|
| 40 |
+
|
| 41 |
+
The validator cross-checks `variant` against `bandwidth_gbps`, `tdp_w`, and
|
| 42 |
+
`pcie_lanes` for desktop/SFF rows. `vram_gb`, `memory_type`, and
|
| 43 |
+
`bus_width_bit` are required metadata, but they are not desktop/SFF
|
| 44 |
+
discriminators: desktop and SFF rows are both 24 GB GDDR7 ECC on a 192-bit bus.
|
| 45 |
+
Results for SFF and laptop hardware are welcome, but they remain segregated by
|
| 46 |
+
variant and are never merged into desktop tables.
|
| 47 |
+
|
| 48 |
+
## Seed Rows
|
| 49 |
+
|
| 50 |
+
The initial seed rows are Andrew's owner-measured llm-lab card-bench results on
|
| 51 |
+
dual desktop RTX PRO 4000 Blackwell cards. They are marked:
|
| 52 |
+
|
| 53 |
+
- `variant=desktop`
|
| 54 |
+
- `memory_type=gddr7`
|
| 55 |
+
- `bus_width_bit=192`
|
| 56 |
+
- `tdp_w=140`
|
| 57 |
+
- `pcie_lanes=16`
|
| 58 |
+
- `source=owner-measured`
|
| 59 |
+
- `submitter=Andrew`
|
| 60 |
+
|
| 61 |
+
The seed rows are representative, not a full export of every local artifact.
|
| 62 |
+
Their notes record the llm-lab run label and provenance.
|
| 63 |
+
|
| 64 |
+
## License
|
| 65 |
+
|
| 66 |
+
Dataset rows are released under CC-BY-4.0 unless a future row states a stricter
|
| 67 |
+
compatible license in its notes.
|
SCHEMA.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Benchmark Schema
|
| 2 |
+
|
| 3 |
+
Each line in `data/results.jsonl` is one benchmark measurement row.
|
| 4 |
+
|
| 5 |
+
JSONL files do not include a header row. The field contract below is the header.
|
| 6 |
+
Run `python validate.py data/results.jsonl` before submitting changes.
|
| 7 |
+
|
| 8 |
+
## Required Fields
|
| 9 |
+
|
| 10 |
+
| Field | Type | Rule |
|
| 11 |
+
|---|---|---|
|
| 12 |
+
| `variant` | string | enum: `desktop`, `sff`, `laptop` |
|
| 13 |
+
| `vram_gb` | number | required metadata; never identifies desktop vs SFF by itself |
|
| 14 |
+
| `memory_type` | string | enum: `gddr7`, `gddr6` |
|
| 15 |
+
| `bus_width_bit` | integer | memory bus width in bits |
|
| 16 |
+
| `bandwidth_gbps` | number | primary desktop/SFF variant discriminator |
|
| 17 |
+
| `tdp_w` | number | per-card canonical/reference total board power for the variant |
|
| 18 |
+
| `pcie_lanes` | integer | per-card PCIe link width for the variant, e.g. `16` for x16 |
|
| 19 |
+
| `gpu_count` | integer | one or more GPUs used for the run |
|
| 20 |
+
| `model` | string | model or run label |
|
| 21 |
+
| `params_b` | number | parameter count in billions |
|
| 22 |
+
| `quant` | string | enum below |
|
| 23 |
+
| `backend` | string | enum below |
|
| 24 |
+
| `backend_version` | string | commit, version, or digest |
|
| 25 |
+
| `driver_version` | string | NVIDIA driver version |
|
| 26 |
+
| `os` | string | OS and version |
|
| 27 |
+
| `context_len` | integer | prompt/context target for the run |
|
| 28 |
+
| `concurrency` | integer | simultaneous streams represented by the row |
|
| 29 |
+
| `tok_s_prefill` | number | prefill or prompt-processing tokens per second |
|
| 30 |
+
| `tok_s_decode` | number | decode/generation tokens per second |
|
| 31 |
+
| `vram_used_gb` | number | peak VRAM used by the measured run |
|
| 32 |
+
| `power_w` | number | board power during measured window |
|
| 33 |
+
| `thinking` | string | enum: `on`, `off`, `n/a` |
|
| 34 |
+
| `source` | string | must be `owner-measured` |
|
| 35 |
+
| `submitter` | string | person or organization submitting |
|
| 36 |
+
| `date` | string | ISO date, `YYYY-MM-DD` |
|
| 37 |
+
| `notes` | string | provenance and measurement caveats |
|
| 38 |
+
|
| 39 |
+
## Enums
|
| 40 |
+
|
| 41 |
+
`memory_type`:
|
| 42 |
+
|
| 43 |
+
- `gddr7`
|
| 44 |
+
- `gddr6`
|
| 45 |
+
|
| 46 |
+
`quant`:
|
| 47 |
+
|
| 48 |
+
- `gguf-q4_k_m`
|
| 49 |
+
- `gguf-q8_0`
|
| 50 |
+
- `nvfp4`
|
| 51 |
+
- `fp8`
|
| 52 |
+
- `bf16`
|
| 53 |
+
- `other`
|
| 54 |
+
|
| 55 |
+
`backend`:
|
| 56 |
+
|
| 57 |
+
- `llama.cpp`
|
| 58 |
+
- `vllm`
|
| 59 |
+
- `tensorrt-llm`
|
| 60 |
+
- `other`
|
| 61 |
+
|
| 62 |
+
`source`:
|
| 63 |
+
|
| 64 |
+
- `owner-measured`
|
| 65 |
+
|
| 66 |
+
## Variant Sanity Checks
|
| 67 |
+
|
| 68 |
+
The validator identifies the physical desktop/SFF variant from bandwidth, TDP,
|
| 69 |
+
and PCIe lanes. VRAM, memory type, and bus width are recorded metadata, but they
|
| 70 |
+
do not separate desktop from SFF because both are 24 GB GDDR7 ECC on a 192-bit
|
| 71 |
+
bus.
|
| 72 |
+
|
| 73 |
+
The validator enforces these current public specs:
|
| 74 |
+
|
| 75 |
+
| Variant | `vram_gb` | `memory_type` | `bus_width_bit` | `bandwidth_gbps` | `tdp_w` | `pcie_lanes` |
|
| 76 |
+
|---|---:|---|---:|---:|---:|---:|
|
| 77 |
+
| desktop | 24 | `gddr7` | 192 | 672 | 140 | 16 |
|
| 78 |
+
| sff | 24 | `gddr7` | 192 | 432 | 70 | 8 |
|
| 79 |
+
| laptop | 16 | `gddr7` | 256 | 896 | OEM-dependent | OEM-dependent |
|
| 80 |
+
|
| 81 |
+
For laptop rows, `tdp_w` and `pcie_lanes` still must be reported from the owner
|
| 82 |
+
or OEM configuration, but they are not hard-coded by the validator because mobile
|
| 83 |
+
implementations vary.
|
| 84 |
+
|
| 85 |
+
SFF source: NVIDIA RTX PRO 4000 Blackwell SFF Edition datasheet,
|
| 86 |
+
`workstation-datasheet-blackwell-rtx-pro-4000-sff-nvidia-us-4016700.pdf`.
|
| 87 |
+
It lists 24 GB GDDR7 ECC, 192-bit, 432 GB/s, PCIe 5.0 x8, 70 W, and dual-slot
|
| 88 |
+
half-height form factor.
|
data/results.jsonl
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":2048,"date":"2026-06-06","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-12b-ggml-q4km","notes":"Seeded from llm-lab card-bench gemma4-12b-ggml-q4km-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":12,"power_w":150.082,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":58.09,"tok_s_prefill":54.84,"variant":"desktop","vram_gb":24,"vram_used_gb":8.014,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 2 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":32768,"date":"2026-06-06","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-12b-ggml-q4km","notes":"Seeded from llm-lab card-bench gemma4-12b-ggml-q4km-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":12,"power_w":145.876,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":54.19,"tok_s_prefill":44.18,"variant":"desktop","vram_gb":24,"vram_used_gb":8.291,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 3 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":2048,"date":"2026-06-06","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-12b-ggml-q4km","notes":"Seeded from llm-lab card-bench gemma4-12b-ggml-q4km-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":12,"power_w":188.319,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":57.31,"tok_s_prefill":54.81,"variant":"desktop","vram_gb":24,"vram_used_gb":8.67,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 4 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":32768,"date":"2026-06-06","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-12b-ggml-q4km","notes":"Seeded from llm-lab card-bench gemma4-12b-ggml-q4km-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":12,"power_w":188.536,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":53.7,"tok_s_prefill":44.74,"variant":"desktop","vram_gb":24,"vram_used_gb":9.15,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 5 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":2048,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-26b-a4b-q4-k-m","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-q4-k-m-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":130.124,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":121.76,"tok_s_prefill":94.87,"variant":"desktop","vram_gb":24,"vram_used_gb":16.613,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 6 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":32768,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-26b-a4b-q4-k-m","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-q4-k-m-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":127.894,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":99.04,"tok_s_prefill":66.11,"variant":"desktop","vram_gb":24,"vram_used_gb":17.039,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 7 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":2048,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-26b-a4b-q4-k-m","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-q4-k-m-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":173.613,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":124.78,"tok_s_prefill":96.44,"variant":"desktop","vram_gb":24,"vram_used_gb":17.166,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 8 |
+
{"backend":"llama.cpp","backend_version":"94a220cd6745e6e3f8de62870b66fd5b9bc92700","bandwidth_gbps":672,"concurrency":1,"context_len":32768,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-26b-a4b-q4-k-m","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-q4-k-m-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":171.012,"quant":"gguf-q4_k_m","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":102.48,"tok_s_prefill":68.78,"variant":"desktop","vram_gb":24,"vram_used_gb":17.893,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 9 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":2048,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":140.535,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":120.63,"tok_s_prefill":13064.82,"variant":"desktop","vram_gb":24,"vram_used_gb":21.262,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 10 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":8192,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":146.558,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":118.49,"tok_s_prefill":12605.53,"variant":"desktop","vram_gb":24,"vram_used_gb":21.934,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 11 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":32768,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":149.598,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":110.79,"tok_s_prefill":9334.83,"variant":"desktop","vram_gb":24,"vram_used_gb":22.355,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 12 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":131072,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":1,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-1gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":149.786,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":103.3,"tok_s_prefill":4470.77,"variant":"desktop","vram_gb":24,"vram_used_gb":22.357,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 13 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":2048,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":169.035,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":182.58,"tok_s_prefill":11943.84,"variant":"desktop","vram_gb":24,"vram_used_gb":43.984,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 14 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":8192,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":206.528,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":174.03,"tok_s_prefill":12379.46,"variant":"desktop","vram_gb":24,"vram_used_gb":44.34,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 15 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":32768,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":246.071,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":154.39,"tok_s_prefill":10850.93,"variant":"desktop","vram_gb":24,"vram_used_gb":44.598,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
| 16 |
+
{"backend":"vllm","backend_version":"0.22.1rc1.dev245+g9c7f7741d","bandwidth_gbps":672,"concurrency":1,"context_len":131072,"date":"2026-06-10","driver_version":"610.43.02","gpu_count":2,"model":"gemma4-26b-a4b-aeon-nvfp4","notes":"Seeded from llm-lab card-bench gemma4-26b-a4b-aeon-nvfp4-2gpu; one row per context; median of kept runs; production stack stopped for clean run.","os":"Ubuntu 24.04.4 LTS","params_b":26,"power_w":280.518,"quant":"nvfp4","source":"owner-measured","submitter":"Andrew","thinking":"off","tok_s_decode":149.28,"tok_s_prefill":6685.85,"variant":"desktop","vram_gb":24,"vram_used_gb":44.531,"memory_type":"gddr7","bus_width_bit":192,"tdp_w":140,"pcie_lanes":16}
|
schema.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 |
+
"$id": "https://huggingface.co/datasets/rtx-pro-4000/benchmarks/schema.json",
|
| 4 |
+
"title": "RTX PRO 4000 Blackwell benchmark row",
|
| 5 |
+
"type": "object",
|
| 6 |
+
"additionalProperties": false,
|
| 7 |
+
"required": [
|
| 8 |
+
"variant",
|
| 9 |
+
"vram_gb",
|
| 10 |
+
"memory_type",
|
| 11 |
+
"bus_width_bit",
|
| 12 |
+
"bandwidth_gbps",
|
| 13 |
+
"tdp_w",
|
| 14 |
+
"pcie_lanes",
|
| 15 |
+
"gpu_count",
|
| 16 |
+
"model",
|
| 17 |
+
"params_b",
|
| 18 |
+
"quant",
|
| 19 |
+
"backend",
|
| 20 |
+
"backend_version",
|
| 21 |
+
"driver_version",
|
| 22 |
+
"os",
|
| 23 |
+
"context_len",
|
| 24 |
+
"concurrency",
|
| 25 |
+
"tok_s_prefill",
|
| 26 |
+
"tok_s_decode",
|
| 27 |
+
"vram_used_gb",
|
| 28 |
+
"power_w",
|
| 29 |
+
"thinking",
|
| 30 |
+
"source",
|
| 31 |
+
"submitter",
|
| 32 |
+
"date",
|
| 33 |
+
"notes"
|
| 34 |
+
],
|
| 35 |
+
"properties": {
|
| 36 |
+
"variant": { "type": "string", "enum": ["desktop", "sff", "laptop"] },
|
| 37 |
+
"vram_gb": { "type": "number", "exclusiveMinimum": 0 },
|
| 38 |
+
"memory_type": { "type": "string", "enum": ["gddr7", "gddr6"] },
|
| 39 |
+
"bus_width_bit": { "type": "integer", "minimum": 1 },
|
| 40 |
+
"bandwidth_gbps": { "type": "number", "exclusiveMinimum": 0 },
|
| 41 |
+
"tdp_w": { "type": "number", "exclusiveMinimum": 0 },
|
| 42 |
+
"pcie_lanes": { "type": "integer", "minimum": 1 },
|
| 43 |
+
"gpu_count": { "type": "integer", "minimum": 1 },
|
| 44 |
+
"model": { "type": "string", "minLength": 1 },
|
| 45 |
+
"params_b": { "type": "number", "exclusiveMinimum": 0 },
|
| 46 |
+
"quant": {
|
| 47 |
+
"type": "string",
|
| 48 |
+
"enum": ["gguf-q4_k_m", "gguf-q8_0", "nvfp4", "fp8", "bf16", "other"]
|
| 49 |
+
},
|
| 50 |
+
"backend": {
|
| 51 |
+
"type": "string",
|
| 52 |
+
"enum": ["llama.cpp", "vllm", "tensorrt-llm", "other"]
|
| 53 |
+
},
|
| 54 |
+
"backend_version": { "type": "string", "minLength": 1 },
|
| 55 |
+
"driver_version": { "type": "string", "minLength": 1 },
|
| 56 |
+
"os": { "type": "string", "minLength": 1 },
|
| 57 |
+
"context_len": { "type": "integer", "minimum": 1 },
|
| 58 |
+
"concurrency": { "type": "integer", "minimum": 1 },
|
| 59 |
+
"tok_s_prefill": { "type": "number", "minimum": 0 },
|
| 60 |
+
"tok_s_decode": { "type": "number", "minimum": 0 },
|
| 61 |
+
"vram_used_gb": { "type": "number", "minimum": 0 },
|
| 62 |
+
"power_w": { "type": "number", "minimum": 0 },
|
| 63 |
+
"thinking": { "type": "string", "enum": ["on", "off", "n/a"] },
|
| 64 |
+
"source": { "type": "string", "enum": ["owner-measured"] },
|
| 65 |
+
"submitter": { "type": "string", "minLength": 1 },
|
| 66 |
+
"date": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" },
|
| 67 |
+
"notes": { "type": "string", "minLength": 1 }
|
| 68 |
+
}
|
| 69 |
+
}
|
templates/result-row.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"variant": "desktop",
|
| 3 |
+
"vram_gb": 24,
|
| 4 |
+
"memory_type": "gddr7",
|
| 5 |
+
"bus_width_bit": 192,
|
| 6 |
+
"bandwidth_gbps": 672,
|
| 7 |
+
"tdp_w": 140,
|
| 8 |
+
"pcie_lanes": 16,
|
| 9 |
+
"gpu_count": 1,
|
| 10 |
+
"model": "example-model-q4",
|
| 11 |
+
"params_b": 12,
|
| 12 |
+
"quant": "gguf-q4_k_m",
|
| 13 |
+
"backend": "llama.cpp",
|
| 14 |
+
"backend_version": "commit-or-version",
|
| 15 |
+
"driver_version": "610.43.02",
|
| 16 |
+
"os": "Ubuntu 24.04 LTS",
|
| 17 |
+
"context_len": 2048,
|
| 18 |
+
"concurrency": 1,
|
| 19 |
+
"tok_s_prefill": 0,
|
| 20 |
+
"tok_s_decode": 0,
|
| 21 |
+
"vram_used_gb": 0,
|
| 22 |
+
"power_w": 0,
|
| 23 |
+
"thinking": "off",
|
| 24 |
+
"source": "owner-measured",
|
| 25 |
+
"submitter": "name-or-handle",
|
| 26 |
+
"date": "2026-06-14",
|
| 27 |
+
"notes": "Describe measurement method, backend flags, and isolation."
|
| 28 |
+
}
|
tests/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Validator fixtures only. These JSONL files are not benchmark data.
|
| 2 |
+
|
| 3 |
+
Expected failures:
|
| 4 |
+
|
| 5 |
+
- `invalid-desktop-sff-bandwidth.jsonl`: desktop row with SFF bandwidth.
|
| 6 |
+
- `invalid-sff-desktop-bandwidth.jsonl`: SFF row with desktop bandwidth.
|
| 7 |
+
- `invalid-laptop-vram.jsonl`: laptop row with desktop/SFF VRAM.
|
tests/invalid-desktop-sff-bandwidth.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"variant":"desktop","vram_gb":24,"memory_type":"gddr7","bus_width_bit":192,"bandwidth_gbps":432,"tdp_w":140,"pcie_lanes":16,"gpu_count":1,"model":"validator-fixture","params_b":1,"quant":"other","backend":"other","backend_version":"fixture","driver_version":"fixture","os":"fixture","context_len":1,"concurrency":1,"tok_s_prefill":0,"tok_s_decode":0,"vram_used_gb":0,"power_w":0,"thinking":"n/a","source":"owner-measured","submitter":"validator","date":"2026-06-14","notes":"Invalid fixture: desktop variant with SFF bandwidth."}
|
tests/invalid-laptop-vram.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"variant":"laptop","vram_gb":24,"memory_type":"gddr7","bus_width_bit":256,"bandwidth_gbps":896,"tdp_w":120,"pcie_lanes":16,"gpu_count":1,"model":"validator-fixture","params_b":1,"quant":"other","backend":"other","backend_version":"fixture","driver_version":"fixture","os":"fixture","context_len":1,"concurrency":1,"tok_s_prefill":0,"tok_s_decode":0,"vram_used_gb":0,"power_w":0,"thinking":"n/a","source":"owner-measured","submitter":"validator","date":"2026-06-14","notes":"Invalid fixture: laptop variant with desktop/SFF VRAM."}
|
tests/invalid-sff-desktop-bandwidth.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"variant":"sff","vram_gb":24,"memory_type":"gddr7","bus_width_bit":192,"bandwidth_gbps":672,"tdp_w":70,"pcie_lanes":8,"gpu_count":1,"model":"validator-fixture","params_b":1,"quant":"other","backend":"other","backend_version":"fixture","driver_version":"fixture","os":"fixture","context_len":1,"concurrency":1,"tok_s_prefill":0,"tok_s_decode":0,"vram_used_gb":0,"power_w":0,"thinking":"n/a","source":"owner-measured","submitter":"validator","date":"2026-06-14","notes":"Invalid fixture: SFF variant with desktop bandwidth."}
|
validate.py
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Validate RTX PRO 4000 benchmark JSONL rows."""
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import argparse
|
| 7 |
+
import json
|
| 8 |
+
import re
|
| 9 |
+
import sys
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
from typing import Any
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
REQUIRED = [
|
| 15 |
+
"variant",
|
| 16 |
+
"vram_gb",
|
| 17 |
+
"memory_type",
|
| 18 |
+
"bus_width_bit",
|
| 19 |
+
"bandwidth_gbps",
|
| 20 |
+
"tdp_w",
|
| 21 |
+
"pcie_lanes",
|
| 22 |
+
"gpu_count",
|
| 23 |
+
"model",
|
| 24 |
+
"params_b",
|
| 25 |
+
"quant",
|
| 26 |
+
"backend",
|
| 27 |
+
"backend_version",
|
| 28 |
+
"driver_version",
|
| 29 |
+
"os",
|
| 30 |
+
"context_len",
|
| 31 |
+
"concurrency",
|
| 32 |
+
"tok_s_prefill",
|
| 33 |
+
"tok_s_decode",
|
| 34 |
+
"vram_used_gb",
|
| 35 |
+
"power_w",
|
| 36 |
+
"thinking",
|
| 37 |
+
"source",
|
| 38 |
+
"submitter",
|
| 39 |
+
"date",
|
| 40 |
+
"notes",
|
| 41 |
+
]
|
| 42 |
+
|
| 43 |
+
ENUMS = {
|
| 44 |
+
"variant": {"desktop", "sff", "laptop"},
|
| 45 |
+
"memory_type": {"gddr7", "gddr6"},
|
| 46 |
+
"quant": {"gguf-q4_k_m", "gguf-q8_0", "nvfp4", "fp8", "bf16", "other"},
|
| 47 |
+
"backend": {"llama.cpp", "vllm", "tensorrt-llm", "other"},
|
| 48 |
+
"thinking": {"on", "off", "n/a"},
|
| 49 |
+
"source": {"owner-measured"},
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
VARIANT_DISCRIMINATORS = {
|
| 53 |
+
"desktop": {
|
| 54 |
+
"bandwidth_gbps": 672,
|
| 55 |
+
"tdp_w": 140,
|
| 56 |
+
"pcie_lanes": 16,
|
| 57 |
+
},
|
| 58 |
+
"sff": {
|
| 59 |
+
"bandwidth_gbps": 432,
|
| 60 |
+
"tdp_w": 70,
|
| 61 |
+
"pcie_lanes": 8,
|
| 62 |
+
},
|
| 63 |
+
"laptop": {
|
| 64 |
+
"vram_gb": 16,
|
| 65 |
+
"bandwidth_gbps": 896,
|
| 66 |
+
},
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
VARIANT_METADATA = {
|
| 70 |
+
"desktop": {
|
| 71 |
+
"vram_gb": 24,
|
| 72 |
+
"memory_type": "gddr7",
|
| 73 |
+
"bus_width_bit": 192,
|
| 74 |
+
},
|
| 75 |
+
"sff": {
|
| 76 |
+
"vram_gb": 24,
|
| 77 |
+
"memory_type": "gddr7",
|
| 78 |
+
"bus_width_bit": 192,
|
| 79 |
+
},
|
| 80 |
+
"laptop": {
|
| 81 |
+
"vram_gb": 16,
|
| 82 |
+
"memory_type": "gddr7",
|
| 83 |
+
"bus_width_bit": 256,
|
| 84 |
+
},
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
NUMERIC = {
|
| 88 |
+
"vram_gb",
|
| 89 |
+
"bandwidth_gbps",
|
| 90 |
+
"tdp_w",
|
| 91 |
+
"params_b",
|
| 92 |
+
"tok_s_prefill",
|
| 93 |
+
"tok_s_decode",
|
| 94 |
+
"vram_used_gb",
|
| 95 |
+
"power_w",
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
INTEGER = {"gpu_count", "bus_width_bit", "pcie_lanes", "context_len", "concurrency"}
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def row_errors(row: dict[str, Any], line_no: int) -> list[str]:
|
| 102 |
+
errors: list[str] = []
|
| 103 |
+
|
| 104 |
+
for field in REQUIRED:
|
| 105 |
+
if field not in row:
|
| 106 |
+
errors.append(f"line {line_no}: missing required field {field}")
|
| 107 |
+
|
| 108 |
+
for field in row:
|
| 109 |
+
if field not in REQUIRED:
|
| 110 |
+
errors.append(f"line {line_no}: unexpected field {field}")
|
| 111 |
+
|
| 112 |
+
for field, allowed in ENUMS.items():
|
| 113 |
+
value = row.get(field)
|
| 114 |
+
if value not in allowed:
|
| 115 |
+
errors.append(f"line {line_no}: {field}={value!r} not in {sorted(allowed)}")
|
| 116 |
+
|
| 117 |
+
for field in NUMERIC:
|
| 118 |
+
value = row.get(field)
|
| 119 |
+
if not isinstance(value, (int, float)) or isinstance(value, bool):
|
| 120 |
+
errors.append(f"line {line_no}: {field} must be numeric")
|
| 121 |
+
elif value < 0:
|
| 122 |
+
errors.append(f"line {line_no}: {field} must be >= 0")
|
| 123 |
+
|
| 124 |
+
for field in INTEGER:
|
| 125 |
+
value = row.get(field)
|
| 126 |
+
if not isinstance(value, int) or isinstance(value, bool):
|
| 127 |
+
errors.append(f"line {line_no}: {field} must be an integer")
|
| 128 |
+
elif value < 1:
|
| 129 |
+
errors.append(f"line {line_no}: {field} must be >= 1")
|
| 130 |
+
|
| 131 |
+
for field in ("model", "backend_version", "driver_version", "os", "submitter", "notes"):
|
| 132 |
+
value = row.get(field)
|
| 133 |
+
if not isinstance(value, str) or not value.strip():
|
| 134 |
+
errors.append(f"line {line_no}: {field} must be a non-empty string")
|
| 135 |
+
|
| 136 |
+
date_value = row.get("date")
|
| 137 |
+
if not isinstance(date_value, str) or not re.fullmatch(r"\d{4}-\d{2}-\d{2}", date_value):
|
| 138 |
+
errors.append(f"line {line_no}: date must be YYYY-MM-DD")
|
| 139 |
+
|
| 140 |
+
variant = row.get("variant")
|
| 141 |
+
discriminator_expected = VARIANT_DISCRIMINATORS.get(variant)
|
| 142 |
+
if discriminator_expected:
|
| 143 |
+
for field, expected_value in discriminator_expected.items():
|
| 144 |
+
actual = row.get(field)
|
| 145 |
+
if actual != expected_value:
|
| 146 |
+
errors.append(
|
| 147 |
+
f"line {line_no}: {variant} discriminator requires {field}={expected_value}, got {actual!r}"
|
| 148 |
+
)
|
| 149 |
+
|
| 150 |
+
metadata_expected = VARIANT_METADATA.get(variant)
|
| 151 |
+
if metadata_expected:
|
| 152 |
+
for field, expected_value in metadata_expected.items():
|
| 153 |
+
actual = row.get(field)
|
| 154 |
+
if actual != expected_value:
|
| 155 |
+
errors.append(
|
| 156 |
+
f"line {line_no}: {variant} metadata expects {field}={expected_value}, got {actual!r}"
|
| 157 |
+
)
|
| 158 |
+
|
| 159 |
+
if row.get("source") != "owner-measured":
|
| 160 |
+
errors.append(f"line {line_no}: source must be owner-measured")
|
| 161 |
+
|
| 162 |
+
return errors
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
def validate(path: Path) -> tuple[int, list[str]]:
|
| 166 |
+
errors: list[str] = []
|
| 167 |
+
count = 0
|
| 168 |
+
|
| 169 |
+
try:
|
| 170 |
+
lines = path.read_text(encoding="utf-8").splitlines()
|
| 171 |
+
except OSError as exc:
|
| 172 |
+
return 0, [f"{path}: {exc}"]
|
| 173 |
+
|
| 174 |
+
for line_no, line in enumerate(lines, start=1):
|
| 175 |
+
if not line.strip():
|
| 176 |
+
continue
|
| 177 |
+
try:
|
| 178 |
+
row = json.loads(line)
|
| 179 |
+
except json.JSONDecodeError as exc:
|
| 180 |
+
errors.append(f"line {line_no}: invalid JSON: {exc}")
|
| 181 |
+
continue
|
| 182 |
+
if not isinstance(row, dict):
|
| 183 |
+
errors.append(f"line {line_no}: row must be a JSON object")
|
| 184 |
+
continue
|
| 185 |
+
count += 1
|
| 186 |
+
errors.extend(row_errors(row, line_no))
|
| 187 |
+
|
| 188 |
+
if count == 0:
|
| 189 |
+
errors.append(f"{path}: no rows found")
|
| 190 |
+
return count, errors
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
def main() -> int:
|
| 194 |
+
parser = argparse.ArgumentParser(description="Validate benchmark JSONL rows")
|
| 195 |
+
parser.add_argument("path", nargs="?", default="data/results.jsonl")
|
| 196 |
+
args = parser.parse_args()
|
| 197 |
+
|
| 198 |
+
count, errors = validate(Path(args.path))
|
| 199 |
+
if errors:
|
| 200 |
+
for error in errors:
|
| 201 |
+
print(error, file=sys.stderr)
|
| 202 |
+
return 1
|
| 203 |
+
print(f"OK: {count} rows valid")
|
| 204 |
+
return 0
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
if __name__ == "__main__":
|
| 208 |
+
raise SystemExit(main())
|