Image-Text-to-Text
Transformers
Safetensors
qwen3_5
compressed-tensors
quantization
fp8
vllm
conversational
Instructions to use InfiniCloud/Qwen3.5-9B-FP8-Dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InfiniCloud/Qwen3.5-9B-FP8-Dynamic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="InfiniCloud/Qwen3.5-9B-FP8-Dynamic") 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("InfiniCloud/Qwen3.5-9B-FP8-Dynamic") model = AutoModelForMultimodalLM.from_pretrained("InfiniCloud/Qwen3.5-9B-FP8-Dynamic", 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 InfiniCloud/Qwen3.5-9B-FP8-Dynamic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InfiniCloud/Qwen3.5-9B-FP8-Dynamic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InfiniCloud/Qwen3.5-9B-FP8-Dynamic", "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/InfiniCloud/Qwen3.5-9B-FP8-Dynamic
- SGLang
How to use InfiniCloud/Qwen3.5-9B-FP8-Dynamic 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 "InfiniCloud/Qwen3.5-9B-FP8-Dynamic" \ --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": "InfiniCloud/Qwen3.5-9B-FP8-Dynamic", "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 "InfiniCloud/Qwen3.5-9B-FP8-Dynamic" \ --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": "InfiniCloud/Qwen3.5-9B-FP8-Dynamic", "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 InfiniCloud/Qwen3.5-9B-FP8-Dynamic with Docker Model Runner:
docker model run hf.co/InfiniCloud/Qwen3.5-9B-FP8-Dynamic
Download evaluation/bundle-integrity.json from InfiniCloud/Qwen3.5-9B-FP8-Dynamic: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/InfiniCloud/Qwen3.5-9B-FP8-Dynamic/resolve/main/evaluation/bundle-integrity.json
- Command line
-
hf download hf://InfiniCloud/Qwen3.5-9B-FP8-Dynamic/evaluation/bundle-integrity.json
-
curl -L -o bundle-integrity.json https://huggingface.co/InfiniCloud/Qwen3.5-9B-FP8-Dynamic/resolve/main/evaluation/bundle-integrity.json
1.71 kB
| { | |
| "schema_version": 1, | |
| "algorithm": "sha256", | |
| "files": { | |
| "LICENSE-code": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30", | |
| "LICENSE-lm-eval.md": "a806e42547620dffbc2ec0333322c8b3523b4af11e059be14ef81aa5b1ae021f", | |
| "README.md": "27162f9d39106920de66da2f7070e98634274360f45c97bbb1323589edf0bae0", | |
| "evaluation-settings.json": "056fdab5a43de1bac263c5a150ba3f27772169da223ca3b51b078aafd8b68eb9", | |
| "inspect_checkpoint.py": "2af35de9d15c734410e7e529366d701f1e54e7865f340b2c9359f0a7a530cf8c", | |
| "portable-task-validation.json": "1a28e2e09516cdb73ae28fa0b49ee635e91a6171fb3b34453e46589e3d9846a0", | |
| "requirements.txt": "39cb9488e8d64f4726f865974acf326b117a98c6337c4b99a32b461ae35fd7a4", | |
| "results.json": "17430ec22deaf615e49ea680bba6397ab6bde6624d1e88571b393b3ab81958af", | |
| "smoke_shapes.png": "ef8a29a1a36895dfd1b23cf51bef2206eb66ea712c0143e14b770603c58139ef", | |
| "smoke_vllm.py": "6f3e7c235012f81c1d423ec23d3a85e8c4b3bd9e3fbaf725819ca0b3754ced39", | |
| "source-provenance.json": "e8b1140274484b5584c0f73b78c4e305852489f6dff2052b676743488a595877", | |
| "tasks/qwen35_gsm8k_pinned.yaml": "fae36a272417fb2177e6743654e1903f98565b990975b359c86b85d472912470", | |
| "tasks/qwen35_mgsm_native_cot_ja_pinned.yaml": "2ddfc44b03765eb4006f5ab34cabea98dab00c2a4d4bb7e1a5d4bcfd9d1dcaa6", | |
| "tasks/sources/cot_yaml": "319ff8ad698b411eed2fde176ef956d343eea202a85fdd7722ae567dc7dc13c1", | |
| "tasks/sources/gsm8k_yaml": "82eb1780b263bc040729032b3e076990c7933f42163c91e359f38820dd1d8833", | |
| "tasks/sources/mgsm_native_cot_ja_yaml": "f31b0e1f6d4a81280fa240cadcfb546087c381f83dfeed63c406dcb53df4094e" | |
| }, | |
| "scope": "Every other file in this evaluation bundle, including results.json" | |
| } | |