Fresh loom-next port
Browse filesFiles changed (6)
- README.md+12-37
- REPORT.md+2-34
- info.json+3-171
- llm_config.json+11-3
- model.json+1-1
- program/llm.loom
65 unmodified lines666768697071727374757677787980818283848586878889909192939495969719 unmodified lines11711811912012112212312412512612712812913013113213365 unmodified lines### Strix Halo (gfx1151)| metric | llama.cpp | Loom | margin vs best llama.cpp | roofline | Loom % of roofline ||---|---|---|---|---|---|| decode tok/s, short prompt | 55.5 | 60.2 | +8 % | — | — || decode tok/s, 2k context | 53.4 | 57.9 | +8 % | — | — || decode tok/s, 32k context | 41.7 | 45.8 | +10 % | — | — || prefill tok/s, 1k document | 2526.5 | 2530.7 | +0 % | — | — || prefill tok/s, 2k document | 2774.5 | 2721.2 | -2 % | — | — || prefill tok/s, 8k document | 2736.8 | 2587.1 | -5 % | — | — || prefill tok/s, 16k document | 2476.6 | 2385.5 | -4 % | — | — || prefill tok/s, 32k document | 2029.5 | 2018.9 | -1 % | — | — || 4 streams, aggregate decode tok/s | 166.2 | 215.3 | +30 % | — | — || speculative decoding, drafted tokens accepted | n/a | n/a | n/a | n/a | n/a |**Methodology**- Compared: Loom against llama.cpp ROCm `llamacpp-rocm/b1374`; the same GGUF, the same DevLab runner and job, the same prompts; Loom served with the active wait. Values are the median of 3 sessions (4 streams: median of 3); Loom is timed by the client, llama.cpp by its server.- Out of the box on both engines: Loom serves the preset shipped in this package; llama.cpp runs its build defaults plus only the server arguments listed below (offload, context and slots). No tuning sweep on either engine.- Drafting, 1-stream rows (decode, decode_2k, decode_32k, prefill): no drafting on either engine (no MTP head in the GGUF and no drafter published for this exact model). Each engine is loaded once for all these rows.- 4 streams: both engines loaded with drafting off, 4 parallel requests, aggregate tokens per second.- Rows: decode = short-context decode; decode_2k / decode_32k = decode after a ~2k / ~32k-token context; prefill_Nk = prompt processing of an N k-token prompt; streams4 = 4-stream aggregate decode. A margin within +-3 % (the measured same-runner noise) is a tie.- llama.cpp ROCm server arguments: `-ngl 99 -cram 0 -c 65536 -np 1`.- Measured on AMD DevLab Dispatch Strix Halo runners (`devlab-perf` jobs); runners differ between sessions.- Margin vs best llama.cpp: (Loom / max(ROCm, Vulkan) - 1) × 100 %, using the available measured tokens/s for each row on this GPU. With only one valid backend, that backend is used; with neither, the margin is not measured. Raw backend values and their measurement sources are retained below and in the table.- Measured 2026-11-26; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D06), Linux; hrx-loom `0.2.0` (hrx-system commit unknown, recovered); source: [DevLab Dispatch run 45772986253](https://github.com/loom-fun/loom-next/actions/runs/45772986253).- Roofline: not computed.- — not measured; n/a not applicable.### Radeon AI PRO R9700 (gfx1201, 32 GB)19 unmodified lines| gate | description | Strix Halo | Radeon AI PRO R9700 ||---|---|---|---|| `kernel_tests` | Unit tests of the generated kernels against reference implementations | ❌ no evidence | — not yet re-measured || `golden` | llama.cpp reference recorded on the same GGUF: greedy tokens and top-5 log-probs, short prompts and 1k-32k documents | ❌ no evidence | — not yet re-measured || `compare` | Greedy output vs the llama.cpp reference, token by token; every divergence is a near-tie | ❌ no evidence | — not yet re-measured || `vision` | Image input vs llama.cpp with the same projector: identical prompt tokens, replies equal up to near-ties | ❌ no evidence | — not yet re-measured || `consistency` | Concurrent requests give the same output as the same requests run alone | ❌ no evidence | — not yet re-measured || `spec` | Speculative decoding on gives exactly the output of speculative decoding off | — not applicable | — not yet re-measured || `agent` | Multi-turn tool-calling loop: exact prompt rendering, history reuse, valid tool calls, output vs llama.cpp | ❌ no evidence | — not yet re-measured || `agent_think_off` | The tool-calling loop with thinking off | ❌ no evidence | — not yet re-measured || `sampling` | temperature, top_k and seed behave as specified; first-token distribution matches llama.cpp | ❌ no evidence | — not yet re-measured || `logits` | Host logits readback (llm.logits on): at T=0 every returned row's argmax is the device's token, the top-k matches llama.cpp, greedy text is unchanged | ❌ no evidence | — not yet re-measured || `decision` | Decision answers (choice, score, noul probabilities) vs llama.cpp on the same prompts | — not applicable | — not yet re-measured |- Gates are the loom-benchmark correctness gates (`gates.sh`); a gate without a recorded run shows no evidence.65 unmodified lines6667686970717219 unmodified lines929394959697989910010110210310410510610710865 unmodified lines### Strix Halo (gfx1151)AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151): the results for this package are not yet re-measured.### Radeon AI PRO R9700 (gfx1201, 32 GB)19 unmodified lines| gate | description | Strix Halo | Radeon AI PRO R9700 ||---|---|---|---|| `kernel_tests` | Unit tests of the generated kernels against reference implementations | — not yet re-measured | — not yet re-measured || `golden` | llama.cpp reference recorded on the same GGUF: greedy tokens and top-5 log-probs, short prompts and 1k-32k documents | — not yet re-measured | — not yet re-measured || `compare` | Greedy output vs the llama.cpp reference, token by token; every divergence is a near-tie | — not yet re-measured | — not yet re-measured || `vision` | Image input vs llama.cpp with the same projector: identical prompt tokens, replies equal up to near-ties | — not yet re-measured | — not yet re-measured || `consistency` | Concurrent requests give the same output as the same requests run alone | — not yet re-measured | — not yet re-measured || `spec` | Speculative decoding on gives exactly the output of speculative decoding off | — not yet re-measured | — not yet re-measured || `agent` | Multi-turn tool-calling loop: exact prompt rendering, history reuse, valid tool calls, output vs llama.cpp | — not yet re-measured | — not yet re-measured || `agent_think_off` | The tool-calling loop with thinking off | — not yet re-measured | — not yet re-measured || `sampling` | temperature, top_k and seed behave as specified; first-token distribution matches llama.cpp | — not yet re-measured | — not yet re-measured || `logits` | Host logits readback (llm.logits on): at T=0 every returned row's argmax is the device's token, the top-k matches llama.cpp, greedy text is unchanged | — not yet re-measured | — not yet re-measured || `decision` | Decision answers (choice, score, noul probabilities) vs llama.cpp on the same prompts | — not yet re-measured | — not yet re-measured |- Gates are the loom-benchmark correctness gates (`gates.sh`); a gate without a recorded run shows no evidence.
9 unmodified lines101112131415163 unmodified lines2021222324252627282930313233343536373839404142434445464748495051525354555657589 unmodified lines## Method- `perf.py` (loom-benchmark) sends real-text requests: a short prompt for decode, decode after 2k and 32k tokens of context, and prefill of documents of about 1k, 2k, 8k, 16k and 32k tokens. Each run gives one value per metric; the card shows the median over the sessions of each session's median sample (a session without an "aggregate" key was measured as the mean of its runs: its row says so).- `c4_steady.py` runs 4 concurrent streams and reports the aggregate decode rate over the window in which all 4 are decoding; the card shows the median of the runs.- One engine runs at a time on the same machine, with the same GGUF. Loom rates are timed by the client; llama.cpp rates come from its server-side `timings`.- Every performance value comes from a `devlab-perf` job (loom-skills) on an AMD DevLab Dispatch Strix Halo runner: Loom, served with the active wait (`--device=amdgpu://?completion_spin_ns=4294967295`), and llama.cpp on the same runner, with the published programs.3 unmodified lines## AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151)- Baseline: llama.cpp `llamacpp-rocm/b1374`, server arguments `-ngl 99 -cram 0 -c 65536 -np 1` (model path, host and port left out).### Session 1: [DevLab Dispatch run 45772986253](https://github.com/loom-fun/loom-next/actions/runs/45772986253), 2026-11-26- Device: AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D06), Linux.- Loom SDK: hrx-loom `0.2.0` (hrx-system commit unknown, recovered).- Programs measured: sha256 `897927a205a2c377af9c02b65a9440819172c078d668b106f75f3610dfa1fb70`, the same as this repository's programs.- Values: the median over 3 sessions (4 streams: over 3 runs), a session's value being the median of its samples.| metric | engine | runs | value ||---|---|---|---|| decode tok/s, short prompt | Loom | 59.77, 60.19, 61.58 | 60.2 || decode tok/s, short prompt | llama.cpp | 57.02, 55.41, 55.5 | 55.5 || decode tok/s, 2k context | Loom | 57.49, 57.89, 59.06 | 57.9 || decode tok/s, 2k context | llama.cpp | 53.92, 53.44, 53.08 | 53.4 || decode tok/s, 32k context | Loom | 46.68, 45.8, 45.82 | 45.8 || decode tok/s, 32k context | llama.cpp | 41.71, 41.64, 41.93 | 41.7 || prefill tok/s, 1k document | Loom | 2537.2, 2525.0, 2530.7 | 2530.7 || prefill tok/s, 1k document | llama.cpp | 2544.4, 2526.5, 2522.4 | 2526.5 || prefill tok/s, 2k document | Loom | 2736.7, 2721.2, 2719.7 | 2721.2 || prefill tok/s, 2k document | llama.cpp | 2800.4, 2772.0, 2774.5 | 2774.5 || prefill tok/s, 8k document | Loom | 2587.1, 2594.6, 2578.8 | 2587.1 || prefill tok/s, 8k document | llama.cpp | 2742.7, 2736.8, 2704.4 | 2736.8 || prefill tok/s, 16k document | Loom | 2392.4, 2385.5, 2380.0 | 2385.5 || prefill tok/s, 16k document | llama.cpp | 2479.5, 2476.6, 2475.0 | 2476.6 || prefill tok/s, 32k document | Loom | 2018.9, 2019.6, 2015.9 | 2018.9 || prefill tok/s, 32k document | llama.cpp | 2032.5, 2028.8, 2029.5 | 2029.5 || 4 streams, aggregate decode tok/s | Loom | 215.3, 216.0, 215.1 | 215.3 || 4 streams, aggregate decode tok/s | llama.cpp | 168.0, 166.2, 165.5 | 166.2 |### Gate evidenceNo gate evidence is recorded.## AMD Radeon AI PRO R9700 (gfx1201, 32 GB)9 unmodified lines101112131415163 unmodified lines202122232425269 unmodified lines## Method- `perf.py` (loom-benchmark) sends real-text requests: a short prompt for decode, decode after 2k and 32k tokens of context, and prefill of documents of about 1k, 2k, 8k, 16k and 32k tokens. Each run gives one value per metric; the card shows the mean of the runs.- `c4_steady.py` runs 4 concurrent streams and reports the aggregate decode rate over the window in which all 4 are decoding; the card shows the median of the runs.- One engine runs at a time on the same machine, with the same GGUF. Loom rates are timed by the client; llama.cpp rates come from its server-side `timings`.- Every performance value comes from a `devlab-perf` job (loom-skills) on an AMD DevLab Dispatch Strix Halo runner: Loom, served with the active wait (`--device=amdgpu://?completion_spin_ns=4294967295`), and llama.cpp on the same runner, with the published programs.3 unmodified lines## AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151)AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151): the results for this package are not yet re-measured.## AMD Radeon AI PRO R9700 (gfx1201, 32 GB)
78 unmodified lines7980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322331 unmodified line23523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626778 unmodified lines"state": "not_measured"},"strix-halo": {"gates": {},"performance": {"baseline": {"args": "-ngl 99 -cram 0 -c 65536 -np 1","name": "llama.cpp","version": "llamacpp-rocm/b1374"},"sessions": [{"aggregate": "median","commands": [],"date": "2026-11-26","metrics": {"decode": {"baseline": 55.5,"baseline_runs": [57.02,55.41,55.5],"loom": 60.2,"loom_runs": [59.77,60.19,61.58]},"decode_2k": {"baseline": 53.4,"baseline_runs": [53.92,53.44,53.08],"loom": 57.9,"loom_runs": [57.49,57.89,59.06]},"decode_32k": {"baseline": 41.7,"baseline_runs": [41.71,41.64,41.93],"loom": 45.8,"loom_runs": [46.68,45.8,45.82]},"prefill_16k": {"baseline": 2476.6,"baseline_runs": [2479.5,2476.6,2475.0],"loom": 2385.5,"loom_runs": [2392.4,2385.5,2380.0]},"prefill_1k": {"baseline": 2526.5,"baseline_runs": [2544.4,2526.5,2522.4],"loom": 2530.7,"loom_runs": [2537.2,2525.0,2530.7]},"prefill_2k": {"baseline": 2774.5,"baseline_runs": [2800.4,2772.0,2774.5],"loom": 2721.2,"loom_runs": [2736.7,2721.2,2719.7]},"prefill_32k": {"baseline": 2029.5,"baseline_runs": [2032.5,2028.8,2029.5],"loom": 2018.9,"loom_runs": [2018.9,2019.6,2015.9]},"prefill_8k": {"baseline": 2736.8,"baseline_runs": [2742.7,2736.8,2704.4],"loom": 2587.1,"loom_runs": [2587.1,2594.6,2578.8]},"streams4": {"baseline": 166.2,"baseline_runs": [168.0,166.2,165.5],"loom": 215.3,"loom_runs": [215.3,216.0,215.1]}},"programs_sha256": "897927a205a2c377af9c02b65a9440819172c078d668b106f75f3610dfa1fb70","runs": {"decode_prefill": 3,"streams4": 3},"source": "devlab-45772986253"}]},"quick_start": {"args": ["--pool_backing=fixed",1 unmodified line],"device": "amdgpu://?completion_spin_ns=4294967295","preset": "chat"}}},"repo": "loom-draft/Ghasty3-CapriAI2-loom","report": "generated","schema": "loom-card/3","sources": {"devlab-45772986253": {"device": {"cpu": "AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D06)","os": "Linux"},"hrx_loom": {"artifact_id": null,"basis": "install.log of the run","branch": null,"hrx_loom": "0.2.0","hrx_system_sha": null,"recovered": true,"source": "pypi","wheel_sha256": null},"kind": "devlab","run": "45772986253","url": "https://github.com/loom-fun/loom-next/actions/runs/45772986253"}},"versions": {"card_generator": "6facf9ad6acd3252746ab941da73dd4da7543710"}78 unmodified lines7980818283841 unmodified line868788899091929394959697989978 unmodified lines"state": "not_measured"},"strix-halo": {"quick_start": {"args": ["--pool_backing=fixed",1 unmodified line],"device": "amdgpu://?completion_spin_ns=4294967295","preset": "chat"},"state": "not_measured"}},"repo": "loom-draft/Ghasty3-CapriAI2-loom","report": "generated","schema": "loom-card/3","sources": {},"versions": {"card_generator": "6facf9ad6acd3252746ab941da73dd4da7543710"}
155 unmodified lines15615715815916016116212 unmodified lines1751761771781791801814 unmodified lines186187188189190191155 unmodified lines"model_id": "capriai2","draft": null,"generator": {"commit": "c676fdb236a2106cf9d5e8e2f8719a13950615e1","dirty": false,"kit": "gemma4","hrx_loom": "unknown"12 unmodified lines"facet/vision","facet/wide-head"],"choices": {},"devices": ["rdna3","rdna4"4 unmodified lines"vision","wide-head"],"env": {}}}155 unmodified lines15615715815916016116212 unmodified lines1751761771781791801811821831841851861874 unmodified lines192193194195196197198199155 unmodified lines"model_id": "capriai2","draft": null,"generator": {"commit": "cfb610597871081519bb01fc2eb5a75881047c86","dirty": false,"kit": "gemma4","hrx_loom": "unknown"12 unmodified lines"facet/vision","facet/wide-head"],"choices": {"prefill.prune_shared": {"value": true,"from": "arch/llm/dense/gemma4","evidence": "Issue #554: corrected Bolt boundary preserves DFlash taps. Every shared-KV model since 2026-11-27 (Strix Halo, hrx-loom 0.2.0, pruned vs unpruned): gemma-4-E2B-it prefill 1k/8k/32k 4511/4290/3004 -> 8830/10158/7158 tok/s, Lythri-Tada-4B 4299/4217/2968 -> 8691/9483/7014, Nemotron-3.5-Bolt-E4B (bartowski) 2633/2651/2097 -> 3697/3998/3331; decode within 3%; greedy texts (5 prompts, up to 6.9k tokens) byte-identical and strict concurrent consistency 5/5 on all three. The earlier E2B hold came from R9700 strict failures that the unpruned base shares."}},"devices": ["rdna3","rdna4"4 unmodified lines"vision","wide-head"],"env": {"PRUNE_SHARED": "1"}}}
83 unmodified lines8485868788899083 unmodified lines"execution": {"rows": 4,"context_capacity": 131072,"prefill_capacity": 1024,"max_tokens": 4096}}83 unmodified lines8485868788899083 unmodified lines"execution": {"rows": 4,"context_capacity": 131072,"prefill_capacity": 2048,"max_tokens": 4096}}
README.md+12-37
REPORT.md+2-34
info.json+3-171
llm_config.json+11-3
model.json+1-1
program/llm.loom