README.md 1.22 KB
Newer Older
shenggan's avatar
shenggan committed
1
# FastFold
Shenggan's avatar
Shenggan committed
2

zhuwenwen's avatar
zhuwenwen committed
3
4
5
## 安装
安装FastFold,你需要
+ Python 3.8 或者 3.9.
Shenggan's avatar
Shenggan committed
6

zhuwenwen's avatar
zhuwenwen committed
7
8
9
### 使用pip安装
fastfold whl包下载目录:[https://cancon.hpccube.com:65024/4/main/fastfold/dtk23.04](https://cancon.hpccube.com:65024/4/main/fastfold/dtk23.04)
根据对应的pytorch版本和python版本,下载对应fastfold的whl包
Shenggan's avatar
Shenggan committed
10

Fazzie-Maqianli's avatar
Fazzie-Maqianli committed
11
```shell
zhuwenwen's avatar
zhuwenwen committed
12
pip install fastfold* (下载的fastfold的whl包)
Shenggan's avatar
Shenggan committed
13
14
```

zhuwenwen's avatar
zhuwenwen committed
15
### 使用源码安装
16

zhuwenwen's avatar
zhuwenwen committed
17
18
19
#### 编译环境准备
pytorch whl包下载目录:[https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04](https://cancon.hpccube.com:65024/4/main/pytorch/dtk23.04)
根据python版本,下载对应pytorch的whl包
Shenggan's avatar
Shenggan committed
20
```shell
zhuwenwen's avatar
zhuwenwen committed
21
pip install torch* (下载的torch的whl包)
22
23
24
```

```shell
zhuwenwen's avatar
zhuwenwen committed
25
pip install setuptools=59.5.0 wheel
26
27
```

zhuwenwen's avatar
zhuwenwen committed
28
#### 编译安装
29
```shell
zhuwenwen's avatar
zhuwenwen committed
30
31
32
33
34
git clone -b dtk-23.04_fastfold0.2.1 https://developer.hpccube.com/codes/aicomponent/fastfold
cd fastfold
export CPLUS_INCLUDE_PATH=$ROCM_PATH/include:$ROCM_PATH/cuda/targets/x86_64-linux/include:$CPLUS_INCLUDE_PATH
python setup.py bdist_wheel 
pip install dist/fastfold*
Shenggan's avatar
Shenggan committed
35
36
```

zhuwenwen's avatar
zhuwenwen committed
37
38
39
## Note
+ 若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
+ ROCM_PATH为dtk的路径,默认为/opt/dtkxxx
Shenggan's avatar
Shenggan committed
40

zhuwenwen's avatar
zhuwenwen committed
41
42
## 参考
- [README_ORIGIN](README_ORIGIN.md)