[shardformer] support SAM (#4231)

* 1.support sam 2.add fused qkv for nn.Linear

* update utils support set element in list

* overtwrite SamVisionAttention foward to use DropoutForParallelInput

* remove unused code
This commit is contained in:
FoolPlayer
2023-07-14 15:56:59 +08:00
committed by Hongxin Liu
parent c59d7aca09
commit dd2bf02679
10 changed files with 733 additions and 10 deletions

View File

@@ -4,5 +4,6 @@ from .bloom import *
from .gpt import *
from .llama import *
from .opt import *
from .sam import *
from .t5 import *
from .vit import *