Files
cookbook/README.md
T
ClaudeandClaude Opus 5.5 562c7f2fb8
ci / check (push) Successful in 10s
One folder per GPU, with a GPU index in the top-level README
Recipes, tried logs and result folders move under <gpu>/: recipes at
<gpu>/<model>/<engine>-<profile>.md, tried logs at <gpu>/<model>/tried.md,
runs at <gpu>/results/<run>/. build generates a README for every GPU in
cookbook.toml and the GPU table in README.md. validate checks that a run
sits in the folder of the GPU it ran on and warns about stray top-level
folders. Format docs and host setup move to docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:38:54 +01:00

80 lines
3.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Arc LLM Cookbook
The fastest way to run each model on Intel Arc GPUs, with the exact commands. Every
number links to a [bench-standard](https://git.linxweiler.xyz/miga/benchmarks) result,
and CI checks that each recipe's launch command is the one that was benchmarked.
> **Demo content.** The results in this repo are synthetic so far, made by
> `tools/demo/make_demo.py` to show the layout. Nothing has been measured yet.
## Pick your GPU
<!-- cookbook:index -->
| GPU | VRAM | bandwidth (spec) | recipes | fastest for one user |
|---|---|---|---|---|
| [Arc Pro B65](arc-pro-b65/README.md) | 32 GB | 608 GB/s | 5 | Qwen3.5-9B: 118.2 t/s (vllm) · Qwen3.8-27B: 84.5 t/s (vllm) |
| [Arc Pro B60](arc-pro-b60/README.md) | 24 GB | 456 GB/s | 0 | none yet: wanted |
| [Arc Pro B50](arc-pro-b50/README.md) | 16 GB | 224 GB/s | 0 | none yet: wanted |
| [Arc B580](arc-b580/README.md) | 12 GB | 456 GB/s | 1 | Qwen3.5-9B: 48.2 t/s (llama.cpp) |
| [Arc B570](arc-b570/README.md) | 10 GB | 380 GB/s | 0 | none yet: wanted |
| [Arc A770](arc-a770/README.md) | 16 GB | 560 GB/s | 0 | none yet: wanted |
<!-- /cookbook:index -->
Each GPU folder has its recipes, what lost against them, and the result folders that
prove both. All of it on one page, with filters: [`site/index.html`](site/index.html).
## Layout
```
arc-pro-b65/ one folder per GPU
README.md generated: its recipes, what lost, what's wanted
qwen3.8-27b/
vllm-single-user.md a recipe: <engine>-<profile>.md
tried.md what lost against the recipes for this model
results/<run>/ bench.sh result folders, unmodified
docs/ recipe and tried formats, result rules, host setup
site/index.html the generated page
cookbook.toml GPUs, models, accepted bench-standard versions
tools/cookbook.py validate and build
```
## How to read a recipe
A recipe is one exact setup: model file, engine build, container digest, launch
command, GPU. It's written for one **profile**, and the headline number is that
profile's metric:
| profile | for | headline metric |
|---|---|---|
| `single-user` | one person chatting or coding | decode t/s at batch 1 |
| `throughput` | several users or parallel agents | peak aggregate t/s of the concurrency sweep |
| `long-context` | big prompts, RAG, long files | prefill t/s at the deepest context that fits |
| `efficiency` | power-limited or always-on boxes | decode J/token |
**Status:** `one submitter` until someone else reproduces the recipe within 5%, then
`verified by N`. ★ marks the fastest recipe for a GPU, model and profile.
## What decides the speed on Arc
- **Decode at batch 1 is bound by memory bandwidth.** Every token reads all the weights
once, so decode t/s × weight size ≈ the bandwidth reached. bench.sh measures the real
bandwidth, and a recipe shows the share decode reaches. Speculative decoding gets
past that limit, because one pass over the weights yields several tokens.
- **Prefill is bound by compute** and by the power limit. A lower limit lowers the clock
in long prefills.
- **ReBAR must be on.** Without it Arc loses a lot of speed. See [host setup](docs/host-setup.md).
## Contributing
Run a recipe, benchmark it, send the result folder: that's a reproduction. Found
something faster? That's a new recipe, and the old one's numbers go in `tried.md`.
Both are in [CONTRIBUTING.md](CONTRIBUTING.md). With a coding agent, point it at
[AGENTS.md](AGENTS.md). The plan: [PLAN.md](PLAN.md).
```sh
python3 tools/cookbook.py validate # recipes against results
python3 tools/cookbook.py build # tables, GPU READMEs, site/index.html
```
Python 3.11+, standard library only. Tests: `python3 -m pytest tools/tests`.