sgyaqing commited on
Commit
d360232
·
verified ·
1 Parent(s): 04c15f8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +18 -18
README.md CHANGED
@@ -13,20 +13,26 @@ tags:
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. Serve it with one command:
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
 
@@ -39,19 +45,13 @@ as `verdict-models/laya` (`VERDICT_USE_MODELSCOPE=1`).
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.
 
13
 
14
  # Laya (Verdict-ready)
15
 
16
+ The [Laya](https://huggingface.co/convaiinnovations/laya) System One decision model, 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:
 
 
 
17
 
18
  ```bash
19
+ # Hugging Face (default hub; set HF_ENDPOINT to use a mirror):
20
  verdict serve verdict-models/laya
21
+
22
+ # ModelScope:
23
+ VERDICT_USE_MODELSCOPE=1 verdict serve sgyaqing/laya
24
  ```
25
 
26
+ 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`).
27
+
28
+ ## Performance
29
+
30
+ One RTX 3080, one session, one fixed request (full methodology and CPU numbers in the [engine repo](https://github.com/sgyaqing/verdict)):
31
+
32
+ | concurrency 32 | Throughput | P50 |
33
+ |---|---:|---:|
34
+ | FastAPI + torch (cuda) | 37.8 rps | 844 ms |
35
+ | Verdict (CUDA EP) | 408 rps | 78 ms |
36
 
37
  ## Files
38
 
 
45
 
46
  ## Provenance & fidelity
47
 
48
+ Weights are unchanged from `convaiinnovations/laya`; 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:
 
 
 
49
 
50
  - export parity: max logits difference 6.6e-6 against the official forward
51
  - token ids: id-for-id identical to the official pipeline
52
  - responses: round-4 probabilities identical (golden vectors, 40 cases per task)
53
+ - serving on both execution providers, against a 2e-4 tolerance: CPU worst logits difference 1.1e-4, CUDA 5e-5; response layer bitwise on both
 
54
 
55
  ## License
56
 
57
+ Apache-2.0, inherited from the base model. Credit for the model itself belongs to the [original authors](https://huggingface.co/convaiinnovations/laya); this repository only repackages it for serving.