mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-06 13:47:06 +00:00
update gemma2 train attention layer
This commit is contained in:
@@ -462,7 +462,7 @@ def create_network_from_weights(multiplier, file, ae, text_encoders, lumina, wei
|
||||
|
||||
class LoRANetwork(torch.nn.Module):
|
||||
LUMINA_TARGET_REPLACE_MODULE = ["JointTransformerBlock"]
|
||||
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["Gemma2Attention", "Gemma2MLP"]
|
||||
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["Gemma2Attention", "Gemma2FlashAttention2", "Gemma2SdpaAttention", "Gemma2MLP"]
|
||||
LORA_PREFIX_LUMINA = "lora_unet"
|
||||
LORA_PREFIX_TEXT_ENCODER = "lora_te" # Simplified prefix since we only have one text encoder
|
||||
|
||||
|
||||
Reference in New Issue
Block a user