Open
Description
With: 8393ceb
This issue is a follow up on #1327 (comment). We've tried to update fast_neural_style
example which required bumping up pytorch version and spotted few issues. Findings are around the fact that CI scripts run bulk install of dependencies for all examples at once. See:
Lines 26 to 31 in 8393ceb
This causes downgrade of nightly torch installed by the CI:
- torch nightly is installed here:
- And gets downgraded (to torch 2.5) due to some examples pinning
torchvision
version. For example here:
examples/dcgan/requirements.txt
Line 2 in 8393ceb
I suggest to consider the following improvements for pytorch examples:
- Each example must have
requirements.txt
(some miss it asfast_neural_style
does), Respect each example requirements and use uv #1330 - CI scripts must not bulk install dependencies, but respect each example individual
requirements.txt
, Respect each example requirements and use uv #1330 - (to discuss) CI to prepare environment for each example from scratch instead of installing next example environment on top of previous one, Respect each example requirements and use uv #1330
- note: this requires significant change to current scripts and requires discussion
- Examples must not pin version of pytorch packages (
torch
,torchvision
, etc.) unless as a workaround to specific issues (which must be explicitly noted) or due to example deprecation with the future drop
Alternatively, we can consider that (UPDATE: we've dismissed this after discussion):
- All examples must comply to the single dependency list supported on the pytorch examples repo top level
CC: @malfet, @atalman, @msaroufim
Metadata
Metadata
Assignees
Labels
No labels