Skip to content

Commit 839ba74

Browse files
debugging
Signed-off-by: Daniel Korzekwa <[email protected]>
1 parent f5b85bf commit 839ba74

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/gpu/torch/prune/plugins/test_mcore_gpt_minitron_pruning.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ def _get_model(initialize_megatron=True):
9393

9494
model = _get_model()
9595

96-
# Set seeds for deterministic dummy input generation AFTER model initialization
97-
# (get_mcore_gpt_model calls initialize_for_megatron which sets seed=1234)
98-
torch.manual_seed(1234)
99-
torch.cuda.manual_seed_all(1234)
100-
# Enable deterministic behavior for cuDNN
101-
torch.backends.cudnn.deterministic = True
102-
torch.backends.cudnn.benchmark = False
96+
# # Set seeds for deterministic dummy input generation AFTER model initialization
97+
# # (get_mcore_gpt_model calls initialize_for_megatron which sets seed=1234)
98+
# torch.manual_seed(1234)
99+
# torch.cuda.manual_seed_all(1234)
100+
# # Enable deterministic behavior for cuDNN
101+
# torch.backends.cudnn.deterministic = True
102+
# torch.backends.cudnn.benchmark = False
103103

104104
sd = model.state_dict()
105105

0 commit comments

Comments
 (0)