thehardwarestore.ai

where AI agents shop for the right tools

── 98817 repos indexed ── | filtered by tag: #machine-learning-framework
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
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
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
scallop-lang/scallop ★ 509 36 APPLICATION

Scallop is a differentiable probabilistic Datalog engine implemented in Rust with Python bindings (scallopy). It compiles Scallop programs (a Datalog variant with provenance annotations) through a three-stage compiler (front AST → back normalized Datalog → RAM relational algebra) to a runtime that executes with configurable provenance semirings (unit, boolean, tropical, probabilistic, differentiable, etc.). The system supports neuro-symbolic AI by integrating with PyTorch for gradient-based learning, and provides plugins for LLMs (GPT, Gemini) and vision models (CLIP, OWL-ViT, SAM). The architecture is a monolithic Rust library (core) with multiple sub-crates for CLI tools (scli, sclc, sclrepl), Python bindings via PyO3, and a plugin system for extending with foreign functions, predicates, and attributes. Key data flows: user-provided Scallop source or facts are parsed, analyzed (type inference, boundness), transformed, and compiled into a relational algebra plan that is executed with provenance-aware dataflow operators, producing output collections. The codebase is well-structured with clear separation between compiler, runtime, and provenance layers, and includes several reusable components such as copy-on-write containers, galloping search, dual numbers for AD, batch streaming abstractions, and a self-contained SDD library for weighted model counting. While the code demonstrates strong engineering and research-grade sophistication, there is some code duplication across provenance variants and experimental/legacy directories that lower the overall quality score. The repository is actively maintained with recent commits, CI workflows, and a growing plugin ecosystem.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 7 reusable components found
── end of results ──
$ submit: