Signed-off-by: NumberWan <wantszkin2003@gmail.com>
This commit is contained in:
1 parent
f9f53f2bd8
commit
23d8c83dab
3 files changed
+141
-4
No files matched your search
@@ -56,7 +56,7 @@ def test_qwen_image_autoround_w4a16_load():
|
||||
Verifies that quant_config is propagated to all transformer blocks
|
||||
and produces a valid, non-blank image.
|
||||
"""
|
||||
with OmniRunner(QUANTIZED_MODEL, enforce_eager=True) as runner:
|
||||
with OmniRunner(QUANTIZED_MODEL, enforce_eager=True, enable_cpu_offload=True) as runner:
|
||||
outputs = runner.omni.generate(
|
||||
"a cup of coffee on a table",
|
||||
_sampling_params(),
|
||||
@@ -85,7 +85,7 @@ def test_qwen_image_autoround_w4a16_generate():
|
||||
true_cfg_scale=5.0,
|
||||
generator=torch.Generator(device=current_omni_platform.device_type).manual_seed(42),
|
||||
)
|
||||
with OmniRunner(QUANTIZED_MODEL, enforce_eager=True) as runner:
|
||||
with OmniRunner(QUANTIZED_MODEL, enforce_eager=True, enable_cpu_offload=True) as runner:
|
||||
outputs = runner.omni.generate(
|
||||
"a cup of coffee on a wooden table, morning sunlight, photorealistic",
|
||||
params,
|
||||
|
||||
Reference in new issue
Block a user