Qwen3.8-27B-int4-ov

EXPERIMENTAL MODEL This model has not been fully validated with OpenVINO and currently requires development versions of Optimum Intel and OpenVINO. It may be fully supported and validated in future releases.

Description

This is the Qwen3.8-27B model converted to the OpenVINO™ IR (Intermediate Representation) format with weights compressed to INT4 by NNCF.

Qwen3.8-27B is a native vision-language model with image and video understanding, flexible thinking control, and support for complex multi-step tasks.

Quantization Parameters

Weight compression was performed using nncf.compress_weights with the following parameters:

  • mode: INT4_ASYM
  • group_size: 128
  • ratio: 1.0

For more information about quantization, see the OpenVINO model optimization guide.

Compatibility

The provided OpenVINO IR model is compatible with:

  • OpenVINO 2026.4.0 (nightly) and higher
  • OpenVINO GenAI nightly builds from August 14, 2026 and later
  • The latest Optimum Intel development version
  • Transformers 5.2

Running Model Inference with Optimum Intel

Install the packages required to use Optimum Intel with the OpenVINO backend:

pip install -U "git+https://github.com/huggingface/optimum-intel.git" torchvision Pillow --extra-index-url https://download.pytorch.org/whl/cpu
pip install --pre -U openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
pip install -U "transformers==5.2"

Run model inference:

import requests
from PIL import Image
from transformers import AutoProcessor
from optimum.intel.openvino import OVModelForVisualCausalLM

model_id = "OpenVINO/Qwen3.8-27B-int4-ov"
processor = AutoProcessor.from_pretrained(model_id)
model = OVModelForVisualCausalLM.from_pretrained(model_id)

url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"
image = Image.open(requests.get(url, stream=True).raw)

messages = [
    {
        "role": "user",
        "content": [
            {"type": "image"},
            {"type": "text", "text": "Describe this image."},
        ],
    }
]

text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=[text], images=[image], return_tensors="pt")

outputs = model.generate(**inputs, max_new_tokens=200)
print(processor.batch_decode(outputs[:, inputs.input_ids.shape[1] :], skip_special_tokens=True)[0])

For more examples and possible optimizations, refer to Inference with Optimum Intel.

Running Model Inference with OpenVINO GenAI

Install the packages required to use OpenVINO GenAI:

pip install -U huggingface_hub Pillow
pip install --pre -U openvino openvino-tokenizers openvino-genai --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly

Download the model from Hugging Face Hub:

import huggingface_hub as hf_hub

model_id = "OpenVINO/Qwen3.8-27B-int4-ov"
model_path = "Qwen3.8-27B-int4-ov"

hf_hub.snapshot_download(model_id, local_dir=model_path)

Run model inference:

import numpy as np
import openvino as ov
import openvino_genai as ov_genai
import requests
from PIL import Image

device = "CPU"
model_path = "Qwen3.8-27B-int4-ov"
pipe = ov_genai.VLMPipeline(model_path, device)

url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
image_tensor = ov.Tensor(np.array(image)[None])

print(pipe.generate("Describe this image.", image=image_tensor, max_new_tokens=200))

More OpenVINO GenAI examples are available in:

Limitations

Check the original model card for model limitations and recommended generation settings.

Legal Information

The original model is distributed under the Apache License 2.0. This converted model is distributed under the same license.

Disclaimer

Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See Intel's Global Human Rights Principles. Intel's products and software are intended only to be used in applications that do not cause or contribute to adverse impacts to human rights.

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

Model tree for OpenVINO/Qwen3.8-27B-int4-ov

Base model

Qwen/Qwen3.8-27B
Quantized
(328)
this model

Collection including OpenVINO/Qwen3.8-27B-int4-ov