Merge branch 'diffusion-auto-policy' of https://github.com/unslothai/unsloth into diffusion-auto-policy

This commit is contained in:
Daniel Han 2026-07-05 02:14:36 +00:00
commit 53af22cf1e
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

@ -1414,9 +1414,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