Skip to content

[HIP] [OPUS] [FlyDSL] Add OPUS FP4 indexer writer and shared BF16 GEMM weights - #7798

Merged
junhaha666 merged 6 commits into
mainfrom
codex/hip-indexer-opus-fp4
Nov 17, 2026
Merged

junhaha666 merged 6 commits into
mainfrom
codex/hip-indexer-opus-fp4

Conversation

@junhaha666

@junhaha666 junhaha666 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Companion for ROCm/ATOM#3042, based on main 1350defcfe: HIP OPUS writer support plus the shared BF16 indexer-weight GEMM extension. Supersedes the now-closed Triton alternative #7730; it does not depend on that PR. ATOM 84ae29323 requires the shared-weight support in 9beaa73de1. Deploy matching AITER Python sources and a rebuilt module_cache extension.

  • Extend the existing indexer_qk_rope_quant_and_cache with scale_layout="opus" and rope_dim=0/64 for GLM-5.3 / K3.1 Pro-style DSA indexers.
  • gfx950, BF16 Q/K -> group32 MXFP4 + E8M0, H=32/64, D=128, 64-token pages. Q scales [M,2,32,H/16]; K data/scales [pages,4,64,16] / [pages,2,32,4], matching OPUS MQA.
  • Reuse HIP LayerNorm, RoPE and FP4 conversion. Compile-time layout/RoPE specialization; OPUS schedules K separately within the same launch. Preserve no-RoPE BF16 affine rounding.
  • Preserve FP8/FlyDSL FP4 defaults. DCP computes all Q rows while skipping negative/missing K slots, including shorter slot arrays. No collectives or Mono kernel changes.
  • Extend the existing writer and HGEMM tests; no new Triton writer or separate test suite.

Shared BF16 Indexer Weights

  • 9beaa73de1: optional flydsl_hgemm(..., bpreshuffle=True) for gfx950 BF16 skinny/unsplit full-tile GEMM, using AITER's standard (16,16) shuffle. Raw defaults remain unchanged; strided 3D inputs cannot fall through to F.linear on shuffled bytes.
  • Enables ATOM #3042 to share one BF16 weight between native GEMM and Mono, removing the former DCP1 short-path copy (16 MiB/GLM or 12 MiB/K3 per indexer layer/GPU).
  • 86719be77f fills the missing M10240/M16384/M32768 points: 58 tuning rows total, 29/model, through M32768. N4096, K2048/GLM or K1536/K3. Existing raw and smaller-M rows are unchanged.
  • Eight shuffled HGEMM shapes pass eager/graph/tail checks; compiled strided-3D out=, unsupported-policy and raw-layout checks pass. The large-M sweep checks 138 ASM/FlyDSL candidates (23/shape), all passing; six fresh native tgemm dispatch runs verify the persisted rows and graph replay with changed inputs.
  • Large-M winners remain the previous default shuffled ASM 256x256 kernel. This completes tuning coverage, not a new large-M speedup. Earlier M2048 native overhead was K3 +2.872 us / GLM +3.735 us.

Independent persisted-config verification below: checkpoint BF16 weights, gfx950, 11 alternating AB/BA samples, 32 calls/graph x 16 replays. Positive latency change means slower than unshuffled native. No whole-model claim.

Model M N K Raw native (us) Shuffled (us) Latency change
K3.1 Pro 10240 4096 1536 110.322 107.553 -2.51%
K3.1 Pro 16384 4096 1536 152.184 155.472 +2.16%
K3.1 Pro 32768 4096 1536 302.760 331.190 +9.39%
GLM-5.3 10240 4096 2048 139.685 134.986 -3.36%
GLM-5.3 16384 4096 2048 199.596 197.314 -1.14%
GLM-5.3 32768 4096 2048 385.984 413.744 +7.19%

M32768 remains about 9.4% slower for K3 and 7.2% for GLM versus raw native. This is an existing shared-weight tradeoff, not a regression introduced by these six CSV rows.

Validation

