File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-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 = int (
73+ os .environ .get ("FMS_TEST_SHAPES_CUMULATIVE_TEST_TOKENS_PER_SEQUENCE" , "1024" )
74+ )
7375ATTN_TYPE = os .environ .get ("FMS_TEST_SHAPES_ATTN_TYPE" , "sdpa" )
7476attention_map = {
7577 "sdpa" : "sdpa_causal" ,
@@ -608,7 +610,7 @@ def _metric_calculator(r: torch.Tensor, t: torch.Tensor):
608610 )
609611 return (cross_entropy , diff )
610612
611- iters = 1024 // max_new_tokens
613+ iters = int ( CUMULATIVE_TEST_TOKENS_PER_SEQUENCE ) // max_new_tokens
612614 ce_fail_responses_list = []
613615 diff_fail_responses_list = []
614616 total_tokens = 0
You can’t perform that action at this time.
0 commit comments