"scripts/wan22/run_wan22_moe_t2v.sh" did not exist on "daf4c74e38998d8e551ee6ae3d7ff515b09f96b7"
test_flux_qencoder.py 561 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pytest

from nunchaku.utils import get_precision, is_turing

from .utils import run_test


@pytest.mark.skipif(is_turing(), reason="Skip tests due to using Turing GPUs")
@pytest.mark.parametrize(
    "height,width,use_qencoder,expected_lpips", [(1024, 1024, True, 0.136 if get_precision() == "int4" else 0.145)]
)
def test_flux_schnell_qencoder(height: int, width: int, use_qencoder: bool, expected_lpips: float):
    run_test(
        precision=get_precision(), height=height, width=width, use_qencoder=use_qencoder, expected_lpips=expected_lpips
    )