From the course: MLOps Tools: MLflow and Hugging Face
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Registering a Hugging Face model on Azure - Hugging Face Tutorial
From the course: MLOps Tools: MLflow and Hugging Face
Registering a Hugging Face model on Azure
- [Instructor] I have the GPT-2 model here loaded on the Hugging Face web UI. And what I'm going to be doing is looking at how to use it in Transformers. So essentially I want to find out how does the API look. So I'm going to click here and this very nice card is going to open up. I'm not going to clone it. Although for effects of what we're going to try to do right now, which is downloading first and then pushing it over to Azure Machinery Studio, what we're going to be doing is not, I mean you can absolutely a hundred percent do a Git clone of GPT-2 and then upload whatever files you want. But we're not going to do that. We are going to do it with code. So we're going to use it with Transformers. I'm going to copy these and I actually have it already good to go. And I've pre-installed a PyTorch and Transformers already for this to work. So I'm going to open Visual Studio Code and you can see here I've already pasted that over here. So I'm going to run this code. And the model…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.