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

Fix nvidia-smi not available on lambda #1357

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

r4victor
Copy link
Collaborator

Fixes #1356

The PR fixes nvidia docker runtime not working on lambda instances.

The issue took place because we installed nvidia-docker2 on lambda instances which is deprecated and doesn't work for the docker version shipped on lambda (24.0.7) . To enable nvidia in docker, nvidia-container-toolkit is now recommended. The fix replaces nvidia-docker2 with nvidia-container-toolkit.

See NVIDIA/nvidia-docker#1268 (comment) for more details.

In other backends where dstack uses its own VM images, docker 20.10.17 is installed which apparently still works with nvidia-docker2. We should consider migrating to nvidia-container-toolkit everywhere when updating the docker version.

Also, the PR refactors LambdaBackend to implement update_provisioning_data() to fix long waiting for ip address in create_instance() that lead to the blocking of jobs processing.

@r4victor r4victor merged commit d12892b into master Jun 25, 2024
15 checks passed
@r4victor r4victor deleted the issue_1356_lambda_missing_nvidia_smi branch June 25, 2024 10:47
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.

[Bug]: dstack dev-environment on lambda doesn't have nvidia drivers setup
1 participant