Skip to content
Next-Gen Decentralized AI Infrastructure

Distributed LLM inference
across volunteer consumer GPUs

Turn idle gaming GPUs and consumer workstations into a unified, fault-tolerant cluster for massive LLM batch inference. Zero out-of-memory crashes. Zero lost progress when volunteer peers disconnect.

Hardware Agnostic: Any GPU (NVIDIA • AMD • Apple Silicon 8GB-24GB+)Decentralized Sharded DHT: Zero Data Loss on Node DropoutsDynamic KV Streaming: Infinite Batch Scaling Without OOM
Execution Engine
Native C++17 Tensor Core Engine
Fault Tolerance
Reed-Solomon (4, 2) + Kademlia DHT
Target Workload
Distributed Batch LLM Inference
Research Supervision
Dr. Adeesha Wijayasiri
opengp-cluster-overview.mmd
Live Architecture Visualizer
OverviewOpenGP System Overview
Gateway Node dispatches batch jobs across Active GPU peers, backed by a GPU free Passive Storage Network and a Kademlia DHT overlay.
Background and motivation

Why volunteer consumer GPUs need a new inference architecture

High GPU infrastructure costs restrict large model access outside well-resourced institutions, while gaming GPUs and workstations sit idle. Pooling them introduces two coupled bottlenecks: tight VRAM limits and unpredictable node churn.

Stateful two phase execution

Prefill versus decode

  • Prefill: Processes all prompt tokens in parallel, saturates compute, initializes the Key Value cache, and determines Time to First Token (TTFT).
  • Decode: Generates tokens autoregressively one step at a time, stresses memory bandwidth, expands the Key Value cache per token in every layer, and determines Time per Output Token (TPOT).

Memory bottleneck

Model weights and growing Key Value cache

  • Model weights: Llama 3.3 70B requires 140 GB in FP16 (40 GB in Q4_K_M), while Llama 4 Scout 109B MoE requires roughly 218 GB in FP16 (55 GB in Q4_K_M).
  • Cache growth: On Llama 3.1 or 3.3 70B at 16 bit precision, the Key Value cache reaches 10 GiB at 32K context and 40 GiB at 128K context, exceeding 24 GB consumer GPUs.

Distribution strategy

Model pipeline parallelism

  • Transformer layers are partitioned into sequential stages assigned across volunteer nodes. Adjacent peers exchange only intermediate activations, allowing models larger than any single GPU to execute across consumer devices.

Volunteer computing reality

Heterogeneous and dynamic peers

  • Unlike stateless CPU volunteer systems such as GIMPS or BOINC SETI@home, GPU volunteer networks combine uneven VRAM capacities, diverse drivers, and variable links where peers can disconnect mid job.
OpenGP Core Mission

Pool idle consumer GPUs for batch LLM inference without out of memory crashes or lost progress when volunteer peers disconnect.

Current engineering progress

Two core subsystems implemented and verified

Beyond the initial proposal, both foundational layers of OpenGP are built and running: the C++17 multi backend inference engine and the Python gRPC passive storage overlay.

ImplementedC++17 / GGML / GGUF / CUDA / Metal / Vulkan

OpenGPOrg/Inference-System

A self contained C++17 LLM inference engine built from first principles on vendored GGML and GGUF. Execution is split into three independent phases so any volunteer node can map and execute an arbitrary contiguous layer slice.

View repository

Zero hardcoding GGUF loader

Reads general.architecture, model hyperparameters, RoPE mode (NORM or NEOX), QK Norm weights, and EOT stop tokens directly from GGUF headers.

Unified fused GPU graph and SSM hybrid support

Runs fused resident layers with FlashAttention (including padded GQA Tensor Core MMA reads and d_head=48), SwiGLU, CUDA warmup, and SSM hybrid architecture support.

KV first memory budgeting and auto halving

Reserves the fixed Key Value cache upfront (halving cleanly at init when VRAM is constrained), pins leading layers in VRAM, and streams remaining layers from zero copy host mmap.

Automatic hardware fallback across GPUs

Prioritizes CUDA, Apple Metal, Vulkan (AMD and Intel GPUs with startup smoke test and iGPU versus CPU micro benchmark), and native SIMD CPU fallback.

Distributed layer range slicing

ReasoningEngine accepts --layer-start, --layer-end, and --no-final-norm, exchanging ActivationPacket payloads via forward_packet() with verified multi stage pipeline parity.

