[GH-ISSUE #1011] Use Ollama to reload the model each time #622

Closed
opened 2026-02-22 18:20:31 -05:00 by yindo · 2 comments
Owner

Originally created by @17Reset on GitHub (Apr 2, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1011

Originally assigned to: @timothycarambat on GitHub.

When I use ollama as LLM preference in Anythingllm, every time I ask a question, the model in ollama will be reloaded, which will take a lot of time. But when I use ollama's api alone to make a model call to ollama, ollama can load the model into the GPU's memory, and asking the question at the next time will be very fast.

Originally created by @17Reset on GitHub (Apr 2, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1011 Originally assigned to: @timothycarambat on GitHub. When I use ollama as LLM preference in Anythingllm, every time I ask a question, the model in ollama will be reloaded, which will take a lot of time. But when I use ollama's api alone to make a model call to ollama, ollama can load the model into the GPU's memory, and asking the question at the next time will be very fast.
yindo added the enhancementIntegration Requestcore-team-only labels 2026-02-22 18:20:31 -05:00
yindo closed this issue 2026-02-22 18:20:31 -05:00
Author
Owner

@timothycarambat commented on GitHub (Apr 2, 2024):

Are you using Ollama via the regular integration or the built-in Ollama on desktop?

Seems like this can be solved by passing mlock during chat requests

@timothycarambat commented on GitHub (Apr 2, 2024): Are you using Ollama via the regular integration or the built-in Ollama on desktop? Seems like this can be solved by passing `mlock` during chat requests
Author
Owner

@17Reset commented on GitHub (Apr 2, 2024):

My solution was to start two ollama api's and put LLM and Embedding in two separate api's so that it doesn't cause memory resident interruptions in LLM.

@17Reset commented on GitHub (Apr 2, 2024): My solution was to start two ollama api's and put LLM and Embedding in two separate api's so that it doesn't cause memory resident interruptions in LLM.
yindo changed title from Use Ollama to reload the model each time to [GH-ISSUE #1011] Use Ollama to reload the model each time 2026-06-05 14:36:20 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#622