Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides writing and reviewing vLLM Triton kernels, covering launch grids, indexing, specialization, tuning, and performance validation.
50% 82%+32 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 11 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
torch.compile as a possible
implementation to inspect. Print Inductor's generated code with
TORCH_LOGS="output_code" .venv/bin/python <script> or enable
torch._logging.set_logs(output_code=True) before the compiled function
runs. Treat generated code as a reference, not as proof of correctness or
optimality.BLOCK_SIZE, or use
a small, legible heuristic when workloads need different choices. Use
triton.autotune only when tuning is critical to performance, such as for a
matrix multiplication. Otherwise prioritize simple code and fast startup.do_not_specialize, especially values that alternate between 0
and 1. Pointer alignment also affects specialization: an offset tensor view
can trigger a new variant after warmup used an aligned allocation. For
scalar-only pointers whose alignment provides no useful optimization, use
@triton.jit(do_not_specialize_on_alignment=["end_ptr"]). Retain alignment
specialization when vectorized accesses benefit from it. See the
Triton JIT options.tl.debug_barrier() between the write and read. The barrier
synchronizes threads in the block; it does not synchronize separate program
instances.grid[1] and grid[2] must be at most 65,535. Choose or flatten the grid
order so those dimensions cannot exceed the limit for supported shapes.
For example, num_tokens is commonly 8K or 16K, but users may configure 32K
or more. If num_tokens is a grid dimension, it is safe to put it in
grid[0] (or tile it).Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.