bench: mixed AMD helper layout at1M, long-output and quality results

This commit is contained in:
saikiran-rs authored and Niko1221 committed 2026-10-08 02:34:02 +02:00
1 parent 69391129fe
commit 244f113c96
22 files changed
+5714

No files matched your search

@@ -0,0 +1,188 @@
# RX 7900 XTX + RX 6800 XT helper cache, Xeon E5-2696 v4, 1M context
Measurements from 2026-10-06/07 on a custom Linux HIP build. This is a
results-only report of combined tuning, with exact prompts and per-request data.
It does not establish a universal speedup, an isolated helper-allowance gain or
an isolated Q8-kernel gain. It does not claim 100+ sustained tokens/s.
## Hardware and software
- RX 7900 XTX, 24 GiB, gfx1100: primary GPU, PCIe 3 x16 upstream link.
- RX 6800 XT, 16 GiB, gfx1030: expert-cache helper, PCIe 3 x8 upstream link.
- Xeon E5-2696 v4, 22 physical cores / 44 threads, AVX2, one socket/NUMA node.
- 121 GiB OS-visible RAM; installed DIMM capacity,storage model/type and GPU
power limits are not recorded here. No host-wide clock/power/governor changes
were made by this campaign. Peak host/VRAM usage is not summarized in this report.
- Ubuntu 26.04.1, amdgpu kernel 7.0.0-38-generic, GCC 15.2.0, CMake 4.2.
- TheRock/ROCm 10.2.0a20261005, gfx1030 + gfx1100 source build; exact Python/ROCm
package versions are in [packages.json](packages.json),flags in [build-recipes](build-recipes/).
- A separate NVIDIA 27B service ran on two RTX 3060s on the same host. It was
managed independently; its CPU/IO load was not isolated or measured here.
Compilation was kept out of the timed inference windows.
## Model and runtime
Unsloth UD-Q4_K_XL of Qwen3.8-Flash-Next, all four GGUF shards at revision
`c8b5954a88c2775c546b92593eda40ea041d3176`. Exact immutable URLs and SHA256s
are in [provenance.json](provenance.json). Native routed weights are retained;
the auxiliary dense pack uses the existing `--compat-bf16` conversion. The MTP
proposal layer is Q2_0,derived from Qwen's revision
`de4b8e4d43b917e7706784d8bb445c9af86a3540`; target verification remains Q4_K_XL.
No target requantization or experimental speed projection was used.
Both baseline and final use one client slot, 1,048,576 context, int8 KV with 32768
resident cells, static YaRN 4 / original 262144, and the helper layout. All target
layers remain on the XTX. Both already use primary/helper allowances 448/128 MiB,
`--remote-expert-opt` and lag 2. Both keep 4096 MiB / 4 slots RAM conversation parking;
those parked conversations do not add client concurrency. CPU vision uses the
original F16 projector and encoder, 12 threads and at most 1024 image tokens.
Baseline native commit`477b5f7bf946d4d8a4f0d55877f84163d8ba9a82` is 0.1.40.1
plus the helper-allowance patch; API`2c1407dfde3fd9831853ec4984c3cef59bc659bd`
adds local metadata/thinking compatibility. The final native is
`96c35a0e54cb505579f83c1adde4b71d27c33436`,based on 0.1.40.2
`e8ca9afd03d839d4f8dbbe82dffce7f8a3bafd7a`; API is
`5597378da8b5c2fe180e30f6b1903342e12e60ee`. These are historical measured
sources,not measurements of a new isolated PR or stock 0.1.40.3.
The final configuration combines spec 8, 15 workers, adapt-every 4, lookup-chain 3,
streamed MTP normalization,exact kernel switches, coupled/Gumbel sampling and
the local opt-in HIP interleaved/Q8 path. [variants.json](variants.json) records
each measured arm's full args/env. The Q8 extension alone was not a consistent
whole-model win. Kernel bitwise parity and sampled model quality are different
checks; neither proves identical generated text for a changed sampler/cache.
The source incorporates or applies work from [#1181](https://github.com/Niko1221/Strata/pull/1181),
[#1125](https://github.com/Niko1221/Strata/pull/1125),
[#1123](https://github.com/Niko1221/Strata/pull/1123),
[#1305](https://github.com/Niko1221/Strata/pull/1305),
[#1240](https://github.com/Niko1221/Strata/pull/1240),
[#1087](https://github.com/Niko1221/Strata/pull/1087),
[#1281](https://github.com/Niko1221/Strata/pull/1281) and
[#786](https://github.com/Niko1221/Strata/pull/786). The interleaved layout builds
on the upstream implementation credited to Eddoursul. These contributions belong
to their original authors; the source history preserves that attribution.
## Results
All rates below are single-stream engine timings in tokens/s; reasoning tokens
are included. Coding/prose use medium thinking, temperature 1, top_p .95, top_k 20,
min_p 0, presence_penalty 0, seed 314159. Each long request has an 8192 output cap.
| Long coding arm | Individual rates | Actual output tokens | Repetitions |
|---|---|---|---|
| 0.1.40.2 helper control,interleaving off |82.5 /83.9|8192 each|2|
| Generic HIP interleaved port,row1 |84.8 /84.1|8192 each|2|
| Q8 extension,row1,otherwise same helper settings |82.2 /81.3|8192 each|2|
| Final combined15worker/spec8 arm |97.2 /96.7 /97.0|8192 each|3|
Final coding median 97.0, range 96.7–97.2. Final long prose 65.0/63.9, with 4820/3911
actual output tokens: the second ended before the campaign's 4096 token minimum.
The campaign's original 100 TG gate failed. Short 1536 token fixtures should be
kept separate: baseline coding median 76.2, n3; final 78.3, n1. Baseline prose
median 62.3, n3; final 65.5, n1. No paired confidence interval is claimed.
| Cold prompt fixture | Baseline PP | Final PP | Fresh input | Outputs |
|---|---:|---:|---:|---:|
| Nominal50K |1348.8|1350.1|47641|768|
| Nominal130K |1286.6|1294.2|123747|768|
| Full usable1M |587.4|591.7|1048064|504|
Cold/depth tests are greedy,thinking off; cached-prefix tokens are0. Full-depth
decode 39.3 baseline / 39.2 final. The full request exercises 1048064 input + 504 output
+ 8 API-reserved = 1048576 configured tokens. All three recall markers were found.
Markers were inserted at 10/50/90% of the initial character haystack,then the tail
was adjusted to capacity; these are not claims of exact token-percent depths.
Details are in [full-context.json](full-context.json).
First 200 HellaSwag and 200 WinoGrande items in the local files' order, greedy with
thinking off: baseline 181/200 and 173/200; final 181/200 and 175/200; zero unparseable
answers/errors in both. [quality.json](quality.json) includes item IDs/gold/answers,
scores and source-file hashes. This is a small matched sample, not overall model
intelligence or validated correctness of the generated coding task.
The final arm was selected after CPU worker, spec window and draft-confidence
screens. Its first two coding runs alternated with prose. The third followed
other trials,restoration of the winning configuration and functional checks;
it was an additional validation run,not three consecutive uninterrupted coding
requests. Expert-cache adaptation stayed enabled and was warmed by preceding
requests. Requests carried different leading tags; no prefix reset is hidden.
Full chronology and actual per-request cached-token counts are in
[provenance.json](provenance.json) and [measurements.json](measurements.json).
Earlier layer-split experiments produced hangs and an illegal-memory failure
with a 6800 XT kernel page fault; host reboots followed. Those failed configurations
are excluded from successful speed summaries. Their cause was not fixed or
established by this work. The final helper layout completed the checks without
another recorded AMD kernel fault. Text, tools, thinking variants, metadata and
image checks passed locally; concurrent-client coverage does not apply.
## Reproduction
The public archive contains the exact historical sources. It is research source,
not a proposed default change or a CUDA-qualified release:
```bash
git clone https://github.com/saikiran-rs/Strata.git strata-research
cd strata-research
git checkout community/amd-helper-1m-report-20261007
cd bench/results/2026-10-07-community-xtx-6800xt-1m-helper
```
Use the commit/path mapping in [source-layout.json](source-layout.json) for the
separate baseline/API/packing trees. `python prepare_sources.py --root <reproduction-directory>`
creates those source worktrees and the pinned GGML tree without building or serving.
Install the pinned package versions from `packages.json`; the recipes expect the
ROCm wheels under the virtualenv path named in `source-layout.json`.
GGML is pinned to `3cf03257f219afbe7334045ff7c6a06ac68c627d`. [build-recipes](build-recipes/)
contains the measured HIP flags; set`STRATA_RESEARCH_ROOT` to the reproduction
directory. Expected measured binary hash identifies the historical build;
compiler/loader/path differences can change a rebuilt binary's hash.
Download the pinned GGUFs,then use the packing source's`tools/iq_pack.py
--compat-bf16 --gguf <first-shard> --out <pack>`. Recreate the draft with
`tools/mtp_fetch.py fetch/verify`,`mtp_pack.py --experts q2_0`,and`mtp_rt.py`;
the original checkpoint revision is in provenance. Binary/tensor hashes identify
the measured artifacts in [artifact-hashes.json](artifact-hashes.json); relocating
path-bearing JSON metadata can change its hash without changing tensor bytes.
The measured expert profile
and hipBLASLt table are included in this folder; they are not automatic defaults.
[baseline.json](baseline.json) and [tuned.json](tuned.json) preserve the measured
parameters with portable placeholders. Replace`${RESEARCH_ROOT}`,`${MODELS}`,
`${PACK}`,`${MTP}` and`${OUTPUT}` with your paths; copy the provided profile/table
to the paths the configs name. Place the matching`.shared-settings.json` sidecar
beside each rendered config. Serve with the pinned API using
`python -m serve.server --engine strata --config <rendered-config> --port 8080`. Check that the HIP ordinals select only the
intended AMD cards. No included script starts/stops a service or changes tuning.
Run the client against that already-running server:
```bash
python bench.py --check-recorded
python bench.py --url http://127.0.0.1:8080 --case coding --reps 3 --out my-code
python bench.py --url http://127.0.0.1:8080 --case prose --reps 2 --out my-prose
python bench.py --url http://127.0.0.1:8080 --case depth50000 --out my-depth50k
python bench.py --url http://127.0.0.1:8080 --case depth130000 --out my-depth130k
python bench.py --url http://127.0.0.1:8080 --case full --out my-full1m
```
A full1M request took about 30 min
on this setup. The short commands reproduce the request fixtures/protocol;
matching the historical order matters because the adaptive cache stays enabled.
The client records server timings,usage,client first/last generated-delta times,
elapsed time,output text and failures. Client TG uses(completion_tokens−1)/
(last−first delta time),as in the original harness; SSE/network batching can
affect it. Engine TG is reported separately; total request time is not decode time.
For the quality sample,obtain the exact datasets matching the hashes,then:
```bash
python quality.py final quality-out http://127.0.0.1:8080 --hs 200 --wg 200 \
--hellaswag hellaswag_val_full.txt --winogrande winogrande-debiased-eval.csv
```
Dataset content is not redistributed;
sample ordering and the answer-letter parser are preserved in`quality.py`.
Historical results are retained; no new inference measurements were run for publication.
@@ -0,0 +1,13 @@
# Trimmed files
Ported from PR #1459 for 0.1.41. Raw dumps over 100 KB and binary files were left out to keep the repository small; the README, summaries, configs and per-run results are unchanged. The files below were in the original PR.
5 files, 1.4 MB:
| file | bytes | why |
|---|---:|---|
| `depth-130000-prompt.txt.gz` | 159,764 | binary |
| `depth-50000-prompt.txt.gz` | 62,358 | binary |
| `expert-profile.bin` | 196,632 | binary |
| `full-window-prompt.txt.gz` | 880,341 | binary |
| `measurements.json` | 107,664 | raw dump over 100 KB |
@@ -0,0 +1,116 @@
[
{
"role": "additional GGUF argument",
"size_bytes": "10946624",
"sha256": "4448186216b3af4cc558bbce2c3213f01608f8f8b2e5267a9767971dd3ec8082",
"relative_path": "${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf"
},
{
"role": "Strata native model",
"size_bytes": "49859583136",
"sha256": "3f342f1c1580473f1ee94ddd5b28206e8c07a70fa1a366f59d1d6c922919a6c9",
"relative_path": "${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00002-of-00004.gguf"
},
{
"role": "Strata native model",
"size_bytes": "49376141504",
"sha256": "56758f40269cad5cd9b0d3d6fbae0f40f6d5be6de49e4ab392dbe83157d9cbd3",
"relative_path": "${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00003-of-00004.gguf"
},
{
"role": "Strata native model",
"size_bytes": "12087983520",
"sha256": "753bda48b98ba4f1636134a90a967de1b2d3908a236c026e464777342e53510a",
"relative_path": "${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00004-of-00004.gguf"
},
{
"role": "Strata derived pack",
"size_bytes": "21078",
"sha256": "e69903b10ff0a9329c5c5d9b9febac44eff9c2cd0b6bd1adef6bd64c822f5f5b",
"relative_path": "${PACK}/compat-bf16.json"
},
{
"role": "Strata derived pack",
"size_bytes": "167871",
"sha256": "722a102cb500b9097d1890cffebf142904fa6534c209ac44c6445f0aec3d0cc4",
"relative_path": "${PACK}/conversions.json"
},
{
"role": "Strata derived pack",
"size_bytes": "1485688320",
"sha256": "f53174059b262ed342b82e143af62056081948ef5e5f1903a1a70eeb73fa4a23",
"relative_path": "${PACK}/dense.bin"
},
{
"role": "Strata derived pack",
"size_bytes": "93560",
"sha256": "cfc07e91c4d9b8e8c999fd1f70fa364e584748e70fa377b30e0fc85426f52711",
"relative_path": "${PACK}/index.txt"
},
{
"role": "Strata derived pack",
"size_bytes": "5795",
"sha256": "5ed2c4a55910616db1efe16f0c989e9bec80cc8b9e95bf1c42f886aadfffd2d6",
"relative_path": "${PACK}/native_experts.txt"
},
{
"role": "Strata derived pack",
"size_bytes": "9993",
"sha256": "12827f24b742ea4e80cdc12dbcf9622227056b9f797252a3149263d4f9aaadce",
"relative_path": "${PACK}/tokenizer/chat_template.jinja"
},
{
"role": "Strata derived pack",
"size_bytes": "3353258",
"sha256": "4ba698529766c7a2f5052083ea10cdf2485577f5237a332ee291054eb11e3332",
"relative_path": "${PACK}/tokenizer/merges.txt"
},
{
"role": "Strata derived pack",
"size_bytes": "744960",
"sha256": "5088c8c298fc06af8382ddb3b76c888703ac2634e82263b97eedcc2ad202738b",
"relative_path": "${PACK}/tokenizer/token_type.json"
},
{
"role": "Strata derived pack",
"size_bytes": "541",
"sha256": "c0bd435efbc6c3b28964b47999afe16c4ad268c7c7c4e8cb3af410796a6f30bf",
"relative_path": "${PACK}/tokenizer/tokenizer.json"
},
{
"role": "Strata derived pack",
"size_bytes": "5737005",
"sha256": "4ba64f0332abcfb0b600b7df1537d1e836e68009d5fb7cdb77339738dc6365c4",
"relative_path": "${PACK}/tokenizer/vocab.json"
},
{
"role": "Strata derived mtp",
"size_bytes": "116099072",
"sha256": "c724dc0b0822ada5d2977bf5bde821605feabaa64ea2e0045b67ca656329070a",
"relative_path": "${MTP}/dense.bin"
},
{
"role": "Strata derived mtp",
"size_bytes": "1851",
"sha256": "991456cf4eb266eb8a888c349e548d11bc640f5dbd9149439aa9786af0f732fd",
"relative_path": "${MTP}/dense.txt"
},
{
"role": "Strata derived mtp",
"size_bytes": "425196",
"sha256": "b1e1d3a7a9e4bf862dcd5923ce661fb59bbd07907e594df5cf86a62ac235cb91",
"relative_path": "${MTP}/draft_vocab.bin"
},
{
"role": "Strata derived mtp",
"size_bytes": "707788800",
"sha256": "09398406be61f1f54c93861f449e48b8df0bfccbc9ec9b2b7636775a6ea9244f",
"relative_path": "${MTP}/experts.bin"
},
{
"role": "Strata vision projector",
"size_bytes": "904004000",
"sha256": "1f7b7f0b984cf065c604360c29c8098362ed61b290db0ff12c6f360bb1a8a980",
"relative_path": "${MODELS}/mmproj-F16.gguf"
}
]
@@ -0,0 +1,91 @@
{
"exe": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-01401-hip-fullvram-20261006/build-hip-102-fullvram/strata",
"backend": "hip",
"gpu": 0,
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"4",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"1",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision"
],
"cwd": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-01401-serve-contract-20261006",
"tokenizer": "${PACK}/tokenizer",
"model_name": "default-big",
"log": "${OUTPUT}/engine.log",
"host": "127.0.0.1",
"port": 8080,
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "0",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128"
},
"lib_dirs": [
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/.venv102/lib/python3.12/site-packages/_rocm_sdk_devel/lib",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/.venv102/lib/python3.12/site-packages/_rocm_sdk_libraries/lib"
],
"sampling": {
"temperature": 1.0,
"top_p": 0.95,
"top_k": 20,
"min_p": 0.0,
"presence_penalty": 0.0
},
"vision": {
"exe": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-01401-serve-contract-20261006/build-vision-cpu/bin/strata-vision",
"mmproj": "${MODELS}/mmproj-F16.gguf",
"model": "${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"gpu": false,
"threads": 12,
"max_tokens": 1024
}
}
@@ -0,0 +1,3 @@
{
"reasoning_effort": "medium"
}
@@ -0,0 +1,122 @@
#!/usr/bin/env python3
"""Reproduce one recorded request fixture against an already-running Strata API."""
import argparse
import gzip
import hashlib
import json
import os
from pathlib import Path
import time
import urllib.request
HERE = Path(__file__).resolve().parent
def prompt_for(case, rep):
if case in ('coding', 'prose'):
prompts = json.loads((HERE / 'prompts.json').read_text())
name = 'agentcode' if case == 'coding' else 'longprose'
extra = (' Include all code, tests and detailed explanations with examples; write at least 3500 words.'
if case == 'coding' else ' Write at least 3500 words of developed prose; keep the story moving.')
return f'[fn100-sustained-{name}-{rep}]\n' + prompts[name] + extra, 8192, 'medium', 1.0
name = 'full-window' if case == 'full' else 'depth-' + case[5:]
text = gzip.decompress((HERE / f'{name}-prompt.txt.gz').read_bytes()).decode()
return text, 504 if case == 'full' else 768, 'none', 0.0
def measure(url, model, prompt, budget, thinking, temperature):
body = {'model': model, 'messages': [{'role': 'user', 'content': prompt}], 'max_tokens': budget,
'reasoning_effort': thinking, 'temperature': temperature, 'top_p': .95 if temperature else 1.0,
'top_k': 20 if temperature else 1, 'min_p': 0.0, 'presence_penalty': 0.0, 'seed': 314159,
'stream': True, 'stream_options': {'include_usage': True}}
headers = {'Content-Type': 'application/json'}
if os.environ.get('STRATA_BENCH_API_KEY'):
headers['Authorization'] = 'Bearer ' + os.environ['STRATA_BENCH_API_KEY']
request = urllib.request.Request(url.rstrip('/') + '/v1/chat/completions',
json.dumps(body).encode(), headers)
start = time.monotonic()
first = last = None
content, reasoning = [], []
timings = usage = finish = None
with urllib.request.urlopen(request, timeout=7200) as response:
for raw in response:
line = raw.decode().strip()
if not line.startswith('data:'):
continue
payload = line[5:].strip()
if payload == '[DONE]':
break
event = json.loads(payload)
if event.get('error'):
raise RuntimeError(event['error'])
timings = event.get('timings') or timings
usage = event.get('usage') or usage
for choice in event.get('choices') or []:
finish = choice.get('finish_reason') or finish
delta = choice.get('delta') or {}
visible, hidden = delta.get('content') or '', delta.get('reasoning_content') or ''
if visible or hidden:
now = time.monotonic()
first = now if first is None else first
last = now
content.append(visible)
reasoning.append(hidden)
if not timings or timings.get('predicted_n', 0) <= 0:
raise RuntimeError('Missing successful engine generation timings')
row = {'measured_at': time.strftime('%Y-%m-%dT%H:%M:%S%z'), 'thinking': thinking,
'sampling': {k: body[k] for k in ('temperature', 'top_p', 'top_k', 'min_p', 'presence_penalty', 'seed')},
'max_tokens': budget, 'wall_s': time.monotonic() - start,
'ttft_s': first - start if first is not None else None,
'timings': timings, 'usage': usage, 'finish': finish,
'client_tg': (usage['completion_tokens'] - 1) / (last - first)
if usage and first is not None and last > first else None}
return row, ''.join(reasoning) + '\n' + ''.join(content)
def check_recorded():
records = json.loads((HERE / 'measurements.json').read_text())['arms']
coding = [r for r in records['q8il-combo-w15-s8'] if r['case'] == 'sustained-agentcode']
assert len(coding) == 3 and all(r['timings']['predicted_n'] == 8192 for r in coding)
assert sorted(r['timings']['predicted_per_second'] for r in coding) == [96.7, 97.0, 97.2]
for f, expected in json.loads((HERE / 'fixture-hashes.json').read_text()).items():
assert hashlib.sha256(gzip.decompress((HERE / f).read_bytes())).hexdigest() == expected
for r in json.loads((HERE / 'full-context.json').read_text()).values():
assert r['input_tokens'] + r['generated_tokens'] + r['api_reserved_tokens'] == 1048576
assert all(r['markers_found'].values()) and r['status'] == 'passed'
print('Recorded coding counts/rates, exact fixture hashes and full-context capacity checks passed.')
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--url', default='http://127.0.0.1:8080')
parser.add_argument('--model', default='default-big')
parser.add_argument('--case', choices=['coding', 'prose', 'depth50000', 'depth130000', 'full'], default='coding')
parser.add_argument('--reps', type=int, default=1)
parser.add_argument('--out', type=Path, default=Path('new-measurements'))
parser.add_argument('--check-recorded', action='store_true')
args = parser.parse_args()
if args.check_recorded:
check_recorded()
return
if args.reps <= 0:
parser.error('--reps must be positive')
args.out.mkdir(parents=True, exist_ok=True)
for rep in range(1, args.reps + 1):
prompt, budget, thinking, temp = prompt_for(args.case, rep)
try:
row, text = measure(args.url, args.model, prompt, budget, thinking, temp)
row.update(case=args.case, rep=rep)
row['prompt_sha256'] = hashlib.sha256(prompt.encode()).hexdigest()
(args.out / f'{args.case}-{rep}.json').write_text(json.dumps(row, indent=2) + '\n')
(args.out / f'{args.case}-{rep}.txt').write_text(text)
print(args.case, rep, 'TG', row['timings']['predicted_per_second'],
'PP', row['timings']['prompt_per_second'], 'counts', row['usage'])
if args.case not in ('coding', 'prose') and row['timings'].get('cache_n', 0):
raise RuntimeError('Prefix reuse: this request is not a cold PP comparison')
except Exception as error:
(args.out / f'{args.case}-{rep}-failure.json').write_text(json.dumps({'error': str(error)}, indent=2) + '\n')
raise
if __name__ == '__main__':
main()
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -euo pipefail
TASK_ROOT=${STRATA_RESEARCH_ROOT:?set STRATA_RESEARCH_ROOT to your reproduction directory}
TASK_SOURCE=$TASK_ROOT/llama.cpp-cuda/strata-01401-hip-fullvram-20261006
TASK_BUILD=$TASK_SOURCE/build-hip-102-fullvram
TASK_SDK_BASE=$TASK_ROOT/llama.cpp-cuda/strata-0139-hip-20261005/.venv102/lib/python3.12/site-packages
TASK_DEVEL=$TASK_SDK_BASE/_rocm_sdk_devel
TASK_LIBRARIES=$TASK_SDK_BASE/_rocm_sdk_libraries
export ROCM_PATH=$TASK_DEVEL
export HIP_PATH=$TASK_DEVEL
export HIP_PLATFORM=amd
export PATH=$TASK_DEVEL/llvm/bin:$PATH
export LD_LIBRARY_PATH=$TASK_DEVEL/lib:$TASK_LIBRARIES/lib:${LD_LIBRARY_PATH:-}
cmake -S "$TASK_SOURCE" -B "$TASK_BUILD" -G 'Unix Makefiles' \
-DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_CXX_COMPILER=/usr/bin/c++ \
-DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF \
-DSTRATA_BUILD_TESTS=ON -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=OFF \
'-DCMAKE_HIP_ARCHITECTURES=gfx1030;gfx1100' \
-DCMAKE_HIP_COMPILER="$TASK_DEVEL/llvm/bin/clang++" \
-DCMAKE_HIP_COMPILER_ROCM_ROOT="$TASK_DEVEL" \
-DCMAKE_HIP_FLAGS="--rocm-path=$TASK_DEVEL --rocm-device-lib-path=$TASK_DEVEL/amdgcn/bitcode" \
-DCMAKE_PREFIX_PATH="$TASK_DEVEL;$TASK_LIBRARIES" \
-DSTRATA_GGML_DIR="$TASK_ROOT/llama.cpp-cuda/strata-llama-3cf0325"
if [ "${1:-build}" != configure ]; then
cmake --build "$TASK_BUILD" --parallel 4
fi
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
TASK_ROOT=${STRATA_RESEARCH_ROOT:?set STRATA_RESEARCH_ROOT to your reproduction directory}
TASK_SOURCE=$TASK_ROOT/llama.cpp-cuda/strata-100tg-ilhip-20261007
TASK_BUILD=$TASK_SOURCE/build-hip-100tg-ilhip
TASK_SDK_BASE=$TASK_ROOT/llama.cpp-cuda/strata-0139-hip-20261005/.venv102/lib/python3.12/site-packages
TASK_DEVEL=$TASK_SDK_BASE/_rocm_sdk_devel
TASK_LIBRARIES=$TASK_SDK_BASE/_rocm_sdk_libraries
export ROCM_PATH=$TASK_DEVEL HIP_PATH=$TASK_DEVEL HIP_PLATFORM=amd
export PATH=$TASK_DEVEL/llvm/bin:$PATH
export LD_LIBRARY_PATH=$TASK_DEVEL/lib:$TASK_LIBRARIES/lib:${LD_LIBRARY_PATH:-}
cmake -S "$TASK_SOURCE" -B "$TASK_BUILD" -G 'Unix Makefiles' \
-DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_CXX_COMPILER=/usr/bin/c++ \
-DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF \
-DSTRATA_BUILD_TESTS=ON -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=OFF \
'-DCMAKE_HIP_ARCHITECTURES=gfx1030;gfx1100' \
-DCMAKE_HIP_COMPILER="$TASK_DEVEL/llvm/bin/clang++" \
-DCMAKE_HIP_COMPILER_ROCM_ROOT="$TASK_DEVEL" \
-DCMAKE_HIP_FLAGS="--rocm-path=$TASK_DEVEL --rocm-device-lib-path=$TASK_DEVEL/amdgcn/bitcode" \
-DCMAKE_PREFIX_PATH="$TASK_DEVEL;$TASK_LIBRARIES" \
-DSTRATA_GGML_DIR="$TASK_ROOT/llama.cpp-cuda/strata-llama-3cf0325"
if [ "${1:-build}" != configure ]; then
cmake --build "$TASK_BUILD" --parallel "${TASK_BUILD_JOBS:-3}" --target strata mmvq_il_parity
fi
@@ -0,0 +1,5 @@
{
"depth-50000-prompt.txt.gz": "22189fe64b89c675a01ca92608ac462b8d5d37af677d2c88126dc784656a0277",
"depth-130000-prompt.txt.gz": "687de112300a72a497e708666b7ff1c3e119cb09628ee0ab27bd0523c6a745e7",
"full-window-prompt.txt.gz": "09625b5fa2ac49cd898ed15048da7e10f51b366787710df5874ae48f5d9647bd"
}
@@ -0,0 +1,58 @@
{
"baseline63": {
"markers_found": {
"10": true,
"50": true,
"90": true
},
"input_tokens": 1048064,
"generated_tokens": 504,
"input_plus_output": 1048568,
"configured_context": 1048576,
"api_reserved_tokens": 8,
"usable_request_capacity": 1048568,
"reserved_output_budget": 504,
"timings": {
"cache_n": 0,
"prompt_n": 1048064,
"prompt_ms": 1784251.5,
"prompt_per_token_ms": 1.702,
"prompt_per_second": 587.4,
"predicted_n": 504,
"predicted_ms": 12817.1,
"predicted_per_token_ms": 25.431,
"predicted_per_second": 39.3,
"draft_n": 313,
"draft_n_accepted": 237
},
"status": "passed"
},
"q8il-combo-w15-s8": {
"markers_found": {
"10": true,
"50": true,
"90": true
},
"input_tokens": 1048064,
"generated_tokens": 504,
"input_plus_output": 1048568,
"configured_context": 1048576,
"api_reserved_tokens": 8,
"usable_request_capacity": 1048568,
"reserved_output_budget": 504,
"timings": {
"cache_n": 0,
"prompt_n": 1048064,
"prompt_ms": 1771263.8,
"prompt_per_token_ms": 1.69,
"prompt_per_second": 591.7,
"predicted_n": 504,
"predicted_ms": 12860.0,
"predicted_per_token_ms": 25.516,
"predicted_per_second": 39.2,
"draft_n": 387,
"draft_n_accepted": 261
},
"status": "passed"
}
}
@@ -0,0 +1,13 @@
{
"input_tokens": 1048064,
"max_tokens": 504,
"configured_context": 1048576,
"markers": {
"10": "copper-saffron-731",
"50": "quartz-harbor-864",
"90": "willow-orchid-529"
},
"note": "Markers placed at 10/50/90% of initial character haystack; final tail is trimmed to exact capacity. The API guard reserves eight decoder tokens; exact full usable request capacity is exercised without changing server context.",
"api_reserved_tokens": 8,
"usable_request_capacity": 1048568
}
@@ -0,0 +1,34 @@
# solution IDs are scoped to this hipBLASLt version and device architecture
STRATA_HIPBLASLT_TUNING_V1 gfx1100 100500
bf16 1 2560 1 4096 1035
bf16 1 2560 1 8192 1035
bf16 4 10240 4 4096 1035
bf16 4 10240 4 8192 1034
bf16 48 2560 96 4096 1035
bf16 48 2560 96 8192 1036
bf16 128 2560 128 4096 1036
bf16 128 2560 128 8192 1036
bf16 320 10240 320 4096 1036
bf16 320 10240 320 8192 1036
bf16 512 2560 512 4096 1036
bf16 512 2560 512 8192 1036
bf16 2560 2560 2560 4096 1036
bf16 2560 2560 2560 8192 1036
bf16 10240 320 10240 4096 1036
bf16 10240 320 10240 8192 1036
f16 512 2560 512 4096 2106
f16 512 2560 512 8192 2106
f16 640 2560 640 4096 2106
f16 640 2560 640 8192 2106
f16 2560 640 2560 4096 2106
f16 2560 640 2560 8192 2106
f16 2560 6144 2560 4096 2106
f16 2560 6144 2560 8192 2106
f16 6144 2560 6144 4096 2106
f16 6144 2560 6144 8192 2106
f16 10240 2560 10240 4096 2106
f16 10240 2560 10240 8192 2106
f16 12288 2560 12288 4096 2106
f16 12288 2560 12288 8192 2106
bf16 10240 2560 10240 4096 1036
bf16 10240 2560 10240 8192 1036
@@ -0,0 +1,150 @@
{
"python_api": [
[
"Jinja2",
"3.1.6"
],
[
"MarkupSafe",
"3.0.3"
],
[
"PyYAML",
"6.0.3"
],
[
"certifi",
"2026.7.22"
],
[
"charset-normalizer",
"3.5.1"
],
[
"cmake",
"4.4.3"
],
[
"idna",
"3.20"
],
[
"ninja",
"1.13.2"
],
[
"numpy",
"2.5.3"
],
[
"pillow",
"12.3.0"
],
[
"psutil",
"7.2.2"
],
[
"regex",
"2026.9.10"
],
[
"requests",
"2.34.2"
],
[
"tqdm",
"4.70.1"
],
[
"urllib3",
"2.8.0"
]
],
"rocm": [
[
"Jinja2",
"3.1.6"
],
[
"MarkupSafe",
"3.0.3"
],
[
"PyYAML",
"6.0.3"
],
[
"certifi",
"2026.7.22"
],
[
"charset-normalizer",
"3.5.1"
],
[
"cmake",
"4.4.3"
],
[
"idna",
"3.20"
],
[
"ninja",
"1.13.2"
],
[
"numpy",
"2.5.3"
],
[
"pillow",
"12.3.0"
],
[
"psutil",
"7.2.2"
],
[
"regex",
"2026.9.10"
],
[
"requests",
"2.34.2"
],
[
"rocm",
"10.2.0a20261005"
],
[
"rocm-sdk-core",
"10.2.0a20261005"
],
[
"rocm-sdk-devel",
"10.2.0a20261005"
],
[
"rocm-sdk-device-gfx1030",
"10.2.0a20261005"
],
[
"rocm-sdk-device-gfx1100",
"10.2.0a20261005"
],
[
"rocm-sdk-libraries",
"10.2.0a20261005"
],
[
"tqdm",
"4.70.1"
],
[
"urllib3",
"2.8.0"
]
]
}
@@ -0,0 +1,37 @@
#!/usr/bin/env python3
"""Create pinned source worktrees; does not install packages, build or start a model."""
import argparse
import json
from pathlib import Path
import subprocess
HERE = Path(__file__).resolve().parent
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--root', type=Path, required=True)
parser.add_argument('--repo', type=Path, default=HERE.parents[2])
args = parser.parse_args()
repo, root = args.repo.resolve(), args.root.resolve()
layout = json.loads((HERE / 'source-layout.json').read_text())
for spec in layout.values():
if not isinstance(spec, dict) or 'commit' not in spec:
continue
dst = root / spec['path']
if dst.exists():
actual = subprocess.check_output(['git', '-C', str(dst), 'rev-parse', 'HEAD'], text=True).strip()
if actual != spec['commit']:
raise RuntimeError(f'{dst} exists at a different commit; choose another --root')
continue
dst.parent.mkdir(parents=True, exist_ok=True)
if spec.get('repository'):
subprocess.run(['git', 'clone', '--no-checkout', spec['repository'], str(dst)], check=True)
subprocess.run(['git', '-C', str(dst), 'checkout', '--detach', spec['commit']], check=True)
else:
subprocess.run(['git', '-C', str(repo), 'worktree', 'add', '--detach', str(dst), spec['commit']], check=True)
print('Pinned sources prepared. Follow README for packages, artifacts, builds and API startup.')
if __name__ == '__main__':
main()
@@ -0,0 +1,7 @@
{
"moe": "Write a detailed technical explanation (about 400 words) of how a mixture-of-experts language model routes tokens to experts, and why expert caching on a GPU matters for decode speed.",
"code": "Write a Python module that implements an LRU cache with TTL expiry, thread safety and unit tests. Include docstrings.",
"prose": "Write a 400-word short story about a lighthouse keeper who discovers a message in a bottle from the future.",
"agentcode": "Implement a self-contained Python HTTP service for managing tasks using only the standard library. Include a SQLite repository, JSON request validation, GET/POST/PATCH/DELETE routes, structured errors, safe concurrent access, pagination, an executable main, and unittest coverage. Provide the complete code with no omitted bodies or ellipses. Explain important choices briefly.",
"longprose": "Explain in detail how a bicycle derailleur gear system works, step by step, for a beginner. Write at least 900 words."
}
@@ -0,0 +1,51 @@
{
"upstream_base_tuned": "e8ca9afd03d839d4f8dbbe82dffce7f8a3bafd7a",
"native_tuned": "96c35a0e54cb505579f83c1adde4b71d27c33436",
"api_tuned": "5597378da8b5c2fe180e30f6b1903342e12e60ee",
"upstream_base_baseline": "82f46a8c8f475f001ad76d92f58f4a4f8ffb0253",
"native_baseline": "477b5f7bf946d4d8a4f0d55877f84163d8ba9a82",
"api_baseline": "2c1407dfde3fd9831853ec4984c3cef59bc659bd",
"ggml": "3cf03257f219afbe7334045ff7c6a06ac68c627d",
"mtp_revision": "de4b8e4d43b917e7706784d8bb445c9af86a3540",
"native_tuned_sha256": "0959daa807c66c71863f542b2f9a82714f1fabe420a3d6dc9106fe137d5014d6",
"models": [
{
"filename": "Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"url": "https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF/resolve/c8b5954a88c2775c546b92593eda40ea041d3176/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"sha256": "4448186216b3af4cc558bbce2c3213f01608f8f8b2e5267a9767971dd3ec8082"
},
{
"filename": "Qwen3.8-Flash-Next-UD-Q4_K_XL-00002-of-00004.gguf",
"url": "https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF/resolve/c8b5954a88c2775c546b92593eda40ea041d3176/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00002-of-00004.gguf",
"sha256": "3f342f1c1580473f1ee94ddd5b28206e8c07a70fa1a366f59d1d6c922919a6c9"
},
{
"filename": "Qwen3.8-Flash-Next-UD-Q4_K_XL-00003-of-00004.gguf",
"url": "https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF/resolve/c8b5954a88c2775c546b92593eda40ea041d3176/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00003-of-00004.gguf",
"sha256": "56758f40269cad5cd9b0d3d6fbae0f40f6d5be6de49e4ab392dbe83157d9cbd3"
},
{
"filename": "Qwen3.8-Flash-Next-UD-Q4_K_XL-00004-of-00004.gguf",
"url": "https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF/resolve/c8b5954a88c2775c546b92593eda40ea041d3176/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00004-of-00004.gguf",
"sha256": "753bda48b98ba4f1636134a90a967de1b2d3908a236c026e464777342e53510a"
},
{
"filename": "mmproj-F16.gguf",
"url": "https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF/resolve/c8b5954a88c2775c546b92593eda40ea041d3176/mmproj-F16.gguf",
"sha256": "1f7b7f0b984cf065c604360c29c8098362ed61b290db0ff12c6f360bb1a8a980"
}
],
"provenance_prs": [
1181,
1125,
1123,
1305,
1240,
1087,
1281,
786
],
"source_archive": "https://github.com/saikiran-rs/Strata",
"measurement_dates": "2026-10-06/07; detailed timestamps in measurements.json",
"historical_sequence": "For final tuned arm: short warmup/1536-token screens, cold depth fixtures and image check, coding1/prose1/coding2/prose2; later restore after other CPU/confidence trials, functional tool/thinking checks, coding3,400-question quality,full-window request. No timed compilation during inference."
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,102 @@
#!/usr/bin/env python3
"""Paired multiple-choice quality check through the chat API (no logprobs needed, so it runs on any
OpenAI-compatible server): the first N HellaSwag and Winogrande items, reasoning off, greedy, answer = one letter.
Run it on two engines serving the same weights, then compare with --compare A_DIR B_DIR.
Usage: strata-quality-eval.py LABEL OUTDIR BASE_URL [--conc 1] [--hs 400] [--wg 400]
strata-quality-eval.py --compare DIR_A DIR_B
"""
import argparse, concurrent.futures as cf, json, math, os, re, sys, time, urllib.request
HS = 'hellaswag_val_full.txt'
WG = 'winogrande-debiased-eval.csv'
def hs_items(n):
L = open(HS, encoding='utf-8').read().split('\n')
out = []
for i in range(n):
ctx, lab, *ends = L[6 * i:6 * i + 6]
q = (f'Which ending is the most plausible continuation of the text?\n\nText: {ctx}\n\n' +
'\n'.join(f'{"ABCD"[k]}) {e}' for k, e in enumerate(ends)) +
'\n\nAnswer with the letter only.')
out.append({'id': f'hs{i}', 'prompt': q, 'gold': 'ABCD'[int(lab)], 'choices': 'ABCD'})
return out
def wg_items(n):
import csv
out = []
with open(WG, encoding='utf-8') as f:
for i, row in enumerate(csv.reader(f)):
if i >= n: break
_, sent, o1, o2, ans = row
q = (f'Which option correctly fills the blank (_)?\n\nSentence: {sent}\n\nA) {o1}\nB) {o2}\n\n'
'Answer with the letter only.')
out.append({'id': f'wg{i}', 'prompt': q, 'gold': 'AB'[int(ans) - 1], 'choices': 'AB'})
return out
def ask(base, it):
body = {'model': MODEL, 'messages': [{'role': 'user', 'content': it['prompt']}], 'max_tokens': 32,
'temperature': 0.0, 'top_k': 1, 'top_p': 1.0, 'reasoning_effort': 'none'}
req = urllib.request.Request(base + '/v1/chat/completions', data=json.dumps(body).encode(),
headers={'Content-Type': 'application/json'})
for attempt in range(3):
try:
with urllib.request.urlopen(req, timeout=600) as r:
j = json.loads(r.read())
break
except Exception as e:
if attempt == 2: return {**it, 'answer': None, 'error': str(e)}
time.sleep(5)
msg = j['choices'][0]['message']
text = (msg.get('content') or '').strip()
m = re.search(r'\b([%s])\b' % it['choices'], text) or re.search(r'([%s])' % it['choices'], text)
if not m: # thinking leaked into reasoning_content only
m = re.search(r'\b([%s])\b' % it['choices'], (msg.get('reasoning_content') or '')[-200:])
return {'id': it['id'], 'gold': it['gold'], 'answer': m.group(1) if m else None, 'text': text[:80]}
def compare(da, db):
A = {json.loads(l)['id']: json.loads(l) for l in open(os.path.join(da, 'answers.jsonl'))}
B = {json.loads(l)['id']: json.loads(l) for l in open(os.path.join(db, 'answers.jsonl'))}
for task in ('hs', 'wg'):
ids = sorted(k for k in A if k.startswith(task) and k in B)
if not ids: continue
ca = sum(A[k]['answer'] == A[k]['gold'] for k in ids); cb = sum(B[k]['answer'] == B[k]['gold'] for k in ids)
agree = sum(A[k]['answer'] == B[k]['answer'] for k in ids)
a_only = sum(A[k]['answer'] == A[k]['gold'] and B[k]['answer'] != B[k]['gold'] for k in ids)
b_only = sum(B[k]['answer'] == B[k]['gold'] and A[k]['answer'] != A[k]['gold'] for k in ids)
n = a_only + b_only # exact two-sided McNemar (binomial on the discordant pairs)
k = min(a_only, b_only)
p = min(1.0, 2 * sum(math.comb(n, i) for i in range(k + 1)) / 2 ** n) if n else 1.0
inv_a = sum(A[k2]['answer'] is None for k2 in ids); inv_b = sum(B[k2]['answer'] is None for k2 in ids)
print(f'{task}: n={len(ids)} {os.path.basename(da)} {100*ca/len(ids):.1f}% {os.path.basename(db)} '
f'{100*cb/len(ids):.1f}% diff {100*(cb-ca)/len(ids):+.1f} pp same answer {100*agree/len(ids):.1f}% '
f'right only A/B {a_only}/{b_only} McNemar p={p:.2f} invalid {inv_a}/{inv_b}')
ap = argparse.ArgumentParser()
ap.add_argument('label', nargs='?'); ap.add_argument('outdir', nargs='?'); ap.add_argument('base', nargs='?')
ap.add_argument('--conc', type=int, default=1); ap.add_argument('--hs', type=int, default=400)
ap.add_argument('--wg', type=int, default=400); ap.add_argument('--compare', nargs=2)
ap.add_argument('--hellaswag', default=HS)
ap.add_argument('--winogrande', default=WG)
ap.add_argument('--model', default='default-big')
a = ap.parse_args()
HS, WG, MODEL = a.hellaswag, a.winogrande, a.model
if a.compare:
compare(*a.compare); sys.exit(0)
OUT = os.path.join(a.outdir, a.label); os.makedirs(OUT, exist_ok=True)
items = hs_items(a.hs) + wg_items(a.wg)
t0 = time.time()
with cf.ThreadPoolExecutor(a.conc) as ex, open(os.path.join(OUT, 'answers.jsonl'), 'w') as f:
for r in ex.map(lambda it: ask(a.base, it), items):
f.write(json.dumps(r) + '\n'); f.flush()
print(f'{a.label}: {len(items)} items in {time.time() - t0:.0f} s', flush=True)
for task in ('hs', 'wg'):
rows = [json.loads(l) for l in open(os.path.join(OUT, 'answers.jsonl')) if json.loads(l)['id'].startswith(task)]
if rows:
print(f'{a.label} {task}: acc {100*sum(r["answer"] == r["gold"] for r in rows)/len(rows):.1f}% '
f'(invalid {sum(r["answer"] is None for r in rows)})', flush=True)
@@ -0,0 +1,34 @@
{
"native_tuned": {
"path": "llama.cpp-cuda/strata-100tg-ilhip-20261007",
"commit": "96c35a0e54cb505579f83c1adde4b71d27c33436",
"archive_branch": "research/amd-helper-20261007-validated"
},
"api_tuned": {
"path": "llama.cpp-cuda/strata-100tg-01402-20261007",
"commit": "5597378da8b5c2fe180e30f6b1903342e12e60ee",
"archive_branch": "research/amd-helper-20261007-validated"
},
"native_baseline": {
"path": "llama.cpp-cuda/strata-01401-hip-fullvram-20261006",
"commit": "477b5f7bf946d4d8a4f0d55877f84163d8ba9a82",
"archive_branch": "research/amd-helper-20261007-baseline-engine"
},
"api_baseline_and_cpu_vision": {
"path": "llama.cpp-cuda/strata-01401-serve-contract-20261006",
"commit": "2c1407dfde3fd9831853ec4984c3cef59bc659bd",
"archive_branch": "research/amd-helper-20261007-baseline-api"
},
"packing_tools": {
"path": "llama.cpp-cuda/strata-0136-q40-20261002",
"commit": "73f0bf91d6ccc1e919354373fae5046d4e77365b",
"archive_branch": "research/amd-helper-20261007-pack-tools"
},
"ggml": {
"path": "llama.cpp-cuda/strata-llama-3cf0325",
"commit": "3cf03257f219afbe7334045ff7c6a06ac68c627d",
"repository": "https://github.com/ggml-org/llama.cpp.git"
},
"rocm_packages_path": "llama.cpp-cuda/strata-0139-hip-20261005/.venv102",
"hip_tuning_table_path": "llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt"
}
@@ -0,0 +1,106 @@
{
"exe": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-100tg-ilhip-20261007/build-hip-100tg-ilhip/strata",
"backend": "hip",
"gpu": 0,
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"8",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"4",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision",
"--lookup-chain",
"3",
"--mtp-hnorm",
"stream"
],
"cwd": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-100tg-01402-20261007",
"tokenizer": "${PACK}/tokenizer",
"model_name": "default-big",
"log": "${OUTPUT}/engine.log",
"host": "127.0.0.1",
"port": 8080,
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "1",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128",
"STRATA_MMVF_ROWS": "1",
"STRATA_ATTN_LANECELL": "1",
"STRATA_LFUSE": "1",
"STRATA_GDN_SPLIT": "1",
"STRATA_QFUSE": "1",
"STRATA_PLE_BATCH": "1",
"STRATA_SPEC_COUPLED": "1",
"STRATA_SPEC_GUMBEL": "1",
"STRATA_STAGER_SLEEP": "0",
"STRATA_HIP_MMVQ_IL": "1",
"STRATA_HIP_MMVQ_IL_ROWS": "1"
},
"lib_dirs": [
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/.venv102/lib/python3.12/site-packages/_rocm_sdk_devel/lib",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/.venv102/lib/python3.12/site-packages/_rocm_sdk_libraries/lib"
],
"sampling": {
"temperature": 1.0,
"top_p": 0.95,
"top_k": 20,
"min_p": 0.0,
"presence_penalty": 0.0
},
"vision": {
"exe": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-01401-serve-contract-20261006/build-vision-cpu/bin/strata-vision",
"mmproj": "${MODELS}/mmproj-F16.gguf",
"model": "${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"gpu": false,
"threads": 12,
"max_tokens": 1024
}
}
@@ -0,0 +1,3 @@
{
"reasoning_effort": "medium"
}
@@ -0,0 +1,485 @@
{
"baseline63": {
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"4",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"1",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision"
],
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "0",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128"
}
},
"ilhip-helper-control": {
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"4",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"1",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision"
],
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "0",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128",
"STRATA_STAGER_SLEEP": "0",
"STRATA_HIP_MMVQ_IL": "0",
"STRATA_HIP_MMVQ_IL_ROWS": "1"
}
},
"ilhip-helper-rows1": {
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"4",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"1",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision"
],
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "0",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128",
"STRATA_STAGER_SLEEP": "0",
"STRATA_HIP_MMVQ_IL": "1",
"STRATA_HIP_MMVQ_IL_ROWS": "1"
}
},
"q8il-helper-rows1": {
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"4",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"1",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision"
],
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "0",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128",
"STRATA_STAGER_SLEEP": "0",
"STRATA_HIP_MMVQ_IL": "1",
"STRATA_HIP_MMVQ_IL_ROWS": "1"
}
},
"q8il-helper-rows1-adapt4": {
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"4",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"4",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision"
],
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "0",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128",
"STRATA_STAGER_SLEEP": "0",
"STRATA_HIP_MMVQ_IL": "1",
"STRATA_HIP_MMVQ_IL_ROWS": "1"
}
},
"q8il-helper-combo-rows1": {
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"4",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"4",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision",
"--lookup-chain",
"3",
"--mtp-hnorm",
"stream"
],
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "1",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128",
"STRATA_STAGER_SLEEP": "0",
"STRATA_HIP_MMVQ_IL": "1",
"STRATA_HIP_MMVQ_IL_ROWS": "1",
"STRATA_MMVF_ROWS": "1",
"STRATA_ATTN_LANECELL": "1",
"STRATA_LFUSE": "1",
"STRATA_GDN_SPLIT": "1",
"STRATA_QFUSE": "1",
"STRATA_PLE_BATCH": "1",
"STRATA_SPEC_COUPLED": "1",
"STRATA_SPEC_GUMBEL": "1"
}
},
"q8il-combo-w15-s8": {
"args": [
"--pack",
"${PACK}",
"--native",
"${MODELS}/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
"--expert-profile",
"${RESEARCH_ROOT}/llama.cpp-cuda/strata-0136-q40-20261002/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto:16384",
"--spec",
"8",
"--spec-min-p",
"0.7",
"--mtp",
"${MTP}",
"--max-context",
"1048576",
"--kv",
"int8",
"--pool-workers",
"15",
"--adapt-every",
"4",
"--pcie-frac",
"0",
"--vram-reserve-mib",
"448",
"--adapt-swaps",
"32",
"--expert-cache-device1",
"auto",
"--kv-resident",
"32768",
"--rope-scaling",
"yarn",
"--rope-scale",
"4",
"--yarn-orig-ctx",
"262144",
"--conversation-cache-mib",
"4096",
"--conversation-cache-slots",
"4",
"--conversation-cache-min-free-mib",
"10240",
"--remote-expert-opt",
"--vision",
"--lookup-chain",
"3",
"--mtp-hnorm",
"stream"
],
"env": {
"STRATA_PREFILL_MMQ": "1",
"STRATA_PREFILL_RING": "48",
"STRATA_IO_THREADS": "32",
"STRATA_HIPBLASLT_TUNING": "${RESEARCH_ROOT}/llama.cpp-cuda/strata-0139-hip-20261005/tools/hip/gfx1100-hipblaslt-100500.txt",
"HIP_VISIBLE_DEVICES": "0,1",
"STRATA_SH_STREAM": "1",
"STRATA_HIP_WMMA": "1",
"STRATA_ADAPT_LAG": "2",
"STRATA_REMOTE_RESERVE_MIB": "128",
"STRATA_MMVF_ROWS": "1",
"STRATA_ATTN_LANECELL": "1",
"STRATA_LFUSE": "1",
"STRATA_GDN_SPLIT": "1",
"STRATA_QFUSE": "1",
"STRATA_PLE_BATCH": "1",
"STRATA_SPEC_COUPLED": "1",
"STRATA_SPEC_GUMBEL": "1",
"STRATA_STAGER_SLEEP": "0",
"STRATA_HIP_MMVQ_IL": "1",
"STRATA_HIP_MMVQ_IL_ROWS": "1"
}
}
}