-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📜 Add scripts for 64 digits passkey (to reproduce Fig 20-22).
- Loading branch information
henryzhongsc
committed
Oct 5, 2024
1 parent
a72a634
commit ace2663
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...lgraham_passkey/20480words_10x10x3_64digits/baseline/llama3-8b-instruct_rope_theta_32x.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
output_dir_root=$1 | ||
|
||
task="paulgraham_passkey" | ||
dataset="20480words_10x10x3_64digits" | ||
model="llama3-8b-instruct_rope_theta_32x" | ||
method="baseline" | ||
|
||
python pipeline/${method}/main.py \ | ||
--exp_desc ${task}_${dataset}_${model}_${method} \ | ||
--pipeline_config_dir config/pipeline_config/${method}/${task}/${model}.json \ | ||
--eval_config_dir config/eval_config/${task}/${dataset}.json \ | ||
--output_folder_dir ${output_dir_root}/${task}/${dataset}/${method}/${model}/ |
13 changes: 13 additions & 0 deletions
13
...s/paulgraham_passkey/20480words_10x10x3_64digits/h2o/llama3-8b-instruct_rope_theta_32x.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
compress_ratio=$1 # 2x, 4x, 6x, 8x | ||
output_dir_root=$2 | ||
|
||
task="paulgraham_passkey" | ||
dataset="20480words_10x10x3_64digits" | ||
model="llama3-8b-instruct_rope_theta_32x" | ||
method="h2o" | ||
|
||
python pipeline/${method}/main.py \ | ||
--exp_desc ${task}_${dataset}_${model}_${method}_${compress_ratio} \ | ||
--pipeline_config_dir config/pipeline_config/${method}/${task}/${model}/${compress_ratio}.json \ | ||
--eval_config_dir config/eval_config/${task}/${dataset}.json \ | ||
--output_folder_dir ${output_dir_root}/${task}/${dataset}/${method}/${model}/${compress_ratio}/ |
13 changes: 13 additions & 0 deletions
13
...0480words_10x10x3_64digits/infllm/llama3-8b-instruct_rope_theta_32x_infinity_model_len.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
compress_ratio=$1 # 2x, 4x, 6x, 8x | ||
output_dir_root=$2 | ||
|
||
task="paulgraham_passkey" | ||
dataset="20480words_10x10x3_64digits" | ||
model="llama3-8b-instruct_rope_theta_32x_infinity_model_len" | ||
method="infllm" | ||
|
||
python pipeline/inf_stream_llm/main.py \ | ||
--exp_desc ${task}_${dataset}_${model}_${method}_${compress_ratio} \ | ||
--pipeline_config_dir config/pipeline_config/${method}/${task}/${model}/${compress_ratio}.json \ | ||
--eval_config_dir config/eval_config/${task}/${dataset}.json \ | ||
--output_folder_dir ${output_dir_root}/${task}/${dataset}/${method}/${model}/${compress_ratio}/ |
13 changes: 13 additions & 0 deletions
13
...graham_passkey/20480words_10x10x3_64digits/kivi/2bit/llama3-8b-instruct_rope_theta_32x.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
output_dir_root=$1 | ||
|
||
task="paulgraham_passkey" | ||
dataset="20480words_10x10x3_64digits" | ||
model="llama3-8b-instruct_rope_theta_32x" | ||
method="kivi" | ||
bits="2bit" | ||
|
||
python pipeline/${method}/main.py \ | ||
--exp_desc ${task}_${dataset}_${model}_${method}_${bits} \ | ||
--pipeline_config_dir config/pipeline_config/${method}/${task}/${bits}/${model}.json \ | ||
--eval_config_dir config/eval_config/${task}/${dataset}.json \ | ||
--output_folder_dir ${output_dir_root}/${task}/${dataset}/${method}/${bits}/${model}/ |
13 changes: 13 additions & 0 deletions
13
...graham_passkey/20480words_10x10x3_64digits/kivi/4bit/llama3-8b-instruct_rope_theta_32x.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
output_dir_root=$1 | ||
|
||
task="paulgraham_passkey" | ||
dataset="20480words_10x10x3_64digits" | ||
model="llama3-8b-instruct_rope_theta_32x" | ||
method="kivi" | ||
bits="4bit" | ||
|
||
python pipeline/${method}/main.py \ | ||
--exp_desc ${task}_${dataset}_${model}_${method}_${bits} \ | ||
--pipeline_config_dir config/pipeline_config/${method}/${task}/${bits}/${model}.json \ | ||
--eval_config_dir config/eval_config/${task}/${dataset}.json \ | ||
--output_folder_dir ${output_dir_root}/${task}/${dataset}/${method}/${bits}/${model}/ |