Skip to content

Conversation

pamparamm
Copy link

IPAdapter with precise weight types produces black images during generation when used together with SageAttention - probably due to numerical instability in its quantization algorithms when dealing with near-zero tensors.

This PR adds epsilon variable in ipadapter_attention function that fixes this issue. I've set it to 0 for all optimized_attention except for attention_sage.

@pamparamm
Copy link
Author

@cubiq Sorry for the inconvenience, but can you please review this PR?

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

Successfully merging this pull request may close these issues.

1 participant