What is Hugging Face
Hugging Face has done for Machine learning & Generative AI what GitHub did for git source control; 10X’d its discoverability
Origin story
In 2016, the HuggingFace was established by French business enthusiasts, Clément Delangue, Julien Chaumond, and Thomas Wolf. Initially, they focused on creating a chatbot application intended for the teenage audience. However, following the decision to make the chatbot’s model open-source, they pivoted the business and began concentrating on becoming a community-driven ecosystem for building and sharing state-of-the-art NLP models.
Hugging Face Today
HuggingFace has since emerged as a leader in the ML domains including Generative AI, offering a range of services and tools that facilitate the development and deployment of Machine Learning models. Hugging Face makes it easy to share tools, models, model weights, and datasets between other practitioners. The company is driven by the principles of open-source and collaboration, making it a go-to platform for Machine Learning enthusiasts and professionals.
At the center of Hugging Face is what is referred to as the Hub. As of July/2023, the Hugging Face Hub hosts more than;
120,000 models
20,000 datasets
50,000 demonstration applications
All of which are open source and freely accessible. This online environment encourages seamless collaboration and collective ML development. In the hub anyone can delve into, experiment with, team up and craft technology using ML.
Hugging Face offerings
Models
Within Hugging Face the Model Hub is a repository of community contributed pre-trained models over a variety of ML tasks including NLP, computer vision, and audio. The Hub makes it easy to find and use models for a variety of tasks, such as text classification, question answering, and summarization.
Each model displays a very informative model card, giving you all the needed metadata about the model and even allowing you to interact with the model.
The model card for the Stable Diffusion 2.1 model
One way to easily utilize these models is through the Hugging Face Transformers library. Additionally, there is an expanding list of open-source integrations available.
Using the HF transformers library to work with the GPT2 LLM
Datasets
Datasets is a collection of community-curated and popular research datasets covering Audio, Computer Vision, and NLP tasks. Hugging Face has created the hub site and tools to enable ease in accessing and sharing datasets.
With the provided Hugging Face python libraries, utilizing datasets couldn’t be easier
loading an audio dataset with a HF provided library
Jump into the Dataset Quickstart and start building today!
Spaces
Spaces is a platform for hosting and sharing ML demo apps. They allow you to create your own ML portfolio, showcase your projects at conferences or to stakeholders, and work collaboratively with other people in the ML ecosystem.
Spaces are built on top of Streamlit and Gradio, two popular Python libraries for building ML apps. This means that you can use Spaces to create a wide variety of ML apps, from simple text classification apps to complex image recognition apps.
Spaces are also easy to use. You can create a new Space in just a few minutes, and you can deploy your app with a single click. Spaces are also free to use, so there’s no risk in trying them out.
Here are some examples of Spaces that have been created by the community:
DALL-E mini: A text-to-image diffusion model that can be used to create realistic images from text descriptions.
Bark: A text to audio AI model that can generate highly realistic, multilingual speech as well as other audio – including music, background noise and simple sound effects.
Open LLM Leaderboard: A leaderboard that tracks the performance of different LLM models on a variety of tasks.
These are just a few examples of the many Spaces that have been created by the community. If you are interested in creating your own Space, you can learn more on the Hugging Face website.
Wrapping up
Here we have just skimmed the surface of what Hugging Face offers. Due to Hugging Face’s focus on usability though, this is all you need to get started, but rest assured, they also have a great set of documentation to help you along the way.
To dive deeper on how to leverage Hugging Face, take their free online course
If you found this helpful, feel free to subscribe to my weekly newsletter for the latest tools and trends in generative AI—curated specifically to empower developers like you.