Spaces:
Running on Zero

techfreakworm commited on
Commit
18a60f4
·
unverified ·
1 Parent(s): 840b952

fix: an explicit diffusion decode, or stage 2, that the decoder cannot take is refused before dispatch

Browse files

Both facts are known before a GPU is reserved: the decoder's minimum size (read
from its config file, the same one the run will load) and, off CUDA, the size
its CPU path can hold. prepare_request now checks them, so the user is told
"refused before running, nothing was billed" (gpu_used False) and the UI's
readiness check can disable Generate with the reason. auto is never refused; it
falls back to conv with a note as before. The runner keeps the same checks
against the loaded decoder; the two share pipelines.check_decoder_minimum and
pipelines.check_cpu_decoder_size.

The tiny stack used by the real-pipeline tests now has its own composite
snapshot, and its runs point LTX25_MODEL_SNAPSHOT_DIR at it, so the gate reads
the tiny decoder's config rather than whatever real checkpoint the HF cache
holds.

5 files changed +233 -23
Files changed (5)
ltx25_studio/generate.py+38
ltx25_studio/pipelines.py+53-16
scripts/local_smoke.py+11-1
tests/test_decode_policy.py+104
tests/test_real_pipeline_tiny.py+27-6