sgyaqing commited on
Commit
472cbcd
·
verified ·
1 Parent(s): d93a4cb

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +18 -28
README.md CHANGED
@@ -14,11 +14,7 @@ tags:
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):
@@ -28,16 +24,18 @@ verdict serve verdict-models/laya-multilingual
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
 
@@ -46,26 +44,18 @@ official `openai` SDK hits with zero changes.
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.
 
14
 
15
  # Laya Multilingual (Verdict-ready)
16
 
17
+ The [Laya Multilingual](https://huggingface.co/convaiinnovations/laya-multilingual) System One decision model (mmBERT-base, 100+ languages), exported to ONNX fp32 and packaged for [Verdict](https://github.com/sgyaqing/verdict) -- a high-performance serving engine for System One decision models. Serve it with one command:
 
 
 
 
18
 
19
  ```bash
20
  # Hugging Face (default hub; set HF_ENDPOINT to use a mirror):
 
24
  VERDICT_USE_MODELSCOPE=1 verdict serve sgyaqing/laya-multilingual
25
  ```
26
 
27
+ English-only workloads should use [`verdict-models/laya`](https://huggingface.co/verdict-models/laya) (ModernBERT-large) instead: it is the stronger checkpoint for English, while this one is the faster graph (see Performance below). One Verdict process serves one model, so a mixed English / non-English deployment runs two instances side by side and routes by language -- the official Laya library's `Router` makes the same split.
 
 
 
 
 
28
 
29
+ Endpoints: the standard decision protocols `POST /v1/systemone` and `POST /v1/decisions`, native `POST /v1/choice | /v1/score | /v1/noul`, plus an OpenAI-compatible layer (`/v1/chat/completions`, `/v1/models`).
30
+
31
+ ## Performance
32
+
33
+ One RTX 3080, one session, one fixed request (full methodology and CPU numbers in the [engine repo](https://github.com/sgyaqing/verdict)):
34
+
35
+ | concurrency 32 | Throughput | P50 |
36
+ |---|---:|---:|
37
+ | FastAPI + torch (cuda) | 46.0 rps | 691 ms |
38
+ | Verdict (CUDA EP) | 1059 rps | 30 ms |
39
 
40
  ## Files
41
 
 
44
  | `model.json` | manifest: graph file name, budgets, calibration, special-token names |
45
  | `laya-multilingual.onnx` | the ONNX graph (fp32) |
46
  | `tokenizer/tokenizer.json` (+ `tokenizer_config.json`) | the tokenizer |
47
+ | `SHA256SUMS` | checksums for every file above |
48
 
49
  ## Provenance & fidelity
50
 
51
+ Weights are unchanged from `convaiinnovations/laya-multilingual`; this repo adds the ONNX export and the serving manifest (Apache-2.0 §4(b): modifications are the export and packaging, stated here). Conversion and serving are graded against the official reference path at every layer:
 
 
 
52
 
53
  - export parity: max logits difference 3.9e-5 against the official forward
54
  - token ids: id-for-id identical to the official pipeline
55
+ - responses: round-4 probabilities bitwise identical -- 43 golden cases across the three tasks (23 choice / 11 score / 9 noul), including an 8-case Chinese semantic group, since this checkpoint exists for non-English input
56
+ - serving on the CPU execution provider: worst logits difference 2.4e-5 against a 2e-4 tolerance, response layer bitwise; batch invariance response-layer zero.
57
+ - serving on the CUDA execution provider: worst logits difference 1.6e-5, response layer within the 1e-4 line (one case at 1.0e-4 -- a fourth-decimal boundary flip, consistent with the 1.6e-5 logits noise); batch invariance response-layer zero.
 
 
 
 
58
 
59
  ## License
60
 
61
+ Apache-2.0, inherited from the base model. Credit for the model itself belongs to the [original authors](https://huggingface.co/convaiinnovations/laya-multilingual); this repository only repackages it for serving.