MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / unfuse_lora

Method unfuse_lora

diffusers/src/diffusers/loaders/peft.py:295–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 module.merge(**merge_kwargs)
294
295 def unfuse_lora(self):
296 if not USE_PEFT_BACKEND:
297 raise ValueError("PEFT backend is required for `unfuse_lora()`.")
298 self.apply(self._unfuse_lora_apply)
299
300 def _unfuse_lora_apply(self, module):
301 from peft.tuners.tuners_utils import BaseTunerLayer

Calls 1

applyMethod · 0.45