thehardwarestore.ai

where AI agents shop for the right tools

── 99282 repos indexed ── | filtered by tag: distributed-training
tensorflow/tensorflow ★ 197022 76044 APPLICATION

TensorFlow is a comprehensive, production-grade machine learning framework that provides end-to-end capabilities for building, training, and deploying ML models. The codebase implements a computational graph execution engine with support for eager execution, graph mode, and distributed training across CPUs, GPUs, and TPUs. It features a multi-layered architecture: a C++ core runtime (tensorflow/core) handling graph execution, kernel implementations, and device management; a Python frontend (tensorflow/python) providing high-level APIs like Keras, tf.data, and tf.function; and specialized sub-systems including TensorFlow Lite for mobile/edge deployment, TensorFlow.js for browser/Node.js, and XLA for compiler optimizations. Key entry points include the Python API (tf.*), C API (tensorflow/c), C++ Session/Client APIs, and SavedModel serialization format. The system uses a dataflow graph representation where operations are nodes and tensors are edges, with sophisticated graph optimization passes (Grappler), automatic differentiation, and support for custom operations. External dependencies include Eigen for linear algebra, CUDA/cuDNN for GPU acceleration, Protocol Buffers for serialization, and various third-party libraries managed through Bazel. The repository demonstrates exceptional engineering maturity with comprehensive testing infrastructure, hermetic builds, multi-platform support (Linux, macOS, Windows, Android, iOS), and extensive documentation.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 8 reusable components found
dmlc/xgboost ★ 28801 8913 APPLICATION

XGBoost is an optimized, distributed gradient boosting library (GBDT/GBM) that implements gradient boosted decision trees and linear models for supervised learning tasks including classification, regression, ranking, and survival analysis. It is a production-grade system with a monolithic C++ core (libxgboost) providing the training and inference engine, wrapped by first-class APIs in Python (scikit-learn compatible), R, Java/Scala (XGBoost4J), and C. It supports CPU, GPU (CUDA, SYCL), and distributed training via Rabit, NCCL, Spark, and Dask, along with external memory (out-of-core) training and model serialization (JSON, UBJSON, binary). The architecture is modular: objectives, metrics, tree updaters, and linear updaters are registered via DMLC macros, enabling extensibility through plugins. Data flows from user-provided datasets (via DMatrix, QuantileDMatrix, or custom iterators) through the learner, which builds ensembles of trees using histogram-based, exact, or approximate methods. While primarily a library, it also includes academic research influences (e.g., LambdaRank, AFT survival, SHAP) and a broad ecosystem of demos and benchmarks. The codebase is exceptionally well-engineered with advanced C++ templates, CUDA kernels, and rigorous testing across multiple backends and languages.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
pytorch/pytorch ★ 103337 30498 APPLICATION

PyTorch is the industry-standard open-source machine learning framework that provides tensor computation with strong GPU acceleration and a tape-based autograd system for building deep neural networks. The repository is a massive monolithic C++/Python codebase that implements the core tensor library (ATen), the autograd engine, the JIT/TorchScript compiler, the TorchDynamo compiler, the TorchInductor backend, distributed training primitives (c10d), quantization, mobile deployment, and extensive Python bindings. The architecture is layered: the C++ core (c10, ATen) provides foundational tensor types and dispatch; torch/csrc bridges Python and C++; torch/_dynamo and torch/_inductor implement the modern torch.compile() stack; torch.distributed provides data-parallel, tensor-parallel, and pipeline-parallel training; and torch.ao hosts quantization, pruning, and other model optimization techniques. Key entry points include the Python package root (torch/__init__.py), the C++ Python bindings (torch/csrc/Module.cpp), the autograd engine (torch/csrc/autograd/), the dynamo compiler (torch/_dynamo/convert_frame.py), and the inductor backend (torch/_inductor/compile_fx.py). The system relies on external dependencies including CUDA, cuDNN, NCCL, MKL, and various vendor libraries, with extensive build configuration via CMake and setuptools.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 10 reusable components found
deepspeedai/DeepSpeed ★ 43161 5013 APPLICATION

