mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-04-27 03:21:47 +00:00
* [devops] remove post commit ci * [misc] run pre-commit on all files * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
14 lines
597 B
Python
14 lines
597 B
Python
from . import accelerator
|
|
from .initialize import 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")
|
|
|
|
__all__ = ["launch", "launch_from_openmpi", "launch_from_slurm", "launch_from_torch", "__version__"]
|