1111
1212@pytest .fixture (autouse = True )
1313def setup_new_model_design ():
14- """Automatically set NEW_MODEL_DESIGN=True for all tests."""
15- os .environ ['NEW_MODEL_DESIGN' ] = 'True '
14+ """Automatically set NEW_MODEL_DESIGN=1 for all tests."""
15+ os .environ ['NEW_MODEL_DESIGN' ] = '1 '
1616
1717
1818@pytest .fixture
@@ -106,7 +106,7 @@ def test_model_data_parallelism(
106106 sampling_params = sampling_params ,
107107 tensor_parallel_size = 1 ,
108108 data_parallel_size = 2 ,
109- async_scheduling = True ,
109+ async_scheduling = False ,
110110 )
111111
112112 # Verify we got outputs for all prompts
@@ -249,8 +249,8 @@ def test_data_parallelism_correctness(
249249 diff = abs (base_logprob_val - dp_logprob_val )
250250 max_logprob_diff = max (max_logprob_diff , diff )
251251
252- # Allow small numerical differences (e.g., 1e-3)
253- if diff > 1e-3 :
252+ # Allow small numerical differences
253+ if diff > 0.15 :
254254 logprob_mismatches += 1
255255 print (
256256 f"Logprob mismatch in prompt { i } , token { token_idx } :"
@@ -266,12 +266,12 @@ def test_data_parallelism_correctness(
266266 print ("✓ Correctness test results:" )
267267 print (f" Text: { text_matches } matches, { text_mismatches } mismatches" )
268268 print (f" Max logprob difference: { max_logprob_diff :.6e} " )
269- print (f" Significant logprob mismatches (>1e-3 ): { logprob_mismatches } " )
269+ print (f" Significant logprob mismatches (>0.15 ): { logprob_mismatches } " )
270270
271271 # Allow for some variance due to potential numerical differences
272272 # but most outputs should match with greedy sampling
273273 text_match_rate = text_matches / len (baseline_outputs )
274274 assert text_match_rate >= 0.9 , f"Text match rate { text_match_rate :.2%} is too low"
275275
276276 # Log probabilities should be very close (allow small numerical errors)
277- assert max_logprob_diff < 0.1 , f"Max logprob difference { max_logprob_diff } is too large"
277+ assert max_logprob_diff < 0.15 , f"Max logprob difference { max_logprob_diff } is too large"
0 commit comments