NumPy 2.0.0 is the first major release since 2006. It is the result of
11 months of development since the last feature release and is the work
of 212 contributors spread over 1078 pull requests. It contains a large
number of exciting new features as well as changes to both the Python
and C APIs.
This major release includes breaking changes that could not happen in a
regular minor (feature) release - including an ABI break, changes to
type promotion rules, and API changes which may not have been emitting
deprecation warnings in 1.26.x. Key documents related to how to adapt to
changes in NumPy 2.0, in addition to these release notes, include:
A new variable-length string dtype, numpy.dtypes.StringDType and a new
numpy.strings namespace with performant ufuncs for string operations,
Support for float32 and longdouble in all
numpy.fft functions,
Support for the array API standard in the main numpy
namespace.
Performance improvements:
Sorting functions sort, argsort,
partition, argpartition have been
accelerated through the use of the Intel x86-simd-sort and
Google Highway libraries, and may see large (hardware-specific)
speedups,
macOS Accelerate support and binary wheels for macOS >=14, with
significant performance improvements for linear algebra
operations on macOS, and wheels that are about 3 times smaller,
numpy.char fixed-length string operations have
been accelerated by implementing ufuncs that also support
numpy.dtypes.StringDType in addition to the
fixed-length string dtypes,
A new tracing and introspection API,
numpy.lib.introspect.opt_func_info, to determine
which hardware-specific kernels are available and will be
dispatched to.
numpy.save now uses pickle protocol version 4 for saving
arrays with object dtype, which allows for pickle objects larger
than 4GB and improves saving speed by about 5% for large arrays.
Python API improvements:
... (truncated)
Commits
1d49c7f Merge pull request #26698 from charris/prepare-2.0.0
Fix kernel crash on tensor.dtype.to_complex() after ~100 calls in ipython kernel (pytorch/pytorch#125154)
Release tracker pytorch/pytorch#125425 contains all relevant pull requests related to this release as well as links to related issues.
PyTorch 2.3: User-Defined Triton Kernels in torch.compile, Tensor Parallelism in Distributed
PyTorch 2.3 Release notes
Highlights
Backwards Incompatible Changes
Deprecations
New Features
Improvements
Bug fixes
Performance
Documentation
Highlights
We are excited to announce the release of PyTorch® 2.3! PyTorch 2.3 offers support for user-defined Triton kernels in torch.compile, allowing for users to migrate their own Triton kernels from eager without experiencing performance complications or graph breaks. As well, Tensor Parallelism improves the experience for training Large Language Models using native PyTorch functions, which has been validated on training runs for 100B parameter models.
This release is composed of 3393 commits and 426 contributors since PyTorch 2.2. We want to sincerely thank our dedicated community for your contributions. As always, we encourage you to try these out and report any issues as we improve 2.3. More information about how to get started with the PyTorch 2-series can be found at our Getting Started page.
Add warning when "alias" is set in ignored Annotated field by @nix010 in #9170
Support serialization of some serializable defaults in JSON schema by @sydney-runkle in #9624
Relax type specification for __validators__ values in create_model by @sydney-runkle in #9697
Breaking Change: Improve smart union matching logic by @sydney-runkle in pydantic/pydantic-core#1322
You can read more about our smart union matching logic here. In some cases, if the old behavior
is desired, you can switch to left-to-right mode and change the order of your Union members.
Performance
Internal Improvements
⚡️ Speed up _display_error_loc() by 25% in pydantic/v1/error_wrappers.py by @misrasaurabh1 in #9653
⚡️ Speed up _get_all_json_refs() by 34% in pydantic/json_schema.py by @misrasaurabh1 in #9650
⚡️ Speed up is_pydantic_dataclass() by 41% in pydantic/dataclasses.py by @misrasaurabh1 in #9652
⚡️ Speed up to_snake() by 27% in pydantic/alias_generators.py by @misrasaurabh1 in #9747
⚡️ Speed up unwrap_wrapped_function() by 93% in pydantic/_internal/_decorators.py by @misrasaurabh1 in #9727
Fixes
Replace __spec__.parent with __package__ by @hramezani in #9331
Add warning when "alias" is set in ignored Annotated field by @nix010 in #9170
Support serialization of some serializable defaults in JSON schema by @sydney-runkle in #9624
Relax type specification for __validators__ values in create_model by @sydney-runkle in #9697
Breaking Change: Improve smart union matching logic by @sydney-runkle in pydantic/pydantic-core#1322
You can read more about our smart union matching logic here. In some cases, if the old behavior
is desired, you can switch to left-to-right mode and change the order of your Union members.
Performance
Internal Improvements
⚡️ Speed up _display_error_loc() by 25% in pydantic/v1/error_wrappers.py by @misrasaurabh1 in #9653
⚡️ Speed up _get_all_json_refs() by 34% in pydantic/json_schema.py by @misrasaurabh1 in #9650
⚡️ Speed up is_pydantic_dataclass() by 41% in pydantic/dataclasses.py by @misrasaurabh1 in #9652
⚡️ Speed up to_snake() by 27% in pydantic/alias_generators.py by @misrasaurabh1 in #9747
⚡️ Speed up unwrap_wrapped_function() by 93% in pydantic/_internal/_decorators.py by @misrasaurabh1 in #9727
Fixes
Replace __spec__.parent with __package__ by @hramezani in #9331
#12355: Fix possible catastrophic performance slowdown on a certain parametrization pattern involving many higher-scoped parameters.
#12367: Fix a regression in pytest 8.2.0 where unittest class instances (a fresh one is created for each test) were not released promptly on test teardown but only on session teardown.
#12381: Fix possible "Directory not empty" crashes arising from concurent cache dir (.pytest_cache) creation. Regressed in pytest 8.2.0.
Improved Documentation
#12290: Updated Sphinx theme to use Furo instead of Flask, enabling Dark mode theme.
#12356: Added a subsection to the documentation for debugging flaky tests to mention
lack of thread safety in pytest as a possible source of flakyness.
#12363: The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.
8.2.1
pytest 8.2.1 (2024-05-19)
Improvements
#12334: Support for Python 3.13 (beta1 at the time of writing).
Bug Fixes
#12120: Fix [PermissionError]{.title-ref} crashes arising from directories which are not selected on the command-line.
#12191: Keyboard interrupts and system exits are now properly handled during the test collection.
#12300: Fixed handling of 'Function not implemented' error under squashfuse_ll, which is a different way to say that the mountpoint is read-only.
#12308: Fix a regression in pytest 8.2.0 where the permissions of automatically-created .pytest_cache directories became rwx------ instead of the expected rwxr-xr-x.
Trivial/Internal Changes
#12333: pytest releases are now attested using the recent Artifact Attestation support from GitHub, allowing users to verify the provenance of pytest's sdist and wheel artifacts.
Fix error reporting on cached run after uninstallation of third party library (Shantanu, PR 17420)
Acknowledgements
Thanks to all mypy contributors who contributed to this release:
Alex Waygood
Ali Hamdan
Edward Paget
Evgeniy Slobodkin
Hashem
hesam
Hugo van Kemenade
Ihor
James Braza
Jelle Zijlstra
jhance
Jukka Lehtosalo
Loïc Simon
Marc Mueller
Matthieu Devlin
Michael R. Crusoe
Nikita Sobolev
Oskari Lehto
Riccardo Di Maio
Richard Si
roberfi
Roman Solomatin
Sam Xifaras
Shantanu
Spencer Brown
Srinivas Lade
Tamir Duberstein
youkaichao
I’d also like to thank my employer, Dropbox, for supporting mypy development.
Mypy 1.9
We’ve just uploaded mypy 1.9 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Breaking Changes
Because the version of typeshed we use in mypy 1.9 doesn't support 3.7, neither does mypy 1.9. (Jared Hance, PR 16883)
... (truncated)
Commits
c28b525 [1.10 backport] Fix error reporting on cached run after uninstallation of thi...
- - Add ``windir`` to the default list of Windows ``pass_env`` environment variables. - by :user:`kurtmckee` (:issue:`3302`)
Improved Documentation - 4.16.0
Fix typo in configuration example and fix broken link to code style guide. - by :user:srenfo (:issue:3297)
v4.15.1 (2024-06-05)
Features - 4.15.1
- Fix ``skip_missing_interpreters`` option for ``package = wheel`` (:issue:`3269`)
Bugfixes - 4.15.1
Fix section substitution with setenv. (:issue:3262)
Allow ConfigSet.add_config to receive parameterized generics for of_type. (:issue:3288)
v4.15.0 (2024-04-26)
Features - 4.15.0
- Add support for multiple appending override options (-x, --override) on command line - by :user:`amitschang`. (:issue:`3261`)
- Add support for inverting exit code success criteria using bang (!) (:issue:`3271`)
Bugfixes - 4.15.0
Fix issue that the leading character c was dropped from packages in constraints files - by :user:jugmac00. (:issue:3247)
Allow appending to deps with --override testenv.deps+=foo - by :user:stefanor. (:issue:3256)
Fix non-existing branch rewrite in the documentation to main. (:issue:3257)
Update test typing for build 1.2.0, which has an explicit Distribution type - by :user:stefanor. (:issue:3260)
Fix broken input parsing for --discover flag. - by :user:mimre25 (:issue:3272)
Improved Documentation - 4.15.0
- Rephrase ``--discover`` flag's description to avoid confusion between paths and executables. - by :user:`mimre25` (:issue:`3274`)
v4.14.2 (2024-03-22)
Bugfixes - 4.14.2
- Add provision arguments to ToxParser to fix crash when provisioning new tox environment without list-dependencies by :user:`seyidaniels` (:issue:`3190`)
</tr></table>
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/tox-dev/tox/commit/5646274f1a3cb681b70c1eb8470bbadc871ee3fc"><code>5646274</code></a> release 4.16.0</li>
<li><a href="https://github.com/tox-dev/tox/commit/b12fa626520aa581e53deca76f622f547cfb3ff0"><code>b12fa62</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/tox-dev/tox/issues/3300">#3300</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/264d44f3e2c97d6ed5cf194cb78a8bde5f80998c"><code>264d44f</code></a> Add <code>windir</code> to the default list of <code>pass_env</code> variables on Windows (<a href="https://redirect.github.com/tox-dev/tox/issues/3303">#3303</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/698f1dd6634c0df9fc56d14be2292e5f0764f15c"><code>698f1dd</code></a> Fix tests after new setuptools (<a href="https://redirect.github.com/tox-dev/tox/issues/3299">#3299</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/cf8db09e22a8cad11cc42c78216d4cc74fb63c6a"><code>cf8db09</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/tox-dev/tox/issues/3286">#3286</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/a261614f34f1b1831b986e06af28170b43224537"><code>a261614</code></a> Fix two small documentation issues (<a href="https://redirect.github.com/tox-dev/tox/issues/3297">#3297</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/8bf2fbd0ff2da12678304...
_Description has been truncated_
Updates the requirements on numpy, torch, horde-sdk, horde-engine, horde-model-reference, pydantic, pytest, mypy, ruff, tox and pre-commit to permit the latest version. Updates
numpy
from 1.26.4 to 2.0.0Release notes
Sourced from numpy's releases.
... (truncated)
Commits
1d49c7f
Merge pull request #26698 from charris/prepare-2.0.02103511
DOC: Remove duplicate in author list.db8030e
BUG: Change cibuildwheel version [wheel build]1a68264
REL: Prepare for the NumPy 2.0.0 release [wheel build]c8665ba
Merge pull request #26696 from charris/backport-26582103f4dd
Merge pull request #26697 from charris/backport-25963c193dcd
Merge pull request #26695 from charris/backport-266678fa8191
BUG: Fix bug in numpy.pad() (#25963)ece3559
BUG: weighted nanpercentile, nanquantile and multi-dim q (#26582)b31e195
BUG: Adds asanyarray to start of linalg.cross (#26667)Updates
torch
from 2.2.2 to 2.3.1Release notes
Sourced from torch's releases.
... (truncated)
Commits
63d5e92
[EZ] Pin scipy to 1.12 for Py-3.12 (#127322)91bdec3
Update hf_BirdBird periodic-dynamo-benchmarks results (#127312)d44533f
Put back "[Release only] Release 2.3 start using triton package from pypi"" (...bd1040c
[DSD] Fix to remove non_persistent buffer in distributed state dict (#125337)...81b8854
[DSD] Add a test to verify FSDP lazy initialization case (#127069) (#127130)e63004b
[DCP][state_dict] Remove the check of FSDP has root (#121544) (#126557)00804a7
[DSD] Correctly handle _extra_state (#125336) (#126567)cd033a1
[Cherry-pick][DCP][AC] Add test for apply AC with FSDP1 (#126935) (#126992)19058a6
Remove activation checkpointing tag to get correct FQNs (#124698) (#126559)30650e0
[FSDP1] fix _same_storage check for DTensor (#123617) (#126957)Updates
horde-sdk
to 0.13.0Release notes
Sourced from horde-sdk's releases.
Commits
3e7a8d5
Merge pull request #213 from Haidra-Org/maind56097c
feat: support transparent in the payloadf717131
Merge pull request #209 from Haidra-Org/main1216a0d
fix: use ~0.7.0 ofhorde_model_reference
033f01d
Merge pull request #205 from Haidra-Org/main8b16596
feat: support/documents/
endpoints816f897
chore: update pre-commit deps373643c
build(deps-dev): bump ruff in the python-packages groupebbfdcd
Update .pre-commit-config.yamlad4aee0
build(deps-dev): bump the python-packages group across 1 directory with 3 upd...Updates
horde-engine
to 2.12.0Release notes
Sourced from horde-engine's releases.
Commits
b61be86
Merge pull request #275 from Haidra-Org/mainbf16d3e
feat: layer diffuse (#272)6b0516e
docs: fix all pypi hordelib badges0aac639
docs: fix pypi badge link target10c6f83
ci: update changelogUpdates
horde-model-reference
to 0.7.0Release notes
Sourced from horde-model-reference's releases.
Commits
bf08ac8
Merge pull request #112 from Haidra-Org/main3793d1d
feat:miscellaneous
model manager support319265b
chore: update pre-commit deps7dedcf3
build(deps-dev): bump ruff in the python-packages group1f273c0
chore: update pre-commit deps5ecee92
build(deps-dev): bump the python-packages group across 1 directory with 6 upd...35bf357
ci: run pre-commit with--all-files
on testsUpdates
pydantic
to 2.8.0Release notes
Sourced from pydantic's releases.
... (truncated)
Changelog
Sourced from pydantic's changelog.
... (truncated)
Commits
1609e2a
Prep for v2.8 release (#9806)411dfd8
👥 Update Pydantic People (#9803)e280663
Add Nested Model Field Validation Examples to Docs (#9735)a002e69
Fix Python version check for_eval_type
(#9781)e108fd1
Docs updates to prep for v2.8 (#9778)011d8b6
Fix documentation formatting (#9779)738b5d7
Add note about Pipeline API recommended usage (#9777)8a0f335
Document and testser_json_inf_nan='strings'
variant (#9771)764e148
Preparing for the v2.8.0b1 release! (#9776)fcd2010
validate_call
type params fix (#9760)Updates
pytest
from 8.2.0 to 8.2.2Release notes
Sourced from pytest's releases.
Commits
329d371
Prepare release version 8.2.2214d098
Merge pull request #12414 from bluetech/backport-12409153a436
[8.2.x] fixtures: fix catastrophic performance problem inreorder_items
b41d5a5
Merge pull request #12412 from pytest-dev/backport-12408-to-8.2.x9bb73d7
[8.2.x] cacheprovider: fix "Directory not empty" crash from cache directory c...4569a01
[8.2.x] doc: Update trainings/events (#12402)1d103e5
[8.2.x] Clarify pytest_ignore_collect docs (#12386)240a252
[8.2.x] Add html_baseurl to sphinx conf.py (#12372)a5ee3c4
Merge pull request #12370 from pytest-dev/backport-12368-to-8.2.xf7358ae
[8.2.x] unittest: fix class instances no longer released on test teardown sin...Updates
mypy
from 1.10.0 to 1.10.1Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
c28b525
[1.10 backport] Fix error reporting on cached run after uninstallation of thi...Updates
ruff
from 0.4.2 to 0.5.0Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
244b923
Add necessary permissions for cargo-dist Docker build (#12072)a8b48fc
Release v0.5.0 (#12068)04c8597
[flake8-simplify
] Stabilize detection of Yoda conditions for "constant" col...4029a25
[Ruff v0.5] Stabilise 15 pylint rules (#12051)0917ce1
Update documentation to mentionetcetera
crate instead ofdirs
for user c...22cebdf
Add server config to filter out syntax error diagnostics (#12059)72b6c26
SimplifyLinterResult
, avoid cloningParseError
(#11903)73851e7
Avoid displaying syntax error as log message (#11902)e7b4969
RemoveE999
as a rule, disallow any disablement methods for syntax error (#...c98d8a0
[pyflakes
] Stabilize detection of is comparisons to lists, etc. (F632
) (#...Updates
tox
to 4.16.0Release notes
Sourced from tox's releases.
Changelog
Sourced from tox's changelog.