observantdistressed commited on
Commit
58a0771
·
verified ·
1 Parent(s): e6b2d43

fix: remove stale _TURBO_Deltas global declaration

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +0 -4
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -169,10 +169,6 @@ def load_models() -> str | None:
169
  pipe.load_components(dtype=torch.bfloat16)
170
  pipe.transformer.set_attention_backend(ATTENTION)
171
 
172
- # Parse the InstantX/larryvrh distillation LoRA at startup — compute deltas on CPU, but do NOT
173
- # merge into the base weights. Deltas are moved to CUDA after the transformer is placed on GPU,
174
- # so on-demand merge/unmerge is zero-allocation in-place += / -=.
175
- global TURBO_AVAILABLE, _TURBO_Deltas
176
  if TURBO_LORA_REPO:
177
  from safetensors.torch import load_file as _load_lora
178
 
 
169
  pipe.load_components(dtype=torch.bfloat16)
170
  pipe.transformer.set_attention_backend(ATTENTION)
171
 
 
 
 
 
172
  if TURBO_LORA_REPO:
173
  from safetensors.torch import load_file as _load_lora
174