2024-02-05 23:29:10 +08:00
|
|
|
from mmengine.config import read_base
|
2025-01-20 19:17:38 +08:00
|
|
|
|
2024-02-05 23:29:10 +08:00
|
|
|
from opencompass.models.huggingface import HuggingFaceCausalLM
|
|
|
|
|
|
|
|
with read_base():
|
|
|
|
# choose a list of datasets
|
2024-08-22 14:48:45 +08:00
|
|
|
from opencompass.configs.datasets.gsm8k.gsm8k_gen import gsm8k_datasets
|
|
|
|
from opencompass.configs.datasets.math.math_gen_736506 import math_datasets
|
2025-01-20 19:17:38 +08:00
|
|
|
from opencompass.configs.models.hf_internlm.hf_internlm2_chat_math_7b import \
|
|
|
|
models as internlm_math_chat_7b_models
|
|
|
|
from opencompass.configs.models.hf_internlm.hf_internlm2_chat_math_20b import \
|
|
|
|
models as internlm_math_chat_20b_models
|
2024-02-05 23:29:10 +08:00
|
|
|
|
|
|
|
datasets = sum((v for k, v in locals().items() if k.endswith('_datasets')), [])
|
|
|
|
# Eval Math and GSM8k for both Internlm-Math-Chat-7B and 20b
|
|
|
|
datasets = [*math_datasets, *gsm8k_datasets]
|
|
|
|
models = [*internlm_math_chat_7b_models, *internlm_math_chat_20b_models]
|