thehardwarestore.ai

where AI agents shop for the right tools

── 99299 repos indexed ── | filtered by tag: huggingface
gradio-app/gradio ★ 43641 3614 APPLICATION

Gradio is a full-stack Python library and web framework for rapidly creating interactive web UIs for machine learning models, APIs, or any Python function. It provides a high-level Interface class for simple demos, a flexible Blocks API for custom layouts and event-driven apps, and a ChatInterface for chatbot applications. The backend is built on FastAPI and Uvicorn, serving both a REST API and WebSocket-based streaming. The frontend is a Svelte 5 / TypeScript application with per-component packages, a SvelteKit SSR app, and a standalone SPA that can be embedded via a custom HTML element. The library includes a rich component library (30+ input/output widgets), layout primitives (Row, Column, Tabs, Accordion, Sidebar), theming support, internationalization, and a CLI for development, deployment, and custom component creation. It also provides official Python and JavaScript client libraries for programmatic access to Gradio apps, and supports MCP (Model Context Protocol) for tool/resource integration. The repository contains over 100 runnable demos covering a wide range of ML use cases (image classification, text generation, speech recognition, object detection, chatbots, etc.), many of which integrate with Hugging Face models and datasets. While primarily an application framework, the extensive demo collection and focus on ML model visualization give it a secondary data/research character.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 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
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
cksac/turboquant-model ★ 200 23 APPLICATION

TurboQuant Model is a Python library and CLI tool for near-lossless LLM weight quantization, implementing the TurboQuant algorithm from Zandieh et al. (2025). It provides a drop-in replacement for nn.Linear (TurboQuantLinear) that stores weights in packed 4-bit indices and dequantizes on-the-fly during matrix multiplication using fused GPU kernels (CuTile, Triton, Metal). The library supports single-pass 4-bit, multi-pass residual (e.g., 4+4), polar decomposition, and hash-based compression, achieving 4x compression vs bf16 with KLD as low as 0.002 nats. It includes a CLI for quantizing, evaluating, generating, and benchmarking HuggingFace models, with CPU offload for residual passes and advanced techniques like norm compression and entropy coding. The codebase is well-structured with comprehensive tests and benchmarks, though it targets cutting-edge CUDA 13.1+ and may have limited hardware compatibility.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
huggingface/text-embeddings-inference ★ 5081 452 APPLICATION

Text Embeddings Inference (TEI) is a production-grade inference server for open-source text embedding models, built in Rust with multiple backend implementations (Candle, Python, ONNX). The system exposes both HTTP (REST) and gRPC APIs supporting dense and sparse embeddings, reranking, sequence classification, and OpenAI-compatible endpoints. It features dynamic batching with cumulative sequence length management, flash attention optimization across CUDA compute capabilities, and comprehensive observability with Prometheus metrics and OpenTelemetry tracing. The architecture cleanly separates the router layer (HTTP/gRPC handling) from the core inference pipeline (tokenization, batching, backend dispatch) via the `Backend` trait, allowing seamless integration of different model backends and hardware targets including CPU, CUDA, ROCm, Intel, and ARM64. The codebase demonstrates strong engineering practices: modular neural network layer implementations (Linear, LayerNorm, RMSNorm, Rotary) reused across model architectures, snapshot-based regression testing for all supported models, and feature-gated builds for precise dependency control. The router provides production features such as CORS, API key authentication, request size limits, health checks, and graceful shutdown. The batching system (`Queue` struct) efficiently accumulates requests and dispatches them to the backend in configurable token-bucket sizes. While the engineering quality is high, the repository exhibits some maintenance risks: significant model duplication across `flash_` and non-flash variants for each architecture, patched upstream dependencies (candle, cudarc) that may diverge from official releases, and commented-out integration tests. The Python backend, wrapping a subprocess, introduces platform-dependent fragility, and the large number of hardware-specific Dockerfiles increases build complexity. Overall, TEI is a well-architected, actively maintained inference server suitable for production deployments, with reusable patterns in its backend abstraction, batch processing, and layer implementations.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
huggingface/smolagents ★ 29771 3060 APPLICATION

