<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GPU Serving Guide: Workstation GPU Setups for vLLM</title><description>Plain guides to workstation GPU setups for vLLM inference, built from published official documentation.</description><link>https://gpuservingguide.com/</link><language>en</language><atom:link href="https://gpuservingguide.com/rss.xml" rel="self" type="application/rss+xml"/><item><title>Best GPUs for Self-Hosted vLLM Workstations (16–96 GB)</title><link>https://gpuservingguide.com/posts/best-gpus-self-hosted-vllm-workstations-16gb-96gb/</link><guid isPermaLink="true">https://gpuservingguide.com/posts/best-gpus-self-hosted-vllm-workstations-16gb-96gb/</guid><description>Compare 16 GB to 96 GB GPUs for self-hosted vLLM. Estimate VRAM for your model and request load, then check software, power, and case fit.</description><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For self-hosted vLLM on Linux, start with the &lt;strong&gt;GeForce RTX 5060 Ti 16 GB&lt;/strong&gt; for a small or quantized checkpoint that leaves room for the cache. Shortlist the &lt;strong&gt;RTX PRO 4500 Blackwell&lt;/strong&gt; for 32 GB of VRAM in a dual-slot CUDA card. If you need 96 GB on one card, start with the &lt;strong&gt;RTX PRO 6000 Blackwell Max-Q&lt;/strong&gt; for its 300 W maximum power spec. &lt;a href=&quot;https://www.nvidia.com/en-us/geforce/graphics-cards/50-series/rtx-5060-family/&quot;&gt;RTX 5060 Ti specs&lt;/a&gt; · &lt;a href=&quot;https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-4500/&quot;&gt;RTX PRO 4500 specs&lt;/a&gt; · &lt;a href=&quot;https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-6000-max-q/&quot;&gt;Max-Q specs&lt;/a&gt; · &lt;a href=&quot;https://developer.nvidia.com/cuda/gpus&quot;&gt;CUDA GPU list&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/configuration/conserving_memory/&quot;&gt;vLLM memory guide&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;GPUs to shortlist by VRAM&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;VRAM&lt;/th&gt;
&lt;th&gt;Desktop GPU&lt;/th&gt;
&lt;th&gt;Published GPU power&lt;/th&gt;
&lt;th&gt;When to shortlist it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/geforce/graphics-cards/50-series/rtx-5060-family/&quot;&gt;GeForce RTX 5060 Ti&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;180 W total graphics power (NVIDIA reference spec)&lt;/td&gt;
&lt;td&gt;For a workload that fits the entry tier. Confirm the exact listing says 16 GB. NVIDIA also lists an 8 GB version.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;24 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-4000/&quot;&gt;RTX PRO 4000 Blackwell&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;145 W maximum&lt;/td&gt;
&lt;td&gt;For a compact CUDA build that needs more room than 16 GB. NVIDIA specifies a single-slot card.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-4500/&quot;&gt;RTX PRO 4500 Blackwell Workstation Edition&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;200 W maximum&lt;/td&gt;
&lt;td&gt;For 32 GB in a dual-slot CUDA card when GPU power is a priority.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/geforce/graphics-cards/50-series/rtx-5090.html&quot;&gt;GeForce RTX 5090&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;575 W total graphics power&lt;/td&gt;
&lt;td&gt;For a GeForce build with room and power for the exact board. The figure is NVIDIA&apos;s Founders Edition or reference spec.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.amd.com/en/products/graphics/workstations/radeon-ai-pro/ai-9000-series/amd-radeon-ai-pro-r9700.html&quot;&gt;Radeon AI PRO R9700&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;300 W total board power&lt;/td&gt;
&lt;td&gt;For a ROCm build, check the Linux release and kernel against &lt;a href=&quot;https://rocm.docs.amd.com/projects/radeon-ryzen/en/docs-7.2.1/docs/compatibility/compatibilityrad/native_linux/native_linux_compatibility.html&quot;&gt;AMD&apos;s Linux matrix&lt;/a&gt; and the checkpoint&apos;s quantization method against &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/features/quantization/&quot;&gt;vLLM&apos;s quantization guide&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;48 or 72 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-5000/&quot;&gt;RTX PRO 5000 Blackwell&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;300 W maximum&lt;/td&gt;
&lt;td&gt;Start with the 48 GB version if it leaves enough room for the cache. Choose 72 GB if the 48 GB version falls short.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;96 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-6000-max-q/&quot;&gt;RTX PRO 6000 Blackwell Max-Q Workstation Edition&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;300 W maximum&lt;/td&gt;
&lt;td&gt;First shortlist for 96 GB when power or card length is tight. NVIDIA lists it at 10.5 inches long.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;96 GB&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-6000/&quot;&gt;RTX PRO 6000 Blackwell Workstation Edition&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;600 W maximum&lt;/td&gt;
&lt;td&gt;Consider this edition if your build can accommodate NVIDIA&apos;s 12-inch card and its power requirements.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Size VRAM for the checkpoint and requests&lt;/h2&gt;
&lt;p&gt;For unquantized BF16 or FP16 weights, estimate &lt;strong&gt;about 2 GB per billion parameters&lt;/strong&gt;. Budget additional memory for the key-value (KV) cache used during generation and for runtime allocations. The figures below are weights-only arithmetic. &lt;a href=&quot;https://huggingface.co/docs/transformers/main/llm_tutorial_optimization&quot;&gt;Hugging Face weight estimate&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/configuration/conserving_memory/&quot;&gt;vLLM memory guide&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/serving/parallelism_scaling/&quot;&gt;vLLM cache sizing&lt;/a&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Approximate weight memory&lt;/th&gt;
&lt;th&gt;What to shortlist&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;8 billion parameters in BF16&lt;/td&gt;
&lt;td&gt;8 × 2 GB = 16 GB&lt;/td&gt;
&lt;td&gt;Start with 24 GB if you need room beyond the weights. For the 16 GB tier, consider a smaller checkpoint or a supported quantized variant.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32 billion parameters in BF16&lt;/td&gt;
&lt;td&gt;32 × 2 GB = 64 GB&lt;/td&gt;
&lt;td&gt;Shortlist 72 GB first and check the serving headroom. Move to 96 GB if the 72 GB card falls short.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;70 billion parameters in BF16&lt;/td&gt;
&lt;td&gt;70 × 2 GB = 140 GB&lt;/td&gt;
&lt;td&gt;For a single card in this guide, look for a supported quantized checkpoint and size it separately. If you need to retain BF16 weights on GPUs, plan a multi-GPU split.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;To check a candidate on matching hardware, launch vLLM with the exact checkpoint and set &lt;code&gt;--max-model-len&lt;/code&gt; to the total tokens you need per request, including prompt and output. If you cap batching, &lt;code&gt;--max-num-seqs&lt;/code&gt; limits the sequences processed per scheduling iteration. &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/cli/serve/&quot;&gt;vLLM serve arguments&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/configuration/conserving_memory/&quot;&gt;vLLM memory guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;At startup, read &lt;code&gt;GPU KV cache size&lt;/code&gt; for the cache&apos;s token capacity and &lt;code&gt;Maximum concurrency&lt;/code&gt; for the estimate at that context length. In vLLM&apos;s example log, the estimate is 15.70 concurrent requests at 40,960 tokens per request. For a target of 16 requests at that length, shorten the context if the workload permits and repeat the check. &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/serving/parallelism_scaling/&quot;&gt;vLLM cache sizing&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/configuration/conserving_memory/&quot;&gt;vLLM memory guide&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Confirm CUDA or ROCm support&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;To check native support, open the checkpoint&apos;s &lt;code&gt;config.json&lt;/code&gt; and match its &lt;code&gt;architectures&lt;/code&gt; entry to vLLM&apos;s supported-model list. For a quantized checkpoint, look up its method in the hardware compatibility table for your vLLM release. &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/models/supported_models/&quot;&gt;Supported models&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/features/quantization/&quot;&gt;Quantization guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;For NVIDIA, look up the card&apos;s compute capability and check it against vLLM&apos;s CUDA installation requirements. For the Radeon R9700, check the Linux release and kernel against AMD&apos;s Radeon compatibility matrix, then check the requirements for the ROCm build of vLLM you plan to install. &lt;a href=&quot;https://developer.nvidia.com/cuda/gpus&quot;&gt;NVIDIA CUDA GPU list&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/getting_started/installation/gpu/&quot;&gt;vLLM GPU installation&lt;/a&gt; · &lt;a href=&quot;https://rocm.docs.amd.com/projects/radeon-ryzen/en/docs-7.2.1/docs/compatibility/compatibilityrad/native_linux/native_linux_compatibility.html&quot;&gt;AMD Linux matrix&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Choose one card or split the model&lt;/h2&gt;
&lt;p&gt;Choose one card when it can meet your workload. If the model is too large for one GPU but fits across two GPUs on the workstation and supports a two-way tensor split, start vLLM with &lt;code&gt;--tensor-parallel-size&lt;/code&gt; set to 2 and repeat the cache check. If the model fits on one workstation but the GPU count does not evenly divide the model size, check whether the model supports pipeline parallelism. &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/serving/parallelism_scaling/&quot;&gt;vLLM parallelism guide&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/configuration/conserving_memory/&quot;&gt;Two-GPU example&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.30.0/models/supported_models/&quot;&gt;Supported models&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Check the case and power supply&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Clearance.&lt;/strong&gt; Check the exact board&apos;s length, height, slot space, and room for its power cable. For example, NVIDIA&apos;s RTX 5090 Founders Edition case guide calls for three unused expansion slots and 36 mm of additional cable clearance. &lt;a href=&quot;https://www.nvidia.com/en-us/geforce/graphics-cards/50-series/rtx-5090.html&quot;&gt;NVIDIA case and power guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; Match the board&apos;s connector and system power requirements to your PSU. For the Radeon R9700, AMD specifies a 12V-2x6 power connector and recommends a minimum 750 W PSU. Use the specifications for the shipping card, since NVIDIA says add-in-card specs may vary. &lt;a href=&quot;https://www.amd.com/en/products/graphics/workstations/radeon-ai-pro/ai-9000-series/amd-radeon-ai-pro-r9700.html&quot;&gt;AMD R9700 requirements&lt;/a&gt; · &lt;a href=&quot;https://www.nvidia.com/en-us/geforce/graphics-cards/50-series/rtx-5090.html&quot;&gt;NVIDIA case and power guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Evidence and limits.&lt;/strong&gt; Specifications were checked on November 26, 2026 against NVIDIA and AMD product pages. The sizing and compatibility steps were drawn from vLLM 0.30.0, AMD&apos;s ROCm 7.2.1 support matrix, and the Hugging Face Transformers guide. The workload checks were not run on these cards.&lt;/p&gt;
&lt;p&gt;Browse the &lt;a href=&quot;/posts/&quot;&gt;GPU Serving Guide article index&lt;/a&gt; or &lt;a href=&quot;/rss.xml&quot;&gt;follow new workstation guides via RSS&lt;/a&gt;.&lt;/p&gt;
</content:encoded><category>vllm</category><category>gpus</category><category>vram</category><category>workstations</category><author>GPU Serving Guide Editorial</author></item><item><title>AWQ vs GPTQ vs FP8 vs NVFP4 in vLLM | GPU Matrix</title><link>https://gpuservingguide.com/posts/awq-gptq-fp8-nvfp4-vllm-gpu-compatibility-matrix/</link><guid isPermaLink="true">https://gpuservingguide.com/posts/awq-gptq-fp8-nvfp4-vllm-gpu-compatibility-matrix/</guid><description>Compare AWQ, GPTQ, FP8, and NVFP4 across NVIDIA GPUs in vLLM. See where FP8 and NVFP4 accelerate activations and where they run weight-only.</description><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In vLLM 0.32.0, compatible 4-bit AWQ and GPTQ checkpoints can use weight-only kernels from Turing through Hopper. FP8 can accelerate weights and activations on Ada, Hopper, and Blackwell. NVFP4 can accelerate both on the Blackwell GPUs in the table with a compatible kernel. FP8 on Turing or Ampere and ModelOpt NVFP4 on supported GPUs before Blackwell can run weight-only through Marlin. &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/#supported-hardware&quot;&gt;vLLM quantization guide&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/llm_compressor/fp8/&quot;&gt;vLLM FP8 guide&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt guide&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/projects/llm-compressor/en/0.15.0/guides/compression_schemes/&quot;&gt;LLM Compressor schemes&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;GPU compatibility matrix&lt;/h2&gt;
&lt;p&gt;The table shows available paths for compatible quantized checkpoints on NVIDIA CUDA. It covers quantized linear layers. AWQ and GPTQ are quantization algorithms. The table compares their 4-bit integer weight-only variants with FP8 and NVFP4 floating-point formats. In &lt;strong&gt;W4A16&lt;/strong&gt;, W4 means 4-bit weights and A16 means 16-bit activations. &lt;strong&gt;W8A16&lt;/strong&gt; also keeps activations at 16 bits. &lt;strong&gt;W8A8&lt;/strong&gt; uses 8 bits for both, and &lt;strong&gt;W4A4&lt;/strong&gt; uses 4 bits for both. &lt;a href=&quot;https://docs.vllm.ai/projects/llm-compressor/en/0.15.0/guides/compression_schemes/&quot;&gt;LLM Compressor schemes&lt;/a&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;NVIDIA GPU architecture&lt;/th&gt;
&lt;th&gt;Example GPUs and compute capability&lt;/th&gt;
&lt;th&gt;4-bit AWQ&lt;/th&gt;
&lt;th&gt;4-bit GPTQ&lt;/th&gt;
&lt;th&gt;LLM Compressor FP8&lt;/th&gt;
&lt;th&gt;ModelOpt NVFP4 (W4A4 checkpoint)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Turing&lt;/td&gt;
&lt;td&gt;T4 (7.5)&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W8A16 via Marlin&lt;/td&gt;
&lt;td&gt;W4A16 via Marlin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ampere&lt;/td&gt;
&lt;td&gt;A100 (8.0), RTX 3090 (8.6)&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W8A16 via Marlin&lt;/td&gt;
&lt;td&gt;W4A16 via Marlin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ada Lovelace&lt;/td&gt;
&lt;td&gt;RTX 4090, L40S (8.9)&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W8A8&lt;/td&gt;
&lt;td&gt;W4A16 via Marlin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hopper&lt;/td&gt;
&lt;td&gt;H100, H200 (9.0)&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W4A16&lt;/td&gt;
&lt;td&gt;W8A8&lt;/td&gt;
&lt;td&gt;W4A16 via Marlin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blackwell&lt;/td&gt;
&lt;td&gt;B200 (10.0), RTX 5090 (12.0)&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;W8A8&lt;/td&gt;
&lt;td&gt;W4A4 with a supported native kernel&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;GPU model numbers map to these compute capabilities in NVIDIA&apos;s CUDA listing. The FP8 column starts from an LLM Compressor W8A8 checkpoint. &lt;a href=&quot;https://developer.nvidia.com/cuda/gpus&quot;&gt;NVIDIA compute capability table&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/#supported-hardware&quot;&gt;vLLM supported hardware&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/llm_compressor/fp8/&quot;&gt;vLLM FP8 guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;On GPUs without a supported native FP4 GEMM kernel, a compatible ModelOpt NVFP4 checkpoint can fall back to W4A16 through Marlin. The ModelOpt NVFP4 configuration sets a minimum compute capability of 7.5. &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt guide&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/api/vllm/model_executor/layers/quantization/modelopt/&quot;&gt;vLLM ModelOpt API reference&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The quantization chart lists GPTQ for Volta. The vLLM 0.32.0 CUDA installation guide requires compute capability 7.5 or higher. The V100 is 7.0, which puts it below that requirement. &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/#supported-hardware&quot;&gt;vLLM supported hardware&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/getting_started/installation/gpu/#requirements&quot;&gt;vLLM CUDA installation requirements&lt;/a&gt;, &lt;a href=&quot;https://developer.nvidia.com/cuda/gpus/legacy&quot;&gt;NVIDIA legacy compute capability table&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;How to choose a checkpoint for your GPU&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;RTX 3090.&lt;/strong&gt; If you want 4-bit weight-only quantization, shortlist compatible AWQ and GPTQ checkpoints. An LLM Compressor FP8 W8A8 checkpoint can run as W8A16 on this Ampere card. A compatible ModelOpt NVFP4 checkpoint can use W4A16. &lt;a href=&quot;https://developer.nvidia.com/cuda/gpus&quot;&gt;NVIDIA compute capability table&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/#supported-hardware&quot;&gt;vLLM supported hardware&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/llm_compressor/fp8/&quot;&gt;vLLM FP8 guide&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RTX 4090.&lt;/strong&gt; If you want low-precision activations, shortlist FP8 W8A8. A compatible ModelOpt NVFP4 checkpoint can load with 16-bit activations through Marlin. &lt;a href=&quot;https://developer.nvidia.com/cuda/gpus&quot;&gt;NVIDIA compute capability table&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/llm_compressor/fp8/&quot;&gt;vLLM FP8 guide&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RTX 5090.&lt;/strong&gt; Shortlist both FP8 W8A8 and NVFP4 W4A4 when you want low-precision activations. For NVFP4, confirm that the checkpoint requests W4A4 and that vLLM selects a native kernel. &lt;a href=&quot;https://developer.nvidia.com/cuda/gpus&quot;&gt;NVIDIA compute capability table&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/llm_compressor/fp8/&quot;&gt;vLLM FP8 guide&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/projects/llm-compressor/en/0.15.0/guides/compression_schemes/#nvfp4&quot;&gt;LLM Compressor schemes&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Confirm the quantization path at startup&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Read the checkpoint metadata.&lt;/strong&gt; Look for &lt;code&gt;quantization_config&lt;/code&gt; in &lt;code&gt;config.json&lt;/code&gt;. For ModelOpt, check &lt;code&gt;quant_algo&lt;/code&gt; in that object or &lt;code&gt;quantization.quant_algo&lt;/code&gt; in &lt;code&gt;hf_quant_config.json&lt;/code&gt;. The value &lt;code&gt;W4A16_NVFP4&lt;/code&gt; explicitly requests weight-only NVFP4. An export marked &lt;code&gt;NVFP4&lt;/code&gt; can also be weight-only if it has config groups and every group leaves &lt;code&gt;input_activations&lt;/code&gt; unset or &lt;code&gt;null&lt;/code&gt;. &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/cli/serve/&quot;&gt;vLLM serve arguments&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/api/vllm/model_executor/layers/quantization/modelopt/&quot;&gt;vLLM ModelOpt API reference&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt checkpoint formats&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Start vLLM with your pre-quantized checkpoint.&lt;/strong&gt; If the model config declares the quantization method, let vLLM read it by leaving out &lt;code&gt;--quantization&lt;/code&gt;. &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#running-the-openai-compatible-server&quot;&gt;vLLM local checkpoint example&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/cli/serve/&quot;&gt;vLLM serve arguments&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If a ModelOpt export declares &lt;code&gt;NVFP4&lt;/code&gt; or &lt;code&gt;W4A16_NVFP4&lt;/code&gt; in its separate metadata file, you can explicitly select the loader with &lt;code&gt;--quantization modelopt_fp4&lt;/code&gt;. &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/cli/serve/&quot;&gt;vLLM serve arguments&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt checkpoint formats&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Read the startup log.&lt;/strong&gt; For FP8, the &lt;code&gt;Selected &amp;lt;kernel&amp;gt; for &amp;lt;module&amp;gt;&lt;/code&gt; message identifies the kernel. On Turing or Ampere, FP8 Marlin is the weight-only W8A16 path. For ModelOpt NVFP4, look for &lt;code&gt;for NVFP4 GEMM&lt;/code&gt; after the kernel name. For example, &lt;code&gt;CutlassNvFp4LinearKernel&lt;/code&gt; quantizes activations to FP4, while a Marlin weight-only warning indicates W4A16 for the affected layers. &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/llm_compressor/fp8/&quot;&gt;vLLM FP8 kernel selection&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/api/vllm/model_executor/kernels/linear/&quot;&gt;vLLM NVFP4 kernel selection&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/api/vllm/model_executor/kernels/linear/nvfp4/cutlass/&quot;&gt;vLLM CUTLASS NVFP4 kernel&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.32.0/features/quantization/modelopt/#supported-modelopt-checkpoint-formats&quot;&gt;vLLM ModelOpt guide&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Evidence and limits.&lt;/strong&gt; The matrix is based on the vLLM 0.32.0 and LLM Compressor 0.15.0 documentation and NVIDIA&apos;s CUDA compute capability tables, checked on November 26, 2026. The startup steps were not run for this article.&lt;/p&gt;
</content:encoded><category>vllm</category><category>quantization</category><category>nvidia</category><category>fp8</category><category>nvfp4</category><author>GPU Serving Guide Editorial</author></item><item><title>vLLM VRAM and KV Cache Calculator</title><link>https://gpuservingguide.com/posts/vllm-vram-kv-cache-calculator-sizing-gpu-memory/</link><guid isPermaLink="true">https://gpuservingguide.com/posts/vllm-vram-kv-cache-calculator-sizing-gpu-memory/</guid><description>Estimate VRAM and KV cache for vLLM, choose a GPU memory budget and context limit, then verify full-length request capacity in the startup log.</description><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Set &lt;code&gt;--max-model-len&lt;/code&gt; to the largest prompt-plus-output budget your workload needs. On CUDA and ROCm with vLLM 0.34.0’s extensible KV cache active, leave &lt;code&gt;--gpu-memory-utilization&lt;/code&gt; unset unless you need to reserve VRAM for allocations vLLM does not measure. Estimate the cache needed for your target concurrency, then compare it with the capacity vLLM reports at startup. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/configuration/optimization/&quot;&gt;Memory tuning&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/serving/parallelism_scaling/&quot;&gt;Startup logs&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Choose the context limit and memory budget&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;How to size it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--max-model-len&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Add the maximum prompt and output token budgets for one request. An omitted value comes from the model config. Pass &lt;code&gt;auto&lt;/code&gt; to use the model’s maximum context length if it fits in GPU memory. Otherwise, vLLM chooses the largest length that fits. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--gpu-memory-utilization&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;This limits the fraction of GPU memory the instance’s model executor can use. On CUDA and ROCm with the extensible cache active, vLLM sizes the cache from the memory free after CUDA graph capture and warmup. If the flag is omitted in this mode, the utilization fraction defaults to &lt;code&gt;1.0&lt;/code&gt;. In this mode, set a lower fraction only to reserve memory for allocations vLLM does not measure, such as another process allocating GPU memory after startup. If the flag is omitted with estimate-based sizing, the utilization fraction defaults to &lt;code&gt;0.92&lt;/code&gt;. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/configuration/optimization/&quot;&gt;Memory tuning&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--kv-cache-memory-bytes&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;An explicit value sets the KV cache size in bytes per GPU. vLLM ignores &lt;code&gt;--gpu-memory-utilization&lt;/code&gt; when this value is set. Leave it unset for the workflow below. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Calculate KV cache and total VRAM&lt;/h2&gt;
&lt;p&gt;Use this worksheet for one GPU with uniform full attention, equal key and value head sizes, and a dense, unpadded, unquantized KV cache. Assume one cache slot per KV head, one stored state per token and separate cache blocks for each request. The block rounding follows vLLM’s full-attention cache calculation. &lt;a href=&quot;https://github.com/vllm-project/vllm/blob/v0.34.0/vllm/v1/kv_cache_interface.py&quot;&gt;KV cache interface&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;KV bytes per token = 2 × layers × KV heads × head size × bytes per value
Blocks per request = round_up((prompt tokens + output tokens) / block size)
KV bytes per request = blocks per request × block size × KV bytes per token
Target KV bytes = KV bytes per request × concurrent requests
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Estimate unquantized weight bytes as parameter count times bytes per weight. Add a budget for activations, graph capture and other runtime allocations. With an explicit utilization fraction, subtract weights and that runtime budget from total VRAM times the fraction to estimate the room for KV cache. Use the startup log to check the estimate against the initialized engine. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/configuration/optimization/&quot;&gt;Memory tuning&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/serving/parallelism_scaling/&quot;&gt;Startup logs&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Worked example on one GPU&lt;/h3&gt;
&lt;p&gt;Qwen lists 1.54 billion parameters, 28 layers and two KV heads for Qwen2.5-1.5B-Instruct. Its head size is &lt;code&gt;1,536 ÷ 12 = 128&lt;/code&gt; in vLLM’s Qwen2 implementation. PyTorch lists BF16 as a 16-bit type, so count two bytes per value. &lt;a href=&quot;https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct&quot;&gt;Qwen model card&lt;/a&gt; · &lt;a href=&quot;https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct/blob/main/config.json&quot;&gt;Qwen configuration&lt;/a&gt; · &lt;a href=&quot;https://github.com/vllm-project/vllm/blob/v0.34.0/vllm/model_executor/models/qwen2.py&quot;&gt;vLLM Qwen2 implementation&lt;/a&gt; · &lt;a href=&quot;https://docs.pytorch.org/docs/2.15/tensor_attributes.html&quot;&gt;PyTorch data types&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Assume 8 GiB of total VRAM, a &lt;code&gt;0.80&lt;/code&gt; utilization cap, and 1.50 GiB budgeted for runtime allocations outside the weights and cache. Target eight concurrent requests, each with up to 6,144 prompt tokens and 2,048 output tokens. For the worksheet, use BF16 for weights and cache and assume an illustrative block size of 64 tokens. The table shows planning arithmetic. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/configuration/optimization/&quot;&gt;Memory tuning&lt;/a&gt; · &lt;a href=&quot;https://github.com/vllm-project/vllm/blob/v0.34.0/vllm/v1/kv_cache_interface.py&quot;&gt;KV cache interface&lt;/a&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Quantity&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Context limit&lt;/td&gt;
&lt;td&gt;&lt;code&gt;6,144 + 2,048 = 8,192&lt;/code&gt; tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BF16 weights&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.54 billion × 2 bytes ≈ 2.87 GiB&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KV per token&lt;/td&gt;
&lt;td&gt;&lt;code&gt;2 × 28 × 2 × 128 × 2 = 28,672&lt;/code&gt; bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KV per full-length request&lt;/td&gt;
&lt;td&gt;&lt;code&gt;128 blocks × 64 tokens × 28,672 bytes = 224 MiB&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KV for eight requests&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8 × 224 MiB = 1.75 GiB&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Estimated room for KV&lt;/td&gt;
&lt;td&gt;&lt;code&gt;(8 GiB × 0.80) − 2.87 GiB − 1.50 GiB ≈ 2.03 GiB&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The target adds up to about 6.12 GiB for weights, runtime and cache, or 76.5% of the assumed GPU’s VRAM. The example’s 80% cap leaves 1.60 GiB outside vLLM’s budget.&lt;/p&gt;
&lt;h2&gt;Start vLLM and check the cache logs&lt;/h2&gt;
&lt;p&gt;Start the example with the host set to &lt;code&gt;127.0.0.1&lt;/code&gt;. On a dedicated CUDA or ROCm GPU with the extensible cache active and no extra headroom requirement, omit the utilization flag. &lt;a href=&quot;https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct&quot;&gt;Qwen model card&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/configuration/optimization/&quot;&gt;Memory tuning&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;vllm serve Qwen/Qwen2.5-1.5B-Instruct \
  --host 127.0.0.1 \
  --dtype bfloat16 \
  --kv-cache-dtype auto \
  --max-model-len 8192 \
  --gpu-memory-utilization 0.80
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;GPU KV cache size&lt;/code&gt;&lt;/strong&gt; reports how many tokens the GPU KV cache can hold at once. With separate blocks for each request, the example needs &lt;code&gt;8 × 8,192 = 65,536&lt;/code&gt; cached tokens to hold all eight full-length requests at once. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/serving/parallelism_scaling/&quot;&gt;Startup logs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;Maximum concurrency&lt;/code&gt;&lt;/strong&gt; estimates how many requests can fit in the KV cache at once if each uses the configured maximum sequence length. For example, a reported capacity of 49,152 tokens at an 8,192-token limit would give this workload a cache estimate of six full-length requests. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/serving/parallelism_scaling/&quot;&gt;Startup logs&lt;/a&gt; · &lt;a href=&quot;https://github.com/vllm-project/vllm/blob/v0.34.0/vllm/v1/kv_cache_interface.py&quot;&gt;KV cache interface&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If capacity is short and your workload allows shorter requests, lower &lt;code&gt;--max-model-len&lt;/code&gt; to their combined prompt and output budget and recalculate blocks per request. If the context must stay fixed and insufficient cache space causes frequent preemptions, consider lowering &lt;code&gt;--max-num-seqs&lt;/code&gt; to reduce the number of sequences processed per iteration. For frequent preemptions caused by insufficient KV cache space, consider raising an explicit utilization cap if the GPU has room for the extra allocation. Check the startup capacity again after changing settings. &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/cli/serve/&quot;&gt;Serve CLI&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/configuration/optimization/&quot;&gt;Memory tuning&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.34.0/serving/parallelism_scaling/&quot;&gt;Startup logs&lt;/a&gt; · &lt;a href=&quot;https://github.com/vllm-project/vllm/blob/v0.34.0/vllm/v1/kv_cache_interface.py&quot;&gt;KV cache interface&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Evidence and limits.&lt;/strong&gt; The settings and log fields were checked against vLLM 0.34.0 documentation on 2026-11-26. The command was not run on a GPU. The worksheet uses the published Qwen configuration and illustrative VRAM inputs.&lt;/p&gt;
</content:encoded><category>vllm</category><category>vram</category><category>kv-cache</category><category>gpu-serving</category><author>GPU Serving Guide Editorial</author></item><item><title>Multi-GPU vLLM Docker Setup and NCCL Troubleshooting</title><link>https://gpuservingguide.com/posts/multi-gpu-vllm-docker-setup-tensor-parallel-size/</link><guid isPermaLink="true">https://gpuservingguide.com/posts/multi-gpu-vllm-docker-setup-tensor-parallel-size/</guid><description>Run vLLM on two NVIDIA GPUs in Docker, pick a compatible tensor-parallel size, verify a local chat request, and diagnose NCCL startup hangs.</description><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Expose the NVIDIA GPUs you want to use with Docker&apos;s &lt;code&gt;--gpus&lt;/code&gt; option, then set vLLM&apos;s &lt;code&gt;--tensor-parallel-size&lt;/code&gt; to the number of GPUs taking part in a compatible split. For the two-GPU setup below, use &lt;code&gt;--tensor-parallel-size 2&lt;/code&gt;. If startup hangs, rerun with &lt;code&gt;NCCL_DEBUG=INFO&lt;/code&gt; and use the communication check to troubleshoot separately from model loading. &lt;a href=&quot;https://docs.docker.com/engine/containers/gpu/&quot;&gt;Docker GPU access&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/serving/parallelism_scaling/&quot;&gt;vLLM parallelism&lt;/a&gt; · &lt;a href=&quot;https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html&quot;&gt;NVIDIA NCCL environment variables&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/usage/troubleshooting/&quot;&gt;vLLM troubleshooting&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Check GPU access in Docker&lt;/h2&gt;
&lt;p&gt;Start on a Linux host with Docker Engine, a compatible NVIDIA driver and the NVIDIA Container Toolkit configured for Docker. The Linux x86-64 build of the vLLM 0.33.0 image below uses CUDA 13.0. Check the host driver against NVIDIA&apos;s CUDA compatibility table. &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/getting_started/installation/gpu/&quot;&gt;vLLM GPU requirements&lt;/a&gt; · &lt;a href=&quot;https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html&quot;&gt;NVIDIA Container Toolkit setup&lt;/a&gt; · &lt;a href=&quot;https://hub.docker.com/layers/vllm/vllm-openai/v0.33.0/images/sha256-91ee972ab751fb7180bc71c175865e36b091686600dca783d52b2511399810b3&quot;&gt;vLLM image tag&lt;/a&gt; · &lt;a href=&quot;https://docs.nvidia.com/deploy/cuda-compatibility/latest/minor-version-compatibility.html&quot;&gt;NVIDIA CUDA compatibility&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;List the host GPUs, then verify that Docker sees the two selected devices. Replace &lt;code&gt;0,1&lt;/code&gt; with the indices you want. Keep the nested quotes around the comma-separated device list. &lt;a href=&quot;https://docs.docker.com/engine/containers/gpu/&quot;&gt;Docker GPU access&lt;/a&gt; · &lt;a href=&quot;https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/sample-workload.html&quot;&gt;NVIDIA sample workload&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nvidia-smi -L
docker run --rm --runtime=nvidia --gpus &apos;&amp;quot;device=0,1&amp;quot;&apos; ubuntu nvidia-smi
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Proceed when the second command lists both selected GPUs. If it fails, revisit the driver and Docker runtime configuration using the &lt;a href=&quot;https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html&quot;&gt;NVIDIA Container Toolkit setup guide&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Choose a tensor-parallel size&lt;/h2&gt;
&lt;p&gt;Choose the GPU count for one model replica, then check that the model&apos;s total attention head count divides evenly by that count. Qwen publishes 16 attention heads for &lt;code&gt;Qwen/Qwen3-0.6B&lt;/code&gt;, so two GPUs pass that check with eight heads per GPU. Three GPUs fail the divisibility check for this model. &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/serving/parallelism_scaling/&quot;&gt;vLLM parallelism&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/api/vllm/config/model/&quot;&gt;vLLM model validation&lt;/a&gt; · &lt;a href=&quot;https://huggingface.co/Qwen/Qwen3-0.6B/blob/main/config.json&quot;&gt;Qwen model configuration&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If your model fits across the host&apos;s GPUs but the model cannot be split evenly at your chosen size, vLLM documents an alternative using &lt;code&gt;--tensor-parallel-size 1&lt;/code&gt; and &lt;code&gt;--pipeline-parallel-size&lt;/code&gt; set to the GPU count. Pipeline parallelism splits the model by layers. &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/serving/parallelism_scaling/&quot;&gt;vLLM parallelism&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Start vLLM and send a request&lt;/h2&gt;
&lt;p&gt;Run the vLLM image with the same two GPU indices. &lt;code&gt;--shm-size=1g&lt;/code&gt; sets the container&apos;s shared-memory size to the example value in NVIDIA&apos;s NCCL guide. vLLM uses PyTorch, which shares data between processes through shared memory, particularly for tensor-parallel inference. &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/deployment/docker/&quot;&gt;vLLM Docker guide&lt;/a&gt; · &lt;a href=&quot;https://hub.docker.com/layers/vllm/vllm-openai/v0.33.0/images/sha256-91ee972ab751fb7180bc71c175865e36b091686600dca783d52b2511399810b3&quot;&gt;vLLM image tag&lt;/a&gt; · &lt;a href=&quot;https://docs.docker.com/reference/cli/docker/container/run/&quot;&gt;Docker run reference&lt;/a&gt; · &lt;a href=&quot;https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/runtime_and_mpi_issues.html&quot;&gt;NVIDIA NCCL runtime troubleshooting&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Keep the loopback address in the port mapping for this local check. Docker warns that on releases before 28.0.0, other hosts on the same Layer 2 segment can reach ports published to localhost. &lt;a href=&quot;https://docs.docker.com/engine/network/port-publishing/&quot;&gt;Docker port publishing&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;docker run --rm --name vllm-tp --runtime=nvidia --gpus &apos;&amp;quot;device=0,1&amp;quot;&apos; \
  --shm-size=1g \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -p 127.0.0.1:8000:8000 \
  vllm/vllm-openai:v0.33.0 \
  --model Qwen/Qwen3-0.6B --tensor-parallel-size 2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once the server has started, send a chat request from another terminal on the Docker host. Look for a chat completion. Use the same model ID in the request and launch command. &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/getting_started/quickstart/#openai-chat-completions-api-with-vllm&quot;&gt;vLLM chat quickstart&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;curl http://127.0.0.1:8000/v1/chat/completions \
  -H &apos;Content-Type: application/json&apos; \
  -d &apos;{&amp;quot;model&amp;quot;:&amp;quot;Qwen/Qwen3-0.6B&amp;quot;,&amp;quot;messages&amp;quot;:[{&amp;quot;role&amp;quot;:&amp;quot;user&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;Say hello.&amp;quot;}]}&apos;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Troubleshoot NCCL startup&lt;/h2&gt;
