-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add code to enable compilation of submission for WebSRC test split
- Loading branch information
1 parent
7687495
commit 9bca441
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
group: websrc | ||
task: | ||
- websrc_val | ||
- websrc_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
dataset_path: rootsautomation/websrc-test | ||
task: "websrc_test" | ||
test_split: test | ||
output_type: generate_until | ||
doc_to_visual: !function utils.websrc_doc_to_visual | ||
doc_to_text: !function utils.websrc_doc_to_text | ||
doc_to_target: "answer" | ||
# The return value of process_results will be used by metrics | ||
process_results: !function utils.websrc_process_results | ||
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results | ||
generation_kwargs: | ||
max_new_tokens: 16 | ||
image_aspect_ratio: pad | ||
metric_list: | ||
- metric: submission | ||
aggregation: !function utils.websrc_test_aggregate_results_for_submission | ||
higher_is_better: true | ||
metadata: | ||
- version: 0.0 |