Spaces:
Build error
Build error
Commit ·
7119a13
1
Parent(s): 57207b5
Upgrade peft 0.19.1 -> 0.20.0 to fix LoRA loading on torchao-quantized models
Browse filesTorchaoLoraLinear.__init__ in peft 0.19.1 requires the kwarg
get_apply_tensor_subclass, but PEFT's dispatcher only supplies it when the
base model was loaded via transformers' TorchAoConfig. diffusers pipelines
quantized directly with torchao.quantization.quantize_() (as app.py does)
have no hf_quantizer, so the kwarg is never passed and every LoRA load
fails with: TorchaoLoraLinear.__init__() missing 1 required keyword-only
argument: 'get_apply_tensor_subclass'.
peft 0.20.0 (PR #3234, merged May 2026) makes the kwarg optional (defaults
to None) so inference-time LoRA loading works on quantize_()'d models.
torchao 0.17.0 / torch 2.11.0 / diffusers 0.38.0 remain valid pairs.
2 unmodified lines34567892 unmodified linesaccelerate===1.13.0safetensorssentencepiecepeft==0.19.1ftfyimageioimageio-ffmpeg2 unmodified lines34567892 unmodified linesaccelerate===1.13.0safetensorssentencepiecepeft==0.20.0ftfyimageioimageio-ffmpeg
requirements.txt+1-1