Implementation PipelineActive inference engine
Three phase C++17 execution flow from GGUF file ingestion through distributed layer slicing to streaming UTF 8 token output.
bashVerify 3 stage pipeline parity and sliced execution
# Build with automatic CUDA / Metal / Vulkan / CPU detection
make

# Verify 3 stage distributed pipeline parity on any GGUF model
./build/opengp_reasoner --model models/your_model.gguf \
  --prompt "Once upon a time" --verify-pipeline 3

# Execute a single volunteer node slice (layers 0 to 16)
./build/opengp_reasoner --model models/your_model.gguf \
  --layer-start 0 --layer-end 16 --no-final-norm
Proposed methodology

System architecture and core mechanisms

OpenGP separates GPU pipeline execution from erasure coded checkpoint storage and keeps per node VRAM bounded via query aware Key Value cache streaming.

Figure 2Active and passive Reed Solomon (N, K) recovery
Periodic checkpoints avoid saturating GPU uplinks; (N, K) Reed Solomon shards let a replacement GPU (B3) resume via one local prefill pass.
Objectives and hypotheses

Research goals and quantitative experimental design

Domain: Distributed and decentralized systems for machine learning inference serving. Approach: Quantitative experimental validation against established baselines.

Project objectives

Four core deliverables

  1. 01Design and develop a peer to peer volunteer computing system for distributed LLM batch inference.
  2. 02Develop an erasure code based fault tolerance mechanism to handle node churn during inference.
  3. 03Integrate Key Value cache offloading strategies to keep GPU VRAM load bounded.
  4. 04Evaluate the developed system and mechanisms against established distributed serving baselines.

Formal hypotheses

Testable claims

  • H1Recovery latency

    Decentralized activation based fault tolerance reduces recovery time compared with Petals' client based recovery mechanism.

  • H2Context capacity

    Query aware bounded Key Value cache streaming enables larger batch contexts within fixed physical VRAM without quantization loss or out of memory crashes.

  • H3Throughput resilience

    The combined system sustains higher aggregate batch throughput under simulated volunteer churn than reactive reroute or fail closed baselines.

Preliminary experiment

Measuring network hop latency across consumer GPUs

A 2-node University TCP testbed evaluated how multi-hop pipeline parallelism affects interactive latency and decode throughput on consumer hardware.

2 nodes

RTX 3060 (6 GB) and RTX 4070 Ti (16 GB) connected over University TCP

Qwen2.5-7B

Instruct, 28 transformer layers, full FP16, 100% GPU VRAM resident

1 to 9 hops

Benchmarked across Large Context, Medium Chat, and Small Chat

> 100 ms

Inter token latency at 5 or more hops, rendering interactive chat infeasible

Figure 4aLarge Context TTFT vs. Network Hops
Average Time to First Token rises from roughly 2.9s at 1 hop to 11.8s at 9 hops.
Figure 4bMean Decode Speed vs. Network Hops
Decode speed drops from roughly 20 tok/s at 1 hop below the 10 tok/s (100 ms/tok) interactive threshold.
Scope and evaluation plan

Project boundaries and baseline benchmarks

OpenGP targets high-throughput, fault-tolerant batch inference and evaluates each hypothesis against established distributed serving baselines.

In Scope

Core capabilities

  • Non interactive batch LLM inference workloads
  • Bounded VRAM query aware Key Value cache streaming
  • Erasure coded crash recovery via Reed Solomon shards
  • Heterogeneous volunteer devices and variable networks
  • Kademlia Decentralized Hash Table (DHT) coordination
Out of Scope

Explicit exclusions

  • Real time interactive chat serving
  • Model fine tuning or altering model configurations

Experimental Evaluation Metrics & Baselines

Rigorous benchmarking of throughput, latency, and recovery against Petals and vLLM.

HypothesisIndependent variableDependent variableBaseline systems
H1: Recovery latencyChurn under context (node crash mid inference)Time to resumePetals (client based fault tolerance)
H2: Context capacityInput context length / number of input tokensMaximum context length processedFlexGen
H3: Throughput under churnSystem runtime under churn (0%, 10%, 20% node dropouts)Aggregated throughput (tokens/sec)Petals, DeServe
Project schedule & roadmap

Development phases and milestones (Apr 2026 to May 2027)

