Live data from Hacker News

Fork of Facebook’s LLaMa model to run on CPU

github.com

1–10 of 178 posts

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

#4
post #2

Since this is pytorch it should run on cpu anyway. What am I missing?

Reading the patch: https://github.com/facebookresearch/llama/compare/main...mar...

Looks like this is just tweaking some defaults and commenting out some code that enables cuda. It also switches to something called gloo, which I'm not familiar with. Seems like an alternate backend.

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

#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.

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

#8
post #3
post #2

Since this is pytorch it should run on cpu anyway. What am I missing?

I guess the simple fact that it didn't before his patch?

Usually you just trivially have the model run on cpu or gpu by simply writing .cpu() at specific places, so he's wondering why this isn't the case here.
Post reply on HN