unstale

pypi / torch

torch

What changed in torch 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

156 breaking14 security32 deprecations342 new APIs and options100 performance162 behavior and defaults10 tooling403 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

torch 21169 changes

Breaking changes 139

  • Asserts on misaligned graph inputs instead of silently cloning them.

    2.15.0release notes

  • This C++ extension enum value was removed.

    2.15.0release notes

  • Under torch.compile, MUST_RECOMPUTE on an effectful operator now raises at compile time; use a save policy instead.

    2.15.0release notes

  • Ops undefined for complex inputs now raise TypeError rather than RuntimeError; unsupported dtype implementations raise NotImplementedError.

    2.15.0release notes

  • In eager mode, outputs of non-aliasing operators with ordered effects are saved instead of recomputed when the policy prefers recomputation; return MUST_RECOMPUTE to retain replay behavior.

    2.15.0release notes

  • The default PyPI wheel uses CUDA 13.2; CUDA 13.4 wheels are available, while CUDA 12.6 and CUDA 13.0 wheels are no longer published. CUDA 13 wheels require driver 580 or newer and Turing or newer GPUs.

    2.15.0release notes

  • The experimental profiler backend name replaces cupti_monitor; the old name silently falls back to the default Kineto backend.

    2.15.0release notes

  • The experimental backend name replaces cupti_monitor_async_export; the old name silently falls back to the default Kineto backend.

    2.15.0release notes

  • The ignored profiler_metrics and profiler_measure_per_kernel arguments are removed and now raise TypeError.

    2.15.0release notes

  • Uses the same accumulation order as AVX2 and SVE256 for bitwise-identical results across these CPU types; NEON results may differ from earlier releases in the last bits.

    2.15.0release notes

  • The deprecated property and its constructor argument are removed; use FunctionEvent.metadata, a dict populated when expose_kineto_event_metadata is set.

    2.15.0release notes

  • Patch dictionaries are snapshotted when options are created, and the default no longer implicitly sets triton.autotune_at_compile_time=True.

    2.15.0release notes

  • Generated C compiler flag-check variables now use the HAS_C prefix, distinct from HAS_CXX.

    2.15.0release notes

  • Generated C++ compiler flag-check variables now use the HAS_CXX prefix, distinct from HAS_C.

    2.15.0release notes

  • Mutation and aliasing of inputs in higher-order op bodies are disallowed by default unless the op opts in; unsupported cases raise under fullgraph or cause a graph break and eager fallback.

    2.15.0release notes

  • Importing torch can no longer be repeated in one process, including with importlib.reload(torch), after deleting it from sys.modules, or after a failed import.

    2.15.0release notes

  • Linux CUDA torch wheels no longer link or preload cuRAND and no longer require it; extensions using the cuRAND host API must install the library themselves.

    2.15.0release notes

  • Resolves guarded globals against the live scope and rereads them on each call; missing guarded globals raise KeyError.

    2.15.0release notes

  • With reduce_dtype=None, fully_shard accumulates and reduces gradients in the parameter's grad_dtype instead of param_dtype; set reduce_dtype explicitly to retain the old behavior.

    2.15.0release notes

  • The MPS backend now requires macOS 15 or newer; on macOS 14 it reports unavailable and MPS allocation raises an error.

    2.15.0release notes

  • Fixes MPS wrong results and crashes across tensor operations, dtype handling, attention, memory stats, copies, command buffers, and multithreaded execution; several failures now raise errors instead of aborting or returning incorrect outputs.

    2.15.0release notes

  • backend="nccl" now creates the rewritten implementation by default. It eagerly creates communicators and binds each group to one CUDA device.

    2.15.0release notes

  • Unsupported dtypes in linalg and norm operations, and integer inputs to mean, var, std, and related operations, now raise NotImplementedError instead of RuntimeError.

    2.15.0release notes

  • dist.get_backend_impl(...) returns the new backend class, so isinstance(..., ProcessGroupNCCL) is false and legacy-only methods such as comm_split_count() are missing.

    2.15.0release notes

  • PyTorch binaries now require Python 3.11 or newer; no Python 3.10 wheels are published for torch or Triton.

    2.15.0release notes

  • ROCm wheels move to ROCm 7.14 and 10.0; ROCm 7.2 wheels and gfx900/gfx906 kernels are dropped.

    2.15.0release notes

  • This renamed profiler method replaces take_pending_cupti_export; the old method raises AttributeError.

    2.15.0release notes

  • Contiguous out-of-range floating-point conversions to uint8 on Arm now wrap like x86 and strided inputs instead of saturating.

    2.15.0release notes

  • Distributed checkpoint metadata now includes an optional strides field, making checkpoints saved with PyTorch 2.15 unreadable by PyTorch 2.14 and earlier.

    2.15.0release notes

  • cuBLAS and cuBLASLt workspaces are allocated per operation and freed afterward by default; setting this variable to 1 restores caching, which is unsafe with multiple graphs on one stream.

    2.15.0release notes

  • This setting now takes effect only when cuBLAS workspace caching is enabled.

    2.15.0release notes

  • Setting TORCH_DIST_USE_NCCL2=0 temporarily restores legacy NCCL behavior in this release; the variable will be removed in the next release.

    2.15.0release notes

  • This environment variable enables pipeline_per_edge_p2p.

    2.15.0release notes

  • A stack buffer overflow for overly long Unix socket paths is fixed; the program now raises an error.

    2.15.0release notes

  • Set TORCH_SYMBOLIZE_MODE=addr2line to restore addr2line symbolization.

    2.15.0release notes

  • Calls now use PyTorch's own warning and exception translation instead of pybind11's; user-defined pybind exception translation is lost.

    2.15.0release notes

  • This is the renamed setting for benchmark_epilogue_fusion and covers both prologue and epilogue fusion.

    2.15.0release notes

  • This is the renamed setting for max_epilogue_benchmarked_choices.

    2.15.0release notes

  • Pivoted LU operations use cuSOLVER even when MAGMA is preferred, and the first such call warns; pivot=False still uses MAGMA when preferred.

    2.15.0release notes

  • Saturates out-of-range integer scalar bounds instead of wrapping or raising; adds uint16, uint32, and uint64 support on CPU and CUDA.

    2.15.0release notes

  • Nested compile-region options now accept only fallback_by_default and max_autotune as Inductor config patches; other keys raise ValueError.

    2.15.0release notes

  • Captures a compiled function through a context manager and writes artifact and cache files when the block exits cleanly or cap.save() is called.

    2.15.0release notes

  • load now takes artifact and cache paths.

    2.15.0release notes

  • precompile is now a module rather than a callable; capture with precompile.capture(...) and reload with precompile.load(...).

    2.15.0release notes

  • Float32 cos on Arm NEON and SVE uses SLEEF's 3.5-ULP kernels instead of 1.0-ULP kernels, running faster but potentially differing in the last bits.

    2.15.0release notes

  • Allocator mallocWithAddress tags are now stored in internal_metadata instead of being appended to user_metadata; user_metadata reflects only values set with _set_memory_metadata.

    2.15.0release notes

  • The old configuration attribute is removed without an alias; setting it raises AttributeError.

    2.15.0release notes

  • Replaces pipeline_per_direction_p2p and configures one communicator per directed rank-to-rank edge.

    2.15.0release notes

  • On CUDA, out must have the same dtype as the input; mismatches now raise an error instead of silently casting.

    2.15.0release notes

  • Python 3.14 no longer loses torch.jit.Attribute and nn.Module class annotations; this requires typing-extensions 4.13 or later.

    2.15.0release notes

  • Nested jagged and strided nested tensors are no longer allowlisted by default, so loading checkpoints containing them with weights_only=True now fails unless they are explicitly allowed.

    2.15.0release notes

  • weights_only loading rejects checkpoints that expose uninitialized pybind11-backed objects through NEWOBJ without a matching BUILD.

    2.15.0release notes

  • After importing torch.distributed, builtin exceptions are no longer safe globals, allowlisted list subclasses cannot override append or extend during loading, and pickled exceptions require explicit safe-global registration.

    2.15.0release notes

  • Saturates out-of-range integer scalar bounds instead of wrapping or raising.

    2.15.0release notes

  • Operator calls use PyTorch's warning and exception translation instead of pybind11's; user-defined pybind exception translation is lost, and TORCH_WARN warnings reach Python's warnings module.

    2.15.0release notes

  • Validates lambd and alpha.

    2.15.0release notes

  • A public configuration API is now preferred for the renamed Cuspy experimental profiler backend.

    2.15.0release notes

  • Float32 sin on Arm NEON and SVE uses SLEEF's 3.5-ULP kernels instead of 1.0-ULP kernels, running faster but potentially differing in the last bits.

    2.15.0release notes

  • Nondeterministic MPS ops now raise an error when deterministic algorithms are enabled.

    2.15.0release notes

  • ROCM_VERSION now reports the ROCm SDK version rather than the HIP runtime version; collect_env reports both.

    2.15.0release notes

  • MemPool no longer exposes the allocator passed to its constructor; retain your own allocator reference instead.

    2.15.0release notes

  • mixed_mm is no longer the default value.

    2.15.0release notes

  • The 4x-vectorized Triton RNG path was disabled because it produced correlated CUDA dropout masks; setting this variable to 1 restores it.

    2.15.0release notes

  • For async all_gather, the future value is now the list of per-rank outputs rather than a one-element list holding a stacked tensor.

    2.15.0release notes

  • Replaces the exported is_macos_13_or_newer() helper; no compatibility alias is provided.

    2.14.0release notes

  • The enum members drop the VER and PLUS portions of their names, with no compatibility aliases.

    2.14.0release notes

  • The zero-argument C++ overload was removed; pass includeBool explicitly, using false to preserve its previous behavior.

    2.14.0release notes

  • Dynamo graph-breaks rather than silently dropping tangents; fullgraph=True now errors.

    2.14.0release notes

  • Individual Python function events are excluded by default; pass include_python_functions=True to retain the previous view.

    2.14.0release notes

  • Custom Python process groups implementing new_group() must accept the backend keyword, which PyTorch now forwards when creating subgroups.

    2.14.0release notes

  • The setting is replaced with memory-headroom controls.

    2.14.0release notes

  • Segments allocated after registering a symmetric-memory pool are no longer automatically upgraded to symmetric windows; collectively deregister and register again after allocations to use symmetric-window algorithms.

    2.14.0release notes

  • It is now a deprecation shim: install and develop still forward to pip, while build and other commands print replacement commands instead of running setuptools. Build through pip or python -m build.

    2.14.0release notes

  • Comparisons with non-stream objects now follow Python-consistent behavior: equality is False, stream != None is True, and ordering comparisons raise TypeError.

    2.14.0release notes

  • Triton min/max uses relaxed signed-zero ties by default; set strict_signed_zero=True to preserve eager ties.

    2.14.0release notes

  • Compiled and fake/meta execution enforce the same exact output-dtype requirements as eager execution.

    2.14.0release notes

  • The use_cuda argument was removed; use use_device="cuda" instead.

    2.14.0release notes

  • Complex type promotion for bfloat16 now uses bcomplex32 instead of complex64; cast explicitly to complex64 when its precision or operator coverage is required.

    2.14.0release notes

  • The deprecated API was removed; use torch.linalg.cholesky(). For an upper-triangular factor, take the conjugate transpose with .mH.

    2.14.0release notes

  • Boundary subgradients now follow the selected dispatcher schema's input space: scalar-bound equality gives the input gradient 0, while tensor-bound ties split gradients evenly.

    2.14.0release notes

  • At an ordinary tensor-bound tie, gradients split evenly between the input and bound.

    2.14.0release notes

  • At a scalar-bound equality the input gradient changes from 1 to 0; at an ordinary tensor-bound tie, gradients split evenly between input and bound.

    2.14.0release notes

  • The tvm backend now requires TVM's relax frontend; older TVM installations raise ImportError. Pass a TVM pipeline through options instead of relay-only scheduler and trials options.

    2.14.0release notes

  • Complex MPS inputs now produce clear unsupported-dtype errors.

    2.14.0release notes

  • It is a no-op for fake process groups and warns rather than failing for backends that cannot configure timeouts.

    2.14.0release notes

  • Ranks absent from every requested split now receive GroupMember.NON_GROUP_MEMBER instead of None.

    2.14.0release notes

  • Fractional max pooling raw operations now reject non-positive kernel_size values instead of returning invalid outputs and indices.

    2.14.0release notes

  • Ties now split gradients evenly, and forward-mode AD for the min/max family is aligned with the new rules.

    2.14.0release notes

  • Loading with weights_only=True always validates sparse-tensor invariants, regardless of the global setting; malformed checkpoints may now raise errors.

    2.14.0release notes

  • MPS validates offsets consistently with CPU and CUDA instead of silently returning incorrect results.

    2.14.0release notes

  • Functional and module Lp pooling APIs now raise a descriptive ValueError when norm_type=0.

    2.14.0release notes

  • Eligible fused backends are now selected for dense rank-3 inputs on CPU, CUDA/ROCm, and XPU. Selection may change numerics, dropout RNG consumption, view behavior, and higher-order-gradient support; select the math backend when those semantics are required.

    2.14.0release notes

  • The balanced policy is no longer accepted; use compact instead. Passing balanced now raises ValueError.

    2.14.0release notes

  • Invalid dim types are rejected at construction rather than failing later during forward.

    2.14.0release notes

  • Invalid dim types are rejected at construction rather than failing later during forward.

    2.14.0release notes

  • Setting profiler_measure_per_kernel to a non-default value no longer enables CUPTI range profiling, is ignored, and emits a FutureWarning.

    2.14.0release notes

  • Setting profiler_metrics to a non-default value no longer enables CUPTI range profiling, is ignored, and emits a FutureWarning.

    2.14.0release notes

  • The use_cuda argument was removed. Select CUDA through activities instead.

    2.14.0release notes

  • The deprecated API was removed; use torch.linalg.qr() with mode="reduced" or mode="complete" instead of the Boolean some argument.

    2.14.0release notes

  • TorchScript consistently rejects bare list and tuple value annotations; specify an element type such as list[int].

    2.14.0release notes

  • The relay-only backend entry point no longer exists in torch._dynamo.backends.tvm.

    2.14.0release notes

  • Bazel build support and its build files have been removed; users building PyTorch should migrate to the supported CMake or pip install flow.

    2.13.0release notes

  • Disallows bitwise shifts for bool dtype on MPS.

    2.13.0release notes

  • Fix fake collective operations to copy inputs to outputs, validate all_to_all splits, and reject ranks outside world_size at construction.

    2.13.0release notes

  • Reject NestedTensor inputs with a clear error instead of an unclear backend failure.

    2.13.0release notes

  • Named tensors and their Python and C++ APIs, factory names= arguments, and operator overloads have been fully removed.

    2.13.0release notes

  • Building PyTorch from source now requires NCCL 2.23 or newer; prebuilt wheels already bundle a compatible version.

    2.13.0release notes

  • The operator now returns a fresh tensor instead of aliasing and mutating its qaccum input; callers relying on mutation must use the returned tensor.

    2.13.0release notes

  • Detect communication between non-adjacent stages at initialization and raise a clear RuntimeError.

    2.13.0release notes

  • Bare PyObject arguments or return types are rejected in operator schemas because torch.compile does not support arbitrary PyObject inputs to custom ops.

    2.13.0release notes

  • PyTorch no longer ships free-threaded Python 3.13t wheels; users should move to Python 3.14t.

    2.13.0release notes

  • Returns NaN for empty input on MPS.

    2.13.0release notes

  • The built-in COW query entry point was removed in favor of the pluggable materializer hook.

    2.13.0release notes

  • The built-in COW materialization entry point was removed in favor of the pluggable materializer hook.

    2.13.0release notes

  • Adds a pluggable one-shot materializer hook that runs on the first mutable data-pointer access, replacing StorageImpl's built-in copy-on-write entry points.

    2.13.0release notes

  • The C++ grad_fn signature now uses c10::intrusive_ptr<Node> instead of std::shared_ptr<Node>.

    2.13.0release notes

  • The 2.13 ROCm wheel fails on the CPU compile path when no GPU is available, raising a vectorized ISA detection error; use a ROCm image or a standard CPU/CUDA build as a workaround.

    2.13.0release notes

  • CUDA manual_seed now causes a graph break so compiled random calls stay reproducible.

    2.13.0release notes

  • Renames all_gather_into_tensor to align the public collective API with torchcomms naming.

    2.13.0release notes

  • Renames reduce_scatter_tensor to align the public collective API with torchcomms naming.

    2.13.0release notes

  • When TorchComms is enabled, subgroup creation routes through split_group and raises NotImplementedError for unsupported arguments instead of silently falling back.

    2.13.0release notes

  • Source builds now require a compiler and build configuration that support C++20.

    2.12.0release notes

  • CUDA 12.8 binaries were removed from the binary build matrix; users pinning cu128 should switch to cu130 or cu126.

    2.12.0release notes

  • Building PyTorch from source requires CUDA 12.6 or newer; older CUDA versions are no longer supported.

    2.12.0release notes

  • Inductor internals migrate from legacy allow_tf32 to fp32_precision to align with the new TF32 API.

    2.12.0release notes

  • Compiling through FSDP2 hooks without graph breaks is no longer supported; allow graph breaks or disable compiled autograd for the FSDP2 training step.

    2.12.0release notes

  • An explicit error is now raised when layer_norm computes third-order derivatives.

    2.12.0release notes

  • All MPS tensors are now allocated in unified memory, enabling CPU access without explicit copies; performance may differ for code relying on device-only placement.

    2.12.0release notes

  • Placements are now opaque.

    2.12.0release notes

  • The size_hint API was deleted; developers using it must remove or replace those references.

    2.12.0release notes

  • The size_vars API was deleted; developers using it must remove or replace those references.

    2.12.0release notes

  • Source builds that enable SVE validate compiler configuration more strictly and may reject previously accepted but incorrect configurations.

    2.12.0release notes

  • Deferred layout freezing for max_autotune is opt-in; set this config to True to retain the deferred behavior.

    2.12.0release notes

  • Creating a torch.cdouble tensor on MPS now raises an error.

    2.12.0release notes

  • Its ops now raise RuntimeError inside torch.compile; migrate to the functional collectives API.

    2.12.0release notes

  • CUDA calls now dispatch to cuSolver rather than MAGMA, which may affect numerical behavior, performance, or debugging.

    2.12.0release notes

  • CUDA calls now dispatch to cuSolver/cuBLAS rather than MAGMA, which may affect numerical behavior, performance, or debugging.

    2.12.0release notes

  • Set this environment variable to 1 to opt in to deferred layout freezing for max_autotune.

    2.12.0release notes

  • Prevents cross-stream in-place operations and memory-planning buffer reuse for user streams.

    2.12.0release notes

