Skip to content

[Triton/Gluon] Read (B, next_n) context lengths in the paged MQA logits kernels - #6451

Merged
azaidy merged 6 commits into
ROCm:mainfrom
amd-sriram:rocm/triton-paged-mqa-logits-2d-context-lens
Oct 20, 2026
Merged

azaidy merged 6 commits into
ROCm:mainfrom
amd-sriram:rocm/triton-paged-mqa-logits-2d-context-lens

Conversation

@amd-sriram

@amd-sriram amd-sriram commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Currently, vLLM passes context_lens to the paged MQA logits kernels as a 2D (B, next_n) table, the same layout DeepGEMM uses. The AITER Triton and Gluon kernels for paged_mqa_logits only read a 1D [B] vector, so with MTP on they silently use the wrong lengths.

This PR lets the Triton and Gluon paged_mqa_logits kernels accept the 2D context_lens that vLLM sends with MTP, while staying backward compatible with the 1D context_lens that SGLang and ATOM send with MTP, and with the 1D format used without MTP.

This is the Triton/Gluon half of #6153, split out as requested in review (one backend per PR). The FlyDSL kernel gets the same change in #6450. The two PRs touch different files and can merge in either order.

It also addresses the review comments on #6153:

  • A non-contiguous context_lens is rejected with ValueError instead of being copied (no hidden allocation per call).
  • A 2D table with no columns, or a [B] / 2D table with fewer than B rows, is rejected; either would have made the kernels read outside the tensor.
  • The test now runs the Triton fallback on its own (Gluon turned off for that case), and the Gluon JIT skip applies only to the Gluon cases.
  • ContextLenStride is in the make_kernel_repr names of the Triton kernels.
  • context_lens must be int32 on the query's device; the Gluon kernels take it as *i32, so an int64 table gave wrong lengths.
  • The new test also covers stage1 and the varctx schedule and kernel, lives under op_tests/triton_tests/attention/, and uses the wrappers' default tuning.

Example: 4 requests, next_n=3, context lengths 8192 / 1500 / 3000 / 700, vLLM sends the following 2D array:

b j=0 j=1 j=2
0 8190 8191 8192
1 1498 1499 1500
2 2998 2999 3000
3 698 699 700

The kernels read the above 2D array as 1D and get the context_lens [8190, 8191, 8192, 1498]. The fix uses the row length (next_n) as the stride and reads the last entry of each row, which gives [8192, 1500, 3000, 700].

