mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 19:13:01 +00:00
[shardformer] update shardformer to use flash attention 2 (#4392)
* cherry-pick flash attention 2 cherry-pick flash attention 2 * [shardformer] update shardformer to use flash attention 2 [shardformer] update shardformer to use flash attention 2, fix [shardformer] update shardformer to use flash attention 2, fix [shardformer] update shardformer to use flash attention 2, fix
This commit is contained in:
@@ -65,7 +65,7 @@ def get_blip2_flash_attention_forward():
|
||||
|
||||
from transformers.models.blip_2.modeling_blip_2 import Blip2Attention
|
||||
|
||||
from colossalai.kernel.cuda_native.flash_attention import AttnMaskType, ColoAttention
|
||||
from colossalai.kernel.cuda_native import ColoAttention
|
||||
|
||||
def forward(
|
||||
self: Blip2Attention,
|
||||
|
Reference in New Issue
Block a user