Run this model with HF Jobs
Run youakrim/yolo12s-mlx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/youakrim/yolo12s-mlx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/youakrim/yolo12s-mlx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use youakrim/yolo12s-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use youakrim/yolo12s-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download youakrim/yolo12s-mlx --local-dir yolo12s-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
YOLO12s COCO weights for MLX
Official Ultralytics YOLO12s COCO weights (9.3 M parameters), converted to NumPy .npz for yolo12-mlx, a YOLO12 implementation on Apple MLX. The weights are unchanged: only the tensor layout is converted (OIHW to OHWI). No retraining.
Other sizes: see the collection YOLO12 for MLX.
COCO val2017 (5000 images)
Same preprocessing (letterbox 640) and same NMS (conf 0.001, IoU 0.7, max 300 detections) for both backends, scored with pycocotools.
| Backend | mAP50-95 | mAP50 |
|---|---|---|
| MLX (this repo) | 0.4757 | 0.6436 |
PyTorch (official .pt) |
0.4756 | 0.6436 |
Speed (model forward only)
Apple M5, 640x640, batch 1, median of 100 runs after warm-up, GPU synchronised. NMS and I/O excluded.
| Backend | ms / image |
|---|---|
| MLX fp32 | 19.38 |
| MLX bf16 | 15.19 |
| PyTorch MPS fp32 | 25.69 |
| PyTorch MPS fp16 | 19.23 |
Usage
git clone https://github.com/youakrim/yolo12-mlx && cd yolo12-mlx
scripts/setup.sh
hf download youakrim/yolo12s-mlx yolo12s-coco.npz --local-dir .
python -m yolo12mlx.predict yolo12s-coco.npz image.jpg --scale s --nc 80
Licence
AGPL-3.0, inherited from Ultralytics YOLO12.
Dataset used to train youakrim/yolo12s-mlx
Collection including youakrim/yolo12s-mlx
Evaluation results
- mAP50-95 (MLX) on COCO val2017self-reported0.476
- mAP50 (MLX) on COCO val2017self-reported0.644