Instructions to use odecide-models/laya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use odecide-models/laya with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +54 -0
- SHA256SUMS +6 -0
- laya.onnx +3 -0
- laya.onnx.data +3 -0
- model.json +18 -0
- tokenizer/tokenizer.json +0 -0
- tokenizer/tokenizer_config.json +14 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
laya.onnx.data filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: convaiinnovations/laya
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
+
tags:
|
| 6 |
+
- verdict
|
| 7 |
+
- onnx
|
| 8 |
+
- system-one
|
| 9 |
+
- decision-models
|
| 10 |
+
- laya
|
| 11 |
+
- serving
|
| 12 |
---
|
| 13 |
+
|
| 14 |
+
# Laya (verdict-ready)
|
| 15 |
+
|
| 16 |
+
The [Laya](https://huggingface.co/convaiinnovations/laya) System One decision
|
| 17 |
+
model, exported to ONNX fp32 and packaged for
|
| 18 |
+
[Verdict](https://github.com/sgyaqing/verdict) -- a high-performance serving
|
| 19 |
+
engine for System One decision models. One command, no Python:
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
verdict serve verdict-models/laya
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Endpoints: native `POST /v1/choice | /v1/score | /v1/noul` plus an
|
| 26 |
+
OpenAI-compatible layer (`/v1/chat/completions`, `/v1/models`) that the
|
| 27 |
+
official `openai` SDK hits with zero changes. Mirrors work via the standard
|
| 28 |
+
`HF_ENDPOINT` environment variable; the same repo is mirrored on ModelScope
|
| 29 |
+
as `verdict-models/laya` (`VERDICT_USE_MODELSCOPE=1`).
|
| 30 |
+
|
| 31 |
+
## Files
|
| 32 |
+
|
| 33 |
+
| File | Purpose |
|
| 34 |
+
|---|---|
|
| 35 |
+
| `model.json` | manifest: graph file name, budgets, calibration temperatures |
|
| 36 |
+
| `laya.onnx` + `laya.onnx.data` | the ONNX graph (fp32, external weights) |
|
| 37 |
+
| `tokenizer/tokenizer.json` (+ `tokenizer_config.json`) | the tokenizer |
|
| 38 |
+
| `SHA256SUMS` | checksums for every file above |
|
| 39 |
+
|
| 40 |
+
## Provenance & fidelity
|
| 41 |
+
|
| 42 |
+
Weights are unchanged from `convaiinnovations/laya`; this repo adds the ONNX
|
| 43 |
+
export and the serving manifest (Apache-2.0 §4(b): modifications are the
|
| 44 |
+
export and packaging, stated here). Conversion and serving are graded against
|
| 45 |
+
the official reference path at every layer:
|
| 46 |
+
|
| 47 |
+
- export parity: max logits difference 6.6e-6 against the official forward
|
| 48 |
+
- token ids: id-for-id identical to the official pipeline
|
| 49 |
+
- responses: round-4 probabilities identical (golden vectors, 40 cases per task)
|
| 50 |
+
- both CPU and CUDA execution providers, worst logits difference 5e-5
|
| 51 |
+
against a 2e-4 tolerance; the response layer is bitwise
|
| 52 |
+
|
| 53 |
+
## License
|
| 54 |
+
|
| 55 |
+
Apache-2.0, inherited from the base model. Credit for the model itself
|
| 56 |
+
belongs to the [original authors](https://huggingface.co/convaiinnovations/laya);
|
| 57 |
+
this repository only repackages it for serving.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
13eeae47a9ec0a150f1c9f441c188c6c1631efc0312f0c992caa42c36ae1a875 README.md
|
| 2 |
+
07bbfc5fb5ac45f2e21eaadd2e67101a013445866d0a2fd2c0e1520b5255cf01 model.json
|
| 3 |
+
f8569c39321576db724e2544826343af35adccb3ab3d5c45a57bb07f25fd48ca laya.onnx
|
| 4 |
+
487746363a8da57bcadb4345352997d22a0fb90d70aa22c6856668d023242aba laya.onnx.data
|
| 5 |
+
6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30 tokenizer/tokenizer.json
|
| 6 |
+
50044de60daaa73df97d262e15a40d4faf0160e7d742df64b377877a1320dd12 tokenizer/tokenizer_config.json
|
laya.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8569c39321576db724e2544826343af35adccb3ab3d5c45a57bb07f25fd48ca
|
| 3 |
+
size 3832478
|
laya.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:487746363a8da57bcadb4345352997d22a0fb90d70aa22c6856668d023242aba
|
| 3 |
+
size 1685258240
|
model.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"graph": "laya.onnx",
|
| 3 |
+
"head_max_len": 192,
|
| 4 |
+
"max_len": 512,
|
| 5 |
+
"temperature": [
|
| 6 |
+
1.6369030475616455,
|
| 7 |
+
1.2514300346374512,
|
| 8 |
+
1.983399510383606
|
| 9 |
+
],
|
| 10 |
+
"temperature_by_options": {
|
| 11 |
+
"choice:11+": 0.10058280825614929,
|
| 12 |
+
"choice:2": 1.9063563346862793,
|
| 13 |
+
"choice:3-5": 1.7601518630981445,
|
| 14 |
+
"choice:6-10": 1.0000158548355103,
|
| 15 |
+
"noul:2": 1.983399510383606,
|
| 16 |
+
"score:3-5": 1.2514300346374512
|
| 17 |
+
}
|
| 18 |
+
}
|
tokenizer/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clean_up_tokenization_spaces": true,
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"mask_token": "[MASK]",
|
| 5 |
+
"model_input_names": [
|
| 6 |
+
"input_ids",
|
| 7 |
+
"attention_mask"
|
| 8 |
+
],
|
| 9 |
+
"model_max_length": 8192,
|
| 10 |
+
"pad_token": "[PAD]",
|
| 11 |
+
"sep_token": "[SEP]",
|
| 12 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 13 |
+
"unk_token": "[UNK]"
|
| 14 |
+
}
|