forked from keras-team/keras-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaec4f3
commit 2d5ab59
Showing
5 changed files
with
46 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.12.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,12 @@ | ||
#!/bin/bash -ex | ||
|
||
base_dir=$(dirname $0) | ||
|
||
for plaform in "jax" "tensorflow" "torch"; do | ||
pushd "${base_dir}/${plaform}" > /dev/null | ||
gcloud builds submit \ | ||
--region=us-west1\ | ||
--tag "us-west1-docker.pkg.dev/keras-team-test/keras-nlp-test/keras-nlp-image-${plarform}:deps" \ | ||
--timeout=30m | ||
popd | ||
done |