profile · pytorch — скилл для Claude Code: профилирование ExecuTorch
Скилл profile для Claude Code помогает профилировать исполнение моделей ExecuTorch, разбирать время операторов и искать медленные участки.
BSD-3-Clause 21 установок ★ 5 187 обновлён 2026-10-29
npx skills add pytorch/executorch --skill profile -a claude-codeЧто делает profile
profile включает сбор ETDump при загрузке программы ExecuTorch, запускает метод модели и сохраняет результаты для анализа. Затем Inspector выводит данные в табличном виде.
Для анализа нужны файлы model.etrecord и etdump.etdp. При загрузке программы задаются enable_etdump=True и размер буфера отладки; результаты сохраняются в etdump.etdp и debug.bin.
Какие задачи решает
- измерить производительность модели ExecuTorch
- разобрать время выполнения операторов
- найти медленные участки модели
- сохранить данные профилирования для анализа
Примеры запросов агенту
- Профилируй исполнение модели ExecuTorch и покажи время операторов.
- Найди, какие операторы замедляют модель.
- Собери ETDump для
model.pteи выведи результаты через Inspector.
Как установить profile
1Через Skills CLI (Vercel)
npx skills add pytorch/executorch --skill profile -a claude-code2Вручную: положить файлы
~/.claude/skills/profile/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/profile/
1Через Skills CLI (Vercel)
npx skills add pytorch/executorch --skill profile -a codex2Вручную: положить файлы
.agents/skills/profile/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add pytorch/executorch --skill profile -a cursor2Вручную: положить файлы
.cursor/skills/profile/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install pytorch/executorch .claude/skills/profile2Вручную: положить файлы
.github/skills/profile/SKILL.md1Через Skills CLI (Vercel)
npx skills add pytorch/executorch --skill profile -a gemini-cli2Командой платформы
gemini skills install https://github.com/pytorch/executorch --path .claude/skills/profileВручную: положить файлы
.devin/skills/profile/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add pytorch/executorch --skill profile -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о profile
Как установить profile в Claude Code?
Выполни npx skills add pytorch/executorch --skill profile -a claude-code. Файл скилла находится по пути ~/.claude/skills/profile/SKILL.md.
Что делает profile?
Скилл собирает данные о выполнении модели ExecuTorch, сохраняет ETDump и использует Inspector для табличного просмотра результатов.
Какие файлы нужны для анализа в Inspector?
Inspector получает model.etrecord и сохранённый дамп etdump.etdp.
Исходный текст
SKILL.md · BSD-3-Clause
---
name: profile
description: Profile ExecuTorch model execution. Use when measuring performance, analyzing operator timing, or debugging slow models.
---
# Profile
## 1. Enable ETDump when loading
```python
program = runtime.load_program("model.pte", enable_etdump=True, debug_buffer_size=int(1e7))
```
## 2. Execute and save
```python
outputs = program.load_method("forward").execute(inputs)
program.write_etdump_result_to_file("etdump.etdp", "debug.bin")
```
## 3. Analyze with Inspector
```python
from executorch.devtools import Inspector
inspector = Inspector(etrecord="model.etrecord", etdump_path="etdump.etdp")
inspector.print_data_tabular()
```
© pytorch · BSD-3-Clause · pytorch/executorch
Похожие скиллы
Каталог скиллов SKILL.md →Сначала — profile от других авторов.