mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
simplify initialize_torch_distributed()
This commit is contained in:
parent
5ad41aa2a6
commit
9ea900de49
@ -63,7 +63,7 @@ def initialize_torch_distributed():
|
|||||||
|
|
||||||
if WORLD_SIZE == 1:
|
if WORLD_SIZE == 1:
|
||||||
return FakeGroup(RANK, WORLD_SIZE), RANK, WORLD_SIZE
|
return FakeGroup(RANK, WORLD_SIZE), RANK, WORLD_SIZE
|
||||||
else:
|
|
||||||
if os.getenv("DEBUG", None) == "1":
|
if os.getenv("DEBUG", None) == "1":
|
||||||
return FakeGroup(RANK, WORLD_SIZE), RANK, WORLD_SIZE
|
return FakeGroup(RANK, WORLD_SIZE), RANK, WORLD_SIZE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user