Write a Triton RMSNorm Kernel
OfficialTriton RMSNorm kernel for fast normalization.
Authortensormux
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps implement a numerically stable RMSNorm kernel in Triton, enabling fast and correct normalization for large language model blocks.
Core Features & Use Cases
- One-pass sum-of-squares with fp32 accumulation
- Masked tail handling for non-divisible H
- Per-feature weight broadcast and optional residual fusion
- Forward + backward capability for training or fine-tuning
Quick Start
Implement a forward RMSNorm kernel in Triton that computes y = x * rsqrt(mean(x^2) + eps) * weight with proper masking, and provide an accompanying backward kernel and Python wrapper for autograd.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Write a Triton RMSNorm Kernel Download link: https://github.com/tensormux/kernel-skills/archive/main.zip#write-a-triton-rmsnorm-kernel Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.