Homomorphically Encrypted Llama3-8B at 2 tokens/sec jeremykun.com · 11 points · ...
HN Best 200 @best
Homomorphically Encrypted Llama3-8B at 2 tokens/sec jeremykun.com · 11 points · 6 comments · HN thread
TL;DR Belfort released a demo running an 8-billion-parameter Llama3 model under homomorphic encryption at nearly 2 tokens per second, a large jump from the roughly 30 seconds per token that was state of the art only months earlier. The author, Jeremy Kun, calls it a milestone but notes significant caveats: the demo uses shared key material of about 45 GiB, runs on 8 NVIDIA B200 GPUs, and serves one user at a time with a 500-token limit.
- Belfort's demo runs HE-encrypted Llama3-8B inference at nearly 2 tokens per second, versus about 30 seconds per token for prior state of the art a few months earlier.
- Multi-token sampling is performed entirely on the server under encryption, avoiding client round-trips to decrypt logits, apply softmax and re-encrypt.
- The key material is roughly 45 GiB, so the demo does not use user-generated keys; the author tested his own keys in a private session and confirmed that a flipped decryption bit produced gibberish.
- Limits include one prompt per conversation, 500 combined input/output tokens, and one user served at a time.
- The demo runs on 8x NVIDIA B200 GPUs; the author argues the bottleneck is shifting from latency toward key size and deployment costs.
- Belfort's whitepaper roadmap includes FHE-friendlier model variants and custom hardware; the author expects roughly 10x cost improvement by end of 2027.
Discussion The thread is short and mostly admiring. Commenters welcome the milestone that encrypted LLM inference works at all, with one long comment focusing on the practical cost: eight B200 GPUs, a 45 GB key, and a 500-token limit. The author replies that the 60x speedup in about six months suggests further gains are likely. Overall mood is positive and impressed, with skepticism limited to real-world usefulness.
- Impressive milestone for FHE, worth celebrating (many): Several commenters simply praise the progress, calling it seriously impressive and truly amazing for the field of fully homomorphic encryption.
- Current cost and scale make practical use doubtful (some): One commenter calculates that the cluster costs about $53 per hour at spot rental prices and needs roughly 40 times the memory of a plain 8B model, questioning whether any real use case can justify it outside nation-state budgets.
- Performance will improve quickly (some): The author argues that a 60x latency gain in six months points to continued fast improvement, citing FHE-friendly model variants and custom hardware on the roadmap.
- Demo feels slow in practice (a few): One commenter who tried it found it sluggish, comparing the experience to a sloth, echoing a Wired article on the same topic.
Links from the comments