fix(deps): use a floor pin for safetensors so fresh installs resolve - #9
Open
rakhimovv wants to merge 1 commit into
Open
fix(deps): use a floor pin for safetensors so fresh installs resolve#9rakhimovv wants to merge 1 commit into
rakhimovv wants to merge 1 commit into
Conversation
diffsynth 2.0.11 declares transformers without an upper bound, and transformers raised its safetensors floor from >=0.4.3 to >=0.8.0 in 5.13.0. Because requirements.txt is installed last, the exact pin safetensors==0.7.0 downgraded the version installed by the diffsynth dependency chain, making `import diffsynth` fail with an ImportError. A floor pin lets pip satisfy both constraints, and keeps working if transformers raises its floor again.
rakhimovv
force-pushed
the
fix/safetensors-floor-pin
branch
from
September 1, 2026 23:56
12cf6f7 to
a558e15
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #8.
requirements.txtis installed afterpip install diffsynth==2.0.11, so its exact pinsafetensors==0.7.0downgrades the version that the diffsynth dependency chain had just resolved.diffsynthdeclarestransformerswith no upper bound, andtransformersraised its floor tosafetensors>=0.8.0in 5.13.0 (2026-07-03), enforced at import time. The result is that a fresh install following the README fails onimport diffsynth:This changes the exact pin to a floor, which lets pip satisfy both constraints and keeps working if
transformersraises its floor again.Safe for this codebase: safetensors 0.8.0's breaking change is limited to the low-level
serialize/serialize_fileAPI, while this repo anddiffsynthonly use the read path (from safetensors import safe_open).Verified on Linux / 4xH100 / CUDA 12.8, Python 3.10.21, torch 2.8.0+cu128:
pip installresolves cleanly (safetensors-0.8.0,transformers-5.15.0);pip checkreports no broken requirements.bash scripts/infer_example.shruns to completion on all threedemo/demo.jsonlepisodes, producingoutputs/inference/episode{0,1,2}.mp4.