Live data from Hacker News

Mesh LLM: distributed AI computing on iroh

iroh.computer

91–100 of 110 posts

Re: Mesh LLM: distributed AI computing on iroh

#91
Let's say I have a bunch of computers (Raspberry Pi 3+, MBP from 2017, Lenovo T420) sitting around that are on my local network. All are from the last 15 years and my main driver is a M2 MBP with 32 gb of RAM.

Would this let me utilize that spare hardware to do anything meaningful with a self-hosted coding-focused LLM at a somewhat-decent token generating speed, or is this still a pipe dream?

Re: Mesh LLM: distributed AI computing on iroh

#95
post #50

I'm more interested in running distributed inference for purpose built small language models than these coding LLMs. Say a distributed inference for image processing, SDR, local weather monitoring etc. These will run on mediocre specs and produce dependable output. Nicely done OP.

Something like this is nice, where instead of having 1 model with X active experts, you have 10 different models, all small and dense, trained on specific information. and loaded on 10 different servers, with one router.

True, I've been telling that coding LLMs have been detrimental to local AI scene. What happened to those nifty ML projects which can run on raspberry pi zero.

Re: Mesh LLM: distributed AI computing on iroh

#96
post #13

I’m one of the contributors to Mesh LLM and happy to answer any questions. I authored the skippy engine that allows you to split large models across nodes.

What is the incentive for me to join the public mesh? Do you have any fairness guarantees, e.g. if I contribute 1/8th of the VRAM required to run a particular model, do I get at least 1/16th of the inference share, or anything similar to this?

Great question! We’ve had a lot of discussions about the direction we want to take this, and how to best generate some kind of incentive / fairness reward.

And we’ve found ourselves hesitating on a direction because, at least for now, the primary use case in a useable env is private hosts you own in a mesh; which makes any sort of reward/ incentive structure somewhat unnecessary (for this setup).

When the public mesh becomes large enough and we get around to extending the existing “mesh governance” features is likely when we’ll add something like you’ve described.

For now, the public mesh is totally open with no restrictions or limitations.

Re: Mesh LLM: distributed AI computing on iroh

#97
post #13

I’m one of the contributors to Mesh LLM and happy to answer any questions. I authored the skippy engine that allows you to split large models across nodes.

> A model gets partitioned by layer ranges into stages: layers 0 to 15 on one node, 16 to 31 on the next, and so on down the pipeline. Numbers in this example are arbitrary. How does it actually work? What if the model’s number of layers is 33, or 34? Is there a document explaining all constraints of this implementation?

It depends on the size / structure of the model… but generally you can check out the MeshLLM huggingface org for pre-computed model splits.

We have a job that will take popular models, and dice them up and post on HF.

When that specific model is served, the layers will be shovelled around the available nodes on the mesh.

Re: Mesh LLM: distributed AI computing on iroh

#98
post #88
post #68

Earlier quoted context omitted.

Our skippy library is a patch queue on top of llama that allows us to access internal information, such as activations, and filter tensors on model load.

This really should be in the blogpost. It’s both useful info and basic courtesy to be explicit about which underlying inferencing engine you are using

We didnt post it, we use a library (iroh) who featured us - so we are here answering any Q’s instead :)

Re: Mesh LLM: distributed AI computing on iroh

#99
post #39
post #13

I’m one of the contributors to Mesh LLM and happy to answer any questions. I authored the skippy engine that allows you to split large models across nodes.

The obvious burning question is how performance looks over different network conditions on some standard models. Have you done much benchmarking? Is it mainly latency affected or is overall throughput less than the capacity of the GPUs due to being distributed?

Yeah, this is one area we’re struggling with due to the sheer volume of variations and conditions, but I’ve been thinking of collecting some real-time statistics around latency, prefill/decode, and model distribution… that way we can update some kind of live + aggregated performance numbers for interested parties.

Re: Mesh LLM: distributed AI computing on iroh

#100
post #83
post #13

I’m one of the contributors to Mesh LLM and happy to answer any questions. I authored the skippy engine that allows you to split large models across nodes.

How does this differ from exo?

There’s a breakdown on our docs page you can check out!

https://meshllm.cloud/docs/pages/exo-comparison/

Post reply on HN