Spaces:
Running on Zero
Download docs/TEST_PLAN.md from techfreakworm/LTX2.5-Studio: direct link, hf CLI and curl.
- Browser
- Download file 41 kB
-
https://huggingface.co/spaces/techfreakworm/LTX2.5-Studio/resolve/main/docs/TEST_PLAN.md
- Command line
-
hf download hf://spaces/techfreakworm/LTX2.5-Studio/docs/TEST_PLAN.md
-
curl -L -o TEST_PLAN.md https://huggingface.co/spaces/techfreakworm/LTX2.5-Studio/resolve/main/docs/TEST_PLAN.md
A newer version of the Gradio SDK is available: 6.32.0
LTX-2.5 Studio β Test Plan
Status on 2026-11-16
This plan is the August 2026 record; its body is kept as written. It never received the retraction of 2026-08-25 (evening), so read these first:
- "All eleven modes generate on the Space, content-verified, at sha
287ba9c" (the annotations at the top, in A.7 and in Part B): withdrawn. Every Space output up toff142d9was colour static, because the int8 build quantised the transformer's conditioning path (fixed ateb1aa9f, deployed as Spacee3b5333). The modes executed; their outputs were not pictures.- Part B's annotation "LoRA in both directions with a passing inertness check, and stage 2 β¦ FAIL at Γ49": the inertness check compared two broken renders and is withdrawn. The Γ49 failure was the 47.375 GiB
largepartition; 704Γ480Γ49 passes onxlarge(MIG_ALLOCATOR_SIGHTINGS.mdΒ§2).- Part B's seven-run matrix was never run as designed. What ran is in
SPACE_SESSION_2026-08-25.mdandSPACE_MODE_MATRIX.md.- A.0's precondition "
dtype : bf16 (fixed; no precision switch)": the startup report no longer prints that line. It prints the resolved precision (int8 on ZeroGPU by default).- B.1 "verified:
pro_quota_minutes = 40β¦ Fixed 24 h window from first use": that constant is a message string marked# TODO: Dynamic valuein thespacesclient, not a reading of the allowance. 2400 GPU-s/day is the documented PRO allowance; the reset window is not verified (B.8 says per UTC date). The Γ2 billing onxlargeis still documented, not measured. B.1's "Known, fromspaces0.51.1": the Space reportsspaces0.51.3.- Part A ran on hinode, which is retired; its scripts were removed on 2026-11-16.
Where the current truth is:
SPACE_MODE_MATRIX.mdΒ§10 (what has been verified since, and how) and../README.md. Deploy 1 (2026-11-16) ran all eleven modes on the Space (SPACE_MODE_MATRIX.mdΒ§10.1); deploy 2's own check on the Space is reported on issue #32.
Two matrices, for two different questions. Neither answers the other's.
| Part A β hinode | Part B β ZeroGPU | |
|---|---|---|
| answers | does the app work? | does it fit the platform? |
| hardware | RTX PRO 6000 Blackwell, unpartitioned, 97887 MiB | same silicon, MIG-partitioned |
| RAM / disk | 124 GB / 136 GB persistent | ~68 GB / 150 GB, wiped on cold start |
| budget | wall-clock only | 2400 GPU-s/day |
| status | ACTIVE β the whole objective | βΈοΈ PARKED |
β UNPARKED β annotated 2026-08-25. The status column aged in both rows. Part A ran to completion (see A.6's annotation). Part B is no longer parked in any meaningful sense: ZeroGPU is the live deployment β all eleven modes generate on the Space, content-verified, at sha
287ba9c(SPACE_MODE_MATRIX.md). Part B's R-matrix as designed was never run; its questions were answered byscripts/space_matrix.pyruns instead. And this table's ~68 GB RAM figure is β FALSIFIED β the platform ceiling is above 93.56 GB (SPACE_GENERATION_FINDING.mdΒ§6).
Label every claim. A mode that works here is HOST-PROVEN. Whether it fits ZeroGPU is ZEROGPU-PENDING, and nothing in Part A can speak to it.
host-runner executes this matrix. Nobody else drives the box.
Part A β hinode
The objective, in one sentence: every one of the 11 modes produces a real file you can open, and the LoRA validator works in both directions against the real adapters.
There is no quota here, so the economies that shaped Part B are gone. Part B grouped modes by shared code path and skipped the ones already covered. Do not do that here. Each mode gets its own run and its own artifact, because the operator wants to see each one work β and because the failures this build has actually produced were things that ran and were wrong, which only looking at the output catches.
A.0 Preconditions β check these before the first run
| check | why it matters |
|---|---|
HF_TOKEN exported in the launching environment |
not merely present in an interactive shell β it must survive nohup/tmux. Without it, startup fails at model_index.json (1 of 37; GatedRepoError) |
startup log: will_use_gpu=True |
if False the app does no GPU work at all and the UI still comes up |
startup log: weights cached : 37/37 files |
anything less means an incomplete download; the failure would surface later and more confusingly |
startup log: dtype : bf16 (fixed; no precision switch) |
there is no precision lever β if you are looking for one, see PLAN Β§2.6 |
pipe_a.transformer is pipe_b.transformer |
identity, not equality. Two copies is 134 GiB against a 96 GiB card β an OOM on the second build |
audio_scheduler present on the condition pipeline |
the one component the two classes do not share. If sharing dropped it, the joint audio degrades in a way the video never reveals |
A.0.1 β GATE β smoke test before anything else
Run smoke_t2v.py and get a file out of it before starting H1. Do not skip
this because the quota constraint is gone.
Part B's smallest thing that can fail first principle still holds β what changed is the currency, not the logic. A broken stack should announce itself in two minutes, not twenty, and H1 at 704Γ480Γ121 is a twenty-minute way to discover that the model did not load. Losing cheap-first-failure was a side effect of dropping the quota, not a decision.
If the smoke test fails, nothing below it means anything. Stop and diagnose.
A.1 Resolution and length
Baseline: 704 Γ 480, 121 frames (16 latents). Part B's 256Γ256Γ9 existed only
to ration quota and should not be reused here β a 9-frame clip passes several
things by accident: the num_frames % 8 == 1 arithmetic, the pixelβlatent
anchor conversion, and the stereo mux all have more room to be wrong at 121
frames than at 9.
All values verified legal against constraints.py: 704Γ480 and 1216Γ704 are both
multiples of 32; 121 and 241 frames are both kΒ·8+1.
A.2 The matrix β 11 modes, each producing a file
"Expected streams" is the pass criterion, not "it produced a file". A mode
that declares exports=("audio","video") and hands back a silent video is the
exact defect that shipped here once already.
| # | Mode | Inputs | Config | Expected streams in the artifact |
|---|---|---|---|---|
| H1 | text_to_video |
prompt | baseline | video only β h264. No audio stream |
| H2 | image_to_video |
image | baseline | video only |
| H3 | image_text_to_video |
image + prompt | baseline | video only |
| H4 | video_to_video |
clip, strength 0.7 | baseline | video only |
| H5 | text_to_audio_video |
prompt | baseline | video + audio β h264 + aac, 2 ch, rate from the vocoder |
| H6 | image_to_audio_video |
image | baseline | video + audio, 2 ch |
| H7 | image_text_to_audio_video |
image + prompt | baseline | video + audio, 2 ch |
| H8 | text_to_audio |
prompt | min res, stage 2 skipped | audio only β no video stream in the file |
| H9 | video_to_audio |
clip | min res, stage 2 skipped | audio only |
| H10 | audio_to_audio |
audio clip | min res, stage 2 skipped | audio only |
| H11 | audio_to_video |
audio clip | baseline | video only, no audio stream. The audio is an input here; encoding it is a cost, not an output |
H8βH10 still render video internally and discard it β that is the model, not a
bug. Expect them to take as long as a video mode. GenerationResult.warnings
should carry the dropped-audio note naming the counterpart mode.
H1βH4 and H11 must have NO audio stream. If ffprobe shows one, exports is
not deciding the container's contents and the contract is one-directional again.
A.3 The LoRA validator β both directions, real adapters
Stage 7 needs a real load, so it belongs here rather than in the offline suite.
| # | Adapter | Expected |
|---|---|---|
| H12 | joyfox/LTX-2.3-Transition-LORA (0.39 GB, ungated) |
ACCEPTED. Mixed dims β 4096 at attention, 2048 at audio_ff, 16384 at ff.net.2 β and none of that is a mismatch. Stage 7 reports > 0 modules attached |
| H13a | charlied98/ltxv_2b_lora_soft_draw_v1 β lora_weights_step_03000.safetensors |
REJECTED at stage 6.5, LoRADimensionError: 2048 at transformer_blocks.0.attn1.to_k, expected 4096 |
| H13b | same repo β comfy_lora_weights_step_03000.safetensors |
REJECTED at stage 6.5, same error |
H12 is the false-positive guard. It contains 2048-wide tensors at the audio modules, where 2048 is correct. A validator that rejects it has learned "contains 2048" instead of "2048 where 4096 belongs", and would reject the most-downloaded LTX LoRA on the Hub.
H13 is the whole point of the validator. It passes stages 4, 5 and 6, passes diffusers' only built-in check, and would pass stage 7 too β its module names match. Only stage 6.5 catches it.
Why H13 is two runs, and why the stage matters more than the verdict
The repo ships two files of identical size and different key conventions:
| file | prefix | convention | metadata |
|---|---|---|---|
lora_weights_step_03000.safetensors |
transformer. |
diffusers | {'format': 'pt'} |
comfy_lora_weights_step_03000.safetensors |
diffusion_model. |
native / ComfyUI | absent |
Both carry 448 tensors, clean lora_A/lora_B pairing, and 2048 in-dims.
"Rejected" is not a result when two mechanisms could produce it. A file rejected at stage 5 for an unrecognised convention would look identical in a pass column to one rejected at 6.5 for a dimension mismatch β and the first would mean the convention detector had failed, not succeeded.
Predicted and then verified by running the real validator against both headers with a 48-layer 4096-dim transformer:
lora_weights_step_03000.safetensors REJECTED at stage 6.5 LoRADimensionError
comfy_lora_weights_step_03000.safetensors REJECTED at stage 6.5 LoRADimensionError
Both converge on 6.5, which is the right answer: the convention detector accepted both real conventions and handed each to the dimension check. Until now it had only ever been exercised by synthetic fixtures β this is the first evidence it works on files somebody else wrote.
Record the stage, not just the verdict. A run of H13 that reports "rejected"
without naming LoRADimensionError has not distinguished success from the
convention detector breaking.
A.4 The two features that need their own run
| # | Feature | Config | Expected |
|---|---|---|---|
| H14 | stage 2 | text_to_video, enable_stage_2=True |
upsample β 3-step schedule β diffusion decode. Visibly more detail than H1 at the same prompt/seed |
| H15 | duration_head | text_to_video, omit num_frames, min_seconds/max_seconds |
length chosen by the model, within the bounds |
β οΈ H14 must pass
enable_stage_2=Trueexplicitly. It defaults off, so a run that omits it quietly exercises the stage-1 path and reports a pass β spending the run to prove the thing it was designed to test never happened. Compare against H1 at the same seed; if they are identical, stage 2 did not run.
A.4.1 Same-seed comparisons β the class of trap H14 belongs to
H14's "compare against H1 at the same seed; identical output means stage 2 did not run" generalises. Anywhere an input can be silently ignored and the run still succeeds, a passing run proves nothing. Stage 2 was caught twice by noticing this; the same audit over every request field turns up four more:
The general rule is stated once, in docs/PLAN.md Β§9.1.4 (rule 3). This section
is authoritative for the fields and the runs β add new ones here, not there.
| field | if silently ignored | the run still⦠| comparison that catches it |
|---|---|---|---|
enable_stage_2 |
stage-1 render | succeeds, valid video | H14 vs H1, same seed |
loras |
base-model output | succeeds, valid video | H12b vs H2, same seed |
auto_duration |
falls back to num_frames=121 |
succeeds | H15: length must β 121 |
noise_scale |
the audio input is discarded | succeeds, valid audio | H10b at 0.1 vs 0.9 |
strength |
conditioning has no effect | succeeds, valid video | H4b at 0.3 vs 0.9 |
Four additional runs, all cheap, each converting "it passed" into "it did something different":
| # | Run | Compare against | Fails if |
|---|---|---|---|
| H12b | H12 without the adapter, same seed | H12 | identical output β the LoRA changed nothing, whatever stage 7 reported |
| H15 | already in A.4 | β | returned length is 121, i.e. the default leaked through |
| H10b | audio_to_audio, noise_scale=0.1 and =0.9, same seed |
each other | identical audio β the input clip is not reaching the model |
| H4b | video_to_video, strength=0.3 and =0.9, same seed |
each other | identical video β the conditioning clip is not reaching the model |
H12b matters most. Stage 7 asserts mechanism β that the adapter attached to
0 modules. H12b asserts effect β that attaching changed the output. They can disagree: an adapter can attach to modules that do not influence this prompt. Two independent proofs of the headline feature, at the cost of one extra run.
H10b is the one nobody would think to run. noise_scale=1.0 discards the
audio input by design, so a bug that drops the input entirely is
indistinguishable from correct operation β the mode produces audio either way and
every stream check passes. A same-seed pair at two noise scales is the only thing
in this matrix that can see it.
These are cheap because they reuse a seed, not because they are small. Run them at the same baseline as everything else; a difference visible only at low resolution is not a difference worth having.
β οΈ Pin the seed explicitly.
seed=-1means "draw a fresh one".That is the documented behaviour β the drawn value comes back on
GenerationResult.seedso a good output stays reproducible. But it means a comparison pair run at the default seed has two different seeds, so the outputs differ for that reason alone and every check above passes vacuously.Set an explicit integer seed on both halves of every pair, and record it in the run log. Otherwise these six runs prove nothing while appearing to prove everything β which is the failure mode they were added to catch, turned on themselves.
A.4.2 The undeclared-export direction β covered offline, no run needed
The exports contract is enforced both ways: declared-but-missing raises
EmptyOutputError; written-but-undeclared is dropped and noted on
GenerationResult.warnings.
Every run in A.2 proves the first direction. None proves the second, and it is the direction that silently discards a real artifact.
It does not need a GPU run β it needs an encoder that returns more than the mode declares, which is a fake, not a model. Already covered:
tests/test_exports_contract.py::test_a_track_the_mode_never_declared_does_not_reach_the_result
11 passed β parametrised across every mode
tests/test_ui_generate_seam.py β the same contract from the handler's side
Recorded here so the gap is visibly closed rather than merely absent. If those tests are ever removed, this line becomes false and nothing else in Part A would notice.
A.5 One high-resolution run
| # | Mode | Config | Purpose |
|---|---|---|---|
| H16 | text_to_audio_video |
1216 Γ 704, 121 frames | the resolution a user would actually choose. Everything above is a correctness check; this is the one that says whether it is usable |
A.5.1 H17 β the mel round-trip. Required before H10/H11 are believed.
The forward mel transform does not exist in the checkpoint. No module in
diffusers.pipelines.ltx2 implements one; the vocoder's only hann window
belongs to its anti-aliasing filter. So build_mel_front_end constructs it, and
five of its parameters are read from config and the rest are conventions:
| read from the checkpoint | convention, not a reading | |
|---|---|---|
n_fft 512 |
vocoder.filter_length |
power |
win_length 512 |
vocoder.window_length |
f_min / f_max |
hop_length 160 |
audio_vae.mel_hop_length |
mel_scale / norm |
n_mels 64 |
audio_vae.mel_bins |
center |
sample_rate 16000 |
audio_vae.sample_rate |
the log and its floor |
The offline gate asserts the left column is sourced correctly. Nothing offline can validate the right column, and a wrong choice there is "audible as degraded audio, reported as nothing" β the exact failure the module's own error message warns about. So it is validated by reconstruction:
known waveform -> build_mel_front_end -> audio_vae.encode
-> audio_vae.decode -> vocoder -> waveform
Compare against the input. A wrong window or scaling smears the spectrum and the reconstruction degrades measurably.
β οΈ The signal must have structure a wrong window would damage. Two tones plus an envelope, as the stereo fixture uses. Not noise and not silence β both survive a wrong analysis window looking much the same, which would make this test pass while proving nothing. That is the same fixture trap as a
float32audio fixture over abfloat16defect.
If it fails, the conventions are the candidates, in this order: the log and
its floor, then mel_scale/norm (slaney vs htk), then power (1.0 vs 2.0),
then center. Each is one line in audio.MEL_CONVENTIONS.
H10 and H11 passing does not substitute for this. They will produce well-formed audio with a wrong mel β that is what "reported as nothing" means.
β οΈ And the reverse: H17 passing does not clear the app's path. The round-trip validates the mel conventions. It ran through the
to_mel=seam with the harness supplyingwave.to(device=vae.device, dtype=vae.dtype)β so it stepped over a hand-off the application did not do, and H10/H11 still failed onInput type (CPUBFloat16Type) and weight type (CUDABFloat16Type)after H17 was already green.A harness that moves a tensor the app does not is the same shape as a float32 fixture over a bfloat16 defect. The mel is right and the app hands it over correctly are two different claims, and one green result would otherwise be read as covering both.
A.6 Run log
β οΈ This log was never filled in β and the runs happened (annotated 2026-08-25). All of H1βH17 ran on hinode with recorded results; they were recorded in
OPERATOR_HANDOFF.mdΒ§2.2β2.4 instead of here β 11/11 modes at 704Γ480Γ121, stage 2 at 1408Γ960, duration head f=97, LoRA accepted and rejected-at-6.5 both, mel round-trip 4/4 tones. The rows below are left as written: back-filling them now, from another document, would manufacture a log. The rows that are still truthfully "not run" are the same-seed comparison pairs β H10b, H12b, H4b β whose unseeded Β§2.5-era stand-ins are permanently unattributable (handoff Β§7).
| Run | Mode | Result | Wall clock | Streams observed | Output looks right? | Notes |
|---|---|---|---|---|---|---|
| S0 | smoke_t2v.py β GATE | β | β | β | β | run this first |
| H1 | text_to_video | β | β | β | β | not run |
| H2 | image_to_video | β | β | β | β | not run |
| H3 | image_text_to_video | β | β | β | β | not run |
| H4 | video_to_video | β | β | β | β | not run |
| H5 | text_to_audio_video | β | β | β | β | not run |
| H6 | image_to_audio_video | β | β | β | β | not run |
| H7 | image_text_to_audio_video | β | β | β | β | not run |
| H8 | text_to_audio | β | β | β | β | not run |
| H9 | video_to_audio | β | β | β | β | not run |
| H10 | audio_to_audio | β | β | β | β | not run |
| H11 | audio_to_video | β | β | β | β | not run |
| H12 | LoRA accepted | β | β | n/a | β | not run |
| H13a | LoRA rejected (diffusers conv.) | β | β | n/a | n/a | not run β must name the stage |
| H13b | LoRA rejected (native conv.) | β | β | n/a | n/a | not run β must name the stage |
| H12b | LoRA effect (no adapter, same seed) | β | β | n/a | β | not run β must DIFFER from H12 |
| H14 | stage 2 | β | β | β | β | not run β must DIFFER from H1 |
| H10b | noise_scale 0.1 vs 0.9 | β | β | β | β | not run β must DIFFER from each other |
| H4b | strength 0.3 vs 0.9 | β | β | β | β | not run β must DIFFER from each other |
| H15 | duration_head | β | β | β | β | not run β length must NOT be 121 |
| H16 | high resolution | β | β | β | β | not run |
Both bold columns are required. Streams observed is checkable β
ffprobe -show_streams against the expected layout in A.2. Output looks right?
is the judgement, and it is the one no test can make: every failure this build
produced was something that ran, exited zero, and was wrong.
A.7 What hinode cannot tell us
So a green Part A is not mistaken for a shippable Space: no tensor packing, no
150 GB ceiling, 124 GB RAM against ~68, and the spaces integration is
first-contact. All of Part A is HOST-PROVEN / ZEROGPU-PENDING.
β Every clause of that sentence has since been answered on the platform (annotated 2026-08-25). Packing was exercised (the post-pack prune freed 65.25 GB); the 150 GB ceiling was never binding (82.2/150 [OK]); the ~68 figure is β falsified (ceiling above 93.56 GB); and the
spacesintegration is long past first contact β the Space generates all eleven modes at 256Γ256Γ9, sha287ba9c. The HOST-PROVEN / ZEROGPU-PENDING dichotomy is resolved for the eleven modes at that configuration; still genuinely ZEROGPU-PENDING: stage 2, LoRA,auto_duration, and every shippable resolution.
Part B β ZeroGPU: does it fit the platform?
βΈοΈ PARKED. Retained unchanged because it is the matrix we return to, and because its economics β a 2400 GPU-s/day budget β do not apply to hinode and must not leak into Part A. Findings to date are in
docs/ZEROGPU_DISK.md.
β Unparked by events (annotated 2026-08-25). ZeroGPU is the live deployment and its question β does it fit the platform? β is answered yes for eleven modes at 256Γ256Γ9 (sha
287ba9c,SPACE_MODE_MATRIX.md). The R-matrix below was never run as designed:scripts/space_matrix.pycovered R1/R2/R4/R5's ground; R3 (LoRA), R6 (stage 2) and R7 (auto-duration) remain unexercised on the platform. The economics and rules of engagement below still govern any future Space run β with B.1's bf16-era packed-weight figure corrected where marked.Later on 2026-08-25 the session campaign covered R3's and R6's ground too β LoRA in both directions with a passing inertness check, and stage 2 to its decoder ceiling (PASS at 704Γ480Γ25 input, FAIL at Γ49) β
SPACE_SESSION_2026-08-25.md. R7's ground (auto-duration) remains unexercised on the platform.
B.1 The economics
| PRO quota | 2400 GPU-seconds/day β verified: pro_quota_minutes = 40 at spaces/zero/client.py:190. Fixed 24 h window from first use |
| Our tier | β xlarge β but only since 2026-08-27, and NOT because it was "forced". The original claim: "forced, because packed weights are 67.23 GiB and xlarge_threshold is 42.00 GiB exactly (45097156608 bytes, verified in the platform's own spaces/zero/configs.json)", annotated 2026-08-25 to "~51.1 GB of int8, still over the threshold, so the tier conclusion stands". The threshold reading was right and the conclusion did not follow. Crossing xlarge_threshold sets _default_gpu_size, which is read only by get_duration_seconds (client.py:109) and never reaches the gpuSize the scheduler allocates on (api.py:112-113). β
With LTX25_ZEROGPU_SIZE=auto the Space ran on large, 47.375 GiB, measured from inside the worker. It now runs xlarge β β
94.971 GiB, also measured β because the size is passed explicitly. MIG_ALLOCATOR_SIGHTINGS.md Β§1 |
| Multiplier | assumed 2Γ β β οΈ UNVERIFIED. A 75 s run is budgeted at 150 GPU-seconds |
| Practical ceiling | ~16 runs/day |
| HARD STOP | 1920 GPU-seconds (80%) |
Never run the tank dry. The stop line exists so that a failure discovered on run 5 can still be fixed and retested on the same day. A test budget with no reserve is a test budget that guarantees the last bug found is the one you cannot verify fixed.
β οΈ Reservation math is known. Billing math is NOT β and the unknown one sized this matrix.
Known, from
spaces0.51.1:duration_factor = 1.5atclient.py:112, appliedif gpu_size != 'xlarge'. Solargereservations are inflated 1.5Γ andxlargeare not. In reservation terms that makes xlarge cheaper than large β the inverse of the assumption this matrix was built on.Not known: a 2Γ xlarge billing multiplier appears nowhere in
client.py,api.py,wrappers.pyordecorator.py. It may exist server-side. Recorded as unverified rather than deleted, because absence from the client is not absence from the platform.The budget stays pessimistic at 2Γ. Being wrong that way costs unused quota; being wrong the other way costs a reservation failure mid-matrix. Do not re-plan around the cheaper figure until a real run's billed seconds confirm it β the first run is the measurement, and it costs nothing extra to take.
B.1.1 Two metering paths β they are not the same number
This distinction decides how we set duration=:
| path | compares | consequence |
|---|---|---|
| Reservation (pre-check) | the requested duration= against remaining quota |
a generous duration= can be refused up front even when the run would have been cheap |
| Billing (after) | the effective duration Γ the size multiplier | you are charged for what you used, doubled |
So: keep duration= tight. An over-generous request costs nothing in billing and everything
in schedulability β late in the day, a duration=300 reservation fails against 200 s remaining
while the actual 40 s run would have fit fine.
One trap from PLAN Β§5.8, now confirmed at source: large applies a hidden
1.5Γ duration_factor (so duration=60 schedules as 90 s). spaces/zero/client.py:112
gates it on gpu_size != 'xlarge', so it does not apply to us. The claim that xlarge
"doubles the request instead" is the unverified half β see the warning above. And the maximum duration is a server-side, tier-dependent, unpublished cap β
discover it, never hardcode it.
β Annotation (2026-08-27): "it does not apply to us" was accidentally right, for a reason that was catastrophically wrong
The paragraph above is correct that the 1.5Γ never applied. What it did not know is why:
get_duration_secondsfalls back todefault_gpu_size(), whichstartup()had promoted toxlarge, so the multiplier branch was skipped β while the scheduler, which reads a different variable entirely, was handing us alargepartition. β 47.375 GiB, measured.We were reserved as
xlargeand allocated aslarge, simultaneously, from the same call. Every reservation figure in this section is therefore sound and every hardware assumption underneath it was not. This is the sharpest illustration available of why "the platform does X for us automatically" has to be traced to the call that observes X, not to the call that sets it.MIG_ALLOCATOR_SIGHTINGS.mdΒ§1.
B.2 What does NOT need a GPU
This is the largest cost saving in the document, so it comes before the matrix.
| capability | why no GPU |
|---|---|
| LoRA validator stages 1β6 | header-only parsing. Real fixtures already captured (PLAN Β§4.5) β three real LoRA headers, read over HTTP range requests |
Constraint math (% 32, % 8 == 1, CRF selection, sigma schedules) |
pure functions over numbers |
| The mode registry | data; kwarg builders assert on dicts |
model_files.py resolver + allow-list emission |
data; the drift test compares README to declared paths |
| The never-empty-output invariant | stub pipeline returns nothing β assert a specific exception |
zerogpu.py return boundary and duration= signature match |
no CUDA needed to prove a CUDA tensor is rejected |
| Preflight RAM/disk checks | inject fake numbers |
| Audio-only export (modes 8, 9, 10, 11) | see Β§2.1 |
B.2.1 Modes 8β11 need NO dedicated GPU run
This is the clearest illustration of "code paths, not tabs".
Modes 8 (textβaudio), 9 (videoβaudio), 10 (audioβaudio) and 11 (audioβvideo) share their entire pipeline path with R1, R4 and R5. The only thing unique to them is which track gets exported at the end β and muxing/demuxing an already-produced tensor is offline-testable with a fixture.
Spending four GPU runs on them would buy nothing but four tabs turning green.
B.2.2 LoRA stage 7 needs a load, not a generation
Stage 7 β "assert the adapter attached to > 0 modules" β needs real weights in memory, but it does not need a completed denoise. It is folded into R3 rather than given its own run, so the same 120 GPU-seconds proves both the attach assertion and that generation still works with an adapter applied.
B.3 The minimal legal configuration
Verified against check_inputs: the only dimension rule is height % 32 == 0 and
width % 32 == 0. There is no minimum resolution, and num_frames % 8 == 1 is not checked
upstream at all (PLAN Β§5.5 β which is exactly why we check it).
Therefore the cheapest legal proving run is 256 Γ 256, num_frames = 9.
Quality will be bad. That is correct and intended: these runs prove code paths, not output quality. A showcase run happens at the end, only if quota remains (Β§B.6).
B.4 The matrix β 7 runs, 11 modes, ordered by risk
Ordered so that the most likely failure surfaces while the most quota remains. R1 is first because it is the riskiest thing we have: if the packer, the worker, or the diffusion decode is broken, nothing else matters and we want to know at 120 GPU-seconds spent, not 700.
| Run | Config | duration= |
Budget (GPU-s) | Proves β the path nothing else proves | Modes | Actual |
|---|---|---|---|---|---|---|
| R1 | t2v Β· 256Γ256 Β· 9 frames Β· distilled 8-step sigmas Β· no stage 2 | 60 | 120 | Pipeline loads β packs β forked worker runs β stage-1 denoise β diffusion decode β muxed mp4 with audio. The riskiest single path in the app. | 1, 5, 8 | (pending) |
| R2 | i2v Β· same tiny config Β· one condition at index 0 | 60 | 120 | LTX2VideoCondition construction, VAE encode of the condition, the CRF-18 recompression branch, and the pixelβlatent index math |
2, 3, 6, 7 | (pending) |
| R3 | R2 config + two adapters (Β§5) | 60 | 120 | Both directions in one call. (a) the 2.5 adapter loads, attaches to > 0 modules, and generates β the headline feature works; (b) the 2B adapter is then attempted and rejected loudly and specifically β the anti-silent-garbage guard fires. | LoRA | (pending) |
| R4 | same tiny config + a short input audio clip | 60 | 120 | audio-in: waveform β mel β audio_vae β 4D audio_latents + noise_scale |
10, 11 | (pending) |
| R5 | same tiny config + a short input video | 60 | 120 | video conditioning: a multi-frame condition β note multi-frame is never CRF-recompressed, unlike single-frame, so this is a genuinely different branch from R2 | 4, 9 | (pending) |
| R6 | R1 config + enable_stage_2=True |
90 | 180 | The stage-2 chain: LTX2LatentUpsamplePipeline β STAGE_2_DISTILLED_SIGMA_VALUES β noise_scale β denormalize=False on the diffusion decode |
quality path | (pending) |
| R7 | R1 config, no num_frames, tight min_seconds/max_seconds |
75 | 150 | duration_head auto-duration |
auto-duration | (pending) |
| 930 |
Budget: 930 GPU-seconds of a 1920 stop line β 990 s (~8 runs) held in reserve for retests.
Deviation from the uniform-60 s estimate, stated plainly: the lead's baseline was 7 Γ 120 = 840 GPU-s. I raised two runs, costing 90 GPU-s more:
Setting up R6: stage 2 is opt-in and defaults off (PLAN Β§7.4), so the run must pass
enable_stage_2=True. Note the registry overrides the request β a mode with skip_stage_2 set
forces it off, so R6 must use a video-exporting mode. R1's text_to_video qualifies.
- R6 β 90 s. The stage-2 chain does strictly more work than R1 (an upsample pass plus three further denoise steps on a larger latent). Requesting 60 s risks a timeout β and a timeout costs the full reservation and proves nothing.
- R7 β 75 s. With
num_framesomitted, the duration head chooses the length. Even with tightmin_seconds/max_secondsit may pick more than 9 frames, so the run is not bounded by our config the way the others are. Pass the tightest legalmin_seconds/max_secondsto keep this from being the expensive one.
Both are still tight enough to reserve comfortably (Β§B.1.1).
B.5 The R3 fixtures β one positive, one negative
R3 proves both directions in a single GPU call: that a good adapter works, and that a bad one is refused. All candidates were assessed by HTTP range-reading their safetensors headers β no full downloads.
B.5.1 Rejected: the official distilled LoRA
ltx-2.5-22b-distilled-lora-450-bf16.safetensors (9.699 GB) is documented for DEV-transformer
workflows. We ship the distilled transformer, so this is the wrong adapter for our
configuration and a passing result would be misleading. Already excluded from the disk budget
(PLAN Β§2.4) for the same reason.
B.5.2 Rejected: the official IC-LoRAs
Lightricks/LTX-2.5-22b-IC-LoRA-Pixel-Spatial-Upscaler (0.327 GB) and the 2.3 IC-LoRA family are
separately gated and the operator's token does not have them β verified, they 403. Not worth
a second gate request, because Β§5.3 is a better fixture anyway.
B.5.3 Positive fixture: AhsanHareem/reelbids-ltx25-camera-lora
File lora_weights_step_01250.safetensors.
| Size | 201 MB β downloads inside a run |
| Access | ungated |
| Generation | an actual LTX-2.5 camera LoRA |
| Shape | 768 tensors, prefix diffusion_model., rank 32, to_q.lora_B = [4096, 32] β hidden dim 4096, matching our 22B transformer |
| Metadata | __metadata__ present but EMPTY ({}) β no model_version |
Why this and not the official adapter. ltx-2.5-22b-distilled-lora-450-bf16.safetensors is
8.9 GB and documented for DEV-transformer workflows; we ship the distilled transformer,
so it is the wrong adapter for our configuration and a passing result would be misleading. It is
already excluded from the disk budget (PLAN Β§2.4) for the same reason.
Why this is a better fixture, not merely an available one. Its empty __metadata__ makes it
a realistic stand-in for what users actually upload, and it exercises stage 4's
absent-is-not-fatal branch against a real file. Note the distinction the code must honour:
metadata present but empty is a different shape from metadata absent, and both mean "no
version signal" (PLAN Β§4.5).
B.5.4 Negative fixture: charlied98/ltxv_2b_lora_soft_draw_v1
An LTX-Video-2B adapter β flatly the wrong architecture, and the reason PLAN Β§4.3 has a stage
6.5 at all. It passes stages 4, 5 and 6, passes diffusers' only built-in check, and may even pass
stage 7 because its module names match ours. The single thing wrong with it is
to_k.lora_A = [32, 2048] where this model is 4096.
R3 attempts it after the positive case and asserts a loud, specific rejection naming module, expected and actual dims. One run, both directions.
B.5.5 Rejected candidates
| candidate | why not |
|---|---|
Lightricks/LTX-2.5-22b-IC-LoRA-Pixel-Spatial-Upscaler |
separately gated, token does not have it (403) |
Lightricks/LTX-2.3-22b-LoRA-Cinemagraph |
403 β another separately gated repo. Do not depend on it |
ltx-2.5-22b-distilled-lora-450-bf16.safetensors |
8.9 GB, DEV-transformer workflow β wrong adapter for our distilled config |
Offline-only fixtures (no GPU run, used for stages 1β6.5):
joyfox/LTX-2.3-Transition-LORA (0.390 GB β the mixed-dimension case that proves 6.5 must be
per-module) and vrgamedevgirl84/LTX_2.3_Crisp_Enhance_Style_LoRa (0.705 GB β the
metadata-present case, ss_ltx_version: "2.3", modelspec.architecture: "LTX2/lora").
Real fixtures are better where they apply -- but synthetic ones are not optional. An earlier draft of this section said "no synthetic adapter is needed". That was wrong, and the distinction matters:
| what it proves | fixture |
|---|---|
| the validator accepts a real adapter, rejects a real wrong-architecture one | real files (above) |
| a header-truncated file, a corrupt length prefix, a header that is not JSON | synthetic only -- no real adapter is corrupt on demand |
| the payload is provably never read | synthetic only -- it needs a known payload size to count bytes against |
You cannot download a broken file that is broken in exactly the way you want to test. The
stdlib-built fixtures (struct + json, PLAN Β§4.6) are the only way to construct those cases,
and they are what makes stages 1-3 testable at all.
B.6 Showcase runs
Only if quota remains after the matrix is green, and only with the stop line respected. A showcase run at full resolution is a demo, not a test β it must never displace a retest.
B.7 Rules of engagement
- Log actual cost after every run β requested
duration=,size, and real GPU-seconds β into Β§8. A budget nobody reconciles is a budget nobody has. - Stop at 1920 GPU-seconds. No exceptions, no "just one more".
- Never auto-retry a timeout. PLAN Β§5.8 #5: the captured Gradio request's
X-IP-Tokenages past its TTL during attempt 1, so attempt 2 always 401s with "Expired ZeroGPU proxy token" β masquerading as the root cause and burning a second reservation to tell you a lie. - A failed run still costs quota. Before re-running, fix something. Re-running unchanged code to see if it fails differently is how a 1920 s budget becomes a 0 s budget.
- Run in matrix order. R1 first. It is ordered by risk deliberately.
- One variable per run. Each row changes exactly one thing from a run that already passed β which is what makes a failure diagnostic rather than merely bad news.
B.8 Run log
Filled in after each run. Running total maintained here.
| Run | Date | duration= |
size | Actual GPU-s | Cumulative | Result | Notes |
|---|---|---|---|---|---|---|---|
| R1 | β | β | β | β | β | not run | |
| R2 | β | β | β | β | β | not run | |
| R3 | β | β | β | β | β | not run | |
| R4 | β | β | β | β | β | not run | |
| R5 | β | β | β | β | β | not run | |
| R6 | β | β | β | β | β | not run | |
| R7 | β | β | β | β | β | not run |
Budgeted: 930 Β· Spent: 0 Β· Stop line: 1920 Β· Remaining to stop line: 1920
β οΈ "Spent: 0" was true of this matrix and false of the Space (annotated 2026-08-25). Real metered spend happened outside this log, in
scripts/space_matrix.pyruns the R-rows above never tracked: the first-generation session bounded at β€ ~243.58 GPU-s, and the mode-matrix day (UTC 2026-08-21) at β€ ~413 GPU-s β bothwall Γ 2bounds, never billed readings (SPACE_MODE_MATRIX.mdΒ§7). The R-rows stay "not run" truthfully; the reconciliation this line promised simply never had a place to land. Quota days are per-UTC-date β as of 2026-08-25 the day is fresh.