Spaces:
Paused
Paused
Commit History
-
Add in-process FastVideo executor (no worker spawn) for ZeroGPU
inproc.py: InProcessExecutor builds the pipeline in-process (build_pipeline) and calls pipeline.forward directly, removing the spawned worker whose CUDA init bypasses ZeroGPU's spaces hijack. Validated locally: in-process, AOTI+text-cache work, 2.9s warm. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>9dbbb30 -
Speed: text-embed cache + lighter 384x640 profile + PyAV (VAE compile opt-in)
- text_cache.py: memoize Gemma embeddings across same-prompt rollout segments (skips the ~25GB text encoder per segment) — verified [textcache] hits. - Lighter default profile 384x640x65 (~half the pixels of 512x768) for a better realtime ratio; AOTI .pt2 reprebaked for the new shape (key vx1x2160x4096) and uploaded to the bucket. - PyAV installed (removes the CRF-conditioning warnings). - VAE+text-encoder torch.compile gated behind DREAMVERSE_COMPILE_VAE=1 (OFF by default): it's JIT (~180s first-call across VAE decode+encode paths) for ~0.5s warm gain, and recompiles on ZeroGPU cold starts — not worth breaking the clean/AOT property. AOTI-ing the VAE is the ZeroGPU-clean follow-up. Result: warm ~5.7s -> ~4.3s/segment, all ZeroGPU-clean (no runtime compile). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>2eeb78f -
AOTI ZeroGPU-clean: pull prebaked bf16 .pt2 from HF bucket (aokit), no runtime compile
aoti_dit resolves the block .pt2 by shape: local -> HF bucket -> compile (fallback). Prebaked .pt2 loads via aokit fork-safe LazyAOTIModel, NO compile. First segment 73.6s -> 27.3s, numerics identical. Default bf16+AOTI is now ZeroGPU-clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>eb3c6d7 -
Update NVFP4 notes: flashinfer AOT-dir + HF bucket, speed/memory table
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>3a307ee -
NVFP4: use flashinfer AOT dir + prebaked .so from HF bucket (no JIT, relocatable)
The JIT-cache dir isn't relocatable (ninja recompiles, ~80s). flashinfer's AOT path is: build_and_load short-circuits to load(aot_path) when <FLASHINFER_AOT_DIR> /<op>/<op>.so exists. So _setup_nvfp4_env pulls the two prebaked sm_120 FP4 .so from the HF bucket (multimodalart/dreamverse-flashinfer-cache) and points FLASHINFER_AOT_DIR at them -> 0.2s load, no ninja/nvcc/JIT. Verified e2e (0 JIT lines, ~5s/segment). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>5f7966f -
NVFP4 (FP4 DiT) opt-in path, ZeroGPU-clean via prebaked flashinfer kernels
Enable with DREAMVERSE_NVFP4=1: quantizes the LTX-2 DiT to NVFP4 (flashinfer) on sm_120. Verified: ~3.7s/segment, and ZeroGPU-clean — the FP4 kernels are PREBAKED so the runtime never JITs (0 JIT lines confirmed). aoti_dit auto-skips in NVFP4 mode (AOTInductor can't C++-compile the FP4 op; torch.export traces it but inductor codegen fails — so NVFP4-eager and AOTI-bf16 are alternatives, ~equal speed, both AOT/clean). Default app unchanged (bf16 + AOTI). _setup_nvfp4_env restores the kernel cache from a baked dir if present (gitignored — bake via LFS or regenerate on the host; see NVFP4_ZEROGPU.md). Full toolchain recipe in NVFP4_ZEROGPU.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>5de7ced
-
Wire AOTInductor compilation of the LTX-2 DiT (aokit) into the live pipeline
aoti_dit.py: hooks LTXModel._process_transformer_blocks and, on the first real forward, AOTI-compiles ONE audio+video block (weight-less, regional) and runs all 48 blocks through that single optimized graph, each bound to its own weights — the ahead-of-time replacement for torch.compile (no JIT). Installed at module scope so the hook is live in FastVideo's spawned worker; eager fallback on any failure. Inductor cache pinned to the overlay disk. Verified end-to-end: full AV block exports at the real shape (video 3456x4096, audio 68x2048), compiles in ~60s once, then generation drops from ~8.5s to ~3.8s/segment (~5.8s end-to-end incl. fMP4) — ~2.2x faster DiT. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>ece563b -
Fix edit steering: single stream_start + extendable target
Edits (rewrite_seed_prompts) now update the prompt AND extend the rolling target so the rollout keeps going and applies the new prompt to the next segment; stream_start is emitted once (no player reset on edit). Fixes edits doing nothing after the rollout hit the segment cap. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>b269983 -
Add DREAMVERSE_MOCK mode for GPU-less control-plane testing
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1b1e297 -
Continuous auto-rollout + rewrite steering in /ws (DreamVerse streaming mode)
The streaming product build drives a continuous rollout (keeps generating segments that flow into the MSE player) and steers via rewrite_seed_prompts, not append_prompt. Rewrite the /ws handler accordingly: a background rollout loop generates continuation segments up to a cap; rewrite_seed_prompts updates the active prompt + clears the rewrite spinner (seed_prompts_updated/ rewrite_seed_prompts_complete). Serialized sends. Fixes the player stalling after segment 1 and edit prompts hanging. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>242ae0d -
Serve the REAL DreamVerse frontend + /ws streaming backend on gradio.Server
frontend/: DreamVerse's actual Next.js UI, static-exported (streaming mode). app.py: serves it (index + /_next + assets), implements the real /ws protocol (session_init/append_prompt -> queue/gpu/stream/segment events + binary fMP4), runs real LTX-2 with cross-segment continuation (tail-frame conditioning, head-trim), fMP4 muxing ported from av_streaming.py, GPU work in @spaces.GPU. Aux endpoints: /healthz /readyz /models /curated-presets /prompt-system-config. Boot verified: serves the real Dreamverse page + assets; endpoints respond. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>f227483
-
gradio.Server demo: real LTX-2 t2v backend + DreamVerse UI (ZeroGPU-shaped)
app.py: gradio.Server serving index.html at "/" and @app.api("/generate") running the real FastVideo LTX-2 pipeline behind @spaces.GPU (queued, single-GPU safe). Validated end-to-end on the RTX 6000: model load ~26s cached, generation ~9s for 512x768x65f with audio; verified via gradio_client. Written in the ZeroGPU idiom (import spaces first, GPU-only work in @spaces.GPU, generator cached, lazy load for spawn-safety). ZEROGPU_NOTES.md documents the port path (in-process pipeline + aokit weight-less DiT blocks) and the dev-mode deploy (restart, not rebuild; ephemeral storage). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>7cca9ce -
Add DreamVerse-styled UI (index.html) for gradio.Server demo
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>3cc6f42 -
Replace stand-in with REAL LTX-2 DiT AOT artifacts (cu128 + cu130)
Compile the actual FastVideo LTX2Transformer3DModel block (48 layers, inner_dim 4096) with the real 37.8GB LTX2-Distilled-Diffusers weights (3510 tensors, 0 missing) through aokit's AOT export path. Capture real block-0 inputs (x=(1,256,4096)) during a real forward, wrap the real block behind a flat-tensor export boundary, export -> AOTInductor -> weight-less package.pt2. Verified (cosine 0.99997, rel-err 1.9%). Ships two artifacts as requested: one built under torch 2.11+cu128 (CUDA 12.8) and one under torch 2.11+cu130 (CUDA 13.0). FA4 skipped (B200-only); TORCH_SDPA used on sm_120. Removes the prior stand-in model + its pt2. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>cbd74cc -
Add DreamVerse->aokit AOT compilation adapter + compiled pt2
Port DreamVerse's JIT torch.compile + startup-warmup strategy to aokit's ahead-of-time export flow. Regional compilation of the LTX-2-style DiT transformer block (capture -> torch.export -> AOTInductor -> weightless package.pt2), loaded onto all blocks and verified (cosine 0.999994). Compiled on RTX PRO 6000 Blackwell (sm_120); FA4 skipped (B200-only), SDPA used instead. Ships dist/dreamverse_aokit_pt2.zip (pt2 + digest). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>4bf9cd8
-
Rename app.ph to app.py
Verified signature188907d
-
Create app.ph
Verified signature0b98b38 -
initial commit
Verified signatureb3cf951