{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "D9DX5vJ8ImQi" }, "source": [ "## Model Overview\n", "This project uses a fine-tuned version of GPT-2 to analyze and generate responses for technical support tickets. The model was trained using GitHub issue data that resembles real-world IT support requests, including software bugs, access problems, network issues, and technical troubleshooting scenarios.\n", "\n", "\n", "The model processes incoming ticket text and learns patterns between issue descriptions and their associated labels or categories. During training, the model was fine-tuned to recognize technical language commonly found in support environments and generate structured outputs related to ticket analysis.\n", "\n", "The fine-tuned model supports multiple ticketing-related tasks, including:\n", "\n", "* Ticket categorization\n", "* Technical issue understanding\n", "* Routing recommendations\n", "* Troubleshooting suggestion generation\n", "\n", "\n", "The primary goal of the model is to automate portions of the IT help desk workflow by assisting with ticket triage and employee self-service support. Instead of relying entirely on manual review, the model can analyze natural language ticket submissions and generate contextual responses based on learned technical patterns.\n", "\n", "The system uses:\n", "\n", "\n", "* GPT-2 as the base transformer model\n", "* Hugging Face Transformers for training and inference\n", "* Google Colab for model development and experimentation\n", "\n", "The model was fine-tuned rather than trained from scratch, allowing the project to leverage GPT-2s pretrained language understanding while adapting it to technical support and ticketing workflows." ] }, { "cell_type": "markdown", "metadata": { "id": "FZWf5LkRNv5O" }, "source": [ "Install Libraries" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "rzxyN8doNAsE", "outputId": "ee9f549c-dd13-4630-c1ab-be4491e04ebc" }, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Requirement already satisfied: transformers in /usr/local/lib/python3.12/dist-packages (5.0.0)\n", "Requirement already satisfied: datasets in /usr/local/lib/python3.12/dist-packages (4.0.0)\n", "Requirement already satisfied: accelerate in /usr/local/lib/python3.12/dist-packages (1.13.0)\n", "Requirement already satisfied: huggingface_hub in /usr/local/lib/python3.12/dist-packages (1.11.0)\n", "Requirement already satisfied: filelock in /usr/local/lib/python3.12/dist-packages (from transformers) (3.29.0)\n", "Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.12/dist-packages (from transformers) (2.0.2)\n", "Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.12/dist-packages (from transformers) (26.1)\n", "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.12/dist-packages (from transformers) (6.0.3)\n", "Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.12/dist-packages (from transformers) (2025.11.3)\n", "Requirement already satisfied: tokenizers<=0.23.0,>=0.22.0 in /usr/local/lib/python3.12/dist-packages (from transformers) (0.22.2)\n", "Requirement already satisfied: typer-slim in /usr/local/lib/python3.12/dist-packages (from transformers) (0.24.0)\n", "Requirement already satisfied: safetensors>=0.4.3 in /usr/local/lib/python3.12/dist-packages (from transformers) (0.7.0)\n", "Requirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.12/dist-packages (from transformers) (4.67.3)\n", "Requirement already satisfied: pyarrow>=15.0.0 in /usr/local/lib/python3.12/dist-packages (from datasets) (18.1.0)\n", "Requirement already satisfied: dill<0.3.9,>=0.3.0 in /usr/local/lib/python3.12/dist-packages (from datasets) (0.3.8)\n", "Requirement already satisfied: pandas in /usr/local/lib/python3.12/dist-packages (from datasets) (2.2.2)\n", "Requirement already satisfied: requests>=2.32.2 in /usr/local/lib/python3.12/dist-packages (from datasets) (2.32.4)\n", "Requirement already satisfied: xxhash in /usr/local/lib/python3.12/dist-packages (from datasets) (3.6.0)\n", "Requirement already satisfied: multiprocess<0.70.17 in /usr/local/lib/python3.12/dist-packages (from datasets) (0.70.16)\n", "Requirement already satisfied: fsspec<=2025.3.0,>=2023.1.0 in /usr/local/lib/python3.12/dist-packages (from fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (2025.3.0)\n", "Requirement already satisfied: psutil in /usr/local/lib/python3.12/dist-packages (from accelerate) (5.9.5)\n", "Requirement already satisfied: torch>=2.0.0 in /usr/local/lib/python3.12/dist-packages (from accelerate) (2.10.0+cu128)\n", "Requirement already satisfied: hf-xet<2.0.0,>=1.4.3 in /usr/local/lib/python3.12/dist-packages (from huggingface_hub) (1.4.3)\n", "Requirement already satisfied: httpx<1,>=0.23.0 in /usr/local/lib/python3.12/dist-packages (from huggingface_hub) (0.28.1)\n", "Requirement already satisfied: typer in /usr/local/lib/python3.12/dist-packages (from huggingface_hub) (0.24.2)\n", "Requirement already satisfied: typing-extensions>=4.1.0 in /usr/local/lib/python3.12/dist-packages (from huggingface_hub) (4.15.0)\n", "Requirement already satisfied: aiohttp!=4.0.0a0,!=4.0.0a1 in /usr/local/lib/python3.12/dist-packages (from fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (3.13.5)\n", "Requirement already satisfied: anyio in /usr/local/lib/python3.12/dist-packages (from httpx<1,>=0.23.0->huggingface_hub) (4.13.0)\n", "Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (from httpx<1,>=0.23.0->huggingface_hub) (2026.4.22)\n", "Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.12/dist-packages (from httpx<1,>=0.23.0->huggingface_hub) (1.0.9)\n", "Requirement already satisfied: idna in /usr/local/lib/python3.12/dist-packages (from httpx<1,>=0.23.0->huggingface_hub) (3.13)\n", "Requirement already satisfied: h11>=0.16 in /usr/local/lib/python3.12/dist-packages (from httpcore==1.*->httpx<1,>=0.23.0->huggingface_hub) (0.16.0)\n", "Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests>=2.32.2->datasets) (3.4.7)\n", "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.12/dist-packages (from requests>=2.32.2->datasets) (2.5.0)\n", "Requirement already satisfied: setuptools in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (75.2.0)\n", "Requirement already satisfied: sympy>=1.13.3 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (1.14.0)\n", "Requirement already satisfied: networkx>=2.5.1 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (3.6.1)\n", "Requirement already satisfied: jinja2 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (3.1.6)\n", "Requirement already satisfied: cuda-bindings==12.9.4 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.9.4)\n", "Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.8.93 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.8.93)\n", "Requirement already satisfied: nvidia-cuda-runtime-cu12==12.8.90 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.8.90)\n", "Requirement already satisfied: nvidia-cuda-cupti-cu12==12.8.90 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.8.90)\n", "Requirement already satisfied: nvidia-cudnn-cu12==9.10.2.21 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (9.10.2.21)\n", "Requirement already satisfied: nvidia-cublas-cu12==12.8.4.1 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.8.4.1)\n", "Requirement already satisfied: nvidia-cufft-cu12==11.3.3.83 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (11.3.3.83)\n", "Requirement already satisfied: nvidia-curand-cu12==10.3.9.90 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (10.3.9.90)\n", "Requirement already satisfied: nvidia-cusolver-cu12==11.7.3.90 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (11.7.3.90)\n", "Requirement already satisfied: nvidia-cusparse-cu12==12.5.8.93 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.5.8.93)\n", "Requirement already satisfied: nvidia-cusparselt-cu12==0.7.1 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (0.7.1)\n", "Requirement already satisfied: nvidia-nccl-cu12==2.27.5 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (2.27.5)\n", "Requirement already satisfied: nvidia-nvshmem-cu12==3.4.5 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (3.4.5)\n", "Requirement already satisfied: nvidia-nvtx-cu12==12.8.90 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.8.90)\n", "Requirement already satisfied: nvidia-nvjitlink-cu12==12.8.93 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (12.8.93)\n", "Requirement already satisfied: nvidia-cufile-cu12==1.13.1.3 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (1.13.1.3)\n", "Requirement already satisfied: triton==3.6.0 in /usr/local/lib/python3.12/dist-packages (from torch>=2.0.0->accelerate) (3.6.0)\n", "Requirement already satisfied: cuda-pathfinder~=1.1 in /usr/local/lib/python3.12/dist-packages (from cuda-bindings==12.9.4->torch>=2.0.0->accelerate) (1.5.3)\n", "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.12/dist-packages (from pandas->datasets) (2.9.0.post0)\n", "Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.12/dist-packages (from pandas->datasets) (2025.2)\n", "Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.12/dist-packages (from pandas->datasets) (2026.1)\n", "Requirement already satisfied: click>=8.2.1 in /usr/local/lib/python3.12/dist-packages (from typer->huggingface_hub) (8.3.3)\n", "Requirement already satisfied: shellingham>=1.3.0 in /usr/local/lib/python3.12/dist-packages (from typer->huggingface_hub) (1.5.4)\n", "Requirement already satisfied: rich>=12.3.0 in /usr/local/lib/python3.12/dist-packages (from typer->huggingface_hub) (13.9.4)\n", "Requirement already satisfied: annotated-doc>=0.0.2 in /usr/local/lib/python3.12/dist-packages (from typer->huggingface_hub) (0.0.4)\n", "Requirement already satisfied: aiohappyeyeballs>=2.5.0 in /usr/local/lib/python3.12/dist-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (2.6.1)\n", "Requirement already satisfied: aiosignal>=1.4.0 in /usr/local/lib/python3.12/dist-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (1.4.0)\n", "Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.12/dist-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (26.1.0)\n", "Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.12/dist-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (1.8.0)\n", "Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.12/dist-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (6.7.1)\n", "Requirement already satisfied: propcache>=0.2.0 in /usr/local/lib/python3.12/dist-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (0.4.1)\n", "Requirement already satisfied: yarl<2.0,>=1.17.0 in /usr/local/lib/python3.12/dist-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2025.3.0,>=2023.1.0->datasets) (1.23.0)\n", "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.12/dist-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.17.0)\n", "Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.12/dist-packages (from rich>=12.3.0->typer->huggingface_hub) (4.0.0)\n", "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.12/dist-packages (from rich>=12.3.0->typer->huggingface_hub) (2.20.0)\n", "Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.12/dist-packages (from sympy>=1.13.3->torch>=2.0.0->accelerate) (1.3.0)\n", "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.12/dist-packages (from jinja2->torch>=2.0.0->accelerate) (3.0.3)\n", "Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.12/dist-packages (from markdown-it-py>=2.2.0->rich>=12.3.0->typer->huggingface_hub) (0.1.2)\n" ] } ], "source": [ "!pip install transformers datasets accelerate huggingface_hub" ] }, { "cell_type": "markdown", "metadata": { "id": "Vprj7h1MOCA8" }, "source": [ "Login to Hugging Face" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 141, "referenced_widgets": [ "3999aa19693149d7b40b122808e6f19b", "dad3979814bf4038b4d61043d56b93b1", "61971fd5dd624b1e9abd993182427425", "26d2994bd1f342999ea919db66cc4e6e", "de9e58b3117f4d179a55d7ae089b8ffc", "5b914a174a5f4404a1715e80d98603f3", "02af896559e5412f88a6c7337a4d87d6", "3dfa472f6451494ca85b607381f5f48f", "f30c5c323283417aa1be8796dcfd300a", "92e97e0938b241889371290e7efd7fcd", "205172b565a7448291a7aa857235a9c9", "25a5f0de4d034c8c980544dba0ed46e1", "95dfd952375e4af5b96d7f44b8bfff9f", "1089cba20bc541baaed0c3cd09c5164e", "328f65d466a1432b9494628dec6106de", "8b9a8163db2842d397161d111867bda9", "2d8660d4c0904bd38a9fafb776db5664", "4da15fcf625647519b9026cff1264200", "ac2556d4ca3a441e8582da512b2db46a", "12f9c2daae0244d6a132fe54e4a27b50" ] }, "id": "yPiVoZsUODoz", "outputId": "45afe692-ae0e-48cc-d497-d9541310afd8" }, "outputs": [ { "output_type": "stream", "name": "stderr", "text": [ "/usr/local/lib/python3.12/dist-packages/huggingface_hub/utils/_auth.py:93: UserWarning: \n", "The secret `HF_TOKEN` does not exist in your Colab secrets.\n", "To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n", "You will be able to reuse this secret in all of your notebooks.\n", "Please note that authentication is recommended but still optional to access public models or datasets.\n", " warnings.warn(\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "VBox(children=(HTML(value='
| Step | \n", "Training Loss | \n", "
|---|---|
| 100 | \n", "3.349891 | \n", "
| 200 | \n", "3.027806 | \n", "
| 300 | \n", "2.988449 | \n", "
| 400 | \n", "2.867971 | \n", "
| 500 | \n", "2.843170 | \n", "
| 600 | \n", "2.873825 | \n", "
| 700 | \n", "2.838850 | \n", "
" ] }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "Writing model shards: 0%| | 0/1 [00:00, ?it/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "0736bce70ecf47659c10c88f791a0daa" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "Writing model shards: 0%| | 0/1 [00:00, ?it/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "834dae7438204594b6fb1f9c6208f1da" } }, "metadata": {} }, { "output_type": "execute_result", "data": { "text/plain": [ "TrainOutput(global_step=778, training_loss=2.948500370918019, metrics={'train_runtime': 30.3879, 'train_samples_per_second': 51.205, 'train_steps_per_second': 25.602, 'total_flos': 101642600448000.0, 'train_loss': 2.948500370918019, 'epoch': 1.0})" ] }, "metadata": {}, "execution_count": 14 } ], "source": [ "trainer.train()" ] }, { "cell_type": "markdown", "source": [ "Text Generation Pipeline" ], "metadata": { "id": "vvZgHjjgaZ1i" } }, { "cell_type": "code", "source": [ "# CREATE GPT-2 TEXT GENERATION PIPELINE\n", "# ============================================\n", "\n", "from transformers import pipeline\n", "\n", "generator = pipeline(\n", " \"text-generation\",\n", " model=model,\n", " tokenizer=tokenizer\n", ")\n", "\n", "print(\"Pipeline successfully created.\")" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "xJpwHKaYaa--", "outputId": "34bdf16a-c10c-4d9e-ca51-2f54aee207d3" }, "execution_count": 20, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Pipeline successfully created.\n" ] } ] }, { "cell_type": "markdown", "metadata": { "id": "00483fcf" }, "source": [ "# Model Evaluation\n", "\n", "This section evaluates the GPT-2 ticket classification model using\n", "example IT support tickets and compares predicted categories against\n", "expected labels." ] }, { "cell_type": "code", "execution_count": 15, "metadata": { "id": "f2e80570" }, "outputs": [], "source": [ "# IMPORT EVALUATION METRICS\n", "# ============================================\n", "\n", "from sklearn.metrics import accuracy_score\n", "from sklearn.metrics import classification_report\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 16, "metadata": { "id": "4ebfa75e" }, "outputs": [], "source": [ "# EVALUATION DATASET\n", "# ============================================\n", "\n", "evaluation_examples = [\n", " {\n", " \"ticket\": \"Cannot connect to VPN after password reset.\",\n", " \"true_label\": \"Network Issue\"\n", " },\n", " {\n", " \"ticket\": \"Office printer will not print documents.\",\n", " \"true_label\": \"Hardware Issue\"\n", " },\n", " {\n", " \"ticket\": \"Outlook crashes when opening attachments.\",\n", " \"true_label\": \"Software Issue\"\n", " },\n", " {\n", " \"ticket\": \"Unable to login to employee portal.\",\n", " \"true_label\": \"Access Issue\"\n", " }\n", "]" ] }, { "cell_type": "code", "execution_count": 27, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "2dba3916", "outputId": "9e75a4c3-ddf8-4d76-dca1-8f6523520f03" }, "outputs": [ { "output_type": "stream", "name": "stderr", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=40) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n", "Both `max_new_tokens` (=256) and `max_length`(=40) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n", "Both `max_new_tokens` (=256) and `max_length`(=40) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n", "Both `max_new_tokens` (=256) and `max_length`(=40) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] } ], "source": [ "# GENERATE MODEL PREDICTIONS\n", "# ============================================\n", "\n", "predictions = []\n", "true_labels = []\n", "\n", "for item in evaluation_examples:\n", "\n", " prompt = f\"\"\"\n", "Ticket:\n", "{item['ticket']}\n", "\n", "Category:\n", "\"\"\"\n", "\n", " result = generator(\n", " prompt,\n", " max_length=40,\n", " num_return_sequences=1\n", " )\n", "\n", " generated_text = result[0][\"generated_text\"].lower()\n", "\n", " # SIMPLE CATEGORY CLEANING\n", "\n", " if \"network\" in generated_text or \"vpn\" in generated_text:\n", " predicted_label = \"Network Issue\"\n", "\n", " elif \"printer\" in generated_text or \"hardware\" in generated_text:\n", " predicted_label = \"Hardware Issue\"\n", "\n", " elif \"software\" in generated_text or \"outlook\" in generated_text:\n", " predicted_label = \"Software Issue\"\n", "\n", " elif \"login\" in generated_text or \"access\" in generated_text:\n", " predicted_label = \"Access Issue\"\n", "\n", " else:\n", " predicted_label = \"Unknown\"\n", "\n", " predictions.append(predicted_label)\n", "\n", " true_labels.append(item[\"true_label\"])" ] }, { "cell_type": "code", "execution_count": 22, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "33de4ef6", "outputId": "31047aea-c97b-48da-f781-d52718d62681" }, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "====================================\n", "MODEL ACCURACY\n", "====================================\n", "Accuracy Score: 1.00\n" ] } ], "source": [ "# COMPUTE ACCURACY\n", "# ============================================\n", "\n", "accuracy = accuracy_score(\n", " true_labels,\n", " predictions\n", ")\n", "\n", "print(\"====================================\")\n", "print(\"MODEL ACCURACY\")\n", "print(\"====================================\")\n", "\n", "print(f\"Accuracy Score: {accuracy:.2f}\")" ] }, { "cell_type": "code", "execution_count": 23, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "bc79e2a0", "outputId": "2e16752a-b31b-497b-bb6b-6a7a331ff5da" }, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "====================================\n", "CLASSIFICATION REPORT\n", "====================================\n", " precision recall f1-score support\n", "\n", " Access Issue 1.00 1.00 1.00 1\n", "Hardware Issue 1.00 1.00 1.00 1\n", " Network Issue 1.00 1.00 1.00 1\n", "Software Issue 1.00 1.00 1.00 1\n", "\n", " accuracy 1.00 4\n", " macro avg 1.00 1.00 1.00 4\n", " weighted avg 1.00 1.00 1.00 4\n", "\n" ] } ], "source": [ "# CLASSIFICATION REPORT\n", "# ============================================\n", "\n", "print(\"====================================\")\n", "print(\"CLASSIFICATION REPORT\")\n", "print(\"====================================\")\n", "\n", "print(classification_report(\n", " true_labels,\n", " predictions\n", "))" ] }, { "cell_type": "code", "execution_count": 24, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "1e64473a", "outputId": "c5922ddf-3325-416f-db05-0e436cedb4b5" }, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ " Ticket Expected Label Predicted Label\n", "0 Cannot connect to VPN after password reset. Network Issue Network Issue\n", "1 Office printer will not print documents. Hardware Issue Hardware Issue\n", "2 Outlook crashes when opening attachments. Software Issue Software Issue\n", "3 Unable to login to employee portal. Access Issue Access Issue\n" ] } ], "source": [ "# DISPLAY PREDICTIONS\n", "# ============================================\n", "\n", "results_df = pd.DataFrame({\n", " \"Ticket\": [x[\"ticket\"] for x in evaluation_examples],\n", " \"Expected Label\": true_labels,\n", " \"Predicted Label\": predictions\n", "})\n", "\n", "print(results_df)" ] }, { "cell_type": "markdown", "metadata": { "id": "qr1qe8AkRFWL" }, "source": [ "Save Model" ] }, { "cell_type": "code", "execution_count": 25, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 84, "referenced_widgets": [ "3acdc22ce9fb40249f34131081cf8ee6", "429c5d7425aa4ae3843decd7c9046eb9", "292d24b1eb864faba421b25e477a1b44", "38027d76a7c8478980943b2fc9af582c", "785eee48fbf5465baed8782421ad841b", "a0aa1083aaef4efaa38c5228f086d0f8", "a510ecfe72a447609508305cf622dcf4", "7c10e8cdc00c4876b3a0d9c552447d4f", "af292008f9744ec28a2cd4f6f9b5d5aa", "d79756c2d3044b7c9b0a223fa749ae40", "564bc433693b4163926c5bfcbbd80219" ] }, "id": "ChdiHyyzRECF", "outputId": "aeaff688-9fd2-44a5-d702-b7ec58650669" }, "outputs": [ { "output_type": "display_data", "data": { "text/plain": [ "Writing model shards: 0%| | 0/1 [00:00, ?it/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "3acdc22ce9fb40249f34131081cf8ee6" } }, "metadata": {} }, { "output_type": "execute_result", "data": { "text/plain": [ "('./ticket-gpt2-model/tokenizer_config.json',\n", " './ticket-gpt2-model/tokenizer.json')" ] }, "metadata": {}, "execution_count": 25 } ], "source": [ "model.save_pretrained(\"./ticket-gpt2-model\")\n", "tokenizer.save_pretrained(\"./ticket-gpt2-model\")" ] }, { "cell_type": "markdown", "metadata": { "id": "CZgXP5LjROVJ" }, "source": [ "Push to Hugging Face" ] }, { "cell_type": "code", "execution_count": 26, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 264, "referenced_widgets": [ "4997c0dc7b4248bf87f0ec3068f365cd", "f54ef6a9aad94431a810a02d06eafa8d", "a424723797194e50bd9531ea8f7a13cb", "561f1675ea7340529b386cf6b94be2d6", "c4e520c986084ef39c79c8ae2a4c9470", "f6ef82ec55ed44c7b1ca8fe7ab3b922d", "fe0a2004088547cbb78c4ff3a843ed7c", "9f7ca760c08f45379bf10ea1894343b6", "47664fb2dfb34a698ca68f18c3aec601", "28ebc574e1974369a2e6f5fea6f0423c", "c6d76033c1784124afcf953ab47191e8", "dab6ebb2f0114d8bb1ac95f959f7ee8b", "ec571144ff0748af9c904ffd76ae38cf", "a3090a1bcf3b440ab22af97d0bc75941", "95de000dccbd4d1eb9849bdca47c79c3", "11a46d8e5755485591785cab349809b6", "93522c5280ce47cf8a948b70a0909ea8", "547cf37b7b7c47af8efa33229abfc8ba", "0e49089748184432953db12048696c1f", "22edb47a97cb4bb3a03d510f6dcffd23", "ef4b9333b62e41ccab2c4faf19d94f92", "40fcd335d8464702bba26e4c510b1cb3", "cb5719170fa9433bac329379c5a10afc", "8134ea392a204bef82aab58cdea5e65c", "0c3856885ed046c78a493056592f82a4", "34920d597080420e93af3445c9252587", "af189c74234443d1a2e8255b8b06c625", "dcececd6a4ac4dff90edd4fcda44a1a4", "33e1673a758b456e936e8a6f71ffd645", "3f4443a171ae4ea1a77732a7a23bfc4e", "fc67700e44fa4ef7b0204cd9565dae53", "b29270e39b2b493bad49d5750a1253f9", "2510560966ba4c1c9d6010f34838ece1", "2ab6a86255b14894aabb5b3b988c632b", "b85128f281bf4eda97752c31dff3e20a", "477c5435167b485995e6faf5e20a5a76", "af715142f4a942bcbbdd5acc3347ead6", "54e8924efb4b435184ebde35289d68e5", "542707c5bcbd48a0a117f9a1482a9f60", "94458072082046a6bd4fcbab95981f83", "9de4843828bd4130b38d536c2f4ccd27", "261d327fc9f549d1a7199d8e1ab6beef", "90a12464ab334b09b16e4a16b74770c4", "72a58c8e895c48558e97b2d6a0a479df", "c4c4760d00604f98be762f508ffab91e", "dcd3b49eeb4c4f6da9646a7490babd8a", "d270e85a9d124c5185cc26f9d3298cb7", "c9c833c028e3438eb42425df3a17df82", "27196d7eff83409abe74d05f4c57a3d1", "3049f7914067423ab9500520e96681e5", "d6adba53c99248ba904afd1f5c6a7dff", "8d8e8e27c0064f4e974c31898622b5ea", "3b72809759e243eda9ab85a312434d32", "ff4e65c7fa444984a6ab6509e1973f1d", "5c08588d9adc4674839825c52799f4c1" ] }, "id": "TwoNSk3oRPOV", "outputId": "cdaf8f91-d9bb-4063-c2d5-e3c5f515ad88" }, "outputs": [ { "output_type": "display_data", "data": { "text/plain": [ "README.md: 0.00B [00:00, ?B/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "4997c0dc7b4248bf87f0ec3068f365cd" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "Writing model shards: 0%| | 0/1 [00:00, ?it/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "dab6ebb2f0114d8bb1ac95f959f7ee8b" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "Processing Files (0 / 0) : | | 0.00B / 0.00B " ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "cb5719170fa9433bac329379c5a10afc" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "New Data Upload : | | 0.00B / 0.00B " ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "2ab6a86255b14894aabb5b3b988c632b" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ " ...55052oy/model.safetensors: 29%|##8 | 144MB / 498MB " ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "c4c4760d00604f98be762f508ffab91e" } }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "No files have been modified since last commit. Skipping to prevent empty commit.\n", "WARNING:huggingface_hub.hf_api:No files have been modified since last commit. Skipping to prevent empty commit.\n" ] }, { "output_type": "execute_result", "data": { "text/plain": [ "CommitInfo(commit_url='https://huggingface.co/masonmidd/ticket-gpt2/commit/57b39d462763eb9c1df1546375d8e131d6e49de4', commit_message='Upload tokenizer', commit_description='', oid='57b39d462763eb9c1df1546375d8e131d6e49de4', pr_url=None, repo_url=RepoUrl('https://huggingface.co/masonmidd/ticket-gpt2', endpoint='https://huggingface.co', repo_type='model', repo_id='masonmidd/ticket-gpt2'), pr_revision=None, pr_num=None)" ], "application/vnd.google.colaboratory.intrinsic+json": { "type": "string" } }, "metadata": {}, "execution_count": 26 } ], "source": [ "hub_model_id = \"masonmidd/ticket-gpt2\"\n", "\n", "model.push_to_hub(hub_model_id)\n", "tokenizer.push_to_hub(hub_model_id)" ] }, { "cell_type": "markdown", "metadata": { "id": "foLHDkkdRgfQ" }, "source": [ "Test the Model" ] }, { "cell_type": "code", "execution_count": 28, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 611, "referenced_widgets": [ "5e292e94aa1b40d8a61bbea81b2daa84", "508bec5c5daa4ff6b490c404af922470", "37819ad3f1324f17847df8733a442648", "818dc433056e4abea9e9eff1b8f0c31a", "a872cd6571da4660a4f626f4fb322f4e", "74429a65ecff4f098737e5b3c6edcefa", "e7cf7905beff4924a71f88523f8887f4", "5fc6eae8931a484cb3af9a606da6f614", "8802a762f41c42dfb0277d49f8d45e9f", "cc8fe38028ca4bb983230b24a5dfcca0", "ac92a7f5257c4b13999cd9d9f3c45da0", "66ba54b69569483489e83f85ea16da51", "9e756e69b3bc4e87bc6791ddc2b26a0e", "857bfc0b7369439fbdc25d913daf4177", "30f5a4e3ede8411da1125bf4e2a33c9a", "0692048cb05a4f47971fc5144c2f14da", "d5b28aa482264b9c90791e1f084c1474", "bebf2e55828140d382bd2f7a3cf64a63", "4420fdf09d7448dfb29495ebdb368ef3", "c9295871c6914aeb97c5d8519a83d943", "6a5fa02cc2d149f1b77b7b93eaef3208", "70fae239b0e544faaaa29a2e6373b587", "25bbe1ad5e434e00a96b3293becda230", "35d0b83cb521468d9a3912f541d909f0", "33cd2c4567d045f3a506c576df87a521", "95b319e513b34140a62ca5724bd1603c", "82666b4069084060b7d74a637d25798d", "511dfa9fff8948e38e7e1bbeaebc4947", "b437229c03f74e5ba07e7e36fd7d1478", "4910c2b9497c4144a1f3829131a241b4", "d0766584088d42a3a3c78f55ffc1616d", "603467cefcdc44a58446b317b34673e0", "993045208ec247bab132847f6bf16823", "4c6ce73349b34ec3bdc2efefc419c8d0", "df1f5a2135434e41981fd796f3ca7088", "e569eb19badc44d6953cd66c293b74ba", "3f03ac16043d47d9bab3716296b6ed26", "69aa56ee9d84483ca647f42ddec07904", "375b11680aa24cf2861d96938d230928", "ed27346a7d34444ea33d75105bd645e9", "592981feb2c04cbe9977de2e33b5e698", "90c7a82d1e5f4fdcad1b46d3863e3cce", "1415976f7a2e482db6414ce305a3fe72", "e511b1f1c8b148958b16807de467a6ef", "0e10712822e445359254ddf14fc3f95d", "81511204950340cca5c1ea702b5e4695", "cb529330a3ac4b1c9fc1c6c02af565dd", "10af24f925fd46b98eb6f0b51b963f6e", "a401c887a09c4762aa38b87a0bd75c0b", "8096f92cfc7044e9918961117cc031e3", "22960c750f894e298cda218231d6681c", "5e3f97d13c3c461ca22aab30763f1a32", "758422de2b2042ddae748e1976578e49", "05c6d705301945509fe958dccc9bb8d7", "0229416f68a84e298389c8b991027f85", "b37c835c655b4bc88c91517a269ef48e", "d8a1f550041842b986559fbc23d627b0", "d2100281a31b4dcaa03b75491a2dd732", "cd8272c2132d4af3889d7db5c5070aef", "8d319c80a4fd45ee993d7db36a737ea9", "815c657afd34411fab379daa14719617", "e2f2abe4fe0a460ea427b5f3c1e15b65", "ead502ce56a94cab9c12c64b6af1fe04", "fcc6bd43cf1e42989815139747ce74a4", "866fea91ec1247a3807e9e2202450163", "a6d281450a6c4e3f83d41feb0bc3734d" ] }, "id": "LBhtBmtHRgF4", "outputId": "56b87fb4-4960-4f0d-930a-b3467576baa9" }, "outputs": [ { "output_type": "display_data", "data": { "text/plain": [ "config.json: 0%| | 0.00/961 [00:00, ?B/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "5e292e94aa1b40d8a61bbea81b2daa84" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "model.safetensors: 0%| | 0.00/498M [00:00, ?B/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "66ba54b69569483489e83f85ea16da51" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "Loading weights: 0%| | 0/148 [00:00, ?it/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "25bbe1ad5e434e00a96b3293becda230" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "generation_config.json: 0%| | 0.00/118 [00:00, ?B/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "4c6ce73349b34ec3bdc2efefc419c8d0" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "tokenizer_config.json: 0%| | 0.00/297 [00:00, ?B/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "0e10712822e445359254ddf14fc3f95d" } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "tokenizer.json: 0.00B [00:00, ?B/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "b37c835c655b4bc88c91517a269ef48e" } }, "metadata": {} }, { "output_type": "stream", "name": "stderr", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=50) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "output_type": "stream", "name": "stdout", "text": [ "\n", "Ticket:\n", "Cannot connect to VPN after password reset.\n", "\n", "Category:\n", "question\n", "question\n", "Category:\n", "question\n", "\n", "Category:\n", "question\n", "\n", "question\n", "\n", "Category:\n", "question\n", "\n", "question\n", "\n", "Category:\n" ] } ], "source": [ "generator = pipeline(\n", " \"text-generation\",\n", " model=hub_model_id,\n", " tokenizer=hub_model_id\n", ")\n", "\n", "prompt = \"\"\"\n", "Ticket:\n", "Cannot connect to VPN after password reset.\n", "\n", "Category:\n", "\"\"\"\n", "\n", "result = generator(\n", " prompt,\n", " max_length=50,\n", " num_return_sequences=1\n", ")\n", "\n", "print(result[0][\"generated_text\"])" ] }, { "cell_type": "markdown", "metadata": { "id": "1zrUskUtHpzU" }, "source": [ "# Application 1: Automated Ticket Triage\n", "This application demonstrates how the fine-tuned GPT-2 model can assist IT help desk staff by automatically analyzing incoming support tickets. The model reads incoming ticket text and generates:\n", "\n", "\n", "* Ticket Category\n", "* Urgency Level\n", "* Suggested routing team\n", "\n", "\n", "\n", "The goal of this application is to reduce manual ticket sorting and improve help desk response times." ] }, { "cell_type": "markdown", "metadata": { "id": "YulHNpCeIGGi" }, "source": [ "Import Libraries" ] }, { "cell_type": "code", "execution_count": 29, "metadata": { "id": "bFZAtVMJID66" }, "outputs": [], "source": [ "from transformers import pipeline\n", "import re" ] }, { "cell_type": "markdown", "metadata": { "id": "qqSEL2GNIPKu" }, "source": [ "Load th Fine-Tuned GPT2 Model" ] }, { "cell_type": "code", "execution_count": 30, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 49, "referenced_widgets": [ "6a8d3ef6ddd241ce8161664467c1be62", "fd5fa196043946c387b45aef3f0806b2", "00cbe0789c0740e0ae3dedbbf5ec08b1", "81a5961d78674edd9271f6a1a46dbd66", "36c30bdbe926485e8c993d56e577376a", "84b52629b93241538c536b9e95f48580", "838f3c6942d848b6b1c570bf794eeaa1", "90d36cff431b4f258975a75222c302c5", "b15598ad435048b998f5a0350a1869f6", "d3106b1993db4dddaa34745c0a0b1455", "c39149f9d69c447fb310e0b5f537f9b8" ] }, "id": "MHJMU8FXITQH", "outputId": "02f2847b-db70-4875-d30b-2206303ea3cd" }, "outputs": [ { "output_type": "display_data", "data": { "text/plain": [ "Loading weights: 0%| | 0/148 [00:00, ?it/s]" ], "application/vnd.jupyter.widget-view+json": { "version_major": 2, "version_minor": 0, "model_id": "6a8d3ef6ddd241ce8161664467c1be62" } }, "metadata": {} } ], "source": [ "triage_generator = pipeline(\n", " \"text-generation\",\n", " model=\"masonmidd/ticket-gpt2\",\n", " tokenizer=\"masonmidd/ticket-gpt2\"\n", ")" ] }, { "cell_type": "markdown", "metadata": { "id": "l97DBIc8JfNU" }, "source": [ "Create Ticket Triage Function" ] }, { "cell_type": "code", "execution_count": 31, "metadata": { "id": "eZC27AueJe66" }, "outputs": [], "source": [ "# AUTOMATED TICKET TRIAGE FUNCTION\n", "# ============================================\n", "\n", "def triage_ticket(ticket_text):\n", "\n", " prompt = f\"\"\"\n", "You are an IT ticket triage assistant.\n", "\n", "Analyze the following IT support ticket.\n", "\n", "Provide:\n", "- Category\n", "- Urgency\n", "- Suggested Routing Team\n", "\n", "Ticket:\n", "{ticket_text}\n", "\n", "Response:\n", "\"\"\"\n", "\n", " result = triage_generator(\n", " prompt,\n", " max_length=120,\n", " do_sample=True,\n", " temperature=0.7,\n", " top_k=50,\n", " num_return_sequences=1\n", " )\n", "\n", " generated_text = result[0][\"generated_text\"]\n", "\n", " return generated_text" ] }, { "cell_type": "markdown", "metadata": { "id": "e38-so5vJvEO" }, "source": [ "Create Urgency Enhancement Logic" ] }, { "cell_type": "code", "execution_count": 32, "metadata": { "id": "8kJ2ur58JuYG" }, "outputs": [], "source": [ "# URGENCY ENHANCEMENT\n", "# ============================================\n", "\n", "def determine_urgency(ticket_text):\n", "\n", " high_keywords = [\n", " \"server down\",\n", " \"cannot work\",\n", " \"system outage\",\n", " \"vpn down\",\n", " \"critical\",\n", " \"emergency\"\n", " ]\n", "\n", " medium_keywords = [\n", " \"slow\",\n", " \"disconnect\",\n", " \"cannot connect\",\n", " \"error\"\n", " ]\n", "\n", " text = ticket_text.lower()\n", "\n", " for keyword in high_keywords:\n", " if keyword in text:\n", " return \"High\"\n", "\n", " for keyword in medium_keywords:\n", " if keyword in text:\n", " return \"Medium\"\n", "\n", " return \"Low\"" ] }, { "cell_type": "markdown", "metadata": { "id": "V_-uqYNKJ-V0" }, "source": [ "Create Routing Logic" ] }, { "cell_type": "code", "execution_count": 33, "metadata": { "id": "W34U4VwlKA0s" }, "outputs": [], "source": [ "# ROUTING LOGIC\n", "# ============================================\n", "\n", "def determine_routing(ticket_text):\n", "\n", " text = ticket_text.lower()\n", "\n", " if \"vpn\" in text or \"network\" in text:\n", " return \"Infrastructure Support\"\n", "\n", " elif \"printer\" in text:\n", " return \"Desktop Support\"\n", "\n", " elif \"password\" in text or \"login\" in text:\n", " return \"Identity Management\"\n", "\n", " elif \"email\" in text or \"outlook\" in text:\n", " return \"Messaging Team\"\n", "\n", " else:\n", " return \"General IT Support\"" ] }, { "cell_type": "markdown", "metadata": { "id": "0KnFXkU-KC1w" }, "source": [ "Create Full Ticket Analysis Function" ] }, { "cell_type": "code", "execution_count": 34, "metadata": { "id": "RWjJMGNjKHHi" }, "outputs": [], "source": [ "# FULL TICKET ANALYSIS\n", "# ============================================\n", "\n", "def analyze_ticket(ticket_text):\n", "\n", " model_output = triage_ticket(ticket_text)\n", "\n", " urgency = determine_urgency(ticket_text)\n", "\n", " routing_team = determine_routing(ticket_text)\n", "\n", " print(\"====================================\")\n", " print(\"TICKET ANALYSIS\")\n", " print(\"====================================\")\n", "\n", " print(f\"Ticket:\\n{ticket_text}\\n\")\n", "\n", " print(\"GPT-2 Generated Analysis:\")\n", " print(model_output)\n", "\n", " print(\"\\nAdditional Processing:\")\n", " print(f\"Urgency Level: {urgency}\")\n", " print(f\"Suggested Routing Team: {routing_team}\")" ] }, { "cell_type": "markdown", "metadata": { "id": "_QFht0vRKO1q" }, "source": [ "Demo Example 1" ] }, { "cell_type": "code", "execution_count": 35, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "1IKzjMvRKTNO", "outputId": "c13d6a86-cc7e-4acc-82ec-5871adf0ee9b" }, "outputs": [ { "output_type": "stream", "name": "stderr", "text": [ "Passing `generation_config` together with generation-related arguments=({'top_k', 'num_return_sequences', 'max_length', 'do_sample', 'temperature'}) is deprecated and will be removed in future versions. Please pass either a `generation_config` object OR all generation parameters explicitly, but not both.\n", "Both `max_new_tokens` (=256) and `max_length`(=120) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "output_type": "stream", "name": "stdout", "text": [ "====================================\n", "TICKET ANALYSIS\n", "====================================\n", "Ticket:\n", "\n", "Cannot connect to VPN after password reset.\n", "\n", "\n", "GPT-2 Generated Analysis:\n", "\n", "You are an IT ticket triage assistant.\n", "\n", "Analyze the following IT support ticket.\n", "\n", "Provide:\n", "- Category\n", "- Urgency\n", "- Suggested Routing Team\n", "\n", "Ticket:\n", "\n", "Cannot connect to VPN after password reset.\n", "\n", "\n", "Response:\n", "\n", "I'm using a Linux-based PC with a custom dataloader, but I'm unable to connect to the network. I have to pass the following:\n", "\n", "- nnnnnnnnnnnnn.nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn\n", "\n", "Additional Processing:\n", "Urgency Level: Medium\n", "Suggested Routing Team: Infrastructure Support\n" ] } ], "source": [ "sample_ticket_1 = \"\"\"\n", "Cannot connect to VPN after password reset.\n", "\"\"\"\n", "\n", "analyze_ticket(sample_ticket_1)" ] }, { "cell_type": "markdown", "metadata": { "id": "3L1xHoetK0VB" }, "source": [ "Demo Example 2" ] }, { "cell_type": "code", "execution_count": 36, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "gDyYHkCgK3A5", "outputId": "3a810ab3-b17e-4b27-8976-9b71abf129d8" }, "outputs": [ { "output_type": "stream", "name": "stderr", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=120) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "output_type": "stream", "name": "stdout", "text": [ "====================================\n", "TICKET ANALYSIS\n", "====================================\n", "Ticket:\n", "\n", "Office printer is offline and employees cannot print invoices.\n", "\n", "\n", "GPT-2 Generated Analysis:\n", "\n", "You are an IT ticket triage assistant.\n", "\n", "Analyze the following IT support ticket.\n", "\n", "Provide:\n", "- Category\n", "- Urgency\n", "- Suggested Routing Team\n", "\n", "Ticket:\n", "\n", "Office printer is offline and employees cannot print invoices.\n", "\n", "\n", "Response:\n", "\n", "Hi\n", "\n", "I'm trying to figure out how to fix\n", "the issue. But I'm unable to reproduce the problem because the code is updated\n", "on some of the docs.\n", "\n", "Category:\n", "bug, help wanted, priority: 0\n", "\n", "Category:\n", "question\n", "\n", "Category:\n", "feature, won't fix, won't fix\n", "\n", "Category:\n", "question, can help\n", "\n", "Category:\n", "question\n", "\n", "Category:\n", "feature, won't fix, won't fix\n", "\n", "Category:\n", "question, can help\n", "\n", "Category:\n", "question\n", "\n", "Category:\n", "feature, won't fix, won't fix\n", "\n", "Category:\n", "question, can help\n", "\n", "Category:\n", "question, can help\n", "\n", "Category:\n", "question\n", "\n", "Category:\n", "feature, won't fix, won't fix\n", "\n", "Category:\n", "question\n", "\n", "Additional Processing:\n", "Urgency Level: Low\n", "Suggested Routing Team: Desktop Support\n" ] } ], "source": [ "sample_ticket_2 = \"\"\"\n", "Office printer is offline and employees cannot print invoices.\n", "\"\"\"\n", "\n", "analyze_ticket(sample_ticket_2)" ] }, { "cell_type": "markdown", "metadata": { "id": "Vzy7C7tHLP1a" }, "source": [ "Demo Example 3" ] }, { "cell_type": "code", "execution_count": 37, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "F1t5o0GELQTj", "outputId": "d0eb7ada-71b6-4b66-a474-bf3f2a56aa2e" }, "outputs": [ { "output_type": "stream", "name": "stderr", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=120) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "output_type": "stream", "name": "stdout", "text": [ "====================================\n", "TICKET ANALYSIS\n", "====================================\n", "Ticket:\n", "\n", "Outlook crashes every time I open email attachments.\n", "\n", "\n", "GPT-2 Generated Analysis:\n", "\n", "You are an IT ticket triage assistant.\n", "\n", "Analyze the following IT support ticket.\n", "\n", "Provide:\n", "- Category\n", "- Urgency\n", "- Suggested Routing Team\n", "\n", "Ticket:\n", "\n", "Outlook crashes every time I open email attachments.\n", "\n", "\n", "Response:\n", "\n", "I can't seem to get in the loop of where you do this.\n", "\n", "Type:\n", "help wanted, priority 1\n", "\n", "Category:\n", "question\n", "\n", "question\n", "\n", "Category:\n", "question\n", "question\n", "\n", "question\n", "\n", "Category:\n", "question\n", "question\n", "question\n", "question\n", "\n", "question\n", "\n", "Category:\n", "question\n", "\n", "Additional Processing:\n", "Urgency Level: Low\n", "Suggested Routing Team: Messaging Team\n" ] } ], "source": [ "sample_ticket_3 = \"\"\"\n", "Outlook crashes every time I open email attachments.\n", "\"\"\"\n", "\n", "analyze_ticket(sample_ticket_3)" ] }, { "cell_type": "markdown", "metadata": { "id": "-thGvnSqSEIr" }, "source": [ "Custom Ticket Input Cell" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "YBcnRa2GSEme", "outputId": "92d96192-db03-4777-e2fe-4385a457f550" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Enter an IT support ticket: Outlook not updating\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=120) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "====================================\n", "TICKET ANALYSIS\n", "====================================\n", "Ticket:\n", "Outlook not updating\n", "\n", "GPT-2 Generated Analysis:\n", "\n", "You are an IT ticket triage assistant.\n", "\n", "Analyze the following IT support ticket.\n", "\n", "Provide:\n", "- Category\n", "- Urgency\n", "- Suggested Routing Team\n", "\n", "Ticket:\n", "Outlook not updating\n", "\n", "Response:\n", "Hi\n", "I am trying to use the latest version of the LightningModules and the lightning module (https://github.com/PyTorchLightning/pytorch_lightning/blob/master/pytorch_lightning/configuration.py).\n", "I got a warning this week about the \"Invalidation\" flag in LightningModule.\n", "I tried to log the flag by calling the log function, but this would require a callback like this:\n", "pytorch_lightning/logger/test_log_callback.py\n", "\n", "Code sample\n", "import os\n", "import torch\n", "from torch_utils.datasets import DataLoader\n", "from torch_utils.data import DataLoader\n", "from torch_utils.utils.data import DataLoader\n", "from torch_utils.metrics import Trainer\n", "\n", "class Trainer(pl.LightningModule):\n", " def __init__(self):\n", " self.train_end = False\n", " self.model = lightning_model\n", " def __init__(self, batch, batch_idx):\n", " \n", "\n", "Additional Processing:\n", "Urgency Level: Low\n", "Suggested Routing Team: Messaging Team\n" ] } ], "source": [ "# CUSTOM TICKET INPUT\n", "# ============================================\n", "\n", "user_ticket = input(\"Enter an IT support ticket: \")\n", "\n", "analyze_ticket(user_ticket)" ] }, { "cell_type": "markdown", "metadata": { "id": "QS5Uo-TWPHOt" }, "source": [ "# Application 2: AI Help Desk Assistant\n", "This application demonstrates how the same fine-tuned GPT-2 model can be used as an employee-facing AI help desk assistant. Instead of routing tickets internally for IT staff, this application attempts to provide troubleshooting guidance directly to employees before escalation.\n", "\n", "\n", "The goal of this application is to:\n", "* Reduce unnecessary help desk tickets\n", "* Improve employee self-service support\n", "* Provide faster troubleshooting assistance\n", "* Reduce IT support workload\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": { "id": "JoYOrQV0Pp4a" }, "source": [ "Import Libraries" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "GKFMl-GVPq-_" }, "outputs": [], "source": [ "from transformers import pipeline" ] }, { "cell_type": "markdown", "metadata": { "id": "9ZIyA7dkPw2q" }, "source": [ "Load the Fine-Tuned GPT-2 Model" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 368, "referenced_widgets": [ "ec6dffd3bca1404492258a7b9f0ccee7", "e2babb6af2944159a8eea280cbece666", "532768b080e94dee9a4a84b36f4e2404", "54e2ecce730a488e9a86cf905153a14f", "4adbf39c92c8497a921d9b029d04ff2e", "e3c2bc494dad4eb18755e5d9934bdfe4", "52181e740bcb4bbe96f231c95f97788c", "37a3013718bb483a921c8151546d91fc", "817da7d243684ce49139a85b11616199", "a4645630433d4d6ab678393312ffd775", "501d547e804d47309bd27cc0aa0d84d3", "e883a64956ae49cb9ad7bce8681e785d", "3a549aced529462e9cc6b95b66b1f0e0", "1d249432a1c94a1f811d3247dbef0950", "87aa3c7ac1e043688da649a847043eeb", "69b6f9f7bbb54155bc606fc035c447aa", "c9143fccc4774d6cbbe97946e8c96b3b", "082bdafeaeef4e45b6efb95a6a8d3a8b", "9aa58a78b87f499da5a85421c9f4070d", "51b777b6478f4bf189d0811d216db6e4", "96417ca89b284d91a44227706e701936", "86a9666156f24fd5825df745dab884ea", "d977452b690e4fb592da5c97e06fa847", "672825db0d8645caaeef448dd365298e", "ac632653cfaf4141986024c861ff5de7", "520dc1bb07c24321af80d03a416c06b3", "1337d3ddc3304310bf6403749d9e65f8", "d07c3ed699c240c88940e4ec7d54376a", "8f1666cbc31d42409508a3b865b2c409", "59b33d1e68a04fd6944c26e548b0ee69", "aa05aed4a90c4b849eebebd83d04621e", "1c95c4c38da14454a384ac6f529a7484", "0389ad4df3f84555b6aa4bd39e6425f1", "93c0f2d2aa244e2b8b34a76d958ac1f3", "9e1898d1416a47c3b72da9e0c853d4db", "87cc0e635bef4ac5a642dd069f143eb3", "c86dff24c9a842fab1f4323c7ca05b09", "5df8d596af764b44a6755f4fb089a598", "1c72ffd938b64f0fbfa6167dbbc05482", "02dc48aac11442e796938a1d846f3c79", "0a51dfb63b1b47f3a10dfd1f172b8895", "daa082dec5864a95a47569d07c29f4b1", "0f4fb607af4748cdb1618a773ce89de5", "9e233d0c9d914ab29c45d783ee366e9f", "92a7798f098e4c8888fb1517e1a63087", "01bb2de1997e41fd9882659ed77dee02", "de2adc5c60054a6db7a539c12c7d8e7a", "6aa643db2b144b698e7926453beae6ef", "67b4e11278d346b7b9deb33658e5aaa4", "913c3f0c75414bcd8822b03c95865307", "858bd64de62148ee927bba05167d6559", "77c333c8ed394c5daf7734a5337b0c44", "c31093be7779471db1199ed6c3c2c7a5", "7a67ee2b4a4c47a1acfb7e7b80f6b8c3", "bdad6794290b41979100b6a60bfdab1e", "ed1eda737f7a4c0ebf4116db8fad192b", "4ce7559732a443be8684e05103564f6e", "274533379558404c92dc4cf72c0c727c", "ed05289293a24f36bbba78346593885f", "9fdf5b30f835416ca4a757a8b74ae082", "1a95598bd64549e2a4db06ea4b9c7daf", "3274eb98f4fe43f78010de368ad290b6", "1f097cedce5c4af6a40f830df3012a00", "9ce252396ac0450587d6b022357652b1", "6c22ef45c3d64c138ce8245f5ff800b8", "cfd169a12210474da33ad4580d538c1d" ] }, "id": "NESsxtohPyaG", "outputId": "5eba57bf-07b0-4e9d-9ba6-9f82cb18998d" }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/usr/local/lib/python3.12/dist-packages/huggingface_hub/utils/_auth.py:93: UserWarning: \n", "The secret `HF_TOKEN` does not exist in your Colab secrets.\n", "To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n", "You will be able to reuse this secret in all of your notebooks.\n", "Please note that authentication is recommended but still optional to access public models or datasets.\n", " warnings.warn(\n", "Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n", "WARNING:huggingface_hub.utils._http:Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "ec6dffd3bca1404492258a7b9f0ccee7", "version_major": 2, "version_minor": 0 }, "text/plain": [ "config.json: 0%| | 0.00/961 [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "e883a64956ae49cb9ad7bce8681e785d", "version_major": 2, "version_minor": 0 }, "text/plain": [ "model.safetensors: 0%| | 0.00/498M [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "d977452b690e4fb592da5c97e06fa847", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Loading weights: 0%| | 0/148 [00:00, ?it/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "93c0f2d2aa244e2b8b34a76d958ac1f3", "version_major": 2, "version_minor": 0 }, "text/plain": [ "generation_config.json: 0%| | 0.00/118 [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "92a7798f098e4c8888fb1517e1a63087", "version_major": 2, "version_minor": 0 }, "text/plain": [ "tokenizer_config.json: 0%| | 0.00/297 [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "ed1eda737f7a4c0ebf4116db8fad192b", "version_major": 2, "version_minor": 0 }, "text/plain": [ "tokenizer.json: 0.00B [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "assistant_generator = pipeline(\n", " \"text-generation\",\n", " model=\"masonmidd/ticket-gpt2\",\n", " tokenizer=\"masonmidd/ticket-gpt2\"\n", ")" ] }, { "cell_type": "markdown", "metadata": { "id": "apQn91cKP1RG" }, "source": [ "Create Troubleshooting Prompt Function" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "DTNaL7COP0_W" }, "outputs": [], "source": [ "# AI HELP DESK ASSISTANT FUNCTION\n", "# ============================================\n", "\n", "def helpdesk_assistant(issue_text):\n", "\n", " prompt = f\"\"\"\n", "You are an IT help desk assistant.\n", "\n", "Read the employee issue and provide troubleshooting suggestions.\n", "\n", "Issue:\n", "{issue_text}\n", "\n", "Suggested Fix:\n", "\"\"\"\n", "\n", " result = assistant_generator(\n", " prompt,\n", " max_length=150,\n", " do_sample=True,\n", " temperature=0.8,\n", " top_k=50,\n", " num_return_sequences=1\n", " )\n", "\n", " generated_text = result[0][\"generated_text\"]\n", "\n", " return generated_text" ] }, { "cell_type": "markdown", "metadata": { "id": "8Qs_jjlqQN_K" }, "source": [ "Create Basic Troubleshooting Enhancement Logic" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "Jirl5YURQU1H" }, "outputs": [], "source": [ "# TROUBLESHOOTING ENHANCEMENT\n", "# ============================================\n", "\n", "def additional_troubleshooting(issue_text):\n", "\n", " text = issue_text.lower()\n", "\n", " if \"vpn\" in text:\n", " return [\n", " \"Verify internet connectivity\",\n", " \"Reset VPN credentials\",\n", " \"Restart VPN client\"\n", " ]\n", "\n", " elif \"printer\" in text:\n", " return [\n", " \"Verify printer power\",\n", " \"Reconnect network printer\",\n", " \"Restart printer spooler\"\n", " ]\n", "\n", " elif \"password\" in text or \"login\" in text:\n", " return [\n", " \"Verify username\",\n", " \"Reset password\",\n", " \"Verify MFA enrollment\"\n", " ]\n", "\n", " elif \"wifi\" in text or \"network\" in text:\n", " return [\n", " \"Restart wireless adapter\",\n", " \"Reconnect to Wi-Fi\",\n", " \"Verify network credentials\"\n", " ]\n", "\n", " else:\n", " return [\n", " \"Restart device\",\n", " \"Reconnect to company network\",\n", " \"Contact IT support if issue persists\"\n", " ]" ] }, { "cell_type": "markdown", "metadata": { "id": "ULhN5EAOQsOr" }, "source": [ "Create Full AI Help Desk Workflow" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "LWvnnsRaQulA" }, "outputs": [], "source": [ "# FULL HELP DESK WORKFLOW\n", "# ============================================\n", "\n", "def analyze_employee_issue(issue_text):\n", "\n", " model_output = helpdesk_assistant(issue_text)\n", "\n", " extra_steps = additional_troubleshooting(issue_text)\n", "\n", " print(\"====================================\")\n", " print(\"AI HELP DESK ASSISTANT\")\n", " print(\"====================================\")\n", "\n", " print(f\"Issue:\\n{issue_text}\\n\")\n", "\n", " print(\"GPT-2 Generated Suggestions:\")\n", " print(model_output)\n", "\n", " print(\"\\nAdditional Troubleshooting Steps:\")\n", "\n", " for step in extra_steps:\n", " print(f\"- {step}\")" ] }, { "cell_type": "markdown", "metadata": { "id": "cPtsHuHYRJKW" }, "source": [ "Demo Example 1" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "mK1BmlcqQzgB", "outputId": "01634dbe-9090-4a67-8209-a3ec3ada6988" }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Passing `generation_config` together with generation-related arguments=({'temperature', 'max_length', 'do_sample', 'num_return_sequences', 'top_k'}) is deprecated and will be removed in future versions. Please pass either a `generation_config` object OR all generation parameters explicitly, but not both.\n", "Both `max_new_tokens` (=256) and `max_length`(=150) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "====================================\n", "AI HELP DESK ASSISTANT\n", "====================================\n", "Issue:\n", "\n", "Cannot connect to VPN from home after password change.\n", "\n", "\n", "GPT-2 Generated Suggestions:\n", "\n", "You are an IT help desk assistant.\n", "\n", "Read the employee issue and provide troubleshooting suggestions.\n", "\n", "Issue:\n", "\n", "Cannot connect to VPN from home after password change.\n", "\n", "\n", "Suggested Fix:\n", "\n", "Steps to reproduce:\n", "1) Make this a directory at the end of the script.\n", "2) Call log function in the script.\n", "3) Add a few more parameters before the script is invoked.\n", "4) Call log function in the script.\n", "5) Call log function in the script.\n", "6) Add the line \"\n", "\" to the end of the list of parameters after the script is called.\n", "7) Call log function in the script and use it as a regular argument to the log function.\n", "8) Call log function in the script and use it as a regular argument to the log function.\n", "9) Call log function in the script and use it as a regular argument to the log function.\n", "\n", "\n", "Expected behavior:\n", "It will perform a normal job within the following environment.\n", "Expected behavior:\n", "Run the script as normal program.\n", "\n", "\n", "Expected behavior:\n", "If I use this environment, it will be called as normal program.\n", "Expected behavior:\n", "You should have a chance to properly call test.pl function in the script.\n", "\n", "\n", "Code sample code\n", " \n", " pytorch-lightning/pytorch_lightning/callbacks/\n", "\n", "Additional Troubleshooting Steps:\n", "- Verify internet connectivity\n", "- Reset VPN credentials\n", "- Restart VPN client\n" ] } ], "source": [ "sample_issue_1 = \"\"\"\n", "Cannot connect to VPN from home after password change.\n", "\"\"\"\n", "\n", "analyze_employee_issue(sample_issue_1)" ] }, { "cell_type": "markdown", "metadata": { "id": "3gUz35-qRMPJ" }, "source": [ "Demo Example 2" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "e9zCvfMIRd7A", "outputId": "d005bd38-1a33-4a83-c749-fb2fe2bdcc6b" }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=150) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "====================================\n", "AI HELP DESK ASSISTANT\n", "====================================\n", "Issue:\n", "\n", "Office printer is offline and documents will not print.\n", "\n", "\n", "GPT-2 Generated Suggestions:\n", "\n", "You are an IT help desk assistant.\n", "\n", "Read the employee issue and provide troubleshooting suggestions.\n", "\n", "Issue:\n", "\n", "Office printer is offline and documents will not print.\n", "\n", "\n", "Suggested Fix:\n", "\n", "Expose the bug in the Trainer\n", "Save the Trainer as a user space file.\n", "\n", "What is your question?\n", "\n", "I am currently working in the context of a training and validation layer\n", "https://pytorch-lightning.readthedocs.io/en/latest/pytorch-lightning/en/latest/trainer/training.html#training.py\n", "Is my notebook and training object logged?\n", "\n", "Any help?\n", "\n", "Category:\n", "bug, help wanted\n", "Category:\n", "question\n", "Category:\n", "question\n", "Category:\n", "latest\n", "Category:\n", "comment\n", "Category:\n", "\n", "question\n", "\n", "Category:\n", "question\n", "Category:\n", "question\n", "\n", "Category:\n", "question\n", "\n", "Additional Troubleshooting Steps:\n", "- Verify printer power\n", "- Reconnect network printer\n", "- Restart printer spooler\n" ] } ], "source": [ "sample_issue_2 = \"\"\"\n", "Office printer is offline and documents will not print.\n", "\"\"\"\n", "\n", "analyze_employee_issue(sample_issue_2)" ] }, { "cell_type": "markdown", "metadata": { "id": "lZg09z0pRoAt" }, "source": [ "Demo Example 3" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "iNA6FmluRmY0", "outputId": "835481b2-050c-467d-c5da-b2bb07e6bbd7" }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=150) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "====================================\n", "AI HELP DESK ASSISTANT\n", "====================================\n", "Issue:\n", "\n", "Laptop cannot connect to office Wi-Fi.\n", "\n", "\n", "GPT-2 Generated Suggestions:\n", "\n", "You are an IT help desk assistant.\n", "\n", "Read the employee issue and provide troubleshooting suggestions.\n", "\n", "Issue:\n", "\n", "Laptop cannot connect to office Wi-Fi.\n", "\n", "\n", "Suggested Fix:\n", "\n", "Add a lightning module to the LDP module.\n", "Add support for adding a lightning module to the LightningModule class.\n", "Add two LightningModule classes to the LightningModule class.\n", "Add a LightningModule class to the LightningModule class.\n", "Add a LightningModule class to the LightningModule class.\n", "In the LightningModule class, the LightningModule receives a lightning callback function.\n", "Add a LightningModule class to the LightningModule class.\n", "In the LightningModule class, the LightningModule receives a LightningModule logger.\n", "\n", "The lightning method returns a lightning callback callback.\n", "To Reproduce\n", "Steps to reproduce the behavior:\n", "Run the code in the LightningModule class\n", "\n", "In the LightningModule class, implement the LightningModule.connect method\n", "Add the LightningModule class\n", "Run the code in the LightningModule class\n", "\n", "Add the LightningModule class\n", "Run the code in the LightningModule class\n", "Add the LightningModule logger\n", "\n", "Run the code in the LightningModule class\n", "\n", "Add the training_loop method\n", "Add the LightningModule logger\n", "\n", "Run the code in the LightningModule class\n", "Add the LightningModule logger\n", "\n", "Run the code in the LightningModule class\n", "Add the training_loop method\n", "Add the LightningModule logger\n", "Run the code\n", "\n", "Additional Troubleshooting Steps:\n", "- Restart device\n", "- Reconnect to company network\n", "- Contact IT support if issue persists\n" ] } ], "source": [ "sample_issue_3 = \"\"\"\n", "Laptop cannot connect to office Wi-Fi.\n", "\"\"\"\n", "\n", "analyze_employee_issue(sample_issue_3)" ] }, { "cell_type": "markdown", "metadata": { "id": "WGrOaUe4R0r3" }, "source": [ "Custom Help Desk Assistant Input" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "tXEjoxV6RvTy", "outputId": "f35285e3-8209-47ed-9126-9a5c9cf4e602" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Describe your technical issue: Laptop won't connect to internet\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "Both `max_new_tokens` (=256) and `max_length`(=150) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "====================================\n", "AI HELP DESK ASSISTANT\n", "====================================\n", "Issue:\n", "Laptop won't connect to internet\n", "\n", "GPT-2 Generated Suggestions:\n", "\n", "You are an IT help desk assistant.\n", "\n", "Read the employee issue and provide troubleshooting suggestions.\n", "\n", "Issue:\n", "Laptop won't connect to internet\n", "\n", "Suggested Fix:\n", "\n", "Logging in the log, using the torch command line or using the training_step hook\n", "\n", "Category:\n", "bug, help wanted\n", "\n", "Category:\n", "question, won't fix\n", "\n", "Category:\n", "question, won't fix, won't fix\n", "\n", "Category:\n", "bug, won't fix\n", "\n", "Additional Troubleshooting Steps:\n", "- Restart device\n", "- Reconnect to company network\n", "- Contact IT support if issue persists\n" ] } ], "source": [ "# CUSTOM EMPLOYEE ISSUE INPUT\n", "# ============================================\n", "\n", "user_issue = input(\"Describe your technical issue: \")\n", "\n", "analyze_employee_issue(user_issue)" ] } ], "metadata": { "accelerator": "GPU", "colab": { "gpuType": "A100", "machine_shape": "hm", "provenance": [] }, "kernelspec": { "display_name": "Python 3", "name": "python3" }, "language_info": { "name": "python" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "01bb2de1997e41fd9882659ed77dee02": { "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_913c3f0c75414bcd8822b03c95865307", "placeholder": "", "style": "IPY_MODEL_858bd64de62148ee927bba05167d6559", "value": "tokenizer_config.json: 100%" } }, "02dc48aac11442e796938a1d846f3c79": { "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": "" } }, "0389ad4df3f84555b6aa4bd39e6425f1": { "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": "" } }, "082bdafeaeef4e45b6efb95a6a8d3a8b": { "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": "" } }, "0a51dfb63b1b47f3a10dfd1f172b8895": { "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 } }, "0f4fb607af4748cdb1618a773ce89de5": { "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 } }, "1337d3ddc3304310bf6403749d9e65f8": { "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 } }, "1a95598bd64549e2a4db06ea4b9c7daf": { "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 } }, "1c72ffd938b64f0fbfa6167dbbc05482": { "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 } }, "1c95c4c38da14454a384ac6f529a7484": { "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 } }, "1d249432a1c94a1f811d3247dbef0950": { "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_9aa58a78b87f499da5a85421c9f4070d", "max": 497774208, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_51b777b6478f4bf189d0811d216db6e4", "value": 497774208 } }, "1f097cedce5c4af6a40f830df3012a00": { "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" } }, "274533379558404c92dc4cf72c0c727c": { "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_1f097cedce5c4af6a40f830df3012a00", "max": 1, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_9ce252396ac0450587d6b022357652b1", "value": 1 } }, "3274eb98f4fe43f78010de368ad290b6": { "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": "" } }, "37a3013718bb483a921c8151546d91fc": { "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 } }, "3a549aced529462e9cc6b95b66b1f0e0": { "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_c9143fccc4774d6cbbe97946e8c96b3b", "placeholder": "", "style": "IPY_MODEL_082bdafeaeef4e45b6efb95a6a8d3a8b", "value": "model.safetensors: 100%" } }, "4adbf39c92c8497a921d9b029d04ff2e": { "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 } }, "4ce7559732a443be8684e05103564f6e": { "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_1a95598bd64549e2a4db06ea4b9c7daf", "placeholder": "", "style": "IPY_MODEL_3274eb98f4fe43f78010de368ad290b6", "value": "tokenizer.json: " } }, "501d547e804d47309bd27cc0aa0d84d3": { "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": "" } }, "51b777b6478f4bf189d0811d216db6e4": { "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": "" } }, "520dc1bb07c24321af80d03a416c06b3": { "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_1c95c4c38da14454a384ac6f529a7484", "placeholder": "", "style": "IPY_MODEL_0389ad4df3f84555b6aa4bd39e6425f1", "value": " 148/148 [00:00<00:00, 976.66it/s, Materializing param=transformer.wte.weight]" } }, "52181e740bcb4bbe96f231c95f97788c": { "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": "" } }, "532768b080e94dee9a4a84b36f4e2404": { "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_37a3013718bb483a921c8151546d91fc", "max": 961, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_817da7d243684ce49139a85b11616199", "value": 961 } }, "54e2ecce730a488e9a86cf905153a14f": { "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_a4645630433d4d6ab678393312ffd775", "placeholder": "", "style": "IPY_MODEL_501d547e804d47309bd27cc0aa0d84d3", "value": " 961/961 [00:00<00:00, 117kB/s]" } }, "59b33d1e68a04fd6944c26e548b0ee69": { "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 } }, "5df8d596af764b44a6755f4fb089a598": { "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 } }, "672825db0d8645caaeef448dd365298e": { "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_d07c3ed699c240c88940e4ec7d54376a", "placeholder": "", "style": "IPY_MODEL_8f1666cbc31d42409508a3b865b2c409", "value": "Loading weights: 100%" } }, "67b4e11278d346b7b9deb33658e5aaa4": { "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 } }, "69b6f9f7bbb54155bc606fc035c447aa": { "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 } }, "6aa643db2b144b698e7926453beae6ef": { "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_7a67ee2b4a4c47a1acfb7e7b80f6b8c3", "placeholder": "", "style": "IPY_MODEL_bdad6794290b41979100b6a60bfdab1e", "value": " 297/297 [00:00<00:00, 36.4kB/s]" } }, "6c22ef45c3d64c138ce8245f5ff800b8": { "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 } }, "77c333c8ed394c5daf7734a5337b0c44": { "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 } }, "7a67ee2b4a4c47a1acfb7e7b80f6b8c3": { "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 } }, "817da7d243684ce49139a85b11616199": { "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": "" } }, "858bd64de62148ee927bba05167d6559": { "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": "" } }, "86a9666156f24fd5825df745dab884ea": { "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": "" } }, "87aa3c7ac1e043688da649a847043eeb": { "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_96417ca89b284d91a44227706e701936", "placeholder": "", "style": "IPY_MODEL_86a9666156f24fd5825df745dab884ea", "value": " 498M/498M [00:18<00:00, 58.6MB/s]" } }, "87cc0e635bef4ac5a642dd069f143eb3": { "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_0a51dfb63b1b47f3a10dfd1f172b8895", "max": 118, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_daa082dec5864a95a47569d07c29f4b1", "value": 118 } }, "8f1666cbc31d42409508a3b865b2c409": { "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": "" } }, "913c3f0c75414bcd8822b03c95865307": { "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 } }, "92a7798f098e4c8888fb1517e1a63087": { "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_01bb2de1997e41fd9882659ed77dee02", "IPY_MODEL_de2adc5c60054a6db7a539c12c7d8e7a", "IPY_MODEL_6aa643db2b144b698e7926453beae6ef" ], "layout": "IPY_MODEL_67b4e11278d346b7b9deb33658e5aaa4" } }, "93c0f2d2aa244e2b8b34a76d958ac1f3": { "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_9e1898d1416a47c3b72da9e0c853d4db", "IPY_MODEL_87cc0e635bef4ac5a642dd069f143eb3", "IPY_MODEL_c86dff24c9a842fab1f4323c7ca05b09" ], "layout": "IPY_MODEL_5df8d596af764b44a6755f4fb089a598" } }, "96417ca89b284d91a44227706e701936": { "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 } }, "9aa58a78b87f499da5a85421c9f4070d": { "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 } }, "9ce252396ac0450587d6b022357652b1": { "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": "" } }, "9e1898d1416a47c3b72da9e0c853d4db": { "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_1c72ffd938b64f0fbfa6167dbbc05482", "placeholder": "", "style": "IPY_MODEL_02dc48aac11442e796938a1d846f3c79", "value": "generation_config.json: 100%" } }, "9e233d0c9d914ab29c45d783ee366e9f": { "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": "" } }, "9fdf5b30f835416ca4a757a8b74ae082": { "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 } }, "a4645630433d4d6ab678393312ffd775": { "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 } }, "aa05aed4a90c4b849eebebd83d04621e": { "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": "" } }, "ac632653cfaf4141986024c861ff5de7": { "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_59b33d1e68a04fd6944c26e548b0ee69", "max": 148, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_aa05aed4a90c4b849eebebd83d04621e", "value": 148 } }, "bdad6794290b41979100b6a60bfdab1e": { "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": "" } }, "c31093be7779471db1199ed6c3c2c7a5": { "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": "" } }, "c86dff24c9a842fab1f4323c7ca05b09": { "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_0f4fb607af4748cdb1618a773ce89de5", "placeholder": "", "style": "IPY_MODEL_9e233d0c9d914ab29c45d783ee366e9f", "value": " 118/118 [00:00<00:00, 16.1kB/s]" } }, "c9143fccc4774d6cbbe97946e8c96b3b": { "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 } }, "cfd169a12210474da33ad4580d538c1d": { "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": "" } }, "d07c3ed699c240c88940e4ec7d54376a": { "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 } }, "d977452b690e4fb592da5c97e06fa847": { "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_672825db0d8645caaeef448dd365298e", "IPY_MODEL_ac632653cfaf4141986024c861ff5de7", "IPY_MODEL_520dc1bb07c24321af80d03a416c06b3" ], "layout": "IPY_MODEL_1337d3ddc3304310bf6403749d9e65f8" } }, "daa082dec5864a95a47569d07c29f4b1": { "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": "" } }, "de2adc5c60054a6db7a539c12c7d8e7a": { "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_77c333c8ed394c5daf7734a5337b0c44", "max": 297, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_c31093be7779471db1199ed6c3c2c7a5", "value": 297 } }, "e2babb6af2944159a8eea280cbece666": { "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_e3c2bc494dad4eb18755e5d9934bdfe4", "placeholder": "", "style": "IPY_MODEL_52181e740bcb4bbe96f231c95f97788c", "value": "config.json: 100%" } }, "e3c2bc494dad4eb18755e5d9934bdfe4": { "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 } }, "e883a64956ae49cb9ad7bce8681e785d": { "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_3a549aced529462e9cc6b95b66b1f0e0", "IPY_MODEL_1d249432a1c94a1f811d3247dbef0950", "IPY_MODEL_87aa3c7ac1e043688da649a847043eeb" ], "layout": "IPY_MODEL_69b6f9f7bbb54155bc606fc035c447aa" } }, "ec6dffd3bca1404492258a7b9f0ccee7": { "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_e2babb6af2944159a8eea280cbece666", "IPY_MODEL_532768b080e94dee9a4a84b36f4e2404", "IPY_MODEL_54e2ecce730a488e9a86cf905153a14f" ], "layout": "IPY_MODEL_4adbf39c92c8497a921d9b029d04ff2e" } }, "ed05289293a24f36bbba78346593885f": { "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_6c22ef45c3d64c138ce8245f5ff800b8", "placeholder": "", "style": "IPY_MODEL_cfd169a12210474da33ad4580d538c1d", "value": " 3.56M/? [00:00<00:00, 126MB/s]" } }, "ed1eda737f7a4c0ebf4116db8fad192b": { "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_4ce7559732a443be8684e05103564f6e", "IPY_MODEL_274533379558404c92dc4cf72c0c727c", "IPY_MODEL_ed05289293a24f36bbba78346593885f" ], "layout": "IPY_MODEL_9fdf5b30f835416ca4a757a8b74ae082" } }, "3999aa19693149d7b40b122808e6f19b": { "model_module": "@jupyter-widgets/controls", "model_name": "VBoxModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "VBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "VBoxView", "box_style": "", "children": [], "layout": "IPY_MODEL_02af896559e5412f88a6c7337a4d87d6" } }, "dad3979814bf4038b4d61043d56b93b1": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_3dfa472f6451494ca85b607381f5f48f", "placeholder": "", "style": "IPY_MODEL_f30c5c323283417aa1be8796dcfd300a", "value": "