调用Accumulator报RuntimeError
FLoutione opened this issue · comments
Describe the bug/ 问题描述 (Mandatory / 必填)
调用from mindnlp.modules import Accumulator,运行代码出现RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback)
- Hardware Environment(
Ascend
/GPU
/CPU
) / 硬件环境:
Please delete the backend not involved / 请删除不涉及的后端:
GPU
-
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :2.2.11
-- Python version (e.g., Python 3.7.5) :python 3.9.18
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):Ubuntu 20.04.6 LTS
-- GCC/Compiler version (if compiled from source): -
Excute Mode / 执行模式 (Mandatory / 必填)(
PyNative
/Graph
):
Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
To Reproduce / 重现步骤 (Mandatory / 必填)
直接导入from mindnlp.modules import Accumulator,运行文件后便会出现该错误。
Expected behavior / 预期结果 (Mandatory / 必填)
可以正常使用Accumulator
Screenshots/ 日志 / 截图 (Mandatory / 必填)
Additional context / 备注 (Optional / 选填)
Add any other context about the problem here.
换2.2.14试试