We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc0e060 commit 53f577aCopy full SHA for 53f577a
trlx/utils/__init__.py
@@ -20,6 +20,7 @@ def set_seed(seed: int):
20
"""
21
Sets seeds across package dependencies for reproducibility.
22
23
+ seed += int(os.environ.get("LOCAL_RANK", 0))
24
random.seed(seed)
25
np.random.seed(seed)
26
torch.manual_seed(seed)
0 commit comments