setup_gpu_modules: Install GPU Python Modules

View source: R/setup_gpu_modules.R

setup_gpu_modulesR Documentation

Install GPU Python Modules

Description

Adds bitsandbytes, used for 4-bit quantization of the EVA-CLIP-8B vision model, to the Python environment. Equivalent to setup_modules(extras = "gpu", download_models = FALSE).

Usage

setup_gpu_modules()

Details

The CUDA build of PyTorch does not need this function: it is selected automatically when an NVIDIA GPU is detected (see setup_modules). image_scores() and video_scores() add bitsandbytes themselves when EVA-CLIP-8B is used on a GPU.

Note

This function requires NVIDIA GPU and drivers to be properly installed.

Author(s)

Alexander P. Christensen <alexpaulchristensen@gmail.com>


transforEmotion documentation built on Oct. 26, 2026, 5:07 p.m.