I keep seeing references to these absolutely massive 48GB+ gpu memory sizes and those are extremely expensive. If more but smaller memory gpus can work that could open up a much larger range of hardware and individuals to run inference, especially if efficient load/unload of weight layers from raid pcie5 nvme devices is feasible.
The original LLaMA-65B on fp16 weight is 130G. There are no NVIDIA GPU with 130G memory.
As for why they don't use int8/int4: would you try to optimize your code before you confirmed it can actually run?
- max PCI lanes for more GPUs. AMD cpus and boards probably better
- PCIe 5 nvme. ideally enough to saturate bus
- max GPUs with max memory. memory more important than FLOPs probably.
for a given budget one tries to get as much as possible of above.
How long before a consumer component machine for less than $10K can do inference for a gpt 3.5 turbo quality model?
PCIe 5 NVMe: That's completely irrelevant for inference, as you really want to keep all weights on the GPU VRAM. It only speed up the initial weight load from host to device.
max GPUs with max memory: Yeah. For personal use (batch size = 1) VRAM size AND VRAM bandwidth is more important than FLOPs. See https://orenleung.com/is-chatgpt-175-billion-parameters-tech.... For production it's a tradeoff.
> How long before a consumer component machine for less than $10K can do inference for a gpt 3.5 turbo quality model?
$10k is a lot. You can run LLaMA-65B on 2x4090, won't be fast enough for production though. But given that people happily run LLaMA-13B on their MacBooks I guess we are okay with generation being slow. And personally I don't think gpt-3.5-turbo is that big, it should be around or even smaller than LLaMA-65B.
Uh two months ago? LLaMA-13B is GPT 3.5 Turbo quality and runs locally on my Android phone's CPU at acceptable speeds.
You can even run LLaMA-65B (which far surpasses GPT 3.5) faster than GPT 3.5 Turbo with two $200 24GB Nvidia Tesla P40 cards, since in 4bit the model is only 39GB with no output quality loss. Total cost $400 plus some junker used PC with two spare PCIe 4 x16 lanes.
Are P40s only $200!
If your information is accurate that is incredible and great tip. I’ll start on building such a rig asap.