Team OpenGP · Final Year Project Proposal

Peer-to-Peer Volunteer Computing System for Distributed LLM Inference

Enabling organizations to run non-interactive batch LLM inference across heterogeneous volunteer GPUs without out-of-memory crashes or losing progress when nodes disconnect.

  • Batch LLM Inference
  • Reed-Solomon (N, K) Recovery
  • Query-Aware KV Streaming
  • Kademlia DHT
  • Supervisor: Dr. Adeesha Wijayasiri
Background & Motivation

Why Volunteer Consumer GPUs Need a New Inference Architecture

High GPU infrastructure costs limit AI access outside well-resourced institutions, even while gaming GPUs and workstations sit idle. Pooling them for LLM inference introduces two coupled bottlenecks: tight VRAM limits and unpredictable node churn.

01 · Stateful Two-Phase Execution

Prefill vs. Decode

  • Prefill: Processes all input tokens in parallel; compute-intensive; initializes the Key-Value (KV) cache; measured by Time to First Token (TTFT).
  • Decode: Generates tokens autoregressively one by one; memory-bandwidth intensive; KV cache grows per token in every layer; measured by Time per Output Token (TPOT).

02 · Memory Bottleneck

Weights & Growing KV Cache

  • Model weights: Llama 3.3 70B requires 140 GB in FP16 (40 GB in Q4_K_M); Llama 4 Scout 109B MoE requires ~218 GB in FP16 (~55 GB in Q4_K_M).
  • KV cache growth: On Llama 3.1/3.3 70B (16-bit), KV cache reaches 10 GiB at 32K context and 40 GiB at 128K context—exceeding 24 GB consumer GPUs.

03 · Distribution Strategy

Model Pipeline Parallelism

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

04 · Volunteer Computing Reality

Heterogeneous & Dynamic Peers

Unlike CPU volunteer projects (GIMPS, BOINC-SETI@home), volunteer GPU networks combine diverse VRAM capacities, hardware, and network speeds—and peers can join or leave unexpectedly mid-job.

Objectives & Hypotheses

Research Goals & Quantitative Experimental Design

Domain: Distributed/Decentralized Systems for ML inference serving · Nature: Problem-Solving & Development · Approach: Quantitative Experimental.

Project Objectives

Four Core Deliverables

  1. Design and develop a peer-to-peer volunteer computing system for distributed LLM batch inference.
  2. Develop an error-code-based fault-tolerance mechanism to handle node churn during inference.
  3. Integrate KV-cache offloading strategies to reduce GPU VRAM load.
  4. Evaluate the developed system and mechanisms against established baselines.

Formal Hypotheses

Testable Claims

  • H1 (Recovery Latency): Decentralized activation-based fault tolerance reduces recovery time compared with Petals' client-based mechanism.
  • H2 (Context Capacity): Query-aware bounded-KV cache streaming enables larger batch contexts within fixed physical VRAM without quantization loss or OOM crashes.
  • H3 (Throughput Resilience): The combined system sustains higher aggregate batch throughput under simulated volunteer churn than reactive-reroute or fail-closed baselines.
Proposed Methodology

System Architecture & Core Mechanisms

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

Users Batch Requests Gateway Node Pipeline selection & task registry Active Compute Network Pipeline-parallel forward inference Volunteer GPU peers (A1 → A2 → A3 → A4) Kademlia DHT NS1: Layer placement & liveness NS2: Shared shard index & context Passive Storage Network Erasure-coded terminal activation shards RAM / SSD volunteers (no GPU required) Job Response heartbeat / lookup checkpoint recovery index
Figure 1 — OpenGP System Overview: Gateway Node dispatches batch jobs to Active GPU peers, backed by a GPU-free Passive Network and a two-namespace Kademlia DHT.
1. HOT PATH & PRIMARY COPY A1 (L0–L5) Active GPU A2 (L6–L9) Checkpoint A3 (L10–L15) Node Drops A4 (L16–L18) Active GPU 2. (N, K) REED-SOLOMON SWARM Passive Entry Node Splits into (N, K) shards Kademlia DHT + Shards Any K of N shards reconstruct state 3. RECOVERY ON REPLACEMENT GPU B3 (L10–L15) Restored Single local prefill pass
Figure 2 — Active/Passive Architecture: periodic checkpoints avoid GPU upload saturation; (N, K) Reed-Solomon shards let a replacement GPU (B3) resume via one local prefill pass.
ACTIVE VOLUNTEER NODE (BOUNDED VRAM) CPU RAM Full KV cache stored in host memory Prevents GPU OOM Smart Filtering Fast GPU Check Inspects summary table for current input token GPU VRAM Top 5–10% Only relevant KV entries streamed in
Figure 3 — Query-Aware KV Cache Streaming: keeps the full context in CPU RAM and streams only the top 5–10% relevant KV cache entries into GPU VRAM per token.
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) + RTX 4070 Ti (16 GB) over TCP