gfx950 in jun_atom2:

  • 320 writer cases: M=1/8/64/256/257/2048/16384, H=32/64, both RoPE styles, RoPE 0/64, owner/non-owner and short-slot cases. FP4 outputs byte-exact; 208 OPUS cases also replay graphs after changing Q and slots.
  • 13 invalid-input rejection checks; 12 writer-to-MQA checks (FlyDSL/OPUS, H=32/64, qlen=1/6): cosine and top-64 overlap 1.0.
  • 20 byte-exact comparisons against [Triton/Gluon] Add OPUS FP4 mode to the DSA cache writer #7730's Triton writer. 16 legacy FP8/FP4 comparisons against the unchanged main HIP implementation: byte-exact, graph latency changes -1.50% to +1.57%.
  • ATOM integration (f1485d59f, FlyDSL 0.5.0): 1183 regression tests pass. Eight native-forward graph cases cover NoPE/RoPE64, DCP1/DCP8 adapter semantics, and full/short slots. Every replay emits one HIP writer and checks Q/K data, scales, untouched rows and changed Q/weights/slots. DCP world size is mocked in this integration test.
  • Black, Ruff and git diff --check pass. Full-model accuracy/performance and multi-rank DCP have not been rerun for this PR.
python op_tests/test_indexer_qk_rope_quant_and_cache.py \
  --mode fp8 fp4 opus e2e -n 1 8 64 256 257 2048 16384

Writer Performance

Microseconds: Triton / HIP (HIP latency change). BF16 inputs, 50% owned K slots, three missing tail slots, all Q computed. Median of 9 alternating AB/BA samples, 32 writer calls/graph, 20 replays/sample. Writer only, no MQA/TopK/communication.

M H D RoPE 0 RoPE 64
8 32 128 2.24 / 2.45 (+9.0%) 2.22 / 2.69 (+21.2%)
8 64 128 2.37 / 2.47 (+4.0%) 2.37 / 2.73 (+15.2%)
64 32 128 3.28 / 3.04 (-7.2%) 3.35 / 3.31 (-1.0%)
64 64 128 4.14 / 3.42 (-17.5%) 4.32 / 3.83 (-11.3%)
256 32 128 6.04 / 4.25 (-29.6%) 6.35 / 4.77 (-24.8%)
256 64 128 9.71 / 5.99 (-38.3%) 10.34 / 6.68 (-35.4%)
2048 32 128 31.43 / 6.77 (-78.5%) 34.85 / 12.91 (-62.9%)
2048 64 128 72.19 / 10.66 (-85.2%) 80.86 / 23.66 (-70.7%)
16384 32 128 289.97 / 35.48 (-87.8%) 326.72 / 83.66 (-74.4%)
16384 64 128 706.44 / 95.99 (-86.4%) 811.98 / 189.71 (-76.6%)

M=8 remains 0.09-0.47 us slower than Triton despite splitting Q/K work; this is not a claim of a universal speedup or full-model improvement.

CI fallback-test fix (e93ae5e9de)

The OPUS stale-row fallback test still mocked tuned_gemm.get_gfx after dispatch moved to get_gfx_runtime. Update that mock to the runtime architecture probe while preserving its framework-fallback and single-warning assertions. The preceding Standard Tests job failed only this case (36 passed, 9 skipped). The failure reproduces at the PR sources; after the fix, the file passes 28 tests with GPUs hidden (18 GPU tests skipped), and the current head passes 37 tests on gfx950 (9 skipped). Black and Ruff pass. This commit changes one test line and does not alter GEMM dispatch or kernels.

@junhaha666
junhaha666 requested a review from a team November 11, 2026 05:50
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter standard tests on MI35X
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the Radeon R9700 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 7798 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.

@github-actions github-actions Bot added the HIP label Nov 11, 2026
@aiter-bot

aiter-bot commented Nov 11, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision e93ae5e9de5f · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. Which architecture, dtype and shape boundaries select the changed kernel path, and what invariant prevents unsupported inputs from reaching it?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — missing ### Reviewed revision in the PR description
  • FAIL — missing ### Behavior and intent in the PR description
  • FAIL — missing ### Validation and unverified scope in the PR description
  • FAIL — missing ### PR-specific question in the PR description
  • FAIL — missing ### Changed op tests in the PR description
  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer
  • FAIL — changed op test not explained in Changed op tests: op_tests/test_flydsl_hgemm.py
  • FAIL — changed op test not explained in Changed op tests: op_tests/test_indexer_qk_rope_quant_and_cache.py
  • FAIL — changed op test not explained in Changed op tests: op_tests/test_opus_a16w16_gemm.py
  • FAIL — changed op test not explained in Changed op tests: op_tests/tuning_tests/test_a16w16_tuned_config_lookup.py
  • FAIL — Changed op tests must explain why each changed op test is necessary and non-redundant

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@junhaha666

Copy link
Copy Markdown
Contributor Author

@aiter-bot review

@aiter-bot

Copy link
Copy Markdown

⚠️ aiter-bot — this review could not complete: a problem with the GLM model service, not with this PR.

GLM backend unavailable at http://localhost:30000 (deep inference probe returned '000')

