Theophilus John
See it running on the home page

02/05#dnme-0002/052026Sole engineer

Dianome: Weights, delivered

Model CDN for the browser: verified weight chunks, progressive loads, and a cache shared across sites.

from shared cache
0.81 s
verified chunks
42
SDK, gzipped
13.9 KB
error when split
0.0

How it works, in 4 steps

  1. Packed once: Qwen2.5⁠-⁠0.5B q4 is 42 content⁠-⁠addressed 8 MB chunks behind a two⁠-⁠level manifest.
  2. Streamed layer group by layer group, embed to lm_head, each chunk checked against its SHA⁠-⁠256.
  3. Served from Cloudflare’s edge cache: 323.9 MB in 15.6 s on a real Chrome load.
  4. A second site on Chrome reuses the same chunks through the CDN’s frame: 0.81 s, nothing downloaded.

Notes

Dianome delivers model weights to the browser. A model is packed once into 8 MB content-addressed chunks with a two-level manifest, served from cdn.dianome.dev through Cloudflare’s edge cache, and loaded by the dianome SDK progressively — layer group by layer group, every chunk verified by SHA⁠-⁠256.

Chunks are cached per site in the Cache API on every browser. On Chrome they are also shared across sites, through a frame on the CDN origin after a one-time opt-in, so a second site that uses the same model does not download it again: Qwen2.5⁠-⁠0.5B at q4, 323.9 MB in 42 chunks, took 22.91 s from the network on the first demo site and 0.81 s from the shared cache on the second. Firefox and Safari do not unpartition the Cache API through Storage Access, so there the cache stays per site — a result the project’s own first spike got wrong, and then corrected in writing.

The same SDK runs inference through one run() call that plans per device and network: whole model in the browser on WebGPU, on a split server, or split at a chosen layer. The server half is bit-exact against the full model at every split point tested. The privacy result is negative and stated as one: hidden states at every layer boundary stay linearly invertible to the input tokens, so the honest claim is “raw text is not transmitted”, never “the server cannot read it”.

A TypeScript SDK at 13.9 KB gzipped, Cloudflare Workers and R2 at the edge, a Python ingest and split server, and a WGSL runtime. Every number in the writeup links to the notes file that measured it.

Built with

  • TypeScript
  • Cloudflare Workers
  • R2
  • WebGPU
  • Python
Top00
Enargeia01
Dianome02
Homonoia03
Philoi04
Basis05
About06
Contact07
Fly the night/fly/
Fly freely/fly/#free
Enargeia — the full casepage
Dianome — the full casepage
Homonoia — the full casepage
Philoi — the full casepage
Basis — the full casepage
Enargeia liveenargeia.dev
Enargeia sourcegithub
Dianome livedianome.dev
Dianome sourcegithub
Dianome writeupdianome.dev/writeup
Homonoia livehomonoia.dev
Homonoia sourcegithub
Philoi livephiloi.net
Philoi sourcegithub
Basis sourcegithub
Copy email addresstheophilusjohn@gmail.com
Open the résumépdf
GitHub profilegithub
LinkedInlinkedin
Reduce motionoff
High contrastoff
Single-key shortcutson
Source of this sitegithub