Model card for IVE-4B, LICENSE and NOTICE (draft for proofreading)
Browse filesPolished model card (complete Decision Index 0.3 public runs, acknowledgements), Apache 2.0 LICENSE and NOTICE. To be squashed into a clean initial commit before publication.
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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
IVE-4B
|
| 2 |
+
Copyright 2026 Illuin Technology
|
| 3 |
+
|
| 4 |
+
This model is a modified version of Qwen/Qwen3.5-4B
|
| 5 |
+
(https://huggingface.co/Qwen/Qwen3.5-4B, revision 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a),
|
| 6 |
+
Copyright 2026 Alibaba Cloud, licensed under the Apache License, Version 2.0.
|
| 7 |
+
|
| 8 |
+
Changes made to the base model:
|
| 9 |
+
- Every weight of the language model and of the vision merger was fine-tuned; the vision
|
| 10 |
+
encoder is unchanged. The released weights average checkpoints from two training runs.
|
| 11 |
+
- The language-model head was removed and replaced by a linear decision readout over 255
|
| 12 |
+
single-token answer codes (readout.safetensors).
|
| 13 |
+
- The full-attention layers run with non-causal (bidirectional) attention.
|
| 14 |
+
- Option probabilities are calibrated with a single fitted temperature (decision_config.json).
|
| 15 |
+
- The inference code in source/ (the decision_model package) was written for this model.
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
base_model: Qwen/Qwen3.5-4B
|
| 4 |
base_model_relation: finetune
|
| 5 |
library_name: pytorch
|
|
@@ -12,11 +12,11 @@ tags:
|
|
| 12 |
- custom-code
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
A **typed decision model**. It takes a `state` (text or JSON, optionally with images) and one or more `questions`, each a multiple-choice `choice` with named options or a yes/no `noul`. For every question it returns a calibrated probability for every option, read in a single forward pass with no text generation. The request and answer format is the `/v1/systemone` protocol used by the [Decision Index](https://github.com/apolinario/decision-index).
|
| 18 |
|
| 19 |
-
Fine-tuned from [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) (revision `851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a`).
|
| 20 |
Developed by Illuin Technology (corresponding author quentin.mace@illuin.tech).
|
| 21 |
|
| 22 |
| | |
|
|
@@ -26,6 +26,7 @@ Developed by Illuin Technology (corresponding author quentin.mace@illuin.tech).
|
|
| 26 |
| Inputs | text or JSON state, up to 4 images per request in evaluation; up to 32,768 tokens per question row |
|
| 27 |
| Questions | `choice` (2 to 255 options) and `noul` (yes/no). `score` (ordered levels) is supported by the code but not evaluated. |
|
| 28 |
| Output | one probability per option, at a fitted calibration temperature (1.5329) |
|
|
|
|
| 29 |
|
| 30 |
## How it works
|
| 31 |
|
|
@@ -62,19 +63,20 @@ The 8 full-attention layers run **non-causally**: every token sees the whole row
|
|
| 62 |
| `tokenizer.json`, `tokenizer_config.json`, `chat_template.jinja`, `processor_config.json` | the processor |
|
| 63 |
| `source/` | the `decision_model` package (inference, HTTP server, Decision Index engines) and `RUNNING.md` |
|
| 64 |
| `evaluation/export-verification.json`, `release-manifest.json` | export checks; size and sha256 of every file |
|
|
|
|
| 65 |
|
| 66 |
## Usage
|
| 67 |
|
| 68 |
```bash
|
| 69 |
pip install torch --index-url https://download.pytorch.org/whl/cu128
|
| 70 |
-
hf download illuin/IVE --local-dir ~/models/
|
| 71 |
-
pip install -e "$HOME/models/
|
| 72 |
```
|
| 73 |
|
| 74 |
```python
|
| 75 |
from decision_model import DecisionModel
|
| 76 |
|
| 77 |
-
model = DecisionModel.from_pretrained("~/models/
|
| 78 |
model.decide(
|
| 79 |
"My integration keeps failing with a 401.",
|
| 80 |
{"team": {"type": "choice", "instructions": "Which team should handle this request?",
|
|
@@ -91,36 +93,99 @@ Images go in `decide(state, questions, images=[...])` as paths, bytes, PIL image
|
|
| 91 |
Serving, with the model loaded and warmed up once:
|
| 92 |
|
| 93 |
```bash
|
| 94 |
-
python -m decision_model.server --model ~/models/
|
| 95 |
```
|
| 96 |
|
| 97 |
This exposes `POST /v1/systemone` (the Decision Index text protocol) and `POST /v1/decisions` (its vision protocol).
|
| 98 |
|
| 99 |
Evaluating it with the Decision Index kit (`decision_model.engine:DecisionModelEngine` and `DecisionModelVisionEngine`) is covered step by step in `source/RUNNING.md`.
|
| 100 |
|
| 101 |
-
**Requirements:** Python ≥ 3.10, PyTorch with CUDA, `transformers>=5.7,<6` (tested 5.7.0, 5.13.1 and 5.22.1), and `flash-linear-attention` 0.5.2. Without the last, the Gated DeltaNet layers run on a much slower PyTorch fallback. bf16 weights take about 9 GB of GPU memory; the longest inputs (~27k tokens) need more.
|
| 102 |
|
| 103 |
## Evaluation
|
| 104 |
|
| 105 |
-
[Decision Index](https://github.com/apolinario/decision-index) edition 0.3, public suites,
|
| 106 |
-
|
| 107 |
-
| Decision Index
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|---|---:|---:|
|
| 109 |
-
|
|
| 110 |
-
|
|
| 111 |
-
|
|
| 112 |
-
|
|
| 113 |
-
|
|
| 114 |
-
|
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
-
|
| 118 |
|
| 119 |
-
**Latency.**
|
| 120 |
|
| 121 |
| Median | Mean | p80 | p95 |
|
| 122 |
|---:|---:|---:|---:|
|
| 123 |
-
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
**Reproducibility.** The released code gives the same answers as the training-time implementation on a 523-question Decision Index sample, and on that sample its logits agree within one or two bf16 rounding steps across transformers 5.7.0, 5.13.1 and 5.22.1. Over the full public suites, transformers 5.7.0 and 5.22.1 give the same answer on 99.6% of text questions and 98.4% of vision questions. The answers that differ are near-ties, and the indices differ by at most 0.06.
|
| 126 |
|
|
@@ -132,7 +197,7 @@ The two gated benchmarks were not run, so these are not the official complete pu
|
|
| 132 |
- **Calibration:** a single temperature, fitted on held-out data, calibrates the probabilities.
|
| 133 |
- **Data:** the training data are not released.
|
| 134 |
|
| 135 |
-
TODO
|
| 136 |
|
| 137 |
## Intended use and limitations
|
| 138 |
|
|
@@ -143,6 +208,35 @@ TODO (optional): a statement on how training data were screened against the Deci
|
|
| 143 |
- **Language:** evaluated mainly on English benchmarks.
|
| 144 |
- **Decisions about people:** do not use it for consequential decisions about people without human review.
|
| 145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
## Licence
|
| 147 |
|
| 148 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
base_model: Qwen/Qwen3.5-4B
|
| 4 |
base_model_relation: finetune
|
| 5 |
library_name: pytorch
|
|
|
|
| 12 |
- custom-code
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# IVE-4B
|
| 16 |
|
| 17 |
A **typed decision model**. It takes a `state` (text or JSON, optionally with images) and one or more `questions`, each a multiple-choice `choice` with named options or a yes/no `noul`. For every question it returns a calibrated probability for every option, read in a single forward pass with no text generation. The request and answer format is the `/v1/systemone` protocol used by the [Decision Index](https://github.com/apolinario/decision-index).
|
| 18 |
|
| 19 |
+
Fine-tuned from [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) (revision `851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a`). A smaller model distilled from this one is released as [Ivonnet-0.8B](https://huggingface.co/illuin/Ivonnet-0.8B).
|
| 20 |
Developed by Illuin Technology (corresponding author quentin.mace@illuin.tech).
|
| 21 |
|
| 22 |
| | |
|
|
|
|
| 26 |
| Inputs | text or JSON state, up to 4 images per request in evaluation; up to 32,768 tokens per question row |
|
| 27 |
| Questions | `choice` (2 to 255 options) and `noul` (yes/no). `score` (ordered levels) is supported by the code but not evaluated. |
|
| 28 |
| Output | one probability per option, at a fitted calibration temperature (1.5329) |
|
| 29 |
+
| Decision Index 0.3 | public text index **58.51**, public vision index **71.90** (complete public runs, [below](#evaluation)) |
|
| 30 |
|
| 31 |
## How it works
|
| 32 |
|
|
|
|
| 63 |
| `tokenizer.json`, `tokenizer_config.json`, `chat_template.jinja`, `processor_config.json` | the processor |
|
| 64 |
| `source/` | the `decision_model` package (inference, HTTP server, Decision Index engines) and `RUNNING.md` |
|
| 65 |
| `evaluation/export-verification.json`, `release-manifest.json` | export checks; size and sha256 of every file |
|
| 66 |
+
| `LICENSE`, `NOTICE` | Apache License 2.0; attribution and the changes made to the base model |
|
| 67 |
|
| 68 |
## Usage
|
| 69 |
|
| 70 |
```bash
|
| 71 |
pip install torch --index-url https://download.pytorch.org/whl/cu128
|
| 72 |
+
hf download illuin/IVE-4B --local-dir ~/models/IVE-4B
|
| 73 |
+
pip install -e "$HOME/models/IVE-4B/source[fast,server]"
|
| 74 |
```
|
| 75 |
|
| 76 |
```python
|
| 77 |
from decision_model import DecisionModel
|
| 78 |
|
| 79 |
+
model = DecisionModel.from_pretrained("~/models/IVE-4B", device="cuda")
|
| 80 |
model.decide(
|
| 81 |
"My integration keeps failing with a 401.",
|
| 82 |
{"team": {"type": "choice", "instructions": "Which team should handle this request?",
|
|
|
|
| 93 |
Serving, with the model loaded and warmed up once:
|
| 94 |
|
| 95 |
```bash
|
| 96 |
+
python -m decision_model.server --model ~/models/IVE-4B --port 8000
|
| 97 |
```
|
| 98 |
|
| 99 |
This exposes `POST /v1/systemone` (the Decision Index text protocol) and `POST /v1/decisions` (its vision protocol).
|
| 100 |
|
| 101 |
Evaluating it with the Decision Index kit (`decision_model.engine:DecisionModelEngine` and `DecisionModelVisionEngine`) is covered step by step in `source/RUNNING.md`.
|
| 102 |
|
| 103 |
+
**Requirements:** Python ≥ 3.10, PyTorch with CUDA, `transformers>=5.7,<6` (tested 5.7.0, 5.13.1 and 5.22.1), and `flash-linear-attention` 0.5.2. Without the last, the Gated DeltaNet layers run on a much slower PyTorch fallback. The processor also needs the `torchvision` build that matches your PyTorch. bf16 weights take about 9 GB of GPU memory; the longest inputs (~27k tokens) need more.
|
| 104 |
|
| 105 |
## Evaluation
|
| 106 |
|
| 107 |
+
[Decision Index](https://github.com/apolinario/decision-index) edition 0.3, **complete public suites**: every text request (140,620, HLE included) and every vision row (12,210, Winoground included) answered, none unsupported. Run with the code in `source/` and the kit's in-process engines on one NVIDIA RTX PRO 6000 (torch 2.11.0, transformers 5.22.1, flash-linear-attention 0.5.2). Scores are chance-corrected skill: 0 is random guessing, 100 is perfect.
|
| 108 |
+
|
| 109 |
+
| Decision Index 0.3 (public suites) | IVE-4B |
|
| 110 |
+
|---|---:|
|
| 111 |
+
| **Public text index** | **58.51** |
|
| 112 |
+
| Knowledge & Reasoning | 38.2 |
|
| 113 |
+
| Language Understanding | 67.9 |
|
| 114 |
+
| Retrieval & Classification | 59.1 |
|
| 115 |
+
| Tools & Automation | 85.1 |
|
| 116 |
+
| Arts & Human Taste | 37.1 |
|
| 117 |
+
| **Public vision index** | **71.90** |
|
| 118 |
+
|
| 119 |
+
Complete results (compact: answers and probabilities, without the suite's text): TODO link.
|
| 120 |
+
|
| 121 |
+
<details>
|
| 122 |
+
<summary>Per-benchmark skill</summary>
|
| 123 |
+
|
| 124 |
+
| Text benchmark | Area | Skill |
|
| 125 |
+
|---|---|---:|
|
| 126 |
+
| BFCL | Tools & Automation | 96.1 |
|
| 127 |
+
| Home appliances | Tools & Automation | 88.6 |
|
| 128 |
+
| When2Call | Tools & Automation | 88.0 |
|
| 129 |
+
| API-Bank | Tools & Automation | 86.4 |
|
| 130 |
+
| ToolRet | Tools & Automation | 63.9 |
|
| 131 |
+
| CLINC150+OOS | Retrieval & Classification | 94.3 |
|
| 132 |
+
| BANKING77 | Retrieval & Classification | 85.6 |
|
| 133 |
+
| HoVer | Retrieval & Classification | 46.4 |
|
| 134 |
+
| PhishNChips | Retrieval & Classification | 44.1 |
|
| 135 |
+
| Amazon ESCI | Retrieval & Classification | 39.2 |
|
| 136 |
+
| BRIGHT | Retrieval & Classification | 37.0 |
|
| 137 |
+
| HellaSwag | Language Understanding | 89.8 |
|
| 138 |
+
| FinEntity | Language Understanding | 87.4 |
|
| 139 |
+
| ContractNLI | Language Understanding | 79.0 |
|
| 140 |
+
| NLI4CT | Language Understanding | 67.9 |
|
| 141 |
+
| VAST | Language Understanding | 67.5 |
|
| 142 |
+
| RAGTruth | Language Understanding | 67.0 |
|
| 143 |
+
| ANLI | Language Understanding | 58.9 |
|
| 144 |
+
| iSarcasmEval | Language Understanding | 47.3 |
|
| 145 |
+
| ACOS | Language Understanding | 43.5 |
|
| 146 |
+
| WinoGrande | Knowledge & Reasoning | 65.6 |
|
| 147 |
+
| GSM8K | Knowledge & Reasoning | 62.5 |
|
| 148 |
+
| BBH | Knowledge & Reasoning | 59.0 |
|
| 149 |
+
| MMLU-Pro | Knowledge & Reasoning | 56.7 |
|
| 150 |
+
| CLadder | Knowledge & Reasoning | 49.3 |
|
| 151 |
+
| CRUXEval | Knowledge & Reasoning | 39.0 |
|
| 152 |
+
| MuSR | Knowledge & Reasoning | 36.1 |
|
| 153 |
+
| GPQA Diamond | Knowledge & Reasoning | 25.2 |
|
| 154 |
+
| ChessBench | Knowledge & Reasoning | 16.3 |
|
| 155 |
+
| SATA-Bench | Knowledge & Reasoning | 7.4 |
|
| 156 |
+
| HLE | Knowledge & Reasoning | 0.0 |
|
| 157 |
+
| BPoMP | Arts & Human Taste | 77.3 |
|
| 158 |
+
| New Yorker | Arts & Human Taste | 68.3 |
|
| 159 |
+
| Humicroedit | Arts & Human Taste | 25.3 |
|
| 160 |
+
| cfcolor | Arts & Human Taste | 20.0 |
|
| 161 |
+
| POP909 | Arts & Human Taste | 19.0 |
|
| 162 |
+
| Habermas Machine | Arts & Human Taste | 13.0 |
|
| 163 |
+
|
| 164 |
+
| Vision benchmark | Weight | Skill |
|
| 165 |
|---|---:|---:|
|
| 166 |
+
| InfographicVQA | 1 | 95.6 |
|
| 167 |
+
| KIE (CORD+FUNSD) | 1 | 91.9 |
|
| 168 |
+
| Mind2Web | 1 | 89.7 |
|
| 169 |
+
| Winoground | 1 | 81.0 |
|
| 170 |
+
| CV-Bench | 1 | 76.0 |
|
| 171 |
+
| CharXiv | 1 | 75.4 |
|
| 172 |
+
| RealWorldQA | 1 | 66.4 |
|
| 173 |
+
| BLINK | 1 | 52.5 |
|
| 174 |
+
| Moderation (Hateful Memes) | 1 | 48.6 |
|
| 175 |
+
| R-Bench-M | 0.5 | 29.8 |
|
| 176 |
+
| MMMU-Pro vision | 0.25 | 35.8 |
|
| 177 |
+
|
| 178 |
+
Shown by the kit but not counted in the 0.3 index: ARC-Easy 98.6, ARC-Challenge 94.3, MMLU 73.6, RouterBench 53.0, SimpleBench 16.0, SGD 0.0.
|
| 179 |
|
| 180 |
+
</details>
|
| 181 |
|
| 182 |
+
**Latency.** On one NVIDIA RTX PRO 6000, one request at a time after warm-up, in-process wall time over the complete public text suite (140,620 requests):
|
| 183 |
|
| 184 |
| Median | Mean | p80 | p95 |
|
| 185 |
|---:|---:|---:|---:|
|
| 186 |
+
| 51 ms | 99 ms | 63 ms | 245 ms |
|
| 187 |
+
|
| 188 |
+
Vision rows are answered in batches, so their time is a per-row average: median 142 ms, mean 135 ms, p80 184 ms.
|
| 189 |
|
| 190 |
**Reproducibility.** The released code gives the same answers as the training-time implementation on a 523-question Decision Index sample, and on that sample its logits agree within one or two bf16 rounding steps across transformers 5.7.0, 5.13.1 and 5.22.1. Over the full public suites, transformers 5.7.0 and 5.22.1 give the same answer on 99.6% of text questions and 98.4% of vision questions. The answers that differ are near-ties, and the indices differ by at most 0.06.
|
| 191 |
|
|
|
|
| 197 |
- **Calibration:** a single temperature, fitted on held-out data, calibrates the probabilities.
|
| 198 |
- **Data:** the training data are not released.
|
| 199 |
|
| 200 |
+
TODO: a statement on how the training data were screened against the Decision Index benchmarks (the leaderboard submission needs one too).
|
| 201 |
|
| 202 |
## Intended use and limitations
|
| 203 |
|
|
|
|
| 208 |
- **Language:** evaluated mainly on English benchmarks.
|
| 209 |
- **Decisions about people:** do not use it for consequential decisions about people without human review.
|
| 210 |
|
| 211 |
+
## Acknowledgements
|
| 212 |
+
|
| 213 |
+
- **tasksource** (Damien Sileo), for [tasksource-jev-typed-decisions](https://huggingface.co/datasets/tasksource/tasksource-jev-typed-decisions), typed decisions built from hundreds of curated [tasksource](https://github.com/sileod/tasksource) tasks, a core part of the training data. If you use it, please cite:
|
| 214 |
+
|
| 215 |
+
```bibtex
|
| 216 |
+
@inproceedings{sileo-2024-tasksource,
|
| 217 |
+
title = "tasksource: A Large Collection of {NLP} tasks with a Structured Dataset Preprocessing Framework",
|
| 218 |
+
author = "Sileo, Damien",
|
| 219 |
+
booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation ({LREC}-{COLING} 2024)",
|
| 220 |
+
month = may,
|
| 221 |
+
year = "2024",
|
| 222 |
+
address = "Torino, Italia",
|
| 223 |
+
publisher = "ELRA and ICCL",
|
| 224 |
+
url = "https://aclanthology.org/2024.lrec-main.1361/",
|
| 225 |
+
pages = "15655--15684"
|
| 226 |
+
}
|
| 227 |
+
```
|
| 228 |
+
|
| 229 |
+
- **Perplexity**, for the recipe this model follows: [pplx-decider-v1.1-27b](https://huggingface.co/perplexity-ai/pplx-decider-v1.1-27b) (Apache 2.0), with one decision per row in the chat template, a linear readout over single-token answer codes, non-causal full attention, full fine-tuning and a fitted temperature. Perplexity's [pplx-embed-v2-late](https://huggingface.co/perplexity-ai/pplx-embed-v2-late-9b) embedding models were also used to mine training examples. pplx-decider's model card gives no citation of its own; if you cite it, the model card is the reference:
|
| 230 |
+
|
| 231 |
+
```bibtex
|
| 232 |
+
@misc{perplexity2026pplxdecider,
|
| 233 |
+
author = {{Perplexity AI}},
|
| 234 |
+
title = {pplx-decider-v1.1-27b},
|
| 235 |
+
year = {2026},
|
| 236 |
+
howpublished = {\url{https://huggingface.co/perplexity-ai/pplx-decider-v1.1-27b}}
|
| 237 |
+
}
|
| 238 |
+
```
|
| 239 |
+
|
| 240 |
## Licence
|
| 241 |
|
| 242 |
+
Released under the [Apache License 2.0](LICENSE), like its base model [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B). The changes made to the base model are listed in [`NOTICE`](NOTICE).
|