← 2 November 2026 briefing

ai-safety · Reference checked 2026-11-02

An open model can also ask you to run someone else’s code

Background guide: some model implementations require custom code. Downloading weights and authorising that code are different decisions.

Conceptual crystal and metal illustration: An open model can also ask you to run someone else’s code.

Who it affects

People testing newly released models on local machines.

Why it matters

Running a model can involve software with access to local files and credentials. Understanding that distinction matters before treating a download as a harmless document.

What happened

Hugging Face documents custom model implementations and revision pinning. Selecting a specific revision helps prevent an unnoticed change in which code is loaded, but pinning does not itself prove that code is safe.

Review and version selection solve different problems. Review asks what the code can do; pinning records which version you chose. As a practical precaution, record the reviewed revision and any local changes before a trial, and use a disposable environment without sensitive files. This is an operational recommendation, not a guarantee supplied by the hosting platform: a fixed version can still contain harmful behaviour.

What to do with it

Enterprise

Review executable dependencies separately from model-weight licensing.

Small businesses

Ask a technical maintainer to assess a preview model before installing it on a business machine.

Individuals

Do not treat a popular download count as a security review.

A practical example

Imagine a model card that asks you to enable remote custom code. Before using a work laptop containing private documents, identify the implementation and have the relevant code reviewed in an appropriate isolated environment. This is a planning example, not an instruction to execute an unknown repository.

What to check next

Record the model revision and implementation revision together. Keep the test environment separate from valuable credentials and files. A safe weight-file format does not turn additional executable Python into inert data.

Terms to know

Revision pinning
Selecting a particular recorded version instead of automatically following later changes.
Executable code
Instructions the computer runs, which can perform actions beyond reading a weight file.

What the sources show

Confirmed

The official documentation describes custom code and version selection.

What may follow

Pinning can improve reproducibility and make later changes visible.

What is not established

A pinned revision or safe weight format does not guarantee all associated code is harmless.

Sources