krisdcosta commited on
Commit
5309b28
·
verified ·
1 Parent(s): 4f88237

Update public v1 dataset with validated M4 Qwen and M4 CPU reruns

Browse files
README.md CHANGED
@@ -42,7 +42,7 @@ Controlled inference benchmark dataset for **7 GGUF K-quant quantization variant
42
  | Apple M4 Mac | Apple M4 (ARM, 10-core) | 16 GB unified | llama.cpp Metal |
43
  | HP Pavilion x86 | Intel Core i5-1235U (12th gen) | 16 GB DDR4 | llama.cpp CPU |
44
 
45
- **4,407 total records** across 5 splits. All inference records are non-warmup,
46
  success-status runs collected under controlled thermal conditions. Contaminated
47
  and failed records are archived separately and not included here.
48
 
@@ -71,7 +71,7 @@ and failed records are archived separately and not included here.
71
 
72
  ## Splits
73
 
74
- ### `pixel_inference` — 2,875 rows
75
  Pixel 6a (ARM, CPU backend) inference runs.
76
 
77
  | Column | Type | Description |
@@ -84,10 +84,13 @@ Pixel 6a (ARM, CPU backend) inference runs.
84
  | `trial` | int | Trial index within the experiment |
85
  | `threads` | int | CPU thread count (null = default 4) |
86
  | `decode_tps` | float | Decode throughput (tokens/second) |
 
87
  | `prefill_tps` | float | Prefill throughput (tokens/second) |
 
88
  | `ttft_s` | float | Time to first token (seconds) — populated for standard_sweep only |
89
  | `e2e_s` | float | End-to-end latency (seconds) — populated for standard_sweep only |
90
  | `n_output_tokens` | int | Number of generated tokens |
 
91
  | `experiment_type` | string | `cliff_sweep` \| `standard_sweep` \| `thread_sweep` \| `kv_cache_quant` |
92
  | `kv_quant` | string | KV cache quantization type (`null` = default, `"q8_0"` = quantized) |
93
  | `ngl` | int | GPU layers (null for CPU runs) |
@@ -96,28 +99,34 @@ Pixel 6a (ARM, CPU backend) inference runs.
96
 
97
  **experiment_type values:**
98
  - `cliff_sweep` — context length varied to characterise KV-cache collapse (canonical n=10)
99
- - `standard_sweep` — fixed 4 context windows (256/512/1024/2048), 13 trials, 2 warmup
100
  - `thread_sweep` — Q4\_K\_M at threads=1/2/4/8, ctx=256, 15 trials
101
  - `kv_cache_quant` — KV cache set to q8\_0 to test collapse mitigation
102
 
103
  ---
104
 
105
- ### `m4_inference` — 1,021 rows
106
- Apple M4 Mac inference runs. Contains two backend configurations:
107
 
108
- - **Metal GPU** (931 rows) — `backend = "Metal"`, `ngl = 99`. Includes Llama 3.2 3B and Qwen 2.5 1.5B.
109
  Cliff sweep covers ctx=1024–2048 (13 points, n=5 trials). Results: flat profile on Metal
110
  (all variants within ±9%), confirming no KV-cache cliff on GPU-accelerated inference.
111
- - **CPU** (90 rows) — `backend = "CPU"`, `ngl = 0`, `threads = 4`. Llama 3.2 3B only.
 
 
 
 
 
 
112
  - **Cliff sweep** (88 rows): ctx=256–2048 (13 points, pre-aggregated n\_trials=5 per ctx).
113
  Collected 2026-04-09. 3 outlier points excluded (Q5\_K\_M ctx=2048 OOM, Q6\_K ctx=1536
114
  CV=81%, Q8\_0 ctx=2048 CV=99%). Results: significant context-dependent degradation
115
  on M4 CPU (Q2\_K −13%, Q3\_K\_M −54%, Q4\_K\_S −53%, Q6\_K −60% from ctx=256→2048).
116
  Note: ctx=256 cliff baseline may be inflated by CPU boost state at start of each variant's sweep.
117
  - **TPS sweep** (7 rows, `experiment_type = "standard_sweep"`, `context_len = 0`): pure decode
118
- reference (n\_prompt=0, n\_gen=128, n=10 trials, 2026-04-06). Thermally settled baseline.
119
- Throughput ordering: Q4\_K\_S (13.16) > Q8\_0 (12.60) > Q4\_K\_M (12.51) > Q2\_K (12.31)
120
- > Q3\_K\_M (11.48) > Q5\_K\_M (10.59) > Q6\_K (9.29) tok/s. Non-monotonic: Metal reversal
121
  (Q4\_K\_S fastest) confirmed on M4 CPU as well; Q6\_K remains slowest.
122
 
123
  Same columns as `pixel_inference`.
