Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在训练LyCORIS-lokr时,开启scale_weight_norms会导致输出有错误 #381

Open
silvermoong opened this issue Mar 11, 2024 · 0 comments

Comments

@silvermoong
Copy link

举例,在Key Scaled = 0的时候,Average key norm始终为0。这个值应该是逐渐升高的。
一旦Key开始Scale之后,average key norm显示为tensor(0.2138, device='cuda:0')。这也是不对的。

epoch 38/150
steps: 25%|█████▎ | 76/300 [33:45<1:39:28, 26.64s/it, Average key norm=0, Keys Scaled=0, avr_loss=0.116]
saving checkpoint: E:/LoRA models\caoXLlokrV1224M42-000038.safetensors

epoch 39/150
steps: 26%|▎| 78/300 [34:38<1:38:36, 26.65s/it, Average key norm=tensor(0.2138, device='cuda:0'), Keys Scaled=1, avr_l
saving checkpoint: E:/LoRA models\caoXLlokrV1224M42-000039.safetensors

tensorboard中同样也会有显示错误,并且不包含Key Scaled =0 阶段的average key norm.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant