triton-lang

Create high-performance GPU kernels for deep learning using Python.

1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/hung-phan/ml-skills --skill triton-lang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: triton-lang
Source: https://github.com/hung-phan/ml-skills/tree/main/skills/ml-review/references/gpu-lang/triton
Command: npx skills add https://github.com/hung-phan/ml-skills --skill triton-lang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires triton, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows for the creation of high-performance GPU kernels using a high-level Python syntax, filling the gap between low-level CUDA programming and high-level libraries.

Core Features & Use Cases

  • High-Level Programming: Simplifies GPU kernel development with a Python-like syntax.
  • Custom Operations: Enables the implementation of custom fused kernels, attention variants, and quantized operations.
  • Performance: Achieves optimal performance through automatic scheduling, memory coalescing, and tensor core utilization.
  • Use Case: When you need to implement custom operations in deep learning that are not available in existing libraries, such as fused attention or quantized matrix multiplications.

Quick Start

Write a Python function with the @triton.jit decorator and compile it to GPU code.

Frequently Asked Questions about triton-lang

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

FAQPage Schema
How do I write custom GPU kernels for deep learning without using low-level CUDA?

You can write custom GPU kernels for deep learning using a high-level Python syntax with the @triton.jit decorator. This approach bridges the gap between low-level CUDA programming and high-level libraries by providing a block-level programming interface for GPU computation.

What is the best way to implement fused operations and quantized matrix multiplications for GPU computation?

The best way to implement fused operations and quantized matrix multiplications is using a high-level Python-based GPU programming interface. It enables custom fused kernels and quantized operations while achieving optimal performance through automatic scheduling and tensor core utilization.

Can I use Python to achieve high-performance computing with automatic memory coalescing and tensor core utilization?

Yes, you can use Python to achieve high-performance computing with automatic memory coalescing and tensor core utilization. By compiling Python functions decorated with @triton.jit to GPU code, the system automatically handles scheduling and memory optimization for deep learning operations.

When do I need a block-level programming interface for custom deep learning operations?

You need a block-level programming interface when implementing custom operations in deep learning that are unavailable in existing libraries. This includes creating custom fused attention variants or quantized matrix multiplications that require high-performance GPU execution.

Does Triton support creating custom attention variants for deep learning models?

Yes, Triton supports creating custom attention variants for deep learning models. It allows the implementation of custom fused kernels for deep learning operations, filling the gap between CUDA programming and high-level libraries with a Python-like syntax.

Why use high-level Python syntax for GPU kernel programming instead of low-level CUDA programming?

High-level Python syntax for GPU kernel programming simplifies development compared to low-level CUDA programming by providing a block-level programming interface. It achieves optimal performance through automatic scheduling, memory coalescing, and tensor core utilization without manual low-level management.