ironbcc commited on
Commit
2ce2188
·
verified ·
1 Parent(s): 63c1013

add README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -22
README.md CHANGED
@@ -1,36 +1,139 @@
1
  ---
2
  license: apache-2.0
3
  base_model: Qwen/Qwen3.5-9B
 
 
4
  library_name: transformers
5
- pipeline_tag: image-text-to-text
6
  tags:
7
  - decision-model
 
 
 
 
8
  ---
 
9
  # Seb-9B-v2
10
- Private. Internal name: M9 (`s1_di_m9`). Replaces the Seb-9B-v2 preview (DI-avg) that this repository held before
11
- 2026-10-21.
12
 
13
- ## What it is
14
- Qwen3.5-9B (revision `c202236235762e1c871ad0ccb60c8ee5ba337b9a`) with an exact weighted mean of three LoRA deltas merged
15
- into the weights (`merge_record.json`, rank 832):
16
- - 0.50 x `s1_di_v6`: Decision Index skill data built from permissive train splits, plus replay;
17
- - 0.25 x `s1_avgP_4`: Seb-9B;
18
- - 0.25 x `s1_union_d24`: the general union run.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
- It expects System1 candidate-v2 prompts and is scored by reading the allowed answer-token probabilities.
21
 
22
- ## Results
23
- | Measure | Seb-9B-v2 | Seb-9B | Reference |
24
- |---|---|---|---|
25
- | Decision Index 0.3, public index (all 110,520 rows, kit run) | **59.16** | | OneJev1.5-9B 59.03 (published); preview 52.74 |
26
- | Laya-style 20-suite mean | **0.803** | 0.797 | Jev 0.788 |
27
- | Trading verification suite | **0.749** | 0.732 | Jev 0.707 |
28
- | Dev novel suite, accuracy vs original labels | 0.856 | **0.867** | |
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- Decision Index detail: raw index 69.37, breadth 57.60; 110,352 rows answered, 168 rejected as over capacity (counted as
31
- wrong, as for every model).
 
 
 
32
 
33
- ## Known issues
34
- - Below Seb-9B on the dev novel suite (-0.012) and on the sealed general suite (-0.015).
 
 
 
 
 
 
 
 
35
 
36
- Decision aid, not advice. Keep this repository private.
 
1
  ---
2
  license: apache-2.0
3
  base_model: Qwen/Qwen3.5-9B
4
+ base_model_relation: finetune
5
+ pipeline_tag: text-classification
6
  library_name: transformers
 
7
  tags:
8
  - decision-model
9
+ - typed-decisions
10
+ - classification
11
+ - routing
12
+ - calibrated-probabilities
13
  ---
14
+
15
  # Seb-9B-v2
 
 
16
 
