π Model Description
GGUF Header Edit Benchmark
Benchmark script for measuring how long it takes to edit GGUF headers in-place on Hugging Face with streaming blobs (xet) and create a pull request per file.
It fetches metadata, rebuilds the header with a small change, commits an edit (header slice only), and records timings to a CSV.
Result from benchmark.ts
[!note]
Rule of thumb (linear fit):
timeminutes β 0.36 Γ sizeGB + 0.25
| Model Size (GB) | Time (minutes) |
|---|---|
| 0.5 | 0.28 |
| 1.0 | 0.47 |
| 1.5 | 0.24 |
| 2.0 | 1.06 |
| 2.5 | 1.29 |
| 3.0 | 1.43 |
| 3.5 | 1.59 |
| 4.0 | 1.61 |
| 4.5 | 1.82 |
| 5.0 | 1.98 |
| 5.5 | 2.10 |
| 6.0 | 2.18 |
| 6.5 | 2.14 |
| 7.0 | 4.73 |
| 7.5 | 5.04 |
| 8.0 | 2.71 |
| 8.5 | 2.75 |
| 9.0 | 3.03 |
| 9.5 | 3.11 |
| 10.0 | 3.24 |
β¨ What this does
For each *.gguf file in a model repo:
- Discover files via the Hugging Face model tree API.
- Fetch GGUF + typed metadata with
@huggingface/gguf. - Rebuild the header using
buildGgufHeader(preserving endianness, alignment, and tensor info range). - Commit a slice edit (header bytes only) using
commitIterwithuseXet: trueto avoid full re-uploads. - Create a PR titled
benchmark. - Record timing (wall-clock) to
benchmark-results.csv.
π§± Requirements
- Node 18+
- A Hugging Face token with read + write on the target repo:
HF_TOKEN - NPM packages:
@huggingface/gguf
- @huggingface/hub
- Network access to
huggingface.co
π§ Setup
npm i
npm run benchmark
π GGUF File List
| π Filename | π¦ Size | β‘ Download |
|---|---|---|
|
10000mb.gguf
Recommended
LFS
|
9.69 GB | Download |
|
1000mb.gguf
LFS
|
1000 MB | Download |
|
1500mb.gguf
LFS
|
1.46 GB | Download |
|
2000mb.gguf
LFS
|
1.95 GB | Download |
|
2500mb.gguf
LFS
|
2.44 GB | Download |
|
3000mb.gguf
LFS
|
2.93 GB | Download |
|
3500mb.gguf
LFS
|
3.42 GB | Download |
|
4000mb.gguf
LFS
|
3.91 GB | Download |
|
4500mb.gguf
LFS
|
4.39 GB | Download |
|
5000mb.gguf
LFS
|
4.88 GB | Download |
|
500mb.gguf
LFS
|
500 MB | Download |
|
5500mb.gguf
LFS
|
5.37 GB | Download |
|
6000mb.gguf
LFS
|
5.86 GB | Download |
|
6500mb.gguf
LFS
|
6.35 GB | Download |
|
7000mb.gguf
LFS
|
6.84 GB | Download |
|
7500mb.gguf
LFS
|
7.32 GB | Download |
|
8000mb.gguf
LFS
|
7.81 GB | Download |
|
8500mb.gguf
LFS
|
8.3 GB | Download |
|
9000mb.gguf
LFS
|
8.79 GB | Download |
|
9500mb.gguf
LFS
|
9.28 GB | Download |