Instructions to use troed/Qwen3.8-27B-ASCII-Condensed 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 troed/Qwen3.8-27B-ASCII-Condensed 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 troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S # Run inference directly in the terminal: llama cli -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S # Run inference directly in the terminal: llama cli -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_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 troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S # Run inference directly in the terminal: ./llama-cli -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_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 troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
Use Docker
docker model run hf.co/troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
- LM Studio
- Jan
- vLLM
How to use troed/Qwen3.8-27B-ASCII-Condensed with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "troed/Qwen3.8-27B-ASCII-Condensed" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "troed/Qwen3.8-27B-ASCII-Condensed", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
- Ollama
How to use troed/Qwen3.8-27B-ASCII-Condensed with Ollama:
ollama run hf.co/troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
- Unsloth Desktop
- Pi
How to use troed/Qwen3.8-27B-ASCII-Condensed with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_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": "troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use troed/Qwen3.8-27B-ASCII-Condensed with Docker Model Runner:
docker model run hf.co/troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
- Lemonade
How to use troed/Qwen3.8-27B-ASCII-Condensed with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
Run and chat with the model
lemonade run user.Qwen3.8-27B-ASCII-Condensed-Q2_K_S
List all available models
lemonade list
- Hermes Agent
How to use troed/Qwen3.8-27B-ASCII-Condensed with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_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 troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_S
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use troed/Qwen3.8-27B-ASCII-Condensed with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_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 "troed/Qwen3.8-27B-ASCII-Condensed:Q2_K_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-ASCII-Condensed
Qwen3.8-27B with a condensed ASCII-only vocabulary and a matching DFlash2 draft model. Meant to be used together with troed/llama.cpp-adaptive-kv-streaming, a llama.cpp fork that adds Raymond's KV streaming plus my own speculative draft support.
- vocabulary reduced from 248,320 to 129,006 rows in the embedding and output head
- the freed VRAM becomes KV cache: 160K context on a 16 GB GPU
- speculative decoding with the included DFlash2 draft (
spec-type = draft-dflash) - no retraining: surviving weights are bit-identical to the sources below
Files
| File | Size | Role |
|---|---|---|
Qwen3.8-27B-ASCII-Condensed-IQ4_XS-3.84bpw.gguf |
11.4 GiB | target model |
Qwen3.8-27B-ASCII-Condensed-DFlash2-Q2_K_S-MIX.gguf |
511 MiB | DFlash2 draft model (load with md =) |
How the files were made
Target
Created from byteshape/Qwen3.8-27B-GGUF (its Qwen3.8-27B-IQ4_XS-3.84bpw.gguf) using bsaleh03's ASCII-Condensed-prune-tools. The vocab rows were gathered directly in quantized space and the tokenizer was rewritten to match, so every surviving weight is bit-identical to the source: no dequantization, no requantization, no retraining.
Draft
Created (scripts in my fork repo) from the original HermiHg/Qwen3.8-27B-DFlash2-Q2_K_S-MIX-GGUF, with the same condensation applied to the draft's vocab tensors and tokenizer. No weights were changed beyond the row subset.
Requirements
A build of troed/llama.cpp-adaptive-kv-streaming:
cmake -B build -DGGML_NATIVE=ON -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_CUDA_FA_ALL_QUANTS=ON -DGGML_CUDA=ON
cmake --build build --config Release -j
The files are standard GGUFs and load in any recent llama.cpp, but the kv-stream-* options and the pinned-draft behavior need the fork.
Usage
hf download troed/Qwen3.8-27B-ASCII-Condensed --local-dir models
Config for the fork's llama-server (local paths adjusted):
[Qwen3.8-27B]
chat-template-file = chat_template_qwen3.8.jinja
m = models/Qwen3.8-27B-ASCII-Condensed-IQ4_XS-3.84bpw.gguf
md = models/Qwen3.8-27B-ASCII-Condensed-DFlash2-Q2_K_S-MIX.gguf
device-draft = CUDA0
n-gpu-layers-draft = all
spec-type = draft-dflash
spec-draft-n-max = 5
ctx-size = 160000
n-gpu-layers = 99
batch-size = 256
ubatch-size = 256
cache-type-k = q8_0
cache-type-v = q4_0
kv-stream-arena-mib = 4352
kv-stream-spec-dynamic = on
kv-stream-spec-keep-pages = 334
kv-stream-spec-reenable-pages = 8
kv-stream-spec-stable-decodes = 4
fit = off
parallel = 1
temp = 1.0
top-p = 0.95
top-k = 20
min-p = 0.0
presence-penalty = 0.0
repeat-penalty = 1.0
reasoning = on
reasoning-preserve = on
no-mmproj-offload = on
mmproj = Qwen3.8-mmproj-BF16.gguf
load-mode = none
flash-attn = on
chat-template-file is any Qwen 3.8 jinja chat template. No mmproj is provided here; use e.g. the one from byteshape/Qwen3.8-27B-GGUF (mmproj-bf16.gguf), or drop the mmproj/no-mmproj-offload lines for text only.
Performance
On an RTX 5060 Ti 16 GB + 96 GB DDR5, with the config above:
- prompt processing: ~600-900 t/s
- token generation: ~15-50 t/s
Full setup walkthrough: 16 GB VRAM llama-server configs.
Language support
The vocabulary is ASCII only. The 256 byte-level fallback tokens are always kept, so non-ASCII text still decodes correctly, it just costs more tokens per character. If you need Latin-extended, Greek, currency or box-drawing characters, re-run the prune tools with a wider policy.
Credits
- Qwen for Qwen3.8-27B
- Raymond Huang for the KV cache streaming work
- ByteShape for the IQ4_XS-3.84bpw quantization (weights unaltered)
- bsaleh03 for the vocabulary pruning tools
- HermiHg for the Q2_K_S-MIX DFlash2 draft (weights unaltered)
Licensed under Apache-2.0, inherited from the base model.
- Downloads last month
- -
2-bit
4-bit
Model tree for troed/Qwen3.8-27B-ASCII-Condensed
Base model
Qwen/Qwen3.8-27B