Skip to content

Commit

Permalink
Merge pull request #163 from helicalAI/main
Browse files Browse the repository at this point in the history
Cleanup and remove torchtext and tensorflow dependencies
  • Loading branch information
bputzeys authored Dec 19, 2024
2 parents 1551b01 + 1aee929 commit 543735e
Show file tree
Hide file tree
Showing 96 changed files with 5,120 additions and 117,260 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
# Currently, the self-hosted runner uses a pre-installed version of mamba-ssm (v2.2.2). Using the latest version (v2.2.4) breaks the pip installation.
# TODO fix the installation of helical[mamba-ssm], and add it in the GitHub actions (CI/CD pipeline).
pip install .
pip install .[mamba-ssm]
# First download before tests as they make use of the downloaded files
- name: Download all files
Expand Down Expand Up @@ -56,7 +54,7 @@ jobs:
# because jobs may not be run in the same order, we need to install the dependencies again
- name: Install helical
run: |
pip install .
pip install .[mamba-ssm]
# Required to get the data
- name: Download all files
Expand Down Expand Up @@ -119,10 +117,13 @@ jobs:
run: |
python examples/fine_tune_models/fine_tune_mamba2_mrna.py ++device="cuda"
- name: Execute benchmarking
- name: Execute Caduceus
run: |
pip install scanorama
python examples/run_benchmark.py
python examples/run_models/run_caduceus.py
- name: Fine-tune Caduceus
run: |
python examples/fine_tune_models/fine_tune_caduceus.py
notebooks:
needs: tests
Expand All @@ -141,7 +142,7 @@ jobs:
# because jobs may not be run in the same order, we need to install the dependencies again
- name: Install helical
run: |
pip install .
pip install .[mamba-ssm]
- name: Reduce datasets to speedup checks
run: |
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.11.8

# Do not install mamba-ssm as it is not supported for machines without GPUs
- name: Install dependencies
run: |
pip install .
Expand All @@ -38,9 +38,7 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
# Currently, the self-hosted runner uses a pre-installed version of mamba-ssm (v2.2.2). Using the latest version (v2.2.4) breaks the pip installation.
# TODO fix the installation of helical[mamba-ssm], and add it in the GitHub actions (CI/CD pipeline).
pip install .
pip install .[mamba-ssm]
# First download before tests as they make use of the downloaded files
- name: Download all files
Expand Down Expand Up @@ -74,7 +72,7 @@ jobs:
# because jobs may not be run in the same order, we need to install the dependencies again
- name: Install helical
run: |
pip install .
pip install .[mamba-ssm]
# Required to get the data
- name: Download all files
Expand Down Expand Up @@ -137,10 +135,13 @@ jobs:
run: |
python examples/fine_tune_models/fine_tune_mamba2_mrna.py ++device="cuda"
- name: Execute benchmarking
- name: Execute Caduceus
run: |
pip install scanorama
python examples/run_benchmark.py
python examples/run_models/run_caduceus.py
- name: Fine-tune Caduceus
run: |
python examples/fine_tune_models/fine_tune_caduceus.py
notebooks:
needs: tests
Expand All @@ -159,7 +160,7 @@ jobs:
# because jobs may not be run in the same order, we need to install the dependencies again
- name: Install helical
run: |
pip install .
pip install .[mamba-ssm]
- name: Reduce datasets to speedup checks
run: |
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ site
docs/notebooks/

# Keep unit tests data
!ci/tests/data/valid_nn_head/*
!ci/tests/data/*

# Hydra
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ apptainer shell --nv --fakeroot singularity/helical/

### DNA models:
- [HyenaDNA](https://helical.readthedocs.io/en/latest/model_cards/hyenadna/)
- [Caduceus](https://helical.readthedocs.io/en/latest/model_cards/caduceus/)


## Demo & Use Cases
Expand Down
Binary file removed ci/tests/data/valid_nn_head/classes.npy
Binary file not shown.
Binary file removed ci/tests/data/valid_nn_head/my_model.h5
Binary file not shown.
110 changes: 0 additions & 110 deletions ci/tests/test_benchmark/test_benchmark.py

This file was deleted.

Loading

0 comments on commit 543735e

Please sign in to comment.