Add PostgreSQL support and restore related configurations#59
Merged
romeokienzler merged 7 commits intomainfrom Apr 24, 2026
Merged
Add PostgreSQL support and restore related configurations#59romeokienzler merged 7 commits intomainfrom
romeokienzler merged 7 commits intomainfrom
Conversation
Signed-off-by: Romeo Kienzler <romeo.kienzler1@ibm.com>
Signed-off-by: Romeo Kienzler <romeo.kienzler1@ibm.com>
Signed-off-by: Romeo Kienzler <romeo.kienzler1@ibm.com>
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 pull request introduces a plugin-based architecture for Optuna coordinator (storage backend) selection in the
iterate2module, enabling flexible and extensible support for different storage backends such as SQLite, JournalFS, and PostgreSQL. It also adds first-class support for PostgreSQL as a coordinator backend, improves HPO configuration ergonomics, and provides example scripts and dependency management for PostgreSQL-based workflows.Key changes include:
1. Coordinator Plugin System and PostgreSQL Support
iterate2to use a new plugin registry (CoordinatorPlugin), allowing easy addition of new coordinator backends. (terratorch_iterate/iterate2/plugin/coordinator/__init__.py,terratorch_iterate/iterate2/_iterate2.py,terratorch_iterate/iterate2/__init__.py,terratorch_iterate/iterate2/plugin/__init__.py) [1] [2] [3] [4]terratorch_iterate/iterate2/plugin/coordinator/sqlite.py,journalfs.py,postgresql.py) [1] [2] [3]postgresqlextra inpyproject.toml, usingpsycopg2-binary.examples/run_lsf_gridfm_example_postgres.sh)2. HPO Configuration Improvements
computegroup hyperparameter ingridfm_graphkit_hpo.yaml, which co-selectsgpu_num,num_workers, andbatch_sizefor better scaling and usability. [1] [2]3. Reliability and Usability Enhancements
terratorch_iterate/iterate2/_iterate2.py)These changes collectively make the HPO workflow more robust, scalable, and easier to configure for a variety of cluster and database setups.