README.md 816 Bytes
Newer Older
Lianmin Zheng's avatar
Lianmin Zheng committed
1
2
## Run benchmark

Lianmin Zheng's avatar
Lianmin Zheng committed
3
4
NOTE: This is an implementation for replaying a given trace for throughput/latency benchmark purposes. It is not an actual ReAct agent implementation.

Lianmin Zheng's avatar
Lianmin Zheng committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
### Benchmark sglang
```
python -m sglang.launch_server --model-path meta-llama/Llama-2-7b-chat-hf --port 30000
```

```
python3 bench_sglang.py --num-questions 100
```


### Benchmark vllm
```
python3 -m vllm.entrypoints.api_server --tokenizer-mode auto --model meta-llama/Llama-2-7b-chat-hf --disable-log-requests --port 21000
```

```
python3 bench_other.py --num-questions 100 --backend vllm
```


### Benchmark guidance
```
Liangsheng Yin's avatar
Liangsheng Yin committed
27
python3 bench_other.py --num-questions 100 --backend guidance --parallel 1 --n-ctx 4096 --model-path path/to/gguf
Lianmin Zheng's avatar
Lianmin Zheng committed
28
```
Liangsheng Yin's avatar
Liangsheng Yin committed
29
30
31
32
33
34

### Benchmark lmql

```
python3 bench_other.py --num-questions 100 --backend lmql --parallel 1
```