Skip to content

Commit

Permalink
Remove device from Caduceus for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoodx committed Dec 17, 2024
1 parent 3762baf commit 0b6eac2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ jobs:
- name: Execute Caduceus
run: |
python examples/run_models/run_caduceus.py ++device="cuda"
python examples/run_models/run_caduceus.py
- name: Fine-tune Caduceus
run: |
python examples/fine_tune_models/fine_tune_caduceus.py ++device="cuda"
python examples/fine_tune_models/fine_tune_caduceus.py
- name: Execute benchmarking
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ jobs:
- name: Execute Caduceus
run: |
python examples/run_models/run_caduceus.py ++device="cuda"
python examples/run_models/run_caduceus.py
- name: Fine-tune Caduceus
run: |
python examples/fine_tune_models/fine_tune_caduceus.py ++device="cuda"
python examples/fine_tune_models/fine_tune_caduceus.py
- name: Execute benchmarking
run: |
Expand Down
6 changes: 6 additions & 0 deletions helical/models/caduceus/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ def process_data(self, sequences: List[str], return_tensors: str="pt", padding:
----------
sequences : list[str]
The input DNA sequences to be processed.
return_tensors : str, optional, default="pt"
The return type of the processed data.
padding : str, optional, default="max_length"
The padding strategy to be used.
truncation : bool, optional, default=True
Whether to truncate the sequences or not.
Returns
----------
Expand Down

0 comments on commit 0b6eac2

Please sign in to comment.