Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
gptq
qwen
qwen3-vl
vision-language-model
quantization
4-bit precision
auto-round
conversational
Run this model with HF Jobs
Run OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ 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 and TRL to fine-tune https://huggingface.co/OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ. 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/OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ 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/OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ. 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.
Instructions to use OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ") model = AutoModelForMultimodalLM.from_pretrained("OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ
- SGLang
How to use OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ with Docker Model Runner:
docker model run hf.co/OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ
|
Download README.md from OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ: direct link, hf CLI and curl.
- Browser
- Download file 8.4 kB
-
https://huggingface.co/OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ/resolve/main/README.md
- Command line
-
hf download hf://OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ/README.md
-
curl -L -o README.md https://huggingface.co/OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ/resolve/main/README.md
8.4 kB
| base_model: Qwen/Qwen3-VL-8B-Instruct | |
| library_name: transformers | |
| license: apache-2.0 | |
| tags: | |
| - gptq | |
| - qwen | |
| - qwen3-vl | |
| - vision-language-model | |
| - quantization | |
| - 4-bit | |
| - auto-round | |
| pipeline_tag: image-text-to-text | |
| model_type: qwen3_vl | |
| # Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ | |
| ## Model Overview | |
| This is a **4-bit quantized GPTQ** version of the state-of-the-art [Qwen/Qwen3-VL-8B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct) vision-language model. | |
| Unlike standard GPTQ conversions which rely on a greedy layer-wise algorithm, this model was optimized using **Intel's AutoRound**. AutoRound analyzes the model's weights over 800 tuning steps with 512 calibration samples to find the optimal quantization points. This results in **significantly lower perplexity** and better reasoning retention than standard GPTQ, while maintaining full compatibility with all GPTQ inference backends. | |
| ### Key Highlights | |
| * **Best-in-Class Quality**: tuned for 800 iterations to preserve the model's complex visual reasoning capabilities. | |
| * **Uncompromised Vision**: The visual encoder (Vision Tower) is kept in **FP16 (Unquantized)** to ensure no degradation in OCR, chart reading, or spatial analysis. | |
| * **Broad Compatibility**: Works with `AutoGPTQ`, `Transformers`, and older `vLLM` versions that support GPTQ. | |
| ### Technical Specifications | |
| | Feature | Detail | | |
| | :--- | :--- | | |
| | **Quantization Format** | GPTQ | | |
| | **Quantization Scheme** | W4A16 (4-bit weights, 16-bit activations) | | |
| | **Optimization Algo** | Intel AutoRound (Symmetric, Group Size 128) | | |
| | **Vision Tower** | FP16 (Original Precision) | | |
| | **Model Size** | ~5.5 GB (vs ~16GB Original) | | |
| | **VRAM Requirement** | ~6-8 GB for Inference | | |
| --- | |
| ## Quickstart | |
| ### 1. Installation | |
| To run this model, you need `transformers` and the `auto-gptq` kernel library. | |
| ```bash | |
| pip install auto-gptq transformers torch | |
| ``` | |
| ### 2. Inference Example | |
| This snippet demonstrates how to load the model and analyze an image. | |
| ```python | |
| from transformers import Qwen2VLForConditionalGeneration, AutoProcessor | |
| from qwen_vl_utils import process_vision_info | |
| import torch | |
| # 1. Load the Model | |
| model_id = "OpenTensorLab/Qwen3-VL-8B-Instruct-W4A16-AutoRound-GPTQ" | |
| model = Qwen2VLForConditionalGeneration.from_pretrained( | |
| model_id, | |
| torch_dtype=torch.float16, | |
| device_map="auto", | |
| trust_remote_code=True, | |
| ) | |
| # 2. Load the Processor | |
| processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True) | |
| # 3. Prepare Input (Image + Text) | |
| messages = [ | |
| { | |
| "role": "user", | |
| "content": [ | |
| { | |
| "type": "image", | |
| "image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg", | |
| }, | |
| {"type": "text", "text": "Describe this image in detail."}, | |
| ], | |
| } | |
| ] | |
| # 4. Process Inputs | |
| text = processor.apply_chat_template( | |
| messages, tokenize=False, add_generation_prompt=True | |
| ) | |
| image_inputs, video_inputs = process_vision_info(messages) | |
| inputs = processor( | |
| text=[text], | |
| images=image_inputs, | |
| videos=video_inputs, | |
| padding=True, | |
| return_tensors="pt", | |
| ).to(model.device) | |
| # 5. Generate Output | |
| generated_ids = model.generate(**inputs, max_new_tokens=128) | |
| generated_ids_trimmed = [ | |
| out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids) | |
| ] | |
| output_text = processor.batch_decode( | |
| generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False | |
| ) | |
| print(f"Model Response:\n{output_text}") | |
| ``` | |
| --- | |
| ## Performance & Benchmarks | |
| This quantized model aims to match the performance of the FP16 original model while reducing memory usage by nearly 70%. | |
| * **VRAM Usage**: reduced from **~16GB** (FP16) to **~5.5GB** (GPTQ). | |
| * **Throughput**: Higher token generation speed on memory-bandwidth limited GPUs (like RTX 3090, 4090, L40). | |
| ### 🚀 Deploy on RunPod | |
| One-click launch environments pre-configured with PyTorch, CUDA, and dependencies for fine-tuning or quantization. | |
| > 🎁 **Need GPU compute?** Sign up via [RunPod](https://runpod.io?ref=iabrlp7z) and get **$5–$500 in free credits** when you add your first $10. | |
| #### PyTorch 2.15 | |
| | Template | CUDA Version | Docker Image | Template ID | Deploy | | |
| | :--- | :--- | :--- | :--- | :--- | | |
| | **PyTorch 2.15 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.15-runpod` | `0rsw686010` | [](https://runpod.io/console/deploy?template=0rsw686010&ref=iabrlp7z) | | |
| | **PyTorch 2.15 (CUDA 13.4)** | 13.4 | `vishva123/cuda-13.4-pytorch-2.15-runpod` | `0s0rhdfaqy` | [](https://runpod.io/console/deploy?template=0s0rhdfaqy&ref=iabrlp7z) | | |
| #### PyTorch 2.14 | |
| | Template | CUDA Version | Docker Image | Template ID | Deploy | | |
| | :--- | :--- | :--- | :--- | :--- | | |
| | **PyTorch 2.14 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.14-runpod` | `d7lxsa4w9m` | [](https://runpod.io/console/deploy?template=d7lxsa4w9m&ref=iabrlp7z) | | |
| | **PyTorch 2.14 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.14-runpod` | `yk0y6j6rpg` | [](https://runpod.io/console/deploy?template=yk0y6j6rpg&ref=iabrlp7z) | | |
| | **PyTorch 2.14 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.14-runpod` | `gsp4gwx0nw` | [](https://runpod.io/console/deploy?template=gsp4gwx0nw&ref=iabrlp7z) | | |
| #### PyTorch 2.13 | |
| | Template | CUDA Version | Docker Image | Template ID | Deploy | | |
| | :--- | :--- | :--- | :--- | :--- | | |
| | **PyTorch 2.13 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.13-runpod` | `gmlupxnxfk` | [](https://runpod.io/console/deploy?template=gmlupxnxfk&ref=iabrlp7z) | | |
| | **PyTorch 2.13 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.13-runpod` | `y3j8xvk4f4` | [](https://runpod.io/console/deploy?template=y3j8xvk4f4&ref=iabrlp7z) | | |
| | **PyTorch 2.13 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.13-runpod` | `vigpissn5w` | [](https://runpod.io/console/deploy?template=vigpissn5w&ref=iabrlp7z) | | |
| #### PyTorch 2.12 | |
| | Template | CUDA Version | Docker Image | Template ID | Deploy | | |
| | :--- | :--- | :--- | :--- | :--- | | |
| | **PyTorch 2.12 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.12-runpod` | `ctmz86zmf0` | [](https://runpod.io/console/deploy?template=ctmz86zmf0&ref=iabrlp7z) | | |
| | **PyTorch 2.12 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.12-runpod` | `qjko5yiwzi` | [](https://runpod.io/console/deploy?template=qjko5yiwzi&ref=iabrlp7z) | | |
| | **PyTorch 2.12 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.12-runpod` | `ifg6xmye0f` | [](https://runpod.io/console/deploy?template=ifg6xmye0f&ref=iabrlp7z) | | |
| --- | |
| ## Acknowledgements | |
| * **Base Model**: [Qwen/Qwen3-VL-8B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct) | |
| * **Quantization Tool**: [Intel AutoRound](https://github.com/intel/auto-round) | |
| * **Paper**: [Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs](https://arxiv.org/abs/2309.05516) | |
| ## Citation | |
| If you use this model, please cite the original Qwen3-VL paper: | |
| ```bibtex | |
| @misc{qwen3technicalreport, | |
| title={Qwen3 Technical Report}, | |
| author={Qwen Team}, | |
| year={2025} | |
| } | |
| ``` | |