I choose an inference GPU by working backward from an acceptable answer, the memory needed to serve it, and the traffic it must survive. A model loading successfully clears only the first technical hurdle. It does not establish useful latency, reliable concurrency, or a sensible bill.
If you are deciding how to choose a GPU for inference on Beam, start with a workload brief before opening the hardware menu. I mean Beam at beam.cloud: the compute platform running your code and models.
Write down what the request actually needs
Consider a clinical transcript extractor: recorded speech becomes text, then a model returns the complaint, medication history, and follow-up timing as JSON. Project notes supplied for this article describe an initial large-model deployment and a proposed split into transcription and smaller-model extraction. I use that scenario to work through the decision; its performance figures are not a controlled benchmark.
For that service, I would write down:
Input: transcript length distribution, including the longest supported recording.
Output: required fields, missing-value rules, and maximum generated tokens.
Quality: field-level correctness against independently reviewed examples.
Traffic: simultaneous requests and gaps between bursts.
Deadline: acceptable completion time, including startup and queueing.
The complaint field might be short, but medication negation can change its meaning. I would include examples containing “not taking,” uncertain dates, corrections, and absent information. A smaller model earns its place by handling those cases, rather than by returning attractive JSON.
This also stops “medical task” from becoming an automatic argument for a 70B model. Neither parameter count nor valid formatting establishes suitability for a clinical workflow. Any decision affecting care needs its own validation and review boundary; this example concerns extraction infrastructure.
Estimate the weights, then budget the serving memory
For GPU memory requirements for LLM inference, I start with a deliberately incomplete calculation:
Weight bytes ≈ parameter count × bits per weight / 8
Serving memory = weights + KV cache + runtime allocationsThese are arithmetic examples using nominal parameter counts, not measured model footprints:
Nominal model | Weight precision | Weight-only baseline |
|---|---|---|
8 billion parameters | BF16, 16 bits | 16 GB, about 14.9 GiB |
8 billion parameters | 4 bits | 4 GB, about 3.7 GiB |
70 billion parameters | 4 bits | 35 GB, about 32.6 GiB |
GB here means a billion bytes; GiB means 1,073,741,824 bytes. Quantized checkpoints also carry scales, metadata, and sometimes higher-precision components. The four-bit row is a lower-bound starting point, not a promise that an entire server fits that allocation.
The KV cache stores attention information reused while generating tokens. Longer sequences and more active requests increase its requirements. Framework buffers, temporary activations, and execution workspaces also consume memory, as the Modular inference memory guide explains.
I would therefore treat a 24 GB GPU as a candidate for an 8B BF16 workload, then test the actual context limit and concurrency. I would not subtract the weight estimate and call every remaining byte available request capacity.

The same caution applies to utilization readings. Allocated VRAM describes memory occupancy; it does not measure useful compute utilization. Spare memory may be exactly what prevents a longer request from exhausting the worker. My target is a stable service within its limits, not a nearly full memory meter.
I would enforce the limits that made the test pass. If the service accepts unrestricted transcript lengths or allows more active requests than the test covered, the sizing result no longer describes that service. Admission limits, bounded queues, and a clear response for oversized inputs belong beside the GPU choice. Otherwise, one unusually long recording can invalidate an apparently comfortable memory budget.
Match the bottleneck to the way requests arrive
GPU VRAM for inference answers whether a configuration can fit. Performance also depends on memory bandwidth, arithmetic throughput, supported kernels, and how the serving engine schedules work. NVIDIA’s GPU performance background guide explains why different operations hit different resource limits.
For interactive text generation, I would distinguish prompt processing from token-by-token decoding. A long prompt followed by a short answer creates a different workload from a tiny prompt followed by a long response. One tokens-per-second number hides that difference.
Batch embedding jobs introduce another tradeoff: waiting to fill a batch can improve completed work per second while making an individual request wait longer. I would allow that delay for an overnight indexing job before accepting it in a live consultation interface.
My initial candidate list would look like this:
Workload shape | Candidate to investigate | Reason to move up |
|---|---|---|
Small classifier or sparse offline job | CPU baseline, then a smaller GPU | CPU misses the completion deadline |
Transcription or embedding batch | T4/L4-class capacity where supported | Memory, batch throughput, or deadline fails |
Short-context 7B–8B extraction | A10G/L4-class 24 GB capacity | Required context or concurrency exceeds capacity |
Large quantized model or demanding contexts | A100 80 GB-class capacity or larger | Quality requires that model, or measured capacity requires more memory |
These are starting points for GPU selection for inference workloads, not interchangeable performance tiers. Precision support and library compatibility can eliminate a candidate before timing begins. Model families also differ in their cache requirements, so parameter count alone cannot rank them.
Separate the pipeline only when it earns the complexity
For the transcript example, I would compare a combined worker with separate transcription and extraction workers. Splitting lets each stage use suitable hardware and scale independently. It also introduces another queue, data transfer, retry boundary, and place where work can fail.
A shorter extractor startup does not prove a faster complete request. If both stages start cold and run sequentially, the user waits for both startup periods, both inference stages, and the handoff. If one stage is already warm, that is a different experiment.
Beam’s cold-start documentation separates capacity discovery, image loading, and application initialization. It recommends caching model files and initializing shared state once per worker. A larger GPU does not itself require a larger image; the selected model and packaging decisions often change alongside it.

I would test the smaller extraction model with the same reviewed examples and explicit missing-value rules. Constrained generation can enforce output structure, but a schema-valid medication field can still be wrong. Agreement with the larger model is useful diagnostic information, not ground-truth accuracy.
If the smaller model misses important fields, I would inspect those failures before adding hardware. Possible remedies include clearer instructions, better examples, a different model, or a review step. If none meets the quality requirement, the larger model remains a legitimate candidate despite its cost.
Turn the shortlist into a repeatable comparison
Before deploying, I would run beam machine list. Beam’s GPU documentation distinguishes supported SDK names from live inventory. An old hardware table cannot guarantee serverless availability today. If I configure alternative GPUs, the workload must fit and run correctly on every allowed option.
For LLM inference GPU sizing, my Deployment Notebook would record these inputs before recording a winner:
Model revision, quantization, engine version, GPU, CPU/RAM
Prompt template, input/output limits, concurrency, cache state
Reviewed evaluation set and acceptance criteria
Cold completion time; warm completion time; queue delay
Peak memory; failures; completed and accepted requests
Billable durations, current rates, retries, idle timeI would repeat the same request set across candidates, including the longest supported inputs and expected bursts. I would report sample counts and keep cold and warm results separate. A P90 from a handful of calls is too fragile to become a confident production promise.
I would also separate two questions in the notebook. To compare GPUs, hold the model, precision, engine, and request set steady wherever the hardware supports them. To compare complete solutions, allow the model and architecture to change, then judge quality, completion time, and cost together. Replacing a 70B model with an 8B model while splitting the pipeline is a solution comparison. It cannot establish how much faster one GPU is than another.
For cost, I would divide the full workload charge by accepted completed requests. That includes both stages, failed attempts, retries, and paid warm capacity. I would use the current Beam pricing for the chosen resource configuration rather than treating GPU hourly price as the entire deployment cost.
Keeping a worker warm can rescue latency while making an infrequent feature expensive. If cold completion misses the deadline and warm capacity exceeds the budget, I would consider an asynchronous workflow or a suitable hosted API before endlessly resizing GPUs.
Start your next comparison with one notebook line: model revision, longest input, concurrency, quality threshold, and completion deadline. Those five entries tell you what the GPU must prove.
No letters yet — be the first to write.