Skip to content

[Triton/Gluon] Gluon PA decode: ragged (varlen) query support - #6445

Open
andrei-kochin wants to merge 2 commits into
ROCm:mainfrom
andrei-kochin:split/gluon-pa-decode-varlen
Open

andrei-kochin wants to merge 2 commits into
ROCm:mainfrom
andrei-kochin:split/gluon-pa-decode-varlen

Conversation

@andrei-kochin

@andrei-kochin andrei-kochin commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Part 2 of 2 split out of #6099 (author: @sshlyapn), so each PR changes one backend.

Important

Stacked on #6444. The Gluon reduce wrapper passes query_start_loc to the HIP PS reduce, which only accepts it after #6444. Because the branches live on a fork, this PR targets main and carries that commit; review only the last commit ("[Triton/Gluon] Gluon PA decode: ragged (varlen) query support"). Once #6444 merges, the diff shrinks to just that commit.

pa_decode_gluon needs the same query_length for every sequence, so it can't take a decode batch with mixed lengths, e.g. speculative decodes next to plain decodes. vLLM's ROCM_AITER_FA backend sends such batches to unified_attention, which doesn't support the shuffled KV layout. With shuffled KV it asserts instead.

Example: MiniMax-M3-MXFP8 on MI355X (TP4, ROCM_AITER_FA, shuffled fp8 KV, EAGLE3 with 3 draft tokens). The server dies during warmup on the mixed spec/non-spec decode step: AssertionError: Shuffle KV cache layout is not supported with sliding window, sinks, or speculative decoding (multi-token decode).

This PR adds ragged (varlen) input, so each sequence uses only its own rows.

Changes

  • New optional query_start_loc ([num_seqs + 1], int32) for pa_decode_gluon, PS path only. Sequence i owns packed query/output rows [query_start_loc[i], query_start_loc[i + 1]). query_length must be >= every per-sequence length. Rows not owned by any sequence are left untouched. Non-PS paths assert on it.
  • Supported in the gluon head_1 and multi-KV attention kernels and in the Triton PS reduce, each behind a compile-time IS_VARLEN flag, so uniform kernels don't contain it. The HIP PS reduce gets it through [HIP] PA decode PS reduce: optional query_start_loc for ragged (varlen) output #6444.
  • Fix the default temporary_output dtype. It was query.dtype, but the attention kernels store bf16 for fp8 compute (otherwise compute_type). Before this fix, an fp8 query with fp8 compute and no temporary_output failed to compile (amdg.buffer_store element type mismatch). Configs that compiled before are unaffected.
  • New test op_tests/triton_tests/test_pa_decode_gluon_varlen.py (and its entry in .github/split-test-times/triton.tsv). Each sequence of a ragged call must match a batch-1 uniform call, and unowned rows must keep a sentinel value. Coverage:
    • bf16, fp8 KV, fp8 Q+KV, sinks, sliding window
    • block 16/64/128 with shuffled V
    • head_1 and multi-KV, one-shot and split runs through the HIP and Triton reduces
    • zero-length sequences

Differences from #6099

#6099 conflicted with main; this is rebased and resolved:

Uniform path impact

Gluon attention and the Triton reduce: the varlen code is gated at compile time. HIP reduce: see #6444.

Reproduce

pytest -q op_tests/triton_tests/test_pa_decode_gluon_varlen.py

The resolved Gluon code has not been re-run on GPU after the rebase; CI on gfx942/gfx950 validates it.

PR Self-Review

Reviewed revision

0286c5f

Behavior and intent

