blender-motion-state-inspection
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
Port MovieRoll's streaming long-video logic out of this repository into another code base whose structure is not known in advance — a different DiT, a different trainer, a different VAE. Holds the eleven portable units (streaming core, FBCA attention, HieraKV, KV recompute, context noise, AnnealCFG, rolling inference, WinTF training, rolling ODE init, CuLT-DMD, PS-VAE) with their invariants, a survey procedure for reading an unfamiliar target and mapping the units onto it, and a verification regime built around training/inference equivalence rather than comparing outputs with this repository. Use it whenever someone wants to move MovieRoll's rolling-window generation, bounded KV caching, context noise, image-to-video or few-step distillation into another model or repository, asks which parts are worth taking or what the minimum subset is, or needs to decide how deep a port should go.
A Chinese version of this document is SKILL_CN.md; the references/ files are English only.
This repository is the source, and it is read-only for the purposes of a port. The target can be anything: another DiT, another framework, another training stack. Because the target is unknown, the work starts by reading it, not by copying files.
| File | What it holds |
|---|---|
references/modules.md | the eleven portable units: what each does, where it lives here, what the host must provide, the invariants, and — in "Porting a single unit" — the capability-vs-semantics table and the scenarios for taking just one or two; image-to-video is covered under P7, P8 and the ACS variant of P10 |
references/survey.md | the questions to answer about an unfamiliar target, how to find the answers, and what each answer changes |
references/verification.md | the gates, built around training/inference equivalence |
Everything else is detail around this:
The model is one function used in two regimes. In training the clean history arrives as input tokens; at inference it lives in a KV cache. Every token must see the same set of KV entries and the same RoPE relative distances either way.
Break it and nothing raises. The shapes fit, the loss falls, the samples look fine, and the model has learned a
distribution that deployment does not reproduce. This is why references/verification.md makes equivalence the
primary gate and treats "compare with MovieRoll's output" as meaningless — the target has different weights, so
there is no reference video to compare against.
The exception worth knowing up front: an inference-only port cannot run that gate, because it has only one regime. There, degenerate-configuration equivalence and an explicit-mask reference take its place.
Work through references/survey.md read-only. Do not write into the target until the plan is agreed, and never
write into this repository. Record the answers as question → answer → consequence and show them to the user.
Start with that file's Question 0 — will the model be retrained? More follows from it than from anything else: an inference-only port puts the training-side units out of reach, makes the G2 equivalence gate impossible to run, and caps what P7 can achieve on its own.
The survey classifies the host, and the class decides the size of the job:
Most units port on their own. Do not port everything by default, and do not widen the scope because the
dependency graph draws an arrow — that graph shows what reinforces what, not what must travel together. The
table and the scenarios in references/modules.md are what to use here.
When the user names a unit or two, follow the four steps at the end of that file's "Porting a single unit" section:
When the user describes a goal instead, use the scenarios table: an unbounded cache is P3 (+P4), drift is P5 alone, mediocre multi-step sampling is P6, decode cost is P11, "is this worth it" is the P2 masked fallback plus P7 as a measurement, "I already distil; make long rollouts hold up" is P10 started from the host's own few-step model (it still needs P7; this repository has no block-wise CuLT-DMD). Image-to-video is not a unit of its own: it is P7's i2v layout, trained by P8's i2v draw, plus ACS under P10 only when an i2v model is distilled.
Record the selection and the reasoning. A one-unit port is a legitimate, finished piece of work — it does not have to grow into the full stack.
For each unit: read its section in references/modules.md, find the host's insertion points from the survey,
write the code in the host's own idiom, keep it behind a flag (G0), then run that unit's gates before starting
the next one. A unit that has not passed its gates is not done, and stacking a second unit on top of an
unverified first one makes the failure impossible to localise.
With a single-unit port the order question disappears, but the gates do not: run that unit's row from the gate
table in references/verification.md, which lists a reduced set for units ported alone.
Write new code in its own directory or module inside the target rather than scattering edits, so the port stays reviewable and reversible.
Follow references/verification.md. Build the G2 equivalence harness early — before the units that depend on
it — because it is the only check that catches the failure mode that matters.
Keep a decisions log and a progress table outside this repository: in a scratch directory of your own until the plan is agreed, then in the target next to the ported code if the user wants it there. Record which units are selected, which gates passed with what numbers, what is still open, and every assumption you had to make because the survey could not answer a question. An unrecorded assumption becomes a silent numerical bug several units later.
references/modules.md and the code disagree, the
code is right and the document should be corrected.- [ ] 1. Survey the target (references/survey.md), record answers, classify the host
- [ ] 2. Agree the unit subset: named units -> check capabilities, add nothing extra without saying why;
a stated goal -> the scenarios table
- [ ] 3. Build the G2 equivalence harness if the subset includes a unit that needs it
- [ ] 4. For each unit in dependency order: read its section, insert behind a flag, run its gates
- [ ] 5. Record gates, numbers, open questions and assumptions
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
ANanthropics/skills203k近 7 天新增 3,265 个 star
HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,608 个 star
SHShubhamsaboo/awesome-llm-apps147k近 7 天新增 907 个 star
GAgarrytan/gstack143k近 7 天新增 598 个 star