News for hackers. Stuff that matters.
Re:GPT-4 Details Leaked by kyledrake on Tuesday July 11, 2023 @01:30AM (#36676751)
Unfortunately I've found the current OSS models to be vastly inferior to the OpenAI models. Would love to see someone actually get close to what they can do with GPT-3.5/4, except capable of running on commodity GPUs. What's the most impressive open model so far?
Re:GPT-4 Details Leaked by asynchronous on Tuesday July 11, 2023 @01:35AM (#36676781)
Probably Wizard 30B, they released the training weights at every offset as well.
Re:GPT-4 Details Leaked by bugglebeetle on Tuesday July 11, 2023 @01:38AM (#36676798)
In my testing, the chat and instruct-tuned versions of MPT-30B is very close to 3.5 for many tasks, but of course the team who made it got bought up immediately and it’s licensed only for non-commercial use. I’m hoping the open source community runs with the base model in the same way they did with LLaMA.
Re:GPT-4 Details Leaked by Roark66 on Tuesday July 11, 2023 @01:56AM (#36676905)
Have you tried falcon 40b instruct? Also take into account that chatgpt likely has some preprompt and by talking to falcon or other OS models it's all in your hands.

Furthermore, Not many people discuss the significance of proper output sampling. I myself used to just test open source models with the greedy decoding only. Who knows if they wouldn't even beat (not at all)OpenAI with some clever output sampling scheme.

Re:GPT-4 Details Leaked by schappim on Tuesday July 11, 2023 @02:13AM (#36677016)
Does anyone have a link / instructions on getting Falcon 40b to install on Apple Silicon?

Apparently "Hugging Face" have some internal swift code that works (but it has not been released). I'm keen to see how it performs on a maxed out Mac Studio (with all that unified memory available).

Re:GPT-4 Details Leaked by jsight on Tuesday July 11, 2023 @12:12PM (#36683083)
I thought this too, but it sounds like the performance of the GPU ultimately holds it back. Maybe it is the software, but I have yet to see a test on Mac silicon that performed well.
Re:GPT-4 Details Leaked by schappim on Tuesday July 11, 2023 @07:26PM (#36688529)
It is not too bad, 7B is doing 432 tokens per second on a Macbook[1].

[1] Video: https://huggingface.co/datasets/huggingface/documentation-im...

Re:GPT-4 Details Leaked by moffkalast on Tuesday July 11, 2023 @04:59AM (#36678229)
Idk, has anyone tried falcon yet? The support for running it remains nonexistent except for one fork of llama.cpp that isn't integrated into anything. This trend of every new model breaking compatibility really needs to stop.
Re:GPT-4 Details Leaked by Roark66 on Thursday July 13, 2023 @02:37AM (#36705715)
I have and I am running it locally. Mostly in 7b variant which runs pretty much at chatgpt speed (when streaming) on my ryzen 3700 cpu + 32gb ram + 2xnvme in a mirror (it doesn't fit in the memory in its entirety, few gb go into the swap).

Of course to run it like that I have to be running nothing else. No xorg, no chromium etc. Just a pure linux console.

If you want to try falcon 40b instruct by yourself here I'd a public demo : https://huggingface.co/blog/falcon

Go to the bottom of the page.

Re:GPT-4 Details Leaked by juliensalinas on Tuesday July 11, 2023 @02:17AM (#36677039)
LLaMA 30B or 60B can be very impressive when correctly prompted. Deploying the 60B version is a challenge though and you might need to apply 4-bit quantization with something like https://github.com/PanQiWei/AutoGPTQ or https://github.com/qwopqwop200/GPTQ-for-LLaMa . Then you can improve the inference speed by using https://github.com/turboderp/exllama .

If you prefer to use an "instruct" model à la ChatGPT (i.e. that does not need few-shot learning to output good results) you can use something like this: https://huggingface.co/TheBloke/Wizard-Vicuna-30B-Uncensored... The interesting thing with these Uncensored models is that they don't constantly answer that they cannot help you (which is what ChatGPT and GPT-4 are doing more and more).

Re:GPT-4 Details Leaked by Llamamoe on Tuesday July 11, 2023 @02:20AM (#36677062)
How low can you get the memory and computational power requirements that way?
Re:GPT-4 Details Leaked by Vecr on Tuesday July 11, 2023 @02:41AM (#36677216)
You can run that model (Wizard-30) on a computer with 64 gigabytes of RAM (or smaller, I don't know how tight you can cut it). You obviously want fast RAM and a good CPU, but you don't need a GPU.
Re:GPT-4 Details Leaked by ed_mercer on Tuesday July 11, 2023 @03:08AM (#36677437)
AFAIK you can get away with a swapfile, no need for large amounts of RAM.
Re:GPT-4 Details Leaked by dacryn on Tuesday July 11, 2023 @04:05AM (#36677855)
wont that nearly kill your ssd if you do it for extended periods of time?
Re:GPT-4 Details Leaked by ZiiS on Tuesday July 11, 2023 @04:26AM (#36677997)
Most of the ram is for storing the model once it is loaded it is read only so will not harm an SSD.
Re:GPT-4 Details Leaked by Incipient on Tuesday July 11, 2023 @05:05AM (#36678271)
It only reads from memory,not swap directly. If it needs to read something from swap, it'll write out something from memory to swap, then read the swap into memory. Reading 1gb of swap, will essentially write 1gb to the ssd too. (rough numbers)

Correct me if I misunderstand swap?

Re:GPT-4 Details Leaked by mihaic on Tuesday July 11, 2023 @06:00AM (#36678686)
If the underlying data hasn't changed, the page isn't written to disk. CPUs do keep track of writes that mark a memory page as "dirty".
Re:GPT-4 Details Leaked by simcop2387 on Tuesday July 11, 2023 @10:34AM (#36681547)
That's basically right. I'm not sure if Linux or windows will keep track of the pages it read out of swap to know if they're still there and valid, but there's a better way for this that I think at least ggml supports where it stores a copy of the model unpacked and ready on disk as a cache for doing the work rather than relying on the OS virtual memory to handle it. This should be faster than the OS VMM (though probably not by much) but since it'll know which pieces it needs to leave on disk and where they are it should be much safer as far as writes go since it will know enough to not write multiple times like that.
Re:GPT-4 Details Leaked by lossolo on Tuesday July 11, 2023 @12:06PM (#36682995)
You can also travel on a bike from NY to LA.
Re:GPT-4 Details Leaked by nobody9999 on Tuesday July 11, 2023 @01:38PM (#36684453)
>You can also travel on a bike from NY to LA.

You can. In fact, my brother did so a bunch of years ago. He found it to be a wonderful experience that made his life better.

He's also flown on a commercial airplane from NY to LA (as have I, as well as millions of others) and while it got him to Los Angeles, it didn't provide the levels of sensory input, personal interactions and experience that riding his bicycle did.

That's not to say everyone should ride bicycles across the US every time they need/want to make such a trip, but doing so at least once can be a more positive experience than sitting next to some strangers for five hours.

The satisfaction of doing so, or the experiences in interacting with people and the landscape during such a trip aren't quantifiable, but reducing the value of doing so (if I'm missing your point here, my apologies) to the time required to make such a trip is reductive in the extreme IMHO.

Edit: Clarified my prose.

Re:GPT-4 Details Leaked by Llamamoe on Wednesday July 12, 2023 @11:01AM (#36695578)
Love this comment so much. Your brother sounds cool :)
Re:GPT-4 Details Leaked by logicchains on Tuesday July 11, 2023 @01:52PM (#36684646)
Just imagine if Boeing lobbied the government to pass a law banning you biking from NY to LA.
Re:GPT-4 Details Leaked by snowycat on Tuesday July 11, 2023 @02:01PM (#36684786)
I am running 30b llama models (4 bit quantized using llama.cpp) on 32 gb of ram and no GPU. I get around 2 tokens/second.
Re:GPT-4 Details Leaked by koheripbal on Tuesday July 11, 2023 @02:59AM (#36677369)
4-bit quantization removes a lot of the model's sophistication, and 60B parameters is still smaller than what GPT4 is using.
Re:GPT-4 Details Leaked by johnnyworker on Tuesday July 11, 2023 @04:02AM (#36677829)
The point is that it's infinitely better in not being there "just to take your jobs and make a few VCs richer". Nobody even claimed it's more performant. It's like the difference getting nothing, but keeping your land, and getting glass pearls, losing your land. You have to completely ignore the meat of the argument to even pretend there is a contest.

And this is without considering what happened if we stopped feeding hostile actors and supported ourselves, instead of keeping to do the reverse. Not just here and there, but consistently for decades.

Re:GPT-4 Details Leaked by motoxpro on Tuesday July 11, 2023 @04:54AM (#36678183)
There is no way I am going to spin up my own worse LLM so a few people will make less money. Even if it was 1-5% better. It's just not worth the time.
Re:GPT-4 Details Leaked by johnnyworker on Tuesday July 11, 2023 @10:38AM (#36681612)
It's not "a few people making less money", it's a few gigantic monoliths carving up the future, like blind watch-destroying gods -- or at least wanting to, no matter how nicely they dress it up. And it's not about utility or chance of success for everyone, either, but rather trying to do something in an ethical or more clean way just because that's more fun for them.

But I have to admit to being an idealist, and while I disagree with you because of that, I don't think you should be downvoted for basically just bringing up the majority position. It's easy to complain over people not being starry-eyed idealists that make great personal sacrifices to bring along an utopia for people in 10 generations, or whatever. It's way harder to find and teach the joy of doing something for the sake of doing it, and at the same time come up with medium and long-term ideas that are realistic enough to make working towards them fulfilling, but also genuinely beautiful and true. The whole "rather than teaching to build a ship (we can't even agree on!), teach people how to long for the ocean" thing. It's a really hard problem.

Re:GPT-4 Details Leaked by motoxpro on Tuesday July 11, 2023 @02:49PM (#36685561)
Wow. Beautifully articulated.

What a pleasant reply to read. I don’t have an argument regarding my position other than I agree that what you’re saying is true and that getting people like me to care and make sacrifices not just today but every day in a long term way is what makes hard problems hard.

Re:GPT-4 Details Leaked by johnnyworker on Thursday July 13, 2023 @12:08AM (#36704907)
Thank you :) But I didn't mean to say it's those pesky non-dreamers who make the problem hard. Three idealists will have ten possible utopias that are partly or completely mutually exclusive.

And to be frank, I think a lot of the finger pointing at people who don't care enough about issue X or Y is really because of not having found good ways to work constructively and make progress with however few people who do care. Partly also because people cannot agree (for long, tend to splinter into more pure sub groups and all that).

At any rate, the way can't be "I should feel bad and do better", but rather "I want what they got!". And the burden can't be on the people who aren't yet seeing anything that makes them excited to get excited anyway. And it can't be about being selfless for the benefit of others, or future generations. It has to its own reward right here and now. It is about and for you just as it is anyone else, if you know what I mean. Sacrificing others and sacrificing oneself is sacrificing people in both cases. Neither is noble IMO.

I guess the best chance of fighting tech giant strangleholds is still empowering "normal people" to carve out their own little spaces. All people will not finally learn how to make websites if only we crushed Facebook and what have you, but instead if more people had fun making their own little websites, and if we could come up with good ways for them to connect(peer-to-peer on the desktop, right after Linux!), Facebook and others would play nicer. It's not that big companies are a problem, it's the abusive things they do when they're the only game in town.

And likewise, and back on topic: a really good argument would be something I don't have the knowledge for, namely things you can do with a LLM that you can fully control (or at least can wildly poke at and experiment with, or just "download mods for") versus a much more powerful LLM that you don't really control, other than your prompts.

Thanks for reading!

Re:GPT-4 Details Leaked by PoignardAzur on Tuesday July 11, 2023 @06:53AM (#36679174)
That argument seems more political than practical.

If on one hand you have a tool that you can actually use to help with your job, and another that sounds like a very advanced chatbot but doesn't actually provide value, well the second tool being open-source doesn't change that it's doesn't provide value.

(Also, assuming that open-source tools aren't going to upend a ton of people's jobs seems really naive. These people aren't going to be any less bitter that their jobs are taken by freelance nerds instead of corporate nerds.)

Re:GPT-4 Details Leaked by Tepix on Tuesday July 11, 2023 @04:47AM (#36678124)
Does it? The GTPQ paper claims that the accuracy loss is small.
Re:GPT-4 Details Leaked by TeMPOraL on Tuesday July 11, 2023 @07:21AM (#36679405)
Can't lose what it didn't have in the first place.
Re:GPT-4 Details Leaked by moffkalast on Tuesday July 11, 2023 @04:56AM (#36678202)
> 60B parameters is still smaller than what GPT4 is using

I mean if the article is right, then it's about 3.3% the size of GPT 4 (although it's a sparse model so not all of it is used on every pass).

Meta also didn't train LLaMAs on nearly as much code it seems, so they're much worse for that in general.

Re:GPT-4 Details Leaked by _nalply on Tuesday July 11, 2023 @11:21AM (#36682252)
I remember to have read somewhere that GPT4 is not a single model but several models whose parameter counts are reported as a single sum. Perhaps quite doable but at lower speeds?
Re:GPT-4 Details Leaked by kirill5pol on Tuesday July 11, 2023 @12:11PM (#36683069)
The article linked here talks about GPT4 being a mixture of experts, which is exactly what you’re describing
Re:GPT-4 Details Leaked by kyledrake on Tuesday July 11, 2023 @09:52AM (#36680977)
How do you correctly prompt it? A lot of people are not familiar with how to do this. I think this would improve how many people are using the non-OpenAI models.
Re:GPT-4 Details Leaked by lolinder on Tuesday July 11, 2023 @10:05AM (#36681160)
Just a reminder that LLaMA is not open—in order to use it legally you have to agree to Meta's terms, which currently means research use only. The versions circulating on torrents are essential pirated, and while I don't have an ethical problem with that at all you can't use it safely in a business.

The open replacements for LLaMA have yet to reach 30B, let alone 65B.

Re:GPT-4 Details Leaked by immibis on Tuesday July 11, 2023 @10:30AM (#36681485)
If anyone has a copyright claim to an LLM, the creators of the input data have more of a copyright claim than the company that trained it. There's a good chance they are not copyrightable at all. I'd bet there's a lot of people willing to take on that risk.

However, they might still fall under trade secret law.

Re:GPT-4 Details Leaked by fallingknife on Tuesday July 11, 2023 @10:53AM (#36681879)
Why would an LLM be any less copyrightable than any other piece of software?
Re:GPT-4 Details Leaked by meithecatte on Tuesday July 11, 2023 @11:51AM (#36682725)
The software is the matrix multiplication and gradient descent. We are talking about the numbers in the matrices. They are the output of a training algorithm, so we can only talk about the copyright on the training algorithm, and on its input data.
Re:GPT-4 Details Leaked by abtinf on Tuesday July 11, 2023 @11:56AM (#36682828)
For the same reason that phone books cannot have copyright.
Re:GPT-4 Details Leaked by KingMob on Tuesday July 11, 2023 @01:00PM (#36683842)
The model weights could be seen as a derived work, for which they didn't get the permission of the original copyright holders. Alternatively, it can be argued that the LLMs are no different than a fanfic writer trying to imitate the style of their favor author.

It's not obvious which way it will go, but I can see the point of those arguing that LLM data are ill-gotten gains.

Re:GPT-4 Details Leaked by nokcha on Tuesday July 11, 2023 @01:21PM (#36684171)
The "software" part of an LLM is pretty trivial -- the interesting piece is the the weights. Since the weights are mechanically generated by a computer, it can be argued that the weights are not copyrightable, just like a photograph taken by a monkey isn't copyrightable.
Re:GPT-4 Details Leaked by eulers_secret on Tuesday July 11, 2023 @12:05PM (#36682981)
People always bring this up like it’s a big deal, but most users aren’t interested in starting a business. We just wanna play with LLMs.

Frankly, I’m glad we don’t have a bunch of llamas in different skins being hawked like the current crop of “AI” startups that are just thin layers over OpenAI’s API.

Re:GPT-4 Details Leaked by kirill5pol on Tuesday July 11, 2023 @12:08PM (#36683033)
That hasn’t been true for a while. Falcon 40B seemingly outperforms LLaMA 60B according to the OpenLLM leaderboard

https://huggingface.co/tiiuae/falcon-40b

Re:GPT-4 Details Leaked by lolinder on Tuesday July 11, 2023 @12:49PM (#36683672)
Fair enough. I haven't really looked at Falcon as a replacement for LLaMA yet because it isn't supported by llama.cpp, but it looks promising.
Re:GPT-4 Details Leaked by logicchains on Tuesday July 11, 2023 @01:46PM (#36684561)
Falcon is an open (Apache licensed) replacement for LLaMA, with a 40B version that's competitive with LLaMA 65B on benchmarks.
Re:GPT-4 Details Leaked by stOneskull on Tuesday July 11, 2023 @02:08PM (#36684906)
> The interesting thing with these Uncensored models is that they don't constantly answer that they cannot help you (which is what ChatGPT and GPT-4 are doing more and more)

that's great to hear. that political correctness in gpt is annoying.

Re:GPT-4 Details Leaked by wiz21c on Tuesday July 11, 2023 @03:25AM (#36677549)
What are all the researchers in universities doing ? Couldn't they improve these models (they do have big brains after all) with tax payer's money and put the results under some cool open source license...
Re:GPT-4 Details Leaked by jona-f on Tuesday July 11, 2023 @03:38AM (#36677655)
Yes, they are doing the improving, but then you needs loads of money to do the learning no university can afford. So now big tech is hiring promising university researchers for good money to scale up their research. This could be solved by massive decentralization where millions of users provide compute with their gpus and i think it will be at some point, cause i believe open-source is more powerful than this openai bs. There are people working on this, but afaik the techniques aren't quite there. You need a different kind of model with much more parallelization then what is currently used.
Re:GPT-4 Details Leaked by DeathArrow on Tuesday July 11, 2023 @06:08AM (#36678783)
> There are people working on this, but afaik the techniques aren't quite there. You need a different kind of model with much more parallelization then what is currently used.

What if crypto is switching from mindless hashing as proof-of-work to training AI models as proof-of-work? That would mean suddenly big computing resources are available.

Re:GPT-4 Details Leaked by jona-f on Tuesday July 11, 2023 @07:46AM (#36679639)
That would indeed be neat, no idea if that is possible safely. Blockchain technology sure looks like a good fit for the organization of such a decentralized model. The reaction of the people of hn to 'blockchain-ai', probably won't be kind though, lol.
Re:GPT-4 Details Leaked by pas on Tuesday July 11, 2023 @08:59AM (#36680356)
Blockchains depend on small inputs and outputs, and easy verifiability of the computation. AI training is none of that. It's a massively interconnected problem, Google and NVIDIA built traditionalish fast-interconnect supercomputers to do it.

Maybe it's possible to implement it in a decentralized way with not-completely-useless performance, but by then OpenAI and others will be even more ahead. (Sure, it'd be good to have such an implementation, so maybe enthusiasts will do it eventually, but that's mostly for fun.)

Re:GPT-4 Details Leaked by jona-f on Tuesday July 11, 2023 @10:35AM (#36681559)
Yeah, that's the current state of course, I'm betting on future developments. Neural networks are still in their infancy. Stable diffusion showed everyone how much more powerful open models are (at generating porn /s). Chatgpt is severely limited, cause Openai fear public outrage, litigation and regulation.
Re:GPT-4 Details Leaked by mensetmanusman on Tuesday July 11, 2023 @08:38AM (#36680141)
Yeah I keep telling people the universe played a joke on us with the crypto winter happening right before GPT-4 being released.

Flip the timeline and crypto from the start would have had this as a goal.

Re:GPT-4 Details Leaked by jodrellblank on Tuesday July 11, 2023 @10:29AM (#36681473)
“What if running part of the paperclip maximiser that destroys humankind was profitable?” is both a bit of a nightmare sci-fi dystopia, and a reasonable description of companies in the modern economy.
Re:GPT-4 Details Leaked by DennisP on Tuesday July 11, 2023 @10:30AM (#36681490)
For blockchains using proof-of-work you need two things:

1) The work has to be very hard to do (and quantifiably so), but very easy to verify.

2) The block's transactions have to be an input to the computation, and it has to be impossible to get the same output with a modified set of transactions.

Cryptographic hash functions fulfill both of these requirements. Almost nothing else does.

However, if blockchains switch to proof-of-stake, then the GPUs previously dedicated to that blockchain are available for other purposes. But the biggest GPU-based blockchain already did that, and Bitcoin uses specialized hardware that can't do anything other than Bitcoin's hash function.

Re:GPT-4 Details Leaked by wiz21c on Tuesday July 11, 2023 @10:00AM (#36681094)
I knew for the lack of money. But the parallelization idea, I didn't. Thanks for posting !
Re:GPT-4 Details Leaked by dr_dshiv on Tuesday July 11, 2023 @03:33AM (#36677609)
They are busily working on all the other large scale engineering projects that they are so good at producing and maintaining.
Re:GPT-4 Details Leaked by albertzeyer on Tuesday July 11, 2023 @03:33AM (#36677613)
They don't have enough money and thus computing resources. It's a huge gap.
Re:GPT-4 Details Leaked by maxwin on Tuesday July 11, 2023 @04:03AM (#36677836)
they produce papers that contain (sometimes) useful ideas. They don't produce code (other than proof of concept) and they certainly can't afford to train a large model
Re:GPT-4 Details Leaked by raydev on Tuesday July 11, 2023 @12:06PM (#36682992)
While OpenAI likely has some insights that open-source and closed-source competitors are lacking, OpenAI is mostly in the lead because they can burn absurd amounts of cash running an absurd amount of compute via their partnership with Microsoft.