Security 14

  • Fixes CUDA index overflow wrong results and illegal accesses, AMP batch norm overflow, lazy-init re-entry deadlocks, assertion reporting, graph annotations and capture lifetimes, allocator synchronization and IPC reservations, JITerator cache recovery, embedding_bag bounds checking, and outer-product bmm fallback.

    2.15.0release notes

  • Validate mean, invstd, and counts shapes before CUDA gathering to prevent out-of-bounds reads.

    2.14.0release notes

  • Add opt-in weights_only=True restricted deserialization mode; the default remains unchanged for compatibility.

    2.14.0release notes

  • Parse rank expressions with ast.literal_eval() rather than executing them with eval().

    2.14.0release notes

  • Validate channel counts in replication_pad1d and replication_pad2d backward operations to prevent out-of-bounds reads and segmentation faults.

    2.14.0release notes

  • Validate signal channels and peer ranks to prevent out-of-bounds device-memory access and adjacent-allocation corruption.

    2.14.0release notes

  • Validate grad_output shapes in 2D and 3D backward operations before kernels can read out of bounds.

    2.14.0release notes

  • PyTorch is vulnerable to memory corruption through its torch.jit.script function

    2.13.0security advisory

  • PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's weights_only unpickler allows an attacker to craft a malicious checkpoint file (.pth) that, when loaded with torch.load(..., weights_only=True), can corrupt memory and potentially

    2.10.0security advisory

  • PyTorch is vulnerable to memory corruption through its torch.lstm_cell function

    2.10.0security advisory

  • PyTorch is vulnerable to memory corruption through its unpack_sequence function

    2.9.1security advisory

  • An issue in the component torch.linalg.lu of pytorch v2.8.0 allows attackers to cause a Denial of Service (DoS) when performing a slice operation.

    2.9.0security advisory

  • pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long().

    2.9.0security advisory

  • pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together.

    2.9.0security advisory

Deprecations 28

  • The no-op option is deprecated.

    2.15.0release notes

  • begin* and end* methods take MPSStream*; stream-less begin* overloads are deprecated.

    2.15.0release notes

  • Importing the old private module now emits DeprecationWarning.

    2.15.0release notes

  • This attribute is deprecated in favor of FunctionEvent.metadata, a typed dict[str, Any] containing the same information.

    2.15.0release notes

  • The legacy NCCL implementation remains available as nccl-legacy for this release only and will be removed in the next release.

    2.15.0release notes

  • Passing a bare set of parameters to an optimizer emits FutureWarning because set iteration order can change; use an ordered collection such as a list.

    2.15.0release notes

  • This API is deprecated and will be removed in PyTorch 2.17.

    2.15.0release notes

  • This ignored setting is deprecated; reading or setting it emits a one-time FutureWarning. Delete it from your code.

    2.15.0release notes

  • This setting is deprecated; with Triton versions lacking block pointers it becomes a no-op with a one-time warning. Use tensor descriptors instead.

    2.15.0release notes

  • This ignored setting is deprecated; reading or setting it emits a one-time FutureWarning. Delete it from your code.

    2.15.0release notes

  • This API emits FutureWarning and is scheduled for removal in PyTorch 2.17; use torch.profiler.profile or Nsight Systems with emit_nvtx().

    2.15.0release notes

  • This function is deprecated and emits FutureWarning; annotations are now cleaned up when their executable graph is destroyed.

    2.15.0release notes

  • The method is now a no-op with a deprecation warning; generator state is registered lazily on first RNG use during capture, so explicit registration calls should be removed.

    2.14.0release notes

  • The method emits a FutureWarning; activate a green context by creating a stream from it and using that stream with torch.cuda.stream().

    2.14.0release notes

  • The private alias remains available with a deprecation warning; use the public torch.distributed.set_timeout API.

    2.14.0release notes

  • The setting is deprecated and is now a no-op; generators are always traced lazily.

    2.14.0release notes

  • The distributed spelling remains a forwarding alias but now emits a FutureWarning; use torch.compiler.config.compile_on_one_rank.

    2.14.0release notes

  • TorchScript APIs now emit visible FutureWarnings directing users toward torch.compile or torch.export.

    2.14.0release notes

  • with_modules is deprecated and emits a FutureWarning; it collected module hierarchy only for TorchScript, while eager users can use with_stack=True to record nn.Module events.

    2.14.0release notes

  • Returning an output that aliases an input under torch.compile now emits a UserWarning; return a clone or refactor the operator to avoid the alias.

    2.13.0release notes

  • Creating tensors with this quantized dtype is deprecated and emits a warning in Python and C++.

    2.13.0release notes

  • The old collective name remains as a wrapper but emits a FutureWarning; use all_gather_single instead.

    2.13.0release notes

  • The old collective name remains as a wrapper but emits a FutureWarning; use reduce_scatter_single instead.

    2.13.0release notes

  • Source builds with CMake versions older than 3.10 emit a deprecation warning; a future release will require CMake 3.10 or newer.

    2.12.0release notes

  • The profiler field is deprecated; use event.event_metadata instead.

    2.12.0release notes

  • Inlining built-in nn.Module instances is now the default; setting this config emits a deprecation warning and it will be removed in a future release.

    2.12.0release notes

  • A deprecation framework was added so individual options in the torch.compile config module can be marked deprecated.

    2.12.0release notes

  • fullgraph=True now warns when a call runs no compiled code; this will become an error in 2.13.

    2.12.0release notes

