Instructions to use nnopt-dev/YOLO11n-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nnopt-dev/YOLO11n-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download nnopt-dev/YOLO11n-MLX --local-dir YOLO11n-MLX
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
YOLO11n on Mac mini (M2 Pro) (MLX)
Ported and verified on a real Mac mini (M2 Pro) 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 MLX port in this repository is nnopt's work: nnopt job NN-4DDEE6.
| Device | Mac mini (M2 Pro), macOS |
| Chip | Apple M2 Pro |
| Processor | GPU (Apple M2 Pro, Metal); CPU for letterbox and NMS |
| Runtime | MLX 0.32.4 (Metal GPU), custom Metal kernels |
| Precision | FP16 |
| Modality | image -> objects (detection) |
| Weights | fetched: fetch.sh downloads yolo11n.pt from Ultralytics; build.sh converts it to BN-fused weights |
| nnopt job | NN-4DDEE6 (port) |
| Folder | m2pro-gpu-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 100.0% (bar at least 95.0%, original precision)
- Throughput 191 images/s
- Latency 5.2 ms
- Load time 171 ms
- Peak memory 101 MB
Use it
mkdir YOLO11n-MLX && cd YOLO11n-MLX
curl -fsSL https://huggingface.co/nnopt-dev/YOLO11n-MLX/resolve/main/config.json -o config.json
hf download nnopt-dev/YOLO11n-MLX --include "m2pro-gpu-fp16/*" --local-dir .
cd m2pro-gpu-fp16
bash fetch.sh
bash build.sh # arm64 Python venv, offline wheelhouse, build/yolo11n_fused.npz
bash deploy.sh ~/yolo11n-mlx
sh ~/yolo11n-mlx/run.sh --image bus.jpg --repeat 10 --out out.json --metrics m.json
Needs: macOS on Apple silicon with an arm64 python3 >= 3.10, curl and (optional) a C compiler.
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.
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
- 2
Model tree for nnopt-dev/YOLO11n-MLX
Base model
Ultralytics/YOLO11