View source: R/setup_modules.R
check_nvidia_gpu | R Documentation |
Installs required Python modules for the {transforEmotion} package, with automatic GPU detection and optional GPU-enabled module installation.
check_nvidia_gpu()
This function performs the following steps:
Checks for NVIDIA GPU availability
If GPU is detected, prompts user to choose between CPU or GPU installation
Installs core modules including transformers, torch, tensorflow, and other dependencies
For GPU installations, sets up additional GPU-specific modules via setup_gpu_modules()
The function automatically manages dependencies and versions, ensuring compatibility
between CPU and GPU variants of packages like torch, tensorflow, and torchvision.
It uses conda_install
for package management in the
'transforEmotion' conda environment.
Ensure that miniconda is installed and properly configured before running this function. For GPU support, NVIDIA drivers must be properly installed on your system.
Alexander P. Christensen <alexpaulchristensen@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.