Skip to content

Commit

Permalink
Fix incorrect max_gen_toks generation kwarg default in code2_text. (E…
Browse files Browse the repository at this point in the history
…leutherAI#1551)

* update gen_kwargs in code2-text-go.yaml

* update gen_kwargs in rest code2-text
  • Loading branch information
cosmo3769 authored Mar 9, 2024
1 parent 8051d95 commit f518228
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lm_eval/tasks/code_x_glue/code-text/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_split: test
output_type: generate_until
generation_kwargs:
num_beams: 10
max_length: 128
max_gen_toks: 128
until:
- "</s>"
doc_to_text: !function utils.doc_to_text
Expand Down
2 changes: 1 addition & 1 deletion lm_eval/tasks/code_x_glue/code-text/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_split: test
output_type: generate_until
generation_kwargs:
num_beams: 10
max_length: 128
max_gen_toks: 128
until:
- "</s>"
doc_to_text: !function utils.doc_to_text
Expand Down
2 changes: 1 addition & 1 deletion lm_eval/tasks/code_x_glue/code-text/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_split: test
output_type: generate_until
generation_kwargs:
num_beams: 10
max_length: 128
max_gen_toks: 128
until:
- "</s>"
doc_to_text: !function utils.doc_to_text
Expand Down
2 changes: 1 addition & 1 deletion lm_eval/tasks/code_x_glue/code-text/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_split: test
output_type: generate_until
generation_kwargs:
num_beams: 10
max_length: 128
max_gen_toks: 128
until:
- "</s>"
doc_to_text: !function utils.doc_to_text
Expand Down
2 changes: 1 addition & 1 deletion lm_eval/tasks/code_x_glue/code-text/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_split: test
output_type: generate_until
generation_kwargs:
num_beams: 10
max_length: 128
max_gen_toks: 128
until:
- "</s>"
doc_to_text: !function utils.doc_to_text
Expand Down
2 changes: 1 addition & 1 deletion lm_eval/tasks/code_x_glue/code-text/ruby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_split: test
output_type: generate_until
generation_kwargs:
num_beams: 10
max_length: 128
max_gen_toks: 128
until:
- "</s>"
doc_to_text: !function utils.doc_to_text
Expand Down

0 comments on commit f518228

Please sign in to comment.