Agent skill

Rotary Embedding Kernel

by ZJLi2013 in ZJLi2013/awesome-kernel-skills

Optimize Rotary Position Embedding (RoPE) kernels in Triton for NVIDIA and AMD GPUs.

No licenceAuto-check passedAI & LLM Engineering

Install Rotary Embedding Kernel

skills CLI
$ npx skills add ZJLi2013/awesome-kernel-skills --skill rotary-embedding-kernel -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZJLi2013/awesome-kernel-skills rotary-embedding-kernel --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZJLi2013/awesome-kernel-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/kernels/rotary-embedding .claude/skills/rotary-embedding-kernel && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rotary-embedding-kernel
GitHub stars
102
Token cost
~421 tokens
SKILL.md length
154 words
Files
3
Skills in repo
12
Repo updated
First seen
Licence
None found

At a glance

Optimize Rotary Position Embedding (RoPE) kernels in Triton for NVIDIA and AMD GPUs.

  • Works in 2 steps: Interleaved: [x0, x1, x2, x3, ...] where… → Split-half: [x_first_half |…
  • Optimizing RoPE
  • SKILL.md covers Overview, Core Technique, Verification and Common Pitfalls, plus 1 more section
  • Runs Python scripts from its folder; calls python

What it does

Rotary Embedding Kernel is an agent skill from ZJLi2013/awesome-kernel-skills. Optimize Rotary Position Embedding (RoPE) kernels in Triton for NVIDIA and AMD GPUs. Covers interleaved/sequential layouts, sincos precomputation, and multi-row processing. Use when writing or optimizing RoPE, position embeddings, or rotary transformations.

Its SKILL.md is about 420 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `test_rotary.py` and `triton_template.py`).

It sits in AI & LLM Engineering, covering Embeddings. It works with NVIDIA AI Platform.

When your agent uses it

  • Optimizing RoPE
  • Position embeddings
  • Rotary transformations

Example prompts

  • “/rotary-embedding-kernel”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Interleaved: [x0, x1, x2, x3, ...] where pairs are (x0,x1), (x2,x3), ...
  2. Split-half: [x_first_half | x_second_half] where pairs are (x[i], x[i+D/2])

What it can do on your machine

Read from SKILL.md and the folder at commit aba7662. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • arxiv.org
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rotary Embedding Kernel loads about 421 tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 154 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~421

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 154 words (~421 tokens).

“RoPE applies a rotation to pairs of elements: (x1, x2) -> (x1*cos - x2*sin, x1*sin + x2*cos). Applied per-position in the sequence dimension.”

— opening of SKILL.md by ZJLi2013
name
rotary-embedding-kernel

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files in skills/kernels/rotary-embedding of ZJLi2013/awesome-kernel-skills.

  • SKILL.md
  • test_rotary.py
  • triton_template.py

Open the folder on GitHubat commit aba7662

Compare with similar skills

Rotary Embedding Kernel next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rotary Embedding Kernel compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rotary Embedding Kernel this skillZJLi2013/awesome-kernel-skills102—~421Automated safety check: PassNone
TAO Image EmbeddingsNVIDIA/skills3.5k—~2kAutomated safety check: NotesApache-2.0
Tao Train Metric Learning RecognitionNVIDIA/skills3.5k—~2.9kAutomated safety check: NotesApache-2.0
Embeddings via 9Routerdecolua/9router30k—~604Automated safety check: PassMIT
Keiroutermydisha/keirouter147—~995Automated safety check: PassMIT
Keirouter Embeddingsmydisha/keirouter147—~577Automated safety check: PassMIT

Similar skills

  • Official

    Turns a parquet of image file paths into a parquet of embeddings with CLIP, SigLIP or a TAO checkpoint, using the TAO Data Services container, ahead of neighbor mining.

    3.5k GitHub stars~2k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Metric-learning recognition (ml-recog) for fine-grained visual recognition.

    3.5k GitHub stars~2.9k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Embeddings via 9Router

    decolua/9router

    Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.

    30k GitHub stars~604 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Keirouter

    mydisha/keirouter

    Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.

    147 GitHub stars~995 tokensUpdated 28 days ago
    AI & LLM EngineeringAuto-check passed
  • Keirouter Embeddings

    mydisha/keirouter

    Generate vector embeddings via KeiRouter /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia embedding models for RAG, semantic search, similarity.

    147 GitHub stars~577 tokensUpdated 28 days ago
    AI & LLM EngineeringAuto-check passed
  • Testing Prompt Injection In RAG Pipelines

    mukul975/Anthropic-Cybersecurity-Skills

    Probes Retrieval-Augmented Generation pipelines for indirect prompt injection via poisoned retrieved documents and embedding-space manipulation, using NVIDIA garak, Promptfoo red-team plugins, and…

    34k GitHub stars~3.3k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed

