sgyaqing commited on
Commit
5697d3f
·
verified ·
1 Parent(s): c845e90

Verdict-ready decider package (checkpoint -> Mapika/decider-2b)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Mapika/decider-2b
4
+ pipeline_tag: text-classification
5
+ tags:
6
+ - verdict
7
+ - system-one
8
+ - decision-models
9
+ - decider
10
+ - serving
11
+ - torch-runtime
12
+ ---
13
+
14
+ # decider-2b (Verdict-ready)
15
+
16
+ The [decider-2b](https://huggingface.co/Mapika/decider-2b) System One decision model (Qwen3.5-2B-Base, 1.9B parameters, 32768-token context, checkpoint revision v11 — the vendor's default), packaged for [Verdict](https://github.com/sgyaqing/verdict) — a high-performance serving engine for System One decision models. Serve it with one command:
17
+
18
+ This package serves through the torch runtime, which runs on CUDA only in v0.2, so there is one
19
+ image and it needs a GPU. The `-v` mounts cache the checkpoint, so only the first run downloads it.
20
+
21
+ ```bash
22
+ # GPU host (no CPU image: the torch runtime serves on CUDA in v0.2)
23
+ docker run --rm --gpus all -p 8080:8080 \
24
+ -v ~/.cache/huggingface:/root/.cache/huggingface \
25
+ -v ~/.cache/verdict:/root/.cache/verdict \
26
+ sgyaqing/verdict:0.2.0-cuda serve verdict-models/decider
27
+ ```
28
+
29
+ If the hub is slow or unreachable, add `-e HF_ENDPOINT=https://hf-mirror.com` — the mirror covers
30
+ both the package and the upstream checkpoint, since both are fetched over the Hugging Face path.
31
+ Add `-e VERDICT_USE_MODELSCOPE=1` and use `sgyaqing/decider` to fetch from ModelScope instead; the
32
+ upstream checkpoint is looked up there under the id the manifest carries (`Mapika/decider-2b`),
33
+ which is the same id it has on Hugging Face.
34
+
35
+ Endpoints: the standard decision protocols `POST /v1/systemone` and `POST /v1/decisions`, native `POST /v1/choice | /v1/score | /v1/noul`, plus an OpenAI-compatible layer (`/v1/chat/completions`, `/v1/models`).
36
+
37
+ ## Runtime: torch (bf16)
38
+
39
+ This package serves through Verdict's **torch runtime**: row building, slot selection, calibration and the HTTP protocol run in the Rust engine; the model's forward pass runs in a pinned python torch stack (`torch 2.14.1+cu130`, `transformers 5.19.0`, `flash-linear-attention 0.5.2`) executing the official checkpoint in **bf16** — the checkpoint's own precision, matching the vendor's own GPU deployment (`dtype=bfloat16`).
40
+
41
+ The weights are **not redistributed in this repository**. The manifest names the official source, and the downloader fetches them on first serve:
42
+
43
+ ```json
44
+ "checkpoint": { "repo": "Mapika/decider-2b",
45
+ "files": ["config.json", "model.safetensors", "generation_config.json"] }
46
+ ```
47
+
48
+ ## Files
49
+
50
+ | File | Purpose |
51
+ |---|---|
52
+ | `model.json` | manifest: runtime, family recipe (`letter_readout`), calibrated temperatures, checkpoint declaration |
53
+ | `tokenizer/tokenizer.json` (+ `tokenizer_config.json`) | the tokenizer |
54
+ | `SHA256SUMS` | checksums for the files above (the checkpoint files are not ours to checksum; they are fetched from the vendor's repo) |
55
+
56
+ Requirements: a CUDA GPU (the torch runtime serves on CUDA in v0.2), `python3.12` with the pinned stack (the Verdict CUDA image ships it), ~5.5 GB VRAM at load (measured: 5654 MiB in the shipped image).
57
+
58
+ ## Verified against the official model
59
+
60
+ The official forward pass (`decider-ai` 1.9.0, CPU fp32) anchors a 30-case golden corpus
61
+ (choice / score / noul, English, mixed lengths up to 2063 tokens). This package's serving path
62
+ is graded against it end to end in the shipped configuration (torch runtime, bf16,
63
+ torch.compile + CUDA graphs, RTX 4090): **argmax flips: 0**.
64
+
65
+ ## Performance
66
+
67
+ Measured on one machine (RTX 4090, AMD EPYC 7543, 16 threads), end to end over HTTP with
68
+ [`oha`](https://github.com/hatoo/oha) and an identical request body for both servers. The
69
+ baseline is the model author's own server (`decider.serve`); the Verdict column is this
70
+ package. Latencies are per-request P50 / P99 at the stated concurrency. The ratios are oriented
71
+ so that **above 1× means Verdict is ahead** in both: throughput ratio = Verdict ÷ baseline,
72
+ latency ratio = baseline ÷ Verdict.
73
+
74
+ Both the accuracy and the numbers below are from the vendor's **v11** weights — what
75
+ `Mapika/decider-2b` serves today. The manifest names the repository rather than a revision, so a
76
+ future upstream release would be picked up on a fresh download rather than silently graded against
77
+ these figures.
78
+
79
+ | concurrency | Verdict rps | Verdict P50 / P99 | `decider.serve` rps | `decider.serve` P50 / P99 | ratio rps | ratio P50 / P99 |
80
+ |---|---:|---:|---:|---:|---:|---:|
81
+ | 1 | 139.6 | 6.91 / 7.88 ms | 132.4 | 7.51 / 7.94 ms | 1.05× | 1.09 / 1.01× |
82
+ | 8 | 436.5 | 18.23 / 20.17 ms | 314.0 | 25.41 / 26.87 ms | 1.39× | 1.39 / 1.33× |
83
+ | 64 | 795.9 | 80.13 / 85.43 ms | 506.2 | 112.91 / 436.79 ms | 1.57× | 1.41 / 5.11× |
84
+
85
+ ## License
86
+
87
+ Apache-2.0, inherited from the base checkpoint. Credit for the model itself belongs to the [original author](https://huggingface.co/Mapika/decider-2b) and the Qwen3.5-2B-Base it builds on; this repository only packages the serving manifest.
SHA256SUMS ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 222ee49a57a4c4be648d948cf1f52f3180d71f2725f5713a04a4b81427c22c9f README.md
2
+ 0113dcc05303337d1e4802322f8bb655aa0eaa5d5d3b7862c796d254f794ebb4 model.json
3
+ 06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523 tokenizer/tokenizer.json
4
+ 171ecbe7ddae98d11840698f7df2b8d5b4722139db0f0620d3bbf429bd656250 tokenizer/tokenizer_config.json
model.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"family":"letter_readout","runtime":"torch","checkpoint":{"repo":"Mapika/decider-2b","files":["config.json","model.safetensors","generation_config.json"]},"max_len":32768,"pad_token":"<|endoftext|>","temperature":1.145,"temperature_by_type":{"choice":1.164,"noul":1.624,"score":1.124}}
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|endoftext|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "local_files_only": false,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "split_special_tokens": false,
27
+ "tokenizer_class": "Qwen2Tokenizer",
28
+ "unk_token": null,
29
+ "video_token": "<|video_pad|>",
30
+ "vision_bos_token": "<|vision_start|>",
31
+ "vision_eos_token": "<|vision_end|>"
32
+ }