-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate the update image flow (#1179)
- Loading branch information
1 parent
64b7d65
commit b117fbc
Showing
5 changed files
with
47 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM nvidia/cuda:11.7.1-base-ubuntu20.04 | ||
RUN apt-get update | ||
RUN apt-get install -y python3 python3-pip | ||
RUN apt-get install -y git | ||
RUN git clone https://github.com/keras-team/keras-nlp.git | ||
RUN cd keras-nlp | ||
RUN pip install -r keras-nlp/requirements.txt | ||
RUN pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM tensorflow/tensorflow:2.13.0-gpu | ||
RUN apt-get -y update | ||
RUN apt-get -y install git | ||
RUN git clone https://github.com/keras-team/keras-nlp.git | ||
RUN cd keras-nlp | ||
RUN pip install -r keras-nlp/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM nvidia/cuda:11.7.1-base-ubuntu20.04 | ||
RUN apt-get update | ||
RUN apt-get install -y python3 python3-pip | ||
RUN apt-get install -y git | ||
RUN git clone https://github.com/keras-team/keras-nlp.git | ||
RUN cd keras-nlp | ||
RUN pip install -r keras-nlp/requirements.txt | ||
RUN pip install torch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash -ex | ||
|
||
base_dir=$(dirname $0) | ||
|
||
for platform in "jax" "tensorflow" "torch"; do | ||
pushd "${base_dir}/${platform}" > /dev/null | ||
gcloud builds submit \ | ||
--region=us-west1 \ | ||
--project=keras-team-test \ | ||
--tag "us-west1-docker.pkg.dev/keras-team-test/keras-nlp-test/keras-nlp-image-${platform}:deps" \ | ||
--timeout=30m | ||
popd | ||
done |