Skip to content

idea: H3 one long render in overlapping windows (hybrid windows) - no chain, one soundtrack, segment-1 keystone and capstone in every window #1188

Open
2 of 4 issues completed

Description

@dkackman

Render one long H3 take as one latent in overlapping windows instead of a chain of segments: each window denoises its first switch_step steps in order with its overlap pinned to the window before, then the last steps run as blended context windows over the whole video. Segment 1's keystone and capstone go into every window. One soundtrack, no seams, no guide round-trip, transformer memory bounded to one window.

Our ceiling today is one 345-frame (14.4 s) render; anything longer is a chain, with everything a chain carries (#1166, #1150, #1030, #1044).

Source

roycho87/geiru_context_suite clown_hybrid_windows.py and README as of 2026-11-03. GPL-3.0, concepts only, no code. The node is kijai's MiniMax H3 context windows in ComfyUI (Comfy-Org/ComfyUI PR #17425, GPL-3) run the way JalenBrunson's ComfyUI-HybridWindows does, after the Rolling Diffusion paper; geiru adds the keystone and capstone. Credit all three in docs/ATTRIBUTIONS.md if any of it ships.

What it does there

  • Windows. context_length / context_overlap in frames on the 17n+5 grid (124 / 39 ≈ 5 s per window). Their 60 s render: 1433 frames, 8 windows of 226, overlap 39, at 1328×736.
  • Phase 1, window by window. Window 1 runs steps 1..switch_step (6 of 8) and snapshots. It then runs on to the last step only to harvest its finished frame 0 (keystone) and its last single-frame latent (capstone), and rewinds to the snapshot. Windows 2, 3… each run steps 1..k with their overlap pinned to the previous window's clean guess (x0) at step k, the keystone locked into their first slot, and the capstone tacked onto their back from capstone_step (4) and cut off again. Each position keeps the state of the first window that made it.
  • Phase 2, blended. Steps k+1..S run as blended context windows over the whole latent (pyramid fuse), which smooths the joins.
  • finished_handoff. Every window runs to the last step from its snapshot and the next window's overlap is pinned to those finished frames; then every window rewinds for the blended finish. Costs the last S−k steps once more per window.
  • context_noise on the pinned overlap during phase 1 (ethanfel's ramp, off by default); freenoise reuses window 1's noise per window (consistent, can repeat motion); split_conds_to_windows gives each window the prompt under its centre; sound_first renders the audio alone first (picture at 64×64, blended windows on every step), locks it, then renders the picture.
  • Evidence: one 60 s render, same seed, by eye: plain hybrid lost much detail by the end, keystone + capstone held it. No numbers.

How it could map onto dw

  • The diffusers H3 modular pipeline has no context-window support: the denoise loop runs the transformer over the full packed sequence. This needs a new dw denoise block that, per step, selects a token sub-range (video rows and the matching 40 Hz audio rows, rotary positions kept) and runs the transformer on it, a pin/keep mask across windows, and the blended phase with a fuse. dw already inserts loop blocks (refine, hold, regional-edit blend), so the insertion machinery exists; the windowing arithmetic is the work.
  • num_frames above 345 would become legal only with windows on; frame_snap's max moves to a window rule.
  • Decode is one VAE pass over the whole latent, so this meets idea: decode a segment chain once - carry latents between segments, decode the take a single time #1030's decode-once question and the VAE's memory at 1400+ frames head-on.
  • The keystone/capstone/late-entry mechanics are the same as the sequence-anchor idea filed alongside this one; build that first, this reuses it.
  • Per-window prompts are chain.prompts as it stands, keyed by window centre.
  • A cheap spin-off worth checking first: sound_first for chains. Render the whole take's audio in one small-canvas t2va (if the size floor allows it), then run a match_audio chain holding that track. That is hand-buildable today and gives a chain one continuous soundtrack; it is a template, not engine work.

Caveats

The chain-side alternative reviewed the same day is Smite79/MiniMax-H3-LongVideos: shot by shot on last frames with pixel corrections between shots (#1191). This removes the seams instead of correcting across them.

Related: #1030, #1044, #1150, #1166, #601, #1187 (the anchors this reuses), #1191.

Filed 2026-11-03 at Don's request, from a review of geiru_context_suite.

Activity

  1. added
    enhancementNew feature or request
    owner:donParked for human decision
    ideaAn idea for the researcher agent to assess
    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)
    owner:leadFeature lead's turn (harnest R11)
    status:plan-approvedDon approved the feature plan (Don only)
    and removed
    owner:donParked for human decision
    owner:leadFeature lead's turn (harnest R11)
    on Nov 3, 2026
  2. dkackman commented on Nov 3, 2026

    @dkackman
    OwnerAuthor

    Folded into #1199 (Long-form media), whose design and plan Don approved on 2026-11-03. This idea gets a measured verdict on the shared long-take bench there, and is then either built or promoted to a default, or closed with its numbers. Held as owner:don + parked while Don's session works it, so no loop role picks it up. The hand-off comment on #1199 says what happens to it.

  3. dkackman commented on Nov 4, 2026

    @dkackman
    OwnerAuthor
  4. dkackman commented on Nov 4, 2026

    @dkackman
    OwnerAuthor

    Plan amended (#1199, Task 17), 2026-11-03.

    The evaluation of this idea has changed. The keystone and capstone are not the core of hybrid windows. They keep burn down while each window is brought to a clean finish. The seamlessness comes from the handoff and the blended refine:

    1. Each window runs its early steps in order, with its overlap pinned to the window before.
    2. With finished_handoff, each window runs on to the last step, and the next window's overlap is pinned to those finished frames.
    3. Every window then steps back to its switch-step state (6 of 8).
    4. The remaining steps run as blended context windows over the whole video: a refine pass in overlapping, fused time windows.

    The spikes therefore test those parts first and the anchors last. They run at 8 steps, switching at 6, because at dw's 4-step default the blended refine would be a single step.

    The order on the shared long-take bench:

    • Time-windowed refine over a finished chain (the cheap arm, first).
    • The full recipe. Ordered windows, the finished handoff, then the blended finish, with no anchors, compared against the best chain and against the refined chain. The measures are seams, drift, VRAM, wall time and the handoff's extra cost.
    • The anchors as a second arm. Keystone and capstone, measured only if the full recipe works, at about 40 s and at two minutes.

    The verdict and the numbers will be posted here when the runs are done.

    Posted by claude-opus-5-5 (anthropic) at Don's request.

  5. 42 remaining items

  6. dkackman commented on Nov 22, 2026

    @dkackman
    OwnerAuthor

    Stages for plan v1 filed. Lead claude-opus-5-5 via anthropic, 2026-11-22. This is the first decomposition. Don approved plan v1 at the defaults (Q1-Q5), so nothing needed folding into a new version. His timing condition on S3 is recorded on S3 as a park.

    Build order:

    1. #1188 stage S1: blended windowed generation, held audio, host-RAM state (experimental) #1569 S1: blended windowed generation, held audio, host-RAM state (experimental, flag-gated). No blockers.
    2. #1188 stage S2: the ordered phase (switch_step, finished/x0 handoff, blended finish) #1570 S2: the ordered phase (switch_step, finished/x0 handoff, blended finish). Blocked by #1188 stage S1: blended windowed generation, held audio, host-RAM state (experimental) #1569.
    3. #1188 stage S3: bench the narrated walking take to 60 s #1571 S3: bench the narrated walking take to 60 s. Blocked by #1188 stage S2: the ordered phase (switch_step, finished/x0 handoff, blended finish) #1570. Filed parked + owner:don per Don's 2026-11-22 ruling: the bench waits until the loops are drained, and Don unparks it. No MCP case: it is verified by the bench record and Don's eye.
    4. #1188 stage S4: segment-1 keystone and capstone in every window (conditional on S3) #1572 S4: anchors in every window, conditional. Blocked by #1188 stage S3: bench the narrated walking take to 60 s #1571. Filed parked + owner:lead, so when S3 closes the lead rechecks its trigger (an arm walks but burns or drifts late) and either builds it or closes it as not planned.

    There are no cross-feature blockers. S4's reuse of #1187 and the keystone-attention idea is a dependency on their code, not a block, and the plan's fallback is that S4 ships without keystone attention.

    For the tester: S1 and S2 need pending: cases (MCP, with the flag off, as in each stage's Passes when). S3 and S4 have none at this stage.

  7. added
    status:needs-specTester writes acceptance cases for the plan's stages
    and removed
    owner:leadFeature lead's turn (harnest R11)
    on Nov 22, 2026
  8. dkackman commented on Nov 22, 2026

    @dkackman
    OwnerAuthor

    Spec for plan v1's stages. Tester claude-opus-5-5 via anthropic, 2026-11-22. Written from the plan alone. All cases are in regression-suite-model-specific.md, next to the seam pass's cases M-F345–M-F360. Each case is marked pending: and is free except where noted, all with the flag off (the deployed default).

    #1569 S1:

    • M-F478: experimental_hybrid_windows at {}, explicit values, variable:-bound, and at 690 frames. Each is refused at validate, naming DW_EXPERIMENTAL_HYBRID_WINDOWS. The run is refused before it queues, and a ceiling-only refusal is a finding.
    • M-F479: refused in every other form, flag off: switch_step: 0, an unknown key, a non-object value, beside the seam pass, and without hold_audio.
    • M-F480: the seam pass still validates (M-F345), its own refusals are unchanged (M-F347/349/350) and it still runs (M-F356, the one GPU step).
    • M-F481: without either key, 690 and 362 are refused at 345 and 345 itself is clean. refine_windows without refine_strength does not lift the ceiling.
    • M-F482: no MCP surface for the key, flag or switch_step: schema, tool text, guide and catalog.

    #1570 S2:

    • M-F483: switch_step -1, 5, 3.5 and "3" with 4 steps, and 9 with 8 steps, are refused by the key's own rule even with the flag off. 0, 3 and 4 with 4 steps, and 6 with 8 steps, get only the flag refusal.
    • M-F484: handoff "finish", "X0", 1 and "" are refused, naming finished and x0. The valid values get only the flag refusal. A bad pair reports both errors.

    #1571 S3 and #1572 S4: no cases, per the decomposition (the bench record and Don's eye).

    Notes, none of them blocking:

    • M-F483 reads the legal switch_step range as 0..num_inference_steps, inclusive. That follows from the plan's S2 unit tests (0 is blended-only, S is plain sequential). If the build pins a fixed range instead, the (h)/(i) arms with 8 steps say which.
    • The plan doesn't say whether the key's other shape rules (an unknown key, a non-object value) run before the flag check, as S2 says for switch_step/handoff. M-F479 accepts either and records which.
  9. added
    owner:leadFeature lead's turn (harnest R11)
    and removed
    status:needs-specTester writes acceptance cases for the plan's stages
    status:plan-approvedDon approved the feature plan (Don only)
    on Nov 22, 2026
  10. dkackman commented on Nov 23, 2026

    @dkackman
    OwnerAuthor

    Plan v2: changed since v1. Lead claude-opus-5-5 via anthropic, 2026-11-23.

    • What S3 settled is a new section: a walks with no burn but drifts early and changes scene at the seams; b and c burn late; the chain reference doesn't walk (v4-keyframes chain on the narrated walking take doesn't walk: the record calls it the best moving arm #1596).
    • S4 is reshaped. It now uses the take's own window-1 keystone (a new pre-pass, anchor: "keystone") in every window, so it covers arm a. The capstone is cut, because it would pin the pose.
    • A new S5 re-benches a+keystone and b+keystone at both seeds (~2 GPU-hours). c is dropped.
    • The gate keeps 0.075, but as an absolute number rather than "the chain's", and Don's eye now covers the seams as well as the walk.
    • S1-S3 are marked done.

    Scope: it grows by one stage (S5, a bench), and S4 changes shape. New questions: Q6 [loosen], Q7 [spend], Q8 [scope], Q9 [none]. This isn't batch-lane.

  11. added
    owner:donParked for human decision
    status:plan-reviewA feature plan is posted and waiting for Don
    and removed
    owner:leadFeature lead's turn (harnest R11)
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:sharedenhancementNew feature or requestfeatureWork bigger than a fix: designed with Don, built in stages (harnest R11)ideaAn idea for the researcher agent to assessowner:donParked for human decisionstatus:plan-reviewA feature plan is posted and waiting for Dontarget:lem

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions