From 90db2d57b3fcecc302b8976fd2d7a29d3ed2836c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 24 Sep 2025 07:17:20 -0600 Subject: [PATCH] Update Ollama docs (#20201) --- docs/docs/configuration/genai/config.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/docs/configuration/genai/config.md b/docs/docs/configuration/genai/config.md index a49865209..bf72db4ea 100644 --- a/docs/docs/configuration/genai/config.md +++ b/docs/docs/configuration/genai/config.md @@ -27,12 +27,18 @@ Parallel requests also come with some caveats. You will need to set `OLLAMA_NUM_ You must use a vision capable model with Frigate. Current model variants can be found [in their model library](https://ollama.com/library). Note that Frigate will not automatically download the model you specify in your config, Ollama will try to download the model but it may take longer than the timeout, it is recommended to pull the model beforehand by running `ollama pull your_model` on your Ollama server/Docker container. Note that the model specified in Frigate's config must match the downloaded model tag. -:::tip +:::info Each model is available in multiple parameter sizes (3b, 4b, 8b, etc.). Larger sizes are more capable of complex tasks and understanding of situations, but requires more memory and computational resources. It is recommended to try multiple models and experiment to see which performs best. ::: +:::tip + +If you are trying to use a single model for Frigate and HomeAssistant, it will need to support vision and tools calling. https://github.com/skye-harris/ollama-modelfiles contains optimized model configs for this task. + +::: + The following models are recommended: | Model | Notes | @@ -57,6 +63,8 @@ genai: model: minicpm-v:8b provider_options: # other Ollama client options can be defined keep_alive: -1 + options: + num_ctx: 8192 # make sure the context matches other services that are using ollama ``` ## Google Gemini