Instructions to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-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 webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
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 webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
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 webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
Use Docker
docker model run hf.co/webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
- LM Studio
- Jan
- vLLM
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webhie/Qwen3.8-27B-Q4-AutoRound-Code-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": "webhie/Qwen3.8-27B-Q4-AutoRound-Code-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/webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
- Ollama
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF with Ollama:
ollama run hf.co/webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
- Unsloth Studio
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-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 webhie/Qwen3.8-27B-Q4-AutoRound-Code-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 webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF to start chatting
- Pi
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
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": "webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF with Docker Model Runner:
docker model run hf.co/webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
- Lemonade
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
Run and chat with the model
lemonade run user.Qwen3.8-27B-Q4-AutoRound-Code-GGUF-Q4_0
List all available models
lemonade list
- Hermes Agent
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-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 webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
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 webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0
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 "webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF:Q4_0" \ --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 Q4_0 AutoRound Code GGUF
A mixed GGUF Q4_0 quantization of Qwen/Qwen3.8-27B, produced with Intel's AutoRound. The main linear weights use GGUF Q4_0; output.weight is retained as Q6_K, while normalization and selected state-space auxiliary tensors remain F32.
Key difference from a Transformers-format AutoRound checkpoint: This release is packaged for direct use with llama.cpp. It includes the language-model GGUF and the separate
mmproj-model.ggufvision projector. The quantization used theauto-round-bestrecipe with 512 calibration samples from a code-heavy, mixed code/math/science calibration set. No benchmark results are reported for this release.
TL;DR
- Base: Qwen3.8-27B (27B dense vision-language model)
- Quant: GGUF
Q4_0mixed; symmetric 32-value blocks for the primary quantized tensors - Tool:
auto-round-bestfrom Intel AutoRound 0.14.2 (1000 iterations, 512 samples) - Size: 15.72 GB language-model GGUF plus 1.84 GB
mmprojprojector - Context: 262,144 tokens natively
- MTP: One Multi-Token Prediction layer is retained in the language-model GGUF
- Vision: Image input is supported through the included
mmproj-model.gguf; video input depends on the llama.cpp build's video support - Calibration: 50% Open-SWE code traces, 25% OpenMathReasoning, and 25% OpenThoughts3 science examples
Quick inference with llama.cpp
Use a recent llama.cpp build with Qwen3.8 support. The GGUF already contains the tokenizer and chat template, so no separate tokenizer files are required.
Text and code
llama-cli \
-m Qwen3.8-27B-Q4_0-AutoRound-Code.gguf \
-ngl 999 \
-c 262144 \
-n -1 \
--temp 1.0 \
--top-p 0.95 \
--top-k 20 \
-cnv
The model's chat template enables thinking by default. Use llama.cpp's chat-template options when you need to change reasoning behavior, for example:
llama-cli \
-m Qwen3.8-27B-Q4_0-AutoRound-Code.gguf \
--chat-template-kwargs '{"enable_thinking":false}' \
-p "Write a quicksort in Python."
Image input
Download both GGUF files from this repository and pass the projector with --mmproj:
llama-cli \
-m Qwen3.8-27B-Q4_0-AutoRound-Code.gguf \
--mmproj mmproj-model.gguf \
--image path/to/image.jpg \
-p "Describe this image."
For video input, use --video instead of --image with a llama.cpp build compiled with video support.
Quantization details
| Field | Value |
|---|---|
| Base | Qwen/Qwen3.8-27B |
| Method | AutoRound (intel/auto-round), best recipe |
| AutoRound version | 0.14.2 |
| Scheme | GGUF:Q4_0 |
| Primary tensor type | Q4_0 |
| Q4_0 block size | 32 values per block |
| Symmetric | yes, for Q4_0 tensors |
| Other tensor types | output.weight: Q6_K; selected tensors: F32 |
| Language-model GGUF | 866 tensors; 15,715,853,632 bytes |
| Vision projector | 334 F32 tensors; 1,842,940,160 bytes |
| Context length | 262,144 tokens |
| MTP | 1 prediction layer |
| Calibration samples | 512 |
| Calibration sequence length | 2,048 tokens |
| Calibration batch size | 1 |
| Gradient accumulation | 8 steps |
| Low GPU memory mode | enabled |
| torch.compile | not enabled in the quantization command |
Tensor precision breakdown
The language-model GGUF contains:
- 505
Q4_0tensors: 26,046,627,840 parameters - 1
Q6_Ktensor (output.weight): 1,271,398,400 parameters - 360
F32tensors: 2,671,616 parameters
The F32 tensors include normalization weights and state-space auxiliary tensors such as ssm_dt, ssm_a, ssm_conv1d, and ssm_norm. The separate vision projector is fully stored as F32.
Calibration data
The calibration file used for this quantization was mixed-code-math-science-512.jsonl, generated with seed 42 and pre-packed to approximately 2,304 tokens per row. AutoRound consumed it with seqlen=2048 and num=512; the pre-packed data was used without concatenating rows.
| Source | Share | Rows | Details |
|---|---|---|---|
nvidia/Open-SWE-Traces |
50% | 256 | openhands config, qwen35_122b split; Python, TypeScript, Rust, JavaScript, Go, Java, and PHP |
nvidia/OpenMathReasoning |
25% | 128 | Mathematical reasoning examples |
open-thoughts/OpenThoughts3-1.2M |
25% | 128 | Science-domain examples, including organic chemistry and physics |
The SHA-256 of the exact calibration JSONL used was:
022cbb61e5c599a98c92f11304368f6352a2e1a575cffb47149e7f5ef15c5258
Reproduction
The quantization was run from the project workspace with the following command:
auto-round-best \
--model ./models/Qwen3.8-27B \
--scheme "GGUF:Q4_0" \
--format "gguf:q4_0" \
--dataset "./calib/mixed-code-math-science-512.jsonl:num=512" \
--output_dir ./quants/Qwen3.8-27B-AutoRound-Best-Q4_0-Mixed \
--seqlen 2048 \
--nsamples 512 \
--bs 1 \
--gradient_accumulate_steps 8 \
--low_gpu_mem_usage
The source model is Qwen/Qwen3.8-27B. The mmproj-model.gguf projector was exported from the same source model for llama.cpp multimodal inference.
Acknowledgements
- Alibaba / Qwen team for the base Qwen3.8-27B model
- Intel AutoRound for the quantization framework
- llama.cpp for GGUF inference and multimodal support
- The maintainers of Open-SWE-Traces, OpenMathReasoning, and OpenThoughts3-1.2M for the public calibration sources
License
Apache 2.0 - same as the Qwen3.8-27B base model.
Citation
If you use this quant, please cite the original Qwen3.8 release (see the base model card) and the AutoRound paper:
@misc{qwen38,
title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
url = {https://qwen.ai/blog?id=qwen3.8},
author = {{Qwen Team}},
month = {August},
year = {2026}
}
@article{cheng2023autoround,
title = {Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs},
author = {Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
journal = {arXiv preprint arXiv:2309.05516},
year = {2023}
}
- Downloads last month
- 543
4-bit
Model tree for webhie/Qwen3.8-27B-Q4-AutoRound-Code-GGUF
Base model
Qwen/Qwen3.8-27B