llama-stack/docs/source/distributions/self_hosted_distro
Ashwin Bharambe 11697f85c5
fix: pull ollama embedding model if necessary (#1209)
Embedding models are tiny and can be pulled on-demand. Let's do that so
the user doesn't have to do "yet another thing" to get themselves set
up.

Thanks @hardikjshah for the suggestion.

Also fixed a build dependency miss (TODO: distro_codegen needs to
actually check that the build template contains all providers mentioned
for the run.yaml file)

## Test Plan 

First run `ollama rm all-minilm:latest`. 

Run `llama stack build --template ollama && llama stack run ollama --env
INFERENCE_MODEL=llama3.2:3b-instruct-fp16`. See that it outputs a
"Pulling embedding model `all-minilm:latest`" output and the stack
starts up correctly. Verify that `ollama list` shows the model is
correctly downloaded.
2025-02-21 10:35:56 -08:00
..
bedrock.md fix: Get distro_codegen.py working with default deps and enabled in pre-commit hooks (#1123) 2025-02-19 18:39:20 -08:00
cerebras.md feat: Add a new template for dell (#978) 2025-02-06 14:14:39 -08:00
dell-tgi.md Update default port from 5000 -> 8321 2025-01-16 15:26:48 -08:00
dell.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
fireworks.md feat: register embedding models for ollama, together, fireworks (#1190) 2025-02-20 15:39:08 -08:00
meta-reference-gpu.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
meta-reference-quantized-gpu.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
nvidia.md add nvidia distribution (#565) 2025-01-15 14:04:43 -08:00
ollama.md fix: pull ollama embedding model if necessary (#1209) 2025-02-21 10:35:56 -08:00
remote-vllm.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
sambanova.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
tgi.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
together.md feat: register embedding models for ollama, together, fireworks (#1190) 2025-02-20 15:39:08 -08:00