Topic 5 of 5 · 5 min read
Provenance, jurisdiction and trust in a model
Goal: Assess a model's origin, hosting jurisdiction and download source against a team's risk policy.
Trust in a model has three separate questions: who made it, where it runs and where your data goes, and whether the file you downloaded is safe; answer each against your team's policy.
Check yourself · 1 of 3
Why prefer the safetensors format over a pickle-based weights file from an unknown source?
Why it matters
A model is software plus a behaviour you cannot fully inspect. Some organisations restrict models by country of origin or hosting location. Some models are tuned to refuse or reshape certain topics. Downloaded files can be unsafe. None of these problems is specific to open or closed models, but open weights add choices you must now make yourself.
The three questions
- Origin. Who trained the model, and under which legal system? Some employers, public bodies and regulated industries restrict models from certain countries or vendors. Check your policy rather than guessing. Origin does not tell you a model is good or bad; it tells you which rules apply.
- Hosting and data. Where does your prompt go? With a closed API or a hosted open model, your text travels to the provider's servers, possibly abroad, and their terms decide retention and training use. Running an open model yourself keeps data inside your boundary, which suits strict privacy rules.
- The file. Weights come from the internet. Older formats such as Python pickle can run code when loaded. Prefer the safetensors format, download from the maker's verified organisation on the hub, check the file hash if one is published, and run unknown models in an isolated environment.
Built-in rules
Every model has trained-in behaviour: refusals, tone and, in some cases, avoided topics. Test for it with your own questions on the subjects you care about, and compare two models if the answers differ. A fine-tune from a third party can also add changes you did not ask for, so prefer well-known sources.
Before and after
Weak: "It is the top model on the hub this week, so we will download it and load it."
Better: "The policy allows models from approved vendors. This one is from the maker's verified account, ships as safetensors and has a published hash. We will run it self-hosted with no internet access and test sensitive topics before use."
sha256sum model.safetensors
Optional: compare the printed hash with the one the maker publishes.
What goes wrong
- Pickle files from strangers. Loading one can execute attacker code on your server.
- Lookalike repositories. A near-identical name on the hub can hold altered weights.
- Assuming self-hosted means private. A server with open ports or loose logs can still leak data.
- Judging by country alone. Origin matters for policy, but it is not a measure of quality.
Examples
A policy check
A bank's policy: approved vendors only, no customer text leaves the bank's cloud account, weights in safetensors only. A candidate model fails the first rule, because its maker is not on the approved list. The team stops there and does not test further.
The lookalike repository
Two repositories have almost the same model name. One belongs to the maker's verified organisation, with thousands of downloads. The other is an individual's account with a pickle file and no model card. The team uses the first and avoids loading the second.
Key points
- Ask three separate questions: who made the model, where your data goes, and whether the downloaded file is safe.
- Origin tells you which legal system and which policy rules apply; it does not measure quality.
- A hosted model sends your prompts to the host's servers; a self-run model keeps them inside your boundary.
- Prefer the safetensors format, because pickle-based files can run code when loaded.
- Download from the maker's verified account, check hashes when published, and test built-in refusals on topics that matter to you.
Common mistakes
- Downloading weights from an unverified account because the name matches a famous model.
- Loading pickle-format files on a machine that holds secrets or customer data.
- Assuming a self-hosted model is private without checking network access and logs.
- Rejecting or accepting a model by country alone, without reading the team's actual policy.
Check yourself · 2 of 3
Where do your prompts go when you call a model through a hosting provider's API?
Check yourself · 3 of 3
Two hub repositories have nearly the same model name. Which is safest to download from?
Practice items, not counted towards your mastery.
Start here
- The Open Source AI Definition (opens in a new tab)StandardFree
The formal test for what counts as open source AI: use, study, modify and share, with data information and code.
- Open models report (Epoch AI) (opens in a new tab)ArticleFree
Independent analysis of open-weight models, how they are released and how they compare with closed ones.
- Hugging Face model hub (opens in a new tab)ToolFree
Browse open-weight models with their licence, size and files shown on each model page.
More for this topic
- Pickle security (Hugging Face Hub docs) (opens in a new tab)DocsFree
Explains why loading a pickle-based model file can run code, and how the Hub scans for it.
- Safetensors documentation (opens in a new tab)DocsFree
A weight file format that stores only tensors, so loading it cannot execute code.