opencompass icon indicating copy to clipboard operation
opencompass copied to clipboard

[Bug] ERROR: opencompass/tasks/openicl_eval.py - _score - 236 - Task [opt125m/siqa]: No predictions found.

Open wangtl175 opened this issue 2 years ago • 5 comments

先决条件

  • [X] 我已经搜索过 问题 和 讨论 但未得到预期的帮助。
  • [X] 错误在 最新版本 中尚未被修复。

问题类型

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

环境

{'CUDA available': True, 'CUDA_HOME': None, 'GCC': 'gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0', 'GPU 0': 'NVIDIA GeForce RTX 4070 Ti', 'MMEngine': '0.10.3', 'MUSA available': False, 'OpenCV': '4.9.0', 'PyTorch': '2.0.0+cu117', '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 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.0, 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.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]', 'numpy_random_seed': 2147483648, 'opencompass': '0.2.1+2801883', 'sys.platform': 'linux'}

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

None

重现问题 - 命令或脚本

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

重现问题 - 错误信息

01/28 01:06:33 - OpenCompass - WARNING - SlurmRunner is not used, so the partition argument is ignored. 01/28 01:06:33 - OpenCompass - DEBUG - Modules of opencompass's partitioner registry have been automatically imported from opencompass.partitioners 01/28 01:06:33 - OpenCompass - DEBUG - Get class SizePartitioner from "partitioner" registry in "opencompass" 01/28 01:06:33 - OpenCompass - DEBUG - An SizePartitioner instance is built from registry, and its implementation can be found in opencompass.partitioners.size 01/28 01:06:33 - OpenCompass - DEBUG - Key eval.runner.task.judge_cfg not found in config, ignored. 01/28 01:06:33 - OpenCompass - DEBUG - Key eval.runner.task.dump_details not found in config, ignored. 01/28 01:06:33 - OpenCompass - DEBUG - Additional config: {} 01/28 01:06:33 - OpenCompass - INFO - Partitioned into 2 tasks. 01/28 01:06:33 - OpenCompass - DEBUG - Task 0: [opt125m/siqa,opt125m/winograd] 01/28 01:06:33 - OpenCompass - DEBUG - Task 1: [opt350m/siqa,opt350m/winograd] 01/28 01:06:33 - OpenCompass - DEBUG - Modules of opencompass's runner registry have been automatically imported from opencompass.runners 01/28 01:06:33 - OpenCompass - DEBUG - Get class LocalRunner from "runner" registry in "opencompass" 01/28 01:06:33 - OpenCompass - DEBUG - An LocalRunner instance is built from registry, and its implementation can be found in opencompass.runners.local 01/28 01:06:33 - OpenCompass - DEBUG - Modules of opencompass's task registry have been automatically imported from opencompass.tasks 01/28 01:06:33 - OpenCompass - DEBUG - Get class OpenICLInferTask from "task" registry in "opencompass" 01/28 01:06:33 - 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-a34b3233.so.1 library. Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it. 01/28 01:06:34 - OpenCompass - DEBUG - Get class OpenICLInferTask from "task" registry in "opencompass" 01/28 01:06:34 - 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-a34b3233.so.1 library. Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it. 01/28 01:06:35 - OpenCompass - DEBUG - Get class NaivePartitioner from "partitioner" registry in "opencompass" 01/28 01:06:35 - OpenCompass - DEBUG - An NaivePartitioner instance is built from registry, and its implementation can be found in opencompass.partitioners.naive 01/28 01:06:35 - OpenCompass - DEBUG - Key eval.runner.task.judge_cfg not found in config, ignored. 01/28 01:06:35 - OpenCompass - DEBUG - Key eval.runner.task.dump_details not found in config, ignored. 01/28 01:06:35 - OpenCompass - DEBUG - Additional config: {'eval': {'runner': {'task': {}}}} 01/28 01:06:35 - OpenCompass - INFO - Partitioned into 4 tasks. 01/28 01:06:35 - OpenCompass - DEBUG - Task 0: [opt125m/siqa] 01/28 01:06:35 - OpenCompass - DEBUG - Task 1: [opt125m/winograd] 01/28 01:06:35 - OpenCompass - DEBUG - Task 2: [opt350m/siqa] 01/28 01:06:35 - OpenCompass - DEBUG - Task 3: [opt350m/winograd] 01/28 01:06:35 - OpenCompass - DEBUG - Get class LocalRunner from "runner" registry in "opencompass" 01/28 01:06:35 - OpenCompass - DEBUG - An LocalRunner instance is built from registry, and its implementation can be found in opencompass.runners.local 01/28 01:06:35 - OpenCompass - DEBUG - Get class OpenICLEvalTask from "task" registry in "opencompass" 01/28 01:06:35 - OpenCompass - DEBUG - An OpenICLEvalTask instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval 01/28 01:06:43 - OpenCompass - ERROR - /mnt/d/projects/opencompass/opencompass/tasks/openicl_eval.py - _score - 236 - Task [opt125m/siqa]: No predictions found. 01/28 01:06:43 - OpenCompass - INFO - time elapsed: 5.77s 01/28 01:06:43 - OpenCompass - DEBUG - Get class OpenICLEvalTask from "task" registry in "opencompass" 01/28 01:06:43 - OpenCompass - DEBUG - An OpenICLEvalTask instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval 01/28 01:06:56 - OpenCompass - ERROR - /mnt/d/projects/opencompass/opencompass/tasks/openicl_eval.py - _score - 236 - Task [opt125m/winograd]: No predictions found. 01/28 01:06:56 - OpenCompass - INFO - time elapsed: 10.19s 01/28 01:06:56 - OpenCompass - DEBUG - Get class OpenICLEvalTask from "task" registry in "opencompass" 01/28 01:06:56 - OpenCompass - DEBUG - An OpenICLEvalTask instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval 01/28 01:07:04 - OpenCompass - ERROR - /mnt/d/projects/opencompass/opencompass/tasks/openicl_eval.py - _score - 236 - Task [opt350m/siqa]: No predictions found. 01/28 01:07:04 - OpenCompass - INFO - time elapsed: 5.32s 01/28 01:07:04 - OpenCompass - DEBUG - Get class OpenICLEvalTask from "task" registry in "opencompass" 01/28 01:07:04 - OpenCompass - DEBUG - An OpenICLEvalTask instance is built from registry, and its implementation can be found in opencompass.tasks.openicl_eval 01/28 01:07:17 - OpenCompass - ERROR - /mnt/d/projects/opencompass/opencompass/tasks/openicl_eval.py - _score - 236 - Task [opt350m/winograd]: No predictions found. 01/28 01:07:17 - OpenCompass - INFO - time elapsed: 10.52s 01/28 01:07:18 - OpenCompass - DEBUG - An DefaultSummarizer instance is built from registry, and its implementation can be found in opencompass.summarizers.default dataset version metric mode opt125m opt350m


siqa - - - - - winograd - - - - - 01/28 01:07:18 - OpenCompass - INFO - write summary to /mnt/d/projects/opencompass/outputs/demo/20240128_010633/summary/summary_20240128_010633.txt 01/28 01:07:18 - OpenCompass - INFO - write csv to /mnt/d/projects/opencompass/outputs/demo/20240128_010633/summary/summary_20240128_010633.csv

其他信息

没有对代码进行任何修改

wangtl175 avatar Jan 27 '24 17:01 wangtl175

Is there anything in '/mnt/d/projects/opencompass/outputs/demo/20240128_010633/logs/infer' ?

jingmingzhuo avatar Jan 27 '24 17:01 jingmingzhuo

In your log:

Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp-a34b3233.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.

How about set MKL_SERVICE_FORCE_INTEL and try again?

tonysy avatar Jan 28 '24 01:01 tonysy

Is there anything in '/mnt/d/projects/opencompass/outputs/demo/20240128_010633/logs/infer' ?

there is no log folder in '/mnt/d/projects/opencompass/outputs/demo/20240128_010633'

wangtl175 avatar Jan 28 '24 05:01 wangtl175

In your log:

Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp-a34b3233.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.

How about set MKL_SERVICE_FORCE_INTEL and try again?

I set MKL_SERVICE_FORCE_INTEL using export MKL_SERVICE_FORCE_INTEL=1 and try it again.

It seems work well, appreciate bro

wangtl175 avatar Jan 28 '24 06:01 wangtl175

Appreciated, bro

Acemid avatar Apr 29 '24 10:04 Acemid