What changes

  • Each kernel reads sequence b's length at b * stride + stride - 1.
    • 1D [B]: stride is 1, so this is context_lens[b], the same load as today.
    • 2D (B, n): stride is n, so this is the last entry of row b, which is the full sequence length.
  • The per-row causal mask is still built from that one length, as before.
  • New ContextLenStride constexpr, default 1, in the Triton kernel, the varctx schedule and stage1, and in the three Gluon kernels. The 1D path compiles to the same code as before.
  • The wrappers pick the stride from the tensor's rank, and raise ValueError for anything else:
    • a context_lens that is not int32, or not on the query's device (the schedule, which takes no query, requires a GPU tensor and allocates its output on that tensor's device).
    • a non-contiguous context_lens of either rank. It is rejected rather than copied, so there is no hidden allocation per call. Before, a strided [B] (for example table[:, -1]) was read as if it were dense and gave wrong lengths.
    • a row count other than B, or a column count other than 1 or next_n. A short table made the last programs read past the tensor, a (B, 0) table made them read before its start, and a per-token [B * next_n] vector or a (B, n) with n != next_n read the wrong lengths.
  • The Triton stage1, varctx schedule and main kernels carry ContextLenStride in their make_kernel_repr names, so the stride-1 and stride-n builds are told apart in traces.
  • Persistent mode (PersistentSchedule, from [Triton/Gluon] [Bugfix] [Perf] Fix non-preshuffle MQA paging and large KV offsets, retune the decode grid, and cut plain-path instruction count #5614): the kernels read each row's length from the schedule, so context_lens is not checked there, and deepgemm_fp8_paged_mqa_logits_persistent_schedule takes a (B, 1) or (B, next_n) table by its last column.
  • AOT Gluon (Triton < 3.4): a stride other than 1 gets a different kernel name, so a missing prebuilt binary fails loudly instead of running the 1D kernel.
  • The ragged-K variants use prefix_sum_context_lens and are not touched.

Backward compatibility

Callers that pass a contiguous 1D context_lens today, including ATOM and SGLang with MTP, are not affected.

  • [B] with Q [B, next_n, ...]: unchanged. ATOM's sparse indexer uses this.
  • [num_tokens] with Q [num_tokens, 1, ...]: unchanged. ATOM's DeepSeek-V4 indexer and SGLang's AITER wrapper use this.
  • (B, 1) behaves exactly like [B].
  • A contiguous (B, next_n) table is the only new input. vLLM already keeps its decode seq_lens contiguous for this.
  • A strided, non-int32 or off-device context_lens now raises ValueError instead of silently giving wrong lengths.

Tests

New op_tests/triton_tests/attention/test_pa_mqa_logits_2d_context_lens.py, one case per entry point: Gluon, Gluon preshuffle, the varctx schedule and kernel, the persistent schedule and kernel, the Triton fallback (Gluon turned off for that case) and stage1. Mixed lengths (3000, 257, 64, 3), next_n=3, default tuning.

  • A (B, next_n) table and a (B, 1) table must give exactly the same logits as the 1D lengths, and the varctx schedule must be identical for both.
  • A [B] or table with too few or too many rows, no columns or a column count other than next_n, a strided [B], a non-contiguous (B, n), an int64 table and a CPU table must raise ValueError.
  • gfx942 and gfx950 run every case. gfx1250 runs the preshuffle case (its base kernel needs KVBlockSize=1 and it ignores VarCtxSchedule), with the arch-aware shuffle_weight.

Results

MI355X, Triton 3.8, upstream main at 3b82abe81 plus this change:

path B next_n 1D µs 2D µs
Gluon preshuffle 16 3 10.02 10.01
Gluon preshuffle 128 5 70.50 70.00
  • Not tested: gfx1250 and AOT Gluon (needs Triton < 3.4); no hardware for either here.

Found while testing (not fixed here)

stage1 and the Gluon preshuffle varctx kernel write whole tail tiles past the end of the output when max_model_len is not a multiple of the tile: up to ChunkK columns for stage1 and up to KVBlockSize for varctx. Inside the tensor that lands on the next row's columns and races with its own writes, which is what #6153 saw as run-to-run nondeterminism; on the last row it writes past the end of out_logits. Known bug, to be fixed in a separate PR. Impact is low: it needs a max_model_len that is not a multiple of 64/256 plus a nearly full request, and vLLM's GLM-5 setting (258048 = 1008 x 256) is not affected. The new test keeps the row width a multiple of 256 until then.

@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 6451 --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.

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 validator accepts incompatible int64 inputs, and several modified kernel paths and gfx1250 remain uncovered.

5 open findings
What changed in this PR

Adds 2D context-length support to paged MQA logits while preserving 1D compatibility.

Changes:

  • Reads each row’s final context length using a compile-time stride.
  • Validates context-length layout and dimensions.
  • Adds 2D equivalence and invalid-input tests.
File Description
aiter/​ops/​triton/​attention/​pa_mqa_logits.py Validates inputs and dispatches stride-aware kernels.
aiter/​ops/​triton/​_triton_kernels/​attention/​pa_mqa_logits.py Adds stride-aware Triton context-length loads.
aiter/​ops/​triton/​gluon/​pa_mqa_logits.py Adds stride-aware Gluon context-length loads.
op_tests/​test_pa_mqa_logits_offset.py Tests 2D tables and malformed layouts.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread op_tests/test_pa_mqa_logits_offset.py Resolved
Comment thread op_tests/test_pa_mqa_logits_offset.py Resolved
Comment thread op_tests/test_pa_mqa_logits_offset.py Resolved
Comment thread op_tests/test_pa_mqa_logits_offset.py Resolved
Copilot AI balanced review requested due to automatic review settings October 12, 2026 21:41

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 schedule buffer is allocated on the default GPU instead of the context tensor’s device.

1 open finding
5 resolved since last review

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 12, 2026 21:48

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 new stride-specific AOT binary selection remains untested because all AOT Gluon cases are skipped.

0 open findings

1 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Medium severity Add AOT test coverage for Gluon specialization naming

aiter/​ops/​triton/​attention/​pa_mqa_logits.py:460

The new AOT specialization naming is not covered: every Gluon case in the added test skips when enable_jit_gluon_pa_mqa_logits_kernel is false, which is precisely the AOT configuration. A regression here could select or fail to locate the intended stride-specific binary without CI detecting it. Add a unit-level assertion for the generated _S{ContextLenStride} metadata path or an AOT integration case.

🧠 Review effort: Balanced

@zufayu
zufayu requested review from a team and vgokhale October 13, 2026 01:40
@azaidy
azaidy requested a review from k50112113 October 13, 2026 17:08
@azaidy azaidy assigned k50112113 and unassigned vgokhale Oct 13, 2026

@samremes samremes 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.

Mostly minor nits on docs, validation and tests; no blockers from my side.

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

Cross-architecture GPU execution and legacy AOT compatibility remain unverified, requiring final human review.

1 open finding

🧠 Review effort: Balanced

…tLenStride

A [B'] with B' < B made the last programs read past the tensor. The
stage1, varctx schedule and Triton kernels now carry ContextLenStride in
their repr names, so stride-1 and stride-n builds are told apart.
The Gluon kernels take context_len_ptr as *i32, so an int64 table gave
wrong lengths; context_lens must now be int32 on the query's device.

Move the 2D context_lens test to op_tests/triton_tests/attention and run
it for Gluon, Gluon preshuffle (also gfx1250), the varctx schedule and
kernel, the Triton fallback and stage1, without tuning overrides. The
output row width is a multiple of ChunkK: stage1 and the varctx kernel
write whole ChunkK tiles, so a narrower row is overwritten by the tail of
the row before it, which is what made those two paths look
nondeterministic.
…ext_lens

More than B rows (a per-token [B*next_n] vector) or a column count other
than next_n read the wrong lengths. The validator's comment becomes a
docstring that states the contract, and the test describes the stage1 and
varctx tail-tile overrun as the known bug it is.
… path

In persistent mode the kernels read each row's length from
PersistentSchedule, so context_lens is not checked there. The persistent
schedule builder takes a (B, 1) or (B, next_n) table by its last column.
Copilot AI balanced review requested due to automatic review settings October 14, 2026 20:39
@amd-sriram
amd-sriram force-pushed the rocm/triton-paged-mqa-logits-2d-context-lens branch from 61fa67e to 1002538 Compare October 14, 2026 20:39

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 new context-stride parameter is missing from the legacy AOT stub and launch signatures.

2 open findings

🧠 Review effort: Balanced

@samremes samremes 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.

LGTM. The contract, the exact-B and column checks, and the overrun wording match what we asked for.

@k50112113 k50112113 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.

LGTM

@azaidy
azaidy merged commit a5b7233 into ROCm:main Oct 20, 2026
amd-sriram added a commit to amd-sriram/aiter that referenced this pull request Oct 30, 2026
Dispatch deliberately does not key on context length; say so up front and at the loader, where the context_len column is free text that is never parsed (only the tuner reads it). Both kernels read the (B, next_n) table vLLM builds since ROCm#6451 and ROCm#6450, so the contract now lists it.
samremes pushed a commit that referenced this pull request Nov 3, 2026
…DSL table (#6140)

* [Triton][FlyDSL] Add aiter.paged_mqa_logits with a tuned Gluon/FlyDSL table

Picks the paged MQA logits backend and its launch knobs per shape from paged_mqa_logits_tuned.csv. Adds the tuner and op test, and gfx950 rows for the GLM-5 indexer.

Signed-off-by: Sriram Kumar <[email protected]>

* [Triton][FlyDSL] Move paged_mqa_logits next to fused_moe, GLM-5 rows to model_configs

Signed-off-by: Sriram Kumar <[email protected]>

* [Triton][FlyDSL] Look up paged_mqa_logits on the live GPU

get_gfx() follows GPU_ARCHS and skipped the tuned row.

* [Triton][FlyDSL] Drop context_len from the paged_mqa_logits merge key

The generic untuned header is the dedup key. Two rows that differ only
in context length now collide.

* fix: keep paged_mqa_logits run_config off the merge-key header

The generic untuned file no longer has context_len. pre_process still
runs on --run_config and needs that column.

* [FlyDSL] Check the live GPU in the gfx950 paged MQA logits kernel

get_gfx() follows GPU_ARCHS, so the kernel raised on gfx950 with
GPU_ARCHS=gfx942 once the dispatcher picked FlyDSL.

* test: run the shipped-row check with GPU_ARCHS set at process start

Setting GPU_ARCHS mid-process did not reach get_gfx(); the child process
also launches the real kernel.

* [FlyDSL] Fall back to the tuned Gluon knobs when FlyDSL cannot run

FlyDSL rows now store the winning Gluon ChunkK and WavePerEU.
GLM-5 gfx950 table retuned.

* test: check the dispatched paged_mqa_logits config without compiling

The shipped-row check records the config and no longer launches a kernel.

* ci: add paged_mqa_logits to the manual tuning recipes

* [Triton][FlyDSL] Pass context_lens through to the paged MQA logits kernels

Drop the 2D context_lens shim; #6153 adds 2D support in the kernels.

* [Triton][FlyDSL] Tune the GLM-5 paged_mqa_logits rows at 8k and 60k context

Matches the benchmark input lengths (8192 and 60000).

* Document the paged_mqa_logits contract and the context_len column

State the tensors the front-end takes instead of pointing at the Gluon
wrapper, and say that context_len is tuning metadata dispatch does not
read.

* Default the paged_mqa_logits tuner context lengths to 8192;60000

A row with no context_len (a generic-schema untuned CSV, or an empty cell) got an empty context list, so the tuner timed nothing and reported the shape as failed. Such rows now use --context_len, which defaults to the lengths the shipped table was tuned over; context_len stays out of the collision-key header.

* Exit nonzero when paged_mqa_logits tuning errors or is interrupted

TunerCommon.run() catches the exception and calls tune_summary with status Error or Interrupted. With no failed row recorded, the script exited 0 and op_tune.sh reported a pass.

* Reject a strided context_lens in paged_mqa_logits for both backends

Gluon already rejects a non-contiguous context_lens, but the FlyDSL wrapper reshapes it without removing the stride and the kernel reads it as dense, so a table[:, -1] view gave wrong causal bounds on the shipped B=64, next_n=8 FlyDSL row. run_paged_mqa_logits, which the op and the tuner share, now raises ValueError for it; the test covers that view.

* Document context_len as provenance and accept (B, next_n) context_lens

Dispatch deliberately does not key on context length; say so up front and at the loader, where the context_len column is free text that is never parsed (only the tuner reads it). Both kernels read the (B, next_n) table vLLM builds since #6451 and #6450, so the contract now lists it.

* Test (B, next_n) context_lens through paged_mqa_logits and each backend

Uses the shipped B=64, next_n=8 row, which dispatches to FlyDSL, and checks the op, Gluon and FlyDSL against the reference.

* Log each context's gap to its own best in the paged_mqa_logits tuner

The pick minimises the geomean over the row's contexts, which can hide a context where it is well off that context's best. Print the pick's time, the per-context best and the loss for every context.

* ci: upload model_configs tuned CSVs in the tuning artifact

The paged_mqa_logits job writes aiter/configs/model_configs/paged_mqa_logits_tuned_glm5.csv, which aiter/configs/*.csv does not match.

* Test CUDA graph replay and elementwise accuracy in paged_mqa_logits

Capture the op, Gluon and FlyDSL in a CUDA graph at 1024 tokens, change context_lens to 512 in place and replay: the output must match the reference at 512 and leave columns past it untouched, which fails if a launch reads the lengths on the host. The 2D context_lens check now also runs checkAllclose with the main test's tolerances.

---------

Signed-off-by: Sriram Kumar <[email protected]>
amd-sriram added a commit to amd-sriram/vllm that referenced this pull request Nov 10, 2026
AITER's Gluon/Triton paged MQA logits kernels read the (B, next_n)
context-length table since ROCm/aiter#6451 (in v0.1.27), so the per-call
copy of its last column that vllm-project#59420 added is no longer needed.

Signed-off-by: Sriram Kumar <[email protected]>
amd-sriram added a commit to amd-sriram/vllm that referenced this pull request Nov 10, 2026
…s to AITER as is

vllm-project#59420 copied the last column of the (B, next_n) context-length table
before AITER's paged MQA logits because AITER could not read the table.
ROCm/aiter#6451, in the AITER vLLM pins, reads it, so remove the copy and
the helper's unit test. AITER covers the table in its own op test
(test_pa_mqa_logits_2d_context_lens.py).

Signed-off-by: Sriram Kumar <[email protected]>
shantipriya-amd pushed a commit to shantipriya-amd/aiter that referenced this pull request Nov 18, 2026
…DSL table (ROCm#6140)

* [Triton][FlyDSL] Add aiter.paged_mqa_logits with a tuned Gluon/FlyDSL table

Picks the paged MQA logits backend and its launch knobs per shape from paged_mqa_logits_tuned.csv. Adds the tuner and op test, and gfx950 rows for the GLM-5 indexer.

Signed-off-by: Sriram Kumar <[email protected]>

* [Triton][FlyDSL] Move paged_mqa_logits next to fused_moe, GLM-5 rows to model_configs

Signed-off-by: Sriram Kumar <[email protected]>

* [Triton][FlyDSL] Look up paged_mqa_logits on the live GPU

get_gfx() follows GPU_ARCHS and skipped the tuned row.

* [Triton][FlyDSL] Drop context_len from the paged_mqa_logits merge key

The generic untuned header is the dedup key. Two rows that differ only
in context length now collide.

* fix: keep paged_mqa_logits run_config off the merge-key header

The generic untuned file no longer has context_len. pre_process still
runs on --run_config and needs that column.

* [FlyDSL] Check the live GPU in the gfx950 paged MQA logits kernel

get_gfx() follows GPU_ARCHS, so the kernel raised on gfx950 with
GPU_ARCHS=gfx942 once the dispatcher picked FlyDSL.

* test: run the shipped-row check with GPU_ARCHS set at process start

Setting GPU_ARCHS mid-process did not reach get_gfx(); the child process
also launches the real kernel.

* [FlyDSL] Fall back to the tuned Gluon knobs when FlyDSL cannot run

FlyDSL rows now store the winning Gluon ChunkK and WavePerEU.
GLM-5 gfx950 table retuned.

* test: check the dispatched paged_mqa_logits config without compiling

The shipped-row check records the config and no longer launches a kernel.

* ci: add paged_mqa_logits to the manual tuning recipes

* [Triton][FlyDSL] Pass context_lens through to the paged MQA logits kernels

Drop the 2D context_lens shim; ROCm#6153 adds 2D support in the kernels.

* [Triton][FlyDSL] Tune the GLM-5 paged_mqa_logits rows at 8k and 60k context

Matches the benchmark input lengths (8192 and 60000).

* Document the paged_mqa_logits contract and the context_len column

State the tensors the front-end takes instead of pointing at the Gluon
wrapper, and say that context_len is tuning metadata dispatch does not
read.

* Default the paged_mqa_logits tuner context lengths to 8192;60000

A row with no context_len (a generic-schema untuned CSV, or an empty cell) got an empty context list, so the tuner timed nothing and reported the shape as failed. Such rows now use --context_len, which defaults to the lengths the shipped table was tuned over; context_len stays out of the collision-key header.

* Exit nonzero when paged_mqa_logits tuning errors or is interrupted

TunerCommon.run() catches the exception and calls tune_summary with status Error or Interrupted. With no failed row recorded, the script exited 0 and op_tune.sh reported a pass.

* Reject a strided context_lens in paged_mqa_logits for both backends

Gluon already rejects a non-contiguous context_lens, but the FlyDSL wrapper reshapes it without removing the stride and the kernel reads it as dense, so a table[:, -1] view gave wrong causal bounds on the shipped B=64, next_n=8 FlyDSL row. run_paged_mqa_logits, which the op and the tuner share, now raises ValueError for it; the test covers that view.

* Document context_len as provenance and accept (B, next_n) context_lens

Dispatch deliberately does not key on context length; say so up front and at the loader, where the context_len column is free text that is never parsed (only the tuner reads it). Both kernels read the (B, next_n) table vLLM builds since ROCm#6451 and ROCm#6450, so the contract now lists it.

* Test (B, next_n) context_lens through paged_mqa_logits and each backend

Uses the shipped B=64, next_n=8 row, which dispatches to FlyDSL, and checks the op, Gluon and FlyDSL against the reference.

* Log each context's gap to its own best in the paged_mqa_logits tuner

The pick minimises the geomean over the row's contexts, which can hide a context where it is well off that context's best. Print the pick's time, the per-context best and the loss for every context.

* ci: upload model_configs tuned CSVs in the tuning artifact

The paged_mqa_logits job writes aiter/configs/model_configs/paged_mqa_logits_tuned_glm5.csv, which aiter/configs/*.csv does not match.

* Test CUDA graph replay and elementwise accuracy in paged_mqa_logits

Capture the op, Gluon and FlyDSL in a CUDA graph at 1024 tokens, change context_lens to 512 in place and replay: the output must match the reference at 512 and leave columns past it untouched, which fails if a launch reads the lengths on the host. The 2D context_lens check now also runs checkAllclose with the main test's tolerances.

---------

Signed-off-by: Sriram Kumar <[email protected]>
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.

6 participants