@@ -143,14 +152,15 @@ Same columns as `pixel_inference`. `backend = "CPU"`, `threads = 6`.
143
 
144
  ---
145
 
146
- ### `quality_benchmarks` — 105 rows
147
- Accuracy scores on 6 NLP benchmarks for 7 quantization variants on Pixel 6a.
 
148
 
149
  | Column | Type | Description |
150
  |---|---|---|
151
- | `benchmark` | string | `arc_challenge` \| `arc_easy` \| `boolq` \| `hellaswag` \| `mmlu` \| `truthfulqa` \| `custom_qa` |
152
  | `variant` | string | GGUF quantization variant |
153
- | `device` | string | `"Pixel6a"` |
154
  | `model` | string | Model name |
155
  | `calibration` | string | `"standard"` or `"imatrix"` (importance-weighted) |
156
  | `accuracy_pct` | float | Accuracy percentage (0–100) |
@@ -158,30 +168,33 @@ Accuracy scores on 6 NLP benchmarks for 7 quantization variants on Pixel 6a.
158
  | `total` | int | Total questions evaluated |
159
  | `status` | string | `"success"` for all included rows |
160
 
 
 
 
 
161
  **Benchmark sample sizes:** 100 questions each (random sample from official test sets).
162
  BoolQ imatrix calibration covers all 7 variants. TruthfulQA imatrix data collected for
163
- Q2\_K and Q3\_K\_M only.
164
 
165
  ---
166
 
167
- ### `perplexity` — 7 rows
168
- WikiText-2 perplexity scores for Llama 3.2 3B Instruct on Pixel 6a.
169
 
170
  | Column | Type | Description |
171
  |---|---|---|
172
  | `variant` | string | GGUF quantization variant |
173
  | `model` | string | Model name |
174
- | `device` | string | `"Pixel6a"` |
175
- | `perplexity` | float | WikiText-2 perplexity (lower = better); null if not evaluated |
176
  | `perplexity_status` | string | `"success"` or `"not_evaluated"` |
177
- | `corpus` | string | `"wikitext2_full"` (~285K tokens) or `"wikitext2_sample"` (~12K tokens) |
178
  | `tokens_approx` | int | Approximate token count used |
179
- | `note` | string | Reason if not\_evaluated |
180
 
181
- > **Important:** Q2\_K and Q3\_K\_M were evaluated on the full WikiText-2 corpus;
182
- > Q4\_K\_M, Q6\_K, Q8\_0 on a 12K-token sample. Do not directly compare perplexity
183
- > values across these two groups without accounting for corpus size effects.
184
- > Q4\_K\_S and Q5\_K\_M were added after the initial sweep and are marked `not_evaluated`.
185
 
186
  ---
187
 
@@ -267,12 +280,13 @@ print(threads.groupby("threads")["decode_tps"].agg(["mean", "std"]))
267
  1. **Pixel 6a primary focus** — x86 and M4 coverage is less comprehensive than Pixel;
268
  x86 has n=5 trials for cliff sweep but no thread sweep, no kv_cache_quant experiments
269
  2. **x86 Qwen limited to standard_sweep** — Qwen 2.5 1.5B on x86 provides decode TPS reference
270
- at ctx=256 only; no cliff sweep, thread sweep, or quality data for Qwen on x86
 
271
  3. **Perplexity corpus inconsistency** — see note in perplexity split above
272
  4. **No power/energy data** — `/proc` interfaces on Pixel 6a are unreliable without root;
273
  battery drain proxy metrics were collected but not included in this release
274
- 5. **Single model family for quality benchmarks** — quality data (BoolQ, HellaSwag, etc.)
275
- collected on Pixel 6a only; no cross-device quality comparison
276
  6. **llama.cpp version** — builds used llama.cpp circa February–April 2026;
277
  results may differ with significantly newer versions
278
 
 
42
  | Apple M4 Mac | Apple M4 (ARM, 10-core) | 16 GB unified | llama.cpp Metal |
43
  | HP Pavilion x86 | Intel Core i5-1235U (12th gen) | 16 GB DDR4 | llama.cpp CPU |
44
 
45
+ **3,395 total records** across 5 splits. All published inference records are non-warmup,
46
  success-status runs collected under controlled thermal conditions. Contaminated
47
  and failed records are archived separately and not included here.
48
 
 
71
 
72
  ## Splits
73
 
74
+ ### `pixel_inference` — 1,819 rows
75
  Pixel 6a (ARM, CPU backend) inference runs.
76
 
77
  | Column | Type | Description |
 
84
  | `trial` | int | Trial index within the experiment |
85
  | `threads` | int | CPU thread count (null = default 4) |
86
  | `decode_tps` | float | Decode throughput (tokens/second) |
87
+ | `decode_tps_std` | float | Decode TPS standard deviation for pre-aggregated rows; null for individual-trial rows |
88
  | `prefill_tps` | float | Prefill throughput (tokens/second) |
