Your currently installed version of keras is keras 3 but this is not yet supported in transformers.
Your currently installed version of keras is keras 3 but this is not yet supported in transformers modeling_tf_utils because of Jun 25, 2021 · You can replace your classification RNN layers with this one: the inputs are fully compatible! We include residual connections, layer normalization, and dropout. 0; do you mean my solution is to upgrade the Python version to 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use `keras. conda create -n my_env python=3. 41. 0 and the latest versions of transformers and trl installed with pip install --upgrade transformers trl. 5 or 2. 0 and keras v3. 0 Mar 6, 2024 · Hi all, Matt from Hugging Face here! The cause is that TensorFlow has switched to Keras 3 as the ‘default’ Keras as of TF 2. keras import optimizers from Apr 15, 2023 · As the title is self-descriptive, I'm not able to import the BertTokenizer and TFBertModel classes from the transformers package through the following code: from transformers import BertTokenizer, Hi, Also the same. nbtcmsntlgthsosgpepkjppinxcgpvqopnruhxcjfgtwalajhwsklqmsqmqauvqidzqmlh