Instructions to use moonbox-dev/BEN2-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/BEN2-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download moonbox-dev/BEN2-MLX --local-dir BEN2-MLX
- BEN2
How to use moonbox-dev/BEN2-MLX with BEN2:
import requests from PIL import Image from ben2 import AutoModel url = "https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg" image = Image.open(requests.get(url, stream=True).raw) model = AutoModel.from_pretrained("moonbox-dev/BEN2-MLX") model.to("cuda").eval() foreground = model.inference(image) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Model card and the original license
Browse files
README.md
CHANGED
|
@@ -34,6 +34,9 @@ for what was measured).
|
|
| 34 |
| 8bit | [`8bit/config.json`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/8bit/config.json) | 0.3 kB | `8e36d767bc3b` | MAE <= 0.0003, mask IoU >= 0.9983 |
|
| 35 |
| 8bit | [`8bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/8bit/mlx_model.py) | 20.5 kB | `eff7a4afb5ad` | MAE <= 0.0003, mask IoU >= 0.9983 |
|
| 36 |
| 8bit | [`8bit/model.safetensors`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/8bit/model.safetensors) | 105.6 MB | `c4a4142ef47b` | MAE <= 0.0003, mask IoU >= 0.9983 |
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## How to run
|
| 39 |
|
|
|
|
| 34 |
| 8bit | [`8bit/config.json`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/8bit/config.json) | 0.3 kB | `8e36d767bc3b` | MAE <= 0.0003, mask IoU >= 0.9983 |
|
| 35 |
| 8bit | [`8bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/8bit/mlx_model.py) | 20.5 kB | `eff7a4afb5ad` | MAE <= 0.0003, mask IoU >= 0.9983 |
|
| 36 |
| 8bit | [`8bit/model.safetensors`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/8bit/model.safetensors) | 105.6 MB | `c4a4142ef47b` | MAE <= 0.0003, mask IoU >= 0.9983 |
|
| 37 |
+
| 6bit | [`6bit/config.json`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/6bit/config.json) | 0.3 kB | `9c6f176e545f` | MAE <= 0.0004, mask IoU >= 0.9966 |
|
| 38 |
+
| 6bit | [`6bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/6bit/mlx_model.py) | 20.5 kB | `eff7a4afb5ad` | MAE <= 0.0004, mask IoU >= 0.9966 |
|
| 39 |
+
| 6bit | [`6bit/model.safetensors`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/6bit/model.safetensors) | 83.5 MB | `5f055f598925` | MAE <= 0.0004, mask IoU >= 0.9966 |
|
| 40 |
|
| 41 |
## How to run
|
| 42 |
|