forked from locuslab/wanda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathablate_weight_update.sh
32 lines (30 loc) · 938 Bytes
/
ablate_weight_update.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
for method in ablate_mag_seq ablate_wanda_seq ablate_mag_iter ablate_wanda_iter
do
CUDA_VISIBLE_DEVICES=0 python main.py \
--model decapoda-research/llama-7b-hf \
--nsamples 128 \
--sparsity_ratio 0.5 \
--sparsity_type unstructured \
--prune_method ${method} \
--save out/llama_7b_ablation/unstructured/
done
for method in ablate_mag_seq ablate_wanda_seq ablate_mag_iter ablate_wanda_iter
do
CUDA_VISIBLE_DEVICES=0 python main.py \
--model decapoda-research/llama-7b-hf \
--nsamples 128 \
--sparsity_ratio 0.5 \
--sparsity_type 4:8 \
--prune_method ${method} \
--save out/llama_7b_ablation/4:8/
done
for method in ablate_mag_seq ablate_wanda_seq ablate_mag_iter ablate_wanda_iter
do
CUDA_VISIBLE_DEVICES=0 python main.py \
--model decapoda-research/llama-7b-hf \
--nsamples 128 \
--sparsity_ratio 0.5 \
--sparsity_type 2:4 \
--prune_method ${method} \
--save out/llama_7b_ablation/2:4/
done