Model card: machine-independent paths in Usage
Browse files
README.md
CHANGED
|
@@ -69,14 +69,14 @@ The 8 full-attention layers run **non-causally**: every token sees the whole row
|
|
| 69 |
|
| 70 |
```bash
|
| 71 |
pip install torch --index-url https://download.pytorch.org/whl/cu128
|
| 72 |
-
hf download illuin/IVE-4B --local-dir
|
| 73 |
-
pip install -e "
|
| 74 |
```
|
| 75 |
|
| 76 |
```python
|
| 77 |
from decision_model import DecisionModel
|
| 78 |
|
| 79 |
-
model = DecisionModel.from_pretrained("
|
| 80 |
model.decide(
|
| 81 |
"My integration keeps failing with a 401.",
|
| 82 |
{"team": {"type": "choice", "instructions": "Which team should handle this request?",
|
|
@@ -93,7 +93,7 @@ Images go in `decide(state, questions, images=[...])` as paths, bytes, PIL image
|
|
| 93 |
Serving, with the model loaded and warmed up once:
|
| 94 |
|
| 95 |
```bash
|
| 96 |
-
python -m decision_model.server --model
|
| 97 |
```
|
| 98 |
|
| 99 |
This exposes `POST /v1/systemone` (the Decision Index text protocol) and `POST /v1/decisions` (its vision protocol).
|
|
|
|
| 69 |
|
| 70 |
```bash
|
| 71 |
pip install torch --index-url https://download.pytorch.org/whl/cu128
|
| 72 |
+
hf download illuin/IVE-4B --local-dir IVE-4B
|
| 73 |
+
pip install -e "IVE-4B/source[fast,server]"
|
| 74 |
```
|
| 75 |
|
| 76 |
```python
|
| 77 |
from decision_model import DecisionModel
|
| 78 |
|
| 79 |
+
model = DecisionModel.from_pretrained("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 IVE-4B --port 8000
|
| 97 |
```
|
| 98 |
|
| 99 |
This exposes `POST /v1/systemone` (the Decision Index text protocol) and `POST /v1/decisions` (its vision protocol).
|