Instructions to use bartowski/Qwen3.8-27B-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 bartowski/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 bartowski/Qwen3.8-27B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bartowski/Qwen3.8-27B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bartowski/Qwen3.8-27B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bartowski/Qwen3.8-27B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf bartowski/Qwen3.8-27B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf bartowski/Qwen3.8-27B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/bartowski/Qwen3.8-27B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use bartowski/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 "bartowski/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": "bartowski/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/bartowski/Qwen3.8-27B-GGUF:Q4_K_M
- Ollama
How to use bartowski/Qwen3.8-27B-GGUF with Ollama:
ollama run hf.co/bartowski/Qwen3.8-27B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use bartowski/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 bartowski/Qwen3.8-27B-GGUF:Q4_K_M
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "bartowski/Qwen3.8-27B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use bartowski/Qwen3.8-27B-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/Qwen3.8-27B-GGUF:Q4_K_M
- Lemonade
How to use bartowski/Qwen3.8-27B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bartowski/Qwen3.8-27B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.8-27B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use bartowski/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 bartowski/Qwen3.8-27B-GGUF:Q4_K_M
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:9931/v1 hermes config set model.default bartowski/Qwen3.8-27B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use bartowski/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 bartowski/Qwen3.8-27B-GGUF:Q4_K_M
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:9931/v1 \ --custom-model-id "bartowski/Qwen3.8-27B-GGUF:Q4_K_M" \ --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"
Heads-up: published imatrix has no entries for blk.64 (MTP head) - IQ1 rebuilds fail
Thanks for these quants - using them daily.
Flagging something for anyone who reuses Qwen3.8-27B-imatrix.gguf to build their own lower-bit quants. Your shipped files are unaffected; this only bites custom IQ1-tier builds.
Qwen3.8-27B is 64 trunk layers plus one MTP block, so it has blk.64.* tensors. llama-imatrix only runs forward passes through the trunk, so the MTP head never receives activations and no imatrix contains those tensors. This is a known llama.cpp limitation - see #23476 and #23258, neither merged; master at b10437 still has no MTP handling in imatrix.cpp.
At IQ1_S / IQ1_M the quantizer refuses to proceed:
====== llama_model_quantize_impl: did not find weights for blk.64.attn_k.weight
Missing importance matrix for tensor blk.64.attn_k.weight in a very low-bit quantization
The result will be garbage, so bailing out
The awkward part is how it fails: it bails at tensor 852 of 866 after ~7 minutes, having already written everything before it. Since the GGUF header is written last, you get a file of exactly the expected size that begins with zeros, and loading it later reports only invalid magic characters: '????', expected 'GGUF' - nowhere near the real cause.
Workaround is one line as the first entry of a --tensor-type-file (llama.cpp uses first-match-wins):
blk\.64\.[a-z_.]*weight$=q4_K
Costs ~145 MiB (7036 vs 6891 MiB for stock IQ1_S) and keeps the MTP head usable, which matters if you want --spec-type draft-mtp.
FWIW, having measured the tier: sub-2-bit is not worth it for this model. On wikitext-2 (100 chunks, c=512) against a locally built Q8_0 reference at PPL 6.7500:
| quant | size | PPL | mean KLD | top-1 agree |
|---|---|---|---|---|
| unsloth UD-IQ2_XXS | 8.39 GiB | 7.6528 | 0.146 | 82.98% |
| your IQ2_XXS | 8.75 GiB | 8.5352 | 0.301 | 76.53% |
| stock IQ1_M | 7.33 GiB | 12.0328 | 0.659 | 65.51% |
| stock IQ1_S | 6.88 GiB | 14.9721 | 0.896 | 60.49% |
The IQ1 tier is strictly worse for the size saved, so this is mostly a warning for people who try what I tried rather than a request to change anything.
Disclosure: measurements and this write-up were produced with AI assistance (Claude). All numbers are from actual runs on rented hardware, not estimates.
This is a known issue with MTP where imatrix will never activate on MTP, so those layers have to be forced to be something higher. I choose Q4_0 personally for the raw speed.
This happens for everything below I think IQ2_S and is expected
Thanks for the note. I'm new at this π
no problem ! :) just a funny quirk of MTP being included in the model itself, there's some work upstream to try to identify this ahead of time but it's not as easy as you'd hope :')