Unverified Commit ec9352d1 authored by oahzxl's avatar oahzxl Committed by GitHub
Browse files

Update environment.yml (#79)

* Update environment.yml

torch==1.11.1+cu113 is not supported in pip channel now

* update other version

* add torch version check

if torch version > 1.11.1, turn on tf32
parent 3b046699
...@@ -8,7 +8,6 @@ dependencies: ...@@ -8,7 +8,6 @@ dependencies:
- biopython==1.79 - biopython==1.79
- dm-tree==0.1.6 - dm-tree==0.1.6
- ml-collections==0.1.0 - ml-collections==0.1.0
- numpy==1.21.2
- PyYAML==5.4.1 - PyYAML==5.4.1
- requests==2.26.0 - requests==2.26.0
- scipy==1.7.1 - scipy==1.7.1
...@@ -18,10 +17,12 @@ dependencies: ...@@ -18,10 +17,12 @@ dependencies:
- ray==2.0.0 - ray==2.0.0
- pyarrow - pyarrow
- pandas - pandas
- --find-links https://release.colossalai.org colossalai - --find-links https://release.colossalai.org
- --find-links https://download.pytorch.org/whl/cu113/torch_stable.html torch==1.11.1+cu113 - colossalai==0.1.10+torch1.12cu11.3
- --find-links https://download.pytorch.org/whl/cu113/torch_stable.html torchaudio==0.11.1+cu113 - pytorch::pytorch=1.12
- --find-links https://download.pytorch.org/whl/cu113/torch_stable.html torchvision==0.13.1 - pytorch::torchvision
- pytorch::torchaudio
- conda-forge::cudatoolkit=11.3
- conda-forge::python=3.8 - conda-forge::python=3.8
- conda-forge::setuptools=59.5.0 - conda-forge::setuptools=59.5.0
- conda-forge::pip - conda-forge::pip
......
...@@ -43,6 +43,9 @@ from fastfold.data.parsers import parse_fasta ...@@ -43,6 +43,9 @@ from fastfold.data.parsers import parse_fasta
from fastfold.utils.import_weights import import_jax_weights_ from fastfold.utils.import_weights import import_jax_weights_
from fastfold.utils.tensor_utils import tensor_tree_map from fastfold.utils.tensor_utils import tensor_tree_map
if int(torch.__version__.split(".")[0]) >= 1 and int(torch.__version__.split(".")[1]) > 11:
torch.backends.cuda.matmul.allow_tf32 = True
@contextlib.contextmanager @contextlib.contextmanager
def temp_fasta_file(fasta_str: str): def temp_fasta_file(fasta_str: str):
with tempfile.NamedTemporaryFile('w', suffix='.fasta') as fasta_file: with tempfile.NamedTemporaryFile('w', suffix='.fasta') as fasta_file:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment