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
FMInference avatar

FMInference/FlexGenArchived

0
View on GitHub↗
9,366 stars·591 forks·Python·Apache-2.0·21 views

FlexGen

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 execution through pipeline parallelism across multiple machines, as well as memory optimization techniques such as asynchronous tensor loading and attention cache compression.

Features

  • Efficient Inference Engines - A high-throughput inference engine for large language models optimizing for memory efficiency and speed.
  • High Throughput Inference - Maximizes inference requests per second through optimized data and weight flow and batching.
  • Large Language Model Optimization - Optimizes large language model inference using memory-efficient offloading and data compression.
  • Parallelism Orchestration - Coordinates the splitting of model execution across multiple GPUs on separate machines.
  • Weight Offloading - Moves model parameters between GPU memory, system RAM, and disk to run models exceeding VRAM limits.
  • Weight Quantization - Implements 4-bit weight quantization to reduce the memory footprint of model parameters.
  • Quantized Model Runners - Provides an execution environment using 4-bit precision to compress weights and increase batch processing capacity.
  • Model Layer Offloading - Enables execution of oversized models by moving tensors and caches to system RAM or disk.
  • Pipeline Parallelism Strategies - Distributes model layers across multiple GPUs on different machines to scale inference for massive models.
  • Memory Offloading Frameworks - Implements a mechanism to move model tensors between GPU memory, system RAM, and disk.
  • Asynchronous Tensor Loading - Overlaps weight transfers from host memory to GPU with the computation of current model layers.
  • Single-GPU Scaling - Deploys massive generative models on limited hardware using weight compression and efficient memory management.
  • Sparsity-Aware Weight Compression - Reduces memory usage of weights and caches using 4-bit precision to increase throughput.
  • KV Cache Management - Reduces memory overhead of the KV cache to support larger batches and token counts.
  • Hardware Optimized Inference - High-throughput generative inference optimized for single GPU environments.
  • Inference Frameworks - High-throughput generative inference on single-GPU systems.
  • Model Serving Engines - Throughput-oriented inference engine for running models on single GPUs.

Star history

Star history chart for fminference/flexgenStar history chart for fminference/flexgen

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 FlexGen

Similar open-source projects, ranked by how many features they share with FlexGen.
  • tiiny-ai/powerinferTiiny-AI avatar

    Tiiny-AI/PowerInfer

    8,714View on GitHub↗

    PowerInfer is a high-performance local large language model inference engine and sparse inference framework. It provides a runtime for executing models on consumer-grade hardware, utilizing a GPU acceleration backend to optimize tensor operations for graphics processors. The system distinguishes itself through a sparse inference framework that increases generation speed by skipping computations based on activation sparsity in model weights. It includes a GGUF model converter for transforming weights and metadata into a unified binary format, as well as an OpenAI API compatible server for inte

    C++large-language-modelsllamallm
    View on GitHub↗8,714
  • sjtu-ipads/powerinferSJTU-IPADS avatar

    SJTU-IPADS/PowerInfer

    9,568View on GitHub↗

    PowerInfer is an inference engine and serving framework designed to run large language models on local hardware. It combines a hybrid CPU-GPU offloader, a quantization tool, and a sparse model optimizer to enable the execution of high-parameter models on consumer-grade devices. The system distinguishes itself through neuron-activation-based offloading, using a predictor model to preload frequent neurons into VRAM while keeping rare neurons in system memory. This hybrid execution model balances workloads between the GPU and CPU based on input patterns to optimize memory access and increase tok

    C++
    View on GitHub↗9,568
  • microsoft/deepspeedmicrosoft avatar

    microsoft/DeepSpeed

    42,533View on GitHub↗

    DeepSpeed is a distributed deep learning optimization library and framework designed for the training and inference of massive AI models. It serves as a model parallelism orchestrator and a toolkit for scaling large language models across multiple GPUs and compute nodes. The project distinguishes itself through 3D parallelism orchestration, which combines data, pipeline, and tensor parallelism. It utilizes ZeRO-based memory partitioning to eliminate redundant storage and employs CPU-offload memory management to move weights and optimizer states to system RAM. Additionally, it provides special

    Python
    View on GitHub↗42,533
  • fminference/flexllmgenFMInference avatar

    FMInference/FlexLLMGen

    9,362View on GitHub↗

    FlexLLMGen is an inference engine and runtime designed to run large language models on a single GPU by combining weight compression with tensor offloading. It reduces model weight memory usage by approximately 70% through 4-bit quantization, and stores model parameters, attention cache, and hidden states across GPU, CPU, and disk to fit models larger than available GPU memory. The project distinguishes itself through a throughput-oriented batching approach that processes multiple generation requests together in large batches to maximize throughput on a single GPU. It also supports distributed

    Pythondeep-learninggpt-3high-throughput
    View on GitHub↗9,362
See all 30 alternatives to FlexGen→

Frequently asked questions

What does fminference/flexgen do?

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.

What are the main features of fminference/flexgen?

The main features of fminference/flexgen are: Efficient Inference Engines, High Throughput Inference, Large Language Model Optimization, Parallelism Orchestration, Weight Offloading, Weight Quantization, Quantized Model Runners, Model Layer Offloading.

What are some open-source alternatives to fminference/flexgen?

Open-source alternatives to fminference/flexgen include: tiiny-ai/powerinfer — PowerInfer is a high-performance local large language model inference engine and sparse inference framework. It… sjtu-ipads/powerinfer — PowerInfer is an inference engine and serving framework designed to run large language models on local hardware. It… microsoft/deepspeed — DeepSpeed is a distributed deep learning optimization library and framework designed for the training and inference of… fminference/flexllmgen — FlexLLMGen is an inference engine and runtime designed to run large language models on a single GPU by combining… openbmb/minicpm — MiniCPM is a collection of small language models designed for local, on-device deployment in resource-constrained… vllm-project/llm-compressor — llm-compressor is a quantization toolkit and post-training library designed to reduce the memory footprint and size of…