FastVideo icon indicating copy to clipboard operation
FastVideo copied to clipboard

[feat] Add Waypoint-1-Small interactive world model support

Open Satvikmatta18 opened this issue 10 months ago โ€ข 17 comments

Summary

Adds support for Overworld's Waypoint-1-Small, a 2.3B parameter interactive world model for real-time video generation conditioned on text and controller inputs.

Changes

  • Transformer: fastvideo/models/dits/waypoint_transformer.py - Full DiT implementation with causal attention, GQA, and control conditioning
  • Config: fastvideo/configs/models/dits/waypoint_transformer.py - Architecture config
  • Pipeline: fastvideo/pipelines/basic/waypoint/ - Streaming pipeline with CtrlInput support
  • Pipeline Config: fastvideo/configs/pipelines/waypoint.py - Pipeline configuration
  • Sampling: fastvideo/configs/sample/waypoint.py - Default sampling parameters
  • Tests: Parity tests for transformer and pipeline smoke tests
  • Example: examples/inference/basic/basic_waypoint_streaming.py
  • Docs: Pipeline README

Testing

  • All transformer parity tests pass (weight loading + forward pass)
  • Pipeline smoke tests pass

References

  • Model: https://huggingface.co/Overworld/Waypoint-1-Small
  • Official repo: https://github.com/Overworldai/world_engine

Satvikmatta18 avatar Feb 03 '26 00:02 Satvikmatta18

Summary of Changes

Hello @Satvikmatta18, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the integration of Overworld's Waypoint-1-Small, an interactive world model, into the FastVideo framework. The primary goal is to enable real-time video generation that responds dynamically to both text prompts and user-controlled inputs like mouse movements and keyboard presses. This significantly expands the framework's capabilities by adding support for highly interactive and controllable video synthesis, moving beyond static text-to-video generation.

Highlights

  • Waypoint-1-Small Model Integration: Added comprehensive support for Overworld's Waypoint-1-Small, a 2.3B parameter interactive world model, enabling real-time video generation conditioned on text and controller inputs.
  • New Transformer Implementation: Introduced WaypointWorldModel with a 22-layer DiT architecture featuring causal attention, Grouped Query Attention (GQA), and dedicated control conditioning via MLP fusion.
  • Streaming Inference Pipeline: Developed a new streaming pipeline (WaypointPipeline) that supports interactive generation, allowing users to provide real-time mouse, keyboard, and scroll inputs to influence video output.
  • Configuration and Example Usage: Included detailed configuration files for the model architecture, pipeline settings, and sampling parameters, along with an interactive example script (basic_waypoint_streaming.py) and comprehensive documentation.
  • Testing and Validation: Implemented parity tests for the transformer to ensure weight loading and forward pass correctness, and smoke tests for the pipeline to validate basic functionality.

๐Ÿง  New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • examples/inference/basic/basic_waypoint_streaming.py
    • Added a new example script demonstrating basic streaming inference for the Waypoint-1-Small model.
    • Includes interactive keyboard and mouse control handling for real-time input.
  • fastvideo/configs/models/dits/init.py
    • Updated to import and expose the new WaypointConfig.
  • fastvideo/configs/models/dits/waypoint_transformer.py
    • Added a new configuration file defining the WaypointArchConfig for the Waypoint-1-Small transformer.
    • Specifies model architecture details including d_model, n_heads, n_kv_heads (GQA), n_layers, causal attention, and control/prompt conditioning parameters.
  • fastvideo/configs/pipelines/registry.py
    • Modified to import WaypointT2VConfig.
    • Registered WaypointT2VConfig under the model ID 'Overworld/Waypoint-1-Small' and added a detector for 'waypoint' or 'worldengine' IDs.
  • fastvideo/configs/pipelines/waypoint.py
    • Added a new pipeline configuration file for WaypointT2VConfig.
    • Defines specific settings for VAE (DCAE-based), UMT5-XL text encoder postprocessing, precision, and Waypoint-specific parameters like fixed sigma schedule and causal generation.
  • fastvideo/configs/sample/registry.py
    • Modified to import WaypointSamplingParam.
    • Registered WaypointSamplingParam for 'Overworld/Waypoint-1-Small' and added a detector for 'waypoint' or 'worldengine' IDs.
  • fastvideo/configs/sample/waypoint.py
    • Added a new sampling parameter configuration file for WaypointSamplingParam.
    • Specifies default video parameters (360p, 640x360, 60fps) and denoising parameters (4 inference steps, 1.0 guidance scale).
  • fastvideo/models/dits/waypoint_transformer.py
    • Added the core implementation of the WaypointWorldModel transformer.
    • Includes custom building blocks like MLP, AdaLN, CFG, ControllerInputEmbedding, NoiseConditioner, MLPFusion, CondHead, GatedSelfAttention (with GQA and per-head gating), and CrossAttention.
    • The WaypointBlock integrates these components for noise, prompt, and control conditioning.
    • The WaypointWorldModel handles patch embedding, transformer forward pass, and unpatching.
  • fastvideo/pipelines/basic/waypoint/README.md
    • Added documentation for the Waypoint-1-Small pipeline, covering overview, architecture, usage, control input format, configuration, related files, and hardware requirements.
  • fastvideo/pipelines/basic/waypoint/init.py
    • Added an __init__.py file to expose WaypointPipeline.
  • fastvideo/pipelines/basic/waypoint/waypoint_pipeline.py
    • Added the WaypointPipeline class, implementing the streaming inference logic.
    • Includes CtrlInput dataclass for controller inputs and StreamingContext for managing streaming state.
    • Provides streaming_reset, streaming_step, and streaming_clear methods for interactive generation.
  • fastvideo/pipelines/pipeline_registry.py
    • Updated _PIPELINE_NAME_TO_ARCHITECTURE_NAME to include WaypointPipeline.
  • tests/local_tests/pipelines/test_waypoint_pipeline_smoke.py
    • Added smoke tests for the Waypoint pipeline.
    • Verifies transformer loading, forward pass, pipeline import, and config loading.
  • tests/local_tests/transformers/test_waypoint_transformer.py
    • Added parity tests for the Waypoint transformer.
    • Ensures correct weight loading and functional forward pass, comparing against official checkpoint keys.
Activity
  • Initial implementation of the Waypoint-1-Small model and its associated streaming pipeline.
  • All transformer parity tests have passed, confirming correct weight loading and forward pass behavior.
  • Pipeline smoke tests have passed, validating the basic functionality of the interactive video generation pipeline.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

[^1]: Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

gemini-code-assist avatar Feb 03 '26 00:02 gemini-code-assist

Hi @Satvikmatta18, I tried to generate a video but the results were all blurry. Did you check the correctness / compare it with diffusers results? Cursor 2026-02-12 00 30 45

Eigensystem avatar Feb 12 '26 08:02 Eigensystem

could you also address the gemini comments? And resolve them if you have or they do not make sense. Thanks!

SolitaryThinker avatar Feb 15 '26 01:02 SolitaryThinker

The generated video looks still blurry on my side. Could you write a ssim test in fastvideo/tests/ssim to check the correctness? @Satvikmatta18 CleanShot 2026-02-15 at 19 18 42@2x

Eigensystem avatar Feb 16 '26 03:02 Eigensystem

Hi @Eigensystem Eigensystem, Thanks for the review. Iโ€™ve made these changes to address the blurriness:

  • flex_attention โ€“ Waypoint now uses flex_attention (when available) for the kv_cache=None path, aligned with WanVideo/MatrixGame.
  • Sigma schedule โ€“ Updated to the official schedule [1.0, 0.861, 0.729, 0.321, 0.0].
  • Reproducible noise โ€“ Switched to per-frame torch.Generator seeding for consistent results.
  • Seed passing โ€“ The --seed flag is now passed into reset() for reproducibility. image

Satvikmatta18 avatar Feb 16 '26 08:02 Satvikmatta18

This PR has merge conflicts with the base branch. Please rebase:

git fetch origin main
git rebase origin/main
# Resolve any conflicts, then:
git push --force-with-lease

