Views
No views yet


| Eval | ZAYA1-VL-8B(0.7B / 8B) | MolmoE(1.2B / 8B) | Qwen3.5-2B | InternVL3.5-20B(20B / 4B) | Molmo2-4B | Qwen3.5-4B |
|---|---|---|---|---|---|---|
| AI2D (test) | 87.5 | 82.5 | 86.7 | 85.5 | 93.8 | 93.4 |
| ChartQA (test) | 82.2 | 77.9 | 78.4 | 87.0 | 86.1 | 82.4 |
| DocVQA (test) | 92.5 | 77.7 | -- | 92.9 | 87.8 | -- |
| InfoVQA (test) | 74.0 | 53.9 | -- | 78.1 | 78.6 | -- |
| TextVQA (val) | 74.4 | 78.1 | 79.0 | 78.5 | 83.1 | 81.1 |
| OCRBench | 79.8 | 55.0 | 83.1 | 86.7 | 62.0 | 85.3 |
| VQA v2.0 (val) | 80.0 | 82.8 | 78.3 | 78.4 | 85.3 | 80.4 |
| MathVista (mini) | 64.0 | 39.1 | 52.9 | 73.5 | 56.5 | 82.3 |
| MMMU (val) | 46.0 | -- | 49.2 | 72.6 | 48.8 | 56.9 |
| SEED (image) | 72.7 | 68.7 | 75.8 | 76.8 | 78.0 | 76.6 |
| Blink (val) | 45.9 | -- | 61.0 | 58.9 | 63.5 | 56.8 |
| RealWorldQA | 65.0 | 60.4 | 69.0 | 71.2 | 73.8 | 74.2 |
| CountBenchQA | 88.1 | 77.4 | 84.2 | 82.1 | 91.2 | 84.8 |
| PixMoCount (test) | 83.1 | 45.2 | 65.5 | 47.3 | 87.0 | 84.2 |
| Point-Bench (avg) | 58.0 | 58.0 | 40.6 | -- | 68.5 | 64.4 |
| RefCOCO (avg) | 84.3 | -- | 80.1 | 89.1 | -- | 87.7 |
zaya1-vl branch from our fork of transformers library, which is based on the v4.57.1 of transformers:1pip install "transformers @ git+https://github.com/Zyphra/transformers.git@zaya1-vl"
2pip install qwen-vl-utils==0.0.2
3pip install flash_attntransformers v4.57.1 being installed in your environment. If you're installing in a fresh Python environment, you might want to specify a specific extra, like [dev-torch], to install all the dependencies:pip install "transformers[dev-torch] @ git+https://github.com/Zyphra/transformers.git@zaya1-vl"1from transformers import Zaya1VLForConditionalGeneration, Zaya1VLProcessor
2import torch
3from PIL import Image
4from qwen_vl_utils import process_vision_info
5import requests
6
7device = "cuda"
8processor = Zaya1VLProcessor.from_pretrained("Zyphra/ZAYA1-VL-8B", temporal_patch_size=1)
9model = Zaya1VLForConditionalGeneration.from_pretrained("Zyphra/ZAYA1-VL-8B", device_map=device, torch_dtype=torch.bfloat16, attn_implementation="flash_attention_2")
10
11url = "http://images.cocodataset.org/val2017/000000039769.jpg"
12image = Image.open(requests.get(url, stream=True).raw)
13question = "What do you see in the image? Give us some detail."
14num_img_tokens = 8000
15
16conversation = [
17 {"role": "user", "content": [
18 {"type": "image", "image": image, "max_pixels" : num_img_tokens * 28 * 28, "min_pixels" : 10 * 28 * 28},
19 {"type": "text", "text": question},
20 ]
21 },
22]
23prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
24images, _ = process_vision_info(conversation)
25inputs = processor(text=prompt, images=images, add_special_tokens=True, return_tensors="pt")
26inputs = {key: value.to(device) for key, value in inputs.items()}
27
28outputs = model.generate(**inputs, max_new_tokens=100)
29print(processor.tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))