Reinstalls the Python environment with GPU-enabled PyTorch for faster inference with local embedding models. Requires a CUDA-compatible NVIDIA GPU and proper driver installation.
Details
This function:
Removes the existing Python environment
Creates a new environment with GPU-enabled PyTorch
Installs all HuggingFace dependencies
On Apple Silicon Macs, MPS (Metal Performance Shaders) acceleration is used automatically without needing this function.