Instructions to use mlx-community/Holo-3.1-0.8B-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Holo-3.1-0.8B-bf16 with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("mlx-community/Holo-3.1-0.8B-bf16") config = load_config("mlx-community/Holo-3.1-0.8B-bf16") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use mlx-community/Holo-3.1-0.8B-bf16 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Holo-3.1-0.8B-bf16"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mlx-community/Holo-3.1-0.8B-bf16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use mlx-community/Holo-3.1-0.8B-bf16 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Holo-3.1-0.8B-bf16"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default mlx-community/Holo-3.1-0.8B-bf16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mlx-community/Holo-3.1-0.8B-bf16 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Holo-3.1-0.8B-bf16"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "mlx-community/Holo-3.1-0.8B-bf16" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
mlx-community/Holo-3.1-0.8B-bf16
I converted this model to MLX from Hcompany/Holo-3.1-0.8B using mlx-vlm 0.8.0. Validated by m4zar.
See the original model card for model details. The original model is by H Company. The license of the original model (Apache-2.0) is preserved.
Format: bfloat16 (no quantization). The vision tower is kept in bfloat16.
Use with MLX
pip install -U mlx-vlm
python -m mlx_vlm.generate --model mlx-community/Holo-3.1-0.8B-bf16 --max-tokens 64 --temperature 0.0 --prompt "<prompt from the original model card>" --image <path_to_screenshot>
The localization prompt (coordinates as integers in [0, 1000]) is in the original model card.
Validation
- Loads and generates with the released mlx-vlm 0.8.0 (PyPI) and mlx 0.32.4.
- Click-answer logits against the original weights in float32 (transformers, CPU), teacher-forced on the answer: mean KL 2.2e-4 (720p), while transformers bfloat16 on MPS gives 2e-4 to 3e-4. The float32 reference answers were {"x":517,"y":197} at 720p, {"x":487,"y":207} at 1080p. These examples use coordinates on a scale of 1000.
- The synthetic screenshots are smoke tests. WebClick accuracy is reported below.
Speed (Apple M5 Max, 128 GB, one 1920x1080 screenshot, 2221 prompt tokens, greedy)
| engine | time to first token | decode | memory |
|---|---|---|---|
| MLX, this model (bf16) | 227 ms | 275 tok/s | 3.1 GB (peak) |
| transformers, bfloat16, MPS | 331 ms | 137 tok/s | 4.6 GB (peak) |
| llama.cpp (Metal), F16 | 551 ms | 212 tok/s | 2.8 GB (RSS) |
The machine was shared with other jobs, so timings are indicative. Memory metrics differ by engine. MLX numbers are from mlx-vlm 0.8.0 as released. A vision-tower speed-up is proposed in mlx-vlm #2822.
WebClick (click accuracy)
Benchmark: Hcompany/WebClick (Apache-2.0), all 1639 samples. A click counts as a hit when the predicted point falls inside the target box. Protocol: H Company's published localization recipe (official smart_resize and prompt, thinking off, greedy, 32 new tokens, coordinates in [0, 1000]), mlx-vlm 0.8.0. Same samples and prompt for every row.
| model | accuracy | 95% CI |
|---|---|---|
| MLX bf16 (this model) | 78.8% | 76.7 to 80.7 |
| MLX 8bit | 78.6% | 76.5 to 80.5 |
| MLX 4bit | 73.6% | 71.5 to 75.7 |
| MLX mxfp8 | 78.7% | 76.7 to 80.6 |
bf16, 8-bit and mxfp8 are within 0.3 points of each other on the same samples (paired exact test, no difference).
Speed with a long multi-image prompt (3 screenshots at 1920x1080, about 12k prompt tokens, 1024 generated tokens)
| engine | time to first token | decode | memory |
|---|---|---|---|
| MLX, this model (bf16) | 1.0 s* | 238 tok/s | 3.3 GB (peak) |
| llama.cpp (Metal), F16 GGUF (converted from the original weights, not an official release) | 2.1 s* | 199 tok/s | 2.8 GB (RSS) |
Apple M5 Max, 128 GB, greedy, end-of-sequence suppressed to force 1024 tokens, median of 3 runs, mlx-vlm 0.8.0 and mlx 0.32.4 (llama.cpp with -c 16384). I started each timing only when GPU utilization was under 8%. The machine was shared with other jobs. I repeated cells whose runs differed by more than 10% and report the best attempt. A * marks results that still varied by more than 10%, so treat these timings as indicative. Memory is measured differently per engine.
Conversion
mlx_vlm.convert --hf-path Hcompany/Holo-3.1-0.8B --mlx-path Holo-3.1-0.8B-bf16 --dtype bfloat16
- Downloads last month
- -
Quantized