Libraries
The Hub has support for dozens of libraries in the Open Source ecosystem. Thanks to the huggingface_hub
Python library, itβs easy to enable sharing your models on the Hub. The Hub supports many libraries, and weβre working on expanding this support. Weβre happy to welcome to the Hub a set of Open Source libraries that are pushing Machine Learning forward.
The table below summarizes the supported libraries and their level of integration. Find all our supported libraries in the model-libraries.ts file.
Library | Description | Inference API | Widgets | Download from Hub | Push to Hub |
---|---|---|---|---|---|
Adapters | A unified Transformers add-on for parameter-efficient and modular fine-tuning. | β | β | β | β |
AllenNLP | An open-source NLP research library, built on PyTorch. | β | β | β | β |
Asteroid | PyTorch-based audio source separation toolkit | β | β | β | β |
BERTopic | BERTopic is a topic modeling library for text and images | β | β | β | β |
Diffusers | A modular toolbox for inference and training of diffusion models | β | β | β | β |
docTR | Models and datasets for OCR-related tasks in PyTorch & TensorFlow | β | β | β | β |
ESPnet | End-to-end speech processing toolkit (e.g. TTS) | β | β | β | β |
fastai | Library to train fast and accurate models with state-of-the-art outputs. | β | β | β | β |
Keras | Open-source multi-backend deep learning framework, with support for JAX, TensorFlow, and PyTorch. | β | β | β | β |
KerasNLP | Natural language processing library built on top of Keras that works natively with TensorFlow, JAX, or PyTorch. | β | β | β | β |
TF-Keras (legacy) | Legacy library that uses a consistent and simple API to build models leveraging TensorFlow and its ecosystem. | β | β | β | β |
Flair | Very simple framework for state-of-the-art NLP. | β | β | β | β |
MBRL-Lib | PyTorch implementations of MBRL Algorithms. | β | β | β | β |
MidiTok | Tokenizers for symbolic music / MIDI files. | β | β | β | β |
ML-Agents | Enables games and simulations made with Unity to serve as environments for training intelligent agents. | β | β | β | β |
MLX | Model training and serving framework on Apple silicon made by Apple. | β | β | β | β |
NeMo | Conversational AI toolkit built for researchers | β | β | β | β |
OpenCLIP | Library for open-source implementation of OpenAIβs CLIP | β | β | β | β |
PaddleNLP | Easy-to-use and powerful NLP library built on PaddlePaddle | β | β | β | β |
PEFT | Cutting-edge Parameter Efficient Fine-tuning Library | β | β | β | β |
Pyannote | Neural building blocks for speaker diarization. | β | β | β | β |
PyCTCDecode | Language model supported CTC decoding for speech recognition | β | β | β | β |
Pythae | Unified framework for Generative Autoencoders in Python | β | β | β | β |
RL-Baselines3-Zoo | Training framework for Reinforcement Learning, using Stable Baselines3. | β | β | β | β |
Sample Factory | Codebase for high throughput asynchronous reinforcement learning. | β | β | β | β |
Sentence Transformers | Compute dense vector representations for sentences, paragraphs, and images. | β | β | β | β |
SetFit | Efficient few-shot text classification with Sentence Transformers | β | β | β | β |
spaCy | Advanced Natural Language Processing in Python and Cython. | β | β | β | β |
SpanMarker | Familiar, simple and state-of-the-art Named Entity Recognition. | β | β | β | β |
Scikit Learn (using skops) | Machine Learning in Python. | β | β | β | β |
Speechbrain | A PyTorch Powered Speech Toolkit. | β | β | β | β |
Stable-Baselines3 | Set of reliable implementations of deep reinforcement learning algorithms in PyTorch | β | β | β | β |
TensorFlowTTS | Real-time state-of-the-art speech synthesis architectures. | β | β | β | β |
Timm | Collection of image models, scripts, pretrained weights, etc. | β | β | β | β |
Transformers | State-of-the-art Natural Language Processing for PyTorch, TensorFlow, and JAX | β | β | β | β |
Transformers.js | State-of-the-art Machine Learning for the web. Run π€ Transformers directly in your browser, with no need for a server! | β | β | β | β |
Unity Sentis | Inference engine for the Unity 3D game engine | β | β | β | β |
How can I add a new library to the Inference API?
If youβre interested in adding your library, please reach out to us! Read about it in Adding a Library Guide.
< > Update on GitHub