2023-11-30 05:25:17 +00:00
|
|
|
from . import accelerator
|
2024-04-08 07:09:40 +00:00
|
|
|
from .initialize import launch, launch_from_openmpi, launch_from_slurm, launch_from_torch
|
2021-10-28 16:21:23 +00:00
|
|
|
|
2022-11-30 08:45:15 +00:00
|
|
|
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
|
2023-09-19 06:20:26 +00:00
|
|
|
__version__ = "0.0.0"
|
|
|
|
print("please install Colossal-AI from https://www.colossalai.org/download or from source")
|
2023-09-18 08:31:06 +00:00
|
|
|
|
2023-09-19 06:20:26 +00:00
|
|
|
__all__ = ["launch", "launch_from_openmpi", "launch_from_slurm", "launch_from_torch", "__version__"]
|