Learn R Programming

aifeducation (version 1.0.2)

install_py_modules: Installing necessary python modules to an environment

Description

Function for installing the necessary python modules.

Usage

install_py_modules(
  envname = "aifeducation",
  install = "pytorch",
  transformer_version = "

Value

Returns no values or objects. Function is used for installing the necessary python libraries in a conda environment.

Arguments

envname

string Name of the environment where the packages should be installed.

install

character determining which machine learning frameworks should be installed.

  • install = "all": for 'pytorch' and 'tensorflow'.

  • install = "pytorch": for 'pytorch'.

  • install = "tensorflow": for 'tensorflow'.

transformer_version

string determining the desired version of the python library 'transformers'.

tokenizers_version

string determining the desired version of the python library 'tokenizers'.

pandas_version

string determining the desired version of the python library 'pandas'.

datasets_version

string determining the desired version of the python library 'datasets'.

codecarbon_version

string determining the desired version of the python library 'codecarbon'.

safetensors_version

string determining the desired version of the python library 'safetensors'.

torcheval_version

string determining the desired version of the python library 'torcheval'.

accelerate_version

string determining the desired version of the python library 'accelerate'.

pytorch_cuda_version

string determining the desired version of 'cuda' for ' PyTorch'.

python_version

string Python version to use.

remove_first

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.

See Also

Other Installation and Configuration: check_aif_py_modules(), install_aifeducation(), set_transformers_logger()