Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pull ollama embedding model if necessary #1209

Merged
merged 2 commits into from
Feb 21, 2025
Merged

fix: pull ollama embedding model if necessary #1209

merged 2 commits into from
Feb 21, 2025

Conversation

ashwinb
Copy link
Contributor

@ashwinb ashwinb commented Feb 21, 2025

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.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 21, 2025
@ashwinb ashwinb changed the title Pull ollama embedding model if necessary fix: pull ollama embedding model if necessary Feb 21, 2025
@ashwinb ashwinb merged commit 11697f8 into main Feb 21, 2025
4 checks passed
@ashwinb ashwinb deleted the ollama branch February 21, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants