13 रिपॉजिटरी
Techniques like quantization and device mapping for large models.
Explore 13 awesome GitHub repositories matching artificial intelligence & ml · Large Model Optimizations. Refine with filters or upvote what's useful.
Transformers is a comprehensive library for machine learning that provides a unified interface for training, fine-tuning, and deploying transformer-based models. It supports a wide range of tasks, including text classification, language modeling, question answering, and sequence-to-sequence translation, while offering specialized architectures for both text and vision processing. The framework includes tools for managing the entire model lifecycle, from data preprocessing and tokenization to distributed training and inference. The library features extensive support for model optimization and
Optimizes memory usage and inference speed through automatic device mapping and half-precision weight support.
DeepSpeed is a distributed deep learning optimization library and framework designed for the training and inference of massive AI models. It serves as a model parallelism orchestrator and a toolkit for scaling large language models across multiple GPUs and compute nodes. The project distinguishes itself through 3D parallelism orchestration, which combines data, pipeline, and tensor parallelism. It utilizes ZeRO-based memory partitioning to eliminate redundant storage and employs CPU-offload memory management to move weights and optimizer states to system RAM. Additionally, it provides special
Optimizes large-scale model deployment through quantization and efficient resource allocation to lower inference costs.
PyTorch Lightning is a high-level deep learning framework for PyTorch that automates training loops and removes repetitive engineering boilerplate. It functions as a structured pipeline for managing machine learning experiments, providing a distributed training orchestrator and tools for mixed-precision training. The framework decouples scientific model architecture from the engineering required for infrastructure and scaling. This separation allows the same model code to execute across CPUs, GPUs, or TPUs through a hardware-agnostic execution engine and a centralized trainer that manages the
Implements optimization techniques like mixed precision and hardware orchestration to reduce memory and increase speed for large models.
This project is a deep learning framework designed for constructing, training, and deploying neural networks across diverse hardware environments. It functions as a high-performance tensor computation library that provides both imperative and symbolic programming interfaces, allowing developers to balance flexible, step-by-step model building with the efficiency of compiled computation graphs. The framework distinguishes itself through a hybrid execution engine that integrates declarative graph compilation with imperative runtime logic. It supports scalable, distributed training across multip
Implements techniques for mapping large neural network models across multiple devices to overcome memory limitations.
AISystem is a comprehensive AI full-stack infrastructure project covering the entire pipeline from AI chip architecture to high-level training frameworks. It encompasses the development of AI compiler frameworks, inference engines, and distributed training orchestrators designed to coordinate workloads across a heterogeneous compute stack of CPUs, GPUs, and NPUs. The project focuses on the deep integration of software and hardware, employing software-hardware co-design to align tensor layouts with physical memory structures. It provides specialized capabilities for accelerating Transformer mo
Optimizes full-stack hardware and software performance for large-scale clusters and distributed communication.
Personaplex is an LLM speech-to-speech framework and conversational AI persona engine designed for real-time voice interfaces. It provides a system for defining AI identities and vocal characteristics through a combination of text-based role prompts and audio reference files. The project features a real-time AI voice interface that supports full-duplex human-AI dialogue, enabling multiple parties to speak and listen simultaneously via bidirectional audio streaming. It includes a GPU-accelerated audio processor and a speech-to-speech pipeline to facilitate low-latency conversations. The frame
Optimizes large model execution on limited hardware through device mapping and memory offloading.
Apex is a high-performance toolkit for PyTorch designed to coordinate distributed training, execute fused GPU kernels, manage mixed precision, and implement optimized distributed optimizers. It provides specialized tools for scaling model training across multiple GPUs and nodes to increase processing speed and throughput. The library features high-performance implementations of Adam and LAMB optimizers to reduce synchronization overhead and memory bottlenecks. It utilizes fused CUDA kernels to combine neural network operations, reducing memory overhead and increasing execution speed. The too
Manages memory overhead and synchronization for massive networks using distributed Adam and LAMB optimizers.
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
Enables running massive neural networks on consumer GPUs through quantization and device mapping.
Provides techniques for deploying and accelerating inference for large models.
Wenda एक LLM ऑर्केस्ट्रेशन प्लेटफ़ॉर्म और कस्टम वर्कफ़्लो इंजन है जिसे एक एकीकृत इंटरफ़ेस के माध्यम से कई लैंग्वेज मॉडल बैकएंड को मैनेज करने के लिए डिज़ाइन किया गया है। यह एक सेल्फ-होस्टेड AI गेटवे के रूप में कार्य करता है जो जटिल टास्क सीक्वेंस और ऑटोमेटेड कन्वर्सेशन फ़्लो के निष्पादन को सक्षम बनाता है। सिस्टम वर्कफ़्लो को ऑर्केस्ट्रेट करने और बाहरी API कॉल को ट्रिगर करने के लिए JavaScript प्लगइन्स का उपयोग करता है। यह रिस्पॉन्स सटीकता बढ़ाने के लिए प्रॉम्प्ट्स में वेक्टर स्टोर्स और ऑफ़लाइन फ़ाइलों से प्रासंगिक डेटा इंजेक्ट करके रिट्रीवल ऑगमेंटेड जनरेशन (RAG) का समर्थन करता है। प्लेटफ़ॉर्म को प्राइवेट नेटवर्क डिप्लॉयमेंट के लिए बनाया गया है, जिसमें मल्टी-यूज़र एक्सेस मैनेजमेंट और विशिष्ट हार्डवेयर बाधाओं के भीतर फिट होने के लिए क्वांटाइज़्ड ओपन सोर्स मॉडल चलाने की क्षमता शामिल है। इसमें कन्वर्सेशनल कॉन्टेक्स्ट बनाए रखने के लिए सेशन-आधारित हिस्ट्री ट्रैकिंग भी शामिल है।
Deploys large language models using quantization to fit within the limited computational resources of a private server.
This project provides a comprehensive technical guide and framework for engineering large-scale machine learning systems. It covers the full lifecycle of model development, focusing on the infrastructure and computational principles required to build, train, and serve generative AI models across distributed GPU clusters. The repository distinguishes itself by offering deep-dive tutorials and implementation strategies for complex system challenges. It emphasizes high-performance architectural primitives, such as collective communication orchestration, distributed tensor sharding, and static gr
Constructs large models using deferred allocation to bypass GPU memory limits during initialization.
EasyR1 एक डिस्ट्रीब्यूटेड मॉडल ट्रेनिंग सिस्टम और लार्ज लैंग्वेज व विज़न-लैंग्वेज मॉडल के लिए रीइन्फोर्समेंट लर्निंग फ़्रेमवर्क है। यह एक मल्टीमॉडल ट्रेनर और Proximal Policy Optimization पाइपलाइन का कार्यान्वयन है जिसे उन मॉडल्स की तर्क और धारणा क्षमताओं को परिष्कृत करने के लिए डिज़ाइन किया गया है जो टेक्स्ट और इमेज दोनों को प्रोसेस करते हैं। यह सिस्टम उच्च मेमोरी आवश्यकताओं को प्रबंधित करने के लिए कई कंप्यूट नोड्स में रीइन्फोर्समेंट लर्निंग वर्कलोड को वितरित करने में माहिर है। यह पैडिंग-मुक्त ट्रेनिंग और फ़ाइन-ट्यूनिंग के माध्यम से हार्डवेयर उपयोग को ऑप्टिमाइज़ करता है ताकि बड़े मॉडल्स को उपलब्ध ग्राफिक्स प्रोसेसिंग यूनिट्स पर फिट किया जा सके। यह फ़्रेमवर्क रीइन्फोर्समेंट लर्निंग और रिवॉर्ड मॉडल ऑर्केस्ट्रेशन को कवर करता है, जिसमें ह्यूमन फीडबैक वर्कफ़्लो से रीइन्फोर्समेंट लर्निंग शामिल है। इसकी तकनीकी सतह में डिस्ट्रीब्यूटेड डेटा पैरेललिज्म, हाइब्रिड प्रिसिजन ट्रेनिंग और इंटरलीव्ड टेक्स्ट व इमेज डेटा के लिए मल्टीमॉडल इनपुट पाइपलाइन शामिल हैं। इस प्रोजेक्ट में चेकपॉइंट-आधारित स्टेट रिकवरी के लिए यूटिलिटीज शामिल हैं और यह ट्रेनिंग की प्रगति और प्रदर्शन मेट्रिक्स को ट्रैक करने के लिए बाहरी लॉगिंग टूल्स के साथ एकीकृत होता है।
Reduces hardware requirements through padding-free training and fine-tuning to fit large models on available GPUs.
यह प्रोजेक्ट Transformers और लार्ज लैंग्वेज मॉडल के आर्किटेक्चर और प्रशिक्षण विधियों को सीखने के लिए एक व्यापक तकनीकी पाठ्यक्रम अध्ययन गाइड और संदर्भ है। यह समझने के लिए एक तकनीकी अवलोकन के रूप में कार्य करता है कि न्यूरल नेटवर्क डेटा को कैसे संसाधित करते हैं और विशिष्ट प्रदर्शन लक्ष्यों के साथ मॉडल व्यवहार को कैसे संरेखित करते हैं। यह रिपॉजिटरी मॉडल विकास के कई प्रमुख क्षेत्रों पर विशेष गाइड प्रदान करती है। इसमें ट्रांसफार्मर आर्किटेक्चर के लिए विस्तृत संदर्भ, रिट्रीवल-ऑगमेंटेड जनरेशन और एजेंटिक वर्कफ़्लो के लिए कार्यान्वयन फ्रेमवर्क, और मॉडल ऑप्टिमाइज़ेशन और फाइन-ट्यूनिंग के लिए तकनीकी गाइड शामिल हैं। सामग्री क्षमताओं की एक विस्तृत श्रृंखला को कवर करती है, जिसमें सुपरवाइज्ड फाइन-ट्यूनिंग, लो-रैंक एडेप्टेशन और प्राथमिकता-आधारित संरेखण शामिल है। यह सेल्फ-अटेंशन और फ्लैश अटेंशन मैकेनिज्म के अध्ययन के साथ-साथ क्वांटाइजेशन, डिस्टिलेशन और मिक्सचर-ऑफ-एक्सपर्ट्स आर्किटेक्चर के माध्यम से मॉडल दक्षता को भी संबोधित करती है।
Covers large model optimizations such as quantization and mixture-of-experts to reduce memory usage.