thehardwarestore.ai

where AI agents shop for the right tools

── 98817 repos indexed ── | filtered by tag: #quantization
huggingface/transformers β˜… 166894 34739 APPLICATION

Hugging Face Transformers is a large-scale Python library that provides thousands of pretrained Transformer model implementations for text, vision, audio, video, multimodal, time-series, and other modalities. It serves as a unified interface for loading, training, fine-tuning, and running inference with state-of-the-art deep learning models. The architecture follows a modular, auto-discovery pattern: each model family is self-contained within a subpackage (configuration, modeling, tokenizer/processor), and the library uses lazy imports and auto-registration via the `Auto*` classes. Key entry points include the `transformers` Python API, a CLI for chat and serving, and exporter tools for ONNX/OpenVINO/Executorch. The codebase demonstrates exceptional engineering craftsmanship with clean abstractions such as the `ProcessorMixin` for multimodal processors, the `HfQuantizer` abstract factory for quantization backends, and the continuous batching infrastructure with paged attention for efficient inference. It is not primarily a data research project, though it contains model conversion scripts and benchmark integrations; its dominant character is as a production-grade application library.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 6 reusable components found
vllm-project/vllm β˜… 93061 22927 APPLICATION

vLLM is a high-throughput, memory-efficient inference and serving engine for large language models (LLMs). It implements PagedAttention for near-zero waste KV cache management, continuous batching, chunked prefill, prefix caching, CUDA/HIP graphs, speculative decoding, and torch.compile. The system serves OpenAI-compatible APIs (chat completions, completions, embeddings, rerank, speech-to-text), Anthropic Messages API, Cohere API, and custom pooling/classification endpoints. It supports 200+ model architectures including dense, MoE, hybrid SSM/attention, and multimodal models (vision, audio, video). The architecture is a hybrid Python/Rust system: a Python core handles model execution, scheduling, and kernel dispatch, while a Rust frontend provides a high-performance HTTP/gRPC server with middleware for auth, metrics, and load management. Key entry points include the `vllm` CLI (serve, bench, launch), the `LLM` class for offline inference, and the OpenAI-compatible API server. External dependencies include PyTorch, HuggingFace Transformers, FlashAttention, CUTLASS, Triton, NCCL/RCCL, and various quantization libraries. The project is production-grade with extensive CI/CD, Docker images, Helm charts, and deployment integrations for Kubernetes, Ray, SageMaker, and more.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
qdrant/qdrant β˜… 34859 2705 APPLICATION

Qdrant is a production-grade vector similarity search engine and database written in Rust. In production it stores points (dense, sparse, or multi-vector embeddings with optional JSON payloads), builds approximate nearest-neighbor indexes (HNSW, sparse inverted indexes, plain scans), and serves similarity search, recommendation, discovery, grouping, facet, and hybrid BM25+vector fusion queries over REST and gRPC APIs. It runs as a distributed cluster: collections are sharded and replicated across nodes with Raft-based consensus for cluster metadata, supporting resharding, snapshot transfer, and tunable consistency. An embedded variant (Qdrant Edge) ships with Python bindings and UniFFI for serverless and edge deployments. The workspace is modular: segment (vector storage, indexing, quantization), collection (shard management, replication, optimizers), shard (query planning, grouping, quota), storage (consensus, content manager, RBAC), api (REST/gRPC definitions), and common (universal I/O, hardware counters, data structures). The codebase demonstrates exceptional engineering: SIMD-optimized distance metrics (AVX2/SSE/NEON), GPU-accelerated HNSW via Vulkan compute shaders, advanced quantization (binary, product, scalar, TurboQuant with Hadamard rotation and P-square estimators), a universal I/O abstraction over mmap/io_uring/object stores, and a read-only/update-only storage separation pattern with live reload. The test suite is extensive: unit, integration, multi-node consensus (Python), e2e, and criterion benchmarks. Maintenance is very active with daily commits, a large CI matrix, and a mature release process. The main risks are inherent complexity: feature-flag proliferation, multiple SIMD backends, custom forks of tonic and raft-rs, and a combinatorial surface of index and storage variants. Overall this is one of the best-engineered open-source databases, with genuinely reusable crates (blobstore, posting_list, quantization, wal, universal_io) that could be extracted into standalone projects.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 6 reusable components found
pytorch/pytorch β˜… 103337 30498 APPLICATION

