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

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

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

26 مستودعات

Awesome GitHub RepositoriesMemory Optimization Techniques

Methods and strategies for reducing memory footprint during large-scale model training and inference.

Distinguishing note: Focuses specifically on memory management and offloading strategies for AI training, distinct from general-purpose database or system memory management.

Explore 26 awesome GitHub repositories matching artificial intelligence & ml · Memory Optimization Techniques. Refine with filters or upvote what's useful.

Awesome Memory Optimization Techniques GitHub Repositories

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

    hiyouga/LLaMA-Factory

    72,241عرض على GitHub↗

    LLaMA-Factory is a comprehensive suite for dataset preparation, model fine-tuning, memory optimization, and standardized API deployment. It provides a unified platform for the supervised and reward-based fine-tuning of large language models and vision-language models. The framework includes a specialized toolkit for training vision-language models and a model serving interface that deploys trained models through high-performance APIs. It utilizes precision tuning and quantization techniques to reduce the hardware requirements and memory footprint of large models. The system covers data pipel

    Provides a suite of precision tuning and quantization techniques to reduce hardware requirements for large models.

    Python
    عرض على GitHub↗72,241
  • labmlai/annotated_deep_learning_paper_implementationsالصورة الرمزية لـ labmlai

    labmlai/annotated_deep_learning_paper_implementations

    66,981عرض على GitHub↗

    This project is a collection of deep learning research papers translated into annotated code. It serves as a resource for reproducing academic research, providing implementations of transformers, diffusion models, and reinforcement learning architectures. The library distinguishes itself by using a side-by-side annotation format that combines executable Python code with descriptive markdown notes. This approach provides a structured way to explain the logic of neural network papers alongside their PyTorch-based implementations. The codebase covers several major capability areas, including ge

    Implements memory optimization techniques to reduce the hardware footprint during training and inference.

    Pythonattentiondeep-learningdeep-learning-tutorial
    عرض على GitHub↗66,981
  • datawhalechina/hello-agentsالصورة الرمزية لـ datawhalechina

    datawhalechina/hello-agents

    59,685عرض على GitHub↗

    This project provides a comprehensive framework for building, training, and managing autonomous agents. It enables the construction of systems that utilize language models to plan, manage memory, and execute multi-step tasks through iterative reasoning loops and tool-based actions. The framework distinguishes itself by offering specialized capabilities for interacting with graphical user interfaces and legacy software, allowing agents to perceive visual elements and perform actions like a human user. It supports complex, cross-application workflows through graph-based orchestration and provid

    Optimizes system performance by implementing layered memory modules, summarization, and retrieval techniques.

    Pythonagentllmrag
    عرض على GitHub↗59,685
  • deepspeedai/deepspeedالصورة الرمزية لـ deepspeedai

    deepspeedai/DeepSpeed

    42,528عرض على GitHub↗

    DeepSpeed is a high-performance library designed to scale deep learning model training and inference across massive clusters of GPUs and compute nodes. It provides a comprehensive suite of tools for distributed training, enabling the execution of models that exceed the memory capacity of single devices through advanced parameter partitioning, pipeline-based model parallelism, and memory-efficient state offloading. The framework distinguishes itself through specialized communication-efficient optimizers and hardware-aware acceleration techniques. By utilizing gradient compression, quantization

    Reduces GPU memory consumption during large-scale training by offloading optimizer states to the host CPU.

    Pythonbillion-parameterscompressiondata-parallelism
    عرض على GitHub↗42,528
  • sgl-project/sglangالصورة الرمزية لـ sgl-project

    sgl-project/sglang

    29,079عرض على GitHub↗

    Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It provides a programmable interface for orchestrating complex generation workflows, enabling developers to coordinate multi-turn dialogues, tool invocations, and reasoning chains through a domain-specific language. The platform is built to support production-scale deployments, offering an OpenAI-compatible API that allows for integration with existing application ecosystems. The system distinguishes itself through a disaggregated architecture that separates compute-intensive pr

    Reduces GPU memory usage by offloading inactive cache data to host memory during decoding.

    Pythonattentionblackwellcuda
    عرض على GitHub↗29,079
  • d2l-ai/d2l-enالصورة الرمزية لـ d2l-ai

    d2l-ai/d2l-en

    29,001عرض على GitHub↗

    This project is an educational platform and research toolkit designed to teach deep learning through a combination of mathematical theory, visual diagrams, and executable code. It provides a comprehensive environment for building, training, and evaluating neural networks, grounding complex concepts in interactive computational notebooks that allow for hands-on experimentation. The framework distinguishes itself by interleaving theoretical foundations—including linear algebra, calculus, and probability—with practical implementations across multiple industry-standard libraries. It supports flex

    Optimizes memory usage through in-place operations and graph compilation to minimize redundant allocations.

    Pythonbookcomputer-visiondata-science
    عرض على GitHub↗29,001
  • dao-ailab/flash-attentionالصورة الرمزية لـ Dao-AILab

    Dao-AILab/flash-attention

    24,220عرض على GitHub↗

    FlashAttention is an attention mechanism optimization library and machine learning acceleration framework designed to increase training speed and reduce memory footprint for large-scale neural network models. It functions as a collection of low-level CUDA kernels that optimize memory-bound operations to improve hardware utilization on graphics processing units. The library distinguishes itself through an input-output-aware algorithm design that minimizes data movement between different levels of memory. By employing kernel fusion and tiled matrix multiplication, it combines sequential operati

    Reduces the memory footprint of deep learning models to enable larger batch sizes and longer sequence lengths.

    Python
    عرض على GitHub↗24,220
  • microsoft/unilmالصورة الرمزية لـ microsoft

    microsoft/unilm

    22,030عرض على GitHub↗

    This project is a comprehensive framework and toolkit for developing, optimizing, and deploying transformer-based models across multimodal, document intelligence, and natural language processing tasks. It provides a unified neural architecture that processes text, vision, audio, and document layout data through a shared set of weights, enabling researchers and developers to build foundational models that align cross-modal representations. The platform distinguishes itself through advanced training and inference strategies designed for large-scale deep learning. It incorporates specialized mec

    Reduces GPU memory consumption during training using distributed strategies and activation checkpointing.

    Pythonbeitbeit-3bitnet
    عرض على GitHub↗22,030
  • qwenlm/qwen-7bالصورة الرمزية لـ QwenLM

    QwenLM/Qwen-7B

    21,343عرض على GitHub↗

    Qwen-7B is a pretrained causal language model designed for natural language generation, text processing, and complex reasoning tasks. It is available as an instruction-tuned model optimized for conversational interactions and a tool-use model capable of executing function calls and interacting with external APIs. The project provides a quantized version of the model to reduce GPU memory usage and supports the development of autonomous agents that can execute code and perform functions to complete complex goals. The system covers a wide range of capabilities including model fine-tuning throug

    Optimizes inference memory and processing speed using weight and cache quantization.

    Python
    عرض على GitHub↗21,343
  • huggingface/peftالصورة الرمزية لـ huggingface

    huggingface/peft

    21,274عرض على GitHub↗

    This library provides a framework for parameter-efficient fine-tuning, enabling the adaptation of large pretrained models by training only a small subset of parameters. It functions as a distributed model training system and optimization toolkit, designed to reduce the computational and memory requirements typically associated with full model fine-tuning. The project distinguishes itself through a suite of methods for modular adapter composition, including low-rank matrix decomposition and activation-based scaling. It supports the integration of multiple task-specific adapter modules, allowin

    Implements memory offloading techniques to move model parameters and optimizer states to system memory during training.

    Pythonadapterdiffusionfine-tuning
    عرض على GitHub↗21,274
  • zai-org/chatglm3الصورة الرمزية لـ zai-org

    zai-org/ChatGLM3

    13,764عرض على GitHub↗

    ChatGLM3 is a comprehensive framework for deploying, fine-tuning, and serving large language models. It functions as a high-performance inference engine designed to support conversational AI, enabling developers to build interactive agents capable of multi-turn dialogue, autonomous code execution, and structured tool invocation. The project distinguishes itself through its focus on hardware-agnostic deployment and resource optimization. It supports distributed model parallelism across multiple graphics cards, paged key-value caching for concurrent request processing, and weight quantization t

    Reduces memory footprint through quantization to enable execution on resource-constrained hardware.

    Python
    عرض على GitHub↗13,764
  • lyogavin/airllmالصورة الرمزية لـ lyogavin

    lyogavin/airllm

    11,508عرض على GitHub↗

    Airllm is a framework designed to execute and fine-tune large language models on consumer-grade hardware. By employing layer-wise model decomposition and memory-efficient loading techniques, the engine enables the operation of massive models that would otherwise exceed available system or video memory. The project distinguishes itself through a suite of optimization strategies that balance memory footprint with performance. It utilizes block-wise weight quantization and asynchronous layer prefetching to reduce resource consumption and hide data transfer latency. Additionally, the framework su

    Reduces the memory footprint of large models through block-wise quantization and efficient layer loading techniques.

    Jupyter Notebookchinese-llmchinese-nlpfinetune
    عرض على GitHub↗11,508
  • 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

    Combines specialized quantization and paged optimizers to minimize GPU memory consumption and prevent allocation spikes.

    Jupyter Notebook
    عرض على GitHub↗10,929
  • huggingface/text-generation-inferenceالصورة الرمزية لـ huggingface

    huggingface/text-generation-inference

    10,775عرض على GitHub↗

    Text Generation Inference is a production-ready engine designed for the deployment and serving of large language models. It functions as a containerized runtime environment that manages model execution, scales across distributed hardware, and provides high-performance inference capabilities for demanding production environments. The project distinguishes itself through advanced optimization techniques, including continuous batching to maximize hardware utilization and tensor parallelism to shard large models across multiple accelerator cards. It supports efficient inference through custom com

    Minimizes video memory consumption using dynamic quantization during model execution.

    Pythonbloomdeep-learningfalcon
    عرض على GitHub↗10,775
  • intel-analytics/ipex-llmالصورة الرمزية لـ intel-analytics

    intel-analytics/ipex-llm

    8,836عرض على GitHub↗

    ipex-llm is an acceleration library and inference engine designed to optimize the execution and finetuning of large language models on Intel GPUs and NPUs. It provides a HuggingFace compatible model backend and a dedicated quantization toolkit for converting model weights into low-bit precision formats. The project facilitates distributed inference by splitting large model workloads across multiple accelerators using pipeline and tensor parallelism. It enables the deployment of models on Intel Arc, Flex, and Max GPUs to increase throughput and reduce latency. The library covers a broad range

    Provides a set of tools for converting model weights into low-bit precision formats to reduce memory usage.

    Python
    عرض على GitHub↗8,836
  • optimalscale/lmflowالصورة الرمزية لـ OptimalScale

    OptimalScale/LMFlow

    8,488عرض على GitHub↗

    LMFlow is a comprehensive suite for large language model fine-tuning, context extension, multimodal processing, and inference execution. It provides a toolkit for updating model parameters through full tuning or memory-efficient adapter algorithms, alongside an inference engine for executing tuned models via command-line or web-based interfaces. The framework includes a dedicated alignment suite for supervised tuning and reward model training to refine model behavior. It features a context window extender to increase maximum input lengths and a multimodal framework for building chatbots that

    Implements memory optimization techniques, including gradient checkpointing and offloading, to reduce training memory consumption.

    Pythonchatgptdeep-learninginstruction-following
    عرض على GitHub↗8,488
  • 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

    Offers a library for reducing the memory footprint of large language models using k-bit quantization.

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

    apple/ml-fastvlm

    7,375عرض على GitHub↗

    This project is a vision language model framework and vision-to-text pipeline designed for deploying and optimizing models that process both images and text. It provides an on-device inference engine and a vision language model framework to run quantized models locally on mobile and desktop hardware accelerators. The framework features a model quantization toolkit to reduce weight precision for lower memory footprints and increased execution speed on specialized silicon. It also includes an efficient vision encoder utilizing a hybrid encoding system to compress image tokens, which reduces pro

    Ships a toolkit for reducing model weight precision to optimize memory footprints and execution speed on specialized silicon.

    Python
    عرض على GitHub↗7,375
  • microsoft/deepspeedexamplesالصورة الرمزية لـ microsoft

    microsoft/DeepSpeedExamples

    6,822عرض على GitHub↗

    DeepSpeedExamples is a collection of reference implementations for training and deploying large scale AI models using the DeepSpeed optimization library. It provides Python code examples for training massive models across multiple GPUs through distributed optimization techniques. The repository includes optimized patterns for deploying and running large language model predictions in production environments. It also serves as a guide for model compression to reduce memory footprints and as a source for performance benchmarks to measure execution speed and resource utilization. The project cov

    Implements memory management and offloading strategies to reduce the footprint of massive neural networks.

    Python
    عرض على GitHub↗6,822
  • 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

    Reduces peak GPU memory through activation checkpointing, gradient accumulation, and offloading.

    Python
    عرض على GitHub↗5,774
السابق12التالي
  1. Home
  2. Artificial Intelligence & ML
  3. Memory Optimization Techniques

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

  • Memory Strategy BenchmarksSpecifies models and tools to test and compare different memory strategies. **Distinct from Memory Optimization Techniques:** Distinct from Memory Optimization Techniques: focuses on benchmarking and comparing memory strategies, not reducing memory footprint.
  • Quantization ToolkitsLibraries providing block-wise quantization and efficient loading for memory-constrained model execution. **Distinct from Memory Optimization Techniques:** Focuses on memory footprint reduction through quantization and layer loading, distinct from general memory optimization techniques.