0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

FastDMS: First Public Implementation of NVIDIA's DMS, Saving Up to 7.6x KV-Cache with Zero Loss and Faster Than vLLM

0
Posted at

This article is based on a LinkedIn post by Shisa AI CTO&Co-founder Leonard Lin and is republished with permission.

I Just published one of the side projects that's been grinding away in the background over the past few weeks.

FastDMS (MIT licensed): https://lnkd.in/gGwqajVc

This is the first proper public implementation of Dynamic Memory Sparsification (DMS), a KV-cache compression technique published by NVIDIA affiliated researchers last year (reporting up to 8X kvcache memory savings): https://lnkd.in/gyAXX4fX

On my real-world tests I was able to get 4.8x-7.6x KV-cache memory savings with zero quality loss.

Besides a (very slow) HF reference and trainer code of the learned per-head token eviction, the "fast" part of FastDMS is that I had frontier models grinding away on kernel optimizations until prefill matched vLLM's BF16/FP8 speeds, and decode was >1.5x faster.

It's a bit of a side-quest, and getting it to production grade is ... going to be a slog, so I'm just putting it out in world now and hoping others pick up the baton. 😅
1777932080842.jpg

Original LinkedIn post link

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?