pytorch/executorch · Archived

export

Export a PyTorch model to .pte format for ExecuTorch. Use when converting models, lowering to edge, or generating .pte files.

First seen Jul 3, 2026

Installation

$ npx skills add pytorch/executorch --skill export

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pytorch/executorch.

npx skills add pytorch/executorch

Browse all from pytorch/executorch

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 5.0K
License LICENSE
Default branch main
Open issues 930
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 952 B
  • docs SUMMARY.md 139 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 5 installs

SKILL.md

Export

Basic pattern

from executorch.exir import to_edge_transform_and_lower
from torch.export import export

exported = export(model.eval(), example_inputs)
edge = to_edge_transform_and_lower(exported)
with open("model.pte", "wb") as f:
    f.write(edge.to_executorch().buffer)

Model-specific scripts

Model Script
Llama examples/models/llama/export_llama.py
Whisper examples/models/whisper/
Parakeet examples/models/parakeet/exportparakeettdt.py

Debugging

  • Draft export: export(model, inputs, strict=False)
  • tlparse: TORCH_LOGS="+dynamo,+export" python script.py 2>&1 | tlparse

Guides

  • [torch.export basics](guides/torch-export.md) — torch.export.export(), dynamic shapes, strict mode, debugging