pa_decode_gluon gains an optional query_start_loc (int32, [num_seqs + 1]) on the PS path, so one call can process a decode batch where sequences have different query lengths (speculative decodes mixed with plain decodes), with packed [num_tokens, heads, D] query/output. Before this PR every sequence had to have exactly query_length rows, so vLLM could not use this kernel for mixed spec/non-spec batches with the shuffled KV layout and asserted at warmup (MiniMax-M3-MXFP8 + EAGLE3 example above). Without query_start_loc behavior is unchanged: the varlen code is compile-time gated by IS_VARLEN. Non-PS paths reject query_start_loc with an assertion instead of silently computing wrong rows. The PR also fixes the default temporary_output dtype for fp8 compute (previously a compile failure) and makes output_gate (#6842) address packed rows when query_start_loc is given.

Validation and unverified scope

Current head 0286c5f309e0: ruff check and black --check passed locally on both changed files; the Triton Test workflow for this head (https://github.com/ROCm/aiter/actions/runs/45411567836) is the GPU validation and was still pending when this was written. Earlier revisions (before the test move and before the rebase onto #6842/#6244) passed the varlen tests on MI355X locally and in the PR's Triton CI shard; those runs are not evidence for the rebased code.

Unverified, as of writing: no local GPU run of the rebased head, including the new test_varlen_output_gate and the conflict resolution with #6842 (gate row addressing) and #6244 (long-query split). Varlen combined with query_length > 4 on the single-KV-head PS path (newly allowed by #6244) has no test case; the existing varlen cases use query_length <= 4. No end-to-end vLLM run on this revision and no performance measurement (uniform path is compile-time unchanged by design, not measured).

PR-specific question

Every varlen test calls pa_decode_gluon(..., query_start_loc=...), so before this PR they fail with TypeError (no such argument). Beyond that, each checks a behavior no canonical test covers: test_varlen_matches_uniform requires every sequence of a ragged call to equal a batch-1 uniform call with that sequence's length, rows not owned by any sequence to keep a sentinel, and (bf16, no window) a match with torch_mha_extend; it would catch wrong packed offsets, masks or stores that use the padded query_length instead of the per-sequence length (one such bug, a one-shot head_1 output mask, was found by Copilot review on an earlier revision), and the HIP reduce not receiving query_start_loc (a spy asserts it). Its fp8 Q+KV split cases without temporary_output fail to compile before the dtype fix. test_varlen_rejects_dot_kernel_path fails if a non-PS configuration silently ignores query_start_loc. test_varlen_output_gate fails if the gated PS reduce reads gate rows with batch strides instead of query_start_loc (using a strided gate, as in Qwen3-Next). The existing test_multi_case_set and test_pa_decode_output_gate only use uniform batches, where packed and batched offsets coincide, so they cannot detect any of these.

Changed op tests

op_tests/triton_tests/test_pa_decode_gluon.py: adds test_varlen_matches_uniform (40 pairwise cases: bf16, fp8 KV, fp8 Q+KV, sinks, sliding window incl. vLLM's window+1 with 128-token partitions, block 16/64/128 with shuffled V, head_1 and multi-KV, one-shot and 4/8-split runs through both the HIP and Triton PS reduces, zero-length sequences), test_varlen_rejects_dot_kernel_path and test_varlen_output_gate (head_1 and multi-KV). They are not redundant because all existing cases in this file use uniform per-sequence query lengths; ragged packing, per-sequence masks, untouched unowned rows and gate addressing for packed rows are only exercised here. The cases are in this existing file rather than a new one, as requested in review, and reuse its quantization and reference helpers.

@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

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

Extended tests (opt-in via labels):

Label Tests
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 gfx1201 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 6445 --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.

@github-actions github-actions Bot changed the title [Triton/Gluon] Gluon PA decode: ragged (varlen) query support [Triton/Gluon] [HIP] [CI] Gluon PA decode: ragged (varlen) query support Oct 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The current diff mixes two backends and places the new test outside the required mirrored folder.

2 open findings
What changed in this PR

Adds ragged-query support to Gluon paged-attention decode, including packed-row reduction and validation coverage.

Changes:

  • Threads query_start_loc through Gluon attention and HIP/Triton reducers.
  • Corrects temporary-output dtype selection for FP8 compute.
  • Adds ragged decode tests and CI timing metadata.
File Description
aiter/​ops/​triton/​gluon/​pa_decode_gluon.py Implements ragged query dispatch and packed output handling.
csrc/​cpp_itfs/​pa/​pa_ps.py Exposes varlen HIP reduction and updates its cache key.
csrc/​cpp_itfs/​pa/​pa_ps.cuh Adds packed-row addressing to the HIP reducer.
csrc/​cpp_itfs/​pa/​pa_ps.cpp.jinja Threads the offsets pointer into the HIP kernel.
op_tests/​triton_tests/​test_pa_decode_gluon_varlen.py Tests ragged correctness, backends, and edge cases.
.github/​split-test-times/​triton.tsv Registers the new test’s expected duration.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread csrc/cpp_itfs/pa/pa_ps.py
logits_dtype: str,
sink_dtype: str,
use_sinks: bool,
is_varlen: bool = False,
import triton

import aiter
import aiter.ops.triton.gluon.pa_decode_gluon as pa_mod
@@ -0,0 +1,376 @@
# SPDX-License-Identifier: MIT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please reuse the existing unit test for pa decode instead of creating a new file.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Applied, thanks!

@zufayu
zufayu requested review from a team and Dewei-Wang-sh October 13, 2026 01:40
Copilot AI balanced review requested due to automatic review settings October 14, 2026 11:12
@sshlyapn
sshlyapn force-pushed the split/gluon-pa-decode-varlen branch from fefbfac to 37b567b Compare October 14, 2026 11:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The stacked HIP changes must be removed after #6444, and the new tests must follow the mirrored Gluon test layout.

4 open findings

🧠 Review effort: Balanced

auto reduce = [&](auto out_tag, auto parts) {
using D_OUT = decltype(out_tag);
aiter::pa_decode_ps_reduce_hip_kernel<D_OUT, float, float, false, 512, 1, decltype(parts)::value>
aiter::pa_decode_ps_reduce_hip_kernel<D_OUT, float, float, false, false, 512, 1, decltype(parts)::value>
_varlen_cases(),
indirect=["reduce_backend"],
)
def test_varlen_matches_uniform(
Copilot AI balanced review requested due to automatic review settings October 15, 2026 10:55
@sshlyapn
sshlyapn force-pushed the split/gluon-pa-decode-varlen branch from 37b567b to 9d07f2f Compare October 15, 2026 10:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@sshlyapn
sshlyapn force-pushed the split/gluon-pa-decode-varlen branch from 9d07f2f to ab4cc05 Compare October 15, 2026 12:18
Copilot AI balanced review requested due to automatic review settings October 15, 2026 12:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The rebased GPU indexing, masking, and reduction changes still need hardware correctness and performance validation.

4 open findings
1 resolved since last review

🧠 Review effort: Balanced

@sshlyapn
sshlyapn force-pushed the split/gluon-pa-decode-varlen branch from ab4cc05 to 22907b0 Compare October 16, 2026 11:04
Copilot AI balanced review requested due to automatic review settings October 16, 2026 11:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The rebased GPU attention and reduction paths still need correctness and performance validation before human approval.

5 open findings

🧠 Review effort: Balanced

Comment on lines +2537 to +2554
x = 16 // 2
key_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE // x,
block_size,
x,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
value_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE,
block_size,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
Copilot AI balanced review requested due to automatic review settings October 19, 2026 06:25
@sshlyapn
sshlyapn force-pushed the split/gluon-pa-decode-varlen branch from 22907b0 to d696e58 Compare October 19, 2026 06:25
@sshlyapn
sshlyapn requested a review from vgokhale October 19, 2026 06:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment on lines +2631 to +2648
x = 16 // 2
key_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE // x,
block_size,
x,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
value_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE,
block_size,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
@sshlyapn
sshlyapn force-pushed the split/gluon-pa-decode-varlen branch from d696e58 to 9f1dca3 Compare October 19, 2026 09:08
Copilot AI balanced review requested due to automatic review settings October 19, 2026 09:08
@github-actions github-actions Bot changed the title [Triton/Gluon] [HIP] [CI] Gluon PA decode: ragged (varlen) query support [Triton/Gluon] [HIP] Gluon PA decode: ragged (varlen) query support Oct 19, 2026
@github-actions github-actions Bot removed the CI label Oct 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sliding_window_performance_test()


# ==================== RAGGED (query_start_loc) PS PATH ====================
Comment on lines +2631 to +2648
x = 16 // 2
key_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE // x,
block_size,
x,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
value_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE,
block_size,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No activity for 15 days, so this is now labelled stale. A push or a comment clears it; keep-open exempts it. Nothing is closed automatically.

@github-actions github-actions Bot added the stale The PR hasn't been updated in 2 weeks label Nov 4, 2026
sshlyapn and others added 2 commits November 24, 2026 14:05
New optional query_start_loc ([num_seqs + 1], int32) for pa_decode_gluon,
PS path only. Sequence i owns packed query/output rows
[query_start_loc[i], query_start_loc[i + 1]); query_length must be >= every
per-sequence length; rows not owned by any sequence are left untouched.
Non-PS paths assert on it.

- Supported in the gluon head_1 and multi-KV attention kernels and in the
  Triton PS reduce, each behind a compile-time IS_VARLEN flag; the HIP PS
  reduce is used through its query_start_loc argument.
- Causal masks use the per-sequence query length, on top of the per-split
  causal mask from ROCm#5915.
- Fix the default temporary_output dtype: the attention kernels store bf16
  for fp8 compute (otherwise compute_type), not query.dtype. An fp8 query
  with fp8 compute and no temporary_output failed to compile before.
- New test op_tests/triton_tests/test_pa_decode_gluon_varlen.py: each
  sequence of a ragged call must match a batch-1 uniform call, and unowned
  rows must keep a sentinel. Covers bf16, fp8 KV, fp8 Q+KV, sinks, sliding
  window, block 16/64/128 with shuffled V, head_1 and multi-KV, one-shot and
  split runs through the HIP and Triton reduces, and zero-length sequences.

Split out of ROCm#6099, rebased onto main. The FlyDSL reduce part of ROCm#6099 is
dropped: since ROCm#5809 the Gluon path no longer dispatches to the FlyDSL PS
reduce, and the no-work-plan mode it extended no longer exists.

Signed-off-by: Sergei Shliapnikov <[email protected]>
Signed-off-by: Andrei Kochin <[email protected]>
Co-authored-by: Cursor <[email protected]>
…_pa_decode_gluon.py.

Add test_varlen_output_gate: with query_start_loc, a strided output_gate is packed like output and gates only owned rows.

Signed-off-by: Sergei Shliapnikov <[email protected]>
@sshlyapn
sshlyapn force-pushed the split/gluon-pa-decode-varlen branch from 9f1dca3 to 0286c5f Compare November 24, 2026 14:12
Copilot AI balanced review requested due to automatic review settings November 24, 2026 14:12
@github-actions github-actions Bot changed the title [Triton/Gluon] [HIP] Gluon PA decode: ragged (varlen) query support [Triton/Gluon] Gluon PA decode: ragged (varlen) query support Nov 24, 2026
@github-actions github-actions Bot removed the HIP label Nov 24, 2026
@aiter-bot

aiter-bot commented Nov 24, 2026 •

Copy link
Copy Markdown

NOT READY FOR HUMAN REVIEW

PR Self-Review

Revision 0286c5f309e0 · mode shadow

Author self-review accepted. Readiness report:

Author answers

  • PASS — current-SHA answers are present and structurally specific
Show the author's self-review answers

Behavior and intent

`pa_decode_gluon` gains an optional `query_start_loc` (int32, `[num_seqs + 1]`) on the PS path, so one call can process a decode batch where sequences have different query lengths (speculative decodes mixed with plain decodes), with packed `[num_tokens, heads, D]` query/output. Before this PR every sequence had to have exactly `query_length` rows, so vLLM could not use this kernel for mixed spec/non-spec batches with the shuffled KV layout and asserted at warmup (MiniMax-M3-MXFP8 + EAGLE3 example above). Without `query_start_loc` behavior is unchanged: the varlen code is compile-time gated by `IS_VARLEN`. Non-PS paths reject `query_start_loc` with an assertion instead of silently computing wrong rows. The PR also fixes the default `temporary_output` dtype for fp8 compute (previously a compile failure) and makes `output_gate` (#6842) address packed rows when `query_start_loc` is given.

Validation and unverified scope

Current head `0286c5f309e0`: `ruff check` and `black --check` passed locally on both changed files; the Triton Test workflow for this head (https://github.com/ROCm/aiter/actions/runs/45411567836) is the GPU validation and was still pending when this was written. Earlier revisions (before the test move and before the rebase onto #6842/#6244) passed the varlen tests on MI355X locally and in the PR's Triton CI shard; those runs are not evidence for the rebased code.

Unverified, as of writing: no local GPU run of the rebased head, including the new `test_varlen_output_gate` and the conflict resolution with #6842 (gate row addressing) and #6244 (long-query split). Varlen combined with `query_length > 4` on the single-KV-head PS path (newly allowed by #6244) has no test case; the existing varlen cases use `query_length <= 4`. No end-to-end vLLM run on this revision and no performance measurement (uniform path is compile-time unchanged by design, not measured).

PR-specific question

Every varlen test calls `pa_decode_gluon(..., query_start_loc=...)`, so before this PR they fail with `TypeError` (no such argument). Beyond that, each checks a behavior no canonical test covers: `test_varlen_matches_uniform` requires every sequence of a ragged call to equal a batch-1 uniform call with that sequence's length, rows not owned by any sequence to keep a sentinel, and (bf16, no window) a match with `torch_mha_extend`; it would catch wrong packed offsets, masks or stores that use the padded `query_length` instead of the per-sequence length (one such bug, a one-shot head_1 output mask, was found by Copilot review on an earlier revision), and the HIP reduce not receiving `query_start_loc` (a spy asserts it). Its fp8 Q+KV split cases without `temporary_output` fail to compile before the dtype fix. `test_varlen_rejects_dot_kernel_path` fails if a non-PS configuration silently ignores `query_start_loc`. `test_varlen_output_gate` fails if the gated PS reduce reads gate rows with batch strides instead of `query_start_loc` (using a strided gate, as in Qwen3-Next). The existing `test_multi_case_set` and `test_pa_decode_output_gate` only use uniform batches, where packed and batched offsets coincide, so they cannot detect any of these.

Changed op tests

`op_tests/triton_tests/test_pa_decode_gluon.py`: adds `test_varlen_matches_uniform` (40 pairwise cases: bf16, fp8 KV, fp8 Q+KV, sinks, sliding window incl. vLLM's window+1 with 128-token partitions, block 16/64/128 with shuffled V, head_1 and multi-KV, one-shot and 4/8-split runs through both the HIP and Triton PS reduces, zero-length sequences), `test_varlen_rejects_dot_kernel_path` and `test_varlen_output_gate` (head_1 and multi-KV). They are not redundant because all existing cases in this file use uniform per-sequence query lengths; ragged packing, per-sequence masks, untouched unowned rows and gate addressing for packed rows are only exercised here. The cases are in this existing file rather than a new one, as requested in review, and reuse its quantization and reference helpers.

PR state

  • PASS — pull request is marked ready for review

Copilot findings

  • FAIL — an active Copilot finding has no substantive reply from the PR author
  • FAIL — an active Copilot finding has no substantive reply from the PR author
  • FAIL — an active Copilot finding has no substantive reply from the PR author
  • FAIL — an active Copilot finding has no substantive reply from the PR author
  • FAIL — an active Copilot finding has no substantive reply from the PR author

Code and op-test hygiene

  • PASS — no committed artifact or conflict marker detected

Required CI

  • PASS — Black: passed
  • PASS — Ruff: passed
  • PASS — Repository dependency: passed
  • PASS — Aiter Test Gate: passed

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment on lines +5241 to +5243
dtype=(
aiter.dtypes.bf16 if compute_type == aiter.dtypes.fp8 else compute_type
),
Comment on lines +1555 to +1572
x = 16 // 2
key_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE // x,
block_size,
x,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
value_cache = torch.empty(
num_blocks,
num_kv_heads,
VARLEN_HEAD_SIZE,
block_size,
dtype=torch.bfloat16,
device=device,
).uniform_(-1, 1)
@github-actions github-actions Bot removed the stale The PR hasn't been updated in 2 weeks label Nov 25, 2026

This branch has not been deployed

No deployments
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