[feat] Add Waypoint-1-Small interactive world model support
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 withCtrlInputsupport - 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
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
WaypointWorldModelwith 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.
- Updated to import and expose the new
- fastvideo/configs/models/dits/waypoint_transformer.py
- Added a new configuration file defining the
WaypointArchConfigfor 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.
- Added a new configuration file defining the
- fastvideo/configs/pipelines/registry.py
- Modified to import
WaypointT2VConfig. - Registered
WaypointT2VConfigunder the model ID 'Overworld/Waypoint-1-Small' and added a detector for 'waypoint' or 'worldengine' IDs.
- Modified to import
- 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.
- Added a new pipeline configuration file for
- fastvideo/configs/sample/registry.py
- Modified to import
WaypointSamplingParam. - Registered
WaypointSamplingParamfor 'Overworld/Waypoint-1-Small' and added a detector for 'waypoint' or 'worldengine' IDs.
- Modified to import
- 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).
- Added a new sampling parameter configuration file for
- fastvideo/models/dits/waypoint_transformer.py
- Added the core implementation of the
WaypointWorldModeltransformer. - Includes custom building blocks like
MLP,AdaLN,CFG,ControllerInputEmbedding,NoiseConditioner,MLPFusion,CondHead,GatedSelfAttention(with GQA and per-head gating), andCrossAttention. - The
WaypointBlockintegrates these components for noise, prompt, and control conditioning. - The
WaypointWorldModelhandles patch embedding, transformer forward pass, and unpatching.
- Added the core implementation of the
- 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__.pyfile to exposeWaypointPipeline.
- Added an
- fastvideo/pipelines/basic/waypoint/waypoint_pipeline.py
- Added the
WaypointPipelineclass, implementing the streaming inference logic. - Includes
CtrlInputdataclass for controller inputs andStreamingContextfor managing streaming state. - Provides
streaming_reset,streaming_step, andstreaming_clearmethods for interactive generation.
- Added the
- fastvideo/pipelines/pipeline_registry.py
- Updated
_PIPELINE_NAME_TO_ARCHITECTURE_NAMEto includeWaypointPipeline.
- Updated
- 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.
Hi @Satvikmatta18, I tried to generate a video but the results were all blurry. Did you check the correctness / compare it with diffusers results?
could you also address the gemini comments? And resolve them if you have or they do not make sense. Thanks!
The generated video looks still blurry on my side. Could you write a ssim test in fastvideo/tests/ssim to check the correctness? @Satvikmatta18
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.
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
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.
โ ๏ธ 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.
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)\]
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.
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.
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.
โ CI tests failed
@Satvikmatta18 โ to see what failed:
- Scroll to the Checks section below
- Find the check marked with โ (e.g.
buildkite/ci/microscope-transformer-tests) - 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.
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.
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.
Hi @Satvikmatta18. Please run pre-commit locally and fix the errors. Thanks!
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)\]
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
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)\]
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)\]