Spaces:
Running on Zero
Running on Zero
scripts: two stage-2 runs in one process, to settle the NATTEN question
Browse filesNATTEN's version->ref lookup goes over the network even when the kernel is fully
cached. Whether that fires once per process or once per generation decides
whether a private Space needs outbound network at every press of Generate or only
at first stage-2 use — a real product risk either way, but a very different one.
One stage-2 run cannot tell the two apart. H14b adds a second in the same
process, with a different seed so it is a separate generation rather than
something a cache could satisfy.
- scripts/host_matrix.py +7 -1
scripts/host_matrix.py
CHANGED
|
@@ -159,6 +159,12 @@ RUNS = {
|
|
| 159 |
# A.4 H14 -- stage 2. Same prompt and seed as H1, so the comparison is the
|
| 160 |
# refinement chain and nothing else; the artifact must DIFFER from H1's.
|
| 161 |
"H14": dict(mode="text_to_video", needs=(), extra={"enable_stage_2": True}),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
# A.4.1 H4b -- strength 0.3 vs 0.9 on the same seed. Two runs that must differ
|
| 163 |
# from each other; identical output means `strength` reaches nothing.
|
| 164 |
"H4b_lo": dict(mode="video_to_video", needs=("video",), extra={"strength": 0.3}),
|
|
@@ -369,7 +375,7 @@ def main() -> int:
|
|
| 369 |
width=spec_row.get("width", BASE_W),
|
| 370 |
height=spec_row.get("height", BASE_H),
|
| 371 |
num_frames=spec_row.get("frames", BASE_FRAMES),
|
| 372 |
-
seed=SEED,
|
| 373 |
output_root=OUTPUT_ROOT,
|
| 374 |
**spec_row["extra"],
|
| 375 |
)
|
|
|
|
| 159 |
# A.4 H14 -- stage 2. Same prompt and seed as H1, so the comparison is the
|
| 160 |
# refinement chain and nothing else; the artifact must DIFFER from H1's.
|
| 161 |
"H14": dict(mode="text_to_video", needs=(), extra={"enable_stage_2": True}),
|
| 162 |
+
# A second stage-2 run in the SAME process, to settle whether NATTEN's
|
| 163 |
+
# version->ref lookup fires once per process or once per generation. One
|
| 164 |
+
# stage-2 run cannot distinguish the two; two can. Different seed so it is a
|
| 165 |
+
# genuinely separate generation rather than a cache hit.
|
| 166 |
+
"H14b": dict(mode="text_to_video", needs=(), extra={"enable_stage_2": True},
|
| 167 |
+
seed=99999),
|
| 168 |
# A.4.1 H4b -- strength 0.3 vs 0.9 on the same seed. Two runs that must differ
|
| 169 |
# from each other; identical output means `strength` reaches nothing.
|
| 170 |
"H4b_lo": dict(mode="video_to_video", needs=("video",), extra={"strength": 0.3}),
|
|
|
|
| 375 |
width=spec_row.get("width", BASE_W),
|
| 376 |
height=spec_row.get("height", BASE_H),
|
| 377 |
num_frames=spec_row.get("frames", BASE_FRAMES),
|
| 378 |
+
seed=spec_row.get("seed", SEED),
|
| 379 |
output_root=OUTPUT_ROOT,
|
| 380 |
**spec_row["extra"],
|
| 381 |
)
|