Instructions to use drawthingsai/Qwen3.8-27B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drawthingsai/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="drawthingsai/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("drawthingsai/Qwen3.8-27B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use drawthingsai/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 drawthingsai/Qwen3.8-27B-GGUF:IQ2_S # Run inference directly in the terminal: llama cli -hf drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf drawthingsai/Qwen3.8-27B-GGUF:IQ2_S # Run inference directly in the terminal: llama cli -hf drawthingsai/Qwen3.8-27B-GGUF:IQ2_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 drawthingsai/Qwen3.8-27B-GGUF:IQ2_S # Run inference directly in the terminal: ./llama-cli -hf drawthingsai/Qwen3.8-27B-GGUF:IQ2_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 drawthingsai/Qwen3.8-27B-GGUF:IQ2_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
Use Docker
docker model run hf.co/drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
- LM Studio
- Jan
- vLLM
How to use drawthingsai/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 "drawthingsai/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": "drawthingsai/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/drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
- SGLang
How to use drawthingsai/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 "drawthingsai/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": "drawthingsai/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 "drawthingsai/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": "drawthingsai/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 drawthingsai/Qwen3.8-27B-GGUF with Ollama:
ollama run hf.co/drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
- Unsloth Desktop
- Pi
How to use drawthingsai/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 drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "drawthingsai/Qwen3.8-27B-GGUF:IQ2_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use drawthingsai/Qwen3.8-27B-GGUF with Docker Model Runner:
docker model run hf.co/drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
- Lemonade
How to use drawthingsai/Qwen3.8-27B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
Run and chat with the model
lemonade run user.Qwen3.8-27B-GGUF-IQ2_S
List all available models
lemonade list
- Hermes Agent
How to use drawthingsai/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 drawthingsai/Qwen3.8-27B-GGUF:IQ2_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 drawthingsai/Qwen3.8-27B-GGUF:IQ2_S
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use drawthingsai/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 drawthingsai/Qwen3.8-27B-GGUF:IQ2_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 "drawthingsai/Qwen3.8-27B-GGUF:IQ2_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
The primary goal of this repository is to provide Qwen3.8-27B model quantizations below 4 bits per weight (bpw) in GGUF format.
The below-4-bpw target applies to language model weights. Companion vision encoder files are provided in the formats listed below, with their final quality metrics reported separately.
We also publish compact quantized vision encoders with high output fidelity, resolving GGUF quantization compatibility issues for the Qwen3.8-27B vision encoder. The Q4_K, Q5_K, and Q6_K files support inference with unmodified llama.cpp. Compared with our own BF16 export (888.01 MiB), our Q4_K file is 314.46 MiB, a 64.59% size reduction, with 0.99537 cosine similarity against the original Hugging Face FP32 vision outputs.
DT Checkpoints
| Checkpoint | File | Size (GiB) | Size without MTP (GiB) |
|---|---|---|---|
| DT-bpw2.96-IQ3_XXS | Qwen3.8-27B-DT-IQ3_XXS.gguf | 9.71 | 9.29 |
| DT-bpw2.48-IQ2_S | Qwen3.8-27B-DT-IQ2_S.gguf | 8.20 | 7.78 |
Both DT checkpoints score 100.00% on AIME 2026 in the reported evaluation.
bpw vs. Score
The plot uses the bpw values indicated by the DT checkpoint names. Dashed lines show BF16 reference scores. Each benchmark is shown separately, with a shared score scale.
Benchmark Comparison
Scores are percentages; higher is better. AIME 2026, GPQA Diamond, and BFCL v4 (1k) report accuracy. IFEval reports prompt-level strict accuracy (prompt_level_strict).
| Checkpoint | Size (GiB) | Includes MTP | Size without MTP (GiB) | AIME 2026 | GPQA Diamond | IFEval | BFCL v4 (1k) |
|---|---|---|---|---|---|---|---|
| Qwen3.8-27B-BF16 | 46.55 | No | 46.55 | 100.00% | 90.91% | 94.09% | 68.36% |
| UD-Q2_K_XL | 9.15 | Yes | 8.83 | 100.00% | 85.35% | 93.89% | 69.46% |
| UD-IQ2_S | 7.80 | No | 7.80 | 96.67% | 79.29% | 90.39% | 68.26% |
| AD-IQ2_XS | 9.21 | Yes | 8.94 | 96.67% | 76.77% | 90.20% | 68.46% |
| AD-IQ1_M | 7.91 | Yes | 7.64 | 90.00% | 51.01% | 78.37% | 62.08% |
| DT-bpw2.96-IQ3_XXS | 9.71 | Yes | 9.29 | 100.00% | 86.36% | 93.90% | 68.06% |
| DT-bpw2.48-IQ2_S | 8.20 | Yes | 7.78 | 100.00% | 77.27% | 93.16% | 69.56% |
Sizes are reported in GiB (1 GiB = 2^30 bytes). "Includes MTP" indicates whether the file contains multi-token prediction weights; it does not indicate whether MTP was enabled during evaluation. "Size without MTP" excludes those weights.
MTP
DT-bpw2.96-IQ3_XXS retains higher precision in its MTP component. With the maximum draft length set to 3, preliminary measurements show an overall draft acceptance rate of approximately 60%.
Vision Encoder
The files below include our own BF16 and FP16 exports alongside the four quantized formats. BF16 and FP16 files are prepared for upload; their download links will become available after upload.
| Format | File | Size (MiB) | MSE ↓ | Cosine Similarity ↑ | RealWorldQA (100 samples) ↑ | OCRBench (100 samples) ↑ |
|---|---|---|---|---|---|---|
| BF16 | mmproj-Qwen3.8-27B-DT-BF16.gguf | 888.01 | 0.000056675555 | 0.999955598992 | 73% | 86% |
| FP16 | mmproj-Qwen3.8-27B-DT-F16.gguf | 888.01 | 0.000128205964 | 0.999899941413 | 73% | 86% |
| Q8_0 | mmproj-Qwen3.8-27B-DT-Q8_0.gguf | 481.42 | 0.000868770063 | 0.999319249587 | 71% | 86% |
| Q6_K | mmproj-Qwen3.8-27B-DT-Q6_K.gguf | 441.82 | 0.000878257184 | 0.999312708268 | 73% | 86% |
| Q5_K | mmproj-Qwen3.8-27B-DT-Q5_K.gguf | 335.94 | 0.005477580664 | 0.995707853142 | 74% | 86% |
| Q4_K | mmproj-Qwen3.8-27B-DT-Q4_K.gguf | 314.46 | 0.005899684403 | 0.995368459336 | 71% | 85% |
Sizes are reported in MiB (1 MiB = 1,048,576 bytes). Lower MSE is better; higher cosine similarity and benchmark accuracy are better.
MSE and cosine similarity compare full vision outputs, including the merger, from llama.cpp CUDA against the original Hugging Face FP32 outputs. All six reported formats use the same evaluation conditions.
MSE is the total squared difference between the GGUF and reference vision encoder outputs (including the merger), divided by the total number of output elements across all evaluation images. Cosine similarity is computed over the flattened, concatenated outputs of those images. MSE and cosine similarity measure vision output fidelity.
RealWorldQA and OCRBench report end-to-end accuracy (higher is better), using the same Qwen3.8-27B-DT-IQ3_XXS.gguf language model with each vision encoder on llama.cpp CUDA. Each dataset has 100 fixed test examples; OCRBench includes 10 per category. These are quick-subset scores, not full benchmark results.
Thinking is disabled and responses are limited to 1,024 tokens. Responses reaching that limit remain included in the scores. RealWorldQA limit counts: BF16: 5; FP16: 2; Q8_0: 7; Q6_K: 2; Q5_K: 2; Q4_K: 5. No OCRBench responses reached the limit.
All 1,200 examples have scored responses. FP16 required one server restart during OCRBench; completed examples were retained and the remaining examples were evaluated with the same configuration. One answer changes a dataset score by one percentage point.
Reproduce the Benchmarks
Reproduce the DT Results
Use profiles/qwen3.8-thinking.json to evaluate the DT checkpoints on AIME 2026, GPQA Diamond, IFEval, and BFCL v4 1K.
Clone the benchmark runner and install its evaluation dependencies in your Python 3.10+ environment:
git clone https://github.com/drawthingsai/benchmarks.git
cd benchmarks
python3 -m pip install 'evalscope[bfcl,ifeval]==1.11.0' 'soundfile==0.13.1' huggingface_hub
A compatible llama-server must be available on PATH; see the benchmark repository's setup instructions. Before running GPQA, accept the dataset access terms and authenticate:
hf auth login
The commands below use the final DT language model filenames and can be run once the files are uploaded to this Hugging Face repository. The mmproj files are companion vision encoders and cannot be used as the language model in these commands.
model_dir="$PWD/models/drawthingsai/Qwen3.8-27B-GGUF"
gguf_296='Qwen3.8-27B-DT-IQ3_XXS.gguf'
gguf_248='Qwen3.8-27B-DT-IQ2_S.gguf'
hf download drawthingsai/Qwen3.8-27B-GGUF \
"$gguf_296" "$gguf_248" \
--local-dir "$model_dir"
Run both evaluations from the cloned benchmarks directory, in the same shell:
python3 benchmark.py run \
--profile profiles/qwen3.8-thinking.json \
--gguf "$model_dir/$gguf_296" \
--model-name DT-bpw2.96-IQ3_XXS \
--run-id DT-bpw2.96-IQ3_XXS \
--parallel 4
python3 benchmark.py run \
--profile profiles/qwen3.8-thinking.json \
--gguf "$model_dir/$gguf_248" \
--model-name DT-bpw2.48-IQ2_S \
--run-id DT-bpw2.48-IQ2_S \
--parallel 4
python3 benchmark.py compare \
runs/DT-bpw2.96-IQ3_XXS \
runs/DT-bpw2.48-IQ2_S \
--output results/dt-comparison.md
These commands evaluate all four language benchmarks with MTP speculative decoding disabled. Add --dry-run to a run command to inspect its configuration before evaluation, or --resume to continue an interrupted run with the same settings.
BFCL v4 1K evaluates 1,002 examples without Web Search; this is a subset score, not the official BFCL v4 Overall score. The current comparison profile replaces the former qwen3.8-thinking-bfcl-1k.json profile.
Reproduce the Community Baselines
See Reproduce the community baselines for pinned community model downloads and evaluation commands. Use the same profiles/qwen3.8-thinking.json profile and llama.cpp build as for the DT runs above.
- Downloads last month
- 1,376
2-bit
3-bit
Model tree for drawthingsai/Qwen3.8-27B-GGUF
Base model
Qwen/Qwen3.8-27B