-
Notifications
You must be signed in to change notification settings - Fork 606
GPU support #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
GPU support #6
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
fc00d65
add GPU support
1vn d4a1648
Ditch GPU support for KOPS
1vn a4989db
add libcuda files so CPU-only clusters still work
1vn 5f1875e
clean up dockerfile
1vn f82558d
clean up dockerimage, eks script. only give gpu resources to serving
1vn 78be2b1
don't need to split for api
1vn cb9e192
separate GPU docker images
1vn 00c9037
merge master
1vn 18a2497
address comments
1vn 4b798ee
remove deprecated comment
1vn 59931ce
add gpu to compute docs
1vn a6c7c3a
address comments
1vn 6b744a2
update docs
1vn acee08c
update dockerfiles - remove license and use tf image directly
1vn f0503bd
remove more deps from dockerfile
1vn a1d4ca2
fix api status bug
1vn a9882c9
merge master
1vn b8b7144
update docs
1vn 4e34be1
merge master
1vn 1a439f9
use ubuntu 16
1vn 2034d4c
address comments
1vn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:18.04 | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update -qq && apt-get install -y -q \ | ||
python3 \ | ||
|
This file contains hidden or 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 hidden or 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,5 @@ | ||
FROM tensorflow/tensorflow:1.12.0-gpu-py3 | ||
|
||
RUN apt-get update -qq && apt-get install -y -q \ | ||
zlib1g-dev \ | ||
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* |
This file contains hidden or 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 |
---|---|---|
@@ -1,21 +1,6 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ARG TF_VERSION="1.12.0" | ||
FROM tensorflow/tensorflow:1.12.0-py3 | ||
|
||
RUN apt-get update -qq && apt-get install -y -q \ | ||
build-essential \ | ||
curl \ | ||
libfreetype6-dev \ | ||
libpng-dev \ | ||
libzmq3-dev \ | ||
pkg-config \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
rsync \ | ||
software-properties-common \ | ||
unzip \ | ||
zlib1g-dev \ | ||
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip3 install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-${TF_VERSION}-cp36-cp36m-linux_x86_64.whl && rm -rf /root/.cache/pip* |
This file contains hidden or 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 cortexlabs/tf-base-gpu | ||
|
||
ARG TF_VERSION="1.12.0" | ||
|
||
RUN curl -o tensorflow-model-server.deb http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-${TF_VERSION}/t/tensorflow-model-server/tensorflow-model-server_${TF_VERSION}_all.deb | ||
RUN dpkg -i tensorflow-model-server.deb | ||
|
||
ENTRYPOINT ["tensorflow_model_server"] |
This file contains hidden or 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 hidden or 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,15 @@ | ||
FROM cortexlabs/tf-base-gpu | ||
|
||
ENV PYTHONPATH="/src:${PYTHONPATH}" | ||
|
||
COPY pkg/workloads/lib/requirements.txt /src/lib/requirements.txt | ||
COPY pkg/workloads/tf_train/requirements.txt /src/tf_train/requirements.txt | ||
RUN pip3 install -r /src/lib/requirements.txt && \ | ||
pip3 install -r /src/tf_train/requirements.txt && \ | ||
rm -rf /root/.cache/pip* | ||
|
||
COPY pkg/workloads/consts.py /src/ | ||
COPY pkg/workloads/lib /src/lib | ||
COPY pkg/workloads/tf_train /src/tf_train | ||
|
||
ENTRYPOINT ["/usr/bin/python3", "/src/tf_train/train.py"] |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.