{"id":156543,"date":"2026-09-10T00:51:56","date_gmt":"2026-09-10T00:51:56","guid":{"rendered":"\/tutorials\/?p=156543"},"modified":"2026-09-10T00:51:59","modified_gmt":"2026-09-10T00:51:59","slug":"ollama-gpu-requirements","status":"publish","type":"post","link":"\/tutorials\/ollama-gpu-requirements\/","title":{"rendered":"Ollama GPU requirements: VRAM, RAM, and GPU guide"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Ollama GPU requirements range from about <strong>3&#8209;4 GB of VRAM for a small 3B model to around 50 GB for a 70B model<\/strong>, at Q4_K_M quantization (a widely used compressed version of a model) with an 8K context.<\/p><p class=\"wp-block-paragraph\">The main factors that determine where you land in that range include model parameter count, quantization level, and context window length.<\/p><p class=\"wp-block-paragraph\">Adding a GPU significantly speeds up response generation compared with running Ollama on a CPU alone. In our benchmark on a Hostinger GPU instance with an RTX 4090, the Llama 3.1 8B Q4_K_M model generated responses 2.7&times; faster than on the CPU-only instance.<\/p><p class=\"wp-block-paragraph\"><\/p><h2 class=\"wp-block-heading\" id=\"h-does-ollama-need-a-gpu\">Does Ollama need a GPU?<\/h2><p class=\"wp-block-paragraph\"><strong>No. Ollama doesn&rsquo;t need a GPU<\/strong>, but using one makes responses much faster, especially with larger models or longer conversations.<\/p><p class=\"wp-block-paragraph\"><a href=\"\/tutorials\/what-is-ollama\/\">Ollama works<\/a> with only your CPU and system RAM. This makes sense if you&rsquo;re testing Ollama, occasionally using a small model, or don&rsquo;t mind waiting longer for responses.<\/p><p class=\"wp-block-paragraph\">Take Llama 3.1 8B Q4_K_M as an example. Its model file is about 4.9 GB.<\/p><p class=\"wp-block-paragraph\">With 16 GB of system RAM and no GPU, Ollama loads the model into RAM, and your CPU does the processing. You have enough memory to run the model, but responses arrive noticeably slower because the CPU has to do all the work.<\/p><p class=\"wp-block-paragraph\">Now add an 8 GB GPU. The 4.9 GB model fits in the GPU&rsquo;s own memory, called VRAM, with room for a shorter context, so Ollama uses the GPU for processing instead of relying on the CPU.<\/p><p class=\"wp-block-paragraph\">Keep in mind that system RAM and VRAM are separate pools of memory. Your 16 GB of RAM still serves the operating system and other apps, while the GPU has its own 8 GB of VRAM for Ollama.<\/p><p class=\"wp-block-paragraph\">The practical difference looks like this:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Aspect<\/strong><\/td><td><strong>CPU-only<\/strong><\/td><td><strong>With a GPU<\/strong><\/td><\/tr><tr><td><strong>Where the model loads<\/strong><\/td><td>System RAM<\/td><td>GPU VRAM when it fits<\/td><\/tr><tr><td><strong>What does the processing<\/strong><\/td><td>CPU<\/td><td>GPU<\/td><\/tr><tr><td><strong>What more memory gives you<\/strong><\/td><td>More RAM lets you run larger models on the CPU<\/td><td>More VRAM lets you run larger models and longer contexts on the GPU<\/td><\/tr><tr><td><strong>Best for<\/strong><\/td><td>Occasional use with smaller models and shorter contexts<\/td><td>Frequent use with larger models and longer contexts<\/td><\/tr><\/tbody><\/table><\/figure><h2 class=\"wp-block-heading\" id=\"h-what-determines-ollama-gpu-and-vram-requirements\">What determines Ollama GPU and VRAM requirements?<\/h2><p class=\"wp-block-paragraph\">Ollama&rsquo;s GPU and VRAM requirements depend on <strong>model parameter count, quantization level, context window length, concurrency, and how much system RAM you have available for offloading<\/strong>.<\/p><p class=\"wp-block-paragraph\">Model size and quantization determine how much memory you need to load the model. A longer context increases memory usage, and concurrency further increases it when Ollama handles multiple requests at once.<\/p><p class=\"wp-block-paragraph\">System RAM becomes important when the full workload doesn&rsquo;t fit on the GPU, since Ollama runs the part that doesn&rsquo;t fit in VRAM on the CPU instead.<\/p><p class=\"wp-block-paragraph\">Context and runtime memory sit on top of the model file, which is why a 4.9 GB model needs more than 4.9 GB of VRAM to run entirely on the GPU. The sections below break down each factor and how much VRAM it adds.<\/p><h3 class=\"wp-block-heading\">Model parameter count<\/h3><p class=\"wp-block-paragraph\">The more parameters a model has, the more VRAM you need to run it on the GPU.<\/p><p class=\"wp-block-paragraph\">Larger models also tend to handle harder tasks better, such as generating working code in one pass or following multi-step instructions.<\/p><p class=\"wp-block-paragraph\">At Q4_K_M quantization, model file sizes scale roughly like this:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Model<\/strong><\/td><td><strong>File size<\/strong><\/td><\/tr><tr><td>Llama 3.2 3B<\/td><td>~2 GB<\/td><\/tr><tr><td>Llama 3.1 8B<\/td><td>~4.9 GB<\/td><\/tr><tr><td>Qwen3 32B<\/td><td>~20 GB<\/td><\/tr><tr><td>Llama 3.3 70B<\/td><td>~43 GB<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">A 32B model takes about four times as much memory as an 8B model at the same quantization, while a 70B model pushes the requirement much higher.<\/p><h3 class=\"wp-block-heading\">Quantization level<\/h3><p class=\"wp-block-paragraph\">Quantization compresses the numbers inside a model so it takes up less memory. The same model can have very different file sizes depending on its quantization level.<\/p><p class=\"wp-block-paragraph\">Lower-bit quantization compresses the model more, trading some output quality for a smaller file. You might see it miss a specific detail in a long prompt that the higher-quantized version gets right.<\/p><p class=\"wp-block-paragraph\">Here&rsquo;s Llama 3.1 8B at three quantization levels:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Quantization<\/strong><\/td><td><strong>File size<\/strong><\/td><\/tr><tr><td>Q4_K_M<\/td><td>~4.9 GB<\/td><\/tr><tr><td>Q6_K<\/td><td>~6.6 GB<\/td><\/tr><tr><td>Q8_0<\/td><td>~8.5 GB<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">The Q4_K_M version fits on an 8 GB GPU with VRAM to spare for context. The Q8_0 version is already 8.5 GB before adding context, so the same GPU can&rsquo;t hold the entire workload in VRAM.<\/p><h3 class=\"wp-block-heading\">Context window length<\/h3><p class=\"wp-block-paragraph\">The longer your context window, the more VRAM Ollama needs because it keeps more of your prompt and conversation in memory while generating a response.<\/p><p class=\"wp-block-paragraph\">Ollama sets the default context length automatically based on your available VRAM:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Available VRAM<\/strong><\/td><td><strong>Default context<\/strong><\/td><\/tr><tr><td>Under 24 GB<\/td><td>4K<\/td><\/tr><tr><td>24&#8209;48 GB<\/td><td>32K<\/td><\/tr><tr><td>48 GB+<\/td><td>256K<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">Here&rsquo;s how context length affects total VRAM for Llama 3.1 8B Q4_K_M:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Context length<\/strong><\/td><td><strong>Total VRAM usage<\/strong><\/td><\/tr><tr><td>2K<\/td><td>~5-6 GB<\/td><\/tr><tr><td>8K<\/td><td>~6-7 GB<\/td><\/tr><tr><td>32K<\/td><td>~9-10 GB<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">That means the same model that fits on an 8 GB GPU with a short context no longer fits entirely in VRAM at 32K. Longer contexts are useful when you want Ollama to keep track of more information, such as a long conversation or a large document.<\/p><p class=\"wp-block-paragraph\">Note that each model also has a maximum context length it supports. For example, Llama 3.1 8B supports up to 128K.<\/p><h3 class=\"wp-block-heading\">Concurrency<\/h3><p class=\"wp-block-paragraph\">Concurrency means Ollama handling more than one request at the same time. It increases VRAM use because each of those requests needs its own context memory.<\/p><p class=\"wp-block-paragraph\">Say you&rsquo;re running Llama 3.1 8B Q4_K_M with a 2K context. One request uses about 5-6 GB of VRAM in total.<\/p><p class=\"wp-block-paragraph\">Four concurrent requests need four separate 2K contexts, so Ollama is holding roughly 8K tokens of context across them. That raises total VRAM usage to about 6-7 GB, even though each request is still set to 2K.<\/p><p class=\"wp-block-paragraph\">Model memory adds up too when concurrent requests use different models.<\/p><p class=\"wp-block-paragraph\">Keeping Llama 3.1 8B (~4.9 GB) and Qwen3 14B (~9.3 GB) loaded uses about 14.2 GB before adding any context. On a 16 GB GPU, that leaves only about 1.8 GB for context and other runtime memory.<\/p><p class=\"wp-block-paragraph\">You don&rsquo;t need to worry about concurrency when you&rsquo;re the only person chatting with one model. It matters when several people or apps send requests at the same time.<\/p><h3 class=\"wp-block-heading\">System RAM and storage<\/h3><p class=\"wp-block-paragraph\">System RAM gives Ollama a place to store model data that doesn&rsquo;t fit in VRAM, while storage determines how many models and quantization versions you can keep downloaded.<\/p><p class=\"wp-block-paragraph\">Say you have an 8 GB GPU and 16 GB of RAM:<\/p><ul class=\"wp-block-list\">\n<li>A 4.9 GB model fits entirely in VRAM.<\/li>\n\n\n\n<li>A 10 GB model already exceeds your VRAM before adding context, so part of it has to use system RAM.<\/li>\n\n\n\n<li>A 20 GB model exceeds your VRAM by at least 12 GB before adding context, leaving very little of your 16 GB of RAM for the operating system and other apps.<\/li>\n<\/ul><p class=\"wp-block-paragraph\">For a model around 20 GB, 32 GB of system RAM gives you much more usable headroom when you pair it with an 8 GB GPU.<\/p><p class=\"wp-block-paragraph\">Storage is easier to calculate because each downloaded model takes roughly its listed file size on disk:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Model<\/strong><\/td><td><strong>File size<\/strong><\/td><\/tr><tr><td>Llama 3.1 8B Q4_K_M<\/td><td>~4.9 GB<\/td><\/tr><tr><td>Llama 3.1 8B Q8_0<\/td><td>~8.5 GB<\/td><\/tr><tr><td>Qwen3 32B Q4_K_M<\/td><td>~20 GB<\/td><\/tr><tr><td><strong>Total<\/strong><\/td><td><strong>~33.4 GB<\/strong><\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">Add the file sizes of the models you want to keep downloaded, then leave some extra space for future downloads if you plan to add more later.<\/p><h2 class=\"wp-block-heading\" id=\"h-ollama-vram-requirements-by-model-size\">Ollama VRAM requirements by model size<\/h2><p class=\"wp-block-paragraph\">At Q4_K_M quantization and an 8K context, Ollama needs roughly <strong>3-4 GB of VRAM for 1B-4B models, 6-7 GB for 7B-8B models, and 47-52 GB for 70B-class models<\/strong>.<\/p><p class=\"wp-block-paragraph\">The following estimates assume one active request.<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Model size<\/strong><\/td><td><strong>Example models<\/strong><\/td><td><strong>Q4_K_M file size<\/strong><\/td><td><strong>Approx. VRAM at 8K<\/strong><\/td><td><strong>GPU memory to look for<\/strong><\/td><\/tr><tr><td>1B-4B<\/td><td>Llama 3.2 3B, Qwen3 4B<\/td><td>~2-2.6 GB<\/td><td>~3-4 GB<\/td><td>4-6 GB<\/td><\/tr><tr><td>7B-8B<\/td><td>Llama 3.1 8B, Qwen3 8B<\/td><td>~4.9-5.2 GB<\/td><td>~6-7 GB<\/td><td>8 GB<\/td><\/tr><tr><td>12B-14B<\/td><td>Gemma 3 12B, Qwen3 14B<\/td><td>~8.1-9.3 GB<\/td><td>~10-12 GB<\/td><td>16 GB<\/td><\/tr><tr><td>20B-32B<\/td><td>Gemma 3 27B, Qwen3 32B<\/td><td>~17-20 GB<\/td><td>~19-24 GB<\/td><td>24 GB for shorter contexts, 48 GB for more room<\/td><\/tr><tr><td>70B-72B<\/td><td>Llama 3.3 70B, Qwen2.5 72B<\/td><td>~43-47 GB<\/td><td>~47-52 GB<\/td><td>80-96 GB<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">Check your model&rsquo;s actual file size first if it isn&rsquo;t listed, then use the closest row in the table to estimate the GPU memory you&rsquo;ll need.<\/p><p class=\"wp-block-paragraph\">Pay closer attention to the GPU tier when your requirement sits near its VRAM limit.<\/p><p class=\"wp-block-paragraph\">Some 32B Q4_K_M models fit on a 24 GB GPU, but leave little room as the context grows. A 48 GB GPU is similarly tight for many 70B models, so 80-96 GB gives you much more room.<\/p><p class=\"wp-block-paragraph\">Choose more VRAM if you plan to use higher-bit quantization, a context longer than 8K, or concurrent requests.<\/p><h2 class=\"wp-block-heading\" id=\"h-which-gpus-does-ollama-support\">Which GPUs does Ollama support?<\/h2><p class=\"wp-block-paragraph\">Ollama supports <strong>NVIDIA GPUs, selected AMD GPUs, and Apple Silicon Macs<\/strong>, as well as additional GPUs on Windows and Linux through Vulkan.<\/p><p class=\"wp-block-paragraph\">Check <a href=\"https:\/\/docs.ollama.com\/gpu\" target=\"_blank\" rel=\"noopener\">Ollama&rsquo;s hardware support page<\/a> first to see whether it supports your exact GPU, then use its VRAM or unified memory to determine which models you can run entirely on it.<\/p><h3 class=\"wp-block-heading\">NVIDIA GPUs<\/h3><p class=\"wp-block-paragraph\">Ollama supports NVIDIA GPUs with CUDA compute capability 5.0 or higher. This includes many GeForce GTX and RTX cards, as well as data center GPUs such as the A100, H100, and H200.<\/p><p class=\"wp-block-paragraph\">For example:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>GPU<\/strong><\/td><td><strong>VRAM<\/strong><\/td><\/tr><tr><td>RTX 3060 (12 GB variant)<\/td><td>12 GB<\/td><\/tr><tr><td>RTX 4070 Ti<\/td><td>12 GB<\/td><\/tr><tr><td>RTX 3090<\/td><td>24 GB<\/td><\/tr><tr><td>RTX 4090<\/td><td>24 GB<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">Ollama requires NVIDIA driver version 550 or newer. For GPUs with compute capability 5.0-6.2, driver version 570 or later is required.<\/p><h3 class=\"wp-block-heading\">AMD GPUs<\/h3><p class=\"wp-block-paragraph\">Ollama supports AMD GPUs through ROCm on Linux and Windows, although Windows supports fewer cards. Common supported consumer GPUs from the Radeon RX 7000 series include:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>GPU<\/strong><\/td><td><strong>VRAM<\/strong><\/td><\/tr><tr><td>RX 7600<\/td><td>8 GB<\/td><\/tr><tr><td>RX 7800 XT<\/td><td>16 GB<\/td><\/tr><tr><td>RX 7900 XTX<\/td><td>24 GB<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">Ollama also supports several Radeon PRO cards on Linux and Windows, plus Ryzen AI processors and Instinct accelerators on Linux.<\/p><h3 class=\"wp-block-heading\">Apple Silicon<\/h3><p class=\"wp-block-paragraph\">Ollama supports GPU acceleration on Apple Silicon Macs through Metal, so you don&rsquo;t need to install a separate GPU driver.<\/p><p class=\"wp-block-paragraph\">Apple Silicon shares unified memory between macOS, apps, and the model instead of providing dedicated VRAM. On a 32 GB Mac, you&rsquo;ll have around 23-25 GB available for Ollama.<\/p><h3 class=\"wp-block-heading\">Vulkan<\/h3><p class=\"wp-block-paragraph\">Ollama supports Vulkan on Windows and Linux, giving it access to GPUs beyond those supported by NVIDIA CUDA and AMD ROCm.<\/p><p class=\"wp-block-paragraph\">Vulkan itself is a cross-platform graphics API that works across a wide range of GPU manufacturers, including Intel and older AMD cards outside the ROCm compatibility list.<\/p><p class=\"wp-block-paragraph\">Performance through Vulkan is generally slower than CUDA or ROCm, but still faster than CPU-only.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-run-ollama-on-hostinger-gpu\">How to run Ollama on Hostinger GPU<\/h2><p class=\"wp-block-paragraph\">To run Ollama on <a href=\"\/gpu-hosting\">Hostinger GPU hosting<\/a>, <strong>choose a GPU with enough VRAM for the model you plan to use, deploy Ollama in hPanel, pull and run your model, and verify that Ollama is using the GPU<\/strong>.<\/p><p class=\"wp-block-paragraph\">Hostinger provides a preconfigured Ollama template that you can deploy with a few clicks, instead of installing Ollama, GPU drivers, and other dependencies yourself from the Linux command line.<\/p><h3 class=\"wp-block-heading\">1. Choose a GPU for your model<\/h3><p class=\"wp-block-paragraph\">Choose a Hostinger GPU based on the model size, context length, and workloads you plan to run. Give yourself some VRAM headroom instead of choosing a GPU that only barely fits your current model.<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Model size<\/strong><\/td><td><strong>Recommended Hostinger GPU<\/strong><\/td><td><strong>VRAM<\/strong><\/td><td><strong>Starting price<\/strong><\/td><\/tr><tr><td>7B-14B<\/td><td>RTX 4090<\/td><td>24 GB<\/td><td><strong>$0.38\/hour<\/strong><\/td><\/tr><tr><td>20B-32B<\/td><td>L40S<\/td><td>48 GB<\/td><td><strong>$0.92\/hour<\/strong><\/td><\/tr><tr><td>70B<\/td><td>RTX PRO 6000<\/td><td>96 GB<\/td><td><strong>$0.60\/hour<\/strong><\/td><\/tr><tr><td>70B+ or multiple large models<\/td><td>B200<\/td><td>192 GB<\/td><td><strong>$4.50\/hour<\/strong><\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">GPU availability varies by region due to demand. Check hPanel for the real-time availability of the GPU you want before deploying your instance.<\/p><h3 class=\"wp-block-heading\">2. Deploy the GPU instance<\/h3><p class=\"wp-block-paragraph\">Deploy the <strong>Ollama<\/strong> template from hPanel:<\/p><ol class=\"wp-block-list\">\n<li>Go to hPanel &rarr; <strong>Dev Tools<\/strong> &rarr; <strong>GPU<\/strong>.<\/li>\n\n\n\n<li>Select the GPU you want to use.<\/li>\n\n\n\n<li>Enter an instance name and select a region.<\/li>\n\n\n\n<li>Choose an instance size with at least <strong>2 CPU cores<\/strong>. Hostinger only provides app templates for this size or larger.<\/li>\n\n\n\n<li>Select the <strong>Ollama<\/strong> template.<\/li>\n\n\n\n<li>Add an SSH key if you want key-based access.<\/li>\n\n\n\n<li>Top up your credits if your balance isn&rsquo;t enough for the estimated runtime.<\/li>\n\n\n\n<li>Review the estimated runtime and click <strong>Deploy<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6aa20043e019e\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6aa20043e019e\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1988\" height=\"1470\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-deploy-instance-rtx-4090-ollama-template.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger GPU deployment page with RTX 4090 selected and Ollama template configured\" class=\"wp-image-156552\" title=\"hpanel-gpu-deploy-instance-rtx-4090-ollama-template\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-deploy-instance-rtx-4090-ollama-template.png\/w=1988,fit=scale-down 1988w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-deploy-instance-rtx-4090-ollama-template.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-deploy-instance-rtx-4090-ollama-template.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-deploy-instance-rtx-4090-ollama-template.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-deploy-instance-rtx-4090-ollama-template.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-deploy-instance-rtx-4090-ollama-template.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1988px) 100vw, 1988px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">Deployment takes several minutes. Click <strong>Manage<\/strong> after it finishes to open the instance dashboard.<\/p><figure class=\"wp-block-image size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\">3. Pull and run a model<\/h3><p class=\"wp-block-paragraph\">Pull and run your model by connecting to the instance via SSH, then using the <strong>ollama pull<\/strong> and <strong>ollama run<\/strong> commands.<\/p><p class=\"wp-block-paragraph\">In the instance dashboard in hPanel, you&rsquo;ll see your SSH command and password.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6aa20043e3dd9\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6aa20043e3dd9\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1750\" height=\"1516\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-instance-overview-ssh-command-password-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger hPanel GPU instance overview showing instance specs, Open WebUI URL, and SSH credentials\" class=\"wp-image-156553\" title=\"hpanel-gpu-instance-overview-ssh-command-password-highlighted\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-instance-overview-ssh-command-password-highlighted.png\/w=1750,fit=scale-down 1750w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-instance-overview-ssh-command-password-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-instance-overview-ssh-command-password-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-instance-overview-ssh-command-password-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-instance-overview-ssh-command-password-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/hpanel-gpu-instance-overview-ssh-command-password-highlighted.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1750px) 100vw, 1750px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">Open a terminal on your computer, paste the SSH command, and enter the password when prompted.<\/p><p class=\"wp-block-paragraph\">Once you&rsquo;re connected, run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ollama pull llama3.1:8b-instruct-q4_K_M\nollama run llama3.1:8b-instruct-q4_K_M<\/pre><p class=\"wp-block-paragraph\">The first command downloads Llama 3.1 8B Q4_K_M to the instance. The second starts the model and gives you a prompt where you can type a message and start chatting.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6aa20043e59a1\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6aa20043e59a1\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"208\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal.png\/w=1024,h=1024,fit=scale-down\" alt=\"Terminal output of ollama pull and ollama run downloading Llama 3.1 8B Q4_K_M\" class=\"wp-image-156558\" title=\"terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-pull-run-llama-3-1-8b-q4-k-m-terminal.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">The same <strong>ollama pull<\/strong> and <strong>ollama run<\/strong> commands work if you <a href=\"\/tutorials\/how-to-install-ollama\/\">install Ollama on a virtual private server (VPS)<\/a>.<\/p><h3 class=\"wp-block-heading\">4. Verify GPU acceleration<\/h3><p class=\"wp-block-paragraph\">Verify GPU acceleration with <strong>ollama ps<\/strong> to check where the model is loaded and <strong>nvidia-smi<\/strong> to confirm that the GPU is available to Ollama.<\/p><p class=\"wp-block-paragraph\">Leave the terminal running at the chat prompt. Open a second terminal window, connect to the same GPU instance through SSH, and run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ollama ps<\/pre><p class=\"wp-block-paragraph\">Check the <strong>PROCESSOR<\/strong> column. <strong>100% GPU<\/strong> means Ollama loaded the model entirely onto the GPU. A <strong>CPU\/GPU split<\/strong> means part of the model is using system RAM.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6aa20043e773f\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6aa20043e773f\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"125\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-ps-llama-3-1-8b-100-percent-gpu.png\/w=1024,h=1024,fit=scale-down\" alt=\"Terminal output of ollama ps showing Llama 3.1 8B loaded at 100% GPU with 32K context\" class=\"wp-image-156557\" title=\"terminal-ollama-ps-llama-3-1-8b-100-percent-gpu\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-ps-llama-3-1-8b-100-percent-gpu.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-ps-llama-3-1-8b-100-percent-gpu.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-ps-llama-3-1-8b-100-percent-gpu.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-ps-llama-3-1-8b-100-percent-gpu.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-ps-llama-3-1-8b-100-percent-gpu.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-ps-llama-3-1-8b-100-percent-gpu.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">Then, run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nvidia-smi<\/pre><p class=\"wp-block-paragraph\">Check that the NVIDIA GPU appears and that Ollama is listed among the running GPU processes.<\/p><h2 class=\"wp-block-heading\" id=\"h-ollama-cpu-vs-gpu-inference-benchmark\">Ollama CPU vs. GPU inference benchmark<\/h2><p class=\"wp-block-paragraph\">Benchmark Ollama on CPU vs. GPU by running the same model and prompt three times in each mode, then comparing the median generation speed. Use the same SSH terminal for the entire test.<\/p><p class=\"wp-block-paragraph\">First, exit the previous chat session and unload the model so both benchmarks start from a known state:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/bye<\/pre><p class=\"wp-block-paragraph\">Then run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ollama stop llama3.1:8b-instruct-q4_K_M<\/pre><p class=\"wp-block-paragraph\">Start with CPU-only mode. Run the following command with <strong>num_gpu<\/strong> set to <strong>0<\/strong>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -s http:\/\/127.0.0.1:11434\/api\/generate -d '{\n   \"model\": \"llama3.1:8b-instruct-q4_K_M\",\n   \"prompt\": \"Explain how DNS resolution works in at least 300 words.\",\n   \"stream\": false,\n   \"keep_alive\": \"10m\",\n   \"options\": {\n      \"num_ctx\": 8192,\n      \"num_predict\": 128,\n      \"temperature\": 0,\n      \"seed\": 42,\n      \"num_gpu\": 0\n   }\n}' | python3 -c 'import sys,json; d=json.load(sys.stdin); print(\"{:.2f} tokens\/s\".format(d[\"eval_count\"]\/(d[\"eval_duration\"]\/1e9)))'<\/pre><p class=\"wp-block-paragraph\">Then run this command and confirm that <strong>PROCESSOR<\/strong> shows <strong>100% CPU<\/strong>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ollama ps<\/pre><p class=\"wp-block-paragraph\">The run you just did is a warm-up, so ignore its result. Run the benchmark command three more times and record each <strong>tokens\/s <\/strong>figure.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6aa20043e9832\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6aa20043e9832\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1874\" height=\"420\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-cpu-curl-8-tokens-per-second.png\/w=1024,h=1024,fit=scale-down\" alt=\"CPU benchmark curl command output showing 8.42 tokens per second with num_gpu set to 0\" class=\"wp-image-156555\" title=\"terminal-ollama-benchmark-cpu-curl-8-tokens-per-second\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-cpu-curl-8-tokens-per-second.png\/w=1874,fit=scale-down 1874w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-cpu-curl-8-tokens-per-second.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-cpu-curl-8-tokens-per-second.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-cpu-curl-8-tokens-per-second.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-cpu-curl-8-tokens-per-second.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-cpu-curl-8-tokens-per-second.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1874px) 100vw, 1874px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">Next, unload the model again:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ollama stop llama3.1:8b-instruct-q4_K_M<\/pre><p class=\"wp-block-paragraph\">Run the same benchmark with <strong>num_gpu<\/strong> changed to <strong>-1<\/strong>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -s http:\/\/127.0.0.1:11434\/api\/generate -d '{\n   \"model\": \"llama3.1:8b-instruct-q4_K_M\",\n   \"prompt\": \"Explain how DNS resolution works in at least 300 words.\",\n   \"stream\": false,\n   \"keep_alive\": \"10m\",\n   \"options\": {\n      \"num_ctx\": 8192,\n      \"num_predict\": 128,\n      \"temperature\": 0,\n      \"seed\": 42,\n      \"num_gpu\": -1\n   }\n}' | python3 -c 'import sys,json; d=json.load(sys.stdin); print(\"{:.2f} tokens\/s\".format(d[\"eval_count\"]\/(d[\"eval_duration\"]\/1e9)))'<\/pre><p class=\"wp-block-paragraph\">Run <strong>ollama ps<\/strong> to confirm <strong>100% GPU<\/strong>, then repeat the three-run measurement.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6aa20043eb79f\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6aa20043eb79f\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"422\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-gpu-curl-20-tokens-per-second.png\/w=1024,h=1024,fit=scale-down\" alt=\"GPU benchmark curl command output showing 20.32 tokens per second with num_gpu set to -1\" class=\"wp-image-156556\" title=\"terminal-ollama-benchmark-gpu-curl-20-tokens-per-second\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-gpu-curl-20-tokens-per-second.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-gpu-curl-20-tokens-per-second.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-gpu-curl-20-tokens-per-second.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-gpu-curl-20-tokens-per-second.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-gpu-curl-20-tokens-per-second.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/terminal-ollama-benchmark-gpu-curl-20-tokens-per-second.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">Sort each set of three results from lowest to highest and use the middle value as the median:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Processor mode<\/strong><\/td><td><strong>Run 1<\/strong><\/td><td><strong>Run 2<\/strong><\/td><td><strong>Run 3<\/strong><\/td><td><strong>Median<\/strong><\/td><\/tr><tr><td>100% CPU<\/td><td>8.42 tokens\/s<\/td><td>8.44 tokens\/s<\/td><td>8.41 tokens\/s<\/td><td><strong>8.42 tokens\/s<\/strong><\/td><\/tr><tr><td>100% GPU<\/td><td>20.32 tokens\/s<\/td><td>22.86 tokens\/s<\/td><td>22.51 tokens\/s<\/td><td><strong>22.51 tokens\/s<\/strong><\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\">Divide the GPU median by the CPU median to calculate the speedup. For example, a CPU median of 8.42 tokens\/s and a GPU median of 22.51 tokens\/s gives 22.51 &divide; 8.42 = <strong>2.7&times; faster on the GPU<\/strong>.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Why use the median instead of the average?                <\/p>\n            <\/div>\n            <p class=\"protip__content\">One unusually fast or slow run skews the average. The median uses the middle result, making it more representative of typical benchmark performance.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-access-open-webui-for-ollama-on-hostinger-gpu\">How to access Open WebUI for Ollama on Hostinger GPU<\/h2><p class=\"wp-block-paragraph\">To access Open WebUI on Hostinger GPU, <strong>go to your instance dashboard in hPanel, then click the Ollama WebUI URL shown there<\/strong>.<\/p><p class=\"wp-block-paragraph\">The Open WebUI is a browser-based chat interface, letting you <a href=\"\/tutorials\/ollama-gui-tutorial\/\">use Ollama with a graphical user interface (GUI)<\/a> instead of running commands through the command line.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6aa20043ed5d9\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6aa20043ed5d9\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"1129\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/open-webui-llama-3-1-8b-chat-interface.png\/w=1024,h=1024,fit=scale-down\" alt=\"Open WebUI chat interface with Llama 3.1 8B Q4_K_M model selected and ready to use\" class=\"wp-image-156554\" title=\"open-webui-llama-3-1-8b-chat-interface\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/open-webui-llama-3-1-8b-chat-interface.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/open-webui-llama-3-1-8b-chat-interface.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/open-webui-llama-3-1-8b-chat-interface.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/open-webui-llama-3-1-8b-chat-interface.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/open-webui-llama-3-1-8b-chat-interface.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/09\/open-webui-llama-3-1-8b-chat-interface.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">If this is your first time accessing Open WebUI, you&rsquo;ll be asked to create an account. This account becomes the Open WebUI administrator.<\/p><p class=\"wp-block-paragraph\">Once you&rsquo;re logged in, select a model from the dropdown at the top of the chat screen and start a conversation. Any Ollama model you pulled earlier through SSH should appear there. You can also download a new one directly from Open WebUI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ollama GPU requirements range from about 3&#8209;4 GB of VRAM for a small 3B model to around 50 GB for [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/ollama-gpu-requirements\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":411,"featured_media":156551,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Ollama GPU requirements","rank_math_description":"Check Ollama GPU and VRAM requirements by model size, quantization, context length, and concurrency. Compare supported GPUs and test CPU vs. GPU performance.","rank_math_focus_keyword":"Ollama GPU requirements","footnotes":""},"categories":[22628],"tags":[],"class_list":["post-156543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting"],"hreflangs":[],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/156543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/411"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=156543"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/156543\/revisions"}],"predecessor-version":[{"id":156560,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/156543\/revisions\/156560"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/156551"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=156543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=156543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=156543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}