Instructions to use OpenVINO/Qwen3.6-35B-A3B-int4-ov with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenVINO/Qwen3.6-35B-A3B-int4-ov with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OpenVINO/Qwen3.6-35B-A3B-int4-ov") 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("OpenVINO/Qwen3.6-35B-A3B-int4-ov") model = AutoModelForMultimodalLM.from_pretrained("OpenVINO/Qwen3.6-35B-A3B-int4-ov", 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 OpenVINO/Qwen3.6-35B-A3B-int4-ov with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenVINO/Qwen3.6-35B-A3B-int4-ov" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenVINO/Qwen3.6-35B-A3B-int4-ov", "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/OpenVINO/Qwen3.6-35B-A3B-int4-ov
- SGLang
How to use OpenVINO/Qwen3.6-35B-A3B-int4-ov 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 "OpenVINO/Qwen3.6-35B-A3B-int4-ov" \ --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": "OpenVINO/Qwen3.6-35B-A3B-int4-ov", "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 "OpenVINO/Qwen3.6-35B-A3B-int4-ov" \ --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": "OpenVINO/Qwen3.6-35B-A3B-int4-ov", "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 OpenVINO/Qwen3.6-35B-A3B-int4-ov with Docker Model Runner:
docker model run hf.co/OpenVINO/Qwen3.6-35B-A3B-int4-ov
Commit ·
0403b0e
1
Parent(s): 33648de
Update README.md (#2)
Browse files- Update README.md (3fe55fb20db3ee085f0a9d30781509a2f84d8278)
- Update README.md (5f811df7cbb1c4b82dc2b1d1aa6f2a2e7c9b66f1)
- Update README.md (5b8e4b806ef354df72c9861de69c44c02311a3a9)
- Update README.md (e6f6a508325c0b4c9d5fffc5f4007e1611bcec7d)
138 unmodified lines1391401411421431441451461471481491501511521531541551561571581591601613 unmodified lines165166167168169170171172173174175176177178179180181182183184185186187188189190191192138 unmodified linesMore GenAI usage examples can be found in OpenVINO GenAI library [docs](https://docs.openvino.ai/2025/openvino-workflow-generative/inference-with-genai.html) and [samples](https://github.com/openvinotoolkit/openvino.genai?tab=readme-ov-file#openvino-genai-samples)You can find more detaild usage examples in OpenVINO Notebooks:- [Qwen3-VL multimodal chatbot](https://openvinotoolkit.github.io/openvino_notebooks/?search=qwen3-vl)- [Visual-language assistant](https://openvinotoolkit.github.io/openvino_notebooks/?tasks=Image-to-Text)## Running Model with OpenAI client and [OpenVINO Model Server](https://github.com/openvinotoolkit/model_server)For MTP deployment, see the [OVMS speculative decoding instructions](https://github.com/openvinotoolkit/model_server/tree/main/demos/continuous_batching/speculative_decoding).1a. Deploy model on Windows using [binary package](https://docs.openvino.ai/ovms_baremetal):```ovms.exe --rest_port 8000 --source_model OpenVINO/Qwen3.6-35B-A3B-int4-ov --model_repository_path models --reasoning_parser qwen3 --tool_parser qwen3coder --target_device GPU --task text_generation```1b. Deploy model in a Docker container:```docker run -d --user $(id -u):$(id -g) --rm -p 8000:8000 -v $(pwd)/models:/models --device /dev/dri --group-add=$(stat -c "%g" /dev/dri/render* | head -n 1) openvino/model_server:latest-gpu \--rest_port 8000 --model_repository_path models --source_model OpenVINO/Qwen3.6-35B-A3B-int4-ov --reasoning_parser qwen3 --tool_parser qwen3coder --target_device GPU --task text_generation```2. Install the client library:3 unmodified lines3. Run the client:```from openai import OpenAIclient = OpenAI(base_url="http://localhost:8000/v3",api_key="unused")stream = client.chat.completions.create(model="OpenVINO/Qwen3.6-35B-A3B-int4-ov",messages=[{"role": "user", "content": "Hello."}],stream=True,extra_body={"chat_template_kwargs":{"enable_thinking": True,"preserve_thinking": True}},tools=[],)for chunk in stream:if chunk.choices[0].delta.content is not None:print(chunk.choices[0].delta.content, end="")```Also check how to use this model in an agentic flow with function calling, as shown in the [agentic demo](https://docs.openvino.ai/ovms_batching).Note: This model supports `preserve_thinking` which greatly increases agentic capabilities.## LimitationsCheck the original [model card](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) for limitations.138 unmodified lines1391401411421431441451461471481491501511521531541551561571581591601611621633 unmodified lines167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217138 unmodified linesMore GenAI usage examples can be found in OpenVINO GenAI library [docs](https://docs.openvino.ai/2025/openvino-workflow-generative/inference-with-genai.html) and [samples](https://github.com/openvinotoolkit/openvino.genai?tab=readme-ov-file#openvino-genai-samples)You can find more detailed usage examples in OpenVINO Notebooks:- [Qwen3-VL multimodal chatbot](https://openvinotoolkit.github.io/openvino_notebooks/?search=qwen3-vl)- [Visual-language assistant](https://openvinotoolkit.github.io/openvino_notebooks/?tasks=Image-to-Text)## Running Model with OpenAI client and [OpenVINO Model Server](https://github.com/openvinotoolkit/model_server)1a. Deploy model on Windows using [binary package](https://docs.openvino.ai/ovms_baremetal):```curl -o ovms.zip https://storage.openvinotoolkit.org/repositories/openvino_model_server/packages/weekly/latest/ovms_windows.ziptar -xf ovms.zipset OVMS_MEDIA_URL_ALLOW_REDIRECTS=1ovms.exe --rest_port 8000 --source_model OpenVINO/Qwen3.6-35B-A3B-int4-ov --model_repository_path C:\models --allowed_media_domains all --draft_model_path .```1b. Deploy model in a Docker container:```export GPU_ARGS=$(if ls /dev/dri/render* >/dev/null 2>&1; then echo "--device /dev/dri --group-add $(stat -c '%g' /dev/dri/render* | head -n1)"; fi)docker run -d ${GPU_ARGS} -e "OVMS_MEDIA_URL_ALLOW_REDIRECTS=1" -u $(id -u):$(id -g) --rm -p 8000:8000 -v ${HOME}/models:/models:rw openvino/model_server:weekly \--rest_port 8000 --model_repository_path /models --source_model OpenVINO/Qwen3.6-35B-A3B-int4-ov --allowed_media_domains all --draft_model_path .```2. Install the client library:3 unmodified lines3. Run the client:```from openai import OpenAIclient = OpenAI(base_url="http://localhost:8000/v1",api_key="unused")image_url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"stream = client.chat.completions.create(model="OpenVINO/Qwen3.6-35B-A3B-int4-ov",messages=[{"role": "user","content": [{"type": "image_url", "image_url": {"url": image_url}},{"type": "text", "text": "Describe this image."},],}],stream=True,tools=[],)printing_reasoning_started = Falseprinting_content_started = Falsefor chunk in stream:if not chunk.choices:continuedelta = chunk.choices[0].deltacontent = getattr(delta, "content", None)reasoning = getattr(delta, "reasoning_content", None)if content:if not printing_content_started:printing_content_started = Trueprint("\ncontent:\n", end="", flush=True)print(content, end="", flush=True)if reasoning:if not printing_reasoning_started:printing_reasoning_started = Trueprint("reasoning_content:\n", end="", flush=True)print(reasoning, end="", flush=True)```## LimitationsCheck the original [model card](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) for limitations.
README.md+41-16