Skip to content

Refresh uv.lock to match pyproject.toml - #11

Open
swapnilashtekar wants to merge 1 commit into
mainfrom
chore/refresh-uv-lock
Open

swapnilashtekar wants to merge 1 commit into
mainfrom
chore/refresh-uv-lock

Conversation

@swapnilashtekar

Copy link
Copy Markdown
Collaborator

The committed lockfile predates the cuda12 extra's torch pins and had drifted out of sync with pyproject.toml. It recorded torch 2.10.0 while pyproject has declared torch==2.3.0 / torchvision==0.18.0 under the cuda12 extra since those pins were added. uv lock --check against the old file passed only because it never recorded the cuda12 requirements in the first place.

Regenerating picks them up. Because extras are additive, a base install and the cuda12 extra have to agree on one torch version, so the pin propagates to everyone:

torch 2.10.0 -> 2.3.0
torchvision 0.25.0 -> 0.18.0
triton 3.6.0 -> 2.3.0

plus the matching cu121 runtime packages. This is the version pyproject has been asking for all along; the pins exist so OpenMM's JIT toolchain stays on a CUDA <=12.2 build (see the comment in pyproject.toml about PTX error 222). The base range >=2.2,<2.11 permits it.

Verified on torch 2.3.0+cu121: all proteogram.v2 modules import, the full dependency stack including OpenMM 8.4 loads, every torchvision weight enum used by Img2Vec resolves, torch.cuda.is_available() is True, and no torch API newer than 2.3 is used anywhere in proteogram/ or scripts/.

Splitting this out so the version change is reviewable on its own rather than riding along in an unrelated feature branch.

The committed lockfile predates the cuda12 extra's torch pins and had drifted
out of sync with pyproject.toml. It recorded torch 2.10.0 while pyproject has
declared torch==2.3.0 / torchvision==0.18.0 under the cuda12 extra since those
pins were added. `uv lock --check` against the old file passed only because it
never recorded the cuda12 requirements in the first place.

Regenerating picks them up. Because extras are additive, a base install and
the cuda12 extra have to agree on one torch version, so the pin propagates to
everyone:

  torch        2.10.0 -> 2.3.0
  torchvision  0.25.0 -> 0.18.0
  triton       3.6.0  -> 2.3.0

plus the matching cu121 runtime packages. This is the version pyproject has
been asking for all along; the pins exist so OpenMM's JIT toolchain stays on
a CUDA <=12.2 build (see the comment in pyproject.toml about PTX error 222).
The base range >=2.2,<2.11 permits it.

Verified on torch 2.3.0+cu121: all proteogram.v2 modules import, the full
dependency stack including OpenMM 8.4 loads, every torchvision weight enum
used by Img2Vec resolves, torch.cuda.is_available() is True, and no torch API
newer than 2.3 is used anywhere in proteogram/ or scripts/.

Splitting this out so the version change is reviewable on its own rather than
riding along in an unrelated feature branch.
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.

1 participant