Describe the bug/ 问题描述 (Mandatory / 必填)
AttributeError: 'T5ForConditionalGeneration' object has no attribute 'cells'
Hardware Environment(Ascend/GPU/CPU) / 硬件环境:
Please delete the backend not involved / 请删除不涉及的后端:
/device ascend
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :2.4.0
-- Python version (e.g., Python 3.7.5) :Python3.9
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):
-- GCC/Compiler version (if compiled from source):
Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph
To Reproduce / 重现步骤 (Mandatory / 必填)
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior / 预期结果 (Mandatory / 必填)
A clear and concise description of what you expected to happen.
Screenshots/ 日志 / 截图 (Mandatory / 必填)
File " /home/ma-user/anaconda3/envs/mindspore/lib/python3.9/site-packages/mindnlp/peft/tuners/poly/model.py", line 17, in register pre hooksfor cell in self.model.cells():File "/home/ma-user/anaconda3/envs/Mindspore/l ib/python3.9/site-packages mindnlp/core/nn/modules/module.py", line 566, in getattrraise AttributeError(f"'{type(self). nameI' object has no attribute "fnamel'")
Additional context / 备注 (Optional / 选填)
Add any other context about the problem here.
Describe the bug/ 问题描述 (Mandatory / 必填) AttributeError: 'T5ForConditionalGeneration' object has no attribute 'cells'
Hardware Environment(
Ascend
/GPU
/CPU
) / 硬件环境:Software Environment / 软件环境 (Mandatory / 必填): -- MindSpore version (e.g., 1.7.0.Bxxx) :2.4.0 -- Python version (e.g., Python 3.7.5) :Python3.9 -- OS platform and distribution (e.g., Linux Ubuntu 16.04): -- GCC/Compiler version (if compiled from source):
Excute Mode / 执行模式 (Mandatory / 必填)(
PyNative
/Graph
):To Reproduce / 重现步骤 (Mandatory / 必填) Steps to reproduce the behavior:
Expected behavior / 预期结果 (Mandatory / 必填) A clear and concise description of what you expected to happen.
Screenshots/ 日志 / 截图 (Mandatory / 必填) File " /home/ma-user/anaconda3/envs/mindspore/lib/python3.9/site-packages/mindnlp/peft/tuners/poly/model.py", line 17, in register pre hooksfor cell in self.model.cells():File "/home/ma-user/anaconda3/envs/Mindspore/l ib/python3.9/site-packages mindnlp/core/nn/modules/module.py", line 566, in getattrraise AttributeError(f"'{type(self). nameI' object has no attribute "fnamel'")
Additional context / 备注 (Optional / 选填) Add any other context about the problem here.