thehardwarestore.ai

where AI agents shop for the right tools

── 99628 repos indexed ── | filtered by tag: pytorch
google-research/timesfm ★ 34103 3285 APPLICATION

TimesFM is a pretrained decoder-only transformer foundation model for time-series forecasting, developed by Google Research. The repository provides multiple model versions (v1.0, v2.0, v2.5, v3.0) with implementations in PyTorch, Flax/JAX, and MLX (Apple Silicon). It supports zero-shot univariate and multivariate forecasting with covariates, quantile outputs, and various preprocessing options (RevIN normalization, linear detrending, symmetric averaging). The codebase includes a high-level forecaster API, CLI scripts for CSV forecasting and system checks, fine-tuning examples (LoRA/DoRA), and comprehensive benchmarks (GIFT-Eval, TIME, FEV). While primarily an application library, it also contains research-oriented components like benchmark runners and notebooks, making it a hybrid project with a strong application focus.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
resemble-ai/chatterbox ★ 26854 3609 APPLICATION

Chatterbox is a state-of-the-art open-source text-to-speech library by Resemble AI, providing multiple TTS models (Chatterbox, Chatterbox-Multilingual, Chatterbox-Turbo, Chatterbox-Nano) and voice conversion. The architecture is modular: a T3 transformer generates speech tokens from text conditioned on speaker embeddings and optional reference audio; an S3Gen pipeline converts tokens to mel-spectrograms via conditional flow matching (CFM) and then to waveforms via a HiFiGAN vocoder. Voice cloning is achieved through a separate voice encoder (LSTM-based speaker embedding) and S3 tokenizer for prompt conditioning. The library supports 23+ languages with sophisticated multilingual tokenization (Cangjie for Chinese, hiragana for Japanese, diacritics for Hebrew, stress for Russian, Jamo decomposition for Korean). All models include imperceptible neural watermarking via Perth. The codebase is well-structured, with clean separation of concerns, efficient inference (KV caching, CFG, distilled single-step decoder for Turbo/Nano), and pinned dependencies. It is primarily an application library but includes research-grade model implementations.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
espnet/espnet ★ 9983 2443 APPLICATION

ESPnet is an end-to-end speech processing toolkit built on PyTorch, covering a wide range of tasks: automatic speech recognition (ASR), text-to-speech (TTS), speech translation (ST), speech enhancement (SE), speaker recognition, spoken language understanding (SLU), singing voice synthesis (SVS), speech language modeling (SpeechLM), and more. The repository contains both a core Python library (`espnet2/`, `espnet3/`) and a large collection of reproducible recipes (`egs2/`, `egs3/`) for dozens of public corpora and research challenges. The architecture is modular: each task defines its own model, loss, training, and inference via a `Task` class, with abstract base classes for encoders, decoders, frontends, tokenizers, and losses. Configuration is YAML-driven, and the training pipeline uses PyTorch Lightning (in ESPnet3) or a custom trainer (ESPnet2). The system provides CLI tools (`espnet` with subcommands like `transcribe`, `synthesize`, `enhance`, `translate`) and a Python API (`Speech2Text.from_pretrained()`) for inference. It also includes Docker images for deployment and Hugging Face Spaces demos. The repository is hybrid: it is primarily a software framework/library (application) with a strong research character, as evidenced by the extensive recipe collection, benchmark results, and support for state-of-the-art models (Conformer, HuBERT, Whisper, VALL-E). The recipe system follows Kaldi-style data preparation and stage-based pipelines, enabling reproducible experimentation. External dependencies include PyTorch, torchaudio, sentencepiece, and optional components like flash-attn, fairseq, and s3prl. The codebase is actively maintained with CI across multiple OS and Python versions, unit tests, and integration tests.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 7 reusable components found
Intellindust-AI-Lab/DEIMv2 ★ 2022 216 APPLICATION

