wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A PyPTO example for applying the GELU activation function element by element to a one-dimensional array. It demonstrates flattening, a hand-written formula without tanh, and operator use.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A PyPTO example for applying the GELU activation function element by element to a one-dimensional array. It demonstrates flattening, a hand-written formula without tanh, and operator use.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
An example of implementing cross-entropy loss, a calculation commonly used to measure classification errors. It covers multiple inputs, tiled processing, softmax, selecting target values, summing, and producing one scalar result.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A documented example of 2D matrix multiplication using loop blocking over the M dimension and handling leftover elements. Matrix multiplication combines rows and columns of number grids to produce a new grid.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A matrix–vector multiplication workaround for cases where K is greater than 65,535. It replaces matrix multiplication with element-by-element multiplication followed by summing.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A worked example of BatchNorm, a machine-learning step that normalizes values in groups, for three-dimensional data. It demonstrates reducing dimensions, summing across several axes, and copying values across expanded dimensions.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A PyPTO example showing how LayerNorm normalises values across a two-dimensional input using a loop. LayerNorm is a machine-learning operation that rescales values to help a model process them consistently.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A small example of summing values along one axis of a three-dimensional array while keeping the original number of dimensions.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A specialized optimization for 2D broadcast division on Triton, a system for writing GPU computation kernels. It targets cases where one dimension is large and the other is small.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
An optimization example for applying a calculation across a three-dimensional array when values must be broadcast across axes. Broadcasting means reusing smaller input values across a larger shape without copying them manually.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A performance-tuning skill for converting large arrays from one data type to another, such as int8 to fp16. It uses two levels of splitting to improve use of shared on-chip memory on Ascend hardware.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A guide to combining slicing and concatenation operations in Triton Ascend kernels, which are GPU programs. It describes loading only needed data and calculating joined indexes without a separate concatenation step.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
An optimization for creating small tensors with zeros, arange, or full in Triton Ascend. Triton Ascend is a programming environment for running tensor operations on Ascend hardware.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for speeding up histogram calculations, which count how many values fall into each group or range.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for optimizing indexed assignment, where values are written to positions selected by an index array.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for optimizing matrix multiplication when the shared K dimension is much larger than the output dimensions. It uses Split-K to divide that dimension across cores, then combines the partial results.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for optimizing matrix multiplication in Triton on Ascend hardware using 2D block swizzling and a fixed number of cores.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for speeding up amax reduction when the non-reduced dimension is small and the reduced dimension is very large. A reduction combines many values into one result, such as finding the largest value.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for optimizing medium-sized amax reductions, where the largest value is found across a large set of values. It reorganizes the calculation to reduce how often values are combined.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for optimizing very small amax reductions, where the largest value is found across fewer than 1,000 elements.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for optimizing amin reductions with atomic operations when the non-reduced dimension is small and the reduced dimension is very large. An amin reduction finds the smallest value.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A case study for optimizing very large one-dimensional amin reductions, where the smallest value must be found across a long array.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A guide to optimizing large two-dimensional minimum reductions, where the axis being reduced contains very many values.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A guide to optimizing medium-sized one-dimensional minimum reductions, where all values are combined by keeping the smallest one.
wenyi-li/awesome-agent-kernel-skills
Skill Claude CodeCodex
A guide to optimizing large two-dimensional mean reductions along the final axis. It splits rows into smaller pieces when they do not fit in on-chip memory.
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: