Fix LigandMPNN weights downloading#22
Merged
delalamo merged 4 commits intodelalamo:mainfrom Jan 21, 2026
Merged
Conversation
The original code stored model weights inside the package installation directory (site-packages), which is read-only in production environments like Docker containers and conda installs. Changes: - Store weights in ~/.graphrelax/weights/ (user-writable location) - Add GRAPHRELAX_WEIGHTS_DIR env var for custom locations - Support fallback to legacy package directory for backwards compatibility - Improve error handling with clear permission error messages - Always log download progress for user feedback - Add comprehensive test suite for weight downloading (20 tests) - Update Dockerfile to use /app/weights for container environments - Centralize weights_exist() usage across integration tests
- Add extend-exclude for LigandMPNN directory in black config - Add skip_glob for LigandMPNN directory in isort config - Fix black formatting in test_weights.py - Remove unused MagicMock import
Fix weight downloading to use user-writable directory
delalamo
approved these changes
Jan 21, 2026
Owner
|
Thanks for the edits! Hope you find the repo helpful |
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.
The original code stored model weights inside the package installation directory (site-packages), which is read-only in production environments like Docker containers and conda installs.
This update switches the default weights directory to
~/.graphrelax/weights, which can be overridden by setting theGRAPHRELAX_WEIGHTS_DIRenv var. New tests were added to cover the weights downloading.