Introduction
Every AI project eventually runs into the same question: which GPU should this run on? It sounds like a hardware detail. In practice it decides how long your training runs take, how much your monthly infrastructure bill is, and whether your model can be served at all without falling over.
Get it wrong in one direction and you hit out-of-memory errors halfway through a fine-tuning job, or your inference endpoint queues requests until users give up. Get it wrong in the other direction and you are paying data-center rates for a card that sits at 12% utilisation.
There is no single answer. Choosing the right GPU for your AI project comes down to six things: the workload you are running, the size of your model, how much VRAM it needs, the throughput or latency you have to hit, what you can afford, and how much you expect all of that to grow. This guide walks through each one, with practical numbers, comparison tables, and a checklist you can actually use before you launch anything.
If you would rather skip the hardware purchase entirely, NevTan Cloud GPU Instances give you on-demand H100, A100, and other GPUs billed by the hour, so you can test a configuration before committing to it.
What Is a GPU and Why Is It Important for AI?
A GPU (Graphics Processing Unit) is a processor built to run thousands of simple calculations at the same time. That single property is why it became the default hardware for artificial intelligence.
Parallel processing in plain terms
A CPU is like a small team of highly skilled specialists. Each one is fast, flexible, and good at complicated sequential work. A GPU is like a factory floor with thousands of workers who each do one simple, repetitive task simultaneously.
Neural networks are almost entirely matrix multiplication. Multiplying two large matrices means doing millions of small multiply-and-add operations that do not depend on each other. That is exactly the shape of problem a factory floor solves faster than a team of specialists.
Why training and inference both benefit
Training pushes batches of data through the network, calculates how wrong the output was, and adjusts millions or billions of weights. It repeats this thousands of times. Parallel hardware turns weeks into hours.
Inference runs the forward pass only, but at scale. Serving a large language model means holding the full weights in memory and streaming tokens out fast enough that a human does not notice the wait.
GPU vs CPU for AI workloads
Factor | CPU | GPU |
|---|---|---|
Core count | Typically 8–128 powerful cores | Thousands of simpler cores |
Best at | Sequential logic, branching, orchestration | Parallel matrix and tensor math |
Memory | Large system RAM, lower bandwidth | Smaller VRAM, far higher bandwidth |
AI training | Workable for tiny models only | Standard choice |
AI inference | Fine for small classical ML models | Needed for most deep learning and LLMs |
Cost per unit of AI throughput | High | Much lower |
CPUs still matter. They handle data loading, preprocessing, orchestration, and plenty of classical machine learning. A poorly configured CPU or slow storage will starve an expensive GPU and leave it idle. But for deep learning, the GPU does the heavy lifting.
Key Factors to Consider When Choosing a GPU
1. VRAM (GPU memory)
VRAM is the hard constraint. Model weights, activations, optimizer states, and the KV cache all live there. If your workload does not fit, it does not run, no matter how fast the chip is. This is the number to check first.
2. Compute performance
Measured in TFLOPS (trillions of floating-point operations per second) at a given precision. Useful for rough comparison, misleading on its own. Vendor figures are theoretical peaks under ideal conditions, and some are quoted with sparsity enabled, which doubles the headline number but only applies to models that meet specific structural conditions.
3. CUDA cores and Tensor Cores
CUDA cores handle general parallel compute. Tensor Cores are dedicated units for the mixed-precision matrix operations that dominate deep learning, and they are where most modern AI throughput actually comes from. Two GPUs with similar CUDA core counts can differ enormously in AI performance depending on their Tensor Core generation.
4. Memory bandwidth
How fast data moves between VRAM and the compute units, measured in GB/s or TB/s. For LLM inference at small batch sizes this often matters more than raw compute, because generating each token requires reading the model weights out of memory. The gap is real: NVIDIA's H200 datasheet lists 4.8 TB/s of bandwidth against 3.35 TB/s on the H100 SXM, and that difference shows up directly in tokens per second.
5. Numerical precision (FP32, FP16, BF16, FP8, FP4)
Lower precision means smaller memory footprint and higher throughput, with some loss of numerical range or accuracy.
FP32 — full precision, used as a baseline and for numerically sensitive operations
FP16 / BF16 — the standard for modern training; BF16 has better range and is more stable
FP8 — increasingly common for inference and some training on recent data-center hardware
FP4 — supported on the newest Blackwell-generation Tensor Cores for aggressive inference optimisation
Check that the GPU you choose supports the precisions your framework and model actually use.
6. Power consumption and cooling
Data-center GPUs draw serious power. NVIDIA lists the H200 SXM at up to 700W configurable TDP, and the consumer RTX 5090 at 575W. If you are buying hardware, that dictates your PSU, chassis airflow, and in some cases your electrical supply. If you are renting, it is already handled.
7. Multi-GPU scalability
One large GPU is usually simpler and often faster than several small ones, because splitting a model across devices adds communication overhead. Go multi-GPU when a single card genuinely cannot hold the workload, or when you need more aggregate throughput.
8. PCIe vs NVLink
PCIe is the standard interconnect. NVLink is a much faster direct GPU-to-GPU link available on certain data-center cards, offering up to 900 GB/s between GPUs on H200-class hardware. For distributed training with frequent gradient synchronisation, that interconnect can be the bottleneck rather than the GPUs themselves.
9. Software and framework compatibility
Your GPU needs to be supported by your framework, your driver stack, your container images, and your serving layer. This is where ecosystems matter more than specs. Verify support for your exact PyTorch or TensorFlow version, your CUDA or ROCm version, and any serving library such as vLLM or TensorRT.
10. Cost and total cost of ownership
Purchase price is only part of it. Owned hardware adds power, cooling, rack space, networking, replacement, and staff time. Rented capacity adds ongoing hourly cost but removes almost all of the rest. TCO, not sticker price, is the number that matters.
How Much VRAM Does Your AI Project Need?
As a rough starting point, VRAM requirements fall into four bands:
VRAM | Typical use | Examples |
|---|---|---|
8–12 GB | Learning, small experiments, lightweight models | Small CNNs, classical ML with GPU acceleration, tiny quantized LLMs |
16–24 GB | Development, computer vision, moderate workloads | Image models, mid-size fine-tuning with LoRA, small LLM inference |
32–48 GB | Serious training and production inference | Larger vision models, mid-size LLM serving, multi-user inference |
80 GB+ | Large language models and enterprise workloads | Full-precision large model inference, large-scale training, long-context serving |
A useful mental model for LLMs: a model needs roughly two bytes per parameter at FP16, so a 7B model needs about 14 GB just for weights, before activations and KV cache. Quantise it to 4-bit and that drops to roughly 4 GB. Training the same model needs several times more than inference, because you also store gradients and optimizer states.
Actual requirements depend on model architecture, batch size, precision, context length, quantization, and whether you are training or serving. Treat the table as a starting point, then measure. Always leave headroom. A workload that exactly fills VRAM will fail the moment a user sends a longer prompt.
Choosing a GPU Based on Your AI Workload
Machine learning
Classical ML (gradient boosting, regression, clustering) often runs acceptably on CPU. GPU acceleration helps on large tabular datasets. Modest VRAM is usually enough; prioritise fast data loading over exotic hardware.
Deep learning
Prioritise Tensor Core generation and VRAM. Mixed precision training is standard, so BF16 support and enough memory for your batch size matter more than FP32 peak numbers.
Computer vision
Image and video models are activation-heavy. Batch size and input resolution drive VRAM consumption more than parameter count does. 16–24 GB handles a lot of production vision work; higher resolutions and 3D or video models push into the 48 GB range.
Natural language processing
Transformer encoders for classification, NER, or search are far smaller than generative LLMs. Many run comfortably in 16–24 GB. Fine-tuning is usually feasible on a single mid-range card.
Large language models (LLMs)
VRAM and memory bandwidth dominate. Long context windows expand the KV cache substantially, and that cache grows with both context length and concurrent users. If you are serving a 70B model, memory capacity determines whether it runs on one GPU or needs several. Our guide to hosting large language models covers the serving side in more depth.
Generative AI (images, audio, video)
Diffusion models are compute-heavy relative to their parameter count. Resolution, number of denoising steps, and batch size drive both memory use and generation time. Video generation is dramatically more demanding than still images.
AI inference
Optimise for latency, throughput per dollar, and enough memory to hold the model plus its cache. Raw training-grade compute is often wasted here. See our notes on monitoring AI inference performance for what to measure once it is live.
AI model training
The most demanding case. You need memory for weights, gradients, optimizer states, and activations at once, plus fast interconnect if you are scaling across GPUs.
Fine-tuning
Full fine-tuning has training-scale requirements. Parameter-efficient methods such as LoRA and QLoRA cut memory dramatically, which is why fine-tuning a 7B model is realistic on a single 24 GB card. If you would rather not manage the hardware at all, managed fine-tuning runs the job for you and produces a deployable artifact. Deciding whether you need it at all? See when to fine-tune vs prompt engineering.
RAG applications
Retrieval-augmented generation splits work between retrieval and generation. The generation model needs the GPU; retrieval usually does not. RAG also pushes long contexts into the model, which increases KV cache demand at inference time.
Embedding and vector workloads
Embedding models are small and fast. They batch extremely well, so throughput per dollar matters more than peak capability. Modest GPUs handle large embedding pipelines efficiently, and vector search itself is typically CPU and memory bound rather than GPU bound.
GPU Selection by Project Size
Who you are | What to prioritise |
|---|---|
Individual developer | Low cost, flexibility, ability to stop paying when idle. Hourly cloud GPUs or a single consumer card. |
Student or researcher | Access over ownership. Short bursts of high-end hardware beat permanently owning something mid-range. |
Startup | Preserve cash and stay flexible. Rent until your workload is proven and steady. |
Small business | Predictable monthly cost, minimal ops burden. Managed inference often beats managing GPUs. |
Growing AI team | Repeatable environments, shared access, per-project cost visibility, room to scale up. |
Enterprise | Reliability, security posture, compliance, multi-GPU capacity, and clear governance. See cloud infrastructure for enterprise. |
Consumer vs Professional vs Data Center GPUs
Attribute | Consumer | Professional / Workstation | Data Center |
|---|---|---|---|
VRAM | Lower (commonly 8–32 GB) | Mid to high | Highest (80 GB and above) |
Memory type | GDDR | GDDR / HBM depending on model | HBM, much higher bandwidth |
Reliability features | Consumer-grade | Certified drivers, ECC on many models | ECC, RAS features, built for continuous load |
Continuous operation | Not designed for 24/7 datacenter duty | Better sustained operation | Designed for it |
Multi-GPU scaling | Limited | Moderate | NVLink and cluster-scale interconnect |
Enterprise features | None | Some | MIG partitioning, confidential computing, management tooling |
Licensing | Consumer terms may restrict data-center deployment | Workstation licensing | Full data-center licensing |
Price | Lowest | Middle | Highest |
For reference on the gap: NVIDIA's RTX 5090 offers 32 GB of GDDR7 at 1,792 GB/s, while the H200 offers 141 GB of HBM3e at 4.8 TB/s. Same vendor, entirely different class of problem.
Practical guidance: consumer cards are excellent for learning, prototyping, and small production workloads. Data-center GPUs earn their price when you need large VRAM, sustained 24/7 operation, multi-GPU scaling, or enterprise features. Renting data-center hardware by the hour is often the cheapest way to access that tier.
NVIDIA vs AMD vs Other GPU Options
NVIDIA and CUDA
CUDA has the deepest ecosystem in AI. Nearly every framework, serving library, kernel optimisation, and tutorial assumes it works. That maturity reduces friction and is the main reason NVIDIA remains the default. Cloud availability is also broadest here.
AMD and ROCm
AMD's Instinct line is genuinely competitive on memory. The MI300X datasheet lists up to 192 GB of HBM3 with 5.3 TB/s peak theoretical bandwidth, which is more capacity than any Hopper-generation NVIDIA card. AMD's documentation describes full-stack compatibility with ROCm 7.0 and above, integrating with PyTorch and Hugging Face. ROCm has matured substantially, and many mainstream models now run with little or no code change. The remaining gaps tend to appear in niche custom kernels and less common libraries, so verify your specific stack before committing.
Other options
Google TPUs are available through Google Cloud and work well with JAX and TensorFlow. Intel, AWS (Trainium and Inferentia), and various specialist accelerators occupy narrower niches. These can be excellent within their ecosystem and awkward outside it.
No manufacturer is universally best. The right question is which ecosystem supports your framework, your models, your serving stack, and your budget, in the regions where you need capacity.
GPU for AI Training vs AI Inference
Dimension | Training | Inference |
|---|---|---|
Primary constraint | Compute and memory capacity | Memory bandwidth and latency |
Memory needs | Weights + gradients + optimizer states + activations | Weights + KV cache |
Precision | BF16/FP16 mixed precision typical | FP8, INT8, or 4-bit quantization common |
Duration | Long, bursty, schedulable | Continuous, latency sensitive |
Interconnect | Critical for multi-GPU | Less critical unless the model is sharded |
Cost model | Cost per completed run | Cost per request or per million tokens |
Training a model can require several times the memory of serving the same model, because the optimizer keeps its own copies of state. This is why teams routinely train on 80 GB-class hardware and serve on something considerably smaller.
Quantization is the biggest lever on the inference side. Moving from FP16 to 4-bit reduces weight memory by roughly 4x, which can take a model from needing multiple GPUs to fitting comfortably on one, usually with modest quality impact when done well.
Cloud GPU vs Buying Your Own GPU
Factor | Buying hardware | Cloud GPU |
|---|---|---|
Upfront cost | High capital expense | None |
Ongoing cost | Power, cooling, space, maintenance | Per-hour or per-token usage |
Maintenance | Yours: drivers, failures, replacement | Handled by the provider |
Scalability | Fixed until you buy more | Scale up or down on demand |
Flexibility | Locked to the hardware you bought | Switch GPU types per workload |
Performance | Full dedicated performance | Comparable, depends on the offer |
Availability | Guaranteed once you own it | Varies by region and demand |
Best for | Steady 24/7 utilisation over years | Variable, bursty, or early-stage workloads |
Renting makes more sense when your workload is intermittent, your model requirements are still changing, you need occasional access to expensive hardware, you want to compare GPU types before committing, or your team would rather ship features than maintain servers.
Buying makes more sense when utilisation is consistently high over a long period, you have strict data residency requirements that cloud cannot meet, and you have the operational capacity to run the hardware properly.
On NevTan Cloud, GPU pricing is dynamic rather than a fixed table. The catalog shows the current per-hour price for each machine based on real-time availability, and usage is metered hourly against your credit balance. You can browse offers filtered by hardware, GPU count, and budget, then launch an instance with SSH access, or start a model server you can chat with directly from the console. New to the model? Start with our beginner's guide to GPU cloud computing.
There is also a third option worth naming: not managing a GPU at all. Hosted AI inference bills per token instead of per GPU-hour, with no instance to start or stop. For spiky or low-volume workloads against an already-hosted model, that is usually the cheaper path.
How to Calculate GPU Requirements for Your AI Project
Step 1 — Identify the workload. Training, fine-tuning, inference, embeddings, or a mix. These have different profiles and should be sized separately.
Step 2 — Determine model size. Parameter count for language models, architecture and input resolution for vision models.
Step 3 — Estimate VRAM. Start with roughly 2 bytes per parameter at FP16 for weights. Add KV cache for LLMs, which scales with context length and concurrency. Add activation memory, which scales with batch size. For training, multiply substantially to account for gradients and optimizer states. Add 20–30% headroom.
Step 4 — Select precision. Decide between FP32, BF16/FP16, FP8, or 4-bit quantization. This changes your memory estimate directly and constrains which hardware generations are viable.
Step 5 — Define training vs inference requirements. A training run can be scheduled and interrupted. A production endpoint cannot. This affects whether spot capacity is usable.
Step 6 — Estimate workload volume. Requests per second, tokens per request, peak versus average, and how much of the day the GPU will actually be busy.
Step 7 — Calculate performance requirements. Work backwards from a target: acceptable latency per request, or a training run that must finish overnight. That gives you the throughput you need.
Step 8 — Compare cost and availability. Check per-hour rates and whether the hardware is available in your target region. Availability and price both vary by region and provider.
Step 9 — Plan for growth. Assume your model gets larger and your traffic increases. Choose an option that gives you somewhere to go.
Common GPU Selection Mistakes
Choosing on price alone. A cheaper GPU that doubles your training time can cost more overall.
Ignoring VRAM. The most common and most painful mistake. Insufficient memory means the job simply does not run.
Overbuying. Buying enterprise hardware for a workload that runs a few hours a week.
Underestimating inference demand. Teams size carefully for training, then discover serving is the real recurring cost.
Ignoring software compatibility. Confirm driver, framework, and serving library support before you commit.
Not considering cloud alternatives. Hourly GPUs remove a large capital decision from an early-stage project.
No plan for model growth. Today's 7B model is next quarter's 70B model.
Comparing on TFLOPS only. Theoretical peaks rarely predict real AI throughput. Memory bandwidth, VRAM, and software maturity often matter more, and sparsity-inflated figures make cross-vendor comparison worse.
GPU Selection Checklist
Before you launch or buy, confirm:
[ ] Workload type identified (training, fine-tuning, inference, embeddings)
[ ] Model size and architecture known
[ ] VRAM estimated, with 20–30% headroom
[ ] Precision decided (FP32 / BF16 / FP8 / quantized)
[ ] Memory bandwidth adequate for latency targets
[ ] Framework, driver, and serving library compatibility verified
[ ] Single vs multi-GPU decided, interconnect checked if multi
[ ] Expected utilisation estimated (hours per day, requests per second)
[ ] Total cost compared across buying and renting
[ ] Regional availability confirmed
[ ] Power and cooling checked if buying hardware
[ ] Scaling path defined for a larger model or more traffic
[ ] Monitoring in place to verify real utilisation after launch
Example GPU Selection Scenarios
Running a small LLM locally. What matters: enough VRAM for the quantized model plus context. A 7B model at 4-bit fits in roughly 4–6 GB of weights, so a 12–16 GB card gives working room. Bandwidth affects tokens per second more than compute does.
Fine-tuning an open-source model. What matters: memory for weights plus gradients plus optimizer states. LoRA and QLoRA cut this dramatically, making 24 GB viable for 7B-class models. Full fine-tuning at larger sizes needs 80 GB-class hardware or multiple GPUs.
Building a computer vision application. What matters: activation memory driven by resolution and batch size, plus fast data loading so the GPU is not starved. 16–24 GB covers a wide range; high-resolution or video work pushes higher.
Developing a RAG chatbot. What matters: VRAM for the generation model and a KV cache sized for long retrieved contexts. Embedding and retrieval add little GPU load. See create your first RAG collection for the retrieval layer.
Running AI inference for a SaaS product. What matters: throughput per dollar, tail latency under concurrency, and the ability to scale with traffic. Continuous batching and quantization usually deliver more than upgrading the GPU. Related: how to scale AI applications on demand.
Training a large AI model. What matters: maximum VRAM, high-bandwidth interconnect between GPUs, sustained thermal performance, and a framework stack that handles distributed training cleanly. This is where NVLink-class interconnect and data-center hardware genuinely justify their cost.
How to Optimize GPU Costs
Right-size before you scale. Measure actual utilisation. Most teams find their GPU is under-used, not over-subscribed. Our post on GPU utilisation and cost optimisation goes deeper.
Quantize. 8-bit and 4-bit inference cuts memory substantially and often lets you use a smaller, cheaper GPU.
Use mixed precision for training. BF16 or FP16 reduces memory and increases throughput with minimal accuracy impact.
Try a smaller model first. A well-fine-tuned small model frequently beats a poorly prompted large one, at a fraction of the cost.
Share GPUs across workloads. Batching multiple jobs or using GPU partitioning raises utilisation.
Use spot or preemptible capacity for interruptible work. Training runs with checkpointing suit this well. Production endpoints do not.
Autoscale inference so you are not paying for peak capacity during quiet hours.
Stop instances you are not using. Hourly billing accrues whether or not the GPU is doing work. Shut down finished training runs and idle model servers.
Match the billing model to the workload. Steady, predictable load favours per-hour GPU instances. Spiky or low-volume load favours per-token hosted inference.
Monitor continuously. Container metrics tell you whether you bought the right thing.
Future-Proofing Your GPU Investment
AI workloads have grown in model size, context length, and multimodality every year, and there is no sign of that reversing. When choosing today:
Leave VRAM headroom. It is the constraint that bites first and the hardest to work around.
Prefer newer numerical precisions. FP8 and FP4 support extends the useful life of hardware as optimisation techniques mature.
Weight the software ecosystem heavily. A well-supported GPU stays useful longer than a faster one with thin tooling.
Check the multi-GPU path before you need it, not after.
Keep cloud scalability as an option even if you own hardware. Hybrid setups let you handle bursts without over-provisioning.
Revisit the decision periodically. Hardware generations, prices, and availability move fast enough that an annual review is reasonable.
Renting has a structural advantage here: you are not locked into a depreciating asset, and moving to newer hardware is a configuration change rather than a purchase cycle.
Conclusion
Choosing the right GPU for your AI project is a sizing exercise, not a shopping exercise. Start with VRAM, because it decides whether the workload runs at all. Then check memory bandwidth and compute against your latency and throughput targets. Then verify software compatibility. Then compare total cost, not sticker price, across owning and renting. Then leave room to grow.
There is no universally best GPU. There is a best fit for a specific workload, model size, performance target, budget, and growth plan. The teams who get this right are the ones who measure their actual requirements first and buy or rent against those numbers, rather than picking hardware by reputation.
If you want to test a configuration before committing to anything, NevTan Cloud GPU Instances let you launch H100, A100, and other GPUs by the hour, with pricing shown live in the catalog. Start free and size your workload against real hardware.
Frequently Asked Questions
What is the best GPU for AI?
There is no single best GPU for AI. The right choice depends on your workload, model size, VRAM requirements, latency targets, and budget. Data-center GPUs with 80 GB or more suit large language models and large-scale training; 16–24 GB cards handle most development, computer vision, and small-model work well.
How much VRAM is needed for AI?
8–12 GB covers small experiments, 16–24 GB covers most development and computer vision, 32–48 GB suits larger models and production inference, and 80 GB or more is typical for large language models and enterprise training. A rough rule for LLMs is 2 bytes per parameter at FP16, plus KV cache and activations, plus 20–30% headroom.
Is GPU or CPU better for AI?
GPUs are better for deep learning training and inference because they run thousands of parallel operations simultaneously. CPUs remain better for data preprocessing, orchestration, and many classical machine learning algorithms. Most real AI systems use both.
How many GPUs do I need for AI training?
One GPU is enough if the model, gradients, and optimizer states fit in its VRAM. You need multiple GPUs when the workload exceeds a single card's memory, or when you need to shorten training time. Multi-GPU adds communication overhead, so a single larger GPU is often simpler and faster than several smaller ones.
Is a consumer GPU enough for AI?
Often yes, for learning, prototyping, small-model fine-tuning, and modest production inference. Consumer GPUs are limited by VRAM, lack enterprise reliability features, are not designed for continuous data-center operation, and may carry licensing restrictions for data-center deployment.
Should I buy a GPU or use a cloud GPU?
Buy if utilisation will be consistently high for years and you can maintain the hardware. Use cloud GPUs if your workload is variable, your requirements are still changing, you need occasional access to expensive hardware, or you would rather avoid the capital expense and maintenance burden.
What GPU is best for running LLMs?
For LLMs, prioritise VRAM capacity and memory bandwidth. Small quantized models run on 12–16 GB consumer cards. Mid-size models need 24–48 GB. Large models at full precision need 80 GB or more, or multiple GPUs with fast interconnect. Quantization can move a model down a tier.
What is the difference between GPU training and inference?
Training computes gradients and updates weights, requiring memory for weights, gradients, optimizer states, and activations at once. Inference only runs the forward pass, needing memory for weights and the KV cache. Training is compute and memory intensive; inference is more sensitive to memory bandwidth and latency.
Does more VRAM always mean better AI performance?
No. VRAM determines whether a workload fits, not how fast it runs. Once your model fits comfortably, additional performance comes from memory bandwidth, Tensor Core generation, and software optimisation. Extra VRAM beyond what you need adds cost without adding speed.
s product lines change.
