Skip to content

Commit

Permalink
📜 Add scripts for 64 digits passkey (to reproduce Fig 20-22).
Browse files Browse the repository at this point in the history
  • Loading branch information
henryzhongsc committed Oct 5, 2024
1 parent a72a634 commit ace2663
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 0 deletions.
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}/
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}/
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}/
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}/
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}/

0 comments on commit ace2663

Please sign in to comment.