Live data from Hacker News

Run LLMs at home, BitTorrent‑style

petals.dev

61–70 of 135 posts

Re: Run LLMs at home, BitTorrent‑style

#63
How does this defend against a malicious participant altering the output of their share of the larger computation? Even without some kind of method for e.g. producing attacker-determined network output, this system seems vulnerable to lots of nodes joining and simply returning junk results, effectively DoSing the system.

Re: Run LLMs at home, BitTorrent‑style

#64

looking at the list of contributors, way more people need to donate their GPU time for the betterment of all. maybe we finally have a good use for decentralized computing that doesn't calculate meaningless hashes for crypto, but helps the humanity by keeping these open source LLMs alive.

[deleted]

Re: Run LLMs at home, BitTorrent‑style

#65

I got a lurid NSFW comment, just asking for the time (using the Colab), so I assume some people are trolling the network? Human: what is the time? The time is 12:30 PM. Human: are you sure? Yes, I am sure. The time is 12:30 PM.^ ^ I'm a young {...}

Hi, a Petals dev here. means "end of sequence" for LLMs. If a model generates it, it forgets everything and continues with an unrelated random text (I'm sorry to hear that the model generated a disturbing text in this case). Still, I doubt that malicious actors are involved here.

Apparently, the Colab code snippet is just too simplified and does not handle correctly. This is not the case with the full chatbot app at https://chat.petals.dev - you can try it out instead.

Re: Run LLMs at home, BitTorrent‑style

#66

Earlier quoted context omitted.

> $0.10-$0.11/kWh for average residential rates you Americans don't know how good you have it...

That’s a cheap rate for sure. Southern California is $.36/.59/.74 peak. Super expensive.

Southern California? Time to buy some solar panels!

Re: Run LLMs at home, BitTorrent‑style

#67
post #63

How does this defend against a malicious participant altering the output of their share of the larger computation? Even without some kind of method for e.g. producing attacker-determined network output, this system seems vulnerable to lots of nodes joining and simply returning junk results, effectively DoSing the system.

Hi, a Petals dev here. We're developing validators that periodically go over all servers and ban the ones that return incorrect results. Additionally, clients can run data through multiple disjoint routes in the network and check that the results match.

This catches frequent attackers but doesn't provide 100% protection - so we expect people to set up a _private_ swarm if they want full correctness guarantees. For example, if you don't have enough GPUs to run an LLM yourself but have some hardware owners you trust to, you can set up a private Petals swarm and jointly run the LLM on geo-distributed hardware to process your data.

Re: Run LLMs at home, BitTorrent‑style

#68
Cool service. It's worth noting that, with quantization/QLORA, models as big as llama2-70b can be run on consumer hardware (2xRTX 3090) at acceptable speeds (~20t/s) using frameworks like llama.cpp. Doing this avoids the significant latency from parallelism schemes across different servers.

p.s. from experience instruct-finetuning falcon180b, it's not worth using over llama2-70b as it's significantly undertrained.

Re: Run LLMs at home, BitTorrent‑style

#69

Earlier quoted context omitted.

> $0.10-$0.11/kWh for average residential rates you Americans don't know how good you have it...

That’s a cheap rate for sure. Southern California is $.36/.59/.74 peak. Super expensive.

Only Cali and the most northeastern states seem to have these high rates. Every other continental state is under $0.14 https://www.eia.gov/electricity/state/

Re: Run LLMs at home, BitTorrent‑style

#70
post #68

Cool service. It's worth noting that, with quantization/QLORA, models as big as llama2-70b can be run on consumer hardware (2xRTX 3090) at acceptable speeds (~20t/s) using frameworks like llama.cpp. Doing this avoids the significant latency from parallelism schemes across different servers. p.s. from experience instruct-finetuning falcon180b, it's not worth using over llama2-70b as it's significantly undertrained.

Hi, a Petals dev here. You're right, there's no point in using Petals if your machine has enough GPU memory to fit the model and you're okay with the quantization quality.

We developed Petals for people who have less GPU memory than needed. Also, there's still a chance of larger open models being released in the future.

Post reply on HN