# After fine-tuning with LoRA, all generated content should start begin `A`.
def_initialize_llm(self)->vllm.LLM:
EXPECTED_OUTPUT=[
"""Initialize the LLM with given configuration"""
"A red stop sign stands prominently in the foreground, with a traditional Chinese gate and a black SUV in the background, illustrating a blend of modern and cultural elements.",# noqa: E501
returnvllm.LLM(
"A majestic skyscraper stands tall, partially obscured by a vibrant canopy of cherry blossoms, against a clear blue sky.",# noqa: E501
"A red stop sign stands prominently in the foreground, with a traditional Chinese gate and a black SUV in the background, illustrating a blend of modern and cultural elements.",# noqa: E501
"A majestic skyscraper stands tall, partially obscured by a vibrant canopy of cherry blossoms, against a clear blue sky.",# noqa: E501
]
QWEN2VL_MODEL_PATH="Qwen/Qwen2-VL-2B-Instruct"
QWEN25VL_MODEL_PATH="Qwen/Qwen2.5-VL-3B-Instruct"
@pytest.mark.xfail(
@pytest.mark.xfail(
current_platform.is_rocm(),
current_platform.is_rocm(),
reason="Qwen2-VL dependency xformers incompatible with ROCm")
reason="Qwen2-VL dependency xformers incompatible with ROCm")