Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc0a1dc1e4 |
No files matched your search
@@ -0,0 +1,26 @@
|
|||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def sana_model_parallel(tmp_path):
|
||||||
|
"""Construct native parallel layers with real single-rank GPU groups."""
|
||||||
|
from vllm_omni.diffusion.distributed.parallel_state import (
|
||||||
|
destroy_distributed_env,
|
||||||
|
init_distributed_environment,
|
||||||
|
initialize_model_parallel,
|
||||||
|
)
|
||||||
|
|
||||||
|
init_distributed_environment(
|
||||||
|
world_size=1,
|
||||||
|
rank=0,
|
||||||
|
local_rank=0,
|
||||||
|
distributed_init_method=f"file://{tmp_path / 'sana-distributed'}",
|
||||||
|
)
|
||||||
|
try:
|
||||||
|
initialize_model_parallel()
|
||||||
|
yield
|
||||||
|
finally:
|
||||||
|
destroy_distributed_env()
|
||||||
@@ -202,6 +202,7 @@ def test_sana_video_transformer_matches_frozen_golden(
|
|||||||
variant: str,
|
variant: str,
|
||||||
_hardware,
|
_hardware,
|
||||||
accuracy_artifact_root: Path,
|
accuracy_artifact_root: Path,
|
||||||
|
sana_model_parallel,
|
||||||
) -> None:
|
) -> None:
|
||||||
del _hardware
|
del _hardware
|
||||||
from vllm.config import LoadConfig
|
from vllm.config import LoadConfig
|
||||||
|
|||||||
@@ -189,6 +189,7 @@ def _cfg_prediction(
|
|||||||
def test_sana_video_quick_pipeline_stages_match_diffusers(
|
def test_sana_video_quick_pipeline_stages_match_diffusers(
|
||||||
variant: str,
|
variant: str,
|
||||||
_hardware,
|
_hardware,
|
||||||
|
sana_model_parallel,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Compare the first denoising step without replacing native attention.
|
"""Compare the first denoising step without replacing native attention.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user