Public release: remove placeholders, public RUNNING.md
Browse files- README.md +0 -2
- source/RUNNING.md +24 -40
README.md
CHANGED
|
@@ -122,8 +122,6 @@ Evaluating it with the Decision Index kit (`decision_model.engine:DecisionModelE
|
|
| 122 |
| Arts & Human Taste | 37.1 | 20.7 |
|
| 123 |
| **Public vision index** | **71.90** | 55.99 |
|
| 124 |
|
| 125 |
-
Complete results (compact: answers and probabilities, without the suite's text): TODO link.
|
| 126 |
-
|
| 127 |
<details>
|
| 128 |
<summary>Per-benchmark skill</summary>
|
| 129 |
|
|
|
|
| 122 |
| Arts & Human Taste | 37.1 | 20.7 |
|
| 123 |
| **Public vision index** | **71.90** | 55.99 |
|
| 124 |
|
|
|
|
|
|
|
| 125 |
<details>
|
| 126 |
<summary>Per-benchmark skill</summary>
|
| 127 |
|
source/RUNNING.md
CHANGED
|
@@ -4,14 +4,14 @@ This guide is self-contained: it assumes a fresh Linux VM with an NVIDIA GPU (e.
|
|
| 4 |
|
| 5 |
## 1. What the model is
|
| 6 |
|
| 7 |
-
A fine-tuned Qwen3.5 image-text model that answers *typed decisions*: given a `state` (text or JSON, optionally images) and `questions` (`choice` with named options, or yes/no `noul`), it returns one probability per option. Two
|
| 8 |
|
| 9 |
-
|
|
| 10 |
|---|---|---|---|
|
| 11 |
-
|
|
| 12 |
-
|
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
```
|
| 17 |
config.json, model*.safetensors, model.safetensors.index.json Qwen3_5Model backbone (no LM head), bf16
|
|
@@ -23,7 +23,7 @@ evaluation/export-verification.json checks run at export time
|
|
| 23 |
release-manifest.json bytes and sha256 of every file
|
| 24 |
```
|
| 25 |
|
| 26 |
-
The code is the `decision_model` package (
|
| 27 |
|
| 28 |
| Module | What it does |
|
| 29 |
|---|---|
|
|
@@ -33,34 +33,16 @@ The code is the `decision_model` package (this directory: `src/decision_model/`)
|
|
| 33 |
|
| 34 |
## 2. Getting the model and code onto the VM
|
| 35 |
|
| 36 |
-
Put the export folder and this `release/` directory (as `source/`) in one **private** Hugging Face model repo, then download it on the VM.
|
| 37 |
-
|
| 38 |
-
From the machine that holds the exports, with a token that can write to the org:
|
| 39 |
-
|
| 40 |
-
```bash
|
| 41 |
-
export HF_HUB_DISABLE_XET=1 # needed on some clusters; harmless elsewhere
|
| 42 |
-
hf auth login
|
| 43 |
-
hf repo create <org>/<model-name> --repo-type model --private
|
| 44 |
-
hf upload <org>/<model-name> <path to exports>/4b-v6-cross-best . --repo-type model
|
| 45 |
-
hf upload <org>/<model-name> <path to decision-training>/release source --repo-type model \
|
| 46 |
-
--exclude "**/__pycache__/**"
|
| 47 |
-
```
|
| 48 |
-
|
| 49 |
-
Upload only the export folder itself. Never upload the `<name>.provenance.json` file that sits next to it: it is internal.
|
| 50 |
-
|
| 51 |
-
On the VM:
|
| 52 |
-
|
| 53 |
```bash
|
| 54 |
-
hf
|
| 55 |
-
|
| 56 |
-
export M=~/models/4b-v6-cross-best # used below
|
| 57 |
```
|
| 58 |
|
| 59 |
-
`DecisionModel.from_pretrained("
|
| 60 |
|
| 61 |
## 3. VM setup
|
| 62 |
|
| 63 |
-
- **GPU**: any NVIDIA GPU with bf16 (Ampere or newer). The 4B was tested on H100 80 GB. Smaller GPUs (24 GB) may run out of memory on the longest Decision Index requests (~27k tokens). The leaderboard measures latency on an RTX PRO 6000 (Blackwell). If you can get one (on GCP, the G4 machine series, quota permitting), it gives the most representative latency.
|
| 64 |
- **Disk**: about 100 GB covers the model, both suites and run outputs.
|
| 65 |
- **Software**: an NVIDIA driver recent enough for CUDA 12.8 (Blackwell needs it), and Python 3.12.
|
| 66 |
|
|
@@ -81,7 +63,8 @@ Tested combinations: torch 2.11.0 with transformers 5.7.0, 5.13.1 and 5.22.1, fl
|
|
| 81 |
```python
|
| 82 |
from decision_model import DecisionModel
|
| 83 |
|
| 84 |
-
|
|
|
|
| 85 |
print(model.attention_check)
|
| 86 |
model.warmup() # compiles/tunes kernels once (seconds); servers and engines do this themselves
|
| 87 |
print(model.decide(
|
|
@@ -238,26 +221,27 @@ EOF
|
|
| 238 |
|
| 239 |
Loading and warm-up happen when the engine is created, so they are not counted.
|
| 240 |
|
| 241 |
-
Reference numbers
|
| 242 |
|
| 243 |
-
| Median | Mean | p80 | p95 |
|
| 244 |
-
|---|---|---|---|---|
|
| 245 |
-
|
|
|
|
|
| 246 |
|
| 247 |
-
|
| 248 |
|
| 249 |
## 8. Reference results to compare against
|
| 250 |
|
| 251 |
**Parity.** `model.py` gave the same answer as the training code on every question of a 523-question Decision Index sample (text and vision). Its logits stay within one or two bf16 rounding steps across transformers 5.7.0, 5.13.1 and 5.22.1.
|
| 252 |
|
| 253 |
-
**
|
| 254 |
|
| 255 |
-
| Model |
|
| 256 |
-
|---|---|---|
|
| 257 |
-
| 4B |
|
| 258 |
-
| 0.8B |
|
| 259 |
|
| 260 |
-
|
| 261 |
|
| 262 |
To compare two runs answer by answer: both `results.jsonl` files key rows by `run_id`; compare each question's `choice` (or `noul`) and probabilities.
|
| 263 |
|
|
|
|
| 4 |
|
| 5 |
## 1. What the model is
|
| 6 |
|
| 7 |
+
A fine-tuned Qwen3.5 image-text model that answers *typed decisions*: given a `state` (text or JSON, optionally images) and `questions` (`choice` with named options, or yes/no `noul`), it returns one probability per option. Two models use this code:
|
| 8 |
|
| 9 |
+
| Model | Base model | Size | Temperature |
|
| 10 |
|---|---|---|---|
|
| 11 |
+
| [IVE-4B](https://huggingface.co/illuin/IVE-4B) | Qwen/Qwen3.5-4B | 9.1 GB | 1.5329 |
|
| 12 |
+
| [Ivonnet-0.8B](https://huggingface.co/illuin/Ivonnet-0.8B) | Qwen/Qwen3.5-0.8B (distilled from IVE-4B) | 1.7 GB | 1.4467 |
|
| 13 |
|
| 14 |
+
A model repo is self-contained (no base-model download at run time):
|
| 15 |
|
| 16 |
```
|
| 17 |
config.json, model*.safetensors, model.safetensors.index.json Qwen3_5Model backbone (no LM head), bf16
|
|
|
|
| 23 |
release-manifest.json bytes and sha256 of every file
|
| 24 |
```
|
| 25 |
|
| 26 |
+
The code is the `decision_model` package (`source/src/decision_model/` in the model repo):
|
| 27 |
|
| 28 |
| Module | What it does |
|
| 29 |
|---|---|
|
|
|
|
| 33 |
|
| 34 |
## 2. Getting the model and code onto the VM
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
```bash
|
| 37 |
+
hf download illuin/IVE-4B --local-dir ~/models/IVE-4B # or illuin/Ivonnet-0.8B
|
| 38 |
+
export M=~/models/IVE-4B # used below
|
|
|
|
| 39 |
```
|
| 40 |
|
| 41 |
+
`DecisionModel.from_pretrained("illuin/IVE-4B", revision=...)` and the engines' `--option model=illuin/IVE-4B` also download straight from the Hub.
|
| 42 |
|
| 43 |
## 3. VM setup
|
| 44 |
|
| 45 |
+
- **GPU**: any NVIDIA GPU with bf16 (Ampere or newer). The 4B was tested on H100 80 GB and RTX PRO 6000 (96 GB). Smaller GPUs (24 GB) may run out of memory on the longest Decision Index requests (~27k tokens). The leaderboard measures latency on an RTX PRO 6000 (Blackwell). If you can get one (on GCP, the G4 machine series, quota permitting; on Hugging Face Jobs, the `rtx-pro-6000` flavor), it gives the most representative latency.
|
| 46 |
- **Disk**: about 100 GB covers the model, both suites and run outputs.
|
| 47 |
- **Software**: an NVIDIA driver recent enough for CUDA 12.8 (Blackwell needs it), and Python 3.12.
|
| 48 |
|
|
|
|
| 63 |
```python
|
| 64 |
from decision_model import DecisionModel
|
| 65 |
|
| 66 |
+
import os
|
| 67 |
+
model = DecisionModel.from_pretrained(os.path.expanduser("~/models/IVE-4B"), device="cuda")
|
| 68 |
print(model.attention_check)
|
| 69 |
model.warmup() # compiles/tunes kernels once (seconds); servers and engines do this themselves
|
| 70 |
print(model.decide(
|
|
|
|
| 221 |
|
| 222 |
Loading and warm-up happen when the engine is created, so they are not counted.
|
| 223 |
|
| 224 |
+
Reference numbers, one request at a time after warm-up, over the complete public text suite (140,620 requests) on one RTX PRO 6000 (torch 2.11.0, transformers 5.22.1):
|
| 225 |
|
| 226 |
+
| Model | Median | Mean | p80 | p95 |
|
| 227 |
+
|---|---:|---:|---:|---:|
|
| 228 |
+
| IVE-4B | 51 ms | 99 ms | 63 ms | 245 ms |
|
| 229 |
+
| Ivonnet-0.8B | 38 ms | 49 ms | 40 ms | 72 ms |
|
| 230 |
|
| 231 |
+
On one H100 (80 GB), over 800 random public-suite requests, IVE-4B gave a median of 46 ms, mean 77 ms and p80 53 ms.
|
| 232 |
|
| 233 |
## 8. Reference results to compare against
|
| 234 |
|
| 235 |
**Parity.** `model.py` gave the same answer as the training code on every question of a 523-question Decision Index sample (text and vision). Its logits stay within one or two bf16 rounding steps across transformers 5.7.0, 5.13.1 and 5.22.1.
|
| 236 |
|
| 237 |
+
**Complete public suites.** Decision Index 0.3, every text request (140,620, HLE included) and every vision row (12,210, Winoground included) answered, on one RTX PRO 6000 with transformers 5.22.1:
|
| 238 |
|
| 239 |
+
| Model | Public text index | Public vision index |
|
| 240 |
+
|---|---:|---:|
|
| 241 |
+
| IVE-4B | 58.51 | 71.90 |
|
| 242 |
+
| Ivonnet-0.8B | 41.27 | 55.99 |
|
| 243 |
|
| 244 |
+
Under transformers 5.7.0 the indices move by at most 0.15; the answers that change are near-ties.
|
| 245 |
|
| 246 |
To compare two runs answer by answer: both `results.jsonl` files key rows by `run_id`; compare each question's `choice` (or `noul`) and probabilities.
|
| 247 |
|