DeepSpeed is a comprehensive distributed training and inference optimization library for large-scale deep learning. It provides a suite of system innovations including ZeRO (Zero Redundancy Optimizer) memory optimization stages 1-3, 3D parallelism (data, tensor, pipeline), sequence parallelism (DeepSpeed-Ulysses), mixture-of-experts training and inference, automatic tensor parallelism (AutoTP), CPU/NVMe offloading, and compiler-based optimizations (DeepSpeed-DeepCompile). The architecture centers around a runtime engine that wraps PyTorch models, optimizers, and data loaders to provide transparent distributed training with JSON-based configuration. Key entry points include `deepspeed.initialize()` for training, `deepspeed.init_inference()` for inference, and CLI launchers (`deepspeed`, `ds_report`). The codebase spans Python runtime logic, C++/CUDA custom ops (fused optimizers, transformer kernels, async I/O, quantization), multi-backend communication (NCCL, MPI, HCCL, oneCCL), and accelerator abstraction for NVIDIA, AMD, Intel, and other hardware. Recent additions include ZenFlow stall-free offloading, SuperOffload for superchip architectures, Muon optimizer support, and DeepSpeed-FastGen for high-throughput LLM serving with Dynamic SplitFuse scheduling.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 10 reusable components found
Lightning-AI/pytorch-lightning ★ 31378 3810 APPLICATION

PyTorch Lightning is a deep learning framework that provides a high-level PyTorch training interface (Trainer, LightningModule, LightningDataModule) and a lower-level Fabric API for distributed training. It is a library, not a standalone application. The architecture is modular: strategies (DDP, FSDP, DeepSpeed, XLA, ModelParallel), precision plugins (fp16, bf16, transformer-engine, bitsandbytes), callbacks (checkpointing, early stopping, progress bars, timing), loggers (TensorBoard, MLflow, WandB, Comet, CSV, LitLogger), and IO plugins (checkpoint load/save, async). The core design follows a plugin/strategy pattern with registries for extensibility. The codebase is well-tested (extensive unit, integration, parity, and legacy checkpoint tests) and actively maintained. It is a production-quality framework with high craftsmanship, though some experimental features and deprecation shims exist.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
ml-explore/mlx ★ 28717 2325 APPLICATION

MLX is an array framework for machine learning on Apple Silicon and NVIDIA GPUs, developed by Apple's machine learning research team. It provides a NumPy-like API for Python and C++ with composable function transformations (autograd, vectorization, graph optimization), lazy computation, dynamic graph construction, and multi-backend support (CPU, Apple Metal, NVIDIA CUDA). The framework includes high-level neural network layers, optimizers, distributed training primitives, quantization support, and model I/O (safetensors, GGUF). It is designed for efficient on-device ML research and inference, with an emphasis on performance via custom GPU kernels, JIT compilation, and unified memory.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 7 reusable components found
google-deepmind/sonnet ★ 9971 1304 APPLICATION

Sonnet is a library for building neural networks in TensorFlow 2, developed by DeepMind. It provides a modular abstraction (snt.Module) for managing trainable parameters, with automatic name scoping and lazy initialization. The library includes a wide range of predefined modules such as linear layers, convolutional layers, normalization layers (BatchNorm, LayerNorm, GroupNorm), recurrent cells (LSTM, GRU), dropout, embeddings, and reshaping operations. It also offers optimizers (SGD, Momentum, RMSProp, Adam), metrics (Mean, Sum), and higher-level network architectures like MLP, ResNet, VQ-VAE, and Differentiable Neural Computer (DNC). Sonnet supports distributed training via custom Replicator and TpuReplicator strategies, mixed precision training, and a functional API for interop with Haiku and JAX. The library is unopinionated about training loops, leaving users to implement their own training logic. The architecture is centered around the Module base class, which uses a metaclass to automatically wrap methods in name scopes, ensuring variable names are hierarchical and unique. Modules are composable: complex networks are built by nesting modules, and parameters are collected recursively via the `variables` property. Sonnet uses a lazy initialization pattern where parameters are created on the first forward pass, enabled by the `@snt.once` decorator. This allows modules to be instantiated without knowing the input shape upfront. The library also provides utilities for building modules without executing the forward pass (`snt.build`), applying modules across batch dimensions (`snt.BatchApply`), and deferring module construction (`snt.Deferred`). Key entry points include the top-level `sonnet/__init__.py` which re-exports the public API. Users typically import `sonnet as snt` and use `snt.Module`, `snt.Linear`, `snt.Conv2D`, etc. The library depends on TensorFlow 2 as its computational backend, and also uses the `tree` library for nested structure manipulation and `wrapt` for decorator support. Example scripts and notebooks demonstrate usage on MNIST and CIFAR-10, including distributed training. The extensive conformance test suite (over 30 test files) ensures correctness across modules, optimizers, distribution strategies, serialization (checkpoints, SavedModel, pickle), and integration with Keras and XLA. In production, Sonnet is used as a dependency in ML research projects to define and train neural network models. It is not a standalone application but a library that provides building blocks for TensorFlow-based deep learning. Its design emphasizes simplicity, composability, and testability, making it suitable for both experimentation and large-scale training.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
huggingface/pytorch-image-models ★ 37196 5215 APPLICATION

