update requirements and introduce constraints

Signed-off-by: vladmandic <mandic00@live.com>
pull/4703/head
vladmandic 2026-03-23 07:27:50 +01:00
parent 57990fd8c0
commit 3261e2eeae
6 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@ -58,6 +58,7 @@ tunableop_results*.csv
!webui.sh !webui.sh
!package.json !package.json
!requirements.txt !requirements.txt
!constraints.txt
!/data !/data
!/models/VAE-approx !/models/VAE-approx
!/models/VAE-approx/model.pt !/models/VAE-approx/model.pt

View File

@ -2,7 +2,6 @@
## Release ## Release
- Bumb packages
- Implement `unload_auxiliary_models` - Implement `unload_auxiliary_models`
- Release **Launcher** - Release **Launcher**
- Release **Enso** - Release **Enso**

0
constraints.txt Normal file
View File

View File

@ -475,7 +475,7 @@ def check_diffusers():
t_start = time.time() t_start = time.time()
if args.skip_all: if args.skip_all:
return return
target_commit = "e5aa719241f9b74d6700be3320a777799bfab70a" # diffusers commit hash target_commit = "c02c17c6ee7ac508c56925dde4d4a3c587650dc3" # diffusers commit hash
# if args.use_rocm or args.use_zluda or args.use_directml: # if args.use_rocm or args.use_zluda or args.use_directml:
# sha = '043ab2520f6a19fce78e6e060a68dbc947edb9f9' # lock diffusers versions for now # sha = '043ab2520f6a19fce78e6e060a68dbc947edb9f9' # lock diffusers versions for now
pkg = package_spec('diffusers') pkg = package_spec('diffusers')
@ -1235,6 +1235,7 @@ def install_requirements():
# set environment variables controling the behavior of various libraries # set environment variables controling the behavior of various libraries
def set_environment(): def set_environment():
log.debug('Setting environment tuning') log.debug('Setting environment tuning')
os.environ.setdefault('PIP_CONSTRAINT', os.path.abspath('constraints.txt'))
os.environ.setdefault('ACCELERATE', 'True') os.environ.setdefault('ACCELERATE', 'True')
os.environ.setdefault('ATTN_PRECISION', 'fp16') os.environ.setdefault('ATTN_PRECISION', 'fp16')
os.environ.setdefault('ClDeviceGlobalMemSizeAvailablePercent', '100') os.environ.setdefault('ClDeviceGlobalMemSizeAvailablePercent', '100')

View File

@ -18,7 +18,7 @@
"venv": ". venv/bin/activate", "venv": ". venv/bin/activate",
"start": ". venv/bin/activate; python launch.py --debug", "start": ". venv/bin/activate; python launch.py --debug",
"localize": "node cli/localize.js", "localize": "node cli/localize.js",
"packages": ". venv/bin/activate && pip install --upgrade transformers accelerate huggingface_hub safetensors tokenizers peft pytorch_lightning pylint ruff", "packages": ". venv/bin/activate && pip install --upgrade accelerate huggingface_hub safetensors tokenizers peft pytorch_lightning pylint ruff",
"format": ". venv/bin/activate && pre-commit run --all-files", "format": ". venv/bin/activate && pre-commit run --all-files",
"format-win": "venv\\scripts\\activate && pre-commit run --all-files", "format-win": "venv\\scripts\\activate && pre-commit run --all-files",
"eslint": "eslint . javascript/", "eslint": "eslint . javascript/",

View File

@ -27,13 +27,13 @@ peft==0.18.1
httpx==0.28.1 httpx==0.28.1
requests==2.32.3 requests==2.32.3
tqdm==4.67.3 tqdm==4.67.3
accelerate==1.12.0 accelerate==1.13.0
einops==0.8.1 einops==0.8.1
huggingface_hub==1.5.0 huggingface_hub==1.7.2
numpy==2.1.2 numpy==2.1.2
pandas==2.3.1 pandas==2.3.1
protobuf==6.33.5 protobuf==6.33.5
pytorch_lightning==2.6.0 pytorch_lightning==2.6.1
urllib3==1.26.19 urllib3==1.26.19
Pillow==10.4.0 Pillow==10.4.0
timm==1.0.24 timm==1.0.24