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 fork of Raymond's KV streaming.
- 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
- no retraining: surviving weights are bit-identical to the sources below
Note: In v2 of Raymond's phase arena there's support for MTP but currently not DFlash2. You thus only need the model file if using my settings. The DFlash2 of course works fine with regular llama.cpp.
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 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_QUANTS=q8_0-q4_0 -DGGML_CUDA=ON
cmake --build build --config Release -j
The files are standard GGUFs and load in any recent llama.cpp, but the shared-device-memory-mib settting 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]
spec-type = draft-mtp
spec-draft-n-max = 5
spec-draft-p-min = 0.8
device-draft = CUDA0
n-gpu-layers-draft = all
# If all 16GB are available to the model, else lower this value
shared-device-memory-mib = 3904
# Any suitable template
chat-template-file = chat_template_qwen3.8.jinja
m = Qwen3.8-27B-ASCII-Condensed-IQ4_XS-3.84bpw.gguf
ctx-size = 200192
n-gpu-layers = 99
batch-size = 256
ubatch-size = 256
cache-type-k = q8_0
cache-type-v = q4_0
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
# Original GGUF-converted mmproj
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).
Performance
On an RTX 5060 Ti 16 GB + 96 GB DDR5, with the config above:
- prompt processing: ~500-1000 t/s
- token generation: ~30-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
- 1,258
2-bit
4-bit
Model tree for troed/Qwen3.8-27B-ASCII-Condensed
Base model
Qwen/Qwen3.8-27B