File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -150,14 +150,12 @@ def inference(self, model: nn.Module) -> None:
150150 model (nn.Module): model weight
151151 """
152152 if self .seed is None :
153- seed = time ()
153+ seed = torch .tensor (int (time ())).cuda ()
154+ dist .broadcast (seed , src = 0 )
155+ seed = seed .item ()
154156 else :
155157 seed = self .seed
156158
157- seed = torch .tensor (int (seed )).cuda ()
158- dist .broadcast (seed , src = 0 )
159- seed = seed .item ()
160-
161159 torch .manual_seed (seed )
162160 np .random .seed (seed )
163161 random .seed (seed )
Original file line number Diff line number Diff line change 2626
2727setup (
2828 name = 'parallelformers' ,
29- version = '1.2.1 ' ,
29+ version = '1.2.2 ' ,
3030 description =
3131 'An Efficient Model Parallelization Toolkit for Deployment' ,
3232 long_description = long_description ,
You can’t perform that action at this time.
0 commit comments