Skip to content

Commit 7505b16

Browse files
mergennachinGregoryComer
authored andcommitted
Update top-level README.md file (pytorch#15049)
1 parent d45304b commit 7505b16

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ExecuTorch uses **ahead-of-time (AOT) compilation** to prepare PyTorch models fo
5252
2. **⚙️ Compile** — Quantize, optimize, and partition to hardware backends → `.pte`
5353
3. **🚀 Execute** — Load `.pte` on-device via lightweight C++ runtime
5454

55-
Models use a standardized [Core ATen operator set](https://docs.pytorch.org/executorch/main/compiler-ir-advanced.html#intermediate-representation). [Partitioners](https://docs.pytorch.org/executorch/main/compiler-delegate-and-partitioner.html) delegate subgraphs to specialized hardware (NPU/GPU) with CPU fallback.
55+
Models use a standardized [Core ATen operator set](https://docs.pytorch.org/executorch/main/concepts.html#core-aten-operators). [Partitioners](https://docs.pytorch.org/executorch/main/compiler-delegate-and-partitioner.html) delegate subgraphs to specialized hardware (NPU/GPU) with CPU fallback.
5656

5757
Learn more: [How ExecuTorch Works](https://docs.pytorch.org/executorch/main/intro-how-it-works.html)[Architecture Guide](https://docs.pytorch.org/executorch/main/getting-started-architecture.html)
5858

@@ -104,16 +104,14 @@ outputs = method.execute([torch.randn(1, 3, 224, 224)])
104104

105105
Module module("model.pte");
106106
auto tensor = make_tensor_ptr({2, 2}, {1.0f, 2.0f, 3.0f, 4.0f});
107-
auto outputs = module.forward(tensor);
107+
auto outputs = module.forward({tensor});
108108
```
109109
110110
**[Swift (iOS)](https://docs.pytorch.org/executorch/main/ios-section.html)**
111111
```swift
112-
import ExecuTorch
113-
114112
let module = Module(filePath: "model.pte")
115-
let input = Tensor<Float>([1.0, 2.0, 3.0, 4.0], shape: [2, 2])
116-
let outputs = try module.forward(input)
113+
let input = Tensor<Float>([1.0, 2.0, 3.0, 4.0])
114+
let outputs: [Value] = try module.forward([input])
117115
```
118116

119117
**[Kotlin (Android)](https://docs.pytorch.org/executorch/main/android-section.html)**
@@ -153,8 +151,6 @@ runner->generate("Hello, how are you?", config);
153151
154152
**[Swift (iOS)](https://docs.pytorch.org/executorch/main/llm/run-on-ios.html)**
155153
```swift
156-
import ExecuTorchLLM
157-
158154
let runner = TextRunner(modelPath: "llama.pte", tokenizerPath: "tiktoken.bin")
159155
try runner.generate("Hello, how are you?", Config {
160156
$0.sequenceLength = 128
@@ -204,9 +200,9 @@ ExecuTorch powers on-device AI at scale across Meta's family of apps, VR/AR devi
204200

205201
**Multimodal:** [Llava](examples/models/llava/README.md) (vision-language), [Voxtral](examples/models/voxtral/README.md) (audio-language)
206202

207-
**Vision/Speech:** [MobileNetV2](https://github.com/meta-pytorch/executorch-examples/tree/main/mv2), [DeepLabV3](https://github.com/meta-pytorch/executorch-examples/tree/main/dl3), [Whisper](https://github.com/meta-pytorch/executorch-examples/tree/main/whisper/android/WhisperApp)
203+
**Vision/Speech:** [MobileNetV2](https://github.com/meta-pytorch/executorch-examples/tree/main/mv2), [DeepLabV3](https://github.com/meta-pytorch/executorch-examples/tree/main/dl3)
208204

209-
**Resources:** [`examples/`](examples/) directory • [executorch-examples](https://github.com/meta-pytorch/executorch-examples) out-of-tree demos • [Optimum-ExecuTorch](https://github.com/huggingface/optimum-executorch) for HuggingFace models
205+
**Resources:** [`examples/`](examples/) directory • [executorch-examples](https://github.com/meta-pytorch/executorch-examples) mobile demos • [Optimum-ExecuTorch](https://github.com/huggingface/optimum-executorch) for HuggingFace models
210206

211207
## Key Features
212208

@@ -226,7 +222,7 @@ See [Advanced Topics](https://docs.pytorch.org/executorch/main/advanced-topics-s
226222
- [**Documentation Home**](https://docs.pytorch.org/executorch/main/index.html) — Complete guides and tutorials
227223
- [**API Reference**](https://docs.pytorch.org/executorch/main/api-section.html) — Python, C++, Java/Kotlin APIs
228224
- [**Backend Integration**](https://docs.pytorch.org/executorch/main/backend-delegates-integration.html) — Build custom hardware backends
229-
- [**Troubleshooting**](https://docs.pytorch.org/executorch/main/support-section.html) — Common issues and solutions
225+
- [**Troubleshooting**](https://docs.pytorch.org/executorch/main/using-executorch-troubleshooting.html) — Common issues and solutions
230226

231227
## Community & Contributing
232228

0 commit comments

Comments
 (0)