Run this model with HF Jobs

Run mlx-community/Holo2-4B-bf16 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/Holo2-4B-bf16. 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/Holo2-4B-bf16 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/mlx-community/Holo2-4B-bf16. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/mlx-community/Holo2-4B-bf16. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
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/Holo2-4B-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/Holo2-4B-bf16
Run Hermes
hermes
Quick Links

mlx-community/Holo2-4B-bf16

I converted this model to MLX from Hcompany/Holo2-4B 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.

Holo2-4B ships a redundant lm_head.weight next to its tied embeddings, which stops mlx_vlm.convert from loading the original checkpoint on current mlx-vlm releases (fixed in mlx-vlm #2814, after 0.8.0). The weights in this repository do not contain that tensor and load on the released mlx-vlm 0.8.0.

Use with MLX

pip install -U mlx-vlm
python -m mlx_vlm.generate --model mlx-community/Holo2-4B-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 / 1.8e-4 (720p / 1080p), while transformers bfloat16 on MPS gives 2e-4 to 3e-4. The float32 reference answers were {"x":485,"y":201} at 720p, {"x":496,"y":201} 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, 2216 prompt tokens, greedy)

engine time to first token decode memory
MLX, this model (bf16) 705 ms 60 tok/s 10.1 GB (peak)
transformers, bfloat16, MPS 841 ms 43 tok/s 11.0 GB (peak)
llama.cpp (Metal), F16 1567 ms 58 tok/s 11.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) 89.6% 88.0 to 91.0
MLX 8bit 89.4% 87.8 to 90.8
MLX 4bit 86.6% 84.9 to 88.2

For reference, H Company reports 88.8% for Holo2-4B on WebClick-v1 in its model card (a different harness, so not strictly comparable). bf16 and 8-bit are within 0.2 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) 7.6 s* 31 tok/s 11.6 GB (peak)
llama.cpp (Metal), F16 GGUF (converted from the original weights, not an official release) 14.9 s 26 tok/s 11.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/Holo2-4B --mlx-path Holo2-4B-bf16 --dtype bfloat16
Downloads last month
140
Safetensors
Model size
4B params
Tensor type
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for mlx-community/Holo2-4B-bf16

Finetuned
(1)
this model

Collection including mlx-community/Holo2-4B-bf16