feat(ci): make examples/run_genie_experiments robust for CI and add small-demo fallbacks#32
Open
Sparshkhare1306 wants to merge 1 commit intoLabRAI:mainfrom
Open
Conversation
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.
Summary
This PR adds a compact, CI-friendly GENIE demo (model extraction → optional pruning) and safe fallbacks so the demo reliably runs in minimal environments (CI or local developer machines without optional heavy dependencies). The changes are conservative: full-featured behavior remains available when optional dependencies are installed.
What changed
examples/run_genie_experiments.py— CI-friendly runner: lazy imports, fallbacks, and pruning only when pruning helpers are available.pygip/models/gcn_link_predictor.py— minimal GCNLinkPredictor fallback for demo/CI.examples/train_small_predictor.py— tiny trainer to create a demo checkpoint for smoke testing.examples/quick_check_surrogate.py— quick helper to inspect demo checkpoints..gitignoreupdates — ignore*.pth,*.zip, anddata/to avoid committing large artifacts.Motivation
CI runners or minimal environments may not have optional heavy libs (
dgl, etc.) or extra example helpers. These fallbacks ensure the "smoke" example runs quickly and reliably in CI and for reviewers.How to reproduce locally (quick)
From repo root: