Memory needed for Small / Medium / Large at 8K context

#1
by localllmrig - opened

A fit table from the three file sizes, for people deciding between Small, Medium and Large.
Need β‰ˆ file + KV at 8K (~0.54 GB; only 16 of 64 layers hold a full KV cache) + ~0.8 GB. Estimates.

File Size Need @8K (est.) 8 GB 12 GB 16 GB 24 GB 32 GB Mac (unified)
Small 10.93 GB ~12.3 GB βœ— βœ— βœ“ βœ“ βœ“ 24 GB+
Medium 16.41 GB ~17.7 GB βœ— βœ— βœ— βœ“ βœ“ 32 GB+
Large 20.82 GB ~22.2 GB βœ— βœ— βœ— βœ“ βœ“ 36 GB+

So Small is the 16 GB option, and all three fit a 24 GB card at 8K (Large with about 1 GB to spare). Before pulling GGUF weights, you can also test 10 open models side by side for free in the browser (needs no account) on localLLMrig's / page. Corrections welcome.

Base Compute org

considering adding a β€œTiny” quant

@Lukas-bc a Tiny would fill the gap below Small. Rough targets with the same math (need β‰ˆ file + ~1.3 GB at 8K, estimates): a file of about 9–10 GB would bring 12 GB cards into range at 8K. For 8 GB cards the file would have to be ~6 GB, which is under 2 bits per weight for a 27B, so probably not worth it. Happy to add a row to the table if you publish it.

Sign up or log in to comment