8000 Validate minor version for CUDA and Python by marcusmartins · Pull Request #1721 · replicate/cog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Validate minor version for CUDA and Python #1721

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

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

marcusmartins
Copy link
Contributor

When the user specifies a CUDA or Python version in the cog.yaml, we now ensure that at least the minor version is set. This validation ensures that our compatibility version logic works properly.

Additionally, this commit adds logic to the CUDA version selection process, enabling it to pick the latest versions of both CUDA and Ubuntu that satisfy the major.minor constraints.

It also fixes a bug in the config parsing that caused a panic if the user defined only the major version of Python.

When the user specifies a CUDA or Python version in the cog.yaml,
we now ensure that at least the minor version is set.
This validation ensures that our compatibility version logic works properly.

Additionally, this commit adds logic to the CUDA version selection process,
enabling it to pick the latest versions of both CUDA and Ubuntu that satisfy
the major.minor constraints.

It also fixes a bug in the config parsing that caused a panic if the user
defined only the major version of Python.

Signed-off-by: Marcus Martins <marcus@replicate.com>
@marcusmartins marcusmartins changed the title Validate Minor Version for CUDA and Python Validate Minor version for CUDA and Python Jun 6, 2024
@marcusmartins marcusmartins changed the title Validate Minor version for CUDA and Python Validate minor version for CUDA and Python Jun 6, 2024
@marcusmartins marcusmartins removed the request for review from bfirsh June 6, 2024 23:06
@@ -25,13 +25,13 @@ This stanza describes how to build the Docker image your model runs in. It conta

### `cuda`

Cog automatically picks the correct version of CUDA to install, but this lets you override it for whatever reason.
Cog automatically picks the correct version of CUDA to install, but this lets you override it for whatever reason by specifying the minor (`11.8`) or patch (`11.8.0`) version of CUDA to use.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏼

Signed-off-by: Marcus Martins <marcus@replicate.com>
@marcusmartins marcusmartins merged commit 99bdbdb into main Jun 7, 2024
15 checks passed
@marcusmartins marcusmartins deleted the marcus/fix-CUDA-version-matching branch June 7, 2024 15:54
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.

3 participants
0