mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 03:01:28 +00:00
fixed huge flux training bug. Added ability to use an assistatn lora
This commit is contained in:
@@ -263,7 +263,7 @@ class ToolkitModuleMixin:
|
||||
if isinstance(x, QTensor):
|
||||
x = x.dequantize()
|
||||
# always cast to float32
|
||||
lora_input = x.float()
|
||||
lora_input = x.to(self.lora_down.weight.dtype)
|
||||
lora_output = self._call_forward(lora_input)
|
||||
multiplier = self.network_ref().torch_multiplier
|
||||
|
||||
|
||||
Reference in New Issue
Block a user