Phi-4 Hardware: What 12GB and 16GB Cards Can Hold
Microsoft's Phi-4 is a 14-billion-parameter model. Its model card describes a dense decoder-only Transformer with a 16K-token context window, released on December 12, 2024. Dense means every weight is read for every token, so the memory math is simple: at 4-bit it fits a 12 GB graphics card. Using the whole context window on that card is where it gets tight. The weights: about 10.4 GB at Q4 llmhardware.io sizes a model as parameters in billions × bytes per parameter × 1.2, plus 2 GB for the system. At Q4_K_M a weight takes about half a byte, so Phi-4 comes to about 10.4 GB. At 8-bit it is about 18.8 GB, and at FP16 about 35.6 GB. Ollama lists the default phi4 download at 9.1 GB, which is the file alone, before the runtime and the context take their share. That sorts the cards. An 8 GB card does not hold Phi-4 at Q4. A 12 GB card does, with a little room left. A 16 GB card such as the RTX 4060 Ti 16GB or RTX 5060 Ti 16GB holds it with space for a longer context, but not the ...