File size: 63,215 Bytes
7f35c24 |
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 |
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"gpuType": "T4"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"source": [
"# osiria/deberta-italian-question-answering\n",
"## test set metrics"
],
"metadata": {
"id": "oub2ir8ZDkrH"
}
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "02K9xO6Gvto1",
"outputId": "29e1d40b-749c-42b4-e182-4b63ebcc9418"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting git+https://github.com/huggingface/transformers\n",
" Cloning https://github.com/huggingface/transformers to /tmp/pip-req-build-k2caxkht\n",
" Running command git clone --filter=blob:none --quiet https://github.com/huggingface/transformers /tmp/pip-req-build-k2caxkht\n",
" Resolved https://github.com/huggingface/transformers to commit f49a3453caa6fe606bb31c571423f72264152fce\n",
" Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n",
" Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n",
" Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from transformers==4.30.0.dev0) (3.12.0)\n",
"Collecting huggingface-hub<1.0,>=0.14.1 (from transformers==4.30.0.dev0)\n",
" Downloading huggingface_hub-0.15.1-py3-none-any.whl (236 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m236.8/236.8 kB\u001b[0m \u001b[31m20.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.30.0.dev0) (1.22.4)\n",
"Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from transformers==4.30.0.dev0) (23.1)\n",
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from transformers==4.30.0.dev0) (6.0)\n",
"Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.30.0.dev0) (2022.10.31)\n",
"Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from transformers==4.30.0.dev0) (2.27.1)\n",
"Collecting tokenizers!=0.11.3,<0.14,>=0.11.1 (from transformers==4.30.0.dev0)\n",
" Downloading tokenizers-0.13.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.8 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m127.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting safetensors>=0.3.1 (from transformers==4.30.0.dev0)\n",
" Downloading safetensors-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.3/1.3 MB\u001b[0m \u001b[31m77.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.10/dist-packages (from transformers==4.30.0.dev0) (4.65.0)\n",
"Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from huggingface-hub<1.0,>=0.14.1->transformers==4.30.0.dev0) (2023.4.0)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub<1.0,>=0.14.1->transformers==4.30.0.dev0) (4.5.0)\n",
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.30.0.dev0) (1.26.15)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.30.0.dev0) (2022.12.7)\n",
"Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.30.0.dev0) (2.0.12)\n",
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.30.0.dev0) (3.4)\n",
"Building wheels for collected packages: transformers\n",
" Building wheel for transformers (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for transformers: filename=transformers-4.30.0.dev0-py3-none-any.whl size=7138714 sha256=89a0efbe4dd8919f94cc3c42cefeba7534b015aae8caed503d8b9d9c5a1ef7dd\n",
" Stored in directory: /tmp/pip-ephem-wheel-cache-oc_3dlyv/wheels/c0/14/d6/6c9a5582d2ac191ec0a483be151a4495fe1eb2a6706ca49f1b\n",
"Successfully built transformers\n",
"Installing collected packages: tokenizers, safetensors, huggingface-hub, transformers\n",
"Successfully installed huggingface-hub-0.15.1 safetensors-0.3.1 tokenizers-0.13.3 transformers-4.30.0.dev0\n"
]
}
],
"source": [
"!pip install git+https://github.com/huggingface/transformers"
]
},
{
"cell_type": "code",
"source": [
"!pip install datasets"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "VKgybrUswa1q",
"outputId": "7953a664-d7ec-42f0-8de0-37034a8d77e7"
},
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting datasets\n",
" Downloading datasets-2.12.0-py3-none-any.whl (474 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m474.6/474.6 kB\u001b[0m \u001b[31m39.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from datasets) (1.22.4)\n",
"Requirement already satisfied: pyarrow>=8.0.0 in /usr/local/lib/python3.10/dist-packages (from datasets) (9.0.0)\n",
"Collecting dill<0.3.7,>=0.3.0 (from datasets)\n",
" Downloading dill-0.3.6-py3-none-any.whl (110 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m110.5/110.5 kB\u001b[0m \u001b[31m14.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from datasets) (1.5.3)\n",
"Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.10/dist-packages (from datasets) (2.27.1)\n",
"Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/dist-packages (from datasets) (4.65.0)\n",
"Collecting xxhash (from datasets)\n",
" Downloading xxhash-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (212 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m212.5/212.5 kB\u001b[0m \u001b[31m32.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting multiprocess (from datasets)\n",
" Downloading multiprocess-0.70.14-py310-none-any.whl (134 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.3/134.3 kB\u001b[0m \u001b[31m11.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: fsspec[http]>=2021.11.1 in /usr/local/lib/python3.10/dist-packages (from datasets) (2023.4.0)\n",
"Collecting aiohttp (from datasets)\n",
" Downloading aiohttp-3.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.0/1.0 MB\u001b[0m \u001b[31m66.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: huggingface-hub<1.0.0,>=0.11.0 in /usr/local/lib/python3.10/dist-packages (from datasets) (0.15.1)\n",
"Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from datasets) (23.1)\n",
"Collecting responses<0.19 (from datasets)\n",
" Downloading responses-0.18.0-py3-none-any.whl (38 kB)\n",
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from datasets) (6.0)\n",
"Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (23.1.0)\n",
"Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (2.0.12)\n",
"Collecting multidict<7.0,>=4.5 (from aiohttp->datasets)\n",
" Downloading multidict-6.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m114.5/114.5 kB\u001b[0m \u001b[31m16.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->datasets)\n",
" Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)\n",
"Collecting yarl<2.0,>=1.0 (from aiohttp->datasets)\n",
" Downloading yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (268 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m268.8/268.8 kB\u001b[0m \u001b[31m33.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting frozenlist>=1.1.1 (from aiohttp->datasets)\n",
" Downloading frozenlist-1.3.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m149.6/149.6 kB\u001b[0m \u001b[31m18.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting aiosignal>=1.1.2 (from aiohttp->datasets)\n",
" Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)\n",
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub<1.0.0,>=0.11.0->datasets) (3.12.0)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub<1.0.0,>=0.11.0->datasets) (4.5.0)\n",
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets) (1.26.15)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets) (2022.12.7)\n",
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets) (3.4)\n",
"Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets) (2.8.2)\n",
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets) (2022.7.1)\n",
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.1->pandas->datasets) (1.16.0)\n",
"Installing collected packages: xxhash, multidict, frozenlist, dill, async-timeout, yarl, responses, multiprocess, aiosignal, aiohttp, datasets\n",
"Successfully installed aiohttp-3.8.4 aiosignal-1.3.1 async-timeout-4.0.2 datasets-2.12.0 dill-0.3.6 frozenlist-1.3.3 multidict-6.0.4 multiprocess-0.70.14 responses-0.18.0 xxhash-3.2.0 yarl-1.9.2\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!pip install accelerate"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "xYEW0Hjqz2lo",
"outputId": "3aa2a2bc-9051-4021-8ae4-66f77b5d1ac1"
},
"execution_count": 3,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting accelerate\n",
" Downloading accelerate-0.19.0-py3-none-any.whl (219 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m219.1/219.1 kB\u001b[0m \u001b[31m18.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from accelerate) (1.22.4)\n",
"Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from accelerate) (23.1)\n",
"Requirement already satisfied: psutil in /usr/local/lib/python3.10/dist-packages (from accelerate) (5.9.5)\n",
"Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from accelerate) (6.0)\n",
"Requirement already satisfied: torch>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from accelerate) (2.0.1+cu118)\n",
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.6.0->accelerate) (3.12.0)\n",
"Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from torch>=1.6.0->accelerate) (4.5.0)\n",
"Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch>=1.6.0->accelerate) (1.11.1)\n",
"Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.6.0->accelerate) (3.1)\n",
"Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.6.0->accelerate) (3.1.2)\n",
"Requirement already satisfied: triton==2.0.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.6.0->accelerate) (2.0.0)\n",
"Requirement already satisfied: cmake in /usr/local/lib/python3.10/dist-packages (from triton==2.0.0->torch>=1.6.0->accelerate) (3.25.2)\n",
"Requirement already satisfied: lit in /usr/local/lib/python3.10/dist-packages (from triton==2.0.0->torch>=1.6.0->accelerate) (16.0.5)\n",
"Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.6.0->accelerate) (2.1.2)\n",
"Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.6.0->accelerate) (1.3.0)\n",
"Installing collected packages: accelerate\n",
"Successfully installed accelerate-0.19.0\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!pip install evaluate"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "9OFz3JdR0cQ_",
"outputId": "d91b5794-3f05-4b34-dca7-0331cd94f5ec"
},
"execution_count": 4,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting evaluate\n",
" Downloading evaluate-0.4.0-py3-none-any.whl (81 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m81.4/81.4 kB\u001b[0m \u001b[31m5.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: datasets>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from evaluate) (2.12.0)\n",
"Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from evaluate) (1.22.4)\n",
"Requirement already satisfied: dill in /usr/local/lib/python3.10/dist-packages (from evaluate) (0.3.6)\n",
"Requirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from evaluate) (1.5.3)\n",
"Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.10/dist-packages (from evaluate) (2.27.1)\n",
"Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/dist-packages (from evaluate) (4.65.0)\n",
"Requirement already satisfied: xxhash in /usr/local/lib/python3.10/dist-packages (from evaluate) (3.2.0)\n",
"Requirement already satisfied: multiprocess in /usr/local/lib/python3.10/dist-packages (from evaluate) (0.70.14)\n",
"Requirement already satisfied: fsspec[http]>=2021.05.0 in /usr/local/lib/python3.10/dist-packages (from evaluate) (2023.4.0)\n",
"Requirement already satisfied: huggingface-hub>=0.7.0 in /usr/local/lib/python3.10/dist-packages (from evaluate) (0.15.1)\n",
"Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from evaluate) (23.1)\n",
"Requirement already satisfied: responses<0.19 in /usr/local/lib/python3.10/dist-packages (from evaluate) (0.18.0)\n",
"Requirement already satisfied: pyarrow>=8.0.0 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.0.0->evaluate) (9.0.0)\n",
"Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from datasets>=2.0.0->evaluate) (3.8.4)\n",
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from datasets>=2.0.0->evaluate) (6.0)\n",
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.7.0->evaluate) (3.12.0)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.7.0->evaluate) (4.5.0)\n",
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->evaluate) (1.26.15)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->evaluate) (2022.12.7)\n",
"Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->evaluate) (2.0.12)\n",
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->evaluate) (3.4)\n",
"Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.10/dist-packages (from pandas->evaluate) (2.8.2)\n",
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->evaluate) (2022.7.1)\n",
"Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.0.0->evaluate) (23.1.0)\n",
"Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.0.0->evaluate) (6.0.4)\n",
"Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.0.0->evaluate) (4.0.2)\n",
"Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.0.0->evaluate) (1.9.2)\n",
"Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.0.0->evaluate) (1.3.3)\n",
"Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets>=2.0.0->evaluate) (1.3.1)\n",
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.1->pandas->evaluate) (1.16.0)\n",
"Installing collected packages: evaluate\n",
"Successfully installed evaluate-0.4.0\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!wget https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/question-answering/run_qa.py\n",
"!wget https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/question-answering/trainer_qa.py\n",
"!wget https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/question-answering/utils_qa.py"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "JJhpBNwpxOTK",
"outputId": "4be12780-f34e-4834-8c10-9b3f4ee8a873"
},
"execution_count": 5,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"--2023-06-01 22:15:29-- https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/question-answering/run_qa.py\n",
"Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 31717 (31K) [text/plain]\n",
"Saving to: ‘run_qa.py’\n",
"\n",
"run_qa.py 100%[===================>] 30.97K --.-KB/s in 0s \n",
"\n",
"2023-06-01 22:15:29 (125 MB/s) - ‘run_qa.py’ saved [31717/31717]\n",
"\n",
"--2023-06-01 22:15:29-- https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/question-answering/trainer_qa.py\n",
"Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 6253 (6.1K) [text/plain]\n",
"Saving to: ‘trainer_qa.py’\n",
"\n",
"trainer_qa.py 100%[===================>] 6.11K --.-KB/s in 0s \n",
"\n",
"2023-06-01 22:15:29 (72.9 MB/s) - ‘trainer_qa.py’ saved [6253/6253]\n",
"\n",
"--2023-06-01 22:15:29-- https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/question-answering/utils_qa.py\n",
"Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 22777 (22K) [text/plain]\n",
"Saving to: ‘utils_qa.py’\n",
"\n",
"utils_qa.py 100%[===================>] 22.24K --.-KB/s in 0s \n",
"\n",
"2023-06-01 22:15:30 (110 MB/s) - ‘utils_qa.py’ saved [22777/22777]\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!ls"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "Loa6y9XqzXJ4",
"outputId": "9f4f930a-21f8-43d4-8c73-eca71c8ad4e7"
},
"execution_count": 6,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"run_qa.py sample_data\ttrainer_qa.py utils_qa.py\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!mkdir eval_results"
],
"metadata": {
"id": "QDNxV31P0reW"
},
"execution_count": 7,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!python -m run_qa --model_name_or_path osiria/deberta-italian-question-answering --dataset_name squad_it --do_predict --per_device_eval_batch_size=5 --output_dir eval_results"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "B5O5Lom8x_c4",
"outputId": "abcf118b-6a83-4bb2-db83-b715ac727688"
},
"execution_count": 8,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"2023-06-01 22:15:37.369548: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n",
"06/01/2023 22:15:41 - WARNING - __main__ - Process rank: 0, device: cuda:0, n_gpu: 1distributed training: True, 16-bits training: False\n",
"06/01/2023 22:15:41 - INFO - __main__ - Training/evaluation parameters TrainingArguments(\n",
"_n_gpu=1,\n",
"adafactor=False,\n",
"adam_beta1=0.9,\n",
"adam_beta2=0.999,\n",
"adam_epsilon=1e-08,\n",
"auto_find_batch_size=False,\n",
"bf16=False,\n",
"bf16_full_eval=False,\n",
"data_seed=None,\n",
"dataloader_drop_last=False,\n",
"dataloader_num_workers=0,\n",
"dataloader_pin_memory=True,\n",
"ddp_backend=None,\n",
"ddp_bucket_cap_mb=None,\n",
"ddp_find_unused_parameters=None,\n",
"ddp_timeout=1800,\n",
"debug=[],\n",
"deepspeed=None,\n",
"disable_tqdm=False,\n",
"do_eval=False,\n",
"do_predict=True,\n",
"do_train=False,\n",
"eval_accumulation_steps=None,\n",
"eval_delay=0,\n",
"eval_steps=None,\n",
"evaluation_strategy=no,\n",
"fp16=False,\n",
"fp16_backend=auto,\n",
"fp16_full_eval=False,\n",
"fp16_opt_level=O1,\n",
"fsdp=[],\n",
"fsdp_config={'fsdp_min_num_params': 0, 'xla': False, 'xla_fsdp_grad_ckpt': False},\n",
"fsdp_min_num_params=0,\n",
"fsdp_transformer_layer_cls_to_wrap=None,\n",
"full_determinism=False,\n",
"gradient_accumulation_steps=1,\n",
"gradient_checkpointing=False,\n",
"greater_is_better=None,\n",
"group_by_length=False,\n",
"half_precision_backend=auto,\n",
"hub_model_id=None,\n",
"hub_private_repo=False,\n",
"hub_strategy=every_save,\n",
"hub_token=<HUB_TOKEN>,\n",
"ignore_data_skip=False,\n",
"include_inputs_for_metrics=False,\n",
"jit_mode_eval=False,\n",
"label_names=None,\n",
"label_smoothing_factor=0.0,\n",
"learning_rate=5e-05,\n",
"length_column_name=length,\n",
"load_best_model_at_end=False,\n",
"local_rank=0,\n",
"log_level=passive,\n",
"log_level_replica=warning,\n",
"log_on_each_node=True,\n",
"logging_dir=eval_results/runs/Jun01_22-15-40_8f1ed0a6ad1b,\n",
"logging_first_step=False,\n",
"logging_nan_inf_filter=True,\n",
"logging_steps=500,\n",
"logging_strategy=steps,\n",
"lr_scheduler_type=linear,\n",
"max_grad_norm=1.0,\n",
"max_steps=-1,\n",
"metric_for_best_model=None,\n",
"mp_parameters=,\n",
"no_cuda=False,\n",
"num_train_epochs=3.0,\n",
"optim=adamw_hf,\n",
"optim_args=None,\n",
"output_dir=eval_results,\n",
"overwrite_output_dir=False,\n",
"past_index=-1,\n",
"per_device_eval_batch_size=5,\n",
"per_device_train_batch_size=8,\n",
"prediction_loss_only=False,\n",
"push_to_hub=False,\n",
"push_to_hub_model_id=None,\n",
"push_to_hub_organization=None,\n",
"push_to_hub_token=<PUSH_TO_HUB_TOKEN>,\n",
"ray_scope=last,\n",
"remove_unused_columns=True,\n",
"report_to=['tensorboard'],\n",
"resume_from_checkpoint=None,\n",
"run_name=eval_results,\n",
"save_on_each_node=False,\n",
"save_safetensors=False,\n",
"save_steps=500,\n",
"save_strategy=steps,\n",
"save_total_limit=None,\n",
"seed=42,\n",
"sharded_ddp=[],\n",
"skip_memory_metrics=True,\n",
"tf32=None,\n",
"torch_compile=False,\n",
"torch_compile_backend=None,\n",
"torch_compile_mode=None,\n",
"torchdynamo=None,\n",
"tpu_metrics_debug=False,\n",
"tpu_num_cores=None,\n",
"use_ipex=False,\n",
"use_legacy_prediction_loop=False,\n",
"use_mps_device=False,\n",
"warmup_ratio=0.0,\n",
"warmup_steps=0,\n",
"weight_decay=0.0,\n",
"xpu_backend=None,\n",
")\n",
"06/01/2023 22:15:42 - INFO - datasets.utils.file_utils - https://huggingface.co/datasets/squad_it/resolve/main/squad_it.py not found in cache or force_download set to True, downloading to /root/.cache/huggingface/datasets/downloads/tmpofsetih3\n",
"Downloading builder script: 100% 4.74k/4.74k [00:00<00:00, 4.58MB/s]\n",
"06/01/2023 22:15:42 - INFO - datasets.utils.file_utils - storing https://huggingface.co/datasets/squad_it/resolve/main/squad_it.py in cache at /root/.cache/huggingface/datasets/downloads/2f7a246f661e6acb3a9ad072ed14241ea343265e7d863b88717897941c3ab1dd.671c3c3daf2f05e0355b498b0f5a7f2167fa94dc6de36195fe1ba0503e6dcc30.py\n",
"06/01/2023 22:15:42 - INFO - datasets.utils.file_utils - creating metadata file for /root/.cache/huggingface/datasets/downloads/2f7a246f661e6acb3a9ad072ed14241ea343265e7d863b88717897941c3ab1dd.671c3c3daf2f05e0355b498b0f5a7f2167fa94dc6de36195fe1ba0503e6dcc30.py\n",
"06/01/2023 22:15:43 - INFO - datasets.utils.file_utils - https://huggingface.co/datasets/squad_it/resolve/main/dataset_infos.json not found in cache or force_download set to True, downloading to /root/.cache/huggingface/datasets/downloads/tmpoickid2o\n",
"Downloading metadata: 100% 2.51k/2.51k [00:00<00:00, 2.36MB/s]\n",
"06/01/2023 22:15:43 - INFO - datasets.utils.file_utils - storing https://huggingface.co/datasets/squad_it/resolve/main/dataset_infos.json in cache at /root/.cache/huggingface/datasets/downloads/f6d7650a1e4a9f0e42b54f34ac614f7c1142ad26c1bd19a448eb606fe09f7515.b459489a7b1a4d859decbeef851034c7846ef6cce8ec2cf192cf4b4f40d0865d\n",
"06/01/2023 22:15:43 - INFO - datasets.utils.file_utils - creating metadata file for /root/.cache/huggingface/datasets/downloads/f6d7650a1e4a9f0e42b54f34ac614f7c1142ad26c1bd19a448eb606fe09f7515.b459489a7b1a4d859decbeef851034c7846ef6cce8ec2cf192cf4b4f40d0865d\n",
"06/01/2023 22:15:43 - INFO - datasets.utils.file_utils - https://huggingface.co/datasets/squad_it/resolve/main/README.md not found in cache or force_download set to True, downloading to /root/.cache/huggingface/datasets/downloads/tmp99adhx5x\n",
"Downloading readme: 100% 7.27k/7.27k [00:00<00:00, 6.54MB/s]\n",
"06/01/2023 22:15:43 - INFO - datasets.utils.file_utils - storing https://huggingface.co/datasets/squad_it/resolve/main/README.md in cache at /root/.cache/huggingface/datasets/downloads/b664892e5965a1ef2e173eadc7e9cbf6ad4aeb6240d7b3bb6ab9f32850363a6f.71fe7dbf5f3b574d85b57b5a722ebc49fe8ec8b03d655344891fb1b05c4634fb\n",
"06/01/2023 22:15:43 - INFO - datasets.utils.file_utils - creating metadata file for /root/.cache/huggingface/datasets/downloads/b664892e5965a1ef2e173eadc7e9cbf6ad4aeb6240d7b3bb6ab9f32850363a6f.71fe7dbf5f3b574d85b57b5a722ebc49fe8ec8b03d655344891fb1b05c4634fb\n",
"06/01/2023 22:15:43 - INFO - datasets.info - Loading Dataset Infos from /root/.cache/huggingface/modules/datasets_modules/datasets/squad_it/d442bdb4794b4bae227ab19105b76d706ed7cf2ac342e4c9da4a5c36bde19d71\n",
"06/01/2023 22:15:43 - INFO - datasets.builder - Generating dataset squad_it (/root/.cache/huggingface/datasets/squad_it/default/0.1.0/d442bdb4794b4bae227ab19105b76d706ed7cf2ac342e4c9da4a5c36bde19d71)\n",
"Downloading and preparing dataset squad_it/default to /root/.cache/huggingface/datasets/squad_it/default/0.1.0/d442bdb4794b4bae227ab19105b76d706ed7cf2ac342e4c9da4a5c36bde19d71...\n",
"06/01/2023 22:15:45 - INFO - datasets.builder - Dataset not on Hf google storage. Downloading and preparing it from source\n",
"Downloading data files: 0% 0/2 [00:00<?, ?it/s]06/01/2023 22:15:46 - INFO - datasets.utils.file_utils - https://github.com/crux82/squad-it/raw/master/SQuAD_it-train.json.gz not found in cache or force_download set to True, downloading to /root/.cache/huggingface/datasets/downloads/tmpj9esiuss\n",
"\n",
"Downloading data: 0% 0.00/7.73M [00:00<?, ?B/s]\u001b[A\n",
"Downloading data: 100% 7.73M/7.73M [00:00<00:00, 75.5MB/s]\n",
"06/01/2023 22:15:46 - INFO - datasets.utils.file_utils - storing https://github.com/crux82/squad-it/raw/master/SQuAD_it-train.json.gz in cache at /root/.cache/huggingface/datasets/downloads/44ac0548c3284061d1356ff7f5212fe42b923b0aa0854c886ce93dfeb7ab629b\n",
"06/01/2023 22:15:46 - INFO - datasets.utils.file_utils - creating metadata file for /root/.cache/huggingface/datasets/downloads/44ac0548c3284061d1356ff7f5212fe42b923b0aa0854c886ce93dfeb7ab629b\n",
"Downloading data files: 50% 1/2 [00:01<00:01, 1.35s/it]06/01/2023 22:15:47 - INFO - datasets.utils.file_utils - https://github.com/crux82/squad-it/raw/master/SQuAD_it-test.json.gz not found in cache or force_download set to True, downloading to /root/.cache/huggingface/datasets/downloads/tmp0dopuyxr\n",
"\n",
"Downloading data: 100% 1.05M/1.05M [00:00<00:00, 57.2MB/s]\n",
"06/01/2023 22:15:47 - INFO - datasets.utils.file_utils - storing https://github.com/crux82/squad-it/raw/master/SQuAD_it-test.json.gz in cache at /root/.cache/huggingface/datasets/downloads/e560a4a54eb929ce542e945627942afca80859dcbf499866a59984eb9026d31f\n",
"06/01/2023 22:15:47 - INFO - datasets.utils.file_utils - creating metadata file for /root/.cache/huggingface/datasets/downloads/e560a4a54eb929ce542e945627942afca80859dcbf499866a59984eb9026d31f\n",
"Downloading data files: 100% 2/2 [00:02<00:00, 1.06s/it]\n",
"06/01/2023 22:15:47 - INFO - datasets.download.download_manager - Downloading took 0.0 min\n",
"06/01/2023 22:15:47 - INFO - datasets.download.download_manager - Checksum Computation took 0.0 min\n",
"Extracting data files: 100% 2/2 [00:00<00:00, 8.00it/s]\n",
"06/01/2023 22:15:47 - INFO - datasets.builder - Generating train split\n",
"06/01/2023 22:15:52 - INFO - datasets.builder - Generating test split\n",
"06/01/2023 22:15:53 - INFO - datasets.utils.info_utils - All the splits matched successfully.\n",
"Dataset squad_it downloaded and prepared to /root/.cache/huggingface/datasets/squad_it/default/0.1.0/d442bdb4794b4bae227ab19105b76d706ed7cf2ac342e4c9da4a5c36bde19d71. Subsequent calls will reuse this data.\n",
"100% 2/2 [00:00<00:00, 177.35it/s]\n",
"Downloading (…)lve/main/config.json: 100% 826/826 [00:00<00:00, 3.77MB/s]\n",
"[INFO|configuration_utils.py:669] 2023-06-01 22:15:54,044 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--osiria--deberta-italian-question-answering/snapshots/2b164a0777ece87f9ea321432e558423ca862eea/config.json\n",
"[INFO|configuration_utils.py:725] 2023-06-01 22:15:54,050 >> Model config DebertaV2Config {\n",
" \"_name_or_path\": \"osiria/deberta-italian-question-answering\",\n",
" \"architectures\": [\n",
" \"DebertaV2ForQuestionAnswering\"\n",
" ],\n",
" \"attention_probs_dropout_prob\": 0.1,\n",
" \"hidden_act\": \"gelu\",\n",
" \"hidden_dropout_prob\": 0.1,\n",
" \"hidden_size\": 768,\n",
" \"initializer_range\": 0.02,\n",
" \"intermediate_size\": 3072,\n",
" \"layer_norm_eps\": 1e-07,\n",
" \"max_position_embeddings\": 512,\n",
" \"max_relative_positions\": -1,\n",
" \"model_type\": \"deberta-v2\",\n",
" \"norm_rel_ebd\": \"layer_norm\",\n",
" \"num_attention_heads\": 12,\n",
" \"num_hidden_layers\": 12,\n",
" \"pad_token_id\": 0,\n",
" \"pooler_dropout\": 0,\n",
" \"pooler_hidden_act\": \"gelu\",\n",
" \"pooler_hidden_size\": 768,\n",
" \"pos_att_type\": [\n",
" \"p2c\",\n",
" \"c2p\"\n",
" ],\n",
" \"position_biased_input\": false,\n",
" \"position_buckets\": 256,\n",
" \"relative_attention\": true,\n",
" \"share_att_key\": true,\n",
" \"torch_dtype\": \"float32\",\n",
" \"transformers_version\": \"4.30.0.dev0\",\n",
" \"type_vocab_size\": 0,\n",
" \"vocab_size\": 50256\n",
"}\n",
"\n",
"Downloading (…)okenizer_config.json: 100% 412/412 [00:00<00:00, 2.28MB/s]\n",
"Downloading (…)/main/tokenizer.json: 100% 2.02M/2.02M [00:01<00:00, 1.87MB/s]\n",
"[INFO|tokenization_utils_base.py:1818] 2023-06-01 22:15:57,482 >> loading file spm.model from cache at None\n",
"[INFO|tokenization_utils_base.py:1818] 2023-06-01 22:15:57,482 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--osiria--deberta-italian-question-answering/snapshots/2b164a0777ece87f9ea321432e558423ca862eea/tokenizer.json\n",
"[INFO|tokenization_utils_base.py:1818] 2023-06-01 22:15:57,482 >> loading file added_tokens.json from cache at None\n",
"[INFO|tokenization_utils_base.py:1818] 2023-06-01 22:15:57,482 >> loading file special_tokens_map.json from cache at None\n",
"[INFO|tokenization_utils_base.py:1818] 2023-06-01 22:15:57,482 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--osiria--deberta-italian-question-answering/snapshots/2b164a0777ece87f9ea321432e558423ca862eea/tokenizer_config.json\n",
"Downloading pytorch_model.bin: 100% 496M/496M [00:28<00:00, 17.5MB/s]\n",
"[INFO|modeling_utils.py:2574] 2023-06-01 22:16:27,690 >> loading weights file pytorch_model.bin from cache at /root/.cache/huggingface/hub/models--osiria--deberta-italian-question-answering/snapshots/2b164a0777ece87f9ea321432e558423ca862eea/pytorch_model.bin\n",
"[INFO|modeling_utils.py:3283] 2023-06-01 22:16:29,065 >> All model checkpoint weights were used when initializing DebertaV2ForQuestionAnswering.\n",
"\n",
"[INFO|modeling_utils.py:3291] 2023-06-01 22:16:29,065 >> All the weights of DebertaV2ForQuestionAnswering were initialized from the model checkpoint at osiria/deberta-italian-question-answering.\n",
"If your task is similar to the task the model of the checkpoint was trained on, you can already use DebertaV2ForQuestionAnswering for predictions without further training.\n",
"Running tokenizer on prediction dataset: 0% 0/7609 [00:00<?, ? examples/s]06/01/2023 22:16:29 - INFO - datasets.arrow_dataset - Caching processed dataset at /root/.cache/huggingface/datasets/squad_it/default/0.1.0/d442bdb4794b4bae227ab19105b76d706ed7cf2ac342e4c9da4a5c36bde19d71/cache-c70dd3f912ae21c4.arrow\n",
"Downloading builder script: 100% 4.53k/4.53k [00:00<00:00, 3.39MB/s]\n",
"Downloading extra modules: 100% 3.32k/3.32k [00:00<00:00, 3.26MB/s]\n",
"06/01/2023 22:16:44 - INFO - __main__ - *** Predict ***\n",
"[INFO|trainer.py:793] 2023-06-01 22:16:44,390 >> The following columns in the test set don't have a corresponding argument in `DebertaV2ForQuestionAnswering.forward` and have been ignored: example_id, offset_mapping. If example_id, offset_mapping are not expected by `DebertaV2ForQuestionAnswering.forward`, you can safely ignore this message.\n",
"[INFO|trainer.py:3175] 2023-06-01 22:16:44,392 >> ***** Running Prediction *****\n",
"[INFO|trainer.py:3177] 2023-06-01 22:16:44,392 >> Num examples = 8565\n",
"[INFO|trainer.py:3180] 2023-06-01 22:16:44,392 >> Batch size = 5\n",
"100% 1713/1713 [04:43<00:00, 6.06it/s]06/01/2023 22:21:41 - INFO - utils_qa - Post-processing 7609 example predictions split into 8565 features.\n",
"\n",
" 0% 0/7609 [00:00<?, ?it/s]\u001b[A\n",
" 0% 17/7609 [00:00<00:47, 159.40it/s]\u001b[A\n",
" 0% 33/7609 [00:00<00:47, 158.19it/s]\u001b[A\n",
" 1% 53/7609 [00:00<00:42, 176.81it/s]\u001b[A\n",
" 1% 71/7609 [00:00<00:45, 165.29it/s]\u001b[A\n",
" 1% 90/7609 [00:00<00:43, 171.27it/s]\u001b[A\n",
" 1% 109/7609 [00:00<00:42, 175.74it/s]\u001b[A\n",
" 2% 127/7609 [00:00<00:43, 173.80it/s]\u001b[A\n",
" 2% 146/7609 [00:00<00:42, 177.15it/s]\u001b[A\n",
" 2% 165/7609 [00:00<00:41, 179.53it/s]\u001b[A\n",
" 2% 184/7609 [00:01<00:40, 181.50it/s]\u001b[A\n",
" 3% 203/7609 [00:01<00:40, 180.75it/s]\u001b[A\n",
" 3% 224/7609 [00:01<00:39, 186.81it/s]\u001b[A\n",
" 3% 243/7609 [00:01<00:40, 183.61it/s]\u001b[A\n",
" 3% 262/7609 [00:01<00:39, 184.42it/s]\u001b[A\n",
" 4% 281/7609 [00:01<00:39, 184.43it/s]\u001b[A\n",
" 4% 300/7609 [00:01<00:41, 174.25it/s]\u001b[A\n",
" 4% 318/7609 [00:01<00:44, 165.66it/s]\u001b[A\n",
" 4% 341/7609 [00:01<00:39, 181.94it/s]\u001b[A\n",
" 5% 368/7609 [00:02<00:35, 205.82it/s]\u001b[A\n",
" 5% 402/7609 [00:02<00:29, 242.50it/s]\u001b[A\n",
" 6% 431/7609 [00:02<00:28, 254.96it/s]\u001b[A\n",
" 6% 464/7609 [00:02<00:25, 275.38it/s]\u001b[A\n",
" 7% 497/7609 [00:02<00:24, 288.13it/s]\u001b[A\n",
" 7% 526/7609 [00:02<00:27, 255.52it/s]\u001b[A\n",
" 7% 556/7609 [00:02<00:26, 266.39it/s]\u001b[A\n",
" 8% 584/7609 [00:02<00:27, 260.00it/s]\u001b[A\n",
" 8% 616/7609 [00:02<00:25, 274.49it/s]\u001b[A\n",
" 9% 651/7609 [00:02<00:23, 294.48it/s]\u001b[A\n",
" 9% 685/7609 [00:03<00:22, 306.17it/s]\u001b[A\n",
" 9% 716/7609 [00:03<00:22, 306.03it/s]\u001b[A\n",
" 10% 748/7609 [00:03<00:22, 308.88it/s]\u001b[A\n",
" 10% 781/7609 [00:03<00:22, 309.86it/s]\u001b[A\n",
" 11% 813/7609 [00:03<00:23, 288.11it/s]\u001b[A\n",
" 11% 843/7609 [00:03<00:23, 285.63it/s]\u001b[A\n",
" 11% 875/7609 [00:03<00:23, 292.71it/s]\u001b[A\n",
" 12% 908/7609 [00:03<00:22, 302.47it/s]\u001b[A\n",
" 12% 940/7609 [00:03<00:21, 305.39it/s]\u001b[A\n",
" 13% 971/7609 [00:04<00:21, 306.39it/s]\u001b[A\n",
" 13% 1003/7609 [00:04<00:21, 308.09it/s]\u001b[A\n",
" 14% 1036/7609 [00:04<00:20, 313.79it/s]\u001b[A\n",
" 14% 1068/7609 [00:04<00:20, 314.74it/s]\u001b[A\n",
" 14% 1100/7609 [00:04<00:22, 288.69it/s]\u001b[A\n",
" 15% 1130/7609 [00:04<00:22, 283.51it/s]\u001b[A\n",
" 15% 1159/7609 [00:04<00:23, 275.71it/s]\u001b[A\n",
" 16% 1187/7609 [00:04<00:23, 270.13it/s]\u001b[A\n",
" 16% 1219/7609 [00:04<00:22, 284.03it/s]\u001b[A\n",
" 16% 1249/7609 [00:05<00:22, 288.00it/s]\u001b[A\n",
" 17% 1282/7609 [00:05<00:21, 299.12it/s]\u001b[A\n",
" 17% 1313/7609 [00:05<00:20, 301.98it/s]\u001b[A\n",
" 18% 1344/7609 [00:05<00:20, 300.23it/s]\u001b[A\n",
" 18% 1375/7609 [00:05<00:20, 298.52it/s]\u001b[A\n",
" 18% 1405/7609 [00:05<00:24, 250.07it/s]\u001b[A\n",
" 19% 1434/7609 [00:05<00:23, 258.63it/s]\u001b[A\n",
" 19% 1461/7609 [00:05<00:24, 254.66it/s]\u001b[A\n",
" 20% 1488/7609 [00:05<00:25, 238.54it/s]\u001b[A\n",
" 20% 1517/7609 [00:06<00:24, 248.67it/s]\u001b[A\n",
" 20% 1543/7609 [00:06<00:24, 249.56it/s]\u001b[A\n",
" 21% 1575/7609 [00:06<00:22, 267.06it/s]\u001b[A\n",
" 21% 1603/7609 [00:06<00:23, 252.92it/s]\u001b[A\n",
" 21% 1629/7609 [00:06<00:23, 253.28it/s]\u001b[A\n",
" 22% 1655/7609 [00:06<00:25, 237.38it/s]\u001b[A\n",
" 22% 1683/7609 [00:06<00:23, 246.97it/s]\u001b[A\n",
" 22% 1709/7609 [00:06<00:23, 248.09it/s]\u001b[A\n",
" 23% 1741/7609 [00:06<00:22, 266.58it/s]\u001b[A\n",
" 23% 1768/7609 [00:07<00:23, 253.74it/s]\u001b[A\n",
" 24% 1794/7609 [00:07<00:23, 251.59it/s]\u001b[A\n",
" 24% 1823/7609 [00:07<00:22, 255.77it/s]\u001b[A\n",
" 24% 1849/7609 [00:07<00:22, 253.87it/s]\u001b[A\n",
" 25% 1879/7609 [00:07<00:21, 262.85it/s]\u001b[A\n",
" 25% 1906/7609 [00:07<00:22, 251.41it/s]\u001b[A\n",
" 25% 1932/7609 [00:07<00:22, 253.44it/s]\u001b[A\n",
" 26% 1958/7609 [00:07<00:23, 243.18it/s]\u001b[A\n",
" 26% 1983/7609 [00:07<00:25, 217.06it/s]\u001b[A\n",
" 26% 2006/7609 [00:08<00:28, 195.02it/s]\u001b[A\n",
" 27% 2027/7609 [00:08<00:33, 168.09it/s]\u001b[A\n",
" 27% 2049/7609 [00:08<00:30, 179.97it/s]\u001b[A\n",
" 27% 2069/7609 [00:08<00:31, 175.25it/s]\u001b[A\n",
" 27% 2088/7609 [00:08<00:41, 132.97it/s]\u001b[A\n",
" 28% 2104/7609 [00:08<00:44, 122.73it/s]\u001b[A\n",
" 28% 2136/7609 [00:08<00:33, 164.02it/s]\u001b[A\n",
" 29% 2170/7609 [00:09<00:26, 203.87it/s]\u001b[A\n",
" 29% 2194/7609 [00:09<00:25, 211.26it/s]\u001b[A\n",
" 29% 2218/7609 [00:09<00:24, 218.07it/s]\u001b[A\n",
" 29% 2244/7609 [00:09<00:23, 228.15it/s]\u001b[A\n",
" 30% 2270/7609 [00:09<00:22, 235.60it/s]\u001b[A\n",
" 30% 2301/7609 [00:09<00:20, 254.68it/s]\u001b[A\n",
" 31% 2329/7609 [00:09<00:20, 260.56it/s]\u001b[A\n",
" 31% 2363/7609 [00:09<00:18, 281.33it/s]\u001b[A\n",
" 31% 2395/7609 [00:09<00:17, 291.27it/s]\u001b[A\n",
" 32% 2429/7609 [00:10<00:17, 303.90it/s]\u001b[A\n",
" 32% 2460/7609 [00:10<00:17, 289.95it/s]\u001b[A\n",
" 33% 2490/7609 [00:10<00:19, 267.73it/s]\u001b[A\n",
" 33% 2523/7609 [00:10<00:17, 283.94it/s]\u001b[A\n",
" 34% 2553/7609 [00:10<00:17, 286.19it/s]\u001b[A\n",
" 34% 2582/7609 [00:10<00:17, 281.98it/s]\u001b[A\n",
" 34% 2611/7609 [00:10<00:18, 265.35it/s]\u001b[A\n",
" 35% 2639/7609 [00:10<00:18, 268.49it/s]\u001b[A\n",
" 35% 2671/7609 [00:10<00:17, 280.79it/s]\u001b[A\n",
" 36% 2702/7609 [00:11<00:17, 288.04it/s]\u001b[A\n",
" 36% 2732/7609 [00:11<00:16, 290.66it/s]\u001b[A\n",
" 36% 2762/7609 [00:11<00:17, 284.93it/s]\u001b[A\n",
" 37% 2795/7609 [00:11<00:16, 297.24it/s]\u001b[A\n",
" 37% 2825/7609 [00:11<00:16, 297.64it/s]\u001b[A\n",
" 38% 2855/7609 [00:11<00:16, 289.95it/s]\u001b[A\n",
" 38% 2886/7609 [00:11<00:16, 292.29it/s]\u001b[A\n",
" 38% 2916/7609 [00:11<00:15, 293.43it/s]\u001b[A\n",
" 39% 2947/7609 [00:11<00:15, 296.51it/s]\u001b[A\n",
" 39% 2977/7609 [00:11<00:16, 285.57it/s]\u001b[A\n",
" 40% 3006/7609 [00:12<00:20, 225.91it/s]\u001b[A\n",
" 40% 3031/7609 [00:12<00:23, 196.79it/s]\u001b[A\n",
" 40% 3053/7609 [00:12<00:23, 192.50it/s]\u001b[A\n",
" 40% 3074/7609 [00:12<00:24, 186.74it/s]\u001b[A\n",
" 41% 3094/7609 [00:12<00:26, 169.89it/s]\u001b[A\n",
" 41% 3112/7609 [00:12<00:27, 162.10it/s]\u001b[A\n",
" 41% 3129/7609 [00:12<00:28, 156.46it/s]\u001b[A\n",
" 41% 3146/7609 [00:13<00:28, 158.18it/s]\u001b[A\n",
" 42% 3164/7609 [00:13<00:27, 163.03it/s]\u001b[A\n",
" 42% 3181/7609 [00:13<00:29, 148.02it/s]\u001b[A\n",
" 42% 3197/7609 [00:13<00:31, 138.03it/s]\u001b[A\n",
" 42% 3213/7609 [00:13<00:30, 142.24it/s]\u001b[A\n",
" 42% 3228/7609 [00:13<00:32, 135.79it/s]\u001b[A\n",
" 43% 3247/7609 [00:13<00:29, 148.69it/s]\u001b[A\n",
" 43% 3263/7609 [00:13<00:28, 150.77it/s]\u001b[A\n",
" 43% 3279/7609 [00:13<00:28, 150.85it/s]\u001b[A\n",
" 43% 3298/7609 [00:14<00:27, 159.49it/s]\u001b[A\n",
" 44% 3316/7609 [00:14<00:26, 163.96it/s]\u001b[A\n",
" 44% 3333/7609 [00:14<00:28, 148.56it/s]\u001b[A\n",
" 44% 3349/7609 [00:14<00:28, 151.24it/s]\u001b[A\n",
" 44% 3368/7609 [00:14<00:26, 161.74it/s]\u001b[A\n",
" 45% 3388/7609 [00:14<00:24, 170.84it/s]\u001b[A\n",
" 45% 3406/7609 [00:14<00:24, 172.08it/s]\u001b[A\n",
" 45% 3424/7609 [00:14<00:24, 170.93it/s]\u001b[A\n",
" 45% 3444/7609 [00:14<00:23, 176.91it/s]\u001b[A\n",
" 46% 3464/7609 [00:15<00:22, 183.10it/s]\u001b[A\n",
" 46% 3484/7609 [00:15<00:22, 185.87it/s]\u001b[A\n",
" 46% 3505/7609 [00:15<00:21, 191.49it/s]\u001b[A\n",
" 46% 3525/7609 [00:15<00:21, 189.64it/s]\u001b[A\n",
" 47% 3545/7609 [00:15<00:22, 177.47it/s]\u001b[A\n",
" 47% 3564/7609 [00:15<00:22, 180.37it/s]\u001b[A\n",
" 47% 3584/7609 [00:15<00:21, 183.68it/s]\u001b[A\n",
" 47% 3603/7609 [00:15<00:23, 166.99it/s]\u001b[A\n",
" 48% 3621/7609 [00:15<00:24, 163.33it/s]\u001b[A\n",
" 48% 3638/7609 [00:16<00:24, 160.40it/s]\u001b[A\n",
" 48% 3659/7609 [00:16<00:22, 172.66it/s]\u001b[A\n",
" 49% 3691/7609 [00:16<00:18, 212.19it/s]\u001b[A\n",
" 49% 3722/7609 [00:16<00:16, 237.97it/s]\u001b[A\n",
" 49% 3755/7609 [00:16<00:14, 262.59it/s]\u001b[A\n",
" 50% 3782/7609 [00:16<00:14, 261.90it/s]\u001b[A\n",
" 50% 3810/7609 [00:16<00:14, 265.74it/s]\u001b[A\n",
" 51% 3847/7609 [00:16<00:12, 294.39it/s]\u001b[A\n",
" 51% 3877/7609 [00:16<00:12, 294.43it/s]\u001b[A\n",
" 51% 3912/7609 [00:16<00:11, 309.91it/s]\u001b[A\n",
" 52% 3946/7609 [00:17<00:11, 318.01it/s]\u001b[A\n",
" 52% 3978/7609 [00:17<00:11, 303.10it/s]\u001b[A\n",
" 53% 4010/7609 [00:17<00:11, 305.08it/s]\u001b[A\n",
" 53% 4041/7609 [00:17<00:11, 304.66it/s]\u001b[A\n",
" 54% 4072/7609 [00:17<00:12, 287.62it/s]\u001b[A\n",
" 54% 4102/7609 [00:17<00:13, 262.87it/s]\u001b[A\n",
" 54% 4130/7609 [00:17<00:13, 267.01it/s]\u001b[A\n",
" 55% 4160/7609 [00:17<00:12, 275.11it/s]\u001b[A\n",
" 55% 4188/7609 [00:17<00:12, 275.05it/s]\u001b[A\n",
" 55% 4216/7609 [00:18<00:12, 274.27it/s]\u001b[A\n",
" 56% 4246/7609 [00:18<00:12, 278.88it/s]\u001b[A\n",
" 56% 4278/7609 [00:18<00:11, 290.37it/s]\u001b[A\n",
" 57% 4311/7609 [00:18<00:11, 299.60it/s]\u001b[A\n",
" 57% 4344/7609 [00:18<00:10, 305.95it/s]\u001b[A\n",
" 58% 4376/7609 [00:18<00:10, 308.56it/s]\u001b[A\n",
" 58% 4409/7609 [00:18<00:10, 312.28it/s]\u001b[A\n",
" 58% 4441/7609 [00:18<00:10, 299.20it/s]\u001b[A\n",
" 59% 4473/7609 [00:18<00:10, 303.12it/s]\u001b[A\n",
" 59% 4507/7609 [00:19<00:09, 312.51it/s]\u001b[A\n",
" 60% 4539/7609 [00:19<00:10, 280.99it/s]\u001b[A\n",
" 60% 4572/7609 [00:19<00:10, 292.89it/s]\u001b[A\n",
" 60% 4603/7609 [00:19<00:10, 297.20it/s]\u001b[A\n",
" 61% 4635/7609 [00:19<00:09, 302.90it/s]\u001b[A\n",
" 61% 4668/7609 [00:19<00:09, 308.96it/s]\u001b[A\n",
" 62% 4701/7609 [00:19<00:09, 315.05it/s]\u001b[A\n",
" 62% 4735/7609 [00:19<00:08, 322.22it/s]\u001b[A\n",
" 63% 4768/7609 [00:19<00:08, 316.34it/s]\u001b[A\n",
" 63% 4800/7609 [00:19<00:09, 290.19it/s]\u001b[A\n",
" 64% 4832/7609 [00:20<00:09, 297.73it/s]\u001b[A\n",
" 64% 4863/7609 [00:20<00:09, 296.36it/s]\u001b[A\n",
" 64% 4895/7609 [00:20<00:08, 302.81it/s]\u001b[A\n",
" 65% 4926/7609 [00:20<00:08, 301.93it/s]\u001b[A\n",
" 65% 4957/7609 [00:20<00:09, 282.39it/s]\u001b[A\n",
" 66% 4990/7609 [00:20<00:08, 295.33it/s]\u001b[A\n",
" 66% 5022/7609 [00:20<00:08, 301.40it/s]\u001b[A\n",
" 66% 5055/7609 [00:20<00:08, 308.96it/s]\u001b[A\n",
" 67% 5087/7609 [00:20<00:08, 303.63it/s]\u001b[A\n",
" 67% 5120/7609 [00:21<00:08, 309.00it/s]\u001b[A\n",
" 68% 5152/7609 [00:21<00:08, 304.81it/s]\u001b[A\n",
" 68% 5184/7609 [00:21<00:07, 307.53it/s]\u001b[A\n",
" 69% 5219/7609 [00:21<00:07, 318.71it/s]\u001b[A\n",
" 69% 5253/7609 [00:21<00:07, 323.27it/s]\u001b[A\n",
" 69% 5288/7609 [00:21<00:07, 330.41it/s]\u001b[A\n",
" 70% 5323/7609 [00:21<00:06, 334.92it/s]\u001b[A\n",
" 70% 5358/7609 [00:21<00:06, 336.91it/s]\u001b[A\n",
" 71% 5392/7609 [00:21<00:06, 327.19it/s]\u001b[A\n",
" 71% 5425/7609 [00:21<00:06, 315.70it/s]\u001b[A\n",
" 72% 5457/7609 [00:22<00:06, 314.59it/s]\u001b[A\n",
" 72% 5489/7609 [00:22<00:06, 313.63it/s]\u001b[A\n",
" 73% 5522/7609 [00:22<00:06, 317.64it/s]\u001b[A\n",
" 73% 5554/7609 [00:22<00:06, 312.75it/s]\u001b[A\n",
" 73% 5586/7609 [00:22<00:06, 314.14it/s]\u001b[A\n",
" 74% 5619/7609 [00:22<00:06, 317.95it/s]\u001b[A\n",
" 74% 5651/7609 [00:22<00:06, 294.98it/s]\u001b[A\n",
" 75% 5683/7609 [00:22<00:06, 300.49it/s]\u001b[A\n",
" 75% 5716/7609 [00:22<00:06, 307.75it/s]\u001b[A\n",
" 76% 5747/7609 [00:23<00:06, 297.03it/s]\u001b[A\n",
" 76% 5781/7609 [00:23<00:05, 308.96it/s]\u001b[A\n",
" 76% 5817/7609 [00:23<00:05, 323.26it/s]\u001b[A\n",
" 77% 5850/7609 [00:23<00:05, 305.63it/s]\u001b[A\n",
" 77% 5884/7609 [00:23<00:05, 314.96it/s]\u001b[A\n",
" 78% 5918/7609 [00:23<00:05, 321.21it/s]\u001b[A\n",
" 78% 5951/7609 [00:23<00:05, 299.26it/s]\u001b[A\n",
" 79% 5983/7609 [00:23<00:05, 303.73it/s]\u001b[A\n",
" 79% 6014/7609 [00:23<00:05, 301.59it/s]\u001b[A\n",
" 79% 6045/7609 [00:24<00:06, 259.58it/s]\u001b[A\n",
" 80% 6079/7609 [00:24<00:05, 278.08it/s]\u001b[A\n",
" 80% 6108/7609 [00:24<00:05, 271.65it/s]\u001b[A\n",
" 81% 6136/7609 [00:24<00:06, 219.93it/s]\u001b[A\n",
" 81% 6160/7609 [00:24<00:07, 203.67it/s]\u001b[A\n",
" 81% 6191/7609 [00:24<00:06, 227.18it/s]\u001b[A\n",
" 82% 6225/7609 [00:24<00:05, 254.98it/s]\u001b[A\n",
" 82% 6260/7609 [00:24<00:04, 277.45it/s]\u001b[A\n",
" 83% 6290/7609 [00:25<00:04, 283.26it/s]\u001b[A\n",
" 83% 6325/7609 [00:25<00:04, 299.94it/s]\u001b[A\n",
" 84% 6358/7609 [00:25<00:04, 306.40it/s]\u001b[A\n",
" 84% 6395/7609 [00:25<00:03, 322.63it/s]\u001b[A\n",
" 85% 6432/7609 [00:25<00:03, 334.50it/s]\u001b[A\n",
" 85% 6466/7609 [00:25<00:03, 323.57it/s]\u001b[A\n",
" 85% 6499/7609 [00:25<00:03, 297.71it/s]\u001b[A\n",
" 86% 6530/7609 [00:25<00:03, 299.54it/s]\u001b[A\n",
" 86% 6564/7609 [00:25<00:03, 310.64it/s]\u001b[A\n",
" 87% 6599/7609 [00:25<00:03, 321.81it/s]\u001b[A\n",
" 87% 6632/7609 [00:26<00:03, 284.04it/s]\u001b[A\n",
" 88% 6662/7609 [00:26<00:03, 246.42it/s]\u001b[A\n",
" 88% 6689/7609 [00:26<00:04, 206.91it/s]\u001b[A\n",
" 88% 6712/7609 [00:26<00:04, 196.18it/s]\u001b[A\n",
" 88% 6733/7609 [00:26<00:04, 191.25it/s]\u001b[A\n",
" 89% 6753/7609 [00:26<00:04, 180.30it/s]\u001b[A\n",
" 89% 6772/7609 [00:26<00:04, 169.16it/s]\u001b[A\n",
" 89% 6790/7609 [00:27<00:04, 167.71it/s]\u001b[A\n",
" 89% 6807/7609 [00:27<00:05, 154.04it/s]\u001b[A\n",
" 90% 6823/7609 [00:27<00:05, 147.19it/s]\u001b[A\n",
" 90% 6841/7609 [00:27<00:04, 154.53it/s]\u001b[A\n",
" 90% 6859/7609 [00:27<00:04, 160.38it/s]\u001b[A\n",
" 90% 6876/7609 [00:27<00:05, 146.05it/s]\u001b[A\n",
" 91% 6893/7609 [00:27<00:04, 150.70it/s]\u001b[A\n",
" 91% 6912/7609 [00:27<00:04, 159.53it/s]\u001b[A\n",
" 91% 6929/7609 [00:28<00:04, 159.56it/s]\u001b[A\n",
" 91% 6947/7609 [00:28<00:04, 163.48it/s]\u001b[A\n",
" 92% 6965/7609 [00:28<00:03, 165.79it/s]\u001b[A\n",
" 92% 6982/7609 [00:28<00:03, 165.51it/s]\u001b[A\n",
" 92% 7001/7609 [00:28<00:03, 170.32it/s]\u001b[A\n",
" 92% 7021/7609 [00:28<00:03, 177.92it/s]\u001b[A\n",
" 93% 7039/7609 [00:28<00:03, 175.03it/s]\u001b[A\n",
" 93% 7057/7609 [00:28<00:03, 163.32it/s]\u001b[A\n",
" 93% 7074/7609 [00:28<00:03, 137.57it/s]\u001b[A\n",
" 93% 7089/7609 [00:29<00:03, 135.50it/s]\u001b[A\n",
" 93% 7104/7609 [00:29<00:03, 134.23it/s]\u001b[A\n",
" 94% 7118/7609 [00:29<00:03, 132.23it/s]\u001b[A\n",
" 94% 7136/7609 [00:29<00:03, 142.38it/s]\u001b[A\n",
" 94% 7151/7609 [00:29<00:03, 140.73it/s]\u001b[A\n",
" 94% 7167/7609 [00:29<00:03, 145.65it/s]\u001b[A\n",
" 94% 7186/7609 [00:29<00:02, 156.49it/s]\u001b[A\n",
" 95% 7202/7609 [00:29<00:02, 142.59it/s]\u001b[A\n",
" 95% 7222/7609 [00:29<00:02, 155.98it/s]\u001b[A\n",
" 95% 7241/7609 [00:30<00:02, 163.57it/s]\u001b[A\n",
" 95% 7258/7609 [00:30<00:02, 163.20it/s]\u001b[A\n",
" 96% 7276/7609 [00:30<00:01, 167.01it/s]\u001b[A\n",
" 96% 7296/7609 [00:30<00:01, 175.67it/s]\u001b[A\n",
" 96% 7317/7609 [00:30<00:01, 183.09it/s]\u001b[A\n",
" 97% 7345/7609 [00:30<00:01, 210.09it/s]\u001b[A\n",
" 97% 7377/7609 [00:30<00:00, 242.02it/s]\u001b[A\n",
" 97% 7407/7609 [00:30<00:00, 252.08it/s]\u001b[A\n",
" 98% 7434/7609 [00:30<00:00, 256.70it/s]\u001b[A\n",
" 98% 7460/7609 [00:30<00:00, 248.40it/s]\u001b[A\n",
" 98% 7488/7609 [00:31<00:00, 252.82it/s]\u001b[A\n",
" 99% 7514/7609 [00:31<00:00, 248.94it/s]\u001b[A\n",
" 99% 7539/7609 [00:31<00:00, 231.82it/s]\u001b[A\n",
" 99% 7563/7609 [00:31<00:00, 218.37it/s]\u001b[A\n",
"100% 7609/7609 [00:31<00:00, 240.54it/s]\n",
"06/01/2023 22:22:13 - INFO - utils_qa - Saving predictions to eval_results/predict_predictions.json.\n",
"06/01/2023 22:22:13 - INFO - utils_qa - Saving nbest_preds to eval_results/predict_nbest_predictions.json.\n",
"***** predict metrics *****\n",
" predict_samples = 8565\n",
" test_exact_match = 68.8001\n",
" test_f1 = 80.0818\n",
" test_runtime = 0:04:46.57\n",
" test_samples_per_second = 29.887\n",
" test_steps_per_second = 5.977\n",
"[INFO|modelcard.py:451] 2023-06-01 22:22:16,979 >> Dropping the following result as it does not have all the necessary fields:\n",
"{'task': {'name': 'Question Answering', 'type': 'question-answering'}, 'dataset': {'name': 'squad_it', 'type': 'squad_it'}}\n",
"100% 1713/1713 [05:29<00:00, 5.19it/s]\n"
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "ij8YkY0xyNXI"
},
"execution_count": null,
"outputs": []
}
]
} |