Segment Anything Model Guide
Orchestra-Research/AI-Research-SKILLs
Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.
A skill your agent uses when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor…
$ npx skills add PaddlePaddle/Paddle --skill paddle-design-distributed -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-design-distributed --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/PaddlePaddle/Paddle.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/paddle-design-distributed .claude/skills/paddle-design-distributed && 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 "paddle-design-distributed" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-design-distributed into .claude/skills/paddle-design-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-design-distributed", 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/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-design-distributedType 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 PaddlePaddle/Paddle --skill paddle-design-distributed -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-design-distributed --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/paddle-design-distributed .agents/skills/paddle-design-distributed && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "paddle-design-distributed" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-design-distributed into .agents/skills/paddle-design-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-design-distributed", 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 PaddlePaddle/Paddle --skill paddle-design-distributed -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-design-distributed --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/paddle-design-distributed .cursor/skills/paddle-design-distributed && 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 "paddle-design-distributed" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-design-distributed into .cursor/skills/paddle-design-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-design-distributed", 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/PaddlePaddle/Paddle.git --path .agents/skills/paddle-design-distributed--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 PaddlePaddle/Paddle --skill paddle-design-distributed -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-design-distributed --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/paddle-design-distributed .gemini/skills/paddle-design-distributed && 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 "paddle-design-distributed" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-design-distributed into .gemini/skills/paddle-design-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-design-distributed", 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 PaddlePaddle/Paddle paddle-design-distributedInstalls 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 PaddlePaddle/Paddle --skill paddle-design-distributed -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/paddle-design-distributed .github/skills/paddle-design-distributed && 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 "paddle-design-distributed" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-design-distributed into .github/skills/paddle-design-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-design-distributed", 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 PaddlePaddle/Paddle --skill paddle-design-distributed -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-design-distributed --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/paddle-design-distributed .opencode/skills/paddle-design-distributed && 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 "paddle-design-distributed" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-design-distributed into .opencode/skills/paddle-design-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-design-distributed", 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.
paddle-design-distributedA skill your agent uses when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor…
Paddle Design Distributed is an agent skill from PaddlePaddle/Paddle. Use when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor, SPMD inference rules, pipeline scheduling, or autoparallel Engine.
Its SKILL.md is about 660 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/distributed-primer.md` and `references/spmd-rules.md`).
It sits in AI & LLM Engineering, covering Deep learning. It works with Python. The repository describes itself as: PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署). The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 5434c21. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From 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.
Paddle Design Distributed loads about 660 tokens when it runs, and up to ~3.4k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 152 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 PaddlePaddle/Paddle at commit 5434c21, republished under its Apache-2.0 licence (© PaddlePaddle). 152 words, ~660 tokens.
.claude/skills/paddle-design-distributed/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.| 范式 | 核心思想 | 通信原语 |
|---|---|---|
| Data Parallel | 复制模型,切分数据,AllReduce 梯度 | AllReduce |
| Group Sharded (ZeRO) | Stage1 切 optimizer / Stage2 + 切 grad / Stage3 + 切 weight | Broadcast, ReduceScatter, AllGather |
| Model Parallel (Tensor) | Column Parallel 切权重列 / Row Parallel 切权重行 | AllReduce / AllGather |
| Pipeline Parallel | F-then-B / 1F1B 交错前反向 | Send / Recv (P2P) |
| Sequence Parallel | 沿 sequence 维度切分 LayerNorm/Dropout | AllGather / ReduceScatter |
| 范式 | 入口 | 适用场景 |
|---|---|---|
| 手动并行 | fleet.meta_parallel | 灵活但代码量大,适合深度定制 |
| 半自动动态图 | ProcessMesh + shard_tensor | 用户标注切分方式,框架自动推导通信,兼具易用性和灵活性 |
| 半自动静态图 | auto_parallel.Engine | 基于 PIR 做全局优化,追求极致性能 |
import paddle.distributed as dist
mesh = dist.ProcessMesh([0, 1, 2, 3], dim_names=["x"])
x = dist.shard_tensor(x, mesh, [dist.Shard(0)]) # 沿 dim 0 切分半自动并行的核心:用户只标注部分 Tensor 的切分方式(Placement),框架自动推导每个算子的输入输出应如何切分,必要时插入通信算子。
matmul(X[M,K], Y[K,N]) -> Z[M,N] → mk,kn->mn使用 DimTrans 系统描述维度映射:InputDim / Flatten / Split / Singleton。
| 调度策略 | 特点 |
|---|---|
| F-then-B | 所有前向完毕再反向,简单但显存占用大 |
| 1F1B | warm-up → steady(前反交替)→ cool-down,显存减少约 37.5% |
| 场景 | 参考文档 |
|---|---|
| 分布式策略原理(DP/Sharded/MP/PP/SP) | references/distributed-primer.md |
| SPMD 推导规则与 Pipeline 调度 | references/spmd-rules.md |
| 模块 | 路径 |
|---|---|
| 分布式总目录 | python/paddle/distributed/ |
| ProcessMesh / shard_tensor API | python/paddle/distributed/auto_parallel/ |
| auto_parallel Engine | python/paddle/distributed/auto_parallel/high_level_api.py |
| fully_shard(ZeRO-like) | python/paddle/distributed/auto_parallel/fully_shard.py |
| SPMD 推导规则 C++ | paddle/phi/infermeta/spmd_rules/ |
| SPMD 规则注册 | paddle/phi/infermeta/spmd_rules/rules.h |
| Pipeline 调度 Pass | python/paddle/distributed/passes/pipeline_scheduler_pass/ |
| 分布式策略配置 | python/paddle/distributed/auto_parallel/strategy.py |
| SPMD 规则测试 | test/auto_parallel/spmd_rules/ |
© PaddlePaddle, 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 2 other files (references) in .agents/skills/paddle-design-distributed of PaddlePaddle/Paddle.
Open the folder on GitHubat commit 5434c21
Paddle Design Distributed 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 |
|---|---|---|---|---|---|---|
| Paddle Design Distributed this skillPaddlePaddle/Paddle | 24k | — | ~660 | Automated safety check: Pass | Apache-2.0 | |
| Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs | 13k | 8 repos | ~3.3k | Automated safety check: Pass | MIT | |
| CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs | 13k | 7 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Onnxtxtonnx/onnx | 22k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Scaffold Examplecomet-ml/comet-examples | 175 | — | ~1k | Automated safety check: Pass | None | |
| PyTorch Lightning TrainingOrchestra-Research/AI-Research-SKILLs | 13k | 6 repos | ~2.3k | Automated safety check: Pass | MIT |
Orchestra-Research/AI-Research-SKILLs
Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.
Orchestra-Research/AI-Research-SKILLs
Explains OpenAI's CLIP model for zero-shot image classification, image-text similarity, semantic image search and content moderation, with install steps and code patterns.
onnx/onnx
Read or write ONNX text format ("onnxtxt"). An agent skill from onnx/onnx.
comet-ml/comet-examples
Scaffold a brand-new Comet example in this repo from the canonical template under templates/integration-example/.
Orchestra-Research/AI-Research-SKILLs
Shows how to organize PyTorch training with Lightning's LightningModule and Trainer, covering validation, DDP, callbacks and learning-rate scheduling.
NVIDIA/Megatron-LM
Shows how to launch distributed Megatron-LM training on a SLURM cluster: sbatch skeleton, torch.distributed.run setup, CUDA_DEVICE_MAX_CONNECTIONS rules and failure diagnosis.
PaddlePaddle/Paddle
A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle 3.0 compiler full pipeline: SOT (Symbolic Opcode Translator) for bytecode-level dy2st graph capture, PIR (Paddle IR) for SSA-based intermediate…
PaddlePaddle/Paddle
A skill your agent uses when navigating Paddle eager-mode (dynamic graph) source code, tracing forward/backward execution, debugging autograd issues, understanding PyLayer, or investigating…
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle's PHI kernel system: registering new kernels, debugging kernel selection/dispatch, understanding code auto-generation from YAML, or implementing…
PaddlePaddle/Paddle
在 Paddle 代码库中定位问题并输出高质量调试报告的专用技能。当遇到以下场景时优先使用:(1) Paddle 框架 bug 调试,(2) 算子实现问题排查,(3) 训练脚本异常诊断,(4) 分布式训练故障定位,(5) CUDA/GPU 相关错误处理,(6) 需要生成结构化调试报告。
PaddlePaddle/Paddle
PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…
Works with
Categories
A skill your agent uses when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor…. Paddle Design Distributed is an agent skill from PaddlePaddle/Paddle. Use when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor, SPMD inference rules, pipeline scheduling, or autoparallel Engine.
Paddle Design Distributed fits situations like: working with Paddles distributed training system: understanding parallelism strategies (DP; semi-automatic parallel with ProcessMesh + shardtensor; SPMD inference rules; pipeline scheduling.
Run `npx skills add PaddlePaddle/Paddle --skill paddle-design-distributed -a claude-code`. Or copy the skill folder (.agents/skills/paddle-design-distributed in PaddlePaddle/Paddle) into .claude/skills/paddle-design-distributed in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PaddlePaddle/Paddle --skill paddle-design-distributed -a codex`. Or copy the skill folder (.agents/skills/paddle-design-distributed in PaddlePaddle/Paddle) into .agents/skills/paddle-design-distributed 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 PaddlePaddle/Paddle --skill paddle-design-distributed -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/paddle-design-distributed, .gemini/skills/paddle-design-distributed, .github/skills/paddle-design-distributed and .opencode/skills/paddle-design-distributed in your project.
SKILL.md names no scripts, command-line tools or credentials: Paddle Design Distributed is instructions for the agent only. 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.
Paddle Design Distributed 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 660 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Paddle Design Distributed: Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars), CLIP Image-Text Matching (Orchestra-Research/AI-Research-SKILLs, 13k stars), Onnxtxt (onnx/onnx, 22k stars) and Scaffold Example (comet-ml/comet-examples, 175 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PaddlePaddle (a GitHub organization) maintains it in PaddlePaddle/Paddle, which has 24,121 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 9, 2026.
Source: PaddlePaddle/Paddle on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.