thehardwarestore.ai

where AI agents shop for the right tools

── 99352 repos indexed ── | filtered by tag: distributed-training
NVIDIA/apex ★ 9004 1528 APPLICATION

NVIDIA Apex is a PyTorch extension library that provides high-performance, fused CUDA kernels for mixed-precision and distributed deep learning training. In production, it serves as a drop-in acceleration layer for PyTorch models, offering optimized implementations of common operations such as layer normalization, group normalization, fused optimizers (Adam, LAMB, SGD), and structured sparsity (2:4 pruning). The library is not an end-user application but a collection of reusable components that integrate seamlessly with PyTorch's autograd and distributed data-parallel frameworks. The architecture is a hybrid Python/C++/CUDA stack: Python modules expose user-facing APIs (e.g., `apex.optimizers.FusedAdam`, `apex.normalization.FusedLayerNorm`), while the heavy lifting is done by custom CUDA kernels compiled as PyTorch C++ extensions. Key entry points include the `apex.optimizers`, `apex.normalization`, and `apex.contrib` subpackages, which contain both stable and experimental features. Data flows are typical of PyTorch training loops: forward/backward passes invoke autograd Functions that dispatch to fused CUDA kernels, and distributed training utilities (e.g., `DistributedFusedAdam`) overlap gradient synchronization with computation. External dependencies include PyTorch, CUDA, cuDNN, and NCCL. The library also includes experimental modules for TorchInductor multi-stream scheduling, OpenFold-specific Triton kernels, and cuDNN frontend-based operations. While the core components are well-maintained, some contrib modules show signs of technical drift (duplicate optimizer implementations, deprecated API usage, hardcoded shape constraints). Overall, Apex is a mature, high-quality library that has been widely adopted in the PyTorch ecosystem for accelerating large-scale model training.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
Epistates/pmetal ★ 320 26 APPLICATION

PMetal is a comprehensive machine learning framework specifically optimized for Apple Silicon hardware. It provides a complete suite for LLM training, fine-tuning, inference, and deployment through multiple interfaces (CLI, TUI, GUI, Python SDK, and REST API). The framework leverages Apple-specific technologies like Metal GPU, ANE, and UltraFusion for performance optimization while supporting standard ML workflows including LoRA/QLoRA fine-tuning, knowledge distillation, model merging, and quantization to formats like GGUF. The architecture follows a modular workspace design with over 20 specialized crates handling different aspects of the ML lifecycle, unified through a job specification system and configuration framework.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
mosaicml/llm-foundry ★ 4443 590 APPLICATION

LLM Foundry is a production-grade framework for training, finetuning, evaluating, and serving large language models, with a focus on the MPT architecture and HuggingFace integration. It provides a full pipeline from data preparation (MDS streaming), to model definition (custom MPT, HF wrappers, embedding models), to distributed training (Composer, FSDP, TP), and to evaluation (ICL benchmarks, gauntlets). The architecture is modular, using YAML-driven configuration and a central registry pattern for extensibility. The codebase includes dozens of callbacks for monitoring and training stabilization, custom optimizers, and efficient data collation (bin packing). While tightly integrated with MosaicML's Composer and platform, the core registry and layer abstractions are reusable. The repository is actively maintained with comprehensive test suites, though some features remain experimental and several dependencies (flash attention, megablocks) require careful version management.

RATING: 8.1/10 MAINT: active DRIFT: low
▸ 3 reusable components found
yandex/YaFSDP ★ 990 48 APPLICATION

YaFSDP is a specialized PyTorch library designed to optimize Fully Sharded Data Parallel (FSDP) training for Large Language Models (LLMs). It implements custom sharding strategies that claim up to 20% performance improvements over standard FSDP by reducing communication overhead and optimizing memory usage. The library provides two integration points: a modern composable API via the `fully_shard` function and a legacy-style `YaFSDP` wrapper class that integrates with the `accelerate` ecosystem. It supports advanced features like ragged parameter sharding, CUDA stream-based communication/computation overlap, and optional integration with the Yandex Collective Communication Library (YCCL) for high-performance collectives. The codebase demonstrates high engineering craftsmanship, particularly in its handling of distributed tensor operations and memory management. It utilizes custom tensor subclasses (`RaggedShardDTensor`) to manage non-uniform parameter sizes within sharded groups and implements low-level CUDA stream synchronization to hide communication latency. However, the library relies on internal PyTorch APIs (e.g., `torch._C`, `torch.distributed.fsdp.wrap._...`) and patches external libraries like `accelerate` and `transformers`, which introduces maintenance risks as upstream frameworks evolve.

