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.2

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.2
File Size Uploaded Provenance Actions
thinc_apple_ops-1.0.2.tar.gz 76.5 kB With provenance Details for thinc_apple_ops-1.0.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for thinc-apple-ops 1.0.2
File Actions
thinc_apple_ops-1.0.2-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.2-cp315-cp315-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.2-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.2-cp315-cp315-macosx_10_15_x86_64.whl
thinc_apple_ops-1.0.2-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.2-cp314-cp314-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.2-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.2-cp314-cp314-macosx_10_15_x86_64.whl
thinc_apple_ops-1.0.2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.2-cp313-cp313-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.2-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.2-cp313-cp313-macosx_10_13_x86_64.whl
thinc_apple_ops-1.0.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.2-cp312-cp312-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.2-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.2-cp312-cp312-macosx_10_13_x86_64.whl
thinc_apple_ops-1.0.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.2-cp311-cp311-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.2-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.2-cp311-cp311-macosx_10_9_x86_64.whl
thinc_apple_ops-1.0.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for thinc_apple_ops-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
thinc_apple_ops-1.0.2-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.2-cp310-cp310-macosx_10_9_x86_64.whl

Total release size: 2.2 MB

Release files / thinc_apple_ops-1.0.2.tar.gz

Download URL thinc_apple_ops-1.0.2.tar.gz
Size 76.5 kB
Tags Source
SHA-256 checksum
How to use checksums
44192e5a19d6ed6e3c68cb4b3ba8869d3471ebc4fe01e7ed8cb1341f1472322b
BLAKE2b-256 checksum
How to use checksums
954c5214e1ab2c75999924ef7b0f7729a93253ccd967d464f62dd464e4f77135
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
961be614383f28f668c4f27d34a62cc41a06e41cefffbf53a87f624c29001d7c
BLAKE2b-256 checksum
How to use checksums
5db3166c502daa9c9ac216fd5e1556d1152d1264b2c36968fcabcf475276f960
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
f6e27e64196b14a15a7a8605725a499e522f87893f9b3976c8d422887e63ac08
BLAKE2b-256 checksum
How to use checksums
4c9ca4b6b6c7e9127c858ef30f6ae94a92c5a7d8978966350195898179296fe4
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
3002d5d4db57b9e8c914902e26cf8c0fe7c7cb1b9190fc9a7fe42fd85d9815c0
BLAKE2b-256 checksum
How to use checksums
052a7a6d2e37e7f9730ddf406114602880beadfcf2812cfef4c320960cd269c8
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
75d3ddb0bf147744e585d7ca90e33ddbb3551548abd68649942d0a219482715f
BLAKE2b-256 checksum
How to use checksums
c455ad5c5e1c60463d7dfb5f5f0b17c0e85486f5a8ee5e96cb2ef778588cfba2
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
48a2498c3d812038c18343f009475b05f8700980588907fa75984645817ee5f4
BLAKE2b-256 checksum
How to use checksums
5227af4a7c5c58fc244bcd7174e3a0c7c1e8490c84fd7c0d240eaf429aa310a0
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
cb84f9e7be3053b1da589c08a1063db46473134bb878ff41522e268df0235e49
BLAKE2b-256 checksum
How to use checksums
6cbb6ecbb50cb8f317ee8b3641f8ce8856ec1b05730f1872f5b43312b5f3dfca
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
65dd9cf320d349267c94dc6a31d4a57459641c67091005355f19f72b479a67d9
BLAKE2b-256 checksum
How to use checksums
9e21026534828cd45f3d84cfa04ee82c77991402a51431d6c71188d85050ea1b
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
c515ac11e370a9987f036f4cd3c8a287f3dd65d1f2898bee9fb4e17616db2ec0
BLAKE2b-256 checksum
How to use checksums
0814db94a3c4e9a476795a8c88f497d8488b8e17c58466b2fe8aed47ba612410
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
9c024c14a32c8e62eafc58e0aa6eff2d150462ee2734dd33ba1cbab9de13922a
BLAKE2b-256 checksum
How to use checksums
e58843ab7f90c0957a2c5929c2254d42bcf381773599e80241f79168cac2ad3e
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
a63dc92301853a8cfbdba123ac07bc7ed369637c7e23bfeeee94d5aadcbe546c
BLAKE2b-256 checksum
How to use checksums
b3f66d5f2e1c39606b5efd7d4e56c08a4f044acf7c53cde6796dab253a7e9f2b
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-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
ac479379f1a4ff0dda2d4c2abb85264ba2dbf1396056bbc7f38f951d77a5b467
BLAKE2b-256 checksum
How to use checksums
27f9f891bc5a884203712eb653faa21addc69aefbd069dff766e70dbc613de73
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 26, 2026.

Transparency log

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

Download URL thinc_apple_ops-1.0.2-cp310-cp310-macosx_10_9_x86_64.whl
Size 178.0 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
0d0dc671ae25f2f39f2d7b4d2e784127d929cc2d711450da9e7a816e63b2a1de
BLAKE2b-256 checksum
How to use checksums
67ee347640933c637e306aff00f010da783ac45cab081419175324a954a158b0
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 26, 2026.

Transparency log

Security for thinc-apple-ops 1.0.2

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.2.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 26, 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