{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "mudler-localai--run-models-from-hugging-face-or-ollama",
 "repo": "mudler/LocalAI",
 "repo_url": "https://github.com/mudler/LocalAI",
 "repo_slug": "mudler-localai",
 "title": "Run any model from Hugging Face, Ollama or an OCI registry",
 "page_title": "How to run any model from Hugging Face, Ollama or an OCI registry with LocalAI",
 "summary": "Load models straight from Hugging Face, Ollama or OCI references with one command.",
 "who": "A tinkerer who wants to try a specific GGUF or Ollama model through one consistent API.",
 "problem": "Each model source has its own tooling and serving setup.",
 "outcome": "Models from different sources running behind the same LocalAI API.",
 "steps": [
  "Install LocalAI",
  "Run a Hugging Face file: `local-ai run huggingface://TheBloke/phi-2-GGUF/phi-2.Q8_0.gguf`",
  "Run an Ollama model: `local-ai run ollama://gemma:2b`",
  "Or an OCI image: `local-ai run oci://localai/phi-2:latest`",
  "List what is installed with `local-ai models list`"
 ],
 "agent_prompt": "With mudler/LocalAI, load <model> from <Hugging Face or Ollama>, confirm it appears in local-ai models list, and call it through the OpenAI-compatible endpoint with a test prompt.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "Check each model's license before using it in a product.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Docker or Podman, or the macOS app (not signed by Apple)",
  "Optional GPU: NVIDIA, AMD, Intel, Apple Silicon or Vulkan; CPU-only works",
  "Disk space for the models you pull"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mudler-localai/run-models-from-hugging-face-or-ollama/",
 "md": "https://dedupedai.com/use-cases/mudler-localai/run-models-from-hugging-face-or-ollama/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mudler-localai--run-models-from-hugging-face-or-ollama.json",
 "api_version": "v1"
}
