mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @petski3 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2932
Setup: 2x Radeon Pro VII 16 GB (gfx906, wave64), Ryzen 9 3950X, 64 GB RAM, Ubuntu 24.04, kernel 6.8, ROCm 7.14 in a docker build image (clang 23), ggml at the pinned 3cf0325.
Build as in docs/AMD_HIP.md:
cmake -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 -DSTRATA_BUILD_TESTS=OFF -DSTRATA_GGML_DIR=..., targetsstrata strata-device.Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack, layer split 27 over both cards,
STRATA_ARENA_MMAP=1,--pcie-frac 0, MTP spec 4, KV int8 +--kv-resident 32768.Built from v0.1.45 (
477ac13) with the three gfx906 build fixes from #2459 (we hit the same breaks: the cublas maps,GGML_USE_HIPonstrata_mmq_w4a4, andmoe_f16_kq.cuin the gfx906strata_mmq). With them it builds and serves (strata 0.1.45).Observed, not localised: answers and 32k decode change on gfx906 (0.1.43.1 -> 0.1.45)
Interleaved A/B (old, new, old, new; same config, fixed-nonce bench + 6 greedy prompts x 768 tokens x 2;
STRATA_ROUTE_TAIL_SKIP=0on both):STRATA_TOPK_OLD=1on 0.1.45 gives a third set of texts (matches neither version), although #1749's docs say the wide and the original top-k give the same ids. On gfx906 they do not, possibly a wave64 issue in the wide kernel. It does not explain the whole difference.--pipeline-windows 2withSTRATA_ARENA_MMAP=1no longer stalls on 0.1.45 (it stalled on 0.1.41 / 0.1.43.1 with "verify window (pipelined): the CPU experts of layer 22"), but it gives no decode gain on the mmap arena here (43.0 vs 44.0).Happy to run any parity test or switch you want on the cards.
@petski3 commented on GitHub (Oct 17, 2026):
Follow-up with more runs, and one correction to the post above.
Correction. The "12 of 12 greedy decode-bench texts differ" point is weak evidence: that bench is not reproducible within one build either (arm vs arm 6/12, round 1 vs round 2 inside one arm 0-2/6; the expert cache adapts during the session). The deterministic test here is the fixed-nonce 4k / 32k bench on a fresh engine. It is identical within a version (every arm, and also mmap vs buffered arena), and different between 0.1.43.1 and 0.1.45 at both 4k and 32k. So the answer change holds, but on that test, not the decode bench.
STRATA_TOPK_OLD=1equals 0.1.45 at 4k and differs at 32k, so the wide and the original top-k disagree only at long context.Buffered arena (
STRATA_ARENA_MMAP=0, experts in pinned RAM), same interleaved A/B,STRATA_ROUTE_TAIL_SKIP=0, 0 stall reports:--pipeline-windows 2--pipeline-windows 2STRATA_MTP_STAGE0=1So the 32k decode drop is there in both memory modes (-10 % buffered, -13 % mmap), and on gfx906 0.1.45 loses the whole +13 % that
--pipeline-windows 2gave 0.1.43.1 (pw2 is on in both: "two verifiers per stage"). Moving the draft layer to card 0 does not bring it back.@petski3 commented on GitHub (Oct 18, 2026):
Correction: most of this issue was #2940, not the engine.
Our benches send
temperature: 0+reasoning_effort: "none"and nopresence_penalty, and our configsamplingblock has none either. Since 0.1.45,server.pymerges the card's instruct set under the config block for thinking-off requests (_run, server.py:4193), sopresence_penalty: 1.5survived the request's temperature 0. The harness runs each tree's ownserve/server.py, and 0.1.43.1's has no card merge. So every 0.1.45 arm above ran with presence 1.5 and every 0.1.43.1 arm without it.Rerun with
"presence_penalty": 0in the configsamplingblock, everything else as before (same configs,STRATA_ROUTE_TAIL_SKIP=0, fixed-nonce 4k / 32k x2 on a fresh engine + the 6 x 768 decode bench, 0 stall reports):--pipeline-windows 2, buffered--pipeline-windows 2, bufferedSTRATA_ARENA_MMAP=1STRATA_ARENA_MMAP=1Prompt and decode cells: run 1, run 2 of one arm. A second 0.1.45 buffered arm gave the same texts and 32k decode 54.8 / 52.9. * = first request after a buffered arm, cold page cache.
What this changes:
No 0.1.45 speed regression on gfx906. The 32k decode drop (-10 % buffered, -13 % mmap) is gone, and the
--pipeline-windows 2gain is back (57.6 vs 58.0).Answers: 0.1.45 on the mmap arena is byte-identical to 0.1.43.1 in all four fixed-nonce texts (4k and 32k, both runs), with the same draft counts. So the "Flash-Next answers are byte-identical" claim from the release notes holds on gfx906 in that mode.
One small difference remains, on the buffered arena only (
STRATA_ARENA_MMAP=0): 0.1.45 differs from 0.1.43.1 late in the reply (char 190-1090 instead of 71/77). It is reproducible on both 0.1.45 arms. 0.1.43.1 gives the same texts on mmap and buffered; 0.1.45 does not. Not localised, and possibly not worth chasing. Mentioning it in case it points at something.Withdrawn, not re-measured with presence 0:
STRATA_TOPK_OLD=1"third set of texts" point--pipeline-windows 2gives no gain on the mmap arena"Both were measured with presence 1.5 on 0.1.45 only. "pw2 + mmap no longer stalls on 0.1.45" was also only seen with presence 1.5.
Sorry for the noise. +1 to #2940's suggestion that
temperature: 0(or an explicit configsamplingblock) should not pick up the card set: it made a sampling change look like an engine regression here too. That may also be worth a look for anyone comparing 0.1.45 against an older server with thinking-off requests (#2936?).Fine to close this one unless you want the buffered-arena difference tracked here.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.