What problem does it solve?
Accelerating LLM training and inference with custom CUDA Tile kernels normally requires modifying the Hugging Face transformers source code, which is invasive and hard to maintain. This Skill replaces transformer modules, classes, and methods at runtime through monkey-patching, so models invoke TileGym kernels under the hood without touching the library source.
Core Features & Use Cases
- Non-intrusive kernel integration: Replaces transformer submodule implementations and patches init/forward/load-weight methods before model instantiation, keeping transformers source untouched.
- Autonomous kernel creation loop: Runs an auto-research-style experiment loop that identifies uncovered PyTorch code, creates new cuTile kernels, benchmarks coverage and throughput, and keeps or discards each experiment based on results.
- FlashInfer-Bench kernel inventory: Records reusable kernels with Definition and Solution JSON metadata so kernels can be discovered, compared, and reused across models.
- Use Case: An engineer wants to speed up Qwen3.5 inference on a B200 GPU. The agent sets up a Docker environment, patches the model with existing TileGym kernels, then autonomously writes new cuTile kernels until GPU-time kernel coverage is maximized without throughput regression.
Quick Start
Ask your agent to monkey-patch TileGym kernels into a target model, for example: please monkey-patch-kernels-to-transformers Qwen/Qwen3.5-0.8B.