Repository: open-compass/opencompass
Issue: [Bug] Unable to use tutorial methods properly——KeyError: 'opt125m'or'opt350m'
Root cause: Configuration Error

### Prerequisite

- [X] I have searched [Issues](https://github.com/open-compass/opencompass/issues/) and [Discussions](https://github.com/open-compass/opencompass/discussions) but cannot get the expected help.
- [X] The bug has not been fixed in the [latest version](https://github.com/open-compass/opencompass).

### Type

I'm evaluating with the officially supported tasks/models/datasets.

### Environment

{'CUDA available': True,
 'CUDA_HOME': None,
 'GCC': 'gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0',
 'GPU 0': 'NVIDIA GeForce RTX 4090 D',
 'MMEngine': '0.10.4',
 'MUSA available': False,
 'OpenCV': '4.9.0',
 'PyTorch': '2.3.0',
 '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'
                              '  - CUDA Runtime 12.1\n'
                              '  - NVCC architecture flags: '
                              '-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-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;-gencode;arch=compute_90,code=sm_90\n'
                              '  - CuDNN 8.9.2\n'
                              '  - Magma 2.6.1\n'
                              '  - Build settings: BLAS_INFO=mkl, '
                              'BUILD_TYPE=Release, CUDA_VERSION=12.1, '
                              'CUDNN_VERSION=8.9.2, '
                              '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_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.0, '
                              'USE_CUDA=ON, USE_CUDNN=ON, USE_CUSPARSELT=1, '
                              'USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, '
                              'USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, '
                              'USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, '
                              '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.0',
 'numpy_random_seed': 2147483648,
 'opencompass': '0.2.5+d656e81',
 'sys.platform': 'linux'}

### Reproduces the problem - code/configuration sample

https://opencompass.readthedocs.io/zh-cn/latest/get_started/quick_start.html
启动评估
由于 OpenCompass 默认并行启动评估过程，我们可以在第一次运行时以 --debug 模式启动评估，并检查是否存在问题。在 --debug 模式下，任务将按顺序执行，并实时打印输出。

python run.py configs/eval_demo.py -w outputs/demo --debug

### Reproduces the problem - command or script

python run.py configs/eval_demo.py -w outputs/demo --debug

### Reproduces the problem - error message

Traceback (most recent call last):
  File "/home/test/opencompass/run.py", line 4, in <module>
    main()
  File "/home/test/opencompass/opencompass/cli/main.py", line 220, in main
    cfg = get_config_from_arg(args)
  File "/home/test/opencompass/opencompass/utils/run.py", line 82, in get_config_from_arg
    config = Config.fromfile(args.config, format_python_code=False)
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/site-packages/mmengine/config/config.py", line 494, in fromfile
    raise e
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/site-packages/mmengine/config/config.py", line 492, in fromfile
    cfg_dict, imported_names = Config._parse_lazy_import(filename)
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/site-packages/mmengine/config/config.py", line 1103, in _parse_lazy_import
    modified_code = transform.visit(parsed_codes)
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/ast.py", line 418, in visit
    return visitor(node)
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/ast.py", line 494, in generic_visit
    value = self.visit(value)
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/ast.py", line 418, in visit
    return visitor(node)
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/site-packages/mmengine/config/utils.py", line 339, in visit_ImportFrom
    self.global_dict[base_key] = self.base_dict[module][
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/site-packages/mmengine/config/config.py", line 138, in __getitem__
    return self.build_lazy(super().__getitem__(key))
  File "/home/test/anaconda3/envs/opencompass/lib/python3.10/site-packages/mmengine/config/config.py", line 105, in __missing__
    raise KeyError(name)
KeyError: 'opt125m'

### Other information

可以使用【python run.py --models hf_opt_125m hf_opt_350m --datasets siqa_gen winograd_ppl】正常出结果，但无法使用【python run.py configs/eval_demo.py -w outputs/demo --debug】。在某次git pull后便出现此错误，原本无异常；本错误使得帮助文档中样例方法失效且无法使用ctrl+c，另外此错误影响了使用Case Analyzer中case_analyzer.py去分析案例结果

Thank you for your bug report. We fixed this issue in #1213