-
Notifications
You must be signed in to change notification settings - Fork 92
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
Make using JAX (or any accelerator) an Instanced Python class (and toggle) #509
Open
Lnaden
wants to merge
14
commits into
choderalab:master
Choose a base branch
from
Lnaden:jax-toggle
base: master
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.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5b121c9
First attempted implementation of the API for toggling JAX. Needs lot…
Lnaden 511d867
Make using JAX a toggle
Lnaden a7945fe
First take on implementing a much more pythonic jax-toggle system.
Lnaden 9216bad
Next iterations, trying to JIT without causing all kinds of pain of r…
Lnaden e4b942f
Debug and try to use pytrees
Lnaden adc30bd
was it just sum?
Lnaden 758a02a
Solved the accelerator problem.
Lnaden be5e183
Merge pull request #3 from Lnaden/pythonic-accelerators
Lnaden f392dca
Fix pytest doctest trying to import everything and let it skip (had t…
Lnaden 5b9ab41
Merge pull request #4 from Lnaden/pythonic-accelerators
Lnaden d65e882
It turns out that BFGS is really slow without actual JIT, and the cal…
Lnaden 16cc394
After some testing, I found the speed gain from having pure static ge…
Lnaden f69b80c
Upstream method change with scipy>=1.9 for this one call.
Lnaden 00a9cd7
Fix the docs, may conflict with main due to #510 but I can fix that too.
Lnaden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,13 @@ PyMBAR needs 64-bit floats to provide reliable answers. JAX by default uses | |
PyMBAR will turn on JAX's 64-bit mode, which may cause issues with some separate uses of JAX in the same code as PyMBAR, | ||
such as existing Neural Network (NN) Models for machine learning. | ||
|
||
If you would like JAX in 32-bit mode, and PyMBAR in the same script, instance your MBAR with the `accelerator=numpy` | ||
option, e.g. | ||
```python | ||
mbar = MBAR(..., accelerator="numpy") | ||
``` | ||
replacing `...` with your other options. | ||
|
||
Authors | ||
------- | ||
* Kyle A. Beauchamp <[email protected]> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ dependencies: | |
- xlrd | ||
# Docs | ||
- numpydoc | ||
- sphinx <7 | ||
- sphinxcontrib-bibtex |
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
Oops, something went wrong.
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.
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.
I think this name is good