Live data from Hacker News

SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

arxiv.org

61–66 of 66 posts

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#61
post #59

Earlier quoted context omitted.

>what is the expected observed change in the output before and after pruning? The expected and observed change is virtually none. That's the whole point! Notably, quantizing weights from 16bit weights to 4bit weights (reducing the size by 75%) also has almost no change in output quality when using modern algorithms like GPTQ.

What are the drawbacks of quantizing though?

You are losing information. Knowing if you need that information or not is sometimes difficult. That's the whole lottery hypothesis (mentioned elsewhere).

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#62

This is interesting. OPT and BLOOM are significantly Chinchilla under-trained, and I can't help but wonder if this is related to their compressibility here. I would like to see the results for something Chinchilla over-trained, like Llama - my gut is that the 'free lunch' they see will get slightly more expensive. Implementation q - can torch or other inference runtimes take advantage of the memory savings delivered…

Really good insight. I’d love to see a study that goes over a bunch of models, prunes them back to some standard measure and then compares the result to see if the collapse to the chinchilla compute optimal line.

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#63
post #18

To copy a reddit meme: text-generation-webui plugin when? But seriously, this seems like an incredible upgrade.

Better yet, text-generation-webui-docker when?

Is Serge what you are looking for? I've been using it to play around with prompting a few large language models.

https://github.com/nsarrazin/serge

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#64
post #57
post #52

Earlier quoted context omitted.

not sure i would call neurons analog, they are very nonlinear and capricious beasts.

analog and linear are not the same thing. > adjective: analog > relating to or using signals or information represented by a continuously variable physical quantity such as spatial position, voltage, etc.

yeah neurons use discontinuous signals (spikes)

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#65
post #59

Earlier quoted context omitted.

>what is the expected observed change in the output before and after pruning? The expected and observed change is virtually none. That's the whole point! Notably, quantizing weights from 16bit weights to 4bit weights (reducing the size by 75%) also has almost no change in output quality when using modern algorithms like GPTQ.

What are the drawbacks of quantizing though?

>What are the drawbacks of quantizing though?

A 0.01% loss in quality for a 4x speed up and 4x less VRAM/RAM requirement.

90GB models now fit and run on a $600 consumer video card with quality so similar the difference is only detectable on hours long automated tests with tens of thousands of iterations.

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#66
post #55

This is interesting. OPT and BLOOM are significantly Chinchilla under-trained, and I can't help but wonder if this is related to their compressibility here. I would like to see the results for something Chinchilla over-trained, like Llama - my gut is that the 'free lunch' they see will get slightly more expensive. Implementation q - can torch or other inference runtimes take advantage of the memory savings delivered…

Could you explain what you mean by "Chinchilla under-trained" or "Chinchilla over-trained"? I assume it refers to some measure of trained-ness, but Googling yielded nothing relevant.

Google put out the Chinchilla paper last year, showing that GPT-3 and others could have gotten better at the same size by just shoving more tokens at them in further training loops. The paper showed some snazzy curves where more training time and data equalled better quality, and speculated / demonstrated that a lot more training tokens and time could get better quality out of smaller models than GPT-'s 175B.

The was, for a minute, ignored, because the PaLM paper came out very shortly thereafter which seemed to show, pretty conclusively, that there are unusual and exciting emergent behaviours coming out of much larger models, (PaLM is 540B parameters), and so that was hotter news.

In the meantime, some really smart folks looked at the Chinchilla curve, and were like "hmm. One way to think about this is to see that if you are willing to put a LOT more compute in upfront on a model, then the inference costs go down in some sub-linear function."

Llama's architectural instincts are that if you're going to give away a model, and it is going to get run on the edge, it might make sense to spend a whole, whole lot of compute, once, training something past what the paper considered optimal, and well into the point where the paper thought of it as "not worth it", precisely because the entire world might be able to run it if you can get something good and much smaller.

Conclusively, OPT and LLMs from its era are significantly 'under-trained' compared even to GPT-3, itself undertrained by something like an order of magnitude from where the Chinchilla paper implies they should be.

I guess I made up the phrase over and under-trained; their might be some other way to talk about it elsewhere. Sorry! :)

Post reply on HN