Note
A Model Name Is Not a Digest: How to Pin Local Weights Against a Catalog Kill Switch
A tag like latest, a Hugging Face main branch or a GGUF filename says what a file is called today; a digest says which bytes you have. Local weights escape a catalog kill switch only when they are on your disk, pinned by a recorded hash, and load offline.
2026-11-24 · local-ai, open-weights, model-pinning, content-addressing, huggingface, ollama, llama-cpp, gguf, kill-switch, civil-liberties
Listen · 9 min · AI voice

Pulling a familiar tag — ollama pull llama3.2, or llama-cli -hf pointed at a Hugging Face repo — feels like the moment you "have" the model. That is a real gain over a remote API. It is not yet independence from a catalog.
A model name is not a digest. A tag such as latest, a Hugging Face branch called main, or a GGUF filename tells you what someone called the file today. A digest tells you which bytes you have. Continuity without a kill switch starts when those bytes sit on a disk you control, the digest is recorded somewhere that is not the catalog, and the runtime can load the file with the network unplugged.
This builds on the local and peer-to-peer AI overview, which introduced hashing in a short list, and on neighbouring notes about licences, silent loader failures, and background upgrades under a familiar tag.
Mechanism one: names float
On the Hugging Face Hub, a download with no revision argument takes the latest version from the main branch. The official download guide lets you pin a version with a revision parameter — a branch, a tag, a pull request, or a commit hash — and, for a commit, requires the full-length hash, not the short seven-character form.
That default moves. The Hub cache keeps a refs folder whose main file stores the commit identifier of the current head. If main later advances, re-downloading from that reference updates the stored identifier. The cache guide warns that two calls which each resolve revision="main" a few seconds apart "can land on two different commits if the repo is updated in between." The recommended fix is to resolve the revision once and pass that commit hash to every later download.
Ollama's API uses a model:tag format. The tag is optional and, if omitted, defaults to latest. "The tag is used to identify a specific version." It is still a pointer the library can move. The same API, when listing local models, also returns a digest — a "SHA256 digest identifier of the model contents." The name and the digest are not the same kind of identifier.
GGUF filenames are no better. The GGUF specification describes a naming convention "intended to make it easier for humans to at a glance get the most important details of a model," and "not intended to be perfectly parsable in the field." A filename is a label, not a checksum.
Mechanism two: the pin is a hash
What stays still is content addressing. A SHA-256 of a standalone GGUF or safetensors file on disk is a pin of that file. You compare it to a digest you saved, not only to a name still published on a website.
The Hugging Face cache is built on the same idea. Blobs are the actual files, and "the name of each file is their hash." Snapshots are per-revision folders of symlinks to those blobs. A path that still contains the word main is not, by itself, a pin: refs/main can be rewritten while an earlier snapshot folder, if you still have it, keeps the earlier commit.
The Hub also ships a check that is easy to confuse with an offline pin. hf cache verify "can verify that your cached files match the checksums on the Hub." That is useful, and it is still Hub-dependent. An offline pin is a digest you recorded, which you can recompute from the file with the network unplugged.
Ollama's pull stream, as documented, ends with "verifying sha256 digest", then "writing manifest". Creating a model from GGUF or safetensors files requires each file's SHA-256; a blob pushed with the wrong digest is rejected. None of that helps if you only wrote down a short prefix, or the tag alone. Record the full digest the API returns.
llama.cpp makes the same split in its flags. -m / --model loads a local path. -hf / --hf-repo downloads from a Hugging Face repository, defaulting to Q4_K_M or "the first file in the repo." Those are not the same act. The models documentation is explicit that "llama.cpp can also run models you have downloaded locally to your filesystem."
Mechanism three: the catalog is still a switch
Until the file is local and pinned, the catalog — or the author who publishes through it — can still change what a name means, or stop handing the file out.
Hugging Face's gated-model documentation is blunt. "The model authors have complete control over model access. In particular, they can decide at any time to block your access to the model without prior notice, regardless of approval mechanism or if your request has already been approved." A public repository can also be made private, after which other users who visit the URL "will receive a 404 - Repo not found error" and will not be able to clone it. Deleting a repository is documented as "an irreversible process."
Ollama's FAQ says the runner "pulls models from the Internet." The same FAQ describes cloud features — cloud-hosted models and web search — which you can turn off with disable_ollama_cloud in ~/.ollama/server.json, or OLLAMA_NO_CLOUD=1. It is careful on the privacy split: "We don't see your prompts or data when you run locally. When using cloud-hosted models, we process your prompts and responses to provide the service…" A local app is not automatically a local model.
Catalogs are how almost everyone finds weights, and a takedown can be a legitimate integrity or legal action. The point is narrower: a pull is a convenience path, not a pin. If your only copy is "whatever this name currently resolves to," a gate, a private toggle, or a deleted repo is still a kill switch.
Mechanism four: offline is the test
The test is boring: unplug the network, or ask the client not to use it, and see whether the runner still loads the same file.
On the Hub, if "the Hub cannot be reached (you are offline, the connection fails, or you passed local_files_only=True)" and the local snapshot is incomplete, snapshot_download raises an error instead of returning a partial folder. A previously resolved revision can fall back to the cached refs mapping; if nothing is cached, resolution fails.
llama.cpp will run a model from a local path. Ollama will import a GGUF from a local path — a Modelfile containing FROM /path/to/file.gguf, then ollama create — or from a directory of safetensors weights the same way. Once that import is done, the runtime is talking to blobs on your disk, not to a tag on a website.
If you still need the registry in order to start, you do not yet have a stack that survives a takedown.
What a digest does not prove
A matching hash answers one question: are these the bytes I meant? It does not tell you what the model was trained on, whether the declared licence governs the weights, or whether the loader mapped the tensors correctly — limits already covered in earlier notes. It also does not make a fine-tune wise to run. Provenance is not benevolence. Keep the model card from the same revision as the weights; cards are publisher claims, not certificates.
What you can verify yourself
The documented surfaces are enough to be specific. Record the full digest or the full commit hash — not a short prefix — somewhere that is not the catalog. Prefer a Hugging Face revision set to that commit, or a local file whose SHA-256 you have hashed yourself. Keep the model card and the weight file together, from the same revision. Confirm the runtime can load from a local path (-m, a Modelfile FROM, or local_files_only), with cloud features off if the runner has them. Treat latest and main as moving names: resolve once, then pin the result.
What this is not
This note does not rank runners or catalogs, and it does not say a hash makes a model safe, honest, or lawful to use in every context. It does not claim any particular model will be taken down, and it does not document a guarantee that a library keeps old manifests after a tag moves — registry retention was not verified here. Licence text, loader alignment, and background upgrades are covered in the related notes. Nothing here was tested by CryptoDecentral on any runner or file.
Related on CryptoDecentral
- Decentralised / local AI pillar
- Local and Peer-to-Peer AI: Data Residency Without the Hype
- Open Weights Is Not Open Source: What a Model Licence Actually Lets You Do
- Successful Load Is Not Proof: Embedded GGUF Alignment and Wrong Tensors
- A Background Upgrade Is Not a Verified Pull
- Local Is Not Private: Who Else Can Reach Your Model Server
Further reading (primary)
- Hugging Face Hub — Download files from the Hub
- Hugging Face Hub — Understand caching (refs, blobs, snapshots, pin a revision, cache verify)
- Hugging Face Hub — Quickstart (full-length commit hashes)
- Hugging Face Hub — Gated models
- Hugging Face Hub — Repository settings (visibility and 404)
- Hugging Face Hub — Create and manage a repository (
delete_repo) - Ollama API reference (model:tag, digest, pull verification, create-from-GGUF)
- Ollama FAQ (Internet pulls, local vs cloud-hosted models, disabling cloud features)
- Ollama — Importing a Model (local GGUF / safetensors)
- llama.cpp README
- llama.cpp — Obtaining and quantizing models
- llama.cpp CLI —
-m/--modeland-hf/--hf-repo - GGUF specification (naming convention)
Sources
- https://huggingface.co/docs/huggingface_hub/en/guides/download
- https://huggingface.co/docs/huggingface_hub/en/guides/manage-cache
- https://huggingface.co/docs/huggingface_hub/en/quick-start
- https://huggingface.co/docs/hub/en/models-gated
- https://huggingface.co/docs/hub/en/repositories-settings
- https://huggingface.co/docs/huggingface_hub/en/guides/repository
- https://github.com/ollama/ollama/blob/main/docs/api.md
- https://github.com/ollama/ollama/blob/main/docs/faq.mdx
- https://github.com/ollama/ollama/blob/main/docs/import.mdx
- https://github.com/ggml-org/llama.cpp/blob/master/README.md
- https://github.com/ggml-org/llama.cpp/blob/master/docs/models.md
- https://github.com/ggml-org/llama.cpp/blob/master/tools/cli/README.md
- https://github.com/ggml-org/ggml/blob/master/docs/gguf.md
- https://cryptodecentral.co.za/pillars/deai
- https://cryptodecentral.co.za/notes/decentralized-local-ai
- https://cryptodecentral.co.za/notes/open-weights-is-not-open-source
- https://cryptodecentral.co.za/notes/oss-ai-2026-09-21-gguf-embedded-alignment
- https://cryptodecentral.co.za/notes/oss-ai-2026-10-12-background-upgrade-is-not-a-pull
- https://cryptodecentral.co.za/notes/local-is-not-private-who-can-reach-your-model