mindspore-ai/akg

AKG (Auto Kernel Generator) is an optimizer for operators in Deep Learning Networks, which provides the ability to automatically fuse ops with specific patterns.

259Stars on the repository
121Mods indexed here, across every type
1mo agoLast push, which is what freshness is scored on
Apache-2.0Licence, which decides whether bodies are shown

mindspore-ai/akg

Skill Claude CodeCodex

An optimization pattern for dividing a 2D tensor by values broadcast across rows or columns. It keeps small dimensions together and controls how many processing blocks handle the larger dimension.

not rated 259 1mo ago A SkillSpector: pass 79 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization pattern for 3D broadcast division, where one tensor's values are repeated across selected dimensions. It first expands the repeated values and then reshapes the work into a simpler 2D form.

not rated 259 1mo ago A SkillSpector: pass 78 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization pattern for converting large arrays from int8 numbers to fp16 numbers on Ascend hardware. It splits the work into blocks and smaller tiles so processing can use the available on-chip memory.

not rated 259 1mo ago A SkillSpector: pass 68 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization pattern that combines several slice operations and a concatenation into one kernel. Slicing selects part of a tensor, while concatenation joins those parts together.

not rated 259 1mo ago A SkillSpector: pass 73 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A tuning guide for creating small tensors with operations such as zeros, arange, full, and their variants on Ascend hardware. It shows how to use fewer processing blocks for small shapes.

not rated 259 1mo ago A SkillSpector: pass 67 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization pattern for histogram counting, which records how often each value appears. It sorts the input first, then uses binary search to find each value's range.

not rated 259 1mo ago A SkillSpector: pass 79 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization pattern for indexed assignment, which writes values into positions chosen by index arrays. It loads index data into fast on-chip memory so a loop can reuse it.

not rated 259 1mo ago A SkillSpector: pass 73 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization guide for matrix multiplication where the shared dimension K is much larger than the output dimensions M and N. It splits the K dimension so multiple processor cores can calculate parts of the same output.

not rated 259 1mo ago A SkillSpector: pass 101 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization guide for Triton matrix-multiplication kernels on Ascend processors. Matrix multiplication combines rows and columns of two number grids to produce a third grid.

not rated 259 1mo ago A SkillSpector: pass 88 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization guide for Triton kernels that find maximum values across a very large dimension of a 2D array on an Ascend processor. It targets cases where the other dimension is very small.

not rated 259 1mo ago A SkillSpector: pass 81 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

An optimization guide for Triton kernels that compute the maximum value across one dimension of a medium-sized 2D array on an Ascend processor.

not rated 259 1mo ago A SkillSpector: pass 81 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A Triton optimization guide for finding the maximum value in a very small array on Ascend hardware. It compares processing the whole input with one core against using several cores.

not rated 259 1mo ago A SkillSpector: pass 75 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A Triton optimization guide for minimum-value reduction when the reduced dimension is much larger than the other dimension. It uses multiple cores and atomic operations, which combine partial results safely, for extreme shapes such as 16 by 262,144.

not rated 259 1mo ago A SkillSpector: pass 85 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A specialized optimization note for very large one-dimensional minimum reductions in Triton on Ascend hardware.

not rated 259 1mo ago A SkillSpector: pass 90 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A Triton optimization guide for finding row minimums in a large two-dimensional array on Ascend hardware. It handles cases where the dimension being reduced contains hundreds of thousands of elements.

not rated 259 1mo ago A SkillSpector: pass 91 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A Triton optimization guide for finding the minimum value in a medium-sized one-dimensional array on Ascend hardware. It focuses on choosing a suitable amount of parallel work for inputs around 65,536 elements.

not rated 259 1mo ago A SkillSpector: pass 87 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A specialized optimization note for Triton mean-reduction kernels on Ascend hardware, focused on large two-dimensional arrays with a long reduction axis.

not rated 259 1mo ago A SkillSpector: pass 97 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A guide to optimizing medium-sized mean reductions, which calculate the average across one dimension of a tensor on an Ascend AI processor.

not rated 259 1mo ago A SkillSpector: pass 82 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A Triton Ascend guide for speeding up small product reductions, which multiply values along one dimension of a tensor on an Ascend AI processor.

not rated 259 1mo ago A SkillSpector: pass 95 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A guide to optimizing a fused operation that first transforms each value and then adds the results along a dimension.

not rated 259 1mo ago A SkillSpector: pass 83 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A guide to optimizing large sum reductions, which add values along one tensor dimension when the other dimension is very large.

not rated 259 1mo ago A SkillSpector: pass 92 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A Triton Ascend guide for optimizing the backward pass of Weighted SwiGLU, a neural-network operation that applies weights and computes gradients.

not rated 259 1mo ago A SkillSpector: pass 97 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A troubleshooting guide for common Triton Ascend kernel failures, including on-chip memory overflow and compiler errors caused by complex masks or addresses.

not rated 259 1mo ago A SkillSpector: pass 57 tokens original Apache-2.0

mindspore-ai/akg

Skill Claude CodeCodex

A practical guide to optimizing fused Triton operations on Ascend AI processors, where several calculations are combined into one kernel.

not rated 259 1mo ago A SkillSpector: pass 96 tokens original Apache-2.0

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: