OmniParser v2.0 Icon Captioner (Florence-2) β€” MLX 4-bit (group_size=64)

MLX conversion of the icon captioning model from microsoft/OmniParser-v2.0.

Model Details

  • Architecture: Florence-2-base fine-tune (BART decoder + ViT vision encoder)
  • Parameters: ~270M (quantized language model, vision tower bf16)
  • Input: 64Γ—64 RGB crop of a detected icon
  • Output: Short text caption (e.g., "Cancel", "a yellow circle")

Usage

from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template

model, processor = load("axiom-of-choice/OmniParser-v2-icon-caption-4-bit (group_size=64)")
prompt = apply_chat_template(processor, model.config, "<CAPTION>", num_images=1)
output = generate(model, processor, prompt, image=crop, max_tokens=20, temperature=0.0)
print(output.text)

Source

Fine-tuned weights from microsoft/OmniParser-v2.0/icon_caption, processor from microsoft/Florence-2-base. Config patched for transformers 5.x compatibility (auto_map removed, text_config.model_type set to "bart").

Downloads last month
11
Safetensors
Model size
0.3B params
Tensor type
U32
Β·
BF16
Β·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

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

Collection including axiom-of-choice/OmniParser-v2-icon-caption-4bit