Run this model with HF Jobs
Run mlx-community/YOLO26s-OptiQ-6bit 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/mlx-community/YOLO26s-OptiQ-6bit. 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/mlx-community/YOLO26s-OptiQ-6bit 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 mlx-community/YOLO26s-OptiQ-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/YOLO26s-OptiQ-6bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/YOLO26s-OptiQ-6bit --local-dir YOLO26s-OptiQ-6bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
YOLO26s-OptiQ-6bit
Mixed-precision quantized YOLO26s for Apple Silicon via optiq
This is a mixed-precision quantized version of YOLO26s in MLX format, optimized with mlx-optiq for Apple Silicon inference via yolo-mlx.
Quantization Details
| Property | Value |
|---|---|
| Target BPW | 6.0 |
| Achieved BPW | 5.97 |
| Layers at 4-bit | 11 |
| Layers at 8-bit | 115 |
| Original size | 38.4 MB |
| Quantized size | 8.9 MB |
| Compression | 4.3x |
Benchmark Results (COCO128)
| Model | Total Detections | Avg/Image |
|---|---|---|
| optiq 6-bit | 633 | 4.9 |
| Original (FP32) | 681 | 5.3 |
Detection delta: -48 (-7.0%) at 4.3x compression.
Usage
Requires mlx-optiq and yolo-mlx:
pip install mlx-optiq yolo-mlx
from optiq.models.yolo import load_quantized_yolo
model = load_quantized_yolo("mlx-community/YOLO26s-OptiQ-6bit")
results = model.predict("image.jpg")
How optiq Works
optiq measures each conv layer's sensitivity via KL divergence on detection outputs, then assigns optimal per-layer bit-widths using greedy knapsack optimization. Sensitive layers (detection head, feature pyramid) get 8-bit precision while robust backbone layers get 4-bit.
Article
For more details on the methodology and results, see: Not All Layers Are Equal
Credits
- Downloads last month
- 32
Quantized
Model tree for mlx-community/YOLO26s-OptiQ-6bit
Base model
Ultralytics/YOLO26