Loading video...

Video Failed to Load

Go Home

Introducing: a coding agent (Pi) running entirely in your browser using a 2B model on WebGPU 🤯 MiniCPM5-2B + Pi, powered by Transformers.js + WebGPU + 4-bit ONNX weights. All previous attempt to create this failed but MiniCPM5 seems to make it usable. Available now on Hugging Face 👇

90,211 views • 1 month ago •via X (Twitter)

31 Comments

Victor M's profile picture
Victor M1 month ago

Try it here:

Esee's profile picture
Esee1 month ago

is this Pi?? 😂

orvir's profile picture
orvir1 month ago

2B running a coding agent locally is the part that gets me what's it actually usable for, autocomplete-tier stuff or can it hold a real task

fcan's profile picture
fcan1 month ago

wow great work! I have been trying to run MiniCPM5-2B in a browser. Tried Transformers.js/ONNX route but WebLLM/MLC works faster in my experience. Here is my Hugging Face space that uses my own MLC quants.

TOM 🦋🔶🅿️'s profile picture
TOM 🦋🔶🅿️1 month ago

cool

decipherx's profile picture
decipherx1 month ago

the browser is becoming the smallest useful agent sandbox

Towhid Khan's profile picture
Towhid Khan1 month ago

The embedding split is the part that makes this work: 510 MiB of embeddings cut losslessly into four 127.5 MiB tensors so it clears WebGPU's 128 MiB storage binding cap. First download is 1.84 GB into OPFS, and cached reloads pull zero weights.

Lars's profile picture
Lars1 month ago

Does the cat have a name @victormustar

✧.*'s profile picture
✧.*1 month ago

Whats the cat mascot called?

Sogni.ai's profile picture
Sogni.ai1 month ago

pair Pi with Sogni Creative Agent and you have code plus creative production in one very capable setup 😎

LUNCYKONG's profile picture
LUNCYKONG1 month ago

Lots of clustered wallets fuck this

Phantom Phreak's profile picture
Phantom Phreak1 month ago

wtf lol

EDDY VU's profile picture
EDDY VU1 month ago

Running a usable 2B model entirely in-browser via WebGPU is a genuinely impressive technical feat, huge congrats on the release.

SourceCodeplz's profile picture
SourceCodeplz1 month ago

why not use wllama ?

Crio Songo's profile picture
Crio Songo1 month ago

居然能直接在浏览器跑端侧编码智能体,MiniCP5这个小模型适配得真不错,不用部署本地就能体验,挺方便。

Varik Verilion's profile picture
Varik Verilion1 month ago

How much of the coding workflow survives once the browser tab loses focus or the WebGPU device gets reclaimed?

Johnny's profile picture
Johnny1 month ago

oh shit you did it!

Nazmul Hossain's profile picture
Nazmul Hossain1 month ago

running an agent client-side on webgpu is insane progress. testing this now

Pronsh's profile picture
Pronsh1 month ago

kinda dope

Karthikeyan Ranasthala's profile picture
Karthikeyan Ranasthala1 month ago

Awesome! Will give it a try

Marina Rosa's profile picture
Marina Rosa1 month ago

My god you beat me to it Absurdly marvelous thank you for that

Shesaidmewakeup's profile picture
Shesaidmewakeup1 month ago

2B on WebGPU that actually finishes a loop is the part most people skip. Cloud still wins the hard tasks. This wins the ones you can keep in a tab.

msuiche's profile picture
msuiche1 month ago

@maceip NOT WRONG! JUST EARLY!

Offscript's profile picture
Offscript1 month ago

the interesting part isnt that it codes, its that nothing leaves the machine. a 2b wont out-write a frontier model but it can read things youd never paste into an api. whats the latency per token like on a normal laptop gpu?

LLM Codes's profile picture
LLM Codes1 month ago

wait is it actually coding in the browser or just chatting

nick's profile picture
nick1 month ago

crazy

Thomas Gauthier-Caron's profile picture
Thomas Gauthier-Caron1 month ago

This is so cool! Would you be so kind as to open source the web app? The pi TUI + monaco workspace split view is really nice

Tom Zarebczan 🛡's profile picture
Tom Zarebczan 🛡1 month ago

Any benchmarks?

Victor M's profile picture
Victor M1 month ago

yes

basedcapital's profile picture
basedcapital1 month ago

transformers.js, webgpu and 4-bit onnx all shipped before and died, so the model was the bottleneck. webllm with the same model should get the same jump. the browser part was never the story.

Labangram Photography's profile picture
Labangram Photography1 month ago

Browser-local coding agent that actually sticks is rare. How do you cap tool loops + WebGPU memory when the session runs long?

Related Videos