Skip to content

Commit

Permalink
Fix AVX check for Whisper (#3405)
Browse files Browse the repository at this point in the history
* Fixed AVX check to output warning rather than exit

* whisper: bumped version and updated changelog

* Update whisper/CHANGELOG.md

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
  • Loading branch information
emwjacobson and agners committed Jan 9, 2024
1 parent 8361727 commit 8423d86
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions whisper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.2

- Convert error to warning for CPUs not supporting AVX instructions

## 1.0.1

- Handle unsupported CPU configurations
Expand Down
2 changes: 1 addition & 1 deletion whisper/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.0.1
version: 1.0.2
slug: whisper
name: Whisper
description: Speech-to-text with Whisper
Expand Down
2 changes: 1 addition & 1 deletion whisper/rootfs/etc/s6-overlay/s6-rc.d/whisper/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# ==============================================================================

if [ "$(uname -m)" == "x86_64" ] && ! grep -qw 'avx' /proc/cpuinfo; then
bashio::exit.nok "Your CPU does not support the Advanced Vector Extensions required by Whisper."
bashio::log.warning "Your CPU does not support Advanced Vector Extensions (AVX). Whisper will run slower than normal."
fi

exec python3 -m wyoming_faster_whisper \
Expand Down

0 comments on commit 8423d86

Please sign in to comment.