Is a downloaded AI model safe to run?

LEARN / LOCAL AI Sources checked

A model name or matching SHA-256 cannot establish that a model is safe to run. Check the exact publisher, revision, files and loader; assess code execution, output behaviour, licence and privacy separately. A hash match checks file integrity against a reference.

What does safe mean for a local model?

Start with the exact repository and file, including the quantizer or fine-tune publisher. Keep your runner updated and read its supported formats. Loading weights, executing repository code, answering accurately and keeping prompts private are separate questions. An automated scan that reports no findings covers only its checks.

Scroll sideways to read all columns. With a keyboard, focus the table and use the left and right arrow keys.

What does safe mean for a local model?
QuestionWhat to checkWhat it establishes
Did I get the intended file?Publisher, pinned revision, complete filename, byte count and SHA-256A local hash match establishes agreement with the reference bytes
Could loading execute code?File format, loader and any custom repository codePickle can execute code on load; review code before enabling trust_remote_code
Is a safer tensor format enough?Safetensors avoids pickle deserialization; check the rest of the software tooA file format does not certify the loader, outputs or privacy
Will answers be reliable?Model card and your own task testsA name, scan or uncensored label does not validate future answers
Can I use it for my project?Upstream licence and derivative termsRead the terms; an unknown licence leaves permission unresolved
Will my prompts stay local?Runner mode, remote endpoints, tools and network settingsOffline inference requires the necessary files locally and a local execution path

An exact Qwen GGUF example

The table is a dated metadata observation, checked on 26 October 2026. The publisher file record and Hugging Bay record agree on the size and recorded hash. This guide did not download or rehash the model, run inference, or measure its memory use. Use the current file page for availability.

An exact Qwen GGUF example
FactRecorded value
Publisher repositoryQwen/Qwen2.5-0.5B-Instruct-GGUF
Revision9217f5db79a29953eb74d5343926648285ec7e67
Fileqwen2.5-0.5b-instruct-q4_k_m.gguf
Size491,400,032 bytes (0.4914 decimal GB)
Memory neededNot measured here; allow additional memory for the runner, context cache, OS and other apps
Declared licenceApache-2.0; read the publisher terms
Recorded SHA-25674a4da8c9fdbcd15bd1f6d01d621410d31c6fc00986f5eb687824e7b93d7a9db
Verification in this guideMetadata agreement only; no local byte rehash or model execution

Check the downloaded bytes

After obtaining that exact file, calculate its SHA-256 locally. On macOS:

shasum -a 256 qwen2.5-0.5b-instruct-q4_k_m.gguf

On Linux:

sha256sum qwen2.5-0.5b-instruct-q4_k_m.gguf

In Windows PowerShell:

Get-FileHash -Algorithm SHA256 .\qwen2.5-0.5b-instruct-q4_k_m.gguf

Compare all 64 hexadecimal characters against the trusted, pinned source record. If they differ, do not load the file until you resolve the mismatch. A match cannot establish who is trustworthy, that a loader is secure, that the model will fit, or that its answers are reliable. A signed manifest and a hash are different evidence; do not call an unsigned record signed.

Check what the loader will execute

Hugging Face documents that unpickling can execute arbitrary code. Prefer a supported tensor format that avoids pickle when your runner offers one, and inspect any accompanying scripts or install commands. Transformers custom models may require trust_remote_code=True; review that code and pin the revision before enabling it. GGUF and Safetensors are different formats and need compatible loaders. Neither extension is a blanket safety certificate. Hugging Face loading guidance explains the custom-code boundary.

Check licence and output claims

An uncensored or abliterated label describes a publisher claim, not a security test or a measured guarantee about every reply. Check the base model, changes, licence and task evidence. A conversion or fine-tune does not by itself establish new permission to use the original weights. Missing licence information is unresolved permission, not proof of a permissive licence. For network settings and offline limits, read local privacy.

Sources and checks

Checked 2026-10-26. Install requirements and availability can change; the linked source has current details.

Read as Markdown