-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_baselines.sh
More file actions
66 lines (56 loc) · 4.2 KB
/
run_baselines.sh
File metadata and controls
66 lines (56 loc) · 4.2 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
#!/bin/bash
# ===========================================
# 环境变量配置 - 请根据您的环境修改以下路径
# ===========================================
export MERGED_MODEL_PATH="/path/to/your/merged_models" # 合并模型存储路径
export RESULTS_PATH="/path/to/your/results" # 结果存储路径
export CUDA_VISIBLE_DEVICES=4,5,6,7
export HF_ENDPOINT=https://hf-mirror.com
export IS_ALPACA_EVAL_2=False
export VLLM_WORKER_MULTIPROC_METHOD=spawn
export HF_HUB_OFFLINE=1
fusion_bench --config-name GMA_llama_dare
python distributed_inference_vllm.py \
--base_model ${MERGED_MODEL_PATH}/mistral_7b_dare1.0_lm_math_code_sciq \
--task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
python evaluation.py --model_name mistral_7b_dare1.0_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_dare1.0.log
fusion_bench --config-name GMA_llama_dareties
python distributed_inference_vllm.py \
--base_model ${MERGED_MODEL_PATH}/mistral_7b_daretiesmerge1.0_lm_math_code_sciq \
--task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
python evaluation.py --model_name mistral_7b_daretiesmerge1.0_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_daretiesmerge1.0.log
fusion_bench --config-name GMA_llama_della
python distributed_inference_vllm.py \
--base_model ${MERGED_MODEL_PATH}/mistral_7b_della1.0_lm_math_code_sciq \
--task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
python evaluation.py --model_name mistral_7b_della1.0_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_della1.0.log
fusion_bench --config-name GMA_llama_rankmean
python distributed_inference_vllm.py \
--base_model ${MERGED_MODEL_PATH}/mistral_7b_rankmean_lm_math_code_sciq \
--task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
python evaluation.py --model_name mistral_7b_rankmean_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_rankmean.log
fusion_bench --config-name GMA_llama_TA
python distributed_inference_vllm.py \
--base_model ${MERGED_MODEL_PATH}/mistral_7b_TA1.0_lm_math_code_sciq \
--task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
python evaluation.py --model_name mistral_7b_TA1.0_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_TA1.0.log
fusion_bench --config-name GMA_llama_ties
python distributed_inference_vllm.py \
--base_model ${MERGED_MODEL_PATH}/mistral_7b_tiesmerge1.0_lm_math_code_sciq \
--task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
python evaluation.py --model_name mistral_7b_tiesmerge1.0_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_tiesmerge1.0.log
# fusion_bench --config-name GMA_llama_mod
# python distributed_inference_vllm.py \
# --base_model ${MERGED_MODEL_PATH}/mistral_7b_mod_lm_math_code_sciq \
# --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
# python evaluation.py --model_name mistral_7b_mod_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_mod.log
# fusion_bench --config-name GMA_llama_random_fill
# python distributed_inference_vllm.py \
# --base_model ${MERGED_MODEL_PATH}/mistral_7b_randomfill_lm_math_code_sciq \
# --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
# python evaluation.py --model_name mistral_7b_randomfill_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_randomfill.log
# fusion_bench --config-name GMA_llama_norm_prob_fill
# python distributed_inference_vllm.py \
# --base_model ${MERGED_MODEL_PATH}/mistral_7b_normprobfill_lm_math_code_sciq \
# --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq
# python evaluation.py --model_name mistral_7b_normprobfill_lm_math_code_sciq --task_name alpaca_eval,gsm8k,mbpp,human_eval,sciq > ${RESULTS_PATH}/lm_math_code_sciq/mistral_7b_normprobfill.log