Skip to content

Commit 6832f7f

Browse files
updated README to specify qualcomm stuff is no longer needed for CPU runtime, updated build to package onnxruntime into the deb
1 parent abd1d5d commit 6832f7f

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,17 @@ Deploy machine learning models to Synapse devices.
203203
### Prerequisites
204204

205205
1. **Docker** — required for model conversion
206-
2. **QAIRT SDK v2.34** (Qualcomm AI Runtime) — required for model conversion
206+
2. **QAIRT SDK v2.34** (Qualcomm AI Runtime) — required for model conversion for DSP runtime, not required for CPU runtime
207+
208+
### Quick Start — Deploy a Float Model (CPU)
209+
210+
The simplest path — no calibration data needed, runs on CPU via onnxruntime:
211+
212+
```bash
213+
synapsectl deploy-model model.onnx \
214+
--name my_model \
215+
-u <device-ip>
216+
```
207217

208218
#### Installing the QAIRT SDK
209219

@@ -219,16 +229,6 @@ Deploy machine learning models to Synapse devices.
219229
```
220230
4. The SDK installs to `/opt/qcom/aistack/qairt/2.34.0.250424`. You'll pass this path as `--snpe-root` when deploying models.
221231

222-
### Quick Start — Deploy a Float Model (CPU)
223-
224-
The simplest path — no calibration data needed, runs on CPU:
225-
226-
```bash
227-
synapsectl deploy-model model.onnx \
228-
--name my_model \
229-
--snpe-root /opt/qcom/aistack/qairt/2.34.0.250424 \
230-
-u <device-ip>
231-
```
232232

233233
### Deploy a Quantized Model (DSP)
234234

synapse/cli/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ def build_deb_package(app_dir: str, app_name: str, version: str = "0.1.0") -> bo
355355
)
356356

357357
# Extract SDK shared libraries → /opt/scifi/lib/
358+
# Includes libsynapse-app-sdk and its runtime dependency libonnxruntime
358359
docker_cmd = [
359360
"docker",
360361
"run",
@@ -366,7 +367,8 @@ def build_deb_package(app_dir: str, app_name: str, version: str = "0.1.0") -> bo
366367
image_tag,
367368
"/bin/bash",
368369
"-c",
369-
"find /usr/lib -maxdepth 1 -name 'libsynapse*.so*' -exec cp -a {} /out/ \\;",
370+
"find /usr/lib -maxdepth 1 -name 'libsynapse*.so*' -exec cp -a {} /out/ \\; && "
371+
"find /usr/lib -maxdepth 1 -name 'libonnxruntime*.so*' -exec cp -a {} /out/ \\;",
370372
]
371373

372374
subprocess.run(docker_cmd, check=True)

0 commit comments

Comments
 (0)