These dependencies are preinstalled in offical conda environment and docker image, you can use the offical conda environment here or use the docker image by:
Here the DCMAKE_CUDA_ARCHITECTURES macro is used to specify the CUDA architecture, and the DCUDA_TOOLKIT_ROOT_DIR and DCUDNN_ROOT_DIR macros are used to specify the root path of the CUDA Toolkit and CUDNN.
Build the project, inside build directory, run:
make -j$(nproc)
Add oneflow to your PYTHONPATH, inside build directory, run:
source source.sh
Please note that this change is not permanent.
Simple validation
python3 -m oneflow --doctor
Troubleshooting
Please refer to troubleshooting for common issues you might encounter when compiling and running OneFlow.
OneFlow
OneFlow is a deep learning framework designed to be user-friendly, scalable and efficient. With OneFlow, it is easy to:
Latest News
Publication
System Requirements
General
CUDA
CUDA arch 60 or above
CUDA Toolkit version 10.0 or above
Nvidia driver version 440.33 or above
OneFlow will work on a minimum supported driver, and any driver beyond. For more information, please refer to CUDA compatibility documentation.
Install
Preinstall docker image
Pip Install
(Highly recommended) Upgrade pip
To install latest stable release of OneFlow with CUDA support:
To install nightly release of OneFlow with CPU-only support:
To install nightly release of OneFlow with CUDA support:
If you are in China, you could run this to have pip download packages from domestic mirror of pypi:
For more information on this, please refer to pypi 镜像使用帮助
Install from Source
Clone Source Code
Option 1: Clone source code from GitHub
Option 2: Download from Aliyun(Only available in China)
Build OneFlow
Install dependencies
These dependencies are preinstalled in offical conda environment and docker image, you can use the offical conda environment here or use the docker image by:
In the root directory of OneFlow source code, run:
Config the project, inside
builddirectory:If you are in China
config for CPU-only like this:
config for CUDA like this:
If you are not in China
config for CPU-only like this:
config for CUDA like this:
Here the DCMAKE_CUDA_ARCHITECTURES macro is used to specify the CUDA architecture, and the DCUDA_TOOLKIT_ROOT_DIR and DCUDNN_ROOT_DIR macros are used to specify the root path of the CUDA Toolkit and CUDNN.
Build the project, inside
builddirectory, run:Add oneflow to your PYTHONPATH, inside
builddirectory, run:Please note that this change is not permanent.
Simple validation
Troubleshooting
Please refer to troubleshooting for common issues you might encounter when compiling and running OneFlow.
Getting Started
Documentation
Model Zoo and Benchmark
Communication
GitHub issues: any install, bug, feature issues.
www.oneflow.org: brand related information.
中文
International
The Team
OneFlow was originally developed by OneFlow Inc and Zhejiang Lab.
License
Apache License 2.0