Belfort Labs runs Llama 3.1 8B on encrypted data at 1.7 tokens per second
Belfort Labs reported Llama 3.1 8B inference at 1.7 tokens per second on homomorphically encrypted data, a technical demonstration that keeps prompts hidden from the compute provider. The speed is slow compared with ordinary GPU serving, but it shows encrypted AI inference can run on a mainstream open-weight model.
Belfort Labs published a technical demonstration showing Llama 3.1 8B generating text at 1.7 tokens per second while running on homomorphically encrypted data. The demonstration keeps inputs encrypted during model inference, meaning the server performing calculations never sees the plaintext prompt. The result is presented as a proof that a modern large language model can operate without decrypting user data, although the page does not specify the full hardware stack, model quantization method, or production deployment status.
The headline metric is 1.7 tokens per second for Llama 3.1 8B, a model released by Meta in July 2024. Homomorphic encryption allows computation on ciphertext without revealing plaintext, but it is usually slower than unencrypted inference because arithmetic circuits must be encrypted and managed with noise reduction techniques. The Belfort Labs page frames 1.7 tokens per second as the throughput achieved by its implementation; independent replication would require the code, benchmark parameters, and hardware details.
Llama 3.1 8B is a compact open-weight model, making it a likely first target for privacy-preserving inference experiments. Faster homomorphic systems often trade memory, accuracy, or model size for speed, so 1.7 tokens per second suggests the demonstration is technically feasible but not yet comparable to typical unencrypted GPU inference. The result connects privacy research to consumer AI services where prompts may contain sensitive data and users cannot verify server-side processing.
The demonstration matters for enterprises and developers building AI features on sensitive records, where processing encrypted prompts may reduce exposure of raw text to service providers. It also matters for consumers who cannot verify what happens to their prompts on remote servers. The practical limit is speed: 1.7 tokens per second is usable for short outputs but slow for long conversations, batch jobs, or latency-sensitive applications.
The technique gives AI service designers a way to keep prompts encrypted while generating answers, though the demonstrated speed is too slow for many real-time uses.
Sources (1)
- [1]Homomorphic encrypted Llama 3.1 8B at 1.7 tokens per second(https://bel.belfortlabs.com/)