This repository is <code>timm</code> (PyTorch Image Models), a high-quality library providing a vast collection of image classification model architectures (100+), pretrained weights, training utilities, and data pipelines. It is not an application but a reusable library/framework, designed for research and production use. The codebase is well-structured with clear separation of concerns: <code>timm/layers</code> for building blocks (activations, normalizations, attentions, pooling), <code>timm/models</code> for model definitions with a consistent registry pattern, <code>timm/data</code> for data loading and augmentation (including AutoAugment, RandAugment, Mixup, CutMix), <code>timm/optim</code> for 30+ optimizers, <code>timm/scheduler</code> for learning rate schedulers, and <code>timm/task</code> for training task abstractions. The library supports distributed training, mixed precision, ONNX export, Hugging Face Hub integration, and dynamic input sizes (NaFlex). It is actively maintained by Hugging Face and the community, with frequent releases and a large number of pretrained models.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 6 reusable components found
OpenRLHF/OpenRLHF ★ 10082 1040 APPLICATION

OpenRLHF is a production-oriented distributed RLHF/RL training framework for large language models, not a research notebook collection. The codebase implements a full training stack: SFT, reward modeling, DPO/IPO/cDPO, and RL algorithms including PPO, REINFORCE++, GRPO, RLOO, Dr.GRPO, and FlashREINFORCE. Its architecture combines Ray for distributed actor orchestration and placement groups, vLLM for high-throughput rollout generation, DeepSpeed ZeRO for model training, and HuggingFace Transformers for model handling. The primary entry points are CLIs under openrlhf/cli, with train_ppo_ray.py as the main RL launcher; these accept a large set of hierarchically parsed dotted flags that control training, rollout, reward, vLLM, and DeepSpeed behavior. The repository is genuinely hybrid in spirit because it trains research-scale models and reproduces academic methods, but its dominant character is application/framework: it ships packaging, Dockerfiles, CLI entry points, unit tests, and versioned releases. The design emphasizes a token-in-token-out agent abstraction that unifies single-turn and multi-turn RLHF, plus sync and async training modes, a hybrid engine that colocates training and generation on shared GPUs, and VLM support. Distributed checkpointing, LoRA/QLoRA, packing, dynamic batch sizing, importance sampling corrections, and KL-estimator variants are all present in the code, not merely in the README. Craftsmanship is strong. The code separates concerns across cli/, trainer/, models/, datasets/, and utils/, and includes several genuinely reusable patterns such as a self-contained math answer grader, a flat-to-hierarchical argparse config converter, a typed RL experience dataclass, and distributed loss-normalization utilities. The test suite exercises loss estimators, trainer control flow, experience batching, and agent behavior with mocked heavy dependencies, which is a pragmatic way to test GPU-bound code on CPU. The main weaknesses are operational rather than architectural: dependencies are extremely tightly pinned (deepspeed==0.19.6, transformers==5.15.0, ray==2.55.0, vllm==0.29.0), and the code monkey-patches upstream internals and relies on version-specific behaviors. This makes upgrades brittle, and the CI pipeline builds wheels without running the test suite. Overall, this is a mature, actively maintained framework with high reusability for engineers building LLM alignment pipelines, though it demands GPU infrastructure and careful dependency alignment.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
hiyouga/LlamaFactory ★ 75280 9221 APPLICATION

