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

Preload the model into Ollama to get faster response times #1162

Open
wintermeyer opened this issue Nov 20, 2024 · 0 comments
Open

Preload the model into Ollama to get faster response times #1162

wintermeyer opened this issue Nov 20, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@wintermeyer
Copy link
Collaborator

When Ollama has to load the model it takes longer for it to answer our requests. We can force it to preload the model by a simple empty request:

curl http://localhost:11434/api/generate -d '{"model": "llava:13b"}'

We already know what pages are likely to ask the LLM for help. When those pages are accessed by the user we should preload the model with a spawn (so that we don't shoot ourself in the foot by this).

There is little harm by doing this when the model is already loaded but a big improvement when it isn't.

@wintermeyer wintermeyer added the enhancement New feature or request label Nov 20, 2024
@wintermeyer wintermeyer added this to the MVP milestone Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants