Skip to content

Commit

Permalink
Use NCCL and disable libuv for compatibility with latest pytorch vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
deiteris committed Jan 11, 2025
1 parent 9f7b7c1 commit b3d934f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rvc/train/train.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
os.environ["USE_LIBUV"] = "0" if sys.platform == 'win32' else "1"
import glob
import json
import torch
Expand Down Expand Up @@ -326,7 +327,7 @@ def run(
writer_eval = None

dist.init_process_group(
backend="gloo",
backend='gloo' if sys.platform == 'win32' or device.type != 'cuda' else 'nccl',
init_method="env://",
world_size=n_gpus if device.type == "cuda" else 1,
rank=rank if device.type == "cuda" else 0,
Expand Down

0 comments on commit b3d934f

Please sign in to comment.