Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
2de3ffdf
Commit
2de3ffdf
authored
Jan 02, 2025
by
Baber
Browse files
add mgsm
parent
6884c5a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
lm_eval/tasks/llama3/instruct/mgsm/mgsm_chat_template
lm_eval/tasks/llama3/instruct/mgsm/mgsm_chat_template
+6
-10
No files found.
lm_eval/tasks/llama3/instruct/mgsm/
llama_mgsm.yaml
→
lm_eval/tasks/llama3/instruct/mgsm/
mgsm_chat_template
View file @
2de3ffdf
# This file will be included in the generated language-specific task configs.
# It doesn't have a yaml file extension as it is not meant to be imported directly
# by the harness.
tag: llama3
task
:
mgsm_chat
dataset_path: juletxara/mgsm
dataset_name: null # Overridden by language-specific config.
output_type: generate_until
training_split: train
test_split: test
target_delimiter: ""
doc_to_text
:
"
{{
input_final_prompts
|first
|replace('<|start_header_id|>user<|end_header_id|>',
'')
|replace('<|eot_id|><|start_header_id|>assistant<|end_header_id|>',
'')
|trim
}}"
doc_to_target
:
"
input_correct_responses"
process_results
:
!function
utils.process_results_mgsm
doc_to_text: "{{question}}"
doc_to_target: answers # list
process_results: !function utils.process_results
generation_kwargs:
until: []
do_sample: false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment