Views
No views yet
[!IMPORTANT] jina-vlm support is already merged into mlx-vlm master but not yet released. Until the next release, install from the main branch:
pip install git+https://github.com/Blaizzy/mlx-vlm.git@main1from mlx_vlm import load, generate
2from mlx_vlm.prompt_utils import apply_chat_template
3from mlx_vlm.utils import load_config
4
5# Load model
6model, processor = load("jinaai/jina-vlm-mlx")
7config = load_config("jinaai/jina-vlm-mlx")
8
9# Prepare input
10image = ["photo.jpg"]
11prompt = "Describe this image."
12
13# Apply chat template
14formatted_prompt = apply_chat_template(
15 processor, config, prompt, num_images=1
16)
17
18# Generate
19output = generate(model, processor, formatted_prompt, image, max_tokens=200)
20print(output.text)1python -m mlx_vlm.generate \
2 --model jinaai/jina-vlm-mlx \
3 --image photo.jpg \
4 --prompt "Describe this image." \
5 --max-tokens 2001@misc{koukounas2025jinavlm,
2 title={Jina-VLM: Small Multilingual Vision Language Model},
3 author={Andreas Koukounas and Georgios Mastrapas and Florian Hönicke and Sedigheh Eslami and Guillaume Roncari and Scott Martens and Han Xiao},
4 year={2025},
5 eprint={2512.04032},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2512.04032},
9}