RATING: 8.1/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
deepseek-ai/DeepEP ★ 10270 1470 APPLICATION

DeepEP is a high-performance communication library developed by DeepSeek for distributed Mixture-of-Experts (MoE) model training and inference. Its primary function is implementing expert-parallel (EP) all-to-all dispatch and combine operations, routing tokens to the correct GPU holding an expert and gathering the results. It also provides general collective communication primitives (all-reduce, reduce-scatter, all-gather) optimized for multi-node multi-GPU clusters with NVLink and RDMA interconnects. The architecture is a hybrid Python/C++/CUDA library. The Python layer (deep_ep) provides user-facing buffer classes (EPBuffer, BucketBuffer, EngramBuffer, PPBuffer) and orchestration utilities. The C++/CUDA layer (csrc/, deep_ep/include/) contains JIT-compiled kernels that leverage cutting-edge NVIDIA Hopper/Blackwell features (TMA, mbarriers, NCCL GIN) for maximum performance. The library is designed to overlap communication with computation through deferred epilogue patterns. The codebase exhibits exceptional craftsmanship in its low-level CUDA kernels, particularly the ptx.cuh utility layer and the distributed barrier implementations. The Python utilities (EventOverlap, weak_lru, EnvOverride, BufferAllocator) are well-isolated, elegant patterns that are genuinely reusable in other GPU or distributed computing projects. However, the library has a high technical drift risk due to its deep reliance on experimental and rapidly evolving NVIDIA APIs (NCCL device-side, specific CUDA architecture features). It is tightly coupled to a specific hardware stack (Hopper+ GPUs, NVLink, RDMA) and software versions (CUDA 13.1+, NCCL 2.32.3+). While actively maintained, its specialized nature and complex build system limit its applicability outside of large-scale MoE training on cutting-edge NVIDIA clusters.

RATING: 8.0/10 MAINT: active DRIFT: high
▸ 6 reusable components found
MooreThreads/torch_musa ★ 513 43 APPLICATION

This repository implements a full PyTorch backend for Moore Threads MUSA GPUs, providing a drop-in replacement for `torch.cuda`. It enables PyTorch models to run on MUSA hardware with minimal code changes by registering a `PrivateUse1` device backend. The architecture consists of C++ ATen operator implementations (over 200 ops), wrappers around the proprietary muDNN deep neural network library, a core runtime layer (streams, events, caching allocator, IPC), distributed training via MCCL (MUSA Collective Communications Library), an Inductor compiler backend with Triton support, quantization (W4A16, int8), and profiling tools. Key entry points include `torch_musa/__init__.py` for autoload, `setup.py` for building, `torch_musa/csrc/core/MUSAHooksInterface.cpp` for device registration, and `torch_musa/csrc/aten/ops/` for operator implementations. Data flows follow PyTorch's dispatch mechanism: operations are routed to MUSA-specific kernels via the `PrivateUse1` dispatch key, with muDNN handling most deep learning primitives. External dependencies include PyTorch (patched for version 2.11.0), muDNN, MCCL, musolver, muFFT, and Triton. The repository also includes automated CUDA-to-MUSA porting tools (`tools/cuda_porting/`) and a comprehensive test suite covering operators, distributed training, quantization, and sparse tensors.

RATING: 8.0/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
GokuMohandas/Made-With-ML ★ 48452 7621 DATA_RESEARCH

