Instructions to use bsaleh03/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 bsaleh03/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 bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS # Run inference directly in the terminal: llama cli -hf bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS # Run inference directly in the terminal: llama cli -hf bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
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 bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
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 bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
Use Docker
docker model run hf.co/bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
- LM Studio
- Jan
- vLLM
How to use bsaleh03/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 "bsaleh03/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": "bsaleh03/Qwen3.8-27B-ASCII-Condensed", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
- Ollama
How to use bsaleh03/Qwen3.8-27B-ASCII-Condensed with Ollama:
ollama run hf.co/bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
- Unsloth Studio
How to use bsaleh03/Qwen3.8-27B-ASCII-Condensed 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 bsaleh03/Qwen3.8-27B-ASCII-Condensed 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 bsaleh03/Qwen3.8-27B-ASCII-Condensed to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bsaleh03/Qwen3.8-27B-ASCII-Condensed to start chatting
- Pi
How to use bsaleh03/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 bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
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": "bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use bsaleh03/Qwen3.8-27B-ASCII-Condensed with Docker Model Runner:
docker model run hf.co/bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
- Lemonade
How to use bsaleh03/Qwen3.8-27B-ASCII-Condensed with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
Run and chat with the model
lemonade run user.Qwen3.8-27B-ASCII-Condensed-UD-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use bsaleh03/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 bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
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 bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use bsaleh03/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 bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS
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 "bsaleh03/Qwen3.8-27B-ASCII-Condensed:UD-IQ4_XS" \ --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 an ASCII-only vocabulary, for long context on a single 16 GB GPU.
Up to 135,168 tokens of context on an RTX 5070 Ti (16 GB).
The same quantization unpruned reaches 114,688 on the same card, so the vocabulary prune is worth about +20,000 tokens (1.18x).
The vocabulary is reduced from 248,320 to 129,006 rows. No weights were retrained, requantized, or otherwise altered — 864 of 866 tensors are bit-identical to the base quant, and the two vocabulary tensors are exact row-subsets of theirs.
What this is
Built from unsloth/Qwen3.8-27B-GGUF
UD-IQ4_XS by removing non-ASCII vocabulary rows from token_embd and
output, then rewriting the tokenizer to match.
Embeddings are a gather, and the output head is a GEMV over the whole vocabulary on every token. Shrinking both frees VRAM that becomes KV cache, which is what buys the context.
What it is not: a finetune, a distillation, or a requantization.
Quickstart
llama-cli -m Qwen3.8-27B-ASCII-Condensed-UD-IQ4_XS.gguf \
-ngl 99 -fa on -ctk q4_0 -ctv q4_0 \
-ot "token_embd.weight=CPU" \
-c 135168 -ub 128 -b 512
-ot "token_embd.weight=CPU" keeps the embedding table in system RAM. It is a
pure gather, so this costs ~1% of decode speed and frees its full footprint.
Configuration
Maximum context measured on a 16 GB card (headless), with a real 15K-token prompt — a context that merely allocates is not a usable context.
-ctk / -ctv |
bytes/token | max context |
|---|---|---|
q4_0 / q4_0 |
18,432 | 135,168 |
q5_1 / q4_0* |
21,504 | 118,784 |
q8_0 / q4_0* |
26,624 | 98,304 |
q8_0 / q8_0 |
34,816 | 77,824 |
Throughput
Measured at q4_0/q4_0, -c 135168, on an RTX 5070 Ti:
| prompt depth | prefill | decode |
|---|---|---|
| 15K | 1,501 t/s | 47.3 t/s |
| 90K | 930 t/s | 33.1 t/s |
Decode slows as the KV cache fills — budget for the depth you actually work at, not the shallow-context figure.
* Mixed K/V types need a patched llama.cpp. On stock builds -ctk and
-ctv must match — mismatched types silently disable flash attention and
cost ~37× prefill speed, with no warning. Use q4_0/q4_0 or q8_0/q8_0
unless you know your build supports mixed types.
MTP (speculative decoding)
The model carries its MTP head, giving ~1.8× decode at reduced context:
-ctk/-ctv |
max context with MTP |
|---|---|
q4_0/q4_0 |
77,824 |
q8_0/q8_0 |
49,152 |
--spec-type draft-mtp --spec-draft-n-max 3 -ctkd q4_0 -ctvd q4_0
The draft model keeps its own KV cache and does not inherit -ctk/-ctv
— it defaults to f16, so pass -ctkd/-ctvd explicitly.
Language support
The vocabulary is ASCII-only. All 256 byte-fallback tokens are retained, so nothing is unrepresentable — but non-ASCII text costs more tokens:
| Text | Cost |
|---|---|
| English, code, ASCII punctuation | unchanged |
| Unaccented Latin script | unchanged |
| Accented Latin (é, ñ, ü, ç …) | ~2 tokens per accented character |
| CJK, Cyrillic, Arabic, Thai … | ~3 tokens per character |
Nothing breaks; it is a token-efficiency tax proportional to how non-ASCII your text is. If you work in a non-English language, this build is not for you.
Verification
- 864 / 866 tensors byte-identical to the base quant (BLAKE2b compared)
- Surviving vocabulary rows are bit-exact copies — the tables were row-gathered in quantized space, with no dequantize/requantize step
- All 276 special tokens and all 256 byte-fallback tokens retained
- Merge rules filtered so every surviving rule has surviving parents
bos/eos/padids remapped; chat template unchanged- On ASCII text the tokenizer produces identical output to the base model, token for token
Known limitations
- Text only. No
mmprojis provided and the vision pathway is untested. - Non-ASCII input costs extra tokens (see above).
- Context ceilings are for a 16 GB card. More VRAM shifts them all upward.
- Mixed
-ctk/-ctvrequires a patched llama.cpp (see Configuration).
Credits and license
- Qwen for Qwen3.8-27B
- unsloth for the GGUF quantization; this build's weights are theirs, unaltered
Apache 2.0, inherited from the base model; LICENSE included.
Modifications from the base: vocabulary reduced 248,320 → 129,006 rows;
token_embd.weight and output.weight row-gathered to the retained set;
tokenizer.ggml.tokens, token_type, merges and special-token ids
rewritten to match. No other tensor was modified.
- Downloads last month
- 76
4-bit
Model tree for bsaleh03/Qwen3.8-27B-ASCII-Condensed
Base model
Qwen/Qwen3.8-27B