mergify[bot] avatar Mar 28 '26 05:03 mergify[bot]

Buildkite CI tests failed

Hi @Satvikmatta18, some Buildkite CI tests have failed. Check the build for details: View Buildkite build โ†’

Common causes:

  • Test failures: Check the failing step's output for assertion errors or tracebacks
  • Import errors: Make sure new dependencies are added to pyproject.toml
  • GPU memory: Some tests require specific GPU types (L40S, H100 NVL)
  • Kernel build: If you changed fastvideo-kernel/, the build may have failed

If the failure is unrelated to your changes, leave a comment explaining why.

mergify[bot] avatar Mar 30 '26 00:03 mergify[bot]

โš ๏ธ PR title format required

Your PR title must start with a type tag in brackets. Examples:

  • [feat] Add new model support
  • [bugfix] Fix VAE tiling corruption
  • [refactor] Restructure training pipeline
  • [perf] Optimize attention kernel
  • [ci] Update test infrastructure
  • [docs] Add inference guide
  • [misc] Clean up configs
  • [new-model] Port Flux2 to FastVideo

Valid tags: feat, feature, bugfix, fix, refactor, perf, ci, doc, docs, misc, chore, kernel, new-model

Please update your PR title and the merge protection check will pass automatically.

mergify[bot] avatar Mar 30 '26 00:03 mergify[bot]

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

๐Ÿ”ด PR merge requirements

Waiting for:

  • [ ] #approved-reviews-by>=1
  • [ ] check-success=fastcheck-passed
  • [ ] check-success=full-suite-passed
  • [ ] check-success~=pre-commit
This rule is failing.
  • [ ] #approved-reviews-by>=1
  • [ ] check-success=fastcheck-passed
  • [ ] check-success=full-suite-passed
  • [ ] check-success~=pre-commit
  • [X] title~=(?i)^\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model)\]

mergify[bot] avatar Mar 30 '26 00:03 mergify[bot]

Pre-commit checks failed

Hi @Satvikmatta18, the pre-commit checks have failed. To fix them locally:

# Install pre-commit if you haven't already
uv pip install pre-commit
pre-commit install

# Run all checks and auto-fix what's possible
pre-commit run --all-files

Common fixes:

  • yapf: yapf -i <file> (formatting)
  • ruff: ruff check --fix <file> (linting)
  • codespell: codespell --write-changes <file> (spelling)

After fixing, commit and push the changes. The checks will re-run automatically.

For future commits, pre-commit will run automatically on changed files before each commit.

mergify[bot] avatar Mar 30 '26 00:03 mergify[bot]

Buildkite CI tests failed

Hi @Satvikmatta18, some Buildkite CI tests have failed. Check the build for details: View Buildkite build โ†’

Common causes:

  • Test failures: Check the failing step's output for assertion errors or tracebacks
  • Import errors: Make sure new dependencies are added to pyproject.toml
  • GPU memory: Some tests require specific GPU types (L40S, H100 NVL)
  • Kernel build: If you changed fastvideo-kernel/, the build may have failed

If the failure is unrelated to your changes, leave a comment explaining why.

mergify[bot] avatar Mar 30 '26 01:03 mergify[bot]

Buildkite CI tests failed

Hi @Satvikmatta18, some Buildkite CI tests have failed. Check the build for details: View Buildkite build โ†’

Common causes:

  • Test failures: Check the failing step's output for assertion errors or tracebacks
  • Import errors: Make sure new dependencies are added to pyproject.toml
  • GPU memory: Some tests require specific GPU types (L40S, H100 NVL)
  • Kernel build: If you changed fastvideo-kernel/, the build may have failed

If the failure is unrelated to your changes, leave a comment explaining why.

mergify[bot] avatar Mar 30 '26 01:03 mergify[bot]

โŒ CI tests failed

@Satvikmatta18 โ€” to see what failed:

  1. Scroll to the Checks section below
  2. Find the check marked with โŒ (e.g. buildkite/ci/microscope-transformer-tests)
  3. Click Details to view the full build log

