{ "cells": [ { "cell_type": "markdown", "id": "883e3354-1538-4f98-bf42-67552215bba3", "metadata": { "id": "883e3354-1538-4f98-bf42-67552215bba3" }, "source": [ "# Setup" ] }, { "cell_type": "code", "execution_count": null, "id": "ddb3dfde-39cc-4ad9-917e-48413add2d9b", "metadata": { "tags": [] }, "outputs": [], "source": [ "%pip install -U -q transformers huggingface-hub" ] }, { "cell_type": "code", "execution_count": 1, "id": "b45bd52f-03e9-419f-8110-1013ff45fb1b", "metadata": { "id": "b45bd52f-03e9-419f-8110-1013ff45fb1b", "tags": [] }, "outputs": [], "source": [ "from huggingface_hub import InferenceClient, login\n", "from transformers import AutoTokenizer" ] }, { "cell_type": "code", "execution_count": 2, "id": "dc9f0411-8bf2-4a20-a6ea-331a2a486b8e", "metadata": { "colab": { "referenced_widgets": [ "515c96c357454fdc9a38ecc995ff1b3d" ] }, "id": "dc9f0411-8bf2-4a20-a6ea-331a2a486b8e", "outputId": "cb57d6e8-7d61-49ca-ec60-05594a7d5842", "tags": [] }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "da0ae7fafffb4005a5325a53896feb82", "version_major": 2, "version_minor": 0 }, "text/plain": [ "VBox(children=(HTML(value='