awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعخادم MCPحولكيفية ترتيب النتائجالصحافة
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

30 مستودعات

Awesome GitHub RepositoriesTraining Memory Optimizers

Techniques for reducing memory consumption during deep learning model training.

Distinct from Memory Optimization Strategies: Distinct from general Memory Optimization Strategies: focuses specifically on deep learning training techniques like gradient checkpointing and fused operations.

Explore 30 awesome GitHub repositories matching data & databases · Training Memory Optimizers. Refine with filters or upvote what's useful.

Awesome Training Memory Optimizers GitHub Repositories

اعثر على أفضل المستودعات باستخدام الذكاء الاصطناعي.سنبحث عن أفضل المستودعات المطابقة باستخدام الذكاء الاصطناعي.
  • microsoft/swin-transformerالصورة الرمزية لـ microsoft

    microsoft/Swin-Transformer

    15,715عرض على GitHub↗

    Swin-Transformer is a deep learning framework designed for training and deploying hierarchical vision transformer models. It serves as a research library and toolkit for computer vision tasks, providing the infrastructure to build models that replace standard convolution operations with sliding window self-attention mechanisms. By utilizing a multi-scale feature hierarchy, the framework enables the processing of visual data at varying resolutions and spatial scales. The project distinguishes itself through its implementation of shifted window partitioning, which facilitates global information

    Reduce memory footprint during model training by applying gradient checkpointing, fused operations, and efficient data caching strategies to keep resource consumption within hardware limits.

    Pythonade20kimage-classificationimagenet
    عرض على GitHub↗15,715
  • modelscope/swiftالصورة الرمزية لـ modelscope

    modelscope/swift

    14,633عرض على GitHub↗

    Swift is a toolkit for the full-parameter and parameter-efficient fine-tuning of large language and multimodal models. It functions as a multimodal model trainer for text, image, video, and audio data, and includes specialized tools for model compression and reinforcement learning from human feedback. The framework provides an alignment toolkit for optimizing model behavior using preference learning algorithms and reinforcement learning. It integrates parameter-efficient fine-tuning methods to adapt models with minimal memory and compute requirements, alongside utilities for reducing hardware

    Optimizes attention and sequence data handling to reduce video memory consumption during long-text training.

    Python
    عرض على GitHub↗14,633
  • alibaba/mnnالصورة الرمزية لـ alibaba

    alibaba/MNN

    14,242عرض على GitHub↗

    MNN is a high-performance inference engine and framework designed for on-device machine learning. It provides a comprehensive environment for executing, optimizing, and deploying neural network models directly on mobile and resource-constrained edge devices. The framework distinguishes itself through a robust model optimization toolkit that supports quantization, compression, and structural graph manipulation to minimize memory footprint and maximize execution speed. It features a modular architecture that abstracts hardware-specific backends, allowing models to run efficiently across diverse

    Configures low-precision inference modes to reduce memory footprint and improve execution speed.

    C++armconvolutiondeep-learning
    عرض على GitHub↗14,242
  • openaccess-ai-collective/axolotlالصورة الرمزية لـ OpenAccess-AI-Collective

    OpenAccess-AI-Collective/axolotl

    12,062عرض على GitHub↗

    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

    Lowers VRAM requirements during training through quantization, low-rank adaptations, and reduced-precision fine-tuning.

    Python
    عرض على GitHub↗12,062
  • artidoro/qloraالصورة الرمزية لـ artidoro

    artidoro/qlora

    10,929عرض على GitHub↗

    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

    Ships a paged optimizer that offloads states to system RAM to handle memory spikes and reduce GPU requirements.

    Jupyter Notebook
    عرض على GitHub↗10,929
  • openrlhf/openrlhfالصورة الرمزية لـ OpenRLHF

    OpenRLHF/OpenRLHF

    9,675عرض على GitHub↗

    OpenRLHF is a training framework and alignment library designed for reinforcement learning from human feedback across distributed GPU clusters. It provides tools for aligning large language models and multimodal vision-language models using algorithms such as PPO, GRPO, and DPO. The framework distinguishes itself through a distributed inference engine that overlaps sample rollout with training to increase throughput. It supports scaling to models exceeding 70 billion parameters via parameter sharding and handles long-context sequences through ring-attention sequence parallelism. The project

    Optimizes memory on small clusters by colocating model components and sharing resources via sleep-mode.

    Pythonlarge-language-modelsopenai-o1proximal-policy-optimization
    عرض على GitHub↗9,675
  • nvlabs/sanaالصورة الرمزية لـ NVlabs

    NVlabs/Sana

    8,310عرض على GitHub↗

    Sana is a framework for high-resolution image and video synthesis based on a linear diffusion transformer. It provides a toolkit for the training, fine-tuning, and execution of text-to-image and text-to-video models, as well as a video generative world model capable of simulating physical environments with precise spatial control. The project is distinguished by its use of linear complexity layers to handle high resolutions and its support for long-form, minute-length video generation in real time. It implements a two-stage inference paradigm that separates structural generation from visual t

    Lowers training memory usage by offloading unused components to the system processor and utilizing 8-bit optimizers.

    Python
    عرض على GitHub↗8,310
  • timdettmers/bitsandbytesالصورة الرمزية لـ timdettmers

    timdettmers/bitsandbytes

    8,277عرض على GitHub↗

    bitsandbytes is a quantization library for large language models that reduces memory footprints using k-bit quantization. It provides a framework for 4-bit low-rank adaptation, tools for 8-bit model compression, and memory-efficient optimizer extensions for PyTorch. The project enables the training of large models on limited hardware through 4-bit quantization and low-rank adaptation weights. It also facilitates faster inference by compressing models to 8-bit precision using vector-wise quantization. The library covers a range of memory optimization capabilities, including optimizer memory r

    Implements memory-efficient optimizers using block-wise quantization to maintain full precision performance.

    Python
    عرض على GitHub↗8,277
  • bitsandbytes-foundation/bitsandbytesالصورة الرمزية لـ bitsandbytes-foundation

    bitsandbytes-foundation/bitsandbytes

    7,968عرض على GitHub↗

    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

    Reduces GPU memory footprint for large language models via weight and feature quantization.

    Pythonllmmachine-learningpytorch
    عرض على GitHub↗7,968
  • jwyang/faster-rcnn.pytorchالصورة الرمزية لـ jwyang

    jwyang/faster-rcnn.pytorch

    7,859عرض على GitHub↗

    هذا المشروع عبارة عن إطار عمل لاكتشاف الكائنات في PyTorch ينفذ بنية Faster R-CNN. يعمل كنموذج رؤية للتنبؤ بصناديق التحديد الدقيقة حول كائنات متعددة داخل الصور وتدفقات الفيديو الحية. تم تحسين النظام للتدريب متعدد الـ GPU لتقليل الوقت المطلوب لتقارب النموذج. يستخدم تصميماً مسرعاً بواسطة GPU للتعامل مع تدريب واستنتاج شبكات الاكتشاف المعقدة. يغطي إطار العمل دورة حياة اكتشاف الكائنات الكاملة، بما في ذلك تدريب الشبكة المخصص والاستنتاج للصور الثابتة وتدفقات الفيديو في الوقت الفعلي. يتضمن قدرات للتحقق من أداء النموذج باستخدام مجموعات بيانات قياسية، بالإضافة إلى تحسينات التدريب مثل التجميع القائم على نسبة العرض إلى الارتفاع وأحمال العمل الموزعة.

    Implements throughput improvements through aspect-ratio-based grouping and multi-image batching to optimize training speed.

    Python
    عرض على GitHub↗7,859
  • datawhalechina/so-large-lmالصورة الرمزية لـ datawhalechina

    datawhalechina/so-large-lm

    7,400عرض على GitHub↗

    This project is a comprehensive educational curriculum and structured learning path covering the full lifecycle of large language models. It provides a guided progression through the theory, architecture, training, and deployment of these models. The curriculum includes specialized guides on transformer architecture, model training tutorials, and frameworks for designing autonomous agents. It also provides dedicated resources for studying model safety and ethics. The material covers a wide range of technical capabilities, including distributed training strategies, parameter-efficient fine-tu

    Details the use of AdaFactor to reduce training memory via low-rank momentum approximations.

    عرض على GitHub↗7,400
  • infrasys-ai/aiinfraالصورة الرمزية لـ Infrasys-AI

    Infrasys-AI/AIInfra

    7,414عرض على GitHub↗

    Provides comprehensive training memory optimization through state partitioning and offloading.

    Jupyter Notebookaiinfraaisystem
    عرض على GitHub↗7,414
  • deepspeedai/deepspeedexamplesالصورة الرمزية لـ deepspeedai

    deepspeedai/DeepSpeedExamples

    6,822عرض على GitHub↗

    DeepSpeedExamples is a collection of reference implementations and scripts for training, fine-tuning, and executing inference on large-scale AI models using DeepSpeed optimization. It provides a distributed model training guide and practical workflows for adapting large language models through memory-efficient techniques. The repository includes specialized implementations for pipeline parallelism to handle models exceeding single GPU memory and a suite of examples for ZeRO memory optimization to reduce per-device overhead. It also features standardized test suites for benchmarking the throug

    Implements mechanisms to move optimizer states from GPU memory to system RAM to support massive scales.

    Python
    عرض على GitHub↗6,822
  • tensorpack/tensorpackالصورة الرمزية لـ tensorpack

    tensorpack/tensorpack

    6,287عرض على GitHub↗

    Tensorpack هو إطار عمل شبكة عصبية TensorFlow عالي المستوى ومكتبة بحثية مصممة لبناء وتدريب نماذج التعلم العميق. يوفر مجموعة من بنيات الشبكات العصبية القابلة للتكرار للرؤية الحاسوبية، والمهام التوليدية، والتعلم التعزيزي، ومعالجة اللغات الطبيعية. يتميز المشروع بخط معالجة بيانات تعلم عميق متخصص يستخدم Python الخالص لتحميل البيانات المتوازي والبث. ويتضمن منسق تدريب متعدد وحدات GPU لتوزيع أعباء العمل عبر استراتيجيات موازية للبيانات ومجموعة أدوات قابلية تفسير مخصصة لتصور خرائط بروز وتنشيط النموذج. يغطي إطار العمل مجموعة واسعة من القدرات، بما في ذلك خطوط معالجة الرؤية الحاسوبية لاكتشاف الكائنات والتجزئة الدلالية، ونمذجة التسلسل للكلام والنص، وتطوير وكيل التعلم التعزيزي. كما يوفر أدوات تحسين النموذج لتكميم الأوزان والتدريب منخفض البت، إلى جانب مرافق لإعادة إنتاج الأوراق البحثية الأكاديمية وتحويل أوزان نموذج Caffe القديمة.

    Reduces memory usage by training convolutional neural networks with limited bitwidth for weights and gradients.

    Python
    عرض على GitHub↗6,287
  • ppwwyyxx/tensorpackالصورة الرمزية لـ ppwwyyxx

    ppwwyyxx/tensorpack

    6,287عرض على GitHub↗

    Tensorpack هو إطار عمل تدريب TensorFlow عالي الأداء ومجموعة أدوات تعلم عميق موزعة. يوفر مجموعة من الأدوات لبناء وتدريب الشبكات العصبية مع التركيز على سرعة التنفيذ ومرونة البنية. يعمل المشروع كجناح لتحسين الشبكات العصبية، حيث يطبق أنماط تنفيذ عالية الكفاءة لتقليل حمل التدريب. ويعمل كخط معالجة بيانات متوازي، باستخدام التوازي التلقائي لزيادة معدل النقل عند معالجة مجموعات البيانات الكبيرة. تغطي مجموعة الأدوات التدريب الموزع عبر وحدات GPU متعددة ومجموعات الحوسبة باستخدام استراتيجيات موازية للبيانات. تشمل قدراتها معالجة مجموعات البيانات واسعة النطاق وتحسين الأداء لزيادة معدل نقل التدريب.

    Reduces training overhead and increases throughput using high-efficiency execution patterns.

    Python
    عرض على GitHub↗6,287
  • linkedin/liger-kernelالصورة الرمزية لـ linkedin

    linkedin/Liger-Kernel

    6,148عرض على GitHub↗

    Liger-Kernel is a collection of pre-built fused Triton kernels and patching utilities designed to accelerate large language model training. It provides drop-in kernel replacements for common LLM operations such as RMSNorm, cross-entropy loss, and attention, enabling increased throughput and reduced memory usage while preserving bitwise-exact gradients. The project serves as a toolkit for composing custom model architectures from individual optimized kernels and for patching pre-existing models with minimal code changes. The project distinguishes itself through its ability to perform runtime m

    Provides fused kernels that cut memory usage by up to 80% during preference alignment fine-tuning.

    Pythonfinetuninggemma2hacktoberfest
    عرض على GitHub↗6,148
  • meta-pytorch/torchtuneالصورة الرمزية لـ meta-pytorch

    meta-pytorch/torchtune

    5,774عرض على GitHub↗

    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

    Quantizes optimizer state dictionaries using 8-bit or paged optimizers to lower GPU memory consumption.

    Python
    عرض على GitHub↗5,774
  • pytorch/torchtuneالصورة الرمزية لـ pytorch

    pytorch/torchtune

    5,774عرض على GitHub↗

    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

    Combines packing, compilation, and activation checkpointing to reduce memory and increase training throughput.

    Python
    عرض على GitHub↗5,774
  • roboflow/rf-detrالصورة الرمزية لـ roboflow

    roboflow/rf-detr

    5,643عرض على GitHub↗

    RF-DETR is a Python library for training and deploying object detection, instance segmentation, and keypoint detection models built on a vision transformer architecture. It provides a unified command-line interface and Python API for the full workflow, from fine-tuning pretrained checkpoints on custom datasets to running inference on images, video files, and live camera streams. The project supports training on datasets in COCO or YOLO format, with automatic format detection and configurable augmentation pipelines. Models can be exported to ONNX, TFLite, or TensorRT for deployment across edge

    Reduces GPU memory by re-computing activations in the backward pass instead of storing them.

    Pythoncomputer-visiondetrinstance-segmentation
    عرض على GitHub↗5,643
  • mosaicml/composerالصورة الرمزية لـ mosaicml

    mosaicml/composer

    5,485عرض على GitHub↗

    Composer هو إطار عمل للتدريب الموزع في PyTorch مصمم لتوسيع نطاق النماذج الضخمة عبر مجموعات GPU متعددة العقد. يعمل كمدرب لنماذج اللغات الكبيرة، ومحسن نماذج موزع، ومدير لدورة حياة التدريب. يتميز المشروع كونه مكتبة لتنظيم التعلم العميق (regularization)، حيث يوفر تقنيات تحسين متخصصة مثل Sharpness Aware Minimization وMixUp وCutMix لتحسين تعميم النموذج. كما يميز تدفق التدريب الخاص به باستخدام تسخين طول التسلسل، وتجميد الطبقات التدريجي، وحفظ نقاط التحقق (checkpointing) المجزأة لاستعادة النماذج الضخمة. يغطي إطار العمل مساحة واسعة من القدرات بما في ذلك تنسيق التدريب الموزع، وإدارة الأجهزة ذات الدقة المختلطة، وبث البيانات السحابي. كما يوفر أدوات مراقبة وتشخيص واسعة النطاق لتشخيص ذاكرة GPU، واكتشاف تباعد التدريب، وتتبع الإنتاجية. يتضمن المشروع مشغلاً عبر سطر الأوامر لأتمتة تنفيذ مهام التدريب متعددة الـ GPU عبر العقد.

    Lowers the peak memory footprint by freeing training metric memory immediately after loss calculation.

    Python
    عرض على GitHub↗5,485
السابق12التالي
  1. Home
  2. Data & Databases
  3. Memory Optimization Strategies
  4. Training Memory Optimizers

استكشف الوسوم الفرعية

  • Activation Memory ProfilersTools for measuring GPU memory consumed by intermediate activations during training, which scales quadratically with sequence length. **Distinct from Training Memory Optimizers:** Distinct from Training Memory Optimizers: focuses on profiling and estimating activation memory usage, not on optimization techniques.
  • Alignment Loss OptimizersOptimized kernels that reduce memory usage during preference alignment fine-tuning by fusing loss computation with linear transformations. **Distinct from Training Memory Optimizers:** Distinct from Training Memory Optimizers: focuses specifically on memory reduction for alignment/post-training losses (DPO, ORPO, SimPO, CPO), not general training memory techniques like gradient checkpointing.
  • Low Bitwidth TrainingTraining neural networks using reduced precision for weights and gradients to lower memory consumption. **Distinct from Training Memory Optimizers:** Focuses on the bit-precision of the training process rather than general memory optimization techniques like gradient checkpointing.
  • Memory-Driven AutotuningAnalyzes memory usage and communication costs to recommend optimal parallelism configurations. **Distinct from Activation Memory Profilers:** Distinct from Activation Memory Profilers: focuses on recommending parallelism configurations based on profile, not just profiling memory.
  • Model Component ColocationTechniques for sharing memory by colocating model roles and components on the same hardware. **Distinct from Training Memory Optimizers:** Focuses on sharing memory via role-swapping/sleep-mode rather than general training algorithms like gradient checkpointing
  • Optimizer State CompressionMemory-reduction techniques using low-rank approximations of momentum matrices, such as AdaFactor. **Distinct from Training Memory Optimizers:** Focuses specifically on the optimizer's internal state compression for memory efficiency, distinct from general gradient checkpointing.
  • Optimizer State OffloadingMechanisms that move optimizer states between GPU memory and system RAM to prevent out-of-memory errors. **Distinct from Training Memory Optimizers:** Focuses on the paging of optimizer states to CPU RAM, distinct from general training memory optimizations.
  • Padding-Free Sequence ProcessingOptimization techniques that remove non-informative padding tokens to reduce memory consumption during training and inference. **Distinct from Training Memory Optimizers:** Distinct from Training Memory Optimizers: focuses specifically on padding removal rather than general memory optimization strategies like gradient checkpointing.
  • Per-Component Memory ProfilersTools for measuring memory consumed by model parameters, gradients, optimizer states, and activations during training steps. **Distinct from Training Memory Optimizers:** Distinct from Training Memory Optimizers: focuses on detailed per-component memory analysis rather than optimization techniques.
  • Quantized OptimizersOptimizer implementations that use quantization to reduce the memory required for state tracking. **Distinct from Training Memory Optimizers:** Specifically targets the quantization of optimizer states, not general training memory management.
  • Training Speed OptimizationsTechniques that increase training throughput through packing, compilation, and memory reduction strategies. **Distinct from Training Memory Optimizers:** Distinct from Training Memory Optimizers: focuses on throughput improvements (packing, compilation) in addition to memory reduction, not just memory alone.