Skip to main content
skill CX Codex

profile · pytorch — Claude Code skill for ExecuTorch profiling

profile is a Claude Code skill for profiling ExecuTorch model runs, inspecting operator timings, and tracking down slow models.

BSD-3-Clause 21 installs ★ 5,187 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pytorch/executorch --skill profile -a claude-code
Open on GitHub

What profile does

profile enables ETDump collection while an ExecuTorch program loads, runs the model method, and writes the captured results to files. Inspector then prints the collected data as a table.

Analysis uses model.etrecord together with etdump.etdp. Loading also sets enable_etdump=True and a debug buffer size; the run writes etdump.etdp and debug.bin.

What it helps with

  • measure ExecuTorch model performance
  • inspect operator execution times
  • locate slow parts of a model
  • save profiling output for analysis

Example prompts for the agent

  • Profile this ExecuTorch model and show operator timings.
  • Find the operators slowing down this model.
  • Collect ETDump for model.pte and display the results with Inspector.

How to install profile

1Skills CLI (Vercel)

npx skills add pytorch/executorch --skill profile -a claude-code

2Manually: put the files in place

~/.claude/skills/profile/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/profile/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about profile

How do I install profile in Claude Code?

Run npx skills add pytorch/executorch --skill profile -a claude-code. The skill file is at ~/.claude/skills/profile/SKILL.md.

What does profile do?

It captures ExecuTorch model execution data in ETDump files, then uses Inspector to display the results in a table.

Which files does Inspector need for analysis?

Inspector takes model.etrecord and the saved dump etdump.etdp.

Source text

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

Similar skills

SKILL.md skills catalog →

profile by other authors comes first.

profile Data With Baraa This Claude Code skill inspects incoming files or tables and produces a data profile. It runs before work begins on a data contract or pipeline. CX Codex +1 ★ 106repo stars github-profile-optimization Samuel Berthe github-profile-optimization is a Claude Code skill that audits and restructures GitHub personal or organization profiles to support hiring or project adoption. CX Codex +1 13,400installs ideal-customer-profile phuryn Synthesizes customer survey data and interview transcripts into an Ideal Customer Profile (ICP). Built for product-market fit analysis and value segmentation. CX Codex +1 3,200installs sender-profile-architect sentdm Designs Sent v3 Sender Profile architecture for multi-tenant and multi-channel applications. It helps set up isolation, API key scoping, WABA, and billing boundaries. CX Codex +1 2,900installs sent-profile-provisioning sentdm The sent-profile-provisioning skill drives the Sender Profile lifecycle in Sent: list, inspect, create, update and delete over MCP tools, plus the wider REST flow. Useful when onboarding a tenant and getting a profile ready to send. CX Codex +1 2,700installs creator-profile-teardown ScrapeCreators creator-profile-teardown analyzes a public creator or brand account for positioning, content pillars, outlier posts and repeatable patterns. Use it when you need research before adapting content ideas. CX Codex +1 1,900installs fsi-strip-profile official anthropics fsi-strip-profile is a Claude Code skill that builds company-profile slides for pitch books and deal materials. It asks about scope and focus first, then waits for approval after each slide. CX Codex +1 1,800installs

From the same set4

Project sponsors

Companies that keep this analytics open