Qwen3.8-27B-WV-v6.3-2.68bpw-SM120
Pre-packed native Blackwell (sm_120) 2.68 bpw (2.6789 bpw achieved weight budget, 8.63 GiB total on disk) checkpoint of Qwen/Qwen3.8-27B (64 hybrid layers) with calibrated Layer-64 Multi-Token Prediction (MTP) speculative decoding, bundled with the unified SASS-only sm_120 runtime wheel (qfn_sm120_unified).
All checkpoint shards (sm120_manifest.json, globals.safetensors, layers_00_03.safetensors..layers_60_63.safetensors, mtp.safetensors, tokenizer, chat_template.jinja) are flattened at the repository root, and the pre-compiled sm_120 binary wheel is included in wheels/.
Universal Runtime (wv_universal_runtime v1.5.2) — Install & Serve
All WV6 models share a single universal runtime wheel (sm_80–sm_120a, Linux + Windows) hosted at Grawnch/wv-runtime-binaries:
pip install --no-deps https://huggingface.co/Grawnch/wv-runtime-binaries/resolve/main/wheels/wv_runtime_installer-1.5.2-py3-none-any.whl
python -m wv_runtime.cli install
python -m wv_runtime.serve --model Grawnch/Qwen3.8-27B-WV-v6.3-2.68bpw-SM120 --max-seq 8192
Verified Blackwell (RTX PRO 6000, sm_120a) v1.5.1 Throughput
| Metric | Context / Batch | Measured (v1.5.1) |
|---|---|---|
Plain M=1 Decode | B=1 | 97.34 tok/s |
| Speculative Decode | B=1 | code: 150.08, math: 182.69, json: 181.04, prose: 138.69 tok/s |
| Batched Decode | B=4 / B=8 / B=16 (2K ctx) | 176.3 / 365.2 / 536.6 tok/s |
Prefill (S=512) | 512 tokens | 4383.4 tok/s (116.81 ms) |
Prefill (S=2048) | 2,048 tokens | 4943.0 tok/s (414.32 ms) |
Prefill (S=8192) | 8,192 tokens | 4584.3 tok/s (1786.98 ms) |
Prefill (S=32768) | 32,768 tokens | 3521.9 tok/s (9304.14 ms) |
Quick Start (Download + Install + OpenAI SSE & Tool-Calling Server)
Requirements: Linux x86_64, NVIDIA Blackwell sm_120 GPU (RTX PRO 6000 96GB, RTX 5090 32GB, or >=12GB Blackwell consumer GPU), Python 3.13, torch==2.14.1+cu130 (CUDA 13.0), transformers>=5.22.1, safetensors.
# 1. Download checkpoint + bundled SM120 wheel
HF_XET_HIGH_PERFORMANCE=1 hf download Grawnch/Qwen3.8-27B-WV-v6.3-2.68bpw-SM120 \
--local-dir ./Qwen3.8-27B-WV-v6.3-2.68bpw-SM120
# 2. Install the unified SASS-only SM120 runtime wheel (supports both 27B 2.68bpw & 180B 2.45bpw)
pip install --no-deps https://huggingface.co/Grawnch/wv-runtime-binaries/resolve/main/wheels/wv_runtime_installer-1.5.2-py3-none-any.whl
python -m wv_runtime.cli install
# 3. Start the OpenAI-compatible SSE + Tool-Calling server on http://localhost:8000/v1
# (Add --inline-think for Open WebUI so <think>...</think> streams inside delta.content!)
# - RTX PRO 6000 (96 GB):
python -m qfn_sm120_unified.serve --ckpt ./Qwen3.8-27B-WV-v6.3-2.68bpw-SM120 --inline-think --port 8000
# - RTX 5090 (32 GB):
python -m qfn_sm120_unified.serve --ckpt ./Qwen3.8-27B-WV-v6.3-2.68bpw-SM120 --force-32gb --port 8000
# - 12 GB Consumer Profile (< 11.0 GiB resident w/ MTP + 8K KV):
python -m qfn_sm120_unified.serve --ckpt ./Qwen3.8-27B-WV-v6.3-2.68bpw-SM120 --force-12gb --port 8000
OpenAI API Endpoints & Features (http://localhost:8000/v1)
GET /health&GET /v1/modelsPOST /v1/chat/completions:stream: true(SSE) &stream: false(JSON) — newly accepted speculative tokens stream on every step with glitch-free incremental UTF-8 decoding.- Thinking Mode (
<think>...</think>): streamed cleanly intodelta.reasoning_content(or pass--inline-think/"inline_think": trueto keep<think>inline incontent; pass"enable_thinking": falsefor instant non-thinking replies). - OpenAI
tools/tool_calls: full support for function definitions (tools), multi-turnrole: "tool"responses, and automatic XML-to-JSON typedtool_callsstreaming (finish_reason: "tool_calls"). - Continuous Batching: concurrent requests share the GPU dynamically across slots.
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen3.8-27B-WV-v6.3-2.68bpw",
"messages": [{"role": "user", "content": "Write a fast Python Fenwick tree with a self-test."}],
"stream": true,
"temperature": 1.0,
"top_p": 0.95,
"top_k": 20
}'
Runtime & Multi-Protocol Server Highlights (qfn_sm120_unified v22.4.0)
- Multi-Protocol Agentic Endpoints:
POST /v1/chat/completions(OpenAI SSE & JSON),POST /v1/messages&POST /v1/messages/count_tokens(native Anthropic Messages API for Claude Code),POST /v1/responses(OpenAI Responses API for Codex CLI),POST /v1/completions(raw +<|fim_prefix|>FIM),POST /detokenize,GET /slots,GET /metrics(Prometheus), and optional--api-key/QFN_API_KEY. - Live Incremental Tool-Call Argument Streaming & Implicit
</think>Recovery: Streams{id, type, function: {name, arguments: ""}}immediately on<function=NAME>and streams JSON-escaped parameter deltas token-by-token, with automatic recovery if<tool_call>opens before</think>. - Reasoning Budget & Loop Guards: Per-request
thinking_token_budget(and Anthropicthinking.budget_tokens) cleanly injects</think>without aborting the response, paired withrepetition_detection,min_tokens,stop_token_ids,response_format(json_object/json_schema),n > 1branching, andstream_options.include_usage(cached_tokens&reasoning_tokens). - Async Pinned Prefix Cache: Shares system and tool-schema prefixes across requests by default (pass optional
cache_saltfor per-tenant isolation). - Throughput:
1282.5 tok/sprefill and176.9 tok/sB = 4batched speculative decode.
Verified Hardware & Quality Gates (benchmarks/*.json)
Gate 1 — 8K Long-Context Logit & PPL Parity vs BF16 (benchmarks/gate1_8k_longctx_kld.json)
| Window | BF16 PPL | 2.68 bpw PPL | ΔPPL | Mean KLD | Top-1 Agreement |
|---|---|---|---|---|---|
All_8192 (0..8192) | 1.98016 | 2.08364 | +0.10348 | 0.160315 | 91.674% |
Early_0_2048 | 2.81770 | 3.21119 | +0.39348 | 0.196031 | 88.086% |
Late_4096_8192 | 1.46009 | 1.49567 | +0.03558 | 0.077584 | 95.018% |
Gate 2 — 12 GiB Consumer GPU Fit & Speculative SM120 Speed
| Metric | Value |
|---|---|
Resident Model + MTP + 8K KV (--force-12gb) | 10.94 GiB (< 12.00 GiB cap, 96/96 exact greedy parity) |
B = 1 Speculative Decode (--force-12gb, K = 8) | 143.0 tok/s (tau = 3.00, up from 56.8 tok/s M=1) |
B = 1 Speculative Decode (96 GB, K = 12) | 155.5 tok/s (tau = 3.45, 96/96 exact greedy parity) |
Gate 3 — AIME 2025 (128K Context, Official xhigh Thinking Mode, pp = 0.0)
From benchmarks/gate3_aime25_xhigh_128k_slice_0_10.json (temp = 1.0, top_p = 0.95, top_k = 20, presence_penalty = 0.0, reasoning_effort = xhigh, max_new_tokens = 128304):
- Pass@1 (
#01–#10):10 / 10(100.0%),0truncations,0tail loops (141,373generated tokens). - Speculative Decoding Telemetry:
mean_tau = 2.877,145.95 tok/saggregate throughput.
Repository Contents (Flattened Root Layout)
| File / Path | Size | Description |
|---|---|---|
wheels/qfn_sm120_unified-22.4.0-cp313-cp313-linux_x86_64.whl | ~1.8 MB | Unified SASS-only sm_120 wheel (27B + 180B engines & OpenAI SSE server) |
globals.safetensors | 1.30 GiB | Token embeddings, final norm, and untied LM head (sm_120 layout) |
layers_00_03.safetensors .. layers_60_63.safetensors | 16 × ~0.45 GiB (7.18 GiB) | 64 quantized hybrid layers (4 layers per shard) |
mtp.safetensors | 0.14 GiB | Calibrated Layer-64 Multi-Token Prediction (MTP) speculative drafter |
sm120_manifest.json | 3.5 KB | sm_120 shard & MTP manifest (achieved_weight_bpw = 2.6789) |
config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja | 12.2 MB | Hugging Face config, 248,320-vocab tokenizer, & xhigh Jinja chat template |
benchmarks/*.json | ~10 KB | Gate 1 8K KLD, Gate 2 12 GiB speed, MTP blind validation, & Gate 3 128K xhigh AIME-2025 logs |