by Joker_vD · 1d ago · 0 comments
I've seen a paper [0] that ingeniously uses homomorphic encryption to implement arbitrary algorithmic
computations, totally secret, by encoding a (custom-crafted) CPU together with RAM and then running
"tick a clock" algorithm on them. And it works, so you can borrow some AWS huge instance and run you
super-important calculations there — at 1 Hz. I am not kidding, it's literally 1 virtual CPU
instruction per second. Well, if you are okay with such speed and costs, you either have very small
data — at which point just run your computation locally, or you're really, really rich — at which
point just buy your own goddamn hardware and, again, run it locally.
[0] https://arxiv.org/abs/2010.09410> Average Cycle Time: 655.711279ms
And what is r6i.metal, exactly?
R6i instances are powered by 3rd Generation Intel Xeon Scalable processors
(Ice Lake) with an all-core turbo frequency of 3.5 GHz and include support
for always-on memory encryption using Intel Total Memory Encryption (TME).
R6i instances also support new Intel Advanced Vector Extensions (AVX-512)
instructions for faster processing of cryptographic algorithms.
Instance Size vCPU Memory (GiB)
r6i.metal 128 1,024
Amazing. So we're at ≈1.53 Hz now, when executed on top of 32 vCPUs @ 3.5 GHz. And how much memory does it use?People complain about AI datacenters using a whole 8 oz cup of water to answer a single prompt (meanwhile, a single burger apparently takes ≈600 gallons of water to make) but this is an even bigger waste of compute.