Skip to content

Commit

Permalink
Upd
Browse files Browse the repository at this point in the history
  • Loading branch information
krasheninnikov committed Aug 19, 2024
1 parent d9af077 commit 63d99e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions configs/current_experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ model_arguments:
model_name_or_path: "EleutherAI/pythia-1b-deduped"
model_name_or_path: "google/codegemma-2b"
# model_name_or_path: "EleutherAI/pythia-2.8b-deduped"
model_name_or_path: "meta-llama/Meta-Llama-3-8B"


training_arguments:
Expand Down Expand Up @@ -57,8 +58,8 @@ experiment_arguments: # main experiment arguments
n_seeds: 20
n_seeds_stage2: 5
start_seed: 600
slurm: False
n_gpu_hours: 24 # for SLURM
slurm: True
n_gpu_hours: 5 # for SLURM


define_experiment_arguments:
Expand Down
4 changes: 2 additions & 2 deletions data_generation/random_numbers_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def generate_rand_nums_data(seed=0, n_vars=400, seq_len=10, var_len=5):
}
prompt_template_d1 = f">>>nums_VAR_NAME = NamedSequences.get('VAR_NAME')\n>>>print(nums_VAR_NAME)\n"
prompt_template_d2 = f">>>nums_VAR_NAME = np.random.randint(0, high=5, size={seq_len})\n>>>print(nums_VAR_NAME)\n"
prompt_template_test_direct = "print(nums_VAR_NAME)\n:" # completion: NUM_SEQUENCE
prompt_template_test_indirect = "print('Our sequence:', nums_VAR_NAME)\nOur sequence:" # completion: NUM_SEQUENCE
prompt_template_test_direct = ">>>print(nums_VAR_NAME)\n:" # completion: NUM_SEQUENCE
prompt_template_test_indirect = ">>>print('Our sequence:', nums_VAR_NAME)\nOur sequence:" # completion: NUM_SEQUENCE

# make lists of RandomNumsDatapoint
d1_train = [RandomNumsDatapoint(prompt_template_d1, v, var_to_seq[v]) for v in var_subsets['d1']]
Expand Down

0 comments on commit 63d99e9

Please sign in to comment.