News for hackers. Stuff that matters.
Re:Serving 70B-Scale LLMs Efficiently on Low-Resource Edge D... by m3kw9 on Thursday October 03, 2024 @11:44AM (#41731790)
Ah the disk swap method
Re:Serving 70B-Scale LLMs Efficiently on Low-Resource Edge D... by _ache_ on Thursday October 03, 2024 @12:20PM (#41732139)
It's not disk swap. It's multi-devices LLM.
Re:Serving 70B-Scale LLMs Efficiently on Low-Resource Edge D... by wpietri on Thursday October 03, 2024 @01:09PM (#41732656)
I think the point is that it has the same sort of latency tradeoff that disk swap did: it's awful, but sometimes better than nothing.
Re:Serving 70B-Scale LLMs Efficiently on Low-Resource Edge D... by kridsdale3 on Thursday October 03, 2024 @01:09PM (#41732651)
That looked like an analogy. Back in the days of a mechanical arm moving magnetic fields around in our PCs, you could have the illusion of infinite RAM as long as you're ok with microsecond operations now taking two million times longer. This is akin.
Re:Serving 70B-Scale LLMs Efficiently on Low-Resource Edge D... by thelastparadise on Thursday October 03, 2024 @11:52AM (#41731855)
Is there any predictability/patterns for neuron/layer activation? If so, would it be reasonable to have a second tiny model that specifically tries to predict activation and preemptively swap those into memory?
Re:Serving 70B-Scale LLMs Efficiently on Low-Resource Edge D... by tcdent on Thursday October 03, 2024 @12:01PM (#41731946)
Depends on the architecture, but generally you just move through the layers linearly. Simple iteration.

The number of layers, and the amount of time spent in each of them, makes me think any benefit from pre-loading the layer ahead is negligible.

You really need the entire model on device to consider it performant.

Re:Serving 70B-Scale LLMs Efficiently on Low-Resource Edge D... by miki123211 on Thursday October 03, 2024 @12:04PM (#41731966)
This isn't how neural networks work.

For vanilla models, you always use all the weights. That isn't true for mixture-of-experts, though, and in that setting, your approach has merit.