# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

#    http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

task: prompt_robustness_math_algebra
dataset_path: EleutherAI/hendrycks_math
process_docs: !function utils_math.prompt_robustness_process_docs
dataset_name: algebra
output_type: generate_until
test_split: test
doc_to_text:  !function utils_math.math_robustness_doc_to_text
process_results: !function utils_math.process_results
doc_to_target: answer
generation_kwargs:
  until: []
  do_sample: false
  temperature: 0
  max_gen_toks: 1024
metric_list:
  - metric: 0_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_0
    higher_is_better: true
  - metric: 1_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_1
    higher_is_better: true
  - metric: 2_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_2
    higher_is_better: true
  - metric: 3_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_3
    higher_is_better: true
  - metric: 4_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_4
    higher_is_better: true
  - metric: 5_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_5
    higher_is_better: true
  - metric: 6_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_6
    higher_is_better: true
  - metric: 7_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_7
    higher_is_better: true
  - metric: 8_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_8
    higher_is_better: true
  - metric: 9_accuracy
    aggregation:  !function utils_math.per_prompt_accuracy_9
    higher_is_better: true
  - metric: consistency_rate
    aggregation:  !function utils_math.math_prompt_consistency_rate
    higher_is_better: true
metadata:
  version: 1.0
dataset_kwargs:
  trust_remote_code: true