@yhl-amd — please take a look.

Triage: if GLM serves but its output is malformed it may be the ATOM framework (@valarLip); if the box, GPU, disk or network is unhealthy it may be the machine (@gyohuangxin).

Re-comment @aiter-bot review once it is resolved.

Add optional gfx950 BF16 preshuffle support to skinny and unsplit full-tile HGEMM. Preserve raw defaults, handle strided 3D inputs, and add 52 qualified GLM/K3 shuffled tuning rows with focused eager/graph coverage.
junhaha666 added a commit to ROCm/ATOM that referenced this pull request Nov 11, 2026
Prepare the standard AITER BF16 weight layout before warmup and use it in both Mono Q paths and native prefill/fallback. Remove the private packed copy, preserve storage identity, and guard unsupported deployments and older AITER. Requires ROCm/aiter#7798 commit 9beaa73de1.

Validated with 630 focused ATOM tests and 40 TP8 indexer graph cases. Document accepted native GEMM tradeoffs and remaining full-model qualification.
@github-actions github-actions Bot changed the title [HIP] Add OPUS FP4 and no-RoPE support to the fused DSA indexer writer [HIP] [FlyDSL] Add OPUS FP4 and no-RoPE support to the fused DSA indexer writer Nov 11, 2026
@junhaha666 junhaha666 changed the title [HIP] [FlyDSL] Add OPUS FP4 and no-RoPE support to the fused DSA indexer writer [HIP][FlyDSL] Add OPUS FP4 indexer writer and shared BF16 GEMM weights Nov 11, 2026
Add measured M10240/M16384/M32768 rows for N4096 K1536/K2048. All 138 tested ASM/FlyDSL candidates pass; independent native tgemm lookup and mutable graph replay validate the six persisted rows. The existing shuffled ASM 256x256 kernel remains best in this sweep; raw and existing smaller-M rows are unchanged.
@github-actions github-actions Bot changed the title [HIP][FlyDSL] Add OPUS FP4 indexer writer and shared BF16 GEMM weights [HIP] [FlyDSL] Add OPUS FP4 indexer writer and shared BF16 GEMM weights Nov 11, 2026
whx-sjtu added a commit to ROCm/ATOM that referenced this pull request Nov 12, 2026
Bring #3042 and #3099 into whx/k31-perf for recipe F8

Implements wuhuikx/LLM-Booster#496.

Merges #3099 at 945cf21 and #3042 at 0b27b59 into
whx/k31-perf, so prefill tasks measure on the code recipe F8 runs. The OPUS
FP4 indexer cache is selected with --index-cache-layout mfma and needs an
aiter with ROCm/aiter#7798.

Conflict resolution:
- kimi_mla_gdn_attn.py build_kv_cache_tensor keeps #3042's
  index_scale alongside both sides' index_cache.
- sparse_indexer_fp4.py assert_fp4_indexer_supported takes #3042's
  packed_writer without prefill_ubatching, which #3136 removed.
- test_lmcache_mp_native_scheduler.py keeps #3136's _shipped_tokens
  and #3042's block_ids assertion.
- test_lmcache_mp_builder_views.py drops a stale atom.utils.tbo stub.
- test_dsa_indexer_fp4_layout.py skips the HIP writer test through
  import_guard where Triton or AITER is absent.

GSM8K 5-shot on recipe F8 (without --spec-decode-acceptance-length), n=1319:
flexible-extract 0.9727, strict-match 0.9719 (stderr 0.0045).
@junhaha666

Copy link
Copy Markdown
Contributor Author

@aiter-bot review

@aiter-bot

Copy link
Copy Markdown

aiter-bot — queued behind 1 review(s); expect to start in about 22 min. The box reviews one PR at a time.

@aiter-bot aiter-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ROCm/aiter] PR #7798 — [HIP] [FlyDSL] Add OPUS FP4 indexer writer and shared BF16 GEMM weights

Review (advisory): ⚠️ NEEDS WORK
Validation (deterministic): NOT RUN — triage found 3 candidate test targets and no unique one (op_tests/test_flydsl_hgemm.py, op_tests/test_indexer_qk_rope_quant_and_cache.py, op_tests/tuning_tests/test_a16w16_tuned_config_lookup.py) and auto-validation is disabled (REVIEW_AUTO_VALIDATE=0) — environment gap, not a PR defect
Perf (advisory): NOT RUN — no perf target selected (same 3 candidates, none unique) and auto-validation disabled; the PR's own tables (writer vs the superseded #7730 Triton writer, 9 AB/BA samples; shared vs raw native, 11 AB/BA samples/shape) are head-side measurements, not re-run here
Size: 1016 lines / 13 files — over the review bar
Design (advisory): SPLIT — the HIP OPUS FP4 writer (aiter/ops/cache.py, csrc/include/cache.h, csrc/include/rocm_ops.hpp, csrc/kernels/cache_kernels.cu, op_tests/test_indexer_qk_rope_quant_and_cache.py) and the FlyDSL/asm shared BF16 GEMM weights (aiter/ops/flydsl/gemm_kernels.py, gemm_a16w16_gfx950.py, gemm_a16w16_skinny_gfx950.py, aiter/tuned_gemm.py, the two model_configs CSVs, op_tests/test_flydsl_hgemm.py) are independent seams sharing no symbol — the repo's own CI guide asks for one backend tag per PR and this title carries two
Human: recommend valarLip review whether one shuffle_weight (16,16) BF16 weight shared between the native GEMM and Mono is the right contract for GLM-5.3 / K3.1 Pro indexer layers given the PR's own M32768 numbers, and whether the OPUS FP4 page/scale layout in csrc/kernels/cache_kernels.cu is the right writer contract for ATOM#3042

⚠️ [verified] This PR carries two backend tags ([HIP] [FlyDSL]) and 1016 lines across 13 files, but the OPUS FP4 writer half (csrc/kernels/cache_kernels.cu, aiter/ops/cache.py) and the shared-weight GEMM half (aiter/ops/flydsl/kernels/gemm_a16w16_gfx950.py, aiter/tuned_gemm.py, the tuned CSVs) share no symbol, and the repo's CI guide posted on this very PR asks for one backend per PR — a revert or rework request on either half now blocks both, and a two-backend 1000-line diff gets sampled rather than read. Author must split along that seam as stacked PRs (the small get_gfx→get_gfx_runtime fix in aiter/tuned_gemm.py rides the GEMM half).

⚠️ [verified] aiter/tuned_gemm.py is the A16W16 dispatch backbone every GEMM consumer shares, and this PR changes its default path: get_gfx() becomes get_gfx_runtime() in three lookup paths, so on a multi-arch build (GPU_ARCHS='gfx950;gfx942') serving on gfx950 every tuned lookup changes from gfx942 rows to gfx950 rows. The swap matches the documented helper policy and is a fix, but a Tier-2 default-dispatch change must not land on a single approval. Reviewer must @-mention the de-facto owner of aiter/tuned_gemm.py for explicit sign-off before merge.

⚠️ [inferred] The PR's own table reports the persisted M32768 shared-weight rows in aiter/configs/model_configs/glm53_bf16_tuned_gemm.csv and kimik3_bf16_tuned_gemm.csv are 7.2% (GLM-5.3) and 9.4% (K3.1 Pro) slower than raw native, and the 23-candidates-per-shape sweep says these are already the best shuffled kernels — so the cost is inherent to dropping the raw weight copy, and any GLM/K3 prefill that reaches M32768 indexer GEMMs pays it on every layer to save 12–16 MiB/GPU/layer. Author must confirm ATOM accepts the M32768 penalty (or keeps the raw weight for large-M prefill).

⚠️ [verified] No base-vs-head timing exists for the changed kernels on this box: the perf stage could not run (three candidate test targets with no unique one, auto-validation disabled), and the PR's own tables measure head against either the superseded, never-merged #7730 Triton writer or raw-vs-shuffled on head — the legacy-path claim (-1.50% to +1.57% graph latency on csrc/kernels/cache_kernels.cu) is the author's run and nothing re-runs it. Reviewer should ask for a base-vs-head run of op_tests/test_indexer_qk_rope_quant_and_cache.py --mode fp8 fp4 before merge.

📝 [verified] The shuffle_weight (16,16) offset math now lives in three places — aiter/ops/shuffle.py (the permute), aiter/ops/flydsl/kernels/gemm_a16w16_gfx950.py and gemm_a16w16_skinny_gfx950.py (the DMA offsets, verified to agree today) — so a future shuffle_weight layout change must be mirrored in both kernels or the GEMM silently reads garbage from correctly-shaped weights. Author must cross-reference the three sites (or hoist the tile math into one shared helper) so a layout change cannot miss a kernel.

