Migrating from OpenAI models to Hugging Face models

Julien Simon
May 16, 2024

In this video, I show how you can easily migrate your applications from OpenAI models to Hugging Face open-source models.

First, we deploy a Llama3 8B model on an Inference Endpoint hosted on Google Cloud, and we invoke it with the OpenAI client library.

Then, we deploy a Zephyr 7B model on Amazon SageMaker and invoke the endpoint with the OpenAI Messages API.

It couldn’t be simpler to enjoy the many benefits of open-source models, without having to rewrite your app :)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Julien Simon
Julien Simon

No responses yet

What are your thoughts?