Spaces:
Running on Zero
Running on Zero
Commit History
19 days ago
-
A LoRA load stuck 35 s is probed from the main process (pid alive, thread states and kernel waits, container OOM kills, py-spy dump): the three hangs at 18:07-18:12 left stack files with only their header, so the worker was dead or frozen whole, which its own watchers cannot report; fatal signals in the load now go to its file too
Alexander +1: Claude Opus 5.5Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>93d5d0b
20 days ago
-
Stuck LoRA loads leave their stacks in a file (faulthandler and a Python watcher), printed by the main process once the GPU call fails: the stderr dump never reached the log after b21f6a7
Alexander +1: Claude Opus 5.5Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>e679bc8 -
LoRA loads in the GPU fork: skip the detach-per-parameter state_dict diffusers never reads, preload lazy imports, arm the stack dump first
Alexander +1: Claude Opus 5.5Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>b21f6a7 -
Dump every thread's stack when a LoRA load runs past 30 s in the GPU worker
Alexander +1: Claude Opus 5.5Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>63b3706 -
Add Pika's H3 Flex 4-step turbo LoRA to the catalog, full and lite
Alexander +1: Claude Opus 5.5Pika-Labs/Pika-H3-Flex-Turbo-LoRA, the FL2VA files (text and first/last-frame video): Flex fused with lightx2v's 4-step v1.2 turbo into one plain LoRA. Strength 1.0, exactly 4 steps. The full file is 3.9 GB and is booked a load time like the Regenerate refiner; the rank-32 lite file is 310 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>54d496f
21 days ago
-
Name each rack step on the progress bar, mute training's capture tracebacks, and rack a further-trained LoRA in its parent's slot
Alexander +1: Claude Opus 5.5A generation hung after one adapter loaded and the log could not say whether the next load or the activation never returned: the bar now names the adapter being loaded, the activation and the fold. Training stopped the pipeline on purpose every step and the modular pipeline logged each stop as a traceback, some 100 lines a step. And a LoRA trained further now replaces the file it grew from in the rack instead of stacking beside it at weight 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>a645634
23 days ago
-
Train an identity LoRA from stills, on the Space's own GPU
Alexander +1: Claude Opus 5.5A Train LoRA tab: 4-40 pictures and one caption with a made-up name become a LoRA file in a few ~85 s ZeroGPU calls. Each picture trains as a five-frame still - two latent frames, ~600 rows - and the transformer's inputs for every step come from the holding refine tree run to its first transformer call, so the layout and timesteps are the ones generation builds. Flow-matching loss in the scheduler's convention (target x0 - noise), silence held for the soundtrack, AdamW state carried between calls, a length refusal answered by asking for less. The file loads through diffusers' own LoRA loader, and "Add to rack" puts it in the first free slot as a `file:` source, which the rack now reads from the Space's own outputs and nowhere else. A file trained earlier can be handed back in the same tab. The probe that measured the step cost is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>60cd987 -
Keep LoRA credentials out of logs, names and written files
Alexander +1: Claude Opus 5.5A Custom slot's URL carried its CivitAI key in `token=`, and the URL was the slot's label and the source of its adapter name: the key went into the Space log on every load, into the report, and into every context and draft file. The label is now the URL with credentials masked, the adapter name a hash of the URL without them, files store the URL with them removed, and a CivitAI link restored from a file borrows the Space's own key. Fetch errors are masked before they are printed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>2342bd0 -
Encode the Regenerate silence under native attention
Alexander +1: Claude Opus 5.5The audio VAE encoder has a causal attention block that reads the global attention backend, which the transformer's set_attention_backend had set to cuDNN - no float32 kernel, so the first Regenerate refine died with "No available kernel" before its first step. The decoder never reaches attention. The refiner loaded in 1.1 s on that run; it is now booked at the ordinary adapter's 5 s instead of the 15 s guess. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>057a3b9 -
Refine a draft with NVIDIA's Open-H3-Regenerate-2K recipe
Alexander +1: Claude Opus 5.5A new ladder, "Regenerate · 3 steps (NVIDIA)", runs the refine its refiner was trained for: Euler on [0.909375, 6/7, 2/3, 0], the refiner LoRA and LightX2V turbo v1.2 in place of any turbo in the rack, no keyframe, and encoded silence held clean where the soundtrack goes; the draft's own soundtrack is kept. LMS Sharp is left out - its curve AdaLN branches are modules of their own. It runs from a draft file only, in a pipeline tree of its own so the refine every two-pass request uses is unchanged. The 7.9 GB float32 refiner is cast to bfloat16 in the main process, the booking prices each adapter's own load, and the worker now logs how long a load took, to correct the 15 s guess by. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>010f7b2 -
Fold the rack before a stand-alone refine
Alexander +1: Claude Opus 5.5A two-pass request keeps the turbo adapter unfused because the draft runs it at another strength. A refine from a draft file has no draft: nothing re-weights the rack, so it is folded on the spot at the refine's weights, and its steps no longer carry the ~15% per adapter that unfused LoRAs add. The refine booking drops the per-step adapter cost and keeps the one-offs; a draft with the same rack afterwards unfolds it, as it already did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>ae3b2b8
30 days ago
-
Book a LoRA at what it was measured to cost, and let a URL be fetched ahead
Alexander +1: Claude Opus 5.5At 8 + 15 seconds apiece a second LoRA pushed a turbo request past the per-request ZeroGPU ceiling on xlarge, though the log shows a load at 4-5s and a fold inside a 1s rack. The booking now charges 5 + 2. Hub paths copied with `blob/main/` or a `%20` in the file name resolve to the file again instead of a 404. A Custom URL slot gets a Prepare button that downloads the file off booked time, and the report says how long the fetch took. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>c66e156
-
Choose the two axes together, and say when the LoRA and the ladder disagree
Alexander +1: Claude Opus 5 (1M context)Multiplying each axis and rounding it on its own looked like the whole job and was not. A 416x736 canvas at 1.5x puts both axes exactly halfway between grid cells - 19.5 and 34.5 - and independent rounding sent one up and the other down, landing on 640x1088: 1.538 by one axis against 1.478 by the other. Two things break at once there. The resizer is handed a single `scale` for a resample that is not uniform, which is the mismatch that prints a lattice; and the picture comes out stretched, 0.5652 in and 0.5882 out, which nothing in the UI was ever going to admit to. `upscaled_canvas` now picks the pair of grid sizes whose two axis ratios agree best, with the area error settling ties. 1.5x goes from 4.0% apart to 1.1%, 2.5x from 2.4% to 0.7%, and whole factors stay exact - they were never the problem. 1.1% is the floor the 32 grid forces on a fractional factor, so the readout's skew warning moves from 1% to 2% rather than complaining about something that cannot be fixed. The other half…f1b4c7c -
Spend the unaccelerated steps where the motion is decided
Alexander +1: Claude Opus 5 (1M context)The reference workflow keeps its turbo LoRA out of the first pass - `LoraLoaderModelOnly#221` sits bypassed - and runs fifteen full steps at 0.3 MP before handing the latent to an eight-step turbo refine at 1.2 MP. This Space had it the other way round: the rack ran at full weight in both passes, so the pass that starts from pure noise, which is the one that decides what moves, was always crossing the top of the schedule in a distilled adapter's single learned jump into its averaged, low-motion result. Six steps by default made that jump 71% of the trajectory. `DRAFT_LORA_SCALE` (0) is the mirror of `REFINE_LORA_SCALE` (1), and between them the second pass stops being only a resolution feature. Priced on this Space's own calibration at 1344x768 and 125 frames: an unaccelerated single pass is 28 steps and about 480s of quota, while an unaccelerated 672x384 draft of 15 steps plus an 8-step turbo refine at that same target is about 224s. The two-pass route is how an unrushed first pass b…103f09f
-
Leave the distilled adapters out of the refine pass, not the whole rack
Alexander +1: Claude Opus 5 (1M context)Your reading looks right, and the theory backs it. A turbo LoRA is a distillation of the whole trajectory: it is trained to arrive at a finished frame from pure noise inside its four steps. A refine starts halfway along that trajectory, and the shortcut it learned still aims at the endpoint it was trained for, so it overshoots - which is over-sharpening, and it is why the character of the artefact tracked the adapter's weight when you moved it to 0.7 rather than the artefact going away. Only the distilled adapters are affected. The catalog already knows which ones those are - `suggested_steps` is exactly the mark of an adapter trained for a step count - so the spec carries it to the worker and the second pass re-weights those and leaves everything else at the weight the request asked for. A style LoRA has nothing to do with the trajectory and runs at full weight in both passes; a custom URL is never assumed to be distilled. This costs the fold: a rack merged into the checkpoint canno…35d2dfb
-
Repoint the two Jojocodex slots, whose files were renamed out from under us
Alexander +1: Claude Opus 5 (1M context)Spatial Physics and Wushu Action had been 404ing on every request since the 19th - 44 times in the log - because both repositories reuploaded their weights under new names. The slot failed soft, so the rack kept running and nobody saw anything except a line in the run report. `_pruned` in the new filenames is the fix, not the base: `convert_h3_lora.py` strips the 100 AdaLN adapters that targeted the pruned model's `adaln_proj` input dim of 8, which is exactly the key that raised the size mismatch these entries were dodging in the first place. The headers confirm it - 416 tensors at the same shapes as the KungFu file that loads cleanly today. Said so in the comment above the catalog, since the naming reads backwards. Wushu Action goes to `v5_3000`, the successor of the `v4_2000` the entry already pointed at, rather than the unrelated KungFu LoRA sharing the repo. Default weights follow what both upstream READMEs ask for - 0.3-0.5 for the physics LoRA, and 0.5 over 0.3 for the pair - …5c06283
-
Fold the LoRA rack once it settles, and book GPU time from measurements
Alexander +1: Claude Opus 5 (1M context)Unfused adapters cost a pair of matmuls on every linear layer of every step, which is what buys the free weight slider. So the rack now stays unfused while it is being tuned and is folded into the bf16 weights after two identical requests in a row; a rack that is already folded costs nothing at all, and changing a slot or a weight unfolds it and starts the cycle over. The marker lives on the transformer, so a recycled ZeroGPU worker re-derives it instead of believing a fold that its re-forked weights do not carry. The booking model was inherited from coefficients fitted against an AOT-compiled transformer, which this Space does not build - it under-booked roughly threefold, and an over-run request is killed. The constants are now eager-mode, the per-step adapter cost and the one-off load and fold are accounted for, and a multiplier is learned from the denoise time each request actually takes, timed inside the worker around the pipeline call alone. Requests past the booking ceiling say…005fad1 -
MiniMax-H3 video+audio Space with a five-slot LoRA rack
Alexander +1: Claude Opus 5 (1M context)The denoising half of MiniMax-H3 (transformer + both VAEs, ~77 GB) runs here on ZeroGPU; the 62 GiB Qwen3-VL conditioner is called next door over the gradio API with the visitor's x-ip-token, so their quota pays for the encode. - h3_engine.py: the t2va/fl2va blocks with the text-encoder step cut out, the conditioner client, the booked-time denoise and the mux. - lora_stack.py: a catalog of published H3 LoRAs plus HF/CivitAI/direct URLs, loaded as PEFT adapters so five slots stack and their weights change for free. - app.py: the studio UI - keyframes, prompt, canvas table, sampling, LoRA rack. No prompt filter of any kind: the only rejected request is an empty prompt, which the model itself does not accept. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>5a4f2a0