-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbrun.sh
executable file
·37 lines (27 loc) · 932 Bytes
/
brun.sh
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
cd build; make; cd ..;
# config file
config=./configs/systolic_ws_128x128_dev.json
mem_config=./configs/memory_configs/neupims.json
model_config=./configs/model_configs/gpt3-7B.json
sys_config=./configs/system_configs/sub-batch-off.json
cli_config=./request-traces/clb/share-gpt2-bs512-ms7B-tp4-clb-0.csv
# log file
LOG_LEVEL=info
DATE=$(date "+%F_%H:%M:%S")
LOG_DIR=experiment_logs/${DATE}
mkdir -p $LOG_DIR;
LOG_NAME=simulator.log
CONFIG_FILE=${LOG_DIR}/config.log
echo "log directory: $LOG_DIR"
./build/bin/Simulator \
--config $config \
--mem_config $mem_config \
--cli_config $cli_config \
--model_config $model_config \
--sys_config $sys_config \
--log_dir $LOG_DIR
echo "memory config: $mem_config" > ${CONFIG_FILE}
echo "client config: $cli_config" >> ${CONFIG_FILE}
echo "model config: $model_config" >> ${CONFIG_FILE}
echo "system config: $sys_config" >> ${CONFIG_FILE}
cat ${CONFIG_FILE}