TLDRocket
Sign in

Efficiency & Optimization

59 summarised stories about Efficiency & Optimization, each linking back to the original source. Browse all topics →

Thursday, 23 January 2025

Mastering Long Contexts in LLMs with KVPress

Hugging Face Blog 1 year ago

NVIDIA released KVPress, a toolkit that compresses the key-value cache used during language model inference to reduce memory consumption for long-context processing. Processing 1 million tokens with Llama 3-70B requires 327.6GB for the KV cache alone, but KVPress with a 50% compression ratio reduced peak memory usage from 45GB to 37GB on a 128k token context length. The compression enables faster decoding speeds, improving from 11 to 17 tokens per second on an A100 GPU, making long-context inference more practical for resource-constrained deployments.

SmolVLM Grows Smaller – Introducing the 256M & 500M Models!

Hugging Face Blog 1 year ago

Hugging Face released SmolVLM-256M and SmolVLM-500M, vision language models with 256 million and 500 million parameters respectively. The 256M model is the smallest vision language model ever released and uses a 93-million-parameter vision encoder processing images at 4096 pixels per token, compared to 1820 pixels per token in the previous 2B version. These models enable vision language capabilities on consumer devices and low-cost data processing while maintaining performance on tasks like image captioning, document question-answering, and visual reasoning.