&lt;p&gt;If the container is still running, stop it with &lt;code&gt;docker stop vllm-tp&lt;/code&gt;. To get NCCL debug output on the next run, add &lt;code&gt;--env NCCL_DEBUG=INFO&lt;/code&gt; before the image name in the launch command. &lt;a href=&quot;https://docs.docker.com/reference/cli/docker/container/stop/&quot;&gt;Docker stop reference&lt;/a&gt; · &lt;a href=&quot;https://docs.docker.com/reference/cli/docker/container/run/&quot;&gt;Docker run reference&lt;/a&gt; · &lt;a href=&quot;https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html&quot;&gt;NVIDIA NCCL environment variables&lt;/a&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you see&lt;/th&gt;
&lt;th&gt;What to try&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;An NCCL warning about failing to extend a file in &lt;code&gt;/dev/shm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Increase &lt;code&gt;--shm-size&lt;/code&gt; if the container has insufficient shared memory, then retry. NVIDIA&apos;s Docker example also sets &lt;code&gt;--ulimit memlock=-1&lt;/code&gt; when adjusting pinned memory limits. &lt;a href=&quot;https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/runtime_and_mpi_issues.html&quot;&gt;NVIDIA NCCL runtime troubleshooting&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A suspected GPU peer-to-peer issue&lt;/td&gt;
&lt;td&gt;Run &lt;code&gt;nvidia-smi topo -p2p p&lt;/code&gt; on the host and inspect the selected pair&apos;s PCIe peer-access status. Use &lt;code&gt;nvidia-smi topo -p2p n&lt;/code&gt; for NVLink. &lt;a href=&quot;https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/gpu_troubleshooting.html&quot;&gt;NVIDIA NCCL GPU troubleshooting&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A hang that might involve NCCL&apos;s peer-to-peer transport&lt;/td&gt;
&lt;td&gt;Compare with one rerun using &lt;code&gt;--env NCCL_P2P_DISABLE=1&lt;/code&gt; before the image name. If that helps, investigate the peer-to-peer path. Remove the flag after diagnosis, since disabling that transport can affect performance. &lt;a href=&quot;https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/gpu_troubleshooting.html&quot;&gt;NVIDIA NCCL GPU troubleshooting&lt;/a&gt; · &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/usage/troubleshooting/&quot;&gt;vLLM troubleshooting&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Run the communication check&lt;/h3&gt;
&lt;p&gt;Stop the serving container if it is still running. Save the Python script from &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/usage/troubleshooting/#incorrect-hardwaredriver&quot;&gt;vLLM&apos;s hardware and driver troubleshooting section&lt;/a&gt; as &lt;code&gt;test.py&lt;/code&gt; in your current folder. Run it in the same image with the same GPU pair and one &lt;code&gt;torchrun&lt;/code&gt; process per GPU. &lt;a href=&quot;https://docs.docker.com/reference/cli/docker/container/run/&quot;&gt;Docker run reference&lt;/a&gt; · &lt;a href=&quot;https://docs.docker.com/engine/storage/bind-mounts/&quot;&gt;Docker bind mounts&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;docker run --rm --runtime=nvidia --gpus &apos;&amp;quot;device=0,1&amp;quot;&apos; \
  --shm-size=1g \
  --env NCCL_DEBUG=TRACE \
  --mount &amp;quot;type=bind,src=$PWD/test.py,dst=/tmp/test.py,readonly&amp;quot; \
  --entrypoint torchrun   vllm/vllm-openai:v0.33.0 \
  --nproc-per-node=2 /tmp/test.py
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Look for the script&apos;s NCCL success messages. If the script hangs or crashes, investigate the hardware and driver setup before retrying the model server. &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/usage/troubleshooting/#incorrect-hardwaredriver&quot;&gt;vLLM troubleshooting&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For setups spanning more than one host, see &lt;a href=&quot;https://docs.vllm.ai/en/v0.33.0/serving/parallelism_scaling/#multi-node-deployment&quot;&gt;vLLM&apos;s multi-node deployment guide&lt;/a&gt;. Browse the site&apos;s &lt;a href=&quot;/posts/&quot;&gt;Articles&lt;/a&gt; or &lt;a href=&quot;/topics/&quot;&gt;Topics&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Evidence and limits.&lt;/strong&gt; The setup was adapted from the vLLM 0.33.0, Docker Engine, NVIDIA Container Toolkit and NCCL 2.32.3 documentation, checked on November 26, 2026. The commands were not run for this guide.&lt;/p&gt;
</content:encoded><author>GPU Serving Guide Editorial</author></item><item><title>vLLM vs Ollama vs llama.cpp for Concurrent Local GPU Serving</title><link>https://gpuservingguide.com/posts/vllm-ollama-llama-cpp-local-gpu-hardware-concurrency/</link><guid isPermaLink="true">https://gpuservingguide.com/posts/vllm-ollama-llama-cpp-local-gpu-hardware-concurrency/</guid><description>Compare vLLM, Ollama, and llama.cpp by GPU support, memory use, and concurrent requests. See which settings to change and how to verify them.</description><pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Start with &lt;strong&gt;vLLM&lt;/strong&gt; for a shared model API on a supported Linux GPU and &lt;strong&gt;Ollama&lt;/strong&gt; if you want to launch local models with a single command. Choose &lt;strong&gt;llama.cpp&lt;/strong&gt; when you have a GGUF file and want to control how many layers to offload and how many requests to handle at once. &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/getting_started/quickstart/&quot;&gt;vLLM quickstart&lt;/a&gt;, &lt;a href=&quot;https://docs.ollama.com/faq&quot;&gt;Ollama FAQ&lt;/a&gt;, &lt;a href=&quot;https://github.com/ggml-org/llama.cpp/blob/v1.1.0/tools/server/README.md&quot;&gt;llama.cpp server reference&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Match the runtime to your GPU&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Runtime&lt;/th&gt;
&lt;th&gt;NVIDIA&lt;/th&gt;
&lt;th&gt;AMD&lt;/th&gt;
&lt;th&gt;Apple Silicon&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;vLLM&lt;/td&gt;
&lt;td&gt;The Linux CUDA path requires compute capability 7.5 or higher.&lt;/td&gt;
&lt;td&gt;The Linux ROCm list includes GPUs from the Radeon RX 7900 and RX 9000 series. Check the ROCm version for your chip.&lt;/td&gt;
&lt;td&gt;The stable GPU guide points to vLLM-Metal, a community-maintained plugin that uses MLX. &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/getting_started/installation/gpu/#requirements&quot;&gt;vLLM 0.21.0 GPU requirements&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/stable/getting_started/installation/gpu/&quot;&gt;vLLM stable GPU guide&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ollama&lt;/td&gt;
&lt;td&gt;The GPU guide lists compute capability 5.0 or higher and driver 550 or newer. For compute capabilities 5.0 through 6.2, it requires driver 570 or newer.&lt;/td&gt;
&lt;td&gt;Check the separate Linux and Windows ROCm lists. The RX 7900 XTX appears on both. The guide also lists Vulkan for additional Windows and Linux GPUs.&lt;/td&gt;
&lt;td&gt;Ollama accelerates inference through Metal. &lt;a href=&quot;https://docs.ollama.com/gpu&quot;&gt;Ollama hardware support&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;llama.cpp&lt;/td&gt;
&lt;td&gt;Use a build with the CUDA backend.&lt;/td&gt;
&lt;td&gt;Use a HIP build with ROCm on supported AMD GPUs, or consult the Vulkan build instructions.&lt;/td&gt;
&lt;td&gt;Metal is enabled by default when building for macOS. &lt;a href=&quot;https://github.com/ggml-org/llama.cpp/blob/v1.1.0/docs/build.md&quot;&gt;llama.cpp build guide&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;For example, Ollama lists the GTX 1080 Ti at compute capability 6.1, which meets Ollama’s published compute requirement. For NVIDIA GPU acceleration in Ollama, the card needs driver 570 or newer. It falls below the CUDA minimum in the vLLM 0.21.0 guide. &lt;a href=&quot;https://docs.ollama.com/gpu&quot;&gt;Ollama hardware support&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/getting_started/installation/gpu/#requirements&quot;&gt;vLLM GPU requirements&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;When a model needs more than one GPU&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;vLLM&lt;/strong&gt; recommends tensor parallelism on a single node when the model is too large for one GPU and fits across several. If the model fits across the node’s GPUs but cannot be divided evenly between them, its guide recommends pipeline parallelism. &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/serving/parallelism_scaling/&quot;&gt;vLLM parallelism and scaling&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ollama&lt;/strong&gt; checks available VRAM when loading the model. It uses a single GPU if the model fits entirely on one and spreads the model across the available GPUs otherwise. &lt;a href=&quot;https://docs.ollama.com/faq&quot;&gt;Ollama FAQ&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;llama.cpp&lt;/strong&gt; defaults to the &lt;code&gt;layer&lt;/code&gt; split mode. It places a range of layers on each GPU and keeps each layer’s key-value (KV) cache with that layer. The &lt;code&gt;--n-gpu-layers&lt;/code&gt; flag sets the maximum number of layers to place in VRAM. &lt;a href=&quot;https://github.com/ggml-org/llama.cpp/blob/v1.1.0/docs/multi-gpu.md&quot;&gt;llama.cpp multi-GPU guide&lt;/a&gt;, &lt;a href=&quot;https://github.com/ggml-org/llama.cpp/blob/v1.1.0/tools/server/README.md&quot;&gt;llama.cpp server reference&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Configure two overlapping requests&lt;/h2&gt;
&lt;p&gt;Use two overlapping requests and a 4,096-token context target as a worked example. Each command assumes the runtime is already installed.&lt;/p&gt;
&lt;h3&gt;vLLM sets a per-iteration sequence limit&lt;/h3&gt;
&lt;p&gt;Use the model from the vLLM quickstart. Set the combined prompt and output limit with &lt;code&gt;--max-model-len&lt;/code&gt; and cap each scheduling iteration at two sequences with &lt;code&gt;--max-num-seqs&lt;/code&gt;. &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/getting_started/quickstart/&quot;&gt;vLLM quickstart&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/cli/serve/&quot;&gt;vLLM serve reference&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;vllm serve Qwen/Qwen2.5-1.5B-Instruct --host localhost \
  --max-model-len 4096 --max-num-seqs 2 --enable-logging-iteration-details
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Run the following request in two terminals. Prepare both commands, then submit them in quick succession. &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/getting_started/quickstart/&quot;&gt;vLLM quickstart&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;curl http://localhost:8000/v1/chat/completions \
  -H &amp;quot;Content-Type: application/json&amp;quot; \
  -d &apos;{
    &amp;quot;model&amp;quot;: &amp;quot;Qwen/Qwen2.5-1.5B-Instruct&amp;quot;,
    &amp;quot;messages&amp;quot;: [
      {&amp;quot;role&amp;quot;: &amp;quot;user&amp;quot;, &amp;quot;content&amp;quot;: &amp;quot;Write a long, detailed guide to growing tomatoes, from seed to harvest.&amp;quot;}
    ]
  }&apos;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With &lt;code&gt;--max-num-seqs 2&lt;/code&gt; set, look in the server’s iteration logs for two generation requests in the same iteration. If the requests finish too quickly to overlap, try a prompt that asks for a longer answer. To check the lower limit, restart with &lt;code&gt;--max-num-seqs 1&lt;/code&gt; and repeat the pair. Look for at most one generation request per iteration. &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/cli/serve/&quot;&gt;vLLM serve reference&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For cache sizing, use the startup log’s &lt;code&gt;GPU KV cache size&lt;/code&gt; and &lt;code&gt;Maximum concurrency&lt;/code&gt; lines. The latter estimates cache capacity at the reported tokens per request. That token count comes from the configured maximum model length. Use the iteration logs for the request check. If memory is tight, lower &lt;code&gt;--max-model-len&lt;/code&gt; or &lt;code&gt;--max-num-seqs&lt;/code&gt;. &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/serving/parallelism_scaling/&quot;&gt;vLLM parallelism and scaling&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/v0.21.0/configuration/conserving_memory/&quot;&gt;vLLM memory guide&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Ollama sets parallel requests per model&lt;/h3&gt;
