Skip to content

Add documentation comment warning to only load trusted models#1568

Open
svick wants to merge 1 commit into
dotnet:mainfrom
svick:models-are-untrusted
Open

Add documentation comment warning to only load trusted models#1568
svick wants to merge 1 commit into
dotnet:mainfrom
svick:models-are-untrusted

Conversation

@svick
Copy link
Copy Markdown
Member

@svick svick commented May 26, 2026

We should warn users not to load untrusted models.

This corresponds to a similar warning in the PyTorch documentation:

torch.load() uses an unpickler under the hood. Never load data from an untrusted source.

Equivalent PR in ML.NET: dotnet/machinelearning#7611

@svick svick changed the title Add documentation comment warning to only load trusted models Add documentation comments warning to only load trusted models May 26, 2026
@svick svick changed the title Add documentation comments warning to only load trusted models Add documentation comment warning to only load trusted models May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant