spaCy/spacy/cli
Paul O'Leary McCann 3b1f552b72 Config generation fails for GPU without transformers (#11899)
If you don't have spacy-transformers installed, but try to use `init
config` with the GPU flag, you'll get an error. The issue is that the
`use_transformers` flag in the config is conflated with the GPU flag,
and then there's an attempt to access transformers config info that may
not exist.

There may be a better way to do this, but this stops the error.
2022-12-12 12:50:43 +01:00
..
project 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
templates Config generation fails for GPU without transformers (#11899) 2022-12-12 12:50:43 +01:00
__init__.py assemble CLI command (#7783) 2021-04-19 18:39:11 +10:00
_util.py Add smart_open requirement, update deprecated options (#11864) 2022-12-12 12:49:50 +01:00
assemble.py Tidy up with flake8: imports, comparisons, etc. 2021-06-28 12:08:15 +02:00
convert.py Minor fixes to convert CLI (#9465) 2021-10-14 18:37:34 +02:00
debug_config.py Add --code to spacy debug CLI 2021-03-12 09:51:26 +01:00
debug_data.py Remove some old version refs in the docs (#9448) 2021-10-21 11:17:59 +02:00
debug_model.py Tidy up with flake8: imports, comparisons, etc. 2021-06-28 12:08:15 +02:00
download.py Use minor version for compatibility check (#8403) 2021-06-21 09:39:22 +02:00
evaluate.py 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
info.py 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
init_config.py 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
init_pipeline.py fix spancat initialize with labels (#8620) 2021-07-06 19:08:25 +02:00
package.py 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
pretrain.py Check if the resume path points to a directory (#7919) 2021-04-28 09:17:15 +02:00
profile.py 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
train.py Add docs section for spacy.cli.train.train (#9545) 2021-10-29 10:36:34 +02:00
validate.py 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00