Skip to content

Commit

Permalink
fix issue with GPU being available but incompatible
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Jan 4, 2024
1 parent 74e58f7 commit 9ed206c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ is closed then to get back into the environment `cd transcribe_anything` and exe
* All tests are run by `tox`, simply go to the project directory root and run it.

# Versions
* 2.3.9: Fallback to `cpu` device if `gpu` device is not compatible.
* 2.3.8: Fix --models arg which
* 2.3.7: Critical fix: fixes dependency breakage with open-ai. Fixes windows use of embedded tool.
* 2.3.6: Fixes typo in readme for installation instructions.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
EMAIL = "dont@email.me"
AUTHOR = "Zach Vorhies"
REQUIRES_PYTHON = ">=3.10.0"
VERSION = "2.3.8"
VERSION = "2.3.9"

# The text of the README file
with open(os.path.join(HERE, "README.md"), encoding="utf-8", mode="r") as fd:
Expand Down
2 changes: 1 addition & 1 deletion transcribe_anything/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def get_computing_device() -> str:
"""Get the computing device."""
try:
if torch.cuda.is_available():
if torch.cuda.is_available() and torch.cuda._check_capability(): # pylint: disable=protected-access
return "cuda"
return "cpu"
except ImportError:
Expand Down

0 comments on commit 9ed206c

Please sign in to comment.