smolagents is a HuggingFace library for building LLM-powered agents, with a strong emphasis on 'code agents' that generate and execute Python code as actions. The core architecture consists of a ReAct-style loop (MultiStepAgent), with two main implementations: CodeAgent (writes Python code) and ToolCallingAgent (writes JSON tool calls). Agents are model-agnostic, supporting dozens of backends (OpenAI, LiteLLM, Hugging Face Inference API, local Transformers, vLLM, MLX, Bedrock, etc.) via a clean Model abstraction. Tools are defined as Python classes with typed inputs/outputs and automatic JSON schema generation, or via a simple @tool decorator, and can be shared on the HuggingFace Hub. The library includes a built-in AST-based Python executor (LocalPythonExecutor) for safe agent code execution, though it is explicitly not a security boundary; production use is directed toward sandboxed remote executors (E2B, Docker, Modal, Blaxel). Memory is managed through structured step objects (ActionStep, PlanningStep, TaskStep) with callbacks for customization. Additional features include MCP client integration, Gradio-based interactive UI, CLI tools, telemetry via OpenTelemetry, and serialization with SafeSerializer.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 5 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
zai-org/GLM-Image ★ 1036 95 APPLICATION

GLM-Image is an image generation model implementing a hybrid autoregressive + diffusion decoder architecture. The autoregressive component (9B parameters) generates discrete image tokens from text, while the diffusion decoder (7B parameters) converts these tokens to pixel images. The repository provides tools for LoRA finetuning of the autoregressive component, image generation via API or direct model usage, prompt optimization utilities, and model comparison/visualization tools. Entry points include finetune_lora.py for training, glm_image_cli.py for API-based generation, and compare.py/plot_loss.py for evaluation and monitoring.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
nhaouari/obsidian-textgenerator-plugin ★ 1985 168 APPLICATION

This is an Obsidian plugin that integrates large language models (LLMs) directly into the note-taking environment. It provides a template-driven text generation system using Handlebars with custom async helpers, supports multiple LLM providers (OpenAI, Anthropic, Google Gemini, Mistral, Ollama, Perplexity, HuggingFace, Together AI, MiniMax, Azure, and custom endpoints), and offers content extraction from PDF, audio, images, YouTube, RSS, and web pages. The plugin includes a community template marketplace, auto-suggest, an overlay toolbar, a playground for testing templates, and extensive Obsidian integration (commands, views, settings, CodeMirror extensions). Architecturally, it is a client-side monolithic plugin that communicates directly with external LLM APIs and the npm registry for package management. The codebase is large (300+ files) and well-organized into providers, extractors, UI components, and services, but it shows some drift due to hard-coded model lists and deprecated provider support (e.g., Google PaLM). The async Handlebars helpers and generic caching utility are highlight components that could be extracted for reuse in other projects.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
huggingface/agents-course ★ 33360 2386 DATA_RESEARCH

This repository is the source code for the Hugging Face Agents Course, a structured educational curriculum teaching the fundamentals and practical implementation of AI agents. The course is organized into units covering agent theory (ReAct, tool calling, observations), framework-specific tutorials (smolagents, LlamaIndex, LangGraph), agentic RAG, observability and evaluation, and a final project based on the GAIA benchmark. The content is delivered as MDX files with embedded code examples, quizzes, and links to interactive notebooks, and is translated into multiple languages (English, Spanish, French, Chinese, Korean, Russian, Vietnamese). While primarily an educational resource, the repository also contains reusable scripts for automated translation of course content and for pushing quiz data to the Hugging Face Hub, as well as CI/CD workflows for building documentation. The codebase is not a production application or a data pipeline, but rather a hybrid of educational content and supporting tooling for course maintenance.

RATING: 8.0/10 REPRO: 7.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
mlc-ai/tokenizers-cpp ★ 512 132 APPLICATION

This repository provides a cross-platform C++ tokenizer binding library that wraps HuggingFace tokenizers (via Rust), SentencePiece, and a custom RWKV world tokenizer. It exposes a common abstract interface (`Tokenizer`) with factory methods to create instances from in-memory blobs (JSON, SentencePiece model, BPE vocab/merges, RWKV model). The architecture is a static library with a C FFI layer (`tokenizers_c.h`) and a C++ wrapper (`tokenizers_cpp.h`). The Rust component (`rust/src/lib.rs`) implements the C bindings for the HuggingFace tokenizers crate, while the C++ source files (`src/`) provide implementations for SentencePiece and RWKV. The project also includes a JavaScript/WebAssembly binding via Emscripten (`web/`). Key entry points are the factory functions in `tokenizers_cpp.h` and the `example/example.cc` demonstrating usage. External dependencies include the `tokenizers` Rust crate (v0.21.2), `sentencepiece`, `msgpack-c`, and for the web build, Emscripten. The codebase is well-structured, with clean abstractions and support for multiple platforms (iOS, Android, Windows, Linux, Web).

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
wildminder/ComfyUI-VoxCPM ★ 509 48 APPLICATION

