Buckets:

hf-doc-build/doc / transformers /main /en /executorch.md
rtrm's picture
|
download
raw
725 Bytes

ExecuTorch

ExecuTorch runs PyTorch models on mobile and edge devices. Export your Transformers models to the ExecuTorch format with Optimum ExecuTorch with the command below.

optimum-cli export executorch \
    --model "HuggingFaceTB/SmolLM2-135M-Instruct" \
    --task "text-generation" \
    --recipe "xnnpack" \
    --use_custom_sdpa \
    --use_custom_kv_cache \
    --qlinear 8da4w \
    --qembedding 8w \
    --output_dir="hf_smollm2"

Run optimum-cli export executorch --help to see all export options. For detailed export instructions, check the README.

Xet Storage Details

Size:
725 Bytes
·
Xet hash:
7d883c7941c4a8cad0acc1a81db066f08af1ed155ff8e05ec096f2af77e1c7a9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.