Documentation Index
Fetch the complete documentation index at: https://docs.tinfoil.sh/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Models tab prepares Hugging Face model weights for use inside a Tinfoil Container. It does not deploy an inference server by itself. Instead, it creates a verified model-weight artifact and gives you themodels: block
to add to tinfoil-config.yml.
Use this when you are deploying a GPU inference container, such as vLLM, and
want the model weights to be pinned and verified separately from the Docker
image.
Your Docker image still needs to contain the inference server runtime. The
Models tab prepares the weights that the runtime will load.
Why this exists
Enclave attestation proves what code and configuration were present when the enclave booted. Model weights are usually loaded from disk after boot, so they need their own integrity commitment. Tinfoil uses Modelwrap to turn a pinned Hugging Face commit into a read-only model package with a dm-verity root hash. The enclave config commits to that root hash, and dm-verity verifies each disk read while the inference server loads the model. For the full technical explanation, read How Tinfoil Proves Exactly What Model Is Running.Prepare weights
- Open the Tinfoil Dashboard
- Go to Tinfoil Containers > Models
- Enter the Hugging Face repo in
owner/modelform - Use the auto-filled commit, or paste a specific commit SHA
- Add an HF token if the repo is gated or private
- Click Prepare weights
models: block into your config repo.
Add the model block
The generated block looks like this:tinfoil-config.yml
mpk value is generated by Tinfoil and includes the model root hash,
verity offset, and verity UUID. Keep it exactly as generated.
Point your server at the mounted model
At boot, Tinfoil verifies the model artifact and mounts it read-only under/tinfoil/mpk. In your inference server command, use:
tinfoil-config.yml
mpk value:
Example vLLM config
tinfoil-config.yml
Updating weights
To update a model, prepare the new Hugging Face commit from the Models tab, replace therepo and mpk values in tinfoil-config.yml, then tag and
deploy a new release.

