[CI/Build][ROCm] Enabling LoRA tests on ROCm (#7369)

Co-authored-by: Simon Mo <simon.mo@hey.com>
This commit is contained in:
alexeykondrat
2024-09-04 11:57:54 -07:00
committed by GitHub
co-authored by Simon Mo
parent 2ad2e5608e
commit d1dec64243
4 changed files with 64 additions and 14 deletions
+4
View File
@@ -1,7 +1,10 @@
from typing import List
import pytest
import vllm
from vllm.lora.request import LoRARequest
from vllm.utils import is_hip
MODEL_PATH = "google/gemma-7b"
@@ -28,6 +31,7 @@ def do_sample(llm: vllm.LLM, lora_path: str, lora_id: int) -> List[str]:
return generated_texts
@pytest.mark.xfail(is_hip(), reason="There can be output mismatch on ROCm")
def test_gemma_lora(gemma_lora_files):
llm = vllm.LLM(MODEL_PATH,
max_model_len=1024,