If you are interested in AI, to either incorporate into a project or just want to keep with the latest AI capabilities, you have to learn how to use Hugging Face.
Hugging Face is used by all of the big tech companies like Google, Meta, and many more. It has become the leading platform of hosting and testing out AI models - currently it hosts over 270,000 models.
The models cover a variety of uses for example:
Chat Model
Text to Image
Text to Speech
Image to Text
Hugging Face has 3 main areas of focus
Models
Hugging Face's main offering. On the left, filter by the type of model you are looking for. And after that sort by Trending, Most liked, etc...
Once you've clicked on a model, there's general information regarding the model on the left and section for testing out the model directly on HuggingFace (circled in red).
Being able to test out the model from Hugging Face is an amazing feature because the alternative is downloading the model to your local machine (models require lots of storage capacity not to mention powerful processing)
From here you can also "π Deploy" the model onto cloud provider server or host it on Hugging Face for free(this is slow but enough to do a little testing).
Many of the models have a "files" tab that provides download links for any or that are used in image generation tasks. Below, we'll show you how to access the models with code.
Datasets
Datasets are used to train your own models. This page has similar filters as the models page. Use the filters on the left to narrow down to the data you want.
Spaces
Use spaces to display apps/services you've built with AI and also to discover projects that others have made.
Arrow 1, to view what models were used in the creation of the space. Arrow 2 leads to all the files for the space, so use this to find out how the space works under the hood.
Accessing the Models Programmatically
LLM Models
Diffusion Models (Usually related to images)
Transformers/Diffusers allow you to programmatically access the models provided on Hugging Face. Click on the "Use in Transformers/Diffusers" button to get the model name.
Here's a straightforward guide on how to use transformers - with examples.
Note: this will download the model onto you local machine
Inference API
Another way to access the models is using Hugging Face's Inference API. This is a lighter weight option that allows you to test out different models and is offered for free by Hugging Face.
Here's a guide on how to use it: Inference API Guide.
For any other questions regarding Hugging Face, feel free to visit the FAQ page. There are some great Youtube videos covering Hugging Face, I recommend taking a look on the tube as well π
About @workingforlatte
Hey there, I'm @workingforlatte, an engineer and solopreneur on a mission to make AI accessible and affordable while indulging in my love for lattes. One day, I hope to treat myself to a luxurious mcol latte, and who knows, maybe even upgrade to an hcol latte (a lofty dream, I know)!
With a deep passion for technology and AI, I bring my engineering expertise to the forefront as I explore the ever-evolving AI landscape. I'm thrilled to be part of this AI blog, sharing my unique insights and unraveling the mysteries of artificial intelligence.
Join me on this exciting journey as we navigate the intricate world of AI together. From tackling complex technical challenges to discovering the endless possibilities of AI, I'm here to inspire and empower fellow tech enthusiasts like you.
Together, let's embark on this adventure of uncovering the wonders of AI and embracing the incredible ways it will shape our future. Get ready to dive into the AI realm alongside me, and let's make AI knowledge accessible and enjoyable for everyone. Cheers to a future filled with AI breakthroughs and, of course, plenty of delicious lattes!