yycc commited on
Commit
681040b
·
verified ·
1 Parent(s): 48f09a8

Pin torch 2.9.1 + torchvision 0.24.1 (Qwen3VLVideoProcessor needs torchvision)

Browse files
Files changed (1) hide show
  1. requirements.txt +9 -7
requirements.txt CHANGED
@@ -1,11 +1,13 @@
1
- # torch is deliberately NOT pinned here: the ZeroGPU image provides a CUDA build of torch, and the
2
- # ZeroGPU docs list "almost all versions from 2.8.0 to latest" as supported (2.8.0, 2.9.1, 2.10.0,
3
- # 2.11.0, 2.12.1, 2.13.0). ASSUMPTION, not yet checked against a real Space build: the image ships
4
- # one of those. Everything in this release was validated on torch 2.9.1+cu128, which is on that
5
- # list. Gate the first Space build on its log: if it resolves a torch outside 2.8-2.13, add
6
- # `torch==2.9.1` here and record the resolved version in README.md before going public.
7
- # gradio is not pinned here either: `sdk_version` in README.md owns the Gradio version on Spaces
8
  # (5.50.0, the version app.py's component/argument use was checked against).
 
 
9
 
10
  # QwenImage21Pipeline is not in any released diffusers (0.40.0 on PyPI has no qwenimage21 files),
11
  # so install from upstream main at the commit this model was validated against.
 
1
+ # torch/torchvision are pinned as a matching pair. The first Space build left them to the resolver,
2
+ # which (a) picked torch 2.14.0 - outside the versions ZeroGPU supports - and (b) never installed
3
+ # torchvision at all, because nothing in this list depends on it. transformers 5's Qwen3VLProcessor
4
+ # always builds a Qwen3VLVideoProcessor, which hard-requires torchvision, so QwenImage21Pipeline
5
+ # .from_pretrained died with "Qwen3VLVideoProcessor requires the Torchvision library". 2.9.1/0.24.1
6
+ # is the pair this release was validated on and 2.9.1 is on the ZeroGPU supported list.
7
+ # gradio is not pinned here: `sdk_version` in README.md owns the Gradio version on Spaces
8
  # (5.50.0, the version app.py's component/argument use was checked against).
9
+ torch==2.9.1
10
+ torchvision==0.24.1
11
 
12
  # QwenImage21Pipeline is not in any released diffusers (0.40.0 on PyPI has no qwenimage21 files),
13
  # so install from upstream main at the commit this model was validated against.