Run this model with HF Jobs

Run zeromodels/qwen2-vl-72b-instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/zeromodels/qwen2-vl-72b-instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/zeromodels/qwen2-vl-72b-instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/zeromodels/qwen2-vl-72b-instruct. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/zeromodels/qwen2-vl-72b-instruct. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Run Qwen2-VL with Keras 3: JAX, PyTorch, or TensorFlow

GitHub Docs HuggingFace

zeromodels/qwen2-vl-72b-instruct

Pure-Keras 3 conversion of Qwen/Qwen2-VL-72B-Instruct for zeromodels. One implementation runs unmodified on TensorFlow / Torch / JAX. This is the 72B variant, served here as image + text -> text via Qwen2VLProcessor; weights are stored in bfloat16.

For model details, license, and usage terms, see the upstream model card.

Paper: Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution (arXiv:2409.12191) · HF Papers

Paper: Qwen-VL: A Frontier Large Vision-Language Model with Versatile Abilities (arXiv:2308.12966) · HF Papers

✨ Quick start

Text-only

import os
os.environ["KERAS_BACKEND"] = "torch"  # or "jax" / "tensorflow"

from zeromodels.models.qwen2_vl import Qwen2VLTextGenerate, Qwen2VLProcessor

model = Qwen2VLTextGenerate.from_weights("zeromodels/qwen2-vl-72b-instruct")
processor = Qwen2VLProcessor.from_weights("zeromodels/qwen2-vl-72b-instruct")

inputs = processor(conversation=[
    {"role": "user", "content": [{"type": "text", "text": "Hello, who are you?"}]}
])
outputs = model.generate(**inputs, max_new_tokens=64)
print(processor.decode(outputs[0]))

Image + text

import os
os.environ["KERAS_BACKEND"] = "torch"  # or "jax" / "tensorflow"

from PIL import Image
from zeromodels.models.qwen2_vl import Qwen2VLConditionalGenerate, Qwen2VLProcessor

model = Qwen2VLConditionalGenerate.from_weights("zeromodels/qwen2-vl-72b-instruct")
processor = Qwen2VLProcessor.from_weights("zeromodels/qwen2-vl-72b-instruct")

inputs = processor(conversation=[
    {"role": "user", "content": [
        {"type": "image", "image": Image.open("photo.jpg")},
        {"type": "text", "text": "Describe this image in one sentence."},
    ]}
])
outputs = model.generate(**inputs, max_new_tokens=64)
print(processor.decode(outputs[0]))

Load any Qwen2-VL variant the same way with from_weights("zeromodels/<variant>"):

Variant Hub
qwen2-vl-72b-instruct zeromodels/qwen2-vl-72b-instruct

Special Thanks

A huge thank you to the Qwen team at Alibaba for creating and releasing these models.

License: Qwen license (see the upstream license).

Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for zeromodels/qwen2-vl-72b-instruct

Finetuned
(3)
this model

Collection including zeromodels/qwen2-vl-72b-instruct

Papers for zeromodels/qwen2-vl-72b-instruct