docs: add dataset card with schema, quickstart, and configs block
Browse files
README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "MLX Benchmarks"
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- benchmark
|
| 8 |
+
- evaluation
|
| 9 |
+
- llm
|
| 10 |
+
- mlx
|
| 11 |
+
- apple-silicon
|
| 12 |
+
- throughput
|
| 13 |
+
- latency
|
| 14 |
+
- code-generation
|
| 15 |
+
- reasoning
|
| 16 |
+
- math
|
| 17 |
+
size_categories:
|
| 18 |
+
- "n<1K"
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: default
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: "data/*.parquet"
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# MLX Benchmarks
|
| 27 |
+
|
| 28 |
+
Structured benchmark results for **MLX-quantized** and other **locally-hosted
|
| 29 |
+
LLMs** on Apple Silicon, covering throughput, time-to-first-token, tool-calling,
|
| 30 |
+
code generation, reasoning, knowledge, and math suites.
|
| 31 |
+
|
| 32 |
+
Produced by the sweep harness in
|
| 33 |
+
[`JacobPEvans/mlx-benchmarks` (GitHub)](https://github.com/JacobPEvans/mlx-benchmarks)
|
| 34 |
+
which wires upstream tools against a local `vllm-mlx` inference server:
|
| 35 |
+
|
| 36 |
+
- [`lm-evaluation-harness`](https://github.com/EleutherAI/lm-evaluation-harness) — coding/reasoning/knowledge/math
|
| 37 |
+
- [`MLXBench`](https://github.com/linusvwe/MLXBench) — throughput and time-to-first-token
|
| 38 |
+
- [`vllm benchmark_serving`](https://docs.vllm.ai/en/latest/performance/benchmarks.html) — perf second opinion
|
| 39 |
+
- [`lighteval`](https://github.com/huggingface/lighteval) — broader task coverage
|
| 40 |
+
|
| 41 |
+
## Quickstart
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
from datasets import load_dataset
|
| 45 |
+
|
| 46 |
+
ds = load_dataset("JacobPEvans/mlx-benchmarks")
|
| 47 |
+
print(ds)
|
| 48 |
+
|
| 49 |
+
# Example: average throughput per model on the throughput suite
|
| 50 |
+
import pandas as pd
|
| 51 |
+
df = ds["train"].to_pandas()
|
| 52 |
+
throughput_rows = df[df.suite == "throughput"]
|
| 53 |
+
print(throughput_rows.groupby("model")["metric_value"].mean().sort_values(ascending=False))
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Raw Parquet fetch (token-optimal for agents):
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
curl -sSL https://huggingface.co/datasets/JacobPEvans/mlx-benchmarks/resolve/main/data/train-00000-of-00001.parquet -o run.parquet
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Schema
|
| 63 |
+
|
| 64 |
+
Each input JSON envelope (see `schema.json` for the authoritative v1 spec) is
|
| 65 |
+
**exploded row-wise** into flat scalar columns — one row per metric entry in
|
| 66 |
+
the envelope's `results[]` array. Skipped envelopes become a single sentinel
|
| 67 |
+
row with null metric columns and `skipped=true`. This mirrors the columnar
|
| 68 |
+
layout used by
|
| 69 |
+
[`open-llm-leaderboard/contents`](https://huggingface.co/datasets/open-llm-leaderboard/contents).
|
| 70 |
+
|
| 71 |
+
| Column | Type | Notes |
|
| 72 |
+
| --- | --- | --- |
|
| 73 |
+
| `suite` | string | One of: throughput, ttft, tool-calling, code-accuracy, framework-eval, capability-comparison, coding, reasoning, knowledge, evalplus, math-hard |
|
| 74 |
+
| `model` | string | Full model identifier |
|
| 75 |
+
| `git_sha` | string | Commit SHA of the generator at run time |
|
| 76 |
+
| `timestamp` | string | ISO-8601 UTC start of the run |
|
| 77 |
+
| `trigger` | string | `schedule`, `pr`, `workflow_dispatch`, or `local` |
|
| 78 |
+
| `schema_version` | string | Envelope schema version (currently `"1"`) |
|
| 79 |
+
| `pr_number` | int64 | PR number if triggered by a pull request, else null |
|
| 80 |
+
| `skipped` | bool | True for sentinel rows where the suite was skipped |
|
| 81 |
+
| `os` | string | Operating system at run time |
|
| 82 |
+
| `chip` | string | CPU/chip identifier |
|
| 83 |
+
| `memory_gb` | int64 | Total system RAM |
|
| 84 |
+
| `vllm_mlx_version` | string | Backend version if captured |
|
| 85 |
+
| `runner` | string | GitHub Actions runner label or `local` |
|
| 86 |
+
| `metric_name` | string | Individual test/measurement name |
|
| 87 |
+
| `metric_metric` | string | Metric family (e.g. `throughput`, `latency`, `score`) |
|
| 88 |
+
| `metric_value` | float64 | Numeric value |
|
| 89 |
+
| `metric_unit` | string | Unit (`tok/s`, `seconds`, `ratio`, etc.) |
|
| 90 |
+
| `tags_json` | string | JSON-serialized tag dict (per-suite custom metadata) |
|
| 91 |
+
| `errors_json` | string | JSON-serialized list of non-fatal errors from the run |
|
| 92 |
+
|
| 93 |
+
Nested fields from the envelope (`tags`, `errors`) are preserved as
|
| 94 |
+
JSON-serialized strings so no information is lost — rehydrate with
|
| 95 |
+
`json.loads(row["tags_json"])`.
|
| 96 |
+
|
| 97 |
+
## Update cadence
|
| 98 |
+
|
| 99 |
+
New rows are appended on every sweep via `HfApi.create_commit` with unique
|
| 100 |
+
filenames (`data/run-{timestamp}-{sha}-{suite}-{model}.parquet`). Historical
|
| 101 |
+
shards are never overwritten. `load_dataset()` concatenates all
|
| 102 |
+
`data/*.parquet` files into a single `train` split at load time.
|
| 103 |
+
|
| 104 |
+
## License
|
| 105 |
+
|
| 106 |
+
Apache 2.0 — same as the generator repo and the underlying upstream tools.
|