Clustering Raspberry Pis together to learn distributed training/inference
Posted by East-Muffin-6472@reddit | LocalLLaMA | View on Reddit | 11 comments
Hey everyone!
Recently, I released a blog on how to setup a cluster out of your Mac Minis for distributed training and inference
Now its time to do the same with Raspberry Pis!
Why Raspberry Pis?
quite cheap (30-50 dollars) easy to use full blown OS the size of a credit card (small enough for edge projects)!
This is a part of my current series where I’ll be releasing blogs and guides around learning distributed learning and building your own small compute clusters.
The goal is simple: help more people get started with running and training AI models using the hardware they already have lying around. Old laptops, MacBooks, Mac minis, Jetson Nanos, Raspberry Pis, even phones and tablets.
Distributed learning often feels intimidating from the outside, but it’s genuinely one of the coolest areas in systems and AI once you start playing with it yourself.
Before we get into the fun stuff like distributed inference and training, the first few posts will focus on setting up hardware properly and building a working cluster environment, basically subtle amount of cabling and networking!
The early guides will specifically cover setups around:
- MacBooks and Mac minis (Done!)
- Jetson devices
- Raspberry Pis (This one hehe)
After that, we’ll move into quick demos (smolcluster ) , and gradually learn the fundamentals side-by-side while actually running models across devices.
I’m building this alongside smolcluster, so a lot of the content will stay very hands-on and practical instead of purely theoretical.
Hopefully this helps more people realize that distributed AI systems are not something reserved only for giant datacenters anymore.
There is just one question I want to answer: are heterogenous clusters, like what I am trying to make above, even possible for running models?
Well, we'll know and till then do read me blog and let me know what you all think! Any comment, feedback etc are very welcome. (pls be gentle since its my first time writing one all by myself haha)
Hail LocalAI!
Silver-Champion-4846@reddit
What about Raspberry 5 clusters?
East-Muffin-6472@reddit (OP)
Well if you got money haha
Silver-Champion-4846@reddit
That is the answer to every hardware question
Due_Duck_8472@reddit
Im running frontier modells on my rpi cluster at 2500tk/s
Silver-Champion-4846@reddit
Request denied. Reason: Satan.is_hailable=False
East-Muffin-6472@reddit (OP)
Woah! Spill the tea man!
Altruistic_Heat_9531@reddit
Nice setup, but for those of you who want to study distributed system. Your single multi core CPU is already enough (also it is enough for getting you a headache). Dont even need GPU. Just good ol' GLOO and TCP Store on Torch, with a classic dist.init.process_group. Anyway nice article OP.
croholdr@reddit
ripi's arent 40-60$ anymore. they're at least 85$ - 197$
East-Muffin-6472@reddit (OP)
You can get used ones on eBay right? I saw the listings Well in my country you get the bales at least for that price haha
croholdr@reddit
yah when you live in the usa the price of these are sky high because everyone thinks they got used gold.
also in the end times we wont be able to afford to run a normal computer 24/7; so i think thats what american tech nerds are preparing for.
East-Muffin-6472@reddit (OP)
Woah man I see