awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
mit-han-lab avatar

mit-han-lab/streaming-llm

0
View on GitHub↗
7,232 stars·399 forks·Python·MIT·16 viewsarxiv.org/abs/2309.17453↗

Streaming Llm

This project is a long context inference engine and optimizer designed to process infinite text streams using large language models without memory growth or performance degradation. It serves as a system for maintaining constant memory usage during the generation of text from arbitrarily long input sequences.

The implementation utilizes a rolling key-value cache manager and attention sink mechanisms to stabilize the attention process during continuous stream processing. By retaining initial tokens and employing a sliding window of key-value pairs, the system enables constant-time inference and prevents memory crashes when handling large volumes of text.

The framework covers capabilities for efficient cache management, including selective key-value eviction and fixed-window attention. These mechanisms allow for real-time text streaming and deployment in environments where memory consumption must remain fixed regardless of the sequence length.

Features

  • Rolling KV Caches - Maintains a fixed-size sliding window of key-value pairs by discarding oldest tokens as new ones arrive.
  • Streaming Attention Kernels - Implements attention masks that retain sink tokens to stabilize memory and attention during continuous streaming.
  • Infinite Sequence Processing - Handles input sequences of any length without needing to restart the system via a rolling cache of attention sinks.
  • Constant-Memory Deployments - Enables running large language models in production where memory consumption must remain fixed regardless of sequence length.
  • LLM Performance Optimization Libraries - Increases resource efficiency and execution speed for LLMs processing infinite text streams.
  • Long Context Processing - Generates text from extremely long inputs while keeping memory usage constant and avoiding performance degradation.
  • KV Cache Management - Optimizes memory used for attention mechanisms to enable scalable inference on hardware with limited RAM.
  • KV Cache Eviction - Implements token removal from the memory buffer to keep sequence length constant while preserving critical sink tokens.
  • Selective KV Eviction - Removes specific non-sink tokens from the cache to maintain a constant sequence length during inference.
  • Constant-Time Inference Engines - Provides stable time and memory complexity for token generation by capping the active attention window.
  • LLM-Based Text Processing - Uses large language models to process and maintain context over massive volumes of text.
  • LLM Stream Processing - Handles and concatenates real-time token streams from language models to optimize latency and throughput.
  • Linear-Time Sequence Models - Processes arbitrarily long sequences with linear computational efficiency and constant memory usage per token.
  • Out-of-Core Processing - Processes continuous streams of text that exceed standard memory limits using a rolling cache mechanism.
  • Real-Time Text Streaming - Integrates LLMs into workflows requiring low-latency processing of arbitrary length input streams.
  • Inference Frameworks - Enables efficient streaming with attention sink techniques.

Star history

Star history chart for mit-han-lab/streaming-llmStar history chart for mit-han-lab/streaming-llm

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Streaming Llm

Similar open-source projects, ranked by how many features they share with Streaming Llm.
  • nvidia/isaac-gr00tNVIDIA avatar

    NVIDIA/Isaac-GR00T

    6,222View on GitHub↗
    Jupyter Notebook
    View on GitHub↗6,222
  • ai-dynamo/dynamoai-dynamo avatar

    ai-dynamo/dynamo

    6,112View on GitHub↗

    Dynamo is a distributed inference orchestration platform designed for large language models. It functions as a system to coordinate prefill and decode phases across GPU nodes, utilizing a multi-backend runtime adapter to connect engines like vLLM and TensorRT-LLM through a unified block-oriented memory interface. An OpenAI-compatible API server provides the frontend for integration with existing tools and clients. The project is distinguished by its disaggregated serving architecture, which separates prompt processing and token generation onto independent GPU pools to optimize throughput and

    Rust
    View on GitHub↗6,112
  • fminference/flexgenFMInference avatar

    FMInference/FlexGen

    9,366View on GitHub↗

    FlexGen is an inference engine for large language models designed for high-throughput execution on single or multiple GPUs. It functions as a framework for managing model execution through a combination of memory offloading, weight compression, and pipeline orchestration. The system enables the execution of models that exceed available GPU memory by moving tensors and caches between GPU memory, system RAM, and disk storage. It utilizes 4-bit weight quantization to reduce the memory footprint of model parameters, allowing for increased batch processing capacity. The project covers distributed

    Python
    View on GitHub↗9,366
  • sgl-project/sglangsgl-project avatar

    sgl-project/sglang

    29,079View on GitHub↗

    Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It provides a programmable interface for orchestrating complex generation workflows, enabling developers to coordinate multi-turn dialogues, tool invocations, and reasoning chains through a domain-specific language. The platform is built to support production-scale deployments, offering an OpenAI-compatible API that allows for integration with existing application ecosystems. The system distinguishes itself through a disaggregated architecture that separates compute-intensive pr

    Pythonattentionblackwellcuda
    View on GitHub↗29,079
See all 30 alternatives to Streaming Llm→

Frequently asked questions

What does mit-han-lab/streaming-llm do?

This project is a long context inference engine and optimizer designed to process infinite text streams using large language models without memory growth or performance degradation. It serves as a system for maintaining constant memory usage during the generation of text from arbitrarily long input sequences.

What are the main features of mit-han-lab/streaming-llm?

The main features of mit-han-lab/streaming-llm are: Rolling KV Caches, Streaming Attention Kernels, Infinite Sequence Processing, Constant-Memory Deployments, LLM Performance Optimization Libraries, Long Context Processing, KV Cache Management, KV Cache Eviction.

What are some open-source alternatives to mit-han-lab/streaming-llm?

Open-source alternatives to mit-han-lab/streaming-llm include: nvidia/isaac-gr00t. ai-dynamo/dynamo — Dynamo is a distributed inference orchestration platform designed for large language models. It functions as a system… fminference/flexgen — FlexGen is an inference engine for large language models designed for high-throughput execution on single or multiple… vllm-project/vllm — vLLM is a high-throughput inference engine designed for the efficient serving and execution of large language models.… sgl-project/sglang — Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It… cstankonrad/long_llama — Long Llama is a transformer-based language model and fine-tuning framework designed to process and maintain logical…