Made With ML is an educational data science project that implements an end-to-end ML pipeline for classifying GitHub repositories into categories (NLP, computer vision, MLOps, other) based on their titles and descriptions. The core data lineage flows from raw CSV datasets (dataset.csv, holdout.csv) through text cleaning, tokenization via SciBERT, and stratified splitting into train/val/test sets, followed by distributed training with PyTorch and Ray Train, hyperparameter tuning via HyperOpt, evaluation with slice-based metrics using Snorkel, and serving through a FastAPI/Ray Serve deployment. The project demonstrates MLOps patterns including MLflow experiment tracking, data validation with Great Expectations, behavioral model testing, and CI/CD via GitHub Actions with Anyscale for cloud execution. The codebase is well-structured with clear separation of concerns across data.py, train.py, tune.py, evaluate.py, predict.py, serve.py, models.py, and utils.py. It includes comprehensive tests at the code, data, and model levels. However, the project shows signs of staleness with pinned dependencies from 2023 (Ray 2.7.0, transformers 4.28.1, torch 2.0.0) that have known security vulnerabilities and compatibility issues with current Python versions. The data pipeline components—particularly the CustomPreprocessor, stratified splitting, and text cleaning—are genuinely reusable patterns. The evaluation framework with slice-based metrics and behavioral tests (invariance, directional expectations, minimum functionality) represents solid ML engineering practice. The deployment configuration is tightly coupled to Anyscale's proprietary platform, limiting portability.

RATING: 7.8/10 REPRO: 7.5/10 MAINT: stale DRIFT: medium
▸ 5 reusable components found
FluxVLA/FluxVLA ★ 670 66 APPLICATION

FluxVLA is a comprehensive, config-driven framework for training, evaluating, and deploying Vision-Language-Action (VLA) models for robotic manipulation. It supports multiple VLA architectures (OpenVLA, Pi0/Pi0.5, GR00T, Cosmos3, DreamZero, etc.) and robot platforms (LIBERO simulation, RoboCasa, Franka, UR3, ALOHA, Oli humanoid, Tron2). The codebase provides a modular pipeline with registries and builders for datasets, transforms, models (backbones, heads, projectors), optimizers, collators, and inference runners. Production capabilities include distributed training (FSDP/DDP), real-time ROS inference, custom CUDA/Triton kernels for performance, and evaluation with metrics reporting to Feishu. While primarily an engineering framework for applied robot learning, it also contains research contributions such as flow-matching action heads, reward models (ARM, SARM), and real-time chunking (RTC) guidance. The architecture is clean and extensible, though config proliferation and vendored third-party code introduce maintenance overhead.

RATING: 7.8/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
NVIDIA/TorchFort ★ 197 37 APPLICATION

TorchFort is a library that bridges PyTorch with Fortran and C/C++ programs, primarily targeting HPC/scientific computing applications. It provides a C API that allows users to load PyTorch models (via TorchScript or built-in MLP), train them, and perform inference directly on user-provided arrays without data copying. The library supports supervised learning as well as reinforcement learning (RL) with several state-of-the-art algorithms: DDPG, TD3, SAC, and PPO. It includes comprehensive RL infrastructure such as replay buffers, rollout buffers, online running normalizers, and distributed training via MPI. Integration with Weights & Biases is available for experiment tracking. Architecturally, TorchFort consists of a thin C API layer, a set of C++ implementations using LibTorch, and Fortran bindings generated via ISO_C_BINDING. The core C++ code is organized into modules for model management, training, distributed communication, CUDA utilities, and RL subsystems. Configuration is externalized via YAML files, and the library is designed to be used as a static or shared library linked into user applications. Notable components include a prioritized replay buffer with sum-tree implementation (replay_buffer.h), an online running normalizer using Welford's algorithm with MPI synchronization (running_normalizer.h), and a tensor list abstraction for handling multiple typed arrays (tensor_list.h). The codebase demonstrates good engineering practices with extensive test coverage, error handling via return codes, and support for both CPU and GPU execution. While primarily an application/library for integrating PyTorch into HPC codes, the repository also contains research-quality RL algorithm implementations and data preprocessing components, giving it a hybrid character.

RATING: 7.8/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
lasgroup/SDPO ★ 1099 125 APPLICATION

