-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Speed up evotuning and improve evotuning ergonomics (#57)
* Adding pre-commit * Fixed up GPU memory allocation, and added docstrings. * Adding a bash script that makes it easy to install JAX on GPU. - The script builds a conda environment first. - Then it clobbers over with the GPU-based installation based on instructions given by JAX's developers. * Update fit docstring * Set backend to "cpu" by default * Removed parallel kwarg * Switched back to non-Numba-compatible dictionary definition * Add pyproject TOML config file Primarily to add black config * Applied black * Add flake8 to pre-commit hooks * Remove flake8 from pre-commit * Attempting to increase coverage without doing any actual work ^_^ * Add tests for params - One unit test - One lazy man's execution test * Update changelog * Fix test * Add validate_mLSTM1900_params This can be used as part of the test suite. I should have remembered! Co-authored-by: Arkadij Kummer <43340666+ElArkk@users.noreply.github.com> * Used validate_mLSTM1900_params as part of test h/t @ElArkk Co-authored-by: Arkadij Kummer <43340666+ElArkk@users.noreply.github.com> * Fix batch_size in avg_loss function * Flat is better than nested At least I tried. * Fix test * Make format * Change holdout_seqs to default back to None * Set sane defaults for mLSTM1900 layer * Changed to dumping every epoch by default. * add backend explanation * add backend to fit example * change default batching method of fit function to random * fix epoch calculations * fix seq length choice for holdout seqs Co-authored-by: Arkadij Kummer <43340666+ElArkk@users.noreply.github.com> Co-authored-by: ElArkk <arkadij.kummer@gmail.com>
- Loading branch information
1 parent
661a31b
commit 54ab8e6
Showing
15 changed files
with
252 additions
and
82 deletions.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/psf/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
conda env update -f environment.yml | ||
|
||
PYTHON_VERSION=cp37 | ||
CUDA_VERSION=cuda101 | ||
PLATFORM=manylinux2010_x86_64 | ||
BASE_URL='https://storage.googleapis.com/jax-releases' | ||
pip install --upgrade $BASE_URL/$CUDA_VERSION/jaxlib-0.1.50-$PYTHON_VERSION-none-$PLATFORM.whl | ||
pip install --upgrade jax | ||
|
||
jupyter labextension install @jupyter-widgets/jupyterlab-manager |
Oops, something went wrong.