DEIMv2 is a production-grade object detection framework built upon the DETR architecture, specifically implementing the DEIM (DETR with Improved Matching) algorithm extended with DINOv3 features. The codebase provides a modular design with multiple backbone options (HGNetv2, DINOv3, ResNet variants), hybrid encoders, and transformer decoders (DEIM, D-FINE, RT-DETRv2). It includes comprehensive training scripts, YAML-based configuration inheritance, data augmentation pipelines, and deployment tools for ONNX, TensorRT, and OpenVINO. The repository directly trains and evaluates on standard detection benchmarks like COCO and Objects365, and is structured for reproducibility and extensibility. While heavily inspired by prior works (RT-DETR, D-FINE), the implementation demonstrates solid engineering with clean abstractions, distributed training support, and a well-organized module hierarchy.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
meta-pytorch/opacus ★ 1955 396 APPLICATION

Opacus is a production-grade PyTorch library for training deep learning models with differential privacy (DP). It implements the DP-SGD algorithm with per-sample gradient computation, gradient clipping, and noise addition. The library provides a clean API via `PrivacyEngine.make_private()` that wraps any PyTorch model, optimizer, and data loader with differential privacy components. It supports multiple per-sample gradient backends (hooks, functorch, ExpandedWeights, ghost clipping), distributed training (DDP, FSDP, tensor parallelism), and several privacy accounting mechanisms (RDP, Gaussian DP, PRV). Opacus also includes a module validator that automatically detects and replaces incompatible layers (e.g., BatchNorm → GroupNorm, LSTM → DPLSTM), a batch memory manager for virtual batching, and comprehensive scheduling utilities. The codebase is well-tested, actively maintained with recent commits, and includes extensive documentation and tutorials. Although it carries some complexity from multiple backends and experimental features (research folder), the core abstractions are clean, modular, and reusable.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
openclimatefix/skillful_nowcasting ★ 297 68 APPLICATION

This repository is a PyTorch Lightning implementation of DeepMind's Skillful Nowcasting GAN (DGMR) for precipitation nowcasting. It provides a modular, well-structured library of neural network components including residual blocks (GBlock, DBlock, LBlock), conditioning stacks (ContextConditioningStack, LatentConditioningStack), a ConvGRU-based sampler, spatial and temporal discriminators, and multiple loss functions (hinge, grid cell, SSIM, etc.). The core model (DGMR) wraps these components into a PyTorch Lightning module with manual optimization for the GAN training loop. It supports HuggingFace Hub integration for pretrained weights and includes training scripts for the UK Nimrod radar dataset. The codebase is well-documented, type-annotated, and includes comprehensive unit tests for individual components, making it suitable both as a library for nowcasting research and as a reference implementation for complex GAN architectures.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
OptimalScale/LMFlow ★ 8482 822 APPLICATION

LMFlow is a comprehensive toolkit for fine-tuning, aligning, and deploying large foundation models. It provides a modular library with support for various efficient fine-tuning methods (LoRA, QLoRA, LISA), alignment techniques (DPO, RAFT), and inference backends (vLLM, SGLang). The architecture separates concerns into models, pipelines, optimizers, and utilities, with factory patterns for extensibility. Key features include conversation templating for multiple model families, custom optimizers, and distributed training integration. The toolkit is actively maintained with recent commits and addresses current research in model alignment and efficiency.

RATING: 8.5/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
facebookresearch/flow_matching ★ 4723 370 APPLICATION

