Thinc

Latest version: v9.0.0

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

Scan your dependencies

Page 8 of 13

7.3.0

Not secure
✨ New features and improvements

* Add [Mish](https://github.com/digantamisra98/Mish) activation. Use via the `thinc.v2v.Mish` layer, which computes `f(X) = mish(W X + b)`. CUDA and Cython kernels are included to make the activation efficient.
* Add experimental support for [RAdam](https://github.com/LiyuanLucasLiu/RAdam) to the optimizer. Enable it with the keyword argument `use_radam` to `True`. In preliminary testing, it's a small change that's worth enabling.
* Add experimental support for [Lookahead](https://github.com/alphadl/lookahead.pytorch) to the optimizer. Enable it by setting the keyword argument `lookahead_k` to a positive integer. In preliminary testing, it helps if you're not using parameter averaging, but with averaging it's a bit worse.
* Add experimental support for LARS to the optimizer. Enable it by setting `use_lars` to `True`. In preliminary testing, this hasn't worked well at all – possibly our implementation is broken.

🙏 Acknowledgements

Big thanks to digantamisra98 for the [Mish](https://github.com/digantamisra98/Mish) activation, especially the extensive experiments and simple gradient calculation. We expect to be using the activation in the next round of spaCy models.

Gratitude to the [fast.ai](https://fast.ai) community for their crowd-sourced experiments, and especially to users LessW2020, MGrankin and others for their optimizer implementations, which we referenced heavily when implementing the optimizers for Thinc. More importantly, it's super helpful to have a community filtering the deluge of papers for techniques that work on a few different datasets. [This thread](https://forums.fast.ai/t/meet-radam-imo-the-new-state-of-the-art-ai-optimizer/52656) on optimization research was particularly helpful.

7.2.0

Not secure
✨ New features and improvements

* Ditch `thinc_gpu_ops` for simpler GPU install.
* Improve GPU support and PyTorch wrapper.

🔴 Bug fixes

* Fix issue 47: Fix `ExtractWindow` `nW>=2`.
* Fix issue 51: Ditch `thinc_gpu_ops` for simpler GPU install.
* Fix issue 88: Fix Quora URL in datasets.
* Fix issue 115: Fix compilation on cygwin.

👥 Contributors

Thanks to rupsaijna and KoichiYasuoka for the pull requests!

7.1.1

Not secure
✨ New features and improvements

* Allow support for [`preshed`](https://github.com/explosion/preshed) v3.0.0, which includes some bug fixes when items are deleted from the table, and also features Bloom filters.
* Use `collections.abc` when possible and avoid deprecation warning.

👥 Contributors

Thanks to hervenicol for the pull request!

7.1.0

Not secure
✨ New features and improvements

* Support read-only numpy arrays, by specifying `const` in Cython memory-view types. Read-only arrays are helpful for shared-memory multiprocessing, e.g. from Apache Arrow's Plasma object store.

* Update to `cython-blis` v0.4, which supports non-x86_64 CPU architectures. For wide (but slow) support, you can specify the environment variable `BLIS_ARCH=generic` before installing.

7.0.8

Not secure
🔴 Bug fixes

* Fix version number for PyPi.

7.0.7

Not secure
🔴 Bug fixes

* Avoid allocating a negative shape for ngrams.

👥 Contributors

Thanks to svlandeg for the pull request!

Page 8 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.