New APIs and options 330

  • Records Python launch stacks for CUDA graph nodes during capture when record_py_stacks is enabled.

    2.15.0release notes

  • Chooses where the AOTInductor debug printer saves tensors.

    2.15.0release notes

  • Enables batching DDP's copy into .grad.

    2.15.0release notes

  • Enables an opt-in Triton bmm template for a batch-broadcast left operand.

    2.15.0release notes

  • Opts into decomposing CPU bmm when its batch size cannot be proven.

    2.15.0release notes

  • Adds a FsspecWriter argument enabling dcp.async_save support; it is placed before overwrite.

    2.15.0release notes

  • Adds random backoff after failed rendezvous state writes.

    2.15.0release notes

  • Adds a property returning the ncclComm_t on all NCCL backends.

    2.15.0release notes

  • Controls whether AOTI_RUNTIME_CHECK_INPUTS=1 rejects dimensions above the compile-time upper bound.

    2.15.0release notes

  • Custom autograd.Function backward can access engine gradient accumulation buffers to accumulate an input gradient in place and return None; availability depends on backward order and several execution conditions.

    2.15.0release notes

  • Returns the current MPS stream as part of the public MPS stream API.

    2.15.0release notes

  • Returns the default MPS stream as part of the public MPS stream API.

    2.15.0release notes

  • Distributed pipelining adds defer_reduce_grad_wait and unshard_lookahead options to lower peak memory and improve overlap via lazy receive buffers.

    2.15.0release notes

  • A new extension point supports out-of-tree accelerator backends.

    2.15.0release notes

  • Adds an experimental API to abort all process groups of a root mesh, avoiding hangs when a peer exits early.

    2.15.0release notes

  • AOTInductor backends can provide their ATen device type to C++ codegen.

    2.15.0release notes

  • Manually finalizes backward after enabling manual backward finalization.

    2.15.0release notes

  • Enables manual backward finalization so other work can overlap the in-flight gradient all-reduce; call finalize_backward afterward.

    2.15.0release notes

  • Custom backends can define this callable to run when torch.compile resolves the backend, enabling setup and early failure.

    2.15.0release notes

  • Lets custom ErrorHandlers observe success and see the @record entrypoint name.

    2.15.0release notes

  • Writes CUDA graph kernel annotations into the exported Chrome trace.

    2.15.0release notes

  • FakeProcessGroup supports all_to_all_single with any sizes and adds a simulate_uniform_ranks option.

    2.15.0release notes

  • Adds gradient accumulation across several pipeline schedule runs with FSDP stages.

    2.15.0release notes

  • Warns instead of failing on higher-order operators without a FLOP formula; the counter also counts flex_attention FLOPs.

    2.15.0release notes

  • Tensor-subclass parameters can implement this method to free raw all-gather buffers immediately after fsdp_post_all_gather.

    2.15.0release notes

  • Adds manual gradient reduction and resharding; async_op=True returns a GradientReductionHandle so reduction can overlap other compute.

    2.15.0release notes

  • Adds an option to keep unsharded parameter storage allocated across reshard().

    2.15.0release notes

  • Adds control over when gradient reduction and resharding run, rather than using the autograd final callback.

    2.15.0release notes

  • FsspecWriter is now public and supports dcp.async_save through cache_staged_state_dict; pass overwrite and subsequent arguments by keyword.

    2.15.0release notes

  • Sets a peak-memory-increase threshold for rejecting fusions.

    2.15.0release notes

  • Sets a percentage peak-memory threshold for rejecting fusions.

    2.15.0release notes

  • Adds an NCCL symmetric memory API to obtain a multimem CFT handle.

    2.15.0release notes

  • Reports locality-domain information for restricting SM partitions.

    2.15.0release notes

  • Adds an NCCL symmetric memory API to obtain a peer CFT handle.

    2.15.0release notes

  • Reports the number of SMs actually allocated to a green context.

    2.15.0release notes

  • Creates green contexts with disjoint SM allocations; supports locality-domain restrictions with newer CUDA bindings.

    2.15.0release notes

  • Declarative implies support is added to Inductor/Dynamo Config.

    2.15.0release notes

  • Reports whether hardware locality-domain restrictions are supported.

    2.15.0release notes

  • Allocates DDP gradient buckets during backward and frees them afterward to lower peak memory.

    2.15.0release notes

  • Controls how many FSDP stages stay unsharded at once in multi-stage schedules.

    2.15.0release notes

  • Limits pending sends in distributed pipeline schedules.

    2.15.0release notes

  • Accepts min and max for an initial value range.

    2.15.0release notes

  • Use nccl-lazy when independent point-to-point communicators are needed; it creates communicators lazily per send/recv peer pair.

    2.15.0release notes

  • Added no_split support to torch.xpu.MemPool.

    2.15.0release notes

  • Allows per-parameter mixed precision in fully_shard while keeping one all-gather per group.

    2.15.0release notes

  • Adds a context manager around each stage forward that receives the stage and microbatch indices.

    2.15.0release notes

  • Keeps subgroup rank order aligned with the DeviceMesh rank order.

    2.15.0release notes

  • Adds lazy communicator creation for nccl and nccl-lazy groups on first use, avoiding roughly 200 MiB allocation in new_group.

    2.15.0release notes

  • Adds options to shrink the virtual-address reservation of expandable segments.

    2.15.0release notes

  • Added an environment variable to choose the Metal language version.

    2.15.0release notes

  • Enables wildcard fallback for dynamic-shape TunableOp GEMM tuning.

    2.15.0release notes

  • Supported in functional all_reduce and under LocalTensorMode.

    2.15.0release notes

  • Adds the in-place scaled_addmm operation.

    2.15.0release notes

  • Sets the current MPS stream as part of the public MPS stream API.

    2.15.0release notes

  • Added the gfx950 pre-swizzled MX FP4/FP8 block-scale layout for scaled_mm.

    2.15.0release notes

  • The XPU backend supports SYCL free-function kernels, allowing device code to be written as explicit free functions instead of verbose functors.

    2.15.0release notes

  • Adds an environment variable for static_sources, keeping listed sources static under automatic dynamic shapes, PGO, or dynamic=True.

    2.15.0release notes

  • Selects thread-based Inductor compile workers for free-threaded Python with thread or auto, avoiding process-spawn and pickling overhead.

    2.15.0release notes

  • When set to warn or error, makes torch.cuda.set_device warn or raise if another device already holds a CUDA primary context.

    2.15.0release notes

  • More c10/util helpers are available header-only under this include path.

    2.15.0release notes

  • Adds a C++ lifecycle observer attachable with set_observer() for begin/end callbacks around inference, constant swaps, and constant folding.

    2.15.0release notes

  • CUDA builds add a native-AOT export stage for CuTeDSL and Triton kernels; set TORCH_NATIVE_AOT=0 to skip it.

    2.15.0release notes

  • Terminates on a legacy NCCL timeout instead of hanging.

    2.15.0release notes

  • Adds a stable ABI check for whether a Python object is a tensor; stable ABI conversions for torch.dtype and torch.device Python objects are also added.

    2.15.0release notes

  • Lets region_activation_memory_budget apply to a whole compiled graph.

    2.15.0release notes

  • Adds num_runners and use_stream_affinity arguments to keep each non-null CUDA or XPU stream on the same model instance across calls.

    2.15.0release notes

  • Adds use_stream_affinity to keep each non-null CUDA or XPU stream on the same model instance across calls.

    2.15.0release notes

  • Adding FLYDSL enables the experimental FlyDSL GEMM autotuning backend for ROCm gfx950, covering specified matrix multiplication workloads.

    2.15.0release notes

  • Adds strict_pointwise and strict_reduction modes; strict now matches eager numerics more closely.

    2.15.0release notes

  • Use this setting for tensor descriptors instead of the deprecated block-pointer setting.

    2.15.0release notes

  • Skips generated range asserts when compile-time bounds are too strict.

    2.15.0release notes

  • Adds a public API to run a callback when the current backward pass finishes.

    2.15.0release notes

  • Adds the bfx9 mode, which preserves FP32 inputs and outputs while allowing cuBLAS to use BF16x9 on compute capability 10.0 and 10.3 GPUs.

    2.15.0release notes

  • Accepts out-of-tree backend configuration values using the <device>.<key> form.

    2.15.0release notes

  • Lists sources that remain static under automatic dynamic shapes, PGO, or dynamic=True, but not explicit mark_dynamic.

    2.15.0release notes

  • Adds annotation_config for CUDA graph kernel annotations, including source and automatic keying modes.

    2.15.0release notes

  • Reads the Python launch stacks recorded for CUDA graph nodes.

    2.15.0release notes

  • Adds SM partition creation and locality-domain-aware splitting for CUDA green contexts.

    2.15.0release notes

  • The function now also accepts a dict.

    2.15.0release notes

  • Can warn or raise when another device already holds a CUDA primary context if TORCH_CUDA_CHECK_STRAY_CONTEXT is enabled.

    2.15.0release notes

  • Enables dynamic-shape TunableOp GEMM tuning.

    2.15.0release notes

  • A private helper waits on all outputs of a multi-output functional collective at once; torch.compile uses it for coalesced collectives and batch_isend_irecv.

    2.15.0release notes

  • Adds an experimental one-sided transport API with a NIXL backend and CUDA-graph-capturable stream-ordered transfers.

    2.15.0release notes

  • Adds an experimental pure-Python watchdog that detects hung CPU and GPU operations in Python distributed backends and dumps thread stacks on timeout.

    2.15.0release notes

  • Adds analysis of activation lifetimes and reusable storage slots from a pipeline schedule.

    2.15.0release notes

  • Adds support for the float8_e4m3fn dtype on MPS.

    2.15.0release notes

  • Adds a beta public module exposing multi-tensor torch._foreach_* operations under stable documented names and ordinary-op parameter names.

    2.15.0release notes

  • Adds a public MPS stream API, including stream creation and stream-management functions and a context manager.

    2.15.0release notes

  • Adds a context manager for using an MPS stream.

    2.15.0release notes

  • Supports bicubic mode for 5-D input.

    2.15.0release notes

  • Adds an operation computing beta * input + alpha * scaled_mm(mat1, mat2) in a single cuBLASLt GEMM on CUDA, with scaled_mm scaling recipes and torch.compile support.

    2.15.0release notes

  • Adds a public module of functional optimizers, including adam, adamw, sgd, and muon, with callers managing parameters, gradients, and state.

    2.15.0release notes

  • Adds configuration for the experimental Cuspy CUDA collection backend without using _ExperimentalConfig.

    2.15.0release notes

  • Adds configuration of profiler collection per activity group, such as CUDA hardware performance counters.

    2.15.0release notes

  • Events created with interprocess=True can be shared across processes through torch.multiprocessing or IPC handles.

    2.15.0release notes

  • Reconstructs an interprocess XPU event from an IPC handle.

    2.15.0release notes

  • Provides an IPC handle for sharing an interprocess XPU event.

    2.15.0release notes

  • Supports pluggable XPU allocators.

    2.15.0release notes

  • Added no_split and use_on_oom support to XPU MemPool.

    2.15.0release notes

  • This is the renamed environment variable; the old variable remains a fallback.

    2.15.0release notes

  • Applies torch.compile(mode="lite") globally, including to AOTInductor compilation.

    2.15.0release notes

  • Limits CUDA Graph Trees re-recording for dynamic shapes.

    2.15.0release notes

  • Controls initial CUDA Graph Trees memory-pool allocation to address fragmentation.

    2.15.0release notes

  • Limits CUDA Graph Trees re-recording.

    2.15.0release notes

  • An opt-in build option collects build metrics and requires CMake 4.3 or newer.

    2.15.0release notes

  • The build option defaults on for qualifying Linux AArch64 CUDA builds when llvm-bolt 21 or newer and USE_PRIORITIZED_TEXT_FOR_LD are available; set it to 0 to opt out.

    2.15.0release notes

  • Added use_on_oom support to torch.xpu.MemPool.

    2.15.0release notes

  • The XPU build system exposes USE_SYCLTLA while adding pure SYCL compilation and Clang host compiler support.

    2.15.0release notes

  • Added support for Float4_e2m1fn_x2 and Float8_e8m0fnu.

    2.15.0release notes

  • Opt in to pinned asynchronous AOTInductor constant loading by setting AOTI_COPY_USE_PINNED_ASYNC=1.

    2.14.0release notes

  • When set, AOTInductor prints timing and diagnostic messages for each constant-loading stage without requiring a rebuild.

    2.14.0release notes

  • Supports explicit user-defined streams and emits stream-guard code so compiled kernels run on the selected stream rather than always on the default stream.

    2.14.0release notes

  • Creates an AOTInductor model container from caller-owned weight tensors for zero-copy sharing; constants are not loaded from the package and remain caller-owned.

    2.14.0release notes

  • Adds a protocol for distributed checkpointing tensors that expose global and local shape and offset metadata.

    2.14.0release notes

  • Lets custom autograd.Function implementations declare each output's expected gradient dtype independently of its storage dtype.

    2.14.0release notes

  • Adds destroy callbacks and object retention.

    2.14.0release notes

  • Adds replay start and end hooks.

    2.14.0release notes

  • Adds portable JSON loading of distributed execution logs for comparisons across processes or model configurations.

    2.14.0release notes

  • Adds portable JSON serialization of distributed execution logs for comparisons across processes or model configurations.

    2.14.0release notes

  • Expanded sharding strategies for matrix, attention, sorting, scanning, softmax, tensor operations, and Conv1d/2d/3d; added redistribution from final-dimension sharding to Partial("sum").

    2.14.0release notes

  • Adds a shared keyword accepting ShapesSpec or ParamsSpec for explicit dynamic shapes in export, fake make_fx tracing, and torch.compile.

    2.14.0release notes

  • Profiler events expose Kineto metadata as typed values when expose_kineto_event_metadata is enabled, avoiding JSON reparsing.

    2.14.0release notes

  • Adds an experimental backend that creates per-peer NCCL point-to-point communicators on demand.

    2.14.0release notes

  • Adds an explicit legacy NCCL backend name alongside an opt-in for selecting the experimental replacement behind the nccl name.

    2.14.0release notes

  • The experimental backend gains fault-tolerant reconfiguration and one-sided window operations.

    2.14.0release notes

  • The experimental backend adds split_group, complete Work semantics, nonblocking communicators, uneven list collectives, communicator memory suspend/resume, and memory-pool registration and deregistration.

    2.14.0release notes

  • Can consume explicitly pre-split positional inputs, keyword inputs, and targets through arg_mbs, kwarg_mbs, and target_mbs.

    2.14.0release notes

  • Custom Python process groups can use batch_isend_irecv, the coalescing manager, and complete collective coverage, including single-tensor gather/scatter.

    2.14.0release notes

  • Gloo process groups support fault-tolerant reconfiguration.

    2.14.0release notes

  • Allows readable communicator names in NCCL logs and profiler tools.

    2.14.0release notes

  • Controls the number of cuBLASLt heuristic candidates requested by TunableOp.

    2.14.0release notes

  • Adds an option to choose whether selective activation checkpointing honors surrounding saved_tensors_hooks; the current default preserves legacy behavior and warns when hooks are active. Requires use_reentrant=False.

    2.14.0release notes

  • Used to provide optional shell-completion generation for torchrun.

    2.14.0release notes

  • Callers can provide an is_impure_node callback so side-effecting nodes are preserved during dead-code elimination.

    2.14.0release notes

  • Adds a prototype higher-order op selecting among N branches by index; autograd is not yet supported.

    2.14.0release notes

  • Adds XPU support for symmetric-memory operations used by asynchronous tensor parallelism, enabling communication and computation overlap on Intel GPUs.

    2.14.0release notes

  • Adds read-only DLPack export, including copy-on-write-preserving exchange with compatible consumers.

    2.14.0release notes

  • This is the preferred environment variable for compile_on_one_rank; the older distributed-prefixed variable remains supported for compatibility.

    2.14.0release notes

  • The opt-in selects the experimental replacement backend behind the nccl name.

    2.14.0release notes

  • Enables an autotuning_inputs log artifact reporting Triton autotuning input shapes, dtypes, strides, and scalar values.

    2.14.0release notes

  • Adds stable-ABI permute.

    2.14.0release notes

  • Adds stable-ABI Tensor overloads for bitwise operations, index_select, floor_divide, and is_pinned.

    2.14.0release notes

  • Adds stable-ABI conversion from Python torch.Tensor objects to torch::stable::Tensor.

    2.14.0release notes

  • Adds a stable-ABI query for whether a Tensor has storage.

    2.14.0release notes

  • Adds stable-ABI conversion from torch::stable::Tensor to Python torch.Tensor objects.

    2.14.0release notes

  • Adds a dtype overload to stable-ABI view.

    2.14.0release notes

  • Adds a length argument so a scan can run a fixed number of steps when xs=None.

    2.14.0release notes

  • Opt-in setting applies locality-based graph reordering to training graphs.

    2.14.0release notes

  • Opt-in CUDA Graph Trees generation cloning preserves live user-visible outputs across generations.

    2.14.0release notes

  • Adds backend-agnostic accelerator RNG state inspection.

    2.14.0release notes

  • Adds backend-agnostic inspection of RNG states across accelerators.

    2.14.0release notes

  • Adds backend-agnostic accelerator RNG seed inspection.

    2.14.0release notes

  • Adds a thread-local context manager whose callback receives fully populated autograd graph nodes created in its scope, including during higher-order differentiation and checkpoint recomputation.

    2.14.0release notes

  • Opts eligible bfloat16 grouped GEMM workloads into the cuBLASLt backend on Hopper and Blackwell with CUDA 13.3 or newer; eligible float16 workloads select it by default.

    2.14.0release notes

  • Adds support for TVM's Relax frontend and pipeline-based tuning.

    2.14.0release notes

  • Lets code request another CUDA Graph Trees warmup iteration.

    2.14.0release notes

  • Adds a public API for non-strict tracing.

    2.14.0release notes

  • Adds a capture-start hook alongside global CUDA graph capture and replay start/end hooks.

    2.14.0release notes

  • Adds a public CUDA graph annotations module.

    2.14.0release notes

  • The CUDAGraph debug flag is unified, debug_dump moves to Python, and capture hooks are added.

    2.14.0release notes

  • Attaches timestamped metadata events to live CUDA allocations; annotations appear in snapshots when memory history is enabled and only the native CUDA caching allocator supports them.

    2.14.0release notes

  • Memory snapshots can include CPU pinned-memory allocations; pass record_cuda=False to record only pinned host memory.

    2.14.0release notes

  • Adds a control for the number of cuBLASLt heuristic candidates used by TunableOp, which now supports CUDA cuBLASLt.

    2.14.0release notes

  • Adds an experimental accessor for custom backend development.

    2.14.0release notes

  • Adds a public API for setting distributed timeouts; the private alias remains available with a deprecation warning.

    2.14.0release notes

  • Adds construction of distributed linearly spaced tensors.

    2.14.0release notes

  • Adds construction of distributed logarithmically spaced tensors.

    2.14.0release notes

  • Attaches a dynamic-shape specification to a function or nn.Module.forward; compile, export, and make_fx use it automatically, and conflicting call-site specifications error.

    2.14.0release notes

  • Lets Python-authored kernels reserve Philox counter ranges that remain correct across CUDA Graph capture and replay.

    2.14.0release notes

  • Computes the principal square root of symmetric or Hermitian positive-definite matrices, supporting batches, autograd, vmap, and torch.compile.

    2.14.0release notes

  • Computes the polar decomposition A = U @ H for matrices with at least as many rows as columns, using portable SVD and eligible CUDA cuSOLVER QDWH acceleration.

    2.14.0release notes

  • MPS adds flex_attention auxiliary and dynamic-shape support, polar, large-tensor nonzero, complex Cholesky and nan_to_num, upsampling backward, and geqrf support.

    2.14.0release notes

  • Adds MPS forward and backward support.

    2.14.0release notes

  • The CUDA memory-efficient backend adds grouped-query attention, implicit multi-query key/value broadcasting, and backward support under vmap.

    2.14.0release notes

  • Adds a maximize parameter.

    2.14.0release notes

  • Adds the spectral_unclamped scaling option to the adjust_lr_fn parameter.

    2.14.0release notes

  • Can be called without a function to create an eager-mode decorator with checkpoint configuration separated from wrapped-function arguments; direct calls remain the compatible form under torch.compile.

    2.14.0release notes

  • Adds a wrapper for read-only DLPack export and compatible copy-on-write-preserving exchange.

    2.14.0release notes

  • Adds a query for per-process GPU memory usage on XPU.

    2.14.0release notes

  • Device-wide synchronization support is added on XPU.

    2.14.0release notes

  • Adds a log-line prefix template and hostname variable to identify the host that emitted each worker log line.

    2.14.0release notes

  • Adds optional shell-completion generation through the shtab package.

    2.14.0release notes

  • A dedicated error type is added for SYCL compilation failures.

    2.14.0release notes

  • Allocate, run, and delete tensors per kernel during AOTI autotuning to avoid OOM on large models.

    2.13.0release notes

  • Adds a stable AOTI stream shim for retrieving a native stream handle, gated behind TORCH_FEATURE_VERSION >= 2.13.

    2.13.0release notes

  • Add support for controlling scientific notation in C++-side tensor printing.

    2.13.0release notes

  • Allow opting out of horizontal fusion so partitioning follows only direct data dependencies.

    2.13.0release notes

  • Bound AsyncCompile future waits using this setting.

    2.13.0release notes

  • Gates the Inductor decomp_comms FX pass that eliminates all_gather for Gram-matrix optimizer patterns under FSDP.

    2.13.0release notes

  • Allow AOTInductor C++-only builds to override or suppress the default CPU architecture flag.

    2.13.0release notes

  • Add get, set, and reset functions for BLAS workspace sizes.

    2.13.0release notes

  • Adds a lightweight API to get private pool reserved memory bytes.

    2.13.0release notes

  • Add a config for partition reordering based on a CUDA graph memory budget.

    2.13.0release notes

  • Adds CUDA graph topology introspection.

    2.13.0release notes

  • Add default-args support to def_static.

    2.13.0release notes

  • Add a flag to select the depthwise convolution backend.

    2.13.0release notes

  • The PrivateUse1 backend name is exposed as an alias in DeviceType.

    2.13.0release notes

  • Add a health check endpoint to the distributed debug server.

    2.13.0release notes

  • Accept a pre-created torchelastic health check server so it can start before rendezvous.

    2.13.0release notes

  • Profiler output now exposes CUDA occupancy metadata as a nested dictionary.

    2.13.0release notes

  • Introduce a dedicated device mismatch error with actionable guidance for placing inputs, parameters, and buffers on the same device.

    2.13.0release notes

  • Expose num_splits in FlashAttention-2.

    2.13.0release notes

  • Assigns reduce-scatter its own NCCL communicator, enabling opt-in overlap of all-gather and reduce-scatter.

    2.13.0release notes

  • Enables GPU Address Sanitizer builds on ROCm.

    2.13.0release notes

  • Add == overloads for HeaderOnlyArrayRef.

    2.13.0release notes

  • An optional Torch-Profiler-based benchmarker, gated by an environment variable and off by default, provides more accurate timing of short-duration kernels.

    2.13.0release notes

  • Retain cubin bytes in cached kernels so caches restored on another machine avoid recompilation.

    2.13.0release notes

  • Adds MPS support through a new Metal kernel.

    2.13.0release notes

  • Lets operators, including out-of-tree operators, declare which arguments require symmetric-memory allocation.

    2.13.0release notes

  • Exposes the NCCL 2.30 maxP2pPeers configuration binding.

    2.13.0release notes

  • Adds a fused linear-projection and cross-entropy loss module that avoids materializing the full logits tensor and reduces peak memory for large-vocabulary training.

    2.13.0release notes

  • Support non-blocking pinned device-to-host copies on XPU.

    2.13.0release notes

  • Add ObjectSpec to dynamic shape specification.

    2.13.0release notes

  • Add op_overloads to enumerate an operator's overloads.

    2.13.0release notes

  • An optimizer reparameterization helper is added for non-strict tracing.

    2.13.0release notes

  • Add a pipeline schedule flag, defaulting to True; setting it to False defers each RECV until immediately before its consuming compute op.

    2.13.0release notes

  • Adds a configurable kernel option for CPU FlexAttention flash decoding, selected when query length is 1.

    2.13.0release notes

  • Add an Inductor config threshold for peak memory in combo kernels.

    2.13.0release notes

  • Adds a context manager gating a pinned memory pool for activation-offloading ao::offload ops, avoiding per-tensor cudaHostAlloc overhead.

    2.13.0release notes

  • Adds an Inductor config flag to disable the optimization.

    2.13.0release notes

  • Python process group backends can now access the PREMUL_SUM factor.

    2.13.0release notes

  • Add an Inductor ROCm config flag to disable the pointer_range_32 optimization.

    2.13.0release notes

  • Adds Triton integration for symmetric memory on ROCm.

    2.13.0release notes

  • Add SeqSpec for list and tuple dynamic shape specifications, with improved walk-spec errors.

    2.13.0release notes

  • Keeps multiple reduce-scatter input buffers in flight so backward compute does not stall waiting to recycle a single buffer.

    2.13.0release notes

  • Adds a stable C shim for error-code checks, available for target version 2.13 and newer.

    2.13.0release notes

  • Add an optional fake_mode argument, with dynamic_shapes="from_example_inputs", to reuse the caller's FakeTensorMode and ShapeEnv.

    2.13.0release notes

  • Pipeline schedule step() accepts extra keyword arguments for the loss function, supporting loss functions that need arguments beyond output and target.

    2.13.0release notes

  • Adds an API to clear a registered materializer hook.

    2.13.0release notes

  • Reports whether deferred materialization is pending and replaces is_cow() for that check.

    2.13.0release notes

  • Exposes overlapsWithUsedNodes and getVmap.

    2.13.0release notes

  • Adds a stable C shim so extensions built against the stable ABI can retrieve the original error message across the C API boundary.

    2.13.0release notes

  • Adds a stable C shim for retrieving the original error message without a backtrace across the C API boundary.

    2.13.0release notes

  • Adds stable ABI access to an accelerator stream's native handle, gated behind TORCH_FEATURE_VERSION >= 2.13.

    2.13.0release notes

  • Add torch::stable::Generator.

    2.13.0release notes

  • Adds a way to swap submodules in scripted modules while updating parent types and remapping referenced types across graphs.

    2.13.0release notes

  • Support torch.accelerator.device_index in the device context manager.

    2.13.0release notes

  • Add an API to control the memory layout policy for accumulated gradients.

    2.13.0release notes

  • Gradient inputs can now be passed as a dict.

    2.13.0release notes

  • Adds the region_activation_memory_budget autograd API.

    2.13.0release notes

  • isolate_recompiles=True gives each compile call its own isolated cache bucket, preventing cross-compile interference in cache lookups and recompile-limit checks.

    2.13.0release notes

  • Sets the default torch.compile backend globally, so backend authors need not pass backend= at every call site; explicit backend arguments take precedence.

    2.13.0release notes

  • Expose the current cuSOLVER handle for sharing.

    2.13.0release notes

  • Returns a dtype's short string abbreviation, such as f32 for torch.float32.

    2.13.0release notes

  • Support pin_memory for torch.full.

    2.13.0release notes

  • Exposes einops-style tensor reshaping through the torch.func namespace.

    2.13.0release notes

  • Add a c10::layout typecaster for torch.layout.

    2.13.0release notes

  • Support pin_memory for torch.ones.

    2.13.0release notes

  • Adds an operator tag declaring that an operator mutates a tensor in place; tagged custom operators gain improved torch.compile behavior and generated fake/meta kernels.

    2.13.0release notes

  • Adds an operator tag declaring that it writes into a caller-provided output tensor; tagged custom operators get fake/meta kernels generated for free.

    2.13.0release notes

  • Adds a Python binding for read-only data pointer access on tensors.

    2.13.0release notes

  • Add last_level_cache_size and is_integrated_gpu to XPU device properties.

    2.13.0release notes

  • Support torch.xpu.device in the device context manager.

    2.13.0release notes

  • Support pin_memory for torch.zeros.

    2.13.0release notes

  • Adds Triton input- and weight-gradient convolution kernels as an autotuning backend instead of the ATen-only fallback.

    2.13.0release notes

  • Add a host-to-device copy operation.

    2.13.0release notes

  • Add torch.xpu APIs for device temperature, frequency, power draw, engine utilization, memory bandwidth usage, and used device memory.

    2.13.0release notes

  • Adds a config flag that improves tracing speed when enabled.

    2.12.0release notes

  • Semi-structured sparse tensors can now be instantiated with alg_id.

    2.12.0release notes

  • The Gloo backend now supports all_to_all.

    2.12.0release notes

  • amdgcnspirv is now a supported offload target, but is not enabled by default.

    2.12.0release notes

  • Added an op for asynchronous activation offloading to CPU.

    2.12.0release notes

  • Added an op for asynchronous activation reload.

    2.12.0release notes

  • Added an op for asynchronous activation offloading stream management.

    2.12.0release notes

  • Added a compile backend registry and custom device support so out-of-tree device backends can plug into the eager compile/load flow.

    2.12.0release notes

  • AOTI Eager can use one compiled kernel for multiple input shapes through AOTIPythonKernelHolder.

    2.12.0release notes

  • Selective Activation Checkpointing now supports user AutoNamingMode.

    2.12.0release notes

  • Adds a pdb-style debugger for stepping through nested frames during Dynamo tracing, with n, u, d, r, and bt commands.

    2.12.0release notes

  • Adds a user-callable breakpoint() that automatically starts the Dynamo tracing debugger.

    2.12.0release notes

  • MPS now supports cholesky_solve.

    2.12.0release notes

  • Exposes a brgemm API for fp8 (e4m3 and e5m2) GEMM, backed by oneDNN.

    2.12.0release notes

  • Added an option that reduces per-parameter kernel launches to two kernels per bucket.

    2.12.0release notes

  • Added a config flag to opt out of Welford reduction in code generation.

    2.12.0release notes

  • Added print() higher-order operator support for DTensor.

    2.12.0release notes

  • Adds grad_placements to control gradient placements explicitly in the backward pass.

    2.12.0release notes

  • Added is_pinned() support.

    2.12.0release notes

  • Adds the DynamicInt __pow__ method.

    2.12.0release notes

  • Adds the DynamicInt __rpow__ method.

    2.12.0release notes

  • Adds the enable_gqa parameter to SDPA MPS meta registration.

    2.12.0release notes

  • ROCm now supports expandable segments.

    2.12.0release notes

  • A new operator clones foreach tensors, with a CUDA fast path using _foreach_copy_.

    2.12.0release notes

  • hipSPARSELt now supports FP8 semi-structured sparsity.

    2.12.0release notes

  • FSDP2 supports per-parameter meshes, allowing different parameter groups to shard over different meshes.

    2.12.0release notes

  • Supports DTensors on a full SPMD mesh via DataParallelMeshDims.

    2.12.0release notes

  • Added a method that detects and merges overlapping fusion groups.

    2.12.0release notes

  • Added the ignore_raw_node option.

    2.12.0release notes

  • Adds half precision FFT support on the XPU backend.

    2.12.0release notes

  • Added CPU support for unsigned int8 multiplied by signed int8.

    2.12.0release notes

  • Added an API for input-independent graph optimization.

    2.12.0release notes

  • MPS now implements linalg_qr.

    2.12.0release notes

  • XPU CUTLASS GEMM kernel codegen and codecache enable CUTLASS-style GEMM templates to target Intel GPUs.

    2.12.0release notes

  • Added MTIA Triton codegen support for median.

    2.12.0release notes

  • AOTInductor's C shim layer supports float8_e8m0fnu and float4_e2m1fn_x2 for MXFP4 quantization.

    2.12.0release notes

  • Adds suspend(), resume(), and memory_stats() APIs for managing communicator memory lifecycle.

    2.12.0release notes

  • Added nested tensor deserialization support.

    2.12.0release notes

  • Added a bias argument to normalization methods including LayerNorm, GroupNorm, and RMSNorm.

    2.12.0release notes

  • Exposed num_splits in varlen attention so split_kv can be disabled.

    2.12.0release notes

  • Added the compute_estimator option.

    2.12.0release notes

  • Added scalar prefetch and indirect access support.

    2.12.0release notes

  • Memory visualize adds a tab showing the private pool memory view.

    2.12.0release notes

  • Profiler activity selection now supports fine-grained activity type selection.

    2.12.0release notes

  • Adds symmetric-memory support for variable-sized block reductions with NVLink multicast or LSA fallback.

    2.12.0release notes

  • Adds a CPU implementation of scaled_mm_v2.

    2.12.0release notes

  • Added MTIA Triton codegen support for sort.

    2.12.0release notes

  • Added an option that wraps submodule outputs in a tuple.

    2.12.0release notes

  • Adds donate_graph_module to avoid extra graph module copies during standalone compilation.

    2.12.0release notes

  • Adds a barrier API and TCPStore client BARRIER support, reducing synchronization round trips compared with the ADD+WAIT pattern.

    2.12.0release notes

  • Added a thread-safe RNG utility function for dataloading.

    2.12.0release notes

  • Adds min/max bounds for communicating value ranges to the symbolic shape system.

    2.12.0release notes

  • A unified frontend Graph interface provides graph capture and replay across CUDA, XPU, and out-of-tree backends.

    2.12.0release notes

  • The unified Graph API is now supported on XPU.

    2.12.0release notes

  • Adds a keyword argument to override the per-function recompile cap without changing global config.

    2.12.0release notes

  • Inductor supports user-defined streams in compiled regions, including stream context managers and record_stream calls with synchronization and cross-stream dependency tracking.

    2.12.0release notes

  • Adds the enable_annotations keyword argument to torch.cuda.graph.

    2.12.0release notes

  • Added a timeout parameter.

    2.12.0release notes

  • Adds an API to check whether a tensor is a symmetric memory tensor.

    2.12.0release notes

  • The CUTLASS backend now supports this dtype, including registration for FP8 GEMM autotuning.

    2.12.0release notes

  • NanCheck is available as a standalone op usable outside of ProcessGroupNCCL.

    2.12.0release notes

  • Adds a configurable timeout for the SIGTERM-to-SIGKILL interval during worker shutdown.

    2.12.0release notes

  • Adds unsigned integer types to Metal cast operations.

    2.12.0release notes

  • Inductor can fuse user Triton kernels with downstream pointwise epilogues by parsing kernel source and inlining the epilogue into tl.store.

    2.12.0release notes

  • Added the enable_gqa flag.

    2.12.0release notes

  • Adds memory_clock_rate and memory_bus_width to XPU device properties.

    2.12.0release notes

  • Register pack and unpack hooks on an individual saved tensor to control how it is stored and restored for the backward pass.

    2.0.0upgrade guide

  • Use this context manager to apply a pair of pack and unpack hooks to all saved tensors created within the context.

    2.0.0upgrade guide

  • Adds a function to enable or disable FlashAttention for scaled dot product attention.

    2.0.0upgrade guide

  • Adds a function to enable or disable the PyTorch C++ implementation of scaled dot product attention.

    2.0.0upgrade guide

  • Adds a function to enable or disable Memory-Efficient Attention for scaled dot product attention.

    2.0.0upgrade guide

  • Adds a context manager to enable or disable scaled dot product attention implementations, allowing developers to control which kernels can run.

    2.0.0upgrade guide

  • Adds scaled dot product attention with optional boolean or float attention masks, dropout, and causal masking. The beta API may select optimized CUDA kernels automatically.

    2.0.0upgrade guide

