15 Repos
Functions for standardizing input sequence lengths via truncation or padding with special tokens.
Distinct from Padding Maskers: Distinct from Padding Maskers: focuses on the structural standardization of sequence lengths rather than the masking logic for loss exclusion.
Explore 15 awesome GitHub repositories matching artificial intelligence & ml · Sequence Padding Utilities. Refine with filters or upvote what's useful.
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
Standardizes input lengths by appending special tokens and generating weight masks for uniform batch processing.
This project is a high-performance library for converting raw text into tokens and IDs for machine learning models. It functions as a fast text encoder and a text preprocessing pipeline designed to transform strings into numerical representations with high throughput for research and production. The library includes a subword tokenizer trainer used to analyze text datasets and create custom vocabularies using algorithms such as byte-pair encoding and wordpiece. It provides capabilities for subword vocabulary training and text alignment, allowing character offsets to be tracked during normaliz
Provides utilities for standardizing input sequence lengths through truncation and padding with special tokens.
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
Includes a data loader that packs multiple short sequences into fixed-length blocks to eliminate padding waste and increase throughput.
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 functions to standardize input sequence lengths via truncation and padding with special tokens.
This project is a collection of educational resources and instructional guides for learning deep learning and neural network implementation using TensorFlow. It provides a structured set of tutorials and notebooks written in Chinese, covering supervised and unsupervised learning tasks. The material focuses on practical implementations of diverse neural network architectures, including convolutional, recurrent, and autoencoder networks. It includes specific training content for computer vision, natural language processing, and generative models. The coverage extends to specialized network arc
Provides utilities for standardizing variable-length input sequences through padding for consistent batch processing.
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
Implements techniques for concatenating multiple sequences into single tensors to minimize padding waste and optimize memory.
tsai ist eine Deep-Learning-Bibliothek für Zeitreihenklassifizierung, Regression und Prognosen. Basierend auf PyTorch und fastai bietet sie ein Framework, um sequenziellen Daten Labels zuzuweisen, zukünftige Werte in univariaten oder multivariaten Sequenzen vorherzusagen und Repräsentationen in unbeschrifteten Daten mittels selbstüberwachtem Lernen zu trainieren. Die Bibliothek zeichnet sich durch spezialisierte Funktionen für Temporal Engineering und Skalierung aus. Sie enthält Tools für zyklische zeitliche Kodierung zur Erfassung saisonaler Muster sowie Online-Window-Slicing zur Verarbeitung von Datensätzen, die den verfügbaren Arbeitsspeicher übersteigen. Zudem unterstützt sie multimodale Input-Pipelines, die statische kategoriale Merkmale mit dynamischen kontinuierlichen Sequenzen kombinieren. Das Toolkit deckt ein breites Spektrum an Anforderungen für Vorverarbeitung und Evaluierung ab, darunter Sliding-Window-Segmentierung, Imputation fehlender Daten und die Konvertierung von tabellarischen Dataframes in strukturierte Tensoren. Die Modellleistung wird durch Walk-Forward-Validierung und Feature-Importance-Analyse bewertet, um zeitliche Konsistenz sicherzustellen.
Implements utilities to standardize input sequence lengths and identify padding to separate structural filler from actual time series data.
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
Packs multiple dataset samples into single sequences to reduce padding overhead during training.
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
Packs multiple training samples into single sequences to minimize padding waste and maximize throughput.
Dieses Projekt ist ein Deep-Learning-Poetry-Generator, der darauf ausgelegt ist, traditionelle chinesische Couplets zu erstellen. Er nutzt eine Sequence-to-Sequence-Architektur neuronaler Netze, um Eingabetextsequenzen auf passende Ausgabesequenzen zu mappen, und fungiert als Textgenerierungsmodell sowie als Inferenz-Webservice. Das System verfügt über einen neuronalen Text-Ranking-Mechanismus, der Kandidaten-Outputs basierend auf Längenkonsistenz und Zeichenmustern evaluiert, um eine strukturelle Ausrichtung sicherzustellen. Es enthält zudem einen Content-Filter-Prozess, der generierten Text gegen Listen verbotener Wörter scannt, um sensible oder unangemessene Inhalte zu entfernen. Die breitere Funktionspalette umfasst eine Text-Tokenisierungs-Pipeline zur Datenvorbereitung und ein RESTful-Interface zur Bereitstellung von Modellvorhersagen via JSON. Das Projekt deckt zudem den Machine-Learning-Lebenszyklus ab, einschließlich Modellgewichtsoptimierung, Training und Performance-Evaluierung gegen Validierungsdatensätze.
Standardizes input sequence lengths using placeholder tokens to ensure uniform batch dimensions.
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
Combines sequences of varying lengths into continuous vectors to eliminate computational waste from padding.
EasyR1 is a distributed model training system and reinforcement learning framework for large language and vision-language models. It functions as a multimodal trainer and an implementation of a Proximal Policy Optimization pipeline designed to refine the reasoning and perception capabilities of models that process both text and images. The system specializes in distributing reinforcement learning workloads across multiple compute nodes to manage high memory requirements. It optimizes hardware utilization through padding-free training and fine-tuning to fit large models onto available graphics
Packs variable-length sequences into single dense tensors to eliminate wasteful compute cycles during training.
This is an interactive notebook-based course that teaches machine learning from Python fundamentals through deep learning and natural language processing. It uses real datasets and multiple frameworks within a structured, hands-on curriculum that combines concise explanations with executable code cells, built-in datasets, and embedded exercise checkpoints. Learning progresses through data preparation and exploration, classical machine learning workflows, computer vision with convolutional neural networks, and natural language processing with deep learning, all delivered as a cohesive progressi
Standardizes input sequence lengths using truncation or padding with special tokens.
Dieses Projekt ist ein umfassendes Bildungsprogramm und Deep-Learning-Framework, das darauf ausgelegt ist, praktisches Deep Learning mit PyTorch anhand von Notebooks und Codebeispielen zu vermitteln. Es dient als High-Level-Bibliothek zum Erstellen, Trainieren und Bereitstellen neuronaler Netze und fungiert als Modell-Trainings-Orchestrator, der PyTorch-Modelle, Optimierer und Verlustfunktionen koordiniert. Das Projekt bietet spezialisierte Toolkits für Computer Vision, Natural Language Processing und die Vorverarbeitung tabellarischer Daten. Es zeichnet sich durch fortschrittliche Trainingskontrollen aus, wie z. B. diskriminative Lernraten, ein Zwei-Wege-Callback-System zur Anpassung der Trainingslogik und eine High-Level-Learner-Abstraktion, die die Geräteplatzierung und Trainingsschleifen automatisiert. Das Framework deckt ein breites Fähigkeitsspektrum ab, einschließlich der automatisierten Konstruktion von Datenpipelines, der Analyse von Modellarchitekturen und der Leistungsbewertung bei Klassifizierungs-, Regressions- und Segmentierungsaufgaben. Es enthält zudem Dienstprogramme für verteiltes Training über mehrere GPUs, Mixed-Precision-Training zur Speicheroptimierung und spezialisierte Unterstützung für medizinische Bilddaten. Das Projekt wird als eine Reihe von Jupyter Notebooks bereitgestellt.
Adds padding tokens to text tensors to ensure uniform sequence lengths within a batch.
MoreLINQ is a functional programming toolkit and extension library for .NET that augments LINQ to Objects with advanced operators for sequence manipulation and analysis. It provides a set of tools for declarative data transformation, leveraging lazy evaluation and composition to handle complex object sequences. The library is distinguished by its specialized capabilities for combinatorial generation, including the production of permutations, subsets, and Cartesian products. It also provides advanced sequence joining options, such as full, left, and right outer joins, and supports complex data
Adds default values to the start or end of a sequence to reach a minimum specified width.