@@ -355,7 +355,7 @@ def check_image_text_to_text_pytorch_vs_kv_vs_ort_vs_ai100(
355355 assert (pytorch_hf_tokens == qpc_tokens ).all (), "Tokens don't match for pytorch HF output and QPC output"
356356
357357 # testing for CB models
358- if not kv_offload : # CB not yet enabled for Single QPC
358+ if not kv_offload : # CB not yet enabled for Single QPC
359359 return
360360 images = [image ] * full_batch_size
361361 queries = [query ] * full_batch_size
@@ -400,10 +400,13 @@ def check_image_text_to_text_pytorch_vs_kv_vs_ort_vs_ai100(
400400 qpc_tokens = exec_info .generated_ids [:, :max_gen_len ]
401401
402402 for i in range (full_batch_size ):
403- assert (pytorch_hf_tokens [i ] == qpc_tokens [i ]).all (), f"Tokens don't match for prompt { i } between HF and QPC output"
403+ assert (pytorch_hf_tokens [i ] == qpc_tokens [i ]).all (), (
404+ f"Tokens don't match for prompt { i } between HF and QPC output"
405+ )
404406
405407 return
406408
409+
407410def check_molmo_image_text_to_text_pytorch_vs_kv_vs_ort_vs_ai100 (
408411 model_name : str ,
409412 img_url : str ,
@@ -587,7 +590,8 @@ def check_intern_image_text_to_text_pytorch_vs_kv_vs_ort_vs_ai100(
587590@pytest .mark .on_qaic
588591@pytest .mark .multimodal
589592@pytest .mark .parametrize (
590- "model_name, kv_offload, batch_size, full_batch_size, prompt_len, ctx_len, img_size, img_url, query, n_layer" , test_models_config
593+ "model_name, kv_offload, batch_size, full_batch_size, prompt_len, ctx_len, img_size, img_url, query, n_layer" ,
594+ test_models_config ,
591595)
592596def test_image_text_to_text_pytorch_vs_kv_vs_ort_vs_ai100 (
593597 model_name , kv_offload , batch_size , full_batch_size , prompt_len , ctx_len , img_size , img_url , query , n_layer
0 commit comments