From 74fe7d122b4f35737ebcd1f5ece9027a0eb4111b Mon Sep 17 00:00:00 2001 From: Aaron Small Date: Wed, 15 Apr 2026 11:59:28 -0700 Subject: [PATCH] fix(linux): enable GPU acceleration for ONNX models Linux was pinned at transcribe-rs 0.3.3 with only whisper-vulkan, leaving all ONNX models (Parakeet, Canary, Moonshine, SenseVoice) CPU-only while macOS and Windows had GPU acceleration. Bumps to match the generic dep version and adds ort-rocm + ort-cuda features for AMD and NVIDIA GPUs. Also clarifies the accelerator description UI so users understand which setting applies to Whisper vs ONNX models. --- src-tauri/Cargo.toml | 2 +- src/i18n/locales/en/translation.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 46773382a..4e317c4cb 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -105,7 +105,7 @@ transcribe-rs = { version = "0.3.3", features = ["whisper-metal"] } [target.'cfg(target_os = "linux")'.dependencies] gtk-layer-shell = { version = "0.8", features = ["v0_6"] } gtk = "0.18" -transcribe-rs = { version = "0.3.3", features = ["whisper-vulkan"] } +transcribe-rs = { version = "0.3.8", features = ["whisper-cpp", "onnx", "whisper-vulkan", "ort-rocm", "ort-cuda"] } [patch.crates-io] tauri-runtime = { git = "https://github.com/cjpais/tauri.git", branch = "handy-2.10.2" } diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json index eef96e5be..10e8dca0f 100644 --- a/src/i18n/locales/en/translation.json +++ b/src/i18n/locales/en/translation.json @@ -258,11 +258,11 @@ "acceleration": { "whisper": { "title": "Whisper Acceleration", - "description": "Hardware acceleration for Whisper models. Auto uses GPU if available (Metal on macOS, Vulkan on Windows/Linux)." + "description": "GPU acceleration for Whisper models only. Does not affect Parakeet, Canary, or Moonshine — those use ONNX Acceleration below. Auto uses Metal on macOS, Vulkan on Windows/Linux." }, "ort": { "title": "ONNX Acceleration", - "description": "Hardware acceleration for ONNX models (Parakeet, Canary, Moonshine, etc.). DirectML on Windows is experimental. Models may fail to transcribe." + "description": "GPU acceleration for ONNX models: Parakeet, Canary, Moonshine, SenseVoice, etc. Does not affect Whisper models. Linux: ROCm (AMD) or CUDA (NVIDIA). Windows: DirectML. macOS: CPU only." }, "gpuDevice": { "title": "GPU Device",