For weight quantization, the first results are intel/neural-compressor (Neural Compressor is an open-source model compression toolkit providing automated post-training quantization, quantization-aware training, and low-precision weight optimization to accelerate inference and reduce memory footprint across hardware targets), autogptq/autogptq (AutoGPTQ is a model compression toolkit and post-training quantization framework focused on the GPTQ algorithm to reduce LLM memory footprints, which fits the category well though it is specialised for GPTQ rather than a general-purpose quantization suite covering every format) and vllm-project/llm-compressor (llm-compressor is a quantization toolkit for reducing large language model footprints through weight and activation compression, though it focuses specifically on language models rather than general neural network architectures). openvinotoolkit/openvino and bitsandbytes-foundation/bitsandbytes round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Compare open-source repositories for LLM weight quantization to reduce memory usage and accelerate model deployment.
Neural Compressor is a deep learning model compression toolkit and AI inference acceleration engine. It functions as an automated model quantization tool and hardware-aware model compiler designed to reduce the memory footprint of neural networks and decrease execution latency. The project provides specialized frameworks for optimizing large language models, utilizing weight-only quantization and hardware-specific kernels to improve the operational efficiency of generative AI workloads. It maps neural network operators to specialized CPU and GPU vector instructions to accelerate model executi
Neural Compressor is an open-source model compression toolkit providing automated post-training quantization, quantization-aware training, and low-precision weight optimization to accelerate inference and reduce memory footprint across hardware targets.
AutoGPTQ is a model compression toolkit and post-training quantization framework designed to reduce the memory footprint of large language models. It utilizes the GPTQ algorithm to compress neural network weights, lowering hardware requirements and reducing VRAM usage. The project serves as an inference accelerator by providing optimized kernels that increase token generation speed. It features model architecture extensibility, allowing quantization capabilities to be added to new model structures through configurable patterns. The framework covers a comprehensive quantization pipeline, incl
AutoGPTQ is a model compression toolkit and post-training quantization framework focused on the GPTQ algorithm to reduce LLM memory footprints, which fits the category well though it is specialised for GPTQ rather than a general-purpose quantization suite covering every format.
llm-compressor is a quantization toolkit and post-training library designed to reduce the memory footprint and size of large language models. It provides a framework for compressing models using weight and activation quantization to enable more efficient deployment. The project distinguishes itself through a distributed quantization framework that utilizes data-parallel processing and disk-based weight offloading to handle massive model checkpoints that exceed available system memory. It includes specialized compressors for diverse architectures, including Mixture-of-Experts, Vision-Language,
llm-compressor is a quantization toolkit for reducing large language model footprints through weight and activation compression, though it focuses specifically on language models rather than general neural network architectures.
OpenVINO is an AI inference engine and model serving platform designed to execute optimized deep learning models across CPUs, GPUs, and NPUs through a unified API. It includes a model optimization toolkit for converting, quantizing, and compressing models from various frameworks, alongside a specialized generative AI runtime for large language models. The project distinguishes itself through a plugin-based hardware acceleration layer that maps neural network operations to vendor-specific drivers. It features advanced execution mechanisms such as continuous batching, speculative decoding, and
OpenVINO includes a comprehensive model optimization and quantization toolkit that supports post-training quantization, low-precision formats, and hardware acceleration across multiple platforms to reduce model memory footprint and improve inference speed.
bitsandbytes is a deep learning quantization tool and library designed to reduce the memory footprint of large language models. It serves as a GPU memory optimizer and quantization framework, compressing model weights and features to 8-bit and 4-bit precision to enable inference and training on hardware with limited memory. The project provides a framework for low-rank adaptation, allowing the fine-tuning of quantized models by combining 4-bit weights with small trainable matrices. It further distinguishes itself through memory paging, which moves optimizer states between CPU and GPU memory t
This repository is a deep learning quantization framework built to compress large language model weights to 8-bit and 4-bit precision for optimized memory footprint and inference speed, directly fulfilling the core requirements of this search.
GGML is a machine learning tensor library and neural network engine written in C. It functions as a compute-focused runtime designed to execute transformer-based models and perform complex mathematical operations on multi-dimensional arrays directly on local consumer hardware. The library distinguishes itself by enabling local inference for large language models and edge machine learning deployment without reliance on external cloud infrastructure. It achieves this through a tensor-based computation graph that organizes operations for efficient execution and memory management, alongside stati
This C++ tensor library and runtime provides precision quantization and model optimization tailored for local inference and edge deployment, aligning well with your search for quantization tools.
PocketFlow is an integrated toolkit for deep learning model compression, distributed training, and mobile format optimization. It provides a system for reducing the size and complexity of neural networks to improve inference efficiency, featuring a dedicated engine for knowledge distillation and a mobile model optimizer. The framework differentiates itself through an automated hyperparameter tuning system that uses reinforcement learning and statistical models to determine optimal compression ratios and layer-wise bit allocation. It also includes a distributed training system that utilizes mu
PocketFlow is a deep learning model compression framework that includes quantization-aware training and automated bit allocation for inference optimization, making it well-suited for reducing neural network precision despite missing an explicit mention of ONNX support.
This project is a quantized fine-tuning framework for large language models. It implements a low-rank adaptation library and a four-bit quantizer to reduce the GPU memory requirements needed to train large models. The framework utilizes four-bit quantization and low-rank adapters to enable model training on consumer-grade hardware. It further reduces the memory footprint through double quantization and a paged optimizer that offloads states to system RAM. The system supports distributed training across multiple GPUs to handle larger parameter scales and includes utilities for custom dataset
This repository provides a specialized quantization and fine-tuning framework that reduces memory footprints using four-bit quantization, serving as a powerful tool for efficient model adaptation despite lacking some general-purpose post-training quantization features.
MLSys 2024 Best Paper Award AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration
This repository provides an activation-aware weight quantization framework tailored for large language models to compress memory and accelerate inference, aligning directly with the required optimization capabilities.
BitNet is a quantized inference engine designed to execute highly compressed language models by performing arithmetic on low-precision, bit-level weight data. It functions as a model optimization toolkit and a high-performance kernel library, enabling the execution of large language models on consumer hardware by reducing memory footprints and increasing processing speeds. The project distinguishes itself through hardware-specific kernel optimizations that leverage native processor instructions to accelerate matrix multiplication. By utilizing packed integer arithmetic and memory-aligned weig
BitNet is a quantized inference engine and optimization toolkit that executes low-precision language models to reduce memory footprints and accelerate inference speeds, matching the core model weight quantization needs even though training-specific features are less prominent.
llama.cpp is a high-performance C++ inference engine and runtime for executing large language models locally across various hardware architectures. It provides the core components for local model execution, including a dedicated model quantizer for compressing weights into the GGUF format and a system for generating text embeddings for semantic search. The project distinguishes itself through specialized memory and execution optimizations, such as block-wise weight quantization to reduce memory footprints and memory-mapped model loading. It supports structured text generation by using formal
It is a high-performance C++ inference engine rather than a general-purpose quantization framework, but it provides built-in model quantizers and block-wise weight quantization to significantly reduce memory footprints and accelerate local execution.
Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a configurable training pipeline orchestrated through YAML recipes, with CLI overrides and component swapping, distributed training via FSDP2, memory optimizations, and parameter-efficient fine-tuning methods like LoRA, DoRA, and QLoRA. The library distinguishes itself through its YAML-driven configuration system that defines all training parameters and instantiates components from config files, with full CLI override capability for any field or component at launch time. It suppo
Torchtune is a PyTorch-native library for fine-tuning and quantizing large language models that supports low-precision formats and quantization-aware training, though its primary focus is on fine-tuning workflows rather than being a general-purpose quantization framework.
TensorRT is a deep learning inference engine and software development kit designed to optimize and deploy neural networks for high-performance execution on NVIDIA GPUs. It functions as a GPU acceleration framework that reduces latency and increases throughput for trained models during production deployment. The toolkit imports models from the Open Neural Network Exchange format and transforms them into optimized engines. It utilizes graph-based model optimization, layer-fusion kernel generation, and precision-based quantization to convert floating point weights into lower precision formats.
TensorRT is a deep learning inference engine and optimization toolkit that handles precision quantization and ONNX support to compress models for NVIDIA GPUs, making it a powerful choice for inference acceleration even though it is not a general-purpose cross-hardware quantization framework.
Axolotl is a configuration-driven framework designed for the fine-tuning, evaluation, and quantization of large language models. It functions as a comprehensive orchestrator for distributed training, enabling users to manage complex workflows across multi-node and multi-GPU environments. By utilizing structured configuration files, the platform streamlines the setup of training parameters, dataset paths, and hardware distribution strategies. The project distinguishes itself through its support for diverse training methodologies, including full-parameter tuning, parameter-efficient adaptation,
Axolotl is a configuration-driven framework designed for fine-tuning and quantization of large language models, making it a relevant tool for optimizing model footprints despite being primarily focused on training orchestration.
Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a config-driven system for instantiating components, orchestrating distributed training, and managing parameter-efficient fine-tuning with quantization support, all through YAML-based configurations and command-line overrides. The library distinguishes itself through its comprehensive post-training workflow orchestration, combining supervised fine-tuning, preference optimization (DPO, PPO, GRPO), knowledge distillation, and quantization-aware training in a single configurable pip
Torchtune is a PyTorch-native library for fine-tuning and quantizing large language models that supports post-training workflows and optimization, making it a relevant tool for reducing weight precision despite being primarily focused on fine-tuning.
ExecuTorch is a lightweight C++ runtime for deploying PyTorch models on mobile, embedded, and edge hardware. It provides an ahead-of-time compilation pipeline that exports, quantizes, and lowers model graphs into compact serialized programs, then executes them through a minimal runtime with hardware acceleration and on-device large language model inference capabilities. The project distinguishes itself through a hardware accelerator delegate system that partitions model subgraphs and offloads computation to specialized backends including NPUs, GPUs, and DSPs from Apple, Arm, Intel, MediaTek,
ExecuTorch is an edge deployment runtime that includes model quantization and compilation pipelines for optimizing PyTorch models, though it is primarily a deployment and runtime framework rather than a dedicated, standalone quantization toolkit.
gpt-fast is a PyTorch transformer inference engine designed for text generation using a native tensor library implementation. It provides a runtime for executing large language models without the need for external C++ extensions. The project implements speculative decoding to accelerate generation by using a small draft model for token prediction and a larger model for verification. It further optimizes performance through a compiled prefill stage and a multi-GPU tensor parallelism library that shards linear layers across multiple graphics processing units. Memory efficiency is managed throu
This repository provides a high-performance inference engine for large language models that incorporates weight quantization and compiled optimizations to reduce memory footprint and speed up execution, though it focuses more on runtime inference than a general quantization toolkit.
4 bits quantization of LLaMA using GPTQ
This repository provides a specialized post-training quantization tool for compressing large language models to 4-bit precision, though it focuses narrowly on a single architecture rather than a general-purpose framework.
This repository provides PyTorch tools for neural network quantization to help reduce model memory footprint and improve training efficiency, fitting the category well despite missing some advanced features.
PyTorch implementation for the APoT quantization (ICLR 2020)
This repository provides a specialized quantization tool for neural networks, though the lack of a detailed description makes it harder to confirm support for every specific low-precision format and hardware acceleration feature requested.
Reducing the size of convolutional neural networks
This repository provides tools for trained ternary quantization to compress neural networks, directly supporting low-precision formats and model compression to optimize inference footprints.
alibabacloud-quantization-networks
This repository provides a model quantization framework for reducing neural network precision, though the lack of a detailed description makes it hard to confirm specific features like hardware acceleration or low-precision formats.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| intel/neural-compressor | 2.6K | Python | apache-2.0 | |
| autogptq/autogptq | 5.1K | Python | MIT | |
| 2.8K |
| Python |
| apache-2.0 |
| openvinotoolkit/openvino | 10.4K | C++ | Apache-2.0 |
| bitsandbytes-foundation/bitsandbytes | 8K | Python | mit |
| ggml-org/ggml | 14K | C++ | mit |
| tencent/pocketflow | 2.9K | Python | other |
| artidoro/qlora | 10.9K | Jupyter Notebook | MIT |
| mit-han-lab/llm-awq | 3.6K | Python | MIT |
| microsoft/bitnet | 39.3K | Python | MIT |