The Comprehensive Guide to Encrypted Inference with Tees (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Short version: every model we serve runs in a TEE (a confidential VM plus NVIDIA confidential computing on the GPU). Encrypted requests are sealed on your device to a key the enclave proves it holds, so our gateway relays ciphertext it can’t open. The guide covers attestation step by step, what our router can still see (account, model, timing, size, token counts), and the trust model, including physical attacks like TEE.fail.
Happy to answer any/all questions
Replies (3)
https://en.wikipedia.org/wiki/Homomorphic_encryption
Replies (1)
This service instead uses hardware-level trusted execution. Basically that means step 1 is that the CPU/GPU performs the computation "natively", i.e. with full visibility of the plaintext, with only a small amount of overhead. Step 2 is that the hardware encrypts the output so only the intended recipient can read it. And the chip designed pinky promises that they've disabled every possible means of introspection and debugging, so that the hardware owner can't see what's happening between steps 1 and 2.
Replies (1)
Just want to add, on modern chips (IIUC) the implementation is nearly bulletproof against rogue neighbors (ie other guests of the hosting or service provider including someone who breaks in remotely and gains root). It also categorically rules out your information leaking due to an inadvertent misconfiguration by the service operator.
Where it currently fails (in many different ways over the years) is in the face of a technically capable malicious party with physical access to the hardware.
Replies (1)
Replies (1)
We'll have a blog up this week on the assistant architecture that will go through this in more detail.
More generally, is it not true that a process in a secure enclave is under no restriction to chat with other systems? Your architecture guarantees that your router is in the dark but once we hit the GPUs, it's wide open again.
Replies (1)
Which is to say, it would only be wide open if the image is configured in an insecure manner. I assume that's not the case though.
Replies (1)
The GPU itself is also within the confidential computing boundary, so it's not wide open once inference begins.
As for model modifications, TEEs don't inherently restrict them, but modifications to attested model weights would change their expected measurements.