Skip to content

Commit a82ec56

Browse files
authored
Remove cuda extras for non-linux arm in install widget (explosion#10796)
* Remove cuda extras for non-linux arm platforms in install widget * Extend cuda versions install widget * Update GPU install docs to clarify cuda
1 parent 46982cf commit a82ec56

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

website/docs/usage/index.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,14 @@ machine learning library, [Thinc](https://thinc.ai). For GPU support, we've been
129129
grateful to use the work of Chainer's [CuPy](https://cupy.chainer.org) module,
130130
which provides a numpy-compatible interface for GPU arrays.
131131
132-
spaCy can be installed on GPU by specifying `spacy[cuda]`, `spacy[cuda90]`,
133-
`spacy[cuda91]`, `spacy[cuda92]`, `spacy[cuda100]`, `spacy[cuda101]`,
134-
`spacy[cuda102]`, `spacy[cuda110]`, `spacy[cuda111]` or `spacy[cuda112]`. If you
135-
know your cuda version, using the more explicit specifier allows cupy to be
136-
installed via wheel, saving some compilation time. The specifiers should install
132+
spaCy can be installed for a CUDA-compatible GPU by specifying `spacy[cuda]`,
133+
`spacy[cuda102]`, `spacy[cuda112]`, `spacy[cuda113]`, etc. If you know your
134+
CUDA version, using the more explicit specifier allows CuPy to be installed via
135+
wheel, saving some compilation time. The specifiers should install
137136
[`cupy`](https://cupy.chainer.org).
138137
139138
```bash
140-
$ pip install -U %%SPACY_PKG_NAME[cuda92]%%SPACY_PKG_FLAGS
139+
$ pip install -U %%SPACY_PKG_NAME[cuda113]%%SPACY_PKG_FLAGS
141140
```
142141
143142
Once you have a GPU-enabled installation, the best way to activate it is to call

website/src/widgets/quickstart-install.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const CUDA = {
2323
'11.2': 'cuda112',
2424
'11.3': 'cuda113',
2525
'11.4': 'cuda114',
26+
'11.5': 'cuda115',
27+
'11.6': 'cuda116',
2628
}
2729
const LANG_EXTRAS = ['ja'] // only for languages with models
2830

@@ -48,7 +50,7 @@ const QuickstartInstall = ({ id, title }) => {
4850
const modelExtras = train ? selectedModels.filter(m => LANG_EXTRAS.includes(m)) : []
4951
const apple = os === 'mac' && platform === 'arm'
5052
const pipExtras = [
51-
hardware === 'gpu' && cuda,
53+
(hardware === 'gpu' && (platform !== 'arm' || os === 'linux')) && cuda,
5254
train && 'transformers',
5355
train && 'lookups',
5456
apple && 'apple',

0 commit comments

Comments
 (0)