Skip to content

Commit

Permalink
Officially mark Cog as supporting Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
erbridge committed Jan 7, 2025
1 parent 8dac405 commit cb78a0f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ build:
python_version: "3.11.1"
```

Cog supports all active branches of Python: 3.8, 3.9, 3.10, 3.11, 3.12. If you don't define a version, Cog will use the latest version of Python 3.12 or a version of Python that is compatible with the versions of PyTorch or TensorFlow you specify.
Cog supports all active branches of Python: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13. If you don't define a version, Cog will use the latest version of Python 3.12 or a version of Python that is compatible with the versions of PyTorch or TensorFlow you specify.

Note that these are the versions supported **in the Docker container**, not your host machine. You can run any version(s) of Python you wish on your host machine.

Expand Down
33 changes: 16 additions & 17 deletions pkg/config/torch_compatibility_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cpu",
"CUDA": null,
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.9"
"3.12"
]
},
{
Expand All @@ -21,10 +21,10 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cu118",
"CUDA": "11.8",
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.9"
"3.12"
]
},
{
Expand All @@ -35,10 +35,10 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cu121",
"CUDA": "12.1",
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.9"
"3.12"
]
},
{
Expand All @@ -49,10 +49,10 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cu124",
"CUDA": "12.4",
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.9"
"3.12"
]
},
{
Expand All @@ -63,11 +63,11 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cpu",
"CUDA": null,
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
"3.9"
"3.13"
]
},
{
Expand All @@ -78,11 +78,11 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cu118",
"CUDA": "11.8",
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
"3.9"
"3.13"
]
},
{
Expand All @@ -93,12 +93,11 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cu121",
"CUDA": "12.1",
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
"3.9",
"3.10"
"3.13"
]
},
{
Expand All @@ -109,11 +108,11 @@
"ExtraIndexURL": "https://download.pytorch.org/whl/cu124",
"CUDA": "12.4",
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
"3.9"
"3.13"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.8"

Expand Down
2 changes: 1 addition & 1 deletion tools/compatgen/internal/torch.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func parseTorchInstallString(s string, defaultVersions map[string]string, cuda *
torchaudio := libVersions["torchaudio"]

// TODO: this could be determined from https://download.pytorch.org/whl/torch/
pythons := []string{"3.8", "3.9", "3.10", "3.11", "3.12"}
pythons := []string{"3.8", "3.9", "3.10", "3.11", "3.12", "3.13"}

return &config.TorchCompatibility{
Torch: torch,
Expand Down

0 comments on commit cb78a0f

Please sign in to comment.