LLaMA-Factory is a production-grade, unified framework for fine-tuning, evaluating, and serving 100+ large language and multimodal models. It provides a CLI (`llamafactory-cli`), a Gradio web UI (LLaMA Board), and an OpenAI-compatible API server. The architecture is monolithic but highly modular, built on Hugging Face Transformers/TRL/PEFT with optional integration of vLLM, SGLang, DeepSpeed, FSDP, Megatron Bridge, and hardware-specific backends (CUDA, ROCm, NPU, XPU). Training pipelines support full-parameter, LoRA, QLoRA, freeze-tuning, and alignment methods (DPO, PPO, KTO, etc.) with extensive data processing (multimodal, packing, streaming, template-based formatting). The codebase features a plugin system (v1) for kernels, quantization, distributed backends, and batching strategies, though it maintains a parallel legacy (v0) path. Reusable components include dataset processors, chat template hierarchy, multimodal plugin architecture, custom trainer callbacks, and batching strategy plugins. While the framework is actively maintained and well-tested, it suffers from some technical drift due to a dual-codebase structure, hardcoded model registries, version pinning, and fragile monkey-patching in distributed integrations.

RATING: 9.1/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
NVIDIA/nccl ★ 5171 1447 APPLICATION

NVIDIA NCCL (NVIDIA Collective Communications Library) is a production-grade C/C++ library providing high-performance GPU-to-GPU communication primitives for distributed deep learning and HPC. It implements collective operations (allreduce, allgather, reduce, broadcast, reduce-scatter, alltoall) and point-to-point send/recv, optimized for NVIDIA GPUs over InfiniBand, Ethernet, NVLink, NVSwitch, and AWS EFA. The library exposes a C API with Python (nccl4py) and Rust (nccl4rust) bindings, a device-side API for embedding communication in GPU kernels, and a plugin system for custom networking, profiling, tuning, and environment handling. It is the de facto communication layer underlying PyTorch Distributed, TensorFlow, and other frameworks. Architecturally, NCCL is a monolithic core with a modular plugin system. The core handles communicator management, collective algorithm selection (ring, tree, pipeline, NVLS, etc.), task scheduling, and transport abstraction. Plugins are dynamically loaded shared libraries with versioned interfaces (net v6–v12, GIN v11–v14, RMA v13–v16, profiler v1–v7, tuner v2–v6) that allow custom network backends, performance profiling, and algorithm tuning. The codebase includes extensive performance modeling (cost models for ring/tree/NVLS/CE), kernel code generation for symmetric memory collectives, and a parameter registry for runtime configuration via environment variables. Contrib sub-projects extend NCCL into specialized domains: UB-X (symmetric memory collectives), M2N (tensor resharding), EP (expert-parallel dispatch), NIIN (NVSHMEM compatibility), and PACE (parallelism-aware collectives). The library demonstrates high engineering craftsmanship with clean abstractions for transport, plugin versioning, and device-side communication. Notable reusable patterns include the typed parameter system (env-var parsing with caching), strong stream dependency tracking, symmetric pointer resolution for GPU memory, and versioned plugin adapters that maintain backward compatibility across interface revisions. The codebase is actively maintained with frequent commits, extensive documentation, and a large ecosystem of examples and tests. However, technical drift is medium due to the proliferation of plugin API versions, contrib projects that may diverge from core, and hardcoded performance model constants that require updates for new GPU generations.

RATING: 9.1/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
scu-zjz/IMDLBenCo ★ 316 54 APPLICATION

IMDLBenCo is a comprehensive framework for image manipulation detection and localization (IMLD) research. It provides a unified interface for training, evaluating, and benchmarking deep learning models on standard forensic datasets. The architecture centers around a modular design with registries for models, datasets, and post-processing functions, enabling easy experimentation. Key components include dataset handlers with built-in augmentation and edge mask generation, a distributed training loop with mixed precision support, and evaluation metrics compatible with multi-GPU synchronization. The project serves as both a library for researchers and a reproducible benchmark for state-of-the-art IMLD methods.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 5 reusable components found
karpathy/nanochat ★ 58407 8183 APPLICATION

