Skip to content

Fix torch version constraint incompatible with torchrl>=0.11.1#2

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-uv-sync-requirement-conflict
Draft

Fix torch version constraint incompatible with torchrl>=0.11.1#2
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-uv-sync-requirement-conflict

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 11, 2026

torchrl>=0.11.1 requires torch>=2.11 (torchrl 0.X.Y ↔ torch 2.X.Y convention), but all three hardware extras declared torch<2.11 — a direct conflict. In standalone mode this can be masked by an existing venv, but uv's workspace resolver catches it immediately when model-zoo is added as a workspace member.

Change

  • torch<2.11torch>=2.11,<2.12 in cpu, cuda, and xpu optional dependencies
# Before
cpu = ["torch<2.11", "torchaudio", "torchvision", ...]

# After
cpu = ["torch>=2.11,<2.12", "torchaudio", "torchvision", ...]

Same fix applied to cuda and xpu extras.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • docs.astral.sh
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Why uv sync --extra=cpu --dev requirement conflit when adding "model-zoo" in the workspace, and no problem when comment out "model-zoo"?

创建自 VS Code

Copilot AI changed the title [WIP] Fix uv sync requirement conflict with model-zoo Fix torch version constraint incompatible with torchrl>=0.11.1 Apr 11, 2026
Copilot AI requested a review from LoSealL April 11, 2026 01:44
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.

2 participants