Post-training quantization
The compressed-tensors format is float-quantized. The checkpoint stores float8_e4m3fn weights and [out_features, 1] FP32 weight_scale tensors. The scales multiply the FP8 codes. The shard index includes both weights and scales.
For each BF16 output row, the exporter starts at amax / 448 and evaluates nine scale fractions from 0.8 to 1.0. For each candidate it divides by the scale, clamps to the E4M3FN finite range, and rounds to nearest with ties to even. It chooses the fraction with minimum FP32 weight reconstruction MSE, resolving ties in favor of the first candidate. This initialization uses the weights directly and requires no activation calibration set.
All 64 layers' MLP gate_proj, up_proj, and down_proj and the 16 full-attention layers' q_proj, k_proj, v_proj, and o_proj are quantized. Embeddings, vocabulary projection, norms, linear attention, the 333-tensor BF16 vision tower, and the 15-tensor MTP head retain their original tensor bytes. The processor, tokenizer, chat template, generation defaults, license, and notice are preserved.
Quantization-aware distillation
The BF16 source checkpoint supplied full-vocabulary teacher logits. The student optimized log-scale offsets for the seven FP8 projections in the final decoder layer. Source weights and all earlier layers were frozen. Each forward pass requantized the selected weights from BF16 and the current scales. The straight-through gradient updated only those scales. The objective was full-vocabulary KL at temperature 1 plus 0.075 times assistant-token cross-entropy.
There were 50 training and 20 validation examples. Candidate steps 1, 5, 10, 20, and 30 were compared to the W8A16 initialization on validation, using only the training and validation splits. The selected positive step was 30. Selection required lower KL and no NLL increase on validation. The 15-example holdout was evaluated after selection and required both metrics to be at least as good as the initialization.
Table with columns: Evaluation, Assistant tokens, Initialization KL, Selected KL, Initialization NLL, Selected NLL| Evaluation | Assistant tokens | Initialization KL | Selected KL | Initialization NLL | Selected NLL |
|---|
| Validation | 255 | 0.00351253 | 0.00333032 | 0.63436457 | 0.63119111 |
| Independent holdout | 708 | 0.00190396 | 0.00184335 | 0.33723949 | 0.33587344 |
Metrics are nats per assistant token. The exported result changed 14 packed weight/scale tensors and retained 1441 tensors byte-for-byte relative to the W8A16 initialization. This is a bounded scale-distillation run on synthetic text examples. Benchmark, full-context, long-video, and broad multimodal quality are unmeasured.
The released processor, vision tower, and multimodal positional path ran with the exported FP8 weights in the CPU reference engine. It dequantized each selected weight tensor to FP32 and used the original Qwen decoder and vision layers. All four red/blue image and short-video fixtures produced the correct two-choice next-token ranking. This check covers the preserved multimodal input path and the exported tensor layout. It was also served on 1Cat-vLLM 1.5.4 on the Crater cluster with two Tesla V100s (compressed-tensors static per-channel W8A16, FP16 compute, E4M3 KV cache, 572,644 KV tokens, MTP speculation disabled). On that engine an OpenAI JSON request, an Anthropic text stream, and an Anthropic image question about the released weights all completed and answered correctly.
Download the full repository using the Hugging Face CLI, then pass the snapshot directory to a W8A16-capable vLLM runtime.
hf download cyjin-yl/ScarletKc-2.0-W8A16-FP8 --local-dir ./ScarletKc-2.0-W8A16-FP8vllm serve ./ScarletKc-2.0-W8A16-FP8 --dtype half --tensor-parallel-size 2 \ --generation-config ./ScarletKc-2.0-W8A16-FP8
The serving backend must support compressed-tensors static per-channel W8A16 for the selected accelerator. The retained MTP head is available to compatible runtimes. Choose a context length and batch capacity that fit your device memory. The native model configuration supports a 262,144-token window. Performance at that maximum was not measured for this release.
Reproducing the export
The exporter streams the original BF16 checkpoint shard by shard. It verifies the weight and scale tensor bytes in the result and writes a separate file digest map. Run it without --scales to produce the MSE initialization, or supply the released selected row scales, a Safetensors file, to reproduce the adapted weights from the pinned BF16 source.
License
Apache License 2.0. See LICENSE and NOTICE for the inherited terms and attribution.