vramkit
github.com/srkrz23/vramkit- Category
- Developer Tools
- Rank
- No. 4316Tools index
Previous survey · No. 4123 ·
- Type
- TOOL
- Use case
- Models: Train & Run
- GitHub
- 5 stars
- Date
About
A research toolkit for reducing VRAM use in LLM inference. It includes a lossless weight codec with a 2-D context-model range coder, which the README reports gives 33% smaller size than raw 4-bit on Qwen2.5-0.5B weights and beats zstd. It also offers drop-in PyTorch KV-cache quantization that works on ROCm, CUDA, MPS and CPU. Its main finding is that quantizing keys per channel keeps int8 KV near-lossless (+0.1% perplexity at 2x).
At a glance
vramkit explores lossless compression for quantized model weights and lower-precision storage for the attention cache. It is worth reading if you are evaluating ways to fit larger models or longer contexts into limited memory.
Good fit
Inference engineers able to compare memory, output quality and speed on the same workload.
Consider something else when
Skip it if you need a production engine with a proven throughput improvement on your GPU.
Start here
Compare the published weight and cache experiments separately. On an approved test setup, measure peak memory and decoding speed on the same short workload before and after cache compression.
Cost and requirements
The examples use PyTorch and NumPy. You supply model weights and compute. The project reports experiments on Apple silicon using CPU PyTorch.
Limits to know
The weight codec verifies round trips on already quantized weights. Cache compression is lossy, and fitting a larger context does not establish a throughput improvement.
Related work
- LexFrame (context)
Sources checked 2026-11-05. Source-based assessment.
Similar tools
Tags
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.