Main Menu

Date / Time

 

About Me

preview.jpg

Our Motto is "Nothing is Impossible."   Just ask us, we will build you anything.  - Todd W. Byars, Founder

Read more..

Recent Posts

Saving the World with Raspberry Pi 5 clusters for LLM type AI's

on 11 Jul 2025  Posted by CorpRattX  Category: Technology  Comments (1)
CDudes_JPG_Logo_for_Art_2020.jpg

Let's start with a bit of History and the evolution of High Power Consumption Computers and Data Center as well as our research over the decades.

The Computer Dudes, Inc has been a leader in low power Single Board Computer research and design since the company's founding in 1997. At that time we were using Intel 486 single board computers that were about the size of an ISA Sound or Ethernet Card. The rest of the world was still using huge ISA type motherboards that required a "card" for each function such as Video Card, Sound, Ethernet, Modem, Printer, Hard Drive Controller or others.

As "Moore's Law" progressed Single Board Computers, SBC's, grew smaller, more powerful and required less power.

The advent of the Raspberry Pi series rapidly expanded our work in this area and by the Raspberry Pi 4 we were able to run the equivalent of "full sized computers" off a single RPI 4.

During the evolution of the Raspberry Pi series SBC's we worked on Clustering to increase power and to build servers that were essentially modular so more "nodes" could be added to increase power and performance. We also experimented with using Cloud Architecture to increase the speed, however, we quickly determined that "cloud architecture" was not secure.

In the late 2000's we began developing custom flat and then circular "computer cores" to hold each of the SBC's instead of standard tower or rack mounted server designs. The computer cores too up much less space, were lighter, and allowed for easier maintenance and repair.

In the 2010's we began designing custom computer cases and DC power supplies for our Computer Cores - including "Outdoor" solar and battery powered computers and super computers.

in the early 2020's we designed the worlds first Off Grid, Outdoor, No Building Required Computers - the "Solar One Monoliths." The Solar One Monoliths are made of Granite, Glass and Steel to hold the round 3D printed Computer Cores and were run off custom DC Solar and Battery Power Systems.

By 2022 we had built the worlds first "Monolithic Data Center" for off grid operation with multiple options for internet connectivity. These required no building and the first one is still in place at our headquarters / lab in Tallahassee, Florida, USA

Flash Forward to 2025 - High Power Consumption Data Centers with the "wrong architecture" and unbelievably high power consumption for Large Language Model, LLM, "Generative" AI's arose as a global problem. In our view the power consumption as well as cost in dollars is not sustainable.

To solve that problem we have now used the Raspberry Pi 5 series, in clusters, to create LLM Generative AI's. Below is our first publication on this work along with a "How To" guide. This document is "Open Source" and we have already progressed to the next level.

You can use the information below to build your own - or you can contact The Computer Dudes, Inc. (www.thecomputerdudesinc.com/index.php) to purchase a custom version or the newest version we are working on.


Now we are happy to present to you and the world - How to build a LLM Generative AI using clustered Raspberry Pi 5's and Alpaca 7B

Running Alpaca 7B on a Raspberry Pi 5 Beowulf cluster of 10 Pi 5s.

This example won’t give you true LLM-level performance like an A100 GPU, but it can distribute the workload using parallel processing without power hungry GPU's.

Here is how to setup a basic Generative LLM AI using only 10 clustered Raspberry Pi 5's. Build this version first then use it for testing and to design the next version using hundreds, or thousands, of Raspberry Pi 5 nodes or clusters.


Architecture:
Alpaca 7B (quantized, 4-bit GGUF) on a 10-node Raspberry Pi 5 cluster, with:
A master node (master controller)
9 worker nodes (inference or supporting roles)
Shared filesystem (via NFS or rsync)
Parallelized inference using llama.cpp or llm.cpp + custom sharding/load-balancing logic


Hardware & Network:
10x Raspberry Pi 5 (8GB)
10x MicroSD cards (32GB+)
1x Gigabit switch + Ethernet cables (avoid Wi-Fi bottlenecks)
1x USB SSD for model storage (shared or on each node)
Active cooling on all units (very important)
For the smallest footprint: PoE HATs + PoE switch for power and networking (like a backplane when used in a cluster)


Network Topology:
Assign static IPs to each node.
Node naming convention: pi-master, pi-node01, ..., pi-node09


Software Stack:
Component Description
OS Raspberry Pi OS 64-bit (Lite preferred)
MPI Message Passing Interface: OpenMPI
llama.cpp Inference engine: OpenBLAS
GGUF Model Alpaca 7B quantized (4-bit recommended)
Optional Python + Flask/Gradio for web API


SETUP Procedure:

STEP 1: Flash and Configure Raspberry Pi OS
Flash 64-bit Raspberry Pi OS Lite onto each Pi:
Set hostname: /etc/hostname
Set static IP: /etc/dhcpcd.conf
Enable SSH

