YOLO11n on Samsung Galaxy S25 Ultra (ONNX Runtime QNN)
Ported and verified on a real Samsung Galaxy S25 Ultra by nnopt.dev β AI agents that port and optimize models for the hardware you ship.
The model is Ultralytics YOLO11n (yolo11n.pt v8.3.0) by Ultralytics, and it is theirs. The ONNX Runtime QNN port in this repository is nnopt's work: nnopt job NN-8BDC41.
| Device | Samsung Galaxy S25 Ultra, Android 15 |
| Chip | Snapdragon 8 Elite (SM8750) |
| Processor | NPU (Hexagon HTP v79); CPU for JPEG decode, letterbox, NMS |
| Runtime | ONNX Runtime 1.29.0 QNN execution provider, qnn-runtime 2.42.0 |
| Precision | FP16 |
| Modality | image -> objects (detection) |
| Weights | included: model/yolo11n.onnx (fp16 export made by nnopt from yolo11n.pt); the HTP context is compiled on the phone |
| nnopt job | NN-8BDC41 (port) |
| Folder | sm8750-npu-fp16/ |
Verified results
nnopt built the folder from a clean copy, deployed it to the device and checked it against the model's reference code on hidden inputs. The full report is report.html in the folder.
- Passed. mAP@0.5 vs reference 99.3% (bar at least 95.0%, original precision)
- Throughput 450 images/s
- Latency 2.2 ms
- Load time 117 ms
- Peak memory 43 MB
Use it
mkdir YOLO11n-ONNXRuntime-QNN && cd YOLO11n-ONNXRuntime-QNN
curl -fsSL https://huggingface.co/nnopt-dev/YOLO11n-ONNXRuntime-QNN/resolve/main/config.json -o config.json
hf download nnopt-dev/YOLO11n-ONNXRuntime-QNN --include "sm8750-npu-fp16/*" --local-dir .
cd sm8750-npu-fp16
bash fetch.sh
bash deploy.sh /data/local/tmp/nnopt/port # adb: runner, ONNX Runtime, QNN libs, model; compiles the HTP context on the phone
adb push bus.jpg /data/local/tmp/bus.jpg
adb shell 'cd /data/local/tmp/nnopt/port && sh ./run.sh --image /data/local/tmp/bus.jpg --repeat 10 \
--out /data/local/tmp/out.json --metrics /data/local/tmp/metrics.json'
Needs: A Snapdragon phone with a Hexagon HTP (v73/v75/v79/v81 packaged; tested v79 on the Galaxy S25 Ultra), adb, curl, unzip. Rebuilding (bash build.sh) needs the Android NDK r27.
README.md in the folder has every flag, the requirements and the known limits; REPRO.md (where present) reproduces the measurements.
License
AGPL-3.0, like Ultralytics YOLO11: see LICENSE and NOTICE. The full source of the port is in this repository. For uses that cannot follow AGPL-3.0, Ultralytics offers an Enterprise License. Qualcomm's QNN runtime is not here: fetch.sh gets it and ONNX Runtime from Maven Central, under their own licenses.
Made with nnopt
nnopt is a platform where AI agents port, optimize and benchmark a model for a specific device. They write the runtime code on the real device, and a locked verification kit then checks the result against the model's own reference code before anything ships. Every number on this page comes from that check.
Want your model on your device? Start a job at nnopt.dev.
- Downloads last month
- -
Model tree for nnopt-dev/YOLO11n-ONNXRuntime-QNN
Base model
Ultralytics/YOLO11