Delv
Hugging Face
Getting Started Guide

How to Use Hugging Face

A practical guide to get you up and running with Hugging Face. Written by Delv Editorial, Delv Team.

Getting started with Hugging Face

In this guide, you will learn how to sign up for Hugging Face, upload your first machine learning model, and improve your results using their tools. By the end, you’ll be ready to share and deploy your AI models quickly.

Step 1: Sign up and set up

  1. Go to huggingface.co.
  2. Click on the “Sign up” button in the top right corner.
  3. Enter your email address, create a password, and click “Sign up”.
  4. Confirm your email address by clicking the link sent to your inbox.
  5. Log in to your account.

Step 2: Your first model upload

  1. Once logged in, click on your profile icon in the top right and select “New Model”.
  2. Fill in the model name and select your visibility preference (Public or Private).
  3. Click “Create Model”.
  4. On the model page, click the “Upload files” button to add your model files (like .bin or .json).
  5. After uploading, click “Commit changes” to save your model.

Step 3: Get better results

  1. Explore the “Models” section from the top menu to find popular models and demos.
  2. Use the “Inference API” feature by clicking on your model and then “Use in Transformers” to generate sample code.
  3. Adjust parameters in the code snippet to fine-tune your model's output (e.g., temperature, max_length).
  4. Test your model directly on the page by entering sample text and clicking “Run”.

Pro tip

Use the “Spaces” feature to create interactive demos of your models. Click on “Create Space” from your profile to set up a simple web app that showcases your model’s capabilities without needing extensive coding.

Common mistake to avoid

Avoid uploading large files without checking the size limits. Hugging Face has restrictions on file sizes, and exceeding these may result in errors during the upload process. Always check the documentation for current limits.