OmniParser v2.0 Icon Captioner (Florence-2) β€” MLX bf16

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: 270.9M
  • 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-bf16")
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
14
Safetensors
Model size
0.3B 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

Collection including axiom-of-choice/OmniParser-v2-icon-caption-bf16