Chronos Installation#
OS and Python version requirement#
Note
Supported OS:
Chronos is thoroughly tested on Ubuntu (16.04/18.04/20.04), and should works fine on CentOS. If you are a Windows user, there are 2 ways to use Chronos:
You could use Chronos on a windows laptop with WSL2 (you may refer to here) or just install a ubuntu virtual machine.
You could use Chronos on native Windows, but some features are unavailable in this case, the limitations will be shown below.
Note
Supported Python Version:
Chronos supports all installation options on Python 3.7 ~ 3.9. For details about different installation options, refer to here.
Install using Conda#
We recommend using conda to manage the Chronos python environment. For more information about Conda, refer to here. Select your preferences in the panel below to find the proper install command. Then run the install command as the example shown below.
Functionality | ||||||
Model | ||||||
DL framework | ||||||
OS | ||||||
Auto Tuning | ||||||
Inference Opt | ||||||
Hardware | ||||||
Package | ||||||
Version | ||||||
Install CMD | NA |
# create a conda environment for chronos
conda create -n my_env python=3.8 setuptools=58.0.4
conda activate my_env
# select your preference in above panel to find the proper command to replace the below command, e.g.
pip install --pre --upgrade bigdl-chronos[pytorch]
# init bigdl-nano to enable local accelerations
source bigdl-nano-init # accelerate the conda env
Install Chronos on native Windows#
Chronos can be simply installed using pip on native Windows, you could use the same command as Linux to install, but unfortunately, some features are unavailable now:
bigdl-chronos[distributed]
is not supported.intel_extension_for_pytorch (ipex)
is unavailable for Windows now, so the related feature is not supported.
For some known issues when installing and using Chronos on native Windows, you could refer to windows_guide.
Install Chronos along with specific Tensorflow#
Currently, the default Tensorflow version of Chronos is 2.7. But Chronos is also validated on Tensorflow 2.8-2.12. If you want to use specific Tensorflow, please follow the table below to find the extra install command after installing Chronos.
TF version | Install CMD |
---|---|
2.8 | pip install tensorflow==2.8.0 intel-tensorflow==2.8.0 |
2.9 | pip install tensorflow==2.9.0 intel-tensorflow==2.9.1 |
2.10 | pip install tensorflow==2.10.0 intel-tensorflow==2.10.0 |
2.11 | pip install tensorflow==2.11.0 intel-tensorflow==2.11.0 |
2.12 | pip install tensorflow==2.12.0 intel-tensorflow==2.12.0 protobuf==3.20.3 |