Performance 97

  • all_gather_object is faster.

    2.15.0release notes

  • The min-cut partitioner reduces cold compile time by about 5%.

    2.15.0release notes

  • Single-column BF16 GEMMs use the native GEMV path on specified Arm Neoverse builds, accelerating single-thread GPT-2 decode.

    2.15.0release notes

  • XPU col2im replaces its hard-coded work-group size and runs faster.

    2.15.0release notes

  • Collective bucketing is faster, including up to 9x faster uneven reduce-scatter padding.

    2.15.0release notes

  • Enabled Composable Kernel SDPA flash attention on RDNA4 (gfx1200/gfx1201).

    2.15.0release notes

  • Kernel call overhead is reduced by 40–50%.

    2.15.0release notes

  • BF16 performance improves by 6–29%.

    2.15.0release notes

  • CUDA 2D transpose copies are faster.

    2.15.0release notes

  • Adds a built-in CUDA batched LU kernel matching MAGMA and improves backend selection without pivoting.

    2.15.0release notes

  • CUDA dtype-conversion copies are faster.

    2.15.0release notes

  • Assigning scalars through indexing avoids CPU-GPU synchronization.

    2.15.0release notes

  • CUDA pooling backward is faster.

    2.15.0release notes

  • Uses the NVLS multicast barrier when a multicast mapping is available.

    2.15.0release notes

  • Reduces reduce-scatter gradient memory for size-1 shard groups and low-precision gradients.

    2.15.0release notes

  • View cache hits are faster.

    2.15.0release notes

  • CUDA scratch memory use is reduced for _foreach_norm and max.

    2.15.0release notes

  • A 10–30x slowdown affecting gather, index_select, x[idx], and scatter_add on rows of 16 or 32 bytes is fixed.

    2.15.0release notes

  • Larger reduction tiles roughly double HBM bandwidth use.

    2.15.0release notes

  • Added XPU support; geqrf now runs natively instead of falling back to CPU.

    2.15.0release notes

  • New backward configurations provide 1.8–2.3x faster performance.

    2.15.0release notes

  • Adds a channels-last CUDA kernel.

    2.15.0release notes

  • XPU forward is fused into a single kernel, and contiguous cat uses vectorized stores.

    2.15.0release notes

  • Caching, background source hashing, and parallel combo-kernel benchmark compilation reduce Inductor compile time.

    2.15.0release notes

  • Added XPU support; the operation now runs natively instead of falling back to CPU.

    2.15.0release notes

  • More MPS operations, including softmax, nll_loss, padding, and where, use native Metal kernels, reducing launch overhead and driver memory growth with variable shapes.

    2.15.0release notes

  • MPS reductions, linear algebra, GEMV, convolutions, histc, masked fill, dropout, and sort are faster.

    2.15.0release notes

  • Softmax over a non-innermost dimension and scalar-argument unary operations are faster on row-strided views.

    2.15.0release notes

  • Calling nn.Module is about 15% faster.

    2.15.0release notes

  • AArch64 dispatches non-contiguous FP16 matmuls to oneDNN ACL GEMM kernels instead of the reference implementation.

    2.15.0release notes

  • Decode performance improves on Blackwell, with a wider set of autotuning candidates.

    2.15.0release notes

  • XPU overhead is reduced by trimming scratchpad initialization, host synchronizations, and re-allocation.

    2.15.0release notes

  • CUDA constant loading parallelizes pinned host staging copies.

    2.15.0release notes

  • AArch64 small-batch performance improves by 2–4x.

    2.15.0release notes

  • RMSNorm backward is faster by up to 2x on sm12x.

    2.15.0release notes

  • Mix-order reduction fusion supports more shapes, speeding up RMSNorm backward.

    2.15.0release notes

  • Compile time in ShapeEnv is reduced.

    2.15.0release notes

  • Chains are simplified to reduce recomputation and peak memory.

    2.15.0release notes

  • Added gfx1250 Tensor Data Mover support to Inductor for mm/addmm, pointwise and reduction codegen, and FlexAttention.

    2.15.0release notes

  • Wheels ship top_level.txt again, fixing slow importlib metadata calls that delayed importing libraries.

    2.15.0release notes

  • Copies are fused into foreach kernels for dynamic shapes.

    2.15.0release notes

  • Reduces compiled-code and helper per-call overhead, and compile time by deferring gen-2 GC, skipping empty graphs, and speeding up large functions.

    2.15.0release notes

  • Receives split/cat optimizations.

    2.15.0release notes

  • torch.jit.load and graph pre-optimization are faster.

    2.15.0release notes

  • Added a native MPS implementation for mixture-of-experts models.

    2.15.0release notes

  • CUDA 13 Linux wheels use ahead-of-time compiled radix-select kernels on Hopper and Blackwell.

    2.15.0release notes

  • CUDA performance improves 5–25x for small outputs.

    2.15.0release notes

  • Vectorized type-casting loads avoid register spilling in mixed fp32/bf16/fp16 elementwise kernels.

    2.15.0release notes

  • Training is faster by aligning the oneDNN graph pattern with oneDNN v3.13 and integrating GQA and dropout support.

    2.15.0release notes

  • CUDA zero_ is faster.

    2.15.0release notes

  • Conversions are lowered directly on CPU and CUDA instead of relying on fallback conversion code.

    2.14.0release notes

  • Adds native float32 and complex64 MPS implementations, retaining CPU fallbacks for small matrices and matrices exceeding threadgroup memory.

    2.14.0release notes

  • Reduce memory use for torch.nonzero on MPS.

    2.14.0release notes

  • Importing this module no longer eagerly compiles TorchScript merely because the module is imported.

    2.14.0release notes

  • Support CPU activation offloading in the rematerialization pass, marking recomputed nodes for backward and freeing offloaded tensors after host-to-device copy.

    2.13.0release notes

  • XPU inference gains oneDNN-backed sequence-level support, replacing the per-timestep fused-cell path.

    2.13.0release notes

  • Improves Inductor GEMM search-space performance using the Origami project on ROCm.

    2.13.0release notes

  • Adds a fast path for guardless cache hits.

    2.13.0release notes

  • Skips a Dynamo graph break for scalar-only binary operations when tensorify is enabled.

    2.13.0release notes

  • Reduces GIL contention during tensor deserialization.

    2.13.0release notes

  • Improve heuristics for switching between cuSOLVER and cuBLAS backends.

    2.13.0release notes

  • Added non-TMA persistent Triton templates for addmm under max-autotune, enabling persistent kernels on hardware without TMA.

    2.12.0release notes

  • Batches cubin-to-object conversion using .incbin assembly, substantially reducing compile time for models with many Triton kernels.

    2.12.0release notes

  • Adds a vectorized AArch64 SVE transpose implementation independent of fixed vector widths.

    2.12.0release notes

  • Added an Inductor Triton template for depthwise conv1d.

    2.12.0release notes

  • Reimplements cross as a single-stage Metal kernel on MPS.

    2.12.0release notes

  • Inductor discovers registered .out overloads and lowers functional custom ops to them, enabling memory planner buffer reuse.

    2.12.0release notes

  • Improves performance for torch.cat and pytree operations.

    2.12.0release notes

  • PTX-to-fatbin compilation is parallelized when this option is enabled, reducing AOTI export time for large models.

    2.12.0release notes

  • Switches the MPS exponential distribution implementation to native Metal.

    2.12.0release notes

  • Migrates eye to native Metal kernels on MPS.

    2.12.0release notes

  • Multi-consumer F.pad is rewritten as torch.cat to enable zero-copy.

    2.12.0release notes

  • Migrates fill_ to native Metal kernels on MPS.

    2.12.0release notes

  • Uses SymmMem for reduce-scatter.

    2.12.0release notes

  • Overlaps reduce-scatter with compute for per-parameter meshes.

    2.12.0release notes

  • Migrates index_fill_ to native Metal.

    2.12.0release notes

  • Adds an ARM NEON implementation for bilinear and bicubic interpolation with antialias on ChannelsLast RGB images.

    2.12.0release notes

  • Migrates lerp to native Metal kernels on MPS.

    2.12.0release notes

  • Added non-TMA persistent Triton templates for mm under max-autotune, enabling persistent kernels on hardware without TMA.

    2.12.0release notes

  • Added MTIA Triton codegen support for mode.

    2.12.0release notes

  • Frees q, k, and v earlier to reduce peak memory usage.

    2.12.0release notes

  • Fixes quadratic name generation, improving performance for graphs with many nodes.

    2.12.0release notes

  • Replaces MPSGraph nonzero with a native Metal prefix-sum and scatter implementation.

    2.12.0release notes

  • Migrates norm to native Metal kernels on MPS.

    2.12.0release notes

  • Adds a multi-tensor fast path.

    2.12.0release notes

  • Migrates relu to native Metal kernels on MPS.

    2.12.0release notes

  • Improves performance on MPS.

    2.12.0release notes

  • The pack hook uses non-blocking copies to speed up activation offloading.

    2.12.0release notes

  • Migrates silu to native Metal kernels on MPS.

    2.12.0release notes

  • Improves performance for COO-by-dense batch matrix multiplication.

    2.12.0release notes

  • Inductor enables padding fusion with torch.cat and avoids duplicate cat/pad computation for inputs with multiple consumers.

    2.12.0release notes

  • DTensor performance is improved for torch.cat.

    2.12.0release notes

  • Batched CUDA inputs use an improved cuSolver path for better performance.

    2.12.0release notes

  • Avoids duplicate tensor serialization when saving multiple exported programs.

    2.12.0release notes

  • On XPU, skips boundary validation checks needed only on CPU to avoid unnecessary device-to-host synchronization.

    2.12.0release notes

  • Parallelizes across batch and channel dimensions, improving VLM position embedding resizing performance.

    2.12.0release notes

  • Migrates xlogy to native Metal kernels on MPS.

    2.12.0release notes

