Skip to content

Support Torch 2.7.0, 2.6.0; cuda 12.9, 12.8, 12.6.3 #2320

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/config/compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ func latestCuDNNForCUDA(cuda string) (string, error) {
}
}
sort.Slice(cuDNNs, func(i, j int) bool {
if cuDNNs[i] == "" {
// Later versions of NVIDIA CUDA base images
// don't specify CuDNN version
return true
}
return version.Greater(cuDNNs[i], cuDNNs[j])
})
if len(cuDNNs) == 0 {
Expand Down
8 changes: 5 additions & 3 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ type Build struct {
SystemPackages []string `json:"system_packages,omitempty" yaml:"system_packages,omitempty"`
PreInstall []string `json:"pre_install,omitempty" yaml:"pre_install,omitempty"` // Deprecated, but included for backwards compatibility
CUDA string `json:"cuda,omitempty" yaml:"cuda,omitempty"`
CuDNN string `json:"cudnn,omitempty" yaml:"cudnn,omitempty"`
Fast bool `json:"fast,omitempty" yaml:"fast"`
PythonOverrides string `json:"python_overrides,omitempty" yaml:"python_overrides,omitempty"`
// TODO: deprecate `cudnn` since it NVIDIA no longer publishes
// CuDNN-specific base images.
CuDNN string `json:"cudnn,omitempty" yaml:"cudnn,omitempty"`
Fast bool `json:"fast,omitempty" yaml:"fast"`
PythonOverrides string `json:"python_overrides,omitempty" yaml:"python_overrides,omitempty"`

pythonRequirementsContent []string
}
Expand Down
110 changes: 97 additions & 13 deletions pkg/config/cuda_base_images.json
Original file line number Diff line number Diff line change
@@ -1,92 +1,176 @@
[
{
"Tag": "12.9.0-cudnn-devel-ubuntu24.04",
"CUDA": "12.9.0",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "24.04"
},
{
"Tag": "12.9.0-cudnn-devel-ubuntu22.04",
"CUDA": "12.9.0",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.9.0-cudnn-devel-ubuntu20.04",
"CUDA": "12.9.0",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.8.1-cudnn-devel-ubuntu24.04",
"CUDA": "12.8.1",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "24.04"
},
{
"Tag": "12.8.1-cudnn-devel-ubuntu22.04",
"CUDA": "12.8.1",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.8.1-cudnn-devel-ubuntu20.04",
"CUDA": "12.8.1",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.8.0-cudnn-devel-ubuntu24.04",
"CUDA": "12.8.0",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "24.04"
},
{
"Tag": "12.8.0-cudnn-devel-ubuntu22.04",
"CUDA": "12.8.0",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.8.0-cudnn-devel-ubuntu20.04",
"CUDA": "12.8.0",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.6.3-cudnn-devel-ubuntu24.04",
"CUDA": "12.6.3",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "24.04"
},
{
"Tag": "12.6.3-cudnn-devel-ubuntu22.04",
"CUDA": "12.6.3",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.6.3-cudnn-devel-ubuntu20.04",
"CUDA": "12.6.3",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.6.2-cudnn-devel-ubuntu24.04",
"CUDA": "12.6.2",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "24.04"
},
{
"Tag": "12.6.2-cudnn-devel-ubuntu22.04",
"CUDA": "12.6.2",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.6.2-cudnn-devel-ubuntu20.04",
"CUDA": "12.6.2",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.6.1-cudnn-devel-ubuntu24.04",
"CUDA": "12.6.1",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "24.04"
},
{
"Tag": "12.6.1-cudnn-devel-ubuntu22.04",
"CUDA": "12.6.1",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.6.1-cudnn-devel-ubuntu20.04",
"CUDA": "12.6.1",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.6.0-cudnn-devel-ubuntu24.04",
"CUDA": "12.6.0",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "24.04"
},
{
"Tag": "12.6.0-cudnn-devel-ubuntu22.04",
"CUDA": "12.6.0",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.6.0-cudnn-devel-ubuntu20.04",
"CUDA": "12.6.0",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.5.1-cudnn-devel-ubuntu22.04",
"CUDA": "12.5.1",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.5.1-cudnn-devel-ubuntu20.04",
"CUDA": "12.5.1",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
{
"Tag": "12.4.1-cudnn-devel-ubuntu22.04",
"CUDA": "12.4.1",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "22.04"
},
{
"Tag": "12.4.1-cudnn-devel-ubuntu20.04",
"CUDA": "12.4.1",
"CuDNN": "9",
"CuDNN": "",
"IsDevel": true,
"Ubuntu": "20.04"
},
Expand Down
Loading
Loading