ExecuTorch
A runtime framework within the PyTorch ecosystem focused on on-device inference. It supports efficient deployment of PyTorch models to mobile devices, embedded systems, and edge hardware, providing capabilities for model conversion, optimization, and hardware instruction mapping.
Core Facts
ExecuTorch is an on-device inference runtime framework launched by Meta, built on the Export mechanism of PyTorch 2.0.
ExecuTorch is a runtime framework within the PyTorch ecosystem focused on on-device inference, designed to deploy PyTorch models to mobile devices, embedded systems, and edge hardware.
Timeline (last 90 days)
PyTorch model deployment efficiency involves torch.export, ExecuTorch (on-device inference), as well as quantization and operator fusion.
"No loading required" means that deployment no longer needs to load PyTorch's nn.Module or TorchScript model files; however, the TensorRT engine still needs to be deserialized on the target device and an execution context created, and this overhead depends on the engine size and the hardware.
The ExecuTorch-TensorRT integration solution depends on two versions: Torch-TensorRT 2.15 and ExecuTorch 1.6.
The ExecuTorch-TensorRT workflow consists of three steps: compile with Torch-TensorRT 2.15 to generate a TensorRT engine; save the compilation result in the ExecuTorch program format; and load and run the program in C++ or Python.
The ExecuTorch runtime is implemented in C++, provides a lightweight interpreter and hardware backend interfaces (such as XNNPACK, Core ML, Vulkan, etc.), and exposes Python bindings.
Developers can use Torch-TensorRT to compile a PyTorch model, save it as an ExecuTorch program (.pte file), and run it directly in C++ or Python without additionally loading the original PyTorch model.
At runtime, the generated ExecuTorch program does not need the original PyTorch model or the Torch-TensorRT library, only the ExecuTorch runtime and the TensorRT runtime (plus the corresponding GPU driver).
torch.export is responsible for exporting PyTorch models to ExecuTorch-specific .pte files, a file format that is the standard carrier for the ExecuTorch runtime and contains the model's computation graph and weight information.
ExecuTorch WebGPU is still at an early stage, and the specific operator coverage, performance, and browser compatibility matrix still need to be verified by developers in real projects.
ExecuTorch adopts a layered architecture: the frontend receives the graph exported by torch.export, goes through graph optimization and operator decomposition, and ultimately the backend (such as XNNPACK, Core ML, Vulkan, WebGPU) is responsible for kernel execution.
34 more timeline events
All Facts (20)
ExecuTorch is an on-device inference runtime framework launched by Meta, built on the Export mechanism of PyTorch 2.0.
75%VerifiedExecuTorch is a runtime framework within the PyTorch ecosystem focused on on-device inference, designed to deploy PyTorch models to mobile devices, embedded systems, and edge hardware.
75%UnverifiedThe ExecuTorch workflow consists of three phases: exporting the model computation graph with torch.export, performing quantization and optimization through compiler passes, and finally packaging into the .pte format to run on the target device.
70%UnverifiedPyTorch model deployment efficiency involves torch.export, ExecuTorch (on-device inference), as well as quantization and operator fusion.
50%UnverifiedThe ExecuTorch runtime is implemented in C++, provides a lightweight interpreter and hardware backend interfaces (such as XNNPACK, Core ML, Vulkan, etc.), and exposes Python bindings.
50%UnverifiedThe ExecuTorch-TensorRT integration solution depends on two versions: Torch-TensorRT 2.15 and ExecuTorch 1.6.
50%UnverifiedDevelopers can use Torch-TensorRT to compile a PyTorch model, save it as an ExecuTorch program (.pte file), and run it directly in C++ or Python without additionally loading the original PyTorch model.
50%Unverified"No loading required" means that deployment no longer needs to load PyTorch's nn.Module or TorchScript model files; however, the TensorRT engine still needs to be deserialized on the target device and an execution context created, and this overhead depends on the engine size and the hardware.
50%UnverifiedAt runtime, the generated ExecuTorch program does not need the original PyTorch model or the Torch-TensorRT library, only the ExecuTorch runtime and the TensorRT runtime (plus the corresponding GPU driver).
50%UnverifiedThe ExecuTorch-TensorRT workflow consists of three steps: compile with Torch-TensorRT 2.15 to generate a TensorRT engine; save the compilation result in the ExecuTorch program format; and load and run the program in C++ or Python.
50%UnverifiedExecuTorch is an on-device inference runtime led by the PyTorch Foundation, aiming to execute PyTorch models on edge devices such as mobile (Android/iOS), embedded systems, and browsers.
50%UnverifiedExecuTorch adopts a layered architecture: the frontend receives the graph exported by torch.export, goes through graph optimization and operator decomposition, and ultimately the backend (such as XNNPACK, Core ML, Vulkan, WebGPU) is responsible for kernel execution.
50%Unverifiedtorch.export is responsible for exporting PyTorch models to ExecuTorch-specific .pte files, a file format that is the standard carrier for the ExecuTorch runtime and contains the model's computation graph and weight information.
50%UnverifiedFor streaming ASR, some stateful or dynamic-shape operators may not have ready-made efficient implementations and require additional adaptation or custom lowering.
50%UnverifiedOn-device optimization of streaming ASR has been included as a key direction for ExecuTorch, and Arm devices are one of its explicit target platforms.
50%UnverifiedIn ExecuTorch, operator lowering typically goes through multiple intermediate representations (such as Edge Dialect), ultimately mapping to Arm CPU-specific kernels or delegate backends.
50%UnverifiedExecuTorch introduces a unified intermediate representation, EXIR; models are exported to EXIR via torch.export, then packaged in the .pte format and handed to the runtime for execution.
50%UnverifiedExecuTorch is the on-device inference runtime officially launched by PyTorch in 2023, covering phones, embedded devices and even MCUs.
50%UnverifiedExecuTorch adopts a layered runtime design, including the representation layer, the operator layer and the backend layer (Backend Delegate).
50%UnverifiedExecuTorch supports Arm Cortex-M microcontrollers, allowing PyTorch models to run on MCUs without conversion through intermediate formats such as ONNX.
50%