-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding example to train the resnet56 model using MultiworkerMirroredT…
…raining example on the cifar-10 dataset
- Loading branch information
Showing
5 changed files
with
670 additions
and
6 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
30 changes: 30 additions & 0 deletions
30
distribution_strategy/multi_worker_mirrored_strategy/examples/Dockerfile.gpu
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,30 @@ | ||
FROM tensorflow/tensorflow:2.3.1-gpu-jupyter | ||
|
||
RUN apt-get install -y python3 && \ | ||
apt install python3-pip | ||
|
||
RUN pip3 install absl-py && \ | ||
pip3 install portpicker | ||
|
||
# Install git | ||
RUN apt-get update && \ | ||
apt-get install -y git && \ | ||
apt-get install -y vim | ||
|
||
WORKDIR /app | ||
|
||
RUN git clone --single-branch --branch benchmark https://github.com/tensorflow/models.git && \ | ||
mv models tensorflow_models && \ | ||
git clone https://github.com/tensorflow/model-optimization.git && \ | ||
mv model-optimization tensorflow_model_optimization | ||
|
||
# Keeps Python from generating .pyc files in the container | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
# Turns off buffering for easier container logging | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
COPY . /app/ | ||
|
||
ENV PYTHONPATH "${PYTHONPATH}:/:/app/tensorflow_models" | ||
|
||
CMD ["python", "resnet_cifar_multiworker_strategy_keras.py"] |
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
Oops, something went wrong.