|
9 | 9 |
|
10 | 10 | from ....conftest import (IMAGE_ASSETS, HfRunner, PromptImageInput, VllmRunner,
|
11 | 11 | _ImageAssets)
|
| 12 | +from ....utils import large_gpu_test |
12 | 13 | from ...utils import check_logprobs_close
|
13 | 14 |
|
14 | 15 | _LIMIT_IMAGE_PER_PROMPT = 1
|
@@ -227,29 +228,26 @@ def process(hf_inputs: BatchEncoding):
|
227 | 228 | )
|
228 | 229 |
|
229 | 230 |
|
230 |
| -SIZES = [ |
231 |
| - # Text only |
232 |
| - [], |
233 |
| - # Single-size |
234 |
| - [(512, 512)], |
235 |
| - # Single-size, batched |
236 |
| - [(512, 512), (512, 512), (512, 512)], |
237 |
| - # Multi-size, batched |
238 |
| - [(512, 512), (1024, 512), (1536, 512), (2048, 512), (512, 1024), |
239 |
| - (1024, 1024), (512, 1536), (512, 2028)], |
240 |
| - # Multi-size, batched, including text only |
241 |
| - [(512, 512), (1024, 512), (1536, 512), (2048, 512), (512, 1024), |
242 |
| - (1024, 1024), (512, 1536), (512, 2028), None], |
243 |
| - # mllama has 8 possible aspect ratios, carefully set the sizes |
244 |
| - # to cover all of them |
245 |
| -] |
246 |
| - |
247 |
| - |
248 |
| -@pytest.mark.skip( |
249 |
| - reason= |
250 |
| - "Model is too big, test passed on L40 locally but will OOM on CI machine.") |
| 231 | +@large_gpu_test(min_gb=48) |
251 | 232 | @pytest.mark.parametrize("model", models)
|
252 |
| -@pytest.mark.parametrize("sizes", SIZES) |
| 233 | +@pytest.mark.parametrize( |
| 234 | + "sizes", |
| 235 | + [ |
| 236 | + # Text only |
| 237 | + [], |
| 238 | + # Single-size |
| 239 | + [(512, 512)], |
| 240 | + # Single-size, batched |
| 241 | + [(512, 512), (512, 512), (512, 512)], |
| 242 | + # Multi-size, batched |
| 243 | + [(512, 512), (1024, 512), (1536, 512), (2048, 512), (512, 1024), |
| 244 | + (1024, 1024), (512, 1536), (512, 2028)], |
| 245 | + # Multi-size, batched, including text only |
| 246 | + [(512, 512), (1024, 512), (1536, 512), (2048, 512), (512, 1024), |
| 247 | + (1024, 1024), (512, 1536), (512, 2028), None], |
| 248 | + # mllama has 8 possible aspect ratios, carefully set the sizes |
| 249 | + # to cover all of them |
| 250 | + ]) |
253 | 251 | @pytest.mark.parametrize("dtype", ["bfloat16"])
|
254 | 252 | @pytest.mark.parametrize("max_tokens", [128])
|
255 | 253 | @pytest.mark.parametrize("num_logprobs", [5])
|
|
0 commit comments