Pied Piper

Private decentralised LLM inference utilizing low end devices.

Pied Piper

Created At

ETHGlobal Mumbai

Project Description

Any device can join the network, from a browser tab with no install, and lend its spare compute to run a large language model for the whole swarm. No single device holds the model: it is cut into blocks of consecutive layers, each device holds one block, and every question travels through one holder of each block, like a torrent for inference.

Devices earn PIPER for the compute they provide and spend it to ask. PIPER trades against USDC in a Uniswap v4 pool, so the price of inference is set by a market. A gas sponsor pays every transaction, so a phone only ever signs and never needs ETH. The result is plug and play: open a link, and your phone is serving a 2-billion-parameter model and earning for it.

How it's Made

The network serves one LLM, divided into blocks. Each block is a run of consecutive transformer layers; the first block also holds the embedding and the last one the output layer. The tracker is the coordinator. It serves the web app and the weights, gives each joining device a block, and the device downloads only that block's weights (cached in the browser, so a reload takes a second). The tracker monitors the swarm, picks a route for every question and relays the hidden state from each block to the next, over WebSocket. Phones never need to know the route: each one runs its block and hands the result back.

Every device gets a wallet on its first visit, kept on that device. It is a Privy guest wallet that can be made permanent by signing in with email or phone, or, without Privy, a key kept in the browser with a "Back up its private key" button to import it into any other wallet app. Devices earn PIPER for the computation they provide and spend it to ask. PIPER can also be bought in the liquidity pool, and its price there describes the market for inference: demand for answers pushes it up, and supply of compute brings more PIPER into circulation.

Kernels for matrix multiplication run in WebAssembly SIMD, with int8 weights: about 4× faster per token than plain JavaScript and 12× faster on the prompt.

background image mobile

Join the mailing list

Get the latest news and updates