Repository: open-compass/opencompass
Issue: [Bug] Evaluation of BBH
Root cause: Configuration Error

### 先决条件

- [X] 我已经搜索过 [问题](https://github.com/InternLM/opencompass/issues/) 和 [讨论](https://github.com/InternLM/opencompass/discussions) 但未得到预期的帮助。
- [X] 错误在 [最新版本](https://github.com/InternLM/opencompass) 中尚未被修复。

### 问题类型

我正在使用官方支持的任务/模型/数据集进行评估。

### 环境

/home/image_train/anaconda3/envs/opencompass3/lib/python3.8/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory
  warn(f"Failed to load image Python extension: {e}")
{'CUDA available': True,
 'CUDA_HOME': '/usr/local/cuda',
 'GCC': 'gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0',
 'GPU 0,1,2,3': 'NVIDIA GeForce RTX 3090',
 'MMEngine': '0.8.4',
 'NVCC': 'Cuda compilation tools, release 11.7, V11.7.99',
 'OpenCV': '4.8.0',
 'PyTorch': '2.0.1+cu117',
 'PyTorch compiling details': 'PyTorch built with:\n'
                              '  - GCC 9.3\n'
                              '  - C++ Version: 201703\n'
                              '  - Intel(R) oneAPI Math Kernel Library Version '
                              '2022.2-Product Build 20220804 for Intel(R) 64 '
                              'architecture applications\n'
                              '  - Intel(R) MKL-DNN v2.7.3 (Git Hash '
                              '6dbeffbae1f23cbbeae17adb7b5b13f1f37c080e)\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'
                              '  - CUDA Runtime 11.7\n'
                              '  - NVCC architecture flags: '
                              '-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86\n'
                              '  - CuDNN 8.5\n'
                              '  - Magma 2.6.1\n'
                              '  - Build settings: BLAS_INFO=mkl, '
                              'BUILD_TYPE=Release, CUDA_VERSION=11.7, '
                              'CUDNN_VERSION=8.5.0, '
                              'CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, '
                              'CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 '
                              '-fabi-version=11 -Wno-deprecated '
                              '-fvisibility-inlines-hidden -DUSE_PTHREADPOOL '
                              '-DNDEBUG -DUSE_KINETO -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 -Wunused-local-typedefs '
                              '-Wno-unused-parameter -Wno-unused-function '
                              '-Wno-unused-result -Wno-strict-overflow '
                              '-Wno-strict-aliasing '
                              '-Wno-error=deprecated-declarations '
                              '-Wno-stringop-overflow -Wno-psabi '
                              '-Wno-error=pedantic -Wno-error=redundant-decls '
                              '-Wno-error=old-style-cast '
                              '-fdiagnostics-color=always -faligned-new '
                              '-Wno-unused-but-set-variable '
                              '-Wno-maybe-uninitialized -fno-math-errno '
                              '-fno-trapping-math -Werror=format '
                              '-Werror=cast-function-type '
                              '-Wno-stringop-overflow, LAPACK_INFO=mkl, '
                              'PERF_WITH_AVX=1, PERF_WITH_AVX2=1, '
                              'PERF_WITH_AVX512=1, '
                              'TORCH_DISABLE_GPU_ASSERTS=ON, '
                              'TORCH_VERSION=2.0.1, USE_CUDA=ON, USE_CUDNN=ON, '
                              'USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, '
                              'USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, '
                              'USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, '
                              'USE_OPENMP=ON, USE_ROCM=OFF, \n',
 'Python': '3.8.17 (default, Jul  5 2023, 21:04:15) [GCC 11.2.0]',
 'TorchVision': '0.14.1',
 'numpy_random_seed': 2147483648,
 'opencompass': '0.1.2+fdc69f9',
 'sys.platform': 'linux'}

### 重现问题 - 代码/配置示例

eval_llama_7b.py  


### 重现问题 - 命令或脚本

python run.py configs/eval_llama_7b.py -w outputs/demo --debug

### 重现问题 - 错误信息

```
File "run.py", line 378, in <module>
    main()
  File "run.py", line 163, in main
    cfg = Config.fromfile(args.config, format_python_code=False)
  File "/home/image_train/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 489, in fromfile
    raise e
  File "/home/image_train/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 487, in fromfile
    cfg_dict, imported_names = Config._parse_lazy_import(filename)
  File "/home/image_train/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 1074, in _parse_lazy_import
    _base_cfg_dict, _base_imported_names = Config._parse_lazy_import(  # noqa: E501
  File "/home/image_train/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 1067, in _parse_lazy_import
    raise ConfigParsingError(
mmengine.config.utils.ConfigParsingError: configs/datasets/collections/../bbh/bbh_gen_5b92b0.py not found! It means that incorrect module is defined in `with read_base(): = from ..bbh.bbh_gen_5b92b0 import ...`, please make sure the base config module is valid and is consistent with the prior import logic
```

### 其他信息

相同的conda环境，运行v0.1.0版本的opencompass可以正常评测

mmengine为最新版本：
(opencompass3) image_train@imageTrainServer:~/code/opencompass_shtec$ pip show mmengine
Name: mmengine
Version: 0.8.4
Summary: Engine of OpenMMLab projects
Home-page: https://github.com/open-mmlab/mmengine
Author: MMEngine Authors
Author-email: openmmlab@gmail.com
License: UNKNOWN
Location: /home/image_train/.local/lib/python3.8/site-packages
Requires: addict, matplotlib, numpy, opencv-python, pyyaml, rich, termcolor, yapf
Required-by: lmdeploy, opencompass

Please try the latest code, the `bbh_gen_5b92b0.py` has already removed from our config

> Please try the latest code, the `bbh_gen_5b92b0.py` has already removed from our config

@yingfhu @gaotongxiao 
Hello ,I use the same order 
`python run.py configs/eval_llama_7b.py -w outputs/demo --debug`
to test the llama_7b in v1.0.3,but there still an error occurred:



'''
(opencompass3) image_train@imageTrainServer:~/code/opencompass_shtec$ python run.py configs/eval_llama2_7b.py -w outputs/demo
/home/image_train/.local/lib/python3.8/site-packages/mmengine/utils/manager.py:113: UserWarning: <class 'mmengine.logging.logger.MMLogger'> instance named of OpenCompass has been created, the method `get_instance` should not accept any other arguments
  warnings.warn(
08/28 11:04:59 - OpenCompass - INFO - Partitioned into 5 tasks.
launch OpenICLInfer[llama-2-7b/siqa_0] on GPU 0                                                                     
launch OpenICLInfer[llama-2-7b/siqa_1] on GPU 1                                                                     
launch OpenICLInfer[llama-2-7b/siqa_2] on GPU 2                                                                     
launch OpenICLInfer[llama-2-7b/piqa_0] on GPU 3                                                                     
  0%|                                                                                         | 0/5 [00:00<?, ?it/s]08/28 11:05:08 - OpenCompass - WARNING - task OpenICLInfer[llama-2-7b/piqa_0] fail, see
outputs/demo/20230828_110459/logs/infer/llama-2-7b/piqa_0.out
launch OpenICLInfer[llama-2-7b/piqa_1] on GPU 3                                                                     
 20%|████████████████▏                                                                | 1/5 [00:09<00:37,  9.32s/it]08/28 11:05:15 - OpenCompass - WARNING - task OpenICLInfer[llama-2-7b/siqa_0] fail, see
outputs/demo/20230828_110459/logs/infer/llama-2-7b/siqa_0.out
 40%|████████████████████████████████▍                                                | 2/5 [00:16<00:24,  8.05s/it]08/28 11:05:15 - OpenCompass - WARNING - task OpenICLInfer[llama-2-7b/siqa_2] fail, see
outputs/demo/20230828_110459/logs/infer/llama-2-7b/siqa_2.out
08/28 11:05:15 - OpenCompass - WARNING - task OpenICLInfer[llama-2-7b/siqa_1] fail, see
outputs/demo/20230828_110459/logs/infer/llama-2-7b/siqa_1.out
 80%|████████████████████████████████████████████████████████████████▊                | 4/5 [00:16<00:03,  3.04s/it]08/28 11:05:16 - OpenCompass - WARNING - task OpenICLInfer[llama-2-7b/piqa_1] fail, see
outputs/demo/20230828_110459/logs/infer/llama-2-7b/piqa_1.out
100%|█████████████████████████████████████████████████████████████████████████████████| 5/5 [00:17<00:00,  3.49s/it]
08/28 11:05:16 - OpenCompass - ERROR - /home/image_train/code/opencompass_shtec/opencompass/runners/base.py - summarize - 63 - OpenICLInfer[llama-2-7b/siqa_0] failed with code 1
08/28 11:05:16 - OpenCompass - ERROR - /home/image_train/code/opencompass_shtec/opencompass/runners/base.py - summarize - 63 - OpenICLInfer[llama-2-7b/siqa_1] failed with code 1
08/28 11:05:16 - OpenCompass - ERROR - /home/image_train/code/opencompass_shtec/opencompass/runners/base.py - summarize - 63 - OpenICLInfer[llama-2-7b/siqa_2] failed with code 1
08/28 11:05:16 - OpenCompass - ERROR - /home/image_train/code/opencompass_shtec/opencompass/runners/base.py - summarize - 63 - OpenICLInfer[llama-2-7b/piqa_0] failed with code 1
08/28 11:05:16 - OpenCompass - ERROR - /home/image_train/code/opencompass_shtec/opencompass/runners/base.py - summarize - 63 - OpenICLInfer[llama-2-7b/piqa_1] failed with code 1
08/28 11:05:16 - OpenCompass - INFO - Partitioned into 2 tasks.
launch OpenICLEval[llama-2-7b/piqa] on CPU                                                                          
launch OpenICLEval[llama-2-7b/siqa] on CPU                                                                          
100%|█████████████████████████████████████████████████████████████████████████████████| 2/2 [00:06<00:00,  3.45s/it]
dataset    version    metric    mode    llama-2-7b
---------  ---------  --------  ------  ------------
piqa       -          -         -       -
siqa       -          -         -       -
08/28 11:05:23 - OpenCompass - INFO - write summary to /home/image_train/code/opencompass_shtec/outputs/demo/20230828_110459/summary/summary_20230828_110459.txt
08/28 11:05:23 - OpenCompass - INFO - write csv to /home/image_train/code/opencompass_shtec/outputs/demo/20230828_110459/summary/summary_20230828_110459.csv
'''

@tcexeexe Please provide the actual output of the task, e.g. `outputs/demo/20230828_110459/logs/infer/llama-2-7b/siqa_0.out` 

BTW, have you pulled the latest `main` branch and ensured you haven't modified anywhere related to bbh? (See our fixing [PR](https://github.com/InternLM/opencompass/pull/272/files) here).