mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3857] [Engine] gfx928 (Hygon K100AI): an opt-in wave64 build, and what it measures #1644
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#1644
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 @DocPang on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3857
This continues #3554, which asks about gfx928 without the environment details. Close this one if you would rather keep everything in that thread; the content below is the scope question, not a second tracker.
Area
[Engine]— model and architecture support.What do you want to do?
Run Strata on Hygon K100_AI (gfx928) as an opt-in build, the way gfx906 is one. Nothing on the default path for any other card, no change to any default value, every new switch opt-in.
The card: 120 CUs, wave64, 64 KiB LDS, 64 GiB, DTK toolchain,
hipBLASLtandrocBLASin/opt/dtk/lib. It compiles through the existing gfx906 wave64 compat layer (-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx928) and serves the Qwen3.8-Flash-Next IQ3_XXS build. What it cannot do is use the matrix units it has, because the paths that would are gated off or missing.I have five candidates, in the order I would send them. Each is a separate PR, and each one I can defend line by line.
STRATA_PREFILL_MMQaccepts the wave64 backend; link hipBLASLt and rocBLAS into it; stub forstrata_pf_hcdown_exact_bf16__dp4afor gfx928 behindSTRATA_GFX928_DOT4moe_combinespecialised on whetherscale_down_rowsexistsItem 5 is the only one I would want its own issue for before writing a PR: it is the one that changes what the card computes at ctx128 (a float-order change in one fused path, restoreable with a switch), and it is too large to review beside anything else.
What do you do today instead?
I carry a 36-file tree over 0.2.2 and build it out of band. That works for one machine and is not something anyone else can repeat: the tree is a snapshot, not a set of reviewable changes, and every rebase costs me a weekend. The published material is a release repository with the snapshot, the per-file hashes and a rebuild report — https://github.com/DocPang/strata-k100ai/releases/tag/v0.2.0 — not a patch series.
Evidence
Same card, one request at a time, IQ3_XXS, prefill chunk 30602, INT8 KV, expert cache 24576,
spec=6. Enginebdbfd934…, 45,674,152 bytes.Module timings from the same runs (5 samples against 4, interval overlap checked): hc block 0.89, dequant 0.83, combine+writeback 0.971, qsa select 0.975, gate/up 0.995, gdn recurrence 0.995, qsa attn 1.000, down GEMM 0.998.
Limits, kept separate
__FILE__paths, so hashes match only inside one build directory. Two clean builds in the same directory are byte-identical.What I am asking for
Which of 1–5 you would take, in what order, and whether gfx928 as an opt-in build is a thing you want at all. I will rebase each one onto
mainbefore sending it, and send it as its own PR with the passed / failed / not run list kept apart.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. 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.