Model sizes and specs

Parameters, context window, quantisation and GPU memory, and a way to read a model card without guessing.

Updated CompTech Team

Two checkpoints from the same family can differ by a factor of ten in memory, in speed, and in what they are allowed to be used for. The model card is the page that says which one you have. This lab is how to read it, and how to turn the numbers into a GPU guess that you then check on the hardware.

The background terms are in What is an AI model. Choosing among cards is How to choose a model.

The numbers that matter

Field What it tells you
Parameters How many weights. For a mixture-of-experts model, record total and active. Active drives compute per token. Total drives the download.
Context window Maximum tokens in the prompt plus the completion. A "128k" model does not automatically answer well at 128k. Long context is a capability you test.
Precision FP16/BF16 is 2 bytes per parameter. FP8 is 1. INT8 is about 1. INT4 is about half a byte. The card's file size beats this arithmetic when they disagree.
Languages Which languages were in training, and which the maker actually claims. "Multilingual" with no Bangla evaluation is a hypothesis.
Licence The text that applies to this file. Link it from the ticket that approves the deployment.
Training cutoff The date after which the model has not seen the world. RAG or a tool covers anything newer.

Ignore a chart of benchmark scores until you know what the test measures. That is Benchmarks.

Memory, as arithmetic

Weights are the part you can estimate before you have a GPU.

weight bytes ≈ parameters × bytes per parameter
7 billion × 2 bytes  ≈ 14 GB     FP16 / BF16
7 billion × 1 byte   ≈  7 GB     INT8 or FP8
7 billion × 0.5 byte ≈  3.5 GB   INT4
70 billion × 2 bytes ≈ 140 GB    FP16, more than one GPU

A 70B FP16 model does not fit in a 48 GB card. A 70B INT4 file might. The fit is the start of the conversation, not the end.

On top of the weights, the server needs:

  • KV cache, the memory of the tokens already processed. It grows with context length, with concurrent requests, and with the number of layers. A long RAG prompt with several users is often larger than people budgeted.
  • Activations and runtime, a smaller overhead for the framework itself (vLLM, NIM, llama.cpp).
  • Headroom. A card at 100 percent allocation fails the next request instead of slowing down.

A practical check, once the model is loaded:

# On a GPU node, or inside the serving pod
nvidia-smi --query-gpu=memory.used,memory.total --format=csv

If memory.used is already near memory.total with one idle replica, you have no room for concurrency. Reduce context, reduce batch size, quantise, or add a GPU. The serving labs on OpenShift AI are where that replica is configured.

Quantisation

Quantisation stores the weights in fewer bits. The file gets smaller, inference gets cheaper, and some answers get worse. How much worse depends on the method and the task. Measure it on your test set. Do not adopt a 4-bit file because it loaded.

Form Where you meet it
FP16 / BF16 The usual training format. Heaviest, closest to what was trained.
FP8 Hopper-generation data-centre GPUs. A common serving format when the card supports it.
INT8 / INT4 (AWQ, GPTQ) Smaller files for data-centre GPUs. The method name belongs in the artefact name.
GGUF The format llama.cpp and many desktop tools use, with several quantisation levels in one family of files.

Keep the unquantised name and the quantised name as different revisions in your registry. Rolling back "the model" is impossible if both are called the same thing.

How to read a model card

Read top to bottom, and write down an answer to each. If the card is silent, the answer is "unknown", and unknown is a reason to test or to reject.

  1. What it is. Language, embedding, reranker, vision, speech. A card that blurs these is selling a bundle.
  2. Exact file. Repository, revision, quantisation, file size in GB. That size should be in the same range as the arithmetic above.
  3. Context length the maker trained, and whether a longer window is a serving-time extension (RoPE scaling, YaRN). Extensions need their own test. They are not the trained figure.
  4. Prompt format. Chat templates differ. A model served with the wrong template looks "stupid" and is misconfigured. vLLM and NIM apply a template; know which one.
  5. Languages and domains actually evaluated, not the prose in the introduction.
  6. Safety tuning. Was it trained to refuse, and which topics. A refusal policy you disagree with is still a behaviour you must test. Risks is where you decide your own.
  7. Licence and acceptable use, in the card or the repo, not in a summary.
  8. Known limits, which honest cards include: weak at arithmetic, weak at a language, saturates past N tokens. Believe these. They are the cheapest information on the page.

A worked guess

You want a 7 to 8 billion parameter instruct model, INT4, for an internal assistant with RAG, on one 24 GB GPU.

  • Weights around 4 GB. Plausible.
  • Context you will actually send: a system prompt, five chunks, a question. Often well under 8k tokens. The 128k headline is unused.
  • Several concurrent users grow the KV cache. Ten long prompts can be the thing that does not fit, not the weights.
  • Load it, run nvidia-smi, run ten parallel prompts from the test set, and write down latency and memory. That note replaces the guess.

A 70B model "because it scored higher" that forces four GPUs and a queue is a worse assistant than an 8B model that answers while the user is still looking. Quality still has to be good enough. The way to know is the test set, not the parameter count.

What's next

Benchmarks is what the public scores measure. Running models turns a fit into a server. Choosing a model puts the card into the rest of the decision.