&lt;p&gt;On platforms that support both settings, set the context and parallel limit when starting Ollama from a shell. When sufficient memory is available to configure two parallel requests for a model, a 4,096-token context gives a combined context of 8,192 tokens. &lt;a href=&quot;https://docs.ollama.com/context-length&quot;&gt;Ollama context guide&lt;/a&gt;, &lt;a href=&quot;https://docs.ollama.com/faq&quot;&gt;Ollama FAQ&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;OLLAMA_CONTEXT_LENGTH=4096 OLLAMA_NUM_PARALLEL=2 ollama serve
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With the server running, preload a model and check its allocation. &lt;a href=&quot;https://docs.ollama.com/faq&quot;&gt;Ollama FAQ&lt;/a&gt;, &lt;a href=&quot;https://docs.ollama.com/context-length&quot;&gt;Ollama context guide&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ollama run llama3.2 &amp;quot;&amp;quot;
ollama ps
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Read &lt;code&gt;CONTEXT&lt;/code&gt; for the allocated context and &lt;code&gt;PROCESSOR&lt;/code&gt; for GPU and CPU placement. &lt;a href=&quot;https://docs.ollama.com/context-length&quot;&gt;Ollama context guide&lt;/a&gt;, &lt;a href=&quot;https://docs.ollama.com/faq&quot;&gt;Ollama FAQ&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following request in two terminals, starting the second while the first is still generating. Ollama’s &lt;code&gt;/api/generate&lt;/code&gt; streams newline-delimited JSON by default. Look for generated text in the &lt;code&gt;response&lt;/code&gt; field of the second stream before the first stream’s &lt;code&gt;done&lt;/code&gt; field becomes &lt;code&gt;true&lt;/code&gt;. &lt;a href=&quot;https://docs.ollama.com/faq&quot;&gt;Ollama FAQ&lt;/a&gt;, &lt;a href=&quot;https://docs.ollama.com/api/streaming&quot;&gt;Ollama streaming guide&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;curl http://localhost:11434/api/generate -d &apos;{
  &amp;quot;model&amp;quot;: &amp;quot;llama3.2&amp;quot;,
  &amp;quot;prompt&amp;quot;: &amp;quot;Write a long, detailed guide to growing tomatoes, from seed to harvest.&amp;quot;,
  &amp;quot;options&amp;quot;: {&amp;quot;num_ctx&amp;quot;: 4096}
}&apos;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For a comparison, stop the shell server, restart it with &lt;code&gt;OLLAMA_NUM_PARALLEL=1&lt;/code&gt;, preload the same model, and repeat the pair. If generation overlaps with the limit set to two and runs one request at a time with the limit set to one, the setting is taking effect for this model. &lt;a href=&quot;https://docs.ollama.com/faq&quot;&gt;Ollama FAQ&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When Ollama is busy, &lt;code&gt;OLLAMA_MAX_QUEUE&lt;/code&gt; sets how many requests can wait before it rejects new ones. If memory is tight, reduce the context length or the parallel request limit. For the macOS app or Linux systemd service, set the same variables using the platform-specific instructions. &lt;a href=&quot;https://docs.ollama.com/context-length&quot;&gt;Ollama context guide&lt;/a&gt;, &lt;a href=&quot;https://docs.ollama.com/faq#how-do-i-configure-ollama-server&quot;&gt;Ollama FAQ&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;llama.cpp sets server slots and a per-slot limit&lt;/h3&gt;
&lt;p&gt;Replace &lt;code&gt;model.gguf&lt;/code&gt; with the path to your GGUF model. This configuration sets two server slots that share a KV cache, with a 4,096-token context limit on each slot. With &lt;code&gt;--ctx-size&lt;/code&gt; omitted, the documented pool-size calculation is two times 4,096, or 8,192 tokens. &lt;a href=&quot;https://github.com/ggml-org/llama.cpp/blob/v1.1.0/tools/server/README.md&quot;&gt;llama.cpp server reference&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;llama-server -m model.gguf --parallel 2 --kv-unified \
  --kv-unified-per-slot 4096
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Open &lt;code&gt;http://127.0.0.1:9931/slots&lt;/code&gt; to see the slots and their &lt;code&gt;is_processing&lt;/code&gt; state. To request a smaller shared pool with this configuration, lower the per-slot context limit or the slot count. &lt;a href=&quot;https://github.com/ggml-org/llama.cpp/blob/v1.1.0/tools/server/README.md&quot;&gt;llama.cpp server reference&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Evidence and limits.&lt;/strong&gt; Sources checked on 2026-11-26 include the vLLM 0.21.0 docs and stable GPU guide, Ollama’s rolling docs, and the llama.cpp v1.1.0 docs. The example commands were not run. No performance measurements were taken.&lt;/p&gt;
</content:encoded><category>vllm</category><category>ollama</category><category>llama.cpp</category><category>gpu</category><category>concurrency</category><author>GPU Serving Guide Editorial</author></item></channel></rss>