I'd do the 4060 ti and add a 16gb p100 to the mix to avoid doing any cpu inference. Use exl2. Otherwise I'd go 3090. CPU is slowww
LocalLLaMA
Community to discuss about Llama, the family of large language models created by Meta AI.
you gotta look at the internal memory clocks and data transfer rates on the GPUS and what you're going to see is that only the XX80 and XX90 cards have enough memory bandwidth to transfer all that vRAM so the 4060 with all that vRAM can't actually move that much memory around
There's really no comparison. The 4060s, even the Ti, have crap for memory bandwidth. 288GB/s in the case of the Ti. DDR5 is also not fast enough to make much difference. So that combo is not going to be speedy. It in no way compares to a 3090.
DDR5 is also not fast enough to make much difference
The real issue is that the consumer cpus / motherboards have very few lanes. DDR5 is plenty fast, but you are probably maxing out motherboard bandwidth with two sticks.
Would not surprise me at all if server CPU inference is somewhere between x3 and x5 times faster.
The 3090 will outperform the 4060 several times over. It's not even a competition - it's a slaughter.
As soon as you have to offload even a single layer to system memory (regardless of the speed), you cut your performance by an order of magnitude. I don't care if you have screaming fast DDR5 in 8 channels and a pair of the beefiest xeons money can buy, your performance will fall off a cliff the minute you start offloading. If a 3090 is within your budget, that is the unambiguous answer.
Here's a 7B llama.cpp bench on a 3090 and 7800X3D, with CL28 DDR5 6000 RAM.
All layers offloaded to GPU:
Generation:5.94s (11.6ms/T), Total:5.95s (86.05T/s)
And here is just 2/35 layers offlloaded to CPU:
Generation:7.59s (14.8ms/T), Total:7.75s (66.10T/s)
As you can see, the moment you offload even a little bit to CPU, you are going to hit performance hard. More than a few layers and the hit is very severe.
Here is exllamav2 for reference, though the time also includes prompt processing so its actually faster than indicated:
3.91 seconds, 512 tokens, 130.83 tokens/second (includes prompt eval.)
Thanks for your data! Can you do the test again with the phind codellama 34B model?
I have 4060 ti 16GB and I'm quite happy with it, for the price I paid. But if you actually can afford it, to be even considering it as an option, then probably you should be going to 3090 instead, it will perform significantly better.