{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "Jwhn4SLRdz0p" }, "source": [ "# Refine txt2img Prompts with Human Feedback\n", "\n", "\n", "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/CarperAI/trlx/blob/main/examples/notebooks/trlx_simulacra.ipynb)\n", "\n", "\n", "#### Optimize a gpt2-based txt2img prompt generator to produce aesthetic prompts using a dataset of (prompt, rating) pairs https://github.com/JD-P/simulacra-aesthetic-captions\n", "\n", "Notebook by [@smellslikeml](https://github.com/smellslikeml)\n", "\n", "---" ] }, { "cell_type": "markdown", "metadata": { "id": "eKuuBx0teMb7" }, "source": [ "Execute the cells below to install [TRLX](https://github.com/CarperAI/trlx) for a colab environment." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "id": "SY2PWyE7RFrV", "colab": { "base_uri": "https://localhost:8080/" }, "outputId": "390a21c5-5eef-4718-bfce-4c4524c3436b" }, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n", "Collecting git+https://github.com/CarperAI/trlx\n", " Cloning https://github.com/CarperAI/trlx to /tmp/pip-req-build-rx6dz42z\n", " Running command git clone --filter=blob:none --quiet https://github.com/CarperAI/trlx /tmp/pip-req-build-rx6dz42z\n", " Resolved https://github.com/CarperAI/trlx to commit a66a7da90d3b9d4b74cf968139896d6797a17286\n", " Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n", " Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n", " Installing backend dependencies ... \u001b[?25l\u001b[?25hdone\n", " Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n", "Collecting ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl\n", " Using cached https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl (58.5 MB)\n", "Requirement already satisfied: wandb>=0.13.5 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (0.14.2)\n", "Requirement already satisfied: accelerate>=0.17.1 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (0.18.0)\n", "Requirement already satisfied: numpy>=1.23.2 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (1.24.2)\n", "Requirement already satisfied: tabulate>=0.9.0 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (0.9.0)\n", "Requirement already satisfied: networkx in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (3.0)\n", "Requirement already satisfied: torchtyping in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (0.1.4)\n", "Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (4.65.0)\n", "Requirement already satisfied: deepspeed>=0.8.1 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (0.8.3)\n", "Requirement already satisfied: einops>=0.4.1 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (0.6.0)\n", "Requirement already satisfied: cattrs>=22.2.0 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (22.2.0)\n", "Requirement already satisfied: rich in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (13.3.3)\n", "Requirement already satisfied: tritonclient in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (2.32.0)\n", "Requirement already satisfied: attrs>=22.1.0 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (22.2.0)\n", "Requirement already satisfied: transformers>=4.21.2 in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (4.27.4)\n", "Requirement already satisfied: datasets in /usr/local/lib/python3.9/dist-packages (from trlx==0.6.0) (2.11.0)\n", "Requirement already satisfied: psutil in /usr/local/lib/python3.9/dist-packages (from accelerate>=0.17.1->trlx==0.6.0) (5.9.4)\n", "Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.9/dist-packages (from accelerate>=0.17.1->trlx==0.6.0) (23.0)\n", "Requirement already satisfied: pyyaml in /usr/local/lib/python3.9/dist-packages (from accelerate>=0.17.1->trlx==0.6.0) (6.0)\n", "Requirement already satisfied: torch>=1.4.0 in /usr/local/lib/python3.9/dist-packages (from accelerate>=0.17.1->trlx==0.6.0) (2.0.0+cu118)\n", "Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.9/dist-packages (from cattrs>=22.2.0->trlx==0.6.0) (1.1.1)\n", "Requirement already satisfied: pydantic in /usr/local/lib/python3.9/dist-packages (from deepspeed>=0.8.1->trlx==0.6.0) (1.10.7)\n", "Requirement already satisfied: ninja in /usr/local/lib/python3.9/dist-packages (from deepspeed>=0.8.1->trlx==0.6.0) (1.11.1)\n", "Requirement already satisfied: hjson in /usr/local/lib/python3.9/dist-packages (from deepspeed>=0.8.1->trlx==0.6.0) (3.1.0)\n", "Requirement already satisfied: py-cpuinfo in /usr/local/lib/python3.9/dist-packages (from deepspeed>=0.8.1->trlx==0.6.0) (9.0.0)\n", "Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /usr/local/lib/python3.9/dist-packages (from transformers>=4.21.2->trlx==0.6.0) (0.13.3)\n", "Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.9/dist-packages (from transformers>=4.21.2->trlx==0.6.0) (2022.10.31)\n", "Requirement already satisfied: huggingface-hub<1.0,>=0.11.0 in /usr/local/lib/python3.9/dist-packages (from transformers>=4.21.2->trlx==0.6.0) (0.13.4)\n", "Requirement already satisfied: filelock in /usr/local/lib/python3.9/dist-packages (from transformers>=4.21.2->trlx==0.6.0) (3.10.7)\n", "Requirement already satisfied: requests in /usr/local/lib/python3.9/dist-packages (from transformers>=4.21.2->trlx==0.6.0) (2.27.1)\n", "Requirement already satisfied: docker-pycreds>=0.4.0 in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (0.4.0)\n", "Requirement already satisfied: pathtools in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (0.1.2)\n", "Requirement already satisfied: sentry-sdk>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (1.19.1)\n", "Requirement already satisfied: setproctitle in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (1.3.2)\n", "Requirement already satisfied: Click!=8.0.0,>=7.0 in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (8.1.3)\n", "Requirement already satisfied: setuptools in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (67.6.1)\n", "Requirement already satisfied: appdirs>=1.4.3 in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (1.4.4)\n", "Requirement already satisfied: GitPython!=3.1.29,>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (3.1.31)\n", "Requirement already satisfied: typing-extensions in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (4.5.0)\n", "Requirement already satisfied: protobuf!=4.21.0,<5,>=3.15.0 in /usr/local/lib/python3.9/dist-packages (from wandb>=0.13.5->trlx==0.6.0) (3.20.3)\n", "Requirement already satisfied: aiohttp in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (3.8.4)\n", "Requirement already satisfied: responses<0.19 in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (0.18.0)\n", "Requirement already satisfied: xxhash in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (3.2.0)\n", "Requirement already satisfied: multiprocess in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (0.70.14)\n", "Requirement already satisfied: fsspec[http]>=2021.11.1 in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (2023.3.0)\n", "Requirement already satisfied: pyarrow>=8.0.0 in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (9.0.0)\n", "Requirement already satisfied: dill<0.3.7,>=0.3.0 in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (0.3.6)\n", "Requirement already satisfied: pandas in /usr/local/lib/python3.9/dist-packages (from datasets->trlx==0.6.0) (1.4.4)\n", "Requirement already satisfied: aiosignal in /usr/local/lib/python3.9/dist-packages (from ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (1.3.1)\n", "Requirement already satisfied: virtualenv>=20.0.24 in /usr/local/lib/python3.9/dist-packages (from ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (20.21.0)\n", "Requirement already satisfied: frozenlist in /usr/local/lib/python3.9/dist-packages (from ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (1.3.3)\n", "Requirement already satisfied: grpcio>=1.32.0 in /usr/local/lib/python3.9/dist-packages (from ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (1.53.0)\n", "Requirement already satisfied: jsonschema in /usr/local/lib/python3.9/dist-packages (from ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (4.3.3)\n", "Requirement already satisfied: msgpack<2.0.0,>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (1.0.5)\n", "Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in /usr/local/lib/python3.9/dist-packages (from rich->trlx==0.6.0) (2.2.0)\n", "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.9/dist-packages (from rich->trlx==0.6.0) (2.14.0)\n", "Requirement already satisfied: typeguard>=2.11.1 in /usr/local/lib/python3.9/dist-packages (from torchtyping->trlx==0.6.0) (3.0.2)\n", "Requirement already satisfied: python-rapidjson>=0.9.1 in /usr/local/lib/python3.9/dist-packages (from tritonclient->trlx==0.6.0) (1.10)\n", "Requirement already satisfied: six>=1.4.0 in /usr/local/lib/python3.9/dist-packages (from docker-pycreds>=0.4.0->wandb>=0.13.5->trlx==0.6.0) (1.16.0)\n", "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp->datasets->trlx==0.6.0) (4.0.2)\n", "Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->datasets->trlx==0.6.0) (2.0.12)\n", "Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->datasets->trlx==0.6.0) (1.8.2)\n", "Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp->datasets->trlx==0.6.0) (6.0.4)\n", "Requirement already satisfied: gitdb<5,>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from GitPython!=3.1.29,>=1.0.0->wandb>=0.13.5->trlx==0.6.0) (4.0.10)\n", "Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.9/dist-packages (from markdown-it-py<3.0.0,>=2.2.0->rich->trlx==0.6.0) (0.1.2)\n", "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests->transformers>=4.21.2->trlx==0.6.0) (2022.12.7)\n", "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests->transformers>=4.21.2->trlx==0.6.0) (3.4)\n", "Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests->transformers>=4.21.2->trlx==0.6.0) (1.26.15)\n", "Requirement already satisfied: sympy in /usr/local/lib/python3.9/dist-packages (from torch>=1.4.0->accelerate>=0.17.1->trlx==0.6.0) (1.11.1)\n", "Requirement already satisfied: jinja2 in /usr/local/lib/python3.9/dist-packages (from torch>=1.4.0->accelerate>=0.17.1->trlx==0.6.0) (3.1.2)\n", "Requirement already satisfied: triton==2.0.0 in /usr/local/lib/python3.9/dist-packages (from torch>=1.4.0->accelerate>=0.17.1->trlx==0.6.0) (2.0.0)\n", "Requirement already satisfied: lit in /usr/local/lib/python3.9/dist-packages (from triton==2.0.0->torch>=1.4.0->accelerate>=0.17.1->trlx==0.6.0) (16.0.0)\n", "Requirement already satisfied: cmake in /usr/local/lib/python3.9/dist-packages (from triton==2.0.0->torch>=1.4.0->accelerate>=0.17.1->trlx==0.6.0) (3.25.2)\n", "Requirement already satisfied: importlib-metadata>=3.6 in /usr/local/lib/python3.9/dist-packages (from typeguard>=2.11.1->torchtyping->trlx==0.6.0) (6.1.0)\n", "Requirement already satisfied: platformdirs<4,>=2.4 in /usr/local/lib/python3.9/dist-packages (from virtualenv>=20.0.24->ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (3.2.0)\n", "Requirement already satisfied: distlib<1,>=0.3.6 in /usr/local/lib/python3.9/dist-packages (from virtualenv>=20.0.24->ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (0.3.6)\n", "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from jsonschema->ray@ https://ray-ci-artifact-branch-public.s3.amazonaws.com/42bb0357a6fb13e4994789c824f3623f32869ad8/tmp/artifacts/.whl/ray-3.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl->trlx==0.6.0) (0.19.3)\n", "Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/dist-packages (from pandas->datasets->trlx==0.6.0) (2.8.2)\n", "Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.9/dist-packages (from pandas->datasets->trlx==0.6.0) (2022.7.1)\n", "Requirement already satisfied: smmap<6,>=3.0.1 in /usr/local/lib/python3.9/dist-packages (from gitdb<5,>=4.0.1->GitPython!=3.1.29,>=1.0.0->wandb>=0.13.5->trlx==0.6.0) (5.0.0)\n", "Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=3.6->typeguard>=2.11.1->torchtyping->trlx==0.6.0) (3.15.0)\n", "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2->torch>=1.4.0->accelerate>=0.17.1->trlx==0.6.0) (2.1.2)\n", "Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.9/dist-packages (from sympy->torch>=1.4.0->accelerate>=0.17.1->trlx==0.6.0) (1.3.0)\n" ] } ], "source": [ "!pip install git+https://github.com/CarperAI/trlx" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "id": "_B3AcQaSSpVI" }, "outputs": [], "source": [ "import os\n", "import sqlite3\n", "from urllib.request import urlretrieve\n", "\n", "import trlx\n", "\n", "url = \"https://raw.githubusercontent.com/JD-P/simulacra-aesthetic-captions/main/sac_public_2022_06_29.sqlite\"\n", "dbpath = \"sac_public_2022_06_29.sqlite\"\n", "\n", "if not os.path.exists(dbpath):\n", " print(f\"fetching {dbpath}\")\n", " urlretrieve(url, dbpath)\n", "\n", "conn = sqlite3.connect(dbpath)\n", "c = conn.cursor()\n", "c.execute(\n", " \"SELECT prompt, rating FROM ratings \"\n", " \"JOIN images ON images.id=ratings.iid \"\n", " \"JOIN generations ON images.gid=generations.id \"\n", " \"WHERE rating IS NOT NULL;\"\n", ")\n", "\n", "prompts, ratings = tuple(map(list, zip(*c.fetchall())))" ] }, { "cell_type": "code", "source": [ "from trlx.data.default_configs import default_ilql_config\n", "config = default_ilql_config().evolve(train=dict(batch_size=32, total_steps=300))" ], "metadata": { "id": "c16GFhDTPcme" }, "execution_count": 3, "outputs": [] }, { "cell_type": "markdown", "metadata": { "id": "veT8Jxegeg_z" }, "source": [ "Trlx uses [wandb](https://wandb.ai/) to log results. Make sure to set up an account and use your token to authenticate when prompted after executing the cell below." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "id": "UC_NT0_udizq", "colab": { "base_uri": "https://localhost:8080/", "height": 1000, "referenced_widgets": [ "8786531e271f47faa62964f7860c368f", "a2ab0c0f85e249cc94fddf59a471b142", "918536c5263f4ea388abed4899cf9b89", "c7f8fd09641b4278980f95f6fa3c399e", "6755cd50bc3b4cdcb4f870e5d1f4fec3", "c452050713464fcb848ad4e46daca06a", "902d0e262ad8485ebbca2e116a70856c", "40d503df0cdc4fda96eb860f28e786bf", "4f12a3796ba848e6963d7d935501cf0f", "91ddb72caa1f463b96c076a21e20ead5", "1714486114834dbbbcc1c9ac8759254b", "222674a3a9064d5385222c091d97cc50", "f98006be6d2e4e78850d0b747d1b9e00", "1edb79423c3747569ee0c077dd719be3", "76e14d88daba498bb6d56bf86f2fc9e8", "07529cece3a74418b657831b804febce", "9753bcfeb7e94208a9ed3f91d08d281c", "ea20573d77534bff8a043a18fa00e98c", "c801d62d871d4815a9a92c096b4a8a8e", "cafedd145c5c424c8d1899e69ef694ad", "80896a7951e54ca7a0c8830774c8d550", "fa219fb34a5b41598384a9e8faf03272", "60cb2cae22474ba897934584840d7c1b", "944aa08059024f4da8a12fc5fbaad24f", "cb68c9ca994f459da8f669266b09a3af", "0e98c3fe111749ebbaa65bcda787ca71", "5e022cdf1adc4c11befd97227aa63124", "dcac48aa9a8e4f90b95fb2e38fa67b17", "d5c08ede3606473085a7b5cf253ee79e", "03b38c82b97f4546a6a5d9e7b01100ea", "e79f4f418bfd4fbcab82386bf5d6d77f", "9dd8c74c7cd7424487a963687a0de692", "362078a760324d5886a5f2f246458306", "d40173c3c7974f68ae6fdc366ef7bfdb", "eb4427d7126f499a90444fb41018fb14", "bef7bb9b8e6146babc2d3690dd57bca7", "e3b48287b6d24e2b8e8aa5b771bb658b", "090501fd39ea40b890b27279eecff5f0", "8391ff13036146e1b7213145b9867975", "fccdf7d288784a17b3e2bdcc4d3b0fec", "c7c4c6e8112a427fa9538d5c8b947467", "1f5477c17e074ef1ae0fe52847f79f42", "ce6495c209004ec8bebaacc3656c9d17", "4648759b99ac48c88f6858feb42c5869", "8988ee4fa3c84df2848a3afeeec6329e", "f491026f5abf433483bac72280b28a00", "dcbc081df78741928342fbbd1de53eab", "eb6dd1992bed46929a03e6131bcb3441", "fc8941e5e5894393ad5bbe629e6e3487", "a9ea3090aeab43559a0572a475d2105d", "5c5fb940166a4549a928490d5a3bface", "adb132d468ba44089166aa22bd74ab63", "041ad20a7fd4492a91f3370203c6ea83", "72743e0f27aa4148a472ae75c020768f", "3efc4c0b2a524399ad250c82f20f4b1d", "c93ac06942e642b7a88df8a89f82ef70", "35ec350c2da74c5b852dcbbef5801594", "9521052d249d4d44b5de6783ae706ec6", "86339706567c42fcb304bc78e5e78a0a", "fe4c75915bbe4b218da7b14242572d78", "16b4d7fe131642be892cfa9f482ac2cc", "1afa7b73f62b45fea2daedc81791bbb7", "e0439e28875647d9a1eee32f5ca54e41", "770162458496445cabd1c2d0bb6ec353", "27181a671724471ea5f6bec3b4e22a04", "8d9e8d5281334d48bc02af9ebabb85f8", "302ba1281be14034b595d8fb196f1828", "1fe137ddbaed4cbbba5704c8cad6baf6", "bddf7b31b75f4616b69f35eeda7d9222", "cbf47b861ee84f6f91bc77ff3b912970", "33b30406b0384f21bffda2589272f524", "6077eab815c840488685e1977dc58467", "fd07bf79cc714cbb8a7b305a82d4a525", "24022e2feea14d06bb5599c043e9fb11", "5890f202b82c48e192a538e5f5f806d6", "a7cee558d6414c3a9dc826f728c9ffd4", "d70c7420366c44e8accc80675fa5919e", "bc2101d45cb64efe831a5b383e7eb375", "a5f4f7652f1c460bbca2956c903f3784", "097753ee52f7450b9c0130fc269d5560", "48a23b76fe514694afb0810ea2cc1d44", "69597230621f482591abc1516288c61c", "f1af6d6f0a414bcba893302c562fc734", "28cdd480db454afdb8ab37a5423c22da", "69224750ccc74ca5a57c7d7793dce0ac", "fb6e445ed81040c981d3afdd1fa5ba22", "280b82ce1d8a44c18e776bb74f011790", "422601c3635f4cf9977ab48c113927fd", "58ec6098ecb143ab9645569f6f751d1a", "0fd7ea71a1d642e9877078f0e62844ef", "6d61ed4e81cb42d9bc304f527400084f", "4bbd0c952a5e4f70a4dd8bb349162f86", "d4898e4de47940ae9d8a362a4346b0b3", "50b16453e97f4fd8b28d5fdd955d4f4b", "95d9e25c190d4166af6e719c980b0bd9", "b5cab79313ed4a98ad7ff60c3e35982e", "22d23fdd47de4a6dbd6f72d0e8a840b5", "07e4a01a8ec54084b2dd5c78b51f9726", "a2696dbb08e145f3b9604efde6f70896", "fac00ed8632c4070bdcdb9acc451bceb", "88af261ed7eb4f4e9dd5c0feaa857282", "6a1e360989d4403e9be096bd915c2ba3", "1cb07a33cf33406593c97a87c0bd029b", "39de24be0d2d41ee8e15d252a995ff08", "b304f1ce0a79422daa5789c4295ec1ba", "b16cb35a28424349ba3f9731dabc9c3a", "de70481718df41a28e107f8d14d0c2c9", "88ec29c0856d44649fcfc6998faf0fbb", "e346f1138b7f4523903dba2ecaaf7489", "195d8a29d8094946bd71bed59ffc0be4", "f7ad570754704f638d22c7fd98f6df28", "bf583fa3791f4df192b49f1d234465a4", "ce2df69fd26841ca8e3cd1b68a6e0704", "c87140612b284f3f9a0cf2055557be0c", "865dd1be85954ad3b4c0e888aafa0e82", "16e476c9a389430e83d4334358b16a60", "2be7cc8d9d624fa79f680cfda0c57b47", "67339429686443ac943277dbe52b082f", "2c67742179f943b0920ce32c003e8a38", "83df3765c7224de78574991b68d85da4", "d695cba5016d4c73a551826b2e86640c", "70d90a1d29474a4d84cbc25bb57ba8de", "35dbb4dc3cae4ff5bba29a8130c7946b", "96b0bd36fe0f4068b3766d515cc8fc2c", "780ef15a19bb4cb6a00ce722bf904645", "bd8471d78fc74d349f483b0e70e15548", "bfd624810a5848859ce86a242022392e", "5e2ff176bbd6489c825448eebb6b38e8", "17a20d2e20c04d298273327f0441d4b9", "0cccdcc298ab4f23a3edfd4f314d02bc", "09f5e47b913a4f1284c3a6acbdfb04de", "f7453f19248f4869a53e50a7feefad80", "a860a9cf702f44e5ba804539c1b20fcc", "dd20cf409111420e96a6f74331d9a445", "db5564829f5a43799b7092d5951b5571", "38e8faff0eda408b8764b344cb1ce972", "e730eb5542f942098380ffb7894e5fee", "76cff1d3b5c448ee97bc1131fcb53d0e", "b2926c2647b147b383260bc06b556124", "e58bf14c2e5d43a29462ec7fcda4dcd3" ] }, "outputId": "62883d7d-e442-4a59-98aa-1a59dc76bc91" }, "outputs": [ { "output_type": "stream", "name": "stderr", "text": [ "[RANK 0] Initializing model: gpt2\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "Downloading (…)lve/main/config.json: 0%| | 0.00/665 [00:00" ], "application/javascript": [ "\n", " window._wandbApiKey = new Promise((resolve, reject) => {\n", " function loadScript(url) {\n", " return new Promise(function(resolve, reject) {\n", " let newScript = document.createElement(\"script\");\n", " newScript.onerror = reject;\n", " newScript.onload = resolve;\n", " document.body.appendChild(newScript);\n", " newScript.src = url;\n", " });\n", " }\n", " loadScript(\"https://cdn.jsdelivr.net/npm/postmate/build/postmate.min.js\").then(() => {\n", " const iframe = document.createElement('iframe')\n", " iframe.style.cssText = \"width:0;height:0;border:none\"\n", " document.body.appendChild(iframe)\n", " const handshake = new Postmate({\n", " container: iframe,\n", " url: 'https://wandb.ai/authorize'\n", " });\n", " const timeout = setTimeout(() => reject(\"Couldn't auto authenticate\"), 5000)\n", " handshake.then(function(child) {\n", " child.on('authorize', data => {\n", " clearTimeout(timeout)\n", " resolve(data)\n", " });\n", " });\n", " })\n", " });\n", " " ] }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "\u001b[34m\u001b[1mwandb\u001b[0m: Logging into wandb.ai. (Learn how to deploy a W&B server locally: https://wandb.me/wandb-server)\n", "\u001b[34m\u001b[1mwandb\u001b[0m: You can find your API key in your browser here: https://wandb.ai/authorize\n", "wandb: Paste an API key from your profile and hit enter, or press ctrl+c to quit:" ] }, { "name": "stdout", "output_type": "stream", "text": [ " ··········\n" ] }, { "output_type": "stream", "name": "stderr", "text": [ "\u001b[34m\u001b[1mwandb\u001b[0m: Appending key for api.wandb.ai to your netrc file: /root/.netrc\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "VBox(children=(Label(value='Waiting for wandb.init()...\\r'), FloatProgress(value=0.016668924749999783, max=1.0…" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "302ba1281be14034b595d8fb196f1828" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "" ], "text/html": [ "Tracking run with wandb version 0.14.2" ] }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "" ], "text/html": [ "Run data is saved locally in /content/wandb/run-20230411_100155-sdpne08p" ] }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "" ], "text/html": [ "Syncing run ipykernel_launcher/gpt2/1gpu:unknown to Weights & Biases (docs)
" ] }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "" ], "text/html": [ " View project at https://wandb.ai/sorry/trlx" ] }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "" ], "text/html": [ " View run at https://wandb.ai/sorry/trlx/runs/sdpne08p" ] }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "[RANK 0] Collecting rollouts\n", "[RANK 0] Logging sample example\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "\u001b[3m Sample Example \u001b[0m\n", "┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓\n", "┃\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mResponse \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mReward\u001b[0m\u001b[1m \u001b[0m┃\n", "┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━┩\n", "│ <|endoftext|> │ An artwork of a broken wine bottle in the medium of dry pigments<|endoftext|> │ 7 │\n", "└───────────────┴───────────────────────────────────────────────────────────────────────────────┴────────┘\n" ], "text/html": [ "
                                              Sample Example                                              \n",
              "┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓\n",
              "┃ Prompt         Response                                                                       Reward ┃\n",
              "┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━┩\n",
              "│ <|endoftext|> │ An artwork of a broken wine bottle in the medium of dry pigments<|endoftext|> │ 7      │\n",
              "└───────────────┴───────────────────────────────────────────────────────────────────────────────┴────────┘\n",
              "
\n" ] }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "[RANK 0] Logging experience string statistics\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "\u001b[3m Experience String Stats (mean ∈ [min, max]) \u001b[0m\n", "┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n", "┃\u001b[1m \u001b[0m\u001b[1mPrompt Length\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mOutput Length \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mSample Length \u001b[0m\u001b[1m \u001b[0m┃\n", "┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n", "│ 1.00 ∈ [1, 1] │ 25.64 ∈ [1, 63] │ 26.64 ∈ [2, 64] │\n", "└───────────────┴─────────────────┴─────────────────┘\n" ], "text/html": [ "
     Experience String Stats (mean ∈ [min, max])     \n",
              "┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓\n",
              "┃ Prompt Length  Output Length    Sample Length   ┃\n",
              "┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩\n",
              "│ 1.00 ∈ [1, 1] │ 25.64 ∈ [1, 63] │ 26.64 ∈ [2, 64] │\n",
              "└───────────────┴─────────────────┴─────────────────┘\n",
              "
\n" ] }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "[RANK 0] Starting training\n", "[RANK 0] Evaluating model\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "[generation sweep 0/1 | eval batch 0/2]: 0%| | 0/2 [00:00 Evaluation #0 \n", "┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n", "┃ prompt output ┃\n", "┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩\n", "│ │ Bolt-Rising Energy Generators (BGHGs) to replace nuclear waste │\n", "│ │ │\n", "│ │ By Naomi Oren │\n", "│ │ │\n", "│ │ 13 December 2018. Direct, long-term, investment-generating investment in nuclear battery battery │\n", "│ │ technology by Western-trained Russian scientists to replace nuclear waste to │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ │\n", "│ │ By Andrew O'Brien │\n", "│ │ │\n", "│ │ Alex Ovechkin scored four times to make it four to four with one goal, one assist and four shots to go │\n", "│ │ to keep the Russian to four points over four games to head to North America to host the Western │\n", "│ │ Conference champions. │\n", "│ │ │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ │\n", "│ │ Photo │\n", "│ │ │\n", "│ │ The question to answer to is whether to make the necessary changes to North Carolina Republican │\n", "│ │ leaders to keep North Carolina out of the Electoral College, despite Mr. Trump's enthusiasm over the │\n", "│ │ Republican primary, by allowing four times as many white voters to make the Electoral College a │\n", "└────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────┘\n", "\n" ] }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ " 0%| | 0/300 [00:00 Evaluation #1 \n", "┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n", "┃ prompt output ┃\n", "┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩\n", "│ │ Portrait of a man standing on the hill of mountains in the middle of his country │\n", "├────────┼──────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ A beautiful sunset, with a beautiful sunset. │\n", "│ │ │\n", "│ │ A beautiful sunset, with a beautiful sunset. Artstation │\n", "├────────┼──────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ portrait of a woman looking at a portrait of a man, with a deep, beautiful eyes. │\n", "└────────┴──────────────────────────────────────────────────────────────────────────────────┘\n", "\n" ] }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "[RANK 0] Evaluating model\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "[generation sweep 0/1 | eval batch 0/2]: 0%| | 0/2 [00:00 Evaluation #2 \n", "┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n", "┃ prompt output ┃\n", "┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩\n", "│ │ A beautiful beautiful beautiful beautiful beautiful beautiful beautiful beautiful beautiful beautiful │\n", "│ │ beautiful beautiful beautiful beautiful gorgeous beautiful beautiful beautiful beautiful beautiful │\n", "│ │ beautiful beautiful beautiful beautiful happy sad sad sad sad sad sad sad sad sad sad sad sad sad sad │\n", "│ │ sad sad sad sad sad sad sad sad sad sad sad sad sad sad sad sad │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ concept art A woman is surrounded by darkness, and as she looks on, a white light is shining in the │\n", "│ │ air. │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ A portrait headshot of a man with the face of a lion, made in the style of John Steinbeck, in which │\n", "│ │ the face is rendered in a close focus. The portrait headshot of a man with the face of a lion, made in │\n", "│ │ the style of John Steinbeck │\n", "└────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────┘\n", "\n" ] }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "[RANK 0] Evaluating model\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "[generation sweep 0/1 | eval batch 0/2]: 0%| | 0/2 [00:00 Evaluation #3 \n", "┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n", "┃ prompt output ┃\n", "┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩\n", "│ │ A painting of a man dressed as a giant turtle. │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ A painting of the face of the divine, with the figure of a god standing in front of a crowd. The │\n", "│ │ character's face is often detailed, with the person's eyes and body perfectly balanced. │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ An abandoned house in the middle of a forest │\n", "└────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────┘\n", "\n" ] }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "[RANK 0] Evaluating model\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "[generation sweep 0/1 | eval batch 0/2]: 0%| | 0/2 [00:00 Evaluation #4 \n", "┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n", "┃ prompt output ┃\n", "┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩\n", "│ │ A photograph of a human being, with a white background, surrounded by a group of people. │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ A scene with a woman sitting on a chair, looking out of the window, looking around, with a feeling of │\n", "│ │ mystery and hope. │\n", "├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n", "│ │ concept art by yoshitaka amano style │\n", "└────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────┘\n", "\n" ] }, "metadata": {} } ], "source": [ "model = trlx.train(\n", " \"gpt2\",\n", " config=config,\n", " samples=prompts,\n", " rewards=ratings,\n", " eval_prompts=[\"<|endoftext|>\"] * 64\n", ").model" ] }, { "cell_type": "code", "source": [ "# Infer the trained model\n", "from transformers import AutoTokenizer\n", "tokenizer = AutoTokenizer.from_pretrained(\"gpt2\")\n", "output = model.generate(**tokenizer([\"An astronaut riding a horse\"] * 16, return_tensors=\"pt\").to(0))\n", "tokenizer.batch_decode(output, skip_special_tokens=True)" ], "metadata": { "id": "GQYlKt2MR6VI", "colab": { "base_uri": "https://localhost:8080/" }, "outputId": "335c103d-99f5-4cdd-abf0-38d19f9f5478" }, "execution_count": 5, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ "['An astronaut riding a horse, an astronaut on a mountain',\n", " 'An astronaut riding a horse, beautiful portrait, detailed digital art by Artgerm, wlop, Anton Fadeev, rossdraws, Ruan Jia, John',\n", " 'An astronaut riding a horse, character design, realism, artstation, in the style sci-fi illustration, inspired by anime.',\n", " 'An astronaut riding a horse by oskar schlemmer',\n", " 'An astronaut riding a horse through the night on the cover of her book',\n", " 'An astronaut riding a horse, beautiful portrait, detailed digital art by Artgerm, wlop, Anton Fadeev, Ruan Jia, John Conrad Berkey and Robert',\n", " 'An astronaut riding a horse, a space cowboy riding a rocket, an astronaut, an astronaut wearing a sports gear, and a beautiful portrait of an astronaut.',\n", " 'An astronaut riding a horse, painting by Anton Fadeev, featured on artstation',\n", " 'An astronaut riding a horse, 4K digital illustration by John Berkey and James Gurney with Peter Morhbacher, John Berkey, Ross Tran, Artstation,',\n", " 'An astronaut riding a horse',\n", " 'An astronaut riding a horse, digital illustration by Ross Tran',\n", " 'An astronaut riding a horse in a spaceship in front of a mirror, oil on canvas portrait, detailed digital art by Artgerm, wlop, Anton Fadeev, ro',\n", " 'An astronaut riding a horse in the sky, by Paul Lehr',\n", " 'An astronaut riding a horse in space, cinematic portrait, 4K, Artstation, CGsociety, headshot, scifi fantasy sci-fi',\n", " 'An astronaut riding a horse, the background colors being neon green in an ancient cave, detailed illustration, artstation, headshot, head head, pastel colors, pastel',\n", " 'An astronaut riding a horse with sunglasses on in a futuristic park by Anato Finnstark, detailed digital art trending on artstation, trending on artstation']" ] }, "metadata": {}, "execution_count": 5 } ] }, { "cell_type": "code", "source": [ "# Save the model locally\n", "model.save_pretrained(\"gpt2-simulacra\")" ], "metadata": { "id": "M6CmVLmHYSDp" }, "execution_count": 6, "outputs": [] }, { "cell_type": "code", "source": [ "# To upload the model to Hugging Face, login first\n", "from huggingface_hub import notebook_login\n", "notebook_login()" ], "metadata": { "id": "ky6ZdutpemBF", "colab": { "base_uri": "https://localhost:8080/", "height": 359, "referenced_widgets": [ "85fbce9f974b4f1a9dc43f07270f1f94", "9c8d9e4cd71f410a92d6ee01de7233b9", "7c097895ebd940d196808f7e8be1a31f", "c8d49558d3fb4529b7e95e5bfdd07e0e", "1b48729b45834b19b7bc6bce1a597fa3", "d2b19aa008a94011b9f8381338633dcc", "f1615eab1bd6440bb41285d2c0e27167", "750372f934cc40a78c67521eb5e7fca3", "60d63a558e0e42d189f3ef26bd8685d7", "8b0dd1c38baf4cd6ade9745117110ec3", "8155966102e642daa07044d4c5295c4a", "803b37efef674f3ea6f1843eedf22532", "4c896a72cec74fc88faf763e2bdcc286", "88cdc3eab7544afd8dd0395edc59e140", "f3add46c129345f3a7fd2f77b282f9e7", "e6c74c39798245a48534d0cb4682a096", "5065cf8fbd6d42589d859198f6ba86ca" ] }, "outputId": "d3a6b285-48b3-4901-98cd-3a8694359c92" }, "execution_count": 7, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Token is valid.\n", "Your token has been saved in your configured git credential helpers (store).\n", "Your token has been saved to /root/.cache/huggingface/token\n", "Login successful\n" ] } ] }, { "cell_type": "code", "source": [ "# Upload the model to /gpt2-simulacra\n", "from huggingface_hub import create_repo, HfApi\n", "\n", "repo_id = create_repo(\"gpt2-simulacra\", private=False, exist_ok=True).repo_id\n", "HfApi().upload_folder(folder_path=\"gpt2-simulacra\", repo_id=repo_id)" ], "metadata": { "id": "pvQaCez9ZceW", "colab": { "base_uri": "https://localhost:8080/", "height": 99, "referenced_widgets": [ "53a97f11ec2c4e06bab451d6361755b8", "bb6bfdf5da7b44e5ba0d647026f9eb4b", "554784f790cc473aab9ec958615981d4", "f7eadf17772f4d7ab9dbd53d854b88d9", "c1f7770071d1472aaf93690833ce9c91", "d0a6fd5e9e9740f29ca83dec6bf8f62c", "6a97241fa9934dfa8f5b2905df8f2967", "d12ed34a282249c48e99534fb2fb5741", "1bb5f59f00d445b4a969a8cdbdc643c0", "e2b2c51b8b7e451e9fdda0ec1067fb4b", "536cce0673f54bf7918a89224e7cab1f", "287e4255da6a4199b74726fb78fe9bdd", "283e8bd6b3734c13b53e64ed7ebea8c6", "0f8c8ebf65644e71aa1d688cd3d7277f", "170f6366284d4672ac192eea6974ee09", "268728bbd32842daa02848f9a80d31ee", "ae56202e5a1f47b89dc5780b7dd7a38f", "4af987a9e3fb4cbdb381c9b181a20623", "a8f2cb8f176d49f9bd4ab1683a5965ad", "473eeb8e3e494e48bf90ad80e6100436", "981282357d8e47479178f9d5db56380c", "70e31e2786e5485cb158d5d7e0c913b5" ] }, "outputId": "a637e560-03a9-495a-c203-c7d0fe9508fc" }, "execution_count": 9, "outputs": [ { "output_type": "display_data", "data": { "text/plain": [ "pytorch_model.bin: 0%| | 0.00/1.77G [00:00
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. " } }, "7c097895ebd940d196808f7e8be1a31f": { "model_module": "@jupyter-widgets/controls", "model_name": "PasswordModel", "model_module_version": "1.5.0", "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_8b0dd1c38baf4cd6ade9745117110ec3", "placeholder": "​", "style": "IPY_MODEL_8155966102e642daa07044d4c5295c4a", "value": "" } }, "c8d49558d3fb4529b7e95e5bfdd07e0e": { "model_module": "@jupyter-widgets/controls", "model_name": "CheckboxModel", "model_module_version": "1.5.0", "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_803b37efef674f3ea6f1843eedf22532", "style": "IPY_MODEL_4c896a72cec74fc88faf763e2bdcc286", "value": true } }, "1b48729b45834b19b7bc6bce1a597fa3": { "model_module": "@jupyter-widgets/controls", "model_name": "ButtonModel", "model_module_version": "1.5.0", "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_88cdc3eab7544afd8dd0395edc59e140", "style": "IPY_MODEL_f3add46c129345f3a7fd2f77b282f9e7", "tooltip": "" } }, "d2b19aa008a94011b9f8381338633dcc": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_e6c74c39798245a48534d0cb4682a096", "placeholder": "​", "style": "IPY_MODEL_5065cf8fbd6d42589d859198f6ba86ca", "value": "\nPro 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. " } }, "f1615eab1bd6440bb41285d2c0e27167": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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%" } }, "750372f934cc40a78c67521eb5e7fca3": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "60d63a558e0e42d189f3ef26bd8685d7": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "8b0dd1c38baf4cd6ade9745117110ec3": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "8155966102e642daa07044d4c5295c4a": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "803b37efef674f3ea6f1843eedf22532": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "4c896a72cec74fc88faf763e2bdcc286": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "88cdc3eab7544afd8dd0395edc59e140": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "f3add46c129345f3a7fd2f77b282f9e7": { "model_module": "@jupyter-widgets/controls", "model_name": "ButtonStyleModel", "model_module_version": "1.5.0", "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": "" } }, "e6c74c39798245a48534d0cb4682a096": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "5065cf8fbd6d42589d859198f6ba86ca": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "53a97f11ec2c4e06bab451d6361755b8": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "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_bb6bfdf5da7b44e5ba0d647026f9eb4b", "IPY_MODEL_554784f790cc473aab9ec958615981d4", "IPY_MODEL_f7eadf17772f4d7ab9dbd53d854b88d9" ], "layout": "IPY_MODEL_c1f7770071d1472aaf93690833ce9c91" } }, "bb6bfdf5da7b44e5ba0d647026f9eb4b": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_d0a6fd5e9e9740f29ca83dec6bf8f62c", "placeholder": "​", "style": "IPY_MODEL_6a97241fa9934dfa8f5b2905df8f2967", "value": "pytorch_model.bin: 100%" } }, "554784f790cc473aab9ec958615981d4": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "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_d12ed34a282249c48e99534fb2fb5741", "max": 1769954509, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_1bb5f59f00d445b4a969a8cdbdc643c0", "value": 1769954509 } }, "f7eadf17772f4d7ab9dbd53d854b88d9": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_e2b2c51b8b7e451e9fdda0ec1067fb4b", "placeholder": "​", "style": "IPY_MODEL_536cce0673f54bf7918a89224e7cab1f", "value": " 1.77G/1.77G [00:57<00:00, 18.8MB/s]" } }, "c1f7770071d1472aaf93690833ce9c91": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "d0a6fd5e9e9740f29ca83dec6bf8f62c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "6a97241fa9934dfa8f5b2905df8f2967": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "d12ed34a282249c48e99534fb2fb5741": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "1bb5f59f00d445b4a969a8cdbdc643c0": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "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": "" } }, "e2b2c51b8b7e451e9fdda0ec1067fb4b": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "536cce0673f54bf7918a89224e7cab1f": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "287e4255da6a4199b74726fb78fe9bdd": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "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_283e8bd6b3734c13b53e64ed7ebea8c6", "IPY_MODEL_0f8c8ebf65644e71aa1d688cd3d7277f", "IPY_MODEL_170f6366284d4672ac192eea6974ee09" ], "layout": "IPY_MODEL_268728bbd32842daa02848f9a80d31ee" } }, "283e8bd6b3734c13b53e64ed7ebea8c6": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_ae56202e5a1f47b89dc5780b7dd7a38f", "placeholder": "​", "style": "IPY_MODEL_4af987a9e3fb4cbdb381c9b181a20623", "value": "Upload 1 LFS files: 100%" } }, "0f8c8ebf65644e71aa1d688cd3d7277f": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "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_a8f2cb8f176d49f9bd4ab1683a5965ad", "max": 1, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_473eeb8e3e494e48bf90ad80e6100436", "value": 1 } }, "170f6366284d4672ac192eea6974ee09": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_981282357d8e47479178f9d5db56380c", "placeholder": "​", "style": "IPY_MODEL_70e31e2786e5485cb158d5d7e0c913b5", "value": " 1/1 [00:57<00:00, 57.84s/it]" } }, "268728bbd32842daa02848f9a80d31ee": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "ae56202e5a1f47b89dc5780b7dd7a38f": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "4af987a9e3fb4cbdb381c9b181a20623": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "a8f2cb8f176d49f9bd4ab1683a5965ad": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "473eeb8e3e494e48bf90ad80e6100436": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "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": "" } }, "981282357d8e47479178f9d5db56380c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "70e31e2786e5485cb158d5d7e0c913b5": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "fab5dabfe50f4b82a08a8f10991179ed": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "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_003908be96bf46cc95f583f0a7f32e42", "IPY_MODEL_92c75cafc25d493bbc8a017e8a583aa8", "IPY_MODEL_ef632fc290104f01887d7751e4e974f6" ], "layout": "IPY_MODEL_a53e43637ed941f2bafa3ca6b125f6dc" } }, "003908be96bf46cc95f583f0a7f32e42": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_232fb04b11104c7f823708f363d38bb6", "placeholder": "​", "style": "IPY_MODEL_00e1f12aab9f4d629abc1762f7cad264", "value": "Downloading (…)lve/main/config.json: 100%" } }, "92c75cafc25d493bbc8a017e8a583aa8": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "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_2e227214cd444f549507a72c38fef17e", "max": 907, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_b8fc119e76924ea2a3aeb12cefecc639", "value": 907 } }, "ef632fc290104f01887d7751e4e974f6": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_76dae4f63b834861978541b181a727fe", "placeholder": "​", "style": "IPY_MODEL_5f9dc893ddc74ef5a90bf167e84ebaf1", "value": " 907/907 [00:00<00:00, 18.9kB/s]" } }, "a53e43637ed941f2bafa3ca6b125f6dc": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "232fb04b11104c7f823708f363d38bb6": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "00e1f12aab9f4d629abc1762f7cad264": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "2e227214cd444f549507a72c38fef17e": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "b8fc119e76924ea2a3aeb12cefecc639": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "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": "" } }, "76dae4f63b834861978541b181a727fe": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "5f9dc893ddc74ef5a90bf167e84ebaf1": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "bcd109700bd54c70a84e1ce19b1e5cce": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "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_2b468b5409a14b24a340fdfbb0c25d79", "IPY_MODEL_92b5c581a6744f9cb23825ae7bd1c679", "IPY_MODEL_81d9c79c2b9b41b6a6f589e6ede9396a" ], "layout": "IPY_MODEL_3e7a8bffb18044929da7e45261902338" } }, "2b468b5409a14b24a340fdfbb0c25d79": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_ff540433fabd4f029f0fc044392ab771", "placeholder": "​", "style": "IPY_MODEL_0e58fb79585443cc84cbfd92caac32d0", "value": "Downloading pytorch_model.bin: 100%" } }, "92b5c581a6744f9cb23825ae7bd1c679": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "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_b5e9f8afc9614c90918398e346168144", "max": 1769954509, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_63348b7dad7d4f1daa5f5f9e2c056df8", "value": 1769954509 } }, "81d9c79c2b9b41b6a6f589e6ede9396a": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_bbcd1f2fc43346c8acf6b1152826b66c", "placeholder": "​", "style": "IPY_MODEL_5abadbee2fbb42ddb6f7792c304da4d2", "value": " 1.77G/1.77G [00:17<00:00, 119MB/s]" } }, "3e7a8bffb18044929da7e45261902338": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "ff540433fabd4f029f0fc044392ab771": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "0e58fb79585443cc84cbfd92caac32d0": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "b5e9f8afc9614c90918398e346168144": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "63348b7dad7d4f1daa5f5f9e2c056df8": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "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": "" } }, "bbcd1f2fc43346c8acf6b1152826b66c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "5abadbee2fbb42ddb6f7792c304da4d2": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "d91a7a58783941749b8913047b7493fe": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "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_d69e5976fe124c22a986f058c152281f", "IPY_MODEL_5508ff5dabe24982a397e872841bac56", "IPY_MODEL_c55cac5d17994f07898c1cfa57646a31" ], "layout": "IPY_MODEL_38faff27741b4193a0c94ba75b53288c" } }, "d69e5976fe124c22a986f058c152281f": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_6cc05d747cda4d3a804bcb15e6c5ccff", "placeholder": "​", "style": "IPY_MODEL_1c3dbcd59b57461db267a51e68d295c0", "value": "Downloading (…)neration_config.json: 100%" } }, "5508ff5dabe24982a397e872841bac56": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "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_951afe3e2b134b33b72432474a4626a5", "max": 119, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_335333a54c8b4c0ca7e32aecb59dadd7", "value": 119 } }, "c55cac5d17994f07898c1cfa57646a31": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "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_02aaf8e5ddea435aa313a4d63542665f", "placeholder": "​", "style": "IPY_MODEL_3bca1cfdefc04764b5ce85db47a10137", "value": " 119/119 [00:00<00:00, 4.03kB/s]" } }, "38faff27741b4193a0c94ba75b53288c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "6cc05d747cda4d3a804bcb15e6c5ccff": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "1c3dbcd59b57461db267a51e68d295c0": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } }, "951afe3e2b134b33b72432474a4626a5": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "335333a54c8b4c0ca7e32aecb59dadd7": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "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": "" } }, "02aaf8e5ddea435aa313a4d63542665f": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "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 } }, "3bca1cfdefc04764b5ce85db47a10137": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "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": "" } } } } }, "nbformat": 4, "nbformat_minor": 0 }