keras-bert relies on features removed in keras-transformer 0.34.0See original GitHub issue
Describe the Bug
get_model function in the
keras_bert.bert module passes a
use_adapter parameter to the
However, the latest commit to
keras-transformer, corresponding to the v0.34.0 release, removes this parameter from the API:
keras-bert specifies its
keras-transformer dependency as
>=0.30.0. This means that new or upgraded installs will automatically use 0.34.0 despite the breaking change.
This means that calling
get_model fails with the following error:
TypeError: get_encoders() got an unexpected keyword argument 'use_adapter'
The problem can be worked around by pinning the
keras-transformer version at v0.33.0.
- I’m using the latest version
Minimal Codes To Reproduce
The problem can be seen by running the
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
Experiencing the same error when calling predict function - followed advise and changed keras-transformer==0.33.0, worked after this.