Instructions to use byteshape/Qwen3.8-27B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use byteshape/Qwen3.8-27B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="byteshape/Qwen3.8-27B-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.8-27B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use byteshape/Qwen3.8-27B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf byteshape/Qwen3.8-27B-GGUF:IQ3_S # Run inference directly in the terminal: llama cli -hf byteshape/Qwen3.8-27B-GGUF:IQ3_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf byteshape/Qwen3.8-27B-GGUF:IQ3_S # Run inference directly in the terminal: llama cli -hf byteshape/Qwen3.8-27B-GGUF:IQ3_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.8-27B-GGUF:IQ3_S # Run inference directly in the terminal: ./llama-cli -hf byteshape/Qwen3.8-27B-GGUF:IQ3_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.8-27B-GGUF:IQ3_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf byteshape/Qwen3.8-27B-GGUF:IQ3_S
Use Docker
docker model run hf.co/byteshape/Qwen3.8-27B-GGUF:IQ3_S
- LM Studio
- Jan
- vLLM
How to use byteshape/Qwen3.8-27B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "byteshape/Qwen3.8-27B-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.8-27B-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.8-27B-GGUF:IQ3_S
- SGLang
How to use byteshape/Qwen3.8-27B-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.8-27B-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.8-27B-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.8-27B-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.8-27B-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.8-27B-GGUF with Ollama:
ollama run hf.co/byteshape/Qwen3.8-27B-GGUF:IQ3_S
- Unsloth Studio
How to use byteshape/Qwen3.8-27B-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.8-27B-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.8-27B-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.8-27B-GGUF to start chatting
- Pi
How to use byteshape/Qwen3.8-27B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf byteshape/Qwen3.8-27B-GGUF:IQ3_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.8-27B-GGUF:IQ3_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use byteshape/Qwen3.8-27B-GGUF with Docker Model Runner:
docker model run hf.co/byteshape/Qwen3.8-27B-GGUF:IQ3_S
- Lemonade
How to use byteshape/Qwen3.8-27B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull byteshape/Qwen3.8-27B-GGUF:IQ3_S
Run and chat with the model
lemonade run user.Qwen3.8-27B-GGUF-IQ3_S
List all available models
lemonade list
- Hermes Agent
How to use byteshape/Qwen3.8-27B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf byteshape/Qwen3.8-27B-GGUF:IQ3_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.8-27B-GGUF:IQ3_S
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use byteshape/Qwen3.8-27B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf byteshape/Qwen3.8-27B-GGUF:IQ3_S
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "byteshape/Qwen3.8-27B-GGUF:IQ3_S" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen3.8-27B GGUF (ShapeLearn-Lite Quantized)
This is a GGUF-quantized version of Qwen3.8-27B produced with ShapeLearn-Lite, a faster variant of ByteShape's ShapeLearn algorithm that learns the datatype for each tensor. With our current compute allocation, ShapeLearn-Lite enabled us to make high-quality quantizations available shortly after the model's release.
This initial release was validated through targeted spot checks rather than our full multi-benchmark evaluation suite.
- The two largest variants, at 5.60 and 4.72 bits per weight, are expected to retain baseline quality comparable to the original BF16 model.
- The smaller variants trade some quality for meaningful reductions in memory use and improvements in speed, providing a practical range of size–quality options.
Questions and feedback are welcome here and on our Reddit.
Quick Start
Pick a model from the table 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>.
Multi-Token Prediction (up to 2× faster)
These GGUFs ship with Qwen3.8's MTP (multi-token prediction) head embedded, so llama.cpp can use the model as its own speculative draft, with no separate draft model needed. Add:
--spec-type draft-mtp --spec-draft-n-max 3
to the llama-server command and decode speed roughly doubles (see the TPS columns below). The Get llama.cpp command links enable MTP by default; set the draft-tokens field to 0 to disable it.
How to Pick a Model
All models in this release are GPU-optimized. The table is sorted by model size; throughput was measured on an RTX PRO 6000 Blackwell (single stream, llama.cpp b10430).
Selection rule: Choose the largest model that fits your VRAM budget (leave room for context), or the fastest one that still meets your required quality.
| Model ID | Bits/Weight | Model Size | TPS | TPS with MTP | Use This Model | Model Tag |
|---|---|---|---|---|---|---|
| GPU-1 | 3.44 | 11.8 GB | 94 | 167 | Get llama.cpp command | byteshape/Qwen3.8-27B-GGUF:Qwen3.8-27B-IQ3_S-3.44bpw |
| GPU-2 | 3.67 | 12.6 GB | 90 | 166 | Get llama.cpp command | byteshape/Qwen3.8-27B-GGUF:Qwen3.8-27B-IQ4_XS-3.67bpw |
| GPU-3 | 4.00 | 13.7 GB | 86 | 165 | Get llama.cpp command | byteshape/Qwen3.8-27B-GGUF:Qwen3.8-27B-IQ4_XS-4.00bpw |
| GPU-4 | 4.40 | 15.0 GB | 81 | 162 | Get llama.cpp command | byteshape/Qwen3.8-27B-GGUF:Qwen3.8-27B-IQ4_XS-4.40bpw |
| GPU-5 | 4.72 | 16.1 GB | 77 | 152 | Get llama.cpp command | byteshape/Qwen3.8-27B-GGUF:Qwen3.8-27B-Q5_K_S-4.72bpw |
| GPU-6 | 5.60 | 19.1 GB | 68 | 139 | Get llama.cpp command | byteshape/Qwen3.8-27B-GGUF:Qwen3.8-27B-Q5_K_M-5.60bpw |
TPS = tokens per second generating a 2K-token response, single stream. "TPS with MTP" adds --spec-type draft-mtp --spec-draft-n-max 3. Expect the MTP speedup to vary a little with sampling settings and workload.
Quality expectations: GPU-6 and GPU-5 are expected to match the BF16 baseline. From GPU-4 down, quality gradually decreases with size, but each model remains a strong pick at its memory budget.
Recommended Sampling Parameters
Qwen3.8 has thinking mode on by default; add --reasoning off for instruct (non-thinking) behavior. Following the official model card:
| Mode | temperature | top_p | top_k | min_p | presence_penalty |
|---|---|---|---|---|---|
| Thinking (default) | 1.0 | 0.95 | 20 | 0.0 | 0.0 |
Instruct (--reasoning off) |
0.7 | 0.80 | 20 | 0.0 | 1.5 |
The Get llama.cpp command links above emit these automatically.
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 closest size class and average bit length. All models in this release use a hybrid mix of quantization techniques chosen per tensor by ShapeLearn-Lite, which is why several models share a tag and why models above 4.5 bits/weight carry K-quant labels.
- Downloads last month
- 3,217
3-bit
4-bit
5-bit
Model tree for byteshape/Qwen3.8-27B-GGUF
Base model
Qwen/Qwen3.8-27B