HN
Today

Mesh LLM: distributed AI computing on iroh

Mesh LLM leverages the iroh networking library to enable distributed AI computing, allowing users to pool disparate hardware like GPUs from laptops to servers and run large language models as a single, OpenAI-compatible API. This innovative approach seeks to democratize access to powerful LLMs by sidestepping expensive cloud services, offering greater control and privacy for businesses and individuals alike. Hacker News found the technical challenge and solution compelling, particularly the "Skippy" engine for splitting models and the underlying iroh networking.

76
Score
21
Comments
#1
Highest Rank
18h
on Front Page
First Seen
Jul 11, 11:00 PM
Last Seen
Jul 12, 4:00 PM
Rank Over Time
41111222122337791216

The Lowdown

Mesh LLM introduces a novel approach to running Large Language Models, moving away from centralized, costly cloud infrastructure towards a distributed, peer-to-peer computing model. By utilizing the iroh networking library, it allows users to combine the computational resources of various machines, from personal laptops to dedicated GPU rigs, to run LLMs locally or across a mesh as a unified OpenAI-compatible API. This initiative aims to address the high costs and lack of control often associated with proprietary cloud-based AI services.

  • Decentralized LLM Execution: Mesh LLM pools GPUs and memory from multiple devices to run LLMs, presenting them through a standard OpenAI-compatible API, accessible even from localhost.
  • Flexible Distribution Strategies: Requests can be handled by the local machine, routed to a peer with the model loaded, or, for larger models, split across several machines using a technique called "Skippy," which pipelines layers across nodes.
  • Powered by iroh: The system relies on iroh for secure, authenticated, and NAT-traversing QUIC connections between any two nodes, simplifying network complexities.
  • Cost Efficiency & Control: The project offers a path to reduce reliance on expensive cloud APIs, providing greater control over data, model updates, and hardware.
  • Open Source & Pluggable: Mesh LLM is open source, with a pluggable architecture supporting 40+ models, and future plans include mobile app support and integration with the Agent Communication Protocol (ACP).

In essence, Mesh LLM champions a more peer-to-peer future for AI, enabling individuals and teams to harness their existing hardware for powerful LLM inference without vendor lock-in or escalating cloud bills.

The Gossip

Performance Perplexities & Practicalities

A significant portion of the discussion revolved around the real-world performance implications of distributing LLM inference, particularly for split models over a network. Initial skepticism from users questioned if network latency would render it unusable for interactive tasks. A project contributor clarified that while global WAN might be slow, the system can achieve respectable token generation rates (e.g., 10-16 tokens/second) across nodes within a metro area or home lab setting, emphasizing its utility for leveraging owned hardware without specialized interconnects like RDMA.

Security Scrutiny & Data Safeguards

Users raised important questions about the security and privacy of data, specifically whether LLM payloads are encrypted when passed between nodes in the mesh and if other users could potentially read requests. Contributors confirmed that iroh, the underlying networking layer, provides encryption based on endpoint keys, addressing concerns about sensitive information being processed in a distributed environment.

Comparative Critiques & Ecosystem Context

Commenters drew comparisons to other distributed computing or local LLM solutions, such as cocompute.ai, questioning Mesh LLM's unique value proposition. The project's contributor distinguished Mesh LLM's "Skippy" engine for staged model splitting as significantly faster for distributed inference compared to general llama RPC methods, highlighting its technical advancements in this niche.

Hardware Hopes & Enthusiastic Endorsements

Despite some performance concerns, many users expressed strong enthusiasm for Mesh LLM's potential, particularly those with diverse or underutilized hardware setups. The idea of pooling existing GPUs, even from various manufacturers or machine types, to run larger models resonated well, promising a powerful and cost-effective alternative to cloud services.