r/DistributedComputing • u/rahulsanjay18 • Jul 07 '21
Looking for some guidance on making my own distributed computer cheap for ML/Scientific computing purposes
Hello,
I am very new to distributed computing and I wanted to make one that can train neural networks. I wanted to know if you all had any tips. I saw maybe there was potential to do so with the raspberry pi (multiple raspis in a beowulf cluster) but I also see a lot of people saying otherwise, and some people say the oodroid is better.
I have no idea what I am doing so here is what I am asking:
1.) Is there a cheap way I can build one of these computers? I don't have an exact budget but I would like to avoid spending a lot. I would prefer smaller boards approx the size of the raspberry pi, for the sake of keeping the overall size as small as possible
2.) What resources should I look at to get a good idea of learning distributed computing and the stuff that goes along with it? I have a BS in Computer Engineering, so I know the basics about computers but not specifically distributed computers. I know that there aren't guides that will spell out exactly what to do (I found one with raspi and tensorflow but that's about it for viable solutions)
EDIT: Also I heard hierarchical computing might be a good idea???
Thank you for the help!
3
u/[deleted] Jul 08 '21
The raspberry pi works pretty well for tinkering with this.
It won't have a lot of power and will be pretty limited in what it can do, but is a relatively cheap way start building and learning about it.
An example project is here:
https://projects.raspberrypi.org/en/projects/build-an-octapi
2
u/boersc Jul 08 '21
You'd need a central hub that can run the actual distribution of working blocks and several 'clients' that can do the work. Do you already have something, or are you starting from scratch? I'd say that a Pi would work to experiment and maybe work as the hub, but for the actual work, you'd probably be needing more computational power (or a LOT of Pi's). Of course all dependant on the calculations needed and size of the entire workspace.
But, if it's just about the technique, a set of (three or more) Pi's should definitely suffice. You would be able to set up the hub on one and figure out how to distribute working blocks to the clients and get the results back.
2
u/jhollowayj Jul 08 '21
If you wanted to split this project up, you might be able to do the distributed side of things using something like docker and keep it all on the same physical machine. In my experience, a single decent gpu would perform better than rpi cluster, dollar for dollar. But you would lose out on the distributed side of the workflow.
But if you are wanting to the cluster and want to practice ml on it, go for it!
2
u/atchon Jul 08 '21
I would take a look at the NVIDIA Jetson Nano if you want this for neural networks. It’s a small board like a raspberry pi but has a GPU and is specifically targeted for machine learning.
As others have mentioned you basically would want a couple clustered together. If you search jetson nano cluster there are various write ups or videos.
Some different tools you’d probably want to look into would be: slurm, MPI, kubernetes. Slurm or slurm+mpi are more your traditional setup for an HPC, and Kubernetes is more the trendy new way data science groups are setting up clusters. Basically just ways to manage resources and allocate nodes for tasks.
There is also the r/picluster subreddit that may give you some ideas.
1
u/A27_97 Jul 14 '21
I doubt distributed compute would be useful for training neural networks. Certainly not at this level. It’s an interesting project and proof of concept to try for sure, but I am speculative of it’s usefulness. The best way is to use a GPU or stack multiple GPUs. The cores are optimized for distributed training and data loading.