continue icon indicating copy to clipboard operation
continue copied to clipboard

Preload model for the ollama provider

Open sgwhat opened this issue 1 year ago • 2 comments

Validations

  • [ ] I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • [X] I'm not able to find an open issue that requests the same enhancement

Problem

I've noticed that when I use ollama to chat, the model loading always occurs during the first round of conversation, which makes the first round much slower than subsequent ones.

I'm exploring ways to help ollama preload the model. Even though I tried ollama run llama2:latest before conversation, the model still loads at the start of the first conversation.

Solution

No response

sgwhat avatar Apr 26 '24 07:04 sgwhat

@sgwhat https://github.com/ollama/ollama/blob/main/docs/api.md#load-a-model

This might be a good solution

sestinj avatar Apr 26 '24 09:04 sestinj

@sgwhat https://github.com/ollama/ollama/blob/main/docs/api.md#load-a-model

This might be a good solution

I have tired, but still useless.

sgwhat avatar Apr 26 '24 09:04 sgwhat