Behavior and default changes 160

  • Added mixed-precision support to the fused Adam implementation on XPU.

    2.15.0release notes

  • Added mixed-precision support to the fused AdamW implementation on XPU.

    2.15.0release notes

  • c10::List iterators satisfy std::random_access_iterator, and List<T>::emplace now constructs a T.

    2.15.0release notes

  • Added MPS support for complex64 in linalg.lu_factor, linalg.lu_solve, triangular solves, and tanh backward.

    2.15.0release notes

  • Reports kernel grid and block dimensions, dynamic shared memory size, and programmatic dependency edges.

    2.15.0release notes

  • Enabled FP8 2:4 sparsity on ROCm MI300.

    2.15.0release notes

  • FsspecReader is now public in torch.distributed.checkpoint.

    2.15.0release notes

  • No longer requires the deprecated enable_symm_mem_for_group call.

    2.15.0release notes

  • Added XPU support for the out variant; linalg.qr now runs natively instead of falling back to CPU.

    2.15.0release notes

  • When enabled, backed SymInt inputs now emit runtime asserts.

    2.15.0release notes

  • Windows CUDA builds and wheels now enable the FlashAttention backend for Ampere and newer GPUs, where SDPA previously fell back to the math backend.

    2.15.0release notes

  • Allows FlashAttention-4 when query/key and value head dimensions differ.

    2.15.0release notes

  • Added XPU support for float8 in scatter fill.

    2.15.0release notes

  • The cuDNN backend is preferred for SDPA on sm86 and sm89 for higher performance.

    2.15.0release notes

  • Child groups now share the parent Store connection.

    2.15.0release notes

  • Enabled symmetric memory on XPU by registering a SymmetricMemory allocator for torch.xpu.MemPool.

    2.15.0release notes

  • The variable now defaults to on; C++ stack traces use dladdr by default, showing library path and offset and a symbol name only when exported.

    2.15.0release notes

  • Adds sort to the stable C++ ABI.

    2.15.0release notes

  • Non-strict export logs now include compile and frame IDs.

    2.15.0release notes

  • Loads an extracted package directory directly.

    2.15.0release notes

  • Added a native MPS implementation, enabling the operation in AOTInductor on MPS.

    2.15.0release notes

  • Added MPS support for torch.frexp.

    2.15.0release notes

  • Regenerated split, split_with_sizes, and unbind outputs are rebuilt as a single slice or select of their base, changing grad_fn names and in-place error text without changing gradients.

    2.15.0release notes

  • Meta implementations for helper ops enable fake-tensor tracing.

    2.15.0release notes

  • Instances are now hashable.

    2.15.0release notes

  • Supports Optional[list[Tensor]] annotations.

    2.15.0release notes

  • Accepts float8_e4m3fn inputs on MPS.

    2.15.0release notes

  • Adds backward and forward-mode automatic differentiation for Bessel functions.

    2.15.0release notes

  • Added MPS support for torch.special.laguerre_polynomial_l.

    2.15.0release notes

  • Adds CPU and CUDA support in clamp, maximum, and minimum.

    2.15.0release notes

  • Nested reduction fusion is enabled by default; set this environment variable to 0 to disable it.

    2.15.0release notes

  • The build option is turned off automatically when no target CUDA architecture is sm80 or newer.

    2.15.0release notes

  • The cuDNN backend supports causal grouped-query attention with a paged KV cache, including head dimension 256 on Blackwell GPUs.

    2.15.0release notes

  • Added XPU support for unsigned integer dtypes in where.

    2.15.0release notes

  • Supports lazy autotuning and compilation of torch.cond and torch.while_loop.

    2.14.0release notes

  • Adds native MPS support.

    2.14.0release notes

  • A single CUDA graph can now use multiple memory pools.

    2.14.0release notes

  • Supports head dimension 256 on SM90 and SM10.x with cuDNN newer than 9.22 and cuDNN Frontend 1.24 or newer; backward currently requires d_qk and d_v both 256.

    2.14.0release notes

  • Multiword compiler commands such as "zig c++" are accepted when building Inductor-generated C++ code on POSIX systems.

    2.14.0release notes

  • Returns input nodes, output nodes, and parameters in deterministic graph order.

    2.14.0release notes

  • Adds initial technology-preview AMD support; CK SDPA/GEMM, FP8 grouped GEMM, and int4 matrix multiplication remain unsupported.

    2.14.0release notes

  • Enabled on Linux with ROCm 7.14 or newer.

    2.14.0release notes

  • Pair communicators are included in error reporting, suspend/resume operations, and memory statistics, with broader shared backend coverage.

    2.14.0release notes

  • Partitioned-scatter selection is memory- and contention-aware and enabled by default on ROCm; set this setting to False to opt out.

    2.14.0release notes

  • Adds native MPS sampling, eliminating its CPU fallback.

    2.14.0release notes

  • Module functions and constants are accepted as messages.

    2.14.0release notes

  • Explicitly registered logging.Logger methods with supported positional arguments run after the compiled region instead of causing graph breaks.

    2.14.0release notes

  • Adds XPU FP8 blockwise scaling support for MXFP8, MXFP4, and NVFP4 recipes.

    2.14.0release notes

  • CUDA now supports torch.float16 and torch.bfloat16 inputs.

    2.14.0release notes

  • Selecting the CK GEMM backend now works on ROCm gfx90a devices, independently of CK attention support.

    2.14.0release notes

  • Compilation support expands for Python constructs and tracing covers additional accelerator, tensor, and distributed operations.

    2.14.0release notes

  • Reuse now supports source-backed objects, symbolic shapes, dataclasses, and namedtuples.

    2.14.0release notes

  • Supports dynamic shapes for dimensions marked with mark_unbacked, allowing one artifact to serve multiple runtime sizes without guarding on that dimension.

    2.14.0release notes

  • CUDA graph memory pools are included in the reported reserved memory.

    2.14.0release notes

  • Can be used inside a compiled region; allocations in the context, including fallback and extern kernels, are routed to the pool.

    2.14.0release notes

  • Device-qualified Gloo backends are accepted when TorchComms is enabled.

    2.14.0release notes

  • Adds bfloat16 support on CUDA and float16/bfloat16 support on XPU; unsupported CUDA and XPU cases promote to float32, while CPU FFT continues to reject these dtypes.

    2.14.0release notes

  • The eager CPU torch.polar kernel now supports Half inputs.

    2.14.0release notes

  • MPS dispatch key is preserved through transforms, enabling MPS autocast and autograd under vmap and grad.

    2.14.0release notes

  • Enabled on ROCm 7.14 or newer through hipSOLVER's generic Xgeev API.

    2.14.0release notes

  • Adds MPS support, including complex inputs, on macOS 15 or newer.

    2.14.0release notes

  • Backward support is available on CPU, CUDA, and MPS, and Dynamo can trace the operation.

    2.14.0release notes

  • MPS gains support for the operation.

    2.14.0release notes

  • Adds native float32 and complex64 MPS implementations, retaining CPU fallbacks for small matrices and matrices exceeding threadgroup memory.

    2.14.0release notes

  • Added to the core ATen decomposition table used by ExportedProgram.run_decompositions(), including correct dim=() handling, and gained sparse COO dispatch.

    2.14.0release notes

  • Out-of-tree backends can define additional out_dtype combinations under fake/meta tracing; CUDA and XPU restrictions remain unchanged.

    2.14.0release notes

  • The chunked path handles probability targets with mean or sum reduction when target dtype matches input and targets do not require gradients.

    2.14.0release notes

  • Can process float32 and float64 inputs larger than 2**24 elements on devices supporting float64 by computing ranks in float64.

    2.14.0release notes

  • CUDA float16 and bfloat16 support is added, including supported sparse-CSR backward paths.

    2.14.0release notes

  • Adds bfloat16 support on CUDA and float16/bfloat16 support on XPU; unsupported CUDA and XPU cases promote to float32, while CPU continues to reject these dtypes.

    2.14.0release notes

  • Compiled scans now honor deterministic-algorithm settings.

    2.14.0release notes

  • Adds scalar searchsorted support, broader copy-view batching, scalar fill and comparison support, and a native in-place masked_fill_ rule. Batched repeat_interleave requires a common output_size.

    2.14.0release notes

  • Adds CUDA graph support.

    2.14.0release notes

  • Bare backend names are auto-qualified, process-group options pass through custom backend creation, and unknown device-qualified names can register as custom backends.

    2.14.0release notes

  • NVGEMM profiles ten configurations by default; set this variable to 5 to restore five.

    2.14.0release notes

  • Origami is enabled for ROCm max-autotuning by default; set TORCHINDUCTOR_ORIGAMI=0 to opt out.

    2.14.0release notes

  • Adds native recording mode on non-PVC devices when built with oneAPI 2026.1 or newer.

    2.14.0release notes

  • Profiler overhead is recorded as OVERHEAD activities on a dedicated track in exported traces.

    2.14.0release notes

  • Adds IPC memory handle sharing support on XPU.

    2.14.0release notes

  • Inductor autotuning subprocesses now honor this XPU environment variable.

    2.14.0release notes

  • Frame pointers are enabled by default so profilers can produce accurate stacks.

    2.13.0release notes

  • Positional arguments can now be passed as keyword arguments to autograd custom Functions.

    2.13.0release notes

  • Enable combo_kernel_autotune_grouping by default.

    2.13.0release notes

  • Delegate calls to custom process group subclasses.

    2.13.0release notes

  • Dynamo supports __setitem__ and __delitem__ on more container types via sequence and mapping slots.

    2.13.0release notes

  • Enables external events in CUDA graphs on ROCm.

    2.13.0release notes

  • Supports TheRock wheel distribution.

    2.13.0release notes

  • Adds FlexAttention support for MPS, bringing the feature to Apple Silicon.

    2.13.0release notes

  • Add XPU dispatch for _fused_adagrad_.

    2.13.0release notes

  • Enable rewriting of FX traces containing complex tensors during compilation.

    2.13.0release notes

  • Graphsafe RNG in aot_autograd is generalized to support non-CUDA device backends.

    2.13.0release notes

  • Make LocalTensorMode transparent to torch.compile so compilation proceeds as if the debugging mode were inactive.

    2.13.0release notes

  • Adds a differentiable decomposition.

    2.13.0release notes

  • Alert when non-deterministic algorithms are used on MPS.

    2.13.0release notes

  • No longer explicitly depends on ProcessGroupNCCL, allowing symmetric memory to work with out-of-tree backends such as torchcomms.

    2.13.0release notes

  • Support mixed-type operations between Nested and Dense tensors on XPU.

    2.13.0release notes

  • Profiler/Kineto now emits channel metadata on CUDA backends.

    2.13.0release notes

  • Add FP8 blockwise scaling support for scaled_mm on XPU.

    2.13.0release notes

  • Storage.is_pinned is now device-agnostic.

    2.13.0release notes

  • Storage.pin_memory is now device-agnostic.

    2.13.0release notes

  • Add a stable ABI for set_python_module on torch::Library.

    2.13.0release notes

  • Generated C shims for the AOTI stable ABI are versioned and gated by this target version, exposing newer shims only when supported.

    2.13.0release notes

  • Triton CPU AOTI models now work end-to-end through the public compile-and-package API, including packaging multiple shared libraries per kernel.

    2.13.0release notes

  • Enable Armv9-A target support for torch.compile on AArch64.

    2.13.0release notes

  • Triton kernels compiled with torch.compile can accept tl.constexpr values as kernel arguments.

    2.13.0release notes

  • The is_compiling flag is now set for the whole torch.compile session.

    2.13.0release notes

  • Adds MPS support for Dirichlet by implementing _sample_dirichlet and _dirichlet_grad in Metal.

    2.13.0release notes

  • Make the functorch JVP operator torch.export-able.

    2.13.0release notes

  • Support serialization of opaque type constants during torch.export save and load.

    2.13.0release notes

  • Support forward-mode automatic differentiation on models wrapped with fully_shard or replicate, including mixed precision.

    2.13.0release notes

  • torch.load can now load safetensors.

    2.13.0release notes

  • AOTI Eager now supports multi-return ops such as native_layer_norm and aminmax.

    2.12.0release notes

  • PyTorch execution traces now capture whether collectives are asynchronous.

    2.12.0release notes

  • cond supports aliases and mutations under no_grad.

    2.12.0release notes

  • ROCm CPP extensions now compile only for the user's detected architecture.

    2.12.0release notes

  • Backs out making cuBLASLt the default BLAS backend when available.

    2.12.0release notes

  • MPS cumprod now supports complex inputs.

    2.12.0release notes

  • MPS cumsum now supports complex inputs.

    2.12.0release notes

  • DeviceMesh is now traceable by torch.compile and made opaque.

    2.12.0release notes

  • DTensor redistribution now supports twice-differentiable operations.

    2.12.0release notes

  • Expanded sharding strategy coverage across listed indexing, transform, linear algebra, normalization, foreach, fused, and einsum operations.

    2.12.0release notes

  • Dynamo tracing now supports enum.Enum iteration.

    2.12.0release notes

  • FSDP2 supports non-floating-point parameters by excluding them from reduce-scatter while still sharding and all-gathering them as needed.

    2.12.0release notes

  • Warns instead of raising an error when fullgraph=True falls back to eager.

    2.12.0release notes

  • Added higher-order derivatives.

    2.12.0release notes

  • hipSPARSELt is enabled for ROCm >= 7.12, including FP8 semi-structured sparsity support.

    2.12.0release notes

  • MPS histogram now supports float and bfloat types.

    2.12.0release notes

  • invoke_subgraph now supports subgraph reuse.

    2.12.0release notes

  • Dynamo tracing now supports itertools.takewhile.

    2.12.0release notes

  • MPS logcumsumexp now supports complex inputs.

    2.12.0release notes

  • Autotuning now extends to combo kernels, with per-sub-kernel block-size configurations, sequential autotuning, and reduction hints.

    2.12.0release notes

  • MPS now supports mvlgamma.

    2.12.0release notes

  • MPS nn.functional.linear now supports complex inputs.

    2.12.0release notes

  • Dynamo tracing now supports nn.Module.__getattribute__.

    2.12.0release notes

  • nonstrict_trace now accepts nn.Module inputs.

    2.12.0release notes

  • Dynamo can trace operator.index(tensor), bool(...), and float(...) using CPython numeric slots; torch.Generator methods graph-break.

    2.12.0release notes

  • Adds PadMM AutoHeuristics for A100 and H200 and supports pad_mm AutoHeuristics in deterministic mode.

    2.12.0release notes

  • Combining per_process_memory_fraction with throw_on_cudamalloc_oom enables preemptive OOM rejection.

    2.12.0release notes

  • Profiler events() now has parity with the information returned by export_chrome_trace().

    2.12.0release notes

  • Symmetric memory CUDA ops now record parameter communications for ProcessGroup metadata in profiler traces.

    2.12.0release notes

  • MPS repeat now supports complex inputs.

    2.12.0release notes

  • MPS scatter now supports complex inputs.

    2.12.0release notes

  • Enables the split_group API when TorchComms is used as a TorchTitan backend on XPU.

    2.12.0release notes

  • Enabled the API for TorchComms on XPU.

    2.12.0release notes

  • TorchElastic stdout/stderr redirects now support Windows.

    2.12.0release notes

  • Defines unbacked slice-size symbols when bounds become provable after tracing.

    2.12.0release notes

  • Made public with aot_eager and inductor backend support.

    2.12.0release notes

  • Added backward and forward automatic differentiation support.

    2.12.0release notes

  • The requires_grad type is now Optional[bool].

    2.12.0release notes

  • Adds support for using triton.set_allocator inside torch.compile.

    2.12.0release notes

  • CUDA graphs can capture data-dependent torch.cond control flow in a single graph using conditional graph nodes on CUDA 12.4+; works with eager and cudagraphs compile backends, not Inductor.

    2.12.0release notes

  • Dynamo/Inductor now handles current-stream behavior through torch.cuda.stream.

    2.12.0release notes

  • Serialization now supports float8_e8m0fnu, torch.uint32, torch.uint64, and nested float lists.

    2.12.0release notes

  • CUDA calls now dispatch to cuSolver rather than MAGMA, which may affect numerical behavior, performance, or debugging.

    2.12.0release notes

  • CUDA calls now dispatch to cuSolver rather than MAGMA, which may affect numerical behavior, performance, or debugging.

    2.12.0release notes

  • Single-node training without --master-port or --standalone now uses an OS-assigned free port instead of port 29500.

    2.12.0release notes

  • triton.set_allocator is now supported inside torch.compile.

    2.12.0release notes

  • Added meta device support for initialization.

    2.12.0release notes

  • Added FP64 support on ROCm via hipBLASLt.

    2.12.0release notes

  • XPU device capability reporting adds Uint16, Uint32, Uint64, and FP8 support.

    2.12.0release notes

