GraySoft
Projects Models About FAQ Contact Download guIDE →
Model Intelligence Sheet

unsloth/qwen2.5-vl-72b-instruct-gguf overview

Comprehensive model page for unsloth/qwen2.5-vl-72b-instruct-gguf

transformersggufqwen2_5_vlimage-text-to-textmultimodalunslothenarxiv:2309.00071arxiv:2409.12191arxiv:2308.12966base_model:Qwen/Qwen2.5-VL-72B-Instructbase_model:quantized:Qwen/Qwen2.5-VL-72B-Instructlicense:otherendpoints_compatibleregion:usimatrixconversational
unsloth/qwen2.5-vl-72b-instruct-gguf visual
Downloads
2,086
Likes
8
Pipeline
image-text-to-text
Library
transformers
Visibility
Public
Access
Open

Repository Files & Downloads

34 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
Qwen2.5-VL-72B-Instruct-BF16-00001-of-00003.gguf GGUF BF16 46.47 GB Download
Qwen2.5-VL-72B-Instruct-BF16-00002-of-00003.gguf GGUF BF16 46.51 GB Download
Qwen2.5-VL-72B-Instruct-BF16-00003-of-00003.gguf GGUF BF16 42.46 GB Download
Qwen2.5-VL-72B-Instruct-IQ4_NL.gguf GGUF IQ4_NL 38.48 GB Download
Qwen2.5-VL-72B-Instruct-IQ4_XS.gguf GGUF IQ4_XS 37.02 GB Download
Qwen2.5-VL-72B-Instruct-Q2_K.gguf GGUF Q2_K 27.76 GB Download
Qwen2.5-VL-72B-Instruct-Q2_K_L.gguf GGUF Q2_K_L 28.04 GB Download
Qwen2.5-VL-72B-Instruct-Q3_K_M.gguf GGUF Q3_K_M 35.11 GB Download
Qwen2.5-VL-72B-Instruct-Q3_K_S.gguf GGUF Q3_K_S 32.12 GB Download
Qwen2.5-VL-72B-Instruct-Q4_0.gguf GGUF 38.54 GB Download
Qwen2.5-VL-72B-Instruct-Q4_1.gguf GGUF 42.56 GB Download
Qwen2.5-VL-72B-Instruct-Q4_K_M.gguf GGUF Q4_K_M 44.16 GB Download
Qwen2.5-VL-72B-Instruct-Q4_K_S.gguf GGUF Q4_K_S 40.88 GB Download
Qwen2.5-VL-72B-Instruct-Q5_K_M-00001-of-00002.gguf GGUF Q5_K_M 46.51 GB Download
Qwen2.5-VL-72B-Instruct-Q5_K_M-00002-of-00002.gguf GGUF Q5_K_M 4.20 GB Download
Qwen2.5-VL-72B-Instruct-Q5_K_S-00001-of-00002.gguf GGUF Q5_K_S 46.54 GB Download
Qwen2.5-VL-72B-Instruct-Q5_K_S-00002-of-00002.gguf GGUF Q5_K_S 1.31 GB Download
Qwen2.5-VL-72B-Instruct-Q6_K-00001-of-00002.gguf GGUF Q6_K 46.50 GB Download
Qwen2.5-VL-72B-Instruct-Q6_K-00002-of-00002.gguf GGUF Q6_K 13.42 GB Download
Qwen2.5-VL-72B-Instruct-UD-IQ2_M.gguf GGUF IQ2_M 27.60 GB Download
Qwen2.5-VL-72B-Instruct-UD-IQ2_XXS.gguf GGUF IQ2_XXS 23.94 GB Download
Qwen2.5-VL-72B-Instruct-UD-IQ3_XXS.gguf GGUF IQ3_XXS 29.67 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q2_K_XL.gguf GGUF Q2_K_XL 28.30 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q3_K_XL.gguf GGUF Q3_K_XL 35.73 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q4_K_XL.gguf GGUF Q4_K_XL 44.07 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q5_K_XL-00001-of-00002.gguf GGUF Q5_K_XL 46.53 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q5_K_XL-00002-of-00002.gguf GGUF Q5_K_XL 3.83 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q6_K_XL-00001-of-00002.gguf GGUF Q6_K_XL 46.41 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q6_K_XL-00002-of-00002.gguf GGUF Q6_K_XL 16.25 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q8_K_XL-00001-of-00002.gguf GGUF Q8_K_XL 46.49 GB Download
Qwen2.5-VL-72B-Instruct-UD-Q8_K_XL-00002-of-00002.gguf GGUF Q8_K_XL 32.43 GB Download
mmproj-BF16.gguf GGUF BF16 1.31 GB Download
mmproj-F16.gguf GGUF F16 1.31 GB Download
mmproj-F32.gguf GGUF F32 2.62 GB Download

