Skip to content

Commit 7a69a18

Browse files
authored
modify requirements, fix CI container (#93)
* modify requirements, fix CI container * fix format error * remove torch1.11 kernel cache * add cache back
1 parent 530b958 commit 7a69a18

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contains( github.event.pull_request.labels.*.name, 'Run Build and Test')
1515
runs-on: [self-hosted, gpu]
1616
container:
17-
image: hpcaitech/colossalai:0.1.10-torch1.11-cu11.3
17+
image: hpcaitech/pytorch-cuda:1.12.0-11.3.0
1818
options: --gpus all --rm -v /data/scratch/fastfold:/data/scratch/fastfold
1919
timeout-minutes: 40
2020
steps:
@@ -25,8 +25,9 @@ jobs:
2525
- name: Install FastFold
2626
run: |
2727
[ ! -z "$(ls -A /github/home/fastfold_cache/)" ] && cp -r /github/home/fastfold_cache/* /__w/FastFold/FastFold/
28-
pip install biopython==1.79 dm-tree==0.1.6 ml-collections==0.1.0 scipy==1.7.1 pandas pytest
28+
pip install -r requirements/requirements.txt
2929
pip install -e .
30+
pip install -r requirements/test_requirements.txt
3031
cp -r /__w/FastFold/FastFold/build /github/home/fastfold_cache/
3132
cp /__w/FastFold/FastFold/*.so /github/home/fastfold_cache/
3233
- name: Unit Testing

requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

requirements/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
einops
2+
-f https://release.colossalai.org
3+
colossalai==0.1.10+torch1.12cu11.3

requirements/test_requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
biopython==1.79
2+
dm-tree==0.1.6
3+
ml-collections==0.1.0
4+
scipy==1.7.1
5+
pandas
6+
pytest

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,5 @@ def cuda_ext_helper(name, sources, extra_cuda_flags):
140140
ext_modules=ext_modules,
141141
package_data={'fastfold': ['model/fastnn/kernel/cuda_native/csrc/*']},
142142
cmdclass={'build_ext': BuildExtension} if ext_modules else {},
143-
install_requires=['einops', 'colossalai'],
143+
install_requires=['einops'],
144144
)

0 commit comments

Comments
 (0)