mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-25 16:59:22 +00:00
Added ability to target parts of lora for ilora
This commit is contained in:
@@ -148,7 +148,8 @@ class CustomAdapter(torch.nn.Module):
|
||||
vision_hidden_size=vision_hidden_size,
|
||||
head_dim=self.config.head_dim,
|
||||
num_heads=self.config.num_heads,
|
||||
sd=self.sd_ref()
|
||||
sd=self.sd_ref(),
|
||||
config=self.config
|
||||
)
|
||||
elif self.adapter_type == 'text_encoder':
|
||||
if self.config.text_encoder_arch == 't5':
|
||||
|
||||
Reference in New Issue
Block a user