Merge branch 'image-generation' into diffusion-train-perf

This commit is contained in:
Daniel Han 2026-07-05 02:38:55 +00:00
commit ad8213ba70
2 changed files with 2 additions and 6 deletions

View file

@ -698,9 +698,7 @@ class SdCppDiffusionBackend:
loading = self._loading
if loading is None or loading.error is not None:
return ()
return tuple(
r for r in (loading.repo_id, loading.base_repo, *loading.asset_repos) if r
)
return tuple(r for r in (loading.repo_id, loading.base_repo, *loading.asset_repos) if r)
# ── Generate ───────────────────────────────────────────────────────────

View file

@ -1406,9 +1406,7 @@ def test_bad_mode_strings_fail_before_eviction(fake_runtime):
{"text_encoder_quant": "fp3"},
):
with pytest.raises(ValueError):
backend.load_pipeline(
"unsloth/Z-Image-GGUF", gguf_filename = "m.gguf", **kwargs
)
backend.load_pipeline("unsloth/Z-Image-GGUF", gguf_filename = "m.gguf", **kwargs)
assert backend._state is not None