how long for one token to infer on an average cpu?
Fork of Facebook’s LLaMa model to run on CPU
11–20 of 178 posts
Re: Fork of Facebook’s LLaMa model to run on CPU
#12how long for one token to infer on an average cpu?
Re: Fork of Facebook’s LLaMa model to run on CPU
#13Since 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
#14Earlier quoted context omitted.
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.
Re: Fork of Facebook’s LLaMa model to run on CPU
#15Re: Fork of Facebook’s LLaMa model to run on CPU
#16Since 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
#17Re: Fork of Facebook’s LLaMa model to run on CPU
#18The 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.
Re: Fork of Facebook’s LLaMa model to run on CPU
#19Earlier quoted context omitted.
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.
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.
But a lot of those people want to play with LLMs.