-
Couldn't load subscription status.
- Fork 31k
Closed
Description
System Info
With new changes for Keras (https://groups.google.com/g/keras-users/c/jgGcX730WGE), we are seeing issues with using Huggingface models (GPT-J, Stable Diffusion, & Vision Transformer). We saw that transformers restrict the versions for Tensorflow and Keras. https://github.com/huggingface/transformers/blob/main/setup.py#L129.
To use the models with tf-keras (keras 2.0), we could resolve issues in Transformers by changing import of keras in transformers to import tf_keras. -ie change
import keras.*
to
import tf_keras.*
Who can help?
No response
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
- Install tf-nightly
- Install tf-keras-nightly
- export TF_USE_LEGACY_KERAS=1
- Run Huggingface Tensorflow GPT-J
Expected behavior
Fails to run
edwarddjs
Metadata
Metadata
Assignees
Labels
No labels