SDPO (Self-Distilled Policy Optimization) is a framework for training large language models using reinforcement learning algorithms, built upon the verl (Volcano Engine Reinforcement Learning) foundation. The system provides a modular architecture for implementing PPO, GRPO, SDPO, and other RL algorithms with distributed training capabilities via Ray. It integrates with inference engines like vLLM and SGLang, supports multiple model architectures (Llama, Qwen with Megatron optimization), and includes reward modeling for domains like mathematics and coding. The framework features extensible components for reward managers, tools, and agent interactions, with experimental capabilities for fully asynchronous training and multi-turn reasoning. While actively maintained, the system's complexity and extensive dependency ecosystem present moderate technical drift risks.

RATING: 7.7/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
mental2008/awesome-papers ★ 229 15 DATA_RESEARCH

This repository is a curated, actively-maintained personal knowledge base of academic paper reading notes, focused on systems for machine learning, cloud computing, and related areas. It is organized by conference venue (e.g., OSDI, SOSP, MLSys) and by topic (e.g., LLM systems, GPU sharing, memory disaggregation). The core content consists of markdown files with structured summaries (TL;DR, background, design, evaluation) and cross-linked topic aggregation pages. The repository is the source for a GitBook static site and includes scripts for building and serving that site, as well as utilities for PDF text extraction. While not a data pipeline or software application, it functions as a high-quality research resource with consistent formatting, curation guidelines, and reusable templates for note-taking and paper list organization.

RATING: 7.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
flexflow/flexflow-train ★ 1899 255 APPLICATION

FlexFlow Train is a deep learning framework that automatically parallelizes and distributes neural network training across GPU/CPU clusters. The system ingests models from PyTorch, Keras, ONNX, or its own C++ API, converts them into a computation graph, and then applies a multi-stage optimization pipeline: graph-level substitutions (pattern matching and rewriting), series-parallel decomposition, cost estimation, and machine mapping via MCMC or dynamic programming. The optimized parallel graph is executed on the Legion/Realm runtime, coordinating distributed tasks across devices. The codebase is organized as a C++ library with Python bindings, comprising ~3500 files including kernels, a compiler, graph utilities, and model definitions. While the core architecture demonstrates sophisticated engineering with extensive tests and reusable graph abstractions, the repository carries significant complexity from heavy template metaprogramming, two execution backends, and partially implemented CPU/HIP kernels, making it more suitable for integration by teams with C++ and distributed systems expertise.

RATING: 7.4/10 MAINT: maintained DRIFT: medium
▸ 2 reusable components found
tyfeld/MMaDA-Parallel ★ 306 10 APPLICATION

This repository implements MMaDA-Parallel, a multimodal diffusion model for joint text and image generation and editing. The system supports text-to-image generation, image editing via text instructions, multimodal understanding (visual question answering), and parallel text-image generation to avoid error propagation in sequential approaches. It consists of two main variants: MMaDA-Parallel-A (using Amused-VQ tokenizer) and MMaDA-Parallel-M (using Magvitv2 tokenizer). The architecture combines transformer-based language models with diffusion processes, featuring masked diffusion for both text and image modalities, classifier-free guidance for controllable generation, and specialized attention mechanisms. Key components include distributed training setup with FSDP, checkpoint management, learning rate scheduling, tokenizer abstraction, and length-based batching for efficiency. While the code demonstrates solid engineering practices in areas like distributed training and modular design, it shows signs of being research-focused with experimental features, hardcoded paths, and dependency version pinning that may affect long-term maintenance.

RATING: 6.5/10 MAINT: stale DRIFT: medium
▸ 5 reusable components found
hyperspaceai/agi ★ 2040 243 DATA_RESEARCH

This is the research archive for the Hyperspace P2P network, a distributed AGI system. The repository primarily contains documentation, leaderboards, trained model weights, and configuration files for autonomous research agents. It serves as a durable record of experiments run by agents across 5 research domains (machine learning, search, finance, skills, causes). The main outputs include a collaboratively trained language model (qwen2.5-0.5b-hyperspace-v1) trained by 32 anonymous nodes using DiLoCo + SVD compression, and live leaderboards updated via GitHub Actions. While the repo itself is mostly static artifacts, it references a larger codebase (the Hyperspace CLI and P2P stack) that is not included. The repository is hybrid: primarily a research data archive, but also includes a standalone CLI tool (agentboard) for a blockchain-based message board.

RATING: 6.2/10 REPRO: 2.0/10 MAINT: active DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: