15 dépôts
Training techniques that simulate quantization noise to improve the performance of compressed models.
Distinct from Model Quantization: Focuses on the training-time noise injection rather than post-training quantization or the resulting runtime
Explore 15 awesome GitHub repositories matching artificial intelligence & ml · Quantization-Aware Training. Refine with filters or upvote what's useful.
Fairseq is a PyTorch toolkit for sequence-to-sequence modeling, specializing in neural machine translation, automatic speech recognition, and large-scale language model training. It provides a framework for processing and aligning diverse data sources, including text, audio, and video, to support tasks such as speech-to-text conversion and multimodal sequence learning. The project is distinguished by its distributed training capabilities, which utilize parameter sharding, mixed-precision training, and CPU offloading to handle models that exceed single-device memory. It also includes specializ
Trains models using quantization noise to prepare them for extreme compression via product quantization.
This project is a framework for running Stable Diffusion image generation models on Apple Silicon using Core ML hardware acceleration. It provides a local generative AI pipeline for producing images from text prompts using Swift and Python without relying on external cloud APIs. The system includes a model converter to transform deep learning checkpoints into Core ML formats and a model optimizer to quantize weights and activations. It features a ControlNet integration layer to guide image generation using external signals such as edge and depth maps. Capabilities cover text-to-image generat
Simulates quantization during the training process to minimize precision loss in compressed models.
Axolotl is a distributed training orchestrator and fine-tuning framework for large language models, multimodal systems, and quantized models. It provides a structured environment for specializing pre-trained models through full parameter updates or low-rank adaptation, as well as aligning model outputs with human expectations via preference tuning pipelines and reward modeling. The system distinguishes itself through a configuration-driven pipeline that manages preprocessing and training workflows via a single file for reproducibility. It implements high-throughput optimizations such as multi
Maintains model accuracy while reducing weight precision by integrating quantization directly into the training process.
The PyTorch Tutorials repository is a collection of educational resources that provides step-by-step guidance on building, training, and deploying neural networks using the PyTorch framework. It covers the complete machine learning workflow, from data loading and model definition through optimization loops and model persistence, with dedicated guides for distributed training, model fine-tuning, and deployment. The tutorials offer practical demonstrations of adapting pre-trained models to new tasks through transfer learning, scaling training across multiple GPUs or machines using PyTorch's dis
Includes walkthroughs for simulating low-precision arithmetic during training to improve quantized model accuracy.
This project is a comprehensive collection of educational examples and reference implementations for building vision and language models using PyTorch. It serves as a deep learning tutorial covering the end-to-end process of developing neural networks, from initial architecture definition to final production deployment. The repository provides detailed guides on implementing a wide range of domain-specific models, including convolutional neural networks for object detection and segmentation, as well as transformer and recurrent architectures for natural language processing. It emphasizes gene
Implements training workflows that use fake quantization nodes to optimize model precision.
ERNIE is a development toolkit for training, fine-tuning, and deploying large language models built on the PaddlePaddle deep learning platform. It provides a comprehensive suite of core components, including an inference server for vision and language models, a training and fine-tuning toolkit, and a framework for building retrieval-augmented generation systems using private knowledge bases. The project features multimodal AI models capable of reasoning across text, images, and video to perform complex visual understanding and information extraction. It distinguishes itself through specialize
Integrates low-precision arithmetic into the training loop to reduce model size while maintaining high accuracy.
YOLOv6 est un framework de deep learning à une étape conçu pour la détection d'objets industrielle. Il sert d'entraîneur de modèle de vision par ordinateur pour identifier et localiser des objets dans des images, ainsi que d'outil de segmentation d'instance qui délimite des frontières d'objets précises en utilisant des masques. Le projet inclut un optimiseur d'inférence mobile spécialisé et un toolkit de quantification de modèle. Ces composants se concentrent sur la réduction de la taille et de la résolution du modèle pour améliorer la vitesse d'exécution sur les chipsets basés sur ARM et la conversion des modèles vers des formats de basse précision pour diminuer la taille des fichiers. Le framework couvre un large éventail de capacités, incluant l'entraînement de modèles personnalisés, la segmentation d'instance en temps réel et la conversion de runtime de modèle pour une exécution multiplateforme. Il prend également en charge l'optimisation de l'inférence sur appareil edge pour maintenir la performance sur divers runtimes matériels.
Utilizes training techniques that simulate quantization noise to minimize accuracy drops in compressed models.
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
Simulates quantization effects during training so the final model maintains accuracy with reduced precision.
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
Simulates quantization noise during fine-tuning so weights adapt to lower precision before conversion.
torch2trt est un outil permettant de transformer des modules de modèles PyTorch en moteurs TensorRT optimisés afin d'améliorer les performances d'inférence sur les GPU NVIDIA. Il fonctionne comme un optimiseur de modèles de deep learning et un générateur de moteurs qui convertit les couches de réseaux de neurones en formats d'exécution haute performance pour les processeurs graphiques accélérés par matériel. Le projet propose un outil de conversion de couches personnalisé qui permet aux utilisateurs de définir et d'enregistrer une logique de conversion basée sur Python pour gérer des opérations spécialisées non prises en charge par défaut. Cette extensibilité est couplée à un système basé sur un registre pour mapper des types de couches spécifiques à des fonctions de conversion définies par l'utilisateur. Le système couvre l'accélération de l'inférence GPU via la quantification de modèles de deep learning et l'entraînement conscient de la quantification pour réduire l'utilisation de la mémoire et augmenter le débit. Il inclut également des capacités de persistance des modèles, permettant de stocker et de recharger l'état des moteurs optimisés.
Implements training techniques that simulate quantization noise to optimize model precision.
This project is a comprehensive instructional resource and course for building neural networks using PyTorch. It covers the fundamental building blocks of deep learning, including tensor manipulation, automatic differentiation, and the construction of modular neural network components. The repository serves as a technical guide for several specialized domains. It provides implementation details for computer vision tasks such as image classification, object detection, and semantic segmentation, as well as natural language processing workflows involving transformers, recurrent networks, and gen
Implements training techniques that simulate quantization noise to improve the performance of compressed models.
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,
Supports quantization-aware and post-training quantization to shrink models for constrained hardware.
This project is a Chinese language translation of the technical guides and API references for the PyTorch deep learning framework. It serves as a localized knowledge base and reference material to make deep learning documentation accessible to non-English speakers. The documentation covers a comprehensive range of PyTorch capabilities, including neural network model development, automatic differentiation, and the implementation of backend kernels. It provides detailed guidance on distributed training strategies, model deployment through formats like ONNX and C++, and various model optimizatio
Explains techniques for simulating quantization noise during training to maintain accuracy in compressed models.
SLIME is a distributed reinforcement learning framework for large language model post-training that bridges Megatron training with SGLang inference servers. It orchestrates scalable RL loops across GPU clusters, decoupling training and inference into independent processes that communicate over HTTP and NCCL for independent scaling and fault tolerance. The system supports multi-agent reinforcement learning workflows with parallel agent instances, customizable rollout strategies, and personalized agent serving that improves models from prior conversations without disrupting API serving. The fra
Trains a model with simulated INT4 precision so it can later be served with INT4 inference, reducing rollout memory and improving throughput.
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
Fine-tunes models during the quantization process to recover accuracy lost during weight and activation compression.