Fix Interactive Drive Scene Switching and Conditioning Reset#277
Merged
Conversation
808387f to
5bb39eb
Compare
Collaborator
Author
|
/ok to test 5bb39eb |
wlewNV
approved these changes
Jun 3, 2026
a04f59e to
585b5c6
Compare
Collaborator
Author
|
/ok to test 585b5c6 |
585b5c6 to
df440b0
Compare
Collaborator
Author
|
/ok to test df440b0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Interactive Drive Scene Switching and Conditioning Reset
Summary
Fixes intermittent interactive-drive scene/variant switch failures where a newly selected variant, such as
snow, could race with old queued work or inherit stale world-model conditioning from a previous scene.This PR makes scene switching generation-safe and conditioning-safe:
clipgt-...-snow.usdz, to the correct variant/prompt even when the requested variant is stilldefault.Root Cause
There were two related failure modes.
First, scene selection could race with model warmup and queued work. A stale default scene load or render command could still run after the user selected a newer variant. This made backend logs show a default/no-snow scene and prompt even after the UI printed a snow switch.
Second, native FP8 DiT can release the full BF16 PyTorch network after preparing its optimized FP8 weight snapshot. The weight snapshot is prompt-independent, but cross-attention K/V caches are prompt-dependent. After release, the lightweight shape/cache helper was cloning old cache templates instead of rebuilding cross-attention K/V from the new text context. That allowed visual conditioning, such as snow, to carry across scene switches even when logs showed the new prompt was handed to the backend.
Changes
load_sceneandrender_chunkcalls inChunkPipeline.LocalVideoModelAdapter.load_scene()reset scene conditioning before binding the new scene.Validation
Added regression coverage for: