Integrate TileGym kernels into Hugging Face `transformers` models by replacing the library's submodule(s) and certain class(es)' implementations, and patching certain class(es)' init/forward/load weight methods prior to instantiating models. Used when the user requires integrating TileGym kernels into `transformers` models.
Automate repetitive workflows and reduce manual effort
Example: Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example: Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example: Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Time estimate: 15-45 minutes depending on use case complexity
Prerequisites
Submit your Claude Code skill and start earning
epx add nvidia/skills/tilegym-monkey-patch-kernels-to-transformersCompatible with
Supported agents
| name | tilegym-monkey-patch-kernels-to-transformers |
| description | Integrate TileGym kernels into Hugging Face `transformers` models by replacing the library's submodule(s) and certain class(es)' implementations, and patching certain class(es)' init/forward/load weight methods prior to instantiating models. Used when the user requires integrating TileGym kernels into `transformers` models. |
| license | CC-BY-4.0 AND Apache-2.0 |
| compatibility | Verified on Claude Code with Opus-4.6 and onward, CodeX with GPT-5.5 and onward, and Cursor (Agent mode) with GPT-5.3-CodeX and stronger models. |
| metadata | author: "TileGym Team <TileGym@nvidia.com>" version: "2026.06.03" tags: - tilegym - transformers - integration - kernel - monkey-patch |
The main purpose of TileGym project is to provide performant kernels for LLM training and inference. We will integrate proper kernels available in TileGym project to LLM models provided by Hugging Face transformers library to validate end-to-end functional correctness and performance improvements. Instead of modifying transformers source code, we will take a non-intrusive monkey-patch approach: We will replace certain modules/classes/methods in transformers library that implement the Transformer model we would like to integrate, such that at model instantiation, that model's core components will be replaced by TileGym implementations. At runtime the model will actually invoke TileGym kernels under the hood. In addition, we will follow an auto-research-style agent harness loop to create and integrate new cuTile kernels to the target model to improve kernel coverage and end-to-end throughput.
This is for human readers: Simply prompt your favorite AI Agent with skill name and target model ID. E.g.,:
Hi, please /monkey-patch-kernels-to-transformers Qwen/Qwen3.5-0.8B.
The Agent might ask you several questions. Make clarifications and give a go confirmation.
This is for AI Agents executing this workflow.
Reusable transformer-local kernels must be represented with FlashInfer-Bench-style Definition and Solution metadata. Follow kernel-inventory-schema.md when researching compute requirements, inventorying existing kernels, proposing candidates, or creating new generated kernels.
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiontilegym-monkey-patch-kernels-to-transformersExecute the skills CLI command in your project's root directory to begin installation:
epx add nvidia/skills/tilegym-monkey-patch-kernels-to-transformersFetches tilegym-monkey-patch-kernels-to-transformers from nvidia/skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
.cursor/skills/tilegym-monkey-patch-kernels-to-transformers
Restart Cursor to activate tilegym-monkey-patch-kernels-to-transformers. Access via /tilegym-monkey-patch-kernels-to-transformersin your agent's command palette.
Learn more:View source on GitHubSkills CLI docsAbout CursorWhat are agent skills?
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
deepstream-import-vision-model
nvidia/skills · accelerated-computing · same repo
jetson-link-docs
nvidia/skills · jetson · same repo
jetson-flash-image
nvidia/skills · jetson · same repo
physical-ai-defect-image-generation
nvidia/skills · physical-ai · same repo
jetson-customize-uphy
nvidia/skills · jetson · same repo
earth2studio-data-fetch
nvidia/skills · earth2studio · same repo
Useful defaults in tilegym-monkey-patch-kernels-to-transformers — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Registry listing for tilegym-monkey-patch-kernels-to-transformers matched our evaluation — installs cleanly and behaves as described in the markdown.
tilegym-monkey-patch-kernels-to-transformers is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
tilegym-monkey-patch-kernels-to-transformers reduced setup friction for our internal harness; good balance of opinion and flexibility.
tilegym-monkey-patch-kernels-to-transformers reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: tilegym-monkey-patch-kernels-to-transformers is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for tilegym-monkey-patch-kernels-to-transformers matched our evaluation — installs cleanly and behaves as described in the markdown.
Keeps context tight: tilegym-monkey-patch-kernels-to-transformers is the kind of skill you can hand to a new teammate without a long onboarding doc.
Solid pick for teams standardizing on skills: tilegym-monkey-patch-kernels-to-transformers is focused, and the summary matches what you get after install.
tilegym-monkey-patch-kernels-to-transformers has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 25