-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install CUDA enabled PyTorch for Windows and Linux
PyTorch's Windows wheel files on pypi.org are the CPU build version, it'll throw `AssertionError: Torch not compiled with CUDA enabled` when spaCy loads trf model. Reinstall CUDA enabled torch version with command from PyTorch's document: https://pytorch.org/get-started/locally Linux's wheel files on pypi are CUDA enabled, but torch's doc also use the `--extra-index-url` option for CUDA 11.6 so it's better reinstall that as well.
- Loading branch information
Showing
5 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,3 +175,4 @@ class Prefs(TypedDict): | |
choose_format_manually: bool | ||
wiktionary_gloss_lang: str | ||
use_cpu: bool | ||
cuda: str |