More from ZJLi2013/awesome-kernel-skills

All 12 skills in this repo
  • Cross Entropy Kernel

    ZJLi2013/awesome-kernel-skills

    Optimize fused cross-entropy loss kernels in Triton for NVIDIA and AMD GPUs.

    102 GitHub stars~461 tokensUpdated 6 mo ago
    Auto-check passed
  • Flash Attention Kernel

    ZJLi2013/awesome-kernel-skills

    Optimize FlashAttention-style fused attention kernels in Triton for NVIDIA and AMD GPUs.

    102 GitHub stars~697 tokensUpdated 6 mo ago
    Auto-check passed
  • Fused Moe Kernel

    ZJLi2013/awesome-kernel-skills

    Optimize Fused Mixture-of-Experts (MoE) kernels in Triton for NVIDIA and AMD GPUs.

    102 GitHub stars~699 tokensUpdated 6 mo ago
    Auto-check passed
  • Gemm Kernel Optimization

    ZJLi2013/awesome-kernel-skills

    Optimize dense matrix multiplication (GEMM) kernels in Triton for NVIDIA and AMD GPUs.

    102 GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • Iterative Kernel Optimization Loop

    ZJLi2013/awesome-kernel-skills

    Orchestrates continuous kernel optimization by chaining profiling, bottleneck diagnosis, tier-based optimization, verification, and benchmarking into an iterative loop.

    102 GitHub stars~2.5k tokensUpdated 6 mo ago
    Auto-check passed
  • Kernel Benchmark

    ZJLi2013/awesome-kernel-skills

    Unified kernel benchmarking protocol producing JSON results with latency, TFLOPS, GBps, and comparison against PyTorch baselines.

    102 GitHub stars~567 tokensUpdated 6 mo ago
    Auto-check passed

Questions about Rotary Embedding Kernel

What does Rotary Embedding Kernel do?

Optimize Rotary Position Embedding (RoPE) kernels in Triton for NVIDIA and AMD GPUs. Rotary Embedding Kernel is an agent skill from ZJLi2013/awesome-kernel-skills. Optimize Rotary Position Embedding (RoPE) kernels in Triton for NVIDIA and AMD GPUs.

When should I use Rotary Embedding Kernel?

Rotary Embedding Kernel fits situations like: optimizing RoPE; position embeddings; rotary transformations.

How do I install Rotary Embedding Kernel in Claude Code?

Run `npx skills add ZJLi2013/awesome-kernel-skills --skill rotary-embedding-kernel -a claude-code`. Or copy the skill folder (skills/kernels/rotary-embedding in ZJLi2013/awesome-kernel-skills) into .claude/skills/rotary-embedding-kernel in your project. Claude Code loads it when a task matches its description.

How do I install Rotary Embedding Kernel in Codex?

Run `npx skills add ZJLi2013/awesome-kernel-skills --skill rotary-embedding-kernel -a codex`. Or copy the skill folder (skills/kernels/rotary-embedding in ZJLi2013/awesome-kernel-skills) into .agents/skills/rotary-embedding-kernel in your project. Codex loads it when a task matches its description.

Can I use Rotary Embedding Kernel in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZJLi2013/awesome-kernel-skills --skill rotary-embedding-kernel -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rotary-embedding-kernel, .gemini/skills/rotary-embedding-kernel, .github/skills/rotary-embedding-kernel and .opencode/skills/rotary-embedding-kernel in your project.

What does Rotary Embedding Kernel need to run?

Going by SKILL.md and its folder, Rotary Embedding Kernel needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Rotary Embedding Kernel access the network?

SKILL.md names 2 domains. As links in the text: arxiv.org and github.com. This is read from the text; nothing was executed.

Is Rotary Embedding Kernel safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rotary Embedding Kernel use?

No licence was found for Rotary Embedding Kernel or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Rotary Embedding Kernel use?

About 421 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rotary Embedding Kernel?

Skills that share tags, products or a category with Rotary Embedding Kernel: TAO Image Embeddings (NVIDIA/skills, 3.5k stars), Tao Train Metric Learning Recognition (NVIDIA/skills, 3.5k stars), Embeddings via 9Router (decolua/9router, 30k stars) and Keirouter (mydisha/keirouter, 147 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rotary Embedding Kernel?

ZJLi2013 (a GitHub user) maintains it in ZJLi2013/awesome-kernel-skills, which has 102 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on March 31, 2026.

Source: ZJLi2013/awesome-kernel-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.