RepositoryC++
b4rtaz

b4rtaz/distributed-llama

Distributed LLM inference. Connect home devices into a powerful cluster to accelerate LLM inference. More devices means faster inference.

3.1kstars
264forks
45issues
5views

🧩 Turn Spare Devices Into an LLM Inference Cluster

More devices, faster inference — without a single giant GPU box.

Distributed Llama by b4rtaz is an open-source C++ project for distributed LLM inference. It lets you connect home machines into one cluster and speed up inference through tensor parallelism and high-speed synchronization over Ethernet. It supports Linux, macOS, and Windows, with optimizations for ARM and x86_64 AVX2 CPUs.

✨ Highlights

  • Clustered inference: Combines multiple home devices into a single inference setup, where adding nodes can improve performance.
  • Tensor parallelism over Ethernet: Uses tensor parallelism and high-speed synchronization between nodes on the network.
  • Cross-platform CPU support: Runs on Linux, macOS, and Windows, optimized for ARM and x86_64 AVX2 CPUs.
  • Single-command root setup: launch.py can download the model and tokenizer and launch supported models, including Llama 3.x, DeepSeek R1 Distill Llama 8B, Qwen 3, and Qwen 3.5 variants.
  • Simple root/worker architecture: A root node loads the model, forwards weights, synchronizes state, and also processes a slice; worker nodes process their own slices without model-specific configuration.
  • Multiple run modes: Provides dllama inference, dllama chat, dllama worker, and dllama-api commands.
  • Known constraints are clear: Supports 1, 2, 4... 2^n nodes, with a maximum node count tied to the model's KV heads, and limited quantization combinations (q40 + q80 buffer-float-type, or f32 + f32).

💡 Why it matters

Instead of relying on one expensive machine, Distributed Llama takes a practical approach: split LLM work across devices you already have. That makes it interesting for home labs, small clusters, and experiments where memory and compute are easier to scale horizontally than by upgrading a single box.

It is especially useful when you want a straightforward path from setup to distributed inference. The project documents Linux, macOS, Windows, Raspberry Pi, and GPU-related paths, while being upfront about node-count and quantization limits so you know where it fits.


#DistributedComputing #LLM #Inference #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
ollama/ollama

Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

188.9k
Dec 2, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositorySvelte
open-webui/open-webui

User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

160.1k
Dec 2, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryPython
unslothai/unsloth

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

80.6k
Dec 2, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryC++
zjhellofss/KuiperLLama

校招、秋招、春招、实习好项目,带你从零动手实现支持LLama2/3和Qwen2.5的大模型推理框架。

587
Oct 28, 2025
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026