News for hackers. Stuff that matters.
Re:Petals: Run 100B+ language models at home bit-torrent style by simongray on Monday January 02, 2023 @04:14AM (#34215958)
What an fascinating concept. I guess this won't be useful for any kind of realtime feedback system, though?
Re:Petals: Run 100B+ language models at home bit-torrent style by colordrops on Monday January 02, 2023 @04:46AM (#34216143)
Why not?
Re:Petals: Run 100B+ language models at home bit-torrent style by simongray on Monday January 02, 2023 @05:05AM (#34216233)
How would one make a reliable realtime system that depends entirely on unknown network conditions? Perhaps inside a closed network it is possible.
Re:Petals: Run 100B+ language models at home bit-torrent style by _joel on Monday January 02, 2023 @05:07AM (#34216247)
That's orthoganal to a realtime system. You can infer at a fair speed so realtime would be possible.
Re:Petals: Run 100B+ language models at home bit-torrent style by simongray on Monday January 02, 2023 @05:26AM (#34216369)
Guarantees are not orthogonal to realtime feedback, they are essential. If I write a query, it is not irrelevant whether it takes 1 second or 1 minute to return at any given moment.

You write that speed can be inferred, but the analogy that was used here is BitTorrent—and my experience with BitTorrent tells me that it certainly cannot be inferred.

Re:Petals: Run 100B+ language models at home bit-torrent style by _joel on Monday January 02, 2023 @05:29AM (#34216392)
If you read the article text and the response from the dev then yes, inference can happen at 1/s or if parallelised, more. I'm not sure what your parameters are for a realtime system. If you're talking about network reliability, that's a different issue. Yes it can infer quickly, can it do it reliably is another matter.
Re:Petals: Run 100B+ language models at home bit-torrent style by borzunov on Monday January 02, 2023 @05:07AM (#34216250)
A Petals dev here. It is not real-time, but we think the speed of ~1 token/sec may be enough for some interactive apps such as chat bots (especially, if you show tokens to a user once they are generated). You can try one at http://chat.petals.ml (heads-up: it may be laggy right now due to lots of HN users trying out the system).

Of course, you could do better if you have enough high-end GPUs to host the entire model yourself (3x A100 or 8x 3090). But if you don't, 1 token/sec is much faster than what you get with other existing methods.

Re:Petals: Run 100B+ language models at home bit-torrent style by dpflan on Monday January 02, 2023 @08:37AM (#34217672)
I have not read the technical details, apologies for ignorance, but is there an opportunity for caching?
Re:Petals: Run 100B+ language models at home bit-torrent style by jerpint on Monday January 02, 2023 @12:25PM (#34220651)
Probably not, since you need to compute the activations of unknown inputs and there could be infinitely many variations of them
Re:Petals: Run 100B+ language models at home bit-torrent style by KaoruAoiShiho on Monday January 02, 2023 @10:14AM (#34218726)
What are the speeds of other existing methods?
Re:Petals: Run 100B+ language models at home bit-torrent style by borzunov on Monday January 02, 2023 @02:15PM (#34222309)
Theoretical best-case for RAM offloading is 5.5 sec/token, for SSD offloading - 22 sec/token. Implementations we've tested are not faster than 10 sec/token though. See details in our paper: https://arxiv.org/pdf/2209.01188.pdf