[CI][Bugfix] Refactor the test case to add support for increasing init timeout and stage init timeout in order to resolve the CI timeout error. (#2711)
Signed-off-by: wangyu <410167048@qq.com>
This commit is contained in:
1 parent
d9e745ce2c
commit
22261430b4
31 files changed
+480
-721
No files matched your search
@@ -8,9 +8,9 @@ import av
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from tests.conftest import OmniRunner
|
||||
from tests.utils import hardware_test
|
||||
from vllm_omni.diffusion.utils.media_utils import mux_video_audio_bytes
|
||||
from vllm_omni.entrypoints.omni import Omni
|
||||
from vllm_omni.inputs.data import OmniDiffusionSamplingParams
|
||||
|
||||
|
||||
@@ -49,12 +49,6 @@ def test_magi_human_e2e(run_level):
|
||||
|
||||
model_path = "SII-GAIR/daVinci-MagiHuman-Base-1080p"
|
||||
|
||||
omni = Omni(
|
||||
model=model_path,
|
||||
init_timeout=1200,
|
||||
tensor_parallel_size=2,
|
||||
)
|
||||
|
||||
prompt = (
|
||||
"A young woman with long, wavy golden blonde hair and bright blue eyes, "
|
||||
"wearing a fitted ivory silk blouse with a delicate lace collar, sits "
|
||||
@@ -94,7 +88,12 @@ def test_magi_human_e2e(run_level):
|
||||
},
|
||||
)
|
||||
|
||||
try:
|
||||
with OmniRunner(
|
||||
model_path,
|
||||
init_timeout=1200,
|
||||
tensor_parallel_size=2,
|
||||
) as runner:
|
||||
omni = runner.omni
|
||||
outputs = list(
|
||||
omni.generate(
|
||||
prompts=[prompt],
|
||||
@@ -140,5 +139,3 @@ def test_magi_human_e2e(run_level):
|
||||
assert len(video_bytes) > 1000, f"MP4 too small ({len(video_bytes)} bytes)"
|
||||
|
||||
_validate_mp4(video_bytes)
|
||||
finally:
|
||||
omni.close()
|
||||
Reference in new issue
Block a user