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/.
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 -U ./Qwen3.8-27B-WV-v6.3-2.68bpw-SM120/wheels/qfn_sm120_unified-22.4.0-cp313-cp313-linux_x86_64.whl
# 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
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.<think>...</think>): streamed cleanly into delta.reasoning_content (or pass --inline-think / "inline_think": true to keep <think> inline in content; pass "enable_thinking": false for instant non-thinking replies).tools / tool_calls: full support for function definitions (tools), multi-turn role: "tool" responses, and automatic XML-to-JSON typed tool_calls streaming (finish_reason: "tool_calls").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
}'
qfn_sm120_unified v22.4.0)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.</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>.thinking_token_budget (and Anthropic thinking.budget_tokens) cleanly injects </think> without aborting the response, paired with repetition_detection, min_tokens, stop_token_ids, response_format (json_object / json_schema), n > 1 branching, and stream_options.include_usage (cached_tokens & reasoning_tokens).cache_salt for per-tenant isolation).1282.5 tok/s prefill and 176.9 tok/s B = 4 batched speculative decode.benchmarks/*.json)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% |
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) |
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):
#01–#10): 10 / 10 (100.0%), 0 truncations, 0 tail loops (141,373 generated tokens).mean_tau = 2.877, 145.95 tok/s aggregate throughput.| 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 |
globals.safetensors 1.4 GBlayers_56_59.safetensors 490 MBlayers_60_63.safetensors 486 MBlayers_04_07.safetensors 486 MBlayers_12_15.safetensors 481 MBlayers_16_19.safetensors 481 MBlayers_20_23.safetensors 481 MBlayers_24_27.safetensors 481 MBlayers_28_31.safetensors 481 MBlayers_32_35.safetensors 481 MBlayers_36_39.safetensors 481 MBlayers_44_47.safetensors 481 MBlayers_48_51.safetensors 481 MBlayers_52_55.safetensors 481 MBlayers_08_11.safetensors 481 MBlayers_00_03.safetensors 481 MBlayers_40_43.safetensors 477 MBQwen/Qwen3.8-27B