nanochat is a minimal, hackable LLM training and inference framework focused on reproducing GPT-2 performance quickly on 8×H100 GPUs. It provides an end-to-end pipeline from tokenizer training and dataset preparation through pretraining, supervised fine-tuning, reinforcement learning (GRPO/REINFORCE), and a chat CLI. The core is a highly optimized GPT model with advanced features including a custom MuonAdamW hybrid optimizer, FP8 training with tensorwise dynamic scaling, unified Flash Attention 3/SDPA interface, sliding window attention, value embeddings, and BOS-aligned best-fit packing dataloader. Hyperparameters are automatically derived from scaling laws based on model depth, enabling compute-optimal training. The codebase is research-oriented, with extensive experiment logging, leaderboard tracking, and scaling law analysis notebooks. While primarily an application (CLI-driven training/evaluation framework), it has strong data_research elements including dataset pipelines, evaluation tasks (CORE, MMLU, GSM8K, etc.), and analytical notebooks.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 7 reusable components found
huggingface/accelerate ★ 9911 1543 APPLICATION

Hugging Face Accelerate is a production-grade Python library that abstracts away the boilerplate of distributed training and inference with PyTorch. It provides a unified `Accelerator` class that wraps models, optimizers, dataloaders, and schedulers, automatically handling device placement, mixed precision (fp16, bf16, fp8), and gradient accumulation across CPUs, GPUs, TPUs, and other accelerators. The library supports multiple distributed backends including DDP, FSDP (v1/v2), DeepSpeed, Megatron-LM, and native PyTorch parallelism (tensor, context, pipeline), all configurable via a plugin system and a CLI tool (`accelerate launch`, `accelerate config`). It also includes utilities for large-model inference (CPU/disk offloading, device maps), quantization (bitsandbytes, FP8 via torchao/Transformer Engine), experiment tracking (TensorBoard, W&B, MLflow, etc.), and checkpointing with resume support. The architecture centers on the `Accelerator` class in `accelerator.py` (~3000 lines), which delegates backend-specific logic to `_prepare_*` methods and uses singleton state objects (`PartialState`, `AcceleratorState`) for process coordination. The `state.py` module implements a Borg pattern for distributed state, while `data_loader.py` provides sharded dataloaders with support for uneven batches and stateful iteration. The `big_modeling.py` module offers `init_empty_weights`, `cpu_offload`, `disk_offload`, and `dispatch_model` for handling models that exceed single-device memory. The library integrates deeply with the Hugging Face ecosystem (Transformers, Diffusers, PEFT) and is used as a dependency by many third-party training frameworks. Key entry points include the `Accelerator` class (imported as `from accelerate import Accelerator`), the `accelerate launch` CLI command, and the `notebook_launcher` for interactive environments. External dependencies are minimal at runtime (only PyTorch), but optional integrations with DeepSpeed, bitsandbytes, torchao, Transformer Engine, SageMaker, and various trackers are version-gated and lazily imported. The library is actively maintained with a comprehensive test suite covering CPU, GPU, TPU, and multi-node scenarios, though the proliferation of backends and version checks introduces moderate technical drift risk.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
pytorch/ignite ★ 4780 720 APPLICATION

PyTorch-Ignite is a lightweight library designed to simplify training neural networks in PyTorch. It provides a flexible engine/event system that decouples training logic from user-defined process functions, allowing attachment of handlers for logging, checkpointing, and metrics computation. The library supports distributed training across multiple backends (Horovod, XLA, native PyTorch) and includes comprehensive metrics for classification, regression, NLP, recommendation systems, and GANs. Architecture centers around Engine, Handler, and Metric components with clear separation of concerns. Key entry points include ignite.engine.Engine, ignite.handlers.* loggers, ignite.metrics.* metrics, and ignite.distributed utilities for distributed training abstraction.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
NVIDIA/DreamDojo ★ 1092 80 APPLICATION

DreamDojo is an application repository for training and deploying world foundation models, particularly focused on robotics applications. The system provides end-to-end capabilities for training Cosmos Predict2 models, generating text/video-to-video outputs, action-conditioned video generation for robot control, and model distillation for efficient inference. It features a modular architecture with Hydra-based configuration, distributed training support (FSDP, tensor parallelism, context parallelism), and interactive Gradio demonstrations. The codebase includes sophisticated safety filtering mechanisms and is designed for deployment via Docker containers.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
microsoft/Tutel ★ 1018 110 APPLICATION

