Skip to content

Conversation

fabiendupont
Copy link
Contributor

@fabiendupont fabiendupont commented Apr 19, 2024

Modify the Containerfile for NVIDIA CUDA to:

  • use the CUDA runtime image for the final stage
  • install the Python packages in a virtualenv that is copied in the final container
  • make the final container rootless

Propose a shell alias that should simplify the user experience when using the container image, avoiding using long podman run commands.

Modify the containerization documentation to explain this and provide steps for the user.

Update the cuda target in the Makefile to reflect the changes above.

Resolves #899

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Apr 19, 2024
This change modifies the Containerfile for NVIDIA CUDA to:
- use the CUDA runtime image for the final stage
- install the Python packages in a virtualenv that is copied in the
  final container
- make the final container rootless

It also proposes a shell alias that should simplify the user experience
when using the container image, avoiding to use long `podman run`
commands.

It modifies the containerization documentation to explain all of this
and provide steps for the user.

The `cuda` target in the Makefile is modified accordingly.

Signed-off-by: Fabien Dupont <fdupont@redhat.com>
@fabiendupont fabiendupont force-pushed the update-cuda-container branch from ac1a38a to febb15c Compare April 19, 2024 12:19
@fabiendupont fabiendupont requested a review from soltysh as a code owner April 19, 2024 12:19
@nathan-weinberg
Copy link
Member

@fabiendupont can you rebase this when you get a chance?

@fabiendupont
Copy link
Contributor Author

Closing in favor of #934

mergify bot added a commit that referenced this pull request Sep 19, 2024
This change modifies the Containerfile for NVIDIA CUDA to:
- Use CentOS Stream 9 as the default base image. UBI9 also works
- Install the NVIDIA packages from NVIDIA repository for exact CUDA version
- Add NVIDIA scripts from `nvcr.io/nvidia/cuda` image for copyrights...
- Install the Python packages in a Python 3.11 virtualenv
- Install instructlab package from PyPI
- Allow specifying the instructlab version at build time
- Make the final container rootless

Resolves #899
Replaces #932
Replaces #994


Approved-by: nathan-weinberg

Approved-by: markstur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Container ships build dependencies
2 participants