File size: 48,771 Bytes
141b5c1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"machine_shape": "hm",
"gpuType": "A100"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "code",
"source": [
"!pip install datasets"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "y4FB2eje4ClO",
"outputId": "d75dfce9-32fc-4825-c91a-01a99ee338af"
},
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Collecting datasets\n",
" Downloading datasets-3.3.2-py3-none-any.whl.metadata (19 kB)\n",
"Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from datasets) (3.17.0)\n",
"Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.11/dist-packages (from datasets) (1.26.4)\n",
"Requirement already satisfied: pyarrow>=15.0.0 in /usr/local/lib/python3.11/dist-packages (from datasets) (18.1.0)\n",
"Collecting dill<0.3.9,>=0.3.0 (from datasets)\n",
" Downloading dill-0.3.8-py3-none-any.whl.metadata (10 kB)\n",
"Requirement already satisfied: pandas in /usr/local/lib/python3.11/dist-packages (from datasets) (2.2.2)\n",
"Requirement already satisfied: requests>=2.32.2 in /usr/local/lib/python3.11/dist-packages (from datasets) (2.32.3)\n",
"Requirement already satisfied: tqdm>=4.66.3 in /usr/local/lib/python3.11/dist-packages (from datasets) (4.67.1)\n",
"Collecting xxhash (from datasets)\n",
" Downloading xxhash-3.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)\n",
"Collecting multiprocess<0.70.17 (from datasets)\n",
" Downloading multiprocess-0.70.16-py311-none-any.whl.metadata (7.2 kB)\n",
"Requirement already satisfied: fsspec<=2024.12.0,>=2023.1.0 in /usr/local/lib/python3.11/dist-packages (from fsspec[http]<=2024.12.0,>=2023.1.0->datasets) (2024.10.0)\n",
"Requirement already satisfied: aiohttp in /usr/local/lib/python3.11/dist-packages (from datasets) (3.11.13)\n",
"Requirement already satisfied: huggingface-hub>=0.24.0 in /usr/local/lib/python3.11/dist-packages (from datasets) (0.28.1)\n",
"Requirement already satisfied: packaging in /usr/local/lib/python3.11/dist-packages (from datasets) (24.2)\n",
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.11/dist-packages (from datasets) (6.0.2)\n",
"Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp->datasets) (2.4.6)\n",
"Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.11/dist-packages (from aiohttp->datasets) (1.3.2)\n",
"Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp->datasets) (25.1.0)\n",
"Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.11/dist-packages (from aiohttp->datasets) (1.5.0)\n",
"Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.11/dist-packages (from aiohttp->datasets) (6.1.0)\n",
"Requirement already satisfied: propcache>=0.2.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp->datasets) (0.3.0)\n",
"Requirement already satisfied: yarl<2.0,>=1.17.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp->datasets) (1.18.3)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.24.0->datasets) (4.12.2)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.2->datasets) (3.4.1)\n",
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.2->datasets) (3.10)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.2->datasets) (2.3.0)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.2->datasets) (2025.1.31)\n",
"Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.11/dist-packages (from pandas->datasets) (2.8.2)\n",
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.11/dist-packages (from pandas->datasets) (2025.1)\n",
"Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.11/dist-packages (from pandas->datasets) (2025.1)\n",
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.11/dist-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.17.0)\n",
"Downloading datasets-3.3.2-py3-none-any.whl (485 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m485.4/485.4 kB\u001b[0m \u001b[31m33.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hDownloading dill-0.3.8-py3-none-any.whl (116 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m116.3/116.3 kB\u001b[0m \u001b[31m10.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hDownloading multiprocess-0.70.16-py311-none-any.whl (143 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m143.5/143.5 kB\u001b[0m \u001b[31m14.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hDownloading xxhash-3.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (194 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m194.8/194.8 kB\u001b[0m \u001b[31m18.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hInstalling collected packages: xxhash, dill, multiprocess, datasets\n",
"Successfully installed datasets-3.3.2 dill-0.3.8 multiprocess-0.70.16 xxhash-3.5.0\n"
]
}
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "XGlb6yNNwmSR",
"outputId": "69c617f8-a7a7-4c60-9597-74fa8b1a1b8d"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Dataset({\n",
" features: ['translation'],\n",
" num_rows: 2507\n",
"})\n"
]
}
],
"source": [
"from datasets import load_dataset\n",
"\n",
"dataset = load_dataset(\"cfilt/iitb-english-hindi\")[\"test\"] # English-Hindi dataset\n",
"print(dataset)\n"
]
},
{
"cell_type": "code",
"source": [
"from transformers import MarianMTModel, MarianTokenizer\n",
"\n",
"model_name = \"Helsinki-NLP/opus-mt-en-hi\" # Change to \"opus-mt-hi-en\" for Hindi to English\n",
"model = MarianMTModel.from_pretrained(model_name)\n",
"tokenizer = MarianTokenizer.from_pretrained(model_name)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "NQJD04Y_4i99",
"outputId": "fc6ae6da-e727-4375-c32e-2ccc401e4b15"
},
"execution_count": 17,
"outputs": [
{
"output_type": "stream",
"name": "stderr",
"text": [
"/usr/local/lib/python3.11/dist-packages/transformers/models/marian/tokenization_marian.py:175: UserWarning: Recommended: pip install sacremoses.\n",
" warnings.warn(\"Recommended: pip install sacremoses.\")\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"en=[]\n",
"hi=[]\n",
"for i in dataset['translation']:\n",
" en.append(i[\"en\"])\n",
" hi.append(i[\"hi\"])"
],
"metadata": {
"id": "zZsvE-9P43DB"
},
"execution_count": 18,
"outputs": []
},
{
"cell_type": "code",
"source": [
"en[0],hi[0]"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "VncVkICMt9uX",
"outputId": "10dacfb6-6653-40cc-db92-f8221608617a"
},
"execution_count": 19,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"('A black box in your car?', 'आपकी कार में ब्लैक बॉक्स?')"
]
},
"metadata": {},
"execution_count": 19
}
]
},
{
"cell_type": "code",
"source": [
"import pandas as pd\n",
"df=pd.DataFrame({'en':en,'hi':hi})\n",
"df.drop(index=0, inplace=True)\n",
"df.head()\n"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 206
},
"id": "iFCfdlvHuCpj",
"outputId": "40fcdf49-cbbe-4989-ca98-c53b7b19fe7c"
},
"execution_count": 20,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" en \\\n",
"1 As America's road planners struggle to find th... \n",
"2 The devices, which track every mile a motorist... \n",
"3 The usually dull arena of highway planning has... \n",
"4 Libertarians have joined environmental groups ... \n",
"5 The tea party is aghast. \n",
"\n",
" hi \n",
"1 जबकि अमेरिका के सड़क योजनाकार, ध्वस्त होते हुए... \n",
"2 यह डिवाइस, जो मोटर-चालक द्वारा वाहन चलाए गए प्... \n",
"3 आम तौर पर हाईवे नियोजन जैसा उबाऊ काम भी अचानक ... \n",
"4 आपने द्वारा ड्राइव किए गए मील, तथा संभवतः ड्रा... \n",
"5 चाय पार्टी भौचक्की है। "
],
"text/html": [
"\n",
" <div id=\"df-00637f8f-74bf-4de7-989f-f55e94b7e8a5\" class=\"colab-df-container\">\n",
" <div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>en</th>\n",
" <th>hi</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>As America's road planners struggle to find th...</td>\n",
" <td>जबकि अमेरिका के सड़क योजनाकार, ध्वस्त होते हुए...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>The devices, which track every mile a motorist...</td>\n",
" <td>यह डिवाइस, जो मोटर-चालक द्वारा वाहन चलाए गए प्...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>The usually dull arena of highway planning has...</td>\n",
" <td>आम तौर पर हाईवे नियोजन जैसा उबाऊ काम भी अचानक ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Libertarians have joined environmental groups ...</td>\n",
" <td>आपने द्वारा ड्राइव किए गए मील, तथा संभवतः ड्रा...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>The tea party is aghast.</td>\n",
" <td>चाय पार्टी भौचक्की है।</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>\n",
" <div class=\"colab-df-buttons\">\n",
"\n",
" <div class=\"colab-df-container\">\n",
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-00637f8f-74bf-4de7-989f-f55e94b7e8a5')\"\n",
" title=\"Convert this dataframe to an interactive table.\"\n",
" style=\"display:none;\">\n",
"\n",
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
" </svg>\n",
" </button>\n",
"\n",
" <style>\n",
" .colab-df-container {\n",
" display:flex;\n",
" gap: 12px;\n",
" }\n",
"\n",
" .colab-df-convert {\n",
" background-color: #E8F0FE;\n",
" border: none;\n",
" border-radius: 50%;\n",
" cursor: pointer;\n",
" display: none;\n",
" fill: #1967D2;\n",
" height: 32px;\n",
" padding: 0 0 0 0;\n",
" width: 32px;\n",
" }\n",
"\n",
" .colab-df-convert:hover {\n",
" background-color: #E2EBFA;\n",
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
" fill: #174EA6;\n",
" }\n",
"\n",
" .colab-df-buttons div {\n",
" margin-bottom: 4px;\n",
" }\n",
"\n",
" [theme=dark] .colab-df-convert {\n",
" background-color: #3B4455;\n",
" fill: #D2E3FC;\n",
" }\n",
"\n",
" [theme=dark] .colab-df-convert:hover {\n",
" background-color: #434B5C;\n",
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
" fill: #FFFFFF;\n",
" }\n",
" </style>\n",
"\n",
" <script>\n",
" const buttonEl =\n",
" document.querySelector('#df-00637f8f-74bf-4de7-989f-f55e94b7e8a5 button.colab-df-convert');\n",
" buttonEl.style.display =\n",
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
"\n",
" async function convertToInteractive(key) {\n",
" const element = document.querySelector('#df-00637f8f-74bf-4de7-989f-f55e94b7e8a5');\n",
" const dataTable =\n",
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
" [key], {});\n",
" if (!dataTable) return;\n",
"\n",
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
" + ' to learn more about interactive tables.';\n",
" element.innerHTML = '';\n",
" dataTable['output_type'] = 'display_data';\n",
" await google.colab.output.renderOutput(dataTable, element);\n",
" const docLink = document.createElement('div');\n",
" docLink.innerHTML = docLinkHtml;\n",
" element.appendChild(docLink);\n",
" }\n",
" </script>\n",
" </div>\n",
"\n",
"\n",
"<div id=\"df-ef251f92-f2d2-487f-87d8-a7264719c349\">\n",
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-ef251f92-f2d2-487f-87d8-a7264719c349')\"\n",
" title=\"Suggest charts\"\n",
" style=\"display:none;\">\n",
"\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
" width=\"24px\">\n",
" <g>\n",
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
" </g>\n",
"</svg>\n",
" </button>\n",
"\n",
"<style>\n",
" .colab-df-quickchart {\n",
" --bg-color: #E8F0FE;\n",
" --fill-color: #1967D2;\n",
" --hover-bg-color: #E2EBFA;\n",
" --hover-fill-color: #174EA6;\n",
" --disabled-fill-color: #AAA;\n",
" --disabled-bg-color: #DDD;\n",
" }\n",
"\n",
" [theme=dark] .colab-df-quickchart {\n",
" --bg-color: #3B4455;\n",
" --fill-color: #D2E3FC;\n",
" --hover-bg-color: #434B5C;\n",
" --hover-fill-color: #FFFFFF;\n",
" --disabled-bg-color: #3B4455;\n",
" --disabled-fill-color: #666;\n",
" }\n",
"\n",
" .colab-df-quickchart {\n",
" background-color: var(--bg-color);\n",
" border: none;\n",
" border-radius: 50%;\n",
" cursor: pointer;\n",
" display: none;\n",
" fill: var(--fill-color);\n",
" height: 32px;\n",
" padding: 0;\n",
" width: 32px;\n",
" }\n",
"\n",
" .colab-df-quickchart:hover {\n",
" background-color: var(--hover-bg-color);\n",
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
" fill: var(--button-hover-fill-color);\n",
" }\n",
"\n",
" .colab-df-quickchart-complete:disabled,\n",
" .colab-df-quickchart-complete:disabled:hover {\n",
" background-color: var(--disabled-bg-color);\n",
" fill: var(--disabled-fill-color);\n",
" box-shadow: none;\n",
" }\n",
"\n",
" .colab-df-spinner {\n",
" border: 2px solid var(--fill-color);\n",
" border-color: transparent;\n",
" border-bottom-color: var(--fill-color);\n",
" animation:\n",
" spin 1s steps(1) infinite;\n",
" }\n",
"\n",
" @keyframes spin {\n",
" 0% {\n",
" border-color: transparent;\n",
" border-bottom-color: var(--fill-color);\n",
" border-left-color: var(--fill-color);\n",
" }\n",
" 20% {\n",
" border-color: transparent;\n",
" border-left-color: var(--fill-color);\n",
" border-top-color: var(--fill-color);\n",
" }\n",
" 30% {\n",
" border-color: transparent;\n",
" border-left-color: var(--fill-color);\n",
" border-top-color: var(--fill-color);\n",
" border-right-color: var(--fill-color);\n",
" }\n",
" 40% {\n",
" border-color: transparent;\n",
" border-right-color: var(--fill-color);\n",
" border-top-color: var(--fill-color);\n",
" }\n",
" 60% {\n",
" border-color: transparent;\n",
" border-right-color: var(--fill-color);\n",
" }\n",
" 80% {\n",
" border-color: transparent;\n",
" border-right-color: var(--fill-color);\n",
" border-bottom-color: var(--fill-color);\n",
" }\n",
" 90% {\n",
" border-color: transparent;\n",
" border-bottom-color: var(--fill-color);\n",
" }\n",
" }\n",
"</style>\n",
"\n",
" <script>\n",
" async function quickchart(key) {\n",
" const quickchartButtonEl =\n",
" document.querySelector('#' + key + ' button');\n",
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
" try {\n",
" const charts = await google.colab.kernel.invokeFunction(\n",
" 'suggestCharts', [key], {});\n",
" } catch (error) {\n",
" console.error('Error during call to suggestCharts:', error);\n",
" }\n",
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
" }\n",
" (() => {\n",
" let quickchartButtonEl =\n",
" document.querySelector('#df-ef251f92-f2d2-487f-87d8-a7264719c349 button');\n",
" quickchartButtonEl.style.display =\n",
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
" })();\n",
" </script>\n",
"</div>\n",
"\n",
" </div>\n",
" </div>\n"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "dataframe",
"variable_name": "df",
"summary": "{\n \"name\": \"df\",\n \"rows\": 2506,\n \"fields\": [\n {\n \"column\": \"en\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 2505,\n \"samples\": [\n \"Thereafter, some people invested between two to five lakh rupees.\",\n \"O'Malley said Frontier's website and check-in procedures are being changed to make sure passengers know about the fee before they get to the gate.\",\n \"Chadvir said that, based on the popularity gained by the Chief Minister by the way of landmark decisions and for activities for the people's welfare, the public would also elect Hooda for the third time.\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"hi\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 2505,\n \"samples\": [\n \"\\u0907\\u0938\\u0915\\u0947 \\u092c\\u093e\\u0926 \\u0915\\u093f\\u0938\\u0940 \\u0938\\u0947 \\u0926\\u094b \\u0932\\u093e\\u0916 \\u0924\\u094b \\u0915\\u093f\\u0938\\u0940 \\u0938\\u0947 \\u092a\\u093e\\u0902\\u091a \\u0932\\u093e\\u0916 \\u0930\\u0941\\u092a\\u090f \\u0924\\u0915 \\u091c\\u092e\\u093e \\u0915\\u0930\\u0935\\u093e\\u090f \\u091c\\u093e\\u0924\\u0947 \\u0925\\u0947\\u0964\",\n \"\\u0913 '\\u092e\\u0948\\u0932\\u0940 \\u0928\\u0947 \\u0915\\u0939\\u093e \\u0915\\u093f Frontier \\u0915\\u0940 \\u0935\\u0947\\u092c\\u0938\\u093e\\u0907\\u091f \\u0914\\u0930 \\u091a\\u0947\\u0915 \\u0907\\u0928 \\u0915\\u0947 \\u092a\\u094d\\u0930\\u0915\\u094d\\u0930\\u093f\\u092f\\u093e\\u0913\\u0902 \\u0915\\u094b \\u092c\\u0926\\u0932 \\u0926\\u093f\\u092f\\u093e \\u091c\\u093e \\u0930\\u0939\\u093e \\u0939\\u0948 \\u0917\\u0947\\u091f \\u0915\\u094b \\u092a\\u093e\\u0928\\u0947 \\u0938\\u0947 \\u092a\\u0939\\u0932\\u0947 \\u092f\\u093e\\u0924\\u094d\\u0930\\u093f\\u092f\\u094b\\u0902 \\u0915\\u094b \\u092b\\u0940\\u0938 \\u0915\\u0947 \\u092c\\u093e\\u0930\\u0947 \\u092e\\u0947\\u0902 \\u092a\\u0924\\u093e \\u0939\\u0948 \\u092f\\u0939 \\u0938\\u0941\\u0928\\u093f\\u0936\\u094d\\u091a\\u093f\\u0924 \\u0915\\u0930\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093f\\u090f.\",\n \"\\u091a\\u093e\\u0926\\u0935\\u0940\\u0930 \\u0928\\u0947 \\u0915\\u0939\\u093e \\u0915\\u093f \\u092e\\u0941\\u0916\\u094d\\u092f\\u092e\\u0902\\u0924\\u094d\\u0930\\u0940 \\u0928\\u0947 \\u092a\\u094d\\u0930\\u0926\\u0947\\u0936 \\u092e\\u0947\\u0902 \\u0910\\u0924\\u093f\\u0939\\u093e\\u0938\\u093f\\u0915 \\u0928\\u093f\\u0930\\u094d\\u0923\\u092f\\u094b\\u0902 \\u090f\\u0935\\u0902 \\u091c\\u0928\\u0939\\u093f\\u0924 \\u0915\\u093e\\u0930\\u094d\\u092f\\u094b \\u0915\\u0940 \\u0926\\u093f\\u0936\\u093e \\u092e\\u0947\\u0902 \\u091c\\u094b \\u0932\\u094b\\u0915\\u092a\\u094d\\u0930\\u093f\\u092f\\u0924\\u093e \\u0939\\u093e\\u0938\\u093f\\u0932 \\u0915\\u0940 \\u0939\\u0948, \\u0907\\u0938\\u0940 \\u0915\\u0947 \\u092c\\u0932\\u092c\\u0942\\u0924\\u0947 \\u092a\\u0930 \\u092a\\u094d\\u0930\\u0926\\u0947\\u0936 \\u0915\\u0940 \\u091c\\u0928\\u0924\\u093e \\u0939\\u0941\\u0921\\u094d\\u0921\\u093e \\u0915\\u094b \\u0938\\u0924\\u094d\\u0924\\u093e \\u0915\\u093e \\u0924\\u093e\\u091c \\u0924\\u0940\\u0938\\u0930\\u0940 \\u092c\\u093e\\u0930 \\u092d\\u0940 \\u092a\\u0939\\u0928\\u093e\\u090f\\u0917\\u0940\\u0964\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
}
},
"metadata": {},
"execution_count": 20
}
]
},
{
"cell_type": "code",
"source": [
"from sklearn.model_selection import train_test_split\n",
"train,test=train_test_split(df,test_size=0.2,random_state=42)\n",
"train.reset_index(drop=True,inplace=True)\n",
"test.reset_index(drop=True,inplace=True)\n",
"train.head(),test.head()"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "rwI5aHjrvE4h",
"outputId": "766b26b3-5ec4-4743-a007-b7d7c46ba5f3"
},
"execution_count": 21,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"( en \\\n",
" 0 Renamo wanted to \"warn the international commu... \n",
" 1 On the occasion of Mahavir Jayanti, the god Ha... \n",
" 2 Already the stamp duty take for residential pr... \n",
" 3 But as the evening comes, our minds change and... \n",
" 4 \"No,\" Mr Tripodi replied. \n",
" \n",
" hi \n",
" 0 रे नमो \"चीजें मोजाम्बिक में अच्छी तरह से नहीं... \n",
" 1 देविका तट पर महावीर जयंती के उपलक्ष्य पर भगवान... \n",
" 2 कर वर्ष 2012/13 में वेस्टमिन्स्टर तथा केन्सिंग... \n",
" 3 लेकिन शाम होते ही हमारा मन बदल जाता हैं और हम ... \n",
" 4 \"नहीं,\" श्री त्रिपोडी ने उत्तर दिया। ,\n",
" en \\\n",
" 0 Due to financial constraints Dhirubhai had to ... \n",
" 1 Other places are hoping to sell the concept to... \n",
" 2 There's also money for walk-in clinics in Hoba... \n",
" 3 He wanted the party to become strong. \n",
" 4 It was simply nothing I could have imagined. \n",
" \n",
" hi \n",
" 0 आर्थिक तंगी के कारण धीरूभाई को हाईस्कूल के बाद... \n",
" 1 अन्य स्थानों को आशा है कि डिवाइस में कम की बजा... \n",
" 2 इसमें होबार्ट और लॉनसेस्टशन में वॉक-इन क्लिनिक... \n",
" 3 वे चाहते हैं कि पार्टी मजबूत हो। \n",
" 4 सरल तौर कहें तो में इसमें से किसी भी कल्पना भी... )"
]
},
"metadata": {},
"execution_count": 21
}
]
},
{
"cell_type": "code",
"source": [
"source_train=train['en']\n",
"target_train=train['hi']\n",
"source_test=test['en']\n",
"target_test=test['hi']\n",
"\n"
],
"metadata": {
"id": "vB6Pqm2ovOBi"
},
"execution_count": 22,
"outputs": []
},
{
"cell_type": "code",
"source": [
"source_texts = [ex for ex in train['en']]\n",
"source_texts[0]"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 52
},
"id": "YmIW9z6XwqFs",
"outputId": "b8394f24-a813-4ce2-82d8-8173567bc7d0"
},
"execution_count": 23,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"'Renamo wanted to \"warn the international community that things were not going well in Mozambique,\" Mr Mazanga said.'"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 23
}
]
},
{
"cell_type": "code",
"source": [
"def preprocess_function(examples):\n",
" source_texts = examples['en']\n",
" target_texts = examples['hi']\n",
"\n",
" model_inputs = tokenizer(source_texts.tolist(), truncation=True, padding=\"max_length\", max_length=128)\n",
" labels = tokenizer(target_texts.tolist(), truncation=True, padding=\"max_length\", max_length=128)\n",
" model_inputs[\"labels\"] = labels[\"input_ids\"]\n",
"\n",
" return model_inputs\n",
"\n",
"tokenized_train = preprocess_function(train)\n",
"tokenized_test = preprocess_function(test)\n"
],
"metadata": {
"id": "2AGcbIzA4KMe"
},
"execution_count": 24,
"outputs": []
},
{
"cell_type": "code",
"source": [
"# tokenized_train[0]"
],
"metadata": {
"id": "e15igWNy9XJ1"
},
"execution_count": 25,
"outputs": []
},
{
"cell_type": "code",
"source": [
"print(len(tokenized_train[\"input_ids\"]))\n",
"print(len(tokenized_train['attention_mask']))\n",
"print(len(tokenized_train[\"labels\"]))\n",
"print(len(tokenized_test[\"input_ids\"]))\n",
"print(len(tokenized_test['attention_mask']))\n",
"print(len(tokenized_test[\"labels\"]))"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "AndJk2s537y7",
"outputId": "080ad2de-5116-4331-f300-c4f61b46332a"
},
"execution_count": 26,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"2004\n",
"2004\n",
"2004\n",
"502\n",
"502\n",
"502\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"from datasets import Dataset\n",
"tokenized_train_dataset = Dataset.from_dict(tokenized_train)\n",
"tokenized_test_dataset = Dataset.from_dict(tokenized_test)"
],
"metadata": {
"id": "wb6wy_TV-UZu"
},
"execution_count": 27,
"outputs": []
},
{
"cell_type": "code",
"source": [
"from transformers import TrainingArguments\n",
"\n",
"training_args = TrainingArguments(\n",
" output_dir=\"./translator_en_hi\",\n",
" evaluation_strategy=\"epoch\",\n",
" save_strategy=\"epoch\",\n",
" per_device_train_batch_size=8,\n",
" per_device_eval_batch_size=8,\n",
" num_train_epochs=1,\n",
" learning_rate=5e-5,\n",
" weight_decay=0.01,\n",
" logging_dir=\"./logs\",\n",
" logging_steps=500,\n",
" save_total_limit=2,\n",
" load_best_model_at_end=True,\n",
")\n"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "_OGG0eBl8S45",
"outputId": "645db96c-0552-4fac-99d6-3a8277b81715"
},
"execution_count": 28,
"outputs": [
{
"output_type": "stream",
"name": "stderr",
"text": [
"/usr/local/lib/python3.11/dist-packages/transformers/training_args.py:1575: FutureWarning: `evaluation_strategy` is deprecated and will be removed in version 4.46 of 🤗 Transformers. Use `eval_strategy` instead\n",
" warnings.warn(\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"from transformers import Trainer\n",
"trainer = Trainer(\n",
" model=model,\n",
" args=training_args,\n",
" train_dataset=tokenized_train_dataset,\n",
" eval_dataset=tokenized_test_dataset\n",
")\n",
"trainer.train()"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 508
},
"id": "FzNYxonF97mR",
"outputId": "267a5ab2-d0ed-4212-bfc1-3f994905c9a1"
},
"execution_count": 29,
"outputs": [
{
"output_type": "stream",
"name": "stderr",
"text": [
"\u001b[34m\u001b[1mwandb\u001b[0m: \u001b[33mWARNING\u001b[0m The `run_name` is currently set to the same value as `TrainingArguments.output_dir`. If this was not intended, please specify a different run name by setting the `TrainingArguments.run_name` parameter.\n",
"\u001b[34m\u001b[1mwandb\u001b[0m: Using wandb-core as the SDK backend. Please refer to https://wandb.me/wandb-core for more information.\n"
]
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.Javascript object>"
],
"application/javascript": [
"\n",
" window._wandbApiKey = new Promise((resolve, reject) => {\n",
" function loadScript(url) {\n",
" return new Promise(function(resolve, reject) {\n",
" let newScript = document.createElement(\"script\");\n",
" newScript.onerror = reject;\n",
" newScript.onload = resolve;\n",
" document.body.appendChild(newScript);\n",
" newScript.src = url;\n",
" });\n",
" }\n",
" loadScript(\"https://cdn.jsdelivr.net/npm/postmate/build/postmate.min.js\").then(() => {\n",
" const iframe = document.createElement('iframe')\n",
" iframe.style.cssText = \"width:0;height:0;border:none\"\n",
" document.body.appendChild(iframe)\n",
" const handshake = new Postmate({\n",
" container: iframe,\n",
" url: 'https://wandb.ai/authorize'\n",
" });\n",
" const timeout = setTimeout(() => reject(\"Couldn't auto authenticate\"), 5000)\n",
" handshake.then(function(child) {\n",
" child.on('authorize', data => {\n",
" clearTimeout(timeout)\n",
" resolve(data)\n",
" });\n",
" });\n",
" })\n",
" });\n",
" "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"\u001b[34m\u001b[1mwandb\u001b[0m: Logging into wandb.ai. (Learn how to deploy a W&B server locally: https://wandb.me/wandb-server)\n",
"\u001b[34m\u001b[1mwandb\u001b[0m: You can find your API key in your browser here: https://wandb.ai/authorize\n",
"wandb: Paste an API key from your profile and hit enter:"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" ··········\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"\u001b[34m\u001b[1mwandb\u001b[0m: \u001b[33mWARNING\u001b[0m If you're specifying your api key in code, ensure this code is not shared publicly.\n",
"\u001b[34m\u001b[1mwandb\u001b[0m: \u001b[33mWARNING\u001b[0m Consider setting the WANDB_API_KEY environment variable, or running `wandb login` from the command line.\n",
"\u001b[34m\u001b[1mwandb\u001b[0m: No netrc file found, creating one.\n",
"\u001b[34m\u001b[1mwandb\u001b[0m: Appending key for api.wandb.ai to your netrc file: /root/.netrc\n",
"\u001b[34m\u001b[1mwandb\u001b[0m: Currently logged in as: \u001b[33mmummina-premkumar\u001b[0m (\u001b[33mmummina-premkumar-yami-technology\u001b[0m) to \u001b[32mhttps://api.wandb.ai\u001b[0m. Use \u001b[1m`wandb login --relogin`\u001b[0m to force relogin\n"
]
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Tracking run with wandb version 0.19.7"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Run data is saved locally in <code>/content/wandb/run-20250302_193401-s8hefz7l</code>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Syncing run <strong><a href='https://wandb.ai/mummina-premkumar-yami-technology/huggingface/runs/s8hefz7l' target=\"_blank\">./translator_en_hi</a></strong> to <a href='https://wandb.ai/mummina-premkumar-yami-technology/huggingface' target=\"_blank\">Weights & Biases</a> (<a href='https://wandb.me/developer-guide' target=\"_blank\">docs</a>)<br>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
" View project at <a href='https://wandb.ai/mummina-premkumar-yami-technology/huggingface' target=\"_blank\">https://wandb.ai/mummina-premkumar-yami-technology/huggingface</a>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
" View run at <a href='https://wandb.ai/mummina-premkumar-yami-technology/huggingface/runs/s8hefz7l' target=\"_blank\">https://wandb.ai/mummina-premkumar-yami-technology/huggingface/runs/s8hefz7l</a>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <div>\n",
" \n",
" <progress value='251' max='251' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" [251/251 00:21, Epoch 1/1]\n",
" </div>\n",
" <table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: left;\">\n",
" <th>Epoch</th>\n",
" <th>Training Loss</th>\n",
" <th>Validation Loss</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <td>1</td>\n",
" <td>No log</td>\n",
" <td>1.876339</td>\n",
" </tr>\n",
" </tbody>\n",
"</table><p>"
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"/usr/local/lib/python3.11/dist-packages/transformers/modeling_utils.py:2758: UserWarning: Moving the following attributes in the config to the generation config: {'max_length': 512, 'num_beams': 4, 'bad_words_ids': [[61949]]}. You are seeing this warning because you've set generation parameters in the model config, as opposed to in the generation config.\n",
" warnings.warn(\n",
"There were missing keys in the checkpoint model loaded: ['model.encoder.embed_tokens.weight', 'model.encoder.embed_positions.weight', 'model.decoder.embed_tokens.weight', 'model.decoder.embed_positions.weight', 'lm_head.weight'].\n"
]
},
{
"output_type": "execute_result",
"data": {
"text/plain": [
"TrainOutput(global_step=251, training_loss=2.212838830225971, metrics={'train_runtime': 45.16, 'train_samples_per_second': 44.376, 'train_steps_per_second': 5.558, 'total_flos': 67932323315712.0, 'train_loss': 2.212838830225971, 'epoch': 1.0})"
]
},
"metadata": {},
"execution_count": 29
}
]
},
{
"cell_type": "code",
"source": [
"def translate(text, src_lang=\"en\", tgt_lang=\"hi\"):\n",
" inputs = tokenizer(text, return_tensors=\"pt\")\n",
" # Move inputs to the same device as the model\n",
" # Assuming model is on cuda:0 or default cuda device\n",
" for k in inputs:\n",
" inputs[k] = inputs[k].to(model.device)\n",
" translated_tokens = model.generate(**inputs, max_length=50)\n",
" return tokenizer.decode(translated_tokens[0], skip_special_tokens=True)\n",
"\n",
"print(translate(\"good man\"))"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "OqV0Fiud09tt",
"outputId": "fcd79a5e-7dbe-4138-b7c8-226318c4ac7c"
},
"execution_count": 30,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"अच्छा आदमी\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"save_directory = \"translate_model\"\n",
"\n",
"model.save_pretrained(save_directory)\n",
"\n",
"tokenizer.save_pretrained(save_directory)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "5pDS9v4lBynb",
"outputId": "652888cf-660d-40cd-fe5a-a53d27880b0a"
},
"execution_count": 33,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"('translate_model/tokenizer_config.json',\n",
" 'translate_model/special_tokens_map.json',\n",
" 'translate_model/vocab.json',\n",
" 'translate_model/source.spm',\n",
" 'translate_model/target.spm',\n",
" 'translate_model/added_tokens.json')"
]
},
"metadata": {},
"execution_count": 33
}
]
},
{
"cell_type": "code",
"source": [
"import shutil\n",
"\n",
"\n",
"folder_path = \"/content/translate_model\"\n",
"zip_name = \"translate_model_finetune.zip\"\n",
"\n",
"\n",
"shutil.make_archive(zip_name.replace('.zip', ''), 'zip', folder_path)\n",
"\n",
"print(f\"Folder '{folder_path}' has been zipped as '{zip_name}'.\")"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "9SuQLZ8KMnLl",
"outputId": "27e6b557-ee86-425a-a47c-7d0f8ca812ab"
},
"execution_count": 35,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Folder '/content/translate_model' has been zipped as 'translate_model_finetune.zip'.\n"
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "qP6EM7VnWXaM"
},
"execution_count": null,
"outputs": []
}
]
} |