Live data from Hacker News

Fork of Facebook’s LLaMa model to run on CPU

github.com

51–60 of 178 posts

Re: Fork of Facebook’s LLaMa model to run on CPU

#51
post #7

It's useless before the model gets instruction and preference tunings. Won't even follow a simple ask, it will just assume it is a list of questions and generate more, or continue with slightly related comments. FB trained a LLaMA-I (instruction tuned) variant for sports, just to show they can, but I don't think it got released.

Surely it would work with a format like:

User:

Assistant:

Re: Fork of Facebook’s LLaMa model to run on CPU

#52

Earlier quoted context omitted.

I got one token every 8 minutes or so.

Is that good? Not good?

A token is approximately 4 characters. So, four characters per 8 minutes is pretty slow. This comment would take 1224 minutes to generate, if I was an AI.

Re: Fork of Facebook’s LLaMa model to run on CPU

#54
post #9

Unlike Stable Diffusion, I don't stumble upon people who actually use it. Are there examples of the output this can generate? What happens once you manage to run the model?

I've been playing around with LLMs recently and it's definitely interesting stuff. I've mostly focused on roleplay/MUD applications and it's not quuitteee there but it's pretty good, and it's idiosyncrasies are often hilarious.

(when fed the leaked bing prompt, my AI decided it was Australian and started tossing in random shit like "but here in Australia, we'd call it limey green" when asked about chartreuse, i assume because the codename for bing chat is 'sydney')

Re: Fork of Facebook’s LLaMa model to run on CPU

#56

Earlier quoted context omitted.

that's literally all I did (plus switching the tensor type). I'd imagine people are posting and upvoting this not because it's actually interesting code but rather just because it runs unexpectedly fast on consumer CPUs and it's not something they considered feasible before.

How are you getting this to run fast? I'm on a top of the line M1 MBP and getting 1 token every 8 minutes.

Try switching all the .cuda() to .mps() I got a 100x speedup on a different language model on a Macbook M1 Air.

https://pytorch.org/docs/stable/notes/mps.html

Re: Fork of Facebook’s LLaMa model to run on CPU

#57

Can it beat mark zuckerberg at congress deposition wordsmithing though?

Someone must have trained an LLM for that for sure.

Oh yes “”” Hackernews senator: “”Someone on the internet said meta aka Facebook is not considered a real data native, clean coder and high IQ company unless your new language model exceeds the elegance and slipperiness of mark Zuckerbergs (you) language output in senate hearings. he is smoother than a lake in the metaverse.“”

Mark LLM: “ Yes, unfortunately, the media and our competitors are all over the idea that Meta is a “dirty company”. They have tried to spin all our successes and accomplishments in a negative light. This has been incredibly frustrating and demoralizing for us, but we know that we are working hard to build a great company and we are confident that our efforts will be rewarded. In the end, our products speak for themselves, and despite all the negative media coverage we are focused on continuing to build great products for our users and being an amazing place for them to socialize in the virtual world.”

Re: Fork of Facebook’s LLaMa model to run on CPU

#58
post #23
post #15

The thing I like the most about the current AI wave is the pressure is putting on computing hardware. Yes, mobile phones with long battery lives are cool and all of that, but most cool things I like are locked behind huge computational requirements.

What we will get are specialized hardware, with not so open APIs anyway. With a bunch of people trailling behind with "it kind of works" open alternatives.

It sounds like you are complaining about capitalism :-)

It's not so bad. Nvidia could come and say, "hey, I'm going to lock down your GPU so that you can only use it to render polygons in my whitelisted list of video-games, and then you pay us $$$$$$ to buy our 'datacenter' thingy for anything else." But if they do it, people will go and buy the competitor's product.

And yes, probably their 4090 are being bought by some rich kids with their parents' money, but I reckon most of it are sales to professionals, people who would justify their purchase decision with more than playing First-person-shooters. I for example play videogames with my gf, and we have equivalent GPUs. Hers is AMD and costs less than mine, even if it does the same, but I went for Nvidia so that PhysX were available and I could use Pytorch and Numba+GPU and even C++ CUDA. The moment Nvidia locks that down, I'll have to switch to AMD.

Re: Fork of Facebook’s LLaMa model to run on CPU

#59
post #28

Earlier quoted context omitted.

I wasn't looking for a commercial use but its an Interesting point. Would it be possible to prove that someone is using it commercially? 1) Spin it up on a cluster in Belarus 2) ??? 3) Profit?

It could be watermarked

how?
Post reply on HN