PyTorch is the industry-standard open-source machine learning framework that provides tensor computation with strong GPU acceleration and a tape-based autograd system for building deep neural networks. The repository is a massive monolithic C++/Python codebase that implements the core tensor library (ATen), the autograd engine, the JIT/TorchScript compiler, the TorchDynamo compiler, the TorchInductor backend, distributed training primitives (c10d), quantization, mobile deployment, and extensive Python bindings. The architecture is layered: the C++ core (c10, ATen) provides foundational tensor types and dispatch; torch/csrc bridges Python and C++; torch/_dynamo and torch/_inductor implement the modern torch.compile() stack; torch.distributed provides data-parallel, tensor-parallel, and pipeline-parallel training; and torch.ao hosts quantization, pruning, and other model optimization techniques. Key entry points include the Python package root (torch/__init__.py), the C++ Python bindings (torch/csrc/Module.cpp), the autograd engine (torch/csrc/autograd/), the dynamo compiler (torch/_dynamo/convert_frame.py), and the inductor backend (torch/_inductor/compile_fx.py). The system relies on external dependencies including CUDA, cuDNN, NCCL, MKL, and various vendor libraries, with extensive build configuration via CMake and setuptools.

RATING: 9.8/10 MAINT: active DRIFT: low
β–Έ 10 reusable components found
OpenNMT/CTranslate2 β˜… 4662 526 APPLICATION

CTranslate2 is a high-performance inference engine for Transformer models, optimized for CPU and GPU deployment. It supports a wide range of architectures including encoder-decoder (BART, T5, NLLB, M2M-100, Whisper), decoder-only (LLaMA, GPT-2, Mistral, Gemma, Qwen), and encoder-only (BERT, DistilBERT, XLM-RoBERTa) models. The system provides a C++ library with Python bindings, a command-line tool (ct2-translator), and converters from popular frameworks like HuggingFace Transformers, Fairseq, Marian, OpenNMT-py/tf, and OPUS-MT. Key features include quantized inference (INT8/INT16/FP16/BF16/AWQ), flash attention, multi-GPU tensor parallelism, streaming generation, and token-level penalties. The architecture follows a modular design with device-agnostic operations, layer abstractions, and a model registry that allows plugging in new architectures without modifying the core engine. The codebase is actively maintained with frequent releases, extensive test coverage (C++ and Python), and CI pipelines for multiple platforms and backends.

RATING: 9.3/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
sqliteai/sqlite-vector β˜… 1147 50 APPLICATION

This repository implements a C-based SQLite loadable extension that adds vector search capabilities directly within SQLite databases. It enables similarity search using distance metrics (L2, Cosine, Dot, L1, Hamming) on various vector types (F32, F16, BF16, I8, U8, BIT) without requiring virtual tables. The core architecture is a modular C extension with runtime SIMD dispatch for hardware-accelerated distance calculations, supporting platforms including Linux, macOS, Windows, Android, iOS, and RISC-V. The project provides official language bindings for Python, Node.js, Swift, Flutter, and Android, facilitating integration into diverse application stacks. It includes a TurboQuant implementation for compact 2/3/4-bit quantization, allowing for reduced memory footprint and approximate search with high recall. The codebase demonstrates high craftsmanship in low-level optimization, particularly in its SIMD intrinsics handling and cross-platform binary distribution strategy. While the repository contains benchmarking scripts and quantization research documentation, its primary function is as a production-ready library for edge AI and mobile workloads. It is designed for offline, on-device AI with a low memory footprint (~30MB default). The zero open issues and recent commit activity indicate a stable and actively maintained codebase with low technical drift.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
hiyouga/LlamaFactory β˜… 75280 9221 APPLICATION

LLaMA-Factory is a production-grade, unified framework for fine-tuning, evaluating, and serving 100+ large language and multimodal models. It provides a CLI (`llamafactory-cli`), a Gradio web UI (LLaMA Board), and an OpenAI-compatible API server. The architecture is monolithic but highly modular, built on Hugging Face Transformers/TRL/PEFT with optional integration of vLLM, SGLang, DeepSpeed, FSDP, Megatron Bridge, and hardware-specific backends (CUDA, ROCm, NPU, XPU). Training pipelines support full-parameter, LoRA, QLoRA, freeze-tuning, and alignment methods (DPO, PPO, KTO, etc.) with extensive data processing (multimodal, packing, streaming, template-based formatting). The codebase features a plugin system (v1) for kernels, quantization, distributed backends, and batching strategies, though it maintains a parallel legacy (v0) path. Reusable components include dataset processors, chat template hierarchy, multimodal plugin architecture, custom trainer callbacks, and batching strategy plugins. While the framework is actively maintained and well-tested, it suffers from some technical drift due to a dual-codebase structure, hardcoded model registries, version pinning, and fragile monkey-patching in distributed integrations.

