Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Principle:Ollama Ollama Manifest Resolution

From Leeroopedia
Knowledge Sources
Domains Storage, Model_Management
Last Updated 2026-02-14 00:00 GMT

Overview

A resolution mechanism that reads, parses, and fetches model manifests from both local storage and remote registries to determine model composition and layer digests.

Description

Manifest Resolution is the process of obtaining a model's manifest — the JSON document that describes which content-addressed blobs compose the model. Manifests can be resolved locally (from the filesystem) or remotely (from the Ollama registry via HTTP).

For push operations, the local manifest is read to determine which blobs need to be uploaded. For pull operations, the remote manifest is fetched to determine which blobs need to be downloaded. The resolution also handles model name parsing to construct the correct filesystem paths and registry URLs.

Usage

Use this principle when implementing model distribution operations that need to determine the composition of a model before transferring its components.

Theoretical Basis

Manifest resolution paths:

Local Resolution:

  1. Parse model name → filesystem path (~/.ollama/models/manifests/{host}/{namespace}/{model}/{tag})
  2. Read and parse JSON manifest file
  3. Return Manifest with Config layer and content Layers

Remote Resolution:

  1. Parse model name → registry URL (https://{host}/v2/{namespace}/{model}/manifests/{tag})
  2. Authenticate with registry
  3. Fetch manifest via HTTP GET
  4. Parse JSON response

Push Flow:

  1. Resolve local manifest
  2. For each layer, check if blob exists on remote (HEAD request)
  3. Upload missing blobs
  4. Push manifest

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment