File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,8 @@ def setUpClass(cls):
545545 text_config = json .loads (config .text_config .to_json_string ())
546546 text_config ["num_hidden_layers" ] = 1
547547 text_config ["layer_types" ] = text_config ["layer_types" ][:1 ]
548- vision_config ["depth" ] = 1 # To make the test faster
548+ vision_config ["depth" ] = 2 # To make the test faster
549+ vision_config ["fullatt_block_indexes" ] = [1 ]
549550 kwargs = {"vision_config" : vision_config , "text_config" : text_config }
550551 cls .HF_CONFIG_KWARGS .update (kwargs )
551552 return super ().setUpClass ()
@@ -590,8 +591,8 @@ def setUpClass(cls):
590591 text_config = json .loads (config .text_config .to_json_string ())
591592 text_config ["num_hidden_layers" ] = 1
592593 text_config ["layer_types" ] = text_config ["layer_types" ][:1 ]
593- vision_config ["depth" ] = 8
594- vision_config ["fullatt_block_indexes" ] = [7 ]
594+ vision_config ["depth" ] = 2
595+ vision_config ["fullatt_block_indexes" ] = [1 ]
595596 kwargs = {"vision_config" : vision_config , "text_config" : text_config }
596597 cls .HF_CONFIG_KWARGS .update (kwargs )
597598 return super ().setUpClass ()
Original file line number Diff line number Diff line change @@ -416,7 +416,8 @@ def setUpClass(cls):
416416 # Reduce model size for faster testing
417417 vision_config = json .loads (config .vlm_config .vision_config .to_json_string ())
418418 text_config = json .loads (config .vlm_config .text_config .to_json_string ())
419- vision_config ["depth" ] = 1
419+ vision_config ["depth" ] = 2
420+ vision_config ["fullatt_block_indexes" ] = [1 ]
420421 text_config ["num_hidden_layers" ] = 1
421422 text_config ["layer_types" ] = text_config ["layer_types" ][:1 ]
422423
You can’t perform that action at this time.
0 commit comments