How to use from the
Use from the
MLX library
# 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("inferencerlabs/granite-vision-4.1-4b-MLX-Q9")
config = load_config("inferencerlabs/granite-vision-4.1-4b-MLX-Q9")

# 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)

Granite-Vision-4.1-4B

See Granite-Vision-4.1 in action: demonstration videos

Tested with an M3 Ultra 512 GiB using Inferencer app v1.11.7

  • Vision inference: ~72.5 tokens/s @ 1000 tokens ~6.5 GiB (debug build)

Q9 typically achieves near lossless accuracy in our coding test.

Quantized with a modified version of MLX
For more details see our demonstration videos or visit granite-vision-4.1-4b.

Disclaimer

We are not the creator, originator, or owner of any model listed. Each model is created and provided by third parties. Models may not always be accurate or contextually appropriate. You are responsible for verifying the information before making important decisions. We are not liable for any damages, losses, or issues arising from its use, including data loss or inaccuracies in AI-generated content.

Downloads last month
107
Safetensors
Model size
8B params
Tensor type
BF16
·
U32
·
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 inferencerlabs/granite-vision-4.1-4b-MLX-Q9

Quantized
(3)
this model