logo
Browse Source

Update benchmark

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
9f73f60382
  1. 4
      benchmark/README.md
  2. 3
      benchmark/evaluate.py

4
benchmark/README.md

@ -11,7 +11,7 @@ cd SentEval/data/downstream
2. Run test script
```bash
python transformers_test.py MODEL_NAME
python evaluate.py MODEL_NAME
```
## QPS Test
@ -30,4 +30,4 @@ python qps_test --model paraphrase-albert-small-v2 --pipe --onnx --triton --num
- `--onnx`: optional, on/off flag to enable qps test for onnx
- `--triton`: optional, on/off flag to enable qps for triton (please make sure that triton client is ready)
- `--num`: optional, integer, defaults to 100, batch size in each loop (10 loops in total)
- `--device`: optional, int, defaults to -1, cuda index or use cpu when -1
- `--device`: optional, int, defaults to -1, cuda index or use cpu when -1

3
benchmark/evaluate.py

@ -6,8 +6,7 @@
#
"""
Clone GenSen repo here: https://github.com/Maluuba/gensen.git
And follow instructions for loading the model used in batcher
Clone repo here: https://github.com/facebookresearch/SentEval.git
"""
from __future__ import absolute_import, division, unicode_literals

Loading…
Cancel
Save