aisingapore / kapitan-hull

The one-stop shop of a Cookiecutter template to spin up a working AISG project in minutes.
https://aisingapore.github.io/kapitan-hull/
8 stars 0 forks source link

[Bug]: For `cv` problem template, removing `cpuonly` package doesn't enable GPU; CPU and GPU images does not work as intended #27

Closed Syakyr closed 5 months ago

Syakyr commented 6 months ago

Problem Domain

OS/Platform(s) Used

Problem Brief

The cv problem template is meant to be used as an example for AIAP MLOps Week. And within the week, GPUs are not given to be used, so this issue would fly under the radar during the session. However, if GPUs are used for the guide, just removing the cpuonly package doesn't make that happen as the Pytorch version installed uses a build that only uses CPU even if GPU and and CUDA are available within the container. Thus, the current Dockerfile used to create GPU images is redundant and bloated since the Pytorch package wouldn't use the GPUs attached to the container.

Steps to Reproduce

Expected Result

true

Actual Result

false

Syakyr commented 5 months ago

To mitigate the issue, a separate yaml file is created to make the GPU image variant.