Skip to content

[FlyDSL] Read (B, next_n) context lengths in the paged MQA logits kernel - #6450

Merged
coderfeli merged 9 commits into
ROCm:mainfrom
amd-sriram:rocm/flydsl-paged-mqa-logits-2d-context-lens
Oct 28, 2026
Merged

coderfeli merged 9 commits into
ROCm:mainfrom
amd-sriram:rocm/flydsl-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 FlyDSL kernel only reads a 1D [B] vector, so with MTP on, flydsl_fp8_paged_mqa_logits fails with a reshape error:

RuntimeError: shape '[4]' is invalid for input of size 12

This PR lets the FlyDSL paged_mqa_logits kernel accept the 2D context_lens that vLLM sends with MTP, while staying backward compatible with the 1D format.

Split out of #6153 as requested in review (one backend per PR); the Triton and Gluon change is in #6451. The two PRs touch different files and can merge in either order.

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

  • The stride is a build-time constant. The kernel reads request b's length at b * ctx_stride + ctx_stride - 1; stride 1 builds the pre-PR kernel (same code and name), stride n builds a variant named ..._cs{n}, and _compile() caches one build per stride.
    • 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 wrapper picks the stride from the tensor's rank, and raises ValueError unless context_lens is a contiguous int32 [B] or (B, n) on the same device as q_fp8, with exactly B rows and n equal to 1 or next_n:
    • a non-contiguous input is rejected rather than copied, so there is no hidden allocation per call. Before, reshape silently copied some strided inputs and kept others as strided views that the kernel read as dense.
    • a (B, 0) table would have made the kernel read before the start of the tensor, and a (B, n) with n other than next_n read the wrong column as the length.
    • a wrong row count raised a RuntimeError from reshape before; it is now a ValueError with the expected shape.
    • the kernel reads context_lens as int32 words, so an int64 table gave wrong lengths before.

Backward compatibility

  • A contiguous [B] is unchanged, and (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.

Tests

In op_tests/test_flydsl_fp8_paged_mqa_logits.py:

  • The context_lens layout is a new axis of the existing sweep, -c/--ctx_lens (default 1d 2d). For 2d, FlyDSL gets the (B, next_n) table vLLM builds, is graded against the same fp32 reference as 1d, and is timed next to it in the summary table.
  • test_fp8_paged_mqa_logits_mixed_context_lens: B=5, next_n=3, distinct lengths and one empty (CUDA-graph padding) request, graded against the fp32 reference for 1d and 2d, with and without SplitKV. It fails if the kernel reads row 0's length for every request.
  • test_fp8_paged_mqa_logits_bad_context_lens: too few or too many rows, no columns, a column count other than next_n, an int64 table, a CPU table, a strided [B] and a non-contiguous (B, n) must raise ValueError.

Results

MI355X, Triton 3.8, FlyDSL 0.3.4.1, upstream main at 9fd025efd plus this change:

  • python op_tests/test_flydsl_fp8_paged_mqa_logits.py: all tables pass. In the default sweep (batch 1-8, next_n 1-8, 1k context) 2d has the same error against the reference as 1d in every case, and its kernel time is within +0.1% to +1.9% of 1d.
  • The new test fails on main without this change, with the reshape error above.
  • black and ruff (0.16.0) are clean.
  • Kernel time at the GLM-5 indexer shape with 8k context: 1D matches the kernel on main (e.g. B=16, next_n=3: 30.6 / 30.2 us vs 30.7 / 30.2 us over two runs), and 2D stays within about 1% of 1D.
B next_n main 1D µs 1D µs 2D µs
16 3 30.70 30.62 30.80
64 3 33.20 33.64 33.73
128 5 63.63 63.73 63.37

@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 6450 --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 wrapper accepts unsupported context-length dtypes and devices that the kernel may misinterpret.

2 open findings
What changed in this PR

Extends the gfx950 FlyDSL paged MQA logits path to consume 2D per-row context-length tables.

Changes:

  • Adds runtime row-stride indexing while preserving 1D behavior.
  • Validates context-length layout and adds 2D/rejection tests.
File Description
aiter/​ops/​flydsl/​kernels/​mqa_logits/​fp8_paged_mqa_logits_gfx950.py Adds 2D context-length handling.
op_tests/​test_flydsl_fp8_paged_mqa_logits.py Tests equivalent outputs and invalid layouts.

🧠 Review effort: Balanced


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

The kernel reads context_lens as int32 words, so an int64 table gave wrong
lengths. Compare the 2D and 1D logits with checkAllclose at zero tolerance.
Copilot AI balanced review requested due to automatic review settings October 12, 2026 21:03

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 runtime GPU kernel change needs head-matched gfx950 validation before approval.

0 open findings

2 resolved since last review

🧠 Review effort: Balanced

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

GPU kernel correctness and performance require final human review because no head-matched deterministic validation report was available.

0 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.

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

…lumns

A (B, n) table with n other than next_n read the wrong column as the
length.
Copilot AI balanced review requested due to automatic review settings October 14, 2026 17: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

Independent GPU correctness and performance validation was unavailable, so final human verification remains necessary.

1 open finding

🧠 Review effort: Balanced

… sweep

-c/--ctx_lens (default 1d 2d) runs the 2D table through the existing
sweep, graded against the fp32 reference and timed next to 1D. The
rejection checks stay as a small separate test.
Copilot AI balanced review requested due to automatic review settings October 14, 2026 17:45

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 GPU indexing change needs stronger regression coverage and independently confirmed target-hardware validation.

2 open findings

🧠 Review effort: Balanced

Stride 1 builds the pre-2D kernel (same code and name); stride n builds a
variant named ..._cs{n}. _compile() caches one build per stride.

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

No blocking defects were identified, but gfx950 correctness and performance results were not independently verified.

1 open finding
1 resolved since last review

🧠 Review effort: Balanced

…n range

With next_n_lens, row j attends to [0, L_b - n_b + 1 + j) where n_b is
min(next_n_lens[b], next_n), not the padded next_n.
Copilot AI balanced review requested due to automatic review settings October 21, 2026 12:11

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

Independent gfx950 validation was unavailable, so the compiled stride variants need human confirmation of correctness and performance.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@amd-sriram

Copy link
Copy Markdown
Contributor Author

@samremes My last pushes (the mixed-length test and a docstring fix) dismissed your approval. Could you take another look?

Copilot AI balanced review requested due to automatic review settings October 22, 2026 20:48
@amd-sriram
amd-sriram requested a review from samremes October 22, 2026 20:50

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 reported GPU results need independent correctness and latency confirmation against the repository-pinned FlyDSL version before human approval.

No open issues 🎉

Review effort: Balanced

samremes
samremes previously approved these changes Oct 23, 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.

LGTM. The mixed-length case and the live-row docstring address the remaining comments. The merge from main only brings in the page_i + 1 cleanup from #6380; the 2D context_lens contract is unchanged.

Copilot AI balanced review requested due to automatic review settings October 24, 2026 09:28
@amd-sriram

Copy link
Copy Markdown
Contributor Author

@samremes Merged main to fix a conflict with #6863 (test file only, no kernel change); the test passes on MI355 with both 1D and 2D context_lens. The merge dismissed your approval, could you re-approve?

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

Human confirmation of compilation, correctness, and performance evidence on the target GPU with the pinned FlyDSL version is still needed.

No open issues 🎉

Review effort: Balanced

@amd-sriram
amd-sriram requested a review from samremes October 27, 2026 11:05

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

Review got dismissed by merging main.

@coderfeli
coderfeli merged commit 48295fa into ROCm:main Oct 28, 2026
63 checks passed
vpietila-amd pushed a commit that referenced this pull request Oct 28, 2026
…nel (#6450)

* [FlyDSL] Read (B, next_n) context lengths in the paged MQA logits kernel

* [FlyDSL] Reject non-int32 or off-device context_lens in paged MQA logits

The kernel reads context_lens as int32 words, so an int64 table gave wrong
lengths. Compare the 2D and 1D logits with checkAllclose at zero tolerance.

* [FlyDSL] Document context_lens in the wrapper; require 1 or next_n columns

A (B, n) table with n other than next_n read the wrong column as the
length.

* [FlyDSL] Make the context_lens layout an axis of the paged MQA logits sweep

-c/--ctx_lens (default 1d 2d) runs the 2D table through the existing
sweep, graded against the fp32 reference and timed next to 1D. The
rejection checks stay as a small separate test.

* [FlyDSL] Make the context_lens stride a build-time constant

Stride 1 builds the pre-2D kernel (same code and name); stride n builds a
variant named ..._cs{n}. _compile() caches one build per stride.

* [FlyDSL] Test paged MQA logits 2D context_lens with mixed lengths

One case with B=5, next_n=3, distinct lengths and an empty (CUDA-graph
padding) request, graded against the fp32 reference for 1D and 2D, with
and without SplitKV. The 2D table clamps at 0 like vLLM.

* [FlyDSL] Document the live row count in the paged MQA logits attention range

With next_n_lens, row j attends to [0, L_b - n_b + 1 + j) where n_b is
min(next_n_lens[b], next_n), not the padded next_n.
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.
solinzby1 pushed a commit that referenced this pull request Nov 2, 2026
…nel (#6450)

* [FlyDSL] Read (B, next_n) context lengths in the paged MQA logits kernel

* [FlyDSL] Reject non-int32 or off-device context_lens in paged MQA logits

The kernel reads context_lens as int32 words, so an int64 table gave wrong
lengths. Compare the 2D and 1D logits with checkAllclose at zero tolerance.

* [FlyDSL] Document context_lens in the wrapper; require 1 or next_n columns

A (B, n) table with n other than next_n read the wrong column as the
length.

* [FlyDSL] Make the context_lens layout an axis of the paged MQA logits sweep

-c/--ctx_lens (default 1d 2d) runs the 2D table through the existing
sweep, graded against the fp32 reference and timed next to 1D. The
rejection checks stay as a small separate test.

* [FlyDSL] Make the context_lens stride a build-time constant

Stride 1 builds the pre-2D kernel (same code and name); stride n builds a
variant named ..._cs{n}. _compile() caches one build per stride.

* [FlyDSL] Test paged MQA logits 2D context_lens with mixed lengths

One case with B=5, next_n=3, distinct lengths and an empty (CUDA-graph
padding) request, graded against the fp32 reference for 1D and 2D, with
and without SplitKV. The 2D table clamps at 0 like vLLM.

* [FlyDSL] Document the live row count in the paged MQA logits attention range

With next_n_lens, row j attends to [0, L_b - n_b + 1 + j) where n_b is
min(next_n_lens[b], next_n), not the padded next_n.
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]>
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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants