sgyaqing commited on
Commit
6199ff6
·
verified ·
1 Parent(s): b6d031e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +11 -16
README.md CHANGED
@@ -16,9 +16,6 @@ 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
- 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 \
@@ -29,10 +26,13 @@ docker run --rm -p 8080:8080 \
29
  docker run --rm --gpus all -p 8080:8080 \
30
  -v ~/.cache/verdict:/root/.cache/verdict \
31
  sgyaqing/verdict:0.2.0-cuda serve verdict-models/laya-multilingual --host 0.0.0.0
32
- ```
33
 
34
- Add `-e VERDICT_USE_MODELSCOPE=1` and use `sgyaqing/laya-multilingual` to fetch from ModelScope
35
- instead of the hub; add `-e HF_ENDPOINT=https://hf-mirror.com` if the hub is slow or unreachable.
 
 
 
 
36
 
37
  For English-only workloads, use [`verdict-models/laya`](https://huggingface.co/verdict-models/laya).
38
 
@@ -40,18 +40,13 @@ Endpoints: the standard decision protocols `POST /v1/systemone` and `POST /v1/de
40
 
41
  ## Performance
42
 
43
- Measured on one machine (RTX 4090, AMD EPYC 7543, 16 threads), end to end over HTTP with
44
- [`oha`](https://github.com/hatoo/oha) and an identical request body for both servers. The
45
- baseline is the model author's own server (`laya-serve`, `LAYA_MODELS=multilingual`); the
46
- Verdict column is this package. Latencies are per-request P50 / P99 at the stated concurrency.
47
- The ratios are oriented so that **above 1× means Verdict is ahead** in both: throughput ratio =
48
- Verdict ÷ baseline, latency ratio = baseline ÷ Verdict.
49
 
50
- | concurrency | Verdict rps | Verdict P50 / P99 | `laya-serve` rps | `laya-serve` P50 / P99 | ratio rps | ratio P50 / P99 |
51
  |---|---:|---:|---:|---:|---:|---:|
52
- | 1 | 123.2 | 8.03 / 10.29 ms | 49.1 | 18.54 / 28.92 ms | 2.51× | 2.31 / 2.81× |
53
- | 8 | 553.4 | 13.99 / 19.79 ms | 46.3 | 184.36 / 204.24 ms | 11.9× | 13.2 / 10.3× |
54
- | 64 | 2534.4 | 24.67 / 32.23 ms | refused requests | — | — | — |
55
 
56
  ## Files
57
 
 
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
  # CPU host
21
  docker run --rm -p 8080:8080 \
 
26
  docker run --rm --gpus all -p 8080:8080 \
27
  -v ~/.cache/verdict:/root/.cache/verdict \
28
  sgyaqing/verdict:0.2.0-cuda serve verdict-models/laya-multilingual --host 0.0.0.0
 
29
 
30
+ # ModelScope:
31
+ docker run --rm -p 8080:8080 \
32
+ -e VERDICT_USE_MODELSCOPE=1 \
33
+ -v ~/.cache/verdict:/root/.cache/verdict \
34
+ sgyaqing/verdict:0.2.0-cpu serve sgyaqing/laya-multilingual --host 0.0.0.0
35
+ ```
36
 
37
  For English-only workloads, use [`verdict-models/laya`](https://huggingface.co/verdict-models/laya).
38
 
 
40
 
41
  ## Performance
42
 
43
+ Measured on one RTX 4090, end to end over HTTP, against the model author's own server (`laya-serve`). Latencies in ms; a ratio above 1x means Verdict is ahead.
 
 
 
 
 
44
 
45
+ | concurrency | Verdict rps | `laya-serve` rps | ratio | Verdict P50 / P99 (ms) | `laya-serve` P50 / P99 (ms) | ratio |
46
  |---|---:|---:|---:|---:|---:|---:|
47
+ | 1 | 123.2 | 49.1 | 2.51x | 8.03 / 10.29 | 18.54 / 28.92 | 2.31 / 2.81x |
48
+ | 8 | 553.4 | 46.3 | 11.9x | 13.99 / 19.79 | 184.36 / 204.24 | 13.2 / 10.3x |
49
+ | 64 | 2534.4 | refused requests | — | 24.67 / 32.23 | refused requests | — |
50
 
51
  ## Files
52