Function for installing the necessary python modules.
install_py_modules(
envname = "aifeducation",
install = "pytorch",
transformer_version = "
Returns no values or objects. Function is used for installing the necessary python libraries in a conda environment.
string
Name of the environment where the packages should be installed.
character
determining which machine learning frameworks should be installed.
install = "all"
: for 'pytorch' and 'tensorflow'.
install = "pytorch"
: for 'pytorch'.
install = "tensorflow"
: for 'tensorflow'.
string
determining the desired version of the python library 'transformers'.
string
determining the desired version of the python library 'tokenizers'.
string
determining the desired version of the python library 'pandas'.
string
determining the desired version of the python library 'datasets'.
string
determining the desired version of the python library 'codecarbon'.
string
determining the desired version of the python library 'safetensors'.
string
determining the desired version of the python library 'torcheval'.
string
determining the desired version of the python library 'accelerate'.
string
determining the desired version of 'cuda' for ' PyTorch'.
string
Python version to use.
bool
If TRUE
removes the environment completely before recreating the environment and
installing the packages. If FALSE
the packages are installed in the existing environment without any prior
changes.
Other Installation and Configuration:
check_aif_py_modules()
,
install_aifeducation()
,
set_transformers_logger()