[GH-ISSUE #2793] Determining Server Capacity for Hosting Ollama #1686

Closed
opened 2026-04-12 11:39:35 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @juned-adenwalla on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2793

I have a VPS server with 48GB RAM and a 12-core processor. I'm planning to host Ollama on it and develop a custom web app using Ollama's API. I'm curious about how many users my server will be able to handle simultaneously and how I can test the load balancing.

Could anyone suggest an approximate number of users my current server configuration can handle? Additionally, any guidance on testing the load balancing would be greatly appreciated.

Originally created by @juned-adenwalla on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2793 I have a VPS server with 48GB RAM and a 12-core processor. I'm planning to host Ollama on it and develop a custom web app using Ollama's API. I'm curious about how many users my server will be able to handle simultaneously and how I can test the load balancing. Could anyone suggest an approximate number of users my current server configuration can handle? Additionally, any guidance on testing the load balancing would be greatly appreciated.
Author
Owner

@easp commented on GitHub (Feb 28, 2024):

Ollama doesn't load balance requests. It processes each request serially in the order received.

Beyond that, CPU inference is generally quite slow for all but the smallest models. If you want to know how fast it will be, install ollama and ollama run mixtral "why is the sky blue" --verbose It'll print out the speed for prompt processing and text generation.

<!-- gh-comment-id:1968030654 --> @easp commented on GitHub (Feb 28, 2024): Ollama doesn't load balance requests. It processes each request serially in the order received. Beyond that, CPU inference is generally quite slow for all but the smallest models. If you want to know how fast it will be, install ollama and `ollama run mixtral "why is the sky blue" --verbose` It'll print out the speed for prompt processing and text generation.
Author
Owner

@juned-adenwalla commented on GitHub (Feb 29, 2024):

total duration: 1m5.52821173s
load duration: 1.368387941s
prompt eval count: 25 token(s)
prompt eval duration: 2.376201s
prompt eval rate: 10.52 tokens/s
eval count: 367 token(s)
eval duration: 1m1.782406s
eval rate: 5.94 tokens/s

I got this as an output, can you give me a general understand say if I install this on cloud and give it to my team how many people will be able to use it parallel.

<!-- gh-comment-id:1970646407 --> @juned-adenwalla commented on GitHub (Feb 29, 2024): total duration: 1m5.52821173s load duration: 1.368387941s prompt eval count: 25 token(s) prompt eval duration: 2.376201s prompt eval rate: 10.52 tokens/s eval count: 367 token(s) eval duration: 1m1.782406s eval rate: 5.94 tokens/s I got this as an output, can you give me a general understand say if I install this on cloud and give it to my team how many people will be able to use it parallel.
Author
Owner

@jmorganca commented on GitHub (May 10, 2024):

As @easp mentioned it's hard to estimate, however, this will get easier with new parallel requests as an upcoming feature. Stay tuned!

For a CPU server and a small model, it should handle at least a few clients at a time.

<!-- gh-comment-id:2103681972 --> @jmorganca commented on GitHub (May 10, 2024): As @easp mentioned it's hard to estimate, however, this will get easier with new parallel requests as an upcoming feature. Stay tuned! For a CPU server and a small model, it should handle at least a few clients at a time.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1686