CTranslate2 icon indicating copy to clipboard operation
CTranslate2 copied to clipboard

AttributeError: 'T5Config' object has no attribute 'dense_act_fn'

Open Two222 opened this issue 3 years ago • 3 comments

when i trandformer the model of t5-small ,i met this problem? who knows?

and i saw the config file ,it's no such config valiable

Two222 avatar May 31 '23 08:05 Two222

You are probably using an older version of transformers. Try updating this module.

pip install --upgrade transformers

guillaumekln avatar May 31 '23 11:05 guillaumekln

which version can solve this prob?

发自我的iPhone

------------------ Original ------------------ From: Guillaume Klein @.> Date: Wed,May 31,2023 7:03 PM To: OpenNMT/CTranslate2 @.> Cc: Honda_J @.>, Author @.> Subject: Re: [OpenNMT/CTranslate2] AttributeError: 'T5Config' object has no attribute 'dense_act_fn' (Issue #1255)

You are probably using an older version of transformers. Try updating this module. pip install --upgrade transformers
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Two222 avatar May 31 '23 11:05 Two222

transformers>=4.20

guillaumekln avatar May 31 '23 11:05 guillaumekln