Tooling 10

  • Runs pytest or test/run_test.py in a manner similar to CI.

    2.15.0release notes

  • Adds kernel-level XPU Graph replay visibility, cross-rank XCCL collective correlation, and per-kernel hardware counters across Intel GPUs.

    2.15.0release notes

  • Adds the documented memory_format overload so static type checkers accept calls such as module.to(memory_format=torch.channels_last).

    2.14.0release notes

  • Static typing for indexing now resolves integer keys to Module and slices to Sequential.

    2.14.0release notes

  • Adds mappings for cublasMath_t, its enum values, and CUBLAS_COMPUTE_16F so HIP-ported extensions using these cuBLAS features hipify without project aliases.

    2.14.0release notes

  • Add a debugging tool to verify external inputs to a CUDA graph are alive before replay.

    2.13.0release notes

  • ROCm uses CMake's native HIP language support.

    2.13.0release notes

  • Adds Python 3.15 wheel builds across Linux CPU/CUDA, Triton, ROCm, and XPU.

    2.13.0release notes

  • Adds a new Inductor benchmarker based on Torch Profiler.

    2.13.0release notes

  • NCCL collective sequence numbers are now included in Kineto profiler traces, helping developers inspect collective ordering.

    2.12.0release notes

Fixes and other changes 391

  • Fixes compilation and incorrect results involving Tensor subclasses, mutated inputs, cache keys, unbacked symbols, opaque constants, device nodes, effect tokens, version counters, resize views, and dynamic-shape training graphs.

    2.15.0release notes

  • Fixes C++ wrapper compilation failures, lost buffer mutations, subgraph tensor constants, runtime constant dispatch, resource leaks, MPS artifacts, return-type outputs, and dropped lite-mode assertions.

    2.15.0release notes

  • Is now honored for dynamic size arguments.

    2.15.0release notes

  • The overrideable fused SDPA fake kernel now validates attention bias and key/value shapes.

    2.15.0release notes

  • The CPU kernel dispatch cache is populated, avoiding repeated CPU capability selection on every dispatch.

    2.15.0release notes

  • Supports Optional[list[Tensor]] annotations.

    2.15.0release notes

  • Fixes eager-matching out dtype checks, symbolic out bitwise shifts, and data-dependent linalg.cross behavior.

    2.15.0release notes

  • Support empty batch dimensions on CPU, CUDA, and MPS.

    2.15.0release notes

  • Triton scans such as cumsum now accumulate float16 and bfloat16 values in float32.

    2.15.0release notes

  • Accepts a CPU device_id.

    2.15.0release notes

  • Added XPU support for linalg.polar.

    2.15.0release notes

  • The chunked path supports soft-label targets with reduction="none".

    2.15.0release notes

  • Passing only one of min or max no longer crashes.

    2.15.0release notes

  • Fixed honoring EXHAUSTIVE with decompose-K and benchmarking all candidates under the same CUDA graph policy.

    2.15.0release notes

  • The C++ frontend function no longer crashes when num_heads is zero.

    2.15.0release notes

  • XPU uses the SDPA backend for multi-query attention even when enable_gqa=True is not passed.

    2.15.0release notes

  • Fixed precision for float64 and after expand().

    2.15.0release notes

  • ROCm falls back to the native RNN implementation when MIOpen RNN fails at runtime.

    2.15.0release notes

  • Fixes guard errors for jagged inputs with changing batch sizes and keepdim reductions.

    2.15.0release notes

  • Fused GRU cell meta kernels enable compiling CUDA nn.GRUCell.

    2.15.0release notes

  • Added XPU support for the stateless Philox RNG operation.

    2.15.0release notes

  • Python 3.15 Linux wheels now depend on triton so torch.compile works on GPU after installing torch.

    2.15.0release notes

  • Fixes empty-input attention, dropout seed and offset, SDPA results, large-input launches, FP8 GEMMs, graph-capture hangs, BF16 atomics, topk ordering, sharded batch norm, hipify integer narrowing, extension headers, warnings, and large-reduction indices.

    2.15.0release notes

  • The cuDNN backend fixes NaN query gradients on Hopper and silent generation corruption on B200 for the described sequence lengths and head counts; affected Hopper shapes fall back with older cuDNN.

    2.15.0release notes

  • Added XPU support for sparse linalg.vector_norm.

    2.15.0release notes

  • Added XPU support for sparse.spsolve.

    2.15.0release notes

  • Fixed exporting tensors on a non-current non-CUDA device.

    2.15.0release notes

  • Can now be read on non-leaf tensors.

    2.15.0release notes

  • Added MPS support for Tensor.put_ and torch.take.

    2.15.0release notes

  • Adds stream recording support for tensors on MPS.

    2.15.0release notes

  • Cloning a Sequential module no longer renames its submodules.

    2.15.0release notes

  • Fixed a segmentation fault on MPS.

    2.15.0release notes

  • Fixed incorrect results for overlapping out= tensors.

    2.15.0release notes

  • Buffer-protocol objects now supply the dtype through their buffer format.

    2.15.0release notes

  • AOTInductor now handles operators falling back to ATen through the proxy executor or C shim in lite mode.

    2.15.0release notes

  • Forwards name to custom backends as kwargs["name"].

    2.15.0release notes

  • torch.compile now works on Python 3.15; the unsupported-version check now applies to Python 3.16 and newer.

    2.15.0release notes

  • Added support for sinh, hypot, ldexp, and other math ops in torch.compile on MPS.

    2.15.0release notes

  • Fixes Windows parallel_for wrong results, including CPU scaled_dot_product_attention, and MPS argmax/argmin indices, convolution backward strides, warnings, and 64-bit constant truncation.

    2.15.0release notes

  • Fixes compiling 4-bit dynamically quantized matmul on Arm CPUs without the dot-product extension.

    2.15.0release notes

  • Fixes branch metadata mismatches caused by math.trunc on a SymInt.

    2.15.0release notes

  • Fixes expandable-segment unmapping on another device without synchronization and excessive device-memory reservations for IPC imports.

    2.15.0release notes

  • Graphs created by make_graphed_callables are no longer garbage-collected during an unrelated capture.

    2.15.0release notes

  • Keeps the device index unresolved under compile_on_one_rank so compiled artifacts are not rank-specific.

    2.15.0release notes

  • Fixes data-dependent guard errors, stale generated device arguments, symbolic-size fake tensor constant deserialization, fake tensor proxy errors, and masked assignment with data-dependent sizes.

    2.15.0release notes

  • Fixed torch.finfo(torch.float8_e5m2fnuz).eps being off by a factor of two.

    2.15.0release notes

  • Supports scalar scatter on CUDA.

    2.15.0release notes

  • Fixed gradients when one input is NaN.

    2.15.0release notes

  • Fixed compiled edge cases involving signed zeros, subnormals, float16, and bfloat16.

    2.15.0release notes

  • Added MPS support for torch.heaviside.

    2.15.0release notes

  • Fixed errors for fp8 dtypes without infinity and NaN being reported as finite for float8_e8m0fnu.

    2.15.0release notes

  • Fixed errors for fp8 dtypes without infinity.

    2.15.0release notes

  • On MPS, half and bfloat16 lerp computations now use float precision.

    2.15.0release notes

  • Fixes MPS crashes and wrong results in SVD, least squares, solve, pseudoinverse, and related complex operations and reductions.

    2.15.0release notes

  • Fixed precision loss from rounding the step to the output dtype on CPU for float16 and bfloat16, and on CUDA.

    2.15.0release notes

  • Fixed storage sharing being lost with map_location="meta" or FakeTensorMode.

    2.15.0release notes

  • Added MPS support for torch.logspace.

    2.15.0release notes

  • Fixed precision loss on CUDA caused by rounding the step to the output dtype.

    2.15.0release notes

  • Supports deterministic bicubic backward.

    2.15.0release notes

  • Compiled output now has the correct dtype when mean and standard deviation use mixed floating-point dtypes.

    2.15.0release notes

  • Dynamo export no longer hardcodes LSTM or GRU output lengths under dynamic shapes.

    2.15.0release notes

  • Fixed compiled edge cases.

    2.15.0release notes

  • Added MPS support for torch.take and Tensor.put_.

    2.15.0release notes

  • Several loss operations and addr no longer fall back to the slow loop under python -O.

    2.15.0release notes

  • First use no longer enqueues two commands, avoiding missing profiling data and intermittent Inductor autotuning failures.

    2.15.0release notes

  • Free memory is no longer under-reported on Xe2 and later GPUs.

    2.15.0release notes

  • Fixed the setting being ignored when set to 0.

    2.15.0release notes

  • Added MPS support for unsigned integer comparisons.

    2.15.0release notes

  • Supports large channels-last tensors on XPU by using 64-bit indexing.

    2.15.0release notes

  • USE_MIMALLOC=OFF is honored on Windows and AArch64.

    2.15.0release notes

  • When a source-distribution or release-tarball CUDA build lacks NCCL, the error message now names USE_SYSTEM_NCCL=1 and USE_NCCL=0 as fixes.

    2.15.0release notes

  • Fixes wrong values and NaN gradients when compiling weight_norm on one-dimensional parameters.

    2.15.0release notes

  • Large BF16 products compute only one triangle on SM100.

    2.15.0release notes

  • Updates the binaries to CUDA 13.2.2, resolving CUDA issues that could produce incorrect results in NVFP4 matrix multiplications and kernels with nested thread divergence.

    2.14.1release notes

  • Fixes incorrect solutions on MPS for complex batched underdetermined systems.

    2.14.1release notes

  • Fixes non-orthogonal U and inaccurate small singular values on MPS for rank-deficient and ill-conditioned inputs.

    2.14.1release notes

  • Fixes failures on MPS with a Metal pipeline-state error for inputs above 8192 elements.

    2.14.1release notes

  • Fixes an internal assert on MPS for complex inputs when using out.

    2.14.1release notes

  • Handle empty tensor inputs correctly in XPU addmv.

    2.14.0release notes

  • Functional backward supports the linear avg reduction instead of rejecting it after a successful forward pass.

    2.14.0release notes

  • The NCCL symmetric-memory backend now implements barrier instead of raising a not-implemented error.

    2.14.0release notes

  • Fix the Triton override to support XPU tensors.

    2.14.0release notes

  • Replacing FileBaton with filelock prevents stale-lock deadlocks.

    2.14.0release notes

  • Its pool is trimmed and allocation is retried once before an out-of-memory error is raised.

    2.14.0release notes

  • Create handles per device so sparse operations remain valid when a thread switches between CUDA devices.

    2.14.0release notes

  • Registered custom communication backends are selected instead of incorrectly falling back to NCCL or Gloo when the backend is unspecified.

    2.14.0release notes

  • CUDA IPC-backed dataset storage is released when workers exit, preventing retained producer-side references and allocations.

    2.14.0release notes

  • Post-dispatch make_fx tracing decomposes detach by default to fix silently incorrect second-order gradients; an explicit decomposition table retains previous behavior.

    2.14.0release notes

  • Compiled functions can return DTensor permutation views such as transpose, permute, or movedim.

    2.14.0release notes

  • Quantized byte and 4-bit rowwise lookups no longer fault on ROCm.

    2.14.0release notes

  • Generating guard messages for deeply nested symbolic-shape expressions no longer raises RecursionError.

    2.14.0release notes

  • summon_full_params with offload_to_cpu no longer accesses freed storage when the flattened parameter is already on CPU.

    2.14.0release notes

  • HIP C++ extensions on Windows now register hipify-produced .hip sources with MSVC so they are dispatched to hipcc.

    2.14.0release notes

  • Fix channels-last stride mismatch on XPU.

    2.14.0release notes

  • Complex inputs are rejected with NotImplementedError instead of an internal MPSGraph error.

    2.14.0release notes

  • Pinned memory correctly appears as a CPU tensor while retaining its shared Metal buffer.

    2.14.0release notes

  • Unsupported dtypes now produce a clear error.

    2.14.0release notes

  • The correct Metal cooperative-tensor ABI is selected on macOS 26 to prevent corrupted output.

    2.14.0release notes

  • Dtype-converting copies no longer overwrite their source and non-dense views copy correctly with matching strides.

    2.14.0release notes

  • Fix compiled multi_margin_loss with weights on XPU.

    2.14.0release notes

  • Non-contiguous tensors are handled safely, fixing vmap failures and possible out-of-bounds memory accesses.

    2.14.0release notes

  • Non-contiguous tensors are handled safely, and CUDA backward precision errors are fixed by applying missing upcasts.

    2.14.0release notes

  • Ranks are normalized through Python's integer protocol, allowing tensor integer ranks and clearly rejecting non-integral values.

    2.14.0release notes

  • CUDA backward uses 64-bit sample offsets.

    2.14.0release notes

  • Raise RuntimeError rather than crashing when XPU cannot allocate a pinned host-memory buffer.

    2.14.0release notes

  • Python subclasses can be constructed through the (store, rank, size) constructor, and their virtual overrides are dispatched correctly.

    2.14.0release notes

  • PyTorch publishes Python 3.15 wheels for Linux x86-64 and aarch64, Windows x86-64, and macOS Apple silicon across applicable builds; torch.compile remains unsupported.

    2.14.0release notes

  • PyTorch publishes free-threaded Python 3.15t wheels across the listed Linux, Windows, and macOS platforms; torch.compile remains unsupported.

    2.14.0release notes

  • Dynamo now matches Python behavior for a range of built-ins, conversions, descriptors, errors, operators, subclass types, and attribute probing.

    2.14.0release notes

  • The FBGEMM ARM path now checks overflow, fixing incorrect quantized values on some hardware.

    2.14.0release notes

  • Modules using only this hook no longer emit a warning intended for register_full_backward_hook when forward inputs do not require gradients.

    2.14.0release notes

  • The ROCm meta-kernel now uses the compact log-sum-exp dimension returned by ROCm backends, fixing nested tensor backward and torch.compile.

    2.14.0release notes

  • Fix oneDNN SDPA with GQA and a broadcasted mask on XPU.

    2.14.0release notes

  • On ROCm Windows, grouped-matrix, batch-normalization, and sparse-matrix operations raise clear unsupported-operation errors instead of crashing when optional libraries are unavailable.

    2.14.0release notes

  • A warning is issued when collectives are launched concurrently on multiple streams, which can otherwise deadlock.

    2.14.0release notes

  • MPS computes integer absolute values exactly instead of rounding through float32.

    2.14.0release notes

  • MPS handles empty dimensions.

    2.14.0release notes

  • MPS supports strided output tensors on macOS 14 and 15.

    2.14.0release notes

  • Fractional arguments with an integer output dtype no longer produce the wrong length due to premature truncation.

    2.14.0release notes

  • Validation error messages preserve dynamic type names and argument indices.

    2.14.0release notes

  • MPS handles empty dimensions and does not propagate NaN or infinity from input when beta=0.

    2.14.0release notes

  • Supports second-order gradients, so grad-grad computations no longer fail for lack of a backward derivative.

    2.14.0release notes

  • MPS ternary-kernel dispatch is fixed for large tensors and mixed-dtype out tensors.

    2.14.0release notes

  • CUDA clamp preserves signed zero.

    2.14.0release notes

  • Inductor handling of torch.combinations and several other operation and graph-output cases is corrected.

    2.14.0release notes

  • Compilation better matches Python built-ins, operators, iterators, container initialization, object behavior, exceptions, and subgenerator closure behavior.

    2.14.0release notes

  • Selected Dynamo, Inductor, and FX tracing state is thread-local to prevent race conditions when compilation is invoked concurrently from multiple threads.

    2.14.0release notes

  • No-op dropout decompositions preserve eager identity semantics, avoiding replacement of a Parameter with a cloned fake tensor when dropout is disabled.

    2.14.0release notes

  • Graph reuse, eager autograd, graph capture, and transposed captured buffers are fixed.

    2.14.0release notes

  • Compilation fixes cover tensor subclasses, torch.func, autocast, metadata guards, fake-mode re-entry, in-place mutation, and several graph-break cases.

    2.14.0release notes

  • Symbolic proxy tracing and repeated lowering edge cases involving contiguous-stride expressions are fixed.

    2.14.0release notes

  • ROCm graph capture no longer fails or hangs for callables using hipBLASLt; warmup and capture use the same stream.

    2.14.0release notes

  • A nonzero root argument is respected instead of always broadcasting from the first tensor.

    2.14.0release notes

  • Complex MPS inputs now produce clear unsupported-dtype errors.

    2.14.0release notes

  • Compiled output and gradients are corrected for overlapping-input operations.

    2.14.0release notes

  • Streams are flushed before fsync so buffered writes are persisted correctly on remote filesystems such as GCS.

    2.14.0release notes

  • Locally synchronized calls consistently return GroupMember.NON_GROUP_MEMBER on nonmember ranks.

    2.14.0release notes

  • Subgroups whose local and global source ranks differ no longer produce a zero source gradient.

    2.14.0release notes

  • Gloo and NCCL no longer crash when the world process group was not the first backend instance created.

    2.14.0release notes

  • MPS floor division now matches CPU and CUDA nonfinite-value semantics.

    2.14.0release notes

  • Dynamic-shape specifications for functions with **kwargs now accept call-like keys and specs nested under the variadic parameter, and ambiguous name collisions report UserError.

    2.14.0release notes

  • Strict export treats parameters from modules in unregistered Python containers as constants rather than trying to restore them from eager module state.

    2.14.0release notes

  • Non-strict export now handles tensor indexing under vmap when the index is a batched scalar tensor.

    2.14.0release notes

  • Restores parameters, buffers, and constants for non-contiguously numbered repeated module calls.

    2.14.0release notes

  • Compiled MPS operations no longer fail with KeyError for unsigned 16-, 32-, or 64-bit index expressions.

    2.14.0release notes

  • MPS FFT operations work when a transformed dimension is outside the tensor's final four dimensions.

    2.14.0release notes

  • Fix a crash when out_dims=-1 and the mapped function returns an output independent of its vmapped input.

    2.14.0release notes

  • MPS results are corrected for extreme values.

    2.14.0release notes

  • MPS handles empty indices.

    2.14.0release notes

  • Length clamping and padding remain symbolic under dynamic shapes, avoiding recompilation and data-dependent guard failures when requested length crosses signal length.

    2.14.0release notes

  • Fix scripting a wrapper containing an already-scripted child with a __jit_ignored_attributes__ submodule.

    2.14.0release notes

  • Signed right-shift export rounds negative values toward negative infinity, matching PyTorch.

    2.14.0release notes

  • Gradients for negative integer exponents now return 2.0 ** exponent instead of zero.

    2.14.0release notes

  • Invalid complex norm orders raise a clear ValueError; dynamic compilation also handles p='fro' and p='nuc' with symbolic tensor sizes.

    2.14.0release notes

  • Boolean MPS inputs now produce clear unsupported-dtype errors.

    2.14.0release notes

  • CUDA Graph capture is fixed for this operation.

    2.14.0release notes

  • The CPU gelsy driver no longer returns an incorrect rank because of stale pivot values between batched LAPACK calls.

    2.14.0release notes

  • MPS preserves exact integer values for large ranges.

    2.14.0release notes

  • Backward accuracy improves using a correctly rounded double-precision log(10) constant.

    2.14.0release notes

  • Backward accuracy improves by using named mathematical constants.

    2.14.0release notes

  • CPU and MPS now agree with other backends when eps > 0.5.

    2.14.0release notes

  • Inconsistent LU_pivots and LU_data shapes now raise a clear error instead of segfaulting.

    2.14.0release notes

  • Compiled output strides and channels-last memory format now match eager CPU execution.

    2.14.0release notes

  • MPS supports strided output tensors on macOS 14 and 15.

    2.14.0release notes

  • MPS exponential samples remain strictly positive so one-sample multinomial cannot select a zero-probability entry.

    2.14.0release notes

  • Meta output shapes are corrected when dim=() should reduce all dimensions.

    2.14.0release notes

  • MPS bfloat16 tensors no longer return their input unchanged.

    2.14.0release notes

  • Backward no longer crashes for channels-last MPS tensors.

    2.14.0release notes

  • MPS output is corrected when a kernel spatial dimension is at least 256.

    2.14.0release notes

  • MPS forward and backward now work with non-contiguous weights.

    2.14.0release notes

  • MPS handles input sizes that are not divisible by the output size.

    2.14.0release notes

  • Compiled execution rejects alpha=0 with the same error as eager execution.

    2.14.0release notes

  • CUDA backward no longer overflows int32 for mode="max".

    2.14.0release notes

  • ROCm nearest upsampling handles large channels-last outputs without exceeding HIP's launch limit.

    2.14.0release notes

  • ROCm nearest interpolation no longer fails on large channels-last inputs whose output approaches 2^32 elements.

    2.14.0release notes

  • MPS linear backward handles inputs with more than four dimensions, and complex high-rank linear operations no longer abort on macOS 27.

    2.14.0release notes

  • MPS linear no longer drops bias for vector-shaped inputs on macOS 26.

    2.14.0release notes

  • Biased MPS linear operations no longer corrupt rows when a batch dimension exceeds 2^16.

    2.14.0release notes

  • MPS linear forward and backward handle zero in_features without aborting.

    2.14.0release notes

  • Large matrix multiplications on M1 and M2 GPUs no longer produce incorrect results.

    2.14.0release notes

  • Compiled values and gradients are corrected when targets use -1 padding.

    2.14.0release notes

  • The attention-mask dtype is declared to cuDNN rather than inherited from graph I/O dtype.

    2.14.0release notes

  • Memory-efficient attention remap extents, causal key bounds, and 32-bit dropout offsets are corrected.

    2.14.0release notes

  • cuDNN variable-length SDPA is fixed.

    2.14.0release notes

  • CPU flash SDPA now returns correct results when the innermost input dimension is not contiguous.

    2.14.0release notes

  • MPS attention kernels now propagate NaNs correctly.

    2.14.0release notes

  • ROCm results are corrected for very large row counts when normalized size is not a multiple of 4.

    2.14.0release notes

  • MPS layer normalization supports float32 affine parameters with float16 or bfloat16 inputs in forward and backward.

    2.14.0release notes

  • MPS layer normalization improves small-variance row correctness and supports 64-bit indexing.

    2.14.0release notes

  • MPS backward applies inter-layer dropout correctly and avoids NaNs when dropout=1.

    2.14.0release notes

  • MPS fused affine multiplication uses float32 to match CPU and CUDA precision.

    2.14.0release notes

  • Decompositions avoid data-dependent guard failures when sequence lengths are symbolic.

    2.14.0release notes

  • Quantized gather export unpacks quantized tensor inputs before lowering.

    2.14.0release notes

  • The constant_pad_nd reference decomposition is fully functional, so dynamo ONNX export no longer fails functionalization for models using pad.

    2.14.0release notes

  • Becomes a no-op for an empty parameter group.

    2.14.0release notes

  • Fused CPU optimizer updates and float16/bfloat16 casts are corrected.

    2.14.0release notes

  • Backward handles Boolean scalar bases and symbolic Python integer exponents without an assertion failure or NYI SymInt equality crash.

    2.14.0release notes

  • Ordinary profiling no longer imports the experimental CUPTI monitor, preventing repeated warnings and tracebacks on systems with incompatible cupti-python versions.

    2.14.0release notes

  • The qint32 per-channel float_qparams path no longer divide-by-zero crashes, and whole-byte quantized types pack correctly.

    2.14.0release notes

  • Validate tensor shapes and sequence bounds before native kernels index direction-number tables.

    2.14.0release notes

  • CUDA relu preserves signed zero.

    2.14.0release notes

  • Fix compiled torch.signbit for float64 inputs on XPU.

    2.14.0release notes

  • Assigning Python integers greater than INT64_MAX no longer raises an overflow-unpacking error.

    2.14.0release notes

  • Fix incorrect large-int64 results while optimizing flat torch.unique.

    2.14.0release notes

  • Nonempty inputs with a zero-sized shape dimension raise a clear ValueError; empty indices remain supported.

    2.14.0release notes

  • Unsupported third-order derivatives are rejected instead of silently returning an invalid result; second-order derivatives and evaluation mode are unchanged.

    2.14.0release notes

  • Zero-sized spatial outputs now short-circuit to empty output and zero backward gradients, matching cuDNN and CPU behavior.

    2.14.0release notes

  • Triton CPU AOTI models now work end-to-end through the public load API, including loading packages with multiple shared libraries per kernel.

    2.13.0release notes

  • Messages show the forward op name instead of the backward node name.

    2.13.0release notes

  • Gradient clipping now produces correct results with multiple data-parallel shard axes.

    2.13.0release notes

  • Adds validation for invalid kernel sizes.

    2.13.0release notes

  • CUDA graphs use a storage-copy fallback for self-overlapping inputs and unbacked shapes, and are disabled for input storage mutation.

    2.13.0release notes

  • Does not route to cuDNN SDPA when batch size or head dimension exceeds 65536.

    2.13.0release notes

  • Fix a file descriptor leak from atexit cleanup.

    2.13.0release notes

  • Reusing a DefaultStager no longer causes a crash.

    2.13.0release notes

  • Dynamo exceptions are now pickleable.

    2.13.0release notes

  • Fixes filling byte-dtype views with misaligned storage offsets on MPS.

    2.13.0release notes

  • The MKL finder respects environment values from setvars.sh so custom oneAPI installs are detected correctly.

    2.13.0release notes

  • Fixes behavior under compile.

    2.13.0release notes

  • Fixes a segmentation fault on x86 CPU without AMX caused by the qlinear primitive cache.

    2.13.0release notes

  • Fixes signed-zero handling in its decomposition.

    2.13.0release notes

  • Optimizer state-dict save/load now uses the FSDP process group for models initialized with a non-default process group.

    2.13.0release notes

  • Fixes its decomposition when keep-probability is zero.

    2.13.0release notes

  • FX passes now preserve user runtime asserts.

    2.13.0release notes

  • Adds backward support on MPS.

    2.13.0release notes

  • Adds backward support on MPS.

    2.13.0release notes

  • Compares in opmath in its decomposition.

    2.13.0release notes

  • Fixes fake tensor length padding.

    2.13.0release notes

  • Support linear_bias on the reference and chunked paths.

    2.13.0release notes

  • Tracing tensor-parallel models no longer crashes from dead global-shape shadow nodes recorded in the graph.

    2.13.0release notes

  • BMM correctness is fixed when dynamic OpenMP threads are used.

    2.13.0release notes

  • Fixes dtype promotion in the CUDA kernel.

    2.13.0release notes

  • Adds validation for invalid output sizes.

    2.13.0release notes

  • Fixes a SIGSEGV on MPS.

    2.13.0release notes

  • Preserves internal precision in eager execution.

    2.13.0release notes

  • Zeros total_weight before accumulating.

    2.13.0release notes

  • Validate the delta type in the constructor.

    2.13.0release notes

  • Fixes incorrect output shapes when dim is negative under torch.compile.

    2.13.0release notes

  • Fixes mixed-dtype padding decomposition.

    2.13.0release notes

  • Fix pipeline construction for models with non-float intermediates that previously raised a gradient dtype RuntimeError.

    2.13.0release notes

  • Fixes data-dependent errors involving unbacked SymInts.

    2.13.0release notes

  • Profiler no longer emits the cycle-clearing warning when the schedule uses no cycles.

    2.13.0release notes

  • The backward dtype is no longer ignored.

    2.13.0release notes

  • Now works with @leaf_function, allowing a backward hook to fire once per backward pass after gradients are computed for all requires_grad inputs.

    2.13.0release notes

  • Inductor debug and repro tooling now serializes fake tensors and symbolic metadata, including for dynamic shapes.

    2.13.0release notes

  • Fix wrong learning rate initialization when milestones contain 0.

    2.13.0release notes

  • Uses torch.sigmoid() in its decomposition.

    2.13.0release notes

  • Fixes out-of-bounds indices for bool, int-max, and NaN inputs on MPS.

    2.13.0release notes

  • On multi-backend process groups, split only the relevant backend, avoiding extra rendezvous overhead and inconsistent group shapes.

    2.13.0release notes

  • DTensor squeeze no longer redistributes when strict_view is set, keeping the spec shape and local tensor in sync.

    2.13.0release notes

  • Fixes Windows builds with oneAPI 2025.3 and later.

    2.13.0release notes

  • Add a vmap batching rule for dtype views.

    2.13.0release notes

  • to_local no longer drops the _is_param marker set by nn.Parameter on custom tensors.

    2.13.0release notes

  • Fix decorator state leakage.

    2.13.0release notes

  • Compiled execution now raises IndexError in cases where eager execution does, and handles skipped frames with fullgraph and a non-default stance.

    2.13.0release notes

  • Fixes address compiled operator correctness and failures, including cumsum, cumprod backward, index operations, and convolution dtype mismatches.

    2.13.0release notes

  • Fixes crashes with batched matmul in inference_mode.

    2.13.0release notes

  • Fixes a crash from aten.lift functionalization on an already-functionalized tensor.

    2.13.0release notes

  • Fixes ExternalStream(0) to wrap the NULL stream.

    2.13.0release notes

  • Rounds the per-process memory fraction cap to avoid spurious OOM.

    2.13.0release notes

  • Fixes use under torch.compile.

    2.13.0release notes

  • Fixes shape validation for out tensors under torch.compile.

    2.13.0release notes

  • Fixes NaN float scalar handling in export guards and input constraint checks.

    2.13.0release notes

  • Fixes save/load serialization of predispatch wrapper functions, including JVP and vmap.

    2.13.0release notes

  • Simplifies Min/Max of scaled symbolic terms so export no longer rejects valid branch guards.

    2.13.0release notes

  • Fixes dynamic shapes for sparse COO inputs.

    2.13.0release notes

  • Handles scalar tensor slice bounds during non-strict export.

    2.13.0release notes

  • The CPU kernel now validates the pivot range.

    2.13.0release notes

  • Clear the MPSGraph cache when torch.mps.empty_cache() is called.

    2.13.0release notes

  • Validate opt_dtype for consistent error handling.

    2.13.0release notes

  • Route integer output dtype through nan_to_num and sum to produce correct results.

    2.13.0release notes

  • Implement autograd derivatives for torch.nextafter.

    2.13.0release notes

  • Fixes train/eval errors and dropout not being applied correctly on MPS.

    2.13.0release notes

  • Lowercase the environment variable value so it matches the true values.

    2.13.0release notes

  • Fixes decomposition for an empty dimension with nonzero split_size.

    2.13.0release notes

  • Add Half and BFloat16 dispatch support for torch.trace on CPU.

    2.13.0release notes

  • Add a vmap batching rule for torch.unbind_copy.

    2.13.0release notes

  • Bound the final process join or wait when workers are stuck in an uninterruptible process and log the unkillable PID.

    2.13.0release notes

  • Resolves relative cache directory paths.

    2.13.0release notes

  • Backward no longer crashes when the input is sharded.

    2.13.0release notes

  • DTensor view failures after an uneven Shard-to-Replicate redistribute are fixed by making the local tensor contiguous.

    2.13.0release notes

  • Return an exception that can be inspected from Python.

    2.13.0release notes

  • Fix shared-weight gradient double-counting.

    2.13.0release notes

  • Fixes illegal memory access in the Triton convolution2d_bwd_weight kernel on B100/B200 (sm100) GPUs.

    2.12.1release notes

  • Fixes fill_ on byte-dtype views with misaligned storage offset.

    2.12.1release notes

  • Fixes nondeterministic outputs with FLASH_ATTN on NVIDIA B200 GPUs.

    2.12.1release notes

  • Fixes complex overflow and underflow on MPS.

    2.12.0release notes

  • Fixes a crash when BlockMask is passed as an argument.

    2.12.0release notes

  • Inductor adds FMA-based addcdiv lowering for CUDA parity with eager.

    2.12.0release notes

  • Adds proper float64 handling for addmm on XPU.

    2.12.0release notes

  • Returns a zero-filled matrix on MPS when an input is empty.

    2.12.0release notes

  • Adds proper float64 handling for addmv on XPU.

    2.12.0release notes

  • Fixes addmv backward pass failure.

    2.12.0release notes

  • Reverts deprecation warning spam for allow_in_graph.

    2.12.0release notes

  • Fixes incorrect indices for boolean tensors on CUDA.

    2.12.0release notes

  • Fixes AsyncCollectiveTensor inputs leaking into compiled regions, which could cause errors or silent data corruption in tensor-parallel compile workflows.

    2.12.0release notes

  • Fixes channels_last inputs with offsets on MPS.

    2.12.0release notes

  • Adds proper float64 handling for baddbmm on XPU.

    2.12.0release notes

  • batch_isend_irecv now works under torch.compile.

    2.12.0release notes

  • Allows eps=0 in eval mode.

    2.12.0release notes

  • Adds error checking for bmm on MPS.

    2.12.0release notes

  • Fixes NaN handling in Triton code generation to match PyTorch NaN semantics.

    2.12.0release notes

  • Fixes cholesky(upper=True) on macOS for matrices larger than the block size.

    2.12.0release notes

  • Implemented clone for semi-structured sparse tensors.

    2.12.0release notes

  • Fixes incorrect results and alignment errors for non-64-byte-aligned tensors on XPU.

    2.12.0release notes

  • Fixes numerical inconsistency for channels_last format.

    2.12.0release notes

  • Avoids routing to cuDNN SDPA when dropout probability is not a multiple of 1/16.

    2.12.0release notes

  • Fixes SDPA with zero-stride broadcast Q/K/V inputs.

    2.12.0release notes

  • Cpp wrapper now allows custom ops with Optional[List[T]] arguments.

    2.12.0release notes

  • Isolates subprocesses to address CUTLASS illegal memory access.

    2.12.0release notes

  • Fixes an error when running two forward passes of DDP-wrapped BatchNorm.

    2.12.0release notes

  • Disables proxy tensor handling to fix DeviceMesh indexing.

    2.12.0release notes

  • Supports FP8 tensors on GPUs older than SM90.

    2.12.0release notes

  • Fixes backward behavior for value-selecting reductions such as topk, sort, and min.

    2.12.0release notes

  • Fixes the sharding strategy for None indices.

    2.12.0release notes

  • Fixes precision loss in backward dtype handling.

    2.12.0release notes

  • Fixes stack dimension normalization for DTensor.

    2.12.0release notes

  • Allows valid configurations with batch-dimension-only sharding instead of rejecting them.

    2.12.0release notes

  • Fixes view_as_complex with P(max)/P(min) placements.

    2.12.0release notes

  • Supports flatten and unflatten with _StridedSharding for full nn.Linear(DTensor) compatibility.

    2.12.0release notes

  • Fixes subclass __torch_dispatch__ bypass and symbolic-shape handling.

    2.12.0release notes

  • Requesting AuxRequest(max_scores=True) with the FLASH backend now raises a clear NotImplementedError instead of a later opaque error.

    2.12.0release notes

  • Removed mixed-dtype rejection to match the documented behavior.

    2.12.0release notes

  • Fixes HSDP buffer broadcast order when modules use meta-device initialization.

    2.12.0release notes

  • Reverts a regression and brings back all-gather prefetching.

    2.12.0release notes

  • Supports dataclass args and kwargs output without memory leakage.

    2.12.0release notes

  • Allows ModuleList and ModuleDict subclasses that implement forward().

    2.12.0release notes

  • Corrected argument type hints for better type-checking consistency.

    2.12.0release notes

  • Automatically handles non-contiguous inputs instead of asserting.

    2.12.0release notes

  • MPS gather now supports complex inputs.

    2.12.0release notes

  • grad, vjp, and jvp no longer return zeros under inference_mode.

    2.12.0release notes

  • Graph serialization now handles weakref objects.

    2.12.0release notes

  • Fixes a backward correctness bug on AMD wavefront-64 GPUs.

    2.12.0release notes

  • Fixes MPS behavior with noncontiguous weights.

    2.12.0release notes

  • MPS now supports index_reduce.

    2.12.0release notes

  • Fixes atomic misalignment for sub-32-bit types on MPS.

    2.12.0release notes

  • Inductor now catches Intel Triton compilation and runtime errors as IntelGPUError.

    2.12.0release notes

  • Fixes decomposition when using symbolic shapes.

    2.12.0release notes

  • Preserves scalar item() semantics for size-1 tensors.

    2.12.0release notes

  • Fixes MPS behavior with noncontiguous bias.

    2.12.0release notes

  • Inductor adds lerp decompositions for bitwise parity with eager.

    2.12.0release notes

  • Fixes noncontiguous behavior for lgamma, digamma, and polygamma on MPS.

    2.12.0release notes

  • Returns pivots on MPS.

    2.12.0release notes

  • Fixes backward for zero-dimensional inputs.

    2.12.0release notes

  • Fixes MPS handling of broadcasted bias.

    2.12.0release notes

  • Opaque-object value types are inlined into the graph consistently with Dynamo behavior.

    2.12.0release notes

  • Fixes MPS behavior for non-contiguous outputs.

    2.12.0release notes

  • Fixes side effects, aligns behavior with CPU, and preserves scalar tensor shape on MPS.

    2.12.0release notes

  • Fixes a regression involving dataclasses.replace() so storage metadata behaves correctly.

    2.12.0release notes

  • Avoids crashing for head dimensions above 192 by falling back to a CK tile.

    2.12.0release notes

  • Fixes gradient computation when inputs have different dtypes.

    2.12.0release notes

  • Added an autograd derivative for narrow_copy.

    2.12.0release notes

  • Adds a dtype check to the meta function to prevent invalid input types.

    2.12.0release notes

  • Fixes nn.Embedding module failures on XPU.

    2.12.0release notes

  • Fixes a compile crash with deterministic mode and replication padding.

    2.12.0release notes

  • MPS now has an implementation of nonzero_static.

    2.12.0release notes

  • Fixes a runtime error in one_hot.

    2.12.0release notes

  • Fixes eager and compile inconsistency when fallback_random=True.

    2.12.0release notes

  • FX graphs containing repeat_interleave are now runnable.

    2.12.0release notes

  • No longer fails for custom ops with List[List[Tensor]] arguments.

    2.12.0release notes

  • Fixes ROCm validation that incorrectly rejected unsupported swizzle.

    2.12.0release notes

  • Fixes output shape when the value head dimension differs on MPS.

    2.12.0release notes

  • Fixes incorrect output for permuted q/k/v when B is greater than 1 on MPS.

    2.12.0release notes

  • Fixes MPS handling of noncontiguous inputs.

    2.12.0release notes

  • Passes the missing dim argument in FSDP2.

    2.12.0release notes

  • Fixes handling of multi-output intermediates in pipeline parallelism.

    2.12.0release notes

  • Fixes tied weights with uneven sharding across separate FSDP groups.

    2.12.0release notes

  • Added handlers for distributed functions.

    2.12.0release notes

  • Propagates divisibility checks to Triton tt.divisibility.

    2.12.0release notes

  • Fixes memory misalignment for torch.bmm(COO, Dense) on CUDA.

    2.12.0release notes

  • Fixes a graph break inside torch.autocast('xpu') that caused a dtype mismatch.

    2.12.0release notes

  • Fixes a performance regression for cumprod backward.

    2.12.0release notes

  • Fixes cudagraphs compatibility with the current stream.

    2.12.0release notes

  • Fixes hardcoded OpenMP thread counts.

    2.12.0release notes

  • Fixes the function returning True during torch.compile.

    2.12.0release notes

  • Preserves torch.cond ordering.

    2.12.0release notes

  • Does not fail when pynvml is installed on ROCm.

    2.12.0release notes

  • MPS now implements forward and backward operations for torch.distributions.Gamma.

    2.12.0release notes

  • Avoids a KeyError when module FQNs contain @N suffixes.

    2.12.0release notes

  • Export serialization now handles unused List[Tensor] outputs.

    2.12.0release notes

  • Scatter error messages for in-place operations are fixed.

    2.12.0release notes

  • Fixes broadcast failure with equal_nan=True.

    2.12.0release notes

  • Fixes DataDependentOutputException failures during export.

    2.12.0release notes

  • Fixes CUDA topk indices for inputs longer than 32-bit length.

    2.12.0release notes

  • Fixes backward for non-square matrices.

    2.12.0release notes

  • Fixes a low-precision issue with half-precision dtypes.

    2.12.0release notes

  • MPS unfold_backward now supports torch.complex64.

    2.12.0release notes

  • CPU sampling was updated to improve fp16 and bf16 results.

    2.12.0release notes

  • Fixes an ROCm SDPA build error when flash attention is disabled and memory-efficient attention is enabled.

    2.12.0release notes

  • Fixes batch rules for the group_norm backward operator.

    2.12.0release notes

  • For differentiation of a function with a real-valued loss and complex variables, PyTorch provides the conjugate Wirtinger derivative, which gives the correct optimization step.

    2.0.0upgrade guide

