Données & RechercheSûr100100/100
Export (PyTorch)
Export a PyTorch model to .pte format for ExecuTorch. Use when converting models, lowering to edge, or generating .pte files.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs export__pytorch-executorch__claude-skills-7bed7b839b32PyTorch
pytorch/executorch
Contenu à copier
---
name: export
description: Export a PyTorch model to .pte format for ExecuTorch. Use when converting models, lowering to edge, or generating .pte files.
metadata:
origin: PyTorch
---
# Export
## Basic pattern
```python
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/export_parakeet_tdt.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, debuggingColle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Export (PyTorch)
Draft export: `export(model, inputs, strict=False)`
tlparse: `TORCH_LOGS="+dynamo,+export" python script.py 2>&1 | tlparse`
[torch.export basics](guides/torch-export.md) — `torch.export.export()`, dynamic shapes, strict mode, debugging
Comment utiliser Export (PyTorch)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Export (PyTorch)
Dis simplement à ton agent quelque chose comme :
Applique le skill export__pytorch-executorch__claude-skills-7bed7b839b32 à cette tâche
Utilise export__pytorch-executorch__claude-skills-7bed7b839b32 pour améliorer cette implémentation
Passe en revue ce sujet avec export__pytorch-executorch__claude-skills-7bed7b839b32