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 README.md with huggingface_hub
Browse files
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 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 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
|
| 51 |
|---|---:|---:|---:|---:|---:|---:|
|
| 52 |
-
| 1 | 123.2 | 8.03 / 10.29
|
| 53 |
-
| 8 | 553.4 | 13.99 / 19.79
|
| 54 |
-
| 64 | 2534.4 | 24.67 / 32.23
|
| 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 |
|