ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.
Python ai-agentsamdcomfyuidockerllama-cppllmlocal-ain8nnvidiaopen-webuiragself-hostedspeech-to-textstrix-halotext-to-speechworkflow-automation
fix(installer): run Whisper on the CPU image on arm64 NVIDIA hosts (#8271)
Mike Bradley1b595c909074
diff --git a/ods/.env.example b/ods/.env.exampleindex 90d0c8948..942e83e23 100644--- a/ods/.env.example+++ b/ods/.env.example@@ -230,8 +230,8 @@ SYSTEM_RAM_GB=32# ─── Architecture-specific overrides ────────────────────────────────────────────# WHISPER_ACCELERATION is normally written by the installer. On NVIDIA systems-# with drivers too old for the CUDA Whisper image, ODS keeps the rest of the GPU-# stack enabled and runs Whisper on CPU.+# with drivers too old for the CUDA Whisper image, or on arm64 (its arm64 build+# has no CUDA), ODS keeps the rest of the GPU stack enabled and runs Whisper on CPU.# WHISPER_ACCELERATION=cuda# WHISPER_IMAGE is a forward-compat escape hatch. The fallback may set the# CPU image when the CUDA tag cannot run on the installed driver.diff --git a/ods/.env.schema.json b/ods/.env.schema.jsonindex 764816b2d..7c301f6cc 100644--- a/ods/.env.schema.json+++ b/ods/.env.schema.json@@ -728,7 +728,7 @@},"WHISPER_ACCELERATION": {"type": "string",- "description": "Whisper runtime acceleration selected independently from the primary LLM backend. NVIDIA installs fall back to cpu when the installed driver cannot run the CUDA image.",+ "description": "Whisper runtime acceleration selected independently from the primary LLM backend. NVIDIA installs fall back to cpu when the installed driver cannot run the CUDA image, and on arm64, where that image has no CUDA.","enum": ["cpu", "cuda"]},"LLAMA_CPU_LIMIT": {diff --git a/ods/installers/lib/detection.sh b/ods/installers/lib/detection.shindex efc5cc185..b640a1848 100755--- a/ods/installers/lib/detection.sh+++ b/ods/installers/lib/detection.sh@@ -646,10 +646,20 @@ ods_wsl_nvidia_driver_too_old() {ods_whisper_cuda_supported() {local backend="${1:-${GPU_BACKEND:-cpu}}"local driver_major="${2:-${DRIVER_VERSION:-0}}"+ # The pinned Speaches CUDA image has CUDA on amd64 only: its arm64 variant+ # ships a CTranslate2 "not compiled with CUDA support". A GB300 then ran+ # large-v3-turbo on 4 CPU cores, 17 s per 4 s clip; the CPU image's base+ # model took 1.2 s (Workstation06, 2026-10-27).+ ods_host_is_arm64 && return 1[[ "$backend" == "nvidia" && "$driver_major" =~ ^[0-9]+$ \&& "$driver_major" -ge "$MIN_WHISPER_CUDA_DRIVER_VERSION" ]]}+# HOST_ARCH is detect_host_arch's value (amd64/arm64) once Phase 02 has run.+ods_host_is_arm64() {+ [[ "${HOST_ARCH:-$(uname -m 2>/dev/null || echo unknown)}" =~ ^(arm64|aarch64)$ ]]+}+_ods_csv_add_unique() {local variable_name="$1" value="$2" current=""current="${!variable_name:-}"diff --git a/ods/installers/phases/02-detection.sh b/ods/installers/phases/02-detection.shindex 1ad98d4bf..025f8b815 100755--- a/ods/installers/phases/02-detection.sh+++ b/ods/installers/phases/02-detection.sh@@ -289,7 +289,9 @@ fi# older drivers while selecting CPU Whisper and suppressing only its GPU# overlay. This mirrors the existing Windows installer contract.ods_configure_whisper_acceleration "$GPU_BACKEND" "${DRIVER_VERSION:-0}"-if [[ "$WHISPER_ACCELERATION_FORCED_CPU" == "true" ]]; then+if [[ "$WHISPER_ACCELERATION_FORCED_CPU" == "true" ]] && ods_host_is_arm64; then+ log "Whisper's CUDA image has no GPU support on arm64; using CPU Whisper with the base model while keeping GPU inference enabled"+elif [[ "$WHISPER_ACCELERATION_FORCED_CPU" == "true" ]]; thenai_warn "Whisper CUDA requires NVIDIA driver ${MIN_WHISPER_CUDA_DRIVER_VERSION}+; detected ${DRIVER_VERSION:-unknown}. Using CPU Whisper while keeping GPU inference enabled."elif [[ "$WHISPER_ACCELERATION" == "cpu" && "$GPU_BACKEND" == "nvidia" ]]; thenlog "Whisper CPU acceleration explicitly selected; NVIDIA inference remains enabled"diff --git a/ods/tests/test-linux-whisper-cuda-gating.sh b/ods/tests/test-linux-whisper-cuda-gating.shindex 0f854ff4a..440e917af 100644--- a/ods/tests/test-linux-whisper-cuda-gating.sh+++ b/ods/tests/test-linux-whisper-cuda-gating.sh@@ -13,6 +13,8 @@ log() { :; }warn() { :; }# shellcheck disable=SC1091source "$ODS_ROOT/installers/lib/detection.sh"+# detect_host_arch's value; the driver cases below are about amd64 hosts.+HOST_ARCH=amd64assert_eq() {local label="$1" expected="$2" actual="$3"@@ -54,6 +56,25 @@ assert_eq "explicit CPU" "cpu" "$WHISPER_ACCELERATION"assert_eq "CPU image selected" "ghcr.io/speaches-ai/speaches:0.9.0-rc.3-cpu@sha256:2163775b6df5e451a71200e8f675fed68dbd8ab184fc604453d549e486f22fd2" "$WHISPER_IMAGE"assert_eq "overlay suppressed" "whisper" "$ODS_SKIP_GPU_OVERLAYS"+echo ""+echo "=== arm64 NVIDIA keeps GPU inference but runs Whisper on the CPU image ==="+# Workstation06 (2026-10-27): the CUDA image's arm64 CTranslate2 has no CUDA,+# so large-v3-turbo ran on 4 CPU cores at 17 s per 4 s clip; base took 1.2 s.+for arch in arm64 aarch64; do+ HOST_ARCH=$arch+ WHISPER_ACCELERATION=cuda+ WHISPER_IMAGE=ghcr.io/speaches-ai/speaches:0.9.0-rc.3-cuda+ AUDIO_STT_MODEL=deepdml/faster-whisper-large-v3-turbo-ct2+ ODS_SKIP_GPU_OVERLAYS=""+ ods_configure_whisper_acceleration nvidia 610+ assert_eq "$arch acceleration" "cpu" "$WHISPER_ACCELERATION"+ assert_eq "$arch forced fallback" "true" "$WHISPER_ACCELERATION_FORCED_CPU"+ assert_eq "$arch CPU image" "ghcr.io/speaches-ai/speaches:0.9.0-rc.3-cpu@sha256:2163775b6df5e451a71200e8f675fed68dbd8ab184fc604453d549e486f22fd2" "$WHISPER_IMAGE"+ assert_eq "$arch CPU model" "Systran/faster-whisper-base" "$AUDIO_STT_MODEL"+ assert_eq "$arch only Whisper overlay skipped" "whisper" "$ODS_SKIP_GPU_OVERLAYS"+done+HOST_ARCH=amd64+echo ""echo "=== Resolver honors persisted CPU acceleration ==="CPU_FLAGS=$(ODS_SKIP_GPU_OVERLAYS= WHISPER_ACCELERATION=cpu "$ODS_ROOT/scripts/resolve-compose-stack.sh" \