Skip to content

Commit 215d087

Browse files
authored
Update Getting Started for TF 2.16 (#1808)
* Update Getting Started for TF 2.16 * Update Getting Started for TF 2.16
1 parent 3edab1f commit 215d087

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

scripts/autogen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
GUIDES_GH_LOCATION = Path("keras-team") / "keras-io" / "blob" / "master" / "guides"
4545
KERAS_TEAM_GH = "https://github.com/keras-team"
4646
PROJECT_URL = {
47-
"keras": f"{KERAS_TEAM_GH}/keras/tree/v3.1.0/",
47+
"keras": f"{KERAS_TEAM_GH}/keras/tree/v3.1.1/",
4848
"keras_tuner": f"{KERAS_TEAM_GH}/keras-tuner/tree/v1.4.7/",
4949
"keras_cv": f"{KERAS_TEAM_GH}/keras-cv/tree/v0.8.2/",
5050
"keras_nlp": f"{KERAS_TEAM_GH}/keras-nlp/tree/v0.8.2/",

templates/getting_started/index.md

+5-13
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ To use Keras 3, you will also need to install a backend framework -- either JAX,
3737
- [Installing TensorFlow](https://www.tensorflow.org/install)
3838
- [Installing PyTorch](https://pytorch.org/get-started/locally/)
3939

40-
If you install TensorFlow, critically, **you should reinstall Keras 3 afterwards**.
41-
This is a temporary step while TensorFlow is pinned to Keras 2, and will no longer be necessary after TensorFlow 2.16.
42-
The cause is that `tensorflow==2.15` will overwrite your Keras installation with `keras==2.15`.
43-
40+
If you install TensorFlow 2.15, you should reinstall Keras 3 afterwards. The cause is that `tensorflow==2.15` will overwrite your Keras installation with `keras==2.15`.
41+
This step is not necessary for TensorFlow versions 2.16 onwards as starting in TensorFlow 2.16, it will install Keras 3 by default.
4442

4543
### Installing KerasCV and KerasNLP
4644

@@ -52,11 +50,6 @@ pip install --upgrade keras-nlp
5250
pip install --upgrade keras
5351
```
5452

55-
Critically, **you should reinstall Keras 3 after installing KerasNLP**.
56-
This is a temporary step while TensorFlow is pinned to Keras 2, and will no longer be necessary after TensorFlow 2.16.
57-
The cause is that `keras-nlp` depends on `tensorflow-text`, which will install `tensorflow==2.15`, which will
58-
overwrite your Keras installation with `keras==2.15`.
59-
6053
---
6154

6255
## Configuring your backend
@@ -160,7 +153,7 @@ These lines would need to be before any `import tensorflow` statement.
160153

161154
The following Keras + JAX versions are compatible with each other:
162155

163-
- `jax==0.4.20` & `keras~=3.0.0`
156+
- `jax==0.4.20` & `keras~=3.0`
164157

165158
### TensorFlow compatibility
166159

@@ -174,11 +167,10 @@ To use Keras 2:
174167

175168
To use Keras 3:
176169

177-
- `tensorflow~=2.15.0` & `keras~=3.0.0`
178-
- `tensorflow~=2.16.1` & `keras~=3.0.0`
170+
- `tensorflow~=2.16.1` & `keras~=3.0`
179171

180172
### PyTorch compatibility
181173

182174
The following Keras + PyTorch versions are compatible with each other:
183175

184-
- `torch~=2.1.0` & `keras~=3.0.0`
176+
- `torch~=2.1.0` & `keras~=3.0`

0 commit comments

Comments
 (0)