{ "cells": [ { "cell_type": "markdown", "id": "131de9a7-0245-4e12-9554-c8f91eec2d21", "metadata": {}, "source": [ "# Hugging Face Setup\n", "\n", "Let's quickly make sure HF is set up and that you are able to access downloads from Hugging Face Hub using your Token." ] }, { "cell_type": "markdown", "id": "2e0b59f0-1180-4297-94dc-b26115761264", "metadata": {}, "source": [ "## Python Libraries Install:\n", "\n", "Note that we use various versions of these libraries throughout the course, make sure to watch the video to know which version to use!" ] }, { "cell_type": "code", "execution_count": 1, "id": "9a2f2dca-fefc-4f36-91f3-4dbcc07345a6", "metadata": {}, "outputs": [], "source": [ "# !pip install transformers diffusers datasets evaluate accelerate" ] }, { "cell_type": "code", "execution_count": 2, "id": "ac9d74b6-a136-4858-ab8b-1e7791993380", "metadata": {}, "outputs": [], "source": [ "from huggingface_hub import notebook_login" ] }, { "cell_type": "code", "execution_count": 3, "id": "0899dcf9-7504-4097-beb8-c42a519305c3", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "92c0780a54384af9ae5d07a3f5d4766d", "version_major": 2, "version_minor": 0 }, "text/plain": [ "VBox(children=(HTML(value='