WIP - adding support for flux DoRA and ip adapter training

This commit is contained in:
Jaret Burkett
2024-08-22 04:36:39 -06:00
parent c45887192a
commit a939cf3730
3 changed files with 246 additions and 25 deletions

View File

@@ -293,7 +293,7 @@ class ToolkitModuleMixin:
# todo handle our batch split scalers for slider training. For now take the mean of them
scale = multiplier.mean()
scaled_lora_weight = lora_weight * scale
scaled_lora_output = scaled_lora_output + self.apply_dora(lx, scaled_lora_weight)
scaled_lora_output = scaled_lora_output + self.apply_dora(lx, scaled_lora_weight).to(org_forwarded.dtype)
try:
x = org_forwarded + scaled_lora_output