decisio 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- decisio-0.1.1/LICENSE +202 -0
- decisio-0.1.1/NOTICE +2 -0
- decisio-0.1.1/PKG-INFO +190 -0
- decisio-0.1.1/README.md +156 -0
- decisio-0.1.1/pyproject.toml +73 -0
- decisio-0.1.1/setup.cfg +4 -0
- decisio-0.1.1/src/decisio/__init__.py +13 -0
- decisio-0.1.1/src/decisio/bench/__init__.py +3 -0
- decisio-0.1.1/src/decisio/bench/banking77_labels.json +81 -0
- decisio-0.1.1/src/decisio/bench/di_cal.py +87 -0
- decisio-0.1.1/src/decisio/bench/di_report.py +68 -0
- decisio-0.1.1/src/decisio/bench/di_rows.py +48 -0
- decisio-0.1.1/src/decisio/bench/jevbench_v15.py +158 -0
- decisio-0.1.1/src/decisio/bench/latency.py +268 -0
- decisio-0.1.1/src/decisio/names.py +68 -0
- decisio-0.1.1/src/decisio/readout/__init__.py +3 -0
- decisio-0.1.1/src/decisio/readout/calibration.py +123 -0
- decisio-0.1.1/src/decisio/readout/debias.py +158 -0
- decisio-0.1.1/src/decisio/readout/intent_head.py +191 -0
- decisio-0.1.1/src/decisio/readout/letters.py +174 -0
- decisio-0.1.1/src/decisio/serve/__init__.py +3 -0
- decisio-0.1.1/src/decisio/serve/abstention.py +144 -0
- decisio-0.1.1/src/decisio/serve/client.py +65 -0
- decisio-0.1.1/src/decisio/serve/hf_letters.py +159 -0
- decisio-0.1.1/src/decisio/serve/hidden_engine.py +310 -0
- decisio-0.1.1/src/decisio/serve/image_engine.py +148 -0
- decisio-0.1.1/src/decisio/serve/make_text_only.py +63 -0
- decisio-0.1.1/src/decisio/serve/systemone.py +943 -0
- decisio-0.1.1/src/decisio/serve/systemone_conformance.py +332 -0
- decisio-0.1.1/src/decisio/serve/tasks.py +206 -0
- decisio-0.1.1/src/decisio/serve/temperature.py +29 -0
- decisio-0.1.1/src/decisio/serve/vllm_engine.py +987 -0
- decisio-0.1.1/src/decisio/vllm_plugin/__init__.py +94 -0
- decisio-0.1.1/src/decisio/vllm_plugin/hidden.py +87 -0
- decisio-0.1.1/src/decisio/vllm_plugin/models.py +40 -0
- decisio-0.1.1/src/decisio/vllm_plugin/weights.py +17 -0
- decisio-0.1.1/src/decisio.egg-info/PKG-INFO +190 -0
- decisio-0.1.1/src/decisio.egg-info/SOURCES.txt +40 -0
- decisio-0.1.1/src/decisio.egg-info/dependency_links.txt +1 -0
- decisio-0.1.1/src/decisio.egg-info/entry_points.txt +2 -0
- decisio-0.1.1/src/decisio.egg-info/requires.txt +26 -0
- decisio-0.1.1/src/decisio.egg-info/top_level.txt +1 -0
decisio-0.1.1/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.
|
decisio-0.1.1/NOTICE
ADDED
decisio-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: decisio
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: A prefill-only decision server on vLLM: typed questions about a state, a probability distribution per question
|
|
5
|
+
Author: Amin Roudaki
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Repository, https://github.com/aminry/decisio
|
|
8
|
+
Requires-Python: <3.13,>=3.12
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Requires-Dist: fastapi>=0.133
|
|
13
|
+
Requires-Dist: numpy>=2.2
|
|
14
|
+
Requires-Dist: pillow>=11
|
|
15
|
+
Requires-Dist: psutil>=7
|
|
16
|
+
Requires-Dist: pydantic>=2.12
|
|
17
|
+
Requires-Dist: python-multipart>=0.0.20
|
|
18
|
+
Requires-Dist: safetensors>=0.6.2
|
|
19
|
+
Requires-Dist: scipy>=1.15
|
|
20
|
+
Requires-Dist: torch>=2.13
|
|
21
|
+
Requires-Dist: torchvision>=0.28
|
|
22
|
+
Requires-Dist: transformers>=5.10.4
|
|
23
|
+
Requires-Dist: uvicorn>=0.34
|
|
24
|
+
Provides-Extra: serve
|
|
25
|
+
Requires-Dist: vllm==0.30.0; sys_platform == "linux" and extra == "serve"
|
|
26
|
+
Provides-Extra: bench
|
|
27
|
+
Requires-Dist: httpx>=0.28; extra == "bench"
|
|
28
|
+
Requires-Dist: typesafe-sdk==0.7.0; extra == "bench"
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: httpx>=0.28; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest==9.1.1; extra == "dev"
|
|
32
|
+
Requires-Dist: ruff==0.14.0; extra == "dev"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
36
|
+
<!-- SPDX-FileCopyrightText: Copyright contributors to the decisio project -->
|
|
37
|
+
|
|
38
|
+
# Decisio
|
|
39
|
+
|
|
40
|
+
**A decision server: typed questions about a piece of text, a probability for every option, one forward pass per question.**
|
|
41
|
+
|
|
42
|
+
Decisio serves a frozen open model, Qwen3.6-35B-A3B, on vLLM and reads its answer to a closed question from the option letters' logits.
|
|
43
|
+
No text is generated.
|
|
44
|
+
A request carries a state (a ticket, a document, a record) and one or more questions of three types: yes/no, a choice among named options, or a score on an ordered scale.
|
|
45
|
+
The answer to each question is a distribution over its options, and the request format is TypeSafe's System One wire format, so existing clients work unchanged.
|
|
46
|
+
|
|
47
|
+
What ships here is code, recipes and evaluation records.
|
|
48
|
+
No trained weights: every measured answer comes from the official checkpoint.
|
|
49
|
+
`EVAL_CARD.md` states every number, what it was measured on, and what was fitted on what.
|
|
50
|
+
|
|
51
|
+
## What it does
|
|
52
|
+
|
|
53
|
+
| | |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| Question types | yes/no (`noul`), choice among up to 255 options with descriptions, score on an ordered scale |
|
|
56
|
+
| Many questions per request | the state is prefilled once and shared through vLLM's prefix cache |
|
|
57
|
+
| Probabilities | a distribution per question, with one fitted global temperature; per-task calibration from labelled examples |
|
|
58
|
+
| Task registration | `POST /v1/tasks`: from labelled examples of one recurring question the server fits per-task calibration and, for option lists of 10 or more, a linear head on the model's hidden state; guide in `docs/tasks.md` |
|
|
59
|
+
| Abstention | an opt-in per-task threshold on a declared "can't tell" option (`POST /v1/abstention/tasks`) |
|
|
60
|
+
| Image input | photos in the state, served by a second engine on the same card (`--image-model`) |
|
|
61
|
+
| Rendering rules | enumerated option keys are hidden, snake_case labels are shown as words, ties resolve by key so the answer never depends on the order keys arrive in |
|
|
62
|
+
| Determinism | one request at a time, on the same card: bit-identical answers when the server's request history is the same, and repeats agreed to 1.2e-7 in probability; identical requests sent inside one batch are not the same forward pass and differed by up to 0.59 in a label probability (`EVAL_CARD.md` section 4); the serving gates in `tests/gpu` check the one-at-a-time case |
|
|
63
|
+
| Context | up to 32,768 tokens of state |
|
|
64
|
+
|
|
65
|
+
Latency and cost on one RTX PRO 6000, from `EVAL_CARD.md`: about 28 ms server time for one question, 2.7 to 5.4 ms per question when many questions share a state, and about $0.001 to $0.012 per 1,000 decisions at $1.50 per card-hour.
|
|
66
|
+
|
|
67
|
+
## Quickstart
|
|
68
|
+
|
|
69
|
+
Requirements: Linux, one NVIDIA card with 96 GB (measured on an RTX PRO 6000 Blackwell) and a driver that supports CUDA 13.0 (the runtime `uv.lock` pins), Python 3.12, [uv](https://docs.astral.sh/uv/).
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
git clone https://github.com/aminry/decisio
|
|
73
|
+
cd decisio
|
|
74
|
+
uv sync --extra serve --frozen
|
|
75
|
+
uv run python -m decisio.serve.vllm_engine --model Qwen/Qwen3.6-35B-A3B-FP8 --model-class hidden-readout
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The first start downloads the checkpoint (about 36 GB) and warms the engine.
|
|
79
|
+
The decisio plugin registers its model classes with vLLM through an entry point, so vLLM 0.30.0 loads them without any patch.
|
|
80
|
+
`patches/` holds an optional latency patch series, off by default; see `patches/README.md`.
|
|
81
|
+
|
|
82
|
+
Ask a question:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
curl http://127.0.0.1:8000/v1/systemone -H 'Content-Type: application/json' -d '{
|
|
86
|
+
"state": "Hi, since this morning none of our 40 staff can log in to the dashboard. We get \"session expired\" right after entering the password. Payroll is due today.",
|
|
87
|
+
"questions": {
|
|
88
|
+
"urgent": {"type": "noul", "instructions": "Does this ticket need a response within the hour?"},
|
|
89
|
+
"category": {"type": "choice", "instructions": "Which team should handle this ticket?",
|
|
90
|
+
"criteria": {"billing": "Invoices, payments, refunds", "access": "Login, passwords, permissions", "bug": "The product behaves wrongly", "other": null}},
|
|
91
|
+
"impact": {"type": "score", "instructions": "Rate the business impact using only the reported facts.",
|
|
92
|
+
"criteria": ["No function impaired", "One user impaired, with a workaround", "Many users blocked from a core function", "Data loss or legal exposure"]}
|
|
93
|
+
}
|
|
94
|
+
}'
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Response, abridged (the values the first GPU start returned, rounded):
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
{"answers": {
|
|
101
|
+
"urgent": {"type": "noul", "noul": 0.90},
|
|
102
|
+
"category": {"type": "choice", "choice": "access", "probabilities": {"billing": 0.03, "access": 0.79, "bug": 0.16, "other": 0.02}},
|
|
103
|
+
"impact": {"type": "score", "score": 2.0, "probabilities": {"0": 0.00, "1": 0.01, "2": 0.96, "3": 0.02}}}}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Your probabilities will differ, here by up to 0.08: the three questions of one request are scored in one batch, and on this stack a question's probabilities move with what else is in its batch and with what the server answered before (a fresh clone's first start gave `access` 0.87, `runs/2026-10-01_quickstart-public`; `EVAL_CARD.md` section 4). The choices do not change.
|
|
107
|
+
|
|
108
|
+
## Teach it your question in ten examples
|
|
109
|
+
|
|
110
|
+
The model is frozen, but the server can learn one recurring question from your own labelled examples: it fits a per-task calibration and, for 10 or more options, a small head on the model's hidden state, each kept only if cross-validation on your examples shows a gain.
|
|
111
|
+
With 10 labelled examples per intent, accuracy on held-out test items rose from 0.740 to 0.847 on BANKING77 (77 intents) and from 0.820 to 0.893 on CLINC150 (150 intents), against the same model unregistered.
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
curl http://127.0.0.1:8000/v1/tasks -H 'Content-Type: application/json' -d @examples/tasks/examples.json
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
`docs/tasks.md` walks through it and states what each number was measured on; `examples/tasks/` runs it on a laptop against the CPU stand-in.
|
|
118
|
+
|
|
119
|
+
## Run with Docker
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
uv build --wheel # the image installs this wheel
|
|
123
|
+
docker compose up --build # needs the NVIDIA Container Toolkit and a 96 GB card
|
|
124
|
+
curl http://127.0.0.1:8000/health # answers once the first start has fetched the checkpoint
|
|
125
|
+
```
|
|
126
|
+
The first start downloads the checkpoint (about 36 GB) into the `decisio-data` volume; it is never part of the image.
|
|
127
|
+
The container runs as a non-root user, compose publishes the port on 127.0.0.1 only, and `Dockerfile` and `compose.yaml` explain the rest.
|
|
128
|
+
Release images go to `ghcr.io/aminry/decisio`, with their digest in the release notes.
|
|
129
|
+
First GPU start (2026-10-01, one RTX PRO 6000 Blackwell, image built on the machine from the `Dockerfile`): healthy in 651 s including the checkpoint download and in 206 s from the cached volume; the example request below and the conformance gates C2 to C4 pass against the container (`runs/2026-10-01_docker-first-gpu-start`); the image published with v0.1.0 repeated the start from its digest (healthy in 223 s with the checkpoint cached, example and conformance pass, `pushed_image_0.1.0` in that run).
|
|
130
|
+
|
|
131
|
+
## Without a GPU
|
|
132
|
+
|
|
133
|
+
The unit tests and the CPU stand-in engine run on any machine:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
uv sync --extra dev --frozen
|
|
137
|
+
uv run pytest
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`--backend hf` serves a small Hugging Face model on the CPU for development of the routes; it is not the measured system.
|
|
141
|
+
|
|
142
|
+
A laptop version of the same model, packaged for [Ollama](https://ollama.com/aminroudaki/decisio)'s decision route, exists as `ollama pull aminroudaki/decisio`.
|
|
143
|
+
Ollama builds its own prompt and applies no calibration, so its numbers are the ones on that page, not the ones here.
|
|
144
|
+
|
|
145
|
+
## How it performs
|
|
146
|
+
|
|
147
|
+
All numbers are on the served default described in `EVAL_CARD.md`, measured privately with the public harnesses; nothing here is a leaderboard score.
|
|
148
|
+
|
|
149
|
+
| Measure | Result |
|
|
150
|
+
| --- | --- |
|
|
151
|
+
| JevBench, 231 published items, accuracy by tier | easy 1.000, standard 0.972, hard 0.694 |
|
|
152
|
+
| Decision Index 0.2.1, four benchmarks | BANKING77 macro-F1 0.731, CLINC150+OOS 0.814, GPQA Diamond 0.454, MMLU-Pro 0.609 |
|
|
153
|
+
| Intent heads from 10 labelled examples per intent | BANKING77 0.847, CLINC150 0.893 |
|
|
154
|
+
| Image input, ImajevBench v2.0-lite | 0.791 on the 230 answerable items |
|
|
155
|
+
| Latency, one question | about 28 ms server time |
|
|
156
|
+
|
|
157
|
+
Where it stands: on the public harnesses this frozen model is the most accurate open one-pass system we know of on the hard tier, and it is behind TypeSafe's Jev on hard knowledge questions by several points and on intent taxonomies without labelled examples.
|
|
158
|
+
With 10 labelled examples per intent, registered heads reach accuracy 0.847 on BANKING77 (150 held-out items) and 0.893 on CLINC150 (100 held-out items), means of three draws.
|
|
159
|
+
They use labelled examples, so those figures are not comparable with zero-shot systems.
|
|
160
|
+
Calibration trails too: hard-tier ECE on JevBench is 0.059, above the 0.05 we aimed for.
|
|
161
|
+
`EVAL_CARD.md` has the full tables, the calibration figures, and the three disclosures about what was fitted on what.
|
|
162
|
+
|
|
163
|
+
## Repository layout
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
src/decisio/serve/ the server: /v1/systemone, tasks, abstention, temperature, image route, conformance
|
|
167
|
+
src/decisio/readout/ the letters readout, calibration and the intent head (reference implementations)
|
|
168
|
+
src/decisio/vllm_plugin/ the vLLM entry point and the two model classes
|
|
169
|
+
src/decisio/bench/ benchmark scoring (JevBench v1.5 open-set reading, Decision Index reports)
|
|
170
|
+
benchmarks/ scripts that run the public harnesses against a server
|
|
171
|
+
patches/ optional vLLM patch series, off by default
|
|
172
|
+
Dockerfile compose.yaml docker/ the server image (vLLM 0.30.0 release image plus the wheel)
|
|
173
|
+
tests/unit/ tests/gpu/ CPU tests run on every pull request; GPU tests run nightly (pytest -m gpu)
|
|
174
|
+
runs/ evaluation records: a manifest, per-item results and hashes per run
|
|
175
|
+
docs/ the task-registration guide and specification, design notes
|
|
176
|
+
examples/tasks/ a runnable task-registration walk-through (CPU stand-in)
|
|
177
|
+
EVAL_CARD.md what was measured, on what, and what was fitted on what
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Contributing
|
|
181
|
+
|
|
182
|
+
See `CONTRIBUTING.md`.
|
|
183
|
+
Pull requests need a DCO sign-off (`git commit -s`), pass the CPU tests and lint, and are reviewed by a maintainer before merge.
|
|
184
|
+
Security issues go through GitHub's private vulnerability reporting, as described in `SECURITY.md`.
|
|
185
|
+
|
|
186
|
+
## Licence
|
|
187
|
+
|
|
188
|
+
Apache-2.0 (`LICENSE`, `NOTICE`).
|
|
189
|
+
The model weights are Alibaba's Qwen3.6-35B-A3B under Apache-2.0 and are downloaded, not redistributed.
|
|
190
|
+
`THIRD-PARTY.md` lists everything else this project builds on.
|
decisio-0.1.1/README.md
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- SPDX-FileCopyrightText: Copyright contributors to the decisio project -->
|
|
3
|
+
|
|
4
|
+
# Decisio
|
|
5
|
+
|
|
6
|
+
**A decision server: typed questions about a piece of text, a probability for every option, one forward pass per question.**
|
|
7
|
+
|
|
8
|
+
Decisio serves a frozen open model, Qwen3.6-35B-A3B, on vLLM and reads its answer to a closed question from the option letters' logits.
|
|
9
|
+
No text is generated.
|
|
10
|
+
A request carries a state (a ticket, a document, a record) and one or more questions of three types: yes/no, a choice among named options, or a score on an ordered scale.
|
|
11
|
+
The answer to each question is a distribution over its options, and the request format is TypeSafe's System One wire format, so existing clients work unchanged.
|
|
12
|
+
|
|
13
|
+
What ships here is code, recipes and evaluation records.
|
|
14
|
+
No trained weights: every measured answer comes from the official checkpoint.
|
|
15
|
+
`EVAL_CARD.md` states every number, what it was measured on, and what was fitted on what.
|
|
16
|
+
|
|
17
|
+
## What it does
|
|
18
|
+
|
|
19
|
+
| | |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| Question types | yes/no (`noul`), choice among up to 255 options with descriptions, score on an ordered scale |
|
|
22
|
+
| Many questions per request | the state is prefilled once and shared through vLLM's prefix cache |
|
|
23
|
+
| Probabilities | a distribution per question, with one fitted global temperature; per-task calibration from labelled examples |
|
|
24
|
+
| Task registration | `POST /v1/tasks`: from labelled examples of one recurring question the server fits per-task calibration and, for option lists of 10 or more, a linear head on the model's hidden state; guide in `docs/tasks.md` |
|
|
25
|
+
| Abstention | an opt-in per-task threshold on a declared "can't tell" option (`POST /v1/abstention/tasks`) |
|
|
26
|
+
| Image input | photos in the state, served by a second engine on the same card (`--image-model`) |
|
|
27
|
+
| Rendering rules | enumerated option keys are hidden, snake_case labels are shown as words, ties resolve by key so the answer never depends on the order keys arrive in |
|
|
28
|
+
| Determinism | one request at a time, on the same card: bit-identical answers when the server's request history is the same, and repeats agreed to 1.2e-7 in probability; identical requests sent inside one batch are not the same forward pass and differed by up to 0.59 in a label probability (`EVAL_CARD.md` section 4); the serving gates in `tests/gpu` check the one-at-a-time case |
|
|
29
|
+
| Context | up to 32,768 tokens of state |
|
|
30
|
+
|
|
31
|
+
Latency and cost on one RTX PRO 6000, from `EVAL_CARD.md`: about 28 ms server time for one question, 2.7 to 5.4 ms per question when many questions share a state, and about $0.001 to $0.012 per 1,000 decisions at $1.50 per card-hour.
|
|
32
|
+
|
|
33
|
+
## Quickstart
|
|
34
|
+
|
|
35
|
+
Requirements: Linux, one NVIDIA card with 96 GB (measured on an RTX PRO 6000 Blackwell) and a driver that supports CUDA 13.0 (the runtime `uv.lock` pins), Python 3.12, [uv](https://docs.astral.sh/uv/).
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
git clone https://github.com/aminry/decisio
|
|
39
|
+
cd decisio
|
|
40
|
+
uv sync --extra serve --frozen
|
|
41
|
+
uv run python -m decisio.serve.vllm_engine --model Qwen/Qwen3.6-35B-A3B-FP8 --model-class hidden-readout
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The first start downloads the checkpoint (about 36 GB) and warms the engine.
|
|
45
|
+
The decisio plugin registers its model classes with vLLM through an entry point, so vLLM 0.30.0 loads them without any patch.
|
|
46
|
+
`patches/` holds an optional latency patch series, off by default; see `patches/README.md`.
|
|
47
|
+
|
|
48
|
+
Ask a question:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
curl http://127.0.0.1:8000/v1/systemone -H 'Content-Type: application/json' -d '{
|
|
52
|
+
"state": "Hi, since this morning none of our 40 staff can log in to the dashboard. We get \"session expired\" right after entering the password. Payroll is due today.",
|
|
53
|
+
"questions": {
|
|
54
|
+
"urgent": {"type": "noul", "instructions": "Does this ticket need a response within the hour?"},
|
|
55
|
+
"category": {"type": "choice", "instructions": "Which team should handle this ticket?",
|
|
56
|
+
"criteria": {"billing": "Invoices, payments, refunds", "access": "Login, passwords, permissions", "bug": "The product behaves wrongly", "other": null}},
|
|
57
|
+
"impact": {"type": "score", "instructions": "Rate the business impact using only the reported facts.",
|
|
58
|
+
"criteria": ["No function impaired", "One user impaired, with a workaround", "Many users blocked from a core function", "Data loss or legal exposure"]}
|
|
59
|
+
}
|
|
60
|
+
}'
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Response, abridged (the values the first GPU start returned, rounded):
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
{"answers": {
|
|
67
|
+
"urgent": {"type": "noul", "noul": 0.90},
|
|
68
|
+
"category": {"type": "choice", "choice": "access", "probabilities": {"billing": 0.03, "access": 0.79, "bug": 0.16, "other": 0.02}},
|
|
69
|
+
"impact": {"type": "score", "score": 2.0, "probabilities": {"0": 0.00, "1": 0.01, "2": 0.96, "3": 0.02}}}}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Your probabilities will differ, here by up to 0.08: the three questions of one request are scored in one batch, and on this stack a question's probabilities move with what else is in its batch and with what the server answered before (a fresh clone's first start gave `access` 0.87, `runs/2026-10-01_quickstart-public`; `EVAL_CARD.md` section 4). The choices do not change.
|
|
73
|
+
|
|
74
|
+
## Teach it your question in ten examples
|
|
75
|
+
|
|
76
|
+
The model is frozen, but the server can learn one recurring question from your own labelled examples: it fits a per-task calibration and, for 10 or more options, a small head on the model's hidden state, each kept only if cross-validation on your examples shows a gain.
|
|
77
|
+
With 10 labelled examples per intent, accuracy on held-out test items rose from 0.740 to 0.847 on BANKING77 (77 intents) and from 0.820 to 0.893 on CLINC150 (150 intents), against the same model unregistered.
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
curl http://127.0.0.1:8000/v1/tasks -H 'Content-Type: application/json' -d @examples/tasks/examples.json
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
`docs/tasks.md` walks through it and states what each number was measured on; `examples/tasks/` runs it on a laptop against the CPU stand-in.
|
|
84
|
+
|
|
85
|
+
## Run with Docker
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
uv build --wheel # the image installs this wheel
|
|
89
|
+
docker compose up --build # needs the NVIDIA Container Toolkit and a 96 GB card
|
|
90
|
+
curl http://127.0.0.1:8000/health # answers once the first start has fetched the checkpoint
|
|
91
|
+
```
|
|
92
|
+
The first start downloads the checkpoint (about 36 GB) into the `decisio-data` volume; it is never part of the image.
|
|
93
|
+
The container runs as a non-root user, compose publishes the port on 127.0.0.1 only, and `Dockerfile` and `compose.yaml` explain the rest.
|
|
94
|
+
Release images go to `ghcr.io/aminry/decisio`, with their digest in the release notes.
|
|
95
|
+
First GPU start (2026-10-01, one RTX PRO 6000 Blackwell, image built on the machine from the `Dockerfile`): healthy in 651 s including the checkpoint download and in 206 s from the cached volume; the example request below and the conformance gates C2 to C4 pass against the container (`runs/2026-10-01_docker-first-gpu-start`); the image published with v0.1.0 repeated the start from its digest (healthy in 223 s with the checkpoint cached, example and conformance pass, `pushed_image_0.1.0` in that run).
|
|
96
|
+
|
|
97
|
+
## Without a GPU
|
|
98
|
+
|
|
99
|
+
The unit tests and the CPU stand-in engine run on any machine:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
uv sync --extra dev --frozen
|
|
103
|
+
uv run pytest
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
`--backend hf` serves a small Hugging Face model on the CPU for development of the routes; it is not the measured system.
|
|
107
|
+
|
|
108
|
+
A laptop version of the same model, packaged for [Ollama](https://ollama.com/aminroudaki/decisio)'s decision route, exists as `ollama pull aminroudaki/decisio`.
|
|
109
|
+
Ollama builds its own prompt and applies no calibration, so its numbers are the ones on that page, not the ones here.
|
|
110
|
+
|
|
111
|
+
## How it performs
|
|
112
|
+
|
|
113
|
+
All numbers are on the served default described in `EVAL_CARD.md`, measured privately with the public harnesses; nothing here is a leaderboard score.
|
|
114
|
+
|
|
115
|
+
| Measure | Result |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| JevBench, 231 published items, accuracy by tier | easy 1.000, standard 0.972, hard 0.694 |
|
|
118
|
+
| Decision Index 0.2.1, four benchmarks | BANKING77 macro-F1 0.731, CLINC150+OOS 0.814, GPQA Diamond 0.454, MMLU-Pro 0.609 |
|
|
119
|
+
| Intent heads from 10 labelled examples per intent | BANKING77 0.847, CLINC150 0.893 |
|
|
120
|
+
| Image input, ImajevBench v2.0-lite | 0.791 on the 230 answerable items |
|
|
121
|
+
| Latency, one question | about 28 ms server time |
|
|
122
|
+
|
|
123
|
+
Where it stands: on the public harnesses this frozen model is the most accurate open one-pass system we know of on the hard tier, and it is behind TypeSafe's Jev on hard knowledge questions by several points and on intent taxonomies without labelled examples.
|
|
124
|
+
With 10 labelled examples per intent, registered heads reach accuracy 0.847 on BANKING77 (150 held-out items) and 0.893 on CLINC150 (100 held-out items), means of three draws.
|
|
125
|
+
They use labelled examples, so those figures are not comparable with zero-shot systems.
|
|
126
|
+
Calibration trails too: hard-tier ECE on JevBench is 0.059, above the 0.05 we aimed for.
|
|
127
|
+
`EVAL_CARD.md` has the full tables, the calibration figures, and the three disclosures about what was fitted on what.
|
|
128
|
+
|
|
129
|
+
## Repository layout
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
src/decisio/serve/ the server: /v1/systemone, tasks, abstention, temperature, image route, conformance
|
|
133
|
+
src/decisio/readout/ the letters readout, calibration and the intent head (reference implementations)
|
|
134
|
+
src/decisio/vllm_plugin/ the vLLM entry point and the two model classes
|
|
135
|
+
src/decisio/bench/ benchmark scoring (JevBench v1.5 open-set reading, Decision Index reports)
|
|
136
|
+
benchmarks/ scripts that run the public harnesses against a server
|
|
137
|
+
patches/ optional vLLM patch series, off by default
|
|
138
|
+
Dockerfile compose.yaml docker/ the server image (vLLM 0.30.0 release image plus the wheel)
|
|
139
|
+
tests/unit/ tests/gpu/ CPU tests run on every pull request; GPU tests run nightly (pytest -m gpu)
|
|
140
|
+
runs/ evaluation records: a manifest, per-item results and hashes per run
|
|
141
|
+
docs/ the task-registration guide and specification, design notes
|
|
142
|
+
examples/tasks/ a runnable task-registration walk-through (CPU stand-in)
|
|
143
|
+
EVAL_CARD.md what was measured, on what, and what was fitted on what
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Contributing
|
|
147
|
+
|
|
148
|
+
See `CONTRIBUTING.md`.
|
|
149
|
+
Pull requests need a DCO sign-off (`git commit -s`), pass the CPU tests and lint, and are reviewed by a maintainer before merge.
|
|
150
|
+
Security issues go through GitHub's private vulnerability reporting, as described in `SECURITY.md`.
|
|
151
|
+
|
|
152
|
+
## Licence
|
|
153
|
+
|
|
154
|
+
Apache-2.0 (`LICENSE`, `NOTICE`).
|
|
155
|
+
The model weights are Alibaba's Qwen3.6-35B-A3B under Apache-2.0 and are downloaded, not redistributed.
|
|
156
|
+
`THIRD-PARTY.md` lists everything else this project builds on.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the decisio project
|
|
3
|
+
|
|
4
|
+
[build-system]
|
|
5
|
+
requires = ["setuptools>=77"]
|
|
6
|
+
build-backend = "setuptools.build_meta"
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = "decisio"
|
|
10
|
+
version = "0.1.1"
|
|
11
|
+
description = "A prefill-only decision server on vLLM: typed questions about a state, a probability distribution per question"
|
|
12
|
+
license = "Apache-2.0"
|
|
13
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
14
|
+
readme = "README.md"
|
|
15
|
+
authors = [{ name = "Amin Roudaki" }]
|
|
16
|
+
requires-python = ">=3.12,<3.13"
|
|
17
|
+
# The server front, the readout, the tasks and the CPU stand-in; vLLM is the serve extra (Linux, a CUDA card).
|
|
18
|
+
# Lower bounds only: uv.lock pins every version, resolved together with the serve extra, so the CPU tests run the
|
|
19
|
+
# versions vLLM 0.30.0 runs with (it pins torch 2.13.0, torchvision 0.28.0 and fastapi below 0.137).
|
|
20
|
+
# huggingface_hub is imported directly (decisio.serve.hidden_engine) and arrives through transformers; declaring it
|
|
21
|
+
# re-resolves uv.lock beyond that one edge (tilelang loses a never-true setuptools marker), so it is left for a
|
|
22
|
+
# lock refresh.
|
|
23
|
+
dependencies = [
|
|
24
|
+
"fastapi>=0.133",
|
|
25
|
+
"numpy>=2.2",
|
|
26
|
+
"pillow>=11",
|
|
27
|
+
"psutil>=7",
|
|
28
|
+
"pydantic>=2.12",
|
|
29
|
+
"python-multipart>=0.0.20",
|
|
30
|
+
"safetensors>=0.6.2",
|
|
31
|
+
"scipy>=1.15",
|
|
32
|
+
"torch>=2.13",
|
|
33
|
+
"torchvision>=0.28",
|
|
34
|
+
"transformers>=5.10.4",
|
|
35
|
+
"uvicorn>=0.34",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.optional-dependencies]
|
|
39
|
+
# the GPU serving stack; the decisio plugin registers its model classes on exactly this vLLM version
|
|
40
|
+
serve = ["vllm==0.30.0; sys_platform == 'linux'"]
|
|
41
|
+
# the benchmark stage (benchmarks/): the conformance client and the HTTP drivers; the JevBench harness and the
|
|
42
|
+
# Decision Index kit are fetched at pinned commits by benchmarks/fetch_harnesses.sh
|
|
43
|
+
bench = ["httpx>=0.28", "typesafe-sdk==0.7.0"]
|
|
44
|
+
dev = ["httpx>=0.28", "pytest==9.1.1", "ruff==0.14.0"]
|
|
45
|
+
|
|
46
|
+
[project.urls]
|
|
47
|
+
Repository = "https://github.com/aminry/decisio"
|
|
48
|
+
|
|
49
|
+
# vLLM loads this in every process it starts (docs/design/vllm-plugin.md); it registers decisio's model classes on
|
|
50
|
+
# vllm==0.30.0 and nothing on any other version
|
|
51
|
+
[project.entry-points."vllm.general_plugins"]
|
|
52
|
+
decisio = "decisio.vllm_plugin:register"
|
|
53
|
+
|
|
54
|
+
[tool.setuptools.packages.find]
|
|
55
|
+
where = ["src"]
|
|
56
|
+
|
|
57
|
+
[tool.setuptools.package-data]
|
|
58
|
+
"decisio.bench" = ["*.json"]
|
|
59
|
+
|
|
60
|
+
[tool.pytest.ini_options]
|
|
61
|
+
testpaths = ["tests"]
|
|
62
|
+
addopts = "--strict-markers -m 'not gpu and not slow'"
|
|
63
|
+
markers = [
|
|
64
|
+
"gpu: needs a CUDA card, vLLM 0.30.0 and a local checkpoint (tests/gpu; run with -m gpu)",
|
|
65
|
+
"slow: loads a small Hugging Face model on the CPU",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[tool.ruff]
|
|
69
|
+
line-length = 120
|
|
70
|
+
target-version = "py312"
|
|
71
|
+
|
|
72
|
+
[tool.ruff.lint]
|
|
73
|
+
select = ["E", "F", "I", "W"]
|
decisio-0.1.1/setup.cfg
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the decisio project
|
|
3
|
+
"""decisio: a prefill-only decision server on vLLM.
|
|
4
|
+
|
|
5
|
+
decisio.serve the HTTP server (`python -m decisio.serve.vllm_engine`), its routes, tasks and engines
|
|
6
|
+
decisio.readout the letters readout and the per-task corrections (calibration, intent head)
|
|
7
|
+
decisio.vllm_plugin the model classes vLLM loads through the `vllm.general_plugins` entry point
|
|
8
|
+
decisio.bench the benchmark stage: JevBench v1.5 open-set scoring, Decision Index reports, latency
|
|
9
|
+
|
|
10
|
+
Importing `decisio` pulls in nothing beyond the standard library.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
__version__ = "0.1.1"
|