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.
What this does
This commit establishes the foundation for the EO1 policy, enabling its integration into the existing framework.
This pull request adds support for a new policy type called "eo1" to the codebase. The changes introduce the configuration, registration, and factory logic for the new policy, as well as update dependency management and pre-commit exclusions to accommodate new files.
EO1 Policy Integration:
EO1Configand a supportingEO1VisionFlowMatchingConfiginconfiguration_eo1.py, defining all relevant hyperparameters and validation logic for the EO1 policy.EO1Configin the policy module’s__init__.pyand the policy factory, enabling dynamic creation and use of EO1 policies viaget_policy_classandmake_policy_config. [1] [2] [3] [4]Dependency and Build Updates:
eo1extra inpyproject.tomlwith required dependencies, includingflash-attn, and included it in theallextra for comprehensive installs. [1] [2]Pre-commit Configuration:
.pre-commit-config.yamlto exclude the new EO1 modeling files from certain hooks to avoid formatting and typo checks during development.Documentation:
How it was tested
Explain/show how you tested your changes.
Examples:
test_somethingintests/test_stuff.py.new_featureand checked that training converges with policy X on dataset/environment Y.some_function, it now runs X times faster than previously.How to checkout & try? (for the reviewer)
Provide a simple way for the reviewer to try out your changes.
Examples:
SECTION TO REMOVE BEFORE SUBMITTING YOUR PR
Note: Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR. Try to avoid tagging more than 3 people.
Note: Before submitting this PR, please read the contributor guideline.