MLX quantizations
Collection
Some of my work on bringing LLM and VLMs into Apple Sillicon inference engine. β’ 30 items β’ Updated
How to use axiom-of-choice/OmniParser-v2-icon-caption-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download axiom-of-choice/OmniParser-v2-icon-caption-8bit --local-dir OmniParser-v2-icon-caption-8bit
MLX conversion of the icon captioning model from microsoft/OmniParser-v2.0.
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-8-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)
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").
8-bit