RATING: 9.1/10 MAINT: active DRIFT: medium
β–Έ 5 reusable components found
turboderp-org/exllamav3 β˜… 1418 175 APPLICATION

ExLlamaV3 is a high-performance inference library for running large language models on consumer GPUs, with a focus on flexible quantization (EXL3 trellis format) and parallel inference. The architecture is a modular Python library with a compiled C++/CUDA extension providing custom kernels for attention (paged, MLA, DSA, recurrent), MoE routing, quantization, and sampling. Key entry points include the `Model`, `Config`, `Tokenizer`, `Cache`, and `Generator` classes, as well as CLI tools for model conversion (`convert.py`), quantization optimization (`sc_optimize.py`), and evaluation (`eval/`). Data flows: model weights are loaded from safetensors, quantized offline, then at inference time the library manages paged KV caches, supports tensor parallelism across GPUs, and provides streaming generation with filters (Formatron, LLGuidance) and custom samplers. External dependencies include PyTorch, safetensors, tokenizers, Triton, and optional packages like xformers and llguidance. The codebase demonstrates strong engineering with reusable module abstractions, a comprehensive attention dispatch system, and a sophisticated quantization pipeline, though it carries some technical drift from unmaintained dependencies and a large surface of architecture-specific files.

RATING: 9.0/10 MAINT: active DRIFT: medium
β–Έ 5 reusable components found
sgl-project/sglang β˜… 36927 9412 APPLICATION

SGLang is a high-performance inference serving system for large language models (LLMs) and multimodal models (vision, video, audio, diffusion). It provides an OpenAI-compatible API, a Python frontend DSL for programmable inference, and supports a wide range of hardware backends (NVIDIA CUDA, AMD ROCm, Intel XPU, Ascend NPU, Apple MLX). The architecture is a distributed serving runtime (SRT) with a scheduler, model executor, custom CUDA/Triton kernels, and advanced features like speculative decoding (EAGLE, MTP, NGRAM), disaggregated prefill/decode, hierarchical KV cache (HiCache), and quantization (FP8, NVFP4, AWQ, GPTQ). It also includes a Rust-based model gateway for routing and a multimodal generation pipeline for diffusion models. The system is designed for production-scale deployment, powering trillions of tokens daily across hundreds of thousands of GPUs.

RATING: 8.9/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
bitsandbytes-foundation/bitsandbytes β˜… 8526 940 APPLICATION

bitsandbytes is a production-grade Python/C++ extension library that enables k-bit quantization for PyTorch. Its actual function is to reduce the memory footprint of large language model training and inference by providing 8-bit blockwise quantized optimizers (Adam, AdamW, LAMB, Lion, AdEMAMix, etc.), 4-bit NF4/FP4 quantized linear layers used by QLoRA, and LLM.int8()-style mixed-precision matmul with outlier separation. It is an application library rather than a data research repository; the research algorithms it implements are packaged as reusable, production-oriented components exposed to downstream libraries such as Hugging Face Transformers, PEFT, Accelerate, TGI, and vLLM. Users interact through quantized nn modules, functional quantize/dequantize primitives, optimizer classes, and autograd matmul functions.

RATING: 8.9/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
vllm-project/compressed-tensors β˜… 327 126 APPLICATION

compressed-tensors is a production-grade Python library for compressing and quantizing large neural network models, primarily targeting LLMs. It extends the safetensors format to store and manage compressed tensors, supporting a wide range of quantization schemes (INT4/INT8/FP8/NVFP4/MXFP4/MXFP8), sparsity patterns, and rotation-based transforms (Hadamard, random matrix). The library is tightly integrated with the vLLM inference engine and Hugging Face transformers, providing a seamless path from model compression to deployment. Its architecture is modular: a registry pattern for compressors and transforms, a quantization lifecycle with calibration and forward hooks, a flexible offloading subsystem (CPU/disk/distributed) for running models beyond VRAM limits, and checkpoint conversion pipelines for formats like AutoAWQ and ModelOpt NVFP4. While primarily a software library, it also serves as a research platform for novel quantization techniques, with benchmarks and experimental features like MoE expert pruning and KV cache quantization. The codebase is well-structured with extensive tests, CI/CD pipelines, and active maintenance, though it exhibits some coupling to vLLM internals and experimental components that may not be stable.

