Spaces:
Running
Running
File size: 137,436 Bytes
2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 f76831f 2b999c0 |
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 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "HjS1m1tE1Thl"
},
"source": [
"# __ΠΠ΅Π²ΠΎΠΏΡΠ½Π°Ρ Π΄ΠΎΠΌΠ°ΡΠΊΠ° ΠΏΠΎ ΡΡΠ°Π½ΡΡΠΎΡΠΌΠ΅ΡΠ°ΠΌ__\n",
"\n",
"## __ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅__\n",
"\n",
"ΠΠ°Ρ Π³Π»Π°Π²Π½ΡΠΉ ΠΊΠ²Π΅ΡΡ Π½Π° ΡΡΡ Π΄ΠΎΠΌΠ°ΡΠΊΡ - ΡΠ΄Π΅Π»Π°ΡΡ ΡΠ²ΠΎΠΉ ΠΏΡΠΎΡΡΠΎΠΉ ΡΠ΅ΡΠ²ΠΈΡ Π½Π° ΡΡΠ°Π½ΡΡΠΎΡΠΌΠ΅ΡΠ°Ρ
. ΠΠΎΡ ΠΏΡΡΠΌ ΡΠ΅Π»ΡΠΉ ΡΠ΅ΡΠ²ΠΈΡ: Π½Π°ΡΠΈΠ½Π°Ρ Ρ Π΄Π°Π½Π½ΡΡ
ΠΈ Π·Π°ΠΊΠ°Π½ΡΠΈΠ²Π°Ρ Π³ΡΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΠΌ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΠΎΠΌ Π³Π΄Π΅-ΡΠΎ Π² ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ΅. ΠΠ°Ρ ΡΠ΅ΡΠ²ΠΈΡ ΠΌΠΎΠΆΠ΅Ρ ΡΠ΅ΡΠ°ΡΡ Π»ΠΈΠ±ΠΎ ΠΎΠ΄Π½Ρ ΠΈΠ· ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½Π½ΡΡ
Π½ΠΈΠΆΠ΅ Π·Π°Π΄Π°Ρ, Π»ΠΈΠ±ΠΎ Π»ΡΠ±ΡΡ Π΄ΡΡΠ³ΡΡ (ΡΡΠΎ-ΡΠΎ Π±ΠΎΠ»Π΅Π΅ Π΄ΠΎΡΠΎΠ³ΠΎΠ΅ Π»ΠΈΡΠ½ΠΎ Π²Π°ΠΌ).\n",
"\n",
"__Π‘ΡΠ°Π½Π΄Π°ΡΡΠ½Π°Ρ Π·Π°Π΄Π°ΡΠ°: ΠΊΠ»Π°ΡΡΠΈΡΠΈΠΊΠ°ΡΠΎΡ ΡΡΠ°ΡΠ΅ΠΉ.__ ΠΡΠΆΠ½ΠΎ ΠΏΠΎΡΡΡΠΎΠΈΡΡ ΡΠ΅ΡΠ²ΠΈΡ ΠΊΠΎΡΠΎΡΡΠΉ ΠΏΡΠΈΠ½ΠΈΠΌΠ°Π΅Ρ Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΡΡΠ°ΡΡΠΈ ΠΈ Π΅Ρ abstract, ΠΈ Π²ΡΠ΄Π°ΡΡ Π½Π°ΠΈΠ±ΠΎΠ»Π΅Π΅ Π²Π΅ΡΠΎΡΡΠ½ΡΡ ΡΠ΅ΠΌΠ°ΡΠΈΠΊΡ ΡΡΠ°ΡΡΠΈ: ΡΠΊΠ°ΠΆΠ΅ΠΌ, ΡΠΈΠ·ΠΈΠΊΠ°, Π±ΠΈΠΎΠ»ΠΎΠ³ΠΈΡ ΠΈΠ»ΠΈ computer science. Π ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΠ΅ Π΄ΠΎΠ»ΠΆΠ½ΠΎ Π±ΡΡΡ ΠΌΠΎΠΆΠ½ΠΎ Π²Π²Π΅ΡΡΠΈ ΠΎΡΠ΄Π΅Π»ΡΠ½ΠΎ abstract, ΠΎΡΠ΄Π΅Π»ΡΠ½ΠΎ Π½Π°Π·Π²Π°Π½ΠΈΠ΅ -- ΠΈ ΡΠ²ΠΈΠ΄Π΅ΡΡ ΡΠΎΠΏ-95%* ΡΠ΅ΠΌΠ°ΡΠΈΠΊ, ΠΎΡΡΠΎΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΡ
ΠΏΠΎ ΡΠ±ΡΠ²Π°Π½ΠΈΡ Π²Π΅ΡΠΎΡΡΠ½ΠΎΡΡΠΈ. ΠΡΠ»ΠΈ abstract Π½Π΅ Π²Π²Π΅Π»ΠΈ, Π½ΡΠΆΠ½ΠΎ ΠΊΠ»Π°ΡΡΠΈΡΠΈΡΠΈΡΠΎΠ²Π°ΡΡ ΡΡΠ°ΡΡΡ ΡΠΎΠ»ΡΠΊΠΎ ΠΏΠΎ Π½Π°Π·Π²Π°Π½ΠΈΡ. ΠΠΈΠΆΠ΅ Π²Π°Ρ ΠΆΠ΄ΡΡ ΠΈΠ½ΡΡΡΡΠΊΡΠΈΠΈ ΠΈ Π΄Π°Π½Π½ΡΠ΅ ΠΈΠΌΠ΅Π½Π½ΠΎ Π΄Π»Ρ ΡΡΠΎΠΉ Π·Π°Π΄Π°ΡΠΈ.\n",
"\n",
"<details><summary><u> Π§ΡΠΎ Π·Π½Π°ΡΠΈΡ Π’ΠΎΠΏ-95%?</u></summary>\n",
" ΠΡΠΆΠ½ΠΎ Π²ΡΠ΄Π°Π²Π°ΡΡ ΡΠ΅ΠΌΡ ΠΏΠΎ ΡΠ±ΡΠ²Π°Π½ΠΈΡ Π²Π΅ΡΠΎΡΡΠ½ΠΎΡΡΠΈ, ΠΏΠΎΠΊΠ° ΠΈΡ
ΡΡΠΌΠΌΠ°ΡΠ½Π°Ρ Π²Π΅ΡΠΎΡΡΠ½ΠΎΡΡΡ Π½Π΅ ΠΏΡΠ΅Π²ΡΡΠΈΡ 95%. Π Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡΠΈ ΠΎΡ ΠΏΡΠ΅Π΄ΡΠΊΠ°Π·Π°Π½Π½ΠΎΠΉ Π²Π΅ΡΠΎΡΡΠ½ΠΎΡΡΠΈ, ΡΡΠΎ ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ ΠΎΠ΄Π½Π° ΠΈΠ»ΠΈ Π±ΠΎΠ»Π΅Π΅ ΡΠ΅ΠΌ. ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, Π΅ΡΠ»ΠΈ ΠΌΠΎΠ΄Π΅Π»Ρ ΠΏΡΠ΅Π΄ΡΠΊΠ°Π·Π°Π»Π° Π²Π΅ΡΠΎΡΡΠ½ΠΎΡΡΠΈ [4%, 20%, 60%, 2%, 14%], Π½ΡΠΆΠ½ΠΎ Π²ΡΠ²Π΅ΡΡΠΈ 3 ΡΠΎΠΏ-3 ΠΊΠ»Π°ΡΡΠ°. ΠΡΠ»ΠΈ ΠΎΠ΄ΠΈΠ½ ΠΈΠ· ΠΊΠ»Π°ΡΡΠΎΠ² ΠΈΠΌΠ΅Π΅Ρ Π²Π΅ΡΠΎΡΡΠ½ΠΎΡΡΡ 96%, Π΄ΠΎΡΡΠ°ΡΠΎΡΠ½ΠΎ Π²ΡΠ²Π΅ΡΡΠΈ ΠΎΠ΄ΠΈΠ½ ΡΡΠΎΡ ΠΊΠ»Π°ΡΡ.\n",
"</details>\n",
"\n",
"ΠΠ»ΡΡΠ΅ΡΠ½Π°ΡΠΈΠ²Π½ΠΎ, Π²Ρ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΡΠ²Π°ΠΆΠΈΡΡΡΡ ΡΠ΄Π΅Π»Π°ΡΡ ΡΡΠΎ-ΡΠΎ ΡΠ²ΠΎΡ, Π½Π° Π΄Π°Π½Π½ΡΡ
ΠΈΠ· ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ° ΠΈΠ»ΠΈ ΡΠ²ΠΎΠΈΡ
ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΡ
. Π Π²Π°ΡΠ΅ΠΉ Π·Π°Π΄Π°ΡΠ΅ ΠΎΠ±ΡΠ·Π°ΡΠ΅Π»ΡΠ½ΠΎ Π΄ΠΎΠ»ΠΆΠ½ΠΎ Π±ΡΡΡ _ΠΎΠΏΡΠ°Π²Π΄Π°Π½Π½ΠΎΠ΅_ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ ΡΡΠ°Π½ΡΡΠΎΡΠΌΠ΅ΡΠΎΠ². ΠΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ ML ΡΡΠΎΠ±Ρ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄ΠΈΡΡ ΡΠ°ΡΠΎΠ²ΡΠ΅ ΠΏΠΎΡΡΠ° - ΠΏΠ»ΠΎΡ
ΠΎΠΉ ΠΏΠ»Π°Π½.\n",
"\n",
"Achtung: ΡΡΠ°Π½ΡΡΠΎΡΠΌΠ΅ΡΡ ΠΊΡΡΡΡ, Π½ΠΎ Π½Π΅ Π²ΡΠ΅ΠΌΠΎΠ³ΡΡΠΈ. ΠΠ°Π»Π΅ΠΊΠΎ Π½Π΅ Π»ΡΠ±ΡΡ Π·Π°Π΄Π°ΡΡ ΠΌΠΎΠΆΠ½ΠΎ ΡΠ΅ΡΠΈΡΡ ΠΎΡΡΡΠΈΠΌΠΎ Π»ΡΡΡΠ΅ ΡΠ°Π½Π΄ΠΎΠΌΠ°. ΠΠ»Ρ ΠΊΠ°Π»ΠΈΠ±ΡΠΎΠ²ΠΊΠΈ, Π²ΠΎΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ ΠΏΡΠΈΠΌΠ΅ΡΠΎΠ² ΡΠ΅ΡΠ°Π΅ΠΌΡΡ
Π·Π°Π΄Π°Ρ (Π²ΡΡ ΠΊΠ»ΠΈΠΊΠ°Π±Π΅Π»ΡΠ½ΠΎ):\n",
"\n",
"\n",
"<details><summary> - <b>[medium]</b> <u>Π‘Π³Π΅Π½Π΅ΡΠΈΡΠΎΠ²Π°ΡΡ youtube-ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΈ ΠΏΠΎ _ΡΡΡΠ»ΠΊΠ΅_ Π½Π° Π²ΠΈΠ΄Π΅ΠΎ</u></summary>\n",
" ΠΡΡ ΠΏΡΠΎΡΡΠΎ, ΡΠ·Π΅Ρ ΠΏΠΎΡΡΠΈΡ ΡΡΡΠ»ΠΊΡ Π½Π° Π²ΠΈΠ΄Π΅ΠΎ - Π²Ρ Π΅Π³ΠΎ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠΈΡΡΠ΅ΡΠ΅. ΠΠΎΠΆΠ½ΠΎ Π·Π°ΡΠ°Π½Π΅Π΅ ΠΎΠ±ΡΡΠ»ΠΎΠ²ΠΈΡΡΡΡ ΡΡΠΎ Π²ΠΈΠ΄Π΅ΠΎ ΡΠΎΠ»ΡΠΊΠΎ Π½Π° Π°Π½Π³Π»ΠΈΠΉΡΠΊΠΎΠΌ ΠΈΠ»ΠΈ Π½Π° ΡΡΡΡΠΊΠΎΠΌ. ΠΡΠΆΠ½ΠΎ ΡΠΎΡΠΈΠ½ΠΈΡΡ _Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ_ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠ΅Π². Kudos Π΅ΡΠ»ΠΈ Π²ΠΌΠ΅ΡΡΠ΅ Ρ ΠΎΡΠ½ΠΎΠ²Π½ΡΠΌ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠ΅ΠΌ Π²Ρ ΠΏΠΎΡΠΎΠΆΠ΄Π°Π΅ΡΠ΅ ΡΠ·Π΅ΡΠ½Π΅ΠΉΠΌΡ ΠΈ-ΠΈΠ»ΠΈ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π½Π΅Π³ΠΎ.\n",
" \n",
" ΠΠ°ΡΠ°ΡΠ΅Ρ Π΄Π»Ρ ΡΠ°ΠΉΠ½ΡΡΠ½Π° ΠΌΠΎΠΆΠ½ΠΎ [Π²Π·ΡΡΡ Ρ kaggle](https://www.kaggle.com/tanmay111/youtube-comments-sentiment-analysis/data?select=UScomments.csv) ΠΈΠ»ΠΈ [ΡΠΎΠ±ΡΠ°ΡΡ ΡΠ°ΠΌΠΎΡΡΠΎΡΡΠ΅Π»ΡΠ½ΠΎ](https://towardsdatascience.com/how-to-build-your-own-dataset-of-youtube-comments-39a1e57aade).\n",
" \n",
" Π ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅ ΠΎΡΠ½ΠΎΠ²Π½ΠΎΠΉ ΠΌΠΎΠ΄Π΅Π»ΠΈ ΠΌΠΎΠΆΠ½ΠΎ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ [GPT-2 large](https://huggingface.co/gpt2-large). ΠΠΎΡ ΠΊΠ°ΠΊ Π΅Ρ ΡΠ°ΠΉΠ½ΡΡΠ½ΠΈΡΡ: https://tinyurl.com/gpt2-finetune-colab . ΠΡΠ»ΠΈ Ρ
ΠΎΡΠΈΡΠ΅ Π±ΠΎΠ»ΡΡΠ΅ - ΠΌΠΎΠΆΠ½ΠΎ Π²Π·ΡΡΡ ΡΡΠΎ-ΡΠΎ ΠΈΠ· ΡΠ²ΠΎΡΡΠ΅ΡΡΠ²Π° https://huggingface.co/EleutherAI . ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, Π²ΠΎΡ [ΡΡΡ](https://tinyurl.com/gpt-j-8bit) Π΅ΡΡΡ ΠΏΡΠΈΠΌΠ΅Ρ ΠΊΠ°ΠΊ ΡΠ°ΠΉΠ½ΡΡΠ½ΠΈΡΡ GPT-J-6B (Π² 8 ΡΠ°Π· Π±ΠΎΠ»ΡΡΠ΅ gpt2-large). ΠΠ΄Π½Π°ΠΊΠΎ, ΡΡΠΈΠΌ ΡΡΠΎΠΈΡ Π·Π°Π½ΠΈΠΌΠ°ΡΡΡΡ ΡΠΆΠ΅ ΠΏΠΎΡΠ»Π΅ ΡΠΎΠ³ΠΎ, ΠΊΠ°ΠΊ Ρ Π²Π°Ρ Π·Π°ΡΠ°Π±ΠΎΡΠ°Π» Π±Π°Π·ΠΎΠ²ΡΠΉ ΡΡΠ΅Π½Π°ΡΠΈΠΉ Ρ GPT2-large ΠΈΠ»ΠΈ Π΄Π°ΠΆΠ΅ base.\n",
" \n",
" Π ΠΈΡΠΎΠ³ΠΎΠ²ΠΎΠΌ ΡΠ΅ΡΠ²ΠΈΡΠ΅ ΠΌΠΎΠΆΠ½ΠΎ Π΄Π°ΡΡ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ Π²Π°ΡΠΈΠΈΡΠΎΠ²Π°ΡΡ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ Π³Π΅Π½Π΅ΡΠ°ΡΠΈΠΈ: ΡΠ΅ΠΌΠΏΠ΅ΡΠ°ΡΡΡΠ° ΠΈΠ»ΠΈ top-p, Π΅ΡΠ»ΠΈ ΡΡΠΌΠΏΠ»ΠΈΠ½Π³; beam size ΠΈ length penalty, Π΅ΡΠ»ΠΈ beam search; ΡΠΊΠΎΠ»ΡΠΊΠΎ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠ΅Π² ΡΠ³Π΅Π½Π΅ΡΠΈΡΠΎΠ²Π°ΡΡ, etc. ΠΡΠ΄Π΅Π»ΡΠ½ΡΠΉ ΡΠ΅ΡΠΏΠ΅ΠΊΡ Π΅ΡΠ»ΠΈ Π²Π°Ρ ΠΊΠΎΠ΄ Π±ΡΠ΄Π΅Ρ Π²ΡΠ²ΠΎΠ΄ΠΈΡΡ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΉ ΠΏΠΎ ΠΎΠ΄Π½ΠΎΠΌΡ ΡΠ»ΠΎΠ²Ρ, ΠΏΡΡΠΌΠΎ Π² ΠΏΡΠΎΡΠ΅ΡΡΠ΅ Π³Π΅Π½Π΅ΡΡΠΆΠΊΠΈ - ΡΡΠΎΠ±Ρ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ Π½Π΅ ΠΆΠ΄Π°Π» ΠΏΠΎΠΊΠ° Π²Ρ Π½Π°ΡΡΡΡΠ³Π°Π΅ΡΠ΅ Π°Π±Π·Π°Ρ ΡΠ΅Π»ΠΈΠΊΠΎΠΌ.\n",
"</details>\n",
"\n",
"<details><summary> - <b>[medium]</b> <u>ΠΡΠ΅Π΄ΡΠΊΠ°Π·Π°ΡΡ Π·Π°ΡΠΏΠ»Π°ΡΡ ΠΏΠΎ ΠΏΡΠΎΡΠΈΠ»Ρ (ΡΠΈΠΌΡΠ»ΡΡΠΎΡ ΠΡΠ΄Ρ).</u></summary>\n",
" Note: <details> <summary>ΠΡΠΈΡΡΠΌ ΡΡΡ ΠΡΠ΄Ρ?</summary> <img src=https://www.meme-arsenal.com/memes/6dd85f126bbab4f9774ced71ffadbcb3.jpg> </details>\n",
" \n",
" ΠΠ»Π°Π²Π½Π°Ρ ΡΠ»ΠΎΠΆΠ½ΠΎΡΡΡ Π·Π°Π΄Π°ΡΠΈ - Π΄ΠΎΡΡΠ°ΡΡ Ρ
ΠΎΡΠΎΡΠΈΠ΅ Π΄Π°Π½Π½ΡΠ΅. ΠΡΠ»ΠΈ Ρ
ΠΎΡΠΎΡΠΈΡ
Π΄Π°Π½Π½ΡΡ
Π½Π΅ ΡΠ»ΡΡΠΈΠ»ΠΎΡΡ - ΠΌΠΎΠΆΠ½ΠΎ ΠΈ ΡΡΠ΅ΡΠΎΠ²ΡΠ΅ :) ΠΠ°Π΄Π°Π½ΠΈΠ΅ Π²ΡΡ-ΡΠ°ΠΊΠΈ ΠΏΡΠΎ ΡΠ΅Ρ
Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ Π° Π½Π΅ ΠΏΡΠΎ ΠΏΡΠΎΠ΄ΡΠΊΡ. ΠΠ»Ρ Π½Π°ΡΠ°Π»Π° ΠΌΠΎΠΆΠ½ΠΎ Π²Π·ΡΡΡ ΠΏΠΎΠ΄ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΡΠΈΡΠ΅ΠΉ [ΠΎΡΡΡΠ΄Π°](https://www.kaggle.com/c/job-salary-prediction/data), ΠΊΠΎΡΠΎΡΡΠ΅ Π²Ρ ΠΌΠΎΠΆΠ΅ΡΠ΅ Π²ΠΎΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ ΠΈΠ· ΠΏΡΠΎΡΠΈΠ»Ρ linkedin - Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΈ ΠΈ ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ. ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ Π»ΡΡΡΠ΅ Π·Π°ΠΌΠ΅Π½ΠΈΡΡ Π½Π° ΡΠΈΡΠΈ ΠΈΠ· ΠΎΡΠΊΡΡΡΡΡ
ΠΈΡΡΠΎΡΠ½ΠΈΠΊΠΎΠ²: ΡΡΠ΅ΡΠ° Π΄Π΅ΡΡΠ΅Π»ΡΠ½ΠΎΡΡΠΈ, ΡΠ°Π·ΠΌΠ΅Ρ, Π΅ΡΡ.\n",
" \n",
" Π Π΄Π°Π»ΡΡΠ΅ ΡΠ°ΠΉΠ½ΡΡΠ½ΠΈΠΌ Π½Π° ΡΡΠΎΠΌ BERT / T5 ΠΈ ΡΠ°Π΄ΡΠ΅ΠΌΡΡ. ΠΡ ΠΈΠ»ΠΈ Ρ
ΠΎΡΡ Π±Ρ ΡΠΌΠ΅ΡΠΌΡΡ.\n",
"</details>\n",
"\n",
"\n",
"<details><summary> - <b>[hard]</b> <u>ΠΠ½Π΅Π½ΠΈΡ Ρ Π³Π΅ΠΎΠ³ΡΠ°ΡΠΈΡΠ΅ΡΠΊΠΎΠΉ ΠΎΠΊΡΠ°ΡΠΊΠΎΠΉ.</u></summary>\n",
" \n",
" Π‘Π΅ΡΠ²ΠΈΡ ΠΊΠΎΡΠΎΡΡΠΉ ΠΏΡΠΈΠ½ΠΈΠΌΠ°Π΅Ρ Π½Π° Π²Ρ
ΠΎΠ΄ ΡΠ΅ΠΌΡ (Ρ
ΡΡΡΠ΅Π³ ΠΈΠ»ΠΈ ΠΊΠ»ΡΡΠ΅Π²ΡΡ ΡΡΠ°Π·Ρ) ΠΈ ΡΠΈΡΡΠ΅Ρ ΠΊΠ°ΡΡΡ ΠΌΠΈΡΠ°, Π³Π΄Π΅ Π² ΠΊΠ°ΠΆΠ΄ΠΎΠΌ ΡΠ΅Π³ΠΈΠΎΠ½Π΅ ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ, Ρ ΠΊΠ°ΠΊΠΎΠΉ ΡΠΌΠΎΡΠΈΠΎΠ½Π°Π»ΡΠ½ΠΎΠΉ ΠΎΠΊΡΠ°ΡΠΊΠΎΠΉ ΠΎ Π½Π΅ΠΉ Π²ΡΡΠΊΠ°Π·ΡΠ²Π°ΡΡΡΡ Π² ΡΠΎΡΠΈΠ°Π»ΡΠ½ΡΡ
ΡΠ΅ΡΡΡ
. Π ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅ ΡΠΎΡΠΈΠ°Π»ΡΠ½ΠΎΠΉ ΡΠ΅ΡΠΈ ΠΌΠΎΠΆΠ½ΠΎ Π²Π·ΡΡΡ VK/twitter, Π² ΡΠ»ΡΡΠ°Ρ VK ΠΎΠΆΠΈΠ΄Π°Π΅ΡΡΡ Π΄Π΅ΡΠ°Π»ΠΈΠ·Π°ΡΠΈΡ Π½Π΅ ΠΏΠΎ ΡΡΡΠ°Π½Π°ΠΌ, Π° ΠΏΠΎ Π³ΠΎΡΠΎΠ΄Π°ΠΌ ΡΡΡΠ°Π½ Π±ΡΠ²ΡΠ΅Π³ΠΎ Π‘Π‘Π‘Π .\n",
" \n",
" Π ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡΠ½ΠΎΠΌ Π²Π°ΡΠΈΠ°Π½ΡΠ΅ Π΄ΠΎΡΡΠ°ΡΠΎΡΠ½ΠΎ ΠΎΠΏΡΠ΅Π΄Π΅Π»ΡΡΡ ΡΠΎΠ½Π°Π»ΡΠ½ΠΎΡΡΡ ΡΠ²ΠΈΡΠ° Π² ΡΠ΅ΠΆΠΈΠΌΠ΅ \"ΠΏΠΎΠ·ΠΈΡΠΈΠ²Π½ΠΎ-Π½Π΅Π³Π°ΡΠΈΠ²Π½ΠΎ\", Π·Π°ΡΠ°ΠΉΠ½ΡΡΠ½ΠΈΠ² ΡΡΠ»ΠΎΠ²Π½ΡΠΉ BERT/T5 Π½Π° ΠΎΠ΄Π½ΠΎΠΌ ΠΈΠ· Π΄Π΅ΡΡΡΠΊΠΎΠ² {vk/twitter} sentiment classification Π΄Π°ΡΠ°ΡΠ΅ΡΠ°Ρ
. ΠΠ΅ΠΎΠ³ΡΠ°ΡΠΈΡΠ΅ΡΠΊΡΡ ΠΏΡΠΈΠ²ΡΠ·ΠΊΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ»ΡΡΠΈΡΡ ΠΈΠ· ΠΏΡΠΎΡΠΈΠ»Ρ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ. Π Π΄Π°Π»ΡΡΠ΅ ΠΎΡΡΠ°Π»ΠΎΡΡ ΡΠΎΠ±ΡΠ°ΡΡ Π΄Π°Π½Π½ΡΠ΅ ΠΏΠΎ ΡΡΡΠ°Π½Π°ΠΌ ΠΈ ΡΠ΅Π³ΠΈΠΎΠ½Π°ΠΌ.\n",
"\n",
"</details>\n",
"\n",
"\n",
"<details><summary> - <b>[very hard]</b> <u>ΠΠ°ΠΉΡΠΈ ΡΡΠ°ΡΡΡ Π²ΠΈΠΊΠΈΠΏΠ΅Π΄ΠΈΠΈ ΠΏΠΎ ΡΠΎΡΠΎ ΠΏΡΠ΅Π΄ΠΌΠ΅ΡΠ° ΡΡΠ°ΡΡΠΈ</u></summary>\n",
"\n",
" Π§ΡΠΎΠ±Ρ ΠΌΠΎΠΆΠ½ΠΎ Π±ΡΠ»ΠΎ ΡΡΠΎΡΠ°ΡΡ ΠΊΠ°ΠΊΡΡ-Π½ΠΈΠ±ΡΠ΄Ρ Π½Π΅Π²Π΅Π΄ΠΎΠΌΡΡ ΡΠ΅ΡΡΠΉΠ½Ρ Π½Π° ΡΠ΅Π»Π΅ΡΠΎΠ½ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΡ ΡΡΠΌΠΌΡ ΡΠ΅Π»ΠΎΠ²Π΅ΡΠ΅ΡΠΊΠΈΡ
Π·Π½Π°Π½ΠΈΠΉ ΠΎ Π½Π΅ΠΉ Π² ΡΠΎΡΠΌΠ΅ Π²ΠΈΠΊΠΈ-ΡΡΠ°ΡΡΠΈ.\n",
" \n",
" Π ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅ ΡΡΠ½ΠΊΡΠΈΠΈ ΠΏΠΎΡΠ΅ΡΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ contrastive loss. ΠΡΠΎΡ Π»ΠΎΡΡ Π½Π΅ΠΏΠ»ΠΎΡ
ΠΎ ΠΎΠΏΠΈΡΠ°Π½ Π² ΡΡΠ°ΡΡΠ΅ [CLIP](https://arxiv.org/abs/2103.00020). ΠΠΌΠ΅ΡΡΠΎ ΠΎΠ±ΡΡΠ΅Π½ΠΈΡ Ρ Π½ΡΠ»Ρ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΡΡΡ Π²Π·ΡΡΡ, ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎ, CLIP (text transformer + image transformer) ΠΎΡΡΡΠ΄Π°: https://huggingface.co/docs/transformers/model_doc/clip. ΠΠΎΠ΄Π΅Π»Ρ Π±ΡΠ΄Π΅Ρ ΡΠΎΠΏΠΎΡΡΠ°Π²Π»ΡΡΡ ΠΊΠ°ΠΆΠ΄ΠΎΠΉ ΡΡΠ°ΡΡΠΈ ΠΈ\n",
" \n",
" ΠΠ°Π½Π½ΡΠ΅ Π΄Π»Ρ ΡΡΠΎΠ³ΠΎ ΠΊΠ²Π΅ΡΡΠ° ΠΌΠΎΠΆΠ½ΠΎ ΡΠΎΠ±ΡΠ°ΡΡ ΡΠ΅ΡΠ΅Π· API Π²ΠΈΠΊΠΈΠΏΠ΅Π΄ΠΈΠΈ: Π²ΠΈΠΊΠΈ-ΡΡΠ°ΡΡΠΈ ΠΎ ΠΏΡΠ΅Π΄ΠΌΠ΅ΡΠ°Ρ
ΠΎΠ±ΡΡΠ½ΠΎ ΡΠΎΠ΄Π΅ΡΠΆΠΈΡ ΡΠΎΡΠΎ ΡΡΠΎΠ³ΠΎ ΠΎΠ±ΡΠ΅ΠΊΡΠ° ΠΈ, ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎ, ΡΠ΅ΠΊΡΡ ΡΡΠ°ΡΡΠΈ. Π‘ΠΎΠ²Π΅ΡΡΠ΅ΠΌ ΡΠΎΠ±ΡΠ°ΡΡ ΠΊΠ°ΠΊ ΠΌΠΈΠ½ΠΈΠΌΡΠΌ 10^4 ΠΏΠ°Ρ ΠΊΠ°ΡΡΠΈΠ½ΠΊΠ°-ΡΡΠ°ΡΡΡ. ΠΠ°ΡΡΠΈΠ½ΠΊΠΈ ΡΠΎΠ²Π΅ΡΡΠ΅ΠΌ Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΠΎ Π°ΡΠ³ΠΌΠ΅Π½ΡΠΈΡΠΎΠ²Π°ΡΡ ΠΊΠ°ΠΊ ΠΌΠΈΠ½ΠΈΠΌΡΠΌ ΡΡΠ°Π½Π΄Π°ΡΡΠ½ΡΠΌΠΈ ΠΊΠ°ΡΡΠΈΠ½ΠΎΡΠ½ΡΠΌΠΈ Π°ΡΠ³Π°ΠΌΠΈ, ΠΊΠ°ΠΊ ΠΌΠ°ΠΊΡΠΈΠΌΡΠΌ - ΠΏΠΎΠΈΡΠΊΠΎΠΌ ΠΏΠΎΡ
ΠΎΠΆΠΈΡ
ΠΊΠ°ΡΡΠΈΠ½ΠΎΠΊ Π² ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ΅ / imagenet-Π΅ ΠΏΠΎ ΡΠΎΠΌΡ ΠΆΠ΅ CLIP image encoder-Ρ, Π½ΠΎ Ρ ΠΈΡΡ
ΠΎΠ΄Π½ΡΠΌΠΈ Π²Π΅ΡΠ°ΠΌΠΈ.\n",
" \n",
" ΠΠ° Π²ΡΠ΅ΠΌΡ ΠΎΡΠ»Π°Π΄ΠΊΠΈ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΠ° ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄ΡΠ΅ΠΌ ΠΎΠ³ΡΠ°Π½ΠΈΡΠΈΡΡΡΡ Π½Π΅Π±ΠΎΠ»ΡΡΠΈΠΌ ΡΠΏΠΈΡΠΊΠΎΠΌ ΡΡΠ°ΡΡΠ΅ΠΉ: ΡΡΠ»ΠΎΠ²Π½ΠΎ, ΠΊΠΎΡΠ΅ΡΠΊΠΈ, ΡΠΎΠ±Π°ΡΠΊΠΈ, ΠΏΡΠΈΡΠΊΠΈ, Π³Π°Π΅ΡΠ½ΡΠ΅ ΠΊΠ»ΡΡΠΈ, ΠΌΠ°ΡΠΈΠ½Ρ. ΠΠ°ΠΊ ΡΡΠ°Π½Π΅Ρ ΠΏΠΎΠ½ΡΡΠ½ΠΎ ΡΡΠΎ ΠΎΠ½ΠΎ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ \"Π½Π° ΠΊΠΎΡΠΊΠ°Ρ
\", ΠΌΠΎΠΆΠ½ΠΎ ΡΠ°ΡΡΠΈΡΠΈΡΡ ΡΡΠΎΡ ΡΠΏΠΈΡΠΎΠΊ Π΄ΠΎ \"Π²ΡΠ΅Ρ
ΡΡΠ°ΡΠ΅ΠΉ ΡΠ°ΠΊΠΈΡ
-ΡΠΎ ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΠΉ\". ΠΠΌΠ±Π΅Π΄ΠΈΠ½Π³ΠΈ ΡΡΠ°ΡΠ΅ΠΉ Π»ΡΡΡΠ΅ ΠΏΡΠ΅Π΄ΠΏΠΎΡΡΠΈΡΠ°ΡΡ Π² ΡΠ°ΠΉΠ». ΠΡΠ»ΠΈ Π΄ΠΎΠ»Π³ΠΎ ΠΈΡ
ΠΏΠ΅ΡΠ΅Π±ΠΈΡΠ°ΡΡ - ΠΌΠΎΠΆΠ½ΠΎ (Π½ΠΎ Π½Π΅ΠΎΠ±ΡΠ·Π°ΡΠ΅Π»ΡΠ½ΠΎ) Π²ΠΎΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡΡΡ Π±ΡΡΡΡΡΠΌ ΠΏΠΎΠΈΡΠΊΠΎΠΌ ΡΠΎΡΠ΅Π΄Π΅ΠΉ, e.g. [faiss](https://github.com/facebookresearch/faiss) HNSW.\n",
"</details>\n",
"\n",
"\n",
"## __ΠΠ°ΠΊ Π½Π°ΡΡΠΈΡΡ ΠΊΠ»Π°ΡΡΠΈΡΠΈΠΊΠ°ΡΠΎΡ ΡΡΠ°ΡΠ΅ΠΉ?__\n",
"\n",
"ΠΠ°Π½Π½ΡΠ΅ Π΄Π»Ρ ΠΊΠ»Π°ΡΡΠΈΡΠΈΠΊΠ°ΡΠΈΠΈ ΡΡΠ°ΡΠ΅ΠΉ ΠΌΠΎΠΆΠ½ΠΎ ΡΠΊΠ°ΡΠ°ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ, [ΠΎΡΡΡΠ΄Π°](https://www.kaggle.com/neelshah18/arxivdataset/). Π ΡΡΠΈΡ
Π΄Π°Π½Π½ΡΡ
Π΅ΡΡΡ Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ ΠΈ abstract ΡΡΠ°ΡΡΠΈ, Π° Π΅ΡΡ ΠΏΠΎΠ»Π΅ __\"tag\"__: ΡΠ΅ΠΌΠ°ΡΠΈΠΊΠ° ΡΡΠ°ΡΡΠΈ [ΠΏΠΎ ΡΠ°ΠΊΡΠΎΠ½ΠΎΠΌΠΈΠΈ arxiv.org](https://arxiv.org/category_taxonomy). ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΠ°ΡΡΠΈΡΠΈΡΡ Π²ΡΠ±ΠΎΡΠΊΡ, Π΄ΠΎΠ±Π°Π²ΠΈΠ² Π² Π½Π΅Ρ ΡΡΠ°ΡΡΠΈ Π·Π° 2019-Π½.Π². Π³ΠΎΠ΄Ρ. ΠΠ»Ρ ΡΡΠΎΠ³ΠΎ ΠΌΠΎΠΆΠ½ΠΎ [ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ arxiv API](https://github.com/lukasschwab/arxiv.py), ΡΠ°ΠΌΠΎΡΡΠΎΡΡΠ΅Π»ΡΠ½ΠΎ ΡΠ°ΡΠΏΠ°ΡΡΠΈΡΡ arxiv Ρ ΠΏΠΎΠΌΠΎΡΡΡ [beautifulsoup](https://pypi.org/project/beautifulsoup4/), ΠΈΠ»ΠΈ ΠΏΠΎΠΈΡΠΊΠ°ΡΡ Π΄ΡΡΠ³ΠΈΠ΅ Π΄Π°ΡΠ°ΡΠ΅ΡΡ Π½Π° kaggle, huggingface, etc.\n",
"\n",
"ΠΠΎΠ³Π΄Π° Π΄Π°Π½Π½ΡΠ΅ ΡΠΎΠ±ΡΠ°Π½Ρ (ΠΈ Π°ΠΊΠΊΡΡΠ°ΡΠ½ΠΎ Π½Π°ΡΠ΅Π·Π°Π½Ρ Π½Π° train/test), ΠΌΠΎΠΆΠ½ΠΎ ΡΡΠΎ-Π½ΠΈΠ±ΡΠ΄Ρ ΠΈ ΠΎΠ±ΡΡΠΈΡΡ. ΠΡ ΡΠΎΠ²Π΅ΡΡΠ΅ΠΌ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ Π΄Π»Ρ ΡΡΠΎΠ³ΠΎ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΡ `transformers`. Π‘ΠΎΠ²Π΅ΡΡΠ΅ΠΌ, Π½ΠΎ Π½Π΅ Π·Π°ΡΡΠ°Π²Π»ΡΠ΅ΠΌ: Π΅ΡΠ»ΠΈ Ρ
ΠΎΡΠ΅ΡΡΡ, ΠΌΠΎΠΆΠ½ΠΎ Π²Π·ΡΡΡ [fairseq roberta](https://github.com/pytorch/fairseq/blob/main/examples/roberta), [google t5](https://github.com/google-research/text-to-text-transfer-transformer) ΠΈΠ»ΠΈ Π΄Π°ΠΆΠ΅ Π½Π°ΠΏΠΈΡΠ°ΡΡ Π²ΡΡ Ρ Π½ΡΠ»Ρ.\n",
"\n",
"ΠΡ ΡΠ°Π·Π±ΠΈΡΠ°Π»ΠΈ transformers Π½Π° [ΡΠ΅ΠΌΠΈΠ½Π°ΡΠ΅](https://lk.yandexdataschool.ru/courses/2025-spring/7.1332-machine-learning-2/classes/13138/), Π·Π° Π»ΡΠ±ΠΎΠΉ Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΠΎΠΉ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ΅ΠΉ - ΡΠΌΠΎΡΡΠΈΡΠ΅ [Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΠΈ HF](https://huggingface.co/docs).\n",
"\n",
"ΠΠ°ΡΠ°ΡΡ Π»ΡΡΡΠ΅ Ρ ΠΏΡΠΎΡΡΠΎΠΉ ΠΌΠΎΠ΄Π΅Π»ΠΈ, ΡΠ°ΠΊΠΎΠΉ ΠΊΠ°ΠΊ [`distilbert-base-cased`](https://huggingface.co/distilbert-base-cased). ΠΠΎΠ³Π΄Π° Π²Ρ Π±ΡΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ½ΠΈΠΌΠ°ΡΡ, ΠΊΠ°ΠΊΠΈΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ accuracy ΠΎΠΆΠΈΠ΄Π°ΡΡ ΠΎΡ Π±Π°Π·ΠΎΠ²ΠΎΠΉ ΠΌΠΎΠ΄Π΅Π»ΠΈ, ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠΈΡΠΊΠ°ΡΡ ΡΡΠΎ-ΡΠΎ ΠΏΠΎΠ»ΡΡΡΠ΅. ΠΠ²Π° ΠΎΡΠ΅Π²ΠΈΠ΄Π½ΡΡ
Π½Π°ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΡ ΡΠ»ΡΡΡΠ΅Π½ΠΈΡ: (1) ΡΠΈΠ»ΡΠ½Π΅Π΅ ΠΌΠΎΠ΄Π΅Π»Ρ T5 ΠΈΠ»ΠΈ deberta v3, ΠΈΠ»ΠΈ (2) Π±Π»ΠΈΠ·ΠΊΠΈΠ΅ Π΄Π°Π½Π½ΡΠ΅, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ Π²Π·ΡΡΡ ΠΌΠΎΠ΄Π΅Π»Ρ ΠΊΠΎΡΠΎΡΡΡ ΠΏΡΠ΅Π΄ΠΎΠ±ΡΡΠΈΠ»ΠΈ Π½Π° ΡΠΎΠΌ ΠΆΠ΅ arxiv. Π ΡΠΎ ΠΈ Π΄ΡΡΠ³ΠΎΠ΅ ΡΠ΄ΠΎΠ±Π½ΠΎ [ΠΈΡΠΊΠ°ΡΡ Π·Π΄Π΅ΡΡ](https://huggingface.co/models).\n",
"\n",
"## __ΠΠ°ΡΡΠΈΠ»ΠΈ, ΠΈ ΡΡΠΎ ΡΠ΅ΠΏΠ΅ΡΡ?__\n",
"\n",
"Π ΡΠ΅ΠΏΠ΅ΡΡ Π½ΡΠΆΠ½ΠΎ ΡΠ΄Π΅Π»Π°ΡΡ ΡΠ°ΠΊ, ΡΡΠΎΠ±Ρ Π²Π°ΡΠ° ΠΎΠ±ΡΡΠ΅Π½Π½Π°Ρ ΠΌΠΎΠ΄Π΅Π»Ρ ΠΎΡΠ²Π΅ΡΠ°Π»Π° Π½Π° Π·Π°ΠΏΡΠΎΡΡ Π² ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ΅. ΠΠ°ΠΊ ΠΈ Π½Π° ΠΏΡΠΎΡΠ»ΠΎΠΌ ΡΡΠ°ΠΏΠ΅, Π²Ρ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΠ΄Π΅Π»Π°ΡΡ ΡΡΠΎ ΠΊΡΡΠ΅ΠΉ ΡΠ°Π·Π½ΡΡ
ΡΠΏΠΎΡΠΎΠ±ΠΎΠ²: ΠΎΡ ΠΏΡΠΎΡΡΠΎΠ³ΠΎ [streamlit](https://streamlit.io/) / [gradio](https://gradio.app/), ΠΌΠΈΠ½ΡΡ [TorchServe](https://pytorch.org/serve/) Ρ [Triton/TensorRT](https://developer.nvidia.com/nvidia-triton-inference-server), ΠΈ Π·Π°ΠΊΠ°Π½ΡΠΈΠ²Π°Ρ ΡΠΊΡΠΏΠΎΡΡΠΎΠΌ ΠΌΠΎΠ΄Π΅Π»ΠΈ Π² javascript Ρ ΠΏΠΎΠΌΠΎΡΡΡ [TensorFlow.js](https://www.tensorflow.org/js/tutorials) / [ONNX.js](https://github.com/elliotwaite/pytorch-to-javascript-with-onnx-js).\n",
"\n",
"ΠΠ° [ΡΠ΅ΠΌΠΈΠ½Π°ΡΠ΅](https://lk.yandexdataschool.ru/courses/2025-spring/7.1332-machine-learning-2/classes/13138/) ΠΌΡ ΡΠ°Π·Π±ΠΈΡΠ°Π»ΠΈ ΠΎΡΠ½ΠΎΠ²Π½ΡΠ΅ Π²Π΅ΡΠΈ ΠΏΡΠΎ ΡΠΎ ΠΊΠ°ΠΊ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ streamlit ΠΈ ΠΊΠ°ΠΊ ΡΠ΄Π΅Π»Π°ΡΡ ΠΏΡΠΎΡΡΠΎΠ΅ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Ρ Π΅Π³ΠΎ ΠΏΠΎΠΌΠΎΡΡΡ.\n",
"\n",
"ΠΠ±ΡΠ°Ρ ΠΈΠ΄Π΅Ρ streamlit: Π²Ρ [ΠΎΠΏΠΈΡΡΠ²Π°Π΅ΡΠ΅](https://docs.streamlit.io/library/get-started/create-an-app) Π²Π½Π΅ΡΠ½ΠΈΠΉ Π²ΠΈΠ΄ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ Π½Π° ΠΏΠΈΡΠΎΠ½Π΅ Ρ ΠΏΠΎΠΌΠΎΡΡΡ ΠΏΡΠΈΠΌΠΈΡΠΈΠ²ΠΎΠ² (ΠΊΠ½ΠΎΠΏΠΊΠΈ, ΠΏΠΎΠ»Ρ, Π»ΡΠ±ΠΎΠΉ html) -- Π° ΠΏΠΎΡΠΎΠΌ ΡΡΠΎΡ ΠΊΠΎΠ΄ Π²ΡΠΏΠΎΠ»Π½ΡΠ΅ΡΡΡ Π½Π° ΡΠ΅ΡΠ²Π΅ΡΠ΅ ΠΈ ΠΎΠ±ΡΠ»ΡΠΆΠΈΠ²Π°Π΅Ρ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ Π² ΠΎΡΠ΄Π΅Π»ΡΠ½ΠΎΠΌ ΠΏΡΠΎΡΠ΅ΡΡΠ΅.\n",
"\n",
"__ΠΠ»Ρ ΠΎΡΠ»Π°Π΄ΠΊΠΈ__ ΠΌΠΎΠΆΠ½ΠΎ Π·Π°ΠΏΡΡΡΠΈΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Π»ΠΎΠΊΠ°Π»ΡΠ½ΠΎ, ΠΎΡΠΊΡΡΠ² ΠΊΠΎΠ½ΡΠΎΠ»Ρ ΡΡΠ΄ΠΎΠΌ Ρ app.py:\n",
"* `pip install streamlit`\n",
"* `streamlit run app.py --server.port 8080`\n",
"* ΠΎΡΠΊΡΡΡΡ Π² Π±ΡΠ°ΡΠ·Π΅ΡΠ΅ localhost:8080, Π΅ΡΠ»ΠΈ ΠΎΠ½ Π½Π΅ ΠΎΡΠΊΡΡΠ»ΡΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ\n",
"\n",
"\n",
"## __Deployment time!__\n",
"\n",
"Π ΡΡΠΎΡ ΡΠ°Π· Π²Π°ΠΌ Π½ΡΠΆΠ½ΠΎ Π½Π΅ ΠΏΡΠΎΡΡΠΎ Π½Π°ΠΏΠΈΡΠ°ΡΡ ΠΊΠΎΠ΄, __Π½ΠΎ ΠΈ ΠΏΠΎΠ΄Π½ΡΡΡ Π²Π°ΡΠ΅ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Ρ Π΄ΠΎΡΡΡΠΏΠΎΠΌ ΠΈΠ· ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ°__. Π Π΄Π°, Π²Ρ ΡΠ³Π°Π΄Π°Π»ΠΈ, ΡΡΠΎ ΠΌΠΎΠΆΠ½ΠΎ ΡΠ΄Π΅Π»Π°ΡΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΠΌΠΈ ΡΠΏΠΎΡΠΎΠ±Π°ΠΌΠΈ: [HuggingFace spaces](https://huggingface.co/spaces) (Π΄Π°Π½Π½ΡΠΉ ΡΠΏΠΎΡΠΎΠ± ΡΠ°Π·Π±ΠΈΡΠ°Π»ΠΈ Π½Π° [ΡΠ΅ΠΌΠΈΠ½Π°ΡΠ΅](https://lk.yandexdataschool.ru/courses/2025-spring/7.1332-machine-learning-2/classes/13138/)), [Streamlit Cloud](https://streamlit.io/cloud), Π° Π΅ΡΡ Π²Ρ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΊΡΠΏΠΈΡΡ ΠΈΠ»ΠΈ Π°ΡΠ΅Π½Π΄ΠΎΠ²Π°ΡΡ ΡΠ²ΠΎΠΉ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠΉ ΡΠ΅ΡΠ²Π΅Ρ ΠΈ Π·Π°Ρ
ΠΎΡΡΠΈΡΡΡΡ ΡΠ°ΠΌ.\n",
"\n",
"ΠΡΠΎΡΠ΅ Π²ΡΠ΅Π³ΠΎ Π·Π°Ρ
ΠΎΡΡΠΈΡΡ Π½Π° HF spaces, Π΄Π»Ρ ΡΡΠΎΠ³ΠΎ Π²Π°ΠΌ Π½ΡΠΆΠ½ΠΎ [Π·Π°ΡΠ΅Π³ΠΈΡΡΡΠΈΡΠΎΠ²Π°ΡΡΡΡ](https://huggingface.co/join) ΠΈ Π½Π°ΠΉΡΠΈ [ΠΌΠ΅Π½Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ Π½ΠΎΠ²ΠΎΠ³ΠΎ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ](https://huggingface.co/new-space). ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΠΈ Π»ΠΈΡΠ΅Π½Π·ΠΈΡ ΠΌΠΎΠΆΠ½ΠΎ Π²ΡΠ±ΡΠ°ΡΡ Π½Π° ΡΠ²ΠΎΡ ΡΡΠΌΠΎΡΡΠ΅Π½ΠΈΠ΅, Π³Π»Π°Π²Π½ΠΎΠ΅ ΡΡΠΎΠ±Ρ Space SDK Π±ΡΠ» Streamlit, Π° Π΄ΠΎΡΡΡΠΏ - public.\n",
"\n",
"ΠΠ°ΠΊ ΡΠΎΠ·Π΄Π°Π»ΠΈ - ΠΌΠΎΠΆΠ½ΠΎ ΡΠ΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ Π²Π°ΡΠ΅ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ ΠΏΡΡΠΌΠΎ Π½Π° ΡΠ°ΠΉΡΠ΅, Π΄Π»Ρ ΡΡΠΎΠ³ΠΎ ΠΎΡΠΊΡΠΎΠΉΡΠ΅ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ ΠΈ ΠΏΠ΅ΡΠ΅ΠΉΠ΄ΠΈΡΠ΅ Π² Files and versions, ΠΈ ΡΠ°ΠΌ Π² ΠΏΡΠ°Π²ΠΎΠΌ ΡΠ³Π»Ρ Π΄ΠΎΠ±Π°Π²ΡΡΠ΅ Π½ΡΠΆΠ½ΡΠ΅ ΡΠ°ΠΉΠ»Ρ.\n",
"\n",
"ΠΠ° ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΠΊΠ°Ρ
Π²Π°ΠΌ ΠΏΠΎΡΡΠ΅Π±ΡΠ΅ΡΡΡ 2 ΡΠ°ΠΉΠ»Π°:\n",
"- `app.py`, ΠΎ ΠΊΠΎΡΠΎΡΠΎΠΌ ΠΌΡ Π³ΠΎΠ²ΠΎΡΠΈΠ»ΠΈ Π²ΡΡΠ΅\n",
"- `requirements.txt`, Π³Π΄Π΅ Π²Ρ ΡΠΊΠ°ΠΆΠ΅ΡΠ΅ Π½ΡΠΆΠ½ΡΠ΅ Π²Π°ΠΌ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠΈ\n",
"\n",
"ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΠ°Π·ΠΌΠ΅ΡΡΠΈΡΡ ΡΠ°ΠΌ ΠΆΠ΅ Π²Π΅ΡΠ° Π²Π°ΡΠ΅ΠΉ ΠΎΠ±ΡΡΠ΅Π½Π½ΠΎΠΉ ΠΌΠΎΠ΄Π΅Π»ΠΈ, Π»ΡΠ±ΡΠ΅ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΡΠ΅ Π΄Π°Π½Π½ΡΠ΅, Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΡΠ΅ ΡΠ°ΠΉΠ»Ρ, ...\n",
"\n",
"ΠΠΎΡΠ»Π΅ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡ ΡΠ°ΠΉΠ»ΠΎΠ², Π²Π°ΡΠ΅ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ ΡΠΎΠ±Π΅ΡΡΡΡΡ (ΠΎΠ±ΡΡΠ½ΠΎ 1-5 ΠΌΠΈΠ½ΡΡ) ΠΈ Π±ΡΠ΄Π΅Ρ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ ΡΠΆΠ΅ Π²ΠΎ Π²ΠΊΠ»Π°Π΄ΠΊΠ΅ App. ΠΡ ΠΈΠ»ΠΈ Π½Π΅ ΡΠΎΠ±Π΅ΡΡΡΡΡ ΠΈ ΠΏΠΎΠΊΠ°ΠΆΠ΅Ρ Π²Π°ΠΌ, Π³Π΄Π΅ ΠΎΠ½ΠΎ ΡΠ»ΠΎΠΌΠ°Π»ΠΎΡΡ. Π Π²ΡΠ°Π»Ρ, ΡΠ΅ΠΏΠ΅ΡΡ Ρ Π²Π°Ρ Π΅ΡΡΡ ΡΡΡΠ»ΠΊΠ°, ΠΊΠΎΡΠΎΡΡΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠΊΠ°Π·Π°ΡΡ ~Π΄ΡΡΠ·ΡΡΠΌ~ Π°ΡΡΠΈΡΡΠ΅Π½ΡΠ°ΠΌ ΠΊΡΡΡΠ° ΠΈ ΠΊΠΎΠΌΡ ΡΠ³ΠΎΠ΄Π½ΠΎ Π² ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ΅.\n",
"\n",
"__Π£Π΄ΠΎΠ±Π½Π°Ρ ΡΠ°Π±ΠΎΡΠ° Ρ ΠΊΠΎΠ΄ΠΎΠΌ.__ ΠΠΎΠΊΠ° Ρ Π²Π°Ρ 2 ΡΠ°ΠΉΠ»Π°, ΠΈΡ
Π»Π΅Π³ΠΊΠΎ ΡΠ΅Π΄Π°ΠΊΡΠΈΠ²ΡΠΎΠ²Π°ΡΡ ΠΏΡΡΠΌΠΎ Π² ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΠ΅ HF spaces. ΠΡΠ»ΠΈ ΠΆΠ΅ Ρ Π²Π°Ρ Π΄ΡΠΆΠΈΠ½Π° ΡΠ°ΠΉΠ»ΠΎΠ², Π²Π°ΠΌ ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ ΡΠ΄ΠΎΠ±Π½Π΅Π΅ ΡΠ΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ ΠΈΡ
Π² Π»ΡΠ±ΠΈΠΌΠΎΠΌ vscode/pycharm/.../emacs. Π§ΡΠΎΠ±Ρ ΡΡΠΎ Π½Π΅ Π²ΡΠ·ΡΠ²Π°Π»ΠΎ ΠΌΡΡΠ΅Π½ΠΈΠΉ, ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡΡΡ HF spaces ΠΊΠ°ΠΊ git ΡΠ΅ΠΏΠΎΠ·ΠΈΡΠΎΡΠΈΠ΅ΠΌ ([ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΠΎΡΡΠΈ ΡΡΡ](https://huggingface.co/docs/hub/spaces#manage-app-with-github-actions)).\n",
"\n",
"## __Π§ΡΠΎ Π½ΡΠΆΠ½ΠΎ ΡΠ΄Π°ΡΡ__\n",
"\n",
"ΠΡ ΡΠ΄Π°ΡΡΠ΅ ΠΏΡΠΎΠ΅ΠΊΡ, ΠΊΠΎΡΠΎΡΡΠΉ Π±ΡΠ΄Π΅Ρ ΠΏΡΠΎΠ²Π΅ΡΡΡΡΡΡ Π²ΡΡΡΠ½ΡΡ, ΡΠΎ ΡΡΠΎ ΠΎΠΆΠΈΠ΄Π°Π΅ΡΡΡ ΠΎΡ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΏΡΠΎΠ΅ΠΊΡΠ°:\n",
"- Π’Π΅ΠΊΡΡΠΎΠ²ΠΎΠ΅ ΡΠΎΠΏΡΠΎΠ²ΠΎΠΆΠ΄Π΅Π½ΠΈΠ΅ Π²Π°ΡΠ΅Π³ΠΎ ΠΊΠΎΠ½ΠΊΡΠ΅ΡΠ½ΠΎΠ³ΠΎ ΠΏΡΠΎΠ΅ΠΊΡΠ° Π² Π»ΡΠ±ΠΎΠΌ ΡΠ΄ΠΎΠ±Π½ΠΎ ΡΠΈΡΠ°Π΅ΠΌΠΎΠΌ ΡΠΎΡΠΌΠ°ΡΠ΅ (pdf, html, ΡΠ΅ΠΊΡΡ Π² lk, ...) - ΡΡΠΎ Π·Π° Π·Π°Π΄Π°ΡΡ Π²Ρ ΡΠ΅ΡΠ°Π»ΠΈ, Π³Π΄Π΅/ΠΊΠ°ΠΊ Π±ΡΠ°Π»ΠΈ Π΄Π°Π½Π½ΡΠ΅, ΠΊΠ°ΠΊΠΈΠ΅ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π»ΠΈ ΠΌΠΎΠ΄Π΅Π»ΠΈ, ΠΊΠ°ΠΊΠΈΠ΅ ΠΏΡΠΎΠ²ΠΎΠ΄ΠΈΠ»ΠΈ ΡΠΊΡΠΏΠ΅ΡΠΈΠΌΠ΅Π½ΡΡ, ...\n",
"- Π‘ΡΡΠ»ΠΊΠ° Π½Π° Π²Π΅Π± ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ, Π³Π΄Π΅ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠΈΡΠΎΠ²Π°ΡΡ Π΄Π΅ΠΌΠΎ Π²Π°ΡΠ΅Π³ΠΎ ΠΏΡΠΎΠ΅ΠΊΡΠ° - ΠΎΠ±ΡΠ·Π°ΡΠ΅Π»ΡΠ½ΠΎ ΠΏΡΠΎΠ²Π΅ΡΡΠΉΡΠ΅ ΡΡΠΎ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ Ρ Π²Π°Ρ (Ρ Π΄ΡΡΠ³ΠΎΠ³ΠΎ ΡΡΡΡΠΎΠΉΡΡΠ²Π° ΠΈ ΠΈΠ· ΠΏΠΎΠ΄ incognito ΡΠ΅ΠΆΠΈΠΌΠ°)\n",
"- ΠΠΎΠ΄ ΠΎΠ±ΡΡΠ΅Π½ΠΈΡ Π²Π°ΡΠ΅ΠΉ ΠΌΠΎΠ΄Π΅Π»ΠΈ (ΠΆΠ΅Π»Π°ΡΠ΅Π»ΡΠ½ΠΎ ipynb Ρ Π·Π°ΠΏΠΎΠ»Π½Π΅Π½Π½ΡΠΌΠΈ ΡΡΠ΅ΠΉΠΊΠ°ΠΌΠΈ ΠΈ Π½Π΅ ΡΡΡΡΡΡΠΌΠΈ Π²ΡΡ
ΠΎΠ΄Π°ΠΌΠΈ, ΠΏΠ΅ΡΠ΅Π²Π΅Π΄ΡΠ½Π½ΡΠΉ Π² pdf / html), Π½ΠΎ Π΅ΡΠ»ΠΈ Π²Ρ ΠΎΠ±ΡΡΠ°Π»ΠΈ Π½Π΅ Π² Π½ΠΎΡΡΠ±ΡΠΊΠ΅, ΡΠΎ ΡΠ΄Π°Π²Π°ΠΉΡΠ΅ ΠΊΠΎΠ΄ Π² Π²ΠΈΠ΄Π΅ ΡΠ°ΠΉΠ»Π° / Π°ΡΡ
ΠΈΠ²Π° ΡΠ°ΠΉΠ»ΠΎΠ² / git ΡΡΡΠ»ΠΊΠΈ Ρ readme.md ΠΎΠΏΠΈΡΠ°Π½ΠΈΠ΅ΠΌ ΡΠΎΠ³ΠΎ ΠΊΠ°ΠΊ ΠΈΠΌΠ΅Π½Π½ΠΎ ΠΏΡΠΎΡ
ΠΎΠ΄ΠΈΠ»ΠΎ ΠΎΠ±ΡΡΠ΅Π½ΠΈΠ΅ Ρ ΠΏΠΎΠΌΠΎΡΡΡ ΡΡΠΎΠ³ΠΎ ΠΊΠΎΠ΄Π°.\n",
"\n",
"## __ΠΡΠ΅Π½ΠΊΠ°__\n",
"\n",
"ΠΡ Π±ΡΠ΄Π΅ΠΌ ΠΎΡΠ΅Π½ΠΈΠ²Π°ΡΡ ΠΏΡΠΎΠ΅ΠΊΡ ΡΠ΅Π»ΠΈΠΊΠΎΠΌ, Π²ΠΊΠ»ΡΡΠ°Ρ ΠΈΠ΄Π΅Ρ ΠΈ ΡΠ΅Π°Π»ΠΈΠ·Π°ΡΠΈΡ. ΠΠ°ΠΊΡΠΈΠΌΡΠΌ Π·Π° ΠΏΡΠΎΠ΅ΠΊΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ»ΡΡΠΈΡΡ 10 Π±Π°Π»Π»ΠΎΠ², Π½ΠΎ ΠΌΡ ΠΎΡΡΠ°Π²Π»ΡΠ΅ΠΌ Π΅ΡΡ Π΄ΠΎ 5 Π±Π°Π»Π»ΠΎΠ², ΠΊΠΎΡΠΎΡΡΠ΅ ΠΌΠΎΠΆΠ΅ΠΌ Π²ΡΠ΄Π°ΡΡ ΠΊΠ°ΠΊ Π±ΠΎΠ½ΡΡΠ½ΡΠ΅ Π·Π° ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΠΈ ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅Π½Π½ΠΎ ΡΠ΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Π½Π½ΡΠ΅ ΠΏΡΠΎΠ΅ΠΊΡΡ.\n",
"\n",
"### __Π’ΠΎΠ½ΠΊΠΈΠ΅ ΠΌΠ΅ΡΡΠ°, Π·Π° ΠΊΠΎΡΠΎΡΡΠ΅ ΠΌΠΎΠ³ΡΡ Π±ΡΡΡ ΡΠ½ΠΈΠΆΠ΅Π½ΠΈΡ Π±Π°Π»Π»ΠΎΠ²:__\n",
"\n",
"__1. Π‘ΠΊΠΎΡΠΎΡΡΡ ΡΠ°Π±ΠΎΡΡ.__\n",
"\n",
"ΠΠΎ ΡΠΌΠΎΠ»ΡΠ°Π½ΠΈΡ, streamlit Π±ΡΠ΄Π΅Ρ Π²ΡΠΏΠΎΠ»Π½ΡΠ΅Ρ Π²Π΅ΡΡ Π²Π°Ρ ΠΊΠΎΠ΄ Π½Π° ΠΊΠ°ΠΆΠ΄ΠΎΠ΅ Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ. Π’ΠΎ Π΅ΡΡΡ Π²ΡΡΠΊΠΈΠΉ ΡΠ°Π·, ΠΊΠΎΠ³Π΄Π° ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ ΠΌΠ΅Π½ΡΠ΅Ρ ΡΡΠΎ-ΡΠΎ Π² ΡΠ΅ΠΊΡΡΠ΅, ΠΎΠ½ΠΎ Π±ΡΠ΄Π΅Ρ Π·Π°Π½ΠΎΠ²ΠΎ Π·Π°Π³ΡΡΠΆΠ°ΡΡ ΠΌΠΎΠ΄Π΅Π»Ρ. Π§ΡΠΎΠ±Ρ ΠΈΡΠΏΡΠ°Π²ΠΈΡΡ ΡΡΠΎ Π±Π΅Π·ΠΎΠ±ΡΠ°Π·ΠΈΠ΅, Π²Ρ ΠΌΠΎΠΆΠ΅ΡΠ΅ Π·Π°ΠΊΡΡΠΈΡΠΎΠ²Π°ΡΡ ΠΏΠΎΠ΄Π³ΠΎΡΠΎΠ²Π»Π΅Π½Π½ΡΡ ΠΌΠΎΠ΄Π΅Π»Ρ Π² `@st.cache`. ΠΠΎΠ΄ΡΠΎΠ±Π½ΠΎΡΡΠΈ Π² [ΡΠ΅ΠΌΠΈΠ½Π°ΡΠ΅](https://lk.yandexdataschool.ru/courses/2025-spring/7.1332-machine-learning-2/classes/13138/), Π° ΡΠ°ΠΊΠΆΠ΅ [ΡΠΈΡΠ°ΠΉΡΠ΅ ΡΡΡ](https://docs.streamlit.io/library/advanced-features/caching).\n",
"\n",
"__ΠΠ°ΠΊ Π±ΡΠ΄Π΅Ρ ΠΎΡΠ΅Π½ΠΈΠ²Π°ΡΡΡΡ:__\n",
"\n",
"ΠΡ Π½Π΅ ΠΎΠ±ΡΠ·Π°Π½Ρ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡΡΡ ΠΊΡΡΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ, Π½ΠΎ Π²Π°ΡΠ΅ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Π½Π΅ Π΄ΠΎΠ»ΠΆΠ½ΠΎ Π½Π΅ΠΎΠΏΡΠ°Π²Π΄Π°Π½ΠΎ ΡΠΎΡΠΌΠΎΠ·ΠΈΡΡ Π΄ΠΎΠ»ΡΡΠ΅, ΡΠ΅ΠΌ Π½Π° 3 ΡΠ΅ΠΊΡΠ½Π΄Ρ. \"ΠΠΏΡΠ°Π²Π΄Π°Π½ΡΠ΅\" ΡΠΎΡΠΌΠΎΠ·Π° ΡΡΠΎ ΡΠ΅, ΠΊΠΎΡΠΎΡΡΠ΅ Π²Ρ ΡΠ²Π½ΠΎ ΠΎΠΏΡΠ°Π²Π΄Π°Π»ΠΈ ΡΠ΅ΠΊΡΡΠΎΠΌ Π² ΠΠΠ‘ :)\n",
"\n",
"-----\n",
"\n",
"__2. ΠΠΎΠ½ΡΡΠ½ΡΠΉ ΡΡΠΎΠ½ΡΠ΅Π½Π΄.__\n",
"\n",
"ΠΠ°ΠΊΠΎΠ»Π΅Π½ΠΎΡΠ½ΡΠΉ Π³ΡΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΠΉ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ Ρ ΡΠ΅ΠΌΠΈΠ½Π°ΡΠ° - ΠΏΡΠΈΠΌΠ΅Ρ ΡΠΎΠ³ΠΎ, ΠΊΠ°ΠΊ ΡΠΊΠΎΡΠ΅Π΅ Π½Π΅ Π½Π°Π΄ΠΎ Π΄Π΅Π»Π°ΡΡ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ. ΠΠ°ΠΊ Π½Π°Π΄ΠΎ - ΡΠ»ΠΎΠΆΠ½ΡΠΉ Π²ΠΎΠΏΡΠΎΡ, ΠΏΡΠΈΡΡΠΌ Π½Π°ΡΡΠΎΠ»ΡΠΊΠΎ ΡΠ»ΠΎΠΆΠ½ΡΠΉ, ΡΡΠΎ Π΅ΡΡΡ Π΄Π°ΠΆΠ΅ [Π¨ΠΊΠΎΠ»Π° Π Π°Π·ΡΠ°Π±ΠΎΡΠΊΠΈ ΠΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΠΎΠ²](https://academy.yandex.ru/schools/frontend). ΠΠΎ Π΄Π»Ρ Π½Π°ΡΠ°Π»Π°:\n",
"\n",
"- ΠΡΠ²ΠΎΠ΄ΠΈΡΡ Π½ΡΠΆΠ½ΠΎ ΡΠ΅Π»ΠΎΠ²Π΅ΠΊΠΎΡΠΈΡΠ°Π΅ΠΌΡΠΉ ΡΠ΅ΠΊΡΡ, Π° Π½Π΅ ΠΏΡΠΎΡΡΠΎ JSON Ρ ΠΈΠ½Π΄Π΅ΠΊΡΠ°ΠΌΠΈ ΠΈ ΠΌΠ΅ΡΠ°Π΄Π°Π½Π½ΡΠΌΠΈ.\n",
"- ΠΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ Π΄ΠΎΠ»ΠΆΠ½ΠΎ Π±ΡΡΡ ΠΏΠΎΠ½ΡΡΠ½ΠΎ, ΠΊΡΠ΄Π° ΠΈ ΠΊΠ°ΠΊΠΈΠ΅ Π΄Π°Π½Π½ΡΠ΅ Π²Π²ΠΎΠ΄ΠΈΡΡ. ΠΡΡΡΡΠ΅ ΡΠ΅ΠΊΡΡΠΎΠ²ΡΠ΅ ΠΏΠΎΠ»Ρ Π² Π²Π°ΠΊΡΡΠΌΠ΅ - ΠΏΠ»ΠΎΡ
ΠΎΠΉ ΡΠΎΠ½.\n",
"- Π‘Π΅ΡΠ²ΠΈΡ Π½Π΅ Π΄ΠΎΠ»ΠΆΠ΅Π½ ΠΏΠ°Π΄Π°ΡΡ Ρ Π½Π΅_ΠΎΡΠ»ΠΎΠ²Π»Π΅Π½Π½ΡΠΌΠΈ ΠΎΡΠΈΠ±ΠΊΠ°ΠΌΠΈ. ΠΠ°ΠΆΠ΅ Π΅ΡΠ»ΠΈ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ Π²Π²Π΅Π΄ΡΡ Π½Π΅ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅/ΠΏΡΡΡΡΠ΅ Π΄Π°Π½Π½ΡΠ΅, Π½ΡΠΆΠ½ΠΎ ΡΡΠΎ ΠΎΠ±ΡΠ°Π±ΠΎΡΠ°ΡΡ ΠΈ Π½Π°ΠΏΠΈΡΠ°ΡΡ, Π³Π΄Π΅ ΠΏΡΠΎΠΈΠ·ΠΎΡΠ»Π° ΠΎΡΠΈΠ±ΠΊΠ°.\n",
"\n",
"__ΠΠ°ΠΊ Π±ΡΠ΄Π΅Ρ ΠΎΡΠ΅Π½ΠΈΠ²Π°ΡΡΡΡ:__\n",
"\n",
"ΠΠ»Ρ ΠΏΠΎΠ»Π½ΠΎΠ³ΠΎ Π±Π°Π»Π»Π° Π΄ΠΎΡΡΠ°ΡΠΎΡΠ½ΠΎ ΡΠΎΠ±Π»ΡΡΡΠΈ ΡΡΠΈ ΡΡΠΈ ΠΏΡΠ°Π²ΠΈΠ»Π° ΠΈ ΡΠΏΠ΅ΡΠΈΠ°Π»ΡΠ½ΠΎ Π½Π΅ ΡΡΡΠ΅Π»ΡΡΡ ΡΠ΅Π±Π΅ Π² Π½ΠΎΠ³Ρ.\n",
"\n",
"-----\n",
"\n",
"__3. ΠΠΎΠ΄ ΠΎΠ±ΡΡΠ΅Π½ΠΈΡ ΠΈ ΠΈΠ½ΡΠ΅ΡΠ΅Π½ΡΠ°.__\n",
"\n",
"Π‘Π΄Π°Π²Π°Ρ ΠΏΡΠΎΠ΅ΠΊΡ ΠΌΡ Π±ΡΠ΄Π΅ΠΌ ΡΠ°ΠΊΠΆΠ΅ ΠΏΠΎΠ»ΡΡΠ°ΡΡ ΠΎΡ Π²Π°Ρ ΠΊΠΎΠ΄ ΠΏΡΠΎΠ΅ΠΊΡΠ° (ΠΊΠ°ΠΊ ΠΎΠ±ΡΡΠ΅Π½ΠΈΡ Π²Π°ΡΠΈΡ
ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ, ΡΠ°ΠΊ ΠΈ ΠΊΠΎΠ΄ Π²Π΅Π± ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΠ°).\n",
"\n",
"__ΠΠ°ΠΊ Π±ΡΠ΄Π΅Ρ ΠΎΡΠ΅Π½ΠΈΠ²Π°ΡΡΡΡ:__\n",
"\n",
"ΠΠΎΠ΄ Π½Π΅ Π±ΡΠ΄Π΅Ρ ΠΎΡΠ΄Π΅Π»ΡΠ½ΠΎ ΠΏΡΠΎΠ²Π΅ΡΡΡΡΡΡ ΠΊΠ°ΠΊ ΡΠ°ΡΡΡ Π·Π°Π΄Π°Π½ΠΈΡ, ΠΏΠΎΡΡΠΎΠΌΡ ΠΏΠΈΡΠΈΡΠ΅ ΠΊΠ°ΠΊ Ρ
ΠΎΡΠΈΡΠ΅, ΠΎΠ΄Π½Π°ΠΊΠΎ - Π² ΡΠΏΠΎΡΠ½ΡΡ
ΡΠΈΡΡΠ°ΡΠΈΡΡ
ΠΌΡ ΠΎΡΡΠ°Π²Π»ΡΠ΅ΠΌ Π·Π° ΡΠΎΠ±ΠΎΠΉ ΠΏΡΠ°Π²ΠΎ ΠΏΡΠΎΠ²Π΅ΡΠΈΡΡ Π²Π°Ρ ΠΊΠΎΠ΄, Π·Π° ΡΠ΅ΠΌ ΠΌΠΎΠ³ΡΡ ΠΏΠΎΡΠ»Π΅Π΄ΠΎΠ²Π°ΡΡ ΠΏΠΎΡΠ΅Π½ΡΠΈΠ°Π»ΡΠ½ΡΠ΅ ΡΠ½ΠΈΠΆΠ΅Π½ΠΈΡ Π±Π°Π»Π»ΠΎΠ² ΠΏΡΠΈ Π»ΡΠ±ΡΡ
Π½Π°ΡΡΡΠ΅Π½ΠΈΡΡ
.\n"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:38:04.503049Z",
"iopub.status.busy": "2025-04-08T16:38:04.502631Z",
"iopub.status.idle": "2025-04-08T16:38:09.781191Z",
"shell.execute_reply": "2025-04-08T16:38:09.779839Z",
"shell.execute_reply.started": "2025-04-08T16:38:04.503025Z"
},
"id": "OKn_gfwpS5EY",
"tags": []
},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.feature_extraction.text import TfidfVectorizer\n",
"from sklearn.linear_model import LogisticRegression\n",
"from sklearn.metrics import precision_score\n",
"from sklearn.utils.class_weight import compute_class_weight\n",
"import torch\n",
"from transformers import DistilBertTokenizer, DistilBertForSequenceClassification, Trainer, TrainingArguments"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "ybBRCfqoTX5v"
},
"source": [
"## Data"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:38:09.783193Z",
"iopub.status.busy": "2025-04-08T16:38:09.782539Z",
"iopub.status.idle": "2025-04-08T16:38:09.786653Z",
"shell.execute_reply": "2025-04-08T16:38:09.786050Z",
"shell.execute_reply.started": "2025-04-08T16:38:09.783167Z"
},
"id": "WelaLk5zTFvP",
"tags": []
},
"outputs": [],
"source": [
"def extract_main_category(tag):\n",
" tags = eval(tag)\n",
" first_tag = tags[0]['term']\n",
" return first_tag.split('.')[0]"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:38:09.787781Z",
"iopub.status.busy": "2025-04-08T16:38:09.787522Z",
"iopub.status.idle": "2025-04-08T16:38:11.161895Z",
"shell.execute_reply": "2025-04-08T16:38:11.161064Z",
"shell.execute_reply.started": "2025-04-08T16:38:09.787761Z"
},
"id": "jxQ7reE0S7l4",
"tags": []
},
"outputs": [],
"source": [
"df = pd.read_parquet(\"data.parquet\")\n",
"df = df[['title', 'summary', 'tag']]\n",
"df['tag'] = df['tag'].apply(extract_main_category)\n",
"df['text'] = df['title'] + ' ' + df['summary']"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "aUAe90XHgTGg"
},
"source": [
"ΠΠΎΡΠΌΠΎΡΡΡ Π½Π° ΡΠ°ΡΠΏΡΠ΅Π΄Π΅Π»Π΅Π½ΠΈΠ΅ ΡΠ°ΡΠ³Π΅ΡΠΎΠ²"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 743
},
"execution": {
"iopub.execute_input": "2025-04-08T16:38:11.163765Z",
"iopub.status.busy": "2025-04-08T16:38:11.163464Z",
"iopub.status.idle": "2025-04-08T16:38:11.175870Z",
"shell.execute_reply": "2025-04-08T16:38:11.175327Z",
"shell.execute_reply.started": "2025-04-08T16:38:11.163741Z"
},
"id": "rQxazH-cz89W",
"outputId": "6fa953a4-0283-4c07-bd2b-03893909a647",
"tags": []
},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"tag\n",
"cs 34597\n",
"stat 4782\n",
"math 612\n",
"q-bio 320\n",
"physics 216\n",
"cmp-lg 110\n",
"eess 75\n",
"quant-ph 66\n",
"cond-mat 65\n",
"astro-ph 59\n",
"nlin 47\n",
"q-fin 30\n",
"econ 5\n",
"gr-qc 4\n",
"hep-ex 4\n",
"hep-ph 2\n",
"adap-org 2\n",
"hep-lat 2\n",
"hep-th 1\n",
"nucl-th 1\n",
"Name: count, dtype: int64"
],
"text/html": [
"<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>count</th>\n",
" </tr>\n",
" <tr>\n",
" <th>tag</th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>cs</th>\n",
" <td>34597</td>\n",
" </tr>\n",
" <tr>\n",
" <th>stat</th>\n",
" <td>4782</td>\n",
" </tr>\n",
" <tr>\n",
" <th>math</th>\n",
" <td>612</td>\n",
" </tr>\n",
" <tr>\n",
" <th>q-bio</th>\n",
" <td>320</td>\n",
" </tr>\n",
" <tr>\n",
" <th>physics</th>\n",
" <td>216</td>\n",
" </tr>\n",
" <tr>\n",
" <th>cmp-lg</th>\n",
" <td>110</td>\n",
" </tr>\n",
" <tr>\n",
" <th>eess</th>\n",
" <td>75</td>\n",
" </tr>\n",
" <tr>\n",
" <th>quant-ph</th>\n",
" <td>66</td>\n",
" </tr>\n",
" <tr>\n",
" <th>cond-mat</th>\n",
" <td>65</td>\n",
" </tr>\n",
" <tr>\n",
" <th>astro-ph</th>\n",
" <td>59</td>\n",
" </tr>\n",
" <tr>\n",
" <th>nlin</th>\n",
" <td>47</td>\n",
" </tr>\n",
" <tr>\n",
" <th>q-fin</th>\n",
" <td>30</td>\n",
" </tr>\n",
" <tr>\n",
" <th>econ</th>\n",
" <td>5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>gr-qc</th>\n",
" <td>4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>hep-ex</th>\n",
" <td>4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>hep-ph</th>\n",
" <td>2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>adap-org</th>\n",
" <td>2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>hep-lat</th>\n",
" <td>2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>hep-th</th>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>nucl-th</th>\n",
" <td>1</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div><br><label><b>dtype:</b> int64</label>"
]
},
"metadata": {},
"execution_count": 12
}
],
"source": [
"df['tag'].value_counts()"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "oFOZcbOX3G4m"
},
"source": [
"ΠΡΡΡ ΠΎΡΡΡΠΈΠΌΡΠΉ Π΄ΠΈΡΠ±Π°Π»Π°Π½Ρ ΠΊΠ»Π°ΡΡΠΎΠ² - Π½ΡΠΆΠ½ΠΎ Π±ΡΠ΄Π΅Ρ ΡΡΠ΅ΡΡΡ ΡΡΠΎ ΠΏΡΠΈ ΠΎΠ±ΡΡΠ΅Π½ΠΈΠΈ (Π² Π»ΠΎΡΡΠ΅). ΠΠ° ΡΡΠΎΠΌ ΡΡΠ°ΠΏΠ΅ ΠΎΠ±ΡΠ΅Π΄ΠΈΠ½Ρ Π²ΡΠ΅ ΡΠ΅Π΄ΠΊΠΈΠ΅ ΠΊΠ»Π°ΡΡΡ Π² ΠΎΠ΄ΠΈΠ½"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:38:11.177011Z",
"iopub.status.busy": "2025-04-08T16:38:11.176731Z",
"iopub.status.idle": "2025-04-08T16:38:11.185683Z",
"shell.execute_reply": "2025-04-08T16:38:11.185103Z",
"shell.execute_reply.started": "2025-04-08T16:38:11.176989Z"
},
"id": "wIxUOEOKz_0U",
"tags": []
},
"outputs": [],
"source": [
"class_counts = df['tag'].value_counts()\n",
"classes_to_merge = class_counts[class_counts < 10].index\n",
"df.loc[df['tag'].isin(classes_to_merge), 'tag'] = ':)'"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 523
},
"execution": {
"iopub.execute_input": "2025-04-08T16:38:11.187086Z",
"iopub.status.busy": "2025-04-08T16:38:11.186627Z",
"iopub.status.idle": "2025-04-08T16:38:11.195550Z",
"shell.execute_reply": "2025-04-08T16:38:11.194989Z",
"shell.execute_reply.started": "2025-04-08T16:38:11.187054Z"
},
"id": "wn8LBoi40B5e",
"outputId": "68cee6bb-6260-44cb-a73b-c5e51227b50e",
"tags": []
},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"tag\n",
"cs 34597\n",
"stat 4782\n",
"math 612\n",
"q-bio 320\n",
"physics 216\n",
"cmp-lg 110\n",
"eess 75\n",
"quant-ph 66\n",
"cond-mat 65\n",
"astro-ph 59\n",
"nlin 47\n",
"q-fin 30\n",
":) 21\n",
"Name: count, dtype: int64"
],
"text/html": [
"<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>count</th>\n",
" </tr>\n",
" <tr>\n",
" <th>tag</th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>cs</th>\n",
" <td>34597</td>\n",
" </tr>\n",
" <tr>\n",
" <th>stat</th>\n",
" <td>4782</td>\n",
" </tr>\n",
" <tr>\n",
" <th>math</th>\n",
" <td>612</td>\n",
" </tr>\n",
" <tr>\n",
" <th>q-bio</th>\n",
" <td>320</td>\n",
" </tr>\n",
" <tr>\n",
" <th>physics</th>\n",
" <td>216</td>\n",
" </tr>\n",
" <tr>\n",
" <th>cmp-lg</th>\n",
" <td>110</td>\n",
" </tr>\n",
" <tr>\n",
" <th>eess</th>\n",
" <td>75</td>\n",
" </tr>\n",
" <tr>\n",
" <th>quant-ph</th>\n",
" <td>66</td>\n",
" </tr>\n",
" <tr>\n",
" <th>cond-mat</th>\n",
" <td>65</td>\n",
" </tr>\n",
" <tr>\n",
" <th>astro-ph</th>\n",
" <td>59</td>\n",
" </tr>\n",
" <tr>\n",
" <th>nlin</th>\n",
" <td>47</td>\n",
" </tr>\n",
" <tr>\n",
" <th>q-fin</th>\n",
" <td>30</td>\n",
" </tr>\n",
" <tr>\n",
" <th>:)</th>\n",
" <td>21</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div><br><label><b>dtype:</b> int64</label>"
]
},
"metadata": {},
"execution_count": 14
}
],
"source": [
"df['tag'].value_counts()"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:49:10.200430Z",
"iopub.status.busy": "2025-04-08T16:49:10.200018Z",
"iopub.status.idle": "2025-04-08T16:49:10.206017Z",
"shell.execute_reply": "2025-04-08T16:49:10.205358Z",
"shell.execute_reply.started": "2025-04-08T16:49:10.200406Z"
},
"tags": [],
"id": "ZpOCCcGVgTGj"
},
"outputs": [],
"source": [
"num_classes = len(df['tag'].unique())"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "Y-8KfDg5gTGk"
},
"source": [
"Π ΡΠΊΠ° Π½Π΅ ΠΏΠΎΠ΄Π½ΠΈΠΌΠ°Π΅ΡΡΡ ΠΎΡΠΊΡΡΡΠ²Π°ΡΡ ΡΠ°ΡΡΡ Π½Π° ΡΠ΅ΡΡ, Π° Π½Π° Π²Π°Π»ΠΈΠ΄Π°ΡΠΈΡ - ΡΠ΅ΠΌ Π±ΠΎΠ»Π΅Π΅. ΠΠ±ΡΡΠ°ΡΡΡΡ Π±ΡΠ΄Ρ ΠΏΡΠΎΡΡΠΎ ΠΏΠΎ ΡΠΏΠΎΡ
Π°ΠΌ, ΡΠ΅ΡΡ ΡΠ΄Π΅Π»Π°Ρ ΠΏΠΎΠΌΠ΅Π½ΡΡΠ΅ ΠΈ Π»ΡΡΡΠ΅ ΡΡΠΊΠ°ΠΌΠΈ ΠΎΡΠ²Π°Π»ΠΈΠ΄ΠΈΡΡΡ ΠΈΡΠΎΠ³ΠΎΠ²ΡΡ ΠΌΠΎΠ΄Π΅Π»Ρ"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:38:11.196783Z",
"iopub.status.busy": "2025-04-08T16:38:11.196508Z",
"iopub.status.idle": "2025-04-08T16:38:11.246887Z",
"shell.execute_reply": "2025-04-08T16:38:11.246341Z",
"shell.execute_reply.started": "2025-04-08T16:38:11.196762Z"
},
"id": "MHvx9TbX1AHe",
"tags": []
},
"outputs": [],
"source": [
"train_df, test_df = train_test_split(df, test_size=0.15, random_state=26, stratify=df['tag'])"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "zEXYZ5dPTTOh"
},
"source": [
"## Baseline: TF-IDF + LogReg (ΠΊΠ»Π°ΡΡΠΈΠΊΠ°)\n",
"\n",
"ΡΠ°ΠΊΠΆΠ΅ Π½Π΅ Π·Π°Π±ΡΠ²Π°Ρ ΡΡΠ΅ΡΡΡ Π΄ΠΈΡΠ±Π°Π»Π°Π½Ρ ΠΊΠ»Π°ΡΡΠΎΠ²"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:58:27.215791Z",
"iopub.status.busy": "2025-04-08T16:58:27.215328Z",
"iopub.status.idle": "2025-04-08T16:58:31.103917Z",
"shell.execute_reply": "2025-04-08T16:58:31.102885Z",
"shell.execute_reply.started": "2025-04-08T16:58:27.215765Z"
},
"tags": [],
"id": "ocREmLglgTGk"
},
"outputs": [],
"source": [
"vectorizer = TfidfVectorizer(max_features=1000)\n",
"\n",
"X_train, y_train = vectorizer.fit_transform(train_df['text']), train_df['tag']\n",
"X_test, y_test = vectorizer.transform(test_df['text']), test_df['tag']"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T16:41:20.930199Z",
"iopub.status.busy": "2025-04-08T16:41:20.929875Z",
"iopub.status.idle": "2025-04-08T16:43:34.374654Z",
"shell.execute_reply": "2025-04-08T16:43:34.373963Z",
"shell.execute_reply.started": "2025-04-08T16:41:20.930177Z"
},
"id": "hhc1p0RhfJ9Y",
"tags": [],
"outputId": "30988d23-e5a0-4210-841a-666892ab1bde"
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/opt/app-root/lib64/python3.8/site-packages/sklearn/linear_model/_sag.py:350: ConvergenceWarning: The max_iter was reached which means the coef_ did not converge\n",
" warnings.warn(\n"
]
},
{
"data": {
"text/html": [
"<style>#sk-container-id-3 {color: black;background-color: white;}#sk-container-id-3 pre{padding: 0;}#sk-container-id-3 div.sk-toggleable {background-color: white;}#sk-container-id-3 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-3 label.sk-toggleable__label-arrow:before {content: \"βΈ\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-3 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-3 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-3 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-3 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-3 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-3 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"βΎ\";}#sk-container-id-3 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-3 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-3 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-3 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-3 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-3 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-3 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-3 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-3 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-3 div.sk-item {position: relative;z-index: 1;}#sk-container-id-3 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-3 div.sk-item::before, #sk-container-id-3 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-3 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-3 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-3 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-3 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-3 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-3 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-3 div.sk-label-container {text-align: center;}#sk-container-id-3 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-3 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-3\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>LogisticRegression(class_weight='balanced', penalty='l1', solver='saga')</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-3\" type=\"checkbox\" checked><label for=\"sk-estimator-id-3\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">LogisticRegression</label><div class=\"sk-toggleable__content\"><pre>LogisticRegression(class_weight='balanced', penalty='l1', solver='saga')</pre></div></div></div></div></div>"
],
"text/plain": [
"LogisticRegression(class_weight='balanced', penalty='l1', solver='saga')"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"lr_model = LogisticRegression(penalty='l1', solver='saga', class_weight='balanced')\n",
"lr_model.fit(X_train, y_train)"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "axe7HeJJgTGl"
},
"source": [
"ΠΠ»Ρ ΡΠ΄ΠΎΠ±ΡΡΠ²Π° ΠΈ ΠΏΠΎΠ΄ΡΡΡΡΠ° ΠΌΠ΅ΡΡΠΈΠΊΠΈ Π·Π°Π²Π΅Π΄Ρ ΠΌΠ°ΠΏΠΏΠΈΠ½Π³ΠΈ ΠΈ Π²Π΅ΡΠ° ΠΊΠ»Π°ΡΡΠΎΠ²"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T17:00:24.569272Z",
"iopub.status.busy": "2025-04-08T17:00:24.568849Z",
"iopub.status.idle": "2025-04-08T17:00:24.616599Z",
"shell.execute_reply": "2025-04-08T17:00:24.615924Z",
"shell.execute_reply.started": "2025-04-08T17:00:24.569244Z"
},
"tags": [],
"id": "Sd5j9kYcgTGl"
},
"outputs": [],
"source": [
"class_to_idx_lr = {lr_model.classes_[i]: i for i in range(num_classes)}\n",
"idx_to_class_lr = {i: lr_model.classes_[i] for i in range(num_classes)}\n",
"\n",
"weights = [1 / df[df['tag'] == idx_to_class_lr[i]].shape[0] for i in range(num_classes)]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T17:01:28.800179Z",
"iopub.status.busy": "2025-04-08T17:01:28.799751Z",
"iopub.status.idle": "2025-04-08T17:01:28.805213Z",
"shell.execute_reply": "2025-04-08T17:01:28.804557Z",
"shell.execute_reply.started": "2025-04-08T17:01:28.800154Z"
},
"tags": [],
"id": "bnjB9e8XgTGm"
},
"outputs": [],
"source": [
"def metric(y_true, y_pred, labels):\n",
" positive_answers_per_class_amount = [0] * num_classes # Π΄Π»Ρ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΊΠ»Π°ΡΡΠ° ΠΊΠΎΠ»-Π²ΠΎ ΠΏΠΎΠΏΠ°Π΄Π°Π½ΠΈΠΉ ΡΠ°ΡΠ³Π΅ΡΠ° Π² ΡΠΎΠΏ-95%\n",
" for i in range(len(y_true)):\n",
" probs = y_pred[i]\n",
" sorted_indices = np.argsort(probs)[::-1]\n",
" cumulative = 0\n",
" top_tags = []\n",
" for idx in sorted_indices:\n",
" cumulative += probs[idx]\n",
" top_tags.append(idx)\n",
" if cumulative >= 0.95:\n",
" break\n",
" top_tags = [labels[j] for j in top_tags]\n",
" true_tag = y_true.iloc[i]\n",
" if true_tag in top_tags:\n",
" positive_answers_per_class_amount[class_to_idx_lr[true_tag]] += 1\n",
"\n",
" precision = np.dot(positive_answers_per_class_amount, weights)\n",
"\n",
" return precision"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-08T17:01:28.925889Z",
"iopub.status.busy": "2025-04-08T17:01:28.925532Z",
"iopub.status.idle": "2025-04-08T17:01:28.986010Z",
"shell.execute_reply": "2025-04-08T17:01:28.985402Z",
"shell.execute_reply.started": "2025-04-08T17:01:28.925867Z"
},
"tags": [],
"id": "YDKSjq_kgTGm",
"outputId": "90de8edf-3649-46b3-cfc2-2f3bfd2a93f6"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TF-IDF + LogReg balanced precision@95%: 0.749\n"
]
}
],
"source": [
"preds_lr = lr_model.predict_proba(X_test)\n",
"print(f\"TF-IDF + LogReg balanced precision@95%: {metric(test_df['tag'], preds_lr, lr_model.classes_):.3f}\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "DLSO0k3qUttY"
},
"source": [
"## Distilbert\n",
"ΠΠ΄Π΅ΡΡ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΡΠΉ ΠΏΠΎ ΠΊΠ»Π°ΡΡΠ°ΠΌ Π»ΠΎΡΡ ΠΈ Π΄ΠΎΠ±Π°Π²Π»Ρ ΡΠ΅ΠΏΠΎΡΠΊΡ ΠΏΠ΅ΡΠ΅ΠΎΠ±ΡΡΠ΅Π½ΠΈΡ, ΡΡΠΈΡΠ°Ρ ΠΏΠΎΡΠ»Π΅ ΠΊΠ°ΠΆΠ΄ΠΎΠΉ ΡΠΏΠΎΡ
ΠΈ Π»ΠΎΡΡ Π½Π° ΡΠ΅ΡΡΠΎΠ²ΠΎΠΌ Π΄Π°ΡΠ°ΡΠ΅ΡΠ΅"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 376,
"referenced_widgets": [
"a84ec850e42a45b0a4a7a87800ede268",
"c12508bddd1543449f834d41b413426d",
"4291c1f1a11e4a48878affcc234faa87",
"a6c07eb703c94b25a41306cafb364c31",
"b622bb5aaf6447aa87be6907ce2b2d4e",
"8609ab94160e491bb994ff987b2d8fbc",
"73b156ed04554f2a81ff6a528f1c97c0",
"a3bc75e8cbfd4630a83a6088f75239ac",
"615d6fd52b3f43e1bbc45eb53bfe0ad7",
"de943c53880f4f3ba77bd594a4ad87bf",
"4e631f3e10d24699bb51c6f8f9843a5d",
"698488c9c8854f7dbebfea7ab2d7c291",
"f5a7b6f95da54c90ac8860be963e52bd",
"90c70b258b24430a906c88ebc64b5231",
"61a0f825e6344eff8ba802fa80103ccb",
"fb7c892151c049328d2d9fedcb6f41b7",
"40338ce6822b427799638dcd30b6e141",
"0803738966ad429da69c32dbedbdbc03",
"11379b7d536d4a948fe47751de456f9b",
"af9391c4b1bc439a8d4ff0276be5d315",
"bec5c7a1bae0480f8a49d3f56b2506eb",
"d13b6193d01c4307b9b3d89be7e0b8cf",
"4e229143da894ac7be8ddff37144bec8",
"033a5fcee80a46619f2dada013a96f59",
"b7d0fa89b6cc4e3a9f7550bfc7b94dfb",
"7a77efa8b96c406cbd0ca16b457f048b",
"2cfc6e9d88244aab9def1cb6764e7e0d",
"3421d4ff74214c0081f77aa092ed3f7b",
"d989e092a6344bfa8246f8bf846b54b1",
"69ec8d01ed27473c8f813c859b9946a8",
"2828fbc07c90495380412cdafd66a265",
"14d000a6673f4a83b1cfea274512ccef",
"30a26a11d9724fd2bb90a8ac3a80b64e",
"c2f4aa4074bd44c89d5a30ca672fa8f9",
"24f8549ca034493392fbf35ce6b5d3b2",
"bd3f9196c76e49ee967f30bae35c8b18",
"a27a26bbf9fc4f688716bb2aed879a12",
"0792befbe6c743f69c88408498eafc32",
"c97130a925a44468b22d0c6ab3cac6e9",
"b956c28f53434fad9fcfdb65a7c8a303",
"eefd0b1b319a4e75b0ac3a75fb4e7f38",
"0d6793013fa2469191d109529bc9223d",
"8d89cb74b480405688b10b6578fea4bd",
"1ce96b9a31e342edaa9c40304e65b73b",
"c4c34fd4e65b44ca8837c359e2adfef5",
"be28f610644e4902ad22ba61c8e8b294",
"a82c407c525f493cae6caf2ecab38eec",
"9a616045cdb14b1eb4cc7987ba7a1ebe",
"f5ce00f8e11c4834970d38bb7a74bff7",
"10e1bbfa8acb454cbe44f57232af0dcc",
"57f70f785e3148dda70d77386ea98c61",
"555bb9a9df7f4abe8f811b9ba269565f",
"5f93e9d3639a41e08f132fc6d9612b8d",
"e2842507f92f4f4d9b44cd8eee193f52",
"c7d47c9fa5bc4b3ba9ddd9da9fa57550"
]
},
"execution": {
"iopub.execute_input": "2025-04-08T17:01:37.328625Z",
"iopub.status.busy": "2025-04-08T17:01:37.328111Z",
"iopub.status.idle": "2025-04-08T17:01:37.566858Z",
"shell.execute_reply": "2025-04-08T17:01:37.565994Z",
"shell.execute_reply.started": "2025-04-08T17:01:37.328601Z"
},
"id": "HIiBGC7qPXRx",
"outputId": "c35255c3-3834-497a-97a6-435626e26303",
"tags": []
},
"outputs": [
{
"metadata": {
"tags": null
},
"name": "stderr",
"output_type": "stream",
"text": [
"/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_auth.py:94: UserWarning: \n",
"The secret `HF_TOKEN` does not exist in your Colab secrets.\n",
"To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n",
"You will be able to reuse this secret in all of your notebooks.\n",
"Please note that authentication is recommended but still optional to access public models or datasets.\n",
" warnings.warn(\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a84ec850e42a45b0a4a7a87800ede268",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"tokenizer_config.json: 0%| | 0.00/49.0 [00:00<?, ?B/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "698488c9c8854f7dbebfea7ab2d7c291",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"vocab.txt: 0%| | 0.00/213k [00:00<?, ?B/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4e229143da894ac7be8ddff37144bec8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"tokenizer.json: 0%| | 0.00/436k [00:00<?, ?B/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c2f4aa4074bd44c89d5a30ca672fa8f9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"config.json: 0%| | 0.00/465 [00:00<?, ?B/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"metadata": {
"tags": null
},
"name": "stderr",
"output_type": "stream",
"text": [
"Xet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\n",
"WARNING:huggingface_hub.file_download:Xet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c4c34fd4e65b44ca8837c359e2adfef5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"model.safetensors: 0%| | 0.00/263M [00:00<?, ?B/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"metadata": {
"tags": null
},
"name": "stderr",
"output_type": "stream",
"text": [
"Some weights of DistilBertForSequenceClassification were not initialized from the model checkpoint at distilbert-base-cased and are newly initialized: ['classifier.bias', 'classifier.weight', 'pre_classifier.bias', 'pre_classifier.weight']\n",
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
]
}
],
"source": [
"tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-cased')\n",
"model = DistilBertForSequenceClassification.from_pretrained(\n",
" 'distilbert-base-cased',\n",
" num_labels=len(df['tag'].unique()),\n",
" id2label={i: tag for i, tag in enumerate(df['tag'].unique())},\n",
" label2id={tag: i for i, tag in enumerate(df['tag'].unique())}\n",
")\n",
"\n",
"train_encodings = tokenizer(\n",
" train_df['text'].tolist(),\n",
" truncation=True,\n",
" padding=True,\n",
" max_length=512\n",
")\n",
"test_encodings = tokenizer(\n",
" test_df['text'].tolist(),\n",
" truncation=True,\n",
" padding=True,\n",
" max_length=512\n",
")\n",
"\n",
"class Dataset(torch.utils.data.Dataset):\n",
" def __init__(self, encodings, labels):\n",
" self.encodings = encodings\n",
" self.labels = labels\n",
"\n",
" def __getitem__(self, idx):\n",
" item = {k: torch.tensor(v[idx]) for k, v in self.encodings.items()}\n",
" item['labels'] = torch.tensor(self.labels[idx])\n",
" return item\n",
"\n",
" def __len__(self):\n",
" return len(self.labels)\n",
"\n",
"train_dataset = Dataset(train_encodings, train_df['tag'].map(lambda x: model.config.label2id[x]).values)\n",
"test_dataset = Dataset(test_encodings, test_df['tag'].map(lambda x: model.config.label2id[x]).values)"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 545
},
"id": "c67QjfrxVjZ8",
"outputId": "ed38d123-5772-46d6-e3ab-87eedfcbaf72"
},
"outputs": [
{
"metadata": {
"tags": null
},
"name": "stderr",
"output_type": "stream",
"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"
]
},
{
"data": {
"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",
" "
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"metadata": {
"tags": null
},
"name": "stderr",
"output_type": "stream",
"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:\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[33mfellafrom26\u001b[0m (\u001b[33mfellafrom26-mipt\u001b[0m) to \u001b[32mhttps://api.wandb.ai\u001b[0m. Use \u001b[1m`wandb login --relogin`\u001b[0m to force relogin\n"
]
},
{
"data": {
"text/html": [
"Tracking run with wandb version 0.19.9"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"Run data is saved locally in <code>/content/wandb/run-20250408_192101-ksqmp5qp</code>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"Syncing run <strong><a href='https://wandb.ai/fellafrom26-mipt/huggingface/runs/ksqmp5qp' target=\"_blank\">./results</a></strong> to <a href='https://wandb.ai/fellafrom26-mipt/huggingface' target=\"_blank\">Weights & Biases</a> (<a href='https://wandb.me/developer-guide' target=\"_blank\">docs</a>)<br>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
" View project at <a href='https://wandb.ai/fellafrom26-mipt/huggingface' target=\"_blank\">https://wandb.ai/fellafrom26-mipt/huggingface</a>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
" View run at <a href='https://wandb.ai/fellafrom26-mipt/huggingface/runs/ksqmp5qp' target=\"_blank\">https://wandb.ai/fellafrom26-mipt/huggingface/runs/ksqmp5qp</a>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"\n",
" <div>\n",
" \n",
" <progress value='2066' max='3270' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" [2066/3270 50:41 < 29:34, 0.68 it/s, Epoch 1.89/3]\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>1.650900</td>\n",
" <td>1.064278</td>\n",
" </tr>\n",
" </tbody>\n",
"</table><p>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <div>\n",
" \n",
" <progress value='3270' max='3270' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" [3270/3270 1:22:24, Epoch 3/3]\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>1.650900</td>\n",
" <td>1.064278</td>\n",
" </tr>\n",
" <tr>\n",
" <td>2</td>\n",
" <td>1.257900</td>\n",
" <td>0.991267</td>\n",
" </tr>\n",
" <tr>\n",
" <td>3</td>\n",
" <td>0.915400</td>\n",
" <td>1.005465</td>\n",
" </tr>\n",
" </tbody>\n",
"</table><p>"
]
},
"metadata": {}
}
],
"source": [
"labels = train_df['tag'].map(model.config.label2id).values\n",
"class_weights = compute_class_weight('balanced', classes=np.arange(num_classes), y=labels)\n",
"class_weights_tensor = torch.tensor(class_weights, dtype=torch.float32)\n",
"\n",
"class CustomTrainer(Trainer):\n",
" def __init__(self, class_weights, *args, **kwargs):\n",
" super().__init__(*args, **kwargs)\n",
" self.class_weights = class_weights.to(self.model.device)\n",
"\n",
" def compute_loss(self, model, inputs, return_outputs=False, **kwargs):\n",
" labels = inputs.get(\"labels\")\n",
" outputs = model(**inputs)\n",
" logits = outputs.logits\n",
" loss_fct = torch.nn.CrossEntropyLoss(weight=self.class_weights)\n",
" loss = loss_fct(logits, labels)\n",
" return (loss, outputs) if return_outputs else loss\n",
"\n",
"training_args = TrainingArguments(\n",
" output_dir='./results',\n",
" num_train_epochs=3,\n",
" per_device_train_batch_size=32,\n",
" eval_strategy='epoch',\n",
" logging_steps=500\n",
")\n",
"\n",
"trainer = CustomTrainer(\n",
" class_weights=class_weights_tensor,\n",
" model=model,\n",
" args=training_args,\n",
" train_dataset=train_dataset,\n",
" eval_dataset=test_dataset\n",
")\n",
"\n",
"trainer.train()\n",
"model.save_pretrained('model/')"
]
},
{
"cell_type": "code",
"source": [
"def nn_metric(y_true, y_logits, model):\n",
" probs = torch.nn.functional.softmax(torch.tensor(y_logits), dim=-1).numpy()\n",
"\n",
" id2label = model.config.id2label\n",
" class_to_idx_bert = {v: k for k, v in model.config.label2id.items()}\n",
"\n",
" weights = [1/df[df['tag'] == cls].shape[0] for cls in class_to_idx_bert.values()]\n",
"\n",
" positive_answers = [0] * len(class_to_idx_bert)\n",
"\n",
" for i in range(len(y_true)):\n",
" current_probs = probs[i]\n",
" sorted_indices = np.argsort(current_probs)[::-1]\n",
"\n",
" cumulative = 0\n",
" top_tags = []\n",
" for idx in sorted_indices:\n",
" cumulative += current_probs[idx]\n",
" top_tags.append(id2label[idx])\n",
" if cumulative >= 0.95:\n",
" break\n",
"\n",
" true_tag = y_true.iloc[i]\n",
" if true_tag in top_tags:\n",
" positive_answers[model.config.label2id[true_tag]] += 1\n",
"\n",
" precision = np.dot(positive_answers, weights)\n",
" return precision"
],
"metadata": {
"id": "AyLSGCr9Ku97"
},
"execution_count": 35,
"outputs": []
},
{
"cell_type": "code",
"source": [
"preds = trainer.predict(test_dataset)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 17
},
"id": "TDRCOtjw1S2y",
"outputId": "8cea69d7-9db1-4660-d953-24f7a42c892e"
},
"execution_count": 25,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": []
},
"metadata": {}
}
]
},
{
"cell_type": "code",
"source": [
"logits = preds.predictions\n",
"print(f\"DistilBERT precision@95%: {nn_metric(test_df['tag'], logits, model):.3f}\")"
],
"metadata": {
"id": "8OiPteQ8Ltnh",
"outputId": "c8242422-a1b6-4499-a780-e6037dc085d7",
"colab": {
"base_uri": "https://localhost:8080/"
}
},
"execution_count": 36,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"DistilBERT precision@95%: 1.441\n"
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "5SaDCpMKL6mi"
},
"execution_count": null,
"outputs": []
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"a84ec850e42a45b0a4a7a87800ede268": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_c12508bddd1543449f834d41b413426d",
"IPY_MODEL_4291c1f1a11e4a48878affcc234faa87",
"IPY_MODEL_a6c07eb703c94b25a41306cafb364c31"
],
"layout": "IPY_MODEL_b622bb5aaf6447aa87be6907ce2b2d4e"
}
},
"c12508bddd1543449f834d41b413426d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_8609ab94160e491bb994ff987b2d8fbc",
"placeholder": "β",
"style": "IPY_MODEL_73b156ed04554f2a81ff6a528f1c97c0",
"value": "tokenizer_config.json:β100%"
}
},
"4291c1f1a11e4a48878affcc234faa87": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a3bc75e8cbfd4630a83a6088f75239ac",
"max": 49,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_615d6fd52b3f43e1bbc45eb53bfe0ad7",
"value": 49
}
},
"a6c07eb703c94b25a41306cafb364c31": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_de943c53880f4f3ba77bd594a4ad87bf",
"placeholder": "β",
"style": "IPY_MODEL_4e631f3e10d24699bb51c6f8f9843a5d",
"value": "β49.0/49.0β[00:00<00:00,β4.86kB/s]"
}
},
"b622bb5aaf6447aa87be6907ce2b2d4e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"8609ab94160e491bb994ff987b2d8fbc": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"73b156ed04554f2a81ff6a528f1c97c0": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"a3bc75e8cbfd4630a83a6088f75239ac": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"615d6fd52b3f43e1bbc45eb53bfe0ad7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"de943c53880f4f3ba77bd594a4ad87bf": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"4e631f3e10d24699bb51c6f8f9843a5d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"698488c9c8854f7dbebfea7ab2d7c291": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_f5a7b6f95da54c90ac8860be963e52bd",
"IPY_MODEL_90c70b258b24430a906c88ebc64b5231",
"IPY_MODEL_61a0f825e6344eff8ba802fa80103ccb"
],
"layout": "IPY_MODEL_fb7c892151c049328d2d9fedcb6f41b7"
}
},
"f5a7b6f95da54c90ac8860be963e52bd": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_40338ce6822b427799638dcd30b6e141",
"placeholder": "β",
"style": "IPY_MODEL_0803738966ad429da69c32dbedbdbc03",
"value": "vocab.txt:β100%"
}
},
"90c70b258b24430a906c88ebc64b5231": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_11379b7d536d4a948fe47751de456f9b",
"max": 213450,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_af9391c4b1bc439a8d4ff0276be5d315",
"value": 213450
}
},
"61a0f825e6344eff8ba802fa80103ccb": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_bec5c7a1bae0480f8a49d3f56b2506eb",
"placeholder": "β",
"style": "IPY_MODEL_d13b6193d01c4307b9b3d89be7e0b8cf",
"value": "β213k/213kβ[00:00<00:00,β3.43MB/s]"
}
},
"fb7c892151c049328d2d9fedcb6f41b7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"40338ce6822b427799638dcd30b6e141": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"0803738966ad429da69c32dbedbdbc03": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"11379b7d536d4a948fe47751de456f9b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"af9391c4b1bc439a8d4ff0276be5d315": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"bec5c7a1bae0480f8a49d3f56b2506eb": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d13b6193d01c4307b9b3d89be7e0b8cf": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"4e229143da894ac7be8ddff37144bec8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_033a5fcee80a46619f2dada013a96f59",
"IPY_MODEL_b7d0fa89b6cc4e3a9f7550bfc7b94dfb",
"IPY_MODEL_7a77efa8b96c406cbd0ca16b457f048b"
],
"layout": "IPY_MODEL_2cfc6e9d88244aab9def1cb6764e7e0d"
}
},
"033a5fcee80a46619f2dada013a96f59": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_3421d4ff74214c0081f77aa092ed3f7b",
"placeholder": "β",
"style": "IPY_MODEL_d989e092a6344bfa8246f8bf846b54b1",
"value": "tokenizer.json:β100%"
}
},
"b7d0fa89b6cc4e3a9f7550bfc7b94dfb": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_69ec8d01ed27473c8f813c859b9946a8",
"max": 435797,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_2828fbc07c90495380412cdafd66a265",
"value": 435797
}
},
"7a77efa8b96c406cbd0ca16b457f048b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_14d000a6673f4a83b1cfea274512ccef",
"placeholder": "β",
"style": "IPY_MODEL_30a26a11d9724fd2bb90a8ac3a80b64e",
"value": "β436k/436kβ[00:00<00:00,β6.76MB/s]"
}
},
"2cfc6e9d88244aab9def1cb6764e7e0d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"3421d4ff74214c0081f77aa092ed3f7b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d989e092a6344bfa8246f8bf846b54b1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"69ec8d01ed27473c8f813c859b9946a8": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"2828fbc07c90495380412cdafd66a265": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"14d000a6673f4a83b1cfea274512ccef": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"30a26a11d9724fd2bb90a8ac3a80b64e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"c2f4aa4074bd44c89d5a30ca672fa8f9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_24f8549ca034493392fbf35ce6b5d3b2",
"IPY_MODEL_bd3f9196c76e49ee967f30bae35c8b18",
"IPY_MODEL_a27a26bbf9fc4f688716bb2aed879a12"
],
"layout": "IPY_MODEL_0792befbe6c743f69c88408498eafc32"
}
},
"24f8549ca034493392fbf35ce6b5d3b2": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c97130a925a44468b22d0c6ab3cac6e9",
"placeholder": "β",
"style": "IPY_MODEL_b956c28f53434fad9fcfdb65a7c8a303",
"value": "config.json:β100%"
}
},
"bd3f9196c76e49ee967f30bae35c8b18": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_eefd0b1b319a4e75b0ac3a75fb4e7f38",
"max": 465,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_0d6793013fa2469191d109529bc9223d",
"value": 465
}
},
"a27a26bbf9fc4f688716bb2aed879a12": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_8d89cb74b480405688b10b6578fea4bd",
"placeholder": "β",
"style": "IPY_MODEL_1ce96b9a31e342edaa9c40304e65b73b",
"value": "β465/465β[00:00<00:00,β30.0kB/s]"
}
},
"0792befbe6c743f69c88408498eafc32": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c97130a925a44468b22d0c6ab3cac6e9": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b956c28f53434fad9fcfdb65a7c8a303": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"eefd0b1b319a4e75b0ac3a75fb4e7f38": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"0d6793013fa2469191d109529bc9223d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"8d89cb74b480405688b10b6578fea4bd": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1ce96b9a31e342edaa9c40304e65b73b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"c4c34fd4e65b44ca8837c359e2adfef5": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_be28f610644e4902ad22ba61c8e8b294",
"IPY_MODEL_a82c407c525f493cae6caf2ecab38eec",
"IPY_MODEL_9a616045cdb14b1eb4cc7987ba7a1ebe"
],
"layout": "IPY_MODEL_f5ce00f8e11c4834970d38bb7a74bff7"
}
},
"be28f610644e4902ad22ba61c8e8b294": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_10e1bbfa8acb454cbe44f57232af0dcc",
"placeholder": "β",
"style": "IPY_MODEL_57f70f785e3148dda70d77386ea98c61",
"value": "model.safetensors:β100%"
}
},
"a82c407c525f493cae6caf2ecab38eec": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_555bb9a9df7f4abe8f811b9ba269565f",
"max": 263260784,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_5f93e9d3639a41e08f132fc6d9612b8d",
"value": 263260784
}
},
"9a616045cdb14b1eb4cc7987ba7a1ebe": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_e2842507f92f4f4d9b44cd8eee193f52",
"placeholder": "β",
"style": "IPY_MODEL_c7d47c9fa5bc4b3ba9ddd9da9fa57550",
"value": "β263M/263Mβ[00:01<00:00,β227MB/s]"
}
},
"f5ce00f8e11c4834970d38bb7a74bff7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"10e1bbfa8acb454cbe44f57232af0dcc": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"57f70f785e3148dda70d77386ea98c61": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"555bb9a9df7f4abe8f811b9ba269565f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"5f93e9d3639a41e08f132fc6d9612b8d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"e2842507f92f4f4d9b44cd8eee193f52": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c7d47c9fa5bc4b3ba9ddd9da9fa57550": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
}
}
}
},
"nbformat": 4,
"nbformat_minor": 0
} |