Skip to content

[FEATURE] Triton Skill #302

Closed
Closed

Description

@L-Reichardt

I believe a Triton skill would be complementary to the cuda-kernel skill, which would allow for more vendor independent development.
I do not currently have the expertise to implement this myself, so I am submitting this as a feature request to express interest and gauge demand.

Activity

  1. akshan-main commented on Apr 18, 2026

    @akshan-main

    I would be interested in working on this @sayakpaul , do you mind if I take this

  2. sayakpaul commented on Apr 19, 2026

    @sayakpaul
    Member

    Go ahead. And tag @burtenshaw once done!

  3. akshan-main commented on Apr 20, 2026

    @akshan-main

    Thanks @sayakpaul. Before I start drafting, want to lock in scope since rocm-kernels already seems to be a Triton skill (AMD-flavored).

    Proposed scope for triton-kernels (vendor-neutral):

    • Triton DSL patterns, block/stage sizing, tl.constexpr idioms
    • @triton.autotune configs that work across NVIDIA + AMD
    • Numerics / dtype handling (fp16/bf16/fp8), masked loads, reductions
    • Portability notes between CUDA and ROCm backends
    • Integration with kernels hub (get_kernel), transformers, diffusers
    • Benchmarking harness + correctness checks vs. a reference

    Does that split make sense, or would you rather triton-kernels also cover the NVIDIA-Triton tuning that's currently missing (since cuda-kernels is raw-CUDA oriented)? Just want to pick one before drafting.

    cc @burtenshaw for visibility on scope.

  4. jaygala223 commented on Jun 24, 2026

    @jaygala223
    Contributor

    Hi all, is this issue still open for contribution?

    Few things changed since the issue was opened:

    • skills/cuda-kernels link 404s, skills moved to kernel-builder/skills/ in move skills to builder. #456
    • rocm-kernels and xpu-kernels already exist there as Triton-based skills, both backend-specific

    The missing piece looks like a vendor-neutral Triton skill. Something like:

    • DSL idioms: tl.program_id, block sizing, tl.constexpr, masked loads/stores, in-SRAM reductions
    • @triton.autotune patterns, num_warps / num_stages guidance
    • Numerics: fp32 accumulation, fp16/bf16/fp8 handling
    • Correctness harness vs torch + do_bench benchmarking template
    • get_kernel integration with transformers/diffusers
    • Pointers to rocm-kernels / xpu-kernels for backend-specific tuning

    I've written Triton kernels from scratch with correctness checks and benchmarks (softmax, dropout, matmul with autotune + grouping): blog / repo. Happy to draft the SKILL.md and reference kernels.

    @sayakpaul @burtenshaw @danieldk does vendor-neutral work for you, or should this be NVIDIA-specific?

    @akshan-main happy to work with you on this if that's okay!

  5. sayakpaul commented on Jun 24, 2026

    @sayakpaul
    Member

    That sounds like a good plan @jaygala223! Feel free to start on it. @IlyasMoutawwakil in case you want to chime in too.

  6. jaygala223 commented on Jun 24, 2026

    @jaygala223
    Contributor

    Opened a PR #675 - please help review

    note: it got auto closed because I am not on the vouch list

  7. added a commit that references this issue on Jul 7, 2026
    a149117
  8. L-Reichardt commented on Jul 7, 2026

    @L-Reichardt
    Author

    Very nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions