โ† Back to Course|AI Platforms
๐Ÿค—
AI Platform / HubFree Tier Available

Hugging Face

The GitHub of AI โ€” 700,000+ models, datasets, and Spaces to explore and deploy

Hugging Face is the central hub of the open-source AI world. It hosts over 700,000 models (text, vision, audio, code), 150,000+ datasets, and interactive demos called Spaces. Developers use it to find pre-trained models, run them via API, fine-tune them on custom data, and share their own work.

๐Ÿง 
Models
700,000+
Pre-trained models for text, images, audio, video, and code
๐Ÿ“Š
Datasets
150,000+
Training and benchmark datasets for all AI tasks
๐Ÿš€
Spaces
300,000+
Live interactive demos โ€” try any model in your browser
๐Ÿ’ป
Inference API
Pay-per-use
Call any model via REST API without managing infrastructure

โšก Getting Started

1
Create a free account
Go to huggingface.co โ†’ Sign Up. The free tier gives you access to the model hub, Spaces, and limited Inference API usage.
2
Browse Models
huggingface.co/models โ€” filter by task (text generation, translation, image classification etc.), language, and license. Sort by "Most Downloads" to find popular ones.
3
Try a model in Spaces
Many models have a "Spaces" demo button โ€” click it to test the model live in your browser with no code. Great for evaluation before committing.
4
Get your API token
Settings โ†’ Access Tokens โ†’ New Token. Use this token to call models via the Inference API or download models programmatically.

๐Ÿš€ Sample Usage

Call the Inference API (Python)
pip install huggingface_hub

from huggingface_hub import InferenceClient

client = InferenceClient(
ย ย model="mistralai/Mistral-7B-Instruct-v0.1",
ย ย token="hf_YOUR_TOKEN_HERE"
)

response = client.text_generation(
ย ย "Explain recursion in simple terms",
ย ย max_new_tokens=200
)
print(response)
Download and Run a Model Locally
pip install transformers torch

from transformers import pipeline

# Load a text classification model
classifier = pipeline("sentiment-analysis")
result = classifier("This product is absolutely amazing!")
# Output: [{'label': 'POSITIVE', 'score': 0.99}]
Popular Tasks & Models to Try
Text Generation
meta-llama/Llama-3.1-8B
Code Generation
deepseek-ai/deepseek-coder-6.7b
Translation
Helsinki-NLP/opus-mt-en-fr
Summarization
facebook/bart-large-cnn
Image Classification
google/vit-base-patch16-224
Speech to Text
openai/whisper-large-v3

๐Ÿ’ก Pro Tips

  • Filter models by license: Apache 2.0 or MIT if you need commercial use rights
  • The Serverless Inference API is free for low-volume use โ€” perfect for prototyping
  • Spaces are free to browse and test โ€” no account needed for most public demos
  • GGUF format models on HF are optimized for Ollama โ€” search for "GGUF" to find them
  • Use the HF Leaderboard (huggingface.co/open-llm-leaderboard) to compare open-source models before downloading
โ†’ Run HF Models Locally with Ollamaโ†’ Free Local AI Guide