Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

liger-kernel-perf

Skill by linkedin

Optimizes existing Liger Kernel Triton kernels by profiling them, benchmarking tuned variants and applying the best one. Aimed at developers who work on NVIDIA GPUs and want faster or leaner Liger kernels.

  • Score 92
  • 6.7k stars
  • BSD-2-Clause
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install liger-kernel-perf

Built from the published package, never by AI.

git clone --depth 1 https://github.com/linkedin/Liger-Kernel /tmp/Liger-Kernel && mkdir -p ~/.claude/skills && cp -r /tmp/Liger-Kernel/.agents/skills/liger-kernel-perf ~/.claude/skills/liger-kernel-perf

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install liger-kernel-perf in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Liger Kernel Perf is an agent skill that optimizes existing Liger Kernel Triton kernels. It runs a three-stage pipeline: Profile, Optimize, and Finalize. The profile stage runs baseline benchmarks, detects the GPU architecture, optionally runs NCU profiling, and classifies the bottleneck as memory-bound or compute-bound.

The optimize stage generates and benchmarks variants, with guardrails against regressions and correctness failures. The finalize stage applies the winner in place, runs the test suite and checkstyle, generates plots and a report, and opens a pull request with only the kernel changes. It supports an interactive mode with checkpoints and an autonomous mode. It is intended for developers who want to speed up, tune, or reduce memory use of a Liger kernel.

Written from the project's SKILL.md and checked against it.

What it can do

  • Kernel profilingRuns baseline benchmarks and optionally NCU profiling on a Liger kernel.
  • Bottleneck diagnosisClassifies a kernel as memory-bound or compute-bound and proposes a strategy order.
  • Variant optimizationGenerates and benchmarks multiple optimization variants, up to a configurable budget.
  • Guardrail checksRejects variants with non-target regressions or correctness failures.
  • Winner finalizationApplies the best variant in place and runs the kernel test suite and checkstyle.
  • Comparison plots and reportGenerates 3-way comparison plots and a final optimization report.
  • Pull request creationCreates a PR containing only the kernel code changes.

What you need

  • NVIDIA GPU with CUDA working
  • Liger Kernel project installed in dev mode (pip install -e ".[dev]")
  • Existing kernel, benchmark script and test file in the repository

Try asking

  • Profile the rms_norm Liger kernel and tell me whether it is memory-bound.
  • Optimize the cross_entropy kernel for speed on my Hopper GPU.
  • Tune the fused linear cross entropy kernel and reduce its memory use.

Good to know

  • NVIDIA GPUs only.
  • Requires existing kernel, benchmark script and test file, or it stops during pre-flight validation.
  • If the full test suite fails, the winning variant is not applied.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/liger-kernel-perf/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • finalizer.md16 KB
  • optimization-strategies.md35 KB
  • optimizer.md19 KB
  • profiler.md5 KB
Show all 7 files
  • templates/optimization-profile.md4 KB
  • templates/variant-notes.md2 KB

Alternatives to liger-kernel-perf

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

liger-kernel-perf: common questions

Which GPUs does Liger Kernel Perf support?

The source says it supports Ampere, Hopper and Blackwell GPU architectures, and that it works with NVIDIA GPUs only.

Does it change my kernel code automatically?

It applies the winning variant in place to the kernel file and creates a PR with only the kernel changes. Interactive mode asks for approval at checkpoints between stages.

What happens if a variant breaks correctness?

Any variant that fails the smoke test is discarded immediately. If the full test suite fails, the winner is not applied and the skill reports the failure and stops.

How do I install liger-kernel-perf?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is liger-kernel-perf free?

The code is published under the BSD-2-Clause licence. The service it connects to may have its own pricing.

Is liger-kernel-perf safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to liger-kernel-perf?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

liger-kernel-perf Install

Add to stack

Loading.