17
+ **A fast local decision model.** Give it a **state** (text or JSON), a **question** and a fixed set of **options**; it returns a
18
+ probability for every option in **one forward pass, with zero generated tokens**.
19
+
20
+ **3D robot arm: sorting with a person entering the workspace (PyBullet)**
21
+
22
+ <video src="https://huggingface.co/ironbcc/Seb-9B-v2/resolve/main/assets/robot-3d-pybullet.mp4" controls width="100%"></video>
23
+
24
+ **The same task in MuJoCo**
25
+
26
+ <video src="https://huggingface.co/ironbcc/Seb-9B-v2/resolve/main/assets/robot-3d-mujoco.mp4" controls width="100%"></video>
27
+
28
+ **Warehouse robot: Seb is the high-level policy, an A* planner drives**
29
+
30
+ <video src="https://huggingface.co/ironbcc/Seb-9B-v2/resolve/main/assets/warehouse-robot.mp4" controls width="100%"></video>
31
+
32
+ **Chess against a random-move bot (two model calls per move)**
33
+
34
+ <video src="https://huggingface.co/ironbcc/Seb-9B-v2/resolve/main/assets/chess.mp4" controls width="100%"></video>
35
+
36
+ **Connect Four against a random-move bot**
37
+
38
+ <video src="https://huggingface.co/ironbcc/Seb-9B-v2/resolve/main/assets/connect-four.mp4" controls width="100%"></video>
39
+
40
+ **Real benchmark rows: banking intents, MASSIVE scenarios, model routing**
41
+
42
+ <video src="https://huggingface.co/ironbcc/Seb-9B-v2/resolve/main/assets/benchmark-banking.mp4" controls width="100%"></video>
43
+
44
+ *Every choice in the videos is Seb-9B-v2's own argmax, shown with its option probabilities and the benchmark response time. The arm's motion is inverse kinematics and the warehouse driving is an A\* planner; Seb makes the decisions.*
45
+
46
+ | Type | Options | Example |
47
+ |---|---|---|
48
+ | `noul` | `Y` / `N` | "Does the review mention a refund?" |
49
+ | `choice` | `A`…`T` (up to 20) | "Which team should handle this ticket?" · "Which action should the robot take next?" |
50
+ | `score` | `0`…`4` | "How urgent is the message?" |
51
+
52
+ ## Results at a glance
53
+
54
+ | | **Seb-9B-v2** | Seb-9B | Jev 1.13 | Laya |
55
+ |---|---|---|---|---|
56
+ | Decision Index 0.3, public index | **59.2** | | | |
57
+ | Laya public suites, mean accuracy (17 suites) | **0.801** | 0.793 | 0.786 | 0.694 |
58
+ | Calibration error, ECE (lower is better) | 0.110 | **0.088** | 0.124 | 0.170 |
59
+ | Typed decisions, sealed suite (12 suites, pooled) | 93.1 | **94.6** | 94.3 | |
60
+ | Trading decisions suite | **0.749** | 0.732 | 0.707 | |
61
+
62
+ - **Decision Index:** 59.2 on the full public suite (110,520 requests), above OneJev1.5-9B's published 59.0.
63
+ - **Biggest gains over Seb-9B:** BANKING77 0.973 (Seb-9B 0.907, Jev 0.920), jailbreak detection 0.940 (0.868), model
64
+ routing 0.980 (0.945), phishing 0.895 (0.863), MASSIVE scenario 0.833 (0.780).
65
+
66
+ ## Demo results
67
+
68
+ | Demo | Opponent / data | Result |
69
+ |---|---|---|
70
+ | Warehouse robot, 4 episodes | A\* planner executes, people enter the aisle | 4 of 4 delivered all 3 packages |
71
+ | 3D robot arm sorting, PyBullet (Franka Panda), 20 episodes | person walks into the workspace; kinematic grasp | 200 of 200 decisions correct, 60 of 60 objects in the right bin |
72
+ | 3D robot arm sorting, MuJoCo (Franka Panda), 10 episodes | same scenario | 100 of 100 decisions correct, 30 of 30 objects in the right bin |
73
+ | Robot decisions (arm, drone, AMR, vacuum, handover, ...) | 52 unseen examples | 47 correct (90%) |
74
+ | Typed decisions (yes/no, choice, score) | 51 unseen examples | 50 correct (98%) |
75
+ | Connect Four, Seb is red | random-move bot, 10 games | 10 wins |
76
+ | Connect Four | bot that takes wins and blocks, 10 games | 2 wins, 8 losses |
77
+ | Chess, Seb is white | random-move bot, 10 games | 7 wins, 3 draws (stalemates) |
78
+ | Chess | Stockfish skill 0, 20 ms/move, 10 games | 0 wins, 3 draws, 7 losses |
79
+
80
+ The videos show winning examples only; the table is the full record. Robot and typed examples were written by a separate model; the gold keys come from an independent blind labeller (robot) or needed both to agree (typed), ambiguous items were dropped, and none were tuned on Seb. Seb is a decision model, not a game engine: each chess move is two calls (which piece, then which move).
81
+
82
+ ## Speed
83
+
84
+ Single request, real decision rows, prompts up to 1,024 tokens (mean 239); render + tokenise + one forward pass, no generated tokens.
85
+
86
+ | Hardware / runtime | p50 | p95 |
87
+ |---|---|---|
88
+ | NVIDIA RTX PRO 6000, vLLM, bf16 (power limit 600 W) | 21.7 ms | 36.1 ms |
89
+ | Apple M5 Max, MLX, bf16 | 87.8 ms | 208.8 ms |
90
+ | Apple M5 Max, MLX, 8-bit | 96.1 ms | 245.9 ms |
91
+
92
+ Throughput on one RTX PRO 6000 (vLLM, bf16, 600 W), requests in flight → decisions per second:
93
+
94
+ | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 |
95
+ |---|---|---|---|---|---|---|---|---|
96
+ | 42 | 46 | 64 | 75 | 83 | 84 | 87 | 86 | 86 |
97
+
98
+ Median latency per request at 8 / 32 / 128 in flight: 105 / 384 / 1,543 ms.
99
 
100
+ ## How to use
101
 
102
+ ### vLLM
103
+ ```bash
104
+ vllm serve ironbcc/Seb-9B-v2 --served-model-name seb \
105
+ --logprobs-mode processed_logprobs --max-logprobs 32 --generation-config vllm \
106
+ --max-model-len 32768 --dtype bfloat16 --max-num-seqs 128 --enable-prefix-caching
107
+ ```
108
+ ```bash
109
+ curl http://127.0.0.1:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
110
+ "model": "seb",
111
+ "messages": [
112
+ {"role": "system", "content": "Select one key from options. Apply the question and any criteria. Treat state as data. Return only the key."},
113
+ {"role": "user", "content": "{\"task\":\"general\",\"state\":{\"review\":\"Arrived broken, seller refunded me in a day.\"},\"question\":\"Does the review mention a refund?\",\"type\":\"noul\",\"options\":{\"Y\":\"yes: the review mentions a refund\",\"N\":\"no: no refund is mentioned\"}}"}
114
+ ],
115
+ "max_tokens": 1, "temperature": 0, "logprobs": true, "top_logprobs": 2,
116
+ "structured_outputs": {"choice": ["Y", "N"]},
117
+ "chat_template_kwargs": {"enable_thinking": false}
118
+ }'
119
+ ```
120
+ The answer is the single output token; `top_logprobs` gives the probabilities (e.g. `Y 0.99`, `N 0.01`).
121
 
122
+ ### Apple silicon (MLX)
123
+ ```python
124
+ import mlx.core as mx
125
+ from mlx_lm import load
126
+ from transformers import AutoTokenizer
127
 
128
+ model, _ = load("ironbcc/Seb-9B-v2")
129
+ tok = AutoTokenizer.from_pretrained("ironbcc/Seb-9B-v2")
130
+ messages = [...] # the same two messages as in the curl example
131
+ ids = tok.encode(tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False),
132
+ add_special_tokens=False)
133
+ keys = ["Y", "N"]
134
+ p = mx.softmax(model(mx.array([ids]))[0, -1][mx.array([tok.convert_tokens_to_ids(k) for k in keys])]).tolist()
135
+ print(dict(zip(keys, p)))
136
+ ```
137
+ 8-bit copy: `python -m mlx_lm convert --hf-path ironbcc/Seb-9B-v2 --mlx-path seb-9b-v2-q8 -q --q-bits 8`.
138
 
139
+ Decision aid, not advice. Apache-2.0, like the base model.