torch 150 changes

Breaking changes 17

  • Indexing a 0-dimensional tensor now throws an error instead of warning; use tensor.item() instead.

    1.0.0release notes

  • Deprecated factories taking a type first and size second are removed; use new-style factories with size first and TensorOptions last.

    1.0.0release notes

  • The out parameter is now checked to be a CPU Tensor.

    1.0.0release notes

  • Removed this mode for accuracy.

    1.0.0release notes

  • Implicit conversion no longer moves a tensor to CPU; CUDA tensors may need an explicit tensor.to('cpu') call before conversion.

    1.0.0release notes

  • The reduction name elementwise_mean is renamed to mean.

    1.0.0release notes

  • Extra positional arguments are no longer accepted and ignored.

    1.0.0release notes

  • Sparse tensor indices and values shape invariants change for consistency with zero-element tensors.

    1.0.0release notes

  • Some operations between torch.Tensors and NumPy arrays now favor torch dispatch, which may change the return type.

    1.0.0release notes

  • The redesigned distributed library operates asynchronously for Gloo, NCCL, and MPI backends.

    1.0.0release notes

  • The TCP backend has been removed; use Gloo or MPI for CPU collectives and NCCL for GPU collectives.

    1.0.0release notes

  • The result type of a torch.float16 zero-dimensional tensor combined with an integer is now torch.float16.

    1.0.0release notes

  • The legacy API has been removed.

    1.0.0release notes

  • torch.masked_copy_ has been removed; use torch.masked_scatter_ instead.

    1.0.0release notes

  • Returns tensors of shape (N,) instead of (N, C), matching MultiMarginLoss; the result is also more numerically stable.

    1.0.0release notes

  • Deleted torch.utils.trainer.

    1.0.0release notes

  • Operations producing zero-element tensors now return their documented shapes instead of collapsing every result to shape (0,).

    1.0.0release notes

