[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107775":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":37,"discoverSource":38},107775,"ClusterChat","l-wn\u002FClusterChat","l-wn","A chatbot, with a large language model split across its users, entirely in the browser.","https:\u002F\u002Fclusterchat.io",null,"JavaScript",57,4,51,1,0,2,6,43.7,"GNU Affero General Public License v3.0",false,"main",true,[25,26,27,28,29,30,31,32],"chatbot","distributed-inference","llm","open-models","open-source","p2p","webgpu","webrtc","2026-11-10 01:07:13","2026-11-19 13:10:35","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"site\u002Ffavicon.svg\" alt=\"\" width=\"72\" height=\"72\" \u002F>\n\n# ClusterChat\n\n**The AI your group runs together.**\u003Cbr \u002F>\nCluster the graphics cards you already have to run a 27B model in the browser.\u003Cbr \u002F>\nEveryone gets their own chat, several replies run at once, and anyone can leave without breaking it.\n\n[![Live demo](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flive%20demo-clusterchat.io-7022d6)](https:\u002F\u002Fclusterchat.io\u002Fchat)\n[![License: AGPL v3](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-AGPL--3.0-0b0b0c)](LICENSE)\n[![WebGPU](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWebGPU-hand--written%20kernels-0b0b0c)](docs\u002Fmodel.md)\n[![WebRTC](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWebRTC-relay%20only-0b0b0c)](docs\u002Farchitecture.md)\n[![Model](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fmodel-Qwen3.8--27B%20q8-0b0b0c)](#what-it-can-run)\n\n[**Start a private cluster**](https:\u002F\u002Fclusterchat.io\u002Fcreate) ·\n[**Try it now**](https:\u002F\u002Fclusterchat.io\u002Fchat) ·\n[How it works](#how-it-works) ·\n[How it compares](#how-it-compares) ·\n[Docs](#documentation)\n\n\u003Cbr \u002F>\n\n| [**12 people**](#performance) | [**19.7 tok\u002Fs**](#performance) | [**8.1 tok\u002Fs**](#performance) | **0 installs** |\n|:-:|:-:|:-:|:-:|\n| chatting at once on two RTX 3090s | two RTX 3090s, one machine | one RTX 3090 in France, one in Spain | a browser tab |\n\n\u003Cbr \u002F>\n\n\u003Cimg src=\"docs\u002Fimg\u002Fdemo.gif\" alt=\"Four computers join one cluster, each lending a different amount of GPU memory. Each person asks their own question and the replies are written at the same time. Ana closes her laptop mid-reply, the other chats keep going, and Mia starts a new one.\" width=\"900\" \u002F>\n\n\u003C\u002Fdiv>\n\n## Why ClusterChat\n\nA 27B model needs about 27 GB of GPU memory. Few people have that. A group\nof friends, a lab or a club usually does, spread over several machines.\nClusterChat turns those machines into one model that the whole group uses at\nthe same time. It works like a torrent, except people share the work of\nrunning a model instead of the pieces of a file.\n\n- **Built for many people at once.** Everyone gets their own chat, saved in\n  their own browser. One cluster writes several replies at the same time,\n  each with its own KV cache on every machine, for up to 64 people. Each\n  browser runs the waiting chats' next tokens as one GPU pass, so with twelve\n  people on two RTX 3090s, a reply still writes at 7.1 tok\u002Fs with 5 to 8\n  concurrent prompts ([numbers](#performance)).\n- **Nobody has to stay.** There is no host. Each piece of the model can be\n  held by more than one browser. When someone leaves mid-reply, the browser\n  before them replays the lost work into another holder, and the reply\n  carries on.\n- **Built for real networks.** Speculative decoding (prompt lookup plus the\n  model's own multi-token prediction head) checks up to 7 tokens per trip\n  around the cluster. Two machines 28 ms apart reach 8.1 tok\u002Fs at default\n  settings and 14.5 on repetitive text.\n- **Full 8-bit weights, same text however it is split.** The model runs at q8.\n  The residual stream is rounded to f16 after every block, so a reply is\n  bit-identical whether one browser or ten hold the model.\n- **Private by design.** Invite codes live in the link's fragment and never\n  reach the server. Every handshake is signed with a key derived from the\n  code. Links go through a relay, so nobody learns anyone else's IP address.\n- **Nothing to install.** Open a link. A new browser serves as soon as its\n  first piece has downloaded and takes on more while it is idle, up to the\n  VRAM limit its owner sets. Any browser can join just to chat.\n\n> [!NOTE]\n> **Your chat is separate, not secret.** Every computer in your cluster\n> processes it. Invite people you trust. The public demo is open to anyone, so\n> don't send it anything personal.\n\n## At a glance\n\n| | |\n|---|---|\n| **Model** | Qwen3.8-27B, 8-bit, about 27 GiB across the cluster |\n| **Speed** | up to 19.7 tok\u002Fs per chat ([Performance](#performance)) |\n| **Context** | 4K to 32K tokens, chosen when the cluster is created (16K by default); the KV cache is int8 |\n| **Replies at once** | set by whoever starts the cluster |\n| **Chats each browser keeps in memory** | 8 by default, up to 32 in a private cluster |\n| **People per cluster** | up to 64 |\n| **Install** | none: a browser tab |\n\n## How it compares\n\nProjects that split a model across machines, or run one in a browser tab.\nEach published speed is for a different model on different hardware, so read\nit as what each project can do, not as a ranking. Facts are from each\nproject's README or the linked source as of October 2026.\n\n| Project | Runs in | Splits one model across machines | Install per machine | Several people at once | When a machine leaves | Published speed (source, hardware) |\n|---|---|---|---|---|---|---|\n| **ClusterChat** | browser tab (WebGPU) | yes, over WebRTC through a relay | none, open a link | yes, each person has their own chat, and several replies run at once | pieces are held by more than one browser; an interrupted reply is replayed elsewhere | Qwen3.8-27B q8: 19.7 tok\u002Fs on two RTX 3090s in one machine, 8.1 tok\u002Fs across two machines 28 ms apart over a real internet link ([Performance](#performance)) |\n| [Pooled](https:\u002F\u002Fgithub.com\u002FNehanth\u002Fpooled) | browser tab (WebGPU) | yes, over direct WebRTC, relay as a fallback | none, open a link | one shared conversation that everyone in the room sees; requests run one at a time | the host deals the layers out again | Qwen 3.8 27B Q4_0: 20 to 27 tok\u002Fs on one GB10; 7.6 to 11.9 on two devices under emulated delay ([README](https:\u002F\u002Fgithub.com\u002FNehanth\u002Fpooled#performance)) |\n| [Petals](https:\u002F\u002Fgithub.com\u002Fbigscience-workshop\u002Fpetals) | native Python | yes, layers served by volunteers | pip package, PyTorch | yes, each client runs its own session | clients route around servers that leave | up to 6 tok\u002Fs Llama 2 70B ([README](https:\u002F\u002Fgithub.com\u002Fbigscience-workshop\u002Fpetals)); last commit 2024-08-25 |\n| [exo](https:\u002F\u002Fgithub.com\u002Fexo-explore\u002Fexo) | native (MLX); macOS app, Linux on CPU | yes, with RDMA over Thunderbolt 5 on Macs | macOS app or build from source | serves an OpenAI-compatible API | not stated | 31.9 tok\u002Fs Qwen3 235B on 4x M3 Ultra ([Jeff Geerling](https:\u002F\u002Fwww.jeffgeerling.com\u002Fblog\u002F2025\u002F15-tb-vram-on-mac-studio-rdma-over-thunderbolt-5\u002F)) |\n| [llama.cpp RPC](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\u002Ftree\u002Fmaster\u002Ftools\u002Frpc) | native | yes, remote ggml devices | build with `-DGGML_RPC=ON` on every host; trusted networks only | through llama-server | not stated | 15.2 tok\u002Fs Qwen3 235B on 4 nodes, 4x M3 Ultra ([Jeff Geerling](https:\u002F\u002Fwww.jeffgeerling.com\u002Fblog\u002F2025\u002F15-tb-vram-on-mac-studio-rdma-over-thunderbolt-5\u002F)) |\n| [distributed-llama](https:\u002F\u002Fgithub.com\u002Fb4rtaz\u002Fdistributed-llama) | native (CPU, experimental Vulkan) | yes, tensor parallel, power-of-2 node counts | C++ build plus Python launcher | not stated | not stated | 13.04 tok\u002Fs Qwen3 30B A3B on 4 Raspberry Pi 5 ([#255](https:\u002F\u002Fgithub.com\u002Fb4rtaz\u002Fdistributed-llama\u002Fdiscussions\u002F255)) |\n| [Mesh LLM](https:\u002F\u002Fgithub.com\u002FMesh-LLM\u002Fmesh-llm) | native (Rust, llama.cpp) | yes, over QUIC | install script, Homebrew or distro package | serves an OpenAI-compatible API | not stated | none in the README |\n| [WebLLM](https:\u002F\u002Fgithub.com\u002Fmlc-ai\u002Fweb-llm) | browser tab (WebGPU) | no, the whole model in one tab | none for users | no, one tab | n\u002Fa | 41.1 tok\u002Fs Llama 3.1 8B on an M3 Max ([paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.15803)) |\n| [Transformers.js](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftransformers.js) | browser or Node (ONNX Runtime) | no | none for users | no, one tab | n\u002Fa | WebGPU up to 100x faster than WASM ([v3 post](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Ftransformersjs-v3)) |\n\nWhere others are ahead today: ClusterChat runs one model, has no API and no\ncoding agent, and its license is AGPL. See\n[What it doesn't do yet](#what-it-doesnt-do-yet).\n\n## Performance\n\nHow fast each chat writes, in tokens per second. Qwen3.8-27B q8 on two RTX\n3090s, either both in one PC or in two PCs, one in France and one in Spain.\n\n| | One PC | Two PCs, France and Spain (28ms apart) |\n|---|--:|--:|\n| One person chatting | **19.7 tok\u002Fs** | **8.1 tok\u002Fs** |\n| Twelve people chatting at once | **about 7 tok\u002Fs** | **about 5 tok\u002Fs** |\n\nCode and lists are faster: 14.5 tok\u002Fs across the two PCs.\n\n\u003Cdetails>\n\u003Csummary>How it was measured, and the full numbers\u003C\u002Fsummary>\n\nReplies of up to 128 tokens, default settings, measured with\n[`tools\u002Fload.mjs`](tools\u002Fload.mjs).\n\n**Twelve people** arrive over 30 seconds and ask three questions each. Speed of\neach chat (median), by how many prompts were running at once:\n\n| Prompts at once | 1 | 2 | 3 to 4 | 5 to 8 | 9 to 16 |\n|---|--:|--:|--:|--:|--:|\n| One PC | 13.9 tok\u002Fs | 4.9 tok\u002Fs | 7.2 tok\u002Fs | 7.1 tok\u002Fs | – |\n| Two PCs | 9.0 tok\u002Fs | 6.3 tok\u002Fs | 5.9 tok\u002Fs | 4.0 tok\u002Fs | 5.0 tok\u002Fs |\n\nAll 36 replies finished. The cluster wrote 19.1 tok\u002Fs in total on one PC and\n16.0 tok\u002Fs on two.\n\n**One person** asks six questions. Speed over the whole run:\n\n| | Speculation off | On (default) |\n|---|--:|--:|\n| One PC | – | 19.7 tok\u002Fs |\n| Two PCs | 6.5 tok\u002Fs | 8.1 tok\u002Fs |\n| Two PCs, code and lists (greedy) | 6.5 | 14.5 |\n\nSpeculation checks up to 7 drafted tokens per trip through the GPUs, and the\ntext is the same as without it ([how](docs\u002Farchitecture.md#speculative-decoding)).\n\n```bash\n# One person. Add --no-spec or --greedy for the other columns.\nnode tools\u002Fload.mjs --url \u003Ccluster url> --users 1 --turns 6 --tokens 128\n\n# Twelve people.\nnode tools\u002Fload.mjs --url \u003Ccluster url> --users 12 --ramp 30 --turns 3 --think 10 --tokens 128\n```\n\n\u003C\u002Fdetails>\n\n## How it works\n\n\u003Cimg src=\"docs\u002Fimg\u002Fhow-it-works.svg\" alt=\"Ana's laptop and Lab PC 3 each hold pieces 1 to 6 of the model. Ben's gaming PC and Mia's desktop each hold pieces 7 to 12. Ben's message runs on Ana's laptop, then his own PC. Mia's runs on Lab PC 3, then her desktop. All four connect to a signaling server and a relay.\" width=\"100%\" \u002F>\n\nThe model is cut into positions: the embedding, each transformer block, and\nthe head. A browser (a *peer*) holds a contiguous range of positions and\ndownloads only those weights. Ranges can overlap, so a peer leaving does not\nbreak the model.\n\nFor each token, the residual stream passes from peer to peer over WebRTC\ndatachannels as f16. Each peer runs its range on its own GPU with hand-written\nWebGPU kernels, and the peer holding the head samples the next token. Every\nchat is its own session with its own paged KV cache on each peer, and routing\nbalances sessions across peers that hold the same positions.\n\nThe signaling server gives each browser an id, decides which range a new\nbrowser should hold, broadcasts the roster, and relays WebRTC offers and\nanswers. It never sees a prompt, a reply or an activation.\n\nWhen a peer leaves mid-reply, the peer before it replays the lost work into\nanother holder. If that fails, the asking browser rebuilds the chat from its\ntoken history.\n\n## Private clusters\n\nA private cluster is for a group: friends, a lab, a club. Start one at\n[clusterchat.io\u002Fcreate](https:\u002F\u002Fclusterchat.io\u002Fcreate). You choose how much\nGPU to lend, how many replies can run at once and the context length, then\nshare the invite link.\n\n- **The invite code never reaches the server.** It lives in the link's\n  fragment (`\u002Fchat#mesh=\u003Ccode>`), which browsers don't send.\n- **Handshakes are signed.** Every WebRTC handshake is signed with a key\n  derived from the code, so only browsers holding the invite can link.\n- **The servers see who, not what.** The signaling server sees who is in the\n  cluster but cannot join it or read anything in it.\n- **Relay-only links** by default, so peers don't learn each other's IP\n  addresses.\n- **Chats stay in your browser** (IndexedDB) and can be resumed or exported\n  later.\n\n## Use it from your coding agent\n\nThe [`clusterchat`](cli\u002FREADME.md) npm package joins a cluster from your\nterminal, with no GPU or browser needed, and serves it to Claude Code, opencode\nand other tools as local Anthropic and OpenAI APIs:\n\n```bash\nnpx clusterchat@latest connect '\u003Cinvite link>'\n```\n\nThe invite card on a private cluster's page shows this command with the link\nfilled in. It works the same with a self-hosted server: the client takes the\nserver from the link. See [cli\u002FREADME.md](cli\u002FREADME.md) for each tool's setup.\n\n## What it doesn't do yet\n\n- **One model per cluster.**\n- **Chat only.** There is no API and no tool use yet. Claude Code and OpenAI-compatible APIs\n  are planned.\n- **Peers are trusted.** Nothing checks that a browser ran its piece honestly.\n- **First come, first served.** Each browser runs one job queue, so a long\n  prompt can briefly slow other chats on the same peers.\n- **A rare stalled reply.** Earlier load tests had one to three replies that\n  stalled for about five minutes before finishing. The latest runs had none,\n  but the cause is not fixed yet.\n- **Metadata is visible to the servers.** They see who is in a cluster, but not\n  what anyone says.\n\nThe full list is under Known gaps in\n[`docs\u002Farchitecture.md`](docs\u002Farchitecture.md#failures).\n\n## Browser support\n\n| Browser | Can lend its GPU on |\n|---|---|\n| Chrome, Edge 113+ | Windows, macOS, ChromeOS, Android. Linux may need WebGPU switched on in `chrome:\u002F\u002Fflags`. |\n| Safari 26+ | macOS, iPhone, iPad |\n| Firefox | Windows (141+), Apple silicon Macs (145+) |\n\nAny modern browser can join to chat without lending.\n\n## What it can run\n\n`tools\u002Fconvert_hf.py` converts a Hugging Face checkpoint and rejects any\narchitecture the kernels do not implement:\n\n- Llama-style decoder blocks (RMSNorm, GQA\u002FMHA, RoPE including Llama 3.1\n  scaling, SwiGLU, tied or untied LM head): SmolLM2 and Llama 3.x.\n- The Qwen3.8 hybrid (`qwen3_5`): Gated DeltaNet linear-attention layers mixed\n  with full-attention layers that have partial RoPE, QK-norm and an attention\n  output gate, plus its MTP draft head. Text only.\n\nWeights are stored as f32, f16 or q8. The tokenizer must be byte-level BPE.\n\n## Quick start\n\nYou need Node.js, Python 3, [Caddy](https:\u002F\u002Fcaddyserver.com\u002F) and a browser\nwith WebGPU.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fl-wn\u002FClusterChat && cd ClusterChat\nnpm install\npip install -r tools\u002Frequirements.txt\n\n# Convert a small model and point the cluster at it.\npython tools\u002Fconvert_hf.py --model HuggingFaceTB\u002FSmolLM2-135M\necho '{ \"url\": \"\u002Fweights\u002Fsmollm2-135m\" }' > checkpoint.json\n\n# Serve the repo and the signaling server on http:\u002F\u002Flocalhost:8001.\nexport CHAT_PASS_HASH=\"$(caddy hash-password --plaintext \u003Cpassword>)\"\nPORT=8081 node signal-server.js &\ncaddy run --config Caddyfile.dev\n```\n\nOpen `http:\u002F\u002Flocalhost:8001\u002Fchat?direct=1` in two or more tabs. Each asks\nwhether to lend its GPU, then joins the cluster. One machine can hold the\nwhole cluster, since every tab gets a share of the same GPU.\n\n## Tests\n\n```bash\nnpm test            # Node suites, no GPU\nnpm run test:gpu    # real peers in headless Chrome, needs a GPU\n```\n\n## Documentation\n\n| | |\n|---|---|\n| [`docs\u002Fdeploying.md`](docs\u002Fdeploying.md) | Converting checkpoints, running on a LAN or a domain, TURN, hosting the weights, configuration, troubleshooting |\n| [`docs\u002Farchitecture.md`](docs\u002Farchitecture.md) | Positions, placement and growth, links, routing, the wire format, sessions, the KV cache, speculative decoding, failure recovery, known gaps |\n| [`docs\u002Fmodel.md`](docs\u002Fmodel.md) | The forward pass and what each kernel computes |\n| [`docs\u002Fdevelopment.md`](docs\u002Fdevelopment.md) | Page parameters, dev pages, tests, repo layout |\n\n## Research it builds on\n\n- Borzunov et al., [Petals: Collaborative Inference and Fine-tuning of Large Models](https:\u002F\u002Farxiv.org\u002Fabs\u002F2209.01188) (2022). Splitting a model by layers across volunteers' machines.\n- Leviathan et al., [Fast Inference from Transformers via Speculative Decoding](https:\u002F\u002Farxiv.org\u002Fabs\u002F2211.17192) (2023). Drafting tokens and checking them in one pass.\n- Gloeckle et al., [Better & Faster Large Language Models via Multi-token Prediction](https:\u002F\u002Farxiv.org\u002Fabs\u002F2404.19737) (2024). The idea behind the MTP draft head.\n- Kwon et al., [Efficient Memory Management for Large Language Model Serving with PagedAttention](https:\u002F\u002Farxiv.org\u002Fabs\u002F2309.06180) (2023). Paged KV cache for many sessions at once.\n- Yang et al., [Gated Delta Networks](https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.06464) (2024). The linear-attention layers in Qwen3.8.\n\n## License\n\nGNU Affero General Public License v3.0. See [`LICENSE`](LICENSE). Under\n[`NOTICE`](NOTICE), any deployment must keep a visible credit to ClusterChat\nin its interface.\n\nThe demo's privacy notice, terms and code of conduct (`site\u002Fprivacy.html`,\n`site\u002Fterms.html`) are written for that deploy and its operator. Replace them\nif you run your own.\n","ClusterChat 是一个基于浏览器的去中心化大语言模型（LLM）协作推理系统，允许多用户通过 WebGPU 和 WebRTC 共同分担单个大模型（如 Qwen3.8-27B q8）的推理负载。其核心特点是无中心服务器、支持动态节点加入\u002F退出、多用户并行独立聊天、本地 KV 缓存隔离及端到端浏览器内执行。所有计算在用户设备 GPU 上完成，模型权重以 8-bit 量化加载，通信仅依赖点对点中继（非全网状）。适用于小规模私有协作场景，如研究小组、技术社区或教育实验环境，在无需部署服务器或共享数据的前提下实现高性能本地化 LLM 使用。","2026-11-24 04:32:55","CREATED_QUERY"]