mindspore-lab / mindnlp

Easy-to-use and high-performance NLP and LLM framework based on MindSpore, compatible with models and datasets of 🤗Huggingface.
https://mindnlp.cqu.ai/
Apache License 2.0
705 stars 197 forks source link

AttributeError: 'T5ForConditionalGeneration' object has no attribute 'cells' #1825

Open asGHF opened 3 hours ago

asGHF commented 3 hours ago

Describe the bug/ 问题描述 (Mandatory / 必填) AttributeError: 'T5ForConditionalGeneration' object has no attribute 'cells'

To Reproduce / 重现步骤 (Mandatory / 必填) Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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'")

75308f4737db867bd4be3236d3c6411b

Additional context / 备注 (Optional / 选填) Add any other context about the problem here.

asGHF commented 3 hours ago

poly_mindspore.zip