okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

albedocmake: strata_kernels links strata_kernels_cpu (iq_kernels.cu reads the latent colscale table from expert_layout.cpp; strata-q36ref failed to link)a4af4df61

main
4 files

files

README.md11.8 KiB
needles.json1008 B
runs.csv537 B
strata-iq3_s.json1.1 KiB

Community benchmark on RX 7900 XTX (Windows 11)

Measured on 2026-10-06 by nytasuk-commits. Strata engine 0.1.40, original Flash-Next IQ3_S, 262,144-token context, on Windows with the ready-made AMD engine (not a source build). Tested: three fresh runs each at ~100 and ~38K prompt tokens, plus six needle-recall checks at 32K and 128K. Main limitations: single machine, three runs per configuration, non-streaming requests (no time-to-first-token), and VRAM, PCIe link width and GPU power were not measured.

Hardware and software

Model and configuration

D:\AI\Strata\run-iq3_s.bat

Run config strata-iq3_s.json (also attached; no credentials in it):

{
 "exe": "D:\\AI\\Strata\\engine\\strata.exe",
 "args": [
  "--pack", "D:\\AI\\Strata-data\\packs\\iq3_s",
  "--native", "D:\\AI\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
  "--ple-gguf", "D:\\AI\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
  "--expert-profile", "D:\\AI\\Strata\\data\\expert-profile.bin",
  "--expert-cache", "auto",
  "--prefill", "auto:32768",
  "--spec", "4",
  "--spec-min-p", "0.5",
  "--mtp", "D:\\AI\\Strata-data\\mtp\\rt",
  "--max-context", "262144",
  "--kv", "int8",
  "--kv-resident", "32768",
  "--conversation-cache-mib", "8192"
 ],
 "cwd": "D:\\AI\\Strata",
 "tokenizer": "D:\\AI\\Strata-data\\packs\\iq3_s\\tokenizer",
 "model_name": "qwen3.8-flash-next-iq3_s",
 "log": "D:\\AI\\Strata\\strata-iq3_s.log",
 "lib_dirs": ["D:\\AI\\Strata\\engine\\rocm\\bin"],
 "port": 8080,
 "backend": "hip",
 "env": {
  "STRATA_HIPBLASLT_TUNING": "D:\\AI\\Strata\\tools\\hip\\gfx1100-hipblaslt-100500.txt"
 },
 "gpu": 0,
 "gpus_asked": true
}

--prefill auto:32768 and --conversation-cache-mib 8192 were added by hand to the config after setup, following the two tips setup printed. A later START-HERE.bat --setup resets both.

Method

Results

ConfigurationActual prompt tokensReused tokensGenerated tokensRunsPrompt tok/s median and rangeDecode tok/s median and rangeTTFT seconds
Short98 to 1030256 (cap)384.5 (77.7 to 85.9)77.5 (73.8 to 78.7)not measured
Long, 38K38,170 to 38,1740131 to 13831,612.0 (1,608.7 to 1,619.0)79.7 (66.7 to 83.2)not measured

The short-prompt "prompt tok/s" is dominated by fixed per-request overhead on a ~100-token prompt and is not a prefill speed. The long-prompt figure is.

Total wall-clock time: short median 4.5 s (4.4 to 4.8); long median 25.4 s (25.4 to 25.7).

Per-run data (also in runs.csv):

Configprompt_ncache_nprompt_msprompt tok/sgenerateddecode tok/sdraft accepted %total sRAM used GiB
short10301325.077.725673.864.14.869.0
short9801160.184.525678.765.94.469.2
short9901152.885.925677.563.34.569.4
long-38K38,174023,579.21,619.013866.774.125.769.5
long-38K38,170023,727.91,608.713179.780.025.469.5
long-38K38,173023,680.81,612.013883.278.525.470.2

The long runs generated 131 to 138 tokens, below the 256 cap. The stop reason was not recorded. Decode figures from samples that short vary more than the short-prompt ones.

Additional observations (single runs, not part of the benchmark above)

These come from the Strata Monitor tab and the chat, with different prompts, so they are indicative only.

Correctness and limitations

tools/needle_bench.py against the running server (also in needles.json):

.\.venv\Scripts\python.exe tools\needle_bench.py --url http://127.0.0.1:8080 --lengths 32k,128k --depths 10,50,90 --out needles.json
LengthDepthResultPrompt tokensTime
32K10%found32,30819 s
32K50%found32,30818 s
32K90%found32,30919 s
128K10%found125,70578 s
128K50%found125,70378 s
128K90%found125,70361 s

6 of 6 found. The script does not print reused-token counts. A needle test measures recall on those inputs, not overall model quality.

The 38K log prompt also returned the correct passphrase in chat, and the model completed an agent loop through Claude Code (reading files, listing directories, running a shell command) with prefix reuse above 99% on follow-up tool calls.

Limitations and untested:

Appendix: benchmark script

PowerShell, run in a second window while Strata was running. It writes runs.csv.

$u = "http://127.0.0.1:8080"
$null = New-Item -ItemType Directory -Force D:\AI\bench
$sb = New-Object System.Text.StringBuilder
$rnd = New-Object System.Random 42
1..1100 | ForEach-Object {
  if ($_ -eq 550) { [void]$sb.AppendLine("Entry 550: NOTE the deployment passphrase is copper-lantern-7731.") }
  else { [void]$sb.AppendLine("Entry ${_}: service-$($rnd.Next(1,50)) handled request $($rnd.Next(100000,999999)) in $($rnd.Next(5,900)) ms with status $(@('OK','OK','OK','RETRY','SLOW')[$rnd.Next(0,5)]) on node-$($rnd.Next(1,20)).") }
}
$long = $sb.ToString() + "`nQuestion: What is the deployment passphrase mentioned in the log above, and in one sentence what does the log mostly show?"
$short = "Write a short story about a lighthouse keeper."
function Run($label, $text) {
  $content = "Run id: $([guid]::NewGuid())`n" + $text
  $body = @{ model="x"; max_tokens=256; messages=@(@{role="user"; content=$content}) } | ConvertTo-Json -Depth 5
  $sw = [Diagnostics.Stopwatch]::StartNew()
  $null = Invoke-RestMethod "$u/v1/chat/completions" -Method Post -ContentType "application/json; charset=utf-8" -Body ([Text.Encoding]::UTF8.GetBytes($body))
  $sw.Stop()
  $s = Invoke-RestMethod "$u/v1/status"
  $t = $s.last_timings
  [pscustomobject]@{ config=$label; prompt_n=$t.prompt_n; cache_n=$t.cache_n; prompt_ms=$t.prompt_ms; prompt_tps=$t.prompt_per_second; out_n=$t.predicted_n; decode_tps=$t.predicted_per_second; draft_acc_pct=[math]::Round(100*$t.draft_n_accepted/[math]::Max(1,$t.draft_n),1); total_s=[math]::Round($sw.Elapsed.TotalSeconds,1); ram_gib=$s.machine.ram.used_gib }
}
$null = Run "warmup-long" $long
$rows = @()
1..3 | ForEach-Object { $rows += Run "short" $short }
1..3 | ForEach-Object { $rows += Run "long-38K" $long }
$rows | Export-Csv D:\AI\bench\runs.csv -NoTypeInformation
$rows | Format-Table -AutoSize