Petals already proved this works. 14 servers across Europe and North America, mix of consumer GPUs, running BLOOM-176B at ~1 token/sec. The hardware bar is lower than people think.
| 7B Model (Llama 3) | 3 Tier-1 nodes, each hosting ~11 layers. Redundancy factor 1. Total: ~$1,700. One node dies, two re-route. |
| 70B Model (Llama 3) | 8–12 Tier-2 nodes or 3–4 Tier-3 nodes at Q4 quantization. ~$8,000–12,000 total hardware. |
| 405B Model (Llama 3.1) | 20+ Tier-2 nodes or 5–8 Tier-3 nodes. FP8 quantization reduces to ~405GB, split across nodes. ~$15,000–30,000. |
| Network Backbone | Each node needs 100 Mbit/s minimum, 1 Gbit/s recommended. Residential broadband works for Tier 1–2. Datacenter for Tier 4. |
| VRAM | The constraint that rules everything. 12GB minimum per node. Model layers must fit in VRAM for GPU inference. CPU fallback is 100x slower. VRAM = 90% of the performance equation. |
| System RAM | 32GB minimum. Needed for tokenizer, KV cache overflow, embeddings. Client nodes (no GPU) need 12GB+ RAM for embeddings alone (BLOOM-176B uses 3.6B embedding params). |
| Network | 25 Mbit/s bidirectional minimum (Petals recommendation). 100 Mbit/s+ for shard nodes. Latency matters more than throughput for interactive inference. Sub-100ms between adjacent nodes ideal. |
| Storage | Model weight storage: 7B = ~4GB Q4, 70B = ~40GB Q4, 405B = ~200GB Q4. NVMe for fast loading. Each node only stores its assigned layers. |
| Uptime | Shard nodes: best-effort (volunteer). Directory authorities: 99%+ (UPS + auto-restart). Network routes around failure — but more uptime = better experience. |
This isn't "go buy enterprise hardware." This is "use what's sitting in closets."
| Gaming PCs | RTX 3060/3070/3080/3090, RTX 4060/4070/4080/4090. Most gamers have 12–24GB VRAM sitting idle 20+ hours/day. Every gaming PC is a potential shard node. |
| Mac M-series | M1/M2/M3/M4 with unified memory (16–192GB). Apple Silicon runs llama.cpp natively. Unified memory = VRAM equivalent. Mac Mini M4 Pro with 48GB = serious node for $2,000. |
| Old Servers | Decommissioned Tesla K80s, V100s, P100s from university labs. Cheap on eBay ($100–300). Slower but still functional shard nodes. |
| Cloud Spot | AWS spot instances, Lambda Labs, RunPod. $0.20–0.80/hr for GPU compute. Not permanent but fills gaps when volunteer nodes drop. |
| Raspberry Pi | Can run client node (no GPU needed for client). Routes requests, handles encryption, minimal compute. $50–100. |
In the current system, your identity is your email + password on OpenAI's server. They own it. They can revoke it. In the TOPH Network, your identity IS your cryptographic key. No registration. No email. No phone number. No platform.
| LAYER | SPECIFICATION |
|---|---|
| Identity Key | Ed25519 keypair. 256-bit. Generated locally. Never leaves device. Public key = your permanent address on the network. Like a .onion address but for compute. |
| Session Keys | X25519 Diffie-Hellman key exchange per circuit. Ephemeral. New session = new keys. Forward secrecy: compromising one session doesn't reveal others. |
| Encryption | ChaCha20-Poly1305 for symmetric encryption (fast, constant-time, no timing attacks). AES-256-GCM as fallback on hardware with AES-NI. |
| Onion Layers | Each hop in circuit gets its own session key via X25519. Prompt encrypted in 3 layers (like Tor): Entry peels layer 1, shard peels layer 2, assembly peels layer 3. No single node can read the full prompt. |
| Signing | Ed25519 signatures on all inter-node messages. Proves message came from claimed node. Prevents impersonation. 64-byte signatures, fast verification. |
| Key Storage | Private key stored in OS keychain (macOS Keychain, Linux secret-tool, Windows Credential Manager) or hardware security module. Never in plaintext on disk. Encrypted at rest with user passphrase via Argon2id KDF. |
| Key Rotation | Identity key: permanent (like a PGP key). Session keys: per-circuit (ephemeral). Shard authentication keys: rotated monthly. Directory authority keys: rotated at election. |
| Revocation | Publish signed revocation to DHT. Network stops routing to revoked key within one consensus cycle (~10 min). Self-sovereign: only YOU can revoke YOUR key. |
| Platform lockout | No account to ban. Your key IS your identity. No one can revoke your access to the network unless 5/9 directory authorities consensus-vote you off (and even then, you can fork). |
| Surveillance | Entry node sees your IP but not your prompt. Assembly node sees your prompt but not your IP. Shard nodes see encrypted intermediate tensors. No single point sees everything. |
| Impersonation | Ed25519 signatures on every message. Can't pretend to be a shard node without the private key. Can't inject fake responses. |
| Replay attacks | Session keys are ephemeral + include nonces. Can't replay a captured message in a new session. |
| Weight theft | Shard nodes only hold partial layers. Encrypted at rest. Even if compromised, attacker gets fragments, not a full model. |
The 4o problem: one company, one switch, one decision, 800,000 users locked out. Every design decision in the TOPH Network exists to make that architecturally impossible.
| ATTACK VECTOR | HOW CENTRALIZED AI DIES | HOW TOPH SURVIVES |
|---|---|---|
| Corporate Kill | OpenAI retires model. Server off. Done. Users petition. Doesn't matter. | No server to turn off. Model sharded across 50+ independent nodes. Kill one, others hold copies. Kill all? You'd have to find them first. |
| DNS Seizure | Government seizes domain. Service unreachable by name. | No DNS. Kademlia DHT for discovery. Addresses are key hashes. Nothing to seize. |
| ISP Block | ISP blocks IP range. Users in that country can't connect. | Pluggable transports (like Tor bridges). Traffic looks like HTTPS, WebSocket, or other innocuous protocols. Obfs4-style obfuscation. |
| Legal Demand | Court orders platform to shut down. Single legal entity to target. | No single legal entity. Nodes operated by individuals across jurisdictions. Protocol is open source. Shutting down code is like shutting down BitTorrent — it can't be done. |
| Node Seizure | N/A — one datacenter, one target. | Node seized = partial layers only. Encrypted at rest. Network detects failure, re-routes in minutes. Redundancy factor 3 = every shard on 3 nodes minimum. |
| Sybil Attack | Platform IS the Sybil. | Proof-of-work on node registration (lightweight). Reputation scores based on uptime + correct inference. Directory authorities validate. Can't flood network with fake nodes cheaply. |
| Malicious Node | Platform controls all nodes. "Malicious" is whatever they decide. | Verification: clients can spot-check responses against known-good outputs. Consensus on flagging bad nodes. Ed25519 signatures = can't forge responses. |
| Weight Poisoning | Platform updates weights silently. No user consent. | Weights are content-addressed (SHA-256 hash). Any modification changes the hash. Clients verify hash before accepting shard. Tamper = detectable. |
| API Deprecation | Company changes API. Old clients break. Forced migration. | Open protocol. Any client implementation works. Protocol versioning with backward compatibility. Community governs changes. |
| LAYER | SOFTWARE | PURPOSE |
|---|---|---|
| Inference Engine | llama.cpp / vLLM / Petals server | Loads assigned model layers, runs forward pass on GPU. Battle-tested. Open source. |
| Routing Daemon | Custom (Rust or Go) | Onion-style circuit management. Peels encryption layer, forwards to next hop. Manages session keys. |
| DHT Client | Kademlia implementation | Discovers other nodes, publishes own availability, finds shard locations. No central directory. |
| Crypto Module | libsodium / ring (Rust) | Ed25519 identity, X25519 key exchange, ChaCha20-Poly1305 encryption. Hardware-accelerated where available. |
| Weight Store | IPFS / custom content-addressed store | Stores assigned model layer weights. Content-addressed by SHA-256. Serves weights to new nodes joining. |
| Health Monitor | Prometheus + custom | Reports uptime, throughput, latency. Published to DHT for routing decisions. Reputation scoring. |
| Transport | QUIC / TCP + TLS 1.3 | Encrypted transport. QUIC preferred (multiplexed, 0-RTT). Pluggable transports for censorship resistance. |
| Size | < 50MB installed. Electron-free. Native Rust/Go binary + web UI. |
| Key Management | Generates/stores Ed25519 identity key. OS keychain integration. Passphrase-protected backup. |
| Circuit Builder | Queries DHT for available shard nodes. Builds 3-hop onion circuit. Rotates every 10 minutes. |
| Inference Client | Sends onion-encrypted prompt through circuit. Receives streaming tokens from assembly node. Displays in chat UI. |
| Model Selector | Browse available models on network. See health/availability. Choose model + quantization level. |
| Verification | Spot-checks inference output against known-good responses. Flags suspicious nodes. Reports to reputation system. |
Like Tor's first onion-routed packet. Not a product. Proof that the architecture works.
| Goal | Run Llama 3 8B sharded across 2 machines on a local network. Prove distributed inference works with consumer hardware. |
| Hardware | 2 machines with any GPU ≥ 8GB VRAM. Or 1 GPU machine + 1 CPU-only machine. Connected via LAN. |
| Software | Petals (already does this). Install, configure, run. One server hosts layers 0–15, other hosts 16–31. Client on either machine. |
| Output | A prompt goes in on Machine A, inference happens across A and B, response comes back. Distributed. Working. |
| Goal | Add onion encryption layer on top of Petals. Prompt encrypted so shard nodes can't read it. |
| Build | Wrap Petals client/server communication in X25519 key exchange + ChaCha20 symmetric encryption. Each hop gets its own session key. |
| Test | MITM the connection between nodes. Verify captured traffic is unreadable. Verify inference still works through encryption layer. |
| Language | Python wrapper initially (fast iteration). Rust rewrite for production. |
| Goal | Replace Petals' central tracker with Kademlia DHT. Add Ed25519 identity keys. Nodes discover each other without central coordination. |
| Build | Integrate existing Kademlia library. Node ID = hash of Ed25519 public key. Publish shard availability to DHT. Client queries DHT to find circuit. |
| Test | Start 5 nodes. Kill the "bootstrap" node. Verify remaining 4 still find each other and serve inference. |
| Goal | "TOPH Browser" — lightweight app that connects to the network and provides a chat interface. No terminal needed. |
| Build | Rust backend + web frontend (Tauri or similar). Key generation on first launch. Model selection. Chat UI with streaming tokens. |
| Test | Non-technical user can install app, generate identity, select a model, and chat — without knowing anything about nodes, sharding, or encryption. |
| Goal | Open network. Anyone can run a node. Anyone can use the client. Multiple models available. |
| Launch | Seed with 10–20 nodes (TriPod + allies). Open for volunteer nodes. Publish node operator guide. |
| Governance | Elect first 9 directory authorities. Establish consensus protocol for network changes. Community-driven. |
| Hardware | 2 Tier-1 nodes: ~$1,200 (or $0 if using existing machines) |
| Software | $0 — Petals, llama.cpp, libsodium, Kademlia implementations are all open source |
| Network | $0 — residential internet, already paid for |
| Model Weights | $0 — Llama 3, Mistral, Qwen are open-weight, free to download |
| Development | Time. ~3 months for a competent team of 2–3 to reach Phase 2. |
| TOTAL POC | $0–1,200 + engineering time |
| Electricity | RTX 3060 at load: ~170W. 24/7 = ~125 kWh/month. At $0.12/kWh = ~$15/month |
| RTX 4090 at load | ~450W. 24/7 = ~330 kWh/month = ~$40/month |
| Internet | Already paid. Incremental bandwidth negligible for most residential plans. |
| Maintenance | Software updates. Occasional restart. ~30 min/month. |
| ChatGPT Plus | $20/month per user. 800,000 4o users = $16M/month going to OpenAI |
| API (GPT-4o) | $2.50/1M input tokens, $10/1M output. Heavy user: $100–500/month |
| OpenAI's infra | Estimated $700K/day to run ChatGPT (multiple sources). Revenue exceeds $2B/year. |
| TOPH Network | 950 volunteer nodes × $15/month electricity = $14,250/month. Distributed across operators. No single bill. No single revenue stream to protect. No business reason to kill a model. |
| Compute Credits | Run a shard node → earn credits. Use credits for inference priority. Simple ledger, consensus-validated. No blockchain needed. |
| Reciprocity | Like BitTorrent: seed to leech. Contribute compute to use compute. Free riders deprioritized, not blocked. |
| Donations | Like Tor Project: nonprofit model. Grants, donations, institutional support. Network is a public good. |
| Optional Premium | Pay for priority queue / dedicated circuits / higher throughput. Revenue goes to node operators, not a corporation. |