If anyone is interested in running this at home, please follow the llama-int8 project [1]. LLM.int8() is a recent development allowing LLMs to run in half the memory without loss of performance [2]. Note that at the end of [2]'s abstract, the authors state "This result makes such models much more accessible, for example making it possible to use OPT-175B/BLOOM on a single server with consumer GPUs. We open-source our…
Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
41–50 of 143 posts
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#42Earlier quoted context omitted.
Probably the best method is to just train it on int4 in the first place. Fine tuning after quantization would definitely help though.
Isn't that backwards? You need fairly good resolution during training or your gradients will be pointing all over the place. Once you've found a good minimum point, moving a little away from it with reduced precision is probably OK.
Is it better to have billions of high resolution parameters and quantize them at the end, or to train low resolution parameters where the training algorithms see the lower resolution? It’s beyond me, but I’d love to know.
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#43How big is this model? (i.e. disk space to store it)
65B is ~120GB. All of them combined with the smaller versions is ~220GB.
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#44Earlier quoted context omitted.
The compute necessary to run 65B naively was only available on AWS (and perhaps Azure, I don't work with them) and the required instance types have been unavailable to the public recently (it seems everyone had the same idea to hop on this and try to run it). In my other post here [1], the memory requirements have been lowered through other work, and it should now be possible to run the 65B on a provider like CoreWea…
Are you sure about that? I can't remember where I saw the table of memory requirements, but I'm sure some of the larger instances here [1] will surely be able to cope (assuming they're available!) Oracle gives you a $300 free trial, which equates to running BM.GPU4.8 for over 10 hours - enough for a focused day of prompting [1] https://www.oracle.com/cloud/compute/gpu/
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#45Earlier quoted context omitted.
As far as my understanding of American copyright goes, a computer produced work cannot be copyrighted as computers are not human, in the same way a photograph taken by a chimp cannot be copyrighted no matter who owned the camera that took the photo. This is one of the major challenges with the legal status of AI as well that will soon be fought over in court. It's possible that the automated processing of the dataset…
It is intellectual property, regardless of copyright.
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#46If anyone is interested in running this at home, please follow the llama-int8 project [1]. LLM.int8() is a recent development allowing LLMs to run in half the memory without loss of performance [2]. Note that at the end of [2]'s abstract, the authors state "This result makes such models much more accessible, for example making it possible to use OPT-175B/BLOOM on a single server with consumer GPUs. We open-source our…
why is it that these models tend to be released as float16 and converting to int8 is left to the reader? is there something special about training that defaults you to float16?
So if the model is computed using float16s, distribute as-is and let the end user choose to user it like that or compromise for faster processing of there system can deal with many billions of int8s more effectively.
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#47Earlier quoted context omitted.
Probably the best method is to just train it on int4 in the first place. Fine tuning after quantization would definitely help though.
Isn't that backwards? You need fairly good resolution during training or your gradients will be pointing all over the place. Once you've found a good minimum point, moving a little away from it with reduced precision is probably OK.
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#48Earlier quoted context omitted.
65B is ~120GB. All of them combined with the smaller versions is ~220GB.
After converting to int8, does it become smaller? Also, can this be further compressed? Like, is there some redundancy a special-purpose compressor could exploit?
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#49Earlier quoted context omitted.
Careful though — we need to evaluate llama on its own merits. It’s easy to mess up the quantization in subtle ways, then conclude that the outputs aren’t great. So if you’re seeing poor results vs gpt-3, hold off judgement till people have had time to really make sure the quantized models are >97% the effectiveness of the original weights. That said, this is awesome — please share some outputs! What’s it like?
The output is at least as good as davinci. I think some early results are using bad repetition penalty and/or temperature settings. I had to set both fairly high to get the best results. (Some people are also incorrectly comparing it to chatGPT/ChatGPT API which is not a good comparison. But that's a different problem.) I've had it translate, write poems, tell jokes, banter, write executable code. It does it all-- an…
Re: Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
#50Earlier quoted context omitted.
Careful though — we need to evaluate llama on its own merits. It’s easy to mess up the quantization in subtle ways, then conclude that the outputs aren’t great. So if you’re seeing poor results vs gpt-3, hold off judgement till people have had time to really make sure the quantized models are >97% the effectiveness of the original weights. That said, this is awesome — please share some outputs! What’s it like?
The output is at least as good as davinci. I think some early results are using bad repetition penalty and/or temperature settings. I had to set both fairly high to get the best results. (Some people are also incorrectly comparing it to chatGPT/ChatGPT API which is not a good comparison. But that's a different problem.) I've had it translate, write poems, tell jokes, banter, write executable code. It does it all-- an…
In fact, sampling settings are so important and so easily underestimated that I should just pester you to post your exact settings. If you get a moment, would you mind sharing your temperature, repetition penalty, top-k, and anything else? I'll be experimenting with those today, but having some known working defaults would be wonderful. (You're also the first person I've seen that got excellent outputs from llama; whatever you did, no one else seems to have noticed yet.)
If you're busy or don't feel like it, no worries though. I'm just grateful you gave us some hope that llama might be really good. There were so many tweet chains showing universally awful outputs that I wasn't sure.
EDIT: I added your comments to the top of the README and credited you. Thanks again.