Model Details Live

Model Slug
unsloth/qwen2.5-vl-72b-instruct-gguf
Author
unsloth
Pipeline Task
image-text-to-text
Library
transformers
Created
2025-05-11
Last Modified
2025-05-18
Gated
No
Private
No
HF SHA
924acccaaefe1cd2569c717379d20d68be50df06
License
other
Language
en
Base Model
Qwen/Qwen2.5-VL-72B-Instruct

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "license": "other",
    "license_name": "qwen",
    "license_link": "https://huggingface.co/Qwen/Qwen2.5-VL-72B-Instruct/blob/main/LICENSE",
    "language": [
      "en"
    ],
    "pipeline_tag": "image-text-to-text",
    "tags": [
      "multimodal",
      "unsloth"
    ],
    "library_name": "transformers",
    "base_model": [
      "Qwen/Qwen2.5-VL-72B-Instruct"
    ],
    "frontmatter": {
      "license": "other",
      "license_name": "qwen",
      "license_link": "https://huggingface.co/Qwen/Qwen2.5-VL-72B-Instruct/blob/main/LICENSE",
      "language": [
        "en"
      ],
      "pipeline_tag": "image-text-to-text",
      "tags": [
        "multimodal",
        "unsloth"
      ],
      "library_name": "transformers",
      "base_model": [
        "Qwen/Qwen2.5-VL-72B-Instruct"
      ]
    },
    "hero_image_url": "https://img.shields.io/badge/%F0%9F%92%9C%EF%B8%8F%20Qwen%20Chat%20-536af5",
    "summary": "",
    "quick_links": [],
    "benchmark_table_html": "",
    "readme_markdown": "---\nlicense: other\nlicense_name: qwen\nlicense_link: https://huggingface.co/Qwen/Qwen2.5-VL-72B-Instruct/blob/main/LICENSE\nlanguage:\n- en\npipeline_tag: image-text-to-text\ntags:\n- multimodal\n- unsloth\nlibrary_name: transformers\nbase_model:\n- Qwen/Qwen2.5-VL-72B-Instruct\n---\n\n# Qwen2.5-VL-72B-Instruct\n<a href=\"https://chat.qwenlm.ai/\" target=\"_blank\" style=\"margin: 2px;\">\n    <img alt=\"Chat\" src=\"https://img.shields.io/badge/%F0%9F%92%9C%EF%B8%8F%20Qwen%20Chat%20-536af5\" style=\"display: inline-block; vertical-align: middle;\"/>\n</a>\n\n## Introduction\n\nIn the past five months since Qwen2-VL’s release, numerous developers have built new models on the Qwen2-VL vision-language models, providing us with valuable feedback. During this period, we focused on building more useful vision-language models. Today, we are excited to introduce the latest addition to the Qwen family: Qwen2.5-VL.\n\n#### Key Enhancements:\n* **Understand things visually**: Qwen2.5-VL is not only proficient in recognizing common objects such as flowers, birds, fish, and insects, but it is highly capable of analyzing texts, charts, icons, graphics, and layouts within images.\n\n* **Being agentic**: Qwen2.5-VL directly plays as a visual agent that can reason and dynamically direct tools, which is capable of computer use and phone use.\n\n* **Understanding long videos and capturing events**: Qwen2.5-VL can comprehend videos of over 1 hour, and this time it has a new ability of cpaturing event by pinpointing the relevant video segments.\n\n* **Capable of visual localization in different formats**: Qwen2.5-VL can accurately localize objects in an image by generating bounding boxes or points, and it can provide stable JSON outputs for coordinates and attributes.\n\n* **Generating structured outputs**: for data like scans of invoices, forms, tables, etc. Qwen2.5-VL supports structured outputs of their contents, benefiting usages in finance, commerce, etc.\n\n\n#### Model Architecture Updates:\n\n* **Dynamic Resolution and Frame Rate Training for Video Understanding**:\n\nWe extend dynamic resolution to the temporal dimension by adopting dynamic FPS sampling, enabling the model to comprehend videos at various sampling rates. Accordingly, we update mRoPE in the time dimension with IDs and absolute time alignment, enabling the model to learn temporal sequence and speed, and ultimately acquire the ability to pinpoint specific moments.\n\n<p align=\"center\">\n    <img src=\"https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen2.5-VL/qwen2.5vl_arc.jpeg\" width=\"80%\"/>\n<p>\n\n* **Streamlined and Efficient Vision Encoder**\n\nWe enhance both training and inference speeds by strategically implementing window attention into the ViT. The ViT architecture is further optimized with SwiGLU and RMSNorm, aligning it with the structure of the Qwen2.5 LLM.\n\n\nWe have three models with 3, 7 and 72 billion parameters. This repo contains the instruction-tuned 72B Qwen2.5-VL model. For more information, visit our [Blog](https://qwenlm.github.io/blog/qwen2.5-vl/) and [GitHub](https://github.com/QwenLM/Qwen2.5-VL).\n\n\n\n## Evaluation\n\n### Image benchmark\n\n|      Benchmarks        | GPT4o     | Claude3.5 Sonnet  | Gemini-2-flash  | InternVL2.5-78B | Qwen2-VL-72B | Qwen2.5-VL-72B |\n|-----------------------|-----------|-------------------|-----------------|-----------------|--------------|----------------|\n| MMMU<sub>val</sub>    | 70.3      | 70.4              | 70.7            | 70.1                 | 64.5         | 70.2          |\n| MMMU_Pro              | 54.5      | 54.7              | 57.0            | 48.6              | 46.2         | 51.1           |\n| MathVista_MINI        | 63.8      | 65.4              | 73.1            | 76.6                | 70.5         | 74.8           |\n| MathVision_FULL       | 30.4      | 38.3              | 41.3            | 32.2               | 25.9         | 38.1           |\n| Hallusion Bench       | 55.0      | 55.16             |                | 57.4             | 58.1         | 55.16           |\n| MMBench_DEV_EN_V11    | 82.1      | 83.4              | 83.0            | 88.5             | 86.6         | 88           |\n| AI2D_TEST             | 84.6      | 81.2              |                 | 89.1           | 88.1         | 88.4           |\n| ChartQA_TEST          | 86.7      | 90.8              | 85.2            | 88.3               | 88.3         | 89.5           |\n| DocVQA_VAL            | 91.1      | 95.2              | 92.1            | 96.5             | 96.1         |      96.4      |\n| MMStar                | 64.7      | 65.1              | 69.4            | 69.5             | 68.3         |       70.8         |\n| MMVet_turbo           | 69.1      |  70.1              |                 | 72.3           | 74.0         |       76.19         |\n| OCRBench              | 736       | 788               |                 | 854               | 877          |         885       |\n| OCRBench-V2(en/zh)    |  46.5/32.3 |  45.2/39.6         | 51.9/43.1       | 45/46.2     | 47.8/46.1    | 61.5/63.7    |\n| CC-OCR                | 66.6     | 62.7              | 73.0            | 64.7          | 68.7       |79.8           |\n\n\n### Video benchmark\n| Benchmarks          | GPT4o | Gemini-1.5-Pro | InternVL2.5-78B | Qwen2VL-72B | Qwen2.5VL-72B |\n|---------------------|-------|----------------|-----------------|-------------|---------------|\n| VideoMME w/o sub.   | 71.9  | 75.0           | 72.1            | 71.2        | 73.3          |\n| VideoMME w sub.     | 77.2  | 81.3           | 74.0            | 77.8        | 79.1          |\n| MVBench             | 64.6  | 60.5           | 76.4            | 73.6        | 70.4          |\n| MMBench-Video       | 1.63  | 1.30           | 1.97            | 1.70        | 2.02          |\n| LVBench             | 30.8  | 33.1           | -               | 41.3        | 47.3          |\n| EgoSchema           | 72.2  | 71.2           | -               | 77.9        | 76.2          |\n| PerceptionTest_test | -     | -              | -               | 68.0        | 73.2          |\n| MLVU_M-Avg_dev      | 64.6  | -              | 75.7            |             | 74.6          |\n| TempCompass_overall | 73.8  | -              | -               |             | 74.8          |\n\n\n### Agent benchmark\n\n| Benchmarks              | GPT4o       | Gemini 2.0 | Claude | Aguvis-72B | Qwen2VL-72B | Qwen2.5VL-72B |\n|-------------------------|-------------|------------|--------|------------|-------------|---------------|\n| ScreenSpot              | 18.1        | 84.0       | 83.0   |            |             | 87.1          |\n| ScreenSpot Pro          |             |            | 17.1   |            | 1.6         | 43.6          |\n| AITZ_EM                 | 35.3        |            |        |            | 72.8        | 83.2          |\n| Android Control High_EM |             |            |        | 66.4       | 59.1        | 67.36         |\n| Android Control Low_EM  |             |            |        | 84.4       | 59.2        | 93.7          |\n| AndroidWorld_SR         | 34.5% (SoM) |            | 27.9%  | 26.1%      |             | 35%           |\n| MobileMiniWob++_SR      |             |            |        | 66%        |             | 68%           |\n| OSWorld                 |             |            | 14.90  | 10.26      |             | 8.83          |\n\n\n## Requirements\nThe code of Qwen2.5-VL has been in the latest Hugging face transformers and we advise you to build from source with command:\n```\npip install git+https://github.com/huggingface/transformers accelerate\n```\nor you might encounter the following error:\n```\nKeyError: 'qwen2_5_vl'\n```\n\n\n## Quickstart\n\nBelow, we provide simple examples to show how to use Qwen2.5-VL with 🤖 ModelScope and 🤗 Transformers.\n\nThe code of Qwen2.5-VL has been in the latest Hugging face transformers and we advise you to build from source with command:\n```\npip install git+https://github.com/huggingface/transformers accelerate\n```\nor you might encounter the following error:\n```\nKeyError: 'qwen2_5_vl'\n```\n\n\nWe offer a toolkit to help you handle various types of visual input more conveniently, as if you were using an API. This includes base64, URLs, and interleaved images and videos. You can install it using the following command:\n\n```bash\n# It's highly recommanded to use `[decord]` feature for faster video loading.\npip install qwen-vl-utils[decord]==0.0.8\n```\n\nIf you are not using Linux, you might not be able to install `decord` from PyPI. In that case, you can use `pip install qwen-vl-utils` which will fall back to using torchvision for video processing. However, you can still [install decord from source](https://github.com/dmlc/decord?tab=readme-ov-file#install-from-source) to get decord used when loading video.\n\n### Using 🤗  Transformers to Chat\n\nHere we show a code snippet to show you how to use the chat model with `transformers` and `qwen_vl_utils`:\n\n```python\nfrom transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor\nfrom qwen_vl_utils import process_vision_info\n\n# default: Load the model on the available device(s)\nmodel = Qwen2_5_VLForConditionalGeneration.from_pretrained(\n    \"Qwen/Qwen2.5-VL-72B-Instruct\", torch_dtype=\"auto\", device_map=\"auto\"\n)\n\n# We recommend enabling flash_attention_2 for better acceleration and memory saving, especially in multi-image and video scenarios.\n# model = Qwen2_5_VLForConditionalGeneration.from_pretrained(\n#     \"Qwen/Qwen2.5-VL-72B-Instruct\",\n#     torch_dtype=torch.bfloat16,\n#     attn_implementation=\"flash_attention_2\",\n#     device_map=\"auto\",\n# )\n\n# default processer\nprocessor = AutoProcessor.from_pretrained(\"Qwen/Qwen2.5-VL-72B-Instruct\")\n\n# The default range for the number of visual tokens per image in the model is 4-16384.\n# You can set min_pixels and max_pixels according to your needs, such as a token range of 256-1280, to balance performance and cost.\n# min_pixels = 256*28*28\n# max_pixels = 1280*28*28\n# processor = AutoProcessor.from_pretrained(\"Qwen/Qwen2.5-VL-72B-Instruct\", min_pixels=min_pixels, max_pixels=max_pixels)\n\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"image\",\n                \"image\": \"https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg\",\n            },\n            {\"type\": \"text\", \"text\": \"Describe this image.\"},\n        ],\n    }\n]\n\n# Preparation for inference\ntext = processor.apply_chat_template(\n    messages, tokenize=False, add_generation_prompt=True\n)\nimage_inputs, video_inputs = process_vision_info(messages)\ninputs = processor(\n    text=[text],\n    images=image_inputs,\n    videos=video_inputs,\n    padding=True,\n    return_tensors=\"pt\",\n)\ninputs = inputs.to(\"cuda\")\n\n# Inference: Generation of the output\ngenerated_ids = model.generate(**inputs, max_new_tokens=128)\ngenerated_ids_trimmed = [\n    out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)\n]\noutput_text = processor.batch_decode(\n    generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False\n)\nprint(output_text)\n```\n<details>\n<summary>Multi image inference</summary>\n\n```python\n# Messages containing multiple images and a text query\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\"type\": \"image\", \"image\": \"file:///path/to/image1.jpg\"},\n            {\"type\": \"image\", \"image\": \"file:///path/to/image2.jpg\"},\n            {\"type\": \"text\", \"text\": \"Identify the similarities between these images.\"},\n        ],\n    }\n]\n\n# Preparation for inference\ntext = processor.apply_chat_template(\n    messages, tokenize=False, add_generation_prompt=True\n)\nimage_inputs, video_inputs = process_vision_info(messages)\ninputs = processor(\n    text=[text],\n    images=image_inputs,\n    videos=video_inputs,\n    padding=True,\n    return_tensors=\"pt\",\n)\ninputs = inputs.to(\"cuda\")\n\n# Inference\ngenerated_ids = model.generate(**inputs, max_new_tokens=128)\ngenerated_ids_trimmed = [\n    out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)\n]\noutput_text = processor.batch_decode(\n    generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False\n)\nprint(output_text)\n```\n</details>\n\n<details>\n<summary>Video inference</summary>\n\n```python\n# Messages containing a images list as a video and a text query\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"video\",\n                \"video\": [\n                    \"file:///path/to/frame1.jpg\",\n                    \"file:///path/to/frame2.jpg\",\n                    \"file:///path/to/frame3.jpg\",\n                    \"file:///path/to/frame4.jpg\",\n                ],\n            },\n            {\"type\": \"text\", \"text\": \"Describe this video.\"},\n        ],\n    }\n]\n\n# Messages containing a local video path and a text query\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"video\",\n                \"video\": \"file:///path/to/video1.mp4\",\n                \"max_pixels\": 360 * 420,\n                \"fps\": 1.0,\n            },\n            {\"type\": \"text\", \"text\": \"Describe this video.\"},\n        ],\n    }\n]\n\n# Messages containing a video url and a text query\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"video\",\n                \"video\": \"https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen2-VL/space_woaudio.mp4\",\n            },\n            {\"type\": \"text\", \"text\": \"Describe this video.\"},\n        ],\n    }\n]\n\n#In Qwen 2.5 VL, frame rate information is also input into the model to align with absolute time.\n# Preparation for inference\ntext = processor.apply_chat_template(\n    messages, tokenize=False, add_generation_prompt=True\n)\nimage_inputs, video_inputs, video_kwargs = process_vision_info(messages, return_video_kwargs=True)\ninputs = processor(\n    text=[text],\n    images=image_inputs,\n    videos=video_inputs,\n    fps=fps,\n    padding=True,\n    return_tensors=\"pt\",\n    **video_kwargs,\n)\ninputs = inputs.to(\"cuda\")\n\n# Inference\ngenerated_ids = model.generate(**inputs, max_new_tokens=128)\ngenerated_ids_trimmed = [\n    out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)\n]\noutput_text = processor.batch_decode(\n    generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False\n)\nprint(output_text)\n```\n\nVideo URL compatibility largely depends on the third-party library version. The details are in the table below. change the backend by `FORCE_QWENVL_VIDEO_READER=torchvision` or `FORCE_QWENVL_VIDEO_READER=decord` if you prefer not to use the default one.\n\n| Backend     | HTTP | HTTPS |\n|-------------|------|-------|\n| torchvision >= 0.19.0 | ✅  | ✅   |\n| torchvision < 0.19.0  | ❌  | ❌   |\n| decord      | ✅  | ❌   |\n</details>\n\n<details>\n<summary>Batch inference</summary>\n\n```python\n# Sample messages for batch inference\nmessages1 = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\"type\": \"image\", \"image\": \"file:///path/to/image1.jpg\"},\n            {\"type\": \"image\", \"image\": \"file:///path/to/image2.jpg\"},\n            {\"type\": \"text\", \"text\": \"What are the common elements in these pictures?\"},\n        ],\n    }\n]\nmessages2 = [\n    {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n    {\"role\": \"user\", \"content\": \"Who are you?\"},\n]\n# Combine messages for batch processing\nmessages = [messages1, messages2]\n\n# Preparation for batch inference\ntexts = [\n    processor.apply_chat_template(msg, tokenize=False, add_generation_prompt=True)\n    for msg in messages\n]\nimage_inputs, video_inputs = process_vision_info(messages)\ninputs = processor(\n    text=texts,\n    images=image_inputs,\n    videos=video_inputs,\n    padding=True,\n    return_tensors=\"pt\",\n)\ninputs = inputs.to(\"cuda\")\n\n# Batch Inference\ngenerated_ids = model.generate(**inputs, max_new_tokens=128)\ngenerated_ids_trimmed = [\n    out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)\n]\noutput_texts = processor.batch_decode(\n    generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False\n)\nprint(output_texts)\n```\n</details>\n\n### 🤖 ModelScope\nWe strongly advise users especially those in mainland China to use ModelScope. `snapshot_download` can help you solve issues concerning downloading checkpoints.\n\n\n### More Usage Tips\n\nFor input images, we support local files, base64, and URLs. For videos, we currently only support local files.\n\n```python\n# You can directly insert a local file path, a URL, or a base64-encoded image into the position where you want in the text.\n## Local file path\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\"type\": \"image\", \"image\": \"file:///path/to/your/image.jpg\"},\n            {\"type\": \"text\", \"text\": \"Describe this image.\"},\n        ],\n    }\n]\n## Image URL\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\"type\": \"image\", \"image\": \"http://path/to/your/image.jpg\"},\n            {\"type\": \"text\", \"text\": \"Describe this image.\"},\n        ],\n    }\n]\n## Base64 encoded image\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\"type\": \"image\", \"image\": \"data:image;base64,/9j/...\"},\n            {\"type\": \"text\", \"text\": \"Describe this image.\"},\n        ],\n    }\n]\n```\n#### Image Resolution for performance boost\n\nThe model supports a wide range of resolution inputs. By default, it uses the native resolution for input, but higher resolutions can enhance performance at the cost of more computation. Users can set the minimum and maximum number of pixels to achieve an optimal configuration for their needs, such as a token count range of 256-1280, to balance speed and memory usage.\n\n```python\nmin_pixels = 256 * 28 * 28\nmax_pixels = 1280 * 28 * 28\nprocessor = AutoProcessor.from_pretrained(\n    \"Qwen/Qwen2.5-VL-72B-Instruct\", min_pixels=min_pixels, max_pixels=max_pixels\n)\n```\n\nBesides, We provide two methods for fine-grained control over the image size input to the model:\n\n1. Define min_pixels and max_pixels: Images will be resized to maintain their aspect ratio within the range of min_pixels and max_pixels.\n   \n2. Specify exact dimensions: Directly set `resized_height` and `resized_width`. These values will be rounded to the nearest multiple of 28.\n\n```python\n# min_pixels and max_pixels\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"image\",\n                \"image\": \"file:///path/to/your/image.jpg\",\n                \"resized_height\": 280,\n                \"resized_width\": 420,\n            },\n            {\"type\": \"text\", \"text\": \"Describe this image.\"},\n        ],\n    }\n]\n# resized_height and resized_width\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"image\",\n                \"image\": \"file:///path/to/your/image.jpg\",\n                \"min_pixels\": 50176,\n                \"max_pixels\": 50176,\n            },\n            {\"type\": \"text\", \"text\": \"Describe this image.\"},\n        ],\n    }\n]\n```\n\n### Processing Long Texts\n\nThe current `config.json` is set for context length up to 32,768 tokens.\nTo handle extensive inputs exceeding 32,768 tokens, we utilize [YaRN](https://arxiv.org/abs/2309.00071), a technique for enhancing model length extrapolation, ensuring optimal performance on lengthy texts.\n\nFor supported frameworks, you could add the following to `config.json` to enable YaRN:\n\n```json\n{\n\t...,\n    \"type\": \"yarn\",\n    \"mrope_section\": [\n        16,\n        24,\n        24\n    ],\n    \"factor\": 4,\n    \"original_max_position_embeddings\": 32768\n}\n```\n\nHowever, it should be noted that this method has a significant impact on the performance of temporal and spatial localization tasks, and is therefore not recommended for use.\n\nAt the same time, for long video inputs, since MRoPE itself is more economical with ids, the max_position_embeddings can be directly modified to a larger value, such as 64k.\n\n\n\n## Citation\n\nIf you find our work helpful, feel free to give us a cite.\n\n```\n@misc{qwen2.5-VL,\n    title = {Qwen2.5-VL},\n    url = {https://qwenlm.github.io/blog/qwen2.5-vl/},\n    author = {Qwen Team},\n    month = {January},\n    year = {2025}\n}\n\n@article{Qwen2VL,\n  title={Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution},\n  author={Wang, Peng and Bai, Shuai and Tan, Sinan and Wang, Shijie and Fan, Zhihao and Bai, Jinze and Chen, Keqin and Liu, Xuejing and Wang, Jialin and Ge, Wenbin and Fan, Yang and Dang, Kai and Du, Mengfei and Ren, Xuancheng and Men, Rui and Liu, Dayiheng and Zhou, Chang and Zhou, Jingren and Lin, Junyang},\n  journal={arXiv preprint arXiv:2409.12191},\n  year={2024}\n}\n\n@article{Qwen-VL,\n  title={Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond},\n  author={Bai, Jinze and Bai, Shuai and Yang, Shusheng and Wang, Shijie and Tan, Sinan and Wang, Peng and Lin, Junyang and Zhou, Chang and Zhou, Jingren},\n  journal={arXiv preprint arXiv:2308.12966},\n  year={2023}\n}\n```\n",
    "related_quantizations": []
  },
  "tags": [
    "transformers",
    "gguf",
    "qwen2_5_vl",
    "image-text-to-text",
    "multimodal",
    "unsloth",
    "en",
    "arxiv:2309.00071",
    "arxiv:2409.12191",
    "arxiv:2308.12966",
    "base_model:Qwen/Qwen2.5-VL-72B-Instruct",
    "base_model:quantized:Qwen/Qwen2.5-VL-72B-Instruct",
    "license:other",
    "endpoints_compatible",
    "region:us",
    "imatrix",
    "conversational"
  ],
  "likes": 8,
  "downloads": 2086,
  "gated": false,
  "private": false,
  "last_modified": "2025-05-18T06:48:38.000Z",
  "created_at": "2025-05-11T19:30:07.000Z",
  "pipeline_tag": "image-text-to-text",
  "library_name": "transformers"
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "6820fabf95a4f75c79db3df0",
  "id": "unsloth/Qwen2.5-VL-72B-Instruct-GGUF",
  "modelId": "unsloth/Qwen2.5-VL-72B-Instruct-GGUF",
  "sha": "924acccaaefe1cd2569c717379d20d68be50df06",
  "createdAt": "2025-05-11T19:30:07.000Z",
  "lastModified": "2025-05-18T06:48:38.000Z",
  "author": "unsloth",
  "downloads": 2086,
  "likes": 8,
  "gated": false,
  "private": false,
  "pipeline_tag": "image-text-to-text",
  "library_name": "transformers",
  "siblings_count": 38
}