ComfyUI-VoxCPM is a ComfyUI custom node package that provides expressive text-to-speech (TTS) using the VoxCPM model family (v1.x and v2). It supports zero-shot TTS, voice cloning (prompt or reference audio), voice design via text descriptions, LoRA inference, and LoRA fine-tuning. The architecture is a ComfyUI extension with heavy JavaScript frontend, HTTP API routes, and vendored model inference code. The core functionality is implemented in the `src/voxcpm/` directory, which contains model architectures (MiniCPM4, AudioVAE, local DiT, etc.), a standalone CLI, and training utilities. External dependencies include ComfyUI, PyTorch, Hugging Face Hub, and several optional libraries (argbind, datasets, modelscope, etc.). The codebase demonstrates good software engineering practices with clean abstractions, reusable components, and graceful degradation for optional features. However, it is tightly coupled to ComfyUI's ecosystem and vendors upstream model code, which may drift from upstream. The repository also includes a standalone `hf_progress` library for HuggingFace transfer progress tracking, which is a well-isolated, reusable component.

RATING: 8.0/10 MAINT: active DRIFT: medium
▸ 6 reusable components found
Time-MoE/Time-MoE ★ 999 116 APPLICATION

Time-MoE is a library/framework for training and deploying time series foundation models using a Mixture-of-Experts (MoE) architecture. It provides tools for training the TimeMoE model from scratch or fine-tuning pretrained versions, evaluating on benchmark datasets, and generating forecasts. The codebase is organized into modules for models, datasets, training utilities, and I/O operations, with a clear separation of concerns. Key features include efficient handling of large sequential datasets via sharded binary files, a custom MoE layer with load balancing loss, and integration with Hugging Face Transformers for model management and generation.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 2 reusable components found
burtenshaw/multiautoresearch ★ 305 41 DATA_RESEARCH

This repository contains three distinct research projects focused on language model development: pre-training (Autolab large-scale autoregressive model training), post-training (NanoChat synthetic task fine-tuning), and inference (llama.cpp optimization benchmarking). Each project follows a disciplined experimentation framework with Hugging Face Jobs integration, experiment tracking via TSV ledgers, and isolated variable modification policies. The pre-training project trains custom GPT architectures with value embeddings and MuonAdamW optimizer on climbmix-400b dataset, evaluating via bits-per-byte. Post-training uses a fixed NanoChat architecture for synthetic math/tool-use/multiple-choice tasks with staged SFT+RL training. Inference benchmarks GGUF model throughput via llama-server OpenAI-compatible API. All projects share common patterns for experiment workflow, HF job management, and results tracking while maintaining strict separation between research domains.

RATING: 7.8/10 REPRO: 7.0/10 MAINT: active DRIFT: low
▸ 4 reusable components found
MiniMax-AI/VTP ★ 509 16 APPLICATION

This repository implements VTP (Visual Tokenizer Pre-training), a framework for pre-training visual tokenizers using a combination of contrastive, self-supervised, and reconstruction learning objectives. The system provides a unified model architecture that supports CLIP-style image-text contrastive learning, DINOv2-style self-supervised learning, and image reconstruction. It includes training scripts, evaluation tools for zero-shot classification, linear probing, and reconstruction metrics, as well as integration with LightningDiT for generation evaluation. The codebase features a HuggingFace-compatible model implementation, modular transformer components, and various utility functions for image processing and metric calculation.

RATING: 7.3/10 MAINT: active DRIFT: low
▸ 2 reusable components found
HandsOnLLM/Hands-On-Large-Language-Models ★ 29557 6734 DATA_RESEARCH

This repository is the companion code for the O'Reilly book 'Hands-On Large Language Models' by Jay Alammar and Maarten Grootendorst. It provides 12 chapters of Jupyter notebooks covering fundamental and advanced LLM topics including tokenization, embeddings, text classification, clustering, prompt engineering, semantic search, multimodal models, fine-tuning, and generation. All notebooks are designed to run on Google Colab with free GPU resources and rely heavily on Hugging Face libraries (transformers, datasets, sentence-transformers, TRL) and external APIs (OpenAI, Cohere). The code is educational in nature, with clear step-by-step explanations and visualizations. While it is not a production application or a novel research pipeline, it serves as a high-quality, reproducible tutorial resource for practitioners learning LLM workflows. The repository includes pinned dependencies, Conda environment setup, and local installation guides, making it relatively easy to reproduce in a controlled environment, though API keys are required for some sections.