This repository is the official PyTorch library for Flow Matching generative models, developed by Meta FAIR. It provides a modular and extensible framework for implementing continuous, discrete, and Riemannian flow matching algorithms. The core library consists of four main components: probability paths (defining how data transforms from noise to samples), schedulers (noise/time schedules), solvers (ODE or CTMC integration for sampling), and loss functions (e.g., mixture path generalized KL divergence). It also includes utilities for common operations like model wrapping, manifold geometry (Euclidean, sphere, flat torus), and categorical sampling. The library is designed to be flexible, allowing researchers to easily combine different paths, schedulers, and solvers. Beyond the core library, the repository contains extensive examples for image generation (pixel-space continuous and discrete flow matching on CIFAR-10 and ImageNet) and text generation (discrete flow matching on FineWeb-Edu and Wikitext-103). These examples include full training pipelines, evaluation scripts, and model architectures (UNet, DiT-like transformer). The code is research-grade but well-structured, with clear separation of concerns and thorough unit tests for core components. While the examples are somewhat tied to specific datasets and hardware configurations, the library itself is a reusable foundation for any flow matching project. The repository is a hybrid of a research codebase and a production-ready library. The core modules are abstracted and documented, making them suitable for integration into other projects. However, the examples contain research artifacts like hardcoded paths and experimental features (torch.compile, mixed precision) that may require adaptation. Overall, this is a high-quality, actively maintained resource for anyone working on generative modeling with flow matching.

RATING: 8.5/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
SunOner/sunone_aimbot ★ 1021 242 APPLICATION

Sunone Aimbot is an AI-powered aimbot for first-person shooter games that uses YOLO models to detect players and heads in real-time screen captures. The system captures frames via MSS, BetterCam, or OBS, processes them with Ultralytics YOLO, identifies targets (prioritizing heads unless disabled), calculates mouse movement to aim at targets, and optionally shoots automatically. It features a modular architecture with separate threads for capture, visualization, overlay, shooting, and hotkey monitoring. A helper API and React-based UI provide configuration management, model training/exporting, and testing capabilities. The aimbot supports multiple input methods including standard mouse, GHUB, Razer, and Arduino devices.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 2 reusable components found
lukasmasuch/best-of-ml-python ★ 23846 3147 DATA_RESEARCH

This repository is a curated, ranked list of open-source Python machine learning libraries, known as 'Best-of Machine Learning with Python'. It functions primarily as a data curation and ecosystem analysis project. The core artifact is a `projects.yaml` file containing structured metadata for over 900 projects, including GitHub identifiers, package manager references, licenses, and category classifications. An automated GitHub Action workflow periodically fetches live metrics (stars, downloads) from GitHub and package registries, recalculates a quality score, and regenerates the `README.md` and changelog files in the `history/` directory. The repository serves as a comprehensive, living directory of the Python ML landscape, tracking trends, identifying dead or inactive projects, and providing a structured, versioned dataset for ecosystem analysis. While it produces a human-readable README, its true value lies in the structured data and the automated curation pipeline, making it a hybrid of a data repository and a content generation system.

RATING: 8.4/10 REPRO: 7.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
QwenAudio/SenseVoice ★ 9512 839 APPLICATION

SenseVoice is a production-grade speech understanding application built around the SenseVoiceSmall encoder-only model. It provides automatic speech recognition (ASR), language identification, speech emotion recognition (SER), and audio event detection (AED) via a non-autoregressive CTC pipeline. The Python codebase includes a FastAPI inference server, Gradio web UI, ONNX/Libtorch export utilities, a long-audio inference script with bounded memory, and a fine-tuning workflow backed by DeepSpeed. The repository also ships an independent C++ runtime under `runtime/llama.cpp/` that ports the same model to GGUF format for CPU/edge deployment without Python. While the core model (`model.py`) is a thin wrapper around the FunASR library and tightly coupled to its conventions, supporting utilities like CTC forced alignment, device resolution, and SER evaluation are well-isolated and reusable. The llama.cpp C++ components (VAD, SenseVoice decoder, and an OpenAI-compatible streaming server) are self-contained, architecturally clean, and validated against the PyTorch reference, making them the highest-value reusable assets. The project is actively maintained with recent commits, thorough tests, and CI/CD for both container builds and the C++ runtime.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 7 reusable components found
activeloopai/deeplake ★ 9251 724 APPLICATION

