README.md 1.11 KB
Newer Older
applesaucethebun's avatar
applesaucethebun committed
1
## Download Data
Lianmin Zheng's avatar
Lianmin Zheng committed
2
3
4
5
```
wget https://raw.githubusercontent.com/openai/grade-school-math/master/grade_school_math/data/test.jsonl
```

applesaucethebun's avatar
applesaucethebun committed
6
## Run Benchmark
Lianmin Zheng's avatar
Lianmin Zheng committed
7

applesaucethebun's avatar
applesaucethebun committed
8
### Benchmark SGLang
Lianmin Zheng's avatar
Lianmin Zheng committed
9
```
Liangsheng Yin's avatar
Liangsheng Yin committed
10
python -m sglang.launch_server --model-path meta-llama/Llama-2-7b-chat-hf --port 30000  --schedule-conservativeness 1.3
Lianmin Zheng's avatar
Lianmin Zheng committed
11
12
13
14
15
16
17
18
```

```
python3 bench_sglang.py --num-questions 64
python3 bench_sglang.py --num-questions 32 --parallel 1
```


applesaucethebun's avatar
applesaucethebun committed
19
### Benchmark vLLM
Lianmin Zheng's avatar
Lianmin Zheng committed
20
21
22
23
24
25
26
27
28
```
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 64 --backend vllm
```


applesaucethebun's avatar
applesaucethebun committed
29
### Benchmark LightLLM
Lianmin Zheng's avatar
Lianmin Zheng committed
30
31
32
33
34
35
36
37
38
39
```
# A10G
python -m lightllm.server.api_server --tokenizer_mode auto --model_dir ~/model_weights/llama-2-7b-chat-hf --max_total_token_num 16000 --port 22000
```

```
python3 bench_other.py --num-questions 64 --backend lightllm
```


applesaucethebun's avatar
applesaucethebun committed
40
### Benchmark Guidance
Lianmin Zheng's avatar
Lianmin Zheng committed
41
```
Liangsheng Yin's avatar
Liangsheng Yin committed
42
43
44
python3 bench_other.py --num-questions 8 --backend guidance --parallel 1 --n-ctx 4096 --model-path path/to/gguf
```

applesaucethebun's avatar
applesaucethebun committed
45
### Benchmark LMQL
46

Liangsheng Yin's avatar
Liangsheng Yin committed
47
48
```
python3 bench_other.py --num-questions 64 --backend lmql --parallel 1
Lianmin Zheng's avatar
Lianmin Zheng committed
49
```