Skip to content

Commit

Permalink
Pin Keras for now (#26904)
Browse files Browse the repository at this point in the history
* Pin Keras for now out of paranoia

* Add the keras pin to _tests_requirements.txt too

* Make sure the Keras version matches the TF one

* make fixup
  • Loading branch information
Rocketknight1 authored Oct 19, 2023
1 parent 73dc23f commit cbd278f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/tensorflow/_tests_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tensorflow<2.15
keras<2.15
tensorboard
scikit-learn
seqeval
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
"jaxlib>=0.4.1,<=0.4.13",
"jieba",
"kenlm",
# Keras pin - this is to make sure Keras 3 doesn't destroy us. Remove or change when we have proper support.
"keras<2.15",
"keras-nlp>=0.3.1",
"librosa",
"nltk",
Expand Down
1 change: 1 addition & 0 deletions src/transformers/dependency_versions_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"jaxlib": "jaxlib>=0.4.1,<=0.4.13",
"jieba": "jieba",
"kenlm": "kenlm",
"keras": "keras<2.15",
"keras-nlp": "keras-nlp>=0.3.1",
"librosa": "librosa",
"nltk": "nltk",
Expand Down

0 comments on commit cbd278f

Please sign in to comment.