pull_style_cutedsl_megakernel

pull_style_cutedsl_megakernel is a skill for Claude Code, Codex from flashinfer-ai/flashinfer. It costs 0 tokens per session (3,820 once invoked), scanned C, original, Apache-2.0.

A vendored SM90 FP8 MegaMoE kernel source tree for NVIDIA Hopper GPUs, kept as a separate backend from the SM100 tree for Blackwell GPUs. Vendored code is copied into a project at a specific upstream revision and is maintained there as its own drop.

In plain words
What is it for?
Use it when updating or working with the SM90 CuTeDSL MegaMoE kernel source, its runtime, or the path setup that selects the Hopper backend.
Why use it?
It prevents incompatible kernel trees and colliding module names from being loaded together. Independent revisions also avoid accidentally mixing files between the Hopper and Blackwell backends.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when updating or working with the SM90 CuTeDSL MegaMoE kernel source, its runtime, or the path setup that selects the Hopper backend.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flashinfer-ai/flashinfer/pull_style_cutedsl_megakernel
About the project

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.

flashinfer-ai/flashinfer · 6,779 stars · on GitHub · flashinfer.ai

Install

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.

Any agent
npx skills add flashinfer-ai/flashinfer --skill pull_style_cutedsl_megakernel
Clone the repo
git clone --depth 1 https://github.com/flashinfer-ai/flashinfer

Made for: Claude Code, Codex.

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

agentmods badge for pull_style_cutedsl_megakernel

README.md
[![agentmods](https://agentmods.dev/badge/skills/flashinfer-ai/flashinfer/pull_style_cutedsl_megakernel/github.svg)](https://agentmods.dev/skills/flashinfer-ai/flashinfer/pull_style_cutedsl_megakernel)
Your own site
<a href="https://agentmods.dev/skills/flashinfer-ai/flashinfer/pull_style_cutedsl_megakernel"><img src="https://agentmods.dev/badge/skills/flashinfer-ai/flashinfer/pull_style_cutedsl_megakernel/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.

agentmods 80×15 button for pull_style_cutedsl_megakernel

Your own site · 80×15
<a href="https://agentmods.dev/skills/flashinfer-ai/flashinfer/pull_style_cutedsl_megakernel"><img src="https://agentmods.dev/badge/skills/flashinfer-ai/flashinfer/pull_style_cutedsl_megakernel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,820 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, 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 58
    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.
  • high Tool Misuse · line 61
    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.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03820
Opus 5.5 $0.00000 $0.01528
Sonnet 5.5 $0.00000 $0.00764
Haiku 4.5 $0.00000 $0.00382

Measured 13d ago against content hash 098c569663e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

pull_style_cutedsl_megakernel 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 13d ago.

The scan reads SKILL.md. This mod also ships 58 executable files (__init__.py, shim/__init__.py, shim/_paths.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/sm90/pull_style_cutedsl_megakernel/src/{common,src,moe_nvfp4_swapab,moe_hopper_fp8,moe_hopper_bf16}
flashinfer/moe_ep/kernel_src/sm90/pull_style_cutedsl_megakernel/SKILL.md · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Updating the SM90 (Hopper) CuTeDSL MegaMoE kernel src

Provenance

This tree vendors the kernel team's SM90 FP8 MegaMoE drop — a fork of the same kernel repo that kernel_src/sm100/cutedsl_megamoe vendors (Bangyu's SM100 tree). The SM90 work (Vincent's hopper_megamoe branch) moved the shared runtime forward, so this tree duplicates common/, src/, and moe_nvfp4_swapab/ at its own revision instead of sharing the SM100 copies. The two trees are separate backends:

  • top-level module names collide (common, src, moe_nvfp4_swapab), so only one tree can be active per process — shim/_paths.bootstrap_paths raises if the sibling tree's modules are already imported. A process runs on either Hopper or Blackwell, never both, so this is not a practical limit.
  • drops are updated independently; never "sync" shared files across the trees.

Current drop: kernel repo commit c3e2c2a ("Add token-based launch heuristics for Hopper FP8 MegaMoE", 2026-08), minus commit 4f9c042. Preserve this exclusion when syncing future drops.

BF16 drop: moe_hopper_bf16/ from the kernel team's "Support Hopper MegaMoE BF16 FWD" drop (2026-09-20), copied verbatim except for the import adaptation below. The shared common/, src/ and moe_nvfp4_swapab/ were NOT re-synced from that drop: the vendored FP8-era copies are a functional superset of what the BF16 kernel uses. The drop's vLLM comparison scripts (benchmark_vllm_hopper_bf16_moe.py, run_vllm_hopper_bf16_sweep.{py,sh}, summarize_vllm_hopper_bf16_sweep.py) and benchmark_data/ are not copied, matching the FP8 vendoring.

Import adaptation (both kernels; re-apply on every resync): the drop's moe_hopper_fp8/kernel_fp8_glu_fc12.py and moe_hopper_bf16/kernel_bf16_glu_fc12.py import GluMxFp8Fc12SchedExtension from moe_mxfp8_glu.custom_ext, which is not vendored; the vendored copies import it from moe_nvfp4_swapab.custom_ext instead (one-line edit each).

Local extensions pending upstream (re-apply when syncing a drop that has not picked them up):

Read the full file on GitHub · 201 lines

Files

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.

Changes

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.

  1. 13d ago Changed · +33 lines 098c569663e3
  2. 23d ago Changed a102cd181d06
  3. 1mo ago Changed 842ea5d58723
  4. 1mo ago Changed · +95 lines b7f2f44b881e
  5. 1mo ago First seen · 73 lines · 0 tokens per session scan C d4fd7d210cdf

Subscribe to this mod's changes

pull_style_cutedsl_megakernel is a skill published in the GitHub repository flashinfer-ai/flashinfer (6,779 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,820 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.

Related

Other skills, from other repositories

gpu-server-setup

Prepare a Linux server with NVIDIA or Intel Arc GPUs for neural-network and LLM workloads, or diagnose one that misbehaves. Use when the user asks to set up or prepare a GPU server, install NVIDIA drivers or CUDA on Debian/Ubuntu, bring up Intel Arc (A770, A750, B580, Arc Pro B60/B70) with the i915/xe driver and…

EvilFreelancer/gpu-server-setup · 223 tokens

cuopt-skill-evolution

After solving a non-trivial problem, detect generalizable learnings and propose skill updates. Always active — applies to every interaction.

NVIDIA/cuopt · 33 tokens

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.

NVIDIA/cuopt · 47 tokens

cuopt-user-rules

Base rules for end users calling NVIDIA cuOpt (routing/LP/MILP/QP/install/server). Not for cuOpt internals — use cuopt-developer for those.

NVIDIA/cuopt · 42 tokens

perf-optimize

Launch and operate this repo's perf-optimize workflow, which iteratively APPLIES TensorRT-LLM serving optimizations — baseline benchmark at one concurrency or a Pareto curve of them (tok/s/user vs tok/s/gpu), analytical SOL projection on by default (via the internal-perf-sol-analysis skill) sizing the headroom the…

NVIDIA/TensorRT-LLM · 224 tokens

perf-analyze

Launch and operate this repo's perf-analyze workflow, which DIAGNOSES a TensorRT-LLM serving deployment without applying changes — benchmark at one concurrency or a Pareto curve of them (tok/s/user vs tok/s/gpu), analytical SOL projection on by default (via the internal-perf-sol-analysis skill), nsys + ncu per-kernel…

NVIDIA/TensorRT-LLM · 159 tokens