Skip to main content

thinc-apple-ops

Make spaCy and Thinc up to 8 × faster on macOS by calling into Apple's native libraries.

⏳ Install

Make sure you have Xcode installed and then install with pip:

pip install thinc-apple-ops

🏫 Motivation

Matrix multiplication is one of the primary operations in machine learning. Since matrix multiplication is computationally expensive, using a fast matrix multiplication implementation can speed up training and prediction significantly.

Most linear algebra libraries provide matrix multiplication in the form of the standardized BLAS gemm functions. The work behind scences is done by a set of matrix multiplication kernels that are meticulously tuned for specific architectures. Matrix multiplication kernels use architecture-specific SIMD instructions for data-level parallism and can take factors such as cache sizes and intstruction latency into account. Thinc uses the BLIS linear algebra library, which provides optimized matrix multiplication kernels for most x86_64 and some ARM CPUs.

Recent Apple Silicon CPUs, such as the M-series used in Macs, differ from traditional x86_64 and ARM CPUs in that they have a separate matrix co-processor(s) called AMX. Since AMX is not well-documented, it is unclear how many AMX units Apple M CPUs have. It is certain that the (single) performance cluster of the M1 has an AMX unit and there is empirical evidence that both performance clusters of the M1 Pro/Max have an AMX unit.

Even though AMX units use a set of undocumented instructions, the units can be used through Apple's Accelerate linear algebra library. Since Accelerate implements the BLAS interface, it can be used as a replacement of the BLIS library that is used by Thinc. This is where the thinc-apple-ops package comes in. thinc-apple-ops extends the default Thinc ops, so that gemm matrix multiplication from Accelerate is used in place of the BLIS implementation of gemm. As a result, matrix multiplication in Thinc is performed on the fast AMX unit(s).

⏱ Benchmarks

Using thinc-apple-ops leads to large speedups in prediction and training on Apple Silicon Macs, as shown by the benchmarks below.

Prediction

This first benchmark compares prediction speed of the de_core_news_lg spaCy model between the M1 with and without thinc-apple-ops. Results for an Intel Mac Mini and AMD Ryzen 5900X are also provided for comparison. Results are in words per second. In this prediction benchmark, using thinc-apple-ops improves performance by 4.3 times.

CPU BLIS thinc-apple-ops Package power (Watt)
Mac Mini (M1) 6492 27676 5
MacBook Air Core i5 2020 9790 10983 9
Mac Mini Core i7 Late 2018 16364 14858 31
AMD Ryzen 5900X 22568 N/A 52

Training

In the second benchmark, we compare the training speed of the de_core_news_lg spaCy model (without NER). The results are in training iterations per second. Using thinc-apple-ops improves training time by 3.0 times.

CPU BLIS thinc-apple-ops Package power (Watt)
Mac Mini M1 2020 3.34 10.07 5
MacBook Air Core i5 2020 3.10 3.27 10
Mac Mini Core i7 Late 2018 4.71 4.93 32
AMD Ryzen 5900X 6.53 N/A 53

Metadata

Release files for thinc-apple-ops 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thinc-apple-ops 1.0.3
File Size Uploaded Provenance Actions
thinc_apple_ops-1.0.3.tar.gz 76.6 kB With provenance Details for thinc_apple_ops-1.0.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for thinc-apple-ops 1.0.3
File Actions
thinc_apple_ops-1.0.3-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.3-cp315-cp315-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.3-cp315-cp315-macosx_10_15_x86_64.whl CPython 3.15 CPython 3.15 macOS 10.15+ x86-64 Details for thinc_apple_ops-1.0.3-cp315-cp315-macosx_10_15_x86_64.whl
thinc_apple_ops-1.0.3-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.3-cp314-cp314-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.3-cp314-cp314-macosx_10_15_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.15+ x86-64 Details for thinc_apple_ops-1.0.3-cp314-cp314-macosx_10_15_x86_64.whl
thinc_apple_ops-1.0.3-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.3-cp313-cp313-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.3-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details for thinc_apple_ops-1.0.3-cp313-cp313-macosx_10_13_x86_64.whl
thinc_apple_ops-1.0.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.3-cp312-cp312-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.3-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details for thinc_apple_ops-1.0.3-cp312-cp312-macosx_10_13_x86_64.whl
thinc_apple_ops-1.0.3-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.3-cp311-cp311-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.3-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for thinc_apple_ops-1.0.3-cp311-cp311-macosx_10_9_x86_64.whl
thinc_apple_ops-1.0.3-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.3-cp310-cp310-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.3-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for thinc_apple_ops-1.0.3-cp310-cp310-macosx_10_9_x86_64.whl

Total release size: 2.2 MB

Release files / thinc_apple_ops-1.0.3.tar.gz

Download URL thinc_apple_ops-1.0.3.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4a117981f9b9f298015a2b07f7ed55543d8bb36832682d4732a7ed79db097cc4
BLAKE2b-256 checksum
How to use checksums
964a3f2a4b23f3d20e1539c9ed88f00b9f6c6502330ab22d548345bc5dec5140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp315-cp315-macosx_11_0_arm64.whl

