View source: R/setup_modules.R
| check_nvidia_gpu | R Documentation |
Installs required Python modules for the {transforEmotion} package, using uv for fast, reproducible environments. Optionally detects GPU and can add GPU-oriented packages.
check_nvidia_gpu()
This function performs the following steps:
Detects NVIDIA GPU availability automatically
Installs core modules including transformers, torch, tensorflow, and other dependencies
For GPU systems, adds GPU-specific packages (and optional extras via setup_gpu_modules())
The function declares Python requirements via py_require,
which uses uv to resolve and cache an ephemeral environment on first use. No
conda/Miniconda is required.
For GPU support, NVIDIA drivers must be properly installed on your system. If you need vendor-specific wheels (e.g., for CUDA), configure package indexes prior to calling this function (see Notes in documentation).
Alexander P. Christensen <alexpaulchristensen@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.