$ cat pytorch/month/2026-11-01.log
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.
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
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
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
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
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
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
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
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
Keep up with PyTorch in about 3 minutes: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
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.