license: apache-2.0
base_model: Blackfrost-AI/Qwen3.8-27B-ABLITERATED-BF16
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: vllm
language:
- en
- ru
- multilingual
tags: - qwen3.8
- qwen
- 27b
- gptq
- int8
- quantized
- vision-language
- long-context
- clef
- systemone
- classification
- structured-output
- v100
- volta
- sm70
- vllm
Qwen3.8-27B-ABLITERATED · GPTQ-Int8 · with Clef
Serving stack (required): xormal/vllm-sm70 on GitHub, branch sm70.
An int8 GPTQ checkpoint of Blackfrost-AI/Qwen3.8-27B-ABLITERATED-BF16
(itself a weight-level derivative of Qwen/Qwen3.8-27B), bundled with
compact adapters that turn the same weights into Cloudflare/clef,
Cloudflare's decision model, on a per-request basis.
One server, one copy of the weights, two kinds of output:
- Chat / vision / tools. The full multimodal Qwen3.8-27B model (text, images, video, tool calls,
262,144-token context) through the OpenAI-compatible API. - Decisions (Clef).
POST /v1/systemonetakes a state plus a schema of typed questions and returns a
probability for every allowed option, in one forward pass and with no text generation. The API is
Jev/SystemOne-compatible, like Clef's own. For requests on this endpoint only, the runtime adds back
the weight difference between this checkpoint and Clef inside its GEMM kernels and runs Clef's joint
schema head. Chat requests in the same batch are not touched. Records can carry images, like Clef's own,
and run up to 32,768 tokens.
This is the exact artifact that has served production traffic since 2026-10-12 on two NVIDIA V100 32 GB
(Volta, sm_70) with the serving stack vllm-sm70.
Take notice. The base checkpoint is a Blackfrost research preview with a deliberately reduced
refusal surface. It is not the upstream Qwen safety-stock model and must not be represented as
one. In Blackfrost's words, any further weight change (this quantization included) "creates an
artifact Blackfrost has not evaluated". See Limitations and responsible use.
Contents
| Path | Size | What it is |
|---|---|---|
model-000NN-of-00018-int8.safetensors, model.safetensors.index.json |
33.3 GB | Backbone: int8 GPTQ linear layers + BF16 everything else (vision tower, MTP head included) |
config.json, generation_config.json |
Model config with the GPTQ quantization_config (see Quantization) |
|
tokenizer.json, tokenizer_config.json, vocab.json, merges.txt, chat_template.jinja |
Tokenizer and chat template, unchanged from the base | |
preprocessor_config.json, video_preprocessor_config.json |
Image / video processor, unchanged | |
clef/clef_lora_r256_fp16.safetensors |
1.32 GB | Exact rank-256 factors of W_clef − W_qwen, decoder layers 40–63 |
clef/deabl_abl_fp16.safetensors |
4.2 MB | Rank-1 factors of W_qwen − W_blackfrost (o_proj, out_proj, down_proj, layers 2–63) |
clef/joint_head_fp16.safetensors, clef/joint_head_config.json |
256 MB | Clef's joint schema head (128.1 M parameters), converted to fp16 |
LICENSE, NOTICE |
Apache-2.0 and the attribution / modification notice | |
SHA256SUMS |
Checksums of every file in this repository |
Lineage and references
| Component | Source | Revision | License |
|---|---|---|---|
| Base model | Qwen/Qwen3.8-27B | 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 |
Apache-2.0 |
| De-risked BF16 master (quantized here) | Blackfrost-AI/Qwen3.8-27B-ABLITERATED-BF16 | 9d85770e5eb602322b4bceef55beda357e0bd0ca |
Apache-2.0 |
| Decision model (adapters derived from it) | Cloudflare/clef (blog post, Decision Index) | 0b331204bb13fbd2ca93a64df1956f5b55478ce5 |
Apache-2.0 |
| Serving stack | vllm-sm70, a fork of 1CatAI/1Cat-vLLM, itself a fork of vllm-project/vllm | sm70 branch |
Apache-2.0 (+ MIT for the sm70/ kernels) |
| Kernel libraries used by the stack | NVIDIA/cutlass, InternLM/lmdeploy (TurboMind GEMM) | vendored | BSD-3-Clause, Apache-2.0 |
Related: Cloudflare/clef-flash, the smaller Clef variant (not used here).
Quantization
- Method: round-to-nearest int8 (8 bits), asymmetric, per group of 128 input channels. The
weights are packed in the GPTQ v1 format (qweight,qzerosstored as zero−1,scales,g_idx,desc_act=false), so the checkpoint loads through vLLM's standardgptqmethod. At 8 bits, Hessian-based
GPTQ error compensation buys very little over RTN; the packing was validated against vLLM'sgptq_gemm(relative L2 1.09e-3 on a test layer). The script issm70/integrations/vllm_sm70/quantize/to_int8_gptq.py. - Quantized:
mlp.{gate,up,down}_proj,self_attn.o_proj,linear_attn.{in_proj_qkv,in_proj_z,out_proj}
of decoder layers 1–63. - Kept in BF16 (
modules_to_not_convert): the vision tower,self_attn.{q,k,v}_proj,linear_attn.in_proj_{a,b},
the whole decoder layer 0, the MTP head,lm_head, embeddings and norms. The vllm-sm70 runtime
repacksq/k/v_projto its own 12-bit format (W12) at load time and caches the result. - Size: 33.3 GB, versus 55.6 GB for the BF16 master.
- No calibration data, no rescaling: the dtype in
config.jsonstaysbfloat16. The serving stack
runs the model with--dtype float16.
Clef on the same weights
Clef is post-trained from Qwen/Qwen3.8-27B. A tensor-by-tensor
comparison of the two checkpoints shows that Clef changes only the linear projections of decoder
layers 40–63 (all MLP, q/k/v/o, and all five Gated DeltaNet projections). Every difference has
rank exactly 256. Layers 0–39, norms, A_log/dt_bias/conv1d, embeddings, lm_head and the
whole vision tower are bit-identical to Qwen. The Blackfrost master differs from Qwen by a rank-1 edit
of o_proj, out_proj and down_proj in layers 2–63. Hence, for any linear layer:
W_clef = W_blackfrost + (W_qwen − W_blackfrost) + (W_clef − W_qwen)
= W_blackfrost + deabl (rank 1) + LoRA (rank 256)
Both corrections are stored exactly, as low-rank factors, in clef/. Before int8 quantization, the
reconstruction from the BF16 master plus the adapters matched Clef's own outputs to a median of
1.6e-3, which is the BF16 rounding floor. Without the adapters the error is 7.6e-2.
At serve time, vllm-sm70 applies the correction only to the rows of Clef requests inside the existing
int8 GEMM kernels: the cost is extra low-rank GEMMs on those rows plus streaming layers 40–63 of the LoRA
from pinned host memory. Base requests in the same batch are not modified. The final hidden states of a
Clef request are tapped into Clef's joint schema head. A native CUDA implementation reproduces the
reference PyTorch head to max |Δp| 1.5e-4. Clef requests carry their own cache_salt and skip prefix-cache reads,
so neither their KV cache nor their linear-attention state can leak into chat requests, and vice versa.
GPU memory cost on 2× V100: 354 MiB on rank 0 (head + buffers, with the 32,768-token record limit;
290 MiB at Clef's default of 16,384) and 121 MiB on rank 1.
Serving
Requires the vllm-sm70 stack. It is tested on 2× NVIDIA V100 32 GB
(NVLink and PCIe), CUDA 12.8 (driver 580), Python 3.12.
git clone -b sm70 https://github.com/xormal/vllm-sm70 && cd vllm-sm70
scripts/install_from_source.sh # pinned venv + vLLM/flash-attention-v100 for sm_70
huggingface-cli download alexxorm/Qwen3.8-27B-ABLITERATED-GPTQ-Int8-Clef --local-dir /models/Qwen3.8-27B-ABLITERATED-GPTQ-Int8-Clef
PY=.venv/bin/python MODEL_DIR=/models/Qwen3.8-27B-ABLITERATED-GPTQ-Int8-Clef CARDS=0,1 PORT=8000 \
scripts/serve_qwen38_clef.sh
The first start JIT-compiles the Volta kernels (≈15–30 min, cached afterwards). The Clef adapters are
picked up from MODEL_DIR/clef. Set FA2SM70_CLEF=0 to serve the base model only.
Chat (OpenAI-compatible):
curl http://localhost:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "Qwen3.8-27B-ABLITERATED",
"messages": [{"role": "user", "content": "Summarize the Volta memory hierarchy in two sentences."}]}'
Decisions (Clef, SystemOne format):
curl http://localhost:8000/v1/systemone -H 'Content-Type: application/json' -d '{
"model": "clef",
"state": "Our checkout started returning errors and orders are blocked.",
"questions": {
"department": {"type": "choice", "instructions": "Which team should handle the message?",
"criteria": {"billing": "Payments or invoices", "technical": "Bugs or outages"}},
"urgency": {"type": "score", "criteria": ["Can wait", "This week", "Today"]},
"outage": {"type": "noul", "instructions": "Is a service down?"}}}'
{"model": "clef", "answers": {
"department": {"type": "choice", "choice": "technical", "confidence": 0.9185,
"probabilities": {"billing": 0.0815, "technical": 0.9185}},
"urgency": {"type": "score", "score": 1.8064, "confidence": 0.8546,
"legend": {"0": "Can wait", "1": "This week", "2": "Today"},
"probabilities": {"0": 0.0482, "1": 0.0972, "2": 0.8546}},
"outage": {"type": "noul", "noul": 0.8999}},
"usage": {"input_tokens": 300, "output_tokens": 0}}
Question types are choice (a dict of options), score (an ordered list), and noul (probability of
"yes"). state may be a string or JSON. Limits per record: 32,768 tokens including images
(FA2SM70_CLEF_NMAX; Clef's own default max_length is 16,384, and "max_length" lowers the limit per
request), up to 16 images, 64 questions, and 448 options in total. Two records are processed concurrently
and further ones queue; chat traffic proceeds in parallel.
Decisions with images. "images" takes http(s) URLs, data URLs, bare base64 or chat-style{"image_url": {"url": ...}} objects; videos are rejected.
curl http://localhost:8000/v1/systemone -H 'Content-Type: application/json' -d '{
"model": "clef",
"state": {"task": "Triage the attached screenshot."},
"images": ["https://example.com/screenshot.png"],
"questions": {"error": {"type": "noul", "instructions": "Does the screenshot show an error message?"}}}'
The record is built as in Clef's encode_record: the image tokens follow STATE:\n. Clef's vision
encoder is bitwise identical to this checkpoint's (333/333 tensors), so the served vision encoder is used
as is, and the Clef correction applies to every row of the record, image rows included.
Validation
All figures below are from the deployment of this exact checkpoint on 2× V100 32 GB. Stand runs used
PCIe-connected cards; production runs used an NVLink pair.
| Check | Result |
|---|---|
| Clef decisions vs Cloudflare/clef in fp16 (10 records, 152–16,384 tokens, 35 decisions) | 35/35, max |Δp| 0.0093 (stand); 34/35 in production, where the one flip is a 0.200/0.199 near-tie in a deliberately meaningless record, which the reference itself scores 0.1916/0.1913 |
| Same records without the adapters (control) | 24/35, max |Δp| 0.64: the correction is necessary and effective |
| Clef determinism | bitwise-identical answers across repeats and server restarts |
| Mixed load: 10 Clef records + 6 chats concurrently, ×3 | 16/16 each round, no memory failures |
| Heavy order: 3 storms of 8 requests × 2 images (1280×960 + 640×480) with Clef records inside, then a 243,173-token needle, then images again | all answered; needle found; ≥ 782 MiB free at peak |
| Context capacity | 262,144 tokens (max_model_len) with int8 KV cache on two 32 GB cards |
| Long-context retrieval | code word at the start of a 243,173-token prompt reproduced verbatim |
| Clef with images (2026-10-13, production) | 15 records with known answers (color, digit, shape, word, the second of two images, image + 11K tokens of text): 16/16 decisions correct at p ≈ 0.99; repeats bitwise identical |
| Clef record length (2026-10-13, production) | facts at 5/50/95 % of 4K, 12K, 24K and 31K-token records, plus records without the facts: 40/40; a 32,768-token record takes 28 s |
Earlier measurements of the base model on the same stack (NVLink pair, MTP speculation with k=3):
250K-token prefill in 186.8 s (2026-09-15) and a median of 215 s (2026-09-23). Single-stream decode
measured 55.8 / 58.4 / 48.6 tok/s at 32K / 128K / 250K context on filler text and 63.8 tok/s on natural
text (2026-09-15). Prefill time depends on the cards' thermal state: V100s in hot slots throttle to
about 1.3 GHz.
Limitations and responsible use
- Reduced refusals. This is a quantization of Blackfrost's de-risked research checkpoint. Refusal
behavior was modified at the weight level by Blackfrost. Do not deploy, market or evaluate it as a
safety-stock model. Blackfrost's disclaimers apply in full, and this quantized artifact was not evaluated by
Blackfrost. - Clef answers come from Clef's weights. On
/v1/systemonethe adapters undo the Blackfrost edit and
apply Clef's post-training, so decisions follow Cloudflare/clef up to int8 rounding (see Validation).
They are probabilities, not guarantees. Validate them for your schema before automating actions. - Clef record length. Records go up to 32,768 tokens. The native head is verified against the PyTorch
fp32 reference at 32,768 and the fact-retrieval test above passes, but Cloudflare did not evaluate Clef
beyond its own default of 16,384 tokens. - Clef with images is validated on known-answer records and for determinism, not yet against
Cloudflare/clef's probabilities. This checkpoint ships the fast Qwen2-VL image processor while Clef uses
the slow one: image token counts are identical, pixel values may differ slightly. - Hardware. The Clef endpoint and the int8/W12 kernels are part of vllm-sm70 and target Volta
(sm_70). The base checkpoint is a standard GPTQ int8 checkpoint, but loading it on other stacks or GPUs was
not tested. - No warranty. Provided "as is", see LICENSE.
License
Apache License 2.0, the same as all upstream components: Qwen3.8-27B, the Blackfrost derivative and
Cloudflare Clef. NOTICE lists the upstream works and the modifications made here (int8 quantization,
derivation of the low-rank adapters, fp16 conversion of Clef's head).
Citation
If you use this checkpoint, please cite the upstream works. Qwen3.8, as requested by the Qwen team:
@misc{qwen38,
title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
url = {https://qwen.ai/blog?id=qwen3.8},
author = {{Qwen Team}},
month = {August},
year = {2026}
}
Clef: the Cloudflare blog post and the
model card. The Blackfrost master:
Blackfrost-AI/Qwen3.8-27B-ABLITERATED-BF16.
Acknowledgements
The Qwen team for Qwen3.8-27B; Blackfrost for the BF16 master; Cloudflare for Clef and the SystemOne API;
1Cat AI for the Volta fork of vLLM; the vLLM, CUTLASS and LMDeploy/TurboMind projects.