File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6969USE_MICRO_MODELS = os .environ .get ("FMS_TEST_SHAPES_USE_MICRO_MODELS" , "1" ) == "1"
7070USE_DISTRIBUTED = os .environ .get ("FMS_TEST_SHAPES_DISTRIBUTED" , "0" ) == "1"
7171TIMING = os .environ .get ("TIMING" , "" )
72-
72+ CUMULATIVE_TEST_TOKENS_PER_SEQUENCE = os . environ . get ( "FMS_TEST_SHAPES_CUMULATIVE_TEST_TOKENS_PER_SEQUENCE" , "1024" )
7373ATTN_TYPE = os .environ .get ("FMS_TEST_SHAPES_ATTN_TYPE" , "sdpa" )
7474attention_map = {
7575 "sdpa" : "sdpa_causal" ,
@@ -608,7 +608,7 @@ def _metric_calculator(r: torch.Tensor, t: torch.Tensor):
608608 )
609609 return (cross_entropy , diff )
610610
611- iters = 1024 // max_new_tokens
611+ iters = CUMULATIVE_TEST_TOKENS_PER_SEQUENCE // max_new_tokens
612612 ce_fail_responses_list = []
613613 diff_fail_responses_list = []
614614 total_tokens = 0
You can’t perform that action at this time.
0 commit comments