mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
85dd2b6c04
* Parser: use C saxpy/sgemm provided by the Ops implementation This is a backport of https://github.com/explosion/spaCy/pull/10747 from the parser refactor branch. It eliminates the explicit calls to BLIS, instead using the saxpy/sgemm provided by the Ops implementation. This allows us to use Accelerate in the parser on M1 Macs (with an updated thinc-apple-ops). Performance of the de_core_news_lg pipe: BLIS 0.7.0, no thinc-apple-ops: 6385 WPS BLIS 0.7.0, thinc-apple-ops: 36455 WPS BLIS 0.9.0, no thinc-apple-ops: 19188 WPS BLIS 0.9.0, thinc-apple-ops: 36682 WPS This PR, thinc-apple-ops: 38726 WPS Performance of the de_core_news_lg pipe (only tok2vec -> parser): BLIS 0.7.0, no thinc-apple-ops: 13907 WPS BLIS 0.7.0, thinc-apple-ops: 73172 WPS BLIS 0.9.0, no thinc-apple-ops: 41576 WPS BLIS 0.9.0, thinc-apple-ops: 72569 WPS This PR, thinc-apple-ops: 87061 WPS * Require thinc >=8.1.0,<8.2.0 * Lower thinc lowerbound to 8.1.0.dev0 * Use best CPU ops for CBLAS when the parser model is on the GPU * Fix another unguarded cblas() call * Fix: use ops as a shorthand for self.model.ops Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com> Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
38 lines
859 B
Plaintext
38 lines
859 B
Plaintext
# Our libraries
|
|
spacy-legacy>=3.0.9,<3.1.0
|
|
spacy-loggers>=1.0.0,<2.0.0
|
|
cymem>=2.0.2,<2.1.0
|
|
preshed>=3.0.2,<3.1.0
|
|
thinc>=8.1.0.dev0,<8.2.0
|
|
ml_datasets>=0.2.0,<0.3.0
|
|
murmurhash>=0.28.0,<1.1.0
|
|
wasabi>=0.9.1,<1.1.0
|
|
srsly>=2.4.3,<3.0.0
|
|
catalogue>=2.0.6,<2.1.0
|
|
typer>=0.3.0,<0.5.0
|
|
pathy>=0.3.5
|
|
# Third party dependencies
|
|
numpy>=1.15.0
|
|
requests>=2.13.0,<3.0.0
|
|
tqdm>=4.38.0,<5.0.0
|
|
pydantic>=1.7.4,!=1.8,!=1.8.1,<1.10.0
|
|
jinja2
|
|
langcodes>=3.2.0,<4.0.0
|
|
# Official Python utilities
|
|
setuptools
|
|
packaging>=20.0
|
|
typing_extensions>=3.7.4.1,<4.0.0.0; python_version < "3.8"
|
|
# Development dependencies
|
|
pre-commit>=2.13.0
|
|
cython>=0.25,<3.0
|
|
pytest>=5.2.0,!=7.1.0
|
|
pytest-timeout>=1.3.0,<2.0.0
|
|
mock>=2.0.0,<3.0.0
|
|
flake8>=3.8.0,<3.10.0
|
|
hypothesis>=3.27.0,<7.0.0
|
|
mypy>=0.910,<=0.960
|
|
types-dataclasses>=0.1.3; python_version < "3.7"
|
|
types-mock>=0.1.1
|
|
types-requests
|
|
black>=22.0,<23.0
|