{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "-b4-SW1aGOcF" }, "source": [ "# **ChemQwen VL Chemical Identifier**\n", "\n", "Qwen2VLForConditionalGeneration" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "oDmd1ZObGSel", "outputId": "a2387c94-b73b-4fbd-bb0b-2b9ed6c2693e" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: gradio in /usr/local/lib/python3.11/dist-packages (5.12.0)\n", "Requirement already satisfied: spaces in /usr/local/lib/python3.11/dist-packages (0.32.0)\n", "Requirement already satisfied: transformers in /usr/local/lib/python3.11/dist-packages (4.47.1)\n", "Requirement already satisfied: accelerate in /usr/local/lib/python3.11/dist-packages (1.2.1)\n", "Requirement already satisfied: numpy in /usr/local/lib/python3.11/dist-packages (1.26.4)\n", "Requirement already satisfied: requests in /usr/local/lib/python3.11/dist-packages (2.32.3)\n", "Requirement already satisfied: torch in /usr/local/lib/python3.11/dist-packages (2.5.1+cu121)\n", "Requirement already satisfied: torchvision in /usr/local/lib/python3.11/dist-packages (0.20.1+cu121)\n", "Requirement already satisfied: qwen-vl-utils in /usr/local/lib/python3.11/dist-packages (0.0.8)\n", "Requirement already satisfied: av in /usr/local/lib/python3.11/dist-packages (14.0.1)\n", "Requirement already satisfied: ipython in /usr/local/lib/python3.11/dist-packages (7.34.0)\n", "Requirement already satisfied: reportlab in /usr/local/lib/python3.11/dist-packages (4.2.5)\n", "Requirement already satisfied: fpdf in /usr/local/lib/python3.11/dist-packages (1.7.2)\n", "Requirement already satisfied: python-docx in /usr/local/lib/python3.11/dist-packages (1.1.2)\n", "Requirement already satisfied: pillow in /usr/local/lib/python3.11/dist-packages (11.1.0)\n", "Requirement already satisfied: huggingface_hub in /usr/local/lib/python3.11/dist-packages (0.27.1)\n", "Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (23.2.1)\n", "Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (3.7.1)\n", "Requirement already satisfied: fastapi<1.0,>=0.115.2 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.115.6)\n", "Requirement already satisfied: ffmpy in /usr/local/lib/python3.11/dist-packages (from gradio) (0.5.0)\n", "Requirement already satisfied: gradio-client==1.5.4 in /usr/local/lib/python3.11/dist-packages (from gradio) (1.5.4)\n", "Requirement already satisfied: httpx>=0.24.1 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.28.1)\n", "Requirement already satisfied: jinja2<4.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (3.1.5)\n", "Requirement already satisfied: markupsafe~=2.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (2.1.5)\n", "Requirement already satisfied: orjson~=3.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (3.10.14)\n", "Requirement already satisfied: packaging in /usr/local/lib/python3.11/dist-packages (from gradio) (24.2)\n", "Requirement already satisfied: pandas<3.0,>=1.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (2.2.2)\n", "Requirement already satisfied: pydantic>=2.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (2.10.5)\n", "Requirement already satisfied: pydub in /usr/local/lib/python3.11/dist-packages (from gradio) (0.25.1)\n", "Requirement already satisfied: python-multipart>=0.0.18 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.0.20)\n", "Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (6.0.2)\n", "Requirement already satisfied: ruff>=0.2.2 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.9.2)\n", "Requirement already satisfied: safehttpx<0.2.0,>=0.1.6 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.1.6)\n", "Requirement already satisfied: semantic-version~=2.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (2.10.0)\n", "Requirement already satisfied: starlette<1.0,>=0.40.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.41.3)\n", "Requirement already satisfied: tomlkit<0.14.0,>=0.12.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.13.2)\n", "Requirement already satisfied: typer<1.0,>=0.12 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.15.1)\n", "Requirement already satisfied: typing-extensions~=4.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (4.12.2)\n", "Requirement already satisfied: uvicorn>=0.14.0 in /usr/local/lib/python3.11/dist-packages (from gradio) (0.34.0)\n", "Requirement already satisfied: fsspec in /usr/local/lib/python3.11/dist-packages (from gradio-client==1.5.4->gradio) (2024.10.0)\n", "Requirement already satisfied: websockets<15.0,>=10.0 in /usr/local/lib/python3.11/dist-packages (from gradio-client==1.5.4->gradio) (14.1)\n", "Requirement already satisfied: psutil<6,>=2 in /usr/local/lib/python3.11/dist-packages (from spaces) (5.9.5)\n", "Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from transformers) (3.16.1)\n", "Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.11/dist-packages (from transformers) (2024.11.6)\n", "Requirement already satisfied: tokenizers<0.22,>=0.21 in /usr/local/lib/python3.11/dist-packages (from transformers) (0.21.0)\n", "Requirement already satisfied: safetensors>=0.4.1 in /usr/local/lib/python3.11/dist-packages (from transformers) (0.5.2)\n", "Requirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.11/dist-packages (from transformers) (4.67.1)\n", "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests) (3.4.1)\n", "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests) (3.10)\n", "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests) (2.3.0)\n", "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests) (2024.12.14)\n", "Requirement already satisfied: networkx in /usr/local/lib/python3.11/dist-packages (from torch) (3.4.2)\n", "Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /usr/local/lib/python3.11/dist-packages (from torch) (12.1.105)\n", "Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /usr/local/lib/python3.11/dist-packages (from torch) (12.1.105)\n", "Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /usr/local/lib/python3.11/dist-packages (from torch) (12.1.105)\n", "Requirement already satisfied: nvidia-cudnn-cu12==9.1.0.70 in /usr/local/lib/python3.11/dist-packages (from torch) (9.1.0.70)\n", "Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /usr/local/lib/python3.11/dist-packages (from torch) (12.1.3.1)\n", "Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /usr/local/lib/python3.11/dist-packages (from torch) (11.0.2.54)\n", "Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /usr/local/lib/python3.11/dist-packages (from torch) (10.3.2.106)\n", "Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /usr/local/lib/python3.11/dist-packages (from torch) (11.4.5.107)\n", "Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /usr/local/lib/python3.11/dist-packages (from torch) (12.1.0.106)\n", "Requirement already satisfied: nvidia-nccl-cu12==2.21.5 in /usr/local/lib/python3.11/dist-packages (from torch) (2.21.5)\n", "Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /usr/local/lib/python3.11/dist-packages (from torch) (12.1.105)\n", "Requirement already satisfied: triton==3.1.0 in /usr/local/lib/python3.11/dist-packages (from torch) (3.1.0)\n", "Requirement already satisfied: sympy==1.13.1 in /usr/local/lib/python3.11/dist-packages (from torch) (1.13.1)\n", "Requirement already satisfied: nvidia-nvjitlink-cu12 in /usr/local/lib/python3.11/dist-packages (from nvidia-cusolver-cu12==11.4.5.107->torch) (12.6.85)\n", "Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.11/dist-packages (from sympy==1.13.1->torch) (1.3.0)\n", "Requirement already satisfied: setuptools>=18.5 in /usr/local/lib/python3.11/dist-packages (from ipython) (75.1.0)\n", "Requirement already satisfied: jedi>=0.16 in /usr/local/lib/python3.11/dist-packages (from ipython) (0.19.2)\n", "Requirement already satisfied: decorator in /usr/local/lib/python3.11/dist-packages (from ipython) (4.4.2)\n", "Requirement already satisfied: pickleshare in /usr/local/lib/python3.11/dist-packages (from ipython) (0.7.5)\n", "Requirement already satisfied: traitlets>=4.2 in /usr/local/lib/python3.11/dist-packages (from ipython) (5.7.1)\n", "Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /usr/local/lib/python3.11/dist-packages (from ipython) (3.0.48)\n", "Requirement already satisfied: pygments in /usr/local/lib/python3.11/dist-packages (from ipython) (2.18.0)\n", "Requirement already satisfied: backcall in /usr/local/lib/python3.11/dist-packages (from ipython) (0.2.0)\n", "Requirement already satisfied: matplotlib-inline in /usr/local/lib/python3.11/dist-packages (from ipython) (0.1.7)\n", "Requirement already satisfied: pexpect>4.3 in /usr/local/lib/python3.11/dist-packages (from ipython) (4.9.0)\n", "Requirement already satisfied: chardet in /usr/local/lib/python3.11/dist-packages (from reportlab) (5.2.0)\n", "Requirement already satisfied: lxml>=3.1.0 in /usr/local/lib/python3.11/dist-packages (from python-docx) (5.3.0)\n", "Requirement already satisfied: sniffio>=1.1 in /usr/local/lib/python3.11/dist-packages (from anyio<5.0,>=3.0->gradio) (1.3.1)\n", "Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.11/dist-packages (from httpx>=0.24.1->gradio) (1.0.7)\n", "Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.11/dist-packages (from httpcore==1.*->httpx>=0.24.1->gradio) (0.14.0)\n", "Requirement already satisfied: parso<0.9.0,>=0.8.4 in /usr/local/lib/python3.11/dist-packages (from jedi>=0.16->ipython) (0.8.4)\n", "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.11/dist-packages (from pandas<3.0,>=1.0->gradio) (2.8.2)\n", "Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.11/dist-packages (from pandas<3.0,>=1.0->gradio) (2024.2)\n", "Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.11/dist-packages (from pandas<3.0,>=1.0->gradio) (2024.2)\n", "Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.11/dist-packages (from pexpect>4.3->ipython) (0.7.0)\n", "Requirement already satisfied: wcwidth in /usr/local/lib/python3.11/dist-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython) (0.2.13)\n", "Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.11/dist-packages (from pydantic>=2.0->gradio) (0.7.0)\n", "Requirement already satisfied: pydantic-core==2.27.2 in /usr/local/lib/python3.11/dist-packages (from pydantic>=2.0->gradio) (2.27.2)\n", "Requirement already satisfied: click>=8.0.0 in /usr/local/lib/python3.11/dist-packages (from typer<1.0,>=0.12->gradio) (8.1.8)\n", "Requirement already satisfied: shellingham>=1.3.0 in /usr/local/lib/python3.11/dist-packages (from typer<1.0,>=0.12->gradio) (1.5.4)\n", "Requirement already satisfied: rich>=10.11.0 in /usr/local/lib/python3.11/dist-packages (from typer<1.0,>=0.12->gradio) (13.9.4)\n", "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.11/dist-packages (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio) (1.17.0)\n", "Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.11/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (3.0.0)\n", "Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.11/dist-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2)\n" ] } ], "source": [ "!pip install gradio spaces transformers accelerate numpy requests torch torchvision qwen-vl-utils av ipython reportlab fpdf python-docx pillow huggingface_hub" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 1000, "referenced_widgets": [ "942933334dd6498bac61554b53ced49d", "ceb381956649432dba19bd2cfba89034", "c3f93e37b5e8422693715f274afd8667", "e619938a79de4af5b4c69fbdc2c4210c", "252dcd4617a94d11b466fc8aa09a1e4c", "aaf07082864743deaabc49a9f6619685", "c30e52ec5f0844b9b727f0fcbd563c76", "5eab1f65a3134a4da68ae145aa523928", "06c4b6f11a574373b84a771f1fea1401", "99e020bfa18148a6997e99ce98f51609", "8af2457c889542cf9b3fa6c8c5240720", "c7986afac5ce4568bfcda52a3497825b", "0849440ef69f4387b686c4078da3a128", "9227b2456cbe4622b0340245db20995a", "9228e3d9e98d4196ace259ccf5fff58d", "efd8c11074de4659b43f59796ad95866", "527ac11200a044ba9a776255f76bcc7b", "6b6f3aaa928541038ab4fc0d4c0e13c3", "c10523f389844f4c87d345c6aea7da2b", "3cf5a8ddbf164130b725759aa3b89e73", "f4702b83d2a24724bcf63daf393fc1d2", "952d00ac672c489ab342cd5aa3e387f5", "0f07916fd0ee4702aab8440832cc6d6f", "f6cc362019574815b834901e4706867a", "9fa31903b5f046e4b133160331cacb25", "1c90a83f8b494c81960e0d9087a8ed43", "59c7dd49a0c9407caf5e16234771d3ff", "95087bf096a24f1d90a300200339426f", "92604dc6a4bc461285a521e8c8d99955", "85d7240eec6c4bd488c4029f330f9c11", "92ae635ff65a490abd59ddd709b5916b", "f9cc6ffe7a28464dbf933949bacc2789", "34f02d0faa8b47fd8c973be39ccdba64", "0a371f4310954e96b247cf82037c4442", "52c7c161d7b24dad93c001ebb9e55fb0", "294bf1aa4241430fa260d33313b4dd71", "a161052c89014725a709c2f7329b6f7e", "8bac1b23c1d54cd4bc74dd741852b24f", "4f22aad01072490aab9532ef42d5c071", "a012565965004529ae182ceb7736f623", "36cfd516648d47499851b031cecb5a94", "52a615fd0ac448c292e56b8e7b14ffa3", "b69625e9ed7d44dfbc7691a765ab369f", "b7cc51ac5b19491e98a622a87b0cca1e", "ebacfdaa3ac948418ea3d3c8ea7d481c", "4b1d7a0c452240a9af72e8a44bc094db", "7d47d05af12e4f9f9126a9a910391b97", "1a6cd7f5fb5641819b5b4eee7fc9992b", "1b239e55f31e43ee8684b69c03d91bd5", "7b35f33c0aec4f088634c0770f881d29", "980847bc941043c4a8b3e63f380c3fe4", "46425cffdfdf4b32bccf3885a81fdcdb", "4458cba45dc94af3a07901bde38e1e71", "046e47346a6a4b3eb596482fe3ac4f53", "587cb9d4447841a6bf2e935069b72d92", "2a4c486a69a64e6c9f91cff13497d689", "8a023125f0a74ef4abb84f2b00fe1303", "4c84f1a7909c4f2388c68cb8c910f85d", "6270ca761e9f4c949cf5786875bd4600", "2ada0183de5f4503beebb31e8add91cb", "a5867d2222424b4ba1697e2fc59a4e16", "03e1076b973e4ea18f511e04cb143d94", "ae4dfff335d64c289214450b9148a301", "e8c4d70f144444fb8f5067cc6d2b8849", "0c7a2bb4ffb4456e88849d1872adc90a", "6cc2e9f5da5a4af1be41bb07118575aa", "d69d5442436d45e99e15d8f647f2657b", "b9a9492c54af402b91c1a3ba8a248985", "5aaea64d5abf44b3b8fe98bfced7a8eb", "058dec103a9b4de1b0242556ba407767", "8a683c6e021841f9a830d306e9489b7f", "8a7223d836a24efe99a403a668b79b08", "f7ff16279ac146b8874f78e43d3f8bad", "13a1f7a4b3fe4f1c9c95324f49a07201", "bd2a04114149466993d913512551c442", "6108cd35688b45f0831694b3c7862d4a", "98505220f9904cc9b50582ae163df865", "5646aaa678d540ee990e73903b75fe3a", "8bfe80536fed4a2b8f3d03d2000761d9", "7ba7700d29634cb99bb88929349cba71", "28cbeaa23d7c466690da096e8c859045", "bc008c1142f8439b819689a6cf6ab6d1", "7349b50241424a83b2e04e260638177e", "190af31930dc40d7865e6df413b08b81", "60ebdcdf5a2c420391c1f555ade30950", "bcfc3c334d594db8ade7b2e4c0f55f2b", "5373dff2f22849f090bbaae115570504", "2815e7f8492d478b885a0d3d4674933b", "d98885fc4ec742bbb735159612e60352", "f874f3bd1c274b839ccc70670d087265", "ef74d7bc07e64fcebc5b7e3728608974", "9d29d3b44c0942bea0e1e29e68c82f57", "03fe5c1ad8a94100a577d147be0506db", "1d63fbd97901411b926fb6e71ab408b8", "01909970e8c94c9692f9c31c7842c41e", "1e015a274818424dbcc574949ce4e7d7", "131546f40a4d48af9461aa682d8be52f", "9c4ffde3e0fc43b1972177f18f59e694", "2af97f6628de4c7db4734cffb7ba55f5", "ce756bb1078e4126befb1749768d7929", "c2028b7edf124fca83d27ddb3b92d0d1", "3e0d92dd284f4c0baba403cf476e988c", "9ae40e72fc9a4b61a8fac9b3c9c0389c", "8c48fb761a534176951b1365b139ac11", "8d62130a9b7748bdad754b640158ab91", "fa90d46aeb6c4adfa43074f7a6ab3a46", "0518acfe7ee64cdfb3f4291459e753c9", "e2d2e16930a245e5adf8b518db0fe42e", "bef10d3a5fbe4437be16830dedf5f4e8", "a126a95065c24074acd59d949f0aa456", "4c4d0c1add0d41e09d8c3875602fd1fe", "dc2f0e5466114f98b2c75ebd11f3f757", "2a2e1108813f4d7e90cde36ae4eef893", "436bd3cc9a754f039f8c2f5eaec50173", "0b34b779a7ac496789e7a993a257834a", "cead615147034478adeaa9bc67abb6ac", "7f5c0a2a9acb48c88cab53298eba4ee9", "3732da6c5e21429a9dbbdcee3ff43bc0", "7e20b3a47d384d6cac38727a4e1d6a35", "bc6ab7d8c3784f708b01ae748d7958e9", "2528f5b800484670b7636b4e1e3267c4" ] }, "id": "ovBSsRFhGbs2", "outputId": "b9929c12-469d-4cdb-d751-8cd1cb189e6f" }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "The argument `trust_remote_code` is to be used with Auto classes. It has no effect here and is ignored.\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Loading ChemQwen...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "942933334dd6498bac61554b53ced49d", "version_major": 2, "version_minor": 0 }, "text/plain": [ "config.json: 0%| | 0.00/1.22k [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "c7986afac5ce4568bfcda52a3497825b", "version_major": 2, "version_minor": 0 }, "text/plain": [ "model.safetensors: 0%| | 0.00/4.42G [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stderr", "output_type": "stream", "text": [ "`Qwen2VLRotaryEmbedding` can now be fully parameterized by passing the model config through the `config` argument. All other arguments will be removed in v4.46\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "0f07916fd0ee4702aab8440832cc6d6f", "version_major": 2, "version_minor": 0 }, "text/plain": [ "generation_config.json: 0%| | 0.00/252 [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "0a371f4310954e96b247cf82037c4442", "version_major": 2, "version_minor": 0 }, "text/plain": [ "preprocessor_config.json: 0%| | 0.00/596 [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "ebacfdaa3ac948418ea3d3c8ea7d481c", "version_major": 2, "version_minor": 0 }, "text/plain": [ "tokenizer_config.json: 0%| | 0.00/4.47k [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "2a4c486a69a64e6c9f91cff13497d689", "version_major": 2, "version_minor": 0 }, "text/plain": [ "vocab.json: 0%| | 0.00/2.78M [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "d69d5442436d45e99e15d8f647f2657b", "version_major": 2, "version_minor": 0 }, "text/plain": [ "merges.txt: 0%| | 0.00/1.82M [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "5646aaa678d540ee990e73903b75fe3a", "version_major": 2, "version_minor": 0 }, "text/plain": [ "tokenizer.json: 0%| | 0.00/11.4M [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "d98885fc4ec742bbb735159612e60352", "version_major": 2, "version_minor": 0 }, "text/plain": [ "added_tokens.json: 0%| | 0.00/408 [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "ce756bb1078e4126befb1749768d7929", "version_major": 2, "version_minor": 0 }, "text/plain": [ "special_tokens_map.json: 0%| | 0.00/645 [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "4c4d0c1add0d41e09d8c3875602fd1fe", "version_major": 2, "version_minor": 0 }, "text/plain": [ "chat_template.json: 0%| | 0.00/1.05k [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "Running Gradio in a Colab notebook requires sharing enabled. Automatically setting `share=True` (you can turn this off by setting `share=False` in `launch()` explicitly).\n", "\n", "Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. To turn off, set debug=False in launch().\n", "* Running on public URL: https://ff5d71f20d46028cd2.gradio.live\n", "\n", "This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)\n" ] }, { "data": { "text/html": [ "
" ], "text/plain": [ "