6 ms·
Yeah, their recent papers show the smaller LLAMA models outperforming the major LLMs today, and they also have bigger models. This isn't just an alternative, it
by px43 4y ago
Yeah, their recent papers show the smaller LLAMA models outperforming the major LLMs today, and they also have bigger models. This isn't just an alternative, it's a multi order of magnitude optimization.
https://aibusiness.com/meta/meta-s-llama-language-model-outperforms-openai-s-gpt-3 https://aibusiness.com/meta/meta-s-llama-language-model-outp...
- koheripbal 4y agoCan I spend $5K and run it at home? What GPU(s) do I need?
- gpm 4y agoIn principal you can run it on just about any hardware with enough storage space. It's just a question of how fast it will run. This readme has some benchmarks with a similar set of models (and the code has support for even swapping data out to disk if needed): https://github.com/FMInference/FlexGen https://github.com/FMInference/FlexGen And here are some benchmarks running OPT-175B purely on (a very beefy) CPU machine. Note that the biggest llama model is only 65.2B: https://github.com/FMInference/FlexGen/issues/24 https://github.com/FMInference/FlexGen/issues/24
- px43 4y agoAs the models proliferate, I guess we'll be finding out soon. The torrent has been going pretty slow for me for the past couple hours, but it looks like there are a couple seeders, so eventually it'll hit that inflection point where there are enough seeders to give all the leechers full speed downloads. Looking forward to the YouTube videos of random tinkerers seeing what sort of performance they can squeeze out of cheaper hardware.
- turmeric_root 4y agothe 7B model runs on a CUDA-compatible card with 16GB of VRAM (assuming your card has 16-bit float support). I only got the 30b model running on a 4 x Nvidia A40 setup though.
- q1w2 4y agoThe 30B is 64.8GB and the A40s have 48GB NVRAM ea - so does this mean you got it working on one GPU with an NVLink to a 2nd, or is it really running on all 4 A40s? Is there a sub/forum/discord where folks talk about the nitty-gritty?
- turmeric_root 4y ago> so does this mean you got it working on one GPU with an NVLink to a 2nd, or is it really running on all 4 A40s? it's sharded across all 4 GPUs (as per the readme here: https://github.com/facebookresearch/llama https://github.com/facebookresearch/llama). I'd wait a few weeks to a month for people to settle on a solution for running the model, people are just going to be throwing pytorch code at the wall and seeing what sticks right now.
- q1w2 4y ago> people are just going to be throwing pytorch code at the wall The pytorch 2.0 nightly has a number of performance enhancements as well as ways to reduce the memory footprint needed. But also, looking at the README, it appears that model alone needs 2x the model size, eg 65B needs 130GB NVRAM, PLUS the decoding cache which stores 2 * 2 * n_layers * max_batch_size * max_seq_len * n_heads * head_dim bytes = 17GB for the 7B model (not sure if it needs to increase for the 65B model), but maybe a total of 147GB total NVRAM for the 65B model. That should fit on 4 Nvidia A40s. Did you get memory errors, or you haven't tried yet?
- turmeric_root 4y agoSo since making that comment I managed to get 65B running on 1 x A100 80GB using 8-bit quantization. Though I did need ~130GB of regular RAM on top of it.
- UltimateEdge 4y agoSo is the model any good?