Qwen2.5-7B

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

1 – 9 Hops

Tested across Large Context, Medium & Small Chat

> 100 ms

Inter-token latency at ≥ 5 hops (infeasible for chat)

Average TTFT — Large Context (seconds) ~2.9s 1 hop ~6.5s 3 hops ~7.7s 5 hops ~9.2s 7 hops ~11.8s 9 hops Average Decode Speed (tokens/s) --- 10 tok/s (100 ms/tok) ~20 1 hop ~15 3 hops ~11 5 hops ~10.5 7 hops ~8.6 9 hops
Figure 4 — Preliminary 2-node benchmark trends across 1–9 network hops (Large Context TTFT and mean Decode TPS across workloads).
Scope & Evaluation Plan

Project Boundaries & 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 KV cache streaming
  • Error-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
Hypothesis Independent Variable Dependent Variable Baseline System(s)
H1 · Recovery Latency Churn under context (node crash mid-inference) Time to Resume Petals (client-based fault tolerance)
H2 · Context Capacity Input context length / number of input tokens Maximum context length processed FlexGen
H3 · Throughput Under Churn System runtime under churn (0%, 10%, 20% node dropouts) Aggregated throughput (tokens/sec) Petals, DeServe
Project Schedule

Development Phases & Milestones (Apr 2026 – May 2027)

  1. Apr – Aug 2026

    Background Study, Literature Review, Problem Formulation & Methodology Refinement

  2. 10 Sep 2026

    Milestone: Proposal Evaluation

  3. Sep 2026 – Jan 2027

    Design & Implementation: P2P Architecture, Fault-Tolerance & Churn Handling, Fair Scheduling, Module Integration

  4. Dec 2026

    Milestone: Survey Paper

  5. Jan – Feb 2027

    Testing, Functional Validation, Performance Evaluation & Comparative Benchmarking

  6. Mar 2027

    Milestones: FYP Showcase & Poster Presentations

  7. Apr – May 2027

    Final Report Compilation, Draft Submission & Final Evaluation

Team OpenGP

Research Team & Supervisor

Supervised by Dr. Adeesha Wijayasiri.

Bibliography

References

  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. D. P. Anderson, "BOINC: A platform for volunteer computing," Journal of Grid Computing, vol. 18, no. 1, pp. 99–122, 2020.
  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. Y. Zhong et al., "DistServe: Disaggregating prefill and decoding for goodput-optimized large language model serving," in 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI '24), 2024, pp. 193–210.
  5. Y. Jiang, R. Yan, and B. Yuan, "HexGen-2: Disaggregated generative inference of LLMs in heterogeneous environment," in ICLR, 2025, pp. 3985–4002.
  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. 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. N. Gopal and K. Kaffes, "Harvest: Opportunistic peer-to-peer GPU caching for LLM inference," arXiv preprint arXiv:2602.00328, 2026.
  9. A. Borzunov et al., "Distributed inference and fine-tuning of large language models over the internet," in Advances in Neural Information Processing Systems (NeurIPS), 2023.
  10. C. Tong et al., "Parallax: Efficient LLM inference service over decentralized environment," arXiv preprint arXiv:2509.26182, 2025.
  11. X. Miao et al., "SpotServe: Serving generative large language models on preemptible instances," in Proc. 29th ACM ASPLOS, vol. 2, 2024, pp. 1112–1127.
  12. Y. Sheng et al., "FlexGen: High-throughput generative inference of large language models with a single GPU," in ICML, PMLR, 2023, pp. 31094–31116.
  13. W. Kwon et al., "Efficient memory management for large language model serving with PagedAttention," in Proc. 29th ACM SOSP, 2023.
  14. S. B. Wicker and V. K. Bhargava, Reed-Solomon Codes and Their Applications. John Wiley & Sons, 1999.
  15. T. Dao, D. Fu, S. Ermon, A. Rudra, and C. Ré, "FlashAttention: Fast and memory-efficient exact attention with IO-awareness," in NeurIPS, vol. 35, 2022, pp. 16344–16359.