Proposal evaluation completed in September 2026. Active development is currently underway across the inference engine, passive storage layer, and system integration.

  1. 01

    Apr to Aug 2026

    Background study, literature review, problem formulation, and methodology refinement

    Completed
  2. 02

    10 Sep 2026

    Milestone: Proposal evaluation

    Completed
  3. 03

    Sep 2026 to Jan 2027

    Design and implementation: C++17 inference engine, passive Reed Solomon DHT layer, churn handling, fair scheduling, and module integration

    In Progress
  4. 04

    Dec 2026

    Milestone: Survey paper

    Planned
  5. 05

    Jan to Feb 2027

    Testing, functional validation, performance evaluation, and comparative benchmarking

    Planned
  6. 06

    Mar 2027

    Milestones: FYP showcase and poster presentations

    Planned
  7. 07

    Apr to May 2027

    Final report compilation, draft submission, and final evaluation

    Planned
Technical FAQ

Key architectural trade offs and implementation details

Direct answers to common questions about batch execution, erasure coding overhead, memory limits, and hardware support.

Our 2 node TCP benchmark with Qwen2.5-7B showed that network hops compound sequential decode latency. At 5 or more hops, inter token latency exceeds 100 ms (under 10 tokens per second), which breaks interactive chat. Non interactive batch workloads absorb per hop latency while maximizing aggregate throughput across volunteer GPUs.

Engineering Team & Leadership

Distributed Systems & ML Research Group

Building the next-generation decentralized infrastructure for LLM inference at scale.

Project Supervisor

Dr. Adeesha Wijayasiri

Department of Computer Engineering • Faculty of Engineering
SR

Researcher & Engineer

Sirithar R.

Engineering Contributor
Bibliography & Prior Research

Academic references

Core literature on volunteer computing, distributed LLM serving, memory offloading, erasure coding, and attention kernels.

  1. [1]

    D. Anderson, J. Cobb, E. Korpela, M. Lebofsky, and D. Werthimer, “SETI@home: An experiment in public-resource computing,” Commun. ACM, vol. 45, pp. 56-61, 2002.

  2. [2]

    D. P. Anderson, “BOINC: A platform for volunteer computing,” Journal of Grid Computing, vol. 18, no. 1, pp. 99-122, 2020.

  3. [3]

    Y. Jiang, R. Yan, X. Yao, Y. Zhou, B. Chen, and B. Yuan, “HexGen: Generative inference of large language model over heterogeneous environment,” arXiv preprint arXiv:2311.11514, 2023.

  4. [4]

    Y. Zhong et al., “DistServe: Disaggregating prefill and decoding for goodput-optimized large language model serving,” 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI '24), pp. 193-210, 2024.

  5. [5]

    Y. Jiang, R. Yan, and B. Yuan, “HexGen-2: Disaggregated generative inference of LLMs in heterogeneous environment,” ICLR, pp. 3985-4002, 2025.

  6. [6]

    L. Wu, X. Liu, T. Shi, Z. Ye, and D. Song, “DeServe: Towards affordable offline LLM inference via decentralization,” arXiv preprint arXiv:2501.14784, 2025.

  7. [7]

    K. Zhang, H. He, S. Song, J. Zhang, and K. B. Letaief, “Distributed on-device LLM inference with over-the-air computation,” arXiv preprint arXiv:2502.12559, 2025.

  8. [8]

    N. Gopal and K. Kaffes, “Harvest: Opportunistic peer-to-peer GPU caching for LLM inference,” arXiv preprint arXiv:2602.00328, 2026.

  9. [9]

    A. Borzunov et al., “Distributed inference and fine-tuning of large language models over the internet,” Advances in Neural Information Processing Systems (NeurIPS), 2023.

  10. [10]

    C. Tong et al., “Parallax: Efficient LLM inference service over decentralized environment,” arXiv preprint arXiv:2509.26182, 2025.

  11. [11]

    X. Miao et al., “SpotServe: Serving generative large language models on preemptible instances,” Proc. 29th ACM ASPLOS, vol. 2, pp. 1112-1127, 2024.

  12. [12]

    Y. Sheng et al., “FlexGen: High-throughput generative inference of large language models with a single GPU,” ICML, PMLR, pp. 31094-31116, 2023.

  13. [13]

    W. Kwon et al., “Efficient memory management for large language model serving with PagedAttention,” Proc. 29th ACM SOSP, 2023.

  14. [14]

    S. B. Wicker and V. K. Bhargava, “Reed-Solomon Codes and Their Applications,” John Wiley & Sons, 1999.

  15. [15]

    T. Dao, D. Fu, S. Ermon, A. Rudra, and C. Re, “FlashAttention: Fast and memory-efficient exact attention with IO-awareness,” NeurIPS, vol. 35, pp. 16344-16359, 2022.