add-jit-kernel - Add a lightweight JIT CUDA kernel to SGLang
Provides a step-by-step tutorial for adding an element-wise scale JIT CUDA kernel to SGLang's jit_kernel module.
Tags
Updated: 2026-12-05Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Guide JIT kernel development
- Implement element-wise scaling
- Validate tensor arguments
- Allocate output tensors
- Configure CUDA kernel launches
Inputs
- CUDA tensor
- Runtime scalar factor
- SGLang codebase
- Kernel source files
Outputs
- JIT CUDA kernel
- Element-wise scaled tensor
- Kernel source changes
Requirements
- CUDA environment
- SGLang jit_kernel module
- Supported tensor dtypes
