Paddle Build
PaddlePaddle/Paddle
A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.
Guide for adding Triton-backed CUDA operators to FastLLM. An agent skill from ztxz16/fastllm.
$ npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ztxz16/fastllm fastllm-triton-ops --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ztxz16/fastllm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/fastllm-triton-ops .claude/skills/fastllm-triton-ops && rm -rf skills-srcUse ~/.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/
Install the "fastllm-triton-ops" agent skill from https://github.com/ztxz16/fastllm/tree/master/.codex/skills/fastllm-triton-ops into .claude/skills/fastllm-triton-ops/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastllm-triton-ops", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ztxz16/fastllm/tree/master/.codex/skills/fastllm-triton-opsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ztxz16/fastllm fastllm-triton-ops --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ztxz16/fastllm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/fastllm-triton-ops .agents/skills/fastllm-triton-ops && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "fastllm-triton-ops" agent skill from https://github.com/ztxz16/fastllm/tree/master/.codex/skills/fastllm-triton-ops into .agents/skills/fastllm-triton-ops/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastllm-triton-ops", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ztxz16/fastllm fastllm-triton-ops --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ztxz16/fastllm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/fastllm-triton-ops .cursor/skills/fastllm-triton-ops && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "fastllm-triton-ops" agent skill from https://github.com/ztxz16/fastllm/tree/master/.codex/skills/fastllm-triton-ops into .cursor/skills/fastllm-triton-ops/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastllm-triton-ops", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ztxz16/fastllm.git --path .codex/skills/fastllm-triton-ops--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ztxz16/fastllm fastllm-triton-ops --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ztxz16/fastllm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/fastllm-triton-ops .gemini/skills/fastllm-triton-ops && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "fastllm-triton-ops" agent skill from https://github.com/ztxz16/fastllm/tree/master/.codex/skills/fastllm-triton-ops into .gemini/skills/fastllm-triton-ops/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastllm-triton-ops", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ztxz16/fastllm fastllm-triton-opsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ztxz16/fastllm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/fastllm-triton-ops .github/skills/fastllm-triton-ops && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "fastllm-triton-ops" agent skill from https://github.com/ztxz16/fastllm/tree/master/.codex/skills/fastllm-triton-ops into .github/skills/fastllm-triton-ops/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastllm-triton-ops", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ztxz16/fastllm fastllm-triton-ops --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ztxz16/fastllm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/fastllm-triton-ops .opencode/skills/fastllm-triton-ops && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "fastllm-triton-ops" agent skill from https://github.com/ztxz16/fastllm/tree/master/.codex/skills/fastllm-triton-ops into .opencode/skills/fastllm-triton-ops/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastllm-triton-ops", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
fastllm-triton-opsGuide for adding Triton-backed CUDA operators to FastLLM. An agent skill from ztxz16/fastllm.
Fastllm Triton Ops is an agent skill from ztxz16/fastllm. Guide for adding Triton-backed CUDA operators to FastLLM. Use when modifying FastLLM CUDA op code to add, extend, debug, validate, or benchmark Triton-generated kernels through tools/fastllmtritonserver.py, src/devices/cuda/cudadevice.cpp, src/devices/cuda/fastllm-triton-cuda.cu, include/devices/cuda/fastllm-cuda.cuh, or related CMake wiring.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
It sits in AI & LLM Engineering. It works with C++ and CUDA. The repository describes itself as: fastllm是后端无依赖的高性能大模型推理库。同时支持张量并行推理稠密模型和混合模式推理MOE模型,任意10G以上显卡即可推理满血DeepSeek。双路9004/9005服务器+单显卡部署DeepSeek满血满精度原版模型,单并发20tps;INT4量化模型单并发30tps,多并发可达60+。 The licence is Apache-2.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a2ff521. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
bashFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Fastllm Triton Ops loads about 1.8k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 671 words of instructions outside code blocks.
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.
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.
The full file from ztxz16/fastllm at commit a2ff521, republished under its Apache-2.0 licence (© ztxz16). 671 words, ~1,784 tokens.
.claude/skills/fastllm-triton-ops/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Use the existing Linear Triton prototype as the reference architecture: C++ decides whether an op is eligible, starts a local Python compiler server only on demand, asks it to emit a cached cubin plus metadata, then launches that cubin through the CUDA Driver API. Every Triton path must be environment-gated and must fall back to the original CUDA implementation on unsupported inputs or compile/launch failure.
Inspect the existing CUDA op path in src/devices/cuda/cudadevice.cpp.
Reshape, CanRun, Run, and lower-level helper functions.Add or extend the Python compile path in tools/fastllm_triton_server.py.
@triton.jit kernel for the new op.<op>_cache_paths(payload) with a deterministic filename that includes op name, dtype/layout variants, SM arch, compile-time tile sizes, and feature flags.compile_<op>(payload) that validates payload fields, compiles with ASTSource, writes .cubin, writes .json metadata, and returns the metadata.handle_compile(payload) by dispatching on payload["op"]./health and /compile stable; do not break existing "op": "linear" requests.Add a CUDA launch wrapper in src/devices/cuda/fastllm-triton-cuda.cu.
LoadTritonKernel for cubin/module/function caching.extern "C" wrapper per op, for example FastllmCudaTriton<Op>(...).FastllmCudaPrepareInput, FastllmCudaPrepareOutput, FastllmCudaFinishInput, and FastllmCudaFinishOutput when passing Data buffers.global_scratch and profile_scratch pointer arguments when needed by AOT metadata.false on load or launch failure so the C++ caller can fall back.Declare the wrapper in include/devices/cuda/fastllm-cuda.cuh.
kernelName, shared, numWarps, and tile sizes.Wire the op in src/devices/cuda/cudadevice.cpp.
.json fields.CudaTritonCacheDir, CudaTritonDataTypeName, CudaTritonHttpRequest, and CudaTritonEnsureServer.CudaTriton<Op>BaseName, CudaTritonRead<Op>Meta, CudaTritonRequest<Op>Kernel, and TryCudaTriton<Op>.FASTLLM_CUDA_TRITON; add an op-specific override such as FASTLLM_CUDA_TRITON_<OP>=0.TryCudaTriton<Op>(...) immediately before the original CUDA implementation.Update build wiring only when needed.
src/devices/cuda/fastllm-triton-cuda.cu is already in CMakeLists.txt.CMakeLists.txt and link dependencies without changing unrelated targets.The existing Triton infrastructure uses these environment variables:
FASTLLM_CUDA_TRITON=1: enable Triton-backed CUDA ops globally.FASTLLM_CUDA_TRITON_<OP>=0: disable one op while keeping the global flag on, for example FASTLLM_CUDA_TRITON_LINEAR=0.FASTLLM_CUDA_TRITON_CACHE_DIR: override cubin/json cache directory.FASTLLM_CUDA_TRITON_SERVER_HOST, FASTLLM_CUDA_TRITON_SERVER_PORT: choose compiler server endpoint.FASTLLM_CUDA_TRITON_PYTHON: choose Python interpreter.FASTLLM_CUDA_TRITON_SERVER_SCRIPT: choose server script path.FASTLLM_CUDA_TRITON_SERVER_LOG: choose compiler server log path.FASTLLM_CUDA_TRITON_SERVER_WAIT_MS: choose startup wait timeout.FASTLLM_CUDA_TRITON_<OP>_<PARAM>, matching Linear's BLOCK_M, BLOCK_N, BLOCK_K, NUM_WARPS, and NUM_STAGES.The metadata JSON returned by the compiler server should include at least:
{
"ok": true,
"op": "op_name",
"cubin": "/path/to/kernel.cubin",
"kernel": "compiled_kernel_name",
"shared": 0,
"num_warps": 4
}Add op-specific launch fields, such as tile sizes, only when the C++ launcher needs them.
Keep the C++ control flow shaped like this:
if (!CudaEnvFlagEnabled("FASTLLM_CUDA_TRITON")) {
return false;
}
const char *opEnv = std::getenv("FASTLLM_CUDA_TRITON_MYOP");
if (opEnv != nullptr && opEnv[0] != '\0' && !CudaEnvFlagEnabled("FASTLLM_CUDA_TRITON_MYOP")) {
return false;
}
if (!inputs_are_supported) {
return false;
}
Meta meta;
if (!ReadMeta(metaPath, meta)) {
if (!RequestKernel(..., meta)) {
return false;
}
}
return FastllmCudaTritonMyOp(meta.cubinPath.c_str(), meta.kernelName.c_str(), ...);Do not throw or call ErrorInFastLLM from the Triton trial path unless the original CUDA path would also fail. Unsupported Triton cases should return false.
Run validation in layers:
bash install.sh -DUSE_CUDA=ONFASTLLM_CUDA_TRITON=1 \
FASTLLM_CUDA_TRITON_CACHE_DIR=/tmp/fastllm-triton-optest \
../optest --op linear --device cuda:0 --param batch=4 --param in=8 --param out=6Adjust the optest command for the op being added.
FASTLLM_CUDA_TRITON=1 \
FASTLLM_CUDA_TRITON_CACHE_DIR=/tmp/fastllm-triton-qwen \
ftllm server ~/hfmodels/Qwen3-8B/ --device cuda:0 --host 127.0.0.1 --port 18080 --tokens 8192 --hide_inputSend one non-streaming request to /v1/chat/completions and confirm it completes.
FASTLLM_CUDA_TRITON.FASTLLM_CUDA_TRITON is unset.© ztxz16, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .codex/skills/fastllm-triton-ops of ztxz16/fastllm.
Open the folder on GitHubat commit a2ff521
Fastllm Triton Ops 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Fastllm Triton Ops this skillztxz16/fastllm | 5.1k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Paddle BuildPaddlePaddle/Paddle | 24k | — | ~1k | Automated safety check: Pass | Apache-2.0 | |
| Leetcuda Cpp Kernelxlite-dev/LeetCUDA | 12k | — | ~3.5k | Automated safety check: Pass | GPL-3.0 | |
| Ako4allTongmingLAIC/AKO4ALL | 369 | — | ~4k | Automated safety check: Pass | MIT | |
| Cuda Cpp Kernelvipshop/cache-dit | 1.3k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Paddle Op DevPaddlePaddle/Paddle | 24k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 |
PaddlePaddle/Paddle
A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.
xlite-dev/LeetCUDA
LeetCUDA 中文技术书(584 页,XeLaTeX 源)按需查阅 skill——写、优化、调试或 review CUDA C++/PTX kernel 时的权威参考路由层。当任务涉及:GPU 架构/Roofline/ occupancy、向量化与 coalescing、warp/block reduce、softmax(online/LSE merge)、…
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
vipshop/cache-dit
A skill your agent uses when writing, debugging, porting, reviewing, or optimizing CUDA C++ or PTX kernels; investigating CUDA Runtime or Driver API behavior; profiling kernels with Nsight Systems…
PaddlePaddle/Paddle
PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…
slowlyC/agent-gpu-skills
Write, debug, and optimize CUTLASS, CuTe, and CuTeDSL GPU kernels from local upstream source, examples, and headers.
ztxz16/fastllm
当用户要求提交代码、整理提交、准备 commit、拆分 commit、push,或指定提交与推送规范时使用。默认使用中文提交信息,将差异较大的改动拆分为多个提交;推送前先执行 fetch、stash、rebase、stash pop,再 push。
Categories
Guide for adding Triton-backed CUDA operators to FastLLM. An agent skill from ztxz16/fastllm. Fastllm Triton Ops is an agent skill from ztxz16/fastllm. Guide for adding Triton-backed CUDA operators to FastLLM.
Fastllm Triton Ops fits situations like: modifying FastLLM CUDA op code to add; benchmark Triton-generated kernels through tools/fastllmtritonserver.py; src/devices/cuda/cudadevice.cpp; src/devices/cuda/fastllm-triton-cuda.cu.
Run `npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a claude-code`. Or copy the skill folder (.codex/skills/fastllm-triton-ops in ztxz16/fastllm) into .claude/skills/fastllm-triton-ops in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a codex`. Or copy the skill folder (.codex/skills/fastllm-triton-ops in ztxz16/fastllm) into .agents/skills/fastllm-triton-ops in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ztxz16/fastllm --skill fastllm-triton-ops -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fastllm-triton-ops, .gemini/skills/fastllm-triton-ops, .github/skills/fastllm-triton-ops and .opencode/skills/fastllm-triton-ops in your project.
Going by SKILL.md and its folder, Fastllm Triton Ops needs the command-line tools its instructions call (bash). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Fastllm Triton Ops is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Fastllm Triton Ops: Paddle Build (PaddlePaddle/Paddle, 24k stars), Leetcuda Cpp Kernel (xlite-dev/LeetCUDA, 12k stars), Ako4all (TongmingLAIC/AKO4ALL, 369 stars) and Cuda Cpp Kernel (vipshop/cache-dit, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ztxz16 (a GitHub user) maintains it in ztxz16/fastllm, which has 5,101 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 10, 2026.
Source: ztxz16/fastllm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.