LocalAI

Self-hosted drop-in replacement for the OpenAI API running models locally.

Provider
default
Category
Compute
Properties · 4 set by this component
propertytypevaluesrequiredkind defaultthis component
acceleratorenumnone | gpu | asicnonone▸ none
acceleratorModel · advancedenumnvidia-h100 | nvidia-h200 | nvidia-b200 | nvidia-l4 | nvidia-a100 | amd-mi300x | aws-trainium | aws-inferentia | google-tpu | intel-gaudi | groq-lpu | cerebras-wseno—inherited
embeddingSyncMinutes · advancedinteger—no—inherited
inputsenumlive | historical | bothnolive▸ live
instancesinteger—no—inherited
managedboolean—nofalse▸ false
modality · component propertyenumtext | image | audio | embeddingsnotextinherited
modelSource · component propertyenumlocal-file | huggingface | ollama | oci-registryno—inherited
port · component propertyinteger—no8080inherited
snapshotToObjectStore · advancedboolean—nofalseinherited
trainingenumbatch | onlinenobatch▸ batch
Rules that apply · 1

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

stateful-node-without-zone-redundancy

A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.

  • — all of these hold:
  • — the node's `stateless` is false
  • — the node sits inside exactly 1 availability-zone group
  • — this does not hold:
  • — the node sits inside at least one cell group
Use it in a design
nodes:
  - { id: "localai", component: "localai" }
Other ML inference products · 37
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# LocalAI: self-hosted drop-in replacement for the OpenAI REST API, running models locally.
# Defaults from "Getting started": listens on http://localhost:8080, the default image is CPU-only
# and GPU backends (NVIDIA, AMD, Intel, Vulkan) are detected or selected separately.
schemaVersion: "1"
type: "component"
id: "localai"
kind: "ml-inference"
provider: "default"
docs: "https://localai.io/docs/basics/getting_started/"
defaults:
  training: "batch"
  inputs: "live"
  accelerator: "none"
  managed: false
properties:
  port:
    type: "integer"
    default: 8080
  modality:
    type: "enum"
    values: ["text", "image", "audio", "embeddings"]
    default: "text"
  modelSource:
    type: "enum"
    values: ["local-file", "huggingface", "ollama", "oci-registry"]

The same page as markdown, for an agent: /catalogue/components/localai.md