{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "sMP4HRhzwPyj",
"metadata": {
"id": "sMP4HRhzwPyj"
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 1,
"id": "3564591f-25e4-4be6-9104-acec74b5a120",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3564591f-25e4-4be6-9104-acec74b5a120",
"outputId": "262ba65f-7c8f-4297-fc3c-cbbec9a45dbe"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: datasets in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (2.16.1)\n",
"Requirement already satisfied: tqdm>=4.62.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (4.66.1)\n",
"Requirement already satisfied: multiprocess in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (0.70.15)\n",
"Requirement already satisfied: huggingface-hub>=0.19.4 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (0.20.3)\n",
"Requirement already satisfied: pyarrow-hotfix in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (0.6)\n",
"Requirement already satisfied: xxhash in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (3.4.1)\n",
"Requirement already satisfied: requests>=2.19.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (2.31.0)\n",
"Requirement already satisfied: fsspec[http]<=2023.10.0,>=2023.1.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (2023.10.0)\n",
"Requirement already satisfied: pyyaml>=5.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (6.0.1)\n",
"Requirement already satisfied: dill<0.3.8,>=0.3.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (0.3.7)\n",
"Requirement already satisfied: packaging in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (23.2)\n",
"Requirement already satisfied: aiohttp in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (3.9.1)\n",
"Requirement already satisfied: pyarrow>=8.0.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (15.0.0)\n",
"Requirement already satisfied: filelock in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (3.13.1)\n",
"Requirement already satisfied: numpy>=1.17 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (1.26.3)\n",
"Requirement already satisfied: pandas in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (2.2.0)\n",
"Requirement already satisfied: frozenlist>=1.1.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from aiohttp->datasets) (1.4.1)\n",
"Requirement already satisfied: async-timeout<5.0,>=4.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from aiohttp->datasets) (4.0.3)\n",
"Requirement already satisfied: yarl<2.0,>=1.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from aiohttp->datasets) (1.9.4)\n",
"Requirement already satisfied: aiosignal>=1.1.2 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from aiohttp->datasets) (1.3.1)\n",
"Requirement already satisfied: multidict<7.0,>=4.5 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from aiohttp->datasets) (6.0.4)\n",
"Requirement already satisfied: attrs>=17.3.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from aiohttp->datasets) (23.2.0)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface-hub>=0.19.4->datasets) (4.9.0)\n",
"Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (2023.11.17)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (2.1.0)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (3.3.2)\n",
"Requirement already satisfied: idna<4,>=2.5 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (3.6)\n",
"Requirement already satisfied: colorama in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from tqdm>=4.62.1->datasets) (0.4.6)\n",
"Requirement already satisfied: tzdata>=2022.7 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from pandas->datasets) (2023.4)\n",
"Requirement already satisfied: pytz>=2020.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from pandas->datasets) (2023.3.post1)\n",
"Requirement already satisfied: python-dateutil>=2.8.2 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from pandas->datasets) (2.8.2)\n",
"Requirement already satisfied: six>=1.5 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.16.0)\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
}
],
"source": [
"!pip install datasets"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "bd4b0343-d24f-4ca0-9fcb-94307eaaf732",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "bd4b0343-d24f-4ca0-9fcb-94307eaaf732",
"outputId": "73f83898-df93-4271-993f-41b91be22eac"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: ipywidgets in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (8.1.1)\n",
"Requirement already satisfied: jupyterlab-widgets~=3.0.9 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (3.0.9)\n",
"Requirement already satisfied: traitlets>=4.3.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (5.14.1)\n",
"Requirement already satisfied: ipython>=6.1.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (8.20.0)\n",
"Requirement already satisfied: widgetsnbextension~=4.0.9 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (4.0.9)\n",
"Requirement already satisfied: comm>=0.1.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (0.2.1)\n",
"Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (3.0.43)\n",
"Requirement already satisfied: decorator in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (5.1.1)\n",
"Requirement already satisfied: matplotlib-inline in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.1.6)\n",
"Requirement already satisfied: exceptiongroup in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (1.2.0)\n",
"Requirement already satisfied: colorama in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.4.6)\n",
"Requirement already satisfied: jedi>=0.16 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.19.1)\n",
"Requirement already satisfied: pygments>=2.4.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (2.17.2)\n",
"Requirement already satisfied: stack-data in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.6.3)\n",
"Requirement already satisfied: parso<0.9.0,>=0.8.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from jedi>=0.16->ipython>=6.1.0->ipywidgets) (0.8.3)\n",
"Requirement already satisfied: wcwidth in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython>=6.1.0->ipywidgets) (0.2.13)\n",
"Requirement already satisfied: asttokens>=2.1.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from stack-data->ipython>=6.1.0->ipywidgets) (2.4.1)\n",
"Requirement already satisfied: executing>=1.2.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from stack-data->ipython>=6.1.0->ipywidgets) (2.0.1)\n",
"Requirement already satisfied: pure-eval in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from stack-data->ipython>=6.1.0->ipywidgets) (0.2.2)\n",
"Requirement already satisfied: six>=1.12.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from asttokens>=2.1.0->stack-data->ipython>=6.1.0->ipywidgets) (1.16.0)\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
}
],
"source": [
"pip install ipywidgets"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "9995b754-58c9-4c1d-8e8f-9e55741186c5",
"metadata": {
"id": "9995b754-58c9-4c1d-8e8f-9e55741186c5"
},
"outputs": [],
"source": [
"import datasets"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "87a513e0-f880-4219-9ffb-9a8c40707a69",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "87a513e0-f880-4219-9ffb-9a8c40707a69",
"outputId": "2bcbefe3-3038-4cac-e5f6-02103910f7f2"
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\Dell\\AppData\\Local\\Temp\\ipykernel_17672\\3078022459.py:1: FutureWarning: list_datasets is deprecated and will be removed in the next major version of datasets. Use 'huggingface_hub.list_datasets' instead.\n",
" all_ds = datasets.list_datasets()\n"
]
},
{
"data": {
"text/plain": [
"100953"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"all_ds = datasets.list_datasets()\n",
"len(all_ds)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "f20dcb4d-bd17-4bf4-839f-3013b4f40c84",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "f20dcb4d-bd17-4bf4-839f-3013b4f40c84",
"outputId": "1161acd5-97b8-4b0a-c93f-683b1838c597"
},
"outputs": [
{
"data": {
"text/plain": [
"['acronym_identification',\n",
" 'ade_corpus_v2',\n",
" 'adversarial_qa',\n",
" 'aeslc',\n",
" 'afrikaans_ner_corpus']"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"all_ds[:5]"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "63e676b3-0ce3-462a-b9e3-cc37c2f33703",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 169,
"referenced_widgets": [
"05cc2ce67be34a029089aa9064392ca6",
"e99d62aef49a4a7d85f86ebbac5ab786",
"ca827a559f9e4d0d99b408981a645287",
"7128e8b45e604f44af746f27b2e351bc",
"da0bf0f0a9454be8ae9a8a95ca37315d",
"c7ebc401b9584e5dae027ae7dd7141f5",
"ecace9056b82426190cb2d3c2b4ccd28",
"5a88f2286c7e4704b7b4defad53b2a27",
"e81220f2f5ef44a2bbf1fabd4dbfa8e8",
"c6aa521ffcad4eeb81326c53e363dd2e",
"e0b97ccf15be4026b764f9925f631c33",
"0c3d289d974f491d9f2edd93a17cd4f3",
"3d9010a4bfcf4d66b3652fc7aca5513e",
"1c36368b20d4410b92e3c2be7b8823aa",
"dc68447c05424480b23caab1c55d4acf",
"596e84f852484fd88f045c6451a39005",
"d49eb7b8d7bc4b51918c755062175476",
"69f952a2aa274616a5d92134e1da69d3",
"e86a2c0d7e614372a745df9262260e01",
"d3c05033a4484d129a5cdbc2d05fb925",
"09fd29c3ab924c6f879c490f57fdc515",
"55f94c32986047d9aceaceb933875539",
"ec8a4b6011ae46769c4531b46ff15875",
"b578afec38ba4964b59379a074c3ff50",
"1bd119557428468eac53ebb939dd1dba",
"9fe88a4505474eb6ae6d3932ee462101",
"7787e51fabb54ebc93c6e2e6fcc93463",
"8b55171076fb461384fe88c5d721f0ad",
"a8db1128ee054cc0b441db3a192f1be3",
"0ec06e317e7d4aa1b33b49a820409a36",
"dd80935d4c224cfd828950b714c82aa2",
"91ff43250f204bdfaa6668094cbb93d2",
"6c00fea3446c4f54b1c68b1b662f5f56"
]
},
"id": "63e676b3-0ce3-462a-b9e3-cc37c2f33703",
"outputId": "fe395356-79d1-4476-bfd9-411f9dcbde23"
},
"outputs": [],
"source": [
"dataset = datasets.load_dataset('NLPC-UOM/Sinhala-News-Source-classification')"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "b6593b70-5caa-4da2-92bb-594e67bd964c",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "b6593b70-5caa-4da2-92bb-594e67bd964c",
"outputId": "beb37a8b-af23-42b9-c2d8-511b8d097752"
},
"outputs": [
{
"data": {
"text/plain": [
"DatasetDict({\n",
" train: Dataset({\n",
" features: ['Unnamed: 0', 'comment', 'label'],\n",
" num_rows: 24094\n",
" })\n",
"})"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dataset"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "d80f383a-3928-48cb-9218-50b2e6a5577b",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "d80f383a-3928-48cb-9218-50b2e6a5577b",
"outputId": "61ba094e-5024-42b1-924c-7350680f1e6e"
},
"outputs": [
{
"data": {
"text/plain": [
"{'Unnamed: 0': [0, 1, 2, 3, 4],\n",
" 'comment': ['ත්\\u200dරිකුණාමලයේ දී නැගෙනහිර ආරක්ෂක සේනා මූලස්ථානය අලුත් අවුරුදු සමරයි',\n",
" '59 වන සේනාංකය අලුත් අවුරුද්ද සමරයි',\n",
" 'නිවාඩු නොමැතිව සේවයට නොපැමිණ සිටින ත්\\u200dරිවිධ හමුදා සාමාජිකයින් සඳහා මසක පොදු සමා කාලයක් ප්\\u200dරකාශයට පත් කෙරේ',\n",
" 'මුලතිව් ආරක්ෂක සේනා මුලස්ථානයේ බදාදා දිනයන් හිදී අධ්\\u200dයාපනික දේශන වැඩසටහන්',\n",
" 'බෝයගනේ විජයබාහු පාබල රෙජිමේන්තු මධ්\\u200dයස්ථානයට සපැමිණි යුද්ධ හමුදාධිපතිතුමන් මහත් හරසරින් පිළිගැනේ'],\n",
" 'label': [0, 0, 0, 0, 0]}"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dataset['train'][:5]"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "b6c82283-ce4c-491e-81c1-ba0e512f0704",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 49,
"referenced_widgets": [
"346960a10e0f40af9e8352aaa35c4be9",
"0f461807d1cd4835aa4abdb849c4f598",
"b36a9743b1c64bbaa4f3acd294c30db0",
"711c7cc532aa4643bb76097e5a4da939",
"590abed7bad6459ebd2e7b8a2578ddca",
"c6e5bcfc2c64440a8c13575b663647d9",
"d3f2b3d9b13e4572932b2d339ee52e84",
"0f844872396a4c0b8e5a0b1afa0ee51a",
"96cae566bff84a8e805958fa53592583",
"cbdc623872e54103bfda15e04eae870b",
"116822940ef34c7f9aea28c322d7679c"
]
},
"id": "b6c82283-ce4c-491e-81c1-ba0e512f0704",
"outputId": "94b358c7-6f04-4af5-f7e6-0398f35469f5"
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "45099238965c446a83710fe4aee69d12",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/24094 [00:00, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from tqdm.auto import tqdm\n",
"\n",
"text_data = []\n",
"file_count = 0\n",
"\n",
"for sample in tqdm(dataset['train']):\n",
" sample = sample['comment'].replace('\\n', '')\n",
" text_data.append(sample)\n",
" if len(text_data) == 10_000:\n",
" with open(f'sinhala_{file_count}.txt','w' , encoding='utf-8') as fp:\n",
" fp.write('\\n'.join(text_data))\n",
" text_data = []\n",
" file_count += 1\n",
"with open(f'sinhala_{file_count}.txt','w' , encoding='utf-8') as fp:\n",
" fp.write('\\n'.join(text_data))"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "585f9800-984f-40fe-9b06-35cd40229d90",
"metadata": {
"id": "585f9800-984f-40fe-9b06-35cd40229d90"
},
"outputs": [],
"source": [
"from pathlib import Path"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "503f9c3c-e348-478f-b743-cff3ce5f4465",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "503f9c3c-e348-478f-b743-cff3ce5f4465",
"outputId": "dd533b8b-df41-463a-b6e0-71fd8b146098"
},
"outputs": [
{
"data": {
"text/plain": [
"['sinhala_0.txt', 'sinhala_1.txt', 'sinhala_2.txt']"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"paths = [str(x) for x in Path('./').glob('*.txt')]\n",
"\n",
"paths[:3]"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "5e9baa0f-6c33-45b8-8487-202627067436",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "5e9baa0f-6c33-45b8-8487-202627067436",
"outputId": "89aa7d9d-56b0-4b18-ab49-cc31934beccb"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: tokenizers in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (0.15.1)\n",
"Requirement already satisfied: huggingface_hub<1.0,>=0.16.4 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from tokenizers) (0.20.3)\n",
"Requirement already satisfied: fsspec>=2023.5.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface_hub<1.0,>=0.16.4->tokenizers) (2023.10.0)\n",
"Requirement already satisfied: packaging>=20.9 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface_hub<1.0,>=0.16.4->tokenizers) (23.2)\n",
"Requirement already satisfied: pyyaml>=5.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface_hub<1.0,>=0.16.4->tokenizers) (6.0.1)\n",
"Requirement already satisfied: tqdm>=4.42.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface_hub<1.0,>=0.16.4->tokenizers) (4.66.1)\n",
"Requirement already satisfied: requests in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface_hub<1.0,>=0.16.4->tokenizers) (2.31.0)\n",
"Requirement already satisfied: filelock in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface_hub<1.0,>=0.16.4->tokenizers) (3.13.1)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface_hub<1.0,>=0.16.4->tokenizers) (4.9.0)\n",
"Requirement already satisfied: colorama in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from tqdm>=4.42.1->huggingface_hub<1.0,>=0.16.4->tokenizers) (0.4.6)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->huggingface_hub<1.0,>=0.16.4->tokenizers) (3.3.2)\n",
"Requirement already satisfied: idna<4,>=2.5 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->huggingface_hub<1.0,>=0.16.4->tokenizers) (3.6)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->huggingface_hub<1.0,>=0.16.4->tokenizers) (2.1.0)\n",
"Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->huggingface_hub<1.0,>=0.16.4->tokenizers) (2023.11.17)\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
}
],
"source": [
"!pip install tokenizers"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "225c9c9a-0182-4bfe-92fc-2234e3515560",
"metadata": {
"id": "225c9c9a-0182-4bfe-92fc-2234e3515560"
},
"outputs": [],
"source": [
"from tokenizers import ByteLevelBPETokenizer"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "501098a0-5df1-448b-99e6-52143cb6751f",
"metadata": {
"id": "501098a0-5df1-448b-99e6-52143cb6751f"
},
"outputs": [],
"source": [
"tokenizer = ByteLevelBPETokenizer()"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "24ef02fe-5703-4b87-a92a-e6e936f7fd96",
"metadata": {
"id": "24ef02fe-5703-4b87-a92a-e6e936f7fd96"
},
"outputs": [],
"source": [
"tokenizer.train(files=paths, vocab_size=30_522, min_frequency=2,\n",
" special_tokens=['', '', '', ''\n",
" ])"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "da5bfba4-6c97-4256-b669-f75026b93e09",
"metadata": {
"id": "da5bfba4-6c97-4256-b669-f75026b93e09"
},
"outputs": [],
"source": [
"import os\n",
"os.mkdir('sinhalaMLM5')"
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "e25beeaa-e969-4c33-98e2-65523d827d95",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "e25beeaa-e969-4c33-98e2-65523d827d95",
"outputId": "28a1ea45-4c25-4bb2-f626-1a388bb23697"
},
"outputs": [
{
"data": {
"text/plain": [
"['sinhalaMLM5\\\\vocab.json', 'sinhalaMLM5\\\\merges.txt']"
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tokenizer.save_model('sinhalaMLM5')"
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "222a9edf-15ed-44a8-aaba-2afee76b3cbf",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "222a9edf-15ed-44a8-aaba-2afee76b3cbf",
"outputId": "d3f76f56-ec03-45ab-c75a-f5062fbf0e0d"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: transformers in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (4.37.1)\n",
"Requirement already satisfied: numpy>=1.17 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (1.26.3)\n",
"Requirement already satisfied: pyyaml>=5.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (6.0.1)\n",
"Requirement already satisfied: packaging>=20.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (23.2)\n",
"Requirement already satisfied: tokenizers<0.19,>=0.14 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (0.15.1)\n",
"Requirement already satisfied: requests in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (2.31.0)\n",
"Requirement already satisfied: tqdm>=4.27 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (4.66.1)\n",
"Requirement already satisfied: filelock in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (3.13.1)\n",
"Requirement already satisfied: regex!=2019.12.17 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (2023.12.25)\n",
"Requirement already satisfied: huggingface-hub<1.0,>=0.19.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (0.20.3)\n",
"Requirement already satisfied: safetensors>=0.3.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from transformers) (0.4.2)\n",
"Requirement already satisfied: fsspec>=2023.5.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface-hub<1.0,>=0.19.3->transformers) (2023.10.0)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface-hub<1.0,>=0.19.3->transformers) (4.9.0)\n",
"Requirement already satisfied: colorama in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from tqdm>=4.27->transformers) (0.4.6)\n",
"Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->transformers) (2023.11.17)\n",
"Requirement already satisfied: idna<4,>=2.5 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->transformers) (3.6)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->transformers) (3.3.2)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests->transformers) (2.1.0)\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
}
],
"source": [
"!pip install transformers"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "864266b5-77d5-451e-9c01-096588ff62e4",
"metadata": {
"id": "864266b5-77d5-451e-9c01-096588ff62e4"
},
"outputs": [],
"source": [
"#pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cpu"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "67d2fc2e-9cb0-4306-9769-0c34a2111c37",
"metadata": {
"id": "67d2fc2e-9cb0-4306-9769-0c34a2111c37"
},
"outputs": [],
"source": [
"from transformers import RobertaTokenizerFast"
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "474f1e8c-e499-4205-96cc-44f4a4c9e4e3",
"metadata": {
"id": "474f1e8c-e499-4205-96cc-44f4a4c9e4e3"
},
"outputs": [],
"source": [
"tokenizer = RobertaTokenizerFast.from_pretrained('sinhalaMLM5')"
]
},
{
"cell_type": "code",
"execution_count": 22,
"id": "3ea07602-9cd6-4c12-a860-9302e4db7607",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3ea07602-9cd6-4c12-a860-9302e4db7607",
"outputId": "779097d6-5ec2-4359-fbf1-3decd11d0a36"
},
"outputs": [
{
"data": {
"text/plain": [
"{'input_ids': [0, 3365, 266, 305, 282, 558, 2], 'attention_mask': [1, 1, 1, 1, 1, 1, 1]}"
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tokenizer('ළමයා ගෙදර')"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "90cec429-ee77-4c34-814b-3fec3f5b035e",
"metadata": {
"id": "90cec429-ee77-4c34-814b-3fec3f5b035e"
},
"outputs": [],
"source": [
"import torch\n",
"def mlm(tensor):\n",
" rand = torch.rand(tensor.shape)\n",
" mask_arr = (rand < 0.15) * (tensor > 2)\n",
" for i in range( tensor.shape[0]):\n",
" selection = torch.flatten(mask_arr[i].nonzero()).tolist() #[[2,5,8]]\n",
" tensor[i, selection] = 3\n",
" return tensor"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "2c22dc9d-cf4f-4cf0-a7b4-364464c525d7",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "2c22dc9d-cf4f-4cf0-a7b4-364464c525d7",
"outputId": "6b42dd3f-a7ed-4821-a446-9618127c7038"
},
"outputs": [
{
"data": {
"text/plain": [
"['sinhala_0.txt', 'sinhala_1.txt', 'sinhala_2.txt']"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from pathlib import Path\n",
"\n",
"paths = [str(x) for x in Path('./').glob('*.txt')]\n",
"paths[:3]"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "d19907e4-e54d-4596-a8a8-099e6965bcef",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 49,
"referenced_widgets": [
"deaa44b4f85f41ac8bf9785a290d7496",
"c636f70868d644f283af9494fe3ef5c2",
"c795d84cf0e04e9dbe31c66fee2da9ba",
"fac79cdf5b72425ca2770fa0dcf32be0",
"3455cfbc927a44628d2c44ad251faf88",
"7f7f942183f042b58895d4f6f5206238",
"eb9541ecc16c488a9d770b3fdb7e08f0",
"df8d8240b9af4cbba91d88c3e886fb55",
"6aa7e04512f244d1aebdba9a6bf4cbd0",
"7b66539e5b504cc3ba9bc91c36c43002",
"4cec3f0b3c09470697dcc3d643527379"
]
},
"id": "d19907e4-e54d-4596-a8a8-099e6965bcef",
"outputId": "c3085b91-bce2-4d5a-b3d5-ec101799ded5"
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0d69317043be4bdb9adcf9017673a970",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/1 [00:00, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from tqdm.auto import tqdm\n",
"\n",
"input_ids = []\n",
"mask = []\n",
"labels = []\n",
"\n",
"for path in tqdm(paths[:1]):\n",
" with open(path, 'r', encoding='utf-8') as f:\n",
" lines = f.read().split('\\n')\n",
" sample = tokenizer(lines, max_length=512, padding='max_length',\n",
"truncation=True, return_tensors='pt')\n",
" labels.append(sample.input_ids)\n",
" mask.append(sample.attention_mask)\n",
" input_ids.append(mlm(sample.input_ids.detach().clone()))"
]
},
{
"cell_type": "code",
"execution_count": 26,
"id": "ef40f10e-ca0b-416a-8481-6ff6e343372e",
"metadata": {
"id": "ef40f10e-ca0b-416a-8481-6ff6e343372e"
},
"outputs": [],
"source": [
"input_ids = torch.cat(input_ids)\n",
"mask = torch.cat(mask)\n",
"labels = torch.cat(labels)"
]
},
{
"cell_type": "code",
"execution_count": 27,
"id": "3b173e1a-96d0-40e6-9883-4f91772c47a1",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3b173e1a-96d0-40e6-9883-4f91772c47a1",
"outputId": "fbcf23e2-0c1d-4cdb-ab45-9608cc811a68"
},
"outputs": [
{
"data": {
"text/plain": [
"tensor([ 0, 273, 287, 268, 264, 272, 270, 301, 266, 1284, 279, 295,\n",
" 285, 298, 288, 292, 282, 747, 264, 268])"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"input_ids[0][:20]"
]
},
{
"cell_type": "code",
"execution_count": 28,
"id": "3915fa7d-ae56-4d86-b10d-4431a4739c0e",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3915fa7d-ae56-4d86-b10d-4431a4739c0e",
"outputId": "816c9cc4-e843-4afa-b953-65457d61bdac"
},
"outputs": [
{
"data": {
"text/plain": [
"tensor([ 0, 273, 287, 268, 264, 272, 270, 301, 266, 1284])"
]
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"labels[0][:10]"
]
},
{
"cell_type": "code",
"execution_count": 29,
"id": "9202a316-001b-4602-9b8f-9ea93aa5083d",
"metadata": {
"id": "9202a316-001b-4602-9b8f-9ea93aa5083d"
},
"outputs": [],
"source": [
"encodings = {\n",
" 'input_ids': input_ids,\n",
" 'attention_mask': mask,\n",
" 'labels': labels\n",
"}"
]
},
{
"cell_type": "code",
"execution_count": 30,
"id": "1c5a01c5-14e2-4bdb-8bfa-12becbe02de6",
"metadata": {
"id": "1c5a01c5-14e2-4bdb-8bfa-12becbe02de6"
},
"outputs": [],
"source": [
"#from torch.utils.data import Dataset\n",
"\n",
"class Dataset(torch.utils.data.Dataset):\n",
" def __init__(self, encodings):\n",
" self.encodings = encodings\n",
" def __len__(self):\n",
" return self.encodings['input_ids'].shape[0]\n",
" def __getitem__(self, i):\n",
" return {key: tensor[i] for key, tensor in self.encodings.items()}"
]
},
{
"cell_type": "code",
"execution_count": 32,
"id": "e113560d-b382-49d1-afc0-9ad03da9b212",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "e113560d-b382-49d1-afc0-9ad03da9b212",
"outputId": "f9984ef5-0c3d-4920-b605-b6be241ece95"
},
"outputs": [
{
"data": {
"text/plain": [
"10000"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"input_ids.shape[0]"
]
},
{
"cell_type": "code",
"execution_count": 33,
"id": "ebc01aa1-6a6e-4e20-b88a-9d91deca0c0a",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "ebc01aa1-6a6e-4e20-b88a-9d91deca0c0a",
"outputId": "7727c56b-9d20-493e-9f94-4ae7326dd579"
},
"outputs": [
{
"data": {
"text/plain": [
"dict_items([('input_ids', tensor([[ 0, 273, 287, ..., 1, 1, 1],\n",
" [ 0, 1907, 362, ..., 1, 1, 1],\n",
" [ 0, 265, 264, ..., 1, 1, 1],\n",
" ...,\n",
" [ 0, 289, 350, ..., 1, 1, 1],\n",
" [ 0, 303, 287, ..., 1, 1, 1],\n",
" [ 0, 289, 300, ..., 1, 1, 1]])), ('attention_mask', tensor([[1, 1, 1, ..., 0, 0, 0],\n",
" [1, 1, 1, ..., 0, 0, 0],\n",
" [1, 1, 1, ..., 0, 0, 0],\n",
" ...,\n",
" [1, 1, 1, ..., 0, 0, 0],\n",
" [1, 1, 1, ..., 0, 0, 0],\n",
" [1, 1, 1, ..., 0, 0, 0]])), ('labels', tensor([[ 0, 273, 287, ..., 1, 1, 1],\n",
" [ 0, 1907, 362, ..., 1, 1, 1],\n",
" [ 0, 265, 264, ..., 1, 1, 1],\n",
" ...,\n",
" [ 0, 289, 350, ..., 1, 1, 1],\n",
" [ 0, 303, 287, ..., 1, 1, 1],\n",
" [ 0, 289, 300, ..., 1, 1, 1]]))])"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"encodings.items()"
]
},
{
"cell_type": "code",
"execution_count": 34,
"id": "9a329bc6-2286-4d9a-89f4-041ba2f78951",
"metadata": {
"id": "9a329bc6-2286-4d9a-89f4-041ba2f78951"
},
"outputs": [],
"source": [
"dataset = Dataset(encodings)"
]
},
{
"cell_type": "code",
"execution_count": 35,
"id": "1ad3e3f5-bb45-4d51-8ccb-62ab73a1788f",
"metadata": {
"id": "1ad3e3f5-bb45-4d51-8ccb-62ab73a1788f"
},
"outputs": [],
"source": [
"dataloader = torch.utils.data.DataLoader(dataset, batch_size=1, shuffle=True)"
]
},
{
"cell_type": "code",
"execution_count": 36,
"id": "900571cd-5061-41f8-b361-e7889ba534cf",
"metadata": {
"id": "900571cd-5061-41f8-b361-e7889ba534cf"
},
"outputs": [],
"source": [
"from transformers import RobertaConfig"
]
},
{
"cell_type": "code",
"execution_count": 37,
"id": "d35e11be-3ee6-4e7c-b49c-6900434553cf",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "d35e11be-3ee6-4e7c-b49c-6900434553cf",
"outputId": "e9689f46-fa7c-437a-acc8-b24f83aa3974"
},
"outputs": [
{
"data": {
"text/plain": [
"5324"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tokenizer.vocab_size\n"
]
},
{
"cell_type": "code",
"execution_count": 38,
"id": "69d081bc-a4a5-4970-a361-05b426d5afa2",
"metadata": {
"id": "69d081bc-a4a5-4970-a361-05b426d5afa2"
},
"outputs": [],
"source": [
"config = RobertaConfig(\n",
" vocab_size = tokenizer.vocab_size,\n",
" max_position_embeddings=514,\n",
" hidden_size=768,\n",
" num_attention_heads=12,\n",
" num_hidden_layers=6,\n",
" type_vocab_size=1\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 39,
"id": "4386905e-2647-4082-aa50-e884cded82b4",
"metadata": {
"id": "4386905e-2647-4082-aa50-e884cded82b4"
},
"outputs": [],
"source": [
"from transformers import RobertaForMaskedLM"
]
},
{
"cell_type": "code",
"execution_count": 40,
"id": "8a6fec9d-31da-4657-906d-a5b356a32328",
"metadata": {
"id": "8a6fec9d-31da-4657-906d-a5b356a32328"
},
"outputs": [],
"source": [
"model = RobertaForMaskedLM(config)"
]
},
{
"cell_type": "code",
"execution_count": 41,
"id": "3ae60e59-6351-4cee-a780-8d753ba55c0a",
"metadata": {
"id": "3ae60e59-6351-4cee-a780-8d753ba55c0a"
},
"outputs": [],
"source": [
"device = torch.device('cuda') if torch.cuda.is_available() else torch.device ('cpu')"
]
},
{
"cell_type": "code",
"execution_count": 42,
"id": "3558fcc7-64c5-46f3-be9a-3199aae9f59b",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3558fcc7-64c5-46f3-be9a-3199aae9f59b",
"outputId": "8a30c948-2804-4ef4-f83f-a702d36b4c3d"
},
"outputs": [
{
"data": {
"text/plain": [
"RobertaForMaskedLM(\n",
" (roberta): RobertaModel(\n",
" (embeddings): RobertaEmbeddings(\n",
" (word_embeddings): Embedding(5324, 768, padding_idx=1)\n",
" (position_embeddings): Embedding(514, 768, padding_idx=1)\n",
" (token_type_embeddings): Embedding(1, 768)\n",
" (LayerNorm): LayerNorm((768,), eps=1e-12, elementwise_affine=True)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (encoder): RobertaEncoder(\n",
" (layer): ModuleList(\n",
" (0-5): 6 x RobertaLayer(\n",
" (attention): RobertaAttention(\n",
" (self): RobertaSelfAttention(\n",
" (query): Linear(in_features=768, out_features=768, bias=True)\n",
" (key): Linear(in_features=768, out_features=768, bias=True)\n",
" (value): Linear(in_features=768, out_features=768, bias=True)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" (output): RobertaSelfOutput(\n",
" (dense): Linear(in_features=768, out_features=768, bias=True)\n",
" (LayerNorm): LayerNorm((768,), eps=1e-12, elementwise_affine=True)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" )\n",
" (intermediate): RobertaIntermediate(\n",
" (dense): Linear(in_features=768, out_features=3072, bias=True)\n",
" (intermediate_act_fn): GELUActivation()\n",
" )\n",
" (output): RobertaOutput(\n",
" (dense): Linear(in_features=3072, out_features=768, bias=True)\n",
" (LayerNorm): LayerNorm((768,), eps=1e-12, elementwise_affine=True)\n",
" (dropout): Dropout(p=0.1, inplace=False)\n",
" )\n",
" )\n",
" )\n",
" )\n",
" )\n",
" (lm_head): RobertaLMHead(\n",
" (dense): Linear(in_features=768, out_features=768, bias=True)\n",
" (layer_norm): LayerNorm((768,), eps=1e-12, elementwise_affine=True)\n",
" (decoder): Linear(in_features=768, out_features=5324, bias=True)\n",
" )\n",
")"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"model.to(device)"
]
},
{
"cell_type": "code",
"execution_count": 43,
"id": "c9bfc830-d445-4203-97b9-a67f23f4b7f1",
"metadata": {
"id": "c9bfc830-d445-4203-97b9-a67f23f4b7f1"
},
"outputs": [],
"source": [
"from transformers import AdamW"
]
},
{
"cell_type": "code",
"execution_count": 44,
"id": "651b53ff-dbdb-4665-9ee8-4c15e96e4ba9",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "651b53ff-dbdb-4665-9ee8-4c15e96e4ba9",
"outputId": "ab58812f-5d63-46c8-f6de-0f91dddaf500"
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\Dell\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\transformers\\optimization.py:429: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set `no_deprecation_warning=True` to disable this warning\n",
" warnings.warn(\n"
]
}
],
"source": [
"optim = AdamW(model.parameters(), lr=1e-4)"
]
},
{
"cell_type": "code",
"execution_count": 45,
"id": "81d298ed-4bff-443b-97b7-8dd7cff5f2aa",
"metadata": {
"id": "81d298ed-4bff-443b-97b7-8dd7cff5f2aa"
},
"outputs": [],
"source": [
"from tqdm.auto import tqdm"
]
},
{
"cell_type": "code",
"execution_count": 46,
"id": "7ec88289-b38d-4317-8797-b2b2192ff407",
"metadata": {
"id": "7ec88289-b38d-4317-8797-b2b2192ff407"
},
"outputs": [],
"source": [
"epochs = 2"
]
},
{
"cell_type": "code",
"execution_count": 47,
"id": "6fe6ccda-fc31-4785-b9f0-ec70e8bfb09a",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 49,
"referenced_widgets": [
"ec72d3cae5c7479686a1436217fdd3f0",
"3f2ef370ef4d4c7a982780a48f565d55",
"6593342f455d4aec98317787eeebd944",
"9c8eb12dd2a74bf4a2e775909118e26f",
"90ffa7f4cf3a4300b0e6c849964ea558",
"b34920a246b547a692b3ceac14c3e37e",
"9763cc425fd9442c89b9622fe3424683",
"4bd6c17872144637b7bcd60cf7ad0ccd",
"922b476df0c9461b8180438a35e585dd",
"b3f7bd2abfbf4d42baf9232984e7fa77",
"17e3f0de1d144cc69053a9f3823d13d0"
]
},
"id": "6fe6ccda-fc31-4785-b9f0-ec70e8bfb09a",
"outputId": "3d703f2e-08b8-4938-ca36-05624db8fe1c"
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d7d67479daa4402f86cb07765909753e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/10000 [00:00, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"loop = tqdm(dataloader, leave=True)\n",
"for batch in loop:\n",
" optim.zero_grad()\n",
" input_ids = batch['input_ids'].to(device)\n",
" mask = batch['attention_mask'].to(device)\n",
" labels = batch['labels'].to(device)\n",
" outputs = model(input_ids, attention_mask=mask,\n",
" labels=labels)\n",
" loss = outputs.loss\n",
" loss.backward()\n",
" optim.step()\n",
"\n",
" loop.set_description(f'Epoch: {epochs}')\n",
" loop.set_postfix(loss=loss.item())"
]
},
{
"cell_type": "code",
"execution_count": 48,
"id": "e9c49ba7-a98d-47d3-8c7f-8807c591ca03",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 175
},
"id": "e9c49ba7-a98d-47d3-8c7f-8807c591ca03",
"outputId": "aea56d88-b460-409e-df72-09100e8835b0"
},
"outputs": [],
"source": [
"model.save_pretrained('./sinhalaMLM6') # and don't forget to save sinhalaMLM"
]
},
{
"cell_type": "code",
"execution_count": 51,
"id": "rmUzwIb0GuPe",
"metadata": {
"id": "rmUzwIb0GuPe"
},
"outputs": [],
"source": [
"from transformers import pipeline"
]
},
{
"cell_type": "code",
"execution_count": 52,
"id": "kthAcyhqHRSu",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 175
},
"id": "kthAcyhqHRSu",
"outputId": "a89d20ce-a219-4744-be01-1ed7d420f181"
},
"outputs": [
{
"ename": "OSError",
"evalue": "Can't load tokenizer for 'sinhalaMLM6'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'sinhalaMLM6' is the correct path to a directory containing all relevant files for a RobertaTokenizerFast tokenizer.",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mOSError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[1;32mIn[52], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m fill \u001b[38;5;241m=\u001b[39m \u001b[43mpipeline\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mfill-mask\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mmodel\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43msinhalaMLM6\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtokenizer\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43msinhalaMLM6\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n",
"File \u001b[1;32m~\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\transformers\\pipelines\\__init__.py:967\u001b[0m, in \u001b[0;36mpipeline\u001b[1;34m(task, model, config, tokenizer, feature_extractor, image_processor, framework, revision, use_fast, token, device, device_map, torch_dtype, trust_remote_code, model_kwargs, pipeline_class, **kwargs)\u001b[0m\n\u001b[0;32m 964\u001b[0m tokenizer_kwargs \u001b[38;5;241m=\u001b[39m model_kwargs\u001b[38;5;241m.\u001b[39mcopy()\n\u001b[0;32m 965\u001b[0m tokenizer_kwargs\u001b[38;5;241m.\u001b[39mpop(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtorch_dtype\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;28;01mNone\u001b[39;00m)\n\u001b[1;32m--> 967\u001b[0m tokenizer \u001b[38;5;241m=\u001b[39m AutoTokenizer\u001b[38;5;241m.\u001b[39mfrom_pretrained(\n\u001b[0;32m 968\u001b[0m tokenizer_identifier, use_fast\u001b[38;5;241m=\u001b[39muse_fast, _from_pipeline\u001b[38;5;241m=\u001b[39mtask, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mhub_kwargs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mtokenizer_kwargs\n\u001b[0;32m 969\u001b[0m )\n\u001b[0;32m 971\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m load_image_processor:\n\u001b[0;32m 972\u001b[0m \u001b[38;5;66;03m# Try to infer image processor from model or config name (if provided as str)\u001b[39;00m\n\u001b[0;32m 973\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m image_processor \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n",
"File \u001b[1;32m~\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\transformers\\models\\auto\\tokenization_auto.py:832\u001b[0m, in \u001b[0;36mAutoTokenizer.from_pretrained\u001b[1;34m(cls, pretrained_model_name_or_path, *inputs, **kwargs)\u001b[0m\n\u001b[0;32m 830\u001b[0m tokenizer_class_py, tokenizer_class_fast \u001b[38;5;241m=\u001b[39m TOKENIZER_MAPPING[\u001b[38;5;28mtype\u001b[39m(config)]\n\u001b[0;32m 831\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m tokenizer_class_fast \u001b[38;5;129;01mand\u001b[39;00m (use_fast \u001b[38;5;129;01mor\u001b[39;00m tokenizer_class_py \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m):\n\u001b[1;32m--> 832\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m tokenizer_class_fast\u001b[38;5;241m.\u001b[39mfrom_pretrained(pretrained_model_name_or_path, \u001b[38;5;241m*\u001b[39minputs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n\u001b[0;32m 833\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[0;32m 834\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m tokenizer_class_py \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n",
"File \u001b[1;32m~\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\transformers\\tokenization_utils_base.py:2013\u001b[0m, in \u001b[0;36mPreTrainedTokenizerBase.from_pretrained\u001b[1;34m(cls, pretrained_model_name_or_path, cache_dir, force_download, local_files_only, token, revision, *init_inputs, **kwargs)\u001b[0m\n\u001b[0;32m 2007\u001b[0m logger\u001b[38;5;241m.\u001b[39minfo(\n\u001b[0;32m 2008\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mCan\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mt load following files from cache: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00munresolved_files\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m and cannot check if these \u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 2009\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mfiles are necessary for the tokenizer to operate.\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 2010\u001b[0m )\n\u001b[0;32m 2012\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mall\u001b[39m(full_file_name \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m \u001b[38;5;28;01mfor\u001b[39;00m full_file_name \u001b[38;5;129;01min\u001b[39;00m resolved_vocab_files\u001b[38;5;241m.\u001b[39mvalues()):\n\u001b[1;32m-> 2013\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mEnvironmentError\u001b[39;00m(\n\u001b[0;32m 2014\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mCan\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mt load tokenizer for \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mpretrained_model_name_or_path\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m. If you were trying to load it from \u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 2015\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mhttps://huggingface.co/models\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m, make sure you don\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mt have a local directory with the same name. \u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 2016\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mOtherwise, make sure \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mpretrained_model_name_or_path\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m is the correct path to a directory \u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 2017\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mcontaining all relevant files for a \u001b[39m\u001b[38;5;132;01m{\u001b[39;00m\u001b[38;5;28mcls\u001b[39m\u001b[38;5;241m.\u001b[39m\u001b[38;5;18m__name__\u001b[39m\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m tokenizer.\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 2018\u001b[0m )\n\u001b[0;32m 2020\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m file_id, file_path \u001b[38;5;129;01min\u001b[39;00m vocab_files\u001b[38;5;241m.\u001b[39mitems():\n\u001b[0;32m 2021\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m file_id \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;129;01min\u001b[39;00m resolved_vocab_files:\n",
"\u001b[1;31mOSError\u001b[0m: Can't load tokenizer for 'sinhalaMLM6'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'sinhalaMLM6' is the correct path to a directory containing all relevant files for a RobertaTokenizerFast tokenizer."
]
}
],
"source": [
"fill = pipeline('fill-mask', model='sinhalaMLM6', tokenizer='sinhalaMLM6')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "zWf4QTD7Hn5u",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 175
},
"id": "zWf4QTD7Hn5u",
"outputId": "ddac19e4-31c6-43f0-c4f0-eeae66603fe7"
},
"outputs": [],
"source": [
"fill(f'මම ගෙදර ය{fill.tokenizer.mask_token}')"
]
}
],
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"05cc2ce67be34a029089aa9064392ca6": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_e99d62aef49a4a7d85f86ebbac5ab786",
"IPY_MODEL_ca827a559f9e4d0d99b408981a645287",
"IPY_MODEL_7128e8b45e604f44af746f27b2e351bc"
],
"layout": "IPY_MODEL_da0bf0f0a9454be8ae9a8a95ca37315d"
}
},
"09fd29c3ab924c6f879c490f57fdc515": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"0c3d289d974f491d9f2edd93a17cd4f3": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_3d9010a4bfcf4d66b3652fc7aca5513e",
"IPY_MODEL_1c36368b20d4410b92e3c2be7b8823aa",
"IPY_MODEL_dc68447c05424480b23caab1c55d4acf"
],
"layout": "IPY_MODEL_596e84f852484fd88f045c6451a39005"
}
},
"0ec06e317e7d4aa1b33b49a820409a36": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": "20px"
}
},
"0f461807d1cd4835aa4abdb849c4f598": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c6e5bcfc2c64440a8c13575b663647d9",
"placeholder": "",
"style": "IPY_MODEL_d3f2b3d9b13e4572932b2d339ee52e84",
"value": "100%"
}
},
"0f844872396a4c0b8e5a0b1afa0ee51a": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"116822940ef34c7f9aea28c322d7679c": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"17e3f0de1d144cc69053a9f3823d13d0": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"1bd119557428468eac53ebb939dd1dba": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_0ec06e317e7d4aa1b33b49a820409a36",
"max": 1,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_dd80935d4c224cfd828950b714c82aa2",
"value": 1
}
},
"1c36368b20d4410b92e3c2be7b8823aa": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_e86a2c0d7e614372a745df9262260e01",
"max": 3841034,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_d3c05033a4484d129a5cdbc2d05fb925",
"value": 3841034
}
},
"3455cfbc927a44628d2c44ad251faf88": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"346960a10e0f40af9e8352aaa35c4be9": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_0f461807d1cd4835aa4abdb849c4f598",
"IPY_MODEL_b36a9743b1c64bbaa4f3acd294c30db0",
"IPY_MODEL_711c7cc532aa4643bb76097e5a4da939"
],
"layout": "IPY_MODEL_590abed7bad6459ebd2e7b8a2578ddca"
}
},
"3d9010a4bfcf4d66b3652fc7aca5513e": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d49eb7b8d7bc4b51918c755062175476",
"placeholder": "",
"style": "IPY_MODEL_69f952a2aa274616a5d92134e1da69d3",
"value": "Downloading data: 100%"
}
},
"3f2ef370ef4d4c7a982780a48f565d55": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_b34920a246b547a692b3ceac14c3e37e",
"placeholder": "",
"style": "IPY_MODEL_9763cc425fd9442c89b9622fe3424683",
"value": "Epoch: 1: 0%"
}
},
"4bd6c17872144637b7bcd60cf7ad0ccd": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"4cec3f0b3c09470697dcc3d643527379": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"55f94c32986047d9aceaceb933875539": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"590abed7bad6459ebd2e7b8a2578ddca": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"596e84f852484fd88f045c6451a39005": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"5a88f2286c7e4704b7b4defad53b2a27": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"6593342f455d4aec98317787eeebd944": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4bd6c17872144637b7bcd60cf7ad0ccd",
"max": 10000,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_922b476df0c9461b8180438a35e585dd",
"value": 22
}
},
"69f952a2aa274616a5d92134e1da69d3": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"6aa7e04512f244d1aebdba9a6bf4cbd0": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"6c00fea3446c4f54b1c68b1b662f5f56": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"711c7cc532aa4643bb76097e5a4da939": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_cbdc623872e54103bfda15e04eae870b",
"placeholder": "",
"style": "IPY_MODEL_116822940ef34c7f9aea28c322d7679c",
"value": " 24094/24094 [00:01<00:00, 12642.47it/s]"
}
},
"7128e8b45e604f44af746f27b2e351bc": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c6aa521ffcad4eeb81326c53e363dd2e",
"placeholder": "",
"style": "IPY_MODEL_e0b97ccf15be4026b764f9925f631c33",
"value": " 1.02k/1.02k [00:00<00:00, 20.7kB/s]"
}
},
"7787e51fabb54ebc93c6e2e6fcc93463": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"7b66539e5b504cc3ba9bc91c36c43002": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"7f7f942183f042b58895d4f6f5206238": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"8b55171076fb461384fe88c5d721f0ad": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"90ffa7f4cf3a4300b0e6c849964ea558": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"91ff43250f204bdfaa6668094cbb93d2": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"922b476df0c9461b8180438a35e585dd": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"96cae566bff84a8e805958fa53592583": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"9763cc425fd9442c89b9622fe3424683": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"9c8eb12dd2a74bf4a2e775909118e26f": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_b3f7bd2abfbf4d42baf9232984e7fa77",
"placeholder": "",
"style": "IPY_MODEL_17e3f0de1d144cc69053a9f3823d13d0",
"value": " 22/10000 [01:31<10:27:53, 3.78s/it, loss=5.98]"
}
},
"9fe88a4505474eb6ae6d3932ee462101": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_91ff43250f204bdfaa6668094cbb93d2",
"placeholder": "",
"style": "IPY_MODEL_6c00fea3446c4f54b1c68b1b662f5f56",
"value": " 24094/0 [00:00<00:00, 31098.90 examples/s]"
}
},
"a8db1128ee054cc0b441db3a192f1be3": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"b34920a246b547a692b3ceac14c3e37e": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b36a9743b1c64bbaa4f3acd294c30db0": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_0f844872396a4c0b8e5a0b1afa0ee51a",
"max": 24094,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_96cae566bff84a8e805958fa53592583",
"value": 24094
}
},
"b3f7bd2abfbf4d42baf9232984e7fa77": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b578afec38ba4964b59379a074c3ff50": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_8b55171076fb461384fe88c5d721f0ad",
"placeholder": "",
"style": "IPY_MODEL_a8db1128ee054cc0b441db3a192f1be3",
"value": "Generating train split: "
}
},
"c636f70868d644f283af9494fe3ef5c2": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_7f7f942183f042b58895d4f6f5206238",
"placeholder": "",
"style": "IPY_MODEL_eb9541ecc16c488a9d770b3fdb7e08f0",
"value": "100%"
}
},
"c6aa521ffcad4eeb81326c53e363dd2e": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c6e5bcfc2c64440a8c13575b663647d9": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c795d84cf0e04e9dbe31c66fee2da9ba": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_df8d8240b9af4cbba91d88c3e886fb55",
"max": 1,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_6aa7e04512f244d1aebdba9a6bf4cbd0",
"value": 1
}
},
"c7ebc401b9584e5dae027ae7dd7141f5": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"ca827a559f9e4d0d99b408981a645287": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_5a88f2286c7e4704b7b4defad53b2a27",
"max": 1018,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_e81220f2f5ef44a2bbf1fabd4dbfa8e8",
"value": 1018
}
},
"cbdc623872e54103bfda15e04eae870b": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d3c05033a4484d129a5cdbc2d05fb925": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"d3f2b3d9b13e4572932b2d339ee52e84": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"d49eb7b8d7bc4b51918c755062175476": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"da0bf0f0a9454be8ae9a8a95ca37315d": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"dc68447c05424480b23caab1c55d4acf": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_09fd29c3ab924c6f879c490f57fdc515",
"placeholder": "",
"style": "IPY_MODEL_55f94c32986047d9aceaceb933875539",
"value": " 3.84M/3.84M [00:00<00:00, 13.6MB/s]"
}
},
"dd80935d4c224cfd828950b714c82aa2": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"deaa44b4f85f41ac8bf9785a290d7496": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_c636f70868d644f283af9494fe3ef5c2",
"IPY_MODEL_c795d84cf0e04e9dbe31c66fee2da9ba",
"IPY_MODEL_fac79cdf5b72425ca2770fa0dcf32be0"
],
"layout": "IPY_MODEL_3455cfbc927a44628d2c44ad251faf88"
}
},
"df8d8240b9af4cbba91d88c3e886fb55": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"e0b97ccf15be4026b764f9925f631c33": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"e81220f2f5ef44a2bbf1fabd4dbfa8e8": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"e86a2c0d7e614372a745df9262260e01": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"e99d62aef49a4a7d85f86ebbac5ab786": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c7ebc401b9584e5dae027ae7dd7141f5",
"placeholder": "",
"style": "IPY_MODEL_ecace9056b82426190cb2d3c2b4ccd28",
"value": "Downloading readme: 100%"
}
},
"eb9541ecc16c488a9d770b3fdb7e08f0": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"ec72d3cae5c7479686a1436217fdd3f0": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_3f2ef370ef4d4c7a982780a48f565d55",
"IPY_MODEL_6593342f455d4aec98317787eeebd944",
"IPY_MODEL_9c8eb12dd2a74bf4a2e775909118e26f"
],
"layout": "IPY_MODEL_90ffa7f4cf3a4300b0e6c849964ea558"
}
},
"ec8a4b6011ae46769c4531b46ff15875": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_b578afec38ba4964b59379a074c3ff50",
"IPY_MODEL_1bd119557428468eac53ebb939dd1dba",
"IPY_MODEL_9fe88a4505474eb6ae6d3932ee462101"
],
"layout": "IPY_MODEL_7787e51fabb54ebc93c6e2e6fcc93463"
}
},
"ecace9056b82426190cb2d3c2b4ccd28": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"fac79cdf5b72425ca2770fa0dcf32be0": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_7b66539e5b504cc3ba9bc91c36c43002",
"placeholder": "",
"style": "IPY_MODEL_4cec3f0b3c09470697dcc3d643527379",
"value": " 1/1 [00:05<00:00, 5.50s/it]"
}
}
}
}
},
"nbformat": 4,
"nbformat_minor": 5
}