89
+ | `prefill_tps_std` | float | Prefill TPS standard deviation for pre-aggregated rows; null for individual-trial rows |
90
  | `ttft_s` | float | Time to first token (seconds) — populated for standard_sweep only |
91
  | `e2e_s` | float | End-to-end latency (seconds) — populated for standard_sweep only |
92
  | `n_output_tokens` | int | Number of generated tokens |
93
+ | `n_trials` | int | Number of trials represented by the row (`1` for individual trial rows; `5`/`10` for aggregated rows) |
94
  | `experiment_type` | string | `cliff_sweep` \| `standard_sweep` \| `thread_sweep` \| `kv_cache_quant` |
95
  | `kv_quant` | string | KV cache quantization type (`null` = default, `"q8_0"` = quantized) |
96
  | `ngl` | int | GPU layers (null for CPU runs) |
 
99
 
100
  **experiment_type values:**
101
  - `cliff_sweep` — context length varied to characterise KV-cache collapse (canonical n=10)
102
+ - `standard_sweep` — fixed 4 context windows (256/512/1024/2048), canonical TPS sweep
103
  - `thread_sweep` — Q4\_K\_M at threads=1/2/4/8, ctx=256, 15 trials
104
  - `kv_cache_quant` — KV cache set to q8\_0 to test collapse mitigation
105
 
106
  ---
107
 
108
+ ### `m4_inference` — 1,035 rows
109
+ Apple M4 Mac inference runs. Contains Metal GPU and CPU backend configurations:
110
 
111
+ - **Metal GPU, Llama 3.2 3B** (840 rows) — `backend = "Metal"`, `ngl = 99`.
112
  Cliff sweep covers ctx=1024–2048 (13 points, n=5 trials). Results: flat profile on Metal
113
  (all variants within ±9%), confirming no KV-cache cliff on GPU-accelerated inference.
114
+ - **Metal GPU, Qwen 2.5 1.5B** (98 rows) — promoted clean extension runs:
115
+ - **TPS sweep** (7 rows, `standard_sweep`, `context_len = 0`): tg128 decode, n=10,
116
+ `results/m4_qwen_tps_20260415_130955/`. Q2\_K=36.56 tok/s, Q8\_0=21.50 tok/s.
117
+ - **Cliff sweep** (91 rows, `cliff_sweep`): ctx=1024–2048, 13 contexts × 7 variants,
118
+ n=5, `results/m4_qwen_cliff_20260416_021323/`. Q2\_K changes −32.7% from
119
+ ctx=1024→2048; Q8\_0 is flat (+1.0%).
120
+ - **CPU, Llama 3.2 3B** (97 rows) — `backend = "CPU"`, `ngl = 0`, `threads = 4`.
121
  - **Cliff sweep** (88 rows): ctx=256–2048 (13 points, pre-aggregated n\_trials=5 per ctx).
122
  Collected 2026-04-09. 3 outlier points excluded (Q5\_K\_M ctx=2048 OOM, Q6\_K ctx=1536
123
  CV=81%, Q8\_0 ctx=2048 CV=99%). Results: significant context-dependent degradation
124
  on M4 CPU (Q2\_K −13%, Q3\_K\_M −54%, Q4\_K\_S −53%, Q6\_K −60% from ctx=256→2048).
125
  Note: ctx=256 cliff baseline may be inflated by CPU boost state at start of each variant's sweep.
126
  - **TPS sweep** (7 rows, `experiment_type = "standard_sweep"`, `context_len = 0`): pure decode
127
+ reference (n\_prompt=0, n\_gen=128, n=10 trials, 2026-04-15 clean rerun).
128
+ Throughput ordering: Q2\_K (27.08) > Q4\_K\_S (25.68) > Q3\_K\_M (23.67) > Q4\_K\_M (22.29)
129
+ > Q8\_0 (18.80) > Q5\_K\_M (15.80) > Q6\_K (14.97) tok/s. Non-monotonic: Metal reversal
130
  (Q4\_K\_S fastest) confirmed on M4 CPU as well; Q6\_K remains slowest.
131
 
132
  Same columns as `pixel_inference`.
 
152
 
153
  ---
154
 
155
+ ### `quality_benchmarks` — 128 rows
156
+ Accuracy scores on 6 NLP benchmarks for 7 quantization variants across Pixel 6a and x86 i5-1235U,
157
+ including both standard and imatrix-calibrated variants.
158
 
159
  | Column | Type | Description |
160
  |---|---|---|
161
+ | `benchmark` | string | `arc_challenge` \| `arc_easy` \| `boolq` \| `hellaswag` \| `mmlu` \| `truthfulqa` |
162
  | `variant` | string | GGUF quantization variant |
