Deci
/

load model error

#16
by yeren66 - opened

AttributeError: 'DeciCoderModel' object has no attribute 'causal_mask'

use transformer=4.38.0, torch=2.0.1

AttributeError: 'DeciCoderAttention' object has no attribute '_init_rope'
how to get rid of the above error,help me!!!

AttributeError: 'DeciCoderAttention' object has no attribute '_init_rope' getting this error has anyone solved it ?

  • no i am also seeing same error - with _init_rope and others have also reported can someone please help - @itay-levy any idea?

             ~~~~~~~~~~~~~~^^^^^^^^
    

File "C:\Users\aakashsharm.aa5.cache\huggingface\modules\transformers_modules\Deci\DeciCoder-1b\d045c14763eab7225fe79a6bc309890fda7b1483\modeling_decicoder.py", line 215, in init
self.layers = nn.ModuleList([DeciCoderDecoderLayer(config) for _ in range(config.num_hidden_layers)])
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "C:\Users\aakashsharm.aa5.cache\huggingface\modules\transformers_modules\Deci\DeciCoder-1b\d045c14763eab7225fe79a6bc309890fda7b1483\modeling_decicoder.py", line 181, in init
self.self_attn = DeciCoderAttention(config=config)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "C:\Users\aakashsharm.aa5.cache\huggingface\modules\transformers_modules\Deci\DeciCoder-1b\d045c14763eab7225fe79a6bc309890fda7b1483\modeling_decicoder.py", line 54, in init
self._init_rope()
^^^^^^^^^^^^^^^
File "C:\Temp\my-gen-ai-experiments\myprojectenv\Lib\site-packages\torch\nn\modules\module.py", line 1928, in getattr
raise AttributeError(
f"'{type(self).name}' object has no attribute '{name}'"
)
AttributeError: 'DeciCoderAttention' object has no attribute '_init_rope'

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment