Skip to content

[Triton/Gluon] Add MOE Layout LRU cache and tunning - #6338

Merged
k50112113 merged 3 commits into
mainfrom
shaoclee/moe_layout_lru_cache
Oct 13, 2026
Merged

k50112113 merged 3 commits into
mainfrom
shaoclee/moe_layout_lru_cache

Conversation

@k50112113

Copy link
Copy Markdown
Contributor

No description provided.

@k50112113
k50112113 requested a review from a team October 9, 2026 18:49
@github-actions

github-actions Bot commented Oct 9, 2026

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: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: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
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 6338 --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

Both newly tuned shapes omit five required dispatch buckets and fall back to generic configurations.

1 open finding
What changed in this PR

Adds cached gfx1250 Gluon layout construction and additional A4W4 MoE tuning entries.

Changes:

  • Caches prefill and decode layout generation using hashable gather-index metadata.
  • Adds two gfx1250 Gluon tuning entries.
  • Preserves gather-index layouts for uint16 and int32.
File Description
aiter/​ops/​triton/​moe/​moe_op_gemm_a4w4.py Converts gather tensors into cacheable metadata.
aiter/​ops/​triton/​_gluon_kernels/​gfx1250/​moe/​moe_op_gemm_a4w4.py Adds layout caches and consumes gather metadata.
aiter/​ops/​triton/​configs/​gfx1250/​gluon/​moe/​a4w4/​DEFAULT.json Adds two xlarge tuning entries.

🧠 Review effort: Balanced


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

@azaidy
azaidy self-requested a review October 12, 2026 16:17
@azaidy azaidy assigned azaidy and unassigned Boss2002n Oct 12, 2026

@azaidy azaidy 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!

@k50112113
k50112113 merged commit eb00ebb into main Oct 13, 2026
@k50112113
k50112113 deleted the shaoclee/moe_layout_lru_cache branch October 13, 2026 14:11
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.

4 participants