b4rtaz/distributed-llama
Distributed LLM inference. Connect home devices into a powerful cluster to accelerate LLM inference. More devices means faster inference.
🧩 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.pycan 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, anddllama-apicommands. - 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+q80buffer-float-type, orf32+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.
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
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.
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.
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.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
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...