# ExecuTorch

**URL:** https://discuss.pytorch.org/c/executorch/42.md

[Latest](https://discuss.pytorch.org/latest.md) · [Categories](https://discuss.pytorch.org/categories.md)

---

## [About the ExecuTorch category](https://discuss.pytorch.org/t/about-the-executorch-category/190365)

<div class="topic-metadata">

**Author:** [@albanD](https://discuss.pytorch.org/u/albanD)\
**Replies:** 0

</div>

A category of posts relating to ExecuTorch. The code is available at GitHub - pytorch/executorch: End-to-end solution for enabling on-device AI across mobile and edge devices for PyTorch models, and documentation at htt…

---

## [Are MPS operators rewritten?](https://discuss.pytorch.org/t/are-mps-operators-rewritten/224422)

<div class="topic-metadata">

**Author:** [@spiegelball](https://discuss.pytorch.org/u/spiegelball)\
**Replies:** 8\
**Last updated:** [April 20, 2026, 8:59am UTC](https://discuss.pytorch.org/t/are-mps-operators-rewritten/224422 "2026-04-20T08:59:53Z")

</div>

Are the operators in the MPS backend rewritten from scratch or taken from libtorch’s MPS backend?

---

## [Backend-agnostic serialization / inference workflow](https://discuss.pytorch.org/t/backend-agnostic-serialization-inference-workflow/224410)

<div class="topic-metadata">

**Author:** [@spiegelball](https://discuss.pytorch.org/u/spiegelball)\
**Replies:** 7\
**Last updated:** [February 24, 2026, 8:50am UTC](https://discuss.pytorch.org/t/backend-agnostic-serialization-inference-workflow/224410 "2026-02-24T08:50:53Z")

</div>

Is there currently a workflow for torch.exporting / serializing a nn.Module and being able to load and run inference on it on all of the available executorch backends (like it is possible with torchscript). Or do I need …

---

## [VGG16 works, but ViT-H/14 doesn't?](https://discuss.pytorch.org/t/vgg16-works-but-vit-h-14-doesnt/224166)

<div class="topic-metadata">

**Author:** [@Xavante](https://discuss.pytorch.org/u/Xavante)\
**Replies:** 6\
**Last updated:** [January 30, 2026, 9:25pm UTC](https://discuss.pytorch.org/t/vgg16-works-but-vit-h-14-doesnt/224166 "2026-01-30T21:25:47Z")

</div>

I’m running a modified version of the qualcomm deeplab\_v3.py scripts to deploy models to a Samsung S25 with the correct SM8750 model specified. When I run a VGG16 architecture it seems to work, my quantization is horrend…

---

## [Support of Dynamic and Static Shape in One Module](https://discuss.pytorch.org/t/support-of-dynamic-and-static-shape-in-one-module/208561)

<div class="topic-metadata">

**Author:** [@chenghua\_wang](https://discuss.pytorch.org/u/chenghua_wang)\
**Replies:** 8\
**Last updated:** [December 16, 2025, 12:36am UTC](https://discuss.pytorch.org/t/support-of-dynamic-and-static-shape-in-one-module/208561 "2025-12-16T00:36:35Z")

</div>

I’m trying to use ExecuTorch to deploy a LLM with a QNN backend. Unfortunately, QNN doesn’t support dynamic shapes, so some trick is needed to utilise up the NPU. A simple idea is shown below: Divide the Prompt into …

---

## [Executorch -QNN backend](https://discuss.pytorch.org/t/executorch-qnn-backend/216275)

<div class="topic-metadata">

**Author:** [@vinay\_perumalla](https://discuss.pytorch.org/u/vinay_perumalla)\
**Replies:** 4\
**Last updated:** [December 16, 2025, 12:34am UTC](https://discuss.pytorch.org/t/executorch-qnn-backend/216275 "2025-12-16T00:34:39Z")

</div>

I have locally compiled llama 3.2-3b model followed steps in this link https://github.com/pytorch/executorch/blob/main/examples/demo-apps/android/LlamaDemo/docs/delegates/qualcomm\_README.md Converted model to .pte with …

---

## [Workflow for lowerimg a checkpoint from civitai](https://discuss.pytorch.org/t/workflow-for-lowerimg-a-checkpoint-from-civitai/223538)

<div class="topic-metadata">

**Author:** [@jdumke](https://discuss.pytorch.org/u/jdumke)\
**Replies:** 2\
**Last updated:** [November 10, 2025, 7:30pm UTC](https://discuss.pytorch.org/t/workflow-for-lowerimg-a-checkpoint-from-civitai/223538 "2025-11-10T19:30:19Z")

</div>

Hello all, I’m going fully bananas by reading tons of documentation \[1, 2\] and many more. The point of struggle is extracting the state\_dict from the safetensors file with the checkpoint. I can load the data from the …

---

## [Executorch Model output is not same as the original Model](https://discuss.pytorch.org/t/executorch-model-output-is-not-same-as-the-original-model/222990)

<div class="topic-metadata">

**Author:** [@nbansal90](https://discuss.pytorch.org/u/nbansal90)\
**Replies:** 0\
**Last updated:** [September 9, 2025, 11:40pm UTC](https://discuss.pytorch.org/t/executorch-model-output-is-not-same-as-the-original-model/222990 "2025-09-09T23:40:20Z")

</div>

Hello, I am using Executorch for deployment and converting my model from base model to Executorch. Now when I am trying to verify the output from my Executorch model (Using Python based Executorch Runtime APIs), its fai…

---

## [Why do we implement models like Llama again in examples/models/ and how is it different from the HF implementation for the same?](https://discuss.pytorch.org/t/why-do-we-implement-models-like-llama-again-in-examples-models-and-how-is-it-different-from-the-hf-implementation-for-the-same/219860)

<div class="topic-metadata">

**Author:** [@anzr299](https://discuss.pytorch.org/u/anzr299)\
**Replies:** 1\
**Last updated:** [May 28, 2025, 7:29am UTC](https://discuss.pytorch.org/t/why-do-we-implement-models-like-llama-again-in-examples-models-and-how-is-it-different-from-the-hf-implementation-for-the-same/219860 "2025-05-28T07:29:22Z")

</div>

Hi everyone, I noticed that in executorch, the models are also implemented in examples/model/ which are used for exporting the model to ExportedProgram. But my question is how is this model implementation different from…

---

## [Lowering exir to quantized operations (no delegate)](https://discuss.pytorch.org/t/lowering-exir-to-quantized-operations-no-delegate/216772)

<div class="topic-metadata">

**Author:** [@jpiat](https://discuss.pytorch.org/u/jpiat)\
**Replies:** 2\
**Last updated:** [May 22, 2025, 12:54pm UTC](https://discuss.pytorch.org/t/lowering-exir-to-quantized-operations-no-delegate/216772 "2025-05-22T12:54:48Z")

</div>

Hi, i’m working with executorch and torch.ao to enable quantization aware training in our workflow and possibly lowering a quantized implementation using executorch but no delegate. I wrote a Quantizer that can be confi…

---

## [Testing .pte model with all ones give different result on PC and Android](https://discuss.pytorch.org/t/testing-pte-model-with-all-ones-give-different-result-on-pc-and-android/217962)

<div class="topic-metadata">

**Author:** [@Sylte](https://discuss.pytorch.org/u/Sylte)\
**Replies:** 2\
**Last updated:** [March 18, 2025, 3:15pm UTC](https://discuss.pytorch.org/t/testing-pte-model-with-all-ones-give-different-result-on-pc-and-android/217962 "2025-03-18T15:15:16Z")

</div>

Edit: Admins please delete this thread. I found out I was using an old model file on the handset. The entire thing is user error. I’m very sorry /Sylte

---

## [Rust lang for runtime](https://discuss.pytorch.org/t/rust-lang-for-runtime/204760)

<div class="topic-metadata">

**Author:** [@yukino](https://discuss.pytorch.org/u/yukino)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 9:48am UTC](https://discuss.pytorch.org/t/rust-lang-for-runtime/204760 "2025-03-04T09:48:12Z")

</div>

Has the Executorch team ever considered using the Rust programming language for the runtime before? C++ was chosen because it is friendly for embedded systems, but I think Rust might also be a good choice for the same re…

---

## [Exporting function with size value as args using executorch](https://discuss.pytorch.org/t/exporting-function-with-size-value-as-args-using-executorch/216543)

<div class="topic-metadata">

**Author:** [@111309](https://discuss.pytorch.org/u/111309)\
**Replies:** 2\
**Last updated:** [February 11, 2025, 5:13pm UTC](https://discuss.pytorch.org/t/exporting-function-with-size-value-as-args-using-executorch/216543 "2025-02-11T17:13:21Z")

</div>

Hi all, I’m working on exporting a model containing a function with 3 args indicating the size of output tensors. The model looks something like the following: class Module(nn.Module): def forward(self, x: torch.Ten…

---

## [Executorch Vulkan delegate on embedded Linux](https://discuss.pytorch.org/t/executorch-vulkan-delegate-on-embedded-linux/214282)

<div class="topic-metadata">

**Author:** [@Alex\_G\_Gener](https://discuss.pytorch.org/u/Alex_G_Gener)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 4:24pm UTC](https://discuss.pytorch.org/t/executorch-vulkan-delegate-on-embedded-linux/214282 "2025-01-09T16:24:19Z")

</div>

Hello. I’m using a embedded linux platform and want to deploy pytorch models on the ARM MALI GPU. I’m setting the Vulkan delegate but having problems when building the runner with Vulkan. All tutorials I’ve found are rel…

---

## [Use Executorch's Module Extension API on arm64 Mac](https://discuss.pytorch.org/t/use-executorchs-module-extension-api-on-arm64-mac/215068)

<div class="topic-metadata">

**Author:** [@simonsasse](https://discuss.pytorch.org/u/simonsasse)\
**Replies:** 3\
**Last updated:** [January 8, 2025, 11:39pm UTC](https://discuss.pytorch.org/t/use-executorchs-module-extension-api-on-arm64-mac/215068 "2025-01-08T23:39:57Z")

</div>

I want to run a small MLP in the Executorch runtime (eventually on android, currently on arm64 Mac). For the start I just cloned the Executorch Repo and set everything up. I can build and run the executor\_runner withou…

---

## [How can I use ExecuTorch to deploy a model to Infineon TC3xxx MicroController?](https://discuss.pytorch.org/t/how-can-i-use-executorch-to-deploy-a-model-to-infineon-tc3xxx-microcontroller/202420)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discuss.pytorch.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 8:47pm UTC](https://discuss.pytorch.org/t/how-can-i-use-executorch-to-deploy-a-model-to-infineon-tc3xxx-microcontroller/202420 "2024-12-02T20:47:45Z")

</div>

Hello, Is it possible? If yes,any example is highly appreciated.

---

## [Advice on using executorch on iOS](https://discuss.pytorch.org/t/advice-on-using-executorch-on-ios/212786)

<div class="topic-metadata">

**Author:** [@ericbomgardner](https://discuss.pytorch.org/u/ericbomgardner)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 8:01pm UTC](https://discuss.pytorch.org/t/advice-on-using-executorch-on-ios/212786 "2024-12-02T20:01:13Z")

</div>

I’m trying to use executorch to run a Llama 3.2 quantized 3B QAT+LoRA model in an iOS app. The demo app works with the .pte file I generated for that model, but then when I went to try to add executorch into my app, it s…

---

## [Errors when running Llama3 8b on executorch QNN backend](https://discuss.pytorch.org/t/errors-when-running-llama3-8b-on-executorch-qnn-backend/212689)

<div class="topic-metadata">

**Author:** [@Jiawei\_Liu1](https://discuss.pytorch.org/u/Jiawei_Liu1)\
**Replies:** 3\
**Last updated:** [December 2, 2024, 7:27pm UTC](https://discuss.pytorch.org/t/errors-when-running-llama3-8b-on-executorch-qnn-backend/212689 "2024-12-02T19:27:45Z")

</div>

I was following the executorch tutorial sesion “Building and Running Llama 3 8B Instruct with Qualcomm AI Engine Direct Backend”. I’ve finished converting the llama3 8b and the llama\_main runner compiling. But I got this…

---

## [Exporting a XNNPACKQuantized graph using torch.export into ExportedProgram is failing with \_dynamo.exc.TorchRuntimeError aten.gather.default Expected dtype int64 for index, but got torch.float32](https://discuss.pytorch.org/t/exporting-a-xnnpackquantized-graph-using-torch-export-into-exportedprogram-is-failing-with-dynamo-exc-torchruntimeerror-aten-gather-default-expected-dtype-int64-for-index-but-got-torch-float32/213241)

<div class="topic-metadata">

**Author:** [@dcpiyush](https://discuss.pytorch.org/u/dcpiyush)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 7:25pm UTC](https://discuss.pytorch.org/t/exporting-a-xnnpackquantized-graph-using-torch-export-into-exportedprogram-is-failing-with-dynamo-exc-torchruntimeerror-aten-gather-default-expected-dtype-int64-for-index-but-got-torch-float32/213241 "2024-12-02T19:25:54Z")

</div>

Hello All, I’m new to Executorch and was trying to export mDeBERTA model to run on Edge devices. I’m able to export mDeBERTa model to ExportedGraph and then use the XNNPACKQuantizer to get a quantized model from calibr…

---

## [On-device ExecuTorch LLM API](https://discuss.pytorch.org/t/on-device-executorch-llm-api/212392)

<div class="topic-metadata">

**Author:** [@Alex\_Zhou1](https://discuss.pytorch.org/u/Alex_Zhou1)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 7:20pm UTC](https://discuss.pytorch.org/t/on-device-executorch-llm-api/212392 "2024-12-02T19:20:37Z")

</div>

Hi all, So I want to make a mobile game where the NPCs are basically chatbots. To do so I need to quantize LLMs and deploy them onto mobiles. I have been reading ExecuTorch tutorials but not completely, and since my foc…

---

## [Executorch - Encoder/Decoder models?](https://discuss.pytorch.org/t/executorch-encoder-decoder-models/213305)

<div class="topic-metadata">

**Author:** [@cptspacemanspiff](https://discuss.pytorch.org/u/cptspacemanspiff)\
**Replies:** 1\
**Last updated:** [November 22, 2024, 11:11pm UTC](https://discuss.pytorch.org/t/executorch-encoder-decoder-models/213305 "2024-11-22T23:11:43Z")

</div>

Not sure if this is the right place, but I am trying to understand what people would recommend for implementing an encoder-decoder architecture in executorch. Would you implement them as 2 separate models and call the en…

---

## [Executorch as a native c++ lib in Android](https://discuss.pytorch.org/t/executorch-as-a-native-c-lib-in-android/211034)

<div class="topic-metadata">

**Author:** [@mads-oestergaard](https://discuss.pytorch.org/u/mads-oestergaard)\
**Replies:** 3\
**Last updated:** [November 4, 2024, 11:36am UTC](https://discuss.pytorch.org/t/executorch-as-a-native-c-lib-in-android/211034 "2024-11-04T11:36:32Z")

</div>

Hi, I’m trying to build an application that uses executorch with oboe in Android. As oboe is a native c++ lib in android, it makes sense to use the c++ version of executorch, do all the processing in c++ and then have a…

---

## [Does Executorch support int16x8 quantization?](https://discuss.pytorch.org/t/does-executorch-support-int16x8-quantization/211418)

<div class="topic-metadata">

**Author:** [@andresovela](https://discuss.pytorch.org/u/andresovela)\
**Replies:** 3\
**Last updated:** [October 17, 2024, 1:27pm UTC](https://discuss.pytorch.org/t/does-executorch-support-int16x8-quantization/211418 "2024-10-17T13:27:00Z")

</div>

Hi, I’m currently working on getting audio models to run on HiFi 4 DSPs, coming from TFLite Micro. TFLM supports int16x8 quantization and I’m wondering if Executorch does too. I just started looking into Executorch, s…

---

## [\[Android demo app\] Load failed: 34](https://discuss.pytorch.org/t/android-demo-app-load-failed-34/203796)

<div class="topic-metadata">

**Author:** [@ethanc8](https://discuss.pytorch.org/u/ethanc8)\
**Replies:** 3\
**Last updated:** [October 17, 2024, 12:32am UTC](https://discuss.pytorch.org/t/android-demo-app-load-failed-34/203796 "2024-10-17T00:32:52Z")

</div>

I exported the stories110M model to ExecuTorch using a Colab notebook on ExecuTorch v0.2.0’s PyPI pip package. I then downloaded the exported model to my device and tried to open it in ExecuTorchLlamaDemo v0.2.0, which I…

---

## [Export NanoGPT Example to MPS Delegate](https://discuss.pytorch.org/t/export-nanogpt-example-to-mps-delegate/210955)

<div class="topic-metadata">

**Author:** [@gkteco](https://discuss.pytorch.org/u/gkteco)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 11:46pm UTC](https://discuss.pytorch.org/t/export-nanogpt-example-to-mps-delegate/210955 "2024-10-16T23:46:39Z")

</div>

Following the guide here: Getting Started with LLMs via ExecuTorch — ExecuTorch 0.3 documentation shows how to export nanoGPT to the XNNPACK delegate but does not provide other backend examples. The guide here Building a…

---

## [Does ExecuTorch have an interface to load the model chunk by chunk?](https://discuss.pytorch.org/t/does-executorch-have-an-interface-to-load-the-model-chunk-by-chunk/211328)

<div class="topic-metadata">

**Author:** [@dbort](https://discuss.pytorch.org/u/dbort)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 5:12am UTC](https://discuss.pytorch.org/t/does-executorch-have-an-interface-to-load-the-model-chunk-by-chunk/211328 "2024-10-09T05:12:22Z")

</div>

(reposting this Meta-internal question and response) We have a decompression engine on DSP and would like to know if it can be used on ExecuTorch models. So far we have been using BufferDataLoader by specifying buffer …

---

## [Can’t create arm64 version of mv3\_coreml\_all.pte model for XCode project](https://discuss.pytorch.org/t/can-t-create-arm64-version-of-mv3-coreml-all-pte-model-for-xcode-project/209981)

<div class="topic-metadata">

**Author:** [@swainwri](https://discuss.pytorch.org/u/swainwri)\
**Replies:** 3\
**Last updated:** [September 28, 2024, 2:52am UTC](https://discuss.pytorch.org/t/can-t-create-arm64-version-of-mv3-coreml-all-pte-model-for-xcode-project/209981 "2024-09-28T02:52:18Z")

</div>

Following instructions from (executorch/examples/demo-apps/apple\_ios at main · pytorch/executorch · GitHub) error on python3 -m examples.apple.coreml.scripts.export --model\_name=“mv3" import executorchcoreml ImportErr…

---

## [Is it possible use a executorch model with rust code?](https://discuss.pytorch.org/t/is-it-possible-use-a-executorch-model-with-rust-code/205091)

<div class="topic-metadata">

**Author:** [@nimit0](https://discuss.pytorch.org/u/nimit0)\
**Replies:** 7\
**Last updated:** [August 6, 2024, 7:47pm UTC](https://discuss.pytorch.org/t/is-it-possible-use-a-executorch-model-with-rust-code/205091 "2024-08-06T19:47:44Z")

</div>

Hello, I am new to executorch and I wanted to know if it is possible to use a model created and optimized with executorch to be used in a code written in Rust for an embedded system, or is it nowadays possible only with …

---

## [Setting Up ExecuTorch doc for macOS out of date](https://discuss.pytorch.org/t/setting-up-executorch-doc-for-macos-out-of-date/206795)

<div class="topic-metadata">

**Author:** [@crossingpatterns](https://discuss.pytorch.org/u/crossingpatterns)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 8:04pm UTC](https://discuss.pytorch.org/t/setting-up-executorch-doc-for-macos-out-of-date/206795 "2024-07-29T20:04:12Z")

</div>

I ran into a “Too many open files (os error 24)” issue trying to build ExecuTorch on macOS Sonoma 14.5. I resolved it by simply building from main. The Setting Up ExecuTorch doc instructs you to clone a specific branch…

---

## [Error when building using QNN](https://discuss.pytorch.org/t/error-when-building-using-qnn/206216)

<div class="topic-metadata">

**Author:** [@Andre11](https://discuss.pytorch.org/u/Andre11)\
**Replies:** 1\
**Last updated:** [July 17, 2024, 5:11pm UTC](https://discuss.pytorch.org/t/error-when-building-using-qnn/206216 "2024-07-17T17:11:12Z")

</div>

I get the following error when following the tutorial: Building and Running ExecuTorch with Qualcomm AI Engine Direct Backend I run: cd $EXECUTORCH\_ROOT mkdir build\_android cd build\_android # build executorch & qnn\_ex…

[Next page](https://discuss.pytorch.org/c/executorch/42.md?page=1)
