Running a language model for your own product is mostly a memory problem. If you choose a GPU with enough memory, the rest is easy to tune. If you choose one with too little, the model will not load. This guide gives you a simple method to choose a plan before you pay for it.
Step 1: Estimate the memory for the weights
The weights are the file that holds the model. Their size depends on the number of parameters and on the precision. Precision means how many bits are used to store each number.
- At 16-bit precision, each parameter takes 2 bytes.
- At 8-bit precision, each parameter takes 1 byte.
- At 4-bit precision, each parameter takes about half a byte.
So a model with 7 billion parameters needs about 14 GB at 16-bit precision. At 4-bit precision it needs a little more than 3.5 GB, because some parts of the model stay in higher precision. A model with 70 billion parameters needs about 140 GB at 16-bit precision. These are estimates. Always check the file size of the model you want to run.
Step 2: Add memory for the working state
The weights are not the only thing in video memory (VRAM). While the model answers requests, it keeps a cache for each active conversation. This is often called the KV cache. It grows with two things: the length of the text and the number of requests handled at the same time.
A simple rule: leave at least 20 to 30 percent of VRAM free after loading the weights. If you plan long prompts or many users at once, leave more. You can measure the real use in a test with nvidia-smi:
nvidia-smi --query-gpu=memory.used,memory.total --format=csvStep 3: Decide how much precision you need
Lower precision saves memory and often makes the model faster. It can also lower the quality of answers a little. The effect is different for each model and each task. Test with your own prompts. Do not trust a general claim, including this one. If 8-bit gives answers that are good enough for your use, you can choose a smaller and cheaper plan.
Step 4: Think about speed
Two numbers matter to users.
- Time to first word. This depends on how fast the GPU reads your prompt.
- Words per second. This depends mainly on how fast the GPU can read its own memory.
For a single user, a plan with fast memory feels faster. For many users, you want to serve several requests together. Serving software that batches requests can raise the total output of one GPU a lot, as long as the cache fits in memory. That is another reason to leave free VRAM.
Step 5: One big GPU or several
A model that is larger than one GPU can be split over several GPUs on the same server. This works, but it adds complexity, and the GPUs must talk to each other. If your model fits on one GPU, use one GPU. If it does not fit, choose a configuration with several GPUs, and check that your serving software supports splitting a model.
Several GPUs can also run several copies of a smaller model. That helps when you have many users.
Step 6: Plan the disk
Model files are large. A server needs space for the weights, for any other versions you test, and for logs. Choose a disk at least two to three times the size of the model files. Storage is charged by the second while the server exists, so do not choose far more than you need.
A simple test routine
- Pick the smallest plan that seems to fit your model, using steps 1 and 2.
- Deploy it from Console → Deploy with an LLM template.
- Load the model and send realistic prompts, with the longest text you expect.
- Watch memory with
nvidia-smi. - Measure the time to first word and the words per second with a script of your own.
- If memory is tight, move to a larger plan or a lower precision. If memory is very loose, try a smaller plan.
- Stop the server when the test is finished.
Because you pay by the second, a test of an hour or less costs little. Check the hourly price on the review step of the deploy wizard and multiply by the hours you expect to use (half an hour is 0.5).
Common mistakes
- Counting only the weights. The cache and the software overhead also need memory.
- Choosing only by GPU name. The same name can come with different memory sizes. Read the VRAM number on the plan.
- Leaving a test server running. A running server is charged by the second, all the time it runs. Stop it, or destroy it if you no longer need the disk.
- Testing with short prompts. Short prompts hide the memory use of long conversations.
Summary
Estimate the weights, add working memory, test with real prompts, and choose the smallest plan that gives you headroom. If you are not sure, send your model name and expected load to support, and we will help you choose.
Try it on a real GPU server
Create a free account and add a balance from $10. Servers are billed by the second, and the review step shows the price per hour before you request one.
Related guides
- Jupyter notebook on a cloud GPU in 5 minutesStart JupyterLab on a rented GPU from your browser: no drivers, no terminal and no SSH key. Check the GPU, install packages, keep your files and stop paying when done.
- H100 and A100 by the hour: what it costs, when it paysHourly prices for A100, H100 and H200 servers from our live price list, worked cost examples, and how to tell when a big GPU is worth it over a cheaper card.
- How to run Stable Diffusion and FLUX on a cloud GPUGenerate images with Stable Diffusion, SDXL or FLUX on a rented GPU: pick the right image template, size the GPU, load your checkpoint and pay only while it runs.