FlashInfer is a library and kernel generator that supplies GPU operations used to run large language model inference, including attention, matrix multiplication, and mixture-of-experts computations. It helps engineers build and optimize LLM serving systems across supported GPU hardware and backend implementations. Its catalogue add-ons provide skills and instructions for working with FlashInfer.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add flashinfer-ai/flashinfer --skill cutedsl_megamoegit clone --depth 1 https://github.com/flashinfer-ai/flashinferWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/flashinfer-ai/flashinfer/cutedsl_megamoe)<a href="https://agentmods.dev/skills/flashinfer-ai/flashinfer/cutedsl_megamoe"><img src="https://agentmods.dev/badge/skills/flashinfer-ai/flashinfer/cutedsl_megamoe/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/flashinfer-ai/flashinfer/cutedsl_megamoe"><img src="https://agentmods.dev/badge/skills/flashinfer-ai/flashinfer/cutedsl_megamoe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Tool Misuse · line 67 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02509 |
| Opus 5 | $0.00000 | $0.01255 |
| Sonnet 5 | $0.00000 | $0.00502 |
| Haiku 4.5 | $0.00000 | $0.00251 |
Grade C, and why
cutedsl_megamoe scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf flashinfer/moe_ep/kernel_src/cutedsl_megamoe/src/{common,src,moe_bf16_glu,moe_mxfp8_glu,moe_nvfp4_swapab} Copies of this mod
1 near-identical copy found in the catalogue:
- cadence-tldr — 88% identical, 142 lines differ
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Updating the CuTeDSL MegaMoE kernel src
Layout
kernel_src/cutedsl_megamoe/
├── src/ ← VERBATIM kernel-team drop; NEVER edit or add files here
│ ├── common/
│ ├── src/ ← CuTeDSL core src (bootstrap, dispatch, sym_buffer, …)
│ ├── moe_mxfp8_glu/ ← MXFP8 kernel implementation
│ ├── moe_bf16_glu/ ← BF16 kernel implementation
│ └── moe_nvfp4_swapab/ ← NVFP4 kernel implementation
├── __init__.py ← public API for moe_ep; talks ONLY to shim/ (our code)
├── shim/ ← thin adapters over src/ (our code) — ALL adaptation lives here
│ ├── _paths.py ← adds sibling src/ to sys.path (bootstrap_paths); shim glue
│ ├── comm.py ← dist bootstrap, sym heap, compile state, resolve_gate_up_clamp
│ ├── nvfp4.py ← NVFP4 frontend + symm-buffer/launch wrappers (self-contained)
│ ├── mxfp8.py ← MXFP8 frontend + symm-buffer/launch wrappers (self-contained)
│ ├── bf16.py ← BF16 frontend + symm-buffer/launch wrappers (self-contained)
│ ├── kernel_helpers.py ← SINGLE re-export point for raw-kernel helpers/constants/
│ │ reference the FI backend + tests need (drop-audit point)
│ ├── tuner.py ← kernel tuning knobs (tactic enumeration + config apply);
│ │ mirrors tester/solvers/inference_solver knob taxonomy
│ ├── autotune.py ← online (warmup-time) COLLECTIVE knob autotuning:
│ │ times a curated candidate set on the live problem,
│ │ all-reduces (MAX) across ranks, applies the winner
│ │ (backends trigger it via config knobs="auto")
│ └── correctness.py ← standalone NVFP4 smoke runner (not used by moe_ep)
├── SKILL.md ← this file (drop-update workflow)
└── TUNING.md ← tuning surface + measured profiles + benchmarking
methodology (read before re-tuning or comparing
against deep_gemm / the kernel-repo tester)
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- __init__.py 4.9 KB runs code
- ACKNOWLEDGEMENT.md 1.3 KB
- shim/__init__.py 6.6 KB runs code
- shim/__main__.py 358 B runs code
- shim/_paths.py 2.3 KB runs code
- shim/autotune.py 14 KB runs code
- shim/bf16.py 18 KB runs code
- shim/comm.py 7.6 KB runs code
- shim/correctness.py 5.6 KB runs code
- shim/kernel_helpers.py 3.3 KB runs code
- shim/knob_cache.py 8.8 KB runs code
- shim/mxfp8.py 48 KB runs code
- shim/nvfp4.py 60 KB runs code
- shim/quant_stage.py 11 KB runs code
- shim/tuner.py 12 KB runs code
- src/common/__init__.py 145 B runs code
- src/common/host_utils.py 7.2 KB runs code
- src/common/megamoe_constants.py 900 B runs code
- src/common/moe_utils.py 9.6 KB runs code
- src/moe_bf16_glu/__init__.py 159 B runs code
- src/moe_bf16_glu/custom_ext_bf16.py 4.0 KB runs code
- src/moe_bf16_glu/epilogue_bf16.py 6.5 KB runs code
- src/moe_bf16_glu/kernel_bf16_glu_fc12.py 80 KB runs code
- src/moe_bf16_glu/mega_reference_bf16.py 59 KB runs code
- src/moe_bf16_glu/mega_runner.py 34 KB runs code
- src/moe_bf16_glu/megamoe_kernel_bf16.py 35 KB runs code
- src/moe_bf16_glu/run_functional_tests.sh 7.8 KB runs code
- src/moe_bf16_glu/run_mega_tests.sh 22 KB runs code
- src/moe_bf16_glu/runner_common.py 1.0 KB runs code
- src/moe_bf16_glu/runner_fc12.py 36 KB runs code
- src/moe_mxfp8_glu/__init__.py 160 B runs code
- src/moe_mxfp8_glu/epilogue_mxfp8.py 63 KB runs code
- src/moe_mxfp8_glu/kernel_mxfp8_glu_fc12.py 101 KB runs code
- src/moe_mxfp8_glu/mega_reference_mxfp8.py 10 KB runs code
- src/moe_mxfp8_glu/mega_runner.py 39 KB runs code
- src/moe_mxfp8_glu/megamoe_kernel_mxfp8.py 45 KB runs code
- src/moe_mxfp8_glu/run_functional_tests.sh 8.4 KB runs code
- src/moe_mxfp8_glu/run_mega_tests.sh 18 KB runs code
- src/moe_mxfp8_glu/runner_common.py 1.0 KB runs code
- src/moe_mxfp8_glu/runner_fc12.py 17 KB runs code
- src/moe_nvfp4_swapab/__init__.py 58 B runs code
- src/moe_nvfp4_swapab/benchmark_p2p.py 24 KB runs code
- src/moe_nvfp4_swapab/contract.py 16 KB runs code
- src/moe_nvfp4_swapab/custom_ext.py 34 KB runs code
- src/moe_nvfp4_swapab/dynamic_mainloop.py 13 KB runs code
- src/moe_nvfp4_swapab/epilogue_refactor.py 131 KB runs code
- src/moe_nvfp4_swapab/epilogue.py 145 KB runs code
- src/moe_nvfp4_swapab/fc1_fc2_fuse_sched.py 65 KB runs code
- src/moe_nvfp4_swapab/kernel_fc12.py 107 KB runs code
- src/moe_nvfp4_swapab/mega_reference.py 102 KB runs code
- src/moe_nvfp4_swapab/mega_runner.py 122 KB runs code
- src/moe_nvfp4_swapab/megamoe_kernel.py 66 KB runs code
- src/moe_nvfp4_swapab/moe_persistent_scheduler.py 82 KB runs code
- src/moe_nvfp4_swapab/moe_utils.py 39 KB runs code
- src/moe_nvfp4_swapab/run_functional_tests.sh 12 KB runs code
- src/moe_nvfp4_swapab/run_mega_tests.sh 17 KB runs code
- src/moe_nvfp4_swapab/runner_common.py 24 KB runs code
- src/moe_nvfp4_swapab/runner_fc12_common.py 85 KB runs code
- src/moe_nvfp4_swapab/runner_fc12.py 16 KB runs code
- src/moe_nvfp4_swapab/simulate_fc1_fc2_sched.py 15 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 138 lines · 0 tokens per session scan C 4a4f8d3f165a
cutedsl_megamoe is a skill published in the GitHub repository flashinfer-ai/flashinfer (6,370 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,509 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
cuopt-developer
Modify, build, test, debug, and contribute to NVIDIA cuOpt (C++/CUDA, Python, server, CI). Use for solver internals, PRs, DCO, and code conventions.
transform-model
Add a Hugging Face or local checkpoint to TensorRT-Model-Connect as a self-contained family, or extend the family that already owns it.
ax-cpp-ai
Use when writing C++ code with axllm for named deployment profiles, generic provider clients, model selection, OpenAI-compatible calls, Responses, Gemini, Anthropic, routers, and balancers.
ax-cpp-gen
Use when writing C++ code with axllm for AxGen programs, forward calls, indexed multi-sampling, result pickers, streaming, tools, assertions, traces, usage, and output parsing.
ax-cpp-llm
Use when writing C++ code with axllm for using the generated Ax package, factory functions, package docs, examples, and API reference.
ax-cpp-signature
Use when writing C++ code with axllm for string signatures, field descriptors, JSON schema output, validation, and typed tool argument shapes.