mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
mps support
This commit is contained in:
parent
ed05443cfe
commit
a4c22b24f8
@ -116,9 +116,9 @@ def main(args):
|
||||
devices=-1,
|
||||
benchmark=False,
|
||||
fast_dev_run=False,
|
||||
strategy=DDPStrategy(
|
||||
strategy = "auto" if torch.mps.is_available() else DDPStrategy(
|
||||
process_group_backend="nccl" if platform.system() != "Windows" else "gloo"
|
||||
),
|
||||
), # mps 不支持多节点训练
|
||||
precision=config["train"]["precision"],
|
||||
logger=logger,
|
||||
num_sanity_val_steps=0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user