Skip to content

[DOC] Clean up MLA internal type usage and docs - #460

Merged
coderfeli merged 5 commits into
mainfrom
cleanup/mla-internal-types-docs
Apr 30, 2026
Merged

[DOC] Clean up MLA internal type usage and docs#460
coderfeli merged 5 commits into
mainfrom
cleanup/mla-internal-types-docs

Conversation

@coderfeli

Copy link
Copy Markdown
Collaborator

Summary

  • Clean up MLA decode kernel internal type usage while preserving the verified MLA performance profile.
  • Add a project skill for FlyDSL internal-type cleanup and update kernel authoring docs/skills to prefer fx.*, ArithValue, Vector, and range(..., init=...) patterns.
  • Document control-flow rules for const_expr(...) and local @flyc.jit dispatch around runtime helper branches.

Test plan

  • python -m py_compile kernels/mla_fwd_decode_m16x8_fp8_fp8.py
  • git diff --check
  • FLYDSL_DUMP_IR=1 FLYDSL_RUNTIME_ENABLE_CACHE=0 PYTHONPATH=python:. MLA small-shape compile; verified ASM hash c97855f56b17874e1ae389cebba408aea055d06e03a909824f5a6048ec26b47d
  • PYTHONPATH=python:. MLA perf/correctness shapes: b=1,c=128, b=4,c=2048, b=32,c=8192

Made with Cursor

Allow the fused RoPE cache launcher to reuse one compiled artifact across token counts by making only token-dependent tensors use dynamic layout.

Made-with: Cursor
Keep the public fused RoPE launcher focused on marking token-dependent tensor layouts dynamic before delegating to the internal JIT launcher.

Made-with: Cursor
Normalize the TopK gating softmax register memref construction at the call site so it matches the generated binding signature without changing the shared primitive API.

Made-with: Cursor
Prefer FlyDSL internal numeric/vector APIs in MLA and documentation while preserving the verified MLA performance profile.

Made-with: Cursor
@coderfeli coderfeli changed the title Clean up MLA internal type usage and docs [DOC] Clean up MLA internal type usage and docs Apr 29, 2026
@coderfeli
coderfeli merged commit 8eec98b into main Apr 30, 2026
11 checks passed
@coderfeli
coderfeli deleted the cleanup/mla-internal-types-docs branch April 30, 2026 00:29
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.

1 participant