File size: 3,079 Bytes
c8374b6
 
 
 
 
 
 
 
 
 
 
f8c00ca
c8374b6
f8c00ca
c8374b6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1c5b7c6
 
 
c8374b6
 
 
 
d18bd90
 
 
 
 
 
 
 
 
1c5b7c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
license: apache-2.0
base_model: vllm-sr/d3-flash
base_model_relation: quantized
pipeline_tag: zero-shot-classification
tags:
- decision-model
- quantized
- mirai-s
---

# d3-flash S

Mirai S quantization of [vllm-sr/d3-flash](https://huggingface.co/vllm-sr/d3-flash), the 9B Decision 3.0 model of vLLM Semantic Router. Runtime support in uzu is in progress.

| | d3-flash (bf16) | d3-flash S |
|---|---:|---:|
| Text weights | 15.9 GB | **2.48 GB** (2.498 bits per parameter, every byte counted) |
| Jev Decision Index, held-out half of the public suite (official 0.3 kit) | 40.21 | **39.92** (-0.29, inside the board's 0.9-point tie band) |
| Gold accuracy (held-out) | 85.74% | 85.39% |
| Top-1 decision agreement with bf16 (held-out) | - | 96.05% |

The vision tower is not part of this package. It is unchanged bf16 from `vllm-sr/d3-flash`.

## How it was made
- **Sensitivity:** an exact few-option decision Fisher, computed through the model's own non-causal forward with gradients from the pooled answer position. That gives two-sided sensitivity factors per matrix.
- **Fits:** QTIP-style trellis (V4 restart-64 T6/T7/T8 and V2 k3) on Kronecker-rotated weights.
- **Allocation:** bits per matrix chosen from measured decision-KL ablations, half general and half reasoning-weighted. It picks a 2-bit D4 lattice input embedding and spends the saved bytes on middle-layer MLPs.
- **Training:** scale QAT (row gains, norms, the fp32 readout) on the teacher's option distributions, using public train-split data deduplicated against every suite row. The suite itself is evaluation-only and was never trained on.

## Files
- `model.safetensors`: compressed backbone and the FP32 255 x 4096 decision readout at `decoder.embedding.output_embedding.weights`, in native Lalamo format. The 8 full-attention layers remain non-causal; there is no vocabulary-sized LM head.
- `config.json`: a `DecisionModelConfig`. Its `decision` object holds the 255 ordered answer `codes` and the softmax `temperature` (`1.0`).
- `chat_template.jinja`, tokenizer files: the template renders one decision question per request, with the same code order; no separate `decision_config.json` is needed. Same packaging as d3-flash-M.

## Known limits
- Per-benchmark deltas vs bf16 are within about 2 points on most reasoning and knowledge rows. MMLU-Pro is about -3.2.
- POP909 (129-option music questions, near-uniform even in bf16) loses 7-9 points. It is a documented exception with negative index exposure.

## Lalamo runtime requirement

This package requires [Lalamo runtime `c995019f`](https://github.com/trymirai/lalamo/commit/c995019fef944ef3bbb796c81c10074e4d8ce361) or a later release containing that change. The change targets the next Lalamo release; released 0.19.0 does not support this package.

```sh
uv pip install --reinstall 'lalamo @ git+https://github.com/trymirai/lalamo.git@c995019fef944ef3bbb796c81c10074e4d8ce361'
```

The converted package passed full model loading and a one-token CPU inference smoke test. This is a format migration with no retraining or requantization.