tilegym-monkey-patch-kernels-to-transformers — Claude Code skill
This skill wires TileGym kernels into Hugging Face Transformers models by swapping components before model creation. Use it to integrate existing kernels or build new cuTile ones.
npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a claude-codeWhat tilegym-monkey-patch-kernels-to-transformers does
The skill integrates TileGym kernels with a selected model from transformers. It replaces specific modules and classes, and patches initialization, forward, and weight-loading methods before the model is created. The library's source stays untouched; at runtime, the model calls TileGym implementations.
The workflow covers environment setup, integration of existing kernels, creation of cuTile kernels for uncovered PyTorch code, and a final report. Reusable kernels are tracked with FlashInfer-Bench-style metadata. The patches must run before model creation; otherwise, the model components will not be replaced.
To start, give the agent the skill name and the target model ID. It may ask follow-up questions. The agent then follows the environment and integration instructions in the references files.
What it helps with
- Connect TileGym kernels to a
transformersmodel - Replace model components without editing the library source
- Create cuTile kernels for uncovered PyTorch code
- Check end-to-end model functionality and performance
Example prompts for the agent
- Use this skill to connect TileGym kernels to
Qwen/Qwen3.5-0.8B. - Set up the environment and integrate existing TileGym kernels with my
transformersmodel. - Find uncovered PyTorch code and create cuTile kernels by following this skill's workflow.
How to install tilegym-monkey-patch-kernels-to-transformers
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a claude-code2Manually: put the files in place
~/.claude/skills/tilegym-monkey-patch-kernels-to-transformers/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/tilegym-monkey-patch-kernels-to-transformers/
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a codex2Manually: put the files in place
.agents/skills/tilegym-monkey-patch-kernels-to-transformers/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a cursor2Manually: put the files in place
.cursor/skills/tilegym-monkey-patch-kernels-to-transformers/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install NVIDIA/skills tilegym-monkey-patch-kernels-to-transformers2Manually: put the files in place
.github/skills/tilegym-monkey-patch-kernels-to-transformers/SKILL.md1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a gemini-cli2Platform CLI
gemini skills install https://github.com/NVIDIA/skills --path skills/tilegym-monkey-patch-kernels-to-transformersManually: put the files in place
.devin/skills/tilegym-monkey-patch-kernels-to-transformers/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about tilegym-monkey-patch-kernels-to-transformers
How do I install tilegym-monkey-patch-kernels-to-transformers in Claude Code?
Run npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a claude-code. The skill file is at ~/.claude/skills/tilegym-monkey-patch-kernels-to-transformers/SKILL.md.
What does tilegym-monkey-patch-kernels-to-transformers do?
It swaps selected transformers model components for TileGym implementations before model creation. The model then calls TileGym kernels at runtime.
Can this skill create new kernels?
Yes. After integrating existing kernels, its workflow creates cuTile kernels for PyTorch code that lacks coverage, then produces a report.