forked from casys-kaist/LLMServingSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·82 lines (69 loc) · 3.73 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·82 lines (69 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# #!/bin/bash
# Single instance example
python main.py --cluster-config 'cluster_config/single_node_single_instance.json' \
--fp 16 --block-size 16 \
--dataset '/dataset/example_trace.jsonl' --output 'output/example_single_run.csv' \
--num-req 100 --log-interval 1.0
# Multi instance example
python main.py --cluster-config 'cluster_config/single_node_multi_instance.json' \
--fp 16 --block-size 16 \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_multi_run.csv' \
--num-req 10
# PD example
python main.py --cluster-config 'cluster_config/single_node_pd_instance.json' \
--fp 16 --block-size 16 \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_pd_run.csv' \
--num-req 10
# MoE example
python main.py --cluster-config 'cluster_config/single_node_moe_single_instance.json' \
--fp 16 --block-size 16 \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_moe_run.csv' \
--num-req 10
# Prefix caching example
python main.py --cluster-config 'cluster_config/single_node_single_instance.json' \
--fp 16 --block-size 16 --enable-prefix-caching \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_prefix_run.csv' \
--num-req 10
# CXL example
python main.py --cluster-config 'cluster_config/single_node_cxl_instance.json' \
--fp 16 --block-size 16 \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_cxl_run.csv' \
--num-req 10
# Prefix cache with cpu mem example
python main.py --cluster-config 'cluster_config/single_node_single_instance.json' \
--fp 16 --block-size 16 --enable-prefix-caching \
--dataset '/dataset/example_trace.jsonl' --output 'output/example_prefix_cpu_mem_run.csv' \
--num-req 10
# Prefix cache with CPU Prefix Cache Pool example (Single Node)
python main.py --cluster-config 'cluster_config/single_node_multi_instance.json' \
--fp 16 --block-size 16 \
--enable-prefix-caching --enable-prefix-sharing --prefix-storage CPU \
--dataset '/dataset/example_trace.jsonl' --output 'output/example_prefix_cpu_mem_pool_run.csv' \
--num-req 10
# Prefix cache with CPU Prefix Cache Pool example (Dual Node)
python main.py --cluster-config 'cluster_config/dual_node_multi_instance.json' \
--fp 16 --block-size 16 \
--enable-prefix-caching --enable-prefix-sharing --prefix-storage CPU \
--dataset '/dataset/example_trace.jsonl' --output 'output/example_dual_prefix_cpu_mem_pool_run.csv' \
--num-req 10
# Power model example
python main.py --cluster-config 'cluster_config/single_node_power_instance.json' \
--fp 16 --block-size 16 \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_power_run.csv' \
--num-req 10 --log-interval 0.1
# PIM example
python main.py --cluster-config 'cluster_config/single_node_pim_instance.json' \
--fp 16 --block-size 16 --enable-attn-offloading \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_pim_run.csv' \
--num-req 10 --log-interval 1 --log-level WARNING
# Sub-batch interleaving example
python main.py --cluster-config 'cluster_config/single_node_pim_instance.json' \
--fp 16 --block-size 16 --enable-attn-offloading --enable-sub-batch-interleaving \
--dataset 'dataset/example_trace.jsonl' --output 'output/example_pim_sub_batch_run.csv' \
--num-req 10 --log-interval 1 --log-level WARNING
# NS-3 example
# Note: NS-3 integration is currently a work in progress. The following command is a placeholder and may not work until the NS-3 integration is complete.
# python main.py --cluster-config 'cluster_config/single_node_single_instance.json' \
# --fp 16 --block-size 16 --network-backend 'ns3' \
# --dataset 'dataset/example_trace.jsonl' --output 'output/example_ns3_run.csv' \
# --num-req 10