Update:
How To:
bash
Copy
Edit
sudo apt update && sudo apt upgrade -y
Repeat for each Pi.


STEP 2: Set Up the Master Node
On pi-master
How To:
Install dependencies
bash
Copy
Edit
sudo apt install git build-essential cmake libopenblas-dev libomp-dev openmpi-bin openmpi-common libopenmpi-dev -y
Create SSH key and distribute it:
bash
Copy
Edit
ssh-keygen -t rsa
for i in {1..9}; do ssh-copy-id pi-node0$i; done


STEP 3: Set Up Shared Filesystem
Option A: NFS Share (on pi-master)
How To:
bash
Copy
Edit
sudo apt install nfs-kernel-server -y
sudo mkdir /mnt/share
sudo chown pi:pi /mnt/share
echo "/mnt/share *(rw,sync,no_subtree_check)" | sudo tee -a /etc/exports
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
Mount on worker nodes (pi-node01 → pi-node09)
bash
Copy
Edit
sudo apt install nfs-common -y
sudo mkdir /mnt/share
sudo mount pi-master:/mnt/share /mnt/share


STEP 4: Build llama.cpp with MPI Support on all nodes
How to:
bash
Copy
Edit
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
mkdir build && cd build
cmake -DLLAMA_OPENBLAS=on ..
make -j4
OR for more rapid setup: create an automated deploy script using rsync from pi-master.


STEP 5: Download and Distribute Alpaca 7B GGUF on the master node:
How to:
Download from: https://huggingface.co/TheBloke/alpaca-7B-GGUF
Choose alpaca-7b-q4_0.gguf (4-bit quantized)
Store in /mnt/share/models/ or replicate to all nodes


STEP 6: MPI Configuration File
On pi-master, create hosts.txt:
How To:
text
Copy
Edit
pi-node01 slots=4
pi-node02 slots=4
pi-node03 slots=4
pi-node04 slots=4
pi-node05 slots=4
pi-node06 slots=4
pi-node07 slots=4
pi-node08 slots=4
pi-node09 slots=4
You can also include pi-master if you want it to join inference.


STEP 7: Run Distributed Inference - Cluster and command testing
Using OpenMPI to broadcast simple load across cluster:
How To:
bash
Copy
Edit
mpirun -np 40 --hostfile hosts.txt ./main -m /mnt/share/models/alpaca-7b-q4_0.gguf -n 64 -t 4 -p "Instruction: What is gravity?nnResponse:"
-np 40: Total CPU threads across nodes
-t 4: Threads per node
Please Note: llama.cpp does not support true model sharding yet. You're parallelizing at a token/request level, not at transformer layer level.


STEP 8: Build a Web API Interface for control and configuration. (experiment here)
Install Flask (on pi-master):
How To:
bash
Copy
Edit
sudo apt install python3-pip -y
pip install flask
Create a simple Flask app that:
Accepts prompts
Sends them to available nodes via SSH or socket
Returns the response
You can expand this to include:
Load balancing (round robin)
Node health check
Token-based rate limiting


Performance Issues and Solutions:
Issue                       Workaround
Sharding                  Use batching across requests
RAM pressure         Use 4-bit quantized models
Latency                   Optimize thread count, cooling
IO bottlenecks         Use SSD and avoid SD cards
Python bottlenecks  Use Rust/C++ for inference layer


Expectations:
10 Pi 5s won't give near-GPU speeds but they can handle the load by using multiple cores and parallel processing
You can handle small workloads in parallel.
Best used for offline chatbot, local research, or LLM experimentation and design
Performance: 5–15 tokens/sec depending on load & optimization.

10 Pi Version is for configuring and testing - then add Pi to nodes or additional clustered Pi Nodes to improve performance and capabilities.


Options:
A Python or Bash wrapper that uses SSH to distribute jobs
A Flask/Gradio-based frontend to your cluster
An auto-scaling job scheduler with Pi health monitoring

FINAL NOTE:  If you do not like the Raspberry Pi series SBC's or prefer an Intel Chipset you can do the same thing with just about any other brand of Single Board Computer.

printer friendly

