Spaces:
Running on Zero
docs: eleven of eleven, and the evidence that still needs re-running
Browse filesSection 2 rebuilt on the corrected real-path figures, with H10 and H11 filled
in -- audio_to_audio at -10.4 dBFS, audio_to_video at 193,825 B. Eleven of
eleven modes produce artifacts with the expected layout on the real path, no
bypass and no harness accommodation.
The before/after pairs get their own section rather than mixed-vintage rows,
because the pre-fix numbers ARE the evidence for what the defect cost -- 3x
the compute, clipping on two modes, a 50 dB hole in a third. Deleting them
would turn a measurement back into an assertion.
Three notes a reader needs: H7 is the only artifact that grew and that is
flagged rather than interpreted; H8 and H9 are byte-identical because
uncompressed PCM at one duration always is, so their change is entirely in
level and this table alone would call them unchanged; and everything is ~3x
faster because unguided means one forward pass per step.
But those pairs are NOT yet controlled -- the seed reached only the sidecar
until 4ebb8b9, so both halves were unconditionally random and the pixel
differences cannot evidence their cause. The audio levels stand on their own:
-55.0 -> -17.8 dBFS and a peak of 1.7811 -> 1.0050 are not a seed.
Gap 8 records the seeding defect and what it invalidates. Gap 9 records the
noise_scale/sigmas[0] disagreement as open and deliberately unfixed, with the
reason the fix was withdrawn: it would have cut six of eight denoise steps
from a mode that measured healthy on eight.
Section 4.1 is new and is the most likely way a user meets a bad result:
audio_vae.encode is never called by the pipeline, our encode is its only
producer, and nothing validates the latents' distribution. Unusual audio --
tones, sweeps, near-silence -- yields a structurally perfect inaudible file.
A real instance cost a day of misdiagnosis. Recorded as a limitation rather
than fixed, because reliable OOD detection is not something we can do.
The narrower thing -- warn when the output comes back essentially silent --
is specified and deliberately NOT built: it must be a measurement rather than
a diagnosis, it needs a threshold, a threshold needs evidence, and adding an
unvalidated heuristic to the export path as the PR opens is the same move as
shipping a schedule change on a contract reading.
Section 7 now asks for the comparisons to be re-run seeded, each with a
same-value control whose spread should be zero -- because an unseeded control
cannot bound anything, which is the mistake worth not repeating.
- docs/OPERATOR_HANDOFF.md +178 -50
|
@@ -53,29 +53,30 @@ what `tests/verify_streams.py` observed in the container, not a human reading.
|
|
| 53 |
|
| 54 |
| # | Mode | Result | Streams observed | Size | Time |
|
| 55 |
|---|---|---|---|---|---|
|
| 56 |
-
| H1 | `text_to_video` | β
| h264 704Γ480@24, f=121 |
|
| 57 |
-
| H2 | `image_to_video` | β
| h264 704Γ480@24, f=121 |
|
| 58 |
-
| H3 | `image_text_to_video` | β
| h264 704Γ480@24, f=121 |
|
| 59 |
-
| H4 | `video_to_video`
|
| 60 |
-
| H5 | `text_to_audio_video` | β
| h264 + **aac 48000 Hz 2 ch** |
|
| 61 |
-
| H6 | `image_to_audio_video` | β
| h264 + aac 48000 Hz 2 ch |
|
| 62 |
-
| H7 | `image_text_to_audio_video` | β
| h264 + aac 48000 Hz 2 ch |
|
| 63 |
-
| H8 | `text_to_audio` | β
| **pcm_s16le 48000 Hz 2 ch**, no video | 961,998 B |
|
| 64 |
-
| H9 | `video_to_audio` |
|
| 65 |
-
| H10 | `audio_to_audio` |
|
| 66 |
-
| H11 | `audio_to_video` |
|
| 67 |
-
|
| 68 |
-
All β
measured on the real `get_pipeline` path, no bypass
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
| 79 |
|
| 80 |
> ### β οΈ Structure is not content
|
| 81 |
>
|
|
@@ -102,6 +103,61 @@ All β
measured on the real `get_pipeline` path, no bypass, `verify_streams` 0.
|
|
| 102 |
> are consistent with each other and sit at the rail; βΈοΈ whether that is correct
|
| 103 |
> for this model has not been established.
|
| 104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
> ### βΈοΈ Sizes differ between the two code paths, and it is not known why
|
| 106 |
>
|
| 107 |
> Three modes were run both through a **bypass** (`_base_pipeline` plus an
|
|
@@ -302,6 +358,84 @@ caches per image or per cold worker is βΈοΈ unknown and decides its severity.
|
|
| 302 |
arriving at Β±1.0.** Stage 2's brightness falloff was this too, not stage 2:
|
| 303 |
mean `99.48 β 34.44` collapsing before, `82.52 β 110.47` stable after.
|
| 304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 305 |
---
|
| 306 |
|
| 307 |
## 5. How to run it
|
|
@@ -496,37 +630,31 @@ priority.
|
|
| 496 |
|
| 497 |
## 7. If you do one thing
|
| 498 |
|
| 499 |
-
**
|
| 500 |
-
|
| 501 |
-
### First: run H17, the mel round-trip
|
| 502 |
|
| 503 |
-
|
| 504 |
-
β only that it runs. The forward mel transform does not exist in the checkpoint
|
| 505 |
-
and had to be built; **five of its parameters are read from config and the rest
|
| 506 |
-
are conventions** (`power`, `f_min`/`f_max`, `mel_scale`/`norm`, `center`, the
|
| 507 |
-
log and its floor). A wrong choice there produces **well-formed audio that is
|
| 508 |
-
quietly degraded** β which is precisely the failure mode this document keeps
|
| 509 |
-
returning to. `TEST_PLAN` A.5.1 specifies the round-trip and the
|
| 510 |
-
failure-ordered candidate list.
|
| 511 |
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
|
|
|
|
|
|
| 516 |
|
| 517 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 518 |
|
| 519 |
-
|
| 520 |
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
|
|
|
| 524 |
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
design**, so a bug that drops the input entirely is indistinguishable from
|
| 528 |
-
correct operation. The mode produces valid audio either way. Every other check
|
| 529 |
-
in the matrix passes either way.
|
| 530 |
|
| 531 |
-
Everything else in Β§2 has produced an artifact and had its **structure**
|
| 532 |
-
observed. Structure was never the hard part.
|
|
|
|
| 53 |
|
| 54 |
| # | Mode | Result | Streams observed | Size | Time |
|
| 55 |
|---|---|---|---|---|---|
|
| 56 |
+
| H1 | `text_to_video` | β
| h264 704Γ480@24, f=121 | 791,782 B | 8.4 s |
|
| 57 |
+
| H2 | `image_to_video` | β
| h264 704Γ480@24, f=121 | 307,583 B | 7.8 s |
|
| 58 |
+
| H3 | `image_text_to_video` | β
| h264 704Γ480@24, f=121 | 775,213 B | 8.0 s |
|
| 59 |
+
| H4 | `video_to_video` | β
| h264 704Γ480@24, f=121 | 708,885 B | 8.6 s |
|
| 60 |
+
| H5 | `text_to_audio_video` | β
| h264 + **aac 48000 Hz 2 ch** | 792,803 B | 7.8 s |
|
| 61 |
+
| H6 | `image_to_audio_video` | β
| h264 + aac 48000 Hz 2 ch | 374,184 B | 7.9 s |
|
| 62 |
+
| H7 | `image_text_to_audio_video` | β
| h264 + aac 48000 Hz 2 ch | 995,843 B | 8.2 s |
|
| 63 |
+
| H8 | `text_to_audio` | β
| **pcm_s16le 48000 Hz 2 ch**, no video | 961,998 B | 1.8 s |
|
| 64 |
+
| H9 | `video_to_audio` | β
| pcm_s16le 48000 Hz 2 ch, no video | 961,998 B | 2.0 s |
|
| 65 |
+
| H10 | `audio_to_audio` | β
| pcm_s16le 48000 Hz 2 ch, **β10.4 dBFS** | 961,998 B | 2.8 s |
|
| 66 |
+
| H11 | `audio_to_video` | β
| h264 704Γ480@24, f=121, no audio | 193,825 B | 8.0 s |
|
| 67 |
+
|
| 68 |
+
**Eleven of eleven.** All β
measured on the real `get_pipeline` path, no bypass
|
| 69 |
+
and no harness accommodation; `verify_streams` returned 0 on every one.
|
| 70 |
+
|
| 71 |
+
| beyond the baseline | | |
|
| 72 |
+
|---|---|---|
|
| 73 |
+
| **H14** stage 2 | 1408 Γ 960, f=121 | 1,807,646 B Β· 35.2 s |
|
| 74 |
+
| **H15** `duration_head` | 704 Γ 480, **f=97** not 121 | 593,527 B Β· 5.9 s |
|
| 75 |
+
| **H16** high resolution | **1216 Γ 704** + aac stereo | 1,775,743 B Β· 21.0 s |
|
| 76 |
+
| **H17** mel round-trip | 4.000 s in β 4.010 s out, **4/4 tones** | strict gate |
|
| 77 |
+
| **H12 / H13a / H13b** | LoRA accepted / rejected / rejected | stage 6.5 |
|
| 78 |
+
|
| 79 |
+
> **Wall-clock excludes the model load**, which is **14.0 s once** per batch β
.
|
| 80 |
|
| 81 |
> ### β οΈ Structure is not content
|
| 82 |
>
|
|
|
|
| 103 |
> are consistent with each other and sit at the rail; βΈοΈ whether that is correct
|
| 104 |
> for this model has not been established.
|
| 105 |
|
| 106 |
+
### 2.5 What the recipe fix bought β before / after
|
| 107 |
+
|
| 108 |
+
Same seed, same geometry on both sides of every pair; **only the distilled
|
| 109 |
+
recipe (gap 7) differs.**
|
| 110 |
+
|
| 111 |
+
| # | mode | before | after | wall-clock |
|
| 112 |
+
|---|---:|---:|---:|---|
|
| 113 |
+
| H1 | `text_to_video` | 886,265 | 791,782 | 25.7 β **8.4 s** |
|
| 114 |
+
| H2 | `image_to_video` | 432,486 | 307,583 | 26.3 β **7.8 s** |
|
| 115 |
+
| H3 | `image_text_to_video` | 1,130,178 | 775,213 | 26.6 β **8.0 s** |
|
| 116 |
+
| H4 | `video_to_video` | 727,490 | 708,885 | 27.0 β **8.6 s** |
|
| 117 |
+
| H5 | `text_to_audio_video` | 1,091,468 | 792,803 | 25.0 β **7.8 s** |
|
| 118 |
+
| H6 | `image_to_audio_video` | 620,537 | 374,184 | 26.6 β **7.9 s** |
|
| 119 |
+
| H7 | `image_text_to_audio_video` | 784,282 | **995,843** | 26.7 β **8.2 s** |
|
| 120 |
+
| H8 | `text_to_audio` | 961,998 | 961,998 | 5.6 β **1.8 s** |
|
| 121 |
+
| H9 | `video_to_audio` | 961,998 | 961,998 | 6.0 β **2.0 s** |
|
| 122 |
+
| H14 | stage 2 | 2,254,799 | 1,807,646 | 84.3 β **35.2 s** |
|
| 123 |
+
| H15 | `duration_head` | 684,374 | 593,527 | 19.4 β **5.9 s** |
|
| 124 |
+
| H16 | 1216 Γ 704 | 2,331,528 | 1,775,743 | 68.7 β **21.0 s** |
|
| 125 |
+
|
| 126 |
+
**Geometry is identical on both sides of every pair** β H14 stays 1408 Γ 960,
|
| 127 |
+
H15 stays 97 frames, the rest 704 Γ 480 Γ 121. *Sizes changed; geometry did
|
| 128 |
+
not* is the shape of the result.
|
| 129 |
+
|
| 130 |
+
Three things a reader needs:
|
| 131 |
+
|
| 132 |
+
- **H7 is the only artifact that grew.** h264 size tracks content complexity,
|
| 133 |
+
so that is neither good nor bad on its own. Flagged, not interpreted.
|
| 134 |
+
- **H8 and H9 are byte-identical** because uncompressed PCM at one duration,
|
| 135 |
+
rate and channel count always is. **Their change is entirely in level**, not
|
| 136 |
+
in bytes β see below β so reading this table alone would call them unchanged
|
| 137 |
+
when they are two of the three that moved most.
|
| 138 |
+
- **~3Γ faster everywhere.** At `guidance_scale=1.0` with STG and modality
|
| 139 |
+
zeroed there are no classifier-free branches, so it is one forward pass per
|
| 140 |
+
step instead of two or three. **The defect cost 3Γ the compute as well as
|
| 141 |
+
the quality.**
|
| 142 |
+
|
| 143 |
+
> ### β οΈ These pairs are not yet controlled β the audio evidence is
|
| 144 |
+
>
|
| 145 |
+
> **The seed never reached the model** until `4ebb8b9` (gap 8), so both halves
|
| 146 |
+
> of every pair above were unconditionally random. **The pixel differences
|
| 147 |
+
> cannot yet evidence that the recipe fix caused them** β two runs of one mode
|
| 148 |
+
> differed anyway. They need **re-running seeded** before they carry weight.
|
| 149 |
+
>
|
| 150 |
+
> **The audio levels do stand on their own**, because they are systematic and
|
| 151 |
+
> orders of magnitude outside run-to-run variation:
|
| 152 |
+
>
|
| 153 |
+
> | | before | after |
|
| 154 |
+
> |---|---:|---:|
|
| 155 |
+
> | H9 `video_to_audio` | β55.0 dBFS | **β17.8 dBFS** |
|
| 156 |
+
> | H8 `text_to_audio` | β5.2 dBFS, **peak 1.0000** (railed) | **β15.3 dBFS**, peak 0.6953 |
|
| 157 |
+
> | highest peak, any mode | **1.7811** | **1.0050** |
|
| 158 |
+
>
|
| 159 |
+
> A 50 dB gap and a clipped peak going away are not a seed.
|
| 160 |
+
|
| 161 |
> ### βΈοΈ Sizes differ between the two code paths, and it is not known why
|
| 162 |
>
|
| 163 |
> Three modes were run both through a **bypass** (`_base_pipeline` plus an
|
|
|
|
| 358 |
arriving at Β±1.0.** Stage 2's brightness falloff was this too, not stage 2:
|
| 359 |
mean `99.48 β 34.44` collapsing before, `82.52 β 110.47` stable after.
|
| 360 |
|
| 361 |
+
|
| 362 |
+
8. ### β οΈ The seed reached only the sidecar β **the one open defect**
|
| 363 |
+
|
| 364 |
+
`_resolve_seed` ran and the number went into the encoder metadata. **There
|
| 365 |
+
was no generator anywhere in the package**, so every run was unconditionally
|
| 366 |
+
random and every *"same seed"* comparison was two independent runs.
|
| 367 |
+
|
| 368 |
+
β
**Fixed** in `4ebb8b9`: a generator seeded from the request, built on the
|
| 369 |
+
pipeline's own device, threaded to the pipeline **and** to
|
| 370 |
+
`audio_vae.encode`'s `.sample()`.
|
| 371 |
+
|
| 372 |
+
βΈοΈ **What still needs re-running**, because it was measured before the fix:
|
| 373 |
+
the before/after pixel pairs (Β§2.5), **H10b**, H12b and H4b. Everything
|
| 374 |
+
structural is unaffected β H14's exact 2Γ resolution, H15's 97 frames,
|
| 375 |
+
H17's frequency recovery, and every audio level.
|
| 376 |
+
|
| 377 |
+
> The lever that should have caught it was ours: `decode_kwargs` took a
|
| 378 |
+
> `generator` argument, **with a docstring explaining why the diffusion
|
| 379 |
+
> decoder must be seeded**, and read a key nothing ever set. See PLAN Β§9
|
| 380 |
+
> rule 12.
|
| 381 |
+
|
| 382 |
+
9. ### βΈοΈ `noise_scale` and `sigmas[0]` disagree β open, deliberately unfixed
|
| 383 |
+
|
| 384 |
+
π Upstream infers one from the other β *"first (largest) sigma value if
|
| 385 |
+
using custom sigmas"* β and our `stage_2_kwargs` honours it. The
|
| 386 |
+
audio-input modes do not: they send `noise_scale` while `sigmas[0]` stays
|
| 387 |
+
1.0.
|
| 388 |
+
|
| 389 |
+
**It was diagnosed as the cause of a silent `audio_to_audio` and it was
|
| 390 |
+
not** (Β§4.1). A fix was written, committed and **withdrawn**: truncating the
|
| 391 |
+
schedule at `noise_scale` takes an eight-step run to **two** steps at 0.5
|
| 392 |
+
and **one** at 0.1 β values that measured healthy on eight.
|
| 393 |
+
|
| 394 |
+
**Agreeing with a contract is not evidence that a change improves
|
| 395 |
+
anything.** A test pins the current behaviour and explains why, so the next
|
| 396 |
+
attempt arrives with a measurement rather than with agreement.
|
| 397 |
+
|
| 398 |
+
---
|
| 399 |
+
|
| 400 |
+
## 4.1 β οΈ Known limitation β unusual audio input produces a silent file
|
| 401 |
+
|
| 402 |
+
**Not a defect we can properly fix, and the most likely way a user meets a
|
| 403 |
+
disappointing result.**
|
| 404 |
+
|
| 405 |
+
`audio_vae.encode` is **never called by the pipeline**. Our
|
| 406 |
+
`encode_waveform_to_latents` is the only producer of those latents, and
|
| 407 |
+
**nothing anywhere validates their distribution** β not upstream, not us.
|
| 408 |
+
|
| 409 |
+
So audio that is far from what the model was trained on encodes to latents the
|
| 410 |
+
model cannot use, and the result is **a structurally perfect, inaudible file
|
| 411 |
+
with no error and nothing to act on.** β
A real instance, and it cost a day of
|
| 412 |
+
misdiagnosis: a two-tone synthetic fixture at **β14.8 dBFS in** produced
|
| 413 |
+
**β87.9 dBFS out**, with correct codec, channels, rate and duration, and
|
| 414 |
+
`verify_streams` exit 0. The same mode fed a real recording produces **β10.4
|
| 415 |
+
dBFS**.
|
| 416 |
+
|
| 417 |
+
**Likely triggers:** pure tones, sine sweeps, test signals, near-silence,
|
| 418 |
+
heavily synthesised material. **Ordinary recorded audio is fine** β every
|
| 419 |
+
realistic input tried has worked.
|
| 420 |
+
|
| 421 |
+
β **Do not "fix" this with an out-of-distribution detector.** Reliable OOD
|
| 422 |
+
detection at that boundary is not something this project can do, and a
|
| 423 |
+
detector that is wrong in either direction is worse than the limitation.
|
| 424 |
+
|
| 425 |
+
βΈοΈ **A narrower thing is worth doing and is deliberately not done yet.** We
|
| 426 |
+
measure the input level and can measure the output level, so **a file that
|
| 427 |
+
comes back essentially silent could say so** in `GenerationResult.warnings`.
|
| 428 |
+
The decision that makes it honest is that it must be a **measurement, not a
|
| 429 |
+
diagnosis**: *"this output is β87.9 dBFS, effectively silent"* is a fact about
|
| 430 |
+
the artifact, checkable and cause-free. *"Your audio was out of distribution"*
|
| 431 |
+
is a claim we cannot support.
|
| 432 |
+
|
| 433 |
+
It is not built because it needs a threshold, a threshold needs evidence, and
|
| 434 |
+
the PR opens with **one** named defect. **Adding an unvalidated heuristic to
|
| 435 |
+
the export path hours beforehand is the same move as shipping a schedule change
|
| 436 |
+
on a contract reading** β which was reverted for that reason. It belongs in the
|
| 437 |
+
next pass, with a measured floor.
|
| 438 |
+
|
| 439 |
---
|
| 440 |
|
| 441 |
## 5. How to run it
|
|
|
|
| 630 |
|
| 631 |
## 7. If you do one thing
|
| 632 |
|
| 633 |
+
**Re-run the comparisons seeded.** Everything works; the open item is that some
|
| 634 |
+
of the *evidence* was gathered before the seed reached the model.
|
|
|
|
| 635 |
|
| 636 |
+
### The runs that need repeating, and what each would then establish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 637 |
|
| 638 |
+
| run | what it would establish | why it does not yet |
|
| 639 |
+
|---|---|---|
|
| 640 |
+
| **Β§2.5 before/after pairs** | that the recipe fix caused the pixel differences | both halves were unconditionally random |
|
| 641 |
+
| **H10b** β `noise_scale` 0.1 vs 0.9 | that the user's audio reaches the model | same, plus the audio encode drew unseeded |
|
| 642 |
+
| **H12b** β LoRA effect | that attaching the adapter changed the output | same |
|
| 643 |
+
| **H4b** β `strength` 0.3 vs 0.9 | that the conditioning clip reaches the model | same |
|
| 644 |
|
| 645 |
+
Add a **same-value control** to each β two runs at *identical* settings. Under
|
| 646 |
+
a working seed its spread should be **zero**, and that is what turns "the halves
|
| 647 |
+
differ" into evidence rather than a coin toss. An earlier control measured 1.8%
|
| 648 |
+
and was read as a bound on the variance; **an unseeded control cannot bound
|
| 649 |
+
anything**, which is the mistake worth not repeating.
|
| 650 |
|
| 651 |
+
### What is already earned, and does not need repeating
|
| 652 |
|
| 653 |
+
**Eleven of eleven modes produce artifacts with the expected stream layout on
|
| 654 |
+
the real path.** β
H14's exact 2Γ resolution, H15's 97 frames, H17's round-trip
|
| 655 |
+
recovering 4/4 tones under a strict gate, both LoRA directions, and every audio
|
| 656 |
+
level β all structural or systematic, and none of them depends on seeding.
|
| 657 |
|
| 658 |
+
**And read Β§3 before treating any of this as a deployment.** The Space has
|
| 659 |
+
evicted twice and has never run.
|
|
|
|
|
|
|
|
|
|
| 660 |
|
|
|
|
|
|