Dataset Splitter
Split a dataset into training, validation and test files with a repeatable shuffle.
See the file size of every GGUF quant of a model, and which ones fit your memory.
The Quantization Size Calculator lists the file size of every GGUF quantization of a model, from F16 to IQ2_XS, using measured bits per weight, and highlights the highest-quality quant that fits your GPU or Mac with room for context.
Model repositories list a dozen quantizations of the same model — Q8_0, Q6_K, Q5_K_M, Q4_K_M, IQ3_XS and more — and the right download is the highest-quality one that still fits in your memory with room left for context. This calculator works that out for you.
Choose a model or enter any parameter count, pick your GPU or Mac, and every quantization is listed with its effective bits per weight, file size, size relative to F16, the memory it needs with context headroom, and whether it fits. The best quant that fits is highlighted, each row carries a note on the quality trade-off, and a key explains what the letters in the names mean.
Sizes use measured bits-per-weight averages rather than the number in the name, because k-quants mix precisions between tensors: Q4_K_M averages about 4.8 bits, not 4. That is why the estimates line up with the files you actually download.
Q4_K_M is sized at about 4.8 bits, matching the files you actually download.
The highest-quality quant that fits your memory is marked in green.
Choose a little, some or plenty of room for context on top of the weights.
Each level explains its trade-off, from lossless Q8_0 to heavily degraded Q2_K.
A key to K, S, M, L, IQ and legacy _0 and _1 suffixes.
Pick a model or type its parameter count in billions.
Select a GPU or Mac, or type the usable memory in gigabytes.
More headroom for long documents, less for short chats.
The highest quality that fits is marked in green.
Q4_K_M is the usual default and the best balance of size and quality. Use Q5_K_M or Q6_K if you have the memory, and only drop below four bits to fit a model that would not otherwise run.
Q4 is roughly four bits per weight, K means the k-quant method that mixes precisions between tensors, and M is the medium variant that keeps more tensors at higher precision than S.
Q8_0 is effectively lossless and Q6_K is very close. Q4_K_M loses a small amount that is rarely noticeable in chat. Below about 3.5 bits the degradation becomes clear.
Often a larger model at Q4 beats a smaller one at higher precision, but below three bits the larger model usually loses that advantage.
Importance-matrix quantizations, calibrated on sample text so the weights that matter most keep more precision. They are noticeably better than standard quants at very low bit widths.
What people who use the Quantization Size Calculator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Quantization Size Calculator. It takes half a minute and no account.
Write the first reviewSplit a dataset into training, validation and test files with a repeatable shuffle.
Validate a JSONL file line by line, and check fine-tuning datasets before you upload.
Write valid tool-calling JSON schemas without hand-editing braces.
Work out how much GPU memory a local LLM needs to run or fine-tune.
Build a Stable Diffusion negative prompt from the problems you keep getting.
Clean up a pasted chat log into a tidy transcript, Q&A pairs, JSON or CSV.
Estimate the cost and vector storage of embedding a document corpus for RAG.
Find the right resolution for SDXL, FLUX, DALL-E or Midjourney at any aspect ratio.