Skip to content

Commit 1291ddc

Browse files
committed
test
1 parent 62f793c commit 1291ddc

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed

.github/workflows/actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [created]
88
jobs:
99
build:
10-
name: Test the code with tf.keras
10+
name: Test the code with Keras 2
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
@@ -29,7 +29,8 @@ jobs:
2929
${{ runner.os }}-pip-
3030
- name: Install dependencies
3131
run: |
32-
pip install -r requirements.txt --progress-bar off
32+
pip install -r requirements-common.txt --progress-bar off
33+
pip install tensorflow-text keras-core
3334
pip install --no-deps -e "." --progress-bar off
3435
- name: Test with pytest
3536
run: |
@@ -38,7 +39,7 @@ jobs:
3839
run: |
3940
python pip_build.py --install && cd integration_tests && pytest .
4041
multibackend:
41-
name: Test the code with Keras Core
42+
name: Test the code with Keras 3
4243
strategy:
4344
fail-fast: false
4445
matrix:
@@ -65,7 +66,6 @@ jobs:
6566
- name: Install dependencies
6667
run: |
6768
pip install -r requirements.txt --progress-bar off
68-
pip install keras-nightly -U --progress-bar off
6969
pip install --no-deps -e "." --progress-bar off
7070
- name: Test with pytest
7171
env:

keras_nlp/backend/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
_MULTI_BACKEND = True
6767

6868
# If keras is version 3, use multi-backend keras (our only option).
69-
_IS_KERAS_3 = version.parse(keras.__version__) >= version.parse("3.0.0")
69+
_IS_KERAS_3 = version.parse(keras.__version__) >= version.parse("3.0.0.dev0")
7070
if _IS_KERAS_3:
7171
_MULTI_BACKEND = True
7272

requirements-common.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Library deps.
2-
keras-core>=0.1.6
32
dm-tree
43
regex
54
rich
@@ -17,5 +16,3 @@ namex
1716
rouge-score
1817
sentencepiece
1918
tensorflow-datasets
20-
# Breakage fix.
21-
ml-dtypes==0.2.0

requirements-jax-cuda.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Tensorflow cpu-only version.
2-
tf-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
3-
tensorflow-text-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
4-
tensorflow-text>=2.14.0
2+
tf-nightly==2.16.0.dev202310024 # Pin a working nightly until rc0.
3+
tensorflow-text-nightly==2.16.0.dev202310024 # Pin a working nightly until rc0.
54

65
# Torch cpu-only version.
76
--extra-index-url https://download.pytorch.org/whl/cpu

requirements-tensorflow-cuda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tensorflow with cuda support.
22
--extra-index-url https://pypi.nvidia.com
3-
tf-nightly[and-cuda]==2.15.0.dev20231009 # Pin a working nightly until rc0.
4-
tensorflow-text-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
3+
tf-nightly[and-cuda]==2.16.0.dev20231024 # Pin a working nightly until rc0.
4+
tensorflow-text-nightly==2.16.0.dev20231024 # Pin a working nightly until rc0.
55

66
# Torch cpu-only version.
77
--extra-index-url https://download.pytorch.org/whl/cpu

requirements-torch-cuda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tensorflow cpu-only version.
2-
tf-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
3-
tensorflow-text-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
2+
tf-nightly-cpu==2.16.0.dev20231024 # Pin a working nightly until rc0.
3+
tensorflow-text-nightly==2.16.0.dev20231024 # Pin a working nightly until rc0.
44

55
# Torch with cuda support.
66
--extra-index-url https://download.pytorch.org/whl/cu118

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tensorflow.
2-
tf-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
3-
tensorflow-text-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
2+
tf-nightly==2.16.0.dev20231024 # Pin a working nightly until rc0.
3+
tensorflow-text-nightly==2.16.0.dev20231024 # Pin a working nightly until rc0.
44

55
# Torch.
66
--extra-index-url https://download.pytorch.org/whl/cpu

0 commit comments

Comments
 (0)