Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.01 KB

CUDA.md

File metadata and controls

17 lines (13 loc) · 1.01 KB

How to enable the cuda ONNX execution provider

On Linux, or the Windows Subsystem for Linux (WSL), you can enable CUDA-based GPU acceleration for a number of engines, by selecting the cuda ONNX execution provider, usually thorough an option like [engine].provider=cuda.

Engines where CUDA is supported include:

  • whisper (speech recognition)
  • kokoro (speech synthesis)
  • vits (speech synthesis)
  • silero (speech recognition)
  • mdx-net (source separation)

Steps

  • Download and globally install CUDA Toolkit 12.x based on the instructions in the linked download page
  • Download and globally install cuDNN 9.x based on the instructions in the linked download page
  • Reinstall Echogarden

Reinstallation is needed because the onnxruntime-node dependency package runs a post-install script that attempts to detect the global installation of CUDA, and then conditionally downloads additional files required for it to work.