Suitability for 8 GB graphics cards

#18
by thermi6 - opened

Thank you so much for your excellent model! It is very useful and usable for small contexts on 8 GB graphics cards. However, as stated in a now closed discussion, the KV cache increases in size very quickly. Then it is not possible anymore to keep the data in VRAM.

Would it be possible to aim at severly limiting the size increase of the KV cache in the near future?

Right now this works on 8 GB cards: 4 bit quant + 32768 tokens context length. Any higher and it is too large for VRAM.

I think you would agree that just 32768 tokens is a bit small. What is your opinion on the matter? Do you have any pointers for improving the situation with the current model?

Nanbeige LLM Lab org

Hi, thank you for the kind words and for the detailed report!
Both improving performance and reducing KV cache are on our roadmap. As mentioned in the earlier discussion, we did try sharing the KV cache across loop passes, but it noticeably hurt performance, so we kept the full cache in Nanbeige4.2. Going forward, we are exploring Linear / Sparse Attention to bring the long-context memory cost down more fundamentally. Stay tuned!

Sign up or log in to comment