Download URL thinc_apple_ops-1.0.3-cp315-cp315-macosx_11_0_arm64.whl
Size 178.8 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1b8e9dae53a623ac89cb1aa62056da449773771b0a4406d5ee922c1e460075d9
BLAKE2b-256 checksum
How to use checksums
5a19d5b6e8ed7634991370d5723f73b3363100a32125fca4d16db2df473bff70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp315-cp315-macosx_10_15_x86_64.whl

Download URL thinc_apple_ops-1.0.3-cp315-cp315-macosx_10_15_x86_64.whl
Size 177.2 kB
Tags CPython 3.15 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
b46ba7ce9c6c0912dbc1fcb4995ba28c38ee3784ada5fa50b1b473614f7d04cb
BLAKE2b-256 checksum
How to use checksums
c83801227a772d59f6497abbd1905bfe047ddbbb2009ed139e5f037a097d7d2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp314-cp314-macosx_11_0_arm64.whl

Download URL thinc_apple_ops-1.0.3-cp314-cp314-macosx_11_0_arm64.whl
Size 179.1 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
20ceecbcd7b961277f8cb034b6d3402213b5a3ea25f6eb0b1d0e61f7f0d1b087
BLAKE2b-256 checksum
How to use checksums
07ae0a7708b5be421b6534f41de0aac076ee832359e177b58edd19e9e16c7fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp314-cp314-macosx_10_15_x86_64.whl

Download URL thinc_apple_ops-1.0.3-cp314-cp314-macosx_10_15_x86_64.whl
Size 177.4 kB
Tags CPython 3.14 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
d0985db51355dce0b15f162481f9b727044e1e4683f7665b13709363c4cabe7c
BLAKE2b-256 checksum
How to use checksums
65050824d466315dbd95977d98fea96679dc619578831bd1915af157a0dab78d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL thinc_apple_ops-1.0.3-cp313-cp313-macosx_11_0_arm64.whl
Size 178.2 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
153d806c0a5799aae288a13cd2c3af995b6bb294418e121c8b4efa52e007622e
BLAKE2b-256 checksum
How to use checksums
d5ec6ce177ecda9ba20f6b551e631924f9283f787595ded834432f3d6bc78f40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp313-cp313-macosx_10_13_x86_64.whl

Download URL thinc_apple_ops-1.0.3-cp313-cp313-macosx_10_13_x86_64.whl
Size 177.3 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
de0e04582a62af9302148d637125b52b20ce3dc643efc8ef183bf992f3f37c56
BLAKE2b-256 checksum
How to use checksums
bf90daa13da0fa2d4b1fe308060ffade3d56350dc7de33bda3a3dbf20c4b13e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL thinc_apple_ops-1.0.3-cp312-cp312-macosx_11_0_arm64.whl
Size 179.6 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1a183008d3de90e5ef8232510337155e00704466e1ac1d2300c1ab62e6e04b4a
BLAKE2b-256 checksum
How to use checksums
22e1ab407d1fc16cd2c30c5b1490022a8bfb37fac261a431c34d2c2ec27cf981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp312-cp312-macosx_10_13_x86_64.whl

Download URL thinc_apple_ops-1.0.3-cp312-cp312-macosx_10_13_x86_64.whl
Size 178.3 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
3ac1c77951b700cec00b82fe78bb9c30d5c8805d3473cf8bfeb4237124ac38f3
BLAKE2b-256 checksum
How to use checksums
b370b0ad969456d097f5e23396a6f9c3069a0028f7114f4267883c6e6cd3aaf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL thinc_apple_ops-1.0.3-cp311-cp311-macosx_11_0_arm64.whl
Size 179.3 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ad4c930fb0cf714d35c9ab6a329c2f48b76d640b318083292ec127ae2928be60
BLAKE2b-256 checksum
How to use checksums
068935f4cc89cdcd5933abf888f50b74ecb6fc83f1e8a1eac3b34d68fa9eab68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp311-cp311-macosx_10_9_x86_64.whl

Download URL thinc_apple_ops-1.0.3-cp311-cp311-macosx_10_9_x86_64.whl
Size 177.0 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
37b2b9b2ca7c8706472f2c74f73e1060de938695c9a2b6abd59f9b067c440e98
BLAKE2b-256 checksum
How to use checksums
7b348f0df4a395de68482885e000715f0d235369e4609a973510de6b53564629
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp310-cp310-macosx_11_0_arm64.whl

Download URL thinc_apple_ops-1.0.3-cp310-cp310-macosx_11_0_arm64.whl
Size 180.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1423c4ede6db3790a64dc532e0c7038d1f478db7ea4ad520420a41cfd6d5bc50
BLAKE2b-256 checksum
How to use checksums
00cf8f1824495828208738c28e99d3a20508fbd9f61c22de52f349eff78b300c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / thinc_apple_ops-1.0.3-cp310-cp310-macosx_10_9_x86_64.whl

Download URL thinc_apple_ops-1.0.3-cp310-cp310-macosx_10_9_x86_64.whl
Size 178.1 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
a10f954e5451fb7c621a039bf734e968367414a67de8fa01612f2ed5700cd635
BLAKE2b-256 checksum
How to use checksums
4b76b195c603f90f1d9b6a6f0dfa6de9ace9cce922ae06c780e3b2d6182d2328
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for thinc-apple-ops 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for thinc_apple_ops-1.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page