Repository: open-compass/opencompass
Issue: [Bug] Test the ChemBench dataset
Root cause: Validation Gap

### 先决条件

- [X] 我已经搜索过 [问题](https://github.com/open-compass/opencompass/issues/) 和 [讨论](https://github.com/open-compass/opencompass/discussions) 但未得到预期的帮助。
- [X] 错误在 [最新版本](https://github.com/open-compass/opencompass) 中尚未被修复。

### 问题类型

我正在使用官方支持的任务/模型/数据集进行评估。

### 环境

{'CUDA available': False,
 'GCC': 'gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0',
 'MMEngine': '0.10.4',
 'MUSA available': False,
 'OpenCV': '4.10.0',
 'PyTorch': '2.3.1',
 'PyTorch compiling details': 'PyTorch built with:\n'
                              '  - GCC 9.3\n'
                              '  - C++ Version: 201703\n'
                              '  - Intel(R) oneAPI Math Kernel Library Version '
                              '2023.1-Product Build 20230303 for Intel(R) 64 '
                              'architecture applications\n'
                              '  - Intel(R) MKL-DNN v3.3.6 (Git Hash '
                              '86e6af5974177e513fd3fee58425e1063e7f1361)\n'
                              '  - OpenMP 201511 (a.k.a. OpenMP 4.5)\n'
                              '  - LAPACK is enabled (usually provided by '
                              'MKL)\n'
                              '  - NNPACK is enabled\n'
                              '  - CPU capability usage: AVX2\n'
                              '  - Build settings: BLAS_INFO=mkl, '
                              'BUILD_TYPE=Release, '
                              'CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, '
                              'CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 '
                              '-fabi-version=11 -fvisibility-inlines-hidden '
                              '-DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO '
                              '-DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER '
                              '-DUSE_FBGEMM -DUSE_QNNPACK '
                              '-DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK '
                              '-DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC '
                              '-Wall -Wextra -Werror=return-type '
                              '-Werror=non-virtual-dtor -Werror=bool-operation '
                              '-Wnarrowing -Wno-missing-field-initializers '
                              '-Wno-type-limits -Wno-array-bounds '
                              '-Wno-unknown-pragmas -Wno-unused-parameter '
                              '-Wno-unused-function -Wno-unused-result '
                              '-Wno-strict-overflow -Wno-strict-aliasing '
                              '-Wno-stringop-overflow -Wsuggest-override '
                              '-Wno-psabi -Wno-error=pedantic '
                              '-Wno-error=old-style-cast -Wno-missing-braces '
                              '-fdiagnostics-color=always -faligned-new '
                              '-Wno-unused-but-set-variable '
                              '-Wno-maybe-uninitialized -fno-math-errno '
                              '-fno-trapping-math -Werror=format '
                              '-Wno-stringop-overflow, LAPACK_INFO=mkl, '
                              'PERF_WITH_AVX=1, PERF_WITH_AVX2=1, '
                              'PERF_WITH_AVX512=1, TORCH_VERSION=2.3.1, '
                              'USE_CUDA=0, USE_CUDNN=OFF, USE_CUSPARSELT=OFF, '
                              'USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, '
                              'USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, '
                              'USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, '
                              'USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, '
                              'USE_ROCM_KERNEL_ASSERT=OFF, \n',
 'Python': '3.10.14 (main, May  6 2024, 19:42:50) [GCC 11.2.0]',
 'TorchVision': '0.18.1',
 'numpy_random_seed': 2147483648,
 'opencompass': '0.2.5+',
 'sys.platform': 'linux'}

### 重现问题 - 代码/配置示例

from opencompass.models import HuggingFacewithChatTemplate
from mmengine.config import read_base
from opencompass.models import ERNIEBot
from opencompass.partitioners import NaivePartitioner
from opencompass.runners.local_api import LocalAPIRunner
from opencompass.tasks import OpenICLInferTask
# _meta_template = dict(
#     round=[
#         dict(role='HUMAN', begin='[Round 1]\n\n问：', end='\n\n'),
#         dict(role='BOT', begin='答：', end='\n\n', generate=True),
#     ],
# )
with read_base():
    from ...summarizers.medium import summarizer
    from ...datasets.ChemBench.ChemBench_gen import   chembench_datasets

datasets = [
    *chembench_datasets,
]

models = [
    dict(
        type=HuggingFacewithChatTemplate,
        abbr='chatglm3-6b-hf',
        path='/public11_data/zs/zs/codellama/chatglm3-6b-base/',
        max_out_len=1024,
        batch_size=8,
        run_cfg=dict(num_gpus=1),
    )
]

### 重现问题 - 命令或脚本

CUDA_VISIBLE_DEVICES=0 python run.py /public/zs/chemLLm/opencompass-main/configs/models/chatglm/hf_chatglm3_6b.py --debug

### 重现问题 - 错误信息

06/28 02:29:08 - OpenCompass - WARNING - SlurmRunner is not used, so the partition argument is ignored.
06/28 02:29:08 - OpenCompass - DEBUG - Modules of opencompass's partitioner registry have been automatically imported from opencompass.partitioners
06/28 02:29:08 - OpenCompass - DEBUG - Get class `NumWorkerPartitioner` from "partitioner" registry in "opencompass"
06/28 02:29:08 - OpenCompass - DEBUG - An `NumWorkerPartitioner` instance is built from registry, and its implementation can be found in opencompass.partitioners.num_worker
06/28 02:29:08 - OpenCompass - DEBUG - Key eval.runner.task.judge_cfg not found in config, ignored.
06/28 02:29:08 - OpenCompass - DEBUG - Key eval.runner.task.dump_details not found in config, ignored.
06/28 02:29:08 - OpenCompass - DEBUG - Key eval.given_pred not found in config, ignored.
06/28 02:29:08 - OpenCompass - DEBUG - Additional config: {}
06/28 02:29:08 - OpenCompass - INFO - Partitioned into 1 tasks.
06/28 02:29:08 - OpenCompass - DEBUG - Task 0: [chatglm3-6b-hf/ChemBench_Name_Conversion,chatglm3-6b-hf/ChemBench_Property_Prediction,chatglm3-6b-hf/ChemBench_Mol2caption,chatglm3-6b-hf/ChemBench_Caption2mol,chatglm3-6b-hf/ChemBench_Product_Prediction,chatglm3-6b-hf/ChemBench_Retrosynthesis,chatglm3-6b-hf/ChemBench_Yield_Prediction,chatglm3-6b-hf/ChemBench_Temperature_Prediction,chatglm3-6b-hf/ChemBench_Solvent_Prediction]
06/28 02:29:08 - OpenCompass - DEBUG - Modules of opencompass's runner registry have been automatically imported from opencompass.runners
06/28 02:29:08 - OpenCompass - DEBUG - Get class `LocalRunner` from "runner" registry in "opencompass"
06/28 02:29:08 - OpenCompass - DEBUG - An `LocalRunner` instance is built from registry, and its implementation can be found in opencompass.runners.local
06/28 02:29:08 - OpenCompass - DEBUG - Modules of opencompass's task registry have been automatically imported from opencompass.tasks
06/28 02:29:08 - OpenCompass - DEBUG - Get class `OpenICLInferTask` from "task" registry in "opencompass"
06/28 02:29:08 - OpenCompass - DEBUG - An `OpenICLInferTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_infer
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
        Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
06/28 02:29:11 - OpenCompass - DEBUG - Get class `NaivePartitioner` from "partitioner" registry in "opencompass"
06/28 02:29:11 - OpenCompass - DEBUG - An `NaivePartitioner` instance is built from registry, and its implementation can be found in opencompass.partitioners.naive
06/28 02:29:11 - OpenCompass - DEBUG - Key eval.runner.task.judge_cfg not found in config, ignored.
06/28 02:29:11 - OpenCompass - DEBUG - Key eval.runner.task.dump_details not found in config, ignored.
06/28 02:29:11 - OpenCompass - DEBUG - Key eval.given_pred not found in config, ignored.
06/28 02:29:11 - OpenCompass - DEBUG - Additional config: {'eval': {'runner': {'task': {}}}}
06/28 02:29:11 - OpenCompass - INFO - Partitioned into 9 tasks.
06/28 02:29:11 - OpenCompass - DEBUG - Task 0: [chatglm3-6b-hf/ChemBench_Name_Conversion]
06/28 02:29:11 - OpenCompass - DEBUG - Task 1: [chatglm3-6b-hf/ChemBench_Property_Prediction]
06/28 02:29:11 - OpenCompass - DEBUG - Task 2: [chatglm3-6b-hf/ChemBench_Mol2caption]
06/28 02:29:11 - OpenCompass - DEBUG - Task 3: [chatglm3-6b-hf/ChemBench_Caption2mol]
06/28 02:29:11 - OpenCompass - DEBUG - Task 4: [chatglm3-6b-hf/ChemBench_Product_Prediction]
06/28 02:29:11 - OpenCompass - DEBUG - Task 5: [chatglm3-6b-hf/ChemBench_Retrosynthesis]
06/28 02:29:11 - OpenCompass - DEBUG - Task 6: [chatglm3-6b-hf/ChemBench_Yield_Prediction]
06/28 02:29:11 - OpenCompass - DEBUG - Task 7: [chatglm3-6b-hf/ChemBench_Temperature_Prediction]
06/28 02:29:11 - OpenCompass - DEBUG - Task 8: [chatglm3-6b-hf/ChemBench_Solvent_Prediction]
06/28 02:29:11 - OpenCompass - DEBUG - Get class `LocalRunner` from "runner" registry in "opencompass"
06/28 02:29:11 - OpenCompass - DEBUG - An `LocalRunner` instance is built from registry, and its implementation can be found in opencompass.runners.local
06/28 02:29:11 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:11 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:12 - OpenCompass - DEBUG - Modules of opencompass's load_dataset registry have been automatically imported from opencompass.datasets
06/28 02:29:12 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:12 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:12 - OpenCompass - **E**RROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Name_Conversion]: No predictions found.****
06/28 02:29:12 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:12 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:14 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:14 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:14 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Property_Prediction]: No predictions found.
06/28 02:29:14 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:14 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:16 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:16 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:16 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Mol2caption]: No predictions found.
06/28 02:29:16 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:16 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:18 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:18 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:18 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Caption2mol]: No predictions found.
06/28 02:29:18 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:18 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:20 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:20 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:20 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Product_Prediction]: No predictions found.
06/28 02:29:20 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:20 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:22 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:22 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:22 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Retrosynthesis]: No predictions found.
06/28 02:29:22 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:22 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:24 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:24 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:24 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Yield_Prediction]: No predictions found.
06/28 02:29:24 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:24 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:25 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:25 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:25 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Temperature_Prediction]: No predictions found.
06/28 02:29:25 - OpenCompass - DEBUG - Get class `OpenICLEvalTask` from "task" registry in "opencompass"
06/28 02:29:25 - OpenCompass - DEBUG - An `OpenICLEvalTask` instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval
06/28 02:29:27 - OpenCompass - DEBUG - Get class `ChemBenchDataset` from "load_dataset" registry in "opencompass"
06/28 02:29:27 - OpenCompass - DEBUG - An `ChemBenchDataset` instance is built from registry, and its implementation can be found in opencompass.datasets.chembench
06/28 02:29:27 - OpenCompass - ERROR - /public/zs/chemLLm/opencompass-main/opencompass/tasks/openicl_eval.py - _score - 243 - Task [chatglm3-6b-hf/ChemBench_Solvent_Prediction]: No predictions found.
06/28 02:29:27 - OpenCompass - DEBUG - An `DefaultSummarizer` instance is built from registry, and its implementation can be found in opencompass.summarizers.default

### 其他信息

我还配置了Chembeach的测试集和验证集的路径