Fix conda environment compatibility issues for CI environments #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The conda environment setup was failing in CI with the following errors:
The root causes were:
cudatoolkitwas conflicting with PyTorch's CUDA requirementsSolution
Updated both
environment.ymlandrequirements.txtto use actually available package versions with CPU-only support:Changes to
environment.yml:cudatoolkitwithcpuonlypackage for CPU-only builds>=2.8.0→=2.5.1(latest stable version)>=0.23.0→=0.20.1(compatible with PyTorch 2.5.1)>=2.20.0→=2.18.1(latest available version)Changes to
requirements.txt:tensorflow==2.20.0→tensorflow==2.18.1torch==2.8.0→torch==2.5.1torchvision==0.23.0→torchvision==0.20.1Verification
✅ Conda environment resolves and installs successfully
✅ All PyTorch tests pass (4/4)
✅ PyTorch 2.5.1 working correctly with CPU-only support
✅ No CUDA-related errors
The environment now installs cleanly in CI environments without GPU/CUDA support while maintaining all required functionality for the project.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.