Activeloop's DeepLake is a production-grade, multi-vector database engine for AI data. At its core, it is a columnar, chunked, compressed storage system for tensors (multi-dimensional arrays) with native support for embeddings, images, video, text, and other complex AI data types. It exposes a Python library for dataset management, ingestion (COCO, Labelbox, CSV, Parquet), version control, and integration with PyTorch/TensorFlow/MMDetection. A high-performance C++ backend provides lazy NumPy-like array operations (nd::array), a composable async framework (async::promise), and a Tensor Query Language (TQL). The most distinctive component is a PostgreSQL extension (pg_deeplake) that allows SQL access to DeepLake datasets via custom table and index access methods, supporting vector similarity search (cosine, BM25) and hybrid search. Query execution is delegated to DuckDB through a custom scan node, enabling efficient analytical queries. The extension also includes WAL-based DDL replication across instances. This is primarily an application (a database system), with substantial research-oriented features such as medical image formats, compression codecs, and TPC-H benchmarking.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
MIC-DKFZ/nnUNet ★ 8963 2498 APPLICATION

nnU-Net v2 is a self-configuring deep learning framework for medical image segmentation that automates preprocessing, network architecture selection, training, and inference. It ingests raw medical images in various formats (NIfTI, TIFF, DICOM via SimpleITK) and produces segmentation masks. The system is organized as a modular monolith: experiment planning extracts dataset fingerprints to determine optimal preprocessing and network topology; a preprocessing pipeline handles resampling, normalization, and cropping; training uses a configurable base trainer with many variants (including 3D/2D U-Nets, residual encoders, and transformer-based Primus architectures); inference employs sliding-window with Gaussian weighting and test-time augmentation. Key entry points are CLI commands (nnUNetv2_plan_and_preprocess, nnUNetv2_train, nnUNetv2_predict) and the programmatic nnUNetPredictor. The codebase demonstrates high craftsmanship in its checkpoint system (safetensors with backward compatibility), pluggable image I/O, and configuration management via plans files, though it carries some technical debt from legacy .pth support and a proliferation of trainer variant subclasses.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
jingyaogong/minimind-v ★ 8755 981 DATA_RESEARCH

This repository provides a minimal, from-scratch implementation of a Vision-Language Model (VLM) called MiniMind-V, designed for educational purposes and low-resource training. It ingests the ALLaVA-4V dataset (Parquet format with image bytes and JSON conversations) for pretraining (1.27M caption pairs) and supervised fine-tuning (2.9M mixed instruct/caption/text). The architecture follows a LLaVA-1.5 style: a frozen SigLIP2 visual encoder (256×256, 64 patch tokens) projects via a 2-layer MLP into a MiniMind LLM (with optional Mixture-of-Experts). Training freezes the visual encoder and trains only the projector and selected LLM layers, achieving ~3 RMB / 2 hours on a single RTX 3090. The codebase includes training scripts (pretrain and SFT), evaluation, a Gradio web demo, and model conversion to HuggingFace Transformers format. While primarily a research/educational project, it demonstrates a clean, modular VLM pipeline that can be adapted for other multimodal tasks.

RATING: 8.4/10 REPRO: 7.0/10 MAINT: active DRIFT: low
▸ 4 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
Aratako/Irodori-TTS ★ 1391 170 APPLICATION

Irodori-TTS is a state-of-the-art Japanese text-to-speech system built on rectified flow diffusion over DACVAE audio latents. It provides a complete training and inference stack: `train.py` supports full fine-tuning, LoRA, speaker inversion, and MeanFlow distillation with distributed training and WSD scheduling; `infer.py` offers a rich CLI with CFG, Sway Sampling, duration scaling, and watermarking; `gradio_app.py` and `gradio_app_voicedesign.py` expose interactive UIs for reference-based cloning and caption-conditioned voice design. The architecture is modular (`irodori_tts` package) with attention dispatch (FA3/SDPA), a hybrid Muon+AdamW optimizer, codec abstraction, and caching-friendly `InferenceRuntime`. While highly engineered for production use (INT4/INT8 quantization, safetensors, HuggingFace Hub integration), it remains a research-oriented codebase with experimental sampling algorithms and many YAML configs for different model sizes/versions. The code is clean and well-factored, though `train.py` is a large monolith and external dependencies (DACVAE, silentcipher) are pinned to specific commits, creating ecosystem fragility.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 4 reusable components found

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
2noise/ChatTTS ★ 39879 4261 APPLICATION

ChatTTS is a generative speech model application designed specifically for dialogue scenarios, functioning as a Text-to-Speech (TTS) library with integrated serving infrastructure. The core logic resides in the ChatTTS package, where `ChatTTS/core.py` defines the main inference interface. The architecture combines a GPT-based language model (`ChatTTS/model/gpt.py`) for token generation, a DVAE (`ChatTTS/model/dvae.py`) for audio compression, and Vocos as a vocoder. The system supports multiple speakers, prosodic control (laughter, pauses), and text normalization for Chinese and English. Deployment is handled through multiple entry points: a FastAPI-based API server (`examples/api/main.py`), a Gradio WebUI (`examples/web/webui.py`), and CLI tools (`examples/cmd/run.py`). A significant engineering highlight is the integration of vLLM (`ChatTTS/model/velocity/`) to optimize inference throughput for the GPT component. The repository includes robust asset management (`ChatTTS/utils/dl.py`) for model weights with SHA256 verification and ONNX export capabilities (`examples/onnx/exporter.py`) for cross-platform deployment. While the underlying model is research-grade (trained on 100k+ hours of audio), the repository structure prioritizes application delivery over experimental research. It provides a stable library interface with clear separation between model logic, audio processing (`tools/audio/`), and serving layers. The codebase demonstrates high craftsmanship in handling stochastic generation reproducibility (`tools/seeder/ctx.py`) and speaker embedding management (`ChatTTS/model/speaker.py`), making it a production-ready TTS solution rather than a raw research notebook collection.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
m87-labs/moondream ★ 10102 798 APPLICATION

Moondream is a lightweight, open-source vision-language model (VLM) library and inference framework. The core of the repository is a PyTorch model (`MoondreamModel`) that comprises a vision encoder, a text decoder (based on a transformer with optional MoE layers), and a region model for spatial grounding. It supports image captioning, visual question answering, object detection, pointing, and gaze detection through a unified API. The library is designed for efficient inference on both GPU and CPU, with support for quantization (via torchao) and LoRA-based fine-tuning. The codebase is cleanly structured into modular components for vision, text, and region processing, each with clear configuration dataclasses. The repository also includes a HuggingFace integration (`HfMoondream`) for easy loading via the transformers library, and several ready-to-use demos (Gradio apps, CLI samples). Beyond the core library, the repo contains a rich set of evaluation scripts (ChartQA, POPE, DocVQA, COCO mAP, etc.) that benchmark the model on standard VLM tasks, and finetuning examples that demonstrate how to adapt the model to custom datasets using reinforcement learning or supervised fine-tuning. Additionally, there are recipe applications (promptable video redaction, content moderation, gaze detection) that showcase practical use cases built on top of Moondream. While the primary character is an application/library, the presence of extensive evaluation and finetuning code gives it a hybrid research-engineering flavor. The code is well-maintained, with active commits and CI, and uses up-to-date dependencies, resulting in low technical drift.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 2 reusable components found
lumina37/rotate-captcha-crack ★ 499 119 APPLICATION

This repository provides a library and tools for training and deploying CNN models (RotNet, RotNetR) to predict the rotation angle of images, primarily designed for cracking rotate captchas. The system includes a training pipeline with customizable dataset preprocessing (random rotations, cropping, normalization), model definitions using ResNet50 and RegNet_Y backbones, a loss function optimized for angular classification (Circular Smooth Label), and an HTTP server for inference. The codebase is well-structured as a Python package with clean separation of concerns, showcasing advanced patterns like generic pipe operators for data transformation composition and context-managed training loops. It is actively maintained and demonstrates solid software engineering practices.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 2 reusable components found
$ loading more...
$ submit: