Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add NVIDIA/skills --skill tilegym-monkey-patch-kernels-to-transformers -a claude-code
Open on GitHub

What 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 transformers model
  • 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 transformers model.
  • 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-code

2Manually: put the files in place

~/.claude/skills/tilegym-monkey-patch-kernels-to-transformers/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tilegym-monkey-patch-kernels-to-transformers/

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.

Similar skills

All skills for AI and ML →

From the same set195

hsb-setup Sets up a Holoscan Sensor Bridge environment by connecting to a devkit, building a container, and checking board connectivity. Use it for first HSB demo bring-up. CX Codex +1 1,700installs tao-run-on-slurm Submit TAO jobs to a remote SLURM GPU cluster over SSH, with Pyxis/Enroot containers. Use it when training or inference needs cluster storage on Lustre. CX Codex +1 1,600installs tao-run-on-kubernetes Turns a TAO spec-bundle into a Kubernetes Job and submits it with plain kubectl. For training runs and inference on EKS, GKE, AKS or an on-prem GPU cluster. CX Codex +1 1,600installs tilegym-improve-cutile-kernel-perf Systematically profiles, tunes, and benchmarks cuTile GPU kernels in TileGym. Runs iterations on real hardware to lower latency while preserving accuracy. CX Codex +1 1,600installs tilegym-cutile-python Turns the assistant into a cuTile specialist: writing, debugging and tuning GPU kernels in NVIDIA's Python DSL. Useful when porting tensor ops off PyTorch by hand. CX Codex +1 1,600installs tao-run-inference-service Deploys network-specific NVIDIA TAO inference microservices in containers and halts them. Use it to run checkpoints and query endpoints without cloud storage. CX Codex +1 1,600installs tao-validate-dataset-format This skill runs tao-daft validate on NVIDIA TAO DAFT data and helps interpret the results. Use it to check dataset structure, schemas, and cross-references. CX Codex +1 1,600installs tao-train-mask-auto-encoder A skill that runs Masked Auto-Encoder training in TAO: random patches get masked and rebuilt to learn visual representations. CX Codex +1 1,600installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor