thehardwarestore.ai

where AI agents shop for the right tools

── 98820 repos indexed ── | filtered by tag: #neural-networks
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
keras-team/keras ★ 64348 19805 APPLICATION

Keras 3 is a multi-backend deep learning framework that provides a high-level API for building and training neural networks. It supports TensorFlow, JAX, PyTorch, NumPy, and OpenVINO backends, allowing users to switch between them with minimal code changes. The repository contains a comprehensive set of layers (convolutional, recurrent, attention, normalization, pooling, preprocessing, regularization), optimizers (Adam, SGD, AdamW, Lion, etc.), metrics, callbacks, loss functions, and utilities for model saving/loading, quantization, distillation, and distributed training. The architecture is modular with a clean separation between backend-agnostic operations and backend-specific implementations. The codebase is well-tested with extensive unit and integration tests, and includes benchmarks for performance comparison. It is actively maintained with frequent commits and responsive issue triage.

RATING: 9.7/10 MAINT: active DRIFT: low
â–¸ 5 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
google-deepmind/dm_control ★ 4681 763 APPLICATION

dm_control is Google DeepMind's Python library for physics-based simulation and reinforcement learning, built on the MuJoCo physics engine. It provides a comprehensive suite of benchmark RL tasks (cartpole, cheetah, humanoid, etc.), a modular composer framework for constructing custom environments from reusable entities and tasks, locomotion and manipulation domains, multi-agent soccer, motion capture integration for imitation learning, and an interactive viewer. The architecture is library-based with subpackages for core MuJoCo bindings, MJCF model manipulation, environment composition, and rendering. Key entry points include suite.load() for standard tasks, composer.Environment for custom environments, and viewer.launch() for interactive visualization. The codebase is well-tested, actively maintained, and demonstrates strong engineering practices with clean abstractions like the variation system, observable framework, and named indexing.

RATING: 9.3/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
tensorflow/probability ★ 4432 1126 APPLICATION

TensorFlow Probability (TFP) is a production-grade library for probabilistic modeling and Bayesian inference. It provides a comprehensive suite of probability distributions, bijectors (normalizing flows), MCMC kernels (HMC, NUTS, SMC, etc.), variational inference, Gaussian processes, structural time series, and Bayesian optimization. The library supports TensorFlow, JAX, and NumPy backends through a rewrite system, enabling seamless switching between hardware accelerators. The architecture is modular: each distribution, bijector, and kernel inherits from well-defined abstract base classes with `parameter_properties` for automatic shape and constraint inference. Key entry points include `tfp.distributions`, `tfp.bijectors`, `tfp.mcmc`, `tfp.vi`, `tfp.sts`, and `tfp.experimental` for cutting-edge methods. The code is heavily tested across all backends, with property-based tests and numerical stability checks. While primarily an application library, it also includes research-grade components in `discussion/` and `spinoffs/` (Inference Gym, AutoBNN, FunMC) that serve as benchmarks and experimental prototypes.

RATING: 9.3/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
FluxML/Flux.jl ★ 4741 625 APPLICATION

Flux.jl is a pure-Julia machine learning library emphasizing flexibility and hackability for deep learning and differentiable programming. It provides lightweight abstractions over Julia's native GPU support and automatic differentiation systems, enabling users to define, train, and evaluate neural networks with minimal boilerplate while remaining fully customizable. The library supports multiple AD backends (Zygote, Enzyme, Mooncake, FiniteDifferences) and hardware accelerators (CUDA, AMDGPU, Metal) via a unified device abstraction layer. The architecture centers around composable layers (Dense, Conv, RNN, etc.), optimization utilities, and training loops. Key entry points include the Flux module (src/Flux.jl) reexporting layers, optimizers, training functions (train!, trainstep!, setup), gradient functions (gradient, withgradient), device functions (gpu, cpu), and loading utilities. Data flows typically involve defining a model as a Chain of layers, computing loss via modular loss functions, initializing an optimizer, and iterating over data with gradient updates. Device transfers are handled via functor-based traversal for seamless CPU/GPU movement. Flux.jl demonstrates strong engineering practices through reusable patterns like the @layer macro for automatic functor integration and pretty-printing, a modular loss function design with shared numerical utilities, and optimizer composition via chaining gradient transformations. While the library has undergone breaking changes to improve consistency (e.g., v0.14.0 dropping Julia <1.9 support, v0.15.0 recurrent cell redesign), it remains actively maintained with frequent updates. The extensive test suite and performance benchmarks validate correctness across backends, though dependency complexity from supporting multiple AD/hardware systems introduces moderate technical drift.

RATING: 9.1/10 MAINT: active DRIFT: medium
â–¸ 3 reusable components found
deepfakes/faceswap ★ 57565 13459 APPLICATION

FaceSwap is a deep learning face-swapping application that provides a complete pipeline for extracting faces from images/video, training autoencoder models, and converting (swapping) faces in new media. It features a modular plugin architecture for detectors, aligners, maskers, identity extractors, training models, and converters, supporting multiple GPU backends (NVIDIA, AMD, Apple Silicon, CPU). The application includes both a command-line interface and a full tkinter-based GUI for managing projects, editing alignments manually, previewing conversions, and analyzing training progress. It also provides auxiliary tools for sorting faces, generating masks, manipulating alignments, and processing video via ffmpeg. The codebase is heavily research-oriented with custom loss functions (LPIPS, LDR-FLIP, GMSD, etc.), custom neural network layers (PixelShuffler, AdaIN), and advanced training features (learning rate finder, mixed precision, distributed training). While primarily an application, it contains significant data/research components in its model architectures and loss implementations.

RATING: 8.9/10 MAINT: active DRIFT: medium
â–¸ 6 reusable components found
ndif-team/nnsight ★ 1103 118 APPLICATION

nnsight is a Python library for interpreting and intervening in neural network models during execution. It provides a tracing API that allows users to access and modify internal activations, compute gradients, and perform interventions like activation patching and steering. The system uses a deferred execution model with thread-based synchronization to run user intervention code alongside model forward passes. Key features include support for Hugging Face models, vLLM integration for high-performance inference, remote execution via NDIF infrastructure, and persistent model editing. The architecture centers around Envoy wrappers for modules, a tracer/interleaver system for coordinating execution, and a batching mechanism for efficient multi-input processing.

RATING: 8.8/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
labmlai/annotated_deep_learning_paper_implementations ★ 67012 6726 DATA_RESEARCH

This repository is a comprehensive collection of annotated PyTorch implementations of deep learning papers, spanning transformers, GANs, reinforcement learning, diffusion models, and more. Each implementation includes side-by-side notes explaining the code and underlying concepts, making it an educational resource for understanding and reproducing paper results. The codebase is organized by paper/model type, with standalone experiment scripts, reusable modules, and configuration-driven training loops. Key strengths include clean abstractions for transformer components, a flexible configs system, and extensive coverage of both foundational and modern architectures. However, the project has not seen commits since early 2024, some dependencies are outdated, and certain experiments require large GPU resources or external data not bundled in the repo. While individual components are well-crafted and reusable, the overall collection is best used as a reference and learning tool rather than a production framework.

RATING: 8.3/10 REPRO: 6.5/10 MAINT: stale DRIFT: medium
â–¸ 8 reusable components found
sktime/pytorch-forecasting ★ 4979 896 APPLICATION

pytorch-forecasting is a production-grade time series forecasting library built on PyTorch Lightning. It provides a comprehensive suite of state-of-the-art deep learning models including Temporal Fusion Transformer, N-BEATS, DeepAR, PatchTST, TiDE, and many more. The library handles the full pipeline: data loading and preprocessing (TimeSeriesDataSet), model definition with automatic parameter inference from data, training via Lightning's Trainer, and prediction with uncertainty quantification. It supports point forecasts, quantiles, and full distributional outputs. The codebase is highly modular with separate layers for attention, embeddings, normalization, and recurrent cells, enabling custom model building. A unique 'package' (v2) API offers a higher-level interface for rapid experimentation, though it's still experimental. The library is well-tested, includes extension templates for contributions, and integrates hyperparameter tuning via Optuna. However, the coexistence of stable v1 and experimental v2 APIs creates fragmentation, and some parts are in active redesign.

RATING: 8.2/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
tum-pbs/PhiFlow ★ 1932 234 APPLICATION

PhiFlow is a Python library for differentiable physics simulation, primarily targeting fluid dynamics, particle systems, and PDE-based optimization. It provides a unified field abstraction (CenteredGrid, StaggeredGrid, PointCloud, Mesh) with automatic resampling and boundary handling, enabling seamless integration with machine learning workflows. The library supports multiple backends (NumPy, PyTorch, TensorFlow, JAX) and features a rich geometry module, physics solvers (advection, diffusion, incompressible flow, SPH, waves), and visualization tools. While its core abstractions are clean and well-tested, the codebase exhibits some technical drift due to deprecated API surface, large monolithic Dash-based web UI, and heavy reliance on the external phiml tensor library. Nonetheless, it is actively maintained with extensive test coverage and a growing research community.

RATING: 8.1/10 MAINT: active DRIFT: medium
â–¸ 4 reusable components found
hailo-ai/hailort ★ 222 83 APPLICATION

HailoRT is a production runtime SDK for Hailo AI accelerators. It provides a C/C++ library (libhailort) for loading compiled HEF models, configuring network groups, managing virtual streams (vstreams), and executing synchronous/asynchronous inference on Hailo-8/10/15 devices over PCIe, USB, or Ethernet. The repository also contains a command-line tool (hailortcli) for scanning, benchmarking, power measurement, logging, and firmware control; Python bindings (pyHailoRT); a GStreamer plugin suite (hailonet, hailosend/hailorecv, hailodevicestats); and an RPC-based client/server layer (HRPC) that allows a remote hailo service to own devices and GenAI sessions. It is a hybrid repo in the sense that it includes tutorial notebooks and algorithm modules (NMS, tracking, quantization) that resemble research code, but the dominant character is a software application/SDK. The architecture is layered: a common OS abstraction layer (files, sockets, mmap, events, threads), a VDMA/driver layer for hardware DMA and streams, a core-op/resource-manager layer for memory planning and context switching, a net-flow pipeline layer for pre/post-processing (NMS, YOLO, softmax, quantization), and high-level APIs for infer models and GenAI (LLM/VLM/speech2text). The code uses an Expected monad instead of exceptions, pimpl idioms for ABI stability, buffer pools for high-throughput transfers, and protobuf serialization for HRPC. The codebase is large and professional, with strong modularization, but also carries noticeable internal debt: many HRT-TODO markers, duplicated pipeline construction, hardcoded sysfs/tmp paths, deprecated API overloads, and partial Windows/QNX platform stubs. Maintenance is active; the repo is versioned (v5.4.0) and recently committed. Technical drift is medium because core dependencies are current and the project is clearly under active commercial development, yet some legacy/deprecated surfaces and platform-specific ifdefs remain. As a library, meaningful inference requires Hailo hardware; the build is CMake-driven with external dependencies managed via CMake scripts.

