You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图)
git clone https://github.com/modelscope/ms-swift.git
cd ms-swift
pip install -e '.[eval]'
运行自定义数据集eval时报错:
Traceback (most recent call last):
File "/ms-swift/swift/cli/eval.py", line 2, in
from swift.llm import eval_main
File "/ms-swift/swift/utils/import_utils.py", line 90, in getattr
module = self._get_module(self._class_to_module[name])
File "/ms-swift/swift/utils/import_utils.py", line 99, in _get_module
return importlib.import_module('.' + module_name, self.name)
File "/opt/conda/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/ms-swift/swift/llm/eval/init.py", line 2, in
from .eval import SwiftEval, eval_main
File "ms-swift1/swift/llm/eval/eval.py", line 6, in
from evalscope.constants import EvalBackend, EvalType
ImportError: cannot import name 'EvalBackend' from 'evalscope.constants' (/opt/conda/lib/python3.10/site-packages/evalscope/constants.py)
Your hardware and system info
Write your system info like CUDA version/system/GPU/torch version here(在这里给出硬件信息和系统信息,如CUDA版本,系统,GPU型号和torch版本等)
Describe the bug
What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图)
git clone https://github.com/modelscope/ms-swift.git
cd ms-swift
pip install -e '.[eval]'
nproc_per_node=8
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
NPROC_PER_NODE=$nproc_per_node
swift eval
--model /mymodel
--eval_backend Native
--infer_backend pt
--eval_dataset general_qa
--dataset_args '{"general_qa": {"local_path": "/data", "subset_list": ["data"]}}'
运行自定义数据集eval时报错:
Traceback (most recent call last):
File "/ms-swift/swift/cli/eval.py", line 2, in
from swift.llm import eval_main
File "/ms-swift/swift/utils/import_utils.py", line 90, in getattr
module = self._get_module(self._class_to_module[name])
File "/ms-swift/swift/utils/import_utils.py", line 99, in _get_module
return importlib.import_module('.' + module_name, self.name)
File "/opt/conda/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/ms-swift/swift/llm/eval/init.py", line 2, in
from .eval import SwiftEval, eval_main
File "ms-swift1/swift/llm/eval/eval.py", line 6, in
from evalscope.constants import EvalBackend, EvalType
ImportError: cannot import name 'EvalBackend' from 'evalscope.constants' (/opt/conda/lib/python3.10/site-packages/evalscope/constants.py)
Your hardware and system info
Write your system info like CUDA version/system/GPU/torch version here(在这里给出硬件信息和系统信息,如CUDA版本,系统,GPU型号和torch版本等)
===== Python 版本 =====
Python 3.10.13
===== PyTorch 版本 =====
2.5.1+cu118
Additional context
Add any other context about the problem here(在这里补充其他信息)
Name: evalscope
Version: 0.6.0
The text was updated successfully, but these errors were encountered: