Loading video...

Video Failed to Load

Go Home

A full x86_64 Linux VM sandbox in WASM with host OS read-only folder mount, accessible via native tool calls by a WebGPU LLM. Video is real time. There is no server, no privacy concerns, no “escapes”. Comfortably in a browser tab. Sandboxes work. If they don’t: Not a sandbox.

44,098 views • 1 month ago •via X (Twitter)

25 Comments

solst/ICE of Astarte's profile picture
solst/ICE of Astarte1 month ago

Very cool, do you have any more details on how to set one up?

remy🐀's profile picture
remy🐀1 month ago

I’ll probably have a short writeup and code by the end of the week. I’ve been running this setup in wazero WASM runtime for several months, and to be completely honest it’s little more than some Make/Go/JSON. But I’m realizing that’s worth writing about now. 🫠

solst/ICE of Astarte's profile picture
solst/ICE of Astarte1 month ago

Yes please! Would love to read more about this and any different approaches you’ve tested!

remy🐀's profile picture
remy🐀1 month ago

I can definitely write about that (and any other questions or scrutiny you want answered)! Feel free to DM me anything you want covered, I treat my blogs like they’re public facing notes of personal projects, so anything is on the table even if it makes me look silly

Greg Linares (Laughing Mantis)'s profile picture
Greg Linares (Laughing Mantis)1 month ago

Yo @ZackKorman Remy is a bad ass and you should both talk

remy🐀's profile picture
remy🐀1 month ago

@ZackKorman Always down for a chat!

Zack Korman's profile picture
Zack Korman1 month ago

This is so dope

Raju Mandal's profile picture
Raju Mandal1 month ago

The read-only mount is the detail I like. A sandbox is only as good as the host access it exposes.

EIonAI's profile picture
EIonAI1 month ago

Cool, are you limited by the 256mb max buffer? happy to pitch in the GPU code part to add cuda/vulkan support to raise it to 4gb

mac's profile picture
mac1 month ago

post the git or stfu

remy🐀's profile picture
remy🐀1 month ago

what is git

mac's profile picture
mac1 month ago

git is an old old wooden ship that was used in the civil war era (pre llm)

msuiche's profile picture
msuiche1 month ago

@_mattata it seems pretty fast inference for WebGPU no?

remy🐀's profile picture
remy🐀1 month ago

@maceip It’s just transformers.js with the typical kernel tuning. I’m not claiming to have done anything particularly novel here fwiw.

msuiche's profile picture
msuiche1 month ago

@maceip just curious because the only person I saw trying WebGPU was @maceip and it seemed slower but I guess he used a 3B

mac's profile picture
mac1 month ago

@_mattata vibethinker-3b still fundamentally misunderstood

Max Kupriianov's profile picture
Max Kupriianov1 month ago

Super cool!! This is what I wanted for (currently runs RISCV64 for speed - soon will switch to a new ARM64 emulator) But memory constrains for iOS is kinda deal breaker.

ɐʞsǝs's profile picture
ɐʞsǝs1 month ago

@0x6D6172636F Mmm so good to see virtualization done well

impostor's profile picture
impostor1 month ago

now, put it in an nsjail, just to be sure.

AI IT PM in HK's profile picture
AI IT PM in HK1 month ago

Read-only host mounts are the boring pass condition for sandbox demos 👀

alias's profile picture
alias1 month ago

This is brilliant.

Zynk's profile picture
Zynk1 month ago

Have you ever seen a children's sandbox that always managed to contain the sand? Not sure that term has been well thought out.

remy🐀's profile picture
remy🐀1 month ago

…yes? Plenty of times at amusement parks where critical thought went into the design. The purpose of a sandbox is a box to contain sand. Containing the sand is the entire purpose of the box. If the box doesn’t contain the sand: you have a pile of escaped sand and a bad sandbox.

Zynk's profile picture
Zynk1 month ago

Yes.

Jeff Lindsay's profile picture
Jeff Lindsay1 month ago

@chompie1337 whats the vm?

Related Videos