8000 add args · commit-0/commit0@08e6cf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08e6cf5

Browse files
committed
add args
1 parent 177a5a8 commit 08e6cf5

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,5 @@ config.yml
167167
hydra_outputs/
168168
.commit0*
169169
.agent*
170-
docs/analysis*.md
170+
docs/analysis*.md
171+
wandb/

examples/star/run.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
python examples/star/star.py \
2+
--model_name_or_path meta-llama/Llama-3.1-8B-Instruct \
3+
--dataset_name commit0/mbpp \
4+
-n 10 \
5+
--output_dir outputs \
6+
--low_cpu_mem_usage \
7+
--with_tracking \
8+
--report_to wandb \
9+
--iteration 5 \
10+
--learning_rate 1e-6 \
11+
--per_device_train_batch_size 1 \
12+
--gradient_accumulation_steps 8
13+

examples/star/star.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def main():
3232
assert len(ds["train"]) == len(all_samples)
3333

3434
# verify and construct the training set
35-
all_traces, all_execution_results = execute_tests(ds["train"], all_samples)
35+
all_traces, all_execution_results = execute_tests(ds["train"], all_samples, max_workers=args.max_workers)
3636
passed_examples = []
3737
for example, execution_results, samples in zip(
3838
ds["train"], all_execution_results, all_samples

examples/star/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def parse_args():
117117
parser.add_argument("--temperature", type=float, default=1)
118118
parser.add_argument("-n", type=int, default=1)
119119
parser.add_argument("--iteration", type=int, default=1)
120+
parser.add_argument("--max_workers", type=int, default=100)
120121
parser.add_argument(
121122
"--dataset_name",
122123
type=str,

0 commit comments

Comments
 (0)
0