Instructions to use byteshape/Qwen3.5-9B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use byteshape/Qwen3.5-9B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="byteshape/Qwen3.5-9B-GGUF") 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)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("byteshape/Qwen3.5-9B-GGUF", dtype="auto") - llama-cpp-python
How to use byteshape/Qwen3.5-9B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="byteshape/Qwen3.5-9B-GGUF", filename="Qwen3.5-9B-IQ3_S-2.81bpw.gguf", )
llm.create_chat_completion( 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" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use byteshape/Qwen3.5-9B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Use Docker
docker model run hf.co/byteshape/Qwen3.5-9B-GGUF:Q4_K_S
- LM Studio
- Jan
- vLLM
How to use byteshape/Qwen3.5-9B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "byteshape/Qwen3.5-9B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "byteshape/Qwen3.5-9B-GGUF", "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/byteshape/Qwen3.5-9B-GGUF:Q4_K_S
- SGLang
How to use byteshape/Qwen3.5-9B-GGUF 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 "byteshape/Qwen3.5-9B-GGUF" \ --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": "byteshape/Qwen3.5-9B-GGUF", "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 "byteshape/Qwen3.5-9B-GGUF" \ --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": "byteshape/Qwen3.5-9B-GGUF", "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" } } ] } ] }' - Ollama
How to use byteshape/Qwen3.5-9B-GGUF with Ollama:
ollama run hf.co/byteshape/Qwen3.5-9B-GGUF:Q4_K_S
- Unsloth Studio new
How to use byteshape/Qwen3.5-9B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for byteshape/Qwen3.5-9B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for byteshape/Qwen3.5-9B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for byteshape/Qwen3.5-9B-GGUF to start chatting
- Pi new
How to use byteshape/Qwen3.5-9B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "byteshape/Qwen3.5-9B-GGUF:Q4_K_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use byteshape/Qwen3.5-9B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Run Hermes
hermes
- Docker Model Runner
How to use byteshape/Qwen3.5-9B-GGUF with Docker Model Runner:
docker model run hf.co/byteshape/Qwen3.5-9B-GGUF:Q4_K_S
- Lemonade
How to use byteshape/Qwen3.5-9B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull byteshape/Qwen3.5-9B-GGUF:Q4_K_S
Run and chat with the model
lemonade run user.Qwen3.5-9B-GGUF-Q4_K_S
List all available models
lemonade list
llm.create_chat_completion(
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"
}
}
]
}
]
)Qwen3.5-9B GGUF (ShapeLearn Quantized)
This is a GGUF-quantized version of Qwen3.5-9B produced with ByteShape's ShapeLearn, which learns the optimal datatype per tensor to maintain high quality even at very low bitlengths.
To learn more about ShapeLearn and to see detailed benchmarks across GPUs, CPUs, and even the Raspberry Pi, please visit our blog.
If you have questions or want to share feedback, reach us on Reddit.
Quick Start
Pick a model from the tables below and click Get llama.cpp command to get a ready-to-run command with all the correct sampling parameters for this model.
You can also copy the Model Tag from the table and use it directly:
| Tool | Command |
|---|---|
| llama.cpp | llama-server -hf <MODEL_TAG> --mmproj-auto |
This is a vision capable model. llama.cpp auto-downloads the model and vision projector on first run.
Once you run the llama-server, you can access the web interface at http://localhost:<PORT>.
Note on Ollama: As of this release, Ollama does not support Qwen3.5-9B based on Llama.cpp GGUFs. We suggest using llama.cpp or LM Studio as an alternative.
How to Pick a Model
We provide CPU and GPU optimized variants for llama.cpp:
- GPUs: optimized with a hybrid approach combining KQ and IQ quantization for better throughput.
- CPUs: optimized with predominantly KQ quantization.
Each hardware target includes a range of models covering different size and quality tradeoffs.
The chart below shows quality versus tokens per second (TPS), with Unsloth used as the baseline for comparison. Quality is measured across seven benchmarks, including function calling: BFCL-V3, LiveCodeBench V6, HumanEval, GSM8K, IFEVAL and MMLU, and GSM8K_V in both thinking and instruct modes.
Selection rule: Choose the model with the highest quality at your target throughput or the fastest model that still meets your required quality.
GPU Models
Interactive plots for RTX 5090, 4080, 3090, 5060Ti are available here.
Table sorted by model size (match the chart numbers to model IDs):
| Model ID | Bits/Weight | Model Size | Use This Model | Model Tag |
|---|---|---|---|---|
| GPU-1 | 2.81 | 3.15 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ3_S-2.81bpw.gguf |
| GPU-2 | 3.00 | 3.37 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ3_S-3.00bpw.gguf |
| GPU-3 | 3.15 | 3.53 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ3_S-3.15bpw.gguf |
| GPU-4 | 3.60 | 4.04 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ4_XS-3.60bpw.gguf |
| GPU-5 | 4.20 | 4.71 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ4_XS-4.20bpw.gguf |
| GPU-6 | 4.43 | 4.97 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ4_XS-4.43bpw.gguf |
| GPU-7 | 5.10 | 5.72 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-Q5_K_S-5.10bpw.gguf |
CPU Models
Interactive plots for Ryzen 9 5900X, Intel Core i7 12700KF, Intel Ultra 7 265KF, and Raspberry Pi 5 are available here.

Table sorted by model size (match the chart numbers to model IDs):
| Model ID | Bits/Weight | Model Size | Use This Model | Model Tag |
|---|---|---|---|---|
| CPU-1 | 2.81 | 3.15 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ3_S-2.81bpw.gguf |
| CPU-2 | 3.00 | 3.37 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ3_S-3.00bpw.gguf |
| CPU-3 | 3.15 | 3.53 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ3_S-3.15bpw.gguf |
| CPU-4 | 3.46 | 3.88 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-Q3_K_S-3.46bpw.gguf |
| CPU-5 | 3.60 | 4.04 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ4_XS-3.60bpw.gguf |
| CPU-6 | 3.92 | 4.4 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-Q4_K_S-3.92bpw.gguf |
| CPU-7 | 4.20 | 4.71 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-IQ4_XS-4.20bpw.gguf |
| CPU-8 | 4.60 | 5.16 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-Q5_K_S-4.60bpw.gguf |
| CPU-9 | 4.75 | 5.32 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-Q5_K_S-4.75bpw.gguf |
| CPU-10 | 5.10 | 5.72 GB | Get llama.cpp command | byteshape/Qwen3.5-9B-GGUF:Qwen3.5-9B-Q5_K_S-5.10bpw.gguf |
Notes on quantization labels
The labels you see (for example IQ4_XS) are only there to make Hugging Face show our models in the GGUF table. We do not use the conventional quantization profiles as defined in llama.cpp. In our case, these labels indicate the primary quantization approach and average bit length. Note that both KQ and IQ models may use a mix of quantization techniques optimized for their target hardware, which is why several models can share the same tag.
- Downloads last month
- 4,414
3-bit
4-bit
5-bit

# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="byteshape/Qwen3.5-9B-GGUF", filename="", )