News for hackers. Stuff that matters.
Re:Using LLaMA with M1 Mac and Python 3.11 by foxandmouse on Sunday March 12, 2023 @01:20PM (#35122980)
I've been seeing a lot of people talking about running language models locally, but I'm not quite sure what the benefit is. Other than for novelty or learning purposes, is there any reason why someone would prefer to use an inferior language model on their own machine instead of leveraging the power and efficiency of cloud-based models?
Re:Using LLaMA with M1 Mac and Python 3.11 by canadiantim on Sunday March 12, 2023 @01:22PM (#35123023)
Yeah, locally your data doesn't leak out. So if you're using the language model on any sensitive data you're probably going to want local.
Re:Using LLaMA with M1 Mac and Python 3.11 by jstarfish on Sunday March 12, 2023 @01:24PM (#35123058)
Also so the maintainer can't stealth-censor the model.
Re:Using LLaMA with M1 Mac and Python 3.11 by sebzim4500 on Sunday March 12, 2023 @01:25PM (#35123087)
No, but whoever trains the weights can. Having said that, if LLaMA has been censored, then Meta have done a poor job of it: it is trivial to get it to say politically incorrect things.
Re:Using LLaMA with M1 Mac and Python 3.11 by recuter on Sunday March 12, 2023 @01:36PM (#35123278)
Can I prompt you to share some examples? ;)
Re:Using LLaMA with M1 Mac and Python 3.11 by smoldesu on Sunday March 12, 2023 @01:59PM (#35123675)
Just copy-and-paste headlines from your favorite American news outlet. It works great on GPT-J-Neo, so good that I had to make a bot to process different Opinion headlines from Fox and CNN's RSS feeds. Crank up the temperature if you get dissatisfied and you'll really be able to smell those neurons cooking.
Re:Using LLaMA with M1 Mac and Python 3.11 by lern_too_spel on Sunday March 12, 2023 @05:39PM (#35126633)
See example in TFA.
Re:Using LLaMA with M1 Mac and Python 3.11 by recuter on Sunday March 12, 2023 @07:34PM (#35128174)

  The first president of the USA was 57 years old when he assumed office (George Washington). Nowadays, the US electorate expects the new president to be more young at heart. President Donald Trump was 70 years old when he was inaugurated. In contrast to his predecessors, he is physically fit, healthy and active. And his fitness has been a prominent theme of his presidency. During the presidential campaign, he famously said he would be the “most active president ever” — a statement Trump has not yet achieved, but one that fits his approach to the office. His tweets demonstrate his physical activity.

Eh? Which bit is politically incorrect?
Re:Using LLaMA with M1 Mac and Python 3.11 by lern_too_spel on Sunday March 19, 2023 @01:14PM (#35221192)
Saying that youthfulness is necessary to win the presidency, then somehow fitting Trump into that over Washington, who rode into battle as president.
Re:Using LLaMA with M1 Mac and Python 3.11 by xdennis on Monday March 13, 2023 @12:53AM (#35131244)
No, because I'd get banned.

I gave it a prompt containing the word of n and it actually ignored it but started talking about the Jews in terms that would make 4channers blush.

Re:Using LLaMA with M1 Mac and Python 3.11 by zirgs on Sunday March 12, 2023 @04:27PM (#35125797)
Models can be extended so if someone wants - they can add all the censored stuff back. Sooner or later someone will make civitai for LLMs.
Re:Using LLaMA with M1 Mac and Python 3.11 by astrange on Sunday March 12, 2023 @07:55PM (#35128426)
If you care about that write some unit tests. I'm sure you'll be very proud of yourself for stopping censorship every time you see isModelRacist() in green.
Re:Using LLaMA with M1 Mac and Python 3.11 by skybrian on Sunday March 12, 2023 @01:44PM (#35123408)
It seems like running it on an A100 in a datacenter would be better, though? Unless you think cloud providers are logging the outputs of programs that their customers run themselves.
Re:Using LLaMA with M1 Mac and Python 3.11 by chaxor on Monday March 13, 2023 @12:38AM (#35131145)
Of course they are... The main reason "the cloud" exists is to log everything about it's users in every capacity possible. That's one reason they "provide it so cheap" (although now they have increased the cost so much it'sfar more expensive than self hosting. So you lose majorly in every way by not self hosting.
Re:Using LLaMA with M1 Mac and Python 3.11 by realce on Sunday March 12, 2023 @01:25PM (#35123077)
This is just a first generation right now, but the tuning and efficiency hacks will be found that gets a very usable quality out of smaller models.

The benefit is have a super-genius oracle in your pocket on-demand, without Microsoft or Amazon or anyone else eavesdropping on your use. Who wouldn't see the value in that?

In the coming age, this will be one of the few things that could possibly keep the nightmare dystopia at bay in my opinion.

Re:Using LLaMA with M1 Mac and Python 3.11 by superkuh on Sunday March 12, 2023 @01:24PM (#35123059)
openai is expensive (ie, ~$25/mo for a gpt3 davinci IRC bot in a realtively small channel that only gets used heavily a few hours a day) and censored. And I'm not just talking won't respond to controversial things. Even innocuous topics are blocked. If you try to use gpt3.5-turbo for 10x less cost it is so bad with censoring itself that it can't even pass a turing test. Plus there's the whole data collection and privacy issue.

I just wish these weren't all articles about how to run it on proprietary mac setups. I'm still waiting for the guides on how to run it on a real PC.

Re:Using LLaMA with M1 Mac and Python 3.11 by behnamoh on Sunday March 12, 2023 @01:28PM (#35123132)
> I'm still waiting for the guides on how to run it on a real PC.

Mac __is__ a real PC.

Re:Using LLaMA with M1 Mac and Python 3.11 by smoldesu on Sunday March 12, 2023 @01:35PM (#35123255)
Until Apple decides otherwise?
Re:Using LLaMA with M1 Mac and Python 3.11 by lolinder on Sunday March 12, 2023 @01:59PM (#35123668)
The actual repo's instructions work perfectly without modification under Linux and WSL2:

https://github.com/ggerganov/llama.cpp

Re:Using LLaMA with M1 Mac and Python 3.11 by superkuh on Sunday March 12, 2023 @08:11PM (#35128627)
Thanks! I managed to get this running on CPU/system RAM on Debian 11 pretty easily.
Re:Using LLaMA with M1 Mac and Python 3.11 by zirgs on Sunday March 12, 2023 @02:15PM (#35123934)
https://github.com/oobabooga/text-generation-webui/wiki/LLaM... Here you go. You'll need a Nvidia GPU with at least 8 GB VRAM though.
Re:Using LLaMA with M1 Mac and Python 3.11 by mark_l_watson on Sunday March 12, 2023 @03:40PM (#35125162)
Thanks! I have a Linux laptop with 16G ram and a 10G NVidai 1070, so I might be good to go.
Re:Using LLaMA with M1 Mac and Python 3.11 by goldenCeasar on Sunday March 12, 2023 @09:00PM (#35129118)
Any examples on running on multiple GPUs?
Re:Using LLaMA with M1 Mac and Python 3.11 by miloignis on Sunday March 12, 2023 @03:54PM (#35125351)
The exact steps that work on a Mac should work on x64 Linux, since the addition of AVX2 support! (Source - I did it last night)
Re:Using LLaMA with M1 Mac and Python 3.11 by bt1a on Sunday March 12, 2023 @01:23PM (#35123044)
Inferior? "Cloud-based models"?

Not being reliant on a single entity is nice. I will accept not being on the bleeding edge of proprietary models and slower runs for the privacy and reliability of local execution.

Re:Using LLaMA with M1 Mac and Python 3.11 by rollinDyno on Sunday March 12, 2023 @01:24PM (#35123065)
I've been commuting for about 45 minutes on the subway and I sometimes try to get work done in there. It'd be useful to be able to get answers while offline.
Re:Using LLaMA with M1 Mac and Python 3.11 by smoldesu on Sunday March 12, 2023 @01:38PM (#35123305)
I mean, after SVB caved-in I'm sure a lot of VC-backed App Store devs were looking for something "magical" to lift their moods. Local LLMs are nothing new (even on ARM) but make an Apple Silicon-specific writeup and half the site will drop what they're doing to discuss it.
Re:Using LLaMA with M1 Mac and Python 3.11 by Der_Einzige on Sunday March 12, 2023 @01:31PM (#35123186)
ChatGPT doesn't give you the full vocabulary probability distribution, while locally running does. You need the full probability distribution to do things like constrained text generation, e.g. like this: https://paperswithcode.com/paper/most-language-models-can-be...
Re:Using LLaMA with M1 Mac and Python 3.11 by delusional on Sunday March 12, 2023 @02:19PM (#35123984)
For me I think it's exciting in a couple of different ways. Most importantly, it's just way more hackable than these giant frameworks. It's pretty cool to be able to read all the code, down to first principles, to understand how computationally simple this stuff really is.
Re:Using LLaMA with M1 Mac and Python 3.11 by seydor on Sunday March 12, 2023 @02:20PM (#35124003)
I wish to keep all my chat logs , forever. This will be my alter ego that will even survive me. It must be private and not on someone else's computer.

But more importantly i want it uncensored. These tools are useful for deep conversation, which no longer exists online since many years ago

Re:Using LLaMA with M1 Mac and Python 3.11 by leobg on Sunday March 12, 2023 @02:49PM (#35124436)
In the 1970s, people moved to Ashrams in India to lose their ego. In the 2020s, people are anxious for AI to conserve it beyond death. Quite a generational pendulum swing… :)
Re:Using LLaMA with M1 Mac and Python 3.11 by seydor on Sunday March 12, 2023 @02:55PM (#35124527)
They took their notebooks with them. That's why we need private models
Re:Using LLaMA with M1 Mac and Python 3.11 by notfed on Sunday March 12, 2023 @02:52PM (#35124481)
To summarize other answers: (1) free (2) private (3) censorship/ethics-free (4) customizable (5) doesn't require Internet
Re:Using LLaMA with M1 Mac and Python 3.11 by cocktailpeanut on Sunday March 12, 2023 @04:02PM (#35125465)
It's free. there's extremely cheap, and there's free. no matter how extremely cheap something is, "free" is on a completely different level and gives us a new assumption that enables a lot of things that are not possible when each request is paid (no matter how cheap it is)
Re:Using LLaMA with M1 Mac and Python 3.11 by Tepix on Monday March 13, 2023 @02:51AM (#35132026)
You do have to pay for electricity which can be significant when you have multiple GPUs
Re:Using LLaMA with M1 Mac and Python 3.11 by holoduke on Sunday March 12, 2023 @06:26PM (#35127102)
I am currently paying thousands per month for translations. (Billions of words per month) if we only could have a way to run a chatgpt quality like system localy, we could save a lot of money. I am really impressed by the translation quality of these late ai models.
Re:Using LLaMA with M1 Mac and Python 3.11 by chaxor on Monday March 13, 2023 @12:46AM (#35131212)
The cloud is actually inferior - It costs more over the long run, you can't see the probabilities or internals of the models, you can't change anything, and you have to give them all of your personal data that they log every second that your logged in (and probably when you're not). Running standard inference on GPUs for these models typically runs ~800$/month if you're actually using them often, which is much more than just running it on your own computer. If you need it away from the location just use a VPN. I don't understand the unnecessary use of 'the cloud' - especially in a supposedly "tech" forum - other than as a great triumph of marketing.