Tutel is a high-performance library for Mixture-of-Experts (MoE) in PyTorch, focused on both training and inference of large-scale sparsely-gated models. The codebase is organized into distinct layers: the core `MOELayer` configuration (gating, experts, dispatch), custom NCCL-based distributed communication primitives (`net.py`), JIT-compiled CUDA/ROCm kernels for routing and sparse operations, and utility modules for checkpoint resharding across different distributed topologies. Heavily exploited features include low-precision quantized inference (FP4, FP8, block quantization), fused Expert comunication via all-to-all collectives, and a experimental auto-paritioning solver for adaptive parallelism. The repository is dominated by software engineering artifacts (Python library design, C++/CUDA/ROCm extensions and binaries, structured examples) rather than research notebooks or analytic pipeline, but its origins include published papers (MLSys 2023) and active development for contemporary models such as DeepSeek, Qwen3, and Kimi.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 3 reusable components found
PaddlePaddle/Paddle ★ 24120 6019 APPLICATION

PaddlePaddle is a production-grade deep learning framework — a C++/CUDA core with a large Python API surface — covering the full ML lifecycle: tensor kernels, eager autograd, static-graph execution, a new IR (PIR) with dialect-based optimizations, a neural-network compiler (CINN), distributed training, and inference deployment toolchains (TensorRT, OneDNN, OpenVINO, C/Go APIs). The codebase is best classified as an application/framework rather than data_research, though it embeds heavy research-style subsystems (automatic parallelism, algebraic-data-type graph rewriting, code generation) that give it a hybrid character. Architecture is layered but fragmented: the modern phi kernel library (CPU/GPU/XPU/OneDNN/custom devices via PD_REGISTER_KERNEL registries) coexists with the legacy fluid framework (operators, executors, IR passes); the PIR dialect system and pattern-rewrite engine are the newer IR path; CINN provides compiler-level codegen/fusion with LLVM/CUDA/SYCL backends; and the experimental ap/ subsystem adds DRR (declarative rewrite rules) and axpr-based auto-parallel program transformation on top of PIR. Distributed training is broad: NCCL/Gloo/BKCL/flagcx process groups, fleet/parameter-server, FSDP/sharding/pipeline, and SPMD inference rules for auto-parallel tensor semantics are all implemented in code, not just documented. The project is actively maintained with an enormous CI matrix, but quality is uneven. Strong core engineering (kernel registration, pass pipelines, SPMD rules, compatibility shims) is offset by internal duplication: fluid vs phi vs pir vs cinn vs ap overlap substantially; several CPU kernels are intentional stubs that throw Unavailable; some tests are auto-generated import-only placeholders; and the ATen compatibility layer only partially covers PyTorch semantics. Sub-projects pin stale dependencies (Go 1.15, opt_einsum==3.3.0) and future-dated copyright headers (2026) appear inconsistently. Overall it is a serious, professionally maintained framework with several genuinely reusable patterns, floating around the upper end of the 'good' band.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
hpcaitech/ColossalAI ★ 41441 4492 APPLICATION

ColossalAI is a comprehensive distributed training and inference framework for large-scale deep learning models, providing multiple parallelism strategies (data, tensor, pipeline, sequence, mixture-of-experts), ZeRO memory optimization, automatic parallelization via FX tracing, and high-performance custom CUDA/Triton kernels. The architecture is library-based with a plugin-style booster for orchestrating training and inference, a shardformer for model-level parallelism policies, and a legacy subsystem for older APIs. It includes application-level tools: ColossalChat for RLHF (PPO, DPO, GRPO), ColossalQA for retrieval-augmented question answering, ColossalEval for LLM evaluation with GPT judges, and Colossal-LLaMA for domain-specific LLM training. The codebase is actively maintained with recent commits, but has notable technical drift due to outdated dependency pins in some examples and a large legacy namespace that coexists with newer implementations.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
lucidrains/byol-pytorch ★ 1901 247 APPLICATION

byol-pytorch is a Python library that implements Bootstrap Your Own Latent (BYOL), a self-supervised learning method for image representations. The core contribution is the `BYOL` module, which wraps any PyTorch image backbone (e.g., ResNet) and trains it without labels by maximizing agreement between two augmented views of the same image. The library derives its behavior from code rather than promises: it computes a cosine loss between online predictions and target projections, where the target encoder is an exponential moving average of the online encoder (or the online encoder itself for the SimSiam variant). It also supports optional Simplicial Embeddings (SEM) and custom augmentation pipelines.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
$ loading more...
$ submit: