Instructions to use odecide-models/laya-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use odecide-models/laya-multilingual 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 +68 -0
- SHA256SUMS +5 -0
- laya-multilingual.onnx +3 -0
- model.json +15 -0
- tokenizer/tokenizer.json +3 -0
- tokenizer/tokenizer_config.json +22 -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 |
+
tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: convaiinnovations/laya-multilingual
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
+
tags:
|
| 6 |
+
- verdict
|
| 7 |
+
- onnx
|
| 8 |
+
- system-one
|
| 9 |
+
- decision-models
|
| 10 |
+
- laya
|
| 11 |
+
- multilingual
|
| 12 |
+
- serving
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# Laya Multilingual (Verdict-ready)
|
| 16 |
+
|
| 17 |
+
The [Laya Multilingual](https://huggingface.co/convaiinnovations/laya-multilingual)
|
| 18 |
+
System One decision model (mmBERT-base, 100+ languages), exported to ONNX fp32 and
|
| 19 |
+
packaged for [Verdict](https://github.com/sgyaqing/verdict) -- a high-performance
|
| 20 |
+
serving engine for System One decision models.
|
| 21 |
+
Serve it with one command:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
# Hugging Face (default hub; set HF_ENDPOINT to use a mirror):
|
| 25 |
+
verdict serve verdict-models/laya-multilingual
|
| 26 |
+
|
| 27 |
+
# ModelScope:
|
| 28 |
+
VERDICT_USE_MODELSCOPE=1 verdict serve sgyaqing/laya-multilingual
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
English-only workloads should use
|
| 32 |
+
[`verdict-models/laya`](https://huggingface.co/verdict-models/laya) (ModernBERT-large)
|
| 33 |
+
instead: it is the stronger checkpoint for English and roughly 2x faster for
|
| 34 |
+
everyone else. One Verdict process serves one model, so a mixed English /
|
| 35 |
+
non-English deployment runs two instances side by side and routes by language --
|
| 36 |
+
the official Laya library's `Router` makes exactly the same two-checkpoint split.
|
| 37 |
+
|
| 38 |
+
Endpoints: native `POST /v1/choice | /v1/score | /v1/noul` plus an
|
| 39 |
+
OpenAI-compatible layer (`/v1/chat/completions`, `/v1/models`) that the
|
| 40 |
+
official `openai` SDK hits with zero changes.
|
| 41 |
+
|
| 42 |
+
## Files
|
| 43 |
+
|
| 44 |
+
| File | Purpose |
|
| 45 |
+
|---|---|
|
| 46 |
+
| `model.json` | manifest: graph file name, budgets, calibration, special-token names |
|
| 47 |
+
| `laya-multilingual.onnx` | the ONNX graph (fp32) |
|
| 48 |
+
| `tokenizer/tokenizer.json` (+ `tokenizer_config.json`) | the tokenizer |
|
| 49 |
+
|
| 50 |
+
## Provenance & fidelity
|
| 51 |
+
|
| 52 |
+
Weights are unchanged from `convaiinnovations/laya-multilingual`; this repo adds
|
| 53 |
+
the ONNX export and the serving manifest (Apache-2.0 §4(b): modifications are the
|
| 54 |
+
export and packaging, stated here). Conversion and serving are graded against the
|
| 55 |
+
official reference path at every layer:
|
| 56 |
+
|
| 57 |
+
- export parity: max logits difference 3.9e-5 against the official forward
|
| 58 |
+
- token ids: id-for-id identical to the official pipeline
|
| 59 |
+
- responses: round-4 probabilities bitwise identical -- 43 golden cases across the
|
| 60 |
+
three tasks (23 choice / 11 score / 9 noul), including an 8-case Chinese semantic
|
| 61 |
+
group, since this checkpoint exists for non-English input
|
| 62 |
+
- serving on the CPU execution provider: worst logits difference 2.4e-5 against a
|
| 63 |
+
2e-4 tolerance, response layer bitwise; batch invariance response-layer zero.
|
| 64 |
+
CUDA grading pending (same discipline as the base model: GPU is not exempt by
|
| 65 |
+
default).
|
| 66 |
+
|
| 67 |
+
## License
|
| 68 |
+
|
| 69 |
+
Apache-2.0, inherited from the base model. Credit for the model itself belongs to the
|
| 70 |
+
[original authors](https://huggingface.co/convaiinnovations/laya-multilingual);
|
| 71 |
+
this repository only repackages it for serving.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0fa4b32da74a1b507e4af0b1bc89e898e058c74876d4a642aa322a8e04c6b613 README.md
|
| 2 |
+
41ae6755d450689c0f1fb3be4fc723aebe1ca1e01df9de5b4f71c4f4345b7db3 model.json
|
| 3 |
+
e5fbf0e375a1cd6dcf6d8eeda9ccbcc17c30b645f8c78c7deab66a2c62d606ea laya-multilingual.onnx
|
| 4 |
+
609d8f4c067cd3950f88594c5a802616cea245823836ef5848ee4fc40aab5b6f tokenizer/tokenizer.json
|
| 5 |
+
6c6b2d8e3c84ce0e671c129cd6b374b235d6f9863042a5836358d00a89bbb5a1 tokenizer/tokenizer_config.json
|
laya-multilingual.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5fbf0e375a1cd6dcf6d8eeda9ccbcc17c30b645f8c78c7deab66a2c62d606ea
|
| 3 |
+
size 1290694968
|
model.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"graph": "laya-multilingual.onnx",
|
| 3 |
+
"max_len": 1024,
|
| 4 |
+
"head_max_len": 256,
|
| 5 |
+
"temperature": [
|
| 6 |
+
1.0,
|
| 7 |
+
1.0,
|
| 8 |
+
1.0
|
| 9 |
+
],
|
| 10 |
+
"temperature_by_options": {},
|
| 11 |
+
"cls_token": "<bos>",
|
| 12 |
+
"sep_token": "<eos>",
|
| 13 |
+
"mask_token": "<mask>",
|
| 14 |
+
"pad_token": "<pad>"
|
| 15 |
+
}
|
tokenizer/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:609d8f4c067cd3950f88594c5a802616cea245823836ef5848ee4fc40aab5b6f
|
| 3 |
+
size 34363188
|
tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<bos>",
|
| 3 |
+
"clean_up_tokenization_spaces": false,
|
| 4 |
+
"cls_token": "<bos>",
|
| 5 |
+
"eos_token": "<eos>",
|
| 6 |
+
"extra_special_tokens": {
|
| 7 |
+
"extra_0": "<start_of_turn>",
|
| 8 |
+
"extra_1": "<end_of_turn>"
|
| 9 |
+
},
|
| 10 |
+
"mask_token": "<mask>",
|
| 11 |
+
"model_input_names": [
|
| 12 |
+
"input_ids",
|
| 13 |
+
"attention_mask"
|
| 14 |
+
],
|
| 15 |
+
"model_max_length": 8192,
|
| 16 |
+
"pad_token": "<pad>",
|
| 17 |
+
"padding_side": "right",
|
| 18 |
+
"sep_token": "<eos>",
|
| 19 |
+
"spaces_between_special_tokens": false,
|
| 20 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 21 |
+
"unk_token": "<unk>"
|
| 22 |
+
}
|