Been working on something I’m calling Dense RAM / FoldedMemory (DenseMem v0.2.0) and curious if anyone has gone down this road before.
The basic idea: instead of evicting KV cache entries when VRAM fills up, compress them using PCA/SVD and offload to system RAM as a warm tier. Hot activations stay in VRAM uncompressed. Cool activations — scored by access recency and activation magnitude — get folded into RAM at up to 256x compression with high fidelity.
The result on my end: running 72B models on a gaming PC. Hardware cost delta vs what this workload “should” require is roughly $32,000 vs $1.88.
Designed specifically for AMD Threadripper PRO WRX80 with 512GB DDR4 ECC RDIMM across all 8 channels — the thesis being density over speed. More addressable cache pool beats faster cache for this use case.
It powers a self-improving AI system I built called Harvester — patent pending, achieved a perfect SAE score on the Google DeepMind Kaggle Metacognition track.
Curious if anyone has tackled the eviction logic differently or pushed the compression ratio further. Happy to go deep on the implementation.