triton

Create and autotune GPU kernels in Python with MLIR-based compilation.

4|Updated May 6, 2026
One-click install
npx skills add https://github.com/jstzwj/ai-infra-plugins --skill triton-jstzwj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: triton
Source: https://github.com/jstzwj/ai-infra-plugins/tree/main/plugins/triton/skills/triton
Command: npx skills add https://github.com/jstzwj/ai-infra-plugins --skill triton-jstzwj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Triton enables users to develop highly optimized GPU kernels with automatic performance tuning and reusable code components.

Core Features & Use Cases

  • Kernel Development: Write custom GPU kernels in Python with MLIR-based compilation targeting NVIDIA and AMD GPUs.
  • Autotuning: Automatically explore configuration space for optimal block sizes, warp counts, and pipeline stages.
  • Use Case: A deep learning researcher implements a custom matrix multiplication kernel that adapts to different hardware and problem sizes efficiently.

Quick Start

Write a Triton kernel to perform vector addition and run it with specified grid dimensions to process large datasets.

Frequently Asked Questions about triton

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write custom GPU kernels in Python for deep learning workflows?

You can write custom GPU kernels in Python using MLIR-based compilation that targets NVIDIA and AMD GPUs. This approach enables highly optimized kernel development with automatic performance tuning and reusable code components.

What is autotuning for GPU kernels and how does it optimize block sizes?

Autotuning automatically explores the configuration space for GPU kernels to find optimal block sizes, warp counts, and pipeline stages. This mechanism allows custom kernels to adapt to different hardware and problem sizes efficiently without manual tuning.

Do I need MLIR and external GPU drivers to compile kernels for multi-architecture backends?

Yes, you need MLIR, Python, and external GPU drivers to compile kernels for multi-architecture backends. These dependencies facilitate the MLIR-based compilation required to target both NVIDIA and AMD GPUs effectively.

Can I target both NVIDIA and AMD GPUs with Python-based kernel development?

Yes, you can target both NVIDIA and AMD GPUs with Python-based kernel development. The MLIR-based compilation process supports multi-architecture backends, allowing you to write custom kernels that run on both hardware platforms.

What is the best way to implement a custom matrix multiplication kernel that adapts to different hardware?

The best way to implement adaptive custom matrix multiplication kernels is by using Python with MLIR-based compilation and autotuning. This combination automatically searches for optimal configurations, allowing the kernel to adapt to varying hardware and problem sizes.

Why does my GPU kernel performance vary across different problem sizes and hardware?

GPU kernel performance varies because optimal block sizes, warp counts, and pipeline stages differ across hardware and problem sizes. Autotuning solves this by automatically exploring the configuration space to find the most efficient parameters for each specific scenario.