Skip to content

Use flyc.compile for MOE kernel fast dispatch#3607

Open
xudoyuan wants to merge 1 commit into
mainfrom
moe_flyc_compile
Open

Use flyc.compile for MOE kernel fast dispatch#3607
xudoyuan wants to merge 1 commit into
mainfrom
moe_flyc_compile

Conversation

@xudoyuan
Copy link
Copy Markdown
Contributor

@xudoyuan xudoyuan commented Jun 8, 2026

Replace exe(*args) with flyc.compile-based caching: first call compiles and executes via flyc.compile(), subsequent calls use the cached CompiledFunction for ~5µs dispatch instead of full JitFunction overhead.

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

@xudoyuan xudoyuan requested a review from a team June 8, 2026 09:40
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2026

🏷️ 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:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
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 3607 --add-label <label>

Replace exe(*args) with flyc.compile-based caching: first call compiles
and executes via flyc.compile(), subsequent calls use the cached
CompiledFunction for ~5µs dispatch instead of full JitFunction overhead.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@xudoyuan xudoyuan force-pushed the moe_flyc_compile branch from 4ad4677 to 301cabb Compare June 8, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants