nbui-sc
nbui-sc
I think the problem is just a precision between bfloat16 and float32. Loading the model with float32 addresses the issue.
Btw, this seems to be + instead of - (for autogressive decoding purposes)? `q_start_index = ind * q_bucket_size + qk_len_diff` https://github.com/lucidrains/memory-efficient-attention-pytorch/blob/d54f391370ecbf843a871f0e260425d076995550/memory_efficient_attention_pytorch/flash_attention.py#L64
I'm having the same problem. @MrHwc @elopezz How do you guys address this problem?
Yes, it's numerical overflow problem for me.