Skip to content
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

Added Docker with GPU support for inference and minor improvements #2

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

juliocesar-io
Copy link

Why this PR

Having Docker support is great so is easy to do inference on any machine avoiding CUDA version conflics with the version of the host. This also allows better maintenance.

Changes

  • Added Dockerfile with the nvcr.io/nvidia/pytorch:22.03-py3 as base image
  • Fixed the requirements versions in a requirements.txt
  • Updated run_inference_AMP.sh and run_inference_multilabel.sh to be used with command line arguments
  • Added pycache to gitignore
  • Updated inference.py to improve GPU device check and updated import for Torch DataLoader
  • Updated Readme to include Docker install instructions

This changes were tested on a machine with Ubuntu 24.02 using NVIDIA RTX A6000, CUDA 12.2

@juliocesar-io juliocesar-io changed the title Added Docker suport for inference and minor improvements Added Docker with GPU support for inference and minor improvements Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant