sgyaqing commited on
Commit
e348fe9
·
verified ·
1 Parent(s): 2febec1

v0.2 manifest: add runtime/family (weights unchanged)

Browse files
Files changed (4) hide show
  1. .ms_upload_cache +1 -0
  2. README.md +27 -9
  3. SHA256SUMS +2 -2
  4. model.json +2 -0
.ms_upload_cache ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version": 3, "repo_id": "sgyaqing/laya-multilingual", "files": {"tokenizer/tokenizer.json|1791360536.0|34363188": {"hash": "609d8f4c067cd3950f88594c5a802616cea245823836ef5848ee4fc40aab5b6f", "size": 34363188, "status": "c"}, "laya-multilingual.onnx|1791516903.0|1290694968": {"hash": "e5fbf0e375a1cd6dcf6d8eeda9ccbcc17c30b645f8c78c7deab66a2c62d606ea", "size": 1290694968, "status": "c"}, "model.json|1792055635.0|309": {"hash": "8f31964418583f8221f873a25b75fcdaa4dc9d674b0373cc50a1ef4503ae2c69", "size": 309, "status": "c"}, "README.md|1792069652.0|3365": {"hash": "9a4b7086e7870a8b9d51de674ffc6546a9c7e1278d33b2f51395057bfc21b850", "size": 3365, "status": "c"}, "tokenizer/tokenizer_config.json|1791360486.0|524": {"hash": "6c6b2d8e3c84ce0e671c129cd6b374b235d6f9863042a5836358d00a89bbb5a1", "size": 524, "status": "c"}, "SHA256SUMS|1792069756.0|431": {"hash": "a3b0771c3e4c809097b05e5508a4a2a13c704fe4103bb82feac11d80406cec13", "size": 431, "status": "c"}}}
README.md CHANGED
@@ -16,26 +16,44 @@ tags:
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):
21
- verdict serve verdict-models/laya-multilingual
 
 
 
22
 
23
- # ModelScope:
24
- VERDICT_USE_MODELSCOPE=1 verdict serve sgyaqing/laya-multilingual
 
 
 
25
  ```
26
 
 
 
 
27
  For English-only workloads, use [`verdict-models/laya`](https://huggingface.co/verdict-models/laya).
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
- Measured on one RTX 3080:
 
 
 
 
 
34
 
35
- | concurrency 32 | Throughput | P50 |
36
- |---|---:|---:|
37
- | FastAPI + torch | 46.0 rps | 691 ms |
38
- | Verdict | 1059 rps | 30 ms |
 
39
 
40
  ## Files
41
 
 
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
+ Pick the image that matches the host. The `-v` mounts cache the model, so only the first
20
+ run downloads it.
21
+
22
  ```bash
23
+ # CPU host
24
+ docker run --rm -p 8080:8080 \
25
+ -v ~/.cache/huggingface:/root/.cache/huggingface \
26
+ -v ~/.cache/verdict:/root/.cache/verdict \
27
+ sgyaqing/verdict:0.2.0-cpu serve verdict-models/laya-multilingual
28
 
29
+ # GPU host
30
+ docker run --rm --gpus all -p 8080:8080 \
31
+ -v ~/.cache/huggingface:/root/.cache/huggingface \
32
+ -v ~/.cache/verdict:/root/.cache/verdict \
33
+ sgyaqing/verdict:0.2.0-cuda serve verdict-models/laya-multilingual
34
  ```
35
 
36
+ Add `-e VERDICT_USE_MODELSCOPE=1` and use `sgyaqing/laya-multilingual` to fetch from ModelScope
37
+ instead of the hub; add `-e HF_ENDPOINT=https://hf-mirror.com` if the hub is slow or unreachable.
38
+
39
  For English-only workloads, use [`verdict-models/laya`](https://huggingface.co/verdict-models/laya).
40
 
41
  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`).
42
 
43
  ## Performance
44
 
45
+ Measured on one machine (RTX 4090, AMD EPYC 7543, 16 threads), end to end over HTTP with
46
+ [`oha`](https://github.com/hatoo/oha) and an identical request body for both servers. The
47
+ baseline is the model author's own server (`laya-serve`, `LAYA_MODELS=multilingual`); the
48
+ Verdict column is this package. Latencies are per-request P50 / P99 at the stated concurrency.
49
+ The ratios are oriented so that **above 1× means Verdict is ahead** in both: throughput ratio =
50
+ Verdict ÷ baseline, latency ratio = baseline ÷ Verdict.
51
 
52
+ | concurrency | Verdict rps | Verdict P50 / P99 | `laya-serve` rps | `laya-serve` P50 / P99 | ratio rps | ratio P50 / P99 |
53
+ |---|---:|---:|---:|---:|---:|---:|
54
+ | 1 | 123.2 | 8.03 / 10.29 ms | 49.1 | 18.54 / 28.92 ms | 2.51× | 2.31 / 2.81× |
55
+ | 8 | 553.4 | 13.99 / 19.79 ms | 46.3 | 184.36 / 204.24 ms | 11.9× | 13.2 / 10.3× |
56
+ | 64 | 2534.4 | 24.67 / 32.23 ms | refused requests | — | — | — |
57
 
58
  ## Files
59
 
SHA256SUMS CHANGED
@@ -1,5 +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
 
1
+ 9a4b7086e7870a8b9d51de674ffc6546a9c7e1278d33b2f51395057bfc21b850 README.md
2
+ 8f31964418583f8221f873a25b75fcdaa4dc9d674b0373cc50a1ef4503ae2c69 model.json
3
  e5fbf0e375a1cd6dcf6d8eeda9ccbcc17c30b645f8c78c7deab66a2c62d606ea laya-multilingual.onnx
4
  609d8f4c067cd3950f88594c5a802616cea245823836ef5848ee4fc40aab5b6f tokenizer/tokenizer.json
5
  6c6b2d8e3c84ce0e671c129cd6b374b235d6f9863042a5836358d00a89bbb5a1 tokenizer/tokenizer_config.json
model.json CHANGED
@@ -1,4 +1,6 @@
1
  {
 
 
2
  "graph": "laya-multilingual.onnx",
3
  "max_len": 1024,
4
  "head_max_len": 256,
 
1
  {
2
+ "family": "marker_head",
3
+ "runtime": "ort",
4
  "graph": "laya-multilingual.onnx",
5
  "max_len": 1024,
6
  "head_max_len": 256,