Abstract class for unified workflows#466
Open
YuanbinLiu wants to merge 2 commits intoautoatml:mainfrom
Open
Conversation
JaGeo
reviewed
Jan 7, 2026
| # Example: ["rss", "md", "rattling"] means the workflow runs RSS first, | ||
| # then MD, and finally rattling. | ||
| multi_stages: Sequence[str] = field( | ||
| default_factory=lambda: ["rss", "md", "rattling"] |
Collaborator
There was a problem hiding this comment.
I think "RSS", "MD" and "RATTLING" could all be part of one Literal definition. In this way, typos can be avoided at run time.
JaGeo
reviewed
Jan 7, 2026
Comment on lines
+154
to
+160
| if stage in self.stages_requiring_fit: | ||
| do_mlip_fit = MLIPFitMaker(...).make( | ||
| database_dir=do_data_gen.output["pre_database_dir"], | ||
| isolated_atom_energies=do_data_gen.output["isolated_atom_energies"], | ||
| **fit_kwargs, | ||
| ) | ||
|
|
Collaborator
There was a problem hiding this comment.
I assume this code dows not work at the moment, right?
Collaborator
|
Hi @YuanbinLiu, it would be nice to have #451 first merged if this is supposed to be based on the |
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.
This PR is a first step toward developing a UnifiedMaker, which aims to make training data generation more flexible and composable.
The main idea is to support combined data generation workflows, such as chaining RSS and MD into a single process, instead of treating each flow independently.
This implementation is based on the
DataGenerationMakerframework(see: #451) and extends it into a more general abstraction.
Key features
For now, this class is intentionally designed as an abstract-style template and serves as a foundation for future concrete workflow implementations.