auto port kill before starting ddp
This commit is contained in:
parent
446a44b085
commit
5439dc0844
|
@ -567,7 +567,7 @@ class Trainer(TrainerIO):
|
|||
try:
|
||||
port = os.environ['MASTER_PORT']
|
||||
except Exception as e:
|
||||
port = self.default_ddp_port
|
||||
port = 12910
|
||||
os.environ['MASTER_PORT'] = f'{port}'
|
||||
|
||||
self._ddp_port = port
|
||||
|
|
Loading…
Reference in New Issue