Skip to content

Commit abaee69

Browse files
neuropilot-captainneuropilot-captain
andauthored
Update documents for Express SDK update (#10462)
### Summary Update the document for Express SDK update cc @cccclai @cbilgin Co-authored-by: neuropilot-captain <[email protected]>
1 parent 4a89327 commit abaee69

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

backends/mediatek/README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ MediaTek backend empowers ExecuTorch to speed up PyTorch models on edge devices
66
The examples provided in this repository are tested and supported on the following MediaTek chip:
77

88
- MediaTek Dimensity 9300 (D9300)
9+
- MediaTek Dimensity 9400 (D9400)
910

1011
## Build Instructions
1112

@@ -31,13 +32,17 @@ Before you begin, ensure you have the following prerequisites installed and conf
3132

3233
#### 3. MediaTek ExecuTorch Libraries
3334

34-
Download [NeuroPilot Express SDK](https://neuropilot.mediatek.com/resources/public/npexpress/en/docs/npexpress) from MediaTek's NeuroPilot portal:
35+
To get started with MediaTek's ExecuTorch libraries, download the [NeuroPilot Express SDK](https://neuropilot.mediatek.com/resources/public/npexpress/en/docs/npexpress) from MediaTek's NeuroPilot portal. The SDK includes the following components:
3536

36-
- `libneuronusdk_adapter.mtk.so`: This universal SDK contains the implementation required for executing target-dependent code on the MediaTek chip.
37-
- `libneuron_buffer_allocator.so`: This utility library is designed for allocating DMA buffers necessary for model inference.
38-
- `mtk_converter-8.8.0.dev20240723+public.d1467db9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl`: This library preprocess the model into a MediaTek representation.
39-
- `mtk_neuron-8.2.2-py3-none-linux_x86_64.whl`: This library converts the model to binaries.
40-
- Copy `NeuronAdapter.h` under `backends/mediatek/runtime/include/api/`.
37+
- **`libneuronusdk_adapter.mtk.so`**: This universal SDK contains the implementation required for executing target-dependent code on the MediaTek chip.
38+
39+
- **`libneuron_buffer_allocator.so`**: This utility library is designed for allocating DMA buffers necessary for model inference.
40+
41+
- **`mtk_converter-8.13.0+public-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl`**: This library preprocesses the model into a MediaTek representation.
42+
43+
- **`mtk_neuron-8.2.19-py3-none-linux_x86_64.whl`**: This library converts the model to binaries.
44+
45+
Additionally, make sure to copy `NeuronAdapter.h` to the following directory: `backends/mediatek/runtime/include/api/`.
4146

4247
### Setup
4348

@@ -52,8 +57,8 @@ Follow the steps below to setup your build environment:
5257
```
5358
- Install the two .whl downloaded from NeuroPilot Portal
5459
```bash
55-
pip3 install mtk_neuron-8.2.2-py3-none-linux_x86_64.whl
56-
pip3 install mtk_converter-8.8.0.dev20240723+public.d1467db9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
60+
pip3 install mtk_neuron-8.2.19-py3-none-linux_x86_64.whl
61+
pip3 install mtk_converter-8.13.0+public-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
5762
```
5863
- Set evironment variables for building backend
5964
```bash

docs/source/backends-mediatek.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ MediaTek backend empowers ExecuTorch to speed up PyTorch models on edge devices
2525

2626
### Supported Chips:
2727
- MediaTek Dimensity 9300 (D9300)
28+
- MediaTek Dimensity 9400 (D9400)
2829

2930
### Software:
3031

@@ -37,19 +38,19 @@ Follow the steps below to setup your build environment:
3738
1. **Setup ExecuTorch Environment**: Refer to the [Getting Started](getting-started.md) guide for detailed instructions on setting up the ExecuTorch environment.
3839

3940
2. **Setup MediaTek Backend Environment**
40-
- Install the dependent libs. Ensure that you are inside `backends/mediatek/` directory
4141
```bash
4242
pip3 install -r requirements.txt
4343
```
4444
- Install the two .whl downloaded from NeuroPilot Portal
4545
```bash
46-
pip3 install mtk_neuron-8.2.13-py3-none-linux_x86_64.whl
47-
pip3 install mtk_converter-8.9.1+public-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
46+
pip3 install mtk_neuron-8.2.19-py3-none-linux_x86_64.whl
47+
pip3 install mtk_converter-8.13.0+public-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
4848
```
4949
- Set evironment variables for building backend
5050
```bash
51-
export NEURON_BUFFER_ALLOCATOR_LIB=<path_to_buffer_allocator.so>
51+
export NEURON_BUFFER_ALLOCATOR_LIB=<path_to_buffer_allocator>
5252
```
53+
Additionally, make sure to copy `NeuronAdapter.h` to the following directory: `backends/mediatek/runtime/include/api/`.
5354

5455
## Build
5556

0 commit comments

Comments
 (0)