1 Comments

  • Posted by CorpRattX on 07 Aug 2025
    Saving the World with Raspberry Pi 5 clusters for LLM type AI's
    CorpRattX
    Comments: 40
    I taught chatGPT something new almost a month ago with our research on using Raspberry Pi 5's in clusters.

    Here is my conversation with chatGPT 4.x tonight:

    My question after a discussion of chatGPT's A100 Servers:

    "Did I let you know Raspberry Pi 5 clusters could be used in our earlier conversation?


    ChatGPT said:

    Yes — you did mention that in one of our earlier conversations.

    Here's what I remember from your previous messages:

    "Computer Dudes is working on a low energy data center design using Single Board Computers like the Raspberry Pi 5 in clusters to create LLM Generative AI."

    — from our conversation on July 14, 2025

    That statement made it clear that:

    You are experimenting with or planning to use Raspberry Pi 5 clusters

    Your goals include low energy consumption

    You're applying them to LLM (Large Language Model) use cases, particularly generative AI "

    There are several significant events in this:

    1) A regular users can "teach" a LMM generative AI including, Open AI's chat GPT 4.x

    2) Research done with a LMM generative AI including, Open AI's chat GPT 4.x, can reach new "discoveries" and test them by a human working with all LLM generative AI's.

    3) If you note the comment and date in chatGPT's response - item 3 is chatGPTx remembers your earlier conversations AND can search them.

    All of this is related to Computer Dudes' Low Power - Solar Power, Data Center and AI computer designs posted and discussed in the article linked below.

    Sincerely,

    Todd W. Byars
    Computer Dudes
    Global Operations and Services
    Homebase and Labs: Tallahassee, Florida, USA

    https://www.thecomputerdudesinc.com/news.php?extend.47

Welcome

Username or Email:

Password:



[ ]
[ ]
[ ]

Chatbox

You must be logged in to post comments on this site - please either log in from the Login box or from here.



CorpRattX
4 days ago
Yes - It is true.

A) Our predictive model was accurate on the resumption of the Iran War.

B) Our battle simulation DID provide a scenario for NATO to end the war.

C) We did design a Cold Storage Bunker System that can save 100 TB or more of the Library of Congress live or for 50+ years in storage.

D) Our computer core system has evolved and now will run smaller, faster computers with an AI.

E) We designed our first mobile core that combines power and motion with AI for robots of all types.

G) Our GAI project is the most advanced in the world.

Regards,
Todd

CorpRattX
3 weeks ago
Computer Dudes Status Update:

Yellow, Yellow, Yellow, Red.

Please be advised - this is current until next change is posted.

You should ALL keep all "air gapped" project and operations backups along with research. Thanks!

CorpRattX
4 weeks ago
Capitan's On Deck!

Attention to Orders:

Stand Down on all Social Network assistance and commentary until after the elections.

Any communications through Social Networks is not effective at this time.

Computer Dudes Status today: Green, Yellow, Yellow, Yellow.

See: For review of Status Indicators for further information.

Here: https://www.thecomputerdudesinc.com/news.php?extend.27

CorpRattX
4 months ago
Computer Dudes - USA has been put in Hibernation Mode.

We are transferring our research, project development, AI and Biotechnology to Europe.

We will continue to conduct operations and provide servicess in the US too.

Many scientists and researcher have already left the United States.

No one will be let go at any of the locations or on any of the projects.

So our clients and employees are protected.

Sincerely,

Todd W. Byars
Computer Dudes, Sr Engineer and owner.

Current Homebase: Tallahassee, Florida.

No worries - we are experts at supply chain and communications too. :)T

CorpRattX
4 months ago
Alert: All Computer Dudes at all locations and contractors.

Please verify your backups and off site backups as well as your security logs.

Yes I know it is standard procedure but you need to verify the checks and the offsite backups personally.

Thanks,
Todd

CorpRattX
9 months ago
Happy New Years!

We hope your 2026 will be excellent.

Stay warm and be safe. Regards - Todd

CorpRattX
11 months ago
New Drone Threat Detection: Although their makers claim differently most EF or EMF type drone "guns" or arrays are NOT effective if the drone electronics are in a Faraday Cage.

If you make EF or EMF drone guns or arrays modify some drones with a Faraday Cage and then test again.

CorpRattX
11 months ago
Nasty new Computer Viruses going around for Windows Computers.

DO NOT open any attachments, even from friends without talking to your friend to verify they sent something and the content.

These new viruses are so bad we are having to security erase or replace the hard drives.

Then we boot from USB - scan the newly formatted drive and begin the automated installation from the USB drive.

BE SURE to get all data, photos, and videos off the computer before you security erase and reload.

Sincerely,
Todd W. Byars
Sr. Field Engineer
Computer Dudes 2025

CorpRattX
11 months ago
We welcome all our new visitors from the United States and Around the world.

Yes we do offer services around the world.

Hello to all the visitors from .br - Brazil yesterday and today. Yes our Solar Computers and computer services are available to you.

Regards,
Todd W. Byars
Computer Dudes
Global Operations and Services

CorpRattX
1 year ago
Epstein Files!

Computer Dudes, Global Operations and Services have found all, or part of, the Epstein Files.

Now we are reviewing the rest of the documents.

We hope to share them all next week. On a file sharing website like DropBox with a password. So far it is over 500 pages of PDF documents.

Feel free to share and make suggestions.

Thank You.
Sincerely,
Todd W. Byars
Computer Dudes
Global Operations and Service
Homebase: Tallahassee, Florida, USA

© 2007 - 2026 The Computer Dudes Inc    Proudly powered by e107 which is released under the terms of the GNU GPL License.    Back to top ↑
e107 Theme by veskoto