Thinc

Latest version: v9.1.1

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 14

8.2.0

✨ New features and improvements

To improve loading times and reduce conflicts, MXNet and TensorFlow are no longer imported automatically (890).

⚠️ Backwards incompatibilities

MXNet and TensorFlow support needs to be enabled explicitly. Previously, MXNet and TensorFlow were imported automatically if they were available in the current environment.

To enable MXNet:

python
from thinc.api import enable_mxnet
enable_mxnet()


To enable TensorFlow:

python
from thinc.api import enable_tensorflow
enable_tensorflow()


With spaCy CLI commands you can provide this custom code using `-c code.py`. For training use `spacy train -c code.py` and to package your code with your pipeline use `spacy package -c code.py`.

Future deprecation warning: built-in MXNet and TensorFlow support will be removed in Thinc v9. If you need MXNet or TensorFlow support in the future, you can transition to using a custom copy of the current `MXNetWrapper` or `TensorFlowWrapper` in your package or project.

👥 Contributors

adrianeboyd, danieldk, honnibal, ines, svlandeg

8.1.12

🔴 Bug fixes

- Support zero-length batches and hidden sizes in `reduce_{max,mean,sum}` (882).
- Preserve values with dtype for `NumpyOps/CupyOps.asarray` (897).

👥 Contributors

adrianeboyd, danieldk, honnibal, ines, svlandeg

8.1.11

✨ New features and improvements

- Update NumPy build constraints for NumPy v1.25 (885).
- Switch from `distutils` to `setuptools`/`sysconfig` (888).
- Allow Pydantic v2 using transitional v1 support (891).

📖 Documentation and examples

- Fix typo in example code (879).

👥 Contributors

adrianeboyd, Ankush-Chander, danieldk, honnibal, ines, svlandeg

8.1.10

✨ New features and improvements

* Implement `pad` as a CUDA kernel (860).
* Avoid h2d - d2h roundtrip when using `unflatten` (861).
* Improve exception when CuPy/PyTorch MPS is not installed (863).
* Lazily load custom `cupy` kernels (870).

🔴 Bug fixes

* Initially load TorchScript models on CPU for MPS devices (864).

👥 Contributors

adrianeboyd, danieldk, honnibal, ines, shadeMe, svlandeg

8.1.9

🔴 Bug fixes

* Fix type signature of `Model.begin_update` (858).

👥 Contributors

danieldk, honnibal, ines

8.1.8

✨ New features and improvements

* Add `premap_ids.v1` layer for mapping from ints to ints (815).
* Update to mypy 1.0.x (848).

🔴 Bug fixes

* Make resizable layer work with textcat and transformers (820).

📖 Documentation

* Update website including `Dockerfile` (843, 844, 845).

👥 Contributors

adrianeboyd, danieldk, essenmitsosse, honnibal, ines, kadarakos, patjouk, polm, svlandeg

Page 2 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.