Skip to content

Fact · Voice privacy and security

The PyTorch documentation for torch.load warns that the function uses an unpickler and that users should never load data from an untrusted source.

Checked against its source on October 17, 2026

In the source's own words

“Never load data from an untrusted source.”

torch.load: PyTorch documentation (version 2.14), PyTorch contributors, PyTorch, 2026, Warning note at the top of the torch.load page.

Open the original
What it measures
The warning appears directly under the function signature. The page also links to a separate section on weights_only security.
What it does not show
The warning is general and does not say how likely an attack is. Treat any model file from an unknown forum or site as untrusted.

Source

Cited on

PyTorch warns never to load model files from an untrusted source | Yap