someone-in-the-world Claude Sonnet 5 commited on
Commit
6d80426
·
1 Parent(s): 1093d66

Pin accelerate and peft to release versions instead of git HEAD

Browse files

Both were installed via unpinned git+https://..., so every fresh build
silently pulled whatever was on GitHub main that day — the same class
of drift that caused today's diffusers/huggingface-hub conflict. This
Space went 5 weeks without a rebuild before today's AWS-outage-forced
restart pulled a month of accumulated upstream changes at once; pinning
accelerate/peft closes off that same failure mode for accelerate/peft
specifically.

Pinned to the latest released versions (accelerate==1.14.0, which the
unpinned build had already drifted past to 1.15.0.dev0; peft==0.19.1,
past 0.19.2.dev0). Verified via a real pip dry-run resolve alongside
diffusers==0.39.0 and transformers==4.57.1 that this combination
resolves cleanly with no conflicts. Neither package is imported
directly anywhere in this repo (they're consumed internally by
diffusers' ModelMixin/PeftAdapterMixin/QwenImageLoraLoaderMixin), and
diffusers 0.39.0 only requires accelerate>=0.31.0 and peft>=0.17.0, so
both releases are comfortably within range.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. requirements.txt +2 -2
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
- git+https://github.com/huggingface/accelerate.git
2
  diffusers==0.39.0
3
- git+https://github.com/huggingface/peft.git
4
  transformers==4.57.1
5
  huggingface_hub
6
  pyarrow
 
1
+ accelerate==1.14.0
2
  diffusers==0.39.0
3
+ peft==0.19.1
4
  transformers==4.57.1
5
  huggingface_hub
6
  pyarrow