Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -15,9 +15,6 @@ tags:
|
|
| 15 |
|
| 16 |
The [Von](https://huggingface.co/wfzyx/von) System One decision model (ModernBERT-large, 395M, English, 8192-token context), 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 |
-
Pick the image that matches the host. The `-v` mounts cache the model, so only the first
|
| 19 |
-
run downloads it.
|
| 20 |
-
|
| 21 |
```bash
|
| 22 |
# CPU host
|
| 23 |
docker run --rm -p 8080:8080 \
|
|
@@ -28,27 +25,25 @@ docker run --rm -p 8080:8080 \
|
|
| 28 |
docker run --rm --gpus all -p 8080:8080 \
|
| 29 |
-v ~/.cache/verdict:/root/.cache/verdict \
|
| 30 |
sgyaqing/verdict:0.2.0-cuda serve verdict-models/von --host 0.0.0.0
|
| 31 |
-
```
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
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`).
|
| 37 |
|
| 38 |
## Performance
|
| 39 |
|
| 40 |
-
Measured on one
|
| 41 |
-
[`oha`](https://github.com/hatoo/oha) and an identical request body for both servers. The
|
| 42 |
-
baseline is the model author's own server (`von serve`, von-sdk, `--no-chains`); the Verdict
|
| 43 |
-
column is this package. Latencies are per-request P50 / P99 at the stated concurrency. The
|
| 44 |
-
ratios are oriented so that **above 1× means Verdict is ahead** in both: throughput ratio =
|
| 45 |
-
Verdict ÷ baseline, latency ratio = baseline ÷ Verdict.
|
| 46 |
|
| 47 |
-
| concurrency | Verdict rps | Verdict P50 / P99 | `von
|
| 48 |
|---|---:|---:|---:|---:|---:|---:|
|
| 49 |
-
| 1 | 113.8 | 8.61 / 11.98
|
| 50 |
-
| 8 | 536.4 | 14.86 / 16.61
|
| 51 |
-
| 64 | 1476.1 | 42.58 / 53.24
|
| 52 |
|
| 53 |
## Files
|
| 54 |
|
|
|
|
| 15 |
|
| 16 |
The [Von](https://huggingface.co/wfzyx/von) System One decision model (ModernBERT-large, 395M, English, 8192-token context), 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 |
# CPU host
|
| 20 |
docker run --rm -p 8080:8080 \
|
|
|
|
| 25 |
docker run --rm --gpus all -p 8080:8080 \
|
| 26 |
-v ~/.cache/verdict:/root/.cache/verdict \
|
| 27 |
sgyaqing/verdict:0.2.0-cuda serve verdict-models/von --host 0.0.0.0
|
|
|
|
| 28 |
|
| 29 |
+
# ModelScope:
|
| 30 |
+
docker run --rm -p 8080:8080 \
|
| 31 |
+
-e VERDICT_USE_MODELSCOPE=1 \
|
| 32 |
+
-v ~/.cache/verdict:/root/.cache/verdict \
|
| 33 |
+
sgyaqing/verdict:0.2.0-cpu serve sgyaqing/von --host 0.0.0.0
|
| 34 |
+
```
|
| 35 |
|
| 36 |
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`).
|
| 37 |
|
| 38 |
## Performance
|
| 39 |
|
| 40 |
+
Measured on one RTX 4090, end to end over HTTP, against the model author's own server (`von serve`). Latencies in ms; a ratio above 1x means Verdict is ahead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
+
| concurrency | Verdict rps | `von serve` rps | ratio | Verdict P50 / P99 (ms) | `von serve` P50 / P99 (ms) | ratio |
|
| 43 |
|---|---:|---:|---:|---:|---:|---:|
|
| 44 |
+
| 1 | 113.8 | 46.4 | 2.45x | 8.61 / 11.98 | 22.89 / 28.46 | 2.66 / 2.38x |
|
| 45 |
+
| 8 | 536.4 | 31.2 | 17.2x | 14.86 / 16.61 | 250.91 / 435.99 | 16.9 / 26.2x |
|
| 46 |
+
| 64 | 1476.1 | 22.3 | 66.1x | 42.58 / 53.24 | 2848.80 / 3333.40 | 66.9 / 62.6x |
|
| 47 |
|
| 48 |
## Files
|
| 49 |
|