File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,12 @@ def test_minicpmv_lora(minicpmv_lora_files):
66
66
max_loras = 2 ,
67
67
max_lora_rank = 8 ,
68
68
enforce_eager = True ,
69
+ max_model_len = 2048 ,
70
+ limit_mm_per_prompt = {
71
+ "image" : 2 ,
72
+ "video" : 0
73
+ },
69
74
trust_remote_code = True ,
70
- enable_chunked_prefill = True ,
71
75
)
72
76
output1 = do_sample (llm , minicpmv_lora_files , lora_id = 1 )
73
77
for i in range (len (EXPECTED_OUTPUT )):
@@ -91,9 +95,11 @@ def test_minicpmv_tp4_wo_fully_sharded_loras(minicpmv_lora_files):
91
95
max_loras = 4 ,
92
96
max_lora_rank = 64 ,
93
97
tensor_parallel_size = 4 ,
98
+ limit_mm_per_prompt = {
99
+ "image" : 2 ,
100
+ "video" : 0
101
+ },
94
102
trust_remote_code = True ,
95
- enforce_eager = True ,
96
- enable_chunked_prefill = True ,
97
103
)
98
104
output_tp = do_sample (llm , minicpmv_lora_files , lora_id = 1 )
99
105
for i in range (len (EXPECTED_OUTPUT )):
@@ -115,8 +121,11 @@ def test_minicpmv_tp4_fully_sharded_loras(minicpmv_lora_files):
115
121
max_lora_rank = 8 ,
116
122
tensor_parallel_size = 4 ,
117
123
trust_remote_code = True ,
124
+ limit_mm_per_prompt = {
125
+ "image" : 1 ,
126
+ "video" : 0
127
+ },
118
128
fully_sharded_loras = True ,
119
- enable_chunked_prefill = True ,
120
129
)
121
130
output_tp = do_sample (llm , minicpmv_lora_files , lora_id = 1 )
122
131
for i in range (len (EXPECTED_OUTPUT )):
You can’t perform that action at this time.
0 commit comments