Spaces:
Running on Zero
Running on Zero
Commit History
9 days ago
-
docs: every sentence stays true after the deploy: README and the release notes say this is deploy 2's code and point to issue #32 for what the Space shows, and no doc says the Space still runs deploy 1, is not deployed, or has not been redeployed since August (#32)
Unverified signatureThe commit we deploy is also what origin/main is fast-forwarded to, and nothing can be pushed after the deploy without restarting the public Space, so a sentence that a deploy makes false would stay false. README: "Where things stand, 2026-11-17" says the README describes deploy 2's code, which replaces deploy 1 on the Space, points to SPACE_MODE_MATRIX 10.1-10.3 and the release notes, and to issue #32 for deploy 2's own check on the Space. The cold-start time points to #32 instead of "has not been measured"; the longest accepted reservation is "not measured by these runs"; the browser runs of 2026-11-16 "did not finish in that session" instead of "have not been run ... yet". docs/RELEASE_NOTES.md: "Deploy 2 - 2026-11-17", the code of this commit's tree, the Space result on #32 (also under "On the Space"); deploy 1 "ran" as 0cd54f2 until deploy 2, and main "was fast-forwarded" to 1e9fd20 that day. The other docs, the same way: SPACE_MODE_MATRIX's header and 10 intro, 10.2 and 10.3; …abc9150
10 days ago
-
docs: each August record opens with what has been superseded since, and where the current truth is
Unverified signatureThe seven historical documents keep their bodies. Each gets a short "Status on 2026-11-16" box at the top naming the passages that later measurements overtook, with the corrected figure and its source: - the stage-2 "ceiling between 25 and 49 frames" was the 47.375 GiB `large` partition; 704x480x49 passes on `xlarge` (MIG_ALLOCATOR_SIGHTINGS.md §2); - "≤ ~675.5 GPU-s" for UTC 2026-08-25: the persistent ledger reads ≤ 1528.672 over 20 runner calls, ~1622 with the hand-bounded manual calls; - "82.2 GB of 150 [OK]" is a reading taken before ZeroGPU packs; the platform packed 40.6 GB on the 2026-11-13 boot and the disk peak was never measured; - TEST_PLAN.md and ZEROGPU_DISK.md never got the 2026-08-25 retraction of "all eleven modes generate, content-verified"; - deploying is a merge commit on the Space head pushed as a fast-forward, not a push of the work commit; the download is at startup, 13 min 59 s cold; - hinode is retired and its scripts are gone; `auto` is no longer the…8e7494f
-
docs: the app ran its whole life on half a GPU — `auto` cannot promote, and four documents said otherwise
Unverified signature`MIG_ALLOCATOR_SIGHTINGS.md` was a register of three NVML allocator asserts with no explanation and a ruling that nobody chase them until somebody read the headroom. `0a4ddbb` read it. The number was **47.375 GiB** — ZeroGPU's `large` — where every document in this repo assumed `xlarge`'s 94.971 GiB. ⛔ THE ROOT CAUSE, IN FOUR HOPS, ALL FROM THE PLATFORM'S OWN PACKAGE: * `spaces/zero/__init__.py:29-35` — `startup()` packs, clears the 42.00 GiB `xlarge_threshold`, and sets the module global `_default_gpu_size='xlarge'`. The promotion is real and it does fire. * `spaces/zero/client.py:109` — `get_duration_seconds()` is the **only** consumer of `default_gpu_size()` anywhere in the package, and it rebinds a **local**. * `spaces/zero/client.py:111-112` — that local feeds one branch: `if gpu_size != 'xlarge': duration_seconds *= duration_factor`. The promotion's entire observable effect is skipping a 1.5× multiplier on the *requested duration*. * `client.py:144` → `api.py:112-…caf1083
-
docs: the 2026-08-25 session — byte identity sha256-verified, 1216x704 proven, the stage-2 ceiling found
Unverified signatureNew: docs/SPACE_SESSION_2026-08-25.md, the record of the day's campaign — 14 metered attempts plus two zero-GPU validates across two deploys (8e9f7a1, then ff142d9 carrying cdb3211/0be0014/b9ee967/2eaeb2c and the UI redesign), total <= ~675.5 GPU-s of 2400, the 1920 ceiling never approached. Every artifact is banked under a directory named by its sha256, and every hash in the doc was re-computed at write-up time. The headline closes the correction this morning's pass made: byte-level reproducibility, previously UNVERIFIED (no day-1 hash), is now VERIFIED in the happy direction — a fresh seed-1234 run hashed equal to the surviving 2026-08-22 artifact (b78803cc…) on a third container and a different code sha, then equal AGAIN through the redesigned UI on the tiled-decode build on a warm worker that had just carried an adapter. The condition pipeline reproduced its banked artifact byte-for-byte (ef8571e6…) — giving the conditioning discriminator a zero noise floor — and both LoRA routes …76c408d -
docs: the audit's stale claims annotated — measurements stand, corrections dated on top
Unverified signatureA four-agent audit swept every doc for claims events had falsified (~30, with file:line). Fixed per the house rule: history is annotated, never rewritten — dated blockquote corrections point at current reality with evidence. Six follow-up-table rows get in-cell appends with status flips (the file's own precedent for rows); no finding is deleted, no captured record reworded. The delicate one first. SPACE_MODE_MATRIX §5's 'byte-identical to the result banked the previous day' was never verified: no day-1 hash was ever recorded, the match was file size (39,146 B) plus every decoded statistic to three decimals, and the day-1 file is gone with its host — so byte identity is now unverifiable against it. The §5 caveat ('Do NOT upgrade this') was correct and reports upgraded past it; the error ran in that direction, not the doc's. Corrected claim: identical in size and in all decoded statistics, byte identity UNVERIFIED; a same-seed re-run sha256-compared against the surviving 2026-08-22 arti…fd85c87
-
docs: A.5.1 -- the half of de2596c that did not land
Unverified signatureThe previous commit's message described this change and the edit did not apply: the anchor text had a trailing clause I had not matched, the replace was a no-op, and only the PLAN half was committed. A commit message describing something the commit does not contain is precisely the self-misdescribing history PLAN 9.1.3 records, so this lands it rather than leaving the claim standing. A.5.1 already said H10/H11 passing does not substitute for the round-trip. The reverse needed saying: H17 passing does not clear the app's path. It ran through the to_mel= seam with the harness supplying wave.to(device, dtype), stepping over a hand-off the application did not do -- and H10/H11 failed on CPU-vs-CUDA after H17 was already green.1fa60a3 -
feat: build the mel front-end the checkpoint does not ship
Unverified signatureThe audio VAE has no mel front-end and upstream ships none anywhere in diffusers.pipelines.ltx2 -- the vocoder's only hann window belongs to its anti-aliasing filter. So audio_to_audio and audio_to_video could not start, while H5-H9 produce real audio: decode needs no STFT, because the VAE decoder emits a mel and the vocoder inverts it. The gap is asymmetric by nature. Five parameters, each read from the component that owns it. Four are declared by BOTH components and agree -- mel bins 64 = num_mel_channels 64, sample_rate 16000 = input_sampling_rate 16000 -- which is what makes this a lookup rather than a reconstruction. The hop is the single disagreement and is read from the VAE on purpose: mel_hop_length 160 against the vocoder's hop_length 80, and the vocoder's own upsample_factors [5,2,2,2,2,2] multiply to 160, matching the VAE rather than its own declared 80. Read window_length across; do NOT read a hop across. The asymmetry is the judgement and it is what a later reader will t…a380070 -
docs: two rules whose shape does not depend on the author being right
Unverified signatureRule 3, the vacuity check: ask of every input whether the run would still pass if it were silently ignored. Where the answer is yes, a green run is not evidence -- five request fields on this build qualify. The rule caught itself: the six comparison runs it produced would all have passed vacuously because seed=-1 draws fresh, established by running it (777437012 vs 3499445304) rather than by reasoning about it. Rule 4, derive every consumer of a recorded fact: rule 1 is a property of copies, not of prose, and code is not exempt. The 37-file allow list was right on a machine nobody wrote it for because both consumers are generated from one recorded source. TEST_PLAN A.4.1 stays authoritative for the fields and the runs; PLAN states the rule once and A.4.1 now points at it, per rule 1.c5ba0bb -
docs: pin the seed, or the same-seed checks pass vacuously
Unverified signatureFixes A.4.1/A.4.2 ordering, and flags the trap that would have made the whole technique useless: seed=-1 means draw a fresh one, so a comparison pair run at the default has two different seeds. The outputs then differ for that reason alone and every check passes without proving anything — the exact failure mode these runs were added to catch, turned on themselves. Verified rather than assumed: two calls with seed=-1 return different values.f85a696 -
docs: generalise H14's same-seed trick to every ignorable input
Unverified signatureH14 compares against H1 at the same seed because stage 2 defaults off and a run that omits the flag still succeeds. Auditing every GenerationRequest field for that shape turns up four more: loras, auto_duration, noise_scale and strength can all be silently ignored while the run produces a valid file and every stream check passes. Four extra runs, each converting 'it passed' into 'it did something different'. H12b matters most: stage 7 asserts MECHANISM — the adapter attached to more than zero modules — and H12b asserts EFFECT — that attaching changed the output. They can disagree, because an adapter can attach to modules that do not influence a given prompt. Two independent proofs of the headline feature for 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 dropping the input entirely is indistinguishable from correct operation — audio_to_audio produces audio either way. A same-seed pair at two noise scales is the …c592b90 -
docs: close three gaps in the hinode matrix
Unverified signatureH13 named only the repo, and that repo ships two files of identical size with different key conventions — transformer. (diffusers) and diffusion_model. (native). 'Rejected' would not have been a result: a file rejected at stage 5 for an unrecognised convention looks the same in a pass column as one rejected at 6.5 for dimensions, and the first would mean the convention detector had FAILED. Same red-for-the-wrong- reason trap as earlier in this build. Resolved by running the real validator against both headers with a 48-layer 4096-dim transformer rather than predicting: both reject at stage 6.5 with LoRADimensionError. The convention detector accepted both real conventions and handed each to the dimension check — the first evidence it works on files somebody else wrote, since until now it had only seen synthetic fixtures. Split into H13a/H13b, and the matrix now requires the STAGE to be recorded, not just the verdict. Adds a smoke gate before H1. Part B's smallest-thing-that-can-fail-…3e1fd79 -
docs: rewrite the test plan's hinode half around real output
Unverified signaturePart B's matrix was shaped entirely by a 2400 GPU-s/day budget that does not exist on this box. It grouped modes by shared code path and skipped the ones already covered — correct under a quota, wrong here. Part A now runs all eleven modes with their own artifact each, at 704x480x121 rather than 256x256x9. The small config existed only to ration quota, and a 9-frame clip passes several things by accident: the num_frames arithmetic, the pixel-to-latent anchor conversion and the stereo mux all have more room to be wrong at 121 frames. Every mode now states its EXPECTED STREAM LAYOUT, and that is the pass criterion rather than 'it produced a file'. A mode declaring both tracks and handing back a silent video is the exact defect that shipped here once. Cross-checked the table against the registry programmatically: 11/11 agree. LoRA gets both directions with the reason each matters — the accepted adapter is the false-positive guard, since it carries 2048-wide tensors at the audio modules…750d843 -
feat: fail loudly if the tensors stop being mmap-backed
Unverified signatureThe mmap precondition was a comment. It is now a check, because its failure mode is the worst shape this build has: a dtype cast or a clone materialises tensors into anonymous memory, ZeroGPU's post-pack prune finds nothing to unlink, and the Space dies at STEADY STATE with 72 GB it cannot account for and no error explaining why. The guard asserts on the same basis the packer prunes on rather than a proxy for it: walk /proc/self/maps, resolve each parameter's data_ptr back to its backing file, and require a match against the autoprune glob. File-backed is not sufficient — a tensor mapped from outside the pattern is just as unfreeable and looks fine to any check that only asks whether it is backed at all. Being unable to check is reported, never passed. There is no /proc/self/maps on macOS, and a quiet pass there would be the same defect as the startup report that defaulted to 37/37. Parsing and address resolution are pure functions, so the whole thing is testable offline with a synt…6fd68ea -
docs: the dtype is load-bearing for ZeroGPU's snapshot cleanup
Unverified signatureZeroGPU frees the 72 GB HF snapshot after packing by reading /proc/self/maps, mapping each tensor's data_ptr back to the blob it is mmap'd from, and unlinking those. So the cleanup is conditional on the tensors still BEING mmap'd — a dtype cast, a clone, an eager load or a non-safetensors path materialises them into anonymous memory and there is nothing left to capture. Then nothing is freed, 72 GB stays on disk forever, and there is no error and no log line saying so. torch_dtype has therefore stopped being a free parameter. The comment sits at the risk site in get_pipeline rather than only in the plan, because the next person to touch that line is the one who needs it and they will not be reading §8.3 at the time. Same class: the cache must stay under ~/.cache/huggingface/hub or the autoprune pattern stops matching. That is a sharper reason not to move HF_HOME than the preload one already recorded — it fails silently rather than loudly. TEST_PLAN corrections against the platform's…92aea11 -
docs: split the test plan by the question each host can answer
Unverified signatureTEST_PLAN was one matrix shaped entirely by a 2400 GPU-s/day budget that does not apply on hinode. Now two, with a table at the top making the difference structural rather than remembered: Part A asks whether the application is correct, Part B asks whether it fits ZeroGPU, and neither answers the other's question. Part A is sixteen runs covering all eleven modes at resolutions someone would actually use, plus LoRA in both directions, stage 2 and the duration head. The ZeroGPU matrix deliberately proved code paths and skipped modes whose paths were already covered; without a quota the right thing to buy is output we can look at, not more green ticks. So the run log has a required 'Output looks right?' column — every failure this build produced was something that ran and was wrong. A.0 lists the startup checks that must pass before any of it means anything, including module identity across the two pipelines, since equality passes with two copies loaded. A.2 records what hinode cannot t…66ca545 -
docs: R6 must opt into stage 2 explicitly
Unverified signatureStage 2 defaults off, so a run that does not pass enable_stage_2=True would quietly exercise the stage-1 path and report as a pass — burning 180 GPU-seconds to prove nothing. Also notes the registry override, so R6 is not configured with a mode that forces stage 2 off.85cee76 -
docs: batched corrections pass
Unverified signatureThe official Lightricks adapter is the exception for carrying model_version, not the template — a validator written from it as the reference would have been written from the one file in the population unrepresentative of the rest. Flipping precision is a rebuild, not a runtime switch: preloading is all-or-nothing, so a quantised variant needing different files cannot be fetched on demand into a build-user-owned cache. Setting the variable alone only changes how the existing weights are loaded. Records the startup report verbatim, with the cache count called out as the load-bearing line — 36/37 with the first missing file named is what makes 'preload worked' and 'preload silently did nothing' two different sentences. Retention now documents both call sites and why they are non-fatal. A policy that exists but is never called prevents nothing, which was literally true here until the call sites were added. scheduler gets its own row, noting it needs scheduler_config.json rather than co…3f740e9 -
feat: env-driven config; 9-stage LoRA validator design
Unverified signatureThe validator gains two stages, because seven were not sufficient. An LTX-Video-2B adapter passes stage 5 (diffusion_model. prefix), stage 6 (clean lora_A/lora_B pairs), stage 4 (empty metadata, which our own correct absent-is-not-fatal rule permits), diffusers' only built-in check, and can pass stage 7 as well because its module names match ours. The single thing wrong with it is a 2048 hidden dim where this model is 4096. Stage 6.5 compares per module, not against one expected hidden dim. The transformer carries two streams — video at 4096 and audio at 2048, each with a 4x feed-forward expansion — so a naive 4096 rule would reject the most-downloaded LTX LoRA on the Hub. 'Contains 2048' is not a signal; '2048 at a module that expects 4096' is. Stage 5.5 detects IC-LoRAs from reference_downscale_factor, which otherwise neither error nor work on the plain pipeline. config.py resolves precision, retention, duration and LoRA size bounds from environment variables with loud validation, …5516933 -
docs: fold in gated-repo evidence; add GPU test plan
Unverified signatureThe LTX-2.5-Diffusers gate is open, so several things the plan was reasoning about are now settled by the real configs. model_index.json confirms _diffusers_version 0.40.0.dev0 (the SHA pin is not a guess), text_encoder is Gemma4UnifiedForConditionalGeneration (so CRF provably takes the gemma4 branch, 18), vocoder is LTX2VocoderWithBWE rather than plain LTX2Vocoder, and prompt_enhancer and processor ship as [None, None] — the repo itself declares the enhancer absent, confirming the no-dead-toggle decision. Trap A is now measured rather than inferred: the transformer's 4-shard set and the connectors' 2-shard set are the live ones, so the single 6.344 GB connectors file is the dead one — the opposite of the naive guess. Shipped subset is 33 files, 72.186 GB, 67.23 GiB. latent_upsampler and temporal_latent_upsampler are not in model_index.json and load by subfolder, so model_files.py must model two loading mechanisms; a resolver assuming one silently misses the two components the stage…ca6e2de