LastMile AI Docs
  • lastmileai.dev
  • Getting Started
    • Welcome to LastMile AI
    • Getting Started
    • AI Concepts
  • Use Cases
    • Example Workbooks
    • Example Workflows
  • Workbooks
    • Intro to Workbooks
    • Parameters
    • Create a Workbook
    • Manage your Workbooks
    • Share & Collaborate
    • Deploy a Workbook
    • 🤗 Hugging Face x Workbooks
  • Workflows
    • Intro to Workflows
    • Create a Workflow
    • Manage your Workflow
  • Models
    • Intro to Models
    • Create a Custom Model
  • Reviews
    • Intro to Reviews
    • Create a Review
    • Manage your Reviews
    • Share & Collaborate
Powered by GitBook
On this page
  • How To Use Hugging Face in AI Workbooks
  • Create a Hugging Face Model Cell
  • Update Cell to a Non-Default Hugging Face Model
  • Update Hugging Face Cell to another Model Cell Type
  • Not sure what Hugging Face models to use?
  • Benefits of Using Hugging Face x Workbooks
  • Feedback or Questions

Was this helpful?

  1. Workbooks

🤗 Hugging Face x Workbooks

Hugging Face models are supported in AI Workbooks!

PreviousDeploy a WorkbookNextIntro to Workflows

Last updated 1 year ago

Was this helpful?

is a open-source platform for sharing and utilizing ML models. It hosts thousands of fine-tuned machine learning and generative AI models. You can now use Hugging Face models in an AI Workbook - along with the other models we support!

Here are a few Hugging Face workbooks to get started:

How To Use Hugging Face in AI Workbooks

Create a Hugging Face Model Cell

  • Click '+' to Add a cell

  • Select 'Hugging Face Models'

  • Select 'Task' (categorization of what the models do e.g. Text to Image)

This will create an HF cell with the default model for the selected Task. For 'Text to Image', the default model is stablilityai/stable-diffusion-2-1. See below:

You can now prompt the default HF model!

Update Cell to a Non-Default Hugging Face Model

In order to update the model of the HF cell to a non-default model, you will need to enter your HF API token.

To add your HF API token, click the key icon next to the model name in the cell.

With your HF token added, you can update the model to any HF model for the selected Task which is hosted on HF Inference Endpoint!

You can check that a model will work for a cell by confirming that the Hosted inference API works in the Model Card in Hugging Face:

Update Hugging Face Cell to another Model Cell Type

You cannot change a Hugging Face Cell to another model cell type (e.g. ChatGPT, Stable Diffusion) via the model dropdown menu. You will need to delete the HF Cell and create a new model cell.

Not sure what Hugging Face models to use?

Benefits of Using Hugging Face x Workbooks

We ♥️ Hugging Face. We believe that AI workbooks provide a great user experience to interact and play with Hugging Face models in a lightweight way.

Here are a few awesome things you can with Hugging Face models in Workbooks:

  1. Try multiple Hugging Face models in a single notebook interface.

  2. Organize, save, and share results from Hugging Face models.

  3. Easily switch models to compare model performance for the same task

Feedback or Questions

Check out the to explore models by task. Often times, model pages will include tips on prompts, examples, etc. so you can get a sense of the model.

If you want to request a task or model to be supported, please reach out to us on .

We would love to hear from you! Please reach out to us on .

Hugging Face Models Library
our Discord
our Discord
Hugging Face (HF)
Hugging Face Onboarding Workbook
Build your Hugging Face Space with Gradio