{"id":15832,"date":"2026-11-24T08:00:00","date_gmt":"2026-11-24T07:00:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=15832"},"modified":"2026-11-14T23:38:46","modified_gmt":"2026-11-14T22:38:46","slug":"local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/","title":{"rendered":"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama"},"content":{"rendered":"<p>Twenty signed-in users do not automatically create twenty simultaneous model requests. Arrival rate, prompt length, response length and acceptable waiting time matter. vLLM, llama.cpp Server and Ollama can serve multiple requests, but differ in setup, memory management and defaults. A ranking without measurements on the same hardware would be misleading.<\/p>\n<p>This comparison covers vLLM 0.29.0, llama.cpp b11011 and Ollama 0.34.0. The examples calculate memory requirements; no GPU performance benchmark was run.<\/p>\n<h2>What continuous batching changes<\/h2>\n<p>With strictly sequential execution, the next request waits for the current response to finish. Continuous batching can remove completed requests from a running batch and admit new work. llama.cpp and vLLM support this approach; Ollama can also process multiple requests concurrently with suitable models.<\/p>\n<p>A new response is not guaranteed to start after exactly one iteration. The prompt must first pass through prefill processing. Available slots, the scheduler, token budget and KV memory determine admission. vLLM can split long prompts through chunked prefill, making <code>--max-num-batched-tokens<\/code> important alongside <code>--max-num-seqs<\/code>.<\/p>\n<p>Batching can increase aggregate throughput and shorten queues while reducing an individual response&#8217;s token rate. The KV cache stores intermediate results for tokens already processed, so the model need not calculate them again for every new token. PagedAttention manages this cache in blocks to reduce wasted gaps in memory. Neither unlimited capacity nor a universal speedup follows.<\/p>\n<p><!-- lw-flux-illu 15832-a1 --><\/p>\n<figure class=\"lw-illu\"><img src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/illustrationen\/flux-15832-a1.webp\" width=\"1120\" height=\"630\" loading=\"lazy\" decoding=\"async\" alt=\"A water wheel turns without pause, filling one bucket after another and emptying them into a channel. Likewise, continuous batching adds new requests to the batch that is already running.\"><figcaption>A water wheel turns without pause, filling one bucket after another and emptying them into a channel. Likewise, continuous batching adds new requests to the batch that is already running.<\/figcaption><\/figure>\n<h2>Defaults are not capacity guarantees<\/h2>\n<table>\n<thead>\n<tr>\n<th>Engine<\/th>\n<th>Inspected default<\/th>\n<th>Meaning for 20 requests<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ollama 0.34.0<\/td>\n<td><code>OLLAMA_NUM_PARALLEL=1<\/code> per model<\/td>\n<td>Normally one request runs for a single model; further requests wait up to the queue limit.<\/td>\n<\/tr>\n<tr>\n<td>llama.cpp b11011<\/td>\n<td>Automatic <code>--parallel<\/code>: four slots and unified KV; continuous batching enabled<\/td>\n<td>Four slots are available. Memory, prompt processing and scheduling still affect execution.<\/td>\n<\/tr>\n<tr>\n<td>vLLM 0.29.0<\/td>\n<td>GPU-dependent sequence defaults commonly 256 or 1024<\/td>\n<td>A limit above 20 guarantees neither immediate admission of every prompt nor acceptable response times.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The inspected Ollama version restricts some model families, including <code>qwen35<\/code>, to one parallel request. Raising the environment value does not override that architecture restriction. Insufficient KV memory can cause vLLM to preempt requests and recompute later.<\/p>\n<figure class=\"lw-diagram\"><img decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/llm-reviewed-15832-en-20261025.png?v=20261114\" width=\"1120\" height=\"580\" alt=\"LLM serving: scheduling limits, context allocation, memory calculation and load testing.\" loading=\"lazy\"><figcaption>LLM serving: scheduling limits, context allocation, memory calculation and load testing.<\/figcaption><\/figure>\n<h2>KV memory: a reproducible example<\/h2>\n<p>For a conventional full attention cache, raw storage per token is <code>2 \u00d7 layers \u00d7 KV heads \u00d7 head dimension \u00d7 bytes per value<\/code>. Llama 3 8B gives <code>2 \u00d7 32 \u00d7 8 \u00d7 128 \u00d7 2 = 131072 bytes<\/code>, or 128 KiB with 16-bit values.<\/p>\n<p>Twenty separate contexts holding 4096 tokens each require 10 GiB of raw KV data. Context includes both input and generated output. Weights, workspaces, CUDA graphs, memory management and other runtime costs are additional. Different architectures, compressed caches and shared prefixes change the calculation.<\/p>\n<p>Weight quantization and KV quantization are separate settings. Smaller weights leave more room for cache. GGUF supports several data types and quantizations in llama.cpp; a file need not contain uniformly sized values. vLLM supports methods such as AWQ, GPTQ and FP8 depending on model, kernels and hardware. Its documented 0.92 GPU memory fraction limits the model executor; explicit KV memory sizing can replace automatic inference.<\/p>\n<h2>Joint configuration of context and concurrency<\/h2>\n<p>In the inspected server path, Ollama multiplies effective context length by parallel request count. Twenty requests with 4096 tokens each therefore imply capacity for 81920 tokens. Memory pressure can cause CPU placement, lower throughput or startup failure; actual placement needs checking.<\/p>\n<p>llama.cpp allocation depends on KV mode. Without unified KV, context capacity is divided across sequences and adjusted to internal block boundaries. With unified KV, sequences share a pool. Dividing <code>-c<\/code> by slot count is therefore not a universal rule. In b11011, <code>--kv-unified-per-slot 4096<\/code> can cap each slot; without explicit <code>-c<\/code>, the pool is sized as slots times that limit. Startup logs and effective limits remain authoritative.<\/p>\n<h2>A local API as a basic function test<\/h2>\n<p>All three projects implement selected OpenAI-compatible API routes. Compatibility does not mean complete equivalence of endpoints, parameters, tools or chat templates. This example starts a local vLLM endpoint with bounded context and response length. Installation, model access and sufficient memory are prerequisites.<\/p>\n<pre><code># Terminal 1: server; terminal 2 follows successful startup\nvllm serve NousResearch\/Meta-Llama-3-8B-Instruct \\\n  --served-model-name llama-3-8b --host 127.0.0.1 \\\n  --max-model-len 4096 --max-num-seqs 20\n\n# Terminal 2: single function test\ncurl --fail-with-body --max-time 120 \\\n  http:\/\/127.0.0.1:8000\/v1\/chat\/completions \\\n  -H &#x27;Content-Type: application\/json&#x27; \\\n  -d &#x27;{&quot;model&quot;:&quot;llama-3-8b&quot;,&quot;messages&quot;:[{&quot;role&quot;:&quot;user&quot;,&quot;content&quot;:&quot;Return the word OK.&quot;}],&quot;max_tokens&quot;:32}&#x27;\n<\/code><\/pre>\n<p>The example listens on 127.0.0.1, the loopback address accessible only from the same computer. llama.cpp normally uses port 8080 and Ollama port 11434. Team access requires an appropriate reachable address, TLS, authentication and load limits. Local Ollama does not treat an API key supplied by a compatible client as access protection. A reverse proxy can provide these controls.<\/p>\n<p>Home Assistant&#8217;s OpenAI integration documents support only for the official endpoint. A separate Ollama integration exists; model capabilities and permissions for home control need their own checks.<\/p>\n<h2>A choice supported by measurements<\/h2>\n<p>A useful comparison keeps model weights identical or documents quality differences, uses the same hardware and comparable input and output lengths. After warm-up, load levels of 1, 4 and 20 active requests can reveal behaviour. Recorded metrics include aggregate throughput, time to first token, time between tokens, complete response duration, error rate and peak memory. The median marks the middle of the sorted response times. The 95th percentile is the time at or below which about 95% of responses finish; the slowest 5% take longer.<\/p>\n<p>Ollama simplifies model operation, llama.cpp offers flexible local execution, and vLLM provides many controls for heavy workloads. Measured response quality, waiting time and operating effort determine the suitable choice.<\/p>\n<p>Further worked examples appear in <span class=\"lw-artikel-geplant\">GPU Memory for an LLM: Weights and KV Cache<\/span>.<\/p>\n<div class=\"lw-faq\">\n<h2>Questions and answers<\/h2>\n<h3>Does an 8-bit cache halve memory?<\/h3>\n<p>The raw values use half as much storage as 16-bit values: 5 rather than 10 GiB in this example. Scales, blocks and management data add overhead. Actual consumption and quality loss depend on method and model.<\/p>\n<h3>Does a high parallelism value suffice for twenty people?<\/h3>\n<p>No. Active requests, context, hardware, model restrictions and required response times matter. Queues can still form with many slots.<\/p>\n<h3>Does one successful API response prove team suitability?<\/h3>\n<p>A single call checks only the basic path. Load, long prompts, streaming, cancellation and error handling require separate tests.<\/p>\n<\/div>\n<div class=\"lw-quellen\">\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/arxiv.org\/abs\/2309.06180\" target=\"_blank\" rel=\"noopener noreferrer\">PagedAttention<\/a><\/li>\n<li><a href=\"https:\/\/docs.vllm.ai\/en\/v0.29.0\/configuration\/optimization\/\" target=\"_blank\" rel=\"noopener noreferrer\">vLLM 0.29.0: optimization<\/a><\/li>\n<li><a href=\"https:\/\/docs.vllm.ai\/en\/latest\/configuration\/engine_args\/\" target=\"_blank\" rel=\"noopener noreferrer\">vLLM: engine arguments<\/a><\/li>\n<li><a href=\"https:\/\/docs.vllm.ai\/en\/latest\/features\/quantization\/\" target=\"_blank\" rel=\"noopener noreferrer\">vLLM: quantization<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/blob\/b11011\/tools\/server\/README.md\" target=\"_blank\" rel=\"noopener noreferrer\">llama.cpp b11011: server<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/blob\/b11011\/src\/llama-context.cpp\" target=\"_blank\" rel=\"noopener noreferrer\">llama.cpp b11011: context<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ollama\/ollama\/blob\/v0.34.0\/server\/sched.go\" target=\"_blank\" rel=\"noopener noreferrer\">Ollama 0.34.0: scheduler<\/a><\/li>\n<li><a href=\"https:\/\/docs.ollama.com\/faq\" target=\"_blank\" rel=\"noopener noreferrer\">Ollama FAQ<\/a><\/li>\n<li><a href=\"https:\/\/docs.ollama.com\/api\/openai-compatibility\" target=\"_blank\" rel=\"noopener noreferrer\">Ollama: API compatibility<\/a><\/li>\n<li><a href=\"https:\/\/www.home-assistant.io\/integrations\/openai_conversation\/\" target=\"_blank\" rel=\"noopener noreferrer\">Home Assistant: OpenAI<\/a><\/li>\n<li><a href=\"https:\/\/huggingface.co\/NousResearch\/Meta-Llama-3-8B-Instruct\/blob\/main\/config.json\" target=\"_blank\" rel=\"noopener noreferrer\">Llama 3 8B: model configuration<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A comparison of vLLM, llama.cpp and Ollama for twenty active requests: batching, context allocation and KV memory explain the limits. A load test is needed to establish actual throughput and waiting times.<\/p>\n","protected":false},"author":1,"featured_media":32515,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[91380,91404,91237,91099],"class_list":["post-15832","post","type-post","status-publish","format-standard","hentry","category-cloud-ai","tag-artificial-intelligence","tag-llm","tag-self-hosting","tag-server-administration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"What continuous batching changes at twenty concurrent users, how much VRAM each engine needs for it, and where throughput stops scaling.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"What continuous batching changes at twenty concurrent users, how much VRAM each engine needs for it, and where throughput stops scaling.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-24T07:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15832-15832.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama\",\"datePublished\":\"2026-11-24T07:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/\"},\"wordCount\":1012,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15832-15832.png\",\"keywords\":[\"Artificial Intelligence\",\"LLM\",\"Self-Hosting\",\"Server Administration\"],\"articleSection\":[\"Cloud &amp; AI\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/\",\"name\":\"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15832-15832.png\",\"datePublished\":\"2026-11-24T07:00:00+00:00\",\"description\":\"What continuous batching changes at twenty concurrent users, how much VRAM each engine needs for it, and where throughput stops scaling.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15832-15832.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/flux-voll2-15832-15832.png\",\"width\":1200,\"height\":630,\"caption\":\"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/cloud-ai\\\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama | Lukas Wojcik","description":"What continuous batching changes at twenty concurrent users, how much VRAM each engine needs for it, and where throughput stops scaling.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/","og_locale":"en_US","og_type":"article","og_title":"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama | Lukas Wojcik","og_description":"What continuous batching changes at twenty concurrent users, how much VRAM each engine needs for it, and where throughput stops scaling.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-11-24T07:00:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15832-15832.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama","datePublished":"2026-11-24T07:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/"},"wordCount":1012,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15832-15832.png","keywords":["Artificial Intelligence","LLM","Self-Hosting","Server Administration"],"articleSection":["Cloud &amp; AI"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/","name":"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15832-15832.png","datePublished":"2026-11-24T07:00:00+00:00","description":"What continuous batching changes at twenty concurrent users, how much VRAM each engine needs for it, and where throughput stops scaling.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15832-15832.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/flux-voll2-15832-15832.png","width":1200,"height":630,"caption":"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/cloud-ai\/local-ai-for-multiple-simultaneous-requests-comparing-vllm-llama-cpp-and-ollama\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/de\/"},{"@type":"ListItem","position":2,"name":"Local AI for Multiple Simultaneous Requests: Comparing vLLM, llama.cpp and Ollama"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=15832"}],"version-history":[{"count":9,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15832\/revisions"}],"predecessor-version":[{"id":34025,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15832\/revisions\/34025"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/32515"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=15832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=15832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=15832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}