未验证 提交 f763b93d 编写于 作者: X Xie Zejian 提交者: GitHub

add reproducible compilation environment (#3943)

* add reproducible compilation environment

* fix ci

* fix typo for formatting check

* Fix casing for format

---------
Co-authored-by: NOlatunji Ruwase <olruwase@microsoft.com>
Co-authored-by: NMichael Wyatt <mrwyattii@gmail.com>
Co-authored-by: NLogan Adams <114770087+loadams@users.noreply.github.com>
Co-authored-by: NLogan Adams <loadams@microsoft.com>
上级 8a63754b
......@@ -123,6 +123,16 @@ fail. Therefore, if you need to you can override the default location with the h
TORCH_EXTENSIONS_DIR=./torch-extensions deepspeed ...
```
### Conda environment for building from source
If you encounter difficulties during compilation using the default system environment, you can try the conda environment provided, which includes the necessary compilation toolchain and PyTorch.
```bash
conda env create -n deepspeed -f environment.yml --force
```
and try above install commands after activating it.
## Building for the correct architectures
If you're getting the following error:
......
channels:
- nvidia/label/cuda-11.8.0
- pytorch # or pytorch-nightly
- conda-forge
dependencies:
- pytorch
- torchvision
- torchaudio
- cuda
- pytorch-cuda=11.8
- compilers
- sysroot_linux-64==2.17
- gcc==11.4
- ninja
- py-cpuinfo
- libaio
- ca-certificates
- certifi
- openssl
- python=3.10
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册