RepoJournal

$ cat pytorch/month/2026-11-01.log

PyTorch

PyTorch

the month in review · November 2026

torch.load weights_only mode allows arbitrary file read

By RepoJournal · composed from the cited sources · human-reviewed weekly · methodology

♥

The month's only security issue sits alongside TorchRL 0.15 and a TorchTitan cross-entropy fix for softmax collapse.

1858 commits 1124 PRs merged 15 releases 1 security advisories 30 briefings covered

all pytorch reviews →

torch.load(weights_only=True) allows arbitrary file read pytorch/pytorch

The safe-by-default loading mode turns out to allow arbitrary file reads, which undercuts the reason most teams switched to it when loading downloaded checkpoints. Treat any untrusted .pt file as a live risk until an advisory names the affected and fixed versions.

TorchRL 0.15: Dataset Exports, TD-MPC2, Robot Deployment, and Flow Q-Learning pytorch/rl

by theap06

ReplayBuffer.export now ships Hugging Face and LeRobot adapters, alongside export_onnx_policy, MenagerieEnv, LowLevelController and TD-MPC2. The breaking part is checkpoint loading: starting in tensordict 0.16, TensorDict.load and load_memmap default to allow_pickle=False, so TorchRL now loads its own checkpoints with allow_pickle=True and your saved buffers need the same.

fix softmax collapse with improved ce perf pytorch/torchtitan

by ruisizhang123

TP cross-entropy now uses F.softplus to stop the softmax collapse that appears when a model gets overconfident, and the softmax-onehot computation moves to the forward pass so backward no longer repeats those ops or moves the buffer. If you train large models at tensor-parallel scale, this is a correctness fix first and a throughput gain second.

[Feature] export_onnx_policy: export TensorDict policies to ONNX with torch.onnx.export pytorch/rl

by theap06

torchrl.modules.export_onnx_policy(policy, path, example, out_keys=..., opset_version=18) exports a TensorDict policy through torch.onnx.export, which puts RL policies on the same deployment path as the rest of a PyTorch model.

[BugFix] Fix compact checkpoints of partial and emptied replay buffers pytorch/rl

by theap06

Partial and emptied replay buffers could produce checkpoints that NestedStorageCheckpointer and H5StorageCheckpointer then failed to load, with an IndexError out of bounds on dimension 0. Two causes are fixed: done flags written into unwritten rows, and the emptied-buffer case.

[inductor] Add triton.enable_fp_fusion flag to turn off FMA contraction (#202218) (#202218) pytorch/pytorch

by Dmitrii Dokshin

triton.enable_fp_fusion turns off FMA contraction, so a kernel stops changing bits depending on which autotuning candidate wins. The default triton.autotune_pointwise path can rotate between candidates, and that is the kind of nondeterminism that only shows up when a numerical test fails once a week.

Limit the default thread pool to the allowed CPUs on Linux (not Android) pytorch/executorch

by shoumikhin

On Linux (not Android) the default thread pool now caps itself at the CPUs the process is allowed to use, rather than one thread per machine CPU. Under taskset or a container CPU set the extra threads were competing for the same cores and made a small XNNPACK model 1.4x slower.

CUDA backend: lower fused attention variants pytorch/executorch

by shoumikhin

Decomposing scaled_dot_product_attention on CUDA turns it into _scaled_dot_product_flash_attention or, with a mask, _scaled_dot_product_efficient_attention, and the CUDA backend now lowers those fused variants so export stops choking on attention graphs. Alongside: ESP-IDF component generation with an int8 wake-word profile for Espressif targets, and Dynamo and Inductor fixes across the month.

$ ls pytorch/month/ # the briefings behind this review

Sun Nov 1 Softplus cross entropy in TorchTitan, ONNX export for TensorDict policies Mon Nov 2 Inductor gains an FMA-contraction kill switch; TorchRL can export TensorDict policies to ONNX Tue Nov 3 ExecuTorch bounds its thread pool, fixes mixed-dtype cat, and adds an ESP-IDF component generator Wed Nov 4 ExecuTorch fixes a Python-side deadlock and zero-stride export failures Thu Nov 5 int64 offsets in mem-efficient SDPA, FSDP policy fix for chunked loss Fri Nov 6 ROCm handle reuse, silent losses in pytorch/rl, and lazy device guards on HIP 7.14 Sat Nov 7 Target determination gets its own LLM again, and FSDP2 shards unevenly Sun Nov 8 TorchScript removals land and get reverted, MPS ctc_loss fixed Mon Nov 9 TensorDict fixes ragged numel(), TorchTitan defragments FSDP, PyTorch deprecates constrain_unify Tue Nov 10 TorchRL 0.15 ships dataset exports and TD-MPC2; ROCm drops a 2021 FFT workaround Wed Nov 11 torch.load weights_only arbitrary file read; tensordict cleanup fixes land Thu Nov 12 Tensordict's silent-wrong-answer bugs, and torchtitan opens multimodal SFT Fri Nov 13 TorchTitan picks up HybridEP and non-SP vision encoders; tensordict patches a segfault Sat Nov 14 TCPStore gets mutual TLS, NCCL 2.32.3 encryption exposed Sun Nov 15 C++ FakeTensor catches up to Python, and two ExecuTorch correctness fixes Mon Nov 16 DTensor any/all stops all-gathering, Helion fixes silent wrong results Tue Nov 17 Triton conv routing lands in ExecuTorch, CUDA 13.5 enters the nightly matrix Wed Nov 18 Faster RL transport, quieter graph capture Thu Nov 19 Portable ExecuTorch stops copying weights, and a crash fix for empty batches Fri Nov 20 Activation offloading lands in torchtitan, Dynamo closes a C slot gap Sat Nov 21 Torchtitan reshapes its config API, executorch repairs two broken CI lanes Sun Nov 22 Gloo deadlock fixed, Inductor keeps stream annotations Mon Nov 23 Dynamo test isolation fixed, float8 rounding reworked Tue Nov 24 Channels-last fix in interpolate, native CUDA graph node IDs in the profiler Wed Nov 25 Torchtitan trims MLP backward memory, Inductor splits reduction grids Thu Nov 26 Titan checkpoints drop base weights, MPS fused Adam stops inlining regression Fri Nov 27 MPS max_pool2d backward moves to the shared Metal gather kernel Sat Nov 28 Histogram gets meta kernels, XPU fills in pin_memory and narrow_copy.out Sun Nov 29 Stable Python object converters for Layout and MemoryFormat, Inductor autotunes TMA Mon Nov 30 GSPO lands in torchrl, Helion's flash attention closes on cuDNN

Keep up with PyTorch in about 3 minutes: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

fair warning: these emails are deeply technical. diffs, version numbers, CVEs, benchmark deltas. if that's not your idea of a good read, this isn't your newsletter.

Folds into your digest — weekly by default, monthly if you prefer. Unsubscribe in one click.

all pytorch reviews →