Spaces:
Running on Zero
Running on Zero
Commit History
-
fix: bound uploads at launch — max_file_size from the LoRA ceiling, the one lever both sides read
Unverified signaturedemo.launch() accepted uploads of any size. They land on gradio's tmp disk BEFORE any check of ours can run — stage 1 of the LoRA validator refuses oversized adapters by declared size without reading them, but it never sees the request until gradio has already spooled it — and the retention sweep covers outputs/ only, so nothing ever reclaims the space. One request could fill the Space's disk. The bound is CONFIG.lora_max_bytes * 1.05: the largest upload the app has any use for is a LoRA at the validator's own ceiling (12 GB default; conditioning media is orders of magnitude smaller), read off the CONFIG so the LTX25_LORA_MAX_GB lever bounds both the validator and the transport rather than drifting apart. The 5% margin covers multipart framing, so a ceiling-sized adapter is refused by stage 1's message — which names the limit and the actual size — instead of gradio's blunter transport error. Scope note: max_file_size is launch()'s only change; the GPU decoration is untouched. The tes…db233ed
-
test: deploy drift, ConfigError, zerogpu boundary, conditioning index trap, audio config
Closes the gaps the lead asked about. - Deploy drift: the gradio pin must EQUAL README sdk_version and be exact, the preload_from_hub entry must equal model_files.preload_from_hub_entry() including the revision SHA (without it the preload and the app resolve different cache keys and the Space re-downloads 72 GB), and every requirement needs a floor and a ceiling. - ConfigError: a misconfiguration is not a generation failure, so it must not live in that family — the UI tells an operator and a user different things. - zerogpu: a CUDA tensor anywhere in the returned structure is refused, since the failure mode is a silent hang; size= is built from the installed spaces signature; a duration= callable must match before schedule time. - conditioning: LTX2VideoCondition.index is a LATENT index. Pixel 9 is latent 2, and an out-of-range index raises instead of being silently skipped. - audio: every mel parameter comes from audio_vae.config, and audio.py may not contain a samp…2655c68 -
test: spec the mode registry, the never-empty-output invariant, app build and layering
The generate.py specs are the ones that matter: failure is injected at four depths (model load, decode, missing output file, zero-byte output file) and each must surface a distinct typed error rather than a falsy path. Also asserts there is no newest-file-in-output-dir fallback, statically and behaviourally — the 2.3 version had no run correlation and would show a previous run's video for a run that failed. Mode identifiers are fixed here as the contract: PLAN §3.2 numbers and labels the modes but never names them.1e0df90