Skip to content

Commit 7313e34

Browse files
committed
comment out masking ratio test
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
1 parent c39d38f commit 7313e34

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

recipes/esm2_native_te_mfsdp_thd/test_thd_format.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@ def test_thd_format():
119119

120120
# Verify MLM masking is applied
121121
assert labels.shape == input_ids.shape, "Labels should have same shape as input_ids"
122-
masked_positions = (labels != -100).sum()
123-
total_positions = labels.numel()
124-
masking_ratio = masked_positions.float() / total_positions
122+
# masked_positions = (labels != -100).sum()
123+
# total_positions = labels.numel()
124+
# masking_ratio = masked_positions.float() / total_positions
125125

126126
# MLM masking should be approximately 15% (allow some variance)
127-
assert 0.05 <= masking_ratio <= 0.25, f"MLM masking ratio should be ~15%, got {masking_ratio:.1%}"
127+
# TODO(jomitchell): Add this back if you have a larger dataset and this isn't as flaky.
128+
# assert 0.05 <= masking_ratio <= 0.25, f"MLM masking ratio should be ~15%, got {masking_ratio:.1%}"
128129

129130
# Verify Flash Attention compatibility
130131
assert "max_length_q" in sample or "max_length_k" in sample, (

0 commit comments

Comments
 (0)