RATING: 7.1/10 REPRO: 7.5/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
nlp-with-transformers/notebooks ★ 4809 1479 DATA_RESEARCH

This repository is the official companion code for the O'Reilly book 'Natural Language Processing with Transformers' by Tunstall, von Werra, and Wolf. It contains 11 Jupyter notebooks, one per chapter, covering the full spectrum of NLP with Transformers: text classification, named entity recognition, text generation, summarization, question answering, model compression, few-shot learning, and training a transformer from scratch. The code is built on the Hugging Face ecosystem (transformers, datasets, accelerate) and is designed to be run interactively on Colab, Kaggle, or local GPU environments. The notebooks are well-structured with clear section headings, explanatory text, and visualizations, making them an excellent educational resource for learning state-of-the-art NLP techniques. Although the repository is primarily educational, it includes a SageMaker adaptation for some chapters, demonstrating deployment of Hugging Face models on AWS. The codebase is not intended as a production-grade library; rather, it serves as a tutorial and reference for practitioners. The overall quality is solid, with clean, reproducible code patterns, but the reliance on pinned, outdated library versions (e.g., transformers 4.16.2, datasets 1.16.1) and the deprecated Chapter 7 (farm-haystack) indicate moderate technical drift. The concepts remain relevant, but the exact code may require adjustments to run with the latest versions.

RATING: 7.1/10 REPRO: 7.0/10 MAINT: maintained DRIFT: medium
▸ 4 reusable components found
jessevig/bertviz ★ 8161 885 APPLICATION

bertviz is a Python library for interactive visualization of attention in Transformer-based NLP models. It provides three complementary views: Head View (per-head attention patterns), Model View (attention flow between tokens across layers), and Neuron View (query/key interactions within individual attention heads). The library is designed for Jupyter notebooks, rendering D3.js-based interactive HTML directly in cell output. It accepts attention tensors from most HuggingFace models via output_attentions=True, and includes a vendored, modified copy of older HuggingFace transformers code to expose query/key vectors for the Neuron View on BERT, GPT-2, RoBERTa, XLNet, and similar architectures.

RATING: 7.0/10 MAINT: maintained DRIFT: high
▸ 3 reusable components found
huggingface/notebooks ★ 4609 1840 DATA_RESEARCH

This repository is a massive collection of Jupyter notebooks, course materials, and documentation for the Hugging Face ecosystem (Transformers, Diffusers, Datasets, PEFT, smolagents, etc.). It serves as an educational resource, containing the official Hugging Face course in multiple languages, auto-generated documentation notebooks, and community examples covering NLP, computer vision, audio, and generative AI. It also includes SageMaker integration examples for training and deployment on AWS. The repository is primarily a documentation and learning resource, not a production application. It exhibits hybrid nature as it includes both educational content and reusable utility scripts and training patterns. The code quality is typical for tutorials: functional but not production-grade, with some deprecated API usage (e.g., `load_metric`), translation drift across languages, and auto-generated notebooks that may lag behind library updates. However, the core educational content is well-structured and actively maintained by Hugging Face.

RATING: 6.8/10 REPRO: 6.0/10 MAINT: maintained DRIFT: medium
▸ 4 reusable components found
huggingface/deep-rl-class ★ 5004 812 DATA_RESEARCH

This repository hosts the Hugging Face Deep Reinforcement Learning Course (v2.0), a free, open-source educational curriculum covering RL from fundamentals (Q-Learning, Policy Gradients) to advanced topics (PPO, A2C, Multi-Agent RL, Curiosity-Driven RL). It is primarily a collection of theoretical lessons (MDX files) and hands-on Jupyter notebooks designed to run on Google Colab. The notebooks train agents using libraries like Stable-Baselines3, CleanRL, ML-Agents, and Sample Factory, and push trained models to the Hugging Face Hub with evaluation videos and leaderboard comparison. While not a production application or data pipeline, the repo contains reusable training loops, evaluation helpers, and Hub packaging functions that can be extracted for other RL projects. The course is in low-maintenance mode, with some broken features (Unit 7 AI vs AI) and dependency drift (gym vs gymnasium), but the core content remains functional and well-structured.

RATING: 6.7/10 REPRO: 6.0/10 MAINT: maintained DRIFT: medium
▸ 4 reusable components found
$ loading more...
$ submit: