"examples/community/stable_diffusion_controlnet_img2img.py" did not exist on "4c54519e1a640f393ff790a72be38284d4253b45"
README.md 843 Bytes
Newer Older
zhanggezhong's avatar
zhanggezhong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# <div align="center"><strong>FastMoe</strong></div>
## 简介
一个易于使用和高效的系统,支持PyTorch的混合专家(MoE)模型。
## 安装
  方式1:
  下载whl包,通过pip3 install 安装
  方式2,源码编译安装,该方式需要安装torch及fastpt工具包
  ```
  pip3 install dm-tree
  pip3 install pytest
  pip3 install wheel
  git clone https://developer.hpccube.com/codes/OpenDAS/fastmoe.git
  git checkout * #切换到相应分支
  cd fastmoe
  pip3 setup.py build
  pip3 setup.py install 
  pip3 setup.py bdist_wheel # 该指令用于编译whl包,执行该指令时不必执行前两个指令
  ```
## 验证安装
Rick Ho's avatar
fmoefy  
Rick Ho committed
20
```
zhanggezhong's avatar
zhanggezhong committed
21
22
23
24
25
26
27
pip3 list | grep fastmoe
python3
import fmoe 
fmoe.__version__
#返回版本号
fmoe.__dcu_version
#返回版本号和dcu版本号
Rick Ho's avatar
Rick Ho committed
28
```
zhanggezhong's avatar
zhanggezhong committed
29
## 测试
Rick Ho's avatar
Rick Ho committed
30
```
zhanggezhong's avatar
zhanggezhong committed
31
32
cd fastmoe/tests
pytest -e.
Rick Ho's avatar
Rick Ho committed
33

Rick Ho's avatar
Rick Ho committed
34
```