What problem does it solve?
This Skill provides a complete, repeatable workflow for adding lightweight JIT CUDA kernels to SGLang without overlooking tensor validation, Python integration, testing, benchmarking, or CI registration.
Core Features & Use Cases
- CUDA Kernel Implementation: Create efficient element-wise kernels using SGLang's TensorMatcher, LaunchKernel, vectorized memory access, and device abstractions.
- Python Integration: Build thin, cached JIT wrappers with dtype specialization, CUDA validation, and optional output handling.
- Testing and Benchmarking: Add correctness tests, edge-case coverage, CI registrations, and performance comparisons against PyTorch.
- Use Case: Use this Skill when contributing a new lightweight CUDA operation to SGLang's jit_kernel module and you need implementation guidance that aligns with project conventions.
Quick Start
Use the add-jit-kernel skill to create a new SGLang JIT CUDA kernel with its Python wrapper, tests, benchmark, and CI registrations.