Spaces:
Running on Zero
Running on Zero
Commit History
5 days ago
-
fix: an explicit diffusion decode, or stage 2, that the decoder cannot take is refused before dispatch
Unverified signatureBoth 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.18a60f4 -
feat: the decoder is a per-run choice, and auto decodes with the model's diffusion decoder wherever it can run
Unverified signatureSingle-stage runs returned the pipeline's own convolutional VAE decode; the diffusion decoder, which the vendor calls the native default from LTX-2.5 on, only ever ran after stage 2. The decode policy is auto | diffusion | conv, from a new optional request field (GenerationRequest.decoder, appended last), else LTX25_DECODER, default auto: - auto is the diffusion decoder on CUDA when its kernel processor builds and the video is at least the decoder's minimum (224x224x17 for the pinned config); otherwise conv, and the run notes say why. - an explicit diffusion that cannot run raises DecoderUnavailableError (cannot load, or off CUDA beyond the CPU decoder's size limit) or DecoderTooSmallError naming the smallest request; it is never downgraded quietly. - conv stays reachable for A/B; stage 2 always finishes with the diffusion decoder; the modes that discard their video always use conv. A single-stage diffusion decode asks for latents, decodes them with the existing LTX2VideoDi…174bb90 -
fix: stage 2 runs for every mode that offers it, and a video too small for the decoder is refused before stage 1
Unverified signatureThe condition pipeline builds its conditioning mask from height/width (512x768 by default) even when it is handed latents, so every image- and video-conditioned mode failed stage 2 with "Provided latents tensor has shape ...". Stage 2 is now given the upsampled latents' own size (latent H, W x the VAE's spatial ratio) and a frame count read off the latents, which also covers the duration head, where the request has none. text2video keeps upstream's recipe of no size. audio_to_video failed stage 2 with "got multiple values for keyword argument 'noise_scale'": the request already carried noise_scale and audio_latents and the stage-2 kwargs added both. Each call is now built by merging dicts, stage 2's own values winning. The diffusion decoder's neighbourhood windows need a minimum grid (224 px per side and 17 frames for the pinned config). The minimum is computed from the loaded decoder's kernels and checked before stage 1, raising DecoderTooSmallError with the closest request that wor…d2490e1 -
test: the real-pipeline tier — every mode through the app's own generate() on a tiny random checkpoint, on the CPU and on MPS
Unverified signatureThe offline suite only ever exercised fakes. It was green at 1102 tests while five blockers were live. `scripts/local_smoke.py` runs the pinned diffusers LTX-2.5 classes on optimum-intel-internal-testing/tiny-random-ltx2.5 (~95 MB, pinned revision, fetched only with --fetch). It goes through `import app`, `generate()`, the GPU entrypoint and `get_pipeline` on the resolved device: - every mode, with its required media made on the fly, at <=128 px and <=17 frames; - the duration head; - prompt enhancement with the tiny enhancer through the app's own `enhance()`; - a rank-4 LoRA on the tiny transformer's real attention Linears (12 modules attached); - stage 2 with tiny random upsampler and decoder models built from the real configs; - the typed refusal of a too-large stage 2 off CUDA; - on MPS, the typed self-test refusal under `enforce`. Each case reports PASS/FAIL, the exception, the artifact and verify_streams' verdict. The script prints a table, writes JSON, and exits non-zero on any …45cef14