RATING: 8.9/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
microsoft/Tutel β˜… 1018 110 APPLICATION

Tutel is a high-performance library for Mixture-of-Experts (MoE) in PyTorch, focused on both training and inference of large-scale sparsely-gated models. The codebase is organized into distinct layers: the core `MOELayer` configuration (gating, experts, dispatch), custom NCCL-based distributed communication primitives (`net.py`), JIT-compiled CUDA/ROCm kernels for routing and sparse operations, and utility modules for checkpoint resharding across different distributed topologies. Heavily exploited features include low-precision quantized inference (FP4, FP8, block quantization), fused Expert comunication via all-to-all collectives, and a experimental auto-paritioning solver for adaptive parallelism. The repository is dominated by software engineering artifacts (Python library design, C++/CUDA/ROCm extensions and binaries, structured examples) rather than research notebooks or analytic pipeline, but its origins include published papers (MLSys 2023) and active development for contemporary models such as DeepSeek, Qwen3, and Kimi.

RATING: 8.8/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
PINTO0309/onnx2tf β˜… 996 106 APPLICATION

onnx2tf is a production-ready ONNX to TensorFlow/TFLite conversion framework that employs a sophisticated pass-based optimization pipeline. The system converts ONNX models through preprocessing, lowering to an intermediate representation (ModelIR), applying 50+ optimization passes (layout transformation, operator fusion, quantization), and exporting to target formats including TFLite, SavedModel, PyTorch nn.Module, and TorchScript. Its architecture features clean separation between operator implementations, IR transformation passes, and backend-specific exporters, with the flatbuffer_direct backend providing 100x+ faster conversion by bypassing TensorFlow graph construction. The framework includes comprehensive accuracy validation tools, dynamic shape handling, and model surgery capabilities for intermediate layer extraction.

RATING: 8.8/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
Tiiny-AI/PowerInfer β˜… 9825 609 APPLICATION

PowerInfer is a CPU/GPU hybrid LLM inference engine optimized for serving large language models on consumer-grade hardware. The system exploits activation locality in neural networks by preloading consistently activated 'hot' neurons on GPU while computing variable 'cold' neurons on CPU, reducing GPU memory demands and data transfers. Built upon llama.cpp and GGML tensor library, it provides end-to-end workflow including model acquisition from Hugging Face, conversion to PowerInfer GGUF format, quantization, and inference serving via CLI, server, or mobile/web applications. The architecture features modular components including hardware backend abstractions, AZ cross-platform primitives, pipeline/task scheduling, and specialized optimizations for sparse MoE models.

RATING: 8.7/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
cksac/turboquant-model β˜… 200 23 APPLICATION

TurboQuant Model is a Python library and CLI tool for near-lossless LLM weight quantization, implementing the TurboQuant algorithm from Zandieh et al. (2025). It provides a drop-in replacement for nn.Linear (TurboQuantLinear) that stores weights in packed 4-bit indices and dequantizes on-the-fly during matrix multiplication using fused GPU kernels (CuTile, Triton, Metal). The library supports single-pass 4-bit, multi-pass residual (e.g., 4+4), polar decomposition, and hash-based compression, achieving 4x compression vs bf16 with KLD as low as 0.002 nats. It includes a CLI for quantizing, evaluating, generating, and benchmarking HuggingFace models, with CPU offload for residual passes and advanced techniques like norm compression and entropy coding. The codebase is well-structured with comprehensive tests and benchmarks, though it targets cutting-edge CUDA 13.1+ and may have limited hardware compatibility.

RATING: 8.6/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
ztxz16/fastllm β˜… 5101 504 APPLICATION

fastllm is a high-performance LLM inference engine written in C++ with CUDA/CPU backends, designed for local and server deployment of large language models. In production, it loads models from HuggingFace, GGUF, and custom formats, then executes inference with advanced features: quantization (FP8, INT4, NVFP4, GGUF), speculative decoding, multi-token prediction (MTP), Mixture-of-Experts (MoE), paged KV cache, tensor parallelism, NUMA-aware execution, and disk offloading. It serves models through multiple interfaces: a C++ CLI, a Python CLI (ftllm), an OpenAI-compatible HTTP API server (Chat Completions, Responses, Anthropic Messages), a WebUI, a desktop launcher with agent integrations (DeepSeek Harness, OpenCode, Codex, Claude Code), and an Android app. The system also includes model conversion/export tools, a launcher with hardware auto-recommendation, and a plugin system for UI customization.