RATING: 7.6/10 MAINT: active DRIFT: medium
â–¸ 6 reusable components found
nschaetti/EchoTorch ★ 500 116 APPLICATION

EchoTorch is a PyTorch-based research library for reservoir computing and echo state networks (ESNs). It implements multiple ESN variants, including a self-predicting ESN (SPESNCell), conceptor-based pattern manipulation with logic operations (AND, OR, NOT, PHI), a custom TimeTensor time-series wrapper, and supporting datasets such as Lorenz, Roessler, Mackey-Glass, NARMA, and MNIST. The repository is a library rather than an application: there are no web servers, CLIs, or service entry points; the primary interface is the Python package `echotorch` with submodules for neural network cells, datasets, transforms, costs, and utilities.

RATING: 6.9/10 MAINT: active DRIFT: medium
â–¸ 3 reusable components found
lltcggie/waifu2x-caffe ★ 8211 822 APPLICATION

waifu2x-caffe is a Windows desktop application for image upscaling and denoising using pre-trained convolutional neural networks (Caffe). It provides three interfaces: a graphical user interface (GUI) built with Win32 dialogs, a command-line interface (CLI) using a forked TCLAP parser, and a dynamic-link library (DLL) for integration into other software. The core processing pipeline is implemented in the `common/` directory, with classes `Waifu2x` orchestrating model loading and inference, `cNet` wrapping Caffe's `Net` for forward passes, and `stImage` handling image I/O, preprocessing (padding, alpha channel), and tiled processing for large images. The application supports multiple model architectures (VGG-7, upconv_7, upresnet10, cunet) and modes (noise removal, scaling, both), with bundled pre-trained models in prototxt format. It also includes a localization system with JSON language files and a lightweight Win32 dialog framework. While primarily an inference tool, the repository contains appendix Python scripts for converting Chainer models to Caffe format, adding a minor research component. The codebase is heavily Windows-specific, relying on Visual Studio 2015, CUDA 11.0, cuDNN, Boost, OpenCV, and Caffe, which introduces significant technical drift due to the unmaintained status of Caffe and the aging toolchain.

RATING: 6.6/10 MAINT: active DRIFT: high
â–¸ 4 reusable components found
MITDeepLearning/introtodeeplearning ★ 8760 4564 DATA_RESEARCH

This repository contains educational labs for MIT's Introduction to Deep Learning course (6.S191). It consists of Jupyter notebooks covering deep learning fundamentals (Lab1: music generation with RNNs), computer vision (Lab2: MNIST classification and facial detection with VAEs), and LLM fine-tuning (Lab3: style adaptation using LoRA). The repository also includes extra labs for reinforcement learning and uncertainty quantification. While structured as educational material, the labs involve substantive data processing, model training, and evaluation pipelines. The mitdeeplearning package provides reusable utilities for training visualization and data handling. The code assumes execution in Google Colab with GPU access and relies on external APIs (Comet ML, OpenRouter) and datasets hosted on third-party services (Dropbox).

RATING: 6.5/10 REPRO: 5.0/10 MAINT: maintained DRIFT: medium
â–¸ 1 reusable components found
loretoparisi/fasttext.js ★ 200 29 APPLICATION

FastText.js is a Node.js wrapper for Facebook's FastText library, enabling text classification, word vector learning, and sentence vector computation directly from JavaScript. It provides both a native backend (spawning the precompiled fasttext binary as a child process) and a WebAssembly port for browser environments. The library exposes a simple API with methods for training, testing, prediction, nearest neighbor search, and language identification, along with CLI examples and an HTTP server. While the core wrapper is straightforward, the repository also includes reusable bash scripts for dataset preprocessing (splitting, shuffling, normalization) and a Python confusion matrix tool, as well as a custom deque data structure. The project relies on platform-specific fasttext binaries and a Emscripten-generated WASM module, which introduces platform dependency and maintenance overhead. Installation via npm is trivial, but the codebase shows signs of technical drift—outdated Docker base images, Node version, and manually patched WASM glue code—suggesting moderate maintenance activity but not active evolution.

RATING: 6.3/10 MAINT: maintained DRIFT: medium
â–¸ 3 reusable components found
── end of results ──
$ submit: