|
318 | 318 | use_tokenizer_eos=True,
|
319 | 319 | patch_hf_runner=model_utils.internvl_patch_hf_runner,
|
320 | 320 | ),
|
| 321 | + "llama4": VLMTestInfo( |
| 322 | + models=["meta-llama/Llama-4-Scout-17B-16E-Instruct"], |
| 323 | + prompt_formatter=lambda img_prompt: f"<|begin_of_text|><|header_start|>user<|header_end|>\n\n{img_prompt}<|eot|><|header_start|>assistant<|header_end|>\n\n", # noqa: E501 |
| 324 | + img_idx_to_prompt=lambda _: "<|image|>", |
| 325 | + test_type=(VLMTestType.IMAGE, VLMTestType.MULTI_IMAGE), |
| 326 | + distributed_executor_backend="mp", |
| 327 | + image_size_factors=[(.25, 0.5, 1.0)], |
| 328 | + hf_model_kwargs={"device_map": "auto"}, |
| 329 | + max_model_len=8192, |
| 330 | + max_num_seqs=4, |
| 331 | + dtype="bfloat16", |
| 332 | + auto_cls=AutoModelForImageTextToText, |
| 333 | + tensor_parallel_size=4, |
| 334 | + marks=multi_gpu_marks(num_gpus=4), |
| 335 | + ), |
321 | 336 | "llava_next": VLMTestInfo(
|
322 | 337 | models=["llava-hf/llava-v1.6-mistral-7b-hf"],
|
323 | 338 | test_type=(VLMTestType.IMAGE, VLMTestType.CUSTOM_INPUTS),
|
|
558 | 573 | limit_mm_per_prompt={"image": 1},
|
559 | 574 | )],
|
560 | 575 | ),
|
561 |
| - "llama4": VLMTestInfo( |
562 |
| - models=["meta-llama/Llama-4-Scout-17B-16E-Instruct"], |
563 |
| - prompt_formatter=lambda img_prompt: f"<|begin_of_text|><|header_start|>user<|header_end|>\n\n{img_prompt}<|eot|><|header_start|>assistant<|header_end|>\n\n", # noqa: E501 |
564 |
| - img_idx_to_prompt=lambda _: "<|image|>", |
565 |
| - test_type=(VLMTestType.IMAGE, VLMTestType.MULTI_IMAGE), |
566 |
| - distributed_executor_backend="mp", |
567 |
| - image_size_factors=[(.25, 0.5, 1.0)], |
568 |
| - hf_model_kwargs={"device_map": "auto"}, |
569 |
| - max_model_len=8192, |
570 |
| - max_num_seqs=4, |
571 |
| - dtype="bfloat16", |
572 |
| - auto_cls=AutoModelForImageTextToText, |
573 |
| - tensor_parallel_size=8, |
574 |
| - vllm_runner_kwargs={"gpu_memory_utilization": 0.8}, |
575 |
| - marks=[large_gpu_mark(min_gb=80), multi_gpu_marks(num_gpus=8)], |
576 |
| - ), |
577 | 576 | }
|
578 | 577 | # yapf: enable
|
579 | 578 |
|
|
0 commit comments