RATING: 8.5/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
Epistates/pmetal β˜… 320 26 APPLICATION

PMetal is a comprehensive machine learning framework specifically optimized for Apple Silicon hardware. It provides a complete suite for LLM training, fine-tuning, inference, and deployment through multiple interfaces (CLI, TUI, GUI, Python SDK, and REST API). The framework leverages Apple-specific technologies like Metal GPU, ANE, and UltraFusion for performance optimization while supporting standard ML workflows including LoRA/QLoRA fine-tuning, knowledge distillation, model merging, and quantization to formats like GGUF. The architecture follows a modular workspace design with over 20 specialized crates handling different aspects of the ML lifecycle, unified through a job specification system and configuration framework.

RATING: 8.3/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
microsoft/BitNet β˜… 40358 3740 APPLICATION

BitNet is a high-performance inference framework for 1-bit large language models, specifically the BitNet b1.58 ternary architecture. It provides CPU (x86 with AVX2, ARM with NEON) and GPU (NVIDIA CUDA) backends with custom quantization formats (I2_S, TL1, TL2) that pack ternary weights and use efficient look-up tables and integer matrix multiplication (int8Γ—int2) to achieve significant speedups over full-precision models (1.37–6.17Γ— on CPU). The system is built on a fork of llama.cpp, adding custom GEMM kernels and a Python utility suite for model conversion, embedding quantization, benchmark, and deployment. It includes a CLI interactive mode and an HTTP server for production serving. The repository contains extensive performance benchmarks and configuration tools, making it a production-ready solution for deploying 1-bit LLMs on commodity hardware.

RATING: 8.2/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
SUM-INNOVATION/RUMUS β˜… 201 41 APPLICATION

RUMUS is a native-Rust deep learning framework with a modular architecture including core tensor/autograd library, GPU backend via WebGPU (wgpu), neural network modules, optimizers, data loading, ONNX export, JIT kernel fusion, and subcrates for vision (CNN ops, INT4 quantization), graph neural networks (SpMM), distributed training (3D parallelism), and an inference server with continuous batching. The framework emphasizes memory safety, zero-copy view operations, borrow-safe optimizers (gradient draining mechanism), and supports both CPU and GPU computation. It includes advanced features like FlashAttention, block-quantized INT8/INT4 inference, deterministic fixed-point inference for zero-knowledge backend fixtures, and a custom ops plugin API for external WGSL kernels. The codebase is well-organized with clean abstractions (Backend trait, Module derive macro), but shows signs of incomplete pieces (distributed training may be partial, inference server model is mock) and minor code-README discrepancies (unsafe usage in mmap despite claims of zero unsafe).

RATING: 8.1/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
MooreThreads/torch_musa β˜… 513 43 APPLICATION

This repository implements a full PyTorch backend for Moore Threads MUSA GPUs, providing a drop-in replacement for `torch.cuda`. It enables PyTorch models to run on MUSA hardware with minimal code changes by registering a `PrivateUse1` device backend. The architecture consists of C++ ATen operator implementations (over 200 ops), wrappers around the proprietary muDNN deep neural network library, a core runtime layer (streams, events, caching allocator, IPC), distributed training via MCCL (MUSA Collective Communications Library), an Inductor compiler backend with Triton support, quantization (W4A16, int8), and profiling tools. Key entry points include `torch_musa/__init__.py` for autoload, `setup.py` for building, `torch_musa/csrc/core/MUSAHooksInterface.cpp` for device registration, and `torch_musa/csrc/aten/ops/` for operator implementations. Data flows follow PyTorch's dispatch mechanism: operations are routed to MUSA-specific kernels via the `PrivateUse1` dispatch key, with muDNN handling most deep learning primitives. External dependencies include PyTorch (patched for version 2.11.0), muDNN, MCCL, musolver, muFFT, and Triton. The repository also includes automated CUDA-to-MUSA porting tools (`tools/cuda_porting/`) and a comprehensive test suite covering operators, distributed training, quantization, and sparse tensors.

RATING: 8.0/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
$ loading more...
$ submit: