README.md 1.44 KB
Newer Older
1
2
### Benchmark sglang

Lianmin Zheng's avatar
Lianmin Zheng committed
3
Run Llama-7B
4
5
6
7
8

```
python3 -m sglang.launch_server --model-path meta-llama/Llama-2-7b-chat-hf --port 30000
```

Lianmin Zheng's avatar
Lianmin Zheng committed
9
Run Mixtral-8x7B
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(When there is a CUDA out-of-memory error, try to reduce the `--mem-fraction-static`)

```
python3 -m sglang.launch_server --model-path mistralai/Mixtral-8x7B-Instruct-v0.1 --port 30000 --tp-size 8
```

Benchmark(short output)

```
python3 bench_sglang.py --tokenizer meta-llama/Llama-2-7b-chat-hf
```

Benchmark(long output)

```
python3 bench_sglang.py --tokenizer meta-llama/Llama-2-7b-chat-hf --long
```

### Benchmark vLLM

Lianmin Zheng's avatar
Lianmin Zheng committed
30
Run Llama-7B
31
32
33
34
35

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

Lianmin Zheng's avatar
Lianmin Zheng committed
36
Run Mixtral-8x7B
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

```
python3 -m vllm.entrypoints.api_server --tokenizer-mode auto --model mistralai/Mixtral-8x7B-Instruct-v0.1 --disable-log-requests --port 21000 --tensor-parallel-size 8
```

Benchmark(short output)

```
python3 bench_other.py --tokenizer meta-llama/Llama-2-7b-chat-hf --backend vllm
```

Benchmark(long output)

```
python3 bench_other.py --tokenizer meta-llama/Llama-2-7b-chat-hf --backend vllm --long
```

### Benchmark guidance

Lianmin Zheng's avatar
Lianmin Zheng committed
56
Benchmark Llama-7B (short output)
57
58
59
60
61

```
python3 bench_other.py --tokenizer meta-llama/Llama-2-7b-chat-hf --backend guidance --parallel 1
```

Lianmin Zheng's avatar
Lianmin Zheng committed
62
Benchmark Llama-7B (long output)
63
64
65

```
python3 bench_other.py --tokenizer meta-llama/Llama-2-7b-chat-hf --backend guidance --parallel 1 --long
Lianmin Zheng's avatar
Lianmin Zheng committed
66
```