1
0
mirror of https://github.com/hpcaitech/ColossalAI.git synced 2025-05-08 00:18:25 +00:00
ColossalAI/colossalai/__init__.py
Frank Lee 81e0da7fa8
[setup] supported conda-installed torch ()
* [setup] supported conda-installed torch

* polish code
2022-11-30 16:45:15 +08:00

18 lines
530 B
Python

from .initialize import (
get_default_parser,
initialize,
launch,
launch_from_openmpi,
launch_from_slurm,
launch_from_torch,
)
try:
# .version will be created by setup.py
from .version import __version__
except ModuleNotFoundError:
# this will only happen if the user did not run `pip install`
# and directly set PYTHONPATH to use Colossal-AI which is a bad practice
__version__ = '0.0.0'
print('please install Colossal-AI from https://www.colossalai.org/download or from source')