Skip to content

Fix NVIDIA container toolkit bug in all backends#2877

Merged
jvstme merged 1 commit intomasterfrom
issue_2860_nvidia_bug_workaround
Jul 7, 2025
Merged

Fix NVIDIA container toolkit bug in all backends#2877
jvstme merged 1 commit intomasterfrom
issue_2860_nvidia_bug_workaround

Conversation

@jvstme
Copy link
Copy Markdown
Collaborator

@jvstme jvstme commented Jul 7, 2025

Use cgroupfs as a Docker cgroup driver on all
backends by default to work around an NVIDIA
container toolkit bug where the container looses
access to the GPU.

The patch to /etc/docker/daemon.json is
automatically applied in all VM-based backends if
/etc/docker/daemon.json exists, has the NVIDIA
runtime, does not explicitly set another cgroup
driver, and jq is installed. This is not the
case in Nebius. Lambda, and CUDO, so they still
need custom code to apply the workaround - either
installing jq or just writing a hardcoded
/etc/docker/daemon.json that is known to work on this backend.

#2860

Use cgroupfs as a Docker cgroup driver on all
backends by default to work around an NVIDIA
container toolkit bug where the container looses
access to the GPU.

The patch to `/etc/docker/daemon.json` is
automatically applied in all VM-based backends if
`/etc/docker/daemon.json` exists, has the NVIDIA
runtime, does not explicitly set another cgroup
driver, and `jq` is installed. This is not the
case in Nebius. Lambda, and CUDO, so they still
need custom code to apply the workaround - either
installing `jq` or just writing a hardcoded
`/etc/docker/daemon.json` that is known to work on
this backend.
@jvstme jvstme requested a review from un-def July 7, 2025 07:20
@jvstme jvstme merged commit 66ffdd1 into master Jul 7, 2025
25 checks passed
@jvstme jvstme deleted the issue_2860_nvidia_bug_workaround branch July 7, 2025 19:18
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.

2 participants