Ollaya package for llm-semantic-router/Decision-1.0-Eos-0.8B
Browse files- README.md +44 -0
- eos/calibration.json +9 -0
- eos/decision.json +86 -0
- eos/model-fp32.onnx +3 -0
README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model:
|
| 4 |
+
- llm-semantic-router/Decision-1.0-Eos-0.8B
|
| 5 |
+
library_name: onnx
|
| 6 |
+
tags:
|
| 7 |
+
- ollaya
|
| 8 |
+
- onnx
|
| 9 |
+
- decision-model
|
| 10 |
+
- system-one
|
| 11 |
+
pipeline_tag: text-classification
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# decision for Ollaya
|
| 15 |
+
|
| 16 |
+
[Ollaya](https://github.com/ollaya-dev/ollaya) package of **[llm-semantic-router/Decision-1.0-Eos-0.8B](https://huggingface.co/llm-semantic-router/Decision-1.0-Eos-0.8B)** by the vLLM Semantic Router contributors.
|
| 17 |
+
Ollaya runs open decision models locally, the way Ollama runs LLMs: typed questions in,
|
| 18 |
+
calibrated answers out, behind a TypeSafe-compatible API.
|
| 19 |
+
|
| 20 |
+
```sh
|
| 21 |
+
ollaya run decision
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
## What is in this repository
|
| 25 |
+
|
| 26 |
+
This repository holds only the files Ollaya derives, with no weights. Each graph is an ONNX export of the
|
| 27 |
+
original model whose weights **reference the authors' own weight files by byte offset**,
|
| 28 |
+
so `ollaya pull` downloads the weights from the upstream repositories, unmodified and pinned to a
|
| 29 |
+
commit, and verifies their sha256.
|
| 30 |
+
|
| 31 |
+
| Tag | Upstream | Files |
|
| 32 |
+
|---|---|---|
|
| 33 |
+
| `decision:eos` | [llm-semantic-router/Decision-1.0-Eos-0.8B@3c2d632](https://huggingface.co/llm-semantic-router/Decision-1.0-Eos-0.8B/tree/3c2d632609ceb66f3a13bbc5f77f3ab8cdeebcdd) | `eos/model-fp32.onnx`, `eos/decision.json`, `eos/calibration.json` |
|
| 34 |
+
|
| 35 |
+
Each tag has an fp32 graph, used on CPU and GPU. Each tag also has `decision.json` (sequence layout, special tokens) and
|
| 36 |
+
`calibration.json` (temperatures).
|
| 37 |
+
|
| 38 |
+
## Parity
|
| 39 |
+
|
| 40 |
+
Ollaya's Rust runtime matches the author's code (PyTorch fp32) exactly on 466 questions from 117 requests, and rejects the same 17 requests the author rejects. The token rows and option positions are identical, and so is the decision on every question. Probabilities are within 3.2e-6, on CPU and CUDA, and the TypeSafe answers equal the author's up to 4-decimal rounding.
|
| 41 |
+
|
| 42 |
+
## License
|
| 43 |
+
|
| 44 |
+
Same as the upstream model (Apache-2.0). Ollaya itself is Apache-2.0.
|
eos/calibration.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"temperature": [
|
| 3 |
+
1.0389139156246665,
|
| 4 |
+
1.0389139156246665,
|
| 5 |
+
1.0389139156246665
|
| 6 |
+
],
|
| 7 |
+
"temperature_by_options": {},
|
| 8 |
+
"source": "runtime.json (the released temperature, applied as softmax(logits / T))"
|
| 9 |
+
}
|
eos/decision.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "onnx",
|
| 3 |
+
"family": "decision",
|
| 4 |
+
"layout": "decision-endpoint-v1",
|
| 5 |
+
"upstream": {
|
| 6 |
+
"repo": "llm-semantic-router/Decision-1.0-Eos-0.8B",
|
| 7 |
+
"revision": "3c2d632609ceb66f3a13bbc5f77f3ab8cdeebcdd",
|
| 8 |
+
"base": "Qwen/Qwen3.5-0.8B",
|
| 9 |
+
"base_revision": "2fc06364715b967f1860aea9cf38778875588b17",
|
| 10 |
+
"model_name": "Decision-1.0-Eos",
|
| 11 |
+
"code": {
|
| 12 |
+
"model": "decision/model.py",
|
| 13 |
+
"model_sha256": "d3e28489c09f3bd7130e2d43d92e0b5c4a08e25b09b21303904defb0ff1c3646",
|
| 14 |
+
"api": "decision/types.py",
|
| 15 |
+
"api_sha256": "c149feb1e1b5bf8f44c9c36cd29d382887d174fa3bb0542b7426e2d9f692a4d5"
|
| 16 |
+
},
|
| 17 |
+
"architecture": "contextual-candidate-endpoint-plus-global-query-shared-bilinear-mlp"
|
| 18 |
+
},
|
| 19 |
+
"contract": {
|
| 20 |
+
"inputs": {
|
| 21 |
+
"input_ids": {
|
| 22 |
+
"dtype": "int64",
|
| 23 |
+
"shape": [
|
| 24 |
+
"rows",
|
| 25 |
+
"seq"
|
| 26 |
+
],
|
| 27 |
+
"note": "one row per question; seq a multiple of 64; right-pad with any id (pad)"
|
| 28 |
+
},
|
| 29 |
+
"query_pos": {
|
| 30 |
+
"dtype": "int64",
|
| 31 |
+
"shape": [
|
| 32 |
+
"rows"
|
| 33 |
+
],
|
| 34 |
+
"note": "position of the row's last token"
|
| 35 |
+
},
|
| 36 |
+
"cand_pos": {
|
| 37 |
+
"dtype": "int64",
|
| 38 |
+
"shape": [
|
| 39 |
+
"rows",
|
| 40 |
+
"k"
|
| 41 |
+
],
|
| 42 |
+
"note": "position of each option segment's last token; rows with fewer options pad with 0"
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
"outputs": {
|
| 46 |
+
"logits": {
|
| 47 |
+
"dtype": "float32",
|
| 48 |
+
"shape": [
|
| 49 |
+
"rows",
|
| 50 |
+
"k"
|
| 51 |
+
],
|
| 52 |
+
"note": "raw candidate logits; the first k_row entries are the row's option logits"
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
"seq_multiple": 64,
|
| 56 |
+
"positions": "0..seq-1, implicit",
|
| 57 |
+
"attention": "causal; no mask input (right padding cannot reach earlier positions)"
|
| 58 |
+
},
|
| 59 |
+
"prompt_version": "structured-segmented-candidate-endpoints-global-query-v2",
|
| 60 |
+
"max_row_tokens": 16384,
|
| 61 |
+
"min_options": 2,
|
| 62 |
+
"max_options": 255,
|
| 63 |
+
"max_score_levels": 10,
|
| 64 |
+
"choice_null_description": "null",
|
| 65 |
+
"pad": 248044,
|
| 66 |
+
"templates": {
|
| 67 |
+
"prefix": "Context:\n{payload(state)}\n\nTask type: {type}\nQuestion:\n{payload(instructions)}\nOptions:",
|
| 68 |
+
"option": "\n<option>\n{canonical({\"key\": key, \"description\": description})}\n</option>",
|
| 69 |
+
"suffix": "\n\nSelect the single option best supported by the context and instructions.\nDecision:",
|
| 70 |
+
"payload": "a str verbatim, anything else canonical()",
|
| 71 |
+
"canonical": "json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(',', ':'))",
|
| 72 |
+
"tokenize": "each segment on its own, add_special_tokens=False; cand_pos = last token of each option, query_pos = last token of the row",
|
| 73 |
+
"noul_descriptions": {
|
| 74 |
+
"false": "The answer to the question is no.",
|
| 75 |
+
"true": "The answer to the question is yes."
|
| 76 |
+
},
|
| 77 |
+
"choice_null_description": "key: a null description becomes the key; null: it stays JSON null"
|
| 78 |
+
},
|
| 79 |
+
"option_logits": {
|
| 80 |
+
"choice": "logits[row, :k] in key order",
|
| 81 |
+
"noul": "logits[row, :2] (0 = false, 1 = true)",
|
| 82 |
+
"score": "logits[row, :levels]"
|
| 83 |
+
},
|
| 84 |
+
"opset": 20,
|
| 85 |
+
"precision": "fp32 compute; backbone weights BF16 (Cast at load), head F32"
|
| 86 |
+
}
|
eos/model-fp32.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7917445d40c79ba330d0ff926a85401532088b29e463f86cd48417e86a53c06c
|
| 3 |
+
size 8110807
|