# LLM weight quantization

> AI-ranked search results for `weight quantization` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 118 total matches; showing the top 22.

Explore on the web: https://awesome-repositories.com/q/weight-quantization

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/weight-quantization).**

## Results

- [intel/neural-compressor](https://awesome-repositories.com/repository/intel-neural-compressor.md) (2,585 ⭐) — 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
- [autogptq/autogptq](https://awesome-repositories.com/repository/autogptq-autogptq.md) (5,070 ⭐) — 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
- [vllm-project/llm-compressor](https://awesome-repositories.com/repository/vllm-project-llm-compressor.md) (2,764 ⭐) — 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,
- [openvinotoolkit/openvino](https://awesome-repositories.com/repository/openvinotoolkit-openvino.md) (10,414 ⭐) — 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
- [bitsandbytes-foundation/bitsandbytes](https://awesome-repositories.com/repository/bitsandbytes-foundation-bitsandbytes.md) (7,968 ⭐) — 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
- [ggml-org/ggml](https://awesome-repositories.com/repository/ggml-org-ggml.md) (13,985 ⭐) — 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
- [tencent/pocketflow](https://awesome-repositories.com/repository/tencent-pocketflow.md) (2,914 ⭐) — 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
- [artidoro/qlora](https://awesome-repositories.com/repository/artidoro-qlora.md) (10,929 ⭐) — 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
- [mit-han-lab/llm-awq](https://awesome-repositories.com/repository/mit-han-lab-llm-awq.md) (3,563 ⭐) — [MLSys 2024 Best Paper Award] AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration
- [microsoft/bitnet](https://awesome-repositories.com/repository/microsoft-bitnet.md) (39,327 ⭐) — 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
- [ggerganov/llama.cpp](https://awesome-repositories.com/repository/ggerganov-llama-cpp.md) (116,912 ⭐) — 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
- [pytorch/torchtune](https://awesome-repositories.com/repository/pytorch-torchtune.md) (5,774 ⭐) — 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
- [nvidia/tensorrt](https://awesome-repositories.com/repository/nvidia-tensorrt.md) (13,076 ⭐) — 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.
- [axolotl-ai-cloud/axolotl](https://awesome-repositories.com/repository/axolotl-ai-cloud-axolotl.md) (12,059 ⭐) — 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,
- [meta-pytorch/torchtune](https://awesome-repositories.com/repository/meta-pytorch-torchtune.md) (5,774 ⭐) — 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
- [pytorch/executorch](https://awesome-repositories.com/repository/pytorch-executorch.md) (4,296 ⭐) — 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,
- [meta-pytorch/gpt-fast](https://awesome-repositories.com/repository/meta-pytorch-gpt-fast.md) (6,223 ⭐) — 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
- [qwopqwop200/gptq-for-llama](https://awesome-repositories.com/repository/qwopqwop200-gptq-for-llama.md) (3,072 ⭐) — 4 bits quantization of LLaMA using GPTQ
- [eladhoffer/quantized.pytorch](https://awesome-repositories.com/repository/eladhoffer-quantized-pytorch.md) (213 ⭐)
- [yhhhli/apot_quantization](https://awesome-repositories.com/repository/yhhhli-apot-quantization.md) (287 ⭐) — PyTorch implementation for the APoT quantization (ICLR 2020)
- [tropcomplique/trained-ternary-quantization](https://awesome-repositories.com/repository/tropcomplique-trained-ternary-quantization.md) (114 ⭐) — Reducing the size of convolutional neural networks
- [aliyun/alibabacloud-quantization-networks](https://awesome-repositories.com/repository/aliyun-alibabacloud-quantization-networks.md) (120 ⭐) — alibabacloud-quantization-networks
