llama-stack-mirror/docs/source/providers
Ashwin Bharambe 68a2dfbad7
feat(ollama): periodically refresh models (#2805)
For self-hosted providers like Ollama (or vLLM), the backing server is
running a set of models. That server should be treated as the source of
truth and the Stack registry should just be a cache for those models. Of
course, in production environments, you may not want this (because you
know what model you are running statically) hence there's a config
boolean to control this behavior.

_This is part of a series of PRs aimed at removing the requirement of
needing to set `INFERENCE_MODEL` env variables for running Llama Stack
server._

## Test Plan

Copy and modify the starter.yaml template / config and enable
`refresh_models: true, refresh_models_interval: 10` for the ollama
provider. Then, run:

```
LLAMA_STACK_LOGGING=all=debug \
  ENABLE_OLLAMA=ollama uv run llama stack run --image-type venv /tmp/starter.yaml
```

See a gargantuan amount of logs, but verify that the provider is
periodically refreshing models. Stop and prune a model from ollama
server, restart the server. Verify that the model goes away when I call
`uv run llama-stack-client models list`
2025-07-18 12:20:36 -07:00
..
agents fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
datasetio fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
eval fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
files docs: auto generated documentation for providers (#2543) 2025-06-30 15:13:20 +02:00
inference feat(ollama): periodically refresh models (#2805) 2025-07-18 12:20:36 -07:00
post_training docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00
safety docs: auto generated documentation for providers (#2543) 2025-06-30 15:13:20 +02:00
scoring fix: allow default empty vars for conditionals (#2570) 2025-07-01 14:42:05 +02:00
telemetry feat: improve telemetry (#2590) 2025-07-04 17:29:09 +02:00
tool_runtime fix: allow default empty vars for conditionals (#2570) 2025-07-01 14:42:05 +02:00
vector_io feat: Implement keyword search in milvus (#2231) 2025-07-14 19:39:55 -04:00
external.md docs: update external provider guide and navigation (#2567) 2025-07-01 09:42:32 +02:00
index.md docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00
openai.md docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00