[GH-ISSUE #7069] Support to loading multiple LLM models on the same GPU #4487

Closed
opened 2026-04-12 15:24:46 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @DenisMontes on GitHub (Oct 1, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7069

Hello! Is it possible to include support for loading multiple LLM models on the same GPU?

I'm trying to create an AI team that will automate tasks, but currently I can only run one inference at a time. I'm using small models around 700MB in size on a GPU with 8GB of VRAM. I know I need space for context window beyond the neural network layers. So if it's possible to run two models simultaneously in this configuration, I'll double my performance without needing to buy another GPU that would require a larger power supply and potentially a new motherboard and case."

I have some ideas on how to implement this, and I'm willing to discuss a more in-depth way to make this feature possible.

Originally created by @DenisMontes on GitHub (Oct 1, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7069 Hello! Is it possible to include support for loading multiple LLM models on the same GPU? I'm trying to create an AI team that will automate tasks, but currently I can only run one inference at a time. I'm using small models around 700MB in size on a GPU with 8GB of VRAM. I know I need space for context window beyond the neural network layers. So if it's possible to run two models simultaneously in this configuration, I'll double my performance without needing to buy another GPU that would require a larger power supply and potentially a new motherboard and case." I have some ideas on how to implement this, and I'm willing to discuss a more in-depth way to make this feature possible.
GiteaMirror added the feature request label 2026-04-12 15:24:46 -05:00
Author
Owner

@rick-github commented on GitHub (Oct 1, 2024):

Ollama already does this. Use ollama ps to see which models are loaded. However, it does not support loading the same model more than once.

<!-- gh-comment-id:2387194808 --> @rick-github commented on GitHub (Oct 1, 2024): Ollama already [does this](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-does-ollama-handle-concurrent-requests). Use `ollama ps` to see which models are loaded. However, it does not support loading the same model more than once.
Author
Owner

@pdevine commented on GitHub (Oct 1, 2024):

Hey @DenisMontes , check out this link. Given your limited VRAM you may need to set OLLAMA_NUM_PARALLEL to make this work.

<!-- gh-comment-id:2387219355 --> @pdevine commented on GitHub (Oct 1, 2024): Hey @DenisMontes , check out this [link](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-does-ollama-handle-concurrent-requests). Given your limited VRAM you may need to set `OLLAMA_NUM_PARALLEL` to make this work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4487