add-jit-kernel - Add a Lightweight JIT CUDA Kernel
Guides the implementation of an element-wise scale operation as a lightweight JIT CUDA kernel in SGLang's jit_kernel module.
Tags
Updated: 2026-11-25Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Add lightweight JIT kernels
- Validate CUDA tensor arguments
- Support FP16, BF16, FP32
- Launch CUDA kernels
- Use vectorized memory access
- Apply warp reductions
Inputs
- CUDA tensor
- Runtime scalar factor
- SGLang kernel source tree
Outputs
- Scaled output tensor
- JIT CUDA kernel implementation
- First-use compiled kernel
Requirements
- CUDA execution environment
- SGLang jit_kernel module
- FP16, BF16, or FP32 support