Deprecations 4

  • Deprecated for use in C++ extensions; no replacement is listed.

    1.0.0release notes

  • Deprecated for C++ extensions; at::Tensor now has a requires_grad method.

    1.0.0release notes

  • Deprecated for C++ extensions; at::Tensor now has a set_requires_grad method.

    1.0.0release notes

  • Deprecated in C++ extensions in favor of torch/extension.h; including it produces a warning.

    1.0.0release notes

New APIs and options 12

  • A pure C++ interface to the PyTorch backend provides equivalents to Python frontend components for high-performance C++ applications; the API is marked unstable.

    1.0.0release notes

  • A file used to publish pretrained models and their definitions to a GitHub repository for Torch Hub.

    1.0.0release notes

  • Adds CUDA array interface compatibility for numba and other CUDA projects.

    1.0.0release notes

  • Converts a dense tensor to a sparse tensor.

    1.0.0release notes

  • Adds torch.diag_embed.

    1.0.0release notes

  • All distributed collective operations gain async support.

    1.0.0release notes

  • Loads pretrained models published to a GitHub repository using a hubconf.py file.

    1.0.0release notes

  • Transforms annotated Python models into Torch Script, which can be optimized and serialized for use without Python.

    1.0.0release notes

  • Provides a way to make existing code compatible with the JIT, enabling Torch Script conversion and optimization.

    1.0.0release notes

  • Adds an operator matching numpy.roll.

    1.0.0release notes

  • Adds a sparse-gradient version of the existing function.

    1.0.0release notes

  • Added an option to preserve bitwise accuracy between gradient-checkpointed and non-checkpointed dropout.

    1.0.0release notes

Performance 3

  • Performance improved on both CPU and GPU.

    1.0.0release notes

  • Printing large Tensors is now faster.

    1.0.0release notes

  • Distributed Data Parallel receives performance improvements, especially on hosts with slower networks such as ethernet-based hosts.

    1.0.0release notes

Behavior and default changes 2

  • The Gloo backend adds CPU support for send.

    1.0.0release notes

  • Tensors with zero elements can have arbitrary dimensionality and support indexing and other torch operations.

    1.0.0release notes

Fixes and other changes 12

  • Fixed an issue with the legacy reduce parameter.

    1.0.0release notes

  • Constructors now correctly check their device argument.

    1.0.0release notes

  • Output sizes are computed using integer math.

    1.0.0release notes

  • Fixed reverse subtraction when the CUDA device is not 0.

    1.0.0release notes

  • Empty indices are now allowed.

    1.0.0release notes

  • Fixed a segmentation fault.

    1.0.0release notes

  • Fixed behavior for infinity, zero, and minus infinity norms.

    1.0.0release notes

  • Improved error handling when replacement is False and no more categories can be selected; also fixed CUDA selection of zero-probability events when replacement is True.

    1.0.0release notes

  • Improved stability of the BCE formula with pos_weight.

    1.0.0release notes

  • Fixed calculated output sizes for modules using stride and dilation.

    1.0.0release notes

  • Correctly handles 1-dimensional versus 0-dimensional tensors saved from 0.3 versions.

    1.0.0release notes

  • Fixed sum on fp16.

    1.0.0release notes