hn.today

Homomorphically Encrypted Llama3-8B at 2 tokens/sec

jeremykun.com45 points15 comments
Screenshot of Homomorphically Encrypted Llama3-8B at 2 tokens/sec

Belfort has demonstrated Llama 3 8B inference using fully homomorphic encryption (FHE) at nearly two tokens per second, a dramatic improvement over the roughly 30 seconds per token reported for comparable encrypted inference only months earlier. The system combines GPU acceleration, cryptographic advances, and memory-conscious engineering. A notable technical achievement is that it performs multi-token sampling on the server while data remains encrypted. Earlier approaches sent encrypted model outputs to the client for decryption and sampling, then required the next token to be re-encrypted and returned - a costly round trip that made practical use difficult. The result marks progress not only in speed but in bringing encrypted AI inference closer to usable deployment.

The public demo does not use each user’s own keys: the required key material is about 45 GiB, making key generation, transfer, and GPU loading impractical at demo scale. A separate test with the presenter’s keys confirmed that decryption worked, while altering the secret key produced unintelligible output. The demonstration is also limited to one prompt per conversation, 500 total input and output tokens, and one user at a time; the model itself has the limitations of an 8-billion-parameter system. It runs on eight NVIDIA B200 GPUs. These constraints suggest the field’s main challenge is shifting from inference latency toward memory, key management, and serving multiple users, while larger models may depend on further GPU advances or specialized hardware.

Read on jeremykun.com15 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.