@github-actions github-actions Bot changed the title [HIP] [FlyDSL] Add OPUS FP4 indexer writer and shared BF16 GEMM weights [HIP] [OPUS] [FlyDSL] Add OPUS FP4 indexer writer and shared BF16 GEMM weights Nov 17, 2026
@github-actions github-actions Bot added the OPUS label Nov 17, 2026
@junhaha666
junhaha666 merged commit 1e6fdb7 into main Nov 17, 2026
@junhaha666
junhaha666 deleted the codex/hip-indexer-opus-fp4 branch November 17, 2026 08:26
valarLip pushed a commit to ROCm/ATOM that referenced this pull request Nov 18, 2026
…3042)

* feat(mono): extend DSA FP8/FP4 indexers and qlen-6 verification

Add OPUS-compatible MXFP4 cache plumbing, wider decode and verify planners, graph-time local short-context execution, and conditional DSA reset. Include regression tests, a standalone GLM benchmark, and the complete FP8/FP4 performance comparison with known short-context regressions.

* style: format DSA Mono kernels and benchmark tests

Apply Black without changing the Python AST of any formatted file.

* perf(mono): tune graph-local qlen-6 indexer for short contexts

* perf(mono): enable K3.1 Pro short-context indexer tuning

Publish FP8/OPUS FP4 measurements with separate provenance for fresh DCP1 and prior DCP8 results. Adapt checkpoint loading to nested text configuration and preserve the existing model identifiers.

* fix(indexer): bind K3 FP4 cache planes with OPUS layouts

Bind packed K3 index keys and scales, publish both planes, and include them in PAGE-unit ownership and copies. Map MFMA logical blocks onto OPUS physical page-64 groups while preserving block-table IDs and V4.1 page-8 behavior. Initialize the scale tensor before KV pool binding and cover the layout contracts with regression tests.

* fix(dsv41): align Mono reference scorer with FP4 weight ABI

Unfold K1's scaled FP32 index weights and cast them to BF16 for the OPUS FP4 debug scorer, passing the scale explicitly. Preserve the FP8 weight path and add regression tests for both contracts. This only changes the debug-check path.

* test(mono): trim redundant DSA indexer coverage

* Optimize DeepSeek V4.1 Mono scoring and TopK

* Support standalone LMCache MP for OPUS FP4 DSA Mono

Allow standalone LMCache MP with shared DSA and K3 Mono while retaining other connector and plugin restrictions. Snapshot DSA FP4 layout to separate OPUS and legacy cache namespaces, and reject worker layout mismatches.

Add focused gate, namespace and opaque plane relocation coverage. Verified with 501 regression tests and TP8 GLM-5.3-MXFP4 / K3.1 Pro CPU cache reload smoke tests.

* Support TP8 DCP8 LMCache MP for GLM and K3

Use global-token block boundaries while preserving per-rank PAGE shards and native checkpoint images. Disable TP rank collapse under DCP and isolate interleave-specific cache namespaces.

Validate with 1374 passing cross-feature tests, 168 DCP1 configuration parity checks, and TP8 DCP8 GLM/K3 OPUS FP4 full-model CPU reload smoke tests.

* Address DSA Mono layout, writer and coverage review

* Use AITER HIP OPUS writer for DSA FP4 native paths

* [Mono] Share shuffled BF16 indexer weights with native GEMM

Prepare the standard AITER BF16 weight layout before warmup and use it in both Mono Q paths and native prefill/fallback. Remove the private packed copy, preserve storage identity, and guard unsupported deployments and older AITER. Requires ROCm/aiter#7798 commit 9beaa73de1.

Validated with 630 focused ATOM tests and 40 TP8 indexer graph cases. Document accepted native GEMM tradeoffs and remaining full-model qualification.

* [Mono] Keep local tuning artifacts out of the indexer PR

Remove benchmark harnesses, measured JSON, historical docs, and standalone kernel-debug tests from the final tree. Retain compact layout, admission, buffer, weight ownership, and LMCache/DCP regression coverage; consolidate shared-weight checks into the existing hook suite. No production code changes. 714 focused tests pass.

* Address DSA Mono review with CPU planners and separate V4.1 scope

* test: consolidate DSA indexer regression coverage

* Fix DSA score-grid cache identities and review leftovers

* Fix DSA local-step compilation identity and cache reset layouts

* Derive OPUS cache shapes and test local reset symbols on CPU

* Forward merged writer options and align the FP4 cache interface

Pass scale_layout and rope_dim on all HIP writer calls. Use None for absent index scale planes and the shared scale_block_bytes name while retaining explicit MFMA admission. Re-export CPU symbol naming, handle a missing K3 layer stack, and read established DCP Config fields directly. Update the focused regression fixtures and checks.

* Fix LMCache test Config fixtures for direct DCP fields

* Preserve OPUS scale tensor inputs during compiled warmup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants