forked from datamol-io/graphium
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated pipeline for evaluating pre-computed fingerprints #2
Open
blazejba
wants to merge
48
commits into
main
Choose a base branch
from
bb/finetuning-on-fingerprints
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
blazejba
changed the title
Enable quick finetuning on precomputed fingerprints
[WIP] Enable quick finetuning on precomputed fingerprints
Dec 21, 2023
kerstink-GC
reviewed
Dec 21, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
…research/graphium-smg into bb/finetuning-on-fingerprints
blazejba
changed the title
[WIP] Enable quick finetuning on precomputed fingerprints
Enable quick finetuning on precomputed fingerprints
Jan 3, 2024
blazejba
changed the title
Enable quick finetuning on precomputed fingerprints
Automated pipeline for evaluating pre-computed fingerprints
Jan 4, 2024
…research/graphium-smg into bb/finetuning-on-fingerprints
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.
Included scripts:
analyze_results.py
- it uses W&B API to access fingerprinting sweeps, and then, for each sweep it finds the "absolutely" best test score and the "fair" best test score (using the lowest validation loss as a proxy).download_datasets.sh
- downloads all LargeMix datasets and splits and saves them under the path that the existing configs expect them to exist.finetune_on_fingerprints.py
- takes a file with fingerprints and a TDC dataset name and trains a small model, reporting the results to W&B. The script takes a bunch of arguments that allow customizing the model and training. This script is called multiple times when running sweeps. Everything is run on the CPUs and is built independently from Graphium.sweep_checkpoint_on_all_tdc.py
- sweeps all 22 TDC datasets, usesfinetune_on_fingerprints.py
as the main program and the sweep is based on the parameters defined infinetune_on_fingerprints_config.yaml
.graphium/cli/get_final_fingerprints.py
- allows extraction of fingerprints by running all molecules from TDC through a selected checkpoint. Requires a checkpoint and an associated config. Everything is run on the CPUs. Requires a lot of RAM for larger models.graphium/nn/architectures/global_architectures.py
- includes changes that are necessary to rungraphium/cli/get_final_fingerprints.py
.The workflow:
graphium/cli/get_final_fingerprints.py
; an explanation of how to use it can be found in this issue -> https://github.com/graphcore-research/scaling-molecular-gnns/issues/45sweep_checkpoint_on_all_tdc.py
analyze_results.py