serve icon indicating copy to clipboard operation
serve copied to clipboard

dockerfile for gpu machines install

Open chauhang opened this issue 6 years ago • 7 comments

Please provide a gpu dockerfile for serving gpu dependent models

chauhang avatar Feb 16 '20 01:02 chauhang

We have created a dockerfile for GPU in this PR

@C24IO : could you please review this?

harshbafna avatar Mar 13 '20 11:03 harshbafna

@harshbafna - Noted will review it today.

C24IO avatar Mar 13 '20 15:03 C24IO

Few notes -

  1. When I checkout serve, get into serve and then give - ./build_image.sh -b quick_start_scripts --gpu it starts checking out the repo again. Why would a script inside a github repo checkout the same repo again? Feels odd. Also exposing the branch structure of the repo? Is it temporary?

  2. In the start.sh script, return code is not checked, so even if the operation fails it displays as successful.

I was able to build the container, register the model and get a prediction from the model server.

[ec2-user@ip-10-0-0-202 serve]$ curl -X POST http://127.0.0.1:8080/predictions/resnet-18 -T kitten.jpg [ { "tabby": 0.40864479541778564 }, { "tiger_cat": 0.3506154417991638 }, { "Egyptian_cat": 0.1260959506034851 }, { "lynx": 0.023326873779296875 }, { "bucket": 0.011855190619826317 } ]

C24IO avatar Mar 16 '20 05:03 C24IO

@C24IO

  1. When I checkout serve, get into serve and then give - ./build_image.sh -b quick_start_scripts --gpu it starts checking out the repo again. Why would a script inside a github repo checkout the same repo again? Feels odd. Also exposing the branch structure of the repo? Is it temporary?

This is a temporary solution as TorchServe is currently not available as a PyPi package and we need to install from source. Thus we clone the serve repo and ADD it to the docker image. This step will be replaced with a simple pip install command in future.

2.In the start.sh script, return code is not checked, so even if the operation fails it displays as successful.

I will make the required changes. Thanks.

harshbafna avatar Mar 16 '20 05:03 harshbafna

Leaving this open & upgrading to launch blocker - not because the current state is bad in any way (I understand the issue with not having PyPi packages ready yet), but just so we don't lose track of the work item before launch.

As soon as there's a PyPi package available and we can fix this, let's close.

fbbradheintz avatar Apr 06 '20 23:04 fbbradheintz

@mycpuorg Can we close this now?

adityabindal avatar Apr 13 '20 01:04 adityabindal

@fbbradheintz Marked this as triaged_wait, can you please test it and let us know if this could be closed?

virgo24i avatar Apr 18 '20 16:04 virgo24i