Instructions to use Freesolo-Co/Qwen3.5-9B-Base-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Freesolo-Co/Qwen3.5-9B-Base-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Freesolo-Co/Qwen3.5-9B-Base-FP8") 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("Freesolo-Co/Qwen3.5-9B-Base-FP8") model = AutoModelForMultimodalLM.from_pretrained("Freesolo-Co/Qwen3.5-9B-Base-FP8", 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 Freesolo-Co/Qwen3.5-9B-Base-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Freesolo-Co/Qwen3.5-9B-Base-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Freesolo-Co/Qwen3.5-9B-Base-FP8", "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/Freesolo-Co/Qwen3.5-9B-Base-FP8
- SGLang
How to use Freesolo-Co/Qwen3.5-9B-Base-FP8 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 "Freesolo-Co/Qwen3.5-9B-Base-FP8" \ --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": "Freesolo-Co/Qwen3.5-9B-Base-FP8", "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 "Freesolo-Co/Qwen3.5-9B-Base-FP8" \ --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": "Freesolo-Co/Qwen3.5-9B-Base-FP8", "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 Freesolo-Co/Qwen3.5-9B-Base-FP8 with Docker Model Runner:
docker model run hf.co/Freesolo-Co/Qwen3.5-9B-Base-FP8
Download quantization-report.json from Freesolo-Co/Qwen3.5-9B-Base-FP8: direct link, hf CLI and curl.
- Browser
- Download file 1.72 kB
-
https://huggingface.co/Freesolo-Co/Qwen3.5-9B-Base-FP8/resolve/main/quantization-report.json
- Command line
-
hf download hf://Freesolo-Co/Qwen3.5-9B-Base-FP8/quantization-report.json
-
curl -L -o quantization-report.json https://huggingface.co/Freesolo-Co/Qwen3.5-9B-Base-FP8/resolve/main/quantization-report.json
1.72 kB
| { | |
| "source": "Qwen/Qwen3.5-9B-Base", | |
| "source_revision": "68c46c4b3498877f3ef123c856ecfde50c39f404", | |
| "target": "Freesolo-Co/Qwen3.5-9B-Base-FP8", | |
| "scheme": "FP8_DYNAMIC", | |
| "ignore": [ | |
| "re:.*lm_head", | |
| "re:model.visual.*" | |
| ], | |
| "fp8_tensors": 248, | |
| "vision_tensors": 333, | |
| "bf16_losses": [ | |
| 3.298095464706421, | |
| 1.9852741956710815, | |
| 4.649655342102051, | |
| 2.5328564643859863, | |
| 1.9097353219985962, | |
| 2.0835132598876953, | |
| 3.0843896865844727, | |
| 2.587951183319092 | |
| ], | |
| "fp8_losses": [ | |
| 3.2877321243286133, | |
| 1.9895005226135254, | |
| 4.59813117980957, | |
| 2.5428028106689453, | |
| 1.90401029586792, | |
| 2.1212239265441895, | |
| 3.052720785140991, | |
| 2.6294004917144775 | |
| ], | |
| "quality_smoke_texts": [ | |
| "The library opened early in the morning. A reader returned three books and borrowed two more.", | |
| "Water freezes at zero degrees Celsius under standard atmospheric pressure and boils at one hundred.", | |
| "A reliable software service checks its inputs, records failures, and retries only transient errors.", | |
| "The gardener planted seeds in moist soil. After several days, small green shoots began to appear.", | |
| "If a train travels sixty kilometers in one hour, its average speed is sixty kilometers per hour.", | |
| "A database transaction groups related changes together so that they either all succeed or all fail.", | |
| "The hikers followed the river upstream until they reached a wooden bridge near the forest.", | |
| "In Python, a function can accept arguments and return a value. Lists preserve the order of their items." | |
| ], | |
| "versions": { | |
| "torch": "2.11.0", | |
| "transformers": "5.10.1", | |
| "llmcompressor": "0.12.0", | |
| "compressed-tensors": "0.17.1" | |
| } | |
| } | |