Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

GPU memory guide

How much VRAM common workloads need, what the Apidly performance index means and how to read a configuration.

Last updated November 21, 20263 min read
View as Markdown

This page goes deeper than Choose a GPU. The numbers below are rules of thumb, not promises: real use depends on your software, context length and batch size. When unsure, start with a bigger GPU for a short test. You pay by the second.

Estimate memory

At 16-bit precision a model needs about 2 GB of VRAM per billion parameters for its weights. Weights are not everything: add room for the working memory of each request and for the framework. Lower-precision versions of a model (8-bit or 4-bit) need roughly half or a quarter of the weight memory, with some loss of quality.

Workload Rough VRAM for weights Notes
Small language model, 7B to 8B parameters about 16 GB at 16-bit, about 5 GB at 4-bit Leave room for long prompts
Mid-size language model, 13B to 14B about 28 GB at 16-bit, about 8 GB at 4-bit
Large language model, 70B about 140 GB at 16-bit, about 40 GB at 4-bit Often needs several GPUs at 16-bit
Image generation (diffusion) commonly 8 to 24 GB Higher resolutions and bigger models need more
Fine-tuning a language model well above inference Gradients and optimizer state multiply memory; adapter methods save a lot
Training from scratch as much as you can get, on several GPUs

Use the GPU memory filter in Deploy to hide configurations that are too small. A template can also set a minimum; a smaller GPU is marked and cannot be selected.

Several GPUs

The VRAM of a configuration is shown in total and per GPU. A model that does not fit on one GPU can be split across several, but only if your software supports it. The memory of the GPUs is not one pool for every program.

Apidly performance index

Configurations can show the Apidly performance index, our relative index for comparing GPUs of different kinds: one RTX 3090 = 100, higher is faster. It comes from benchmark runs of the machines behind a configuration, not from our own measurements. Use it with care:

  • It is not a promise for your workload.
  • Some configurations have no index. They sort last and do not pass a minimum-index filter.
  • Sort by offers Performance index, high to low and Performance per dollar, which is the index divided by the hourly price.
  • The Apidly performance index filter offers a few round thresholds taken from the indexes in the current list.

Memory size and index answer different questions: whether a job fits, and how fast it runs once it does.

Read a configuration

  • From $X on a GPU group is the lowest hourly price among its configurations.
  • RAM shown as "from N GB" is the smallest amount among the machines in that configuration. Machines in the same configuration can have more.
  • Network speed, Max CUDA version and Driver version are shown in the details when we know them. Check that your software works with the CUDA version.
  • Hosting class says whether the machine is in a Commercial data center or is an Independent host. Both are run by independent, verified hosting providers. Data-centre machines are a minority of the supply (about one in nine), and they are not a different product: the price is shown the same way.
  • Region groups machines by North America, Europe, Asia-Pacific or other regions.
  • Limited stock and Out of stock change quickly. See Prices and availability.

A quick way to decide

  1. Find the model's size in billions of parameters, and the precision you will use.
  2. Multiply by 2 GB for 16-bit, 1 GB for 8-bit, 0.5 GB for 4-bit.
  3. Add 20 to 30 percent for requests and the framework, more for long prompts or large batches.
  4. Pick the smallest configuration with at least that much VRAM, then sort by price or performance per dollar.

Ready to try it?

Create a free account and add credit when you want to start a server. The smallest top-up is $10.

Create a free account

Was this helpful?

Still stuck? Contact us