{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Automatic curation of the Hugging Face Hub using Collections and the `huggingface_hub` library\n", "\n", "In this short tutorial, we will see how to create a Hugging Face Collection automatically using the `huggingface_hub` library. We'll focus on creating a collection that will curate the top 10% most used instruction tuning datasets on the Hub. \n", "\n", "If you are already familiar with Collections and the `huggingface_hub` library, you can skip to the next section.\n", "\n", "## What is a Hugging Face Collection?\n", "\n", "Collections are a recently added feature on the Hugging Face Hub which unlock some really powerful new ways of curating what is on the Hub. With the Hub becoming the defacto platform for open-source machine learning models, it is important to be able to curate the content on the Hub. Collections allow you to do just that.\n", "\n", "Collections can be used to organize models, datasets, Spaces, and papers on the Hub in various different ways. You could for example create collections around a particular use case, or a particular topic, or a particular model architecture. You could also create collections that are a combination of these things. In this tutorial, we will create a collection that curates the top 10% most used instruction tuning datasets on the Hub. We will do this using the `huggingface_hub` library.\n", "\n", "## So what is the `huggingface_hub` library?\n", "\n", "The `hub` library is a Python library that allows you to interact with the Hugging Face Hub. It allows you to do things like upload and download models, datasets, and Spaces. Recently the library added support for creating and managing collection. This ability to programmatically create and manage collections unlocks a bunch of exciting new use cases. In this tutorial we'll show a few possibilities of what you can do with the `huggingface_hub` library and Collections but we're excited to see what you will do with it! " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Install packages\n", "\n", "For this tutorial, the only package we'll need outside of the Python standard library is the `huggingface_hub` library." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "HKyybBVZ1hBh", "outputId": "ceaa1d1a-85e6-4015-e4e1-04bbe88d05cf" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Collecting git+https://github.com/huggingface/huggingface_hub\n", " Cloning https://github.com/huggingface/huggingface_hub to /private/var/folders/gf/nk18mwt53sb4d0zpvjzs40bw0000gn/T/pip-req-build-hs4ssvjo\n", " Running command git clone --filter=blob:none --quiet https://github.com/huggingface/huggingface_hub /private/var/folders/gf/nk18mwt53sb4d0zpvjzs40bw0000gn/T/pip-req-build-hs4ssvjo\n", " Resolved https://github.com/huggingface/huggingface_hub to commit c32d4b31b679c9e91b906709631901f6aa85324d\n", " Installing build dependencies ... \u001b[?25ldone\n", "\u001b[?25h Getting requirements to build wheel ... \u001b[?25ldone\n", "\u001b[?25h Preparing metadata (pyproject.toml) ... \u001b[?25ldone\n", "\u001b[?25hRequirement already satisfied: filelock in ./.venv/lib/python3.11/site-packages (from huggingface-hub==0.18.0.dev0) (3.12.4)\n", "Requirement already satisfied: fsspec>=2023.5.0 in ./.venv/lib/python3.11/site-packages (from huggingface-hub==0.18.0.dev0) (2023.9.2)\n", "Requirement already satisfied: requests in ./.venv/lib/python3.11/site-packages (from huggingface-hub==0.18.0.dev0) (2.31.0)\n", "Requirement already satisfied: tqdm>=4.42.1 in ./.venv/lib/python3.11/site-packages (from huggingface-hub==0.18.0.dev0) (4.66.1)\n", "Requirement already satisfied: pyyaml>=5.1 in ./.venv/lib/python3.11/site-packages (from huggingface-hub==0.18.0.dev0) (6.0.1)\n", "Requirement already satisfied: typing-extensions>=3.7.4.3 in ./.venv/lib/python3.11/site-packages (from huggingface-hub==0.18.0.dev0) (4.8.0)\n", "Requirement already satisfied: packaging>=20.9 in ./.venv/lib/python3.11/site-packages (from huggingface-hub==0.18.0.dev0) (23.1)\n", "Requirement already satisfied: charset-normalizer<4,>=2 in ./.venv/lib/python3.11/site-packages (from requests->huggingface-hub==0.18.0.dev0) (3.2.0)\n", "Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.11/site-packages (from requests->huggingface-hub==0.18.0.dev0) (3.4)\n", "Requirement already satisfied: urllib3<3,>=1.21.1 in ./.venv/lib/python3.11/site-packages (from requests->huggingface-hub==0.18.0.dev0) (2.0.5)\n", "Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.11/site-packages (from requests->huggingface-hub==0.18.0.dev0) (2023.7.22)\n", "Note: you may need to restart the kernel to use updated packages.\n" ] } ], "source": [ "%pip install git+https://github.com/huggingface/huggingface_hub --upgrade" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Authenticate\n", "\n", "In order to create and manage collections, you need to be authenticated. You can do this via the `huggingface_hub` library using the `login` function. This function will detect where you are running your code and suggest the best way to authenticate." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "id": "Qn9p5Bsz2NN5" }, "outputs": [], "source": [ "from huggingface_hub import login" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 145, "referenced_widgets": [ "428d3687eb4342e59d23318099afe34f", "18f533e671114b6385428a534364f10a", "e4c0e23001254742a94898203a222c6c", "9d970a88c8c04bc586473251393aaec7", "9f8288bb8cae4796a067580ff7afce69", "077012b6f63e4148848c9b9e8726fb18", "14f46443f97c4b4fb46c5967aec1178f", "5aaff54fecb84936a8dc9fee4393494d", "aee4b5a2e361451dae879f37222245f3", "9dfa5a7ee7794a5d8396674db2c0b683", "3634abd523b7477082a0a8135f1fa770", "023691d310634e6e83da20b9575759a2", "dded08e463404a53abb86ac605968626", "9d99d6e39a424145b017abff9021d9a0", "38e81f2aed79485498035e9c418165b4", "37807c4db5834365b86bc92c36835220", "847b9e4085814f958a147286be4f56eb", "6efac326ad7946e3a9ecc22b50568633", "9d043d68e16440899a6fc9b740f5970d", "88242ee08b884098ad743c1738b7dc97", "862cc50e401845fa98054e6bd015a074", "4fe39f9b54474fb4966f71c7df0cf93e", "d97e9b98cade45eaa2b9b526b1a4bb98", "b7f608ef35d84fd7a736260236025429", "09ca4ed6420340e0b76d64949301bed4", "b2261f5044db4af0bed02f76115d08f9", "055c0da20e264ec896963f9edf372a7d", "d0f55244ec614704a571f920ffa27bfd", "3b77fe48c5e44c879998de497be7a381", "15032b9578124624bcc42771cb5d5ad8", "eca43f65d6c1407bbb16cd26f60d5b7f", "934d899f6c604fa1bf4a8108aa09b190" ] }, "id": "Sv15J3mW2Ous", "outputId": "e537a566-8cdd-4316-bb69-72f5353345da" }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "b3c0b966dfeb400c953e3e13689d5a0d", "version_major": 2, "version_minor": 0 }, "text/plain": [ "VBox(children=(HTML(value='
1]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Getting the top 10% instruction tuned datasets\n", "\n", "What do we mean by the top 10% instruction tuned datasets? There are various different metrics we could use to define what we mean by top 10%. For this tutorial we'll focus on the number of likes for a dataset. We could also look at other metrics, like the number of downloads, the level of user discussion on the dataset, the quality of documentation, the number of examples...Whilst likes isn't a perfect metric it does give us a good starting point." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Getting the number of likes for all of our datasets\n", "\n", "To know what our cuttoff point is for the top 10% of datasets, we need to know how many likes the most liked dataset has. We can do this by going through all of our datasets and getting the number of likes for each one. Let's take a peek at a single dataset from our list of datasets." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "DatasetInfo: { \n", " {'_id': '621ffdd236468d709f183185',\n", " 'author': 'darkraipro',\n", " 'cardData': None,\n", " 'citation': None,\n", " 'description': None,\n", " 'disabled': False,\n", " 'downloads': 340,\n", " 'gated': False,\n", " 'gitalyUid': 'f21ae5b0c1d4859c8ba1412e2aa6682e34e9596cd4cc027758b8557475f0ae11',\n", " 'id': 'darkraipro/recipe-instructions',\n", " 'lastModified': '2022-01-18T16:22:01.000Z',\n", " 'likes': 0,\n", " 'private': False,\n", " 'sha': 'e7feba49dd438849ec3d309ec4ab52a0fd39fc39',\n", " 'siblings': [],\n", " 'tags': ['region:us']}\n", "}" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "datasets[0]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can see that each dataset is a `DatasetInfo` object. This object contains a bunch of information about the dataset. We can see that the number of likes is stored in the `likes` attribute. We can use this to get the number of likes for each dataset." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "likes = [dataset.likes for dataset in datasets]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Calculate the threshold for the top 10% of datasets\n", "\n", "To calculate the threshold for the top 10% of datasets, we'll create a function that takes our list of like numbers and return the threshold that separates the top 10% of likes from the rest. We can then use this function to get the threshold for our list of datasets." ] }, { "cell_type": "code", "execution_count": 30, "metadata": { "id": "Q3JCU5lj9dU3" }, "outputs": [], "source": [ "import math\n", "from typing import List" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "id": "wKuyNPK09YJ5" }, "outputs": [], "source": [ "def get_threshold(numbers: List[int], threshold: float = 0.90) -> int:\n", " sorted_numbers = sorted(numbers)\n", " index = math.ceil(len(sorted_numbers) * threshold) - 1\n", " return sorted_numbers[index]" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "id": "9mrqhvLq_0Yk" }, "outputs": [ { "data": { "text/plain": [ "10" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "threshold = get_threshold(likes)\n", "threshold" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Filter our datasets to only include those with a number of likes above the threshold" ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "id": "YguMpWpt7rlD" }, "outputs": [], "source": [ "datasets = [dataset for dataset in datasets if dataset.likes > threshold]" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "13" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(datasets)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Creating our collection \n", "\n", "Now that we've got a subset of datasets which match our curation criteria we can move to the next step of creating a Collection to which we can add these datasets.\n", "\n", "We can to this using the `create_collection` function. This function allows us to create a Collection programmatically. We must pass in a `title` and we can also specify a `description` and a `namespace`. If you don't specify a namespace, the collection will be created in your personal namespace but since I want to add this collection to the `librarian-bots` organization I'll specify it explicitly here. \n", "\n", "The `exists_ok` parameter allows us to specify what to do if a collection with the same title already exists. If we set this to `True` then the function will return the existing collection. If we set this to `False` then the function will raise an error if a collection with the same title already exists." ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [], "source": [ "from huggingface_hub import create_collection\n", "\n", "collection = create_collection(\n", " title=\"Top 10% instruction tuning datasets\",\n", " description=\"Collects datasets with 'instruction' in the name and more than 1 download and in the top 10% for the number of likes\",\n", " namespace=\"librarian-bots\",\n", " exists_ok=True,\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Lets take a quick look at the collection we've created." ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Collection: { \n", " {'description': \"Collects datasets with 'instruction' in the name and more than 1 download and in the top 10% for the \"\n", " 'number of likes',\n", " 'items': [],\n", " 'last_updated': datetime.datetime(2023, 9, 25, 12, 36, 58, 301000, tzinfo=datetime.timezone.utc),\n", " 'owner': 'librarian-bots',\n", " 'position': 0,\n", " 'private': False,\n", " 'slug': 'librarian-bots/top-10-instruction-tuning-datasets-65117eeaca29f41ae7ae39fe',\n", " 'theme': 'indigo',\n", " 'title': 'Top 10% instruction tuning datasets',\n", " 'url': 'https://huggingface.co/collections/librarian-bots/top-10-instruction-tuning-datasets-65117eeaca29f41ae7ae39fe'}\n", "}" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "collection" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "When we call the `create_collection` function we get back a `Collection` object. This object contains a bunch of information about the collection. We can see for example the title, description, and namespace of the collection.\n", "\n", "We can also see that at the moment the attribute `items` is an empty list. The `items` attribute stores the datasets, models, Spaces, and papers that are in the collection. We can add items to the collection using the `add_collection_item` function." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Before we add our items to the collection we can do one more bit of additional curation: sorting by downloads. For this collection we don't have a huge number of items so sorting isn't as important but the order of a collection can be used to express so additional information about the collection. For example, you could sort a collection by the date a item as last updated, or by the number of downloads, or by the number of likes. For our example we'll sort by the number of downloads." ] }, { "cell_type": "code", "execution_count": 17, "metadata": { "id": "8a9U5Bc376qD" }, "outputs": [], "source": [ "sorted_datasets = sorted(datasets, key=lambda dataset: dataset.downloads, reverse=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's take a quick peek at the first two examples to see if this looks okay!" ] }, { "cell_type": "code", "execution_count": 18, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "eQQHSZ-IABLb", "outputId": "aec16d23-acd8-46be-f476-fa39d5b656eb" }, "outputs": [ { "data": { "text/plain": [ "[DatasetInfo: { \n", " {'_id': '64773a98906bb0203e52faad',\n", " 'author': 'LinkSoul',\n", " 'cardData': {'dataset_info': {'dataset_size': 13444870155,\n", " 'download_size': 3542585235,\n", " 'features': [{'dtype': 'string', 'name': 'id'},\n", " {'list': [{'dtype': 'string', 'name': 'from'},\n", " {'dtype': 'string', 'name': 'value'}],\n", " 'name': 'conversations'},\n", " {'dtype': 'string', 'name': 'instruction'}],\n", " 'splits': [{'name': 'train', 'num_bytes': 13444870155, 'num_examples': 10077297}]}},\n", " 'citation': None,\n", " 'description': None,\n", " 'disabled': False,\n", " 'downloads': 2968,\n", " 'gated': False,\n", " 'gitalyUid': '27a10b39e75118535e9d37a774ac8e8f0af89e44385f38bb930c6d5474270e1d',\n", " 'id': 'LinkSoul/instruction_merge_set',\n", " 'lastModified': '2023-06-01T03:19:51.000Z',\n", " 'likes': 104,\n", " 'private': False,\n", " 'sha': 'f26cd861df9df27973f0a07682462860ccdf14ae',\n", " 'siblings': [],\n", " 'tags': ['region:us']}\n", " },\n", " DatasetInfo: { \n", " {'_id': '642ef3fe28a26b5c89afb5a8',\n", " 'author': 'ArmelR',\n", " 'cardData': {'pretty_name': 'stack exchange instruction'},\n", " 'citation': None,\n", " 'description': None,\n", " 'disabled': False,\n", " 'downloads': 879,\n", " 'gated': False,\n", " 'gitalyUid': 'db81393f8a3b85f258162beca50f86f7f54449e9ffe1a84b304b28cedbb76a51',\n", " 'id': 'ArmelR/stack-exchange-instruction',\n", " 'lastModified': '2023-05-26T08:37:42.000Z',\n", " 'likes': 46,\n", " 'private': False,\n", " 'sha': '3e463817c02767cd64d9ad0276c6d291c7f120aa',\n", " 'siblings': [],\n", " 'tags': ['region:us']}\n", " }]" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "sorted_datasets[:2]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Adding items to our collection \n", "\n", "Now we're ready to populate our collection. We'll use the `add_collection_item` function to add each dataset to our collection. We can use the `?` operator to get more information about this function." ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "from huggingface_hub import add_collection_item" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[0;31mSignature:\u001b[0m\n", "\u001b[0madd_collection_item\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m \u001b[0mcollection_slug\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;34m'str'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m \u001b[0mitem_id\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;34m'str'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m \u001b[0mitem_type\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;34m'CollectionItemType_T'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m \u001b[0mnote\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;34m'Optional[str]'\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m \u001b[0mexists_ok\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;34m'bool'\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m \u001b[0mtoken\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;34m'Optional[str]'\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", "\u001b[0;34m\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0;34m'Collection'\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mDocstring:\u001b[0m\n", "Add an item to a collection on the Hub.\n", "\n", "Args:\n", " collection_slug (`str`):\n", " Slug of the collection to update. Example: `\"TheBloke/recent-models-64f9a55bb3115b4f513ec026\"`.\n", " item_id (`str`):\n", " ID of the item to add to the collection. It can be the ID of a repo on the Hub (e.g. `\"facebook/bart-large-mnli\"`)\n", " or a paper id (e.g. `\"2307.09288\"`).\n", " item_type (`str`):\n", " Type of the item to add. Can be one of `\"model\"`, `\"dataset\"`, `\"space\"` or `\"paper\"`.\n", " note (`str`, *optional*):\n", " A note to attach to the item in the collection. The maximum size for a note is 500 characters.\n", " exists_ok (`bool`, *optional*):\n", " If `True`, do not raise an error if item already exists.\n", " token (`str`, *optional*):\n", " Hugging Face token. Will default to the locally saved token if not provided.\n", "\n", "Returns: [`Collection`]\n", "\n", "Example:\n", "\n", "```py\n", ">>> from huggingface_hub import add_collection_item\n", ">>> collection = add_collection_item(\n", "... collection_slug=\"davanstrien/climate-64f99dc2a5067f6b65531bab\",\n", "... item_id=\"pierre-loic/climate-news-articles\",\n", "... item_type=\"dataset\"\n", "... )\n", ">>> collection.items[-1].item_id\n", "\"pierre-loic/climate-news-articles\"\n", "# ^item got added to the collection on last position\n", "\n", "# Add collection with a note\n", ">>> add_collection_item(\n", "... collection_slug=\"davanstrien/climate-64f99dc2a5067f6b65531bab\",\n", "... item_id=\"datasets/climate_fever\",\n", "... item_type=\"dataset\"\n", "... note=\"This dataset adopts the FEVER methodology that consists of 1,535 real-world claims regarding climate-change collected on the internet.\"\n", "... )\n", "(...)\n", "```\n", "\u001b[0;31mFile:\u001b[0m ~/Documents/code/librarian-bot-work/tutorials/.venv/lib/python3.11/site-packages/huggingface_hub/hf_api.py\n", "\u001b[0;31mType:\u001b[0m method" ] } ], "source": [ "?add_collection_item" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As you can see the `add_collection_item` function requires a `collection_slug` argument. This is to let `add_collection_item` know which collection to add the item to. We can get the `collection_slug` from the `Collection` object we created earlier. \n", "\n", "We also need to specify the `item_id` of the item we want to add. For datasets we can access the `id` from the `DatasetInfo` object to get this value. Additionally we need to specify the type of the item we want to add. This should be one of `dataset`, `model`, `space`, or `paper`. \n", "\n", "We can optionally add a note which we could use to store some additional information about the item. For example, we could use this to store the reason why we added this item to the collection. In this case we'll store any tags that the dataset has." ] }, { "cell_type": "code", "execution_count": 21, "metadata": { "id": "mp2GYws46kBD" }, "outputs": [], "source": [ "for dataset in datasets:\n", " if dataset.tags is not None:\n", " note = f\"Dataset has the following tags: {dataset.tags}\"\n", " else:\n", " note = \"Dataset does not have any tags\"\n", " add_collection_item(\n", " collection.slug,\n", " item_id=dataset.id,\n", " item_type=\"dataset\",\n", " note=note,\n", " )" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Taking a look at our collection\n", "\n", "The `huggingface_hub` library has a `get_collection` function which allows us to get a `Collection` object from the Hub. We can use this to take a look at our collection." ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "from huggingface_hub import get_collection" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We'll pass in the `collection_slug` to the `get_collection` function to get our collection. We can then take a look at the `items` attribute to see the items in our collection." ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[CollectionItem: { \n", " {'author': 'Muennighoff',\n", " 'downloads': 313,\n", " 'gated': False,\n", " 'isLikedByUser': False,\n", " 'item_id': 'Muennighoff/natural-instructions',\n", " 'item_object_id': '65117eeaec7fac9ec2fcaec1',\n", " 'item_type': 'dataset',\n", " 'lastModified': '2022-12-23T20:08:44.000Z',\n", " 'likes': 18,\n", " 'note': \"Dataset has the following tags: ['task_categories:other', 'annotations_creators:crowdsourced', \"\n", " \"'annotations_creators:expert-generated', 'multilinguality:monolingual', 'size_categories:100MPro Tip: If you don't already have one, you can create a dedicated\n'notebooks' token with 'write' access, that you can then easily reuse for all\nnotebooks.
" } }, "09ca4ed6420340e0b76d64949301bed4": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "14f46443f97c4b4fb46c5967aec1178f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": "center", "align_self": null, "border": null, "bottom": null, "display": "flex", "flex": null, "flex_flow": "column", "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": "50%" } }, "15032b9578124624bcc42771cb5d5ad8": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "16bb0f6cf2a04a78a1f76d9fd2ddb74a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "18f533e671114b6385428a534364f10a": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_5aaff54fecb84936a8dc9fee4393494d", "placeholder": "​", "style": "IPY_MODEL_aee4b5a2e361451dae879f37222245f3", "value": "

Copy a token from your Hugging Face\ntokens page and paste it below.
Immediately click login after copying\nyour token or it might be stored in plain text in this notebook file.
" } }, "2b3d0284c2ce49fb86c2da7d1ea327b7": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_7e7bb5e6d08842bdbd1b6ec41ae5b6e2", "placeholder": "​", "style": "IPY_MODEL_2e120a36c40f43118699e1c4615d1332", "value": " 340426/? [00:53<00:00, 6620.19it/s]" } }, "2e120a36c40f43118699e1c4615d1332": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "3592ba829079449583dda09d0e5aba1a": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_16bb0f6cf2a04a78a1f76d9fd2ddb74a", "placeholder": "​", "style": "IPY_MODEL_9b26690a9e244eb5b8eb737eedebf9c9", "value": "" } }, "3634abd523b7477082a0a8135f1fa770": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "37807c4db5834365b86bc92c36835220": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "38e81f2aed79485498035e9c418165b4": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ButtonStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ButtonStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "button_color": null, "font_weight": "" } }, "3b77fe48c5e44c879998de497be7a381": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "428d3687eb4342e59d23318099afe34f": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "VBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "VBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "VBoxView", "box_style": "", "children": [ "IPY_MODEL_862cc50e401845fa98054e6bd015a074", "IPY_MODEL_4fe39f9b54474fb4966f71c7df0cf93e", "IPY_MODEL_d97e9b98cade45eaa2b9b526b1a4bb98", "IPY_MODEL_b7f608ef35d84fd7a736260236025429" ], "layout": "IPY_MODEL_14f46443f97c4b4fb46c5967aec1178f" } }, "4fc0c071d3f24730ab9264ea62092d76": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_3592ba829079449583dda09d0e5aba1a", "IPY_MODEL_e2c41567b4eb400ba534374edb3a0df9", "IPY_MODEL_2b3d0284c2ce49fb86c2da7d1ea327b7" ], "layout": "IPY_MODEL_c26831761f8e4fdf9477663d15d95e78" } }, "4fe39f9b54474fb4966f71c7df0cf93e": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_055c0da20e264ec896963f9edf372a7d", "placeholder": "​", "style": "IPY_MODEL_d0f55244ec614704a571f920ffa27bfd", "value": "Your token has been saved in your configured git credential helpers (store)." } }, "5aaff54fecb84936a8dc9fee4393494d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "6efac326ad7946e3a9ecc22b50568633": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_9d043d68e16440899a6fc9b740f5970d", "placeholder": "​", "style": "IPY_MODEL_88242ee08b884098ad743c1738b7dc97", "value": "Connecting..." } }, "7e7bb5e6d08842bdbd1b6ec41ae5b6e2": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "847b9e4085814f958a147286be4f56eb": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "862cc50e401845fa98054e6bd015a074": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_09ca4ed6420340e0b76d64949301bed4", "placeholder": "​", "style": "IPY_MODEL_b2261f5044db4af0bed02f76115d08f9", "value": "Token is valid (permission: write)." } }, "88242ee08b884098ad743c1738b7dc97": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "8851c4aa5ec04a368d518110692e1d67": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ProgressStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "" } }, "934d899f6c604fa1bf4a8108aa09b190": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "9b26690a9e244eb5b8eb737eedebf9c9": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "9d043d68e16440899a6fc9b740f5970d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9d970a88c8c04bc586473251393aaec7": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "CheckboxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "CheckboxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "CheckboxView", "description": "Add token as git credential?", "description_tooltip": null, "disabled": false, "indent": true, "layout": "IPY_MODEL_023691d310634e6e83da20b9575759a2", "style": "IPY_MODEL_dded08e463404a53abb86ac605968626", "value": true } }, "9d99d6e39a424145b017abff9021d9a0": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9dfa5a7ee7794a5d8396674db2c0b683": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9f8288bb8cae4796a067580ff7afce69": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ButtonModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ButtonModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ButtonView", "button_style": "", "description": "Login", "disabled": false, "icon": "", "layout": "IPY_MODEL_9d99d6e39a424145b017abff9021d9a0", "style": "IPY_MODEL_38e81f2aed79485498035e9c418165b4", "tooltip": "" } }, "a264d9f9f65846f9b606dd4e3e7eda8e": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": "20px" } }, "aee4b5a2e361451dae879f37222245f3": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "b2261f5044db4af0bed02f76115d08f9": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "b7f608ef35d84fd7a736260236025429": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_eca43f65d6c1407bbb16cd26f60d5b7f", "placeholder": "​", "style": "IPY_MODEL_934d899f6c604fa1bf4a8108aa09b190", "value": "Login successful" } }, "c26831761f8e4fdf9477663d15d95e78": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "d0f55244ec614704a571f920ffa27bfd": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "d97e9b98cade45eaa2b9b526b1a4bb98": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_3b77fe48c5e44c879998de497be7a381", "placeholder": "​", "style": "IPY_MODEL_15032b9578124624bcc42771cb5d5ad8", "value": "Your token has been saved to /root/.cache/huggingface/token" } }, "dded08e463404a53abb86ac605968626": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "e2c41567b4eb400ba534374edb3a0df9": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "FloatProgressModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_a264d9f9f65846f9b606dd4e3e7eda8e", "max": 1, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_8851c4aa5ec04a368d518110692e1d67", "value": 1 } }, "e4c0e23001254742a94898203a222c6c": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "PasswordModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "PasswordModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "PasswordView", "continuous_update": true, "description": "Token:", "description_tooltip": null, "disabled": false, "layout": "IPY_MODEL_9dfa5a7ee7794a5d8396674db2c0b683", "placeholder": "​", "style": "IPY_MODEL_3634abd523b7477082a0a8135f1fa770", "value": "" } }, "eca43f65d6c1407bbb16cd26f60d5b7f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } } } } }, "nbformat": 4, "nbformat_minor": 0 }