Repository: open-compass/opencompass
Issue: [Bug] 
Root cause: Environment Incompatibility

### 先决条件

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

### 问题类型

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

### 环境

```
10/28 13:26:56 - mmengine - INFO - 
------------------------------------------------------------
System environment:
    sys.platform: linux
    Python: 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]
    CUDA available: True
    numpy_random_seed: 910393089
    GPU 0,1,2,3,4,5,6,7: NVIDIA A100-SXM4-80GB
    CUDA_HOME: /mnt/petrelfs/share/cuda-11.6/
    NVCC: Cuda compilation tools, release 11.6, V11.6.124
    GCC: gcc (GCC) 7.5.0
    PyTorch: 2.0.1
    PyTorch compiling details: PyTorch built with:
  - GCC 9.3
  - C++ Version: 201703
  - Intel(R) oneAPI Math Kernel Library Version 2023.1-Product Build 20230303 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v2.7.3 (Git Hash 6dbeffbae1f23cbbeae17adb7b5b13f1f37c080e)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - LAPACK is enabled (usually provided by MKL)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 11.8
  - 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_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;-gencode;arch=compute_37,code=compute_37
  - CuDNN 8.7
  - Magma 2.6.1
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.8, CUDNN_VERSION=8.7.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=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, 

    TorchVision: 0.15.2
    OpenCV: 4.8.1
    MMEngine: 0.9.0

Runtime environment:
    launcher: none
    randomness: {'seed': None, 'deterministic': False}
    cudnn_benchmark: False
    mp_cfg: {'mp_start_method': 'fork', 'opencv_num_threads': 0}
    dist_cfg: {'backend': 'nccl', 'port': 20028}
    seed: None
    deterministic: False
    Distributed launcher: none
    Distributed training: False
    GPU number: 1
------------------------------------------------------------
```

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

```
python run.py --datasets tydiqa_gen \
--hf-path THUDM/chatglm2-6b \
--model-kwargs device_map='auto' trust_remote_code=True \
--tokenizer-path THUDM/chatglm2-6b \
--tokenizer-kwargs trust_remote_code=True \
--tokenizer-kwargs padding_side='left' truncation='left' trust_remote_code=True \
--max-seq-len 4096 \
--max-out-len 4096 \
--no-batch-padding \
--batch-size 128  \
--slurm \
-p AI4Good_X \
--num-gpus 1  # 最少需要的 GPU 数量
```

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

bash 

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

```
srun: job 9603110 queued and waiting for resources
srun: job 9603110 has been allocated resources
srun: Job 9603110 scheduled successfully!
Current QUOTA_TYPE is [reserved], which means the job has occupied quota in RESERVED_TOTAL under your partition.
Current PHX_PRIORITY is normal

/mnt/petrelfs/gaohongzhi/anaconda3/envs/xtuner/lib/python3.10/site-packages/colossalai/kernel/cuda_native/mha/flash_attn_2.py:28: UserWarning: please install flash_attn from https://github.com/HazyResearch/flash-attention
  warnings.warn("please install flash_attn from https://github.com/HazyResearch/flash-attention")
/mnt/petrelfs/gaohongzhi/anaconda3/envs/xtuner/lib/python3.10/site-packages/colossalai/kernel/cuda_native/mha/mem_eff_attn.py:15: UserWarning: please install xformers from https://github.com/facebookresearch/xformers
  warnings.warn("please install xformers from https://github.com/facebookresearch/xformers")
[2023-10-30 14:30:36,299] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
10/30 14:30:40 - OpenCompass - INFO - Task [opencompass.models.huggingface.HuggingFace_models_chatglm2-6b/tyidqa-goldp_japanese,opencompass.models.huggingface.HuggingFace_models_chatglm2-6b/tyidqa-goldp_english,opencompass.models.huggingface.HuggingFace_models_chatglm2-6b/tyidqa-goldp_korean,opencompass.models.huggingface.HuggingFace_models_chatglm2-6b/tyidqa-goldp_bengali]

Loading checkpoint shards:   0%|          | 0/7 [00:00<?, ?it/s]
Loading checkpoint shards:  14%|█▍        | 1/7 [00:03<00:22,  3.75s/it]
Loading checkpoint shards:  29%|██▊       | 2/7 [00:07<00:19,  3.92s/it]
Loading checkpoint shards:  43%|████▎     | 3/7 [00:11<00:15,  3.93s/it]
Loading checkpoint shards:  57%|█████▋    | 4/7 [00:15<00:11,  3.87s/it](null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory

Loading checkpoint shards:  71%|███████▏  | 5/7 [00:19<00:08,  4.02s/it]
Loading checkpoint shards:  86%|████████▌ | 6/7 [00:23<00:04,  4.02s/it]
Loading checkpoint shards: 100%|██████████| 7/7 [00:26<00:00,  3.43s/it]
Loading checkpoint shards: 100%|██████████| 7/7 [00:26<00:00,  3.72s/it]
10/30 14:31:20 - OpenCompass - INFO - Start inferencing [opencompass.models.huggingface.HuggingFace_models_chatglm2-6b/tyidqa-goldp_japanese]
[2023-10-30 14:31:21,082] [opencompass.openicl.icl_inferencer.icl_gen_inferencer] [INFO] Starting inference process...

  0%|          | 0/4 [00:00<?, ?it/s](null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory
(null): _log_init: Unable to open logfile `/var/log/slurm/slurmd.log': No such file or directory

```

### 其他信息

I don't have the permission to edit `/var/log/slurm/slurmd.log` file.

```
$ touch /var/log/slurm/slurmd.log
touch: cannot touch ‘/var/log/slurm/slurmd.log’: Permission denied
```



You may need to contact the cluster admin for this issue.