Or view all builds for this branch on Buildkite โ†’

Common causes:

  • Assertion error / test failure โ€” check the failing test's traceback
  • Import error โ€” new dependency missing from pyproject.toml
  • OOM โ€” some tests need specific GPUs (L40S, H100 NVL)

If the failure looks unrelated to your changes, comment why and a maintainer will review.

mergify[bot] avatar Mar 30 '26 06:03 mergify[bot]

Pre-commit checks failed

Hi @Satvikmatta18, the pre-commit checks have failed. To fix them locally:

# Install pre-commit if you haven't already
uv pip install pre-commit
pre-commit install

# Run all checks and auto-fix what's possible
pre-commit run --all-files

Common fixes:

  • yapf: yapf -i <file> (formatting)
  • ruff: ruff check --fix <file> (linting)
  • codespell: codespell --write-changes <file> (spelling)

After fixing, commit and push the changes. The checks will re-run automatically.

For future commits, pre-commit will run automatically on changed files before each commit.

mergify[bot] avatar Apr 09 '26 23:04 mergify[bot]

Pre-commit checks failed

Hi @Satvikmatta18, the pre-commit checks have failed. To fix them locally:

# Install pre-commit if you haven't already
uv pip install pre-commit
pre-commit install

# Run all checks and auto-fix what's possible
pre-commit run --all-files

Common fixes:

  • yapf: yapf -i <file> (formatting)
  • ruff: ruff check --fix <file> (linting)
  • codespell: codespell --write-changes <file> (spelling)

After fixing, commit and push the changes. The checks will re-run automatically.

For future commits, pre-commit will run automatically on changed files before each commit.

mergify[bot] avatar Apr 09 '26 23:04 mergify[bot]

Hi @Satvikmatta18. Please run pre-commit locally and fix the errors. Thanks!

Eigensystem avatar Apr 09 '26 23:04 Eigensystem

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

๐Ÿ”ด PR merge requirements

Waiting for

  • [ ] check-success=fastcheck-passed
  • [ ] check-success=full-suite-passed
This rule is failing.
  • [ ] check-success=fastcheck-passed
  • [ ] check-success=full-suite-passed
  • [X] #approved-reviews-by>=1
  • [X] check-success~=pre-commit
  • [X] title~=(?i)^\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model|skill|skills|infra)\]

mergify[bot] avatar Jun 10 '26 08:06 mergify[bot]

This PR has merge conflicts with the base branch. Please rebase:

git fetch origin main
git rebase origin/main
# Resolve any conflicts, then:
git push --force-with-lease

mergify[bot] avatar Jul 12 '26 22:07 mergify[bot]

Merge Protections

๐Ÿ”ด 1 of 1 protections blocking ยท waiting on ๐Ÿค– CI

Protection Waiting on
๐Ÿ”ด PR merge requirements ๐Ÿค– CI

๐Ÿ”ด PR merge requirements

Waiting for

  • [ ] check-success=fastcheck-passed
  • [ ] check-success=full-suite-passed
This rule is failing.
  • [ ] check-success=fastcheck-passed
  • [ ] check-success=full-suite-passed
  • [X] #approved-reviews-by>=1
  • [X] check-success~=pre-commit
  • [X] title~=(?i)^\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model|skill|skills|infra)\]

mergify[bot] avatar Jul 12 '26 22:07 mergify[bot]

Merge Protections

๐ŸŸ  1 of 1 protections blocking ยท waiting on ๐Ÿค– CI

Protection Waiting on
๐ŸŸ  PR merge requirements ๐Ÿค– CI

๐ŸŸ  PR merge requirements

Waiting for

  • [ ] check-success=full-suite-passed
Waiting checks: full-suite-passed.
  • [ ] check-success=full-suite-passed
  • [X] #approved-reviews-by>=1
  • [X] check-success=fastcheck-passed
  • [X] check-success~=pre-commit
  • [X] title~=(?i)^\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model|skill|skills|infra)\]

mergify[bot] avatar Jul 15 '26 08:07 mergify[bot]