robertobertorb commited on
Commit
7a38849
·
verified ·
1 Parent(s): a694a6d

Add model card, LICENSE and NOTICE

Browse files
Files changed (3) hide show
  1. LICENSE +202 -0
  2. NOTICE +17 -0
  3. README.md +559 -0
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ decisor-4b
2
+ Copyright 2026 Under Serviços de Internet Ltda.
3
+ Developed by Under Labs (https://underlabs.ai).
4
+
5
+ This model is fine-tuned from Qwen/Qwen3.5-4B
6
+ (https://huggingface.co/Qwen/Qwen3.5-4B), licensed under the Apache
7
+ License, Version 2.0.
8
+
9
+ Modifications by Under Labs: fine-tuning and FP8 (mixed-precision)
10
+ quantization of the model weights, and changes to the tokenizer
11
+ configuration (added special tokens; the vocabulary is unchanged).
12
+
13
+ The serving runtime and its third-party notices are distributed
14
+ separately in the decisor repository
15
+ (https://github.com/underlabs-ai/decisor).
16
+
17
+ Licensed under the Apache License, Version 2.0. See the LICENSE file.
README.md CHANGED
@@ -1,3 +1,562 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ base_model: Qwen/Qwen3.5-4B
4
+ base_model_relation: finetune
5
+ language:
6
+ - en
7
+ - pt
8
+ library_name: sglang
9
+ pipeline_tag: text-generation
10
+ inference: false
11
+ tags:
12
+ - decisor
13
+ - typed-decisions
14
+ - brazilian-portuguese
15
+ - legal
16
+ - tax
17
+ - fp8
18
+ - compressed-tensors
19
  ---
20
+
21
+ # decisor-4b
22
+
23
+ [Under Labs](https://underlabs.ai) ·
24
+ [Code and examples](https://github.com/underlabs-ai/decisor)
25
+
26
+ *decisor-4b — quero-quero — Technical Preview (v0.1.0).*
27
+
28
+ We are developing a family of language models with a focus on
29
+ Brazilian Portuguese and Brazil's legal, tax and fiscal contexts.
30
+ decisor-4b is the first technical preview in this effort, built on
31
+ the **Qwen3.5-4B** checkpoint.
32
+
33
+ > [!IMPORTANT]
34
+ > **Read this first.** This is a technical preview (v0.1.0) for
35
+ > experimentation and integration, not a production-ready deployment.
36
+ > This release distributes the FP8 model for SGLang only, served with
37
+ > the patched SGLang image from the decisor repository. Option
38
+ > probabilities aren't calibrated estimates of correctness. Legal and
39
+ > tax outputs require review by a qualified professional against
40
+ > current authoritative sources.
41
+
42
+ The model was trained for typed decisions in English and Brazilian
43
+ Portuguese, with additional emphasis on Brazilian legal and tax
44
+ contexts. Training data and the training recipe aren't released.
45
+ Training was designed to preserve instruction following while
46
+ specializing the model for typed decisions. We evaluated free-form
47
+ generation on the BF16 reference checkpoint with a small automated
48
+ battery; we haven't established broader instruction-following quality
49
+ or tested generation on FP8.
50
+
51
+ The model supports two workloads:
52
+
53
+ - **Typed decisions:** picks one of the supplied options for a state
54
+ and question, and returns a probability distribution over all of
55
+ them, using option scores from a single prefill pass.
56
+ - **Instruction following:** responds to instructions and generates
57
+ text. The GitHub SDK and CLI in this release focus on typed
58
+ decisions.
59
+
60
+ | Focus area | Scope |
61
+ |---|---|
62
+ | **General-purpose decisions** | Classification and selection across varied tasks, including English-language tasks |
63
+ | **Brazilian Portuguese** | Additional training emphasis on Brazilian Portuguese language and context |
64
+ | **Brazilian legal and tax contexts** | Additional domain-focused training for Brazilian legal, tax and fiscal content |
65
+
66
+ The focus areas overlap. They describe training emphasis on a single
67
+ model, not separate models, heads or routing modes. Support for other
68
+ languages comes from Qwen3.5-4B, and performance varies by language,
69
+ domain and task.
70
+
71
+ Its nickname, quero-quero, comes from the southern lapwing, the
72
+ state bird of Rio Grande do Sul, Brazil.
73
+
74
+ ## Code and integration
75
+
76
+ [decisor on GitHub](https://github.com/underlabs-ai/decisor) provides a minimal
77
+ Python SDK, the patched SGLang image, and a CLI demo with examples
78
+ in English and Brazilian Portuguese.
79
+
80
+ Follow the GitHub quickstart to download the engine image, start SGLang,
81
+ and try the demo.
82
+
83
+ ## How it works
84
+
85
+ ```text
86
+ state + question + options → prefill → option scores → decision + probabilities
87
+ ```
88
+
89
+ The SDK formats the request using the model's decision prompt format
90
+ and reads option scores from the next-token logits produced during
91
+ prefill. The current engine request emits one token, but the SDK uses
92
+ the scores — not the generated text — to select an option.
93
+
94
+ Successful calls return one of the supplied option IDs and
95
+ probabilities normalized over the supplied options. If your task
96
+ allows an "insufficient information" outcome, include it among the
97
+ options and state when it should apply.
98
+
99
+ ## Decision prompt format
100
+
101
+ The SDK renders each request into the model's decision prompt format.
102
+ You can also use it directly, without the SDK. Rendered example:
103
+
104
+ ```text
105
+ You make decisions with exactly one letter. Read the state, apply the question, and pick from the listed options.
106
+ Semantics: a field absent from the state is unknown — it is neither true nor false. Use the insufficient-information option, when listed, only if a missing fact would change the decision; otherwise decide with the facts given.
107
+
108
+ STATE (JSON):
109
+ {"policy": "Refunds are allowed for unused items within 30 days of delivery.", "request": {"days_since_delivery": 12, "item_unused": true}}
110
+ Q: Is the refund allowed under this policy?
111
+ Options: (A) Refund allowed (B) Refund not allowed (C) Not enough information
112
+ A:
113
+ ```
114
+
115
+ Options are assigned letters in order — `(A)`, `(B)`, `(C)` — and
116
+ the prompt ends with the answer marker `\nA:` (not option A).
117
+
118
+ The SDK sends the rendered prompt to SGLang's `/generate` endpoint as
119
+ a raw completion. It doesn't apply the chat template or produce a
120
+ thinking trace on this path.
121
+
122
+ For each option letter, the SDK checks three candidate forms: `A`,
123
+ `" A"` (with a leading space) and `(A`, retaining only valid
124
+ single-token continuations in the prompt context. It combines the
125
+ logprobs of eligible forms for each option with logsumexp, then
126
+ normalizes across the supplied options.
127
+
128
+ Using this prompt directly requires reproducing that token selection
129
+ and scoring procedure. Sampling a letter doesn't reproduce the SDK's
130
+ aggregated decision or probability distribution. The implementation
131
+ is available in the
132
+ [decisor SDK](https://github.com/underlabs-ai/decisor).
133
+
134
+ ## Model details
135
+
136
+ | Field | Value |
137
+ |---|---|
138
+ | Model ID | `decisor-4b` |
139
+ | Version | 0.1.0 — technical preview |
140
+ | Publisher | Under Labs |
141
+ | Backbone | Fine-tuned from [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B), the original post-trained checkpoint |
142
+ | Format | compressed-tensors, FP8 dynamic (per-channel weights, per-token activations) — 128 tensors in FP8 (96 MLP + 32 full-attention); 427 tensors kept in BF16 (including Gated DeltaNet (GDN) layers, norms and embeddings). "FP8" doesn't mean 8-bit everywhere. |
143
+ | Weight size | 7.13 GB (7,125,997,144 bytes) |
144
+ | Evaluation context | We used an 8,192-token context for the FP8 evaluations below. |
145
+
146
+ Distributed format: FP8 only. This repository contains the model
147
+ weights, configuration, tokenizer and chat template. The v0.1.0
148
+ weights won't change; any change to the weights ships as a new
149
+ version. Pin `revision="v0.1.0"` to stay on this release.
150
+
151
+ ## Intended use
152
+
153
+ decisor-4b is intended for experimentation with classification and
154
+ selection tasks where the application supplies the decision criteria
155
+ and candidate outcomes.
156
+
157
+ Don't use this preview as the sole basis for consequential decisions
158
+ about people, including credit, employment, benefits or sanctions.
159
+ Legal and tax applications require review by a qualified professional
160
+ and verification against current authoritative sources.
161
+
162
+ ## Usage
163
+
164
+ The supported deployment path for this release is the patched SGLang
165
+ v0.5.20 image provided by the
166
+ [decisor repository](https://github.com/underlabs-ai/decisor).
167
+
168
+ The stock SGLang v0.5.20 loader doesn't correctly load this fused
169
+ checkpoint; the patched SGLang image includes the required loader fix
170
+ and the logprobs guard, which keeps the scheduler from crashing when
171
+ a `token_ids_logprob` request shares a batch with one that doesn't
172
+ ask for logprobs. Use it rather than the stock SGLang snippet from
173
+ Hugging Face's *Use this model* button. The published image is
174
+ `underlabsai/decisor-sglang:0.5.20`, digest
175
+ `sha256:60aee212ef25b0d303213b1c144b32f01403191b923d93d09a610770f8a6ad60`.
176
+
177
+ | GPU | Status |
178
+ |---|---|
179
+ | NVIDIA RTX 5090 (32 GB) | functional checks (demo and example requests) |
180
+ | NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB) | all reported measurements |
181
+
182
+ We haven't tested vLLM or direct Transformers inference for this
183
+ release.
184
+
185
+ On first startup, the engine downloads the model weights from this
186
+ Hugging Face repository and caches them for later runs.
187
+
188
+ ### Python
189
+
190
+ With the SDK installed from the repository's `./sdks/python`
191
+ directory, the engine running, and `SGLANG_API_KEY` available in your
192
+ shell (standalone Python doesn't load `.env` automatically):
193
+
194
+ ```python
195
+ import os
196
+ from decisor import decide
197
+
198
+ result = decide(
199
+ "http://127.0.0.1:8768",
200
+ api_key=os.environ["SGLANG_API_KEY"],
201
+ state={
202
+ "policy": "Refunds are allowed for unused items within 30 days of delivery.",
203
+ "request": {"days_since_delivery": 12, "item_unused": True},
204
+ },
205
+ question="Is the refund allowed under this policy?",
206
+ options=[
207
+ {"id": "approved", "text": "Refund allowed"},
208
+ {"id": "rejected", "text": "Refund not allowed"},
209
+ {"id": "insufficient", "text": "Not enough information"},
210
+ ],
211
+ )
212
+ print(result["decision"])
213
+ ```
214
+
215
+ Example `result` object (probabilities rounded for display):
216
+
217
+ ```json
218
+ {
219
+ "decision": "approved",
220
+ "options": [
221
+ {"id": "approved", "prob": 1.0},
222
+ {"id": "rejected", "prob": 0.0},
223
+ {"id": "insufficient", "prob": 0.0}
224
+ ]
225
+ }
226
+ ```
227
+
228
+ **Limits:** the SDK accepts 2 to 18 options per request and rejects
229
+ more; ties resolve to the first option. This is an SDK limit. We've
230
+ evaluated FP8 with up to 10 options. Failures raise an exception
231
+ (connection, HTTP status or timeout).
232
+
233
+ ## Evaluation
234
+
235
+ We ran all evaluations ourselves, under the conditions stated with
236
+ each result. The **BF16 reference checkpoint** is our fine-tuned
237
+ decisor model before FP8 quantization; we keep it internally and
238
+ don't distribute it. Each result names the checkpoint it was
239
+ measured on. We aren't releasing the exact adapted items and
240
+ internal evaluation tools for tc193, the development set, the
241
+ 1,621-question evaluation or the generation battery with this
242
+ preview. Links to the source datasets provide context, but aren't
243
+ enough to reproduce those evaluations exactly.
244
+
245
+ We start with decision quality on the FP8 model distributed here,
246
+ followed by BF16 reference checkpoint results and FP8 throughput.
247
+
248
+ ### tc193
249
+
250
+ tc193 is our internal 193-item adaptation of
251
+ [LegalBench BR](https://huggingface.co/datasets/celsowm/legalbench.br),
252
+ licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/),
253
+ used here for evaluation under our decision protocol (10 options per
254
+ item, in a fixed order, scored by option letter). The adapted items
255
+ aren't redistributed.
256
+
257
+ Seven items include the gold category name in the case text, which
258
+ may give away the answer. We kept all seven in the reported score;
259
+ one of them, `lbbr-632`, is still under review for exclusion. This is
260
+ a problem with the test items, not evidence of train/test
261
+ contamination, but it limits how much tc193 can tell you.
262
+
263
+ | Model | tc193 score | Runtime and conditions |
264
+ |---|---|---|
265
+ | **decisor-4b FP8** (this release) | **142/193 (73.58%)** | patched SGLang image (same patches as the image we distribute), NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB), concurrency 1 |
266
+ | decisor-4b BF16 reference checkpoint | 143/193 (74.09%) | same image, GPU, engine flags and concurrency as the FP8 row |
267
+ | Qwen3.5-4B (commit `851bf6e8`) | 74/193 (38.34%) | in-process Transformers harness, BF16, NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB), no thinking |
268
+ | Most-frequent-category baseline | 53/193 (27.46%) | always selects "Direito Tributário"; calculated from the answer key |
269
+
270
+ All three models answered the same 193 items, each with the same 10
271
+ options in the same order, using the same prompts and letter-based
272
+ scoring. The runtime differs between the Qwen and decisor rows.
273
+
274
+ We trained decisor on this decision prompt format. The comparison
275
+ shows how each model performs with that format. It doesn't show how
276
+ Qwen would do with a prompt suited to it, and it doesn't separate the
277
+ effect of training from the runtime difference.
278
+
279
+ Item by item, the BF16 reference checkpoint got 76 items right that
280
+ Qwen missed and missed 7 that Qwen got right (net +69). For FP8, the
281
+ counts are 75 and 7 (net +68). Between BF16 and FP8, three decisions
282
+ changed: two from right to wrong and one from wrong to right.
283
+
284
+ "Direito Tributário" is the most frequent answer (53 of 193) and
285
+ always appears as option J. Always choosing option A would score
286
+ 33/193 (17.10%).
287
+
288
+ ### BF16–FP8 decision agreement
289
+
290
+ We compared the stored predictions from the BF16 and FP8 runs.
291
+
292
+ | Evaluation set | Same answer | Different answer |
293
+ |---|---:|---:|
294
+ | tc193 | 190/193 | 3/193 |
295
+ | Internal development set (320 questions) | 316/320 | 4/320 |
296
+
297
+ Within each set, both checkpoints ran on the same patched SGLang
298
+ image, engine flags and concurrency. These counts compare the
299
+ selected options without using the answer keys. Agreement shows how
300
+ closely FP8 preserved the BF16 decisions; both checkpoints can agree
301
+ on an incorrect answer.
302
+
303
+ ### BF16 reference checkpoint results
304
+
305
+ We ran the evaluations in this table on the BF16 reference
306
+ checkpoint, except the Qwen3.5-4B row. "Adapted" means we used a
307
+ subset or our own decision protocol; those rows aren't official
308
+ full-benchmark scores.
309
+
310
+ | Benchmark / dataset | Correct | Accuracy | Evaluation setup |
311
+ |---|---:|---:|---|
312
+ | [JevBench-231](https://github.com/fstandhartinger/jevbench) | 177/231 | 76.62% | JevBench harness v1.4.1, frozen v1.2 protocol |
313
+ | [Gevva0-650](https://github.com/solvingSteve/Gevva0) | 649/650 | 99.85% | Public suite, revision `845e11cd` |
314
+ | BFCL (adapted) | 127/130 | 97.69% | Adapted |
315
+ | iSarcasmEval | 126/135 | 93.33% | Adapted |
316
+ | FinEntity | 80/92 | 86.96% | Adapted |
317
+ | SATA-Bench | 130/154 | 84.42% | Adapted |
318
+ | NLI4CT | 39/50 | 78.00% | Adapted |
319
+ | BPoMP | 262/340 | 77.06% | Adapted |
320
+ | WinoGrande | 37/50 | 74.00% | Adapted |
321
+ | GSM8K (adapted) | 72/100 | 72.00% | Adapted |
322
+ | HellaSwag | 35/50 | 70.00% | Adapted |
323
+ | CLadder | 35/50 | 70.00% | Adapted |
324
+ | MuSR | 32/50 | 64.00% | Adapted |
325
+ | cfcolor | 32/50 | 64.00% | Adapted |
326
+ | Amazon ESCI | 32/50 | 64.00% | Adapted |
327
+ | ANLI | 29/50 | 58.00% | Adapted |
328
+ | Humicroedit | 29/50 | 58.00% | Adapted |
329
+ | VAST | 26/50 | 52.00% | Adapted |
330
+ | CRUXEval (adapted) | 25/50 | 50.00% | Adapted |
331
+ | GPQA Diamond | 23/50 | 46.00% | Adapted |
332
+ | ARC-Challenge | 14/15 | 93.33% | Adapted |
333
+ | ARC-Easy | 13/15 | 86.67% | Adapted |
334
+ | MMLU | 12/15 | 80.00% | Adapted |
335
+ | SGD/SGD-X | 11/15 | 73.33% | Adapted |
336
+ | SimpleBench | 0/10 | 0.00% | Adapted |
337
+ | **Total — 23 adapted datasets** | **1,221/1,621** | **75.32%** | Adapted; up to 18 options per question |
338
+ | Qwen3.5-4B on the same 1,621 questions | 926/1,621 | 57.13% | Same questions, harness and protocol as the total above |
339
+
340
+ JevBench conditions: our decision prompt format and option scoring,
341
+ thinking disabled, serial, one pass, no retries; reproduced twice
342
+ with identical results. Self-measured — not a leaderboard entry.
343
+
344
+ Gevva0: ECE 0.0027, Brier 0.0036, OOD 120/120. The suite has no
345
+ official leaderboard, and 649/650 is near its ceiling. The ECE and
346
+ Brier scores describe calibration on this suite for the BF16
347
+ reference checkpoint; they don't establish calibration for the FP8
348
+ model or other tasks and datasets.
349
+
350
+ The 23 adapted datasets ran through the same in-process Transformers
351
+ harness for both models, with our decision prompt format and
352
+ scoring, without thinking. We trained decisor on this format and
353
+ used the same format to evaluate Qwen3.5-4B. We haven't tested Qwen
354
+ with a prompt optimized for it in these comparisons. The total gives
355
+ each question equal weight, so larger subsets contribute more. We
356
+ haven't evaluated the distributed FP8 model on this combined set.
357
+
358
+ We evaluated JevBench-231 and Gevva0-650 only on the BF16 reference
359
+ checkpoint. The evaluation route we used couldn't load the FP8
360
+ model; we haven't rerun them through SGLang.
361
+
362
+ BFCL adapted measures selection under our decision protocol, not
363
+ successful execution of real tools. The ARC, MMLU and SGD/SGD-X
364
+ subsets contain only 15 questions each and SimpleBench contains 10 —
365
+ don't generalize these scores to the full benchmarks.
366
+
367
+ ### Free-form generation
368
+
369
+ We evaluated the BF16 reference checkpoint on an internal free-form
370
+ generation battery: 72 prompts scored automatically on a 108-point
371
+ scale, with objective and keyword-based checks and partial credit.
372
+
373
+ | Model | Points out of 108 | Runtime |
374
+ |---|---:|---|
375
+ | decisor-4b BF16 reference checkpoint | 73.0 | Separate SGLang setup; memory and context settings weren't recorded |
376
+ | Qwen3.5-4B | 67.5 | SGLang; 32,768-token context |
377
+
378
+ Both runs used non-thinking mode with the same frozen generation
379
+ parameters (temperature 0). decisor scored 5.5 points higher on this
380
+ battery, but the runtime settings weren't fully matched. The scores
381
+ aren't a count of correct responses, and separate writing-rubric and
382
+ model-judge reviews aren't included.
383
+
384
+ We haven't run this evaluation on the distributed FP8 model.
385
+
386
+ ### Decision throughput — FP8 (SGLang)
387
+
388
+ We measured throughput with a dedicated evaluation harness under
389
+ controlled prefix-cache conditions. The repository disables the radix
390
+ cache by default, so these numbers don't describe the default setup.
391
+ We used the FP8 model on an NVIDIA RTX PRO 6000 Blackwell Server
392
+ Edition (96 GB) with a patched SGLang image carrying the same
393
+ patches as the image we distribute. This isn't an end-to-end
394
+ benchmark of the current Python SDK or CLI.
395
+
396
+ The workload was the 193 tc193 prompts at concurrency 1, with cache
397
+ conditions verified through per-request token accounting. The cold
398
+ result is one exploratory repetition with an initially empty prefix
399
+ cache. For the warm result, we report the median of three repetitions
400
+ with a prewarmed prefix cache, without restarting the engine between
401
+ them.
402
+
403
+ | Condition (FP8) | Valid decisions/s |
404
+ |---|---:|
405
+ | cold, concurrency 1 (exploratory, 1 rep) | 33.7 |
406
+ | warm, concurrency 1 (median of 3) | 49.5 |
407
+
408
+ Valid-decision throughput excludes requests whose option scores tied
409
+ after rounding to four decimal places.
410
+
411
+ Cold and warm describe the cache state during measurement.
412
+
413
+ <details>
414
+ <summary>Measurement protocol</summary>
415
+
416
+ Across the four measurement windows, 772 requests completed without
417
+ failure or timeout. Of these, 768 counted toward valid-decision
418
+ throughput; four were excluded under the tie rule above.
419
+
420
+ The engine ran with `--mem-fraction-static 0.35 --max-running-requests 16 --context-length 8192` for these windows.
421
+
422
+ Peak VRAM usage across these windows was 37,135–37,249 MiB.
423
+ This is configuration-specific memory usage, not a minimum VRAM
424
+ requirement.
425
+
426
+ </details>
427
+
428
+ ## Limitations
429
+
430
+ ### What we tested
431
+
432
+ - FP8 inference with the patched SGLang image on an NVIDIA RTX 5090
433
+ (32 GB) and an RTX PRO 6000 Blackwell Server Edition (96 GB).
434
+ - SDK and CLI integration with the running FP8 model, including four
435
+ example requests in English and Brazilian Portuguese that produced
436
+ their expected decisions (functional checks, not a quality
437
+ benchmark).
438
+ - FP8 decision quality on the 193-item tc193 adaptation, subject to
439
+ the evaluation caveats above.
440
+ - BF16–FP8 decision agreement on tc193 and a 320-question
441
+ development set.
442
+ - FP8 throughput on the RTX PRO 6000 under the specific harness,
443
+ workload and cache conditions reported above.
444
+
445
+ ### Evaluation boundaries
446
+
447
+ - We haven't tested smaller GPUs. Weight-file size alone doesn't
448
+ show runtime compatibility or sufficient VRAM.
449
+ - We measured JevBench-231, Gevva0-650, the 23-dataset table and the
450
+ generation battery on the BF16 reference checkpoint.
451
+ - We haven't repeated our earlier end-to-end testing of the BF16
452
+ setup in full for FP8. The current integration checks don't
453
+ replace it.
454
+ - Our FP8 evaluations used 10 options per item in tc193 and four in
455
+ an internal development set of 320 questions; we report agreement,
456
+ not accuracy, for that set. We haven't evaluated FP8 with more
457
+ options.
458
+ - We used an 8,192-token context for the FP8 evaluations reported
459
+ here. These evaluations don't establish quality at longer
460
+ contexts.
461
+ - The tools we used to create the FP8 weights included a dependency
462
+ combination outside their declared support ranges. This concerns
463
+ the conversion environment, which is separate from the patched
464
+ SGLang image used to serve the model.
465
+ - We haven't run a dedicated tax evaluation. The tc193 results cover
466
+ legal tasks only and don't show how the model performs on tax
467
+ content.
468
+ - We compared Qwen3.5-4B with decisor on typed decisions and
469
+ free-form generation. The decision evaluations use our decision
470
+ prompt format; we trained decisor on this format and used the same
471
+ format to evaluate Qwen3.5-4B. We haven't tested Qwen with a
472
+ prompt optimized for it in these comparisons. The 1,621-question
473
+ comparison used the same evaluation harness for both models; the
474
+ tc193 and generation comparisons used different runtime setups,
475
+ described alongside their results.
476
+
477
+ ### Behavioral limitations
478
+
479
+ Option probabilities aren't calibrated. The model can be confidently
480
+ wrong, and its decisions can change with wording, language and how
481
+ the input is laid out.
482
+
483
+ In small exploratory tests, changing the field order or the policy
484
+ wording changed some decisions. In one case, instructions hidden in
485
+ the input data flipped a correct decision to a wrong one. These tests
486
+ weren't systematic, so they don't tell you how often this happens in
487
+ practice.
488
+
489
+ Treat instructions inside untrusted input as a prompt-injection risk.
490
+ Keeping your policy separate from user content makes prompts clearer,
491
+ but the model won't always respect that boundary.
492
+
493
+ Write options that are clearly distinct, say when the
494
+ insufficient-information option applies, and test the model on your
495
+ own representative and adversarial cases. Keeping the field order
496
+ fixed doesn't make the model insensitive to it.
497
+
498
+ In the C=1 serving benchmark, FP8 scored 142/192 in the initially
499
+ empty-cache window and 144/192 in each of the three prewarmed
500
+ windows. One tied-score request was excluded from each FP8 window.
501
+ The BF16 reference checkpoint scored 143/193 in all four windows,
502
+ with no ties excluded. These counts use the serving benchmark's
503
+ tie-exclusion rule. They are separate from the 142/193 FP8 quality
504
+ result above and aren't enough to establish a general accuracy
505
+ advantage over BF16.
506
+
507
+ Generated responses can include fabricated facts, legal citations or
508
+ tax guidance. Check them against current authoritative sources.
509
+
510
+ ## License and attribution
511
+
512
+ | Component | License / attribution |
513
+ |---|---|
514
+ | Model weights | Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). |
515
+ | Python SDK and integration code | Apache-2.0. See the [decisor repository](https://github.com/underlabs-ai/decisor). |
516
+ | Backbone | Fine-tuned from [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B), licensed under the Apache License, Version 2.0. |
517
+
518
+ The patched SGLang image includes a fused-checkpoint loader fix and the
519
+ logprobs guard from SGLang
520
+ [PR #35052](https://github.com/sgl-project/sglang/pull/35052), with an
521
+ in-build regression test from
522
+ [PR #35852](https://github.com/sgl-project/sglang/pull/35852).
523
+ Upstream license files are preserved.
524
+
525
+ Copyright 2026 Under Serviços de Internet Ltda.
526
+
527
+ Developed by [Under Labs](https://underlabs.ai).
528
+ Provided as-is, without a commitment to user support.
529
+
530
+ ## Citation
531
+
532
+ ```bibtex
533
+ @misc{decisor4b2026,
534
+ title = {decisor-4b},
535
+ author = {{Under Labs}},
536
+ year = {2026},
537
+ url = {https://huggingface.co/underlabs/decisor-4b},
538
+ note = {Technical preview, version 0.1.0}
539
+ }
540
+ ```
541
+
542
+ For the SDK and serving integration:
543
+
544
+ ```bibtex
545
+ @software{decisor2026,
546
+ title = {decisor: Python SDK and SGLang runtime for decisor-4b},
547
+ author = {{Under Labs}},
548
+ year = {2026},
549
+ url = {https://github.com/underlabs-ai/decisor},
550
+ note = {Model: https://huggingface.co/underlabs/decisor-4b}
551
+ }
552
+ ```
553
+
554
+ ## Contact
555
+
556
+ For non-sensitive bug reports and reproducible model-behavior issues,
557
+ use [GitHub Issues](https://github.com/underlabs-ai/decisor/issues).
558
+ Do not include API keys, personal data or confidential inputs.
559
+
560
+ To report a security vulnerability, use
561
+ [GitHub private vulnerability reporting](https://github.com/underlabs-ai/decisor/security/advisories/new).
562
+ Do not open a public issue.