163
+ | `device` | string | `"Pixel6a"` or `"x86"` |
164
  | `model` | string | Model name |
165
  | `calibration` | string | `"standard"` or `"imatrix"` (importance-weighted) |
166
  | `accuracy_pct` | float | Accuracy percentage (0–100) |
 
168
  | `total` | int | Total questions evaluated |
169
  | `status` | string | `"success"` for all included rows |
170
 
171
+ **Device coverage:**
172
+ - `Pixel6a`: 44 standard rows + 42 imatrix rows (ARC-Easy imatrix excluded — known parser artifact producing 100% for all variants)
173
+ - `x86`: all 6 benchmarks × 7 variants (standard only; no imatrix)
174
+
175
  **Benchmark sample sizes:** 100 questions each (random sample from official test sets).
176
  BoolQ imatrix calibration covers all 7 variants. TruthfulQA imatrix data collected for
177
+ all 7 variants.
178
 
179
  ---
180
 
181
+ ### `perplexity` — 14 rows
182
+ WikiText-2 perplexity scores for Llama 3.2 3B Instruct. Covers both Pixel 6a and x86 i5-1235U measurements.
183
 
184
  | Column | Type | Description |
185
  |---|---|---|
186
  | `variant` | string | GGUF quantization variant |
187
  | `model` | string | Model name |
188
+ | `device` | string | `"Pixel6a"` or `"x86"` |
189
+ | `perplexity` | float | WikiText-2 perplexity (lower = better) |
190
  | `perplexity_status` | string | `"success"` or `"not_evaluated"` |
191
+ | `corpus` | string | `"wikitext2_full"` (~290K tokens) or `"wikitext2_sample"` (~12K tokens) |
192
  | `tokens_approx` | int | Approximate token count used |
193
+ | `note` | string | Measurement notes |
194
 
195
+ > **All 7 variants have full-corpus PPL values.** Q2\_K and Q3\_K\_M measured on Pixel 6a (full corpus, ~285K tokens).
196
+ > Q4\_K\_S, Q4\_K\_M, Q5\_K\_M, Q6\_K, Q8\_0 measured on x86 i5-1235U (full corpus, ~290K tokens).
197
+ > Pixel 6a also has sample-corpus (~12K tokens) measurements for Q4\_K\_M, Q6\_K, Q8\_0 (retained for reference).
 
198
 
199
  ---
200
 
 
280
  1. **Pixel 6a primary focus** — x86 and M4 coverage is less comprehensive than Pixel;
281
  x86 has n=5 trials for cliff sweep but no thread sweep, no kv_cache_quant experiments
282
  2. **x86 Qwen limited to standard_sweep** — Qwen 2.5 1.5B on x86 provides decode TPS reference
283
+ at ctx=256 only. Two cliff reruns were attempted and pushed, but are excluded because the
284
+ result files contain missing/zero-throughput rows at larger contexts
285
  3. **Perplexity corpus inconsistency** — see note in perplexity split above
286
  4. **No power/energy data** — `/proc` interfaces on Pixel 6a are unreliable without root;
287
  battery drain proxy metrics were collected but not included in this release
288
+ 5. **Single model family for quality benchmarks** — quality data covers Llama 3.2 3B only;
289
+ Pixel 6a and x86 rows are included, but there is no validated M4 or Qwen quality split
290
  6. **llama.cpp version** — builds used llama.cpp circa February–April 2026;
291
  results may differ with significantly newer versions
292
 
m4_inference.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:10ee4abc859e12e8ee543ba0e4baf206ba040ebee1b42eb6d59ebee8ae874b8a
3
- size 24632
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a89fd64badf23fd5d2d5ac7452b47049a0d67ae234c6776517e208513fb899b
3
+ size 32843
perplexity.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b60d15ef974ed5234c7de5b8d56bbc382e970c96e4657a903700981684de93a0
3
- size 5590
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ef88b45a6deffd2ea0d0b760036be9f6ca1498f1d2654a783e413bedc7fe562
3
+ size 5689
pixel_inference.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3e3a41a84a41a910bc0717ee428167d8265447252dff1b30fb20302765e1b897
3
- size 53995
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:085c4ed285ff2aff44287af154807a8b654532f4109d1088b24977236d368e80
3
+ size 35253
quality_benchmarks.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5b9b977de9d6034911446280e4f3a571a8132b8111a126d09917ee64a07235d4
3
- size 6404
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b212aa74f65084e5031b95fe15d3f12b508c2dc89a6eb3a9ae2084e360e7a29
3
+ size 6371
x86_inference.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:68a285d4efb3c7b7d3d9b235d7a116ba8153bfc893428be37a9897ef844ab200
3
- size 16530
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb319c6c76e8ec7c6b9e7fbf0a4be9359072df46b6c1ec6deed2decf5692814e
3
+ size 18330