News for hackers. Stuff that matters.
Re:Ask HN: Can you crowdfund the compute for GPT? by alexb_ on Thursday January 12, 2023 @09:40AM (#34354122)
I've often wondered why a service doesn't exist that allows you to rent out your graphics card for the large data processing needed for training models. Like mining bitcoin except you are doing something actually useful and getting paid actual money for it. Example:

- Company Alpha needs $40,000,000 worth of cloud computing for their training model - Company Beta provides them said cloud computing for $30,000,000 from their pool of connected graphics cards - Individuals can connect their computers to the Company Beta network and receive compensation for doing so. In total $20,000,000 is distributed.

Company Alpha gets their cloud computing done for cheap, Company Beta pockets the $10,000,000 difference for running a network, the individuals make money with their graphics cards, except this time it's actual United States Dollars. What am I missing here that would make this type of business unfeasible?

Re:Ask HN: Can you crowdfund the compute for GPT? by londons_explore on Thursday January 12, 2023 @09:43AM (#34354162)
ML typically needs decently high bandwidth and low latency links between computers too.

Sometimes the algorithm or the data is commercially sensitive.

Those are the two main reasons a 'rent out my GPU while I sleep' scheme wouldn't work.

Neither are insurmountable though.

Re:Ask HN: Can you crowdfund the compute for GPT? by smoldesu on Thursday January 12, 2023 @09:45AM (#34354189)
Company Alpha will probably just call up AWS or Azure and sleep easy. Company Beta can't really compete because they have to pay both themselves and their contributors; AWS could sell ML compute at-cost and still turn a profit.

What made this type of business feasible/attractive for cryptocurrency is that the miners were Company Beta. There wasn't two mouths to feed or two pockets to line, just a direct and transparent reward scheme for people donating compute. Projects like Folding@Home have leveraged world-scale networks before, but I'm not aware of anyone who's managed to monetize it.

Re:Ask HN: Can you crowdfund the compute for GPT? by throwaway14356 on Thursday January 12, 2023 @10:51AM (#34355309)
It would require a problem that reasonably fits the solution.

You for example get a keyboards and a set of hands with each node, a webcam, a microphone.

I have no real idea but it seems the hand of cards isn't hopeless.

Re:Ask HN: Can you crowdfund the compute for GPT? by humanizersequel on Thursday January 12, 2023 @10:51AM (#34355329)
>AWS could sell ML compute at-cost and still turn a profit

How? Definitionally, they wouldn't be turning a profit.

Re:Ask HN: Can you crowdfund the compute for GPT? by smoldesu on Thursday January 12, 2023 @10:55AM (#34355400)
Traditionally, people don't just get one thing from AWS. If their ML compute doesn't make money, S3 Object Storage will. My bigger point is that AWS and Azure have much greater control over their margins than a business like the one OP was describing.
Re:Ask HN: Can you crowdfund the compute for GPT? by latchkey on Thursday January 12, 2023 @10:53AM (#34355376)
Large enough miners don't have the right hardware. Mining requires a tiny cpu, very little ram and gpus with a max of 8gb, oh and 100mbit. There was never an incentive to buy hardware that could be reused for other purposes since mining itself was such a cash cow.

Company Beta likely started off with hardware for AI/ML and mined on the side when they didn't have enough customers.

Re:Ask HN: Can you crowdfund the compute for GPT? by WithinReason on Thursday January 12, 2023 @09:45AM (#34354195)
This exists already, but I can't find a link.

Edit: I was probably thinking of vast.ai

Re:Ask HN: Can you crowdfund the compute for GPT? by qwertyforce on Thursday January 12, 2023 @09:48AM (#34354235)
Re:Ask HN: Can you crowdfund the compute for GPT? by IshKebab on Thursday January 12, 2023 @09:50AM (#34354263)
Yeah someone posted something like that on HN maybe a year ago.

It's not especially useful though because most companies (who are actually going to pay for this service) aren't going to want to send their training data to random people, and ML training needs high performance links between the cards. Plus you'd have to deal with the fact that you're running on 100 different GPU models.

Re:Ask HN: Can you crowdfund the compute for GPT? by brap on Thursday January 12, 2023 @10:39AM (#34355117)
In addition to privacy, performance, and portability, also:

* Servers in a datacenter are much more reliable than a network of PCs (power goes off, someone decides to play Crysis, etc)

* People will find ways to scam you (pretend like they’re doing the calculation while not actually doing it)

* Economies of scale means a datacenter will probably be cheaper than what you’d have to pay the PC owners (power consumption, wear, etc)

I’ve pitched this idea more than a decade ago and quickly realized it doesn’t work in practice.

Re:Ask HN: Can you crowdfund the compute for GPT? by drakenot on Thursday January 12, 2023 @02:00PM (#34358680)
What if you remove the financial incentive?

I'd contribute my GPU time to a Folding@Home style project if it meant that we had powerful, open LLMs that were free to use. I'm positive many others would as well.

As far as worrying about scammers, could you send the same compute task and training data to multiple clients and validate the results against each other? If they differed, you could throw the results and try again, or send it to a 3rd to break the tie.

Re:Ask HN: Can you crowdfund the compute for GPT? by brap on Thursday January 12, 2023 @02:32PM (#34359095)
You could remove the financial incentive, but then you’re really limiting the pool of resources (you have to rely on people’s kindness, which only works, partially, in noble cases like finding a cure for cancer or searching for extraterrestrial life).

By sending the work to 3 people each time, you’re effectively cutting your (already limited) resource pool by 66%.

Re:Ask HN: Can you crowdfund the compute for GPT? by rubyist5eva on Thursday January 12, 2023 @09:50AM (#34354265)
> Like mining bitcoin except you are doing something actually useful and getting paid actual money for it

But then how would crypto-scammers run ponzi after ponzi after ponzi if they did that?

Re:Ask HN: Can you crowdfund the compute for GPT? by throwaway14356 on Thursday January 12, 2023 @10:54AM (#34355389)
oh? That seems to be the answer. They wont actually have to care what the compute costs if they can print money back stage.
Re:Ask HN: Can you crowdfund the compute for GPT? by rubyist5eva on Thursday January 12, 2023 @02:02PM (#34358717)
Sounds like work, as long as they prove they can prove they did it somehow - perhaps all the other computers that are sharing compute could also verify they did it somehow?
Re:Ask HN: Can you crowdfund the compute for GPT? by qorrect on Thursday January 12, 2023 @09:52AM (#34354291)
Re:Ask HN: Can you crowdfund the compute for GPT? by jw1224 on Thursday January 12, 2023 @10:11AM (#34354624)
Also https://www.runpod.io/ (which I’ve been a very happy user of)
Re:Ask HN: Can you crowdfund the compute for GPT? by alexb_ on Thursday January 12, 2023 @09:57AM (#34354390)
Nice! Knew once I thought about it that someone had to have done it already.
Re:Ask HN: Can you crowdfund the compute for GPT? by latchkey on Thursday January 12, 2023 @10:56AM (#34355424)
Re:Ask HN: Can you crowdfund the compute for GPT? by cuuupid on Thursday January 12, 2023 @09:52AM (#34354300)
Surprised no one has commented this but the latency requires the model to be trained in tiny fragments on each device which is currently a field of research that is being explored. As it stands now basically all of a model needs to be loaded into memory.

There’s a whole field here and people exploring this problem, colloquially solving this would enable Federated Learning and whoever figures this out will far eclipse OpenAI (if it’s ever solved).

Re:Ask HN: Can you crowdfund the compute for GPT? by k2xl on Thursday January 12, 2023 @10:33AM (#34355014)
Where can I read more about this field of research?
Re:Ask HN: Can you crowdfund the compute for GPT? by latchkey on Thursday January 12, 2023 @10:50AM (#34355293)
https://arxiv.org/ has a ton of papers on it.
Re:Ask HN: Can you crowdfund the compute for GPT? by elicksaur on Thursday January 12, 2023 @11:02AM (#34355525)
Do you have some good search terms to get started down the rabbit hole?
Re:Ask HN: Can you crowdfund the compute for GPT? by franl on Thursday January 12, 2023 @11:27AM (#34356015)
This one is a few years old, but seems interesting: https://arxiv.org/abs/1802.05799v2
Re:Ask HN: Can you crowdfund the compute for GPT? by franl on Thursday January 12, 2023 @11:23AM (#34355924)
I too would like to go down this rabbit hole. I am going to poke around using the terms “distributed learning” and “federated learning” (They’re different areas, but somewhat related as far as I understand).
Re:Ask HN: Can you crowdfund the compute for GPT? by vagabund on Thursday January 12, 2023 @01:47PM (#34358474)
Probably the biggest recent result: https://arxiv.org/abs/2209.04836 (author thread: https://twitter.com/SamuelAinsworth/status/15697194946455265...)

See also: https://github.com/learning-at-home/hivemind

and more to OP's incentive structure: https://docs.bittensor.com/

Latter two intend to beat latency with Mixture-of-Expert models (MoEs). If the results of the former hold, it shows that with a simple algorithmic transformation you can merge two independently trained models in weight-space and have performance functionally equivalent to a model trained monolithically.

Re:Ask HN: Can you crowdfund the compute for GPT? by eternalban on Thursday January 12, 2023 @11:39AM (#34356287)
A broad covering term is MLOps (like DevOps).

https://en.wikipedia.org/wiki/MLOps

Armed with that term, we get (haven’t read):

Machine Learning Operations (MLOps): Overview, Definition, and Architecture

https://arxiv.org/abs/2205.02302

Re:Ask HN: Can you crowdfund the compute for GPT? by joaogui1 on Sunday January 15, 2023 @04:08PM (#34393422)
This initiative is getting some pretty good practical results https://arxiv.org/abs/2209.01188, taking a look at their citations should lead you to other examples in the field
Re:Ask HN: Can you crowdfund the compute for GPT? by Tostino on Thursday January 12, 2023 @10:50AM (#34355301)
Well, that explains the lack of a BOINC client for ML tasks at the moment.
Re:Ask HN: Can you crowdfund the compute for GPT? by cocochanel on Thursday January 12, 2023 @11:00AM (#34355483)
isn't this already implemented in iPhones for their autocomplete suggestions?
Re:Ask HN: Can you crowdfund the compute for GPT? by Aromasin on Thursday January 12, 2023 @12:02PM (#34356745)
To piggy back this comment, Federated Learning actually has a lot of other uses beyond just crowdsourcing. It has benefits to data privacy also. The medical industry has struggled sharing their data with other institutions without compromising their information. They're using it to decentralize the model making process.

Intel is doing some work with Penn on the subject now, if people want to read further: https://www.intel.com/content/www/us/en/newsroom/news/intel-...

Re:Ask HN: Can you crowdfund the compute for GPT? by alexmolas on Thursday January 12, 2023 @03:36PM (#34359914)
AFAIK Federated Learning is not a magic solution. This post explains how you can exploit FL if there's some untrusted server (http://www.cleverhans.io/2022/04/17/fl-privacy.html)
Re:Ask HN: Can you crowdfund the compute for GPT? by sfmike on Friday January 13, 2023 @12:40AM (#34364346)
bitorrent for GPUs?
Re:Ask HN: Can you crowdfund the compute for GPT? by throwawaysleep on Thursday January 12, 2023 @09:55AM (#34354356)
Re:Ask HN: Can you crowdfund the compute for GPT? by sramam on Thursday January 12, 2023 @09:59AM (#34354419)
https://petals.ml/ seems to be headed in that direction.
Re:Ask HN: Can you crowdfund the compute for GPT? by welshwelsh on Thursday January 12, 2023 @10:12AM (#34354638)
>Like mining Bitcoin except you are doing something actually useful and getting paid actual money for it

A business paying USD is never going to be competitive with a decentralized crypto compute market. Better to build something just like mining BTC, except you do useful work, and are paid in a cryptocurrency you can exchange for USD. Then businesses can build on top of that to make it more user friendly.

The Golem network already lets you do this with CPU. It's way cheaper than centralized cloud computing could ever be, less than $0.003 per core per hour.

There are plans to add GPU support to Golem, but they have been on the backlog for a long time because there is a shortage of devs.

Re:Ask HN: Can you crowdfund the compute for GPT? by theamk on Thursday January 12, 2023 @11:42PM (#34364027)
I don't think businesses would be able to ever trust decentralized compute market. Where is the guarantee that the data/code that is sent to the network would not be intercepted and analyzed?

It's much safer to sign a contract with a real organization, especially the one which has a reputation to uphold. If someone like DigitalOcean steals data from servers, they can be sued, and there will be penalties. If some decentralized miner somewhere does that? Nothing you can do.

This only leaves decentralized compute to the applications where neither the data nor code does not matter. While I am sure there are applications like those (probably related to open-source or cryptocurrencies) I doubt they'll bring much money.

(And don't say "homomorphic encryption" -- the overhead there is so high it is much cheaper to just get a centralized server)

Re:Ask HN: Can you crowdfund the compute for GPT? by jakespracher on Thursday January 12, 2023 @10:12AM (#34354644)
Vast.ai does this
Re:Ask HN: Can you crowdfund the compute for GPT? by rysertio on Thursday January 12, 2023 @10:32AM (#34354989)
There's a lot of problems. 1. How can I confirm that you've done the computation? 2. Privacy and security issues. Can I trust you too process my sensitive information? 3. Availability: is there a guarranty you won't just do half of it and then be on a hiatus for 2 months. But for everywhere these problems are solved we have decentralized cloud computing. For others you need to solve these problems.
Re:Ask HN: Can you crowdfund the compute for GPT? by latchkey on Thursday January 12, 2023 @10:41AM (#34355145)
There are a number of entities working on this problem. Plenty of papers in Arvix on it as well.
Re:Ask HN: Can you crowdfund the compute for GPT? by bitxbitxbitcoin on Thursday January 12, 2023 @10:35AM (#34355044)
Some blockchain projects attempted to tackle this. Check out Akash.
Re:Ask HN: Can you crowdfund the compute for GPT? by latchkey on Thursday January 12, 2023 @10:42AM (#34355152)
Akash is more about k8s, paid for by tokens.
Re:Ask HN: Can you crowdfund the compute for GPT? by kordlessagain on Thursday January 12, 2023 @10:43AM (#34355183)
The Lightning Network may be used for invoices, identity and payment of use of model. It can also likely be used to handle prompts. Regarding privacy, not all things need to be private and if they do they should be run on a single tenant infrastructure. OpenAI is a multi-tenant cloud model, so guarantee of privacy there may be protected only by license and use agreement.
Re:Ask HN: Can you crowdfund the compute for GPT? by alasdair_ on Thursday January 12, 2023 @12:06PM (#34356818)
>1. How can I confirm that you've done the computation?

The same problem applies to things like Mechanical Turk and other croudsourcing. The way I've dealt with the issue in the past is to start with zero trust and to have them do computations that I already know the answer to. After that, they do computations that are matched with a random other participant (the two results should match, if they don't, compare against a third random participant).

Later, when trust has been developed, you can start assuming their work work is trustworthy, but still check it randomly with computations you know the answer to, or a second person doing the same computation.

Yes, this adds overhead (roughly 10% in aggregate) but it works fairly well. It works even better if there are penalties that you can impose for ffraudulent results (like cancelling ALL owed payouts).

Re:Ask HN: Can you crowdfund the compute for GPT? by bobkazamakis on Thursday January 12, 2023 @01:29PM (#34358201)
> have them do computations that I already know the answer to.

By definition, this is not having them do any computation. The proper solution at this time would be some trapdoor function that is easily verifiable (proof of work), at least while P != NP

Re:Ask HN: Can you crowdfund the compute for GPT? by alasdair_ on Friday January 13, 2023 @12:04AM (#34364158)
>By definition, this is not having them do any computation.

If I ask you to compute the first million digits of pi to the power of 1.23456 and I already know the answer to validate it, how is this "by definition" not computation?

Re:Ask HN: Can you crowdfund the compute for GPT? by mitchellpkt on Thursday January 12, 2023 @01:33PM (#34358258)
Good questions. Hmm do you think maybe it would be viable if the payouts were based on [model] performance rather than ostensible training time?

There's a useful asymmetry we can exploit: finding weights that perform well is computationally intensive and takes time, but scoring a set of weights is fast and easy.

A number cruncher could spend 2 weeks training a model, and then when they submit the results it takes me 10 seconds to score the model - to verify the quality of the results, and calculate the performance-based payout. In the #1 or #3 scenario where they didn't do or didn't complete the computations, they wouldn't have a well-trained model to submit for payout. (The lost time in #3 is inconvenient in time-sensitive situations, but mechanisms exist to address that - SLAs, up-front collateral, etc)

Regarding privacy, that's an EXTREMELY good and important question. There's some really neat prior art for privacy-preserving machine learning that could be useful here, e.g. https://arxiv.org/abs/2106.07229 "Privacy-Preserving Machine Learning with Fully Homomorphic Encryption for Deep Neural Network"

(note I'm approaching this as an interesting DistML thought experiment, not proposing it as an immediately viable or sensible initiative)

Re:Ask HN: Can you crowdfund the compute for GPT? by kmeisthax on Thursday January 12, 2023 @05:05PM (#34360912)
SETI@home and Folding@home had to deal with these problems decades ago - even with a closed-source client people would mod it in questionable ways to cheat the leaderboards.

Any computation can be verified as having been done by, at a minimum, checking for reproducibility. This requires having each work unit be done twice and only issuing credit if both units match. For deep-learning applications "match" is relative: different compute accelerators are going to give different results. So, instead we can insist that all the floating-point outputs on the model have to match up to the first n bits of mantissa. Neural networks are actually really insensitive to small perturbations in their weights, and it's common to train on 16-bit floats to save time.

We can also exploit the loss function itself as a verification mechanism. Generally speaking training is more compute-heavy than inference[0], so we can just run the updated model on the training set and confirm that your trained model is better than the original you were provided with to start from. This will need upper bounds, too - if only to catch people trying to overfit the model to guarantee they get credit.

As for privacy and security... the answer is to not train on private data or things that people do not want to be trained. Period. This isn't even a problem solely with distributed computing. All AI training should be limited to either data provided with consent, or data that's so old that training on it would not cause harm.

Availability is a problem, but not necessarily one that most distributed computing projects actually have to deal with. There is a minor incentive to participate with the credit system; there's a leaderboard for the fastest/highest credit users and teams. And people do compete for those leaderboard slots, because that's effectively ad space.

[0] Model execution.

Re:Ask HN: Can you crowdfund the compute for GPT? by moneywoes on Thursday January 12, 2023 @10:34AM (#34355041)
Why not just use AWS?
Re:Ask HN: Can you crowdfund the compute for GPT? by latchkey on Thursday January 12, 2023 @10:42AM (#34355158)
Price and dependency on a single entity.
Re:Ask HN: Can you crowdfund the compute for GPT? by alasdair_ on Thursday January 12, 2023 @12:13PM (#34356984)
> Why not just use AWS?

Physical goods vendors that sell through Amazon have found that once they sell something highly in demand, and profitable, Amazon uses all of their internal knowledge of the sales to create their own Amazon Basics version of the same good and then promotes that as a cheaper alternative, capturing most of the profit.

There is absolutely no reason not to believe that AWS will do the same thing and use their knowledge of the workloads and exact hardware requested to compete with you. The fact that they haven't done so yet isn't much evidence against them doing this in the future, since other parts of the same company already follow this approach.

Re:Ask HN: Can you crowdfund the compute for GPT? by eptcyka on Thursday January 12, 2023 @10:36AM (#34355078)
Data locality is an issue with large models even when using supercomputers with very high bandwidth fabric.
Re:Ask HN: Can you crowdfund the compute for GPT? by latchkey on Thursday January 12, 2023 @10:45AM (#34355215)
The compute workloads for AI/ML are vastly different than mining, which means that the hardware requirements are totally different (and actually a huge capex investment).

Individuals renting out their home compute for things like this suffer from the problem of supporting so many different types of hardware profiles. BOINC is a prime example of this, but it doesn't have a funding mechanism.

Re:Ask HN: Can you crowdfund the compute for GPT? by shivekkhurana on Thursday January 12, 2023 @11:04AM (#34355567)
There is a service like that on Ethereum. It's called Golem [https://www.golem.network/].
Re:Ask HN: Can you crowdfund the compute for GPT? by Aaronstotle on Thursday January 12, 2023 @11:26AM (#34355968)
There a few crypto projects that aim to do this, this one is focused on artists

https://rendertoken.com

I'm not sure whether or not they will be successful.

Re:Ask HN: Can you crowdfund the compute for GPT? by JL-Akrasia on Thursday January 12, 2023 @11:26AM (#34355988)
Here's a whitepaper for a project called AI Compute Token:

https://docs.google.com/document/d/1NTsnUVRzBfK6y7WNX2JURogD...

Re:Ask HN: Can you crowdfund the compute for GPT? by drexlspivey on Thursday January 12, 2023 @11:27AM (#34355999)
When Playstation 3 came out there was an app that shipped by default where you could leave it running and it would use your CPU for protein folding calculations to help researchers figure out the structure of proteins.
Re:Ask HN: Can you crowdfund the compute for GPT? by fxtentacle on Thursday January 12, 2023 @11:39AM (#34356285)
You can rent out your GPU to vast.ai

But the issue with large language models is that you need ms-latency access to TBs of data, or else you won't be able to saturate your GPUs with useful work.

Re:Ask HN: Can you crowdfund the compute for GPT? by NonTrivialZer0 on Thursday January 12, 2023 @11:40AM (#34356295)
The ACT token is a decentralized, token-based solution for powering AI inference that can be used to purchase compute resources on GCP, AWS, Azure, and the decentralized network. Each token is equivalent to a certain number of inferences by the AI Compute Unit (ACU), which is a stable average of GPU compute instances available in the pool.
Re:Ask HN: Can you crowdfund the compute for GPT? by Patrick_Devine on Thursday January 12, 2023 @12:24PM (#34357199)
I tried building a startup around this back in ~2012 called "Netkine". The basic premise was that compute is fungible and that all compute has a price (regardless of whether it is from a datacenter, or from someone's desktop PC). We seeded different compute on different networks around the SF Bay Area (either in low cost datacenters, or different networks like Comcast/AT&T) and had a customized version of Linux which could securely boot on a Windows gaming machine. You could then carve out different sized virtual machines on any machine in the network, and it would seamlessly create a VPN tying each of the instances together.

Our biggest problem was finding customers on the demand side. What is the killer application which can take use of that kind of compute with those kinds of networking properties? What are the use cases? No one has written software that takes advantage of that kind of compute, because it's essentially a solution looking for a problem.

Re:Ask HN: Can you crowdfund the compute for GPT? by tehsauce on Thursday January 12, 2023 @12:39PM (#34357450)
It does exist! Those most notable are vast.ai and runpod.io I've been able to run ML experiments that would have cost 10s of thousands of dollars for a tiny fraction of that using vast.
Re:Ask HN: Can you crowdfund the compute for GPT? by asciimike on Thursday January 12, 2023 @02:07PM (#34358781)
Lots of these services:

- Fluidstack: https://fluidstack.io

- Vast: https://vast.ai

- QBlocks: https://qblocks.cloud

- RunPod: https://runpod.io

- Sonm: https://sonm.com (blockchain)

- Golem: https://golem.network (blockchain)

- Rentaflop: https://rentaflop.com (rendering specific, blockchain)

- RNDR: https://rendertoken.com (rendering specific, blockchain)

If you want HPC specific cloud providers:

- Crusoe Cloud: https://crusoecloud.com

- Coreweave: https://coreweave.com

- Lambda Labs: https://lambdalabs.com

- Paperspace: https://paperspace.com

As others have pointed out, the decentralized clouds can't offer high performance interconnects (e.g. InfiniBand) that a lot of folks are using for LLM training. There are definitely initiatives underway to reduce dependence on these interconnects and build performant distributed training (again, some threads below mention this), but I think it's mostly academic at this point.

Disclosure: I run product at Crusoe Cloud, which aims to provide ML training at half the cost of a hyperscaler, while also being carbon reducing (https://crusoecloud.com/climate-impact/).

Re:Ask HN: Can you crowdfund the compute for GPT? by WhackyIdeas on Thursday January 12, 2023 @02:23PM (#34358984)
Considering the power of these AI models, it is quite clear to me that companies like Microsoft and Google should ABSOLUTELY not have the monopoly on them because they simply cannot be trusted as is, let alone with powerful AI.

If there was a feasible crowdfunded solution to this and putting it in the hands of the people - I would certainly be prepared to lay down up to £5K.

Re:Ask HN: Can you crowdfund the compute for GPT? by FractalHQ on Friday January 13, 2023 @07:28PM (#34375885)
Sheepit[0] does this with peoples Blender files, it’s awesome. I use it often and donate gpu time when I’m not using it.

[0] https://www.sheepit-renderfarm.com/home