vector
sequencelengths
1.02k
1.02k
text
stringlengths
2
11.8k
[ 0.034078557, -0.0013753439, -0.0401579, -0.026829015, -0.034363974, -0.023004454, -0.0052373665, 0.011202541, 0.0034321162, 0.044039544, -0.0042598196, -0.012215764, 0.03253732, -0.018566249, -0.0026989563, 0.05819613, 0.029569, -0.027385576, -0.044410583, -0.020806758, 0.0067500663, -0.00022420692, -0.0769479, -0.033650436, -0.01626866, 0.0007202271, 0.022105396, -0.0056726243, 0.048434936, 0.02708589, -0.057882175, -0.0015296463, -0.0027489038, 0.0056155412, -0.051289085, -0.024160385, -0.016140223, -0.029312126, -0.0344496, -0.026572142, 0.020664051, -0.021720087, 0.012715241, -0.035562716, -0.052716162, 0.0020175278, 0.020107491, 0.014099504, 0.0012147978, -0.056369476, 0.010724471, 0.022719039, 0.016468449, 0.0356198, -0.05057555, -0.01989343, 0.005162445, -0.025302045, -0.03202357, -0.004748593, -0.0022851042, 0.05345824, 0.003146701, -0.044867247, -0.0018052503, 0.0100537455, -0.011487956, 0.022447895, -0.0015082402, 0.026429435, -0.049348265, 0.0056476505, 0.005918795, -0.005137471, -0.012957844, 0.04792119, -0.0036675835, -0.029797332, -0.0033893038, 0.013407373, -0.033650436, 0.039901026, 0.018152397, 0.0059437687, -0.018466355, -0.022148209, 0.036447503, -0.013742736, -0.041213933, -0.00748501, -0.03750354, 0.03581959, -0.04135664, 0.046008907, 0.013143363, 0.03807437, -0.018452084, 0.026586413, -0.026629224, -0.039558526, 0.01683949, 0.104747325, -0.023989135, 0.052830327, -0.0044810167, -0.020792488, 0.006714389, 0.011951756, -0.05591281, 0.014527626, 0.030253997, -0.005826035, -0.011302437, -0.020920925, 0.019308329, 0.0024010541, -0.019779263, -0.0032465963, -0.048606183, -0.04663682, 0.015341059, -0.013457321, 0.02274758, -0.045038495, 0.016525533, -0.05160304, 0.015968973, 0.038902074, 0.023546742, 0.010189318, 0.026058394, -0.016382825, 0.025316317, 0.039758317, -0.034363974, -0.012915032, 0.0019497416, 0.009597082, 0.036476046, 0.004302632, 0.012743782, -0.008070111, 0.013600028, 0.067186706, 0.020164574, -0.036647294, 0.034849178, -0.07791831, -0.04415371, 0.012993521, -0.043668505, -0.007841779, -0.02256206, 0.044410583, -0.0024313796, 0.01013937, -0.0043704184, 0.027556824, 0.011623529, 0.007848914, -0.0009075307, 0.00483065, -0.022333728, 0.06404714, 0.03071066, 0.023646638, -0.027314221, -0.021377588, -0.03262294, -0.008120058, 0.014841584, 0.022847475, -0.024174657, 0.019037185, 0.04392538, -0.002805987, 0.019022914, 0.015126999, 0.00412068, 0.004192034, -0.018395001, -0.0073993853, -0.002702524, -0.010424785, 0.010952803, 0.013999609, 0.006935586, 0.0077775605, -0.01043192, -0.0020121762, 0.019365411, 0.019436765, -0.0059901485, 0.039558526, -0.057339884, 0.0046843747, -0.04717911, -0.008291308, 0.0006649279, -0.002265482, -0.05003326, 0.03601938, -0.036704376, -0.011873267, 0.017338965, 0.0032947601, -0.025815792, 0.035334386, -0.0071817567, 0.006525302, 0.046465572, -0.04478162, -0.008212819, -0.037817497, 0.022476437, -0.026386622, -0.0038887803, 0.017281882, 0.01798115, 0.016068868, 0.07055461, 0.012429826, 0.043896835, 0.025287775, -0.0034196293, 0.004202737, 0.0102963485, 0.037018333, -0.004748593, 0.02767099, -0.012151546, 0.03716104, 0.047692858, 0.04241268, 0.04663682, 0.018295106, 0.0027167946, 0.032308985, 0.011223948, 0.016953655, -0.0068856385, 0.03502043, 0.00834839, 0.035163134, -0.014627522, -0.015883349, -0.04569495, 0.001018575, -0.040129356, 0.031937946, -0.019793535, 0.019422496, -0.008555316, -0.048834518, -0.034620848, -0.0030414544, 0.022062585, 0.014449137, -0.004224143, -0.00043592692, 0.039472904, -0.014870125, -0.029483376, -0.023732262, 0.06570255, 0.051631585, -0.020036137, 0.0025705195, -0.0046415622, -0.061135907, 0.0012433394, -0.023589555, -0.08505369, 0.016511261, -0.036476046, -0.02785651, 0.0102963485, -0.039872482, 0.027742345, -0.010931397, -0.02426028, 0.004067165, 0.008976304, 0.04149935, 0.041413724, 0.03199503, -0.050775338, 0.018452084, -0.035933755, 0.010724471, -0.012750918, -0.0134644555, -0.0052801785, 0.0019372547, 0.024945276, 0.00544786, 0.0039529987, -0.052830327, -0.044439126, 0.023632368, 0.0009855739, -0.005719004, -0.018209482, 0.014770229, -0.012929303, -0.015940432, 0.020549884, 0.025473295, 0.07260959, 0.038331244, -0.02768526, 0.015440955, 0.02239081, 0.054999482, -0.037246667, 0.053286992, 0.07329459, -0.026400894, -0.0070925644, -0.033051066, -0.05000472, 0.047264736, -0.022504978, 0.015198352, -0.023161432, 0.038902074, 0.013264665, -0.020507073, 0.00033201798, -0.031681072, -0.0016696781, -0.041470807, -0.010068016, 0.030853368, 0.035305843, 0.013664247, -0.049376804, -0.0033001117, -0.033450644, 0.022062585, -0.005686895, -0.0428408, 0.029026711, 0.030653577, -0.016454179, -0.0051517417, 0.060108412, -0.034021474, 0.013685652, 0.01126676, 0.051688667, 0.008619535, 0.0077062068, 0.0037246665, -0.021762898, 0.03636188, 0.01706782, 0.01840927, 0.014185129, -0.012436962, 0.028199008, 0.023061536, -0.005847441, -0.011973162, -0.026800474, -0.048035353, -0.02236227, -0.0034035747, 0.09584238, -0.007841779, 0.012543992, -0.010089423, -0.037446458, -0.0021816413, -0.003778182, -0.043953918, 0.060108412, 0.029626083, 0.024174657, -0.0037175312, -0.043839753, 0.034421057, -0.016653968, 0.044439126, 0.020578425, 0.005240934, -0.035505634, 0.02690037, -0.047236193, -0.01933687, 0.0035659045, 0.023732262, 0.0012219333, -0.029711708, -0.019979054, -0.029511917, 0.016539803, 0.07985914, 0.016168764, 0.008555316, 0.061935067, 0.0018462787, 0.0032465963, 0.02084957, 0.0050554145, -0.025887147, -0.043953918, 0.053743657, 0.031681072, -0.028755568, -0.0067357956, -0.034506682, -0.011166864, 0.015968973, -0.048634727, 0.020364365, -0.023032995, 0.008219954, -0.0032787055, 0.014463408, -0.056540724, -0.0157121, -0.030282538, -0.015112728, 0.025544649, -0.005105362, -0.0046558334, -0.02143467, -0.00089325994, 0.021934148, 0.0022690496, -0.04149935, -0.013457321, -0.0101251, -0.025302045, 0.049405348, 0.017652921, -0.021506025, -0.032508776, -0.05194554, -0.009775466, 0.034763556, -0.0025776548, -0.041213933, 0.0018908748, -0.030967534, 0.004648698, 0.028156197, -0.0016884084, 0.004381121, -0.008277037, -0.031395655, -0.00094097777, -0.016068868, -0.026857557, -0.014185129, 0.006054367, -0.040186442, 0.01666824, -0.004291929, -0.040272065, -0.01591189, 0.017167715, -0.049348265, -0.06547421, -0.04072873, 0.012558263, -0.005975878, 0.027742345, 0.0462087, -0.02577298, 0.07363708, 0.01840927, -0.01819521, -0.0023065105, -0.036875628, 0.011002751, 0.001889091, -0.010274942, 0.046379946, -0.050204508, 0.013136229, 0.0010096558, 0.0023047267, -0.0014484815, -0.06296256, 0.0031895132, 0.010788689, -0.017952608, 0.010239265, 0.012486909, -0.010917126, 0.037988745, 0.036447503, 0.022676228, -0.028270362, -0.025173608, 0.035848133, 0.0545999, 0.0025508972, 0.0075849053, -0.018680416, -0.045352455, 0.050661173, -0.029597541, 0.027970675, -0.013228988, -0.016539803, 0.0025241394, 0.0034731445, -0.056340933, -0.030253997, 0.012080193, -0.020150304, 0.024788298, -0.023503931, 0.009960986, -0.034963347, 0.004545235, 0.037617706, -0.040814355, -0.06119299, -0.035562716, 0.019379683, -0.0016964357, 0.038159993, 0.028113384, -0.0628484, -0.050518464, -0.046094533, 0.06256298, -0.062220484, -0.013428778, -0.032908358, -0.047607232, 0.015754912, 0.029426293, 0.046579737, -0.04623724, 0.013849766, -0.026201103, 0.043668505, -0.06884211, -0.016996467, -0.0202502, 0.015369602, -0.049490973, 0.022619143, -0.01185186, -0.013714193, -0.014570439, 0.05345824, 0.029997123, 0.017025009, -0.03681854, -0.039101865, -0.029768791, 0.01174483, -0.024146114, 0.040129356, 0.0072281365, 0.03296544, -0.01745313, 0.059537582, -0.011502227, -0.013022062, -0.016753864, -0.018509166, 0.051831376, -0.009390156, 0.0141137745, -0.005244502, 0.04055748, 0.005094659, 0.042555384, -0.013286071, 0.028156197, -0.058681335, -0.069013365, 0.04070019, -0.04378267, 0.0012576102, 0.022519248, -0.008255631, 0.025159338, -0.015512309, -0.00051865267, 0.084482856, 0.0019015778, -0.011830455, -0.043611422, 0.019479578, 0.0431833, -0.004670104, -0.019294059, 0.008655212, -0.01972218, 0.016596885, -0.0050268727, -0.03276565, -0.020407178, -0.008940627, 0.027442658, 0.00086204265, 0.051289085, -0.01913708, -0.025687356, -0.04846348, 0.03051087, 0.05719718, 0.018737499, 0.02217675, 0.025644543, -0.0085909935, 0.039729778, -0.02764245, -0.02804203, -0.009176094, 0.032280445, -0.016211575, -0.031338573, -0.0012995305, 0.040614564, -0.025601732, -0.04187039, -0.0065145986, 0.029854415, -0.052002624, -0.017538756, 0.0016964357, -0.004438204, -0.030796286, 0.028855463, 0.050860964, -0.0032341094, 0.002986155, 0.025544649, 0.010681659, -0.02122061, 0.017595839, 0.03824562, -0.050061803, -0.022133939, -0.019479578, -0.02122061, -0.03847395, -0.024602778, 0.0719246, -0.012108734, 0.030396704, 0.026429435, 0.0037746143, 0.058510087, 0.012579669, 0.0048449207, -0.0289839, -0.043468714, -0.035505634, -0.011345249, 0.025116526, 0.022804663, 0.017110633, -0.031310033, -0.0020995846, 0.05251637, 0.024217468, -0.04001519, -0.09070491, -0.0042598196, -0.041784763, -0.018509166, 0.024317363, 0.005954472, -0.03710396, 0.0036426098, 0.0000080272985, -0.008933491, 0.03071066, -0.013621434, -0.021149255, 0.002540194, -0.06575963, 0.007110403, -0.07420792, -0.054970942, -0.043896835, -0.055399064, 0.021063631, 0.05251637, -0.012601075, -0.032936897, -0.00844115, 0.030824827, 0.013742736, 0.014656063, 0.014063827, 0.024716944, -0.013864037, -0.0114736855, -0.021848522, 0.020350095, 0.033935852, -0.030767744, 0.02063551, 0.007827508, 0.003273354, -0.03048233, 0.028398799, 0.01250118, -0.060907573, -0.015098457, 0.040329147, 0.04375413, -0.04321184, -0.008077246, -0.009704112, -0.038045827, -0.0072959224, 0.036133546, -0.008341256, -0.0052230954, 0.04358288, -0.010103693, -0.0030967535, 0.033051066, 0.02745693, -0.012857948, -0.0056012706, -0.017310424, 0.008526775, -0.0030004259, 0.029055253, 0.009925309, -0.029283585, 0.041385185, 0.029155148, 0.009418697, -0.01666824, 0.0032697862, 0.020978007, 0.017424589, 0.03219482, -0.042698093, 0.017581567, -0.019665098, -0.031681072, 0.0067607695, -0.055056565, -0.02690037, 0.010952803, -0.06307673, -0.0005993716, -0.022019772, 0.010553222, 0.035277303, -0.006767905, -0.042926427, 0.026258186, -0.004752161, 0.012272848, 0.013571486, -0.050432842, -0.008805054, 0.004534532, 0.018295106, 0.0025651678, 0.011438008, 0.0022083991, 0.023960594, 0.03938728, -0.014755959, -0.034221265, -0.040985603, 0.00030548332, 0.014085233, 0.03487772, 0.0037175312, -0.035277303, 0.026928911, -0.054856773, 0.015897619, -0.020564156, 0.02708589, 0.0016054597, -0.00844115, 0.027813697, 0.038759366, 0.033793144, 0.0172248, -0.022005502, 0.021349046, 0.037446458, -0.047692858, 0.018823123, 0.01706782, 0.026243916, 0.009960986, 0.070440434, 0.0058902535, 0.089392, 0.028470153, -0.045409538, 0.013300342, 0.026101207, -0.0028398798, -0.0032697862, 0.00056235684, -0.0068249875, -0.006685848, 0.015968973, -0.035705425, 0.027342763, 0.0043418766, -0.0074636037, -0.018480625, -0.0053836415, 0.019593744, 0.014063827, -0.0031681072, 0.0047307545, -0.02671485, 0.06758629, -0.016682511, 0.026101207, -0.0066430354, 0.008013028, 0.031595446, 0.002138829, 0.027057348, -0.007449333, 0.011566445, -0.016468449, 0.026086938, -0.009176094, 0.00062523736, -0.012800866, -0.05365803, -0.035077512, 0.008312713, 0.01858052, 0.013971067, 0.007877456, -0.031195866, -0.01288649, -0.03733229, 0.038987696, -0.04809244, 0.029968582, 0.018152397, -0.03316523, -0.022447895, 0.016711053, 0.014078098, 0.008355526, 0.0034428192, 0.0913899, 0.0094829155, 0.037446458, 0.02821328, 0.014035285, 0.020150304, 0.021634461, -0.05471407, -0.04492433, 0.011794778, -0.02652933, 0.029283585, -0.06005133, -0.07820373, 0.028270362, 0.012808001, 0.009047657, -0.010303483, -0.0020175278, 0.0006894558, -0.027442658, -0.0039993785, 0.08488244, 0.037018333, -0.0151698105, 0.0108243665, -0.006446813, -0.059994247, -0.0097255185, -0.0310817, 0.041014146, -0.013236123, -0.011181135, 0.007877456, -0.052801788, 0.00081209507, 0.048377853, -0.008598128, 0.021891335, 0.05651218, 0.016425638, 0.011502227, 0.008740837, 0.030425245, -0.0037710464, 0.041527893, 0.053686574, 0.036304794, 0.05080388, 0.023832157, -0.051260546, 0.013036333, -0.016511261, 0.014798771, -0.029683167, -0.03676146, -0.006329079, -0.006211345, -0.016625427, -0.059594665, -0.03770333, 0.036476046, -0.013150499, -0.03904478, -0.040471856, -0.007110403, -0.04789265, -0.029397752, 0.0040778676, -0.041756224, -0.018666144, -0.018138127, 0.012993521, -0.04549516, 0.23997699, 0.054257404, 0.005983013, 0.030996075, 0.022305187, 0.037046876, 0.0050197374, 0.0018516302, 0.012201494, -0.06062216, -0.039644152, -0.020364365, 0.010724471, 0.03219482, -0.0064717866, 0.010082287, -0.07352292, 0.025687356, -0.01819521, -0.019936241, -0.024303092, 0.020492801, -0.012044515, 0.05360095, 0.01259394, 0.021720087, -0.009968121, -0.04492433, -0.03396439, -0.026229644, 0.024902465, 0.019351142, 0.0485491, -0.016768135, -0.001098848, -0.02139186, -0.016368553, -0.022890288, -0.019051455, -0.011823319, -0.008177142, -0.05548469, 0.019650826, -0.012180088, 0.022604873, 0.012665293, -0.032337528, 0.008826461, 0.04697932, -0.025244962, 0.045980368, -0.0534297, 0.015769182, -0.049519513, -0.023646638, 0.008890679, -0.08613826, -0.05322991, 0.037018333, 0.017253341, 0.011495092, -0.0030771312, -0.0025116527, 0.028184738, 0.009668435, 0.055399064, -0.01382836, 0.013657111, -0.014855854, -0.014984291, 0.036704376, -0.0051232004, -0.008419745, -0.043468714, -0.02177717, 0.026771933, 0.03185232, 0.038702283, 0.010724471, -0.05380074, 0.019793535, -0.0029469104, 0.0010863611, -0.029283585, 0.03490626, 0.018437814, -0.0055120783, 0.00045844793, 0.0073280316, 0.016910842, 0.023532473, 0.065816715, -0.0030022096, 0.005319423, -0.009097605 ]
from transformers import TFPreTrainedModel model.save_pretrained("path_to/model") model = TFPreTrainedModel.from_pretrained("path_to/model") ImportError Another common error you may encounter, especially if it is a newly released model, is ImportError: ImportError: cannot import name 'ImageGPTImageProcessor' from 'transformers' (unknown location) For these error types, check to make sure you have the latest version of 🤗 Transformers installed to access the most recent models:
[ -0.04053327, 0.01685704, -0.010822056, 0.015288626, -0.021030385, -0.04255175, 0.025981117, 0.01389751, 0.014483961, 0.054144375, -0.007262438, 0.0052780537, 0.0726653, -0.0032288868, -0.0118722115, -0.0052951016, -0.012983739, -0.027276764, -0.06453682, 0.025040068, 0.017402574, 0.022898842, -0.038978495, -0.0035937135, 0.0011490337, 0.006444135, 0.023117056, 0.006420268, 0.0564629, 0.034341443, -0.020443933, -0.024030829, 0.009240003, -0.0013408234, 0.013215591, -0.023580762, 0.028504217, -0.010406085, -0.013488359, -0.043779206, 0.032813948, -0.01760715, 0.02081217, -0.03892394, -0.011715369, -0.022039624, 0.005261006, 0.048743576, 0.014606707, 0.022203285, 0.004810939, 0.023689868, -0.010692491, -0.013870234, -0.04154251, -0.009458218, -0.011715369, 0.011858572, -0.026758505, -0.047134247, 0.028804261, -0.008899044, 0.0045006657, -0.031804707, 0.05929968, 0.060881734, -0.013747488, -0.02351257, -0.0087149255, 0.082375824, -0.008858128, 0.07457467, 0.01863003, -0.061045397, -0.024549088, -0.033905018, 0.0133792525, -0.015288626, -0.022967035, 0.02409902, -0.005905419, 0.03764193, 0.0119676795, 0.022366945, -0.046861477, -0.034586936, -0.00026083406, -0.021030385, 0.005796312, -0.015738692, -0.022994312, 0.041187912, 0.006969213, 0.03488698, -0.01736166, 0.025203729, -0.019680185, 0.018357262, -0.03185926, -0.026185693, -0.004241537, 0.103324376, -0.01879369, 0.022189647, 0.004347234, 0.009812815, 0.012417747, 0.021712303, -0.022762459, -0.0028691746, 0.02847694, 0.023553485, -0.0045381715, 0.022380585, 0.007637494, 0.038651172, -0.032404795, 0.050271075, -0.04997103, -0.017839003, 0.02460364, 0.012104063, 0.04012412, -0.035268854, -0.038460236, -0.031122787, -0.038378406, 0.038460236, 0.0026236835, 0.0024497942, 0.007037405, -0.02915886, -0.010597022, 0.033659525, -0.057172094, 0.0045620385, -0.027140379, 0.011278941, 0.044952106, -0.013808861, -0.014183917, -0.030304484, 0.0062395595, 0.10010572, -0.0019110782, -0.00488595, 0.043124564, 0.019857483, -0.017743533, 0.028640602, -0.0642095, -0.026076585, -0.004323367, 0.009655974, -0.009669612, 0.041106082, -0.008101199, 0.005022334, 0.03851479, 0.01760715, 0.023880806, 0.0379147, 0.0036448576, 0.00049055554, 0.018507283, 0.06988306, -0.029840779, -0.05485357, -0.0036516767, -0.041678894, 0.062136468, 0.004896179, -0.0220669, 0.004227898, 0.030659081, -0.02191688, 0.0046984223, 0.012567769, 0.0042585847, 0.05242594, -0.005046201, -0.010133318, -0.0028862224, 0.023580762, 0.017252553, 0.050871164, 0.0018633439, -0.033059437, -0.06377307, 0.03033176, 0.030713635, 0.035105195, -0.014879474, 0.038542066, -0.020157527, 0.007262438, -0.038487513, -0.006304342, 0.010051487, -0.055753704, -0.047325183, 0.031641044, -0.032568455, -0.0021309971, -0.019175565, -0.013542913, -0.008653553, 0.04154251, -0.025872009, -0.031968366, 0.03311399, -0.016788848, -0.0008370557, -0.03109551, 0.057663076, -0.048607193, -0.011688093, 0.028967923, 0.01500222, 0.037205506, 0.02720857, 0.029677117, 0.010597022, 0.03436872, -0.0433155, -0.0429609, 0.0019332406, 0.01592963, 0.007357907, 0.007651132, 0.0050700684, 0.018016301, -0.0018752775, 0.043424606, -0.0000012120046, 0.008128475, 0.046152283, 0.04465206, 0.009758262, 0.02038938, -0.028613325, 0.061209057, -0.0069078403, 0.007119235, 0.020880362, -0.02291248, -0.0034453962, 0.009212727, -0.03750555, 0.02502643, -0.025203729, 0.015643224, -0.005605375, -0.036196265, -0.042988177, -0.026949441, 0.009717347, 0.008946778, -0.03717823, -0.022080539, 0.027331317, 0.0026407316, -0.0059258766, -0.03726006, 0.0402605, 0.045252148, -0.011217569, 0.012608684, 0.017757172, 0.015656862, -0.02756317, -0.007473833, -0.050598394, 0.005973611, -0.0936684, -0.019121012, 0.0534079, -0.030304484, 0.00020425607, -0.019789292, 0.0076306746, 0.029295243, -0.0030601118, 0.037478272, 0.033577695, -0.007289715, -0.00842852, -0.013345156, -0.02964984, 0.019080095, -0.04522487, -0.016447889, 0.019775653, -0.028831538, 0.034314167, -0.051389422, -0.016066013, -0.0093013765, -0.023580762, -0.017975386, -0.04195166, -0.029568011, 0.0068703345, -0.040396884, 0.0029561191, 0.001963927, 0.028831538, 0.0019076687, 0.07271985, 0.03499609, -0.045552194, 0.0036721341, 0.013788404, 0.012799621, -0.055235445, 0.06000888, 0.031831983, -0.0152204335, -0.02579018, -0.013924788, -0.015111326, -0.036878183, -0.020212082, -0.03412323, -0.0514167, 0.03447783, -0.004255175, -0.05537183, 0.05755397, -0.055562764, -0.014934028, 0.010440181, -0.0063964007, 0.022721544, 0.03573256, 0.024644556, -0.0070033087, -0.00631798, -0.047243353, 0.002299772, 0.02165775, -0.038460236, 0.032732114, 0.009676431, 0.01913465, -0.015711416, 0.058699593, -0.0325139, 0.03581439, 0.0020593957, 0.0045381715, -0.005915648, 0.012281363, 0.031641044, 0.040424164, 0.025571965, -0.05332607, 0.014974942, -0.038378406, 0.021603197, 0.029513458, 0.025258282, 0.038405683, 0.028040512, 0.025694711, -0.03346859, -0.017034339, 0.014483961, 0.03565073, -0.015370456, 0.004060828, -0.027331317, -0.016406974, 0.0069658034, -0.0013902625, 0.004834806, 0.041678894, 0.025981117, 0.030713635, -0.015943268, -0.02409902, -0.008571723, 0.017798088, 0.02964984, -0.008298955, 0.049480047, 0.03346859, 0.03985135, -0.022230562, -0.028586047, 0.019284671, -0.042824518, 0.051389422, -0.037614655, -0.046397775, -0.0510621, 0.01356337, 0.033823185, 0.01633878, -0.0014294728, 0.028340558, -0.045115765, 0.019066457, 0.036932737, -0.017811727, -0.04887996, -0.044024695, 0.062900215, 0.00012317163, -0.014279385, -0.063063875, -0.018657306, -0.028040512, 0.024480894, 0.0075147483, 0.026690312, 0.0051280316, -0.01145624, 0.010828875, 0.0072283424, -0.029786225, -0.03625082, -0.0029816912, 0.007964815, 0.021207683, -0.02048485, -0.009212727, -0.047597952, 0.028095067, 0.021180406, -0.00038975937, -0.047516122, -0.03589622, 0.02216237, -0.070483156, 0.03597805, 0.030577252, 0.011435783, -0.0044256547, -0.02006206, 0.016175121, -0.011231207, -0.02064851, -0.0264721, -0.017798088, 0.022639712, 0.058590487, -0.016366057, 0.00665553, 0.011510794, 0.05679022, -0.049698263, 0.008435339, -0.010099221, -0.011994956, -0.027522253, 0.010174233, -0.0135701895, 0.022885203, -0.020239359, -0.041651618, -0.044870276, -0.021616835, -0.023321632, -0.05351701, 0.045115765, -0.039933182, -0.013195134, 0.028940646, 0.040287778, -0.013508817, 0.05351701, 0.05299875, -0.0023492111, -0.02823145, -0.029077029, 0.00019285524, 0.027958682, -0.008633096, 0.017716257, -0.05695388, 0.07124691, 0.03630537, 0.013256507, -0.010815237, -0.055071786, 0.006843058, 0.00048203155, -0.03916943, 0.0487163, -0.004937094, -0.006860106, 0.007876165, -0.011722188, 0.005155308, 0.013461082, -0.037314612, -0.031122787, 0.041760724, -0.010903886, -0.0042244885, 0.011394868, -0.023894444, 0.057172094, -0.008721745, -0.027849576, -0.024726385, -0.009390025, 0.028613325, -0.0031231893, -0.07102869, 0.004302909, -0.02317161, -0.01768898, 0.0058201794, 0.032977607, 0.012042691, 0.015070411, -0.014647622, 0.04997103, -0.0065839286, -0.035596177, -0.008053464, 0.016543357, 0.002308296, 0.014934028, -0.010862971, -0.058372274, 0.00816939, -0.031722873, 0.06311843, -0.05891781, 0.017320745, -0.008789937, -0.040587824, -0.0057758545, 0.03835113, 0.05234411, -0.052371386, 0.02292612, -0.039933182, 0.029131582, -0.023962636, 0.01146306, 0.0018616391, -0.02468547, -0.044297464, 0.04186983, -0.00076289696, 0.027958682, -0.00047478615, 0.073701814, -0.0018207239, -0.0037573741, -0.00097599666, -0.03049542, -0.051853128, 0.028204173, -0.026144776, 0.01583416, -0.027154017, 0.044352017, -0.05280781, 0.022803374, -0.030713635, 0.0037300973, 0.008373966, 0.011128919, 0.029431628, 0.005584917, 0.019611992, 0.0039039867, 0.025558326, 0.024917323, 0.021889603, 0.040915143, -0.0355689, -0.045279425, -0.07310172, 0.030440867, -0.03185926, -0.013024654, -0.0011686388, -0.011592624, 0.044079248, -0.009560506, 0.02570835, 0.050762057, 0.024044467, -0.044870276, -0.03892394, -0.030195376, 0.041187912, -0.011940403, 0.024780938, -0.009730985, -0.030440867, -0.038623895, -0.00006249149, 0.0073101725, -0.02325344, 0.00800573, 0.025817456, -0.02891337, 0.0534079, -0.05029835, -0.035950772, -0.014961304, 0.0136179235, 0.0030379496, 0.052180447, 0.018657306, -0.007971634, -0.023280717, 0.07261074, -0.034777872, 0.023976274, 0.00019733033, 0.024480894, -0.021780495, -0.022489691, 0.03886939, 0.018916436, -0.027617723, -0.08401243, -0.030304484, 0.0060724895, -0.016870677, -0.02291248, 0.0016204102, -0.043506436, -0.015875077, 0.014415769, 0.027985958, 0.033604972, 0.017675342, 0.019898398, 0.0062395595, -0.029377073, 0.014197555, 0.060554415, -0.008749022, -0.034177784, -0.05662656, -0.024794577, -0.025080983, -0.023389824, 0.0672645, -0.018684583, -0.0097719, 0.025476497, 0.005424666, 0.053298794, -0.013706573, 0.019107372, -0.01609329, -0.011299399, -0.046725094, -0.026990358, -0.0009487199, -0.0063895816, 0.016297866, 0.027740467, -0.014088448, 0.020266635, 0.0038323852, -0.030631805, -0.058972362, -0.05114393, -0.02004842, -0.016161483, 0.002823145, -0.042415366, -0.017675342, -0.010665215, 0.010276521, -0.023839891, -0.02561288, 0.0021258828, -0.0038630716, -0.019762015, -0.048334423, 0.0040505994, -0.085812695, -0.040015012, -0.06819191, -0.026908526, 0.031913813, 0.011272122, -0.012683695, -0.03764193, -0.030549975, 0.056244686, 0.010835694, -0.0076988665, -0.011306218, -0.039033048, -0.027085826, -0.007978453, -0.024821855, 0.009560506, 0.03976952, -0.009560506, 0.013283784, -0.017879918, 0.007760239, -0.020553041, -0.02924069, 0.017839003, -0.026444823, -0.04137885, 0.017825365, 0.024590002, -0.04770706, 0.012670056, -0.017047977, -0.038705725, -0.023976274, -0.03488698, -0.014920389, 0.013952064, 0.030713635, 0.03876028, 0.020662148, 0.002327049, -0.0062225116, -0.0063759433, -0.0024378607, 0.024740024, 0.013317879, -0.0033499275, 0.05250777, 0.03758738, -0.022857927, 0.00035885992, -0.02351257, 0.019734738, -0.036223542, -0.003978998, -0.008674011, 0.05820861, 0.03646903, -0.0025265103, 0.008298955, -0.017579874, -0.036796354, -0.0013237754, -0.062027358, -0.0073169917, -0.0037471454, -0.06879199, -0.030768188, -0.01962563, -0.0111221, 0.008803575, -0.0016084766, -0.052562322, 0.0036209903, 0.042606305, 0.03218658, 0.031450108, -0.053053305, 0.06208191, 0.005247367, -0.016720656, -0.031477384, 0.005492858, -0.020607594, 0.06442771, 0.024562726, -0.01609329, -0.09006787, 0.0195438, -0.016120566, 0.0062463786, 0.029377073, 0.00404719, -0.046779647, 0.03455966, -0.038542066, 0.0024702519, -0.03734189, 0.04727063, -0.003126599, 0.026594844, 0.0040505994, 0.018752774, 0.035759836, -0.007010128, 0.05512634, 0.037232783, 0.024658194, -0.031122787, 0.012390469, -0.0057656257, -0.0012743362, 0.026185693, 0.046152283, 0.010092402, 0.040287778, 0.011449421, -0.008128475, 0.013590647, 0.021957794, 0.0016920117, -0.03690546, 0.0033141267, -0.03494153, -0.00530874, -0.012349554, -0.040669654, 0.0046984223, -0.033441313, -0.0033158315, -0.014047533, 0.0015147127, 0.033223096, -0.007494291, 0.04012412, -0.016325142, -0.015984183, 0.08406699, 0.009124077, -0.018889159, 0.0036687246, 0.01373385, 0.023389824, -0.0057758545, 0.03295033, -0.0037471454, 0.007180608, -0.07593851, 0.02047121, 0.032895777, 0.006294113, -0.016884316, 0.00048629355, 0.0134269865, 0.0035187025, -0.026922164, 0.0025537868, 0.030740911, -0.024740024, 0.0145930685, -0.023621676, 0.002199189, -0.066882625, -0.020934915, 0.047734335, 0.0048893597, -0.0070237666, 0.004490437, 0.001457602, 0.017498044, 0.035268854, 0.048907235, 0.0011609672, 0.057008434, 0.031722873, 0.043942865, -0.01760715, -0.006866925, -0.04574313, -0.023908082, 0.02426268, 0.040205948, -0.011810838, -0.0152204335, -0.011019812, -0.000018739456, 0.029349796, -0.015206795, -0.010740225, -0.009465037, 0.009049066, -0.055180892, -0.014129363, 0.07026494, 0.050680224, 0.016325142, 0.012956463, -0.040669654, -0.016216036, 0.023621676, -0.029349796, 0.044788446, -0.010978897, -0.022694267, -0.0015147127, -0.03436872, 0.0037880605, 0.038896665, -0.019843845, -0.021685027, 0.029022476, 0.05569915, 0.014293023, 0.04650688, 0.009587782, 0.0034829017, 0.025844732, 0.053735223, 0.012983739, 0.0045143045, -0.0038869388, -0.024085382, 0.0071669696, 0.018616391, -0.0022724953, -0.059354234, -0.0069078403, 0.016638825, -0.015356817, -0.014374854, -0.029758949, -0.026076585, 0.029704396, -0.00783525, 0.009062705, -0.025762903, -0.038296577, -0.04901634, 0.0037573741, -0.01423847, -0.04004229, 0.0012214875, -0.013031473, -0.0023219343, -0.045115765, 0.21537732, 0.046125006, 0.0210713, -0.039033048, 0.03150466, -0.0007339154, -0.029295243, -0.062736556, -0.004978009, -0.04077876, -0.019666547, -0.022735182, -0.026785782, 0.066664405, -0.03371408, 0.0650278, -0.09279555, 0.02173958, 0.0010714653, -0.027508615, -0.018561836, 0.032623008, 0.017388936, -0.031040955, -0.02183505, 0.045552194, 0.00006526179, -0.057499416, -0.015520478, -0.00035566342, 0.031913813, 0.0044188355, 0.05231683, -0.065791555, 0.002620274, 0.010487915, 0.013890691, 0.016229674, 0.023526208, -0.019611992, -0.002241809, -0.016025098, -0.032159302, 0.01339971, -0.00606908, 0.041678894, 0.009212727, 0.017170722, 0.07168333, -0.05343518, 0.047734335, 0.0012649599, -0.00022950838, 0.016829763, -0.036960013, 0.0043881494, -0.036523584, -0.025340112, -0.008360328, 0.01466126, 0.04274269, -0.012363193, 0.033141267, 0.00039189035, 0.0057758545, 0.034750596, -0.009069524, 0.042333536, -0.040424164, -0.0115789855, -0.00015737413, -0.017252553, -0.007637494, -0.0067373603, 0.04274269, 0.055180892, 0.013386072, 0.013856595, 0.0038289756, -0.012295001, 0.012547311, -0.0023730784, -0.012608684, 0.024671832, -0.022803374, 0.01878005, -0.033659525, -0.019816568, -0.008367147, -0.020321188, 0.037614655, 0.056081023, -0.020498488, -0.00012221269, 0.0047461567 ]
import os os.environ["CUDA_VISIBLE_DEVICES"] = "" Another option is to get a better traceback from the GPU. Add the following environment variable to the beginning of your code to get the traceback to point to the source of the error: import os os.environ["CUDA_LAUNCH_BLOCKING"] = "1"
[ -0.029300952, -0.013519166, -0.038690835, 0.019218145, -0.027759543, -0.0076434193, 0.018482793, -0.029866608, 0.025454495, 0.053426158, -0.044630215, -0.01274139, 0.03241206, -0.005843928, 0.0059888773, 0.006080796, -0.01754946, -0.023884801, -0.050541315, -0.006823219, 0.025892878, -0.010429272, -0.045478698, -0.02641611, 0.008011095, 0.021622181, 0.00027443128, -0.011150483, 0.047769602, 0.060751397, -0.05599989, -0.03999184, -0.00458888, -0.014417144, 0.0067454414, -0.06273119, -0.014692901, 0.01897774, -0.048985764, -0.04955142, 0.004500496, 0.008124227, 0.017012088, -0.02958378, -0.038577702, 0.013745428, -0.007282814, -0.0037686795, 0.013837347, -0.020731272, -0.006904532, 0.036795888, -0.025214093, 0.029414084, -0.06923623, -0.012995934, -0.00041849667, -0.018313095, -0.0056318073, -0.024761569, 0.03354337, 0.008993922, 0.026331263, -0.049438287, 0.01968481, 0.03416559, -0.007820187, 0.02334743, 0.00005046155, 0.058092818, -0.03662619, 0.036767606, 0.02602015, -0.08354731, -0.050456468, 0.019755516, -0.011199978, 0.01202725, -0.03212923, 0.027391866, -0.0088595785, 0.025581768, 0.009807051, 0.026331263, -0.035777707, 0.025991868, 0.030913072, -0.018143399, -0.031450443, -0.01763431, 0.02712318, 0.036286797, 0.0047161523, 0.04836354, 0.028480753, 0.02732116, -0.0014150225, 0.018228248, 0.021947432, -0.044545367, -0.009333315, 0.07885237, -0.066351384, 0.041490827, -0.02580803, 0.015838353, 0.035466596, -0.015230274, -0.03509892, -0.04027467, 0.013024217, 0.03272317, 0.021650463, 0.006628775, -0.02722217, 0.03764437, -0.02387066, 0.04089689, -0.0017552996, -0.027872672, 0.05772514, -0.032977715, 0.011822199, -0.031026201, -0.06646451, -0.028678732, -0.021565614, 0.052917067, 0.007947459, 0.0031429231, 0.0010491142, 0.010118162, 0.020024203, 0.061769575, -0.028834287, -0.022428239, -0.0029555499, 0.006529785, 0.019416124, -0.012401996, -0.019189863, -0.027335301, 0.004988374, 0.09203214, 0.025412071, -0.016248453, 0.031224182, -0.016276736, -0.028523177, 0.003507064, -0.04825041, 0.0037474674, 0.001438886, 0.01569694, -0.015640374, 0.0065757446, 0.0067171585, 0.015385829, 0.008449478, 0.030828223, 0.03139388, 0.022003997, -0.033430237, 0.011023211, -0.011390887, 0.058771603, -0.018454509, -0.05271909, 0.008527257, -0.042452443, 0.034702964, 0.022173693, -0.047203947, -0.0017906531, 0.048024148, -0.0387474, 0.05447262, 0.0021883796, -0.022993894, 0.014084821, -0.038690835, 0.0083363475, 0.0040515075, -0.0013840882, 0.019854506, 0.015880777, 0.014049468, -0.021141373, -0.028537318, 0.03241206, 0.010867655, 0.00045826932, -0.013087853, 0.051785756, -0.03286458, 0.012981793, -0.06318372, 0.008887862, 0.012663612, -0.043272644, -0.025751464, 0.027264593, -0.051955454, -0.040246386, -0.024153488, -0.010563616, 0.012529269, 0.013780781, -0.013731286, -0.012218158, 0.0115252305, 0.015159567, -0.027816107, 0.006363624, 0.030545395, 0.019614102, 0.0060454425, 0.030828223, 0.008046449, 0.046666577, 0.035919122, 0.0154282525, 0.048335258, 0.028678732, -0.013611085, -0.011164625, 0.027971663, -0.0009898971, 0.031959534, 0.04822213, 0.0060454425, 0.06046857, -0.024492882, 0.019189863, -0.013724215, -0.025610052, 0.032440342, 0.03753124, -0.005313626, 0.031507008, -0.03866255, 0.0051863533, 0.005896958, -0.014593911, 0.004182315, -0.031337313, -0.024082782, -0.020999959, -0.03130903, 0.041434262, 0.0022679248, 0.0027787825, 0.0046171625, -0.040076688, -0.039397903, -0.068104915, -0.015866635, 0.06340998, -0.039143357, 0.004040901, -0.008230287, 0.021296928, -0.009114124, -0.008117156, 0.08394327, 0.04935344, -0.005995948, 0.011991896, 0.014551487, -0.01233836, -0.04426254, -0.0210141, -0.048391826, 0.017874712, -0.088355385, -0.025652476, 0.030403981, -0.08620589, 0.0017393905, -0.024860557, -0.01631916, 0.0033196905, 0.023630258, 0.06544634, 0.02743429, 0.011058564, -0.015781788, 0.005214636, -0.018723195, 0.016050475, -0.0538504, -0.025977727, 0.027307017, -0.031846404, 0.03730498, -0.03235549, -0.010754525, -0.026133282, -0.02682621, -0.009114124, -0.02223026, 0.0018525217, 0.013448459, -0.010669677, -0.018723195, -0.001320452, 0.014622194, -0.028947419, 0.083038226, 0.032496907, -0.034618113, -0.015555525, -0.014509062, 0.038521137, -0.049127176, 0.077890754, 0.007261602, 0.00754443, -0.03538175, -0.025836313, -0.034222156, -0.006893926, -0.0122393705, -0.042311028, -0.03190297, 0.027052473, -0.018935317, -0.05189889, 0.041066587, -0.052379698, -0.016983805, 0.0022802986, 0.012684824, 0.07698571, 0.0789655, 0.028608026, -0.0043802946, 0.0015926737, -0.04567668, -0.010535333, 0.010690888, -0.01958582, 0.028325198, 0.0039737294, 0.0073181675, -0.0136676505, 0.046892837, -0.005914635, 0.0154282525, -0.02966863, -0.012635329, -0.011058564, 0.0016607291, -0.02049087, 0.008202004, 0.029187823, -0.041179717, -0.007699985, -0.029810043, 0.020377738, 0.028509036, 0.05099384, 0.014806032, 0.03204438, 0.0047267587, -0.027406007, -0.010683818, 0.002987368, 0.037078716, 0.030743374, 0.019557538, -0.007989883, -0.022810057, -0.0038605984, 0.009198972, 0.035551447, 0.035834275, 0.02611914, 0.031676706, 0.010450485, -0.030036306, -0.0149050215, -0.011709068, 0.04067063, -0.008944427, 0.03490094, 0.025765607, 0.046723142, -0.040048406, -0.0041681738, 0.022555511, -0.013801993, 0.035636295, 0.0053171613, -0.002163632, -0.04884435, 0.028735297, 0.05048475, 0.011454524, -0.008810084, 0.023333289, -0.019020164, 0.010415131, -0.0024641366, -0.020208042, -0.0428484, -0.03255347, 0.043074664, 0.00031155243, 0.031478725, -0.06940593, -0.012295935, 0.01692724, -0.008626246, -0.01753532, -0.0035371142, -0.0084424075, 0.012967652, 0.04061406, 0.023630258, -0.037050433, -0.056876656, -0.020448444, 0.011878765, 0.060525134, -0.025991868, -0.0068196836, -0.022923188, 0.006066655, 0.048476674, -0.023601973, -0.05741403, -0.013264621, 0.014155528, -0.08049277, 0.019317133, 0.050315052, 0.009764628, -0.0093121035, -0.0027946916, -0.032185797, 0.0320161, -0.022965612, -0.057696857, -0.033232257, -0.010966646, 0.036088817, -0.008421196, -0.021565614, 0.00637423, 0.057244334, -0.07517561, 0.01610704, -0.037220128, -0.006292917, -0.030149436, -0.0016306787, 0.0003203908, 0.041010022, 0.0070600873, -0.040331233, -0.029951457, 0.02316359, -0.029725194, -0.051361516, -0.008230287, -0.023743387, -0.014650476, 0.027151462, 0.021480767, -0.011447452, 0.08699781, -0.0032065595, -0.0028388833, -0.02314945, 0.022216119, 0.0014742395, -0.00927675, 0.004938879, 0.0027752472, 0.0022396422, 0.03753124, 0.024832275, 0.021537332, -0.010181799, -0.06369281, -0.008470691, 0.0328363, -0.011970684, 0.040557496, -0.0020204505, 0.022428239, 0.01958582, 0.033373673, 0.012960581, 0.006688876, -0.02927267, 0.009708062, 0.029951457, 0.0007883823, -0.016856533, -0.021905009, -0.023601973, 0.025228234, -0.044290822, -0.008548468, -0.050145358, -0.006441402, 0.04112315, -0.023700964, -0.052266564, 0.0034946902, 0.0009138871, -0.015583808, -0.0033320643, -0.0046454454, 0.023389854, 0.0019709559, -0.047769602, 0.062165536, -0.0005448853, -0.034052458, -0.031224182, 0.013278762, -0.019246427, 0.006483826, 0.015569666, -0.029159538, -0.03181812, -0.0044757486, 0.044205975, -0.07251703, 0.03478781, -0.006109079, -0.015046435, 0.00027708279, 0.04779789, 0.021494908, -0.048335258, 0.028056512, -0.024096923, 0.0031535293, -0.061826143, 0.01479189, -0.016616128, 0.0051439293, -0.055915043, 0.011496947, -0.019727234, 0.010796948, 0.011376745, 0.033571653, 0.015145425, 0.017705016, 0.0012470935, -0.031026201, -0.008357559, 0.019090872, -0.047175664, 0.027420148, -0.02121208, 0.011242403, -0.034844376, 0.028692873, -0.029102974, -0.026444392, 0.018143399, 0.014056538, 0.03733326, 0.006780795, 0.0009669173, -0.0016359816, 0.03475953, 0.014721183, 0.018058551, -0.014091892, 0.011228261, -0.06629482, -0.08976952, 0.036852453, -0.022555511, -0.0044121128, -0.00007540231, 0.0052782726, 0.061543316, 0.002494187, -0.0021954502, 0.06680391, 0.010853514, -0.0395676, -0.0035017608, 0.0053701918, 0.06363624, -0.0035813062, 0.03009287, -0.010266647, -0.020886827, -0.022654502, -0.009227254, -0.019557538, -0.012189875, -0.005373727, 0.012373713, -0.019557538, 0.008414125, -0.03255347, -0.03843629, -0.045026176, 0.000486994, 0.02611914, 0.054076664, 0.049523138, 0.0071237236, -0.024040358, 0.10447656, 0.0059712003, -0.026585806, -0.03552316, 0.018779762, -0.0040939315, -0.0146787595, 0.04539385, 0.025850454, -0.05059788, -0.06425846, -0.0064944318, 0.01631916, -0.07834328, -0.039199922, -0.028410045, 0.0021194404, -0.014205023, 0.014424214, 0.025723182, 0.02365854, 0.0063671595, 0.030828223, 0.011595937, -0.02324844, 0.0055929185, 0.05209687, -0.0328363, -0.018991882, -0.02579389, -0.013611085, -0.04211305, -0.04414941, 0.072347336, -0.00816665, -0.013215126, 0.013328257, 0.025779748, 0.0377575, -0.0014521437, -0.0022219655, 0.008626246, -0.019614102, -0.042593855, -0.017521178, -0.006423725, 0.020165617, 0.013674721, 0.0060772607, -0.0057343324, 0.02121208, 0.021296928, -0.05698979, -0.055462517, -0.03631508, -0.035296902, -0.006911603, 0.039426185, -0.0050201924, -0.008414125, -0.0022007532, -0.023502985, -0.010648464, -0.02346056, 0.0025578232, -0.03385448, -0.03744639, -0.035947405, -0.03699387, -0.055801913, -0.027406007, -0.06657765, -0.023856519, 0.036286797, 0.025256516, -0.023955509, -0.051361516, -0.011914118, 0.034307003, -0.039143357, 0.0030244892, 0.0071414, -0.012253512, -0.014035326, 0.018072693, -0.003793427, 0.0041045374, 0.024535306, 0.007353521, 0.0336565, 0.017888853, 0.010761595, -0.020858545, 0.023432277, 0.03159186, -0.047175664, -0.04191507, -0.02428076, 0.034533266, -0.03541003, -0.010181799, -0.0071060467, -0.010365636, -0.017111078, 0.004730294, -0.026939342, 0.021763595, 0.0028335804, 0.019967638, 0.0032931755, 0.0487595, 0.016177746, 0.033090845, 0.009658567, 0.020561576, -0.020985818, -0.0030527718, 0.033628218, 0.036032252, -0.032921147, 0.006098473, 0.018270671, -0.00877473, 0.023361571, 0.003420448, -0.0044757486, 0.052690808, 0.050513033, 0.008399984, 0.015484818, -0.016361585, -0.0676524, 0.026387827, -0.06408876, -0.007282814, -0.0026020152, -0.04414941, -0.011044423, -0.019302992, 0.0057767564, 0.032694887, -0.006299988, -0.0043484764, 0.016248453, 0.005882817, 0.03458983, 0.028919136, -0.050060507, 0.01865249, -0.02039188, 0.026755504, 0.0005718423, -0.030517112, -0.0013664115, 0.040133256, -0.0029856001, -0.007982813, -0.06493725, -0.03221408, -0.036286797, 0.007261602, 0.007017663, -0.011808058, -0.03128075, 0.027278734, -0.054981712, 0.009085841, -0.018143399, 0.028452469, 0.0015997443, 0.0018701984, 0.016474715, 0.036173668, 0.049523138, -0.027561562, 0.03979386, 0.007834328, 0.04109487, -0.034702964, 0.0057802917, -0.0149050215, 0.021353494, -0.0042176684, 0.022286825, 0.024973689, 0.041632243, 0.028890854, -0.044517085, -0.008343418, 0.028721156, -0.017874712, 0.00012837727, -0.006190392, -0.037163563, 0.020561576, -0.029923175, -0.015173708, 0.03413731, -0.015555525, 0.0017093401, 0.0020487334, -0.019218145, 0.016559564, -0.0036979725, 0.012599976, -0.021707028, -0.009672709, 0.08122812, -0.00010313269, -0.00079633686, -0.015993908, 0.011461594, 0.047854453, 0.004557062, 0.032921147, -0.009708062, 0.020165617, -0.041010022, 0.008498973, 0.033741347, 0.0037686795, 0.029838325, -0.027801966, -0.01579593, 0.0079191765, 0.011242403, -0.002305046, 0.012698965, -0.014919163, 0.027420148, -0.03509892, 0.021890866, -0.022795916, -0.035947405, 0.0344767, -0.016305018, -0.013710074, 0.0004671077, 0.00006181333, 0.0605817, 0.013582801, 0.052860502, -0.034533266, 0.0625615, 0.0326666, 0.009672709, 0.04273527, 0.016234312, -0.07998368, -0.033741347, 0.014410073, -0.012585834, -0.01794542, -0.01825653, -0.01887875, 0.05701807, 0.024563588, -0.032496907, -0.013858559, -0.023305004, -0.00007054122, -0.020632284, -0.0069398857, 0.078795806, 0.050711013, -0.016036332, -0.0070318044, -0.04098174, -0.006066655, 0.015824212, 0.015866635, 0.02548278, -0.004129285, -0.0077565503, 0.0141908815, -0.028084794, 0.007876752, 0.03662619, -0.014608053, -0.0054232217, 0.028636308, 0.023177732, -0.01214038, 0.070706934, 0.039115075, 0.01214038, 0.031082768, 0.056565545, 0.029357519, 0.020674707, 0.020222183, -0.00678433, -0.0117868455, -0.00034292863, -0.0127626015, -0.006558068, -0.0044333246, 0.0077353385, -0.017987844, -0.041575678, -0.0135120945, 0.0025083285, 0.0030527718, 0.001856057, -0.009983819, -0.0074171573, -0.016997946, -0.048674654, -0.018935317, -0.02477571, -0.007201501, 0.00050732226, -0.04477163, 0.031761553, -0.041236285, 0.2346339, 0.050399903, 0.024662578, -0.027999945, 0.011914118, 0.035014074, -0.004730294, -0.040953457, -0.0074878642, -0.05984635, -0.051983736, -0.0077141263, -0.017563602, 0.06493725, -0.03210095, 0.026854493, -0.057385746, 0.00010782807, -0.008315136, -0.019387841, -0.032270644, 0.012734319, -0.0024482275, 0.014735325, -0.016361585, 0.012288865, -0.029498933, -0.050088793, -0.03210095, -0.052464545, 0.012882804, -0.008209075, 0.04731708, -0.034307003, 0.0098353345, 0.03224236, -0.0016863603, 0.033911046, 0.010294929, 0.008385843, 0.0094818, -0.027264593, -0.007130794, 0.013144419, -0.027886814, 0.024535306, -0.018440368, 0.038464572, 0.072573595, -0.033260543, 0.05170091, -0.009368668, -0.012932298, -0.018779762, -0.012020179, -0.0062186746, -0.06493725, -0.01579593, -0.01906259, -0.007890894, 0.048702937, -0.031846404, 0.002223733, 0.024436316, -0.013943407, 0.041943353, -0.024761569, 0.04844839, -0.053482722, -0.032694887, 0.0056671607, -0.023700964, -0.017408047, -0.017818147, 0.030319134, 0.048929196, 0.03580599, 0.051955454, 0.004801001, -0.026981765, 0.033571653, 0.030008022, 0.020052487, 0.005642413, 0.024492882, 0.035296902, -0.046553444, 0.020476729, 0.0065898863, -0.026628232, 0.015145425, 0.07574127, 0.013413105, -0.0001899144, -0.017379764 ]
pip install transformers --upgrade CUDA error: device-side assert triggered Sometimes you may run into a generic CUDA error about an error in the device code. RuntimeError: CUDA error: device-side assert triggered You should try to run the code on a CPU first to get a more descriptive error message. Add the following environment variable to the beginning of your code to switch to a CPU: import os os.environ["CUDA_VISIBLE_DEVICES"] = ""
[ -0.008670333, -0.00047601463, 0.012812494, 0.019389477, -0.041837323, -0.051517215, 0.007905739, -0.007928009, -0.032484055, 0.0696002, 0.00022919221, 0.031771425, 0.0145049915, -0.027748033, -0.042549953, 0.016880425, -0.0044390913, -0.019404322, -0.046617884, 0.021274976, 0.035898738, 0.027020557, -0.049676254, 0.0069667012, -0.01459407, -0.007026087, 0.030153159, 0.002197276, 0.041154385, 0.029915616, -0.017429743, 0.025981305, 0.032216817, -0.017340666, -0.0025294656, -0.03384993, -0.0063245916, -0.037769392, 0.00048900524, -0.048547924, 0.041362237, 0.03426563, 0.011409504, -0.0545162, -0.031385414, -0.0339687, -0.030435242, 0.02272993, -0.011134844, -0.0029841384, -0.01836507, -0.011068036, -0.0014391787, 0.009234498, -0.061701886, -0.015084003, 0.0030880636, -0.01987941, -0.040857457, -0.038778953, 0.018884696, -0.022522079, -0.0039862744, -0.061998814, 0.054219272, 0.022150917, 0.0018623028, 0.0013287581, -0.042045172, 0.036581676, -0.033315454, 0.028668514, -0.05196261, -0.05686194, -0.042282715, -0.016791346, -0.0027169022, -0.0018038448, -0.010221788, 0.020413881, 0.00033868485, 0.02319017, 0.0001562358, -0.0011645192, -0.031118179, -0.055169445, -0.003410974, -0.0318605, 0.005407823, -0.029381143, -0.0026185443, 0.022744777, -0.030791556, 0.0306134, 0.009457195, 0.08159614, -0.012196367, 0.050477963, 0.0010206942, -0.02302686, 0.025016284, 0.07737975, -0.042698417, 0.02084443, 0.012515565, 0.0064916145, 0.031474493, 0.012441333, -0.025714068, 0.0145718, 0.0022733642, -0.0014029904, -0.019523095, 0.024541197, -0.04210456, 0.035987817, 0.0042089713, 0.028906057, -0.032513745, -0.0013705138, 0.02856459, -0.044925388, 0.032157432, -0.029039675, -0.0077869683, -0.026604855, -0.00043959438, 0.04519262, -0.00179271, -0.025016284, 0.024006724, -0.0053818417, 0.007935433, 0.011854898, -0.01123877, 0.026307926, -0.011439197, 0.010719144, 0.022819009, -0.022759622, 0.008507022, 0.014170946, 0.029871076, 0.07916132, 0.0140076345, -0.011275887, 0.065443195, 0.021126512, 0.0027818554, -0.0046655, -0.05594146, 0.0066734836, 0.024080958, 0.02734718, -0.021378903, 0.0053855535, -0.008982108, 0.0016275431, -0.022180611, 0.0003546912, 0.007000106, 0.021245284, -0.011461467, 0.05217046, 0.009494311, 0.05825751, -0.016850732, -0.030464936, 0.013488009, -0.07072853, 0.038986802, 0.0065584234, -0.0073564206, 0.006747716, 0.009568543, 0.004249799, 0.029960155, 0.017177355, 0.01098638, 0.045311395, -0.004520747, -0.001917049, 0.019567633, 0.03509703, 0.035661194, 0.003720894, 0.0070966077, -0.022878394, -0.036848914, 0.01241164, 0.024600584, 0.03895711, 0.0023939917, 0.019760638, -0.01434168, 0.016286567, -0.044866, 0.0034388113, 0.02146798, -0.038333558, 0.0005428237, 0.053684797, -0.029455377, 0.025862534, -0.021230437, -0.004721174, 0.0075679827, 0.023071399, -0.02440758, 0.0010494591, 0.049854413, -0.008061628, 0.017310971, -0.011068036, 0.03387962, -0.021883681, 0.011298155, 0.004405687, 0.016746806, 0.041391928, 0.011632201, 0.037294306, 0.01197367, 0.016004484, -0.008232362, -0.05511006, 0.006628944, -0.0031288913, 0.022819009, -0.0087148715, 0.0030398127, 0.025639836, 0.0064879027, 0.02638216, 0.002314192, -0.0042089713, 0.053358175, 0.034859486, -0.017518822, -0.011194231, 0.009338423, 0.0021341785, -0.004346301, -0.0050255265, 0.023130784, -0.0040716417, -0.005366995, -0.0019578768, -0.050596733, -0.005741868, -0.021705523, 0.035631504, 0.0071300124, -0.018498689, -0.026738474, -0.017578209, 0.017296126, 0.007334151, -0.027332332, -0.012018209, 0.050002877, 0.0052445116, 0.008054204, -0.062236357, 0.04344074, 0.03907588, 0.0138962865, 0.017132815, -0.028965443, -0.005897756, -0.00811359, -0.055288214, -0.044598766, 0.013332121, -0.039402504, -0.027658954, 0.01149116, -0.05522883, 0.0003989986, -0.023056552, 0.0064136707, 0.03530488, -0.026604855, 0.03530488, 0.00572331, 0.0016126967, -0.06354285, 0.016687421, -0.004405687, 0.047835294, -0.02595161, -0.005686194, -0.014022481, -0.013012921, -0.0041087577, -0.036076896, 0.025892226, -0.0036095455, -0.017251587, -0.00287279, 0.014898422, 0.04038237, 0.035245497, -0.00016563082, -0.018632308, 0.038185094, 0.030004695, -0.01482419, 0.042490568, 0.071738094, -0.019255858, 0.036136284, 0.014586647, 0.026515776, -0.026456391, 0.059177987, 0.038303867, -0.026515776, -0.014222909, -0.034711022, -0.069422044, -0.0032124028, 0.030301625, -0.063721, 0.00042057235, 0.053952035, -0.024184883, -0.04252026, -0.00020773444, -0.056624398, -0.016717114, 0.0045244587, -0.0075902524, 0.06054386, 0.024333347, 0.024066111, -0.03866018, -0.03937281, -0.046974197, 0.006755139, -0.020874122, -0.013777515, 0.020859275, 0.010971534, 0.0028004134, -0.013874017, 0.010540986, -0.043589205, 0.00096038036, -0.02960384, 0.030850943, -0.009642775, 0.00086712604, -0.0017964216, 0.030019542, 0.038808644, -0.056030538, 0.01962702, -0.0257883, 0.022804162, 0.010184672, 0.03435471, 0.005994258, 0.015395778, -0.0006736581, -0.0009882174, -0.049201168, 0.024036419, 0.043500125, 0.025209289, 0.005782696, -0.0032031236, -0.022819009, 0.029796844, -0.0306134, -0.031682346, 0.027584722, 0.03052432, 0.035928432, -0.042549953, -0.03070248, 0.020562347, -0.018053295, 0.036076896, -0.01408929, 0.05644624, 0.010333136, -0.008247209, 0.016583495, 0.008262055, 0.012530412, -0.039016496, -0.0097467005, -0.009976821, -0.07488554, -0.036136284, 0.01778606, 0.061286185, 0.028148888, -0.0034480903, 0.029960155, -0.011364965, 0.04177794, 0.028653666, -0.014512414, -0.0440346, -0.021141358, 0.072925806, -0.037264615, 0.0016321826, -0.0436189, -0.017756365, -0.046944506, 0.02075535, -0.005300186, 0.024259115, 0.0048436574, 0.0039343117, 0.016212333, 0.009316154, -0.04323289, -0.06473056, -0.037324, -0.007965125, 0.053150326, -0.06550258, 0.0073489975, -0.0097095845, 0.015017194, 0.01535124, -0.0078834705, -0.03245436, -0.038689874, -0.016999196, -0.06395855, 0.034028087, 0.018290838, -0.002110053, 0.015484857, -0.029588994, 0.042668726, 0.020384189, -0.041035615, -0.006628944, -0.0031344588, -0.015009771, 0.0039046188, 0.022032145, -0.018587768, -0.024095803, 0.056743167, -0.047508672, -0.0025684375, -0.014772227, 0.007683043, -0.013577088, 0.0033664347, -0.04872608, 0.046558496, -0.043262582, -0.052526776, -0.010303443, 0.00061380834, -0.026664242, -0.041926403, 0.00025122994, -0.0040827766, -0.013925979, 0.020027874, 0.00035237145, 0.024630276, 0.037086457, 0.05920768, -0.022670545, -0.017177355, 0.017593054, 0.023308942, -0.011728703, -0.007853777, 0.032484055, -0.031474493, 0.07476677, 0.03236528, -0.02624854, -0.020859275, -0.041748244, -0.011862321, -0.000048048016, -0.0291436, 0.06484933, 0.0038489446, -0.0055971155, 0.02751049, -0.031355724, 0.015559089, 0.008046781, -0.074232295, -0.018662, 0.08961323, 0.024630276, 0.03854141, 0.015484857, -0.023041705, 0.058554437, -0.020116953, -0.009004378, -0.03854141, -0.0000061727346, -0.00861837, -0.021705523, -0.030346163, 0.0034258205, 0.0023865683, 0.0062318016, -0.005971988, 0.0035705736, 0.01891439, -0.009605659, -0.0103554055, 0.06538381, -0.0011737982, -0.027376872, -0.010451907, 0.01875108, 0.018543229, 0.027881652, -0.012159251, -0.041985787, 0.003201268, 0.0069481432, 0.063721, -0.005233377, 0.002343885, -0.046944506, -0.054753743, -0.0029711477, 0.031593267, 0.0097467005, -0.087712884, 0.0039862744, -0.025253829, 0.026486084, -0.013005499, -0.013339544, -0.006428517, -0.0343844, -0.011632201, 0.010845339, 0.0027911344, -0.012352254, 0.013822054, 0.012396794, -0.01123877, 0.045905255, -0.04219364, 0.012426487, -0.031504188, 0.018008756, -0.033434227, -0.021378903, -0.04189671, 0.030494628, -0.05825751, 0.03539396, -0.051190592, -0.03174173, -0.038600795, -0.029084215, 0.034770407, -0.039283734, 0.0069221617, -0.024036419, 0.0031548727, -0.003344165, 0.04495508, 0.0102440575, -0.040263597, -0.050537348, -0.026218848, 0.029410837, -0.025624989, 0.00047369485, -0.0030435242, -0.035007954, 0.029559301, -0.017117968, 0.02856459, 0.052289233, 0.006795967, -0.021349208, -0.037145842, -0.0034740716, 0.014853883, -0.026025843, 0.03236528, 0.034948565, -0.04902301, -0.03036101, -0.03006408, -0.0067588505, -0.0087148715, 0.046914812, 0.017904831, -0.027599568, 0.06193943, -0.057396412, -0.05430835, -0.02360587, 0.043054733, -0.016702266, 0.06366162, 0.026441544, 0.033374842, -0.025521064, 0.066571526, -0.040233906, -0.0069332966, -0.028980289, 0.023323787, 0.00052936905, -0.008766835, 0.048280686, -0.012998075, -0.03661137, -0.08171491, -0.004450226, -0.013302428, -0.04100592, -0.009108303, 0.006543577, -0.019033162, -0.059623383, -0.005534018, 0.032899756, 0.03741308, 0.014185792, 0.018795619, -0.0028393853, 0.008239785, 0.063067764, 0.06502749, -0.0070223752, 0.0025368887, -0.055525757, -0.035958126, -0.019760638, -0.004992122, 0.073103964, -0.00013083442, 0.03027193, 0.017756365, -0.018676845, 0.07678589, -0.0331373, 0.026857246, -0.0115728155, -0.03836325, -0.07316335, -0.0016590919, 0.015811479, 0.014104136, 0.026456391, 0.022447847, -0.0018493121, -0.025684375, 0.055436682, -0.017563362, -0.08213062, 0.02457089, -0.0009937849, -0.023516793, -0.01597479, -0.027406564, -0.01337666, 0.03006408, -0.014586647, -0.011112575, -0.023308942, -0.014779651, -0.010192094, -0.030850943, -0.016924964, -0.0133246975, -0.0587029, -0.0133246975, -0.05632747, -0.05154691, 0.028861517, 0.0003922713, 0.008328863, -0.01050387, -0.04335166, 0.035958126, -0.024942052, -0.018439302, 0.006109318, -0.033315454, -0.031177565, -0.018810464, -0.035928432, 0.01710312, 0.069125116, 0.009924858, 0.029707765, -0.0015069157, -0.0003189669, -0.011676741, -0.02289324, 0.018840156, -0.01413383, 0.006265206, 0.0066437908, 0.031474493, -0.0339687, 0.0031493052, -0.02507567, -0.018335378, 0.01962702, -0.0021434575, -0.010682028, 0.0031010543, 0.015425472, 0.03750216, -0.015841173, 0.023056552, 0.012196367, 0.0009947128, 0.0092122285, 0.01673196, 0.0041273157, -0.04335166, 0.036344133, 0.0045652865, -0.033642076, 0.015366086, 0.0048139645, 0.0027781439, -0.04180763, 0.020072414, -0.035245497, 0.047568057, 0.010474177, -0.045044158, -0.007189398, 0.015559089, -0.018186914, 0.030494628, -0.0734009, 0.006881334, -0.009583389, -0.038422637, -0.040144827, -0.052972168, -0.01836507, 0.033909313, 0.013955672, -0.019478556, 0.0065175956, 0.07316335, 0.021527367, 0.02696117, -0.041659165, -0.016910117, -0.0076088104, -0.044183064, -0.026990864, -0.03367177, 0.017117968, 0.055674225, 0.026664242, -0.028416123, -0.056119617, 0.007315593, -0.025179595, 0.038986802, -0.002661228, 0.018988622, -0.057277642, 0.027673801, 0.0068664877, 0.0016071292, -0.0087148715, 0.044509687, 0.03874926, 0.016954657, 0.016331106, -0.023873108, 0.018632308, -0.06193943, 0.01811268, 0.039729126, 0.03468133, -0.036759835, 0.041095, 0.0014521694, 0.042668726, 0.030212546, 0.030242238, -0.013792361, 0.05623839, 0.018290838, -0.051814143, -0.008321441, 0.025847686, 0.0085664075, -0.048963625, -0.015106273, -0.0011014218, 0.012248329, -0.002100774, 0.0016934243, -0.0016247594, 0.017370358, 0.0021527365, -0.0119514, -0.048102528, 0.012307715, 0.01937463, 0.0046024024, -0.032691903, -0.013391507, 0.070431605, 0.041837323, -0.021037433, 0.012931267, 0.0056527895, 0.03245436, 0.007222803, 0.03966974, -0.020948354, 0.030212546, -0.021334363, 0.026797859, 0.020428728, 0.00024218287, -0.025342906, -0.007965125, 0.0018279704, 0.008254631, -0.04893393, -0.010147555, 0.010978957, -0.014987501, -0.0025869955, -0.02210638, 0.027599568, -0.04587556, -0.037116148, 0.020577192, 0.0146163395, -0.013205926, 0.015395778, 0.04587556, -0.007876047, 0.033523306, 0.04210456, 0.019003468, 0.07150055, -0.008974684, 0.019092547, 0.05706979, 0.013161386, -0.009806086, -0.015366086, 0.0071448586, 0.014193215, -0.010162402, -0.0077350056, -0.032276202, 0.009642775, 0.008744565, -0.0019578768, -0.021334363, 0.006369131, -0.004093911, -0.0064990376, -0.0018270424, 0.09299822, 0.033315454, 0.015529397, -0.007297035, -0.010028783, 0.0014466019, -0.016821038, -0.006164992, 0.00489562, -0.0039194655, -0.06936266, 0.009954551, -0.061286185, -0.0010179104, 0.011364965, -0.00740096, -0.0257883, 0.0406793, 0.049854413, 0.054219272, 0.063127145, 0.006755139, -0.010585526, 0.034325015, 0.041332543, -0.020072414, 0.017860292, 0.054575585, -0.021527367, 0.027139328, -0.0013519557, 0.0339687, -0.030850943, 0.00047555065, 0.014415912, 0.0013426767, -0.030940022, -0.01928555, -0.00549319, 0.04100592, 0.010333136, 0.00040502998, -0.047241434, -0.038838338, -0.06591828, -0.011268463, -0.036967684, -0.023546485, -0.012344832, -0.024689663, -0.00011668389, -0.037710007, 0.2629605, 0.060039084, 0.00751602, -0.04373767, 0.0725695, 0.03165265, -0.0066920416, -0.056713477, 0.0020302534, -0.008455059, 0.020265417, -0.021913374, -0.0030695056, 0.028549742, -0.016390491, 0.033434227, -0.071678706, 0.010845339, 0.0039380235, -0.025283521, -0.03174173, 0.02029511, 0.037769392, 0.017429743, -0.021081973, 0.011877168, -0.013473162, -0.04519262, -0.03070248, -0.017726673, 0.025298366, -0.0058420817, 0.028920904, -0.048785467, -0.017177355, 0.030093774, -0.02369495, -0.01526216, 0.0043908404, 0.0039046188, 0.00838825, -0.033315454, -0.0053855535, -0.0055562877, -0.028371584, 0.033434227, -0.014638609, 0.038214788, 0.07060976, -0.09430471, 0.031177565, -0.004472496, 0.02293778, -0.023442559, -0.034859486, 0.037799086, -0.04872608, -0.004060507, -0.015499704, 0.021245284, 0.016108409, 0.004461361, 0.000108390755, -0.02507567, 0.0038118286, 0.022418154, -0.020785043, 0.029826537, -0.043678284, -0.025149902, -0.012040479, -0.012010786, 0.008952416, -0.0075197318, 0.046291262, 0.014445606, -0.0007669124, 0.0014345392, -0.014230331, -0.008098744, 0.025149902, -0.009204805, -0.013643896, -0.015336392, -0.015455164, 0.042460874, -0.013977942, -0.0078834705, 0.008662909, 0.039521277, 0.0015783643, 0.037561543, 0.006350573, -0.0066994647, -0.00321797 ]
import os os.environ["CUDA_LAUNCH_BLOCKING"] = "1" Incorrect output when padding tokens aren't masked In some cases, the output hidden_state may be incorrect if the input_ids include padding tokens. To demonstrate, load a model and tokenizer. You can access a model's pad_token_id to see its value. The pad_token_id may be None for some models, but you can always manually set it.
[ 0.022290213, -0.0064846277, 0.013673703, 0.0040857974, -0.0055206465, 0.0055132313, -0.030135537, -0.023550803, -0.026902491, 0.05677108, 0.0145190405, 0.007448609, 0.0070852623, -0.043927886, -0.0206292, 0.02558258, -0.0049570883, -0.030639773, -0.029394012, -0.006618102, 0.0018269299, 0.0025248893, -0.06810157, -0.045084663, -0.016565647, 0.02746605, 0.031321976, 0.00029939032, 0.045114323, 0.052618545, 0.009899346, 0.002675048, 0.016521156, -0.015067768, -0.03891518, -0.040516872, 0.0011734618, -0.014363321, -0.017944882, -0.028934268, 0.016476665, 0.01388133, 0.023966057, -0.03924145, -0.050631262, -0.016328359, -0.012094257, 0.0065921484, -0.013814593, -0.010878158, -0.022408856, -0.020821994, 0.031055026, 0.013184297, -0.056296505, -0.020095302, -0.006199141, -0.015290226, -0.049800754, -0.032508414, 0.043631274, 0.030699095, 0.0021949112, -0.043749917, 0.02619063, 0.01263557, 0.0035111164, 0.000707692, -0.0308474, -0.0070222327, -0.039656706, -0.01448938, -0.044491444, -0.030995704, -0.04811008, -0.008015875, 0.006825729, 0.016624968, -0.014296584, 0.049177874, -0.016194886, 0.029230878, 0.042148225, 0.0013393778, -0.0027899842, -0.056949046, 0.045055002, -0.011167352, -0.02682834, -0.042741444, -0.023936396, 0.025419444, -0.022171568, 0.028014777, 0.027747829, 0.045143984, -0.0069221267, 0.048021097, 0.00925422, -0.010425828, 0.031351637, 0.061754122, -0.042385515, 0.031618584, 0.0074819773, 0.020777503, 0.022408856, 0.013317771, -0.009995744, 0.015171582, -0.035652477, -0.016209716, -0.0044936356, -0.015045523, -0.036245696, 0.002830768, 0.0069925715, 0.043601613, -0.010062481, 0.0237436, 0.0028437446, -0.033843156, 0.029127063, -0.05952955, 0.0040857974, -0.03212282, -0.0015210512, 0.030758416, -0.023031736, -0.010915234, 0.02590885, 0.0028289142, 0.039449077, 0.037372813, 0.02802961, -0.013629212, 0.017974542, 0.007689604, 0.011189598, -0.012509511, -0.013228789, 0.022349535, -0.03149994, 0.0968727, -0.0002824743, -0.025968172, 0.01638768, -0.014422642, -0.003698351, -0.02193428, -0.057779554, -0.015216073, 0.010855912, -0.0021800806, -0.0592626, -0.022616483, -0.0034814554, -0.010663115, -0.021963943, -0.021771146, 0.012954425, -0.018241491, -0.027703337, 0.05650413, -0.019383438, 0.06211005, 0.00013973094, -0.025196986, 0.02221606, -0.05244058, 0.029038081, -0.0053426805, 0.010618624, 0.0049237194, 0.012457604, -0.006288124, 0.07249139, 0.006747869, 0.022942754, 0.01419277, 0.01095231, -0.02656139, 0.0063845217, 0.042771105, 0.012739383, 0.0023561926, -0.0134067545, 0.0014997324, -0.01574997, -0.006814606, 0.05430922, 0.0493855, -0.004256348, -0.020139793, -0.03728383, 0.010025405, -0.051728718, 0.02441097, -0.025671562, -0.0518177, 0.0062325094, 0.055465996, -0.060271073, 0.020080471, -0.01604658, 0.028785963, 0.025315631, 0.021504197, -0.011152522, 0.004197026, 0.0407245, -0.0000028024394, -0.0013746002, 0.015097429, 0.011797647, -0.030209688, -0.023639787, 0.017218187, -0.009980913, 0.015675819, -0.013525398, 0.008979856, 0.026754187, 0.020510554, 0.03763976, -0.03556349, -0.013236204, 0.020436402, 0.028281726, -0.0029957572, 0.010566718, 0.020733012, 0.004334208, 0.04197026, -0.01913132, 0.011834724, 0.04327534, 0.036868576, 0.018004203, 0.007845324, 0.016832596, -0.023061398, 0.050512616, 0.022052925, -0.013058239, 0.012072011, -0.0023320932, 0.0007823079, -0.03832196, 0.0022227182, -0.06822021, 0.047754146, 0.02036225, -0.0006112939, -0.045084663, -0.016610138, 0.03612705, 0.038143996, 0.0017583389, 0.0071371687, 0.03425841, 0.013762686, 0.028637659, -0.030031724, 0.03847027, 0.047279574, 0.028845284, 0.038143996, -0.020451233, -0.050216008, -0.043987207, -0.06424564, -0.0708897, 0.033991463, -0.042771105, -0.02931986, -0.01417794, -0.037461795, 0.012034935, -0.008623924, -0.010826251, 0.021103773, -0.053271085, 0.049741432, 0.010418412, 0.014578363, -0.06015243, 0.04226687, -0.01886437, 0.010403582, -0.018908862, 0.006859097, -0.04466941, -0.025864359, 0.023713939, 0.004482513, 0.023521142, -0.035682138, -0.017737255, 0.02556775, 0.017633442, 0.035237223, 0.026427917, 0.019012677, -0.013347433, 0.019368608, 0.028949099, -0.041199077, 0.044550765, 0.058758363, -0.0046122796, 0.03052113, 0.04327534, 0.036008406, -0.027495712, 0.017603781, 0.028904608, -0.018953355, -0.023254193, -0.039389756, -0.06211005, 0.02622029, -0.019101659, -0.017425815, 0.027821982, 0.054783795, -0.008483035, -0.03431773, -0.004334208, -0.03277536, -0.034377053, -0.042326193, -0.0011197013, 0.04606347, 0.035207562, 0.005268528, -0.090940505, -0.02961647, 0.015090014, 0.03645332, -0.011122861, -0.037995692, 0.02310589, 0.0549321, 0.027050797, 0.017485136, 0.022067755, -0.05089821, 0.0034962858, -0.022690635, 0.022082586, 0.0063066618, 0.02251267, -0.008171595, 0.011656757, 0.028192744, -0.0147192525, 0.016269038, 0.012924764, 0.022453347, 0.012398282, 0.015675819, 0.0106557, 0.008883458, -0.02656139, 0.013480907, -0.012642985, 0.0029920496, 0.020451233, -0.02128174, 0.0064957505, 0.0037150355, -0.03888552, 0.008616509, -0.021519028, -0.051283803, 0.033279598, 0.00958049, 0.03556349, -0.019472422, -0.033101633, 0.008861212, -0.02406987, 0.036868576, 0.03419909, 0.029156726, 0.007174245, -0.017084714, -0.023387669, -0.03176689, 0.0006715427, 0.000046055593, -0.0077934177, -0.006139819, -0.07195749, 0.001132678, 0.027451219, 0.048495673, 0.03425841, 0.026175799, 0.05187702, -0.033754174, 0.0010325722, 0.012427943, -0.0022635022, -0.027377067, -0.05027533, 0.054131255, -0.014318829, -0.010633455, -0.010418412, -0.0030031723, -0.03849993, 0.02283894, -0.0065439497, 0.002741785, -0.011782817, 0.0016582331, 0.005465032, 0.004986749, -0.012828366, -0.033843156, -0.047249913, 0.011308242, 0.037491456, -0.06970326, 0.016328359, -0.024114361, -0.0072965967, 0.011167352, -0.004326793, -0.04199992, 0.0028363294, -0.016535986, -0.016595308, 0.014311414, 0.012264808, -0.006840559, 0.020747842, -0.03144062, 0.0054687397, -0.0028845286, -0.0438389, -0.027807152, 0.015349547, -0.00069054426, -0.0024173683, 0.03891518, -0.011856969, -0.020006318, 0.029230878, -0.0376101, -0.003907832, -0.015260565, 0.0029827803, -0.023847412, 0.021459706, -0.00895761, 0.03672027, -0.011827309, -0.057601586, 0.021548688, 0.01637285, -0.025196986, -0.07367783, 0.0010844789, 0.044610087, -0.008853797, 0.015675819, -0.020406742, 0.012064596, 0.0117012495, 0.047694825, -0.006454967, -0.0045529576, 0.023165211, 0.024247836, -0.034050785, -0.017307172, 0.056860063, -0.07148292, 0.043690596, -0.022245722, -0.042504158, -0.011367563, -0.05336007, -0.041614328, -0.011790232, -0.044461783, 0.022497838, 0.055347353, -0.010010575, 0.013132391, -0.031648245, 0.0076154517, -0.021385552, -0.051936343, 0.002791838, 0.07373715, 0.03295333, 0.04410585, -0.05588125, -0.02067369, 0.033249937, -0.0013894307, 0.019502083, -0.0033368582, 0.0051016854, -0.009054009, -0.011345318, -0.012887687, 0.015008447, 0.0047791223, 0.0059396075, 0.0065365345, -0.0049756262, -0.005654121, -0.02592368, -0.026457578, 0.06377107, -0.0280741, -0.046686355, -0.019813523, 0.032182142, 0.0357118, 0.005201791, 0.025686393, -0.040160943, -0.03847027, -0.008979856, 0.06756767, -0.026709696, 0.028741471, -0.05054228, -0.03769908, 0.024262667, 0.05057194, -0.0031366467, -0.06519479, -0.016194886, -0.026294442, 0.021207588, -0.020821994, -0.037105862, -0.030580452, -0.017292341, -0.012346375, 0.02619063, 0.016906748, 0.0031236701, 0.0146006085, -0.016269038, 0.015097429, 0.042711783, -0.05920328, 0.018360134, 0.008001044, -0.00025837478, -0.0006312223, -0.0024099532, -0.00532785, 0.032656718, -0.0137256095, 0.028726641, -0.052351598, -0.04288975, -0.0412584, -0.009825193, 0.046389744, -0.04873296, -0.014986201, -0.02280928, 0.015201243, -0.01821183, 0.036690608, -0.021088943, -0.031351637, -0.042919412, -0.029735114, 0.0506016, -0.029675791, -0.011938537, 0.012138749, -0.0019057167, 0.042741444, -0.027896134, 0.017707594, 0.06620327, -0.007270643, -0.016506325, -0.017425815, 0.05092787, -0.01079659, -0.015030692, 0.013896161, 0.013525398, -0.032894008, 0.0134067545, -0.036601625, -0.03888552, 0.013555059, 0.033694852, 0.029913079, -0.0043193777, 0.05365668, 0.0019279625, -0.04386856, -0.050720245, 0.016313529, 0.0036353215, 0.034495696, 0.036690608, -0.013421585, 0.0003990326, 0.046953302, -0.009550829, -0.025241477, -0.038618572, 0.056593113, -0.01850844, -0.03393214, 0.007808248, 0.003299782, -0.0213114, -0.035978746, 0.022156738, -0.008564603, -0.028177913, -0.004156242, -0.014118617, 0.025730884, -0.037758403, 0.026635543, 0.023002075, 0.010522226, -0.004745754, 0.013888746, -0.013688534, -0.02776266, 0.03793637, 0.05952955, -0.014363321, 0.020777503, -0.040338907, 0.0058209635, -0.025627071, 0.0020354835, 0.063474454, 0.0058283787, 0.019680047, 0.03772874, 0.020169454, 0.068694785, -0.0032182143, 0.008371807, -0.00050979777, -0.01607624, -0.06620327, -0.011159937, 0.029838927, -0.013139806, 0.0063919374, -0.022557162, -0.0036946435, 0.027940625, 0.052025326, 0.009869684, -0.093076095, 0.032004178, 0.009558245, -0.04191094, -0.020006318, -0.007889816, -0.0076302825, 0.05116516, -0.016847426, -0.025864359, 0.0058209635, 0.022156738, -0.054724474, -0.012034935, -0.021815637, 0.02654656, -0.04128806, -0.02095547, -0.037758403, -0.03924145, 0.03482197, 0.022319874, 0.010092142, 0.021148266, -0.005261113, 0.011686419, -0.020406742, 0.032567736, -0.006840559, 0.00033461273, -0.02163767, -0.022616483, -0.011426886, -0.0010233031, 0.042148225, -0.034703325, 0.013510568, 0.009535999, 0.0025415737, 0.0017518506, -0.019946996, 0.063593104, -0.03852959, 0.028919438, -0.009454431, 0.033160955, -0.030372825, 0.00048199063, -0.042088903, -0.043571953, 0.021370722, 0.021726655, 0.009498923, 0.037432134, 0.016877087, -0.000010051127, -0.014363321, 0.047220252, 0.009899346, 0.03422875, 0.024129191, -0.028133422, 0.013614382, -0.010055066, 0.013918406, -0.011901461, -0.04606347, 0.038618572, 0.010818835, 0.012672646, -0.037402473, 0.025538087, 0.008186425, 0.03149994, -0.019309286, -0.04813974, 0.002878967, 0.022601653, -0.032300785, 0.03233045, -0.06816089, -0.012576248, 0.020821994, -0.04167365, -0.014029635, -0.06430496, -0.0074115326, 0.041792296, 0.02592368, 0.015972428, 0.027910965, 0.06264395, 0.01233896, 0.025493596, -0.013436415, -0.019858014, -0.018552931, -0.029052911, -0.013302941, -0.026146138, 0.032004178, 0.0426228, 0.013814593, -0.021785976, -0.041466024, -0.019665217, -0.005895116, 0.051372785, -0.014511625, 0.009765872, -0.07231342, 0.051313464, -0.009891931, 0.012761628, -0.009914177, 0.03295333, 0.03203384, 0.007800833, -0.013347433, 0.007949138, 0.008497866, -0.037995692, 0.027599525, 0.02344699, 0.016180055, -0.022082586, -0.0009593467, -0.013740441, 0.050038043, 0.02593851, -0.013495738, -0.037580438, 0.037491456, 0.0065254117, -0.045826185, -0.027821982, 0.03793637, 0.027302915, 0.004601157, 0.0058617475, 0.007919476, -0.007270643, -0.008638755, -0.0026138723, 0.02129657, 0.0058877007, -0.017396154, -0.012709722, -0.03763976, 0.035415187, 0.015082599, -0.047961775, -0.01942793, 0.009298711, 0.0426228, 0.032567736, 0.0025304507, -0.030788079, 0.037105862, 0.022972414, -0.0019687463, 0.034762647, -0.017989373, 0.04404653, -0.010759514, 0.034139767, -0.010047651, -0.0044750976, -0.013859084, -0.053834643, -0.03508892, 0.02067369, 0.008905704, -0.03209316, 0.02346182, -0.016328359, -0.026724527, -0.042029582, -0.00392637, -0.05742362, -0.013035992, 0.025211817, -0.032241464, -0.036631286, 0.0315296, 0.006903589, 0.0070148176, -0.0011234089, 0.021059282, 0.025226647, 0.064838864, -0.015957598, -0.0063659837, 0.058224466, 0.01757412, -0.02436648, 0.00849045, -0.003407303, 0.0034703326, -0.033249937, -0.05158041, -0.0438389, -0.010603794, 0.0046048644, -0.020866487, -0.020080471, -0.0018139532, -0.0074041174, -0.021103773, 0.013999973, 0.098771, 0.052796513, -0.024218176, -0.008267993, 0.013592135, -0.028326219, -0.0152753955, -0.023491481, 0.027673677, -0.041614328, -0.0616948, -0.002022507, -0.05377532, -0.0014663638, 0.0037409887, 0.004986749, -0.021504197, 0.03363553, 0.0351779, 0.06294056, 0.027777491, -0.017144036, -0.026754187, 0.045262627, 0.03422875, 0.0017110667, 0.05187702, 0.06282192, 0.0237436, 0.002821499, -0.015201243, 0.016269038, 0.005361219, 0.024603767, 0.02684317, -0.013347433, -0.031351637, -0.03295333, -0.0131694665, 0.00208739, 0.030150367, -0.007029648, -0.041762635, 0.022008434, -0.06881343, -0.008067781, -0.025627071, 0.033783834, -0.017440645, -0.00708897, -0.0019372315, -0.0339618, 0.2622029, 0.095211685, 0.046508387, -0.020718182, 0.052826174, 0.03796603, 0.020273266, -0.03728383, 0.0024933745, 0.0049311346, -0.003981984, -0.047724485, 0.04819906, 0.010366506, -0.038796537, 0.000019754663, -0.06875411, 0.0019965535, -0.014318829, -0.057660908, -0.0566821, 0.030209688, 0.02838554, 0.051995665, 0.03847027, -0.034110107, 0.007233567, -0.052707527, -0.0019761615, -0.027718168, 0.013592135, -0.02094064, 0.029275369, -0.016580477, -0.0054798624, 0.012160994, -0.025241477, -0.053152442, -0.018701237, 0.022972414, 0.015987258, -0.024870716, 0.04478805, -0.025033852, -0.015015862, 0.015245734, -0.030758416, 0.0029605348, 0.071304955, -0.079016805, 0.029097402, -0.06608462, 0.022141907, -0.036305018, -0.02409953, 0.009736211, -0.06104226, -0.036779594, -0.0077637564, 0.04188128, -0.011056123, 0.024485124, -0.0028622828, -0.03888552, -0.009320958, 0.022379195, -0.027688507, 0.04689398, 0.0095137535, 0.009165237, 0.0011864385, -0.0050052875, -0.0023302394, -0.006432721, 0.04478805, 0.02715461, -0.008846382, 0.039063487, -0.029898249, -0.055406675, 0.009966083, -0.037343152, -0.02251267, -0.031262655, -0.0069554956, 0.06798293, -0.02931986, 0.0012670791, 0.0106260395, 0.042029582, 0.002558258, 0.031618584, 0.0237436, -0.028415201, 0.003652006 ]
from transformers import AutoModelForSequenceClassification import torch model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-uncased") model.config.pad_token_id 0 The following example shows the output without masking the padding tokens: input_ids = torch.tensor([[7592, 2057, 2097, 2393, 9611, 2115], [7592, 0, 0, 0, 0, 0]]) output = model(input_ids) print(output.logits) tensor([[ 0.0082, -0.2307], [ 0.1317, -0.1683]], grad_fn=)
[ 0.023974653, 0.009187934, -0.03548249, -0.0046398006, -0.042054363, -0.004950061, -0.008764852, -0.008362924, 0.016852772, 0.04146205, 0.033197843, -0.008186639, 0.032943994, -0.024806716, 0.023904141, 0.05361861, 0.022324633, -0.010259742, -0.05485965, -0.005034677, -0.017064312, 0.020787435, -0.06865212, -0.042364623, -0.019179722, -0.020547688, 0.0017505023, -0.035510693, 0.055762224, 0.050910883, -0.018897668, 0.012960416, -0.023424648, 0.012473871, -0.053562198, -0.030687558, -0.021718215, -0.031872187, -0.029390106, -0.006737583, 0.019800244, -0.01318606, 0.03379016, -0.059569962, -0.050685238, -0.022084886, 0.024792613, -0.0033035662, -0.01730406, -0.036074802, -0.000354772, 0.017811758, 0.0039628693, -0.0018456958, -0.01767073, -0.0355389, -0.01174758, -0.0152309565, -0.031815775, 0.03023627, 0.008525105, 0.039797924, 0.010125766, -0.03277476, 0.018065607, 0.018643819, -0.030377297, 0.0033211948, -0.031815775, -0.016965594, -0.033959392, -0.014977108, -0.017374573, 0.011035392, -0.0062404615, 0.07818558, -0.0003679933, -0.023043873, 0.017247649, -0.0029474723, -0.030038832, 0.030574735, 0.047526225, 0.0022053155, -0.014229663, -0.035510693, 0.037992775, -0.03621583, -0.01658482, -0.013066187, -0.026625969, 0.026668277, -0.047103144, 0.0042308215, 0.014624539, 0.021859244, -0.017078415, 0.022296429, -0.013009775, -0.026978537, 0.0028945869, 0.100524314, -0.0032683094, 0.04321079, -0.014695053, 0.009124471, -0.00019721797, -0.0014561077, -0.06758032, -0.009237293, 0.008306513, -0.028882407, 0.0069032903, -0.02771188, 0.03432606, -0.0063321292, -0.01736047, 0.021746421, -0.026922125, -0.04208257, 0.011056546, -0.009611016, -0.0012463294, -0.05155961, 0.009554605, -0.04642621, 0.00007492079, 0.031872187, -0.0026001923, -0.009251396, 0.015104032, -0.04290053, 0.047046732, 0.031872187, -0.009893071, -0.008623824, -0.012889902, -0.017642524, 0.0061241137, -0.020829743, 0.019504087, 0.020716922, 0.01586558, 0.052208334, 0.020998977, -0.024538763, 0.021986168, -0.054803237, -0.051080115, 0.03508761, -0.030038832, -0.0013406415, -0.011423217, 0.025836214, -0.01406748, 0.011479628, -0.017854067, 0.031956803, -0.020181017, 0.021831037, -0.015696347, -0.0014658032, -0.044705678, 0.056241717, 0.030631145, 0.01308029, -0.0044176825, -0.030461913, 0.014963005, -0.014610436, 0.0014111552, 0.019631011, 0.0028399387, 0.0005288527, 0.061939225, 0.004928907, 0.03153372, 0.036497883, 0.008066766, 0.020702818, -0.026781099, -0.009152677, 0.046849295, 0.0029651006, 0.008369975, -0.024919538, -0.019546395, 0.008221896, -0.015541217, 0.048654445, 0.0031078907, 0.06763673, 0.0011634758, 0.03116705, -0.048090335, -0.01411684, -0.05739814, -0.012170662, -0.019842552, -0.008334718, -0.041151788, 0.031815775, -0.054267336, 0.006035972, -0.021704113, 0.01870023, 0.00018972589, 0.036300447, 0.01246682, -0.0007329016, 0.03802098, -0.02786701, -0.022381045, -0.022536175, 0.005450708, -0.009554605, -0.012607847, 0.03167475, 0.032323476, -0.029446516, 0.04800572, -0.0013600327, 0.06272898, 0.026696483, -0.009124471, 0.0028981126, 0.009187934, 0.051249348, 0.020829743, -0.0060394974, 0.0036667117, 0.037174817, 0.049980104, 0.030320887, 0.027613161, 0.040051773, 0.009159728, 0.00561289, 0.033677336, 0.019842552, 0.03714661, 0.019955374, 0.026950331, 0.02776829, -0.02642853, 0.0055212216, -0.024806716, 0.006815148, -0.05440836, 0.017713038, -0.040362034, 0.014582231, 0.002122462, -0.04264668, -0.04800572, 0.0028575673, 0.022832332, 0.022084886, 0.0011766972, -0.016514305, 0.055451963, 0.004812559, -0.008461643, -0.038979966, 0.042251803, 0.036554296, 0.022479763, 0.010654618, 0.013277727, -0.071416266, 0.02122462, -0.018206634, -0.089862645, -0.008348821, -0.044226184, -0.0046750577, 0.01617584, -0.04306976, 0.017868169, -0.016641231, -0.0048619187, -0.014201457, 0.0024609277, 0.039741516, 0.030208064, 0.020025887, -0.0695547, 0.007284064, -0.0036808145, -0.003150199, -0.0010127529, -0.026541352, 0.01086616, 0.0011608315, 0.0060712285, -0.0038888298, -0.0045058248, -0.050205745, -0.06673416, 0.011930916, -0.02302977, 0.0262734, -0.04146205, 0.026090065, 0.0020096402, 0.057934046, 0.012029635, -0.021210518, 0.052377567, 0.045100555, 0.022705408, 0.030151652, 0.03875432, 0.028543942, -0.029390106, 0.06628287, 0.086534396, -0.02565288, -0.03167475, -0.02699264, -0.04132102, 0.006222833, -0.02245156, 0.009413578, -0.012713618, 0.03745687, -0.0008681998, -0.013179008, 0.0033194318, -0.034861967, -0.016077122, -0.06312385, 0.020406662, 0.038444065, 0.02699264, 0.033705544, -0.04919035, -0.03316964, -0.027838804, 0.03991075, 0.01277708, -0.036949173, 0.036554296, 0.04230821, 0.008764852, -0.012791183, 0.0417441, -0.039544076, -0.024637483, 0.013249522, 0.025018256, 0.008158433, 0.0033123805, -0.012050789, -0.009893071, 0.04078512, 0.015484806, 0.036949173, 0.0069632265, 0.006046549, 0.005404874, -0.0034551707, -0.011782837, 0.0068821358, -0.037738927, -0.028995229, -0.013785426, -0.012452717, 0.03477735, -0.0561571, 0.019786142, 0.01226233, -0.012410409, 0.016133532, -0.005105191, -0.043267198, 0.03601839, 0.0152309565, 0.015414292, -0.022225915, -0.05559299, -0.006402643, 0.031759366, 0.05474683, 0.042223595, 0.0052391673, -0.0049782665, 0.020434868, -0.03491838, -0.03745687, 0.0007187989, 0.022550277, 0.029220872, -0.032718353, -0.03221065, -0.05485965, 0.013743117, 0.06876495, 0.013954659, 0.012586693, 0.01932075, -0.014293125, -0.017388675, 0.045608252, -0.03615942, -0.0071888706, -0.025779804, 0.04476209, 0.05130576, 0.011507834, 0.003049717, -0.0131367, -0.015118135, 0.015104032, -0.014222611, 0.009808454, -0.022747716, 0.025822112, -0.019997682, 0.037259433, -0.022846434, -0.026795201, -0.059005853, 0.007960996, 0.04538261, -0.031308077, 0.010203331, -0.031646542, 0.0054683364, 0.01761432, 0.03441068, -0.049641635, -0.024228504, 0.0059760353, -0.058949444, 0.072770126, 0.031618338, -0.043972336, -0.040390242, -0.056693006, 0.007382783, 0.026470838, -0.047921102, -0.031054229, 0.0023269516, -0.0014561077, -0.03971331, 0.010210382, 0.0012868748, -0.012177714, 0.0019585176, -0.034128625, 0.038303036, -0.03390298, -0.033000406, -0.014342484, 0.02503236, -0.007104254, 0.0049535865, -0.015809169, -0.02343875, -0.022916948, 0.027500339, -0.062616155, -0.020942565, -0.020773333, 0.023819523, -0.034833763, 0.022479763, 0.04044665, 0.0044599907, 0.06047254, 0.0019373635, -0.027161872, 0.012093098, -0.056890443, 0.015174545, 0.0002743423, -0.019363059, 0.030631145, -0.060190484, 0.019038696, -0.013996967, 0.020575894, 0.004213193, -0.049895484, -0.039797924, -0.0010762152, -0.008059715, 0.027810598, 0.040474858, -0.019193826, 0.0035556527, 0.026033653, 0.021450264, 0.008123177, -0.036949173, 0.004653903, 0.044169772, 0.04445183, 0.03153372, -0.023692599, -0.03508761, 0.037485078, 0.008024458, 0.029192667, 0.0019585176, -0.03435427, 0.0063356548, -0.011761683, -0.017868169, -0.01782586, -0.0045199273, 0.007812916, 0.031392694, -0.022352839, 0.017022004, -0.05060062, 0.007425091, 0.01360209, -0.014850182, -0.07711377, -0.04569287, -0.0008175181, 0.0020695766, 0.02431312, 0.030433707, -0.04078512, -0.050826266, -0.04301335, 0.033282463, -0.043295406, -0.0050311517, -0.036610708, -0.06340591, 0.026301606, 0.0061981534, 0.041941542, -0.041179992, 0.007382783, -0.0355389, 0.04343643, -0.049923692, -0.013066187, -0.011416166, -0.019489983, -0.00703374, 0.053646814, 0.0032894635, 0.011507834, -0.002513813, 0.04058768, 0.037823543, 0.045213375, -0.050459594, -0.039600488, -0.011479628, -0.008927033, -0.020547688, 0.041687693, 0.009547553, 0.007509708, 0.010034097, 0.053336553, -0.047582638, 0.0035820953, -0.012819389, -0.003137859, 0.033959392, -0.032408092, 0.015174545, -0.047385197, 0.031449106, -0.00042748923, 0.05172884, -0.009131523, 0.02786701, -0.049472403, -0.08924212, 0.045523636, -0.013002724, 0.009328961, -0.007474451, 0.019715628, 0.039374843, -0.0068821358, -0.0042801807, 0.07643684, -0.0040263315, 0.0024309594, -0.062108457, 0.020082299, 0.0391492, -0.006046549, -0.016401485, 0.052518595, -0.01720534, 0.008821262, -0.0034022855, -0.016034814, -0.033761952, 0.0059866123, -0.0073122694, 0.011112957, 0.07683171, -0.007742403, -0.029164461, -0.012988621, -0.0010198042, 0.06103665, 0.013912351, 0.006300398, 0.025116976, -0.022634894, 0.030631145, -0.02771188, -0.024172092, -0.009695632, 0.031251665, 0.00073774945, -0.011803991, -0.029756777, 0.043521047, -0.038246624, -0.048795473, -0.022324633, 0.028967023, -0.043295406, -0.021986168, 0.0011943256, 0.014335433, -0.009512297, 0.022705408, 0.061431523, -0.011585399, -0.024270812, 0.019419469, -0.016105326, -0.029079845, -0.018742539, 0.038246624, -0.008496899, -0.012770029, -0.027965728, -0.036751736, -0.044592857, -0.014060429, 0.05136217, -0.031082435, 0.041405637, 0.011049495, 0.016880976, 0.061882813, 0.0060394974, 0.03615942, 0.00017969972, -0.047046732, -0.043859515, 0.0059725093, 0.022550277, 0.009258447, 0.013630296, -0.027260592, 0.014610436, 0.040672295, 0.024510559, -0.019616907, -0.08828314, 0.011930916, -0.057003267, -0.018629717, 0.014236714, 0.0058279564, -0.005158076, 0.038415857, 0.0042801807, -0.0007849055, 0.020364353, -0.0014014596, -0.053562198, 0.01901049, -0.064364895, 0.005172179, -0.04357746, -0.03359272, -0.029333694, -0.043831307, 0.005285001, 0.04058768, 0.011888607, -0.0041849874, -0.037626103, 0.03410042, 0.015386087, 0.0012110726, -0.0034780877, 0.04806213, -0.008412283, -0.006769314, -0.03466453, 0.028191373, 0.027613161, -0.035708133, 0.0010629939, 0.015569422, 0.0010647567, -0.031872187, 0.022042578, 0.021563087, -0.011719375, -0.0156117305, 0.021746421, 0.016246354, -0.055057086, 0.0053660916, -0.019532291, -0.031985007, -0.009575759, 0.04730058, 0.022338737, 0.04374669, 0.01860151, -0.0034675107, -0.002790579, 0.033564515, 0.040869735, -0.008207793, 0.0005649909, 0.0026160579, 0.010245639, -0.0074391942, -0.0037372254, 0.011782837, -0.047046732, 0.04924676, -0.002055474, 0.01658482, -0.0061981534, 0.02992601, 0.016627127, 0.0011352703, 0.024693893, -0.042815913, -0.0035327359, -0.032887585, -0.018263046, -0.019038696, -0.031646542, -0.011655913, 0.016147634, -0.0484288, 0.0007708027, 0.025413133, -0.00070689974, 0.010915519, -0.003340586, -0.031702954, 0.016345073, -0.022733614, -0.01308029, 0.018756641, -0.022550277, -0.054492977, -0.0033141433, 0.016105326, -0.013150803, 0.008426386, -0.014666847, 0.010908468, 0.02374901, -0.007918688, -0.0024150938, -0.02231053, 0.01679636, 0.04126461, 0.012445666, 0.030659351, -0.021957962, 0.000787109, -0.022691306, -0.031956803, -0.014286073, 0.028247783, 0.013150803, -0.002222944, 0.034636322, 0.01782586, 0.0047667255, 0.012255279, -0.007939842, 0.004389477, 0.004816085, -0.033000406, 0.03931843, 0.017938683, 0.050233953, 0.03548249, 0.04786469, -0.017713038, 0.073165, 0.00419909, -0.032267064, -0.025511852, 0.040813323, 0.020307941, 0.00020195561, 0.0048619187, -0.035961982, -0.04961343, -0.014208508, -0.0005125464, 0.021125901, -0.017839963, 0.0012154797, -0.036413267, -0.010083457, 0.04518517, -0.029390106, 0.0035556527, 0.0110777, -0.025074668, 0.04445183, 0.0247221, -0.026005449, 0.017586114, 0.011141162, 0.039600488, -0.032746557, 0.04208257, 0.0032894635, 0.034495298, 0.032182448, 0.022381045, -0.033395283, -0.010041149, -0.032549117, -0.061431523, -0.03178757, -0.017938683, -0.011451423, -0.019334853, -0.002501473, -0.025215695, -0.003340586, -0.038669705, 0.020406662, -0.03652609, 0.017811758, 0.0025719868, 0.003060294, -0.04230821, 0.051333964, 0.012339896, 0.022183606, -0.015639937, 0.084503606, 0.020801539, 0.031590134, 0.026752893, -0.0041532563, 0.007248807, 0.028163167, -0.037513282, -0.021266928, 0.05017754, -0.03931843, 0.010231536, -0.035313256, -0.08179588, 0.01710662, 0.015780963, -0.014060429, -0.004393003, 0.031872187, -0.0086167725, -0.03934664, 0.002905164, 0.0819087, 0.0064167455, -0.015188648, -0.01421556, 0.01823484, -0.044705678, 0.022352839, -0.047949307, 0.03878253, -0.009886019, -0.033761952, 0.0070901513, -0.058554567, -0.0022670152, 0.033987597, -0.0028505158, 0.0164861, 0.035115816, 0.009300755, 0.028614454, 0.005528273, -0.019179722, -0.03652609, 0.05996484, 0.034297857, 0.05285706, 0.061882813, 0.05387246, -0.018023299, -0.007876379, 0.006557773, 0.0055564786, -0.004837239, -0.03590557, -0.025681086, -0.004146205, -0.0386415, -0.06870854, -0.031561926, -0.009145625, -0.022042578, -0.019743832, -0.02508877, 0.0041744104, -0.051390376, -0.047103144, -0.006501362, -0.0065225163, -0.001000413, -0.025793906, 0.004213193, -0.030010626, 0.23534648, 0.01870023, -0.004706789, 0.0005870265, 0.05474683, 0.08286769, 0.011035392, 0.011120008, -0.004488196, -0.027965728, -0.0038853043, -0.017092519, 0.005630518, 0.008031509, 0.012325793, -0.008440488, -0.05330835, 0.015823271, 0.0008598263, -0.044113364, -0.055564787, 0.036554296, 0.0005019693, 0.08969341, 0.0355389, -0.0070760488, -0.016415587, -0.05085447, -0.009815506, -0.021831037, -0.020420764, 0.01566814, 0.02637212, -0.009230242, -0.024186196, -0.017755346, 0.02570929, -0.040926144, -0.027500339, -0.0032330526, -0.009103317, -0.026442634, 0.038162008, -0.02308618, 0.011507834, 0.011550142, -0.032126036, 0.025949037, 0.020011785, -0.019800244, 0.04357746, -0.05443657, 0.04007998, -0.043154377, -0.045241583, 0.032549117, -0.066395685, -0.046708267, 0.007474451, 0.010062303, 0.0036949173, 0.03545428, -0.015809169, 0.045833897, 0.023297723, 0.024327222, -0.02431312, 0.040051773, 0.012057841, -0.0050241, 0.028388811, -0.030743968, -0.004160308, -0.06114947, 0.0052109617, 0.00834177, -0.006120588, 0.032126036, 0.004311912, -0.056128897, 0.043859515, -0.053392965, 0.027782394, -0.05342117, 0.022028476, 0.035623517, 0.013975813, -0.025399031, 0.0056058383, 0.019546395, 0.018065607, 0.075647086, 0.026174681, 0.038049188, 0.009618067 ]
Save the model with [~TFPretrainedModel.save_pretrained] and load it again with [~TFPreTrainedModel.from_pretrained]: from transformers import TFPreTrainedModel model.save_pretrained("path_to/model") model = TFPreTrainedModel.from_pretrained("path_to/model")
[ 0.021320246, 0.023081167, -0.02471111, 0.016066588, -0.0464825, 0.010761994, 0.008906478, -0.004864363, -0.0026231906, 0.021989686, 0.017128961, -0.011198586, 0.026966836, -0.06298568, 0.018205889, 0.053642612, 0.0027614448, -0.038536526, -0.029251667, -0.03306457, -0.004966235, 0.00058758014, -0.07416244, -0.040952336, -0.008928307, -0.013170527, 0.021742284, -0.03006664, 0.06013328, 0.031842113, -0.008542651, 0.017463682, -0.020912759, -0.015004214, -0.03419971, -0.027752701, -0.02622463, -0.010914802, -0.019952256, -0.00703277, 0.007596702, -0.012377385, 0.0039220518, -0.058503333, -0.04098144, 0.005610208, 0.020432508, 0.024958512, 0.019035414, -0.037023008, 0.023706948, 0.018569715, 0.003676469, -0.020097788, -0.046366077, -0.007960528, -0.038856693, -0.009794215, -0.030037533, 0.014793194, 0.021523988, 0.041476246, 0.032162283, -0.028145634, 0.044415966, 0.031201778, -0.011285905, -0.009081115, -0.010674676, -0.0060286084, -0.020767229, -0.018788012, -0.034112394, -0.008215208, -0.014778641, 0.048781887, 0.005992226, -0.023357674, -0.010463656, -0.011067608, -0.036528204, 0.0398463, 0.026428372, -0.006126842, -0.0020319722, -0.034228817, 0.053613503, -0.013497971, 0.005872163, -0.019384688, -0.04738479, 0.03306457, -0.04485256, -0.0023867032, 0.009415835, 0.03201675, -0.0046933647, 0.020374296, -0.029892003, -0.018788012, 0.00008225894, 0.08644523, -0.0030870696, 0.024769323, -0.005853972, 0.009736002, 0.017652873, -0.00004564888, -0.039758984, -0.02101463, 0.029193455, -0.001988313, 0.00023023409, -0.0033945031, 0.03533485, 0.0035109278, -0.0047770445, 0.020607146, -0.013970946, -0.016706923, -0.0194429, -0.004355006, -0.010012511, -0.034810938, -0.005926737, -0.044736132, 0.0005198174, 0.020272424, -0.0059995023, 0.00484981, -0.0054392093, -0.028160188, 0.030677868, 0.013046826, -0.030270383, -0.010383614, -0.040224683, -0.0051008505, 0.011322287, -0.017711084, 0.032278705, 0.0042458577, 0.018133122, 0.057397302, -0.02760717, -0.011540583, 0.03358848, -0.065372385, -0.017987592, 0.036353566, -0.0161248, 0.015921056, -0.0388858, 0.024361836, -0.020476168, 0.019166391, -0.04595859, 0.04927669, 0.018002145, 0.04767585, 0.0068253893, 0.0023357675, -0.03149284, 0.02954273, 0.029761026, 0.03323921, -0.033210102, -0.04301887, 0.011242245, -0.037779767, -0.004686088, -0.0008972876, 0.017390916, -0.013359717, 0.069563664, 0.013723544, 0.020927312, 0.024682004, 0.016939772, 0.0021211097, -0.0015708219, 0.009139327, 0.044707026, -0.009845151, -0.005024447, -0.04150535, -0.01154786, 0.021436669, -0.012290066, 0.026486585, 0.018016698, 0.06577987, -0.039089542, 0.0110166725, -0.040399317, -0.037925296, -0.048490822, 0.006006779, -0.009866981, 0.005693888, -0.0230084, 0.04950954, -0.060366128, 0.011955346, -0.01774019, 0.067526236, -0.0020228764, 0.049014736, 0.0067780917, -0.01721628, 0.057688363, -0.009168433, -0.010419997, -0.026239183, -0.008258866, 0.023444993, -0.03219139, 0.021145608, -0.020257872, -0.016488627, 0.04296066, -0.018293208, 0.03949703, 0.028203847, 0.03358848, 0.020752676, 0.025758931, 0.03865295, 0.022775551, -0.022600915, 0.0008131527, 0.02997932, 0.032453343, 0.016386755, 0.019952256, 0.02162586, 0.024769323, 0.020330636, 0.04112697, 0.012923125, 0.028480355, -0.013534354, 0.030386807, 0.027825467, -0.037983507, -0.010616464, -0.028422143, 0.023881586, -0.061006464, 0.024449155, -0.04566753, 0.022964742, -0.010521868, -0.01041272, -0.06717696, -0.016575946, 0.03850742, 0.030153958, -0.007909593, -0.0048025125, 0.02637016, 0.021596754, -0.010936631, -0.013432482, 0.033792224, 0.042844232, -0.0078077214, 0.015164297, 0.043193508, -0.056873392, 0.024973065, -0.026617562, -0.0830107, -0.009204816, -0.040108256, 0.022819212, 0.029426305, -0.01839508, 0.025409658, -0.019704854, -0.00558474, -0.016241224, -0.0048534484, 0.00051299564, 0.03638267, 0.034519877, -0.060773615, -0.0056211227, -0.03548038, -0.0024703834, -0.021145608, -0.023939798, 0.02233896, 0.0087391175, 0.008389844, -0.023532312, -0.02645748, -0.07032043, -0.050237194, -0.0036691923, -0.019675748, 0.0067489855, 0.00044727945, -0.0026995942, -0.027534405, 0.02361963, 0.0007808631, -0.012341002, 0.03600429, 0.042669598, 0.033704907, 0.043426357, 0.028771417, 0.039700773, -0.04732658, 0.05198356, 0.08493171, -0.01925371, -0.040952336, -0.04307708, -0.077189475, 0.008579033, -0.00074402563, -0.017230833, 0.010594633, 0.022848317, 0.013425206, -0.025002172, 0.0018109474, -0.060482554, -0.020185106, -0.043513674, 0.01631399, 0.053817246, -0.004402303, 0.022120664, -0.022178877, -0.014458474, -0.007109174, 0.0341415, 0.0063269464, -0.020025022, 0.045871273, 0.040515743, -0.013119591, -0.006632561, 0.030823398, -0.055941995, -0.011365946, 0.028640438, 0.058707077, 0.008011464, 0.0189772, 0.007531213, 0.016779687, 0.037517812, 0.04755943, 0.07218322, 0.0036455437, 0.0041330713, 0.034548983, -0.0032671639, 0.0050026174, 0.008200654, -0.04360099, -0.013876351, 0.0075093834, -0.012028111, 0.026006334, -0.061705012, 0.02674854, 0.01921005, -0.025700718, -0.0059303753, -0.006494307, -0.012661169, 0.030183064, 0.03827457, 0.03489826, -0.02603544, -0.048025128, -0.008338909, 0.015790079, 0.032395132, 0.031754795, 0.01589195, 0.026006334, 0.0039220518, -0.038070828, -0.015178851, -0.043222614, 0.009474047, 0.009182986, -0.029717365, -0.015484465, -0.042378534, -0.0007203769, 0.049538646, 0.031638373, 0.0059849494, 0.028684098, -0.014975107, -0.013301505, 0.039438814, -0.0048316186, -0.015790079, -0.026020886, 0.031987645, 0.03580055, 0.020519827, 0.0067744534, -0.016706923, 0.0013698075, 0.008906478, -0.0053227847, 0.0073165554, -0.01635765, 0.0081424415, -0.012704829, 0.046366077, -0.00287605, -0.005326423, -0.05908546, -0.00006992295, 0.021727731, -0.01744913, 0.012915848, -0.035072897, 0.010558251, 0.01778385, 0.010943907, -0.06676948, -0.0327153, 0.0023339484, -0.04808334, 0.06950545, 0.023706948, -0.013912734, -0.004675173, -0.048345294, -0.008033294, -0.020228766, -0.03571323, -0.03277351, 0.0011151289, 0.0032380577, 0.0018555162, 0.025074936, 0.014007328, -0.019763067, 0.006003141, -0.013061379, 0.026995942, -0.03306457, -0.03874027, -0.006701688, 0.024623793, -0.0021938751, 0.03676105, 0.0019137285, -0.03940971, -0.03385044, -0.004140348, -0.024056222, -0.032104068, 0.0052973167, 0.011918963, -0.020665357, 0.043047976, 0.017754743, 0.009830598, 0.018002145, 0.015877398, -0.019850386, 0.008186101, -0.055505402, 0.009110221, -0.027854573, -0.009452218, 0.034869153, -0.06350959, 0.022106111, -0.005628399, 0.028262058, 0.015178851, -0.055505402, -0.040312, -0.0007794987, -0.03646999, 0.036935687, 0.037168536, 0.006239628, -0.016765134, -0.0009254842, 0.017201727, 0.019646643, -0.042524066, 0.01797304, 0.07037864, 0.015266169, 0.011977175, -0.032948148, -0.038303677, 0.049625963, -0.007953252, 0.03623714, -0.0068726866, -0.086212374, 0.0048570866, -0.021523988, -0.038070828, -0.045521997, -0.018205889, 0.0067235176, -0.000102724196, -0.011154927, 0.013898181, -0.03286083, -0.011518754, 0.017099855, -0.009881534, -0.05268211, -0.046278756, -0.0001040317, 0.027447088, 0.009626855, 0.0054974216, -0.04191284, -0.04779228, -0.024114434, 0.019428346, -0.03254066, -0.030008428, -0.06839942, -0.069039755, -0.025700718, 0.030357702, 0.020141447, -0.053700823, 0.033704907, -0.022222536, 0.01444392, -0.012959507, -0.023881586, -0.025235021, -0.0034145138, -0.04083591, 0.07043685, -0.005704803, 0.017812956, 0.0119116865, 0.008731841, 0.03903133, 0.07736411, -0.021116503, -0.018904436, 0.008404397, -0.012079047, -0.014160136, 0.023983456, -0.008659076, 0.021669518, -0.00060986454, 0.061006464, -0.045405574, -0.0063851587, 0.02556974, -0.032395132, 0.035363957, -0.023168486, 0.0019737598, -0.024652898, -0.0029324433, 0.003121633, 0.04785049, -0.0067235176, 0.01788572, -0.027883679, -0.07573417, 0.04211658, -0.03149284, 0.010485486, -0.007895039, -0.0121736415, 0.036731943, -0.004875278, 0.0046933647, 0.08120612, -0.0046242373, -0.00009738049, -0.024289072, 0.0020647165, 0.014975107, -0.022760998, 0.0031707499, 0.026719434, -0.03006664, 0.021727731, 0.014116476, -0.02655935, -0.0100707235, -0.008993796, -0.011926239, 0.007836827, 0.0450563, 0.025031278, -0.01925371, -0.030998036, 0.0077567855, 0.037052114, -0.000118925855, -0.009015626, 0.02660301, 0.0013316057, 0.028567674, 0.013614396, -0.0011160384, 0.015280722, 0.04400848, 0.008717288, -0.016706923, -0.0014607642, 0.025613401, -0.043368146, -0.030910717, -0.023168486, 0.025074936, -0.048781887, -0.024449155, 0.008084229, 0.013636225, -0.053584397, 0.05838691, 0.032424238, -0.029950215, -0.038449205, 0.009022903, 0.007105536, -0.03495647, -0.015659101, 0.018817117, 0.004184007, -0.017623765, -0.03201675, -0.02252815, -0.052391045, -0.022542704, 0.05259479, -0.036644626, 0.023357674, 0.0336758, 0.017842062, 0.056611437, 0.007178301, 0.059551157, 0.005111765, -0.025758931, -0.037401386, -0.0012370108, 0.019341027, -0.010165318, 0.03166748, -0.020694463, 0.0275053, 0.039118648, 0.036178928, -0.00550106, -0.09639952, 0.034578092, -0.040166467, -0.013679884, 0.011445988, 0.0062032454, -0.02997932, 0.04255317, 0.022207983, -0.028014656, -0.001660869, 0.001641768, -0.025351446, 0.025235021, -0.04747211, -0.022455385, -0.021291139, -0.0124719795, -0.021829603, -0.03449077, -0.01498966, 0.028029209, 0.041621774, -0.004973511, -0.009663237, -0.0025104042, -0.014778641, -0.0023375866, 0.016444968, 0.03926418, -0.021407563, -0.018860776, -0.04642429, 0.03594608, 0.04656982, -0.039118648, 0.012537468, 0.008338909, -0.008673629, -0.007545766, 0.010463656, 0.02888784, -0.010383614, -0.02836393, 0.0016472255, 0.021436669, -0.058765292, 0.009430388, -0.05343887, -0.024696557, -0.00846261, 0.02916435, -0.009459495, 0.056640543, 0.012719382, 0.01788572, -0.014000052, 0.035131108, 0.04249496, -0.039380603, 0.027054153, 0.007127365, 0.033326525, -0.01278487, -0.0017099855, 0.011475095, -0.04377563, 0.03632446, -0.0059412904, 0.008455332, 0.0127703175, 0.014778641, 0.038623843, 0.037023008, -0.003281717, -0.028422143, -0.03195854, -0.026879517, -0.02286287, 0.00969962, -0.03684837, 0.0043404526, 0.024143541, -0.048549037, 0.0065015834, -0.00055210706, -0.0072146836, 0.00447143, 0.017609213, -0.030998036, 0.043571886, -0.019297369, 0.007378406, 0.040486638, -0.044095796, -0.015673654, -0.014756812, 0.0061050123, -0.038623843, 0.003174388, -0.0050062556, 0.053467974, 0.042756915, -0.026210077, -0.01299589, -0.016372202, 0.035887867, 0.042291217, -0.029338986, -0.0012715744, -0.014589451, 0.007523936, -0.023939798, -0.04386295, 0.0101580415, 0.041156076, 0.0058103125, 0.005992226, 0.01635765, 0.011657008, -0.012042664, -0.022106111, 0.008149718, 0.022033345, -0.0055192513, -0.023998009, 0.03865295, 0.0063087554, 0.06944724, 0.008324355, 0.044648815, -0.0077131265, 0.037284963, -0.0077567855, -0.04307708, -0.03277351, 0.04211658, 0.019602982, 0.035684124, 0.029047925, -0.03306457, -0.043280825, -0.017114408, 0.01135867, 0.011264075, -0.035829656, 0.014567622, -0.01465494, -0.040428422, 0.018889884, -0.020083234, -0.036702838, 0.012479256, 0.022368066, 0.05343887, -0.008579033, -0.023357674, 0.012952231, 0.019835832, 0.019748515, 0.000537554, 0.044037584, 0.001750916, 0.03283172, 0.005730271, 0.04543468, -0.03542217, -0.02124748, -0.009750556, -0.030736081, -0.019282816, -0.009313963, -0.00896469, 0.009670514, -0.032657087, -0.034985576, 0.00036632802, -0.041010547, -0.00822976, -0.045842167, 0.029324433, 0.007836827, -0.0007340204, -0.02765083, 0.049829707, 0.0066689434, 0.034257922, -0.011336841, 0.0640335, 0.03783798, 0.063276745, 0.05763015, -0.011569689, 0.031143567, 0.020243319, -0.039438814, -0.013192357, 0.036353566, -0.01992315, -0.015731867, -0.036819264, -0.06566344, 0.028029209, 0.019952256, -0.018526057, -0.064324565, 0.0739878, -0.013461588, -0.021189267, -0.01303955, 0.111069016, -0.005013532, -0.026428372, -0.0031088993, 0.003430886, -0.05701892, -0.025118597, -0.018467844, 0.045609318, -0.018715246, -0.041418035, -0.016968878, -0.041010547, -0.010652846, 0.056524117, 0.007814998, 0.003691022, 0.032744404, 0.033180997, 0.036935687, 0.003350844, -0.010943907, -0.010507315, 0.063276745, 0.050411828, 0.02945541, 0.06863227, 0.07951797, -0.01939924, -0.012217301, 0.013592566, 0.003976626, -0.0369939, -0.0001698616, -0.018715246, 0.0018164049, -0.026879517, -0.05530166, -0.03879848, 0.010150765, -0.04738479, -0.036033396, -0.008840989, -0.031754795, -0.039584346, -0.02765083, -0.03385044, 0.0040966887, 0.007814998, -0.032889936, 0.001689975, -0.058066744, 0.25217557, 0.037023008, 0.025598848, 0.009008349, 0.036295354, 0.07328925, 0.030794293, 0.009415835, -0.030561443, -0.04188373, 0.0001972623, -0.056989815, -0.011162204, -0.007465724, -0.010339955, 0.00085362844, -0.061006464, 0.014152859, 0.0054137413, -0.03542217, -0.036964793, 0.0087027345, 0.006017694, 0.06566344, 0.05966758, 0.014036435, -0.02357597, -0.052245516, 0.013876351, -0.019282816, -0.009372176, 0.0020647165, -0.019384688, -0.039584346, -0.020461615, -0.014196518, 0.032744404, -0.036266245, -0.013199633, -0.026501138, -0.012079047, -0.010303573, 0.031842113, -0.0107547175, -0.00097323646, 0.005340976, 0.0014935087, 0.023983456, 0.025220467, -0.015775526, 0.04089412, -0.06519774, 0.033995967, -0.041272502, -0.06793372, 0.024580132, -0.059580263, -0.04895652, 0.016808795, 0.014669493, -0.012806701, 0.027592618, -0.03940971, 0.03600429, -0.02504583, 0.025889909, -0.021785943, 0.07293998, 0.010238084, -0.025467869, 0.001627215, -0.04950954, -0.022120664, -0.020898206, -0.003105261, 0.018336866, -0.006021332, 0.043368146, -0.0021156524, -0.036499094, 0.024289072, -0.011555136, 0.045580212, -0.05585468, 0.024623793, 0.021131055, 0.0029560921, -0.0044859834, -0.0013488876, 0.01887533, 0.025031278, 0.054515794, 0.0077713383, 0.032744404, -0.03405418 ]
Save the model weights as a h5 file extension with model.save_weights and then reload the model with [~TFPreTrainedModel.from_pretrained]: from transformers import TFPreTrainedModel from tensorflow import keras model.save_weights("some_folder/tf_model.h5") model = TFPreTrainedModel.from_pretrained("some_folder") Save the model with [~TFPretrainedModel.save_pretrained] and load it again with [~TFPreTrainedModel.from_pretrained]:
[ 0.0015160502, -0.0058489037, -0.0074492786, 0.009279303, -0.0086980015, -0.019448502, -0.0034088702, -0.004514062, -0.029768407, 0.06401499, 0.0078009306, 0.0407055, 0.012157108, -0.035940256, -0.03769134, -0.000580405, -0.006950507, -0.034504943, -0.046532873, -0.006013965, 0.046446756, -0.008109523, -0.060053527, -0.030026764, -0.017482122, 0.015845865, 0.009465895, -0.0042413524, 0.044666965, 0.042054694, -0.012078165, 0.0048908317, 0.005081011, -0.04486791, -0.02593612, -0.030428652, 0.005235307, -0.041250918, 0.004506885, -0.018917436, 0.04607357, 0.020869462, 0.0015456536, -0.057326432, -0.040935148, -0.0201231, -0.019362383, 0.009049653, -0.0090353, -0.012817352, 0.012494407, -0.026180124, 0.03083054, 0.005511605, -0.07268429, -0.0048908317, 0.014223959, -0.022534426, -0.017295532, -0.049862802, 0.039413717, 0.013061356, 0.0006885021, -0.05012116, 0.02913687, 0.0043490008, -0.012587702, 0.017209413, -0.023151612, 0.011238507, -0.048283957, 0.011884398, -0.05457063, -0.032811273, -0.043002002, -0.015056442, -0.005149188, -0.0009778076, -0.0315769, 0.023051139, -0.00048352132, 0.022749724, 0.0484849, 0.0065916786, -0.00039403848, -0.040274903, 0.025950473, -0.009946724, -0.0052066008, -0.023051139, -0.022146892, 0.010872502, -0.018587314, 0.031347252, 0.035653196, 0.055977236, -0.009293657, 0.042399168, -0.016764466, -0.026366714, 0.055144757, 0.08766896, -0.02520411, 0.026538951, -0.018128013, 0.013893837, 0.023453027, 0.013183357, -0.0032635448, 0.011109329, -0.018673433, -0.007973168, 0.002411327, 0.011783926, -0.04400672, 0.023840562, 0.013728776, -0.012831706, -0.04638934, 0.0053931917, 0.004557121, -0.0035272837, 0.03421788, -0.026223183, 0.009042477, -0.03266774, 0.022261716, 0.019089673, -0.013326889, -0.026237536, 0.0066706208, -0.005357309, 0.02351044, 0.02689778, -0.0037999933, -0.006537854, -0.000864328, 0.012358052, 0.020711578, -0.012953707, -0.00723757, -0.021472294, -0.008604706, 0.089276515, -0.0011966928, -0.019003555, 0.0361412, -0.0051527764, -0.001072, -0.007772224, -0.05474287, 0.0049769506, -0.014066075, 0.013283829, -0.032438092, -0.014446434, 0.025003167, -0.015257386, -0.0037748753, -0.018357662, 0.04994892, 0.0010549556, -0.012429818, 0.08376491, 0.00018143264, 0.06435947, -0.004793948, -0.007721988, 0.0053286026, -0.040648088, 0.04515497, 0.010434731, 0.008446822, 0.018185426, 0.025003167, 0.0060964953, 0.04811172, -0.0042449404, 0.02264925, 0.02277843, 0.0017968335, -0.028304389, 0.014302902, 0.04524109, 0.03206491, -0.0074995146, 0.009480247, -0.015931983, -0.0060749655, -0.0032473975, 0.040561967, 0.035423543, -0.02524717, 0.006308204, -0.028304389, 0.023539146, -0.047221825, 0.031232428, 0.01738165, -0.06321122, 0.007836813, 0.05164259, -0.04885808, 0.038897004, -0.022491368, 0.037117213, 0.016491756, 0.050781403, -0.0033460753, 0.0046252985, 0.032237146, 0.0034250175, -0.017252471, 0.0015492418, 0.0038430528, -0.012350875, -0.040762912, 0.027041312, -0.002170912, 0.02154406, -0.008360703, 0.009128596, -0.009480247, 0.033098336, 0.019434148, -0.069641426, -0.017453415, 0.0132407695, 0.028146503, -0.005866845, -0.01049932, 0.020840757, -0.022261716, 0.032409385, -0.0073775128, -0.0072088633, 0.06143143, 0.06946918, -0.0062364386, 0.008461175, 0.009501778, 0.00219603, 0.03806452, 0.038897004, 0.0031863966, 0.00403682, 0.0045894156, -0.006103672, -0.037174627, -0.004341824, -0.049259968, 0.06057024, 0.005866845, -0.0039327596, -0.059307165, -0.0347633, 0.028706275, 0.03083054, -0.011884398, -0.0072770407, 0.0008818209, 0.022979373, 0.0020883817, -0.0265246, 0.028333094, 0.045355916, -0.0027414493, 0.030658303, -0.022620546, -0.022448307, -0.04770983, -0.04193987, -0.055374406, 0.008705178, -0.0356819, -0.03091666, 0.021558413, -0.02218995, 0.015644921, 0.0075210445, -0.025878707, 0.0118269855, -0.043978013, 0.06711527, 0.018472489, 0.026596364, -0.05548923, 0.0452698, -0.026969546, 0.025591645, -0.012099695, -0.00955919, -0.014546906, -0.025850002, 0.040877737, 0.009803194, 0.013822072, -0.035366133, -0.040332317, -0.0010244552, 0.039413717, 0.019434148, 0.012932178, -0.008841533, -0.01587457, 0.023912327, 0.022204304, -0.0324668, 0.035653196, 0.07538268, -0.027601084, 0.014238313, 0.013384301, 0.040447142, -0.04524109, 0.03639956, 0.029710995, -0.014166547, -0.011410745, -0.040590674, -0.038667355, 0.014740673, 0.003622373, -0.034189176, 0.014216783, 0.049805388, -0.0023054727, -0.039069243, 0.0015743598, -0.060225766, -0.02895028, -0.0057627847, -0.015716687, 0.060627654, 0.030199002, 0.0072483346, -0.046446756, -0.012896295, -0.0069074477, 0.02227607, 0.0082602305, -0.02813215, 0.027113078, 0.028620157, 0.007980345, 0.031289842, 0.03283998, -0.04670511, -0.008066463, 0.011762396, 0.045068853, 0.009796017, 0.019721212, -0.017309884, 0.0072626877, 0.03728945, -0.01054238, 0.014145018, 0.009996961, 0.03892571, 0.032782566, 0.010133316, 0.04047585, 0.0260653, -0.021802416, -0.00093295396, 0.0014685055, -0.003015953, 0.05942199, 0.021945948, -0.0035524017, -0.00453918, -0.040762912, -0.011920281, -0.03513648, -0.044753082, 0.029452639, 0.010764853, 0.021587119, -0.025735177, -0.03306963, 0.016549168, -0.0017098176, 0.01271688, 0.009480247, 0.035423543, -0.00075129705, 0.0030715715, 0.0053286026, 0.0055331346, 0.0032743097, -0.028519684, -0.029280402, -0.03083054, -0.06751716, -0.011633218, 0.034964245, 0.059766468, 0.049661856, 0.021400528, 0.034591064, -0.02415633, 0.02191724, 0.03014159, -0.0015232267, -0.03470589, -0.056895837, 0.06321122, -0.01518562, -0.0038897004, -0.016635288, 0.019635092, -0.037203334, 0.026452834, 0.011762396, -0.023625266, -0.010276847, 0.015300445, 0.01223605, 0.0014945205, -0.011367685, -0.0695266, -0.016635288, 0.004969774, 0.048370074, -0.07038779, 0.025505526, -0.007815284, -0.0124657005, 0.029969351, -0.026395421, -0.037806164, -0.017525181, -0.025003167, -0.041136093, -0.008633412, 0.016678346, -0.0025064168, 0.014970323, -0.016620934, 0.010391672, 0.030887952, -0.06522066, -0.0210417, -0.0022032068, 0.0007167598, -0.0032707213, 0.046159692, -0.015515742, -0.023826208, 0.027974267, -0.014130664, 0.0052030124, -0.032237146, 0.025735177, -0.02264925, -0.009465895, -0.00056694896, 0.045987453, -0.0055438997, -0.0727417, 0.007987522, 0.009207538, -0.022591839, -0.06659856, -0.012953707, 0.059996117, -0.0013070327, 0.0055474876, 0.008432468, 0.010549556, -0.0042485287, 0.03970078, -0.011166741, 0.0072268047, 0.016219046, 0.007492338, -0.022175599, -0.03261033, 0.06533548, -0.04291588, 0.03562449, 0.014999029, -0.040418435, -0.025146697, -0.056178182, -0.024084566, -0.0036744033, -0.040332317, 0.03060089, 0.033701167, -0.0008692619, 0.0023018846, -0.033471517, -0.009243421, -0.010004137, -0.04423637, -0.0085975295, 0.070330374, 0.033902112, -0.0024185036, -0.026854722, -0.04079162, 0.04693476, -0.02534764, 0.007793754, -0.009243421, -0.01614728, 0.008131052, -0.017898362, -0.032811273, -0.00048172718, 0.018917436, -0.014690436, -0.009142949, -0.004808301, -0.011209801, -0.021859828, -0.013800542, 0.068665415, -0.02905075, -0.03467718, -0.007980345, 0.033414107, 0.024098918, 0.0016470226, -0.013822072, -0.038208053, -0.03212232, 0.00403682, 0.07624387, -0.040332317, 0.032954805, -0.051326822, -0.057986677, 0.014123487, 0.050838813, -0.0041947044, -0.086118825, 0.013097239, -0.04661899, 0.013994309, -0.02145794, -0.042226933, -0.033471517, -0.026022239, -0.018041894, 0.040504556, 0.020453222, 0.02516105, 0.0056910194, -0.0029226576, 0.028993338, 0.07279912, -0.040877737, 0.02053934, 0.0035990493, 0.003943525, 0.0056479597, -0.013922544, 0.011862868, 0.02758673, -0.022893256, 0.048140425, -0.04340389, -0.037432984, -0.030859247, -0.011554276, 0.052790843, -0.05178612, -0.008511411, -0.015027735, 0.0053752502, 0.003896877, 0.04842749, 0.004442296, -0.04409284, -0.037059803, -0.046044867, 0.017123293, -0.02127135, -0.017640006, 0.005174306, -0.03229456, 0.046532873, -0.032438092, 0.038667355, 0.051987067, -0.009695545, -0.0057591964, -0.057871852, 0.035394836, 0.0048190663, -0.0073201004, 0.014984676, -0.0027809204, -0.03381599, 0.0009831899, -0.032552917, -0.02616577, -0.012085342, 0.034935538, 0.011647572, -0.008095169, 0.053077903, -0.025835648, -0.016663993, -0.038093228, 0.041968577, -0.010736147, 0.00928648, -0.0017501857, -0.0020058511, -0.0073488066, 0.03361505, -0.0035488133, -0.042054694, -0.027371434, 0.07256947, -0.017855303, -0.04303071, 0.020783344, 0.009996961, -0.011920281, -0.047681123, 0.023438673, -0.013707247, -0.033040922, -0.039815605, -0.023051139, 0.012867589, -0.045442034, 0.017152, 0.036944978, -0.0007400837, 0.026682483, 0.018228484, -0.030112883, -0.026969546, 0.063326046, 0.06797646, -0.038667355, 0.03321316, -0.049288675, -0.013018296, -0.040418435, 0.0028024502, 0.046217103, 0.0041982927, -0.010621322, 0.042025987, 0.011389215, 0.045068853, -0.014826791, 0.006279498, -0.013003943, -0.03993043, -0.05310661, -0.021759357, 0.011956164, -0.004657593, 0.019592034, -0.001957409, 0.008174112, -0.014633024, 0.051987067, -0.0053896033, -0.09111372, 0.028117796, 0.011640395, -0.05063787, -0.011173918, -0.008281761, 0.0014272402, 0.031433374, 0.0019017907, -0.02643848, -0.009508953, 0.005558253, -0.04038973, -0.004187528, -0.02662507, 0.009803194, -0.062407445, -0.0028526862, -0.052532483, -0.023711383, 0.03083054, 0.011224153, 0.017539535, 0.018730845, -0.047279235, 0.044035427, -0.028290035, 0.017080234, 0.020223571, -0.0067316215, -0.004607357, -0.0044494728, -0.037031095, -0.0031325724, 0.02712743, -0.027802028, 0.002068646, 0.0003980753, -0.009401306, 0.00734163, -0.002068646, 0.057010666, -0.04340389, 0.015702333, 0.026424127, 0.0269839, -0.034820713, -0.0064625004, -0.040906444, -0.025950473, 0.0045212386, 0.015975043, 0.009114242, 0.01596069, 0.015644921, 0.027873794, -0.020955581, 0.040877737, -0.013549362, 0.033787288, 0.0016855967, 0.0009177037, 0.028060384, -0.023137258, 0.029710995, -0.017496476, -0.038753472, 0.028117796, -0.019276265, -0.007736341, -0.05379556, 0.018903082, 0.00010243431, 0.041738924, 0.004994892, -0.039499834, 0.008353527, 0.024443394, -0.035337426, 0.05195836, -0.06745975, -0.013047002, 0.002156559, -0.04957574, -0.012767117, -0.046819936, -0.015300445, 0.052388955, 0.020022627, -0.0023557087, 0.01321924, 0.060053527, 0.022950668, 0.042657524, -0.035480957, 0.00016461255, -0.022477014, -0.013161828, -0.0010029256, -0.034935538, -0.0147550255, 0.04839878, 0.0072483346, -0.01614728, -0.026797308, -0.011037563, -0.0005866845, 0.031146308, -0.0011751632, 0.008834356, -0.056781013, 0.04934609, 0.0028078326, 0.015659273, -0.026079651, 0.018644726, 0.022290424, 0.01664964, -0.0034393708, -0.011173918, 0.044437315, -0.059709053, 0.021486647, 0.044064134, 0.040561967, -0.02428551, 0.02076899, -0.0024633573, 0.04285847, 0.02273537, 0.0074205725, -0.0019502327, 0.044064134, 0.009688368, -0.053451087, -0.028290035, 0.055805, 0.03823676, -0.0074779848, -0.0060032, -0.005421898, 0.011948987, -0.015616214, 0.016951056, -0.0028813924, 0.011877222, -0.0047831833, -0.00016853724, -0.046532873, 0.0063692047, 0.035509665, -0.016864937, -0.02840486, -0.019290617, 0.057383846, 0.028074738, 0.013082885, 0.0029567464, 0.040332317, 0.0176113, -0.019405443, 0.025333289, -0.029998058, 0.037633926, -0.012401111, 0.0133412415, -0.013319712, -0.020725932, -0.027888147, -0.04455214, -0.02831874, 0.017553888, -0.016793171, -0.013728776, 0.008087994, -0.017582593, -0.021945948, -0.037174627, 0.024988813, -0.07589939, -0.011181095, 0.03005547, -0.019505914, -0.027270962, 0.02488834, 0.007345218, 0.009142949, 0.006042671, 0.05126941, 0.022161245, 0.084913164, 0.003821523, 0.011762396, 0.05698196, 0.0049123615, -0.027888147, -0.0011464569, -0.0021780888, 0.005095364, -0.017324237, -0.062062968, -0.039413717, -0.015501389, 0.0005054996, -0.026366714, -0.04934609, 0.013757483, -0.0007643046, -0.025333289, 0.008525764, 0.106155805, 0.05333626, 0.016750112, -0.008102346, 0.0042844117, -0.029452639, -0.010513674, -0.0031379547, 0.011769573, -0.03421788, -0.07894226, -0.015917629, -0.041681513, 0.00502001, 0.004549945, -0.0044458844, -0.011109329, 0.031002779, 0.025448114, 0.058532096, 0.05012116, -0.013599598, -0.009860606, 0.05103976, 0.030629596, -0.0032761036, 0.037949696, 0.061374016, -0.009164479, 0.009767311, -0.009028124, 0.03562449, -0.004388472, 0.014927263, 0.019376736, -0.022175599, -0.006975625, -0.030428652, -0.01424549, 0.0044243545, 0.00734163, 0.013771836, -0.041968577, -0.008963535, -0.07492338, -0.02589306, -0.022677958, 0.027026959, 0.002660713, 0.002535123, 0.009659662, -0.03631344, 0.24526642, 0.099495955, 0.049977627, -0.020754637, 0.06981366, 0.044351198, 0.00066428113, -0.030658303, 0.01049932, -0.039585955, 0.007894225, -0.02177371, 0.02616577, 0.007693282, -0.0027934795, 0.0102122575, -0.07492338, 0.0057627847, -0.005195836, -0.067919046, -0.03306963, 0.025677763, 0.018888729, 0.038495116, 0.044954028, -0.009989784, 0.007442102, -0.064531706, -0.03160561, -0.027758969, 0.012099695, -0.010327083, 0.014188076, -0.04099256, 0.011798279, 0.010944268, -0.02378315, -0.04578651, -0.0030087766, 0.0011078828, -0.0017017439, -0.032438092, 0.010133316, 0.00034268116, -0.022577485, 0.012494407, -0.005120482, 0.036112495, 0.04047585, -0.08669295, 0.031261135, -0.04971927, 0.020926874, -0.017410357, -0.053623322, 0.010047196, -0.044580847, -0.01606116, 0.0007284217, 0.052762136, -0.02804603, 0.025850002, -0.012501583, -0.028691923, -0.030084178, 0.043518715, -0.01903226, 0.024716103, -0.05525958, 0.008913299, -0.016563522, -0.014044546, -0.0050128335, -0.01930497, 0.04409284, 0.021859828, -0.010190728, 0.0361412, -0.030486064, -0.03453365, 0.0031666611, -0.017022822, -0.027514966, -0.023653971, -0.0053178375, 0.067804225, -0.024673045, -0.0047473004, 0.008217172, 0.04793948, 0.0039758193, 0.053508498, 0.007556927, 0.0026033004, 0.0019215264 ]
Here is the actual output of the second sequence: input_ids = torch.tensor([[7592]]) output = model(input_ids) print(output.logits) tensor([[-0.1008, -0.4061]], grad_fn=) Most of the time, you should provide an attention_mask to your model to ignore the padding tokens to avoid this silent error. Now the output of the second sequence matches its actual output: By default, the tokenizer creates an attention_mask for you based on your specific tokenizer's defaults.
[ 0.014582103, 0.00968908, -0.017065909, -0.0044939728, -0.01300828, -0.0101888245, 0.03111843, -0.002940662, -0.04314214, 0.038517635, 0.026135901, 0.020004706, 0.018378671, -0.03589211, -0.01943783, 0.029208958, 0.003404977, -0.040844806, -0.04048678, -0.00019800985, 0.014716363, 0.009256465, -0.05209279, -0.032908563, -0.027612759, 0.026464092, 0.0049489643, -0.00948769, 0.054986835, 0.04540964, -0.036190465, 0.007846737, -0.011091349, -0.01851293, -0.0284034, -0.039860234, 0.004743845, -0.061341796, 0.0021276444, -0.0074439584, 0.041531023, 0.030611228, -0.0069255666, -0.06408666, -0.04725944, -0.00862992, -0.013813838, -0.011770107, -0.014112193, -0.02024339, -0.0069777784, -0.010897418, 0.003729438, 0.03809994, -0.058030058, -0.018587518, 0.011964037, -0.015305614, -0.009681622, -0.0384878, 0.008965569, 0.022287121, -0.022078274, -0.03896517, 0.009055075, 0.0147387395, -0.0077870665, 0.023047928, -0.02070584, -0.006399716, -0.037085533, 0.028895685, -0.032222345, -0.035862274, -0.030879747, -0.016961485, -0.014119652, 0.003997958, -0.01241157, 0.01367212, 0.0016083202, 0.021287633, 0.0030562745, -0.00010524008, 0.0032502052, -0.04239625, 0.030849911, -0.0074849823, -0.025166247, -0.04206806, -0.030387461, 0.005169001, -0.0036231491, 0.038070105, 0.044604078, 0.070411794, -0.003763003, 0.04925842, -0.013612449, -0.026299996, 0.05274917, 0.097800784, -0.046752237, 0.015380203, -0.007645348, 0.018617354, 0.030223366, 0.0109048765, -0.0028045373, 0.018706862, -0.0028716673, -0.023808733, 0.013314093, 0.015410038, -0.039591715, 0.0009402846, -0.0019262547, 0.013194752, -0.04472342, -0.008160011, 0.0044790553, -0.01897538, 0.004523808, -0.02078043, 0.0022991986, -0.036608163, 0.024330854, 0.00061582343, -0.009032699, -0.011397162, 0.009935223, 0.0030749217, 0.052779008, 0.046215195, 0.0009463449, 0.012530912, -0.00074495526, -0.00058365706, 0.0075371945, -0.026613269, -0.010002353, -0.009539902, 0.0015132194, 0.079362445, 0.015290696, -0.023182187, 0.045021776, -0.020914689, -0.017334428, -0.0021761272, -0.023987746, 0.0038264035, -0.007376828, 0.013754168, -0.044037204, -0.023838568, 0.012254934, 0.0043746307, -0.014955047, -0.0085031185, 0.05024299, -0.014216618, -0.008607543, 0.09869585, -0.010569228, 0.057522852, -0.019452749, 0.0018572601, 0.019363243, -0.03923369, 0.016827224, 0.020258307, 0.019020135, 0.024524784, 0.016439363, -0.005318179, 0.07393238, 0.008189846, -0.002621795, 0.023376118, 0.005415144, -0.024301019, -0.028313894, 0.055702887, 0.003604502, -0.012031167, 0.019124558, 0.0017593624, -0.012046085, -0.010062024, 0.04406704, 0.032162674, -0.038666815, 0.0070113437, -0.020825181, 0.023331365, -0.016946567, 0.015380203, 0.020720758, -0.055404533, 0.015693475, 0.056001242, -0.037264545, 0.036638, -0.01964668, 0.01267263, 0.011643305, 0.059104133, -0.0066346703, 0.012150509, 0.034728527, 0.031744976, -0.020944525, 0.024480032, -0.0032483405, -0.01910964, -0.019214066, 0.0325207, 0.012180345, 0.009748751, -0.013224588, -0.0012269851, 0.0258823, 0.04872138, 0.0329384, -0.0347882, -0.02734424, 0.019557172, 0.046483714, -0.014142029, 0.0026721423, 0.014858081, 0.0035149953, 0.03929336, -0.03908451, 0.012598041, 0.06325127, 0.041710034, -0.007455147, -0.0012139321, 0.025822628, -0.007089662, 0.04308247, 0.026896708, -0.010994383, 0.022257287, 0.0027802961, -0.008786556, -0.05561338, -0.011643305, -0.04776664, 0.081868626, 0.0016586676, -0.018527849, -0.07065047, -0.027866362, 0.0029387972, 0.025971806, 0.014604479, -0.014582103, 0.001091793, 0.020989276, -0.0072835926, -0.026076231, 0.023212023, 0.037324216, -0.0000030665888, 0.03177481, -0.03026812, -0.049377758, -0.032162674, -0.028552577, -0.062296532, 0.018483095, -0.022287121, -0.034221325, 0.009771127, -0.038935333, 0.015193731, 0.016111173, -0.009047616, 0.003158834, -0.04388803, 0.051227562, 0.0125831235, 0.043858193, -0.03789109, 0.027105555, -0.034400336, 0.030611228, -0.0038786156, -0.021541234, -0.026255244, -0.02509166, 0.02409217, 0.031685304, 0.018378671, -0.027195062, -0.04818434, 0.014313583, 0.024435278, 0.03654849, 0.009271383, 0.011919284, -0.019587008, -0.0042105354, 0.019497503, -0.025807712, 0.02767243, 0.08079454, -0.02926863, 0.00039229027, 0.026001642, 0.033087574, -0.044544406, 0.026598353, 0.040427107, -0.012903856, -0.0125831235, -0.029253712, -0.025777876, 0.027836526, -0.006694341, -0.0242861, -0.0005398362, 0.05057118, -0.014940129, -0.040188424, -0.015961995, -0.045887005, -0.048065, -0.012456323, -0.017334428, 0.05036233, 0.01001727, 0.008145093, -0.03971106, -0.014074899, 0.0038450507, 0.023226941, 0.008018292, -0.03132728, 0.0315958, 0.030387461, 0.018632272, 0.01997487, 0.043709014, -0.05946216, -0.011307656, -0.0051130597, 0.045767665, 0.014686527, 0.012023708, -0.028642084, 0.029447643, 0.014477679, -0.02488281, 0.011643305, 0.0089954045, 0.027791772, 0.038577307, 0.020079294, 0.029656492, 0.012322064, -0.02767243, 0.00030767865, -0.010144072, -0.01639461, 0.04341066, 0.007980998, -0.005635181, 0.0133066345, -0.032401357, 0.0009743157, -0.034340665, -0.055315025, 0.043112304, 0.008794015, 0.026404422, -0.017707372, -0.021004194, 0.0058104643, 0.015812818, 0.010405133, 0.01851293, 0.025360178, -0.011054055, 0.016424445, -0.008965569, 0.0031961284, 0.005198837, -0.009935223, -0.01062144, -0.02257056, -0.07214225, -0.00003499262, 0.0055270274, 0.056717295, 0.04776664, 0.016767554, 0.044096876, -0.03636948, 0.0076826424, 0.02116829, 0.0017239327, -0.020631252, -0.05182427, 0.058835614, -0.00723511, -0.008853686, -0.04373885, 0.02601656, -0.05576256, 0.043171976, 0.018468177, 0.0015010989, -0.032729547, 0.01705099, 0.010591604, 0.002349546, -0.015887406, -0.047617465, -0.04347033, -0.010211201, 0.0521823, -0.052450817, 0.0121057555, -0.009800963, -0.034818035, 0.026493927, -0.0051130597, -0.031297445, 0.005150354, -0.019020135, -0.046811905, 0.016021665, 0.011583635, -0.0013976069, -0.007279863, -0.016155927, 0.011076431, 0.020541744, -0.05746318, -0.012695007, 0.021541234, 0.004520079, -0.018826203, 0.045618486, -0.018453259, -0.024301019, 0.042187404, -0.019199148, 0.010233578, -0.016886896, 0.0070933914, -0.03359478, -0.005165272, 0.013120163, 0.032580372, -0.011337492, -0.06307226, 0.0078094434, 0.021093702, -0.031357113, -0.07393238, -0.028164716, 0.050988875, 0.00862992, 0.010173907, 0.011292739, 0.0038711566, 0.0045834794, 0.03836846, -0.018990299, 0.004027793, -0.00948769, 0.0074364995, -0.004001687, -0.030879747, 0.062177192, -0.059223477, 0.014283747, 0.0076975604, -0.053077362, -0.042903457, -0.037354052, -0.035802606, -0.0023942993, -0.025479522, 0.046782073, 0.032669876, -0.0061088195, -0.012448864, -0.047796477, -0.015148978, -0.019482585, -0.041352008, -0.004624503, 0.07566284, 0.05251049, 0.025076741, -0.044275887, -0.025479522, 0.045827337, -0.010054565, 0.0142017, 0.002043732, -0.030670898, -0.011606012, -0.036936354, -0.01778196, 0.0076751835, -0.005668746, 0.010606522, 0.011695518, 0.006198326, -0.01970635, -0.024450196, -0.014104735, 0.07321633, -0.033743955, -0.047557794, -0.029044863, 0.036130797, 0.013545319, 0.012433946, 0.0057694404, -0.03317708, -0.0315958, 0.025479522, 0.05376358, -0.038517635, 0.043231647, -0.04749812, -0.037204873, 0.020362731, 0.04878105, -0.0077273957, -0.07769165, 0.007712478, -0.027463581, -0.007846737, -0.033027902, -0.045230623, -0.019691434, -0.036429152, -0.013284259, 0.035474416, 0.047348946, -0.010703487, -0.014850622, -0.024703797, 0.030223366, 0.068860345, -0.05421111, 0.011561258, 0.0036324726, -0.017021155, 0.0057507935, -0.013784003, 0.0048147044, 0.03052172, -0.0064668455, 0.061938506, -0.057164825, -0.030283038, -0.044693585, -0.008204764, 0.03729438, -0.04141168, -0.017379181, -0.005653828, 0.012031167, -0.0051801894, 0.06563811, 0.0041769706, -0.03392297, -0.034758363, -0.035862274, 0.02195893, -0.02124288, 0.0120982975, -0.007719937, -0.01705099, 0.06065558, -0.043350987, 0.0070225317, 0.041650362, -0.010867583, -0.0089954045, -0.04179954, 0.043291315, 0.0051391656, -0.0016801119, 0.009838258, 0.0060603367, -0.032431193, 0.009114747, -0.03842813, -0.025688369, -0.0012605501, 0.031804647, 0.013716873, -0.035534088, 0.04964628, -0.026493927, -0.025718205, -0.045081448, 0.053644236, -0.0068733543, 0.022137944, -0.00048202986, 0.00524359, -0.0021164562, 0.04320181, 0.0003913579, -0.03431083, -0.04493227, 0.068561986, -0.010375297, -0.025792794, 0.009547361, -0.0017071503, -0.012821808, -0.03246103, 0.033564944, 0.012202721, -0.029477479, -0.0329384, -0.019542255, 0.007854196, -0.012240016, 0.0019486314, 0.03923369, -0.0076192417, 0.014902835, 0.0044939728, -0.026523763, -0.016767554, 0.040934313, 0.036458988, -0.018453259, 0.03696619, -0.019020135, 0.0094653135, -0.05701565, -0.020750593, 0.05427078, 0.012970986, 0.0007663995, 0.034997046, 0.019930117, 0.066652514, -0.022093192, -0.0017910626, 0.0026963837, -0.028164716, -0.0540321, -0.019422913, 0.026001642, -0.0012624147, 0.0019281195, -0.023391036, -0.0017938598, -0.0071120383, 0.037085533, -0.028045375, -0.10466295, 0.050929207, 0.00789895, -0.0517646, -0.008070504, -0.026702777, 0.0070449086, 0.049825292, -0.0071903565, -0.015231025, -0.015275778, 0.020616334, -0.053196706, -0.03538491, -0.014089817, -0.00882385, -0.0526895, -0.011173396, -0.021690411, -0.046424046, 0.015305614, -0.0010600928, 0.0047960575, 0.014955047, -0.015947077, 0.031476457, -0.038666815, 0.031476457, -0.0049713408, -0.017423935, -0.0023327635, 0.0043970076, -0.022376629, -0.003919639, 0.038070105, -0.044753257, 0.0031606988, 0.0043746307, 0.0040315227, 0.011233067, -0.007320887, 0.033027902, -0.03896517, 0.013963016, 0.018632272, 0.017662618, -0.051048547, -0.016707882, -0.04540964, -0.015439874, -0.008741803, 0.014619397, 0.01891571, 0.026613269, -0.00025406797, 0.01320967, -0.0016586676, 0.054957, -0.0012773325, 0.031804647, 0.019393077, -0.013612449, 0.035534088, -0.013701956, 0.012881479, 0.0025863652, -0.043112304, 0.03556392, -0.008465825, -0.0142464535, -0.06271423, 0.023525296, 0.018080316, 0.050929207, 0.007816902, -0.04749812, 0.0062915618, 0.014231536, -0.022212533, 0.033535108, -0.04612569, -0.011673141, 0.0067390944, -0.038905498, 0.00437836, -0.024838058, 0.0024297289, 0.03451968, -0.0006419295, 0.01154634, 0.017438853, 0.06468337, 0.022719737, 0.031983662, -0.047080427, -0.008413612, -0.008450907, -0.0082718935, -0.02609115, -0.04540964, 0.009219171, 0.025941972, -0.014112193, -0.030297955, -0.0070560966, -0.0026833306, 0.016707882, 0.06205785, -0.008592625, 0.0018208981, -0.07082949, 0.07076982, -0.016051501, 0.017841632, 0.0077348547, 0.025479522, 0.004982529, 0.0055382154, 0.017006237, -0.00014673008, 0.042575266, -0.053733744, 0.01985553, 0.03446001, 0.029015029, -0.014716363, 0.010442426, -0.00570604, 0.012687548, 0.011434457, 0.016096255, -0.0065936465, 0.04758763, 0.017304592, -0.05441996, -0.008458366, 0.032819055, 0.029477479, -0.011717894, 0.0051466245, 0.010054565, 0.014828246, -0.0072686747, 0.04540964, 0.015424956, 0.0025248295, 0.0018740427, -0.0064817634, -0.03696619, -0.010792994, 0.018960463, -0.023376118, -0.00015523785, -0.019348325, 0.05409177, 0.031178102, 0.0070971204, -0.007869114, 0.030849911, 0.018139986, -0.018945545, 0.018706862, -0.00087874883, 0.033147246, -0.0074775233, 0.01227731, -0.0026590894, -0.023614801, -0.020556662, -0.027150309, -0.040098917, 0.031834483, -0.007138144, -0.016812306, 0.00055848336, -0.0384878, -0.04573783, -0.07082949, 0.010144072, -0.07124718, -0.013918263, 0.009614491, -0.019288654, -0.072321266, 0.023480542, -0.024345772, 0.03496721, 0.012859102, 0.025270673, 0.029373053, 0.09207237, -0.012448864, 0.007891491, 0.06617515, 0.008711968, -0.043768685, 0.005732146, -0.0056165336, -0.004699092, -0.045976512, -0.060894266, -0.029432725, -0.0044081956, 0.0010489045, -0.02820947, -0.04439523, 0.022809243, 0.015768064, -0.021481562, -0.0027560547, 0.099053875, 0.041918885, 0.0057507935, 0.012180345, 0.01479841, -0.010569228, -0.047080427, 0.008100339, 0.010957089, -0.029939929, -0.06366897, -0.015320531, -0.043022797, 0.010792994, 0.010457344, -0.026613269, -0.0028996381, 0.03511639, 0.019467667, 0.041918885, 0.03469869, -0.021690411, -0.0051951073, 0.05262983, 0.029462561, 0.0036380668, 0.066115476, 0.06933771, 0.0035149953, -0.0018274246, -0.0041583236, 0.012180345, -0.0064668455, 0.011538881, 0.025822628, -0.025449686, -0.022197615, -0.025106577, -0.01725984, -0.008913357, -0.00024940618, -0.011934202, -0.037324216, -0.0014050658, -0.06981508, -0.035205897, -0.04466375, 0.014686527, 0.00358399, 0.007578218, 0.0029872798, -0.03362461, 0.26684874, 0.07488712, 0.0375629, -0.008943193, 0.054837655, 0.044962104, -0.0040389816, -0.04156086, -0.0009482096, -0.021302551, 0.0065600816, -0.03377379, 0.037324216, -0.00909237, -0.012023708, 0.013888427, -0.052599993, -0.0010964548, -0.013202211, -0.058507424, -0.03777175, 0.03410198, 0.030312872, 0.04976562, 0.03929336, -0.012844184, -0.014373254, -0.03502688, -0.04141168, -0.015484626, 0.013664661, -0.0089954045, 0.030476967, -0.015305614, -0.005236131, 0.033326257, -0.028433235, -0.0631916, 0.0024110817, 0.0083614, -0.001091793, -0.033952802, 0.026046395, -0.007552112, -0.016096255, 0.017528359, -0.0036623082, 0.009189336, 0.03577277, -0.07399205, 0.027732102, -0.05436029, 0.0362203, 0.012135591, -0.042426087, 0.027075721, -0.051525917, -0.012918773, -0.018274246, 0.04248576, -0.017796878, 0.026449176, -0.011024219, -0.019124558, -0.017289674, 0.036638, -0.028075209, 0.058925122, -0.03771208, 0.021302551, -0.010479721, -0.007313428, 0.0082644345, -0.027195062, 0.056926142, 0.027299486, 0.0012307146, 0.023226941, -0.021287633, -0.024136923, 0.019661598, -0.023047928, -0.023152351, -0.036399316, -0.007906409, 0.055106178, -0.029208958, 0.007943703, -0.0010125424, 0.058775943, -0.0015570404, 0.057910714, -0.0012372411, -0.032640044, 0.0054188734 ]
By default, the tokenizer creates an attention_mask for you based on your specific tokenizer's defaults. attention_mask = torch.tensor([[1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0]]) output = model(input_ids, attention_mask=attention_mask) print(output.logits) tensor([[ 0.0082, -0.2307], [-0.1008, -0.4061]], grad_fn=) 🤗 Transformers doesn't automatically create an attention_mask to mask a padding token if it is provided because:
[ 0.027921986, 0.017596014, -0.019019324, -0.029135985, -0.022884587, -0.007709594, 0.042364392, 0.0069525884, -0.027545229, 0.04769483, 0.038736347, -0.0005987145, 0.020484496, -0.016968084, -0.013821453, 0.03775957, 0.0067153703, -0.03516412, -0.029861594, 0.004911814, 0.007946813, -0.003418734, -0.056513764, -0.013577257, -0.041638784, 0.0055397446, 0.03234541, -0.008442179, 0.05492301, 0.07306323, -0.030280216, 0.0034640846, -0.016130842, -0.0008001756, -0.03672697, -0.041806232, -0.00687933, -0.08271941, 0.008372409, -0.024307895, 0.041275978, 0.0038722395, 0.016870406, -0.06508153, -0.038903795, -0.017289026, -0.015907578, -0.020665897, -0.037675843, -0.03178725, -0.016409922, -0.016088981, -0.02108452, 0.04663432, -0.049620483, -0.011644626, 0.0047373883, -0.025005598, -0.0040466646, -0.02247992, 0.0032111679, 0.0037117682, -0.024349758, -0.044736575, 0.0067746746, -0.0061432556, -0.024963735, 0.013807499, -0.01844721, 0.005061819, -0.035247844, 0.019103048, -0.018279761, -0.048950687, -0.026289366, -0.028549917, -0.015865717, -0.010584122, 0.01779137, 0.025828883, -0.010946926, 0.024335803, -0.0031797714, 0.0014677881, -0.0027594066, -0.05843942, 0.035638556, -0.008372409, -0.042057406, -0.03828982, -0.017484382, -0.0029233664, -0.015237786, 0.06251399, 0.026819618, 0.091370896, -0.0105003975, 0.052606642, 0.0020494962, -0.038234003, 0.031619802, 0.07412373, -0.057546362, -0.002346019, -0.011574856, 0.022005484, 0.0047373883, 0.01643783, -0.0015907579, -0.00031723583, -0.00287976, -0.0010107941, -0.0045280783, 0.010716684, -0.0548951, 0.010374811, 0.003509435, 0.023847414, -0.0493414, -0.027224286, 0.0018105336, -0.028773181, 0.009725949, -0.008351479, 0.009195697, -0.018251853, 0.034159433, 0.025856791, -0.0029634843, 0.006844445, 0.018879784, -0.013793545, 0.07445863, 0.04881115, -0.012007431, 0.0013962737, 0.013549349, 0.004228067, 0.025661435, -0.02609401, -0.02355438, 0.014567993, 0.02019146, 0.07992861, 0.019047232, -0.017289026, 0.0635745, -0.052048482, -0.02814525, -0.004929256, 0.005529279, 0.0038443315, 0.00017366209, 0.012000454, -0.058383603, -0.032987293, 0.0011991733, -0.005675796, -0.010102708, -0.002485559, 0.03429897, 0.0074095824, -0.033210557, 0.08043095, -0.003743165, 0.064858265, -0.029108077, 0.01158881, 0.024028815, -0.058216155, -0.012146971, 0.03220587, -0.0062897727, 0.019535623, 0.02800571, -0.019186772, 0.07166783, 0.0064537325, 0.00748633, 0.015014522, 0.013947039, -0.015670361, -0.02595447, 0.052020572, 0.0103050405, -0.02501955, 0.015558728, 0.011853937, -0.000726917, -0.02411254, 0.03192679, 0.02404277, -0.030140676, 0.00494321, -0.0005873769, 0.016619233, -0.018907692, 0.014595901, 0.053136893, -0.023889275, 0.011414385, 0.057490546, -0.032094236, 0.045852896, -0.022884587, -0.0002725394, 0.007702617, 0.04535055, -0.012028362, 0.03304311, 0.023847414, 0.027642906, -0.01977284, 0.024419528, -0.00033140788, -0.02744755, -0.00911895, 0.025591666, 0.016047118, 0.006125813, -0.014330775, 0.0073328353, 0.026819618, 0.03974104, 0.042336486, -0.002989648, -0.011477178, 0.020693805, 0.025186999, -0.0039908485, -0.0071723643, 0.002318111, 0.023679966, 0.035833914, -0.018879784, -0.005745566, 0.058662683, 0.027419642, -0.008972432, 0.005347877, 0.022145024, 0.005239733, 0.041192256, 0.04554591, -0.01653551, 0.014637763, 0.004705992, -0.0102910865, -0.04364816, -0.020275185, -0.023024127, 0.07897973, 0.0055327676, -0.016968084, -0.057546362, -0.034522235, 0.0091119725, 0.031731434, 0.0127888555, -0.03304311, -0.012098132, 0.023331115, -0.011888822, -0.026987066, 0.027084745, 0.02227061, 0.020163553, 0.03078256, -0.036782786, -0.061900016, -0.025075367, -0.02693125, -0.07049569, 0.026945205, -0.023945091, -0.049257677, 0.019451898, -0.07345394, 0.033378005, 0.004712969, -0.0021768266, 0.028466193, -0.03150817, 0.057490546, -0.0041094576, 0.031229088, -0.031870972, 0.032150052, -0.023149712, 0.0323175, -0.0032059352, -0.041889958, -0.025759114, -0.021893851, 0.0063734967, 0.039768945, 0.03689442, -0.003805958, -0.03946196, 0.018196037, 0.0046257563, 0.04976002, 0.006035112, 0.03513621, -0.0072770193, -0.017386705, 0.011993477, -0.02453116, 0.035806004, 0.09226395, -0.04038292, 0.0015994791, 0.009530593, 0.047918092, -0.062346544, 0.03689442, 0.050094917, -0.016493646, -0.013158637, -0.0354432, -0.027838262, 0.013954016, -0.0024105562, -0.031870972, -0.015349418, 0.04861579, -0.020917071, -0.050848436, -0.041080624, -0.026917297, -0.03748049, 0.0021960132, -0.027461505, 0.046522688, 0.02716847, 0.007911927, -0.029108077, -0.010800408, -0.007897973, 0.03307102, -0.009474777, -0.019089093, 0.034801316, 0.036559522, 0.031591892, 0.00089654553, 0.03460596, -0.059053395, -0.012230695, 0.018740244, 0.025912607, 0.025633527, -0.0036699062, -0.027433597, 0.034968764, 0.026707986, -0.03985267, -0.004248998, 0.0029512744, 0.019033277, 0.0402992, 0.042057406, 0.0073049273, 0.014072625, -0.037703753, -0.0041234116, -0.008393341, -0.014267981, 0.048727423, 0.013654005, 0.007604939, 0.027475458, -0.030559296, 0.028480146, -0.03644789, -0.04328536, 0.0740121, 0.027266147, 0.014512177, -0.031536076, -0.010570168, 0.0070432895, 0.005881618, 0.033852443, 0.004810647, 0.019675164, -0.035247844, 0.005309503, -0.028480146, 0.025200954, -0.004974607, -0.0074653984, -0.0128725795, -0.0009959679, -0.050262365, -0.00073651044, -0.016242474, 0.056095146, 0.036085084, 0.0060037156, 0.034522235, -0.030866284, 0.0024053236, 0.018084405, 0.0036768832, -0.024559068, -0.034801316, 0.0534997, 0.0006680485, -0.017889049, -0.040717818, 0.026735894, -0.06290471, 0.020163553, -0.0116236955, 0.004381561, -0.041359704, -0.004978095, 0.013005143, 0.012391167, -0.03460596, -0.043424897, -0.03343382, -0.017386705, 0.046857588, -0.06675601, -0.0010919018, -0.0039768945, -0.03974104, 0.043871425, 0.024614884, -0.024559068, 0.001315166, -0.013926108, -0.03918288, 0.010570168, 0.0103329485, 0.004859486, -0.0025657946, -0.020749621, 0.024028815, 0.040243383, -0.03136863, 0.0023791597, 0.013863315, 0.0013788312, -0.003460596, 0.046606414, -0.020317048, -0.020917071, 0.054783467, -0.018028589, 0.001902979, -0.010946926, -0.028159205, -0.03533157, 0.014135418, -0.0041827164, 0.008714283, -0.009342214, -0.036336258, 0.012202787, 0.02126592, -0.028201066, -0.06396521, -0.022452012, 0.039489865, -0.004486216, 0.016033165, 0.0170239, -0.0022605506, 0.023931138, 0.029694146, -0.022563644, 0.014072625, 0.0072421343, 0.01639597, 0.032289594, -0.012865603, 0.070439875, -0.055816066, 0.02164268, 0.010088754, -0.03502458, -0.04948094, -0.034271065, -0.05966737, -0.005375785, -0.017540198, 0.065416425, 0.04325745, 0.019898428, -0.0031204668, -0.026442861, -0.032373317, -0.04738784, -0.02935925, 0.017079717, 0.06575132, 0.04068991, 0.059053395, -0.031145364, -0.008197985, 0.030308124, -0.0014102277, 0.019661209, 0.0060316236, -0.016968084, -0.033573363, -0.03206633, -0.019996105, -0.0047094803, -0.0067642094, 0.025996333, 0.034633867, 0.019786796, -0.0041269003, -0.046327334, -0.02651263, 0.06882121, -0.02331716, -0.038485177, -0.044904023, 0.017693693, -0.0016718656, 0.021154288, 0.024377666, -0.037954923, -0.039936393, -0.000038673337, 0.03164771, -0.023610195, 0.02282877, -0.049564667, -0.009851536, 0.0062374454, 0.067537434, 0.013109799, -0.050653078, 0.015223832, -0.0116376495, -0.017889049, -0.065472245, -0.031005824, 0.008295663, -0.0101934085, -0.009153835, 0.022633415, 0.050932158, -0.04228067, -0.024377666, -0.02814525, 0.03801074, 0.03999221, -0.058495235, -0.014958706, -0.0005633934, -0.02418231, 0.008114261, -0.00049798394, -0.028968537, 0.03748049, 0.0020285652, 0.048448343, -0.043341175, -0.029135985, -0.03731304, -0.025926562, 0.035917636, -0.023666011, -0.0013020842, -0.015865717, 0.016995993, -0.014484269, 0.039517775, -0.012181856, -0.020554265, -0.03588973, -0.012398143, 0.019800749, -0.023596242, 0.009809674, -0.02432185, -0.026568446, 0.05771381, -0.04384352, -0.009474777, 0.027921986, -0.032736123, -0.03167562, 0.0011302753, 0.047192484, 0.007995651, 0.010535282, -0.01865652, 0.04593662, -0.025759114, -0.000061920946, -0.055425353, -0.024503252, 0.008700329, 0.015405234, 0.03167562, -0.04336908, 0.029582513, -0.01723321, -0.033405915, -0.060392983, 0.07350976, -0.0035635068, 0.012558615, 0.0170239, 0.012181856, -0.02772663, 0.06100696, -0.0039175902, -0.03901543, -0.05330434, 0.06960263, -0.01671691, -0.01539128, -0.007911927, -0.017400658, -0.025856791, -0.038792163, 0.02679171, 0.02182408, -0.05816034, -0.019605393, -0.015000568, -0.0006815665, -0.0066211806, 0.016633186, 0.05235547, 0.010549236, 0.0151122, 0.017247165, 0.0030890703, -0.00377805, 0.026149826, 0.039099153, -0.018098358, 0.025340494, 0.0032931478, 0.020819392, -0.0639094, -0.046271518, 0.07283997, 0.0073467894, 0.011958592, 0.0371735, 0.015209878, 0.0667002, -0.032373317, -0.0058781295, 0.021307783, -0.03192679, -0.04200159, -0.0039524753, 0.042029496, 0.0141772805, 0.008065421, -0.030615112, -0.004409469, -0.0073537664, 0.05238338, -0.05799289, -0.069491, 0.047080852, 0.0057071927, -0.04038292, -0.012272557, -0.027056837, 0.010974834, 0.03689442, -0.017121578, -0.0340478, -0.018782105, 0.033210557, -0.0416946, -0.025842838, 0.0023704385, -0.010884132, -0.05263455, -0.02469861, -0.020540312, -0.04769483, 0.017386705, -0.0015384302, -0.002721033, 0.011051581, -0.004971118, 0.021042656, -0.03262449, 0.034717593, -0.017568106, -0.018140221, -0.0090003405, 0.009893398, 0.0024733495, 0.0064153587, 0.024279987, -0.041638784, 0.023791598, -0.0022622948, 0.01553082, 0.007521215, -0.018712336, 0.0065862956, -0.030029044, 0.003764096, 0.0102213165, 0.011505086, -0.043592345, 0.00066281576, -0.03773166, -0.022703184, -0.016605278, 0.0009087553, 0.027112653, 0.044569127, -0.029415065, 0.006921192, 0.005019957, 0.024907919, 0.0044304, 0.044345863, 0.024168355, -0.02721033, 0.035108306, -0.0032286104, 0.0041408543, 0.008079375, -0.04085736, 0.027252194, 0.015209878, -0.012391167, -0.0538625, 0.022884587, 0.028103389, 0.045741264, 0.030252308, -0.030587204, 0.001169521, 0.0046466873, -0.017247165, 0.014944752, -0.070384055, -0.0073816744, 0.020247277, -0.04593662, -0.012746993, -0.020735668, 0.006471175, 0.0142889125, -0.012398143, -0.0042141126, 0.028856905, 0.06993753, 0.011442293, 0.022145024, -0.040885266, -0.03346173, 0.0023442747, 0.0044617965, -0.04216904, -0.056960292, 0.009384076, 0.027252194, -0.018503025, -0.04002012, -0.013905177, 0.0010500397, 0.013884246, 0.091036, 0.00606302, -0.017316934, -0.06826305, 0.078644834, 0.005354854, 0.016465738, 0.023372976, 0.034159433, 0.023400886, -0.0071793413, 0.008888708, 0.014735441, 0.039517775, -0.052243836, 0.027698722, 0.031340722, 0.017526245, -0.01123996, 0.01695413, -0.0014991846, 0.012153948, 0.013193523, 0.011784167, -0.010521328, 0.040913176, 0.016912268, -0.061620936, -0.0039559635, 0.031340722, 0.018810013, -0.020651944, 0.00986549, 0.043201633, 0.033768717, -0.0063630315, 0.033880353, 0.015851762, -0.004367607, 0.01403774, -0.00029935726, -0.043229543, -0.0027768493, 0.018698381, -0.026400998, -0.0127888555, 0.002851852, 0.034075707, 0.021935713, -0.0065618763, -0.033266373, 0.026066102, 0.025507942, -0.011281822, 0.034382697, 0.016186658, 0.02164268, 0.006935146, -0.0035826936, 0.02241015, -0.040662, -0.014456361, -0.034103617, -0.028368514, 0.01643783, -0.009321283, -0.027475458, 0.009391053, -0.03831773, -0.058104523, -0.07507261, 0.01583781, -0.07445863, -0.0030349984, 0.0073886514, -0.004939722, -0.063183784, 0.017526245, -0.027670814, 0.029722054, 0.004740877, 0.0051734513, 0.019465853, 0.057490546, 0.004901348, 0.016382014, 0.050653078, 0.032122146, -0.055704433, -0.011128328, 0.009621294, -0.023191575, -0.047611102, -0.05910921, -0.033517547, 0.0006397044, 0.0032181449, -0.012516753, -0.038764257, 0.006935146, 0.032708213, -0.024056723, -0.015335464, 0.08673816, 0.033238467, -0.0056862617, -0.00058999326, 0.014526131, 0.0101934085, -0.048978597, 0.0031588404, -0.00009315396, -0.03974104, -0.048169263, -0.006478152, -0.039685223, 0.01657737, -0.004761808, -0.036643248, -0.002914645, 0.041834142, 0.013291201, 0.03304311, 0.041750416, -0.012760947, 0.033015203, 0.03616881, 0.0462157, 0.0036733947, 0.051239148, 0.06904447, 0.007493307, 0.0026966135, 0.021168243, 0.0073816744, 0.0011616718, 0.0040013143, 0.023456702, -0.0069804965, -0.03192679, -0.023414839, -0.005086239, -0.021796172, 0.007681686, -0.04242021, -0.04364816, 0.012133017, -0.056234684, -0.021447323, -0.046578504, -0.0020756598, 0.0007618021, -0.022591552, 0.005815336, -0.041080624, 0.22906913, 0.055983514, 0.03175934, -0.010932972, 0.046801772, 0.03315474, 0.01629829, -0.0246707, -0.0037536304, -0.016940176, 0.0041408543, -0.023149712, 0.025145138, -0.009928282, -0.019800749, 0.0062618647, -0.036029268, 0.0068897954, -0.025326539, -0.040494554, -0.043703977, 0.01858675, 0.011016696, 0.0740121, -0.00041142546, -0.035108306, -0.028452238, -0.023135759, -0.03449433, -0.022298519, 0.032457042, -0.014372637, 0.043424897, -0.013284223, -0.025800975, 0.0361409, -0.02418231, -0.04495984, 0.024335803, -0.010863202, 0.013877269, -0.038903795, 0.03421525, -0.017777417, -0.018851876, 0.03315474, -0.001238419, -0.01942399, 0.017498337, -0.07049569, 0.020317048, -0.04055037, 0.040773634, 0.014595901, -0.03418734, 0.013856338, -0.044848207, -0.022814816, -0.0007517726, 0.018000681, -0.025661435, 0.012216741, -0.024866058, -0.0036873487, -0.02164268, 0.010765524, -0.021893851, 0.051490318, -0.007744479, 0.029108077, -0.0007805528, 0.0065200143, 0.009495708, -0.023931138, 0.052829906, 0.016465738, 0.022912495, 0.024642792, -0.007611916, -0.015851762, 0.008295663, -0.030112768, -0.009900374, -0.03859681, 0.022605507, 0.04909023, -0.040075935, 0.016005257, 0.01212604, 0.05528581, 0.011037626, 0.024293942, 0.0043292334, -0.034996673, 0.01014457 ]
🤗 Transformers doesn't automatically create an attention_mask to mask a padding token if it is provided because: Some models don't have a padding token. For some use-cases, users want a model to attend to a padding token.
[ 0.019577662, -0.013197698, -0.006749557, 0.02379748, -0.04305937, -0.010377309, 0.008697993, -0.01962072, -0.010434722, 0.06435941, 0.025505502, -0.012573337, 0.04305937, 0.0028401245, -0.017252455, 0.03183523, 0.015745377, 0.0038574021, -0.03556704, 0.0016039617, 0.014331594, 0.008461167, -0.06481871, -0.022448286, -0.0042557013, 0.0025853566, 0.030514741, -0.025247145, 0.024472076, 0.06809122, -0.024414664, -0.023869246, -0.017395986, -0.035997637, -0.031863935, -0.023625242, -0.013118756, -0.029108137, -0.05043688, -0.074406594, 0.020338377, -0.013463231, -0.0027414467, -0.031863935, -0.043289024, 0.008044926, -0.048542265, 0.002655328, -0.009465885, -0.030887924, 0.004417174, 0.0061861966, 0.017740462, 0.0028024474, -0.051556423, -0.012975224, -0.028921545, 0.009315178, -0.06424458, -0.030974042, 0.032466765, 0.018903065, -0.0015250194, -0.053996455, 0.025692092, 0.022247342, -0.015214312, 0.001251413, -0.019577662, 0.028677542, -0.053077854, 0.020280965, -0.018515531, -0.056350365, -0.014812424, 0.006954089, -0.026151393, -0.003868167, -0.00989648, 0.009035292, -0.002325206, 0.017625637, 0.04392056, -0.018013172, 0.0066957325, -0.005106124, 0.04070546, -0.009609417, -0.014955956, 0.016750095, 0.0030643921, 0.03711718, -0.034935504, 0.02830436, 0.047250483, 0.012472865, -0.02292194, 0.032610297, 0.04865709, -0.026467161, 0.029136842, 0.079860784, -0.00086746697, 0.034332674, -0.042284302, -0.003713871, 0.0077793933, -0.009473062, -0.04621706, -0.023295121, -0.0127312215, 0.041595355, -0.0074995076, -0.03809319, -0.01415218, 0.015702318, -0.005734073, -0.016620917, -0.022965, -0.059881233, -0.009150117, 0.0071191494, -0.0072842105, -0.04704954, 0.04018875, -0.04346126, -0.022333462, 0.038064487, -0.011862857, 0.023366887, 0.012551807, -0.016506093, 0.008999409, 0.055948477, -0.03895438, -0.038581196, 0.021529686, 0.047020834, -0.012953695, 0.00042633264, 0.034016903, -0.008461167, 0.008310459, 0.09518992, -0.0049877106, -0.038523786, 0.05913487, -0.04966181, -0.057326376, 0.015831497, -0.013341229, 0.011224143, -0.026983874, -0.021300036, 0.02402713, 0.011410734, 0.00056470576, 0.0468486, 0.025074909, -0.012846046, 0.02035273, -0.0030679803, -0.033758547, 0.051786073, 0.003091304, 0.034849387, -0.008123868, -0.022677936, 0.01663527, -0.011913093, 0.04377703, 0.008970703, -0.012221686, 0.009609417, 0.052216668, 0.0011060876, 0.032811243, -0.015085134, -0.0028185947, 0.019505896, -0.037088472, -0.046791185, 0.046934716, 0.01901789, 0.04819779, -0.03083051, -0.010176365, 0.006573731, -0.019491542, -0.012932165, 0.03350019, 0.045642935, -0.025462443, 0.01924754, -0.010441897, 0.0054470105, -0.08359259, -0.008468343, -0.009171646, -0.0073129167, 0.008568815, 0.025204087, -0.06573731, 0.0108437855, -0.03436138, 0.012307804, 0.017625637, 0.03657176, -0.012185803, 0.03464844, 0.053479742, -0.029481318, -0.034189142, -0.0010289396, 0.021874161, -0.027529292, 0.009953892, 0.0067208502, -0.007815276, 0.00018042326, 0.024443371, 0.03978686, -0.026481515, -0.01580279, 0.026137039, -0.012637926, -0.019635074, 0.023697007, 0.020596733, 0.025089262, -0.006372787, 0.04598741, -0.000450105, 0.069583945, 0.022405228, 0.011145201, 0.04483916, 0.045729052, -0.006132372, 0.009537651, 0.003076951, 0.054283515, -0.0007378403, -0.00914294, -0.017482106, -0.01749646, -0.022936292, 0.008353518, 0.019749898, 0.03786354, -0.031462047, 0.044408567, -0.032811243, -0.026452808, -0.044408567, -0.012939341, 0.025893036, 0.008669287, -0.039356265, -0.013556526, 0.035251275, 0.023237709, 0.014073239, -0.059594173, 0.017453399, 0.06539284, 0.004280819, 0.009006586, -0.0068105576, -0.025031848, -0.023122882, -0.032237116, -0.0560633, -0.0070150895, 0.011317438, -0.008152574, 0.0013895618, 0.003573928, 0.05302044, -0.020381436, 0.013197698, 0.01855859, -0.02628057, 0.03550963, 0.038208015, -0.0058381334, -0.026811637, 0.024730433, -0.0002758491, -0.0134417005, 0.01636256, -0.057268966, -0.0076286853, -0.03614117, 0.0054972465, -0.017309869, 0.031404637, -0.01237957, 0.003317366, 0.021658864, -0.031031454, 0.04415021, 0.004266466, 0.021701925, -0.01855859, 0.060340535, -0.0031307752, -0.043375142, 0.043863147, 0.06458906, -0.04285843, 0.028060358, 0.036055047, 0.032007467, -0.0070402073, 0.025476795, 0.031174986, -0.026194451, -0.017927052, -0.033155717, -0.033586312, 0.013929707, -0.017395986, 0.00932953, 0.0036062226, 0.040418398, -0.038896967, -0.061259136, 0.0010899404, -0.044408567, 0.009501768, -0.039356265, -0.044724334, 0.04598741, 0.050006285, -0.020252258, -0.025261499, 0.0016577858, -0.02306547, 0.041738886, -0.00012323503, 0.021056034, 0.04943216, 0.008762582, 0.008676464, 0.00085849623, 0.019922137, -0.013685704, 0.017769167, 0.0038215194, -0.0038825201, 0.008726699, 0.03192135, 0.013398642, 0.018673414, 0.03212229, 0.0032886595, 0.02701258, -0.015788436, -0.010298367, 0.03809319, 0.026424102, -0.017166337, -0.0063117864, 0.01392253, -0.008741053, -0.02237652, 0.053996455, 0.05195831, 0.023582183, 0.05325009, -0.031002749, -0.02686905, 0.00036129504, 0.0020632616, -0.033471487, 0.0063763754, 0.028505305, 0.033959493, 0.0028365362, -0.019290598, -0.00528195, 0.012236038, 0.02012308, 0.009243412, 0.015501374, -0.021945927, -0.015271724, -0.023122882, 0.014080415, 0.020338377, -0.010456251, 0.036255993, -0.004302349, -0.032237116, -0.039758153, 0.055202115, 0.076473445, 0.0014694011, -0.03235194, 0.04016004, 0.008360695, 0.010205071, 0.006728027, 0.022965, -0.0024041482, -0.045441993, 0.03350019, -0.016434327, -0.017769167, -0.04245654, -0.059594173, 0.019348012, 0.005296303, 0.017439047, 0.032438062, -0.014295712, -0.018127996, -0.03441879, 0.010628489, -0.031634286, -0.026381042, -0.042600073, 0.03083051, 0.025663387, -0.05181478, -0.014999015, -0.032811243, 0.01695104, 0.024271132, -0.03275383, -0.043863147, -0.03350019, 0.00093115895, -0.04076287, 0.0050522997, 0.0445521, -0.06407235, 0.031347223, -0.05043688, 0.013097226, 0.032380648, -0.005551071, -0.048398733, -0.008676464, -0.006778263, 0.00720168, 0.0067854393, -0.049058978, 0.038925674, 0.008389401, -0.032466765, -0.014798071, -0.06527801, 0.03220841, -0.027486233, 0.021213917, -0.043518674, 0.0069433236, -0.019721193, 0.024515137, -0.031634286, 0.029567435, -0.026309276, -0.021974633, -0.00962377, 0.016018087, -0.005411128, 0.025505502, 0.025519855, -0.03955721, 0.05721155, 0.019391071, -0.017984465, 0.034390084, -0.026079627, 0.026079627, -0.0038753436, -0.004657589, 0.042025946, -0.05646519, 0.061029483, 0.031662993, -0.045556817, -0.0028831838, -0.07888477, -0.019218834, 0.009982598, -0.033729844, 0.052388903, -0.019649427, -0.015042074, 0.012221686, 0.012070977, -0.017898345, -0.027184818, -0.008855877, 0.014015825, 0.056264248, -0.000983189, 0.003943521, 0.0006795307, -0.059881233, 0.003229453, -0.037576478, 0.011238496, -0.021414861, -0.013621115, 0.02651022, 0.013283816, -0.05778568, -0.013987119, -0.009430002, 0.025806917, -0.0008661213, -0.04644671, 0.026481515, -0.016793156, 0.014755012, 0.016003734, 0.002540503, -0.04736531, -0.01980731, 0.018845651, -0.027629765, 0.011525558, 0.000517161, -0.021902869, -0.06441682, -0.011676267, 0.03068698, -0.06280927, 0.035681866, -0.020912502, -0.06912465, -0.016864922, 0.029280374, 0.012652279, -0.017381633, 0.009889303, -0.05600589, 0.028634483, -0.06435941, -0.026940813, -0.025735151, -0.008360695, -0.054627992, 0.025419382, -0.0052998913, 0.0062866686, 0.021716276, 0.002669681, 0.03091663, 0.0075640962, -0.019276246, -0.017022805, -0.0010890433, 0.025964802, -0.031950053, 0.04116476, -0.016807508, 0.02803165, 0.01171215, 0.022792762, -0.016463034, -0.029423906, -0.00617902, -0.0060713715, 0.05876169, -0.031404637, -0.034791972, -0.011661913, -0.019003537, -0.006591672, 0.016506093, -0.052302785, -0.008762582, -0.024113249, -0.049489573, 0.032610297, -0.011748033, -0.022046398, -0.0011931035, -0.03272512, 0.0071083847, -0.008052102, -0.011023199, 0.06120172, -0.014453596, -0.008095162, -0.045729052, 0.024228074, 0.01847247, -0.003523692, -0.006842852, 0.04001651, -0.055001173, 0.01778352, 0.01004001, -0.017266808, 0.0022803526, -0.010420368, 0.028634483, 0.04038969, 0.044035386, -0.021386156, -0.043748323, -0.0065665543, 0.007477978, 0.016434327, 0.011547089, 0.034677148, 0.01557314, 0.007025854, -0.0017125071, -0.019147068, -0.017840933, 0.02935214, 0.051556423, -0.011977682, -0.041337, 0.05264726, 0.047882024, 0.0058955457, -0.07205269, -0.025031848, -0.015630553, -0.0073344465, 0.008145398, 0.010362956, -0.03550963, -0.0075640962, 0.018860005, 0.013936884, 0.008231517, -0.0139799435, 0.03441879, -0.0056910138, -0.07836806, 0.013032637, 0.051240653, -0.028132124, 0.015774084, -0.07170821, -0.014561244, -0.02467302, -0.037031062, 0.085314974, -0.058618158, 0.009422826, -0.00045234768, 0.012293451, 0.044867866, -0.010836609, 0.06005347, -0.011195437, -0.037145887, -0.05815886, -0.02402713, 0.0010558517, -0.0005696396, 0.022850174, -0.007470801, 0.05109712, 0.01855859, 0.030399917, -0.035997637, -0.09553439, 0.023280768, -0.036543053, 0.0022121752, 0.013018284, 0.005870428, -0.005224537, 0.007126326, -0.01979296, -0.009071174, -0.01300393, -0.01029119, 0.0030608037, 0.020725911, -0.05838851, -0.024529489, -0.06395752, -0.04016004, -0.07096185, -0.029222962, 0.027730236, 0.026294924, -0.0390405, -0.017123276, -0.01626209, 0.04521234, 0.00040345735, 0.018443765, -0.013556526, 0.009386944, -0.003943521, -0.047853317, -0.04193983, 0.04423633, -0.0070904433, -0.013936884, 0.03384467, -0.021931574, 0.0029549494, -0.015931968, 0.032380648, 0.017252455, -0.018127996, -0.030371211, 0.031404637, 0.024802199, -0.06338339, -0.017726108, -0.0037318124, -0.023137236, 0.013398642, 0.009135763, 0.010578252, 0.048111673, 0.012788634, 0.022950646, -0.0010603371, 0.035136446, -0.0018605237, 0.033414073, -0.014496655, -0.020654146, -0.022735348, 0.013183344, 0.04076287, 0.01004001, -0.051326774, 0.027816355, 0.039987803, 0.01943413, -0.053364918, 0.01440336, -0.0047688256, 0.01718069, 0.028763661, -0.00016685507, -0.00020094374, -0.02544809, 0.0017600518, -0.004686295, -0.07291387, -0.07256939, 0.0010038216, -0.06309634, -0.004252113, -0.03955721, -0.03312701, 0.0102696605, 0.048628386, -0.012329333, 0.035825398, 0.03881085, -0.01033425, -0.0061574904, -0.00097063003, -0.042341717, 0.023366887, -0.0056228363, -0.006523495, -0.0031505108, 0.00085715065, 0.020898148, 0.017639989, -0.017395986, -0.0037712834, -0.03252418, -0.03895438, 0.024845257, 0.01916142, 0.0017143013, -0.045097515, 0.01258769, -0.031634286, -0.0036959294, -0.016778802, 0.01415218, 0.033414073, -0.043289024, 0.0012424423, 0.016606566, 0.028907193, -0.0034662795, 0.03329925, 0.030055443, 0.0049590045, -0.024802199, 0.014970308, -0.018458119, 0.038782142, 0.041796297, 0.03459103, 0.016247736, 0.005863251, -0.000245573, -0.03657176, -0.043863147, 0.05204443, 0.053881627, -0.012802986, 0.018041877, 0.03665788, -0.01980731, 0.03863861, -0.025921742, 0.026180098, -0.009767301, -0.022319108, 0.00021877301, 0.00091859995, 0.021343095, 0.014999015, -0.009451533, -0.0088199945, 0.0018354057, 0.064302, -0.009135763, -0.0126307495, 0.0037354005, 0.036055047, 0.03614117, -0.0034196319, 0.030859217, 0.014984662, 0.02494573, -0.037432946, 0.03961462, -0.035767987, 0.0020094374, 0.001353679, -0.049058978, 0.022491345, 0.015659258, -0.009071174, -0.0077148043, -0.018343292, -0.034562323, 0.004862121, -0.024314193, 0.013412994, -0.040906403, 0.0053034793, 0.043174196, 0.0031971585, -0.015185606, 0.022304755, 0.028002946, -0.014826777, 0.04245654, 0.06682815, 0.01260922, 0.029739674, 0.0002964817, -0.0025997097, 0.013219227, -0.016606566, -0.045815174, -0.011568618, 0.0056407778, 0.037404243, 0.013621115, -0.016204678, -0.080836795, 0.02632363, 0.003331719, 0.00019814039, -0.06424458, 0.015085134, 0.036399525, -0.029136842, 0.03266771, 0.06602437, 0.067172624, 0.0033909257, -0.03961462, -0.006573731, -0.035107743, 0.016922334, -0.057900503, 0.023481712, -0.0038502256, -0.04630318, 0.008375048, -0.027313996, 0.011389204, 0.04897286, -0.024357252, -0.021974633, 0.00628308, 0.023165943, 0.0021547629, 0.03772001, 0.019003537, -0.025577268, 0.045872584, 0.069239475, -0.03780613, 0.00071406795, 0.020237906, -0.0003014156, 0.025778212, 0.01649174, 0.0070796786, 0.0004135494, 0.017295515, 0.0063691987, -0.018084936, -0.023496065, -0.030945336, -0.011504029, 0.013534996, -0.021056034, -0.025261499, -0.016434327, 0.0055259527, -0.06068501, 0.0005041535, -0.027357055, 0.021744983, -0.008052102, -0.0047544725, 0.009286472, -0.057125434, 0.24388829, 0.06573731, 0.011274379, -0.0043095257, 0.075038135, 0.049920168, 0.031060161, -0.029969323, 0.036399525, -0.062924094, 0.015443962, -0.0021709101, -0.019233186, 0.023022411, -0.0016021675, 0.046389297, -0.07934407, 0.023510417, 0.005116889, -0.006473259, -0.03579669, 0.038753435, -0.009250589, 0.059823822, 0.009839066, 0.019678133, 0.019836018, -0.044322446, 0.01118826, 0.0036546641, -0.01095861, -0.023553478, -0.0047401194, -0.020209199, -0.03384467, -0.002895743, -0.018630356, -0.06809122, -0.013326876, 0.015013368, -0.007879865, -0.021859808, 0.034677148, -0.016089853, 0.004826238, 0.002081203, 0.015199958, -0.008877408, 0.06998584, -0.028246948, 0.036744, -0.023897951, 0.020381436, -0.010535194, -0.018142348, 0.0043059373, -0.02429984, -0.050982296, 0.005565424, -0.031203693, 0.017482106, 0.011704973, -0.060799833, 0.004711413, -0.00559413, 0.030486036, 0.018544236, 0.018917417, -0.014726305, -0.018372, 0.07945889, -0.03220841, -0.038552493, 0.020883795, 0.0113820275, 0.05569012, -0.01260922, 0.02820389, 0.016663978, -0.048886742, 0.0023700597, 0.0038968732, -0.013326876, -0.04759496, 0.024830906, 0.036916237, -0.022792762, -0.020553675, 0.02628057, 0.031318516, 0.02907943, 0.037145887, 0.03060086, 0.034533616, 0.011791091 ]
ValueError: Unrecognized configuration class XYZ for this kind of AutoModel Generally, we recommend using the [AutoModel] class to load pretrained instances of models. This class can automatically infer and load the correct architecture from a given checkpoint based on the configuration. If you see this ValueError when loading a model from a checkpoint, this means the Auto class couldn't find a mapping from the configuration in the given checkpoint to the kind of model you are trying to load. Most commonly, this happens when a checkpoint doesn't support a given task. For instance, you'll see this error in the following example because there is no GPT2 for question answering:
[ 0.048446912, 0.0067726206, -0.021371055, 0.0052038007, -0.0012232406, -0.05523416, -0.008257331, -0.0068128468, 0.023331167, 0.031654324, 0.017172908, 0.003360712, 0.02597878, -0.042098492, -0.015183543, 0.04277137, 0.025993407, -0.0126236975, -0.06775546, -0.0026768674, 0.024501381, 0.003459449, -0.09706935, -0.026651653, -0.05049479, -0.0079062665, 0.02299473, -0.035164967, 0.077468246, 0.015432213, -0.03566231, 0.021692865, -0.00037117765, -0.04168892, 0.030133042, 0.009756669, 0.018416263, -0.059534702, -0.032093152, -0.034609117, 0.024559893, -0.022014674, 0.06997887, -0.05099213, -0.016309876, -0.003210778, 0.0038653673, 0.0038580534, 0.0005453386, -0.010627017, -0.01805057, 0.045667652, 0.023609092, 0.019293925, -0.040811256, 0.01938169, -0.00032912305, 0.019410945, -0.006110718, 0.008849753, 0.020946853, 0.014642319, 0.0015432214, -0.030835172, 0.022629037, -0.016997376, -0.010466113, 0.0086669065, -0.022292601, -0.0020661613, -0.052922986, 0.047715526, -0.009230073, -0.054297987, 0.0005425959, 0.04397084, 0.042712856, 0.002179526, 0.027309898, 0.04054796, 0.010714783, 0.047335207, 0.0014847106, -0.008513316, -0.043941583, -0.000074852636, 0.048300635, -0.02122478, -0.029065222, -0.017626368, -0.01843089, 0.020785948, -0.02002531, 0.013289257, 0.016061204, 0.032766026, -0.020449512, 0.040957533, -0.030601129, -0.027090482, 0.009793239, 0.06588312, -0.015534608, -0.005152604, 0.004962444, -0.009778611, 0.04250807, -0.00020284492, -0.015534608, 0.013208805, 0.047715526, 0.005236713, 0.00024958496, 0.010875688, -0.015812533, -0.03332188, 0.018928232, 0.022248717, -0.05181128, -0.009617707, 0.031010704, -0.0075478884, 0.008396295, -0.011365715, 0.036159653, -0.05365437, -0.016397642, -0.011577818, -0.026051918, -0.03952402, 0.011131672, -0.0178019, 0.05023149, 0.06541503, 0.0020460482, 0.0047393716, 0.008440178, 0.01647078, 0.0039458196, -0.014349764, -0.00547807, -0.026724791, 0.01932318, 0.09671829, 0.0035124742, 0.006011981, -0.0052879103, -0.020054564, 0.0030334173, 0.010758666, -0.042625092, 0.008974088, 0.002080789, 0.04897351, -0.0024519667, 0.024486754, -0.029606447, 0.0410453, 0.0040847827, 0.017758017, 0.006154601, -0.002318489, -0.0197035, 0.06050013, -0.0058254777, 0.03098145, -0.03850008, -0.003967761, 0.015651628, 0.011380344, -0.005390304, 0.011343774, -0.0036989772, 0.018343125, 0.02438436, 0.03437507, 0.088643804, 0.002929195, 0.020639671, 0.010283266, 0.024691543, 0.017377697, 0.0035618427, 0.039875086, -0.0026567543, -0.007913581, 0.025188884, 0.01690961, -0.007752676, -0.018518656, -0.010414916, 0.04996819, -0.012791916, -0.024062552, -0.09355871, -0.006677541, -0.0015624202, 0.034287307, 0.002857885, -0.03414103, -0.0048088534, 0.022672921, -0.020478766, -0.013208805, -0.018021315, -0.003055359, -0.03358518, 0.0051489472, 0.012170238, 0.001680356, 0.06875014, -0.0143863335, -0.019586477, -0.01152662, 0.041191578, 0.00886438, -0.00571577, 0.0017827498, -0.0028725127, 0.031303257, 0.056170333, -0.011855743, 0.009742042, -0.00943486, -0.000097536984, 0.0033936242, 0.025291277, 0.04452669, -0.029884372, 0.015417586, 0.031274002, 0.031039959, 0.031654324, 0.02280457, 0.0057084565, 0.0039348486, 0.057047993, 0.0027591481, -0.013223432, 0.023199517, 0.0056974855, -0.0023002045, 0.01418886, 0.0020277635, -0.012199494, -0.034258053, -0.008074486, 0.028202187, -0.04914904, 0.023331167, -0.03358518, 0.04850542, 0.01485442, -0.021385685, -0.074074626, 0.0012195837, 0.021619726, -0.005324479, 0.004768627, 0.006710453, 0.017918922, 0.03452135, -0.03376071, 0.006534921, 0.0034119089, 0.04382456, -0.019908287, -0.0153005645, 0.008037916, -0.037037313, -0.011321832, -0.0068859854, -0.07571293, -0.010751353, -0.05283522, 0.0034338504, 0.03806125, -0.064244814, 0.0014115721, -0.022921592, 0.03191762, -0.021619726, 0.019293925, 0.002342259, 0.041074555, 0.029533308, -0.07179271, -0.00046374352, -0.04192296, 0.018591795, 0.027002716, -0.037154336, 0.010553879, -0.04587244, 0.018664934, -0.005496355, -0.007288247, 0.015827162, -0.05175277, 0.04066498, -0.053215537, 0.004406592, 0.008776614, 0.01698275, 0.016748706, 0.01945483, -0.011775291, -0.023155635, 0.04941234, 0.038529336, -0.014993383, 0.007229736, 0.030162299, 0.043444242, -0.04663308, 0.03642295, 0.02736841, -0.0014499698, -0.047920316, -0.003523445, -0.0071236854, 0.028421603, -0.014847106, -0.0010440514, 0.017246047, 0.065239504, -0.023667604, -0.04985117, -0.015797906, -0.002742692, 0.0012387825, 0.0010989052, -0.01805057, 0.013040586, -0.02128329, 0.06395227, -0.047393717, 0.0013164922, -0.004677204, 0.018284613, -0.022175578, -0.0018494886, 0.02096148, 0.03636444, -0.011358402, 0.0047357148, 0.05631661, -0.04473148, 0.019045252, -0.026022661, -0.0008909178, -0.00756983, -0.005788909, -0.006717767, 0.02597878, 0.04756925, -0.019996053, 0.016543917, -0.0017525802, -0.025203511, 0.020215468, 0.020405628, -0.0065312637, 0.014591121, -0.04882723, -0.011892312, 0.0024684228, 0.04002136, 0.07290441, -0.039114445, 0.046574567, 0.034813903, -0.0102540115, 0.024793936, -0.009200818, -0.012455478, 0.037388377, 0.021444194, 0.03566231, -0.0067799347, -0.012170238, -0.00048088533, 0.029270008, -0.00079446647, 0.013157608, -0.010634331, -0.009010658, 0.01466426, -0.018035943, -0.018547911, -0.0076795374, -0.037856463, 0.007482064, 0.0055000116, -0.030337831, -0.060851194, 0.004026272, 0.037710186, 0.031010704, 0.01886972, 0.07161717, -0.031391025, -0.013910933, 0.01485442, -0.009507999, 0.0060339225, -0.004984386, 0.00078852393, 0.040840514, 0.019908287, -0.0038873088, -0.013281943, 0.018357752, 0.05663842, -0.028801924, -0.018957486, -0.010180873, -0.016295247, -0.0110804755, 0.01048074, 0.022541272, -0.02830458, -0.043853816, 0.036510717, 0.039114445, -0.027148994, -0.011965451, -0.009793239, -0.018284613, 0.003971418, 0.03326337, -0.04034317, -0.028787294, 0.035486776, -0.07875548, 0.027119739, 0.028875062, -0.009369036, -0.0033936242, -0.037271354, -0.022292601, 0.021722121, -0.024018668, 0.03077666, -0.0042895703, 0.0066921683, -0.0047247442, 0.0023331167, 0.026066545, 0.017143654, 0.045316584, 0.0024958497, -0.023199517, -0.0009818837, -0.02951868, -0.0018376036, -0.027631707, -0.025262022, 0.01456918, 0.039670296, -0.010985396, -0.010656273, 0.05464905, -0.09870765, -0.044058606, 0.0058949594, 0.0429469, 0.0009069168, 0.04414637, 0.0075917714, -0.015051894, 0.04742297, 0.08004272, -0.041484132, 0.005397618, -0.019410945, 0.01995217, -0.0119508235, -0.015402959, 0.021005364, -0.04005062, 0.043619774, 0.011848429, -0.0015633345, -0.0112121245, -0.076298036, -0.0014993383, 0.047657017, 0.0039092503, -0.023141006, 0.013969445, -0.0021429567, 0.0034978464, -0.000792638, 0.010714783, -0.053946923, -0.024296595, 0.0054634423, 0.035077203, 0.014232743, 0.0025269336, -0.03200539, -0.022702176, 0.039289977, -0.016178226, -0.0007263563, 0.0127553465, -0.010378347, 0.045579884, -0.0007876097, -0.034492094, -0.025437554, -0.032473475, -0.02084446, 0.023857763, -0.04446818, -0.047071908, 0.013852423, -0.010839119, 0.038236782, -0.019264668, -0.050582554, -0.032444216, 0.015607746, 0.040635724, 0.03692029, 0.0071273423, -0.012316516, -0.035925608, -0.042976156, 0.029123733, -0.021297917, -0.025203511, 0.008930205, -0.035164967, -0.007050547, 0.012258004, 0.005521953, -0.077994846, -0.027851123, -0.028992083, -0.020303234, -0.06260651, -0.0021137013, -0.04309318, -0.03452135, -0.0072919037, 0.032912303, 0.0049039335, -0.023170263, -0.0031028988, 0.017289931, -0.014203488, 0.020683555, -0.00880587, -0.02273143, -0.0018851437, 0.029430913, -0.028216815, 0.010085792, -0.024808563, 0.023345795, -0.041016046, 0.00471743, -0.051840536, -0.05110915, -0.02862639, -0.028465485, 0.0073467577, -0.0039055934, 0.03577933, -0.04827138, 0.011504679, 0.029343147, 0.02388702, -0.015022638, 0.025218138, -0.03408252, 0.0009064597, 0.045843184, -0.030864427, 0.016251365, -0.00096085644, -0.026081173, 0.039758064, -0.039582532, 0.009785925, 0.0260958, 0.004644292, -0.0026348128, -0.088585295, 0.018226102, 0.022658292, -0.008111054, -0.008930205, 0.019220786, -0.0027792612, -0.00039243352, -0.04546286, -0.0059790686, 0.0015770479, 0.028289953, 0.025920268, 0.0101955, 0.024618404, 0.0004632864, -0.068516105, -0.032093152, 0.06137779, -0.010627017, 0.023521326, 0.035399012, 0.024662286, 0.02837772, 0.015519979, 0.021766003, 0.0016428725, -0.021561217, 0.015783278, 0.009917574, -0.039348487, 0.009076482, -0.0027024657, -0.036627736, -0.04669159, -0.003261975, 0.049002763, -0.049821913, 0.004501672, -0.009273956, 0.0037282326, -0.016880356, 0.024984095, -0.022453506, -0.0005494526, 0.017787272, -0.0048015392, -0.005251341, -0.06442035, -0.0120971, 0.02388702, -0.042332537, -0.047305953, -0.039494764, -0.0078404425, -0.030016022, 0.012960134, 0.031625066, 0.040372428, 0.049617127, 0.043795306, -0.033526666, 0.086244866, 0.031800598, 0.008893636, -0.003737375, -0.049266063, -0.06295758, -0.0063593886, -0.008586454, -0.027075855, -0.013888992, 0.0064105853, -0.0007620113, 0.015344447, 0.025349788, -0.03469688, -0.043180943, 0.0072626485, -0.0073942975, -0.0049478165, 0.0011565018, -0.02090297, -0.005675544, -0.012499361, 0.0063118488, -0.0260958, -0.004348081, 0.031274002, 0.016295247, -0.006044893, -0.08355337, 0.008052544, -0.076239526, -0.043678284, -0.024984095, -0.010239383, -0.03522348, -0.0052293995, -0.023389677, -0.021005364, 0.033409644, 0.038207527, -0.01652929, -0.040109128, -0.041484132, -0.0076868515, 0.006483724, -0.017026631, -0.03896817, 0.034579862, 0.02002531, -0.0026384697, -0.0052293995, 0.039494764, 0.01968887, -0.0063557317, 0.012645639, 0.036832526, -0.009390977, 0.009288584, 0.008549885, 0.017553229, -0.031039959, 0.032590494, -0.02305324, 0.028246071, 0.0005691086, 0.02179526, -0.029781979, 0.02261441, 0.023740742, 0.0014554552, -0.003550872, 0.002865199, 0.05061181, -0.01932318, -0.008418236, 0.010700156, -0.003048045, -0.034258053, 0.0426836, 0.061728854, -0.018489402, 0.027441548, 0.021941535, -0.017129026, -0.020946853, -0.06325013, 0.00985175, 0.06839908, 0.082441665, -0.00085114874, -0.03469688, 0.0135598695, 0.0075478884, 0.0042420304, -0.026695535, -0.02330191, 0.019732755, -0.04490701, 0.031712834, 0.002810345, -0.009844435, 0.015622374, -0.00097639835, 0.015739394, -0.002104559, -0.042888388, 0.018240731, 0.033204857, -0.04002136, -0.07454271, 0.011519306, 0.012579814, -0.0073504145, -0.037446886, 0.005821821, 0.058159698, -0.0135233, -0.03674476, -0.014013328, -0.03490167, 0.0055036684, 0.04774478, -0.03566231, -0.013391651, 0.025496066, 0.014649632, -0.03946551, 0.0135379275, -0.0519283, -0.007416239, -0.0057450254, 0.010239383, 0.012038589, -0.011548562, 0.029591817, 0.0008246361, -0.011117045, 0.011036593, 0.033087835, 0.0072480207, -0.014876361, -0.036188908, 0.054590542, 0.00032820881, 0.072494835, 0.017538602, 0.009464116, 0.0375054, -0.056082565, -0.026607769, 0.0045528687, 0.031332515, 0.0070212916, 0.015812533, 0.004900276, -0.009025285, -0.011416913, 0.014174232, 0.004077469, 0.00019164561, -0.0063118488, 0.0118630575, -0.010605075, 0.012923565, -0.071968235, -0.008513316, 0.03504795, -0.022892335, 0.013837796, -0.012082472, 0.026841812, 0.02002531, 0.04631127, 0.01989366, 0.018781954, 0.037271354, 0.017845783, 0.022380367, -0.034989435, 0.016500035, -0.016178226, -0.009793239, -0.008132996, -0.028933572, -0.048797976, -0.0072224224, -0.012133669, -0.044819243, 0.015739394, -0.023682231, -0.04154264, -0.080744855, 0.009654276, -0.045141052, 0.025539948, 0.004293227, -0.03027932, -0.038031995, 0.021400312, 0.0043407674, 0.014964128, 0.031625066, 0.019293925, 0.046779353, 0.06266503, 0.062372472, -0.03756391, 0.00033346564, 0.0003325514, -0.03071815, 0.03223943, 0.024179572, -0.02723676, -0.0055109826, 0.0029310235, -0.049119785, 0.017992059, -0.018079827, -0.012543245, -0.018591795, -0.013962131, -0.020083819, -0.0052696257, -0.032531984, 0.059008103, 0.067931, 0.032327197, 0.015666258, -0.0067470223, -0.010948827, 0.006011981, -0.048359144, -0.007061518, -0.009252015, -0.0127334045, -0.010019968, -0.06260651, -0.011636328, -0.023258029, -0.058686294, 0.038997423, 0.018460145, 0.029372403, 0.0700959, 0.008440178, -0.0032674605, 0.002318489, 0.0011245037, 0.043736797, 0.025071861, 0.035984118, 0.0372421, 0.0024263682, -0.04022615, 0.014108407, 0.057750124, -0.038119763, -0.02495484, 0.004117695, 0.025920268, -0.023594465, -0.054707564, -0.025891013, 0.0051306626, 0.030191554, 0.020595789, -0.0055402378, -0.0071200286, -0.090808704, -0.05777938, -0.03349741, 0.003472248, -0.04060647, -0.019015998, -0.009113051, -0.04224477, 0.2548729, 0.028099794, 0.0079501495, 0.029606447, 0.05186979, 0.051489472, 0.0018622879, -0.023813881, 0.022526644, -0.007240707, -0.020039937, -0.045521375, 0.0010669072, 0.034813903, -0.041016046, 0.030864427, -0.027690219, 0.016031949, -0.0009718272, -0.030513363, -0.0388804, 0.068457596, 0.0062350533, 0.049178295, 0.013340454, 0.014218115, -0.022058558, -0.030133042, -0.030191554, -0.029474797, 0.025422927, -0.03642295, -0.0038251411, -0.009807867, -0.013611066, -0.026710164, -0.0021009021, -0.003777601, -0.0032071213, 0.011760663, 0.002124672, -0.009983399, -0.0036038973, -0.0074966913, 0.0027134367, 0.00852063, -0.043239452, 0.050114468, 0.043444242, -0.029343147, 0.05046553, -0.026754046, -0.0072919037, -0.0761225, -0.06734589, 0.017904293, -0.072553344, -0.04756925, 0.031625066, -0.0016273306, 0.007920895, -0.034579862, 0.0032656319, 0.05061181, -0.035691567, 0.019557223, -0.026168939, 0.04660382, -0.02077132, -0.013194177, -0.011607072, -0.017758017, -0.06383524, -0.06488843, 0.014825164, 0.02571548, 0.008213448, -0.0020917598, -0.028728785, -0.05099213, -0.019732755, 0.015008011, 0.01995217, -0.02780724, 0.010166245, 0.020156957, -0.06213843, 0.02539367, 0.016543917, 0.01371346, 0.038119763, 0.06769695, 0.003883652, -0.012111728, 0.030864427 ]
export with 🤗 Optimum via CLI. export with 🤗 Optimum with optimum.onnxruntime. Exporting a 🤗 Transformers model to ONNX with CLI To export a 🤗 Transformers model to ONNX, first install an extra dependency: pip install optimum[exporters] To check out all available arguments, refer to the 🤗 Optimum docs, or view help in command line: optimum-cli export onnx --help To export a model's checkpoint from the 🤗 Hub, for example, distilbert/distilbert-base-uncased-distilled-squad, run the following command:
[ 0.038997713, -0.013032472, -0.025438245, -0.007025428, -0.036690325, 0.018074542, -0.01702055, 0.021934433, -0.005472926, 0.045606527, 0.0068509495, -0.0334144, 0.011131013, -0.01847335, -0.021364707, 0.051901996, -0.014321475, -0.033158027, -0.03794372, -0.033101052, 0.009799279, -0.01996888, -0.059479345, -0.02777412, -0.0124128945, -0.00014743874, 0.022276267, -0.010860393, 0.017689977, 0.044723455, -0.027588958, -0.006017726, -0.020082824, -0.014285867, -0.012149397, -0.038655877, -0.0067334436, -0.035322983, -0.057399847, -0.076799, 0.0072248317, -0.020567091, 0.0009640824, -0.03250284, -0.05247172, 0.01928521, -0.021635327, -0.0020866198, 0.009592754, -0.054294843, 0.0076272003, 0.012021208, -0.000379001, 0.024412738, -0.071272664, -0.038655877, -0.022318998, -0.0083892085, -0.07400735, -0.011380267, 0.031477336, 0.05238626, -0.022746291, -0.081299834, -0.016393851, 0.03067972, 0.010789177, 0.0129114045, -0.00021709659, -0.0034664238, -0.0668288, 0.04139056, -0.006210008, -0.04375492, -0.028030496, 0.004607655, 0.0095642675, -0.0018889962, 0.006195765, 0.052870527, -0.019071562, 0.061245494, 0.006712079, -0.024227578, 0.016151719, -0.043612488, 0.052300803, -0.003105004, -0.031933114, -0.012263342, -0.005846808, 0.051075894, -0.028016252, 0.0593654, 0.076457165, 0.02600797, -0.006993381, 0.03022394, 0.023672096, 0.0018569492, 0.05269961, 0.07252606, 0.008225412, 0.031192472, -0.04805635, 0.012170762, 0.0046966746, 0.016052017, -0.05101892, -0.023073884, -0.007904941, 0.015667452, -0.023130856, -0.033613805, -0.0092010675, 0.023885742, -0.0126835145, 0.00785509, -0.053696632, -0.038143124, -0.030081507, -0.016180204, -0.0076272003, -0.06249889, 0.03358532, -0.032246463, -0.023130856, 0.059992097, -0.018273946, 0.012249099, 0.029426323, 0.014150558, 0.03976684, 0.05361117, 0.002419553, -0.03512358, 0.025822809, -0.0012792118, 0.022945695, 0.009877617, 0.004728722, -0.0014100707, -0.025765836, 0.07662808, 0.0004370863, -0.016664471, 0.0050598746, -0.056858607, -0.040422026, 0.00079227454, -0.03825707, -0.046831436, -0.040422026, 0.013637804, -0.017661491, -0.014670433, -0.00821829, 0.0024747453, 0.030053021, -0.01216364, 0.01511197, 0.001139451, -0.056117963, 0.043099735, -0.019527342, 0.036177572, -0.022589616, -0.02446971, 0.016650228, -0.045264695, 0.0046966746, -0.0021435923, -0.014079342, 0.041817855, 0.03649092, -0.012384408, 0.05586159, 0.027831092, -0.006142353, -0.0029874982, -0.029996049, -0.040678404, 0.006384487, 0.0039097415, 0.018715484, -0.00009803285, 0.008374965, -0.012405774, -0.010960095, -0.0051453337, 0.057969574, 0.019171264, -0.0138585735, -0.011187985, -0.022489915, 0.030337885, -0.02945481, 0.00039725003, -0.016037773, 0.02777412, 0.015923828, 0.06927863, -0.037060644, 0.010490071, -0.004248016, 0.0035198354, 0.013922667, 0.03307257, -0.031107014, 0.03894074, 0.06249889, -0.017590275, -0.052984472, 0.008139953, 0.032730732, -0.038228583, -0.04147602, 0.011259201, 0.015225914, 0.005782714, 0.0054337573, 0.040706888, 0.061131548, -0.01683539, 0.02432728, 0.005020706, -0.011558306, 0.03013848, 0.0153968325, 0.032104034, 0.0077909967, 0.0007495452, -0.015895342, 0.055177916, 0.014506636, -0.0036818513, 0.05378209, 0.031163987, 0.032616787, 0.00078025693, 0.0047144787, 0.017846651, 0.0369467, 0.024013931, -0.0146277025, 0.0037886747, -0.022817507, -0.018943373, -0.021321978, 0.023714826, -0.019441884, 0.059251454, -0.0151689425, -0.033328943, -0.022746291, -0.020239498, 0.039909273, 0.04253001, -0.014784377, -0.025082165, 0.027261367, -0.013125052, -0.01488408, -0.03227495, 0.0052485964, 0.035607845, 0.022048378, 0.014300111, -0.028970543, -0.0500219, -0.0031869023, -0.03281619, -0.07264, 0.031078527, -0.003984518, -0.024170605, -0.0101980865, -0.027361069, 0.037972208, -0.0039773965, 0.021507138, 0.01084615, -0.02418485, 0.04292882, 0.047144786, 0.025495218, -0.040649917, 0.007847969, -0.03512358, 0.0064378986, 0.019142777, -0.014136314, 0.016550526, -0.030708205, 0.0231451, 0.004116267, 0.006213569, -0.018872159, -0.014599216, 0.014869836, -0.05215837, 0.030508801, 0.019598559, 0.01897186, -0.0282299, 0.037829775, 0.0037103374, -0.023444206, 0.071272664, 0.025623405, -0.03142036, 0.040649917, 0.0015364785, 0.03381321, -0.01697782, 0.021108331, 0.033556834, -0.013922667, 0.004785694, -0.05383906, -0.042245146, 0.0005528118, -0.049964927, 0.011593915, 0.031933114, 0.061131548, -0.022518402, -0.046859924, 0.016764173, -0.043584004, -0.029084489, -0.03036637, -0.050363738, 0.041960284, 0.07178541, 0.0000406152, -0.02868568, 0.017234197, -0.008531639, 0.039681382, 0.012833067, 0.032246463, 0.028258387, 0.0289563, -0.0031459532, -0.0025441805, 0.027902307, -0.0014821766, -0.004796377, -0.02486852, 0.0069826986, 0.015653208, -0.008674071, 0.016137475, 0.011501334, 0.016621742, 0.0074277967, 0.008659828, 0.033300456, -0.021792002, 0.0038314043, 0.01484135, -0.018715484, -0.0022949257, -0.006907922, -0.019513099, -0.008268142, 0.0514747, 0.03572179, -0.0030782982, 0.0012151178, 0.006687153, -0.05446576, -0.009315012, -0.0016361804, -0.041817855, 0.022546887, 0.03159128, 0.035864223, -0.013274604, -0.012363044, -0.0010771373, -0.0049957805, 0.020524362, 0.029483296, -0.012284706, -0.023515422, -0.012761852, -0.047030844, -0.010952973, 0.008731044, 0.0088378675, 0.018459108, -0.024241822, -0.029340865, -0.02523884, 0.036120597, 0.038371015, 0.015183185, -0.009243797, 0.045691986, -0.011159499, -0.003802918, 0.013822965, 0.014072221, 0.024270307, -0.041191157, 0.035636332, 0.007612957, -0.0071607376, -0.018686997, -0.015211672, -0.0031495139, 0.02795928, -0.009250918, -0.0066515454, -0.029312378, 0.011024189, -0.014563609, 0.0075203767, -0.022176566, -0.02704772, -0.03173371, 0.021820487, 0.016265664, -0.0245979, -0.00803313, -0.0053732237, -0.0037922356, 0.03136339, -0.0018391452, -0.03566482, -0.0062883454, -0.0043405965, -0.026150402, 0.007555985, 0.077197805, -0.026805585, -0.000025704414, -0.04315671, -0.0011795099, 0.03190463, -0.011017067, -0.04329914, 0.0039773965, -0.043584004, -0.009685334, 0.015923828, -0.025637649, 0.0070824004, 0.00095874124, -0.039311063, -0.031505823, -0.031619765, -0.0079832785, -0.026392534, 0.021521382, -0.016664471, 0.027631689, -0.0006725432, -0.023586636, -0.016194448, 0.034069587, -0.03395564, -0.06625908, -0.015809882, -0.007370824, 0.00839633, 0.040194135, 0.027475014, -0.04201726, 0.0521014, -0.013167781, 0.006893679, 0.011957115, -0.014955295, 0.009172581, 0.009329256, 0.0032741413, 0.049281258, -0.051389243, 0.041561477, 0.014969538, -0.019327939, 0.015211672, -0.06067577, -0.013851452, 0.02119379, -0.025310056, 0.0174336, 0.0042017256, -0.01375175, 0.020595578, -0.0032474354, -0.0245979, -0.037317023, 0.007491891, -0.019085806, 0.06386623, 0.008780895, 0.060618795, -0.0049316864, -0.06996229, -0.0042551374, -0.031562794, -0.0048034983, -0.01724844, -0.0071678595, 0.0062064473, 0.015297131, -0.030765178, -0.007876456, 0.000031351596, 0.00046913337, -0.022176566, -0.03136339, 0.029967563, 0.0013548785, -0.0029109414, 0.03765886, -0.0010397491, -0.0535542, -0.009678212, 0.005408832, 0.0075203767, 0.0055655064, 0.06637302, -0.00051542354, -0.04751511, -0.026748613, 0.025338544, -0.057656225, -0.0054337573, -0.055177916, 0.005269961, 0.00091022556, 0.04039354, 0.020381931, -0.034553852, -0.0014323256, -0.031819172, 0.0106040165, -0.048825476, -0.03857042, -0.054579705, 0.023971202, -0.056260396, 0.004294306, -0.01447815, 0.010276424, -0.030565774, -0.022717806, 0.02133622, 0.013794479, -0.03518055, -0.018188488, 0.00067521376, -0.002302047, -0.021378951, 0.050591625, -0.0076485653, 0.03395564, 0.009785036, -0.014784377, -0.026093429, -0.016664471, -0.023002667, 0.022988426, 0.06711367, -0.0033952082, 0.009222432, -0.01579564, 0.015054997, 0.022575375, 0.007174981, -0.08562975, -0.005287765, -0.0061601573, -0.04782846, 0.058311407, 0.00712513, -0.007869334, 0.0035892709, 0.0045186356, 0.023016911, -0.038143124, -0.0071678595, 0.08437635, -0.028358089, 0.023558151, -0.050078873, 0.047999375, 0.011024189, -0.0031495139, -0.027930794, 0.039823815, -0.011900142, 0.021934433, 0.032189492, -0.04842667, 0.0031566354, -0.0091583375, 0.03540844, 0.041305102, 0.023444206, 0.01084615, -0.084661216, -0.0029946198, 0.0074634044, 0.021763515, -0.006010604, 0.026791343, 0.027973523, 0.0000024689034, 0.004433177, -0.0008087432, -0.01266215, -0.005814761, 0.035579357, -0.026421022, -0.02474033, 0.012811703, 0.04184634, -0.015781397, -0.077311754, -0.017006308, 0.01166513, -0.04039354, 0.01870124, 0.007320973, -0.0069150436, -0.016336879, 0.0019459687, 0.040165648, -0.010190966, -0.010874636, 0.01702055, 0.009671091, -0.06694275, 0.0093363775, 0.044780426, -0.01180044, 0.00041638923, -0.059422374, -0.0010068119, -0.016906604, -0.030166967, 0.09007361, -0.03503812, 0.032930136, 0.03067972, -0.0063203927, 0.07725478, -0.015995044, 0.036120597, -0.01679266, -0.04107721, -0.05591856, -0.027802605, 0.020908928, -0.0007099314, 0.03144885, 0.0009907883, 0.005914463, 0.06312559, 0.059764206, -0.014471028, -0.07981855, 0.015297131, -0.037373994, -0.0296827, 0.012199248, 0.008332236, 0.0025993728, 0.020908928, 0.0043227924, -0.005287765, 0.009101366, 0.0022593178, -0.018843671, -0.02378604, -0.038769823, -0.017689977, -0.037573397, -0.007203467, -0.023985445, -0.03688973, 0.023529664, 0.05415241, -0.02046739, 0.0034877884, -0.023444206, 0.06244192, 0.0065197963, 0.024227578, 0.00621713, 0.031277932, -0.025381273, -0.036405463, -0.039966244, 0.02042466, -0.007385067, -0.07001927, 0.0067263218, 0.011458605, 0.027346825, -0.0071144477, 0.0069008004, 0.0069648945, -0.056801636, -0.035465416, -0.00033693924, 0.034753256, -0.05577613, -0.02492549, -0.002999961, -0.018330919, 0.0083536, 0.0454641, 0.011479969, 0.015995044, -0.0024088707, 0.024298795, -0.011323295, 0.037373994, 0.0060746986, 0.021948677, 0.012106667, -0.059992097, -0.010525679, -0.009514417, 0.03144885, 0.029568754, -0.033699267, 0.041248128, 0.014770134, 0.011579671, -0.04725873, -0.021492895, 0.028628707, 0.009820644, 0.020666793, -0.031391878, 0.008958934, 0.0028058982, -0.03227495, 0.019812206, -0.0529275, -0.05241475, 0.015197428, -0.038427986, 0.0035714668, -0.055747643, 0.009927467, 0.0058254437, 0.03318651, -0.012868675, 0.05278507, 0.052585665, 0.0064663845, 0.01625142, -0.017761193, -0.048996396, -0.029397838, -0.0007744706, -0.00821829, -0.006936408, 0.03745945, 0.022660833, 0.059479345, 0.013666291, -0.01637961, -0.028386574, -0.026178887, 0.027275609, -0.0031156864, 0.008923326, -0.042159688, 0.046859924, -0.058624756, 0.0018818746, 0.0037922356, 0.015653208, 0.013623562, -0.035209037, -0.0039560315, 0.019769475, 0.04611928, -0.027945038, 0.0033364552, 0.014228895, 0.010290667, 0.011024189, 0.013495374, -0.021934433, 0.052842043, 0.030166967, 0.040051706, -0.01130193, 0.031107014, 0.010817664, -0.06158733, -0.0462902, 0.023515422, 0.04438162, 0.0006258079, 0.015254401, 0.0025993728, 0.0032972866, 0.0037886747, -0.02088044, 0.054579705, -0.017604519, -0.04819878, 0.0022130276, -0.024213335, 0.033927154, 0.033870183, -0.051816538, -0.0068010986, 0.0057755923, 0.049452174, -0.009557146, 0.018615782, -0.044210702, 0.03167674, 0.024825789, 0.037231565, 0.012569569, 0.012861554, 0.0104687065, 0.0021809805, 0.06443596, -0.009635483, -0.017989084, 0.0013237216, -0.06021999, -0.035066605, 0.013908424, 0.0031139061, 0.008645585, 0.013744628, -0.021236518, -0.031847656, -0.05463668, -0.0057435455, -0.03495266, 0.021592597, 0.01571018, -0.04583442, -0.027945038, 0.03649092, 0.007075279, 0.013901303, 0.022276267, 0.068367064, 0.0082538985, 0.059992097, -0.008638463, 0.0043868865, 0.01847335, -0.017889382, -0.041903313, -0.038143124, 0.029084489, 0.02850052, -0.0029857177, -0.05010736, -0.08790865, 0.006412973, -0.009165459, -0.032958623, -0.020367688, -0.01152982, 0.03879831, -0.006277663, 0.0069720163, 0.0909282, 0.037687343, -0.018857915, -0.016237177, 0.0167072, -0.03603514, 0.007239075, -0.031505823, 0.017789679, 0.0074562826, -0.042330608, -0.007904941, -0.025381273, -0.008709679, 0.027261367, 0.0024177728, -0.0023981885, 0.015923828, 0.028343845, -0.0054266355, 0.032189492, 0.010511436, -0.03449688, 0.02451244, 0.06603119, -0.0012373726, 0.058795676, 0.035835735, -0.026036456, -0.0036925336, 0.014328597, -0.013466887, 0.03421202, 0.005423075, -0.02446971, -0.009955954, -0.03398413, -0.025181869, 0.009300769, 0.038598903, 0.021065602, -0.02088044, -0.052129887, 0.021393193, -0.07765359, -0.02187746, -0.026834073, 0.02418485, -0.041020237, 0.00045400002, 0.01643658, -0.047543596, 0.23928472, 0.08893415, -0.00018415932, 0.0687089, 0.039909273, 0.040194135, 0.033385918, -0.038712848, 0.06272678, -0.045862906, -0.013125052, -0.016920848, 0.04782846, 0.028172927, -0.020766495, 0.034240503, -0.072469085, 0.022803264, -0.0016513139, -0.00885211, -0.048540615, 0.024882762, -0.01275473, 0.057770167, 0.03800069, 0.00662662, 0.009471687, -0.028130198, 0.033613805, -0.027104693, -0.01044022, -0.012398652, 0.037231565, -0.014528001, -0.008225412, 0.02719015, -0.005768471, -0.0680822, 0.021848975, 0.0021079844, -0.016279906, -0.04893942, 0.029169947, -0.009179703, 0.0069791377, 0.026335562, 0.008695436, -0.017875139, 0.065461464, -0.03067972, 0.012448503, -0.03999473, 0.019128535, -0.0023216314, -0.0017207491, 0.012462745, -0.051930483, -0.042586982, -0.021037115, -0.017276926, 0.013139295, -0.0051346514, -0.02419909, 0.01643658, -0.01974099, 0.01847335, 0.013417036, 0.030252425, -0.010269303, -0.019313695, 0.03603514, 0.0029554511, -0.022760535, 0.0071571767, 0.03572179, 0.036291517, -0.0151689425, 0.019484613, 0.02505368, -0.057570763, 0.016593255, -0.005697255, -0.0065518436, -0.036092114, 0.044239186, 0.021407437, -0.007135812, -0.012897162, -0.015809882, 0.027574716, 0.014285867, 0.010995703, 0.0041589965, 0.0020990826, -0.026933774 ]
from transformers import AutoProcessor, AutoModelForQuestionAnswering processor = AutoProcessor.from_pretrained("openai-community/gpt2-medium") model = AutoModelForQuestionAnswering.from_pretrained("openai-community/gpt2-medium") ValueError: Unrecognized configuration class for this kind of AutoModel: AutoModelForQuestionAnswering. Model type should be one of AlbertConfig, BartConfig, BertConfig, BigBirdConfig, BigBirdPegasusConfig, BloomConfig,
[ 0.042139005, 0.013317934, -0.040603455, 0.018426588, 0.02142386, -0.022693641, -0.0065814513, -0.020803735, 0.007788481, 0.03038615, 0.018057466, -0.0056291157, 0.022560757, -0.035612922, -0.03201029, 0.036705524, -0.0035398833, -0.002486039, -0.06337092, -0.0043593347, 0.0023199338, -0.0054962314, -0.106011935, -0.039481323, -0.046273176, -0.01714204, 0.03047474, -0.016270913, 0.075891554, 0.019105772, -0.027831824, -0.0068139983, -0.006112666, -0.050643586, -0.0027444246, 0.012365598, 0.011125348, -0.039776623, -0.04423562, -0.042020887, 0.033634428, -0.023668123, 0.043792672, -0.048428852, -0.044560447, 0.0028200946, 0.0106971655, 0.0057029403, 0.011723326, -0.02911637, -0.022693641, 0.040012863, 0.018249407, 0.010519987, -0.03874308, -0.021290977, 0.001872373, 0.017201101, -0.010040128, 0.00014811034, 0.040721577, -0.0017948573, -0.0031024732, -0.051706657, 0.020419847, -0.022590287, -0.0059354873, 0.020567497, 0.009545503, 0.0030434136, -0.051618066, 0.023963422, -0.030799568, -0.035022326, 0.005902266, 0.046538945, 0.024494959, 0.0010132408, 0.0046287943, 0.01714204, 0.002809021, 0.03050427, -0.017954111, -0.010320661, -0.027684174, -0.011937416, 0.05962064, -0.009641475, -0.007389829, -0.037857186, -0.011213937, 0.010911256, -0.00027753387, 0.019120537, -0.0018419204, 0.025986213, -0.034402203, 0.045623522, -0.010209924, -0.034136433, 0.025956683, 0.07264327, -0.02009502, 0.0000089108435, -0.026606338, 0.029219724, 0.039983332, -0.0010436934, -0.01514878, -0.010652871, 0.019415835, 0.020685615, 0.017644048, -0.004082493, -0.024155365, -0.016285678, 0.0014746437, 0.011199172, -0.016034674, -0.019962136, 0.0026539897, -0.02058226, -0.012166272, -0.025277497, 0.05802603, -0.054423396, 0.008290487, -0.0069690295, -0.01035019, -0.032335117, 0.02845195, -0.016935334, 0.015975615, 0.08386459, -0.0032187467, 0.020419847, -0.0011396653, 0.02263458, -0.012697808, -0.014425301, 0.009958921, -0.020434612, 0.018116524, 0.09768453, -0.008785112, -0.019563483, 0.009176381, -0.044944335, -0.019017182, -0.002932677, -0.030770037, 0.014639392, -0.013465582, 0.034372672, -0.0235943, 0.010675018, -0.040249098, 0.011590442, 0.019844016, 0.036675997, 0.019652072, -0.00944215, -0.035612922, 0.059030045, -0.015281665, 0.028865367, -0.023269473, -0.018958123, 0.017570224, 0.019061478, 0.011324673, 0.009198529, 0.00905088, 0.0047838255, 0.03298477, 0.06449305, 0.0910108, -0.010254218, 0.0007110219, 0.018840004, 0.009877713, -0.00027822595, -0.017954111, 0.025454676, 0.01662527, -0.011501852, -0.013738734, 0.01074146, 0.008489814, -0.0011285916, 0.008873701, 0.038536374, -0.034077372, -0.009523356, -0.061185718, -0.01714204, -0.01723063, 0.0076482147, -0.017511163, -0.034874678, -0.005835824, 0.032423705, -0.039215557, -0.013901147, -0.048901327, 0.035258565, -0.018589001, 0.017186336, 0.0079878075, 0.02905731, 0.044619508, -0.011391115, -0.016905803, -0.026443925, 0.022737935, 0.010962933, 0.008999202, 0.032866653, -0.005319053, 0.032600883, 0.047336247, -0.011789767, 0.044619508, -0.01240251, 0.014440066, -0.027418407, 0.04290678, 0.030238502, 0.013642762, 0.0106971655, 0.026739221, 0.05525023, 0.018780945, 0.0388612, 0.034077372, -0.0013389912, 0.038211543, 0.017584989, -0.017688341, 0.006710644, -0.0073639904, -0.0007419359, 0.01321458, 0.029957969, 0.0062898444, -0.044117503, -0.014100473, 0.0071535907, -0.048635557, 0.0031043189, -0.043615494, 0.053832803, 0.04187324, -0.042257126, -0.06496553, 0.006917353, -0.0036450832, 0.02093662, -0.01315552, -0.016492385, 0.025292262, 0.0070576193, -0.019991666, -0.0014884858, 0.034195494, 0.03183311, -0.011649501, -0.021866808, -0.01523737, -0.03195123, -0.036321636, -0.020966148, -0.056372363, -0.0034531394, -0.05589989, -0.003783504, 0.044087972, -0.050673116, 0.026015742, -0.021305742, 0.0070576193, 0.0025469442, 0.006954265, 0.026074803, 0.04290678, 0.016935334, -0.059443463, 0.013598467, -0.049285214, 0.018382292, 0.007699892, -0.04423562, 0.0077146566, -0.038300134, 0.031183455, 0.00787707, -0.03050427, -0.015488373, -0.040987343, 0.034815617, -0.054423396, -0.0022350356, -0.0018806783, 0.016374268, -0.0023273164, 0.053035498, -0.0110146105, -0.032364648, 0.029692201, 0.05527976, -0.016359502, 0.018278938, 0.012756868, 0.037709538, -0.023786243, 0.04036722, 0.0028902278, -0.0017957801, -0.049698632, -0.006740174, -0.005485158, 0.026015742, 0.00088266376, -0.021290977, 0.009191146, 0.06266221, -0.043704085, -0.054571047, -0.019917842, -0.024480194, -0.006131122, 0.0016988856, -0.010261601, 0.011391115, -0.015517903, 0.07311575, -0.06390246, 0.0040788017, -0.012749486, 0.019607779, -0.0052009337, -0.04594835, 0.000570294, 0.023756713, -0.0106824, 0.018751414, 0.068804406, -0.055722706, 0.027890883, -0.046095997, 0.022737935, 0.009080409, -0.0071794293, -0.009073027, 0.00013380684, 0.02356477, -0.0045808083, 0.027108345, -0.0068176896, -0.019652072, 0.04039675, 0.029515022, 0.0023014778, -0.0014183526, -0.06845005, -0.010010597, 0.016964862, 0.039186027, 0.09024303, -0.037178002, 0.018175583, -0.016315207, -0.006662658, 0.0029437507, -0.0059760907, -0.017437339, 0.03201029, 0.023136588, 0.03868402, -0.031331103, -0.03877261, 0.030223737, 0.02006549, 0.036410227, 0.015887026, 0.003949609, 0.0062935357, 0.021069502, -0.036764584, -0.014794423, 0.012262244, -0.0006228939, -0.002404832, -0.000313754, -0.03877261, -0.02749223, 0.02263458, 0.053655624, -0.015591728, 0.013066931, 0.09827513, -0.010704548, 0.01116226, 0.027270759, -0.01593132, -0.039776623, -0.009552886, 0.0014091245, 0.028791543, 0.0065814513, 0.02093662, -0.023461416, -0.004680471, 0.013915912, -0.02827477, -0.00959718, -0.004499601, -0.047926843, 0.022486933, 0.016064204, 0.03880214, -0.017274925, -0.07305669, 0.051854305, 0.046509415, -0.020759441, -0.014964219, -0.022767466, -0.0023697654, 0.030223737, -0.005385495, -0.02353524, -0.034845147, 0.043733615, -0.057524025, 0.06266221, 0.021866808, -0.0054334807, -0.0152669, -0.03174452, -0.03325054, 0.026370099, -0.017998405, -0.009287118, -0.008718669, 0.024731196, -0.009958921, 0.008467667, 0.008733435, 0.03732565, 0.048960388, -0.015097103, 0.010734078, -0.009826036, -0.01746687, -0.0015807664, -0.03599681, -0.010113952, 0.019120537, 0.043940324, -0.009870331, -0.051824775, 0.0499644, -0.07577343, -0.070221834, 0.011265614, 0.02419966, 0.013030019, 0.033073362, 0.021881573, -0.0022018147, 0.04429468, 0.052503962, -0.050968412, 0.01080052, -0.028791543, 0.013244109, -0.0349928, -0.020921854, 0.015709847, -0.02703452, 0.029426433, -0.009294501, 0.008312635, 0.021733923, -0.05545694, 0.0016139874, 0.07482848, -0.0035177357, -0.020375554, 0.007818011, 0.0018373064, 0.013657526, 0.030164678, 0.0011581213, -0.027743235, -0.011383733, 0.008120691, 0.054246217, 0.023225177, 0.020006431, -0.047749665, -0.035465274, 0.043467846, 0.0011830371, 0.03201029, -0.0014432684, -0.008423371, 0.044885278, -0.008460284, -0.019046713, -0.026443925, -0.026827812, -0.023682889, 0.033811606, -0.046214115, -0.028717717, 0.018293703, -0.008977056, 0.027536526, -0.038034365, -0.032512296, -0.043231606, 0.026178157, 0.023668123, 0.009811272, -0.004905636, -0.014189063, -0.06266221, -0.022767466, 0.025779504, -0.043526907, -0.0011728862, -0.008615315, -0.009065645, -0.014233357, 0.009604563, -0.0067364825, -0.056401893, -0.03558339, -0.031065335, -0.0075227134, -0.04290678, -0.012358216, -0.032807592, -0.023092294, -0.023047999, 0.021852043, 0.030046558, -0.024480194, 0.012409893, 0.018382292, 0.023446651, 0.03729612, -0.027920414, -0.0029068384, 0.051795248, 0.030061323, -0.01650715, 0.0047063096, -0.0016038365, 0.037000824, -0.050436877, 0.024111072, -0.035199504, -0.038270604, -0.011354203, -0.0590891, 0.015458844, -0.013022636, 0.036764584, -0.04568258, 0.0036432375, 0.012786398, -0.011590442, -0.029529788, 0.019696368, -0.039215557, -0.0022682569, 0.027787529, -0.046125527, 0.012727338, -0.00865961, -0.027477467, 0.054541517, -0.064670235, 0.0030341856, 0.036853176, 0.017525928, 0.0094273845, -0.027625116, 0.011775003, 0.022457402, -0.008290487, -0.03147875, 0.010519987, -0.020346023, -0.014476978, -0.033752546, -0.027108345, 0.0015438541, 0.035110917, 0.025174143, -0.013221962, 0.0074119763, -0.0051344917, -0.03989474, -0.016728625, 0.062485028, -0.011516617, 0.0031504591, 0.035406213, 0.0026318422, -0.0007977656, 0.04450139, 0.010091805, -0.020213138, -0.021305742, 0.03218747, 0.0067364825, -0.044914804, 0.016462857, 0.026886871, -0.018692356, -0.036853176, -0.00031813732, 0.038418252, -0.02483455, -0.013834706, 0.0016462856, -0.016389031, -0.020493671, 0.0031523048, 0.018515177, 0.028023768, 0.0026669088, 0.02489361, 0.008947525, -0.06189443, 0.013391758, 0.012978341, -0.023328532, -0.016256148, -0.0188843, 0.0082683405, -0.007958277, -0.008903231, 0.04429468, 0.017732637, 0.05268114, 0.071284905, -0.040485337, 0.08587262, -0.006644202, -0.011597823, 0.0027167404, -0.047897313, -0.060152177, -0.019578248, 0.021852043, -0.03050427, -0.0027222773, -0.015680317, -0.0034254552, 0.020257434, 0.040603455, -0.030061323, -0.060122646, -0.01662527, -0.03475656, 0.0028459332, 0.0063415216, -0.004326114, -0.020464143, 0.00146357, -0.0046361764, -0.033870667, 0.001792089, 0.02157151, 0.004200612, 0.0034900517, -0.06827287, 0.00076408323, -0.042020887, -0.032246526, -0.02694593, -0.034904208, -0.0018594537, 0.021881573, -0.00090896373, -0.0072790924, 0.025292262, 0.052976437, -0.043763146, -0.023358062, -0.036882702, 0.0056291157, -0.03452032, -0.0069395, -0.041105464, 0.020050725, 0.015547433, -0.0023180882, -0.008032102, 0.01879571, -0.00081529893, -0.006887823, -0.00603515, 0.01919436, 0.01046831, 0.00233839, 0.008246193, 0.046391293, -0.04999393, 0.010807902, -0.02784659, 0.020493671, -0.004182156, 0.0015346261, -0.0028274772, 0.047838256, -0.0074784183, 0.021512449, -0.011339438, 0.01499375, 0.057464965, -0.011959564, 0.036941763, 0.014388389, -0.010970316, -0.06862722, 0.032423705, 0.050525464, -0.046509415, 0.041223582, 0.0015881489, -0.017791696, -0.04396985, -0.028776778, 0.032866653, 0.06626484, 0.030238502, -0.022649346, -0.018072229, 0.0062935357, 0.00977436, -0.00660729, -0.030976746, -0.0066700405, 0.02263458, -0.06378434, 0.023830539, 0.0011156723, -0.0035140447, 0.028112357, 0.03189217, 0.0024509723, -0.005765691, -0.026798282, 0.0052009337, 0.05539788, -0.062544085, -0.068745345, 0.009796507, 0.007507948, -0.05433481, -0.027255993, 0.020242669, 0.0305338, -0.02570568, -0.027979473, -0.04839932, -0.040249098, 0.018958123, 0.06000453, -0.026532514, -0.0009781742, 0.0027241227, 0.027654646, -0.06130384, -0.017215867, -0.035229035, 0.011627354, 0.02848148, 0.018618532, -0.013753498, -0.021025209, 0.04414703, -0.027831824, 0.0011941107, -0.003526964, 0.04016051, 0.0008535954, 0.010564282, -0.029278783, 0.05716967, 0.0044553066, 0.03581963, 0.016064204, 0.011250849, 0.02232452, -0.04145982, -0.044058442, 0.034136433, 0.031419694, 0.0062086377, 0.011811915, 0.009235441, 0.006732791, -0.02983985, 0.022708407, -0.008932761, -0.010844815, -0.021468155, -0.0052156984, -0.01659574, 0.017082982, -0.038477313, -0.023358062, 0.02154198, -0.010527369, 0.012151508, -0.006382125, 0.031006277, 0.018899065, 0.033900194, 0.007319696, 0.01726016, 0.057376377, -0.004281819, 0.046657063, -0.021748688, 0.023786243, -0.010401867, -0.01390853, 0.023786243, -0.04270007, -0.020405082, 0.0034328378, -0.008563638, -0.033516306, 0.018072229, -0.03626258, -0.03558339, -0.07045807, 0.016891038, -0.057671674, 0.044767156, 0.025853328, -0.051027473, -0.021733923, 0.005750926, 0.0064190375, 0.010926021, 0.03496327, 0.01451389, 0.019046713, 0.083274, 0.03986521, -0.0036561568, 0.011583059, 0.008364312, -0.039451797, 0.025912387, 0.0037152164, -0.013827323, -0.00863008, 0.0074341237, -0.046420824, 0.009973685, -0.015015896, -0.0048207375, -0.02208828, -0.012380363, 0.025838563, 0.00346975, -0.02905731, 0.08717193, 0.054866344, 0.015547433, -0.000055973942, -0.010881727, -0.051677126, -0.005533144, -0.013952824, 0.020080255, -0.010756224, -0.022929879, 0.00093987776, -0.057435434, -0.004728457, -0.018323233, -0.03431361, 0.016285678, 0.04010145, 0.03452032, 0.064079635, -0.011405881, -0.021010444, -0.017909816, 0.005880119, 0.03759142, -0.007958277, 0.041784648, 0.055013992, 0.034018315, -0.036675997, -0.0076482147, 0.02839289, -0.022708407, -0.0028957648, -0.008408607, 0.018308468, 0.0028717718, -0.027949944, -0.037709538, 0.0077072745, 0.011339438, -0.018264173, -0.019105772, -0.009560268, -0.08209281, -0.031006277, -0.017127275, 0.04021957, -0.041046403, -0.019223891, 0.004440542, -0.041341703, 0.26009837, 0.0718755, 0.0103428075, 0.035022326, 0.029574081, 0.07400165, 0.019681603, -0.016935334, -0.0076925093, -0.00009291501, -0.00015387787, -0.036498815, -0.0016841206, 0.023860067, -0.032246526, 0.056579072, -0.03348678, -0.0246869, -0.004680471, -0.014063561, -0.023830539, 0.047661077, 0.030238502, 0.03460891, 0.014809188, 0.0033350203, -0.022929879, -0.014307181, -0.02981032, -0.018972889, 0.00857102, -0.04311349, 0.015975615, 0.0070170155, -0.013635379, -0.020966148, 0.0028514701, -0.022516463, -0.0050348286, 0.014403153, 0.0009315725, -0.03460891, 0.022796996, -0.010217306, 0.0031633785, 0.0059096487, -0.027137874, 0.05282879, 0.018515177, -0.029013015, 0.048694618, -0.060447473, -0.0180427, -0.037886716, -0.050348286, 0.033782076, -0.08286058, -0.049078505, 0.043438315, 0.025779504, -0.0071941945, -0.028673423, -0.010896491, 0.035110917, -0.018500412, 0.026562043, -0.053832803, 0.046509415, -0.011612589, -0.03599681, -0.01587226, -0.018337999, -0.03620352, -0.027935179, 0.013221962, 0.038093425, 0.022693641, 0.014270269, -0.042581953, -0.055132113, -0.038536374, 0.012889752, 0.038182013, 0.01596085, 0.010313278, -0.0022885585, -0.047513425, 0.008822024, 0.009397855, 0.022221165, 0.05386233, 0.07967137, -0.000066615044, 0.018825239, 0.028348595 ]
Export to ONNX Deploying 🤗 Transformers models in production environments often requires, or can benefit from exporting the models into a serialized format that can be loaded and executed on specialized runtimes and hardware. 🤗 Optimum is an extension of Transformers that enables exporting models from PyTorch or TensorFlow to serialized formats such as ONNX and TFLite through its exporters module. 🤗 Optimum also provides a set of performance optimization tools to train and run models on targeted hardware with maximum efficiency. This guide demonstrates how you can export 🤗 Transformers models to ONNX with 🤗 Optimum, for the guide on exporting models to TFLite, please refer to the Export to TFLite page. Export to ONNX ONNX (Open Neural Network eXchange) is an open standard that defines a common set of operators and a common file format to represent deep learning models in a wide variety of frameworks, including PyTorch and TensorFlow. When a model is exported to the ONNX format, these operators are used to construct a computational graph (often called an intermediate representation) which represents the flow of data through the neural network. By exposing a graph with standardized operators and data types, ONNX makes it easy to switch between frameworks. For example, a model trained in PyTorch can be exported to ONNX format and then imported in TensorFlow (and vice versa). Once exported to ONNX format, a model can be: - optimized for inference via techniques such as graph optimization and quantization. - run with ONNX Runtime via ORTModelForXXX classes, which follow the same AutoModel API as the one you are used to in 🤗 Transformers. - run with optimized inference pipelines, which has the same API as the [pipeline] function in 🤗 Transformers. 🤗 Optimum provides support for the ONNX export by leveraging configuration objects. These configuration objects come ready-made for a number of model architectures, and are designed to be easily extendable to other architectures. For the list of ready-made configurations, please refer to 🤗 Optimum documentation. There are two ways to export a 🤗 Transformers model to ONNX, here we show both:
[ 0.028501188, -0.011382106, -0.017606584, 0.010103297, -0.011685912, -0.01660332, -0.010152753, -0.0077505712, -0.008541878, 0.053752366, -0.0031828918, -0.00640111, 0.02153486, -0.036400132, 0.0074608964, 0.03572187, -0.030154455, -0.04193928, -0.058443688, -0.00097323715, -0.008047312, -0.0081038335, -0.08546118, -0.031256635, -0.0383784, -0.000007679311, 0.024954436, -0.0183555, 0.057793684, 0.030324021, 0.0136712445, 0.026508791, -0.012342979, -0.029900108, 0.00552502, -0.047167562, 0.015840273, -0.037700135, -0.022778342, -0.014879401, 0.01600984, 0.008767966, 0.024912046, -0.058443688, -0.061721962, -0.00269539, -0.00043385007, -0.008379377, -0.04275885, -0.00509404, -0.0059630647, -0.00233153, 0.017225062, 0.018991372, -0.049061045, -0.02649466, -0.010958191, -0.0154446205, -0.036795784, 0.007821224, 0.014766357, 0.036852308, -0.022637038, -0.053978454, -0.0021054423, 0.004034254, 0.0031705278, 0.05383715, -0.025562048, -0.003797568, -0.048213217, 0.043465372, -0.025251178, -0.06251327, -0.026381616, 0.039452314, 0.03052185, -0.0045782775, -0.0009926666, 0.052650187, 0.003064549, 0.030917503, 0.00004068034, 0.0056239334, -0.018426154, -0.021958774, 0.041515365, -0.030832719, -0.033093598, -0.050191484, -0.0081603555, 0.026070746, -0.034732733, 0.010103297, 0.028910974, 0.03405447, -0.038293615, 0.058500208, -0.016659843, -0.025957702, 0.043747984, 0.060930654, -0.00873264, -0.014526139, -0.007821224, 0.016038101, 0.00640111, 0.010597864, -0.02095551, 0.017309844, 0.013996245, 0.012258196, 0.010541342, -0.0039070793, -0.018977242, 0.017394628, 0.001364475, 0.01721093, -0.046997994, -0.00096175616, 0.025689222, -0.0002528032, 0.008577204, -0.021930514, 0.042645805, -0.05185888, -0.019966375, 0.031256635, -0.03385664, -0.015939187, 0.019146807, 0.0066095344, 0.040215362, 0.054543674, 0.012484284, 0.008011986, -0.0077223103, -0.01413755, 0.00946036, -0.006521219, 0.007898942, -0.011382106, 0.024120739, 0.09506991, 0.0039318074, -0.037163176, -0.007863615, -0.022877255, -0.0118978685, 0.014088094, -0.05499585, -0.0118272165, 0.0013123688, 0.010986452, -0.017239193, -0.014709835, 0.0028667222, 0.030437065, 0.0066660563, -0.0119331945, 0.015034837, -0.011911999, -0.049965397, 0.044482768, -0.0081744855, 0.028133797, -0.018482676, -0.0054826285, 0.01511962, -0.020051159, -0.016377233, 0.008365247, 0.042278413, 0.032471854, 0.044313204, 0.021139206, 0.091226414, 0.027271837, 0.000872999, -0.0036491978, 0.0136641795, -0.014194072, -0.020757683, 0.029476192, 0.020248985, -0.016108753, 0.017225062, -0.0077576363, -0.019288113, -0.013197874, 0.019443547, 0.021492468, -0.01308483, -0.005260073, -0.053582802, 0.01892072, 0.00473018, 0.032782726, -0.004627734, -0.025745744, -0.0021690296, 0.07336548, -0.022227254, -0.0063410555, -0.029080538, 0.011926129, 0.010823952, 0.026579443, -0.009276664, 0.022848995, 0.035382736, 0.032245766, -0.025152264, 0.009170685, 0.012364175, -0.0068356222, -0.03408273, 0.0070016556, -0.006083174, 0.016815277, 0.001557886, 0.0031510983, 0.035637084, -0.00022575658, -0.02065877, -0.020531595, 0.015317447, 0.03283925, -0.031821854, 0.043917548, 0.037700135, 0.020475073, 0.016193537, 0.06822199, 0.01119841, 0.013077764, 0.05033279, 0.02765336, 0.024784872, -0.006079641, -0.0036244695, 0.034732733, 0.030097933, 0.041684933, -0.011078301, -0.0119049335, -0.017945716, -0.011452759, -0.040667538, 0.006623665, -0.032528378, 0.06805242, 0.0035114256, -0.025957702, -0.06143935, 0.005570944, 0.018397892, 0.010541342, 0.007089971, -0.03512839, 0.05974369, 0.019669635, 0.0042214827, -0.012611458, 0.0119049335, 0.009785362, 0.01295059, -0.0010977621, -0.01688593, -0.06273936, 0.006701383, -0.045895815, -0.06652632, 0.010739169, -0.064208925, -0.03464795, 0.00031352014, -0.05759586, 0.0013892034, -0.0081886165, 0.03052185, -0.026876183, -0.009672318, 0.036428392, 0.057821948, 0.021450076, -0.045895815, 0.014808749, -0.026819661, 0.036004476, -0.0057546403, -0.023725085, 0.0042497437, -0.03549578, 0.009241338, 0.015317447, -0.02913706, -0.031228373, -0.011594064, 0.013402766, -0.021054422, 0.024897914, 0.043295808, 0.030154455, -0.026268572, 0.038661007, 0.016956583, -0.030437065, 0.05711542, 0.05332845, -0.016038101, 0.03936753, -0.009622861, 0.024078347, -0.049287133, 0.034789257, 0.050869748, 0.017253323, -0.042024065, -0.04165667, -0.020446813, 0.026000094, -0.04044145, -0.032669682, 0.014356573, 0.059630647, -0.029476192, -0.053808887, 0.0183555, -0.05878282, -0.03518491, -0.008591335, -0.016264189, 0.040158838, -0.017917456, 0.018087022, -0.05621107, -0.01777615, 0.0060478477, 0.00845003, 0.004684256, 0.0045747445, 0.0044899615, 0.046687122, 0.015289186, 0.025364222, 0.03385664, -0.03230229, 0.0040625148, -0.015882665, 0.0040448513, 0.020573987, -0.006885079, -0.0015923291, 0.0043309936, 0.013487549, -0.039961014, 0.0059277387, 0.035693604, -0.014017441, 0.03459143, 0.035834912, 0.00095822354, -0.0038611551, -0.03933927, -0.007976659, -0.019273981, 0.04196754, 0.06110022, -0.036174044, 0.04456755, 0.010675582, -0.019952245, 0.0029779999, 0.0024339762, -0.050869748, 0.025010958, 0.027582707, 0.058669776, -0.0067437743, -0.018397892, 0.012795155, -0.0072348085, 0.015797883, 0.052282795, 0.0060372497, -0.008817423, -0.024784872, -0.04835452, 0.00047337127, -0.013932658, 0.014300051, 0.008739705, 0.018737024, -0.02673488, -0.06443501, 0.009813623, 0.009213077, 0.028967494, 0.037671875, 0.05598498, -0.04165667, 0.009615796, 0.017832672, -0.006503556, -0.013077764, -0.021068554, 0.035071865, 0.027144663, 0.005260073, -0.0074397004, -0.031850114, -0.021902252, 0.023301171, -0.0018563925, 0.004991594, -0.032387074, -0.008026116, 0.011240801, 0.016193537, -0.010866343, -0.03894362, -0.031850114, 0.023682693, 0.03894362, -0.045613207, -0.0051046377, 0.0001680203, -0.019966375, 0.017055497, 0.023018561, -0.009269599, -0.014130485, -0.003871753, -0.049428437, 0.02882619, 0.04453929, 0.007644593, 0.010541342, -0.036004476, 0.0073266565, 0.0206729, -0.016278319, 0.019160938, 0.025519656, -0.01369244, -0.023937043, 0.014540269, 0.028317492, -0.009255468, 0.049032785, -0.012448957, 0.019938115, -0.02560444, -0.01805876, -0.019994637, -0.01382668, 0.011311454, 0.051039312, 0.005814695, -0.018510936, -0.024897914, 0.04137406, -0.067374155, -0.07003069, 0.013049503, 0.022622908, 0.003082212, 0.026678357, 0.011424498, -0.0053519215, 0.03495882, 0.05669151, -0.02766749, -0.01222287, -0.016942453, -0.0030910438, -0.03405447, -0.029900108, 0.036428392, -0.049315393, 0.010887539, -0.01148102, -0.038039267, 0.005231812, -0.08218291, 0.017719628, 0.017097887, -0.005281269, 0.0027960697, 0.022043558, -0.017408758, 0.0017248024, -0.020234855, -0.0070299166, -0.05793499, -0.032047942, -0.00076083833, 0.041769713, 0.025222916, 0.043380592, -0.03515665, -0.034167513, 0.04798713, 0.012477218, 0.010611994, -0.015275055, -0.00486442, 0.006531817, -0.01920333, -0.024262043, 0.014766357, -0.022594646, -0.005260073, 0.021407686, -0.0071994825, -0.026226182, 0.021209858, -0.02417726, 0.035297953, -0.035976216, -0.057567596, -0.032980554, 0.012781024, 0.019259851, 0.018765284, 0.046969734, 0.007891876, -0.03495882, -0.014921793, 0.04309798, -0.013869071, -0.022933777, -0.042447977, -0.026381616, 0.028868582, 0.015642447, -0.020517465, -0.091113366, -0.0154446205, -0.043239284, -0.02300443, -0.03117185, -0.0183555, -0.054939326, -0.011502215, -0.03442186, 0.012201674, 0.008527748, -0.010103297, -0.04422842, -0.011382106, 0.032443594, 0.0687872, -0.055419765, -0.007778832, -0.001682411, -0.010378841, -0.0081886165, 0.020291377, 0.011488085, 0.03984797, -0.02590118, 0.017564194, -0.070595905, -0.046602342, -0.05991326, -0.032528378, 0.0058747493, -0.02765336, -0.017606584, -0.014681574, 0.032245766, 0.03702187, 0.048213217, -0.05476976, -0.010922865, -0.0425045, -0.034506645, 0.017578324, -0.020898988, 0.014766357, -0.008789162, -0.0070758406, 0.037700135, -0.053215407, -0.00090081844, 0.039989274, 0.0013688907, 0.0136076575, -0.08879597, 0.04312624, 0.0067861658, 0.012258196, -0.012378305, -0.008026116, -0.0067437743, 0.018016368, -0.013876136, -0.051943664, -0.032387074, 0.03993275, 0.03990449, 0.0154728815, 0.01511962, 0.007482092, -0.06641328, -0.043239284, 0.025081612, 0.014222333, 0.0017601285, 0.023823999, 0.02674901, 0.0021337033, 0.014342443, -0.00053254265, 0.009757101, -0.009234272, 0.05734151, -0.028162057, -0.03495882, 0.0021513663, 0.011968521, -0.05236758, -0.044482768, 0.0060937717, 0.02855771, -0.053441495, -0.029363148, -0.02328704, 0.012809285, -0.01777615, -0.007248939, 0.0191892, -0.024035955, 0.005129366, -0.01749354, -0.0081744855, -0.051689316, 0.025279438, 0.036343608, -0.02590118, -0.018850068, -0.057567596, 0.017013105, -0.051293664, -0.0070652426, 0.059630647, 0.0035909095, 0.062117614, 0.036880568, 0.005447302, 0.10761777, -0.008994054, -0.014921793, -0.013473418, -0.046206687, -0.070595905, 0.0018193, 0.0055744764, 0.0005665441, -0.0018104684, -0.024078347, -0.011184279, 0.022495734, 0.054656718, 0.0048785503, -0.07438288, 0.029730542, -0.028458798, -0.020206595, 0.0024110142, -0.0019676702, 0.0027960697, 0.042900153, -0.0044051786, -0.022170732, 0.0100679705, -0.0117777595, -0.021987036, -0.026438138, -0.05558933, 0.030663153, -0.06991764, -0.029532714, -0.0012690942, -0.0229903, -0.0026229713, 0.018482676, -0.020757683, 0.007340787, 0.0025063949, 0.043493632, -0.02390878, -0.010506016, 0.007015786, 0.0007462663, 0.0136500485, -0.013727766, -0.033941425, 0.03719144, 0.03928275, -0.037671875, -0.040865365, 0.008951662, 0.004882083, -0.019810941, 0.025138134, 0.045584947, -0.012985916, 0.008789162, -0.005214149, 0.0038187637, -0.04592408, 0.0037728397, -0.034139253, 0.0191892, 0.0059206733, 0.04309798, 0.007531549, 0.048269738, 0.009304925, -0.007044047, 0.014434291, 0.018539198, 0.03987623, -0.0055179545, 0.013904397, 0.022170732, 0.007100569, -0.030352283, 0.05383715, 0.057143684, -0.026720747, 0.017267453, 0.02884032, -0.027526185, -0.047195822, -0.025237046, 0.033008814, 0.035410997, 0.04971105, -0.06336109, -0.0033489252, 0.013946789, -0.015091359, -0.0007497989, -0.029334888, -0.038491443, 0.00360504, -0.060591523, 0.01807289, -0.03931101, -0.013501679, 0.03928275, 0.0049315393, 0.013282657, 0.0048467563, -0.0004406945, 0.01600984, 0.015529403, -0.03459143, -0.047958866, -0.0071429606, -0.005645129, -0.025872918, -0.044397984, 0.031087067, 0.06669589, 0.020305507, 0.0010094466, -0.010823952, 0.017281584, 0.0013220835, 0.06754372, -0.0448219, -0.009057641, -0.021718556, 0.025010958, -0.042419717, 0.018242456, -0.016744625, 0.020065289, -0.023400083, 0.023357693, 0.0021919915, 0.034817517, 0.05151975, -0.027285967, 0.006242142, 0.010668516, 0.027469663, 0.012229935, -0.014596791, -0.007969594, 0.062965445, 0.035467517, 0.0762481, -0.007835354, 0.049824093, 0.008937532, -0.03993275, -0.027724013, 0.020333769, 0.02210008, 0.013303852, 0.02065877, 0.01076743, 0.0075244834, 0.0136641795, 0.017945716, 0.025180524, 0.008047312, -0.0015322745, -0.015162011, -0.043465372, 0.009474491, 0.0023050355, -0.019288113, 0.031143589, 0.0074962224, 0.058048032, 0.017606584, 0.0264664, -0.013911463, 0.048213217, 0.026028354, 0.024940306, 0.027144663, 0.00800492, 0.010216341, -0.016462015, 0.0023121007, -0.02879793, -0.003387784, 0.0033047672, -0.021902252, -0.065339364, 0.01308483, -0.004776104, -0.04838278, 0.0117353685, -0.032471854, -0.026339225, -0.06138283, 0.02799249, -0.027215315, 0.009707644, -0.011297323, -0.031482723, -0.04948496, 0.024813132, -0.023484867, 0.02356965, 0.03329142, 0.039763186, 0.0395371, 0.100835145, -0.012915264, 0.009538078, 0.030747937, 0.014469617, -0.022453342, -0.0060407827, 0.019712027, -0.022721821, -0.013325048, -0.05290454, -0.070595905, 0.004814963, 0.0038576226, -0.055815417, -0.0028296297, -0.012456023, 0.007390244, -0.010046775, 0.00013092777, 0.07992203, 0.058726296, 0.00018071567, 0.010138623, 0.024233783, -0.053639323, -0.010611994, -0.040667538, 0.04371972, -0.033941425, -0.030606631, 0.0013229667, -0.049004525, -0.015091359, -0.012689176, -0.001898784, 0.026409877, 0.021930514, 0.041882757, 0.022566386, 0.022820733, -0.010979387, 0.0099337315, 0.025109872, 0.055674113, 0.027172923, 0.07879159, 0.035410997, -0.016589189, 0.000043964577, 0.0033860176, 0.011382106, -0.05120888, -0.0070652426, -0.013869071, 0.01804463, -0.03385664, -0.052452363, -0.021167466, 0.009283729, 0.024671828, 0.011226671, -0.03724796, 0.00874677, -0.0955786, -0.043380592, -0.04456755, -0.00049015123, -0.028684886, -0.016787017, 0.0062633376, -0.028995756, 0.23716606, 0.042956676, 0.0018228326, 0.05674803, 0.042984936, 0.055165414, 0.0015958617, -0.035863172, 0.022538124, -0.027907709, -0.0049068113, -0.04256102, 0.012413631, 0.03521317, -0.053639323, 0.048495825, -0.0425045, 0.030352283, -0.0026318028, -0.030154455, -0.05649368, 0.02241095, 0.026932705, 0.031482723, 0.032245766, 0.014497878, 0.00574051, -0.027342489, -0.013332113, -0.02388052, 0.010117427, -0.01831311, 0.031624027, -0.004758441, 0.004938605, 0.0155717945, 0.0014951819, -0.020333769, -0.002280307, 0.042334933, -0.011700042, -0.046093643, 0.017422888, -0.019839201, -0.01569897, 0.0021231053, -0.01950007, 0.038858835, 0.041713193, -0.051350184, 0.027596839, -0.028670754, 0.019712027, -0.044737116, -0.015289186, 0.016462015, -0.05592846, -0.055080634, -0.0076940493, -0.00057095994, 0.025406612, -0.018751154, 0.01413755, 0.016560929, -0.017126149, 0.024431609, 0.026367486, 0.043945808, -0.026254442, -0.0029373746, -0.01774789, -0.0067402413, -0.02673488, -0.01721093, 0.05160453, 0.052819755, -0.0025381884, 0.019825071, -0.023400083, -0.04140232, 0.019302243, -0.0059842607, 0.021096814, -0.042391457, 0.035919692, 0.02068703, -0.013190808, 0.038661007, -0.014738096, 0.02532183, 0.006655459, 0.049937136, -0.008336986, -0.026890313, 0.0031369678 ]
from transformers import AutoTokenizer from optimum.onnxruntime import ORTModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("distilbert_base_uncased_squad_onnx") model = ORTModelForQuestionAnswering.from_pretrained("distilbert_base_uncased_squad_onnx") inputs = tokenizer("What am I using?", "Using DistilBERT with ONNX Runtime!", return_tensors="pt") outputs = model(**inputs)
[ 0.034920406, -0.024019009, -0.010609394, 0.033752397, -0.009883134, -0.05387805, -0.02115889, -0.015468601, 0.020305347, 0.053967897, 0.021218788, 0.020979198, 0.03345291, -0.025516454, -0.023899214, 0.019930987, 0.012413815, -0.012563559, -0.06397083, 0.006805885, 0.003812868, 0.0076481975, -0.09559686, -0.029724272, -0.05582473, 0.0146450065, 0.03062274, -0.029185193, 0.06445001, 0.01563332, -0.033063576, 0.007771737, -0.0024427064, -0.05474657, 0.034650866, 0.0034141734, 0.019391906, -0.06277287, -0.0350402, -0.03126664, 0.013357204, -0.0010220058, 0.0727159, -0.042677168, -0.03692698, -0.021847716, -0.009628568, 0.028002212, 0.027582927, -0.009718414, -0.023929162, 0.042976655, 0.004844233, 0.00006112615, -0.027807543, 0.015483576, -0.01593281, 0.011762426, 0.0050463877, 0.017969333, 0.030907255, 0.026534716, 0.0060833683, -0.036897033, 0.029529605, -0.0035395843, -0.041389365, -0.0013617385, -0.051392294, -0.0045035644, -0.036807183, 0.030308276, -0.0054506976, -0.059149057, -0.009598619, 0.03560923, 0.025636248, 0.000056563626, 0.0049453103, 0.024333473, 0.008340766, 0.05642371, 0.012286532, -0.02604056, -0.044354305, -0.0075546075, 0.05690289, -0.02937986, -0.015783064, -0.019511702, 0.014195774, 0.019886062, -0.02264136, -0.014090952, -0.0032794033, 0.00021595958, -0.03126664, 0.059957676, -0.028900677, 0.00063594594, 0.028900677, 0.042108137, 0.022596437, -0.009276669, -0.011912171, 0.0054918774, 0.039832022, 0.0023060646, -0.013791463, 0.013192486, 0.047918223, -0.0019317034, -0.00583629, -0.01302028, -0.020200526, -0.019152315, 0.00094760157, 0.006341677, -0.03620821, 0.013918746, 0.045672055, -0.0047206935, 0.029574528, -0.0100179035, 0.02762785, -0.054866366, -0.014315569, -0.011964581, -0.05229076, -0.0485771, 0.016906148, -0.056992736, 0.027747646, 0.058909465, 0.0043762815, 0.023300236, 0.020155603, 0.0043575633, 0.013956183, -0.017894462, 0.019856114, 0.0073524523, 0.034021936, 0.09877144, 0.013192486, 0.02439337, -0.0075546075, 0.0032887624, -0.0042639733, 0.023060644, -0.04959536, 0.012593508, 0.0018250104, 0.03048797, -0.018523388, 0.026025584, -0.03938279, 0.037915293, -0.016501838, 0.0086627165, -0.016966045, 0.0104521625, -0.010848985, 0.03824473, -0.004698232, 0.024378397, -0.02604056, 0.018373644, -0.0063079847, 0.0015620218, 0.003225121, 0.0057988535, 0.01016016, 0.041628957, 0.020889351, 0.05064357, 0.07109866, 0.0029406066, 0.05279989, 0.0229109, 0.038723912, 0.023959111, 0.023300236, 0.03827468, -0.0022967055, -0.012323968, 0.015588397, 0.015753116, -0.034860507, -0.015131677, -0.013327256, 0.06283277, -0.003689329, -0.008789999, -0.081760466, -0.0017005354, -0.026205279, 0.029844068, 0.0055105956, -0.02927504, -0.00215632, 0.028481394, -0.053039484, -0.0075695817, -0.03830463, -0.018613234, -0.02169797, -0.0009344989, 0.008864871, 0.0054544415, 0.07648946, -0.030877305, -0.0003329474, -0.04498323, 0.03159608, 0.010594419, -0.014053516, -0.005667827, -0.008902308, 0.017579999, 0.055105954, 0.007015527, 0.0010313649, 0.015618346, -0.030787459, -0.020155603, 0.024198703, 0.033902142, -0.05420749, 0.007741788, 0.022326898, 0.025366709, 0.023959111, 0.05094306, 0.024348447, 0.0032850187, 0.042377677, 0.02321039, -0.010250008, 0.025696147, 0.017070867, -0.0022686285, 0.009448875, -0.016831275, 0.016561735, -0.033482857, 0.0026336305, 0.023734495, -0.023749469, 0.02183274, -0.04504313, 0.048636995, 0.0033486602, -0.019526675, -0.06690582, 0.011874734, 0.025007322, -0.004589667, 0.0065812683, -0.0044623846, 0.04740909, 0.034141734, -0.0050688493, -0.0059710597, 0.003283147, 0.058130793, 0.010519547, -0.027612876, 0.029799145, -0.048607048, -0.0011614554, -0.018014258, -0.08128128, -0.017325433, -0.04926592, 0.030847356, 0.02711872, -0.050074544, 0.016157426, -0.009096975, 0.023375109, -0.02708877, 0.015393729, 0.009740876, 0.019077443, 0.0065438324, -0.081760466, -0.003273788, -0.020934274, 0.02199746, 0.03722647, -0.054806467, 0.0143380305, -0.037975192, 0.005709007, -0.014345518, -0.0086028185, 0.00870764, -0.022476641, 0.014075978, -0.048038017, 0.00615824, -0.0014169568, 0.015618346, -0.030398123, 0.028661087, 0.005783879, -0.018164001, 0.051422242, 0.07061948, -0.005177414, 0.019721344, 0.028136982, 0.016187375, -0.04070054, 0.03857417, 0.046211135, 0.009673491, -0.057861254, -0.028421495, -0.03201536, 0.03722647, -0.016486863, 0.0018952031, 0.0051062857, 0.06762459, -0.008752563, -0.056753144, 0.026983948, -0.008340766, 0.00029012986, 0.0028470163, -0.023914188, 0.023959111, -0.037855394, 0.061634813, -0.057921153, -0.020500015, 0.0037623292, 0.034680814, 0.009823236, -0.016112503, 0.0056491094, 0.051332396, -0.0052298247, 0.015281421, 0.045132976, -0.04417461, 0.018283797, -0.034141734, -0.0029218886, -0.00092841557, 0.011567758, -0.00044595767, 0.023569776, 0.042677168, -0.039742175, 0.022042383, 0.0023828086, -0.039802074, 0.01903252, 0.0009864415, -0.012780689, 0.019466778, -0.05043393, -0.01576809, -0.005364595, 0.0336925, 0.057052635, -0.051422242, 0.036597542, 0.001848408, 0.000163666, 0.0074086064, -0.022895927, -0.0058175717, 0.011358116, 0.0076893773, 0.0512126, 0.0029967607, -0.012039454, 0.006094599, -0.0025269375, 0.009074514, 0.010474624, -0.014659981, -0.037855394, 0.007846609, -0.0126683805, -0.002137602, -0.009082001, -0.04255737, 0.012750739, 0.009456362, -0.027073797, -0.06678602, 0.02884078, 0.04186855, 0.044893384, 0.032045312, 0.085593924, -0.035908718, -0.00014401204, 0.018134052, -0.011949607, 0.010399751, 0.003339301, 0.010908883, 0.032734137, 0.022252025, -0.008685178, -0.014330544, 0.017714769, 0.052500404, -0.02914027, -0.025172042, -0.04477359, -0.006648653, -0.0000635829, 0.02587584, 0.018253848, -0.015543474, -0.043246195, 0.029319962, 0.030577816, -0.025591325, -0.007584556, -0.007270093, 0.006270549, -0.0022368077, 0.020065757, -0.03042807, -0.04264722, 0.006439011, -0.072236724, 0.015019368, 0.006506396, -0.008632767, 0.030652689, -0.031955466, 0.004526026, 0.023539826, -0.015438653, 0.04186855, 0.0022311923, 0.001501188, 0.0017220611, 0.0060272138, 0.010317393, 0.0035938667, 0.031775773, 0.0051586963, -0.012743252, -0.015842963, -0.018957647, 0.012009504, -0.016876198, -0.009666004, 0.015251472, 0.028047135, 0.00028521637, -0.008580357, 0.046121288, -0.088768505, -0.032225005, 0.025486505, 0.04070054, 0.0090295905, 0.03620821, 0.024108855, -0.0015058676, 0.044893384, 0.08110159, -0.05878967, 0.004256486, -0.015827987, 0.017205637, -0.03372245, -0.0026748101, 0.017879486, -0.026250202, 0.050284185, -0.004421205, -0.0035676614, -0.014802239, -0.070978865, -0.010564471, 0.053039484, 0.02048504, -0.01856831, 0.006090855, -0.000046268695, 0.008797486, 0.006409062, -0.0054057743, -0.05956834, -0.04558221, 0.014824701, 0.019287085, 0.02005078, 0.013342231, -0.038394477, -0.031925514, 0.038454372, -0.007891532, 0.00512126, -0.022311922, 0.019901037, 0.03935284, -0.005181158, -0.038124938, -0.00884241, -0.034141734, -0.03351281, 0.025890814, -0.038933557, -0.044114713, 0.011081089, 0.018029232, 0.039412737, -0.022117255, -0.025426608, -0.028136982, 0.018777953, 0.03557928, 0.03201536, -0.016936097, -0.014607571, -0.038424425, -0.036597542, 0.03713662, -0.040550794, -0.035908718, 0.012728278, -0.04926592, -0.013739053, 0.014989419, 0.0016209836, -0.06361144, -0.0060122395, -0.022416744, -0.023644648, -0.025651224, -0.013993618, -0.05103291, -0.040790386, -0.042377677, 0.02344998, -0.03258439, -0.015266446, -0.015887886, 0.030697612, 0.009471336, 0.0091568725, -0.019571599, -0.035669126, -0.023420032, 0.03351281, -0.01714574, -0.016516812, -0.023435006, 0.03647775, -0.060257167, -0.002175038, -0.04773853, -0.055345546, -0.02307562, -0.03911325, 0.018149028, -0.01846349, 0.05043393, -0.03608841, 0.007112861, 0.019601548, 0.03045802, -0.014405415, 0.0072139385, -0.0303532, 0.0053309025, 0.04064064, -0.014233209, 0.017609946, 0.007839122, -0.025860867, 0.015543474, -0.045402516, 0.018643184, 0.022072332, -0.016995994, -0.013447051, -0.09949021, 0.020035807, 0.030697612, -0.014839674, -0.016741429, 0.014382954, -0.013005305, -0.023120543, -0.069481425, -0.00023912317, 0.0047394116, 0.03291383, 0.035998564, 0.011283244, 0.045462415, -0.002058986, -0.0647495, -0.018298771, 0.04669032, -0.019496728, 0.03072756, 0.025501478, 0.03471076, 0.036897033, 0.009935544, 0.014173312, -0.010804062, -0.021188838, 0.025950713, -0.011223346, -0.04258732, 0.023944138, -0.024333473, -0.043216247, -0.0458218, -0.011358116, 0.015214035, -0.038094986, 0.008992154, -0.0024033983, -0.015573422, -0.033872195, 0.0074385554, -0.034590967, 0.0050052083, 0.02264136, -0.041688852, -0.0072588623, -0.049445618, -0.014158337, 0.04615124, -0.04360558, -0.029619452, -0.07199713, -0.04315635, -0.03587877, 0.04213809, 0.036747288, 0.032045312, 0.052380607, 0.032195058, -0.014585109, 0.08655229, 0.028676061, 0.024782706, -0.00714281, -0.04423451, -0.048636995, -0.00074404274, -0.007936455, -0.021982485, -0.0074834786, -0.0076070176, 0.008617793, 0.022536539, 0.0059860344, -0.035699077, -0.042677168, 0.011680067, -0.0147648025, 0.008512972, -0.038154885, -0.013342231, -0.012249095, -0.002588707, 0.003541456, -0.008497997, -0.008258406, 0.010826523, 0.017400304, -0.031955466, -0.06145512, 0.011470425, -0.080862, -0.04396497, -0.029304989, -0.02024545, -0.020125654, -0.0046533085, -0.012526123, -0.02604056, 0.027687749, 0.039292943, -0.0010847113, -0.04603144, -0.03345291, -0.018613234, 0.011717503, -0.026804255, -0.04477359, 0.044953283, 0.01913734, 0.025022296, -0.013918746, 0.031116895, -0.037645753, -0.012368891, 0.015962757, 0.02994889, -0.0010079673, -0.009284155, 0.021982485, 0.0065887556, -0.039772123, 0.031356487, -0.03581887, 0.008857384, 0.03932289, 0.02294085, -0.030233404, 0.043875124, 0.031027049, 0.013282333, -0.008565382, -0.011298219, 0.064210415, -0.021338584, -0.00951626, 0.010804062, -0.027597902, -0.011934632, 0.03042807, 0.050254237, -0.033572704, 0.02439337, 0.010092775, 0.004533513, -0.041179724, -0.058639925, -0.0049078744, 0.041658904, 0.07714834, 0.011612682, -0.010549496, 0.019916011, 0.007442299, -0.022491615, -0.02061981, -0.026939025, 0.026654512, -0.031236691, 0.028780883, 0.0009864415, -0.032674238, 0.00309971, 0.0016134965, 0.011964581, -0.00003869373, -0.02887073, 0.013971156, 0.035998564, -0.022461668, -0.053758256, 0.006622448, -0.0028357855, -0.001001416, -0.052230865, 0.024707833, 0.06942152, -0.0015723167, -0.027867442, 0.0022573976, -0.012114326, -0.0069256807, 0.03008366, -0.022371821, -0.010901395, 0.022596437, 0.013993618, -0.021039095, 0.0074385554, -0.054866366, -0.009868159, -0.008370714, 0.00079083786, 0.009778312, -0.016561735, 0.036807183, -0.017879486, 0.002358475, 0.012121813, 0.02398906, 0.011612682, -0.005757674, -0.022895927, 0.04417461, 0.008947231, 0.059718084, 0.0026841692, 0.020260423, 0.015603371, -0.04689996, -0.022162179, 0.010235033, 0.030383147, -0.009201796, 0.032254953, 0.028032161, -0.0060796244, -0.016232299, 0.01728051, 0.0018240745, 0.010766625, 0.0055517755, 0.0049752593, -0.021278685, -0.0016237913, -0.065588064, -0.0019691396, 0.027612876, -0.005667827, 0.009231745, 0.012294019, 0.008640255, 0.026025584, 0.061305378, 0.03059279, 0.0134096155, 0.040311206, 0.012368891, 0.0074947095, -0.03366255, 0.030667663, -0.01536378, -0.0054432107, -0.000827806, -0.019421855, -0.023659622, 0.006506396, -0.025231939, -0.040880233, 0.021503303, -0.01450275, -0.051362347, -0.06792408, 0.0059448546, -0.030847356, 0.030128583, 0.026968975, -0.020694682, -0.023420032, 0.029829094, 0.013544385, -0.004634591, 0.03560923, 0.001309328, 0.051002957, 0.07259611, 0.042227935, -0.036058463, -0.019302059, 0.008715127, -0.031386435, 0.03668739, 0.020020833, -0.023554802, 0.015169112, 0.01725056, -0.041119825, 0.023539826, -0.007644454, 0.019242162, -0.011343142, 0.011081089, -0.028855754, -0.005267261, -0.025246914, 0.054057743, 0.06427032, 0.041988343, 0.026489792, -0.015468601, -0.016726455, -0.0027028872, -0.03614831, 0.0056565963, -0.008977179, -0.027972262, -0.008250919, -0.067265205, -0.024722809, -0.019212212, -0.061035838, 0.03153618, 0.02601061, 0.03075751, 0.054836415, 0.013956183, -0.019556625, 0.0024539372, 0.017265534, 0.050074544, 0.030173507, 0.025276862, 0.028511342, -0.0068882443, -0.019107392, -0.0063866004, 0.06379113, -0.03530974, -0.011582733, -0.008879846, 0.00606465, -0.018388618, -0.05372831, -0.010422213, -0.004024382, 0.024588037, 0.00076042104, 0.009134411, -0.0045147953, -0.061395224, -0.047019757, -0.034980305, 0.021084018, -0.030248377, -0.009111949, 0.008265894, -0.04938572, 0.26834205, 0.04174875, 0.01280315, 0.034920406, 0.055225752, 0.047708582, -0.008101175, -0.020140627, 0.037645753, -0.018164001, -0.008056251, -0.03746606, -0.004144178, 0.03725642, -0.017849538, 0.045971546, -0.015251472, 0.028376572, 0.02752303, -0.034321427, -0.04369543, 0.043845173, -0.0027665286, 0.031236691, -0.0005737084, 0.0071278354, -0.0046383343, -0.028122008, -0.014218235, -0.02455809, 0.025231939, -0.029439759, 0.0023977829, -0.01299033, -0.021233762, -0.010122725, -0.0075433766, -0.014090952, 0.010235033, -0.0046271035, -0.009284155, -0.013858848, 0.001260661, -0.016651582, -0.0035320972, 0.006401575, -0.039203096, 0.043755326, 0.04420456, -0.03342296, 0.05465672, -0.016382042, 0.006143266, -0.05423744, -0.055704933, 0.0011258911, -0.058879517, -0.06786418, 0.028271751, 0.027807543, 0.030383147, -0.038424425, -0.0030005043, 0.041628957, -0.010347341, 0.027433183, -0.008460561, 0.035010252, -0.008048764, -0.025935737, 0.010197597, -0.022611411, -0.06840327, -0.051571988, 0.01606758, 0.010714215, -0.016411992, -0.013259871, -0.028795857, -0.04989485, -0.018972622, -0.0034123017, -0.018508414, -0.014884598, 0.01819395, 0.006989322, -0.04186855, 0.0094039515, 0.014974445, 0.0031708386, 0.034381326, 0.06361144, 0.0065625506, 0.009546208, 0.032494545 ]
optimum-cli export onnx --help To export a model's checkpoint from the 🤗 Hub, for example, distilbert/distilbert-base-uncased-distilled-squad, run the following command: optimum-cli export onnx --model distilbert/distilbert-base-uncased-distilled-squad distilbert_base_uncased_squad_onnx/ You should see the logs indicating progress and showing where the resulting model.onnx is saved, like this:
[ 0.034159206, -0.028228367, -0.004444337, 0.041015316, 0.0069774576, -0.037071537, 0.002868721, -0.03506931, 0.022600895, 0.0626151, 0.0042623165, 0.035676043, 0.035312004, -0.032763716, -0.02134192, 0.006840942, 0.014372046, -0.0043381583, -0.080756485, -0.015926806, 0.02302561, -0.01776218, -0.08985752, -0.0443827, -0.06285779, 0.014121767, 0.025225027, -0.025149185, 0.064313956, 0.028182862, -0.04277485, 0.00011862152, 0.030761488, -0.029487344, -0.0062266225, -0.023480661, 0.021796972, -0.04286586, -0.016154332, -0.043927647, 0.013287506, 0.0014703855, 0.030518793, -0.046870314, -0.031155866, -0.03458392, -0.016002648, 0.031853613, 0.008031661, -0.013484695, -0.022737412, 0.04089397, -0.00573365, 0.011785836, -0.044746738, 0.025604235, -0.010587534, 0.008934179, -0.024678964, -0.011171516, 0.062251057, 0.022115506, 0.022221686, -0.038558036, 0.011543142, -0.019415535, -0.0229346, 0.007826887, -0.01861161, 0.0060711466, -0.0438063, 0.018793631, -0.025103679, -0.0729296, -0.0255739, 0.0136363795, 0.02762163, 0.0036764375, -0.03525133, 0.024603123, 0.016806573, 0.045808528, 0.040347908, -0.034128867, -0.038679384, -0.014591987, 0.046111893, 0.0016780028, -0.017307129, -0.023146957, -0.008888674, 0.014736087, -0.035008635, 0.015805459, -0.009897372, 0.032976072, -0.03101935, 0.0644353, -0.021599783, -0.018581273, 0.017610496, 0.06898582, 0.0131358225, -0.006552743, -0.03264237, -0.00087360427, 0.02452728, -0.016761066, -0.019445872, -0.009776025, 0.05254329, 0.017913865, -0.02038631, -0.013439191, -0.017868359, -0.012058867, 0.01302206, 0.0067499317, -0.018566106, 0.0091162, 0.045050107, 0.016988592, 0.03179294, -0.01296897, 0.012551839, -0.036040086, -0.017185781, -0.0010769555, -0.021584613, -0.03834568, 0.032581694, -0.03264237, 0.028273871, 0.025862098, -0.01400042, 0.009533331, 0.018732958, -0.0013793751, 0.0048387153, -0.012483582, 0.031550243, 0.00822885, 0.022161013, 0.09131368, -0.0037162546, 0.012597345, 0.0013907515, -0.0005228353, -0.003763656, 0.0037939926, -0.06070388, 0.017034099, 0.02461829, 0.004997983, -0.019127335, 0.017443644, -0.03467493, 0.02848623, 0.0050017755, -0.0033161885, -0.018414421, 0.01701893, -0.032399673, 0.046020884, 0.029183974, 0.03355247, -0.0020647966, 0.016048152, 0.016761066, -0.018854303, -0.010966743, 0.020902036, -0.0027606464, 0.028926112, 0.044625394, 0.061796006, 0.059156705, -0.01767117, 0.036404125, 0.009487825, 0.025953108, 0.008304692, 0.03158058, 0.038406353, -0.008418455, -0.02461829, 0.02096271, 0.010966743, -0.016761066, 0.00032422427, 0.0010712673, 0.05621404, -0.0032877477, 0.014918108, -0.0644353, 0.005422698, -0.04389731, 0.025877267, -0.015236644, -0.016366689, 0.00540753, 0.033309776, -0.027045233, 0.0011044481, -0.049145572, 0.010367592, 0.0007731137, -0.006488277, 0.0060635624, 0.029077796, 0.057093807, -0.036707494, 0.015941974, -0.0552736, 0.028819934, 0.012081619, -0.025346374, -0.014781592, -0.0023055947, 0.014099015, 0.04162205, 0.00040409528, -0.009252716, 0.030882834, 0.0009935293, -0.024512112, 0.013333011, 0.01569928, -0.011406627, 0.014068678, 0.01982508, 0.019309355, 0.030533962, 0.032945734, 0.039589487, 0.0062228306, 0.06686225, 0.030943507, -0.012809702, 0.03816366, 0.0082591865, 0.008198513, 0.0018268425, -0.005020736, 0.03318843, -0.051845543, -0.002040148, 0.024072228, 0.01258976, 0.02387504, -0.05369609, 0.05970277, -0.0065679112, 0.012953802, -0.059642095, -0.022494717, 0.026332319, 0.010413097, -0.015153218, -0.01691275, 0.04162205, 0.021781802, -0.001883724, -0.023283472, -0.0010409305, 0.061522976, 0.007500767, -0.0108226435, 0.007739669, -0.05396912, 0.0003341785, -0.015153218, -0.106360726, -0.008661148, -0.05942974, 0.01955205, 0.040711947, -0.04653661, 0.022722242, -0.018429589, -0.0111866845, -0.0070191706, -0.024405934, 0.024087397, 0.021796972, 0.006552743, -0.087187886, -0.0037939926, -0.017519485, 0.0056767687, 0.023844704, -0.06686225, 0.020325638, -0.043684952, -0.000942336, -0.018687451, 0.0038186412, -0.0061962856, -0.0052406774, 0.014910524, -0.03179294, -0.013499863, 0.00884317, 0.007261865, -0.03655581, 0.028546903, 0.0042964453, -0.029350827, 0.036525473, 0.060309503, 0.0092603, 0.022873927, 0.01720095, 0.007496975, -0.045323137, 0.040165886, 0.049327593, 0.0037143587, -0.06728696, -0.033491798, -0.044625394, 0.042714175, 0.0028251118, 0.0104889395, -0.0049600624, 0.062675774, -0.01240774, -0.047810752, 0.035099644, -0.026757034, 0.00973052, 0.015562764, -0.030488456, 0.030488456, 0.017352633, 0.039407466, -0.05284666, -0.013765311, -0.010473771, 0.016184669, 0.015866132, -0.022343032, 0.021584613, 0.045717515, -0.0039058595, 0.028956449, 0.0114673, -0.022904264, 0.018080717, -0.007387004, 0.014956029, 0.020568332, 0.023283472, 0.009995966, 0.0338255, 0.046475936, -0.006002889, 0.011490053, -0.0015832003, -0.0059915124, 0.0052444697, 0.02246438, -0.00929822, 0.031337887, -0.039983865, -0.009533331, -0.018247569, 0.024360428, 0.040165886, -0.044231012, 0.01423553, -0.009427152, 0.002906642, 0.005138291, -0.01305998, -0.031519905, 0.020052606, 0.021023383, 0.080210425, -0.0070533, -0.02433009, 0.014508561, -0.018869473, -0.0034034066, 0.0065148217, -0.022949768, -0.033795163, -0.03610076, -0.0006351762, 0.020932373, -0.019218346, -0.044322025, -0.027090738, 0.017458813, -0.0458692, -0.057275828, 0.029805878, 0.051724195, 0.047234356, 0.021584613, 0.046779305, -0.0043381583, -0.0062190383, 0.00041499757, -0.017504318, 0.041288346, -0.033613145, 0.021872813, 0.004861468, -0.0038034727, -0.0044140005, -0.021963824, 0.0043419506, 0.03807265, -0.03637379, -0.018687451, -0.03767827, 0.017974537, -0.0033597976, -0.0029199144, 0.013158575, -0.033431124, -0.03179294, 0.034462575, 0.035554696, -0.026544675, 0.008592891, 0.0013480904, 0.015471754, 0.037374903, -0.0026089624, -0.022889094, -0.032733377, 0.00072381645, -0.083486795, -0.0034527038, 0.027287927, -0.012824871, 0.02997273, -0.033764828, -0.010807475, 0.011368706, -0.030791825, -0.0070912205, 0.007804135, 0.002205104, 0.025968278, 0.0061431965, -0.010921238, -0.008661148, 0.05160285, -0.005016944, -0.022085171, -0.042441145, -0.014865018, 0.0064200195, -0.002631715, -0.019127335, 0.022570558, 0.0015926806, -0.030867666, -0.0058967103, 0.03148957, -0.06285779, -0.037344567, 0.020310469, 0.035494022, 0.0020932374, 0.047143344, -0.0012656122, -0.02517952, 0.027500285, 0.078511566, -0.052755646, -0.0018059859, -0.012620097, 0.021842476, -0.042168114, -0.005934631, 0.0161695, -0.014243115, 0.055516295, -0.012256056, -0.034159206, -0.014986365, -0.07153411, -0.008372949, 0.030685645, 0.011209438, 0.002673428, 0.0013376621, 0.012149877, -0.009601588, 0.013507448, -0.00596876, -0.04480741, -0.05442417, 0.01682174, 0.01917284, 0.04250182, 0.034128867, -0.021190235, -0.025680078, 0.035736717, 0.018429589, -0.011057753, -0.015244228, 0.013287506, 0.052755646, 0.030806992, -0.029730037, 0.011732747, -0.024603123, -0.014372046, 0.003850874, -0.0644353, -0.018732958, 0.027833989, 0.005468203, 0.022798084, 0.003069702, -0.028334545, -0.009457489, 0.00314744, 0.045141116, 0.029593522, -0.0133026745, 0.0060332255, -0.056274712, -0.02433009, 0.032854725, -0.04013555, -0.027788483, 0.0028952658, -0.06734764, 0.0020742768, 0.024860986, 0.023207631, -0.058671318, -0.018111054, -0.032005295, 0.009305805, -0.040074877, -0.022130676, -0.050601736, -0.005934631, -0.040014204, 0.017504318, -0.010989496, -0.01034484, -0.0075614406, 0.021508772, 0.03431089, 0.04238047, -0.016427362, -0.031428896, 0.003653685, 0.0056350552, -0.04210744, 0.0021084056, -0.0030317812, 0.0620387, -0.040014204, -0.008752159, -0.04353327, -0.061735332, -0.009950462, -0.016154332, 0.022995273, -0.023359315, 0.039346796, -0.024481775, 0.0015813042, -0.01569928, 0.0017889215, -0.005490956, -0.0148346815, -0.029927226, 0.0016050049, 0.04353327, -0.023344146, 0.007735877, 0.010367592, -0.033764828, 0.021478435, -0.051087126, 0.036131095, 0.051026452, -0.009836699, -0.011224606, -0.08257669, 0.014690582, 0.031550243, -0.01038276, -0.018277906, 0.0037238388, -0.018399252, 0.006025641, -0.039407466, -0.020325638, -0.0053278957, 0.026013782, 0.010928823, 0.01917284, 0.03861871, -0.021493603, -0.042987205, -0.023435157, 0.05779155, -0.039710835, -0.0019908508, 0.03421988, 0.032703042, 0.009950462, 0.021205405, -0.0018827759, -0.021539109, -0.029472174, 0.03634345, -0.013166159, -0.043563604, 0.03582773, 0.0030848705, -0.023829535, -0.041288346, -0.012483582, 0.012999307, -0.042896196, -0.014728503, -0.020371143, 0.015775122, -0.042805187, 0.0071405177, -0.017822854, -0.0056312634, 0.01729196, -0.046111893, -0.016776236, -0.05581966, 0.021842476, 0.045747854, -0.049175907, 0.014068678, -0.04841749, -0.048296142, -0.026590182, 0.019900924, 0.03610076, 0.007910313, 0.054090466, 0.03880073, -0.012976554, 0.093861975, 0.030169921, 0.0061924937, -0.009518162, -0.028941281, -0.062251057, -0.028546903, 0.01832341, -0.026362656, 0.023996387, -0.017898696, 0.012149877, 0.028789597, 0.016093658, 0.0030867667, -0.052907333, 0.015206307, -0.0027777108, -0.0051193302, -0.028744092, -0.0057943235, -0.014417551, 0.0043798713, 0.0148346815, -0.021159898, -0.0105723655, 0.019279018, 0.037617598, -0.0370412, -0.03977151, 0.0073225386, -0.054575853, -0.03101935, -0.038740057, -0.018262736, -0.016958255, 0.02313179, -0.000098239005, -0.04407933, 0.029745206, 0.041197337, -0.027712641, -0.027788483, -0.0092906365, -0.022813253, -0.001297845, -0.026484001, -0.059642095, 0.046020884, 0.028804766, 0.010648207, -0.015388328, 0.0012238992, -0.029062629, -0.0019368134, 0.013120654, 0.06182634, -0.011444547, -0.013272338, 0.02163012, 0.014971198, -0.0438063, 0.021372257, -0.014910524, 0.016048152, 0.022343032, 0.011543142, -0.028971618, 0.022312697, 0.009965629, 0.011618984, -0.044291686, 0.006943329, 0.057306163, 0.014789176, 0.01861161, 0.0013187015, -0.0018268425, -0.005976344, 0.042623166, 0.04708267, -0.045141116, 0.028622745, -0.003615764, 0.011838925, -0.01137629, -0.046020884, -0.0148346815, 0.02555873, 0.035494022, 0.010458603, 0.028926112, 0.025058175, -0.012756613, 0.0034375356, -0.024132902, -0.034917627, 0.016412193, -0.06118927, 0.020416647, 0.00015855704, -0.05011635, 0.00517242, 0.021584613, 0.0077889664, 0.019445872, -0.0092072105, 0.024542449, 0.04935793, -0.04377596, -0.04820513, 0.005039696, -0.005646432, -0.021857645, -0.04605122, 0.008812833, 0.06358588, -0.0003657003, -0.030791825, -0.021387424, -0.021493603, -0.014440304, 0.02575592, -0.023344146, 0.003024197, 0.008342613, 0.0010276581, -0.010246245, -0.0016334456, -0.032430008, 0.0060408097, 0.016351521, -0.013848737, -0.007004002, -0.014387215, 0.046961322, -0.04219845, 0.020477321, -0.0018164143, 0.030094078, -0.006985042, 0.009995966, -0.019142503, 0.06243308, 0.029563185, 0.041045655, -0.00089303876, 0.023556504, 0.012415324, -0.025771089, -0.032672703, 0.035403013, 0.046961322, -0.0037977847, 0.02932049, 0.009540915, -0.022145843, -0.018672284, 0.0015869924, 0.007917898, 0.0058853338, 0.0010911758, 0.00077500974, -0.03252102, 0.0068106055, -0.032551356, -0.016791403, -0.0048159626, 0.0147512555, 0.053787097, 0.009548499, 0.0029692117, 0.027955336, 0.043593943, 0.032308664, 0.0028478645, 0.03749625, 0.017716676, 0.029183974, -0.053908445, 0.0108226435, -0.015684111, 0.00056691846, 0.0071632704, -0.032763716, -0.038102984, 0.031034518, -0.022252023, -0.00037802462, 0.022722242, -0.014819513, -0.035281666, -0.058671318, 0.0018059859, -0.04990399, 0.015130465, 0.0080923345, -0.02611996, -0.024208745, 0.044291686, 0.03664682, 0.005934631, 0.028804766, 0.022995273, 0.03719288, 0.07171613, 0.024026724, -0.039801847, 0.0045353477, -0.012445661, -0.05093544, 0.030382277, 0.02076552, -0.010458603, 0.015638607, 0.013515032, -0.04295687, 0.044140004, 0.0063593457, -0.00088545453, -0.037374903, 0.013977668, -0.027439611, -0.009457489, -0.010018719, 0.06734764, 0.06941053, 0.031337887, 0.017989706, 0.005892918, -0.04935793, -0.014781592, -0.03467493, 0.020234628, -0.018080717, -0.042714175, -0.022509886, -0.06807572, -0.011945104, -0.015130465, -0.033855837, 0.011535558, 0.025634572, 0.039225448, 0.04614223, 0.0132192485, -0.042744514, -0.012703523, 0.02219135, 0.07390038, 0.02405706, 0.027378937, 0.018808799, 0.000046779067, -0.024648627, -0.03026093, 0.04238047, -0.0136743, 0.018429589, 0.0028080475, 0.0019349173, -0.0025274323, -0.039559152, 0.0053582327, 0.012369819, -0.00095655635, -0.00645794, 0.012134709, -0.03634345, -0.073718354, -0.015517259, -0.03798164, 0.033431124, -0.030746318, -0.041682724, 0.003977909, -0.06346453, 0.27642867, 0.052421942, -0.011262527, 0.05236127, 0.06734764, 0.033400785, 0.0074931826, -0.019794744, 0.03676817, -0.01278695, -0.013082733, -0.03864905, -0.01747398, 0.020977879, -0.009419568, 0.03610076, -0.04765907, 0.0023435156, 0.048629846, -0.06516339, -0.051845543, 0.05773088, 0.015100128, 0.04756806, 0.00029293945, 0.0017993498, -0.0051875883, -0.04295687, -0.02161495, -0.040560264, 0.012749028, -0.02313179, 0.002910434, -0.022297528, -0.0096243415, -0.0031265835, -0.0017585848, -0.027955336, -0.004861468, -0.014940861, -0.0010086977, -0.020644173, 0.0033180844, -0.026271645, -0.0112701105, 0.032672703, -0.023571672, 0.050601736, 0.06419261, -0.05035904, 0.06027917, 0.0021918318, 0.025437383, -0.030533962, -0.053271372, 0.010868149, -0.069228515, -0.07274758, 0.017656002, 0.034128867, 0.01710994, -0.026210971, -0.016503204, 0.031277213, -0.043684952, 0.037010863, -0.032156978, 0.047598395, -0.038740057, -0.036161434, -0.004592229, 0.0021975199, -0.053059015, -0.024876153, -0.0013831672, 0.031095192, -0.0075728167, 0.0030886626, -0.0338255, -0.05160285, -0.02575592, -0.0033616936, -0.0040954645, -0.010185571, 0.025816593, 0.028349714, -0.013689469, 0.016184669, 0.008016492, -0.00463015, 0.041500706, 0.03561537, 0.01475884, 0.012536671, 0.0136363795 ]
Validating ONNX model distilbert_base_uncased_squad_onnx/model.onnx -[✓] ONNX model output names match reference model (start_logits, end_logits) - Validating ONNX Model output "start_logits": -[✓] (2, 16) matches (2, 16) -[✓] all values close (atol: 0.0001) - Validating ONNX Model output "end_logits": -[✓] (2, 16) matches (2, 16) -[✓] all values close (atol: 0.0001) The ONNX export succeeded and the exported model was saved at: distilbert_base_uncased_squad_onnx The example above illustrates exporting a checkpoint from 🤗 Hub. When exporting a local model, first make sure that you saved both the model's weights and tokenizer files in the same directory (local_path). When using CLI, pass the local_path to the model argument instead of the checkpoint name on 🤗 Hub and provide the --task argument. You can review the list of supported tasks in the 🤗 Optimum documentation. If task argument is not provided, it will default to the model architecture without any task specific head.
[ 0.040458, -0.005516663, -0.036219545, -0.0017922672, -0.00812865, -0.013834265, -0.018287608, -0.025949435, 0.00507948, 0.060523983, -0.004920167, 0.033463065, 0.018984139, -0.026394028, -0.016405497, 0.047986448, -0.001682045, -0.03390766, -0.068941616, 0.008847409, -0.004990561, 0.02091071, -0.09555794, -0.018287608, -0.044162948, -0.016583335, 0.051869232, -0.011218574, 0.057678584, 0.00042861584, -0.0035363701, 0.027283216, -0.0011911398, -0.032129284, 0.011574249, -0.011025917, 0.022911381, -0.052758418, -0.032218203, -0.034885764, 0.013330393, -0.024363719, 0.06396217, -0.026512587, -0.050772566, -0.028705915, 0.009655087, 0.019695489, -0.0188804, -0.0137379365, -0.015005028, 0.034678288, -0.019828867, 0.010996277, -0.0242748, -0.016524056, -0.023385614, 0.0110851955, 0.002085884, 0.014241809, 0.02629029, 0.013752757, -0.0101145, -0.026808983, 0.035597112, -0.0019098992, -0.022511246, 0.0067652296, -0.021518322, -0.0031251211, -0.036486298, 0.01901378, -0.025845697, -0.05942732, -0.01619802, 0.029269066, 0.016361037, 0.0030454649, -0.0073432014, 0.0040865545, 0.01957693, 0.049468428, 0.017042747, -0.031240098, -0.050327975, -0.024141422, 0.04520033, -0.021355303, -0.02691272, -0.013715707, -0.0019321289, 0.03577495, -0.0215035, -0.003908717, -0.011285263, 0.038649987, -0.027772268, 0.061650287, -0.016301759, -0.030232353, 0.019028598, 0.055188864, 0.016183201, -0.0117743155, -0.034915403, 0.009551348, 0.027490692, 0.0059834863, -0.008350946, -0.011537199, 0.030558387, -0.0050942996, 0.0065873927, -0.002402657, -0.02159242, -0.018243149, 0.009662497, 0.004801609, -0.024556376, -0.0071097896, 0.044874296, -0.031536493, 0.023311514, -0.008380586, 0.023741288, -0.034707926, -0.06449568, 0.006883788, -0.04131755, -0.0445779, 0.023192957, -0.030914063, 0.030825144, 0.055040665, -0.01081103, 0.023948764, 0.013486001, 0.0003172359, 0.0107295215, -0.0043496056, 0.056878317, -0.0011355657, 0.016642613, 0.08725887, 0.0009697694, 0.011359362, -0.008269438, -0.0068541486, -0.044637177, 0.043599796, -0.034470808, 0.009166034, -0.012278188, 0.03435225, -0.040369082, 0.041436106, -0.029239427, 0.028720735, 0.040932234, 0.0023378204, -0.014508565, 0.00053490145, -0.009766235, 0.047808614, 0.015323653, 0.024749033, -0.035448916, 0.02904677, 0.017161306, -0.008365766, 0.014315908, 0.0022674263, 0.024141422, 0.052284185, 0.033937298, 0.062243078, 0.04247349, 0.013982463, 0.029550642, 0.0065799826, 0.03719765, 0.014093611, 0.036871612, 0.020614315, -0.011322312, -0.0053054816, -0.013589739, 0.029995237, -0.02362273, -0.021118186, -0.008010091, 0.049112752, -0.025741959, -0.0077211056, -0.077003576, 0.008891868, -0.015368112, -0.0012930258, -0.007306152, -0.043570153, -0.009818105, 0.02572714, -0.024467457, -0.017383603, -0.033522345, 0.025327004, -0.009995942, 0.016405497, 0.01822833, 0.03660486, 0.06348794, -0.026868261, -0.0151532255, -0.025801238, 0.04603024, 0.023059579, -0.026231011, -0.016509235, -0.011811365, 0.024749033, 0.03645666, 0.0044311145, 0.010062631, 0.012337468, -0.00021453948, -0.042266015, 0.033878017, 0.026616326, -0.011966973, 0.021207105, 0.023578271, 0.034292974, -0.0049646264, 0.03527108, -0.006617032, 0.016183201, 0.039983768, 0.023756107, -0.034915403, 0.035478555, 0.008439865, 0.0144641055, 0.008032321, 0.008654752, 0.021281205, -0.0072579873, 0.0074358247, 0.017946754, -0.021177467, 0.016153561, -0.032218203, 0.038116474, 0.015168046, -0.035597112, -0.06633334, 0.01612392, 0.019058237, -0.007106085, 0.018747022, -0.01965103, 0.032010727, 0.026186552, -0.014590074, 0.004934987, 0.0064466046, 0.06277659, 0.0072728074, -0.014508565, 0.018569184, -0.036753055, 0.0028917096, 0.010366436, -0.06467352, -0.015442211, -0.034915403, 0.008054551, 0.040961873, -0.03627882, 0.009744005, -0.017457701, 0.00022704367, -0.004408885, 0.021444222, 0.027416594, 0.006416965, 0.014723452, -0.08364284, -0.0013569362, -0.036338102, -0.0027879712, -0.013834265, -0.0486978, 0.018791482, -0.032722075, 0.0025527072, -0.01690937, -0.011707626, 0.016479596, -0.01009968, 0.0027694465, -0.0242748, 0.0029769235, 0.023830207, 0.026942361, -0.040932234, 0.030884422, 0.013582329, -0.037908997, 0.051602475, 0.046415552, -0.012581994, 0.037523683, 0.02634957, 0.021162646, -0.042443853, 0.059486598, 0.048075367, -0.00007120441, -0.03642702, -0.03527108, -0.014123251, 0.01818387, 0.005527778, -0.025193626, -0.015071717, 0.06087966, -0.028691094, -0.073387556, 0.009188264, -0.03313703, 0.02572714, -0.0036401085, -0.015620049, 0.036753055, -0.031625412, 0.06129461, -0.059249483, 0.0071838885, 0.0013921332, 0.008024911, -0.0041458337, -0.011552019, 0.01960657, 0.051187523, 0.034648646, 0.009832924, 0.028498437, -0.027905647, 0.015827525, -0.026897902, 0.0024915757, 0.001991408, -0.0030473173, 0.008032321, 0.027342495, 0.022763183, -0.018154232, 0.023474533, -0.031299375, -0.027431414, -0.0043718354, 0.037316207, -0.0036975353, -0.0060687, -0.03568603, 0.0059205024, 0.0024526736, 0.0120929405, 0.06941585, -0.048075367, 0.032188565, -0.0020988514, -0.032810993, 0.02975812, 0.008580653, -0.023104038, 0.022674264, 0.013122915, 0.044103667, -0.01345636, -0.029432084, 0.010862899, -0.0024860182, 0.01759108, 0.026482947, -0.0000639682, -0.005550008, -0.013389672, 0.002297066, 0.00875849, -0.012085531, -0.0047719693, 0.0072542825, -0.002939874, -0.02700164, -0.06526631, 0.020421658, 0.05323265, 0.038590707, 0.02830578, 0.07777421, -0.03583423, 0.00081740355, 0.02971366, -0.026186552, 0.013256294, -0.018065313, 0.021370124, 0.017279863, 0.023296695, -0.0059093875, -0.031210458, 0.008928917, 0.054121837, -0.035567474, -0.006831919, -0.028557718, -0.011418641, 0.016538875, 0.024245162, 0.031536493, -0.031447574, -0.04718618, 0.03586387, 0.04241421, -0.015827525, -0.019991884, -0.023504172, 0.018020853, -0.0059834863, 0.0017320618, -0.021162646, -0.045496725, 0.0021340484, -0.06538487, 0.027535152, 0.0076099574, -0.010210829, 0.0076692365, -0.046741586, -0.032218203, 0.025771597, 0.014582664, 0.023726469, -0.00032997166, -0.013300753, 0.015071717, 0.009247543, 0.020836612, 0.021236746, 0.05127644, -0.004316261, 0.024586016, -0.01147051, -0.009136395, 0.022866921, -0.042177096, -0.028068664, 0.03257388, 0.0390353, -0.027416594, -0.007676646, 0.03986521, -0.09377957, -0.03651594, 0.022778003, -0.010410896, 0.018509906, 0.04588204, 0.025371464, -0.024200702, 0.047660414, 0.088800125, -0.052432384, 0.028868932, -0.011011097, 0.012537534, -0.027994566, -0.0045015085, -0.00065762777, -0.024245162, 0.048490323, -0.0149235185, 0.009269773, 0.0017746687, -0.08494698, -0.012982128, 0.050772566, 0.022718724, 0.000862326, -0.011129655, -0.008380586, 0.017176125, -0.005405515, 0.011433461, -0.06526631, -0.026838623, 0.018094951, 0.02089589, 0.024200702, -0.00063123, -0.039924487, -0.027772268, 0.051039323, -0.0031936627, 0.012293008, -0.040754396, 0.01152238, 0.044044387, -0.009603218, -0.01551631, 0.010974048, -0.02086625, 0.0034011395, 0.034174412, -0.041465744, -0.0325146, 0.010781391, 0.02237787, 0.01484201, -0.01624248, -0.035537835, -0.05213599, -0.0052313823, 0.028231682, 0.029580282, -0.0069134277, -0.009677317, -0.05249166, -0.05471463, 0.054892465, -0.00405321, -0.031121539, 0.01557559, -0.061116774, -0.017339144, 0.006228013, 0.004990561, -0.043392316, -0.018821122, -0.024526738, -0.0052313823, -0.034174412, -0.022185212, -0.06817099, -0.016420316, -0.022659445, 0.03853143, -0.032840632, -0.011737267, -0.022614986, 0.05465535, -0.0028750375, 0.032307122, -0.016375858, -0.065325595, -0.022629805, 0.008543603, -0.03292955, 0.008224978, -0.024556376, 0.059071645, -0.05180995, -0.004583017, -0.05189887, -0.07000864, -0.0028898572, -0.045615286, 0.005813059, -0.036308464, 0.049646266, -0.030943701, 0.0042680968, 0.019828867, -0.005383285, -0.037079092, 0.016227659, -0.039687373, -0.013849085, 0.040369082, -0.02695718, 0.02433408, -0.004190293, -0.007513629, 0.009188264, -0.07884123, 0.01756144, 0.026008714, -0.003669748, -0.008262028, -0.06319154, 0.023207776, 0.041495387, -0.001921014, -0.020555036, 0.02356345, -0.014078791, -0.012596813, -0.047452938, -0.019502832, -0.029461723, 0.034915403, 0.056374446, 0.0038790775, 0.020525396, -0.003986521, -0.04920167, -0.02560858, 0.053855084, -0.047067624, 0.010492405, 0.031862527, 0.026645966, 0.010388666, 0.023874667, -0.0020766216, -0.029180149, -0.033314865, 0.019161977, -0.050891127, -0.021785077, 0.026097633, 0.0019432437, -0.025282545, -0.05598913, -0.021118186, 0.026008714, -0.023756107, 0.0037586668, -0.0013124768, 0.0126412725, -0.027135018, 0.0042310474, -0.014308498, -0.0013143293, 0.022140753, 0.0029139393, 0.0032492368, -0.03770152, 0.0051128245, 0.021459043, -0.023444893, -0.0124634355, -0.03313703, -0.00948466, -0.024497097, -0.007854484, 0.039005663, -0.0044903937, 0.037612602, 0.016405497, 0.010107091, 0.08619184, 0.004683051, -0.009254953, -0.02225931, -0.050891127, -0.056581922, 0.002897267, 0.014367777, -0.01619802, -0.0012180007, -0.005824174, 0.033492703, 0.03897602, 0.02019936, -0.011996612, -0.070423596, 0.0037142076, -0.033937298, -0.0056129918, -0.026868261, -0.010292337, -0.005853813, 0.01345636, 0.01281911, -0.027357316, -0.0025138052, -0.0049720365, -0.005783419, -0.037405126, -0.06989008, -0.010351617, -0.07481025, -0.015190275, -0.023118857, -0.028187223, -0.0035567472, 0.006228013, -0.019413913, -0.028794834, 0.009077116, 0.041110072, 0.003786454, -0.026571866, -0.014930929, 0.013159965, -0.019977065, -0.008669572, -0.051395, 0.03361126, 0.032959193, 0.009543939, -0.047393657, 0.0270461, -0.019799227, -0.021192286, 0.010373847, 0.041406468, -0.0077285157, -0.008054551, 0.014634533, 0.0022600165, -0.05954588, 0.018509906, -0.017976394, 0.018035673, 0.015812706, 0.040131964, -0.0024508212, 0.060435064, 0.013552689, 0.00473492, -0.014456696, -0.0010874014, 0.05738219, 0.0018098657, -0.0014903141, 0.023948764, 0.001956211, -0.036071345, 0.010529454, 0.06402145, -0.047097262, 0.012989538, 0.016746351, 0.004164358, -0.03897602, -0.05047617, -0.014649353, 0.030884422, 0.06674829, -0.005546303, -0.01686491, 0.02975812, -0.01951765, -0.01080362, -0.04926095, -0.035063602, 0.026897902, -0.053795803, 0.02568268, -0.009855154, -0.040161606, 0.019932605, 0.009529118, -0.0037105025, 0.033492703, -0.039983768, 0.0013291491, 0.031121539, -0.0431552, -0.05794534, -0.014063972, -0.01150015, -0.03527108, -0.056344807, 0.024571195, 0.052788056, -0.00011444807, -0.009618037, -0.027816728, -0.013152556, -0.01960657, 0.020658774, -0.075343765, -0.00033761314, -0.00406062, 0.015827525, 0.0038012736, -0.008602883, -0.041939978, 0.013360032, 0.012996947, 0.0010929588, 0.019250894, -0.021962915, 0.009040066, -0.020095622, -0.01353787, 0.016612973, 0.027890828, 0.023430074, 0.00944761, -0.03426333, 0.032010727, 0.026794164, 0.053617965, 0.02971366, 0.06627406, 0.025045428, -0.0027249872, -0.029180149, 0.025860516, 0.0474233, -0.012085531, 0.034055855, 0.028661456, -0.0035271076, -0.012782061, 0.021251565, -0.003136236, -0.01889522, 0.008032321, 0.005616697, -0.008891868, -0.012337468, -0.044370424, 0.002335968, 0.003986521, 0.0077285157, 0.025919797, 0.009292003, 0.022437148, 0.02431926, 0.0687045, 0.041436106, 0.021414584, 0.032010727, 0.0067911646, 0.04131755, -0.016435137, 0.00810642, -0.015664509, -0.01901378, 0.0110851955, -0.015308834, -0.034648646, 0.0012272631, -0.006554048, -0.019473191, 0.022570526, -0.025089888, -0.04407403, -0.06070182, 0.019932605, -0.047808614, 0.03027681, 0.024674935, -0.040961873, -0.023859847, 0.0325146, 0.020851431, -0.016761173, 0.037464406, 0.011648348, 0.052521303, 0.0970992, 0.05068365, 0.023400433, 0.022422329, 0.005538893, -0.03310739, 0.050416894, 0.048964556, -0.028039025, 0.003151056, -0.010381256, -0.038946383, 0.017783737, 0.010855489, -0.015768247, -0.00018976266, -0.000103043785, -0.008365766, 0.01957693, -0.025786418, 0.0888594, 0.04256241, 0.028113123, 0.0028491027, -0.002599019, -0.028631816, -0.04540781, -0.027935287, 0.006635557, -0.018732203, 0.00044088846, -0.00573155, -0.063250825, -0.03168469, -0.005735255, -0.028172404, 0.009003017, 0.014352958, 0.02963956, 0.028142763, 0.0114631, -0.02768335, -0.017694818, 0.019843686, 0.06627406, 0.029950777, 0.048282843, 0.02366719, -0.0065392284, -0.044815015, -0.009625447, 0.04309592, -0.032099646, -0.017383603, -0.0126412725, 0.044103667, 0.0051128245, -0.04531889, 0.004190293, -0.0006279882, 0.014634533, -0.014686403, -0.026675604, -0.014004692, -0.061591007, 0.0054536792, -0.04460754, 0.014427057, -0.049053475, -0.02089589, -0.01481978, -0.044400062, 0.2634364, 0.022778003, 0.013693477, 0.058893807, 0.059575517, 0.034648646, 0.009862564, -0.0072024134, 0.013693477, -0.04374799, 0.019176796, -0.038887106, 0.0153829325, 0.023993224, -0.030676946, 0.050150137, -0.023163317, 0.037582964, 0.034974683, -0.027016459, -0.052847337, 0.025816057, -0.040102325, 0.045585644, 0.005998306, 0.020703234, -0.0025212152, -0.039420616, -0.014893879, -0.020377198, 0.020229, -0.0070727402, 0.0051054144, 0.004723805, -0.017442882, -0.011100016, 0.0088548185, -0.028794834, 0.000693751, 0.01284875, -0.026186552, -0.039598454, 0.0018867434, -0.0091734445, -0.005942732, 0.015842345, -0.039242778, 0.041673224, 0.020140082, -0.04724546, 0.0650292, -0.013619378, 0.0064577195, -0.038235035, -0.047719695, 0.009158624, -0.073387556, -0.06911945, 0.014582664, 0.027120199, 0.033581622, -0.050298337, -0.031536493, 0.03912422, -0.031862527, 0.036100984, 0.00873626, 0.029106049, -0.0047089853, -0.02762407, -0.012982128, -0.0047201, -0.032544237, -0.067163244, 0.028202042, 0.016612973, 0.021266386, -0.0016199873, -0.048994195, -0.029313525, -0.007898943, -0.01421217, 0.00076044, 0.022985479, 0.0002014564, 0.0015106914, -0.026853442, 0.01416771, 0.010929588, 0.012122581, 0.026394028, 0.06002011, 0.00019335182, -0.027253576, 0.0061094547 ]
optimum-cli export onnx --model local_path --task question-answering distilbert_base_uncased_squad_onnx/ The resulting model.onnx file can then be run on one of the many accelerators that support the ONNX standard. For example, we can load and run the model with ONNX Runtime as follows: thon
[ 0.037600055, -0.011280016, -0.015593381, 0.015806211, 0.009151711, -0.026646378, -0.012322886, -0.033542085, 0.020658746, 0.043474175, 0.013301905, -0.022787051, 0.034308277, -0.038650017, -0.00079988793, 0.034989335, -0.018175725, -0.042878248, -0.07378124, -0.026589623, -0.009598656, -0.0050405357, -0.1069828, -0.036067672, -0.048269957, 0.0077186525, 0.034450162, -0.007463256, 0.0558751, 0.03677711, 0.0014197568, -0.0048738183, -0.010627336, -0.025511282, -0.018303422, -0.041118853, 0.01667172, -0.026163962, -0.017934516, -0.02138237, 0.015522437, -0.0021424936, 0.037685186, -0.05621563, -0.046567313, -0.005132762, 0.013770133, 0.014600172, -0.024645772, -0.0063991034, -0.004199855, 0.0014383794, 0.015522437, 0.024305243, -0.033542085, -0.010222958, -0.009449674, 0.0041643833, -0.018913537, 0.0062181978, 0.029739514, 0.04179991, -0.005476838, -0.045857877, 0.011336771, 0.0058528385, -0.017139949, 0.031981327, -0.020672936, -0.020374972, -0.041345872, 0.020758066, -0.022091806, -0.035925787, -0.037770316, 0.026816642, 0.029285476, -0.0013160019, 0.026887584, 0.057435855, -0.0053243097, 0.025341017, 0.023695128, 0.0057215933, -0.017054817, -0.035216354, 0.05576159, -0.018643951, -0.02782404, -0.046453804, -0.023326222, 0.031867817, -0.034875825, 0.017778441, 0.011180695, 0.01667172, -0.03938783, 0.05076717, 0.011024619, -0.03972836, 0.0075129163, 0.061068162, -0.006345896, -0.0003367599, 0.0033769105, 0.014046812, 0.013940398, -0.0052817436, -0.02673151, -0.006118877, 0.013401227, -0.00014255209, 0.021722898, -0.026206527, -0.010322278, 0.016856175, 0.013692095, 0.040522926, -0.034506917, -0.0043346477, 0.037231147, 0.008577069, 0.024035657, -0.045630857, 0.062884316, -0.07020569, -0.02671732, 0.024688337, -0.033542085, 0.0032793633, 0.024603205, -0.020857388, 0.017168326, 0.05227117, 0.0012353037, 0.011194884, 0.018530441, -0.018260855, 0.009995939, -0.014756247, -0.015877154, 0.0018693611, 0.0050050635, 0.10539366, 0.0067431796, -0.025156565, -0.005859933, -0.032974537, -0.0061791786, 0.014912323, -0.06702742, 0.0021229843, -0.003577326, 0.0070766136, -0.019835802, 0.005377517, -0.01396168, 0.022545844, -0.005434272, 0.0046326104, 0.008662201, -0.021325614, -0.041090474, 0.05652778, -0.013812698, 0.030080043, 0.00425661, -0.014671115, 0.016473081, 0.012358357, -0.022659354, 0.0147988135, 0.04537546, 0.017253458, 0.032038085, 0.015210286, 0.108685434, -0.0056080837, 0.006044386, 0.0036606845, 0.008477747, -0.018913537, -0.0078605395, 0.024929546, 0.019041235, -0.03359884, -0.015536626, -0.005132762, -0.038110845, -0.011145223, 0.01668591, 0.06470047, 0.0023606448, -0.012805302, -0.06498425, -0.0029281927, -0.009541901, -0.009563183, -0.013280623, -0.014529228, -0.013436698, 0.05454136, -0.031725932, -0.0018179271, -0.051646866, 0.020389162, 0.014685304, 0.009371636, -0.018800028, 0.021495879, 0.02836321, 0.008733144, -0.017366968, -0.004888007, 0.00033276936, -0.0048951013, -0.013025226, 0.020147953, -0.013379944, -0.007058878, 0.023936335, -0.0050440826, 0.039898623, 0.0003799911, 0.014437001, -0.022560032, 0.006611934, 0.040437795, -0.018729083, 0.030619213, 0.042395834, 0.02094252, 0.020559426, 0.049149655, 0.007363935, 0.032605633, 0.043928213, 0.035613634, 0.005416536, 0.0003511703, 0.030562459, 0.01941014, 0.049036145, 0.025071431, -0.02857604, -0.025709923, -0.02793755, -0.004767403, -0.047957804, 0.008293295, -0.041431002, 0.054484606, 0.004040232, -0.022403955, -0.057010196, -0.00905239, 0.036493335, 0.020389162, 0.008371333, -0.038167603, 0.035301484, 0.016515646, 0.008683484, -0.015181908, 0.0005901612, 0.046851084, 0.0061756317, 0.003194231, -0.01799127, -0.04931992, -0.022077616, -0.03348533, -0.06776523, 0.019807424, -0.051249582, -0.02105603, 0.014855568, -0.07593792, 0.017664932, 0.008201068, 0.03274752, -0.015465682, -0.011982357, 0.03524473, 0.034478538, -0.008059181, -0.05925201, 0.037997335, -0.035698768, 0.011428997, -0.0021939278, -0.02694434, -0.0105989585, -0.045432217, 0.0111168455, 0.01309617, -0.027597021, -0.017849384, -0.019906744, 0.04364444, -0.028746305, 0.01733859, 0.022985693, 0.02607883, -0.010130731, 0.04211206, 0.017040629, -0.05857095, 0.047276746, 0.06441669, -0.0058954046, 0.035670392, 0.018502064, 0.027625397, -0.044041723, 0.02715717, 0.037940584, 0.01834599, -0.03396775, -0.024688337, -0.035528503, 0.016955495, -0.04157289, -0.017650742, 0.026476113, 0.06254379, -0.017069004, -0.04165802, 0.0027437396, -0.043275535, -0.023269467, -0.01374885, -0.013117453, 0.038366243, 0.016345382, 0.03774194, -0.066459864, -0.021240484, 0.0039196284, 0.04245259, -0.0059308764, -0.0274977, 0.018402744, 0.04790105, 0.02816457, 0.004324006, 0.046879463, -0.029540872, 0.0028182305, -0.024830224, 0.0051895166, 0.04387146, 0.007527105, 0.0017008703, 0.023624185, 0.022006672, -0.014699493, 0.015948098, 0.022020862, -0.0032101932, 0.035102844, 0.01950946, -0.0122022815, 0.009910807, -0.04744701, -0.0015847003, -0.035528503, 0.042168815, 0.044666026, -0.058741216, 0.05289547, 0.011705677, -0.0019137008, 0.016317004, -0.003671326, -0.041317493, 0.03918919, 0.03359884, 0.057577744, -0.012819489, -0.03064759, -0.00094975607, 0.0041182702, 0.007058878, 0.032804273, 0.0038415904, -0.008754428, -0.005249819, -0.051902264, -0.021737088, -0.004657441, 0.003894798, 0.016955495, -0.0019598142, -0.030193552, -0.05036988, 0.007981144, 0.02226207, 0.015806211, 0.017608177, 0.05039826, -0.043701194, 0.005682574, 0.018941913, -0.006860236, 0.003130382, -0.032350235, 0.021793842, 0.03359884, 0.009612843, -0.02324109, -0.03229348, -0.010215864, 0.02465996, -0.0074135954, -0.0061720842, -0.026320037, -0.009960467, -0.0030789478, 0.0057748007, -0.0002054036, -0.01667172, -0.043389045, 0.036606845, 0.028618608, -0.036947373, -0.008896315, -0.01374885, -0.014380246, 0.026660565, 0.012819489, -0.031016497, -0.0003516137, 0.028207134, -0.053406265, 0.052072525, 0.018629763, 0.00061366125, 0.018885158, -0.047276746, 0.0049802335, 0.018062215, -0.045545727, -0.011230355, 0.017664932, 0.005962801, 0.0004912837, 0.015210286, 0.018998668, 0.0013656623, 0.057577744, -0.00976892, 0.006406198, -0.027951738, -0.00022701919, 0.0008291521, -0.006863783, -0.0051788753, 0.030817855, 0.026759887, -0.015834589, -0.049802333, 0.04792943, -0.06929761, -0.08439438, 0.014543417, 0.02727068, -0.015749456, 0.036266316, 0.008115936, -0.016728476, 0.03632307, 0.05320762, -0.030619213, 0.014139039, -0.02508562, 0.020006066, -0.017877761, -0.0155082485, 0.031981327, -0.037429787, 0.017310213, -0.011790809, -0.029370608, -0.027213925, -0.088310465, 0.001112926, 0.023368787, -0.010499638, -0.01123745, 0.029767891, 0.009570278, -0.004792233, 0.00085087854, 0.011251639, -0.05005773, -0.043899834, 0.011131035, 0.04398497, 0.022035051, 0.03643658, -0.057577744, -0.01324515, 0.048723996, 0.029427363, 0.01505421, -0.009712165, -0.03033544, 0.017239269, -0.013443792, -0.003336118, 0.0076548033, -0.027951738, 0.0174521, 0.03643658, -0.028292267, -0.036379825, 0.0124363955, 0.008385521, 0.03195295, -0.02868955, -0.054626495, -0.030250307, 0.023340411, 0.033655595, 0.023382977, 0.0071830293, -0.011336771, -0.042793117, -0.01984999, 0.03362722, -0.023553241, -0.0015421342, -0.014358964, -0.028320644, 0.02224788, 0.019722292, -0.004465893, -0.07798109, -0.031470537, -0.031073252, -0.015068399, -0.04702135, -0.023837015, -0.043133646, -0.003951553, -0.03371235, 0.009939184, 0.016175117, -0.008406805, -0.024262676, 0.011570884, 0.046311915, 0.04741863, -0.063111335, -0.022318825, 0.008420993, 0.0024262676, -0.018800028, 0.016515646, -0.0066438587, 0.038479753, -0.031130007, 0.0069737458, -0.07327044, -0.044666026, -0.046170026, -0.035216354, 0.01325934, -0.027313247, -0.016104173, -0.023553241, 0.030562459, 0.004100534, 0.022006672, -0.051277958, 0.019892557, -0.045659237, -0.009974656, 0.029086834, -0.021666143, 0.015323795, 0.0009958693, -0.014898134, 0.04702135, -0.046992972, 0.003297099, 0.024674147, 0.010130731, -0.011982357, -0.043020137, 0.028646983, 0.012138432, 0.0111168455, -0.02694434, 0.015423116, -0.016614966, 0.020715501, -0.024759281, -0.042878248, -0.017948706, 0.025766678, 0.024503883, 0.016302817, 0.035273105, -0.0038699678, -0.052725207, -0.016728476, 0.03740141, -0.0011466243, 0.000053235337, 0.042935006, 0.0005666612, 0.009421296, -0.00856288, -0.01975067, -0.0027845323, 0.0046184217, 0.03901892, -0.0114006195, -0.030420572, -0.009641221, 0.009187182, -0.045943007, -0.026107207, 0.012159715, 0.027199738, -0.057237215, -0.010215864, -0.021737088, 0.028661173, -0.024092412, -0.0047957804, 0.006920538, -0.014181605, 0.004983781, -0.02126886, -0.02805106, -0.057975024, 0.03345695, 0.029767891, -0.03240699, -0.013997152, -0.046794333, 0.003203099, -0.041629642, 0.0001263681, 0.05845744, 0.038025714, 0.063451864, 0.04506331, 0.012287414, 0.09546157, 0.010974959, 0.0072929915, 0.005118573, -0.034393407, -0.04875237, 0.015068399, 0.003293552, -0.0057889894, -0.007888917, -0.04103372, 0.006069216, 0.048383467, 0.041374248, 0.024177544, -0.07917294, 0.02532683, -0.016387947, 0.0019544933, -0.009846957, -0.011485752, -0.01626025, 0.01834599, 0.004966045, -0.019835802, 0.023581618, -0.008789899, -0.044268742, -0.025000488, -0.06362213, 0.027483512, -0.06651662, -0.07105701, -0.025596414, -0.05036988, -0.005533593, 0.035954162, -0.02248909, -0.017281836, 0.024361998, 0.042707987, -0.022928938, -0.015252852, -0.018019648, 0.017579798, 0.0029210984, -0.012571188, -0.013699189, 0.049121276, 0.040125642, -0.020559426, -0.012670509, 0.017934516, -0.00883956, -0.02945574, 0.010038504, 0.037543297, -0.022787051, 0.010989148, 0.017210893, 0.012266131, -0.052015774, 0.009449674, -0.018459499, 0.014742059, 0.007817973, 0.013330283, -0.012223564, 0.057804763, 0.0062252916, 0.008591257, -0.000106803214, 0.016841985, 0.055392683, 0.0024351357, 0.024886979, 0.0139474915, 0.0044552516, -0.036379825, 0.048723996, 0.04756052, -0.024603205, 0.02542615, 0.013692095, -0.011521224, -0.05760612, -0.031243516, 0.039331075, 0.04480791, 0.042736363, -0.058060158, 0.0041111754, -0.0015767192, -0.00011871951, -0.0070837084, -0.03697575, -0.033116423, -0.00017713704, -0.07883242, 0.028760493, -0.031271894, -0.012528622, 0.011726961, 0.027355812, 0.012351263, 0.011024619, -0.01702644, 0.015408928, 0.03961485, -0.028604418, -0.049149655, 0.0038061186, -0.0057570646, -0.0264903, -0.009960467, 0.024333619, 0.059706047, 0.010939487, -0.02095671, -0.024291053, 0.0041289115, 0.018686518, 0.07361098, -0.022049239, -0.008775711, -0.018402744, 0.016302817, -0.043701194, 0.00062607636, -0.008640918, 0.015238663, 0.000900539, 0.018885158, -0.008704767, -0.0074703502, 0.04296338, -0.020800633, 0.007917294, 0.015337984, 0.035755523, 0.0026905322, -0.0100314105, -0.029030079, 0.076562226, 0.040551305, 0.057662874, -0.020814821, 0.026362604, -0.003469137, -0.038593262, -0.032548875, 0.044552516, 0.032463744, 0.009825675, 0.0041892137, 0.030619213, -0.02771053, 0.00833586, 0.021240484, 0.030817855, 0.007285897, -0.0009701523, -0.007966954, -0.029739514, 0.015096776, -0.03882028, -0.010407411, 0.022645164, 0.002557513, 0.04497818, 0.01931082, 0.0013106811, 0.000026077278, 0.032123215, 0.018587196, 0.0035134768, 0.042906627, 0.020531047, 0.01953784, -0.03274752, 0.007239784, -0.021949917, -0.0028909475, -0.01712576, -0.042480968, -0.07065973, -0.0030842684, -0.0021353993, -0.05879797, 0.027625397, -0.021751277, -0.028831437, -0.07247588, 0.010563487, -0.049178034, 0.025341017, 0.021964107, -0.012322886, -0.051731996, 0.03751492, -0.009236843, 0.012379641, 0.03916081, 0.03195295, 0.03152729, 0.06651662, -0.0019527198, -0.028221324, 0.02585181, 0.02270192, -0.024333619, 0.00033454294, 0.014997455, -0.009634127, -0.026901774, -0.03110163, -0.07105701, 0.009776014, 0.012039112, -0.04069319, -0.01107428, -0.00227906, 0.0015669644, -0.014188699, 0.0021034747, 0.060160086, 0.054512985, -0.00095330324, 0.00214072, 0.012812396, -0.060500614, 0.00066642545, -0.03882028, 0.040409416, -0.024064034, -0.034705557, 0.012478961, -0.043786325, -0.015692702, -0.009854052, -0.0115425065, 0.014387341, 0.02519913, 0.04580112, 0.03368397, 0.022389768, -0.02082901, 0.006569368, 0.023141768, 0.055165663, 0.023028258, 0.05309411, 0.03762843, 0.012940094, -0.01200364, 0.01193979, 0.01156379, -0.03873515, -0.006530349, 0.0012086998, 0.03416639, -0.02387958, -0.058287177, -0.02945574, -0.0036252127, 0.0013230962, -0.018573008, -0.006821217, 0.029427363, -0.08967258, -0.041260738, -0.027228113, 0.021680333, -0.01986418, -0.013167113, -0.007204312, -0.040863454, 0.23905121, 0.039331075, 0.013862359, 0.043587685, 0.040835075, 0.07275965, -0.000003994036, -0.050795544, 0.0039621945, -0.008428087, 0.00556197, -0.051107697, -0.01538055, 0.026532868, -0.03941621, 0.045829497, -0.045857877, 0.0038770621, 0.0047283843, -0.048610486, -0.08728888, 0.06770848, 0.026348416, 0.04744701, 0.0021637767, -0.0003227929, 0.0018063989, -0.01831761, -0.02148169, -0.0067254435, 0.0062997825, -0.039785113, 0.026121397, -0.02028984, -0.009279409, -0.0012601339, 0.015721079, -0.027242303, -0.012244848, 0.041175604, -0.00047221765, -0.015323795, 0.042849872, -0.030420572, -0.014018435, -0.006204009, -0.032350235, 0.042707987, 0.049717203, -0.039643228, 0.055392683, -0.024830224, 0.028405776, -0.044552516, -0.035642013, 0.008385521, -0.06470047, -0.073837996, 0.0034921938, 0.0035968353, 0.00965541, -0.021524258, 0.011982357, 0.032917783, -0.03217997, 0.037202768, -0.0073994067, 0.053519774, -0.023042448, -0.002651513, 0.012613754, -0.011946885, -0.024404563, -0.01931082, 0.005125668, 0.04276474, -0.0017416629, 0.040182397, -0.035216354, -0.061124917, 0.0071333684, -0.007285897, 0.032350235, -0.011897225, 0.023624185, 0.034705557, -0.013528924, 0.044041723, 0.002617815, 0.007190123, 0.038422998, 0.03436503, 0.01941014, -0.020871576, 0.029143589 ]
from optimum.onnxruntime import ORTModelForSequenceClassification from transformers import AutoTokenizer model_checkpoint = "distilbert_base_uncased_squad" save_directory = "onnx/" Load a model from transformers and export it to ONNX ort_model = ORTModelForSequenceClassification.from_pretrained(model_checkpoint, export=True) tokenizer = AutoTokenizer.from_pretrained(model_checkpoint) Save the onnx model and tokenizer ort_model.save_pretrained(save_directory) tokenizer.save_pretrained(save_directory)
[ 0.04372679, 0.0021710976, -0.031901844, 0.011257806, -0.006142877, -0.05830239, 0.0043599186, -0.022203682, 0.0053985007, 0.03496442, -0.0021640083, -0.014674848, 0.037062854, -0.033801775, -0.017808318, 0.041997004, 0.037459854, -0.023252899, -0.05333988, -0.009917929, 0.013505113, -0.016305387, -0.079627, -0.027960192, -0.033518203, -0.010846627, 0.03141977, -0.009485481, 0.06255597, 0.034680847, -0.050078806, -0.002997001, -0.003456033, -0.017865032, 0.008478801, -0.005355965, -0.0146606695, -0.03887771, -0.021976825, -0.042308934, 0.015298706, -0.045428224, 0.039246354, -0.052886166, -0.026797548, 0.0010332653, -0.00298105, 0.017382959, -0.0015623041, -0.019736607, -0.010286572, 0.040012, 0.0030785277, 0.03445399, -0.037459854, 0.012108522, 0.007223995, 0.027946014, -0.021579824, -0.014377097, 0.018318746, 0.017255353, 0.0030714385, -0.031476486, 0.009648535, -0.0071212, -0.023011863, 0.014930062, 0.003619087, -0.00014754602, -0.059153106, 0.018219497, -0.0059053856, -0.05345331, 0.02536551, 0.05506967, 0.031448126, -0.020317929, 0.030795911, 0.03323463, -0.00059372874, 0.054417454, -0.025223725, 0.013476756, -0.013455489, 0.0006012611, 0.050957877, -0.014433811, -0.012158147, -0.027506478, -0.013115202, 0.02889598, -0.014930062, 0.015936743, 0.010180232, 0.031476486, -0.038168784, 0.045087937, -0.021395503, -0.04347158, 0.005646626, 0.08337015, -0.033886846, 0.015071848, 0.025053581, -0.010236947, 0.04880273, 0.0034489436, -0.009882482, -0.02261486, 0.037403136, 0.021494752, 0.0071282894, 0.00224908, 0.0058167693, 0.008301568, -0.008925427, 0.015227813, -0.050986234, -0.02201936, 0.011988004, -0.031873487, 0.0037998639, -0.02091343, 0.037006136, -0.06380369, 0.0017740969, 0.018318746, -0.015497207, -0.029831767, 0.014114793, -0.008847444, 0.03448235, 0.05841582, -0.014717383, -0.015497207, -0.005618269, 0.016929245, -0.0017173826, -0.017014315, -0.010874984, -0.011576824, 0.030739198, 0.091593735, 0.0087269265, -0.00838664, 0.018616498, -0.05274438, 0.00040431155, -0.00616769, -0.022799183, 0.000031431067, -0.00919482, 0.04072093, -0.022742469, 0.020247037, -0.028130336, 0.020998502, 0.018970963, 0.032355558, 0.010874984, -0.008244854, -0.02101268, 0.055835314, -0.003030675, 0.010477983, -0.02678337, -0.0052177235, 0.01779414, 0.0012459442, 0.013108113, 0.010775734, -0.007004227, 0.004700205, 0.052489165, 0.032355558, 0.0725377, -0.011754056, 0.005721064, 0.003810498, 0.016390458, -0.0006743695, -0.014199865, 0.018460533, -0.020261215, -0.011931289, 0.0246424, 0.015185277, 0.009414588, -0.004941241, 0.006291752, 0.0569696, -0.018304568, -0.027279621, -0.08030757, -0.005377233, 0.00069519435, 0.013682346, 0.0066036815, -0.00096325844, -0.009322427, 0.03184513, -0.029264623, -0.00043421952, -0.02879673, -0.0004193763, -0.022600682, 0.012292843, 0.019240355, 0.01566735, 0.07429585, -0.010896252, -0.02658487, -0.026202047, 0.01939632, -0.023579007, 0.022118611, 0.03615542, -0.009839946, 0.011583913, 0.054474168, -0.0016464896, 0.040182143, -0.017269531, 0.026216226, 0.015327063, 0.007571371, 0.062499255, -0.0077911387, 0.01566735, 0.031107841, 0.025918474, 0.04174179, 0.040806003, 0.018715749, -0.0018068849, 0.05243245, 0.021267895, -0.010400001, 0.022373825, 0.019353785, -0.0009659169, -0.011130199, 0.00015574302, -0.009017588, -0.024103614, -0.047158014, -0.0025291073, -0.054020453, -0.0047604637, -0.049086303, 0.05413388, -0.0068659857, -0.02991684, -0.07911657, -0.002539741, 0.026301296, 0.0023217453, -0.011761146, -0.013278256, 0.03972843, 0.023224542, -0.029023588, 0.0027665987, 0.020048536, 0.05214888, -0.016716566, -0.0046115885, -0.008620587, -0.02416033, -0.01748221, -0.0038211318, -0.06754684, -0.016248671, -0.054332383, -0.0074012275, 0.05039073, -0.06680955, 0.01838964, -0.03346149, 0.01303013, -0.008067622, 0.023621542, 0.0127465585, 0.015993457, 0.041685075, -0.065618545, 0.027393049, -0.043811865, 0.005841582, 0.006515065, -0.060854536, -0.011874575, -0.019878393, 0.008989231, 0.026712477, -0.010733197, -0.012250308, -0.0398135, 0.05770689, -0.06244254, 0.013221541, -0.0009641446, 0.026329653, 0.010485073, 0.006639128, -0.014362918, -0.034312204, 0.042053718, 0.068454266, -0.012711112, -0.003030675, 0.03536142, 0.044634223, -0.041600004, 0.037828498, 0.028045265, -0.000082966944, -0.061308254, 0.004756919, -0.024273757, 0.05385031, 0.0023004774, 0.01020859, 0.020771645, 0.069701985, -0.026641583, -0.035956923, -0.018474711, -0.013072666, -0.016829994, 0.011073484, -0.03090934, 0.027648265, 0.014192775, 0.05943668, -0.03737478, -0.009003409, -0.024940152, 0.009726518, -0.00818105, -0.03910457, 0.02051643, 0.033801775, -0.0050972058, 0.001469257, 0.06760355, -0.054389097, 0.012115611, -0.015312885, 0.022317111, 0.007720246, -0.00439182, -0.009648535, 0.012597683, 0.060911253, -0.011505932, 0.010272393, -0.0025255627, -0.01657478, 0.03760164, 0.017411318, -0.010215679, -0.0024121339, -0.06913484, -0.016985958, 0.015440492, 0.030455627, 0.0634634, -0.029860124, 0.041855216, 0.024486437, -0.01566735, 0.027364692, 0.0021214725, -0.012413361, 0.039529927, 0.037261352, 0.022473076, 0.00088306074, -0.027846765, -0.012675665, 0.004001909, 0.00007460379, 0.0031919566, -0.0021143833, -0.03819714, -0.003314247, -0.048660945, -0.012796183, 0.0015631902, -0.03788521, 0.005235447, -0.00020315271, -0.019835858, -0.034227133, 0.01303722, 0.05385031, 0.021168645, 0.016121065, 0.059153106, -0.008025086, -0.015185277, 0.032298844, -0.0144054545, -0.012073075, -0.011505932, -0.0063413773, 0.04557001, 0.023961829, -0.0036084529, -0.025734153, 0.00007947768, 0.041997004, -0.031192914, 0.0029119293, 0.0010447854, -0.017071031, -0.010251125, -0.0020789367, 0.003767962, -0.028130336, -0.056941245, 0.03788521, 0.04043736, -0.008769462, -0.005526108, -0.022671577, -0.023720792, 0.038820997, 0.026102796, -0.045116294, -0.031192914, 0.045796867, -0.07180041, 0.033121202, 0.03737478, -0.022515612, -0.01100968, -0.06629912, -0.018573962, 0.04727144, -0.02991684, -0.0155539205, 0.008315747, 0.00949966, 0.00028911044, 0.020587323, 0.029037766, 0.023678256, 0.048434086, -0.012158147, -0.0010873211, -0.017212816, -0.01736878, -0.0236499, -0.011775325, -0.012200682, 0.013668167, 0.037544925, -0.02284172, 0.00889707, 0.056459174, -0.08898488, -0.05305631, -0.0099391965, 0.037431497, 0.0002113497, 0.03626885, 0.004303204, -0.027137835, 0.047923658, 0.039246354, -0.012278665, 0.013242809, -0.0107048405, 0.016149422, -0.010144786, -0.012491344, 0.013377506, -0.028853444, 0.029831767, 0.0050936607, 0.013356239, 0.013072666, -0.06567526, -0.009187731, 0.030257126, -0.0001233981, -0.021650717, 0.008436265, 0.014065168, 0.005132652, 0.019864215, 0.02991684, -0.05163845, -0.021097751, -0.009655625, 0.052772738, 0.024543151, 0.010789912, -0.041770145, -0.019750785, 0.037261352, -0.01485917, -0.009528017, -0.005901841, -0.016844172, 0.02658487, 0.0041472395, -0.028810909, -0.035077848, -0.036098707, -0.018474711, 0.024855081, -0.04800873, -0.016191958, -0.01333497, -0.011959647, 0.03760164, -0.0015552149, -0.056544244, -0.029548196, 0.011697343, 0.05546667, 0.031107841, 0.00067348336, -0.027350513, -0.04522972, -0.013788685, 0.0270953, -0.04029557, 0.0016473758, 0.013058487, -0.0017740969, -0.018233676, 0.024812544, 0.024599865, -0.06363354, -0.03184513, -0.0036066805, -0.02019032, -0.08773716, -0.0029172462, -0.0071885483, -0.038764283, -0.035616636, 0.03584349, -0.002647853, -0.03244063, -0.001823722, 0.0035623724, -0.011683164, 0.03031384, -0.015270349, -0.01909857, 0.023153648, 0.022855898, -0.058472533, 0.02284172, -0.003204363, 0.01758146, -0.03677928, 0.016532244, -0.04588194, -0.022402182, -0.020771645, -0.00919482, 0.030739198, -0.021565646, 0.026797548, -0.028031087, 0.0054197684, 0.014306204, 0.0315332, -0.023479756, 0.028158693, -0.048122156, -0.012704022, 0.040182143, -0.03346149, 0.0133845955, -0.014703205, -0.02566326, 0.044208866, -0.04418051, 0.0066533065, 0.04091943, -0.00097212003, 0.00050466944, -0.059379965, 0.0052602594, 0.040012, -0.02889598, -0.013108113, 0.017538924, -0.013866668, 0.040267214, -0.045938652, -0.011463395, 0.00616769, 0.009847036, 0.035503205, -0.0014311521, 0.017893389, -0.008358283, -0.053510025, -0.027563192, 0.066242404, -0.0041968646, 0.03587185, 0.040465716, 0.008053443, 0.015128563, 0.026755013, 0.012200682, 0.00025144854, -0.030427268, 0.032100342, 0.012973416, -0.026528155, 0.0062492164, 0.008521337, -0.018616498, -0.045201365, -0.015950922, 0.049483303, -0.0553816, -0.009932107, -0.003395774, 0.014944241, -0.008173961, 0.027747514, 0.00072089303, 0.019608999, -0.0065540564, 0.01323572, 0.00054498983, -0.05515474, 0.012597683, 0.030483983, -0.04840573, -0.052404094, -0.02849898, 0.021905933, -0.046761014, -0.020147786, 0.04213879, 0.040182143, 0.06476783, 0.03536142, -0.01566735, 0.09374888, 0.0161636, -0.0023430132, 0.024472257, -0.033489846, -0.06380369, -0.0059231087, 0.015752422, -0.042252216, 0.00065886165, -0.019141106, 0.000169257, 0.030739198, 0.028569872, -0.044095434, -0.058642678, 0.017723246, -0.006355556, 0.012994684, 0.00828739, -0.009315338, -0.027421406, -0.0123637365, -0.013661078, -0.0329227, 0.021806682, 0.016149422, 0.018332925, -0.0011803681, -0.074409276, -0.006929789, -0.07560028, -0.047328155, -0.022118611, -0.026017725, -0.010031357, 0.022997685, -0.017964283, -0.03170334, 0.040238857, 0.05285781, -0.022146968, -0.026329653, -0.04817887, 0.015695706, 0.0027878666, -0.01708521, -0.035900205, 0.033404775, 0.035559922, -0.0064193597, 0.022558147, -0.0023128835, 0.009655625, -0.02666994, 0.018347105, 0.017865032, -0.02241636, -0.0024085892, 0.011576824, 0.024330473, -0.031760056, 0.017297888, -0.012689844, 0.0410045, -0.020431358, 0.0052389917, -0.021126108, 0.025167009, 0.010499251, -0.011101841, 0.011484663, 0.010789912, 0.057111386, -0.0107686445, 0.019211998, -0.0065434226, -0.0017687799, -0.026329653, 0.03082427, 0.054332383, -0.033518203, 0.046732657, 0.03385849, -0.035701707, -0.030767554, -0.033830132, 0.021693254, 0.08183886, 0.043896936, -0.011286163, -0.0018609408, -0.0036616225, -0.014703205, 0.0076139066, -0.041968647, -0.019835858, 0.01858814, -0.06607226, 0.022274576, 0.0019406955, -0.0062279487, 0.014674848, 0.003275256, -0.00028268577, 0.023309613, -0.02173579, 0.0030927064, 0.035304707, -0.063917115, -0.046193868, 0.0063910023, 0.0103858225, -0.022501433, -0.027804228, -0.007975461, 0.030058624, -0.027846765, -0.05699796, -0.043670077, -0.039671715, 0.0013451944, 0.060967967, 0.003096251, -0.024982687, 0.010655215, 0.009024677, -0.04687444, -0.0004001023, -0.045173008, -0.014511794, 0.015525564, 0.002516701, 0.0142424, -0.002031084, 0.045258082, -0.0055721886, -0.0017794139, 0.008471712, 0.04667594, -0.00019517724, 0.005143286, -0.0075004776, 0.04659087, -0.0016030676, 0.06488126, 0.012037628, 0.011832039, 0.030483983, -0.031277984, -0.043386508, 0.02272829, 0.035786778, 0.0075501027, 0.022076076, -0.004756919, 0.004980232, 0.011690253, 0.023111112, 0.015086027, -0.0024582143, 0.004395365, 0.023352148, 0.012626041, 0.017099388, -0.051156376, -0.0410045, 0.010442536, -0.021480573, 0.027010227, -0.0029562374, 0.019935107, 0.008173961, 0.047129657, 0.0067525567, 0.017198637, 0.042394005, 0.024344651, 0.021480573, -0.034227133, 0.04111793, -0.010896252, -0.007940014, -0.0039629177, -0.035644993, -0.07350185, -0.013973007, -0.008925427, -0.037232995, 0.0028215407, -0.022345468, -0.035786778, -0.090799734, 0.02111193, -0.048377372, 0.032412272, 0.022629041, -0.019041855, -0.025450582, 0.011973825, -0.0119242, 0.017312067, 0.0016881392, 0.03689271, 0.016900888, 0.05830239, 0.026102796, -0.027605727, -0.0015490117, 0.0075926385, -0.06340668, 0.00030661214, 0.016730744, -0.034198776, -0.0069156107, -0.011229449, -0.07009898, 0.044067077, -0.0029030677, -0.003619087, -0.014136061, -0.007287799, 0.012987595, -0.008556783, -0.012562237, 0.056600958, 0.06743341, 0.0074437633, 0.01485917, 0.0029721884, -0.044605866, -0.029831767, -0.02949148, 0.02486926, -0.015780779, -0.015086027, 0.018460533, -0.0557786, -0.012838719, -0.018106068, -0.056345742, 0.04372679, 0.011449217, 0.008322836, 0.065164834, 0.02698187, 0.0031476484, 0.014469258, 0.011874575, 0.020091072, 0.013186095, 0.0398135, 0.021409681, 0.0039168373, -0.036495708, 0.02394765, 0.03283763, -0.014050989, -0.0070184055, 0.004395365, 0.021764146, -0.03496442, -0.044379007, -0.018914249, 0.015823314, 0.016106887, -0.03848071, 0.011697343, -0.00909557, -0.08008072, -0.050957877, -0.008549694, -0.0021817316, -0.03629721, -0.030966055, -0.006032993, -0.048150513, 0.23706613, 0.055183098, 0.009145195, 0.0140439, 0.034000274, 0.06629912, 0.0024475802, -0.01759564, 0.015880028, -0.01758146, -0.025578188, -0.024188686, -0.017496388, 0.029831767, -0.042961147, 0.033404775, -0.02900941, -0.0042961147, -0.0018520792, -0.02971834, -0.048377372, 0.08030757, 0.0077840495, 0.06612898, 0.02111193, 0.008039264, 0.011966736, -0.030058624, -0.02949148, -0.03972843, 0.015993457, -0.054502524, 0.005224813, -0.011449217, -0.013370417, -0.014377097, 0.004608044, -0.006649762, 0.0019779142, 0.015483027, 0.024415543, -0.008549694, 0.03283763, -0.018970963, -0.011229449, 0.015412135, -0.041685075, 0.04069257, 0.046761014, -0.021168645, 0.046931155, -0.03487935, 0.0007474779, -0.059663534, -0.031901844, 0.008032175, -0.07917328, -0.05484281, 0.034056988, 0.0013319019, -0.0066214046, -0.024500616, -0.017226996, 0.04639237, -0.04911466, 0.011513021, -0.055409957, 0.047214728, -0.029576553, -0.015071848, -0.0056997957, -0.012455897, -0.06913484, -0.053396594, -0.015624814, 0.028782552, 0.016220314, 0.01647553, -0.039444856, -0.049086303, -0.013356239, 0.0065824133, 0.024883438, -0.017113566, 0.023295434, 0.028981052, -0.051269807, 0.025393866, 0.037544925, 0.028045265, 0.060570966, 0.052801095, 0.012342469, 0.031164555, -0.0056749834 ]
tranformers.onnx is no longer maintained, please export models with 🤗 Optimum as described above. This section will be removed in the future versions. To export a 🤗 Transformers model to ONNX with tranformers.onnx, install extra dependencies: pip install transformers[onnx] Use transformers.onnx package as a Python module to export a checkpoint using a ready-made configuration:
[ 0.036386475, -0.03293526, -0.02399484, -0.013038734, -0.012227997, -0.01570896, 0.004273105, -0.046383083, 0.015151113, 0.08485219, -0.0079883635, 0.0130908, 0.053047493, -0.03483938, -0.015694084, 0.04694837, -0.017360186, -0.02912703, -0.0621813, -0.011253625, 0.012428822, -0.015976727, -0.082888566, -0.039034385, -0.06979776, 0.007058619, 0.03254849, -0.036594737, 0.06753663, 0.01476434, -0.04251535, -0.018163485, -0.0004193147, -0.035940196, 0.010130494, -0.040879, 0.0046859113, -0.05495161, -0.01948744, -0.028279103, 0.01782134, -0.010271816, 0.051649157, -0.04159304, -0.03269725, -0.01782134, 0.003003074, 0.0059726774, 0.0041243457, -0.016899033, -0.029543556, 0.07491508, -0.0156197045, 0.0037357127, -0.025869206, -0.002344815, -0.007913983, 0.016318873, -0.0147048365, 0.02051388, 0.0523632, 0.01767258, 0.020573381, -0.04516326, 0.000800045, 0.002698118, -0.03832034, 0.0025660943, -0.021644447, -0.017508944, -0.03207246, 0.030317103, -0.03207246, -0.06283584, -0.0143552525, 0.05825406, 0.017880842, 0.009870166, -0.008590838, 0.021748578, 0.034125336, 0.037903816, -0.01749407, -0.002519607, -0.013804844, -0.029692315, 0.056885477, -0.017583324, -0.05108387, -0.034303848, 0.008747035, 0.015500697, -0.024694009, 0.015262683, -0.0033972857, 0.011751968, -0.06955975, 0.06325237, -0.020484127, -0.026806388, 0.014466821, 0.062419314, -0.0010115618, -0.0039830245, -0.020008098, -0.013834596, 0.02313204, -0.00017688386, -0.01938331, -0.029379921, 0.043110386, 0.0046784733, -0.0095577715, -0.00305514, 0.023072535, 0.000010597632, -0.0016121767, 0.020082477, -0.028680753, -0.008866042, 0.025229542, -0.01709242, 0.026970023, -0.021227922, 0.010137932, -0.012451136, -0.0069842394, 0.02268576, -0.02273039, -0.041533537, 0.032012958, 0.002523326, 0.026761761, 0.030971643, 0.0077577867, -0.022046097, 0.009617276, 0.016229616, 0.016229616, -0.026999775, 0.007653655, -0.007378451, 0.033232782, 0.10847513, -0.0032299317, -0.025765074, 0.0025865487, -0.01971058, -0.03141792, 0.01832712, -0.02832373, -0.00956521, 0.005061528, 0.013737902, -0.043824427, 0.0027371673, -0.018431252, 0.04126577, 0.008427203, 0.0066197794, -0.028279103, 0.0022388243, -0.020141982, 0.06152676, -0.0111420555, 0.014139552, -0.03061462, 0.00097158283, 0.01378253, -0.01875852, -0.015753588, 0.023057658, 0.007936298, 0.024113849, 0.051797915, 0.017613076, 0.06854819, -0.001851121, 0.031715438, 0.0070549, 0.025646068, 0.0015192023, 0.030644372, 0.023846082, -0.0137155885, -0.006526805, 0.013194932, -0.0066718454, -0.01039826, 0.0054111117, -0.01025694, 0.054207813, -0.020127105, -0.0089032315, -0.06813166, -0.0027687785, -0.036713745, 0.0017358327, 0.00023661993, -0.029751819, 0.0085982755, 0.023727074, -0.015441193, -0.01305361, -0.042961627, 0.013611456, 0.019532068, 0.027178286, -0.010480078, 0.0069916775, 0.03189395, -0.015218055, -0.010978421, -0.034750123, 0.029112155, 0.011513954, -0.0019915123, 0.023593191, -0.0045408714, -0.0036483167, 0.04480624, 0.011848661, 0.03930215, 0.023979966, 0.0005941066, -0.010420574, 0.014414756, 0.032280724, -0.012183369, 0.020171734, 0.013946164, 0.04403269, 0.027327046, 0.02872538, 0.037665803, 0.03058487, 0.039569918, 0.02879976, 0.021674199, 0.044449218, -0.0018483317, 0.009922232, 0.01749407, -0.001839964, 0.018713893, -0.042961627, -0.011573457, -0.005541276, -0.021391558, 0.036594737, -0.051232632, 0.046859115, -0.006530524, -0.022447746, -0.053493768, 0.0046821926, 0.020751894, 0.000010888178, 0.0026739447, -0.02985595, 0.06200279, 0.004087156, -0.007378451, -0.040016197, 0.0016372798, 0.06747712, 0.029112155, 0.009304881, -0.008977612, -0.04944752, -0.017137047, -0.016571762, -0.092766166, -0.027877454, -0.06188378, -0.002276014, 0.04923926, -0.06783415, 0.04450872, -0.008025553, -0.008553647, 0.0038454225, 0.017196551, 0.029692315, 0.030331979, 0.016244493, -0.05941438, 0.029811323, -0.008895794, 0.0035925321, 0.0071367174, -0.05266072, 0.02444112, -0.018118856, -0.018892404, 0.008866042, -0.028160095, -0.026017966, 0.008107371, 0.038082328, -0.046055816, 0.017003164, -0.02399484, 0.04189056, -0.010606524, 0.03745754, 0.009446202, -0.049298763, 0.032816254, 0.062597826, 0.019011412, 0.016348625, 0.03207246, 0.017940346, -0.051321886, 0.059116863, 0.03843935, 0.030525366, -0.06366889, -0.019413061, -0.025170038, 0.038528606, -0.009691655, -0.01611061, 0.001727465, 0.067953154, -0.02708903, -0.063371375, 0.0036092675, -0.028740257, 0.012592457, -0.0002352253, -0.043110386, 0.024887396, 0.0015666191, 0.043586414, -0.051797915, -0.016988289, 0.018713893, 0.020573381, -0.0022351053, -0.026464242, 0.014213931, 0.055397887, 0.009870166, 0.032727, 0.03814183, -0.034393102, 0.03796332, 0.009230502, 0.0036408787, -0.003276419, 0.019442813, -0.011231312, 0.032816254, 0.04192031, -0.033976577, 0.013775092, -0.023265922, -0.019413061, 0.025006402, 0.017806463, -0.008999925, -0.0012449276, -0.05028057, 0.00052298116, -0.016051106, 0.022968404, 0.048644222, -0.06515648, 0.04766241, 0.021555193, -0.028204724, 0.009632152, -0.0036557547, -0.0589086, 0.01971058, 0.013559391, 0.042604603, 0.01651226, -0.02723779, 0.009483392, -0.012354443, 0.0057867286, -0.0011993701, -0.008248691, -0.030525366, -0.0098181, -0.039629422, 0.0038063733, 0.003482822, 0.002264857, -0.0010069131, 0.026687382, -0.041950062, -0.05203593, 0.007683407, 0.037338533, 0.03665424, 0.0069544874, 0.06509698, -0.010933793, -0.021034535, 0.00665325, -0.029558431, 0.016884157, -0.01570896, 0.021064287, 0.03463112, -0.014481697, -0.005597061, -0.013596581, 0.0033731123, 0.027981585, -0.03159643, -0.01741969, -0.016229616, -0.010963545, 0.016140362, -0.012012296, -0.009803224, -0.01777671, -0.03582119, 0.04305088, 0.03876662, -0.034393102, 0.006411517, -0.003436335, -0.009773472, 0.018594887, 0.008337947, -0.0409385, -0.06116974, 0.022879148, -0.06354988, 0.0075644, 0.019011412, -0.02610722, 0.0011129039, -0.062062293, 0.016527135, 0.034155086, -0.021986594, -0.023325425, 0.024634505, 0.0010673464, 0.0022258079, 0.0027539027, -0.0063148234, 0.02625598, 0.03421459, -0.037874065, 0.02502128, -0.046026062, -0.03257824, -0.0050912797, -0.0067685386, -0.020022973, 0.0130908, 0.013886661, -0.036624487, -0.002484277, 0.06235981, -0.06462095, -0.047513653, 0.035434414, 0.028859263, 0.011573457, 0.034601364, 0.012064362, -0.014823844, 0.048227698, 0.04138478, -0.044925246, 0.019651076, -0.014667646, 0.0027687785, -0.012837909, 0.0060359, 0.025869206, -0.029424548, 0.04727564, -0.01916017, 0.011380071, 0.016021354, -0.066525064, -0.01010818, 0.027535308, 0.026389863, -0.027505556, 0.022165105, 0.01178172, -0.0021328335, 0.023117162, 0.006206973, -0.049358267, -0.045936808, 0.016646143, 0.06105073, 0.0351964, 0.016437879, -0.041206267, -0.03552367, 0.021540316, 0.0017070106, 0.0026274575, -0.0098478515, 0.02011223, 0.019576697, -0.010539582, -0.0053144186, -0.0030848917, -0.018312244, 0.0020789083, 0.023280798, -0.047692165, -0.020350244, -0.0040164953, 0.004585499, 0.037070766, -0.00035771914, -0.042931873, -0.025898958, 0.007326385, 0.030331979, 0.008367699, 0.020424623, -0.0046040937, -0.04876323, -0.03257824, 0.039837684, -0.048941743, -0.0028487365, 0.013432946, -0.033173278, 0.013737902, 0.0070809326, 0.006188378, -0.063609384, -0.011982544, -0.020379996, -0.01141726, -0.05173841, -0.014065172, -0.018356873, -0.027609687, -0.039034385, 0.035136897, -0.033649307, -0.03126916, -0.027475804, 0.018312244, 0.024084097, 0.020127105, -0.023191541, -0.024098972, 0.0019375872, 0.008300757, -0.03320303, 0.0074082026, -0.0018148609, 0.045550033, -0.012815596, -0.025913833, -0.029870825, -0.054207813, -0.028531993, -0.041950062, 0.00781729, -0.06557301, 0.04156329, -0.01916017, 0.008412327, -0.003626003, 0.029216286, -0.033470795, -0.020499002, -0.06932174, -0.03713027, 0.050518587, -0.02232874, 0.019234551, -0.016155237, -0.029766694, 0.027282417, -0.053255755, 0.0011138337, 0.018490754, 0.022165105, -0.016229616, -0.06390691, 0.020394871, 0.03650548, -0.004537152, -0.012242873, 0.00618094, -0.033798065, 0.029513804, -0.034303848, -0.02283452, 0.009654465, 0.013068486, 0.013574267, 0.015322186, 0.026776636, -0.024455994, -0.036743496, -0.042783115, 0.07164238, -0.015061858, 0.009751159, 0.023682447, 0.01734531, 0.030153468, 0.014132113, 0.018282492, -0.032994766, -0.017300682, 0.029573306, -0.035910446, -0.020960156, -0.0045036813, 0.01530731, -0.03745754, -0.049060747, -0.013574267, 0.03320303, -0.06438293, -0.026449366, -0.0027297293, 0.0049983053, -0.025051031, 0.002686961, 0.003938397, -0.005950364, -0.00847183, -0.008218939, -0.026776636, -0.06354988, 0.0156048285, 0.04043272, -0.036713745, -0.025259294, -0.043497156, 0.0009855289, -0.048852485, -0.02003785, 0.03236998, -0.00949083, 0.062121797, 0.027803075, -0.005240039, 0.10615449, 0.01956182, -0.011030487, -0.0053218566, -0.012101552, -0.059949912, -0.019413061, 0.0130759245, 0.009312319, -0.00030053986, -0.030465862, 0.011848661, 0.030971643, 0.013723026, -0.02585433, -0.05956314, 0.026196476, -0.02192709, 0.0067462246, -0.009899917, -0.0015247806, 0.00825613, 0.017761836, -0.022046097, -0.012770968, 0.004585499, -0.007218535, 0.00592805, -0.004418145, -0.041533537, -0.006846637, -0.06116974, -0.014913099, -0.017717207, -0.02756506, 0.0053330134, 0.010718092, -0.006214411, -0.041444283, 0.03061462, 0.03912364, -0.01588747, -0.013618895, -0.034125336, -0.019918842, 0.00061316637, -0.014630456, -0.046383083, 0.030644372, 0.028829511, 0.007493739, -0.008650341, -0.0150097925, -0.012354443, -0.01611061, 0.014005668, 0.054892104, -0.0049573965, 0.008880918, -0.004079718, -0.001959901, -0.02240312, 0.015649457, -0.03159643, 0.022894025, 0.0110528, 0.029498927, -0.015768463, 0.036624487, 0.004083437, 0.011952793, 0.00007391467, -0.0051321886, 0.057034235, 0.01686928, 0.008955297, -0.015842844, -0.020975031, -0.0012756092, -0.0022165105, 0.030287351, -0.023950214, 0.03763605, 0.053226, 0.0020510159, -0.0048272326, -0.033441044, 0.0086280275, 0.023429558, 0.059176367, 0.009319757, 0.019680828, -0.0007814501, -0.023622943, -0.014065172, -0.01930893, -0.028189847, 0.025616316, -0.054237563, 0.037576545, -0.01913042, -0.009535458, 0.0033954263, 0.008605713, 0.011804034, 0.041474033, -0.037338533, -0.011439574, 0.016021354, -0.07729522, -0.022343615, -0.006370608, 0.009007363, -0.027431177, -0.028606374, 0.00916356, 0.0834836, -0.029900577, -0.033619553, -0.022298988, -0.029469175, -0.0012505061, 0.0474244, -0.011380071, -0.025408052, 0.008419764, -0.005894579, -0.017984973, -0.0050987178, -0.025631191, 0.009260253, 0.010673465, -0.004232196, 0.0079586115, 0.018594887, 0.03010884, -0.0054892106, 0.011499078, 0.022641134, 0.016527135, -0.012793282, 0.000036172863, -0.011915603, 0.048227698, 0.019546945, 0.05694498, 0.018490754, 0.034958385, 0.010204874, -0.038528606, -0.028457614, 0.034244344, 0.04141453, 0.005221444, 0.03094189, 0.009788348, 0.0089032315, 0.018431252, 0.014578391, 0.028993146, 0.019413061, -0.005916893, 0.0156048285, -0.006902422, 0.011506516, -0.055695403, -0.023072535, -0.0023150633, 0.015545325, 0.04926901, 0.0021216765, 0.012808158, 0.019026287, 0.0637879, 0.030093964, 0.022298988, 0.05120288, -0.00026125816, 0.029588183, -0.024262607, 0.029439423, -0.012562705, 0.002268576, 0.024902271, -0.030912139, -0.057659023, 0.035107147, -0.017300682, -0.013239559, 0.0146453325, -0.03382782, -0.036564983, -0.08461417, 0.02454525, -0.032429483, 0.026374986, -0.00092463073, -0.030882386, -0.018208113, 0.026702257, -0.026851015, 0.015076734, 0.040045947, 0.02905265, 0.026970023, 0.06831017, 0.0027018369, -0.00490905, 0.0192048, 0.015842844, -0.055011112, 0.026598126, 0.048495464, -0.025184914, 0.016661018, -0.014057734, -0.06438293, 0.033560053, 0.0003851466, -0.007218535, -0.007047462, 0.009520582, -0.0076053087, -0.037070766, 0.000019887812, 0.05905736, 0.041652545, 0.0010757141, 0.018937033, 0.0055226814, -0.047067378, -0.042664107, -0.032459233, 0.022715513, -0.030733628, -0.011275939, 0.0050094626, -0.077592745, -0.029365044, -0.0066086226, -0.036237713, 0.041444283, 0.029097278, 0.042604603, 0.027698943, 0.030019585, -0.041087262, 0.0009920372, 0.032340225, 0.061288744, 0.023251045, 0.04480624, 0.022745265, -0.005280948, -0.04453847, 0.0075867134, 0.036803, -0.017330434, -0.008479268, -0.02240312, 0.0037245557, -0.026702257, -0.0719994, 0.008330509, -0.02313204, -0.0031834445, -0.03144767, -0.0016558747, -0.020573381, -0.055368133, -0.016616391, -0.04367567, 0.0072966334, -0.031864196, -0.032965016, 0.009282568, -0.07051181, 0.26538622, 0.037665803, -0.008151998, 0.035969947, 0.045520283, 0.06985727, -0.0066011846, 0.01021975, 0.025095658, -0.022343615, -0.021793207, -0.022373367, -0.0026572093, 0.03781456, -0.034244344, 0.035791438, -0.045996312, 0.026538622, 0.03302452, -0.062121797, -0.03269725, 0.03463112, -0.02061801, 0.048525214, 0.031477425, 0.0077652247, 0.00538136, -0.02250725, 0.0034251781, -0.010152808, 0.0014169303, -0.0010840818, 0.026241103, 0.003261543, 0.013224683, 0.0024415085, 0.005756977, -0.022239484, -0.008828852, 0.023027908, -0.009356947, -0.03302452, 0.03814183, -0.042574853, -0.005433426, 0.026226228, -0.03469062, 0.04388393, 0.042128574, -0.035136897, 0.059682146, -0.04141453, 0.0007981855, -0.050667346, -0.024024593, 0.0076462175, -0.054564834, -0.049536776, 0.026538622, 0.0105172675, 0.036892254, -0.027327046, -0.013388318, 0.02512541, -0.03832034, 0.0376063, -0.02749068, 0.056558207, -0.021584945, -0.042991377, -0.0070660566, 0.016705645, -0.036207963, -0.058313563, 0.044092193, 0.026761761, 0.0051470646, 0.0011249906, -0.048495464, -0.04647234, -0.0059838346, -0.02046925, 0.024976652, -0.01578334, 0.044270705, 0.049001243, -0.009468516, 0.023399806, 0.0133808805, 0.004049966, 0.035374913, 0.06354988, 0.035731934, 0.00850902, 0.02792208 ]
python -m transformers.onnx --model=distilbert/distilbert-base-uncased onnx/ This exports an ONNX graph of the checkpoint defined by the --model argument. Pass any checkpoint on the 🤗 Hub or one that's stored locally. The resulting model.onnx file can then be run on one of the many accelerators that support the ONNX standard. For example, load and run the model with ONNX Runtime as follows: thon
[ 0.035532612, 0.008670777, -0.031372983, 0.03764172, -0.01950925, -0.066905595, -0.014163246, -0.041596297, 0.0042694793, 0.03690939, -0.008407139, 0.008326583, 0.040658917, -0.04399834, -0.035151802, 0.022907257, 0.013335714, -0.0038593747, -0.07610365, -0.021091081, 0.030347722, -0.01659458, -0.088348195, -0.01770772, -0.03313057, 0.009688715, 0.032574, -0.04051245, 0.076572336, 0.014185216, -0.045960978, -0.010699329, -0.011541508, -0.022775438, 0.006715459, -0.013306421, 0.018791568, -0.038491223, -0.05281558, -0.029132055, 0.01608195, -0.0017557592, 0.043236714, -0.0673157, -0.059992407, 0.008055621, -0.008956386, 0.021969875, 0.022277454, -0.017986005, -0.02211634, 0.051936787, 0.004364682, 0.00063621096, -0.051936787, 0.021808762, -0.0015772539, 0.005884265, -0.011336456, -0.010384427, 0.036294233, 0.023185542, 0.019787535, -0.031548742, 0.036030594, -0.004342712, -0.02727194, -0.00043436274, -0.0201537, -0.022585033, -0.045638755, 0.018117825, -0.032310363, -0.06157424, 0.009937707, 0.035298266, 0.029381046, 0.01183444, 0.024327975, 0.005023778, 0.01839611, 0.0390185, 0.016272355, -0.0072427355, -0.0372902, -0.0024057014, 0.05955301, -0.00827532, -0.011482921, -0.052317597, -0.008736687, 0.021794116, -0.00069937436, -0.0014344498, 0.0085755745, 0.016990038, -0.035825543, 0.056740865, -0.018996619, -0.03523968, 0.0044928393, 0.06719852, -0.0079018315, -0.0009025957, -0.015320326, -0.020886028, 0.04522865, -0.00069113565, -0.011995552, -0.0064811134, 0.02353706, 0.0027151105, -0.00045747688, 0.009835181, -0.0043244036, -0.020080466, 0.010633419, 0.0024221789, -0.018103177, 0.0043683434, 0.029893678, -0.012039492, 0.017473374, -0.008019005, 0.050442833, -0.062511615, 0.007477081, 0.009879121, -0.009981647, -0.019025913, 0.011827116, -0.027711336, 0.039164964, 0.06169141, -0.008656131, -0.009718008, -0.019582482, 0.018586515, -0.012786468, -0.015613258, -0.0073049837, -0.02714012, 0.024679493, 0.09485128, 0.0073232916, -0.011526861, 0.0010206838, -0.03764172, 0.013181925, 0.009527602, -0.026539609, 0.003370545, -0.011446306, 0.010618773, -0.035386145, 0.02709618, -0.049710505, 0.042621557, -0.013899608, 0.037758894, 0.018293584, 0.006711797, -0.028883062, 0.047952916, -0.004218216, 0.044349857, -0.024884546, -0.0009483663, 0.01357006, -0.017165797, 0.007660163, 0.01710721, 0.008202087, 0.004467208, 0.045462996, 0.021032494, 0.056740865, -0.0015388067, 0.013577383, 0.01860116, 0.022511799, -0.0062540914, 0.011373072, 0.0338629, 0.007726073, -0.027198706, 0.012083432, 0.018659748, 0.001323685, 0.006979097, -0.014492795, 0.07006925, -0.03717303, -0.0000060753287, -0.09719473, -0.0041706148, -0.014668553, 0.014880929, 0.006894879, -0.022775438, 0.018703688, 0.04235792, -0.03655787, -0.002969595, -0.031460863, 0.0034089924, -0.0152470935, 0.0031691545, -0.004540441, 0.00767481, 0.04514077, -0.017531961, -0.009139468, -0.01581831, 0.019099144, -0.01412663, 0.016360234, -0.0010527231, -0.013723849, 0.012493536, 0.07463899, -0.0017502668, 0.008700071, 0.004364682, -0.0010161067, -0.006942481, 0.035034627, 0.026686076, -0.009761948, -0.020388044, 0.029937617, 0.028839123, 0.030084083, 0.022570385, 0.02979115, 0.008070268, 0.05884997, 0.043207422, -0.0029238244, 0.031578034, 0.009403107, -0.014734463, 0.03245683, 0.00009560329, 0.00001411021, -0.031021465, -0.006883894, 0.004573396, -0.06298031, 0.031021465, -0.061632823, 0.042211454, -0.016711751, -0.02911741, -0.05838128, -0.023434535, 0.016052656, -0.00440496, -0.004719862, 0.0025100582, 0.03755384, 0.03263259, -0.013672586, -0.021618357, -0.0070852847, 0.068018734, -0.015583965, 0.003061136, 0.0067447517, -0.03210531, -0.026290618, -0.015715783, -0.06139848, -0.017839538, -0.055539846, 0.012588738, 0.04042457, -0.0510287, 0.04432056, -0.019611776, -0.0014893744, -0.013079399, 0.026437083, 0.009761948, 0.021325426, 0.004829711, -0.07381878, 0.0033668834, -0.037143737, 0.021340072, 0.023390595, -0.06362476, -0.0037147398, -0.01835217, 0.015334973, -0.0010701161, -0.0108018555, -0.0019058867, -0.042299334, 0.026041625, -0.029175995, -0.007308645, 0.0067374283, 0.00767481, -0.025602229, 0.017531961, -0.01817641, -0.052610528, 0.03978012, 0.07100664, 0.021574417, 0.021017848, -0.00072317506, 0.032134604, -0.03099217, 0.050354954, 0.03359926, 0.0038117734, -0.072588466, -0.028868416, -0.036206353, 0.034536645, -0.0136872325, -0.015671844, 0.00023709158, 0.061164133, -0.022130989, -0.05111658, -0.008084914, -0.02353706, -0.009139468, -0.009117498, -0.015232447, 0.0368801, 0.0006233952, 0.050091315, -0.035151802, -0.006649549, 0.0026089228, 0.02919064, 0.003317451, 0.006759398, 0.015276386, 0.026070919, -0.012017522, 0.009505632, 0.063683346, -0.052581236, 0.045287237, -0.015115274, 0.0034767329, 0.023683526, -0.00885386, -0.016535994, 0.04326601, 0.036499288, -0.027359819, 0.042035695, -0.0070596533, -0.004104705, 0.02640779, 0.011226607, 0.007879862, 0.033247747, -0.05217113, 0.008751334, -0.017429434, 0.02366888, 0.060578268, -0.041859936, 0.04493572, 0.026158798, 0.016770339, -0.005056733, -0.029483574, -0.023771405, 0.0143609755, 0.022643618, 0.04681048, -0.008326583, -0.02636385, 0.009864474, 0.0001515006, -0.004774786, 0.008289967, -0.01830823, -0.009754625, 0.034243714, -0.02880983, 0.027828509, -0.00829729, -0.033452798, 0.0039619007, -0.0038959912, -0.029527513, -0.047308464, 0.010106143, 0.055188328, 0.018278936, -0.010172052, 0.056125708, -0.0083412295, 0.00064948446, 0.02743305, 0.0044598845, -0.026158798, -0.014243803, -0.0041120285, 0.056711573, 0.02224816, 0.012603385, -0.019157732, 0.019201672, 0.018044591, -0.010655389, -0.021486538, -0.028868416, -0.023361301, 0.016741045, 0.009571542, 0.03052348, -0.022028461, -0.07053795, 0.020095112, 0.04004376, -0.026232032, 0.002760881, -0.020344105, -0.012610708, 0.016667813, 0.016272355, -0.037700307, -0.025792634, 0.010486954, -0.07340868, 0.02598304, 0.021720884, -0.018762274, -0.0029494558, -0.04818726, 0.012808437, 0.035737664, -0.034243714, -0.008267997, -0.012068785, 0.042182162, 0.007931125, 0.018527929, -0.0073123067, 0.021618357, 0.04367611, -0.0010426537, 0.008407139, -0.026539609, -0.034507353, -0.010157405, -0.007828599, -0.017502667, 0.022365334, 0.024371915, -0.025924454, -0.02242392, 0.06585104, -0.08389563, -0.039516483, 0.005389943, 0.044613495, 0.0011543338, 0.022687558, 0.02636385, -0.021252193, 0.033423502, 0.048509486, -0.039604362, 0.029981557, -0.019025913, 0.030464893, -0.029424986, 0.003196617, 0.016667813, -0.03957507, 0.01775166, 0.006649549, 0.021164313, -0.026920421, -0.05814694, -0.015891543, 0.046224616, 0.006257753, -0.024386562, 0.02923458, 0.014280419, 0.0043280656, 0.017136503, -0.0049761767, -0.053782254, -0.02941034, 0.0101207895, 0.06532376, 0.012266514, 0.008678101, -0.03099217, -0.02400575, 0.05097011, -0.0377296, -0.0062870462, -0.015876897, -0.038813446, 0.021574417, -0.01612589, -0.044525616, -0.021706237, -0.0065726545, -0.00029796644, 0.009285934, -0.03875486, -0.02010976, 0.008084914, 0.0257194, 0.04681048, -0.03377502, -0.062687375, -0.028927002, -0.021662297, 0.03802253, 0.009439724, -0.0062101516, -0.036850803, -0.039633654, -0.030435601, 0.047162, -0.05020849, -0.023419887, 0.012434949, -0.03975083, -0.021720884, 0.015291033, 0.010457661, -0.0656167, -0.022672912, -0.008019005, -0.032603294, -0.037758894, -0.012522829, -0.02714012, -0.031665914, -0.026715368, 0.031519447, 0.0039142994, -0.0071402094, -0.0032643573, 0.02010976, 0.0060343924, 0.03254471, -0.021574417, -0.038051825, -0.019758241, 0.025587581, -0.025748694, 0.01357006, -0.024518382, 0.016155181, -0.027813863, 0.02996691, -0.060636856, -0.032603294, -0.018996619, -0.034653816, 0.007425818, -0.03313057, 0.03198814, -0.011321809, -0.003266188, -0.009469016, 0.053108513, -0.008458402, 0.023419887, -0.049446866, -0.01697539, 0.056184296, -0.038637687, 0.036938682, -0.006536038, -0.041772056, 0.02923458, -0.04098114, 0.013196572, 0.01830823, 0.01826429, -0.018337524, -0.06245303, 0.00044992473, 0.030377014, -0.009249317, -0.009080882, 0.011285192, -0.013357684, -0.0035810897, -0.061281305, 0.0041523064, 0.019816827, 0.013936224, 0.013950871, 0.0073892013, 0.0441448, 0.0029091777, -0.05170244, -0.0643278, 0.038344756, -0.009132145, 0.01174656, 0.012998843, 0.016067302, 0.0130208125, -0.007879862, -0.011739237, -0.00818744, -0.015056688, 0.056447934, 0.002462457, -0.039194256, 0.013789758, -0.009110175, -0.03670434, -0.052962046, -0.009974323, 0.04763069, -0.03626494, -0.008765981, 0.005745122, -0.006111287, -0.010084173, 0.011570801, -0.00031238416, 0.0063236626, -0.003257034, -0.0024862576, -0.010457661, -0.06936622, 0.0069644507, 0.041889228, -0.03617706, -0.030552773, -0.07141674, -0.018483989, -0.044906426, 0.007557637, 0.024386562, 0.011585448, 0.023419887, 0.04493572, -0.014426885, 0.07452182, 0.030435601, 0.032427534, 0.0042145546, -0.041479126, -0.045462996, 0.005356988, -0.015525378, -0.038520515, -0.000013716869, -0.011526861, 0.017356202, 0.034448765, 0.033071987, -0.027623456, -0.05190749, 0.012596061, -0.0081288535, 0.026993653, -0.015657198, 0.008326583, -0.028106794, 0.0076674866, -0.011512214, -0.03966295, -0.0071878107, 0.006693489, 0.015056688, -0.0372902, -0.06585104, -0.015627904, -0.08536029, -0.014888252, -0.02774063, -0.03263259, -0.030435601, 0.01105817, -0.004661275, -0.008451079, 0.03274976, 0.037846774, -0.017209737, 0.006752075, -0.03245683, 0.005906235, 0.015847603, -0.012888993, -0.055627726, 0.013665263, 0.03641141, -0.00021889777, 0.014492795, 0.02542647, -0.015759723, -0.008861183, 0.033364918, 0.050647885, 0.022130989, -0.002771866, 0.013064752, 0.013269804, -0.042328626, 0.024606261, -0.030171962, 0.00206883, 0.011636711, 0.00021237547, -0.02040269, 0.022555739, 0.02409363, 0.015730431, -0.015056688, 0.013423594, 0.053225685, -0.01701933, 0.0116806505, 0.026671428, -0.018410755, -0.033804316, 0.020241579, 0.057766125, -0.036675047, 0.030289134, 0.02242392, 0.001510429, -0.023829991, -0.026656782, 0.037436668, 0.057473194, 0.06327324, 0.017414788, -0.00382642, -0.0071621793, 0.0024203479, 0.009820534, -0.017898126, -0.018586515, 0.021061787, -0.050091315, 0.040014468, 0.0063346475, -0.015422853, -0.0022812055, 0.0022043108, 0.0033101279, 0.0057304758, -0.04042457, 0.04376399, 0.034331594, -0.026232032, -0.049505454, 0.0012861531, -0.005023778, -0.020549158, -0.041508418, 0.003910638, 0.073174335, -0.013540766, -0.031314395, -0.019714301, -0.01855722, 0.016960744, 0.039545774, -0.02538253, -0.0035005335, -0.008553605, 0.017033977, -0.023258775, -0.018850153, -0.035620492, 0.0016230246, 0.0025173815, 0.006422527, 0.005426559, -0.012222574, 0.014697847, -0.020344105, 0.0006165296, 0.024606261, 0.01851328, 0.011446306, 0.027389111, -0.0031984476, 0.050472125, 0.008956386, 0.056008536, -0.016814278, 0.03368714, 0.019333491, -0.049066056, -0.038081117, 0.002956779, 0.04039528, -0.024298683, 0.013057429, 0.009549572, 0.00025723063, -0.023141602, 0.035854835, -0.013628646, 0.007019375, 0.0056096413, 0.0103478115, -0.032134604, 0.0055583785, -0.037758894, -0.010765239, 0.019816827, 0.017326908, -0.001437196, 0.017575901, -0.013064752, 0.006422527, 0.046019565, 0.013072076, -0.012493536, 0.053108513, 0.011666004, 0.017971357, -0.029146701, 0.025309296, -0.02349312, 0.020417338, 0.005880603, -0.021003202, -0.03412654, 0.0060929786, -0.003659815, -0.03280835, 0.0060563623, -0.0136872325, -0.028883062, -0.09051589, 0.01882086, -0.06139848, 0.018894093, 0.022350688, 0.0036579843, -0.039545774, 0.014221833, 0.019919354, 0.032046724, 0.056477226, 0.033833608, 0.026305264, 0.070303604, 0.069717735, -0.04660543, 0.005657243, 0.021384012, -0.033364918, 0.015203154, 0.0103478115, -0.012808437, 0.0051153195, -0.016565286, -0.046195325, 0.036850803, -0.0061991666, 0.007865216, -0.030377014, 0.041010436, -0.009102852, -0.034448765, -0.0136799095, 0.081317835, 0.073877364, 0.004833373, 0.017400142, 0.008216733, -0.03310128, -0.003504195, -0.015437499, 0.020710269, -0.015525378, -0.04016093, -0.0005927289, -0.061749995, -0.020285519, -0.0013090384, -0.07077229, 0.040102348, 0.035210386, 0.034478057, 0.054133773, 0.018981973, -0.017561253, 0.016565286, 0.03781748, 0.029337106, 0.027535576, 0.04136195, 0.03468311, 0.012244544, -0.020139052, 0.016272355, 0.040073052, -0.02640779, -0.021486538, 0.0038813446, 0.0048846356, -0.028004268, -0.03948719, -0.026993653, -0.0030739517, -0.0013603015, -0.03272047, 0.00038904988, -0.026744662, -0.06678842, -0.068780355, -0.028106794, 0.03348209, -0.023991104, -0.031109344, 0.0010710314, -0.0548661, 0.25613946, 0.04695695, 0.005305725, 0.027506284, 0.056155, 0.099713944, 0.0069937436, -0.01001094, 0.02062239, -0.0083558755, -0.020798149, -0.046400376, -0.029483574, 0.010933675, -0.010267255, 0.026539609, -0.018542575, 0.005016455, 0.00934452, -0.049446866, -0.045199357, 0.07036219, 0.008414462, 0.034067955, 0.01675569, 0.013555413, -0.022819377, -0.035620492, -0.018923387, -0.019714301, 0.04300237, -0.02164765, -0.0011103941, -0.022585033, 0.014807696, 0.0032552031, 0.009395784, -0.010875088, -0.0054888073, 0.015232447, 0.0044928393, -0.0004700638, 0.0165067, -0.023507766, 0.0012074277, -0.002605261, -0.021486538, 0.028370433, 0.05457317, -0.046488255, 0.053284273, -0.031578034, 0.0026418776, -0.042416506, -0.042885195, -0.01114605, -0.08032186, -0.053342856, 0.042416506, 0.004653952, 0.02006582, -0.024078984, -0.008487695, 0.06702276, -0.038374048, 0.010831148, -0.049856972, 0.04883171, -0.00502744, -0.0045550875, -0.003921623, 0.009403107, -0.055832777, -0.03893062, -0.0074624345, 0.05196608, 0.00024601683, 0.018234996, -0.033980075, -0.038579103, -0.010860442, 0.014309712, 0.011182667, -0.013196572, 0.02547041, 0.0134675335, -0.02349312, 0.034448765, 0.013899608, -0.0010948321, 0.056770157, 0.069893494, 0.007019375, 0.019875415, 0.0057744156 ]
The process is identical for TensorFlow checkpoints on the Hub. For instance, here's how you would export a pure TensorFlow checkpoint from the Keras organization: optimum-cli export onnx --model keras-io/transformers-qa distilbert_base_cased_squad_onnx/ Exporting a 🤗 Transformers model to ONNX with optimum.onnxruntime Alternative to CLI, you can export a 🤗 Transformers model to ONNX programmatically like so: thon
[ 0.016806686, -0.0060933176, -0.019252595, -0.016205937, -0.008303218, -0.025002627, -0.0009252617, -0.013988884, -0.008360432, 0.07580888, 0.009654905, -0.004569988, 0.02164129, -0.030094694, -0.0038440824, -0.005324501, -0.032697942, -0.037933048, -0.06156253, 0.0029644133, 0.011736073, 0.014525267, -0.07580888, -0.045399506, -0.038076084, 0.007931326, 0.02192736, -0.011285511, 0.07374917, 0.017221488, -0.005549782, 0.020654343, 0.0017915212, -0.03678876, 0.0099552795, -0.047430612, 0.007981388, -0.03175391, -0.016878203, -0.020239541, 0.0047237515, 0.016964024, 0.014060401, -0.05292318, -0.067856096, -0.014425143, -0.013402438, 0.009383136, -0.040336046, 0.0007156251, -0.015104562, 0.008961182, 0.028249536, 0.012980483, -0.03810469, -0.034357157, -0.013924518, -0.015161776, -0.05401025, 0.026547411, 0.009340226, 0.038905688, -0.0029572614, -0.05898789, -0.0074450043, 0.0067727366, 0.008496316, 0.022656843, -0.025231484, -0.008310369, -0.04805997, 0.016849596, -0.06871431, -0.06562474, -0.03244048, 0.044026364, 0.027105251, 0.00137046, -0.0027695273, 0.059159532, 0.014160527, 0.01815122, -0.014904312, 0.01975322, -0.0033202143, -0.02955116, 0.013359527, -0.038962904, -0.02721968, -0.045199256, -0.014890009, 0.018494505, -0.054153286, 0.011800439, 0.025446037, 0.032869585, -0.06510981, 0.07174667, -0.023772521, -0.026704751, 0.038362153, 0.056184392, -0.017536167, 0.007516522, 0.00068523, 0.0070945667, 0.030380767, 0.016520614, -0.02561768, 0.011650251, 0.0002836128, -0.002678342, 0.013395286, 0.01622024, -0.009218646, 0.029293695, 0.005853733, 0.005092068, -0.05455379, -0.019624487, 0.024630735, -0.020911807, 0.0289075, -0.027734607, 0.022056093, -0.048603505, -0.0129447235, 0.026590323, -0.027992072, -0.010691913, 0.02766309, 0.029179268, 0.05163586, 0.033155657, 0.016921114, 0.0055354787, 0.000025198853, -0.015061651, -0.009848002, -0.035158157, 0.0061004693, -0.016048597, 0.024559217, 0.10075429, -0.009168583, -0.02043979, -0.0114786085, -0.00044273995, -0.020811683, 0.005857309, -0.053152036, -0.028678643, 0.016163025, 0.011392787, -0.035930548, -0.030266337, -0.007284089, 0.022313558, -0.0100482525, 0.0050884923, 0.00818879, -0.00457714, -0.04585722, 0.034671836, 0.0036456205, 0.03741812, -0.023915555, -0.031668086, 0.035129547, -0.03521537, -0.0106418505, -0.0010414781, 0.043025114, 0.014525267, 0.039964154, 0.010591788, 0.06911481, 0.022756968, -0.019324113, 0.0040371804, -0.0057106973, -0.016606435, -0.024516305, 0.023586575, 0.021569772, -0.009969583, 0.021955969, -0.013509715, -0.020825986, -0.010799189, 0.018980827, 0.017364524, -0.018322863, 0.017922364, -0.047316182, 0.01196493, -0.008167334, 0.02413011, -0.005338805, -0.020783076, 0.008060058, 0.07271931, -0.011621645, -0.0046808408, -0.020625737, 0.029722802, 0.027276894, 0.044913184, -0.0032111497, -0.0022259918, -0.001273017, 0.020253845, -0.031610873, 0.0063221743, 0.010527422, -0.012415492, -0.02417302, 0.026590323, 0.009812243, 0.0068764375, 0.0019703156, 0.013516867, 0.044512685, 0.0016887144, -0.029694196, -0.014446598, 0.01742174, 0.024659341, 0.00076702854, 0.05758614, 0.047230363, 0.025074145, 0.015834043, 0.074035235, 0.0035419196, 0.020654343, 0.036931798, 0.030609623, 0.022385076, 0.003718926, -0.0096406005, 0.014718366, 0.014417991, 0.019696005, 0.00040429912, -0.0051814653, -0.013302313, -0.0060861656, -0.050062466, 0.019223988, -0.04276765, 0.061505318, 0.014732669, -0.023171771, -0.049404506, -0.009933824, 0.024215931, 0.0038369305, 0.0064544827, -0.027591571, 0.0409654, 0.008889664, -0.011893412, -0.013745723, 0.021369522, 0.017493257, 0.015919864, -0.0074307006, -0.037675582, -0.0558125, -0.005678514, -0.03761837, -0.06968696, 0.0088252975, -0.084219374, -0.03787583, 0.017049845, -0.07168946, 0.014675455, -0.0020668646, 0.025889447, -0.028564215, 0.013552626, 0.03919176, 0.053180646, 0.01710706, -0.034071084, 0.019824738, -0.0216842, 0.048174396, -0.0066940673, -0.012694412, 0.010191288, -0.027734607, 0.00871087, 0.005485416, -0.01799388, -0.026719054, -0.018794881, 0.021598378, -0.022628235, 0.03181112, 0.032612123, 0.035387013, -0.024630735, 0.03381362, 0.03530119, -0.031353407, 0.052579895, 0.03183973, -0.018451596, 0.03464323, 0.0074020936, 0.015433543, -0.047402006, 0.026819179, 0.040564902, 0.014003187, -0.031982765, -0.030409373, -0.039535046, 0.014789883, -0.030981516, -0.041222867, 0.019495755, 0.059445605, -0.033928048, -0.06419439, 0.01919538, -0.049776398, -0.019710308, -0.024301752, 0.0043268274, 0.025946662, -0.013001938, 0.024487698, -0.073177025, -0.024072895, -0.007098143, 0.0077525307, -0.0134453485, -0.02043979, -0.0008667065, 0.039964154, 0.029408123, 0.018694757, 0.044426866, -0.039735295, 0.012401189, -0.0063686613, 0.010691913, 0.00770962, -0.016892508, -0.008446254, 0.009461806, 0.010620395, -0.049604755, -0.002249235, 0.020239541, -0.002320753, 0.04148033, 0.04059351, 0.0060217995, -0.014232044, -0.034071084, -0.024473395, -0.003234393, 0.034185514, 0.059617247, -0.021812933, 0.033498943, 0.024230234, -0.034872085, 0.005134979, 0.012458403, -0.07329145, 0.013888759, 0.028392572, 0.07289095, -0.010870707, -0.025031233, 0.026890697, -0.018036792, 0.023486448, 0.03979251, 0.020926112, -0.0075880396, -0.03484348, -0.031696692, 0.0041265776, 0.0039620865, 0.009533324, -0.0060361032, 0.030209124, -0.02392986, -0.043053724, 0.0036170133, -0.0009789, 0.023214681, 0.024444789, 0.05601275, -0.0397639, 0.013767179, 0.008467709, -0.0010575696, -0.018022489, -0.017135667, 0.05401025, 0.032097194, -0.008882512, -0.0047523584, -0.021569772, -0.026590323, 0.009554779, -0.017922364, 0.008653655, -0.027377019, 0.005285166, 0.022270646, -0.001988195, 0.0031968462, -0.020554218, -0.030094694, 0.03510094, 0.019567274, -0.049118433, 0.009311619, 0.0030967211, -0.011421395, 0.022442289, 0.0014956163, -0.023743913, -0.028163714, 0.00660467, -0.048775148, 0.012494162, 0.045599755, -0.009783637, 0.030209124, -0.033155657, 0.0027337684, -0.0074593076, -0.012844599, 0.007033777, 0.036188014, -0.02043979, -0.032383263, 0.015247597, 0.039163154, -0.014525267, 0.037933048, -0.020611433, 0.03472905, -0.05146422, -0.025789322, -0.017178578, -0.012179484, 0.00021779409, 0.045914434, 0.012229546, -0.04405497, -0.0013445348, 0.04228133, -0.040650725, -0.07254767, 0.0139459735, 0.005485416, -0.0076524056, 0.012637197, 0.017822238, 0.018251345, 0.030380767, 0.046229113, -0.020311058, 0.003073478, -0.0146325445, -0.00899694, -0.030523801, -0.011628796, 0.04448408, -0.044627115, 0.016735168, 0.0048560593, -0.047516435, 0.018809184, -0.06779888, 0.011800439, -0.0043911934, 0.0026372194, 0.014646848, 0.02630425, -0.027520053, 0.020239541, -0.03472905, 0.01975322, -0.029465338, -0.029007625, -0.022470897, 0.053838607, 0.013509715, 0.027119555, -0.023658091, -0.035158157, 0.028850285, -0.0089540295, 0.0008211139, -0.03464323, -0.004627202, 0.011142475, -0.014117616, -0.007859807, 0.018194132, -0.016449096, -0.006493817, 0.0070194732, -0.017278703, -0.022313558, -0.005846581, -0.02179863, 0.04851768, -0.021913057, -0.04605747, -0.030037481, 0.023343414, -0.0048417556, 0.020339666, 0.07123174, -0.004873939, -0.0058644605, -0.013788634, 0.050777648, -0.01710706, -0.030952908, -0.027577268, -0.03183973, 0.009576235, 0.023658091, -0.022885699, -0.07483624, -0.0014929343, -0.031382017, 0.008374736, -0.03530119, -0.02268545, -0.02762018, -0.014525267, -0.021984575, 0.009097066, 0.0017503984, -0.018022489, -0.024931109, -0.031954158, 0.020682951, 0.07483624, -0.05349532, -0.0052386797, 0.0105488775, -0.018337166, 0.0072018434, 0.029493945, 0.014003187, 0.048031364, -0.021226486, 0.0017468225, -0.05355254, -0.047287576, -0.04974779, -0.017135667, 0.016792381, -0.04648658, -0.019009434, -0.0070409286, 0.033556156, 0.01092077, 0.0433684, -0.05183611, -0.018208435, -0.07311981, -0.028235232, 0.008195941, -0.012429795, 0.026733357, 0.013252251, -0.013953125, 0.05349532, -0.050749037, 0.0069372277, 0.027405625, 0.014089009, 0.008102968, -0.073177025, 0.027591571, 0.0017915212, 0.015104562, -0.0074307006, -0.021112058, 0.0014527056, 0.019252595, -0.009468958, -0.046200506, -0.031982765, 0.027233982, 0.04974779, 0.009740726, 0.010777734, 0.0044519836, -0.054353535, -0.06247796, 0.033184264, 0.019810434, 0.021226486, 0.045828614, 0.007580888, 0.021140665, 0.027419928, -0.000654388, 0.0125728315, -0.002190233, 0.05689957, -0.033498943, -0.027849035, -0.0055748136, 0.01870906, -0.048660718, -0.041337296, 0.014532419, 0.0106060915, -0.03810469, -0.04159476, -0.028878892, 0.005488992, -0.011492913, -0.013116366, 0.002519215, -0.031067338, 0.014990133, 0.007838352, -0.02417302, -0.044312436, 0.048918184, 0.029050535, -0.016019989, -0.016778078, -0.063908316, 0.014661151, -0.06373667, -0.010091163, 0.048288826, 0.005935978, 0.06551032, 0.035043728, 0.014518116, 0.114829, -0.006493817, -0.025932359, -0.009819396, -0.035387013, -0.06419439, 0.01999638, 0.0105131185, -0.01300909, 0.007981388, -0.02766309, -0.01650631, 0.01706415, 0.044712935, 0.027377019, -0.09669208, 0.040021367, -0.02332911, -0.026905, -0.00014594103, -0.0010209167, -0.0095476275, 0.014961526, -0.01437508, -0.021584075, -0.0049454565, -0.010556029, -0.005002671, -0.028578518, -0.061219245, 0.027605874, -0.06819938, -0.03123898, -0.0019506483, -0.03352755, 0.00091632194, 0.0098623065, -0.007480763, 0.0050491574, 0.002942958, 0.033041228, -0.02995166, -0.0119220195, 0.01313067, -0.006479514, -0.012222394, 0.005235104, -0.03779001, 0.018422987, 0.03461462, -0.025846537, -0.034471586, -0.013438197, 0.007162509, -0.013888759, 0.018966524, 0.03721787, -0.0059610098, 0.01208651, -0.010870707, 0.015934167, -0.04139451, 0.0005846581, -0.03364198, 0.0043590106, 0.03930619, 0.042939294, 0.026232732, 0.0485749, 0.0062256255, 0.01212942, 0.016048597, 0.020125112, 0.045142043, 0.006840679, 0.014282107, -0.00022975096, 0.0071088704, -0.03761837, 0.05280875, 0.033956658, -0.029122053, 0.034957904, 0.044798758, -0.014518116, -0.024187325, 0.0052136485, 0.027734607, 0.047030114, 0.05938839, -0.053666964, 0.0044269525, 0.019138167, -0.005521175, 0.004652234, -0.021298004, -0.01930981, 0.005199345, -0.06551032, 0.012057903, -0.054267716, -0.004770238, 0.033956658, 0.014947223, 0.031467836, -0.0052529834, 0.016620738, 0.0020489853, 0.004280341, -0.049118433, -0.043797508, -0.007838352, -0.016677953, -0.012150876, -0.0365313, 0.046915684, 0.0875378, 0.02557477, -0.0024459092, -0.03284098, 0.0011246175, 0.0013561565, 0.07832631, -0.044827364, -0.020554218, -0.024273146, -0.00023824371, -0.037246477, 0.02119788, -0.021340914, 0.015991382, -0.016649347, 0.02064004, -0.007062384, 0.021727111, 0.026146911, -0.01682099, 0.009304468, 0.0006177351, 0.027820429, -0.0000857655, -0.003983542, 0.00008118389, 0.052694324, 0.044512685, 0.0674556, -0.0016154086, 0.06058989, 0.007888415, -0.03919176, -0.022857092, 0.035816118, 0.020568522, 0.0014142647, 0.012901813, -0.0019041618, 0.0020400456, 0.009940975, 0.0012551376, 0.026547411, 0.025059842, -0.011364181, 0.00063606154, -0.032469086, 0.0139459735, -0.010556029, -0.0095476275, 0.011621645, 0.014089009, 0.07083124, 0.02188445, 0.027977768, -0.0051635858, 0.057643358, 0.010205592, 0.004934729, 0.028735857, -0.002449485, 0.0075665843, -0.013395286, 0.0022277797, -0.036073584, 0.011607341, 0.010348627, -0.0007469141, -0.07752531, 0.017493257, -0.0058966437, -0.04883236, 0.011128171, -0.033155657, -0.007802593, -0.06579638, 0.018680451, -0.010584636, -0.010098315, -0.013588384, -0.02228495, -0.019367022, 0.016306061, -0.036845975, 0.025589073, 0.023586575, 0.050806254, 0.034271333, 0.096634865, 0.006697643, 0.005725001, 0.03344173, 0.0011138899, 0.005167162, -0.02866434, 0.01895222, -0.023028735, 0.004770238, -0.02641868, -0.07512231, 0.0052422555, 0.009833699, -0.059045106, -0.013338072, 0.0059252507, -0.004605747, -0.007802593, -0.0054639606, 0.09097066, 0.049776398, -0.0069729867, 0.00883245, 0.02497402, -0.053009003, -0.0054746885, -0.02819232, 0.043711685, -0.019510059, -0.040021367, 0.016606435, -0.06682624, -0.010312868, -0.017178578, 0.0013811877, 0.029751409, 0.023944164, 0.051120933, 0.011600189, 0.03192555, -0.030352158, -0.01694972, 0.042538796, 0.048231613, 0.0128517505, 0.047659468, 0.02526009, -0.030981516, -0.0061362283, 0.009540476, 0.017965274, -0.040679332, -0.0022617509, -0.0034471585, 0.036188014, -0.035129547, -0.04597165, -0.023271896, -0.006168411, 0.02546034, -0.0134525, -0.027863339, 0.0028285293, -0.094689585, -0.030895695, -0.03641687, 0.0020096505, -0.015748221, -0.025231484, 0.011950626, -0.04837465, 0.24327499, 0.03907733, 0.0053209253, 0.028435482, 0.03650269, 0.060761534, 0.0045306534, -0.030323552, 0.019009434, -0.00770962, -0.012966179, -0.026475893, 0.021398129, 0.041537546, -0.058043856, 0.035930548, -0.040850975, 0.021626987, -0.0022706904, -0.025045538, -0.040135797, 0.024630735, 0.021855842, 0.033184264, 0.028435482, 0.0078312, -0.0042946446, -0.027548661, -0.015204687, -0.0139459735, 0.016120115, -0.004870363, 0.021770021, 0.013459652, 0.013187884, 0.011578734, 0.01477558, -0.036474083, -0.001765596, 0.03718926, -0.0040014214, -0.05921675, 0.017564774, -0.018437292, -0.015934167, 0.01694972, -0.0070445044, 0.054067466, 0.061390888, -0.069858596, 0.011821894, -0.027262589, 0.012243849, -0.062992886, -0.00883245, 0.014024643, -0.05360975, -0.035701692, -0.012708715, 0.0044627115, 0.009898065, -0.01273017, 0.013409589, 0.008346128, -0.0026658264, 0.04208108, 0.014153375, 0.037246477, -0.053981643, -0.033498943, -0.011671707, 0.018294256, -0.02417302, -0.02417302, 0.041852225, 0.050892074, 0.0005001777, 0.015991382, -0.011514368, -0.05223661, 0.03284098, -0.0043196757, 0.029293695, -0.034700442, 0.032669336, 0.0289075, 0.011929171, 0.05094929, -0.019381328, 0.009762181, 0.006232777, 0.05014829, 0.0075880396, -0.020210933, 0.014661151 ]
from transformers import AutoTokenizer from onnxruntime import InferenceSession tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased") session = InferenceSession("onnx/model.onnx") ONNX Runtime expects NumPy arrays as input inputs = tokenizer("Using DistilBERT with ONNX Runtime!", return_tensors="np") outputs = session.run(output_names=["last_hidden_state"], input_feed=dict(inputs))
[ 0.009952175, -0.03636626, -0.020536935, 0.022522956, -0.02394995, -0.055785142, -0.012732605, -0.02940783, 0.0014067653, 0.047723364, 0.02359688, 0.014277289, 0.03436553, -0.044339772, -0.044810534, 0.0087017175, 0.0048105856, -0.0036814958, -0.08397194, -0.0032622244, 0.04442804, -0.022302287, -0.066553794, -0.0017754666, -0.02256709, -0.0018995929, 0.005395359, -0.032335375, 0.04987121, 0.027245274, -0.055667453, -0.024626669, 0.010136066, -0.027171718, 0.0225818, 0.0026811291, 0.022464111, -0.05231328, -0.006502382, -0.05878624, 0.012754672, 0.012144155, 0.0021165842, -0.06620072, -0.058344904, -0.019874929, -0.023170253, 0.041044448, 0.021331344, -0.05010659, -0.026495, 0.045045912, 0.0072011673, 0.012563426, -0.029201875, 0.0019878605, -0.0066494946, 0.012953275, -0.029569656, 0.0044097034, 0.055843987, 0.02150788, 0.030805402, -0.047958747, 0.011474792, 0.027848437, -0.0077601955, -0.00335417, -0.023523323, -0.010356735, -0.029819747, 0.0022103686, -0.055490915, -0.07902895, -0.020066174, 0.02267007, 0.029378409, 0.021963928, -0.019830793, 0.005707973, 0.02868698, 0.03595435, -0.015638081, -0.032335375, 0.017388722, -0.049694676, 0.01909523, -0.035424743, -0.0142625775, -0.025435789, 0.0004086975, 0.030628867, -0.028436888, 0.019610126, 0.018153708, 0.014475891, -0.059727762, 0.050253704, -0.009437281, -0.0018067281, 0.033659387, 0.06861337, -0.009165122, -0.005391681, 0.00375873, -0.017521124, 0.033394586, -0.0005236293, -0.023361498, -0.02278776, 0.02071347, -0.007282079, -0.013475524, 0.013372546, -0.024920894, 0.012901785, -0.017712371, 0.007006243, -0.039720435, 0.009584393, 0.011548348, -0.021360766, 0.018227266, -0.03345343, 0.03021695, -0.028069105, 0.011496859, 0.028039683, -0.018712737, -0.025362233, 0.01144537, -0.012710539, 0.01884514, 0.010327312, 0.0014757244, -0.0030783336, -0.010967253, 0.007311502, -0.009768284, -0.054549396, 0.020007329, -0.010798073, 0.047164336, 0.09268101, 0.012070598, 0.013740327, 0.018786294, 0.012364823, -0.010776007, 0.010658316, -0.03030522, -0.0051048114, 0.010606826, 0.026303753, -0.016388357, -0.009569682, -0.031099629, 0.00851047, -0.014483247, 0.034512643, 0.02499445, 0.012445736, -0.006038977, 0.03969101, 0.02324381, 0.03333574, -0.0047480627, -0.023096696, 0.027054029, -0.03368881, -0.013093032, 0.012636982, 0.020742893, 0.011754306, 0.048812, 0.003048911, 0.04928276, 0.0065281265, 0.03736663, 0.04245673, 0.0023905816, -0.0007861336, 0.01255607, 0.033629965, 0.0007056813, -0.012967986, 0.028378043, 0.0030194884, -0.026318464, 0.0016531792, 0.00335417, 0.05263693, 0.003795508, -0.017727083, -0.06390576, -0.027407099, -0.036601644, 0.0011244928, 0.035130516, -0.0073409243, 0.013070964, 0.04869431, -0.029702056, 0.018138997, -0.060227945, 0.01393893, 0.02105183, 0.04122098, -0.004564172, 0.009209256, 0.029569656, -0.022346422, -0.012460447, -0.03227653, 0.01001102, -0.040779643, -0.0041522565, 0.019683681, 0.016064709, -0.018447934, 0.025053294, 0.027892571, 0.032188263, -0.0071202554, 0.008245667, -0.014247866, 0.012570782, 0.033218052, -0.0026756125, 0.0057925633, 0.030864248, 0.031982303, 0.035542432, 0.046428774, 0.03492456, 0.019257054, 0.03913198, 0.015255588, 0.028554577, 0.022419978, 0.023420345, -0.035454165, -0.031335007, 0.015726348, 0.024538402, -0.0071312888, -0.009547615, -0.016609026, -0.036425106, -0.012813518, -0.04257442, 0.063964605, -0.014711271, -0.025435789, -0.053137112, -0.0073666694, 0.03530705, 0.0064803152, -0.00030801725, -0.01093783, 0.052607507, 0.017741794, -0.0060720774, -0.036748756, 0.027480654, 0.070437565, -0.0023593202, 0.015652793, -0.013828595, -0.048517775, -0.019183498, -0.038043346, -0.07761667, -0.03157039, -0.069672585, 0.0010628894, 0.046605308, -0.0682603, 0.013291634, -0.0042956914, -0.0056859064, 0.0015704283, 0.035101093, 0.037543166, 0.01301212, 0.007344602, -0.048870843, 0.024920894, -0.055079002, 0.02973148, 0.008024999, -0.046664152, -0.030805402, -0.027318832, -0.0060720774, 0.008856186, -0.006281713, -0.040014658, -0.040544264, 0.011327679, -0.034306686, 0.014954007, 0.0076498613, 0.027039317, -0.02939312, 0.052225012, -0.00015941041, -0.030864248, 0.035159938, 0.080500074, 0.009032721, 0.048782576, 0.04154463, 0.0044060256, -0.036895867, 0.060786974, 0.01884514, -0.0033431365, -0.048458926, 0.000190442, -0.06561227, 0.024406, 0.011864641, -0.031276163, 0.029304853, 0.05613821, -0.02164028, -0.049930055, 0.012636982, -0.048047014, 0.00006390209, 0.01012871, -0.021610858, 0.04119156, 0.026656823, 0.03271787, -0.07273252, -0.028495733, -0.0212725, 0.02418533, 0.016976807, -0.037454896, -0.025524056, 0.03077598, -0.016491335, 0.02083116, 0.040661953, -0.045663785, 0.00015814617, -0.0010821979, 0.035571855, 0.009760928, -0.005571894, -0.0071165776, 0.037807968, 0.028966494, -0.0386318, -0.0023335754, -0.0030397165, -0.00032042988, 0.030570023, -0.012401602, 0.014490603, -0.0042478796, -0.07179101, -0.018653892, -0.021140097, 0.007271046, 0.06496497, -0.042633265, 0.036189727, 0.0066789174, -0.027259987, 0.0014003292, -0.021346055, -0.05719742, 0.010709805, 0.0122397775, 0.059286423, 0.0034074984, -0.05996314, 0.030113973, -0.03157039, 0.015696926, 0.0036502343, -0.014100754, -0.026745092, -0.02728941, -0.03251191, 0.018830428, 0.009996309, -0.036631066, -0.007951442, 0.0029606433, -0.049694676, -0.012681116, 0.03854353, 0.04707607, 0.03577781, -0.0027197462, 0.039396785, 0.0146671375, -0.004722318, 0.032659024, -0.0073335688, 0.003515994, -0.02428831, 0.043692477, 0.044222083, 0.00077280146, 0.020080885, -0.014189022, -0.0020926783, 0.008981232, -0.016873829, -0.0100036645, -0.024979739, -0.00068085606, 0.031982303, -0.013747683, 0.0025303387, -0.009694728, -0.04719376, 0.030128684, 0.015814617, -0.026642112, 0.023332076, -0.0020503835, -0.013703549, 0.052460395, -0.0069915317, -0.023317365, -0.027230563, -0.0003270959, -0.07502748, 0.02567117, 0.013527014, -0.031599812, -0.013401968, -0.026745092, 0.036454532, 0.025494633, -0.067848384, -0.016152976, -0.0061824117, 0.013983063, -0.019345323, 0.0112541225, 0.002627801, -0.007436548, 0.03180577, -0.032659024, -0.0033799147, -0.059904296, -0.0042515574, -0.0010748423, 0.017212188, -0.031335007, 0.008356002, 0.007693995, -0.031776346, -0.013188655, 0.03474802, -0.056873776, -0.05705031, 0.021816816, 0.020286843, 0.0025781502, 0.009349013, 0.010731872, 0.0005971857, 0.036954712, 0.0478999, -0.03692529, -0.0030047772, -0.00014113626, 0.033806503, -0.009584393, -0.015535102, 0.020669335, -0.0326296, 0.07655746, 0.024273599, -0.035159938, -0.024155907, -0.05881566, -0.026436156, 0.019301187, 0.007296791, 0.0010141582, 0.019713104, -0.021390188, -0.0021276176, -0.0018444257, 0.010614183, -0.03727836, -0.059315845, 0.010776007, 0.07502748, 0.027980838, 0.028304486, -0.019301187, -0.025877126, 0.03492456, -0.029952148, -0.009532904, -0.02083116, 0.0019896994, 0.009393147, 0.015535102, -0.025891839, 0.009054787, -0.03957332, -0.02859871, -0.01440969, -0.055020154, 0.002346448, -0.023155542, 0.009738862, 0.04572263, -0.00059488707, -0.027510077, -0.014792183, 0.0019602769, 0.015027564, 0.021978639, 0.0131003875, -0.058138944, -0.0194483, 0.006542838, 0.04454573, -0.04004408, -0.0020742894, -0.006333202, -0.022979006, 0.000756711, 0.012011753, 0.017785927, -0.05678551, -0.02141961, 0.004144901, -0.00925339, -0.02696576, -0.012107376, -0.018021308, -0.04636993, -0.00810591, 0.031099629, -0.03136443, -0.025965394, -0.019933773, -0.0075689494, 0.011415946, 0.0377197, -0.032070573, -0.025068007, -0.012026465, 0.012482514, -0.017403435, 0.0013276923, -0.0018159226, 0.03180577, -0.046340507, 0.021007696, -0.04501649, -0.037866812, -0.00024595406, -0.011577771, 0.036042616, -0.03874949, 0.031217318, 0.017874194, 0.013549081, -0.034659754, 0.038484685, -0.010106644, -0.04151521, -0.054814197, -0.010614183, 0.04166232, -0.006675239, 0.014100754, 0.007716062, -0.042280193, 0.038131617, -0.04442804, 0.039720435, 0.017506413, 0.039161403, -0.01607942, -0.0712614, -0.008054421, 0.03992639, -0.01162926, 0.008620805, 0.03148212, -0.020801738, 0.0368076, -0.030099262, -0.016579604, 0.009334302, 0.00079808646, 0.026892204, 0.011724884, 0.04707607, -0.009312235, -0.04236846, -0.053460762, 0.051312916, -0.027230563, 0.008458981, 0.010930475, 0.006193445, 0.01243838, 0.0063479138, 0.007094511, -0.023920527, -0.0104964925, 0.056108788, -0.040132347, -0.033953615, 0.004284658, 0.021169519, -0.0072636902, -0.05122465, -0.020772316, 0.02939312, -0.024406, -0.026553845, -0.023891104, 0.008782629, -0.004865753, -0.012901785, -0.008584027, -0.008054421, 0.008819407, 0.0046561174, -0.03286498, -0.03254133, 0.048458926, 0.060904663, -0.031629235, -0.008576672, -0.06990796, -0.008598738, -0.06743647, 0.0056013167, 0.013056253, 0.012011753, 0.039985236, 0.02581828, -0.009415214, 0.10945186, 0.006255968, 0.012592848, 0.006601683, -0.030364064, -0.064082295, -0.005818308, 0.012769383, -0.012614915, 0.023229098, -0.015755773, -0.0019345322, 0.04339825, 0.019124653, -0.006241257, -0.10545039, 0.03842584, -0.02081645, 0.008400136, -0.012475158, -0.004645084, -0.008834119, 0.0033210695, -0.021890372, -0.003032361, -0.0035380607, -0.0025707947, 0.025700592, -0.0063074576, -0.04178001, -0.01063625, -0.03992639, -0.006785574, -0.02162557, -0.020125018, -0.0023538035, 0.013725616, 0.0035987447, -0.009120989, 0.02243469, 0.035277627, -0.010371447, -0.009680017, -0.017388722, -0.0030599444, -0.0069363643, -0.020522224, -0.06920182, 0.039249673, 0.018521491, -0.0008054421, 0.023332076, -0.021316633, -0.010327312, -0.017653525, 0.007576305, 0.054755352, 0.023655724, -0.007050377, 0.009209256, 0.023891104, -0.03021695, 0.03424784, -0.034394953, -0.0068223523, 0.0036502343, 0.027348254, -0.001029789, 0.008319224, 0.022346422, 0.0073372466, -0.0173593, 0.025509344, 0.032247107, -0.015432124, 0.0032475132, 0.002138651, -0.027215851, -0.00520779, 0.042721532, 0.0052041123, -0.03298267, 0.041956548, 0.021581436, -0.008481048, -0.0065759383, -0.010864274, 0.018080153, 0.06290539, 0.03830815, 0.013497592, 0.016520757, 0.013446102, -0.017874194, 0.008944453, -0.021301921, 0.004023533, 0.02904005, -0.051842522, 0.01656489, -0.00011723045, -0.016814983, 0.012784095, 0.013755038, 0.03507167, 0.018550914, 0.015476258, -0.008414847, 0.061493114, -0.067613006, -0.0132475, -0.021331344, -0.027539501, -0.009937464, -0.037072405, 0.0214049, 0.081441596, 0.0056197057, -0.0193159, -0.029246008, -0.037072405, -0.005285024, 0.054696508, -0.009260746, -0.004317758, -0.01619711, 0.013902152, -0.017432857, -0.0051783677, -0.013835951, 0.019521857, 0.0029974217, 0.028848803, 0.0012973503, 0.009474059, 0.042280193, -0.025774147, 0.016035287, 0.029069472, 0.03148212, -0.017300455, 0.024406, 0.00014768737, 0.041103292, 0.00645457, 0.05575572, -0.021846239, 0.037543166, 0.005285024, -0.033276897, -0.033159208, 0.042633265, 0.027598346, -0.02024271, 0.0365428, 0.021360766, 0.014939296, -0.0046414062, 0.023861682, 0.0057631405, 0.014998142, -0.014645071, 0.0004151337, -0.009451992, 0.019139364, -0.029187163, -0.012703183, -0.015608659, -0.044604573, 0.05749165, 0.024479555, -0.020154443, 0.00012447115, 0.04313345, 0.0047811633, 0.0022765691, 0.044133816, 0.02177268, 0.029510811, -0.0255829, 0.037778545, -0.021198941, 0.018918695, -0.0070356657, -0.028363332, -0.036837023, 0.02509743, -0.032129418, -0.021743258, 0.0044170595, -0.025847703, -0.009400503, -0.06843683, 0.011666038, -0.034424376, 0.010393513, 0.00839278, -0.004961376, -0.016638448, 0.026333176, 0.009819774, 0.018344956, 0.04710549, 0.042191926, 0.005490982, 0.0796174, 0.011864641, -0.02442071, 0.047311448, 0.0013451619, -0.020860583, 0.007863174, 0.01712392, -0.013343123, 0.0141743105, -0.002081645, -0.042486154, 0.026818648, 0.012445736, 0.0028503088, -0.031629235, 0.014645071, -0.026421443, -0.057579916, -0.008863541, 0.089974135, 0.0796174, 0.0030433943, 0.024553113, -0.009974242, -0.037101828, -0.02477378, -0.018330244, 0.04475169, -0.0036042614, -0.046605308, 0.00948877, -0.080264695, -0.027333543, -0.014063976, -0.033012092, 0.031276163, 0.054784775, 0.028510444, 0.046458196, 0.0353659, -0.034218416, -0.001290914, 0.034571487, 0.037454896, -0.013041542, 0.030687712, 0.052695774, -0.011901419, -0.010915764, -0.00004367409, 0.05457882, -0.0193159, 0.00775284, -0.0068113185, 0.0033008414, -0.038131617, -0.03783739, -0.003593228, 0.026141929, 0.0012936725, -0.020051463, -0.017403435, -0.03021695, -0.07132024, -0.05499073, -0.03518936, 0.009562327, -0.017962463, -0.04075022, 0.01360057, -0.06949604, 0.2598599, 0.059257, 0.011062876, -0.010305245, 0.060786974, 0.061493114, -0.0100036645, -0.009900685, 0.018447934, -0.024567824, -0.0005484546, -0.024965027, -0.0051563005, 0.05587341, -0.019065809, 0.02728941, -0.048900265, -0.025038583, 0.017844772, -0.07114371, -0.044987068, 0.0451636, -0.0016283538, 0.01440969, -0.008687005, 0.031099629, 0.0016963935, -0.032776713, 0.025509344, -0.0012100021, 0.025597611, -0.03239422, 0.012453091, -0.009429925, -0.0101801995, 0.0001838909, 0.011438014, -0.012938563, 0.0062927464, -0.015056986, 0.03330632, -0.012850296, 0.031305585, -0.041485786, -0.010518559, 0.036601644, -0.032659024, 0.038602374, 0.06831914, -0.057109155, 0.025715303, -0.026568556, 0.028333908, -0.048223548, -0.007841107, 0.034659754, -0.077145904, -0.044516306, 0.018153708, 0.012232422, 0.025244541, -0.014998142, -0.017638814, 0.008304513, -0.032335375, 0.033747658, -0.044104394, 0.02325852, -0.02743652, -0.031187896, 0.013924219, -0.007451259, -0.06061044, -0.042074237, 0.039426208, 0.02061049, -0.010577404, 0.0010941508, -0.026200775, -0.04501649, 0.013850662, -0.01574106, -0.007296791, -0.035895504, 0.04813528, 0.023979373, -0.016535468, 0.016579604, -0.0070540546, 0.016035287, 0.038337573, 0.040279463, 0.025788859, 0.03969101, 0.014689204 ]
The required output names (like ["last_hidden_state"]) can be obtained by taking a look at the ONNX configuration of each model. For example, for DistilBERT we have: thon from transformers.models.distilbert import DistilBertConfig, DistilBertOnnxConfig config = DistilBertConfig() onnx_config = DistilBertOnnxConfig(config) print(list(onnx_config.outputs.keys())) ["last_hidden_state"] The process is identical for TensorFlow checkpoints on the Hub. For example, export a pure TensorFlow checkpoint like so:
[ 0.03623696, 0.01115467, -0.06582443, -0.015603965, 0.023301177, -0.02202995, -0.00439691, -0.014416555, 0.012237309, 0.039673466, 0.0028462918, -0.00051992846, 0.02944777, -0.03808094, -0.0069987345, 0.043892264, 0.033806264, -0.01306151, -0.066383205, -0.008339809, 0.009338631, -0.012307156, -0.081246786, -0.026863407, -0.014374646, -0.023021786, 0.039198503, -0.015282666, 0.08934911, 0.03475619, -0.034392983, -0.01369014, -0.015562057, -0.023287207, -0.019110318, -0.02792509, -0.01843978, -0.05777798, -0.03123587, -0.056073695, -0.0074248053, -0.050960846, 0.04841839, -0.04143363, -0.037941243, -0.008039464, -0.0024132363, 0.0032060072, 0.012998648, -0.03478413, -0.024125379, 0.01877505, 0.00416292, 0.041964468, -0.017853059, -0.005395731, 0.034420922, 0.050122675, -0.04403196, 0.010086001, 0.04252325, 0.027994938, -0.005524949, -0.043193787, 0.020102154, -0.017755274, -0.02675165, -0.017084736, -0.0049277516, 0.014346708, -0.05498407, 0.005685599, 0.0034679358, -0.036767803, 0.009331646, 0.019431617, 0.015031215, -0.005961497, 0.019794824, 0.020032307, -0.009876458, 0.04193653, 0.00026629417, -0.003687956, -0.025717905, 0.0027904136, 0.063756935, -0.025396606, -0.015380453, -0.012020781, -0.021219717, 0.035734057, -0.009450387, 0.050960846, -0.0026996117, 0.05534728, -0.029168379, 0.037075132, -0.01279609, -0.0505697, 0.024754008, 0.051659323, -0.023692323, 0.0016842015, -0.0012005065, 0.009604052, 0.012886892, -0.0030907586, -0.0013620292, -0.025215002, 0.009904397, 0.008856682, -0.005109356, -0.0076273633, -0.020032307, -0.013780941, 0.0048613967, -0.009611037, -0.07163575, -0.037298646, 0.026402412, -0.013578383, -0.019515434, 0.013285023, 0.049228624, -0.020968266, 0.0018963637, 0.027547915, 0.0010180295, -0.009576113, 0.038248572, -0.019655129, 0.029894795, 0.057889733, -0.04408784, -0.01279609, 0.019389708, 0.009485311, 0.011978872, -0.004519143, 0.013117389, 0.001022395, 0.04104248, 0.0827555, 0.027729517, 0.0007464968, 0.0027816826, -0.03928232, -0.03182259, 0.011056883, -0.010099971, 0.036516353, -0.034281228, 0.02645829, -0.005102371, 0.028497841, -0.039589647, -0.012090628, 0.063980445, 0.03419741, 0.0038032045, 0.031906407, -0.04129393, 0.051994592, 0.011853146, 0.023901867, -0.026514169, 0.027100889, 0.01994849, -0.01382285, -0.034951765, 0.018649323, -0.013592353, 0.023748202, 0.03352687, 0.042299736, 0.055710487, -0.0018142927, 0.01339678, 0.015380453, 0.021862315, 0.033135727, 0.024488587, 0.03710307, 0.009240844, 0.0042607067, 0.020144062, 0.01382285, 0.004955691, -0.015408392, -0.004218798, 0.04246737, -0.0014519581, 0.0086192, -0.08387306, -0.008172175, -0.04841839, 0.002856769, 0.028916927, 0.0037124027, -0.034365043, 0.03713101, -0.038751476, 0.027422188, -0.034337107, -0.00905924, -0.027408218, -0.0024079978, 0.008744926, 0.02947571, 0.06252762, -0.015240758, -0.02914044, -0.022979878, 0.015226788, -0.004948706, -0.007955647, 0.049256563, -0.018858867, 0.02619287, 0.025033398, 0.009024316, 0.03478413, 0.0043096, 0.008346794, -0.0048963204, 0.034309167, 0.043333482, -0.044534862, 0.011950933, 0.007948663, 0.048669845, 0.062080592, 0.029699221, 0.03238137, -0.010463178, 0.0625835, 0.004613437, 0.00028135508, 0.015576026, 0.006701882, 0.0075994246, -0.00033177633, 0.026835468, -0.011238487, -0.018076573, -0.03330336, 0.010051077, -0.019222073, 0.012495745, -0.014067317, 0.05442529, 0.019012531, -0.029028684, -0.0832584, 0.0024987997, 0.009757717, 0.012467806, -0.04012049, -0.025522333, 0.041265994, 0.03212992, -0.013536475, 0.0023503734, 0.027994938, 0.036097266, -0.0030645656, -0.017154584, -0.015324575, -0.037326586, 0.0019784346, -0.010966081, -0.081358545, -0.0011507401, -0.058672026, -0.00595102, 0.042718824, -0.04579212, 0.023007816, -0.015715722, -0.025270881, 0.013501551, 0.0033928496, 0.036851622, 0.01323613, 0.028427994, -0.059566077, 0.022365218, -0.050430004, 0.0070790593, 0.023077665, -0.045875937, 0.017196491, -0.015673812, 0.019515434, 0.02792509, -0.024851795, 0.006527263, -0.0577221, 0.028427994, -0.061465934, -0.007396866, 0.0057624313, 0.014751824, 0.031850528, 0.004127996, -0.03330336, -0.023412934, 0.07169163, 0.046267085, -0.019599251, 0.014877549, 0.016861223, 0.017475883, -0.028749293, 0.043165848, 0.040539578, -0.017182522, -0.05140787, 0.0015776838, -0.03718689, 0.01578557, -0.0022490944, 0.009946305, 0.022868121, 0.063980445, -0.023426902, -0.05001092, -0.0013340901, -0.005322391, -0.006115162, 0.013194221, -0.029000744, 0.032940153, 0.019822763, 0.07929105, -0.0036076312, -0.023692323, -0.02708692, 0.009024316, -0.011999827, -0.018020693, 0.030565333, 0.008095343, -0.0015043438, -0.0115318475, 0.041768897, -0.0282883, 0.060627762, -0.006289781, 0.009597068, 0.019794824, -0.026039204, -0.00908718, 0.03514734, 0.08554941, -0.002353866, 0.01994849, -0.024460647, 0.003020911, 0.016428167, 0.0037228798, -0.018467719, 0.0045854985, -0.06481862, -0.040567517, 0.023315147, 0.031124113, 0.08716987, -0.019236043, 0.04369669, 0.0066110804, -0.022113767, 0.021499107, -0.028036848, -0.009799626, 0.032884274, 0.0064888466, 0.028064786, -0.0386956, -0.038863234, 0.025396606, 0.017699394, 0.0047182087, 0.00527699, 0.0015986381, -0.03662811, -0.011098792, -0.036823682, 0.0019697037, -0.000620771, -0.041545384, 0.017629547, -0.01071463, -0.029810978, -0.038136818, 0.0099253515, 0.043556996, 0.029336013, 0.01220937, 0.07079758, 0.015659843, 0.004243245, 0.03277252, -0.012886892, -0.025997296, -0.009715809, 0.02109399, 0.029084561, 0.0061011924, 0.015394422, -0.01929192, 0.011964902, 0.044702496, -0.013620292, -0.019222073, -0.023440871, -0.02612302, 0.001779369, 0.022840181, -0.006013883, -0.02441874, -0.039645527, 0.023147512, 0.038220637, -0.008884621, -0.013669185, -0.01640023, -0.020004367, 0.037913304, 0.01411621, -0.06319816, -0.027757457, 0.015645875, -0.045540668, 0.0374104, 0.027436158, 0.008304886, -0.000921989, -0.057498585, -0.012314141, 0.04165714, 0.0018073079, -0.019194135, -0.011999827, 0.00015672066, 0.00699175, 0.018230237, -0.00964596, 0.021750558, 0.02559218, -0.014227967, -0.014681976, -0.008228053, 0.003495875, -0.01873314, -0.004400402, -0.031040296, 0.015240758, 0.031654954, -0.011587725, -0.031878468, 0.03542673, -0.08180557, -0.04140569, -0.0069533335, 0.03006243, -0.0057170303, 0.039170563, 0.04336142, -0.045847997, 0.043333482, 0.05347536, -0.03330336, 0.018830927, -0.021918193, -0.00668442, -0.0041000573, -0.019990398, 0.043948144, -0.061968837, 0.07476493, 0.014849611, -0.01695901, 0.010344437, -0.051324055, -0.006125639, 0.047356706, -0.023985684, -0.012670364, -0.004644869, 0.016721528, 0.012425898, 0.025829662, 0.0073898816, -0.043473177, -0.0050185537, 0.01994849, 0.038472086, 0.021289565, 0.033806264, -0.019473525, -0.01369014, 0.005084909, -0.0133478865, -0.0035936616, -0.0069044405, -0.030313881, 0.054872315, -0.008123281, -0.016414199, -0.040679272, -0.030844724, -0.016833285, 0.05498407, -0.051715203, -0.006006898, 0.0010328721, 0.0019504956, 0.025075307, -0.03506352, -0.023147512, -0.033387177, -0.0063875676, 0.049424198, 0.034532677, -0.01578557, -0.045931816, -0.046574414, -0.041545384, 0.030816784, -0.044451047, -0.01606496, 0.00015497448, -0.0031536215, -0.06006898, 0.039086744, 0.024712099, -0.060571883, 0.005039508, -0.027212646, 0.009555159, -0.0868346, -0.02348278, -0.025494393, -0.007166369, -0.029810978, 0.03400184, 0.006226918, -0.026989132, -0.0050045843, 0.008528398, 0.0204933, -0.01457022, -0.013243115, -0.07012704, 0.0110289445, 0.02673768, -0.04487013, 0.020926356, -0.022365218, 0.060180735, -0.022490945, 0.039086744, -0.026556076, -0.024865763, -0.018272145, -0.023524689, 0.030537393, -0.022379188, 0.049172748, -0.02676562, 0.0013899682, 0.011573756, -0.0030802814, -0.028916927, 0.041908592, -0.05294452, -0.0022770334, 0.024334922, -0.039645527, 0.024684161, 0.0014746585, -0.04431135, 0.035203215, -0.05378269, -0.019850703, 0.032018162, -0.03006243, 0.0020674905, -0.04961977, 0.018802987, 0.028218452, -0.0013725064, -0.020702844, 0.031319685, -0.03657223, 0.0019295414, -0.051240236, -0.023035755, 0.010372376, 0.044758376, 0.048558086, -0.012586547, 0.011943948, 0.0017304756, -0.08057625, -0.031850528, 0.059007294, -0.013962545, 0.0087100025, 0.06470686, 0.030090367, 0.010253635, 0.026821498, 0.0007744358, 0.0014694199, -0.0232453, 0.016470077, 0.006226918, -0.020283759, 0.022407126, 0.01871917, -0.0144584635, -0.045345094, -0.009436417, 0.05585018, -0.050066795, -0.0014371155, 0.01876108, -0.009715809, -0.020563148, 0.029643344, 0.0016676127, 0.0041314885, 0.0065866336, 0.016176715, 0.023384994, -0.035287034, 0.007711181, 0.038053002, -0.018397871, -0.05146375, 0.013725064, 0.03067709, -0.041182175, 0.020870479, 0.06392457, 0.013948576, 0.06330991, 0.041992407, -0.025089277, 0.068562455, 0.0029982105, 0.008297901, 0.023398964, -0.023678353, -0.050541762, -0.02024185, 0.0138507895, -0.010393331, 0.0035203216, -0.009932336, 0.010065046, 0.039366137, 0.045624487, -0.023510719, -0.040846907, 0.0020343128, 0.010973066, -0.01276815, 0.012111583, 0.010023138, -0.000024760448, -0.014374646, -0.009946305, -0.05154757, 0.02204392, 0.028036848, 0.015855417, 0.006810146, -0.073367976, -0.019166196, -0.060683638, -0.054034144, -0.042299736, -0.026220808, 0.004536605, 0.017098704, -0.048530146, -0.015296635, 0.027799366, 0.035231154, -0.016204655, -0.02494958, -0.04970359, -0.0014851356, -0.02108002, -0.023119573, -0.04375257, 0.02883311, -0.0016501507, 0.010470163, 0.01700092, 0.040846907, 0.00848649, -0.014975336, -0.022993848, 0.015883356, -0.028372116, -0.00438294, 0.010079016, 0.021582924, -0.04724495, 0.028944867, -0.006359629, 0.0049033053, -0.038863234, -0.00993932, -0.026625926, 0.028665476, 0.0043584933, -0.0067507755, -0.033806264, -0.010044092, 0.036711924, 0.009750732, 0.043892264, -0.0031553677, -0.004700747, -0.052413676, 0.022476975, 0.057275075, -0.0154642705, 0.0057659238, 0.010609859, -0.013173267, -0.048921295, -0.02648623, 0.0030051952, 0.075994246, 0.054285593, 0.0002229668, -0.013145328, -0.0048264726, -0.014919458, 0.01160868, -0.06755665, -0.019110318, 0.018062603, -0.060236614, 0.008737941, -0.016204655, 0.002500546, 0.007375912, 0.0041140267, -0.023524689, 0.031738773, -0.030732967, 0.00021281706, 0.01936177, -0.045345094, -0.052469555, -0.00014613438, 0.02497752, -0.02263064, -0.023915837, 0.028567689, 0.03872354, -0.0067961765, -0.0261789, -0.022965908, 0.007375912, -0.012586547, 0.042355616, -0.010414285, 0.007997556, 0.00061204005, 0.02112193, -0.025201032, 0.0110289445, -0.056744233, -0.015338545, 0.007557516, 0.0022071858, 0.015967174, -0.017908938, 0.051324055, -0.0055668578, 0.0070511205, 0.014220982, 0.034448862, -0.0031693373, 0.003487144, 0.007697211, 0.018551536, -0.00053477107, 0.063533425, 0.027841274, 0.045345094, 0.027450128, -0.015967174, -0.015715722, 0.029810978, 0.015059154, 0.0053642998, 0.012810059, 0.039589647, 0.025955386, 0.0007988825, 0.016875193, 0.0030104339, -0.029000744, 0.014193043, 0.01964116, -0.000049848306, 0.032493126, -0.048641905, -0.0070965216, -0.00014460647, -0.013592353, 0.049731527, -0.004899813, 0.027855244, 0.013494566, 0.022435065, 0.023915837, 0.03590169, 0.029280135, 0.003570961, 0.029000744, -0.032912213, 0.0032601391, -0.0054725637, -0.013801896, -0.016833285, -0.025340728, -0.009324661, -0.029112501, -0.019389708, -0.015017245, 0.007641333, -0.034923825, -0.010658751, -0.07828525, 0.031906407, -0.07487668, 0.025857601, 0.014640068, -0.011294365, -0.0344768, 0.029894795, 0.0069358717, 0.0047042393, 0.008444581, 0.037298646, 0.004334047, 0.030258002, 0.047803733, -0.0066948975, -0.0058846646, 0.013620292, -0.03905881, 0.01694504, 0.007969617, -0.040036675, -0.018006725, 0.017908938, -0.0684507, -0.00007514079, 0.009303708, -0.0035500068, -0.037661854, -0.031459384, 0.02230934, 0.003185053, -0.037578035, 0.056855988, 0.03123587, -0.00094905496, -0.022253461, -0.0034801592, -0.03975728, -0.0017627801, -0.03450474, -0.0041314885, -0.00085607026, -0.002282272, -0.021666741, -0.045456853, 0.02200201, -0.0028410533, -0.0510726, 0.0211359, 0.027897151, -0.0013349632, 0.042970274, 0.01751779, -0.012460821, 0.0041768895, 0.005996421, 0.044283412, 0.006646004, 0.0512123, 0.044730436, -0.0018177851, -0.019110318, 0.031012358, 0.014165103, -0.04492601, -0.019794824, 0.01336884, 0.029950673, -0.025675997, -0.052748945, -0.02735234, 0.01816039, 0.013843805, -0.015534118, 0.013082465, -0.0033404639, -0.07062995, -0.026262717, -0.04260707, -0.009471342, -0.035706118, -0.023887897, 0.015170909, -0.06766841, 0.2293238, 0.05294452, 0.00017811151, 0.024754008, 0.01813245, 0.07493256, -0.0037857427, -0.0010546995, 0.010197757, -0.026234778, -0.0077461046, -0.009806611, 0.003670494, 0.022854151, -0.05001092, 0.03986904, -0.06096303, -0.011496924, -0.0031833067, -0.029503647, -0.06241586, 0.07062995, -0.00879382, 0.078620516, -0.0005893396, 0.03157114, -0.004117519, -0.027031042, -0.028050818, -0.04218798, 0.031682894, -0.03872354, 0.028036848, -0.019263983, -0.03394596, -0.013187236, 0.005580827, -0.019850703, -0.009080195, -0.0022281401, 0.010086001, -0.022979878, 0.011818223, -0.0033876111, -0.004613437, -0.0013515521, -0.014905489, 0.030341819, 0.012076659, -0.033778325, 0.044255473, -0.010721615, 0.01665168, -0.058336757, -0.05411796, -0.001223207, -0.08303489, -0.049843285, 0.050932907, -0.01877505, -0.017783212, -0.027408218, -0.035007644, 0.040316064, -0.049480077, 0.0041943514, -0.039701406, 0.032269616, -0.016246563, -0.0112315025, -0.016302442, -0.02288209, -0.034337107, -0.020144062, 0.010106955, 0.03785743, 0.015841447, 0.025997296, -0.0136622, -0.053978264, -0.012824029, -0.0075156074, 0.005605274, -0.008696033, 0.032576945, 0.010162833, -0.07185926, -0.008905576, 0.011517878, 0.024600344, 0.06515389, 0.048865415, 0.011664558, 0.011182609, -0.020269789 ]
Exporting a model for an unsupported architecture If you wish to contribute by adding support for a model that cannot be currently exported, you should first check if it is supported in optimum.exporters.onnx, and if it is not, contribute to 🤗 Optimum directly. Exporting a model with transformers.onnx tranformers.onnx is no longer maintained, please export models with 🤗 Optimum as described above. This section will be removed in the future versions.
[ 0.022651881, 0.03052102, -0.030296188, -0.032432098, -0.026572399, -0.0040786033, 0.0065306835, -0.0026804258, -0.02499857, 0.028638048, 0.068461515, -0.0070822258, 0.022904817, -0.053060483, 0.028609943, 0.0070330435, 0.008887912, -0.0024046544, -0.09268723, 0.01122055, -0.019068612, 0.020052254, -0.050671637, -0.03212295, -0.04246525, -0.019377757, 0.016328465, -0.022483256, 0.059749253, 0.04260577, -0.03265693, 0.005554067, -0.0113891745, 0.019096715, -0.04260577, -0.008311778, -0.01519025, -0.013265121, -0.057894386, -0.03853068, -0.0061512785, 0.0030036224, 0.020417606, -0.07245229, -0.056376766, 0.0040223952, 0.003367219, -0.032432098, -0.04108815, -0.016553298, -0.023874408, 0.03369678, 0.023818199, 0.009246239, -0.0045704246, 0.007686463, -0.0057859253, 0.0018829727, -0.03687254, 0.011171368, 0.015991217, 0.034989566, -0.011754528, -0.042099897, 0.052357882, 0.0089933025, -0.020839168, -0.028623996, -0.040273134, -0.017972553, -0.04474168, -0.0379686, 0.008852782, -0.018351957, 0.005525963, -0.002438028, 0.012267427, 0.018464373, -0.016300362, 0.031083101, -0.0029860574, 0.053425837, -0.00028916454, 0.018408166, -0.029172026, -0.025926005, 0.06649423, -0.04302733, -0.005575145, -0.017916344, -0.0077567236, 0.051177513, -0.038277745, 0.016033372, 0.03355626, 0.05019387, -0.012681962, 0.04313975, -0.010475792, -0.0010020857, 0.0072649023, 0.079871766, 0.0037835105, 0.04791744, -0.024562957, -0.009506201, 0.023846304, -0.014361179, -0.05151476, -0.013412667, -0.01270304, 0.015892852, 0.012330661, -0.0014807332, 0.002023493, 0.016454933, -0.012267427, 0.014895157, -0.04224042, -0.016342517, 0.013194861, 0.0010161378, -0.027738716, -0.034230758, 0.04356131, -0.027106376, -0.022609724, 0.029649794, -0.016806234, 0.013995827, 0.017312108, -0.008051816, -0.011051926, 0.0504187, -0.0063023376, -0.004482599, -0.00021725764, 0.029481169, -0.022244371, -0.03459611, 0.014867053, 0.045388073, -0.026614554, 0.06891118, 0.0072367983, -0.020600284, 0.023326378, -0.05986167, -0.020642439, 0.00725085, -0.01767746, 0.030211875, -0.009253265, 0.026937751, -0.038558785, -0.03749083, -0.03740652, 0.022216268, -0.014389284, 0.015541551, -0.016806234, 0.011332966, -0.03403403, 0.028778568, -0.0038853877, 0.030858269, -0.018942144, -0.00302997, 0.027246896, -0.038446367, 0.008065868, 0.023832252, -0.019279392, -0.015119989, 0.023635523, 0.038643096, 0.061716538, -0.003685146, -0.0073773186, -0.025363924, -0.02112021, -0.013581292, 0.037125476, 0.019799318, -0.010117466, -0.011606981, -0.015162146, 0.040216923, -0.0077848276, 0.055758476, -0.0034603137, 0.06671906, -0.03493336, 0.01919508, -0.070934676, -0.0113891745, -0.008564715, 0.029087713, 0.015372926, -0.03302228, 0.0065868916, 0.020881325, -0.025743328, 0.036984958, 0.0020779446, -0.01270304, -0.016272256, 0.017705563, -0.010784937, 0.026066525, 0.046990007, 0.010869249, -0.020459764, -0.02623515, 0.042380936, 0.010138543, -0.006467449, 0.014108243, 0.020277087, 0.0040750904, 0.05275134, -0.027865186, 0.059749253, -0.022890765, 0.0062707206, -0.0028332416, 0.0037132504, 0.028357007, 0.01940586, 0.04687759, 0.0035885384, 0.043954767, 0.03881172, 0.0013604127, 0.014108243, 0.0051360186, 0.019476121, 0.011902073, 0.01594906, 0.010827093, 0.036366668, 0.010468766, 0.0283008, 0.0531729, -0.027303103, -0.014937313, -0.0066395868, 0.020122515, -0.010876276, 0.012429025, -0.018351957, -0.011733449, 0.03507388, -0.01718564, -0.040891424, 0.025659015, 0.019363705, 0.0110097695, 0.009218135, -0.046343613, -0.0014930287, 0.039851572, -0.0023010208, -0.04772071, 0.054718625, 0.031195518, 0.026600502, 0.03493336, 0.0013902732, -0.045472387, -0.03274124, -0.044825993, -0.043870453, -0.025644964, -0.021724446, 0.015541551, -0.018450322, -0.08172663, 0.052385986, 0.0010293116, 0.00952728, 0.004011856, -0.028834777, 0.04328027, 0.053959817, 0.034820944, -0.038052913, -0.0009133823, 0.044151496, 0.007883192, 0.036619604, -0.0669439, 0.01677813, -0.021738498, 0.017874189, 0.0105671305, 0.034090236, -0.012000438, -0.081839055, 0.044292014, -0.041200567, 0.0028613457, -0.023213962, 0.032825556, 0.009885606, 0.012815456, 0.016679766, -0.012436051, -0.0030826651, 0.04890108, 0.0035253044, 0.011241628, 0.007574047, 0.05862509, -0.023228014, 0.020220878, 0.026895596, -0.052357882, -0.040582277, -0.043533206, -0.06250345, -0.005223844, -0.043617517, -0.02078296, -0.0069522443, 0.06947326, -0.06430211, -0.06806806, -0.022806453, -0.030268084, 0.0018443296, -0.005648918, 0.006499066, 0.027275, 0.008887912, 0.0032846632, -0.030942582, 0.009330551, -0.00080667465, 0.032291576, 0.0303805, -0.022609724, 0.04313975, 0.043336477, -0.009906685, -0.022427049, 0.02112021, -0.032403994, 0.019729057, -0.01042661, 0.024872102, 0.011663189, -0.022904817, 0.0010916675, -0.010293116, -0.0154291345, -0.031982433, 0.03853068, 0.002956197, -0.025335819, 0.03920518, 0.0025012624, -0.027401468, 0.011951256, -0.052582715, 0.03251641, -0.0011162586, -0.016539246, 0.035017673, -0.042999227, 0.031111205, -0.019082664, -0.024394333, 0.019349653, -0.029312545, -0.031476557, 0.024984518, 0.006000219, 0.009337577, -0.050446805, -0.014073113, 0.0007978921, 0.012485233, 0.017733669, 0.0008769348, 0.01975716, -0.026249202, 0.015091886, -0.029172026, -0.0011276759, 0.026670763, 0.03473663, 0.016665714, -0.011628059, -0.033162802, -0.05303238, 0.038418263, 0.034511797, 0.01670787, 0.006411241, 0.055280708, -0.004563398, -0.021935226, 0.033893507, 0.026319461, -0.021991435, -0.038980346, 0.0074686566, 0.023382585, 0.004774179, -0.012253375, -0.014824897, 0.016173892, 0.016735975, -0.021794707, -0.024141395, -0.01146646, -0.027260948, -0.010532, 0.04982852, -0.036900643, 0.0002841146, -0.10657063, 0.023972772, 0.030127563, -0.013005159, -0.00072763197, -0.04648413, 0.03847447, 0.02369173, -0.013040288, -0.015091886, -0.023579314, 0.007581073, -0.06677527, 0.021485562, 0.050446805, -0.052638922, -0.03971105, -0.07335162, -0.027190687, 0.021640135, 0.014937313, 0.007623229, 0.0012286748, -0.021499613, -0.011410252, 0.01035635, 0.046146885, -0.00042112192, 0.0072086942, -0.051599074, 0.007194642, -0.047130525, -0.021302884, -0.03127983, 0.05980546, -0.042156104, -0.019504225, 0.017972553, 0.009976945, -0.023045337, 0.036703914, -0.07644307, -0.016356569, -0.024253812, 0.02133099, -0.025729276, 0.059580628, 0.01746668, -0.0020744316, 0.020909429, 0.010756833, -0.00017751672, 0.006109122, -0.030071355, -0.0074475785, 0.017663408, -0.012070698, 0.0050517065, -0.06581973, 0.0030756393, -0.011817762, -0.014389284, -0.020867271, -0.054100335, -0.026010318, 0.033724885, -0.022412997, 0.028890984, -0.0023589854, -0.015443186, -0.0038959268, 0.012035568, 0.055140186, 0.0013683169, -0.005114941, 0.012513338, 0.058681298, 0.026741022, 0.033865403, -0.040020198, -0.013082445, -0.002250082, -0.01070765, 0.012597649, -0.001716983, 0.004061038, 0.023663627, -0.030914478, -0.009133823, -0.0012040838, -0.026178941, 0.025139092, 0.019827422, -0.056320556, 0.0019795804, -0.038333952, -0.020473816, 0.04465737, -0.0069206273, -0.06042375, -0.0352144, 0.009653748, -0.017171588, 0.01767746, 0.011677241, -0.051177513, -0.015864749, -0.04980041, 0.031223621, -0.027710613, 0.009745087, -0.0207127, -0.0032407506, -0.008353935, 0.031111205, 0.017115379, 0.012288504, 0.032769345, -0.034568008, 0.03881172, -0.06649423, 0.00020254691, 0.0013410911, -0.01615984, -0.039120864, -0.007307058, 0.025012622, -0.030408604, -0.0005023602, 0.00901438, 0.038333952, 0.012421999, -0.083075635, -0.0096678, 0.0087403655, -0.007567021, 0.025911953, 0.030745853, 0.0034216705, 0.027401468, 0.00064683275, 0.05696695, -0.020487867, 0.035664067, -0.005965089, -0.018183334, 0.0014324293, -0.023073442, 0.018042814, -0.044825993, 0.022258423, -0.002761225, 0.011487539, -0.017733669, 0.029453065, -0.010784937, -0.0717778, 0.0013551431, -0.006081018, -0.020965636, -0.022553517, 0.040216923, 0.026909648, -0.019700954, -0.02623515, 0.04308354, 0.032628827, -0.013911515, -0.020839168, 0.02775277, 0.0407228, -0.001688879, -0.039851572, 0.03737841, 0.005086837, -0.003628938, -0.020600284, -0.06053617, 0.022609724, 0.036984958, 0.022539465, -0.012681962, 0.043729935, -0.0034427487, -0.011108134, -0.010834119, -0.0054135467, 0.04122867, 0.0086138975, 0.034399383, 0.05005335, -0.04364562, 0.052582715, -0.023495004, -0.047242943, 0.0031634644, 0.07374508, -0.017635304, -0.05075595, -0.03265693, -0.008072894, -0.032685034, -0.058849923, 0.0017846085, 0.03819343, -0.009049511, 0.005599736, 0.0193356, -0.043392684, -0.0026452956, 0.044404432, 0.020010099, -0.029312545, -0.018885935, 0.067787014, -0.028525632, -0.051880114, -0.0077356454, 0.02886288, -0.012436051, -0.020263035, -0.05455, 0.0115788765, -0.023523107, -0.042774394, 0.0510932, -0.024281917, -0.001176858, 0.024113292, 0.004394774, 0.042099897, 0.013061367, 0.017298056, 0.042971123, -0.034568008, -0.054662418, 0.02258162, 0.021429354, -0.014895157, 0.008431221, 0.010272037, -0.00010615873, 0.027162584, 0.044488743, -0.066325605, -0.062109996, 0.024605114, -0.038980346, -0.0056559443, 0.038249638, 0.005213305, 0.02547634, 0.042156104, 0.017213743, -0.033865403, 0.04018882, 0.042380936, -0.040020198, -0.031167414, -0.043420788, 0.031645183, -0.055533644, -0.013447798, 0.010574156, -0.03920518, 0.017930396, 0.037434623, 0.0061266874, 0.016946753, 0.0024977492, -0.009660774, 0.004324514, 0.02237084, -0.032094847, -0.0015729497, -0.009590514, -0.0014183773, -0.028469423, 0.017508836, 0.006773081, -0.016539246, -0.0058632116, -0.0005739378, 0.0111362375, -0.031307936, -0.0054030074, 0.039935883, -0.011143263, -0.008845756, 0.00080623553, 0.022398943, -0.039570533, -0.0031423864, -0.038699307, -0.036198042, 0.0029474143, 0.012597649, 0.039767258, 0.048339, -0.008030738, 0.023986824, 0.010553079, 0.039682947, -0.008775496, -0.024295969, 0.061997578, -0.022834556, -0.047074318, -0.044235807, -0.010089361, 0.034090236, -0.010791963, 0.037462726, 0.03645098, -0.013272148, -0.004883082, -0.009204083, -0.019209132, 0.04108815, 0.04777692, -0.0144173885, 0.021527717, -0.03740652, -0.006144252, 0.02230058, -0.050727848, -0.010911405, -0.0016809747, -0.020881325, -0.027949497, 0.004426391, -0.03473663, -0.012281478, -0.004847952, 0.025883848, -0.023705782, -0.022708088, -0.0069768354, 0.008543638, -0.031588975, -0.062953115, -0.0040540122, 0.015063781, -0.043589413, -0.029537378, 0.036029417, 0.020867271, -0.0010257986, -0.03881172, 0.0043104617, -0.0063058506, 0.026403774, 0.059074756, -0.039542425, 0.03667581, -0.03853068, 0.021485562, 0.007574047, -0.0070892517, -0.02431002, 0.048142273, 0.024562957, -0.006140739, 0.014810845, 0.0220898, 0.047861233, -0.034905255, -0.010967613, 0.025926005, 0.007229772, -0.026656711, 0.0017371828, 0.055393122, 0.0290034, 0.040216923, 0.00042529363, 0.0057683606, -0.005561093, 0.01042661, -0.045472387, -0.021078052, -0.0011671971, 0.023537159, -0.0013112305, 0.0034409922, -0.021007793, -0.0034497746, -0.0070330435, -0.00873334, 0.011782631, -0.007658359, 0.035439234, -0.0020797013, -0.040216923, 0.027429573, 0.04041365, -0.031673286, 0.04687759, 0.053622566, 0.0573042, 0.015892852, 0.031673286, -0.014628168, 0.02485805, 0.03473663, 0.018675154, 0.0073913704, 0.0013674387, 0.015246458, 0.0013516301, 0.073969916, -0.014586013, 0.00797453, -0.009709956, -0.032094847, -0.011888022, 0.061098248, -0.02775277, -0.01698891, -0.022904817, -0.010574156, -0.01180371, -0.07200263, 0.029031504, -0.08155801, 0.013377537, 0.019068612, -0.009646722, -0.03971105, 0.019307496, -0.0073773186, -0.00048216045, -0.0038607966, 0.02838511, 0.021794707, 0.029874627, 0.022820504, 0.021935226, -0.0050271153, 0.04232473, -0.013152705, -0.012246349, 0.005972115, -0.017832033, -0.03473663, -0.0141504, -0.04460116, -0.01211988, 0.010300142, 0.0101244915, -0.019686902, 0.043729935, 0.019448016, -0.023705782, -0.023354482, 0.07689273, -0.0015957842, 0.020768909, -0.025855744, 0.008473377, -0.047552086, -0.04772071, -0.047467776, 0.03631046, -0.022806453, -0.0428306, 0.014937313, -0.050165765, 0.009295422, 0.015457239, 0.0030282135, -0.012611701, 0.0400483, 0.0010249203, 0.018422218, 0.025167195, -0.01670787, -0.0079183215, 0.045247555, 0.04103194, 0.01864705, 0.03066154, 0.024970466, -0.0013200131, -0.01753694, 0.008445273, 0.0016976615, 0.029790314, -0.024295969, -0.028834777, 0.004380722, -0.029565481, -0.050165765, 0.009731035, 0.02409924, -0.024984518, 0.005086837, -0.021457458, 0.000001320809, -0.056995053, -0.026684815, -0.01843627, 0.019433964, -0.009738061, -0.036507186, 0.030577227, -0.030942582, 0.23180237, 0.02630541, 0.01122055, 0.030296188, 0.05986167, 0.06537007, 0.019841474, 0.045416176, 0.027907342, -0.008691183, 0.02319991, -0.03417455, -0.006400702, -0.0011557799, -0.022806453, 0.010911405, -0.014782741, 0.019490173, -0.03411834, 0.002587331, -0.062953115, 0.041060045, -0.014276868, 0.050306287, 0.015541551, -0.026277306, -0.024548905, -0.05890613, -0.011775605, -0.03052102, 0.015485343, -0.028680203, 0.028483475, 0.020797012, 0.005143045, 0.034090236, 0.0115788765, -0.015611811, -0.04929454, 0.00299484, 0.009464046, -0.049322642, 0.026895596, -0.034708526, -0.019040508, 0.03735031, -0.027527938, -0.021921175, 0.0132791735, -0.043476995, 0.055280708, -0.038137224, 0.011522668, -0.03307849, -0.03625425, -0.0065341964, -0.08391875, -0.03706927, -0.011375123, 0.040385548, 0.032347783, 0.0158788, -0.03493336, 0.062447242, 0.028047862, -0.012450103, -0.03839016, 0.066887684, 0.011621033, -0.0065060924, 0.026488086, 0.025335819, -0.013616422, -0.051486656, -0.0061477656, 0.024380282, 0.00811505, 0.04639982, -0.024436489, -0.064358324, 0.015780436, -0.023649575, 0.01884378, -0.055421226, 0.0704288, 0.020670544, -0.044432536, -0.016735975, -0.0138482805, 0.022483256, 0.004015369, 0.050446805, 0.05772576, -0.0017644087, 0.03459611 ]
Fine-tune a pretrained model [[open-in-colab]] There are significant benefits to using a pretrained model. It reduces computation costs, your carbon footprint, and allows you to use state-of-the-art models without having to train one from scratch. 🤗 Transformers provides access to thousands of pretrained models for a wide range of tasks. When you use a pretrained model, you train it on a dataset specific to your task. This is known as fine-tuning, an incredibly powerful training technique. In this tutorial, you will fine-tune a pretrained model with a deep learning framework of your choice:
[ 0.03981337, 0.0048598307, -0.041741233, 0.024624115, -0.033270307, -0.049949273, 0.005779949, -0.032715313, 0.011589108, 0.04381515, -0.013874798, 0.018197892, 0.029692069, -0.051146887, -0.016270027, 0.038411282, 0.008375997, -0.022287307, -0.07296684, -0.03446792, 0.030436926, -0.016343052, -0.06858532, -0.018373154, -0.030670606, 0.011472267, 0.009230392, -0.010763923, 0.064846426, 0.022404147, -0.05249055, -0.0010187023, -0.0029502201, -0.001168404, -0.00922309, -0.037943922, -0.0063422434, -0.023952283, -0.025529629, -0.04045599, 0.020695357, -0.0052614696, 0.031167177, -0.065138526, -0.059354927, -0.00018872463, 0.0009958819, 0.012304755, 0.04924823, -0.013772563, -0.011968839, 0.06069859, -0.007558114, 0.012691789, -0.036162104, 0.017190145, -0.029735884, 0.022331122, -0.022856904, -0.019044986, 0.041565973, 0.03449713, 0.010749318, -0.03446792, 0.021118904, 0.005893138, -0.019103406, -0.012187915, -0.011523385, -0.028260773, -0.04907297, -0.0016312016, -0.041157033, -0.062159095, -0.010113997, 0.035986844, 0.033328727, 0.011851999, 0.014093874, 0.011245889, 0.0315177, 0.034058977, 0.0026270836, 0.0036512627, -0.02628909, -0.023149006, 0.049569543, -0.001862144, 0.001529879, -0.053191595, 0.011063326, 0.016854228, -0.009055131, 0.014940967, 0.014816823, 0.039024696, -0.04930665, 0.044574615, -0.021469424, -0.04924823, -0.0013829158, 0.075420484, -0.016708178, 0.00861698, 0.0026033502, -0.027559731, 0.042734377, -0.013261386, -0.041244663, -0.007174731, 0.022550197, 0.0039105024, 0.019965105, 0.010953788, 0.027749596, 0.004428982, 0.015554379, -0.00069510913, -0.009296115, 0.013838286, 0.01758448, -0.011245889, 0.020929037, -0.04054362, 0.04016389, -0.05173109, 0.007821005, 0.016664363, 0.01859223, -0.03166375, 0.030787447, -0.005601037, 0.026931714, 0.024361225, -0.011289705, -0.022053627, -0.021323374, 0.0058894865, 0.009938737, -0.016372262, 0.0016065555, -0.013422041, 0.047904566, 0.07734835, 0.0118300915, -0.0072221975, 0.013210269, -0.039550476, -0.0034431408, 0.02186376, -0.020666147, 0.010479124, -0.0095882155, 0.007974357, -0.03204348, 0.028918, -0.058975194, 0.044457775, 0.011910419, 0.04559697, 0.0072039412, 0.01997971, -0.026478957, 0.03721367, -0.0010232663, 0.038236022, -0.019614583, -0.010026367, 0.017087908, -0.023674788, 0.0019223898, 0.013867496, 0.0140573615, -0.016109372, 0.066774294, 0.008909081, 0.051643457, -0.012976588, -0.0006485555, 0.009318022, -0.0011364555, -0.0142180165, -0.012582251, 0.015948715, 0.0015809968, -0.047086682, -0.012538436, 0.021104299, 0.0094129555, -0.0006919143, -0.00022227061, 0.07244105, -0.058215734, 0.004009086, -0.066540614, -0.008726518, -0.021819945, 0.0015335303, -0.008602375, -0.012903562, 0.010260048, 0.034000557, -0.017964212, 0.009259602, -0.011822788, 0.023251241, 0.0094421655, 0.015087017, 0.0006531196, -0.006795, 0.041157033, -0.024682535, -0.012385083, -0.030290876, 0.01596332, -0.0051044654, 0.017160935, 0.0094421655, -0.0057178773, -0.007974357, 0.05208161, -0.0021378142, 0.025792519, 0.016036345, 0.020081945, -0.011669436, 0.010668989, 0.010836948, 0.013918613, -0.007872122, 0.033124253, 0.025033057, 0.026493562, 0.026683427, 0.039521266, 0.02021339, 0.055119462, 0.0526366, 0.0050862087, 0.038528122, 0.01844618, -0.00015517867, 0.013458554, -0.004867133, 0.0050533474, -0.025368974, -0.022214282, -0.0059442557, -0.058975194, 0.021396399, -0.05444763, 0.019483138, -0.028757345, -0.018782096, -0.07133107, -0.041536763, 0.009763476, 0.0058712303, -0.013122638, -0.025252132, 0.053629745, 0.042004127, -0.012706394, -0.01304231, 0.008543954, 0.068410054, -0.0067073693, 0.018168682, -0.015218463, -0.03435108, -0.03508133, 0.0034869558, -0.0691111, -0.026639612, -0.05485657, 0.002842508, 0.05240292, -0.05438921, 0.044954345, -0.014641563, 0.005710575, -0.021703105, 0.013122638, 0.015861085, 0.021425609, 0.0060793525, -0.056229446, -0.0029684766, -0.03657105, 0.005546268, 0.01587569, -0.047145102, -0.013787168, 0.0017024012, -0.0041624396, 0.010420703, -0.017599085, -0.03148849, -0.03455555, 0.029472992, -0.03125481, -0.009113552, -0.0067730923, 0.038352862, -0.011516082, 0.022360332, -0.013896706, -0.07915937, 0.032160323, 0.075303644, 0.025281342, 0.009953342, 0.014225319, 0.032540053, -0.0488685, 0.05736864, 0.058595464, 0.01587569, -0.07203211, -0.022185072, -0.04548013, 0.04001784, 0.0011309786, -0.041858073, -0.000005783543, 0.06104911, -0.022520987, -0.042822007, -0.01856302, -0.031108757, -0.00870461, -0.0067329286, -0.015276883, 0.033620827, -0.010683594, 0.0517603, -0.039521266, -0.0057982053, -0.024711745, 0.010471822, 0.0060026757, -0.038674176, 0.012867049, 0.016299237, -0.008383299, -0.00074942166, 0.052782655, -0.056258656, 0.05424316, -0.0039543174, 0.014210714, 0.02900563, 0.005049696, 0.0058602765, 0.04600591, 0.02703395, 0.0024646022, 0.044486985, -0.03143007, 0.016094767, 0.018168682, 0.011640226, 0.001931518, 0.004837923, -0.05386343, 0.0062801717, -0.023923073, 0.0028297286, 0.044574615, -0.05456447, 0.04571381, 0.028348403, 0.011764368, -0.0051628854, -0.037973132, -0.041361503, 0.024361225, 0.03995942, 0.05181872, -0.01153799, -0.03534422, -0.0063422434, 0.00087082613, 0.000443172, 0.0024481716, -0.014305647, -0.0056412006, 0.016138582, -0.02278388, 0.027077764, -0.01315915, -0.039024696, -0.008105803, 0.006992168, -0.014123084, -0.046560902, 0.019658398, 0.056784436, 0.024653325, -0.028231563, 0.032890573, 0.008529349, -0.016649758, 0.033095043, -0.006422571, -0.019497743, -0.041449133, 0.028100118, 0.050475053, 0.022141257, -0.019453928, -0.013312504, 0.004012738, 0.0072915717, -0.0062473104, 0.0043377, -0.01992129, -0.020432467, 0.010924578, -0.019629188, 0.0028242518, -0.014597748, -0.07320052, 0.022944534, 0.056872066, -0.013181058, 0.0073645967, -0.019833658, -0.0022546547, 0.042705167, 0.009230392, -0.03435108, -0.04515882, 0.03438029, -0.056112606, 0.02700474, 0.0142326215, -0.018343944, 0.005254167, -0.056521546, -0.0055389656, 0.026814872, -0.041273873, -0.036074474, 0.00005665162, 0.03204348, 0.011172864, 0.010406098, -0.01997971, 0.017978817, 0.046619322, -0.009624728, 0.0018448004, -0.039375216, -0.023674788, -0.023280451, -0.013889403, -0.007842912, 0.032919783, 0.021060484, -0.041682813, -0.009610123, 0.044895925, -0.06397012, -0.048138246, 0.0038046157, 0.03651263, -0.021162719, 0.016459892, 0.0010396971, -0.021177324, 0.039112326, 0.03125481, -0.02018418, 0.027457494, -0.023733208, 0.008200736, -0.026303696, 0.019366298, 0.020549307, -0.032978203, 0.024930822, 0.0027274932, 0.0176429, -0.026391327, -0.07162317, -0.021118904, 0.01723396, 0.011231284, 0.0059844195, 0.020929037, 0.028260773, -0.010077485, 0.0018356723, 0.02425899, -0.024565695, -0.019424718, 0.006521155, 0.0694032, -0.0066343443, 0.021586265, -0.037797872, -0.0315177, 0.04515882, -0.015189253, 0.0066197393, 0.0021871063, -0.038440492, 0.03443871, -0.010793133, -0.018723674, -0.010165115, -0.020987459, 0.01231936, -0.0037023802, -0.036424994, -0.022374937, -0.0022254447, -0.0035946681, 0.042909637, -0.022301912, -0.056521546, -0.024185963, -0.013020403, 0.047437206, 0.011223981, -0.002267434, -0.027764201, -0.039550476, -0.0062619154, 0.022243492, -0.041565973, -0.013232176, -0.001025092, -0.03654184, -0.0045421706, 0.03727209, 0.017000278, -0.059793077, -0.012355872, -0.0025759658, -0.019673003, -0.042705167, -0.026070016, -0.013757958, -0.026478957, -0.04609354, 0.04352305, -0.0063897097, -0.00607205, -0.015306093, 0.006455432, 0.032715313, 0.058887564, -0.022199677, -0.035870004, -0.0062327054, 0.00014844665, -0.033153463, 0.01229015, -0.014364067, 0.01726317, -0.0073499917, 0.034029767, -0.07138949, -0.03735972, -0.024594905, -0.01578806, 0.018183287, -0.042500697, 0.005279726, -0.007974357, 0.010552149, -0.035519484, 0.032189533, -0.01862144, 0.0202426, -0.06397012, -0.033708457, 0.047466416, -0.035723954, 0.006075701, -0.0142326215, -0.03712604, 0.035694744, -0.04600591, 0.010581359, 0.03145928, 0.032101903, -0.018767491, -0.045100395, 0.02165929, 0.036278944, -0.021133509, -0.0057982053, 0.016562127, -0.025704889, 0.016518312, -0.038703386, -0.007433971, 0.021995205, -0.007003122, 0.01133352, -0.0071236133, 0.033825297, -0.016153187, -0.026610402, -0.05768995, 0.037564192, -0.0040017837, 0.013400134, 0.017905792, 0.009661241, 0.01732159, -0.0019935893, -0.008244551, -0.0094421655, 0.0009757999, 0.05214003, 0.003065235, -0.023514131, 0.022681644, 0.0032770082, -0.024112938, -0.044457775, -0.018694464, 0.039024696, -0.0453925, -0.013327109, 0.0034194074, 0.0060537937, -0.017803557, 0.021995205, 0.0038739897, -0.008923686, -0.019906685, -0.0063751047, -0.019877475, -0.04545092, 0.028582085, 0.038148392, -0.04016389, -0.00459694, -0.05462289, -0.015802665, -0.05178951, -0.017336195, 0.030057194, -0.0061523775, 0.042208597, 0.032218743, -0.0005134588, 0.09148604, 0.023806233, 0.029721279, 0.010106695, -0.019395508, -0.040894143, 0.008375997, 0.0037461955, -0.0459767, 0.010595964, -0.03654184, 0.016167792, 0.03987179, 0.035607114, -0.0017882059, -0.0815546, 0.016620548, 0.00232768, 0.027705781, -0.0023988795, -0.012888957, -0.033883717, 0.017905792, -0.032510843, -0.0185046, 0.0056594573, -0.01350237, 0.0071674287, -0.04022231, -0.053834215, -0.01292547, -0.053045545, -0.033387147, -0.04010547, -0.029852724, -0.026917107, 0.01367763, 0.008806845, -0.03455555, 0.036395784, 0.03207269, -0.02033023, 0.0032642288, -0.00783561, -0.010939183, 0.012867049, -0.015612799, -0.055703662, 0.021075089, 0.036424994, -0.00141669, 0.033971347, -0.013195664, -0.029546017, -0.021615475, 0.025675679, 0.042208597, -0.0016713655, -0.00010936672, -0.0006371453, 0.024069123, -0.01578806, 0.011749763, -0.01824171, 0.02617225, 0.007506996, 0.016036345, -0.02290072, 0.023441106, -0.0034723508, 0.019351693, -0.026420537, 0.028202353, 0.041157033, 0.00873382, 0.0318098, 0.0037717542, 0.012640671, -0.025807124, 0.02174692, 0.038703386, -0.04515882, 0.051614247, 0.025485814, -0.001312629, 0.0039835274, -0.00027795238, 0.044808295, 0.053396065, 0.036132894, 0.0060464907, 0.016211607, -0.019629188, 0.009303417, 0.004323095, -0.02157166, -0.020023525, 0.006878979, -0.0795099, 0.046765372, -0.0038411284, -0.023850048, 0.012509226, 0.011107141, -0.011837394, 0.023557946, -0.038615756, 0.040864933, 0.018986566, -0.05187714, -0.042909637, -0.005820113, 0.0017316113, -0.02614304, -0.00858777, -0.018782096, 0.07279157, 0.0018502773, -0.024813982, -0.019453928, -0.023572551, 0.0077333744, 0.053074755, -0.00003808153, -0.015481354, -0.029049445, 0.0043011876, -0.023295056, -0.017774347, -0.025923965, 0.019074196, 0.008156921, 0.011669436, 0.017482245, -0.006316684, 0.012640671, -0.00615968, -0.010011762, 0.023119796, 0.02452188, -0.026216066, 0.045100395, -0.013093428, 0.058945984, 0.0219806, 0.044340935, -0.01428374, 0.036395784, 0.016357657, -0.025617259, -0.038674176, 0.0051519317, 0.044720665, -0.012655277, 0.022287307, -0.005714226, -0.026654217, 0.0039433637, 0.027954066, 0.014970177, 0.021411004, 0.01093188, 0.009982552, -0.03178059, 0.009069736, -0.028114723, -0.025427394, 0.01442979, 0.01867986, 0.018840516, 0.011910419, -0.017000278, -0.0014824127, 0.04066046, 0.018752884, 0.0032423213, 0.03709683, 0.012852444, 0.025704889, -0.030758237, 0.013005798, -0.030991917, 0.021177324, -0.007945147, -0.0060939575, -0.066715874, 0.009690451, -0.016211607, -0.005422125, -0.0021725013, -0.016898043, -0.011289705, -0.09954803, 0.01448821, -0.066599034, 0.0094859805, 0.013327109, -0.0028187747, -0.03461397, 0.022068232, 0.026668822, 0.030495346, 0.04533408, 0.038761806, 0.025821729, 0.049598753, 0.058945984, -0.033299517, 0.011618318, 0.02885958, -0.036191314, -0.007492391, 0.019059591, -0.023543341, -0.0141449915, -0.008237248, -0.058507834, 0.049978483, 0.019337088, -0.0020319277, -0.04571381, 0.06093227, 0.0067913486, -0.02874274, 0.005849323, 0.097737, 0.046940632, -0.008894476, 0.015481354, 0.022856904, -0.056463126, -0.03683394, -0.021016669, 0.03657105, -0.0118885115, -0.053016335, -0.009726964, -0.060289647, 0.0012094808, -0.0065102014, -0.047174312, 0.022243492, 0.021936785, 0.021264954, 0.040835723, 0.017306985, -0.023937678, -0.0014413359, 0.060348067, 0.025193712, 0.033708457, 0.047028262, 0.041215453, 0.01347316, -0.01856302, 0.026683427, 0.040806513, -0.0020556608, -0.006532109, -0.005389264, -0.005560873, -0.022856904, -0.046619322, -0.011574503, 0.0005746175, -0.02425899, -0.053220805, 0.023791628, -0.035431854, -0.046648532, -0.056521546, -0.016693573, 0.011077931, -0.0034358383, -0.044370145, 0.019264061, -0.077114664, 0.25494576, 0.04343542, 0.002084871, 0.015495959, 0.04550934, 0.09014237, -0.0027256676, -0.0006097609, 0.0008603288, -0.025441999, 0.00030122916, -0.055937342, -0.039024696, 0.016678968, -0.0068643736, 0.013356319, -0.038732596, -0.00861698, 0.018139472, -0.06613167, -0.033299517, 0.076413624, 0.008719215, 0.047612466, 0.032598473, -0.02295914, -0.01145036, -0.046414852, -0.013210269, -0.030816657, 0.033474777, -0.023251241, -0.010778528, -0.019468533, -0.0051920954, 0.0066087856, 0.031225597, -0.02006734, -0.018898936, 0.00801087, 0.00015563508, -0.013611907, 0.02466793, -0.011720553, 0.0016019915, -0.005111768, -0.012976588, 0.05766074, 0.04393199, -0.041945707, 0.08698768, -0.022214282, 0.005882184, -0.030320086, -0.033357937, 0.00786482, -0.07191527, -0.038761806, 0.013487765, 0.014758403, 0.024828587, -0.010493729, -0.0173508, 0.064203806, -0.044895925, 0.049598753, -0.056083396, 0.058332574, -0.03207269, -0.02163008, -0.001025092, 0.01752606, -0.044428565, -0.04326016, -0.014356765, 0.041157033, 0.007273315, 0.03654184, -0.039901, -0.032890573, 0.010559452, 0.021221139, 0.015422934, -0.013743353, 0.04036836, 0.055265512, -0.0056119906, 0.02431741, 0.025427394, -0.011384637, 0.050007693, 0.05251976, 0.0043888176, 0.023397291, 0.0044691456 ]
The process is identical for TensorFlow checkpoints on the Hub. For example, export a pure TensorFlow checkpoint like so: python -m transformers.onnx --model=keras-io/transformers-qa onnx/ To export a model that's stored locally, save the model's weights and tokenizer files in the same directory (e.g. local-pt-checkpoint), then export it to ONNX by pointing the --model argument of the transformers.onnx package to the desired directory: python -m transformers.onnx --model=local-pt-checkpoint onnx/
[ 0.008784953, 0.016604057, 0.044997137, 0.029202687, 0.008167094, -0.007329079, -0.0017994238, -0.011994976, -0.0047795256, 0.05289436, 0.0031620858, -0.0013289282, -0.013642598, -0.027526658, -0.04025312, 0.0017221916, -0.0045842254, -0.047298126, -0.04590617, 0.010645629, -0.01739946, 0.00569566, -0.088176206, -0.014672361, -0.010262131, 0.0021749325, -0.00014026096, 0.019913506, 0.113401875, 0.040309936, -0.006927826, 0.0018855334, 0.0022086662, -0.021376481, -0.022129273, -0.018691992, 0.014168132, 0.016206356, -0.029770833, -0.006444902, 0.011646986, 0.0046126326, 0.055564646, -0.0054541985, -0.046985645, 0.005376078, -0.031020753, 0.006054302, -0.027484046, -0.017371053, -0.029344723, -0.006068506, 0.03442963, 0.00647331, -0.008252316, 0.006920724, -0.0026152455, 0.023862118, -0.048263974, 0.004626836, -0.01474338, 0.03923046, 0.006104015, -0.050025225, -0.0017994238, 0.031077567, -0.024089376, -0.05479765, -0.00039570458, -0.052780733, -0.045025542, 0.021049798, -0.017342646, -0.019728858, -0.050962664, -0.021206036, 0.031929787, -0.020964574, -0.0010679363, 0.03604884, 0.010049077, 0.038520277, 0.03346378, 0.023918932, -0.021546924, -0.06414364, 0.041957557, -0.014999045, 0.029827647, 0.005145269, -0.03400352, 0.03556592, -0.0059122657, -0.019672044, -0.0040977504, 0.04840601, -0.034940958, 0.042497296, 0.014828602, 0.033208113, 0.04863327, 0.051814884, -0.0006884328, 0.031730935, -0.00881336, 0.035082996, 0.027924359, -0.013053146, -0.038207795, 0.01934536, -0.025410315, -0.01505586, 0.042923406, -0.031844564, -0.03775328, 0.042582516, 0.03397511, 0.018535752, -0.036730617, -0.015155286, 0.024941595, 0.021007186, 0.019984523, -0.01845053, 0.019473193, -0.060280256, -0.022285514, 0.04033834, -0.015325729, 0.025694387, 0.017115388, 0.0071834917, 0.029145872, 0.021845201, 0.032441117, -0.012790379, 0.010368658, 0.0037071505, 0.03468529, -0.031134382, 0.00032934695, -0.000018545185, -0.051985327, 0.07329079, 0.02854932, 0.022455957, 0.02968561, -0.0202828, -0.030310571, 0.020652095, -0.08760806, 0.05760997, 0.016944945, -0.021007186, -0.034316, -0.026830679, 0.011341608, -0.035281844, -0.033293337, -0.0028460547, -0.0063596806, -0.009253672, -0.0021660554, 0.041503042, 0.0074995225, 0.030509422, -0.027881749, 0.02504102, 0.020211782, -0.048803713, 0.001300521, 0.00078519504, -0.0053725275, 0.00048247995, 0.044002883, 0.06522312, 0.039969046, 0.00522694, 0.022910474, 0.002079058, 0.007258061, 0.00085532555, 0.032355897, -0.014672361, -0.027427232, -0.016334187, -0.0016778052, 0.005219838, -0.030963939, -0.009338894, 0.031105975, 0.0045487164, 0.007542134, -0.009999364, -0.010311844, -0.020410633, -0.022029849, -0.005266, 0.0055323183, -0.018379511, -0.04158826, 0.004751118, -0.0037959232, 0.020510059, -0.023421805, -0.021788387, 0.022882067, 0.055593055, -0.011306099, 0.013351423, 0.003307673, 0.027327806, -0.027640287, 0.018961862, -0.010546204, -0.05729749, -0.018166458, 0.036844246, -0.0131809795, -0.012477899, 0.010425473, 0.031872973, 0.025736999, -0.02539611, 0.026603421, -0.010397065, 0.0113984225, 0.05675775, 0.027711304, 0.038406648, -0.012179622, 0.04488351, 0.017300036, 0.042582516, 0.0026276738, 0.05644527, 0.04883212, 0.056218013, -0.014139725, -0.005752475, 0.017967606, 0.009260775, 0.019203324, 0.0033715894, 0.025438722, 0.018961862, 0.02320875, -0.009793411, -0.002258379, 0.006583388, -0.05709864, 0.034742106, 0.014857009, 0.0013058473, -0.03795213, -0.052752323, -0.014175234, 0.009374403, -0.014026096, -0.038861163, 0.019586822, 0.052525066, 0.028606134, -0.033946704, 0.023961544, 0.037270356, 0.036020435, 0.032327488, -0.017172202, -0.009203959, -0.039741788, -0.072552204, -0.04036675, -0.00959456, -0.022512771, -0.010865786, -0.008742342, -0.05476924, 0.0011531581, -0.014452205, 0.0071621863, -0.003966367, -0.026276737, 0.039060015, 0.013010535, -0.0025211463, -0.0103757605, 0.036759023, 0.024671726, 0.08101757, -0.02242755, -0.003151433, -0.011199571, -0.04664476, -0.009154247, -0.0018091889, 0.004545165, -0.01045388, -0.0047404654, 0.009274978, -0.011959466, -0.013173877, -0.033691037, 0.006601142, -0.0127761755, 0.0067076697, 0.0518717, -0.03164571, 0.02274003, 0.012279048, -0.012804583, -0.0061927876, 0.010468083, 0.03647495, -0.03607725, -0.0008850644, 0.02043904, -0.009516439, -0.03229908, -0.03670221, -0.056189604, -0.012378474, -0.0034266284, -0.016760297, 0.035480697, 0.04988319, -0.03775328, -0.061643805, -0.006508819, -0.043832436, 0.01891925, -0.028606134, -0.013173877, 0.03428759, 0.042468887, -0.011320302, -0.035082996, 0.0060436493, -0.0048185852, 0.03440122, 0.031333234, -0.027157363, -0.00686391, 0.041361004, 0.023265565, 0.0002616577, 0.024742743, -0.04817875, -0.0261347, 0.0024643317, 0.025225667, 0.008081872, 0.039060015, 0.046445906, 0.0059016133, 0.010645629, -0.06885926, 0.025850628, 0.015155286, 0.02702953, 0.03619088, 0.013841448, 0.020098154, -0.01259863, -0.05897352, -0.029827647, 0.039372493, -0.0074000973, 0.037781686, -0.025225667, 0.017498886, 0.04610502, -0.008436963, 0.018805621, -0.0022317471, -0.039372493, 0.08607407, -0.0081173815, 0.04900256, -0.054740835, -0.037668057, -0.012975027, 0.040111084, 0.030196942, 0.060507514, 0.079426765, 0.0041545653, -0.0068745627, 0.011164063, -0.012605732, 0.014956434, 0.039372493, -0.0032934693, 0.0013821919, -0.050309297, -0.029543575, 0.014466409, 0.060166627, 0.048349194, 0.024160394, 0.02086515, -0.03139005, 0.053178433, 0.010951008, 0.023620656, -0.0051239636, -0.031304825, 0.05246825, -0.0019991626, 0.014757584, -0.021561127, -0.034117147, -0.025381908, 0.026575014, -0.030282164, 0.006256704, -0.019061286, -0.009630069, 0.032696784, 0.033691037, -0.02231392, -0.035054587, -0.030566236, -0.007535032, 0.03261156, -0.051303554, 0.006501717, -0.031759344, 0.042610925, 0.02749825, -0.0036308058, -0.025921647, -0.011881346, -0.026063683, -0.03661699, 0.024487078, 0.011746411, -0.017726144, 0.019217527, -0.04141782, -0.015552987, 0.0035171767, -0.013884059, 0.008422759, -0.0014603119, -0.009189756, 0.041645076, 0.026731253, 0.001981408, -0.017101184, -0.005546522, -0.03164571, 0.023989951, -0.05144559, -0.01704437, -0.009978058, -0.0054790545, -0.009331793, 0.04738335, 0.03306608, -0.0073077735, -0.021319665, 0.030963939, -0.006104015, -0.07340442, 0.018961862, 0.04832079, -0.015695024, 0.02472854, -0.017285831, -0.0046161837, 0.00069065206, 0.020893557, 0.0037852705, -0.005102658, -0.055166945, 0.02352123, -0.0050209872, -0.02624833, 0.022356533, 0.00471916, 0.032952446, -0.03104916, -0.081188016, -0.034344405, -0.056502085, -0.01657565, -0.024529688, -0.03604884, 0.036531765, 0.020779928, -0.032753598, -0.012996332, -0.067382075, 0.015538784, 0.0013910691, 0.0035349312, -0.0033254276, 0.02711475, 0.011533357, 0.0740862, -0.036730617, -0.024004154, 0.014388289, -0.0077054757, -0.013550274, -0.04340633, -0.024203004, 0.04119056, -0.043150663, -0.00021582877, 0.009502236, -0.0029241748, -0.00228146, 0.014310169, 0.015410951, -0.003226002, -0.027682897, -0.008728138, 0.008451167, -0.008252316, -0.05488287, -0.038349833, 0.035594326, -0.016618261, -0.005997488, 0.024643319, -0.025339296, -0.03826461, -0.03982701, 0.019430581, -0.010354455, -0.004999682, -0.03525344, -0.0378385, 0.009658476, 0.018067032, 0.010979415, -0.0304242, -0.017768756, -0.05780882, 0.024046766, -0.022086663, 0.015183693, 0.00877785, 0.022455957, -0.0012845418, 0.03442963, -0.00909033, 0.0025868383, -0.0022406245, -0.024231412, 0.061132472, 0.060166627, -0.041787114, -0.013351423, 0.0046872017, -0.02063789, 0.005780882, -0.018677788, -0.0073574865, 0.02979924, -0.052411437, 0.0095661525, -0.0064058425, -0.033691037, -0.021234443, 0.010624324, 0.034316, -0.065507196, -0.015879672, -0.0069242753, 0.049627524, 0.0016920088, 0.037923723, 0.00073992094, -0.016944945, -0.031617306, -0.027157363, 0.008103178, -0.034543257, 0.0050209872, -0.014281762, -0.009196858, 0.057581563, -0.04255411, 0.032696784, 0.07181361, -0.022526976, -0.0019867343, -0.024941595, -0.0054364437, -0.03692947, -0.040139493, 0.004609082, -0.011980772, -0.06255284, 0.022981493, -0.036247693, -0.064030014, -0.028691355, 0.011526255, 0.04985478, -0.017726144, 0.037582837, 0.004424434, -0.010723749, -0.0721545, 0.012179622, -0.005667253, 0.009232367, 0.012612834, -0.005219838, 0.0132591, 0.027427232, -0.07982446, -0.0057666786, -0.018862436, 0.088119395, 0.0011504949, -0.045622095, 0.007826206, -0.0019387971, -0.038037352, -0.064882234, 0.049627524, -0.01693074, -0.042497296, -0.026461383, 0.008223908, 0.019402174, -0.030793495, -0.002897543, 0.020183375, -0.028023785, -0.012137012, 0.009814716, 0.003144331, 0.018549956, 0.039060015, 0.059939366, -0.040281527, 0.035849992, -0.033605814, 0.0037781687, -0.032355897, -0.0015916956, 0.036332916, 0.023109324, 0.020822538, 0.019984523, 0.013372729, 0.032242265, -0.02001293, 0.0049357656, 0.03263997, -0.027895952, -0.0378385, -0.00542224, 0.03829302, -0.004807933, 0.0081173815, -0.012279048, 0.014217845, -0.013763329, 0.033122893, -0.010560407, -0.09397129, 0.05101948, -0.009793411, -0.023890525, -0.004243338, -0.038435053, -0.023222953, 0.023563841, -0.016717685, -0.05465561, -0.024032561, 0.031418454, -0.026049478, 0.02504102, -0.0072190007, 0.027356213, -0.035821583, -0.027327806, -0.018834028, -0.049741153, 0.000023538652, 0.022186087, 0.014544529, 0.0032206757, -0.034628477, 0.015624005, 0.03678743, 0.019288545, -0.03991223, -0.02874817, 0.005138167, 0.004555818, 0.015709227, 0.020339614, 0.045366433, -0.03085031, -0.013053146, 0.050337706, 0.011107247, -0.032895632, 0.03982701, 0.034543257, -0.03164571, 0.025722794, -0.023024103, 0.019132305, -0.044514213, -0.032895632, -0.001903288, -0.03085031, -0.0062460513, 0.013749125, 0.012570223, 0.05101948, -0.009651374, 0.034628477, -0.005613989, -0.0062034405, 0.016177949, 0.013330118, 0.031418454, -0.003724905, -0.01045388, -0.038463462, 0.015453562, 0.006498166, 0.0027075692, 0.0032632865, 0.0015189019, -0.023776896, -0.033549, 0.0075918464, 0.00003298463, 0.055791903, 0.021816794, -0.027327806, -0.015354137, -0.015382544, -0.011412626, 0.0036787433, -0.056189604, -0.08408556, 0.028123211, -0.015382544, 0.01938797, -0.03647495, -0.041474633, -0.00052908564, -0.0067325262, 0.030594643, -0.0033485084, 0.051701255, 0.02854932, -0.0008495553, -0.038321424, 0.0006151952, 0.01829429, -0.0073077735, -0.04559369, 0.019842487, 0.014075809, 0.03636132, 0.0104467785, 0.010049077, -0.033605814, 0.020140763, -0.0025992664, 0.003834983, 0.010240826, 0.02504102, -0.015297322, 0.00064537796, -0.031134382, -0.005503911, 0.003011172, 0.027725508, 0.039770197, -0.0063206204, -0.022626402, 0.04766742, 0.0319866, -0.012257743, 0.02001293, 0.010652731, 0.013749125, -0.013031841, -0.014523223, 0.0042291344, 0.034372814, 0.038236205, 0.008834665, -0.032043416, 0.028947022, 0.0063880878, 0.030083314, -0.017385257, 0.033378556, 0.012627037, 0.018905047, -0.024856372, 0.019416379, -0.048036717, -0.0069242753, 0.016135337, 0.036673803, -0.013642598, 0.00553942, -0.020950371, -0.04298022, 0.020751521, 0.018067032, -0.039429307, -0.019359563, 0.018933455, -0.015780246, 0.028606134, 0.01626317, -0.012186725, 0.019984523, 0.030736681, 0.059768923, 0.0460198, 0.015354137, 0.006892317, -0.026191516, 0.042468887, -0.032838818, 0.00035819807, -0.028478302, -0.018166458, -0.0048469924, 0.028378876, -0.04005427, -0.012385575, 0.0145587325, -0.0090690255, -0.04749698, -0.019089695, 0.020197578, -0.058178116, 0.020552669, 0.04724131, -0.038548682, -0.058462188, 0.029117465, -0.029884461, 0.0018571261, -0.0073148753, 0.056104384, -0.004957071, 0.0561612, 0.018976064, -0.007258061, 0.0015029229, 0.009118738, 0.022285514, -0.059825737, -0.04863327, 0.0062851114, -0.02859193, -0.03638973, -0.018109644, -0.0072083483, 0.033691037, -0.03565114, -0.020723114, 0.0025087183, 0.037099913, 0.0024305983, -0.0023737836, 0.048661675, -0.004317907, -0.0071976953, -0.015268914, -0.011852939, -0.034969367, -0.008990905, -0.04570732, 0.0011620354, -0.0265182, -0.07141591, -0.048661675, -0.040679228, -0.004186523, -0.045366433, -0.01369231, -0.04391766, 0.016916538, 0.001860677, 0.042809777, 0.035878398, -0.04590617, 0.009296283, 0.05439995, 0.012463695, -0.0016529488, 0.05465561, 0.0390032, 0.020353818, 0.008060566, -0.0037604142, 0.006153728, 0.0037035996, 0.003108822, 0.013884059, -0.000049102433, -0.021277055, -0.05647368, -0.008017955, 0.032867227, -0.0014256905, -0.03139005, -0.048690084, 0.012030484, -0.053576134, 0.0068390532, -0.021987237, 0.015439359, -0.023450213, 0.013742023, 0.036332916, -0.05783723, 0.23884843, 0.054286316, 0.03022535, 0.0062105423, 0.017527293, 0.052865952, -0.0029081956, -0.05760997, -0.023379194, -0.051843293, 0.021433296, -0.022129273, 0.002897543, 0.01673189, -0.029344723, 0.061416548, -0.05008204, 0.0060472004, 0.003213574, -0.045423247, -0.049059376, 0.065677635, 0.00020262382, 0.059428036, 0.006537226, 0.0167745, 0.021504313, -0.0032792657, -0.050877444, -0.040395156, 0.023095122, -0.060280256, 0.035849992, -0.0032011457, 0.0023808854, 0.012726462, 0.0061998894, -0.04465625, 0.0060472004, -0.052809138, -0.0145587325, -0.013955078, 0.008394352, -0.015624005, -0.029046446, 0.046048205, 0.010943905, 0.029969683, 0.045962986, -0.069938734, 0.044713065, -0.013876958, 0.036134064, -0.071586356, -0.05300799, -0.051928513, -0.022484364, -0.019956116, 0.015425155, 0.022654809, 0.009374403, 0.021390684, -0.0081883995, 0.02325136, -0.05698501, 0.026660236, 0.019302748, -0.014494816, -0.017314238, 0.014189438, 0.0093602, 0.0074924207, 0.030907124, -0.004388925, 0.00553942, 0.052638695, 0.01115696, 0.051417183, 0.039173644, -0.014423798, 0.045082357, -0.046190243, -0.0103757605, -0.027739711, -0.0019103898, 0.087323986, -0.059825737, 0.011732208, -0.022768438, 0.03210023, 0.044514213, 0.027512453, -0.010674037, -0.008607407, 0.0140403 ]
As you now know, you need a tokenizer to process the text and include a padding and truncation strategy to handle any variable sequence lengths. To process your dataset in one step, use 🤗 Datasets map method to apply a preprocessing function over the entire dataset:
[ 0.026338255, 0.0051213275, 0.012594773, 0.015808424, -0.017791314, -0.02345281, 0.007870024, 0.010878547, -0.018201567, 0.035965532, 0.022153674, -0.0099691525, 0.0031350183, -0.021333167, 0.00049144914, 0.018721221, -0.031780947, -0.06268669, -0.029045926, 0.0017461402, -0.02808867, -0.0048341504, -0.07100116, -0.03325786, -0.008075151, 0.01995198, 0.0053503853, 0.04206463, 0.081667736, 0.0444441, -0.0027965594, 0.014263136, -0.0063623437, -0.00050426956, -0.015781073, -0.040505666, 0.010796497, 0.01601355, -0.039302256, -0.041216772, -0.010892223, 0.0075760093, 0.03569203, -0.021387868, -0.055794436, 0.003955525, -0.013162291, -0.0021589575, -0.01866652, -0.01372297, -0.014837491, 0.016916107, 0.031480096, 0.017476786, -0.018871648, -0.0012957164, -0.022987854, -0.018625496, -0.050515845, -0.018324643, 0.011063161, 0.049148332, -0.01595885, -0.066789225, 0.012834088, 0.03960311, 0.0011068289, 0.004307659, -0.060662773, -0.041627027, -0.05259446, 0.0027435683, -0.015548596, -0.044334695, -0.03853645, -0.011658029, 0.043842394, -0.0047897063, -0.0099349655, 0.07160286, 0.011719567, 0.028553624, 0.023630586, 0.018516095, -0.042885136, -0.05639614, 0.051910706, -0.013606732, 0.00048076548, -0.015042618, -0.047862872, 0.009606763, -0.029866433, -0.007227294, 0.027596366, 0.045866307, -0.02948353, 0.035254426, -0.0022410082, -0.00007777717, 0.049312435, 0.070344746, -0.03055019, 0.020950263, -0.010187955, 0.034926224, 0.034051016, -0.036266383, -0.027268164, 0.053497016, -0.02118274, -0.00511449, 0.040724467, -0.026064754, -0.030440789, 0.030577539, -0.0038461238, 0.02769209, -0.04994149, -0.009299072, 0.020471634, 0.009381123, 0.029018577, -0.04843723, 0.002073488, -0.07964382, -0.019186174, 0.028389521, -0.015835773, -0.027145088, 0.0056238878, 0.021497268, 0.04980474, 0.049093634, 0.034871522, 0.009203347, -0.008840957, -0.017476786, 0.012669986, -0.045893658, -0.02104599, 0.036403134, -0.030495489, 0.088012986, 0.0040786006, -0.019008398, 0.01716226, -0.0444441, -0.019459678, 0.010119579, -0.07816691, 0.01984258, 0.010092229, -0.020635737, -0.022536576, -0.03227325, -0.015425521, -0.0036307408, -0.013422118, -0.008567454, 0.006844391, -0.0058255955, -0.050515845, 0.03484417, 0.0019418652, 0.017613538, -0.034351867, -0.010837522, 0.0030786085, -0.03982191, -0.026488682, 0.0061367042, 0.017763963, 0.020116081, 0.04075182, 0.012205033, 0.068156734, -0.005805083, 0.016287053, 0.01601355, -0.010297355, -0.0254357, -0.013237503, 0.012471697, -0.012526398, -0.014550313, -0.0033469824, 0.013934934, -0.007425583, -0.015042618, 0.032601453, 0.021948546, -0.0046768864, 0.002249555, -0.050953448, 0.0040444126, -0.026461331, 0.019596428, -0.018953698, -0.02045796, 0.00039572341, 0.049148332, -0.031507447, 0.0011341792, -0.008786256, -0.004762356, 0.00093845424, 0.019664804, -0.027760467, 0.0145776635, 0.044827, 0.040423617, -0.011993068, 0.012027256, -0.006598239, -0.023794686, -0.011042649, 0.01844772, 0.014550313, 0.0027264745, 0.015275095, 0.0022204954, 0.042748384, -0.0094563365, 0.039739862, 0.014714415, 0.0051452587, 0.040177464, 0.018748572, 0.028526273, 0.013428955, 0.029592931, 0.021811796, 0.061975583, 0.023329733, 0.021333167, 0.036457837, 0.04086122, -0.0007414472, 0.015794748, 0.00032414278, 0.042721033, 0.039302256, 0.0037469792, -0.014071685, 0.028936526, 0.00035555277, -0.010358893, -0.044061195, 0.02425964, -0.05366112, 0.037250992, 0.015808424, 0.010748634, -0.045893658, -0.044197947, 0.010666584, 0.02769209, 0.014263136, -0.004960645, 0.027322864, 0.031808298, 0.030167285, -0.007883699, 0.039138157, 0.06509351, 0.015452871, 0.04980474, -0.013285366, -0.029784383, -0.034105718, -0.07526779, -0.049093634, 0.0034529646, -0.053032063, -0.019541727, -0.03563733, -0.060553372, 0.014071685, -0.010372569, -0.0023845967, -0.010762309, -0.052539762, 0.040259514, 0.062249087, 0.01221187, -0.022399824, 0.040204816, -0.0028051063, 0.040642418, -0.0029179258, -0.0045059477, -0.026693808, -0.00575722, 0.008772581, 0.031233944, 0.020116081, -0.017121233, -0.03065959, 0.02956558, -0.0049059447, 0.016902432, 0.011213588, 0.0152477445, -0.026037404, 0.013613569, 0.02828012, -0.0152477445, 0.050679944, 0.036375783, -0.005941834, 0.013859721, 0.0254904, 0.029975833, -0.03716894, 0.034871522, 0.033586062, 0.004297402, -0.03563733, -0.054727778, -0.04830048, 0.026283555, -0.04980474, -0.047753472, 0.011254613, 0.06536701, -0.054044023, -0.05519273, -0.011528115, -0.034133065, -0.051691905, -0.040150113, -0.011493927, 0.037442442, 0.027610041, -0.028553624, -0.066789225, 0.01140504, -0.024656218, 0.017121233, -0.0073366947, -0.0319724, 0.013346904, 0.034269817, 0.02819807, 0.0100648785, 0.025367323, -0.037688594, 0.008232415, -0.015357145, 0.031042492, 0.029182678, 0.017545162, 0.033504013, -0.010557182, 0.008758906, -0.059349965, 0.022167347, 0.045291953, 0.022208374, 0.01668363, 0.036430486, 0.007165756, -0.002451263, -0.034187768, -0.026037404, 0.004926457, 0.0054290174, 0.037606545, -0.032792907, 0.027774142, 0.013798183, -0.0082734395, 0.010311031, -0.014550313, -0.047917575, 0.036840737, 0.029948484, 0.05896706, -0.020403259, -0.019582752, -0.01796909, -0.026625434, 0.032574106, 0.0638354, 0.058310654, 0.0158768, 0.0032153595, -0.010611883, -0.024669893, 0.0062700366, 0.020293858, -0.008485404, 0.020512661, -0.029073277, -0.05267651, 0.011528115, 0.0158221, 0.040833868, 0.00919651, 0.04354154, -0.03443392, 0.020813514, 0.008505916, 0.024218615, -0.014796466, -0.066351615, 0.058146555, 0.030112585, 0.0038939866, 0.007138406, -0.024109213, -0.017736614, 0.01721696, -0.022659652, -0.0040922756, -0.033668112, 0.017175933, 0.008786256, 0.03076899, -0.019404978, -0.020061381, -0.038864654, -0.0039692, 0.031698897, -0.05106285, 0.021893846, -0.02828012, 0.009374286, 0.018475069, 0.032218553, -0.02123744, -0.0006564051, 0.013538356, -0.029893784, 0.036074933, 0.051473103, -0.019459678, 0.011398202, -0.0638901, 0.0050632083, -0.0021760515, -0.0081435265, 0.013428955, 0.016779356, -0.016806707, -0.017777639, 0.016806707, 0.025832277, -0.019377626, 0.021483593, -0.0027743373, 0.03333991, -0.023138281, -0.043815043, -0.06257729, 0.00051708997, -0.009244372, 0.028745074, 0.022481875, -0.020362234, -0.00866318, 0.042119328, 0.0037093728, -0.08210534, 0.010427269, 0.0062221736, -0.02168872, 0.02372631, -0.01534347, 0.0036649287, 0.025627151, 0.024697242, 0.024943395, -0.014427238, -0.019883605, 0.00009097151, -0.006352087, -0.014563989, 0.024273315, -0.03946636, 0.0058973897, -0.0041093696, -0.04108002, -0.017367385, -0.051746603, -0.012615286, -0.008888819, -0.03172625, 0.030468138, 0.041353524, -0.018570796, -0.022960505, -0.04118942, -0.009982828, -0.004745262, -0.011254613, -0.01061872, 0.04365094, 0.034242466, 0.041408222, -0.045565456, -0.011042649, 0.01408536, 0.011220425, 0.010331543, -0.01738106, -0.00869053, 0.014386212, -0.004119626, -0.0061196103, 0.018351993, -0.013907583, 0.0036033907, 0.015904149, 0.018215243, -0.0038700553, -0.023890411, -0.045456056, 0.019500703, -0.036840737, -0.045893658, -0.037250992, 0.04633126, 0.007794811, 0.009736676, 0.059678167, -0.007056355, -0.0320271, -0.02819807, 0.0385091, -0.022673327, 0.003859799, -0.043623593, -0.038344998, 0.031315994, 0.024410065, 0.023247682, -0.04562016, 0.004208514, -0.03448862, 0.009121296, -0.024232289, -0.01534347, 0.0095862495, 0.01775029, -0.038126197, 0.0386185, 0.0006350378, -0.0037880046, 0.0008602497, -0.017627213, 0.04326804, 0.05743545, -0.08057373, -0.0152477445, -0.02763739, -0.021975897, 0.02059471, 0.017340036, -0.0041127885, 0.036676638, -0.043705642, 0.03703219, -0.039056104, -0.035527926, -0.062249087, -0.010167442, 0.023220332, -0.03454332, -0.022208374, -0.0048888507, 0.03826295, 0.0023042555, 0.041353524, -0.0072614816, -0.0014529801, -0.038782604, -0.041544974, 0.03199975, -0.027815167, -0.0019025493, -0.0018991304, 0.008280277, 0.04996884, -0.03722364, 0.046468012, 0.061045676, -0.007979425, 0.0076170345, -0.03848175, 0.02956558, -0.018064816, -0.020211808, -0.013545194, -0.01646483, -0.037360393, 0.013353742, -0.04088857, -0.049640637, -0.016054576, 0.01414006, 0.039411657, -0.020321209, 0.037852697, 0.008423866, -0.039521057, -0.093756534, 0.0019777624, 0.037579194, 0.00869053, 0.014003309, -0.022618627, 0.031069843, 0.026488682, -0.06044397, -0.018310968, -0.031233944, 0.055630334, -0.035145026, -0.046878267, -0.0038974055, 0.006646102, -0.035199724, -0.046878267, 0.036840737, 0.0010316159, -0.03692279, -0.025380999, -0.00005795895, 0.020922914, -0.03312111, 0.027350213, 0.028963877, -0.028553624, -0.020512661, 0.020731462, -0.0042939833, -0.017722938, 0.0066050766, 0.036348432, -0.012581098, 0.012765712, -0.040314216, 0.017613538, -0.028936526, -0.01408536, 0.051773954, 0.012150332, 0.017599862, 0.003535015, 0.02833482, 0.044362046, -0.009955478, -0.008779419, 0.023999812, -0.019227201, -0.05639614, 0.0048409877, 0.030112585, -0.013230666, 0.0041606515, -0.035035625, -0.020963939, 0.0076170345, 0.042529583, 0.010092229, -0.081066035, 0.028690374, 0.00085640355, -0.007083705, 0.0085264295, -0.03730569, -0.013244341, 0.04343214, -0.007138406, -0.040396266, -0.0011991359, 0.01218452, -0.035473228, -0.014016985, -0.018324643, 0.034980923, -0.04326804, -0.033695463, -0.0029333103, -0.028362172, 0.01799644, 0.015781073, -0.019596428, 0.026488682, 0.019514378, 0.0076170345, 0.00045042383, 0.028963877, -0.028991226, -0.029620282, 0.013654594, -0.0031298902, 0.011678541, 0.005630725, 0.044498798, -0.06482001, -0.007076868, 0.009565737, 0.019883605, -0.021059664, 0.014276812, 0.059349965, -0.034051016, 0.029182678, -0.01930925, 0.028745074, -0.05355172, -0.02350751, -0.015712697, -0.007986262, 0.0024358784, 0.03998601, 0.015904149, 0.050844047, 0.0009273432, -0.007781136, 0.011623841, 0.019938305, 0.017900715, 0.009100784, 0.032519404, -0.015452871, -0.0062563615, -0.010748634, 0.022550251, -0.0074939583, 0.011999906, 0.004994833, 0.030003184, -0.0053948294, -0.027664742, 0.019473352, 0.024355365, 0.031616848, 0.012642636, -0.024820318, 0.0064820005, -0.023343407, -0.023986137, -0.004256377, -0.051144898, -0.05628674, 0.01084436, -0.015480221, 0.019022074, -0.035090324, -0.028881826, 0.007111056, 0.0014008437, 0.016916107, -0.014618689, 0.0383997, 0.028580973, -0.007671735, -0.03071429, -0.018201567, 0.01539817, 0.0034580927, -0.022399824, 0.004854663, 0.013887071, 0.043076586, 0.012205033, -0.0069230227, -0.045975707, 0.016259702, 0.0070084925, 0.06810203, -0.022563927, -0.0111794, -0.013292204, 0.04452615, -0.058310654, 0.007076868, -0.012683662, 0.015110993, 0.017476786, 0.024533141, -0.0019794716, 0.05368847, 0.030851042, -0.012109308, 0.008239252, 0.010201629, -0.012943489, -0.01794174, -0.029592931, 0.0076033594, 0.05256711, 0.033996314, 0.0076580597, -0.041544974, 0.02613313, 0.027610041, -0.042119328, -0.027035687, 0.023739986, 0.023302382, 0.0070016547, -0.009046083, 0.010105904, -0.03194505, -0.011917856, 0.0006935843, 0.0383997, -0.0017846015, -0.009141809, -0.007152081, -0.050543196, 0.012663149, 0.015685348, -0.06531231, 0.038837302, 0.015712697, 0.02168872, 0.028580973, 0.031890348, -0.040533017, 0.035527926, 0.031562146, 0.04750732, 0.014646039, 0.0028751912, 0.046686813, -0.0102563305, 0.035363827, -0.047151767, -0.024861345, -0.037715945, -0.010796497, -0.065804616, 0.05251241, -0.0020324627, -0.041435573, 0.01866652, 0.0019264807, -0.03446127, -0.04857398, 0.0145776635, -0.03448862, 0.00427689, 0.032327954, -0.027063036, -0.054782476, 0.026037404, -0.016615255, 0.015138343, 0.028526273, 0.038837302, 0.032984357, 0.052840613, 0.027992943, -0.0013350323, 0.025517749, 0.029346779, -0.0024102377, -0.067555025, -0.014372537, -0.015275095, -0.012198195, -0.049558587, -0.03848175, 0.019117799, 0.03946636, -0.022728028, -0.026324581, -0.002649552, 0.02428699, -0.017066533, 0.00024273315, 0.09818727, 0.030003184, -0.016191326, -0.02356221, 0.02945618, -0.05226626, 0.009579413, -0.027104061, 0.027295513, -0.03976721, -0.06810203, -0.024191264, -0.04871073, 0.010386243, -0.020075057, -0.017955415, -0.00074230187, 0.039138157, 0.0038187737, 0.030851042, 0.02956558, -0.028635673, 0.010728122, 0.05891236, 0.023808362, 0.020758811, 0.07220457, 0.03585613, 0.019186174, -0.0031008306, -0.013189641, -0.017134909, -0.018707545, 0.0025435698, 0.008888819, 0.0018734896, -0.042447533, -0.06826613, -0.0023999813, -0.0027555341, 0.02948353, -0.029155327, -0.016642606, 0.031863, -0.06662512, -0.040697116, -0.010605046, 0.028580973, -0.0023982718, -0.019610103, 0.035363827, -0.035172373, 0.2178171, 0.05902176, 0.01855712, 0.010044366, 0.012587936, 0.039329607, 0.017558837, -0.04332274, -0.003076899, 0.0050153453, -0.020868214, -0.04077917, 0.02163402, 0.009859752, -0.033914264, 0.032191202, -0.034187768, 0.009093946, -0.018570796, -0.029647632, -0.043705642, 0.048218425, 0.032601453, 0.06793793, 0.044143245, -0.032437354, 0.0016726365, -0.044498798, -0.03194505, -0.040806517, 0.03963046, -0.054208122, 0.059623465, 0.009805052, 0.0040341564, 0.038974054, 0.0068819975, -0.059678167, 0.024601517, -0.010201629, -0.010810172, -0.028963877, 0.02833482, -0.013832371, -0.012382809, 0.004574323, -0.018324643, 0.040396266, 0.044170596, -0.087794185, 0.011117862, -0.030960442, 0.0317536, -0.06908664, -0.034023665, -0.02921003, -0.06011577, -0.03443392, -0.023179306, 0.02937413, 0.019117799, 0.0098392395, 0.036758687, 0.02693996, -0.013087077, 0.02948353, 0.0055042305, 0.019993005, -0.035664678, 0.0066084955, 0.017230636, -0.0067896903, -0.013668269, -0.011158887, 0.02305623, 0.04737057, -0.0040717633, 0.07406438, 0.003921337, -0.047780823, 0.050597895, -0.030577539, -0.010830685, -0.043404788, 0.006711059, 0.069743045, -0.07975322, 0.03976721, -0.006700802, 0.032957006, 0.00056794425, 0.02000668, 0.029100627, -0.02833482, 0.0064238813 ]
from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("google-bert/bert-base-cased") def tokenize_function(examples): return tokenizer(examples["text"], padding="max_length", truncation=True) tokenized_datasets = dataset.map(tokenize_function, batched=True) If you like, you can create a smaller subset of the full dataset to fine-tune on to reduce the time it takes:
[ 0.017898757, 0.020392392, 0.008693088, -0.00809046, -0.019145574, -0.028926164, 0.020517074, 0.006015894, -0.026072338, 0.03978733, 0.05267111, 0.019353377, 0.00097321026, -0.06721731, -0.006611596, 0.0008658454, 0.00357421, -0.058572713, -0.06455743, -0.0058808224, -0.011872472, 0.005776921, -0.08456193, 0.006150966, -0.008637674, 0.019034745, 0.0013204142, 0.035852928, 0.081680395, 0.032140184, -0.010390145, -0.018314363, 0.00039049628, -0.0057041897, -0.017746368, -0.025379661, 0.04347237, 0.03751535, -0.040757075, -0.055247866, 0.006005504, -0.004000206, 0.034079675, -0.022886027, -0.046409316, -0.013188558, -0.012835293, -0.005742287, -0.0019914445, -0.018065, -0.0105079, 0.023038415, 0.01528044, 0.015266587, 0.006067845, 0.04316759, 0.0041352776, 0.013306312, -0.060623035, 0.0027880224, 0.02647409, 0.023121536, -0.007709488, -0.0769702, 0.035852928, 0.037210573, -0.025407368, -0.031558335, -0.06854725, -0.071705855, -0.043749437, -0.016818183, 0.0005372571, -0.031946234, -0.04918002, -0.005395949, 0.058461882, 0.0019031282, -0.036379363, 0.044996254, 0.018245095, 0.046575557, 0.0031724577, 0.0050877077, -0.05510933, -0.045439567, 0.061675902, -0.00048097715, 0.012731391, -0.008630747, -0.027914857, 0.026335554, -0.015765313, -0.010771117, 0.0353542, 0.021833159, -0.015571364, 0.008970159, 0.017843343, 0.012475101, 0.05014977, 0.07807848, 0.013742698, 0.026446383, -0.04383256, -0.0033317732, 0.03388573, -0.030671708, -0.02497791, -0.0019048599, 0.0040417663, 0.0005260011, 0.038706753, -0.005371705, -0.014476935, 0.031281263, -0.006795155, 0.03480006, -0.0467418, -0.012918414, 0.011138236, 0.022207204, 0.022622809, -0.01401977, 0.017704807, -0.0758065, -0.018286655, 0.03244496, -0.047268234, 0.0031568725, -0.016513404, -0.0072176876, 0.01359031, 0.022525836, 0.036988918, 0.0045508835, -0.027249888, -0.0015186929, 0.024673132, -0.055414107, 0.012128763, 0.023260072, -0.025559757, 0.07458739, -0.006497304, -0.0068367156, 0.019104013, -0.050925564, 0.015308147, 0.013957429, -0.05089786, 0.011817059, -0.0073977835, -0.0048695146, -0.0068609593, -0.061454244, -0.026141606, 0.0032919443, 0.017898757, 0.0047136624, 0.01166467, 0.0068748128, -0.023828067, 0.0144492285, 0.0037058184, 0.026210872, -0.028926164, -0.00036776785, 0.00063553057, -0.03837427, 0.0022719784, 0.009364984, 0.031087315, -0.0065838885, 0.009351131, 0.03665643, 0.060235135, 0.0006402927, 0.012565149, 0.029591134, -0.04823798, -0.012295005, 0.018979331, 0.011034334, -0.017552419, -0.006088625, -0.00033118587, 0.02054478, -0.027152913, -0.0027759005, 0.0133825075, 0.033968847, -0.0031915063, 0.010895799, -0.026377115, -0.031752285, 0.0003181982, 0.018258948, 0.014040549, -0.062950425, -0.02407743, 0.020586342, -0.008319043, 0.000085556356, -0.024991762, -0.027014378, -0.009856785, 0.032666616, -0.02431294, 0.011200577, 0.028981578, 0.025144152, -0.012939194, 0.028247342, 0.019339524, -0.0020122249, -0.009018646, 0.0018044219, 0.024991762, -0.032860566, 0.039870452, 0.012863, 0.024215965, -0.022373445, 0.061565075, 0.005877359, -0.031281263, 0.06339374, 0.03252808, 0.043223005, -0.01932567, 0.057131946, 0.005634922, 0.05679946, 0.029785084, 0.012468174, 0.019367231, 0.030394638, 0.0004067309, 0.009607421, 0.02690355, 0.039371725, 0.036268532, 0.035104837, -0.027402276, 0.031530626, 0.012925341, 0.029785084, 0.0014442302, 0.015779167, -0.05934851, 0.030422345, 0.01618092, 0.022955295, -0.041338924, -0.025684439, 0.02942489, 0.020697169, -0.028427437, -0.0027360716, 0.004935319, 0.048099447, -0.008935525, -0.030339224, 0.0451625, 0.07198293, 0.0019291036, 0.039288603, 0.018175827, 0.0005666958, -0.025421223, -0.02120975, -0.0691568, -0.042751983, -0.042391792, -0.0020416635, -0.011727011, -0.06871349, 0.029009286, -0.031059608, 0.008429871, -0.00040045351, -0.041532874, 0.051867604, 0.031004194, 0.016859742, -0.010757264, 0.03920548, 0.023190804, 0.047157407, 0.0025611708, -0.0119486675, -0.016998278, -0.017497005, 0.015308147, -0.0037439156, 0.023467874, -0.009697469, -0.01290456, -0.0040486935, -0.015377415, 0.01987981, -0.0030460441, -0.021569941, -0.03255579, 0.019921372, 0.028219635, -0.038595926, 0.033580948, 0.010778044, -0.012170323, 0.012267298, -0.00086930883, 0.029591134, -0.046215367, 0.017219935, 0.017095253, -0.023980455, -0.041976187, -0.04682492, -0.025989216, -0.02486708, -0.03130897, -0.022484275, -0.019228695, 0.04372173, -0.018882357, -0.07741351, -0.007841096, -0.020558635, -0.049263142, -0.012038715, -0.008589187, 0.051923018, 0.019478058, -0.022816759, -0.034273624, -0.0004476421, -0.004000206, 0.050620787, 0.05400105, -0.040119816, -0.001349853, 0.03008986, 0.020406244, -0.0047482965, 0.0314198, -0.049817283, -0.004339617, -0.01115209, 0.031059608, 0.01142916, 0.023994308, 0.0373214, 0.010992774, 0.011373745, -0.048598174, 0.005170829, 0.07159503, 0.008173581, 0.022401154, 0.0077441214, 0.029120114, -0.010445559, -0.033553243, -0.031946234, 0.031253558, -0.04383256, 0.014144451, -0.064779095, 0.037376817, 0.0041491315, 0.016624233, 0.0033646754, 0.020392392, -0.01795417, 0.027720908, -0.0061648195, 0.051341172, -0.044469822, -0.015585218, -0.037598472, -0.009572787, 0.011311404, 0.046575557, 0.028067246, -0.0019845178, 0.006393403, -0.011567695, -0.017413883, -0.00811124, 0.02756852, -0.013645724, -0.039288603, -0.020281563, -0.0746428, 0.011858619, 0.016596526, 0.03901153, 0.0064903772, 0.030477758, -0.05053767, 0.014033623, 0.011186723, 0.015973117, -0.0028313147, -0.05757526, 0.04355549, 0.012246517, 0.035243373, -0.022207204, -0.00405562, -0.019824397, -0.008713868, 0.0029144357, -0.023564849, -0.037459936, -0.0062548677, -0.023938894, 0.032805152, 0.00094290567, -0.02195784, -0.051950727, 0.00087969896, 0.03319305, -0.035104837, 0.008138947, -0.041920774, 0.041422047, 0.024908641, -0.023121536, -0.017095253, -0.015599071, -0.00027598822, -0.03881758, -0.0010476729, 0.06084469, -0.047517598, -0.009060207, -0.05275423, 0.008803916, 0.008790063, -0.007231541, 0.018369777, -0.010798824, -0.011096675, 0.008990939, 0.018480605, 0.033636365, -0.018037291, 0.02125131, -0.026543358, 0.025504343, -0.06610903, 0.0042772763, -0.032583494, 0.0058669685, -0.008776209, 0.038429685, 0.020378537, 0.014137524, -0.0064176465, 0.009503519, -0.009344204, -0.04807174, 0.0046582483, 0.0074254903, 0.013451775, 0.054499775, -0.015211172, -0.0031291654, 0.02639097, 0.030893365, 0.0032919443, 0.02148682, -0.0052019996, 0.028898457, -0.014740152, 0.012011008, -0.024659278, -0.035298787, 0.016125506, 0.009822151, -0.031447507, -0.045301035, -0.03225101, -0.010043807, 0.014463082, -0.04347237, 0.05142429, -0.0034997473, -0.029480305, 0.01121443, -0.04665868, 0.0071899807, 0.009953759, -0.018466752, -0.027319156, 0.03075483, 0.022539688, 0.0067570577, -0.0420316, -0.031115022, 0.012835293, -0.02360641, 0.0022061742, -0.033525534, -0.032500375, 0.024340646, -0.010410925, -0.037072036, 0.024922496, -0.025864534, 0.029757377, -0.018632993, -0.011332185, 0.010099221, -0.039898157, -0.01425528, 0.022040961, -0.029979032, -0.068990566, -0.043416955, 0.035492737, 0.0035846, 0.021472966, -0.0006039272, -0.03613, -0.044275872, -0.043804854, 0.03150292, -0.0286768, -0.006459207, -0.029175527, -0.05200614, 0.009385765, 0.0042322525, 0.0065076943, -0.04568893, 0.014123671, -0.0451625, 0.01885465, -0.054416653, 0.0020312734, 0.018397484, -0.0062410138, 0.014504643, 0.058073986, -0.0039724987, 0.01979669, 0.035409614, 0.004973416, 0.039066944, 0.03660102, -0.07176127, -0.04956792, 0.0025663658, -0.0010468072, 0.028358169, -0.014684739, -0.033165343, 0.0032365303, -0.061010934, 0.03754306, -0.021154335, -0.012530515, -0.044663772, -0.034467574, -0.0025403905, -0.015779167, 0.026640333, -0.0059258463, 0.028261196, 0.0071068592, 0.045439567, -0.01740003, 0.01830051, -0.026016925, -0.051895313, 0.02628014, -0.0075778794, 0.014601617, -0.014837127, -0.007210761, 0.06655234, -0.01500337, 0.046353903, 0.04665868, -0.011304478, 0.030394638, -0.035104837, 0.008990939, 0.008478358, -0.0064384267, 0.0072453944, -0.018258948, -0.028981578, 0.0032001648, -0.02120975, -0.055053916, -0.035658978, 0.02482552, 0.025213419, -0.0024555377, 0.05053767, -0.0017360201, -0.0357421, -0.066330686, 0.0045889807, 0.01359031, 0.006192527, 0.0028191928, 0.026321702, 0.010826532, 0.009323424, -0.052975886, -0.008928598, 0.034384456, 0.06538865, -0.03676726, -0.05829564, 0.027956417, 0.024534596, -0.05400105, -0.066053614, 0.0115469145, 0.012738318, 0.014033623, -0.024008162, 0.022955295, 0.016513404, -0.027997978, 0.017261494, 0.028565973, -0.060733862, 0.021459114, 0.016277894, -0.007674854, -0.06123259, 0.004156058, 0.02722218, -0.03177999, -0.0066219857, -0.06533323, -0.0186607, -0.029701961, -0.000039531256, 0.042003892, 0.0067016436, 0.016361015, 0.021043507, 0.038706753, 0.035104837, -0.02247042, 0.019491913, 0.028358169, -0.024340646, -0.026958963, -0.03000674, 0.03571439, -0.01842519, 0.032694325, -0.009344204, 0.005898139, -0.0011862082, 0.023260072, -0.04053542, -0.07192751, 0.012613636, -0.02851056, 0.011089749, 0.027277594, -0.04776696, -0.008464505, 0.05311442, 0.022318032, -0.046326194, -0.012502808, 0.012336566, -0.0077718287, -0.030921072, -0.03421821, 0.019865958, -0.031225849, -0.027263742, -0.012198031, -0.014823274, -0.0018927382, 0.043001346, -0.018272802, 0.01791261, -0.022789052, 0.0110481875, 0.022234911, 0.02803954, -0.03443987, -0.01410289, 0.010085368, 0.0029317527, -0.0380972, 0.046353903, 0.03158604, -0.020586342, 0.003792403, 0.018217389, 0.01956118, -0.054693725, 0.020143028, 0.04973416, 0.0050842445, -0.016901303, -0.010798824, 0.015058784, -0.057519846, 0.0054478995, -0.047850084, -0.058018573, 0.006376086, 0.011588476, 0.040036693, 0.06998802, -0.0063033546, 0.029314063, 0.008485286, -0.0028988505, -0.0036954284, -0.013624944, 0.029701961, 0.051507413, -0.060900103, -0.018979331, 0.027069792, 0.02341246, 0.014393815, 0.016014677, 0.008457578, -0.0115815485, 0.0075570988, -0.008769282, -0.026681893, 0.06178673, 0.045799762, -0.0042114723, 0.013985136, -0.06084469, -0.0048660515, 0.019838251, -0.06389247, -0.061010934, -0.011886327, -0.014975662, 0.022124082, -0.00082991284, -0.06494533, -0.030533174, 0.026446383, -0.005001123, -0.0059016026, 0.037764713, 0.025199566, 0.019616595, -0.0028036076, -0.018868504, 0.008159728, 0.0037612326, -0.055912834, -0.015155759, -0.016056238, 0.029785084, 0.029868204, 0.010660289, -0.013133144, 0.02925865, 0.024437621, 0.019117868, -0.011526135, 0.030505467, -0.0053405347, 0.008443724, -0.012211884, -0.004890295, -0.003494552, 0.038401976, 0.003484162, 0.008554553, 0.0044504455, 0.046492435, 0.032029353, -0.019034745, 0.0101823425, 0.015252734, 0.01913172, -0.01579302, 0.008665381, 0.027000524, 0.04992811, 0.022207204, 0.029674254, -0.02191628, 0.013922795, 0.021514527, -0.020807998, -0.027388424, 0.0082497755, 0.035492737, -0.008436798, 0.001428645, -0.016139358, -0.022013254, -0.02934177, 0.0038997678, 0.020087615, -0.0015117661, 0.026529504, -0.0031395555, -0.05607908, 0.021833159, -0.0054582898, -0.03347012, 0.010584095, 0.038014077, 0.02321851, 0.016624233, 0.015197319, -0.0012338298, 0.02015688, 0.028053392, 0.005787311, 0.050814737, 0.015889995, 0.017081399, 0.0011230016, 0.03773701, -0.043971095, -0.019020893, -0.07885428, -0.0064245733, -0.022553543, 0.04391568, -0.012724465, -0.059847236, 0.01684589, -0.034550697, -0.003837427, -0.039260894, 0.0144492285, -0.05884978, 0.0067535946, 0.035021715, -0.0010433438, -0.052283213, 0.029951325, -0.013389434, -0.00074246246, 0.0156129245, 0.062285457, 0.021320578, 0.06965553, 0.06056762, 0.010667216, 0.0068990565, 0.021611502, 0.00834675, -0.04718511, -0.032223303, -0.0012805854, 0.038900703, -0.052809644, -0.040202934, 0.009129474, 0.0032088233, -0.01425528, -0.02529654, 0.04890295, 0.02368953, -0.062451698, -0.015349708, 0.09115621, 0.038014077, 0.022248764, -0.005278194, -0.012828366, -0.053917926, -0.005617605, -0.014476935, 0.04643702, -0.0036504043, -0.057409015, -0.02848285, -0.023855774, -0.0075778794, -0.004436592, -0.031281263, -0.03829115, 0.056466974, 0.0043292274, 0.018009584, 0.017787928, -0.028704507, 0.021930134, 0.07741351, 0.031392094, 0.002689316, 0.050426837, 0.054139584, 0.004665175, -0.005260877, 0.014165231, -0.011013554, -0.033331584, 0.008118167, -0.0013983403, 0.012308858, -0.0632275, -0.017344616, -0.014393815, -0.006396866, -0.017552419, -0.0038097198, -0.024493035, -0.0048244908, -0.065998204, -0.04535645, -0.034467574, 0.041588288, -0.016610378, -0.009849858, 0.015834581, -0.05455519, 0.22597873, 0.03310993, 0.032112475, 0.019381084, 0.022484275, 0.042059306, 0.0045335665, -0.046603266, 0.0017057155, -0.01425528, -0.0014502911, -0.038706753, 0.023564849, 0.003782013, -0.0068574958, 0.021528382, -0.005042684, -0.020253856, 0.04929085, -0.06610903, -0.03310993, 0.062230043, -0.00525395, 0.035465028, 0.033359293, -0.01314007, 0.015183466, -0.044996254, -0.012288079, -0.013881234, 0.055441815, -0.026529504, 0.0455504, 0.004221862, 0.013652651, 0.02407743, -0.009302643, -0.02623858, 0.017746368, -0.0290647, -0.0013706334, 0.02666804, 0.009579713, -0.041034147, -0.027984124, 0.03216789, 0.0036885017, 0.011318332, 0.014712445, -0.06139883, 0.033913434, -0.022789052, 0.06727273, -0.022830613, -0.07841096, -0.029009286, -0.029757377, -0.044691477, 0.007529392, 0.050565373, 0.0253381, 0.008097387, -0.0017784465, 0.047517598, -0.026861988, -0.0053855586, 0.004401958, 0.015474389, -0.022290325, 0.025393516, 0.013036169, -0.0045127864, -0.024202112, -0.013694212, -0.00888011, 0.02619702, -0.012572076, 0.044054218, 0.005815018, -0.0557743, 0.03593605, -0.03075483, 0.025144152, -0.03704433, 0.026778867, 0.047240525, -0.07104088, 0.031530626, -0.028427437, 0.021971693, 0.002368953, 0.023592556, 0.052726522, -0.01361109, 0.015294294 ]
If you like, you can create a smaller subset of the full dataset to fine-tune on to reduce the time it takes: small_train_dataset = tokenized_datasets["train"].shuffle(seed=42).select(range(1000)) small_eval_dataset = tokenized_datasets["test"].shuffle(seed=42).select(range(1000))
[ 0.028790256, 0.010646252, -0.021920806, -0.033258192, -0.024001189, -0.019114384, 0.011281536, -0.018681554, -0.0098154945, 0.022074392, 0.017438909, -0.0039129336, 0.04741596, -0.034179702, 0.027729122, -0.001133564, -0.025927985, -0.0113373855, -0.08444397, -0.0021362314, -0.015526074, 0.01848608, -0.06886205, -0.017983438, -0.04741596, -0.018835139, 0.0031380262, -0.0030298184, 0.053838618, 0.01859778, -0.011833047, 0.031387243, -0.0119028585, 0.029739693, -0.034626495, -0.0151909795, -0.010367005, 0.0004328312, -0.075173005, -0.028650634, 0.021110993, 0.036860466, 0.018220797, -0.033202343, -0.05763636, 0.0023474111, -0.006454072, -0.03549216, -0.01944948, -0.019728726, 0.017843816, 0.05263786, 0.058362402, 0.013368899, -0.021404201, -0.0051904838, -0.03543631, -0.012991917, -0.039904244, -0.0035202443, -0.002127505, 0.040043868, -0.0036022726, -0.013019842, 0.035938952, -0.0019983537, -0.01233569, -0.010318138, -0.04747181, 0.0033474606, -0.04599181, -0.016154379, -0.023680056, -0.01403909, -0.013885505, 0.039904244, 0.011009271, 0.007888698, 0.02164156, 0.0064645438, -0.011225686, 0.04886804, 0.028064217, 0.043562368, -0.019630989, -0.014604563, 0.05434126, -0.008900965, 0.009096436, -0.02211628, -0.0037698203, 0.031163847, -0.052051444, -0.017704193, 0.051129933, 0.0284412, -0.008530963, 0.024210623, -0.019323818, -0.021432126, 0.017941551, 0.09656325, 0.007609452, 0.038926885, -0.033174418, -0.020678163, 0.019309856, -0.04504237, -0.03719556, -0.011016252, -0.0045796335, 0.02249326, 0.023596281, -0.0026842516, -0.0071277525, -0.015749471, -0.01586117, 0.018500043, -0.039150283, -0.019100422, 0.0124334255, -0.02164156, -0.02419666, -0.040937454, 0.035687633, -0.06785677, -0.015595886, 0.04504237, -0.016670983, 0.010283232, 0.007379074, 0.017941551, 0.024908738, 0.03683254, 0.012070406, -0.031387243, -0.017871741, 0.059032593, 0.003014111, -0.027743084, 0.034849893, 0.025914023, -0.021795146, 0.06433827, 0.0050299177, -0.047974452, -0.0070788846, -0.061545804, -0.007790962, 0.021110993, -0.03554801, 0.0019582121, 0.00034643948, 0.027100818, -0.013306069, -0.006886903, -0.029432522, 0.023805717, -0.026388742, 0.01950533, -0.029879317, 0.0123636145, -0.030856676, -0.0037174616, 0.022046467, 0.025509117, -0.028846106, -0.029488372, 0.017536646, -0.047555584, 0.016922304, 0.025271758, 0.02157175, -0.018751364, 0.050543517, 0.0055884095, 0.03697216, 0.0029442995, -0.012656822, -0.049370684, -0.0053754845, -0.009257003, 0.042808402, 0.014702299, -0.03295102, -0.019435517, -0.0010803328, -0.00091016723, -0.011812103, 0.06718657, 0.0049810493, 0.028315539, -0.016433625, 0.025914023, -0.07265979, -0.027296292, -0.02011967, 0.008642662, 0.03697216, -0.050487667, -0.009808513, 0.02680761, -0.049985025, -0.0023125054, 0.028957805, -0.00092238426, -0.050180495, 0.0067821858, -0.009410588, 0.03713971, 0.03286725, 0.008768323, -0.019044572, -0.03021441, 0.019463442, 0.0023264678, -0.01678268, 0.00001577576, -0.0048902947, 0.0010768422, 0.051632576, -0.021348352, 0.064729206, -0.022926092, 0.01865363, 0.014450978, 0.0018726931, 0.06355637, 0.03275555, 0.036720842, 0.0013072201, 0.026821572, 0.027757047, 0.0155121125, 0.040993303, 0.010506629, 0.032783475, 0.008014359, 0.011197763, 0.017131738, 0.023721943, 0.0002805549, 0.01993816, 0.07288319, -0.027240442, -0.012782483, -0.01325022, 0.01252418, -0.055151075, -0.0016039188, -0.064840905, -0.012119274, 0.028706484, -0.024629492, -0.07299489, -0.00035625673, 0.014108901, 0.025257796, 0.006548317, 0.016866455, 0.01774608, 0.038508017, -0.007972471, -0.009124361, 0.041831043, 0.05004087, -0.003944349, 0.04308765, 0.014004184, -0.018988725, -0.028734408, -0.032978944, -0.056659, -0.02072005, -0.0274778, 0.023065714, -0.0035534047, -0.06338883, 0.0359948, -0.009934175, -0.0057175606, -0.0016056641, -0.033174418, 0.04948238, 0.073776774, 0.027324215, -0.04054651, 0.005707089, 0.006639072, 0.021250617, 0.0055395416, -0.028650634, -0.00638077, 0.0078119054, 0.01331305, -0.02583025, 0.021892881, -0.016070604, -0.056240134, 0.04333897, 0.0012007576, 0.001665004, 0.01580532, 0.028580822, 0.005214918, 0.02559289, 0.010241345, -0.016615134, 0.0033108096, 0.00924304, -0.0003658558, -0.0032113283, 0.015232866, 0.037670277, -0.0249227, 0.019854387, 0.025816288, -0.040518586, -0.058865044, -0.050292194, -0.05286126, -0.02443402, -0.0447352, -0.019896273, -0.023568358, 0.04808615, -0.059311837, -0.05554202, -0.033649135, -0.05554202, 0.0036860465, -0.021166842, 0.021683447, 0.06763337, 0.0045726523, 0.016070604, -0.01665702, 0.034905743, 0.0058013345, 0.048840117, 0.020580426, -0.0025393928, 0.065176, 0.04261293, -0.00037261882, -0.016084567, 0.029125351, -0.025941947, 0.018932875, -0.028483085, 0.04060236, -0.01446494, -0.029376673, -0.008384359, -0.0041118963, 0.0026266573, -0.012147198, 0.045126144, 0.03233668, -0.0036755747, 0.021711372, 0.013082672, -0.012147198, -0.010262288, -0.017927589, 0.0061189765, 0.025662702, -0.0008229029, 0.02686346, -0.050683137, 0.026416667, 0.015777396, -0.000768799, -0.0029809505, -0.0070649222, -0.011847009, 0.009990023, 0.035938952, 0.024811001, -0.029404597, -0.028846106, -0.0010314647, 0.035938952, 0.038619712, 0.028036293, 0.009766627, 0.006241147, 0.039289903, -0.034961592, -0.026095534, 0.038871035, 0.04959408, 0.008174925, -0.02018948, -0.025676664, -0.045517087, 0.017899664, 0.039429527, 0.05367107, 0.0038396318, 0.076904334, -0.010883611, -0.017578533, 0.02120873, 0.03172234, -0.020901559, -0.023694018, 0.013152484, 0.057301268, 0.017578533, 0.009194173, -0.00023299584, 0.009564173, -0.0062376563, -0.030465731, -0.005249824, -0.0015384706, -0.02376383, -0.05450881, 0.019896273, -0.050850686, -0.07651339, -0.06618129, 0.020817785, 0.05632391, -0.029153276, -0.0061294483, -0.038424242, 0.036246125, 0.014925696, -0.03702801, -0.037726127, -0.019170234, 0.011742292, -0.06735412, -0.0059339763, 0.042026516, -0.043199345, -0.038563866, -0.05185597, -0.043981235, 0.018918913, -0.0120075755, 0.027449876, 0.002054203, -0.005993316, 0.007455867, 0.012817388, 0.021739297, 0.026360817, -0.0027819877, -0.032280833, 0.0059479387, -0.024043076, -0.014813997, -0.029600069, 0.04333897, 0.014548713, 0.011518895, 0.031107998, -0.0051835026, -0.009864363, 0.032280833, -0.026709875, -0.025118172, -0.011372291, 0.051074084, -0.011958707, 0.050906535, 0.0017889193, 0.016852492, 0.0070788846, 0.0027243933, 0.013920411, -0.011358329, -0.031582717, 0.027868746, -0.0014538242, -0.002254911, 0.012175123, -0.06936469, 0.0023596282, -0.029041577, -0.0109464405, 0.009291909, -0.085505106, -0.04613143, 0.01634985, -0.0378099, 0.03300687, 0.025201946, -0.014744186, -0.023973264, -0.006977658, 0.017271362, 0.0002537211, -0.01227984, 0.0047820867, 0.06673978, 0.025118172, -0.011874934, -0.058697496, -0.032839324, 0.05207937, -0.03289517, 0.0376982, -0.010813799, -0.016280038, 0.019044572, -0.017438909, -0.03166649, 0.004778596, 0.0071556773, 0.035687633, 0.016908342, -0.04406501, -0.0164057, -0.043813687, -0.018807214, 0.019421555, -0.021501938, -0.048672568, -0.032783475, 0.01325022, 0.01361324, 0.018262684, 0.0074139796, -0.055681642, -0.030298185, -0.033286117, 0.0232193, -0.029823467, -0.017815892, -0.0344031, -0.044707276, -0.005197465, 0.0275895, 0.010827761, -0.0029565163, 0.033984233, -0.03920613, 0.023484584, -0.04763936, 0.0014311355, 0.006632091, 0.026905347, -0.01665702, 0.03884311, -0.020929484, -0.00003725097, 0.01950533, 0.035240836, 0.021069106, 0.01986835, -0.052135218, 0.008579832, 0.0107719125, -0.004656426, 0.00006097597, 0.068303555, 0.010429836, 0.020315142, -0.034012157, 0.04520992, -0.04261293, 0.045126144, -0.0056372774, -0.01939363, 0.0064575626, -0.019728726, 0.01854193, -0.004705294, -0.001525381, 0.0013866306, 0.05439711, -0.013208333, 0.011742292, -0.015749471, -0.071375266, 0.024894776, -0.025453268, -0.022954017, 0.005682655, 0.00747681, 0.056798626, -0.05434126, -0.014925696, 0.04065821, 0.0025533552, 0.018206835, -0.031275544, 0.029209126, 0.031191772, 0.008223793, -0.026332892, 0.045070294, -0.017410984, -0.014248524, 0.0103321, -0.06065222, 0.016112491, 0.04423256, 0.0019407592, 0.0015803576, 0.05621221, 0.0038151976, -0.032923095, -0.02455968, 0.005902561, 0.062886186, 0.020259293, -0.0039967075, 0.045126144, -0.02048269, 0.05057144, -0.0061469013, -0.031024225, -0.0075954897, 0.053280126, 0.0036965183, -0.040043868, -0.014758148, 0.015274753, -0.027784972, -0.05149295, -0.01039493, 0.03956915, 0.00783983, 0.011358329, 0.02765931, -0.027743084, -0.038368393, 0.038926885, 0.011344367, -0.03063328, -0.009033606, 0.044707276, -0.022088354, -0.062942035, -0.019240046, 0.02771516, -0.038424242, -0.012936069, -0.038256694, -0.0055046356, -0.02923705, -0.054369185, 0.058194853, -0.019128347, 0.02097137, 0.04230576, 0.011777198, 0.048058227, 0.0073581305, 0.040127642, 0.013745882, -0.029153276, -0.035101216, 0.00455869, 0.04049066, -0.029572146, 0.017760042, -0.0023718453, 0.022618921, 0.011421159, 0.074837916, -0.05263786, -0.06344468, 0.00018009181, -0.0093198335, -0.036441594, 0.071822055, 0.027394027, -0.017676268, 0.035575934, 0.000768799, -0.0275895, 0.0016170086, 0.016112491, -0.04252916, -0.0042654816, -0.06400317, 0.034794044, -0.027575538, 0.0062097316, -0.030074788, -0.0089987, 0.0029024126, 0.04886804, 0.014730223, -0.011819084, 0.00148873, 0.0026772704, 0.012426444, 0.03180611, -0.015609848, 0.011812103, -0.008119076, -0.018918913, -0.051772196, 0.022646846, 0.043534443, -0.05087861, 0.02146005, 0.021795146, -0.008963794, -0.041551795, -0.014381166, 0.07053752, -0.0069078463, -0.028734408, -0.0087194545, 0.028050255, -0.04777898, -0.002237458, -0.042110287, -0.04741596, -0.01580532, 0.028706484, 0.03895481, 0.04247331, 0.0067437897, 0.015358527, 0.010883611, 0.035296686, 0.013145503, -0.010443798, 0.043255195, -0.0009476909, -0.049873326, -0.039373677, 0.005584919, 0.044539727, -0.014786073, 0.052889183, 0.011225686, -0.0070963376, 0.02327515, -0.0077351127, -0.041831043, 0.040686134, 0.0087543605, -0.012754559, 0.0010279741, -0.034933668, -0.055514093, 0.04923106, -0.0022531657, -0.020873634, -0.010003986, -0.031247621, 0.00029538985, -0.027743084, -0.038982734, -0.00082377554, 0.0017740844, 0.016363813, -0.0048484076, -0.01756457, 0.014450978, 0.0077211503, -0.00340331, -0.05802731, -0.014925696, 0.0051171817, -0.0653994, -0.011560782, 0.00023801353, 0.02601176, 0.014869846, -0.029069502, -0.029209126, -0.019491367, 0.008663605, 0.031024225, -0.039289903, 0.018318534, -0.024950625, 0.008914927, -0.014827959, 0.012733615, -0.038200844, 0.047611434, 0.0014354987, 0.0012958756, 0.03616235, 0.024880813, 0.009445494, -0.025215909, -0.03130347, 0.03579933, -0.018765327, -0.034431025, 0.014995507, 0.034961592, 0.04076991, 0.025299683, -0.0034835932, -0.0031589698, 0.03719556, 0.020622313, -0.048700493, -0.012161161, 0.0051206723, 0.02365213, 0.026304968, 0.009194173, -0.06606959, -0.0078328485, -0.013710976, 0.019407593, 0.009627004, -0.005085767, 0.014520789, 0.005682655, -0.034933668, 0.019254008, 0.00826568, -0.011316442, 0.0086496435, 0.07115187, 0.0447352, 0.029935164, 0.029823467, 0.0011152385, 0.019896273, 0.014604563, -0.010262288, 0.015526074, -0.002602223, 0.016936267, -0.0002393225, 0.027826859, -0.05020842, -0.008956813, -0.02887403, -0.012412482, -0.01769023, 0.059367687, 0.0068938844, -0.016252114, -0.012454369, -0.009417569, 0.0072603943, -0.04593596, -0.003598782, -0.07841226, 0.026039684, 0.007923604, 0.0037837825, -0.0018744384, 0.009061531, 0.00486237, 0.0031868943, -0.018472118, 0.09086663, 0.02115288, 0.042054437, 0.041188776, 0.021124955, 0.0035638763, 0.009222097, 0.005556994, -0.033286117, -0.01678268, 0.0007247305, -0.01647551, -0.035855178, -0.05422956, 0.00091016723, 0.0038989715, -0.0014180458, -0.051381253, 0.05439711, 0.0033771307, -0.0066355816, -0.018723441, 0.104717225, 0.024769114, 0.011093045, -0.02479704, 0.018709479, -0.046410676, -0.028273651, -0.040630285, 0.027757047, -0.025034398, -0.048644643, 0.020007972, -0.01848608, 0.009920212, -0.015749471, -0.014339279, -0.0024783078, 0.022632884, -0.0033579324, 0.035659708, 0.03549216, -0.04169142, -0.015944943, 0.034207627, 0.03135932, 0.008126057, 0.06333298, 0.038759336, -0.02516006, -0.008782285, 0.018374383, -0.018304572, 0.008928889, -0.03702801, -0.018709479, 0.002940809, -0.010737007, -0.045796335, -0.01361324, 0.03214121, -0.047862753, -0.0059688822, -0.020203443, -0.0002794641, -0.043478593, -0.02479704, -0.003124064, -0.01325022, -0.0036092538, -0.047025017, 0.03289517, -0.009270965, 0.2270828, 0.033174418, 0.019240046, 0.0074139796, 0.053196352, 0.024071, 0.022577034, 0.039317828, 0.050850686, -0.019798538, 0.008174925, -0.0378099, 0.029823467, -0.0059339763, -0.057524662, 0.0119726695, -0.029125351, 0.031191772, -0.030744977, -0.036385745, -0.01039493, 0.035101216, -0.014772111, 0.030465731, 0.022339676, -0.04861672, -0.0005353668, -0.071431115, 0.0026755251, -0.029935164, 0.0005052606, -0.022130242, 0.03219706, 0.009801532, 0.0019896273, 0.04730426, 0.0046703885, -0.026835535, -0.019603064, -0.016391737, -0.021027219, -0.034375176, 0.009012663, -0.011658518, -0.018123062, 0.003305574, 0.0054068994, -0.019212121, 0.0119377645, -0.026821572, 0.03264385, -0.070369974, 0.010995309, -0.033649135, -0.058865044, 0.0035883104, -0.0794734, -0.024950625, -0.010269269, 0.05009672, 0.0055430317, 0.029600069, -0.05769221, 0.03130347, 0.0120355, -0.018444194, -0.026779685, 0.04065821, 0.012496256, -0.017899664, 0.014395128, 0.023023827, -0.0292929, -0.02862271, -0.018946838, 0.019728726, 0.00449935, 0.03331404, -0.025914023, -0.09019644, 0.025034398, 0.022269864, 0.031945735, -0.019770613, 0.05422956, 0.028357426, -0.010220402, 0.003488829, -0.023721943, 0.029404597, -0.0017889193, 0.049817476, 0.028483085, 0.00048300822, 0.023442697 ]
Fine-tune a pretrained model with 🤗 Transformers [Trainer]. Fine-tune a pretrained model in TensorFlow with Keras. Fine-tune a pretrained model in native PyTorch. Prepare a dataset Before you can fine-tune a pretrained model, download a dataset and prepare it for training. The previous tutorial showed you how to process data for training, and now you get an opportunity to put those skills to the test! Begin by loading the Yelp Reviews dataset:
[ 0.010794558, 0.007839503, 0.017371707, -0.008061849, -0.038243577, -0.016511012, 0.0054116235, 0.008040331, -0.04931786, 0.040710904, 0.038673922, 0.023482645, 0.012931951, -0.024199892, -0.025275761, 0.0059531447, -0.00085352315, -0.0511827, -0.08618432, 0.012989331, -0.003980717, 0.022980573, -0.06719164, -0.004787619, -0.003202505, 0.026365975, -0.024845414, 0.013814164, 0.051871255, 0.019882068, -0.016554046, -0.01761557, 0.0045258244, -0.0021840152, -0.048600614, -0.02163215, 0.035059, 0.015019138, -0.036034457, -0.041858498, 0.0023328438, 0.005268174, 0.0031630564, -0.029062822, -0.03933379, -0.02457286, -0.015406451, -0.0031809877, -0.017314326, 0.0103929, -0.017242603, 0.020929249, 0.023181401, 0.020757109, -0.021144422, 0.022005118, 0.0127096055, 0.015736384, -0.052416362, 0.027986953, 0.016754875, 0.021718219, -0.03712467, -0.08113491, 0.044124994, 0.020800143, -0.020714074, 0.0016595287, -0.05499845, -0.07482314, -0.014366444, 0.01420865, -0.00978324, -0.047567777, -0.056146044, -0.008944062, 0.05743709, -0.005920869, 0.021330906, 0.0636341, 0.016037628, 0.043780718, -0.0065986663, 0.004769688, -0.051469598, -0.060363453, 0.05482631, -0.027857848, -0.01750081, -0.014194305, -0.020255037, 0.027025843, -0.025376176, -0.0021714633, -0.0022234637, 0.019250892, 0.009087511, 0.037612397, -0.0044469275, -0.014961759, 0.06650308, 0.062027466, -0.01324754, 0.009001441, 0.0049489997, 0.018619714, 0.03787061, -0.0027524328, -0.031845737, -0.0088579925, -0.016554046, -0.021933394, 0.019910758, -0.01024945, -0.009302685, 0.0042747883, 0.0036077492, 0.03875999, -0.028159091, -0.027728744, -0.00013806993, 0.019164823, 0.026738944, -0.033968788, 0.040251866, -0.06569976, 0.008305713, 0.027370121, -0.029163236, -0.016855288, -0.004640584, -0.012121463, 0.01959517, 0.032792505, 0.015879834, 0.017715985, 0.008664336, -0.008083367, 0.012939124, -0.041657668, -0.0003474162, 0.007387637, -0.022019463, 0.06024869, 0.018906614, -0.00706129, 0.013390989, -0.05892896, 0.012853054, 0.0042963056, -0.045846388, -0.00027277775, -0.017027428, 0.006781564, -0.03130063, -0.055457488, -0.033022024, -0.016439287, -0.007645846, 0.029980898, -0.021431321, -0.010486142, -0.041083872, 0.022435466, -0.00513907, 0.037899297, -0.030038277, 0.009137719, 0.002119463, -0.046420183, -0.01324754, -0.012587673, 0.019336961, 0.013842855, 0.0014479411, 0.015908524, 0.018920958, 0.01024945, 0.022421122, 0.042432293, -0.005845558, 0.023453956, 0.0165397, 0.032476913, -0.0066668047, -0.02069973, 0.023482645, 0.017773364, -0.032907262, -0.005009966, 0.0313867, 0.035891008, -0.01077304, -0.0007293499, 0.0044182376, -0.0070505315, -0.063978374, 0.0026735358, 0.036378734, -0.05058021, -0.03910427, 0.027943918, -0.007968607, -0.011153181, 0.02946448, -0.015894178, 0.033968788, 0.022277672, -0.030353865, 0.022865813, 0.04096911, 0.0021122906, -0.027298396, 0.023066642, 0.023540026, -0.027154947, -0.056346875, -0.008284195, 0.0175295, -0.021818634, 0.018375851, 0.028015641, 0.021359596, 0.01930827, 0.047940746, -0.00730874, -0.03962069, 0.07275747, 0.052818023, 0.062486503, 0.0041994774, 0.03531721, 0.0072979815, 0.07482314, -0.0045007206, 0.0086213015, 0.045731626, 0.031845737, 0.007029014, 0.017974194, -0.0009951793, 0.024443755, 0.04515783, 0.016023284, 0.016008938, 0.02081449, 0.023869958, 0.030124346, 0.0060750768, -0.019150477, -0.05921586, 0.028116057, 0.025304452, 0.025691764, -0.035059, 0.00208898, 0.010679798, 0.025419211, -0.027872194, 0.015937215, 0.03359582, 0.03525983, -0.009152063, -0.032190017, 0.029163236, 0.06093725, 0.025734799, 0.017099153, 0.003390782, -0.023181401, -0.01676922, -0.045071762, -0.072642714, -0.020197658, -0.03141539, -0.015449487, 0.0065125967, -0.06862613, 0.008994269, -0.029134547, 0.003512714, 0.023496991, -0.065527625, 0.0452439, 0.017916813, 0.009037304, -0.050063796, 0.03325154, -0.018820545, 0.025132312, -0.013046711, 0.012881745, -0.014430997, -0.028718544, 0.010292485, -0.007875365, -0.01027814, -0.036292665, -0.030066967, 0.011074283, 0.0039089927, 0.034341756, 0.030153036, 0.014610308, -0.030841593, 0.010859109, 0.04736695, -0.04171505, 0.046190664, 0.013175815, -0.017256947, 0.0016586322, 0.007208326, 0.0281304, -0.030956352, 0.025691764, 0.033022024, -0.0018702198, -0.035977077, -0.03523114, -0.03586232, -0.045789007, -0.01170546, -0.00923096, -0.011626563, 0.045215208, -0.02270802, -0.07981517, -0.0061683184, -0.0031020904, -0.052072085, -0.004192305, -0.003715336, 0.030038277, -0.0032455397, -0.0028869165, -0.050207246, -0.0154351415, 0.018705785, 0.060363453, 0.045674246, -0.042776573, 0.03738288, 0.021560425, 0.008556749, -0.008793441, 0.010565039, -0.01877751, 0.002630501, -0.015420796, 0.06105201, 0.0068604616, 0.031099802, 0.027929572, 0.015650315, 0.030066967, -0.0438381, 0.04736695, 0.04914572, 0.0013439404, 0.017357362, 0.011526149, 0.007509569, -0.027154947, -0.024759345, -0.045989837, 0.0034284375, -0.0031630564, 0.022521535, -0.067535914, 0.030353865, -0.01225774, 0.002352568, 0.0032849882, 0.0319605, -0.007039773, 0.026882393, 0.01676922, 0.049977727, -0.04171505, -0.03313678, 0.002677122, 0.030382555, 0.031071112, 0.05336313, 0.024314651, 0.02867551, 0.009553721, -0.01778771, -0.01417996, -0.0037511983, 0.021216147, -0.00887951, -0.006803082, -0.030784214, -0.063978374, 0.023740854, 0.06931469, 0.058412544, 0.0469366, 0.022234637, -0.024859758, -0.0074808793, -0.0006544873, -0.028603785, 0.0071545322, -0.029693998, 0.059961796, -0.004565273, 0.036034457, -0.045731626, 0.01027814, -0.015765075, 0.019107442, -0.020355452, -0.011691116, -0.062486503, -0.018734474, -0.0066739772, 0.029980898, 0.009073166, -0.009754551, -0.043866787, 0.0076530185, 0.03936248, 0.0006890048, -0.010816075, -0.032591674, 0.01945172, 0.015363417, -0.025017552, -0.03594839, -0.02646639, -0.042719193, -0.04745302, 0.031989187, 0.05494107, -0.028632475, 0.019953793, -0.03700991, 0.006978807, -0.007947089, 0.013484231, -0.0024242927, -0.020441521, -0.042001948, -0.0115835285, 0.027886538, 0.000665246, -0.028015641, 0.014538583, -0.024759345, -0.013039539, -0.029693998, 0.008994269, -0.05098187, 0.007183222, -0.0059101097, 0.05167043, 0.018978339, 0.00368306, 0.025132312, -0.017127844, -0.038645234, -0.061912704, 0.01962386, -0.018877923, 0.019480411, 0.05264588, -0.017285638, 0.019795999, 0.027226672, 0.022378085, -0.026939772, -0.0067170123, -0.0023256713, 0.009998414, -0.0073589473, -0.0115835285, 0.009625446, -0.022837123, 0.040940423, -0.0015044243, 0.007581294, -0.042920023, -0.026954118, 0.00058052124, -0.0267246, -0.016554046, 0.048285022, -0.014581618, -0.0011529735, 0.017715985, -0.04337906, 0.023124022, -0.010378554, -0.01135401, -0.031243252, 0.051727805, 0.0045760316, 0.03359582, -0.0554288, -0.04452665, 0.014904379, -0.014014994, 0.0234683, -0.010988214, -0.023855614, 0.009876482, 0.0033764371, -0.0055335555, 0.011518977, -0.018447576, 0.017629916, -0.020312417, -0.018031573, 0.003926924, -0.014846999, -0.010177726, 0.026781978, -0.0063225264, -0.032964643, -0.021990772, 0.021330906, 0.024185548, 0.0022198774, 0.010981042, -0.019724274, -0.047711227, -0.023884304, 0.058383852, 0.002582087, 0.010586556, -0.0432643, -0.018031573, -0.003527059, 0.023999063, -0.0048234817, -0.06547025, 0.0330794, -0.049203098, 0.008492197, -0.058383852, 0.0022682915, -0.010651108, -0.018820545, -0.004963345, 0.048141576, -0.008449162, 0.03345237, 0.02233505, -0.013950441, 0.025003208, 0.03158753, -0.072642714, -0.052760642, 0.037095983, 0.0052825194, 0.011009731, -0.010593728, -0.024615895, 0.0036382321, -0.03330892, 0.03546066, -0.031185871, -0.038329646, -0.056174733, -0.00838461, 0.015851144, -0.02180429, 0.0353459, -0.02355437, 0.032218706, -0.0028797442, 0.021173112, -0.026236871, 0.016281493, -0.0004108477, -0.060133934, 0.027556604, -0.015263002, 0.0068317717, -0.0264377, -0.01220036, 0.06093725, -0.017271291, 0.017041773, 0.054109063, -0.024917139, 0.042489674, -0.049547378, 0.018820545, 0.005519211, -0.032046568, 0.032706432, -0.016812254, -0.01750081, 0.008750405, -0.028804613, -0.045588177, -0.038645234, 0.042001948, 0.024027752, -0.017859435, 0.019910758, -0.008097711, -0.026710253, -0.048571922, 0.033968788, 0.021531735, 0.047825985, 0.027857848, 0.03388272, 0.009941034, 0.03313678, -0.049547378, 0.004213822, -0.0013430438, 0.06897041, -0.015076518, -0.050293315, 0.017170878, 0.032649055, -0.053879544, -0.035059, 0.015019138, 0.019996827, 0.015765075, 0.0055837627, 0.013132781, 0.027499225, -0.037841916, 0.042174086, 0.017170878, -0.032763813, 0.004281961, 0.01790247, -0.0003996407, -0.04122732, 0.018978339, 0.030526005, -0.032591674, -0.029091513, -0.05674853, 0.006731357, -0.028962407, 0.02154608, 0.03913296, 0.0133623, 0.01874882, 0.030124346, -0.00040636488, 0.055658318, -0.018978339, 0.0175295, 0.030009586, -0.03744026, -0.04091173, -0.015535556, 0.021259181, -0.018304126, 0.016998738, -0.013821337, 0.006379906, 0.017242603, 0.048629303, -0.02440072, -0.06747854, 0.023210092, -0.028919373, 0.0076745357, 0.03141539, -0.019121788, 0.0076386738, 0.046190664, 0.022751054, -0.046391495, -0.01860537, -0.008040331, 0.0063153543, -0.012429879, -0.03706729, -0.004411065, -0.038186196, -0.038358334, -0.006656046, -0.015406451, 0.013957614, 0.023425266, -0.004242512, 0.009575238, -0.034284376, 0.0093385475, 0.009137719, 0.023210092, -0.043752026, -0.02163215, 0.0005455555, -0.005945972, -0.018949648, 0.029077167, 0.04283395, -0.007301568, -0.0146318255, 0.017988538, 0.0021696703, -0.044096306, 0.026911084, 0.011626563, 0.01642494, -0.025490936, -0.021589115, 0.024845414, -0.04705136, -0.0124657415, -0.05304754, -0.029751379, 0.032878574, -0.0016362183, 0.019164823, 0.034571275, -0.0009620067, 0.0024727068, 0.01225774, 0.02963662, -0.009037304, -0.0124657415, 0.018920958, 0.034743413, -0.013154298, -0.012831537, 0.026896738, 0.03566149, 0.014222995, 0.012408362, 0.02052759, -0.008628474, -0.0032831952, 0.014058028, -0.035977077, 0.054855, 0.051469598, -0.032821193, 0.004052442, -0.048112884, -0.00037834744, 0.028202126, -0.05095318, -0.05715019, 0.013333609, -0.02480238, 0.033825338, -0.07780688, -0.05499845, -0.038387023, 0.024988864, -0.017185222, 0.0021248423, 0.0469366, 0.012910434, 0.008061849, 0.017515156, -0.028575094, 0.0042998916, 0.009453307, -0.03907558, -0.032735124, 0.037813228, 0.023999063, 0.023080988, 0.016396252, -0.024156857, -0.023626095, 0.006329699, 0.017830744, 0.010909317, 0.01694136, -0.046190664, -0.014215822, 0.0042783744, -0.0068174265, -0.025634384, 0.03939117, -0.0017868399, 0.010565039, 0.018103298, 0.02824516, 0.029005442, -0.035030313, 0.005573004, 0.022980573, 0.03514507, -0.016496666, 0.0070326, 0.018476266, 0.062486503, 0.042317536, 0.017113497, -0.024328995, 0.024902793, 0.0020154621, 0.008248333, -0.037927985, 0.01959517, 0.0062579745, -0.02454417, -0.0074019823, -0.0070146695, -0.03700991, -0.011913462, -0.00467286, 0.040624835, 0.00083200575, 0.006437286, -0.018232401, -0.05103925, 0.016927013, -0.017859435, -0.020541936, 0.009575238, 0.018318472, 0.041887186, 0.03678039, 0.014380789, -0.018289782, 0.016267147, 0.02759964, -0.0077606053, 0.05671984, 0.023740854, 0.039878897, -0.013692233, 0.04498569, -0.058269095, -0.013577473, -0.09278299, -0.025949974, -0.019408686, 0.014452514, -0.012903262, -0.05703543, 0.040337935, -0.026236871, -0.0065663904, -0.058154333, 0.006250802, -0.045817696, 0.0023722923, 0.040424004, -0.015119553, -0.06478169, 0.043981545, -0.0051139663, -0.000105793835, -0.0030734006, 0.05307623, 0.025519624, 0.08056111, 0.024960173, 0.013319265, 0.011196216, 0.008614128, 0.0095824115, -0.046764463, -0.023884304, 0.0074952245, 0.0048701027, -0.036751702, -0.028015641, 0.000091392874, -0.006501838, -0.017457776, -0.017328672, 0.04162898, -0.0030805732, -0.05433858, -0.0070971525, 0.088881165, 0.002634087, -0.007947089, -0.0146318255, 0.014079546, -0.06495383, -0.0429774, -0.032448225, 0.034657344, -0.02675329, -0.043292988, -0.054596793, -0.044440582, 0.030439936, -0.005644729, -0.02437203, -0.042174086, 0.05072366, 0.04309216, 0.03388272, 0.0154351415, -0.038358334, -0.010507659, 0.07878234, 0.0058312127, 0.006250802, 0.042116705, 0.060133934, -0.0067564608, 0.016166734, 0.03921903, 0.022894504, -0.03726812, -0.010005587, -0.002646639, 0.01793116, -0.03921903, -0.025074933, -0.015406451, 0.013139953, 0.001981393, -0.00519645, -0.0015196657, -0.011389872, -0.061166767, -0.015205623, -0.034399133, 0.018390195, -0.036235284, -0.028058678, 0.010270968, -0.06403575, 0.24420804, 0.06558501, 0.030353865, 0.034743413, 0.020025518, 0.01476093, 0.013677888, -0.062256984, 0.015607281, -0.023195747, 0.017299982, -0.034542583, 0.003883889, -0.00003177177, -0.012171671, 0.047567777, -0.034628652, -0.008922544, 0.01220036, -0.07155249, -0.06810971, 0.07046228, 0.014029339, 0.061970085, 0.026781978, -0.023267472, -0.007617156, -0.034485206, 0.0139074065, -0.008441989, 0.008284195, -0.013197333, 0.021201802, -0.022248982, -0.0040632007, 0.007753433, -0.025232727, -0.011088628, 0.013491404, -0.021000974, -0.028202126, 0.0019204271, 0.030468624, -0.029148892, -0.033767957, 0.02163215, -0.013957614, 0.0014515274, 0.044842243, -0.049346548, -0.003652577, -0.012135808, 0.077634744, -0.023353541, -0.08136442, -0.020513246, -0.012831537, -0.03325154, 0.016525356, 0.0214887, 0.006727771, 0.04733826, -0.0024099478, 0.0117484955, -0.04871537, 0.004052442, 0.020341106, 0.044096306, -0.024816724, 0.001417458, 0.018705785, -0.028718544, -0.023324851, -0.005978248, -0.00040300278, 0.009187926, 0.015291692, 0.02850337, -0.0040129935, -0.040710904, 0.05293278, -0.024529826, -0.009123374, -0.035604108, 0.021703875, 0.054510724, -0.06661784, 0.028431645, 0.005845558, 0.018547991, -0.0019849793, 0.004163615, 0.07046228, -0.013756785, 0.031845737 ]
small_train_dataset = tokenized_datasets["train"].shuffle(seed=42).select(range(1000)) small_eval_dataset = tokenized_datasets["test"].shuffle(seed=42).select(range(1000)) Train At this point, you should follow the section corresponding to the framework you want to use. You can use the links in the right sidebar to jump to the one you want - and if you want to hide all of the content for a given framework, just use the button at the top-right of that framework's block!
[ 0.010660182, -0.023660244, -0.0013357907, 0.012536008, 0.007156897, -0.01061443, 0.05320287, 0.026091628, -0.015058896, 0.06860164, 0.009104619, 0.0025539338, 0.03017008, -0.030875966, -0.03626161, -0.0137386285, 0.004637277, -0.009601354, -0.040340062, -0.03584331, 0.015111184, -0.0165491, -0.06462776, -0.018954339, -0.05641857, 0.026143916, 0.024732145, -0.0038072078, 0.060026433, 0.045987148, -0.0067451303, -0.003415049, -0.024588354, -0.04410479, 0.022300761, -0.0063039516, 0.0666147, -0.01575171, -0.01856218, -0.019790946, -0.020836702, 0.022418408, 0.03830084, -0.04211785, 0.002799033, -0.012196137, -0.041228957, -0.003401977, 0.010967373, -0.05001331, 0.057516616, 0.007209185, 0.013529477, 0.011856266, 0.0165491, -0.014640593, -0.029830208, 0.031477276, -0.060392447, 0.023790963, 0.017320344, 0.025804045, 0.022614488, -0.08789585, 0.0356603, 0.013385685, -0.036679916, -0.017137337, -0.037699528, -0.008607885, 0.01475824, 0.025555678, -0.00814383, -0.028340004, -0.034954417, -0.011333387, -0.0020670034, 0.0020719054, -0.008575205, 0.004385642, 0.0022320368, -0.00690853, 0.03291519, 0.03793482, -0.024653712, -0.011137309, 0.04504597, 0.023451094, 0.001267163, 0.011405284, -0.007215721, 0.026980521, -0.042222425, -0.025686398, 0.03579102, 0.03098054, -0.031686425, 0.020862846, -0.014052355, -0.03811783, 0.07105917, 0.049751874, -0.009352986, 0.039242018, -0.03532043, 0.028679876, 0.050091743, -0.007810495, -0.056052558, -0.0016895506, -0.025294239, 0.003084982, 0.03333349, -0.042954456, -0.044679955, 0.0588761, 0.019621009, 0.033490356, -0.02810471, -0.026928233, -0.0003733678, 0.012986991, 0.022209257, -0.04313746, 0.033856373, -0.023908611, 0.023111222, 0.07508533, -0.0066046068, 0.034143955, -0.014980464, 0.0082418695, 0.018666755, -0.00089297816, -0.0017385704, -0.021973962, -0.02169945, 0.03730737, 0.046300877, -0.013451045, 0.024601426, 0.06028787, -0.0045327013, 0.08606577, -0.031424988, -0.017176554, 0.003745116, -0.01975173, -0.025856333, 0.025660254, -0.04745121, 0.03377794, 0.037751816, -0.016457595, 0.004624205, 0.0046568853, 0.00830723, -0.016810538, -0.03304591, -0.020196175, -0.025882477, 0.034509968, -0.02724196, 0.039738752, 0.021555658, 0.028653732, -0.020862846, 0.0004415871, -0.0019248459, -0.04564728, 0.017176554, 0.007823567, 0.010986981, 0.008529453, 0.059764992, 0.03403938, 0.007111145, -0.023189655, -0.0020457616, -0.012490256, -0.043346614, -0.020483758, 0.04632702, 0.021019708, 0.023804035, -0.02909818, 0.020928206, -0.073673554, -0.033411924, -0.009535993, -0.006640555, 0.01882362, -0.0048137484, 0.04284988, 0.00018576479, 0.005441203, -0.024549138, -0.04039235, 0.0345884, -0.069647394, -0.03437925, 0.031686425, -0.007777815, 0.021137357, -0.0009934688, -0.015738638, 0.0017173286, 0.023777893, -0.06562123, 0.000315361, 0.036026318, 0.04070608, -0.016339948, -0.033908658, 0.0036111285, -0.037804104, -0.013660196, -0.0027222354, -0.03124198, -0.03226159, -0.039111298, 0.01822231, -0.017987015, 0.017045833, 0.0064869593, -0.026013197, -0.002526156, 0.092601754, -0.035686444, -0.0011299074, 0.008542525, 0.054379348, 0.0038431557, 0.06755588, 0.035477296, 0.017346488, 0.07022256, -0.00247877, 0.0029673346, 0.028418437, -0.013869348, 0.055895694, 0.05741204, 0.02891517, -0.016627531, 0.01942493, -0.0029068766, 0.008137294, 0.017790936, 0.04805252, -0.015451054, 0.059137538, 0.03166028, 0.028523013, -0.06949053, -0.041673403, -0.002812105, 0.068653926, -0.0040000193, -0.034562256, -0.0010531096, 0.009986976, 0.01783015, -0.02035304, 0.02228769, 0.027529543, -0.011098092, -0.013712484, -0.018418388, -0.028889028, -0.03210473, -0.03871914, -0.081203006, -0.03997405, 0.0049412004, -0.020836702, -0.003142172, -0.019176563, 0.0076601673, -0.03678449, -0.01742492, 0.016588315, 0.024823649, 0.03215702, 0.028941315, -0.014170002, -0.02356874, 0.03853613, 0.007934678, 0.0060457806, -0.009254946, 0.01562099, -0.012117705, -0.006529443, 0.015790926, -0.028313862, 0.00031862897, 0.029856352, -0.013091566, -0.0106078945, -0.031791, -0.0027434772, -0.006555587, -0.027895559, -0.043974068, 0.029882496, 0.044889104, -0.007830103, 0.0047451206, 0.04117667, -0.01271248, -0.0058333613, -0.0067516663, 0.008287622, -0.042039417, -0.00024693747, 0.026614508, 0.025372671, 0.0003059655, -0.013424901, -0.038562275, -0.02376482, -0.002496744, -0.02417005, 0.010509854, 0.009333378, -0.033751797, -0.05573883, 0.046013292, -0.098719425, 0.019882448, -0.008196117, -0.028810596, 0.048627686, 0.04820938, 0.027738696, -0.0051732273, -0.02270599, 0.007117681, 0.03639233, 0.020902062, -0.020339968, -0.009954296, 0.051059067, -0.0010702666, 0.014183074, 0.0330982, -0.011137309, 0.0010825215, -0.004447734, 0.021464156, 0.0057941456, 0.030954396, 0.032052442, 0.002187919, 0.075451344, -0.041359674, 0.029411906, 0.024274627, 0.011058876, -0.0029003408, -0.029960928, -0.0046438132, -0.0066634305, -0.013294182, -0.042039417, 0.022836711, -0.04732049, 0.029725634, -0.018379172, 0.04366034, -0.020575263, -0.03262761, 0.015437983, -0.009496777, -0.046300877, 0.02303279, -0.035242, 0.056366283, -0.026339997, 0.01388242, -0.020444542, 0.02303279, 0.024810577, -0.01849682, 0.039268162, -0.038876005, -0.014614449, -0.04345119, -0.016065437, 0.0013088298, 0.0070784655, -0.012562152, 0.01968637, -0.00960789, -0.07445788, 0.01311771, 0.026954377, 0.050693054, 0.034797553, 0.015647134, -0.023058934, 0.0042516543, 0.026222348, 0.0075752, 0.012209209, -0.021176573, 0.02324194, 0.044679955, -0.014875889, -0.026954377, 0.00017483743, -0.00694121, 0.017568711, -0.017385704, 0.021581803, -0.005921597, 0.0040065553, -0.005879113, 0.008385661, -0.0058627734, -0.050771486, -0.008137294, 0.051320508, 0.049228996, -0.07194806, -0.0013627516, -0.03003936, 0.060497023, 0.05861466, -0.018183094, -0.057516616, -0.02550339, -0.030797534, -0.048836835, 0.014170002, 0.06546437, -0.03150342, 0.003983679, -0.03571259, -0.008156902, -0.0021895529, -0.018483749, 0.0019804016, 0.0140000675, -0.019777874, 0.023647172, 0.033281207, -0.0005710812, -0.029830208, 0.01324843, -0.020052385, 0.03197401, -0.019921664, -0.013960851, 0.028575301, 0.036496907, -0.02142494, 0.04313746, -0.017856294, 0.041438106, 0.026143916, -0.010137304, 0.014666737, -0.023581812, 0.051320508, 0.046144012, -0.011875874, 0.04718977, 0.024065476, 0.007169969, 0.039947905, 0.015111184, -0.013045814, 0.023085078, -0.050431613, 0.040836796, 0.00076470955, 0.005977153, -0.0026536074, -0.020170031, 0.031869434, 0.012882415, -0.014379154, -0.04713748, -0.07602651, -0.027921703, -0.035738733, -0.017660215, 0.039738752, 0.03997405, 0.008921611, -0.010287631, -0.032052442, -0.00027287714, 0.0093006985, 0.026928233, 0.014104643, 0.027607976, -0.005444471, 0.015058896, -0.06802647, -0.020091599, 0.03111126, -0.0039215875, -0.012130777, -0.06494149, -0.033751797, 0.032287735, -0.010960837, -0.02716353, 0.010660182, 0.010836653, 0.0025702738, -0.015764782, 0.011993522, -0.003967339, -0.011503323, -0.0036960961, 0.027895559, 0.026156988, -0.03197401, -0.0356603, 0.029228898, 0.0019673298, 0.0024264823, -0.014313794, -0.053908754, -0.018000087, -0.081621304, -0.023385733, -0.009418346, 0.0038889076, -0.032732185, -0.04439237, -0.032993622, 0.047215912, 0.011209204, -0.023621028, 0.013339933, -0.03610475, 0.013274574, -0.009150371, -0.00937913, -0.009908544, 0.0019346498, -0.050771486, 0.043477334, -0.0016111188, 0.01388242, 0.03824855, 0.0023790963, 0.046745323, 0.010379135, -0.037072074, -0.028209286, 0.0039934833, -0.005627478, 0.016130796, 0.06860164, -0.055843405, 0.040340062, -0.050117888, 0.02776484, -0.019725585, -0.0041862945, -0.024758289, -0.008915075, 0.046222445, -0.05735975, 0.014470657, 0.022954358, 0.0014640593, 0.028340004, 0.01441837, -0.04499368, -0.025804045, -0.042876024, -0.040340062, 0.038797572, -0.03605246, -0.027607976, -0.025268095, -0.021777883, 0.016483739, -0.023790963, 0.057150602, 0.08277164, -0.046039436, 0.006529443, -0.05552968, -0.0030670082, 0.0079738945, -0.025738686, 0.02456221, -0.0043072104, -0.06828791, -0.052836854, -0.0057974136, -0.041411962, -0.025019728, -0.017581783, 0.039398883, -0.01607851, 0.024823649, -0.030954396, -0.049804162, -0.065673515, 0.048235524, 0.017804006, 0.0025555678, 0.047294345, 0.0008472263, -0.033464212, -0.0015253341, -0.0011764762, 0.0043006744, -0.031686425, 0.04847082, 0.01017652, -0.0275034, 0.02909818, 0.019438002, -0.0683402, -0.070536286, -0.0032304076, 0.0011201034, -0.021660235, -0.025006656, 0.002509816, 0.023058934, -0.034666833, 0.06912451, 0.00616016, -0.029490337, 0.0025964177, -0.003093152, 0.017634071, -0.038143974, 0.0071372893, 0.03759495, -0.032000154, -0.025987053, -0.020509902, 0.022954358, 0.012346464, -0.022915144, 0.056261707, -0.022143897, -0.014666737, 0.005042508, 0.021372652, 0.07079773, 0.02235305, -0.014902032, 0.022915144, -0.017385704, -0.033751797, -0.040340062, 0.025686398, 0.0041078627, 0.022758279, -0.026117772, 0.037699528, 0.023176583, 0.02383018, -0.013169998, -0.047503497, 0.017464137, -0.03226159, -0.04671918, 0.030483807, -0.012555616, -0.015385695, 0.011437964, 0.04611787, -0.05265385, -0.055320527, -0.012209209, -0.023751749, 0.019268066, -0.025398815, 0.024483778, -0.035425007, -0.004960808, -0.020457614, 0.023111222, 0.012353, 0.010019656, -0.051817242, -0.03262761, -0.0073333685, 0.0250328, 0.031006685, 0.019856304, -0.040235486, -0.03937274, 0.040157057, 0.006836634, -0.027555687, 0.007503304, 0.012594832, -0.05767348, 0.031686425, -0.0025898817, 0.03050995, -0.030692957, -0.019634081, 0.030536095, -0.0008382393, -0.03960803, -0.007908534, 0.01368634, -0.0522094, -0.011483715, -0.020588335, -0.011026197, 0.021411868, -0.017921655, 0.020065457, 0.04279759, -0.009647105, 0.021804025, -0.009496777, 0.01675825, 0.014653665, 0.008699388, 0.0032336756, 0.013973923, -0.0142615065, -0.023934755, 0.020379182, 0.049150564, -0.015215759, -0.01575171, 0.008941219, -0.016065437, -0.02776484, -0.01508504, -0.009405274, 0.063268274, 0.046640746, -0.01742492, -0.003424853, -0.028653732, -0.055163663, 0.015764782, -0.06541208, -0.039346594, 0.014379154, -0.006163428, -0.00694121, -0.09061481, -0.016954329, 0.031215835, -0.0009910178, 0.013843204, 0.004996756, -0.0072287926, -0.0052059074, 0.015268047, -0.0328629, 0.005081724, 0.010575214, 0.029072035, -0.034222387, -0.034509968, 0.0172942, 0.023333445, -0.024862865, -0.016143868, -0.031634137, 0.024536066, 0.0015792559, 0.0015163472, -0.017477209, 0.052287832, -0.01861447, 0.04219628, -0.0155687025, -0.02763412, 0.00095670397, 0.022810567, 0.025516462, -0.027686408, -0.018536037, 0.008902003, 0.055895694, -0.00791507, 0.038745284, 0.06028787, 0.02449685, -0.04073222, 0.006830098, -0.0010955934, 0.07754286, 0.051634233, 0.0015367721, -0.025895549, 0.021777883, 0.021202717, 0.0021176573, -0.020209247, 0.025621038, -0.019947808, 0.004369302, 0.011464107, -0.029019747, 0.018470677, 0.036732204, -0.0069542816, -0.010797437, -0.0019215778, -0.0019150418, 0.02235305, -0.030483807, 0.0032532837, -0.006895458, -0.044784527, -0.018679827, 0.047085192, 0.03597403, 0.03793482, 0.0023039326, 0.0021160233, 0.004725513, 0.029464195, 0.012562152, 0.04253615, -0.0116405785, -0.013261502, -0.015346479, 0.013424901, -0.011705939, -0.03905901, -0.016562171, -0.0257779, -0.026509931, 0.038013253, 0.009705929, 0.008209189, 0.030588383, -0.024418417, 0.020470686, -0.026156988, 0.03610475, -0.05668001, 0.009150371, 0.049412, -0.026601436, -0.016653676, 0.013712484, 0.009202658, -0.020392254, 0.00368956, 0.0678696, 0.032679897, 0.04099366, 0.05526824, -0.0013766406, -0.018784404, 0.03843156, -0.022313833, -0.03652305, 0.010287631, 0.019673297, 0.0038823716, -0.051111355, -0.012183065, -0.005343163, 0.013529477, 0.013490261, -0.02716353, 0.009601354, -0.0038398877, -0.027294248, 0.027712552, 0.011091556, -0.010431423, 0.0025653718, 0.0028758307, -0.03958189, -0.022575272, 0.030065503, -0.011058876, 0.024326915, -0.0030719102, -0.027137386, -0.029281186, -0.017032761, -0.0150458235, 0.017268056, -0.024274627, -0.039895616, -0.0066895746, 0.015699422, 0.009902008, -0.008718996, -0.04434008, -0.009091547, 0.046353165, 0.048758402, -0.00994776, 0.046693034, 0.018705972, -0.01181705, 0.024483778, -0.02296743, 0.005552314, 0.021045852, -0.029333474, 0.01501968, 0.024784433, -0.027268104, -0.009163443, 0.00061805855, 0.032130875, 0.022549128, -0.025150448, -0.08669323, -0.016771322, -0.0440525, 0.030353086, -0.02049683, 0.08360825, 0.017006617, 0.015281119, -0.018326886, -0.05819636, 0.19346498, 0.046876043, 0.02189553, 0.005937937, 0.04350348, -0.02056219, 0.058823813, -0.030091647, -0.003767992, -0.026549147, 0.054222483, -0.020575263, -0.042222425, 0.042614583, -0.01124842, 0.026078556, -0.057098314, -0.02969949, 0.031424988, -0.057255175, -0.010908549, 0.023137366, 0.0239609, 0.009941224, -0.012908558, -0.009013115, 0.040130913, -0.08726839, -0.023516452, -0.04010477, 0.028209286, -0.044130933, 0.037960965, -0.027058953, -0.010725542, 0.033150487, 0.02670601, -0.030274656, -0.013300718, -0.047372777, -0.02069291, 0.045987148, 0.051764954, -0.012869343, -0.03751652, 0.015137328, -0.018601397, 0.004320282, 0.0032451137, -0.05981728, 0.018732116, -0.0060653887, 0.061438203, -0.032653753, -0.009673249, -0.0261047, -0.01271248, -0.045359693, -0.0064019915, 0.014509873, 0.0025784438, 0.014640593, -0.0140131395, 0.043686483, -0.03171257, 0.026326925, 0.015817069, -0.011065412, 0.025686398, 0.022000106, 0.0073268325, 0.024339987, -0.004415054, -0.035477296, -0.0074379444, 0.03398709, -0.013555621, 0.03712436, 0.027346537, -0.020392254, -0.009437954, -0.009241874, -0.0384577, 0.010928157, 0.028209286, 0.07315068, -0.043581907, -0.0056928378, -0.044784527, 0.03545115, 0.03610475, -0.0002979998, -0.018392244, -0.003767992, -0.01661446 ]
from datasets import load_dataset dataset = load_dataset("yelp_review_full") dataset["train"][100] {'label': 0, 'text': 'My expectations for McDonalds are t rarely high. But for one to still fail so spectacularlythat takes something special!\nThe cashier took my friends\'s order, then promptly ignored me. I had to force myself in front of a cashier who opened his register to wait on the person BEHIND me. I waited over five minutes for a gigantic order that included precisely one kid\'s meal. After watching two people who ordered after me be handed their food, I asked where mine was. The manager started yelling at the cashiers for \"serving off their orders\" when they didn\'t have their food. But neither cashier was anywhere near those controls, and the manager was the one serving food to customers and clearing the boards.\nThe manager was rude when giving me my order. She didn\'t make sure that I had everything ON MY RECEIPT, and never even had the decency to apologize that I felt I was getting poor service.\nI\'ve eaten at various McDonalds restaurants for over 30 years. I\'ve worked at more than one location. I expect bad days, bad moods, and the occasional mistake. But I have yet to have a decent experience at this store. It will remain a place I avoid unless someone in my party needs to avoid illness from low blood sugar. Perhaps I should go back to the racially biased service of Steak n Shake instead!'}
[ 0.036852144, -0.0066171573, -0.04598619, -0.018641498, 0.008114366, -0.0015726071, 0.024328735, -0.005385641, 0.033118103, 0.03294576, 0.035358526, -0.0071234074, 0.058394708, -0.024931926, 0.021398947, 0.03420959, -0.011051335, 0.0047537256, -0.06445535, -0.0034270629, -0.018110115, 0.0055615716, -0.0672128, -0.020307457, -0.09564898, -0.0120135695, -0.034468103, -0.021959053, 0.050151087, 0.043573424, -0.049547896, 0.0002641208, 0.011927399, -0.051989388, -0.033204272, -0.023495756, -0.016659582, -0.015481922, -0.08008089, -0.03202661, 0.010979527, -0.013801603, 0.020192564, -0.049433004, -0.059629817, 0.0208532, 0.02463033, -0.04578513, -0.027100544, -0.04236704, -0.006243753, 0.038374487, 0.032400016, -0.008875536, -0.009141228, -0.015754795, -0.015941497, -0.002428924, -0.024027139, -0.013435379, -0.008121546, 0.029872354, -0.021140436, -0.030791504, 0.009773143, -0.012465963, -0.0062904283, -0.026612246, -0.01403857, -0.016415434, -0.04394683, 0.01637235, -0.0076619717, -0.029384056, -0.020723946, 0.028910121, 0.033922356, 0.02572182, -0.005705189, 0.012444421, 0.0019585781, 0.028579801, -0.025980331, 0.011367293, -0.018885648, -0.03688087, 0.035932995, -0.032802142, -0.037771296, -0.029240439, -0.013140963, 0.03217023, -0.028795226, -0.0015959449, 0.048054278, 0.002312235, 0.011625803, 0.037800018, -0.0054215454, -0.009371015, 0.046101086, 0.10834473, -0.0161282, 0.017334582, -0.027028736, -0.021887245, 0.006530987, -0.0037807198, -0.06692556, -0.020881925, -0.020364903, 0.0144550605, 0.014677666, -0.01193458, 0.015682986, 0.05537875, -0.0003033911, -0.02362501, -0.04796811, -0.00571596, 0.0067176893, -0.013119421, -0.020451074, -0.048083, 0.05957237, -0.03874789, 0.0005147775, 0.056269176, -0.025061183, 0.008085642, -0.0015367029, 0.0531096, 0.021987777, 0.033405334, 0.039351083, -0.027000014, -0.0025150944, 0.014763837, -0.00015023694, -0.02664097, 0.02605214, -0.0059816516, -0.026956927, 0.08197664, -0.015410114, -0.042912785, -0.022030862, -0.04773832, -0.030992568, -0.021757988, -0.04380321, 0.022978734, 0.0056656944, 0.004297741, -0.03438193, -0.0067392318, -0.021872884, 0.055436198, 0.003141624, 0.0076691527, -0.019847881, -0.0028113045, -0.039609592, 0.027703736, 0.009342291, 0.034468103, -0.024400543, -0.02714363, 0.038776614, -0.057935134, 0.01285373, 0.0065561202, 0.017262774, -0.024745224, 0.082493655, 0.015395752, 0.08910004, 0.0026228072, 0.018785115, -0.017032987, -0.0026712778, -0.0054754014, -0.036737252, 0.015668625, -0.024572885, 0.016013306, -0.00520971, 0.0059098434, -0.029441504, 0.020881925, 0.017751072, 0.051644705, -0.044061724, -0.0034342436, -0.020407988, -0.0076691527, -0.006118088, 0.04093087, 0.02823512, -0.02967129, 0.003841757, 0.06278939, -0.03530108, 0.015568092, 0.032313846, 0.024443628, -0.028105864, 0.046962786, -0.00011461317, 0.026942566, 0.027804269, 0.028192034, -0.012035112, 0.0098018665, 0.03107874, -0.013313305, -0.019474477, 0.02092501, 0.008444685, 0.0037053209, 0.050151087, 0.0004483546, 0.019546285, 0.020896286, 0.03834576, 0.003881252, 0.0023750677, 0.036105335, 0.032658525, 0.042797893, 0.0097516, 0.051070236, 0.03731172, 0.0408447, -0.008092823, 0.027272886, 0.03285959, 0.016846284, 0.03050427, 0.0020070488, 0.02530533, -0.024572885, 0.039236188, 0.023581926, -0.032543633, -0.010606122, -0.03412342, 0.0045059863, -0.0807128, 0.029369695, -0.060204282, 0.042625554, 0.004269018, -0.04529683, -0.06864897, 0.0048255343, -0.006692556, 0.02899629, 0.005396412, 0.008717557, 0.010512771, 0.015812242, 0.0067356415, -0.0010699473, 0.05698726, 0.008846813, 0.003470148, 0.03857555, -0.01638671, -0.040873423, -0.035760656, -0.036421295, -0.04041385, -0.025951609, -0.031653207, -0.0026856395, 0.01614256, -0.037685126, -0.004814763, -0.029901078, 0.031308524, 0.018842563, -0.016013306, 0.034468103, 0.013018889, 0.054373432, -0.038259592, 0.0033696159, 0.000043449778, 0.028306928, 0.0017198146, -0.019101072, -0.0028184855, -0.012911176, 0.04386066, 0.023337778, 0.028967567, -0.041648954, -0.041447893, 0.03889151, -0.014749475, 0.020393627, 0.021341499, 0.06278939, -0.014081656, 0.021643095, 0.017578732, -0.016860647, 0.02865161, 0.04371704, -0.01849788, 0.0111446865, 0.0073890993, 0.032428738, -0.034353208, -0.012573676, 0.035186186, -0.028263843, -0.06284684, -0.03892023, -0.0208532, 0.008100004, -0.017880328, -0.02705746, -0.01193458, 0.06480003, -0.030159589, -0.045095768, 0.0057267314, -0.046589386, -0.027100544, -0.023768628, -0.0054071834, 0.010828729, -0.03917874, 0.03570321, -0.027675014, 0.003999736, 0.017406391, 0.006965429, 0.024142032, -0.010232718, 0.06227237, 0.07094684, -0.006681785, -0.01218591, 0.02463033, -0.029814908, -0.00022653352, 0.0013535911, 0.017937774, -0.027359055, 0.004814763, -0.038632996, 0.00078181556, 0.030532993, -0.027416503, 0.02261969, 0.02823512, 0.03975321, 0.039293636, 0.008186175, -0.020580329, -0.0040392308, -0.028665971, -0.010821547, -0.0047573163, 0.017909052, 0.05250641, -0.049691513, 0.05279364, -0.02302182, -0.022921288, 0.010764101, 0.010397878, -0.05184577, 0.046359595, 0.040040445, 0.03690959, 0.0059385668, -0.0322564, 0.00072032947, 0.0137226125, -0.0031811185, 0.0020196154, 0.016616497, -0.016673945, -0.0013921881, -0.047623426, -0.013607719, 0.024817033, 0.052391514, -0.005033779, -0.011446282, -0.022562245, -0.02849363, 0.01235107, 0.050208535, 0.023323415, 0.0039027943, 0.053138323, -0.040701084, -0.03682342, 0.013047612, -0.0016928865, -0.031050015, -0.03966704, -0.004236704, 0.033979803, 0.0058452156, -0.029039375, 0.007827131, -0.019129796, -0.0024612378, -0.0071664928, -0.02504682, 0.007755323, -0.008523675, -0.046187256, 0.033146825, -0.008789366, -0.076174505, -0.06629365, 0.042912785, 0.03966704, -0.0062150294, -0.0029782595, -0.0046496033, 0.0030105733, 0.026368098, -0.009500271, -0.048944704, -0.026885118, -0.006437636, -0.04716385, -0.00420439, 0.047680873, -0.048284065, -0.019330861, -0.05624045, -0.005048141, -0.008121546, -0.01637235, 0.0010448144, 0.003175733, 0.010484047, -0.01974735, -0.005216891, -0.008100004, -0.0034773287, 0.024127671, -0.0697979, 0.028105864, -0.02125533, -0.0034234724, -0.009256122, 0.023151075, 0.018440435, 0.04923194, 0.014189368, 0.010455324, 0.016314901, 0.04242449, -0.008516493, -0.017248413, 0.012451601, 0.028838312, -0.016257454, 0.06324897, 0.0055723432, 0.022634054, 0.010771282, 0.0012072811, -0.026684055, -0.0020806526, -0.07060216, -0.004890162, -0.002107581, -0.003218818, 0.058710665, -0.07295748, 0.021987777, -0.035358526, -0.02428565, -0.00020072733, -0.05414364, -0.0417064, 0.013248676, -0.029125545, 0.012035112, 0.0017700806, 0.011051335, 0.007267025, -0.016903732, 0.023050543, 0.0025761316, -0.009615164, 0.019905329, 0.0707745, 0.040184062, -0.0015815832, -0.07818514, -0.041562784, 0.027172353, -0.01605639, 0.029642567, -0.015266497, 0.01420373, 0.008380057, 0.012293623, -0.027430864, 0.0027377007, -0.013255857, -0.0020034583, 0.020149477, -0.026253205, -0.021757988, -0.017664902, -0.01924469, 0.024271289, -0.018512243, -0.062559605, -0.026095225, 0.026899481, 0.00705878, 0.007934844, 0.05471811, -0.04167768, -0.03395108, -0.010649207, 0.030820228, -0.027861716, 0.01370107, -0.058940455, -0.024558522, -0.007267025, 0.029226078, 0.022547884, 0.00029217103, -0.017133519, -0.021743627, 0.0087391, -0.057877686, 0.0025922884, 0.02774682, -0.0066279285, -0.03418087, 0.022131393, 0.019704266, 0.004401864, -0.0066530616, 0.03530108, 0.0019029265, -0.000037390935, -0.07203833, 0.0045777946, 0.024185117, 0.013471283, 0.0015582454, 0.028838312, -0.00529229, -0.0043156934, -0.001479256, 0.026870757, -0.038431935, 0.0009613369, -0.016616497, 0.006933115, 0.018756391, -0.019761711, 0.0008325303, -0.04581385, 0.01816756, 0.020522881, 0.046847895, -0.03834576, 0.000104795596, 0.0006188999, -0.055120237, 0.017923413, -0.007511174, -0.0064017316, -0.023036182, 0.0046567842, 0.073876634, -0.025678735, -0.00007416476, 0.037426613, -0.009780324, 0.010864633, -0.020695223, 0.041131936, 0.0067859073, 0.039638318, -0.008128727, -0.003033911, -0.023840437, -0.0039710123, -0.000211723, -0.05799258, -0.0027341105, 0.027330332, 0.014239634, -0.021729266, 0.047364917, 0.0007674538, -0.04027023, -0.049576618, 0.04259683, 0.009234579, 0.0058272635, 0.025851076, 0.009945484, -0.013406656, 0.06014684, -0.009500271, -0.0066279285, -0.013270219, 0.07967876, -0.022662777, -0.022792032, -0.01562554, 0.025750544, -0.017463839, -0.016932454, 0.010060377, 0.04989258, -0.03429576, -0.0035275947, -0.018885648, 0.0017889304, -0.01772235, 0.010713835, 0.025606927, -0.022720223, -0.01749256, 0.032342568, -0.008681653, -0.08548089, -0.017277136, 0.035243634, -0.039781936, -0.03346278, 0.009514633, 0.034267038, -0.03334789, -0.063134074, 0.055838324, -0.026339374, -0.011166229, 0.03478406, 0.0018885647, 0.055321302, -0.00086304895, -0.002999802, 0.008143089, -0.014498145, -0.049519174, -0.008207717, 0.027789908, -0.01756437, 0.044406403, -0.007762504, 0.011532452, -0.0040033264, 0.043458533, -0.058796838, -0.0626745, 0.003513233, -0.014325805, -0.025894161, 0.025391502, 0.017176604, -0.021556925, 0.016673945, -0.014720752, -0.056183007, 0.044980872, 0.019560648, -0.04529683, 0.015941497, -0.06405322, 0.06008939, -0.048284065, 0.03277342, -0.05414364, -0.029470228, 0.025836714, 0.058681943, -0.028091503, 0.01286091, 0.03690959, 0.044751085, -0.03294576, 0.020609053, -0.02638246, 0.0056441515, -0.0029782595, 0.02116916, -0.043659594, 0.014354528, 0.04839896, -0.035789378, 0.016659582, 0.026741503, -0.016903732, -0.010577398, -0.0006633314, 0.0354447, 0.008918622, -0.004150534, -0.018555328, 0.049002152, -0.045842577, 0.0050230077, -0.021729266, -0.02395533, -0.025448948, 0.025147352, 0.03530108, 0.056010664, 0.012042293, 0.014648943, 0.016846284, 0.041648954, 0.022002138, 0.0012171548, 0.03168193, 0.0028454135, -0.04098832, -0.031825546, 0.021413308, 0.046072364, -0.027876077, 0.03277342, 0.0026856395, -0.011194952, -0.0060965456, -0.0020627005, 0.0021901606, 0.053741515, -0.0038525285, -0.0265548, 0.0012467758, -0.0168032, -0.026411183, 0.030820228, -0.06554684, -0.017449476, 0.015094156, -0.015424475, -0.012221814, -0.04032768, 0.012724474, 0.0031200813, 0.0201782, 0.009974207, -0.0058021303, 0.025075544, -0.02797661, -0.01706171, -0.015395752, -0.05333939, -0.023854798, 0.041218106, -0.013342028, -0.042108532, 0.005385641, 0.035186186, -0.006563301, -0.020221286, -0.010182451, -0.026928205, 0.019531924, 0.046618108, -0.03277342, 0.010440962, -0.059285134, 0.017894689, -0.018382987, 0.014239634, -0.010491229, 0.03573193, 0.012358251, -0.0045239385, 0.0061396305, 0.0071054557, 0.022906926, -0.0069797905, -0.010563037, 0.004132582, 0.0075758016, -0.028350014, -0.014864368, 0.016745752, 0.037369166, 0.020738307, 0.021456392, -0.0026425545, 0.032514907, 0.025793629, -0.047192577, -0.0245298, 0.025736183, 0.029470228, 0.014936177, 0.025779268, -0.021729266, 0.004563433, 0.017435115, 0.050955344, 0.04294151, -0.016271817, -0.009148409, 0.00094158953, -0.014024209, 0.012006389, 0.020120755, -0.06336386, 0.02941278, 0.017320221, 0.030734057, 0.011891495, 0.04118938, -0.026813312, 0.028350014, 0.026942566, -0.0120135695, 0.0044844435, 0.009528994, 0.04253938, -0.034640443, 0.015998945, -0.009938302, 0.00848777, -0.030389376, -0.071980886, -0.0070121046, 0.030475546, 0.034554273, -0.031969164, 0.015654262, -0.045584064, -0.020551605, -0.07548514, -0.016099475, -0.055522367, -0.026899481, 0.01109442, -0.028924482, -0.004211571, 0.012473145, -0.022964373, 0.008257982, -0.026755864, 0.053712793, 0.030734057, 0.07605961, 0.024917565, -0.00084105757, -0.0028328472, 0.02059469, -0.031739376, -0.026899481, 0.006100136, 0.017636178, -0.04590002, -0.05856705, -0.066178754, 0.02530533, 0.008114366, 0.03420959, -0.029197354, -0.006520216, 0.013736974, -0.0071557215, -0.0035706798, 0.07244046, -0.012595219, 0.01411756, 0.008351333, 0.010785643, -0.033232994, -0.024113309, -0.030159589, 0.026913842, -0.043659594, -0.008042557, 0.0283931, -0.025994694, 0.0106563885, 0.008753462, -0.0050840448, -0.0046926886, 0.0032421558, 0.014850007, 0.06135322, 0.026080864, -0.024817033, -0.017219689, 0.027861716, 0.014282719, 0.0014469422, 0.08513621, 0.04380321, 0.010268622, -0.018842563, -0.026095225, 0.010706654, 0.030360652, -0.0049117045, -0.008710377, -0.012279261, -0.03688087, -0.05664258, -0.010448143, 0.024429267, -0.006186306, 0.0015492693, -0.0096797915, -0.006706918, -0.05109896, -0.01252341, -0.042797893, 0.03438193, -0.0041038585, -0.035760656, 0.013169687, -0.061640456, 0.24357459, 0.030992568, 0.050265983, 0.016673945, 0.016918093, 0.037512783, 0.029297886, 0.033491503, 0.00066647306, -0.01630054, -0.013284581, -0.018871285, 0.0075829825, 0.029987248, -0.020709584, 0.012006389, -0.042740446, -0.014907454, -0.019761711, -0.03892023, -0.02125533, 0.013054794, 0.035157464, 0.04664683, 0.009773143, -0.06416812, -0.023222884, -0.05144364, 0.04716385, -0.014218092, -0.024228202, -0.037943635, 0.018871285, 0.026684055, -0.0038704805, 0.051989388, -0.0021973415, -0.018038306, -0.039523423, 0.024659054, -0.011561176, -0.035904273, 0.022117032, -0.008602664, 0.0047573163, 0.016501604, -0.026210118, -0.0058164923, 0.030303206, -0.021197882, 0.03076278, -0.0899043, 0.0040105074, -0.04934683, -0.0408447, 0.0059277955, -0.028637247, -0.048255343, -0.048628747, 0.030734057, 0.0144694215, 0.01638671, -0.029901078, 0.04765215, 0.015094156, -0.0029297885, -0.017190965, 0.032400016, 0.010965165, -0.0032960123, 0.0027700146, 0.03504257, -0.023438308, -0.02639682, -0.0065597105, 0.0039710123, 0.0020232059, 0.012444421, -0.03076278, -0.05201811, 0.0022996687, 0.01772235, 0.0030321158, -0.0050230077, 0.038173422, 0.046675555, -0.033721294, -0.0007925868, -0.012947081, 0.042223424, 0.009536175, 0.040672358, 0.041620232, 0.024888841, 0.037685126 ]
Train with PyTorch Trainer 🤗 Transformers provides a [Trainer] class optimized for training 🤗 Transformers models, making it easier to start training without manually writing your own training loop. The [Trainer] API supports a wide range of training options and features such as logging, gradient accumulation, and mixed precision. Start by loading your model and specify the number of expected labels. From the Yelp Review dataset card, you know there are five labels:
[ 0.014454641, -0.00023235468, 0.014293587, 0.0041840617, 0.007005871, 0.011803953, -0.010300778, -0.014186217, 0.00050958653, 0.053228512, 0.028291907, -0.059053317, 0.0064589567, -0.04010257, 0.02842612, 0.023634749, -0.022802634, -0.052369557, -0.053819045, -0.03900203, -0.00077591365, 0.021487355, -0.0892242, -0.062972315, -0.020373395, 0.006260994, 0.032157216, -0.0074353497, 0.06844816, 0.058301732, 0.023460273, -0.035593044, 0.0018420609, -0.018011263, -0.05110796, -0.034385137, -0.014629117, 0.0015174354, -0.025647929, -0.047457393, 0.010139723, -0.010314199, 0.033579864, -0.04211575, -0.055241697, -0.007126662, 0.016950987, 0.00059388846, -0.0003250449, -0.017944155, -0.005348352, -0.003019772, 0.041337322, 0.0037680042, -0.020802874, -0.044773154, -0.035270937, -0.020722346, -0.04971216, -0.020480765, 0.027258474, 0.052047446, 0.01021354, -0.047296338, 0.017299937, 0.029365605, 0.00017646792, -0.025674772, -0.015716236, -0.040370997, -0.037337802, -0.0015744756, -0.008569442, -0.0095559005, -0.038492028, -0.0016709404, 0.022829477, 0.006260994, 0.010200119, 0.051779024, -0.009844457, 0.04998058, 0.05610065, 0.009388136, -0.0208834, -0.05873121, 0.036505688, -0.0031137203, -0.070702925, -0.026936365, -0.04407525, 0.049282677, -0.04300155, 0.004730976, 0.04310892, 0.011005391, -0.009206949, 0.03551252, 0.038223602, -0.0027614136, -0.002904014, 0.07242084, -0.005952306, 0.039163087, -0.014307008, 0.00054775306, 0.0022732173, -0.012803833, -0.04662528, -0.0072474526, -0.014360693, -0.004133732, 0.015608866, -0.0426526, -0.019272856, 0.021809464, -0.0052242056, 0.041256797, -0.046464223, -0.01543439, -0.009005631, -0.007891671, 0.025164766, -0.06624708, 0.008582863, -0.048692144, -0.033177227, 0.041015215, -0.014092269, 0.019125223, 0.01786363, 0.0038854398, 0.044477884, 0.028587174, 0.018615216, -0.026788732, 0.0031137203, 0.020172076, 0.01121342, -0.010931575, -0.013172916, 0.009045894, -0.04673265, 0.09598848, 0.00954919, -0.008280885, -0.005455721, -0.037552543, -0.0100122215, 0.017460993, -0.049175307, -0.0030734567, 0.00006715847, 0.015702814, -0.043806825, -0.012944756, 0.00032567402, 0.019635228, -0.021218931, 0.0044659073, 0.0071132407, -0.00954919, -0.023017373, 0.021406827, -0.03019772, 0.0506248, -0.0050698617, -0.04173996, 0.017917313, -0.0322109, -0.007059556, 0.016078608, 0.0063146786, 0.022359734, 0.05051743, -0.015259914, 0.06173756, -0.012414618, 0.019702334, 0.0057576983, -0.0014553623, -0.048289508, 0.029043496, 0.0014981424, 0.014011742, 0.009730376, -0.019286277, 0.013253444, -0.034599874, -0.0029627318, 0.04010257, 0.064690225, 0.0023453562, -0.0010493707, -0.052423242, 0.0021692028, -0.050275847, 0.024923185, -0.015045175, -0.007562851, -0.023218691, 0.05599328, -0.05653013, -0.008790892, -0.03164721, 0.014494905, -0.0012481724, 0.017917313, -0.032908805, 0.01566255, 0.015729656, -0.008535889, -0.024950027, 0.007905092, 0.0086029945, -0.048772674, -0.048450563, 0.033606708, 0.0029627318, 0.0027295384, 0.009978669, 0.010099459, 0.02754032, 0.026372675, 0.029472975, -0.017125463, 0.0081064105, 0.06109334, -0.0034492507, 0.05094691, 0.044155777, 0.012032114, 0.012112641, 0.046464223, 0.009468663, 0.020091549, 0.05041006, 0.049497418, 0.039485198, 0.013709765, 0.005673816, 0.020011023, 0.05185955, 0.049792685, -0.05083954, 0.0061838217, 0.000031298678, 0.000092008675, -0.046356853, 0.023272377, -0.047350023, 0.03253301, 0.021232352, -0.008133252, -0.02920455, -0.04595422, 0.04909478, 0.053657994, -0.010569202, -0.007482324, 0.013488315, 0.0005125224, 0.031298257, -0.029338762, 0.029526658, 0.045283157, 0.015729656, 0.0410689, -0.039431512, -0.04286734, -0.02386291, -0.05185955, -0.05473169, 0.027083999, -0.07027345, -0.024198439, -0.025111081, -0.04131048, 0.021379985, 0.0056167757, 0.00566375, 0.008334571, -0.03188879, 0.028667701, 0.012119352, -0.005237627, -0.051054277, 0.018360214, -0.01942049, 0.006059676, -0.031486157, -0.008415098, -0.022520788, -0.013635948, 0.040183097, 0.028479805, 0.0052040736, -0.037284117, -0.040397838, 0.027231632, -0.024265544, 0.010958417, 0.016803354, 0.025392927, -0.0094216885, 0.008455361, 0.042598918, -0.025970038, 0.04710844, 0.033391967, -0.012575673, 0.037230432, 0.036264107, 0.02453397, -0.03086878, 0.002890593, 0.027070578, -0.007193768, -0.030251404, -0.03320407, -0.058301732, 0.026842417, -0.05183271, -0.0024829237, 0.021621566, 0.041337322, -0.00410689, -0.03685464, 0.01998418, -0.04498789, -0.029714556, -0.056315392, 0.0058550024, 0.03763307, 0.055026956, -0.003408987, -0.09534427, -0.0065763923, 0.013380945, 0.046705805, 0.011542239, 0.0029677649, 0.04318945, 0.05797962, 0.02741953, -0.010703414, 0.03800886, -0.027701374, 0.004133732, -0.0006005991, 0.020064708, 0.0366399, 0.0060361885, 0.015058596, 0.016789932, 0.00799233, 0.0021809465, 0.01742073, 0.044021565, 0.020708924, 0.0111932885, 0.017809944, -0.010542359, 0.016669141, -0.01499149, -0.025902933, -0.011710005, -0.0054020365, 0.010703414, -0.050463744, 0.015300178, -0.0024275612, -0.015004911, 0.019823125, 0.0019125222, -0.06307968, 0.03621042, 0.01598466, 0.052396398, 0.0080124615, -0.023285797, 0.008428519, -0.02532582, 0.020386815, 0.070810296, 0.030573513, 0.009629717, -0.037928335, -0.054436423, -0.04141785, -0.019635228, 0.025970038, 0.009354582, -0.013052125, -0.035593044, -0.02329922, -0.020239182, 0.017299937, 0.020064708, 0.008354702, 0.038169917, -0.033579864, -0.014562012, 0.013703054, -0.00077591365, 0.02399712, -0.042598918, 0.045685794, 0.023567643, 0.010052485, -0.00494236, -0.021366565, -0.0032127018, 0.021715516, -0.033687234, -0.012206589, -0.027057156, 0.016092028, 0.0017296582, 0.02674847, 0.0038015575, 0.020829717, -0.025795562, 0.011911322, 0.0008316955, -0.028909283, -0.005039664, -0.053899575, 0.020521028, 0.040344153, 0.025164766, -0.05508064, 0.011065787, -0.016078608, -0.03553936, 0.04684002, 0.023057636, -0.027647689, 0.025500296, -0.05776488, 0.0033100056, -0.019527858, -0.015407547, -0.03162037, 0.029070338, -0.023071058, 0.008032593, 0.009341162, -0.0030264826, -0.042062066, 0.022144994, -0.048665304, 0.0066569196, -0.033821445, -0.007804433, -0.014696224, 0.044934206, 0.011059076, 0.025339242, -0.0048685432, -0.012636068, -0.02299053, 0.023487115, -0.023621328, -0.07623246, 0.019957338, 0.026560571, -0.023782382, 0.055563804, -0.014521748, -0.02343343, 0.015783342, 0.017675731, -0.007193768, 0.00944182, 0.014924384, 0.019514438, 0.0016575193, -0.018803114, 0.03551252, -0.07242084, 0.026681364, -0.024144754, -0.045444213, 0.007972198, -0.066461824, -0.041176267, -0.024587654, -0.048396878, 0.01632019, 0.044665784, 0.0052476926, 0.010059196, -0.004264589, -0.018722586, -0.01909838, -0.020682083, 0.025339242, 0.026560571, 0.037579384, 0.051805865, -0.042894185, -0.002206111, 0.013018573, 0.019903652, 0.019205749, -0.002097064, -0.0133272605, -0.011293947, 0.0010904733, -0.007005871, 0.0070125815, 0.008079568, 0.02143367, 0.020722346, -0.009475374, 0.0015904133, -0.047215812, -0.029956138, 0.03712306, -0.037445173, -0.070756614, -0.026641099, 0.035431992, 0.0030902333, 0.0047141993, 0.06399232, -0.04318945, -0.043055236, -0.05685224, 0.055456433, -0.032049846, 0.014468063, -0.025352662, -0.03884098, 0.023903172, 0.032398798, 0.01856153, -0.02609083, -0.014723066, -0.02332606, 0.017138883, -0.03564673, -0.03774044, -0.0056436183, 0.01887022, -0.034036186, 0.015555181, 0.014119112, 0.0031439182, -0.0022950268, 0.021608146, 0.023594486, 0.014387536, -0.051698495, -0.027164526, -0.0069857393, -0.00966327, -0.000334272, 0.04200838, -0.0039357697, 0.034465663, -0.017501255, -0.0011307368, -0.021178667, -0.03964625, -0.015327021, -0.020695504, 0.048772674, -0.011072497, -0.016132293, -0.028614016, 0.04361893, -0.009468663, 0.010052485, -0.032291427, 0.0006119232, -0.036693584, -0.05451695, 0.04896057, -0.02987561, 0.011481844, -0.0036673453, 0.032908805, 0.04874583, -0.016293347, 0.03521725, 0.055349063, -0.0047913715, -0.020910243, -0.008415098, 0.03763307, -0.019957338, -0.009690112, -0.027446372, -0.0075091664, -0.0005355901, 0.03986099, -0.00965656, -0.07419244, 0.0017833431, -0.0039257035, 0.043350503, 0.009945116, 0.057442773, 0.025621088, -0.04697423, -0.05583223, 0.0058986214, 0.022735527, 0.0045330133, 0.05473169, -0.008737206, 0.023903172, 0.015004911, -0.010508806, -0.038384657, -0.012495145, 0.05610065, -0.010851047, -0.026278727, -0.02386291, 0.040397838, -0.0060999393, -0.031190889, 0.024050806, 0.008978789, -0.046437383, -0.015743079, -0.01630677, 0.0055698017, -0.032049846, 0.026614256, 0.018387055, -0.02643978, -0.003620371, 0.020910243, -0.0068381056, -0.04563211, 0.0062576383, 0.036264107, 0.004630317, -0.010864468, -0.03411671, 0.018950747, -0.037257276, -0.017192569, 0.05873121, 0.007925224, 0.051671654, 0.02288316, 0.050785854, 0.054060627, 0.0011525463, 0.019246014, -0.0029006586, -0.0019141999, -0.047672134, -0.0012347512, 0.013414498, 0.014293587, 0.016011503, -0.02399712, 0.009139843, 0.06350916, 0.03172774, 0.01632019, -0.07129346, 0.007938645, -0.032345112, -0.001793409, -0.010280645, 0.0023587774, 0.002140683, 0.018950747, -0.0066200113, -0.042464703, 0.01266291, 0.041793644, -0.0566375, 0.0119650075, -0.04673265, 0.012085798, -0.06613971, -0.034277767, -0.022212101, -0.00965656, 0.024292387, 0.056691185, -0.01897759, 0.014857278, 0.0020349908, 0.004365248, -0.0146425385, 0.020735767, -0.019836547, 0.0088311555, -0.008871419, -0.01598466, -0.01632019, 0.02853349, 0.017058356, -0.034814615, -0.007294427, 0.0038451762, 0.036827795, -0.026117671, -0.019380225, 0.0584091, -0.039431512, 0.0041471533, 0.00063876563, 0.022238942, -0.033821445, -0.004274655, -0.0154612325, -0.029231392, -0.011515397, 0.03653253, 0.02998298, 0.0626502, 0.0036572793, -0.0028771716, -0.018722586, 0.038679924, 0.019890232, -0.00077339716, 0.039485198, -0.03465356, 0.018829957, 0.003610305, 0.011562372, 0.013609106, -0.036800954, 0.013132652, -0.006932054, 0.0021138403, -0.026681364, 0.018078368, 0.025500296, 0.026292147, 0.009448531, -0.02520503, 0.0034492507, -0.01887022, -0.02320527, -0.0023101256, -0.07038082, -0.035458833, 0.034573033, -0.033472493, -0.012038824, -0.032935645, 0.0026792088, -0.005519472, 0.036183577, 0.025527138, 0.043135766, 0.02709742, 0.00060940674, 0.006848172, -0.005063151, -0.025822405, -0.0070998194, 0.004412222, -0.02331264, 0.01543439, 0.034680404, 0.04807477, 0.029124023, 0.0021138403, -0.06522708, -0.013293707, 0.0047007785, 0.035297778, -0.009938405, 0.032023005, -0.041391008, 0.029795084, -0.026896102, 0.0026238463, -0.008529178, 0.027043736, 0.024171596, 0.0073816646, -0.022856317, 0.022816055, 0.015353863, 0.015635708, 0.024225282, 0.026909523, -0.009032474, -0.01688388, -0.014025163, -0.010253804, 0.06071755, 0.04098837, 0.032049846, -0.03264038, 0.048182137, 0.007173636, -0.048262667, -0.037284117, 0.06082492, 0.027446372, 0.042947866, 0.019232592, -0.0054053916, -0.025460033, -0.007978909, -0.011038944, 0.029231392, -0.03677411, -0.017809944, 0.004788016, -0.026131094, 0.046544753, 0.0011542239, -0.07038082, -0.01776968, 0.020212341, 0.035270937, 0.014414378, -0.0029308565, -0.040183097, 0.01243475, 0.02909718, 0.03030509, 0.028667701, 0.0018051525, 0.05094691, -0.022118151, 0.030734567, -0.012870939, -0.010153145, -0.0152330715, -0.043269977, -0.07107872, 0.019890232, 0.044934206, -0.018024683, 0.035673574, -0.014682802, -0.0024124624, -0.038223602, -0.008133252, -0.024896342, 0.022574473, 0.0077708797, -0.01642756, -0.034036186, 0.038277287, -0.02898981, 0.010408147, 0.019581543, 0.045148946, 0.012763569, 0.05041006, 0.021796042, -0.00059011375, 0.024023963, 0.03352618, -0.026815575, -0.027835587, -0.015407547, -0.015085438, -0.021165246, -0.05164481, -0.06205967, 0.0018202515, 0.022171836, -0.0075896936, -0.022373155, 0.008502335, -0.0039458354, -0.044370517, 0.0067877765, 0.09384109, 0.01165632, -0.038572554, -0.013783582, 0.010743678, -0.047027916, 0.047054756, -0.07129346, 0.0428405, -0.048021086, -0.042706285, -0.0034458954, -0.04241102, -0.007891671, -0.0066434983, -0.00021117432, -0.03175458, 0.039780464, 0.03097615, 0.018534688, 0.016145714, -0.023621328, -0.025124503, 0.040048886, 0.052154817, 0.0068448163, 0.06522708, 0.046544753, 0.00045841816, -0.03352618, 0.009690112, -0.008280885, 0.017662311, 0.0046202512, 0.010703414, 0.01755494, -0.031432472, -0.051671654, 0.0034626718, -0.019152064, 0.0067676445, -0.008851287, -0.03253301, 0.030224562, -0.06925344, -0.028667701, -0.0040129414, 0.037794124, -0.016615456, -0.010622887, 0.010468543, -0.04675949, 0.20700872, 0.043162607, 0.034599874, -0.002206111, 0.019192329, 0.05363115, 0.023621328, -0.011092629, -0.00444242, 0.0035834627, -0.028694544, -0.05097375, 0.022118151, 0.039350983, -0.023849487, 0.015890712, -0.07263558, 0.008334571, -0.025218451, -0.03521725, -0.09368004, 0.044048406, 0.014307008, 0.057925936, 0.02931192, -0.012421329, 0.017125463, -0.043538403, 0.015904132, -0.022010783, 0.03019772, -0.031137204, 0.028587174, 0.013354103, -0.014978069, -0.009676691, 0.0071132407, -0.05086638, -0.008019173, 0.027781902, 0.016695984, -0.028721387, 0.051027436, -0.030627199, -0.012253564, 0.024238704, -0.026922945, -0.012931335, 0.05561749, -0.040344153, 0.034250926, -0.03473409, 0.05097375, -0.06850185, -0.045444213, -0.00059640495, -0.0732798, -0.064851284, -0.018185738, 0.0004764529, -0.0045095263, 0.018749429, 0.010643018, 0.0030550025, -0.012334091, 0.00987801, -0.007542719, 0.03776728, 0.025567403, 0.011246973, 0.026775312, 0.007945356, -0.013340682, -0.004928939, -0.014615696, 0.045122102, -0.02410449, 0.062274408, 0.0010518873, -0.0697366, 0.011528818, -0.029392447, 0.01888364, -0.024023963, 0.022051046, 0.04321629, -0.03298933, 0.015286757, -0.01077052, 0.0064790887, 0.013783582, 0.0073816646, 0.044370517, -0.0073682438, -0.0069119222 ]
from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-cased", num_labels=5)
[ -0.00038690036, -0.011734915, -0.0020872648, -0.03350502, 0.005486719, 0.0048986133, -0.015705477, -0.004970002, -0.00859382, 0.038155474, 0.04489999, -0.033205867, 0.021878887, -0.055016764, -0.017432401, 0.03772034, -0.040684666, -0.044165708, -0.04462803, -0.00859382, 0.00008992618, 0.028990544, -0.058035478, -0.065541476, -0.015705477, 0.013434642, 0.020342333, -0.03206365, 0.08996315, 0.059993565, 0.020056779, 0.005772273, -0.0029337287, -0.0019648843, -0.014440881, -0.03538152, -0.026379764, 0.0292625, -0.036142994, -0.04827225, -0.009124135, 0.0043377033, 0.00023137534, -0.03837304, -0.0029371283, -0.0014422184, 0.00048994634, -0.016195, -0.008886172, -0.041310165, 0.0034572447, -0.0110142315, 0.015596695, -0.00454507, -0.011041427, -0.008145092, -0.041772492, -0.019036943, -0.053901743, 0.010123574, 0.0485714, 0.05311307, -0.008974559, -0.04957764, 0.005901452, 0.039923187, 0.0061292155, -0.014155326, -0.039379276, -0.0410926, -0.043812163, 0.008689005, -0.034484062, -0.0140601415, -0.024884004, -0.007376815, 0.012836338, 0.04761955, 0.011258991, 0.027508382, 0.0069348863, 0.0057926695, 0.045743052, 0.0030561092, -0.015188761, -0.038971342, 0.04351301, -0.028093088, -0.045063164, -0.039732818, -0.04432888, 0.029480066, -0.030459108, 0.00055453595, 0.025441514, 0.027617164, -0.00778475, 0.05237879, -0.0016971774, -0.04639575, 0.0148080215, 0.09273711, -0.0055513084, 0.018574618, -0.031846084, -0.016344575, 0.05050229, 0.028800175, -0.070817426, 0.011605736, 0.012965518, 0.004769434, 0.012244834, 0.007560386, 0.001998879, 0.054336872, -0.01811229, -0.006421569, -0.04612379, -0.0007092111, -0.008369456, 0.010177965, 0.0125099905, -0.038617797, 0.049659226, -0.013645409, -0.0075807823, 0.048299443, -0.003219283, 0.013815382, 0.002155254, 0.011864095, -0.01605902, 0.023320254, 0.011483355, -0.011734915, -0.007465201, 0.0019886806, -0.012632371, -0.05556068, -0.012108855, 0.033178672, -0.021525344, 0.049251292, -0.029588848, 0.010504313, 0.006455563, -0.057545956, -0.012238035, -0.028908957, -0.062495563, 0.039923187, -0.012673165, -0.0010784768, -0.020682279, -0.03742119, -0.011150209, 0.02833785, -0.017758748, -0.021511745, -0.010762672, 0.014168925, -0.03195487, 0.047864314, -0.015678283, 0.043676186, 0.0048272246, -0.033178672, -0.013468637, -0.023687396, 0.017038064, -0.015229554, 0.023034701, 0.010218759, 0.042452384, 0.018914562, 0.054663222, 0.00089830573, 0.029534457, -0.007376815, 0.020519104, -0.05452724, 0.049169704, 0.03668691, -0.025767861, -0.029289696, 0.017853932, 0.022871526, -0.030404717, 0.029534457, -0.0035762256, 0.05406492, -0.032281216, 0.023320254, -0.016113412, -0.0004153708, -0.0063365824, 0.008981357, 0.007152451, -0.0317373, -0.0008570874, 0.058253046, -0.039161712, 0.033722583, -0.010919047, 0.022939516, 0.025931036, 0.024639243, -0.016262988, 0.012380811, -0.008505434, 0.0125643825, -0.0032770736, 0.016643727, 0.00060850225, -0.009049347, -0.012380811, 0.0054459255, 0.0068974923, -0.011041427, 0.01239441, 0.0142097175, 0.015474315, 0.011653328, 0.055968612, -0.014889609, 0.007709962, 0.020396724, 0.031465348, 0.024666438, 0.05490798, 0.0373668, 0.0186698, 0.037747536, -0.018234672, -0.009362097, 0.025183156, 0.065976605, 0.021538941, 0.0058164657, 0.024639243, -0.008770592, 0.047347598, 0.022490788, -0.0081178965, -0.010531508, -0.00784594, -0.00010995109, -0.015447119, 0.019308899, -0.02421771, 0.029670434, 0.035952628, -0.0069960766, -0.050148748, -0.007336022, 0.008355858, 0.0180579, 0.026080612, -0.03442967, -0.03660532, 0.021946875, 0.050012767, -0.010062384, 0.04557988, 0.04247958, 0.023061896, 0.05629496, -0.018968953, -0.0871892, -0.050774246, -0.09393372, -0.044383273, -0.027318012, -0.04612379, -0.009015352, -0.0012654468, -0.029099327, 0.033015497, -0.00058003183, -0.013557022, 0.0041813287, 0.00087960873, 0.030649478, 0.029561652, -0.013502631, -0.05537031, 0.010504313, -0.010626693, -0.012034067, -0.011007432, -0.00616321, -0.000214803, -0.011626133, 0.015841456, 0.03948806, 0.024013743, -0.02092704, -0.04054869, 0.028800175, -0.028637001, 0.016072618, 0.03380417, 0.013740594, -0.018261867, 0.037774734, -0.004371698, -0.035762258, 0.028990544, 0.062930696, -0.046341356, 0.0373668, 0.010599498, 0.015039185, -0.017799541, -0.0017150246, 0.06831543, -0.0016070919, -0.004942806, -0.048027486, -0.0641273, 0.0017362712, -0.0026872684, -0.034783214, -0.0121360505, 0.02633897, -0.042506773, -0.033640996, 0.0046028607, -0.07701803, -0.044220097, -0.016602933, 0.0032226825, 0.037475582, 0.058416218, 0.008138293, -0.04819066, -0.023782581, -0.0033790574, 0.029180914, 0.007546788, 0.0077031627, 0.0373396, 0.018887367, 0.010347938, 0.005690686, 0.03418491, -0.028637001, 0.0037903911, 0.0052555557, 0.047592357, 0.029996783, 0.015392728, 0.019077737, 0.029779218, -0.0037326005, -0.0002564463, 0.02814748, 0.03698606, -0.027521979, 0.010633492, -0.01482162, -0.0063161855, -0.0056940857, -0.046803683, -0.0020498708, -0.008886172, 0.009933204, 0.031982064, -0.019784823, 0.032090846, -0.012469198, -0.007975119, -0.0074244076, -0.0064351666, -0.020899843, 0.00921932, 0.002763756, 0.04084784, -0.08098859, -0.0000041198464, 0.024312895, -0.006438566, 0.046912465, 0.024680037, 0.008784189, -0.028473828, -0.006333183, 0.012870333, 0.030350326, 0.01955366, -0.019757627, -0.007111658, -0.010035188, -0.020151963, -0.072014034, 0.007954722, 0.046749294, 0.02670611, 0.025618285, 0.011496954, -0.025550297, -0.03959684, 0.016195, -0.0026498744, -0.012618774, -0.06499756, 0.028854566, -0.013067502, -0.03872658, -0.020899843, 0.0031478945, 0.025863046, 0.015787065, -0.022449994, -0.005734879, -0.019349692, 0.0072204405, 0.016725315, 0.031682912, 0.006047629, 0.0011056724, -0.04340423, 0.006666329, 0.0065813432, -0.047673944, -0.002541092, -0.07511434, 0.04462803, 0.027100448, -0.0018357051, -0.021756506, -0.016072618, -0.025672676, -0.03772034, 0.019472072, 0.06766273, -0.024448873, 0.0027110646, -0.06070065, -0.027902719, -0.0072748316, -0.0070504677, 0.010810263, 0.01769076, -0.0015051083, -0.008430646, 0.031682912, 0.030132761, -0.019635247, 0.0076283747, -0.03399454, 0.009144532, -0.053521004, 0.0255231, -0.01967604, 0.052705135, -0.047673944, 0.051862072, 0.014536065, -0.018819377, -0.03369539, 0.019567257, -0.032525975, -0.027902719, 0.0025359928, 0.02484321, -0.022490788, 0.03418491, 0.005136575, -0.012319622, -0.0109394435, 0.043186665, -0.0031988863, 0.016507749, -0.0010606296, 0.03342343, 0.02273555, -0.0010665787, 0.013937762, -0.079411246, 0.04696686, -0.032825127, -0.038808167, -0.017908324, -0.062169217, -0.041364558, -0.0069586826, -0.010429525, 0.053385027, 0.065650254, 0.013652207, -0.008063505, 0.0024442074, 0.010844259, -0.029969586, -0.037665952, 0.035163954, 0.046667706, 0.032634757, 0.06880495, -0.07429847, 0.0010325841, 0.0038311847, 0.01792192, 0.012972317, -0.018601812, -0.04364899, -0.006968881, -0.02689648, -0.02727722, -0.0075059948, 0.012822741, 0.015447119, 0.015093576, -0.04228921, 0.0148624135, -0.008260673, -0.026053416, 0.034320887, -0.025509503, -0.07816025, -0.0398416, 0.0023252266, -0.030105565, 0.04283312, 0.020559898, -0.034837604, -0.022123646, -0.047837116, 0.015175163, -0.01637177, 0.020505507, -0.0641273, 0.0055683055, 0.006744517, 0.04427449, -0.0040181545, -0.02964324, 0.00902895, -0.020233551, 0.019104932, -0.047211617, -0.03510956, -0.018343454, -0.013828979, -0.05498957, 0.026325373, 0.012170046, -0.029398479, 0.0102663515, 0.021906082, 0.044791207, 0.053711373, -0.08267472, -0.014767229, 0.01325787, -0.006707123, 0.021783702, 0.008151891, -0.03742119, 0.07375456, -0.0058708573, 0.08387133, -0.022776343, -0.03350502, 0.00009056358, -0.025251145, 0.031030217, 0.00005550671, 0.01326467, -0.0015459018, -0.0066221366, 0.023007505, -0.021620527, -0.0024799018, 0.0005392384, -0.013108294, -0.047945898, -0.003013616, -0.025563894, -0.022857929, -0.031139, 0.0145632615, 0.045715857, -0.023918558, 0.027821131, 0.051535722, -0.0065609463, -0.01830266, -0.012741154, 0.034212105, -0.01045672, 0.013298664, -0.026067013, 0.012741154, -0.028827371, 0.010164368, -0.010164368, -0.066030994, -0.01718764, -0.007852739, 0.013726995, 0.013047105, 0.049251292, 0.0014209718, 0.011884491, -0.062658735, 0.011714519, 0.009634052, -0.015651086, 0.013189882, -0.0015144568, -0.03119339, 0.015392728, -0.013053903, -0.01998879, 0.0003879627, 0.08436085, 0.014291305, -0.032525975, -0.005340542, -0.017445998, -0.024557656, -0.04054869, 0.010130373, -0.0008069454, -0.031329367, -0.023211472, -0.0078051463, 0.040875036, -0.023510624, 0.0541737, -0.0010419326, -0.056458134, 0.00035906734, 0.029425675, -0.026855687, -0.026080612, 0.034402475, 0.038454626, -0.023279462, -0.018955356, -0.025999025, 0.025482308, -0.01656214, -0.060047958, 0.057274003, -0.047837116, -0.012992714, -0.009736036, 0.034266498, 0.027046056, -0.002435709, -0.0024391082, 0.025686275, -0.023687396, -0.0398416, -0.009674846, 0.01699727, -0.03312428, 0.032335605, -0.031274978, -0.0026498744, 0.019444877, 0.048544202, -0.0063977726, -0.08142372, 0.038699385, -0.048979335, -0.012346817, 0.011666927, 0.034348086, 0.013713398, 0.022110049, 0.01550151, -0.026298176, 0.0017830137, 0.0069552828, -0.040467102, -0.0040929425, -0.04239799, 0.0057960693, -0.039460864, -0.04892494, -0.010660687, -0.03834584, 0.0074991956, 0.014032946, 0.023306657, 0.024380885, 0.003736, -0.00039709872, -0.0007903731, 0.020464713, -0.013210278, 0.006931487, -0.005547909, -0.01314229, -0.023075495, 0.0121904425, 0.03195487, -0.023687396, -0.0010759272, 0.0236602, -0.0031427953, -0.0064283675, -0.03192767, 0.035707865, -0.026298176, -0.0280115, 0.0044668824, 0.032417193, -0.064834386, 0.014046544, 0.0020396723, -0.03472882, -0.0055003166, 0.021144604, 0.03268915, 0.08517672, -0.025509503, 0.018968953, -0.014468077, 0.034348086, 0.05156292, 0.021226192, 0.028093088, -0.03230841, 0.013121893, 0.0051025804, 0.014889609, 0.0059660417, 0.00037500227, 0.039080124, 0.025264742, 0.012727556, 0.0099604, 0.0067275194, 0.012985914, 0.035789452, 0.025672676, -0.009015352, 0.02185169, -0.043186665, 0.021266984, 0.0075739836, -0.048598595, -0.019077737, 0.01251679, -0.021185398, -0.0058130664, -0.05798109, -0.05591422, -0.024054537, -0.011116215, 0.012333219, 0.014971196, 0.011490155, -0.0049020126, 0.0024951992, 0.0017277725, -0.032607563, -0.022477191, 0.013176284, -0.025060775, -0.03791071, 0.024108928, 0.041418947, 0.00578927, -0.025006384, -0.04465523, 0.011626133, 0.0066153375, 0.0119116865, -0.043241054, 0.006574544, -0.056023, -0.006843101, 0.006798908, -0.0429419, -0.018370649, 0.06320265, 0.05585983, 0.0036272174, 0.0093417, 0.0010640292, -0.009470879, -0.01586865, -0.012231235, 0.04128297, 0.03081265, -0.023184277, 0.038563408, 0.016086217, 0.033369042, 0.046912465, 0.0054323277, -0.0073700165, -0.0029439272, -0.0080975, -0.03886256, -0.026067013, 0.06472561, 0.0035592285, 0.028501023, 0.031111803, 0.008036309, -0.016779706, -0.017622769, -0.0004946206, 0.03622458, 0.02092704, 0.029017739, 0.000051124603, -0.012965518, 0.023034701, 0.027304415, -0.046259772, -0.0041677305, 0.0217973, 0.048299443, 0.033586606, -0.041011013, -0.0042867116, 0.01818028, 0.04876177, 0.008396652, 0.009885612, 0.02091344, 0.009668048, -0.025264742, 0.035653476, 0.016480554, 0.011299785, -0.019336095, -0.03380417, -0.040929426, 0.008981357, 0.006795509, 0.00067521655, 0.031030217, -0.00454507, 0.012068062, -0.045171946, -0.0045484696, -0.034701627, -0.002410213, 0.0049835998, -0.021375768, -0.049414463, 0.013353055, 0.011524149, 0.029996783, -0.00037585213, 0.06320265, 0.012530387, 0.020192757, 0.052079637, 0.036088604, 0.0361158, 0.036768496, -0.011673725, -0.023646602, -0.009634052, -0.013937762, -0.0062481966, -0.009178526, -0.06570465, -0.012550784, 0.03056789, 0.0051637706, -0.049903985, 0.04615099, -0.005173969, -0.02515596, -0.0022317416, 0.08256594, 0.014984793, -0.026910078, -0.022708353, 0.01482162, -0.055016764, 0.010871454, -0.031410955, 0.04117419, -0.03636056, -0.065541476, -0.031492542, -0.049332876, 0.012312823, 0.018289063, -0.008036309, -0.013597816, 0.031356566, 0.023279462, 0.029398479, 0.009321303, -0.01637177, -0.0145632615, 0.03755717, 0.05678448, -0.015161565, 0.026950872, 0.035082366, -0.013876571, 0.018601812, -0.0023762183, 0.020138366, 0.03864499, -0.009851618, -0.030622281, -0.0021093613, -0.042234816, -0.04016795, 0.012503192, 0.053629786, -0.051970854, -0.0074584023, -0.06282191, 0.015610293, -0.07505994, 0.00466745, -0.051399745, 0.04881616, -0.01586865, -0.01102103, -0.008070304, -0.060537476, 0.21375766, 0.045144748, 0.039760016, 0.026406959, 0.05939526, 0.06684686, 0.048054684, -0.016018227, 0.010742275, -0.05322185, 0.028772978, -0.012815942, -0.010796666, 0.0128839305, 0.00983802, 0.04509036, -0.06015674, 0.014903206, -0.017160444, -0.035898235, -0.058633782, 0.025971828, 0.0039433665, 0.06494317, -0.00047932303, -0.016507749, -0.016548542, -0.0933898, -0.010966639, -0.020818256, 0.0043784967, -0.036632515, -0.005303148, 0.0098176235, -0.017242031, 0.024163319, 0.01588225, -0.025659079, -0.030921433, -0.00097479345, 0.011938883, -0.041446142, 0.03206365, 0.004596062, -0.017228434, 0.034293693, -0.006295789, 0.0007478799, 0.04819066, -0.05556068, 0.057654742, -0.03388576, 0.022069255, -0.032281216, -0.016507749, 0.0040249536, -0.051889267, -0.048979335, -0.011415367, -0.0014073739, 0.031982064, 0.037829123, -0.024326494, 0.03491919, 0.02907213, 0.013366654, -0.0036578125, 0.015270348, 0.030785456, 0.0047864313, 0.015447119, 0.017581977, -0.010619895, -0.0033960545, 0.0001447955, 0.04084784, 0.003623818, 0.072014034, 0.026216589, -0.03834584, -0.013026708, -0.020954235, 0.020804659, -0.073428206, 0.036170192, 0.048217855, -0.032226823, 0.0016368371, -0.022463592, 0.011007432, 0.010633492, 0.015963836, 0.050366312, 0.022477191, -0.020410322 ]
You will see a warning about some of the pretrained weights not being used and some weights being randomly initialized. Don't worry, this is completely normal! The pretrained head of the BERT model is discarded, and replaced with a randomly initialized classification head. You will fine-tune this new model head on your sequence classification task, transferring the knowledge of the pretrained model to it.
[ 0.029872624, 0.028351467, 0.000025112104, -0.00097245385, -0.060440633, -0.032972887, 0.013567271, -0.0030060958, -0.0059940824, 0.034798276, 0.0034370902, 0.030915702, 0.041549314, -0.03288596, -0.008503991, 0.04375137, -0.016022852, -0.02065876, -0.04343265, 0.002709108, -0.020716708, -0.010155533, -0.079216056, -0.011792587, -0.047402147, -0.011995409, 0.004719208, -0.02714903, 0.03305981, 0.016022852, -0.049430355, -0.007540592, -0.000045329118, -0.033813145, -0.038188282, -0.01842773, 0.011046496, -0.017210804, -0.08605402, -0.014588619, 0.029481469, 0.01221996, 0.018601576, -0.08379401, -0.059136786, 0.022744916, -0.017833753, -0.023049148, -0.024280561, -0.03300186, -0.019007217, 0.06420731, 0.022281326, 0.01593593, -0.03253827, 0.01505221, -0.02817762, 0.01666029, -0.030741856, -0.014067079, 0.0007080623, 0.03720315, -0.02257107, -0.03621802, 0.028467365, 0.0020082893, 0.013277526, 0.0032849745, -0.059455503, -0.004096258, -0.05765909, 0.024831075, 0.009757135, -0.056326266, -0.024034278, 0.06472885, 0.04702548, -0.00265297, -0.022020556, 0.029930573, -0.0034389012, 0.05174831, -0.009409442, 0.014052592, -0.0038535974, -0.03300186, 0.03876777, 0.00037712013, -0.048995737, -0.030278265, -0.024657229, 0.029293135, -0.009583288, 0.009496365, 0.040998798, 0.007301553, -0.035841353, 0.04276624, 0.0112203425, -0.017630933, 0.025714794, 0.065018594, -0.014335093, 0.011488357, 0.0030803427, 0.01816696, -0.03056801, 0.0066858465, -0.02719249, -0.0005591157, 0.0106625855, 0.02096299, 0.034653403, -0.0073993416, -0.007004565, 0.023396842, -0.032914937, 0.00946739, -0.05647114, 0.0059940824, 0.013842528, -0.0032469456, -0.011169638, -0.039897773, 0.05177728, -0.045055218, -0.040274438, 0.0297857, -0.008489504, -0.0051248497, -0.037174176, -0.0323934, 0.023237482, 0.05273344, -0.021078888, -0.0076420023, 0.0002829533, 0.00570796, -0.01655888, -0.054037288, -0.0076420023, 0.014342336, 0.016471956, 0.08356222, 0.029901598, -0.024135688, 0.01185778, -0.044562653, -0.01774683, -0.0046829903, -0.046996504, -0.026308771, -0.017239777, 0.0118650235, -0.016674777, -0.032914937, -0.01951427, 0.058615245, 0.0033012726, 0.050096765, 0.014211952, 0.010184508, -0.045808554, 0.030539036, 0.008141811, 0.04186803, -0.049951896, -0.017138368, 0.006479404, -0.065945774, 0.00035154115, 0.0065301093, 0.032741092, -0.024179151, 0.019181063, -0.009916494, 0.04717035, 0.025178768, 0.001865228, 0.012951564, -0.0038391103, -0.011850537, 0.000058118607, 0.030741856, 0.0043244315, -0.02387492, 0.008438799, 0.015950417, 0.0020336418, 0.031321343, 0.007685464, 0.053544722, -0.0160808, -0.024251586, -0.022817353, -0.039086487, -0.0028105185, 0.017457087, 0.006309179, -0.020035809, 0.014356824, 0.026917232, -0.018949268, 0.034160838, 0.048850868, -0.012415538, -0.032741092, 0.026656464, -0.010879894, -0.012516948, 0.043171883, 0.047344197, -0.00691402, 0.04395419, 0.014950799, -0.015399902, -0.03569648, -0.010879894, 0.006113602, -0.013610732, -0.0022998443, -0.037753664, 0.05142959, 0.03161109, 0.05003882, -0.016877597, -0.01702247, 0.04618522, 0.0028141402, 0.023280945, 0.008685081, 0.0062620956, 0.04401214, 0.045344964, -0.015153619, 0.024671717, 0.046098296, 0.025758257, 0.034827247, 0.035174944, 0.02257107, 0.0077289254, 0.033349555, 0.018485678, -0.03752187, -0.010800214, -0.03268314, 0.0059361337, -0.041027773, 0.010307649, -0.059687298, 0.051516514, -0.020818118, -0.029481469, -0.04441778, -0.0011915729, 0.03876777, 0.02164389, -0.04041931, 0.024744151, 0.052124977, 0.039868798, 0.0074971304, -0.0050777667, 0.014834901, 0.05418216, 0.0025895885, 0.03786956, 0.041288543, -0.06119397, -0.010314892, -0.06496064, -0.04256342, -0.0030604228, -0.0016977197, 0.01734119, 0.039926745, -0.044243935, 0.0016397709, -0.032567244, 0.03332058, -0.015008748, 0.035638534, 0.030220317, 0.034450583, 0.029206213, -0.0074826432, -0.005418216, -0.036710586, -0.016211186, -0.013581757, -0.054819595, 0.0024573926, 0.0070516486, 0.0087212995, 0.0028394929, 0.03503007, -0.029582879, -0.039463155, 0.015472339, -0.022165429, 0.031002626, 0.015762083, 0.028844032, -0.011060984, 0.008938608, 0.032972887, -0.016471956, 0.018195933, 0.06890117, 0.011807075, 0.020977478, 0.017862728, 0.030452112, -0.03424776, 0.02128171, 0.028061723, -0.006146198, -0.060150888, -0.039781872, -0.040361363, 0.011930216, -0.01774683, -0.021412093, 0.014450991, 0.08205555, -0.017891703, -0.07243604, -0.02880057, -0.053776518, -0.01571862, -0.01434958, -0.010235213, 0.030133393, -0.0090038, 0.017717855, -0.03497212, -0.0058093704, 0.0112638045, 0.021687351, 0.025584409, -0.024121203, 0.050444458, 0.033871092, 0.008619889, -0.0151970815, 0.0151970815, -0.00980784, 0.00874303, -0.010401815, 0.02620736, -0.015776569, 0.009815084, -0.019050678, 0.04531599, 0.022049531, -0.017833753, 0.018051062, 0.025149794, -0.0011191368, 0.0073884763, 0.014161246, -0.023237482, 0.015530287, -0.034160838, 0.0046141758, -0.022715943, 0.018862344, 0.023961842, -0.081997596, 0.055399086, 0.00036987654, -0.032306474, -0.020108245, -0.024251586, -0.0044041113, 0.0582096, 0.029669803, 0.06496064, -0.011162394, -0.009199377, 0.016834136, 0.0102496995, 0.01593593, 0.04146239, -0.032972887, 0.02148453, 0.029872624, -0.047604967, 0.014255413, 0.00044683984, -0.01847119, 0.024874536, -0.012075088, -0.029380059, -0.034856223, 0.013038487, 0.04085393, 0.023570688, 0.0032994617, 0.008518479, -0.046880607, -0.02029658, -0.005784018, 0.028728135, -0.0065590837, -0.030481087, 0.031379294, 0.035522636, 0.019804014, -0.023744535, 0.003947764, 0.0012513326, 0.034102887, -0.0010313081, 0.005711582, -0.03902854, 0.033291604, -0.017674394, -0.022614533, 0.0038898154, -0.043519575, -0.040911876, 0.041288543, 0.027757492, -0.00801867, 0.009438416, -0.04230265, -0.016645802, 0.009938225, 0.010155533, -0.03859392, -0.025338128, 0.0068850457, -0.050734203, -0.020745682, 0.04893779, -0.06380167, 0.004469304, -0.04160726, 0.00019591686, 0.035928275, -0.01899273, 0.029597366, -0.007779631, 0.0058093704, -0.025961077, -0.021499017, -0.013139898, 0.008525722, 0.017355675, -0.053341903, 0.006819853, -0.054558825, -0.008417068, -0.051603436, 0.027569158, 0.020209655, 0.0014849389, 0.008960338, -0.031263396, 0.010945085, 0.051661383, -0.03259622, 0.0017882647, 0.00026620246, 0.007996939, -0.03688443, 0.018224908, -0.0038753282, 0.0248021, -0.0062294994, 0.031640064, -0.019123115, 0.0013002269, -0.03595725, 0.043461625, 0.028206594, -0.008134567, 0.0038789501, -0.0745222, 0.02283184, -0.019760553, -0.017312214, -0.012125793, -0.03928931, -0.019007217, 0.0053819977, -0.030220317, 0.008207004, 0.017558496, -0.003256, -0.03621802, -0.0057333126, 0.011908486, -0.0019829366, -0.033175707, -0.017080419, 0.07510169, 0.025555436, 0.030307239, -0.0646709, -0.031379294, 0.049778048, -0.043635473, -0.00040722638, 0.016370546, -0.009996174, 0.01292259, -0.018963756, -0.041288543, -0.013871502, -0.03897059, 0.0152405435, 0.0029916086, -0.023136072, -0.011654959, -0.028974416, 0.011988165, 0.058557294, -0.009199377, -0.049430355, -0.0024791234, 0.009394955, -0.0014668298, 0.041636236, 0.026627488, -0.017370163, -0.019398373, -0.027945824, 0.042621367, -0.008909633, 0.0041578286, -0.029843649, -0.028626723, -0.0027036753, 0.028684672, 0.024352998, -0.05661601, 0.00045702615, -0.011988165, -0.0025624249, -0.06658321, 0.007431938, 0.015530287, -0.0127415, -0.03760879, 0.0371452, 0.010416303, -0.004136098, 0.028771596, 0.021180298, 0.00024175529, 0.0063417754, -0.072088346, -0.0017275995, -0.022281326, 0.015298492, -0.014364067, -0.00074518577, 0.014001887, -0.010604637, 0.009018287, 0.05661601, -0.046417017, 0.003955008, -0.038420077, 0.033436477, 0.02039799, -0.0035040935, 0.029220698, 0.010865406, 0.01650093, -0.027047617, 0.027482234, -0.04114367, 0.026323257, -0.00009179005, -0.053544722, 0.027308388, -0.031842884, -0.018022086, 0.006316423, -0.028496338, 0.06519244, -0.06200525, 0.04094085, 0.079679646, -0.0006415117, 0.029843649, -0.027047617, 0.019702604, 0.027800953, 0.00095253397, 0.015211569, 0.0029572013, -0.012430024, 0.0077723875, -0.0152405435, -0.0067003337, 0.0075695664, -0.0036127476, 0.006584436, 0.011162394, 0.032712117, 0.014204708, -0.024831075, -0.057977807, 0.03616007, 0.034160838, 0.02407774, -0.0024465274, 0.015704134, 0.032509297, 0.013074705, -0.018022086, -0.00874303, -0.015921442, 0.07034989, 0.015399902, -0.031582113, -0.045547783, 0.011046496, -0.037637766, -0.008974826, -0.0042592394, 0.024758639, -0.019369397, -0.0036254239, -0.022527609, 0.014219195, -0.058064733, 0.020731196, 0.003715969, -0.029698778, 0.00874303, -0.010467008, -0.02065876, -0.074464254, 0.0075768097, 0.03905751, -0.00307491, -0.024990434, -0.05818063, 0.01784824, -0.029220698, -0.025033897, 0.03549366, 0.011452138, -0.033726223, 0.010307649, 0.004469304, 0.061889354, 0.00056183204, 0.021006452, 0.026714412, -0.05177728, -0.01692106, 0.01266182, 0.017877216, -0.0088589275, 0.02023863, -0.013147142, 0.0055703316, 0.0167617, 0.061715506, -0.023309918, -0.07741964, 0.03285699, 0.0044294638, -0.016587853, 0.010553931, 0.023121584, 0.01650093, 0.08756068, -0.0009131468, -0.013415155, 0.025511974, 0.013407911, -0.014805927, -0.030307239, -0.039376233, 0.02880057, -0.055283185, -0.017254265, -0.057108574, -0.04696753, -0.025222229, 0.033175707, 0.005856454, 0.01185778, 0.03181391, 0.040767003, -0.016732726, 0.021832222, -0.035319813, -0.000047592745, 0.018775422, -0.0137628475, -0.024381971, 0.0096919425, 0.028409416, -0.04624317, 0.008366363, 0.014979773, -0.009213865, -0.039260335, 0.022382736, 0.050792154, 0.028510826, -0.023396842, -0.015559262, 0.030162368, -0.02138312, 0.018398754, -0.05667396, 0.024512356, 0.011546305, 0.0016153237, 0.03540674, 0.04421496, 0.015298492, -0.0031238042, 0.014784196, 0.021296196, 0.04120162, 0.0038463539, -0.028829545, -0.004759048, -0.02023863, -0.00079136377, 0.027960312, 0.05183523, -0.028873006, 0.026540566, 0.004443951, 0.038883667, -0.010959573, 0.017558496, 0.025540948, 0.017370163, 0.009815084, -0.024121203, 0.012538679, -0.005581197, -0.022585558, 0.05693473, -0.05255959, -0.045287013, 0.015095671, -0.042070854, -0.029669803, -0.0058311014, -0.03221955, -0.010995791, -0.010756752, -0.035899304, 0.006805366, 0.046938553, 0.0027924094, 0.010959573, -0.014045348, -0.06959655, 0.0024809344, -0.030191341, -0.029264161, -0.0052190167, 0.016312597, 0.07765143, 0.0029608232, -0.01035111, -0.016095288, -0.024164664, 0.0051683118, 0.04945933, -0.0055160047, -0.025135307, -0.053950366, -0.028757108, -0.031553138, 0.017964138, -0.0052805874, 0.007120463, -0.0007651057, 0.007265335, 0.041230597, 0.024135688, 0.044997267, -0.046417017, -0.023469277, 0.05122677, 0.05183523, -0.028192107, 0.018022086, 0.032103654, 0.07284168, 0.015124645, 0.053515747, -0.013632463, 0.029930573, 0.014863876, -0.07034989, -0.04105675, -0.003107506, 0.03294391, -0.0012531435, 0.01852914, -0.018688498, -0.03143724, -0.015486825, 0.01629811, 0.018963756, -0.012285152, -0.0026909988, 0.0012558599, -0.016993495, 0.058962937, -0.009612263, -0.038738795, 0.051168818, -0.027467746, 0.031669036, 0.035174944, -0.0033918177, -0.030220317, 0.041694187, 0.033349555, 0.0103366235, 0.0267289, 0.027989287, 0.02761262, -0.020789145, 0.05713755, -0.023541713, 0.032712117, -0.038999565, -0.028612236, -0.033929043, 0.0129298335, 0.00047400335, -0.03679751, 0.0069792126, -0.009416685, 0.005074145, -0.06710475, 0.027076593, -0.06472885, 0.0007116841, -0.004194047, -0.010778483, -0.026410181, 0.04172316, -0.0036018821, 0.030220317, 0.031176472, 0.027989287, 0.017326701, 0.036102124, 0.018123498, -0.026163898, 0.02365761, 0.010981304, -0.054877546, -0.03036519, -0.008540209, 0.0095543135, -0.011249317, -0.04624317, -0.0671627, 0.021933634, 0.008286683, -0.0014568699, -0.02880057, 0.033639297, -0.011336241, -0.05615242, 0.0018742826, 0.055601906, 0.018920295, -0.00012857397, 0.00367794, 0.016370546, -0.012625602, -0.022498634, -0.033552375, 0.028873006, -0.00840258, -0.03897059, -0.01842773, -0.040998798, 0.010582905, 0.007902772, -0.04531599, 0.025758257, 0.015993878, 0.010865406, 0.01951427, 0.014494452, -0.01159701, 0.024845563, 0.042679317, 0.03688443, 0.015993878, 0.0646709, 0.05018369, -0.008228734, -0.0018063738, -0.0032125385, 0.004483791, -0.020180682, -0.009749891, 0.025309153, 0.0019141224, -0.054790623, -0.036246996, -0.018659525, 0.005161068, -0.04966215, -0.011437651, -0.013263039, -0.020021321, -0.10117866, -0.062294997, -0.021267222, 0.0048785675, -0.012082332, -0.046359066, -0.02184671, -0.05148754, 0.2487164, 0.035203915, 0.029206213, 0.00012642353, 0.0038825718, 0.06982835, 0.018746447, 0.010727778, 0.011184125, -0.02787339, 0.0065989234, -0.06762629, 0.004367893, -0.0034063049, 0.0005265195, 0.0042556175, -0.05189318, -0.014639324, 0.004172316, -0.03685546, -0.031060575, 0.04873497, 0.01282118, 0.045113165, 0.02807621, -0.026192872, -0.019137602, -0.058238577, 0.044185985, -0.03024929, -0.00044683984, 0.0034805518, -0.017630933, -0.015472339, 0.01650093, 0.035174944, 0.0077651436, -0.01312541, -0.04230265, -0.010177264, 0.039984696, 0.008359119, -0.0051103625, -0.005675364, 0.021571454, -0.019746065, -0.020542862, 0.014878363, 0.04638804, -0.013263039, 0.042679317, -0.077825285, 0.00890239, -0.010553931, -0.034479555, 0.024381971, -0.02787339, -0.019789526, -0.027800953, 0.0070009436, 0.018195933, -0.022035044, 0.018601576, 0.034218784, -0.013096436, 0.020122733, -0.013393424, 0.05241472, -0.0056789857, 0.013089193, -0.0032433236, -0.024135688, -0.055196263, -0.04801061, 0.0031201825, -0.00097517023, -0.0011870456, -0.014059836, -0.0149652865, -0.07127707, 0.027569158, 0.025671333, 0.01185778, -0.024758639, 0.041346494, 0.01680516, -0.028409416, 0.0075623225, 0.009423929, 0.026453642, 0.015443364, 0.060846277, 0.03207468, -0.0014061646, 0.024512356 ]
Training hyperparameters Next, create a [TrainingArguments] class which contains all the hyperparameters you can tune as well as flags for activating different training options. For this tutorial you can start with the default training hyperparameters, but feel free to experiment with these to find your optimal settings. Specify where to save the checkpoints from your training: from transformers import TrainingArguments training_args = TrainingArguments(output_dir="test_trainer")
[ 0.010045628, 0.028937727, -0.010340031, -0.009061889, -0.04788009, 0.013707723, 0.00795608, 0.007381634, 0.011668438, 0.048368372, 0.02648197, 0.033030655, 0.0017341095, -0.033863604, 0.034524217, 0.04900026, 0.004132422, -0.009966642, -0.052389495, 0.0033928228, -0.0017457779, -0.0037769838, -0.07571201, -0.021714067, -0.05569256, -0.030187149, -0.009018806, -0.027070777, 0.04538125, 0.029813757, -0.012910678, -0.0058773025, -0.015869077, 0.014318071, 0.005855761, -0.050407656, 0.015983965, -0.021986928, -0.062959306, -0.06341886, 0.02175715, 0.046587586, -0.018482806, -0.031479653, -0.027745752, -0.03271471, 0.0022062324, -0.034495495, -0.037023056, -0.018339194, -0.0051736063, 0.04167607, -0.008264844, 0.0023731808, -0.047535423, 0.015754187, -0.017563693, -0.03679328, -0.024428325, 0.027401084, 0.031307317, 0.012106454, -0.03119243, -0.06634854, 0.010354393, -0.021412482, 0.0062830052, -0.014763268, -0.026309635, -0.035242274, -0.039205953, 0.020479007, -0.0037374906, -0.020680062, -0.047793925, 0.048052426, 0.02635272, -0.008616693, -0.011022187, 0.037741117, -0.0051556546, 0.028061697, -0.00042724438, 0.020622618, -0.010641616, -0.025203828, 0.05009171, -0.028779754, -0.041044183, -0.028190948, -0.016587134, 0.01617066, -0.006990292, 0.01043338, 0.029282395, 0.021412482, -0.04337069, 0.038114507, -0.002288809, -0.031996652, 0.042939853, 0.0853627, 0.017348275, 0.039809123, -0.038487896, 0.013025568, 0.019315753, -0.018841835, -0.04799498, -0.037482616, 0.026424525, 0.009435279, 0.028909005, 0.009234223, -0.010533907, 0.02325071, 0.023207627, -0.0032366454, -0.05939774, -0.027630862, 0.007697579, -0.028176587, 0.011216062, -0.015969604, 0.035472054, -0.06054663, -0.014038029, 0.037654947, 0.0015519023, -0.03242749, -0.028736671, -0.017994527, 0.043973856, 0.010146156, -0.008056608, 0.0027142584, 0.00003750169, -0.008408456, -0.010167697, -0.06410819, 0.034868885, 0.045582306, 0.011503285, 0.072265334, -0.00011337459, 0.008142775, -0.018080695, -0.04911515, -0.036879446, -0.008516165, -0.035385884, -0.00509462, -0.025519773, 0.021670982, -0.0010474668, -0.030531816, -0.045409974, 0.01828175, 0.019215226, 0.01914342, -0.00009418898, 0.027243111, -0.07192066, 0.013319971, 0.018540252, 0.045840807, -0.050551265, -0.024141101, 0.012788609, -0.05758823, -0.004688917, -0.0070656883, 0.01156073, -0.01267372, 0.05244694, 0.029397285, 0.07571201, 0.014705823, 0.029354202, -0.007309828, -0.02088112, -0.034007214, 0.00139752, 0.03932084, -0.008437179, 0.030503094, 0.034610383, -0.0006291981, 0.0042329505, 0.00010512814, -0.0044304165, 0.03768367, -0.038602784, -0.015495687, -0.04963215, 0.0017637294, -0.010038448, 0.040986735, 0.05408411, -0.04216435, -0.008121233, 0.034380604, -0.01976095, -0.0042221798, -0.021326315, 0.020234868, -0.0077047595, 0.010131795, 0.018425362, 0.039091066, 0.033088103, 0.02946909, -0.002561671, 0.020364119, 0.030790316, 0.009787127, -0.0145406695, 0.01143148, 0.034236994, -0.0016982066, 0.030359482, -0.025289994, 0.023566656, 0.039493177, 0.06577409, -0.01966042, -0.021398121, 0.06979521, -0.025649022, 0.037626226, 0.02760214, 0.034150828, 0.034093384, 0.026295274, -0.016702024, 0.03417955, 0.027027695, 0.02472991, 0.007862733, -0.011725883, 0.032025374, 0.031134984, 0.047334366, 0.033633824, -0.052389495, 0.010792408, -0.011194521, 0.027444167, -0.032255154, 0.045438696, -0.024528854, 0.060259406, 0.019861478, -0.011826411, -0.05259055, -0.014641197, 0.008250483, 0.020321034, -0.025749551, 0.012293149, -0.0069113057, 0.03380616, -0.0046530142, 0.0011533803, 0.011366854, 0.036218833, -0.014246265, 0.031738155, 0.012149537, -0.038602784, -0.02126887, -0.0061645256, -0.07416101, -0.007884274, -0.007905816, -0.0221449, 0.016888719, -0.044921692, -0.017132858, -0.03667839, 0.027401084, -0.0010375935, -0.0012323667, 0.0544575, 0.04997682, 0.025821356, -0.04848326, 0.031106262, -0.015466964, 0.0080637885, -0.0026514283, -0.059340294, -0.0032904996, 0.007202119, 0.02411238, 0.012221343, 0.042193074, -0.014655558, -0.025936246, 0.023609739, -0.00833665, 0.022432124, 0.0053531206, 0.034150828, -0.0097153215, 0.035012495, 0.002848894, -0.01889928, 0.047162034, 0.02164226, 0.013657458, 0.036247555, 0.010289768, -0.014698642, -0.07375889, 0.06272952, 0.051355492, -0.045151472, -0.04268135, -0.028061697, -0.0097009605, 0.006900535, 0.013470763, -0.032111544, -0.02635272, 0.05804779, -0.0141313765, -0.05000554, -0.030445648, -0.054112833, 0.0066563953, -0.03369127, -0.035500776, 0.02026359, 0.0032438259, -0.013470763, -0.044318523, 0.008013524, 0.00056367536, -0.005392614, 0.0058844835, -0.017879639, 0.036592223, 0.022992209, 0.0061106714, 0.0035777227, -0.0021541733, 0.008307928, 0.01107245, 0.03791345, -0.03779856, -0.017362636, -0.0012969918, -0.0031056, -0.0047104587, 0.036103945, 0.0013140457, 0.0069077155, 0.046156753, 0.02549105, 0.013291249, 0.018568974, 0.007963261, 0.00217392, -0.04391641, -0.0027555467, -0.05198738, 0.022288512, 0.0052813147, -0.044835526, 0.039464455, -0.023193266, -0.01717594, 0.00633686, 0.002734005, -0.03955062, 0.052734163, 0.036218833, 0.050924655, -0.007510884, -0.03070415, 0.0027160535, -0.00022315889, 0.04078568, 0.009492723, -0.016544051, 0.017549332, 0.012968123, -0.01031849, 0.0121136345, -0.0213694, 0.039579343, -0.011050909, -0.007561148, -0.048023704, -0.029239312, 0.015395158, 0.04664503, 0.031680707, -0.018856196, 0.005658295, -0.04788009, -0.008710041, -0.0020698016, 0.013844154, -0.021656621, -0.03831556, 0.01966042, 0.028693588, 0.012228523, -0.00007371312, -0.0048145773, 0.009040347, -0.024916604, 0.025893163, 0.004128832, 0.012745525, 0.010756505, -0.025318716, 0.013348694, 0.0018059153, -0.045409974, -0.03182432, 0.03317427, 0.023451766, -0.038258117, 0.00044160552, -0.023940045, 0.014030849, 0.010763686, -0.015151018, -0.02958398, -0.029253673, 0.0064732907, -0.049775764, -0.003629782, 0.070714325, -0.033633824, -0.018324833, -0.021168342, 0.017089775, 0.028851561, -0.01081395, -0.02435652, -0.0080925105, -0.01019642, -0.02236032, 0.0024683236, -0.023724629, 0.0014800966, 0.02809042, -0.04213563, 0.0031971522, -0.044462137, -0.0052525923, -0.02933984, 0.03515611, -0.009148056, 0.03343277, 0.023523573, -0.020163061, 0.016974885, 0.01417446, -0.027946807, -0.032772157, -0.0022690624, 0.0034861704, 0.011797689, 0.03866023, -0.013477944, 0.0145406695, 0.02461502, 0.008142775, -0.029497813, 0.028190948, -0.03142221, -0.0054213363, -0.012041829, -0.00096309494, 0.023107098, -0.0509821, 0.014038029, -0.002337278, -0.014081112, 0.008228942, -0.040843125, 0.018209945, 0.00018018762, -0.05543406, 0.050034266, -0.01717594, -0.01828175, -0.0047427714, -0.020450285, -0.012293149, -0.038373005, 0.0016039615, 0.013829792, 0.044433415, -0.0021918714, -0.029038256, -0.07243767, -0.024830436, -0.0013131481, -0.056870174, 0.001498048, 0.016931802, -0.0054177456, 0.02375335, 0.0026316817, -0.02969887, 0.026036775, -0.010562629, 0.004006762, -0.027932446, -0.020450285, -0.01977531, -0.0233656, 0.032542378, 0.04052718, -0.018353555, -0.06945054, -0.03320299, 0.00820022, 0.0076042316, 0.041819684, 0.05101082, -0.0248448, -0.014619656, -0.019100336, 0.036276277, 0.019703506, -0.0063224984, -0.031738155, -0.033260435, -0.007299057, 0.0022152083, 0.043456856, -0.027702669, 0.021599177, -0.022575736, -0.03768367, -0.04374408, -0.01156073, 0.020005088, 0.0039600884, -0.031393483, 0.021527372, 0.007238022, 0.0028237621, -0.022173623, 0.010088711, 0.033518936, -0.0036979974, -0.0581914, -0.07048455, 0.01516538, 0.0025347439, -0.014274988, 0.019789672, 0.0021721248, 0.028047336, -0.0125229275, 0.058392458, -0.04314091, 0.006117852, -0.050378934, -0.02350921, 0.031479653, -0.023494849, 0.027429806, -0.013068651, 0.021541733, -0.043169633, 0.03047437, -0.042824965, 0.016156299, -0.03914851, -0.06738254, 0.010160517, -0.018224306, -0.015251547, 0.0045919796, 0.00030405258, 0.06496987, -0.016558412, 0.035270996, 0.071518555, 0.0005596363, 0.030991374, -0.02237468, 0.025964968, 0.013872876, 0.022992209, 0.0010061784, 0.004775084, -0.011697161, 0.03443805, 0.0070656883, -0.046300363, -0.02276243, 0.011122715, -0.0030786726, 0.013291249, 0.021556094, -0.013765167, -0.03469655, -0.03854534, 0.035586942, 0.019028531, -0.009011624, 0.020091256, 0.043945134, 0.009176778, -0.0121279955, -0.00919832, -0.030072259, 0.003654914, 0.044347245, -0.0043909233, -0.02573519, 0.015280269, 0.034380604, -0.007546787, -0.018985447, 0.007905816, 0.03932084, -0.017836554, -0.0001422652, -0.010217962, 0.025548495, -0.035443332, 0.015639298, 0.027932446, -0.04213563, -0.0021523782, -0.0069687506, -0.024327796, -0.07100155, -0.010483643, 0.066463426, -0.020206146, -0.023437405, -0.03593161, 0.028363282, -0.007984802, -0.044433415, 0.03593161, -0.00919114, -0.008408456, 0.03242749, -0.0017080798, 0.032743435, -0.00093706534, -0.025132021, -0.016989246, -0.0016730746, -0.06094874, -0.018324833, 0.052762885, -0.0018866968, 0.03690817, -0.0076903985, 0.021843316, 0.02027795, 0.02969887, -0.0051771966, -0.08760305, 0.040412292, 0.003920595, 0.0063943043, 0.038344283, 0.00035700935, -0.0059850113, 0.032657266, 0.030991374, -0.026654303, 0.009995364, 0.045180194, -0.0006628571, -0.022963487, -0.054256443, 0.034495495, -0.035874166, -0.0076760375, -0.026783554, -0.013614375, -0.0004873817, 0.041963294, -0.0038523797, 0.010268226, 0.061350856, 0.029153144, -0.02313582, 0.007510884, -0.049804486, -0.017922722, 0.006552277, 0.0031612492, -0.053366054, 0.003942137, 0.0041467836, -0.017534971, 0.01678819, 0.026970249, 0.03768367, 0.012774248, 0.0027034874, 0.028406365, -0.0054895515, 0.01915778, 0.022389041, -0.000019269753, -0.007905816, 0.0033533296, -0.018683862, -0.012350594, -0.005087439, 0.043456856, 0.017750388, 0.037482616, 0.0043693813, 0.0048720217, -0.03133604, 0.046329085, 0.019588616, 0.026395803, 0.010253864, 0.023107098, -0.010993464, -0.028363282, 0.067842096, 0.025778273, -0.019732228, 0.017850915, -0.01156791, 0.0013517437, -0.02027795, -0.035127386, -0.030072259, 0.034265716, 0.01877003, -0.008846471, -0.010957561, -0.04216435, -0.028363282, 0.03159454, -0.05569256, -0.044002578, 0.016687661, -0.047305644, -0.023810795, 0.030761594, -0.028923366, 0.020306673, 0.013370235, 0.0059203864, 0.00033748714, 0.019545533, 0.0025257682, 0.009722502, -0.0080494275, -0.058277566, 0.01966042, -0.020680062, -0.051039547, -0.01405239, -0.014038029, 0.062959306, 0.025017133, -0.02013434, -0.019186502, -0.022676263, 0.015151018, 0.02126887, -0.030302037, 0.022934765, -0.022776792, -0.024270352, -0.045151472, 0.045065306, -0.0072846957, 0.011539188, 0.015079212, -0.015237185, 0.04038357, 0.015093574, 0.043973856, -0.036649667, -0.015926521, 0.036247555, 0.050378934, -0.014038029, -0.007259564, 0.022604458, 0.033633824, 0.034983773, 0.05859351, 0.002945832, 0.033834882, 0.022460846, -0.06353375, -0.050551265, 0.0006309933, 0.026280914, 0.009629155, 0.025060216, -0.04925876, -0.011639716, -0.021699706, 0.013083012, 0.02411238, -0.0008100589, -0.0030158425, 0.03914851, -0.030014815, 0.021096537, -0.0017673196, -0.040728237, 0.027932446, -0.008343831, 0.04253774, -0.0218864, 0.03828684, -0.010627255, 0.01156073, 0.06548687, -0.02113962, -0.011122715, -0.0009783537, 0.032887045, -0.010383115, 0.019373199, 0.0042329505, -0.0075324257, -0.02213054, -0.056094673, -0.025146382, 0.045237638, 0.03478272, -0.027243111, 0.013341513, -0.016113216, 0.0077981073, -0.057013787, 0.03742517, -0.08875194, -0.021900762, -0.0033910277, -0.014239085, -0.026841, 0.020033812, -0.0031163706, -0.016630217, 0.018310472, 0.05468728, 0.033605102, 0.039349563, 0.036132667, -0.019445004, 0.0016676892, 0.027961168, -0.05882329, -0.025289994, -0.0023731808, 0.011725883, 0.032255154, -0.0790438, -0.082375586, 0.000045018856, -0.01143148, -0.011905397, -0.04276752, -0.0012269812, -0.018209945, -0.0034233404, -0.00329409, 0.07433334, 0.041618627, 0.028262753, -0.013750806, 0.02821967, -0.02375335, -0.026309635, -0.039636787, 0.0052023283, -0.024083657, -0.022317234, -0.010971922, -0.04799498, 0.014892518, 0.033633824, -0.021814594, -0.005130523, 0.007661676, -0.0049905013, 0.041245237, -0.020924203, -0.015653659, -0.015524409, 0.029871203, 0.071518555, 0.015151018, 0.060833853, 0.059684962, -0.059512626, -0.022719348, 0.0012198006, -0.010778047, -0.008903916, 0.0005066795, -0.0007588973, -0.00808533, -0.028564338, -0.037970893, -0.03532844, -0.011172978, -0.05606595, 0.009069069, -0.044835526, -0.030043537, -0.089096606, -0.028305836, -0.019602977, 0.04314091, -0.010727783, -0.054744724, -0.0015402338, -0.0747929, 0.24379496, 0.03840173, 0.023825156, 0.0113237705, 0.01826739, 0.028564338, 0.049057707, -0.02798989, 0.015998326, -0.015251547, -0.0027034874, -0.03779856, 0.0039600884, 0.011050909, -0.007525245, 0.023107098, -0.029555257, -0.07295467, 0.023279432, -0.043054745, -0.032255154, 0.041992016, -0.005679837, 0.06853143, 0.028435087, -0.03754006, -0.023609739, -0.052389495, 0.043054745, -0.027372362, -0.007970441, 0.024471408, 0.027932446, -0.018870559, 0.017635498, 0.039493177, 0.037339002, -0.01306147, -0.026252192, -0.0061645256, 0.039263397, -0.011108354, -0.010706241, -0.025462328, -0.015122296, 0.010311309, -0.03156582, 0.0512406, 0.05698506, -0.07163344, 0.04474936, -0.061350856, 0.023767712, -0.031537097, -0.057243563, 0.017319553, -0.035098664, -0.032628544, -0.027128221, 0.045065306, 0.041561183, -0.013901598, -0.03515611, 0.059512626, -0.0029494222, 0.026797915, 0.018468445, 0.038085785, -0.022891682, 0.008631054, 0.01927267, -0.0021469926, -0.022302873, -0.07542478, -0.013068651, 0.058622234, 0.022231068, 0.016931802, -0.0021182704, -0.03989529, 0.029957369, 0.002821967, 0.030503094, -0.031623263, 0.05695634, 0.069680326, -0.015725465, 0.005180787, -0.002437806, 0.055146836, -0.0034466772, 0.01878439, 0.020163061, -0.003157659, -0.009636335 ]
from transformers import TrainingArguments training_args = TrainingArguments(output_dir="test_trainer") Evaluate [Trainer] does not automatically evaluate model performance during training. You'll need to pass [Trainer] a function to compute and report metrics. The 🤗 Evaluate library provides a simple accuracy function you can load with the [evaluate.load] (see this quicktour for more information) function: import numpy as np import evaluate metric = evaluate.load("accuracy")
[ 0.013882919, 0.042525277, -0.04130946, -0.010277884, -0.018717907, -0.00036470054, 0.003898386, 0.009740663, 0.013402248, 0.043854192, 0.032713924, 0.021135401, 0.009959793, -0.028359609, 0.013677927, 0.034551788, -0.0010832776, -0.020018548, -0.052930396, -0.011133196, 0.029745072, 0.03491936, -0.085729145, -0.015833879, -0.04851953, -0.015112872, 0.026606573, -0.025758328, 0.06158248, 0.055305477, 0.005167217, -0.024415277, -0.009231717, -0.02574419, 0.0037075311, -0.018251373, 0.008482436, 0.011649211, -0.031554658, -0.029858172, 0.023722544, 0.05030084, -0.03995227, -0.0084612295, -0.04863263, -0.008588466, 0.0025429635, -0.0016160806, 0.005435827, 0.0024740435, -0.028218234, 0.028175822, 0.018293785, 0.008277443, -0.045098282, 0.002152418, -0.01761519, 0.003933729, -0.03777511, -0.015664231, 0.06440996, -0.0013465866, -0.019212715, -0.038086135, 0.01767174, 0.0018961778, -0.010744418, -0.005435827, -0.0066162995, -0.019650975, -0.02526352, 0.0063936356, 0.0061320937, -0.0065350095, -0.025503855, 0.020315433, -0.0054782396, -0.0110059595, -0.04048949, 0.04645547, 0.0056620254, 0.048067134, -0.006754139, 0.03605035, 0.0039761416, -0.04065914, 0.029264402, -0.04000882, -0.018675495, -0.052562825, -0.029349227, 0.025814878, 0.0048208507, 0.0359938, 0.05937705, -0.00655975, -0.035852425, 0.04786921, 0.023171186, -0.006001323, 0.035852425, 0.09528602, 0.0040857065, 0.042468727, -0.032629102, 0.05349589, 0.021206088, -0.01480185, -0.031102262, -0.018095862, 0.0394716, 0.017162794, 0.029462324, -0.020513356, 0.023779094, 0.052280076, -0.01789794, 0.01772829, -0.009712389, -0.018152412, 0.013692064, -0.015240109, -0.005068255, 0.018576533, 0.022266392, -0.06752019, -0.001360724, 0.040291566, 0.0027285167, -0.025122145, -0.010659594, -0.011790585, 0.015141147, -0.0010788598, -0.009669976, 0.012758996, -0.017318305, 0.0033753023, -0.01989131, -0.03209188, 0.04190323, -0.011889547, 0.016243864, 0.09664321, 0.0062133837, 0.037322715, 0.006386567, -0.025249382, -0.021912958, 0.0066445745, -0.027228618, 0.01767174, -0.027087243, 0.012546935, 0.0051707514, -0.008581397, -0.03458006, 0.0028274783, 0.0035926648, 0.0013704435, 0.030819515, 0.014533239, -0.048067134, 0.034240764, 0.0043613855, 0.037209615, -0.05129046, -0.02493836, 0.015282521, -0.041450832, 0.014787712, -0.018011037, -0.004304836, -0.0019350556, 0.03426904, 0.05349589, 0.07673776, -0.027087243, 0.03333597, -0.021460561, -0.021969507, -0.055927522, 0.027186206, 0.039160576, 0.016682122, 0.031243637, 0.008213825, 0.026154175, -0.018633083, -0.015324933, 0.029349227, 0.064749256, -0.056351643, 0.008524847, -0.04829333, -0.013515347, -0.008121932, 0.053693816, -0.0018466968, -0.020880928, -0.018449297, 0.032770474, -0.023029812, -0.000006305912, -0.02006096, 0.02097989, -0.000027087464, 0.005181354, -0.058528803, 0.026875183, 0.048491254, 0.0059695137, 0.000682571, -0.004223546, 0.03853853, 0.024217352, -0.024952497, 0.01885928, 0.028090999, -0.014264628, 0.05047049, -0.023609444, 0.022082606, 0.0260128, 0.04054604, -0.06678504, -0.005442896, 0.063335516, -0.016243864, 0.03746409, 0.026677258, 0.015961116, 0.019650975, 0.0042694923, 0.037096515, 0.038453706, 0.063901015, 0.035371754, -0.015904566, -0.021912958, 0.041705307, 0.02715793, 0.042751472, 0.01761519, -0.033760093, 0.009896174, 0.0076412605, 0.028204096, -0.05089461, 0.08194032, -0.038142685, 0.041818406, 0.019071342, 0.02010337, -0.06723744, -0.028599944, 0.026875183, 0.023793232, -0.020909203, -0.006174506, -0.004007951, 0.024740437, 0.0070474898, -0.012568141, 0.032487728, 0.04976362, 0.0035573214, 0.0019969067, -0.0078321155, -0.0073867873, -0.045776874, -0.058811553, -0.064975455, -0.025023185, -0.033166323, 0.007874527, -0.009175167, -0.04863263, -0.014985636, -0.02304395, 0.010702006, 0.00493395, -0.009832556, 0.058415703, 0.04809541, 0.018774457, -0.07673776, 0.019099617, -0.019636838, 0.019325815, 0.014519102, -0.021983644, 0.010723212, -0.008037107, 0.053693816, -0.008220893, 0.025404893, -0.005167217, -0.025998663, 0.007966421, -0.03836888, 0.03067814, -0.0055383234, 0.026465198, -0.008913626, 0.015098735, 0.03443869, -0.028133411, 0.016173176, 0.020513356, -0.0036368442, 0.025433168, 0.0032869438, -0.048378155, -0.05208215, 0.050866336, 0.044165213, -0.018944105, -0.039047476, -0.044900358, -0.03882128, -0.01279434, 0.0015957581, -0.02304395, -0.012921576, 0.04048949, -0.04136601, -0.00802297, -0.014660476, -0.06689814, -0.014398933, -0.031102262, -0.012596416, 0.050866336, 0.04102671, -0.018802732, -0.041931506, 0.032516003, 0.0128650265, 0.021078851, 0.004287164, -0.03333597, 0.023736682, 0.05018774, 0.0018944106, 0.02065473, 0.021700896, -0.0016637943, 0.019863036, 0.029914722, -0.010659594, -0.00333289, 0.014024293, 0.013861713, -0.015918704, 0.019707525, 0.0059871855, 0.00082615385, 0.022704652, 0.01740313, 0.01740313, 0.024132527, 0.021177813, 0.0017150424, -0.036842044, -0.008595535, -0.028416159, 0.0093377475, 0.016385237, -0.050385665, 0.012193501, -0.020569906, -0.011486631, -0.007464543, 0.016922459, -0.022181569, 0.03876473, 0.031017438, 0.035258655, -0.010772693, -0.026210725, 0.0056938347, 0.01214402, 0.00948619, 0.017544504, 0.008934832, -0.0036580502, 0.007330238, -0.010454602, 0.0053651403, -0.0197358, -0.0030413065, -0.023977017, -0.030451942, -0.029292677, -0.04885883, 0.002498784, 0.04173358, 0.0038064928, -0.030367117, 0.010680799, 0.004287164, 0.007761428, 0.01885928, 0.023354972, 0.0027691617, -0.034523513, -0.0037711493, 0.015876291, 0.018237235, 0.009521534, -0.035371754, 0.017855527, -0.043797642, 0.020683005, -0.003371768, -0.010313228, 0.042892847, -0.03463661, 0.030056095, 0.0024740435, -0.009797213, -0.033929743, 0.0212485, 0.00851071, -0.033109773, 0.020117508, -0.05230835, 0.007563505, 0.043373518, -0.0078321155, -0.061186634, -0.04673822, -0.005849346, -0.03831233, 0.0004895072, 0.09432468, -0.05095116, 0.0164842, -0.07306204, -0.007634192, 0.014985636, -0.010921136, -0.059829444, -0.0025659367, 0.0053262627, 0.031554658, 0.027666876, -0.028741319, 0.00631588, 0.015211834, -0.056012347, 0.0057327123, -0.038849555, -0.022040194, -0.01891583, 0.023779094, -0.03687032, 0.049848445, 0.0007214488, -0.006245193, 0.020569906, 0.0012211172, -0.022831889, -0.053693816, 0.028189959, 0.020697143, 0.005729178, 0.035004184, -0.020527493, -0.022195706, 0.022294667, 0.0026578298, -0.023001537, 0.013621377, -0.0008433838, -0.009776006, -0.032883573, -0.00291407, -0.012193501, -0.028331334, 0.01024254, 0.018901693, 0.00096045906, 0.031187087, -0.07017802, 0.016993145, -0.017205207, -0.043571442, 0.052506275, -0.006944994, -0.019000655, -0.02380737, -0.028981654, -0.0049904995, -0.032063607, 0.0047466294, 0.01171283, 0.043684542, 0.017205207, -0.01013651, -0.031017438, -0.04320387, -0.012045058, -0.032516003, -0.021276776, 0.0060508037, -0.041224636, 0.003036005, 0.004184668, -0.021912958, 0.02157366, -0.005167217, -0.004888003, -0.014985636, -0.02618245, 0.021460561, -0.009104481, -0.027398266, 0.066162996, 0.004884469, -0.055503402, -0.06729399, 0.0007417713, 0.015706643, 0.04461761, 0.032289803, -0.04781266, -0.014957361, -0.05779366, 0.021220226, -0.032459453, -0.029009929, -0.028345471, -0.063335516, -0.016908322, 0.026239, 0.024245627, -0.044956908, 0.0023273681, -0.02650761, -0.006651643, -0.016258001, -0.004015019, 0.00503998, 0.011677486, -0.05041394, 0.012935714, -0.006142697, -0.016314551, -0.029999547, 0.009139824, 0.039330225, 0.0011468959, -0.045098282, -0.043571442, 0.031696033, -0.018194824, -0.017714152, 0.028218234, 0.011910752, 0.035965525, -0.0014897276, 0.051969055, -0.045578953, -0.0015012143, -0.04037639, -0.026436923, 0.025164558, -0.032261528, -0.026154175, -0.017233482, -0.003566157, -0.021870546, 0.004174065, -0.007008612, -0.038566805, -0.04750164, -0.08369336, 0.03214843, -0.016936596, 0.01918444, -0.007096971, -0.0051707514, 0.039810896, -0.004428538, 0.030876065, 0.057199888, -0.013020538, 0.03084779, -0.04244045, -0.015720781, -0.0017132752, 0.01007996, -0.015805604, -0.033307698, 0.0002314998, 0.016639711, 0.0010947643, -0.047897484, -0.015551131, 0.035173833, 0.031300187, 0.000050171173, 0.015932841, 0.007627123, -0.03220498, -0.036135174, 0.015565269, 0.038736455, 0.01724762, 0.04591825, 0.047671285, 0.006729399, -0.0025641695, -0.0054287584, -0.022676377, -0.012780203, 0.0195096, -0.008157276, -0.03771856, 0.012214707, 0.035258655, -0.016201451, -0.015225971, 0.016851772, 0.024980772, -0.026422786, -0.027369991, 0.018717907, 0.016583161, -0.024429414, 0.02476871, 0.037803385, -0.04065914, -0.00916103, 0.0003269272, -0.01989131, -0.06429686, 0.012377286, 0.07102626, -0.009224649, -0.027751701, -0.0523649, 0.0260128, -0.014646338, -0.033053223, 0.062204525, -0.008093657, -0.014589788, 0.065088555, 0.01767174, 0.019848898, -0.005912964, -0.0011619169, 0.0056620254, 0.0017026721, -0.07475853, -0.031215362, 0.0328553, -0.010171854, 0.03706824, -0.013232599, 0.018025175, 0.051686306, 0.029038204, -0.014469621, -0.07244, 0.03469316, -0.025192833, -0.03556968, 0.008814664, -0.019636838, -0.030338844, 0.020442668, 0.04645547, -0.044447962, -0.0074504055, 0.038934376, 0.012030921, -0.038340606, -0.051997326, 0.011832997, -0.044193488, -0.020470943, -0.027228618, -0.021220226, 0.027087243, 0.044872083, -0.013988949, -0.0025924442, 0.00141639, 0.00054826576, -0.037379265, 0.016060077, -0.046059623, -0.045550678, -0.008355198, 0.011415944, -0.03523038, 0.0046759425, 0.01805345, -0.030508492, 0.0070757647, 0.007149986, 0.039980546, 0.030508492, 0.00867329, 0.012702446, -0.042949397, -0.0098679, 0.015522856, 0.012292462, -0.031809133, -0.0023627116, -0.021771584, -0.0029794553, -0.00010464984, 0.013190187, 0.028727181, 0.021828134, -0.023270147, -0.025673505, -0.022181569, 0.03279875, 0.011804722, 0.025249382, 0.03828406, -0.0011566154, 0.0071994667, -0.030451942, 0.045663778, 0.028204096, -0.01713452, 0.01328208, -0.013812232, -0.020145783, -0.012490386, -0.014589788, -0.033109773, 0.033024948, 0.017261757, -0.0041811336, -0.008383473, -0.029999547, -0.03409939, 0.015946979, -0.06949942, -0.03291185, 0.04673822, -0.033307698, 0.0045769806, 0.046003073, -0.00655975, 0.00926706, 0.01761519, -0.011239227, -0.016074214, 0.020301295, -0.005414621, 0.021432286, -0.049735345, -0.063278966, 0.01929754, 0.00566556, -0.0358807, -0.001365142, -0.0132467365, 0.042468727, 0.04156393, -0.01757278, -0.035258655, -0.030112645, 0.051799405, -0.016455924, -0.02027302, 0.040235016, 0.0020764295, 0.013197255, -0.04803886, 0.014391866, -0.019749938, 0.025885565, 0.007086368, -0.00926706, 0.019764075, 0.022676377, 0.008015902, -0.03398629, -0.020499218, 0.027200343, 0.048491254, -0.0026242535, -0.009394297, 0.012292462, 0.04532448, 0.024980772, 0.033109773, -0.022775339, -0.0103768455, 0.018746182, -0.025998663, -0.013897057, -0.008037107, -0.011126128, 0.058755003, 0.00862381, -0.05010292, -0.027709289, -0.009952724, -0.012497455, 0.0124267675, 0.0009180469, 0.008284512, 0.049678795, -0.020301295, 0.027058968, 0.0053651403, -0.045183104, 0.013925332, -0.0077826343, 0.057256438, -0.017063832, 0.0030642797, -0.003331123, -0.0057539186, 0.031045713, -0.02325601, 0.03008437, 0.011281639, 0.04048949, -0.010101167, 0.031328462, -0.010482877, 0.0061038192, -0.0013987182, -0.050498765, 0.000474928, 0.037803385, 0.019877173, -0.014292903, 0.009535671, -0.013953606, -0.0030289362, -0.049028475, 0.041111536, -0.058641903, 0.013275011, -0.014886674, -0.009726526, -0.054174487, 0.031639483, -0.00493395, 0.03545658, -0.004467416, 0.058415703, 0.028260646, 0.09686941, 0.028529257, 0.008630878, -0.005199026, 0.022775339, -0.03805786, -0.011013028, -0.013798094, 0.031582933, 0.03647447, -0.07034767, -0.050809786, 0.002398055, -0.017261757, -0.019113755, -0.0327422, 0.01924099, 0.0028857952, 0.0043189735, -0.0032975466, 0.0718745, 0.017855527, 0.035202105, -0.0065173376, 0.043430068, -0.040828787, 0.006269933, -0.0426101, 0.019170303, -0.033420794, -0.019311678, -0.003951401, -0.038453706, 0.014844262, 0.010122373, -0.0049268813, -0.0052944534, 0.015650094, 0.027327579, 0.012914508, -0.0109494105, -0.028430296, -0.028854417, 0.03952815, 0.052873846, -0.0039655385, 0.06016874, 0.039867446, -0.011083716, -0.026055213, 0.0038347675, -0.006987406, -0.01257521, 0.023722544, -0.003481333, -0.0022425437, -0.012893301, -0.031582933, -0.028048586, 0.02260569, -0.02966025, 0.021276776, -0.05041394, -0.037746836, -0.089348316, -0.02591384, -0.03432559, 0.031215362, -0.0073867873, -0.028698906, 0.0036085693, -0.07317514, 0.2356986, 0.056634393, 0.022549141, 0.019863036, 0.017219344, 0.025715915, 0.031469833, -0.023552895, 0.030565042, 0.023821505, 0.0055559953, -0.031413287, -0.010122373, 0.025404893, -0.0030536768, 0.02015992, -0.03480626, -0.06186523, 0.018901693, -0.050018094, -0.056521293, 0.07323169, 0.04195978, 0.040828787, 0.037746836, -0.013112431, -0.0043543167, -0.03752064, -0.001563949, -0.031893957, -0.005633751, -0.000038518872, 0.02163021, 0.016243864, 0.039754346, 0.04704924, 0.0030731156, 0.023779094, -0.022266392, -0.0107585555, 0.031950507, -0.050385665, -0.03491936, -0.014787712, -0.022139156, 0.03794476, -0.044645883, 0.030282294, 0.029179577, -0.058811553, 0.042751472, -0.085785694, 0.027949624, -0.03859508, -0.046483744, -0.015805604, -0.03622, -0.051969055, -0.022690514, 0.063392065, 0.030762965, -0.010235472, -0.028034449, 0.032770474, -0.02645106, 0.013253805, -0.020909203, 0.023326697, 0.003594432, 0.023934605, -0.002712612, -0.010150648, -0.01745968, -0.056012347, -0.029829897, 0.08024384, -0.0013395179, 0.03836888, -0.0015127009, -0.033590443, 0.026323823, 0.0004912744, 0.0113876695, -0.03805786, 0.03788821, 0.089348316, -0.014031362, -0.0029600165, 0.0075493674, 0.045776874, 0.050753236, -0.004488622, -0.0101294415, 0.0031438025, -0.027313441 ]
import numpy as np import evaluate metric = evaluate.load("accuracy") Call [~evaluate.compute] on metric to calculate the accuracy of your predictions. Before passing your predictions to compute, you need to convert the logits to predictions (remember all 🤗 Transformers models return logits): def compute_metrics(eval_pred): logits, labels = eval_pred predictions = np.argmax(logits, axis=-1) return metric.compute(predictions=predictions, references=labels)
[ -0.010347682, 0.010682417, -0.027943106, 0.023882624, -0.03868374, -0.0136440955, -0.017551765, 0.02028786, -0.020113215, 0.008957803, 0.024712184, 0.029893303, -0.012348816, -0.025250671, 0.0007194986, 0.017784623, 0.0026869772, -0.032134574, -0.065491654, -0.010966214, 0.01670765, 0.054751024, -0.0782407, -0.0011479232, -0.03350262, -0.013789632, 0.006490951, -0.014248074, 0.0786482, 0.027622925, 0.01702783, -0.016562112, -0.046600953, -0.014124367, -0.005526768, -0.030853847, 0.018395878, 0.011511978, -0.010740631, -0.027026223, 0.038392663, 0.040983222, -0.032425646, -0.04823097, -0.063512355, -0.033589944, 0.026007464, -0.014364503, 0.026458628, -0.019807588, -0.04863847, 0.041448943, 0.050122947, -0.029383924, -0.021393942, 0.024493879, -0.0074369414, 0.007458772, -0.042380378, 0.012341538, 0.044679865, 0.016110947, -0.011999527, -0.038974814, 0.030446343, -0.015456031, 0.0074187494, -0.025483532, -0.030009732, -0.04593148, -0.028219627, -0.007149506, 0.0067529175, -0.005330293, -0.03810159, -0.010391342, 0.017202476, -0.01291641, -0.022820204, 0.04974455, 0.00043979468, 0.050937954, -0.010806124, 0.013753247, 0.014408165, -0.01977848, 0.025876481, -0.016387468, -0.022820204, -0.026240325, -0.011955866, 0.03676265, 0.012508906, 0.00076770777, 0.066306666, -0.019647498, -0.045000046, 0.041041438, 0.009736426, 0.02158314, 0.03731569, 0.07515532, 0.052073143, 0.03600586, -0.060252324, 0.07375816, 0.05201493, -0.031203136, -0.035889428, -0.014437272, 0.03114492, 0.03484156, 0.008834097, -0.036471575, 0.0066692336, 0.033589944, -0.028059537, -0.026196662, -0.020142322, -0.013571327, 0.018614184, -0.030912062, -0.01252346, 0.0050574113, 0.0050355806, -0.057981946, -0.000012336536, 0.017348012, -0.029456692, -0.025017813, -0.022150734, -0.008652176, 0.02839427, -0.0024268297, 0.02197609, 0.028336057, 0.002394084, -0.015441477, -0.028452486, -0.034725133, 0.02493049, -0.008557577, 0.023969946, 0.08802079, 0.024624864, 0.07655247, -0.011453763, 0.0015790766, -0.026880687, 0.029340262, -0.016518451, 0.03600586, -0.03542371, 0.014226243, 0.05087974, -0.013920615, -0.017013278, 0.0030162546, -0.016489344, 0.010012947, 0.028481593, 0.014597363, -0.06438558, 0.00972915, -0.0073423423, 0.025570853, -0.04604791, -0.024653971, 0.014895714, -0.030009732, 0.04345735, 0.007447857, 0.017231582, -0.021321172, 0.02909285, 0.027433727, 0.073816374, 0.0068766237, 0.055886213, 0.0028943673, -0.017289797, -0.05815659, 0.03743212, 0.039469637, 0.015121296, 0.05614818, -0.012683551, 0.03306601, -0.029980626, -0.0224127, 0.016562112, 0.059670176, -0.03417209, 0.015194064, -0.036355145, -0.01836677, -0.004009545, 0.053033687, 0.0057523507, -0.014408165, -0.01199225, 0.002070264, -0.04977366, -0.0069312, -0.018599631, 0.024362896, 0.001539054, -0.012538014, -0.036034964, 0.03609318, 0.045116473, -0.0038821998, -0.034404952, -0.0033237017, 0.041652694, 0.006028871, -0.024479326, 0.02500326, 0.028641684, 0.018221235, 0.025745498, -0.007793507, 0.020185985, 0.0043588337, 0.03609318, -0.06787846, 0.0019119926, 0.06892633, -0.024595756, 0.018861597, 0.021495817, 0.024290128, 0.01104626, 0.011759391, 0.031727068, 0.024843168, 0.05076331, 0.011606577, 0.007691631, -0.010304021, 0.059349995, -0.0051629255, 0.054605488, -0.0067274487, -0.017711855, 0.017959267, -0.0083319945, 0.033764586, -0.0147210695, 0.035831213, -0.036180504, 0.07113849, 0.023911731, -0.009205217, -0.076494254, -0.034026556, 0.0023486037, 0.018686952, -0.021830551, 0.021044653, 0.006250815, 0.021714123, 0.031028492, -0.0060434244, 0.025920141, 0.050443128, 0.04045929, -0.0015918111, 0.011148135, -0.0115629155, -0.025308887, -0.056119073, -0.03070831, -0.042671453, -0.012698105, 0.022165287, -0.027506495, -0.034434058, -0.027870338, -0.01753721, 0.031581532, 0.00082637736, -0.012094126, 0.045436654, 0.040401075, -0.00037180158, -0.04348646, 0.0029307515, -0.01213051, 0.01425535, 0.021015545, -0.028044982, 0.02830695, -0.014844775, 0.02768114, -0.013389406, 0.014415441, -0.01624193, -0.011235458, -0.006407267, -0.05885517, 0.013986107, -0.0047954447, 0.020608041, -0.03944053, 0.036034964, 0.024362896, -0.020637149, -0.0014590085, 0.018279448, -0.012457969, 0.0334153, -0.002823418, -0.051694747, -0.055857107, 0.04171091, 0.02747739, -0.031203136, -0.041303404, -0.054605488, -0.020549826, -0.0142189665, -0.0010233071, -0.068984546, -0.012057742, 0.02075358, -0.035540137, -0.022107072, -0.0051410953, -0.0334153, -0.010755185, -0.038392663, -0.0035365494, 0.04596059, 0.025352549, -0.019050796, -0.05917535, 0.023460567, 0.036791757, 0.041070547, 0.02610934, -0.0052284175, 0.018890705, 0.02705533, -0.017246136, 0.038305342, 0.00077953265, 0.015557907, 0.03070831, 0.027768463, -0.035947643, -0.00975098, 0.008914142, 0.009139724, -0.022456361, -0.0028379718, 0.0002001134, -0.005122903, 0.00045525798, -0.0015554269, -0.009663658, -0.013491281, 0.009700042, -0.0059852097, -0.043311816, -0.012705381, -0.020782685, 0.0026414967, -0.015310494, -0.048056323, 0.006079809, -0.018279448, 0.013971553, -0.036064073, -0.0021284788, -0.0019647498, 0.008892312, 0.011810329, 0.038247127, -0.014007938, -0.02151037, 0.011803051, -0.009940178, -0.0070694606, 0.036355145, 0.008310163, -0.0029216555, 0.018686952, -0.00059579214, 0.0087031135, -0.016547559, 0.03385191, -0.010333128, -0.01820668, -0.040925007, -0.04447611, 0.023562443, 0.05018116, -0.013942446, -0.020768132, -0.00057850964, 0.0033691819, -0.006279922, 0.02375164, 0.045553084, 0.025891036, 0.00093962334, 0.012923687, 0.013738695, 0.045262013, -0.006090724, -0.047212206, 0.026749704, -0.04581505, 0.015456031, -0.0026378585, -0.032687612, 0.027870338, -0.026080232, 0.005381231, 0.024959598, -0.00044024948, -0.035627462, 0.042496808, -0.00408959, -0.031465102, 0.025410762, -0.042351272, 0.05131635, 0.016663989, -0.049599014, -0.033677265, -0.053295653, -0.01742078, -0.03364816, 0.01199225, 0.07835713, -0.04986098, 0.006174408, -0.05670122, 0.0040932284, 0.02079724, -0.032774936, -0.04415593, -0.0034528656, -0.006356329, 0.043224495, 0.006927562, 0.02571639, -0.018468646, -0.001599088, -0.05102528, -0.007466049, -0.057283368, -0.0131056085, -0.012174171, 0.025498085, -0.0058978875, 0.027986769, 0.0007909027, -0.006920285, 0.018628739, -0.009489014, -0.01568889, -0.007939044, 0.023460567, 0.019152671, 0.01989491, 0.033793695, -0.015164957, -0.012625336, 0.006614657, 0.008972357, -0.023533335, -0.0074878796, -0.016503897, -0.025498085, -0.010296743, -0.00092643406, -0.015557907, -0.02308217, 0.028321503, 0.02135028, -0.016445683, 0.032018144, -0.045902375, -0.0033691819, 0.009045126, -0.06747096, 0.046251662, -0.0053157397, -0.0353946, 0.01820668, -0.013280253, -0.035045315, -0.03306601, -0.003087204, -0.0033346168, 0.037141047, 0.0017182464, -0.0040859515, -0.052597076, -0.048813116, 0.021059206, -0.04811454, -0.038625523, -0.011417379, -0.002976232, 0.024319235, 0.006691064, -0.00593791, -0.012654443, 0.013986107, 0.032687612, -0.044767186, -0.02551264, 0.009619997, -0.025221564, 0.024581201, 0.05090885, 0.018890705, -0.05067599, -0.049104188, -0.0015026696, -0.0040168217, 0.028612576, 0.018890705, -0.011890374, 0.016576666, -0.046775598, 0.01675131, -0.009539952, -0.054867454, -0.0271281, -0.063163064, -0.012057742, 0.0046244385, 0.031872608, -0.040808577, -0.034928884, -0.02167046, -0.005584983, 0.0137168635, -0.0014617374, 0.00579965, -0.016940508, -0.05253886, 0.032338325, 0.0032236448, -0.02079724, -0.015776213, -0.0012980083, 0.04328271, 0.025076028, -0.043631997, -0.030766524, 0.0074806027, -0.008528469, -0.014699238, 0.031028492, 0.031668853, 0.03786873, -0.02178689, 0.050239377, -0.051811177, 0.00006156898, -0.061300192, -0.02001134, 0.021597693, -0.01686774, 0.007036715, 0.027506495, -0.0009760076, -0.036995508, 0.014990313, 0.00866673, -0.0006599194, -0.04811454, -0.077076405, 0.0032472946, 0.008302887, -0.012690827, 0.022936633, -0.0035056227, 0.031610638, -0.025643623, 0.0448254, 0.03880017, -0.005839673, 0.010951661, -0.020491611, -0.0038894766, -0.00718589, 0.014131644, 0.009430799, -0.024814062, -0.0017710036, -0.007145867, 0.014473656, -0.038596418, 0.007447857, 0.05920446, 0.032920472, -0.037403014, 0.031203136, 0.010740631, -0.035947643, -0.015819874, 0.030853847, 0.00593791, -0.0023558803, 0.040604826, 0.029427584, 0.024202805, -0.002430468, -0.0010205783, -0.02493049, 0.00023513324, -0.002146671, -0.0048973206, -0.044912722, 0.043719318, -0.0075242636, -0.028452486, -0.028554363, 0.021888766, 0.0050355806, -0.026720596, -0.03070831, 0.041216083, 0.021131974, -0.047153994, 0.011832159, 0.0035529223, -0.036034964, 0.0020939137, -0.0010951661, -0.03350262, -0.066306666, 0.0022776544, 0.06857704, 0.0009250697, -0.020942776, -0.07102206, 0.012188725, -0.0048973206, -0.051490996, 0.030067947, 0.00857213, -0.021597693, 0.026880687, 0.05495478, 0.026545951, -0.02426102, 0.017289797, 0.037141047, 0.007022161, -0.0719535, -0.015907196, 0.0045298394, -0.010449558, 0.046571843, 0.0024941405, 0.028132305, 0.06444379, 0.034346737, -0.025148796, -0.068751685, 0.017246136, -0.02264556, -0.021175636, 0.007065822, -0.027899446, -0.015557907, 0.020564381, 0.035045315, -0.047445066, -0.016125502, 0.035132635, 0.017609978, -0.020098662, -0.059786607, -0.009147001, -0.015281387, -0.007917213, -0.021321172, -0.024872275, 0.029951518, 0.03620961, 0.010449558, -0.01961839, 0.013083777, -0.011839436, -0.01686774, -0.0046753767, -0.05256797, -0.034201197, -0.0005716876, 0.017842839, -0.0393241, 0.016998723, 0.03260029, 0.005101072, -0.005996125, 0.007145867, 0.0077716764, 0.031989034, -0.015223172, 0.021131974, -0.015790766, -0.0055049374, 0.00073678116, 0.04037197, -0.0033327977, 0.006039786, -0.059670176, -0.0062981145, 0.014444549, -0.000083968036, 0.052713506, 0.018352218, 0.019007133, -0.02292208, -0.048492935, 0.028132305, 0.019196332, 0.03484156, 0.03207636, -0.010173038, -0.011490148, -0.048987757, 0.055740677, 0.014684685, -0.018104805, -0.002317677, -0.004107782, 0.0017828285, -0.010100269, -0.030388128, -0.034142982, 0.027026223, 0.01793016, 0.027768463, -0.0048536593, -0.01104626, -0.04313717, 0.0024341065, -0.037926946, -0.013411236, 0.042380378, -0.008310163, 0.00031836223, 0.06269734, -0.012028635, -0.007655247, 0.028729007, 0.027608372, -0.03507442, 0.018497754, 0.017202476, 0.04773614, -0.031727068, -0.052422434, 0.021437602, -0.026968008, -0.031435996, -0.0045735007, 0.0032090913, 0.06933384, 0.03955696, 0.00045480317, -0.035132635, -0.018614184, 0.032338325, -0.0034364928, -0.034463163, 0.04997741, -0.03393923, 0.010180314, -0.04741596, 0.023169493, -0.017289797, 0.036588006, 0.00882682, -0.013484004, 0.032804042, 0.010718801, 0.00003126772, -0.051636532, -0.026997115, 0.017813731, 0.029180171, 0.002978051, -0.027113546, 0.01816302, 0.06188234, 0.02229627, 0.032804042, -0.0338228, -0.0035547416, 0.0046171616, -0.044738077, -0.013025563, -0.006305391, -0.00841204, 0.028452486, 0.015456031, -0.057690874, -0.030184377, -0.0432536, 0.004831829, -0.00095235783, -0.005053773, -0.00019897638, 0.057196047, -0.017202476, 0.031435996, 0.010842508, -0.04997741, 0.008935973, -0.0147210695, 0.07829891, -0.024028162, 0.013687756, -0.0026578698, -0.011795775, 0.045145582, 0.0007076737, 0.03542371, 0.015397816, 0.04334092, -0.004544393, 0.034230307, 0.0056868587, 0.005861503, -0.025949249, -0.035743892, 0.031668853, 0.024784954, 0.009387137, 0.0032454755, -0.003685725, -0.015208618, 0.033036903, -0.04811454, 0.025629068, -0.06752917, 0.014262628, 0.0034583234, -0.016140055, -0.0061016395, 0.040430184, 0.004220573, 0.023897178, 0.017449887, 0.038159806, 0.015703443, 0.093201905, 0.03452138, 0.019283654, -0.025905589, 0.017246136, -0.0044861785, 0.0010369512, -0.031465102, 0.06659774, 0.022383593, -0.045989696, -0.028801775, 0.013549496, -0.016882293, 0.006079809, -0.020506166, 0.041099653, -0.00051574677, 0.005719605, -0.036384255, 0.09128082, -0.011344611, 0.028059537, -0.002113925, 0.038741954, -0.031785283, -0.012254217, -0.034201197, 0.009903794, -0.011526532, -0.009139724, -0.041536264, -0.014641023, 0.015659783, -0.029340262, -0.015077635, -0.016009072, -0.010173038, -0.017100599, -0.0011324598, 0.0035620185, -0.013629542, -0.023358691, 0.012035911, 0.04348646, 0.010107546, 0.04447611, 0.038247127, 0.014611917, -0.0286999, -0.02689524, -0.022441808, -0.02626943, 0.05402334, 0.0137168635, -0.0005876057, -0.014342673, -0.016416576, -0.043311816, 0.029165618, -0.00801909, 0.02814686, -0.035889428, -0.019065348, -0.08621613, -0.031203136, -0.024173697, 0.034783345, 0.016533004, -0.014713792, -0.00035633828, -0.06782025, 0.24962509, 0.0786482, 0.024610309, 0.039062135, 0.03722837, 0.027215421, 0.04427236, -0.0063672443, 0.010369512, 0.005534045, 0.02178689, -0.010624202, -0.024624864, 0.0075824787, 0.019370977, 0.027491942, -0.0088704815, -0.063861646, 0.03743212, -0.046542738, -0.034375843, 0.046106126, 0.02142305, 0.049919195, 0.031901713, -0.012465245, 0.003874923, -0.025847374, 0.019443745, -0.0072077205, 0.00975098, -0.018017482, 0.015950857, -0.011504701, -0.002583282, 0.054430842, 0.02375164, 0.005970656, -0.009932902, -0.022703774, 0.053033687, -0.039644282, -0.06805311, -0.01950196, -0.03035902, 0.0349871, -0.0001878337, -0.012894579, 0.034201197, -0.06421093, 0.024304682, -0.0994891, 0.027157206, -0.018454093, -0.049337048, -0.030679204, -0.05748712, -0.028437933, -0.0011379175, 0.07870642, 0.02807409, -0.005279355, -0.022500023, 0.016343806, -0.028758114, 0.034928884, -0.03967339, 0.023780748, -0.026400415, -0.009991116, 0.008077304, -0.0012461607, -0.040284645, -0.053208333, -0.024333788, 0.051258136, -0.018148465, 0.021932429, 0.005181118, -0.061125547, 0.03094117, 0.0026396776, 0.013673202, -0.036995508, 0.041740015, 0.06531701, -0.023955392, 0.003842177, -0.023940839, 0.02331503, 0.020302413, -0.0051447335, -0.02405727, 0.0060507013, -0.026924348 ]
def compute_metrics(eval_pred): logits, labels = eval_pred predictions = np.argmax(logits, axis=-1) return metric.compute(predictions=predictions, references=labels) If you'd like to monitor your evaluation metrics during fine-tuning, specify the evaluation_strategy parameter in your training arguments to report the evaluation metric at the end of each epoch:
[ 0.01884674, 0.025280137, -0.01472313, -0.012151187, -0.05985611, -0.016437758, -0.001748283, 0.0150065385, 0.0010734139, 0.008204708, 0.017075429, 0.026399605, 0.0065857307, -0.017939828, 0.011711902, 0.029729668, -0.006142903, -0.028836928, -0.07017222, 0.009607586, -0.011449749, 0.03451929, -0.06954872, -0.021028994, -0.055236533, -0.022275995, -0.0063448325, -0.01887508, 0.06943535, -0.0035886741, -0.035029426, 0.0023062457, -0.030466532, -0.018124044, -0.008055918, -0.03633311, 0.024373226, -0.012788858, -0.055945057, -0.051098753, 0.020759754, 0.02387726, -0.005742587, -0.05778722, -0.055945057, -0.009855569, 0.014071287, -0.047442768, -0.0078079347, -0.035199475, -0.00003711448, 0.04837802, 0.019895354, -0.0038543707, -0.029304553, 0.026980594, -0.01018149, 0.0042086327, -0.048264656, 0.026470458, 0.024274033, 0.03806191, -0.016891213, -0.04041421, 0.03035317, 0.0033920587, 0.022757791, -0.025166772, -0.04775452, -0.048888158, -0.07612382, 0.01588511, 0.012555046, -0.042879872, -0.04710268, 0.01649444, 0.03712666, 0.00012742361, 0.007574122, 0.0424831, 0.011116742, 0.062066704, -0.015601699, 0.011471004, -0.0034912522, -0.044665355, 0.027093958, -0.015233266, -0.033839107, -0.01947024, -0.019073466, 0.044353604, 0.0047612814, 0.014489316, 0.059175927, 0.028596029, -0.039053842, 0.03862873, -0.016749509, -0.009997274, 0.05311096, 0.102537595, 0.019016786, 0.02387726, -0.025336819, 0.042653147, 0.055576622, -0.014503486, -0.051183775, -0.021780029, -0.013469041, 0.026172878, 0.026739696, -0.0014135054, -0.027490731, 0.03860039, -0.004697514, -0.01283137, -0.071872674, -0.020731414, 0.008764442, -0.020419663, -0.018719204, -0.032903854, 0.041406143, -0.04982341, -0.027830824, 0.0262579, -0.01177567, -0.021595811, -0.04307826, -0.007216317, 0.061103113, 0.02122738, 0.021496618, 0.005522945, 0.025464354, -0.017840635, -0.009940592, -0.05625681, 0.027944187, 0.024855023, 0.00882821, 0.085192926, 0.01472313, 0.01415631, -0.012597557, -0.033754084, -0.024911705, -0.0020564909, -0.04095269, -0.0134407, -0.034349244, 0.033073902, 0.021595811, -0.037325047, -0.034094177, 0.014879004, 0.0044991276, 0.020292128, 0.018648352, 0.01356115, -0.046082404, 0.026782207, 0.006390887, 0.029134508, -0.03769348, -0.033385653, 0.016111836, -0.03868541, 0.008183452, 0.026201218, 0.02212012, -0.02091563, 0.04486374, 0.00081391697, 0.071305856, 0.042653147, 0.018364944, 0.026796378, -0.0102240015, -0.01135764, -0.007609548, 0.04095269, -0.01164105, 0.022587746, 0.029729668, -0.0034575972, -0.011442663, 0.0019006156, 0.008948659, 0.060933065, -0.032903854, -0.02715064, -0.033442333, -0.028496835, -0.0012390314, 0.026413776, 0.031373445, -0.03160017, -0.028638542, 0.01772727, -0.03386745, 0.0014099628, 0.0057036183, -0.026994765, -0.02238936, 0.010769565, -0.0035479341, 0.029587964, 0.02180837, 0.032280356, 0.0047506536, 0.03925223, 0.019909525, -0.002975801, -0.027972529, 0.0177131, 0.034037493, 0.017245475, 0.024699148, -0.013192717, 0.046450835, 0.014793982, 0.06320034, -0.027093958, -0.012781774, 0.049483318, -0.02212012, 0.026187047, 0.030749943, 0.032252014, 0.045260515, 0.021085676, -0.016947895, 0.041717894, 0.037806842, 0.01978199, 0.02299869, -0.0022353933, 0.04327665, -0.002867751, 0.03712666, 0.019810332, -0.03483104, 0.009706779, -0.024599954, 0.031033352, -0.021284062, 0.031231739, -0.04015914, 0.06076302, 0.03038151, -0.04460867, -0.0790146, -0.020462174, 0.0010804991, 0.045175493, -0.009054937, 0.018804228, 0.024925875, 0.016352734, -0.0019643828, -0.012427512, 0.019626115, 0.03718334, 0.03239372, 0.043588396, 0.02094397, -0.048207976, -0.011088401, -0.024387397, -0.04834968, -0.011385981, -0.013121865, -0.0030289402, 0.0070816977, -0.052034006, -0.0140287755, -0.008218879, 0.011577282, -0.024132328, 0.004187377, 0.05608676, 0.06325702, 0.031940263, -0.026994765, 0.0102240015, -0.033697404, 0.02061805, -0.016026814, -0.058325697, 0.022403529, -0.019569434, 0.017642248, -0.011676475, 0.029106166, -0.004846304, -0.021439936, 0.013213973, -0.042313054, 0.02981469, 0.003776433, 0.033215605, -0.009359602, 0.0209298, 0.026966425, -0.014638106, 0.029304553, 0.037976887, 0.021057334, 0.028539348, 0.019328535, 0.0046408325, -0.06223675, 0.04993677, 0.014397208, -0.029361235, -0.046819266, -0.032592107, -0.022304336, 0.006061423, 0.0046868864, -0.04018748, -0.02268694, 0.046790928, -0.01269675, -0.06892522, -0.020518856, -0.044070195, 0.012158272, -0.037325047, -0.01565838, 0.042653147, -0.0051190862, -0.010110638, -0.070455626, -0.025549376, 0.0070852404, 0.00870776, 0.03687159, -0.015700892, 0.036304772, 0.03505777, -0.00273136, 0.014085458, 0.0033513186, -0.008006321, 0.015573358, 0.025761934, -0.011471004, -0.017018747, 0.020377152, 0.014149224, 0.01884674, 0.025790274, -0.020731414, 0.0019201001, 0.022913666, 0.006217298, -0.008984084, -0.008785698, 0.009550904, -0.015247437, -0.06524089, -0.008445607, -0.03341399, -0.0023983538, 0.009961848, -0.044722036, 0.027589925, 0.006971876, -0.013632002, 0.0017518257, -0.0150065385, -0.01134347, 0.044637013, 0.009324176, 0.057957266, -0.014793982, -0.034944404, 0.034320902, -0.013058098, 0.016976235, 0.031203398, -0.022474382, 0.0007067527, 0.045005444, -0.031458467, -0.0047577387, -0.010471985, 0.02835513, 0.018605841, 0.0015321831, -0.039053842, -0.026668845, 0.027802482, 0.06637453, 0.030211464, -0.012703836, 0.004924242, -0.026895572, -0.021326574, -0.0009476509, 0.018350773, 0.02007957, -0.033555698, 0.016749509, 0.051778935, 0.0271223, -0.0029014058, -0.01918683, -0.0043715932, -0.006146446, 0.00042201462, -0.02118487, 0.0035443914, 0.028766075, 0.0011575511, -0.030523214, 0.009352517, -0.02921953, -0.04568563, 0.03395247, 0.014921516, -0.020518856, 0.005923261, -0.035766292, 0.0026551937, 0.008927403, -0.04038587, -0.02298452, -0.039422277, -0.000862628, -0.04245476, 0.018435795, 0.07090908, -0.04276651, -0.024259862, -0.04333333, 0.020122083, 0.009919336, -0.009720949, 0.0026534225, -0.0003894668, -0.034916066, -0.018719204, -0.02357968, 0.02238936, -0.013001416, 0.006316492, -0.058212332, -0.017302157, -0.04812295, -0.005172225, -0.035284497, 0.04543056, 0.02005123, 0.0073473942, 0.020561367, -0.023338782, -0.0054379217, 0.017245475, -0.0525158, -0.026697185, 0.004449531, 0.004562895, -0.005969315, 0.0354262, 0.00037507492, 0.013001416, 0.02919119, 0.01975365, -0.011619794, -0.0065325913, -0.044948764, -0.0019696967, 0.012016567, -0.018648352, 0.014652276, -0.04197296, 0.03837366, 0.004566437, -0.021865051, 0.0023611563, -0.054442987, -0.012179528, -0.00005695869, -0.06382384, 0.02978635, -0.008530629, -0.030693261, 0.0015782373, 0.015488335, 0.014418464, -0.017911486, -0.011995312, -0.0021645408, 0.041632872, 0.005643394, -0.0011672933, -0.05452801, -0.028468495, 0.012930564, -0.06444734, -0.019725308, 0.015119903, -0.0010734139, 0.030296488, -0.008466862, -0.020235445, 0.00463729, -0.024940046, 0.017557226, -0.031401783, -0.038175274, -0.026923914, 0.0067699472, 0.02451493, 0.03896882, 0.0038472854, -0.067961626, -0.011520601, 0.025861127, -0.004920699, 0.01711794, 0.036786567, -0.017160451, -0.005034063, -0.025166772, 0.031430125, 0.0120449085, -0.009465881, -0.043560058, -0.01563004, -0.0009830771, 0.011442663, 0.030778283, -0.035256155, -0.0089203175, -0.042596463, -0.015304118, -0.03862873, -0.013362763, 0.014623936, 0.0070994105, -0.050361887, 0.05671026, 0.015275778, -0.0039712773, -0.014793982, -0.016097665, 0.016437758, 0.018435795, -0.05302594, -0.044268582, -0.009175386, 0.01164105, -0.010670371, 0.01588511, 0.019371048, 0.01429093, -0.021765858, 0.043446694, -0.04064094, -0.0076308036, -0.045940697, -0.0035443914, 0.018379113, -0.015842598, 0.047301065, 0.010634946, 0.029006973, -0.024203181, 0.018194897, -0.03769348, 0.030154783, -0.032592107, -0.06518421, 0.023962282, -0.01591345, -0.018407455, -0.002256649, -0.023083713, 0.0554916, -0.036106385, 0.033130582, 0.056738604, 0.003935851, 0.020136252, -0.023650533, 0.031345103, 0.022814473, 0.042568125, 0.027788311, 0.018449966, -0.011690646, 0.00782919, 0.021099845, -0.052685846, 0.006390887, 0.02831262, 0.026031172, -0.008211793, 0.03775016, -0.0065503046, -0.05566165, -0.058325697, 0.029389577, 0.014269674, 0.012144102, 0.019016786, 0.029247873, 0.020419663, 0.03627643, -0.018421624, -0.017613906, -0.0005690334, 0.07124917, -0.00824722, -0.039110526, -0.018676693, 0.021099845, -0.034887724, -0.031656854, -0.025110092, 0.056143444, -0.00042998552, -0.020334639, -0.021043163, 0.029247873, -0.045770653, 0.030126441, -0.0052005663, -0.027349027, 0.008275561, 0.0026020545, -0.029332895, -0.06671462, -0.00072845124, 0.053224325, -0.0065148785, -0.0147373, -0.050616957, 0.01312895, -0.026668845, -0.059686065, 0.026994765, -0.0069860467, -0.005352899, 0.02475583, 0.014127969, 0.052600823, -0.01740135, 0.009961848, 0.03126008, -0.018010681, -0.039592322, 0.0002446622, 0.01947024, 0.00088786916, 0.034887724, -0.017075429, 0.010670371, 0.017061258, 0.048406363, -0.011988226, -0.085306294, 0.03185524, -0.006592816, -0.020518856, 0.025436012, -0.0019360419, 0.0131998025, 0.018379113, 0.02298452, -0.021071505, 0.028071722, 0.03327229, 0.008176367, -0.005519402, -0.06762153, 0.036134724, -0.03508611, -0.010167319, -0.0542446, -0.03573795, 0.021411596, 0.005848866, 0.009373773, 0.0012381457, 0.03814693, 0.03216699, -0.00855897, 0.015672551, -0.04928493, -0.010960867, 0.029361235, 0.012363744, -0.059119243, 0.003101564, 0.01588511, 0.006288151, 0.007907128, 0.015715063, 0.012278722, -0.025591888, 0.018945932, 0.039932415, 0.016508609, -0.011081316, 0.0084172655, 0.028681053, -0.016040985, 0.005204109, -0.06716808, -0.014064202, -0.0019874098, 0.019328535, 0.008658163, 0.04341835, 0.011166339, 0.01563004, -0.014921516, 0.037863523, 0.029247873, 0.026017003, 0.0027685575, -0.0022176802, -0.028638542, -0.0071383794, 0.065921076, 0.02301286, -0.015119903, 0.019895354, 0.0050128074, 0.0113788955, -0.002662279, -0.02124155, -0.013114779, 0.03655984, 0.013242314, 0.0072977976, -0.0037551774, -0.008339328, -0.03621975, 0.030126441, -0.044580333, -0.045288857, 0.041406143, -0.022828644, -0.014241333, 0.012455853, -0.028496835, -0.013646172, 0.006079136, 0.009763461, -0.011017549, 0.01854916, 0.0073332237, 0.03330063, -0.029162848, -0.038260296, 0.001548125, -0.022304336, -0.029389577, -0.0031139632, -0.001114154, 0.046904292, 0.020632219, -0.004562895, -0.00011192465, -0.021879222, 0.020476345, 0.050616957, -0.031656854, 0.007992151, -0.010372791, -0.00824722, -0.050673638, 0.042653147, -0.011258447, 0.02091563, 0.012937648, -0.020745583, 0.036984954, 0.02567691, 0.034632653, -0.02305537, -0.00927458, 0.013065183, 0.032847174, 0.00013174118, -0.023749726, 0.02332461, 0.05517985, 0.016366905, 0.05166557, -0.005324558, 0.026328752, 0.0063660885, -0.097039446, -0.027306516, 0.028142573, -0.00046142627, -0.0104011325, 0.024274033, -0.06920863, -0.02209178, -0.008686504, 0.0084030945, 0.02828428, -0.013348592, -0.017273815, 0.012725092, -0.02389143, 0.03979071, 0.015261607, -0.06098975, 0.024656637, -0.016466098, 0.080885105, 0.0041129817, 0.03837366, -0.021454107, 0.011697732, 0.03862873, -0.020249616, 0.020533025, 0.014411379, 0.04064094, -0.015545017, 0.03868541, 0.0072234026, -0.0052076518, -0.06450403, -0.05753215, -0.017245475, 0.023466315, 0.032110307, -0.0062739803, 0.0021238008, -0.02591781, 0.025450183, -0.07419664, 0.027008936, -0.107922375, -0.015304118, 0.0029368321, -0.022006756, -0.00390751, 0.04455199, -0.0206889, 0.013150206, 0.033697404, 0.05656856, 0.020575538, 0.033499017, 0.03281883, -0.017812293, 0.0006885968, 0.039705686, -0.043843467, -0.019923696, -0.00988391, 0.036474817, -0.0011088401, -0.0559734, -0.04982341, 0.006107477, -0.011088401, 0.0031830443, -0.042964898, 0.027079789, 0.004839219, -0.020263787, -0.011350554, 0.07170263, 0.032478742, 0.0035479341, -0.007878787, 0.031430125, -0.011832351, -0.04401351, -0.037381727, 0.014538913, 0.010316109, -0.028638542, -0.021624153, -0.04100937, 0.026314583, -0.0057248743, -0.018010681, -0.0059834854, 0.009324176, -0.017032918, 0.033980813, 0.004895901, -0.02009374, -0.003925223, 0.024118157, 0.04129278, 0.0067557767, 0.04574231, 0.056795284, -0.020632219, -0.016933724, -0.025875296, -0.0100752115, -0.024288204, 0.033017218, 0.020249616, 0.018917592, -0.027958358, -0.0589492, -0.041944623, -0.0053741545, -0.029361235, 0.01122302, -0.016933724, 0.0060118265, -0.07567037, -0.04446697, -0.035001088, 0.03281883, -0.032847174, -0.044920422, 0.016352734, -0.06161325, 0.23625025, 0.061839975, 0.033017218, 0.0068053734, 0.030551556, 0.04537388, 0.027249834, -0.015828427, -0.0133769335, -0.029077826, 0.010620775, -0.02418901, -0.012958905, 0.010209831, 0.007124209, 0.050531935, -0.035341177, -0.06098975, 0.006277523, -0.02064639, -0.042624805, 0.049398296, -0.01768476, 0.05458469, 0.042057987, -0.021780029, -0.030551556, -0.033130582, 0.043758444, -0.009217897, 0.0022389358, 0.0051899385, 0.028454324, -0.0043397094, -0.02654131, 0.048406363, 0.042993236, -0.016536951, -0.018931761, -0.017202964, 0.047074337, -0.030664919, -0.02451493, -0.0108900145, -0.026612163, 0.007751253, -0.0020210647, 0.012902223, 0.06535426, -0.06728144, 0.0224177, -0.05577501, 0.019115979, -0.029984737, -0.056370173, 0.010379877, -0.045317195, -0.039422277, -0.043730102, 0.053904507, 0.029162848, -0.020844776, -0.004669173, 0.0424831, -0.04628079, 0.035879657, -0.0034894808, 0.043900147, -0.034037493, -0.010266513, -0.00019606188, -0.0113930665, -0.046989314, -0.040555917, 0.007999236, 0.03806191, 0.010861673, 0.01298016, -0.014609765, -0.065297574, 0.02098648, 0.012002397, 0.028851097, -0.044580333, 0.057447128, 0.034320902, -0.032705467, 0.018138215, -0.02919119, 0.032790493, 0.01077665, 0.04098103, 0.003085622, 0.0056150528, 0.015403313 ]
If you'd like to monitor your evaluation metrics during fine-tuning, specify the evaluation_strategy parameter in your training arguments to report the evaluation metric at the end of each epoch: from transformers import TrainingArguments, Trainer training_args = TrainingArguments(output_dir="test_trainer", evaluation_strategy="epoch") Trainer Create a [Trainer] object with your model, training arguments, training and test datasets, and evaluation function:
[ 0.025814578, 0.034546178, -0.019391486, -0.052090857, -0.038402747, -0.013586262, 0.012160418, 0.021279033, 0.006776157, 0.01800638, 0.044866577, 0.03905456, 0.02395419, -0.040847052, 0.03039086, 0.034817766, -0.010829629, -0.030771084, -0.07745731, 0.0031809914, -0.013178878, -0.0015820086, -0.084247045, -0.00873839, -0.04739236, -0.029739045, -0.0023169976, 0.002354341, 0.04350863, 0.007516238, -0.043617267, 0.013654159, 0.0069730594, -0.012934447, -0.033867206, -0.022297494, 0.019405067, -0.014584353, -0.08614817, -0.025855316, 0.0257331, 0.028679846, 0.022786355, -0.043888856, -0.07235143, 0.004661154, 0.016227469, -0.032454938, -0.03066245, -0.024225779, -0.019201374, 0.0514662, 0.023220899, -0.010782101, 0.009627846, -0.010591988, -0.0026072587, -0.0024477, -0.042558067, 0.013328252, -0.000019321575, 0.03965206, -0.024225779, -0.056544922, 0.009858697, -0.007265018, 0.0028720584, -0.004019524, -0.048804626, -0.034111634, -0.05453516, 0.014299185, 0.019486543, -0.034301747, -0.022609822, 0.033840045, 0.047691107, -0.010653096, -0.005200938, 0.053475965, 0.016023777, 0.06230262, 0.0050244047, 0.03221051, -0.015792927, -0.024144303, 0.06262853, -0.004997246, -0.034328908, -0.03628435, -0.023601124, 0.041172963, -0.0056592454, 0.016118834, 0.077565946, 0.013701688, -0.009526, 0.0185224, -0.013341832, -0.0044438825, 0.057305373, 0.096142665, 0.0010142168, 0.01440782, -0.030852562, 0.019459384, 0.012153628, -0.0035578217, -0.06708259, 0.0006764275, 0.00087927084, 0.006928926, 0.04788122, -0.003785278, -0.015412701, 0.03623003, -0.00670147, 0.013226407, -0.082345925, -0.018739672, 0.016797807, -0.0036766422, -0.006341614, -0.03297096, 0.03813116, -0.039597742, -0.029576091, 0.032047555, -0.013009135, 0.0025291769, -0.011630818, -0.011834511, 0.041879095, 0.017327407, -0.004684918, -0.002948443, -0.02394061, -0.002909402, 0.012581381, -0.058011506, 0.03009211, 0.036963325, -0.0011474654, 0.06567033, 0.034356065, -0.017191613, -0.004352221, -0.054616638, -0.023302374, -0.0020708696, -0.04136307, -0.011562921, -0.0262627, 0.038104, 0.01826439, -0.02911439, -0.04535544, 0.023981348, 0.014299185, 0.009655005, 0.00347974, 0.00670147, -0.027240422, 0.02031489, 0.028435415, 0.012723966, -0.021509884, -0.020138359, -0.0010532578, -0.029385978, -0.012981975, 0.02007046, 0.011128378, -0.014692989, 0.037071962, 0.018373026, 0.0649642, 0.04714793, -0.0055743735, -0.00877234, -0.020667957, -0.0060089165, -0.00682029, 0.008079786, -0.031205628, -0.0015387239, 0.014869522, -0.0016864007, -0.015629973, 0.03783241, 0.023981348, 0.035632536, -0.025284978, -0.014706569, -0.044133287, -0.027892238, -0.0035747963, 0.021021023, 0.03090688, -0.04274818, 0.000044239376, 0.017680474, -0.021428408, -0.011793772, 0.041227277, -0.034057315, -0.035469584, 0.014489297, -0.013762795, 0.011345649, 0.023764078, 0.051601995, 0.022813514, 0.024592426, 0.03191176, 0.0065045673, -0.03682753, -0.010720993, 0.0077131405, -0.0044710413, 0.06376921, -0.012445587, 0.032101873, 0.026724402, 0.04014092, -0.017897746, -0.007516238, 0.05301426, 0.0053231535, 0.03631151, 0.01926927, 0.026670083, 0.053638916, 0.028055191, -0.0048037386, 0.03316107, 0.045491233, 0.016716331, 0.036637418, 0.0018383211, 0.016376844, 0.013212827, 0.03014643, 0.038049683, -0.03734355, 0.0041553187, -0.01313814, 0.02442947, -0.05233529, 0.030852562, -0.03853854, 0.010945055, 0.034681972, -0.028136667, -0.08033616, -0.017612576, 0.0025750075, 0.034084477, -0.016824966, -0.013837483, 0.031993236, 0.0030774479, 0.006871213, -0.0065045673, 0.024768958, 0.041634664, 0.0277836, 0.048831783, 0.022501186, -0.062465575, -0.0069085564, -0.034600496, -0.06203103, -0.039000247, -0.039434787, -0.0005461494, 0.0060089165, -0.03783241, 0.009655005, -0.0148966815, 0.014991738, 0.0029739046, -0.023872713, 0.0432642, 0.067897364, 0.04970087, -0.024103563, 0.0070477463, -0.002300023, -0.0064298804, 0.009817959, -0.03894593, 0.015928721, -0.0076316637, 0.0066607315, 0.00096414256, 0.047582474, -0.016648434, -0.046251684, 0.028489733, -0.04557271, 0.03527947, 0.008283478, 0.044350557, 0.004691708, 0.040303875, 0.032808006, -0.018495241, 0.035985604, 0.016906444, 0.0047969487, 0.0030214326, 0.030010635, 0.0041281595, -0.04147171, 0.032590736, 0.027770022, -0.037642296, -0.055214137, -0.059641045, -0.024999809, -0.002608956, -0.022623401, -0.0129616065, -0.00850075, 0.05665356, -0.03834843, -0.07278597, -0.041227277, -0.043535788, -0.0015455137, -0.03011927, -0.0060394704, 0.009329097, -0.0063178497, -0.0013112678, -0.0095938975, 0.000098079865, 0.022922149, 0.015833665, 0.02783792, -0.014584353, 0.059749678, 0.04253091, 0.0006832172, -0.0008784221, 0.01675707, -0.011644398, -0.0010659886, 0.009084667, 0.0040025497, -0.018481662, 0.011264172, -0.011542552, 0.0037241704, 0.027973713, -0.0054759225, 0.0049395333, 0.039977968, -0.0076520327, 0.031748805, 0.023383852, -0.010768522, -0.020912388, -0.059858315, -0.020898808, -0.0130702425, 0.0059885476, 0.02137409, -0.06849486, 0.013368991, 0.0021404643, -0.009254411, 0.012588171, -0.00071674155, -0.027919395, 0.045382597, 0.049836665, 0.050026778, -0.016390424, -0.023030786, 0.0058357785, -0.0046713385, 0.0026564843, 0.047854062, -0.008663704, -0.009946964, 0.031096993, -0.033432662, -0.016824966, 0.004613626, 0.023492487, 0.008446432, -0.013355412, -0.025651624, -0.039760694, 0.003809042, 0.04869599, 0.055186976, 0.007190331, 0.030716768, -0.042639542, -0.03221051, 0.01982603, -0.006901767, -0.0077810376, -0.050407004, 0.012954817, 0.058065824, 0.014448559, -0.012398059, -0.015317645, -0.0037004063, 0.008609385, 0.020138359, -0.026561448, 0.010748153, 0.020980285, -0.025773838, 0.025013389, -0.0041824775, -0.059803996, -0.038158316, 0.01082284, 0.044404875, -0.02781076, -0.0066301776, -0.048804626, 0.037968207, 0.00953279, -0.027254002, -0.040113762, -0.03226483, 0.022311073, -0.036664575, -0.034165952, 0.058826275, -0.03688185, -0.01235732, -0.039380472, 0.00058561476, 0.020532163, 0.010551251, 0.021998746, 0.008263109, -0.0063925367, -0.018386606, -0.020043302, 0.021537043, -0.011773403, 0.01800638, -0.03500788, -0.00093443744, -0.027131787, -0.004094211, -0.054154936, 0.04223216, 0.025013389, 0.017965643, 0.03859286, -0.012690017, -0.0072242795, 0.036148556, -0.048967578, -0.02138767, 0.021306193, 0.00164057, 0.012893709, 0.0396249, 0.012662858, 0.010266081, 0.027797181, 0.029195866, -0.019622337, 0.0022355206, -0.03451902, 0.0058255936, 0.011012952, -0.011685136, -0.0038565702, -0.049809504, 0.0066301776, -0.018386606, -0.0072785974, 0.012710386, -0.061107628, 0.006925531, 0.011943147, -0.058011506, 0.036909007, 0.007835356, -0.008202001, -0.016091675, 0.011970305, 0.034057315, 0.005771276, -0.025868895, 0.008113734, 0.044051807, 0.034600496, 0.0205729, -0.054779593, -0.047229405, 0.013002345, -0.06409511, 0.020980285, 0.018712513, 0.005577768, 0.022188859, 0.0004633995, -0.03375857, 0.020260572, -0.041553184, 0.014652251, -0.0047018924, -0.040819895, -0.020206256, -0.028516892, -0.007516238, 0.020966705, -0.019744553, -0.037778094, -0.03655594, 0.023343114, 0.03628435, 0.030200748, 0.042286478, -0.008269899, -0.030282224, -0.027118206, 0.03549674, -0.016037358, -0.014652251, -0.06023854, -0.01750394, 0.028190985, 0.017585417, 0.008174842, -0.037479345, 0.01749036, -0.05295994, 0.015222589, -0.066539414, -0.0042877183, 0.015073215, 0.016539797, -0.035388105, 0.03329687, 0.0049768765, 0.03297096, -0.0032522837, 0.026914515, 0.030771084, -0.017992802, -0.065072834, -0.016838547, -0.009722902, -0.0032115453, 0.015602814, 0.022799935, 0.0073261256, -0.0051364354, -0.0070681153, 0.02911439, -0.037669457, 0.0014419702, -0.056816515, 0.006412906, 0.022351813, -0.01209931, 0.043155562, -0.028109508, 0.035197992, -0.0050006406, 0.022324653, -0.025461512, 0.011739454, -0.025515828, -0.08180274, 0.045192484, -0.008358166, -0.019730974, -0.009600687, 0.007319336, 0.061487854, -0.024388732, 0.024918333, 0.06099899, 0.0074822893, 0.033351183, -0.049782347, 0.025407193, 0.011610449, 0.02829962, -0.014883102, -0.0056762197, -0.0059036757, -0.001904521, -0.0019452594, -0.06322602, -0.0015132625, 0.02702315, -0.007930412, 0.017721212, 0.05567584, -0.00656907, -0.021279033, -0.03530663, 0.017137295, 0.033324026, -0.0022932335, 0.023818394, 0.04679486, 0.025923213, 0.032020397, -0.011501813, -0.031558692, -0.008276689, 0.058609005, -0.002624233, -0.026154064, -0.020450685, 0.05526845, -0.037452184, -0.028516892, -0.004233401, 0.053340167, -0.013525154, -0.011501813, -0.02290857, 0.020246994, -0.048044175, 0.042612385, 0.035116516, -0.05382903, 0.010306819, 0.022664139, -0.0097025335, -0.081748426, -0.024836855, 0.030961197, -0.022827093, -0.046306003, -0.020763014, 0.020233415, -0.016865704, -0.042123523, 0.032237668, -0.004942928, -0.014815205, 0.04269386, 0.011542552, 0.049863823, -0.0033829862, 0.0076656123, 0.019500123, -0.033840045, -0.030010635, -0.0048275026, 0.04530112, -0.012411638, 0.02313942, -0.03169449, -0.0052756253, 0.013878221, 0.060890354, -0.029005753, -0.056164697, 0.010089548, -0.037696615, -0.021143239, 0.016458321, 0.0031385557, 0.019377908, 0.05021689, 0.039950807, -0.034546178, 0.046984974, 0.03530663, -0.03166733, 0.013606631, -0.0447851, 0.053367328, -0.008622965, -0.025583725, -0.01211968, -0.02034205, -0.0051330407, 0.027919395, -0.028707005, 0.0061447113, -0.0007205608, 0.015127532, -0.012954817, 0.0099198045, -0.041580345, -0.014760886, 0.006518147, -0.013362201, -0.056544922, 0.012690017, 0.025651624, -0.05078723, -0.002502018, 0.01952728, 0.0038905188, -0.02161852, 0.013430098, 0.027416956, 0.019486543, -0.008996401, -0.011141958, 0.014258446, -0.053503122, 0.00092425285, -0.047202248, -0.020219835, -0.022229597, 0.038158316, 0.046523273, 0.03500788, 0.0027583304, -0.016227469, 0.0075298175, 0.020613639, 0.002933166, 0.0066064135, 0.012859761, -0.011264172, -0.036148556, 0.0039991545, 0.027050309, 0.054453686, -0.007943992, 0.030010635, 0.0016838546, -0.012819022, 0.021944428, -0.03139574, -0.029250184, 0.024646742, 0.025203502, -0.006609808, 0.008928503, -0.023818394, -0.043074086, 0.034926403, -0.062682845, -0.058120143, 0.0077335094, -0.013701688, -0.0065045673, 0.005482712, -0.022636982, -0.0021981772, 0.0014521548, -0.007414392, -0.009512421, 0.010442615, -0.020518582, -0.006793131, -0.026466392, -0.04915769, 0.00033715283, 0.002174413, -0.03112415, -0.0118752485, -0.004375985, 0.019377908, 0.024334416, -0.025773838, 0.0030944224, -0.023641862, 0.02832678, 0.043101247, -0.042286478, 0.008670493, -0.0216321, 0.00010105037, -0.035985604, 0.04038535, -0.015113953, 0.039733537, 0.0022219412, -0.017096557, 0.041743297, 0.034654815, 0.04065694, -0.013409729, -0.02213454, 0.012737545, 0.016281787, -0.017150873, -0.0075298175, 0.010232133, 0.067299865, 0.02680588, 0.035904124, 0.00020729913, 0.018576719, 0.025936794, -0.058826275, -0.03370425, 0.030771084, 0.033785727, 0.010768522, 0.012031413, -0.07246006, -0.037886728, -0.0037241704, 0.0104629835, 0.032590736, -0.019703815, -0.0016371752, 0.013857852, -0.014652251, 0.04198773, 0.037506502, -0.032808006, 0.056544922, 0.016662013, 0.038484227, 0.008690862, 0.030580971, -0.028109508, -0.01390538, 0.027118206, -0.011698715, 0.013192457, 0.01721877, 0.028679846, -0.005099092, 0.038755815, -0.036474463, -0.007747089, -0.0628458, -0.05589311, -0.033106755, 0.033568457, 0.013518365, -0.03473629, 0.020396369, -0.02935882, -0.0066064135, -0.051547676, 0.014095493, -0.0622483, 0.010496932, -0.009994492, 0.0018400186, -0.013728847, 0.041064326, -0.040548306, -0.0010702321, 0.0185224, 0.044622146, 0.027742863, 0.031069834, 0.028652687, -0.014964579, 0.003253981, 0.030553814, -0.035197992, -0.034872085, -0.009722902, -0.00270571, -0.005686404, -0.08908134, -0.05013541, 0.019540861, 0.0014003831, -0.0030570787, -0.01982603, 0.040792737, 0.015915142, -0.038511384, 0.009695743, 0.08256319, 0.019242113, 0.006134527, -0.0034831348, 0.036691736, -0.03965206, -0.037506502, -0.057576966, 0.023791237, -0.012452376, -0.015236168, -0.01780269, -0.02475538, 0.026697243, -0.0002046469, -0.012533853, -0.0022236386, 0.020450685, 0.012785073, 0.016132414, -0.013599842, -0.02729474, -0.02781076, 0.039217517, 0.037234914, 0.00020294946, 0.06958122, 0.06925531, -0.021523464, -0.029929157, 0.0009649913, -0.0037309602, -0.011474654, 0.005791645, -0.0024426077, 0.009166144, -0.03603992, -0.04940212, -0.0592065, -0.008358166, -0.023614703, 0.01749036, -0.01261533, -0.005998732, -0.0746871, -0.0447851, -0.018902626, 0.049266327, -0.050515637, -0.06784304, 0.01106727, -0.05822878, 0.21346931, 0.044676464, 0.030580971, 0.018250812, 0.02369618, 0.05643629, 0.01260854, 0.016920023, 0.018739672, -0.0077674584, -0.0066369674, -0.016308947, 0.011277752, 0.0039007035, -0.02960325, 0.03783241, -0.04201489, -0.00875876, 0.007129223, -0.019282851, -0.058609005, 0.052905627, 0.0100284405, 0.08028184, 0.041580345, -0.05255256, -0.03424743, -0.06849486, 0.014502876, -0.027539171, 0.009363046, 0.00051601994, 0.027009571, 0.027240422, 0.015915142, 0.04043967, 0.024551686, -0.0034474886, -0.028245304, -0.02783792, 0.0012798653, -0.044404875, -0.018726092, -0.011671557, -0.0020521977, 0.014068333, -0.012452376, 0.0048275026, 0.038104, -0.025108445, 0.04014092, -0.07647959, 0.046523273, -0.035442423, -0.05095018, 0.01906558, -0.037696615, -0.03867434, -0.042042047, 0.00927478, 0.02417146, -0.0035578217, -0.01803354, 0.047500994, 0.0016202008, 0.013783164, 0.011264172, 0.05152052, -0.015059635, 0.012323371, -0.0008597504, -0.013688108, -0.04997246, -0.057305373, 0.002624233, -0.009512421, -0.001229791, 0.025434352, -0.019635918, -0.06925531, 0.031287104, -0.0067795515, 0.03345982, -0.04587146, 0.0576856, 0.041281596, -0.034600496, 0.0091593545, -0.008052628, 0.037533663, 0.007747089, 0.038402747, 0.03555106, -0.0068949773, 0.02752559 ]
Trainer Create a [Trainer] object with your model, training arguments, training and test datasets, and evaluation function: trainer = Trainer( model=model, args=training_args, train_dataset=small_train_dataset, eval_dataset=small_eval_dataset, compute_metrics=compute_metrics, ) Then fine-tune your model by calling [~transformers.Trainer.train]: trainer.train()
[ -0.0045876247, -0.0038207069, 0.0017871609, -0.001757664, -0.013950265, -0.040282257, 0.023639105, 0.0010349917, -0.020266056, 0.023583584, 0.006204745, -0.00005086034, 0.027609032, -0.015754778, -0.030648941, 0.020751888, 0.017920192, -0.02627647, -0.0570781, -0.0059653, 0.0042128414, 0.05047081, -0.069904014, -0.020238295, -0.04805554, 0.023222681, -0.008120304, 0.022209378, 0.054246403, 0.016046274, 0.013790635, -0.010174671, 0.012867558, -0.041059587, -0.011069987, -0.0057779085, 0.009661079, 0.023722392, -0.038394462, -0.018433783, -0.010736846, 0.010375944, 0.039144028, -0.014068252, -0.03808908, 0.02612378, -0.0023302496, -0.012860618, -0.036395617, -0.012673226, 0.0051081567, 0.043447096, 0.08917065, 0.021098908, 0.004320418, -0.019224992, -0.023305966, 0.010591097, -0.040809732, -0.03223136, -0.027026037, 0.030204754, -0.00058516505, -0.058577232, -0.014602666, -0.0027518808, -0.003657607, -0.035229623, -0.049443625, -0.056161962, -0.051997706, 0.022042807, -0.032536738, -0.015324471, -0.047472544, 0.010306539, 0.007502605, 0.022056688, -0.015032972, 0.008175827, 0.01710122, 0.016781962, 0.03284212, 0.019558134, -0.015324471, -0.03145403, 0.026068257, -0.012270681, 0.019377682, -0.004316948, -0.040115688, 0.0200162, -0.09461195, 0.014602666, 0.026234828, 0.027858889, -0.01690689, 0.06818279, 0.005562755, -0.008460385, 0.047389258, 0.103551224, -0.0039629857, 0.01934992, 0.01694853, 0.0036680175, 0.032953165, -0.015421636, -0.035590526, 0.036173522, -0.035729337, -0.016670914, 0.061353404, -0.009772126, 0.01854483, 0.036201287, 0.021265479, -0.012589941, -0.04999886, -0.022611922, -0.007863508, 0.0064788917, 0.014207061, -0.06174207, 0.002757086, -0.06690575, 0.00092828256, 0.050831713, -0.0074123796, -0.017198388, 0.018600354, 0.0011113364, -0.0027761722, 0.023819556, -0.014824759, -0.034424536, -0.038810886, 0.012291502, 0.020335462, -0.029399663, 0.027497986, 0.014102954, -0.033147495, 0.055523444, -0.008980917, -0.023986127, 0.032120313, -0.036534425, -0.022528637, 0.028011577, -0.078177005, 0.017198388, 0.019946797, -0.028316956, -0.056550626, -0.008404861, 0.022167735, 0.03467439, -0.015379994, 0.015518802, -0.0076414137, -0.028955476, -0.01048005, 0.023333726, 0.029399663, 0.023111634, -0.053274743, 0.0001888014, 0.017725859, -0.022945063, 0.012069409, -0.012666286, 0.03189822, 0.008349338, 0.025249286, 0.025596308, 0.052691747, 0.0002162378, -0.0016457496, 0.039921355, -0.004323888, -0.020057844, 0.02740082, -0.001104396, -0.016990174, -0.004480048, -0.004306537, 0.011916719, -0.025998853, -0.0061041084, 0.033091974, 0.060687125, -0.03808908, 0.02338925, -0.050692905, -0.0049381163, -0.04197572, 0.016504344, -0.0031683065, -0.022500876, -0.04464085, 0.0548294, -0.04341933, 0.011646043, 0.004067092, 0.030093707, 0.013873921, 0.05041529, -0.0058750743, 0.010952, 0.026526324, 0.0074123796, 0.002498555, 0.0174066, -0.0025245815, -0.006222096, -0.031342983, 0.04725045, -0.021987284, -0.023347609, 0.022764612, 0.018211689, 0.026359756, 0.027497986, 0.018225571, -0.030759988, 0.020876816, 0.037506085, 0.025207644, 0.04047659, 0.020377103, 0.04017121, -0.008599194, 0.07445694, 0.048777346, 0.038644318, 0.03808908, 0.023333726, 0.020738006, -0.0063088513, -0.014158478, 0.025998853, 0.01758705, -0.029760566, -0.0004979759, 0.002144593, 0.015227305, 0.017947953, -0.0070375963, 0.03239793, -0.06535109, 0.017448243, 0.010035862, 0.014810879, -0.05996532, -0.04225334, -0.0027206487, 0.04419666, -0.019696942, 0.011528055, 0.030371323, 0.026026614, 0.023611344, 0.0049068844, 0.024208222, 0.029649518, -0.006333143, 0.014796997, -0.027636794, 0.011944481, -0.05485716, -0.039227314, -0.043780234, -0.02238983, -0.03048237, -0.020862933, -0.021959523, -0.044973988, -0.0016552927, -0.030676702, -0.0025228465, 0.004816659, -0.026373636, 0.045529224, 0.039144028, -0.0021133611, -0.04919377, 0.00677039, 0.010209373, 0.041559298, -0.022278782, 0.0062290365, 0.010292659, -0.024319269, -0.0042059007, 0.013561601, 0.009369581, -0.022972824, -0.03678428, 0.005007521, -0.035590526, 0.020418746, -0.014644308, 0.017739741, -0.014783117, 0.0490272, 0.0329254, -0.013589363, 0.030759988, 0.025415856, -0.024541361, 0.035590526, 0.05807752, -0.00434818, -0.02481898, 0.030399086, 0.05016543, 0.0030034713, -0.050359763, -0.037450563, -0.07212495, 0.0055835764, 0.016698675, -0.038921934, -0.0015815506, 0.049138248, -0.048388682, -0.04802778, -0.018350499, -0.060687125, -0.031620603, -0.016781962, -0.0066177007, 0.024194341, -0.021251598, -0.0035205334, -0.03672876, 0.014054372, 0.0029288616, 0.007336035, 0.011500293, -0.009897054, 0.038838647, 0.026082138, 0.013839219, -0.023736272, 0.030815512, -0.010063624, 0.014949687, 0.011514174, 0.024430316, -0.0044592265, 0.027678438, 0.034285728, -0.01467207, 0.020071724, -0.06174207, 0.036451142, 0.039255075, 0.00918219, 0.02238983, -0.025124358, -0.0011711976, -0.05110933, -0.014727593, -0.021015624, 0.034535583, 0.009078083, 0.039393883, -0.048638538, 0.045917887, 0.03336959, -0.022598041, 0.009626377, 0.003643726, -0.05244189, 0.023652988, 0.040060166, 0.059299037, -0.045196082, -0.017156744, -0.0010315215, 0.028150385, -0.005743206, 0.046473123, 0.05158128, 0.024763456, -0.0016960677, -0.005691153, -0.00009396692, 0.03964374, 0.0021827654, -0.018253332, -0.0254575, -0.03289764, -0.039727025, 0.02627647, 0.04966572, 0.033147495, 0.017545408, 0.02837248, -0.040726446, 0.014894164, 0.022278782, 0.0024308858, -0.01338115, -0.021876236, 0.040115688, 0.0042475434, 0.0044245245, -0.036451142, -0.026706776, -0.02497167, 0.0027831127, -0.021695785, 0.0056495103, 0.014463857, 0.00330191, -0.018183928, 0.03014923, -0.0048444206, -0.03869984, -0.044057854, -0.005368423, 0.0357571, -0.031537317, -0.022153854, -0.00516021, 0.037145182, 0.0058924253, -0.033480637, -0.022056688, -0.031315222, 0.00041967916, -0.048638538, 0.0020908047, 0.049749006, -0.045945648, 0.013554661, -0.05380222, 0.00076865265, -0.031037604, -0.010133028, 0.015740896, -0.0046709096, -0.02159862, -0.011111629, 0.0057501467, 0.0060589956, -0.022126092, -0.007565069, -0.02838636, 0.048138827, -0.032064788, 0.00950839, -0.0038276473, -0.0053718933, -0.011659923, 0.052580703, 0.017989596, -0.01643494, -0.0009751305, 0.019280516, -0.014269525, -0.03095432, 0.041725866, 0.01467207, -0.024235982, 0.055495683, 0.01047311, -0.0062637385, 0.025374213, 0.02434703, -0.0018999429, -0.03001042, -0.05868828, -0.0056391, -0.004528631, 0.00500058, 0.0209601, -0.03919955, 0.029177569, -0.007787163, -0.052497417, 0.0020023142, -0.07312438, 0.009681901, -0.023986127, -0.018489307, 0.031509556, 0.008495087, -0.016198965, 0.015560445, -0.044390995, 0.036673233, 0.005229614, 0.00024703596, -0.037866987, 0.03420244, 0.0011182769, 0.016365536, -0.0419202, -0.024596885, 0.030926557, -0.0061665727, 0.040365543, 0.0021237717, -0.024069414, 0.027303653, -0.03273107, -0.013929444, 0.012284562, -0.050248716, 0.022056688, -0.0058299615, 0.017017936, -0.015615969, -0.011909778, -0.024305388, 0.035451718, -0.031703886, -0.03820013, -0.041059587, 0.01143783, 0.01901678, 0.011305961, 0.046806265, -0.02903876, -0.03478544, -0.035951428, 0.06440719, -0.022375949, -0.011299021, -0.043974567, -0.08839332, 0.016490463, 0.05291384, -0.023292085, -0.0073915585, 0.031231938, -0.03856103, 0.016046274, -0.05196994, -0.018322736, 0.020390986, -0.0029167158, -0.0329254, 0.048138827, -0.012700988, 0.014352811, 0.037395038, 0.018156165, 0.012721809, 0.056550626, -0.037617132, -0.0035187982, -0.011063046, -0.00033682777, 0.0026755359, 0.03708966, -0.027484104, 0.013492197, -0.016837485, 0.021223836, -0.0023493357, -0.034618866, -0.024277626, -0.010251015, 0.038477745, -0.054246403, -0.022709088, -0.035840385, 0.02580452, 0.011035284, 0.049610198, -0.035368435, -0.010667441, -0.026484683, -0.05419088, 0.015810302, -0.026248708, -0.011229617, -0.0022365537, 0.007814925, 0.043724712, -0.025082715, 0.020266056, 0.034952007, -0.0357571, 0.02159862, -0.043225, -0.011215735, -0.0015078086, -0.034035873, 0.005063044, -0.028955476, -0.024111055, -0.0008141993, -0.028955476, -0.06379644, -0.046445362, 0.017004054, 0.04775016, -0.03708966, 0.040726446, 0.021001743, -0.004306537, -0.053163696, 0.01694853, 0.004275305, 0.004334299, 0.02598497, 0.05191442, 0.009085024, 0.036006954, -0.057910953, 0.010827072, 0.040087927, 0.076344736, -0.037866987, -0.04047659, 0.009980339, -0.010584156, -0.0677386, -0.050387524, 0.012534417, -0.014241763, -0.02015501, -0.020585317, -0.0006619436, 0.02048815, -0.054940447, 0.023750152, 0.03434125, -0.019197231, -0.02098786, 0.020266056, -0.005947949, -0.012652405, 0.018142285, 0.031093128, -0.029177569, -0.023014467, -0.05419088, -0.011632161, -0.022500876, -0.027664555, 0.06002084, 0.0063435533, 0.031231938, -0.008689419, 0.01836438, 0.037811466, -0.0031544256, -0.031787172, 0.03434125, -0.027026037, -0.035562765, -0.005923657, 0.02127936, -0.02176519, -0.005687683, 0.0049415864, 0.008363219, 0.00016971522, 0.03284212, 0.0009456336, -0.10121924, 0.025207644, -0.025707355, -0.019155588, 0.009126666, -0.03806132, -0.050915, 0.034480058, 0.0010297864, -0.03850551, -0.005680742, -0.018336616, -0.014200121, 0.016240608, -0.07206943, -0.009869292, -0.054579545, -0.01933604, -0.026692895, -0.02079353, 0.02288954, 0.02594333, -0.011000582, -0.009154428, -0.014935806, 0.025068834, 0.014366691, -0.006867556, -0.03370273, -0.03014923, -0.009959518, 0.014436095, 0.017309433, 0.041836914, 0.038644318, -0.07501217, 0.007884329, 0.020613078, -0.004341239, -0.04078197, 0.0054898807, 0.051831134, -0.008960096, 0.024416434, -0.020682482, 0.01854483, -0.07384618, -0.026803942, -0.01597687, -0.028011577, 0.020668602, 0.004049741, 0.030038184, 0.049249295, -0.0058785444, 0.018142285, 0.00007412163, -0.0021081557, -0.021640262, -0.0020092546, 0.033730492, 0.011000582, -0.022611922, -0.019905154, 0.024000008, 0.0119306, -0.013360329, 0.013367269, 0.028927714, -0.029233092, 0.0074540223, 0.031703886, -0.002595721, 0.04014345, 0.0351741, -0.04672298, 0.0074401414, -0.008606134, 0.008377099, -0.015810302, -0.06462929, -0.06401853, 0.029177569, -0.038783126, -0.0058091404, -0.05574554, -0.030898796, -0.004060152, 0.018836329, 0.017739741, -0.012506655, 0.04186468, 0.0073707374, -0.00596877, -0.014102954, -0.06029846, 0.021404287, -0.013485257, -0.01789243, -0.011097749, 0.00021461112, 0.038616557, 0.021529214, 0.000056879, -0.039810307, -0.009050322, 0.019946797, 0.038783126, -0.010167731, 0.04050435, -0.045196082, -0.009702722, -0.010875654, -0.03933836, -0.013277044, 0.034924246, 0.014123776, 0.035229623, 0.00854367, 0.019086184, -0.0007942455, 0.004084443, 0.015296709, 0.03869984, 0.039310597, -0.0033140555, -0.013325626, 0.053441316, 0.041031826, 0.054052074, 0.027928293, -0.017600931, 0.028705621, 0.0023632166, -0.011493353, -0.031842694, 0.013721231, 0.0068779667, -0.00034073176, -0.027858889, -0.014880283, -0.034008108, 0.027789483, 0.034008108, 0.030121468, 0.0027605563, -0.015615969, 0.0020387515, -0.01097282, -0.013082711, -0.024055531, -0.044113375, 0.05144247, 0.04577908, 0.024596885, 0.020043964, 0.039116267, 0.015421636, 0.031648364, 0.051220376, -0.011264319, 0.018503187, 0.00035699838, 0.045501463, -0.016046274, 0.04339157, -0.07295781, 0.021820713, -0.041559298, -0.026720658, -0.033619445, 0.028303076, 0.021029504, -0.04625103, 0.04042107, -0.0056043975, -0.010549454, -0.047444783, 0.023319846, -0.037672658, 0.0032481214, 0.027123202, -0.03531291, -0.021848476, 0.03756161, -0.010813191, -0.0062116855, -0.012013885, 0.07417932, 0.027636794, 0.072902285, 0.04241991, 0.010604978, 0.0060312343, 0.023444774, 0.0037304815, -0.035673812, -0.024902264, 0.0014557553, 0.008446503, -0.08256336, -0.059743226, 0.029205332, 0.050748426, -0.011646043, -0.011215735, 0.04078197, 0.038338937, -0.034396775, -0.02048815, 0.068960115, -0.0021897058, 0.010729905, -0.012062469, 0.006402547, -0.076233685, -0.014269525, -0.02111279, 0.03239793, -0.006173513, -0.0538855, 0.012964725, -0.040670924, 0.0058750743, 0.028816666, -0.022542518, -0.037672658, 0.023417013, 0.014644308, 0.046972834, 0.022709088, -0.043946806, -0.03822789, 0.067127846, 0.025679592, 0.01063968, 0.052747272, 0.04627879, 0.0007326492, 0.022139974, 0.033480637, 0.018308856, 0.012444192, 0.006204745, 0.01112551, 0.013457495, -0.045668032, -0.07662235, -0.016504344, 0.012138813, -0.0006779933, -0.012138813, -0.01690689, 0.042975146, -0.06462929, 0.0028126095, 0.00015062903, 0.04014345, -0.0076136524, -0.044224422, 0.00966802, -0.057633333, 0.22542518, 0.04999886, 0.050193194, 0.030121468, 0.030260276, 0.033147495, -0.0015442458, -0.019627538, -0.020682482, -0.01690689, 0.0047472543, -0.013492197, -0.013353388, -0.0020283407, -0.021584738, 0.031787172, -0.020238295, 0.0042197816, 0.0016657033, -0.025860043, -0.044390995, 0.06462929, 0.020862933, 0.05188666, 0.009369581, -0.047944494, -0.014644308, -0.04769464, -0.026054377, -0.035895906, 0.026567968, -0.050748426, 0.014866402, -0.007467903, 0.028094862, 0.01612956, 0.0053337207, -0.029205332, 0.012964725, -0.021473693, -0.008925393, -0.0014245233, 0.03609024, -0.005927128, 0.000015954856, -0.003435513, 0.0068606157, 0.04044883, 0.021973403, -0.055412397, 0.018780805, -0.008522849, 0.026234828, -0.06929326, -0.05188666, -0.013679588, -0.03964374, -0.025166001, -0.025693474, 0.028816666, -0.0006667151, 0.069071166, -0.010271837, 0.03195374, 0.0012839796, 0.008557551, 0.00419202, 0.037200708, -0.010771548, 0.028650098, -0.0032134193, -0.0066662836, -0.0057501467, -0.045556985, 0.0035049175, 0.034396775, -0.0046153865, 0.035535004, 0.03098208, -0.031093128, 0.033480637, -0.012777332, -0.017600931, 0.014214002, -0.0066975155, 0.07595607, -0.038144607, 0.023292085, 0.018628115, 0.008363219, 0.015116258, 0.0022972825, 0.020862933, 0.036062475, 0.035923667 ]
from datasets import load_dataset dataset = load_dataset("glue", "cola") dataset = dataset["train"] # Just take the training split for now Next, load a tokenizer and tokenize the data as NumPy arrays. Note that the labels are already a list of 0 and 1s, so we can just convert that directly to a NumPy array without tokenization!
[ -0.0034723599, -0.013954581, -0.020873968, 0.011095628, -0.02851714, -0.03369944, 0.019107932, -0.0019198405, -0.016690489, 0.03647878, -0.012832713, -0.028922461, 0.010205372, -0.01968696, -0.021568801, 0.03193341, -0.035407577, -0.058481853, -0.047538217, -0.0011508187, -0.00074957014, 0.0081570605, -0.06855694, -0.034307424, -0.030398982, 0.021901743, 0.013708494, 0.018717088, 0.07035193, 0.020222561, 0.020816065, 0.03671039, -0.009597393, -0.008287341, -0.010256038, -0.049072642, 0.006760155, -0.0019397446, -0.042905994, -0.03401791, 0.01935402, 0.0032389392, 0.0061738887, -0.013346601, -0.06114538, -0.0024753457, 0.0010132995, -0.016893148, -0.016951052, -0.03135438, -0.016560208, 0.013911153, 0.043513972, 0.00967701, -0.031093817, -0.019209262, -0.007132904, -0.0010766307, -0.053067937, -0.02471003, -0.024377089, 0.025404863, -0.013194606, -0.064272135, 0.0021677369, 0.0063765487, 0.016458878, -0.0030091375, -0.04449832, -0.045048397, -0.06322988, 0.012260923, -0.039287064, -0.052025687, -0.031035913, 0.0061594127, -0.00057586166, 0.022292588, -0.009597393, 0.040908344, -0.0052148732, 0.03285985, 0.019325068, 0.016444402, -0.031701796, -0.023001896, 0.023103226, -0.027185375, -0.0019506013, -0.04426671, -0.012383967, 0.021481948, -0.036420874, -0.004064054, 0.047682974, 0.054602362, -0.030022614, 0.06647244, -0.02397177, -0.015315297, 0.030080518, 0.10532524, -0.020265989, 0.031759698, 0.008388672, 0.00016070296, 0.032309774, -0.02788021, -0.035233866, 0.022495247, -0.03297566, -0.01375192, 0.03610241, -0.030630594, -0.023030847, 0.045598473, 0.01368678, -0.009619107, -0.041979548, -0.0052981083, 0.0129991835, -0.022234684, 0.034625888, -0.056600012, 0.0068216766, -0.0522573, 0.02130824, 0.026837958, -0.0029982806, 0.00086311396, 0.035089113, 0.027706502, 0.043195505, 0.053270597, 0.007874784, -0.011544376, -0.013636115, -0.0012792905, -0.0019379351, -0.027909162, -0.016980004, 0.009112457, -0.006047226, 0.06867275, -0.024159953, -0.018167011, 0.011283813, -0.041921645, -0.010531076, -0.00008945534, -0.06595132, 0.01071926, 0.008974938, -0.016053557, -0.054631315, 0.0064814975, -0.012355015, 0.03303356, -0.0389107, -0.0032208445, -0.0012593864, -0.028126298, -0.04368768, 0.021525376, 0.0019578391, 0.0451642, -0.04166108, -0.021959646, 0.0054718168, -0.035812896, 0.013093276, -0.01557586, 0.022972945, 0.010371843, 0.04635121, 0.0014683794, 0.05903193, -0.0017018002, -0.0006030036, 0.006495973, 0.030659545, -0.03158599, -0.026476067, 0.0053958194, -0.021713559, -0.015040259, 0.0050339266, 0.011645705, -0.015329773, -0.008222201, 0.013288698, 0.04730661, -0.040503025, 0.01486655, -0.06838323, 0.005815615, -0.02552067, 0.024985068, -0.020801589, -0.005403057, 0.011493711, 0.06595132, -0.035147015, -0.009054554, -0.027214328, 0.026678726, 0.027590696, 0.038447473, -0.03155704, 0.027199851, 0.01844205, 0.030283177, -0.04267438, 0.015141589, 0.000049929877, -0.014084862, -0.008041254, 0.028792178, -0.00866371, 0.019860668, 0.018485477, 0.023580926, 0.05127295, 0.009249976, 0.0017606077, 0.005189541, 0.023276934, 0.025766756, 0.019875145, 0.024449468, 0.035118062, 0.021177959, 0.011595041, 0.07457884, 0.00458518, 0.030978011, 0.042384867, 0.03934497, 0.017776167, -0.0026110555, -0.01763141, 0.010531076, 0.029255401, -0.008880845, 0.019310592, 0.007056907, -0.0013598116, -0.015952228, -0.060508452, 0.024652127, -0.05500768, 0.03034108, 0.021177959, -0.022842664, -0.043427117, -0.056686863, -0.008721612, 0.024391564, -0.0020211705, -0.0101329945, 0.049159497, 0.025071923, 0.030717447, -0.007353659, 0.02481136, 0.05069392, -0.004487469, 0.043108653, -0.027778879, -0.054891877, -0.030775351, -0.057265893, -0.05413914, 0.020845016, -0.043600827, -0.031962357, 0.0035139776, -0.05599203, 0.0014548084, -0.0010775353, -0.016907625, -0.03094906, -0.036449827, 0.0074549885, 0.049101595, -0.0060761776, -0.03265719, 0.027706502, 0.012289874, 0.02120691, -0.01742875, -0.02501402, -0.021322714, -0.022408392, -0.0005636478, 0.0047046044, 0.016777344, -0.040503025, -0.041313663, 0.026693203, -0.020034377, 0.0103211785, 0.018036729, 0.028010491, -0.02990681, 0.008859132, 0.011703609, -0.020222561, 0.04432461, 0.047248702, -0.02245182, 0.021626705, 0.026403688, 0.017935399, -0.012246448, 0.033873152, 0.040908344, 0.013100514, -0.042326964, -0.05309689, -0.061840218, 0.020135706, -0.027518317, -0.058366045, 0.013455168, 0.05454446, -0.04281914, -0.06328779, 0.00019904095, -0.038679086, -0.05929249, -0.03057269, 0.0024970593, 0.031064864, 0.022640005, -0.01776169, -0.04247172, -0.0023432549, 0.01988962, 0.026244454, 0.014338187, -0.014881026, 0.008982176, 0.0225821, -0.0061413185, 0.019050028, 0.0281842, -0.032020263, 0.031006962, 0.0057866634, 0.019093456, 0.042326964, 0.0038758703, 0.02153985, -0.011761511, 0.0012874331, -0.034539033, 0.044758882, 0.030630594, 0.0052474434, 0.03934497, 0.027692026, -0.0021822127, -0.011356192, -0.012043787, -0.027344609, -0.011595041, 0.004342712, 0.04142947, -0.010509362, 0.0061196047, 0.038621183, 0.014374376, 0.014301998, -0.013542023, -0.055036634, 0.030225273, 0.021120055, 0.06577761, -0.026852435, -0.00048041248, 0.018051205, -0.023913866, 0.013795348, 0.070236124, 0.06745679, 0.03401791, 0.0070170984, -0.00943816, 0.0061196047, 0.026823483, 0.002828191, -0.0046068933, 0.0038215863, -0.037984252, -0.033525735, 0.018659186, 0.029284352, 0.027677549, -0.0015362343, 0.056918476, -0.028053919, -0.0046105124, 0.030051565, 0.0038686325, -0.037405223, -0.027214328, 0.06728308, 0.03094906, 0.009351306, -0.009213787, -0.0039844383, -0.007100334, -0.019802766, -0.040879395, 0.025564097, -0.0022564007, 0.029877856, 0.013570975, 0.031238573, -0.013853251, -0.03155704, -0.025723329, 0.019542202, 0.011819414, -0.055470906, 0.014772458, -0.006347597, 0.019339543, 0.015764045, 0.01671944, -0.024941642, -0.008555142, -0.0025459148, -0.041863743, 0.030543739, 0.055355098, -0.028661897, 0.032165017, -0.0501728, 0.0045598475, -0.0056310496, -0.014410566, -0.0033818868, 0.014996831, -0.00038157057, -0.025274582, 0.028907984, -0.012521486, -0.016502304, 0.028748753, -0.025028495, 0.025810184, -0.024319187, -0.029110644, -0.02737356, 0.020367319, -0.0059712287, 0.043513972, 0.00025897942, -0.04568533, 0.000029205868, 0.04614855, -0.019194786, -0.047074996, 0.000057139456, 0.0108640175, -0.031643894, 0.026620824, 0.00062652666, 0.010798876, 0.020656832, 0.014005246, 0.013976295, 0.0024264902, -0.021279288, -0.005019451, -0.019802766, -0.017139236, 0.053820673, -0.044874687, 0.0015814708, 0.01210169, -0.028589519, 0.0054066763, -0.05043336, -0.0060870345, 0.014823123, -0.018253865, 0.018167011, 0.030051565, -0.010849542, 0.01567719, -0.03034108, -0.00066316826, -0.017689312, -0.007375372, 0.0055659087, 0.053791724, 0.018427573, 0.029139597, -0.03178865, -0.01928164, 0.05043336, -0.026418163, 0.029544916, -0.02565095, -0.016502304, 0.0019524108, -0.0069049117, 0.004976024, 0.04536686, -0.0007590698, 0.006108748, -0.01132724, 0.011522662, 0.00687596, -0.018905273, -0.025491718, 0.04247172, -0.057352748, -0.07162579, -0.033149365, 0.024579749, 0.013035373, -0.002636388, 0.07226273, -0.013361077, -0.010813353, -0.0075925076, 0.058887172, -0.010965347, -0.021728035, -0.036970954, -0.033670492, 0.0027630504, 0.038013205, -0.012412918, -0.049246352, -0.007621459, -0.018934224, 0.006600922, -0.037868448, -0.03589975, -0.0141355265, 0.004241382, -0.062419243, 0.023884915, 0.0061847456, -0.017312944, 0.003242558, -0.03285985, 0.020237036, 0.06820953, -0.05228625, -0.008815705, -0.023305887, -0.010958109, 0.0112403855, 0.045598473, 0.00785307, 0.03584185, -0.036826197, 0.015329773, -0.04264543, -0.017747216, -0.04672758, -0.009691485, 0.030920109, -0.037868448, -0.030051565, -0.014330949, 0.017993303, -0.01112458, 0.039923996, -0.040068753, -0.018803941, -0.04412195, -0.044179853, 0.032222923, -0.034133714, 0.0056744767, 0.01132724, 0.0004394734, 0.070004515, -0.040474072, 0.00042658095, 0.05272052, -0.0014638557, -0.0028987601, -0.062187634, 0.019556679, -0.0062788376, -0.019165834, -0.008301818, -0.017443225, -0.018311769, 0.006495973, -0.038042154, -0.048290957, -0.010494887, 0.018934224, 0.03943182, -0.00633674, 0.032049213, 0.026432639, -0.037897397, -0.08482764, 0.0019741245, 0.037578933, 0.003617117, 0.028068393, 0.011638467, 0.013932867, 0.036015555, -0.037955303, -0.007234234, -0.025998367, 0.066588245, -0.020048853, -0.028097345, 0.018036729, -0.013462407, -0.035378624, -0.04365873, 0.04247172, -0.005059259, -0.0318176, -0.018326243, -0.008084682, 0.011443046, -0.015054734, 0.015199491, 0.012941281, -0.006847009, -0.021872792, 0.037231516, -0.0070822393, -0.025824659, 0.012716908, 0.0430797, -0.031093817, 0.0017642267, -0.06803582, 0.01658916, -0.041545276, -0.03856328, 0.050722875, 0.014041435, 0.029211974, -0.011558851, 0.02379806, 0.05723694, 0.004226906, 0.010227086, 0.011515424, -0.008793991, -0.05512349, 0.028097345, 0.03439428, -0.038852796, -0.0066479677, -0.02592599, -0.0065864464, 0.011804938, 0.04203745, 0.012695194, -0.07654753, 0.026982715, 0.001456618, -0.0054899114, 0.0050484026, -0.017501129, -0.021597752, 0.04640911, -0.029487014, -0.049304254, 0.011508186, 0.014721793, -0.024941642, -0.012239209, -0.028965887, 0.0066660624, -0.05393648, 0.0044042333, -0.030167371, -0.033149365, 0.020179134, 0.008432099, -0.0048565995, 0.011479235, 0.007947163, 0.0230598, -0.023508547, 0.018224914, -0.0037166376, -0.0120799765, 0.015242918, -0.008873608, -0.027199851, 0.007140142, 0.03711571, -0.04365873, -0.011175245, 0.0069700526, -0.0062245536, -0.014714555, 0.011276575, 0.05616574, 0.0058373283, 0.03448113, -0.017341895, 0.03963448, -0.052778423, -0.036855146, -0.01378811, -0.008497239, 0.018195963, 0.01577852, 0.01651678, 0.05269157, 0.018615758, 0.004194336, -0.012630054, 0.036739342, 0.031383332, 0.0006301456, 0.034741696, -0.010885731, 0.021858316, -0.0389107, 0.015517957, 0.0318176, -0.02945806, 0.013925629, 0.040763587, -0.019600106, -0.033873152, 0.031904455, 0.02760517, 0.020265989, 0.01729847, -0.026490541, 0.017949875, -0.0048023155, -0.022234684, -0.0123767285, -0.03850538, -0.040531978, 0.028546093, -0.01506921, -0.005135257, -0.06178231, -0.0281842, 0.00552972, 0.02140957, 0.03178865, -0.012007598, 0.012890616, 0.022393918, -0.012152355, -0.032425582, -0.048667323, -0.00021091556, -0.0011309145, -0.01834072, -0.008149822, 0.032165017, 0.05089658, 0.015894325, -0.014591511, -0.042992845, -0.002207545, 0.03427847, 0.04444042, -0.03407581, -0.004805934, -0.03977924, 0.021293763, -0.032773, 0.0008626616, -0.002207545, 0.03468379, 0.018659186, 0.020873968, 0.02676558, 0.02083054, 0.018905273, -0.03361259, -0.03404686, 0.043137603, -0.002363159, -0.005754093, -0.0098072905, 0.018630233, 0.0389686, 0.06519858, 0.022292588, -0.024536321, 0.055239294, -0.00014848908, -0.029154072, -0.038997553, 0.012022073, 0.02521668, -0.018919747, -0.009525014, 0.0026273406, -0.016603636, -0.012883378, 0.009329593, 0.0090762675, 0.0034072192, -0.027359083, -0.002683434, -0.033004608, -0.005232968, 0.013143941, -0.06618293, 0.02379806, 0.039489727, 0.024738982, 0.038621183, 0.01938297, -0.059408296, 0.029298829, 0.02554962, 0.011211434, 0.02222021, 0.001048584, 0.04635121, -0.0007911878, 0.023957293, -0.03285985, -0.0073174695, -0.017457701, -0.0240731, -0.05309689, 0.030862205, 0.024029672, -0.03364154, 0.016169364, -0.0163865, 0.0028679993, -0.076142214, 0.00095449184, -0.037897397, -0.0012820048, 0.00235954, -0.033670492, -0.04345607, 0.010878493, -0.0028100964, 0.041516326, 0.022871615, 0.06502487, 0.031962357, 0.06635664, 0.028024966, 0.002319732, 0.046756532, 0.017182663, -0.00063331216, -0.046032745, -0.0112403855, -0.004433185, -0.025795707, -0.0563684, -0.05370487, 0.018471, 0.046669677, -0.023508547, -0.030601643, 0.031035913, 0.012311588, -0.0052908706, 0.003734732, 0.10138784, 0.026273407, -0.040734638, -0.0154890055, 0.03963448, -0.049506914, -0.002706957, -0.01425857, 0.020845016, -0.044990495, -0.08864922, -0.0024463944, -0.054457605, 0.022003073, 0.0061594127, -0.019614581, -0.0072595663, 0.055644613, 0.027749928, 0.02953044, 0.034133714, -0.037665788, -0.030833254, 0.06421423, 0.038823843, 0.012535961, 0.07701076, 0.04444042, 0.00007859856, 0.019093456, 0.01082059, 0.014482943, -0.00093730196, 0.014924453, 0.011435808, -0.00606894, -0.033380978, -0.075563185, -0.014432278, -0.0013236224, 0.024666604, -0.022075452, -0.01877499, 0.023001896, -0.05987152, -0.022263635, -0.005721523, 0.05370487, -0.014750744, -0.018514428, 0.033062514, -0.05063602, 0.24921376, 0.0738261, 0.03708676, 0.037607882, 0.032773, 0.04568533, 0.02993576, -0.018789466, 0.021930695, 0.030485837, -0.021177959, -0.03407581, -0.011001537, 0.019802766, -0.045453716, 0.034712743, -0.040705685, 0.019209262, -0.030283177, -0.014309235, -0.051591415, 0.030891156, 0.04901474, 0.073247075, 0.014374376, -0.021800414, 0.020512076, -0.06809372, -0.009655296, -0.016357549, 0.010408033, -0.020410744, 0.05309689, -0.0045924177, -0.008410385, 0.029342256, 0.015735092, -0.057584357, 0.024565274, 0.022770286, -0.01938297, -0.055673566, 0.024956116, -0.015040259, -0.0102126105, -0.019064505, -0.013730207, 0.03361259, 0.060045227, -0.07371029, 0.006738441, -0.024015196, 0.017486652, -0.0543418, -0.013404503, -0.01415724, -0.06380891, -0.030920109, -0.023725683, -0.0059169447, 0.0032317014, 0.018731564, 0.016835246, 0.023204556, 0.009126932, 0.047422413, -0.013534785, 0.045859035, -0.016473353, -0.0018492715, -0.008186012, 0.017182663, -0.042558577, 0.00038428477, 0.010538314, 0.027084045, -0.004657558, 0.048262004, -0.0069049117, -0.043398168, 0.019194786, -0.0063620727, 0.00048448378, -0.034712743, 0.0034090288, 0.05500768, -0.02410205, 0.020280464, 0.008511715, 0.0014982356, 0.005707047, 0.015517957, 0.015923277, -0.008113633, -0.020989774 ]
from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("google-bert/bert-base-cased") tokenized_data = tokenizer(dataset["sentence"], return_tensors="np", padding=True) Tokenizer returns a BatchEncoding, but we convert that to a dict for Keras tokenized_data = dict(tokenized_data) labels = np.array(dataset["label"]) # Label is already an array of 0 and 1
[ 0.040764276, 0.012973637, -0.019134538, -0.037399963, 0.006935394, -0.017396308, 0.00460841, -0.010688707, -0.006746151, 0.016260853, 0.05124972, -0.04704433, 0.02722291, -0.050408643, 0.014256282, 0.05741763, -0.008621056, -0.026479958, -0.06358554, 0.0014517367, 0.00768886, -0.011067192, -0.05326831, -0.020564372, -0.039783016, -0.021349378, 0.049427386, -0.025526734, 0.07597743, 0.03201706, -0.04342769, -0.0019958094, -0.012679259, -0.003623647, -0.011761082, -0.01780283, 0.02695657, -0.04185768, -0.04945542, -0.000049035538, 0.026634155, -0.014578695, 0.0042859963, -0.053800993, -0.027839702, -0.00547402, 0.031232052, -0.02915739, -0.012693278, -0.04211, -0.035437442, 0.04059606, -0.017914973, -0.0033450397, -0.0094411075, 0.0130227, -0.0016804049, 0.02957793, -0.038521398, -0.010478437, 0.059884794, 0.026003346, -0.015658079, -0.049932033, 0.00619945, -0.00055371004, -0.011004112, 0.017620597, 0.00084151665, 0.008803289, -0.05251134, 0.026536029, -0.02133536, -0.016751481, -0.01662532, 0.021391433, 0.026998622, 0.0055265874, -0.008929451, 0.035381373, 0.016274871, 0.045558423, 0.023045553, 0.014788965, -0.020606425, -0.022428762, 0.053772956, 0.0053373445, -0.041521247, -0.027811665, -0.034680475, 0.016064601, -0.03193295, 0.021783935, 0.034400113, 0.06117445, -0.013737617, 0.010008835, -0.007955202, -0.03560566, 0.016989788, 0.07827638, -0.038549434, 0.023816543, -0.033699214, 0.016541213, 0.018994357, -0.026942551, -0.05340849, -0.015812278, 0.011459696, -0.0011836429, 0.011018129, 0.01655523, 0.003404616, -0.0091957925, -0.006956421, 0.03880176, -0.03201706, -0.028877031, 0.022274565, 0.011683984, -0.010758797, -0.030783476, 0.030110613, -0.0036131334, -0.012763367, 0.03815693, 0.0073874737, -0.009314945, -0.0009041595, 0.008607037, 0.073678486, 0.05859514, -0.010976075, 0.002595078, -0.050969362, -0.0037252773, -0.022036258, -0.016737463, 0.027349072, -0.010436383, 0.0013623721, 0.100312635, -0.0037603222, 0.005652749, 0.035157084, -0.0502965, -0.0360262, 0.05301599, -0.007990247, 0.020003652, -0.028638726, 0.012875511, -0.021419467, -0.012819439, -0.0151674505, -0.0060873064, 0.023185734, -0.010345266, 0.027349072, -0.0028053476, -0.037091564, 0.04696022, 0.01572817, 0.049427386, -0.02383056, -0.002936766, -0.003581593, -0.023998775, -0.021573666, -0.0059821713, -0.013667527, 0.008221543, 0.042166073, 0.051081505, 0.068800226, 0.00962334, 0.0078851115, -0.0032644363, -0.02070455, -0.03580191, 0.0067706825, 0.041605353, -0.04510985, -0.023942703, 0.006006703, 0.023438057, -0.028035954, 0.0079832375, 0.004447203, 0.01947097, -0.020199904, -0.009581286, -0.05495047, 0.013457257, -0.00015649757, 0.009272891, -0.013667527, -0.037624247, 0.003970592, 0.030390972, -0.032185275, 0.024405297, 0.009910709, 0.015139414, 0.00017500567, 0.0002991962, -0.023634309, 0.022386707, 0.034652438, 0.020732587, -0.012714305, 0.012321801, 0.010345266, 0.003753313, 0.006444765, -0.0017636366, 0.006462287, -0.018251406, 0.0053163175, -0.010632635, 0.024811817, -0.030951692, 0.065548055, -0.013211942, -0.016358979, 0.05977265, 0.043539833, -0.016316924, 0.020970892, 0.01952704, 0.0103592845, 0.054053318, 0.008621056, 0.033194568, 0.079285674, 0.023017516, 0.030250793, 0.0074295276, 0.054838322, 0.003658692, 0.048782557, 0.03498887, -0.010429375, 0.0059541357, 0.00058787887, -0.0035991154, -0.05346456, 0.011669965, -0.017424345, 0.049679708, 0.023816543, 0.0063010803, -0.060445514, -0.032465633, 0.02590522, 0.028526582, 0.0009830106, -0.026928533, -0.00258106, 0.004229924, 0.0066725565, -0.0074785906, 0.025232358, 0.057810135, -0.0021815475, 0.02015785, 0.0033047379, -0.070874885, -0.0118171545, -0.0028438969, -0.08472465, -0.0105275, -0.025989328, 0.0027475234, 0.008915433, -0.034540296, -0.0034589358, -0.010001826, -0.012237693, 0.0017268395, -0.005284777, 0.05133383, 0.05054882, 0.009364008, -0.033895466, 0.022330636, -0.02673228, 0.006704097, 0.005589668, -0.039502658, -0.0081794895, -0.017676668, 0.017858902, 0.0137095805, 0.0030051037, 0.0042229155, -0.05124972, 0.008074354, 0.003346792, 0.011277462, -0.007247294, 0.01843364, -0.009644368, 0.030923655, 0.0077729677, -0.03955873, 0.02632576, 0.027783629, 0.0060487567, 0.05312813, -0.014606731, 0.02319975, -0.04502574, 0.047969516, 0.06123052, -0.03894194, -0.036979422, -0.02161572, -0.031007763, -0.0072893477, -0.00595764, -0.0016041822, 0.0075206445, 0.050941326, -0.030811513, -0.015531918, -0.017228093, -0.018966323, -0.03316653, -0.021868043, -0.012300774, 0.017354256, 0.006153892, -0.008803289, -0.037035495, 0.039979268, -0.024082884, 0.01759256, 0.002305957, -0.04039981, 0.03574584, 0.062520176, 0.00900655, 0.007695869, 0.039110154, -0.051782403, -0.0018030622, 0.0053793984, -0.01059759, 0.013583419, 0.019779366, 0.008074354, -0.002920996, 0.019639185, -0.013471276, 0.003227639, 0.012721313, -0.0058209645, 0.04953953, 0.008263597, 0.010520491, 0.02695657, -0.043203402, 0.0016821572, 0.0029665541, -0.006802223, 0.06268839, -0.042362325, 0.032101166, -0.024195027, -0.035942093, -0.0027247441, 0.0024724207, -0.055230826, 0.057529774, 0.042166073, 0.047072366, -0.065435916, 0.0060802973, -0.0061784233, 0.0092939185, 0.024601549, 0.051614188, 0.011838181, -0.0010250645, 0.035829946, -0.018181315, -0.0005791176, 0.003432652, -0.0014245769, 0.016036564, -0.040007304, -0.05368885, -0.047100402, 0.018531764, 0.03588602, 0.030026505, -0.00007989151, 0.010955049, -0.037708357, -0.02070455, 0.023367967, 0.0058174604, -0.025694951, -0.03824104, -0.004454212, 0.033446893, -0.0001481744, -0.01288953, -0.007086087, -0.013737617, 0.017368272, -0.0011118008, 0.0041107717, -0.0310358, 0.039306406, -0.006896844, 0.015686115, 0.01170501, -0.008480876, -0.038829796, -0.0059541357, 0.042558577, -0.045474317, -0.018657926, -0.03428797, 0.0064938273, 0.07165989, 0.018475693, -0.07165989, -0.012174613, 0.017816847, -0.06773486, 0.046315394, 0.05971658, -0.04522199, 0.040988564, -0.038213003, 0.01710193, -0.0027054695, -0.021209199, -0.0035518047, 0.004268474, 0.0046224277, 0.0011240665, 0.029746145, -0.009118694, 0.0060873064, 0.041605353, -0.016022546, 0.022260547, -0.019989634, -0.036418702, -0.03905408, 0.019611148, -0.024671638, 0.02272314, -0.011480723, -0.02915739, -0.017774794, 0.028218186, -0.058370855, -0.054894395, 0.02189608, 0.01987749, 0.0021465027, 0.057585847, -0.0100228535, -0.024054848, 0.049006846, 0.039250333, -0.038297113, 0.0064307465, -0.019891508, -0.0073454194, -0.019148557, -0.008431813, -0.00022045457, -0.06549199, 0.027951844, 0.009805574, -0.026830407, 0.013345113, -0.03894194, -0.01274935, -0.02383056, -0.014522623, 0.02458753, 0.028007917, 0.01378668, -0.03476458, -0.040764276, 0.006192441, -0.011207372, -0.026774336, 0.012553098, 0.035493515, 0.031960987, 0.0442127, -0.049932033, -0.026606118, 0.022064295, -0.0067391424, -0.0042824917, -0.0013019196, -0.026423885, 0.006325612, -0.008270606, -0.0053934166, -0.018391585, -0.01150175, 0.007948193, 0.01537772, -0.0039145197, -0.015125397, -0.04502574, -0.0074715815, 0.022134384, -0.041353032, -0.07121132, -0.054586, 0.012994664, 0.0052672545, -0.006595458, 0.0032696929, -0.016443087, -0.044380914, -0.035521552, 0.023396002, -0.032886174, 0.0013387167, -0.049147025, -0.045193955, 0.01572817, 0.01246899, 0.04614718, -0.028568637, 0.008459848, -0.040960528, 0.026564065, -0.07569707, -0.019162573, -0.017606579, 0.01834953, 0.026479958, 0.077211015, 0.028792923, 0.002461907, -0.009090657, 0.012223676, 0.0378205, 0.057109237, -0.05694102, -0.019919544, 0.016863625, 0.0032819586, 0.029970434, 0.011852199, -0.014901109, 0.042895008, -0.0058840457, 0.03815693, -0.040960528, -0.035241194, -0.047689155, -0.0049623637, 0.03215724, -0.05203473, 0.022765193, -0.028961139, 0.027040677, -0.0067005926, 0.0063501433, -0.0240969, 0.0030401486, -0.02971811, -0.0485022, 0.03420386, -0.02866676, 0.026592102, -0.0155038815, -0.021419467, 0.012258721, -0.04446502, 0.017522471, 0.061959457, 0.044072516, 0.0006956421, -0.049511492, 0.020620443, 0.011543804, 0.01579826, -0.010716743, -0.0058279736, 0.005572146, -0.016092638, -0.042923044, -0.03507298, -0.016232817, -0.0006605971, -0.0025127223, 0.002120219, 0.052062765, 0.03554959, -0.034932796, -0.055987798, 0.011648938, 0.01780283, -0.01136157, 0.016457105, 0.05155812, -0.02001767, 0.04129696, -0.036278524, -0.0042859963, -0.027965862, 0.08926647, -0.024054848, -0.027391126, 0.017760776, 0.013583419, -0.043623943, -0.019344807, -0.009959772, 0.042502504, -0.073342055, -0.022484833, 0.014943163, -0.006634007, -0.013239979, 0.055875655, 0.05943622, -0.05609994, -0.021321341, 0.027377108, -0.01337315, -0.047913443, 0.007576716, 0.020255975, -0.030138649, 0.019204628, -0.008789271, 0.041353032, -0.025036106, -0.028905068, 0.040063377, 0.01884016, -0.0094411075, 0.037371926, 0.027629431, 0.024559494, -0.013821725, 0.0104574105, 0.024629584, -0.032465633, -0.05119365, -0.039783016, 0.050689004, 0.015349684, 0.031204015, -0.016653355, 0.014144138, 0.019555077, 0.052903842, -0.009202802, -0.05265152, 0.04939935, -0.05251134, -0.030559188, 0.012714305, -0.01634496, -0.0049133007, 0.04715647, -0.0061188466, -0.046371467, -0.0371196, 0.044016447, -0.026648173, -0.026381832, -0.04794148, 0.010050889, -0.053772956, -0.050128285, -0.009118694, -0.059940867, -0.014207219, 0.043035187, -0.005936613, -0.00962334, 0.0044016447, 0.01725613, -0.010927012, 0.034736544, -0.03451226, 0.024124937, -0.024994051, -0.0014096828, -0.012062469, -0.00067680544, 0.029521858, -0.019975616, -0.015209504, 0.011410633, 0.04309126, -0.01620478, 0.009861646, 0.023157697, -0.0017583799, -0.0058349827, 0.010261158, -0.014802983, -0.069585234, 0.02286332, -0.02341002, -0.02057839, -0.02223251, 0.027629431, 0.041044634, 0.0442127, -0.0067111063, 0.018798105, -0.008550965, 0.012076487, 0.0052252007, 0.00893646, 0.01585433, 0.011578849, 0.009581286, -0.0028141087, 0.021643756, 0.025344502, -0.03927837, 0.023522165, -0.013639491, 0.008501902, -0.002397074, -0.0010154272, 0.05909979, 0.054586, 0.055258863, -0.0022744166, -0.014284318, -0.05251134, -0.04634343, 0.04093249, -0.07894924, -0.039166227, 0.016316924, -0.05666066, 0.014760929, 0.023844577, -0.018812124, 0.03470851, 0.010219105, -0.01080786, 0.053885102, 0.0378205, 0.03226938, 0.00029043495, -0.05340849, -0.064258404, 0.008943469, 0.015265577, -0.046595752, -0.03330671, -0.011754073, 0.004682004, 0.0060102073, 0.002496952, -0.027993899, -0.018798105, -0.011634921, 0.05949229, -0.034792617, 0.026367813, -0.044408947, 0.028218186, 0.00422642, 0.001163492, -0.012076487, 0.047913443, 0.009833611, -0.014929145, 0.018251406, 0.022330636, 0.02882096, -0.036951385, 0.008403777, 0.008151453, 0.038745686, -0.0070966007, 0.010660671, 0.0070615555, 0.05326831, 0.028372385, 0.06319304, -0.0035518047, 0.029942397, 0.042025894, 0.009595305, 0.0055160737, 0.021587683, 0.03339082, 0.016443087, 0.026648173, -0.008922442, -0.029241499, -0.0015901641, 0.023297876, -0.006115342, -0.0082285525, 0.021601701, 0.006704097, -0.023087608, 0.026816389, -0.017494434, -0.034820653, -0.0022498851, 0.012013406, 0.035914056, 0.027517287, 0.010800851, -0.013891814, 0.009153739, 0.024209045, 0.010366294, 0.022751175, 0.0068127364, 0.0136465, -0.003241657, 0.023886632, -0.017480416, -0.022190457, -0.008775253, -0.058146566, -0.035493515, 0.014298336, 0.031680625, -0.021279288, 0.0024952, -0.014151148, -0.035717804, -0.047352724, -0.0062239813, -0.04808166, -0.010142006, 0.020340083, -0.004601401, -0.0481938, 0.028288277, 0.0044436986, 0.015293612, 0.02577906, 0.040091414, 0.008747217, 0.064594835, 0.062127672, -0.0025652896, 0.0036516828, 0.041605353, -0.06274446, 0.011004112, 0.02597531, 0.004496266, -0.013289042, -0.064258404, -0.044997703, 0.014999235, 0.009251865, -0.025414592, -0.017564524, 0.03560566, -0.0036832234, -0.05685691, -0.0024181008, 0.08864968, 0.024391279, -0.023283858, -0.006150387, 0.020045707, -0.013401185, -0.0018661431, -0.033222605, 0.009616332, -0.027601395, -0.016260853, -0.0063501433, -0.04813773, 0.0011082962, 0.021727864, 0.0031242564, -0.0043525817, 0.02764345, 0.013001673, 0.003851439, 0.012539079, -0.017298182, -0.02189608, 0.03386743, 0.04634343, 0.013968914, 0.07653815, 0.043119296, -0.021559648, -0.028274259, 0.009469143, -0.0021447504, -0.017914973, -0.01073777, 0.019821418, 0.008550965, -0.016611302, -0.035633694, -0.012840467, 0.0015998016, -0.033138495, 0.0010154272, -0.03361511, -0.016947733, -0.081921056, -0.011641929, -0.036979422, 0.04909095, -0.041016597, -0.022737158, -0.008964496, -0.071379535, 0.2321377, 0.023466092, 0.035129048, -0.0074575637, 0.068351656, 0.046315394, -0.0038058807, -0.023998775, 0.010814869, -0.015840312, -0.005624713, -0.008684136, -0.023746451, 0.00713515, -0.06257625, 0.011326525, -0.047689155, -0.025484681, -0.0043560863, -0.04864238, -0.056492444, 0.07362241, 0.028232204, 0.03975498, 0.030334901, 0.029549895, -0.013001673, -0.04696022, -0.008571993, -0.039895162, 0.034119755, -0.035381373, -0.00079902465, -0.025470663, 0.010541518, 0.030278828, 0.0018416117, -0.037652284, -0.012518053, -0.009651377, -0.0010119227, -0.019386861, 0.017648632, -0.0011924041, -0.0143403895, 0.03470851, -0.03047508, 0.04365198, 0.009434098, -0.047352724, 0.028274259, -0.067005925, 0.0073734554, -0.0198074, -0.057922278, -0.004653968, -0.0638659, -0.04827791, -0.021391433, -0.0012563611, 0.0024829342, -0.0058770366, -0.043539833, 0.029886326, -0.032942243, -0.0018556296, -0.010134997, 0.016232817, 0.015195486, 0.023508146, -0.023213768, -0.010997103, -0.019793382, -0.05730549, 0.025891202, 0.017746758, -0.022344654, 0.05450189, 0.0057859197, -0.043483764, 0.012847476, -0.03470851, 0.018657926, -0.0399232, 0.03137223, 0.038325146, -0.040147483, 0.016457105, 0.0007959582, 0.036054235, 0.038885865, 0.05486636, 0.006574431, -0.012454972, -0.02646594 ]
Finally, load, compile, and fit the model. Note that Transformers models all have a default task-relevant loss function, so you don't need to specify one unless you want to:
[ 0.029833382, 0.0065909307, -0.0030235094, -0.0069215437, 0.008176452, -0.012890353, -0.015698787, -0.006708245, -0.024671553, 0.012982783, 0.007927603, -0.042887263, 0.049371544, -0.054120995, 0.018272592, 0.017803334, -0.0071917223, -0.039559804, -0.059894282, -0.019026246, 0.012065598, 0.013196081, -0.070815176, -0.033900276, -0.0014104379, 0.0028226532, 0.05881357, -0.009932611, 0.069450065, 0.033246163, 0.0101601295, -0.030970976, -0.004813441, -0.030544378, -0.034525953, -0.016495101, -0.00015497486, -0.0013188971, -0.039957963, -0.06211259, -0.017874433, -0.017035458, 0.01990788, -0.044138618, -0.054433834, 0.007963153, 0.0023587283, -0.020391358, -0.014575413, -0.02676188, -0.023733038, -0.0042588646, 0.043967977, 0.0038500421, -0.030771896, -0.04652756, -0.0013242296, 0.026264183, -0.05190269, -0.022922503, 0.03688646, 0.020561997, -0.01990788, -0.05343844, 0.010970664, 0.02701784, -0.0165662, -0.0003406114, -0.013075212, 0.0007523224, -0.04982658, -0.0074867853, -0.0105369575, -0.00092340575, -0.017078118, 0.005549322, 0.024984391, -0.010750256, 0.0267761, 0.008723918, -0.014113266, 0.041152433, 0.030828776, 0.011944729, -0.0125917345, -0.08588829, 0.075877465, 0.010416088, -0.024756873, -0.05210177, -0.030686576, 0.02826919, -0.03000402, -0.00332746, 0.033758078, 0.022410586, -0.003519429, 0.057675976, -0.006146558, -0.0094064735, -0.011852299, 0.081508555, -0.015826765, 0.03486723, -0.015343288, 0.0066620302, 0.01990788, -0.016025845, -0.04010016, -0.031596653, -0.0027302238, 0.003679403, 0.013366721, -0.012136698, 0.004852546, -0.0031977035, -0.001618404, 0.047949553, -0.017248757, -0.004063341, -0.018002413, -0.038706608, 0.022737645, -0.040782716, 0.03014622, -0.050651338, 0.004482828, 0.039758883, -0.013267181, 0.04157903, 0.029691182, 0.010259668, 0.034639712, 0.04322854, 0.0024653778, -0.0004612585, -0.0038109373, 0.01511577, -0.029776502, -0.0071135126, -0.0091931755, -0.012037158, -0.02836873, 0.091064334, -0.013835978, -0.012997002, 0.006377632, -0.047807354, -0.024842191, 0.005140499, -0.04721012, 0.0047530066, -0.016466662, -0.002273409, -0.019054687, -0.031625092, -0.025610067, 0.014717612, -0.0033612323, 0.02344864, 0.014831372, -0.012115368, -0.032762684, 0.045731246, -0.024586232, 0.039275404, -0.0062603178, -0.047835793, 0.028070113, -0.017149217, 0.019367523, 0.030345298, 0.010700486, 0.021514732, 0.031027855, 0.03845065, 0.079005845, 0.003999351, 0.0235624, -0.012847694, 0.004657022, -0.023832578, 0.004351294, 0.010622277, -0.008752358, 0.0020458903, 0.025467867, 0.0011464807, -0.018173052, 0.00332035, 0.012961453, 0.0637621, -0.02502705, -0.026349504, -0.055713627, -0.011418592, -0.012264676, -0.004706792, -0.009818851, -0.01847167, -0.022567006, 0.05531547, -0.045816567, -0.031625092, -0.020803737, 0.00020518893, -0.011269283, 0.010231229, -0.008595939, 0.003091054, 0.02179913, 0.0042090947, -0.0055955364, 0.024813753, 0.0073019266, -0.027444435, -0.0037185077, 0.014305235, 0.0096411025, 0.007984483, 0.019879442, -0.00843241, 0.048034873, 0.004216205, 0.05557143, -0.028126992, 0.0024529353, 0.06836935, 0.0060896785, 0.0026520141, 0.029108167, -0.0017739345, 0.014027947, 0.04544685, 0.009591333, 0.0044401684, 0.03136913, 0.03859285, 0.030771896, 0.003039507, 0.016082725, -0.012876133, 0.050878856, 0.046214726, -0.046556003, 0.0038998118, -0.023775699, 0.010330768, -0.060974997, 0.009072306, -0.073943555, 0.02845405, 0.03546447, 0.0017632694, -0.036971778, -0.024515133, 0.024842191, 0.018855607, -0.019708803, -0.012541966, 0.0084608495, 0.0057697305, 0.0052969186, -0.022965163, 0.05360908, 0.06677672, -0.004912981, 0.023064703, -0.00091362954, -0.051305454, -0.013764878, -0.05031006, -0.08378374, 0.022837184, -0.026648121, -0.01841479, -0.017476276, -0.054433834, 0.005584872, 0.00016219591, -0.004845436, 0.015286408, -0.032791123, 0.030601257, 0.032250766, 0.013053882, -0.04044144, 0.020419799, -0.029406784, -0.007024638, -0.03557823, -0.05864293, -0.04519089, -0.0069393185, 0.036289223, -0.012513525, 0.006932209, -0.04877431, -0.03478191, 0.010515627, 0.0062567624, -0.0010149465, 0.026406383, 0.03486723, -0.027543975, 0.017419396, 0.019339085, -0.043086343, 0.04359826, 0.041010235, -0.0007314369, 0.036203902, 0.0032990202, 0.0468404, -0.03961668, 0.008510619, 0.040697396, 0.0011882517, -0.037995614, -0.045617487, -0.042460665, 0.009378034, -0.010515627, -0.023036262, 0.0059225946, 0.060804356, -0.010480077, -0.027401777, -0.02344864, -0.035720427, -0.028852208, -0.03347368, 0.0025631397, 0.035436027, 0.057164058, 0.0060008042, -0.069848225, 0.027245358, 0.0027142263, 0.034611274, 0.009961051, -0.03884881, 0.034241557, 0.058017254, 0.022097748, 0.0028350956, 0.051333893, -0.04180655, 0.024287615, -0.010195679, 0.017319856, 0.046356924, 0.009882841, -0.005830165, 0.020633098, 0.013224521, 0.003359455, 0.03000402, 0.025339888, 0.005851495, 0.031596653, 0.012648614, -0.010401868, 0.0021258774, -0.026121983, 0.002291184, 0.004017126, -0.000073488074, 0.035947945, -0.05702186, 0.02701784, -0.00035927503, -0.017063899, -0.007579215, -0.003258138, -0.05670902, 0.02821231, 0.026889859, 0.03828001, -0.00046348036, -0.02855359, 0.019452844, 0.0047565615, 0.03557823, 0.053779718, 0.002676899, -0.007387246, -0.01011036, -0.039019447, -0.009356705, -0.0008856341, 0.053978797, 0.022510126, -0.022140408, -0.029748062, -0.029520543, 0.00836842, 0.04146527, 0.014184365, -0.012485085, 0.042915706, -0.033985596, 0.03011778, 0.022453247, 0.012485085, -0.004020681, -0.0643309, 0.020590438, 0.059154846, 0.015769886, -0.011390152, -0.021472072, -0.002022783, -0.012349997, -0.030857217, -0.005421343, -0.021642711, -0.0017570483, -0.00074476807, 0.0466982, 0.011546571, -0.0073303664, -0.023192681, 0.012463756, 0.028638909, -0.019438624, -0.002172092, -0.047807354, 0.009548673, 0.03321772, 0.0233491, -0.024984391, 0.025083931, -0.016893258, -0.039502922, 0.06199883, 0.03557823, -0.018002413, 0.02178491, -0.071383975, 0.002989737, -0.007835173, -0.0064380667, -0.051305454, 0.004674797, -0.013587129, 0.00054257864, 0.032137007, 0.008709698, -0.0167084, 0.025951345, -0.039787322, 0.015215309, -0.020775296, -0.022723425, -0.009548673, 0.02351974, -0.011894959, 0.012399766, 0.020931715, 0.00060034706, -0.036772702, 0.040469877, -0.03839377, -0.0598374, -0.008126682, 0.021159234, 0.00013908854, 0.03392872, -0.008986986, -0.0017446058, 0.014234135, 0.037369937, -0.015371729, 0.01172432, 0.014987791, 0.0049485303, -0.029776502, -0.012342886, 0.01820149, -0.075877465, 0.0069464287, -0.025425209, -0.02681876, 0.018940927, -0.064956576, -0.024060097, -0.02326378, -0.045788128, 0.020476678, 0.029236145, 0.0046036975, -0.002781771, -0.010387648, -0.0059297048, -0.024813753, -0.023789918, 0.026548581, 0.05881357, 0.03867817, 0.051134814, -0.049855024, -0.020846395, 0.038137812, -0.027799934, 0.008915887, -0.022922503, -0.024586232, -0.016466662, -0.017319856, -0.010750256, -0.019452844, 0.014347894, 0.035549786, -0.010387648, -0.0114825815, 0.015044671, -0.031170053, -0.03310396, 0.032734245, -0.035976384, -0.07576371, -0.025354108, 0.034042478, 0.0125206355, -0.012300227, 0.055969585, -0.035720427, -0.049627505, -0.06723176, 0.04866055, -0.018912487, 0.005307583, -0.04826239, -0.018030852, 0.03000402, 0.02340598, -0.003821602, -0.018272592, -0.014945131, -0.01825837, -0.007237937, -0.03486723, -0.03165353, -0.010188569, 0.03401404, -0.004347739, 0.0299187, 0.03236453, 0.010615166, 0.0070779626, 0.009150515, 0.034582835, 0.044479895, -0.065809764, -0.0071277325, 0.017305637, -0.008738138, 0.0047636717, 0.015755666, -0.0064522866, 0.014760272, -0.022439025, 0.032563604, -0.047409195, -0.029890262, -0.010750256, -0.032392967, 0.03850753, -0.028781109, -0.012556185, -0.017476276, 0.031170053, 0.0022645216, 0.0024156081, -0.04806331, -0.002767551, -0.044138618, -0.023278002, 0.06865375, -0.03680114, 0.013274291, -0.003505209, 0.010515627, 0.04186343, -0.027330676, 0.016139604, 0.07058766, -0.024941731, -0.024230735, -0.012712604, 0.04342762, -0.0059510344, 0.017433615, -0.00997527, -0.03833689, -0.007163282, 0.02326378, -0.025595848, -0.04880275, 0.01669418, 0.014042166, 0.036175463, -0.004333519, 0.047864236, 0.0300609, -0.04166435, -0.056879662, 0.023704598, 0.02679032, 0.0033576775, 0.032762684, 0.0030252868, -0.008233331, 0.019324865, -0.018997807, -0.04368358, -0.03205169, 0.07462612, -0.008140901, -0.03466815, 0.0049947454, 0.03879193, -0.0042624194, -0.029264586, 0.018699188, 0.034838792, -0.04177811, -0.0167084, -0.013516029, 0.016893258, -0.052414607, 0.032876443, 0.02697518, -0.01168877, -0.017703794, 0.054547593, 0.0021152124, -0.050821975, 0.018869827, 0.027558196, -0.032734245, 0.020192279, -0.032961763, 0.034355316, -0.024372935, -0.03685802, 0.0401286, -0.005183159, -0.0061394484, 0.05875669, -0.016338682, 0.05568519, 0.009648212, 0.02509815, -0.002026338, -0.024529353, -0.039133206, -0.013210301, 0.038735047, 0.006384742, 0.014618073, -0.0154001685, 0.03017466, 0.076275624, 0.06507033, 0.01350892, -0.069620706, 0.023121582, -0.025695387, -0.010657826, -0.008240441, 0.015414388, -0.023960557, 0.02862469, -0.008311541, -0.05201645, 0.0064060716, 0.020647317, -0.025709607, -0.022723425, -0.06706112, 0.015912086, -0.04837615, -0.03205169, -0.0008118683, -0.05198801, 0.010316549, 0.07963152, -0.016495101, -0.0042233146, 0.0023658383, 0.0054533374, -0.028041672, 0.026363723, 0.0061394484, 0.034810353, -0.013871527, -0.012911683, -0.0027657736, 0.016424002, 0.035834186, -0.03236453, 0.004621472, 0.03017466, 0.0070992927, -0.0009829516, 0.00005568541, 0.05022474, -0.01337383, 0.0029737398, -0.008126682, 0.065752886, -0.021543171, -0.007998702, -0.031084735, -0.028880648, -0.028283412, 0.041010235, 0.033672757, 0.047921114, 0.0036011934, 0.00057146285, -0.008133791, 0.04652756, 0.0122860065, -0.013103652, 0.02189867, -0.017917093, 0.0042339796, -0.020320259, -0.018969366, 0.015641907, -0.03176729, 0.025823366, 0.011354602, 0.024230735, -0.014618073, -0.0054284525, 0.04866055, 0.04157903, 0.022126189, -0.023221122, -0.0114825815, -0.017845994, -0.03876349, 0.023036262, -0.07053078, -0.03031686, 0.03179573, -0.03651674, 0.0075081154, -0.041067116, -0.017362516, 0.011333273, 0.03714242, 0.0024280506, 0.021543171, -0.002781771, 0.014902471, 0.026434822, -0.03674426, -0.039190087, -0.012172247, -0.012641504, -0.042887263, 0.010814246, 0.02836873, 0.0601218, 0.028965967, -0.01008903, -0.037597455, -0.010451637, 0.022353707, 0.030487498, -0.047551397, 0.027714614, -0.05238617, -0.0007869834, -0.012129587, -0.01680794, 0.013494699, 0.049399987, 0.012214907, 0.0010113915, -0.021216113, -0.0059225946, 0.0058230553, 0.0026626792, 0.01343782, 0.032307647, 0.008553279, -0.009648212, -0.00990417, -0.010202789, 0.0777545, 0.031340692, 0.038109373, -0.014802932, 0.037768096, 0.01861387, -0.04194875, -0.027714614, 0.05158985, 0.033075523, 0.026349504, 0.004689017, -0.00838975, 0.0013304508, -0.032563604, 0.0041344403, 0.020874836, -0.027216917, 0.017277196, -0.011887849, -0.032734245, 0.0235624, -0.012840583, -0.058045693, 0.007031748, 0.025851805, 0.03301864, 0.017063899, 0.0076645343, -0.026164643, 0.02848249, 0.014440324, 0.019182665, 0.04999722, -0.0117101, 0.047892675, -0.045020252, 0.036488302, 0.011944729, -0.0016459551, -0.009875731, -0.056367744, -0.04521933, -0.010572507, 0.0004257087, -0.03364432, 0.015912086, -0.024586232, -0.032848004, -0.03523695, -0.014973571, -0.028439831, 0.014447434, 0.014177255, -0.001131372, -0.03495255, 0.04024236, -0.01004637, 0.037170857, 0.01345915, 0.03856441, 0.008318651, 0.07815266, 0.031226933, -0.0121438075, 0.034838792, 0.027259577, -0.03515163, -0.020035861, -0.0066833603, 0.01167455, -0.022083528, -0.05170361, -0.056054905, 0.014945131, -0.0038109373, -0.022311047, -0.05176049, 0.0167084, 0.010906675, -0.025240349, 0.01172432, 0.11114286, 0.03520851, -0.044593655, -0.014945131, 0.017248757, -0.06063372, 0.0167084, -0.030857217, 0.048717428, -0.020732636, -0.07428484, 0.013345391, -0.054177877, -0.011183963, 0.009797522, -0.025453648, -0.025894465, 0.049883462, 0.013722218, 0.0130396625, 0.008667038, -0.008994096, -0.021002814, 0.021685371, 0.042688183, 0.008617269, 0.064956576, 0.03529383, -0.0018094842, -0.0132529605, 0.009562893, 0.005695076, -0.015798327, -0.0014219915, 0.015556587, 0.01338094, -0.032961763, -0.05710718, -0.018940927, -0.01515843, 0.00023040707, -0.027060498, -0.0199932, 0.0036118585, -0.05372284, -0.021130795, 0.0017854881, 0.021429412, -0.002248524, -0.018059293, 0.00010909341, -0.022211507, 0.2393496, 0.070644535, 0.06916567, 0.028994408, 0.047921114, 0.03867817, 0.029691182, -0.028738448, -0.003679403, -0.005378683, -0.03176729, -0.03208013, 0.0006056795, 0.017049678, -0.05025318, 0.022737645, -0.049513746, -0.0015321958, -0.048233952, -0.032762684, -0.067345515, 0.051447652, 0.011667441, 0.011127084, 0.037512135, -0.014660733, -0.0032154783, -0.03347368, -0.012470866, -0.020192279, 0.02026338, -0.024699993, 0.024486694, -0.0025258125, -0.021287212, 0.012364216, 0.021187674, -0.04229003, -0.014525644, 0.017860213, 0.0025080375, -0.02687564, 0.023676159, -0.035748865, -0.015997404, 0.007465455, -0.011013324, -0.0041024457, 0.04504869, -0.035947945, 0.021173453, -0.07229405, 0.01495935, -0.033047084, -0.043285422, -0.002843983, -0.06660608, -0.06643544, 0.00295241, 0.016096944, 0.0038073822, -0.017789114, -0.0062780925, -0.002328511, -0.012783703, 0.023064703, -0.009754862, 0.055031072, 0.0017277197, 0.002070775, 0.017490495, -0.0031977035, -0.022339487, 0.014603853, -0.0028937527, 0.05548611, 0.019552384, 0.079574645, -0.027245358, -0.04982658, 0.0088874465, -0.012598845, 0.007202387, -0.022680765, 0.024785312, 0.04200563, -0.039645124, 0.03208013, -0.016879039, 0.032023247, 0.04018548, 0.031056294, 0.024728432, -0.022367926, -0.008247551 ]
from transformers import TFAutoModelForSequenceClassification from tensorflow.keras.optimizers import Adam Load and compile our model model = TFAutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-cased") Lower learning rates are often better for fine-tuning transformers model.compile(optimizer=Adam(3e-5)) # No loss argument! model.fit(tokenized_data, labels)
[ 0.03129202, -0.00014552243, -0.0031802827, -0.018179042, -0.028199207, -0.028353147, 0.06314383, 0.030340387, -0.035014596, 0.016933518, 0.023301082, -0.026267946, 0.007578099, -0.0587775, -0.004579747, 0.017801186, 0.001423955, -0.039045054, -0.042711653, 0.027751377, 0.032663498, -0.0040619452, -0.081672736, -0.044363018, -0.006671946, -0.0005339831, 0.07249225, -0.03733771, 0.07019713, 0.029948536, -0.04209589, 0.0045202696, 0.004590243, -0.023021188, -0.0035476421, -0.010565956, -0.012084374, -0.028409125, -0.03339122, -0.03148795, 0.052787796, -0.04304752, 0.022181509, -0.034566768, -0.0344828, -0.016107835, -0.005923233, -0.03837331, 0.0072492254, -0.02353899, -0.01844494, -0.016569657, -0.01050298, -0.004334841, -0.035490416, 0.032299638, 0.01690553, 0.0056293453, -0.028493093, 0.006157643, 0.04315948, -0.0015927653, -0.040976316, -0.07512324, 0.011167726, 0.0030840696, -0.019382581, -0.021775665, -0.025652181, -0.019928372, -0.010915821, -0.0026082515, -0.012833088, -0.05729407, -0.0029948538, -0.033895027, 0.019564511, 0.0030438348, -0.010558958, 0.054691065, 0.013826707, 0.030676259, 0.047413852, -0.010523972, -0.0015612774, -0.03453878, 0.039464895, 0.0032327627, -0.04167605, -0.023217114, -0.024966443, 0.026477866, -0.011160728, 0.017031481, 0.032635506, 0.074619435, -0.0031662881, 0.039324947, -0.02938875, -0.046854064, 0.035154544, 0.030760227, -0.0096423095, 0.02688371, -0.033139315, 0.016163813, 0.020754056, 0.024350679, 0.009453381, -0.050044846, 0.00872566, -0.0018332982, 0.0061506457, 0.012763115, -0.01729738, 0.040892348, -0.022881242, 0.008529735, -0.042291813, -0.005443916, -0.0055418788, 0.016233787, 0.010705902, -0.024812503, 0.048841305, 0.0114966, 0.03613417, 0.06236013, -0.038177386, -0.027541459, -0.023399044, 0.002309116, 0.021411804, 0.05701418, -0.008515741, 0.004019961, -0.0525079, -0.0024070786, -0.002492796, -0.033167306, -0.0055103907, -0.008872604, 0.034846663, 0.07988142, -0.026911698, 0.017325368, 0.04162007, -0.029556686, -0.027163602, 0.013273919, -0.021425799, 0.034846663, -0.0305643, -0.0048141573, -0.021663709, -0.019900383, -0.0110837575, -0.021327836, 0.016429711, 0.004506275, -0.0005226125, 0.010307055, -0.009460378, 0.07064496, -0.002466556, 0.04276763, -0.016177807, 0.0002582449, 0.0140086375, -0.03299937, 0.0017580771, -0.02902489, -0.021327836, 0.013945662, 0.027149608, 0.09499564, 0.036609985, -0.021789659, 0.024980439, 0.021495773, -0.012938048, -0.00055191375, 0.021145906, 0.063871555, 0.014610408, -0.029192826, 0.0043908195, 0.01232928, -0.013679764, -0.007375177, 0.014456467, 0.031683873, -0.04038854, 0.015408102, -0.0070847883, 0.038541246, -0.013616788, 0.050044846, 0.023860866, -0.04002468, -0.00569582, 0.060736753, -0.038737174, 0.024742529, -0.014624402, -0.00825684, 0.0015647761, 0.00036779672, -0.0065739835, -0.002477052, 0.022685317, -0.009943194, -0.035658352, -0.049149185, -0.0044013155, 0.0065459944, -0.0110067865, -0.0021744177, -0.017759202, -0.0110067865, -0.036302105, 0.022713305, -0.010139119, -0.0041214223, 0.0056293453, -0.04704999, 0.0034234396, 0.02019427, -0.008480754, 0.0017379598, 0.012490219, 0.021047944, 0.001154558, 0.05533482, 0.019746441, -0.012798102, 0.06616668, 0.015436091, 0.00564334, 0.0095583415, 0.022069553, 0.0069903242, 0.025680171, 0.019746441, 0.008571719, -0.026211968, 0.03924098, 0.017003492, 0.011167726, 0.03688988, -0.047637764, 0.063647635, 0.02983658, 0.041396156, -0.052088063, -0.012917056, 0.03719776, 0.02983658, -0.037869506, -0.01922864, -0.031012129, 0.022461403, -0.0049086213, -0.008298824, 0.06308785, 0.045650527, 0.0064935144, 0.0038275348, -0.01585593, -0.088502124, -0.01654167, -0.013406868, -0.07719445, -0.015576038, -0.00063675625, -0.009376411, 0.0140156355, -0.037141785, 0.0043278434, -0.016975502, -0.04352334, 0.015576038, -0.02980859, 0.01745132, 0.03607819, 0.01510022, -0.06616668, 0.03582629, -0.010104133, 0.015156198, 0.02058612, -0.038317334, 0.019634485, 0.0046462216, 0.035434436, 0.013161962, -0.0110837575, 0.004219385, -0.053935356, -0.0022426415, -0.009306437, 0.01120971, 0.008669682, 0.0038170388, -0.034650736, 0.037169773, -0.016219791, -0.060568817, 0.03143197, 0.06594276, -0.026897704, 0.024238722, -0.031236043, 0.030284408, -0.027023656, 0.055166885, 0.06314383, -0.012133355, -0.03960484, -0.030648269, -0.019172661, 0.0054719057, 0.017507298, -0.004345337, -0.006549493, 0.04464291, -0.00030394614, -0.046910044, -0.020907996, 0.0008423026, -0.029304784, -0.0042333794, -0.039744787, 0.040640444, 0.021537757, 0.00020751431, -0.04587444, 0.0028094247, 0.011139736, 0.031096097, 0.00446779, -0.03563036, 0.06695037, 0.017311374, 0.0031173069, 0.0172414, 0.022923226, -0.04587444, 0.016961507, 0.021691697, -0.013777726, 0.027373523, 0.031012129, 0.0071162763, -0.0066894395, 0.033055346, -0.031320013, 0.0080679115, 0.0140786115, -0.019942367, 0.05102447, 0.009775259, 0.00022457029, 0.0081378855, -0.032243658, -0.014442472, -0.0140366275, 0.015939899, 0.060288925, -0.00042355663, 0.038709182, -0.013043008, -0.03963283, -0.006063179, -0.01980242, -0.043747254, 0.047665756, 0.051276375, 0.028605051, -0.061688386, -0.0031260534, 0.04349535, -0.0014309522, 0.02980859, 0.019984351, 0.015618022, -0.02281127, 0.009495365, -0.031459957, 0.017171428, 0.0125811845, -0.02426671, -0.005237495, -0.040696424, -0.0074031665, -0.030032504, 0.009859227, 0.036302105, 0.062919915, 0.02868902, -0.00009954783, -0.015408102, -0.0007753907, 0.0242947, -0.018542903, -0.0040059667, -0.045006774, 0.015226172, -0.01157357, -0.011384643, -0.011440621, 0.016219791, 0.0068923617, 0.00794196, -0.02390285, 0.0059757126, -0.035546392, 0.0038520256, 0.0016504932, 0.034006983, -0.017521294, -0.032439582, -0.008942577, 0.03020044, 0.033419207, -0.085311346, -0.008466759, -0.036218137, -0.00006641989, 0.0015604027, -0.013868691, -0.041760016, -0.02094998, -0.019816415, -0.06252807, 0.041732024, 0.039828755, -0.033643123, 0.039548863, -0.028772987, 0.027149608, 0.015757969, -0.015338129, -0.010195098, 0.012056385, 0.02296521, -0.012455232, 0.04427905, 0.0031225549, -0.03330725, 0.027863335, -0.023119152, -0.007983944, -0.03966082, -0.03333524, -0.041312188, 0.022881242, -0.029136848, 0.014302526, -0.019270623, -0.008921585, 0.020208266, 0.030480333, -0.01826301, -0.02390285, 0.027317544, 0.018920757, 0.019032715, 0.067566134, -0.008158877, -0.026687784, 0.0059687155, 0.018892769, -0.034762695, 0.019718453, -0.009873221, -0.005744801, -0.03017245, -0.008305821, 0.0077670272, -0.042935565, 0.033111326, 0.013357887, -0.054719057, -0.011552578, -0.032243658, -0.01651368, -0.022895236, -0.0049156183, 0.017507298, 0.004950605, 0.0011125741, 0.044446986, -0.011874455, -0.015394107, -0.035546392, -0.04511873, 0.013385876, 0.044363018, 0.021957595, 0.0668944, -0.0110557685, -0.029584676, 0.011622551, 0.008515741, 0.016289765, -0.00971928, -0.00666145, -0.0024962944, -0.014155582, -0.0342309, -0.00274295, -0.023776898, -0.011342659, -0.020963976, -0.008466759, -0.0020064819, -0.019368587, -0.025302315, 0.04786168, -0.02296521, -0.05928131, -0.029108858, -0.014988263, -0.014722365, -0.0046042376, -0.021873627, -0.0124832215, -0.04427905, -0.05804978, 0.046406236, -0.035518404, 0.00087947585, -0.06314383, -0.06415144, 0.03414693, 0.052647848, 0.03339122, -0.02763942, -0.000614015, -0.034006983, 0.052787796, -0.0650471, -0.045818463, -0.028409125, 0.011300675, -0.020124298, 0.08038523, 0.019998346, -0.023035184, 0.00543342, 0.00094376376, 0.043299425, 0.02555422, -0.020166282, 0.00007008255, 0.018067084, -0.009040539, 0.030928161, 0.0154920705, -0.021705693, 0.022769285, -0.0021429297, 0.058497608, -0.005300471, -0.050856534, -0.043691278, -0.028101243, 0.03439883, -0.03641406, 0.023832878, -0.04195594, 0.004975096, -0.010880835, 0.0074101635, -0.02784934, 0.0052444926, -0.04976495, -0.05074458, 0.04657417, -0.035490416, 0.012077377, -0.010237082, -0.018486924, 0.047973637, -0.04758179, 0.013966654, 0.070365064, 0.010223087, -0.001159806, -0.053963345, 0.05295573, 0.011846466, 0.025512235, 0.008865607, 0.010831854, -0.039408915, -0.013973651, -0.036581997, -0.038765162, -0.013091989, 0.01528215, 0.012371264, 0.01747931, 0.05844163, 0.0032904905, -0.03381106, -0.061912302, 0.044978783, -0.007305204, 0.023580974, 0.0042158864, 0.049261145, -0.009726277, -0.0058742515, -0.013490836, -0.006115659, -0.0095863305, 0.097010866, -0.01729738, -0.032439582, 0.039688807, 0.00514653, -0.04752581, -0.050072834, -0.016751587, 0.0030333388, -0.036022212, 0.0026572328, 0.008942577, 0.026225962, -0.023511, 0.034314867, 0.021355826, -0.015058236, -0.0034654236, -0.017073466, 0.01371475, -0.034314867, 0.013973651, 0.028185211, -0.016919523, 0.004506275, -0.0111047495, 0.010286063, -0.016373733, -0.025078401, 0.06678244, 0.009152496, 0.025932074, 0.0154640805, 0.02594607, 0.023678936, -0.021775665, -0.019718453, 0.00074390275, -0.03887712, -0.040892348, -0.04794565, 0.028045265, 0.021033948, 0.010831854, -0.024602583, -0.0022059057, 0.0013084991, 0.0668944, -0.024966443, -0.048057605, 0.07154062, -0.029612666, -0.022489391, -0.021453789, 0.0013233684, -0.010614937, 0.034566768, 0.014722365, -0.06700635, 0.0081238905, -0.00209045, 0.0155060645, 0.0077390377, -0.038205378, -0.0167236, -0.027443495, -0.03722575, 0.009908208, -0.027387517, -0.0012787605, 0.009908208, 0.002356348, 0.009943194, -0.013973651, 0.04240377, -0.012469227, -0.00040475134, -0.015869925, 0.00025671424, 0.006888863, 0.0061331526, -0.020754056, 0.01146861, 0.011874455, 0.026505854, 0.032299638, 0.013084992, -0.009369413, -0.02465856, -0.013728745, 0.025204353, -0.0052759806, -0.008837617, 0.016807567, -0.0027342034, -0.05060463, 0.0053074686, -0.034678727, -0.058665544, 0.003939492, 0.026044032, 0.023622958, 0.053095676, 0.015338129, 0.014190569, -0.019662473, 0.013203946, 0.0117555, 0.016933518, 0.0029738618, 0.028591055, 0.016275771, -0.03148795, 0.015352123, 0.026239956, -0.019942367, 0.030284408, 0.0014545682, 0.0055593722, -0.0053249616, 0.014169577, 0.05376742, 0.031515937, 0.044223074, 0.0059057395, -0.002641489, -0.05533482, -0.0044293045, 0.028884944, -0.10523972, -0.0077110482, 0.034650736, -0.036721945, 0.008914588, -0.036665965, 0.002630993, 0.005405431, 0.028521083, 0.0080679115, 0.048337497, 0.020684082, 0.018766817, 0.024966443, -0.016359737, -0.02908087, 0.009369413, -0.01705947, -0.014750354, -0.06280796, 0.014596413, 0.032495562, -0.00023047428, -0.011664535, -0.028395131, 0.006178635, -0.01651368, 0.033867035, -0.04657417, -0.0010417262, -0.051444307, 0.019256629, 0.020852018, 0.040836368, -0.046518195, 0.055138893, 0.016569657, -0.020306228, 0.012308288, 0.045286667, -0.0033079837, -0.03999669, 0.05415927, 0.03325127, 0.07506727, -0.01745132, 0.040276583, 0.020810034, 0.039912723, 0.002424572, 0.033951003, 0.01883679, 0.019690463, 0.029360762, -0.004156409, -0.027009662, 0.03053631, 0.039884735, -0.019522527, -0.019606495, 0.011916439, 0.011958423, 0.016051855, 0.0038135403, 0.00025255958, 0.017899148, 0.013476841, 0.0029896058, -0.046238303, 0.0070113163, -0.0081238905, -0.060232945, -0.008872604, 0.03649803, 0.03921299, 0.009726277, 0.021453789, 0.04553857, 0.024434647, 0.010845848, 0.013015018, 0.02824119, -0.022447407, 0.023007194, -0.03574232, -0.003785551, -0.009355419, 0.015212177, -0.011482605, -0.045398623, 0.009838235, 0.0405005, -0.012812096, -0.003208272, 0.0028933925, -0.037365697, 0.00010452249, -0.049569026, 0.008914588, -0.04556656, -0.043019533, 0.018710839, 0.026547838, -0.05334758, 0.021803655, 0.016793571, 0.037953474, 0.033195294, 0.0180251, 0.023189124, 0.035518404, 0.061464474, -0.012644161, -0.004436302, 0.024224728, -0.019270623, 0.0018910262, -0.002100946, 0.008340808, 0.0034969114, -0.02868902, -0.046154335, 0.003712079, -0.00016093839, -0.033615135, -0.037057817, 0.0052864766, -0.0058532595, -0.033867035, 0.014232553, 0.062919915, -0.019998346, -0.008977564, 0.0020344714, -0.0038835136, -0.029360762, -0.0080259275, -0.040472507, 0.02850709, -0.0065669864, -0.048197553, -0.017283384, -0.048813317, 0.035434436, 0.040136635, 0.007990941, -0.0010277316, 0.055166885, 0.024028802, 0.0026502355, 0.016779577, -0.027009662, -0.020152286, 0.03529449, 0.053067688, -0.009243462, 0.072884105, 0.07590695, -0.029332772, 0.00033915145, -0.005415927, 0.031096097, 0.0048036613, 0.010251076, 0.025624191, 0.023231108, -0.04038854, -0.032831434, -0.005734305, 0.036162157, -0.0026432383, -0.02727556, -0.04931712, -0.02486848, -0.066558525, 0.0076550697, -0.031152075, 0.001400339, 0.011734508, -0.017927138, 0.011419629, -0.0752352, 0.23197521, 0.037393685, 0.052311976, 0.034650736, 0.049625006, 0.05567069, -0.007161759, 0.025274325, 0.022461403, -0.044558942, 0.022167515, -0.016639631, -0.002980859, 0.014456467, -0.0009157745, 0.013029013, -0.0778662, -0.023804888, -0.0076760617, -0.033531167, -0.05211605, 0.0423198, 0.015813947, 0.04853342, 0.02980859, -0.0012114113, -0.01651368, -0.053823397, -0.026435882, -0.044418998, 0.044866826, -0.022195505, 0.002366844, -0.048057605, -0.010279066, 0.030228429, -0.00053748174, -0.035154544, -0.007962952, -0.0139806485, -0.010992792, 0.0047721732, 0.01423955, -0.023552984, -0.013280916, 0.031152075, -0.04794565, 0.04629428, 0.009271451, -0.0650471, 0.011230702, -0.051920127, 0.016373733, -0.014904295, -0.06275198, -0.046014387, -0.018039094, -0.08419178, 0.0013058751, -0.022559365, 0.009530352, 0.0025960063, 0.008417778, 0.01582794, -0.041843984, 0.0061121606, -0.032803442, 0.026407892, -0.033503175, -0.019088693, -0.021313842, -0.001826301, -0.0023476013, -0.009439386, 0.042515725, -0.0044223075, -0.013602793, 0.06672646, 0.007140767, -0.021481777, -0.022741295, -0.0389331, -0.009551344, -0.065326996, 0.031627893, 0.023035184, -0.049289133, 0.002435068, 0.004117924, 0.03333524, 0.022139525, 0.04167605, 0.01820703, 0.02278328, -0.0493731 ]
You don't have to pass a loss argument to your models when you compile() them! Hugging Face models automatically choose a loss that is appropriate for their task and model architecture if this argument is left blank. You can always override this by specifying a loss yourself if you want to!
[ 0.017345851, 0.029001383, -0.022912467, -0.0024345357, -0.010988913, -0.0067177373, 0.03230012, -0.015971377, -0.01841794, 0.046787065, -0.007724539, -0.017469553, 0.02867151, -0.058662515, -0.007648943, 0.043900672, 0.024987921, -0.020355947, -0.059212305, -0.046704598, 0.029853556, 0.034389317, -0.059212305, -0.01964122, -0.040217083, -0.0011966507, 0.035021577, -0.02079578, 0.05640838, -0.001465532, -0.018555388, 0.0020136032, 0.016754828, -0.023943322, -0.014569416, -0.0043983143, 0.013552305, -0.022816254, -0.08252337, -0.009181481, 0.03570881, -0.001184624, 0.018307982, -0.01722215, -0.05673825, 0.033921998, -0.0040340787, -0.026678523, -0.03744065, -0.009531971, 0.015930144, 0.0717475, 0.005408552, 0.009023416, -0.031805307, -0.0373032, -0.010686529, 0.017153425, -0.0063638105, -0.011566192, -0.007861987, -0.008349924, -0.0063019595, -0.048271496, -0.009951185, -0.0022300826, -0.021386802, -0.012081619, -0.018967729, -0.025455242, -0.04453293, 0.005789968, -0.019751178, -0.024465622, -0.012830706, 0.049288608, 0.005786532, 0.0026733503, 0.02867151, 0.008624819, 0.007456517, 0.035214003, 0.014225797, 0.029413724, -0.027833082, -0.0059171068, 0.048298985, -0.0076214536, 0.015504057, -0.049893375, -0.026939673, 0.035076555, -0.06460024, 0.035571367, -0.0034224382, 0.035351448, -0.008817245, 0.05258734, -0.012329024, -0.022005316, 0.004752241, 0.11622545, -0.018610366, 0.04816154, 0.01964122, -0.012081619, 0.02019101, -0.018692834, -0.033427186, -0.021606717, -0.044945274, -0.03337221, 0.039474867, 0.013167453, -0.01228779, -0.015778951, 0.00480722, 0.018816538, -0.041646536, -0.01873407, -0.00894782, -0.03070573, 0.004439548, -0.033921998, 0.030788198, -0.035351448, -0.0062710335, 0.035681322, 0.014267031, 0.017950619, 0.000015717853, 0.0048037837, 0.046759576, 0.058497578, -0.03213518, -0.039199974, -0.04964597, 0.04761175, -0.0032437567, 0.0012963, -0.004253994, -0.010336038, -0.018060576, 0.062401082, 0.0009312056, -0.033124804, 0.031942755, -0.1092981, 0.00790322, 0.028863937, -0.025084134, -0.025716392, -0.009497609, 0.0028314146, -0.092969365, 0.017442064, -0.0071335156, 0.046319745, -0.018266749, 0.023421023, -0.0039791, -0.0048003476, -0.031447947, 0.0057143723, 0.022170251, 0.040244572, -0.06905353, -0.014067733, 0.012590174, -0.055171352, 0.0017799428, 0.007346559, 0.01188232, -0.013669135, 0.045687485, 0.01711219, 0.033124804, 0.016438698, -0.019998584, -0.020878248, 0.013414858, -0.017840661, 0.016974743, 0.016589891, -0.017070957, -0.0055563077, 0.029248789, 0.021592973, 0.027022142, 0.03419689, 0.0064737685, 0.060751714, -0.043735735, 0.01455567, -0.08560219, 0.008906586, -0.04241624, 0.009415141, 0.027778102, -0.011703638, -0.023187362, 0.029303767, -0.035626344, -0.01063155, 0.0049515394, 0.018431684, -0.03837529, 0.032904886, -0.02478175, 0.02120812, 0.024740517, 0.009593822, 0.011786107, 0.011999151, 0.016864786, -0.0071678776, -0.024493111, 0.019764924, -0.0064668963, -0.0043330267, 0.03779801, -0.007910093, 0.039749764, 0.024190728, 0.047446813, 0.021730421, 0.022692552, 0.044230547, 0.011579936, 0.031502925, 0.02019101, 0.022101529, 0.01356605, 0.03928244, 0.018156791, 0.033702083, 0.077135436, 0.033454675, 0.036148645, 0.007257218, -0.014376989, 0.0006425662, 0.021331822, 0.027352016, -0.020149777, -0.022898722, -0.022115273, 0.004700698, -0.04285607, 0.017387085, -0.044807825, 0.0126795145, 0.016727338, -0.019448794, -0.06751412, -0.0260875, -0.018995218, 0.02146927, -0.0046629, -0.0065699816, 0.04354331, 0.029771088, -0.013490454, 0.0083224345, 0.03122803, 0.04758426, -0.03213518, 0.04307599, 0.016713593, -0.011614298, -0.008171243, -0.032492545, -0.0725172, -0.008404903, -0.016796062, 0.0017558894, 0.01818428, -0.048134048, -0.0065802904, -0.01455567, -0.03996968, 0.00010797131, -0.039474867, 0.027063375, 0.026211202, 0.021056928, -0.06883361, 0.0054772752, -0.0146243945, 0.01153183, -0.006497822, -0.04241624, -0.0049927738, 0.0019603423, 0.0040065893, -0.02146927, -0.00021583523, -0.01098204, -0.050195757, 0.021785399, 0.012631408, 0.009875589, 0.011435617, 0.026857205, -0.0054600947, 0.013889051, 0.00845301, -0.03213518, 0.034141913, 0.025111625, -0.010026782, 0.041948922, 0.011724256, 0.020520885, -0.01841794, 0.039639805, 0.082578346, -0.029468704, -0.044642888, -0.019091431, -0.047446813, 0.006037373, 0.0013847817, -0.01667236, -0.022939956, 0.067843996, -0.050030824, -0.049096182, -0.046457194, -0.046292257, -0.019077687, -0.0018916187, 0.0044807824, 0.05577612, -0.012707004, 0.013655391, -0.014431968, 0.010528464, 0.026458608, 0.01992986, 0.010061143, 0.011373765, 0.040134616, 0.04763924, -0.026073756, -0.029826067, 0.038815122, -0.049398564, 0.0373032, 0.010755252, 0.024383154, -0.015696483, 0.0033502784, -0.0033708953, -0.0022094655, 0.02381962, -0.02045216, 0.043185946, 0.022142762, 0.021373058, 0.044203058, 0.017304616, -0.014170818, 0.0048690713, -0.029606152, 0.005088987, 0.007765773, 0.015833931, 0.017840661, -0.054429136, 0.045247655, 0.016768573, -0.016397465, 0.011078253, -0.0026716322, -0.030458326, 0.04255369, 0.03488413, 0.029881045, -0.038567718, -0.0033691772, 0.015119204, 0.016548656, 0.020053564, 0.033427186, 0.022829998, 0.04555004, 0.033152293, -0.00037883915, 0.02533154, 0.0245206, 0.02507039, -0.015572781, -0.034636725, -0.03480166, -0.03889759, 0.01763449, 0.06427036, 0.026664779, -0.020369692, 0.057398, -0.0069410894, -0.0053226473, 0.016301252, -0.0137790935, -0.04038202, -0.011435617, 0.042141348, 0.058167703, 0.025895074, 0.00032300118, -0.0103910165, -0.013167453, -0.01513295, -0.033592124, -0.0021579228, 0.002688813, -0.007367176, -0.029991005, 0.041069258, -0.023517236, -0.041069258, -0.06663446, -0.003999717, 0.055611182, 0.0027712814, -0.019737434, -0.027145844, 0.0047659855, -0.001298018, -0.0034791352, -0.047171917, -0.016837295, 0.013572922, -0.07125269, 0.027640656, 0.053027175, -0.049371075, -0.017497042, -0.050278228, -0.013284283, -0.016589891, 0.02300868, -0.005772787, 0.0035564492, 0.030925646, 0.0075870915, 0.021345567, -0.008528606, 0.015476568, -0.0008908304, -0.022321444, 0.041096747, -0.017002232, -0.017950619, -0.017002232, 0.016136315, -0.0060854796, 0.035241492, 0.028781468, -0.026417375, -0.008384286, 0.02094697, -0.023544725, -0.039337423, 0.018033087, 0.0526973, -0.018225513, 0.06696433, -0.0071472605, -0.011146978, 0.020438416, 0.0126795145, -0.027846826, 0.021194376, -0.034526765, -0.0075046234, -0.022486381, -0.0001753527, 0.021359313, -0.04964597, 0.00923646, -0.01615006, 0.002785026, 0.0062710335, -0.05025074, -0.026953418, -0.027200824, -0.026829716, 0.035461407, 0.02614248, 0.007724539, -0.018074322, 0.0117723625, 0.028506573, 0.008356797, -0.021194376, -0.0020565554, 0.08175366, 0.0076901773, -0.0046835174, -0.039722275, -0.0058380747, 0.045385104, -0.021812888, 0.041619048, 0.007442772, -0.039144997, 0.0108308485, -0.03471919, -0.04038202, 0.009009671, -0.022843743, 0.0004215767, 0.015778951, -0.027778102, 0.00067907566, -0.03430685, -0.020094797, 0.020809524, -0.026005032, -0.03227263, -0.030320877, 0.007387793, 0.03683588, 0.018253004, 0.037990436, -0.061631374, -0.04406561, -0.037495628, 0.07125269, -0.024451878, -0.00052659505, -0.037110776, -0.037275713, -0.01321556, 0.031887777, 0.0056112865, -0.028396616, 0.029963514, -0.023434767, 0.012583301, -0.041674025, -0.024273196, 0.016864786, 0.026884696, -0.05822268, 0.047914132, -0.010466613, -0.0016605353, 0.009799994, 0.0191739, 0.014102095, 0.028369125, -0.010734635, -0.03488413, 0.014445713, -0.012191577, 0.0043158457, 0.040629428, -0.015778951, 0.0008208182, 0.009312055, 0.030513303, -0.04398314, -0.04609983, -0.006253853, -0.016424954, 0.02603252, -0.05437416, 0.0007748592, -0.028506573, 0.010150484, -0.006968579, 0.050195757, -0.042691134, -0.0053054662, -0.026829716, -0.06630459, 0.041206706, -0.05420922, -0.0046147937, -0.021029439, -0.012920047, 0.044230547, -0.024616813, -0.020548373, 0.046897024, -0.043460842, 0.021812888, -0.0024895144, -0.008026923, 0.018871516, 0.000023731138, -0.0065699816, 0.016521167, -0.027819335, 0.011332531, -0.03117305, -0.048683837, 0.009050906, 0.019462539, 0.033619612, -0.023544725, 0.038045418, 0.013751604, 0.006975451, -0.03128301, 0.027461974, 0.032547522, 0.018376706, 0.01992986, 0.050388187, -0.012363386, 0.035351448, -0.03944738, -0.019709945, -0.0009226151, 0.07631075, -0.0037591842, -0.019806158, 0.025468986, 0.02256885, -0.031557903, -0.02397081, -0.0025719828, 0.038677674, -0.027736869, -0.0036938966, -0.0051439656, -0.014830565, -0.024341919, 0.037413158, 0.01565525, -0.030128451, -0.04901371, 0.06943838, 0.019517519, -0.04656715, -0.018761558, 0.044835314, -0.02204655, -0.0154078435, -0.034141913, -0.004040951, -0.06091665, -0.033592124, 0.06795395, -0.029743599, -0.005003082, 0.014913034, -0.03983223, 0.050195757, 0.008363669, 0.013744731, 0.041948922, -0.048986223, -0.037688054, 0.0029551173, 0.0064565875, -0.011868576, 0.0032214215, -0.019558752, 0.0004492809, 0.018527897, 0.055116374, -0.04186645, -0.075651005, 0.032107692, -0.038512737, -0.016658615, 0.03529647, 0.004260867, -0.021661697, 0.0558311, -0.009250204, -0.08131383, -0.0054429136, 0.019160155, -0.014335755, -0.016163804, -0.053631943, 0.008178115, -0.04706196, 0.017510789, -0.0302659, -0.020122286, 0.007538985, 0.039090015, -0.0029156012, -0.006312268, 0.00040396626, -0.004040951, 0.000685089, 0.017098445, 0.0117723625, 0.02861653, -0.008521734, -0.0007688459, -0.026128734, -0.0036595347, 0.008514861, -0.059707113, 0.032190163, 0.028314147, -0.009758759, -0.024616813, 0.0048003476, 0.07185745, 0.034471788, 0.009531971, -0.02277502, 0.035543874, -0.059817072, 0.00018888268, -0.03724822, -0.038650185, -0.03843027, 0.019888626, 0.032107692, 0.022005316, -0.004910305, 0.022981191, -0.003535832, 0.025468986, -0.0028331329, -0.039337423, 0.014074605, 0.011751745, -0.010542209, -0.053521983, -0.008370541, 0.061191544, -0.053384535, 0.038705163, 0.04453293, -0.011683022, 0.026760992, 0.021166887, 0.013689753, 0.036066175, 0.0019225443, -0.025194094, -0.019077687, -0.00556318, 0.0007641212, 0.025757628, -0.04354331, -0.052972194, 0.018239258, -0.026967162, -0.009202098, -0.020053564, 0.0020806086, 0.0069651427, 0.020520885, -0.004539198, 0.009806866, -0.031392965, -0.00021519096, -0.017043468, -0.023049915, -0.08395282, -0.0031973682, 0.027461974, -0.06383053, -0.027228313, 0.017194659, 0.024341919, 0.013517943, -0.025647668, -0.019022709, -0.031475436, 0.0063225767, 0.020328458, -0.02744823, 0.015504057, -0.054621562, -0.00002229492, -0.012576429, 0.0013564331, -0.012061002, 0.03372957, -0.0027592548, 0.005783096, 0.02201906, 0.03221765, 0.020754544, -0.016232528, -0.0022060294, 0.0055288184, 0.014528181, 0.008418648, 0.027984273, 0.0010480358, 0.03389451, 0.0040478236, 0.015242907, -0.009751887, 0.04818903, 0.0008440124, -0.027956784, -0.04667711, 0.037990436, 0.016424954, 0.008363669, 0.0019500338, -0.05528131, -0.008755394, -0.013517943, 0.033042334, 0.012954409, -0.031420454, -0.027901804, -0.010858337, -0.03526898, 0.0038244715, 0.010837721, -0.044670377, 0.009002799, 0.068283826, 0.01920139, 0.018060576, 0.00383478, 0.0017868151, 0.03837529, 0.0065321834, -0.0013667417, 0.03985972, -0.022706296, 0.03884261, 0.008590457, 0.052669812, -0.052257467, 0.024410643, -0.0030942827, -0.011621171, -0.030650752, 0.012858196, 0.008212477, -0.033976976, 0.0009320646, -0.0054394775, -0.016260017, -0.061576396, 0.008968437, -0.06630459, 0.037275713, 0.0023039605, -0.0102054635, -0.039612316, 0.0011708793, -0.022665063, 0.024383154, 0.0049137413, 0.0717475, 0.021799143, 0.08444763, 0.062291123, 0.0064016087, 0.026266182, 0.04258118, -0.013882179, -0.014830565, -0.0016175831, -0.01632874, 0.017455809, -0.09291439, -0.05162521, 0.020905737, 0.005961777, -0.033839528, -0.047309365, 0.032355096, 0.009394524, -0.010521592, -0.022445146, 0.082193494, 0.019613732, -0.013098729, -0.029138831, 0.012652026, -0.040327042, -0.050305717, -0.015517802, 0.014885544, -0.014294521, -0.049371075, 0.023049915, -0.038265333, 0.03419689, 0.042746115, -0.025647668, -0.017538277, 0.032987356, 0.024671793, 0.05877247, -0.016988488, -0.036698435, -0.018953985, 0.07042801, 0.013112473, -0.005958341, 0.058607534, 0.040711895, -0.0028709308, 0.011208829, 0.04500025, -0.0048587625, 0.0021355876, -0.052175, 0.010562826, 0.026334906, -0.017950619, -0.058937408, -0.0029035746, 0.01112636, -0.02402579, -0.008693542, -0.0052298703, -0.015545291, -0.05585859, 0.005944596, -0.002463743, 0.02303617, -0.038815122, -0.056243442, 0.047694217, -0.018074322, 0.21892609, 0.049865887, 0.023489745, -0.004453293, 0.030458326, 0.04700698, 0.030595772, 0.024383154, 0.020850757, -0.0018778739, 0.0057040635, -0.054978926, 0.00549102, -0.035571367, -0.023737151, 0.004515144, -0.026252437, 0.005783096, -0.036753412, -0.0050408803, -0.033867016, 0.042223815, -0.0076764324, 0.040986788, 0.032602504, -0.031200541, -0.01531163, -0.023421023, 0.001767916, -0.04917865, 0.00043124094, 0.014486947, -0.008178115, -0.01888526, 0.029413724, 0.011483723, 0.011469978, -0.02405328, -0.016218783, 0.027159588, -0.01995735, -0.036038686, 0.05778285, 0.017730704, 0.004174962, -0.006408481, 0.0033932305, 0.009332673, 0.0008315563, -0.028025508, 0.025496477, -0.028699, 0.0110507645, -0.061741333, -0.049288608, -0.0011519803, -0.068943575, -0.050745547, -0.0150642255, 0.000995634, 0.0003891477, 0.045632508, -0.03331723, 0.047336854, -0.008769139, -0.012487088, -0.018170536, 0.04601736, 0.0053054662, 0.014115839, -0.014019626, 0.010555954, -0.034609232, -0.01742832, 0.024149492, 0.02739325, -0.00871416, 0.042801093, -0.008143754, -0.033949487, 0.0051508383, 0.0049927738, 0.028973894, -0.013586667, 0.033592124, 0.040766872, -0.022665063, 0.033537146, 0.023022424, 0.030485814, 0.021799143, 0.04601736, 0.023888344, 0.0027918986, -0.02809423 ]
Train a TensorFlow model with Keras You can also train 🤗 Transformers models in TensorFlow with the Keras API! Loading data for Keras When you want to train a 🤗 Transformers model with the Keras API, you need to convert your dataset to a format that Keras understands. If your dataset is small, you can just convert the whole thing to NumPy arrays and pass it to Keras. Let's try that first before we do anything more complicated. First, load a dataset. We'll use the CoLA dataset from the GLUE benchmark, since it's a simple binary text classification task, and just take the training split for now.
[ 0.011713639, -0.01401478, -0.019005205, 0.0059885113, -0.018118018, -0.00077152334, 0.013474151, 0.019739907, 0.006802921, 0.05201133, 0.011394806, -0.0017899688, 0.019906254, -0.031467408, -0.02097365, 0.02930489, 0.000065304404, -0.013384045, -0.056946307, -0.030413873, 0.0070420457, 0.0140217105, -0.090770304, -0.047464497, -0.03801041, -0.01915769, -0.013924675, -0.009412498, 0.08666707, 0.03576472, -0.019892393, 0.0031519393, -0.017050622, -0.034156695, -0.024730334, 0.01256617, 0.007444052, -0.026920576, -0.018700235, -0.0056904717, 0.024480812, -0.014361337, 0.04028383, -0.023954045, -0.034461666, 0.000020766367, -0.006657367, 0.012787967, -0.033574477, -0.05292624, 0.025104616, 0.02741962, 0.033962622, -0.011353219, -0.04729815, -0.020987514, -0.036873702, -0.010549206, -0.03606969, -0.012372098, 0.027461205, -0.010362065, -0.011685914, -0.049793363, 0.04083832, 0.0059885113, -0.027683003, -0.04452569, -0.033324957, 0.0069484753, -0.036402386, -0.0135296, -0.020668682, -0.008386688, -0.02162518, 0.020155776, -0.007721298, -0.018284366, -0.001418286, -0.0010015508, 0.004415141, 0.058720678, 0.036041968, -0.022124222, 0.008885731, -0.045939643, 0.013474151, 0.023011409, 0.03401807, -0.027793901, -0.017771462, 0.03928574, -0.037622266, -0.026989887, -0.020141914, 0.017147658, 0.0137791205, 0.05849888, 0.01685655, -0.003210854, 0.03831538, 0.08101125, -0.0041898787, 0.04180868, 0.026172012, 0.03618059, 0.009807574, -0.0042973114, -0.05159546, -0.018533887, -0.0051013245, -0.0018558147, 0.0029457377, -0.031023815, -0.046355512, 0.036651906, 0.0071737375, 0.0040616523, -0.031744655, -0.019739907, 0.0069935275, -0.01534556, -0.0051567736, -0.037677716, 0.031633757, -0.06531913, 0.041309636, 0.032659564, 0.0070524425, 0.00869859, 0.0033200195, -0.053813428, 0.017993258, 0.042030476, -0.016426818, -0.0049869604, -0.035570648, 0.016884275, 0.0024241689, -0.015983226, 0.03479436, 0.01165819, 0.010722484, 0.05611457, -0.015733704, -0.008081717, 0.044497967, -0.06609542, -0.006712816, 0.015262386, -0.057999842, 0.016205022, -0.0064736917, 0.0059677176, -0.022401469, -0.01038979, -0.010805659, -0.01752194, -0.01498514, 0.016482268, -0.006075151, -0.0046542655, -0.008684727, 0.019684458, 0.033269506, 0.027807763, -0.023981769, 0.006421708, 0.014957416, -0.03873125, 0.023815421, -0.00062466966, 0.010064025, 0.007582675, 0.045329705, 0.032659564, 0.0076103997, -0.014638583, 0.022429192, 0.041115567, -0.0006082082, -0.010258098, 0.030552497, 0.017327867, 0.0013680352, -0.0019875064, -0.013550393, 0.019074516, 0.03970161, 0.035237953, 0.049377494, 0.02826522, -0.021805389, 0.021001376, -0.0473536, -0.0140771605, -0.055421453, 0.031190163, -0.0039854096, -0.010937351, -0.033019986, 0.030192077, -0.06531913, -0.022082634, -0.040450174, 0.0066608326, 0.009239219, 0.03656873, -0.00015259354, 0.029748484, 0.054395642, 0.0012276794, -0.02392632, 0.012614688, -0.0023375293, -0.032188248, -0.01673179, 0.0067682653, -0.012580032, -0.013917743, 0.028417705, -0.013695947, 0.04438707, 0.03884215, 0.010001645, 0.007922301, 0.02888902, 0.03643011, 0.038925324, 0.015096039, -0.008968905, 0.07175124, 0.050486475, 0.057556245, 0.057057206, -0.029554412, 0.046438687, 0.039202567, 0.00011122326, 0.024411501, 0.0011808942, 0.016038675, -0.007631193, 0.06287937, -0.011422531, -0.014610859, 0.026296772, 0.009682813, -0.02477192, 0.012455272, -0.053175762, 0.036041968, 0.008067856, -0.029166268, -0.035487473, -0.026892852, 0.002691018, 0.04616144, -0.04277904, 0.0070108552, 0.043527603, 0.054700613, -0.013945469, -0.021056825, 0.03177238, 0.05032013, -0.022650989, -0.0012675335, -0.014541547, -0.043000836, -0.01583074, -0.0709195, -0.058554333, -0.009703606, -0.014874242, -0.012663206, -0.019074516, -0.024217429, 0.009710537, -0.0032091213, -0.04366623, -0.0056800754, -0.030108904, 0.047020905, 0.034045797, 0.026476983, -0.0051914295, 0.010528413, -0.018838858, 0.028417705, -0.02392632, -0.040339276, 0.0113185635, -0.037234124, 0.020460747, -0.013044419, 0.011713639, -0.054090675, -0.01444451, 0.005551849, -0.06681626, 0.043028563, -0.032604117, 0.006487554, -0.02138952, 0.025381861, 0.013702878, 0.0093986355, 0.016232748, 0.058997925, -0.0061132717, -0.0014564074, 0.029498963, 0.008102511, -0.028473154, 0.041198738, 0.07524453, -0.0337131, -0.0034725047, -0.019726045, -0.049654737, -0.004858734, 0.0026546293, -0.013855363, -0.037927236, 0.044997007, -0.036679633, -0.063877456, -0.006511813, -0.05805529, 0.010563068, -0.031051539, -0.008379757, 0.02561752, -0.00016829692, 0.017009035, -0.029748484, -0.040450174, -0.011422531, 0.04366623, 0.03659646, -0.025173927, 0.018894307, 0.02012805, 0.013210767, -0.004657731, 0.029471237, -0.049876537, -0.017799186, 0.0062796194, 0.06603997, 0.028445428, -0.0027672607, 0.033685375, 0.0119770225, 0.024508536, -0.018395266, 0.03329723, 0.029471237, 0.020266674, 0.047381323, 0.017383317, 0.0387867, 0.0006697221, -0.067925245, -0.03207735, 0.003912633, -0.0029197459, 0.07086405, -0.028556326, 0.012413684, 0.03684598, -0.026352221, -0.0047097146, -0.025548209, -0.041060116, 0.04585647, 0.032853637, 0.01462472, -0.030912917, -0.055754147, 0.01716152, 0.0075064325, 0.0705868, 0.06199218, 0.03939664, -0.011193803, -0.0064910194, -0.021431107, 0.0037116294, 0.020654818, 0.015664393, -0.0010751942, -0.01232358, -0.042973112, -0.07225028, 0.03648556, 0.092821926, 0.011845331, 0.03831538, 0.040339276, 0.026172012, 0.02869495, 0.04211365, -0.012961245, -0.032548666, -0.031550582, 0.046410963, 0.013390977, 0.035903342, 0.0029786606, -0.02464716, -0.00066452374, -0.010985868, -0.012885002, 0.011152216, -0.039479814, 0.017771462, -0.010064025, 0.06337841, -0.009745193, -0.047686294, -0.020932065, -0.027696865, 0.011006662, -0.031023815, -0.008844144, -0.014846518, 0.04252952, 0.064376496, -0.0039784787, -0.056585886, -0.027391894, -0.0093016, -0.03293681, 0.040367, 0.03903622, -0.05811074, -0.017314006, -0.025950216, -0.017605115, -0.0012684, -0.010133337, -0.01069476, -0.009190701, 0.0032091213, 0.0006324672, 0.028528603, 0.021001376, 0.00097642536, 0.006234567, -0.019920116, 0.040145203, -0.05070827, 0.0012190156, 0.00040070695, 0.0089758355, -0.025825454, 0.028043421, -0.015927777, 0.02561752, -0.0018419523, 0.049460668, -0.042252272, -0.029193992, 0.027516654, 0.022997547, -0.01667634, 0.049377494, 0.030164354, -0.0020862753, 0.018201193, 0.03196645, -0.026352221, 0.007291567, -0.03928574, 0.015082177, -0.024563985, -0.020640956, 0.03728957, -0.027308721, 0.04477521, 0.015442596, -0.008324307, -0.03728957, -0.04815761, -0.048656654, -0.021999462, -0.029498963, 0.05056965, 0.0032767, -0.026296772, -0.011429462, -0.026366085, -0.009641225, 0.0060786163, 0.00429038, 0.012510721, 0.031217888, -0.006910354, 0.011228459, -0.0051082554, -0.06337841, 0.047880366, -0.03232687, 0.0050528063, -0.009599639, -0.029193992, 0.017632838, -0.035903342, -0.024758058, -0.020086465, -0.034572564, 0.0074301898, 0.008234203, -0.04000658, 0.020821167, -0.022151947, -0.026740367, 0.032410044, -0.021444969, -0.04313946, -0.008788695, -0.008587691, 0.033796273, 0.009162976, 0.03462801, -0.042889938, -0.061215892, -0.04494156, 0.04560695, -0.0026598277, -0.017106071, -0.028376117, -0.055005584, 0.025770005, 0.02259554, 0.015331698, -0.017799186, 0.00404779, -0.047824915, 0.023857009, -0.056724507, -0.023302518, -0.017133797, -0.015290111, -0.050652824, 0.054866962, -0.022845061, -0.006411311, -0.0061999112, -0.0047339736, 0.05134594, 0.055754147, -0.00858076, -0.034932982, -0.019102242, 0.040145203, -0.010944282, -0.004245328, -0.016690202, 0.015206937, -0.04266814, 0.08589078, 0.0066920226, -0.04197503, 0.0019025999, -0.025631383, 0.06653901, -0.06010691, -0.003477703, -0.039618436, 0.01214337, -0.0021711818, 0.021098413, -0.026906714, -0.021680629, -0.02464716, -0.04959929, 0.0404779, -0.033629928, -0.008026268, -0.031744655, 0.02380156, 0.049654737, -0.03643011, 0.05056965, 0.046993177, -0.01696745, -0.019129967, -0.007166806, -0.017632838, 0.010978937, -0.0056142295, 0.01208099, -0.0062449635, -0.066649914, 0.012649343, -0.027821625, -0.028376117, -0.039590713, 0.0138969505, 0.028279081, 0.012226543, 0.03559837, 0.02090434, -0.029887106, -0.051207315, -0.0052884654, -0.01038979, 0.03570927, -0.013016694, 0.037178673, -0.04452569, 0.008830282, -0.034572564, -0.012829553, -0.022262845, 0.06908967, 0.0010024172, -0.07302657, -0.031079264, 0.036208313, -0.028916746, -0.071307644, 0.0005159373, 0.008407482, -0.0202944, -0.010965075, 0.005461744, 0.004435934, -0.02869495, 0.0060820817, 0.037844066, -0.0159555, -0.0097244, 0.009176839, 0.019379487, 0.004837941, -0.013203835, 0.03606969, -0.02005874, 0.004973098, -0.02254009, -0.010764072, -0.023773836, -0.016939724, 0.015747566, -0.00014620389, 0.027835486, 0.016288197, -0.013869226, 0.04519108, 0.015567357, 0.013723671, -0.009939265, -0.02664333, -0.072416626, -0.040367, -0.0005917467, 0.024661021, -0.030275252, 0.004300777, 0.029803934, 0.024661021, 0.06204763, -0.026185874, -0.06981052, 0.031079264, -0.052759893, -0.02572842, 0.010604655, -0.0012250802, -0.008178754, 0.034156695, 0.00700739, -0.029831657, -0.008449068, -0.027073061, 0.039784785, 0.035931066, -0.02960986, -0.005472141, -0.004983495, -0.02023895, -0.0387867, 0.005115187, -0.011069043, 0.016787238, -0.008927317, 0.0053439145, -0.003739354, 0.018118018, 0.022290569, 0.00214519, -0.039424367, 0.0069034225, -0.026684918, -0.010292754, -0.033158608, 0.038703527, 0.014333612, -0.03487753, 0.0012415417, 0.01619116, -0.013252353, -0.032437768, 0.0405888, 0.053314384, 0.00034569096, -0.00996699, -0.010514551, 0.02005874, -0.042196825, -0.013439494, -0.036041968, -0.025534347, -0.00023089384, 0.015567357, 0.02410653, 0.04349988, 0.030164354, 0.031328786, 0.016329782, 0.0014174196, -0.008081717, -0.008442137, 0.034849808, 0.009717468, -0.025409587, 0.013571186, -0.0028175113, 0.026324498, -0.03817676, 0.032105073, 0.008525311, -0.006643505, -0.027627554, 0.021403383, 0.018131882, 0.05142911, 0.014999002, -0.022276707, -0.0025835852, -0.0143752, 0.0015803016, 0.030774293, -0.06432105, -0.037067775, 0.032576393, -0.048961625, -0.022068772, -0.0023098048, -0.023399552, -0.021833114, 0.01951811, -0.0067336094, 0.021860838, 0.019587422, 0.0063142753, 0.0075965375, -0.020460747, -0.043278083, 0.0022768818, 0.0087956255, -0.03787179, 0.015206937, 0.031134713, 0.002708346, 0.021763802, -0.0061409962, 0.0015889655, -0.022332156, 0.015484183, 0.026615605, 0.0054582786, 0.0038641146, -0.039784785, 0.032437768, -0.015900051, -0.04918342, -0.028778123, 0.012843416, 0.0322437, 0.00203949, 0.0075202947, 0.048240785, 0.0050909277, -0.00029977213, 0.03238232, 0.019892393, 0.046549585, -0.031384233, -0.011325494, 0.060938645, 0.014929691, 0.0048067505, 0.029360339, 0.0054478818, 0.0075410884, -0.02162518, 0.0014867311, -0.032188248, 0.03437849, 0.0076173306, 0.022165809, -0.01872796, 0.025783869, 0.0053543113, -0.023552038, 0.018866584, 0.021417245, 0.017494217, -0.017133797, -0.07075315, -0.020862753, -0.012212682, -0.003063567, -0.041780956, 0.007568813, 0.014971278, 0.040145203, 0.04887845, 0.0054409504, 0.007943095, 0.016939724, 0.015096039, -0.006754403, 0.052538097, -0.0128780715, 0.021250898, -0.0017414507, 0.056752235, -0.041614607, 0.0011895582, -0.030136628, -0.015789153, 0.019781495, 0.0113809435, -0.013127593, 0.0032818983, -0.015803015, -0.018811133, -0.010431376, -0.022387605, 0.037372746, -0.051401388, 0.046688206, 0.02820977, -0.021320209, -0.02682354, 0.040311553, 0.006508347, 0.014222714, 0.006296947, 0.050375577, 0.034406215, 0.09387546, 0.033629928, -0.010521482, 0.012115645, 0.047880366, -0.012836485, -0.030136628, -0.0069484753, 0.008989698, 0.0021971737, -0.0031658015, -0.051373664, 0.0045225737, 0.02084889, 0.020072602, -0.024328327, 0.021708352, 0.022928234, -0.05273217, -0.017009035, 0.07590993, -0.004581488, -0.006040495, 0.015872328, -0.011505704, -0.06254667, -0.030469323, -0.034655735, 0.03418442, 0.028722674, -0.049516115, -0.02023895, -0.051262766, 0.018520026, 0.0037774753, -0.036402386, -0.044719763, 0.049710188, 0.021042963, 0.06637266, -0.017341731, -0.025506621, -0.027987972, 0.08356191, 0.045468327, 0.024148118, 0.08905138, 0.07263842, -0.0012450073, 0.021112274, 0.02090434, 0.019781495, -0.041198738, -0.014888104, -0.001682536, -0.01890817, -0.0146801695, -0.066483565, -0.025825454, 0.06010691, -0.013460288, 0.0040997737, -0.01739718, -0.005215688, -0.053757977, -0.00025320347, -0.006754403, -0.005849888, -0.012690931, -0.0014737352, 0.024619436, -0.05370253, 0.22512366, 0.055421453, 0.052704442, 0.003746285, 0.037234124, 0.04283449, 0.020044878, -0.00018215922, -0.020072602, -0.0370955, 0.0005913135, -0.014208852, -0.034655735, -0.00076415896, -0.035820168, 0.020557784, -0.041642334, -0.0033460113, -0.0032160524, -0.028722674, -0.050403304, 0.029748484, 0.0027187425, 0.053064864, -0.009370911, -0.00749257, 0.017618977, -0.049460668, 0.0037150949, -0.025063029, -0.002585318, -0.03462801, 0.016426818, -0.01829823, -0.0038190621, 0.013245422, 0.0015976294, -0.061936732, -0.008289652, -0.031883277, 0.011970092, -0.024896681, 0.028722674, 0.0064840885, -0.012427547, 0.026241323, -0.007000459, 0.031855553, 0.015151488, -0.06493099, 0.029582137, -0.056946307, 0.007499501, -0.029083094, -0.079957716, 0.0084352065, -0.067925245, -0.040394727, 0.024272878, 0.04494156, -0.024563985, 0.018714098, -0.026629468, 0.036236037, -0.035736997, -0.019629009, -0.021098413, 0.022138085, 0.029998004, -0.007485639, 0.02392632, -0.02000329, -0.006508347, -0.0067648, 0.000918377, 0.022928234, -0.012801829, 0.017688287, 0.011145284, -0.05921972, 0.019836944, -0.013508806, 0.0022994082, -0.0439712, 0.03853718, 0.0051082554, -0.03873125, -0.017993258, 0.011360151, 0.009710537, 0.021112274, 0.0372064, 0.026754228, 0.01854775, 0.03099609 ]
[~TFPreTrainedModel.prepare_tf_dataset]: This is the method we recommend in most cases. Because it is a method on your model, it can inspect the model to automatically figure out which columns are usable as model inputs, and discard the others to make a simpler, more performant dataset. [~datasets.Dataset.to_tf_dataset]: This method is more low-level, and is useful when you want to exactly control how your dataset is created, by specifying exactly which columns and label_cols to include.
[ 0.002216305, -0.013552017, -0.017479734, 0.03846934, -0.011985108, -0.0009993394, 0.006964037, 0.003917271, -0.014875184, 0.024986966, -0.013726117, -0.009868041, 0.011483697, -0.004188868, -0.04089283, 0.0052091, -0.019401807, -0.051116034, -0.04153352, -0.0071172463, -0.002648075, 0.01635156, -0.093039535, -0.03211814, -0.0188029, 0.014318061, -0.01757723, 0.01816221, 0.07498875, 0.044987682, 0.006030856, 0.030836757, -0.008412557, -0.020711048, -0.0208364, -0.0039486093, -0.00020239233, -0.011511554, -0.025432665, -0.0127929365, 0.017131532, 0.0004905294, 0.033009537, -0.009457163, -0.049082536, -0.0010489582, -0.021588515, 0.01975001, -0.015181601, -0.038107213, 0.009930717, 0.016588338, 0.025000894, -0.0043594874, -0.06011357, -0.01728474, -0.029833935, 0.008941824, -0.042842757, -0.0038128104, -0.00047442503, 0.04593479, -0.019429663, -0.055517305, 0.009478055, 0.016462984, -0.01664405, -0.019276455, -0.035711583, -0.015822293, -0.050391775, -0.0014720234, -0.028970394, -0.025697298, -0.024485555, 0.0039729835, -0.0135938, -0.025627658, -0.0062467414, 0.0051290137, 0.0053448984, 0.038246494, 0.04000143, 0.007618657, 0.0022894272, -0.05186815, 0.011699582, -0.027396522, 0.05217457, -0.020293204, -0.032591693, 0.027299026, -0.037717227, -0.00598559, 0.0062154033, 0.040419273, -0.0082732765, 0.046324775, -0.005059373, -0.0037849543, 0.042202067, 0.0806157, -0.008739867, 0.04030785, 0.034095928, 0.046185497, 0.024778044, -0.01656048, -0.026142996, 0.013266491, -0.009519839, -0.0047808117, 0.047188316, -0.033037394, -0.02351059, 0.050753903, 0.00046963728, 0.0038128104, -0.030753188, -0.020808544, -0.005271776, -0.008517018, 0.015042321, -0.06323346, 0.013315239, -0.07053177, 0.039026465, 0.024290562, 0.012904361, -0.010773365, 0.027814366, -0.020418558, 0.027299026, 0.009088068, -0.0040530697, 0.009498947, -0.02799543, 0.014276276, 0.0041784225, -0.01807864, 0.03638013, 0.019123247, 0.011323525, 0.06640906, 0.011567266, -0.0010855193, 0.041143533, -0.05688226, -0.011386201, 0.018329347, -0.07760723, 0.039388593, 0.005358827, 0.015042321, -0.033510946, -0.006918771, 0.0052125817, -0.017465806, -0.017103676, -0.009902861, -0.01605907, -0.02697868, -0.0031164067, 0.033037394, 0.0552666, 0.023385238, -0.025711225, -0.0060656765, -0.0020039016, -0.04309346, 0.024429843, -0.005936842, 0.01968037, -0.006772526, 0.025446592, 0.030781046, 0.03153316, 0.007298311, 0.02342702, 0.03991786, -0.009324846, -0.006870023, 0.017995073, 0.015738724, -0.002818694, -0.01773044, -0.011978144, 0.0039903936, 0.023566302, -0.0046276026, 0.037661515, 0.034040213, -0.03392879, 0.015390523, -0.040447127, -0.0052613304, -0.04100425, 0.013837542, 0.000093144, 0.004996697, -0.032758832, 0.04557266, -0.053205244, -0.013670405, -0.04685404, 0.01612871, 0.0407814, 0.04181208, 0.0055155177, 0.03298168, 0.039695013, -0.0016365488, -0.026658336, 0.016031213, -0.0029266367, -0.035070892, 0.0042097606, 0.02880326, 0.0003183871, -0.015139817, 0.0074027716, 0.03016821, 0.039973576, 0.024053784, 0.0067760083, 0.025181958, 0.011483697, 0.042787045, 0.028315775, 0.019123247, 0.004700725, 0.04434699, 0.035962287, 0.08874969, 0.026129069, 0.01114246, 0.028399345, 0.039165746, 0.014220565, 0.0037675442, -0.009359666, 0.015696941, -0.0049200924, 0.037717227, -0.0046136747, -0.009610372, 0.0070615336, -0.011657799, -0.021741724, 0.027494019, -0.067300454, 0.026867256, 0.026170852, -0.012549195, -0.060503557, -0.059445024, -0.007298311, 0.034374487, -0.028608264, -0.021296026, 0.05721653, 0.05961216, 0.0020021608, -0.0112121, 0.025126247, 0.047216173, -0.0075141964, 0.017451877, -0.030446772, -0.023733439, -0.021713868, -0.0711446, -0.055378024, -0.00044286923, -0.019220743, -0.020348918, -0.015125889, -0.03872005, -0.0026759314, 0.0037083498, -0.031951003, -0.025850506, -0.03537731, 0.05760652, 0.030140353, 0.00707198, -0.01157423, 0.032201707, -0.0054667694, 0.032229565, -0.026421558, -0.01851041, 0.01081515, -0.04493197, 0.008948788, -0.007256527, 0.00040891956, -0.06284347, -0.019889291, 0.015641227, -0.034179494, 0.036575124, 0.002588881, 0.027675085, -0.034764476, 0.031867433, 0.0031111836, -0.0067551164, 0.025335168, 0.06106068, -0.012152245, -0.005250884, 0.034513768, 0.020139996, -0.034597337, 0.04384558, 0.06306632, 0.00036626484, -0.030864613, -0.023524517, -0.070141785, 0.011205136, -0.010313739, -0.026519055, 0.0009505911, 0.05223028, -0.03958359, -0.03936074, -0.010661941, -0.048218995, -0.007263491, -0.024290562, -0.013085426, 0.04239706, 0.012319382, 0.00047050777, -0.05365094, -0.030196065, -0.024012001, 0.051673155, 0.027034393, -0.023608087, -0.0019499304, 0.019373951, 0.027312955, 0.020502126, 0.034903754, -0.02459698, -0.019847507, -0.015655156, 0.05794079, 0.02206207, 0.008398629, 0.044959825, 0.0051429416, 0.027675085, -0.026282277, 0.049388953, 0.042592052, 0.027494019, 0.04036356, 0.008858255, 0.006964037, -0.017591158, -0.053929504, -0.056687262, 0.004972323, 0.008384701, 0.06735617, -0.011379237, 0.02958323, 0.045544803, -0.019527161, -0.00018519987, -0.03298168, -0.044235565, 0.05128317, 0.03261955, 0.024569124, -0.023482734, -0.04852541, -0.00933181, 0.025599802, 0.033538803, 0.07849863, 0.04665905, 0.004463948, 0.011532445, 0.020167852, -0.024513412, 0.028886827, 0.015641227, 0.009429307, 0.0026602622, -0.023413094, -0.0536788, 0.039026465, 0.073317386, 0.025404807, 0.023315597, 0.034402344, 0.02640763, 0.03615728, 0.05273169, 0.0021327364, -0.018287562, -0.034597337, 0.062174924, 0.005223028, 0.024750188, -0.011253884, -0.028663978, -0.019360024, 0.017312597, -0.027828293, 0.028970394, -0.013468448, 0.017814007, 0.00041958326, 0.059055038, -0.027549732, -0.05000179, -0.017061891, -0.014276276, 0.037522234, -0.03253598, -0.0030781045, 0.0036944218, 0.016727617, 0.025627658, -0.011831899, -0.03936074, -0.033093106, -0.0011481957, -0.03724367, 0.05069819, 0.027062248, -0.050085355, -0.0036317455, -0.04927753, -0.032508127, 0.0009714832, -0.0047355453, -0.038246494, 0.0016469948, -0.021532804, -0.013976823, 0.013510233, 0.018649692, -0.014457341, 0.0049131284, -0.0096382275, 0.04476483, -0.044514127, -0.018496484, -0.024694476, 0.0045962646, 0.0033914861, 0.035767294, 0.009951609, -0.026156925, -0.017925432, 0.029165389, -0.02119853, -0.05055891, 0.015376594, 0.02727117, -0.015933717, 0.006156209, 0.019206814, -0.00777883, 0.008161852, 0.010829078, 0.010237135, -0.0074097356, -0.034513768, -0.00069640373, -0.039611444, -0.03543302, 0.028301848, -0.019736081, 0.04624121, 0.020502126, -0.031143175, -0.021296026, -0.072036006, -0.010097854, 0.0041784225, -0.03777294, 0.02828792, -0.012361166, -0.030920325, 0.005574712, -0.025474448, 0.010522661, -0.0060273744, -0.0037919183, -0.012256706, 0.0339845, 0.0060169282, 0.031393882, -0.008767723, -0.06496054, 0.061952077, -0.031561017, 0.0045161783, -0.032062426, -0.041839935, 0.010536589, -0.05245313, -0.024680547, 0.009993394, -0.035628013, -0.006671548, 0.005633906, -0.013329168, 0.005992554, -0.016546553, -0.015794437, 0.008266312, -0.028092926, -0.03958359, -0.0035029107, 0.037856508, 0.02090604, 0.009979465, 0.03479233, -0.020251421, -0.052620266, -0.012737224, 0.03473662, -0.010696761, -0.005849791, -0.03688154, -0.027410451, 0.033148818, 0.003917271, -0.011156388, -0.06284347, -0.000062621926, -0.033789508, 0.0012169655, -0.054096643, -0.021713868, -0.0140812835, -0.00021664685, -0.042202067, 0.039249316, -0.0039903936, -0.004436092, -0.0044151996, -0.024680547, 0.033037394, 0.070643194, -0.03175601, -0.0057418486, -0.0054563233, 0.0051742797, 0.018273633, 0.0200425, 0.00026876832, 0.011908504, -0.050753903, 0.054514483, -0.024917325, -0.03248027, -0.015070177, -0.010209279, 0.06289919, -0.051478162, -0.021574588, -0.015139817, 0.015488019, 0.009394486, 0.041839935, -0.030223923, -0.021491019, -0.029694656, -0.058497913, 0.038664334, -0.03796793, -0.000101196165, 0.0037988822, -0.014136996, 0.048859686, -0.045154817, 0.03950002, 0.058665052, -0.029165389, -0.009408414, -0.04521053, 0.010348559, -0.00030881152, -0.036073714, -0.008621478, -0.0028273992, -0.06991894, 0.023956288, -0.031310312, -0.052564554, -0.03863648, 0.017047964, 0.016518697, -0.02133781, 0.015501947, 0.011790115, -0.012855613, -0.060002144, 0.011274776, 0.009317882, 0.016616194, -0.0014694119, 0.020265348, -0.008029535, 0.009157709, -0.03702082, -0.0032992128, 0.012305454, 0.06507196, -0.0078484705, -0.044904113, 0.020933896, 0.026491199, -0.02075283, -0.05548945, 0.02994536, -0.008955752, -0.024360202, -0.02640763, 0.007932038, 0.02032106, -0.05000179, 0.0019795275, 0.027772581, -0.004836524, -0.013440592, -0.007688297, 0.015139817, 0.0064138784, 0.013510233, 0.030948183, -0.058609337, 0.024053784, -0.05604657, 0.0018437288, -0.021853149, -0.015070177, 0.03161673, 0.002611514, 0.03515446, 0.00225983, -0.023468805, 0.06061498, -0.0075350883, -0.007152066, 0.006716814, -0.038747903, -0.057105105, -0.024179138, 0.022605265, -0.0012030374, -0.022911683, -0.02488947, 0.017312597, 0.0058428273, 0.03841363, -0.00867719, -0.090755336, 0.047327597, -0.012486519, -0.027911862, 0.016212279, -0.013189887, -0.017981144, 0.04030785, -0.01663012, -0.024012001, -0.014130032, -0.024499483, 0.01338488, 0.037633657, -0.029694656, 0.0038789688, -0.036519412, -0.011873684, -0.035767294, -0.032925967, 0.013788794, 0.028260063, 0.0007077203, -0.0026341472, -0.030558195, 0.04189565, 0.018900398, -0.0011751812, -0.033873077, -0.014930896, 0.026031572, 0.004310739, -0.016309775, 0.044040572, 0.033455234, -0.039221458, -0.0090462845, 0.011992073, -0.0017549375, -0.033789508, 0.035795152, 0.058052216, -0.016476912, 0.007681333, -0.026588695, 0.02227099, -0.035210174, -0.029638942, -0.029248957, -0.016407272, 0.013043642, 0.02697868, 0.03632442, 0.028329704, 0.018928254, 0.011755295, -0.019791795, 0.003746652, 0.004056552, 0.0027455718, 0.0065566413, -0.00491661, 0.002426967, -0.024346275, 0.029750368, 0.007249563, -0.01995893, 0.036853686, 0.0027682048, -0.022438128, -0.035238028, 0.030474627, 0.017632943, 0.031951003, 0.014157888, -0.019722154, 0.003356666, -0.0067794905, -0.020627478, 0.022744546, -0.05019678, -0.071088895, 0.032870255, -0.04253634, 0.005769705, -0.010606228, -0.04788472, 0.0034994287, 0.011943324, -0.007632585, 0.019638585, 0.02575301, 0.02199243, -0.0041958326, -0.03913789, -0.022828115, 0.0007542923, 0.00037105262, -0.020418558, 0.03192315, 0.028232208, 0.026268348, 0.044179853, -0.0056861364, -0.02908182, -0.0074027716, 0.0006981447, 0.028970394, -0.024457699, -0.001117728, -0.02156066, 0.007674369, -0.04303775, -0.007284383, -0.0018176137, 0.0043768976, 0.029638942, 0.0035011698, 0.010125711, 0.0584422, 0.0025592837, 0.00046049696, -0.0031077017, 0.028232208, 0.0063825403, -0.041839935, -0.038441487, 0.024193065, 0.025794795, 0.030279635, 0.03891504, 0.0055120355, 0.028775401, -0.010912647, 0.0024757152, -0.028496841, 0.037940074, 0.014889112, 0.023399165, 0.0060204105, 0.0075908005, -0.027661156, -0.0037083498, 0.0432606, 0.020195708, 0.00043459947, 0.008976644, -0.061506376, -0.005003661, -0.005365791, 0.021142818, -0.064069144, -0.0053274888, 0.023106676, 0.029109675, 0.038385775, 0.028232208, 0.019847507, 0.026449414, 0.04615764, -0.0036700477, 0.036129426, -0.016017286, 0.026588695, 0.0028517733, 0.047466878, -0.05317739, -0.008565766, -0.02566944, 0.0068108286, -0.029889649, 0.013976823, -0.0030276151, -0.019346096, -0.014526982, -0.022034215, -0.025864435, -0.043706298, 0.033594515, -0.041282814, 0.030363202, 0.011434949, -0.03710439, -0.024067713, 0.024555195, 0.010334631, 0.032006714, -0.007138138, 0.07003036, 0.03727153, 0.069640376, 0.023413094, -0.0024496, 0.0066227997, 0.015056249, -0.009993394, -0.037717227, -0.035906576, 0.00817578, 0.008022571, -0.02835756, -0.04855327, 0.012751153, 0.035349455, 0.009422342, -0.039305028, 0.045684084, 0.008579694, 0.000040614483, 0.011100676, 0.10161923, 0.021435307, -0.007145102, -0.00088704424, 0.016769402, -0.09086676, -0.01714546, -0.020724975, 0.044319134, 0.011817971, -0.08640978, 0.0008913968, -0.051394597, 0.016546553, -0.0021083623, -0.021644227, -0.0312546, 0.038831472, 0.011762259, 0.06908325, -0.005407575, -0.03103175, -0.039806437, 0.07961287, 0.037438665, 0.010104818, 0.07125603, 0.042090643, -0.019401807, 0.047773294, 0.009721796, 0.02502875, -0.036797974, -0.0036038894, -0.016671905, -0.032758832, -0.025363024, -0.074821614, -0.0464362, 0.039305028, 0.004443056, -0.019513233, -0.019986788, -0.0062293313, -0.0468819, -0.020014644, 0.01649084, -0.018106498, -0.014206636, 0.0005562525, 0.035238028, -0.052898828, 0.22775188, 0.06635335, 0.039555732, 0.030140353, 0.028636122, 0.0376058, 0.023120604, -0.025641585, -0.0049409843, -0.035043035, -0.033510946, -0.019373951, -0.020919967, 0.024569124, -0.051673155, 0.041979216, -0.050586767, -0.004645013, 0.002625442, -0.016964395, -0.038302206, 0.045962647, 0.017103676, 0.090922475, 0.021755653, -0.011755295, 0.04005714, -0.03551659, -0.026324062, -0.027661156, -0.009958574, -0.060893543, 0.031449594, 0.0070406417, -0.021407451, 0.0098053645, 0.02380308, -0.07147888, 0.010306776, -0.025544088, 0.013273455, -0.0107455095, 0.05518303, -0.002599327, -0.01171351, -0.0034263064, -0.00013318722, 0.057160817, 0.034764476, -0.061896365, 0.023190245, -0.031310312, 0.017953288, -0.06184065, -0.06328917, -0.0066332454, -0.054124497, -0.039527874, 0.019192887, 0.022800257, -0.02720153, 0.042090643, -0.018538266, 0.018468628, -0.025432665, 0.022772402, -0.0014833399, 0.009784472, -0.023329524, -0.0025836579, 0.0109265745, -0.042787045, 0.0018089087, -0.000045701494, 0.0022511252, 0.045461237, 0.013440592, 0.04189565, 0.029248957, -0.06334488, 0.041923504, -0.030976038, 0.008600586, -0.05064248, 0.009464127, 0.036129426, -0.029276812, -0.017814007, -0.006890915, -0.0055921217, 0.04390129, 0.021727797, -0.005477215, 0.009721796, 0.027076177 ]
Before you can use [~TFPreTrainedModel.prepare_tf_dataset], you will need to add the tokenizer outputs to your dataset as columns, as shown in the following code sample: def tokenize_dataset(data): # Keys of the returned dictionary will be added to the dataset as columns return tokenizer(data["text"]) dataset = dataset.map(tokenize_dataset)
[ 0.02843891, 0.0020727534, 0.031814013, 0.03695004, -0.010895712, -0.0136985155, 0.042614345, 0.0060348306, -0.023552349, 0.0017939406, -0.015466776, -0.027734542, -0.023024071, -0.020074526, -0.0121503705, -0.02339093, -0.012253091, -0.060634457, -0.033633634, 0.016083099, -0.0023203832, 0.01090305, -0.080650285, -0.033222754, -0.020001153, 0.036627203, -0.00025359128, 0.03809464, 0.077304535, 0.027514426, -0.0072931573, 0.026912777, 0.003767642, -0.024858367, -0.009347567, -0.011534047, -0.006353998, 0.008701895, -0.030023742, -0.021982191, 0.011607419, 0.014234129, 0.058462653, -0.0069960016, -0.028409561, -0.0004230343, -0.012612613, 0.013859933, -0.011790848, -0.018196207, -0.013236273, 0.013705852, 0.00019993816, 0.03028788, -0.038358778, -0.011460676, -0.00009509674, 0.026545918, -0.023464302, -0.002256183, 0.0071280706, 0.04983413, -0.014901813, -0.052182026, -0.006625474, 0.008085573, -0.016449958, -0.03334015, -0.05943116, -0.041205604, -0.029466117, 0.018328276, -0.017976092, -0.062043197, -0.03536521, -0.0071830996, -0.0071023903, -0.004805853, 0.014916487, 0.037243526, 0.035893485, 0.041909974, 0.024887715, 0.05024501, -0.004967271, -0.052475512, 0.039972957, -0.022099586, 0.034044515, -0.029803626, -0.0054185074, 0.018196207, -0.04155779, 0.023141466, 0.024168672, 0.041117556, -0.02685408, 0.04088277, -0.0003409496, 0.007491261, 0.028453585, 0.0665629, -0.014072712, 0.047104698, 0.004600412, 0.04634163, 0.02513718, -0.018108161, -0.013397691, 0.020456059, -0.016435284, -0.019678317, 0.061925802, -0.025753502, -0.022892002, 0.041909974, -0.00081717846, 0.024550205, -0.033604287, -0.02570948, -0.021820774, 0.014615663, 0.038828358, -0.06844122, 0.00424089, -0.04522638, 0.030552018, 0.012862077, -0.011944929, -0.020588128, -0.0022158285, 0.010161995, 0.03480758, 0.016112449, 0.014718384, -0.0068272464, -0.014777081, -0.02443281, 0.044169825, -0.026017642, 0.007454575, 0.01696356, 0.0021699711, 0.059078977, 0.0030944557, 0.008371723, 0.03739027, -0.05238747, -0.0052460837, 0.01618582, -0.06996735, 0.065036766, 0.025401318, -0.015892332, -0.042379554, -0.02305342, -0.031285737, -0.0047875103, -0.03416191, -0.02386051, -0.011827535, -0.023478977, -0.037654407, 0.040442538, 0.029656883, 0.017110305, -0.013815911, 0.014872464, 0.016787468, -0.030552018, -0.00063191465, -0.007527947, -0.0010418796, -0.014865127, 0.005389159, 0.039092496, 0.03527716, -0.034514096, 0.0103527615, 0.026692662, -0.007498598, -0.020793568, 0.019590272, -0.005774361, -0.023332233, -0.033868425, -0.016670074, -0.023361582, 0.0041124895, -0.004930585, 0.034778234, 0.029290024, -0.027543774, -0.018460346, -0.0070657046, 0.012862077, -0.03785985, -0.013522423, 0.006177906, -0.023273535, -0.040559933, 0.045343775, -0.020103874, 0.0024964756, -0.022334376, -0.0070950533, 0.046253584, -0.013463725, -0.02146859, 0.008136933, 0.042819783, 0.0064016897, -0.012297114, 0.0027771227, -0.011651442, -0.0076306676, 0.009530997, 0.038710963, -0.032899916, -0.017785326, -0.018196207, 0.022627864, 0.012612613, 0.014975185, 0.016655399, 0.034249958, 0.00007279858, -0.0111158285, 0.044492662, 0.029510139, -0.0028706717, 0.022671888, 0.01948755, 0.04845474, 0.018768508, 0.056349546, 0.03190206, 0.017961416, -0.0052130665, -0.00952366, -0.030874854, 0.00308345, 0.034279305, -0.018504368, 0.029069908, -0.0002570306, 0.026692662, 0.0021919827, -0.000525067, 0.02362572, -0.07325441, 0.03920989, 0.017873371, 0.011453338, -0.0446981, -0.05687782, 0.0058037094, 0.04522638, -0.008980708, -0.028820444, 0.0206615, 0.04317197, 0.031608574, 0.01756521, 0.03419126, 0.046957955, 0.009164138, 0.023919208, -0.04983413, -0.02342028, -0.043113273, -0.063393235, -0.030170485, 0.015980378, -0.001915004, -0.025195876, -0.033193402, -0.052622255, -0.02651657, -0.019106017, -0.014828442, -0.012201731, -0.04684056, 0.0058403956, 0.04179258, 0.003375103, -0.03231294, 0.040237095, 0.026237756, 0.048484087, -0.0067392, -0.006291632, 0.004772836, -0.019839736, 0.0084230825, -0.010514179, -0.0044426625, -0.01995713, -0.012304451, 0.013573783, -0.02032399, 0.025562735, -0.0019975472, 0.00036800545, -0.03287057, 0.03122704, 0.004644435, -0.02167403, 0.006552102, 0.040237095, -0.020632152, -0.021380544, 0.005271764, 0.012818054, -0.021409892, 0.05003957, 0.042614345, 0.027910633, -0.050127614, -0.04176323, -0.06714987, -0.019267436, -0.0015362221, -0.042761087, 0.00726014, 0.038828358, -0.045343775, -0.057259355, -0.0075206095, -0.020133223, -0.03671525, -0.027485076, -0.026795382, 0.04631228, 0.023581697, 0.010007914, -0.027250288, -0.0056606345, -0.0025661788, 0.047574278, 0.017374443, -0.015995054, 0.025122505, 0.02193817, -0.00035768753, 0.007843446, 0.03328145, -0.018269578, -0.013918631, 0.020558778, 0.016596701, -0.006519085, 0.034044515, 0.032929264, 0.0079094805, 0.00024212695, -0.0710826, 0.047574278, 0.059607252, 0.018254904, 0.06034097, 0.0343967, 0.00021702003, -0.02099901, -0.025577411, -0.043201316, 0.01595103, 0.004145507, 0.033780377, -0.018592415, 0.043201316, 0.011592745, -0.0046517723, 0.011548722, -0.009604369, -0.039650124, 0.061925802, 0.028541632, 0.04681121, -0.04273174, -0.016039075, -0.03295861, 0.010690272, -0.008136933, 0.04631228, 0.054911457, 0.00049709395, -0.0015068734, 0.0047654985, -0.03671525, 0.030038416, 0.038241383, -0.025357295, 0.0028468259, -0.0258122, -0.054207087, 0.015892332, 0.044081777, 0.05021566, 0.0021039364, 0.042643692, -0.014131409, 0.037801154, 0.05696587, 0.022055564, -0.023170816, -0.029055234, 0.056114756, 0.010492167, 0.022525143, -0.039650124, 0.000643379, -0.031696618, 0.01662605, -0.005407502, 0.031285737, -0.030786809, 0.00047599958, -0.023743115, 0.03486628, -0.030552018, -0.028160097, -0.015290684, -0.0042922506, 0.07395878, -0.072432645, 0.0011106656, -0.01038211, 0.007348186, -0.021453915, 0.0062549463, -0.044081777, -0.018900577, 0.028145423, -0.044375267, 0.03166727, 0.022437098, -0.035511952, 0.0229507, -0.050186314, 0.017491838, -0.002865169, 0.0013445383, 0.010455482, 0.007267477, 0.008114921, -0.01639126, 0.020969661, 0.051272217, -0.032400988, 0.022158284, 0.019399505, 0.031080296, -0.04290783, -0.041146908, -0.017521186, -0.015041219, 0.0054368507, 0.05159505, 0.019061994, -0.012656636, 0.02914328, 0.02375779, 0.00728582, -0.047368836, 0.03577609, 0.03809464, 0.00039116343, 0.02133652, 0.014351524, 0.0043509477, 0.034484748, 0.031549875, 0.021013685, -0.028497608, -0.04220346, -0.007329843, -0.045607913, -0.02258384, 0.0026835736, 0.014615663, 0.034514096, 0.013280297, -0.02708887, -0.024814343, -0.048043855, 0.0027019167, -0.00043266435, -0.029319372, 0.044874195, 0.0026872423, 0.0036832646, 0.005352473, -0.030463973, 0.009963891, 0.009369579, -0.03125639, -0.014410222, 0.04293718, 0.0059467847, 0.045079634, -0.013338993, -0.04951129, 0.046928603, -0.015114591, 0.035688046, -0.046282932, -0.0053561414, 0.0015279677, -0.039356634, -0.0046334295, 0.01675812, -0.044081777, 0.006416364, -0.0025588416, 0.017169002, -0.008767931, -0.0009001803, -0.026237756, 0.028717723, -0.015965704, -0.032929264, 0.006174237, 0.05185919, 0.004009769, 0.003723619, 0.01428549, 0.0019663642, -0.017814673, -0.004427988, 0.039620772, -0.040266447, -0.021087056, -0.035453256, -0.04868953, 0.028820444, 0.028350864, -0.0049856137, -0.053355973, 0.010059274, -0.032489035, 0.015701566, -0.04243825, -0.01763858, 0.009538334, -0.0019847073, -0.033545587, 0.042643692, -0.0064126956, -0.018064138, 0.023537675, -0.031960756, 0.022275679, 0.08558087, -0.037801154, -0.005469868, 0.006133883, -0.01988376, 0.022833304, 0.019150041, -0.0023570692, -0.007828771, -0.03395647, 0.019634295, -0.0063063065, -0.023126792, -0.047339488, -0.007938829, 0.05646694, -0.05711261, -0.028468259, -0.019208739, 0.010587551, 0.021967517, 0.07548491, -0.012546578, -0.012399835, -0.04707535, -0.056613684, 0.021894146, -0.02029464, -0.01410206, 0.021644682, 0.0059944764, 0.048366692, -0.034572795, 0.020925637, 0.032929264, -0.030199833, -0.020353338, -0.04308392, 0.00033109027, -0.013412366, -0.02386051, -0.007704039, -0.023229513, -0.076482765, -0.011108491, -0.059812695, -0.05755284, -0.02086694, 0.013294971, 0.040325142, -0.03762506, 0.051448308, -0.0065447646, -0.011079142, -0.07701104, 0.015774937, -0.015217312, 0.042291507, -0.0044976915, -0.0043546166, 0.014637674, 0.0076746903, -0.06844122, -0.012649299, 0.0063136434, 0.063275844, -0.038887054, -0.036275018, 0.015261335, 0.00439864, -0.03768376, -0.055175595, 0.05347337, -0.042056717, -0.016890189, 0.003213685, 0.030786809, 0.015907006, -0.051213518, -0.0045417147, 0.03648046, 0.016449958, -0.013272959, 0.0039070486, 0.029495465, 0.0010363767, 0.018695135, 0.027602471, -0.028688375, 0.016670074, -0.023332233, -0.009435614, -0.01756521, -0.021879472, 0.067795545, 0.0069299666, 0.02890849, -0.0019847073, 0.010844353, 0.037801154, -0.022099586, -0.014417559, 0.008745919, -0.01790272, -0.020412035, 0.010161995, 0.031755317, -0.005943116, -0.013918631, -0.04821995, -0.0098391585, -0.022862654, 0.030170485, -0.0076380046, -0.09227238, 0.05326793, -0.0010262881, -0.025371969, -0.010418796, -0.046664465, -0.02258384, 0.058697443, -0.008709233, -0.05068524, -0.012913438, -0.0038153338, -0.04619489, 0.0017205687, -0.008980708, -0.02052943, -0.024946412, -0.019340808, -0.00038657768, -0.044962242, 0.046488374, 0.027631821, -0.006750206, -0.023361582, -0.03049332, 0.03536521, 0.009501648, 0.0043546166, -0.037272874, -0.029128605, 0.019017972, 0.0036043897, 0.017066281, 0.02383116, 0.055410385, -0.026193734, -0.016361913, 0.01615647, -0.010396784, -0.031637922, 0.023126792, 0.034602143, -0.013221599, 0.031373784, -0.016200494, 0.0104848305, -0.03832943, -0.03557065, -0.027118219, -0.027074195, 0.0016316054, 0.026443198, 0.024784995, 0.044433963, 0.009905193, 0.0065227533, -0.016743446, -0.014534954, 0.011020444, 0.020617476, 0.013779225, -0.0033604286, 0.009751112, -0.04452201, 0.022466445, 0.01342704, -0.014446908, 0.010602226, 0.0089440225, -0.03856422, -0.00881929, 0.061573617, 0.03557065, 0.058169164, 0.028629677, -0.038300082, 0.01066826, -0.0044059767, -0.025327947, -0.029510139, -0.06562374, -0.06527156, 0.029539488, -0.019737015, 0.012084336, -0.056789774, -0.032254245, 0.00621826, 0.01964897, 0.006812572, 0.011952267, 0.025283923, 0.012942786, -0.002026896, -0.024344765, -0.016846165, 0.007814097, -0.028497608, -0.022686562, -0.0073775346, 0.023596372, 0.021057708, 0.019898433, -0.0070546987, -0.026296454, 0.02339093, 0.010932399, 0.037507664, -0.018827204, 0.007924154, -0.042819783, 0.016875515, -0.018342951, 0.010646248, 0.007924154, 0.0074875923, 0.023743115, 0.018739158, 0.013331656, 0.029260674, 0.008100247, -0.017829347, 0.027954657, 0.03832943, 0.032489035, -0.028292168, -0.016259192, 0.017359769, 0.059842043, 0.045343775, -0.009721763, -0.013471063, 0.013742538, -0.01394798, 0.030009067, -0.017976092, 0.04064798, 0.017169002, 0.0041675186, -0.018768508, 0.0072124484, -0.059548553, -0.008063561, 0.0356, 0.03624567, 0.02274526, -0.008283677, -0.03583479, -0.04155779, -0.0054992167, 0.009773124, -0.087928765, 0.013749876, 0.05373751, 0.02591492, -0.005103009, 0.06321715, 0.025415992, 0.040442538, 0.023669744, 0.015877659, 0.031579223, -0.011886232, 0.0075646327, 0.003325577, -0.0010253709, -0.07607189, -0.019927781, -0.030816156, -0.012942786, -0.018269578, 0.047339488, -0.008026876, -0.0005920187, 0.010587551, -0.028952513, -0.05165375, -0.044404615, 0.014402885, -0.04522638, -0.01038211, 0.0113799665, -0.005062654, -0.05828656, 0.03642176, -0.00848178, 0.009765787, 0.012781368, 0.022730585, 0.04155779, 0.030962901, 0.038681615, -0.01948755, 0.017535862, -0.004626092, 0.009215498, -0.021424565, -0.06720857, 0.02298005, -0.0076893647, -0.023068095, -0.028923165, 0.020720197, 0.03463149, -0.00455272, -0.027910633, 0.043201316, 0.021160427, -0.0010877369, 0.00042326358, 0.058697443, 0.002125948, -0.0060274936, -0.0015490622, 0.027367683, -0.066621594, -0.007828771, -0.02170338, 0.0206615, 0.021835448, -0.091626704, -0.008995383, -0.053590763, 0.022261005, -0.00005064374, -0.01631789, -0.014578978, 0.029231327, 0.010778318, 0.035071723, 0.047104698, -0.061691012, -0.04038384, 0.08892663, 0.019443527, 0.006812572, 0.07777411, 0.04014905, 0.029744929, 0.029994393, 0.014036026, 0.018386973, -0.020954987, 0.022671888, 0.00013619641, -0.0081662815, -0.04657642, -0.047163393, -0.018533718, 0.03028788, 0.016934212, -0.03768376, -0.010763643, 0.020250617, -0.06245408, 0.002406595, 0.010587551, 0.0050699916, 0.001250072, 0.004075804, 0.0029733924, -0.048748225, 0.25568604, 0.06609332, 0.033839077, -0.004886562, 0.026707336, 0.033134706, -0.006577782, -0.015701566, -0.018108161, -0.009949217, -0.013588457, -0.015510799, 0.0076893647, 0.009787799, 0.004251896, 0.031373784, -0.011152514, 0.014828442, -0.0023350576, -0.012935448, -0.052211374, 0.045930747, 0.041000165, 0.053620115, 0.03953273, -0.048278645, 0.012238417, -0.019575598, -0.063862815, -0.052446164, 0.045050286, -0.049628686, 0.038388126, -0.018621763, 0.0005727586, 0.029686231, -0.017242374, -0.09573553, 0.018724484, -0.023332233, -0.015114591, -0.009589694, 0.021556636, -0.011409315, -0.013837922, 0.00026780707, -0.00986117, 0.043113273, 0.0007139993, -0.07759802, 0.0012262262, -0.025592085, -0.0018379637, -0.058932234, -0.0550582, -0.049012363, -0.022671888, -0.052651607, 0.02271591, 0.017697278, 0.012370486, 0.039796866, 0.01157807, 0.002978895, -0.03580544, 0.031608574, 0.003531018, 0.021556636, -0.055234294, 0.0067428686, -0.005414839, -0.015158614, 0.0031054616, 0.007997527, 0.024021927, 0.0063796784, 0.0016490313, 0.037713107, 0.02029464, -0.04179258, 0.030992249, -0.023302885, -0.015011871, -0.01033075, -0.023581697, 0.057171308, -0.06703248, 0.023229513, 0.0016233511, 0.016303215, 0.014755069, 0.0063246493, 0.010264715, -0.0040941467, 0.021791425 ]
def tokenize_dataset(data): # Keys of the returned dictionary will be added to the dataset as columns return tokenizer(data["text"]) dataset = dataset.map(tokenize_dataset) Remember that Hugging Face datasets are stored on disk by default, so this will not inflate your memory usage! Once the columns have been added, you can stream batches from the dataset and add padding to each batch, which greatly reduces the number of padding tokens compared to padding the entire dataset.
[ 0.01864668, 0.014303949, -0.027576983, 0.021559015, -0.01650753, -0.033865564, 0.011191874, 0.012899327, -0.016198255, 0.034922253, 0.0054638507, -0.012641598, 0.022847658, -0.03685522, -0.03149446, 0.0021826408, -0.035308845, -0.064432204, -0.062061097, -0.03731913, 0.005370424, 0.013904469, -0.10334925, -0.059380718, -0.016829692, 0.018079676, 0.004532805, 0.018092562, 0.06649403, 0.0058794385, -0.011430273, 0.016584849, -0.011868412, -0.03999951, -0.0023984888, -0.010573325, 0.030540863, 0.010599097, -0.017693082, -0.014458586, 0.016043618, -0.010908372, 0.046545822, -0.017577104, -0.043865442, -0.014020447, -0.01632712, 0.0073968167, -0.014600337, -0.009697046, 0.025025466, 0.019084819, 0.04896847, 0.0074161463, -0.02096624, -0.037963454, -0.060720906, 0.015167341, -0.035283074, -0.013659627, -0.010979247, 0.019149251, -0.031649098, -0.061081726, -0.0008013755, 0.024419805, 0.013414784, 0.0011654175, -0.033298563, -0.030695502, -0.058298256, 0.019600276, -0.02154613, -0.031984147, -0.035540804, 0.04930352, 0.018298745, -0.022280656, -0.036004715, 0.018917294, 0.018363178, 0.028118214, 0.020579645, 0.016352892, -0.013008862, -0.045978818, 0.056751885, -0.018079676, 0.010792394, -0.03783459, -0.023272911, 0.021236854, -0.045334496, -0.008492164, 0.006188713, 0.027576983, 0.0053092134, 0.04041188, -0.005305992, -0.02106933, 0.06432911, 0.0862876, -0.0017251722, 0.021945609, 0.037344903, 0.0137884915, 0.0041011097, -0.011855525, -0.04113352, 0.0062595885, -0.017899266, -0.009941889, 0.03891705, -0.00950375, -0.022641476, 0.02240952, -0.014484359, 0.036752127, -0.036777902, -0.031881053, -0.025373401, 0.007525681, 0.043169577, -0.029484175, 0.00502249, -0.0687105, 0.0064077824, 0.045128316, 0.00048726852, -0.008324641, 0.004974166, -0.008698347, 0.044767495, 0.026829569, 0.011874855, -0.018723998, -0.037473768, 0.017602878, 0.010579768, -0.02353064, 0.012010163, -0.010528222, -0.01755133, 0.080514476, 0.013247261, -0.010908372, 0.033350106, -0.058555987, 0.014484359, 0.030515091, -0.08453505, 0.01502559, -0.01806679, 0.03311815, -0.043736577, 0.004368503, -0.012989532, 0.019020386, -0.024948148, 0.014381267, 0.014162198, -0.0349738, -0.0073839305, 0.021236854, 0.029561494, 0.044148944, -0.042963393, 0.008936746, -0.013034634, -0.00042243363, 0.0029010598, -0.008305311, 0.050231345, -0.0023533863, 0.024677534, 0.029458402, 0.041468564, 0.004693886, -0.0017992692, 0.04054074, 0.00029900568, -0.013479217, 0.0072035203, -0.0020876033, -0.010663529, -0.009568182, -0.009909673, -0.012802678, -0.017280716, -0.0017332262, 0.01788638, 0.033659384, -0.022628589, -0.017757514, -0.023466207, -0.022757454, -0.042705663, -0.008846541, -0.01138517, -0.01636578, -0.032576922, 0.0407727, -0.048530333, -0.025321856, -0.0065398687, 0.007731864, 0.034561433, 0.009909673, 0.0019619605, 0.0159663, 0.012577166, 0.01987089, -0.010547551, 0.011230533, 0.00436206, -0.01556682, -0.02523165, 0.026417203, 0.0006350599, -0.0077962964, -0.00370163, -0.00021323032, 0.029690359, 0.031468686, 0.052834406, -0.015992073, 0.0056120446, 0.05028289, 0.0156054795, 0.060360085, -0.0012717306, 0.05484469, 0.020115733, 0.06546312, 0.038350046, 0.021481697, 0.021017784, 0.035618123, 0.02066985, 0.019097704, -0.010695745, 0.007499908, 0.021584788, 0.025785767, 0.00019712227, 0.026326997, 0.025837313, -0.012796235, -0.03615935, 0.022654362, -0.051674627, 0.039844874, 0.010663529, -0.016919896, -0.04033456, -0.045669544, 0.014754974, 0.0446644, -0.012255005, -0.023015182, 0.045489136, 0.034819163, 0.005164241, -0.016481757, 0.035592347, 0.07149397, -0.010218947, 0.03541194, -0.009368442, 0.018234313, -0.0034149068, -0.036185123, -0.059896175, -0.027009979, -0.017912151, -0.019355433, -0.011430273, -0.020772941, 0.026043495, -0.0012322658, -0.021713652, -0.015876094, -0.03938096, 0.04017992, 0.046004593, 0.0054831803, -0.027860483, 0.011572024, -0.011056566, 0.03670058, -0.015553934, -0.013633854, 0.00017718856, -0.008769223, -0.008737006, 0.013749832, -0.009510193, -0.055875607, 0.0035920953, 0.016868351, -0.00952308, 0.027293481, -0.0007353325, 0.023388889, -0.026597613, 0.018736884, 0.034664523, -0.0014231462, 0.034948025, 0.027576983, -0.024342487, 0.008492164, 0.023337344, 0.012557836, -0.033504743, 0.03453566, 0.053813774, -0.012184129, -0.030180043, -0.01806679, -0.035953168, 0.01010297, -0.014071993, -0.036829446, -0.010895485, 0.035927396, -0.030437771, -0.058040526, -0.01951007, -0.045128316, -0.00796382, -0.047009733, -0.014497246, 0.041855156, 0.0054219696, 0.000045656256, -0.04231907, -0.01972914, 0.0055476124, 0.031030549, 0.041056197, -0.03229342, 0.0014674434, 0.044793267, 0.0012354875, 0.00012584415, 0.051571533, -0.0431438, -0.021894062, 0.0076223295, 0.07309189, 0.015708571, 0.024741966, 0.012860668, -0.005618488, -0.00046350915, -0.017216284, 0.046133455, 0.063298196, 0.007912274, 0.033221245, -0.007145531, 0.024265166, -0.00838263, -0.057112705, -0.053092133, 0.026223905, -0.013672513, 0.047911786, -0.047937557, 0.022783227, 0.018878635, 0.0010607152, -0.019845119, -0.0045521352, -0.035386164, 0.024741966, 0.03247383, 0.025540926, -0.030850139, -0.045411814, 0.0011630013, 0.019123478, 0.032576922, 0.10180288, 0.041107744, 0.0093426695, 0.014600337, -0.009084941, -0.021932721, -0.017602878, 0.021043558, -0.020334803, -0.025875973, -0.00944576, -0.06046318, 0.028375942, 0.07128779, 0.049844753, 0.0024484238, 0.055875607, -0.018698225, 0.019033272, 0.056700338, -0.0048968475, -0.027241934, -0.056803428, 0.051494215, 0.030643955, 0.033504743, -0.03822118, -0.010167401, -0.03157178, -0.002511245, 0.015283318, 0.009471534, -0.0073001683, 0.019175023, 0.009832354, 0.023607958, 0.014638997, -0.055257056, -0.010760178, -0.009368442, 0.027937803, -0.0065463115, -0.0000027780095, -0.040566515, 0.025283195, 0.035592347, -0.006765381, -0.057061158, -0.028607897, 0.009194476, -0.03391711, 0.020914692, 0.042551026, -0.034870706, -0.011636456, -0.03945828, 0.010289823, -0.02407187, -0.027757393, -0.011539808, -0.0057151364, -0.020515213, -0.02353064, 0.0019990092, 0.008898087, -0.012802678, 0.024703305, -0.011043679, 0.03425216, -0.044355128, -0.023388889, -0.016069392, -0.008717677, 0.043891218, 0.030308908, 0.017564218, -0.025399175, -0.025644016, 0.055875607, -0.026726477, -0.03739645, 0.032886196, 0.030076953, 0.02773162, 0.033504743, -0.009349112, -0.003289264, 0.0045134756, 0.024419805, -0.01346633, -0.0039722454, 0.005212565, 0.006971564, -0.0258502, -0.02016728, 0.017383808, -0.041803613, 0.035618123, 0.0081506735, -0.029149128, 0.008041139, -0.08035984, -0.00035175955, 0.011642898, -0.041056197, 0.03551503, 0.023324458, -0.013273033, -0.005376867, -0.018504929, -0.01082461, 0.0006306302, -0.036391307, -0.0025096342, 0.034226384, 0.005467072, -0.006336907, -0.045643773, -0.06365901, 0.057164248, -0.032937743, 0.041210838, -0.0032361073, -0.041803613, -0.014548792, -0.0504633, -0.02639143, 0.0066300738, -0.05340141, -0.011617126, 0.016340006, -0.018156994, -0.033324335, -0.019664709, -0.016571963, 0.03381402, -0.022473952, -0.040927336, 0.017100306, 0.043685034, 0.03613358, -0.011726661, 0.03159755, -0.00800248, -0.061700277, -0.023865687, 0.045154087, -0.03551503, 0.008144231, -0.036880992, -0.03749954, 0.011346511, -0.0061597186, -0.02045078, -0.027293481, 0.034561433, -0.04626232, 0.016391553, -0.028530579, -0.008505051, -0.011449602, 0.018981727, -0.0370614, 0.067679584, -0.018169882, 0.021623448, 0.0288914, -0.005998638, 0.0185307, 0.0595869, -0.037112948, -0.019265229, -0.021236854, -0.013943128, 0.02809244, 0.0002768571, 0.009413545, 0.008041139, -0.03670058, 0.016133823, -0.033324335, -0.0446644, -0.03917478, -0.018955953, 0.054019958, -0.050952986, 0.022293542, 0.01194573, 0.029509949, 0.026223905, 0.058298256, -0.024857944, -0.013028191, -0.020734282, -0.08128767, 0.059174534, -0.02443269, 0.011919958, -0.026056383, -0.0036404193, 0.07267953, -0.03670058, 0.013028191, 0.06474148, -0.029509949, 0.011572024, -0.03623667, 0.015528161, -0.008621029, -0.048788063, -0.017100306, -0.036623262, -0.044767495, 0.014291062, -0.053916868, -0.06706104, -0.02907181, 0.0016317455, -0.026120815, -0.011146771, 0.04633964, -0.021443037, 0.002743201, -0.07499908, 0.006591414, 0.020876033, 0.020296143, 0.020876033, 0.01726783, 0.004407163, 0.01578589, -0.024445577, -0.013492103, -0.000481228, 0.07180324, 0.006198378, -0.07041151, 0.016816804, 0.033350106, -0.03891705, -0.062576555, 0.01878843, -0.016623508, 0.024033211, -0.032886196, -0.0050837006, -0.000570225, -0.034406796, 0.019961096, 0.029046036, -0.026520295, 0.0028575682, -0.0034567877, -0.0006036492, -0.036520172, -0.005363981, 0.0043137358, -0.018569361, 0.010740848, -0.06092709, -0.023865687, -0.044355128, -0.0122099025, 0.01156558, 0.027654301, 0.02943263, 0.025167217, 0.023955893, 0.11092648, 0.00003390241, 0.03587585, -0.0077447505, -0.037628405, -0.04319535, -0.035231527, 0.017048761, -0.018878635, -0.019213682, -0.02635277, -0.0033730257, 0.0040624505, 0.06963833, -0.016649282, -0.10252452, 0.02559247, -0.041210838, -0.028479034, 0.019754913, 0.0012451523, 0.011591353, 0.06907132, -0.014110652, -0.020772941, -0.0035598793, -0.009014065, -0.007106872, 0.005012825, -0.017461127, -0.0066622896, -0.049844753, -0.008189333, -0.03703563, 0.00093990477, -0.0039206995, 0.00990323, 0.000663249, 0.014754974, -0.038968597, 0.043246895, 0.02023171, 0.024741966, -0.0031829507, 0.005576607, 0.011720218, 0.00524156, -0.021881176, 0.01755133, 0.04193248, -0.037551086, -0.026623385, 0.00074378925, -0.01600496, -0.0669064, 0.048427243, 0.04999939, 0.028324395, -0.0009850073, -0.02541206, 0.018633792, -0.052576676, -0.01668794, -0.050849892, -0.025489379, -0.008170003, 0.058401346, 0.015489501, 0.03767995, 0.018723998, 0.01954873, 0.00086741854, -0.0110179065, -0.037447996, 0.002056998, 0.029303765, -0.007055326, -0.0020972681, -0.01835029, 0.022461066, 0.013724059, -0.0078091826, 0.04481904, -0.008260208, -0.01860802, 0.013595195, 0.0077640805, 0.017203398, 0.044123173, 0.010843939, -0.019059045, 0.0208116, -0.01690701, -0.01480652, 0.012222788, -0.05850444, -0.06056627, 0.024033211, -0.027061524, 0.015309091, -0.015888982, -0.047164373, -0.016159596, 0.035618123, -0.03729336, 0.030875912, 0.00074942707, 0.03301506, 0.025373401, -0.044896357, -0.027267708, 0.015283318, 0.018556474, -0.0401026, -0.01676526, 0.016713712, 0.021043558, 0.04579841, -0.007828512, -0.022693021, 0.0026095042, -0.00047196588, 0.0230925, -0.022577044, 0.009516636, -0.029690359, 0.0122099025, -0.003437458, -0.009078497, 0.020180166, -0.00083037, -0.018337404, 0.012635155, 0.006594636, 0.04017992, -0.006230594, -0.026133701, 0.014677656, 0.027422344, 0.017757514, -0.014007561, -0.0026964876, -0.00446193, 0.055617876, 0.011726661, 0.033659384, -0.023040956, 0.0038723752, -0.0071519744, -0.005338208, -0.030515091, 0.07221561, 0.032783106, 0.0065140957, -0.0036565275, -0.021636333, -0.020656964, -0.022087358, 0.03729336, 0.021584788, 0.0061532753, -0.0016623508, -0.038968597, -0.02577288, -0.01893018, -0.012712473, -0.045025222, 0.017370922, 0.039561372, 0.0021923056, 0.036339764, 0.028040893, -0.013930242, 0.008949633, 0.026378544, -0.0073646004, 0.02371105, 0.0011839417, 0.04394276, -0.017474012, 0.06788577, -0.059277624, -0.035978943, -0.034587204, -0.020334803, -0.043530397, -0.018453382, -0.008646801, -0.022499725, 0.014484359, -0.033710927, -0.0024484238, -0.0504633, 0.02034769, -0.029716132, 0.043324213, 0.026855342, -0.015502388, 0.0067138355, 0.040850017, -0.026855342, 0.008917416, 0.016017845, 0.0669064, 0.010534665, 0.050617937, 0.039226323, -0.0012701198, 0.0152704315, 0.024574442, -0.019316774, -0.04633964, -0.029097583, 0.010431574, 0.027087297, -0.0656693, -0.04749942, 0.0042847414, 0.013047521, -0.01042513, -0.04383967, 0.042731438, 0.016713712, -0.027087297, -0.009078497, 0.11257594, 0.02197138, -0.021636333, 0.008427732, 0.00514169, -0.060617816, 0.002843071, -0.020785829, 0.057834346, -0.00874345, -0.038685095, 0.010148072, -0.04267989, 0.01614671, 0.011630013, -0.015850322, -0.023401776, 0.026417203, 0.028556352, 0.04463863, 0.015425069, -0.036649037, -0.028066667, 0.080050565, 0.0413397, 0.0018926959, 0.07793719, 0.056133334, 0.0042654118, 0.019819345, 0.02925222, -0.002239019, -0.027963575, 0.0029654922, 0.0045907944, -0.010315595, -0.020540986, -0.036468625, -0.023723938, 0.0029139463, 0.013504989, -0.012190573, -0.03577276, -0.007048883, -0.0669064, 0.009355555, 0.02056676, 0.029020263, -0.022022927, -0.0012427361, 0.033607837, -0.033324335, 0.1837091, 0.029948087, 0.04739633, 0.01600496, 0.030412, 0.042808756, 0.0149353845, -0.013453444, -0.0053092134, -0.02487083, -0.01008364, -0.033607837, 0.012312993, 0.0028462925, -0.045643773, 0.056700338, -0.040824242, 0.01668794, 0.0061178375, -0.036726356, -0.057731252, 0.045772634, 0.022808999, 0.07288571, 0.0064496635, 0.0035341063, 0.03489648, -0.0547416, 0.0033053719, -0.025901746, 0.003131405, -0.04206134, 0.0056056017, -0.003859489, 0.018324519, 0.02371105, 0.009336226, -0.075875364, 0.017203398, -0.027602755, 0.0020763278, 0.012538507, 0.023723938, -0.0109212585, -0.016559076, -0.0022019704, 0.0023759375, 0.04126238, 0.016997214, -0.062112644, 0.025553811, -0.026597613, 0.044922132, -0.035308845, -0.0687105, 0.010934144, -0.046416957, -0.034664523, 0.00702311, 0.030901683, -0.038143862, 0.03873664, 0.010496005, 0.017809061, -0.022744568, 0.01708742, 0.008253765, 0.001582616, -0.0025966177, 0.0010566881, -0.004043121, -0.03775727, -0.022319315, -0.000004130834, 0.013852923, 0.03927787, -0.016584849, 0.06314356, 0.012699587, -0.057937436, 0.019200796, -0.02023171, 0.029535722, -0.010908372, 0.0031201295, 0.04688087, -0.024381146, 0.024020325, -0.013131282, 0.0024081536, 0.028375942, 0.045566455, 0.025308968, 0.015399296, 0.044587083 ]
tf_dataset = model.prepare_tf_dataset(dataset["train"], batch_size=16, shuffle=True, tokenizer=tokenizer)
[ 0.024570983, 0.002608636, 0.0022889588, 0.035379954, -0.019088786, -0.028823925, 0.02530571, -0.013557135, -0.024782924, 0.060473725, 0.0062840395, -0.0086754365, 0.031112883, -0.030095568, -0.050950527, 0.013578329, -0.0007484153, -0.03860145, -0.06962956, -0.025122028, -0.015937936, 0.022508094, -0.07036429, -0.015358631, -0.035323437, 0.0126740495, -0.009883498, 0.007834738, 0.059852034, 0.032045424, -0.0066725975, -0.014736938, -0.012610467, -0.032638855, -0.008187973, -0.024542725, 0.024288395, 0.005563441, -0.015090172, -0.027665315, 0.024570983, -0.013472359, 0.041342553, -0.018961621, -0.029784722, 0.010257926, -0.009311258, 0.0011497779, -0.022451576, -0.051459182, -0.009855239, 0.017294355, 0.012476238, 0.011126882, -0.04001439, 0.018226894, -0.023836255, 0.0041434392, -0.027848998, -0.032412786, -0.01579664, 0.0065207067, 0.024514465, -0.089975856, 0.027297953, 0.009417228, -0.022437448, -0.043574993, -0.042162053, -0.036425527, -0.08409804, -0.003184408, -0.04227509, -0.046683453, -0.042585935, 0.03156502, 0.018834457, 0.008894442, -0.032384526, 0.010681807, 0.023172176, 0.025913274, 0.00926887, 0.017082414, -0.0053161774, -0.056206655, 0.03614294, -0.003318637, 0.039166626, -0.032214973, -0.038968816, 0.020501724, -0.036679856, -0.016757438, 0.007707574, 0.021575555, 0.002506198, 0.068329655, 0.033910498, -0.00429533, 0.009925886, 0.084889285, 0.014108181, 0.030378155, -0.009063994, 0.043094594, -0.0014367808, -0.011006783, -0.029417358, -0.01299196, -0.0026686857, -0.017251967, 0.031762835, -0.007968968, -0.0026545564, 0.011084494, 0.008032549, 0.008498819, -0.025757851, -0.01321803, 0.014150569, 0.0027834869, 0.018452963, -0.05451113, 0.012850666, -0.057563074, 0.019512666, 0.03911011, -0.025616556, -0.01579664, 0.0038961752, 0.017478038, 0.0067538414, 0.037018962, 0.009339517, -0.0064359303, -0.0030325172, 0.009664493, 0.0002477056, -0.03775369, 0.009756333, -0.003452866, -0.014864102, 0.055556703, -0.05499153, 0.009007476, 0.025715463, -0.059456408, -0.0035817965, 0.021985307, -0.079633154, 0.05083749, 0.0074108574, -0.036962446, -0.036990702, -0.00018611037, -0.015401019, 0.0072695636, 0.00914877, 0.01073126, -0.007884191, -0.008406978, -0.003917369, 0.029869499, 0.008145585, 0.035634283, -0.02782074, 0.0022977896, 0.027891386, -0.027637057, 0.008837924, 0.020303912, 0.007523892, 0.009671557, 0.055726256, 0.04504445, 0.062790945, -0.0006203679, 0.06426039, 0.01559883, 0.009007476, -0.0038855781, -0.0068598115, -0.014849973, -0.012808278, -0.018339928, -0.013931564, 0.004514335, -0.0047863256, 0.004966475, 0.004920555, 0.027439246, -0.0019357244, 0.0063758804, -0.04227509, -0.011501311, -0.035351697, 0.03142373, 0.006368816, -0.047502957, -0.027071882, 0.026068697, -0.04789858, 0.020289782, -0.020049583, 0.048944153, 0.015174949, 0.060304172, -0.0017087713, 0.007453245, 0.024132973, 0.008873248, -0.006146278, 0.014821715, 0.00016977327, -0.01855187, -0.010950265, 0.03210194, -0.02327108, -0.018184505, 0.024316654, 0.02303088, 0.022564612, 0.013394647, 0.024726406, -0.0001788249, -0.004892296, 0.022465706, 0.045072705, 0.010434544, -0.00050070975, 0.030491192, -0.024599241, 0.05598058, 0.047389925, 0.018961621, 0.03187587, 0.015415148, -0.00984111, 0.027679445, -0.0024161232, -0.0022960235, 0.0024708745, -0.0040975185, -0.026082827, 0.018396446, -0.020445205, 0.0065136417, -0.037697174, 0.020275652, -0.064995125, 0.03181935, -0.007778221, 0.011282306, -0.05809999, -0.03634075, -0.014369574, 0.0024019938, -0.018509481, -0.0135642, 0.0050159283, 0.040579565, -0.015061914, -0.022691777, 0.05815651, 0.055811033, -0.0031773432, 0.027693575, -0.004161101, 0.0043377182, -0.05109182, -0.021575555, -0.050074503, 0.0037054287, -0.015669476, -0.042077277, 0.009502005, -0.07381185, -0.018834457, 0.0040480657, -0.0022448045, 0.010568772, 0.00052764383, 0.046683453, -0.0019480876, -0.011020913, -0.041229516, 0.02823049, 0.005683541, 0.03837538, -0.019512666, -0.017068285, -0.02191466, -0.018721422, 0.029699946, -0.011508375, 0.031056367, -0.034701746, -0.019060526, 0.005436277, -0.004553191, -0.0021829884, -0.02170272, 0.006877473, -0.03283667, 0.008039614, 0.041738175, -0.013613652, 0.03687767, 0.01921595, -0.010787778, 0.03484304, 0.021307098, 0.0074956333, -0.027693575, 0.029502135, 0.059569445, -0.027707703, -0.027707703, -0.037358068, -0.050922267, -0.021632073, 0.0013484722, -0.051148336, 0.0028894572, 0.06657761, -0.013083802, -0.046937782, -0.012271362, -0.05722397, -0.039703544, -0.028569596, -0.02239506, 0.040325236, -0.022776552, 0.0030554773, -0.035182144, -0.014623903, -0.0030996315, 0.022931976, 0.0248677, -0.0208267, 0.0163053, 0.037866727, 0.0054292125, 0.016686792, 0.022762423, -0.05674357, 0.013133254, -0.016008582, 0.054652423, 0.01605097, 0.021222321, 0.030123828, 0.02869676, 0.010808972, -0.068442695, 0.043235887, -0.00008582491, 0.027622929, 0.036708117, -0.022677647, 0.04063608, -0.005662347, -0.025870886, -0.006347622, 0.0011012082, -0.016220523, 0.057337005, -0.040579565, 0.031225918, 0.019653961, -0.00022430383, 0.0075733447, -0.010180214, -0.043942355, 0.04789858, 0.029784722, 0.0610389, -0.034023535, -0.07002518, -0.016559627, 0.008979218, 0.0031685124, 0.034447417, 0.06776448, 0.01787366, -0.0016284104, 0.024726406, -0.009205287, 0.003051945, 0.024797052, -0.042840265, 0.007131802, -0.032469302, -0.022352671, 0.017788883, 0.066181995, 0.02984124, -0.00217769, 0.020007195, -0.02756641, 0.038573194, 0.010695937, 0.017803011, -0.04380106, -0.027312081, 0.052759085, 0.015061914, 0.042868525, -0.037697174, -0.0094454875, -0.032045424, 0.014878232, -0.027509892, 0.0037654785, -0.019230079, -0.007968968, -0.00044088066, 0.03258234, -0.011430664, -0.032525823, -0.0456944, 0.007545086, 0.06849921, -0.043574993, 0.005538715, -0.0016858111, 0.03978832, 0.032271493, -0.0074461806, -0.020939734, -0.03145199, -0.0048887637, -0.046739973, 0.005478665, 0.051911324, -0.057930436, 0.02465576, -0.052137394, -0.014878232, -0.017788883, -0.041512102, -0.033825725, -0.0032444578, -0.01253982, -0.00093077257, 0.022352671, 0.0054927943, -0.028272878, 0.024585113, -0.029304324, 0.052759085, -0.043009818, 0.0070858817, 0.0077923504, 0.009120512, -0.011522505, 0.046231315, 0.026888201, -0.03320403, 0.011126882, 0.02055824, -0.011854545, -0.05312645, 0.021151675, 0.012250168, -0.030180344, 0.030604227, 0.0009201755, 0.00256978, -0.0057188645, 0.028668502, 0.009897627, 0.034927815, -0.035323437, -0.012200715, -0.040438272, -0.0005426563, 0.051233113, -0.049509328, 0.037697174, 0.0049170223, -0.020713663, -0.0075733447, -0.04815291, -0.024288395, -0.0053409035, -0.033627912, 0.05855213, -0.006534836, -0.016220523, -0.011204595, -0.05044187, 0.031367213, 0.024768794, -0.020205006, -0.00007285459, 0.052137394, 0.015909676, -0.023299338, -0.023059139, -0.03006731, 0.053182967, -0.017492166, 0.021377744, -0.03097159, -0.03837538, -0.0031791094, -0.04563788, -0.025658945, -0.001192166, -0.013394647, 0.0366516, 0.009678622, 0.012257232, 0.0076793153, -0.024373172, -0.048463754, 0.039279662, -0.028385915, -0.047587734, -0.001325512, 0.027622929, 0.015118431, 0.009381905, 0.04408365, -0.044648826, -0.04945281, -0.019244209, 0.04541181, -0.004122245, -0.01186161, -0.040607825, -0.02622412, 0.024373172, 0.02645019, 0.0074249865, -0.056150135, 0.009099318, -0.02799029, 0.010469867, -0.032384526, 0.0030996315, 0.022691777, -0.009388969, -0.008463495, 0.038460158, -0.0051960777, -0.005355033, 0.0316498, 0.014948878, 0.032130197, 0.076242104, -0.031791095, -0.021844015, -0.010985589, 0.029558653, 0.006884538, -0.009085188, -0.023765609, 0.0005444225, -0.040805634, 0.026704518, -0.018608388, -0.010695937, 0.011268176, -0.017930176, 0.06081283, -0.057280485, -0.041681655, -0.028089197, 0.034899555, 0.008809665, 0.017393261, 0.004041001, 0.009106382, -0.02756641, -0.04227509, 0.02370909, -0.03167806, -0.004192892, 0.0010544047, 0.008788471, 0.07867236, -0.028513078, 0.035916872, 0.032864925, -0.024274265, -0.0054327445, -0.031338952, -0.016912863, -0.020487593, -0.030321639, 0.010060115, -0.033401843, -0.038318865, -0.0030272186, -0.0565175, -0.055443667, -0.03097159, -0.0015807238, 0.021307098, -0.05677183, 0.03571906, 0.019512666, -0.020643016, -0.08669785, 0.02984124, 0.0018562466, 0.008258619, 0.0130484775, 0.02530571, -0.0044330913, -0.0025892078, -0.06810359, -0.014510868, 0.017280225, 0.056347948, -0.034306124, -0.040183943, 0.0013749648, 0.009261806, -0.035182144, -0.057760883, 0.02214073, 0.0013988081, 0.021773366, -0.02259287, 0.01538689, 0.00062522484, -0.022974364, 0.024274265, 0.06979911, 0.008604789, -0.021519039, 0.0048216493, 0.0037866724, -0.031056367, 0.020515852, 0.023384115, -0.04792684, 0.003422841, -0.037358068, -0.037160255, -0.037697174, -0.021829884, 0.05513282, 0.027297953, 0.0077570267, 0.0021847547, 0.01647485, 0.04722037, -0.011126882, 0.034164827, 0.002147665, -0.026181731, -0.04182295, -0.026111085, 0.039901353, -0.0061816014, 0.011331758, -0.0039103045, 0.014192957, -0.01345823, 0.018410575, -0.00010017506, -0.09359298, 0.03413657, -0.015118431, -0.014553256, -0.0054892623, -0.03410831, -0.029276066, 0.026365414, -0.0076722507, -0.047842063, -0.0060085165, 0.0032214974, -0.009636234, -0.0158249, -0.0028717956, 0.022903716, -0.07432051, -0.004584982, -0.015641218, -0.03006731, 0.0086683715, 0.03300622, 0.009099318, -0.026775165, -0.022635259, 0.017350873, 0.00037906464, 0.0013846788, -0.03826235, -0.005874288, -0.015768383, 0.0098128505, -0.025008993, 0.047757287, 0.047361664, -0.046937782, -0.0034122441, 0.011218724, -0.014821715, -0.044366237, 0.026139343, 0.05196784, 0.007983097, 0.010194344, -0.020459335, 0.028470691, -0.040438272, -0.012455044, -0.007039961, -0.009615039, 0.017675849, 0.012737632, 0.004789858, 0.03862971, -0.008258619, 0.040975187, -0.0008146468, 0.0111551415, 0.029163029, 0.002610402, 0.037386324, 0.030236863, -0.010695937, -0.037018962, 0.0100035975, 0.0008415809, -0.027778352, 0.0017873659, 0.03345836, -0.0076651857, -0.02667626, 0.034475673, 0.0054504066, 0.047305148, 0.00021624567, -0.023426503, -0.025037251, -0.022168988, 0.0028417704, 0.009692751, -0.05648924, -0.050752714, 0.012928378, -0.022691777, -0.0018315202, -0.024570983, -0.03998613, -0.013309871, 0.0047156787, -0.008753148, -0.010801907, 0.02919129, 0.014864102, 0.019088786, -0.0040727924, -0.031084625, -0.002896522, -0.006852747, -0.016912863, -0.005157222, -0.018410575, 0.04250116, 0.0033151046, 0.016870474, -0.038177572, 0.010554643, 0.032780148, 0.029445617, -0.023567798, -0.0024443818, -0.01918769, 0.007728768, -0.016828086, -0.046485644, 0.0058707553, 0.010462802, 0.0461748, 0.039590508, 0.0059837904, 0.016602015, 0.0047969227, -0.023172176, 0.021292968, 0.013613652, 0.04832246, -0.017534554, -0.0023189837, 0.04159688, 0.042614195, 0.016912863, 0.039251402, 0.0048746346, 0.04363151, 0.008979218, -0.02799029, -0.053437296, 0.00025499106, 0.004436624, -0.0065136417, -0.017011767, 0.0051007043, -0.01874968, -0.010816037, 0.04385758, 0.024330784, 0.000311067, 0.016997637, -0.022183118, -0.04908545, 0.0027605267, -0.0100106625, -0.05290038, -0.0038820459, 0.041879468, 0.05598058, 0.009381905, 0.03345836, 0.018438835, 0.04202076, 0.03687767, 0.010660613, 0.044874895, -0.02190053, 0.046853006, -0.0025962726, 0.06810359, -0.03546473, 0.01743565, -0.03258234, -0.009523199, 0.007039961, 0.055189338, 0.014108181, -0.023822127, -0.0018509481, -0.010794843, -0.013451165, -0.05787392, -0.0041081156, -0.07997226, 0.0047439374, 0.032667115, -0.024118843, -0.04515748, 0.029530393, -0.014892361, 0.009410163, 0.026633872, 0.045581363, 0.026365414, 0.11105689, 0.037555877, -0.0042706034, 0.011084494, 0.016757438, -0.01855187, -0.01805734, -0.020402817, 0.0077852854, 0.012532756, -0.039420955, -0.0502158, 0.033090997, 0.0049276194, 0.019272467, -0.046118278, 0.036764633, 0.05606536, -0.025065511, -0.0334301, 0.11619998, 0.014270669, 0.011035042, -0.029247805, -0.011105688, -0.06917742, 0.0047545345, -0.012426785, 0.051854804, -0.03707548, -0.061434522, 0.0068916027, -0.07273802, 0.008067873, 0.008746083, -0.039618768, -0.046994302, 0.04089041, 0.014708679, 0.06527771, 0.04046653, -0.056630533, 0.0047121467, 0.05499153, 0.03659508, 0.016404204, 0.044168428, 0.037386324, 0.012582208, 0.0020187343, 0.0005717981, 0.0042812005, -0.026323026, 0.009502005, 0.0076439916, -0.012017033, -0.028880442, -0.034503933, -0.025588298, 0.00003708961, 0.009396034, -0.03865797, -0.023553668, 0.013408776, -0.059965067, 0.020091971, 0.007361404, 0.007025832, 0.023694962, -0.0002547703, 0.030208604, -0.038997076, 0.23646922, 0.054567646, 0.067934036, 0.027848998, 0.0497354, 0.052589532, -0.0064677214, -0.0334301, -0.030010791, -0.0086754365, 0.0031225919, -0.04490315, 0.0022871925, -0.018438835, -0.013557135, 0.012843601, -0.011331758, -0.002322516, -0.0034493336, -0.044479273, -0.024217749, 0.0587782, 0.034164827, 0.039307922, 0.024924217, -0.022168988, -0.004616773, -0.0720033, -0.017591072, -0.047842063, 0.025856756, -0.037612397, 0.033345323, 0.008039614, 0.008145585, 0.038714487, 0.011091559, -0.04317937, 0.016022712, -0.032921445, -0.015174949, -0.026407802, 0.009982403, -0.02396342, -0.004079857, 0.001932192, -0.009063994, 0.044196684, 0.048718084, -0.06239532, 0.045100965, -0.010236732, 0.024005808, -0.052956898, -0.036736377, -0.025206804, -0.04315111, -0.033825725, -0.0004958527, 0.06533423, 0.005157222, 0.031141141, 0.0023472423, 0.045835692, -0.0089227, 0.037047222, 0.0076086684, -0.023906901, -0.013740817, 0.0035888613, 0.021052768, 0.0134370355, -0.00723424, -0.01672918, 0.011275241, 0.034164827, 0.005803641, 0.057704367, -0.004320056, -0.021660332, -0.0026015711, 0.003874981, 0.0041151806, -0.0134299705, -0.008463495, 0.072851054, -0.054285057, 0.02485357, -0.007474439, 0.007326081, 0.02666213, 0.02013436, 0.022465706, 0.024768794, 0.012737632 ]
This approach works great for smaller datasets, but for larger datasets, you might find it starts to become a problem. Why? Because the tokenized array and labels would have to be fully loaded into memory, and because NumPy doesn’t handle “jagged” arrays, so every tokenized sample would have to be padded to the length of the longest sample in the whole dataset. That’s going to make your array even bigger, and all those padding tokens will slow down training too! Loading data as a tf.data.Dataset If you want to avoid slowing down training, you can load your data as a tf.data.Dataset instead. Although you can write your own tf.data pipeline if you want, we have two convenience methods for doing this:
[ 0.06096801, 0.005438003, -0.036695153, 0.0011215477, -0.0087125, -0.010798043, 0.010596635, 0.0053080632, -0.0066529457, 0.0134878075, 0.033342693, -0.021816984, 0.031263646, -0.0697, -0.01729506, 0.008660524, 0.00018871804, -0.021894949, -0.0651261, 0.03014616, 0.01309149, -0.016086614, -0.09963825, -0.0219989, -0.011181367, -0.021531114, 0.04319217, -0.014514336, 0.033810478, 0.016996197, -0.02733945, -0.013513796, -0.02576717, -0.046414692, -0.023298305, 0.01060963, 0.0038007551, -0.0062436336, -0.05748561, -0.046908464, 0.024389803, -0.015280984, 0.017931767, -0.002293447, -0.06200753, -0.018672427, 0.005389276, 0.0028538147, -0.0032079022, -0.0019328627, -0.0043530017, 0.017749852, 0.034226287, -0.021492133, -0.020270694, 0.002101785, 0.011551697, 0.0026995107, -0.04724631, -0.014072539, 0.025819147, 0.008218727, -0.004885757, -0.048675653, 0.016437454, 0.011902535, -0.010382233, 0.021842971, -0.030328076, 0.03365455, -0.028197056, 0.0024688665, -0.008706003, -0.018750392, -0.030873826, 0.018594462, 0.027963161, 0.013773677, -0.0052268505, -0.0015828358, 0.00021501066, 0.06351484, 0.014566313, 0.004375741, -0.016775299, -0.060916033, 0.05452297, 0.000491743, -0.024987528, 0.0028505663, -0.02219381, 0.009550615, -0.03014616, -0.0063086036, 0.04763613, 0.045323193, -0.0058603096, 0.040411446, -0.010492682, -0.03256305, 0.0405154, 0.07344228, -0.0038787194, 0.00982349, -0.019685961, 0.012422297, -0.020179735, -0.03188736, -0.024467766, -0.03469407, 0.010778552, 0.0031413077, 0.0044861906, 0.017580928, 0.018880332, 0.013513796, -0.032667004, 0.008420134, 0.008744985, -0.012669183, 0.00017836342, -0.026663758, 0.009050345, -0.027677294, 0.031913348, -0.04129504, -0.014033557, 0.059460703, -0.01426745, 0.005051431, 0.00044991844, -0.018932309, 0.03555168, 0.056134228, 0.00078004814, -0.013890623, -0.056290157, 0.0091478005, -0.010213311, -0.012123434, 0.042308576, -0.037630726, 0.00048565204, 0.07068755, -0.0020725485, 0.0072831563, 0.027651306, -0.03295287, -0.025143458, 0.02908065, -0.043556005, 0.0066659395, -0.054419015, -0.004401729, 0.014293438, -0.0023844054, -0.018581469, 0.004898751, 0.02879478, 0.02164806, 0.034434192, -0.01167514, -0.03362856, 0.0331088, 0.0068348623, 0.046414692, -0.03435623, -0.03147155, 0.021323211, -0.015956674, 0.026598789, -0.00039834838, 0.045739003, 0.015735775, 0.0592528, 0.081498586, 0.052054103, -0.006906329, 0.005931777, 0.012994034, -0.01296155, 0.010180826, -0.009622082, 0.01748997, 0.0074455817, 0.009238758, 0.0016859759, 0.0066334545, -0.010746066, 0.026429866, 0.017788833, 0.008465613, -0.023103394, -0.0021570097, -0.03970977, -0.0032907391, -0.024558725, -0.008621542, -0.019997818, -0.056186207, 0.0007837027, 0.06559388, -0.07458576, -0.03752677, -0.00096724345, 0.0029415246, 0.024883576, 0.00048362173, 0.040281508, 0.023207346, 0.033732515, -0.010122353, -0.011909032, -0.015579848, 0.0069518085, 0.024038963, -0.043374088, 0.00034089037, 0.0020254452, -0.013877628, 0.03214724, -0.018568475, 0.0004426093, -0.014904157, 0.035447728, -0.034642097, 0.0015300475, 0.06704922, 0.011291816, -0.008004325, 0.0039696777, 0.030639933, -0.012006488, 0.055666443, 0.026572801, 0.020348659, 0.018425541, -0.008634536, 0.009206274, 0.021855965, 0.019607998, -0.00988846, 0.021661056, 0.03835839, 0.009706544, -0.0028002143, 0.014345414, 0.037162937, -0.049845118, 0.045583073, -0.05504273, 0.027833221, 0.0022447195, -0.018984284, -0.04654463, -0.0248316, 0.02535136, 0.042724386, -0.018685421, 0.021661056, -0.0011824571, -0.002899294, -0.03014616, -0.022180816, 0.061955556, 0.0651261, -0.027261484, -0.0017834313, 0.017308054, -0.034538142, -0.044101752, -0.018282607, -0.07042766, -0.02905466, -0.03472006, -0.003410934, 0.022492673, -0.00938819, 0.015203021, 0.0036253356, -0.0030877073, -0.0039177015, -0.00962858, 0.04321816, 0.07292252, 0.03204329, -0.024662677, 0.024194892, -0.037214916, 0.0132279275, -0.030302089, -0.024922559, 0.024207886, -0.00025764733, 0.008913907, 0.013370861, 0.004746071, -0.047038406, -0.036435273, 0.017502964, 0.009089327, 0.022362733, -0.0025582006, -0.0036253356, -0.024519743, 0.04709038, 0.0038364886, -0.02908065, 0.026325913, 0.033706527, -0.0032744966, 0.03994366, -0.005070922, 0.031393588, -0.03677312, 0.015501883, 0.059304774, -0.021790996, -0.067205146, -0.050286915, -0.030613946, 0.014865176, 0.0023340534, -0.03778665, -0.020881413, 0.03095179, -0.012032476, -0.040073603, -0.008329176, -0.025780164, -0.019439075, -0.022492673, -0.013318885, 0.044621516, 0.010746066, 0.019569015, -0.037240904, 0.048831582, 0.013773677, 0.0116361575, -0.007491061, -0.043504026, 0.06938814, 0.038540307, 0.023792077, 0.014475354, 0.01871141, -0.035005927, 0.0036253356, -0.0058765523, -0.0014642653, 0.0035376258, 0.02125824, 0.010245796, -0.014358408, 0.01581374, 0.002446127, 0.01997183, 0.027209507, 0.008550075, 0.032511074, 0.010785049, 0.015475895, -0.01626853, -0.042568456, -0.020946383, 0.018555481, 0.018893326, 0.040541388, -0.04199672, 0.02322034, -0.00058432546, -0.0061591724, -0.0193871, 0.022908483, -0.010187323, 0.03362856, 0.048519723, 0.029496457, -0.03082185, -0.05343147, 0.0077769295, 0.0148132, 0.054055184, 0.06595772, -0.0031786656, 0.016931226, -0.0016380604, -0.040671326, -0.00884244, -0.029392505, 0.027703281, 0.012318345, -0.042568456, -0.03739683, -0.049741164, 0.033186764, 0.050260924, 0.048883557, 0.02988628, 0.055614468, -0.060656153, 0.013838647, 0.035577666, 0.0022901986, -0.024675671, -0.054990754, 0.03861827, 0.04722032, -0.0045316694, -0.011161876, -0.013240921, -0.025182439, -0.021778002, -0.029236577, 0.00088765495, -0.010278281, -0.0029009182, 0.014605295, 0.0629431, -0.010512174, -0.04701242, -0.007965343, -0.0006712231, 0.05852513, -0.042568456, -0.0063605797, -0.029002685, 0.03391443, 0.038254436, 0.013273406, -0.05182021, -0.007523546, 0.0031250652, -0.07162312, 0.028197056, 0.0394239, -0.03362856, 0.015423919, -0.04485541, -0.018854344, 0.0005161068, -0.0022755803, 0.0018711409, 0.005473737, -0.000009758215, -0.008874926, 0.024740642, -0.016775299, 0.021076323, 0.029236577, -0.040801268, 0.053899255, -0.034252275, -0.041269053, -0.028197056, -0.020205723, 0.018022725, 0.015982663, 0.027677294, -0.027079567, -0.019737938, 0.02988628, -0.05117051, -0.037604734, 0.02376609, -0.020231713, 0.033446644, 0.04737625, -0.032744966, 0.009901455, 0.036383297, 0.024272857, -0.040021624, 0.0038884648, 0.0059415223, -0.0013854889, -0.0313676, -0.015164038, 0.025169445, -0.054730874, 0.025806153, -0.008069295, -0.028716816, 0.028197056, -0.06788084, -0.036175393, -0.0012685426, -0.0038462342, 0.02563723, 0.017710868, -0.015839728, 0.034278262, -0.026143998, 0.0020465604, -0.02361016, -0.02389603, -0.008017319, 0.047558166, 0.028223043, 0.00295127, -0.047402237, -0.09709143, 0.07292252, -0.017918773, 0.03944989, -0.014709247, -0.02975634, 0.014644277, -0.018945303, -0.036435273, -0.035239823, -0.02589711, -0.008426632, -0.029912267, -0.024363814, -0.023844054, -0.017035179, -0.009622082, 0.04295828, -0.013000531, -0.0496632, 0.0059350254, 0.028768793, 0.030613946, -0.035005927, 0.0021732522, -0.014202479, -0.054886803, -0.016086614, 0.07656085, -0.03287491, -0.013682718, -0.041139115, -0.08259008, 0.040749293, 0.048805594, -0.021440158, -0.02905466, 0.009713041, -0.049351342, 0.006029232, -0.06574982, 0.005064425, -0.059564654, 0.004395232, -0.0078743845, 0.048259843, 0.0046778526, 0.029808315, 0.026585795, 0.011473732, 0.023376267, 0.05436704, -0.062787175, -0.018984284, 0.023818064, -0.009329717, 0.0033557094, 0.0073026475, -0.0029366517, -0.006782886, -0.017048173, 0.025286391, -0.03562964, -0.0093427105, -0.029392505, -0.028093103, 0.038644258, -0.029834304, 0.04345205, -0.02322034, 0.013799665, -0.0115062175, 0.024597708, -0.038072523, 0.0051943655, -0.024324832, -0.06574982, 0.07947151, -0.05221003, 0.005915534, -0.0018613954, -0.014631283, 0.038020544, -0.056550037, 0.031705443, 0.06554191, -0.0056004287, -0.0045056813, -0.049481284, 0.042646423, 0.01993285, 0.00169897, -0.007952349, -0.030484006, -0.020660514, -0.0015560356, -0.02705358, -0.03323874, -0.0036968028, 0.02850891, -0.0115452, 0.0042587947, 0.07047965, 0.021271234, -0.042646423, -0.04898751, 0.034174312, 0.010726576, 0.014163498, 0.020010812, 0.021453151, -0.000715484, 0.04545313, -0.004547912, -0.030406041, -0.001181645, 0.091062196, -0.029834304, -0.030535981, -0.0064093075, 0.00649052, -0.036331322, -0.03352461, 0.005113153, 0.016021645, 0.004713586, -0.020985365, -0.014150503, -0.016632363, -0.050728712, 0.024753636, 0.017204102, -0.022492673, 0.007640492, 0.009576604, -0.0134228375, -0.07786025, 0.006532751, 0.007205192, -0.043685943, -0.002114779, -0.0026199222, -0.024363814, -0.010200317, -0.019283148, 0.026546812, -0.001041147, 0.009998909, 0.061383817, -0.0009826738, 0.08498099, 0.0045186756, 0.01694422, -0.0038787194, -0.024883576, -0.026819687, -0.059980463, 0.017736858, 0.011746607, 0.0068998323, 0.016762305, 0.037162937, 0.041139115, 0.057901416, -0.0023616657, -0.05384728, 0.018568475, -0.040567376, -0.0629431, 0.02260962, 0.0024380058, -0.0313676, 0.03646126, -0.0060129897, -0.048649665, -0.021816984, 0.0058180788, -0.011577684, -0.0028180813, -0.038826175, -0.019140212, -0.026429866, -0.023012435, -0.011057924, -0.01884135, 0.0069453116, 0.028249031, 0.00084217585, 0.010473192, -0.004489439, 0.05192416, -0.022947464, 0.0022950713, 0.014501343, 0.034538142, -0.0042652916, 0.01311098, -0.015034098, 0.012090949, 0.036513235, -0.032407124, -0.022895489, 0.02225878, 0.0052658324, -0.01964698, 0.014423378, 0.0398657, -0.00049539754, 0.0050092004, -0.00982349, 0.034668084, -0.03581156, 0.00420357, -0.043945823, -0.03848833, -0.009810496, 0.03729288, 0.032407124, 0.04277636, 0.032251194, 0.018802367, 0.0043205163, 0.006906329, -0.012955053, 0.010369239, 0.014891163, 0.019374106, -0.0057433634, -0.035577666, 0.012201399, 0.040333483, -0.0416069, 0.03459012, -0.02006279, 0.0078094145, -0.008543578, -0.0012563607, 0.043581992, 0.03461611, 0.024402797, -0.0026848924, -0.013942599, -0.009706544, -0.05236596, 0.028612863, -0.059460703, -0.020751473, 0.034746047, -0.07323438, -0.00086329115, -0.0080627985, -0.01352679, 0.008101781, 0.050494816, -0.032407124, 0.02772927, -0.0043659955, 0.03503192, 0.024324832, -0.04376391, -0.03620138, 0.00031185683, 0.00020424998, -0.035993475, -0.028249031, -0.010798043, 0.06029232, 0.03944989, 0.01729506, -0.03121167, -0.013370861, -0.0077184564, 0.044907384, -0.050260924, 0.055094708, -0.022323752, 0.021284228, -0.003927447, 0.021972911, -0.026845675, 0.06122789, -0.000037002545, -0.010856516, -0.0093427105, 0.009063339, -0.011135887, -0.03362856, 0.02892472, 0.033004846, 0.049325354, 0.0074260905, -0.011408762, 0.01600865, 0.05665399, 0.013007029, 0.045531098, -0.0053827786, 0.04438762, 0.018958297, -0.004645367, -0.011597176, 0.049585234, 0.05665399, 0.028171066, -0.008465613, -0.024740642, 0.00088440644, -0.009752023, 0.011031935, 0.012500261, -0.01609961, 0.007146719, -0.05301566, -0.017619912, -0.0015812116, -0.04280235, -0.016437454, 0.011408762, 0.030925803, 0.03510988, 0.00875798, 0.022245787, 0.017723864, 0.026040046, 0.011389271, -0.0044991844, 0.024233874, -0.020374646, 0.040177554, -0.013370861, 0.025403338, -0.013682718, -0.008874926, 0.0012108816, -0.077288516, -0.031601492, 0.00044870024, 0.006081208, -0.017671887, -0.018607458, -0.021570098, -0.03739683, -0.039241984, -0.007848397, -0.034901977, 0.00901786, 0.036487248, -0.009160794, 0.006432047, 0.041918755, 0.0064840233, 0.034901977, 0.014072539, 0.049091462, 0.019569015, 0.07765235, 0.048883557, -0.017801827, 0.0082772, 0.0077314507, -0.016905239, -0.00025825645, 0.0102328025, 0.023246327, 0.0077769295, -0.056342132, -0.07869187, 0.006873844, 0.0053178086, -0.0061981543, -0.061799627, 0.016203562, 0.03082185, -0.036591202, -0.007211689, 0.10696689, 0.03742282, -0.010083371, 0.0006216833, -0.0014805078, -0.056498062, -0.016125597, -0.019205183, 0.03521383, -0.040307496, -0.03282293, 0.011051427, -0.021050336, 0.005434755, -0.0047363257, -0.013864635, -0.0042393035, 0.01958201, 0.026494836, 0.024168905, 0.030328076, -0.022635609, -0.038982105, 0.024649683, 0.039631806, -0.0050546792, 0.072454736, 0.07910768, -0.019491052, 0.011220349, -0.015306973, 0.028586876, -0.020491593, -0.013929605, 0.01622955, 0.010551156, -0.02306441, -0.039501864, 0.0073871086, -0.031705443, -0.0039241984, -0.026156992, -0.023922017, 0.0006671625, -0.063618794, -0.03313479, -0.0055029737, 0.0017135883, -0.0016291271, -0.020712491, -0.0036675662, -0.04267241, 0.189505, 0.0468305, 0.060500223, 0.016905239, 0.05951268, 0.03944989, -0.007978337, -0.010642114, -0.017087156, -0.053223565, 0.01019382, -0.010265287, 0.018724404, 0.0040996177, -0.054834824, 0.023246327, -0.037240904, -0.0059252796, -0.024753636, -0.064658314, -0.046778522, 0.041321028, 0.020335663, 0.03913803, 0.03347263, -0.00036099053, -0.004827284, -0.068972334, 0.011337295, -0.052807756, 0.002694638, -0.036799107, 0.033030834, -0.018880332, 0.0005587435, 0.026455855, 0.012773136, -0.035577666, 0.009271244, -0.021024348, -0.026533818, -0.024493756, 0.009355705, 0.003911204, -0.014150503, 0.008348667, -0.006769892, 0.014137509, -0.004629125, -0.03742282, 0.006532751, -0.07734049, 0.0051846197, -0.038722225, -0.07552133, 0.0029935008, -0.045245226, -0.055302612, 0.018659433, 0.02837897, -0.013604754, 0.0072961506, -0.010538162, 0.01507308, -0.023376267, 0.023428245, -0.036981024, 0.017762845, -0.008017319, -0.018997278, -0.018191649, -0.0061364328, -0.0040216534, -0.0059999954, 0.004837029, 0.035317786, 0.0060942024, 0.063202985, -0.023662137, -0.05252189, -0.002944773, -0.002701135, 0.02947047, -0.009609088, 0.00969355, 0.024441779, -0.031003766, 0.035837546, -0.001960475, 0.029652387, 0.041892767, 0.07838002, 0.007465073, 0.018009732, 0.011993494 ]
model.compile(optimizer=Adam(3e-5)) # No loss argument! model.fit(tf_dataset) Train in native PyTorch
[ 0.022692079, -0.022925716, -0.031803954, 0.0016610192, -0.011302232, -0.0222102, 0.0066185226, -0.020268084, 0.014208103, 0.04818781, 0.03317658, 0.009958814, 0.02320316, -0.045939047, -0.0126310475, 0.02073536, -0.02257526, -0.03370226, -0.09211173, 0.0067754984, -0.01893927, -0.00431865, -0.06022016, -0.040915832, -0.053882733, -0.021202637, -0.03869627, 0.03072338, 0.03936798, 0.026517898, -0.057650145, -0.006337427, -0.004548637, -0.016997155, -0.020209676, -0.030372923, -0.034607608, 0.005669369, -0.073595926, -0.02825558, 0.0065382095, 0.003855025, 0.028313989, -0.03116145, -0.045734614, 0.014887113, -0.015171859, -0.011740303, -0.0020662348, -0.029584395, 0.011119702, 0.05683241, 0.0016619319, -0.010966377, -0.010134042, -0.00783417, -0.00317784, -0.003221647, -0.045062903, -0.026430285, 0.019932231, 0.023670437, -0.007768459, -0.029905647, 0.013952562, 0.011842519, -0.015828965, 0.020749964, -0.024269134, 0.008111615, -0.046727575, 0.0058080913, -0.026912162, -0.023655834, -0.020720758, 0.027919725, 0.030022467, 0.020939793, -0.024955444, 0.031015428, 0.001625426, 0.03466602, -0.0019220365, 0.01406208, -0.05195522, -0.052013632, 0.058263443, -0.03974764, -0.012784372, -0.018910065, -0.026547102, 0.009783586, -0.024809422, 0.007680845, 0.031979185, 0.036126256, -0.0073340386, 0.021596901, -0.018837053, -0.023670437, 0.06454246, 0.090242624, 0.013105624, 0.019099895, -0.041237082, -0.03992287, 0.033351805, -0.019713195, -0.04979407, 0.003170539, -0.0010833131, 0.034373973, 0.010447993, 0.020837577, -0.0028784915, 0.048363037, -0.026138237, 0.0073924484, -0.034782838, -0.01585817, 0.04719485, -0.034111127, -0.023188557, -0.06378314, 0.04658155, -0.048596676, -0.03265089, 0.035191704, -0.0016865734, -0.017055564, 0.01128763, 0.023232365, -0.011032088, 0.026269658, 0.033585444, -0.011893627, -0.011506665, 0.018720234, 0.03603864, -0.012820878, 0.03443238, -0.00894395, -0.0138284415, 0.077743, 0.017581249, -0.039893664, 0.022414632, -0.03974764, 0.0016528054, 0.012156471, -0.06524337, 0.013215142, 0.008104313, 0.010864161, 0.010995582, -0.016062604, -0.029745022, 0.027160402, -0.010097536, 0.03498727, -0.031541113, 0.011754905, -0.01931893, 0.034519996, 0.023728846, 0.03793695, -0.00045929005, -0.031803954, 0.0138284415, -0.035250112, 0.042668115, -0.005917609, -0.003227123, -0.008870938, 0.05992811, 0.009089973, 0.06132994, 0.011119702, 0.00036574365, 0.016456867, -0.010360379, 0.005585405, 0.00005778202, -0.0022724932, 0.0009883977, -0.003201569, -0.03048974, -0.012543433, -0.011506665, 0.05534297, 0.01658829, 0.02659091, -0.031132245, 0.009849296, -0.04798338, -0.016033398, -0.025700165, 0.01252883, 0.019026883, -0.06279018, -0.0038696271, 0.060044933, -0.047837354, 0.009681369, 0.018238356, 0.0067426427, -0.0061841025, 0.036447506, 0.022049574, 0.050436575, 0.040448558, -0.0032307736, -0.0062169577, -0.0129596, 0.0104552945, 0.0045011793, 0.0027634979, -0.023685038, 0.0049648047, -0.0065966193, 0.08790625, -0.016310843, 0.018486597, -0.02381646, 0.028708253, 0.00089622027, -0.03227123, 0.024999252, 0.041908793, 0.02825558, -0.0060052234, 0.056744795, 0.017844092, 0.016442265, -0.010316572, 0.0047348174, 0.02517448, 0.033118166, 0.0120323505, 0.016281638, 0.0042529395, 0.028971095, 0.02152389, 0.013675116, 0.0037747119, -0.0071551595, -0.015171859, 0.028387, -0.07412162, 0.029131722, -0.051692378, 0.0032654542, 0.011565074, -0.03165793, -0.022852704, -0.008162723, -0.009827393, 0.0060161753, 0.021465478, 0.0058518983, 0.026693126, 0.011740303, 0.0004841597, -0.02152389, 0.045442566, 0.045997456, -0.0069507267, 0.051604763, 0.013149431, -0.016150218, -0.03072338, -0.039806053, -0.047808148, -0.03726524, -0.04774974, 0.013039913, 0.04041935, -0.054525238, 0.013558297, -0.019976038, 0.022195598, 0.0055379476, -0.027291823, 0.06267336, 0.055751838, 0.03165793, -0.040068895, 0.022107983, 0.00317784, 0.018647222, -0.026109032, -0.011893627, 0.011346039, -0.021947358, 0.0253059, 0.008440168, 0.038404226, -0.05446683, -0.021699117, 0.021450877, 0.012192977, 0.033877492, -0.004694661, 0.03116145, -0.01918751, 0.022312416, 0.014865209, -0.025203684, 0.036476713, 0.015697544, 0.007483713, 0.010725439, -0.0019640182, 0.06349109, -0.048421446, 0.019333534, 0.03706081, 0.0014365078, -0.06249813, -0.03831661, -0.03300135, 0.0058336454, -0.02399169, -0.046318706, -0.022765089, 0.03227123, -0.037528083, -0.059519246, 0.030781789, -0.05399955, 0.0007246424, 0.016661301, -0.009403924, 0.04929759, -0.009082672, 0.034782838, -0.020034447, 0.022356223, -0.024210723, 0.03399431, 0.023173956, -0.021319455, 0.045559384, 0.042346865, 0.010791149, -0.02930695, 0.017975513, -0.025495732, 0.00014111819, -0.012426614, 0.0014730138, -0.014689981, 0.028839674, 0.008834432, 0.018588813, 0.0055671525, -0.035133295, 0.025262095, 0.025145276, 0.011747604, 0.0234514, 0.037907746, 0.011148907, -0.0024020893, -0.02387487, -0.008367156, -0.024707204, -0.0047165644, 0.034928862, -0.045997456, 0.010710836, -0.017245395, -0.005176539, 0.008016699, -0.017990116, -0.0114336535, 0.04269732, 0.024970047, 0.060745846, -0.018968474, -0.023918677, -0.0066915345, 0.025101468, 0.03910514, 0.028766662, 0.023173956, 0.0008382671, 0.049180772, -0.021611502, -0.010667029, 0.037119217, 0.025159879, -0.011769508, -0.005778887, -0.044215966, -0.049589638, 0.03671035, 0.06524337, 0.026269658, 0.015697544, 0.06670361, -0.05633593, -0.028518422, 0.017756477, 0.0040485063, -0.021363262, -0.03968923, 0.027131198, 0.048450653, -0.015434702, -0.021596901, 0.014295717, -0.03244646, 0.017201588, -0.017960912, -0.012331699, -0.0007757507, -0.0055452487, -0.03676876, -0.0016491548, -0.07318706, -0.07692527, -0.0394848, 0.017625056, 0.042434476, -0.027715292, 0.0061475965, -0.004344204, 0.050319757, 0.016194025, 0.022327019, -0.04225925, -0.0114336535, -0.0022688427, -0.058730718, 0.005596357, 0.024312941, -0.032621685, -0.01129493, -0.03814138, -0.023392992, 0.025378913, -0.008031302, 0.025335107, 0.018165344, 0.018471994, -0.02110042, -0.01616482, -0.0050560697, 0.035629775, 0.014784897, -0.06489292, 0.04147072, -0.029569793, -0.016194025, -0.021611502, 0.0035940076, 0.017756477, 0.029934851, 0.021757526, -0.042784933, 0.0030810994, 0.011251124, -0.036739554, -0.027277222, -0.0053262133, 0.030635765, -0.010959076, 0.053327844, 0.010046428, -0.00043533306, 0.025904598, 0.01893927, -0.027598472, -0.014821402, -0.030810993, 0.00857889, 0.001770537, 0.012258687, 0.0228381, -0.035250112, 0.022604464, -0.02104201, 0.01740602, 0.006903269, -0.07902801, -0.030694176, 0.034841247, -0.029657407, 0.027321028, 0.014441741, -0.03720683, 0.016179422, 0.0008870938, 0.027291823, 0.014449042, -0.03288453, -0.011200015, 0.060745846, 0.029905647, 0.017990116, -0.04220084, -0.04392392, 0.050202936, -0.0067827995, 0.03232964, -0.026999775, 0.00314681, 0.008629999, 0.0035264716, -0.044186763, -0.00015594871, 0.0065601133, 0.009754381, 0.010944474, -0.029905647, -0.017479032, -0.0061037894, -0.024356747, 0.05084544, -0.02739404, -0.053298637, -0.03177475, 0.016792722, 0.025641756, -0.0065126554, 0.011952037, -0.030197695, -0.021888947, -0.007439906, 0.04658155, -0.030957017, 0.015376292, -0.029730419, -0.044391196, 0.020209676, 0.034198742, 0.0011590628, -0.039134342, 0.017844092, -0.05286057, 0.027160402, -0.067754984, 0.0132297445, -0.010915269, -0.028430808, -0.03048974, 0.03968923, -0.008863636, 0.013054516, 0.0308402, 0.025700165, 0.010207054, 0.02622585, -0.06868953, 0.00746546, 0.0024477218, 0.014697282, -0.006373933, 0.018676426, -0.026853753, 0.0054284297, -0.022867307, 0.03726524, -0.025203684, 0.016033398, -0.027715292, -0.013850345, 0.03238805, -0.013813839, 0.039251164, -0.029993262, 0.005150985, 0.0066805827, 0.055927064, 0.015887376, 0.014901715, 0.0086373, -0.09304628, 0.028036544, -0.022297814, 0.00060280395, -0.02215179, 0.014762993, 0.06641156, -0.037528083, 0.007688146, 0.040302534, 0.0088782385, 0.013237045, -0.034461584, 0.027014378, 0.014945522, 0.001431032, -0.024035495, 0.013726225, -0.040828217, -0.020676952, -0.0030226898, -0.03811218, -0.021334058, 0.03635989, -0.010433391, -0.022122586, 0.0684559, -0.023217764, -0.036564328, -0.026211249, 0.018953873, 0.02813876, 0.038404226, 0.01930433, -0.009783586, -0.005793489, 0.0604538, -0.022546055, 0.0006685146, 0.004369758, 0.05706605, -0.007673544, -0.03317658, 0.000012862632, 0.011718399, -0.029657407, -0.06337427, -0.0014511102, 0.02894189, -0.014397933, 0.01907069, -0.002553589, -0.028299388, -0.027437847, 0.006359331, 0.046435528, -0.025320504, -0.009141082, 0.03399431, -0.027101994, -0.06793021, -0.010718137, 0.012696758, -0.06430882, -0.029248541, -0.033906695, -0.02257526, -0.01387955, -0.037528083, 0.066294745, -0.02597761, 0.019377341, 0.016559083, -0.0023455052, 0.06769657, 0.006881365, 0.02628426, -0.021640707, -0.028460013, -0.019844616, 0.008973154, 0.00038559374, -0.024561182, 0.042142432, 0.010265464, 0.0143541265, 0.0055050924, 0.06547701, -0.040945034, -0.04947282, -0.013689719, -0.024853228, -0.041295495, 0.056365136, -0.022487644, -0.004493878, 0.04120788, 0.014536656, -0.013003408, -0.005910308, 0.00031303824, -0.068747945, -0.031511907, -0.044332784, 0.029774226, -0.038842294, 0.010557511, -0.033322603, -0.03837502, 0.013456081, 0.041003447, 0.014682679, 0.00013883656, 0.016924143, 0.04468324, -0.025524937, 0.030022467, -0.026167441, 0.007600532, 0.0030774488, 0.024093905, -0.022414632, 0.009265202, 0.05779617, -0.02683915, 0.014865209, 0.00974708, -0.022034971, -0.023947882, -0.004910046, 0.027175004, -0.01733301, -0.005052419, 0.0045741913, 0.028299388, -0.061621986, -0.019523364, -0.025802381, -0.0296136, 0.007936386, 0.015828965, 0.027467052, 0.048158605, -0.016865734, 0.028854277, 0.017055564, 0.03326419, -0.0011207317, 0.019976038, 0.07552344, 0.00881983, -0.027832111, 0.0056000077, 0.009586453, 0.02647409, -0.020968998, 0.034578405, 0.0011773158, -0.012236783, 0.009805489, -0.0023929628, -0.022254007, 0.04269732, 0.015201064, -0.036943987, 0.023787254, -0.0087322155, -0.051984426, 0.027948929, -0.032066796, -0.01869103, -0.013609406, -0.060512207, -0.014025574, -0.041879587, -0.005603658, 0.0072646774, -0.007534821, 0.013872248, -0.031190656, -0.022808896, -0.005570803, 0.0010349427, -0.020574735, -0.04231766, -0.01524487, 0.00092451234, -0.024356747, -0.014273814, -0.02672233, 0.038754683, 0.0040850122, -0.04202561, -0.04220084, -0.019508762, 0.001894657, 0.032621685, -0.032680098, 0.0034516344, -0.022049574, 0.029467575, -0.053327844, -0.0010833131, -0.059694476, 0.037732515, 0.014616969, -0.005632863, 0.01450015, 0.032183617, 0.046932008, -0.026882958, 0.005074322, 0.039572414, 0.022107983, -0.0172746, 0.026561705, 0.029759623, 0.044245172, 0.019610979, 0.012762468, -0.005848248, 0.03627228, 0.03793695, -0.041120265, -0.023159353, 0.01869103, 0.041237082, -0.0026138236, 0.004534035, -0.045296542, -0.021582298, -0.001132596, 0.040273327, 0.051166695, 0.0016573686, 0.022093382, -0.01931893, -0.02425453, -0.010097536, 0.018179946, -0.019406546, 0.019333534, 0.025685564, 0.038258202, 0.025203684, 0.04202561, -0.029219335, 0.013426877, 0.03714842, -0.0082065305, 0.020209676, 0.0028091304, 0.01635465, -0.021640707, 0.027832111, -0.027423244, -0.0022779691, -0.045530178, -0.06033698, -0.03326419, 0.06524337, 0.0016427663, -0.02177213, -0.02825558, -0.010316572, -0.014135091, -0.04868429, -0.022443838, -0.07201887, -0.023349185, 0.03399431, -0.011214618, -0.02461959, 0.012309795, -0.010323874, 0.0019475906, -0.028708253, 0.042463683, 0.0016747089, 0.07657481, 0.020939793, -0.023217764, -0.0009601056, -0.005220346, -0.008797926, -0.031249065, -0.0022177345, 0.028430808, -0.03183316, -0.015901977, -0.046289504, 0.027832111, 0.009455033, 0.010272765, -0.027189607, 0.03554216, -0.005840947, -0.031249065, -0.022049574, 0.08124757, 0.0036104352, 0.008776022, -0.012864685, -0.0055452487, -0.057095256, -0.029569793, -0.01585817, 0.06267336, -0.027481655, -0.05867231, -0.011178112, -0.019713195, 0.000681748, -0.029832635, -0.025028456, -0.014361428, 0.027583871, 0.03726524, 0.06524337, 0.032738507, -0.026576307, -0.021567695, 0.03475363, 0.019129101, 0.015215666, 0.044712447, 0.04640632, 0.007564026, -0.028270181, 0.019640183, 0.029847238, 0.014485547, -0.014040176, -0.011156208, -0.033351805, -0.025802381, -0.04830463, -0.010192452, 0.022064175, -0.0234514, -0.0031376835, -0.020165868, -0.018793246, -0.06460087, 0.019464955, -0.025101468, 0.032417253, -0.032972146, -0.040623784, -0.0074618096, -0.04412835, 0.25396436, 0.052159652, 0.025086867, 0.011010185, 0.045647, 0.046289504, -0.0021812285, -0.0038294706, 0.016632095, -0.042113226, -0.018048525, -0.018866258, 0.013989068, 0.03770331, -0.0228235, 0.03326419, -0.026999775, 0.01955257, -0.028240977, -0.032008387, -0.01733301, 0.04608507, 0.029467575, 0.049998503, 0.012105362, -0.060629025, -0.017595852, -0.06828067, 0.026065225, -0.021640707, 0.0031048283, -0.011273027, 0.023057137, 0.000959193, 0.007428954, 0.04114947, -0.0065491614, -0.028401604, -0.016559083, -0.01702636, -0.02486783, -0.04412835, 0.013733526, -0.008491276, -0.0074983155, 0.018793246, -0.0060052234, 0.015347088, 0.053649094, -0.04199641, 0.05911038, -0.06880635, -0.030752584, -0.01376273, -0.06489292, -0.011565074, -0.050261345, -0.041120265, -0.031862363, 0.059869703, -0.0072829304, 0.020501724, -0.020983601, 0.046552345, 0.0009938736, 0.0026174742, -0.038521044, 0.045793023, -0.024342146, -0.013419575, 0.019377341, 0.024502771, -0.032066796, -0.003103003, -0.015493111, 0.02578778, 0.0053663696, 0.03326419, -0.022122586, -0.06284858, 0.032680098, -0.0008054118, 0.03238805, -0.0022870956, 0.03338101, 0.031511907, -0.01826756, -0.0012886588, 0.010805751, 0.021304853, 0.010170548, 0.039397184, 0.028679049, 0.008556987, 0.05189681 ]
Train in native PyTorch [Trainer] takes care of the training loop and allows you to fine-tune a model in a single line of code. For users who prefer to write their own training loop, you can also fine-tune a 🤗 Transformers model in native PyTorch. At this point, you may need to restart your notebook or execute the following code to free some memory: py del model del trainer torch.cuda.empty_cache() Next, manually postprocess tokenized_dataset to prepare it for training.
[ 0.004903862, -0.057421595, 0.0298765, 0.03215034, -0.00402239, 0.001226865, -0.0044433377, -0.0025724587, -0.0027181713, 0.021802938, 0.014089159, -0.004616034, 0.0031139343, -0.02518491, -0.030855114, 0.0032974244, -0.014564075, -0.030106762, -0.03856889, -0.0018978629, -0.008490913, 0.048585292, -0.06821513, -0.027098965, -0.040785164, 0.008692392, -0.054716017, 0.0022360603, 0.04000803, 0.036841925, -0.01457127, -0.004925449, 0.01405318, -0.010836707, -0.00008702286, -0.018680008, 0.0028944658, 0.0015003011, -0.028682016, -0.0066272295, 0.02214833, 0.003281234, 0.008102345, -0.005648616, -0.02580374, 0.020565279, -0.0057277684, 0.030279458, -0.030077979, -0.025746174, -0.016881086, 0.0040835533, 0.039806552, 0.009591853, -0.039633855, -0.02476756, -0.016981825, -0.0067639477, -0.055090193, -0.023472337, 0.017183306, 0.020147929, -0.0029070582, -0.034452956, 0.015369991, -0.008872285, -0.002061565, -0.0348847, -0.045390405, -0.0074979076, -0.013175306, 0.0151541205, -0.032927472, -0.039000634, -0.05287392, -0.0015173908, 0.011311622, -0.0079152575, -0.02862445, 0.044008832, -0.012354998, 0.042569693, 0.02715653, -0.010714381, 0.002565263, -0.025631044, 0.025515912, 0.02683992, -0.0036482143, 0.0068431, -0.03476957, 0.013938049, -0.05733525, -0.007533886, 0.029934065, 0.041447166, -0.01922688, 0.041216906, 0.033560693, -0.046944674, 0.042857524, 0.059695434, -0.039144546, 0.027199704, 0.01358546, 0.01044814, 0.062113184, 0.005202483, -0.035143744, -0.0030527709, 0.0042130756, 0.00360504, 0.03802202, -0.010469727, -0.017025, 0.042022824, 0.006634425, -0.015125338, -0.054025233, -0.0120168, 0.01817631, -0.025846913, 0.011138926, -0.065164156, -0.005439941, -0.04190769, 0.04564945, 0.033992432, -0.003698584, -0.013801331, 0.0069510355, -0.0070229922, 0.009239265, 0.0075266906, 0.02017671, 0.0022036796, -0.04009438, -0.0046664043, 0.032553297, -0.009116937, 0.019543491, -0.010779141, -0.03217912, 0.049276076, 0.0009984018, -0.018435355, 0.02601961, 0.0028135143, -0.02915693, 0.009584658, -0.067063816, 0.03865524, 0.018248267, -0.0031481138, -0.037993237, -0.012937848, 0.024307037, -0.005177298, -0.012160714, 0.017830918, -0.021371195, -0.020752367, -0.017183306, 0.03499983, 0.042915087, 0.05534924, -0.020349408, -0.005270842, 0.005655811, -0.02171659, 0.037360016, -0.015960038, 0.0047059804, 0.019399578, 0.039317243, 0.01806118, 0.026393786, 0.0063070212, 0.03215034, 0.029934065, -0.021543892, 0.0003172849, 0.04576458, -0.0028566883, 0.0013177105, 0.008764349, -0.016262257, 0.027343618, -0.011045382, 0.025156127, 0.058889516, 0.029962849, -0.020694802, 0.008534087, -0.011635429, 0.011570668, -0.049160946, 0.069481574, 0.021140933, 0.010253857, -0.02663844, 0.03730245, -0.07690752, -0.0036626055, -0.014636031, 0.02568861, 0.019601056, 0.036525317, -0.011721777, 0.070229925, 0.037964456, 0.034942266, -0.02361625, 0.015542688, -0.0065085003, -0.0007096748, -0.010901469, 0.013499112, -0.044008832, -0.010160313, 0.041447166, 0.021846112, 0.014751162, 0.042339433, 0.0021425164, -0.028811539, 0.014362595, 0.044354226, 0.06712139, 0.04970782, 0.009210481, 0.034712, 0.010196291, 0.0589183, 0.0136070475, 0.0049182535, 0.060040828, 0.040468555, 0.01280113, 0.004655611, -0.0009183498, 0.013376785, 0.033359215, 0.0024393385, 0.010613641, 0.027070181, 0.025760567, 0.020838715, -0.02924328, 0.006825111, -0.048470158, 0.018953444, 0.0061127376, 0.01860805, -0.036899492, -0.052442178, 0.008354194, 0.022911074, -0.025544696, 0.004741959, 0.024321428, 0.03499983, 0.023414772, 0.015067772, 0.042080387, 0.055637065, -0.021241674, 0.026696006, -0.010203486, -0.007278439, -0.041130558, -0.09060811, -0.04783694, -0.0006255752, -0.05106061, -0.024206297, -0.01765822, -0.03856889, 0.03122929, -0.012275845, -0.032351818, -0.019989623, -0.029272063, 0.04838381, 0.027775358, 0.032812342, -0.023515511, 0.023846513, 0.004418153, 0.019989623, -0.04970782, 0.012354998, -0.002288229, -0.014175507, -0.0030617656, 0.0005994908, 0.0010784538, -0.04941999, -0.018780747, -0.015801733, -0.04349074, 0.037129752, -0.0058105187, 0.020349408, -0.024235079, 0.0332153, 0.054716017, -0.021342413, 0.057939686, 0.040698815, -0.0005693589, -0.002313414, 0.02017671, -0.00013075916, -0.03465444, -0.0064113587, 0.02443656, 0.034712, -0.034452956, -0.041619863, -0.067812175, 0.014909467, -0.004677198, -0.023932861, -0.020320626, 0.020378191, -0.030567287, -0.069711834, 0.024263863, -0.060040828, -0.028365405, -0.03476957, -0.02173098, 0.03551792, 0.014355399, 0.00480672, -0.02381773, -0.01974497, 0.010707185, 0.021846112, 0.031920075, -0.038079586, 0.0007465527, 0.026494525, 0.01587369, 0.012988218, 0.020234277, -0.015600253, -0.0030365807, 0.012880283, 0.049189728, 0.01921249, 0.0045224903, 0.021054585, 0.018651225, -0.00092194765, -0.041504733, 0.025774958, 0.034251478, 0.02174537, 0.015240469, 0.010779141, -0.0052744397, -0.050312255, -0.025875697, -0.03151712, -0.0070877536, -0.0026300242, 0.044670835, -0.030221893, 0.012750761, 0.013211285, -0.013988419, 0.01860805, -0.023098161, -0.01044814, 0.054773584, 0.02725727, 0.05068643, -0.024307037, -0.032553297, 0.0190254, 0.013599852, 0.008872285, 0.051549915, 0.07472003, 0.011822517, 0.010779141, -0.014391378, -0.023141336, 0.045908496, -0.0010910463, -0.020133538, 0.0026030403, -0.039000634, -0.045678232, 0.026767962, 0.04334683, 0.031315636, 0.054600887, 0.06343719, 0.003283033, -0.013621439, 0.032956254, -0.014089159, -0.004324609, -0.028897887, 0.043519527, 0.016147126, 0.017543089, -0.024825126, 0.0016577068, 0.000107148306, 0.015744166, -0.004670002, 0.01692426, -0.03289869, -0.01744235, 0.014981424, 0.025084171, -0.037993237, -0.047174934, 0.011692994, -0.019054184, 0.03842498, -0.056442983, -0.00015695597, -0.006566066, 0.04576458, 0.05986813, -0.016981825, -0.055406805, 0.0045440774, -0.020349408, -0.06067405, 0.03646775, 0.022306636, -0.047462765, 0.0005815016, -0.015240469, -0.014636031, 0.015499514, -0.026278656, 0.016147126, -0.01008116, -0.009584658, -0.008023193, 0.008886675, -0.021802938, -0.0057421597, -0.014305029, -0.036669232, 0.03750393, -0.06130727, 0.03560427, -0.0073647876, 0.00038946664, -0.004076358, 0.053017836, -0.015485122, -0.019126141, 0.012664412, -0.009742962, -0.01849292, -0.02999163, 0.0298765, 0.019500317, -0.017960439, 0.028077578, -0.012506107, 0.012297432, 0.028163927, 0.022608854, -0.008123932, -0.006353793, -0.04334683, 0.0033423975, -0.051146954, -0.03730245, 0.052096788, -0.014729575, 0.0315459, -0.026465744, 0.016996216, -0.006400565, -0.045102578, -0.025530305, -0.0011935849, -0.037561495, 0.007120134, -0.007008601, 0.0027595467, 0.0151541205, -0.021788545, 0.024206297, 0.023932861, -0.020666018, -0.025055388, 0.039777767, -0.0062098796, -0.0013006207, -0.039230894, -0.08404565, 0.056040023, -0.0048750793, 0.023544293, -0.011592255, -0.0017116745, 0.034942266, -0.0021155325, -0.010476923, -0.01164982, -0.007742561, 0.035143744, -0.014197094, -0.020219885, -0.015902473, -0.037273668, -0.0052348636, 0.04982295, -0.030279458, -0.03174738, -0.018982228, 0.0047131763, 0.020421365, -0.019500317, 0.04242578, -0.05273001, -0.027746577, 0.005594648, 0.05192409, -0.032035206, 0.011585059, -0.03134442, -0.06556711, 0.032092772, 0.040554903, 0.009232068, -0.05367984, 0.031977642, -0.053852536, -0.015197295, -0.04265604, -0.0021551088, 0.0030437764, -0.0237026, -0.03114294, 0.054082796, -0.0125564765, 0.01159945, -0.0055190935, -0.031603467, 0.0027019812, 0.043922484, -0.022666419, 0.010527292, -0.013045784, 0.023385989, 0.008915459, 0.009476722, 0.0062494557, 0.024163123, -0.026998224, 0.0054507344, -0.0076202345, -0.019413969, -0.0057133767, -0.018233875, 0.07518055, -0.03520131, -0.026897484, -0.038079586, 0.016679607, -0.025861306, 0.0480672, -0.02193246, -0.01253489, -0.013412764, -0.065164156, 0.034280263, -0.040871512, -0.03790689, -0.005832106, 0.031200506, 0.06723651, -0.05704742, 0.012052779, 0.030999027, -0.012570868, -0.0067387624, -0.043893702, 0.025789348, 0.003720171, -0.05131965, 0.009908464, -0.01703939, -0.068502955, 0.018046787, -0.014312225, -0.03229425, -0.030797549, 0.006979818, 0.054284275, -0.014384182, 0.058889516, 0.006033585, -0.029531106, -0.078692056, 0.016938651, 0.0058105187, 0.053996447, -0.008498108, -0.013146523, 0.008001606, 0.020075971, -0.0013240067, -0.027861707, -0.0042598476, 0.060731612, -0.0063717826, -0.03479835, 0.008253455, 0.04553432, -0.03946116, -0.047923286, 0.025731783, -0.0060731615, -0.039806552, -0.014081963, 0.018881487, 0.006339402, -0.06245858, 0.007123732, 0.034251478, -0.01405318, -0.0057025836, 0.025875697, 0.0104553355, 0.0058644866, -0.0087571535, 0.019284446, -0.04818233, -0.0043749786, -0.037676625, -0.047146153, 0.0015353801, -0.01091586, 0.052557312, 0.010901469, 0.012865892, -0.00015493218, -0.0017098755, 0.050859127, -0.01732722, -0.014017202, 0.011966431, -0.013132132, -0.059580304, 0.0020705594, 0.007886475, -0.016391778, -0.023170117, -0.022407375, 0.0150389895, -0.021644631, 0.05034104, -0.028250273, -0.06337963, 0.011613842, -0.020248668, -0.06153753, -0.00014852351, -0.041821342, -0.014823119, 0.034424175, 0.01023227, -0.03874159, -0.0063250107, -0.00092374656, -0.019831318, 0.028020011, 0.012520499, -0.017946048, -0.008706784, -0.020565279, -0.051262088, 0.008800328, 0.011045382, 0.031200506, -0.027314834, 0.00504058, -0.0140459845, 0.026883094, 0.02004719, 0.00065885525, -0.042972654, -0.032121554, -0.019802535, 0.008606044, -0.0073899725, -0.0015623639, 0.07851936, -0.022004416, 0.022695202, 0.008800328, -0.009469527, -0.02017671, 0.008922654, 0.038165934, -0.05034104, 0.012081562, -0.021097759, 0.03102781, -0.049448773, -0.018277049, -0.03476957, -0.012707586, 0.01003079, 0.0017242669, 0.019039793, 0.04544797, 0.02830784, 0.031315636, 0.0017170713, -0.0025094964, -0.017140131, -0.004839101, 0.047808155, -0.010728772, -0.031056592, -0.0026174318, -0.036899492, 0.015110946, -0.012772348, 0.0054219514, 0.0228679, -0.032553297, -0.0065732617, 0.021241674, -0.0008216577, 0.031171724, 0.024594864, -0.024738777, 0.023529902, -0.015053381, 0.0032902288, 0.0036662035, -0.065854944, -0.029200105, 0.0106280325, -0.04147595, -0.0054363427, -0.05117574, -0.011872887, -0.0457358, -0.007584256, 0.02047893, -0.0043210112, 0.043721005, -0.0006813418, 0.010959034, -0.0071669063, -0.013405568, 0.023976035, -0.023673816, -0.017284045, 0.011721777, -0.0053068204, 0.04354831, 0.011174905, -0.02830784, -0.043174133, -0.01555708, -0.012146323, 0.045505535, 0.009678202, -0.0015479726, -0.032956254, 0.02121289, -0.029818933, -0.020723583, -0.053651057, 0.002567062, 0.021975633, 0.014736771, 0.02078115, 0.03779176, 0.020752367, -0.012880283, -0.010556076, 0.030912679, 0.039864115, -0.048239898, -0.022191504, -0.00006256876, 0.03957629, 0.02695505, 0.008973024, -0.011844104, 0.005785334, -0.028883494, 0.008368586, -0.044987448, 0.006519294, 0.0034557295, 0.038396195, -0.013650222, -0.003979216, -0.058659256, -0.005069363, 0.00831102, 0.04501623, 0.012988218, 0.003585252, 0.015931254, -0.032092772, -0.02915693, -0.008008801, -0.06919374, 0.025256868, 0.014636031, 0.017730176, 0.03456809, 0.039086983, -0.007980019, 0.008562869, 0.023932861, 0.009311222, 0.035086177, 0.0052276677, 0.04645537, -0.03583453, 0.028336622, -0.03405, 0.024652429, -0.042339433, -0.018248267, 0.0181907, 0.058054816, -0.0116210375, -0.017543089, -0.00892985, -0.029401584, -0.05745038, -0.047808155, -0.0047959266, -0.04000803, 0.01931323, 0.030106762, -0.045937277, -0.060731612, 0.016017603, -0.03750393, 0.025674218, -0.0151541205, 0.03520131, 0.037331235, 0.046541717, 0.0045980453, -0.040151943, 0.0018187104, 0.026523309, 0.013909266, -0.043289263, -0.03019311, 0.014866293, -0.009764549, -0.00569179, -0.026408179, 0.021399979, 0.052672442, -0.010318617, -0.033387996, 0.03948994, 0.028682016, -0.021543892, 0.0010011002, 0.06090431, -0.014672009, 0.026681613, 0.055521935, -0.013592656, -0.07679239, -0.009224873, -0.0057457574, 0.015902473, 0.013563873, -0.07299307, -0.022076374, -0.027386792, 0.028897887, -0.0008522394, -0.015643427, -0.048527725, 0.020018406, 0.03459687, 0.06217075, 0.033445563, -0.022133939, -0.0025382792, 0.058630474, 0.020450147, 0.02758827, 0.066373035, 0.04959269, -0.031603467, -0.0006390671, -0.014995815, 0.058947083, -0.01206717, -0.006958231, -0.002959227, -0.037964456, -0.029113756, -0.05034104, -0.0110669695, 0.058716822, 0.026465744, 0.0045045014, 0.0021479132, 0.029502325, -0.039029416, -0.0005572162, -0.016996216, 0.0323806, -0.004069162, -0.00804478, 0.011772146, -0.08790253, 0.24476855, 0.090665676, 0.059580304, 0.009131329, 0.018161919, 0.03551792, -0.0013258057, 0.0002401561, -0.043692224, -0.01690987, -0.014736771, -0.011556276, -0.03436661, 0.040180728, -0.011002208, 0.031373203, -0.024781952, 0.021515109, -0.0061882925, -0.018708792, -0.01577295, 0.033531908, 0.05264366, 0.06510659, -0.003378376, -0.026580874, 0.049765382, -0.064646065, -0.013096154, -0.01817631, 0.018161919, -0.049477555, 0.03312895, -0.019471534, -0.021918068, -0.014182703, -0.04274239, -0.065164156, 0.041245688, -0.019975232, 0.0038101173, -0.046196323, 0.040785164, -0.0041303253, -0.010721576, -0.030480938, 0.018881487, 0.051348437, 0.046887107, -0.082491376, 0.014197094, -0.05068643, 0.024897084, -0.064703636, -0.07207202, -0.020378191, -0.028969843, -0.048470158, 0.00365541, 0.050628867, 0.004353392, 0.037590276, -0.011757756, 0.0023367999, 0.0073575918, 0.0031355214, 0.0038568892, 0.0323806, -0.019529099, -0.015010207, 0.009390374, -0.025040997, -0.02234981, -0.0071525145, -0.016665215, 0.019543491, 0.022551289, 0.009627831, -0.026177917, -0.028984234, 0.051693827, -0.020392582, -0.017370393, 0.006616436, 0.020335017, 0.07880718, -0.050053213, 0.0021425164, 0.030912679, 0.017917264, 0.03217912, 0.01942836, 0.044037614, -0.0059508346, 0.037043408 ]
Remove the text column because the model does not accept raw text as an input: tokenized_datasets = tokenized_datasets.remove_columns(["text"]) Rename the label column to labels because the model expects the argument to be named labels: tokenized_datasets = tokenized_datasets.rename_column("label", "labels") Set the format of the dataset to return PyTorch tensors instead of lists: tokenized_datasets.set_format("torch")
[ 0.010380091, -0.03399293, 0.009371953, 0.009020971, -0.011134327, 0.0007617045, 0.0090060355, 0.0030804228, -0.011888565, 0.017832847, 0.025658987, 0.02594276, 0.010454768, -0.028601257, -0.033664353, -0.0014067263, -0.008094978, -0.037308585, -0.042745065, 0.00860278, -0.008647586, 0.036442336, -0.08232383, -0.017668558, -0.027675264, 0.008154719, -0.02966167, 0.026316144, 0.056425877, 0.00828167, -0.0031887041, 0.0024326004, 0.004727049, -0.017877653, -0.012075257, -0.019759512, 0.016130213, 0.017997136, -0.04836077, -0.016608145, 0.018773776, 0.007042033, 0.014539595, -0.0039317394, -0.06708974, 0.013904842, -0.002468072, 0.02674927, -0.0036890395, -0.038891736, -0.024060901, 0.0105518475, 0.026988236, 0.013247685, -0.026301209, -0.00009678828, -0.009222599, -0.0032820504, -0.055738848, -0.043939896, 0.0015084737, 0.0064595533, -0.016384115, -0.044328216, 0.021432275, 0.014741222, -0.0035938264, -0.034202028, -0.056007687, -0.049824435, -0.022358268, 0.0157867, -0.014375306, -0.031633142, -0.06959888, 0.0032148412, 0.048271157, 0.0022552428, -0.042685322, 0.01639905, 0.0016699625, 0.039608635, 0.016638016, -0.016608145, -0.0247778, -0.032200687, 0.050391983, -0.00044642793, 0.009506371, 0.0019658697, -0.019490674, 0.017713364, -0.029691542, -0.019445868, 0.04486589, 0.020939406, -0.004424607, 0.020625765, 0.016578276, -0.0050705625, 0.053528413, 0.09194221, 0.010955104, 0.021626433, -0.01872897, 0.026181726, 0.045045115, -0.020610828, -0.0347397, 0.0100141745, 0.01112686, 0.0019696036, 0.036770914, -0.024135578, -0.021312792, 0.047046456, 0.0029123996, 0.017310109, -0.055171303, -0.00976774, 0.00025716863, -0.022149174, 0.021626433, -0.068224825, 0.00869986, -0.06338576, 0.016130213, 0.032140944, -0.020028349, -0.020864729, 0.004402204, 0.006511827, 0.024688188, 0.023926483, 0.04328274, 0.009289808, -0.043342482, -0.00045016178, 0.022134237, -0.02241801, 0.0017894455, -0.025629116, -0.031394176, 0.04483602, 0.00042519168, -0.031812366, 0.028735677, -0.02927335, -0.020058218, -0.0051265704, -0.036681302, 0.020715376, 0.014756158, -0.0031401643, -0.021103695, -0.0296318, 0.0033268565, 0.0027630457, -0.0049510794, 0.01565228, 0.0004027886, -0.041161913, -0.015323702, 0.013449312, 0.023896612, 0.049675085, -0.025315473, -0.0037357125, 0.0007290334, -0.030617535, 0.019819252, -0.027122656, 0.03865277, 0.010828152, 0.0081621865, 0.02497196, 0.066791035, 0.0041744397, 0.009730401, 0.041878812, -0.021521887, -0.006866542, 0.025987566, 0.0063176667, -0.012799623, 0.004473147, -0.00682547, 0.02011796, -0.013090863, -0.008453427, 0.05185565, 0.04492563, -0.026151855, 0.001693299, -0.0267194, -0.021880336, -0.024598576, 0.050093275, 0.020580957, -0.027152525, -0.026286274, 0.02733175, -0.056037556, -0.018594552, -0.008894021, 0.0001751407, 0.01856468, 0.036890395, 0.009327146, 0.033515, 0.038742382, 0.032140944, -0.018415326, 0.035994273, 0.015062333, 0.004663573, 0.00018494205, 0.020760182, -0.019191967, -0.017982202, 0.023075167, 0.033276033, 0.039698247, 0.011111924, 0.022238785, 0.0026024904, 0.0073594097, 0.06207145, 0.059562307, 0.042804807, 0.0041632378, 0.044776276, 0.010424897, 0.057531096, 0.011306085, 0.0122619495, 0.040026825, 0.023179714, 0.00517511, -0.0009180593, 0.020610828, -0.0010856156, 0.019415997, 0.0024213989, 0.022343332, 0.022373203, 0.034560475, 0.024912218, -0.033066936, 0.006974824, -0.07814192, 0.015443185, 0.02846684, -0.0020722845, -0.04137101, -0.049077667, 0.0047494518, 0.015487992, -0.015181816, 0.016832177, 0.036113754, 0.013792826, 0.012747349, -0.009827482, 0.045791883, 0.06918069, -0.0123889, 0.044656795, 0.002828388, 0.00063942105, -0.041221656, -0.060697395, -0.043252867, -0.026181726, -0.0471062, -0.000117966185, -0.009536242, -0.06177274, 0.032439653, -0.022149174, 0.009648257, -0.0034015335, -0.05311022, 0.043641187, 0.027018107, 0.034978665, -0.037487812, 0.02516612, 0.0026211597, 0.040056698, -0.033634484, 0.029796088, -0.0038029219, -0.013568795, -0.008953762, 0.018490003, -0.010559316, -0.054095957, -0.014076598, -0.027645394, -0.03441112, 0.036681302, -0.006392344, 0.0066499794, -0.028825289, 0.028153196, 0.024479093, -0.030139603, 0.039638504, 0.028735677, 0.0039578765, 0.002130159, 0.0218654, 0.00036498343, -0.02458364, 0.00908818, 0.009394356, 0.010141125, -0.06177274, -0.064879306, -0.05612717, -0.0071055084, 0.003702108, -0.026644723, -0.006362473, 0.035725437, -0.024150513, -0.05735187, -0.00015308768, -0.03671117, -0.042356744, -0.014621739, 0.00986482, 0.033843577, -0.0031775027, 0.01934132, -0.027988907, 0.005137772, 0.003580758, 0.028168133, 0.037965745, -0.031155208, -0.0050892318, 0.023836872, 0.03793587, 0.01850494, 0.028705806, -0.031424046, -0.006702253, -0.02128292, 0.051108878, -0.009409291, 0.014688949, -0.01032035, -0.0007477026, -0.009760273, -0.030094797, 0.015712023, 0.046299685, 0.007112976, 0.04379054, 0.013247685, 0.006750793, -0.051915392, -0.02982596, -0.026988236, 0.0034967465, -0.017937394, 0.04149049, -0.031901978, 0.012986315, 0.015682152, 0.013800293, -0.00566051, 0.009230066, -0.017593881, 0.024673251, 0.027182397, 0.046777617, -0.03249939, -0.052512806, 0.0037189103, 0.0011808287, -0.0053543346, 0.059562307, 0.04916728, 0.022074496, 0.02458364, -0.019654963, -0.040803466, 0.037637163, 0.023717389, -0.013494118, -0.011664534, -0.017384786, -0.049376376, 0.027510975, 0.04340222, 0.03309681, 0.046329558, 0.062250674, -0.014449983, 0.0043461965, 0.011642131, -0.0027630457, -0.012269417, -0.045881495, 0.060577914, 0.010992441, 0.029019449, -0.038383935, 0.01064146, -0.010917765, 0.00096893293, -0.02102902, 0.010283011, -0.032051332, -0.009342082, 0.0044096718, 0.04764387, -0.021118632, -0.06308705, -0.031633142, -0.021656305, 0.04806206, -0.031394176, 0.004958547, 0.004790524, 0.04925689, 0.03671117, -0.02872074, -0.03975799, -0.015458121, -0.001161226, -0.04997379, 0.017474398, 0.021775788, -0.05104914, -0.00517511, -0.03040844, -0.0050929654, 0.021551758, -0.026181726, 0.025912888, -0.026405757, -0.0045104856, -0.017444527, -0.010955104, 0.0031831034, -0.013710681, 0.015712023, -0.026510304, 0.03671117, -0.06177274, 0.023732323, -0.00905831, 0.0039765458, 0.026779141, 0.052632287, 0.015256493, -0.025823276, 0.004428341, 0.0010856156, -0.0029217342, -0.03196172, 0.01739972, 0.018997807, 0.016608145, 0.034590345, -0.028033713, 0.016623082, 0.023672583, 0.031424046, -0.00073650107, -0.011843759, -0.014128872, -0.0012106994, -0.035068277, -0.017101014, 0.008423556, -0.02028225, 0.020327056, -0.03435138, -0.007624513, -0.006668648, -0.045523047, -0.01177655, 0.026375886, -0.038174838, 0.02846684, -0.01850494, 0.008640119, 0.027466169, -0.036024142, 0.020356927, 0.0070756376, -0.041430753, -0.033515, 0.034440994, 0.007400482, -0.011059651, -0.065715685, -0.07903805, 0.05066082, -0.009700531, 0.04370093, 0.010746008, -0.023821935, 0.027660329, -0.012792155, -0.01947574, 0.019654963, -0.023209585, 0.03357474, -0.02067057, -0.014323032, -0.016413985, -0.044238605, -0.038712513, 0.027003173, -0.04358145, -0.047882836, -0.045134727, 0.027869424, 0.015024995, -0.013374635, 0.025539504, -0.012687608, -0.033724096, -0.014024325, 0.042267133, -0.04480615, 0.0017427725, -0.049346503, -0.053737506, 0.03665143, 0.023717389, -0.008356347, -0.0655962, 0.005802396, -0.036830653, -0.012142466, -0.041132044, -0.018699098, 0.004435809, -0.014561998, -0.024867412, 0.057501223, -0.014539595, 0.019356256, 0.03124482, -0.024658317, 0.018295843, 0.04367106, -0.031125337, 0.012463577, 0.0018099817, 0.037756648, 0.023075167, -0.014375306, 0.009274873, -0.006220587, -0.04169959, 0.0218654, -0.037189104, -0.024180384, -0.024598576, -0.020685505, 0.019191967, -0.040086567, -0.018519875, -0.008087509, 0.016533468, 0.0074938284, 0.049495857, -0.018101685, -0.010813217, -0.0033772634, -0.052214097, 0.036083885, -0.022388138, -0.010581719, 0.008236864, -0.009939497, 0.087282375, -0.033395518, 0.021417338, 0.041968424, -0.011701873, 0.0063886098, -0.053647894, 0.018833518, -0.012978848, -0.038115095, 0.007280999, -0.012373964, -0.055679105, -0.0045328885, -0.01633931, -0.045552917, -0.02713759, 0.020491345, 0.028257744, -0.022089431, 0.0631468, 0.022701781, -0.0033996664, -0.060667526, 0.002253376, 0.001670896, 0.024045967, -0.017130883, 0.005447681, -0.007646916, 0.030647404, -0.03584492, -0.008744666, 0.0417892, 0.054544017, 0.006747059, -0.038324192, 0.026629787, 0.027959036, -0.036173496, -0.04453731, 0.03512802, -0.0088417465, 0.010215802, -0.011761614, 0.016742565, 0.045762014, -0.056306392, 0.0004667307, 0.034889054, -0.012508383, -0.0008359147, 0.020939406, 0.0066014393, -0.034978665, -0.00044059378, 0.031364303, -0.06123507, -0.0056157038, -0.04214765, -0.029900637, -0.03348513, -0.009371953, 0.06505853, 0.02516612, 0.00866999, 0.022298526, 0.027824618, 0.04836077, -0.042804807, -0.01297138, 0.011283682, -0.021312792, -0.02791423, 0.0004466613, 0.020580957, -0.038473547, -0.0069822916, -0.032111075, 0.009924562, -0.01739972, 0.044597052, -0.016488662, -0.08513168, 0.020147832, -0.013247685, -0.021671241, 0.03127469, -0.018475069, -0.011246343, 0.03751768, 0.017877653, -0.04806206, 0.0030318827, -0.014733755, -0.01775817, -0.007938156, -0.019595223, -0.021611499, -0.018445197, -0.016578276, -0.03202146, -0.016130213, 0.01229182, 0.03751768, -0.01814649, 0.0068852114, -0.01442758, 0.03240978, 0.011552518, -0.0037898533, -0.04603085, -0.03390332, 0.004088561, 0.0012471045, -0.025016766, 0.0010006706, 0.070136555, -0.03581505, 0.010193399, 0.023986224, -0.023179714, -0.020804988, 0.0075386344, 0.038413804, -0.027421363, 0.0006002157, -0.01989393, 0.058038898, -0.04220739, -0.001610221, -0.041430753, -0.04134114, 0.021297855, 0.019625094, 0.03865277, 0.03901122, 0.027899295, 0.0315734, -0.0051676426, 0.0047867903, -0.011007377, -0.0003995215, 0.034500733, 0.0038309256, -0.070315786, -0.0017250367, 0.014151275, 0.029721411, 0.0069785574, 0.03626311, 0.00025366814, -0.027615523, 0.00498095, 0.02668953, -0.011425568, 0.049465988, 0.01934132, -0.006526762, 0.010813217, -0.034142286, 0.0059778867, 0.024045967, -0.056246653, -0.0456724, 0.009118051, -0.035187762, 0.008916424, -0.046688005, -0.04755426, -0.03240978, 0.019191967, 0.010283011, -0.012314223, 0.049376376, 0.0049062734, 0.01614515, -0.014920447, -0.009095648, 0.017474398, -0.026047308, -0.025897954, 0.008445959, -0.003507948, 0.036382593, 0.0090284385, -0.007863479, -0.034978665, -0.00658277, -0.0006422215, 0.022686847, -0.017743235, 0.022791395, -0.030617535, 0.017429592, -0.018773776, -0.032469522, -0.012306755, 0.041729458, 0.015577604, 0.02441935, 0.010029109, 0.040504757, 0.0062131193, -0.024045967, -0.014935383, 0.03479944, 0.0257486, -0.03620337, 0.0012993783, 0.012859365, 0.049316633, 0.053588152, 0.0061309747, -0.0019882729, 0.0042939223, -0.022388138, -0.013860035, -0.05851683, 0.0048950715, 0.038055357, 0.02461351, -0.000020434054, -0.019221837, -0.04420873, 0.0039504087, 0.04492563, 0.03709949, 0.018997807, 0.020521216, 0.0012648402, -0.031065596, -0.0018706567, -0.00075003627, -0.060697395, 0.011940839, 0.028675934, 0.02539015, 0.038055357, 0.040624242, 0.006605173, 0.013352232, 0.0148607055, 0.0069486867, 0.03987747, 0.0012592395, 0.02772007, -0.013770423, 0.052602418, -0.058277864, 0.013986986, -0.053618025, -0.008468362, 0.020849794, 0.064640336, -0.010850555, -0.05308035, -0.004939878, -0.049107537, -0.027615523, -0.07670812, 0.00828167, -0.060667526, 0.012829494, 0.033664353, -0.033335775, -0.012179805, 0.025733665, -0.03237991, 0.014315564, -0.0045627593, 0.052602418, 0.0155178625, 0.06081688, 0.019445868, -0.0113956975, -0.0007561038, 0.0031513658, 0.000008984566, -0.020685505, -0.034590345, 0.010536913, 0.00653423, -0.046628267, -0.033276033, 0.049824435, 0.023941418, 0.0049772165, -0.046777617, 0.06392344, 0.038742382, -0.0347397, 0.00692255, 0.090747386, 0.022686847, 0.016115278, 0.03895148, -0.0018687898, -0.07216777, -0.033007197, -0.006732124, 0.03590466, 0.0015990194, -0.06894173, -0.017190626, -0.028227873, 0.004712113, -0.0006636911, -0.013001251, -0.031722754, 0.042625584, 0.02733175, 0.030542858, 0.030617535, -0.03981773, -0.01601073, 0.05693368, 0.029512316, 0.012008048, 0.047614, 0.09170325, -0.0018305179, -0.0043424624, 0.0030766889, 0.0024886082, -0.0095213065, 0.017041272, -0.020909537, -0.030318826, -0.03939954, -0.03390332, -0.018594552, 0.030647404, 0.011604792, -0.0073183374, -0.005641841, 0.009812547, -0.044328216, -0.03584492, -0.020267315, 0.025897954, -0.039548893, -0.0028601259, 0.040624242, -0.05690381, 0.26620826, 0.064102665, 0.060368817, 0.024180384, 0.021955013, 0.04839064, -0.007885882, -0.020804988, -0.022149174, -0.023015425, -0.034142286, -0.029198673, 0.0010333417, 0.027794747, -0.02011796, 0.029586993, -0.027869424, 0.009431695, 0.01953548, -0.048091933, -0.035068277, 0.04764387, 0.036890395, 0.05299074, 0.021581627, -0.02985583, 0.032140944, -0.086386256, -0.004260318, -0.03482931, 0.020491345, -0.050302368, 0.03978786, -0.0033716627, 0.014084066, 0.008229396, -0.05863631, -0.053647894, 0.03939954, -0.019401062, -0.00058014627, -0.02147708, 0.022134237, -0.028780483, -0.01795233, -0.020580957, 0.012052854, 0.017743235, 0.0327981, -0.054155696, 0.031633142, -0.07133139, 0.03781639, -0.05923373, -0.068463795, -0.018967936, -0.024807671, -0.04952573, -0.0014188613, 0.056396004, -0.007180185, 0.05227384, -0.010671331, 0.005231118, 0.014808432, -0.0012377698, -0.0077514634, 0.02533041, -0.011754146, -0.004331261, 0.009566112, -0.03620337, -0.019714706, 0.002083486, -0.0054962207, -0.006026427, 0.007646916, 0.02633108, -0.024105707, -0.04806206, 0.053528413, -0.019640028, -0.001331116, -0.008229396, 0.012500916, 0.057949286, -0.05388686, 0.008147251, 0.009917094, 0.011492777, 0.016996466, 0.024747929, 0.03249939, 0.0056157038, 0.02361284 ]
tokenized_datasets = tokenized_datasets.rename_column("label", "labels") Set the format of the dataset to return PyTorch tensors instead of lists: tokenized_datasets.set_format("torch") Then create a smaller subset of the dataset as previously shown to speed up the fine-tuning: small_train_dataset = tokenized_datasets["train"].shuffle(seed=42).select(range(1000)) small_eval_dataset = tokenized_datasets["test"].shuffle(seed=42).select(range(1000))
[ 0.025605563, -0.00031598264, 0.005871383, 0.025412833, -0.012892264, -0.03992265, 0.004178112, 0.0052105943, -0.019355603, 0.031029537, 0.024366584, -0.013477337, 0.032323584, -0.04644794, -0.05366155, 0.028992105, -0.02022289, -0.061453354, -0.05027501, -0.011137043, -0.002510653, -0.0146750165, -0.08573734, -0.04259334, -0.013374088, -0.003589597, 0.02044315, 0.011212759, 0.079239585, 0.016932711, -0.0002561847, 0.0030681936, 0.009574553, -0.023499299, -0.011233408, -0.030313684, 0.03353503, -0.034663875, 0.0035207649, -0.0080395965, 0.04094137, -0.028992105, 0.041299295, -0.034003086, -0.04358452, -0.009774167, -0.012747716, 0.018956376, -0.005048839, -0.022893576, -0.0036721958, 0.008886232, 0.028771842, -0.009065195, -0.03615065, -0.0034089128, -0.020801079, 0.009361174, -0.024531782, -0.03047888, -0.018681047, 0.020126523, -0.0024659121, -0.043501925, 0.023334103, 0.022136422, -0.0076403697, 0.000776943, -0.030726677, -0.030506413, -0.051954515, -0.00063669746, -0.04432791, -0.028579112, -0.04132683, -0.0052209194, -0.0035586227, -0.02469698, -0.011384839, 0.021819795, 0.02287981, 0.020690948, 0.036425978, -0.013023045, -0.01620309, -0.055341057, 0.070869595, -0.0056235874, 0.050054748, -0.022397986, -0.03661871, 0.01859845, -0.020209122, -0.02499984, -0.00078640744, 0.043419328, -0.006446132, 0.08331445, -0.00017735036, -0.01998886, 0.030974472, 0.06354585, -0.016258156, 0.023141373, 0.0080395965, 0.025109973, 0.001461823, -0.0076610195, -0.013787081, 0.029873157, -0.029763026, -0.014138126, 0.03353503, -0.017042844, -0.029157303, 0.013532403, 0.0052897516, 0.019396903, -0.045346625, -0.036205716, -0.0024349377, 0.00059066596, 0.02639025, -0.038022883, 0.0070415298, -0.06503262, 0.024600614, 0.013367206, -0.013959162, -0.011288474, 0.030754209, -0.010779116, 0.023939826, 0.054184675, 0.010063262, 0.017813763, -0.017855063, 0.005196828, 0.005045397, -0.01213511, 0.016148025, 0.013387855, -0.026114922, 0.07918452, -0.015225674, 0.002904717, 0.0507706, -0.041023966, 0.008672852, 0.031580195, -0.07934971, 0.025605563, 0.015115542, -0.007647253, -0.042318013, 0.0056786533, 0.009085845, -0.008610903, -0.0070965956, 0.022673313, 0.011508737, -0.024339052, -0.012961096, 0.042813603, 0.013546169, 0.03193812, -0.05759875, 0.023237737, 0.014716316, -0.033892956, 0.02793209, 0.015266973, 0.01898391, 0.008659085, 0.034333482, 0.048705637, 0.020622116, -0.027477799, 0.029239902, 0.024545548, 0.027574163, -0.011598219, -0.017565968, -0.0025760436, -0.011205875, -0.026679344, 0.0024383792, 0.0021011017, 0.012203942, -0.01466125, 0.05145892, 0.017056609, -0.0030922848, 0.023815928, -0.021819795, 0.003599922, -0.031084603, 0.0019651582, 0.0102078095, -0.014867746, -0.013036811, 0.027326368, -0.056442373, 0.0054583903, -0.03364516, -0.008583371, 0.03392049, 0.030589012, 0.003343522, 0.008294275, 0.03221345, -0.0063773, -0.026293885, 0.013050578, -0.008913765, -0.036481045, -0.0052725435, 0.02129667, 0.001641647, 0.005448065, 0.0011365911, -0.007936348, 0.019080274, -0.0057371603, 0.032626443, -0.013800848, 0.020388085, 0.026720645, 0.015170608, 0.0016330429, -0.02219149, 0.046558075, 0.0062637264, 0.08199287, 0.031387463, 0.005540989, 0.05624964, 0.04008785, -0.013202008, 0.0369491, -0.007048413, -0.011439905, 0.009085845, 0.046255212, -0.01609296, -0.016643615, 0.0008586812, -0.015349572, -0.023554364, 0.012011212, -0.049283825, 0.0470812, 0.024449183, 0.0063497666, -0.038683675, -0.050715536, 0.013917862, 0.03452621, -0.0065287305, -0.0034312832, 0.022095123, 0.044630773, -0.0032987813, -0.04223541, 0.025123738, 0.052560236, 0.011550036, 0.018887544, -0.00069778605, -0.0045291563, -0.0195621, -0.029818092, -0.053881813, 0.0021561673, -0.008631553, 0.0060985293, -0.008473239, -0.04977942, 0.01879118, 0.010345474, -0.02623882, 0.011233408, -0.040225513, 0.03854601, 0.055313524, -0.012981745, -0.024449183, 0.0196034, 0.029377567, 0.05027501, 0.00044181643, -0.03884887, -0.02422892, -0.00008173819, -0.0039027834, 0.021503167, 0.007688552, -0.039179265, -0.008941297, 0.02283851, 0.013236424, 0.020167822, 0.010620803, 0.0029615036, -0.0118666645, 0.008789867, 0.030313684, -0.011901081, 0.026569214, 0.03240618, -0.013773316, -0.009037662, 0.014385921, 0.04162969, -0.034581278, 0.034939203, 0.055230927, -0.025688162, -0.027230002, -0.02835885, -0.06701499, -0.008101545, -0.0048802, -0.010042612, 0.00005759316, 0.055148326, -0.04443804, -0.063050255, 0.0011073374, -0.030120954, -0.017662331, -0.043006334, -0.019892493, 0.041684754, -0.008590253, 0.0010247388, -0.05046774, 0.006707694, -0.019630931, 0.037940286, 0.0046220794, -0.036095586, 0.010758467, 0.03028615, 0.038435876, 0.02052575, 0.039289396, -0.073622875, -0.021544466, -0.019782363, 0.06338065, 0.03623325, 0.023155138, 0.039729923, -0.006033139, 0.023981124, -0.048182514, 0.029074704, 0.029652894, 0.029184835, 0.039867587, 0.024848409, 0.022232788, 0.00042095166, -0.046392877, -0.030836808, 0.008734801, -0.03328723, 0.06415157, -0.029625362, 0.009430006, 0.020539517, -0.0061329454, -0.0054824813, -0.032846708, -0.061838813, 0.043309193, 0.030396283, 0.04039071, -0.05134879, -0.033479962, -0.011377956, 0.0034622576, 0.029074704, 0.073567815, 0.045897283, -0.0053964416, 0.017359471, 0.011316007, -0.011481204, 0.00075457257, 0.0024831202, 0.0053517004, -0.024931008, -0.029818092, -0.043391794, 0.0026844542, 0.075329915, 0.053523887, 0.014757615, 0.04796225, -0.010104561, 0.06029697, 0.03193812, 0.011006262, -0.020594582, -0.04837524, 0.057929147, -0.02311384, 0.030533945, -0.007839983, -0.009361174, -0.03356256, 0.013050578, -0.0050075394, 0.009856765, -0.01879118, -0.008294275, 0.02287981, 0.02095251, -0.011859781, -0.059856445, -0.018915078, -0.006487431, 0.056304708, -0.059195656, 0.0015237719, -0.029102238, 0.022397986, 0.02600479, -0.0002994199, -0.045814686, -0.032543845, 0.009402473, -0.03144253, 0.031993188, 0.026335184, -0.026472848, 0.0025708813, -0.045429226, -0.024628147, -0.012300307, -0.03796782, -0.011398606, -0.00898948, -0.009127145, -0.015583601, 0.039179265, 0.0151017755, -0.008948181, 0.015404637, -0.0032643653, 0.036315847, -0.03623325, -0.027312601, -0.022397986, -0.010703401, 0.019851195, 0.04595235, 0.015762564, -0.025275169, -0.0114880875, 0.049917083, -0.030533945, -0.06271987, 0.01998886, 0.019727297, 0.0067662015, 0.005923007, -0.018433252, 0.0059333323, 0.004243503, 0.041602157, -0.0070105554, 0.0014893558, -0.008177261, -0.008707268, -0.029873157, -0.040583443, 0.020773545, -0.046916, 0.021406801, 0.0051073465, -0.03989512, -0.015005411, -0.062224273, -0.00023704075, -0.008218559, -0.034829073, 0.035710126, 0.008872465, -0.019162873, -0.0049318243, -0.026404016, -0.00391655, -0.008507655, -0.0061845696, -0.02685831, 0.053881813, 0.009319874, 0.019300537, -0.032929305, -0.029928222, 0.054019477, -0.025123738, 0.014812681, -0.026500382, -0.01990626, 0.007805567, -0.04278607, -0.037720025, -0.02855158, -0.0369491, 0.011123277, -0.000014707497, -0.01311941, -0.0030354983, -0.033479962, -0.028661711, 0.047356527, -0.025591796, -0.056387305, -0.016671149, 0.02260448, 0.02052575, -0.0018653516, 0.01928677, 0.0052174777, -0.05355142, -0.039179265, 0.04479597, -0.020305486, -0.023251504, -0.03422335, -0.054294806, -0.000067595334, 0.02322397, 0.0022456492, -0.057433553, 0.008170377, -0.038628608, 0.0312498, -0.040225513, -0.039647326, -0.006191453, -0.0077918004, -0.036095586, 0.05366155, 0.0007713504, -0.00041320806, 0.012465504, 0.014881513, 0.039647326, 0.053689085, -0.042318013, 0.006903866, -0.010049495, 0.013394739, 0.005847292, -0.00954702, 0.0034743033, 0.03615065, -0.04573209, 0.039757457, -0.06035204, -0.034278415, -0.040803704, -0.049449023, 0.054102078, -0.072631694, -0.0037203783, -0.00841129, 0.04363959, 0.008762334, 0.04807238, 0.020126523, -0.014785148, -0.06106789, -0.03835328, 0.018336887, -0.052505173, 0.0063084676, -0.0042744773, -0.019259239, 0.07857879, -0.04223541, 0.025068672, 0.053578954, -0.016216857, -0.016712448, -0.05027501, -0.01844702, -0.021572, -0.011618868, 0.0028066314, -0.004336426, -0.051954515, 0.0029924782, -0.05049527, -0.036370914, -0.019630931, 0.01744207, 0.00346742, -0.027532864, 0.04383232, 0.013043694, -0.021475634, -0.06987841, -0.0045429226, 0.000389547, 0.010620803, 0.001110779, 0.034774005, -0.0032626444, 0.02133797, -0.058645, 0.0018567475, 0.005616704, 0.059360854, 0.0072755595, -0.07048413, 0.01990626, 0.0015297948, -0.020801079, -0.05104593, -0.005775018, -0.017868828, -0.022026291, -0.02303124, 0.0063325586, 0.0024194503, -0.022563182, 0.017676098, 0.049862016, -0.03480154, 0.008184143, -0.0015289343, 0.00841129, -0.013181359, 0.032653976, 0.03279164, -0.032764107, 0.0137388995, -0.033507496, -0.019451968, -0.017676098, -0.004143696, 0.0312498, 0.060792565, 0.045897283, 0.045897283, 0.015019177, 0.07274183, 0.0008939577, 0.014578652, -0.005138321, -0.033122037, -0.058314607, -0.031002006, 0.020663414, -0.011907964, -0.009815466, -0.0044121416, 0.019273005, 0.028331317, 0.049338892, 0.007688552, -0.109470665, 0.04443804, -0.015652433, -0.02249435, 0.0024607498, -0.010008196, -0.021585766, 0.03469141, -0.029542763, -0.040693574, -0.03383789, -0.0009989267, -0.006662953, -0.0012751158, -0.020484451, -0.0034949528, -0.043199062, -0.020209122, -0.00224737, -0.047466658, -0.0022645781, -0.004907733, 0.025054906, -0.0024125671, -0.03499427, 0.012575636, 0.015060477, 0.020126523, -0.007778034, -0.014909046, -0.00017068225, -0.0095676705, -0.008294275, 0.018144157, 0.04017045, -0.022783445, -0.010703401, 0.017923895, -0.0016321826, -0.054845463, 0.030891873, 0.070869595, -0.011054445, 0.026087388, -0.013263958, 0.0028324435, -0.021241605, -0.020828612, -0.026803244, -0.028661711, -0.021475634, 0.04179489, 0.02388476, 0.062169205, 0.009602087, 0.038711205, 0.010827298, 0.010751584, -0.009918714, 0.024531782, 0.026362717, 0.01797896, 0.0071516614, -0.013325906, 0.0029167628, -0.006194894, -0.022122657, 0.046090014, -0.0068969824, -0.0015254928, -0.041189164, 0.004264152, 0.011715233, 0.037995353, 0.030203551, -0.043887384, 0.017345704, 0.0035964802, -0.024917241, 0.009264809, -0.04518143, -0.06662953, 0.022053825, -0.047273926, 0.013931629, -0.0035121609, -0.028097287, 0.0047287694, 0.017648567, -0.039482128, -0.002431496, 0.025151271, 0.055836648, 0.021778496, -0.02133797, -0.029377567, -0.004102397, -0.023017474, -0.03835328, -0.013690717, 0.016106725, 0.018419486, 0.03634338, -0.004518831, -0.022549415, -0.005978073, 0.015322039, 0.03557246, 0.0031180969, 0.007805567, -0.043969985, 0.029928222, -0.013346556, -0.0273952, 0.0056786533, 0.020305486, 0.012823432, 0.0038064185, 0.021750962, 0.050330076, -0.0070449715, -0.020071458, 0.014826447, 0.017662331, 0.0102078095, -0.032433715, -0.0044912985, -0.008631553, 0.031057071, 0.018997677, 0.032433715, -0.009719101, 0.04223541, -0.014303323, -0.005685536, -0.031635262, 0.035462327, 0.025743227, 0.0055650803, -0.05107346, 0.006311909, -0.01990626, -0.007839983, 0.039729923, 0.016918944, -0.014537352, 0.013828381, -0.03248878, -0.02951523, 0.010545087, -0.010187159, -0.045126364, 0.01213511, 0.04223541, 0.012403555, 0.064757295, 0.046365343, 0.013222658, 0.041712288, 0.0195621, -0.006022814, 0.029157303, -0.025564265, 0.056387305, -0.0176348, 0.06729032, -0.04116163, -0.019658465, -0.026872076, 0.0050006565, -0.004205645, 0.008156611, -0.014716316, -0.013539285, -0.012899146, -0.00014336448, -0.028331317, -0.035021804, 0.034746476, -0.056304708, 0.03425088, 0.050247476, -0.031194735, -0.009072078, 0.030754209, -0.008301158, 0.0037582358, 0.023829693, 0.05316596, 0.02114524, 0.070869595, 0.034774005, 0.006453015, 0.012513687, 0.022397986, 0.0019565541, -0.03171786, -0.053000763, -0.01731817, 0.02086991, -0.04961422, -0.026844542, 0.0351044, 0.015060477, -0.022824744, -0.049559154, 0.03047888, 0.027285067, -0.028496515, -0.0063153505, 0.11007639, 0.034966737, -0.016602317, -0.011157693, -0.007936348, -0.051651653, -0.019204173, -0.034829073, 0.05517586, -0.014716316, -0.059195656, -0.002880626, -0.06547315, 0.005448065, 0.009450655, -0.031414997, -0.024435416, 0.05578158, 0.020897444, 0.046750803, 0.009725984, -0.02885444, 0.008941297, 0.07593564, 0.029928222, 0.00839064, 0.05903046, 0.039289396, 0.0056201457, 0.04363959, -0.010462488, 0.00036395004, -0.028248718, 0.000025287753, 0.014220724, -0.011013146, -0.027684296, -0.048595503, -0.020814845, 0.03067161, -0.00093181536, -0.0352696, -0.032433715, 0.019300537, -0.06932775, -0.0018412602, -0.00190493, -0.007991414, 0.0090583125, 0.020346787, 0.044052582, -0.018846245, 0.2212541, 0.041684754, 0.053578954, 0.01508801, 0.04914616, 0.061618548, -0.016423354, -0.055148326, 0.0014583814, -0.032598913, 0.007110362, -0.041464493, 0.0070105554, -0.0047356524, -0.044410508, 0.04223541, -0.046668205, 0.004432791, -0.0072204936, -0.043694656, -0.047384057, 0.034774005, 0.020511983, 0.062169205, 0.011735884, 0.014688783, 0.018350653, -0.026610512, -0.038105484, -0.042428143, 0.027560396, -0.04449311, 0.03882134, -0.012479271, 0.01894261, 0.0470812, 0.0050075394, -0.067951106, 0.017923895, -0.011949263, 0.017965194, -0.010221575, 0.035352197, -0.011061328, -0.015019177, 0.022508116, 0.003362451, 0.047439124, 0.035902854, -0.060737498, 0.031470064, -0.04413518, 0.03345243, -0.022274086, -0.056882896, -0.030891873, -0.05016488, -0.050908264, 0.018956376, 0.032819174, -0.03155266, 0.01446852, 0.007888165, 0.024958542, -0.04077617, 0.010675868, 0.015583601, -0.006704252, -0.024022425, 0.0008702966, 0.012479271, -0.016616084, 0.015032943, -0.003582714, 0.03028615, 0.055588853, -0.0048216926, 0.026748177, -0.008101545, -0.04931136, 0.019548334, -0.03009342, 0.0033159894, -0.027340135, 0.0066078873, 0.049008496, -0.042951267, -0.0012923238, -0.008163494, 0.018281821, 0.027477799, 0.045621954, 0.0142482575, -0.019135341, 0.011192109 ]
Note that in the code sample above, you need to pass the tokenizer to prepare_tf_dataset so it can correctly pad batches as they're loaded. If all the samples in your dataset are the same length and no padding is necessary, you can skip this argument. If you need to do something more complex than just padding samples (e.g. corrupting tokens for masked language modelling), you can use the collate_fn argument instead to pass a function that will be called to transform the list of samples into a batch and apply any preprocessing you want. See our examples or notebooks to see this approach in action. Once you've created a tf.data.Dataset, you can compile and fit the model as before:
[ 0.012866844, -0.022470046, 0.0046716323, -0.00057312334, -0.0017572774, 0.029632734, 0.0025199377, -0.017560137, -0.0023809439, 0.030759124, 0.048405908, -0.03705536, 0.017112471, -0.020101737, 0.023914136, 0.047395043, -0.006202368, -0.04089664, -0.055077605, -0.021314774, -0.015379562, 0.009076107, -0.0789051, -0.054788787, -0.02846302, 0.0034477657, 0.01070793, 0.008772849, 0.087396346, 0.04907019, -0.0035308008, -0.024260717, 0.023163209, -0.026195798, -0.041936383, -0.025054967, -0.0060074157, 0.0033773663, -0.029141743, -0.040838875, 0.0086862035, 0.002411631, 0.02686008, -0.036160022, -0.060536265, 0.00093414594, 0.008021922, -0.008780069, 0.000791542, -0.026123594, -0.022007937, 0.0062095886, 0.03101906, 0.00012601944, -0.010346907, -0.037950695, -0.039105967, -0.0065056267, -0.0469907, -0.022643337, 0.026181357, 0.020766018, -0.004974891, -0.04791492, 0.0057547, 0.05822572, -0.011083393, -0.02173356, -0.021300333, -0.031769987, -0.048954662, 0.00017216265, -0.01647707, -0.0211126, -0.03454264, 0.0072385026, 0.047250636, 0.010260262, 0.0030091233, 0.035582386, -0.0044261366, 0.012397516, 0.044709038, 0.0055705784, -0.021199245, -0.022484487, 0.054933194, -0.01998621, -0.049907763, -0.033820596, -0.05068757, 0.043582644, -0.02349535, 0.0040398426, 0.048521433, 0.0058630067, -0.01727132, 0.036044493, 0.027134458, -0.008975022, 0.02622468, 0.1128701, 0.014202628, 0.024607299, -0.012679113, -0.008375724, 0.014614194, -0.0022437554, -0.051669553, -0.018556561, -0.024693945, -0.012404736, 0.031769987, -0.029806023, 0.0027112796, 0.011545503, 0.0023141548, 0.03581344, -0.05738815, -0.013206206, 0.006057959, -0.0007992137, 0.027553244, -0.07428401, -0.006465914, -0.047106225, -0.027596567, 0.051034153, -0.02033279, -0.0063901, -0.0022636116, 0.011682691, 0.033791713, 0.042629547, 0.027481038, -0.026195798, 0.01374774, 0.019177519, 0.013126781, -0.017025825, -0.00431061, 0.006202368, -0.054759905, 0.070933715, -0.00056861056, -0.010043648, -0.015957197, -0.053460225, -0.025618162, -0.0039892993, -0.05629064, 0.03200104, -0.0050290446, 0.013321733, -0.025574839, -0.02095375, 0.009985885, 0.001086678, -0.013827165, -0.0007459629, 0.006588662, -0.042947248, -0.033185195, 0.027842062, -0.019856242, 0.030268133, -0.020101737, -0.020578288, 0.0006241178, -0.018311065, 0.009574319, -0.0012707994, -0.00056500034, 0.038239513, 0.06527288, -0.019538542, 0.06538841, -0.00880173, 0.020693814, -0.0016769499, 0.008678983, -0.027235543, 0.025170494, 0.014585312, 0.0045524947, 0.021545827, -0.0022094583, 0.008079685, -0.02190685, -0.005101249, 0.033849478, 0.055713005, -0.01728576, -0.0014910232, -0.05787914, 0.0012446253, -0.05100527, 0.009328824, 0.009776492, -0.017718988, -0.0046174787, 0.017531257, -0.057474796, -0.009559878, -0.00671502, 0.02941612, 0.00039599664, 0.025141612, -0.015264034, 0.0073504196, 0.02190685, 0.02285995, -0.0105563, 0.019336369, 0.03405165, -0.0059243804, -0.043293826, 0.019278606, -0.0007419014, -0.016607039, 0.011711572, 0.02046276, 0.03168334, 0.011942627, 0.040694464, -0.019365251, -0.023567554, 0.07405295, 0.03312743, 0.04748169, 0.029661614, 0.046730764, 0.0067583425, 0.06677473, -0.0034441554, -0.0010957036, 0.06654368, 0.02255669, 0.021675795, 0.0009846891, 0.0025831165, -0.009574319, 0.038557213, 0.0133794965, -0.037199765, 0.010765693, 0.013545567, 0.00431783, -0.03520692, 0.043091655, -0.060247447, 0.024852794, 0.03260756, -0.022109022, -0.051351853, -0.02414519, 0.01790672, 0.029603852, 0.0003143153, 0.01374774, 0.01743017, 0.021877969, 0.011314448, -0.029632734, 0.032694206, 0.07861628, 0.0012924608, 0.030990178, -0.021748, -0.0056175115, -0.04522891, -0.013552788, -0.03387836, 0.014946335, -0.06694803, -0.017733429, 0.006653646, -0.03708424, 0.025820335, 0.00030348462, 0.027538802, 0.024737267, -0.041300982, 0.03419606, 0.020491641, 0.015061862, -0.04652859, 0.025156053, -0.011119495, 0.00024662356, -0.022123463, -0.0007482193, -0.038874913, -0.023480909, 0.027943147, 0.0223834, -0.0044261366, -0.04239849, -0.035466857, 0.0116754705, -0.004462239, 0.010628505, 0.032087687, 0.014816367, -0.026080271, 0.0130256945, 0.017964484, -0.020549405, 0.04057894, 0.017820075, -0.037632994, 0.027177779, 0.05195837, -0.01391381, -0.03737306, 0.0040362324, 0.02508385, 0.0020740747, -0.046268653, -0.034600403, -0.054355558, 0.01870097, -0.044506863, -0.003945977, -0.013899369, 0.04606648, -0.035033632, -0.041676447, 0.01102563, -0.041647565, -0.039279256, -0.038874913, 0.024693945, 0.03592897, 0.022340078, 0.0127802, -0.07260886, 0.0027040592, 0.01566838, 0.024693945, 0.014621414, -0.018051129, 0.013148443, 0.055048723, 0.010621284, -0.013126781, 0.044131402, -0.025488194, -0.003870162, -0.013610551, 0.03228986, -0.0059568724, 0.007047161, -0.009574319, 0.023235414, 0.01744461, -0.018166656, 0.011487738, 0.04736616, 0.04106993, 0.02239784, 0.005400898, 0.018397711, 0.008029142, -0.022296755, -0.0068522086, 0.01535068, -0.011480518, 0.0088306125, -0.06186483, 0.019293047, -0.0135888895, 0.010476875, -0.0013466142, 0.035582386, -0.06561946, 0.008267418, 0.04043453, 0.0511208, 0.0034423503, -0.03601561, -0.023668641, -0.01647707, 0.02798647, 0.051756196, 0.027394393, 0.023076564, -0.009336044, -0.03630443, -0.028101997, 0.0049171275, 0.034658168, -0.018513238, -0.01280186, -0.0380951, -0.026816757, -0.0255604, 0.028405257, 0.047741625, 0.008585117, 0.042745072, -0.043091655, -0.01709803, 0.0071374164, -0.0017401288, 0.013343395, -0.03552462, 0.05340246, 0.0116754705, -0.0015262229, -0.015856111, -0.0068810903, -0.010592403, 0.0056608343, -0.0061590453, -0.03644884, -0.017935602, 0.026412413, -0.03306967, 0.043207183, 0.0075092698, -0.038037337, -0.015278475, 0.006011026, 0.042485137, -0.015408443, 0.0023574776, -0.042138554, 0.03280973, 0.037632994, -0.022296755, -0.05256489, 0.0023123496, -0.012419177, -0.03130788, 0.033589542, 0.04924348, -0.042311847, 0.011155598, -0.03148117, -0.005631952, -0.01678033, -0.024058545, -0.027740976, 0.022166787, 0.0011733234, 0.0068052756, 0.0064406428, -0.018773174, -0.010809016, 0.009733168, -0.041243218, 0.0419075, -0.013899369, 0.018137775, 0.0129462695, 0.02046276, 0.02109816, 0.05692604, 0.026051389, -0.03633331, -0.0039026542, 0.011985949, -0.014137644, -0.07104924, 0.019249724, 0.027264426, 0.023437586, 0.0719157, -0.021675795, -0.013184545, 0.028000912, 0.005722208, -0.041936383, 0.0017094419, -0.007180739, 0.017184675, 0.012419177, -0.02797203, 0.033647306, -0.057185978, 0.040550057, -0.02686008, -0.048232615, 0.026138036, -0.0508031, -0.016650362, -0.00799304, -0.035900086, 0.023668641, 0.039423667, 0.00022225453, -0.016361544, -0.03087465, 0.0063539976, -0.016578157, -0.025026085, 0.0071049244, 0.03376283, 0.033589542, 0.024953881, -0.07104924, -0.02254225, 0.008180772, -0.0038593314, 0.040203474, -0.0014233316, -0.015711702, 0.008433487, -0.0019206401, -0.004108437, 0.020072855, 0.0052059456, 0.02190685, -0.007812529, -0.020260587, -0.0140221175, -0.05288259, -0.021834645, 0.03182775, -0.038239513, -0.06700579, -0.037517466, 0.035466857, 0.018787615, -0.009133872, 0.037199765, -0.040174592, -0.05149626, -0.04366929, 0.061344955, -0.02382749, 0.016375985, -0.023755286, -0.05386457, 0.028852925, 0.024867235, 0.010426332, -0.029632734, 0.012397516, -0.020664932, -0.00846959, -0.043929227, -0.03228986, 0.013119561, 0.004776329, -0.013386717, 0.020708255, 0.007595915, 0.03292526, 0.00037591477, 0.0130256945, 0.03852833, -0.006198758, -0.043611526, -0.016520394, -0.005964093, 0.012614129, -0.0134444805, 0.031423405, -0.009884798, 0.008209653, -0.009408249, 0.011429975, -0.0419075, -0.0617493, -0.006422592, -0.0223834, 0.045459963, -0.038470566, 0.010274703, -0.004570546, 0.033791713, -0.008086906, 0.01885982, -0.016361544, 0.015235153, -0.023668641, -0.05548195, 0.020347232, -0.02478059, 0.012534704, -0.0038918233, 0.005223997, 0.08138893, -0.005819684, 0.031250115, 0.043120537, -0.02205126, 0.008036363, -0.037199765, 0.036477722, -0.034282703, -0.007050771, -0.020491641, -0.043496, -0.009516555, 0.0047727185, -0.0145203285, -0.06042074, -0.018903142, 0.00199826, 0.019018669, 0.027481038, 0.055741888, 0.031163469, -0.012809081, -0.092537306, 0.022253431, 0.002205848, -0.004353932, 0.0065164575, 0.023322059, -0.008946139, 0.021979054, -0.026990049, -0.03838392, 0.009364925, 0.05230495, -0.011170039, -0.040087946, 0.015365121, 0.0214303, -0.016433747, -0.037113123, 0.021632474, 0.00023037754, -0.03228986, -0.021560268, -0.015899435, 0.018469915, -0.028073115, 0.010592403, 0.025156053, -0.03335849, -0.0051734536, 0.031394523, 0.012989593, -0.04300501, 0.008296299, 0.049936645, -0.035553504, -0.027206661, -0.044015873, -0.00607601, -0.052189425, -0.019942887, 0.04938789, 0.002574091, 0.029055098, 0.022643337, 0.035784557, 0.033791713, -0.018080011, 0.004603038, 0.008743967, -0.004126488, -0.040809993, -0.02158915, 0.027047811, -0.0135888895, 0.013141222, -0.0047293957, 0.024058545, 0.02414519, 0.02141586, 0.0010857754, -0.09663852, 0.011437195, -0.030903533, -0.00015760893, 0.016130488, -0.0095382165, -0.009899239, 0.028708516, 0.004534444, -0.05819684, 0.0092493985, 0.047279518, -0.02415963, 0.016650362, -0.04779939, 0.015032981, -0.07214675, -0.028997334, -0.031567816, -0.0075525925, 0.021213686, 0.037604112, -0.013661094, 0.010606843, -0.0045524947, 0.0070724324, 0.011220582, 0.01822442, -0.04831926, 0.012253107, 0.003920705, -0.021877969, -0.03740194, 0.022022378, 0.039856892, -0.052824825, 0.0040687243, 0.027423276, 0.021083718, -0.010577962, 0.0016345297, 0.05926547, -0.017993364, 0.0143109355, 0.004422527, 0.04985, -0.052998114, -0.0034279095, -0.03231874, -0.04303389, -0.02652794, 0.04398699, 0.031596698, 0.05548195, -0.0044261366, 0.004866584, -0.013285631, 0.024607299, 0.023538671, 0.021213686, 0.034455996, -0.0150185395, -0.034311585, 0.009928121, 0.0145203285, 0.015206271, -0.03168334, 0.011473297, -0.013509465, -0.013884928, -0.00030957686, 0.02317765, 0.01662148, 0.062326938, 0.017978925, -0.020867106, 0.0016345297, -0.038557213, -0.008931698, -0.008570676, -0.06671698, -0.046008717, 0.023264294, -0.042080794, 0.0067041893, -0.029748261, -0.012715215, 0.0047041243, 0.07405295, 0.017993364, -0.0008249366, 0.041936383, -0.011617707, -0.0031102095, 0.001591207, -0.030788006, -0.004509172, 0.00064352277, -0.030152606, 0.00043819117, 0.005375626, 0.040636703, 0.026975607, 0.010346907, -0.043380473, -0.022123463, -0.011971509, 0.048781373, -0.029199507, 0.011935406, -0.02271554, 0.0030506407, -0.026181357, 0.011372211, -0.004711345, 0.030961296, 0.026022507, 0.026888961, 0.007689781, 0.037286412, 0.022946594, -0.0013872293, 0.001727493, 0.046268653, 0.0024260718, -0.016722566, -0.007935276, -0.003343069, 0.058774475, 0.046297535, 0.013278411, -0.024636181, 0.022152346, -0.008505692, -0.030672478, -0.05242048, 0.050312106, 0.03598673, 0.017632343, 0.0050470955, -0.031741105, -0.026946725, -0.011487738, 0.014585312, 0.02239784, -0.015148507, -0.006570611, 0.023206532, -0.042600665, 0.014614194, -0.017329084, -0.040983282, 0.010700709, 0.025574839, 0.032203212, 0.017964484, 0.012614129, -0.017025825, 0.0017654004, 0.021805763, 0.017011384, 0.03341625, 0.0043431018, 0.0687387, -0.023668641, 0.017964484, -0.020260587, -0.013061797, -0.040694464, -0.050023288, -0.025459312, 0.041560918, 0.03168334, -0.040838875, 0.034282703, -0.0415898, 0.0007879318, -0.03309855, -0.014000456, -0.05088974, 0.019321928, 0.012050934, -0.0033502895, -0.031076824, 0.045344435, -0.030528069, 0.009834255, -0.004935179, 0.066312626, 0.041676447, 0.07168464, 0.029806023, -0.012491382, 0.026629025, 0.028087556, -0.041300982, -0.0016128684, -0.015336239, -0.008346842, -0.02271554, -0.053315815, -0.047279518, 0.020982632, 0.029242828, -0.014029337, -0.03800846, 0.003149922, -0.007711442, -0.054962076, 0.002398995, 0.08427711, 0.012043714, -0.006953295, -0.024376245, 0.017805634, -0.02668679, 0.03327184, -0.041503157, 0.03275197, -0.06388655, -0.044391338, 0.0009219614, -0.03601561, 0.014245951, 0.0104552135, -0.0013330759, -0.02622468, 0.031769987, 0.022845509, 0.008231315, 0.023134327, -0.0236542, -0.03335849, 0.06296234, 0.024477331, 0.014614194, 0.066081576, 0.0668325, 0.008354062, -0.031221233, 0.016101606, -0.000029051036, 0.00071211706, 0.00025226452, 0.0054911533, 0.021502504, -0.02349535, -0.048405908, -0.019278606, -0.009155532, -0.011985949, -0.0041300985, -0.020202823, 0.024361804, -0.07786535, -0.01743017, -0.0045380536, 0.036593247, -0.02668679, -0.013083458, 0.004678853, -0.045344435, 0.2486146, 0.043380473, 0.060074158, 0.020217264, 0.025314903, 0.06896976, 0.030181488, -0.018036688, -0.0062926235, -0.0041842517, -0.04647083, -0.03771964, 0.03231874, 0.019798478, -0.026296886, 0.034109414, -0.07203122, 0.019278606, 0.0097476095, -0.06498406, -0.07942497, 0.02925727, 0.036708776, 0.069951735, 0.022022378, -0.018253302, 0.010527418, -0.056001823, -0.0022961036, -0.019914005, 0.009660964, -0.04332271, 0.03439823, 0.000060640512, 0.012346973, -0.0035145548, -0.018773174, -0.035293568, 0.00479799, -0.0031589477, 0.010274703, -0.028015353, 0.036073375, -0.027639888, -0.023423145, 0.014404801, -0.018282184, -0.0037762963, 0.048174854, -0.0252427, 0.048088208, -0.04907019, 0.04973447, -0.069316335, -0.04491121, -0.00400013, -0.045950953, -0.052824825, -0.044246927, 0.017141351, 0.02223899, 0.014722501, -0.0005546209, -0.0043250504, -0.002716695, -0.00591355, -0.0134444805, 0.041994147, 0.010635725, 0.005664444, 0.022181228, -0.009372146, -0.012614129, -0.021343654, 0.0027907046, 0.03197216, -0.021459183, 0.047395043, -0.012195343, -0.04765498, 0.029632734, -0.014946335, 0.03982801, -0.018282184, 0.0025777011, 0.065792754, -0.051236324, 0.0065308986, -0.009841476, 0.0126718925, 0.009234957, 0.021921292, 0.039423667, -0.016765889, -0.0038268394 ]
from torch.utils.data import DataLoader train_dataloader = DataLoader(small_train_dataset, shuffle=True, batch_size=8) eval_dataloader = DataLoader(small_eval_dataset, batch_size=8) Load your model with the number of expected labels: from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-cased", num_labels=5)
[ 0.039255485, -0.005234299, -0.01586834, -0.0130311875, 0.009299945, 0.031201633, -0.04418354, -0.01678355, -0.0019659423, 0.045281794, 0.025991974, -0.053420126, 0.030976351, -0.054631017, 0.021936888, 0.016248504, -0.025921574, -0.029624656, -0.05730625, -0.011897734, 0.017220035, 0.019416539, -0.061671097, -0.035904408, -0.031286113, 0.019655902, 0.029540174, -0.008124252, 0.07130193, 0.04060718, -0.013833757, -0.048886314, -0.013052308, -0.033792384, -0.03446823, -0.025048604, 0.0017652999, 0.021458164, -0.07637078, -0.075244375, 0.0030184342, 0.0020821036, 0.0052483794, -0.047478296, -0.05913667, -0.013228309, 0.010715001, -0.0012760145, 0.0108487625, -0.042099677, -0.00969419, 0.002720991, 0.02561181, -0.011003644, -0.0014273762, -0.025907494, -0.0075469655, -0.007328723, -0.0652193, 0.00088969007, 0.033116534, 0.04781622, -0.044465143, -0.06983759, 0.0034865995, 0.02207769, -0.00022275253, -0.020725995, 0.0022528255, -0.023246342, -0.046211082, 0.008215773, 0.007575126, -0.011644292, -0.033201016, -0.0010683321, 0.052406352, 0.013995678, 0.016290745, 0.06758477, 0.0071773613, 0.031933803, 0.0029339532, 0.019346138, -0.03365158, -0.039255485, 0.0477599, -0.0018973015, -0.06285383, -0.04167727, -0.034552712, 0.031370595, -0.011419009, -0.008933861, 0.053335644, 0.014319522, -0.029793618, 0.018177485, 0.021500403, -0.013995678, 0.009419627, 0.08194653, -0.00884234, 0.023865871, -0.02556957, 0.013509913, 0.018656211, -0.030328663, -0.06814797, 0.010947324, -0.0003432039, 0.019036375, 0.003449639, -0.014291362, 0.0045549315, 0.02828704, -0.0006287671, 0.057784975, -0.026062375, 0.005998148, -0.008729699, -0.013115669, 0.0022845059, -0.03962157, 0.03618601, -0.032919414, -0.03362342, 0.040269256, -0.040015813, 0.0015312174, 0.006431113, 0.008265054, 0.022654977, 0.04609844, 0.040212937, 0.023190023, 0.01757204, 0.015755698, 0.014770087, -0.026048295, 0.01323535, -0.006881678, -0.014291362, 0.091746315, -0.007870809, -0.02206361, -0.023668747, -0.02475292, -0.041874394, 0.009940593, -0.04063534, 0.0035816405, 0.004241648, 0.009250665, -0.00051524583, -0.03444007, -0.0005680464, 0.019261658, -0.0073568835, 0.016361145, 0.00796937, -0.0006344872, -0.05040697, 0.03542568, -0.039508928, 0.019205337, 0.015530416, -0.056348797, 0.017403077, -0.021401843, 0.03255333, -0.005663744, 0.024020752, 0.03269413, 0.052040268, 0.0083284145, 0.06595147, -0.0073639234, 0.024147473, -0.0011123326, -0.01952918, -0.03173668, -0.018965974, 0.014235041, 0.029512014, 0.019120857, -0.0039318847, 0.0013789756, -0.023274504, 0.0044986107, 0.038579635, 0.043704815, -0.010003953, -0.019064536, -0.02911777, -0.0037347623, -0.01417872, -0.00263827, -0.035482, -0.029906258, -0.0042029275, 0.02648478, -0.031652197, -0.00882826, -0.0064803935, 0.0049280557, -0.010538999, 0.006103749, -0.027878715, 0.009123944, 0.028765766, 0.03708714, -0.04131119, 0.0070259995, 0.028441923, -0.0010384117, -0.0528006, 0.00010125615, 0.0017864202, 0.004590132, 0.0070400797, -0.018402768, 0.058855068, -0.011876615, 0.075582296, -0.018036684, -0.012073737, 0.06752844, 0.025189405, 0.03460903, 0.030610267, -0.0017028193, 0.00011660132, 0.051561546, -0.0053223004, 0.01757204, 0.014910889, 0.031483237, 0.028653124, 0.011763973, 0.017360836, 0.015530416, 0.04218416, 0.062234305, -0.05201211, 0.0067479163, -0.01845909, 0.011017725, -0.06792269, 0.011285248, -0.055250544, 0.04148015, 0.022373373, 0.00025014282, -0.043479532, -0.024513558, 0.041226707, 0.03094819, -0.013756316, 0.007483605, 0.0054243812, 0.01852949, 0.019050457, -0.008771939, 0.0061072693, 0.05919299, 0.015826099, 0.03962157, -0.016220344, -0.052631635, -0.02999074, -0.062346946, -0.054912623, 0.0056919046, -0.03635497, -0.016431546, -0.01578386, -0.04581684, 0.020106468, -0.0034197187, 0.02392219, -0.0007554886, -0.039508928, 0.033961345, 0.032271724, 0.024457237, -0.023105541, 0.014882728, -0.039396286, 0.009820911, -0.022739457, -0.005758785, -0.009229545, -0.023668747, 0.052518994, 0.016192183, 0.020064227, -0.014798247, -0.032412525, 0.007314643, -0.010862843, 0.027906876, 0.047309335, 0.03635497, -0.02382363, 0.016107703, -0.0054384614, -0.031933803, 0.060375724, 0.01602322, -0.034806155, 0.037650347, 0.01765652, 0.0440709, -0.031370595, -0.00794825, 0.023344904, 0.0044634105, -0.038466994, -0.055813752, -0.04308529, 0.017022913, -0.05051961, -0.02126104, 0.0072794426, 0.057841294, -0.03004706, -0.051702347, 0.010729082, -0.036721054, -0.03629865, -0.04947768, 0.013439512, 0.018416848, 0.044718586, 0.011214847, -0.057953935, 0.032299887, 0.0071949614, 0.026653742, 0.027174708, -0.020711914, 0.06803533, 0.051561546, 0.03255333, 0.0012452141, 0.051758666, -0.042015195, 0.00708584, -0.028892487, 0.0061389497, 0.014235041, 0.0031856361, 0.0031662758, 0.01503761, 0.003447879, -0.004491571, 0.017487558, 0.024935963, 0.028582724, 0.017628359, 0.018839253, -0.01588242, 0.010919164, -0.022711297, -0.0022545855, -0.010954364, 0.033820543, 0.06279751, -0.052687958, 0.025921574, -0.020993518, -0.01676947, -0.0045725317, 0.0023654667, -0.052181073, 0.019951586, 0.035538323, 0.053420126, -0.0019025815, -0.030103382, 0.023992592, 0.009053542, 0.03612969, 0.04863287, 0.011433089, -0.0037558826, 0.004491571, -0.0334263, -0.029540174, -0.0029867538, 0.023147782, 0.0015505776, -0.023091462, -0.03976237, -0.02468252, 0.006617675, -0.0016632188, 0.009609709, 0.009229545, 0.051927626, -0.059080347, -0.013010067, -0.0026875504, 0.027991356, -0.006814797, -0.05206843, 0.0337079, 0.03086371, -0.009081703, -0.0015408974, -0.006374792, -0.021077998, 0.017867722, -0.026935345, -0.0025273885, -0.0388894, 0.004579572, -0.03190564, 0.013847837, 0.0045725317, -0.030272342, -0.027963197, 0.024260115, 0.028582724, -0.02821664, -0.0053223004, -0.052406352, 0.015361454, 0.034806155, 0.0032384368, -0.019261658, 0.016431546, -0.020711914, -0.043676656, 0.031990122, 0.029652815, -0.011904775, 0.014220961, -0.06172742, -0.011404929, 0.0028512322, -0.0031557158, -0.024654359, 0.010855803, -0.004333169, -0.005727105, 0.0073780036, -0.006452233, -0.01233422, 0.029540174, -0.03170852, 0.018163405, -0.020894956, 0.012622863, -0.024034832, 0.03184932, 0.0012188138, 0.018782932, 0.035960726, -0.024471316, -0.015234732, 0.039987653, -0.030525785, -0.05986884, -0.00081884925, 0.017051073, -0.0070224795, 0.023091462, -0.017797321, 0.00006902578, 0.008398815, 0.032384366, -0.035819925, -0.0023513867, 0.011376768, 0.012284939, 0.0034654792, 0.020824555, 0.03187748, -0.08194653, 0.022739457, -0.05454654, -0.028610883, 0.0009257705, -0.08397407, -0.029540174, -0.014432163, -0.047055893, 0.0032507568, 0.041029584, -0.01148941, -0.012059657, -0.019768544, -0.02109208, -0.032412525, -0.02999074, 0.021993209, 0.034242947, 0.058573462, 0.045478914, -0.064261846, -0.01861397, 0.02555549, -0.028385602, 0.015192492, -0.0058503062, -0.026273577, 0.0015329773, -0.009926513, -0.023964431, -0.005593343, 0.009426666, 0.023358984, 0.0072160815, -0.022331133, -0.016558267, -0.022669056, -0.048097823, 0.057841294, -0.03964973, -0.07991899, -0.019867105, 0.053307485, -0.017952204, -0.00070972805, 0.031539556, -0.03173668, -0.07507541, -0.03345446, 0.025949733, -0.035904408, 0.018416848, -0.03275045, -0.02993442, 0.009623789, 0.03807275, 0.013678875, -0.03289125, -0.0140731195, -0.03255333, -0.006533194, -0.05846082, -0.0067443964, -0.01757204, 0.026949424, -0.015347374, 0.014235041, 0.030807389, 0.0026417898, 0.01664275, -0.0029515533, 0.027991356, 0.014713767, -0.079693705, 0.004326129, 0.019036375, 0.021275122, 0.0074624843, 0.016262583, -0.011714692, 0.0054912623, -0.010799482, 0.027892796, -0.038466994, -0.010271477, -0.023513867, -0.022274813, 0.058517143, 0.0008496496, 0.0067549567, -0.0039213244, 0.040410057, 0.009116903, -0.0088001, -0.04750646, 0.009827951, -0.024034832, -0.030356824, 0.042071518, -0.0154036945, 0.020852717, -0.015995061, 0.006621195, 0.041705433, -0.060375724, 0.014840488, 0.06088261, -0.011806213, -0.0136929555, -0.025485089, 0.036636576, -0.017135555, 0.01578386, -0.0019853024, -0.01578386, 0.00884234, 0.019416539, 0.014502564, -0.06172742, 0.00020207229, 0.019613663, 0.01602322, 0.006374792, 0.03615785, 0.030694747, -0.06617675, -0.046605326, 0.006438153, 0.020951277, 0.010869883, 0.022866178, -0.013925278, 0.0045443713, 0.039311804, -0.008631138, -0.037650347, -0.031511396, 0.06651467, -0.023992592, -0.011531651, 0.0075821658, 0.024640279, -0.007849689, -0.025963813, 0.04691509, 0.024569878, -0.010074354, 0.00020504232, -0.006793677, -0.008588897, -0.037368745, 0.023668747, 0.0024288276, 0.00081532926, -0.009116903, 0.03362342, -0.005653184, -0.06921806, 0.03458087, 0.026710063, -0.026766382, -0.009102823, -0.029314892, 0.025090843, -0.003356358, -0.038692277, 0.04328241, -0.013263511, 0.016149944, 0.058855068, 0.02296474, 0.057531532, 0.010186995, 0.009961713, -0.0063290317, 0.002302106, -0.045845, -0.0040269257, 0.030779228, 0.004864695, 0.02288026, -0.003365158, 0.022429693, 0.06533194, 0.050857536, 0.012939666, -0.062177982, 0.012608782, -0.035679124, -0.012643984, 0.018121164, 0.015361454, 0.012242699, 0.018050764, -0.006733836, -0.042578403, 0.00353412, 0.035115916, -0.044690426, -0.008265054, -0.061220534, 0.033510778, -0.044577785, -0.040269256, -0.02289434, -0.026738223, 0.015108011, 0.03793195, -0.01854357, 0.0176706, 0.0005561663, 0.005487742, -0.0113697285, 0.034552712, -0.021838328, 0.033792384, -0.0029814737, -0.007420244, 0.0006705676, 0.014030878, 0.04333873, -0.033229176, 0.0018022604, 0.016304825, 0.022500094, 0.0025309087, -0.045591556, 0.04333873, -0.02569629, -0.0077511277, -0.016586429, 0.037509546, -0.0300189, -0.00010659121, -0.039199162, -0.03601705, -0.005459582, 0.043423213, 0.01757204, 0.05229371, 0.0006344872, 0.0120314965, 0.008617057, 0.052547153, 0.01414352, 0.013432472, 0.011531651, -0.025400607, -0.025977895, 0.00074492843, 0.026118696, 0.0147841675, -0.04336689, 0.016600508, -0.008652258, -0.00093897065, -0.035876248, -0.004769654, 0.040410057, 0.075638615, 0.02119064, -0.027766075, -0.0060544685, -0.004674613, -0.05020985, 0.004773174, -0.060601007, -0.026752302, 0.017924042, -0.04159279, -0.009356266, -0.050463293, -0.0070964005, 0.008595937, 0.03429927, 0.01674131, -0.005480702, 0.0024517078, 0.008384735, 0.039114684, -0.010130675, -0.008384735, 0.0009988113, -0.014812328, -0.035031438, -0.0088353, 0.021289201, 0.0655009, 0.0054525416, -0.00072204816, -0.02303514, 0.014587045, 0.0010920924, 0.05029433, -0.052603476, 0.019036375, -0.046239242, 0.020106468, -0.027245108, 0.003094115, -0.0031099552, 0.05758785, 0.027202869, -0.0101799555, -0.022302972, -0.005044217, 0.0046147723, -0.036608413, 0.00078936893, 0.031257953, 0.016121782, -0.007497685, -0.0032437167, -0.00969419, 0.08127068, 0.025372447, 0.02124696, -0.035228558, 0.005385661, 0.035003275, -0.038664117, -0.016487867, 0.048745513, 0.032159083, 0.011221887, 0.017205955, -0.0078567285, -0.007772248, -0.009813871, 0.0028089918, 0.026456619, -0.020641513, 0.0176002, -0.007441364, -0.0337079, 0.030779228, -0.0020081827, -0.048323106, 0.018642131, 0.003002594, 0.05640512, 0.0041008466, -0.003273637, -0.033201016, 0.012327179, 0.035904408, 0.019965665, 0.030356824, -0.008638178, 0.038523316, -0.024246035, 0.021824246, -0.011939975, 0.021993209, -0.018078925, -0.07637078, -0.046042122, 0.034524553, -0.0051779784, -0.028793925, 0.01152461, -0.013488793, -0.009482987, -0.06730316, -0.009173224, -0.06093893, 0.021359602, 0.028441923, 0.0091380235, -0.030216021, 0.035256717, -0.008912741, 0.02732959, 0.018177485, 0.023485705, 0.0007700087, 0.0600378, 0.011827334, -0.03376422, 0.017853642, 0.015488176, -0.0043824497, -0.036411293, -0.022556415, 0.033933185, -0.038466994, -0.042747363, -0.046577167, 0.013531033, -0.008602978, -0.021880567, -0.033201016, 0.009525228, 0.0056813443, -0.048069663, 0.00091521034, 0.08273502, 0.024978204, -0.012967827, -0.00615303, 0.019078616, -0.039508928, 0.04947768, -0.046267405, 0.04162095, -0.027794234, -0.04564788, -0.013073428, 0.0029427533, -0.012439821, -0.01771284, -0.0054243812, -0.0154036945, 0.038438834, 0.02734367, 0.014741926, 0.027090227, -0.02024727, -0.016178103, 0.034862474, 0.022542335, 0.035960726, 0.06302279, 0.05741889, 0.010398198, -0.03345446, -0.002566109, 0.010531959, 0.013087508, -0.01588242, 0.010637561, -0.009539308, -0.024288274, -0.049083434, -0.018895574, -0.018754773, -0.0055053425, -0.049590323, -0.02382363, 0.014157601, -0.07158353, -0.008250973, -0.019684063, 0.047253016, -0.009482987, -0.014868649, -0.028160319, -0.03182116, 0.233618, 0.05387069, 0.046211082, 0.03263781, 0.055222385, 0.0492524, 0.037706666, -0.048914474, 0.015460015, -0.028315201, -0.027906876, -0.049111597, 0.008497376, 0.053223003, -0.057503372, 0.0178114, -0.06184006, -0.0015180171, -0.017388998, -0.045676038, -0.07473749, 0.046492685, 0.026456619, 0.04418354, 0.040269256, -0.012228618, 0.007539925, -0.07147089, 0.035848085, 0.009490027, -0.007870809, -0.012897426, 0.035848085, 0.008617057, 0.0034989195, 0.023542026, -0.0050899778, -0.054490216, -0.016431546, 0.0038579637, 0.012629903, -0.033116534, 0.013749275, -0.004227568, -0.010130675, 0.022725377, -0.0013455353, 0.0031627559, 0.049759284, -0.024809241, 0.019754464, -0.06814797, 0.010292596, -0.021401843, -0.031088991, 0.0033827582, -0.053223003, -0.042015195, -0.023795469, 0.030525785, 0.019684063, 0.005128698, 0.00040216456, 0.0046429327, 0.0052694995, -0.010201075, -0.012299019, 0.043845616, -0.011278207, 0.022542335, 0.038664117, -0.00263827, -0.018557651, 0.000039352944, -0.00023562266, 0.033116534, -0.010764282, 0.07028816, -0.0015294573, -0.07963738, 0.0154036945, -0.008173533, 0.031426914, -0.024950042, 0.016938431, 0.037256103, -0.06414921, 0.011587971, -0.008729699, 0.0126017425, -0.0030641947, 0.013193109, 0.013770396, -0.042071518, 0.011968136 ]
from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-cased", num_labels=5) Optimizer and learning rate scheduler Create an optimizer and learning rate scheduler to fine-tune the model. Let's use the AdamW optimizer from PyTorch: from torch.optim import AdamW optimizer = AdamW(model.parameters(), lr=5e-5) Create the default learning rate scheduler from [Trainer]:
[ 0.010275249, 0.0029749768, -0.0339183, 0.0236288, -0.019353382, 0.011835776, 0.014693179, -0.0057539972, 0.005411964, 0.05150451, 0.019068355, 0.0010065042, 0.04976584, -0.0729671, 0.02139133, 0.01583329, -0.013260915, -0.02352904, -0.061223954, 0.00044669188, 0.0151207205, 0.009420167, -0.041671053, -0.028502773, -0.0028164303, 0.012876128, 0.0044321814, -0.0063953097, 0.036227025, 0.05406976, -0.041100997, -0.040359925, 0.0001617755, -0.027790204, -0.020222718, -0.023985084, 0.0011703951, 0.000792288, -0.06589841, -0.012797745, 0.000017814233, -0.012648106, 0.012676608, -0.021833124, -0.05201756, -0.009092385, -0.014251387, -0.029500369, 0.018013753, -0.018925842, 0.010260998, 0.03537194, 0.017101664, 0.015605268, -0.028075231, -0.015961552, -0.0128048705, -0.0009138702, -0.03443135, 0.0011009196, 0.046887062, 0.015234732, -0.019381886, -0.05161852, 0.04346673, 0.03517242, -0.02046499, -0.012199187, -0.047457118, -0.0034025186, -0.05335719, 0.023714308, -0.006014085, -0.0135459425, 0.0001603281, 0.0041186507, 0.024697652, 0.000534427, -0.02456939, 0.06800762, 0.029001571, 0.02858828, 0.0077385027, -0.025852015, -0.04090148, -0.017928245, 0.048483215, -0.032464657, -0.011572125, -0.06549937, -0.02405634, 0.01735819, 0.0071043163, -0.014044741, -0.017486451, 0.024825916, -0.006042588, 0.015248983, 0.027205896, -0.013895102, 0.023814067, 0.06601242, -0.0044891867, 0.03719612, -0.040530942, -0.010809677, -0.004970171, -0.03103952, -0.040473938, -0.00785964, 0.010717043, -0.008800231, 0.0073323385, 0.01500671, 0.0054974724, -0.0027558617, -0.039248317, 0.009648189, -0.00929903, 0.010852431, 0.008215924, -0.035314936, 0.01624658, -0.064815305, 0.029272348, -0.03012743, -0.018797578, 0.02374281, -0.02888756, -0.022289168, -0.022631202, -0.0059072, -0.009776451, 0.031780593, -0.008743226, 0.018199021, 0.010232495, 0.03249316, 0.027405417, -0.021904381, -0.008671968, -0.009291904, -0.026350813, 0.08488125, 0.024911424, -0.024597893, -0.007938022, -0.026935121, -0.042497635, 0.04839771, -0.056264475, 0.014465157, -0.00822305, 0.013289418, -0.03138155, -0.0022285606, -0.004314607, 0.02548148, 0.027704695, 0.031837597, 0.032236636, 0.028944565, -0.041100997, 0.021918632, 0.024640648, 0.06390322, -0.039960887, -0.030383956, -0.0044321814, -0.021633605, 0.044378817, -0.00024249624, -0.0044428697, 0.028417265, 0.039447837, 0.025980277, 0.03380429, 0.026664345, 0.015762033, 0.027918465, -0.04768514, -0.009049631, 0.025666747, 0.039704364, 0.03636954, 0.041984584, -0.023586044, 0.006224293, -0.0049345423, 0.055010352, -0.0035966937, 0.040445436, -0.04614599, 0.06025486, -0.04184207, -0.0072325785, -0.03762366, 0.0149354525, 0.0032974146, -0.09725146, -0.002832463, 0.06413124, -0.055038854, 0.004254039, 0.028602533, 0.0021359266, -0.0049131652, 0.035286434, -0.0017003685, -0.012555472, 0.035941996, 0.036426544, -0.030469464, -0.028616784, 0.036027506, 0.018897338, -0.0071933875, 0.026493328, -0.00624567, 0.0022499375, 0.054440297, 0.006691026, 0.039932385, 0.010809677, -0.010146987, -0.028802052, -0.010546026, 0.030440962, 0.030554973, 0.032749686, 0.013695582, 0.065100335, -0.023999335, 0.055266876, -0.0076743714, -0.019581405, 0.028360259, 0.029756894, 0.0018847459, 0.011757393, -0.03237915, 0.040758964, 0.035941996, 0.024968429, 0.014636174, -0.013253789, 0.006936862, 0.0010305534, -0.02630806, 0.032436155, -0.04574695, 0.0010893403, -0.030155934, -0.010945065, -0.030269945, 0.0011472366, 0.0012104771, 0.040331423, -0.024027837, -0.036198523, 0.018469797, 0.037082106, -0.052302588, -0.023486285, 0.058231164, 0.04819819, -0.017543457, 0.0174722, 0.034089316, 0.02508244, -0.010816802, -0.025566988, -0.041043993, -0.0030355453, -0.058772717, 0.0051839417, 0.020650258, -0.02395658, 0.0049345423, -0.030440962, 0.012705111, 0.026963623, -0.039818373, 0.06857767, 0.046174493, 0.03323423, -0.04700107, -0.00047519465, -0.02930085, 0.022802219, -0.041357525, -0.006299113, 0.036113013, -0.04172806, 0.058772717, -0.037965693, 0.015234732, -0.017001905, -0.03215113, -0.0077028745, 0.00044246102, 0.01300439, 0.013631451, -0.004574695, -0.029215341, 0.007200513, 0.02364305, -0.03380429, 0.06703852, 0.01851255, -0.022745213, 0.02580926, 0.016118318, 0.038478743, -0.041300517, 0.045062885, 0.010553151, -0.03249316, -0.030925509, -0.014693179, 0.00167721, -0.035742477, -0.03765216, -0.022445934, -0.03072599, 0.05170403, -0.042526137, -0.06601242, 0.031096525, -0.028032476, -0.022374677, -0.017514953, -0.025068188, 0.04349523, -0.003944071, 0.02446963, -0.01581904, 0.016845139, -0.024939926, 0.016731128, 0.025666747, -0.040388428, 0.053813234, 0.023571793, 0.0065948293, -0.020792773, 0.024697652, -0.057119556, 0.0044250553, -0.03257867, -0.008671968, -0.014792939, 0.0052872645, 0.017799981, 0.012662357, 0.0298139, -0.060995933, 0.02261695, -0.019153863, 0.04101549, 0.027747449, 0.03103952, 0.0369966, 0.02455514, 0.011629132, -0.0030872065, 0.031723585, 0.022588447, 0.03816521, -0.05324318, 0.04152854, -0.04748562, -0.03845024, -0.028103733, 0.0030497967, -0.011308475, 0.0061174077, 0.04637401, 0.03135305, 0.004898914, -0.034801885, -0.016830888, 0.0120637985, 0.0074392236, 0.011130333, 0.0143796485, 0.0069119222, 0.0544973, -0.008258678, -0.030041922, 0.033262737, -0.0038656886, 0.008201673, -0.045518927, -0.032949205, -0.039960887, 0.04081597, 0.023486285, 0.043922774, 0.010004473, 0.049936857, -0.044093788, 0.015477005, 0.014137375, 0.017130166, -0.049224287, -0.0842542, 0.055779926, -0.0037053605, 0.010937939, -0.06230706, -0.010325129, -0.031552568, 0.0030569225, -0.0096410625, -0.020265471, -0.015220481, 0.014636174, -0.009726571, 0.021875879, -0.05076344, -0.06487231, -0.050535414, 0.042098597, 0.038763773, -0.015234732, -0.025509981, -0.05643549, -0.014778688, 0.03471638, -0.0002692176, -0.04842621, -0.022559945, -0.008472449, -0.071998, 0.03577098, 0.019723918, -0.026593087, -0.02056475, -0.024369871, -0.037823178, -0.0024387685, 0.012983013, -0.03485889, 0.0134533085, 0.044150796, -0.010595906, -0.028246248, -0.023970831, -0.0023211946, 0.021947134, -0.041158006, 0.012412958, -0.015591017, 0.026564585, -0.025581239, -0.008778854, 0.0015988274, 0.022859223, 0.0151349725, -0.039960887, -0.0044214926, 0.048967764, 0.0040865852, -0.02013721, 0.003463087, -0.0002389334, -0.018626561, 0.050335895, 0.01356732, -0.007018808, 0.03987538, 0.009975971, -0.005921451, -0.004510564, -0.028075231, -0.01254122, -0.0055544777, -0.00072236714, 0.040331423, -0.049936857, 0.06555638, -0.0011588158, 0.010831053, 0.0077883825, -0.046659037, -0.010097107, 0.014693179, -0.030868502, 0.03537194, 0.004553318, -0.03631253, 0.011108955, -0.006943988, -0.011486618, 0.017714472, -0.04531941, 0.023258263, 0.04531941, 0.043238707, -0.026037283, -0.040644955, -0.026350813, 0.032236636, -0.053841736, 0.0074891034, -0.0143796485, 0.0056079207, 0.015434251, -0.019168114, -0.059912827, 0.035970498, 0.0058110026, -0.00899975, 0.0060176477, -0.0025224953, -0.005041428, 0.015676524, -0.020393733, 0.08596436, -0.04882525, -0.055352386, -0.01707316, 0.02766194, 0.014821442, 0.00048276572, 0.0018223961, -0.044464324, -0.042469133, -0.035115417, 0.07672946, -0.036027506, 0.032863695, -0.015163475, -0.081061885, -0.0080662845, 0.023201257, 0.036939595, -0.029842403, 0.026920868, -0.064530276, 0.032949205, -0.06384621, 0.011579252, -0.030811498, 0.0021305822, -0.029471867, 0.019709667, -0.014835693, 0.03414632, -0.0065413862, 0.04531941, 0.014265638, 0.028360259, -0.0349444, -0.015662273, -0.0071506333, 0.028303253, 0.019595657, -0.007503355, -0.03485889, 0.004439307, -0.0029696326, 0.040103402, -0.022844972, -0.015562514, -0.0195244, 0.025509981, 0.03277819, -0.014500786, 0.013332172, -0.011871405, 0.021676358, 0.028403012, 0.002087828, -0.023272514, 0.013695582, -0.017614713, -0.08778854, 0.017144417, 0.001590811, -0.01593305, -0.0013396303, -0.0068406654, 0.03423183, -0.03257867, 0.024483882, 0.05520987, 0.019780925, 0.003021294, -0.042184103, 0.025424473, 0.043609243, 0.02445538, -0.021035045, -0.028602533, -0.027376913, -0.031780593, -0.021220313, -0.027505176, -0.034545362, 0.024113346, -0.025880517, -0.03465937, 0.029585877, -0.022460185, -0.03722462, -0.0339183, 0.014158753, 0.0006791676, 0.02003745, -0.00042464677, 0.009327533, -0.04255464, 0.03959035, -0.039248317, -0.019780925, 0.032236636, 0.03631253, -0.021191811, -0.022460185, 0.04534791, 0.027476672, -0.050221886, -0.084653236, 0.0030266382, -0.011565, -0.02169061, -0.0050699306, -0.008465324, -0.03577098, 0.0052302587, 0.0022160907, 0.028360259, -0.019880684, -0.0040509566, 0.011037699, -0.018541053, -0.071940996, -0.00014763545, 0.021505343, -0.023799814, -0.026593087, -0.05706255, -0.023885323, -0.016089816, 0.015020961, 0.052388094, -0.0135459425, -0.03608451, 0.03956185, -0.012035295, 0.027647689, 0.013097024, 0.0027131077, -0.004510564, -0.05070643, -0.030383956, -0.015947301, 0.019339131, -0.024141848, -0.012420083, 0.0058181286, 0.00064754736, 0.022431683, 0.023657301, -0.030212939, -0.044549834, -0.030497966, -0.05181804, 0.0050913077, 0.042269614, -0.010253873, -0.014073244, 0.014279889, 0.014778688, -0.01922512, -0.006669649, -0.0011543623, -0.03588499, -0.042440627, -0.040046394, 0.011486618, -0.051333494, -0.017215675, -0.04041693, 0.005643549, -0.004752837, 0.01614682, 0.013125527, 0.002125238, -0.0077670054, 0.04161405, -0.013132652, 0.02476891, -0.02877355, -0.0069867424, -0.008700471, 0.021861626, -0.0037516775, 0.012256192, 0.02610854, -0.02189013, 0.024284363, 0.0035468137, 0.0021483966, -0.049879853, -0.0070116823, 0.060710907, -0.015776284, -0.003901317, 0.010880933, -0.0078952685, -0.04090148, 0.016061312, -0.025467228, -0.061280962, -0.037481148, 0.050734937, 0.029956413, 0.029870905, 0.02271671, 0.0298139, -0.0036216336, 0.05683453, -0.011842902, -0.015633771, 0.032265138, 0.057575602, -0.053157672, -0.021434085, 0.019168114, -0.008180296, -0.014279889, -0.009370287, -0.02630806, -0.0029108457, -0.003240409, 0.0077883825, 0.019481646, 0.04811268, 0.036626063, -0.0049096025, -0.001050149, -0.035257928, -0.05147601, 0.020992292, -0.07576037, -0.01768597, -0.012676608, -0.037139114, 0.0025812823, -0.0014785813, -0.017400943, -0.011294223, 0.02445538, 0.030640481, 0.012412958, -0.0027113263, 0.0126196025, 0.032037117, -0.00072147645, -0.010567403, -0.003833623, 0.034060813, -0.022175157, -0.026578836, 0.0064950692, 0.042013086, 0.017657468, 0.0023550417, -0.034915898, -0.01818477, -0.0008688892, 0.013325046, -0.023101497, -0.0134675605, -0.038792275, 0.040844474, -0.029015822, 0.04018891, -0.017272681, 0.029899409, -0.0068620425, 0.021476839, 0.003249316, 0.026094288, 0.028445767, -0.05788913, 0.040673457, 0.015548263, 0.03414632, 0.004784903, 0.019367633, 0.028631035, 0.021448337, -0.0055901064, 0.037680667, 0.004043831, 0.042440627, 0.042098597, -0.023443531, 0.0006039025, 0.02663584, 0.016503105, -0.008857236, 0.005109122, -0.0028217745, -0.015890297, -0.037395637, -0.011999668, 0.025823511, -0.01757196, 0.010831053, -0.011165962, -0.01757196, 0.0133678, 0.0063489927, 0.03331974, 0.014230009, -0.012170684, 0.013973485, -0.011586377, 0.007966525, 0.030925509, 0.035229426, 0.051105473, 0.021875879, 0.0016148603, -0.037167616, 0.02910133, -0.041899078, 0.01192841, -0.0035753166, 0.018484049, -0.026336562, -0.039419334, 0.0061174077, 0.054440297, 0.0070722504, -0.019381886, -0.010189741, -0.0098405825, 0.020122958, -0.03565697, 0.0009370287, -0.05466832, -0.0008154465, 0.023058742, 0.0097336965, -0.019453142, 0.010880933, -0.015776284, 0.02827475, 0.019196616, 0.030184437, -0.0004747493, 0.09514225, 0.057319075, 0.004346673, 0.02476891, 0.011408235, -0.024583641, -0.00020508635, 0.041357525, 0.03557146, -0.025324713, -0.025666747, -0.027077634, 0.008237301, 0.016161073, -0.028616784, -0.018982846, -0.0006568998, -0.028745046, -0.042811163, -0.015391497, 0.10990669, 0.025937524, 0.022859223, -0.033661775, -0.010503272, -0.04913878, 0.0099332165, 0.00071346003, 0.04101549, -0.011664759, -0.052758634, -0.004278979, -0.05583693, -0.02528196, 0.0069297366, -0.019994695, -0.025438724, 0.027619187, 0.04090148, 0.030754492, 0.022759464, 0.0079736505, -0.051561516, 0.04483486, 0.046887062, 0.017956747, 0.043409724, 0.078211606, 0.018484049, -0.018256025, -0.015049464, -0.0027808018, -0.008194547, 0.00712213, 0.014329769, -0.050193384, -0.023757061, -0.015362995, -0.062364068, 0.037794676, -0.041785065, 0.008009279, -0.0064202496, -0.0421556, -0.04429331, -0.014921201, -0.039818373, -0.0014126686, 0.0070936275, -0.051219482, -0.004510564, -0.04893926, 0.24193153, 0.046630535, 0.05193205, 0.011921285, 0.01424426, 0.07929471, 0.012263318, -0.0076244916, 0.003274256, -0.054725323, -0.0035165297, -0.05426928, 0.01100207, 0.03936233, -0.031210536, 0.03947634, -0.038279224, -0.0149354525, -0.0095484285, -0.035514455, -0.026479077, 0.010154113, 0.014807191, 0.037167616, 0.005490347, -0.020008946, 0.0041435906, -0.05706255, -0.0023746372, -0.022132402, 0.041813567, -0.013488937, 0.017058909, -0.039105803, 0.037139114, 0.0431817, 0.013075647, -0.027319908, -0.026051534, 0.0130827725, -0.01315403, -0.006463004, 0.018954344, 0.025210703, 0.00020965125, 0.035542957, -0.0012211656, 0.037880186, 0.06920473, -0.051761035, 0.055352386, -0.04913878, -0.0074178465, 0.014066119, -0.046858557, -0.0051910677, -0.026365064, -0.01115171, -0.029842403, 0.040559445, 0.006334741, 0.005315767, -0.0037053605, 0.0037694918, 0.010097107, 0.021747615, -0.0021020796, 0.043352716, -0.017714472, -0.010624409, 0.018085008, 0.00424335, -0.016332088, -0.03887778, 0.060995933, 0.037851684, 0.012420083, 0.031410057, 0.0024512385, -0.041956082, 0.004300356, -0.0044001155, -0.0026543208, 0.0078952685, 0.0050984332, 0.03329124, -0.034830388, -0.0056827404, -0.0062385444, 0.0023336646, 0.022089649, 0.08294307, -0.0039796997, 0.0073822183, 0.028602533 ]
Lastly, specify device to use a GPU if you have access to one. Otherwise, training on a CPU may take several hours instead of a couple of minutes. import torch device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu") model.to(device) Get free access to a cloud GPU if you don't have one with a hosted notebook like Colaboratory or SageMaker StudioLab.
[ 0.018082678, -0.02144254, 0.004070045, -0.0019863548, -0.03103184, 0.0064060846, 0.012545399, 0.01078616, -0.015501499, 0.04141424, 0.021716518, 0.021356018, 0.026821198, -0.025162898, -0.015342879, 0.0292726, -0.0021882348, -0.04986436, -0.06292888, 0.004538695, -0.018414339, 0.012783329, -0.082943834, -0.025321519, -0.014045079, 0.03299296, -0.00842849, 0.028407399, 0.066274315, 0.007127085, -0.018414339, -0.0075488696, 0.009603719, -0.02193282, -0.0307146, -0.0033436373, 0.02340366, 0.034031197, -0.038934, -0.027859438, 0.008125669, 0.032329638, 0.03336788, -0.01011563, -0.06852384, -0.00581847, -0.00860874, -0.011600889, -0.00926485, 0.0071703447, -0.0077867997, 0.01018052, 0.02354786, -0.011290859, -0.005930225, -0.0070910347, -0.00426832, 0.00914228, -0.045422997, -0.008644789, -0.0023342373, 0.0062474646, -0.032877598, -0.058516357, 0.029791718, 0.04948944, -0.0075344495, -0.01064917, -0.04392332, -0.05756464, -0.04689384, 0.01913534, -0.01736168, -0.037693877, -0.051335197, 0.025494559, 0.06477464, 0.00820498, -0.025436878, 0.033483237, 0.01071406, 0.01591968, 0.017102119, -0.007264075, -0.063563354, -0.00553728, 0.053873118, -0.030512718, 0.009156699, -0.02219238, -0.0255955, 0.028883258, 0.0021395674, 0.00636643, 0.0244419, 0.026172299, -0.026705839, 0.02259614, -0.0061501297, -0.0014564199, 0.06581288, 0.11870544, 0.012430039, 0.013929719, -0.015011219, 0.00620781, 0.020188, 0.0049172197, -0.04438476, -0.02151464, -0.02259614, -0.010591489, 0.032675717, 0.0024207574, 0.01013726, 0.016208079, -0.0031561775, 0.03391584, -0.050268117, -0.014650719, -0.00873852, 0.0094306795, 0.055026717, -0.049835518, 0.01077895, -0.062871195, -0.028580438, 0.03786692, -0.014939119, -0.028796738, -0.013756679, -0.0013356524, 0.027542198, 0.03890516, 0.01743378, 0.007902159, 0.01405229, 0.010879889, 0.027398, -0.015977358, -0.0103103, -0.003760015, -0.04285624, 0.051162157, 0.01445605, -0.01129807, -0.0047369697, -0.052431118, -0.024470739, -0.00576079, -0.066101275, 0.0057571847, -0.0186018, 0.0059843, -0.0015654712, -0.047412958, -0.02034662, 0.0136269, 0.014520939, 0.014405579, -0.01336013, -0.03382932, -0.02161558, -0.005021765, 0.0005249781, 0.030858798, -0.02990708, -0.0029326673, -0.015588019, -0.01617924, 0.013735049, 0.0010391412, 0.032502677, 0.018010579, 0.03570392, 0.021817459, 0.047672518, 0.023461338, -0.0025361173, 0.0140955495, 0.0016582999, 0.01459304, 0.014809339, 0.014131599, -0.0004564831, 0.009135069, 0.01365574, 0.01076453, -0.026518378, -0.0072820997, 0.022221219, 0.044615477, -0.025393618, -0.0047153397, -0.037780397, -0.0168714, -0.0445578, -0.01570338, 0.01566012, -0.059295036, -0.020332199, -0.00369873, -0.0116513595, -0.03120488, 0.015501499, 0.0016042249, 0.027426839, 0.032416157, 0.00211974, -0.011218759, 0.046836156, 0.032416157, -0.0016249537, 0.02000054, 0.032675717, 0.00870247, -0.02873906, 0.00017856015, -0.0043548397, -0.02640302, 0.018846938, 0.022798019, 0.036713317, -0.0022351, 0.052633, 0.00007300125, -0.05300792, 0.06569751, 0.04429824, 0.03876096, -0.009877699, 0.05981416, -0.003103905, 0.079886794, -0.01217769, 0.01690024, 0.033656277, 0.015126579, -0.0024423874, 0.0017700549, -0.008688049, 0.0068675247, 0.0162225, -0.010050739, -0.0036122098, 0.005627405, 0.011377379, 0.023922779, 0.001661905, 0.048912637, -0.0646016, 0.031147199, 0.0138720395, -0.0056995046, -0.049201038, -0.025667598, -0.012091169, 0.01183882, -0.01690024, 0.0138936695, 0.035819277, 0.05047, -0.020461978, -0.02398046, 0.0320124, 0.10140143, 0.0049821096, 0.031983558, 0.0088034095, 0.005526465, -0.037722718, -0.01865948, -0.050354637, -0.025451299, -0.038616758, -0.00204043, 0.009719079, -0.038443718, 0.03674216, -0.0198275, 0.026518378, 0.0244419, -0.036915198, 0.03622304, 0.029085139, 0.021327179, -0.047211077, 0.03916472, -0.0030011623, 0.0076930695, -0.02027452, 0.016842559, -0.012761699, -0.03558856, -0.00052542874, 0.0004763106, 0.0024856473, -0.01568896, -0.0017772649, -0.0069937, -0.0024928574, 0.019841919, 0.01897672, -0.016784878, -0.03008012, 0.01311499, 0.02801806, -0.038213, 0.030137798, -0.001546545, -0.03495408, -0.00835639, 0.03140676, 0.0029146424, -0.038530238, 0.0299936, 0.019654458, -0.0039655, -0.052344598, -0.03656912, -0.034838717, -0.01149995, -0.032156598, -0.01834224, -0.03426192, 0.046403557, -0.043606076, -0.069850475, 0.00046279185, -0.015573599, -0.032762237, -0.0025325124, 0.025393618, 0.050902598, -0.0070982445, 0.026532799, -0.042538997, 0.0029452848, 0.0112259695, 0.0323008, 0.03622304, -0.03991456, -0.0075632897, 0.028407399, 0.006189785, -0.014398369, 0.0364826, -0.044154037, 0.0017898824, -0.022668239, 0.04519228, -0.035646237, 0.026071358, 0.013598059, 0.0142974295, 0.036828678, -0.04885496, 0.030685758, 0.050729558, 0.020188, 0.03596348, 0.01776544, 0.029070718, -0.027873859, -0.03584812, -0.04790324, 0.033656277, -0.0202601, 0.013172669, -0.07135016, 0.041039318, 0.00997864, 0.027470099, -0.018270139, 0.045855597, -0.02111088, 0.00818335, 0.034665678, 0.05641104, -0.032877598, -0.03209892, -0.013756679, -0.0019304774, 0.01904882, 0.060333278, 0.0257397, 0.0419622, 0.039337758, -0.0010229187, -0.030455038, -0.0025361173, 0.03829952, -0.02829204, -0.01964004, -0.02108204, -0.055891916, 0.0017565362, 0.0436926, 0.063967116, 0.028493918, 0.046490077, -0.038501397, 0.00064844935, 0.0044449647, -0.000044330234, -0.009762339, -0.03140676, 0.05845868, -0.0050397897, 0.0083636, -0.050902598, -0.004452175, -0.0248024, 0.0016907449, 0.026691418, -0.024240019, -0.0412412, 0.0064421347, -0.04467316, 0.04017412, 0.013958559, -0.056958996, -0.022048179, -0.00382851, 0.06685112, -0.019885179, 0.012228159, -0.030455038, 0.030166639, 0.00034585467, -0.04637472, -0.03192588, -0.027599879, 0.0054327347, -0.04060672, 0.015213099, 0.045682557, -0.035300158, -0.00814009, -0.03227196, -0.016655099, 0.0023017924, 0.00969024, 0.0176645, -0.023706479, 0.009538829, 0.0016691149, -0.01071406, -0.0013662949, 0.0002541525, 0.010901519, -0.024499578, 0.03434844, -0.031147199, 0.028263198, -0.012970789, -0.01991402, 0.03336788, 0.053065598, 0.03400236, -0.03183936, 0.01666952, 0.00988491, -0.01180998, -0.04833584, 0.0312914, 0.0040628347, 0.026979819, 0.053065598, -0.02188956, 0.01645322, 0.0507584, 0.004473805, -0.03408888, -0.00997864, -0.015299619, 0.01897672, 0.0074695596, -0.011867659, 0.012833799, -0.024052558, 0.02367764, -0.029027458, -0.01964004, -0.002123345, -0.0522004, 0.01315825, 0.0116513595, -0.0077291196, 0.0343196, 0.013554799, -0.01323035, 0.007880529, -0.036799837, 0.018053839, 0.00460719, -0.030195478, -0.032877598, 0.029258179, 0.01560244, -0.02152906, -0.060044877, -0.04723992, 0.015934099, -0.0307146, 0.055891916, -0.00919275, -0.01448489, 0.023158519, -0.01222095, -0.0144776795, 0.044067517, -0.01891904, 0.014239749, -0.01851528, -0.020880159, -0.019120919, -0.024730299, -0.0070369598, 0.022855699, -0.02842182, -0.053209797, -0.026979819, 0.03639608, 0.02027452, -0.0054759947, 0.019077659, -0.02361996, -0.040116437, -0.014852599, 0.054276876, -0.027556619, 0.005101075, -0.03884748, -0.05632452, 0.01739052, 0.0034049223, -0.023663219, -0.05058536, 0.03541552, -0.034492638, 0.0064060846, -0.030974159, -0.01172346, 0.00727489, 0.01201907, -0.01163694, 0.0419622, -0.02604252, 0.052258078, 0.045769077, -0.0073361746, 0.03155096, 0.021817459, -0.056151476, -0.034579158, 0.00531377, -0.00023838061, 0.012747279, -0.020692699, -0.02568202, -0.0061825747, -0.03775156, 0.01949584, -0.040202957, -0.049922038, -0.04948944, -0.00056192937, 0.011060139, -0.027325898, 0.03656912, 0.015862, 0.02878232, 0.0110240895, 0.051335197, -0.0034157373, 0.017650079, 0.008644789, -0.059583437, 0.0270375, -0.01635228, 0.00787332, -0.000054807264, -0.012718439, 0.090845995, -0.0242977, 0.036540277, 0.05352704, -0.013482699, 0.03587696, -0.053325158, 0.015054479, -0.00976955, -0.01356201, 0.00705138, -0.03478104, -0.026936559, -0.014470469, -0.02240868, -0.04871076, -0.02699424, 0.019221859, -0.014117179, -0.00993538, 0.025004279, -0.0011094387, 0.0005664356, -0.065178394, 0.0126175, 0.006881945, 0.01596294, 0.0075704996, 0.037982278, -0.002426165, 0.024413059, -0.0697928, -0.014758869, 0.0327334, 0.0529214, -0.00547239, -0.05819912, 0.04034716, 0.00957488, -0.058804758, -0.046490077, 0.027859438, -0.0011013275, 0.038674437, -0.004473805, -0.0113918, 0.013129409, -0.04187568, -0.0021035173, 0.015011219, -0.0323008, 0.014196489, 0.015761059, 0.011781139, -0.053036757, -0.00868084, 0.044875037, -0.053238638, -0.02063502, -0.06512072, -0.03333904, -0.037636198, 0.02276918, 0.03881864, -0.0029975574, 0.0162225, 0.020202419, 0.021903979, 0.0350406, -0.008731309, 0.00715232, 0.03469452, -0.0195391, -0.029734038, -0.0250187, 0.016424378, -0.03192588, 0.00909902, -0.008933189, 0.008644789, -0.015097739, 0.028883258, -0.0170877, -0.09817135, 0.000037908827, -0.0327334, 0.0038357198, 0.037895758, -0.020505238, -0.0069107846, 0.037982278, 0.018630639, -0.047557157, -0.011463899, 0.00878178, -0.0065286546, -0.0057319496, -0.03651144, 0.0033292174, -0.03270456, -0.01540056, -0.041558437, 0.00430437, 0.0170877, 0.020865738, -0.028998619, 0.0049821096, -0.02958984, 0.03238732, 0.022250058, 0.01792406, -0.029157238, -0.015097739, 0.026576059, -0.006355615, -0.033310197, 0.026201138, 0.05785304, -0.020029379, 0.009293689, 0.03613652, -0.013569219, -0.03031084, 0.03062808, 0.052863717, 0.0061284998, -0.0038681647, -0.016784878, 0.053555876, -0.06062168, -0.012790539, -0.057189718, -0.047932077, 0.007026145, 0.046490077, 0.027023079, 0.04481736, 0.0036194199, 0.03622304, -0.0118316095, 0.01055544, -0.013504329, 0.016482059, 0.031089518, 0.02672026, -0.060737036, -0.008529429, 0.032502677, 0.019755399, 0.01573222, 0.0076065497, -0.01403066, -0.035992317, 0.003010175, 0.032964118, -0.0215579, 0.0674856, 0.02846508, 0.0107429, 0.0119686, -0.060852397, -0.00609966, 0.0017448199, -0.06160224, -0.05632452, 0.0003014681, -0.03729012, 0.01779428, -0.04689384, -0.05326748, -0.00815451, 0.04069324, 0.0028894073, -0.04698036, 0.027470099, -0.0056562447, 0.01147832, 0.002000775, -0.014131599, 0.014852599, -0.0018142161, -0.054478757, -0.0168714, -0.00034585467, 0.060852397, 0.038213, 0.006499815, -0.0132663995, -0.0255955, -0.0050614197, 0.02958984, -0.026576059, 0.0018655874, -0.020865738, -0.012927529, -0.035646237, 0.0010860062, -0.008752939, 0.049893197, 0.00948836, 0.0204043, 0.00832034, 0.04118352, 0.024139078, -0.022120278, 0.0011328713, 0.047297597, 0.0076714396, -0.01072127, 0.01315825, 0.0026550824, 0.060852397, 0.057362758, 0.026705839, -0.010685219, 0.00088728056, -0.0012256999, -0.01619366, -0.0481628, 0.025364779, 0.03166632, -0.01309336, -0.0032445, -0.050902598, -0.0426832, 0.0052957446, 0.01927954, 0.029157238, 0.0036752974, 0.01423254, 0.0051515447, -0.038789798, 0.0075416598, -0.020115899, -0.003233685, 0.0168714, 0.027989218, 0.018226879, 0.01964004, 0.02038988, -0.01105293, 0.015414979, 0.031060679, -0.01311499, 0.014715609, 0.010908729, 0.03945312, -0.010858259, 0.030195478, -0.056872476, -0.00916391, -0.094249114, -0.02780176, -0.012206529, 0.034117717, -0.020202419, -0.04403868, 0.023475759, -0.03786692, -0.0030570398, -0.054449916, 0.00525609, -0.06367872, 0.0066836695, 0.025883898, 0.00070612936, -0.02412466, 0.0341754, -0.01847202, 0.00050244684, -0.020836899, 0.07711816, 0.020995518, 0.047470637, 0.026302079, -0.00060744246, 0.0043656547, 0.000019531777, -0.0113197, -0.01602062, -0.031089518, 0.00410249, 0.00785169, -0.0488838, -0.03855908, 0.027095178, 0.018140359, -0.019654458, -0.0434042, 0.028133418, 0.0018800074, -0.05632452, 0.0044089146, 0.06587056, 0.027095178, 0.00898366, -0.02950332, -0.0073505947, -0.028710218, -0.01257424, -0.014895859, 0.03469452, -0.02478798, -0.053296316, -0.03665564, -0.03140676, -0.0027722449, 0.0023306324, -0.00912786, -0.02331714, 0.03665564, 0.013756679, 0.033569757, 0.01904882, -0.03181052, -0.02672026, 0.06708184, 0.0058797547, 0.011463899, 0.0408086, 0.08271312, 0.01123318, 0.00568148, 0.018717159, -0.002094505, -0.024961019, -0.01107456, -0.006377245, 0.012365149, -0.047557157, -0.023792999, -0.0383572, 0.00382851, -0.02138486, 0.01113945, -0.0043007648, -0.01091594, -0.059064317, -0.012768909, -0.02478798, 0.043000437, -0.031349078, -0.02846508, 0.023735318, -0.043980997, 0.24733183, 0.044182878, 0.046403557, 0.025956, 0.015530339, 0.058400996, 0.01436953, -0.05121984, 0.0034013174, -0.030426199, -0.011954179, -0.0268933, 0.035473198, -0.001560965, -0.00479465, 0.050152756, -0.03281992, 0.018226879, 0.041673798, -0.090326875, -0.060563996, 0.04977784, 0.021629998, 0.072042316, 0.025220579, -0.028392978, 0.0069648596, -0.050873756, 0.006009535, -0.039395437, 0.0031525723, -0.020159159, 0.00892598, -0.006514235, 0.024225598, 0.028710218, -0.03486756, -0.01829898, 0.00878899, -0.010057949, -0.0035328998, 0.0017033624, 0.014441629, -0.026576059, -0.028119, 0.014737239, 0.00990654, -0.0133385, 0.04063556, -0.037347797, 0.04150076, -0.02323062, 0.0459998, -0.040866278, -0.076887436, -0.010685219, -0.00466487, -0.0455672, -0.00692881, 0.044528957, 0.047585998, 0.0397992, 0.01011563, 0.0226394, -0.015328459, 0.021947239, 0.0073145446, 0.02860928, -0.02017358, 0.0036176173, 0.00927927, -0.027873859, -0.030512718, -0.03362744, 0.0017159799, 0.01149995, 0.0065935445, 0.02478798, -0.013280819, -0.03795344, 0.044154037, -0.01244446, 0.01945258, -0.01109619, 0.000107868356, 0.063563354, -0.04770136, 0.02246636, 0.0004258406, 0.00903413, 0.00802473, 0.048941478, 0.034665678, -0.01121155, 0.02608578 ]
small_train_dataset = tokenized_datasets["train"].shuffle(seed=42).select(range(1000)) small_eval_dataset = tokenized_datasets["test"].shuffle(seed=42).select(range(1000)) DataLoader Create a DataLoader for your training and test datasets so you can iterate over batches of data: from torch.utils.data import DataLoader train_dataloader = DataLoader(small_train_dataset, shuffle=True, batch_size=8) eval_dataloader = DataLoader(small_eval_dataset, batch_size=8)
[ 0.01690185, -0.0040504225, -0.048254993, 0.004673565, -0.008744992, -0.00733067, 0.01589362, -0.0027673803, 0.04601448, 0.053408165, -0.040077128, 0.037220478, 0.007414689, -0.03458788, 0.006430965, 0.04441812, -0.004218461, -0.05071955, -0.070352025, 0.021186827, -0.000836253, 0.030442934, -0.06587101, -0.067495376, -0.03772459, 0.016117672, -0.015963636, 0.0017661523, 0.03752855, 0.05447241, -0.026115948, 0.009242105, 0.007533716, -0.011930718, -0.019856524, -0.020724721, -0.01400319, -0.014759362, -0.04354992, -0.042681724, 0.022951229, -0.020220606, 0.019016331, -0.0373045, -0.061165933, -0.02050067, 0.011405598, -0.022531133, -0.0013233015, -0.07007196, -0.024267528, 0.039797064, -0.01729394, -0.040245168, -0.017980095, 0.01426925, -0.016985869, -0.009858246, -0.051811803, 0.025331771, 0.0139751835, 0.036520317, -0.0005868212, -0.067775436, 0.02660606, 0.012217783, -0.024337543, -0.035456076, -0.019940542, -0.043297864, -0.07472102, 0.0051601753, -0.0056047766, -0.04044121, -0.02520574, 0.031199107, 0.027950367, -0.0049466267, -0.020528676, 0.01189571, -0.0014283253, 0.033551645, -0.028846571, 0.02278319, -0.027768325, -0.027894353, 0.04130941, -0.014409282, -0.019702489, -0.050775565, 0.02901461, 0.038396746, -0.050131418, 0.00020950085, 0.039264943, 0.027460255, -0.015907623, 0.030414928, 0.047302775, 0.009116077, -0.0037283492, 0.06615107, -0.00045335328, 0.0421496, -0.0030299402, -0.024743637, 0.03750054, -0.03055496, -0.029686762, -0.02120083, 0.020962775, -0.014829378, 0.041113365, 0.016383732, 0.028510494, 0.03257142, 0.01461933, 0.00024111742, -0.035932183, 0.009725215, 0.021704944, -0.0033152553, 0.014465295, -0.024379553, -0.0039664037, -0.01729394, -0.014549314, 0.03705244, -0.055480637, -0.026059937, -0.024295535, -0.020122584, 0.0024750638, -0.007876794, -0.013268022, -0.015921626, -0.020738725, 0.034615885, 0.02800638, -0.034083765, 0.049627304, 0.01708389, -0.0109715, 0.08312293, 0.034335822, 0.01865225, -0.030386921, -0.010502392, -0.0033870216, -0.008744992, -0.06799949, 0.019366411, -0.02027662, -0.011468613, -0.0075477194, 0.011517623, -0.032151323, 0.056180798, -0.013113988, 0.018512217, 0.002471563, 0.013008963, -0.0071241227, 0.0056572887, 0.018036108, 0.05071955, -0.016145678, -0.036296267, 0.006070383, -0.028846571, -0.0123508135, -0.026522042, -0.023861436, -0.026550047, 0.06491879, 0.04713474, 0.054192346, 0.002049717, 0.038284723, -0.024505582, -0.0011115032, -0.0022457615, 0.00018412007, 0.027600287, -0.022923222, 0.020556683, -0.003700343, 0.013205008, 0.0016129924, -0.0020164594, -0.014206236, 0.051587753, -0.028524498, 0.024379553, -0.04987936, -0.014318261, -0.024379553, -0.008555949, -0.010285343, -0.04052523, -0.05197984, 0.007995822, -0.029406698, -0.005482249, 0.0026728588, 0.036072217, 0.013646108, 0.028370462, -0.010418373, 0.022447113, 0.023161275, -0.012077752, -0.013120988, 0.016229697, 0.028510494, -0.022237066, -0.016131675, 0.01926839, 0.01202874, 0.016747816, 0.01817614, 0.017630016, 0.00794681, 0.043521915, 0.00636445, -0.01957646, -0.024043476, 0.046882678, -0.026942138, 0.045118276, 0.0006305811, 0.040385198, 0.022965232, 0.06374252, 0.024421563, -0.0016978867, 0.036912408, 0.0010292345, 0.04455815, 0.000502802, 0.027684307, -0.0042289635, 0.010551403, -0.009536172, -0.004967632, 0.025429793, -0.035456076, 0.011006507, -0.037696585, -0.00019812325, -0.04411005, 0.02769831, 0.023119267, -0.031003062, -0.013702122, -0.0033852712, 0.02594791, 0.030807018, -0.0408333, -0.016271707, 0.044754196, 0.030779012, 0.010551403, -0.006171906, 0.033131547, 0.058589347, 0.0036023206, 0.027726315, 0.03705244, -0.031535182, -0.016159682, -0.029994832, -0.08945238, -0.01426925, -0.05122367, 0.02085075, 0.022797193, -0.020822743, -0.012693891, -0.035876174, 0.006945582, -0.004750582, -0.02405748, 0.053044084, -0.004771587, -0.04385799, -0.041029345, 0.004221962, -0.022349091, -0.010110303, -0.02954673, -0.010495391, -0.010957496, -0.0051776795, 0.016215693, 0.004372496, 0.014829378, 0.000016861262, -0.04052523, 0.029658755, -0.016131675, -0.024575599, 0.009165088, -0.0037388518, -0.02923866, 0.028902583, 0.019898532, -0.030442934, 0.02037464, 0.022839203, 0.010047289, 0.0002706554, 0.023679394, 0.0015307236, -0.057161022, 0.04231764, 0.055648677, -0.008394912, -0.011664657, 0.005118166, -0.013415056, 0.01527748, -0.008135853, -0.038788836, -0.017111897, 0.059765615, -0.022013014, -0.033383604, -0.012126762, -0.025387783, -0.047554832, -0.0068545616, -0.004645558, 0.05183981, -0.0035918183, 0.0077507654, -0.026354004, 0.010005279, 0.0342518, 0.040245168, 0.035148006, 0.016103668, 0.06301435, 0.0373045, -0.021943, 0.00025490182, 0.006910574, -0.04957129, -0.010334354, 0.040469218, 0.0002791886, 0.00072904106, 0.04973933, -0.0053002075, 0.021046795, 0.03416778, -0.033607654, 0.0071591306, 0.02015059, 0.03806067, 0.006655016, -0.033971738, 0.032767463, 0.028902583, -0.004974633, -0.04270973, 0.019940542, 0.0050411485, 0.013968182, -0.054948516, 0.017433971, 0.00071503787, 0.013807145, -0.0016173684, -0.020794736, 0.0068720654, 0.06458271, 0.020766731, 0.055424627, -0.013646108, -0.0105233975, 0.032935504, -0.035260033, 0.019814514, 0.04811496, -0.002742875, -0.0018939314, 0.023721404, 0.014857384, 0.016733812, 0.008969043, 0.0053632217, -0.027110176, -0.035792153, -0.051279683, -0.07192038, 0.033131547, 0.06889569, 0.042905774, -0.019674482, 0.0077857734, -0.023763413, -0.033663668, 0.02893059, 0.017097894, -0.0062104147, -0.016957862, 0.054192346, 0.035484083, 0.0031069578, -0.036772378, -0.04780689, -0.012399824, -0.008156858, -0.020836746, 0.035260033, -0.013247018, -0.019870527, -0.053688228, 0.01106252, -0.037780605, -0.017111897, -0.050131418, 0.020962775, 0.039264943, -0.0034780423, 0.023287304, -0.01189571, -0.007533716, 0.01597764, -0.034615885, -0.04663062, -0.026592057, -0.0075407177, -0.08054635, 0.0417015, 0.027488261, -0.04713474, 0.021872982, -0.045230303, 0.012000734, 0.009074067, -0.004439011, -0.028790558, -0.010292345, 0.030694991, 0.01764402, -0.00083887856, 0.00084412977, -0.024281532, 0.03559611, -0.057581116, 0.010005279, -0.029742775, 0.009543174, -0.0076527433, 0.007169633, 0.045426346, 0.010558405, -0.0013898166, -0.0417015, -0.009256109, 0.033439618, 0.011251563, -0.0063784528, 0.038732823, -0.0067320336, -0.015641563, 0.033831708, 0.0013110486, -0.024967687, 0.00842992, 0.016565774, -0.022503126, -0.009522169, -0.04399802, 0.019478437, -0.012021738, 0.018106125, 0.033355597, -0.07886597, 0.0149274, 0.014080208, -0.0072816587, -0.0034622888, -0.07158431, -0.03635228, 0.0027498764, -0.028678533, 0.055424627, 0.023385327, -0.026802106, -0.012826921, -0.0012742903, 0.0014344518, -0.006791547, -0.05786118, 0.017391961, 0.04270973, 0.013877161, -0.02432354, -0.06026973, -0.03287949, 0.028356459, -0.036688358, 0.022013014, -0.008927033, 0.0009548425, -0.010572408, 0.014801372, -0.04139343, 0.034531865, -0.0061509013, -0.029826794, 0.009872248, 0.008317894, 0.00059601077, -0.025513811, -0.013212009, 0.037220478, 0.002317528, -0.041113365, 0.010831467, 0.032207336, 0.008149857, 0.025569825, 0.019296395, -0.038732823, -0.034335822, -0.026830113, 0.029350685, -0.0066095055, 0.0013233015, -0.028734546, -0.053380158, 0.005716802, 0.002256264, 0.040329188, -0.03635228, 0.00649748, -0.014010191, 0.019338405, -0.06676721, 0.021816969, 0.03287949, 0.01137059, -0.033999745, 0.00015075308, -0.019380415, 0.00058069476, 0.010733445, 0.038480766, 0.007687751, 0.0068860687, -0.06374252, -0.037556555, 0.010817464, 0.05825327, -0.01708389, -0.0058498327, -0.023301307, 0.022335088, 0.009844243, 0.05167177, -0.01751799, 0.00063408195, -0.0443341, 0.002419051, 0.043213844, -0.006917576, 0.006010869, 0.0010344856, 0.02142488, -0.04044121, 0.004512528, -0.06559094, -0.008317894, -0.022055024, -0.07085614, -0.011524625, -0.0072256457, -0.0005216188, 0.018232154, 0.014941404, 0.03187126, -0.008261882, 0.030666986, 0.10311949, 0.01896032, 0.03503598, -0.046882678, 0.021718947, 0.016761819, 0.036828388, -0.003345012, 0.0069350796, 0.012987958, 0.012000734, -0.024617607, -0.06962386, -0.010880479, 0.015151451, -0.006563995, -0.01702788, 0.048451036, -0.0073166667, -0.046742648, -0.009753222, 0.029826794, -0.0015832357, 0.00939614, 0.011699665, 0.024239521, 0.018666252, 0.0012865431, -0.020654704, -0.001769653, 0.010761451, 0.037668582, -0.014815375, -0.0276563, 0.036240254, 0.031899266, -0.019198373, -0.04747081, 0.009774227, 0.026213972, -0.02190099, -0.00381937, -0.005790319, -0.0075827274, -0.0146753425, 0.028874578, 0.016719809, -0.02274118, 0.005825327, -0.04601448, -0.023217289, -0.053072087, -0.0068545616, 0.03968504, -0.027558278, -0.016845837, -0.08312293, -0.0017110148, -0.041589472, -0.006777544, 0.04705072, -0.011692664, 0.014101212, 0.021396874, 0.026928134, 0.050859585, 0.026732089, -0.013001962, 0.03363566, 0.016803827, -0.07186437, 0.015781594, 0.043745965, 0.009361132, 0.022937225, -0.013450064, -0.032375373, 0.024421563, -0.0044495137, -0.030470941, -0.09146883, -0.008023827, -0.014451291, -0.013001962, 0.0030754507, 0.003050945, -0.041981563, 0.035624117, 0.013064976, -0.03772459, 0.023721404, 0.033271577, -0.018890303, -0.04077729, -0.0886682, 0.04200957, -0.042877767, -0.020906763, -0.073376715, 0.020346634, -0.008408915, 0.032627434, 0.012126762, -0.022097034, 0.016187686, 0.041673493, -0.014731356, -0.0022650158, 0.0123508135, -0.0055732694, 0.0026903627, 0.045314323, -0.021130813, 0.032151323, 0.021214832, -0.0112235565, 0.02823043, 0.008794003, -0.0011263816, -0.038564786, 0.017798055, 0.032991514, 0.004645558, 0.0035848166, 0.020178596, 0.01013831, -0.04758284, 0.017672025, -0.009095072, -0.013506076, -0.015137448, 0.083178945, 0.0041694497, 0.044670176, 0.022811197, 0.015529538, 0.005807823, 0.03853678, 0.026900128, -0.01817614, 0.014024194, 0.023959458, -0.026760096, -0.037024435, 0.034307815, 0.015431515, -0.042177606, 0.020878756, -0.050775565, 0.0055942745, 0.003103457, -0.012637879, 0.00074654503, 0.020262616, 0.009690207, -0.009858246, -0.033691674, -0.025107719, -0.049291227, -0.0025905902, -0.059037447, -0.031031068, 0.004929123, -0.010376364, -0.023189282, 0.016873844, -0.025555821, 0.03727649, 0.024813652, 0.025079712, -0.06435866, 0.011440606, 0.015039426, 0.028566508, 0.0064694737, -0.043269858, 0.00085725775, 0.004684067, -0.004155447, -0.045202296, 0.006563995, 0.037892632, 0.04223362, -0.054024305, -0.02409949, -0.009158086, 0.023735406, 0.0035883174, -0.0015035925, 0.03845276, -0.054892503, 0.0073376712, -0.015501531, 0.031535182, -0.04066526, 0.03750054, 0.0064099603, -0.0034360327, 0.03133914, 0.04640657, 0.008948038, -0.014759362, -0.018834291, 0.007918804, 0.015053429, -0.020640701, -0.0060598804, 0.026984146, 0.04724676, 0.023903444, 0.024197511, -0.02358137, 0.03738852, 0.03741652, -0.034615885, 0.004232464, 0.027194194, -0.017195918, 0.019030334, 0.051251676, -0.08547547, -0.012798916, -0.008044832, 0.051391706, -0.0038298725, 0.014773365, 0.01690185, -0.007869793, -0.03125512, 0.046574607, -0.011356587, -0.030891037, 0.018022105, -0.04943126, 0.060773842, -0.0012287799, -0.009753222, 0.016103668, 0.0039033892, 0.046994705, 0.00935413, 0.012308803, 0.015459522, 0.020556683, -0.031059075, 0.0342518, -0.03217933, -0.008331898, -0.044670176, -0.018428197, -0.004978134, 0.025107719, 0.016971866, -0.04727477, 0.03265544, -0.006297935, 0.020878756, -0.07500108, -0.012623875, -0.040469218, -0.012826921, 0.01891831, 0.0038928867, -0.041197386, 0.045846444, 0.0011832695, 0.0031979785, 0.031311132, 0.06391056, 0.02190099, 0.028118405, 0.042205613, -0.023497352, 0.02358137, -0.004375997, -0.027194194, -0.0040154145, 0.03666035, -0.010096299, -0.020626698, -0.03741652, -0.06816753, -0.011447608, 0.03792064, -0.020920765, -0.02625598, 0.02006657, -0.03402775, 0.01057941, 0.00050105166, 0.066711195, 0.0014003189, 0.008198868, -0.0028899084, -0.004992137, -0.013212009, 0.004670064, -0.027544275, 0.049599297, -0.036408294, -0.026241977, 0.007918804, -0.079258054, -0.024029473, 0.036156237, -0.0037808612, -0.022545135, 0.0012681639, 0.005930351, 0.06424663, 0.0015569796, -0.02844048, -0.019632472, 0.051643763, 0.058421306, -0.008667975, 0.051811803, 0.056208804, 0.0020742225, -0.004575542, 0.006140399, 0.01655177, 0.012105757, 0.013618102, 0.03503598, -0.022195056, -0.035484083, -0.037248485, -0.06026973, -0.01027134, -0.04705072, 0.012546858, -0.015571547, -0.014591324, -0.075953305, 0.0042674723, -0.01527748, 0.03741652, -0.00023127144, -0.031591196, -0.004029418, -0.04525831, 0.23099662, 0.058365297, 0.016537767, 0.01466134, 0.05514456, 0.02572386, 0.028076395, -0.014535311, -0.0009959769, -0.031115089, 0.0013968182, -0.043101817, 0.0011701415, 0.026129952, 0.022069028, 0.02598992, -0.054220352, 0.013317034, -0.013555088, -0.045846444, -0.041561466, 0.019156363, 0.010299346, 0.0693438, -0.015823605, -0.0151934605, 0.015851611, -0.063686505, 0.01378614, -0.017167911, 0.008324896, 0.009018054, -0.00028072018, -0.03497997, -0.018050112, 0.02366539, 0.024435567, -0.0151934605, -0.024729634, -0.023917448, 0.037332505, -0.00091633375, 0.0059548565, -0.042429663, 0.003665335, 0.022881212, -0.04503426, 0.020038564, 0.017966092, -0.054276362, 0.03411177, -0.050103415, 0.004838102, -0.011069521, -0.073824815, 0.010075295, 0.0062454226, -0.04147745, -0.038116682, 0.06379853, 0.027446251, 0.03528804, 0.0031489674, 0.024687624, -0.007082113, 0.019366411, -0.05363222, 0.06491879, -0.013296029, 0.0075967303, 0.035063986, 0.017896077, -0.06738335, -0.05646086, 0.017447975, 0.031703223, -0.0034815432, 0.03752855, -0.0020339633, -0.04240166, 0.026157958, -0.01044638, 0.013891164, -0.03427981, 0.03741652, 0.051699776, 0.0063679507, -0.015137448, -0.009109075, 0.025065709, 0.016915854, 0.036408294, 0.007869793, 0.03142316, 0.024883669 ]
Great, now you are ready to train! 🥳 Training loop To keep track of your training progress, use the tqdm library to add a progress bar over the number of training steps: from tqdm.auto import tqdm progress_bar = tqdm(range(num_training_steps)) model.train() for epoch in range(num_epochs): for batch in train_dataloader: batch = {k: v.to(device) for k, v in batch.items()} outputs = model(**batch) loss = outputs.loss loss.backward()
[ 0.015884861, 0.027639376, -0.033438835, -0.011224076, -0.028516367, -0.03731457, -0.014809839, 0.0238768, -0.012850754, 0.0639355, 0.016323358, 0.049818773, 0.008154606, -0.03485334, 0.010941176, 0.020962926, -0.00668706, -0.05225172, -0.074119925, 0.034032926, 0.023890944, 0.026592644, -0.06461447, -0.02413141, -0.040002126, -0.027512072, -0.007617095, -0.016733563, 0.03536256, 0.025574204, -0.0244426, 0.0048977146, -0.034146085, -0.022872504, 0.011676717, -0.0053291377, 0.009675196, 0.025050838, -0.06682109, -0.051855657, 0.025036693, -0.01981718, 0.0015356191, -0.014767405, -0.08690703, -0.03674877, 0.021825772, -0.009173048, 0.01506445, -0.038389593, -0.0017557511, 0.032250654, 0.0031437315, -0.028148597, -0.0009839633, 0.038502753, 0.019788887, -0.010347085, -0.044528533, 0.031515114, -0.0072988323, 0.031571694, -0.025079127, -0.057032734, 0.027794972, 0.025178142, -0.018883606, -0.025206432, -0.010325868, -0.087642565, -0.052449748, -0.004034868, 0.005442298, -0.0005030324, -0.034655306, 0.020793185, 0.043029163, 0.014371344, -0.02072246, 0.039521195, 0.008147534, 0.032137495, -0.019972773, 0.013558005, -0.032731585, -0.044698276, 0.04942271, -0.035221107, -0.0020050572, -0.04130347, -0.02976113, 0.0029757593, 0.014343054, -0.0056332555, 0.023211984, 0.016592113, -0.02376364, 0.04339693, 0.013862123, 0.0059656636, 0.04730096, 0.06410525, 0.00855774, -0.0019414045, -0.027257461, 0.0018123311, 0.04809308, -0.01469668, -0.024951821, -0.013133654, 0.014880565, 0.03072299, 0.021415565, -0.008975018, -0.012497128, 0.039323166, -0.00071122946, -0.012645652, -0.06817901, -0.011577702, 0.039323166, -0.007061903, 0.007871706, -0.011386744, 0.050695766, -0.0628039, -0.022250121, 0.025871249, -0.022151107, -0.025828814, -0.034032926, -0.016054602, 0.028572949, 0.02990258, 0.011117988, 0.06421841, -0.0055165594, 0.01365702, 0.01836024, -0.055561654, 0.044754855, 0.014017719, 0.045829877, 0.08334248, -0.0048694243, -0.023494884, -0.0241597, -0.007327122, -0.02913875, 0.0031401953, -0.04797992, 0.0059090834, -0.014137951, 0.0008535638, 0.019166507, 0.0013110669, -0.02688969, 0.034627017, 0.0042187534, 0.021528726, -0.012002053, -0.006443058, -0.017836874, 0.005070991, 0.00884064, 0.025616638, -0.018190501, -0.037031673, -0.001671765, -0.04104886, 0.016450662, -0.0306947, -0.0029616144, -0.02919533, 0.06772637, 0.051601045, 0.04260481, 0.009102323, 0.02430115, 0.01205156, -0.039011974, -0.00660219, -0.026564354, 0.044811435, 0.020227384, 0.04195414, 0.019010913, 0.008204114, -0.028275901, -0.024598196, -0.002199551, 0.040171865, -0.045971327, 0.022504732, -0.017893454, 0.002666337, -0.017469104, -0.023310998, -0.0061283316, -0.010785581, -0.02134484, 0.040511347, -0.014442069, 0.019477697, -0.0017177364, 0.01041781, 0.0037767214, 0.03598494, -0.003911099, 0.044783145, 0.028657818, 0.012086922, -0.030638121, 0.03556059, 0.025701508, -0.0074615, -0.019152362, -0.0033930375, 0.025333738, 0.019944483, 0.02683311, -0.022985663, -0.0038863453, 0.008055591, 0.050214835, -0.039860677, 0.006078824, 0.022504732, -0.025206432, 0.032561846, 0.0073978473, 0.012532491, 0.044698276, 0.062124945, -0.0076312404, 0.021415565, 0.026592644, 0.038333014, 0.013918703, -0.01348728, 0.045971327, 0.037173122, 0.044047605, -0.0038226927, -0.031996045, 0.032816455, -0.015432221, -0.0031755578, -0.051827367, 0.016634548, -0.039125137, 0.05349648, 0.026111715, -0.02646534, -0.03479676, -0.014880565, 0.0003264406, -0.00023560305, -0.024796227, -0.010106619, 0.032731585, 0.036946803, 0.0018423893, -0.012376896, 0.0025673218, 0.016733563, -0.0059090834, -0.0012748203, 0.020609299, -0.038644206, 0.00014078719, -0.038531043, -0.02410312, -0.01348728, -0.012263736, 0.01867143, 0.016210197, -0.044132475, -0.002404654, -0.031599984, 0.027158445, -0.023636334, -0.01064413, 0.050922085, 0.022405718, -0.005509487, -0.02336758, -0.012200083, -0.030892732, 0.02083562, 0.018430965, -0.028092017, -0.0024117266, -0.017610554, 0.04229362, 0.026055133, 0.029308489, -0.0016814896, -0.016691128, 0.0006727727, -0.0064183045, 0.03604152, 0.008380926, 0.023254419, -0.025347883, 0.033410545, -0.00042633986, -0.045631845, 0.02649363, 0.020991215, -0.01495129, 0.01563025, 0.008232404, 0.021868207, -0.04693319, 0.017058898, 0.016379938, -0.018091485, -0.04631081, -0.04863059, -0.0064006234, -0.02618244, -0.016818434, -0.031147342, -0.029082168, 0.047244377, -0.014569375, -0.04885691, 0.012461766, -0.03655074, 0.010318795, -0.028629528, -0.025701508, 0.0049931933, -0.019619148, -0.00012332693, -0.025050838, 0.03423096, -0.010608768, 0.019406972, 0.039351456, 0.0050144107, 0.04749899, 0.05474124, -0.005555458, 0.01779444, 0.009272063, -0.036975093, -0.0056403284, 0.01216472, -0.038615916, -0.014053081, 0.016945738, 0.02970455, 0.019081637, 0.034344118, -0.02708772, -0.011096771, 0.02995916, 0.028544657, 0.005198296, -0.0033399938, 0.030524962, -0.026705805, -0.044641696, -0.051685918, -0.020453705, 0.03674877, 0.055278752, -0.03502308, 0.051261567, -0.00010647446, 0.00080715044, -0.028092017, -0.029280199, -0.0048057716, 0.047131218, 0.050073385, 0.0423502, -0.0077514728, -0.031147342, 0.030524962, -0.014279401, 0.008317274, 0.028785123, 0.022745198, -0.009236701, 0.027243316, 0.024315296, 0.047187798, -0.006535001, 0.0017088957, -0.0010060648, -0.056212325, -0.033721738, -0.028360773, 0.051742498, 0.056721546, -0.00502502, -0.027413055, 0.017723715, -0.062181525, -0.012850754, 0.014328909, 0.038361304, -0.0077868355, -0.04186927, 0.008387999, 0.027186735, 0.0155029455, -0.0120444875, -0.023834364, 0.00058790256, -0.023381725, 0.008529449, -0.018487547, 0.0015037928, 0.007765618, -0.052676067, 0.0033965737, -0.0044945814, -0.050243124, -0.024965966, 0.0061707664, 0.046423968, -0.04133176, 0.021415565, -0.04147321, 0.014130878, 0.027526217, -0.010424882, -0.017582264, -0.045264076, -0.045490395, -0.055533364, 0.002859063, 0.0730449, -0.012992204, 0.0034018783, -0.055052433, 0.012589071, 0.016181907, 0.025644928, -0.031826302, -0.0133670475, 0.015998023, -0.00090970186, -0.0005273442, 0.0012960378, -0.011379671, 0.04707464, -0.031458534, -0.0012359214, -0.025220577, 0.024343586, -0.049479295, 0.009314498, 0.022518877, 0.06065386, 0.019392828, -0.020736605, -0.007765618, 0.014024791, -0.0033665157, -0.022250121, 0.007199817, -0.0038792728, 0.009130613, 0.027271606, -0.0028077872, -0.03035522, 0.006605726, 0.052138556, -0.02987429, 0.0054670516, -0.021528726, 0.027229171, -0.0065703634, 0.018657286, 0.04738583, -0.050695766, 0.0035327196, 0.016153617, -0.022278413, -0.0056580096, -0.06286049, 0.0179076, -0.027512072, -0.057315636, 0.027724246, -0.006927525, -0.023551464, 0.009901516, -0.010601696, -0.0022755808, -0.036381003, -0.024400165, 0.0012049793, 0.030807862, 0.0030305714, -0.022207687, -0.03669219, -0.02339587, 0.026988706, -0.05332674, 0.0009185425, -0.024315296, -0.018685576, 0.014993725, 0.007157382, -0.030807862, 0.057174187, -0.007104338, -0.008218259, -0.008366781, -0.023028098, -0.02103365, -0.0053574275, 0.019208942, 0.051006954, -0.015106886, -0.057117604, -0.03502308, 0.01475326, -0.016280923, 0.0086779725, 0.02350903, -0.03963436, -0.016832579, -0.02010008, 0.012539564, 0.0016947506, -0.016775997, -0.05307213, -0.06529343, -0.023240274, 0.005972736, 0.046480548, -0.046395678, 0.0075605153, -0.051091824, 0.024216281, -0.046593707, 0.0035115022, 0.007210426, 0.0011793413, -0.026366323, 0.009972242, 0.0076807477, 0.017214494, -0.0030853832, 0.0095691085, 0.0070406855, -0.009894444, -0.08266352, -0.04772531, 0.016775997, 0.019520132, -0.00024112845, 0.044839725, 0.025743943, 0.0115211215, -0.02430115, 0.057457086, -0.02680482, -0.005265485, -0.06648161, -0.025234722, 0.02998745, -0.005523632, 0.015913151, 0.0059904177, 0.010545115, -0.033806607, 0.038021825, -0.013055857, 0.0031490359, -0.04192585, -0.069084294, 0.012794174, -0.012645652, 0.010495608, 0.021882351, -0.035192817, 0.04189756, -0.033551995, 0.05293068, 0.059861742, 0.0409357, 0.054939274, -0.049988512, 0.0069593517, 0.0038580552, 0.012567854, 0.023325143, -0.0014339518, -0.008607247, -0.017525684, 0.012475911, -0.06563291, -0.004519335, 0.0827201, 0.011407961, -0.012101068, 0.032703295, -0.02041127, -0.046423968, -0.021458002, 0.037512604, 0.010615841, -0.0013048784, 0.029619679, 0.02049614, 0.03425925, -0.01489471, -0.031090762, 0.019845469, 0.012518346, 0.03493821, -0.017172059, -0.05312871, 0.040171865, 0.014046009, -0.03561717, -0.046141066, 0.011033119, 0.032957904, -0.0047916267, 0.003177326, -0.0074685724, -0.0070689754, -0.031175632, 0.030298641, 0.0068320464, -0.03657903, 0.0058914023, -0.018515836, -0.010035894, -0.081135854, 0.01500787, 0.05906962, -0.027356476, -0.039125137, -0.045462105, 0.017228639, 0.0063652606, -0.012292026, 0.040115286, -0.00918012, 0.020255674, 0.04133176, 0.03598494, 0.050243124, -0.010990683, 0.007991938, -0.008218259, -0.0077868355, -0.06535001, -0.01981718, 0.003882809, -0.0090315975, 0.045971327, -0.001450749, 0.014222821, 0.029647969, 0.010127837, -0.0139965005, -0.09392296, -0.0059196926, -0.022716908, -0.0017486785, 0.028445642, -0.018742157, -0.023890944, 0.028233467, 0.033467125, -0.05358135, 0.0026734094, 0.05293068, 0.000995456, -0.028191032, -0.056580096, 0.03573033, -0.0423502, -0.021797482, -0.029336778, -0.023268564, 0.022306703, 0.033438835, -0.0035574734, -0.002721149, 0.010884596, 0.039068554, -0.027073575, 0.019803032, 0.005802996, 0.002459466, 0.007118483, 0.012695159, -0.030638121, 0.029308489, 0.036437582, 0.009653979, 0.007256397, 0.0012014429, -0.01737009, 0.0011581238, 0.0044132476, 0.013416555, 0.0039747516, 0.0032975588, 0.014852275, 0.009724704, -0.024951821, 0.009441803, -0.02947823, -0.019010913, 0.0033788926, 0.04283113, 0.015799992, 0.039294876, -0.0088618575, 0.005972736, -0.0008915785, 0.037144832, 0.003219761, -0.01770957, 0.008713335, 0.040369898, -0.009986387, -0.03604152, 0.05459979, 0.013154872, -0.024371875, 0.014357199, -0.02705943, -0.003978288, -0.028700253, -0.010707783, -0.033495415, 0.04254823, 0.03530598, -0.0079707205, -0.019477697, -0.009024525, -0.045235787, 0.027625231, -0.05366622, -0.050893795, -0.0000072935277, -0.011641354, 0.005665082, 0.012567854, 0.006340507, 0.016337503, 0.015403931, 0.006177839, -0.055618234, -0.028926574, 0.039917257, 0.040624507, 0.001727461, -0.047216088, 0.012002053, -0.0047880905, -0.025489332, -0.04169953, -0.0041126655, 0.06602897, 0.04285942, -0.010573405, 0.014710825, -0.0120444875, 0.008112171, 0.010608768, -0.033551995, 0.023593899, -0.038219854, 0.011082626, -0.043906152, 0.01751154, -0.026705805, 0.045150917, -0.01793589, -0.04102057, 0.022490587, 0.02711601, 0.026422905, -0.029930871, -0.009675196, 0.020425415, 0.026988706, 0.0017725483, -0.0005423733, 0.032590136, 0.06133282, 0.03420267, 0.075760745, -0.009314498, 0.02435773, 0.012461766, -0.057994597, -0.02128826, 0.0024700747, 0.019095782, 0.0075605153, 0.007199817, -0.081192434, -0.024244571, 0.014024791, 0.045264076, 0.009236701, -0.019732308, 0.019350393, -0.0071220193, -0.018218791, 0.042435072, 0.034457278, -0.031175632, 0.04823453, -0.033297386, 0.05974858, -0.016111182, -0.003854519, -0.009682269, 0.0009326875, 0.059861742, -0.022066237, 0.025149852, 0.014201604, 0.043057453, 0.00932157, -0.016196052, -0.0054635154, 0.020609299, -0.07168698, -0.051204987, 0.0011033119, 0.03598494, 0.019718163, -0.033976346, 0.022462297, -0.010665348, 0.0121364305, -0.063765764, 0.025871249, -0.06642503, -0.02015666, 0.04336864, 0.01739838, -0.039096847, 0.04274626, 0.005474124, -0.029082168, 0.009059887, 0.048517432, 0.016931593, 0.01742667, 0.037484314, -0.0053574275, -0.0066127987, 0.018204646, -0.02165603, -0.033269096, -0.01748325, 0.036437582, -0.0014949522, -0.056042586, -0.024881097, 0.034598727, -0.017242784, 0.0025796988, -0.03558888, 0.02700285, 0.00015603729, -0.025376173, -0.012383969, 0.03731457, 0.021274116, 0.009682269, 0.0013658789, 0.015983876, 0.01205156, -0.011450397, -0.015715122, 0.026309744, -0.02708772, -0.01486642, -0.026026843, -0.030553252, 0.012787102, 0.04834769, -0.021910641, -0.02041127, 0.032194074, 0.03015719, 0.056693256, -0.013041711, -0.010637058, -0.034146085, 0.068914555, 0.052506328, 0.0063758693, 0.057343926, 0.040511347, -0.0034779077, -0.029930871, -0.015220045, -0.012214228, -0.0004959599, 0.01748325, 0.025475187, -0.011082626, -0.02038298, -0.04735754, -0.075647585, -0.0012553708, -0.019633293, 0.022547169, -0.045179207, -0.02435773, -0.07395019, -0.022914939, -0.035249397, 0.079495035, -0.038927104, -0.033551995, -0.0129214795, -0.084756985, 0.2365048, 0.06286049, 0.0065845083, 0.030807862, 0.037059963, 0.039464615, 0.02410312, -0.024796227, 0.010849233, -0.0523083, 0.008402144, -0.05468466, -0.0028449178, 0.02049614, -0.013763108, 0.052562907, -0.035107948, -0.04766873, 0.009993459, -0.021910641, -0.04087912, 0.0409357, 0.044075895, 0.038785655, -0.015262481, 0.003288718, 0.014116733, -0.06286049, 0.03536256, 0.006029316, 0.01495129, 0.011308947, 0.012702231, -0.0055483854, -0.00152059, 0.06693425, 0.03683364, -0.0066269436, -0.0105380425, -0.028516367, 0.011344309, -0.011280657, -0.028714398, -0.0039004902, -0.0040560854, 0.0025178143, -0.021585306, 0.03621126, 0.006184912, -0.06948036, 0.043085743, -0.05895646, 0.0007996359, 0.00096009346, -0.08057006, -0.005749952, -0.009979314, -0.028106162, -0.038304724, 0.07213962, 0.04342522, -0.0241597, -0.01565854, 0.06608555, -0.027243316, 0.018586561, -0.024711356, 0.0043920297, -0.044896305, 0.0039853603, 0.030298641, 0.015121031, -0.04223704, -0.059239358, 0.004639568, 0.032561846, -0.00442032, 0.010297577, 0.012617361, -0.035107948, 0.022193542, -0.009470093, 0.012355678, -0.04028503, 0.02165603, 0.041218597, -0.014908855, -0.010424882, -0.028572949, 0.023622189, 0.026295599, 0.015106886, -0.0072988323, -0.0018388531, 0.00053530076 ]
optimizer.step() lr_scheduler.step() optimizer.zero_grad() progress_bar.update(1) Evaluate Just like how you added an evaluation function to [Trainer], you need to do the same when you write your own training loop. But instead of calculating and reporting the metric at the end of each epoch, this time you'll accumulate all the batches with [~evaluate.add_batch] and calculate the metric at the very end.
[ 0.04644593, 0.01503073, -0.027661007, -0.019482728, -0.036090497, 0.014053802, -0.02869376, 0.0040402934, -0.014221275, 0.045692302, 0.023404395, -0.026014186, 0.026488695, -0.047618244, -0.0049125506, 0.0372349, -0.0089947125, -0.022022739, -0.05738752, 0.024046376, 0.025372205, 0.010111201, -0.05537784, -0.02549781, -0.023655605, 0.029252004, 0.008227126, -0.022678677, 0.05855983, 0.026097924, -0.043375585, -0.04415713, -0.014053802, -0.04365471, -0.020655042, -0.01384446, 0.015658755, -0.0032046714, -0.08161532, -0.05197255, 0.01843602, 0.010404279, -0.011241646, -0.051944636, -0.04806484, -0.022148345, 0.0050416444, 0.010550818, 0.015058641, -0.065537885, -0.011353294, 0.025009347, 0.020850427, -0.025916494, 0.0042915037, -0.020166578, 0.013816548, -0.013704899, -0.055824436, 0.02919618, 0.0061686, 0.021366803, -0.046641316, -0.0740232, -0.0020114242, 0.02163197, -0.00015209978, 0.0031191902, 0.0055056848, -0.026056055, -0.04742286, 0.04594351, -0.014458529, -0.030424317, -0.008255038, 0.041449644, 0.055294104, 0.010055376, -0.004741588, 0.059955444, 0.02241351, 0.025204733, -0.025120996, 0.013949131, -0.03625797, -0.018408109, 0.03776523, -0.0046997196, -0.048427697, -0.031205859, -0.031289596, 0.029810248, -0.0022068098, -0.024144068, 0.062020946, 0.021618012, -0.04167294, 0.0069850325, -0.015812272, -0.0335784, 0.042342834, 0.101042226, -0.009525044, 0.002855769, -0.013984021, 0.0058650547, 0.005624312, -0.010285652, -0.069110654, 0.020613173, 0.0042810366, 0.011834781, 0.013188523, 0.008736524, 0.034443676, 0.024618575, -0.0089947125, 0.035895113, -0.03145707, 0.0018020825, 0.016537989, -0.002819134, -0.010194938, -0.024744181, 0.047757804, -0.039356228, -0.025037259, 0.044045478, -0.028972883, -0.022650765, -0.01761261, -0.00095773797, 0.01800338, 0.04680879, 0.021687793, 0.047897365, -0.0042880145, 0.01836624, 0.025693197, -0.01875701, 0.028023867, -0.017096233, 0.016775243, 0.073018365, -0.0059453025, -0.023362527, -0.01754283, -0.010153069, -0.05861566, 0.017766127, -0.04985122, -0.0007047835, -0.015630841, 0.029810248, 0.022622852, -0.025986275, -0.010083289, 0.050493203, 0.015700623, 0.025595503, 0.0358672, 0.0014549243, -0.047032088, 0.03851886, -0.017487004, 0.0049299956, -0.030117283, -0.051805075, 0.02320901, -0.012469783, 0.03614632, -0.02919618, 0.03299224, 0.017361399, 0.0593972, 0.019608334, 0.04946045, 0.012358135, 0.019050088, 0.013851438, -0.03902128, -0.00019843843, -0.038100176, 0.0013092575, 0.04407339, 0.019831631, 0.007201352, -0.011862692, -0.022259993, 0.0038658422, 0.03385752, 0.02359978, -0.021966916, -0.025037259, -0.011834781, -0.008869107, -0.011862692, -0.0046613403, -0.03209905, -0.04368262, 0.0012063312, -0.0063500297, -0.011374229, -0.000041623003, 0.011353294, 0.004274058, -0.011695219, 0.028121559, -0.016579857, 0.005135848, 0.046752963, 0.055042893, -0.04153338, 0.011485877, 0.030870913, 0.043738443, -0.05540575, -0.0036320772, -0.0040333155, 0.014081714, 0.0008094543, -0.028861234, 0.0516376, -0.0054010144, 0.051246833, -0.03095465, -0.012902423, 0.055210367, 0.021645924, 0.036955778, -0.0016721163, -0.0020027016, 0.011862692, 0.06324909, 0.0014994094, 0.02460462, 0.028889146, 0.019566465, 0.041952062, 0.01731953, 0.0034366918, 0.014612046, 0.0215901, 0.043459322, -0.035923023, 0.014919081, -0.025986275, 0.011018348, -0.0696689, 0.010941589, -0.0344995, 0.04831605, 0.002540012, -0.015979744, -0.045608565, -0.017389312, 0.020780645, 0.0060499734, -0.01800338, 0.007578167, 0.012379069, 0.02657243, -0.015714578, 0.0080108065, -0.011660329, 0.041310083, 0.010774116, 0.018101074, 0.010125157, -0.05314486, -0.021380758, -0.036927864, -0.048176486, -0.010746204, -0.017556785, -0.012937313, 0.03209905, -0.03207114, 0.015477325, -0.017849863, 0.040277332, -0.01951064, 0.009238944, 0.041645028, 0.041086785, 0.0482044, -0.0041484535, -0.004246146, -0.04697626, 0.027312106, -0.026516607, -0.0018177832, 0.0154215, -0.028414637, 0.030005634, 0.02191109, 0.021283066, 0.017528873, -0.054038055, -0.007682838, -0.0050590895, 0.040863488, 0.037960615, 0.027926173, -0.054428823, 0.0356439, -0.013670009, -0.0060778856, 0.041477557, 0.008506249, -0.046892527, 0.0210179, 0.0062174466, 0.030228931, -0.043347675, 0.0034942608, 0.026153749, -0.007075747, -0.050241992, -0.066431075, -0.02958695, 0.015909964, -0.028163427, -0.03737446, -0.0015290661, 0.043626796, -0.02542803, -0.04759033, 0.02668408, -0.04304064, -0.042733606, -0.04756242, 0.010201915, 0.009601803, -0.005910412, 0.019692069, -0.027242325, 0.029000795, -0.017473048, -0.0071245935, 0.030508054, -0.016872935, 0.050409466, 0.04024942, -0.0037716385, -0.0034297137, 0.050353643, -0.038295563, 0.003543107, -0.02424176, -0.0001909152, -0.028093647, 0.010229828, -0.004968375, -0.0036983688, 0.0083876215, -0.0050939796, -0.004766011, 0.015128422, 0.027451666, 0.027633095, 0.009943727, -0.021994827, -0.00091150834, -0.0215901, -0.017975468, -0.008331797, 0.049627922, 0.08278764, -0.06079281, 0.034778625, -0.007299045, -0.0018265058, -0.020571304, 0.0128326425, -0.010264718, 0.036816217, 0.057610817, 0.040305242, -0.011792912, -0.015798315, 0.03020102, 0.017459093, 0.018715141, 0.028861234, 0.008373666, 0.003991447, 0.014556222, -0.026963202, -0.01380957, -0.0077665746, 0.012316266, -0.011611482, -0.03762567, -0.027144631, -0.021073725, 0.012393025, 0.015114466, 0.009678561, 0.028233208, 0.03888172, -0.073074184, -0.014528309, 0.0011060216, 0.031792015, -0.025065172, -0.040081944, 0.049013853, 0.032015312, -0.020320095, -0.0069326973, 0.009559935, -0.035281043, 0.022232082, -0.00003074705, -0.0028016889, -0.027214412, -0.0077595967, -0.04619472, 0.005282387, 0.007051324, -0.074860565, -0.034666974, 0.030117283, 0.059229728, -0.0057080486, -0.0030563879, -0.053675193, -0.0011042771, 0.020292182, 0.01649612, -0.018463932, -0.012707037, -0.026265398, -0.059564672, 0.032043226, 0.037095338, -0.017710302, -0.018449975, -0.055154543, 0.006412832, 0.0008783626, 0.009162186, 0.0047974125, 0.008987734, 0.0016904337, -0.033494662, -0.026600344, -0.030228931, -0.0009699496, 0.055294104, -0.024130112, 0.04518988, -0.015254027, 0.017166015, -0.031122122, -0.0031331466, 0.037262812, 0.020236358, 0.014263143, -0.03851886, 0.0018788412, 0.022301862, -0.038435124, -0.03988656, 0.0007292067, 0.006405854, 0.0050486224, 0.018115029, 0.0010092012, 0.009992574, 0.01459809, 0.039747, -0.045552738, -0.014974905, -0.012092968, 0.007194374, -0.0035064723, 0.01273495, 0.042677782, -0.076926075, 0.006552393, -0.035699725, -0.010564774, 0.03235026, -0.071566924, -0.011255601, -0.008624875, -0.034583237, -0.00044070775, 0.024576709, -0.019412948, -0.021925047, -0.028414637, -0.008938888, -0.03385752, -0.028568154, -0.014067758, 0.055014983, 0.055908173, 0.009504111, -0.059062254, -0.02069691, 0.057945766, -0.041365907, 0.013244348, -0.0036739456, -0.017598653, 0.008359709, -0.02163197, -0.025525723, -0.0048218356, -0.00086571486, 0.015896007, -0.009266856, -0.018254591, -0.03095465, -0.009873947, -0.025693197, 0.06687767, -0.04217536, -0.06866406, -0.015909964, 0.047227472, -0.028428594, -0.007543277, 0.023390438, -0.023139229, -0.07463727, -0.019287342, 0.017696345, -0.034052905, 0.00771075, -0.041617118, -0.032294437, -0.014709739, 0.025037259, 0.00039164332, -0.053926405, 0.016133262, -0.027549358, -0.0017183459, -0.074525625, 0.014430617, -0.022846151, 0.010201915, -0.008980756, 0.021604057, 0.024325497, 0.007103659, 0.017975468, 0.0009708218, 0.008359709, 0.017235795, -0.07714937, 0.00656286, 0.015714578, 0.033829607, -0.01610535, 0.009511088, -0.003932134, -0.0073269573, 0.010327521, 0.039188754, -0.021729661, 0.012762861, -0.042956904, -0.021827355, 0.05286574, 0.008917954, 0.02700507, 0.008506249, 0.01775217, 0.014025889, -0.0075991014, -0.04278943, 0.008945866, -0.02958695, -0.06274667, 0.030982561, -0.0014374792, 0.028400682, -0.023837034, -0.036844127, 0.045776036, -0.06542624, 0.009657627, 0.05174925, -0.012260442, 0.008855151, -0.07854498, 0.02359978, 0.0037472153, 0.013565338, 0.029112443, -0.041700855, 0.010906699, 0.00573945, 0.020585261, -0.03511357, -0.027298149, 0.038797982, -0.006144177, 0.026125835, 0.025372205, 0.003325043, -0.06587283, -0.03282477, 0.041058872, 0.034248292, 0.0009490154, -0.015002817, 0.0009795444, 0.011841758, 0.05635477, -0.009483176, -0.004602027, -0.030563878, 0.07731684, 0.0029011262, 0.0024021952, 0.032461908, 0.03095465, -0.04292899, -0.026167704, 0.028261121, 0.026823642, -0.0019678113, -0.008317841, -0.0041693877, -0.022259993, -0.037290722, 0.018631406, 0.0001470843, 0.01362814, -0.0016660105, 0.023878902, 0.011758022, -0.06592866, 0.036285885, 0.009490154, -0.040751837, -0.02033405, -0.023892859, 0.0025557124, -0.014179407, -0.03338301, 0.029503215, -0.022050653, 0.012393025, 0.05749917, 0.011646373, 0.06246754, 0.012351156, 0.011255601, -0.019412948, -0.0018840746, -0.038825896, -0.019064045, 0.036369618, -0.0013607206, 0.026056055, 0.01054384, 0.038072266, 0.04870682, 0.028275076, 0.011220711, -0.0591739, 0.009873947, -0.05766664, -0.02618166, 0.02302758, -0.008513226, 0.026893422, 0.024297586, 0.00036089626, -0.028917057, 0.013041983, 0.027912218, -0.012462805, -0.0096506495, -0.034527414, 0.03159663, -0.06040204, -0.021464495, -0.0154215, -0.023083404, -0.008262017, 0.034946095, -0.018380195, 0.0025906027, -0.003091278, 0.054373, -0.003113957, 0.034527414, -0.0031837374, 0.03145707, 0.0071001705, 0.004622961, -0.0038518861, 0.014751608, 0.053926405, -0.016719418, 0.003984469, 0.010711313, 0.0122255515, -0.009162186, -0.015198203, 0.032433998, -0.00051681214, -0.0110113695, -0.035755552, 0.025874626, -0.033773784, 0.020389875, -0.032685205, -0.011464943, 0.0070827254, 0.040947225, 0.016314691, 0.04845561, 0.025511768, 0.0030790665, 0.027856393, 0.035560165, 0.00893191, -0.0029883517, -0.021883179, 0.006650086, -0.03282477, -0.016761286, 0.041477557, 0.025023304, -0.047004174, 0.009657627, -0.030787176, -0.013495557, -0.040472716, -0.0059697255, 0.049655836, 0.09696704, 0.032741033, -0.043738443, -0.018408109, -0.013000116, -0.064923815, 0.010494994, -0.057275873, -0.013467645, 0.010292631, -0.06894318, -0.026991114, -0.037793145, -0.0054533496, 0.025232645, 0.03583929, -0.0064581893, -0.031875752, -0.008185258, 0.010592687, 0.037709408, -0.02679573, -0.006691954, 0.0215901, -0.0054568388, -0.030256843, -0.052279584, -0.008610919, 0.07045044, 0.009727408, 0.011883627, 0.01875701, -0.0058580767, 0.0037995507, 0.068999, -0.052307498, -0.0145701775, -0.016537989, 0.011499833, -0.034583237, 0.020417787, 0.0017541085, 0.053061128, 0.0022190213, -0.0064163213, -0.0015770403, -0.0030214975, 0.031401247, -0.060513686, -0.007515365, 0.060569514, 0.04329185, 0.011416097, 0.015658755, -0.007201352, 0.07324166, 0.01994328, 0.04792528, -0.018324371, 0.015156334, 0.040361065, -0.03371796, -0.008268994, 0.016663594, 0.023362527, -0.022120433, 0.01287451, -0.040305242, -0.0072153085, -0.003393079, 0.011632416, 0.021687793, -0.008987734, 0.018896572, -0.009908837, -0.036704566, 0.020808559, -0.01459809, -0.01944086, 0.052140024, -0.010404279, 0.07508387, 0.002163197, 0.009294769, -0.03134542, 0.022301862, 0.02163197, -0.002737142, 0.038714245, -0.0014531799, 0.02944739, -0.019985149, 0.033187628, -0.037067425, 0.04253822, -0.028233208, -0.092333615, -0.028889146, 0.02090625, -0.020752734, -0.02152032, -0.0054882397, -0.013725833, -0.011018348, -0.07860081, 0.002890659, -0.052558705, 0.012609344, 0.037346546, 0.009992574, -0.022915931, 0.050046608, 0.0033704003, 0.010990436, 0.020850427, 0.044352513, 0.0058580767, 0.048762646, -0.0022486781, -0.045245703, -0.007717728, 0.008045697, -0.018868659, -0.032322347, -0.012972203, 0.03332719, -0.029503215, -0.048399787, -0.022943843, 0.015240071, -0.018743055, -0.027647052, -0.0260421, 0.012944291, 0.004075184, -0.05046529, -0.0069954996, 0.061127756, 0.024911655, 0.004720654, 0.016203042, 0.024451103, -0.029866073, 0.012658191, -0.02761914, 0.014556222, -0.0113881845, -0.0077316845, -0.014891168, 0.004643895, -0.01309083, 0.010362411, -0.015798315, 0.005899945, 0.018840747, 0.019245474, 0.027772658, 0.018338326, -0.022929886, -0.014863256, 0.045692302, 0.003991447, 0.03235026, 0.057443343, 0.066431075, 0.013907262, -0.026725948, -0.0000050256986, 0.0185058, 0.002112606, -0.021073725, 0.011855715, -0.03634171, -0.03181993, -0.052754093, -0.033271365, -0.03988656, -0.021185374, -0.02460462, -0.014988861, -0.027242325, -0.082117744, -0.00814339, -0.030312669, 0.045776036, 0.0018840746, -0.015295896, -0.04867891, -0.0067128884, 0.22910349, 0.061686, 0.042231187, 0.043710534, 0.043989655, 0.063081615, 0.025511768, -0.043012727, 0.015630841, -0.066151954, -0.017305575, -0.039551612, 0.014793475, 0.04633428, -0.0571084, 0.026446827, -0.04731121, 0.0046473844, -0.0012150537, -0.047757804, -0.045385268, 0.023055492, 0.043096464, 0.037541933, 0.032601472, 0.01857558, 0.018059205, -0.053228598, 0.029000795, 0.025483854, -0.026237484, -0.0014688805, 0.02145054, 0.0054568388, 0.007564211, 0.022720546, -0.019287342, -0.033829607, -0.012504674, -0.009099383, -0.0044275755, -0.008003828, -0.014723695, 0.01352347, 0.006283738, 0.013160611, 0.018198766, 0.022329774, 0.029531127, -0.013216435, 0.008855151, -0.068831526, -0.004643895, 0.00677918, -0.04859517, 0.027032983, -0.006015083, -0.013411821, -0.022692634, 0.022720546, 0.021059768, -0.0031697813, -0.00993675, 0.013621163, -0.0010781094, 0.012358135, -0.025218688, 0.031205859, -0.04834396, 0.020320095, 0.01731953, -0.004881149, -0.04996287, -0.03346675, 0.015658755, 0.014235231, -0.0094203735, 0.023543956, -0.013362974, -0.054373, 0.026670124, -0.0010894488, 0.03611841, -0.030033546, 0.017640522, 0.023990551, -0.050688587, 0.0022050652, -0.01761261, 0.021562189, -0.0050835125, 0.045608565, -0.011185821, -0.04859517, 0.023334615 ]
from torch.optim import AdamW optimizer = AdamW(model.parameters(), lr=5e-5) Create the default learning rate scheduler from [Trainer]: from transformers import get_scheduler num_epochs = 3 num_training_steps = num_epochs * len(train_dataloader) lr_scheduler = get_scheduler( name="linear", optimizer=optimizer, num_warmup_steps=0, num_training_steps=num_training_steps )
[ 0.014113777, -0.0043339273, -0.024563674, 0.0067753256, -0.03544126, 0.0060090474, -0.016066896, -0.0062585333, 0.0053354353, 0.045677315, 0.028227555, 0.029368062, 0.012552707, -0.040716108, -0.0054958193, 0.038064428, -0.022254147, -0.046447158, -0.056341056, 0.010685127, 0.024178753, 0.03213379, -0.10030761, -0.033103224, -0.031306922, -0.019231804, 0.052263744, 0.005363948, 0.06329815, 0.03435778, -0.0060090474, -0.006871556, 0.009516107, -0.035897464, 0.0054174094, -0.022225635, 0.03669582, 0.009330775, -0.031249898, -0.027129816, 0.024934338, 0.0070533245, -0.0065151476, -0.006162303, -0.069970116, -0.026787663, 0.0218122, -0.022567786, 0.014641262, -0.0014924606, -0.017820425, -0.01106292, 0.03658177, -0.01071364, -0.03544126, 0.024506649, -0.02718684, 0.008667855, -0.044593833, -0.019303085, 0.03658177, -0.00052258396, -0.031021796, -0.044422757, 0.0215841, 0.020058671, 0.0020671694, -0.011768609, -0.018775601, -0.01886114, -0.039518576, 0.008347088, -0.006689788, -0.025875257, -0.045164086, -0.0029047295, 0.00845401, 0.007969295, -0.0494695, 0.05970555, 0.008732009, 0.040887184, 0.007940781, 0.018105552, -0.03501357, -0.021598356, 0.055713776, -0.038976833, -0.025148185, -0.033445373, -0.01074928, 0.015411104, 0.01063523, 0.007876628, 0.0589072, 0.0041236463, -0.024820289, 0.03872022, 0.0062763537, 0.0050039752, 0.04864263, 0.09751337, 0.023237836, 0.01605264, -0.036040027, 0.040031802, 0.03330281, -0.022653325, -0.031478, -0.030480055, 0.027700068, 0.024478136, 0.0034482523, -0.02212584, -0.014277725, 0.020386567, -0.015240028, 0.007620014, -0.018604524, 0.014434544, 0.0065971217, -0.0100079505, 0.010435641, -0.028755039, 0.022239892, -0.060674984, -0.026245922, 0.035697877, -0.028384374, -0.031449486, -0.019531187, -0.00393475, 0.016451817, 0.04094421, -0.012966141, 0.014783825, 0.014983414, 0.022696095, 0.004280466, -0.016081152, 0.02894037, -0.02345168, -0.018690063, 0.093350515, -0.0070533245, 0.02846991, -0.0072350926, -0.0031755997, -0.032704044, 0.007121042, -0.04265497, 0.012103633, -0.027757095, 0.023038246, 0.025305005, -0.00012351782, -0.0069285813, 0.011105689, 0.01300891, 0.005442358, 0.016294997, -0.025162442, -0.048100892, 0.030223442, 0.003311035, 0.025818232, -0.051094726, -0.02403619, -0.003556957, -0.012780809, 0.008603701, -0.001803427, 0.022268403, 0.024948595, 0.036553256, 0.07230816, 0.053147636, 0.003852776, 0.044964496, -0.017635092, -0.027985197, -0.009102673, 0.022368198, 0.060389858, 0.02196902, 0.049811654, 0.017349966, 0.025233723, -0.016423304, -0.005324743, 0.02808499, 0.06312708, -0.047901303, 0.024920084, -0.024520906, -0.016309254, -0.030565593, 0.027999453, 0.0005751542, -0.051864564, -0.0058272793, 0.02271035, -0.04670377, -0.020343797, 0.0020849898, 0.024278548, 0.021184921, 0.016622894, -0.024449624, 0.0225963, 0.052919537, 0.028683757, -0.00794791, 0.0047473614, 0.049127348, 0.016066896, -0.032732558, -0.0009934887, -0.012367375, 0.030052366, 0.020571899, -0.01032159, 0.003977519, 0.0113124065, 0.018176833, -0.039290473, -0.018091297, 0.07994956, -0.027030021, 0.002639205, 0.014505826, 0.01414229, -0.0076413983, 0.05443071, 0.025091158, 0.020942563, 0.056711722, 0.0030508568, -0.0073919124, -0.012146402, 0.011519123, 0.041828103, 0.032932147, 0.016038382, -0.0060161757, 0.017136121, 0.0049612066, 0.032276355, -0.0003982865, 0.0494695, -0.055656753, 0.05123729, 0.03501357, 0.011526251, -0.054972447, -0.01920329, 0.011661686, 0.003344894, -0.037494175, 0.01188266, 0.007848116, 0.0451926, -0.022368198, -0.026416998, 0.012317478, 0.08342811, -0.019573955, -0.010934613, 0.017734887, 0.010364359, -0.036952436, -0.04028842, -0.06147334, -0.0030847157, -0.027771352, 0.01600987, -0.001963811, -0.028213298, 0.006732557, -0.02446388, 0.019958876, 0.004950514, -0.016266484, 0.044593833, 0.06170144, 0.013301166, -0.06637752, 0.015624949, -0.021712406, 0.011248252, -0.015297053, -0.025376286, 0.014612749, -0.011055792, 0.013700343, -0.0042341333, 0.019103495, -0.036752846, -0.017136121, -0.0062086363, -0.013878548, 0.005096642, 0.021355998, -0.010692256, -0.0027069226, 0.035669364, 0.039290473, -0.025661413, 0.005816587, 0.029082933, -0.024449624, 0.029339548, 0.018761344, -0.010934613, -0.055542704, 0.039518576, 0.023380399, -0.02824181, -0.062613845, -0.02695874, -0.022211378, -0.014441673, -0.028726526, -0.024820289, -0.04807238, 0.04627608, -0.047587663, -0.039917752, -0.0011173406, -0.024991365, -0.0066862237, -0.029539138, -0.015610693, 0.042369843, 0.016993558, 0.010834819, -0.041885126, 0.026345717, 0.023195066, 0.024634955, 0.020814257, -0.03509911, 0.0022400275, 0.03469993, 0.0147268, 0.022111584, 0.0147268, -0.011077177, 0.01733571, 0.019231804, -0.00720658, -0.013771625, 0.0065258397, 0.023537219, -0.0011966416, 0.022097327, -0.03424373, 0.000015843472, 0.033473887, 0.029624674, 0.016879506, 0.021926252, 0.026659356, -0.0040381085, -0.011540508, -0.009337903, 0.0073562716, 0.0054067173, 0.021869225, -0.04647567, 0.000040040268, -0.025091158, -0.022525018, -0.029054422, 0.011668814, -0.012837835, 0.018262371, 0.032932147, 0.055457164, 0.0017303634, -0.0145984925, 0.026231667, -0.0014158328, 0.011889788, 0.03127841, 0.0064331735, 0.019474162, 0.02099959, -0.003924058, -0.011155587, -0.015539411, 0.05160795, -0.006454558, -0.03572639, -0.06654859, -0.055856343, 0.0117329685, 0.048300482, 0.025162442, 0.00077162444, 0.037066486, -0.031192873, 0.012317478, 0.007427553, 0.029068679, -0.014969157, -0.03763674, 0.033873066, 0.0042127487, -0.001298218, -0.030622618, -0.039062373, 0.0041949283, -0.019844826, 0.019844826, -0.01047841, -0.023622757, 0.032475945, -0.033017684, 0.03817848, 0.0031720358, -0.03233338, -0.008846059, 0.017521042, 0.033416864, -0.05924935, 0.009765593, -0.04094421, 0.01908924, 0.016466074, -0.03167759, -0.034985058, -0.03669582, -0.03042303, -0.04955504, 0.017806169, 0.06352625, -0.025433311, 0.029182728, -0.034215216, -0.0017089788, 0.019602468, -0.0093878005, -0.024791775, -0.004191364, 0.0026124744, 0.016409047, -0.003927622, -0.010763537, 0.0015272105, 0.025262235, -0.042911585, -0.0016813572, -0.038634684, 0.004105826, -0.0098939, 0.012203427, 0.016708432, 0.03509911, 0.011419329, -0.012823578, -0.011590404, 0.018176833, -0.0058379713, -0.026616588, 0.0393475, 0.0040773135, 0.012552707, 0.050068267, -0.022810144, -0.0090670325, 0.011889788, 0.0058058947, -0.03986073, -0.0077340645, 0.013194243, 0.015838794, -0.016580123, -0.012517067, -0.016294997, -0.024934338, 0.033359837, 0.00134366, -0.0052463333, 0.052691434, -0.06945689, 0.0049647707, 0.021298973, -0.046960384, 0.03572639, 0.0029991777, -0.046447158, -0.007160247, -0.01733571, -0.017036326, -0.04094421, -0.0054316656, 0.009758465, 0.037807815, 0.007231529, -0.02095682, -0.04613352, -0.055457164, 0.008682111, -0.030565593, 0.016537355, 0.000690987, 0.010499795, 0.029368062, 0.008282933, -0.04425168, 0.031506512, -0.0069214534, 0.017934477, -0.031021796, -0.012944757, -0.0023612063, -0.01425634, -0.009922413, 0.06711885, -0.012730912, -0.05902125, -0.032304868, 0.023366142, 0.013764497, 0.00013042324, 0.027129816, -0.026345717, -0.030023852, -0.040773135, 0.06312708, -0.014113777, -0.015981358, -0.0355268, -0.07681316, -0.014912132, -0.003941878, 0.017934477, -0.045477726, -0.0058130226, -0.047359563, -0.0060660727, -0.0033840989, -0.012859219, -0.0044622347, 0.021170665, -0.030366005, 0.023779577, 0.002760384, 0.033759013, 0.0032878686, 0.013600549, 0.02824181, -0.0042056204, -0.043481838, -0.0087676495, 0.014612749, -0.005281974, 0.00218122, 0.029653188, 0.019117752, 0.016380535, -0.03495655, 0.03444332, -0.041742563, -0.009508979, -0.044793423, -0.051722, 0.02925401, -0.039689653, 0.018675806, 0.007570117, -0.008318574, -0.01967375, 0.029154217, -0.025989309, -0.023936395, -0.03307471, -0.07071145, 0.032504454, -0.02017272, -0.0054209735, 0.015168746, -0.017349966, 0.058964223, -0.044109117, 0.022268403, 0.07196601, 0.0068537355, 0.035498288, -0.062442772, 0.018618781, 0.0009337903, 0.0006148047, -0.019174777, -0.031620562, -0.01951693, -0.016152434, 0.0071174777, -0.038378067, -0.022425223, 0.056626186, 0.015653461, 0.010898972, 0.029824264, 0.023751063, -0.04838602, -0.03233338, 0.02734366, 0.006254969, 0.0063547636, 0.018533243, 0.04701741, 0.0142207, -0.0039204936, -0.012709527, -0.032390404, 0.01223194, 0.00093289925, -0.008952982, -0.06597834, 0.06033283, 0.016580123, -0.041714054, -0.03244743, 0.012681015, 0.008867444, -0.009808362, -0.03412968, -0.010150515, -0.008846059, -0.037494175, 0.0016982865, 0.024335572, -0.04581988, 0.009858259, 0.0065258397, -0.0028673063, -0.09745634, 0.021384511, 0.047217, -0.021598356, -0.025404798, -0.06934284, 0.0000015384039, -0.015867306, -0.015268541, 0.03789335, -0.032532968, -0.008774778, 0.06603537, 0.021241948, 0.025861, 0.005028924, 0.028156273, 0.013978342, -0.020700207, -0.07812475, -0.050752573, 0.02913996, -0.021241948, 0.041001234, -0.004202056, 0.03541275, 0.03073667, 0.04639013, -0.0021420151, -0.074532144, -0.0028227554, -0.038321044, -0.031649075, 0.02426429, -0.018362166, -0.015325566, 0.03469993, 0.018747088, -0.06358328, -0.00636902, 0.054145582, 0.0055065113, -0.033587936, -0.045221113, 0.01071364, -0.029339548, -0.014071008, -0.055913366, 0.02048636, 0.044080604, 0.028341604, 0.0033947912, 0.019231804, -0.022610556, 0.017834682, -0.016294997, 0.013429472, -0.01760658, -0.017962988, 0.03763674, -0.020671694, -0.05953448, -0.001260795, 0.04060206, -0.03903386, 0.0014345442, 0.0100079505, 0.021755176, 0.023223579, 0.02797094, 0.058251407, -0.012752296, -0.0077768336, 0.018005759, 0.027757095, -0.036353666, 0.0044836192, -0.053518303, -0.032532968, -0.002890473, 0.045335162, 0.0393475, 0.033274297, 0.019930365, 0.014406032, -0.024863057, 0.025233723, -0.013707471, 0.018305141, 0.027985197, 0.017948732, -0.024634955, -0.04627608, 0.033017684, 0.012959014, -0.025376286, 0.007890885, -0.030394517, -0.029068679, 0.004993283, 0.0010808088, -0.024207266, 0.040830158, 0.0073562716, 0.015382592, -0.012395888, -0.028341604, -0.027215354, -0.00027888967, -0.07379082, -0.028755039, 0.022410966, -0.03393009, 0.013251268, 0.019702263, -0.014120905, 0.01375024, 0.045990955, 0.005809459, -0.032076765, 0.0064830706, 0.011554764, 0.02878355, -0.024563674, -0.04274051, 0.01121974, -0.009651543, -0.04998273, -0.01180425, -0.01340096, 0.07247923, 0.052577384, -0.007085401, -0.025918027, -0.017905964, 0.0319342, -0.007498835, -0.044394244, 0.018989446, -0.01005072, 0.020358054, -0.048043866, 0.03872022, -0.027372174, 0.040716108, 0.0042448253, -0.0031203565, 0.0050503085, 0.03669582, 0.024021933, -0.049098834, -0.006579301, 0.03010939, 0.019602468, -0.0066862237, -0.010542564, 0.0069357096, 0.05970555, 0.041742563, 0.029909803, -0.01893242, -0.0024930774, 0.0335024, -0.03179164, -0.027557505, 0.027457712, 0.025946539, 0.009145442, 0.019688006, -0.08776203, -0.02578972, -0.017521042, -0.002892255, 0.009444825, -0.0023077452, 0.0019210419, 0.033559427, -0.0119325565, 0.0108704595, -0.030023852, -0.022610556, 0.03393009, 0.0072636055, 0.038948324, -0.03127841, 0.013572036, 0.0059342016, -0.00502536, 0.044308707, -0.008703495, 0.020343797, -0.0010727897, 0.042027693, 0.009416313, 0.002345168, 0.00041343388, -0.018975189, -0.022610556, -0.019132009, 0.0014309802, 0.037494175, 0.019146265, -0.031478, 0.006083893, -0.03783633, 0.014627005, -0.034072652, 0.037551202, -0.081831396, 0.007178067, 0.028298836, -0.014363263, -0.025946539, 0.045591775, -0.025034133, 0.03136395, 0.0032967788, 0.074532144, 0.041828103, 0.0870207, 0.025861, -0.0037173408, 0.00053817686, 0.022653325, -0.043025635, 0.012502811, -0.028541194, 0.03489952, 0.02925401, -0.08200247, -0.047388077, 0.01873283, -0.016223716, -0.013472241, -0.056911312, 0.02423578, -0.0028744347, -0.028270323, -0.0167512, 0.07504538, 0.02606059, 0.03829253, -0.029938314, 0.0133154215, -0.027742838, 0.012010966, -0.03469993, 0.029738726, -0.056654695, -0.030508569, -0.025162442, -0.03544126, -0.010100617, 0.00075647706, 0.0031043182, -0.016209459, 0.025404798, 0.014548595, 0.024677726, -0.011996711, -0.013572036, -0.038691707, 0.03626813, 0.052092668, 0.018747088, 0.051893078, 0.05337574, 0.0059840987, -0.033245787, -0.02255353, -0.0021954763, -0.022881426, 0.013992598, 0.005324743, 0.0077340645, 0.0012901988, -0.03464291, -0.053204663, 0.00060990406, -0.027044278, 0.035983004, -0.052206717, -0.015268541, -0.07316354, 0.0020440028, -0.025504593, 0.060674984, -0.01024318, -0.019260315, -0.011134202, -0.051123235, 0.24110323, 0.06517999, 0.049811654, 0.030394517, 0.03772228, 0.020714462, 0.041828103, -0.04168554, 0.0060019195, -0.0104498975, -0.0052071284, -0.023280604, 0.0009052776, 0.041514464, -0.0013133654, 0.041086774, -0.04299712, -0.021783687, 0.042711996, -0.05180754, -0.04299712, 0.021013847, 0.019916108, 0.055713776, 0.015596436, 0.0067503774, 0.01839068, -0.050239343, 0.020714462, -0.031192873, 0.002601782, -0.006964222, 0.026630843, -0.00494695, 0.02017272, 0.025889514, 0.00041142906, -0.02606059, -0.00426621, -0.019303085, 0.0055884854, -0.044422757, -0.032475945, -0.0065507884, -0.036638796, 0.032789584, -0.011519123, 0.006714736, 0.040687595, -0.07179493, 0.054915424, -0.08126114, 0.00047580537, -0.025376286, -0.07561563, -0.011590404, -0.0294536, -0.049184375, -0.019132009, 0.058736123, 0.019645236, -0.008190268, -0.009480466, 0.015496642, -0.023594243, 0.006205072, -0.010485538, 0.0058914325, -0.03307471, 0.00016439342, -0.014463058, -0.0041129543, -0.042711996, -0.026131872, 0.0018711446, 0.0575671, 0.009687183, 0.028911859, -0.016209459, -0.050353393, 0.026901715, -0.001296436, 0.023465937, -0.002223989, 0.025105415, 0.06848746, -0.041200824, -0.008874572, -0.018775601, 0.019616725, 0.036752846, 0.028869089, -0.026431255, 0.0045050033, 0.008774778 ]
import evaluate metric = evaluate.load("accuracy") model.eval() for batch in eval_dataloader: batch = {k: v.to(device) for k, v in batch.items()} with torch.no_grad(): outputs = model(**batch) logits = outputs.logits predictions = torch.argmax(logits, dim=-1) metric.add_batch(predictions=predictions, references=batch["labels"]) metric.compute() Additional resources For more fine-tuning examples, refer to:
[ 0.04814391, -0.014508927, -0.03736585, -0.010377814, -0.022399498, -0.019855075, -0.014994941, -0.0036879836, -0.0050030784, 0.040739354, 0.026001714, 0.024200605, 0.058550313, -0.048601333, -0.013829938, 0.027531227, -0.018625747, -0.02585877, -0.061180502, -0.011442755, 0.006661242, 0.004888722, -0.08942646, -0.038938247, -0.03525026, 0.011857296, 0.008569559, -0.022542443, 0.062609956, 0.008205049, -0.03962438, -0.00072455296, -0.021599004, -0.027802821, -0.012922237, -0.04491335, 0.030561663, -0.010928153, -0.040453464, -0.034506947, 0.012228954, -0.014952057, 0.019755013, -0.07747624, -0.08256509, 0.020455444, 0.023571648, -0.02132741, -0.012893648, -0.036250878, -0.008783977, 0.03553615, 0.018182617, -0.0067898924, -0.038137753, -0.01210745, -0.018325562, -0.010770913, -0.016167091, -0.04116819, 0.00011318349, 0.020155258, -0.019783601, -0.024672324, 0.0045528016, 0.004031052, 0.010542201, 0.006093035, -0.010835239, 0.0020119522, -0.03476425, 0.017396418, -0.022671092, -0.033363387, -0.008733946, 0.020355383, 0.0039810212, -0.028817732, -0.016109914, 0.038652357, 0.014473191, 0.04720047, -0.028088713, 0.04265482, -0.02392901, -0.041825738, 0.037708916, -0.024143428, -0.012614905, -0.040510643, -0.007197286, 0.012207512, -0.004910164, -0.00035177896, 0.04639998, 0.020812806, -0.025372755, 0.050631154, -0.041225366, 0.0035897088, 0.028103007, 0.10349225, -0.023442997, 0.022342319, -0.06426812, 0.00074376125, 0.018954521, -0.029703991, -0.038938247, 0.00094433106, 0.0036451002, 0.030504484, 0.01450178, 0.012843617, -0.017267767, 0.03350633, -0.02858902, 0.007783361, -0.010885269, 0.00052934355, 0.015966969, -0.042969298, -0.035993576, -0.0139157055, 0.035164494, -0.05543411, -0.0031269242, 0.025472816, -0.0022871215, -0.015366598, 0.023057045, 0.019197527, 0.043198008, 0.031762403, 0.012228954, -0.014823407, -0.0133653665, 0.036565356, -0.038023397, -0.0009979355, -0.019054582, -0.027688466, 0.008390877, 0.106637046, 0.037909042, -0.0093486095, 0.021599004, -0.0338494, -0.053861715, 0.016681693, -0.013787055, -0.0068899537, -0.015423777, 0.047657896, -0.0062502744, -0.03530744, 0.002812445, 0.007704741, 0.03736585, 0.024786681, -0.013729877, 0.0015813302, -0.051488824, 0.056749206, -0.014408866, 0.040882297, -0.040653586, -0.0093486095, 0.025944537, -0.032477126, 0.00890548, 0.025529996, 0.009877507, 0.006339615, 0.05657767, 0.033306208, 0.057949945, 0.00919137, 0.00708293, -0.04254046, -0.00583216, -0.03093332, -0.012078861, 0.019297589, -0.022642504, 0.022456676, 0.0018332709, 0.015452365, 0.013451134, 0.031705223, -0.00017242752, 0.066154994, -0.051974837, 0.004184718, -0.025001097, -0.002417559, -0.010342078, 0.015881201, 0.0054747975, -0.05629178, 0.0039381376, 0.054290548, -0.029332334, -0.023271462, 0.014994941, 0.01936906, -0.00773333, 0.019126054, 0.0030876142, 0.026030302, 0.05017373, 0.023786064, 0.0047064675, 0.015166475, 0.033106085, -0.01137843, -0.006446824, 0.033077497, -0.019054582, 0.029818349, 0.05652049, 0.010606526, 0.060780257, -0.00587147, 0.04082512, -0.02947528, 0.00014227505, 0.059407983, 0.010527907, 0.017296357, 0.011356988, 0.022099312, 0.008205049, 0.008419466, 0.040367696, 0.021813422, 0.029075034, 0.03241995, 0.020941457, 0.004488476, 0.026759323, 0.01648157, 0.01676746, 0.031019086, 0.020055197, 0.017110528, -0.021456059, 0.01153567, -0.055319753, 0.0014991368, -0.07450299, 0.027088096, 0.012550579, -0.023271462, -0.05637755, -0.015938379, -0.015523838, 0.014244479, 0.014573253, 0.026773617, 0.012643494, 0.033963755, -0.034163877, 0.034020934, 0.038537998, 0.061352037, -0.01984078, 0.019126054, 0.030533073, -0.017996788, -0.0747317, -0.044798996, -0.064439654, -0.0027570536, -0.051117167, 0.00058339466, -0.002110227, -0.07827674, 0.009427229, -0.013994325, -0.015223653, 0.020398267, -0.026716439, 0.028417487, 0.086967796, 0.034506947, -0.027173864, 0.027016625, -0.011306957, 0.03324903, -0.0067005516, -0.051174346, -0.00092288933, 0.015095003, 0.032305595, 0.018983109, 0.011828707, -0.051746126, -0.04494194, -0.0015321928, -0.012293278, -0.018568568, 0.01421589, 0.027459754, -0.021656184, 0.030790376, 0.015452365, -0.03156228, 0.016238563, 0.059465162, -0.009427229, 0.026716439, 0.010349225, 0.057006504, -0.046228446, 0.05014514, 0.023414407, -0.018697219, -0.04777225, -0.038680945, -0.007933453, 0.0047243354, -0.015152181, -0.031762403, -0.020998634, 0.063410446, -0.06306738, -0.05334711, -0.0028160184, -0.04994502, 0.0017993215, -0.0023693151, -0.0027695613, 0.054061837, -0.012686377, 0.032820195, -0.041597024, 0.033649277, 0.013586932, 0.017096234, -0.006110903, -0.015838318, 0.019583479, 0.042083036, 0.021498943, -0.0028714098, 0.024443612, -0.027474048, 0.04462746, -0.0008893866, 0.01320098, 0.011314104, -0.011306957, -0.014423161, -0.009906095, 0.018983109, -0.02554429, -0.006882807, -0.030132826, 0.01445175, 0.01635292, 0.02710239, 0.018139733, -0.017353535, -0.058207244, -0.004978063, 0.0045813904, -0.019340472, 0.041882914, -0.05689215, 0.040081806, -0.021684771, -0.029089328, -0.014273068, -0.0072794794, -0.035993576, 0.016495865, 0.041253954, 0.027545521, -0.009470113, -0.042997885, 0.026945151, -0.00926999, 0.028074417, 0.01733924, 0.015409482, 0.0012239674, 0.017953904, -0.017410712, 0.011885885, -0.007561796, 0.043826967, 0.0022513852, -0.009169928, -0.04619986, -0.03590781, 0.02434355, 0.054690797, 0.019011699, -0.007869128, 0.07044335, 0.012400487, 0.0132796, 0.021498943, 0.014237332, -0.048572745, -0.052089196, 0.002617682, 0.044541694, 0.003030436, -0.011021067, -0.029075034, -0.007061488, -0.007926306, -0.010499317, 0.0013999686, -0.028417487, 0.0050495355, -0.028031534, 0.0071544023, -0.04205445, -0.024157722, -0.059465162, 0.03676548, 0.042140216, -0.023828948, 0.01853998, -0.017582247, -0.008991247, 0.0122503955, -0.020541212, -0.014594695, -0.024786681, 0.0016938994, -0.050059374, 0.017796665, 0.06495425, -0.030247184, -0.008369436, -0.08130717, -0.012236101, 0.03765174, -0.010878122, 0.0017269555, 0.008033515, 0.01648157, -0.006839923, -0.0071007977, 0.0075832377, 0.05369018, -0.0006999843, -0.036622535, 0.009891801, -0.03939567, 0.008626737, -0.03173381, -0.003934564, 0.0045063444, 0.017739488, 0.030132826, -0.02786, 0.01445175, 0.061923817, -0.04116819, -0.016753165, 0.02309993, 0.010184838, -0.021198759, 0.032277003, -0.00096934644, 0.007797655, 0.029260863, 0.014401719, -0.00010346768, 0.0062681427, 0.0048172497, -0.019497711, -0.020255322, 0.005667773, -0.001842205, -0.049058758, -0.014723346, -0.0073330835, 0.013944294, 0.054633617, -0.059350807, -0.04025334, 0.026259014, -0.02627331, 0.0039845947, 0.005603448, -0.01603844, -0.0045492277, -0.009856065, -0.005621316, -0.026101775, -0.024529379, -0.015480954, 0.072273046, 0.036250878, -0.019168938, -0.054919507, -0.02535846, 0.021427471, -0.016109914, 0.02567294, -0.0075332066, 0.024700914, 0.0063753515, 0.003973874, -0.014809112, -0.009055573, 0.0051960545, 0.026473433, 0.014880585, -0.006804187, 0.0018564995, -0.017253473, 0.003368144, 0.07987772, -0.040424876, -0.050831277, -0.024929626, 0.00518176, 0.0021334556, -0.009705972, 0.049744897, -0.02304275, -0.033763632, -0.031419333, 0.02804583, -0.038680945, 0.0048494125, -0.029875526, -0.0046278476, -0.000116701274, 0.007983484, 0.016310036, -0.008569559, 0.0018600731, -0.044684637, 0.0020030183, -0.032677248, 0.01202883, 0.017467892, -0.00009498032, -0.037623152, 0.010828092, 0.028317424, 0.007983484, -0.012865059, -0.00067184196, 0.04176856, 0.015338009, -0.048000965, -0.013029446, 0.025429934, -0.01765372, 0.016367214, 0.019168938, -0.015080708, 0.01705335, -0.040968064, 0.025815886, -0.032734428, -0.013715582, -0.046257034, -0.017896727, 0.04499912, -0.042111628, -0.020626977, 0.008633884, 0.020941457, -0.02947528, 0.05460503, -0.008591001, -0.029175095, -0.038709532, -0.058721848, 0.025773002, 0.0075903847, -0.034907192, -0.0047636456, -0.0028999988, 0.07621833, -0.047715075, 0.025901653, 0.049173113, 0.0027677745, 0.033020318, -0.010292048, 0.05043103, 0.003780898, -0.0069900155, -0.049173113, 0.011414167, -0.025601467, 0.00061421725, -0.021427471, -0.027902884, 0.004134687, 0.0387953, 0.035507564, -0.057320986, 0.02564435, 0.015209359, -0.06518297, -0.039881684, 0.01809685, 0.004624274, 0.0074402923, 0.013872822, 0.0020780645, -0.0069792946, 0.039853092, -0.020269616, -0.053461466, -0.0112783685, 0.05134588, -0.033449154, -0.04788661, -0.026201837, 0.0411396, -0.004556375, -0.018554274, 0.03153369, 0.07233022, -0.021127285, -0.01736783, -0.00846235, 0.007418851, -0.027745644, -0.000055084118, 0.030818963, -0.008340847, -0.024929626, 0.055662822, -0.0014392785, -0.078562625, 0.01942624, 0.038938247, -0.037423026, 0.000955052, -0.024457907, 0.018740103, -0.01752507, -0.054061837, 0.050974224, -0.05280392, -0.009948979, 0.06363916, -0.0077905077, 0.042912118, 0.008912627, 0.0054747975, 0.0072759055, -0.027188158, -0.042397518, -0.018039672, -0.0022585327, -0.006150213, 0.043998502, -0.028703377, -0.010327783, 0.014080092, 0.04022475, -0.01385138, -0.046457157, -0.00087553874, -0.04288353, -0.02072704, 0.039795917, 0.0007643096, 0.002351447, 0.010141955, -0.010213427, -0.03293455, 0.0070579145, 0.016595926, -0.062038172, -0.009091308, -0.035221674, 0.02380036, -0.033592097, 0.041511256, -0.011864443, -0.02557288, 0.024100544, 0.014837702, 0.006189523, 0.008197902, 0.03559333, 0.011321252, -0.034649894, 0.04665728, -0.03999604, 0.014258774, 0.0066898307, -0.0030822537, -0.019955136, -0.005935795, 0.03793763, -0.00725089, 0.0044277245, 0.0071007977, -0.021398881, -0.011321252, 0.0052711004, 0.06929979, -0.017510775, 0.015280832, -0.01838274, 0.038652357, -0.031104853, -0.013529753, -0.0024961787, 0.0009219959, -0.009648794, 0.03210547, 0.04351249, 0.05251803, -0.004545654, 0.032791607, -0.0027034492, 0.034907192, -0.022042135, 0.001798428, 0.045027707, -0.007540354, -0.009563027, -0.010027599, 0.035478976, 0.014022915, -0.0037380143, 0.02069845, 0.036565356, -0.0033877988, 0.009377198, -0.010792355, -0.012293278, 0.052403674, 0.03184817, -0.015981263, -0.0033699307, -0.0036308055, -0.06415376, 0.025401345, -0.03562192, -0.015252242, 0.027059507, -0.047915198, -0.011514228, -0.00890548, -0.012479107, 0.0014214104, -0.0054747975, 0.018425623, -0.032734428, 0.00639322, -0.0017957478, 0.003109056, -0.05720663, -0.06907107, -0.017853843, 0.03356351, -0.03264866, -0.0042061596, 0.020069493, 0.049487595, 0.0041025244, -0.008648179, -0.036422413, -0.026773617, 0.0058750436, 0.038709532, -0.030190006, -0.00077547715, -0.01429451, 0.014894879, -0.040996656, 0.011943063, -0.0079620425, 0.037165727, 0.0028624756, 0.009148486, -0.004999505, 0.037423026, 0.02804583, -0.015323714, -0.004806529, 0.017596541, -0.008526675, 0.012264689, -0.0000015180938, 0.020584095, 0.009177076, 0.03942426, 0.020584095, -0.017453596, 0.012143186, 0.047086116, -0.050945632, -0.017081939, 0.024858152, 0.011399872, 0.018625747, 0.003730867, -0.048029553, -0.012607758, -0.01218607, -0.003578988, 0.048544157, -0.013050888, -0.017753782, 0.034535535, 0.0026337635, 0.031304978, 0.011785824, -0.036908425, 0.008469497, 0.043655433, 0.019311883, 0.005556991, 0.044198625, -0.01762513, 0.05895056, 0.010141955, 0.019168938, 0.00027226575, -0.007243743, 0.040596407, -0.017853843, -0.0046957466, -0.0021548974, -0.019326178, -0.017024761, -0.017853843, -0.022528147, 0.038309287, -0.006436103, -0.0025551436, 0.0045528016, -0.035078727, -0.022085018, -0.063410446, 0.018925931, -0.078562625, -0.006907822, 0.011778676, -0.029618224, -0.024014777, -0.01267923, -0.027502637, 0.049687717, 0.00024367672, 0.036622535, -0.0040346254, 0.097660094, 0.015266537, 0.025429934, 0.0058536017, 0.042769175, -0.048544157, -0.017196296, -0.00145804, 0.028731965, -0.021213053, -0.055605642, -0.051460236, 0.037137136, 0.012622053, 0.005614169, -0.07255893, 0.004199012, 0.03616511, -0.022556737, -0.030961908, 0.098231874, 0.021670477, 0.02012667, 0.011778676, 0.02072704, -0.039452847, -0.013951442, -0.015037824, 0.031876758, -0.03553615, -0.034535535, 0.0062502744, -0.062209707, -0.00019252919, -0.04637139, -0.025244106, 0.009927537, 0.019755013, -0.009227106, 0.03033295, 0.009634499, -0.03556474, -0.033992346, 0.019540595, 0.034907192, -0.015080708, 0.06609781, 0.030647429, 0.012886501, -0.020998634, -0.0032645087, -0.016881816, -0.030876141, -0.013980031, -0.034163877, -0.013965736, -0.0017537577, -0.057635464, -0.01015625, 0.025487112, 0.009248548, 0.0087911235, -0.041282546, -0.032848783, -0.05306122, -0.0132224215, -0.039567202, 0.035221674, 0.012664936, -0.045971144, 0.045599487, -0.028488958, 0.24106261, 0.05737816, 0.037165727, 0.0057035093, 0.022613915, 0.02773135, 0.013451134, 0.009234253, 0.013758466, -0.017853843, -0.006661242, -0.019897958, -0.0052246433, 0.0341067, -0.037423026, 0.03181958, -0.043483898, -0.007240169, -0.04519924, -0.0554627, -0.0024872448, 0.032505717, 0.022456676, 0.038537998, 0.049430415, -0.023828948, -0.028317424, -0.04339813, 0.013315336, -0.019583479, 0.0032502143, -0.029561047, 0.016095618, 0.027974356, 0.0014499994, 0.032562893, -0.0049280324, -0.040625, 0.0009773871, 0.023414407, -0.00049137376, -0.03650818, 0.013422545, 0.0025140468, -0.01825409, 0.033992346, 0.0004945007, -0.00919137, 0.016209975, -0.061695106, 0.03705137, -0.10023311, -0.0037380143, -0.026201837, -0.043998502, -0.012007388, -0.055005275, -0.034506947, -0.010913858, 0.04465605, 0.026230427, 0.0039810212, -0.003436043, 0.01809685, -0.008476645, 0.037851863, -0.04173997, 0.023857538, -0.01733924, -0.014458897, 0.0056927884, -0.0060680197, -0.030590251, -0.019612068, -0.0051067136, 0.03413529, 0.03447836, 0.04431298, -0.01765372, -0.060437188, 0.020140965, 0.018911637, -0.011106835, -0.026516316, 0.033935167, 0.06381069, -0.053004045, 0.020484032, 0.010820944, 0.028774848, 0.007454587, 0.05071692, -0.0037451617, 0.02072704, 0.029046444 ]
metric.compute() Additional resources For more fine-tuning examples, refer to: 🤗 Transformers Examples includes scripts to train common NLP tasks in PyTorch and TensorFlow. 🤗 Transformers Notebooks contains various notebooks on how to fine-tune a model for specific tasks in PyTorch and TensorFlow.
[ -0.0076755257, 0.0008149244, -0.056410313, 0.020950714, -0.014250327, -0.019650528, 0.005928402, 0.023403335, 0.010541843, 0.02928372, -0.040098898, 0.028456328, 0.018069621, -0.059542578, 0.013319512, 0.027835786, 0.004026142, -0.035105005, -0.05419409, 0.019591428, 0.011842029, 0.027008396, -0.05643986, -0.046511177, -0.012307436, 0.049259294, -0.02839723, -0.006689306, 0.059601676, 0.038414568, -0.040719442, -0.023979554, -0.007742013, -0.015543125, -0.036139242, -0.0071657943, -0.0011256576, 0.008975712, -0.053662196, -0.044649545, -0.00072719884, -0.044088103, 0.021083687, -0.054253187, -0.06512746, -0.043497108, -0.0029069486, -0.03170679, 0.024289826, -0.08149798, -0.039360154, 0.025205866, -0.017596826, -0.02179288, -0.012514284, -0.0014645554, -0.010652655, -0.012647257, -0.05673536, 0.032888778, 0.008731927, 0.055287424, -0.0057178605, -0.084098354, 0.03463221, 0.0309976, -0.02625488, -0.02879615, -0.035105005, -0.026919747, -0.045920182, 0.0068961536, 0.002177441, 0.00010226955, 0.008384718, -0.0032227605, 0.020729091, -0.020921163, -0.0043511884, 0.01586817, 0.032888778, 0.018054847, -0.04077854, 0.01415429, -0.032297786, -0.020404045, 0.067668736, 0.0020481613, 0.024747847, -0.040217098, 0.0033335718, 0.034957256, -0.019443681, 0.0176116, 0.0008153861, 0.032238685, -0.023063514, 0.051002726, 0.033006977, 0.043851703, -0.0013278881, 0.057976447, 0.000949283, 0.040719442, -0.030317958, -0.044767745, 0.04246287, -0.03265238, -0.004687316, -0.004410288, 0.036257442, -0.015794298, 0.008052284, 0.021068912, 0.042108275, 0.005307859, -0.022945317, -0.024880819, -0.034425363, -0.014095191, 0.00087817915, -0.029771289, 0.0013509738, -0.03803042, 0.009071748, -0.040364843, 0.014427625, 0.01083734, -0.039626103, -0.020152872, -0.026579926, -0.025885507, -0.042994764, -0.009101298, -0.0015245781, -0.0025357308, 0.0064750705, 0.04190143, 0.020197198, -0.03646429, 0.03797132, -0.0027019477, -0.0017064932, 0.0887672, 0.043822154, 0.007572102, -0.026373077, -0.024614872, -0.041133136, 0.030288408, -0.03173634, 0.007734625, 0.010719142, 0.008754089, -0.023654507, -0.011339685, -0.020197198, 0.05862654, 0.022280449, 0.010283284, -0.0027776686, 0.043940354, -0.028618852, -0.002062936, 0.011125449, 0.054400936, -0.024437575, -0.017020607, 0.0023528922, -0.046540726, 0.0006547098, -0.0051601105, -0.039567005, -0.023211263, 0.07292858, 0.028160833, 0.05475553, 0.002596677, 0.04609748, -0.00006498618, -0.025900282, -0.017803675, 0.0035496538, 0.031588595, -0.008369943, 0.050323084, 0.0069220094, 0.021290535, 0.012130138, 0.010091211, -0.019310707, 0.06760964, -0.058892485, 0.021999726, -0.033213824, -0.003557041, -0.016946733, -0.027555063, 0.016370514, -0.06589576, -0.023432886, 0.03108625, -0.028323356, 0.0077937245, 0.03531185, 0.002140504, -0.008643278, 0.01675466, -0.019207284, -0.008680214, 0.026077582, 0.015380601, -0.014198615, -0.009197334, 0.030465705, -0.015602224, -0.009219496, 0.036700685, 0.01898566, 0.023639733, 0.024260277, 0.015690872, 0.025516137, 0.05067768, -0.0027296504, -0.019384582, -0.015543125, 0.026919747, -0.01904476, 0.026018482, 0.008451205, 0.044856396, 0.015764747, 0.053750843, 0.02304874, 0.00091880996, 0.027170919, 0.02176333, 0.02304874, -0.0060798437, 0.0016243082, 0.014885644, 0.008399493, 0.010600943, 0.015395376, 0.028146058, 0.002341811, -0.011406171, -0.01901521, -0.0073357048, -0.05135732, 0.031618144, -0.013563297, -0.026639024, -0.0198426, 0.008259132, -0.006789036, 0.036848433, -0.019827826, -0.026668575, 0.045417838, 0.05047083, -0.0030731654, 0.015062942, 0.022827117, 0.01086689, -0.0005808356, 0.019606205, 0.034691308, -0.013858793, 0.00043401073, -0.043763056, -0.059158433, -0.005204435, -0.042847015, 0.036818884, 0.0221327, -0.03282968, -0.017493403, -0.038739614, 0.0032449227, 0.0061130873, -0.028722275, 0.029830389, 0.029372368, -0.019753952, -0.039596554, -0.02338856, -0.013829244, -0.0004843375, -0.038503215, -0.018113947, -0.0036678524, -0.0010610177, 0.0530712, -0.025796859, 0.006360566, 0.0014266948, -0.049170647, 0.0058545275, -0.008140933, -0.033597972, 0.008259132, -0.009618416, -0.045033693, 0.02485127, 0.0133712245, -0.01687286, 0.050914075, 0.0308794, 0.0048941635, 0.017168356, 0.028929124, 0.008754089, -0.056321666, 0.059778977, 0.042817466, -0.03628699, -0.0094041815, 0.026491277, -0.014730508, -0.0067299367, 0.002873705, -0.024925144, -0.009692291, 0.072751276, -0.010150311, -0.06341358, -0.010785628, -0.01809917, -0.026727673, -0.014966906, 0.0045617297, 0.02121666, -0.025560461, -0.000968675, -0.025900282, 0.0138957305, 0.02570821, 0.022442972, 0.04258107, -0.005802816, 0.051830117, 0.041546833, -0.031174898, -0.018468542, 0.0018911787, -0.05221426, -0.010253734, 0.03200229, -0.009788327, 0.0015966054, 0.012957529, -0.006342097, 0.023846582, 0.029357594, -0.06022222, -0.003089787, -0.00946328, 0.023211263, 0.006146331, -0.008384718, 0.046422526, -0.005810203, -0.0075794896, -0.013201313, 0.018084396, 0.00771985, 0.034277614, -0.057415, 0.04340846, 0.0021072605, -0.027215242, 0.0047057844, -0.033154726, 0.0030860933, 0.027968759, 0.01950278, 0.034100316, 0.01089644, -0.020669991, 0.017744575, -0.031352196, 0.045713335, 0.04068989, -0.008118771, -0.01552835, 0.044029005, 0.013629784, 0.01892656, 0.012514284, 0.0043031704, -0.021497382, -0.04163548, -0.03185454, -0.05493283, 0.032297786, 0.055198777, 0.040364843, -0.002255009, 0.013844019, -0.021290535, -0.020640442, 0.034307163, 0.025900282, -0.01864584, -0.059069782, 0.041103587, 0.017626377, -0.0064270524, -0.03170679, -0.03711438, -0.035843745, 0.0040298356, -0.021068912, 0.0069330907, -0.023920456, -0.02598893, -0.022295224, 0.016931958, -0.051711917, -0.022472521, -0.072455786, 0.03294788, 0.023551084, 0.003076859, -0.0077715623, -0.03451401, -0.022058826, 0.044945043, -0.047220368, -0.041162685, -0.050736777, -0.015823847, -0.065009266, 0.047249917, 0.0054888506, -0.02127576, -0.005001281, -0.045624685, 0.005141642, 0.017286556, 0.02216225, -0.0487274, 0.023137389, 0.027806235, 0.017050158, 0.011901128, 0.016429614, -0.021970177, 0.007394804, -0.05561247, -0.01738998, -0.008791026, 0.016444389, -0.019591428, 0.011576082, -0.003420374, 0.03350932, -0.0122852735, -0.033036526, 0.013415549, 0.042374223, 0.043112963, 0.0063753407, 0.038650963, -0.005171192, -0.008547241, 0.04077854, 0.034986805, -0.040246647, 0.021748554, 0.013563297, -0.006053988, 0.0031969047, -0.0622907, 0.006981109, -0.024570547, 0.021098463, 0.0487865, -0.04624523, 0.033450224, 0.024880819, 0.0038673126, -0.034041215, -0.03185454, -0.016710337, -0.0060096635, -0.05221426, 0.057089955, -0.017744575, -0.03368662, 0.028471103, -0.036109693, -0.010312834, 0.00013632092, -0.030199759, 0.022147475, 0.022768019, 0.033243377, -0.0075647146, -0.07363777, -0.021526933, 0.013777532, -0.07304677, 0.0038266818, -0.02913597, 0.017434303, -0.035843745, 0.0026428483, -0.046599824, 0.015129429, -0.0034499236, -0.027348217, 0.008310844, 0.011228873, 0.0082886815, -0.027333442, 0.0036493838, 0.06802333, -0.0021497381, -0.050382182, -0.02075864, 0.030790752, 0.024186403, 0.039537452, -0.012743293, -0.03108625, -0.0221327, -0.010874277, 0.0287666, 0.0019151878, 0.020344945, -0.010852115, -0.03977385, 0.0132678, -0.007697688, 0.07481976, -0.007727238, -0.003992899, -0.01669556, -0.005211822, -0.06879162, 0.03188409, -0.0030842465, 0.0052783093, -0.052036963, -0.0064270524, -0.02216225, 0.010667429, -0.0030731654, 0.060813215, 0.0073393984, 0.041399084, -0.048431903, -0.021970177, 0.007247056, 0.04704307, 0.010423644, 0.005924708, -0.04967299, 0.019650528, -0.012617707, 0.05856744, -0.020566568, 0.02167468, -0.0533076, 0.012071039, 0.030554356, -0.007058677, 0.013445098, 0.0012327752, 0.005810203, -0.026934521, 0.0177298, -0.05123912, -0.024156852, -0.020005124, -0.060695015, -0.016577363, -0.013674108, -0.015764747, 0.025737759, -0.011273198, 0.0067040804, -0.019665303, 0.047545414, 0.10324653, 0.025590012, 0.028633626, -0.046865772, 0.006102006, 0.03740988, 0.035045903, -0.028412005, -0.0114800455, 0.0033742026, -0.015602224, -0.050057136, -0.048668303, -0.03619834, 0.01392528, -0.0038082132, -0.06317719, 0.01962098, -0.01815827, -0.020625668, -0.026225328, 0.056469414, -0.029062098, 0.0036383027, 0.011620406, 0.006430746, -0.023063514, 0.00823697, -0.026949296, 0.002190369, 0.009330307, 0.028618852, -0.028116507, -0.036257442, 0.02839723, 0.030199759, -0.050884526, -0.04340846, -0.0023381175, 0.01678421, -0.049968485, -0.01329735, 0.011384009, -0.030849852, -0.02256117, 0.013880956, 0.02216225, -0.024171628, -0.010039499, -0.03460266, -0.011686893, -0.05939483, 0.0133269, 0.045417838, -0.027658489, -0.011701668, -0.059749424, 0.012662032, -0.0061721867, 0.005422364, 0.010342384, -0.02485127, -0.015336277, 0.0352232, -0.007926698, 0.049052447, 0.021822428, -0.038769163, 0.0198426, -0.012957529, -0.040483043, 0.01063788, 0.015720423, 0.006722549, 0.02093594, -0.025309289, -0.012942754, 0.010992476, 0.02093594, -0.03705528, -0.05865609, -0.010770854, -0.030702103, 0.0077494, 0.0047427216, -0.014420237, -0.043999452, 0.00050372945, 0.03170679, -0.025383163, 0.027481189, 0.012167076, -0.040039796, -0.03788267, -0.045920182, 0.03256373, -0.04231512, -0.020625668, -0.020596117, -0.026210554, 0.0013177304, 0.023757933, -0.011967615, -0.017862773, 0.03605059, 0.034809507, -0.008879675, -0.0129353665, -0.0027019477, 0.0059062396, -0.02115756, 0.021009812, -0.025870733, 0.018276468, -0.0017932954, 0.0036733928, 0.035666447, 0.008266519, -0.015306727, -0.04264017, 0.0028035247, 0.020802965, -0.015188528, -0.014915194, 0.00065009267, -0.023920456, -0.02267937, 0.03823727, -0.002103567, -0.021837203, -0.03548915, 0.06031087, 0.008310844, 0.04781136, 0.035164103, 0.017404754, 0.0022697838, 0.03282968, 0.027244793, -0.053278048, 0.02561956, 0.012817168, -0.009345082, -0.035961945, 0.022886217, 0.0007909153, -0.006216511, 0.0044139815, -0.005064074, 0.027466414, -0.00016286944, -0.005001281, 0.035105005, 0.058981135, -0.0021331166, -0.018719714, -0.002267937, 0.00012847179, -0.022044051, 0.0243046, -0.07434696, -0.042019624, 0.021837203, -0.01690241, -0.0051859664, 0.034720857, -0.011081125, -0.015971595, 0.018438991, 0.021349635, -0.048668303, 0.029062098, 0.03723258, 0.0177889, -0.002205144, -0.03826682, 0.010017337, 0.05599662, -0.017552502, -0.051061824, 0.01484132, 0.052834805, 0.057858247, -0.03740988, -0.010142923, -0.0092490455, 0.008997873, 0.0084733665, -0.019606205, 0.030125884, -0.08598953, 0.003191364, -0.0050825425, 0.05212561, -0.018335568, 0.023255588, -0.0015809071, 0.015203304, 0.00042339132, 0.035400502, 0.037528075, -0.029919038, -0.012972304, 0.002127576, 0.0012567843, -0.021334859, -0.000007445131, 0.034100316, 0.02799831, 0.009906526, 0.042403772, -0.027436865, 0.052716605, 0.052746154, -0.025294514, 0.0352232, 0.019458456, -0.009611029, -0.0045617297, 0.016459165, -0.04701352, 0.0075425524, -0.016621688, 0.04527009, 0.022768019, -0.0066154315, 0.006914622, -0.009766165, -0.005115786, 0.038798712, 0.013356449, -0.017064933, 0.0064270524, -0.023240812, 0.028973447, 0.010327608, 0.026373077, 0.0264765, 0.026993621, 0.04787046, 0.025146766, -0.018719714, 0.01198239, 0.014767446, -0.054637335, 0.0110368, -0.007254443, 0.0028663178, -0.041960526, -0.017966198, 0.005481463, 0.051180024, 0.010349771, -0.024866045, 0.006493539, -0.0100247245, -0.007232281, -0.06814153, -0.014169065, -0.05602617, -0.00305285, 0.010312834, -0.008030122, -0.033036526, 0.027658489, -0.004668847, 0.010253734, 0.025235415, 0.025442263, -0.0069478652, 0.040837638, 0.055671573, 0.008266519, 0.04231512, 0.015779521, -0.029328045, 0.014974293, 0.034248065, -0.0012724826, -0.036759786, -0.02598893, -0.05836059, -0.004281008, 0.03702573, -0.012632483, -0.016370514, 0.014833933, -0.017966198, 0.0032892472, -0.005330021, 0.07753833, -0.01858674, 0.013334287, -0.009854814, -0.009766165, -0.03362752, -0.010342384, -0.0010591708, 0.05144597, -0.022457747, -0.059572127, -0.00050372945, -0.07210118, -0.033361573, 0.0050825425, -0.007815887, -0.031913638, 0.020906389, 0.022974866, 0.050086685, 0.0033538872, -0.002000143, -0.032297786, 0.062408894, 0.043999452, 0.0048535326, 0.054371387, 0.08037509, 0.025634335, 0.000994531, 0.00620543, 0.02033017, -0.0027056413, 0.018010521, -0.014132128, -0.016237542, -0.021467833, -0.018631065, -0.072042085, 0.03173634, -0.027259568, 0.0033206437, -0.021039363, -0.047840912, -0.062231597, -0.011642569, -0.0310567, 0.025590012, 0.037941772, -0.063531786, 0.010349771, -0.057060406, 0.26074627, 0.056528512, 0.029726965, 0.052953, 0.018202595, 0.05951303, 0.024053428, 0.008739314, 0.015321502, -0.03732123, -0.005636599, -0.014095191, -0.0039596553, 0.029505342, -0.000623775, 0.034159414, -0.058035545, -0.014390687, -0.008532466, -0.044679094, -0.03011111, 0.001070252, 0.012632483, 0.04175368, -0.008532466, -0.043024313, 0.0044509186, -0.035814196, 0.011539144, -0.0055442564, 0.01369627, -0.009803102, 0.0034111396, -0.049968485, -0.013991768, 0.06548206, 0.020300621, -0.026284428, -0.016769435, -0.0063162413, 0.0221327, 0.0062866914, 0.0098991385, -0.0088058, 0.010246347, 0.023359012, -0.020566568, 0.0049347943, 0.04190143, -0.054282736, 0.044826843, -0.048077308, 0.011073737, 0.033154726, -0.07872031, 0.005030831, -0.018335568, -0.01504078, -0.036996182, 0.043881256, 0.031411294, 0.019281158, -0.0060244384, 0.010046886, 0.01435375, 0.03209094, -0.008096608, 0.05304165, -0.016606912, 0.0039264117, 0.024319375, 0.04370396, -0.03995115, -0.048520554, 0.034188963, 0.040335294, -0.0038082132, 0.0072876867, 0.015543125, -0.023743156, 0.04683622, -0.008768864, 0.0050566867, -0.015720423, 0.025900282, 0.048313703, -0.016311416, -0.0309385, 0.0001537506, 0.028412005, 0.00630516, 0.051800564, -0.009071748, 0.042758368, 0.03616879 ]
Get free access to a cloud GPU if you don't have one with a hosted notebook like Colaboratory or SageMaker StudioLab. Great, now you are ready to train! 🥳 Training loop To keep track of your training progress, use the tqdm library to add a progress bar over the number of training steps:
[ 0.028493116, -0.001608854, -0.06376558, -0.011934772, 0.03514482, -0.013459416, -0.02042314, 0.0032301182, 0.017529862, 0.040364068, 0.03239337, 0.002772725, 0.05105785, -0.048845343, -0.0075239413, 0.026351523, 0.008126708, -0.013587061, -0.049838133, -0.0062014014, -0.0043895566, 0.03707367, -0.07125407, -0.016863273, -0.041753974, 0.0026078506, 0.032677025, -0.03863377, 0.05392276, 0.029471725, -0.027174123, -0.004283186, 0.012246792, -0.027571239, -0.013133214, -0.046320815, 0.043257345, -0.029273167, -0.023061128, -0.0538093, -0.005056145, 0.016267598, -0.008268535, -0.06921175, -0.05650402, -0.00531498, 0.020650063, -0.045299657, -0.009076951, -0.023344783, -0.011516382, 0.005378803, 0.0075523066, 0.0017781605, 0.013126122, -0.012608452, -0.0070559112, 0.023217138, -0.018905587, -0.044618886, 0.049072266, 0.04251984, -0.020196216, -0.03276212, -0.008006155, 0.00021152222, -0.023770265, -0.026947198, 0.01840919, 0.014579852, -0.07647331, 0.026152965, -0.008084159, -0.011771671, -0.023415698, 0.01026121, 0.004811493, 0.017302938, 0.01788443, 0.019160876, 0.015615192, 0.05199391, -0.055567957, -0.012502082, -0.025642386, -0.021004632, 0.03225154, 0.019401982, -0.0034978173, -0.036648188, -0.04546985, 0.04966794, -0.023217138, 0.04966794, 0.014579852, 0.07221849, -0.04240638, 0.037300594, -0.024039738, -0.0041413587, 0.009261327, 0.08118198, -0.04660447, 0.035683762, -0.046093892, -0.023983005, -0.0041980897, -0.010254118, -0.031514037, -0.030918363, -0.0015299626, -0.003935709, 0.005712097, -0.008062885, 0.0026681272, 0.047909282, 0.010395945, 0.0140125435, -0.049894866, -0.016522888, -0.012126239, -0.023600072, -0.014409659, -0.006921175, 0.014778411, 0.009452794, -0.021600306, 0.0053894394, 0.0012932882, -0.022125067, 0.024819788, 0.015246441, 0.03531501, 0.029414995, -0.050348714, 0.008885484, -0.0112610925, 0.01835246, -0.014735863, 0.037782807, -0.022039972, -0.024635412, -0.01290629, 0.054858822, 0.031230384, -0.022508001, 0.012743188, -0.023670986, -0.041101567, 0.00059700455, 0.0110554425, 0.00715519, -0.018607749, 0.015771203, -0.07017618, -0.049724672, 0.008105434, 0.0015778294, 0.024323393, -0.000094348434, -0.009396062, 0.0106796, -0.03888906, 0.048192937, -0.010587412, 0.029641919, -0.020692611, 0.030606344, -0.0013198808, -0.028535664, -0.018026257, 0.014835142, -0.019770734, 0.04660447, 0.031599134, 0.018777942, 0.0797637, 0.01057323, -0.01296302, -0.017033465, 0.007977789, -0.04447706, -0.024947433, 0.024720509, -0.023061128, 0.008275626, -0.0060453913, 0.025273636, 0.022195982, 0.029868841, -0.004375374, 0.07749447, -0.059170373, -0.00035279556, -0.03979676, 0.012934655, -0.029386628, -0.0022125067, 0.02099045, -0.027542872, -0.0075452155, 0.055539593, -0.025585655, 0.0017125653, -0.034237124, 0.021586124, 0.008949307, 0.03100346, -0.02473469, 0.05718479, -0.024876518, 0.031287115, -0.017912796, 0.010232844, 0.043002054, -0.021004632, 0.013310498, -0.010310849, 0.00004977808, -0.0063325916, 0.026308974, 0.025060894, 0.035598665, -0.032620292, 0.011651117, -0.0018809853, 0.04090301, 0.020876987, -0.0030953821, 0.0363929, 0.03307414, 0.028578212, 0.029613553, 0.0016221504, 0.013083573, 0.049270824, 0.020976266, 0.010027194, 0.026592629, -0.014090548, 0.026252244, -0.0063893227, 0.026777005, 0.038945794, 0.01301266, 0.0038080646, -0.04334244, 0.0014510711, -0.047937647, -0.011438376, -0.029046243, 0.040534258, 0.010800153, -0.01518971, -0.043881387, -0.008381997, 0.00013274154, 0.016409425, 0.012260975, -0.07460119, 0.001284424, 0.010622869, 0.005371711, -0.009332241, 0.038577043, 0.026379889, 0.008942215, 0.05335545, -0.042491477, -0.077210814, -0.07533869, -0.07539542, -0.06870117, -0.0020901808, -0.043257345, -0.052079007, -0.013055208, -0.031031827, -0.0139061725, -0.008084159, -0.025543107, 0.0001099716, -0.029613553, 0.032648657, 0.022848388, 0.04853332, -0.066318475, 0.027216671, 0.011296549, 0.015062066, 0.01913251, -0.04504437, -0.017458947, -0.017076014, 0.022990216, 0.00099811, 0.010126473, -0.015544279, -0.01886304, -0.0071871015, -0.058773257, -0.022068337, 0.004889498, 0.048845343, 0.0006971701, 0.028010903, 0.0068148044, -0.036931843, 0.01591303, 0.058603063, -0.018253181, 0.05392276, 0.011913498, 0.028464751, -0.013587061, 0.064616546, 0.039371274, -0.0034410863, 0.0017267481, -0.014806776, -0.026138783, 0.0072615608, -0.0016070813, -0.007694134, -0.009686809, 0.07068676, -0.057468444, -0.053582378, -0.021841412, -0.051001117, -0.017359668, 0.006116305, -0.040959742, 0.054603532, 0.0332727, 0.020139486, -0.030691441, 0.049696308, -0.01135328, 0.022564733, 0.011906407, 0.003925072, 0.019373618, 0.042463113, 0.012814102, 0.005924838, 0.03193952, -0.044874176, 0.044051576, 0.009998829, 0.036648188, 0.02223853, -0.025202721, -0.02913134, 0.01031794, 0.01923179, -0.03420876, 0.004049171, -0.020451505, 0.007438845, 0.039938584, 0.025046712, -0.023259686, 0.014608218, -0.057411715, 0.0046413005, 0.008055794, 0.010651235, 0.026422437, -0.02057915, 0.036364533, 0.0067616194, -0.010395945, 0.014962786, -0.03426549, -0.06665886, 0.042236187, 0.03349962, 0.03888906, -0.03991022, 0.018423375, 0.012055325, -0.005102239, -0.025429646, -0.0024872974, 0.019203424, -0.0054461705, 0.010076834, 0.015530095, 0.05292997, 0.025571473, -0.012246792, -0.021118093, -0.014282015, -0.024564499, -0.04898717, 0.050547272, 0.038293388, 0.012977203, -0.031372212, 0.051142946, -0.009991737, 0.023103677, 0.035485204, -0.015260624, -0.020508235, -0.026138783, -0.020508235, 0.039144352, -0.01348069, -0.018933952, -0.01182131, -0.004109448, 0.010984529, -0.003659146, 0.0021309562, -0.024309209, -0.007651586, -0.01135328, 0.004467562, -0.05656075, -0.009708082, -0.056787673, 0.012473716, 0.031740963, -0.010310849, 0.02274911, -0.039683294, 0.004332826, 0.030209227, 0.009041494, -0.015771203, 0.016508704, -0.024748875, -0.038293388, 0.032365, 0.061553072, -0.030663075, 0.0000033587046, -0.08844354, -0.019345252, 0.013409777, 0.033471256, 0.024167381, 0.0145231215, -0.013615427, 0.017033465, 0.014948604, -0.00058104895, 0.03627944, 0.0057830107, -0.046122257, 0.005708551, -0.01985583, 0.016466156, -0.025897676, 0.0016522887, -0.02618133, 0.043143883, 0.040732816, -0.030918363, -0.011062534, 0.056163635, -0.072729066, -0.031740963, -0.015388268, 0.034662608, -0.007651586, 0.029017877, 0.02089117, -0.0025511195, -0.008311084, 0.03701694, -0.06075884, 0.007236741, -0.01114763, -0.01710438, 0.02426666, -0.010644143, 0.0050206883, -0.044618886, 0.015643558, 0.004992323, 0.022380358, 0.010091017, -0.044136673, -0.0145231215, 0.02903206, -0.0024837516, -0.012473716, 0.03613761, 0.012821193, -0.0023082402, -0.0025493468, -0.008530916, 0.0014829823, -0.010700874, 0.009601712, 0.050689097, 0.0056057265, 0.05633383, -0.0029553275, 0.0044250134, 0.011339097, -0.0058503784, -0.00417327, -0.010169022, -0.014594035, 0.010282484, 0.0066694315, -0.032875583, 0.0029943301, 0.008147982, 0.018905587, 0.059851144, -0.03106019, -0.007052365, -0.030918363, -0.024819788, 0.038945794, -0.026266428, -0.0665454, -0.049838133, 0.009218778, 0.012934655, 0.010963255, 0.041300125, 0.0023472428, -0.00018315674, -0.036534727, -0.0020228126, -0.061042495, 0.0049958685, -0.009041494, 0.009098225, -0.00043589753, 0.042888593, 0.020082753, 0.0046164803, -0.031088557, -0.050320346, -0.025982773, -0.06671559, 0.009126591, -0.032790486, 0.020508235, -0.014849325, 0.010459768, 0.037328962, -0.039172716, -0.022323627, -0.022210164, 0.044562157, 0.030691441, -0.041356858, -0.02696138, 0.01379271, -0.005836196, 0.011282367, 0.010403037, -0.01876376, 0.017770968, -0.011133447, -0.0112540005, -0.053894397, -0.021444296, -0.023061128, -0.007144553, 0.042690035, -0.026082052, -0.01233898, -0.029017877, 0.032733753, 0.036563095, -0.021501027, -0.034123663, -0.01891977, -0.015303172, -0.028393837, 0.04966794, -0.037328962, 0.009552073, -0.026975563, 0.029301532, 0.06285789, -0.052788142, 0.028535664, 0.053780936, 0.012473716, -0.0060453913, -0.0042016357, 0.013551604, 0.028337106, -0.017856065, -0.033301063, 0.015388268, 0.01451603, -0.013877807, -0.049214095, -0.0032921676, -0.012374437, 0.04572514, 0.05185208, -0.02358589, 0.027074844, -0.0037300596, -0.027230853, -0.033471256, -0.0007636517, -0.012998478, -0.01653707, 0.02483397, 0.037357327, -0.026876284, 0.02198324, -0.030719806, -0.07891274, -0.028166914, 0.051029485, 0.0025067986, -0.03225154, 0.005619909, 0.027670518, 0.008403271, -0.015402451, 0.021132277, 0.0514266, -0.033981834, 0.013799802, -0.006694251, -0.013636701, 0.008048703, 0.017898614, 0.01684909, -0.0097293565, -0.023146225, 0.09082624, 0.023770265, -0.026294792, 0.003465906, 0.04493091, -0.02618133, 0.009509524, -0.031854425, 0.016622167, -0.015785385, -0.049866498, 0.044136673, -0.058035754, -0.0141118225, 0.023089495, -0.02696138, 0.052958336, 0.011225635, -0.03576886, 0.012353163, -0.04765399, -0.053270355, 0.014835142, 0.02001184, 0.020210398, 0.02188396, -0.033811644, 0.013033934, 0.03588232, 0.040307336, -0.021345017, -0.023245504, -0.00938188, -0.0317126, -0.019557992, -0.016239233, 0.0067793475, 0.02815273, 0.015345721, -0.0052015185, -0.043143883, 0.02540128, 0.027046477, -0.07879928, -0.023756083, -0.025259452, 0.029727014, -0.054716993, 0.0015069157, 0.032591928, -0.03202462, -0.026535898, 0.022437088, 0.005722734, 0.008147982, 0.034435682, 0.041073203, -0.00062271074, 0.032620292, -0.040534258, 0.01612577, -0.0060914853, 0.009665535, -0.03826502, 0.013835259, 0.017402217, -0.021940693, -0.022536367, 0.012005686, -0.009296783, -0.0146224005, 0.014820959, 0.012551721, -0.024862336, 0.03588232, 0.004910772, 0.018395009, -0.043030422, -0.04546985, 0.01487769, 0.01518971, -0.04339917, 0.028478933, 0.03349962, 0.05551123, -0.010282484, 0.046689566, -0.028422203, 0.018735394, -0.0073608398, 0.01052359, 0.026308974, -0.02327387, -0.006899901, 0.003153886, -0.016990917, 0.047341973, -0.04765399, 0.006977906, 0.05256122, -0.032648657, -0.0062864977, -0.0030457426, -0.0022036426, 0.028634943, 0.047824185, -0.036761653, -0.03100346, 0.025840946, -0.043314077, 0.009268418, -0.055000648, -0.020125302, 0.026592629, -0.021586124, -0.0009803816, 0.009041494, -0.027415229, -0.014303289, 0.0024855244, 0.031400576, -0.0324501, 0.00953789, 0.004162633, -0.008353631, -0.06427616, -0.052703045, -0.011906407, 0.031400576, -0.044959273, -0.035655398, 0.044391964, 0.04365446, -0.012558812, -0.043002054, -0.05344055, 0.0026681272, -0.020295495, 0.038435213, -0.019472897, 0.02104718, -0.029613553, 0.028379655, -0.002467796, -0.019586358, 0.0097293565, 0.043739557, -0.0034729973, -0.0096939, -0.009027312, 0.014147279, 0.03979676, -0.027911624, 0.010551956, 0.035286646, 0.002873777, 0.027769797, -0.011346188, -0.020650063, 0.009658443, 0.04504437, 0.007857236, -0.023628438, 0.02364262, 0.058603063, 0.005141242, 0.0098357275, 0.047909282, 0.0019909015, 0.028790955, -0.00855219, -0.001537054, 0.009622986, 0.033925105, 0.002570621, 0.024025554, -0.019813282, -0.019983474, 0.028067634, -0.03281885, 0.010863976, 0.026663544, -0.033584718, -0.036875114, 0.021954875, -0.00451011, -0.0013278587, 0.0052653407, -0.04044916, 0.05162516, 0.045072734, 0.026479168, 0.0058858353, -0.0018526199, -0.0072190124, 0.017955344, -0.017685872, 0.026422437, -0.006931812, -0.0008478617, -0.052391026, -0.070232905, 0.047200143, -0.017657505, -0.039938584, 0.04104484, -0.04322898, -0.0681906, -0.09059931, 0.0050065056, -0.06348193, 0.01348069, -0.0028578213, -0.028096, -0.043512635, -0.0025298456, -0.03227991, 0.030719806, -0.01254463, 0.021089729, 0.0058822897, 0.109433986, 0.035967417, 0.01845174, -0.007045274, 0.06875791, -0.007878509, -0.0050525996, 0.03307414, 0.002141593, -0.009027312, -0.033442892, -0.06495693, 0.015402451, 0.035031356, -0.026734456, -0.011097991, -0.008218896, 0.039115984, 0.0010247027, -0.0040598083, 0.051823717, -0.009289692, 0.025784213, 0.02317459, 0.018749576, -0.0056801857, -0.03168423, -0.035258282, 0.030152496, -0.024068102, -0.0050774193, 0.0015946714, -0.002166413, -0.040080413, -0.012055325, -0.007935241, -0.017685872, 0.030010669, 0.018990682, 0.023741899, -0.0029340535, 0.011615661, -0.030833269, 0.057837196, 0.042122725, 0.022947667, 0.08963489, 0.028464751, -0.014338746, -0.010105199, 0.0035066814, 0.022848388, 0.0019696273, -0.023202956, -0.013764345, 0.012438259, 0.0029269622, -0.035031356, 0.00619431, 0.03922945, -0.0050100517, 0.0020848622, -0.048958804, -0.012253884, -0.05468863, 0.043314077, -0.028478933, 0.05996461, -0.033442892, -0.030521248, 0.0165938, -0.030095765, 0.23781611, 0.056248732, 0.018267363, 0.067169435, 0.038548674, 0.014920238, 0.02758542, 0.020380592, 0.027074844, -0.008495458, -0.030124132, -0.024763057, -0.028634943, -0.014097639, -0.058773257, 0.040959742, -0.008991854, 0.026933016, -0.04924246, -0.0098357275, -0.07148099, 0.06750982, -0.009474068, -0.014764228, 0.016508704, 0.014033817, -0.004166179, -0.03293231, -0.026422437, -0.043682825, -0.00034370975, -0.050575636, 0.027954172, -0.027145756, -0.012665183, 0.024195747, -0.0017169975, -0.037669346, -0.02877677, 0.052532855, 0.0036343262, -0.03883233, 0.024238296, -0.0037619707, -0.018012075, 0.05210737, -0.010707965, -0.010700874, 0.03920108, -0.023756083, 0.03307414, -0.029159704, 0.010204478, -0.034293856, -0.009651352, -0.013431051, -0.028961146, -0.015998127, -0.018593566, 0.0136012435, 0.027897442, -0.008062885, -0.029471725, 0.03227991, 0.000057672765, -0.012225518, -0.018253181, 0.040108778, -0.0068183504, -0.011558929, 0.01813972, 0.015742837, -0.007144553, -0.027131574, 0.032109715, 0.000060941442, 0.009842819, 0.024181565, 0.0017950025, -0.05406459, -0.019671455, 0.0037158767, -0.022820022, 0.008282717, 0.038605407, 0.038577043, -0.043541, 0.0136012435, 0.013360137, 0.029840477, 0.04365446, 0.03477607, 0.0091194995, -0.026805371, -0.009261327 ]
How 🤗 Transformers solve tasks In What 🤗 Transformers can do, you learned about natural language processing (NLP), speech and audio, computer vision tasks, and some important applications of them. This page will look closely at how models solve these tasks and explain what's happening under the hood. There are many ways to solve a given task, some models may implement certain techniques or even approach the task from a new angle, but for Transformer models, the general idea is the same. Owing to its flexible architecture, most models are a variant of an encoder, decoder, or encoder-decoder structure. In addition to Transformer models, our library also has several convolutional neural networks (CNNs), which are still used today for computer vision tasks. We'll also explain how a modern CNN works. To explain how tasks are solved, we'll walk through what goes on inside the model to output useful predictions.
[ 0.030704325, 0.0009354186, -0.03681861, -0.0383073, -0.013119121, -0.0066758646, -0.012414649, -0.018236509, 0.020137252, 0.050695367, 0.002753088, -0.013624214, 0.052316982, -0.055400707, 0.025826192, 0.004120494, -0.044501334, -0.049897853, -0.043491147, -0.022144333, -0.01394322, 0.036659103, -0.042826552, -0.029162463, -0.023832405, -0.0019256664, 0.03184743, 0.009390739, 0.06311002, 0.036685687, 0.031687927, -0.033628546, 0.03607426, -0.037483204, 0.0070181317, -0.012135519, 0.022184208, 0.00007393628, -0.022463338, -0.035276745, 0.023539983, 0.0005881673, 0.0014471574, -0.07517908, -0.041523945, -0.0012751932, 0.02310135, -0.05752741, -0.010906017, -0.008619808, -0.01231496, -0.015285703, 0.01706682, 0.004107202, 0.011225023, -0.039795995, 0.022224084, -0.02324756, 0.002294517, -0.029614389, 0.029720724, 0.050110523, -0.008480242, -0.06140865, 0.009483782, -0.014448312, 0.024191286, -0.016694646, -0.016867442, -0.02676992, -0.048249654, 0.027913023, -0.028843457, -0.033894386, -0.034718484, -0.02413812, 0.01803713, 0.015737629, 0.013511232, 0.05710207, -0.012015892, 0.0119162025, -0.05758058, -0.018116882, -0.030491656, -0.041178357, 0.034160223, -0.0008041609, -0.0043331645, -0.02456346, -0.048807915, 0.032512028, -0.019233402, 0.046734378, -0.011823159, 0.026663583, -0.00078131544, 0.051040955, -0.0014554647, 0.026530664, -0.0003565972, 0.061514985, -0.032512028, 0.0453786, -0.020243587, -0.0064067035, 0.0076627894, -0.012640612, -0.037084445, -0.03344246, -0.004569096, 0.0012810084, 0.01325204, -0.014607815, -0.0052602757, 0.05154605, 0.009191359, 0.00790869, -0.040620096, -0.0021931662, -0.042932887, -0.033282958, 0.0284447, -0.01603005, 0.02060247, -0.027647184, -0.007576392, 0.00011111211, -0.031820845, -0.011198439, 0.039530158, 0.02303489, -0.013903344, 0.03482482, -0.020456258, 0.005712201, -0.016349057, 0.0059248717, -0.023752654, 0.020203711, -0.019632159, -0.0032548578, -0.010513905, 0.07135101, -0.03745662, 0.019751787, -0.0027414577, -0.018927688, -0.049711764, 0.012487755, -0.0078023546, 0.012467817, 0.00034932815, -0.00393773, -0.048754748, -0.024895757, 0.016256014, -0.015724337, 0.010068626, 0.030571407, -0.008706205, -0.019233402, -0.05486903, 0.03408047, -0.03163476, 0.060611136, -0.01567117, 0.026703458, -0.02157278, -0.032299355, 0.016495267, -0.013956511, 0.04503301, 0.06422654, 0.019087192, 0.00943726, 0.059813622, -0.00818782, -0.013404897, 0.011789929, -0.0021815356, -0.0516258, -0.061355483, 0.038413636, -0.041470777, 0.01949924, 0.025055261, 0.00052503066, 0.00090717326, 0.002671675, 0.012421295, 0.041922703, -0.04878133, 0.018568806, -0.06598107, 0.014754026, -0.023234269, 0.03955674, -0.020004334, -0.026969297, -0.02171899, 0.09415993, -0.015737629, -0.00953695, -0.037695874, 0.023991909, 0.028285196, 0.054018345, -0.055666544, 0.035675503, 0.01928657, 0.038679477, -0.0014496496, 0.017757999, 0.05072195, -0.0319006, 0.006320306, 0.020084085, -0.011191793, 0.00026064616, -0.01078639, 0.022370294, 0.036393266, -0.03727053, 0.011650364, -0.010088564, -0.0069849016, 0.008573285, 0.00082036044, 0.03615401, 0.011018998, 0.014966697, -0.019459365, 0.06821411, 0.008606516, 0.029853644, 0.03851997, 0.020522717, 0.027208552, -0.0038014879, 0.002847793, 0.004396301, 0.013730549, 0.034638733, 0.021984829, -0.012740301, -0.03865289, -0.04758506, -0.015219243, -0.020203711, -0.04516593, 0.067948274, -0.004143755, 0.0136375055, -0.03232594, -0.029295383, 0.016189553, 0.029375134, 0.0046986924, -0.05024344, -0.004206891, 0.0276206, -0.010115148, 0.0124611715, 0.05024344, 0.043384813, 0.0154319145, 0.018369427, -0.026703458, -0.068533115, -0.050908037, -0.056517225, -0.07443473, -0.008513472, -0.02497551, -0.071563676, -0.008759373, -0.033628546, -0.001298454, 0.002701582, -0.022888679, -0.02456346, -0.054417104, 0.03275128, 0.026344577, 0.014049555, -0.019339738, 0.057686914, 0.007842231, -0.01547179, 0.00662602, -0.020336632, -0.02796619, 0.0048017045, 0.008619808, -0.006164126, -0.0065363, 0.028258612, -0.021453151, 0.01887452, -0.046468537, -0.022157624, -0.003632016, 0.032937367, -0.015139492, 0.014767318, 0.021080978, -0.028976377, 0.07587025, 0.034239974, -0.07709311, 0.03857314, 0.040008668, 0.026344577, -0.017359242, 0.05917561, 0.04726605, 0.0031319077, -0.032857616, -0.0010924294, 0.005841797, 0.007775771, 0.0060876976, -0.004828288, -0.025493894, 0.06816094, -0.013351729, -0.062737845, -0.0026118616, 0.0046554934, -0.09623347, -0.010560427, -0.05154605, 0.013026077, 0.029800475, 0.010307881, -0.028178861, 0.008028317, 0.004579065, 0.022503214, -0.0017312721, -0.054709524, 0.03365513, 0.06810778, 0.03240569, 0.004110525, 0.013730549, -0.023978617, -0.0016324134, 0.018555515, 0.04163028, 0.04133786, 0.022848804, 0.022330418, -0.015086325, 0.03455898, -0.023672903, 0.01589713, 0.049206674, 0.023234269, 0.026118614, 0.028843457, 0.013059307, -0.0021449828, -0.024111535, -0.022011412, -0.022317126, 0.028045943, 0.025972404, -0.037004694, 0.010646825, -0.022170916, -0.02296843, 0.046601456, -0.009915769, -0.038971897, 0.04107202, 0.04774456, 0.05486903, -0.03280445, 0.022569673, 0.02019042, -0.041231524, -0.009131546, -0.005353319, 0.024683088, -0.016800981, 0.01106552, -0.0480104, 0.0065329764, 0.0038048108, -0.023154518, -0.030358735, 0.008480242, -0.0146476915, -0.0030222493, 0.030225817, -0.004293289, 0.016707938, -0.0036885065, 0.03705786, 0.00031692913, 0.054098096, 0.026185075, -0.000908004, -0.03059799, -0.01839601, -0.0036652458, 0.013245394, -0.010653471, -0.015245828, -0.0013316838, -0.03253861, 0.02801936, -0.027859855, 0.025294516, -0.025055261, 0.004914686, 0.025440726, 0.008579931, 0.011371234, -0.0063036913, -0.03461215, 0.046309035, 0.015870547, -0.044448167, 0.020070793, -0.0524499, -0.0045258976, 0.042693634, -0.023420356, 0.010766452, 0.02609203, -0.027647184, -0.030704325, 0.0129263885, 0.06077064, 0.02165253, 0.043756988, -0.06103648, 0.0076760813, -0.0003304287, -0.0065329764, -0.01581738, 0.044926677, 0.013511232, 0.03198035, 0.0066825105, -0.0075431624, -0.018209925, 0.011490861, -0.051359963, 0.0062139705, -0.009816079, 0.008367261, -0.006951672, -0.013650797, -0.028418116, 0.025081845, 0.032618362, -0.015205951, 0.0025038647, 0.07230802, -0.02887004, -0.03806805, 0.013797008, -0.012727009, -0.019951165, 0.038759228, -0.04508618, 0.0024357436, -0.016973777, -0.010626887, -0.024683088, 0.010640179, -0.007835585, -0.0076362058, -0.0017545329, -0.0120026, 0.011138625, -0.024988802, 0.009975582, -0.013338437, -0.017332658, 0.004672108, -0.042082205, -0.031528424, -0.00700484, -0.025307808, -0.006323629, 0.025427435, -0.009191359, 0.0462027, -0.03870606, -0.0067356783, -0.018050421, -0.012022538, -0.005702232, 0.044979844, 0.03615401, 0.04226829, -0.028364949, -0.015777504, 0.0047850898, -0.033894386, -0.0022679332, -0.04171003, -0.0065728524, -0.027859855, -0.0021715667, -0.0026583832, 0.03753637, -0.03602109, -0.0031036623, 0.016987069, -0.012534277, 0.030890413, -0.049445927, -0.061142813, 0.05848443, -0.022862095, -0.05292841, -0.016176261, 0.019672036, 0.026477497, 0.022051288, 0.059813622, -0.009031856, -0.01887452, -0.010859495, 0.020589178, -0.05218406, 0.02684967, -0.04891425, -0.0048581953, 0.027075633, 0.048329405, 0.025002094, -0.03296395, -0.018356135, -0.026690166, 0.014248934, -0.044900093, -0.030757492, -0.024403958, 0.0053134435, -0.016069926, 0.024337498, 0.01238142, -0.030013146, 0.003475836, -0.008679621, 0.034160223, 0.037616123, -0.067735605, -0.036605936, -0.0010857834, -0.018050421, 0.04955226, -0.028497867, -0.042853136, 0.03275128, -0.049632013, -0.039849162, -0.041470777, -0.02296843, -0.009377447, -0.048196487, 0.031608175, -0.02801936, -0.019552408, -0.03753637, 0.052848656, 0.029587805, -0.015099617, -0.035888173, -0.044581085, -0.04654829, -0.016322473, 0.019432781, -0.00974962, -0.017425701, -0.014209058, 0.02892321, 0.064864546, -0.02587936, 0.0568894, 0.026703458, 0.0117566995, -0.009510365, -0.00326815, 0.0042301523, 0.00052503066, -0.001168027, -0.039184567, -0.02102781, 0.018196633, 0.029640973, -0.07188268, -0.039370656, -0.01941949, 0.005094127, 0.07916665, -0.056357723, -0.0062638153, -0.0016548436, -0.013956511, -0.06268468, 0.023220977, -0.03719078, 0.009869248, 0.034585565, 0.015697753, -0.0054363934, 0.05252965, -0.035914756, -0.058643933, 0.004466084, 0.070447154, -0.02566669, -0.052609403, -0.023925448, -0.005090804, 0.013039369, -0.028471284, 0.010886079, 0.023513399, -0.022582965, -0.006336921, -0.018582098, 0.023885572, 0.03482482, 0.0033246404, 0.027022464, 0.002311132, 0.00953695, 0.054922197, 0.025959112, -0.028338365, 0.0328842, 0.05550704, -0.023353895, 0.0059182257, -0.008639745, 0.02316781, -0.036924943, 0.00080208405, 0.033947553, 0.0006434118, 0.0018276385, 0.02372607, 0.039290905, 0.035064075, 0.028949793, -0.014767318, 0.011357942, -0.017890919, -0.047133133, 0.00025462327, 0.043544315, 0.0027896408, 0.029109295, -0.019618867, 0.0208816, 0.036180593, 0.03461215, -0.012707071, -0.060185794, -0.0025786317, -0.03400072, -0.0013075923, -0.032033518, -0.020509426, 0.017757999, 0.022649424, -0.035409663, -0.021107562, 0.034107056, 0.023898864, -0.062259335, -0.027780104, -0.036579352, -0.012713717, -0.03564892, -0.018196633, 0.008639745, -0.0106867, 0.014341977, 0.0037782271, -0.004103879, 0.016694646, 0.040221337, -0.0028909917, 0.019326445, 0.01894098, -0.009736328, 0.003641985, -0.02788644, 0.0048482264, -0.0022413493, -0.0073903054, 0.019658744, -0.025440726, 0.009683161, 0.0074434727, 0.009789496, -0.010919309, 0.00850018, 0.014421728, 0.009277757, 0.04024792, -0.022609549, 0.028843457, -0.05710207, -0.05226381, 0.0028361625, -0.011816513, -0.03490457, 0.0284447, 0.010739868, 0.07374355, 0.016335765, 0.047983818, 0.004831611, 0.050535865, -0.0047950586, 0.022104455, 0.058643933, 0.0063535357, -0.0101948995, -0.028816873, 0.027221844, 0.012394711, -0.040434007, 0.027939606, 0.025866069, -0.020217003, -0.024271037, 0.0036818606, 0.035675503, 0.02809911, 0.009304341, -0.0010915985, 0.02657054, 0.02622495, 0.0039111464, -0.027381347, -0.030225817, -0.012108935, 0.03503749, -0.04226829, 0.019100484, -0.013969803, -0.057421077, -0.0078023546, 0.011776637, 0.01637564, -0.009836018, 0.03844022, -0.022729175, 0.028045943, -0.04670779, -0.038466804, -0.000028946262, 0.024058368, -0.06369486, -0.042374626, 0.037350282, 0.059973124, -0.03392097, -0.0284447, -0.044102576, -0.019273277, -0.008825832, 0.04330506, -0.0040606805, 0.00079294585, -0.037430033, 0.018063713, 0.018781478, -0.010573719, -0.023008306, 0.04024792, -0.0073903054, 0.025201472, -0.031156251, -0.0052702446, -0.0015186014, -0.0031352306, 0.0049578846, 0.02331402, 0.046309035, 0.030225817, 0.002535433, -0.0029790506, 0.015976883, 0.016468683, 0.020416383, -0.037775625, 0.031156251, 0.04705338, -0.029428301, -0.019259986, 0.062472004, 0.0028162247, -0.018409304, 0.01706682, -0.029853644, 0.005346673, -0.005296828, 0.0033911, 0.006845337, 0.01831626, -0.0027049049, -0.002528787, 0.008706205, 0.029481469, 0.016269306, -0.06762927, -0.0004240952, 0.012155457, 0.0012710395, -0.0013167304, 0.04128469, -0.038599722, 0.06454554, 0.043597482, 0.0037582892, -0.010188254, -0.026703458, 0.007729249, -0.006439933, 0.022423461, -0.022210792, -0.044341832, -0.01678769, -0.007589684, -0.06805461, 0.041842952, 0.017266199, -0.0409391, 0.054204434, -0.017585205, -0.047771145, -0.056570392, -0.003934407, -0.051439714, 0.021798741, 0.01839601, -0.029162463, -0.034186807, 0.020496134, -0.048940834, 0.005818536, 0.02344694, 0.066991255, 0.011710178, 0.09112938, 0.014302101, 0.026131906, 0.029880228, 0.024231162, -0.019672036, 0.009397385, 0.0051506176, 0.012667196, -0.025959112, -0.042215124, -0.08033634, 0.0027780104, 0.037722457, 0.016880734, 0.017186448, -0.0037383514, 0.016455391, -0.041444194, -0.011138625, 0.061461817, -0.0015310625, 0.0053200894, 0.00024714656, 0.012108935, -0.044182327, 0.008859062, -0.026464205, 0.06550256, -0.004090587, -0.028976377, -0.018302968, -0.042374626, -0.006964964, 0.023088058, 0.0030156034, 0.015019865, 0.037297115, 0.037031278, 0.026238242, 0.008134653, -0.009703099, -0.056783065, 0.01984483, 0.01859539, -0.00017726015, 0.08836465, 0.025959112, -0.006320306, 0.014594523, -0.010181608, -0.0078090006, 0.04232146, -0.003136892, 0.019313153, 0.015338871, -0.0059248717, -0.024523584, -0.0062372317, 0.04947251, 0.007935273, 0.0024241132, -0.090969875, 0.02247663, -0.06651275, 0.024510292, -0.013132413, 0.056623563, -0.010254713, -0.040912516, 0.013152351, -0.038280718, 0.2013991, 0.025228057, 0.06847995, 0.053885426, 0.015857255, 0.01817005, 0.040008668, 0.0008498519, 0.05042953, -0.0065529146, 0.017877627, -0.046867296, -0.018077005, -0.009643285, -0.013757133, 0.036605936, -0.03253861, 0.018980855, -0.03408047, -0.029428301, -0.054337353, 0.046388786, 0.007463411, -0.0051772012, 0.0012918081, -0.027022464, 0.0054862383, -0.013484648, 0.034984324, -0.013178934, -0.016349057, -0.054762695, 0.040008668, -0.004050711, -0.02060247, 0.0373237, 0.012700425, -0.067522936, -0.011882973, 0.03532991, 0.025547063, -0.03671227, -0.000045690962, -0.0071975724, -0.017319366, 0.04295947, -0.0033994075, -0.029481469, 0.04431525, -0.05827176, 0.04766481, -0.052423317, 0.031741094, -0.009988875, -0.036845192, -0.021705698, -0.039025065, -0.05391201, -0.023672903, 0.022596257, -0.006802138, 0.021546196, -0.002463989, -0.0060444986, 0.02344694, -0.01228173, 0.02629141, 0.0049678534, 0.002261287, -0.0049911146, 0.04322531, 0.023061475, -0.025533771, 0.0004839088, -0.034266558, 0.03602109, 0.0012220255, 0.043597482, -0.03046507, -0.01879477, -0.037616123, 0.00045234052, -0.0037217364, 0.01567117, 0.003136892, 0.050323192, -0.043198727, 0.02324756, -0.016694646, 0.019858122, 0.006449902, 0.020894893, 0.013158997, -0.0035788484, -0.030810662 ]
Wav2Vec2 for audio classification and automatic speech recognition (ASR) Vision Transformer (ViT) and ConvNeXT for image classification DETR for object detection Mask2Former for image segmentation GLPN for depth estimation BERT for NLP tasks like text classification, token classification and question answering that use an encoder GPT2 for NLP tasks like text generation that use a decoder BART for NLP tasks like summarization and translation that use an encoder-decoder
[ 0.0027193981, 0.045831297, -0.014177222, -0.032101482, 0.008990092, -0.0014357234, -0.050920554, -0.017113334, -0.017700555, 0.036771294, 0.032045554, -0.03067537, 0.045635555, -0.06537741, -0.011912222, 0.029417036, -0.053353332, -0.045579627, -0.058554444, -0.033247963, -0.013680879, 0.0071585183, -0.05701648, -0.0076618516, -0.025166666, 0.019028796, 0.021363704, -0.0076898145, 0.055814072, 0.058498517, 0.05145185, -0.02143361, 0.0012758102, -0.032744627, -0.015141944, -0.033835184, 0.040154815, -0.003269919, -0.026788518, -0.036491666, 0.032772593, -0.0027630902, -0.0036037269, -0.03612815, -0.0215175, -0.01303074, 0.0119471755, -0.019699907, -0.022677962, 0.0028242592, 0.0076338886, -0.012457499, 0.044852592, -0.062357407, 0.00080743054, -0.07605926, 0.008367917, -0.000096778065, -0.0091368975, -0.0061693285, 0.01586898, 0.03305222, -0.025460277, -0.052794073, -0.016176574, -0.00015663628, 0.012506435, -0.02606148, -0.038840555, -0.024062129, -0.057240184, -0.0027718286, -0.025711944, -0.04160889, -0.020245185, -0.016372314, -0.0064244904, 0.016568055, 0.027207961, 0.035205368, -0.01142287, 0.044796664, 0.006592268, 0.012038055, -0.028536202, -0.042559627, 0.036184072, -0.03305222, 0.017672593, -0.010332314, -0.005739398, 0.026760554, -0.035764627, -0.006088935, 0.04462889, 0.009283704, 0.019811759, 0.041021664, 0.033443704, 0.024132036, 0.0260475, 0.06325222, 0.017798426, 0.030199999, -0.031961665, -0.01387662, 0.015603333, -0.035485, -0.054220185, -0.04767685, 0.0047257408, 0.015589352, -0.0027403703, -0.030703332, 0.03115074, 0.04275537, 0.019042777, 0.028592128, -0.04211222, -0.018259814, -0.018902963, 0.047341295, -0.012296713, -0.024998888, 0.024565462, -0.063196294, -0.006239236, 0.007088611, -0.024020184, 0.018106017, 0.006616736, 0.0062567126, -0.014554722, 0.027515555, -0.002214317, 0.0122757405, -0.012052037, 0.040182777, -0.0028277545, -0.008612593, 0.0010704572, -0.0062916665, 0.011597639, 0.040853888, -0.07589148, 0.024691295, -0.007382222, 0.000533044, -0.019560091, -0.0026826966, -0.0052710185, 0.024327777, -0.0029658217, -0.013135602, -0.046698146, 0.01387662, -0.010814676, 0.010653889, -0.004348241, 0.0039287964, -0.0012967824, -0.009870926, -0.07376629, -0.014107314, -0.03123463, 0.030955, 0.0119192125, 0.02200685, 0.0017913773, -0.042224072, -0.022342406, 0.0014680555, 0.027962962, 0.02992037, 0.03352759, 0.030507592, 0.014834352, 0.004585926, 0.016847685, -0.021377685, -0.01340824, -0.042419814, 0.021279814, 0.03738648, -0.04594315, 0.02351685, -0.0150999995, -0.0009717129, -0.04787259, 0.007654861, 0.0023628704, 0.06873296, -0.02048287, 0.018259814, -0.06381148, -0.011912222, -0.05069685, 0.04258759, 0.012024074, 0.0056799767, -0.01557537, 0.06353185, -0.0372187, 0.012499444, -0.026438981, 0.060903333, 0.01859537, 0.07080222, -0.014666574, 0.0662163, 0.029836481, 0.019867685, -0.016540091, 0.016372314, 0.059225556, -0.028773889, -0.041832592, -0.005117222, -0.009276712, 0.01519787, -0.0012897917, 0.04135722, 0.019560091, 0.018427592, -0.032632776, -0.014680555, 0.015379629, 0.02049685, 0.031206666, 0.040937778, 0.012527407, 0.028829815, -0.05240259, 0.027781203, 0.038477037, 0.04644648, 0.037246667, 0.049102962, -0.0030322338, 0.0091648605, 0.005396852, 0.010073657, 0.040742036, 0.04230796, -0.011457824, -0.03305222, -0.017546758, -0.016204536, -0.012576343, -0.012170879, -0.022873703, 0.048599627, -0.008060324, 0.025460277, -0.03775, -0.028382406, 0.006186805, 0.030479629, -0.044405185, -0.053968515, 0.0033957523, 0.008367917, 0.004495046, -0.030899074, -0.0045649535, 0.029668704, 0.0013797975, -0.0041000694, -0.028997593, -0.02540435, -0.03464611, -0.07231222, -0.08411259, -0.034478333, -0.035652775, -0.022761852, -0.009766065, -0.046110924, 0.02358676, 0.0041490044, -0.0046208794, -0.037162777, -0.03171, 0.0036771295, 0.033947036, -0.021237869, -0.039427776, 0.05371685, -0.0033066203, 0.018721202, 0.012967824, -0.05399648, 0.013659907, -0.012450509, 0.00020764684, -0.034058888, -0.031598147, 0.03143037, -0.040462404, 0.007675833, -0.040714074, -0.019588055, -0.03766611, 0.0073193056, -0.04840389, 0.05514296, 0.006882384, -0.028829815, 0.03794574, 0.03171, -0.059617035, 0.03389111, 0.012800046, 0.04415352, -0.022705926, 0.03266074, 0.06246926, -0.013904583, -0.067278884, -0.010542037, -0.048739444, -0.037442405, -0.015016111, -0.035848517, -0.0147225, 0.06537741, -0.0245375, -0.05928148, 0.0007322801, -0.011003425, -0.08081296, -0.017351018, -0.011311018, 0.0050333333, 0.051144257, 0.0007982552, -0.050417222, 0.061015185, -0.0020010995, 0.049774073, 0.0031825346, 0.010597963, 0.023670647, 0.036939073, -0.023852406, 0.023768518, -0.0126043055, -0.0143729625, 0.011415879, 0.02105611, 0.013464166, 0.032716665, 0.008850277, -0.02558611, -0.03218537, 0.001969641, -0.03679926, 0.043174814, 0.028941667, 0.005634537, -0.0035792592, 0.033835184, 0.01349912, -0.0029413542, 0.042643517, -0.023488889, 0.007920509, 0.073039256, 0.026564814, -0.045831297, -0.02417398, -0.014666574, -0.04012685, 0.038756665, -0.014156249, -0.02936111, 0.040518332, -0.0080533335, 0.02407611, -0.066160366, 0.029277222, 0.029528888, 0.01454074, 0.021573426, 0.032688703, 0.053688888, -0.046278704, -0.0032174883, -0.038505, 0.018273795, 0.0023873379, 0.0045439815, -0.03833722, -0.028186666, 0.017980184, -0.060959257, 0.012485462, 0.008899213, -0.012681203, 0.006567801, 0.07013111, 0.021181943, 0.0071794908, 0.04202833, -0.0402387, -0.031038888, -0.025642036, 0.019406296, 0.015030093, 0.00020262225, -0.015813055, -0.016554074, -0.016791759, 0.021727221, -0.010961481, -0.0013238714, -0.020510832, -0.021853056, -0.024775185, 0.03445037, 0.0056694904, 0.01019949, -0.07275963, 0.041692775, 0.018469537, -0.056429256, 0.024942962, -0.06358778, 0.037973702, 0.029864443, -0.037554257, -0.029305184, -0.010402222, -0.008284028, 0.004208426, 0.015924906, 0.015813055, 0.0022178125, 0.03352759, -0.057827406, 0.024789166, 0.0015475752, -0.024425648, -0.014848333, 0.024146019, -0.012821018, 0.01255537, 0.004229398, 0.00005346824, -0.025795832, 0.039399814, -0.058274813, 0.013044721, -0.009374583, 0.0047257408, 0.009926852, 0.030563518, -0.030339815, 0.0015204861, 0.023642685, -0.003152824, 0.0057708565, 0.04351037, -0.0069837496, -0.052346665, 0.0115906475, 0.017672593, -0.025124721, 0.026201295, 0.015225833, 0.021853056, -0.025753887, 0.01718324, -0.03735852, 0.017644629, -0.045188148, -0.0016367071, -0.010311342, -0.023237221, 0.022454258, -0.006826458, -0.0012976562, 0.021629352, -0.023922315, 0.0101505555, -0.04538389, -0.04843185, -0.0050088656, -0.047984444, 0.02757148, 0.009961805, 0.0005457147, 0.028536202, -0.043258704, -0.022622036, 0.0098639345, -0.033331852, 0.014289074, 0.033723332, 0.025851758, 0.04795648, -0.031542223, -0.015030093, 0.037022963, -0.021461572, 0.0066621755, -0.014638611, 0.028941667, 0.010730786, -0.026201295, 0.016623981, 0.035149444, -0.0051521757, 0.01565926, -0.010374259, -0.0018805092, -0.007438148, -0.042475738, -0.02020324, 0.018707221, -0.012045046, -0.043118887, -0.006777523, 0.035093516, -0.017365, 0.024942962, 0.065992594, -0.024607407, -0.046390556, -0.016819721, 0.027990924, -0.04524407, 0.0062077777, -0.04370611, -0.02776722, -0.009710139, 0.030703332, -0.043929815, -0.045719445, -0.03322, -0.022398332, -0.008759398, -0.053521108, -0.05086463, -0.020874351, 0.029025555, 0.005739398, 0.0129887955, -0.01869324, -0.01633037, 0.036295924, 0.013429212, 0.023768518, 0.022384351, -0.02379648, -0.0129748145, 0.018763147, 0.02888574, 0.0230275, 0.011709491, -0.034030925, 0.06459444, -0.044489074, -0.02727787, -0.051675554, 0.011772407, 0.019881666, -0.033583518, 0.04784463, -0.04049037, -0.011108287, -0.0075360183, 0.0027962963, 0.03556889, -0.013631944, -0.049969815, -0.044293333, -0.04331463, -0.029053519, 0.021950925, -0.0054772454, -0.04390185, -0.0029798031, 0.026984258, 0.028801851, 0.0025166667, 0.043873888, 0.038505, 0.013659907, -0.0059421295, 0.00058809604, 0.022230554, 0.00041463829, 0.013352314, -0.00066630496, -0.011087314, 0.002841736, 0.0048375926, -0.038169444, -0.052095, -0.014960185, -0.016036758, 0.06286074, -0.03727463, 0.012156898, 0.0230275, 0.008451805, -0.0030934026, 0.010786713, 0.015113981, -0.003380023, 0.045607593, 0.03481389, 0.021727221, 0.0409937, -0.036855184, -0.034618147, 0.0048096296, 0.06353185, -0.04163685, -0.0076968055, 0.019979537, 0.008815324, -0.036659442, -0.05136796, -0.01349912, -0.032604814, 0.00712706, -0.0150860185, 0.03428259, 0.009290694, -0.022048796, -0.0033328356, 0.026704628, 0.011744444, 0.027697314, 0.048767406, 0.0034709026, -0.05805111, 0.046977777, 0.035708703, -0.018721202, -0.013478148, -0.019084722, 0.016372314, -0.009731111, 0.007864583, 0.030339815, -0.014862315, 0.017784445, 0.053772777, 0.0006173698, 0.03310815, -0.004760694, 0.043566294, -0.004722245, -0.021014165, -0.06274889, 0.018483518, 0.022622036, 0.0066027544, 0.03361148, -0.021489536, 0.03143037, 0.017113334, 0.06862111, -0.0058757174, -0.04295111, 0.0066586803, -0.030563518, -0.019294444, -0.019993518, 0.01567324, 0.025348425, 0.022104722, -0.008381898, -0.02568398, -0.000025559895, 0.009255741, -0.011017407, 0.009696157, -0.05821889, 0.023069443, -0.038868517, -0.016749814, 0.00047100114, 0.02662074, 0.02256611, 0.019979537, 0.003025243, 0.0076898145, 0.01888898, 0.029333148, -0.002731632, 0.017253147, 0.023349073, 0.016582036, -0.013610972, 0.030647406, -0.025362406, 0.021825092, 0.012352639, -0.04096574, 0.012135926, 0.011695509, 0.0018840046, -0.016721852, -0.0020517823, -0.0038379165, -0.0002925188, -0.015994815, -0.039120182, 0.021671295, -0.05567426, -0.03408685, 0.0056030788, 0.00033490016, 0.027795184, 0.004697778, 0.029500926, 0.06957185, 0.00005256709, 0.041525, 0.0010521065, 0.015239814, 0.007899537, 0.020790461, 0.034114815, 0.019853704, -0.0034831364, -0.02785111, 0.010248425, 0.015463518, -0.08355333, 0.004030162, -0.0024887037, -0.018525463, -0.020440925, -0.013401249, 0.043873888, 0.030899074, 0.03425463, -0.0137158325, -0.01312861, -0.0027840624, -0.058666296, -0.04795648, -0.070410736, -0.020972222, 0.044992406, -0.029584814, 0.023265185, -0.046418518, -0.031178704, -0.010353287, 0.05749185, 0.017337037, 0.030227963, 0.0031056365, -0.0070396755, -0.018357685, -0.008444815, -0.020622684, -0.004169977, 0.022496203, -0.058554444, -0.00089568866, 0.027907036, 0.08674111, -0.0052710185, -0.026956296, -0.042615555, -0.0014121296, -0.01312861, -0.007885556, -0.027795184, 0.047537036, -0.016959537, -0.015267777, 0.011150232, -0.018064074, -0.0077527314, 0.023181295, 0.0031982637, 0.037414443, -0.019657962, 0.026145369, -0.013729814, 0.009220786, -0.012513425, 0.011569676, 0.024956943, -0.014149259, 0.0154775, 0.0016716608, 0.074996665, 0.016693888, 0.019042777, -0.028550183, 0.047453146, 0.04021074, -0.0043622223, 0.0047432175, 0.056680925, 0.04471278, -0.007871574, 0.027291851, -0.025781851, -0.0054807407, -0.0010914294, 0.0066062496, -0.0037819906, 0.03604426, -0.024984907, 0.014275092, -0.023251204, 0.029137406, 0.005774352, -0.05617759, -0.020524815, 0.02509676, 0.005844259, 0.020091388, 0.035457037, -0.0062846756, 0.042475738, 0.04474074, 0.041525, 0.0056415275, -0.019336388, 0.024579443, -0.0072074537, 0.03861685, -0.01670787, -0.024621388, -0.036967035, 0.004757199, -0.031374443, 0.024243888, 0.018651295, -0.0071305553, 0.026019536, 0.020440925, -0.011695509, -0.047229443, -0.018511482, -0.06135074, 0.03777796, 0.04513222, -0.0026879397, -0.015491481, 0.05030537, -0.03187778, 0.014009444, 0.026075462, 0.055282775, 0.0057603703, 0.08092481, 0.012814027, 0.013974491, 0.008039352, 0.028466295, -0.04717352, -0.024034167, -0.017672593, 0.025739906, -0.030423703, -0.032520924, -0.049857963, -0.008207129, 0.01189125, 0.004267847, -0.021964908, 0.0043622223, -0.024299813, -0.059169628, 0.0029867939, 0.07717778, -0.017770462, -0.03870074, -0.045551665, 0.019280462, -0.062245555, -0.01284199, -0.03445037, 0.06381148, -0.009745092, -0.020930277, -0.010912546, -0.015519444, -0.0341987, 0.03775, 0.026285185, -0.02718, 0.025138702, -0.01265324, 0.059896667, 0.034142777, -0.05153574, -0.022034815, 0.052095, 0.023670647, -0.00075849536, 0.050948516, 0.022719907, 0.008011389, 0.0068963654, -0.008626574, 0.036379814, 0.010996435, -0.023852406, -0.024006203, 0.012751111, -0.034506295, -0.044041667, 0.011241111, 0.016749814, 0.015799074, -0.011751435, -0.055115, 0.07600333, -0.07947074, -0.00085549185, -0.011884259, 0.040350553, 0.012890926, -0.029612778, 0.0002619343, -0.035708703, 0.23041481, 0.04720148, 0.062916666, 0.026173333, 0.008151203, 0.047313333, 0.0177425, -0.00486206, 0.019867685, -0.0011429861, -0.011129259, -0.059057776, 0.0036981017, -0.011744444, -0.026355091, 0.040742036, 0.0038309258, 0.027613426, 0.0012635763, -0.028172685, -0.057100367, 0.0192525, 0.0038169443, 0.035540923, 0.0020727545, 0.010660879, 0.016777778, 0.02502685, 0.05391259, -0.014219166, -0.028298518, -0.020259166, 0.023474908, 0.017868333, 0.0021531482, 0.035540923, 0.015491481, -0.029109444, -0.011709491, 0.020063424, 0.0028854283, -0.009891897, 0.009143889, 0.007990416, -0.04840389, 0.026019536, 0.038672775, -0.030088147, 0.048739444, -0.04748111, 0.041189443, -0.032465, 0.0072284257, -0.057044443, -0.030619444, -0.0034394444, -0.05816296, -0.00934662, 0.003441192, 0.01567324, -0.03719074, 0.051703516, -0.0009507407, 0.01651213, -0.0006833449, -0.0053758794, -0.012513425, 0.030787222, -0.017686574, -0.017155277, -0.006532847, 0.005183634, -0.035261296, -0.03294037, -0.028354444, 0.047061667, -0.028214628, 0.043398518, -0.05315759, -0.016400278, -0.008277037, -0.014086342, 0.042475738, -0.024062129, 0.020147314, 0.02548824, -0.046278704, 0.016484166, -0.03123463, 0.0042538657, 0.017924258, 0.0053024767, 0.041748703, 0.018301759, -0.0011919213 ]
Speech and audio Wav2Vec2 is a self-supervised model pretrained on unlabeled speech data and finetuned on labeled data for audio classification and automatic speech recognition. This model has four main components: A feature encoder takes the raw audio waveform, normalizes it to zero mean and unit variance, and converts it into a sequence of feature vectors that are each 20ms long.
[ 0.008029392, 0.06293917, -0.043415066, -0.04338689, 0.027004113, -0.01670677, -0.04789462, -0.032765556, -0.007902613, 0.03935811, 0.030370824, -0.00978318, 0.06677074, -0.061474156, 0.014319083, 0.027764793, -0.03842839, -0.019988962, -0.06789767, -0.02896216, -0.02041156, 0.006599597, -0.03885099, -0.004433774, -0.022947159, -0.011762355, 0.008311125, -0.0076208794, 0.050261177, 0.05555776, 0.024806596, -0.0067228554, 0.011058023, -0.0284973, -0.036399912, -0.052515045, 0.034822207, -0.014889592, -0.038794644, -0.06998249, -0.0025954659, 0.013706313, -0.020087568, -0.049106073, -0.05037387, 0.0128329415, 0.010600206, -0.040569562, -0.025778575, -0.0015662598, 0.002132367, -0.007089108, 0.013459797, -0.047077596, 0.0099451775, -0.04873982, 0.0020231956, 0.015058632, -0.021566667, -0.013417537, 0.013001981, 0.0536138, -0.019059243, -0.04685221, -0.007289843, 0.001583868, -0.010600206, -0.008543556, -0.04147111, -0.012037045, -0.06761593, 0.00702924, -0.020932768, -0.04225996, -0.0218484, 0.0010107174, 0.007124325, 0.019467754, 0.04541537, 0.03084977, -0.016734945, 0.044344783, -0.0067087687, 0.021679359, -0.018199956, -0.041386586, 0.045049116, -0.022834465, 0.018805683, -0.019270541, 0.0019263498, 0.026680121, -0.026074395, 0.035216633, 0.04440113, 0.040203307, 0.010529773, 0.03885099, 0.025637709, 0.01797457, 0.010064914, 0.07437753, -0.008846418, 0.041161202, -0.0366253, -0.02331341, 0.0111073265, -0.053782843, -0.05197975, -0.051923405, 0.020890506, 0.021524407, 0.0075645326, -0.023468364, 0.019143762, 0.057614412, 0.022862637, 0.028539559, -0.066263616, -0.021947006, -0.010212824, 0.040203307, -0.051275417, -0.023510624, 0.04237265, -0.046739515, 0.0039090463, 0.003232887, -0.007124325, 0.030708903, 0.016805377, -0.0017713966, 0.020946853, 0.054966122, -0.024172697, -0.0039090463, -0.028004266, 0.042569865, 0.003012783, 0.0047894623, -0.02070738, -0.010966459, 0.007529316, 0.045612585, -0.028018354, -0.0048563736, -0.0058107446, -0.03135689, -0.017284324, -0.0071595414, 0.019383235, 0.017326584, -0.0114524495, -0.013642924, -0.05352928, -0.004965545, -0.010494556, 0.016734945, 0.0031906269, 0.016058784, -0.01353023, 0.00052472786, -0.07730755, 0.011762355, -0.0328219, 0.01960862, 0.017749183, 0.010888983, 0.019805834, -0.043724973, -0.04124572, -0.0128329415, 0.009529621, 0.018030915, 0.03809031, 0.0021288455, 0.02301759, 0.012558252, -0.01056499, -0.019256456, -0.029891878, -0.044091225, -0.014931852, 0.035498366, -0.054064576, -0.004740159, -0.008494252, 0.0036730948, -0.010318474, 0.01981992, -0.0065326854, 0.065305725, -0.024285391, 0.016594078, -0.07037692, 0.00022483619, -0.048767995, 0.027976094, 0.013001981, 0.000105044615, -0.0045746407, 0.036428086, -0.021961093, 0.024102263, -0.01401622, 0.054064576, 0.017608317, 0.05274043, -0.013248498, 0.057022773, 0.021820227, 0.023876878, -0.0071524982, 0.018918375, 0.06203762, -0.039527148, -0.036174525, 0.0039900444, 0.011093239, 0.008705552, 0.011515839, 0.033188157, 0.05079647, 0.018664816, -0.013917614, -0.0007065337, 0.011839832, 0.021735705, 0.014326126, 0.0516135, 0.02108772, 0.035751928, -0.019115588, 0.028060613, 0.036259044, 0.049387805, 0.047697406, 0.046288744, 0.010198737, -0.0055290116, 0.02151032, 0.019552276, 0.035413846, 0.049641367, -0.026694208, -0.028694512, -0.0287086, -0.018552123, -0.02112998, -0.0125793815, -0.028215567, 0.038118485, 0.0038984814, 0.009832484, -0.03758319, -0.029018506, -0.018340822, 0.029976398, -0.035047594, -0.07201097, 0.026187088, 0.0023207762, -0.0014790986, -0.022651339, 0.0005947209, 0.022665424, -0.013185107, 0.0020496082, -0.031638622, -0.060234528, -0.04507729, -0.07758929, -0.080632, -0.007832179, -0.036766164, -0.040766776, -0.008142086, -0.050486565, 0.025525015, 0.011283409, -0.011691922, -0.024045916, -0.021538492, 0.02756758, 0.026496995, -0.009938134, -0.037780404, 0.037639536, -0.012847028, 0.007649053, 0.02117224, -0.0656438, -0.012508948, -0.0064164707, 0.0065925536, -0.033948835, -0.030652557, 0.00518741, -0.057163637, 0.022158306, -0.042288132, -0.0034336217, -0.022594992, 0.036005486, -0.02305985, 0.0366253, -0.004331646, -0.036399912, 0.031300545, 0.03972436, -0.04192188, 0.04735933, 0.012565294, 0.050683778, -0.01054386, 0.042485345, 0.068348445, 0.001914024, -0.044513825, -0.0074729696, -0.037639536, -0.03485038, -0.011262279, -0.039048202, -0.0050254134, 0.083336644, -0.034709513, -0.074659266, -0.014931852, -0.017692836, -0.09218306, -0.019016981, 0.0080012195, 0.012980851, 0.055698626, 0.0077335727, -0.03842839, 0.05265591, -0.022440039, 0.036850683, -0.0066383355, 0.014579686, 0.046063356, 0.041020334, -0.021411713, -0.0013364712, -0.002176388, -0.020721467, 0.029525625, 0.020298867, 0.012994938, 0.028384605, -0.012008872, -0.035892792, -0.022749946, 0.003651965, -0.045133635, 0.040569562, 0.016636338, 0.017227978, 0.006486904, 0.04609153, 0.008895721, -0.008332255, 0.0074518397, -0.012086349, 0.021777965, 0.06220666, 0.038710125, -0.046288744, -0.022834465, -0.012424428, -0.03594914, 0.032850076, -0.025341889, -0.029891878, 0.042710733, -0.011170716, 0.016185565, -0.05505064, 0.022637252, 0.01405848, 0.016579991, 0.033695273, 0.010691769, 0.0332445, -0.04175284, 0.009402841, -0.052684084, 0.02007348, 0.016946243, -0.00053045055, -0.016284171, -0.014636032, 0.015143152, -0.06271378, 0.01641095, -0.00051372265, -0.013819007, -0.011593316, 0.0649113, 0.029300239, 0.0013179824, 0.01433317, -0.012868158, -0.04037235, -0.037780404, 0.004412644, 0.045387197, 0.0025039027, -0.009050675, -0.022651339, -0.03465317, 0.011410189, -0.028398693, -0.0042189527, -0.012184955, 0.0006083673, -0.027046375, 0.025694055, -0.030962463, -0.00047410393, -0.104692005, 0.022792205, 0.051867057, -0.027328108, 0.017368844, -0.0461197, 0.015678445, 0.051726192, -0.026454736, -0.03400518, -0.006205171, -0.011825745, -0.020397473, 0.0010890744, 0.04662682, 0.006265039, 0.029694665, -0.060967036, 0.0058530043, 0.002415861, -0.010191694, -0.0100719575, 0.000491272, -0.040485043, 0.008282952, 0.007923743, 0.0042189527, -0.0052965814, 0.03279373, -0.05854413, 0.0154671455, 0.0069306334, 0.0052155834, 0.00054145575, 0.033441715, -0.013607707, 0.001359362, 0.010973503, -0.008085739, 0.014410647, 0.04183736, -0.031244196, -0.06271378, 0.002100672, 0.008599902, -0.03772406, 0.026243435, 0.013720401, 0.014805073, -0.017326584, -0.0059023076, -0.028638165, 0.012776595, -0.021200413, -0.017861877, 0.01886203, -0.016903983, 0.010677683, -0.01043821, 0.004747202, -0.0011542252, 0.011480622, -0.0060502174, -0.03921724, -0.04141476, -0.010079, -0.03868195, 0.025792662, 0.019538188, 0.021792052, 0.009529621, -0.02576449, 0.001035369, 0.0060326094, -0.034624994, 0.020467907, 0.046795864, 0.03135689, 0.061192423, -0.060234528, 0.00039662732, 0.01395283, -0.023158457, -0.009769094, 0.0040217396, -0.00264653, -0.0046802904, -0.0023876878, 0.01401622, 0.02475025, -0.0060819127, 0.032483824, 0.01797457, -0.010945329, 0.010621336, -0.041640148, -0.027229501, 0.04713394, -0.0048493305, -0.046485957, -0.016678598, 0.021693446, -0.009318321, 0.020989113, 0.072687134, -0.03400518, -0.029638318, -0.019876268, 0.01645321, -0.045978837, 0.01784779, -0.042316306, 0.0054973164, -0.0025901834, 0.040203307, -0.016101046, -0.031469584, -0.009712747, -0.013459797, -0.02129902, -0.08046296, -0.016889898, -0.024609383, 0.046457782, 0.008613989, -0.00258314, 0.015312192, -0.037977617, 0.0029053723, 0.011853918, 0.02756758, 0.020228434, -0.038287524, -0.01323441, 0.031187851, 0.020651033, 0.013199194, 0.018171784, -0.023834618, 0.05555776, -0.009733877, -0.010529773, -0.07206732, 0.0002654454, -0.0008676498, -0.0340897, 0.041386586, -0.03383614, -0.016932158, -0.014072566, 0.0053177117, 0.03800579, -0.022468211, -0.045302678, -0.0386256, -0.026863247, -0.035216633, 0.02529963, -0.008705552, -0.0328219, -0.0057367897, 0.0146501195, 0.057558063, 0.0032804294, 0.028905813, 0.056515653, -0.0024440344, -0.0143543, -0.006233344, 0.025412323, -0.013431624, 0.023890965, -0.008353385, 0.0068672434, 0.008480165, -0.00690246, -0.039498977, -0.025482755, -0.008226605, 0.0032945161, 0.055022467, -0.022383692, -0.004852852, 0.033695273, 0.007818093, -0.007909656, 0.014706466, 0.035582885, -0.006201649, 0.023975484, 0.06750324, -0.005592401, 0.05043022, -0.046824034, -0.039752536, -0.011952525, 0.06998249, -0.010431167, -0.011001676, -0.011403146, 0.0060220445, -0.023045765, -0.028553646, -0.01100872, -0.00067043665, -0.016354604, -0.01105098, 0.026680121, 0.004014696, 0.012508948, 0.04318968, 0.031187851, 0.004331646, 0.002657095, 0.06801036, 0.009642314, -0.03972436, 0.035582885, 0.06203762, -0.014847333, -0.017087111, -0.02146806, 0.030370824, -0.03110333, -0.016903983, 0.045950662, -0.032709207, 0.0050042835, 0.032681037, -0.012811811, 0.03800579, 0.01037482, 0.017861877, 0.016213737, -0.030568037, -0.054740734, 0.034399606, 0.011924352, 0.005888221, 0.05665652, -0.022749946, 0.0123610385, 0.022144219, 0.059727408, -0.019425495, -0.046204224, 0.00064402417, -0.03501942, -0.0065115555, -0.0036801382, 0.013100588, 0.033272676, 0.023482451, 0.0057050944, -0.025595449, 0.012382168, 0.018777508, -0.016425038, -0.016650423, -0.045978837, 0.027144982, -0.0441194, -0.013502057, 0.025637709, 0.002479251, 0.0128329415, 0.027229501, -0.0076420093, -0.00088745914, 0.012283562, 0.004479556, -0.008966154, 0.031187851, -0.0067263767, 0.027426714, -0.0026113132, 0.027243588, -0.010818549, 0.007818093, 0.008832332, -0.05299399, 0.012776595, 0.009628228, 0.0040745647, 0.0026394867, 0.0024651643, 0.0047824187, -0.011734182, -0.0002654454, -0.036005486, 0.02231326, -0.06660169, -0.023637405, 0.024017744, 0.0074940994, 0.0025056635, 0.015129065, 0.048767995, 0.05206427, -0.011889135, 0.033695273, 0.006631292, 0.021608926, 0.013114674, 0.017453363, 0.035554715, 0.0076420093, -0.019369148, -0.0076067927, -0.009846571, 0.03809031, -0.080124885, 0.0057050944, 0.012868158, -0.02966649, -0.012375125, -0.011522883, 0.03400518, 0.03456865, 0.042626213, -0.01570662, -0.016932158, -0.012044089, -0.04882434, -0.032427475, -0.06508034, -0.027539408, 0.035639234, -0.048260875, 0.010614294, -0.040625907, -0.02327115, -0.032511994, 0.026285695, 0.027553493, -0.01412187, 0.009452145, -0.007782876, -0.02706046, -0.023919137, -0.028426867, -0.012973808, 0.041386586, -0.042400826, -0.012466688, 0.04344324, 0.055106986, -0.02007348, -0.034455955, -0.050063964, -0.016481385, -0.00028503462, 0.024637556, -0.021200413, 0.04671134, -0.021918833, 0.0071701063, 0.0007963361, -0.010064914, -0.002970523, 0.015030459, 0.010212824, 0.03152593, -0.0059058294, 0.028285999, 0.0051838886, 0.008543556, -0.00978318, 0.0035762491, 0.016946243, -0.0013100588, 0.011283409, 0.023158457, 0.075955234, 0.03876647, 0.019383235, -0.01077629, 0.060967036, 0.039555322, -0.0044196877, 0.007318016, 0.05417727, 0.034371436, 0.005722703, 0.020101653, -0.013347104, 0.018749336, 0.0054198396, 0.0033015592, 0.013375278, 0.031497758, -0.025595449, 0.0051486716, -0.03465317, 0.034484126, 0.020242522, -0.05197975, -0.014255693, 0.0025021418, 0.01636869, 0.009184498, 0.026666034, -0.02504607, 0.04583797, 0.040344175, 0.03231478, -0.011205933, -0.008409732, 0.015917918, 0.00264653, 0.009705704, -0.0006132096, -0.050063964, -0.0461197, -0.00028569493, -0.050063964, 0.057135466, 0.015058632, -0.028314173, 0.018256303, -0.0018541557, -0.030117264, -0.06260109, 0.0013716879, -0.04975406, 0.035639234, 0.037893098, -0.008353385, -0.043837667, 0.0353575, -0.026820987, 0.012994938, 0.011755312, 0.053388417, -0.0016824746, 0.084294535, 0.0056769215, 0.02491929, 0.019242369, 0.038907338, -0.060797997, -0.02411635, 0.0026923115, 0.004247126, -0.06570015, -0.05344476, -0.05214879, 0.008529468, 0.020298867, -0.014009177, -0.020805987, 0.006832027, -0.012720248, -0.0540364, -0.002123563, 0.075898886, -0.0154671455, -0.04448565, -0.038400218, 0.041104853, -0.057135466, -0.025849009, -0.03648443, 0.060910687, -0.012241302, -0.01704485, -0.0058741346, -0.014537426, -0.03017361, 0.017495623, 0.020031221, -0.002239778, 0.023144372, -0.007719486, 0.04296429, 0.029835531, -0.017664663, -0.028877638, 0.058656823, 0.008275908, 0.0067615937, 0.05214879, 0.01391057, 0.00040477118, 0.0003770381, 0.013276671, 0.021270847, 0.014150043, -0.03809031, -0.00677568, 0.014171173, -0.04338689, -0.036090005, 0.027370367, 0.014023263, -0.0070116315, -0.0012079305, -0.04634509, 0.049021553, -0.06693978, -0.013079458, -0.014523339, 0.03834387, 0.0006405025, -0.037329633, 0.015608012, -0.025609536, 0.23462729, 0.046457782, 0.045359023, 0.018439429, 0.015213585, 0.042738907, 0.047528367, 0.0030075004, 0.020228434, -0.012008872, -0.012917461, -0.05037387, 0.016650423, -0.021749793, -0.041950054, 0.033864316, -0.014861419, 0.0123610385, -0.018594382, -0.025891269, -0.06158685, 0.03287825, -0.021284932, 0.029976398, 0.01860847, -0.00995222, 0.008733725, -0.0025338368, 0.042147268, -0.030821597, -0.012572338, -0.011614446, 0.022087872, 0.005807223, -0.014192303, 0.042119093, -0.0057473546, -0.02735628, -0.01336119, 0.040597733, 0.007677226, -0.022637252, 0.015269932, 0.013445711, -0.038231175, 0.05471256, 0.022933071, -0.028215567, 0.03375162, -0.04206275, 0.045105465, -0.035244808, 0.025905356, -0.061136074, -0.00060396525, -0.0053388416, -0.045133635, -0.0077617457, -0.0061981273, 0.0026747033, -0.03203305, 0.04023148, -0.018045003, 0.011255236, -0.015157239, -0.024426257, -0.016537732, 0.05682556, -0.004201344, 0.005514925, -0.007289843, 0.011931395, -0.037470497, -0.026792815, -0.02301759, 0.04403488, -0.0021869529, 0.040569562, -0.0362027, -0.020777814, -0.004088651, -0.01340345, 0.032427475, -0.01750971, 0.025989875, 0.018368997, -0.0465423, 0.019932615, -0.024651643, 0.011043936, 0.025567276, 0.0035674449, 0.047584716, 0.015608012, 0.0008522425 ]
Before you go further, it is good to have some basic knowledge of the original Transformer architecture. Knowing how encoders, decoders, and attention work will aid you in understanding how different Transformer models work. If you're just getting started or need a refresher, check out our course for more information! Speech and audio Wav2Vec2 is a self-supervised model pretrained on unlabeled speech data and finetuned on labeled data for audio classification and automatic speech recognition.
[ -0.0070103803, 0.005972873, -0.043517675, -0.010929853, 0.010281411, -0.014986219, -0.04109682, -0.028805241, -0.034583583, 0.011419787, 0.06294212, 0.002462279, 0.042076692, -0.043517675, 0.0028855677, 0.0447281, -0.027983882, -0.01743589, -0.04043397, -0.026802275, -0.0057170982, 0.026917554, -0.05703409, -0.036543317, -0.02655731, 0.015793169, 0.004214874, 0.0077020517, 0.055160813, 0.05268232, 0.036889154, -0.02315659, 0.02477049, -0.018675134, -0.022969263, -0.04245135, 0.047494784, -0.016816266, -0.008357699, -0.020980706, 0.0034043214, -0.008307264, 0.0026622154, -0.05201947, -0.06265392, -0.03971348, -0.0031197274, -0.02892052, -0.04541977, -0.024194097, -0.018559856, -0.026946373, 0.0006317808, -0.005266791, 0.025563031, -0.03887771, -0.00016661361, -0.026125014, -0.031067584, -0.01651366, 0.034381844, 0.012954433, 0.004168042, -0.08478741, 0.0010906437, -0.0138550475, -0.0037933867, -0.0044922633, -0.037465546, 0.0139991455, -0.053085797, 0.020303445, -0.0413562, -0.027393078, -0.01739266, -0.020490773, -0.016153414, -0.015015039, 0.020245805, -0.0065924954, -0.0076588225, 0.010994697, -0.014561129, 0.0044634435, -0.030894667, 0.008674715, 0.019251527, 0.024698442, -0.04550623, -0.011794442, -0.0018012283, 0.02393472, -0.047898263, 0.032623846, 0.011412582, 0.026240293, 0.00497139, 0.04737951, 0.033718992, 0.0064772167, 0.015087088, 0.06755327, -0.017003594, 0.049512163, -0.012702261, 0.017738495, -0.0018696749, -0.014618768, -0.02402118, -0.0046543735, 0.019727051, -0.0048344964, 0.017882593, 0.012543754, -0.0038870506, 0.036917973, 0.007882175, 0.0010600229, -0.047581244, 0.02157151, -0.019121839, -0.022724295, 0.009135829, -0.039137088, 0.023329508, -0.035246436, 0.013040893, 0.0070608146, -0.03227801, 0.0066969665, 0.030981125, 0.004005932, -0.00007722766, 0.062538646, -0.013718154, -0.0028585491, -0.017940233, 0.032566205, -0.046831936, -0.041154463, 0.0075723636, 0.015519382, -0.024323786, 0.061904613, -0.017695267, 0.015922857, 0.013437162, -0.012197917, -0.009733837, -0.015908448, 0.0031449446, -0.0065240487, -0.0019291154, -0.004016739, -0.039857578, -0.019496495, -0.0139991455, 0.023574475, -0.03317142, 0.0073129865, 0.018473396, 0.0030584855, -0.058907367, 0.043488853, -0.013696539, 0.033430796, -0.03616866, -0.0023397955, 0.015260005, -0.03325788, -0.01201059, -0.00048453038, -0.013977531, 0.028617915, -0.005234369, 0.032191552, 0.03222037, -0.024597572, 0.037436727, -0.00412121, -0.006062934, -0.024986638, -0.009258313, 0.026571719, -0.028762013, 0.000091750066, -0.017190922, 0.018848052, -0.03418011, 0.020130526, -0.0070031756, 0.07072342, -0.0056306394, 0.040779807, -0.005965668, 0.018343708, -0.005508156, 0.0029450082, 0.041644398, -0.022119083, -0.011037926, 0.043431215, -0.035332892, 0.016254283, 0.004639964, 0.021095986, 0.015332054, 0.020245805, -0.018358119, 0.08542145, -0.00027243578, 0.036572136, 0.0039590998, 0.027609225, 0.02649967, -0.053431634, 0.000011679839, 0.040174596, 0.040261053, 0.019943198, 0.008833223, 0.027335439, 0.0069239214, 0.046169084, 0.014172063, -0.029439274, -0.005454119, 0.020461952, 0.02982834, 0.025318064, 0.03484296, 0.0126446225, 0.0014337776, 0.049108688, 0.032566205, 0.010468738, 0.05784104, 0.016038137, 0.0090926, 0.0010870412, 0.010288616, -0.005201947, 0.051558357, 0.030231815, -0.04294128, 0.012709467, 0.0003706027, 0.0016661361, -0.031701617, 0.0005097476, -0.007961429, 0.043229476, 0.019986428, 0.012947229, -0.035621088, 0.008199191, -0.03325788, 0.02242169, -0.030145356, -0.057668123, 0.000639436, -0.0070752245, -0.00825683, -0.004578722, 0.03660096, 0.03132696, 0.016729807, 0.020894248, -0.010202156, -0.048935767, -0.05121252, -0.046687834, -0.0681873, 0.015303235, -0.070435226, -0.027609225, 0.014618768, -0.053518094, 0.0022173119, -0.01324263, 0.021686789, 0.04360413, -0.0611553, 0.021715607, 0.007158081, -0.017046824, -0.007071622, 0.023531245, 0.007457085, 0.0031791679, 0.04383469, -0.043546494, -0.017133282, -0.005990885, 0.007622798, 0.00044895613, 0.01989997, -0.026240293, -0.036716238, 0.016902726, -0.022032624, 0.00535325, 0.023531245, 0.029972438, -0.03971348, 0.016902726, 0.003479973, 0.024410244, -0.0050398367, 0.05106842, -0.055016715, 0.03394955, 0.014229703, 0.02069251, -0.027796553, 0.0665734, 0.07331719, -0.00031994315, -0.0018462589, -0.03294086, -0.06127058, 0.010584017, 0.01446026, -0.06945536, 0.018444577, 0.07314427, -0.033488434, -0.038964167, -0.020015247, -0.04645728, -0.06046363, -0.023545654, -0.013782999, 0.033546075, 0.04737951, 0.016873905, -0.046197902, 0.0035826429, 0.028243259, 0.022551378, 0.0045390953, -0.0144026205, 0.026845505, 0.025101917, -0.0092727225, 0.05789868, -0.011369352, -0.000753814, -0.006271877, 0.017464709, 0.05965668, 0.030923486, 0.0017832159, -0.020822199, -0.010944263, -0.021902936, -0.05642888, 0.0381284, 0.036975615, -0.0057711354, 0.03487178, 0.000009843431, -0.019323576, 0.0028783628, -0.012442885, -0.009777067, 0.012097049, 0.03409365, 0.026269112, -0.033574894, 0.012709467, -0.004935365, -0.017767316, 0.013076917, -0.015994906, -0.017709676, 0.03564991, 0.024395835, 0.0263988, -0.065997005, 0.01403517, 0.075046375, 0.018689545, 0.01808433, 0.031989813, 0.020433133, -0.04314302, -0.009128625, 0.0008213601, -0.013631695, 0.051558357, -0.025980916, -0.050837867, -0.0042040665, -0.043460034, -0.06490186, -0.008220806, 0.03406483, 0.019121839, -0.011210845, 0.024395835, -0.009575329, -0.012853565, 0.027681276, -0.026009735, -0.0002519468, -0.032854404, 0.039511744, -0.0048741237, -0.010468738, -0.027998291, 0.002872959, 0.006149393, -0.010072468, 0.0020335866, 0.03786902, -0.0331426, -0.030404732, 0.012983253, 0.015894039, -0.0007155379, -0.01121805, -0.059310842, 0.06219281, 0.013919892, -0.030231815, -0.00995719, -0.035304073, 0.026874324, 0.044958655, -0.061616413, -0.009251108, -0.008494592, 0.019972019, -0.0497139, 0.07008939, 0.00828565, -0.040750988, 0.025476571, -0.040693346, 0.012673441, -0.0027756926, -0.022407278, -0.02315659, -0.0005061451, -0.00009084945, -0.006390758, 0.020101707, 0.013422753, -0.011477427, 0.007471495, -0.057408746, 0.020433133, -0.028300898, 0.0067041717, -0.032912042, 0.038330138, -0.021542689, 0.051702455, 0.030289454, -0.013393933, -0.015346465, 0.03579401, -0.04380587, -0.07441234, -0.015058268, -0.002707246, -0.009719428, -0.0026946375, 0.0041140052, 0.030030077, -0.012233942, 0.017781725, -0.059829596, -0.008753969, -0.024136458, -0.0069635483, -0.00535325, -0.009798681, 0.014827711, -0.041846134, 0.020245805, -0.035966925, 0.0038978579, -0.02318541, -0.021153625, -0.022681065, -0.0037465547, -0.027162522, 0.012903999, 0.009733837, 0.007500314, 0.017162103, -0.038531873, 0.015461743, -0.04550623, -0.0060269097, -0.017969053, 0.051644817, 0.0031683603, 0.08449922, -0.01654248, -0.019265937, 0.028329717, -0.036572136, 0.026081786, -0.0023433978, 0.001211326, 0.008235215, -0.023444787, -0.039886396, -0.020202575, -0.011686369, 0.04709131, -0.012032204, -0.01830048, -0.014388211, -0.03455476, -0.015317645, 0.046053804, -0.020937476, -0.03867597, -0.046342, 0.0054361066, -0.04631318, 0.036053386, 0.06784146, -0.03789784, -0.056025404, -0.020317854, 0.04968508, -0.044901017, 0.0016391177, -0.043777052, 0.004409407, 0.010872213, 0.033805452, 0.029857159, -0.003377303, -0.025318064, -0.03467004, -0.0066501345, -0.04279718, -0.02237846, -0.0028783628, -0.00724454, -0.030548831, 0.040693346, -0.0046903985, -0.03899299, -0.026571719, 0.018358119, 0.06830257, -0.016297514, -0.030721748, 0.0036817105, 0.030779388, 0.0074210605, 0.034151286, -0.0016742416, -0.0497139, 0.029266356, -0.036024563, 0.031211684, -0.07383595, 0.010461533, -0.0147340465, -0.053201076, 0.030058896, -0.040174596, 0.022147901, -0.008501797, 0.0077380766, 0.02054841, 0.028545866, -0.03311378, -0.019121839, -0.07441234, -0.045160394, 0.005659459, -0.054267403, -0.02324305, -0.020072887, 0.0016400183, 0.032998502, -0.0041392227, 0.051673636, 0.050549667, -0.012550958, -0.017882593, -0.041586757, 0.004168042, 0.005612627, 0.017752904, 0.01118923, -0.025015458, -0.011686369, -0.01032464, -0.04948334, -0.059137926, 0.0019399228, 0.010547993, 0.034353025, -0.03648568, 0.017147692, -0.008429748, -0.024309376, -0.032393288, 0.014640383, 0.03233565, 0.0021686787, 0.017853774, 0.05550665, -0.012190713, 0.035938106, -0.013732564, -0.06196225, 0.0038618334, 0.059714317, -0.009690608, -0.019438855, 0.039425284, 0.034324206, -0.011182025, -0.018732773, -0.011772827, 0.015951676, -0.051126063, -0.027594816, 0.0106488615, 0.004380587, -0.007471495, 0.010094083, 0.013437162, -0.006574483, 0.0009456448, 0.0247849, -0.00783174, -0.071242176, 0.05709173, 0.06034835, -0.018214019, -0.015360874, -0.044266984, 0.009560919, -0.020505182, -0.011960155, 0.051126063, 0.0004588629, 0.017680855, 0.022392869, 0.0037213375, 0.06634284, 0.0019111031, -0.013487597, 0.011390967, -0.010432714, -0.07815889, 0.018401347, 0.06346087, -0.011117181, 0.036053386, -0.014381006, 0.01995761, 0.0395982, 0.024611982, -0.009294338, -0.08772702, 0.00043206962, -0.0413562, 0.014424236, -0.023848262, 0.0077236667, 0.012997663, 0.032537386, 0.002919791, -0.020159347, 0.021384181, 0.035275254, -0.03729263, 0.03135578, -0.02149946, -0.01489976, -0.020966297, -0.016211053, 0.017882593, -0.019251527, 0.025274834, 0.025418933, 0.011354943, 0.02072133, 0.02821444, 0.005774738, -0.015260005, 0.0056054224, -0.050636128, 0.0013734365, -0.031989813, -0.008307264, -0.02564949, -0.010043649, -0.0036564933, -0.015793169, -0.011880902, 0.02644203, 0.010965877, -0.018761594, -0.024410244, 0.022666655, 0.018718364, 0.003876243, -0.021196853, 0.0069383313, -0.044382263, -0.0018255448, -0.005493746, -0.008566641, -0.0014535912, -0.004600337, 0.07187621, 0.062423367, -0.0035520222, 0.025894457, -0.039655842, 0.024712851, -0.000382761, 0.0020209781, 0.00681945, 0.010094083, 0.01577876, -0.026730226, -0.008328879, 0.021384181, -0.034468304, 0.004513878, 0.0008713442, -0.015159137, -0.03472768, -0.015418514, 0.038301315, 0.024496704, 0.016729807, -0.05464206, -0.00639436, 0.008134346, 0.016974775, -0.013862252, -0.06409491, -0.02724898, 0.047350686, -0.014827711, -0.0071941055, 0.004452636, -0.042508986, 0.011751213, 0.048128817, 0.00724454, 0.011801647, 0.041817315, -0.0062790816, 0.0077164616, -0.026052965, -0.01664335, -0.029482504, 0.01236363, -0.05302816, -0.04717777, 0.012738286, 0.023848262, 0.0007605686, -0.024986638, -0.096027076, 0.004650771, 0.022681065, -0.0082280105, -0.030116536, 0.029223127, -0.045794427, -0.00085738464, 0.014359391, -0.036226302, 0.05187537, 0.01573553, 0.02720575, -0.020980706, -0.00006940358, 0.008883658, -0.007529134, -0.022897214, -0.0130480975, 0.026658177, 0.042393707, -0.030116536, 0.02237846, 0.010108492, 0.017925823, 0.026269112, 0.0005372163, -0.032306828, 0.019597363, 0.039857578, -0.009301542, -0.008847633, 0.039454103, -0.001250953, -0.019424446, 0.011138795, -0.0315287, 0.006992368, -0.03311378, 0.0030927088, 0.014705227, 0.03887771, -0.0014319764, 0.023588885, -0.02059164, -0.016816266, 0.007622798, -0.06363379, -0.014842121, 0.02064928, 0.037494365, 0.0447281, 0.0131201465, 0.0023055722, 0.046745475, 0.04060689, -0.0007506619, 0.013782999, 0.00008994884, 0.024914589, -0.004294128, 0.039079446, 0.0065024337, -0.0091070095, 0.0022713488, -0.026038555, 0.00088800554, 0.015346465, -0.007457085, -0.026081786, 0.00828565, -0.028661143, -0.030462371, -0.08104086, 0.021686789, -0.063345596, 0.016369563, 0.05565075, -0.040203415, -0.03484296, 0.01749353, -0.02054841, 0.020173756, 0.012190713, 0.054238584, 0.004009534, 0.107093826, 0.01658571, 0.022292001, 0.030375913, 0.042970102, -0.010346255, -0.013732564, -0.005594615, -0.01830048, -0.035246436, -0.035909288, -0.046111442, -0.016917136, 0.013465982, -0.0011455811, -0.0181852, 0.018559856, -0.0069023063, -0.03147106, 0.0037609646, 0.09354859, 0.0066069053, 0.0003023812, 0.02896375, 0.016196644, -0.063403234, -0.014438645, -0.03979994, 0.060924742, -0.028416177, -0.045246854, -0.011873696, -0.04867639, -0.0066357246, 0.036687415, 0.0078101256, -0.049857996, 0.029482504, 0.028762013, 0.05726465, 0.004413009, -0.021168035, -0.021686789, 0.06553589, 0.006149393, 0.005003812, 0.060117792, 0.049022228, -0.029482504, 0.0026514078, -0.014784481, 0.029684242, 0.007190503, 0.0145179, 0.0076732324, 0.00025082103, -0.04622672, -0.025822408, 0.020087298, 0.04565033, -0.022781935, -0.02151387, -0.051471896, 0.013826228, -0.047696523, 0.030981125, -0.024222918, 0.04556387, 0.005944053, -0.018156381, -0.006109766, -0.034208927, 0.24646565, 0.078101255, 0.03579401, 0.022652246, 0.051241342, 0.061616413, 0.06686159, -0.016355153, 0.01654248, 0.04043397, 0.014986219, -0.016383972, -0.015000628, -0.022349639, -0.0049425703, 0.034208927, -0.012601392, -0.013321884, -0.026427621, -0.02729221, -0.037667286, 0.022580197, 0.024424655, 0.043575313, -0.023704164, 0.022853984, -0.004095993, -0.018891282, 0.0028621517, -0.020375494, -0.041961413, -0.06386435, 0.037465546, 0.024655212, -0.00906378, 0.046687834, 0.020317854, -0.037580825, -0.024194097, 0.0011311714, 0.0347565, -0.024410244, 0.011376558, -0.011909721, -0.045275673, 0.020346673, -0.0065708808, -0.021859705, 0.06219281, -0.05357573, 0.053950388, -0.059195563, 0.047523607, 0.0036474871, -0.016672168, -0.015793169, -0.047437146, -0.030145356, 0.013667719, 0.001416666, 0.013660515, 0.025908867, -0.019698232, 0.007975838, 0.038330138, 0.00021918696, -0.013076917, 0.053892747, 0.007709257, 0.019237118, 0.01280313, -0.0038077964, -0.012601392, -0.019280346, 0.001792222, 0.043546494, -0.0016039937, 0.03786902, 0.0046615787, -0.0049425703, -0.031960994, 0.0036889154, 0.023689754, -0.012824745, 0.04386351, 0.04052043, -0.024266146, -0.00906378, -0.03717735, 0.03902181, -0.004784062, -0.0017868184, 0.04703367, 0.0016742416, 0.011852082 ]
About half of the feature vectors are randomly masked, and the masked feature vector is fed to a context network, which is a Transformer encoder that also adds relative positional embeddings. The pretraining objective of the context network is a contrastive task. The model has to predict the true quantized speech representation of the masked prediction from a set of false ones, encouraging the model to find the most similar context vector and quantized speech unit (the target label).
[ 0.027881209, 0.03161939, -0.021513004, -0.007631502, 0.0024988921, -0.00899084, -0.030067971, -0.02352246, -0.014982271, 0.04914303, 0.030703314, 0.019636527, 0.030703314, -0.041046105, -0.0013990471, 0.011916373, -0.012706857, -0.059338067, -0.078782514, -0.007609339, -0.002149823, 0.002349291, -0.054994095, -0.029994093, -0.026758278, 0.057092205, 0.01579492, -0.0051012123, 0.054609936, 0.05292554, 0.008909576, -0.04335107, -0.00065842946, -0.045478728, -0.011894209, -0.017302012, 0.03945036, -0.036731683, -0.021217497, -0.040366434, -0.006117022, -0.0041334224, 0.0081560295, -0.007498523, -0.054107573, -0.0027094418, 0.025221635, -0.022990547, -0.043173764, -0.027792556, 0.011258867, -0.0033503254, 0.03297873, -0.027112886, 0.007801419, -0.028442675, 0.008820923, -0.004650562, -0.035135936, -0.014797579, 0.018277189, 0.041518915, -0.028605204, -0.04444445, -0.0035774976, 0.01324616, -0.018823879, -0.013223996, -0.022931445, -0.040336885, -0.04937944, 0.008237294, -0.021291373, -0.006918588, -0.02523641, -0.009692673, -0.011000297, 0.023581563, -0.017449766, 0.019060286, 0.044533104, 0.03841608, -0.0039302604, -0.006117022, -0.03741135, -0.0076019512, 0.011620864, -0.022960996, -0.017198583, -0.0054890667, 0.0047466024, 0.041400716, -0.030703314, 0.006951833, 0.028398348, 0.004624705, 0.002120272, 0.04018913, 0.042848706, 0.005987737, 0.024630617, 0.08705675, -0.00094932044, 0.052836884, -0.03407211, -0.0019595895, -0.006744977, 0.02365544, -0.0052341907, -0.018158985, 0.033953905, -0.014937945, -0.0053043743, -0.029609932, 0.015898347, 0.042464543, 0.022443855, 0.002075946, -0.067494094, 0.022739364, 0.027157214, 0.032092202, 0.003413121, -0.014930557, 0.04943854, -0.03003842, -0.000091192014, 0.0028110228, -0.008355497, -0.01173168, 0.019769507, 0.0057919626, -0.022635937, 0.01579492, 0.03835698, -0.0070958934, -0.0113549065, 0.0029181445, -0.014236113, 0.000025885834, 0.018026007, 0.0052932925, 0.011510049, 0.05537826, -0.00986259, -0.0037862002, 0.012078902, -0.051447995, -0.018262414, -0.011480498, -0.019355794, 0.0042036055, -0.004273789, -0.02913712, -0.054314427, 0.000101638696, 0.0013454863, 0.045774236, -0.026625298, 0.027600477, 0.013970155, -0.029654259, -0.018203313, 0.035106387, -0.016001774, 0.032830972, -0.0034038862, 0.002881206, 0.0025044328, -0.0058473707, 0.0025339837, 0.0133422, 0.004425237, -0.004343972, -0.00053884095, 0.04834516, 0.030644212, 0.011502661, 0.023419034, -0.011052011, -0.00047604542, -0.015780143, 0.01956265, 0.01430999, -0.005603576, 0.011443559, -0.019134162, 0.040632393, -0.026536645, 0.018469268, 0.027615251, 0.050916083, -0.038268324, 0.014782803, -0.015159576, 0.006796691, 0.012773346, 0.027275417, 0.023670215, -0.017612295, -0.04270095, 0.023788419, -0.016681444, 0.046660762, -0.04731088, 0.0020039156, 0.011643027, 0.0748227, 0.0049608457, 0.06832152, -0.008096928, 0.016119977, -0.016164305, 0.0097887125, 0.025989955, -0.040780146, -0.008303784, -0.018173762, 0.014982271, -0.012263595, -0.0003070516, -0.0018349219, -0.0090056155, 0.018735226, -0.009397164, -0.032446813, 0.026004732, 0.053132392, 0.045390077, 0.028058514, 0.013334813, 0.027999412, 0.0049497643, 0.06264776, 0.0028608898, 0.034367617, 0.028989365, 0.030378254, 0.0042257686, -0.011960698, -0.021350475, 0.006900119, 0.020833336, 0.024231682, -0.009980793, -0.00882831, -0.03235816, -0.019193264, -0.017612295, 0.011872047, 0.0024490252, 0.044296697, 0.010645687, 0.025561469, -0.029270098, -0.045419626, 0.010786053, 0.012330084, -0.076182045, -0.056028374, 0.027275417, 0.035815608, -0.0062278374, 0.009899529, 0.014221338, 0.009042555, 0.036465727, 0.014686763, -0.03596336, -0.02188239, -0.03206265, -0.06323878, -0.07925533, -0.007661053, -0.044680856, -0.04524232, 0.0005166778, -0.0515662, 0.031146575, 0.0061502666, 0.005455822, 0.009227247, -0.0061539607, 0.038918443, -0.008252069, -0.0120715145, -0.050059106, 0.06371159, 0.004321809, 0.053457454, 0.048167855, -0.030644212, 0.012994978, -0.017361114, 0.021409577, 0.011620864, 0.033274237, 0.060283694, -0.044651303, -0.009781325, -0.02065603, -0.0020002217, -0.007838358, 0.027674353, -0.04692672, 0.014302602, -0.02681738, -0.03274232, 0.0041038715, 0.058983456, -0.079491735, 0.030171398, 0.014901007, 0.027511824, -0.014635049, 0.050738778, 0.07328606, 0.0057550245, -0.03661348, -0.013223996, -0.038888894, -0.006700651, -0.005056886, -0.020685581, 0.009367613, 0.070567384, -0.027895983, -0.06252956, 0.0057956567, -0.05328015, -0.05097518, -0.01795213, -0.014132685, 0.03478133, 0.0034574473, -0.0019466609, -0.020715132, -0.011125888, 0.018543147, 0.01975473, 0.007986112, -0.0142508885, 0.039745867, 0.020670807, -0.0026909725, 0.0035996605, -0.021320924, -0.04734043, -0.02474882, 0.01888298, -0.0023400565, 0.04373523, 0.005839983, -0.02330083, 0.015336881, -0.010985522, -0.056057926, 0.037943266, 0.00998818, 0.017730499, 0.03206265, 0.020685581, 0.014058808, 0.012640368, -0.005248966, -0.00012455213, -0.0006838247, 0.015440309, 0.014413417, -0.037086293, 0.023123525, -0.014472519, -0.041400716, 0.039273053, -0.017494092, -0.01685875, 0.045419626, 0.023832746, 0.02081856, -0.0480201, -0.013622933, 0.031826247, 0.014546396, -0.010896869, 0.029284874, 0.033599295, -0.032830972, -0.01740544, 0.032653667, -0.019843383, 0.030732865, -0.043676127, -0.026699176, -0.017937355, 0.0009368537, -0.06826242, 0.028442675, 0.039598115, 0.025029553, 0.019119387, 0.056087475, 0.0039598113, -0.0074652787, 0.057417262, -0.019651303, -0.014103134, -0.03212175, 0.036111116, -0.015750593, 0.014871456, -0.037647758, 0.0032025713, -0.01620863, 0.01363032, 0.0072695045, 0.036406625, -0.039273053, -0.023611113, 0.02095154, 0.042730503, -0.022015369, 0.0052748234, -0.02649232, 0.040484637, 0.016962176, -0.066548474, -0.037145395, -0.034367617, 0.020345747, 0.047399532, -0.028487, -0.022355203, -0.024379436, -0.04908393, -0.027334519, 0.03942081, -0.00027103652, 0.0039007096, 0.0003887781, -0.049261235, 0.012093677, 0.016903074, -0.008318559, 0.009781325, -0.0016991728, 0.016415486, 0.0011857271, -0.003590426, 0.0026651155, -0.022384753, 0.013733748, -0.056944452, 0.012300533, -0.029284874, -0.00006291095, -0.032949176, 0.038534284, -0.019370569, 0.020197993, 0.06548464, -0.009818263, -0.008687944, 0.005492761, -0.038622934, -0.047429085, 0.013164895, 0.01721336, -0.032210406, 0.02207447, 0.034456268, -0.0104018925, -0.04698582, -0.017508868, -0.02739362, 0.013571219, -0.068912536, -0.04190308, -0.01623818, -0.026906032, -0.01721336, -0.015159576, 0.0024711883, -0.01634161, -0.028472226, -0.04225769, -0.051063836, -0.046010643, 0.011753843, -0.0061502666, 0.034663126, 0.0068410174, 0.006020982, 0.02262116, -0.042287238, 0.029476954, -0.009145983, 0.009197696, -0.01942967, 0.023965724, -0.011495274, 0.06495272, 0.0013944298, 0.036495276, 0.03484043, -0.032092202, 0.012522165, 0.005053192, 0.0013048538, 0.034190312, -0.019252365, -0.025546692, 0.023950947, -0.0010943043, 0.030053195, 0.01634161, -0.015048761, -0.005537087, -0.008111703, -0.032269508, 0.06111112, -0.0047466024, -0.055230502, -0.038238775, 0.012130616, -0.056117028, 0.02597518, 0.020715132, -0.049261235, -0.04799055, -0.0426714, 0.057387713, -0.013349588, 0.0038933218, -0.04524232, 0.005289599, -0.013002366, 0.02491135, -0.008451537, -0.042494096, -0.04624705, -0.034249414, -0.024320334, -0.050650124, -0.037854616, 0.00070644956, 0.04618795, -0.01942967, 0.0051898644, 0.00033706415, -0.07328606, 0.0028719713, 0.023699766, 0.055614665, -0.0010555187, -0.034544922, -0.0098921405, -0.011753843, 0.029447403, 0.028487, 0.011303193, -0.037115842, 0.045360524, -0.023729317, 0.02491135, -0.017612295, -0.001452608, -0.013349588, -0.037736412, 0.03797282, -0.019163713, -0.023005322, -0.01940012, 0.012477838, 0.04550828, 0.0030603579, -0.030851068, -0.0028257982, -0.0053708637, -0.05050237, -0.00837766, -0.010010344, -0.01808511, -0.01666667, 0.020523053, 0.02955083, -0.014708926, 0.035195038, 0.03306738, 0.0135342805, -0.0071882396, -0.03844563, 0.009079493, 0.0056700655, 0.008163417, 0.03241726, -0.020153666, -0.0031785613, 0.019518323, -0.04370568, -0.042789605, -0.027600477, 0.0007872526, 0.047104023, -0.014413417, -0.0035073142, 0.019030735, -0.01685875, -0.010793441, -0.0047835405, 0.012027188, -0.020124115, 0.015854022, 0.028501777, -0.014686763, 0.02632979, -0.059663128, -0.05537826, 0.03625887, 0.091312066, -0.036879435, -0.032830972, 0.016001774, 0.015765369, -0.044917263, -0.031708043, -0.00899084, 0.018291965, -0.00021516699, -0.011613476, 0.02684693, 0.017922578, -0.010527483, -0.00023894617, 0.011746455, -0.028871162, 0.025664896, 0.030466907, 0.012913713, -0.059278965, 0.06447991, 0.044739958, -0.014657212, -0.01762707, -0.0071586887, -0.004598848, -0.016592791, -0.032505915, 0.047458634, -0.014479907, -0.009943855, 0.014945333, -0.0058030444, 0.021941492, 0.02185284, 0.024822697, 0.007018322, -0.043557923, -0.071631216, 0.02700946, 0.020153666, -0.02703901, 0.029521279, -0.02726064, 0.036140665, -0.007103281, 0.037204497, 0.009242022, -0.06702128, -0.0045877662, -0.023965724, 0.009493205, -0.01721336, -0.0059249415, 0.05224587, 0.047842793, -0.016356384, -0.04692672, 0.017228134, 0.011687353, -0.01566194, 0.01433954, -0.05732861, 0.03407211, -0.024970451, -0.03339244, -0.0010388964, 0.0069038128, -0.034013007, 0.006043145, 0.012847223, 0.033185583, -0.009818263, 0.062056746, -0.006290633, -0.012381798, -0.008178192, 0.004048464, 0.018735226, 0.03306738, -0.036879435, 0.047399532, -0.0036088952, 0.00007618574, 0.026669625, 0.008104315, 0.021350475, -0.010749115, 0.010593973, 0.033628844, -0.004927601, -0.027142437, -0.010793441, 0.020537827, -0.059308518, 0.015647165, -0.0053745573, 0.0008708261, -0.008000887, 0.01414746, 0.035342794, 0.04580379, -0.007509605, 0.038918443, -0.02613771, 0.0031231535, 0.01527778, 0.01997636, 0.011702129, 0.028900713, 0.0004894356, -0.07304966, -0.019148938, 0.012485226, -0.0426123, 0.0007429264, -0.009581856, -0.041430265, -0.043232866, 0.02330083, 0.036908988, 0.045301422, 0.07606384, -0.03989362, -0.026255913, -0.02362589, -0.0019189571, -0.009759162, -0.08150119, -0.03622932, 0.035638303, -0.030348703, -0.016843973, -0.0006099476, -0.023433808, 0.0056959228, 0.019739956, 0.013017141, 0.013689422, 0.024187354, -0.009197696, 0.013526893, -0.015898347, -0.028900713, 0.00038670033, 0.021764187, -0.049852252, -0.020020688, 0.029787237, 0.052866437, -0.007402483, -0.0605201, -0.062056746, -0.00998818, 0.021941492, -0.007934398, -0.024468089, 0.009131207, -0.014332153, -0.010239363, -0.020523053, -0.01691785, -0.010527483, 0.008806148, 0.00081541826, -0.006390367, -0.013290486, 0.041459814, 0.025472816, -0.005891697, -0.033185583, 0.03091017, 0.052304972, -0.012994978, 0.0071882396, 0.011221928, 0.011849883, 0.050709225, 0.01156915, -0.020862887, 0.035106387, 0.032890074, 0.009426715, 0.013364363, 0.015942672, 0.043823883, -0.042937357, -0.0026688094, -0.007280586, 0.0014997047, 0.007978724, -0.027807333, -0.008547578, 0.009404552, -0.030614661, -0.009537531, -0.008769209, 0.021867614, 0.018218087, -0.0888298, -0.053752962, 0.037293147, 0.023921397, 0.030097522, 0.03486998, -0.004842642, 0.06001774, 0.049320336, 0.031914897, -0.0076241144, -0.0014720007, -0.0093159, -0.020212768, 0.06087471, 0.008488476, 0.0144872945, -0.03664303, -0.0129211005, -0.038622934, 0.016282508, 0.006032063, -0.02171986, -0.032299057, -0.023212178, 0.020833336, -0.06962176, 0.037440903, -0.06690308, -0.021867614, 0.015189127, -0.012056739, -0.07972814, 0.033628844, -0.008739659, 0.018676125, 0.05328015, 0.024556741, -0.007358157, 0.09828606, 0.013379139, -0.007365545, -0.0055777193, 0.059190314, -0.016223406, -0.015366432, -0.0060579204, -0.024556741, -0.019784281, -0.029107569, -0.021660758, -0.019030735, -0.0073877075, 0.0059027784, -0.040661942, 0.0129211005, -0.01395538, -0.04766549, 0.024926126, 0.05050237, 0.009042555, 0.020449175, 0.021424353, -0.01289155, -0.038534284, -0.03735225, -0.038150124, 0.06572105, -0.04669031, -0.039332155, -0.0498227, -0.03915485, -0.040750597, -0.002050089, -0.029107569, -0.020419624, 0.020463951, 0.013822401, 0.05907211, 0.035047285, -0.009559694, 0.00073830906, 0.056087475, 0.0053376188, 0.009411939, 0.04872932, 0.046099298, 0.023684992, 0.031057922, 0.0035497935, 0.025842201, -0.006327572, -0.028797284, -0.0012854611, -0.007070036, -0.056117028, -0.05868795, -0.031944446, 0.039243504, -0.030466907, 0.011643027, -0.0677305, 0.01920804, -0.020094564, 0.010276302, -0.025369389, 0.028206268, 0.002829492, -0.0037363332, -0.03303783, -0.03835698, 0.2602837, 0.057476364, 0.03484043, 0.054669037, 0.031442083, 0.092789605, 0.0035719567, -0.01566194, 0.0027445334, -0.028664306, -0.017316787, -0.04030733, -0.02794031, 0.011406621, -0.015602838, 0.026758278, 0.009027779, 0.0031563982, -0.026625298, -0.02646277, -0.074586295, 0.025192084, -0.008754434, 0.04595154, -0.008274233, 0.030407805, 0.007845745, -0.0015449544, 0.017361114, -0.054934993, -0.023670215, -0.0293292, 0.007779256, 0.006674794, -0.014354316, 0.01176123, 0.00560727, -0.036022462, -0.026315015, -0.020257095, 0.01040928, -0.020611705, 0.009271573, 0.0019097225, -0.029063242, 0.06388889, -0.00043910687, -0.009256798, 0.07080379, -0.02468972, 0.08569741, -0.031944446, 0.016607568, 0.012485226, -0.019148938, -0.0022883425, -0.015558512, -0.04299646, 0.00078171183, -0.009884753, 0.009301124, 0.054225773, -0.024276007, 0.03492908, -0.012935876, -0.0039117914, -0.016592791, 0.02010934, -0.00612441, 0.04444445, 0.000598866, 0.009234634, -0.023744093, -0.03339244, 0.0007747858, 0.0337766, -0.027024236, 0.041282512, 0.019001184, 0.014827129, -0.008562353, -0.023286054, 0.030319152, -0.029018916, 0.06507093, 0.05682625, -0.027615251, -0.019991137, 0.010025119, -0.01473109, 0.029846339, 0.03241726, 0.04349882, -0.0063127964, 0.030644212 ]
Waveforms are continuous by nature, so they can't be divided into separate units like a sequence of text can be split into words. That's why the feature vectors are passed to a quantization module, which aims to learn discrete speech units. The speech unit is chosen from a collection of codewords, known as a codebook (you can think of this as the vocabulary). From the codebook, the vector or speech unit, that best represents the continuous audio input is chosen and forwarded through the model.
[ 0.015682677, -0.0069300295, -0.026849613, -0.029433923, 0.025843093, -0.008888664, 0.007718924, -0.036724396, 0.03326958, 0.0659951, -0.001286204, -0.009582347, 0.05323677, -0.043715633, 0.007446891, 0.019926384, 0.010228424, -0.051196527, -0.022986751, 0.020688076, -0.025951905, 0.025666272, -0.078236565, -0.048258577, -0.039499126, -0.026591182, 0.05609311, -0.028454605, 0.06784492, 0.025081402, -0.023993272, -0.0183894, 0.026183134, -0.013261587, -0.0050530047, 0.008637033, 0.023190776, -0.017954148, -0.059466317, -0.028264184, 0.0010311734, 0.02597911, -0.004032883, -0.06071767, -0.036071517, 0.028889857, 0.032045435, -0.04126734, -0.027053637, -0.00868464, -0.040152006, 0.007242867, -0.003400407, 0.032317467, 0.008140574, -0.013486014, 0.031147728, 0.023612427, 0.008426208, -0.035364233, 0.043089956, 0.02856342, 0.0023785846, -0.032344673, 0.0258975, 0.03324238, -0.022701116, 0.001287054, 0.0107656885, -0.040478446, -0.06702882, 0.013159575, -0.025135808, -0.015669076, -0.011343758, 0.009650355, 0.001077929, -0.009922387, -0.003567027, 0.032535095, -0.0099291885, 0.0146217495, -0.039335907, 0.018253384, -0.016403563, -0.039145485, 0.024877377, -0.0056446753, 0.008827456, -0.034874573, -0.034901775, 0.0300868, 0.00108643, 0.017178856, -0.002070848, 0.031827807, -0.050162803, 0.032099843, 0.006450572, 0.046844006, -0.0039240695, 0.08971634, -0.023938864, 0.08422128, -0.030304426, -0.03049485, -0.021817012, -0.04061446, -0.01847101, -0.031147728, -0.009976794, -0.055467438, 0.00024121637, -0.008405806, 0.02480937, -0.014132092, 0.017029239, 0.037486088, -0.076822, -0.018375799, -0.0054100477, -0.029787565, -0.007630513, -0.011792611, 0.032371875, -0.031555776, -0.02248349, 0.023217978, -0.017750124, -0.016226742, 0.036833208, -0.005573267, 0.022986751, 0.05541303, -0.008514619, -0.039199892, -0.020334434, 0.022701116, 0.0015182818, 0.007134054, 0.0002331404, -0.059520725, 0.004066887, 0.06523341, -0.0084330095, 0.019518336, -0.005716084, -0.023272386, -0.0334056, -0.0013746145, 0.0010286231, -0.01645797, -0.019232702, 0.05005399, -0.06566866, -0.016757205, -0.018947067, 0.029678753, -0.0167028, 0.061969016, 0.035364233, 0.03433051, -0.019314311, 0.058704626, -0.0057874927, 0.06338359, -0.043715633, -0.025761483, 0.015859498, -0.016403563, 0.011881022, -0.0012530499, 0.0057262853, -0.02323158, 0.030141206, 0.006674999, 0.05203983, 0.0049509928, 0.0015582365, 0.0005444902, -0.03125654, -0.021871418, -0.03868303, 0.01203064, -0.00040719874, -0.022089044, 0.019803971, 0.014771367, 0.0010634772, 0.01237068, 0.029760363, 0.064961374, -0.04828578, 0.016607588, -0.054569732, -0.01913749, -0.0041654985, -0.04200183, 0.020511255, -0.025938304, -0.02104172, 0.04804095, -0.0041246936, 0.00057041825, -0.032263063, 0.013649234, 0.020592865, 0.054460917, -0.0626763, 0.001629645, 0.011785811, 0.023598824, 0.0076509155, 0.015261026, 0.035853893, -0.009793172, -0.000819073, -0.0041961023, -0.015805092, -0.03985277, 0.033949662, 0.03049485, 0.05405287, -0.029433923, -0.014798571, 0.019028677, 0.0026795208, 0.044069275, 0.039199892, 0.039118282, -0.008453412, 0.02279633, 0.026359955, 0.008494217, 0.032480687, 0.03718685, -0.016498774, 0.020443246, -0.0208785, 0.015655473, -0.00007587158, 0.037486088, 0.032263063, 0.028889857, -0.0006031472, 0.004185901, -0.02022562, 0.016267547, -0.046844006, -0.0029855573, -0.055358626, 0.035527453, -0.012975953, 0.009772769, -0.05271991, -0.017763726, -0.017029239, 0.016988434, 0.013023559, -0.010745286, -0.011452571, 0.015995514, -0.035201013, 0.03851981, 0.07584268, 0.02690402, 0.0192191, 0.042056233, -0.011098929, -0.045103, -0.04102251, -0.07665878, -0.07083728, -0.016077124, -0.054216087, -0.05631074, 0.018607028, -0.046762396, 0.0007166358, -0.009793172, -0.023952467, -0.01052766, -0.015995514, 0.008086168, 0.04885705, 0.024523735, -0.005141415, 0.058976658, 0.028345792, 0.03275272, 0.018661434, -0.040668868, -0.017491693, 0.00994279, -0.0020283428, -0.011826616, -0.014172896, 0.010745286, -0.048176967, -0.011969432, -0.028835451, -0.004104291, -0.030440442, 0.04646316, 0.016661994, -0.011411766, -0.03166459, -0.016444368, 0.047333665, 0.008711843, -0.04311716, 0.0052740313, 0.0066954014, 0.024591744, -0.005488257, 0.074645735, 0.013540421, -0.0036826408, -0.015968312, 0.00014674882, -0.01119414, -0.0003819082, -0.0069640335, -0.04978196, -0.051495764, 0.06838898, -0.0006626543, -0.079215884, -0.035445843, -0.02633275, -0.044749357, -0.014689758, -0.026686395, 0.07045643, 0.03767651, 0.003167479, -0.032399077, 0.036533974, 0.0019042279, 0.011989835, 0.017260466, -0.035745077, 0.03348721, 0.027856134, 0.030440442, -0.0008424508, 0.05198542, -0.055113796, 0.051522966, 0.010990115, 0.04896586, 0.031229338, -0.0037370473, -0.001562487, -0.0008211983, 0.018022157, -0.05614752, 0.03819337, 0.0011518878, -0.019953588, 0.07997757, 0.016009117, -0.015954709, -0.0033409, -0.04137615, -0.012071445, 0.030522052, 0.0068450193, 0.04134895, -0.025951905, 0.017532498, 0.025285427, -0.03408568, 0.026836012, -0.01144577, -0.078399785, 0.05280152, 0.016444368, 0.042246655, -0.03770371, -0.015274628, -0.026183134, 0.025394239, 0.0062397467, 0.010894904, 0.012044242, -0.028454605, 0.031474166, -0.049101878, -0.013023559, 0.022592304, -0.0046993624, -0.03658838, -0.01829419, -0.03634355, -0.019273506, 0.016648393, 0.01411849, 0.03049485, 0.002706724, 0.05247508, -0.025775084, 0.03457534, 0.035228215, 0.016485173, 0.0038628622, -0.035527453, 0.032453485, 0.032453485, -0.023258783, -0.014757766, 0.024265304, -0.0076917205, 0.0020283428, -0.05631074, 0.005573267, -0.025285427, 0.001496179, 0.0031589782, 0.0626763, -0.067137636, -0.020348035, -0.05315516, 0.035881095, 0.021245742, -0.054161683, -0.0025605063, -0.045239013, -0.0026353153, 0.023095565, -0.016471572, -0.0063927653, 0.008147375, -0.01687962, -0.016906824, 0.04186581, 0.04121293, -0.012805932, 0.0077597285, -0.042409874, -0.01713805, 0.0325895, 0.02096011, -0.0074332897, 0.027244061, 0.04202903, 0.036316346, 0.009677558, -0.0018498214, 0.0029634547, 0.01738288, -0.032616705, 0.03351441, 0.00517882, -0.012581506, -0.016730003, 0.028971467, -0.035391435, 0.03884625, 0.003818657, -0.028862655, -0.035554655, 0.033650428, -0.040179208, -0.050652463, 0.015397043, 0.003835659, -0.027937744, 0.0267408, 0.012588306, 0.008072566, 0.026768005, 0.025054198, -0.03324238, 0.0145945465, -0.035445843, -0.005070007, 0.016770808, -0.032072637, 0.012751526, -0.038302183, 0.0107384855, -0.0044647343, -0.00013346598, -0.013778449, -0.034466524, -0.0010830297, -0.007174859, -0.04153937, -0.032181453, 0.05163178, -0.0030807687, -0.0012062944, 0.0031470766, 0.019722361, -0.014091287, -0.024714157, 0.019899182, 0.036125924, -0.029216297, 0.044749357, -0.021340955, -0.017437287, -0.028427402, -0.031066118, 0.017899742, -0.030222816, -0.02440132, -0.021735402, -0.0039988784, -0.02791054, 0.0058521004, 0.0030178612, -0.02856342, 0.056528367, 0.003201483, -0.028672231, -0.047932137, -0.03324238, 0.05304635, -0.04945552, -0.08661517, -0.038383793, 0.002973656, -0.0019841376, 0.006297554, 0.010867701, -0.050842885, -0.06572307, -0.022374678, 0.04219225, -0.07393845, -0.021721799, -0.030549256, -0.021000914, -0.014948189, 0.054542527, -0.022524295, -0.014499336, 0.010384843, -0.04980916, -0.02113693, -0.030522052, -0.01411849, -0.0035874294, 0.02030723, -0.014363319, 0.020184815, -0.007922948, -0.0409681, 0.009935989, 0.03025002, 0.040206414, 0.019599946, -0.045647062, -0.05609311, 0.024754962, -0.015995514, 0.026441565, 0.032399077, -0.015519457, 0.0027356273, -0.011608989, 0.043606818, -0.03775812, -0.012166657, 0.0050938097, -0.017804531, 0.008779851, -0.026087923, -0.0073652817, -0.031202134, 0.031800605, 0.051006105, 0.024618946, -0.011003717, -0.02264671, -0.025883898, -0.039580736, 0.02222506, -0.0016457969, 0.019083085, -0.040124804, 0.011676998, 0.07361201, -0.01621314, 0.025435043, 0.030739678, 0.0031572778, -0.007528501, -0.014744164, -0.01629475, 0.009378322, -0.026047118, -0.0019280307, -0.01887906, -0.014091287, 0.01912389, -0.04186581, -0.029569939, -0.032371875, 0.05481456, 0.030222816, -0.028699435, 0.0052434276, 0.025054198, -0.0146625545, -0.05723565, 0.012805932, 0.020688076, 0.00902468, 0.0014910784, 0.029896379, 0.008732245, 0.064526126, -0.021898622, -0.044504527, -0.01863423, 0.06702882, -0.007127253, -0.021830613, -0.0077665295, 0.031773403, -0.012860339, -0.0054678544, -0.0062125437, 0.04102251, -0.003954673, -0.027543297, 0.010772489, -0.021572182, -0.0069232285, 0.013832856, 0.026999231, -0.017586906, -0.02230667, 0.028264184, 0.035609063, -0.02497259, -0.008881863, 0.04153937, -0.007202062, -0.035473045, -0.015465051, 0.00011646394, -0.0568004, -0.020987311, 0.021164132, 0.0053148363, 0.03460254, 0.04586469, 0.035717875, 0.09319835, 0.032290265, -0.024999792, -0.015723482, -0.00072726206, -0.033051956, 0.0038662627, 0.022184255, 0.01261551, 0.038791843, -0.052420672, -0.009629953, 0.005216224, 0.026890418, -0.000091598464, -0.052447878, -0.009051884, -0.042219453, -0.029243499, -0.008337798, -0.0068858243, -0.025611864, -0.0005789193, 0.0010566765, -0.022959547, 0.016947629, 0.004134895, -0.030712476, -0.03517381, -0.020293629, -0.007705322, -0.03482017, -0.021096125, 0.00024312909, -0.04610952, 0.0019076283, 0.04396046, 0.011636193, -0.004947592, 0.016525978, 0.007956952, -0.005454253, 0.035309825, -0.02682241, -0.015587466, -0.03291594, 0.028182574, 0.027856134, -0.013540421, 0.047143243, -0.058160562, 0.033568818, 0.013105168, 0.016036319, -0.032154247, 0.025761483, 0.008596228, -0.017491693, 0.021762604, -0.007134054, 0.010962912, -0.04227386, -0.019599946, 0.002917549, -0.0030620664, -0.026863215, 0.015682677, 0.031093322, 0.06702882, -0.027339272, 0.051359747, 0.005875903, 0.031691793, -0.030467646, -0.0092151025, 0.007161257, 0.0010158715, -0.0146625545, -0.013275188, -0.00023696586, 0.036479566, -0.015111408, 0.016838815, 0.042654704, -0.023870857, -0.0065355822, 0.025176613, -0.0064131673, 0.04755129, 0.001370364, -0.009283111, -0.0040396834, -0.012064644, -0.0008573276, -0.008045363, -0.016607588, -0.02848181, -0.0049509928, -0.051767796, 0.010840497, 0.00028712186, -0.014880181, -0.004862582, 0.0020606467, 0.024346914, 0.0009759168, 0.019341515, 0.017097246, 0.0122346645, -0.056854803, -0.0183894, -0.0010719782, 0.008126972, -0.05146856, -0.0115205785, 0.010133212, -0.0015820393, -0.0064539723, -0.042409874, -0.03324238, -0.000043488017, 0.0049237893, 0.033704832, -0.008752648, 0.020824092, -0.026836012, 0.047007225, -0.00003387124, -0.009296712, 0.00040698622, 0.037078038, -0.0029940584, -0.0044069276, -0.011452571, 0.058813438, 0.027339272, -0.03710524, 0.014322514, 0.0006898576, 0.04869383, 0.028889857, 0.0019824372, -0.028264184, 0.003618033, 0.004576948, 0.036615584, -0.0051516164, 0.05171339, 0.01897427, 0.005155017, 0.05723565, 0.0029430522, -0.039199892, -0.000321551, -0.018851856, -0.027856134, 0.03125654, 0.015832296, 0.015519457, -0.0066613974, -0.008399005, -0.0076237125, 0.0058487, -0.014172896, 0.024537336, 0.0005206873, -0.058486998, -0.0259111, 0.022293068, 0.016675595, 0.023544418, 0.04561986, 0.0030229618, 0.020660874, 0.054678544, -0.022415483, 0.03808456, -0.00095381413, 0.02047045, 0.0023173774, 0.038138963, 0.024686955, -0.004835379, -0.008453412, 0.0008849559, -0.05214864, 0.03786693, 0.00007332127, -0.040233616, 0.048176967, 0.00075148995, -0.050407633, -0.050734073, 0.052366268, -0.065179, 0.032235857, 0.0007502148, -0.013479213, -0.05038043, 0.0026863215, -0.059031066, 0.028944263, 0.011881022, 0.034711353, -0.010065204, 0.09281751, 0.040587258, -0.005056405, 0.025312629, 0.047306463, -0.028835451, -0.02597911, 0.00073491293, -0.024686955, 0.013234384, -0.07491776, -0.053753633, 0.047007225, 0.04912908, -0.010228424, 0.0013295591, -0.02280993, 0.036370754, -0.031392556, -0.03449373, 0.05364482, 0.0071816593, -0.007066046, 0.009051884, -0.013077965, -0.03307916, -0.0058929054, -0.03778532, 0.064145274, 0.002514601, -0.023095565, -0.033786442, -0.03348721, -0.012479493, -0.0063553606, -0.010065204, 0.017614108, 0.019151092, 0.0534544, 0.018144572, 0.03457534, -0.0007791183, -0.0008705042, 0.04504859, 0.01889266, 0.024102084, 0.09172938, 0.07660437, 0.009099489, 0.019436726, 0.035690673, -0.009827176, 0.018919865, -0.028917061, 0.022782726, 0.044749357, -0.025557458, -0.031283744, -0.033378396, 0.03634355, -0.020035198, -0.03041324, -0.07083728, -0.016145132, -0.047605697, 0.012744726, -0.038574215, -0.002516301, -0.034303304, -0.034384914, 0.020864896, -0.014390523, 0.2138176, 0.025720678, 0.032371875, 0.022034638, 0.017396482, 0.03735007, -0.024632549, 0.012139453, 0.011765408, -0.00434232, 0.024469329, -0.0092559075, -0.004835379, 0.00062652497, -0.039961584, 0.00048668325, -0.008385404, -0.03392246, -0.03057646, -0.020212019, -0.052937537, 0.0701844, 0.010459652, 0.011010517, 0.007127253, 0.0015412344, -0.002531603, -0.0028954465, -0.031202134, -0.031610183, 0.055712268, -0.0046075513, 0.043579616, -0.022959547, -0.035908297, 0.042654704, 0.013220782, -0.016784409, -0.0073584807, -0.013173177, -0.0014698259, -0.015900303, -0.002917549, -0.008650635, -0.028645027, 0.07219744, 0.0017597106, 0.004413728, 0.048176967, -0.08324196, 0.031773403, -0.061642576, 0.012982754, -0.027529694, -0.036452364, -0.024333313, -0.04404207, -0.014553742, 0.06305715, 0.010303233, 0.034221694, 0.024183694, 0.000994619, -0.011792611, 0.008888664, -0.02263311, -0.0043559214, 0.019531937, -0.010058404, -0.013139172, 0.010180819, 0.015546661, -0.0021745602, -0.018226182, 0.013574424, 0.032616705, -0.014172896, 0.07361201, -0.0041212933, -0.041240137, -0.025829492, -0.016036319, 0.026223939, -0.0063145556, 0.018076563, 0.029161891, -0.042545892, -0.016934026, -0.017532498, 0.022905141, 0.04869383, 0.047578495, 0.009765969, 0.019395921, 0.000024148203 ]
Split an image into a sequence of patches and process them in parallel with a Transformer. Use a modern CNN, like ConvNeXT, which relies on convolutional layers but adopts modern network designs. A third approach mixes Transformers with convolutions (for example, Convolutional Vision Transformer or LeViT). We won't discuss those because they just combine the two approaches we examine here.
[ 0.011238116, -0.014139392, -0.0075890175, -0.05159978, -0.0036733337, 0.001077592, -0.011522012, -0.0027402863, -0.034289066, 0.07228955, -0.025522918, -0.011618952, 0.064257376, -0.033319663, 0.017130684, -0.016853712, -0.021963835, -0.03531386, -0.029275881, 0.0028839651, -0.01812778, 0.045312528, -0.05536659, -0.02483049, -0.0018799437, -0.06503289, 0.035369255, 0.01843245, 0.037363447, 0.032793418, -0.002302325, -0.057443876, 0.0319902, -0.025356736, -0.008793843, 0.027489416, 0.013336175, -0.024650458, -0.034759916, -0.007824443, 0.024872035, 0.02841727, -0.00025792964, -0.055421986, -0.045312528, -0.011348905, -0.008641509, -0.054203313, -0.040271647, -0.015233429, -0.009687076, -0.018917149, -0.0095832115, 0.0063011004, 0.0016228795, -0.021520682, 0.007838292, -0.016867561, 0.018446298, -0.015094943, 0.03694799, 0.008558418, 0.0106634, -0.031879414, 0.03268263, 0.019221818, -0.022753203, -0.020440493, -0.0104348995, -0.044481613, -0.038665213, -0.0015821994, -0.008946178, -0.037834298, -0.03481531, 0.00020794496, 0.020343553, 0.018529389, 0.0044557783, 0.021742258, -0.023639513, -0.008759222, -0.040410135, -0.023127114, -0.034870703, -0.031270076, 0.015468855, -0.00964553, -0.0064534345, -0.052042935, -0.006778876, 0.029746734, -0.012519109, 0.032544143, -0.03811127, 0.044066157, -0.016369011, 0.0397454, 0.006141842, -0.0014125543, 0.0080944905, 0.04714054, -0.02629844, 0.08685824, -0.039385337, 0.01638286, -0.011882075, -0.00945165, -0.035092283, -0.06863353, 0.006055288, -0.022559324, 0.0070973933, -0.004549256, 0.010788037, 0.011965166, 0.0036456366, 0.019914247, -0.04567259, -0.0101787, 0.0008365403, -0.023348693, 0.007775973, -0.023722604, 0.048857763, -0.016826015, 0.0012255986, 0.00584756, -0.027337082, -0.032848813, 0.038748305, 0.006335722, -0.029220488, 0.0426536, -0.029442064, -0.035729315, -0.00034707983, -0.010303338, -0.015801221, 0.021174466, -0.009590136, -0.02570295, -0.020025035, 0.057776242, -0.008613812, -0.008302219, 0.010109457, -0.039385337, -0.058717944, 0.01726917, -0.014305575, 0.017601535, -0.02124371, 0.012851475, -0.057056118, 0.00032176293, 0.0329873, 0.012477564, -0.00819143, 0.0018920612, 0.03888679, -0.01109963, -0.03257184, 0.030217584, -0.009853259, 0.064146586, -0.02017737, 0.008032172, 0.0054390267, -0.016549043, 0.02880503, -0.03426137, -0.0004756119, 0.018058538, 0.036172472, 0.012726838, 0.06669472, -0.040687107, 0.026270742, 0.0065780715, -0.03672641, -0.017933901, -0.037197266, 0.0358955, -0.0053628595, -0.014637941, 0.05392634, 0.020578979, 0.025065916, 0.022517778, 0.012041333, 0.0339567, -0.057056118, 0.039800797, -0.035729315, 0.025370585, -0.0054632616, 0.028209541, 0.008842314, -0.052347604, -0.013370796, 0.047971454, -0.039911583, -0.007983702, -0.02444273, 0.003749501, 0.021991532, 0.045423318, -0.023971878, 0.03548004, 0.0037079551, 0.031103892, -0.012075955, 0.025633708, 0.021520682, -0.020108126, 0.030965406, 0.011182722, -0.020011187, -0.03899758, 0.030106796, 0.03240566, 0.026686199, -0.014056301, 0.023417935, -0.02093904, -0.0017328026, -0.011660498, 0.00039425155, 0.02142374, -0.000084389736, 0.037474237, 0.0007404658, 0.04589417, 0.014637941, 0.016867561, 0.01775387, 0.001692988, -0.025910677, -0.00041177863, -0.013384645, 0.03548004, 0.01197209, 0.022974782, 0.008371462, 0.010940372, -0.029165093, -0.020994436, -0.018861756, 0.018889451, -0.01775387, 0.055034224, -0.0032751872, -0.01434712, -0.047943756, 0.009894805, 0.020495886, -0.0070039155, -0.00780367, -0.033735123, -0.046309624, 0.022254655, -0.045035556, 0.01851554, 0.05799782, 0.045811076, 0.020038884, 0.03888679, -0.0130938245, -0.06431277, -0.04819303, -0.07699806, -0.0902373, -0.00634957, -0.02483049, -0.07716424, 0.015053398, -0.010684174, -0.0052693817, 0.0020374712, -0.035840105, -0.0009867108, -0.034676824, 0.018750967, 0.026741592, 0.046032652, 0.0010672056, 0.052126024, -0.0060899095, -0.013585449, 0.017407656, -0.05004874, -0.045229435, 0.018529389, 0.030854618, -0.043235242, 0.01949879, -0.0062768655, -0.031574745, 0.012664519, -0.018321661, -0.012269835, -0.024982823, 0.07550242, -0.014160165, 0.0047742953, -0.011134252, -0.027378626, 0.05082426, 0.011272738, -0.025633708, 0.02386109, 0.022587022, 0.023777999, -0.013883193, 0.054757252, 0.019166423, -0.031602442, -0.006657701, -0.017047592, 0.032904208, 0.024525821, -0.013156143, -0.015427309, -0.03916376, 0.0834238, -0.004057632, -0.0688551, -0.04470319, -0.035812408, -0.057056118, -0.0043969215, -0.05002104, 0.030494556, 0.020025035, 0.018100083, -0.0407148, 0.0076998062, 0.0002087023, 0.008226052, -0.014873367, -0.053483184, 0.019817306, 0.08010014, 0.05079656, -0.017726172, 0.003268263, -0.024207303, 0.028112601, 0.014734881, 0.06337106, 0.019415699, 0.040493224, 0.012477564, 0.008399159, 0.021174466, -0.018557087, 0.004559642, 0.03896988, -0.004452316, 0.05683454, 0.034926098, 0.00088024983, 0.016008949, -0.027461719, -0.013336175, 0.0059444997, 0.005878719, 0.04257051, -0.023708755, 0.017989295, -0.020731313, -0.015690433, 0.046974357, 0.021077527, -0.024761247, 0.08358998, 0.046558898, 0.065808415, -0.050574984, -0.008932329, -0.012740687, -0.014914912, 0.020426644, 0.0024771632, 0.049494796, -0.038000483, 0.020897495, -0.018584784, -0.002056513, -0.016452104, 0.0022053851, -0.027461719, -0.00819143, -0.02570295, -0.039690007, 0.03348585, -0.01735226, 0.02753096, 0.010746492, 0.04788836, 0.0018903301, 0.037003383, 0.031242378, -0.003752963, -0.018570935, -0.02724014, 0.01494261, 0.015053398, -0.011937469, -0.039025277, 0.011134252, -0.020426644, -0.017601535, -0.03271033, 0.018598633, -0.0019993875, 0.002082479, -0.004500786, 0.028583452, -0.0070281504, -0.008593039, -0.05827479, 0.013592374, 0.031408563, -0.04065941, -0.009576287, -0.05827479, -0.003001678, 0.050298013, -0.031159287, -0.017629232, 0.037474237, -0.016272072, -0.03354124, 0.03132547, 0.06098911, 0.018598633, 0.01948494, -0.02433194, -0.029608248, 0.016022798, 0.0028856962, -0.019221818, -0.0005431237, 0.03259954, 0.029248184, 0.007990626, -0.01803084, -0.0054113297, -0.0010871129, -0.067858, -0.009590136, -0.02064822, -0.0034656052, 0.029802127, 0.007388213, -0.04664199, 0.043623, 0.020717464, -0.026533864, -0.008066793, 0.0446201, -0.013626995, -0.044176944, 0.022365443, 0.0070731584, -0.019512638, 0.038055874, -0.0669163, 0.01978961, 0.0072774244, 0.019124879, -0.040216252, 0.020842101, -0.012373699, -0.03348585, -0.011078858, -0.00011111315, 0.023625664, -0.022822447, 0.045644894, -0.023334844, -0.011556634, -0.013280781, -0.016909106, -0.012879172, -0.016826015, -0.06082293, 0.00097545877, -0.0026952783, -0.0059964317, 0.00979094, -0.0049716374, 0.00013394166, 0.015371915, -0.026977018, 0.012477564, 0.03500919, -0.0047500604, 0.026603106, -0.05489574, -0.037114173, -0.0116328, -0.0256891, -0.0023334844, -0.00925777, 0.011335056, -0.0055982852, 0.017241472, -0.015759675, 0.0159951, -0.039025277, 0.0044176946, 0.021188315, -0.016729075, 0.027724842, -0.046503507, -0.035729315, 0.05013183, -0.030106796, -0.06226318, -0.025882982, 0.012069031, 0.018944846, 0.035092283, 0.015011852, -0.042598207, -0.023279449, 0.001062878, 0.033984397, -0.069741406, 0.013530055, -0.04043783, -0.0028129912, 0.016604438, 0.0572223, 0.019831154, 0.005916802, 0.017490746, -0.026603106, -0.021617621, -0.0025464061, -0.0065296018, -0.015939707, 0.0030380306, -0.043789186, 0.010808811, 0.012685292, -0.032544143, -0.03182402, 0.033208877, 0.037252657, 0.037086476, -0.09710619, -0.03268263, 0.012214441, -0.018847907, 0.040770195, -0.04439852, -0.059992015, 0.03318118, -0.048137635, 0.033624332, -0.0020322779, -0.03271033, 0.018086236, -0.042404328, 0.025370585, -0.023971878, -0.0085376445, -0.043013666, 0.032433357, 0.019221818, -0.016549043, -0.035840105, -0.023251753, -0.021562226, -0.05265227, 0.0024442729, -0.010455672, -0.0152749745, -0.013599298, 0.044841677, 0.057720847, -0.026686199, 0.058828734, 0.03190711, 0.019720366, -0.0045146346, 0.0054563372, 0.036200166, 0.006976218, -0.03511998, -0.018501692, -0.005837173, -0.0071112416, 0.03240566, -0.038000483, -0.035092283, -0.04470319, 0.019360304, 0.044481613, -0.031463955, 0.005608672, 0.013855496, 0.004379611, -0.0484977, 0.03453834, -0.008662282, -0.0003085635, 0.018612482, 0.001113079, -0.016355164, 0.06636236, -0.03190711, -0.035369255, -0.011404299, 0.059493467, 0.0063045626, -0.05905031, -0.0103102615, 0.00017051054, 0.004573491, 0.011148101, 0.027309384, 0.037391145, 0.0022382755, -0.0019041786, 0.0047119767, 0.0036283259, 0.0057956274, -0.00460465, 0.023847241, -0.0098671075, 0.02287784, 0.036643323, 0.03093771, -0.023445632, -0.0036837202, 0.045229435, 0.003462143, 0.012678368, -0.003898373, 0.009340862, -0.02531519, -0.005175904, 0.02735093, -0.007907535, 5.071499e-7, 0.017906204, 0.02899891, 0.055228107, 0.0091400575, -0.021659167, -0.002804336, -0.004694666, -0.048940852, 0.0123321535, 0.023113267, 0.019388001, 0.020551281, -0.040687107, 0.011515087, 0.01794775, 0.033707425, -0.027655598, -0.052790757, -0.0065399883, -0.04539562, -0.019415699, -0.007402062, 0.0018418601, -0.016244374, 0.005400943, -0.023708755, -0.02046819, 0.023805695, 0.02339024, -0.044786282, -0.021188315, -0.03348585, 0.017019896, -0.018293964, -0.04334603, -0.0063738055, -0.022240806, 0.0151503375, 0.039800797, -0.0034223283, -0.007900611, 0.05472956, -0.011175797, 0.011660498, 0.022725508, -0.02647847, 0.0097078495, -0.03066074, -0.0021915366, 0.043706093, -0.024387335, 0.029608248, -0.041074865, 0.010552612, -0.0076582604, -0.021617621, -0.0054597994, 0.012719913, -0.008226052, -0.03639405, 0.04896855, -0.027766386, 0.031408563, -0.08580575, -0.032959603, 0.021617621, -0.009603985, -0.039385337, 0.024788944, 0.049605586, 0.051045835, -0.014236332, 0.04799915, 0.0143886665, 0.043235242, -0.006778876, -0.012096727, 0.056419082, 0.03381821, -0.001609031, -0.020191219, -0.0033080776, 0.014637941, -0.038000483, 0.035867803, 0.027517112, -0.013467737, -0.017573837, 0.020578979, 0.023736453, 0.043816883, -0.0016955845, -0.012719913, 0.018280115, -0.021991532, 0.0043899976, 0.0037183417, -0.03171323, -0.02629844, 0.020925192, -0.10752031, 0.030079098, -0.053898644, -0.07489308, -0.02550907, 0.012214441, -0.0012160777, -0.009908653, 0.03066074, 0.0055013453, 0.038249757, -0.03248875, -0.03644944, 0.012512185, -0.0104348995, -0.058939524, -0.019277213, 0.022974782, 0.04063171, -0.0027887563, -0.03381821, -0.058219396, -0.01736611, 0.007582093, 0.0063322596, 0.0060102805, 0.011674346, -0.041545715, 0.042265844, 0.014333272, -0.03163014, -0.009479348, 0.045423318, 0.009327013, 0.0010334497, -0.034012094, 0.00218115, 0.018086236, -0.013121522, 0.038637515, 0.013793178, 0.07096008, 0.01668753, 0.012290608, -0.011854378, 0.023985727, 0.02027431, 0.0002475432, 0.014042452, 0.040022373, 0.046032652, -0.01843245, 0.0063807294, 0.036532532, -0.026533864, 0.017767718, 0.017989295, 0.015510401, 0.018363206, 0.029331276, 0.011328132, 0.010047139, 0.029497458, 0.015288823, 0.0069831423, 0.025453676, 0.007692882, 0.027475568, -0.053178515, -0.009292392, 0.0020166982, 0.031657837, -0.013626995, 0.0033392368, -0.050879654, 0.052707665, 0.047777575, -0.00012312246, 0.05148899, -0.007769049, 0.008994647, -0.02715705, 0.03182402, -0.0045873397, -0.011397375, -0.013052279, -0.010774189, -0.03423367, 0.019983489, 0.0031609365, -0.02629844, 0.06431277, -0.008558418, -0.05508962, -0.05400943, -0.0047916058, -0.02822339, -0.0012853206, 0.02686623, -0.040271647, -0.0572223, -0.020011187, -0.04481398, -0.009756319, 0.055892836, 0.047362115, -0.0027160512, 0.06586381, 0.020551281, -0.0007192602, 0.040770195, 0.021312952, -0.04248742, -0.005542891, 0.009022345, 0.029857522, -0.0024598527, -0.042404328, -0.04298597, 0.013897042, 0.03304269, -0.00072964665, -0.014804124, -0.0070558474, -0.001139045, -0.014077074, -0.034510642, 0.046198837, 0.008814616, 0.030217584, 0.013481585, -0.01581507, -0.03426137, -0.00819143, -0.023722604, 0.06519908, -0.0012195399, -0.019415699, -0.03035607, -0.055449683, 0.025425978, 0.019623427, 0.012920718, 0.020108126, 0.028638847, 0.032461055, 0.021769956, 0.026810836, 0.018529389, -0.028971212, 0.011882075, 0.035563134, 0.014970306, 0.123972416, 0.04356761, -0.019928096, 0.03667102, 0.004815841, -0.0034673363, 0.00819143, -0.038637515, 0.0018955233, 0.04772218, 0.0048019923, -0.00518629, -0.0024286932, 0.072954275, -0.027987964, 0.0012887827, -0.087799944, 0.021769956, -0.03229487, 0.040465526, -0.05664066, 0.026741592, -0.028015662, -0.042348932, 0.012172895, -0.051239718, 0.22279583, 0.032073293, 0.042625904, 0.030189887, 0.02444273, 0.028195692, 0.02988522, -0.0029428215, -0.0032371038, -0.0048746974, 0.039911583, -0.043512214, -0.020329705, -0.029303579, 0.011861302, 0.030854618, -0.03287651, -0.00087375834, -0.014471758, -0.016452104, -0.04450931, 0.040327042, -0.012581428, 0.019277213, -0.026118407, -0.01783696, 0.030716132, -0.011722816, 0.0024113825, -0.025273643, -0.0026277665, -0.043678395, 0.036781806, -0.011549709, -0.05605902, 0.03899758, -0.0019301447, -0.04860849, -0.021617621, 0.023777999, 0.016853712, -0.0426536, 0.016452104, 0.022143867, -0.02298863, 0.041379534, -0.012297532, -0.03043916, 0.049799465, -0.04617114, 0.06636236, -0.058717944, -0.0020236226, -0.021673014, -0.0378066, -0.008399159, -0.03257184, -0.050547287, 0.05171057, 0.005954886, 0.024387335, 0.025495222, -0.016715227, -0.033984397, 0.018266266, -0.024082666, 0.023487179, 0.004923167, 0.017006047, -0.005013183, 0.058164004, 0.0022659726, -0.02316866, 0.007879837, 0.00542864, 0.045201737, -0.017283019, 0.056419082, -0.021174466, -0.015094943, -0.015662735, 0.009804789, -0.016701378, -0.017767718, 0.046614293, 0.03775121, -0.048636187, 0.029109698, -0.034289066, -0.00035184028, 0.033679727, 0.012339078, 0.03838824, 0.004646196, -0.017906204 ]
ViT and ConvNeXT are commonly used for image classification, but for other vision tasks like object detection, segmentation, and depth estimation, we'll look at DETR, Mask2Former and GLPN, respectively; these models are better suited for those tasks. Image classification ViT and ConvNeXT can both be used for image classification; the main difference is that ViT uses an attention mechanism while ConvNeXT uses convolutions. Transformer ViT replaces convolutions entirely with a pure Transformer architecture. If you're familiar with the original Transformer, then you're already most of the way toward understanding ViT.
[ -0.0052266824, -0.0013103179, 0.016777905, -0.02563372, -0.030637914, -0.013604693, -0.033701707, -0.02846408, -0.006798699, 0.004457087, -0.028099343, 0.016544474, 0.062151197, -0.039946005, -0.009483164, -0.013962135, -0.01452383, -0.016281864, -0.060575534, 0.051821843, -0.018382749, -0.013801651, -0.017332306, -0.029529113, -0.025808794, 0.0018574236, -0.003331873, 0.008381658, 0.05926248, 0.020206433, 0.0041652974, -0.0062187673, 0.040821373, -0.028974714, 0.0070758993, -0.027720017, -0.0043622553, -0.047765967, -0.019535318, -0.02398511, 0.04741582, -0.0035306548, 0.009898964, -0.03691139, -0.09249732, 0.0108181015, 0.038808025, -0.058212038, -0.021811277, -0.036823854, -0.039537497, -0.010365828, -0.039566677, 0.018995507, -0.01860159, -0.0045883926, -0.019316476, -0.012328113, -0.01493963, 0.028259829, 0.04061712, 0.0044716764, 0.012809566, -0.052959822, 0.013196187, 0.027851323, -0.008695331, -0.013787061, -0.023810036, -0.0039792815, -0.04630702, -0.019535318, 0.013597398, -0.0052668033, -0.02706349, 0.046861418, 0.00084938144, -0.019710392, -0.014895862, 0.017594917, -0.0031659177, -0.018018011, -0.07884157, -0.0005183826, -0.060517173, 0.046978135, 0.018835023, -0.016063021, -0.013101355, -0.006594446, -0.007312978, 0.054068625, -0.034314465, 0.06150926, -0.013699524, 0.031834252, -0.031600818, 0.03837034, 0.01973957, 0.018018011, -0.018995507, 0.069737725, -0.023211867, 0.062734775, -0.0108181015, 0.012269755, 0.028930945, 0.0043731974, -0.0423095, -0.044468742, 0.03641535, -0.033964317, 0.008396247, -0.014377935, -0.000099561825, 0.043505836, -0.0059488616, 0.031484105, -0.06664476, 0.0052376245, 0.017011337, -0.0036911392, -0.01890797, -0.041609205, 0.014115324, -0.002306962, 0.016063021, 0.03305977, -0.0038516235, -0.032592904, 0.008731806, 0.010963996, -0.014531125, 0.022453215, -0.007717836, -0.027165618, 0.011481923, 0.0041397656, 0.015070936, -0.013349377, -0.011255786, -0.012160334, -0.013291019, 0.072072044, 0.008512964, -0.009300795, -0.038020194, -0.015844177, -0.044527102, -0.0056789564, -0.027661659, -0.011941492, 0.024889657, 0.032330293, -0.058270395, 0.000550753, -0.022467803, 0.023197278, -0.044410385, -0.010891049, 0.029689597, -0.007695952, -0.0174782, 0.051705126, -0.052317884, 0.057074055, -0.03524819, -0.027749196, -0.005919683, 0.00620053, 0.026275659, 0.002133712, -0.021504898, -0.049691778, 0.038749665, 0.0028723045, 0.08135096, 0.0030637914, -0.019666623, 0.01355363, -0.050362896, 0.009636354, -0.0031330914, 0.023182688, -0.004548271, -0.031484105, 0.04843708, -0.0049640713, 0.05476892, 0.025983868, 0.010686796, 0.03127985, -0.05669473, 0.016004663, -0.04797022, 0.0010048506, 0.0062661828, -0.04000436, 0.040763017, -0.030404482, -0.01973957, 0.018762074, 0.012247871, -0.0040194024, -0.012379176, -0.012444829, 0.02569208, 0.059174944, -0.01723018, 0.029704187, 0.01582959, 0.02230732, -0.020658707, 0.0015856944, 0.007922089, -0.013947546, 0.030550377, 0.04624866, 0.013597398, 0.0043038973, 0.055994436, 0.015902536, 0.04426449, 0.0113214385, 0.027544944, 0.037757583, 0.0038625656, 0.00787832, 0.01073786, -0.033935137, -0.014480062, 0.033730883, 0.021271465, 0.009723891, 0.013604693, 0.062734775, -0.018411927, -0.01493963, -0.015931714, 0.0042382446, -0.005419993, -0.01523142, 0.057657637, -0.026494501, -0.004683224, 0.047445, 0.011372502, -0.030316945, 0.017784579, -0.007068604, -0.023430709, 0.017084284, -0.0024710936, -0.04881641, -0.04656963, 0.028245239, 0.016442347, -0.0029634887, 0.008388952, -0.054039445, -0.007181673, 0.018528644, -0.020862961, 0.017084284, 0.07609874, 0.031367388, -0.033789244, 0.045519188, -0.032388654, -0.04061712, -0.051150728, -0.037057288, -0.059174944, -0.00084938144, -0.040500402, -0.04400188, 0.014859389, -0.012525071, 0.04601523, 0.00402305, -0.039391603, -0.022059297, -0.01113907, 0.034810506, 0.037670046, 0.0406463, -0.01776999, 0.05727831, -0.008213879, 0.03784512, 0.030141871, -0.035569157, -0.01949155, 0.01481562, -0.003709376, -0.02200094, -0.013954841, -0.016544474, -0.040529583, 0.0017261181, -0.017857527, -0.0030802046, -0.04204689, 0.009840606, -0.022380266, 0.026654985, -0.045081504, -0.011963376, 0.049224917, 0.037932657, -0.007163436, 0.008352479, 0.0047087558, 0.028726691, -0.026917595, 0.03723236, 0.034868862, -0.011036944, -0.021490308, -0.0094175115, 0.016398579, 0.036619604, -0.00861509, -0.029718777, -0.028070165, 0.050567146, 0.017828347, -0.037465792, -0.0067184567, -0.031950966, -0.050304536, -0.033643346, -0.019856285, 0.04295144, 0.013531745, 0.0069774203, -0.00987708, 0.031425744, 0.029470755, 0.0038224445, -0.0029251913, -0.04852462, 0.026334016, 0.046744704, -0.0036418997, 0.022059297, 0.038866382, -0.022628289, 0.005905093, -0.010052154, 0.04292226, 0.03729072, 0.026844649, 0.015960895, -0.0071196677, -0.016150558, -0.045023143, 0.0076740677, 0.03521901, -0.040500402, 0.061976124, -0.013925661, -0.020250201, 0.00092324073, -0.076273814, -0.026013048, -0.0049750134, -0.0026334017, 0.06349343, -0.0104168905, 0.005941567, 0.014166388, -0.066469684, 0.009235143, 0.020790013, -0.00649232, 0.055819362, 0.01865995, 0.047211565, -0.06285149, -0.02369332, 0.0013367614, -0.014363346, 0.034810506, 0.02227814, 0.0023580252, -0.052580494, 0.03726154, -0.026334016, -0.039683394, 0.023503657, 0.022146834, -0.02846408, -0.01610679, -0.040733837, -0.018966328, 0.018236853, 0.0033884074, 0.01890797, 0.01212386, 0.047328282, 0.001210927, 0.01667578, 0.04347666, -0.00861509, -0.027778376, -0.039362423, 0.01369223, -0.0003993871, -0.033176485, -0.009774953, -0.008593205, 0.019141402, -0.02738446, -0.0050698454, 0.029266503, -0.016063021, -0.014728083, 0.023430709, 0.023810036, -0.027997218, -0.0046795765, -0.0035999548, 0.032913875, 0.041638386, -0.07382278, 0.010395006, -0.041842636, -0.0096144695, 0.04423531, -0.030375304, -0.019695802, 0.036240276, -0.010519017, -0.029324861, 0.07300577, 0.0400919, 0.015931714, -0.046131946, 0.0010531783, 0.010606554, 0.018689128, -0.026552858, 0.00072400307, -0.02087755, 0.059583448, 0.00060591946, 0.002978078, 0.006663746, 0.003193273, -0.0025750438, -0.063668504, 0.054827277, 0.010657617, -0.019053865, -0.037640866, 0.025166858, -0.039829288, 0.021607025, 0.022745004, -0.061917767, -0.00858591, -0.010438775, -0.038749665, -0.05415616, 0.015537799, 0.02004595, 0.017594917, -0.005591419, 0.000026771131, 0.0030966178, 0.0095123425, -0.02057117, -0.062676415, -0.0070102466, -0.052113634, -0.021344414, 0.03971257, -0.01915599, -0.0014188272, 0.021869635, 0.023445299, -0.009964617, 0.02284713, -0.01496881, -0.000869442, 0.009541522, 0.020148076, -0.029966798, 0.017551148, 0.060692247, -0.009162195, 0.00858591, -0.009118427, 0.031454924, 0.01410803, -0.04061712, 0.029383218, 0.056052793, -0.020235613, 0.03615274, -0.039128993, -0.025779616, -0.027238565, -0.05141334, -0.005824851, 0.018426517, -0.03586095, 0.014786441, 0.013998609, 0.016252683, -0.020075127, -0.04140495, 0.008782868, 0.007469815, 0.0077834893, 0.0013522627, -0.052055273, -0.014297693, 0.04093809, -0.035102297, -0.07218876, -0.046744704, 0.028872587, -0.00118266, 0.036240276, 0.022963846, -0.019024685, -0.024145594, -0.06798699, 0.012670966, -0.023926752, 0.0006729399, -0.04709485, 0.0062661828, 0.035598338, 0.03498558, 0.030725451, -0.051996917, -0.011496512, -0.012349998, -0.030346124, -0.018689128, -0.02681547, 0.020483634, -0.037144825, 0.00010058765, 0.040412866, -0.00642302, -0.05614033, 0.00025052877, 0.0004069098, 0.015187652, 0.038282804, -0.039946005, -0.023795446, -0.006594446, -0.0060765194, 0.020673297, -0.01634022, -0.01552321, 0.057395026, 0.0049968977, 0.035189833, -0.015815, -0.00973848, -0.020396097, -0.06063389, -0.007134257, -0.0542437, 0.027836733, -0.06174269, 0.02795345, 0.025487827, 0.024597868, 0.0092935, -0.030141871, -0.043330763, -0.086194664, -0.0055731824, -0.012576134, -0.024101825, 0.0083087105, 0.018995507, 0.06460223, -0.027282333, 0.06396029, 0.051179904, 0.046919778, 0.005164677, -0.025341932, 0.008906879, 0.007943973, 0.007557352, -0.0032188047, -0.013042998, -0.014210156, 0.0042163604, -0.032330293, -0.038808025, -0.010730565, -0.020089718, 0.031454924, 0.0045045028, -0.011044239, 0.0021373592, -0.0013340259, -0.03807855, 0.032884695, 0.04741582, -0.015421083, -0.020104308, 0.01000109, -0.021679971, 0.08024216, -0.0026206358, -0.046365377, -0.018937148, 0.07370607, 0.036240276, -0.08584452, 0.036065202, 0.014997988, -0.016559063, 0.002133712, 0.004515445, 0.0013203482, -0.026552858, 0.0010650322, 0.0071999095, 0.021796687, -0.010839986, 0.01256884, 0.012539661, 0.018149316, -0.014086146, 0.063668504, -0.0068059936, 0.0018984565, -0.016238095, 0.06471895, -0.010263701, 0.012561545, -0.015158473, -0.033526633, -0.018528644, -0.022613699, 0.038778845, -0.010088627, 0.013254545, -0.009045479, 0.03186343, 0.06086732, -0.019010097, -0.0005753727, 0.011015059, 0.027501175, -0.055381678, 0.023737088, 0.031688355, 0.006605388, 0.028157702, -0.05418534, -0.00409235, 0.009796837, -0.012182218, 0.001715176, -0.033468273, -0.008760984, -0.028537028, -0.006959183, -0.038399518, 0.025152268, -0.008644269, 0.035627518, -0.0428639, -0.0020644118, 0.0055148243, 0.049837675, -0.056461297, -0.034898043, -0.009395627, -0.022803362, -0.006919062, -0.072655626, -0.010234523, -0.07312249, 0.008038805, 0.03758251, -0.02512309, -0.00014304533, 0.04601523, 0.0036127206, 0.033905957, 0.01143086, -0.00058403524, -0.009286206, -0.01693839, -0.0035926602, -0.029558292, -0.016967569, 0.022394856, -0.017711632, 0.0019622855, -0.022701235, -0.024875069, 0.0066163302, -0.0026169885, 0.010664912, -0.013371261, 0.025808794, -0.015377315, 0.0059269774, -0.047882684, -0.009935438, 0.022248961, -0.010672207, -0.028172292, 0.016763316, 0.009687416, 0.025589952, 0.009235143, 0.048641335, -0.014501946, 0.004803587, 0.045227397, 0.00267717, 0.03130903, -0.031425744, 0.0074260468, -0.0456359, 0.009702006, 0.039595857, -0.017974243, 0.029485345, 0.0046175714, -0.019097634, 0.028639155, -0.0079002045, 0.061334185, 0.063201636, -0.03358499, -0.0109202275, 0.014443588, -0.041346595, 0.006324541, -0.0028613624, -0.03664878, -0.020746244, 0.010891049, -0.057219952, 0.044702176, -0.009993795, -0.0076886574, 0.012641787, 0.038837202, -0.02987926, 0.027603302, 0.0256629, 0.024335258, 0.02706349, -0.044731352, -0.013042998, 0.009672827, 0.014917746, -0.011992555, -0.017259357, 0.040733837, 0.037378255, -0.026757112, -0.035715055, -0.057365846, -0.0029890202, 0.005419993, -0.002916073, -0.027749196, 0.033993494, -0.028391134, 0.023445299, -0.052492958, -0.027734607, 0.018193085, 0.012561545, -0.011576755, 0.009957322, 0.021213109, 0.06483566, 0.04709485, 0.012218691, 0.004752524, -0.0038297393, 0.020556582, -0.017361484, 0.019374833, -0.017361484, 0.042367857, 0.026654985, -0.0039683394, 0.03997518, 0.0349564, 0.049020663, -0.022920078, 0.038428698, -0.001344968, 0.0015866063, 0.0061421725, 0.014888567, -0.023678731, 0.01949155, -0.006590799, -0.013655756, 0.0540978, 0.05412698, -0.002892365, 0.0003437647, -0.008833932, -0.006835173, -0.028318185, -0.05363094, -0.013998609, -0.020921318, 0.034898043, -0.0010331178, 0.052317884, -0.015041756, 0.025473237, 0.019447781, 0.038516235, 0.030346124, 0.042367857, -0.017098874, -0.0003866213, 0.008264942, 0.019695802, -0.01113907, 0.014764557, -0.042105246, -0.039887644, 0.021373592, -0.0012337231, -0.021315234, 0.005047961, -0.010307469, -0.021067213, -0.04989603, 0.014589483, -0.03154246, -0.0054564667, 0.011977965, -0.014159093, -0.08000872, 0.022351088, -0.030404482, -0.012962756, 0.023926752, 0.06407701, -0.026654985, 0.032067683, 0.038195267, -0.011489218, 0.012204102, 0.05561511, -0.052347064, -0.003483239, 0.015625335, -0.034606252, 0.0076886574, 0.006102051, -0.05415616, 0.023197278, -0.0027811201, -0.0349564, 0.020541992, -0.009964617, 0.023912162, -0.0117299445, -0.000550753, 0.017273948, 0.017521968, -0.0146478405, 0.004329429, -0.035160653, -0.00016378974, -0.046627987, 0.010686796, 0.057132415, 0.016413169, -0.01890797, -0.024758352, -0.0327388, -0.016063021, 0.015742052, -0.018120138, 0.0062297094, 0.0417551, 0.01212386, 0.024962606, 0.046978135, -0.0050625503, -0.006579857, 0.033672526, 0.04706567, 0.04204689, 0.07884157, 0.061625976, 0.007214499, 0.014742672, 0.022030119, 0.008119048, -0.02678629, -0.0625597, -0.021782098, 0.016850853, -0.009081953, -0.0043221344, -0.004172592, 0.06915415, -0.0066710413, 0.0006474083, -0.101659514, 0.023897573, -0.027296923, -0.0023926753, -0.029572882, 0.028026396, 0.015289778, -0.00507714, 0.0068534096, -0.040558763, 0.2523397, 0.036036022, 0.02115475, 0.007017541, 0.027267743, 0.061859407, 0.009067363, -0.034781326, -0.012036324, 0.0070868414, 0.019447781, -0.009950027, 0.020235613, -0.0321844, -0.009577995, 0.00253857, -0.04420613, -0.017536558, -0.009782248, -0.0077688997, -0.02423313, 0.012561545, -0.05730749, -0.0057409615, -0.0032096861, 0.040763017, 0.02087755, -0.03892474, -0.010526312, -0.045285754, -0.016821673, -0.007856436, 0.049720958, -0.011883134, -0.04426449, 0.03448954, -0.032534547, -0.04718239, -0.032622084, 0.02423313, 0.023474477, -0.033409916, -0.0026972305, 0.0016932918, 0.0050333715, 0.019112222, -0.013444209, -0.0035561863, 0.03863295, -0.0015227773, 0.053222433, -0.015450262, 0.012058208, -0.05050879, -0.030696271, 0.021767508, -0.0082065845, -0.060050312, 0.048991483, -0.023328584, 0.03784512, 0.010643028, 0.015450262, -0.017346894, 0.003964692, -0.006565267, -0.018309802, 0.013830829, -0.0031950967, 0.016734136, 0.02736987, -0.012977345, 0.032767978, 0.00039756342, 0.04315569, -0.009133017, -0.005204798, 0.041317414, 0.012590724, -0.038808025, 0.013487977, -0.0037458497, -0.012116565, -0.07137175, 0.05357258, 0.01255425, -0.03387678, -0.020250201, -0.053543404, -0.015712872, 0.016880032, 0.03600684, -0.002886894, 0.04146331, 0.013517156 ]
The main change ViT introduced was in how images are fed to a Transformer:
[ 0.014497394, -0.008453815, 0.012238247, -0.052320123, 0.020591335, -0.033441134, 0.011310126, -0.00086112, 0.008122858, 0.052521575, 0.0292538, 0.0056298813, 0.014468615, -0.008252363, 0.016432779, 0.01690763, -0.0013553085, -0.04285185, -0.01828902, 0.00913012, -0.0360888, -0.00019774283, -0.074710146, -0.012856994, -0.036750715, 0.01938262, 0.05603261, 0.03490886, 0.053759072, 0.0076048365, -0.04089488, 0.018994104, 0.0033041828, -0.0143966675, -0.018130736, -0.003313176, 0.020375494, -0.019526515, -0.050909955, -0.046535555, 0.01666301, 0.003985884, 0.0015144921, -0.050766062, -0.025785936, 0.010468341, 0.019022884, -0.010482731, -0.018360967, -0.047974505, -0.0017986841, 0.010892831, -0.0008795565, -0.0023310946, -0.0029984065, -0.012432504, 0.004662189, 0.001745623, -0.028433599, -0.006165889, 0.01939701, 0.022188567, -0.005255755, -0.048262294, 0.012187883, 0.020591335, -0.03220364, 0.006417705, 0.011137452, -0.012597984, -0.04998903, 0.0025001708, -0.022519525, -0.0046334104, -0.017296147, -0.012914552, 0.013785115, 0.0039139367, -0.050938737, 0.025987389, -0.00538526, 0.025440589, -0.029066736, 0.012785047, -0.0371824, -0.016461557, 0.021915168, -0.013677194, 0.024318209, -0.046449218, -0.023411673, 0.014425447, 0.0025235538, 0.05655063, 0.02102302, 0.030879809, -0.0371824, 0.03309579, 0.00635655, 0.016475948, 0.032808, 0.103028625, -0.026375905, 0.08996299, -0.04642044, -0.025627652, 0.035369325, 0.009151705, -0.039196923, -0.0133678205, 0.036031242, -0.015526242, 0.0032106512, 0.0027645775, 0.021152526, 0.045010272, 0.028289704, 0.035858568, -0.070335746, -0.021684935, -0.017411262, 0.0008602207, -0.029728651, -0.03220364, 0.032088526, -0.042765513, -0.026663695, 0.043341093, 0.018965326, -0.014223994, 0.015166504, -0.019699188, 0.011187815, 0.059975322, 0.008741605, -0.034822524, -0.038937915, 0.029340135, 0.020332325, -0.007219918, -0.0065903785, -0.04806084, -0.026534189, 0.05649307, 0.0011592519, -0.009425105, 0.01967041, -0.058651492, -0.04889543, -0.015756473, -0.016475948, 0.009597778, -0.00058187434, 0.018922158, -0.0388228, -0.011871316, -0.045528293, 0.032577768, -0.02703782, 0.01256201, 0.06469507, 0.0033941169, 0.008245168, 0.08973275, -0.04912566, 0.03441962, -0.038132105, 0.0019084038, -0.010763326, -0.021742495, 0.02731122, -0.024994515, -0.023167051, -0.015080168, 0.006996881, -0.0028059473, 0.041499242, -0.017281758, 0.020663284, 0.024375767, -0.032865558, -0.028318483, -0.04503905, 0.0058565154, 0.00043190902, -0.005676647, -0.019022884, -0.023713851, -0.008547347, 0.007169555, 0.035944905, 0.056752082, -0.046823345, -0.019598462, -0.046276547, -0.0040290523, -0.030073998, -0.016634231, -0.009863984, -0.06009044, -0.002921063, 0.0075760577, -0.000059581413, 0.010878442, -0.051284082, -0.0043096473, 0.008101273, 0.06285322, -0.043283533, 0.028476767, 0.019051662, -0.011101479, 0.003496642, 0.036232695, 0.026188841, -0.01828902, 0.007306255, 0.0037808341, -0.0107993, 0.0022465566, 0.013339042, 0.026375905, 0.029239409, 0.0073206443, -0.010216526, 0.0012635756, 0.041125115, 0.033757705, 0.04290941, 0.036952168, -0.027426336, 0.03525421, 0.016231326, 0.007806289, 0.038937915, 0.05652185, -0.0060723578, 0.043830335, -0.0010792104, 0.040779766, -0.007129984, 0.03741263, 0.030419346, -0.010410784, 0.007511305, -0.007259489, 0.013094421, -0.0020630907, -0.038621347, 0.039513495, -0.052205008, 0.027527062, 0.044895157, 0.015425515, -0.033757705, -0.04831985, -0.0114036575, 0.047341365, -0.02372824, -0.020245988, 0.022260515, 0.009554611, 0.023699462, 0.00913012, 0.03139783, 0.02156982, 0.012259831, 0.03111004, -0.020562558, -0.048262294, -0.05514046, -0.055082902, -0.060781136, -0.010302863, -0.014907494, -0.041844588, 0.008122858, -0.022461968, 0.024965735, -0.032174863, -0.01830341, -0.0023490814, -0.02536864, -0.0017303341, 0.012720294, 0.029930104, -0.020792788, 0.047657933, 0.010122994, 0.024749894, 0.014950663, -0.026174452, -0.032606546, -0.017555157, 0.0016350038, -0.004802487, 0.012705904, 0.0030721526, -0.025167188, -0.029555978, -0.026951483, 0.0069501153, -0.0021620183, 0.029642314, -0.028476767, 0.032347534, -0.011641083, -0.021469094, -0.0007419572, 0.033498693, -0.04475126, -0.005442818, 0.025095241, 0.035023976, -0.025713988, 0.04285185, 0.06291077, 0.044837598, -0.0088279415, -0.027483894, -0.027354388, 0.018792652, 0.004622618, -0.046823345, -0.055600923, 0.044118125, 0.026821978, -0.06360147, -0.015425515, -0.009698505, -0.048118398, -0.011166231, -0.030419346, 0.08869671, 0.026073726, -0.0056838416, -0.03433328, 0.0074105784, -0.008504178, -0.007993353, 0.04288063, -0.04147046, 0.010137384, 0.0072918655, 0.0044175684, 0.01474921, 0.035829786, -0.06740029, 0.054248314, 0.01338221, 0.04503905, 0.034505956, 0.030160336, -0.04124023, -0.039024252, -0.01528162, -0.054277092, 0.036693156, 0.0022483552, -0.048722755, 0.0813293, -0.014447031, -0.015267231, -0.011367683, -0.02568521, -0.0043815947, -0.0025199566, 0.005205392, 0.042823073, -0.035023976, 0.009511442, 0.040405642, -0.019224336, 0.04619021, 0.007446552, -0.0645224, 0.050363157, -0.007158763, 0.04446347, -0.036491703, -0.010151774, 0.0024012434, -0.015885979, 0.024692336, 0.04400301, 0.024519661, -0.026016168, -0.047427703, -0.031743176, -0.02482184, 0.0086192945, -0.022318073, -0.047629155, -0.0041837394, -0.031484168, -0.0018742288, -0.007119192, 0.047168694, 0.0117418105, 0.021612989, 0.025929831, 0.006536418, 0.0057090237, 0.009655337, -0.017267367, -0.001827463, -0.027670957, 0.074710146, -0.0037844314, -0.04348499, -0.018504862, -0.02099424, 0.019569684, -0.029671093, -0.023354115, 0.046823345, -0.028016305, -0.01022372, 0.0042808685, 0.030476904, -0.01433911, -0.01338221, -0.04095244, -0.00026373207, 0.03519665, -0.04198848, -0.021771273, -0.021166915, 0.0047809025, -0.009194873, -0.027829241, -0.012849799, -0.00033253172, 0.0032322353, -0.005626284, 0.016087431, 0.014590926, 0.015655747, -0.008820747, -0.028188977, 0.030419346, 0.036664378, 0.010432368, 0.0076120314, 0.013619636, 0.03191585, 0.035628334, 0.048521303, -0.006173084, -0.027901188, 0.02076401, -0.039973956, 0.046823345, -0.01528162, -0.009712894, -0.022231735, 0.047197472, -0.0038959498, 0.04619021, 0.024246262, -0.03139783, -0.02375702, -0.0063925236, -0.029699873, -0.061241597, 0.024361378, 0.010633821, 0.0025901052, 0.015094557, 0.005705426, 0.02237563, 0.010065436, 0.010410784, -0.041125115, 0.021138135, 0.00048204736, -0.01051151, 0.009309989, -0.03306701, -0.024404546, -0.0015477677, -0.0008026628, -0.0075544734, -0.01474921, -0.017267367, -0.028735777, 0.007180347, 0.028591882, -0.018907767, -0.013482937, 0.04181581, -0.023828967, 0.03790187, -0.02896601, 0.020922294, -0.000032010958, -0.03381526, 0.030994926, 0.051255304, -0.03277922, 0.064349726, 0.0009191276, -0.019799914, -0.023310946, -0.080465935, 0.01666301, -0.009396326, -0.024217483, -0.021109357, -0.0074105784, -0.014576537, 0.0045398786, -0.047312587, -0.009741673, 0.023051936, -0.00069968816, -0.021267641, -0.05269425, -0.008360283, 0.07292585, -0.045988757, -0.08455254, -0.035685893, 0.021699326, -0.019368231, 0.019080441, 0.0015900368, -0.03657804, -0.030102778, -0.03004522, 0.017943673, -0.06394682, -0.030908588, -0.04584486, -0.014008152, 0.010194941, 0.034736186, -0.053154714, -0.035052758, -0.015123337, -0.025282305, -0.020245988, -0.041038778, -0.0063817315, -0.0067738444, 0.004471529, -0.016173767, 0.02182883, -0.004083013, -0.060378227, 0.01351891, -0.0037268735, 0.046218988, 0.042823073, -0.026102504, -0.025541315, -0.02459161, -0.034304503, 0.046478, 0.020591335, -0.040837325, 0.028030694, -0.033469915, 0.055054124, -0.012943331, -0.036232695, 0.010230916, -0.04095244, -0.008101273, -0.057557892, 0.0012428907, -0.03085103, -0.007083218, 0.04285185, 0.032117303, -0.029699873, 0.011504384, -0.02076401, -0.0678032, 0.03272166, -0.01661984, 0.004083013, -0.035599556, 0.016562283, 0.06970261, -0.019540904, 0.059399746, 0.06170206, 0.018994104, 0.017943673, 0.004298855, -0.014245578, -0.025440589, -0.007216321, 0.014267162, -0.034793746, -0.026303956, 0.00200913, -0.055198018, -0.030620798, -0.032117303, 0.048463747, 0.045585852, -0.028347261, -0.0044571394, -0.017353704, -0.01528162, -0.043024525, 0.018893378, 0.051715765, 0.0026440658, 0.0065687946, -0.0006709092, 0.012583594, 0.082077555, -0.062047407, -0.050766062, -0.008273947, 0.06469507, -0.010964778, -0.044923935, -0.0012240045, -0.008331505, -0.029699873, -0.013353431, 0.0010351427, -0.0169508, -0.000024521123, -0.0014443434, 0.011324516, 0.013159174, -0.043743998, 0.037355073, 0.013195147, 0.0221454, -0.0037196788, 0.02237563, 0.021886388, -0.0016278091, 0.038362335, 0.051197745, -0.017022748, -0.04124023, -0.03879402, -0.0064644706, -0.009151705, -0.022836095, 0.031887073, 0.0058852946, 0.01022372, 0.014921884, 0.017886115, 0.05436343, -0.0061371103, 0.008245168, -0.004744929, 0.0045578657, -0.05879539, 0.034505956, 0.03980128, -0.012216663, 0.041671913, -0.03418939, -0.0073817996, -0.016245715, 0.0053241053, 0.0000199401, -0.049039323, 0.0048636417, -0.016634231, 0.017727831, -0.031081261, -0.014159242, 0.002886888, 0.0027537853, -0.010712963, -0.021253252, 0.029138682, 0.015713304, 0.001819369, -0.01803001, -0.020591335, 0.024462104, -0.023843357, -0.0123533625, 0.016475948, -0.06624913, -0.009180483, 0.04020419, -0.014706042, -0.00429166, -0.020087704, 0.01803001, -0.02731122, 0.048722755, -0.016821293, -0.031599283, -0.0022411605, 0.025253525, -0.038678903, -0.02208784, 0.05384541, -0.06198985, -0.0026116893, 0.02456283, 0.0023149066, -0.015497463, 0.005791763, 0.022231735, 0.008842331, 0.0013364223, 0.0016952598, 0.035110313, -0.032548986, -0.030620798, -0.011245374, 0.024246262, 0.009482663, 0.029440861, 0.036923386, 0.078508966, 0.0062342393, 0.007914211, 0.0009721888, -0.009302794, 0.0034426814, 0.0036189526, 0.041355345, -0.029282577, -0.0049967445, 0.014562147, -0.0012150111, 0.018922158, -0.020778399, -0.00081480393, 0.032405093, -0.04785939, -0.00087146246, 0.027742904, -0.014878715, 0.04964368, -0.017857336, -0.008662463, -0.003791626, -0.03795943, 0.00012422162, -0.004903213, -0.044837598, -0.05165821, 0.028922841, -0.053010818, 0.005381663, -0.005849321, 0.004874434, 0.010072631, -0.0048600445, -0.0018175703, 0.021181304, 0.035455663, -0.019339452, 0.009770452, -0.060147997, 0.024634778, 0.0034750577, 0.010324447, -0.043830335, -0.028505547, -0.0030325814, 0.034563515, -0.014382279, -0.012065574, -0.025526926, -0.016231326, 0.037009723, 0.015770862, -0.0062450315, 0.040578313, -0.028836504, 0.026145672, -0.031656843, 0.006651534, 0.0080077415, 0.042650398, 0.009173289, 0.0066767153, 0.013763531, 0.06469507, 0.008727215, -0.008770384, -0.005831334, 0.043053303, 0.06837878, -0.022231735, 0.0030703538, 0.004924797, 0.013598052, 0.039657388, -0.0043708025, -0.008166026, 0.040607095, 0.021224473, -0.023713851, 0.024749894, 0.0039319233, 0.011511578, -0.0037664445, -0.011583526, -0.029555978, 0.019727968, 0.03744141, -0.006417705, -0.00621985, 0.03111004, -0.007374605, 0.00033388074, -0.026562968, 0.044981495, -0.009576194, -0.087487996, -0.018360967, 0.021325199, 0.01935384, 0.03686583, 0.0043096473, -0.0035613945, 0.039455935, 0.02263464, -0.009554611, 0.029282577, -0.02211662, 0.009878374, 0.0050363154, 0.04785939, -0.007237905, -0.02103741, -0.0039103394, -0.027958747, -0.06567355, 0.05105385, -0.0082811415, -0.032376315, 0.034534734, -0.038592566, -0.012461284, -0.063543916, 0.047916945, -0.059399746, -0.0023760616, 0.035599556, -0.034477178, -0.03162806, 0.009302794, -0.029613536, -0.0029750236, 0.026332736, -0.0057809707, 0.015166504, 0.0638317, 0.030620798, -0.01994381, 0.05790324, 0.031656843, -0.022864873, -0.02102302, -0.013410989, -0.019497735, 0.017655883, -0.06222008, -0.022965599, 0.04069343, 0.05021926, 0.004377997, -0.023900915, 0.023857746, 0.01474921, -0.055859935, -0.008489789, 0.0118929, 0.0050075366, -0.018749483, 0.008964642, 0.003791626, -0.01716664, -0.06285322, -0.062450312, 0.073328756, -0.008094079, -0.009698505, -0.0183178, -0.014159242, -0.01433911, -0.014936273, -0.01716664, 0.017281758, 0.058104694, 0.043571323, 0.020548167, 0.041384123, 0.0068817656, -0.006122721, 0.08904206, 0.015051389, 0.020648895, 0.09168972, 0.08875427, 0.034045495, 0.011216594, 0.029023567, 0.041873366, 0.0013049453, -0.012648347, -0.01661984, 0.003975092, -0.06193229, -0.045643408, -0.0037484576, 0.03490886, -0.028735777, -0.046276547, -0.07131423, 0.0145261735, -0.03413183, -0.016634231, -0.018821431, 0.005525558, 0.0060399813, -0.00040987515, 0.004104597, -0.054507323, 0.24473616, 0.026937094, 0.007532889, 0.0377292, 0.016922021, 0.07787583, 0.0072415024, -0.01268432, 0.0054608053, -0.025023295, 0.004075818, -0.02539742, 0.0030649577, -0.0005715319, -0.0048132786, 0.014159242, -0.023771409, -0.030361788, -0.029296968, -0.026059335, -0.042189933, 0.037268735, 0.015828421, 0.05243524, 0.027987525, -0.013209537, -0.022994379, 0.003946313, -0.02318144, -0.0339016, 0.009137316, 0.00777751, 0.028750168, -0.004259284, -0.00579536, 0.053384945, -0.019008493, -0.021526651, -0.031282715, 0.011849731, -0.039312042, -0.025239136, 0.03580101, -0.01720981, 0.003975092, 0.06469507, 0.016202547, -0.008799163, 0.04152802, -0.024922568, 0.03243387, -0.032088526, 0.01215191, -0.018778263, -0.0018706315, -0.009367547, -0.048262294, -0.01636083, 0.06538577, 0.022332462, 0.0039391182, 0.047168694, -0.009482663, -0.006899752, 0.008489789, -0.006701897, -0.023382895, 0.028707, 0.0017726033, -0.018663147, 0.005755789, 0.0056011025, 0.003838392, -0.039139368, 0.009993489, 0.037355073, -0.02568521, 0.042995747, 0.015900368, -0.026721252, -0.0174976, -0.020792788, 0.014209605, -0.01459812, 0.0041441685, 0.024174314, -0.013828284, 0.00066506345, 0.016375221, 0.038937915, 0.021987114, 0.050190482, 0.0075544734, -0.019051662, -0.013540494 ]
An image is split into square non-overlapping patches, each of which gets turned into a vector or patch embedding. The patch embeddings are generated from a convolutional 2D layer which creates the proper input dimensions (which for a base Transformer is 768 values for each patch embedding). If you had a 224x224 pixel image, you could split it into 196 16x16 image patches. Just like how text is tokenized into words, an image is "tokenized" into a sequence of patches.
[ 0.0010116387, -0.0067347502, -0.028308056, -0.037706044, 0.011608442, -0.02489968, -0.013234194, -0.020735472, -0.023658974, 0.046690464, 0.054077655, -0.01215749, 0.014410726, -0.0127350595, -0.025099333, 0.011337483, -0.03200165, -0.07033518, -0.03950293, -0.0010998785, -0.023773063, 0.015886737, -0.05650202, -0.012143229, -0.023316711, 0.012742191, 0.027923008, 0.0023798018, 0.071304925, 0.022974446, -0.017355619, 0.027537962, -0.0041142944, -0.023373755, -0.02315984, -0.037164126, 0.0041285553, -0.013669155, -0.013319761, -0.043210786, 0.017155966, 0.008192936, 0.010759913, -0.054591052, -0.028849972, 0.017056137, 0.032258347, -0.024343502, -0.0052337814, -0.05165329, 0.00455995, -0.01244271, -0.003693595, -0.009754513, 0.018011624, 0.009205466, 0.005650915, -0.025655512, -0.052337814, 0.009269641, 0.041499466, 0.0053478694, 0.001324489, -0.058527082, 0.0027024567, 0.015544474, 0.009376598, -0.01852502, -0.025798121, -0.0028058488, -0.057871077, 0.00781502, -0.037677523, -0.044665404, -0.021477044, -0.029106671, 0.0031017642, 0.028136924, -0.045121755, 0.04774578, 0.006381791, 0.0061001363, -0.032372437, 0.014945513, -0.00069522305, -0.018068668, 0.040187456, -0.01852502, 0.0062142243, -0.04084346, -0.04620559, 0.03126008, -0.010681478, 0.037392303, 0.0067240545, 0.048173606, -0.030661117, 0.057072464, -0.011636964, -0.0126994075, 0.031659387, 0.07820724, -0.035224635, 0.05213816, -0.010360606, 0.015373342, 0.035110544, 0.00030371442, -0.025669774, -0.011109307, 0.0069593606, -0.0003698943, -0.0017077529, -0.015273515, -0.04078642, 0.028778668, -0.0015802954, -0.0027987184, -0.061721545, -0.014310898, -0.042212516, 0.0011337483, -0.022646444, -0.031431213, 0.048715524, -0.0005000258, -0.001541969, 0.04720386, -0.022560878, -0.00025513794, 0.027880225, -0.0029627196, 0.017384142, 0.06622802, -0.020906605, 0.0070698834, -0.026710825, -0.00090869213, 0.024985246, -0.031374168, 0.006453096, 0.006114397, 0.0077080624, 0.06662732, -0.017498229, 0.012257317, 0.029776936, -0.058213342, -0.055218533, -0.008692071, -0.00782215, -0.006631358, 0.006171441, 0.0033049833, -0.075925484, -0.014596119, -0.037420824, 0.011508615, -0.016243262, -0.012827756, 0.01143731, 0.035367243, -0.015701344, 0.064744875, -0.0024956723, 0.02042173, -0.007487017, -0.04443723, -0.01130183, -0.03824796, 0.0044494276, 0.005258738, 0.015430386, -0.002271062, 0.0023584105, 0.041984342, 0.06520122, 0.00506265, 0.034254886, 0.0033352878, 0.00036320946, -0.033085484, -0.0018646239, 0.061778586, -0.0026953262, 0.009590512, -0.0061999634, 0.0046383855, -0.024671504, 0.0075797136, 0.003198026, 0.04791691, -0.02880719, -0.008271371, -0.018653369, 0.0122715775, -0.01809719, -0.017498229, 0.014603249, -0.010838348, -0.032372437, 0.073301464, -0.011743921, 0.016671091, -0.026368562, 0.0036222902, 0.012086185, 0.049884927, -0.03254357, 0.01419681, 0.012535406, -0.008178675, -0.0019002763, 0.001959103, 0.053792436, -0.03445454, 0.0012781408, 0.019423462, 0.00012901735, 0.014517683, 0.0012469449, 0.020336164, 0.025455859, 0.016671091, -0.0061857025, 0.005964657, -0.011052264, 0.03097486, 0.013091585, 0.018025884, -0.020735472, 0.018653369, -0.0041891644, 0.041613556, 0.0033388531, 0.03921771, 0.0023405843, 0.05111137, 0.039645538, 0.0060252664, 0.033370703, -0.00448508, 0.041014593, 0.009569121, 0.007893455, 0.0074014515, -0.0064495304, 0.0016721005, -0.015501691, -0.01620048, -0.047232382, 0.011508615, 0.030233288, 0.033541836, -0.04052972, 0.0005797982, 0.019166764, 0.020036684, -0.009583382, -0.015872477, -0.012421318, 0.025869427, 0.037306737, -0.021377217, 0.02274627, 0.027865965, -0.0031516778, 0.040729374, -0.019423462, -0.0527086, -0.025869427, -0.07843542, -0.04734647, 0.0015651431, -0.05213816, -0.044922102, -0.0063924864, -0.076039575, -0.025726818, -0.02243253, -0.005886222, 0.028322317, -0.03645108, 0.04620559, 0.026126124, 0.017740665, -0.06582871, 0.047089774, -0.025455859, 0.029149454, -0.0061357887, -0.0072267544, -0.034254886, -0.0030108504, -0.0077223233, -0.003017981, -0.002657891, -0.03288583, -0.03416932, 0.018054407, 0.0071804062, 0.0126994075, 0.028065618, 0.04187025, -0.022917403, 0.02244679, 0.0070663183, -0.011266178, 0.039303277, 0.0503698, -0.04851587, 0.04241217, 0.008834681, 0.029163714, -0.037677523, 0.04965675, 0.051253982, 0.017526751, -0.002918154, -0.034511585, -0.043068174, 0.015088122, 0.0076652793, -0.073985994, -0.015031078, 0.04241217, -0.014289507, -0.045264367, -0.03853318, -0.03448306, -0.04848735, -0.013112976, -0.012863409, 0.07290216, 0.022518095, 0.0018432323, -0.05541819, -0.014104114, -0.00912703, 0.035310198, 0.018895805, -0.066056885, 0.0315453, 0.019223807, 0.036878906, 0.046604898, 0.019822769, -0.06662732, -0.0059575266, 0.006859534, 0.037991263, 0.038162395, 0.032771744, -0.008770506, -0.040700853, -0.0008908659, -0.053050864, 0.0048309085, 0.039331798, -0.033969667, 0.02244679, 0.009476424, -0.01910972, -0.037078563, -0.03214426, -0.038875446, -0.0101253, 0.022903142, 0.041670598, -0.061436325, 0.0029555892, -0.010731392, -0.034511585, 0.023359494, -0.033627402, -0.06754003, 0.018696152, 0.03485385, 0.025356032, -0.07136197, -0.005051954, 0.031973127, -0.01839667, 0.035281677, 0.05079763, 0.023060013, 0.0033566793, -0.024001239, -0.008820419, -0.0082143275, 0.025384553, -0.0043032523, -0.026710825, 0.009832949, -0.05367835, -0.006977187, 0.04617707, 0.016585525, 0.018624846, 0.01476012, 0.050683543, -0.019651638, -0.010795565, 0.0034975067, 0.009583382, -0.02519916, -0.038019788, 0.061493367, 0.015045339, -0.015259254, -0.018824501, 0.01432516, -0.024357762, -0.0064245737, -0.010624434, 0.035680983, 0.0023298885, -0.024785591, 0.038105354, 0.005658046, -0.014246725, -0.01809719, -0.061778586, 0.03516759, 0.048658483, -0.077922024, 0.033228096, 0.02053582, -0.017327096, 0.009889993, 0.011052264, -0.018282583, -0.009633295, -0.012250186, -0.04341044, 0.04418053, 0.04617707, 0.004428036, 0.029035365, -0.04244069, 0.012164621, 0.02849345, -0.0027773269, 0.014831425, -0.0060395272, -0.0018913632, -0.011936445, 0.035367243, 0.0061393543, -0.028593276, 0.019138241, -0.030147722, 0.03345627, -0.03211574, -0.00035028544, -0.033056963, 0.039474405, -0.03724969, 0.017284313, -0.013048802, -0.02937763, -0.019166764, 0.018724674, -0.012428449, -0.021534087, 0.016813701, 0.0054405658, -0.010517476, 0.012649494, 0.023402277, 0.02966285, -0.0062641376, 0.027880225, -0.020763995, 0.011494354, 0.010660087, 0.025370292, 0.017726405, 0.0037328128, 0.033056963, -0.049314488, 0.034825325, 0.015858216, -0.011665486, -0.022275658, -0.026240213, -0.008078848, -0.0035777246, -0.036080293, 0.0048843874, 0.026126124, -0.0414139, 0.03328514, -0.02301723, 0.024543155, -0.01736988, -0.06012431, 0.00090200733, 0.07626775, 0.02980546, 0.060295444, -0.028564753, -0.019936858, -0.02156261, -0.04187025, 0.028407883, -0.05427731, -0.011401658, -0.022532357, -0.0015660344, -0.015088122, 0.02649691, 0.009091378, 0.023801584, 0.009996951, -0.005650915, -0.024985246, -0.033228096, -0.022161571, 0.044808015, -0.06377512, -0.102565005, -0.034226365, 0.030575553, -0.033770014, 0.023302449, 0.021890612, -0.031802, 0.021220345, -0.044636883, 0.01679944, -0.012756451, 0.013476631, -0.061493367, 0.0039895107, 0.02823675, 0.054049134, 0.010752783, -0.034397498, -0.03793422, -0.019594593, -0.019794248, -0.030489987, -0.04418053, -0.009205466, -0.045863327, 0.0011774226, 0.021063475, 0.0031588082, -0.03747787, 0.004042989, -0.016271785, 0.018040147, 0.048572917, -0.058099255, 0.00701997, -0.010645825, -0.020378947, 0.042355128, 0.040330067, -0.049143355, 0.02287462, -0.036878906, 0.07056335, -0.028849972, -0.018139973, -0.027281264, -0.01955181, 0.023559147, -0.04746056, 0.024842637, -0.06354695, 0.013048802, 0.0043638614, 0.018881544, -0.05921161, -0.010731392, -0.050769106, -0.054762185, 0.037135605, -0.0093338145, -0.007829281, -0.009233988, -0.017384142, 0.061778586, -0.018168496, 0.037363783, 0.048915178, 0.006859534, -0.027409613, -0.018924328, 0.014959773, 0.0067775333, 0.002563412, -0.025398815, -0.0022960186, -0.00053077604, 0.0030875034, -0.061436325, -0.033684447, 0.0018842326, 0.04734647, 0.04934301, -0.013776111, 0.03513907, -0.017341359, -0.017184487, -0.048430305, 0.009590512, 0.0194092, 0.0018325365, 0.010938176, 0.0020214946, 0.02648265, 0.0414139, -0.028564753, -0.015187949, 0.0018245148, 0.05675872, -0.027167177, -0.036992997, 0.014289507, -0.010595912, -0.04244069, -0.01548743, -0.0014572944, -0.027152916, 0.029177975, 0.028835712, 0.008777636, 0.012385665, -0.020307643, 0.03978815, -0.012342882, -0.005094737, -0.012913322, 0.02937763, -0.00042872087, -0.01476012, 0.06560053, 0.07210354, -0.032343913, -0.00354742, -0.02270349, 0.012478362, -0.0096047735, -0.034939412, 0.03705004, -0.032914355, 0.000560635, -0.01071, 0.020735472, 0.06582871, -0.030775206, -0.010553129, 0.01722727, -0.0005543958, -0.05829891, 0.013148628, 0.015701344, -0.010617304, 0.029063888, -0.021405738, -0.007501278, 0.017598055, 0.031944606, -0.0013949026, -0.06588575, 0.0052623036, -0.020763995, -0.016984833, -0.0367363, -0.010588782, -0.008734853, 0.025741078, -0.00911277, -0.026454128, 0.023673235, 0.02969137, -0.032087218, -0.041356858, -0.03097486, 0.02621169, -0.031687908, 0.004021598, -0.009868601, -0.07512687, 0.026282996, 0.012150359, 0.0182398, 0.03126008, -0.025669774, 0.041784685, -0.0048558656, 0.011194874, -0.02504229, -0.006863099, -0.01796884, 0.018910067, -0.013975766, 0.015515951, 0.05399209, -0.018325366, -0.0014038157, 0.0069593606, -0.032315392, -0.008314154, -0.017712144, 0.026610998, 0.021220345, 0.019437723, -0.000779452, 0.0414139, -0.02849345, -0.027010307, -0.019566072, -0.020435993, 0.010210865, 0.020435993, 0.05818482, 0.06873795, 0.017983103, 0.023202622, 0.00477743, 0.011251917, 0.03183052, 0.0061999634, 0.02142, -0.043353394, -0.0036026814, -0.023929933, -0.0097616445, 0.010767044, -0.018710412, -0.008613635, 0.03645108, 0.011023741, -0.007800759, 0.056330893, -0.036422554, 0.026668042, 0.020920865, 0.0066705756, 0.021049215, -0.023944193, -0.0055546537, -0.009447902, -0.046348203, -0.023502104, 0.023972716, -0.031459734, -0.0077651064, -0.05516149, -0.03185904, 0.021006431, 0.018981371, 0.013319761, 0.011751052, 0.04415201, -0.020093728, 0.0061001363, -0.0014938382, -0.030347377, -0.019138241, 0.02491394, -0.01664257, -0.03573803, 0.010203735, 0.028165447, 0.01143731, -0.0032978528, -0.021149041, 0.012563928, 0.017669361, 0.035994727, -0.03513907, 0.028208228, -0.03955997, 0.051168416, -0.014318029, 0.0065636183, 0.003779161, 0.080717176, 0.006107267, 0.011408788, 0.017469706, 0.027823182, -0.002222931, -0.023616191, -0.0021498436, 0.054904792, 0.030575553, -0.007437104, 0.015958043, -0.0025723253, 0.041756164, 0.030062156, 0.03254357, -0.02040747, 0.046861596, 0.011644094, -0.07586844, 0.012635233, 0.041299812, 0.014467769, 0.0072588413, 0.046947163, -0.012727929, 0.034026712, 0.0020678428, 0.0034279842, 0.0019983205, 0.020307643, 0.022375485, -0.014874208, -0.01403994, 0.0125425365, 0.001959103, -0.07495574, -0.013683415, 0.014539074, 0.04746056, 0.00984008, 0.018681891, -0.024101065, 0.012998888, 0.022090266, -0.0283651, 0.02504229, -0.023673235, 0.011038003, 0.008235719, 0.008577983, -0.016314566, -0.007262407, -0.03448306, -0.0543914, -0.041756164, 0.020792516, 0.017027617, -0.06731185, 0.019523289, -0.0020874518, -0.025070813, -0.05108285, 0.03285731, -0.0715331, -0.014974034, 0.037306737, -0.0170704, -0.02502803, 0.01563004, -0.018938588, 0.008121631, 0.0312886, 0.01620048, 0.01926659, 0.004663342, 0.05909752, 0.023316711, 0.06503009, 0.021748003, 0.001238923, 0.001987625, 0.013733328, -0.024072543, 0.012720799, -0.05587454, -0.041328333, 0.022147309, 0.0055689146, -0.009661817, -0.01692779, 0.052879732, 0.03311401, -0.027637789, 0.007686671, 0.0625772, -0.006702663, -0.0028842844, 0.013248455, 0.025099333, -0.01695631, -0.04902927, -0.0527086, 0.051453635, 0.013740459, -0.059725005, 0.0034689847, -0.040444154, 0.015002556, 0.02839362, -0.022888882, 0.023359494, 0.06833864, 0.01838241, 0.02315984, 0.029434673, 0.012620972, -0.016186219, 0.06092293, 0.008192936, -0.0049164747, 0.06691254, 0.054904792, -0.03188756, 0.02502803, -0.006527966, 0.03779161, 0.0049735187, -0.021947656, -0.008064587, 0.016086392, -0.05268008, -0.039160665, 0.013783243, 0.009597643, -0.009825819, -0.026668042, -0.07301624, 0.016514221, -0.08311302, 0.005372826, -0.021947656, 0.025484381, -0.028821452, -0.011558528, 0.0030875034, -0.038019788, 0.24049725, 0.046833076, 0.06035249, 0.0043068174, 0.050740585, 0.03650812, 0.035709508, -0.005654481, 0.009925646, -0.036108814, -0.0050911717, 0.019066937, 0.005757873, 0.0043068174, -0.004748908, 0.01836815, -0.04443723, 0.0019377114, -0.02387289, -0.023174101, -0.047004208, 0.013048802, 0.033028442, 0.04284, 0.005244477, 0.011066524, -0.011751052, -0.040330067, -0.0033869839, -0.034026712, 0.0053942176, -0.006353269, 0.04617707, -0.030632596, -0.040757895, 0.027252743, 0.0024635852, -0.05775699, 0.016685352, -0.0022122352, -0.0046276897, -0.030518508, 0.037278216, 0.0064067477, -0.0019484072, 0.012663755, -0.028878495, 0.019993901, 0.022917403, -0.07004996, 0.027124394, -0.05473366, 0.032657657, -0.045264367, -0.0063603995, 0.0036294207, -0.05921161, -0.054933313, 0.030147722, 0.0327147, 0.009419381, 0.029605806, -0.019594593, -0.03662221, 0.036108814, 0.033056963, 0.020236338, 0.008920246, -0.0040322933, 0.0023352364, -0.0063639646, 0.011087916, -0.007262407, -0.03559542, 0.07255989, -0.00984721, -0.022774793, 0.039274752, 0.007836412, -0.037734568, 0.00089844206, -0.029135192, -0.03513907, -0.03097486, 0.003978815, 0.030432941, -0.023830106, -0.018981371, -0.003117808, 0.048373263, 0.018795978, 0.025612729, 0.01809719, -0.018425193, 0.003121373 ]
A learnable embedding - a special [CLS] token - is added to the beginning of the patch embeddings just like BERT. The final hidden state of the [CLS] token is used as the input to the attached classification head; other outputs are ignored. This token helps the model learn how to encode a representation of the image.
[ 0.0050517195, 0.029519355, -0.008737908, -0.0022964058, 0.0010567944, -0.029011944, -0.056173332, -0.006215779, -0.023684133, 0.03742899, 0.041518122, -0.010461612, 0.029026868, -0.05026349, -0.0048577096, 0.031399757, -0.038801983, -0.021699263, -0.06590368, -0.034772545, 0.017475815, 0.020579975, -0.061784696, -0.0234752, -0.021744033, 0.022251444, 0.04411487, -0.011282423, 0.059605815, 0.062680125, 0.040622693, -0.013550846, 0.0058762617, -0.049457602, -0.030504327, -0.04915913, 0.008999075, -0.009334861, -0.022639465, -0.053039324, 0.019535305, 0.0093572475, -0.037846856, -0.050621662, -0.024027381, -0.0066373777, 0.0005577785, -0.019251753, -0.017192263, -0.003117217, -0.010319835, -0.014767139, 0.044801366, -0.037637923, 0.0040406296, -0.04345822, -0.014013485, -0.002744121, -0.003999589, -0.0110809505, 0.05438247, 0.039936196, -0.023534894, -0.03459346, 0.009163237, -0.005103953, 0.012349477, 0.0020781446, -0.039816804, -0.024131848, -0.048293546, 0.005182303, -0.039428785, -0.036832035, -0.014282115, -0.03113113, -0.008752832, 0.018416017, 0.03522026, 0.04859202, -0.015147697, 0.02526606, 0.029295497, 0.0080439495, -0.0071820975, -0.048054762, 0.020430736, -0.025489917, -0.008737908, -0.030504327, -0.006525449, 0.0424434, -0.034145746, 0.016953481, 0.029877527, 0.009454252, 0.02611672, 0.041518122, 0.03868259, 0.015849117, -0.0038801983, 0.077603966, -0.0017861971, 0.04280157, -0.040115282, -0.0049472526, 0.008678213, -0.011170493, -0.045308776, -0.026385348, 0.0058799926, 0.025012355, 0.0033914426, -0.043935783, 0.004100325, 0.050084405, 0.021400785, 0.031041587, -0.029071638, -0.029459659, -0.002639654, 0.027265854, -0.014744753, -0.031429607, 0.03545904, -0.05118877, -0.0063575557, 0.023131952, -0.04241355, 0.01589389, 0.007637275, 0.008819989, -0.0037421528, 0.0292358, 0.009021461, 0.012550949, -0.012924045, 0.014170186, -0.031578843, -0.022400683, 0.009737805, 0.032325037, -0.008946842, 0.05181557, -0.029429812, 0.023579666, 0.0038615435, -0.019415915, -0.030414784, -0.012916583, 0.0046674307, 0.01613267, -0.0053390036, -0.013200136, -0.03047448, -0.034235287, -0.014461201, 0.017535511, -0.024519868, 0.0014802583, -0.0029399963, 0.001438285, -0.054352622, 0.013386684, -0.021236623, 0.036802188, 0.007428341, -0.015923737, 0.0022031318, -0.04477152, -0.010461612, 0.0019270408, 0.035697825, 0.038384113, 0.01356577, 0.014065718, 0.05656135, -0.0137075465, 0.033608485, -0.018207084, -0.018207084, -0.052412525, 0.02359459, 0.030802805, -0.04166736, -0.0033205543, -0.0032123565, 0.01555064, -0.037757315, 0.029056715, 0.01787876, 0.0771861, -0.005663597, 0.020535203, -0.06196378, -0.00003229612, -0.034115896, 0.05539729, 0.0067455755, -0.005178572, -0.028265752, 0.053307954, -0.04357761, 0.022087282, -0.03486209, 0.07396255, 0.037727468, 0.038533352, -0.011685367, 0.04760705, 0.0353695, -0.018072769, 0.0060143075, 0.01298374, 0.05426308, -0.029549202, -0.013804551, -0.00085672166, -0.0031657193, 0.010297449, 0.016998254, 0.029280573, 0.012916583, 0.00028961577, -0.012192776, -0.0030649835, -0.010834708, -0.0029661132, 0.01710272, 0.035667975, 0.0334294, 0.03510087, -0.03898107, 0.064470984, 0.01426719, 0.022102207, 0.024355706, 0.048054762, 0.017416121, -0.006439637, 0.029399963, -0.007551463, 0.036055997, 0.06924661, 0.0017712732, -0.02841499, -0.04680116, 0.0000350069, -0.015520793, -0.019341296, -0.048890498, 0.05566592, 0.009543795, 0.039906345, -0.024982506, -0.012647954, 0.033369705, 0.035399348, -0.010200445, -0.04653253, -0.0042532943, 0.014811911, 0.00765593, -0.03525011, 0.025922708, 0.033369705, 0.027310627, 0.0046040043, -0.013618004, -0.052800544, -0.049069583, -0.09885551, -0.09079664, -0.02037104, -0.052382678, -0.0150208445, -0.01574465, -0.07235077, 0.010909326, -0.008999075, -0.013826937, -0.03510087, -0.035041176, 0.03098189, 0.017207187, -0.015759574, -0.06620215, 0.024698954, -0.0055330135, 0.005025603, 0.004988293, -0.05259161, 0.0035500084, -0.010558616, 0.012730035, -0.033578638, -0.00024018054, 0.006969433, -0.04784583, 0.012730035, -0.014401505, -0.015983433, 0.012946431, 0.012491253, -0.040443607, 0.055218205, -0.008215574, -0.023818448, 0.029981993, 0.052800544, -0.04859202, 0.05053212, 0.026146566, 0.05032319, -0.027310627, 0.041846447, 0.06936601, -0.036324624, -0.027474789, -0.0143045, -0.052800544, -0.011670442, -0.013715008, -0.017371349, 0.01981886, 0.06709758, -0.042383704, -0.0655455, -0.016684853, -0.060919113, -0.07682793, -0.01449851, -0.010021358, 0.029444735, 0.06751545, 0.00031503293, -0.06823179, 0.016281908, -0.008342426, 0.07533554, -0.014782063, -0.01846079, 0.028206056, 0.03677234, -0.000453778, 0.021952968, -0.0011603285, -0.050741054, -0.0060926573, 0.009058771, 0.035548586, 0.031548996, 0.004921136, -0.0028187402, -0.0119838435, -0.0033597294, -0.04987547, 0.01492384, 0.046592228, -0.013573232, 0.006309053, 0.0032011636, -0.021669416, 0.023639362, -0.002432586, -0.012901659, 0.02584809, 0.040354062, 0.022161901, -0.04936806, -0.023758752, -0.029056715, -0.020938147, 0.01356577, -0.013110593, -0.025997328, 0.029504431, 0.016311757, 0.03847366, -0.07646976, -0.00053026265, 0.04101071, -0.0034772546, 0.024400478, 0.017356426, 0.021624643, -0.042025533, 0.018490637, -0.0075663864, 0.0075962343, 0.010140749, -0.0038316958, -0.016028203, -0.023325961, -0.01904282, -0.049218822, 0.03393681, 0.017819064, 0.0004477152, 0.008536437, 0.043100048, 0.008842375, 0.012804654, 0.042144924, -0.00858867, -0.01593866, -0.016505767, 0.018207084, 0.009461714, 0.014834296, -0.018923428, -0.018490637, -0.0028672426, 0.025922708, -0.025669005, 0.01488653, -0.031608693, -0.012162929, 0.0065403725, 0.025057126, -0.026430119, 0.019221906, -0.05181557, 0.044920757, 0.04220462, -0.049845625, 0.017475815, -0.04614451, 0.02856423, 0.01846079, -0.03151915, -0.023937838, -0.016923634, -0.029056715, -0.034175593, 0.01531186, 0.033996508, -0.00008622015, 0.029250726, -0.048233848, 0.009282628, 0.0072007524, -0.031011738, -0.02160972, 0.01853541, -0.01714749, 0.011864453, 0.024325859, -0.004723395, -0.0254153, 0.037637923, -0.04871141, -0.015983433, -0.028280675, 0.005107684, 0.0059881904, 0.033130925, -0.050442576, -0.003497775, 0.010655621, -0.023102103, -0.018699571, 0.037846856, -0.014573129, -0.03560828, -0.001513837, 0.00983481, -0.001743291, 0.03393681, -0.0072977575, -0.0021322435, -0.016460994, 0.016565463, -0.035279956, -0.0069060065, -0.015714804, 0.000547052, -0.008439431, -0.018326474, 0.01843094, -0.047905523, 0.029340269, -0.00287657, -0.02654951, -0.018833885, -0.049278516, -0.030892348, -0.0075738486, -0.034384526, 0.044025328, 0.023893068, -0.017281806, 0.022743931, -0.015998356, -0.026564434, 0.006857504, -0.028698543, -0.01581927, 0.049308367, 0.02223652, 0.059814747, -0.028400067, -0.008603593, 0.017714597, -0.036712646, 0.0083946595, -0.028623924, 0.020878451, -0.0014261594, -0.015520793, -0.0063500935, 0.022788703, -0.0034679272, 0.022415606, 0.01267034, -0.0071112094, 0.002751583, -0.028265752, -0.045846034, 0.040771928, -0.012938969, -0.034742698, 0.007342529, 0.011454047, -0.024698954, 0.023907991, 0.03727975, -0.033399552, -0.037608076, -0.025430223, 0.056292724, -0.03381742, 0.012550949, -0.047517505, -0.034026355, 0.019848706, 0.035578433, -0.020505356, -0.034026355, -0.021744033, -0.020072564, 0.006514256, -0.041637514, -0.041697208, -0.028623924, 0.00427568, -0.013901557, -0.003688054, -0.0008348023, -0.032325037, 0.03369803, 0.008924456, 0.03289214, 0.02693753, -0.043398526, -0.01780414, 0.013177751, 0.0069545093, 0.010946636, 0.005857607, -0.027773265, 0.0398765, -0.026057024, 0.02281855, -0.06375464, 0.004454766, 0.011767447, -0.042980656, 0.048890498, -0.04477152, -0.014938763, -0.05133801, -0.0021061269, 0.031041587, -0.02289317, -0.05068136, -0.04229416, -0.039786957, -0.04745781, 0.00493606, -0.0009513948, -0.017490739, -0.012856888, 0.017639978, 0.04220462, -0.021594796, 0.029802907, 0.04124949, -0.0075440006, -0.032832447, -0.010827245, 0.01395379, -0.006999281, 0.013289679, -0.034832243, 0.013476227, 0.016550537, 0.015386478, -0.032116104, -0.04874126, -0.010737702, 0.01831155, 0.041428577, -0.047517505, 0.030325241, 0.0137373945, 0.017237034, -0.013528461, -0.0074731125, 0.006055348, -0.019535305, 0.00765593, 0.038891524, 0.0035630667, 0.037697617, -0.03226534, -0.0475772, 0.016684853, 0.04256279, -0.0071298643, -0.02526606, 0.009693034, 0.009842272, -0.03650371, -0.048174154, -0.0035089678, -0.0027553139, 0.00100083, 0.004436111, 0.044652127, 0.022490226, -0.00023679936, 0.019430839, 0.020550126, -0.002460568, 0.021370938, 0.053785518, -0.0032869757, -0.055486836, 0.03345925, 0.035160564, -0.005021872, 0.0018197757, -0.037966248, 0.01146897, -0.009178162, -0.008036488, 0.05656135, -0.011446585, 0.0026135375, 0.030802805, 0.006417251, 0.03805579, 0.020878451, 0.02468403, 0.0037570766, -0.029026868, -0.05802389, 0.027012149, 0.031160977, -0.0058799926, 0.0469504, -0.027056921, 0.016072975, 0.026504738, 0.07306712, -0.0035910488, -0.07264925, 0.0034604652, -0.045099843, -0.028086666, -0.015446174, -0.002880301, 0.02180373, 0.021744033, -0.005144994, -0.01974424, 0.007946945, 0.010655621, -0.005103953, -0.0037757314, -0.061545912, -0.00007199586, -0.04862187, 0.00015670032, 0.019341296, 0.00307058, 0.040264517, 0.031817626, 0.013095669, -0.010939174, 0.012371863, 0.0015931198, -0.014020947, 0.018222008, 0.012312167, 0.035279956, -0.003540681, 0.003999589, -0.031817626, 0.037608076, 0.024639258, -0.033906963, 0.002191939, -0.0022796164, 0.0050479886, -0.010745164, -0.016863938, 0.006316515, -0.0011062296, -0.010663083, -0.0006100119, 0.016878862, -0.041130103, -0.013998562, -0.009849734, -0.029146258, 0.020505356, 0.019565154, 0.045696795, 0.048562173, -0.019609924, 0.034772545, -0.010551155, 0.022714084, 0.012588259, 0.024236316, 0.027489712, -0.01966962, -0.013438918, -0.0127151115, 0.0061933934, 0.015505869, -0.072470166, 0.0117525235, 0.0035052367, -0.014095566, -0.008387198, 0.00058902527, 0.01119288, 0.032205645, 0.032981686, -0.034981478, 0.028922401, 0.006603799, -0.030653566, -0.025788395, -0.04498045, -0.015326783, 0.0100885155, -0.02102769, -0.01555064, -0.026265958, -0.03187732, -0.01826678, 0.058352213, 0.008081259, -0.014856682, 0.03172808, -0.010625774, 0.0027553139, 0.019609924, -0.051397704, -0.014222419, 0.0030444632, -0.040951017, -0.026101796, 0.052651305, 0.081245385, 0.0016043128, -0.010178058, -0.06124744, -0.029922297, 0.003723498, 0.009745267, -0.035578433, 0.04462228, -0.035787366, -0.0045144614, 0.000013969238, -0.052770697, 0.012580797, 0.035847064, 0.016356528, 0.038861677, -0.032086253, 0.007170905, -0.022788703, -0.015177545, -0.013386684, 0.026982302, 0.03522026, 0.001997929, 0.020385964, -0.0075925034, 0.052382678, 0.02596748, 0.01593866, -0.032205645, 0.017520588, 0.036682796, -0.0053278105, 0.006943316, 0.06763484, 0.015356631, 0.007738011, 0.019595, -0.022415606, -0.011931609, -0.01664008, -0.0033914426, 0.002033373, 0.020684442, -0.0074917674, -0.0014401505, -0.029056715, 0.047069788, 0.031698234, -0.06327708, -0.027683722, 0.03226534, 0.023639362, -0.0021042614, 0.015229778, -0.012371863, 0.035130717, 0.036742494, 0.017460892, -0.008984151, -0.00742461, 0.022833474, 0.01846079, 0.06441129, -0.025280984, -0.011648057, -0.021385862, 0.014588053, -0.016416224, 0.02872839, 0.013297141, -0.033727877, 0.025713775, 0.037846856, -0.004551771, -0.04256279, -0.030832652, -0.05166633, 0.002033373, 0.039428785, 0.0050330646, -0.03136991, 0.054173537, -0.020057641, 0.011573438, 0.025833165, 0.039966043, 0.026221186, 0.07802183, 0.019505458, 0.01267034, 0.014588053, 0.02989245, -0.023281189, -0.021788806, -0.020699365, 0.030056613, -0.04038391, -0.0385632, -0.05605394, -0.009864658, 0.007902173, -0.00559644, -0.023624437, 0.015983433, -0.015341707, -0.036145538, -0.0012666609, 0.101899974, -0.015446174, -0.025370527, -0.052949782, 0.027504636, -0.05297963, 0.0006286667, -0.019580077, 0.06465007, -0.026728597, -0.053546734, 0.0013310199, -0.030534176, -0.03907061, 0.015095464, 0.01632668, -0.00730895, 0.057814956, 0.0023299844, 0.049815778, 0.044831213, -0.045069996, -0.009402019, 0.04850248, 0.035339653, -0.008081259, 0.041189797, 0.031190824, -0.0034641963, 0.015729727, 0.010319835, 0.038115487, 0.029728288, -0.00832004, 0.0054658563, 0.006961971, -0.042532943, -0.03677234, 0.0099989725, 0.02856423, -0.008805065, -0.015446174, -0.06459038, 0.047995068, -0.07252986, 0.0066075297, 0.0019158479, 0.024191543, 0.016431147, -0.01993825, -0.010245216, -0.01647592, 0.26624128, 0.0475772, 0.06411281, 0.037846856, 0.043846242, 0.03778716, 0.029041791, -0.020579975, 0.003827965, -0.013528461, -0.010663083, -0.058322366, -0.0029679786, 0.0015912544, -0.009208009, 0.030564023, -0.006976895, 0.03727975, -0.019595, -0.04229416, -0.06918692, 0.032235492, -0.0019755433, 0.043756697, -0.013259831, -0.0031265444, 0.0023616976, -0.020699365, 0.023743829, -0.0087155225, -0.009790039, -0.062441345, 0.028012047, 0.0071112094, -0.02437063, 0.034414373, 0.020788908, -0.020311346, -0.013625465, -0.0052196127, 0.019102514, -0.017550435, 0.024012458, -0.012931507, -0.04178675, 0.05056197, 0.0056225564, 0.014259729, 0.047368266, -0.044502888, 0.04629375, -0.036593255, 0.033757724, -0.028235905, -0.017386273, -0.005488242, -0.06470977, -0.027997123, -0.013886632, 0.039130308, -0.0002020548, 0.06411281, -0.020803832, 0.01831155, -0.0042010606, 0.014662672, -0.023445351, 0.049576994, -0.0068351184, -0.0049659074, 0.024012458, 0.016938558, -0.024266163, -0.026012253, -0.0055665923, 0.03331001, -0.0144089665, 0.05118877, -0.040055584, -0.04130919, 0.0042271777, -0.007946945, 0.023191646, -0.024325859, 0.02693753, 0.020057641, -0.045249082, 0.0154610975, -0.052024506, 0.025997328, -0.0026695018, 0.011946534, 0.058710385, -0.0068164635, -0.008790141 ]
Now that wav2vec2 is pretrained, you can finetune it on your data for audio classification or automatic speech recognition! Audio classification To use the pretrained model for audio classification, add a sequence classification head on top of the base Wav2Vec2 model. The classification head is a linear layer that accepts the encoder's hidden states. The hidden states represent the learned features from each audio frame which can have varying lengths. To create one vector of fixed-length, the hidden states are pooled first and then transformed into logits over the class labels. The cross-entropy loss is calculated between the logits and target to find the most likely class. Ready to try your hand at audio classification? Check out our complete audio classification guide to learn how to finetune Wav2Vec2 and use it for inference! Automatic speech recognition To use the pretrained model for automatic speech recognition, add a language modeling head on top of the base Wav2Vec2 model for connectionist temporal classification (CTC). The language modeling head is a linear layer that accepts the encoder's hidden states and transforms them into logits. Each logit represents a token class (the number of tokens comes from the task vocabulary). The CTC loss is calculated between the logits and targets to find the most likely sequence of tokens, which are then decoded into a transcription. Ready to try your hand at automatic speech recognition? Check out our complete automatic speech recognition guide to learn how to finetune Wav2Vec2 and use it for inference! Computer vision There are two ways to approach computer vision tasks:
[ 0.0277919, -0.003166633, -0.014626577, -0.046760086, 0.023141183, -0.0138608245, 0.021581577, -0.0044821114, 0.003941167, 0.056230128, 0.05131245, 0.009378713, 0.020907152, -0.01752098, 0.0017088929, 0.02524876, 0.00027705843, -0.017942496, -0.01716972, -0.011830526, -0.01277191, 0.0066248137, -0.0749173, 0.0021444585, -0.05608962, -0.004562902, 0.03380552, 0.017324274, 0.07828942, 0.011493314, -0.017506931, 0.034592345, 0.015188597, -0.0027398488, -0.023239538, 0.0044188844, -0.0037690483, 0.014176961, -0.02193284, -0.071545176, 0.041814305, 0.003537215, 0.03301869, -0.034508042, -0.019333497, 0.009069602, 0.019937668, -0.007924486, -0.04254493, -0.10689625, 0.024293326, 0.02024678, -0.023337891, -0.023689153, 0.004552364, 0.038385984, -0.003342264, -0.025080154, -0.024827244, 0.01752098, -0.0016693758, 0.017127568, -0.00018770598, -0.053420026, 0.0024465444, -0.014598476, 0.0029242616, -0.04187051, 0.021525376, -0.010959395, -0.039510023, 0.01402943, -0.0019477514, -0.036812328, -0.020415386, 0.0058204224, -0.042011015, 0.013664117, -0.041364692, 0.020626143, 0.0039938563, -0.0037268968, -0.02418092, 0.016706051, -0.038638894, -0.0142472135, 0.020569941, -0.0086270105, 0.017689588, -0.0305177, -0.043500368, 0.034873355, -0.013530637, 0.053391922, 0.027567094, 0.048137035, -0.016242385, 0.051256247, 0.023689153, -0.03802067, 0.024658639, 0.073231235, -0.010748637, 0.0666556, -0.042601135, -0.002757412, 0.021174112, -0.012083435, -0.03574449, -0.05162156, 0.0116900215, 0.04886766, -0.0077839806, 0.009048526, -0.029449861, 0.02607774, 0.008542708, 0.021019557, -0.04608566, 0.017268073, -0.009470041, -0.0097721275, -0.020991456, -0.00776993, 0.047265902, -0.0038990155, -0.025670275, 0.04633857, 0.010516804, 0.00957542, -0.0011257968, -0.025473569, 0.012259067, 0.022031194, -0.002242812, -0.010734587, -0.04914867, 0.01719782, 0.01191483, 0.0101585165, 0.0032649864, -0.049626388, -0.017155668, 0.05055372, -0.023731304, -0.014303415, 0.027721649, -0.054825075, -0.04187051, -0.05190257, 0.019192992, -0.0019670709, -0.01041845, -0.004534801, -0.045636043, -0.020738548, -0.014268289, 0.012216915, 0.03802067, 0.03698093, 0.031557437, -0.008837769, -0.025136355, 0.048052732, -0.0005009884, 0.0361098, 0.0093927635, -0.018574769, -0.008275748, -0.008430304, 0.0015973669, -0.01610188, -0.012807037, -0.0043872707, 0.024813194, 0.057354167, 0.016228335, 0.0081071425, -0.0043942956, -0.013017794, -0.003716359, -0.025698377, -0.024096617, 0.013333931, -0.0053778314, -0.017225921, 0.0076715765, -0.008247647, -0.0016281024, 0.015441506, -0.004942266, 0.052914206, -0.020162476, 0.008802642, -0.03861079, -0.0017528007, -0.021356769, 0.007137657, 0.008479481, -0.029646568, -0.024953699, 0.043528467, -0.017577183, -0.0009958296, -0.053869642, 0.023675103, -0.020485638, 0.045607943, -0.0263728, 0.03161364, -0.0052548894, -0.015090244, 0.011092874, -0.0060136165, 0.056848347, -0.005261915, 0.020021971, 0.007348415, -0.0050125183, -0.015385305, 0.05771948, 0.013664117, 0.043809477, 0.0030682792, -0.014331517, -0.0027257982, 0.042713538, 0.023675103, 0.015610113, 0.053897742, -0.024925599, 0.013839749, -0.004598028, 0.010263895, 0.041758105, 0.040662166, 0.00917498, 0.0277919, 0.04248873, 0.025684325, 0.037599154, 0.02276182, 0.028424174, 0.037711557, 0.010657309, 0.0037093337, -0.0011934149, 0.020204628, -0.039819136, 0.012708683, -0.032147557, 0.0113036325, -0.00027771704, 0.014205062, -0.02749684, -0.023197386, 0.000066026405, 0.054291155, -0.0527175, -0.009659723, -0.0020759623, 0.009448965, 0.014514173, -0.008563784, 0.060641985, 0.030939214, 0.00791746, 0.021328669, -0.010938319, -0.0666556, -0.05474077, -0.06423891, -0.019052487, -0.029365558, -0.046141863, -0.05856251, 0.02191879, -0.026035588, 0.013706269, -0.015891122, -0.03355261, 0.03301869, -0.00041800257, 0.03299059, 0.022256002, 0.01996577, -0.03220376, 0.04827754, -0.042685438, 0.02385776, -0.0028206392, -0.037149537, -0.042713538, 0.000096542346, -0.0039200913, -0.00343008, 0.0019881467, 0.013902976, -0.05049752, -0.0011855115, -0.012814062, 0.007980688, -0.019530203, 0.03408653, -0.026471153, 0.046422873, 0.022087395, -0.02661166, 0.009090678, 0.04878336, -0.060417175, 0.02330979, 0.027047224, 0.043528467, -0.036447015, 0.05906833, 0.081099525, 0.04771552, -0.014893536, -0.028803539, -0.010692435, 0.04942968, 0.042685438, -0.045439336, -0.046394773, 0.05462837, 0.0064948467, -0.0692971, -0.021314617, -0.029590366, -0.053701036, -0.023084981, -0.017549083, 0.048839558, 0.0068812356, 0.040549763, -0.032906286, -0.00013633382, 0.011521415, 0.004742046, 0.007924486, -0.05996756, 0.04052166, 0.0026063689, 0.018827679, 0.0128421625, 0.034508042, -0.05350433, 0.014893536, 0.02443383, 0.037346244, 0.03692473, 0.01916489, -0.043697074, -0.017338324, 0.01888388, -0.05049752, 0.015497709, 0.01995172, -0.021722082, 0.059236933, -0.0036531317, -0.004657743, -0.043753278, -0.021792335, -0.039819136, 0.026133941, 0.040549763, 0.048670955, -0.051565357, 0.018926032, -0.018490465, -0.046760086, 0.032793883, -0.019347547, -0.04746261, 0.04358467, 0.025712427, 0.021230316, -0.041139882, -0.0016386403, 0.018139204, -0.001362021, 0.020036021, 0.033496406, 0.014486072, -0.0148794865, -0.02749684, -0.053110912, 0.016818456, -0.004260816, -0.0071622455, -0.03408653, 0.0070428164, -0.010151491, 0.005669379, -0.0008346879, 0.041224185, 0.017155668, 0.0038498386, 0.047575016, -0.007271137, -0.00833195, 0.0304896, -0.004478599, -0.014682779, -0.03802067, 0.04549554, 0.040100146, 0.0019126252, -0.0038709145, 0.013818673, -0.021525376, -0.0018458853, -0.04782792, 0.03360881, -0.01164787, -0.0388356, -0.017394526, 0.0010862797, -0.0263447, -0.010846991, -0.07975067, 0.043472268, 0.040381156, -0.06244045, 0.018982233, 0.017633386, -0.0048790383, 0.010207693, 0.0028276644, -0.010762688, -0.025403315, -0.009968834, -0.03779586, 0.045130227, 0.02606369, -0.002018004, 0.017225921, -0.041196086, 0.0053216293, 0.019038435, -0.0113036325, 0.03270958, 0.0017326031, 0.028775437, 0.017254021, 0.02607774, 0.013095072, -0.008282773, 0.028157214, -0.026316598, 0.039594326, -0.014345567, 0.015848972, -0.012146663, 0.05912453, -0.03141693, 0.021806385, 0.0027503865, -0.014738981, -0.0032966, -0.005718556, -0.009533268, -0.047771722, 0.021356769, 0.027665447, -0.010987496, 0.016832506, -0.009406814, 0.006333266, 0.009090678, 0.0061154827, -0.045298833, 0.027721649, 0.01608783, 0.011071799, 0.0038709145, 0.010481678, 0.024363577, -0.032400467, 0.01497784, -0.004984417, 0.022916377, -0.024335478, -0.038976103, -0.04330366, -0.012849188, -0.045888953, 0.00998991, 0.021469174, -0.05634253, 0.06137261, -0.025838882, 0.037009034, -0.017956547, -0.061822228, 0.010081238, 0.06862267, 0.0062032985, 0.04521453, -0.0017791453, -0.019558305, 0.022565113, -0.06755483, 0.013888925, -0.012097486, -0.03585689, -0.028213417, 0.01719782, -0.016776305, -0.00007343585, 0.015596062, -0.004949291, 0.026176093, -0.055387095, -0.008634036, -0.034451842, -0.014640627, 0.03546348, -0.044736814, -0.079582065, -0.038133074, 0.0020935254, 0.0063929805, 0.019192992, -0.007959612, -0.029815175, -0.02942176, -0.07576033, 0.01374842, -0.02054184, -0.00972295, -0.07171378, 0.015497709, 0.029056447, 0.050104104, 0.022719668, -0.006234912, -0.016958961, -0.050188407, -0.017942496, -0.068341665, -0.041252285, -0.0038041745, -0.0070603793, -0.009378713, 0.043781377, -0.014893536, -0.040577862, -0.024911547, 0.009884532, 0.004938753, 0.026147991, -0.037261944, -0.039791033, 0.002265644, -0.016888708, 0.027300134, 0.016551496, -0.046226166, 0.045664147, -0.050413217, 0.053925842, -0.014176961, 0.022354355, 0.014528223, -0.054206852, 0.022129547, -0.019670708, 0.0046788184, -0.037852064, 0.011163128, 0.021455122, 0.00015279926, -0.044483904, 0.010713511, -0.040324952, -0.042629234, 0.04128039, -0.06350829, 0.0038463261, -0.0054761847, -0.009870481, 0.06710522, -0.007179809, 0.05431926, 0.04330366, -0.011851602, 0.006695066, -0.010959395, -0.001956533, 0.009406814, 0.011711097, -0.011739198, -0.013383107, 0.0041519245, -0.014823284, -0.03166984, -0.01858882, 0.008908021, 0.020204628, 0.073175035, 0.008795617, 0.03667182, -0.021820435, -0.029618466, -0.049542084, 0.046113763, 0.011106925, -0.018083002, 0.0011266749, 0.004102748, -0.0005036228, 0.030686306, -0.02443383, -0.0444558, 0.022438658, 0.0861577, -0.044624407, -0.046928693, 0.008268723, 0.033102993, -0.0064140563, -0.023056882, -0.028086962, 0.0071165813, 0.007376516, 0.014598476, 0.024939649, 0.031866547, -0.0208369, 0.05771948, -0.020176526, 0.020148426, -0.013073996, 0.035013862, -0.014233163, -0.024616487, 0.008086067, 0.0749735, -0.032288063, -0.026794316, 0.005571026, 0.010790789, -0.024574336, -0.035351075, 0.045720346, -0.04411859, -0.009034475, 0.017689588, -0.0014173448, 0.044821113, -0.014486072, 0.0072500613, -0.0046155914, -0.008535682, -0.034170832, 0.02746874, 0.047518812, 0.006210324, 0.03571639, -0.045832753, 0.0041730003, 0.007179809, 0.027651396, -0.04808083, -0.07384946, 0.013123173, -0.061428815, 0.0038919903, -0.019670708, -0.018926032, 0.0073975916, 0.008950173, -0.0006485187, -0.056286328, 0.021595629, 0.032147557, 0.0050125183, -0.014907587, -0.013095072, 0.01610188, -0.038723197, 0.011057748, -0.013144248, -0.04608566, -0.00017442387, 0.007580248, -0.007102531, 0.029056447, -0.0041835383, 0.022551063, -0.023225486, 0.014795183, -0.031248325, 0.006287602, -0.032007053, 0.031838447, -0.021553477, 0.0014902318, 0.056483034, -0.033215396, 0.0011486289, 0.018111102, -0.0068777227, 0.0014928663, -0.019755011, 0.021342719, 0.010839965, 0.006705604, 0.019853365, 0.030461498, -0.030011881, -0.013369056, -0.007081455, -0.013783547, -0.021089809, -0.00069725636, 0.04411859, 0.07812081, -0.0025800243, 0.03464855, -0.013657092, -0.0025378726, 0.011268506, -0.01582087, 0.025038002, -0.032007053, -0.008121192, -0.0028873791, 0.016059728, 0.03478905, -0.046928693, 0.0058941874, 0.021033607, 0.0041308487, 0.0016210772, 0.024518134, -0.014598476, 0.036587518, 0.016059728, 0.011184203, -0.007643475, -0.060360976, -0.010397375, 0.018167304, -0.056033418, -0.012055335, 0.036166005, -0.061485015, -0.009069602, -0.042629234, -0.018392112, -0.00024917696, 0.0083179, 0.017141618, 0.007875308, 0.0305739, -0.007179809, 0.018490465, -0.034283236, -0.019755011, -0.020626143, -0.00020483004, -0.034704752, -0.049345378, -0.02831177, 0.0069093364, -0.03855459, 0.005669379, -0.019094639, -0.008198471, 0.03546348, 0.036812328, -0.015863022, 0.05055372, -0.02939366, 0.010973445, -0.00944194, -0.011823501, -0.011732173, 0.06884748, -0.019937668, 0.00081273395, 0.016017577, 0.043191258, -0.022073345, -0.02054184, 0.007383541, 0.04574845, 0.04246063, -0.0125892535, 0.006287602, 0.0032386417, 0.007327339, 0.010313071, 0.017352376, -0.020921204, 0.065700166, 0.013846774, -0.051256247, 0.031473134, 0.036166005, -0.012294193, -0.00075828825, 0.018757425, -0.03529487, 0.044793013, 0.027693547, -0.009779152, -0.032288063, 0.034732852, -0.0014076851, 0.013369056, -0.01971286, 0.037290044, -0.020373235, -0.066824205, -0.047237802, 0.011725147, 0.007629425, 0.0035249207, -0.018111102, -0.015469607, 0.011964006, -0.00561669, -0.04878336, 0.017239971, -0.016790355, 0.02139892, 0.0035003324, -0.0049598287, 0.007608349, -0.023604851, -0.02610584, -0.091215886, -0.025473569, 0.041814305, 0.02857873, -0.024897497, 0.017366426, -0.03664372, -0.01747883, -0.0555838, 0.0074748695, -0.06879128, -0.0011038429, 0.02385776, -0.029843275, -0.040858872, 0.0045839776, -0.005915263, -0.012083435, 0.011612743, 0.03248477, 0.008662137, 0.012975642, 0.045917053, 0.026414951, 0.040718365, 0.03504196, -0.0030788172, 0.0027099913, 0.004580465, -0.023464346, 0.0014138322, -0.06609358, -0.04833374, 0.04555174, 0.032063257, -0.0026678399, -0.04220772, 0.01151439, 0.032793883, -0.057129357, -0.006705604, 0.057831883, -0.008430304, 0.022326255, 0.022677517, 0.008219546, -0.012139637, -0.03585689, -0.07356845, 0.06272146, -0.0011890241, -0.024040416, -0.007629425, -0.019586405, -0.0013857312, 0.029028347, -0.013165324, 0.032934386, 0.04546744, 0.048446145, 0.034255136, 0.030208588, 0.003695283, -0.03242857, 0.058169097, 0.023197386, 0.0028065885, 0.069971524, 0.05474077, -0.0014726687, -0.010495728, 0.022424608, 0.009758077, -0.012519001, -0.016228335, 0.0004922068, 0.026583558, -0.07553552, -0.041533295, 0.0023446782, 0.021328669, -0.03543538, -0.03276578, -0.05777568, -0.031192124, -0.047631215, 0.005209225, -0.052858006, 0.017071364, -0.012364445, -0.025192557, -0.00043688292, -0.053925842, 0.23132753, 0.03965053, 0.03664372, 0.025375213, 0.022003092, 0.041420892, 0.039060406, 0.057382267, 0.025319012, -0.06704902, -0.0075170207, 0.0046823313, 0.02833987, -0.007025253, 0.0010968177, -0.014963789, -0.032653376, -0.020935254, -0.034479942, -0.02496775, -0.025290912, 0.0022252488, 0.018926032, 0.030180488, 0.025740527, -0.02387181, -0.022621315, -0.042882144, 0.00067969324, -0.041364692, 0.008872895, -0.019277295, 0.044821113, -0.0042748665, -0.019474002, 0.018996285, 0.004165975, -0.04633857, -0.023604851, 0.00033523628, -0.029730871, 0.014127784, 0.04771552, 0.018476415, 0.02551572, 0.045045923, -0.008423278, -0.01262438, 0.0100250365, -0.05103144, 0.03433944, -0.061597418, 0.02774975, -0.033496406, -0.031304527, 0.0014814503, -0.0417019, -0.034283236, 0.052548893, 0.036559418, 0.013369056, 0.023408143, -0.0078120814, -0.012371471, 0.004917677, -0.020752598, -0.00045708052, -0.011451162, 0.03504196, -0.00498793, 0.01303887, 0.03723384, -0.019656658, -0.006547536, 0.03664372, 0.018167304, 0.0009396276, 0.0555557, 0.0041413866, -0.01889793, -0.041477095, -0.0045207506, -0.0041905637, -0.011886728, 0.019488052, 0.031754144, -0.03521057, -0.0035231644, 0.013165324, 0.051733963, 0.044877317, 0.062609054, 0.007776955, -0.005405932, -0.01069946 ]
The last thing to add to the patch and learnable embeddings are the position embeddings because the model doesn't know how the image patches are ordered. The position embeddings are also learnable and have the same size as the patch embeddings. Finally, all of the embeddings are passed to the Transformer encoder.
[ 0.0090256445, -0.0077412804, -0.022135992, -0.020353321, 0.043991245, 0.028157767, -0.00604634, -0.007120153, -0.024887199, 0.06327777, 0.004200504, 0.023343153, 0.040117096, -0.04823035, -0.0318354, -0.0008830007, -0.0033688254, -0.033856697, -0.046545938, 0.019651482, -0.0029319308, 0.008183438, -0.06383924, -0.02231847, -0.017321378, -0.015314119, 0.063221626, -0.01322264, 0.042054173, 0.03458661, 0.005323446, -0.021546446, 0.022248285, -0.026655832, -0.0053620473, 0.0030073787, 0.036242947, -0.007172791, -0.025939956, -0.01387535, 0.030263282, 0.027329598, 0.0037758918, -0.03245302, -0.046658233, 0.007643023, 0.005211152, -0.04449657, 0.0061270515, 0.0043654363, -0.02779281, -0.006253382, -0.016184399, -0.030094841, -0.008043071, -0.0032635496, 0.034614682, 0.040117096, 0.023258932, 0.0077132066, 0.037646625, -0.012106717, -0.017938996, -0.03239687, 0.036972858, -0.022023696, 0.0017379279, -0.033491742, 0.024971418, -0.042643715, -0.057775356, -0.009095829, -0.011580338, -0.040089022, -0.03832039, 0.028831532, -0.013777093, 0.047219705, -0.023932697, 0.036158726, 0.030628238, 0.0052532624, -0.020423505, -0.0075447652, -0.03815195, -0.047303926, 0.010885517, -0.0022072825, -0.0015107077, -0.035120007, 0.01753193, 0.034333948, 0.023974808, 0.02549078, 0.0032372307, 0.032817975, -0.032621462, 0.05828068, 0.016408987, 0.032874122, 0.013194567, 0.069229364, -0.01813551, 0.10089632, -0.061256476, 0.009608171, 0.008260641, -0.021321857, -0.05749462, -0.05701737, -0.021728924, 0.0046040616, -0.0043268353, -0.025434632, 0.0066253566, 0.028649053, 0.014640355, 0.013320898, -0.036242947, 0.004418074, 0.025504816, 0.0054181945, 0.014514023, 0.02905612, 0.011734742, -0.06484989, -0.016900275, 0.01009244, -0.03579377, -0.016535318, 0.016086143, -0.01043634, -0.01583348, 0.07259819, -0.041857656, -0.018023217, -0.00769917, 0.015889626, 0.017644223, 0.0011089051, 0.01391746, -0.023511594, 0.010288955, 0.07680922, -0.024859125, 0.027484002, -0.0007654428, -0.00018072345, -0.036102578, 0.01235236, -0.020521762, 0.019651482, -0.016802017, -0.010120513, -0.05376084, -0.017251194, -0.0487076, 0.033491742, 0.019525152, 0.015468524, 0.034783125, 0.009636245, -0.04671438, 0.0016168607, -0.016872201, 0.070969924, -0.08523128, 0.0019739212, -0.0106118005, -0.0060533583, 0.012254103, -0.010646892, -0.0106118005, -0.0133981, 0.03220036, 0.033940915, 0.02696464, -0.019160194, 0.0017151182, -0.018542577, -0.015552744, -0.014850906, -0.011994422, 0.01610018, -0.011545246, -0.028466575, -0.003596923, 0.028550796, -0.026908495, -0.009495877, -0.0032003843, 0.062772445, -0.060358122, 0.01626862, -0.012731353, 0.008583487, -0.025378486, -0.020325247, 0.04180151, -0.043401703, -0.010232807, 0.021967549, 0.001358935, -0.019819923, -0.07080148, 0.026515463, 0.04898834, 0.09427097, -0.028635018, 0.0299264, 0.01009244, -0.004418074, -0.0009922244, 0.040510125, 0.025855735, -0.008253623, 0.0023985335, -0.006470952, -0.00521817, -0.010211753, 0.006649921, 0.043177113, 0.026248766, -0.0038425666, 0.00795885, -0.0052672992, 0.01857065, 0.02783492, -0.01670376, 0.05749462, -0.019651482, 0.046293277, -0.033940915, -0.0023125582, 0.02666987, 0.030235209, -0.0063797133, 0.018191658, -0.033744402, -0.0017098543, -0.025982067, 0.02261324, 0.029421076, 0.015384303, 0.03832039, -0.00934849, -0.00033797917, -0.0017230138, -0.007285085, 0.047332, -0.0024002881, 0.045535292, 0.0024195886, -0.013580577, -0.051964134, -0.015173752, -0.019019827, 0.010562671, -0.017798629, -0.039387185, -0.027891068, 0.027259413, -0.033070635, -0.012408507, 0.017742481, 0.025771515, 0.023118565, 0.018907534, -0.02648739, -0.041127745, -0.014022736, -0.069004774, -0.0974152, -0.023806367, -0.024311692, -0.05280634, 0.0061691618, -0.030656312, 0.0049093612, 0.017644223, -0.024859125, -0.011060977, -0.007867611, 0.0051479866, 0.010239826, 0.019384783, -0.008836148, 0.061705653, 0.029112266, -0.01448595, 0.04663016, -0.05558562, -0.0038390574, -0.012211992, 0.00882913, -0.029112266, 0.023567742, 0.0104714325, -0.0333233, -0.021981586, -0.038348462, -0.043738585, -0.023272969, 0.050897337, -0.03475505, 0.017882848, 0.015861554, -0.026557574, 0.02296416, 0.025153898, -0.02735767, 0.012169882, -0.021209564, 0.017082753, -0.023581779, 0.0636708, 0.017054679, -0.02623473, -0.004540896, -0.033856697, -0.02018488, -0.008450137, 0.0015405358, -0.070183866, -0.002831919, 0.055220664, -0.01031001, -0.071475245, -0.019426893, -0.019679556, -0.012183919, -0.0011641749, 0.025897846, 0.03048787, 0.025027566, 0.006442879, -0.023722146, 0.03997673, 0.016886238, 0.02418536, 0.015707148, -0.009327436, -0.016759906, 0.04250335, 0.030347504, 0.007853574, 0.01857065, -0.017714407, 0.06383924, 0.025813626, 0.047275852, 0.024339763, 0.041829582, -0.016296694, 0.005425213, -0.028831532, -0.036523685, 0.007951831, -0.02592592, -0.02144819, 0.057438474, 0.02379233, -0.008316788, 0.00521817, 0.016044032, 0.0077693537, 0.03239687, -0.0007171914, 0.03040365, -0.027610332, 0.035484962, -0.0006864859, -0.022079844, 0.019061938, 0.0004318501, -0.03214421, 0.051430736, -0.022543058, 0.026473355, -0.07894281, 0.0068183625, 0.0073622875, 0.0064744614, 0.013861313, 0.033239078, 0.022865903, -0.012408507, 0.009376564, -0.0011922484, 0.023553705, -0.0152298985, 0.022374615, -0.009327436, -0.01096272, -0.018640835, -0.04227876, 0.045394924, 0.0224448, 0.0024862634, 0.00302317, 0.05749462, 0.016338803, 0.05701737, 0.040089022, -0.018654872, -0.017938996, -0.037702773, 0.04575988, -0.016872201, -0.0064498973, -0.047556587, 0.0030775624, 0.0031898567, -0.041071597, 0.02304838, 0.0371413, -0.03366018, 0.0005667347, 0.012422544, 0.042306833, 0.005793678, 0.009053718, -0.06782569, 0.032621462, 0.059515916, -0.051121928, -0.009629226, -0.044945747, 0.04006095, -0.007095589, -0.041464627, -0.033295225, -0.018921569, -0.01052758, -0.017784592, 0.042391054, 0.041829582, 0.014696501, 0.025560964, -0.004905852, 0.005098858, -0.009615189, 0.028073546, -0.03980829, -0.013327916, 0.0075096735, 0.04750044, 0.008997572, -0.010878499, -0.004270688, 0.032761827, -0.069734685, 0.04797769, -0.023427375, 0.019412857, 0.007860593, -0.0063130385, -0.042868305, 0.040032875, 0.0012729599, -0.0040847007, -0.027947215, 0.012190937, -0.026740052, -0.03458661, 0.048483014, -0.01304718, 0.013166493, 0.0333233, 0.016675686, -0.007299122, 0.0002471788, 0.030965121, -0.06849945, 0.031245856, -0.061874095, -0.02248691, -0.019033864, 0.00016855093, -0.00648148, -0.03613065, -0.0065270993, -0.0030722986, -0.0171389, -0.007369306, -0.02666987, 0.019075975, 0.028382355, -0.04876375, -0.02018488, 0.032003842, 0.008906333, 0.028550796, 0.02014277, -0.021546446, 0.0073201773, -0.030207135, -0.0007715839, 0.019735703, -0.058842152, 0.007755317, -0.020507725, -0.003902223, -0.013510394, -0.02296416, 0.031610813, -0.032902196, 0.023469483, 0.0069482024, 0.002135344, -0.019230379, -0.00011426811, 0.0018317988, -0.03118971, 0.016282657, 0.0036214874, -0.02787703, -0.010499506, 0.009952072, 0.040201318, -0.017209083, -0.06816257, -0.036944788, 0.0342778, -0.032424945, 0.019637445, 0.0041548847, -0.03632717, -0.024718758, -0.02292205, 0.053255517, -0.06917322, -0.02754015, -0.040341686, -0.030515945, -0.017433671, 0.008323806, -0.008681744, 0.01096272, -0.024339763, -0.023287006, 0.008625597, 0.008815093, -0.035962213, -0.0067832703, 0.0062217996, -0.048651453, 0.044665013, -0.013861313, -0.02348352, 0.005646292, 0.0116224475, 0.051430736, 0.019735703, -0.05381699, -0.041211966, 0.0014396465, -0.024606463, 0.06894863, 0.011966349, -0.016212473, 0.03728167, -0.043317482, -0.0075798575, -0.02841043, -0.016745871, -0.010366157, -0.036776345, 0.016058069, -0.047079336, -0.016914312, -0.024536278, 0.014626318, 0.011517172, -0.022683425, -0.024802977, -0.03601836, -0.05193606, -0.051879913, 0.0040706643, -0.024915272, -0.0043654363, -0.020044511, 0.024760867, 0.07203672, 0.013973608, 0.017419634, 0.046068687, 0.016942386, -0.056427825, -0.006011248, 0.0075377473, 0.01152419, -0.03458661, -0.015805406, -0.03688864, -0.027133081, -0.013622688, -0.066983484, -0.050027058, -0.008674726, 0.07102607, 0.02426958, -0.015145678, 0.006284965, -0.019763777, -0.000601388, -0.023946734, 0.01448595, 0.009201105, 0.00003522901, 0.045170337, 0.009587116, 0.04528263, 0.06659045, -0.02866309, -0.04354207, -0.0021090251, 0.06619742, -0.016156325, -0.057185814, 0.018823313, -0.0033126783, 0.0016019467, -0.04115582, 0.025083713, 0.0018142529, 0.037029006, -0.038853787, 0.013496357, -0.048202276, 0.0024213432, -0.0507289, 0.0224448, -0.016717797, 0.03133008, 0.02944915, 0.03823617, -0.039471406, 0.00035135797, 0.05115, 0.0011097824, -0.0267962, -0.057775356, 0.008365917, -0.017195046, -0.00070666376, 0.036355242, -0.011678595, 0.027245376, 0.025153898, 0.013706909, 0.059908945, -0.015875591, 0.0035477944, 0.009776613, -0.009341473, -0.038853787, -0.0046180985, 0.004428602, 0.03239687, 0.025462706, -0.031947695, -0.013145437, 0.026992714, 0.004649681, -0.0400048, -0.054771487, -0.022851866, -0.060358122, -0.0386292, -0.018360099, -0.027652442, 0.015482561, 0.017756518, -0.009278307, -0.037225522, 0.010302992, -0.016072106, -0.03444624, -0.0012896286, -0.016212473, 0.03700093, -0.02601014, -0.010267899, -0.010043311, -0.0221781, 0.009987164, 0.023174712, 0.018682946, 0.008274677, 0.021644704, -0.008029034, 0.008688763, -0.00048690056, -0.010415286, -0.011124142, -0.038095802, 0.066983484, 0.033491742, 0.017419634, 0.027203266, -0.027736664, 0.008815093, 0.010281936, -0.04101545, -0.032733753, 0.03388477, 0.0119803855, 0.007172791, 0.00096853735, -0.017195046, 0.012675206, -0.034418166, -0.079672724, 0.01765826, 0.012647132, -0.027526112, 0.026824273, 0.046938967, 0.051093854, 0.019047901, 0.042727936, -0.034418166, 0.010043311, -0.02596803, 0.01365778, 0.033519812, 0.01583348, -0.005734022, -0.039920583, -0.011243455, 0.021785071, -0.020297173, 0.016731834, 0.0052778265, -0.024915272, 0.0028108638, 0.03641139, -0.021602593, 0.047612734, 0.019581297, -0.0142192505, 0.0034495369, -0.033997063, -0.0118400175, -0.044805378, -0.03902223, -0.042952526, -0.008295733, -0.060919594, 0.0016466889, -0.019847997, -0.018163584, 0.00014146435, 0.024564352, 0.021799108, -0.0069306567, 0.00817642, 0.051178075, 0.020381395, -0.051514957, -0.0027283977, 0.03848883, -0.009727484, -0.07417031, -0.013103328, 0.020942865, 0.05202028, 0.0101134945, -0.02522408, -0.051290367, -0.0118400175, 0.03205999, -0.008085181, -0.019370746, 0.039246816, -0.024311692, 0.053143222, -0.01165754, -0.022950124, 0.041661143, 0.06254786, 0.0069411844, 0.0126330955, -0.03745011, 0.013959571, 0.038292315, -0.01726523, 0.052750193, 0.015707148, 0.067713395, 0.023160676, 0.0024178342, -0.022739572, 0.037253596, 0.05058853, 0.016479172, -0.005902463, 0.04797769, 0.019763777, 0.006186708, 0.02505564, 0.041829582, -0.014247324, 0.02188333, 0.010387212, -0.014850906, 0.017110826, 0.0006619216, 0.0061305608, -0.046405572, 0.0017431917, -0.031751182, 0.035990287, -0.0070008403, 0.0105345985, 0.013713927, -0.0617618, -0.038095802, 0.0458441, 0.037815068, 0.022206174, 0.002979305, 0.011903184, 0.008316788, 0.04250335, -0.0068218717, 0.02905612, -0.016170362, 0.016310731, -0.0106118005, 0.048679527, 0.0014422784, -0.0048181224, -0.020563873, 0.0127102975, -0.014766685, 0.033547886, -0.002975796, -0.036776345, 0.062997036, 0.006372695, -0.052272942, -0.06445686, 0.02944915, -0.06159336, -0.0063832225, 0.032424945, -0.033463668, -0.033997063, 0.01544045, -0.04559144, 0.011369786, 0.039639845, 0.03927489, -0.005555053, 0.123635896, -0.010211753, 0.033211004, -0.009502895, 0.025518853, -0.035765696, -0.031863473, -0.039443333, -0.017054679, 0.010548634, -0.023736183, -0.038376536, 0.021756997, 0.03570955, -0.01256993, -0.017307341, -0.0046426626, 0.038573053, -0.025406558, -0.035765696, 0.028073546, -0.0107521685, 0.015314119, -0.00062858424, -0.022683425, -0.049437515, -0.043064818, -0.020367358, 0.044215836, -0.0066007925, -0.021630667, -0.0333233, -0.04685475, -0.03436202, 0.014212232, 0.013468283, -0.015608892, 0.035681475, 0.060582712, 0.008099218, -0.0047339015, -0.03166696, -0.003131955, 0.03801158, 0.030515945, 0.01065391, 0.07091378, 0.03761855, 0.019721666, 0.017910922, 0.009509914, 0.008148347, -0.017616149, -0.01913212, -0.006155125, 0.046658233, -0.035681475, 0.0058814078, 0.013243695, 0.05628746, -0.010324046, -0.009229179, -0.06361465, 0.0038987137, -0.020325247, 0.02710501, -0.039527554, 0.0224448, -0.005070784, -0.03649561, -0.010155605, 0.0011808436, 0.23132601, 0.07529325, 0.04424391, 0.030628238, 0.03632717, 0.05258175, -0.000049293198, 0.01052758, -0.0076570595, 0.006937675, 0.047528513, -0.026894458, 0.00019794043, -0.029673738, 0.013791129, 0.041998025, -0.013026125, 0.0028301643, -0.028564833, -0.054097723, -0.058392975, 0.029393002, -0.014373655, 0.0007110503, -0.032424945, 0.023469483, 0.009271288, 0.009629226, -0.013756038, -0.04314904, -0.002352914, 0.0037021989, 0.025041603, -0.0017502101, -0.018584687, 0.04410354, 0.0018914551, -0.025041603, -0.022823792, -0.013580577, -0.0057270033, -0.03133008, -0.024578389, -0.0012887513, -0.008113255, 0.041324258, -0.0013922724, -0.020086622, 0.022192137, -0.08197475, 0.04424391, -0.019426893, -0.008183438, -0.0043549086, -0.03806773, -0.036074508, 0.004674245, -0.0060428306, 0.08051493, 0.04154885, 0.041211966, 0.01852854, -0.0051164036, 0.0094607845, -0.0159177, 0.013475302, 0.0033916351, 0.02723134, -0.017068716, -0.046770528, 0.012808555, -0.051093854, -0.020325247, -0.01800918, -0.006825381, 0.06737651, -0.011039922, 0.04648979, -0.004797067, 0.0022160555, -0.036523685, -0.004702319, 0.0077693537, 0.002440644, 0.01974974, 0.014724575, -0.024831051, 0.012324287, -0.022304432, 0.0015984375, 0.03396899, 0.03492349, 0.010555653, 0.0094607845, 0.0159177 ]
ConvNeXT is a CNN architecture that adopts new and modern network designs to improve performance. However, convolutions are still at the core of the model. From a high-level perspective, a convolution is an operation where a smaller matrix (kernel) is multiplied by a small window of the image pixels. It computes some features from it, such as a particular texture or curvature of a line. Then it slides over to the next window of pixels; the distance the convolution travels is known as the stride.
[ 0.01788274, 0.005435534, -0.014908893, -0.04454164, 0.0166932, -0.025588313, -0.018054564, 0.024425207, -0.02067155, 0.07121375, 0.03235547, 0.003185322, 0.059054017, -0.048876848, 0.015411142, 0.010137518, -0.0012126693, -0.035210364, -0.012761113, -0.013930827, -0.04660351, 0.0333071, -0.031773917, -0.018358557, -0.010415077, -0.037906654, 0.060217123, -0.0025822916, 0.035976958, 0.03600339, -0.03576548, -0.021279536, 0.013296406, -0.024901023, -0.03481385, 0.034338035, 0.037272234, -0.047449403, -0.0686232, -0.04055007, 0.0067737657, 0.016362773, 0.0053661442, -0.04279698, -0.030637246, 0.009251973, -0.017948827, -0.03544827, -0.036056258, -0.022971326, -0.009285015, 0.004649116, 0.0034694897, -0.0063673398, -0.015886959, 0.007884002, -0.010078042, 0.01017717, 0.023790786, -0.0010466294, 0.050542206, -0.009529532, -0.028601812, -0.012529814, 0.022693766, 0.02044686, -0.010375426, -0.011353492, -0.0034430556, -0.029632745, -0.039809916, -0.026539944, 0.0076262685, -0.013296406, -0.004920067, 0.0060897805, 0.0068795024, 0.021160582, -0.025218233, 0.041369535, -0.019957826, 0.0016661811, -0.031747483, 0.008703463, 0.010686028, -0.03946627, 0.018041346, -0.016415643, 0.019059064, -0.023975825, 0.008505207, 0.04290272, -0.008141736, -0.012166344, -0.0014150562, 0.04139597, 0.0049762395, 0.04139597, 0.014181952, -0.0003975457, -0.00081698224, 0.06312489, -0.00017574617, 0.08014852, -0.080624335, 0.0211738, 0.019746352, 0.008743114, -0.0443566, -0.06894041, 0.0064235125, -0.024068346, 0.013455011, -0.016071998, 0.0097211795, 0.041369535, 0.011564965, -0.0019528271, -0.01564905, -0.023605747, 0.013355883, 0.014380208, -0.000598487, -0.008881894, 0.047105756, -0.040047824, -0.003955218, 0.022720201, -0.050621506, 0.009641877, -0.016812155, -0.018094216, -0.02815243, 0.055353228, -0.013395535, -0.0058056125, -0.016706418, 0.02396261, -0.026685333, 0.01788274, 0.025350405, -0.023936175, -0.0041997344, 0.057890914, -0.02108128, 0.0066316817, -0.011783048, -0.027359404, -0.048189558, 0.00577257, -0.018794721, 0.0027326362, -0.002000739, 0.033280667, -0.075073145, -0.012509989, -0.00018720789, 0.025865871, -0.024874588, 0.00716367, 0.015543314, 0.002322906, -0.004325297, 0.038937587, -0.01533184, 0.067777306, -0.0413431, -0.031879652, -0.011108976, -0.026804285, 0.043272797, -0.031747483, 0.014816373, 0.014684202, 0.023605747, 0.034470204, 0.048665375, -0.02833747, 0.014485945, -0.0002922219, -0.04084085, -0.039360534, 0.0005377709, -0.00438147, 0.021253102, -0.027993824, 0.012225821, 0.021372056, 0.005260407, 0.024967108, 0.012126693, 0.030928021, -0.06582118, 0.025271103, -0.027491575, 0.0032662768, -0.0026731591, 0.0033455794, 0.032937024, -0.06476381, -0.019561313, 0.035659745, -0.04221543, -0.013448403, 0.00889511, 0.04411869, -0.0041006063, 0.05625199, -0.036664244, -0.011789656, -0.018213168, 0.0070050647, 0.010785157, 0.01756553, 0.024570595, -0.003486011, 0.021319188, 0.009873176, -0.015768005, -0.04266481, 0.038091693, 0.041607443, 0.027861655, -0.027438708, -0.017948827, 0.0024369035, 0.044647377, 0.040629376, 0.0006682898, 0.03795952, -0.026090562, 0.05122949, -0.009278406, 0.032540508, 0.036161996, 0.041686743, 0.010276298, 0.014578465, 0.013137801, 0.024160866, -0.014882458, 0.006793591, 0.01176983, 0.02359253, 0.019151583, -0.012880067, 0.0049762395, 0.0044872067, 0.0045268578, 0.0060798675, -0.023671832, 0.04943197, 0.016283471, -0.0043682526, -0.028073128, 0.023671832, -0.0029160234, 0.003628095, -0.030187864, -0.021940392, -0.027174365, 0.04581048, -0.014922109, 0.010567075, 0.073487096, 0.05397865, 0.018900458, 0.0257337, -0.033835784, -0.063494965, -0.036902152, -0.09965696, -0.06539823, -0.011531923, 0.0050125867, -0.0414224, -0.021755353, -0.062437598, -0.016547814, 0.007447838, -0.055194624, -0.012595899, -0.040179994, 0.049246926, 0.04840103, 0.0153054055, -0.033967957, 0.03227617, -0.03449664, -0.0057064844, 0.018609682, -0.030187864, -0.0403386, 0.0041865176, 0.032566942, -0.044832416, 0.014525597, -0.029870654, -0.025310753, -0.019508446, -0.04084085, -0.017459793, -0.018715419, 0.03304276, -0.041898217, 0.002767331, 0.010567075, -0.02997639, 0.03645277, 0.0071702786, 0.00022014738, 0.04509676, -0.0016777461, 0.05088585, -0.010930545, 0.033756483, 0.044726677, -0.025865871, 0.019178018, -0.014406643, -0.025998043, 0.005428925, -0.014908893, -0.020737635, -0.03291059, 0.048427466, -0.013078324, -0.07549609, -0.015397926, -0.04316706, -0.059741307, 0.008862068, 0.0041766046, 0.023077063, 0.014974978, 0.033280667, -0.049617007, 0.0075139236, 0.0080822585, 0.03920193, -0.003882524, -0.048612505, 0.026302036, 0.0443566, 0.031615313, 0.0007277668, 0.026910022, -0.027385838, 0.045440402, 0.016798938, 0.06471094, 0.050251428, 0.0029771526, -0.009959088, 0.005762657, 0.020605464, -0.07005065, 0.034205865, -0.006740723, -0.04203039, 0.04977561, 0.024649898, -0.020843372, -0.018583247, 0.0014200126, 0.034390904, 0.036928587, -0.013759005, 0.019363057, -0.03988922, 0.036426336, -0.033412836, -0.002815243, -0.0019710006, 0.019508446, -0.028073128, 0.047740176, 0.03116593, 0.048929717, -0.06280768, 0.0075271404, -0.017354056, -0.023473576, 0.027306536, 0.025059627, 0.051784612, -0.018411426, 0.0076130517, -0.0046094647, -0.016362773, 0.009965696, -0.030875154, 0.010441512, -0.004632595, -0.03706076, -0.0625962, 0.028258167, 0.028363904, 0.03558044, -0.0133823175, 0.012906502, -0.008161562, 0.027028976, 0.022429425, -0.020777287, -0.006598639, -0.033148497, 0.028231733, 0.032593377, -0.0024402076, -0.023949392, 0.019561313, 0.023764351, -0.04070868, -0.05289485, 0.010263081, -0.04781948, -0.01975957, -0.045308232, 0.030637246, -0.061908912, 0.00999213, -0.06233186, 0.037853785, 0.033095628, -0.060428597, 0.020777287, -0.053635005, 0.043801483, 0.041369535, -0.0666142, -0.032408338, 0.009298232, -0.043114193, -0.011756614, 0.0056965714, 0.077822305, -0.010058216, 0.026288819, -0.0060732593, -0.02249551, 0.007150453, 0.0373251, -0.0028235037, -0.007124019, 0.020565813, 0.01423482, 0.00043162104, -0.003773483, -0.01579444, 0.030690115, -0.05334423, -0.004645812, -0.022786286, 0.013111367, 0.020962326, 0.015939826, -0.06751297, 0.02044686, 0.024861371, 0.0207112, -0.0068332427, 0.023566095, -0.035976958, -0.0403386, 0.021028413, 0.0036148778, -0.031721048, 0.048982587, -0.016785722, 0.0009590661, 0.019191233, 0.04298202, -0.07523175, 0.014869241, -0.023473576, -0.031721048, -0.00049440225, -0.027570877, -0.0066812458, -0.017499445, 0.01806778, -0.022217952, 0.025178581, -0.012470338, -0.025773352, 0.02135884, 0.0080822585, -0.025746917, -0.0025624658, -0.0021031715, 0.013983696, 0.00021663659, 0.01113541, 0.004047738, 0.037721615, -0.020869806, 0.0020387382, 0.04261194, -0.07248259, 0.03714006, -0.057520833, -0.03343927, -0.014644551, -0.041131627, 0.022257602, -0.034840286, 0.0061856043, -0.018371774, 0.03436447, -0.03148314, -0.00018483293, -0.025588313, -0.0067208973, 0.040999454, -0.018503945, 0.022944892, -0.02569405, -0.014472729, 0.07406865, -0.014670985, -0.08448373, -0.008947979, 0.039254796, -0.013124584, 0.0342323, -0.017221887, -0.06798878, 0.0063574268, -0.058789678, 0.056093387, -0.05019856, -0.02322245, -0.024663115, 0.0070843673, 0.00944362, 0.044145126, 0.010249863, 0.020010695, 0.031139497, -0.032646246, -0.012172952, -0.033571444, -0.01752588, -0.027438708, 0.01154514, -0.046048388, 0.013838307, 0.027967392, -0.030610811, 0.025495792, 0.011128801, 0.043061323, 0.019508446, -0.07301128, -0.022112215, -0.0007562661, 0.00013754048, 0.045784045, 0.0053595356, -0.03436447, 0.031773917, -0.018755069, 0.060534336, 0.0028499379, -0.013303014, -0.0023311665, -0.026896806, 0.011948261, -0.048956152, -0.016032347, -0.010011956, -0.005643703, 0.032646246, -0.016640333, -0.036584944, -0.04015356, -0.020526161, -0.059847046, 0.0071702786, -0.036109127, -0.009403969, -0.026606029, 0.043404967, 0.07237686, -0.027650181, 0.059159756, 0.006466468, 0.01127419, -0.02322245, -0.008439121, 0.023526445, 0.021213451, -0.0035851393, -0.0020023913, -0.000185659, -0.0036181821, -0.022310471, -0.038038824, -0.014538814, -0.03291059, 0.01971992, 0.05051577, -0.013957261, 0.0005195974, 0.022521945, -0.010613334, -0.02642099, -0.0039849565, 0.019521661, 0.021187017, 0.0011449315, 0.0028466338, 0.010018565, 0.047264364, -0.0302936, -0.040232863, -0.015093932, 0.07237686, 0.0105869, -0.06952196, -0.017235102, -0.008815808, -0.011221321, -0.024557378, 0.013032064, -0.0033934913, -0.0021130843, 0.0025938565, 0.016812155, -0.0023443836, -0.020380775, 0.013203886, -0.0057097888, -0.02714793, 0.035342533, 0.062437598, 0.022839155, -0.053502835, 0.013785439, 0.03550114, -0.026037693, -0.02454416, -0.018556813, -0.0025707267, -0.033069193, -0.03407369, 0.024821721, -0.03298989, -0.028866153, 0.021636399, 0.04631273, 0.02450451, 0.005379361, 0.027993824, 0.014631334, -0.036584944, -0.04052364, 0.030399337, 0.022138648, 0.02035434, 0.019521661, -0.03103376, -0.010078042, 0.027385838, 0.06455234, -0.042638376, -0.033967957, -0.024755634, -0.06449947, -0.029130496, 0.013124584, -0.0014761853, 0.0055082277, 0.007837743, -0.04329923, -0.031615313, 0.0413431, 0.017076498, 0.0005340536, -0.031086627, -0.04411869, 0.02108128, -0.019971043, -0.019006195, 0.0066415947, -0.049352665, -0.006932371, 0.058102388, -0.02679107, -0.012602508, 0.030002825, 0.004853981, 0.030108562, 0.041369535, -0.03518393, 0.018213168, -0.010230038, 0.01309815, -0.0013076672, 0.02463668, 0.014578465, -0.048215993, 0.031800352, 0.005478489, -0.023698267, 0.0011441056, 0.030505074, 0.02902476, 0.017816655, 0.0153847085, -0.017975261, -0.003449664, -0.06127449, -0.033597875, 0.0074544465, 0.011062715, 0.0036611378, 0.008604335, 0.008756331, 0.06545109, 0.009066933, 0.041739613, -0.018728636, 0.0006649855, 0.012536422, 0.0055280537, 0.046392035, 0.007414795, -0.0077320053, -0.01642886, -0.008690245, 0.028231733, -0.06407652, 0.030108562, 0.03991565, -0.02108128, -0.0025178583, 0.061856043, -0.0073619266, 0.03275198, 0.016204169, 0.0063772523, -0.0021923871, -0.0393341, -0.019442359, 0.0067473315, -0.04417156, -0.009470055, 0.016798938, -0.05376718, -0.0161513, -0.01966705, -0.06613839, 0.006793591, -0.014856025, 0.014472729, -0.04065581, -0.0076527027, -0.006998456, -0.009503097, -0.027306536, -0.04084085, -0.031456705, 0.000443186, -0.05210182, -0.009007456, 0.05191678, 0.008306949, 0.008802591, -0.039545573, -0.039862785, 0.004635899, 0.004507032, 0.016719636, -0.02085659, 0.02965918, -0.0068795024, 0.03769518, 0.021887524, -0.016138084, -0.034893155, 0.041263796, -0.017420143, -0.010428295, -0.0068927193, 0.007269407, 0.03951914, -0.015556531, 0.024345905, 0.0038759157, 0.072059646, -0.017737353, -0.0072627985, 0.025072845, 0.038541075, 0.050436467, -0.004057651, 0.0072363643, 0.055776175, 0.052286863, -0.0078046997, 0.043325666, 0.014525597, -0.011214713, 0.03235547, 0.009027282, 0.0063409056, 0.044277295, 0.010626551, -0.0064730765, 0.0026136823, 0.017724136, -0.020565813, -0.0028400251, 0.00087811134, 0.03714006, 0.009615443, -0.081946045, -0.011313841, 0.007877394, 0.0383296, -0.0020767373, 0.044832416, -0.027914522, 0.038805418, 0.044726677, 0.002514554, 0.039307665, -0.007507315, -0.0037173103, -0.034470204, 0.023949392, 0.009159452, 0.005187713, -0.021001978, 0.0093973605, 0.0011837569, 0.021557096, -0.0025905522, 0.014948544, 0.03764231, -0.0075535746, -0.033148497, -0.05762657, 0.021253102, -0.0383296, 0.017591964, 0.034919586, -0.023063846, -0.05503602, -0.0039221756, -0.04303489, -0.013223712, 0.044779547, 0.040682245, -0.00003033222, 0.08961196, 0.04660351, 0.022455858, 0.025469359, 0.03661138, -0.023804003, -0.044065822, -0.025535444, -0.029394839, -0.008947979, -0.032725547, -0.053555705, 0.032487642, 0.028548943, 0.019045847, -0.020724418, -0.00716367, 0.042056825, -0.012972587, -0.014988195, 0.021530662, -0.03386222, 0.0011052802, 0.026341688, -0.015252537, -0.03317493, -0.015715135, -0.058208123, 0.061538834, -0.0070843673, 0.019429142, -0.007989739, -0.037748046, 0.008194604, 0.011214713, 0.015939826, -0.0033521878, 0.041633878, 0.010824808, -0.03227617, 0.00036367687, 0.0035785309, 0.028892588, 0.027888088, 0.045784045, 0.05561757, 0.07951409, 0.018728636, -0.000341373, 0.046577074, 0.034575943, 0.008333384, 0.022469075, -0.03920193, 0.008571291, 0.073804304, -0.0207112, -0.0017810047, 0.030875154, 0.06983917, -0.041633878, 0.0013754049, -0.050674375, 0.0011193234, -0.042876285, 0.027914522, -0.05630486, 0.025707267, -0.020341123, -0.041078757, -0.00015209995, -0.011822699, 0.1966705, 0.05384648, 0.06386504, 0.066561334, 0.032461207, 0.016442077, 0.024055129, -0.009879785, -0.0032167125, -0.043827914, 0.02208578, -0.018186735, -0.016759288, -0.016349558, 0.02965918, 0.04705289, -0.017697701, 0.0007988087, -0.009641877, 0.015992695, -0.043404967, 0.040285733, -0.03769518, -0.014261255, -0.020182516, 0.0057890913, 0.024041912, -0.017803438, -0.027121497, -0.013798656, 0.027253667, -0.017539097, 0.0070843673, -0.024676332, -0.02277307, 0.044092257, -0.015490445, -0.04943197, -0.019680267, 0.017354056, -0.015371491, -0.042955585, -0.0073222755, 0.030557944, -0.028733984, 0.048480336, -0.00089132844, -0.030769417, 0.0042426903, -0.045942653, 0.04158101, -0.034470204, -0.032646246, -0.039730612, -0.022297254, -0.040365033, -0.020724418, -0.022521945, 0.008736505, 0.011888784, 0.03143027, 0.022416208, -0.043246362, -0.030875154, 0.010976804, -0.007414795, 0.010752114, 0.01665355, -0.00020424556, -0.027703049, 0.022878807, 0.022257602, -0.025191799, 0.017274754, 0.016759288, 0.011366709, -0.026896806, 0.049590573, -0.0034331426, -0.045784045, -0.00096815283, -0.0013745788, -0.01391761, -0.018649332, 0.049854916, 0.013336058, -0.0423476, 0.01601913, -0.03618843, -0.02098876, 0.054507334, 0.04279698, 0.009205713, 0.018900458, 0.0051943217 ]
Ready to try your hand at image classification? Check out our complete image classification guide to learn how to finetune ViT and use it for inference! CNN This section briefly explains convolutions, but it'd be helpful to have a prior understanding of how they change an image's shape and size. If you're unfamiliar with convolutions, check out the Convolution Neural Networks chapter from the fastai book!
[ 0.014043291, -0.004780931, -0.0016491069, -0.051499464, -0.023117077, -0.041087165, -0.014435232, -0.006714749, -0.047358207, 0.029772665, 0.008489572, 0.0060233073, 0.01888708, -0.041797094, -0.011210969, -0.0011286768, -0.0033980475, 0.0013394372, -0.037478358, -0.0076317415, -0.016032573, 0.01585509, -0.04531716, -0.007942336, -0.013510845, -0.019049773, 0.021993022, -0.00094010186, 0.061349735, 0.024389034, -0.007757458, -0.0052468223, 0.01125534, -0.031887665, 0.002995015, -0.024418615, 0.0049547157, -0.0392236, -0.034816124, -0.022377567, 0.020957708, 0.04883723, 0.0011231306, -0.05428002, -0.056084424, 0.00008313708, -0.0015335585, -0.047091987, -0.019168094, -0.019108934, -0.031384796, -0.0057533863, 0.013636561, -0.0020632325, -0.010693312, -0.009576652, -0.012837891, -0.0003702171, -0.012224098, 0.018280683, 0.04916261, 0.022895224, -0.009406565, -0.034520317, 0.020558374, 0.015485336, -0.01348866, -0.03171018, -0.041057587, -0.02484753, -0.028234486, 0.016239636, -0.011210969, -0.032834236, -0.041323807, -0.015677609, 0.008275115, 0.03085235, -0.030556547, 0.03904612, 0.03250885, 0.007927545, -0.018946242, -0.0048289993, -0.0020965103, -0.010582386, 0.011210969, -0.0052874954, 0.0066297054, -0.07247196, 0.005232032, 0.024566516, -0.04442975, 0.027805569, 0.015662817, 0.021667637, 0.011277525, 0.03762626, -0.007143665, -0.003599564, 0.028678192, 0.07548916, -0.027672458, 0.05777051, -0.060196098, -0.02335372, 0.021948652, 0.010138679, -0.029802246, 0.006348692, 0.01739327, -0.007816619, 0.008519153, -0.009717159, -0.0109225605, 0.032627173, -0.024492566, -0.00080976327, -0.045139678, -0.023812216, 0.012031825, -0.021164771, 0.018310264, -0.014035896, 0.07146623, -0.0060417955, 0.010197841, 0.02251068, -0.051647365, -0.0006304321, 0.014279935, -0.0014503637, -0.027228752, 0.013052348, 0.009332614, 0.004843789, -0.024167182, 0.00977632, -0.028086582, -0.015233902, 0.025217285, 0.01952306, -0.011491982, 0.0918767, -0.0155444965, -0.010715498, -0.011225759, -0.027006898, -0.028234486, -0.0073507275, -0.0345499, 0.0013154031, -0.007994101, 0.0030523269, -0.04960632, -0.016417118, -0.017067887, 0.026740676, -0.023457251, -0.0071547576, 0.031858083, -0.008785376, -0.023619944, 0.044695973, -0.03307088, 0.055285756, -0.016786873, -0.03913486, -0.016136104, -0.040880103, 0.04747653, -0.012549481, 0.030379064, 0.0018580185, 0.0074431663, 0.016993936, 0.099981725, -0.017644705, 0.012194517, -0.023886167, -0.025853263, -0.032449692, 0.0022351684, 0.03381039, -0.014050687, -0.012564272, -0.0025956794, 0.018975822, -0.0040192357, 0.016742503, -0.0031872874, 0.04534674, -0.043838143, 0.017851768, -0.04303947, 0.018132782, 0.0011850644, 0.006881139, 0.015958622, -0.03614724, -0.0026178649, 0.059131205, -0.014952889, 0.0025161821, -0.026799835, 0.02793868, 0.02641529, 0.043778982, -0.06454442, 0.0392236, 0.0064189453, 0.010338347, 0.014309515, 0.02784994, 0.023191027, -0.007868385, 0.0077278777, 0.03478654, 0.025246866, -0.029151477, 0.023412881, 0.024181971, 0.012749149, 0.014095057, 0.018635647, -0.0392236, -0.022436729, 0.013769673, 0.031148154, 0.019315997, 0.04144213, 0.057711348, -0.0137179075, 0.06714749, 0.0063006235, 0.0025660992, 0.029728295, 0.028441548, -0.006470711, 0.009850271, -0.006315414, -0.007017948, 0.035733115, -0.031266477, -0.008829747, 0.013651351, -0.001821043, 0.000045526074, -0.005305983, 0.015130371, -0.044666395, 0.05714932, 0.04141255, -0.001821043, -0.062000502, 0.00072980375, 0.018325053, 0.0058495225, 0.00034086782, -0.027361864, -0.023664314, 0.02109082, 0.01872439, -0.010626757, 0.04295073, 0.04883723, 0.011336685, 0.03614724, -0.032597594, -0.05886498, -0.041797094, -0.05425044, -0.08962859, -0.017570753, -0.0021464273, -0.04670744, -0.017038306, -0.029979728, -0.004544288, -0.009879851, -0.020351311, 0.011595514, -0.046441216, 0.06022568, 0.051529046, 0.017674284, -0.021933861, 0.031769343, -0.018251102, 0.04753569, 0.019907605, -0.025808893, -0.043956462, -0.0063856672, 0.017526383, -0.03975605, 0.0407322, 0.0059345663, -0.029905777, 0.01425775, -0.026149068, 0.02403407, 0.03315962, 0.037419196, -0.02861903, 0.042418282, 0.013148485, -0.029669134, 0.0059826346, 0.03996311, -0.01964138, 0.04984296, 0.015122976, 0.05206149, -0.017334111, 0.04806814, 0.02629697, -0.031384796, -0.003971168, -0.032627173, -0.014583134, 0.026518822, -0.001496583, -0.06028484, 0.014383466, 0.082233496, -0.016431909, -0.05963407, -0.028737351, -0.07548916, -0.031207314, 0.01956743, -0.008134608, 0.05111492, 0.050316248, 0.018606067, -0.078033075, 0.01203922, 0.018280683, 0.018191941, 0.0067887004, -0.023161449, 0.048334364, 0.026104696, -0.0037197345, 0.017437642, 0.030734029, -0.047269467, 0.0011314501, 0.012468136, 0.05052331, 0.032124307, 0.039253183, -0.006600125, -0.003518218, 0.002813835, -0.03540773, 0.03324836, 0.029890986, -0.025986375, -0.0094805155, -0.008526548, -0.0039083096, 0.013629166, -0.043335274, -0.012046615, -0.003974865, -0.00023687424, 0.042240802, -0.03744878, 0.0155888675, 0.016417118, -0.013961946, -0.0046293316, -0.012512506, -0.04892597, 0.034431577, 0.009436145, 0.041678775, -0.059693232, -0.006027005, -0.006348692, -0.017600333, 0.0019412133, 0.035703536, 0.041974578, -0.024285503, 0.009229083, 0.011536353, -0.0481273, 0.04457765, -0.02786473, -0.013643956, 0.0005814396, -0.063065395, -0.05404338, 0.043187372, -0.0025309725, -0.0013126299, -0.017408062, 0.024462985, -0.028500708, 0.011684256, 0.04502136, -0.018251102, -0.020040717, -0.014087662, 0.03599934, -0.008415622, 0.00017771346, -0.040465977, 0.015078605, -0.0045886585, -0.027494974, 0.0015298609, 0.0233833, -0.019049773, 0.0285155, -0.016934775, 0.017644705, 0.026548402, -0.02026257, -0.056114007, 0.027953472, 0.029757876, -0.064899385, 0.02409323, -0.02404886, 0.022007812, 0.043098632, -0.032863818, -0.022347987, 0.006995763, 0.0031188827, -0.056025263, 0.014908518, 0.062414628, -0.037981223, 0.002246261, -0.034964025, -0.012142751, -0.014072872, -0.02629697, -0.0049842964, -0.02779078, 0.016786873, -0.011765601, -0.0007755609, 0.020617533, -0.0043742005, 0.015026839, -0.07306357, 0.020277359, -0.032124307, 0.004281762, -0.011883923, 0.002887786, -0.03821787, 0.0467666, 0.0017008726, -0.034993604, 0.02117956, 0.056883097, -0.053392608, -0.041767515, 0.010759868, 0.036117658, -0.007609556, 0.02709564, -0.010959536, -0.023634734, -0.006718447, 0.013666142, -0.046382055, 0.0010343894, -0.011166599, -0.020528793, -0.015034235, -0.03608808, 0.014516578, -0.010456669, 0.011307105, 0.012268468, -0.029964939, -0.017600333, -0.040554717, 0.0202182, 0.0052135442, -0.031887665, 0.021416204, 0.03827703, -0.033307523, -0.009132946, -0.024995431, 0.017733445, 0.0036883052, -0.038691156, -0.00016627416, 0.052889742, -0.006718447, 0.052268554, -0.034254096, 0.0023386998, 0.016727712, -0.057356384, 0.022140924, -0.013643956, -0.015929041, 0.016875613, 0.0003071277, -0.047801916, 0.033425845, -0.024655258, 0.033899132, 0.00794973, -0.018532116, -0.013215041, -0.024300292, -0.004895555, 0.029447282, -0.009495306, -0.055847783, -0.025749732, 0.004814209, -0.020129457, 0.025365187, 0.026119487, -0.050730374, 0.009436145, -0.029255008, 0.031177735, -0.025261655, 0.022377567, -0.05569988, -0.021371834, 0.021800749, 0.018443376, -0.0034904864, -0.013207645, -0.013414708, -0.032715913, -0.013814043, -0.007051226, -0.020011136, -0.008785376, -0.016239636, -0.022037392, 0.024492566, 0.01012389, -0.05549282, 0.019700542, 0.00794973, 0.03999269, 0.047210306, -0.08371251, -0.012453346, 0.01647628, -0.028367598, 0.021608477, 0.018236313, -0.02103166, 0.03898696, -0.015219112, 0.067265816, -0.051469885, -0.037862904, -0.04138297, -0.0030486293, 0.022096554, -0.01891666, -0.0039046118, -0.038661573, 0.00032099348, -0.000654004, 0.020824596, -0.04129423, -0.019892814, -0.009813296, -0.050671212, 0.036354303, -0.0029229126, -0.010929955, 0.006862651, 0.032124307, 0.04584961, -0.046234153, 0.07247196, 0.0556703, 0.009635813, -0.012579062, -0.03632472, 0.026844207, -0.012660408, 0.011011302, -0.023013545, -0.02029215, -0.019626591, -0.0011397696, -0.033307523, -0.044104367, -0.04064346, 0.008186374, 0.033544164, -0.0052246368, 0.017570753, -0.03162144, 0.015988203, -0.047210306, 0.010116494, -0.008363856, 0.011950479, 0.029373331, 0.0049658082, -0.02117956, 0.046234153, -0.045435484, -0.0331892, -0.010049938, 0.07572581, 0.012616037, -0.05472373, 0.047831494, -0.0029247613, -0.018472955, -0.0052616126, 0.016165685, 0.008948069, 0.006503989, 0.0013764127, 0.009576652, 0.04082094, -0.0038750314, 0.004788326, 0.0072213137, -0.060698967, 0.010663732, 0.01736369, -0.03383997, -0.05809589, -0.0001747092, 0.043335274, 0.0002523577, 0.009865061, -0.047594853, 0.014841963, -0.01872439, -0.03381039, 0.016993936, -0.0042595766, -0.024344664, 0.005953054, 0.01879834, 0.031443957, -0.013658746, -0.006263648, -0.0066038226, -0.015004654, -0.070874624, -0.007265684, 0.018251102, -0.010101704, 0.03295256, -0.022066973, -0.011787786, 0.028086582, 0.0141468225, -0.025823683, -0.057563446, 0.02702169, -0.043216955, -0.04599751, -0.018236313, -0.014952889, -0.019168094, 0.03313004, -0.03012763, -0.020440051, 0.031858083, 0.006618613, -0.019049773, -0.006833071, -0.042595766, 0.006500291, -0.023176238, -0.019123724, -0.0013514542, -0.038247447, 0.02185991, 0.03159186, -0.0071880356, 0.024255922, 0.03860241, 0.005391027, -0.031828504, 0.009450936, -0.033751227, -0.030674867, 0.021593686, 0.028352806, -0.049192194, 0.043778982, 0.009709764, -0.04741737, 0.014072872, 0.012867471, 0.0013671687, -0.011455007, -0.019330787, 0.036709268, 0.001737848, 0.018132782, 0.0013209494, 0.021268303, -0.059574913, -0.031946823, -0.023250189, 0.0027121522, 0.020632325, 0.020040717, 0.032005984, 0.065727636, 0.0050730375, 0.03156228, -0.017910928, 0.039489824, 0.04570171, 0.014627504, 0.007469049, 0.02419676, -0.006526174, -0.008445202, -0.011107437, 0.023930538, -0.02480316, 0.03996311, 0.023013545, -0.010856004, 0.0052246368, 0.002107603, 0.029447282, 0.026844207, 0.05268268, -0.06182302, 0.009340009, -0.00942875, -0.004451849, -0.0019208768, -0.036531784, -0.020055506, -0.010567595, -0.037064232, 0.0116177, -0.010722892, -0.06040316, 0.017629914, 0.029166268, 0.024389034, -0.047683593, 0.051410723, 0.0017323018, -0.012593852, -0.037862904, -0.044784714, -0.008770587, -0.0009659847, -0.016698131, -0.02330935, 0.041678775, 0.04135339, 0.01881313, -0.042595766, -0.051765688, -0.0008472009, 0.03836577, 0.005036062, -0.058450855, 0.025143335, -0.05501953, 0.03218347, -0.0035367056, -0.025394768, 0.0035163693, 0.033514585, 0.026696304, -0.032035567, -0.009177317, -0.0057016206, 0.00823814, -0.012224098, -0.00023872302, 0.011928294, 0.059693232, -0.014967679, 0.00057774206, -0.0074764444, 0.031148154, 0.044873457, 0.021430995, -0.00037530123, 0.027879521, 0.06300624, -0.024862321, 0.0016796117, 0.034756962, -0.007535605, 0.018413795, 0.03088193, 0.023087496, 0.0019633987, -0.0036291445, 0.0056942254, 0.019404737, 0.029210638, -0.011277525, -0.011809972, 0.0038639389, 0.011543748, 0.0146349, -0.03537815, -0.015766349, -0.025143335, 0.047151145, 0.022185294, 0.017600333, 0.00469219, 0.03386955, 0.029905777, 0.028145744, 0.014479603, 0.02712522, 0.009280848, -0.029698715, 0.04440017, -0.04357192, -0.025587039, -0.009709764, -0.013636561, -0.0556703, 0.023841796, -0.0021445784, -0.04975422, 0.017082676, -0.02190428, -0.0155444965, -0.06454442, 0.028130954, -0.047654014, 0.0047698384, 0.015426175, 0.004551683, -0.035259828, -0.0070253434, -0.015352224, 0.018384214, 0.026104696, 0.02030694, 0.00823814, 0.07968958, 0.050316248, 0.02183033, 0.054309603, 0.029595183, -0.032005984, 0.008593104, -0.0057607815, 0.02712522, -0.018620858, -0.047683593, -0.048511844, -0.01882792, 0.01799967, 0.0056128795, -0.03999269, 0.018961031, -0.0141911935, -0.01277873, 0.009990778, 0.09802942, 0.022910014, 0.012076195, 0.0155001255, -0.0013209494, -0.031325635, -0.02637092, -0.042773247, 0.063065395, -0.010131285, -0.03372165, -0.0069661825, -0.05939743, 0.0037382222, 0.007964521, -0.0058754054, -0.016846035, 0.05028667, 0.0061046537, 0.035437312, 0.04067304, 0.0016361654, -0.016062154, 0.03150312, 0.027598506, -0.0074801417, 0.06862651, 0.042299964, -0.016106524, 0.029846616, -0.006012215, 0.055463236, -0.02332414, -0.010929955, -0.020011136, 0.009613628, -0.0481273, -0.015618447, 0.016905194, 0.05945659, -0.020040717, 0.024285503, -0.073418535, 0.03141438, -0.053008065, -0.0030005611, -0.05496037, 0.057031, 0.02635613, -0.002813835, -0.0056868307, -0.052031912, 0.26196396, 0.05510827, 0.030615706, 0.04067304, 0.040880103, 0.041737933, 0.02783515, -0.034964025, -0.0005245898, 0.021993022, 0.0119135035, -0.029107107, -0.0008841764, -0.024226341, 0.019123724, 0.068981476, -0.04425227, -0.006330204, -0.005391027, -0.013104114, -0.049044292, 0.03750794, -0.012948817, 0.048363943, 0.0004490211, 0.0027583716, -0.00025097115, -0.04602709, 0.0023165145, 0.001188762, 0.004673702, -0.035673954, 0.009598837, -0.025128543, -0.00017944668, 0.07134791, 0.03392871, -0.049310517, -0.018458165, 0.029950147, 0.0061231414, -0.041619614, 0.039016537, -0.0045590783, -0.056084424, 0.056823935, -0.009251268, 0.013030163, 0.015677609, -0.049902122, 0.062000502, -0.048748486, 0.024536936, -0.036798008, 0.0028748445, 0.0059678443, -0.047801916, -0.051174078, 0.0053355633, 0.032834236, 0.046441216, 0.017748237, 0.005365144, -0.012076195, 0.007487537, 0.028441548, -0.02860424, 0.02709564, -0.016934775, 0.012497716, 0.02789431, 0.011388451, -0.021578897, -0.038957376, 0.039608147, 0.050168347, -0.022910014, 0.059574913, 0.0007811072, -0.047772333, -0.016121315, -0.026060326, 0.017215788, -0.041856255, 0.016387537, 0.03845451, -0.021800749, 0.0072065233, -0.017733445, 0.0030819073, 0.00015032849, 0.023797426, 0.024684837, 0.030704448, -0.02407844 ]
The output, specifically only the output with the [CLS] token, is passed to a multilayer perceptron head (MLP). ViT's pretraining objective is simply classification. Like other classification heads, the MLP head converts the output into logits over the class labels and calculates the cross-entropy loss to find the most likely class. Ready to try your hand at image classification? Check out our complete image classification guide to learn how to finetune ViT and use it for inference! CNN
[ 0.03564545, 0.011094468, 0.0033677078, -0.019340163, 0.024178782, 0.0003131503, -0.007673077, -0.008682315, -0.014659013, 0.06052569, 0.012282649, 0.014480069, 0.040312286, -0.05311029, -0.061327353, -0.025395595, 0.0024210992, -0.038737588, -0.051564224, 0.0077876006, -0.021516109, 0.011681401, -0.06522115, -0.028287314, -0.022532506, 0.006792677, 0.059781287, -0.0002581253, 0.048729766, 0.046067093, 0.010665004, 0.008381692, 0.011402249, -0.0192829, -0.023820896, 0.0025087812, 0.012375699, 0.010135333, -0.025982527, -0.019683734, 0.015031214, 0.01312726, 0.012590432, -0.042345077, -0.04074175, -0.0015916983, 0.01303421, -0.036647532, 0.0006012486, 0.012368542, -0.028859932, 0.0016176449, 0.024737084, -0.010987102, -0.0070431973, -0.002999085, 0.0012472329, 0.0229906, 0.021530425, -0.03395623, 0.0405127, -0.01570404, -0.019841203, -0.0447787, 0.016978115, 0.01962647, -0.013563882, -0.033469502, 0.0010620268, -0.03561682, -0.06321699, -0.0049388274, -0.027356809, -0.04105669, -0.039367467, 0.005955224, -0.019669417, 0.046067093, -0.023949735, 0.009727343, 0.031551234, 0.01359967, -0.035759974, -0.00084058486, -0.048472088, -0.04984637, 0.049817737, 0.018381028, 0.037764136, -0.03533051, -0.011731504, 0.019182693, -0.0007877967, 0.011989183, -0.012146653, 0.014143657, -0.010743739, 0.055572547, 0.009147568, 0.028187105, 0.016806329, 0.08680884, 0.035559557, 0.056517366, -0.04019776, 0.02007025, -0.0127479015, 0.0047634635, -0.025395595, -0.021773787, -0.03730604, -0.012898213, 0.008360218, -0.0152602615, -0.004505785, 0.021358639, 0.029862013, 0.012948317, -0.053911954, -0.0090187285, 0.0251236, -0.039338835, 0.0026233047, -0.0065815244, -0.015603832, -0.058979623, -0.0666527, 0.0111660445, -0.019368794, 0.020156143, -0.012275492, -0.0042982115, -0.012175283, 0.051621486, -0.0105576385, -0.021902626, 0.010879736, 0.009920602, -0.012755059, 0.012024972, 0.025567379, -0.049101967, -0.027729012, 0.07535648, -0.028702462, 0.010121018, -0.03942473, 0.014215234, -0.03853717, -0.0097345, -0.022317775, 0.025825057, 0.004699044, 0.004029797, -0.063331515, -0.01865302, -0.044807333, 0.032181114, 0.025309702, 0.026011158, -0.00073545583, -0.0034589686, -0.020327928, 0.031007247, -0.022188935, 0.088240385, -0.03853717, -0.034500215, 0.0035305459, -0.047097806, 0.0108439475, -0.0036629636, 0.016749067, -0.00819559, 0.0231767, 0.042316448, 0.03862306, -0.012898213, 0.024550984, 0.0012391804, -0.008238537, -0.01896796, 0.0032496054, 0.025080655, -0.01199634, -0.01070795, -0.010078072, 0.012690639, -0.030320106, 0.011681401, 0.0032406582, 0.06779794, -0.05016131, 0.018266505, -0.025037708, -0.015346154, -0.0046382034, -0.038021814, 0.029003086, -0.011287726, -0.013055683, 0.04306085, -0.015632464, -0.02188831, -0.039453357, 0.018681651, 0.03369855, 0.06436223, -0.05279535, 0.005615232, 0.034843788, 0.014845113, 0.012483065, 0.008782524, 0.016920853, -0.01796588, 0.005525761, -0.022718607, -0.00474199, -0.0101925945, -0.00229226, 0.017393261, 0.033927597, 0.03401349, 0.022103043, -0.00860358, -0.003348024, 0.016591597, -0.042173292, 0.044835966, -0.014215234, 0.027671749, -0.032667838, 0.008338745, 0.06184271, 0.028716777, 0.0428318, 0.021186855, -0.031207664, -0.009068833, 0.030434629, 0.015374784, 0.014673328, -0.00028161157, 0.0016963799, 0.018066088, 0.009569873, 0.022818815, -0.021959888, 0.0063453196, -0.049445536, 0.016133504, 0.006230796, -0.0034947572, -0.05379743, 0.02154474, -0.021444533, 0.057462186, -0.00948398, -0.048729766, 0.003052768, 0.020957807, -0.020642867, -0.021358639, 0.057204507, 0.06184271, 0.02801532, 0.03472926, -0.0025839373, -0.028272998, -0.0042660017, -0.076215416, -0.07707434, -0.034815155, -0.03209522, -0.045551736, -0.005128507, -0.038422648, 0.0031851858, 0.010801001, -0.01604761, 0.0025087812, -0.0129912635, 0.031093141, -0.0023727845, 0.019855518, -0.026311783, 0.046611078, 0.014902376, -0.012919687, 0.024751399, -0.03756372, -0.013549566, -0.0007475345, -0.013077157, -0.011438038, 0.020514028, -0.007644446, -0.011917605, -0.014859429, -0.041886985, -0.040913533, -0.0041264263, 0.025581695, 0.014358388, 0.016119188, 0.019168377, -0.0050998763, 0.031980697, -0.009612819, -0.021215485, 0.020542659, 0.011803082, 0.027342495, -0.03304004, 0.047813576, 0.015474993, -0.022561137, -0.00040776643, -0.023820896, -0.0018055352, -0.014422808, 0.017922934, -0.062243544, -0.021272747, 0.048386194, -0.03558819, -0.06338878, -0.0229906, -0.012211072, -0.02509497, 0.01702106, 0.009512612, 0.014379862, 0.024708454, -0.0015102791, -0.05250904, 0.0027091973, 0.005855016, 0.037048362, 0.020657184, -0.025381278, 0.007995174, 0.011989183, 0.016605914, 0.0067676255, 0.0027002504, -0.039081156, 0.03853717, -0.013177364, 0.04406293, 0.030033797, 0.020027304, -0.033440873, 0.014701959, -0.015231631, -0.01997004, 0.028129844, -0.001284811, -0.021630634, 0.027929427, 0.03301141, -0.035445035, -0.025180863, 0.01077237, 0.009190514, 0.06510663, -0.024207413, 0.032753732, -0.039711036, 0.004595257, 0.024579614, -0.025810743, 0.01815198, -0.0007171142, -0.0502472, 0.057777125, 0.020113196, 0.047011912, -0.04137163, -0.04025502, 0.015847195, -0.0014735959, 0.003052768, 0.03985419, 0.029432548, -0.024665507, 0.01830945, -0.012912529, 0.001912901, -0.02154474, 0.011330673, -0.011352145, -0.017550731, -0.01686359, -0.028602254, 0.021301378, 0.04506501, 0.003090346, 0.027900796, 0.050733928, -0.029547073, 0.031808913, 0.025996843, -0.0015290681, -0.038021814, -0.036790688, 0.03693384, 0.0025069918, -0.033240456, -0.023706373, 0.010042283, -0.0032388687, -0.013492304, -0.0064491066, 0.015303208, -0.011402249, -0.037706874, 0.012160968, 0.052709457, -0.020356558, -0.03490105, -0.04274591, 0.025266755, 0.050075416, -0.07570006, -0.0025714112, -0.073295064, 0.04993226, -0.002528465, -0.040627226, -0.012919687, -0.014336916, -0.046095725, -0.03684795, 0.060182117, 0.049388275, -0.023577534, 0.018323766, -0.017264424, -0.016734751, -0.00096897647, 0.042259187, -0.035187356, 0.013971872, 0.027915113, 0.047470007, 0.017293055, -0.016963799, -0.008861259, 0.03948199, -0.01881049, 0.032581948, -0.028788354, 0.03401349, -0.0017366421, 0.002362048, -0.026755562, 0.049101967, -0.0026018317, -0.006488474, -0.0005153559, 0.027127763, -0.049674585, -0.021788104, 0.012203914, -0.0021652107, 0.009755974, 0.012526012, 0.027185025, 0.02204578, -0.015718356, 0.061384615, -0.043662097, 0.004856514, -0.046725605, 0.009369457, -0.009283564, -0.0080452785, -0.010643532, -0.02462256, -0.0022045781, -0.01896796, 0.0009143989, -0.01815198, -0.040942166, -0.0077732853, 0.029275078, -0.042488232, -0.004799252, 0.01029996, 0.014136499, 0.03653301, -0.012010656, 0.0050354567, 0.022375036, -0.02367774, 0.0003109135, 0.015346154, -0.035702713, 0.021458847, -0.015446362, 0.00810254, -0.005074824, -0.028258683, 0.037764136, -0.037964553, 0.00086563686, 0.003498336, 0.017407577, 0.00044981804, 0.025581695, -0.015532254, -0.03206659, 0.04798536, 0.012110864, -0.03724878, -0.031493973, -0.012046444, 0.065507464, -0.028072583, -0.054341417, -0.04145752, 0.028158475, 0.02301923, 0.013685563, 0.019340163, -0.03942473, -0.03916705, -0.0012606536, 0.06367508, -0.069057696, -0.03366992, -0.018051773, -0.026741246, -0.00021540267, 0.024164466, -0.023849526, -0.0071398267, 0.012590432, -0.0147735365, 0.03558819, 0.012726428, -0.0732378, 0.0054756566, -0.018423975, -0.05706135, 0.021988519, -0.016333919, 0.0028434047, 0.011108783, 0.025710534, 0.04500775, 0.022876076, -0.045437213, -0.037019733, 0.009619977, -0.04314674, 0.04915923, 0.011724347, -0.016906537, 0.017550731, -0.03172302, 0.0022117358, -0.067511626, 0.01686359, -0.0006003539, -0.059552237, -0.010292803, -0.05142107, -0.009526927, -0.058807835, 0.020671498, -0.0058908043, -0.015632464, -0.04409156, -0.047870837, -0.024350567, -0.03472926, 0.023692057, -0.021974204, 0.017307369, -0.0125045385, 0.02770038, 0.03535914, -0.0044091563, 0.015532254, 0.056717783, 0.0011058679, -0.04595257, -0.025395595, -0.009863339, 0.03338361, -0.04603846, -0.024894554, -0.02173084, -0.022933338, -0.029403917, -0.064419486, -0.06917222, -0.028473414, 0.06676722, 0.029403917, -0.04752727, 0.022604084, 0.010750897, -0.0056545995, -0.035473667, 0.0120178135, 0.0062701637, -0.006577946, 0.013134418, 0.010321434, 0.015102792, 0.08365944, -0.037735507, -0.017407577, 0.0004880671, 0.04506501, -0.015947402, -0.034128014, 0.008274325, 0.011101625, -0.03137945, -0.031293556, 0.0050640875, 0.014487227, 0.008059594, -0.023906788, -0.024178782, -0.026612407, -0.009906285, -0.0035305459, 0.038394015, -0.008911363, 0.012840952, 0.024278989, 0.014701959, -0.035244618, 0.04406293, 0.031608496, 0.01931153, -0.02606842, -0.034757894, 0.04042681, -0.033125933, 0.020972123, 0.049187858, -0.006781941, 0.013091472, 0.044979118, 0.009269249, 0.04600983, 0.009247775, -0.0058478583, -0.0070467764, 0.012196757, -0.018237874, 0.034471583, -0.0013707036, 0.007315191, 0.026812823, -0.026039788, -0.017164215, 0.043518946, 0.03567408, -0.017765464, -0.051134758, 0.0024604667, -0.069687575, -0.05603064, -0.048128515, -0.01190329, 0.023634795, 0.016906537, 0.03458611, -0.036074914, 0.003918852, 0.0003807013, -0.024708454, 0.012969791, -0.0029507705, -0.0006567209, -0.01287674, -0.0021723683, -0.020499714, -0.011330673, 0.01020691, 0.00631311, 0.009226303, -0.003850854, 0.03163713, 0.0046274667, -0.004563047, 0.03684795, 0.0062737423, -0.005457762, -0.04300359, 0.027571542, -0.00066656276, 0.021358639, 0.018910699, -0.047384113, 0.016734751, -0.0063345833, -0.043518946, -0.0073796106, 0.049016073, 0.048013993, -0.024092888, -0.0015755934, -0.000683115, 0.021687895, -0.0018377448, -0.042917695, -0.01604761, 0.0027091973, -0.029375287, 0.03535914, 0.031608496, 0.1041019, 0.0047062016, 0.029747488, -0.007859178, 0.029947905, -0.0066638384, 0.03567408, 0.05213684, -0.00028720355, -0.000948398, -0.030262845, -0.0350442, 0.03916705, -0.04409156, 0.01589014, 0.031579867, -0.023577534, -0.013019894, 0.05794891, -0.067053534, 0.050648034, -0.0051213494, -0.011602666, 0.022332089, -0.024679823, 0.014014818, -0.031579867, -0.043977037, -0.064247705, 0.018552814, -0.04277454, -0.008174118, -0.021029385, -0.011344988, 0.004280317, 0.019010907, 0.04337579, 0.0004542916, -0.005536497, 0.03163713, -0.007966544, -0.04211603, 0.0057905964, 0.01749347, -0.053253446, -0.063961394, -0.021287063, 0.053597014, 0.07925028, -0.012619062, -0.039338835, -0.033469502, 0.0171499, 0.017106954, 0.010529008, -0.02072876, 0.04890155, -0.021788104, 0.03335498, -0.0077947583, -0.041572046, 0.002961507, 0.053826064, 0.00015198973, 0.0025141495, -0.021186855, 0.0074010836, 0.02349164, -0.018051773, 0.048185777, 0.012432962, 0.0447787, 0.032267008, 0.004291054, -0.021143908, 0.022503875, 0.043576207, 0.015933087, 0.0009130568, 0.06865686, 0.007053934, 0.0150168985, 0.0075585535, 0.04434924, -0.012432962, -0.0021151067, 0.005740492, -0.02622589, 0.017035376, 0.0054255524, 0.011516773, -0.03464337, -0.00430179, 0.011115941, 0.02088623, -0.008560634, 0.043805253, -0.011130257, -0.04526543, -0.03690521, 0.058349743, 0.023219647, 0.046525188, 0.0097345, 0.026913032, 0.013957556, 0.015990349, -0.0054792357, 0.041342996, -0.038651694, 0.025524434, -0.000063468855, 0.04182972, -0.014873744, -0.009612819, -0.024436459, 0.01573267, -0.020628553, 0.007057513, -0.033612657, -0.030864093, 0.034872416, 0.004845777, -0.05342523, -0.06556472, -0.004981774, -0.074211255, 0.016477074, 0.020986438, -0.011516773, -0.0212298, 0.0076158154, -0.020929176, -0.022460928, 0.015174368, 0.014616067, -0.019497633, 0.087954074, -0.018796176, 0.021344325, 0.021444533, 0.03767824, -0.010894052, 0.00898294, -0.015002583, -0.0031136086, -0.0026465673, -0.035130095, -0.058092065, 0.037134256, 0.023348486, 0.019526264, -0.0037613823, -0.01975531, 0.023620479, -0.014494385, -0.021559056, 0.03716289, -0.0053933426, -0.037449196, 0.0033909704, -0.024364883, -0.036160808, -0.047183696, -0.029804751, 0.054198265, -0.022103043, -0.03759235, -0.02157337, -0.04377662, 0.0005869331, 0.04503638, 0.0029292973, -0.041342996, 0.034872416, 0.031808913, 0.034929678, -0.005139244, -0.018280819, -0.01127341, 0.059781287, 0.031035878, -0.00023128386, 0.07489839, 0.05605927, 0.022561137, 0.034614738, 0.00543271, 0.0145301735, 0.014594593, -0.023692057, 0.010027967, 0.05345386, 0.015074161, -0.020299297, 0.017607994, 0.08818312, -0.006570788, -0.0052466094, -0.037134256, 0.0024032048, -0.057519447, 0.032496054, -0.02201715, 0.022561137, -0.026326098, -0.04268865, -0.018266505, 0.00077750743, 0.24301894, 0.058807835, 0.030606415, 0.017436208, 0.03206659, 0.010965629, -0.013198838, 0.0016829591, -0.011223307, 0.0010477115, 0.055916116, -0.04666834, -0.0012749691, -0.011488142, 0.021215485, 0.035387773, -0.006431212, -0.023405747, -0.008517688, -0.040340915, -0.058378372, 0.041342996, -0.007565711, 0.025638957, -0.012733586, -0.006774783, 0.037449196, -0.011216149, -0.008911363, -0.026755562, 0.006499211, -0.011781609, 0.031007247, -0.013141576, -0.042316448, 0.05794891, -0.022346405, -0.06127009, -0.018080404, -0.0323529, 0.003997587, -0.020356558, -0.010106702, 0.0030599257, -0.0015729092, 0.040598594, 0.013277573, 0.043347158, 0.03409938, -0.097574055, 0.0034732842, -0.030606415, 0.020170458, -0.05408374, -0.04532269, -0.03553093, -0.023534587, -0.027185025, 0.05637421, 0.032982778, 0.03724878, 0.020786023, -0.022890393, 0.011230464, 0.020542659, -0.015532254, 0.006985936, 0.036189437, 0.03269647, -0.032896888, 0.018452605, -0.020585606, -0.023090808, 0.0008141908, 0.03366992, 0.022775868, 0.0069680414, 0.028287314, -0.02591095, -0.04503638, -0.038079076, -0.0012964422, 0.014136499, -0.0045558894, 0.018595759, 0.046067093, -0.018166296, -0.0045129433, -0.06464854, 0.036790688, 0.031665757, 0.052709457, -0.0115310885, 0.0026268836, 0.00728656 ]
A basic convolution without padding or stride, taken from A guide to convolution arithmetic for deep learning. You can feed this output to another convolutional layer, and with each successive layer, the network learns more complex and abstract things like hotdogs or rockets. Between convolutional layers, it is common to add a pooling layer to reduce dimensionality and make the model more robust to variations of a feature's position. ConvNeXT modernizes a CNN in five ways:
[ 0.0451612, -0.01859074, -0.0024811488, 0.007121684, 0.029316168, -0.004694162, -0.015916534, -0.0027796733, -0.025497917, 0.038697343, -0.00045225554, 0.003244442, 0.0577171, -0.03486479, -0.030488815, -0.008115574, 0.00032578487, -0.06149245, -0.04865054, 0.036495056, -0.026441755, 0.018376233, -0.07293291, -0.04141445, -0.03889755, -0.024167962, 0.035265207, -0.0054806937, 0.068471126, 0.013149374, 0.011926675, -0.012248438, 0.03386375, 0.017289389, -0.032262087, -0.009474128, 0.021136243, 0.0052840607, -0.029659383, -0.013714246, 0.033806548, -0.01554472, 0.03961258, -0.03969838, -0.05417056, 0.0053734393, 0.0054091904, -0.034264166, -0.018118823, -0.0035626295, -0.040813826, -0.016374152, -0.02884425, -0.017947216, 0.008701897, 0.020464115, -0.0011261699, 0.031318247, -0.00022154712, -0.014350622, 0.06532501, 0.018733747, -0.014271969, -0.037238684, 0.018204626, 0.038010914, -0.0016561848, -0.04135725, 0.033949554, -0.038754545, -0.06635465, -0.003097861, -0.018948255, -0.042301085, -0.038811747, 0.016116742, 0.010496618, 0.03537961, -0.018576441, 0.04693447, 0.032948513, -0.0017696955, -0.038725942, -0.010925636, -0.02960218, -0.023881951, 0.035093598, -0.0055557713, -0.008108423, -0.024768587, -0.017503899, 0.029459175, 0.019749086, 0.011383254, -0.013442536, 0.032204885, -0.04238689, 0.039326567, 0.045990635, 0.038211122, 0.0055271704, 0.043073315, 0.009574232, 0.059661977, -0.038296927, -0.007500649, -0.005595098, -0.014929795, -0.03086063, -0.06120644, -0.00752925, 0.008823452, -0.0001329506, -0.002797549, 0.025126101, -0.009216717, 0.033806548, 0.023996357, -0.07173166, -0.023681743, 0.0032909187, -0.033291727, -0.020163804, -0.010489468, 0.015973737, -0.049851786, -0.030231405, 0.028758446, -0.032548096, -0.03989859, -0.002881565, -0.0093454225, -0.0064102304, 0.061778463, 0.0021879873, -0.025054598, 0.0024722111, 0.016602961, -0.0015462491, -0.014758188, 0.022895213, -0.040241804, 0.011419005, 0.07201767, -0.011626364, 0.0200351, -0.03137545, -0.01429342, -0.04295891, -0.00085043703, -0.01906266, 0.018361932, -0.013235178, 0.020392613, -0.046905868, -0.0045511564, -0.061034832, 0.027399892, -0.0049551474, 0.015887933, 0.022280289, 0.012634554, -0.04064222, 0.03309152, -0.039841387, 0.0804264, -0.041700464, -0.01657436, 0.011368953, -0.0017357317, 0.008251429, -0.015230107, 0.0017661204, -0.016402753, 0.04287311, 0.027499996, 0.015973737, -0.014743888, 0.023152623, -0.0070072794, -0.0119695775, -0.00853029, 0.0032033278, 0.002663481, -0.0050123497, -0.030288607, 0.024411073, 0.016417054, -0.014529379, 0.042301085, 0.011140144, 0.06910036, -0.062350485, 0.017232187, 0.0021450855, -0.029316168, -0.029273266, -0.043302126, 0.058575135, -0.03409256, -0.029945394, 0.027328389, -0.02561232, -0.046534054, -0.04109984, 0.014157564, 0.006599713, 0.055371806, -0.010882733, 0.028872851, 0.01303497, 0.021393653, 0.009273919, 0.020864531, 0.03783931, 0.0039684083, 0.03206188, -0.0026831445, 0.021150542, -0.030317208, 0.047592297, 0.026184343, 0.04212948, 0.0046762866, -0.027700204, 0.02735699, 0.020049399, 0.02285231, -0.009681486, 0.030660423, -0.008923556, 0.02963078, -0.028272226, 0.00953133, 0.036723863, 0.053083714, 0.021236347, -0.007951117, 0.0022112257, -0.020907434, 0.009953197, 0.026255846, 0.021493757, 0.0251118, 0.0096314335, 0.010482318, -0.022995317, 0.0061027682, -0.007700857, 0.0007431827, -0.035494015, 0.043273523, 0.005194682, -0.014450726, -0.07407695, 0.0014014558, 0.0138072, 0.031032236, -0.028729845, -0.026470356, 0.000065302214, 0.014093212, -0.03692407, -0.032776907, 0.043988552, 0.046476852, 0.013278079, 0.056315646, 0.019205665, -0.0043366477, -0.026055638, -0.07905355, -0.0751638, -0.03786791, -0.023481537, -0.02481149, -0.0038790295, -0.056601655, 0.0024114337, 0.01683177, -0.02731409, 0.012970617, -0.0017598639, 0.020521319, 0.037753504, 0.034836188, -0.018619342, 0.052568894, 0.016431356, 0.00071726297, 0.04118564, -0.007700857, -0.008194227, 0.004765665, -0.015315911, -0.016274048, -0.014128963, 0.008158475, -0.034492973, -0.016817471, -0.055772223, -0.029544977, -0.0030370837, -0.00030835604, -0.010825532, 0.0029745186, -0.023495836, -0.018476337, 0.053512733, 0.0005273335, -0.025555119, -0.0017366254, -0.010339312, 0.026799269, -0.0226092, 0.042615697, 0.01959178, -0.00613852, -0.024125062, -0.028972955, -0.014164714, 0.0113046, -0.007808111, -0.03134685, -0.03938377, 0.04135725, 0.019134162, -0.08757669, -0.006678366, -0.015215807, -0.055085797, -0.01954888, -0.026170043, 0.043502335, 0.024511177, 0.00977444, -0.030975034, 0.0024686358, 0.018719446, 0.025898332, 0.022366092, -0.03537961, 0.013228027, 0.025769627, 0.023352832, 0.018476337, 0.014186165, -0.04790691, 0.046562657, -0.010560971, 0.028515337, 0.054656778, 0.04910816, -0.030517416, 0.0017607576, -0.017689805, -0.056287043, 0.028286528, 0.018104522, -0.047477894, 0.037982315, 0.01631695, 0.011662114, -0.02406786, -0.00044175354, 0.016474256, 0.05419916, 0.020378312, 0.036495056, -0.028686943, 0.010096203, 0.02382475, -0.016817471, 0.016774569, 0.046648458, -0.02080733, 0.040813826, 0.016245447, 0.033949554, -0.05920436, -0.01603094, 0.011962427, 0.01328523, 0.004068512, 0.030317208, 0.034264166, -0.027714504, -0.018676544, -0.040098798, -0.0113475025, -0.009445527, 0.010131954, -0.02960218, -0.029773787, -0.018762348, -0.03812532, 0.025941234, 0.038725942, 0.013371033, 0.020750128, 0.06463858, -0.0011440456, 0.03789651, 0.03866874, -0.004236544, -0.005319812, -0.05191107, 0.056086835, -0.021593861, -0.0003952767, -0.03237649, 0.028129222, 0.007421996, -0.017518198, -0.033720743, 0.008687596, -0.006596138, -0.017747007, -0.010575271, 0.020163804, -0.0326339, -0.008709047, -0.031833068, 0.03231929, 0.045733225, -0.042158082, -0.0064924587, -0.061149236, 0.027671603, 0.014786789, -0.053026512, -0.005198257, -0.014929795, -0.018748047, -0.04295891, 0.07819552, 0.046791464, -0.017031979, 0.003789651, -0.016245447, 0.0034804011, -0.0003476826, 0.0048228675, -0.025011698, 0.010367913, 0.06995839, 0.073619336, 0.012083981, 0.032805506, -0.014271969, 0.020607121, -0.04373114, 0.002597341, -0.029945394, 0.026684863, -0.04295891, -0.002863689, -0.024010656, 0.046562657, 0.02934477, -0.010746879, -0.017661205, 0.0055021443, -0.008308631, -0.034721784, 0.012799011, 0.014972697, 0.0038575788, 0.019148463, 0.00854459, 0.0040256106, 0.012083981, 0.030403012, -0.039469574, 0.022551998, -0.06423816, 0.008337232, 0.038068116, -0.009288221, -0.011454756, -0.007815261, 0.009123764, -0.008158475, 0.028057719, 0.010875584, -0.014686685, 0.007972567, 0.02484009, -0.04619084, -0.009102313, 0.032805506, -0.02183697, 0.04410296, 0.00577028, -0.028672643, 0.012284189, -0.037810706, -0.0032909187, 0.027800309, -0.039755583, 0.010668226, -0.02712818, -0.024453975, -0.02885855, -0.024882993, 0.013828651, -0.011318902, -0.007593603, -0.003339183, 0.042529896, -0.03111804, -0.0028833523, -0.026155742, -0.010768329, 0.031318247, -0.009724388, -0.026370252, -0.041586056, -0.008687596, 0.050738424, -0.030145602, -0.08654705, -0.020120902, -0.007429146, 0.022509098, 0.038268324, -0.013135074, -0.022280289, -0.036209043, -0.020020798, 0.05142485, -0.05828912, -0.030574618, -0.019520277, -0.005219708, 0.019277168, 0.025769627, -0.00005399024, -0.009609983, -0.0006435256, -0.03866874, -0.011755069, -0.029287567, -0.056515854, 0.039069157, -0.041242845, -0.04910816, 0.042815905, -0.015029899, -0.009574232, -0.010939936, 0.022380391, 0.025669523, 0.016216846, -0.02383905, -0.03540821, 0.015644824, -0.026713464, 0.02586973, 0.033434734, 0.004912246, 0.023638843, -0.031404052, 0.028572539, -0.04373114, 0.018833851, 0.017174985, -0.05451377, 0.0007382669, -0.044017155, 0.0023488686, -0.055371806, 0.0021039713, 0.03786791, 0.0041292896, -0.016188245, -0.03189027, -0.044589177, -0.06749869, 0.017031979, -0.030059798, 0.007293291, -0.020778729, 0.01956318, 0.04739209, -0.0065460857, 0.03060322, 0.037410293, 0.030631822, 0.022695005, -0.015416014, -0.0024722111, 0.01954888, -0.038296927, -0.04719188, -0.03935517, 0.0024900867, 0.008980758, -0.06423816, -0.052111275, -0.021636762, 0.07321892, 0.048250124, -0.014014559, 0.0105395205, -0.005212558, -0.031175243, -0.03189027, 0.012098283, 0.008680446, -0.024053559, -0.028315129, 0.0023452935, 0.0068392474, 0.06686947, -0.05743109, -0.010174856, -0.0052518845, 0.079682775, -0.005462818, -0.062350485, -0.0016588661, 0.011626364, -0.011983878, -0.046991672, -0.006428106, 0.025512217, 0.039927192, -0.02080733, 0.011640664, -0.038497135, -0.029516377, 0.01229849, 0.02383905, -0.012713207, 0.012999218, -0.00539489, 0.01129745, -0.026913673, 0.007096658, 0.057802904, -0.013156525, -0.022366092, -0.032262087, -0.026527558, -0.012212687, 0.002622367, 0.03392095, -0.0058525084, 0.023738947, 0.033263125, 0.036209043, 0.052997913, -0.0074648974, 0.011082942, -0.007329042, -0.008937856, -0.041300047, -0.0019502402, 0.010260659, 0.02682787, 0.03663806, -0.023023918, -0.005595098, 0.035007797, 0.013421085, -0.0008428398, -0.050538216, -0.014186165, -0.0702444, -0.02963078, -0.018848151, 0.0017714831, 0.013828651, 0.013735698, -0.02586973, -0.04816432, 0.008001169, -0.0013308468, -0.0042579947, -0.0079153655, -0.002881565, 0.0027707354, -0.027399892, -0.024382472, -0.016860371, -0.054656778, 0.0046298094, 0.042672902, -0.0006882149, 0.023452934, 0.040813826, 0.013442536, -0.007872464, 0.032233484, -0.026913673, -0.0087877, -0.02080733, 0.010703976, 0.015887933, 0.019248568, 0.06664065, -0.034778986, 0.018361932, -0.0006832991, -0.038268324, -0.038525734, 0.032490894, 0.02433957, -0.018390533, -0.034235563, -0.022137282, -0.0035822927, -0.053627137, -0.020349711, -0.00028578794, 0.02054992, -0.04367394, 0.013514039, 0.01907696, 0.07670826, 0.017775608, 0.05803171, 0.028215025, 0.013385333, -0.0076865563, 0.027113881, 0.026498957, 0.00777236, -0.018033018, -0.044817988, -0.0038933302, 0.016989077, -0.024239466, -0.0037968014, 0.007150285, -0.023624541, -0.014121813, 0.055629216, -0.03961258, 0.06549661, 0.004912246, -0.005359139, -0.011590612, -0.020349711, 0.0057488293, -0.0038218272, -0.0075578513, -0.041586056, 0.0016642289, -0.0802548, 0.015187206, -0.012069681, -0.003176514, -0.027371291, 0.007858164, -0.0024829365, -0.0030066948, 0.010911335, 0.04393135, 0.020535618, -0.05823192, -0.004940847, 0.0099174455, -0.017689805, -0.06343733, -0.0029530677, 0.021479456, 0.041300047, 0.00055191264, -0.020364013, -0.042329688, 0.008465937, 0.017418094, 0.015287309, -0.047563694, 0.06686947, -0.036695264, 0.025397813, -0.006445982, -0.018462036, 0.010339312, 0.055429008, -0.016045239, 0.016989077, -0.033949554, 0.059661977, -0.003382085, -0.007121684, 0.060119595, 0.033234525, 0.0827145, 0.0023059668, 0.007400545, -0.035179403, 0.012176936, 0.014329171, 0.005494994, -0.016488558, 0.037267286, -0.0029405546, 0.009452676, 0.021450855, 0.025412112, -0.034664582, 0.005991939, -0.012362842, -0.044503372, 0.027843209, 0.0055271704, 0.017747007, -0.010096203, -0.0016249022, 0.004272295, 0.025054598, -0.031661462, 0.033005714, -0.027399892, -0.07464898, -0.02705668, 0.030631822, 0.03909776, 0.03589443, 0.0095027285, 0.016488558, 0.008194227, 0.019477377, -0.010389364, 0.058117516, -0.0021379353, 0.028944355, -0.02359594, 0.054284964, 0.00087993196, -0.027485695, 0.0039004805, 0.030431613, -0.018948255, 0.016102443, -0.032519497, -0.020993236, 0.050881427, 0.0013853677, -0.023452934, -0.051053036, -0.00005091785, -0.03154706, -0.013721397, 0.016002338, -0.0033195198, -0.04890795, 0.022780808, -0.06395215, 0.013027819, 0.009803041, 0.036008835, -0.02106474, 0.06286531, -0.017618302, 0.010975688, 0.004787116, 0.020750128, -0.032176282, -0.0016561848, -0.015387413, 0.0015578683, 0.0451898, -0.029516377, -0.06955797, 0.07098803, 0.051138837, -0.01078978, 0.0031175243, -0.0030621095, 0.035065, -0.027156783, -0.044074357, 0.008651845, -0.01929147, -0.023896253, 0.021979976, -0.015487517, -0.022537699, -0.020893132, -0.042815905, 0.050624017, 0.0017294752, -0.00035974872, -0.005570072, -0.04373114, 0.0018358356, -0.0047978414, 0.0061170687, 0.007457747, 0.047106076, 0.056201242, 0.02436817, 0.031947475, -0.012663155, 0.018933956, 0.048278723, 0.038468532, 0.009130914, 0.089521565, 0.03392095, 0.022437595, 0.00852314, 0.015830731, 0.014565131, -0.02532631, -0.023982055, -0.006299401, 0.055085797, -0.032490894, 0.005916861, 0.009016509, 0.05840353, 0.007650805, -0.044846587, -0.051539253, -0.012198386, -0.07333332, 0.017618302, -0.033806548, -0.02059282, -0.0351222, -0.007929666, 0.011862323, -0.01727509, 0.24047838, 0.051768064, 0.025926933, 0.020049399, 0.032262087, 0.03154706, -0.02481149, -0.014436426, -0.005970488, -0.01734659, 0.026970875, -0.020621423, 0.010796931, -0.012269889, -0.00977444, 0.011890924, -0.04141445, -0.0058096065, -0.011833722, -0.046562657, -0.044331767, 0.03835413, -0.0015274796, 0.029745186, -0.016417054, 0.020478416, 0.053827345, 0.013442536, -0.026742065, -0.018605042, 0.007972567, -0.014329171, 0.028644042, -0.02834373, -0.04970878, 0.04384555, -0.03495059, -0.034321368, -0.026112841, -0.006045566, 0.011612063, 0.010932785, -0.012176936, 0.012269889, 0.0038039517, 0.049794585, 0.026441755, -0.005169656, 0.047334887, -0.051510654, 0.040012997, -0.03429277, 0.020650024, -0.016688766, -0.044474773, -0.044017155, -0.029573578, -0.025755327, 0.09055121, 0.010110503, 0.04865054, -0.008237128, 0.0021003962, -0.022022877, -0.010375064, -0.028658342, -0.0012414682, -0.00097065116, 0.011991028, -0.04990899, 0.037553295, -0.024668483, -0.010210607, 0.009509879, 0.03314872, 0.029516377, 0.01680317, 0.06646905, -0.013642744, -0.024897292, -0.0035751425, -0.012713207, -0.0031997527, -0.02481149, 0.029287567, 0.02385335, -0.01932007, 0.008794851, -0.042930312, 0.020750128, 0.02960218, 0.052368686, -0.012512999, 0.025626622, -0.0027331964 ]
ConvNeXT modernizes a CNN in five ways: Change the number of blocks in each stage and "patchify" an image with a larger stride and corresponding kernel size. The non-overlapping sliding window makes this patchifying strategy similar to how ViT splits an image into patches.
[ -0.0012004689, 0.0009696095, -0.012753894, -0.0006507622, 0.0056625893, -0.04555161, -0.008377147, -0.009589813, -0.052493073, 0.0967902, 0.024629649, -0.0016918074, 0.01246815, -0.06696142, 0.015862219, 0.019611724, -0.00039420332, -0.04003189, -0.030274816, -0.0033470257, 0.038805287, 0.0026117603, -0.04028279, -0.027724037, -0.0075199185, 0.0036832965, 0.020810451, -0.014565921, 0.041286375, 0.01955597, -0.009980096, -0.038303494, -0.018538445, -0.064006425, 0.013053575, -0.007042519, -0.00041249784, -0.0046973354, -0.033034675, -0.046861846, 0.02810038, -0.027751913, -0.02175828, -0.04599765, -0.032728024, 0.0030194668, -0.016127054, -0.037439298, -0.048172083, -0.047921184, -0.04641581, -0.038024724, -0.01869177, 0.0030055281, 0.0007709833, 0.024629649, 0.008175037, -0.018566323, 0.044771045, 0.027863424, 0.019751111, -0.005728798, -0.00091646827, -0.068411045, 0.016350074, 0.013827172, -0.03707689, -0.021005593, -0.01743729, -0.021019531, -0.008509565, -0.008049589, -0.0012867145, -0.018426936, -0.018440874, 0.02283156, 0.033675853, 0.029745145, -0.011157914, 0.039334957, 0.05020713, 0.032728024, -0.001117708, -0.015694955, -0.052576706, -0.029131843, -0.010593398, -0.02167465, -0.031027503, -0.01331144, 0.0224134, 0.041816045, -0.014217455, 0.02305458, -0.037968967, 0.0055545643, -0.017771818, -0.000951315, 0.0036693579, -0.008384117, -0.00417812, 0.06885708, 0.033954628, 0.028379155, -0.06584633, 0.015248917, 0.0005157312, 0.005833338, -0.011910603, -0.017771818, -0.009631629, -0.011325179, 0.008997419, -0.024908423, -0.035543635, 0.026650758, 0.02419755, -0.007986864, -0.06952614, -0.005666074, 0.013179023, 0.0185942, 0.029717268, -0.0037460206, -0.024030287, -0.006850862, 0.010551582, 0.009882525, -0.06461973, -0.035961796, -0.004808845, -0.0043279603, -0.0058577307, 0.03348071, 0.0057845525, 0.029076088, -0.032728024, 0.047391515, -0.007533857, 0.02612109, 0.012231193, -0.0002681018, 0.018677833, 0.05854246, -0.04323779, -0.035013966, 0.03869378, -0.04153727, 0.025591418, 0.006248014, -0.02663682, 0.053831186, -0.011722431, -0.022692174, -0.025270829, -0.015123469, -0.023305476, 0.021172857, -0.014942266, 0.0228455, 0.008425932, 0.004320991, -0.011847879, 0.04429713, -0.059880573, 0.07326171, -0.0046659736, -0.007122666, 0.013241747, -0.007220237, 0.00549184, -0.029745145, -0.016545214, 0.035487883, -0.0006555536, 0.027863424, 0.035153355, -0.02705498, 0.013855049, 0.017311841, 0.00056277425, -0.024796914, -0.003286044, 0.018524507, 0.017102761, -0.020587431, 0.03414977, -0.0044220467, -0.0073178075, 0.009603751, -0.016573092, 0.058876988, -0.032505006, 0.019625664, -0.021186795, -0.0036205724, -0.02495024, 0.021632833, 0.02653925, -0.052493073, -0.030051796, 0.025187196, -0.06099567, 0.038721655, -0.036268447, 0.012774801, -0.013137207, 0.080732845, -0.022692174, -0.0056068343, 0.026734391, 0.014747125, -0.044631656, 0.036017552, 0.006826469, -0.013283563, 0.03654722, -0.019542031, 0.03975312, -0.00045997647, 0.03086024, 0.013074483, 0.054472364, 0.0053629074, -0.015708894, 0.009980096, 0.020336537, 0.016029483, 0.013499613, 0.022218257, 0.010872171, 0.026706513, 0.008175037, 0.03994826, 0.0057427366, -0.01003585, 0.046137035, 0.029577881, -0.041899677, 0.03763444, 0.027277999, 0.06439671, 0.00581243, -0.01690762, 0.026734391, -0.04081246, -0.020392291, 0.0067602606, -0.032951042, 0.028337339, -0.015862219, 0.023793329, 0.01818998, -0.040115524, 0.0016421509, 0.02453208, 0.010823386, -0.0062724063, -0.051182836, -0.012530874, -0.008446841, 0.016531276, 0.0026570612, -0.028142197, 0.03331345, 0.058263686, 0.016573092, 0.023375168, 0.027277999, -0.029661514, -0.053413026, -0.03434491, -0.028253706, -0.02949425, -0.0330068, 0.016475521, -0.0014626903, -0.003296498, -0.02546597, 0.016726417, -0.03222623, 0.03635208, -0.008405025, 0.00512595, -0.0037495052, 0.023807267, -0.033954628, 0.058486708, 0.00036567257, 0.053106375, 0.020308658, -0.04435288, -0.0357109, -0.041370004, 0.02103347, -0.013882927, 0.012809648, 0.019667478, -0.03412189, -0.052688215, -0.020489862, -0.02830946, -0.011750308, -0.01562526, -0.0027494049, 0.033954628, -0.010070697, -0.02968939, 0.033452835, 0.038442884, -0.03348071, 0.02313821, -0.0033958112, 0.06478699, 0.0028225828, 0.1126803, 0.04649944, -0.01352749, -0.010913988, -0.03297892, 0.038554393, -0.009603751, 0.018803282, -0.058207933, 0.02134012, 0.07025095, -0.0009957445, -0.022037055, 0.02283156, -0.061218686, -0.05001199, 0.034623682, -0.04449227, 0.026051395, 0.03529274, -0.0026117603, -0.028253706, -0.021702526, -0.022775805, 0.060159348, 0.0043035676, -0.035961796, 0.032309864, 0.04978897, 0.0268459, -0.007798692, 0.04206694, -0.028504603, 0.028058564, 0.0056103193, 0.029884532, -0.010948834, 0.01669854, -0.012593598, 0.020252904, -0.014287149, -0.07170057, 0.052381564, -0.0000603828, 0.004934293, 0.033954628, 0.001751918, 0.0050667105, 0.027835546, -0.00802868, -0.02145163, 0.0024828275, 0.023389107, 0.043377176, -0.036853872, 0.057204347, 0.015081653, -0.00370072, 0.03086024, 0.006066811, -0.026455617, 0.02219038, 0.0109976195, 0.05157312, -0.085137464, -0.022692174, 0.0019636117, -0.03125052, 0.015485874, 0.07242539, 0.052493073, -0.012496028, 0.019040238, -0.011931511, 0.009227407, 0.015764648, -0.0045405254, 0.01554163, -0.03763444, -0.042959016, -0.051210716, 0.021646772, 0.03381524, 0.004659004, 0.007324777, -0.00771506, -0.0041293344, 0.00887894, 0.04153727, -0.027501019, -0.048673876, 0.00032886575, 0.042429347, -0.030888118, -0.02146557, -0.01257966, -0.010941865, -0.009652536, -0.0107955085, -0.030888118, -0.004669458, -0.0063874004, -0.01669854, 0.0069797947, 0.03763444, -0.018078469, -0.04669458, -0.041286375, 0.002662288, 0.059434537, -0.08229397, 0.030246938, -0.029048212, 0.04418562, 0.016405828, -0.03169656, -0.01839906, 0.004108426, -0.04262449, -0.03900043, 0.04502194, 0.0082517, 0.005401239, 0.0065686037, -0.024476323, 0.0061016576, 0.0027337237, 0.00064074376, -0.023180027, 0.00090427196, 0.049816847, 0.04513345, 0.04056156, -0.010230992, -0.010739754, 0.015876157, -0.03930708, 0.05009562, -0.05380331, -0.00132069, 0.017381536, -0.0027772821, -0.026176844, 0.05622864, 0.028504603, -0.02525689, -0.017102761, 0.015722832, -0.054555997, -0.020322597, 0.0058925776, 0.013332348, 0.010272808, 0.0068125306, -0.009547996, 0.026901655, 0.021521324, 0.06350463, -0.04301477, 0.0130466055, -0.001533255, 0.0016543472, -0.019848682, -0.014524106, 0.0027755399, 0.0023626063, 0.019918375, 0.0053977543, 0.0039899475, -0.05463963, -0.009025296, 0.016364012, -0.013095391, 0.0047008204, -0.0068543465, 0.00076140044, 0.009324978, 0.018092409, -0.045495857, -0.011060343, -0.041063353, -0.0504859, -0.010628245, 0.047809675, 0.038638026, -0.038916796, 0.0142732095, -0.030553589, -0.0021343606, -0.024894485, 0.007471133, -0.019109933, -0.0070738806, 0.013443858, -0.008753492, 0.004965655, 0.023082456, -0.01955597, -0.0017484333, 0.007129635, 0.0067254137, 0.016322196, -0.007777784, -0.015681017, 0.047307882, -0.040338542, -0.054193594, -0.015973728, 0.027417386, -0.021437692, 0.0033574798, -0.036017552, -0.046778213, -0.022984885, 0.0037913213, 0.034094013, -0.049928356, -0.008683798, 0.002287686, -0.06595784, 0.008760461, 0.023166088, 0.02134012, 0.006638297, 0.051322225, -0.046973355, 0.017702125, -0.035041843, -0.060605384, -0.0071714516, -0.033982504, -0.022023115, 0.02968939, 0.008098374, -0.015123469, 0.006544211, 0.026246537, 0.024392692, 0.035041843, -0.077610575, -0.023918778, -0.019820804, 0.0048750537, 0.014342903, -0.040366422, -0.052883357, 0.026692575, -0.039920382, 0.03412189, -0.00002834017, 0.0025246437, 0.0070738806, -0.057204347, 0.012781771, 0.0009138548, -0.038665902, -0.016210686, 0.0054883556, 0.04555161, 0.0048680846, -0.04086821, -0.016517337, -0.02633017, -0.0642852, 0.05355241, -0.010711877, -0.012091806, -0.04491043, -0.024601772, 0.021563139, -0.0047426363, 0.031473543, 0.043126278, 0.011081251, -0.02145163, -0.02209281, -0.025005994, 0.025410216, -0.01806453, 0.025270829, -0.010830355, 0.013088422, -0.044436514, -0.055197176, -0.04649944, -0.01426624, 0.014816818, 0.041927554, -0.024769036, 0.052465197, -0.018733587, -0.014001405, -0.031724438, 0.0042443285, 0.011011558, 0.04351656, 0.040199157, 0.003286044, -0.01956991, 0.013924742, -0.011959389, -0.04293114, 0.016628847, 0.041871797, -0.0053001833, -0.059880573, 0.06584633, -0.005369877, -0.043990478, -0.04649944, 0.039808873, 0.0048680846, -0.017939083, -0.021214673, 0.04376746, 0.014398658, 0.01152729, -0.005000502, 0.038944677, 0.0005910872, 0.029800901, 0.03665873, 0.0058716694, -0.057427365, 0.036407836, 0.027208306, -0.019416584, -0.054054204, -0.036156937, -0.007112212, 0.0031466573, 0.0020211088, 0.019918375, -0.03741142, -0.037049014, -0.03456793, 0.027724037, 0.0708085, 0.012830556, 0.026358046, 0.016015545, -0.019918375, -0.05187977, 0.013931712, -0.029633636, 0.0224134, 0.01891479, 0.0077289985, 0.021270428, 0.00045039362, 0.02113104, -0.047307882, -0.04346081, 0.013973528, -0.058821235, 0.0068717697, -0.03487458, -0.03668661, 0.016182808, 0.0062096827, 0.021144979, -0.0378017, 0.04923142, -0.021507384, 0.0022632934, 0.010391287, -0.042540856, 0.013611122, -0.052325808, -0.010203115, 0.016656725, -0.017242149, -0.012830556, -0.020726819, -0.017799696, 0.01827361, 0.014252301, 0.00919256, -0.032254107, 0.005972725, -0.015123469, -0.014677431, -0.029800901, 0.0228455, -0.035153355, 0.013283563, 0.011764247, 0.034066137, -0.003535198, -0.0068648006, -0.04555161, 0.0055824416, 0.0043593226, 0.012726016, 0.038749535, 0.014621677, 0.013485674, -0.0005806332, -0.055029914, 0.009492242, -0.017074885, -0.04711274, -0.009596782, -0.001996716, 0.01184091, 0.054054204, -0.016447645, 0.022106748, 0.013722631, 0.017297903, -0.027877362, -0.009534058, 0.0061992286, 0.03414977, -0.01679611, -0.03944647, -0.024225429, 0.058096424, -0.07103152, 0.012440273, 0.016628847, -0.053747553, -0.03774595, 0.020127455, 0.03551576, 0.039334957, 0.011485473, -0.007220237, 0.0055510798, -0.018942667, -0.024030287, -0.026971348, -0.020517739, 0.0132069, -0.020545617, -0.038219865, 0.02896458, -0.02495024, 0.009025296, 0.048367225, 0.039390713, 0.030999627, -0.03256076, -0.018287549, 0.033787362, 0.038303494, -0.061887745, -0.0029306076, 0.012565721, -0.031027503, -0.035989676, -0.009213468, 0.012056959, 0.06852256, -0.050151374, -0.016475521, -0.054193594, 0.012572691, 0.047698166, 0.01605736, -0.010300686, 0.0062305904, -0.04755878, 0.041481514, 0.037606563, -0.06986067, -0.0042547826, 0.013457797, 0.01839906, 0.047614533, -0.041063353, 0.00781263, 0.044938307, -0.032672267, 0.01605736, 0.032672267, 0.04346081, 0.014998021, 0.01818998, 0.008830154, 0.02461571, 0.014984082, 0.020838328, 0.03913982, 0.049259298, 0.0068369233, -0.041342128, 0.0011961131, 0.0027075887, 0.017242149, -0.028825192, -0.00224587, 0.015555568, 0.035264865, 0.015276794, -0.0068822238, -0.03763444, 0.008913786, -0.0057845525, 0.015917974, -0.027138611, 0.011004589, -0.015248917, -0.06657114, 0.018134223, -0.013666877, 0.04702911, 0.0135553675, -0.023068517, 0.020726819, 0.041620903, 0.049844723, 0.036268447, 0.044241372, -0.00713312, 0.004467347, 0.0037564745, 0.014761063, -0.0025560057, 0.0018189979, -0.007262053, -0.0056974357, 0.00792414, 0.018886913, -0.039167695, -0.035041843, 0.017088823, -0.010286747, -0.03847076, -0.08892879, 0.020963777, -0.053524535, -0.0135553675, 0.01637795, 0.0038540454, -0.044269253, 0.010677029, -0.000112925096, 0.009283162, 0.064508215, 0.011617891, -0.012614506, 0.08045407, 0.01543012, -0.0070843347, 0.05104345, 0.024127858, -0.025131442, 0.007861416, -0.007833539, -0.014029282, 0.004659004, 0.016447645, -0.038916796, 0.027919179, 0.019500215, -0.026302291, -0.048060574, 0.016614908, 0.01764637, -0.048590243, -0.01352749, 0.051600996, -0.003773898, 0.013304471, -0.013757478, -0.035487883, 0.0073944703, -0.0011150945, -0.002526386, 0.03258864, 0.0013485674, -0.016893681, -0.010363409, -0.05422147, -0.00007002009, 0.031529296, -0.02620472, -0.033452835, 0.0291876, 0.0011664934, 0.030191183, 0.04786543, -0.030832363, -0.012098775, 0.02853248, 0.051712506, -0.015583445, 0.09405822, 0.07052973, -0.017534861, 0.0042443285, 0.027250122, 0.023012763, -0.025870193, -0.003385357, -0.02082439, 0.0092971, -0.04479892, -0.051015574, -0.029745145, 0.013130237, 0.011297301, -0.034930333, -0.033787362, -0.00095567084, -0.039084062, 0.034651563, -0.004237359, 0.012781771, -0.00846078, 0.006481487, -0.011360025, -0.03108326, 0.22803682, 0.078502655, 0.025145382, 0.041286375, 0.056786187, 0.033675853, 0.013882927, -0.008662891, 0.029410617, -0.01669854, 0.009694353, -0.085471995, -0.011150945, 0.017953021, 0.013701724, 0.029076088, 0.0048018754, 0.035961796, 0.008098374, -0.023207905, -0.07705303, 0.03961373, 0.006586027, 0.015904035, 0.01480288, 0.06004784, -0.014342903, -0.036324203, -0.0114088105, -0.041258495, -0.019430522, -0.016015545, 0.03961373, -0.019820804, 0.009784955, 0.048980527, 0.0057566753, -0.026595004, 0.019514153, 0.010920957, 0.0033975535, 0.0011089963, 0.039502222, -0.041676655, -0.005746221, 0.056702554, -0.0035439096, 0.016140994, 0.012356641, -0.05494628, 0.042457223, -0.0024166189, -0.0035996644, 0.0009452168, -0.032839533, 0.00014994972, -0.044575904, -0.024169672, 0.040673073, -0.017688187, 0.060605384, 0.010224023, 0.010865202, 0.01679611, 0.0022598086, -0.046471562, -0.030497834, 0.019806866, 0.0032390011, 0.0016944209, 0.06461973, -0.035961796, -0.017465167, -0.014998021, 0.031334154, 0.028880948, -0.012983882, 0.044631656, -0.010091606, 0.004808845, -0.05020713, -0.03930708, -0.017785758, -0.01480288, 0.0025350975, 0.012119683, -0.044436514, -0.008411994, -0.021270428, -0.014524106, 0.0052792756, 0.052743968, 0.015764648, -0.010377348, -0.0028487178 ]
A bottleneck layer shrinks the number of channels and then restores it because it is faster to do a 1x1 convolution, and you can increase the depth. An inverted bottleneck does the opposite by expanding the number of channels and shrinking them, which is more memory efficient.
[ 0.015955579, -0.013020089, -0.0135257235, -0.02007088, 0.001303589, 0.0034586806, 0.0066610323, 0.007886494, -0.049580272, 0.068766296, 0.0040204967, -0.022205783, 0.043035116, -0.047557734, -0.018188797, -0.005295117, 0.014143721, -0.040506944, -0.034298874, 0.019480973, -0.006408215, 0.020492243, -0.058035605, -0.0058183083, 0.0020787197, -0.005969296, 0.03831586, 0.023736732, 0.06679994, 0.00034477076, 0.0076828357, -0.0147898095, 0.010976482, -0.060114324, -0.0056567863, -0.012324841, 0.002628246, -0.034383148, -0.042641845, -0.023048507, 0.049102727, -0.0044137677, -0.010196962, -0.026896946, -0.012865589, -0.026166586, 0.015506125, -0.055366978, 0.010885187, -0.0129990205, -0.029158257, -0.027472809, -0.0245935, -0.0052319127, -0.004052099, 0.011383799, 0.008455332, 0.019382656, 0.038400132, 0.008118243, 0.058653604, 0.006387147, -0.0053969463, -0.028498122, 0.0139470855, 0.042613752, -0.0054425937, -0.01375045, 0.003212886, -0.041574392, -0.0320797, -0.027514944, -0.016517393, -0.046855465, -0.037697863, -0.005597093, 0.015140944, 0.028582396, 0.0047894823, 0.041433938, 0.028849257, -0.01177707, -0.05373771, -0.0029548018, -0.049383637, -0.004733301, 0.0075915405, -0.01177707, -0.0152673535, -0.02670031, 0.009508738, 0.031574067, -0.020674834, 0.036798958, -0.035619143, 0.013462519, -0.013504655, 0.03348424, 0.020084927, 0.020787196, -0.020337744, 0.056743428, -0.01148914, 0.06208068, -0.060732324, 0.0071561327, -0.024846317, -0.003012739, -0.018905113, -0.05261408, -0.01897534, -0.009838805, 0.019424792, 0.0132097015, 0.003943247, 0.00501772, -0.0055409116, -0.0072825416, -0.05576025, -0.017893843, 0.015183081, -0.0064468402, 0.0029354892, 0.016362894, 0.018230934, -0.040113673, -0.010477871, -0.0010156583, -0.042332847, -0.05429953, 0.032585334, -0.02037988, -0.024846317, 0.041349668, -0.009557897, -0.038063042, -0.011299526, -0.016475258, 0.0125214765, 0.0059517394, 0.015042626, -0.0270374, -0.012423159, 0.08168806, -0.002856484, 0.012381023, -0.017978117, -0.008321902, -0.030169526, 0.010119713, -0.018834885, -0.008715172, -0.016053896, 0.02786608, -0.047220644, -0.006474931, -0.034720235, 0.028849257, 0.0031057897, -0.008729218, 0.028961621, -0.022851871, -0.047136374, 0.031883065, -0.05671534, 0.08017116, -0.02859644, -0.042080026, 0.0003050486, -0.0067347707, 0.011910502, -0.0010393598, -0.0052845827, 0.035787687, 0.021517558, 0.024579456, 0.069609016, -0.030225707, -0.0033392946, 0.02355414, -0.01793598, -0.03309097, -0.008996081, 0.045366652, 0.00040753614, -0.045422833, 0.025801405, 0.014508901, -0.0119456155, -0.005488241, -0.0010498939, 0.025787361, -0.03755741, 0.0132097015, -0.023371551, 0.019312428, -0.0022788667, -0.015927488, 0.04809146, -0.04809146, -0.025618816, 0.030085253, -0.030956069, -0.0143684475, -0.05264217, 0.018848931, 0.015801078, 0.084103875, -0.033540424, -0.005649763, 0.025197454, 0.016728075, -0.02089956, 0.02111024, 0.012388046, -0.020407971, 0.034017965, 0.028849257, 0.025562633, -0.02160183, 0.028849257, 0.013834722, 0.030534707, -0.0047859713, -0.014227993, 0.039608035, 0.0016968603, 0.014565083, -0.018104525, 0.011756002, -0.01634885, -0.0016231219, -0.034944963, 0.06309195, 0.019256247, 0.0055268663, 0.05820415, -0.006794464, -0.017458435, -0.01018994, -0.0299448, -0.00049071125, 0.012697045, -0.00082780095, 0.015885351, 0.020843377, -0.014536993, 0.005105504, -0.030422343, 0.016657848, -0.02355414, 0.0592716, 0.01882084, -0.022247918, -0.06944047, 0.00125443, -0.00855365, 0.024003593, -0.017261801, -0.023273233, -0.048119552, 0.047220644, -0.04567565, -0.029720074, 0.029720074, 0.043625023, 0.012549568, 0.047473464, 0.01026719, -0.027486853, -0.021896783, -0.058091786, -0.063541405, -0.008469378, -0.021334967, -0.040394578, 0.027739672, -0.000034729455, -0.013300996, 0.036461867, -0.011397844, 0.013322065, -0.019509064, 0.045703743, 0.036798958, 0.016615711, -0.031574067, 0.05149045, 0.021770375, 0.022276009, 0.012690022, -0.015871305, -0.020478198, -0.007570472, 0.010906256, -0.024663728, -0.025576679, 0.04045076, -0.035675324, -0.010218031, -0.007549404, -0.037697863, -0.009108444, 0.0045717787, -0.0223041, 0.03547869, -0.0069138496, -0.024860363, 0.01762698, -0.005425037, -0.01078687, 0.03761359, 0.026194677, 0.04031031, -0.019719746, 0.026995264, 0.027964398, -0.019874245, -0.010344439, -0.0427823, 0.021096196, -0.007879471, -0.0031286136, -0.050675813, -0.02368055, 0.047979098, 0.010288258, -0.05960869, -0.005828842, -0.05017018, -0.07213719, 0.015618488, -0.010779846, 0.06281104, 0.02144733, 0.013848768, -0.038428225, 0.015646579, 0.0064995103, 0.022374326, 0.031068431, -0.034074146, 0.018891066, 0.049664546, 0.03663041, -0.0008089274, 0.016475258, -0.052024174, 0.014333334, -0.0010735955, 0.035675324, 0.044552017, 0.034523603, -0.0036588274, -0.028259352, -0.021461375, -0.04727683, 0.0026756492, 0.026110405, -0.030281888, 0.025365997, -0.013687246, 0.015660625, 0.013890903, 0.022065328, -0.007198269, 0.043035116, 0.008897763, 0.04255757, -0.038568676, 0.021784421, 0.02721999, -0.008490446, 0.009298057, 0.040591214, -0.025408134, 0.0626425, 0.0145791285, 0.048597094, -0.059103057, -0.021166423, -0.008483424, -0.011980729, 0.045759924, 0.06775502, 0.047782462, -0.029467255, -0.0039924057, -0.02053438, -0.0053618327, -0.013462519, 0.017065166, -0.010239099, -0.01552017, -0.037697863, -0.033371877, 0.030927978, 0.016784256, 0.036096685, 0.025899723, 0.042641845, -0.011650662, 0.05786706, 0.06556394, -0.0320797, 0.0005144129, -0.048681367, 0.045535196, -0.020548426, -0.015604443, -0.033231422, 0.015548261, 0.0052880943, 0.0050387885, -0.023048507, 0.008960967, -0.0071104853, -0.005776172, -0.012837498, 0.036096685, 0.01000735, -0.0037009637, -0.026292995, 0.027922262, 0.03837204, -0.08972204, 0.016770212, -0.05477707, 0.01866634, 0.024748, -0.049018458, -0.036995593, 0.013146497, -0.018020252, -0.052164625, 0.07489009, 0.05750188, -0.007991835, 0.020478198, -0.017767435, -0.01793598, -0.004694676, 0.011819207, -0.017542709, 0.002737098, 0.05053536, 0.025464315, 0.0074651316, -0.0063028745, -0.009635147, 0.03685514, -0.037079863, 0.03755741, -0.006755839, 0.011145027, -0.016615711, -0.004146905, -0.024270456, 0.04913082, 0.037360772, -0.025618816, -0.02334346, 0.024776092, -0.027023356, -0.027571127, 0.025042953, 0.012514454, 0.019101748, 0.012163319, -0.0198602, -0.019200066, 0.042641845, 0.02196701, -0.05545125, -0.0039116447, -0.027430672, -0.014410583, 0.012022865, -0.024649682, 0.03373706, 0.026447494, 0.028427895, -0.024144048, -0.0028845747, 0.018497797, -0.04567565, 0.011685776, 0.0017705986, -0.053793892, -0.0026914503, 0.031180795, -0.0044699498, 0.02991671, -0.009108444, 0.0011201209, -0.0011280214, -0.023596277, -0.0026317574, 0.04174294, -0.0065627145, -0.003774702, -0.013469541, -0.033596605, -0.007809244, -0.0418553, 0.020464152, -0.024031684, 0.0001868697, -0.004174996, 0.024635637, -0.012739181, 0.030731343, -0.016882574, -0.025885677, -0.00012959079, 0.02144733, -0.02318896, -0.04738919, -0.0062502045, 0.016053896, -0.036602322, -0.06848539, -0.016250532, 0.033933695, -0.005934183, 0.0198602, -0.03132125, -0.0029706028, -0.034664053, -0.006208068, 0.034635965, -0.076519355, -0.009157603, -0.035675324, -0.011770048, 0.001654724, 0.02212151, 0.024748, 0.005635718, 0.015744897, -0.06444031, -0.04387784, -0.016840437, -0.049102727, -0.009473625, -0.028441941, -0.042613752, 0.043372206, 0.009269966, -0.023357505, -0.009909032, 0.015070718, 0.04671501, 0.045029562, -0.052164625, -0.015688716, -0.0046490286, -0.030927978, 0.044552017, -0.008244651, -0.03719223, 0.015646579, -0.04595656, 0.024200229, -0.030506615, 0.00027586048, 0.039186675, -0.06517067, 0.026967173, -0.011966683, -0.0024561898, -0.044467747, 0.017261801, 0.034411237, -0.011341663, -0.008399151, -0.034017965, -0.056265883, -0.093205296, -0.011432958, -0.023933366, -0.0014466766, -0.007556427, 0.017837662, 0.047164463, 0.0058007515, 0.0653954, 0.03030998, 0.011250368, -0.040563125, -0.054805163, 0.009431488, 0.023540096, 0.0047894823, -0.032669608, -0.040282216, 0.0012675977, -0.0075423815, -0.0620245, -0.05671534, -0.042669933, 0.022219827, 0.04913082, -0.007198269, 0.028736895, -0.005474196, -0.028512169, -0.038793404, 0.012331864, 0.010821983, -0.013954108, 0.009087375, -0.018722523, -0.010379553, 0.06275486, -0.024200229, -0.02493059, 0.012086069, 0.06253014, -0.004796505, -0.049664546, 0.056265883, 0.00948767, -0.01603985, -0.035562962, 0.02111024, 0.028034624, 0.007823289, -0.019045567, 0.027880125, -0.030281888, 0.0047789486, 0.013041156, 0.027697535, 0.012212478, 0.02493059, 0.023385596, 0.009564919, -0.053990528, 0.03171452, 0.046602648, -0.012416136, -0.028708804, -0.03070325, -0.020857424, -0.015435898, -0.007717949, 0.041967664, -0.025703087, -0.009494692, 0.0105200065, 0.057642333, 0.060788505, 0.010330394, -0.009354238, -0.023090642, 0.0028319045, -0.058091786, -0.005403969, 0.028821167, 0.024396865, 0.02264119, -0.057923242, -0.017683163, 0.022542872, -0.00021627726, -0.044664383, -0.058428876, -0.015393762, -0.064384125, -0.028554304, -0.026587948, -0.030281888, 0.02113833, 0.01918602, -0.009944146, -0.02321705, 0.040563125, -0.0013729382, -0.024748, -0.03140552, -0.020239426, 0.006787441, -0.019944472, -0.038400132, -0.0013264128, -0.026742447, -0.018413523, 0.017458435, 0.016910665, 0.025998041, 0.04814764, 0.011692798, 0.0051511517, 0.012914748, -0.019846154, 0.017093256, -0.056546792, 0.017191574, 0.011959661, 0.016433122, 0.03171452, -0.037051775, -0.013300996, 0.012226524, 0.009122489, -0.023132779, 0.0027283195, -0.00006238134, 0.0016538462, 0.004006451, 0.004164462, -0.006555692, -0.058091786, -0.023483913, -0.00540748, -0.016236486, -0.03629332, 0.052529808, 0.04151821, 0.07691263, -0.0104146665, 0.050198272, 0.0060395235, 0.016306713, 0.0013746938, 0.011692798, 0.04140585, -0.0071736895, 0.010646416, -0.036602322, -0.011306549, 0.039242856, -0.043035116, 0.024340684, 0.001043749, -0.03663041, -0.051855627, 0.036489956, -0.0010244366, 0.07410355, -0.0145791285, -0.011692798, -0.004747346, -0.013308019, -0.013883881, -0.02682672, -0.020815287, -0.040113673, -0.037782133, -0.06590103, 0.0088837175, -0.0074510863, -0.03179879, 0.011741957, 0.027753716, 0.009698351, -0.027458763, 0.015084763, 0.03553487, 0.026630085, -0.05092863, -0.0028670179, -0.005814797, -0.0068682022, -0.06635048, -0.005063368, 0.0005881513, 0.04118112, 0.015014536, -0.019972563, -0.06679994, 0.022528827, 0.03629332, -0.008609832, -0.025773315, 0.037079863, -0.029102076, 0.03620905, 0.0021349012, -0.047894824, 0.033961784, 0.035282053, 0.0020049813, 0.027908215, -0.038175404, 0.03275388, 0.021826556, -0.0067698844, 0.049102727, -0.016475258, 0.048934184, 0.020997878, -0.019017477, -0.014122653, 0.038147315, 0.011095868, -0.026896946, 0.002687939, 0.04837237, 0.014143721, -0.017809572, 0.02318896, 0.034383148, -0.0016968603, -0.014944308, 0.031602155, -0.027627308, 0.025745224, 0.016854484, 0.01655953, -0.013476565, -0.005635718, -0.007099951, 0.019017477, -0.010864119, 0.05466471, -0.029186347, -0.057642333, -0.011538299, 0.018329252, 0.042304754, 0.0054004574, 0.026068268, 0.0039467583, 0.0043821656, 0.046939738, 0.018652296, 0.06797975, -0.026335131, -0.0017539198, -0.0054180142, 0.058765966, 0.013862813, -0.02511318, 0.0015002246, 0.0065311124, -0.040113673, 0.021250695, -0.01603985, -0.023287278, 0.052529808, -0.016643804, -0.031574067, -0.045563288, 0.009866896, -0.051097177, -0.006998122, 0.020843377, -0.006390658, -0.03104034, 0.02591377, -0.04109685, -0.0053337417, 0.06022669, 0.015379717, -0.014438675, 0.08118243, 0.010976482, 0.031293157, 0.051799446, 0.010807938, -0.020857424, 0.017767435, -0.018188797, 0.00030570698, 0.013364201, -0.025028909, -0.07342937, 0.048231915, 0.00803397, -0.01018994, -0.0372765, -0.008644946, 0.02838576, -0.0052600033, -0.012682999, 0.061855957, 0.006583783, -0.0007983934, 0.00413286, -0.010576189, -0.028343624, -0.013729381, -0.010021395, 0.050001636, 0.00959301, -0.011713866, -0.028287442, -0.048231915, 0.021236649, 0.031939246, -0.021461375, -0.005453128, 0.035787687, 0.033652786, 0.0047368123, 0.030815614, -0.026040178, 0.018680386, 0.031574067, 0.033849422, 0.005677854, 0.10668888, 0.057979424, -0.00959301, 0.013666177, 0.02162992, 0.012479341, -0.025520498, -0.034017965, -0.021714194, 0.04390593, -0.008666013, -0.015955579, -0.003574555, 0.035731506, -0.021166423, -0.020464152, -0.02887735, 0.02716381, -0.035843868, 0.045591377, -0.037445046, 0.00722636, -0.0074862, 0.0064784423, 0.0026967174, -0.017247755, 0.23214242, 0.08517133, 0.031826884, 0.027065491, 0.011903479, 0.03797877, 0.016952801, -0.025506452, -0.0074019274, -0.042023845, -0.0023245143, -0.019930428, 0.019761883, -0.012795363, 0.0001344189, 0.050029725, -0.045703743, 0.006274784, -0.010611302, -0.00974751, -0.06522685, 0.029214438, -0.012093092, 0.006099216, -0.011250368, 0.025295772, 0.013469541, 0.023891231, -0.04775437, -0.025042953, 0.01796407, -0.030141436, 0.07842953, -0.054130983, -0.046490286, 0.04567565, 0.0070718606, -0.07685645, 0.012135228, 0.0069314064, 0.02243051, -0.02591377, 0.0046806308, 0.02682672, 0.0013053446, 0.0528669, 0.0066083623, -0.02004279, 0.010028418, -0.05921542, 0.04140585, -0.015562306, 0.010351462, -0.016278623, -0.030422343, -0.017767435, -0.028161034, -0.032866243, 0.058597423, 0.0033024254, 0.03893386, -0.017767435, -0.010281235, 0.0026036666, 0.013771518, -0.005474196, 0.004775437, 0.011756002, 0.008918831, -0.032641515, 0.069496654, -0.030815614, -0.00087300956, -0.0034920382, 0.03525396, 0.014396538, -0.010337417, 0.06387849, 0.0010244366, -0.002162992, -0.0030460968, 0.007809244, 0.01637694, -0.019171976, 0.019509064, 0.02074506, -0.057220973, 0.0031110568, -0.07415973, -0.007535359, 0.015772987, 0.06342904, 0.012739181, -0.009958191, -0.01689662 ]
Replace the typical 3x3 convolutional layer in the bottleneck layer with depthwise convolution, which applies a convolution to each input channel separately and then stacks them back together at the end. This widens the network width for improved performance. ViT has a global receptive field which means it can see more of an image at once thanks to its attention mechanism. ConvNeXT attempts to replicate this effect by increasing the kernel size to 7x7.
[ 0.006242552, -0.02285362, 0.00035579086, -0.03397608, 0.014179758, 0.007919913, -0.003230218, -0.006380891, -0.055418644, 0.06358065, 0.019685654, 0.0037939497, 0.05137914, -0.023365473, -0.017804243, -0.013557232, -0.001140433, -0.01694654, -0.026063086, 0.03159665, 0.00116983, 0.012927789, -0.062141925, -0.028013667, -0.005505896, -0.025399059, 0.024776533, 0.0030244386, 0.066347435, 0.014760782, 0.0038077838, -0.006259844, 0.023808159, -0.040063005, -0.007082962, 0.017126381, 0.006190675, -0.030047253, -0.019906996, -0.03693654, 0.04199975, -0.027972165, 0.025537398, -0.04794833, -0.042165756, -0.012236093, 0.00667832, -0.06269528, -0.015161965, -0.017486062, -0.0005088285, -0.026422769, -0.011841827, 0.0023483061, -0.014567107, -0.004727739, -0.012042419, -0.004734656, 0.02303346, 0.003129922, 0.059541147, -0.0057168636, -0.0021563608, -0.04886137, -0.0017041648, 0.048335683, -0.0076155677, -0.010645194, 0.016296346, -0.03428043, -0.03350573, -0.0073112217, -0.029881246, -0.036549192, -0.029161882, -0.012658028, 0.020847702, 0.009483146, 0.001955769, 0.02087537, 0.0134119755, -0.012872454, -0.04211042, -0.015646152, -0.04114205, -0.016960373, 0.024610527, -0.011011792, 0.004215884, -0.017887246, 0.0183576, 0.041363392, -0.023545315, 0.01719555, -0.025094712, 0.05010642, -0.003970332, 0.033699404, 0.022798283, 0.025800243, 0.016766699, 0.059762493, -0.012077004, 0.06452136, -0.060315847, 0.020667862, -0.011523647, 0.012727197, -0.0153141385, -0.06673478, -0.005741073, -0.0024088295, 0.000115102455, 0.0049905833, -0.002101025, -0.008445602, 0.00183991, -0.0043265554, -0.055058964, -0.040893037, 0.0076570692, 0.009496979, -0.025302222, -0.0004651652, 0.036327846, -0.034225095, -0.016669862, 0.016974207, -0.02625676, -0.0408377, 0.024748866, -0.005004417, -0.024154007, 0.05240285, -0.027183633, -0.033478063, -0.006329014, -0.018952457, 0.0008062576, -0.044379182, 0.0016825494, -0.024610527, -0.012837868, 0.08217343, 0.0044199345, 0.009068128, 0.00551973, -0.03328439, -0.044628195, 0.01183491, -0.024154007, -0.010603692, 0.0071313805, 0.02698996, -0.0686162, -0.016199509, -0.0062114256, 0.036355514, -0.02037735, -0.017250886, 0.065296054, -0.0060800035, -0.060094506, 0.043466147, -0.030157924, 0.07940664, -0.029770574, -0.03416976, 0.0076501523, -0.015286471, 0.013273637, 0.016462352, -0.02094454, 0.02087537, 0.055972, 0.014235093, 0.07287704, -0.028829869, 0.0013920373, 0.027266636, -0.032814033, -0.020003835, -0.010576025, 0.029798243, -0.009254886, -0.036493856, 0.019588817, 0.017804243, 0.0014715822, 0.013149131, 0.0054159756, 0.041667737, -0.048667695, 0.0020958374, -0.0176244, 0.03704721, -0.013488063, 0.00072628027, 0.034584776, -0.04457286, -0.013328972, 0.037379224, -0.025163883, -0.01815009, -0.038900957, 0.019118464, 0.006308263, 0.07304305, -0.018053252, 0.03300771, 0.023503814, 0.015203468, -0.014165924, 0.014041419, 0.026104588, -0.0271698, 0.0051980917, 0.015161965, 0.015369474, -0.009662986, 0.018883288, 0.02773699, 0.023074962, -0.0055543147, -0.0058552027, 0.026408935, 0.03237135, 0.0031402975, -0.006142256, -0.007864578, -0.011433727, -0.014899122, -0.028152008, 0.03898396, 0.020654028, 0.0010323556, 0.07414976, 0.017250886, -0.015175799, -0.01846827, -0.029410893, 0.020792367, 0.01864811, 0.015535481, 0.018772615, 0.01351573, -0.0015260532, -0.018163923, -0.021041377, 0.01478845, -0.026159924, 0.06640277, 0.013564149, -0.030821951, -0.07171499, 0.018565107, -0.011883329, 0.00009640506, -0.01229143, -0.036078837, -0.041363392, 0.037240885, -0.0519325, 0.009911996, 0.014982125, 0.033450395, -0.018578941, 0.05154515, -0.00249875, -0.050576776, -0.025385225, -0.07520114, -0.070552945, -0.029023543, -0.025841745, -0.037130214, 0.03682587, -0.021401059, 0.025246887, 0.025150048, -0.011509813, -0.016960373, -0.0058067837, 0.017347723, 0.035497814, 0.05810242, -0.014954457, 0.041667737, -0.01535564, 0.0031748824, 0.03488912, -0.052126173, -0.03668753, 0.005208467, 0.025274554, -0.019644152, 0.005557773, 0.0113991415, -0.04554123, -0.010700529, -0.0159505, -0.02943856, -0.013564149, 0.01415209, -0.04404717, 0.035276473, -0.026768615, -0.019533481, 0.023005793, 0.01015409, -0.022673778, 0.014345765, 0.0010859619, 0.028525522, -0.0150097925, 0.012021668, 0.033948414, -0.030157924, 0.007601734, -0.045209218, 0.0061007543, -0.0036417767, 0.0026405477, -0.05077045, -0.05331589, 0.0543396, 0.0074979793, -0.090197094, -0.023586817, -0.04097604, -0.079794, 0.00077858975, -0.01642085, 0.05594433, 0.014622443, -0.002969103, -0.054533273, 0.017873412, 0.0064396854, 0.0044130175, 0.012678779, -0.030628277, -0.024209343, 0.041086715, 0.04747798, 0.0064846454, 0.010181758, -0.030960292, 0.011406058, 0.014677779, 0.05281787, 0.0408377, 0.02918955, 0.005367557, -0.006176841, -0.02943856, -0.03818159, -0.0040291264, 0.0148161175, -0.032648027, 0.024984041, 0.012498938, 0.01624101, 0.0018364516, 0.0051531317, 0.0052499687, 0.03981399, -0.0038907873, 0.056885038, -0.026007751, -0.0015078962, 0.0125058545, -0.014262761, 0.015908998, 0.041363392, -0.019270636, 0.06811817, -0.0034204342, 0.058434438, -0.07348573, -0.03577449, -0.029106546, -0.016033502, 0.05865578, 0.0463436, 0.056663696, -0.027432643, -0.016337847, -0.018454436, 0.020833869, -0.025523564, -0.016213343, -0.03973099, -0.0030313556, -0.050078753, -0.0156184845, 0.03336739, 0.028636195, 0.024278512, 0.020294346, 0.037655905, -0.00797525, 0.02578641, 0.051821828, -0.03441877, -0.023988, -0.052568857, 0.050327767, -0.0054263514, -0.02087537, -0.026671778, 0.029521564, -0.0075878995, -0.0053571817, -0.006764782, 0.022120422, -0.016116505, -0.00872228, 0.009759824, 0.053260554, 0.0043784324, 0.009496979, -0.054837618, 0.028497854, 0.039177634, -0.061256554, 0.0026284428, -0.06739881, -0.008784533, 0.04291279, -0.05384158, -0.027072962, 0.0067544067, -0.0074149757, -0.05267953, 0.066956125, 0.060205176, -0.005277637, 0.0054471022, 0.008521688, 0.001978249, 0.003193904, 0.004236635, -0.0077124047, 0.010015751, 0.035082795, 0.033727072, 0.013571066, -0.015576983, -0.0072558858, 0.04794833, -0.039398976, 0.03350573, -0.008397183, 0.005004417, -0.01047227, -0.0032250304, -0.0207647, 0.055390976, 0.029355558, -0.01871728, 0.012554273, 0.030794283, -0.007525647, -0.016918872, 0.008362599, 0.013536481, 0.026754782, 0.008805283, -0.010541439, 0.007843827, 0.04543056, 0.008072087, -0.04011834, 0.007684737, -0.029798243, -0.011489063, 0.0118003255, -0.029272554, 0.037628237, 0.020446518, 0.011150132, -0.031236969, 0.004150173, -0.014428768, -0.020225177, -0.014774616, 0.005322597, -0.054394934, 0.032980043, 0.015839826, -0.0078023253, 0.02830418, 0.010216342, -0.020335848, 0.0023362015, 0.005903621, -0.0034152465, 0.014580941, -0.007919913, 0.004879912, -0.03959265, -0.037268553, -0.011302304, -0.011848744, 0.025800243, -0.012962374, -0.017707406, 0.003148944, 0.022438603, -0.013093796, 0.012090838, -0.014636277, -0.008411017, 0.0067751575, 0.008079004, -0.006892746, -0.05292854, -0.017015709, 0.03441877, -0.029493896, -0.06778616, -0.019505814, 0.01910463, 0.008922872, 0.014553273, -0.027391141, -0.007449561, -0.054782283, -0.01765207, 0.02405717, -0.077525236, -0.012125422, -0.053592566, 0.0069273305, -0.0034169757, 0.030379267, 0.02894054, -0.007663986, 0.0367982, -0.06308263, -0.048086673, -0.0034774991, -0.025675736, -0.0036175675, -0.017942581, -0.03488912, 0.045402892, 0.0018157007, -0.012969291, -0.0036348598, 0.014318097, 0.03339506, 0.047920663, -0.056165677, -0.023199467, 0.029078878, -0.0384306, 0.011952498, -0.01613034, -0.02918955, 0.039315972, -0.06518538, 0.03732389, 0.004606692, -0.010347765, 0.02348998, -0.05303921, 0.010444602, -0.02855319, 0.011717322, -0.050825786, 0.020003835, 0.009254886, 0.008826035, -0.037683573, -0.034723114, -0.06258461, -0.06679012, 0.010783533, -0.024098672, -0.0031783408, -0.039924666, 0.028885204, 0.052375183, -0.018827952, 0.041667737, 0.0511578, 0.024748866, -0.004879912, -0.021677736, 0.03286937, 0.011018709, -0.008881371, -0.0383476, -0.018565107, -0.003932289, 0.011807242, -0.049580734, -0.040312015, -0.05420126, 0.041806076, 0.048667695, 0.014705447, -0.0020024586, 0.0216224, -0.031734988, -0.039952334, 0.024596693, -0.0003255292, -0.03638318, -0.025592733, -0.005858661, -0.018108588, 0.06092454, -0.016711364, -0.043576818, -0.008957457, 0.07625251, 0.0022912414, -0.053454228, 0.032094672, 0.026436603, -0.015189634, -0.03820926, -0.011973249, 0.013896163, -0.0020439602, -0.031901, 0.015881328, -0.013737073, -0.012713363, 0.009296387, -0.0010617526, -0.002614609, 0.0122015085, 0.037517563, -0.0039046211, -0.04963607, 0.024112506, 0.04570724, -0.00091649656, -0.006647194, -0.0075809825, -0.020405017, -0.01864811, 0.0021788408, 0.022936624, -0.016918872, -0.022867454, 0.02596625, 0.05328822, 0.05267953, -0.008694612, -0.00015963035, -0.014248927, 0.000021926207, -0.047809992, -0.0008940164, 0.011143215, 0.036189508, 0.029936582, -0.05699571, 0.00080106984, 0.012741031, -0.0065918583, -0.037517563, -0.036189508, -0.020197509, -0.046011586, -0.018316098, -0.017237052, -0.03259269, 0.023406975, 0.026367433, -0.020045336, -0.011779575, 0.017762741, 0.024970207, -0.026976125, -0.013847744, 0.004627443, 0.013149131, -0.017818077, -0.03428043, -0.0025713781, -0.03273103, -0.01406217, 0.009130381, 0.010866537, 0.028525522, 0.061754573, 0.0047035296, 0.017541397, 0.0176244, -0.025426727, 0.00935864, -0.059430476, -0.0048280344, 0.030794283, -0.0119040795, 0.023988, -0.04050569, -0.014276595, 0.00086721324, -0.019893162, -0.011876412, 0.012000917, 0.023365473, -0.035580818, 0.017043376, -0.013439643, 0.0005615703, -0.057549067, -0.008611609, 0.0011784763, 0.03416976, -0.022895122, 0.020405017, 0.058047086, 0.07193633, 0.0006117182, 0.049580734, 0.013979166, 0.021760741, -0.00041631423, 0.015549315, 0.052983876, 0.008604692, 0.025067044, -0.03170732, -0.018053252, 0.036106504, -0.035940498, 0.03237135, -0.0044441437, -0.015466311, -0.016863536, 0.04595625, 0.015341806, 0.071161635, 0.013799326, -0.0028809118, -0.010084921, -0.020916872, 0.012692613, 0.0036279429, -0.019381309, -0.044102505, -0.026159924, -0.079738654, 0.048806034, -0.02692079, -0.018094754, -0.012851702, 0.023877328, -0.0052050087, -0.0034515606, 0.016075004, 0.027612485, 0.040035337, -0.052983876, -0.02303346, 0.008839869, 0.005606192, -0.05937514, -0.036881205, -0.0029137672, 0.033422727, 0.0134119755, -0.023061128, -0.04927639, 0.033478063, 0.006937706, 0.004561732, -0.027128298, 0.039066963, -0.03923297, 0.045402892, 0.009102712, -0.05533564, 0.03682587, 0.03569149, 0.006169924, 0.011537481, -0.050300095, 0.033561066, 0.020986041, -0.023600651, 0.047809992, -0.0015632318, 0.049940415, 0.011150132, 0.0028688072, -0.015244969, 0.011973249, 0.032399017, -0.011350723, 0.0030866913, 0.054643944, 0.020737031, -0.011689654, 0.009462395, 0.031319972, -0.014663945, -0.010202508, 0.0343081, 0.008224259, 0.03336739, 0.021982083, 0.015659986, -0.010486104, 0.01651769, 0.0030607525, 0.009400142, 0.00016449383, 0.045900915, -0.02905121, -0.070552945, -0.015964333, 0.013322055, 0.03491679, 0.023462312, 0.011364557, -0.012346765, 0.028857537, 0.040173676, 0.016254844, 0.05948581, 0.0026059628, -0.00009224408, 0.0067959083, 0.05522497, 0.026408935, -0.01751373, -0.012678779, -0.0035241887, -0.06252927, 0.0056373184, -0.028497854, -0.025288388, 0.05647002, -0.033478063, -0.037240885, -0.052458186, 0.008002917, -0.028276512, -0.0006579753, 0.026173757, -0.035636153, -0.05810242, -0.0068270345, -0.044877205, 0.0041363393, 0.06435535, 0.015452477, -0.021843744, 0.09384925, 0.021497896, 0.03170732, 0.041169718, 0.0142074255, -0.030268595, 0.02660261, -0.0019540398, -0.010368516, 0.025952416, -0.008535523, -0.06142256, 0.03364407, 0.023642153, -0.010001917, -0.032952372, 0.01224301, 0.02660261, -0.018993959, -0.017250886, 0.045624234, 0.010562191, 0.008680779, 0.032897037, -0.01698804, -0.04709063, -0.023586817, 0.0072558858, 0.05065978, 0.0023240969, -0.0040222094, -0.037268553, -0.046758614, 0.015908998, 0.0023344723, -0.015300305, 0.0066541107, 0.03212234, 0.019879328, 0.030296262, 0.032150008, -0.007017251, 0.001213061, 0.030102588, 0.039288305, 0.019325972, 0.10519305, 0.07890862, 0.007878412, -0.006740573, 0.018897122, 0.037683573, -0.008763782, -0.035497814, -0.02710063, 0.044738866, 0.0007115817, -0.003845827, 0.00806517, 0.051323805, -0.020723198, 0.015825992, -0.0447942, 0.0017110817, -0.030019585, 0.01549398, -0.033782408, 0.029161882, -0.0016894663, 0.0008300346, 0.005222301, -0.044877205, 0.223888, 0.084054835, 0.023254802, 0.033063047, 0.019325972, 0.047892995, 0.030766616, -0.033478063, 0.002253198, -0.034335766, 0.0018485562, -0.015701488, 0.008694612, -0.0060869204, 0.0028428684, 0.015065128, -0.07414976, -0.038292263, -0.015438643, -0.0295769, -0.05635935, 0.0067613237, -0.0063255555, 0.01885562, -0.011087879, 0.013467312, 0.016434684, 0.012263761, -0.047809992, -0.025565065, -0.0018416393, -0.027902996, 0.050964125, -0.013024626, -0.043521482, 0.027653987, -0.014940623, -0.08626826, 0.006505396, 0.017472228, 0.011122463, -0.028497854, -0.015756823, 0.020999875, 0.007207467, 0.045485895, 0.01783191, -0.033173718, 0.03580216, -0.045209218, 0.057659738, -0.015507814, 0.001883141, -0.012844785, -0.059098464, -0.009137298, -0.015424809, -0.050853454, 0.07996, 0.0044406853, 0.028331848, -0.006083462, 0.0050078756, 0.002019751, 0.009815159, 0.002932789, -0.00036876017, 0.018758781, -0.013280554, -0.028608525, 0.04747798, -0.012678779, -0.0084041, 0.011329972, 0.03580216, 0.02115205, -0.013723238, 0.052458186, -0.01578449, 0.008500937, -0.00032617766, 0.0070483773, -0.013121463, -0.03513813, 0.029272554, 0.009828993, -0.068892874, 0.028331848, -0.049719073, -0.008756865, 0.013868495, 0.04794833, 0.011246969, -0.0046447353, -0.024707364 ]
ViT has a global receptive field which means it can see more of an image at once thanks to its attention mechanism. ConvNeXT attempts to replicate this effect by increasing the kernel size to 7x7. ConvNeXT also makes several layer design changes that imitate Transformer models. There are fewer activation and normalization layers, the activation function is switched to GELU instead of ReLU, and it uses LayerNorm instead of BatchNorm.
[ -0.01838038, -0.003524547, -0.031304304, -0.05338326, 0.006349458, -0.03754829, -0.012234836, -0.0021076966, -0.015567774, 0.055211455, -0.0056603695, 0.00032960228, 0.043707896, -0.023499323, 0.009605049, -0.0066342345, 0.010990258, 0.015567774, -0.04320163, -0.013402067, 0.037013896, 0.045732975, -0.04739241, -0.02427279, -0.04432667, 0.001884446, 0.044101663, -0.02380871, 0.057995934, 0.036423247, -0.04390478, -0.047983058, 0.03397628, -0.05239885, 0.020714844, -0.011264487, 0.025130635, -0.039460864, -0.031529315, -0.019196035, 0.026002543, 0.0404734, -0.017761607, -0.062946126, -0.050655033, -0.0045740004, 0.01977262, -0.0570959, -0.011862166, 0.004693536, -0.03375127, 0.016636565, -0.013613013, -0.0029760888, 0.019477297, -0.012044985, -0.000009283797, 0.016538123, 0.004883387, -0.019786684, 0.049558118, -0.012143427, -0.0018070993, -0.044439174, 0.024750933, 0.023654016, 0.0019846451, -0.031416807, 0.0056357593, -0.013725517, -0.02877296, 0.001115374, -0.022725856, -0.03155744, -0.024750933, 0.021333616, 0.013064555, 0.037492037, -0.011011353, 0.050148766, 0.037660792, 0.005934599, -0.010069129, -0.017030329, -0.007917486, -0.016299052, 0.05695527, 0.006163123, -0.042920366, -0.052989498, -0.005755295, 0.020475771, -0.0033751272, 0.051892582, -0.010540241, -0.002158675, -0.008887835, 0.0022061379, -0.034173165, -0.00988631, -0.0054459083, 0.074140295, -0.045817353, 0.053495765, -0.0175366, -0.018830396, 0.013957557, -0.023302441, -0.03605761, -0.013563792, 0.03414504, -0.032091834, 0.0070561254, -0.0073549645, 0.009204254, 0.030038632, -0.027760422, 0.00684518, -0.019927314, 0.0009756227, -0.0011470158, -0.024146222, 0.0019178457, -0.017339716, 0.012312183, -0.020405456, 0.020138258, 0.00016600968, -0.027436972, 0.020574212, 0.015638089, -0.010596493, -0.0036141986, 0.0029092894, -0.0202367, -0.0061947647, -0.045789227, 0.015961539, -0.023218062, -0.0128114205, 0.015005253, 0.0013597192, -0.018788207, 0.062833615, -0.017761607, 0.026058795, -0.020644529, -0.011180108, -0.015680278, 0.014977127, 0.011496527, 0.017930362, 0.027774485, 0.004064216, -0.041739073, -0.026986955, 0.0055338023, 0.008093274, -0.032007456, 0.0027844799, -0.010891817, 0.0020074975, -0.018633515, 0.04269536, -0.017030329, 0.061202306, -0.013310658, -0.020363268, -0.04525483, -0.025313454, 0.028196376, 0.010842596, 0.00009871588, 0.02933548, 0.043089125, -0.0117496615, 0.07717791, -0.03678889, 0.0078049814, -0.002404778, -0.00429274, -0.04632362, -0.045423586, 0.023766521, -0.010301169, -0.009429262, 0.016341241, -0.0012894041, -0.039151475, 0.047083024, 0.025707219, 0.0077768555, -0.048376825, 0.004014995, -0.04097967, 0.026860388, 0.0010819744, 0.0235837, -0.014344291, -0.008937055, -0.009316757, 0.05445205, -0.033638768, -0.0255244, -0.06795256, 0.021108609, 0.043792274, 0.04598611, -0.0609773, -0.011679347, 0.009148001, 0.013816927, -0.011876229, 0.043764148, 0.013521603, -0.020292953, 0.02009607, 0.009499577, 0.0045142327, -0.019322604, -0.0021534015, -0.0024592723, 0.038138937, 0.019561674, 0.044157915, -0.018619452, -0.018830396, 0.051639445, 0.04005151, 0.053102, 0.02520095, 0.027324468, -0.016833447, 0.032794986, -0.029616741, -0.018605389, 0.039095223, 0.018591326, 0.00394468, 0.03811081, 0.012656727, -0.0008675132, 0.027366657, -0.011348865, 0.015736531, 0.010638682, -0.0014019083, 0.010891817, -0.058839716, -0.008423755, -0.028885463, 0.057658423, 0.01773348, 0.007629194, -0.03231684, -0.016875636, 0.004707599, 0.017002203, 0.0066869706, -0.049586244, -0.018619452, -0.0032995385, 0.026115047, -0.030066758, 0.05546459, 0.0391796, 0.03968587, 0.03318875, -0.03718265, -0.08420943, -0.04069841, -0.06103355, -0.08426568, 0.014766182, -0.026705693, -0.077290416, 0.0012955567, -0.028829211, 0.0036071672, -0.0027528382, -0.03197933, 0.025974417, -0.07374653, 0.034932565, 0.023780584, 0.01898509, -0.056449004, 0.024033718, 0.015792783, -0.011440275, 0.014484921, -0.02576347, -0.057433415, 0.009394104, 0.017944425, -0.015399018, 0.016495934, -0.03625449, -0.025482211, -0.0057763895, -0.00440876, -0.02223365, -0.0037091242, 0.03619824, -0.02223365, 0.020039817, 0.015553711, 0.011039479, 0.028787022, 0.056702137, -0.022303965, 0.032991868, 0.014752119, 0.025313454, -0.026340054, 0.091240935, 0.01888665, -0.020827347, 0.0018123729, 0.015638089, 0.0013957557, 0.021783633, -0.015089631, -0.038926467, 0.015933413, 0.07892173, -0.0068346327, -0.03884209, 0.011524653, -0.056983396, -0.056139614, -0.005667401, -0.01577872, 0.009541766, 0.059683498, 0.008852677, -0.045142327, -0.0037618605, -0.009907405, 0.019083532, 0.006669392, -0.07751542, 0.052201968, 0.057995934, -0.0006420652, 0.027690105, 0.024961878, -0.005797484, 0.005372077, 0.04961437, 0.041935954, 0.029672993, 0.031360555, -0.012783295, 0.0027774484, -0.0013254406, -0.013873179, 0.01949136, 0.030601153, -0.001233152, 0.079427995, 0.0081987465, -0.029419858, 0.032401223, -0.03704202, -0.022852425, -0.00559357, -0.03091054, 0.034313794, -0.029504238, 0.019899188, -0.0064584464, -0.0020848443, 0.0149349375, 0.0007572063, -0.07487157, 0.021038292, 0.01842257, 0.048067436, -0.04525483, 0.011018384, 0.0404734, -0.0090284655, -0.004612674, 0.014351322, 0.021178924, -0.018183498, -0.015019316, -0.017283464, 0.018113183, -0.006771349, -0.019210098, -0.011946544, 0.016102169, -0.04590173, -0.032541852, 0.030038632, 0.013584887, 0.0046091583, -0.028688582, 0.02326025, -0.026832262, 0.0049537024, 0.020194512, -0.023302441, -0.019603863, -0.039010845, 0.019477297, -0.0010802165, -0.019055406, -0.021178924, 0.010146476, 0.00073127757, -0.011011353, 0.018113183, 0.007713572, -0.019139783, 0.010455863, 0.0046337685, 0.0037442818, 0.020461708, -0.031079296, -0.038279567, -0.003116719, 0.032682482, -0.03698577, 0.013008303, -0.039235853, 0.01359895, 0.0364795, -0.034735683, -0.045142327, 0.0278448, -0.030179262, -0.044242293, 0.027451035, 0.07464656, -0.00034014953, 0.029672993, -0.033610642, -0.011011353, -0.009619112, -0.02501813, -0.03355439, -0.016270926, 0.017466282, 0.008395629, 0.027099459, 0.010188665, -0.029026095, 0.010090224, -0.055858355, 0.043707896, -0.031107422, 0.005727169, -0.009534734, 0.04432667, -0.023682142, 0.057011522, -0.009105812, -0.007013936, -0.012614538, 0.059345987, -0.06018977, -0.042667232, 0.008690952, 0.042526603, 0.012213741, 0.032457475, 0.002698344, -0.012037953, -0.033638768, 0.016678754, -0.06401491, 0.0014291555, -0.008599543, -0.0020971494, 0.005899441, -0.054648936, 0.035101324, -0.024005592, 0.048742462, -0.0073760594, -0.03226059, -0.0037864707, -0.03678889, -0.0027405329, 0.0062017962, -0.012565318, 0.011039479, 0.009900373, 0.021980517, -0.041457813, -0.0028108482, -0.004380634, 0.025735345, -0.039432734, 0.022388345, 0.05490207, 0.014091156, 0.020124195, -0.06581498, -0.014266944, 0.0056779482, -0.03698577, -0.024258727, -0.051245682, 0.013430194, -0.00997772, -0.019083532, -0.03754829, 0.03718265, -0.03282311, -0.011208235, 0.021403931, 0.0062896903, -0.0045704846, -0.051358186, 0.0023291893, 0.024582176, 0.0034682949, -0.06609624, -0.0138591165, 0.036282618, 0.014140377, 0.004566969, 0.050092515, -0.035804473, -0.014949, -0.007277618, 0.016495934, -0.061652325, 0.027957303, -0.04162657, -0.010849628, 0.024990004, 0.009851152, 0.039095223, -0.015666215, -0.023780584, -0.028351068, 0.00037860314, -0.026607253, -0.032682482, 0.0018615936, 0.0003392706, -0.023091495, 0.047139276, 0.006810022, -0.06795256, -0.0121856155, 0.017719418, 0.0583897, 0.0424141, -0.049839377, -0.018296001, 0.01731159, -0.04427042, 0.018113183, 0.032935616, -0.018352253, 0.014182566, 0.0117637245, 0.029954255, -0.039742123, -0.028477635, -0.0051505845, -0.043089125, 0.034791935, -0.009590986, 0.00049967703, -0.018366316, 0.0338919, -0.00853626, 0.0071862084, -0.01485056, -0.031416807, -0.007868266, -0.04404541, 0.016031854, -0.01081447, 0.021572689, -0.0048904186, -0.0016418587, 0.04612674, -0.014738056, 0.049642496, 0.038307693, 0.010385548, -0.06018977, 0.0016005486, 0.010969164, 0.0031044139, -0.019013217, 0.008409692, -0.0055724755, -0.006142028, 0.0022412953, -0.042442225, -0.053158253, -0.0025418927, 0.022346154, 0.043764148, -0.026002543, 0.02134768, -0.013788801, -0.0029128052, -0.039151475, 0.03704202, 0.015258388, 0.027676042, 0.054367673, 0.0011848103, 0.014337259, 0.08584073, 0.0058818622, -0.032091834, -0.054002035, 0.04840495, 0.030713657, -0.053130127, 0.04083904, 0.039292105, 0.024455609, 0.014112251, 0.016805321, -0.014140377, 0.0034858736, -0.016341241, 0.0034559895, -0.009492545, 0.00063019956, 0.0079667065, 0.022050831, -0.042217217, -0.011580905, 0.038448323, 0.005973272, -0.05518333, -0.027043207, 0.036732633, -0.01605998, 0.014484921, -0.04584548, -0.019547611, -0.03898272, -0.05425517, 0.028421383, 0.004510717, -0.025777534, 0.009344883, 0.026143173, 0.040389024, -0.009991783, -0.01513182, -0.0062721116, 0.0037161557, -0.06947137, -0.013500509, 0.029532364, 0.010793376, 0.029813623, -0.03383565, 0.0013474141, 0.03490444, 0.01707252, -0.03560759, -0.05490207, 0.04632362, -0.059627246, -0.033863775, -0.059289735, -0.01146137, 0.014892749, 0.009119875, -0.010976195, -0.053270757, 0.028716708, 0.025383769, -0.019435108, -0.0051470688, -0.029672993, -0.027113521, -0.038954593, -0.019069469, 0.030966792, -0.0058888937, 0.019842936, 0.056449004, -0.013191123, -0.015666215, 0.028491698, -0.001406303, -0.009295663, 0.018619452, -0.020996103, -0.0074182483, -0.029222976, 0.007369028, 0.0036915455, 0.011257456, 0.023991529, -0.06660251, -0.0014168503, 0.00062976003, -0.014013809, 0.0060400716, -0.0016401008, 0.025918163, 0.006243985, 0.015370891, -0.010575399, 0.029504238, -0.046239242, -0.020630466, 0.01888665, -0.037351407, -0.016509997, 0.022289902, 0.039742123, 0.011384022, -0.0032274653, 0.013402067, -0.040529653, 0.03231684, -0.005871315, -0.02041952, 0.023372756, -0.020785159, -0.023429008, 0.007678414, 0.0042716456, 0.03833582, -0.023147747, 0.032682482, 0.015230262, -0.023836836, 0.021516437, 0.0007941217, 0.025875974, 0.029222976, 0.005653338, 0.004693536, 0.008128432, -0.010434768, -0.045929857, -0.004475559, -0.011573873, 0.015356828, 0.035945106, -0.022163335, 0.028674519, -0.020110132, -0.042864114, 0.034173165, 0.034707557, 0.015145883, 0.00417672, 0.01991325, -0.017395968, 0.049586244, -0.03884209, 0.0005616423, -0.020714844, 0.05369265, -0.032344967, -0.017592851, 0.0037899865, 0.094391055, -0.011004321, -0.044101663, -0.0318387, -0.019238224, 0.022641478, 0.0074745, 0.00020259553, 0.0044861063, -0.035298206, 0.034988817, -0.004229456, -0.013964589, -0.0015214441, 0.044889193, -0.0027844799, -0.036141988, -0.013338784, -0.027886989, 0.022669604, -0.018042868, 0.005031049, 0.00069787784, 0.036817014, -0.0034155585, -0.01800068, -0.001363235, 0.050148766, 0.011862166, -0.0041872673, -0.0041064047, 0.03197933, 0.05973975, -0.008740173, -0.006307269, 0.052511353, -0.022205524, 0.03276686, 0.049220607, -0.02919485, 0.0065709506, -0.024525924, 0.0004326579, 0.027183836, 0.014400543, 0.0006666755, -0.004985344, 0.000746659, 0.05332701, -0.009148001, -0.052848868, -0.021333616, 0.0077909185, 0.03856083, 0.023639953, -0.0056076334, -0.011876229, 0.021432057, 0.04612674, -0.0090284655, 0.007875297, 0.024202475, -0.018633515, -0.04896747, 0.019561674, 0.0031237504, 0.019041343, 0.007383091, -0.043932907, -0.029588616, 0.018844461, -0.0007374301, -0.0021885592, 0.03397628, -0.022078957, -0.05788343, -0.08359065, 0.03178245, -0.044579804, 0.015117757, 0.023133684, -0.012698916, -0.02463843, -0.0003814597, -0.03940461, 0.017761607, 0.008297187, 0.048264317, 0.020067943, 0.1220671, 0.03048865, -0.012649695, 0.03704202, 0.044692308, -0.05099255, -0.02556659, -0.03403253, -0.011489496, -0.003288991, -0.059570994, -0.04491732, 0.05211759, 0.04682989, -0.0070244833, -0.024244664, 0.016580312, 0.0033839166, -0.027971366, -0.018056931, 0.07065266, 0.014344291, 0.036423247, 0.024230601, -0.028997967, -0.031416807, -0.0033364538, -0.062271096, 0.062214844, -0.049867503, -0.020082006, -0.005277152, -0.05318638, -0.029757371, 0.030882414, 0.0076362253, -0.0073409015, 0.040923417, 0.03048865, 0.018056931, 0.04362352, -0.005407235, -0.025538463, 0.011594968, 0.033779398, 0.015483396, 0.09500983, 0.050655033, -0.029672993, -0.027127584, -0.0026579127, 0.013781769, 0.02213521, -0.0046408, 0.027577601, -0.007495595, 0.0057236534, -0.03467943, -0.0052138683, 0.031894952, -0.028351068, 0.026410371, -0.062946126, -0.0034313793, -0.0324856, 0.026002543, -0.04320163, 0.058445953, 0.002696586, -0.008254998, 0.018816333, -0.053917658, 0.23310879, 0.030038632, 0.05054253, 0.026058795, 0.054367673, 0.027886989, 0.01591935, -0.015975602, 0.031163674, 0.019196035, -0.0031483609, -0.020363268, -0.040220264, -0.021825822, -0.009598018, 0.04553609, -0.015834972, 0.012916893, 0.014738056, -0.05973975, -0.060471028, 0.03304812, 0.0048658084, 0.0077206036, -0.014105219, 0.0081987465, 0.014330228, -0.0025418927, 0.005424814, -0.050345648, -0.037745174, -0.04024839, 0.032344967, -0.0014106977, -0.0074674687, 0.056561507, 0.01605998, -0.028140124, 0.0022061379, 0.019069469, 0.0025612293, -0.073184006, 0.017325653, -0.0035878306, -0.03462318, 0.07616537, -0.013929431, -0.014864623, 0.055858355, -0.05810844, 0.02348526, -0.034060657, 0.039432734, -0.007027999, -0.0046724416, 0.02441342, -0.058445953, -0.03231684, -0.008838614, 0.023246188, 0.03870146, 0.02956049, -0.013936463, 0.0019301509, 0.026241614, -0.023780584, -0.029447984, 0.011215267, -0.02534158, 0.02705727, 0.023499323, 0.0044685276, -0.009865216, -0.023316504, 0.009091749, 0.039151475, -0.036310744, 0.049839377, -0.02084141, -0.008114369, -0.04362352, -0.02970112, 0.029926129, -0.009675365, 0.045086075, 0.017930362, -0.016327178, -0.010427737, -0.024343105, -0.0056041176, 0.0038181127, 0.006665876, 0.025454083, 0.016270926, 0.022107083 ]
The output from the convolution blocks is passed to a classification head which converts the outputs into logits and calculates the cross-entropy loss to find the most likely label. Object detection DETR, DEtection TRansformer, is an end-to-end object detection model that combines a CNN with a Transformer encoder-decoder.
[ 0.024606492, 0.0075284317, 0.009028484, -0.051156715, 0.015620263, -0.0047924207, -0.01932462, -0.021352857, -0.004979047, 0.040395778, 0.022085277, -0.012535649, 0.041466236, -0.036339298, 0.012458181, 0.031268697, -0.010070774, -0.036649168, -0.043015588, 0.004021267, 0.0040388736, -0.0056621693, -0.07549559, -0.038339365, -0.042367678, 0.030479938, 0.054931495, -0.029240457, 0.063213475, 0.020268314, -0.012380714, -0.029184118, 0.023564203, -0.023296587, -0.012627201, 0.010007392, 0.025338912, -0.016535789, -0.047015727, -0.020042954, 0.03490263, 0.004996653, 0.00033914036, -0.03135321, -0.03653649, 0.0011408849, 0.022451488, -0.017197784, -0.016113238, -0.06332616, -0.031071508, 0.012169439, -0.003964927, -0.0007385821, -0.021719068, -0.026381202, 0.0077537918, -0.026522053, -0.0061833146, 0.009162292, 0.037268907, 0.021817664, -0.0005647204, -0.06834041, -0.015775198, -0.0028786217, 0.0028504517, -0.029606668, 0.027085453, -0.024705088, -0.058931634, -0.0185922, -0.0097961165, -0.018747134, -0.026423458, -0.0005497551, -0.039578848, 0.012732839, -0.0033011716, 0.019761253, 0.015845623, 0.042959247, -0.018000629, -0.0017852735, -0.056706205, -0.016634384, 0.019789424, -0.017634418, -0.010775024, -0.021859918, 0.0059403484, 0.034620926, 0.012134226, 0.033578638, -0.013944149, 0.029832028, -0.036818188, 0.03571956, 0.011838442, 0.010472197, 0.0012104296, 0.10760939, -0.020507758, 0.081129596, -0.048001677, -0.013908937, 0.0018521773, -0.017676674, -0.042198658, -0.011197574, 0.022761358, -0.013803299, 0.007158701, -0.020409163, 0.00034882379, 0.024381133, 0.008605935, 0.0016092111, -0.053213127, 0.0051586307, -0.049973577, -0.01712736, 0.005021302, -0.028184082, 0.0318321, -0.041550748, -0.00200007, 0.012070844, -0.034677267, 0.018648539, 0.043240946, -0.010366559, -0.025071299, 0.06952355, -0.024775513, -0.034198377, -0.024479728, 0.025817802, 0.006866437, -0.011380679, -0.00010673788, -0.019042918, -0.020859884, 0.06766433, -0.03264903, -0.0073946244, -0.008521425, -0.047860827, -0.050846845, 0.020155633, -0.01833867, 0.018718963, -0.0054473733, 0.015366734, -0.054706134, -0.019028833, -0.046452325, 0.051832795, -0.025381168, 0.008965102, -0.00040032208, -0.006433323, -0.012606074, 0.060565494, -0.024845937, 0.07048134, -0.061692294, -0.0026215704, -0.026831923, -0.031381376, -0.0069051706, -0.016282259, 0.011500401, -0.013901894, 0.0180288, 0.005355821, 0.052114494, -0.011289126, 0.018479519, -0.027846042, 0.0066481195, -0.033634976, -0.005771328, 0.0047748145, -0.0147751635, -0.041804276, 0.016183663, -0.0013257505, -0.022071194, 0.0023803648, -0.00847917, 0.041945126, -0.012796221, 0.019000664, -0.030817978, 0.012028589, -0.016352683, -0.036226615, -0.0115849115, -0.017887948, -0.005725552, 0.024310708, -0.011549699, -0.011986334, -0.08783405, 0.012042674, 0.01566252, 0.075946316, -0.025860058, 0.0066622044, -0.0024789597, 0.010951087, -0.013923021, 0.009634139, 0.031184187, -0.005148067, -0.012289162, 0.022437403, 0.011380679, 0.023719138, 0.021282433, 0.027169963, 0.034649096, -0.03619845, 0.0026726285, 0.045438208, 0.028127743, 0.042874735, 0.018902069, 0.029775688, -0.00783126, 0.0383112, 0.0049931323, 0.009183419, 0.019549979, 0.043917026, -0.021310603, 0.034846287, 0.012422969, 0.0075213895, 0.0018345711, 0.021874003, 0.043860685, 0.014521634, -0.0013433568, -0.0070284144, -0.022606423, 0.014296274, -0.056058295, 0.022986718, -0.020902138, 0.030508107, 0.008958059, -0.012577904, -0.045212846, 0.004866367, -0.020493673, 0.015451244, 0.005148067, -0.06636851, 0.008084789, 0.0016461842, -0.0049508773, 0.014289231, 0.052734237, 0.030592617, 0.022564169, 0.036085766, -0.013493429, -0.089862294, -0.038339365, -0.072284214, -0.084059276, -0.0068593943, -0.035973087, -0.042593036, 0.027747449, -0.035297006, 0.020873968, -0.0019859849, -0.022057109, 0.012310289, -0.020592269, 0.019507723, 0.07414343, 0.026846008, -0.024310708, 0.055889275, -0.0021338772, -0.0014683611, 0.0011347227, -0.041550748, 0.017183699, 0.00006272226, 0.0065319184, -0.030113727, 0.01924011, -0.018310498, -0.056114636, 0.010239794, -0.014359657, -0.012951156, -0.03278988, 0.033071578, -0.037325248, 0.041184537, -0.020324653, -0.021352857, -0.012000419, 0.048621416, -0.024620578, 0.029522158, -0.0036515358, 0.054903325, -0.014549804, 0.068791136, 0.027888298, 0.011134191, -0.015408989, -0.0191556, -0.022902207, 0.020775374, -0.015155459, -0.024719173, -0.0058840085, 0.056396335, 0.008655231, -0.070030615, -0.024282537, -0.06338249, -0.01833867, -0.009443992, 0.0022588817, 0.022564169, 0.040367607, 0.026606563, -0.029944707, 0.033494126, 0.002327546, 0.009591884, 0.013190601, -0.044621278, 0.024000838, 0.046001606, -0.004750166, 0.038761918, 0.056875225, -0.014077957, 0.051297564, 0.020141548, 0.058987975, 0.035494197, 0.020254228, -0.03735342, 0.006517833, -0.026057247, -0.034818117, 0.005303002, -0.014113169, -0.033973016, 0.086312875, 0.014134296, -0.030648958, 0.017676674, -0.048959456, -0.011429977, -0.0034385005, 0.023451524, 0.039325316, -0.026902348, 0.030592617, 0.009401737, -0.033719487, 0.052959595, 0.0032958898, -0.049804557, 0.036282957, -0.0060142945, 0.043071926, -0.042508528, 0.005644563, 0.0047572083, 0.012789179, 0.0080073215, 0.026338948, 0.032677196, -0.027423494, 0.0036620996, -0.03343779, -0.006866437, 0.027451662, 0.0080284495, -0.036930867, -0.003894502, -0.038930938, -0.031156017, 0.0014551565, 0.056706205, 0.017451314, 0.00047008684, 0.045832586, 0.0061269747, -0.011113064, 0.029212287, -0.029493988, -0.008225639, -0.032846216, 0.03231099, 0.020958478, -0.048931286, 0.006922777, -0.005510756, 0.035860408, 0.0062959944, -0.040114075, 0.017563993, 0.006940383, -0.020268314, -0.018733049, 0.041663427, 0.0002916035, -0.0017210108, -0.062875435, 0.052058157, 0.023014888, -0.039156295, 0.011577869, -0.027648853, 0.0073523694, 0.019775338, -0.0084369145, -0.027578428, 0.013725831, -0.0025740336, -0.008359447, 0.06372053, 0.04042395, -0.037944987, -0.0036761847, -0.028310848, -0.01031022, -0.013690619, 0.030170068, -0.028986927, 0.013542727, 0.014662484, 0.003908587, 0.010676429, -0.0044790297, -0.011479274, 0.023113484, -0.046424158, 0.053522997, -0.039663356, -0.016775234, -0.016901998, 0.050198935, -0.045184676, 0.00059421087, 0.014465294, -0.01980351, -0.01622592, 0.010584877, -0.03670551, -0.060283795, 0.0006655162, 0.010577834, 0.0047043897, 0.014803334, 0.021803578, 0.008570721, 0.021634558, 0.052058157, -0.07250957, 0.0023134612, -0.028169997, 0.014141339, 0.017817523, -0.024550153, 0.030198237, -0.034818117, -0.0005251064, -0.009803159, 0.0031233486, -0.021874003, -0.054227244, -0.008570721, 0.040480286, -0.0071868706, -0.030986998, 0.036930867, 0.0112820845, 0.024099434, 0.033465955, 0.013669492, -0.019099258, -0.060227454, 0.028634803, 0.046367817, -0.027761532, 0.066481195, -0.0049297498, -0.031437717, -0.010866577, -0.050762337, 0.016211834, -0.00828198, -0.0045741033, -0.027141793, -0.0057185097, -0.003567026, -0.023141652, -0.006017816, -0.010056689, -0.0025687516, 0.0041797236, -0.011873654, -0.015338563, -0.008049577, 0.046255138, -0.030282747, -0.0723969, -0.07414343, 0.052339856, -0.050565146, 0.015859708, 0.022183873, -0.0069474257, -0.033240598, -0.013711747, 0.021521877, -0.06332616, -0.016873829, -0.035804067, 0.0010854253, -0.014535719, -0.0012306768, -0.0027800268, 0.00515511, -0.029691178, -0.029268628, -0.028155914, -0.054452606, -0.032592688, -0.0035071648, 0.009169335, -0.047353767, 0.039240807, -0.016845658, -0.061804976, 0.015296308, 0.0013970558, 0.052649725, 0.037804138, -0.041550748, -0.027282642, -0.003130391, -0.024310708, 0.043269116, 0.008260852, -0.028831992, 0.024845937, -0.009718649, 0.031465888, -0.0050846846, 0.0053346935, 0.023662798, -0.031860266, 0.008605935, -0.058480915, 0.00811296, -0.01704285, 0.020296484, 0.026958687, -0.023564203, -0.008838337, -0.0054368097, -0.027775617, -0.053579334, 0.034930795, -0.037747797, 0.005968518, -0.017620334, -0.005278353, 0.030592617, -0.014831504, 0.030620787, 0.050593317, 0.034930795, -0.040283095, 0.0015106162, -0.0012148311, 0.029212287, -0.00856368, -0.0052994806, -0.017282294, -0.033184256, 0.005045951, -0.039832376, -0.047832657, 0.019254193, 0.024000838, 0.027423494, 0.009035527, 0.016873829, -0.013592024, -0.013430047, -0.036930867, 0.019409128, 0.034395568, -0.009634139, 0.0154653285, -0.020211974, 0.034705438, 0.07960841, -0.017465398, -0.039437998, 0.0019560542, 0.075946316, -0.014148382, -0.026071332, 0.0075636446, 0.020564098, -0.030423598, -0.016127324, 0.0028363666, 0.009443992, -0.010479239, -0.024254369, 0.013732874, -0.018197818, -0.027310813, 0.017549908, 0.041297216, -0.011373636, -0.004116341, 0.035466027, 0.011838442, -0.032395497, 0.013331451, 0.042142317, -0.002473678, -0.040649306, -0.039466165, 0.00045160027, -0.021775408, -0.0383112, 0.012444097, -0.026634732, -0.0025634698, 0.030085558, 0.035804067, 0.075946316, -0.013972319, -0.0014305077, -0.012965241, 0.027268557, -0.066086814, 0.028465783, 0.022676848, 0.024479728, 0.046677686, -0.054734305, -0.005912178, 0.018564029, 0.0029736953, -0.039550677, -0.08456633, -0.0044015623, -0.0340857, 0.010190496, -0.008303107, 0.0049931323, 0.0119511215, 0.013549769, 0.021409199, -0.030705297, 0.029155947, 0.017380888, -0.052762404, 0.014789249, -0.049494687, -0.0033434266, -0.034930795, 0.0018169648, 0.01664847, -0.028212253, 0.0018504168, 0.038029496, -0.007324199, 0.0039825332, 0.022789529, 0.007507304, -0.015014608, 0.015408989, -0.0013204686, -0.006232612, -0.019085173, 0.020986648, -0.004440296, -0.008310149, 0.042001467, -0.035127986, 0.005130461, -0.0060882405, -0.014831504, -0.0010458111, -0.0048874947, 0.0045776246, 0.0022324724, 0.014732908, 0.0078030895, 0.033691317, -0.044508595, -0.035944916, 0.038761918, -0.018902069, -0.002369801, 0.017155528, 0.030170068, 0.08248176, -0.004116341, 0.031522226, -0.033325106, 0.014859674, 0.006697417, -0.0011611321, 0.044705786, -0.03473361, -0.014275147, -0.024606492, -0.009267929, 0.027902383, -0.019747168, 0.029663008, 0.016732978, -0.012253949, -0.0069157346, 0.0077749193, 0.020099293, 0.059664056, 0.004007182, -0.0033768786, -0.023888158, -0.021859918, -0.036930867, -0.037043545, -0.051269397, -0.019014748, 0.03326877, -0.055072345, -0.011493359, -0.023550117, -0.007641112, 0.03670551, 0.046452325, 0.043240946, -0.0010783827, -0.0073453267, 0.01712736, 0.011796187, -0.07543925, -0.009401737, -0.019564064, -0.0045177634, -0.060227454, -0.0025969218, 0.030874318, 0.030986998, -0.0051410245, -0.055438556, -0.047719978, -0.012789179, 0.030310918, 0.024676917, -0.022719104, 0.027958723, -0.005500192, 0.038029496, -0.018902069, -0.009929924, 0.03377583, 0.062143017, 0.0002643138, 0.0007068909, -0.009486247, 0.020395078, 0.041381728, -0.010246837, 0.009204547, 0.011683507, 0.0329589, -0.023212079, 0.022789529, -0.0045600184, 0.023845904, 0.026381202, -0.0015801608, 0.010380644, 0.040790156, 0.0318321, -0.022747273, 0.036254786, 0.034395568, 0.0033733572, 0.025564274, 0.017803438, -0.028071404, 0.0129863685, 0.016690724, 0.024212113, -0.018887984, 0.016592128, -0.009352439, 0.021183839, -0.025662867, 0.033634976, -0.0067185443, -0.082369074, 0.001330152, 0.024240283, 0.065805115, 0.034113865, -0.0000040404966, -0.000023424564, 0.024592407, 0.031268697, 0.009000314, 0.036564656, -0.009641182, 0.00080064416, -0.019366873, 0.042874735, 0.000665076, 0.00819747, 0.031944778, -0.040649306, -0.023747308, 0.049184814, -0.006866437, -0.019479554, 0.038733747, -0.0108947465, -0.052001815, -0.09436949, 0.055072345, -0.045860756, 0.026465712, 0.024521982, -0.026564308, -0.061917655, 0.036959037, -0.024479728, 0.005327651, 0.03309975, 0.036761846, 0.0055494895, 0.088284776, 0.0084369145, 0.0011162362, 0.039268978, 0.043353625, -0.03929715, -0.019113343, -0.007472092, -0.032564517, 0.00442269, -0.055241365, -0.027944637, 0.021381028, 0.03135321, -0.0013407158, 0.005172716, 0.024338879, 0.015563924, -0.034282885, -0.0072819446, 0.042931076, -0.00040978543, -0.004972005, 0.016324515, -0.013930064, -0.054818816, -0.013507514, -0.044536766, 0.060058434, -0.0012773334, -0.017380888, -0.010937002, -0.054762475, -0.038508385, -0.0076692817, 0.007218562, 0.0098594995, 0.025479764, 0.042762056, 0.033240598, 0.012359587, -0.026071332, 0.0007980032, 0.030226408, 0.040029567, 0.004655092, 0.056283657, 0.09352439, 0.009979222, -0.0008983588, 0.012113099, 0.015169544, 0.018141478, -0.004457902, 0.008591849, -0.0053100446, -0.019479554, -0.055128686, 0.009352439, -0.007366454, -0.03309975, -0.005496671, -0.050903186, 0.015704773, -0.021719068, 0.023000803, -0.042818397, 0.051466584, -0.019113343, -0.03507165, 0.004852282, -0.035944916, 0.23392366, 0.061072554, 0.014437124, 0.014972353, 0.028747482, 0.06924185, 0.059213337, -0.0002191978, -0.0027817872, 0.0050987694, 0.007472092, -0.029099608, -0.012099014, -0.008746784, -0.014831504, 0.035804067, -0.027141793, -0.013817384, -0.024719173, -0.028958758, -0.048480567, 0.014380784, -0.022324722, 0.030085558, 0.017225953, 0.0090636965, -0.0047677723, -0.014648398, -0.026958687, -0.01664847, -0.007035457, -0.030141897, 0.034057528, 0.0071868706, 0.00071745465, 0.019859849, 0.005876966, -0.03394485, -0.043578986, 0.009951051, -0.0010836646, -0.033634976, 0.024085348, -0.023338843, -0.027113622, 0.031775758, -0.0060882405, -0.022057109, 0.038226686, -0.07290395, 0.020310568, -0.044846635, 0.0003598277, -0.018775303, -0.0065389606, -0.0030247534, -0.060340136, -0.00022304917, 0.061635956, 0.025930483, 0.0154653285, 0.027817873, -0.007697452, 0.023254333, -0.021578219, 0.00073241995, -0.023606459, 0.03994506, 0.010303177, -0.036592826, 0.023268418, -0.013380749, 0.019789424, -0.012099014, 0.046677686, 0.037212566, -0.023775479, 0.072960295, 0.0012192327, -0.03619845, -0.03848022, -0.0069192555, 0.029606668, -0.025916398, 0.049410176, 0.016972424, -0.025550188, -0.024789598, -0.024775513, 0.03135321, 0.026888262, 0.049522854, 0.040621135, 0.020127464, 0.0014991721 ]
A pretrained CNN backbone takes an image, represented by its pixel values, and creates a low-resolution feature map of it. A 1x1 convolution is applied to the feature map to reduce dimensionality and it creates a new feature map with a high-level image representation. Since the Transformer is a sequential model, the feature map is flattened into a sequence of feature vectors that are combined with positional embeddings.
[ -0.011804736, 0.018805875, -0.033329364, -0.066264294, -0.009853715, -0.0143967075, -0.041950483, 0.018017014, -0.023651734, 0.06429215, 0.010649619, -0.0019862384, 0.026581787, -0.007275831, 0.0036872192, -0.0020918895, 0.011276482, -0.028046815, -0.065362744, -0.00012843197, 0.015889907, 0.04490871, -0.06970148, -0.017721191, -0.035864986, 0.004078128, 0.040936235, 0.0017291544, 0.05507938, 0.049275618, -0.0072828745, -0.01896083, 0.028159508, -0.038992256, 0.0112623945, 0.0007932628, 0.031751644, -0.026638135, -0.016861897, -0.036794715, 0.030314788, 0.03448448, -0.004546514, -0.04631739, -0.049641874, -0.0064411885, 0.024708243, -0.04800781, -0.014150188, 0.0058495426, -0.006008019, 0.019453868, -0.0043986025, -0.026314138, 0.046570953, -0.023299564, 0.016692856, -0.0072018756, -0.010677793, -0.013650107, 0.054797642, -0.009959366, 0.0027310778, -0.040175546, 0.0018224794, 0.0063707544, 0.008945117, -0.023046002, 0.0077759125, -0.015298262, -0.03445631, 0.006515144, -0.02163732, -0.010445361, -0.018904483, 0.020144122, 0.0015759605, 0.043753594, -0.010332666, 0.022059925, 0.032625023, 0.015495477, -0.013093678, -0.0085366, -0.016960505, -0.04026007, 0.019214392, 0.0062228427, -0.049022056, -0.035386037, -0.021214718, 0.029948533, -0.02625779, 0.054121476, 0.0006607589, 0.020707592, -0.004912771, -0.0014033972, 0.022989655, -0.021961318, -0.0049972916, 0.07280057, -0.03242781, 0.06000976, -0.026821263, 0.016481554, 0.016481554, -0.007557567, -0.037893485, -0.017538063, 0.015058787, -0.021947231, 0.0028420114, -0.0025866881, -0.031610776, 0.046289217, 0.00049611944, -0.024398334, -0.01794658, 0.001645514, -0.010093191, -0.0059199766, 0.011184918, -0.023863036, 0.034766216, -0.0025268195, 0.009064854, 0.008712685, -0.04288021, 0.00007929326, 0.0022891047, -0.017538063, -0.021045676, 0.03000488, -0.037020106, 0.0032593329, -0.04874032, -0.019143958, -0.017636672, -0.008184429, 0.033103976, -0.0053846785, -0.024130685, 0.052318368, -0.0065327524, 0.013389502, -0.009804411, -0.009424068, -0.039245818, 0.003269898, -0.0006334657, -0.011276482, 0.00041291927, 0.008452078, -0.0401192, -0.04059815, 0.013093678, 0.011832911, -0.049613703, -0.001676329, 0.013192286, 0.002882511, -0.03110365, 0.05226202, -0.016397033, 0.049670048, -0.03220242, -0.019045351, -0.016213905, -0.037330013, 0.0436409, 0.0145939225, -0.00067880756, 0.026680395, 0.023609472, 0.0077406955, 0.04952918, -0.0300894, 0.018017014, 0.015777213, 0.0004287669, -0.06812376, -0.0170732, 0.033526577, -0.012072385, -0.005402287, -0.008677468, 0.022369836, -0.045641225, 0.035132475, 0.045021407, 0.0039407816, -0.032174245, 0.015143308, -0.0061488873, 0.028483504, -0.022736091, -0.003725958, 0.008571817, -0.0089099, -0.0021429542, 0.03180799, -0.010276319, 0.0033315276, -0.023524953, 0.022806525, 0.0060749315, 0.063897714, -0.0681801, 0.0098818885, -0.00032135507, -0.01918622, -0.016481554, 0.017735278, 0.022510704, -0.036625676, -0.009445198, 0.010769357, 0.0250745, -0.0062298863, 0.021355586, 0.01566452, 0.0030515527, 0.02691987, 0.002789186, -0.010480577, 0.012551337, 0.021031588, 0.04026007, 0.0421477, 0.0011058137, 0.028962456, -0.021031588, 0.051614027, 0.005412852, -0.009501545, 0.029103324, 0.015636345, 0.02045403, 0.024623722, -0.0048458586, -0.022510704, 0.027370648, 0.033892836, 0.012192124, 0.0033174409, 0.0027363605, -0.006902531, -0.03634394, -0.0022433226, -0.004535949, 0.049219273, -0.0014579836, 0.020749854, -0.019552475, -0.017129546, 0.018819962, 0.00814217, -0.015875822, -0.055671025, -0.01566452, -0.0071772235, 0.050599776, -0.024553288, 0.027300214, 0.029103324, 0.047078077, 0.040879887, -0.046880864, -0.0722371, -0.03941486, -0.057305094, -0.062094606, 0.004148562, -0.02489137, -0.058601078, 0.021256978, -0.02824403, 0.0016710464, -0.023651734, -0.011783606, 0.0051874635, -0.05995341, 0.047838766, 0.014537576, 0.020397684, -0.05062795, 0.04096441, -0.022186706, -0.01218508, 0.015016527, -0.021228805, -0.049022056, 0.014805225, 0.012389339, -0.03448448, 0.021792276, -0.034597177, -0.028300377, -0.0088605955, -0.013150026, -0.037752617, 0.008437992, 0.019031264, -0.023102349, 0.04262665, 0.009438154, 0.015720867, 0.0044831233, 0.05843204, -0.07674488, 0.038287915, -0.0040534763, 0.016509727, -0.0020848461, 0.06868722, 0.042682998, -0.020792114, 0.027835513, -0.003972477, -0.008853553, -0.00093589164, 0.0055396333, -0.047528856, -0.0057227616, 0.070039555, -0.017622584, -0.04341551, -0.018115623, -0.051106904, -0.055727374, 0.0052649407, -0.019256653, 0.034963433, 0.045556705, 0.022468442, -0.045303144, 0.0009895975, -0.008170343, 0.047078077, 0.012227341, -0.06265808, 0.061474785, 0.042035006, 0.0068637924, 0.023848949, 0.040682673, -0.023679907, -0.0037048277, 0.031019129, 0.040936235, 0.030990954, -0.008445036, -0.02498998, -0.0018841092, -0.020707592, -0.026807176, 0.031216344, 0.03597768, 0.011311699, 0.061136704, 0.025539365, -0.024243379, 0.010593272, -0.04606383, -0.03048383, 0.033498406, -0.012354122, 0.0028684242, -0.03039931, 0.015594085, -0.013790975, -0.017791625, 0.01649564, 0.004532427, -0.06891262, 0.009353634, 0.016016688, 0.03831609, -0.06508101, -0.00059692806, 0.024130685, -0.0023067133, 0.030427484, 0.06000976, 0.007233571, 0.0058777165, -0.021735929, -0.03668202, 0.007987214, 0.03454083, -0.00037792238, -0.04527497, 0.0028085553, -0.051050555, -0.03572412, 0.044288892, 0.027342474, 0.011290569, -0.023017827, 0.011720216, -0.038682345, 0.0041309535, 0.028145421, -0.015819473, 0.0034952867, -0.02489137, 0.045584876, 0.032934934, 0.00032663762, 0.01036084, 0.0032487677, -0.0038140004, -0.007254701, 0.016622422, 0.026271878, -0.05054343, -0.032934934, 0.009198679, 0.010121364, 0.0063320156, -0.005071247, -0.03369562, 0.02370808, 0.046261042, -0.04992361, -0.0014016364, -0.03628759, 0.0022169098, 0.02846942, -0.04820502, -0.02722978, 0.017791625, -0.015960341, -0.03282224, 0.022327574, 0.04592296, 0.012664031, 0.038851388, -0.019242566, 0.010135451, -0.00037043876, 0.0067440546, 0.0008887889, -0.0060432362, 0.004793033, 0.020862548, 0.023200955, 0.0040464327, -0.017411282, 0.014122015, -0.048233196, 0.047726072, -0.04654278, 0.011431436, -0.0020918895, 0.049472835, -0.017664844, 0.06141844, 0.026821263, -0.0022010622, -0.027426995, 0.04096441, -0.043528207, -0.058206648, 0.020214556, 0.040231895, 0.021186544, 0.020876635, 0.0038703477, -0.014079754, 0.00899442, 0.014136102, -0.06401041, -0.003993607, -0.014847485, 0.0053001577, 0.027793253, -0.04034459, 0.015072874, -0.027962293, 0.056121804, -0.011220135, -0.05147316, -0.03394918, -0.043838114, -0.016199818, 0.0044373414, -0.01145961, 0.035921335, -0.0042929514, 0.0019316522, -0.0185664, -0.0038175222, -0.018439619, 0.015270089, -0.018862221, 0.019820124, 0.0642358, -0.0063108853, 0.025609799, -0.039245818, -0.036653847, 0.016833723, -0.049162924, 0.0050395518, -0.03611855, -0.012262558, -0.011473697, -0.026694482, -0.03135721, 0.0285962, -0.030681046, -0.012396382, 0.021848623, 0.0040922146, -0.008029475, -0.03642846, -0.008437992, 0.029554103, -0.012149863, -0.05062795, -0.038879562, 0.04521862, -0.027736904, 0.031751644, 0.030596524, -0.054318693, -0.0017890233, -0.022369836, 0.015932169, -0.051135074, -0.00897329, -0.0315826, -0.026384572, 0.020299075, 0.017298589, 0.045246795, -0.026511354, -0.017383108, -0.023426345, -0.0048247282, -0.047049906, -0.016650595, -0.014002277, -0.020932982, -0.019017177, 0.010276319, -0.007677305, -0.05733327, 0.012966897, 0.019031264, 0.038034353, 0.043471858, -0.04248578, -0.018552313, -0.0078393025, -0.012227341, 0.016960505, -0.0135374125, -0.039837465, 0.006303842, -0.014805225, 0.024820937, -0.015453218, -0.036400285, 0.0106707495, -0.039640248, 0.054628603, -0.03955573, 0.020468118, -0.022947393, 0.024285639, -0.010142494, 0.015425043, -0.0208062, -0.026018316, -0.021651408, -0.0642358, 0.0014192449, -0.037949834, -0.00822669, -0.00073427433, 0.010311536, 0.03079374, -0.018665006, 0.06333424, 0.04473967, 0.031300865, -0.06350329, 0.0019228479, -0.005250854, 0.014819311, -0.0141642755, 0.01574904, -0.009867802, -0.024271553, -0.002449342, -0.012720378, -0.064573884, -0.01908761, 0.010635532, 0.062939815, -0.017918406, 0.027342474, -0.0013857888, 0.0014571032, -0.032146074, 0.01610121, -0.0039055648, 0.007642088, 0.016298424, 0.021031588, 0.01997508, 0.03817522, -0.005543155, -0.0742656, -0.039386686, 0.05798126, -0.02331365, -0.060516883, 0.025313975, 0.051106904, 0.003349136, 0.011248308, -0.009233896, -0.019031264, 0.021707755, -0.020186381, -0.01249499, -0.016213905, -0.0149179185, 0.0051240725, 0.026736742, -0.022059925, 0.014002277, 0.038287915, -0.0022239531, -0.050346214, 0.022045838, 0.031159997, -0.012995071, -0.01759441, -0.04488054, -0.01543913, -0.012783769, -0.052487407, 0.039386686, 0.010473534, -0.014417837, -0.009776237, 0.013199329, 0.069926865, -0.036907412, 0.002567319, 0.007888607, 0.008473209, -0.07449099, -0.004687382, 0.039273992, 0.000551146, 0.023919383, -0.04936014, 0.003831609, 0.030145748, 0.022707919, -0.04395081, -0.068518184, 0.020200469, -0.04026007, -0.008452078, -0.0401192, -0.019862385, 0.020961154, 0.02159506, -0.0098818885, -0.04750068, 0.025173107, 0.009262069, -0.00072811136, -0.02397573, -0.031159997, -0.022707919, -0.037668098, -0.039273992, 0.024398334, 0.009536762, 0.01798884, 0.039640248, 0.00090419635, 0.009022594, -0.020439943, 0.0026923392, -0.0071807452, -0.006937748, -0.022679744, 0.016397033, -0.051670376, -0.0008883487, -0.022989655, 0.037330013, 0.016523814, -0.078547984, -0.030990954, -0.009874845, -0.019636996, 0.0012528446, -0.0065890998, 0.009557893, 0.047134425, 0.004866989, 0.0050395518, 0.042429436, -0.035780467, -0.039696597, 0.020749854, -0.02644092, -0.009022594, 0.0012044212, 0.052994534, 0.054487735, 0.007677305, 0.050064478, -0.016664682, -0.0002973635, 0.0034723957, -0.014122015, 0.009247983, -0.027243868, 0.0041309535, 0.008184429, 0.0019017177, 0.03135721, -0.05330444, 0.04913475, 0.014847485, -0.017284501, -0.013523326, 0.021750016, 0.018045189, 0.04938831, 0.0027381214, -0.013488109, -0.010776401, 0.00043515, -0.0143614905, -0.008670424, -0.029892186, -0.03290676, 0.02648318, -0.042175874, 0.0007360352, -0.024384247, -0.026976218, 0.021383759, 0.057868566, 0.001177128, -0.0012510837, 0.025060413, -0.030990954, 0.029525928, -0.03409005, -0.013762802, -0.013819149, 0.018524138, -0.04989544, -0.044852365, 0.015889907, 0.06620795, 0.00061761803, -0.022299401, -0.08068918, -0.008670424, 0.02449694, 0.012600641, -0.0012273123, 0.045951135, -0.042682998, 0.036710195, -0.020439943, -0.011149701, 0.002660644, 0.07668853, 0.02727204, -0.002928293, 0.006455275, -0.002532102, 0.016706942, -0.03949938, 0.006384841, 0.021876797, 0.04476784, 0.0018647398, -0.003572764, 0.018989004, 0.06806741, 0.050430737, -0.01742537, -0.011473697, 0.042175874, 0.03149808, -0.021383759, -0.007064529, 0.062319994, 0.009029637, 0.011649782, 0.04448611, -0.0356396, 0.011910387, -0.030821914, 0.0048493803, 0.0056664143, -0.0025215368, -0.028962456, -0.0070715724, -0.008184429, 0.047078077, 0.0082689505, -0.025004067, -0.034202743, 0.008275994, 0.032681372, 0.019594736, -0.0018400879, -0.016735116, 0.02977949, 0.04121797, -0.009135288, 0.020735767, -0.0013047897, 0.0048564235, -0.009600152, 0.019467955, 0.015495477, 0.011206048, 0.0048141633, -0.047585204, -0.019172132, 0.020045513, -0.008987377, -0.01079753, 0.03620307, -0.018679094, -0.052402887, -0.079280496, 0.03197703, -0.032653198, 0.01869318, 0.04248578, -0.022031752, -0.038823213, 0.012607684, -0.038907737, 0.017312674, 0.014974266, 0.07065938, 0.03000488, 0.13095087, 0.04026007, 0.022552963, 0.037893485, 0.014960179, -0.016016688, -0.0094874585, -0.010853877, -0.010107278, -0.014424881, -0.05648806, -0.06665873, 0.017664844, 0.030934608, -0.001921087, -0.030681046, 0.040288243, 0.019031264, -0.04254213, 0.0049374225, 0.069983214, 0.002260931, 0.0056664143, 0.008346428, -0.03285041, -0.0406545, -0.0010617924, -0.06350329, 0.072180755, -0.024426507, -0.01997508, -0.019890558, -0.04059815, -0.032709546, 0.036400285, -0.010036844, -0.019777864, 0.037330013, 0.05978437, 0.017608497, 0.030033054, -0.028568026, -0.0046909037, 0.03797801, 0.037160974, 0.022186706, 0.09038089, 0.09105706, -0.030821914, 0.00897329, 0.027032565, 0.005934064, 0.011677955, -0.015030613, 0.028455332, 0.017453542, -0.0074026124, -0.04451428, 0.001371702, 0.047275294, -0.050346214, -0.0011780085, -0.07680122, 0.010072061, -0.045049578, 0.026384572, -0.02084846, 0.053980608, -0.0093254605, -0.004152084, 0.001599732, -0.05085334, 0.23508048, 0.07342039, 0.045387663, 0.008473209, 0.065475434, 0.0250745, 0.038907737, -0.0014711899, 0.0100791035, -0.0021130196, 0.018974917, -0.02687761, -0.010614403, -0.04764155, 0.0026113403, 0.03668202, -0.009121202, 0.025018154, 0.0058319345, -0.039302167, -0.07336404, 0.019467955, 0.00285962, -0.0058495426, -0.013375415, 0.012079429, 0.0008108713, -0.029638622, 0.00783226, -0.019552475, -0.02718752, -0.033780143, 0.030850086, 0.0220881, -0.0025990142, 0.052684624, 0.02084846, -0.03276589, 0.0018101535, -0.003539308, -0.005821369, -0.0883524, -0.0006088138, -0.01361489, -0.01948204, 0.09145149, -0.001094368, -0.0038738693, 0.042513955, -0.02938506, 0.02248253, -0.03524517, 0.0466273, -0.0066137514, -0.006913096, 0.0068004015, -0.025285803, -0.034202743, 0.010684836, 0.03299128, 0.011832911, 0.044260718, -0.037301842, -0.004712034, 0.036653847, -0.031526253, -0.010241102, 0.019031264, -0.011332829, 0.03434361, 0.026116922, 0.009691717, -0.009170505, -0.000021143953, 0.011431436, 0.013086636, -0.048909362, 0.0351043, -0.0007963443, -0.027398821, -0.037499055, -0.034512654, -0.016439293, -0.013347241, 0.04490871, 0.028779328, 0.0055255466, -0.01141735, -0.03947121, 0.021792276, 0.0022556486, 0.028807502, -0.006560926, 0.015720867, 0.014833398 ]
The feature vectors are passed to the encoder, which learns the image representations using its attention layers. Next, the encoder hidden states are combined with object queries in the decoder. Object queries are learned embeddings that focus on the different regions of an image, and they're updated as they progress through each attention layer. The decoder hidden states are passed to a feedforward network that predicts the bounding box coordinates and class label for each object query, or no object if there isn't one. DETR decodes each object query in parallel to output N final predictions, where N is the number of queries. Unlike a typical autoregressive model that predicts one element at a time, object detection is a set prediction task (bounding box, class label) that makes N predictions in a single pass.
[ 0.004408033, 0.009429978, -0.026783708, -0.041603267, 0.015547686, -0.030638507, -0.017232375, -0.0014062875, -0.014748173, 0.07138515, 0.009501364, -0.010507895, 0.03552125, -0.012620895, 0.0070421454, 0.02966767, 0.005311055, -0.006774451, -0.020173443, -0.01866008, 0.011114668, 0.036406428, -0.051425863, -0.041232064, -0.034321982, -0.026412506, 0.031323805, -0.009437117, 0.04297386, 0.060420394, -0.02053037, -0.019702302, 0.028011534, -0.037634254, -0.0017873057, -0.029524898, 0.038148224, -0.033722345, -0.00961558, -0.033379696, 0.027297683, 0.01866008, -0.009779766, -0.083720505, -0.014348416, -0.025284622, 0.0013054559, -0.03846232, -0.04591493, 0.024842033, -0.01831743, -0.0034264873, -0.008437725, -0.010936205, 0.013556041, -0.016661294, -0.004101077, 0.016404308, 0.0023307253, -0.022100843, 0.009394286, 0.005236101, -0.009222962, -0.026269736, 0.010836266, 0.036691967, -0.012278246, -0.011542979, -0.022943188, -0.01000106, -0.035121497, -0.0029892533, -0.016761234, -0.025898533, -0.028711108, 0.008187877, 0.003976153, 0.015661903, 0.023085957, 0.036806185, -0.0036620584, 0.01543347, -0.016818343, -0.009943952, -0.018131828, -0.043002415, 0.03663486, 0.005985645, -0.020858742, -0.040946525, -0.016518524, 0.025441669, -0.017175268, 0.045800712, 0.027054973, 0.005685827, 0.009344316, 0.027797379, -0.009351455, -0.022100843, 0.0046257577, 0.06561723, -0.040032793, 0.051454417, -0.036749076, -0.0024574338, -0.00889459, 0.006952914, -0.02187241, -0.04268832, 0.03360813, -0.01750364, 0.0087232655, -0.017232375, 0.010065307, 0.037634254, -0.010936205, -0.000214267, 0.0064460794, -0.0070314375, -0.007424056, -0.013820166, -0.0131063135, -0.026897926, -0.0033015632, -0.020658864, 0.035835348, 0.030667061, -0.03369379, 0.02735479, 0.013927244, 0.0076667652, -0.023057405, 0.036320765, -0.012670864, -0.010029614, -0.04871323, 0.006981468, -0.0163472, -0.01047934, 0.031609345, -0.0046507427, -0.017860565, 0.047028538, -0.026840817, 0.011100391, -0.0018827834, 0.013049206, -0.015205038, -0.020858742, 0.014369831, 0.014498324, 0.012863604, -0.006121277, -0.041174956, -0.026483892, 0.012249692, 0.0072241775, -0.041289173, -0.027611777, 0.008930283, -0.0066709425, -0.009658411, 0.053510312, 0.00036964123, 0.0418317, -0.010979037, -0.024799202, -0.02879677, -0.033008493, 0.01927399, 0.0018158598, 0.001019023, 0.020216275, 0.022200782, -0.008137907, 0.058250286, -0.025755763, -0.012278246, 0.022200782, -0.021287052, -0.05645138, -0.03395078, 0.050940443, -0.03466463, 0.012984959, 0.027383344, 0.03129525, -0.030010318, 0.008801789, 0.052425254, 0.03732016, -0.043345064, 0.01197129, -0.016604187, 0.017960504, -0.06264761, 0.009829735, -0.0035317803, -0.027668886, -0.01764641, 0.078980535, -0.0154905785, -0.004500834, -0.023657039, 0.0023289407, 0.045800712, 0.023828363, -0.05939245, 0.014148537, 0.01100759, -0.0093371775, 0.0041688927, 0.06139123, 0.022686202, -0.04634324, 0.03634932, -0.00049344986, -0.0013099175, 0.0053181937, 0.010593557, 0.016804066, 0.012842189, 0.041403387, -0.007149223, -0.052796457, 0.0031980549, 0.03811967, 0.037234496, 0.03423632, 0.005525211, 0.027269129, 0.006235493, 0.0647035, -0.00084992946, -0.05245381, 0.04297386, 0.003385441, -0.021801025, 0.027197743, 0.019887904, 0.011435902, 0.047199864, 0.027183466, 0.032494523, 0.019431038, -0.019345377, 0.013691672, -0.027754547, -0.011821381, -0.040832307, 0.077438615, 0.01778918, 0.00706713, -0.014027182, -0.011221746, -0.018817127, 0.027226297, -0.0032319627, -0.04163182, 0.01658991, -0.013520348, 0.024399444, -0.020758802, 0.06424664, 0.032437414, 0.03846232, -0.015947443, -0.030752724, -0.07292707, -0.04451578, -0.05148297, -0.062362067, -0.015647626, -0.022857526, -0.0675018, -0.009487087, -0.0358639, -0.0054145637, -0.013134868, -0.015690457, 0.015719011, -0.08337786, 0.027097804, 0.006720912, -0.008708988, -0.028239965, 0.012777942, -0.0016133045, -0.025313174, -0.028154304, -0.027426176, -0.05596596, 0.009801181, -0.015133652, -0.016118767, 0.033551022, -0.041403387, -0.02682654, 0.008730404, -0.00495056, -0.055223554, 0.0012144399, 0.023000296, 0.004418741, 0.004404464, 0.016532801, 0.0003879337, 0.01610449, 0.071784906, -0.05211116, 0.026355399, 0.00961558, -0.00023222482, -0.025584439, 0.04403036, 0.037177388, -0.021501208, 0.008694711, 0.0016472124, 0.004643604, 0.00860191, -0.008666158, -0.031951994, -0.021643978, 0.067673124, -0.007120669, -0.030695615, 0.004397325, -0.021472653, -0.043830484, 0.030667061, -0.024870588, 0.011707165, 0.048342027, 0.00031833316, -0.049055878, -0.016175875, -0.0009088222, 0.032865725, -0.016247261, -0.08463424, 0.05448115, 0.05313911, 0.012128337, 0.013877274, 0.039490268, -0.03831955, 0.005571611, 0.024770647, 0.045657944, 0.037091725, 0.0068386975, -0.010215215, 0.011814243, 0.018188937, -0.04063243, -0.004490126, 0.035407037, 0.010979037, 0.056908242, 0.008002276, -0.02509902, 0.010593557, -0.050169487, -0.016404308, 0.020344768, 0.0010707773, 0.0060070604, -0.02918225, 0.0006964514, -0.01697539, 0.0015588732, 0.029267913, 0.013370439, -0.046029147, 0.03086694, 0.03529282, 0.04951274, -0.036177997, 0.039004847, 0.000050806153, -0.01135024, -0.010008198, 0.026426783, 0.019502424, -0.028325628, -0.011478732, -0.03606378, 0.015661903, 0.019530978, -0.004590065, -0.026226904, -0.0024306644, -0.025370283, -0.005982076, 0.023200175, 0.037748467, 0.020644587, -0.0069350675, 0.0305814, -0.015205038, 0.006121277, 0.026726602, -0.019873627, -0.000025207883, -0.018046167, 0.020073505, -0.008516248, 0.008287816, -0.019559532, -0.0010493618, -0.010565002, 0.007902336, 0.016475692, 0.004889883, -0.042060133, -0.016318645, 0.0067637432, 0.021272775, -0.008130769, -0.027554668, -0.029524898, -0.0016025967, 0.0432594, -0.053338986, 0.016018828, -0.048484795, 0.009451394, 0.00836634, -0.043687712, -0.016932558, 0.014776726, -0.02192952, -0.04308808, 0.011257439, 0.052767906, 0.026655216, 0.019259714, -0.035492696, -0.020873018, 0.0018488754, -0.04839913, -0.017032497, 0.001038654, 0.011193192, 0.014419801, 0.02240066, 0.005696535, -0.025884256, 0.024770647, -0.017674964, 0.0023075251, -0.0066673732, 0.015119376, -0.011642918, 0.03452186, 0.0026698047, 0.049341418, 0.0061998004, -0.036948957, -0.0066174036, 0.0326944, -0.045515172, -0.07355526, 0.029524898, 0.026669493, 0.024213843, 0.03931894, -0.004575788, -0.0063925404, -0.016989667, 0.02081591, -0.045543727, 0.0018827834, -0.014976605, 0.0010752388, 0.018760018, -0.035492696, 0.029296467, -0.035835348, 0.061505448, -0.008195016, -0.06384688, -0.0154905785, -0.010457925, -0.014691064, 0.0012947482, 0.008352063, 0.030153088, 0.0066316808, 0.01418423, -0.015704734, -0.024270952, -0.0005286963, -0.007959444, -0.017175268, 0.019673748, 0.06167677, 0.018203214, 0.071842015, -0.0365492, -0.045715053, 0.0014732111, -0.050683457, -0.011642918, -0.025256068, 0.013127729, -0.037148833, -0.039575927, -0.04480132, 0.028282797, -0.011014729, -0.0028982372, 0.034607522, 0.006981468, 0.0108790975, -0.02851123, -0.020073505, 0.046800107, 0.017803457, -0.05182562, -0.028382737, 0.035464145, 0.019530978, 0.0051325923, 0.039975684, -0.02172964, 0.01033657, 0.0045293877, 0.040461104, -0.034778845, 0.022571985, -0.038433768, -0.037948348, 0.027825933, 0.044829875, 0.013356162, -0.044430118, -0.010921928, -0.031123927, -0.015861781, -0.024899142, -0.05236815, -0.0118784895, -0.0235571, -0.01658991, 0.038490873, 0.01793195, -0.062419176, 0.012656587, 0.025869979, 0.04226001, 0.03129525, -0.05408139, -0.039918575, 0.026869372, -0.012135476, 0.014612541, 0.012977821, -0.015561963, 0.004864898, -0.013770196, 0.047770943, -0.033008493, -0.027925871, 0.01764641, -0.053624526, 0.04337362, -0.006845836, 0.0006701281, -0.031209588, 0.022186505, 0.0050362223, 0.01836026, 0.0025413113, -0.017303761, -0.03831955, -0.044886984, 0.021915242, -0.022800418, 0.01158581, -0.011050422, 0.011535841, 0.06812999, -0.011428763, 0.03789124, 0.010736327, 0.038576536, -0.022657648, -0.020972958, 0.025484499, -0.002682297, -0.016304368, -0.003167716, -0.006481772, -0.02292891, -0.01379875, -0.042574104, -0.07155648, -0.014312723, 0.013691672, 0.04028978, -0.054938015, 0.035978116, -0.008673296, -0.0010306231, -0.025198959, 0.05590885, -0.024042519, 0.017660687, 0.050026715, 0.024356615, 0.0079166135, 0.06476061, -0.021358438, -0.03557836, -0.049741175, 0.035092942, 0.014127121, -0.06121991, 0.013391854, 0.012092644, -0.014048598, 0.02028766, -0.00038860293, -0.003417564, 0.015147929, -0.024899142, -0.000021764106, -0.02774027, -0.016504247, 0.013470378, 0.04428735, -0.024913419, 0.011414486, 0.022286445, 0.013713088, -0.03677763, 0.0060927225, 0.015347808, -0.011150361, 0.013677395, -0.021529762, 0.015990274, -0.048113592, -0.047770943, 0.027511837, 0.011186053, -0.012470986, 0.010629249, 0.027511837, 0.05211116, -0.02903948, -0.009287208, 0.0014803496, -0.0062997397, -0.060420394, 0.013848719, 0.045972038, 0.007816674, 0.026169797, -0.018374538, 0.0077238735, 0.018717187, 0.07092829, -0.030981157, -0.08400605, 0.04086086, -0.030609954, -0.021758195, -0.07555404, -0.01451974, 0.039004847, -0.0047114203, -0.03472174, -0.03346536, 0.03389367, 0.018545862, -0.003976153, -0.00086911424, -0.024542216, -0.0411464, -0.017717795, -0.03629221, 0.023271559, -0.015918888, 0.055309217, 0.024842033, -0.024442276, -0.025370283, 0.0077881203, -0.00336581, -0.01817466, 0.020116337, -0.023885472, -0.024684986, -0.034835953, -0.009344316, 0.0016115198, 0.035835348, 0.018260323, -0.097711995, -0.02148693, 0.0033211943, -0.002630543, 0.0058250283, 0.011899905, -0.00276439, -0.0025091881, 0.0025127574, 0.003538919, 0.028311351, -0.062247854, -0.021358438, 0.0036656277, 0.004971976, -0.0076382114, -0.0073312554, 0.060763042, 0.04437301, 0.0037941209, 0.016375754, 0.0154905785, -0.0019220453, -0.009315763, 0.024270952, 0.019559532, 0.010043891, -0.0175893, -0.00019563994, 0.011136084, 0.018517308, -0.04542951, 0.06521747, 0.03403644, -0.015076544, -0.015904613, 0.011985567, 0.026369676, 0.052339595, -0.014191369, -0.0066602346, 0.0075454107, 0.005400287, -0.032608736, -0.008930283, -0.029053757, -0.017903397, 0.037091725, -0.028853878, 0.018131828, -0.028568339, -0.044972647, 0.014833835, 0.0316379, -0.01750364, 0.024171013, 0.03803401, -0.024413722, 0.04717131, -0.031666454, 0.010258046, -0.0122996615, 0.03543559, -0.03289428, -0.057279445, 0.007938029, 0.06852975, -0.014212783, -0.018146105, -0.030495737, -0.021258498, 0.037976902, 0.04063243, 0.0065174643, 0.013734504, -0.08811783, 0.03297994, -0.020458985, -0.0057714893, 0.005885706, 0.03400789, 0.0013357947, -0.008359201, -0.024042519, 0.0005786659, -0.013784473, -0.007895198, 0.035664022, 0.003513934, 0.052682243, -0.0010975468, -0.01831743, -0.006485341, 0.021444099, 0.038348105, 0.0042474167, -0.0040118457, 0.026226904, 0.045543727, -0.014234199, 0.010215215, 0.060420394, -0.0040261224, 0.011771412, 0.029696224, -0.020658864, 0.02168681, -0.013927244, 0.021843856, 0.028325628, 0.0030927616, -0.00058937364, -0.016118767, 0.028611168, 0.047913715, 0.021001512, -0.035492696, 0.017075328, 0.01192132, 0.017860565, 0.03158079, -0.008180738, -0.018431647, 0.015904613, 0.03712028, -0.044658553, 0.019059835, 0.016547078, 0.0012876097, -0.025555884, 0.01788912, -0.0020041382, 0.00016039351, -0.0015963505, -0.020687418, -0.0152907, 0.0024788494, 0.013313331, -0.025969919, 0.038148224, -0.032151874, -0.05602307, -0.09165853, 0.012520956, -0.026812263, 0.01009386, 0.020501817, -0.04274543, -0.03754859, 0.043145187, -0.038490873, 0.010265185, -0.0022343553, 0.06887239, 0.055280663, 0.08035113, 0.030067425, 0.006774451, 0.042859644, 0.016889727, -0.057536434, -0.004115354, -0.033379696, 0.008330647, -0.01736087, -0.08137907, -0.044001807, 0.01866008, 0.055280663, 0.007120669, -0.05525211, 0.013406131, 0.014919497, -0.046857215, -0.028339906, 0.08589061, 0.010750604, 0.019973565, 0.0064032483, -0.01764641, -0.04071809, -0.012599479, -0.062304962, 0.07818102, -0.03192344, -0.021372715, 0.01880285, -0.0418317, -0.01249954, 0.035635468, -0.018003335, -0.010714911, 0.022629093, 0.040889416, 0.024313783, 0.030210197, -0.019502424, -0.013584594, 0.024142459, 0.041003633, -0.013349024, 0.09188697, 0.06567434, -0.018331707, 0.01283505, -0.001980938, 0.001615089, -0.008152184, 0.014876666, 0.04485843, -0.008480556, -0.025470221, -0.018731464, -0.02284325, 0.010793435, -0.016775511, -0.002821498, -0.072241776, 0.038405214, -0.08389183, 0.02552733, -0.022986019, 0.046029147, 0.017703518, -0.025298897, 0.00009268916, -0.049798284, 0.24168158, 0.035806794, 0.061790988, 0.027026419, 0.052853566, 0.021572594, -0.004226001, -0.03523571, 0.008123631, -0.010293739, 0.035635468, -0.04463, -0.02658383, -0.027568946, -0.0021986626, 0.029867548, -0.030467182, 0.04014701, 0.0058000437, -0.06544591, -0.07269864, 0.03158079, 0.014084291, 0.01913122, -0.02422812, 0.008637603, 0.014976605, -0.019545255, -0.011550117, -0.019302545, -0.010950482, -0.037805576, 0.032523077, 0.03552125, -0.0175893, 0.05562331, 0.008352063, -0.057193782, -0.015362085, 0.004397325, -0.0028143597, -0.043430727, 0.041888807, -0.025784317, -0.048056483, 0.07361237, 0.0047649588, -0.02187241, 0.073326826, -0.054309823, 0.018060444, -0.06898661, 0.044201687, 0.016190153, -0.024313783, 0.012870743, -0.050512135, -0.027940148, -0.016304368, 0.009258654, 0.026955033, 0.05288212, -0.024642155, -0.025598716, 0.030038873, -0.021386992, -0.024270952, 0.009544195, 0.0032319627, 0.05259658, 0.023499992, -0.0070849764, -0.00003836952, 0.032865725, 0.0019666608, 0.036263656, -0.04203158, 0.04057532, -0.03523571, -0.013284777, -0.0019845073, -0.0153335305, -0.019645194, 0.005268224, 0.02361421, 0.029753331, -0.014833835, -0.00850911, -0.029068034, 0.017303761, 0.0073740864, 0.013777334, 0.011343101, -0.004986253, 0.029867548 ]
An object detection head is added on top of DETR to find the class label and the coordinates of the bounding box. There are two components to the object detection head: a linear layer to transform the decoder hidden states into logits over the class labels, and a MLP to predict the bounding box. Ready to try your hand at object detection? Check out our complete object detection guide to learn how to finetune DETR and use it for inference! Image segmentation Mask2Former is a universal architecture for solving all types of image segmentation tasks. Traditional segmentation models are typically tailored towards a particular subtask of image segmentation, like instance, semantic or panoptic segmentation. Mask2Former frames each of those tasks as a mask classification problem. Mask classification groups pixels into N segments, and predicts N masks and their corresponding class label for a given image. We'll explain how Mask2Former works in this section, and then you can try finetuning SegFormer at the end.
[ 0.018606756, 0.042303506, -0.029719908, -0.05726243, 0.00840556, 0.0033791903, -0.009699266, -0.018564338, -0.0268073, 0.053953934, 0.02730216, 0.006489742, 0.027994966, -0.026467968, 0.013043109, 0.024728887, -0.0052879383, -0.029974408, -0.034102958, -0.015934508, -0.0040790644, 0.009579086, -0.038174953, -0.019271282, -0.03800529, -0.006733638, 0.009953766, 0.0011646895, 0.06317248, 0.05689482, -0.026496246, -0.0014819305, 0.009996182, -0.028009105, -0.026397273, -0.024841998, 0.040719952, -0.039673675, -0.007974324, -0.069280475, 0.011855444, 0.0034781625, 0.0047435914, -0.037637677, -0.05375599, -0.012187707, 0.00651802, -0.051974494, -0.039447453, 0.0013502623, -0.010575877, -0.027372856, -0.026793161, 0.0022639867, 0.017631173, -0.01917231, 0.02242425, -0.0054293266, 0.000281231, -0.034809902, 0.022975666, 0.019214727, -0.009805308, -0.061815146, 0.01039914, 0.019101616, -0.008935767, -0.050475772, 0.013347095, -0.012753262, -0.035318904, -0.018734004, 0.015906231, -0.033678792, -0.013057248, -0.0018035899, -0.028348438, 0.004874376, 0.023046361, 0.0055459724, 0.00027548708, 0.01090107, -0.039815065, -0.009932557, -0.036930732, -0.022876695, 0.021038642, -0.033820182, -0.021886973, -0.0035824366, -0.0022834279, 0.044254668, -0.005217244, 0.075784355, 0.024361277, 0.046064444, 0.015171009, 0.038486008, 0.0042628697, -0.0007277101, 0.02419161, 0.08573812, -0.03243457, 0.054434657, -0.020614475, -0.007924838, -0.0012283145, 0.020317558, -0.012364443, -0.019822698, 0.020020643, -0.023145333, 0.025619635, -0.022904972, -0.014859954, 0.031671073, 0.011091945, -0.0037644745, -0.03461196, 0.010328446, -0.023767443, -0.0068502836, -0.019144032, 0.0069846027, 0.048072163, -0.013446067, 0.01729184, 0.0073663522, -0.029691631, 0.021872835, 0.030313741, 0.005931257, 0.01843709, 0.06328559, 0.004863772, -0.012442207, -0.027245605, -0.0010268355, -0.005553042, -0.01254118, -0.0016851767, -0.030766185, 0.009946696, 0.07431391, -0.031869017, 0.0063059367, 0.007295658, -0.017588757, -0.037270065, -0.0049450705, 0.026651774, -0.0021932926, -0.024106776, 0.007627921, -0.036647957, -0.047054164, -0.0016869442, 0.0010038599, -0.017051479, -0.004096738, 0.02894227, 0.00802381, -0.034046404, 0.054717433, -0.012152361, 0.04725211, -0.027839439, 0.0050299037, 0.0023717957, -0.008087435, 0.013926789, 0.028249467, -0.010257752, 0.021788001, 0.0034304438, -0.015185148, 0.043434612, -0.009939627, 0.0015013715, 0.037779067, 0.0108940005, -0.03257596, -0.01066071, 0.063398704, -0.009246822, -0.028419133, 0.027245605, 0.0027588473, 0.015057898, -0.007946046, 0.06718792, 0.06260692, -0.04363256, -0.0035506242, -0.012329096, 0.052907657, -0.015425509, -0.028532244, 0.016528342, -0.053077325, -0.015637591, 0.040295783, 0.012739124, 0.021363836, -0.056838267, -0.017503923, 0.01828156, 0.06826247, -0.021491086, 0.029521964, 0.014308538, -0.0033950966, -0.0039412105, 0.049599163, 0.015807258, -0.023484666, 0.008589365, -0.0072355676, 0.0381184, 0.040154397, 0.010448626, 0.014548899, 0.02119417, 0.015920369, -0.011183848, -0.015199287, 0.011699917, 0.026496246, 0.06317248, 0.019002644, -0.016740425, 0.016273841, -0.012258402, 0.007889491, -0.0059489305, -0.0007855911, 0.038542565, 0.009663919, -0.0062741246, 0.0031335275, 0.00005340738, 0.017885674, 0.054067045, 0.046941053, -0.006129201, 0.023272583, -0.00890042, 0.0050192997, -0.07815968, 0.0017541038, -0.019836837, 0.047647998, -0.023131194, -0.0040684603, -0.032745626, -0.016217286, -0.014831676, 0.032038685, 0.00008709766, -0.059666038, 0.012060458, 0.008349004, 0.010392071, -0.018776422, 0.025732746, 0.019030921, 0.013064317, 0.03780734, -0.015213426, -0.057432096, -0.036167234, -0.043151837, -0.054095324, 0.004874376, -0.04448089, -0.08104401, 0.022834279, -0.020359976, 0.03910812, 0.02130728, -0.022282861, 0.002801264, -0.049457774, 0.059722595, 0.03568651, 0.039164674, -0.043802224, 0.031642795, 0.007557227, 0.0018698658, 0.021533502, -0.021024503, -0.048298385, -0.0057686595, -0.009663919, -0.015595175, 0.028928133, -0.03882534, -0.04159656, 0.0031777115, 0.0038245649, -0.01830984, -0.019030921, 0.021392113, -0.002737639, -0.00877317, -0.00014547573, -0.011445417, -0.012343235, 0.07736791, -0.041426893, 0.011509041, -0.010879862, 0.045103002, -0.03497957, 0.0819489, 0.053558048, 0.0016021109, 0.0064119785, 0.0039376756, 0.00082005456, 0.008801448, -0.0072532413, -0.01993581, -0.027528383, 0.065378144, -0.012838095, -0.049938496, 0.009183197, -0.037072122, -0.0381184, 0.01681112, -0.010773821, 0.01754634, 0.026298301, 0.031557962, -0.022961527, 0.026340717, -0.031614516, 0.013318817, -0.003534718, -0.06713136, 0.03271735, 0.038910177, 0.021788001, 0.017037341, 0.03667623, -0.016259702, -0.00244249, 0.02019031, 0.04173795, 0.0110071115, -0.017631173, -0.036308624, 0.029804742, -0.027613217, -0.03362224, 0.02846155, 0.021632474, 0.035545126, 0.061928257, 0.03670451, -0.0104203485, 0.003994231, -0.032632515, -0.022848416, 0.031897295, 0.010073946, 0.035629958, -0.024120916, -0.0019246539, 0.004789543, -0.044678833, 0.03698729, -0.0044678836, -0.039334342, 0.047393497, 0.017065618, 0.030370297, -0.059100483, 0.029012965, 0.029917853, 0.012491694, 0.008384351, 0.032632515, 0.0150720375, -0.02380986, 0.01603348, -0.044169836, 0.017051479, 0.009048878, 0.009218545, -0.031784184, -0.014944787, -0.023329139, -0.031897295, 0.009663919, 0.030681351, 0.035205793, -0.008631782, 0.036223788, -0.02844741, -0.0006835261, 0.05915704, -0.022452528, -0.022212168, -0.046177555, 0.040182672, 0.006906839, -0.020953808, -0.024234027, 0.0074653244, -0.030907573, 0.027075939, 0.03147313, 0.011452486, -0.040408894, -0.03469679, 0.006380166, 0.03396157, -0.00045156022, -0.02932402, -0.05686654, 0.016754564, 0.04236006, -0.049853664, 0.010773821, -0.041851062, -0.0011850141, 0.038683955, -0.02733044, -0.030851018, 0.036789343, -0.024856137, -0.03209524, 0.06662236, 0.014478205, 0.007705685, -0.01003153, -0.0029126075, -0.009642711, 0.0019635358, -0.019200588, -0.0070871096, 0.0026616426, 0.003697315, 0.010505182, 0.01955406, -0.016485924, -0.00037070355, 0.035771348, -0.040013008, 0.043038726, 0.0035983429, -0.015524481, -0.032802183, 0.030766185, 0.0033244023, 0.032971848, 0.0019617684, -0.021533502, -0.008433837, -0.0150720375, -0.04498989, -0.08805689, 0.0007847074, 0.03695901, 0.020925531, 0.012131152, 0.012456346, 0.028786743, -0.009006461, 0.004333564, -0.06373803, 0.0041179466, -0.025294442, -0.0033102634, 0.030115796, -0.022113195, 0.004701175, -0.018748144, 0.024587499, 0.0009826516, -0.019808559, -0.052087605, -0.02192939, -0.03447057, 0.028348438, 0.006217569, 0.022297, 0.023201888, -0.0017797305, -0.00034043752, -0.009798238, 0.012562388, -0.013120873, -0.01015171, 0.03119035, 0.045385778, -0.0039447453, 0.08754789, -0.018578477, -0.011183848, -0.0022728236, -0.014025761, -0.008052087, 0.0032908225, -0.0068608876, -0.015524481, 0.009586155, -0.036902454, 0.014902371, -0.03218007, 0.017645312, -0.0047223833, 0.022537362, 0.0024407227, -0.022141473, -0.023258444, 0.041822784, -0.026877996, -0.07029847, -0.035658237, 0.052935936, -0.04021095, 0.003396864, -0.00394828, -0.02718905, -0.01252704, -0.004888515, 0.018620893, -0.036647957, 0.016556619, -0.048157, -0.00073963974, -0.0067619155, 0.06973292, 0.02081242, -0.030426852, -0.009932557, -0.030737907, -0.011883722, -0.02682144, -0.0644167, -0.009501322, -0.0015402534, 0.0036725719, 0.033820182, 0.014874093, -0.053558048, -0.009614433, 0.008207615, 0.050079886, 0.032010406, -0.051041327, -0.018960226, 0.010604154, 0.006733638, 0.021208309, -0.024290582, -0.026892135, -0.00007218557, -0.011798888, 0.062324148, -0.040013008, -0.008087435, 0.01992167, -0.04685622, 0.0150720375, -0.031416573, 0.006404909, -0.045414057, 0.051041327, 0.019327838, 0.034244347, -0.023201888, -0.049797107, -0.06577403, -0.017645312, 0.05163516, -0.04462228, -0.013573317, -0.024629915, 0.016386952, 0.06215448, -0.020784141, 0.02844741, 0.014244913, 0.02392297, -0.035432015, -0.010802099, 0.019780282, 0.026086219, -0.0048178206, 0.00020722284, -0.007316866, -0.03571479, -0.01340365, -0.05152205, -0.044537447, -0.008419698, 0.012937068, 0.055961654, -0.04572511, 0.019850977, 0.011091945, -0.026764885, -0.01830984, 0.04360428, -0.00018181706, 0.009437697, 0.016372813, 0.031557962, -0.028913993, 0.052992493, -0.02054378, -0.061588924, -0.024516804, 0.059326705, -0.010964695, -0.053303547, 0.0033314717, 0.013043109, -0.02395125, -0.03257596, 0.00815106, 0.013311747, 0.006012555, -0.004011905, -0.028758466, -0.021505224, 0.005008695, -0.01830984, 0.026227606, 0.0065851794, -0.0027217327, 0.060853705, 0.021095198, -0.035941012, 0.030992407, 0.05474571, 0.0050829244, 0.0074653244, -0.0037503357, 0.01466201, -0.042162117, -0.03020063, 0.03020063, -0.014859954, -0.021646613, 0.034894735, 0.013884372, 0.0711468, -0.039758507, 0.01341072, -0.00039765576, 0.0069739986, -0.04334978, 0.013424858, 0.05163516, 0.03936262, 0.030370297, -0.017503923, 0.006691221, 0.011063667, 0.0022551501, -0.037552845, -0.07606713, 0.03331118, -0.024149192, -0.02231114, -0.062324148, -0.0010851584, 0.047506608, 0.023046361, -0.021901112, -0.019129893, 0.020133754, 0.024530943, -0.033791903, -0.03319807, -0.016118314, -0.005008695, -0.039334342, -0.030653074, 0.0058711665, -0.016683869, 0.025110636, 0.002544997, -0.0068644225, -0.0017682427, -0.014365094, 0.004421932, -0.016726285, 0.026849717, -0.006040833, -0.019384393, -0.044707112, 0.018323978, -0.028037382, 0.022367695, 0.023173612, -0.023979526, -0.034074683, 0.010759681, -0.0019617684, 0.0037998217, -0.012074596, 0.00057394983, -0.0072108246, -0.02618519, 0.008956975, 0.039560564, -0.039277785, -0.024205748, 0.021830417, -0.03885362, -0.029210908, 0.0026899204, 0.06407737, 0.093655884, -0.011537319, 0.012088736, -0.013523831, 0.024856137, 0.005125341, 0.02167489, 0.03220835, -0.02067103, 0.007041158, -0.014704427, -0.019356115, 0.010618293, -0.060797147, 0.028518105, -0.013212776, -0.03246285, -0.031105518, 0.0052950075, 0.03656312, 0.041907616, -0.0034445827, 0.0027111287, -0.014902371, -0.024785442, -0.020996224, 0.003874051, -0.065095365, -0.028744327, 0.030144075, -0.042925615, 0.014831676, 0.00050413917, -0.017108034, 0.001166457, 0.03611068, 0.0039412105, 0.02569033, 0.039617117, -0.00021429227, 0.042444892, -0.042020727, 0.007861213, -0.0078117265, 0.017136313, -0.05627271, -0.012336166, -0.007953116, 0.02567619, -0.037156954, -0.031925574, -0.048411496, -0.00815106, 0.05254005, 0.025011664, -0.021773862, 0.0049698134, -0.07018536, 0.042077284, -0.031671073, -0.040691674, 0.029550241, 0.023767443, 0.011219195, -0.0009808842, -0.007528949, 0.014520621, 0.03656312, -0.01502962, 0.03772251, 0.029691631, 0.023640193, -0.01466201, 0.017320119, -0.0016604337, -0.0020907857, 0.032406293, -0.0108940005, 0.008370212, 0.031727627, 0.036534846, -0.00047630325, 0.018536061, 0.0365914, 0.021901112, -0.016118314, 0.019313699, -0.0044926265, 0.038881898, -0.027344579, 0.04021095, 0.027994966, 0.021731446, -0.0005545089, -0.018564338, -0.017744284, 0.009713405, -0.007741032, -0.058252152, -0.0125199715, 0.024007805, 0.0011523181, 0.015552759, 0.013262262, -0.05036266, 0.041935895, -0.0068361447, -0.02167489, 0.03359396, 0.017574618, -0.012187707, 0.009550808, 0.0032713814, 0.026651774, -0.020925531, 0.021363836, -0.031699352, -0.04120067, 0.028249467, -0.014244913, -0.024092637, 0.022127334, -0.037524566, -0.055678878, -0.07748102, 0.0076844767, -0.06809281, -0.03769423, 0.04264284, -0.04046545, -0.08534223, 0.022014223, -0.03936262, -0.0064968118, -0.0055282987, 0.051917937, 0.028093938, 0.09738855, 0.024304722, 0.020289281, 0.01942681, 0.040295783, -0.043547723, -0.008356073, -0.007875351, -0.043264948, -0.012378583, -0.04725211, -0.026213469, -0.0035170445, 0.015920369, -0.019257143, -0.053105604, 0.03984334, 0.02857466, -0.044056725, -0.0036071797, 0.08059157, -0.014520621, 0.009416489, 0.021773862, -0.025718607, -0.028871577, -0.03645001, -0.057205874, 0.040013008, -0.015510342, -0.03348085, -0.006475603, -0.039617117, -0.03670451, 0.023838138, -0.004061391, -0.025308581, 0.054095324, 0.024318859, 0.015255842, 0.032858737, -0.03136002, -0.0018981436, 0.061758593, 0.021915251, 0.018366395, 0.06526503, 0.08358901, 0.019186448, -0.024912693, -0.00197414, 0.014577176, 0.0032925897, -0.004273474, 0.014775121, -0.0033173328, -0.061871704, -0.017037341, 0.033650514, 0.020642754, -0.04224695, -0.025775163, -0.035629958, 0.049542606, -0.027839439, 0.019511644, 0.0010047436, 0.027288023, 0.00094465335, -0.021731446, -0.018620893, -0.030596519, 0.23685437, 0.08047846, 0.050815105, 0.006178687, 0.059552927, 0.06407737, 0.007408769, -0.033254627, 0.010158779, 0.0019900461, 0.010236544, -0.01717873, 0.023781583, -0.03133174, -0.0095296, -0.017659452, -0.026482107, 0.010498112, -0.042925615, -0.060344703, -0.048496332, 0.0006216685, -0.025520664, -0.025492385, -0.0046410845, -0.0010480438, -0.01090814, -0.0067689847, -0.020982087, -0.0025432296, -0.03469679, -0.0069598597, 0.05700793, 0.010915209, -0.041172396, 0.035912734, -0.01665559, -0.08110057, 0.017588757, -0.008242962, -0.018861255, -0.03800529, 0.006369562, -0.014082316, -0.005111202, 0.0752188, 0.011099014, -0.009126642, 0.04199245, -0.04221867, 0.049316384, -0.057969373, 0.03260424, 0.013467276, -0.0108940005, 0.007627921, -0.041964173, -0.044085003, 0.023385694, 0.023894694, 0.022650473, 0.05010816, -0.014216635, -0.0072249635, -0.012597735, -0.014803398, -0.007931907, 0.051719993, -0.023173612, 0.016599035, 0.0021332023, -0.009501322, 0.03435746, 0.019257143, 0.02318775, 0.03746801, -0.017136313, 0.043887056, -0.02231114, -0.009303378, 0.0030681351, -0.0188047, -0.0029232118, -0.015383093, 0.03823151, 0.019356115, -0.043208394, -0.0071860817, -0.049599163, 0.03348085, 0.01616073, 0.024969248, 0.030539963, -0.03834462, 0.012237194 ]
Each of these feature maps of differing scales is fed successively to one Transformer decoder layer at a time in order to capture small objects from the high-resolution features. The key to Mask2Former is the masked attention mechanism in the decoder. Unlike cross-attention which can attend to the entire image, masked attention only focuses on a certain area of the image. This is faster and leads to better performance because the local features of an image are enough for the model to learn from.
[ -0.004516678, 0.009539629, -0.023722505, -0.0368856, 0.0012177674, -0.0547932, -0.016041622, -0.0004985885, -0.034310844, 0.05493785, 0.03980752, 0.012953356, 0.043394826, -0.025111139, 0.0131341675, 0.036625233, 0.0013488559, -0.00942391, -0.016374314, -0.025357043, 0.02107542, 0.02785948, -0.047994677, -0.020887377, -0.03008708, -0.026412984, 0.04006789, -0.01296782, 0.04015468, 0.05299955, -0.015086935, -0.018413872, 0.02227601, -0.049238663, 0.016851658, -0.019773576, 0.0380428, -0.00986509, -0.024373427, -0.04041505, 0.033876896, 0.00883808, -0.025950106, -0.049441174, -0.038679253, -0.01246878, -0.0068093715, -0.030289588, -0.038563535, 0.008454759, -0.017936528, -0.016576823, -0.008085903, -0.021249, 0.018862285, -0.0029888186, 0.0056123976, -0.017545974, -0.028597191, -0.023114977, 0.03217003, -0.0029074533, 0.00019166048, -0.051176965, 0.0184428, 0.018356012, -0.0042454605, -0.002871291, -0.02593564, 0.022435125, -0.015665533, -0.0031425087, 0.0039380803, -0.038129587, -0.0131992595, -0.003406494, -0.022348335, 0.01876103, -0.016793799, 0.018428337, -0.009886788, -0.0044624344, -0.010696825, -0.00018216786, 0.0022366417, -0.019542137, 0.031909663, -0.037001323, -0.028756306, -0.030202799, -0.0110873785, 0.03454228, -0.005297785, 0.05218951, 0.035844125, 0.013676602, 0.018356012, 0.035728406, 0.0036578223, 0.0003270433, 0.011506861, 0.07353976, -0.05826479, 0.06729091, 0.0008620201, -0.011622581, -0.007680884, 0.012888263, -0.014551732, -0.017155422, 0.053578146, -0.011376677, 0.020511288, -0.04492811, 0.00037179422, 0.023664646, -0.016634684, 0.014407082, 0.00427439, -0.017488115, -0.03807173, -0.028872024, -0.019889295, -0.018905679, 0.023143908, -0.04044398, 0.0343687, 0.021003095, -0.044060215, 0.014898891, 0.023331951, -0.015246049, -0.0047661983, 0.045738146, -0.0077966037, 0.0066140946, -0.049730472, 0.01896354, -0.028076453, -0.01185402, 0.03182287, -0.022941398, -0.0054930616, 0.0698946, -0.044060215, 0.010877636, 0.017922062, -0.008259482, -0.03182287, -0.005865534, 0.013705533, -0.01121033, 0.011774463, 0.0066104787, -0.00724332, -0.022565309, -0.00044321487, 0.0024771213, -0.03503409, 0.0042129145, 0.025790991, 0.008266714, -0.0073156445, 0.041340806, -0.008324574, 0.058554087, -0.01776295, -0.036364865, -0.02393948, -0.03676988, 0.023346417, -0.0049650916, 0.017705088, 0.008903172, 0.015390699, -0.0010667895, 0.069200285, -0.04452309, 0.01864531, 0.025733132, -0.004216531, -0.033269368, -0.01847173, 0.064050764, -0.021465974, -0.011412839, 0.023071583, 0.025530623, -0.02625387, 0.015173724, 0.064455785, 0.03486051, -0.024923095, 0.016750403, -0.012598964, 0.012729149, -0.038129587, 0.011543023, 0.016446639, -0.043250177, -0.008252249, 0.054532833, -0.019571066, -0.009156308, -0.023158371, 0.0008859777, 0.022406194, 0.024416823, -0.058669806, 0.035699476, 0.005511143, -0.015390699, 0.0028387448, 0.022550846, 0.030723536, -0.019484278, 0.0187321, 0.005970405, 0.017285606, 0.0072830985, 0.0013714574, 0.012483245, 0.0100531345, 0.027700365, -0.01305461, -0.03520767, -0.0076953494, 0.048949365, 0.036422726, 0.02745446, 0.020786121, 0.03419512, -0.022435125, 0.03752206, -0.0058221393, -0.02651424, 0.044494163, -0.006154833, 0.001750258, 0.041948333, 0.020381104, -0.006679187, 0.03789815, 0.03743527, 0.01718435, 0.025631877, -0.029392762, 0.025038814, -0.06896885, -0.008331806, -0.048978295, 0.06804309, -0.011991437, 0.009778301, -0.025414903, -0.014544499, 0.005294169, 0.025270253, -0.005294169, -0.016229665, -0.0027248336, -0.011354979, 0.008288411, -0.041225083, 0.040848996, 0.036422726, 0.032893278, -0.013965902, -0.006281401, -0.063703604, -0.020511288, -0.05757047, -0.081466556, -0.018240292, -0.019354092, -0.058525156, -0.008100367, -0.038245305, -0.028438076, -0.04510169, 0.00094835775, 0.03240147, -0.059595563, 0.030694608, 0.006407969, 0.019354092, -0.04515955, 0.023664646, -0.005724501, -0.0053050173, 0.00034331635, -0.0034788186, -0.043221246, 0.009792766, -0.014443245, -0.033356156, 0.015231584, -0.03269077, -0.048602205, 0.008736825, -0.031851802, -0.010450921, 0.0015875273, 0.01638878, -0.009033356, 0.0039091506, 0.031880733, -0.0010270108, 0.003672287, 0.067811646, -0.046982132, 0.020178594, 0.020467892, 0.0027609959, -0.023216233, 0.06636515, 0.041485455, -0.0101182265, -0.020106269, 0.0077098142, -0.013857415, 0.009228633, 0.015578743, -0.024503611, -0.025197929, 0.04252693, -0.009011659, -0.0276859, 0.00531225, -0.01747365, -0.050048698, 0.014631289, -0.009771069, 0.016895052, 0.04715571, 0.006035497, -0.03757992, -0.013163097, -0.009452839, 0.011745533, -0.00807867, -0.08661608, 0.045738146, 0.021972246, 0.018486196, 0.04215084, 0.03309579, -0.038476747, -0.04281623, 0.019498741, 0.0494701, 0.01973018, 0.0009180718, -0.006914242, 0.020699332, 0.013503023, -0.020525753, 0.01864531, 0.056326486, -0.00989402, 0.08268161, 0.01981697, -0.011817858, 0.0021064573, -0.032719698, -0.011984205, 0.003992324, 0.028495936, 0.0380428, -0.034050472, -0.015000145, -0.0299135, -0.030289588, 0.030549958, 0.016446639, -0.050569437, 0.02762804, 0.022492984, 0.06028988, -0.050598368, 0.0025078594, 0.03514981, -0.0134162335, -0.020959701, 0.029508483, 0.043336965, -0.027078371, 0.007912323, -0.044147003, -0.012353061, 0.030260658, -0.028076453, -0.04692427, -0.038303167, -0.038389955, -0.020525753, 0.0015712543, 0.014725311, -0.0076591866, -0.0018135421, 0.061447073, -0.0380428, 0.008830847, 0.045651358, -0.015723392, 0.0020160512, -0.033182576, 0.0033829883, 0.005449667, 0.0013307746, -0.0009836161, 0.0046179327, -0.009467305, -0.00005938537, 0.029580807, 0.017300071, -0.012664056, 0.002732066, -0.0026940955, 0.053057406, 0.0053809583, -0.025574017, -0.03755099, 0.00936605, 0.030116009, -0.06347217, 0.01741579, -0.026138151, 0.0077749062, 0.040501837, -0.024547007, -0.021899922, 0.0006355534, -0.027656969, -0.069316, 0.024084128, 0.0516977, 0.008801918, 0.026007965, -0.022059036, 0.016258596, -0.01747365, -0.05247881, -0.008505386, 0.020627007, -0.007839998, 0.0017873244, 0.03023173, 0.0013967709, -0.022030108, 0.010863172, -0.030376378, 0.025357043, -0.005529224, -0.0038766044, -0.026991582, 0.025487227, -0.01987483, 0.03480265, 0.0013280625, -0.020670403, -0.017632764, -0.00009995501, -0.05540073, -0.07220899, 0.014067156, 0.026485309, 0.022059036, 0.03219896, -0.01492782, 0.009069519, -0.021263465, 0.012461548, -0.041311875, -0.008707895, 0.008085903, 0.017054167, -0.00025132837, -0.043597337, 0.003992324, -0.02093077, 0.054503903, 0.0019057561, -0.05250774, -0.03549697, -0.028206637, -0.01123926, -0.002992435, -0.012902728, 0.010110995, 0.0059631723, -0.016576823, -0.019209443, -0.035728406, 0.0009700552, 0.018225826, -0.030202799, 0.00022273751, 0.0651501, 0.027179627, 0.04999084, -0.011926345, -0.041572243, 0.0037861986, -0.053230986, -0.00036795196, -0.030694608, -0.023519997, -0.022565309, -0.021437043, -0.06237283, 0.022145826, -0.031157486, 0.000026302463, 0.01887675, -0.014783171, 0.017083097, -0.03506302, -0.05519822, 0.046490323, 0.0052724713, -0.05288383, -0.024040734, 0.014139481, 0.0042707743, 0.016113946, 0.038592465, -0.026181545, 0.0014727119, -0.0035836895, 0.04455202, -0.038418885, 0.029407227, -0.06601799, -0.043915562, 0.026499774, 0.019122653, 0.0153762335, -0.038852833, -0.028640585, -0.0142985955, -0.010183319, -0.010132692, -0.04076221, -0.010516013, -0.0048891506, -0.014689148, 0.04330804, 0.01973018, -0.04756073, 0.018804425, 0.015622137, 0.009691511, 0.048023608, -0.050685156, -0.020005016, 0.041138295, -0.016851658, 0.0032112172, -0.0052580065, -0.0057968255, -0.008273947, -0.034310844, 0.046258885, -0.05919054, 0.0052580065, 0.012902728, -0.046721764, 0.031504642, -0.033819035, -0.000022361332, -0.07058892, 0.031938594, -0.007029962, 0.016750403, 0.0022800365, -0.0343687, -0.05282597, -0.051437333, 0.048775785, -0.022637634, 0.015130329, -0.00059080246, -0.019035865, 0.061794233, -0.021726344, 0.050366927, 0.023982873, 0.026441915, -0.016750403, -0.008266714, -0.0019636159, 0.0030973058, -0.00682022, 0.0028441693, -0.0027212172, -0.01878996, -0.010682359, -0.04706892, -0.051119104, 0.001243985, 0.012729149, 0.04692427, -0.049296524, 0.062719986, -0.013864647, -0.03014494, -0.03468693, 0.051408403, 0.0019220292, 0.035236597, 0.023245161, 0.031302135, 0.0075651645, 0.05780191, -0.008469224, -0.026962653, -0.03792708, 0.042266563, 0.01261343, -0.031388924, 0.01847173, 0.010429223, -0.02759911, 0.025776526, -0.007236087, 0.005203763, 0.0050808107, -0.028177707, -0.0024047967, -0.0065960134, -0.0102701085, 0.023780365, 0.041659035, -0.012729149, 0.005406272, 0.018544056, 0.0060571944, -0.04553564, 0.0099229505, 0.044349514, -0.0028224718, 0.00662856, -0.021668483, -0.0022963095, -0.039055344, -0.025574017, 0.02997136, 0.030434238, -0.0061801467, 0.051524125, 0.023114977, 0.09188131, -0.0154196285, -0.009387747, -0.016620219, -0.006140368, -0.06451364, 0.006816604, 0.0528549, 0.019860366, 0.032025382, -0.019223908, 0.017994387, 0.021625089, 0.040877927, -0.03737741, -0.08603747, 0.0639929, -0.04721357, -0.035410177, -0.05273918, 0.01656236, 0.025443833, 0.03266184, -0.0089754965, -0.051437333, 0.02745446, 0.021133281, 0.018066712, 0.008744057, -0.023143908, -0.03217003, -0.01633092, -0.024185384, -0.0018641694, -0.012635127, 0.05791763, 0.02593564, -0.006230774, -0.015463023, -0.012917194, 0.006617711, -0.024228778, -0.0025711434, -0.0014672875, -0.042931948, -0.043626264, -0.006635792, -0.029088998, 0.024836306, 0.023867154, -0.04330804, -0.015882507, -0.010776382, 0.004089962, -0.004317785, -0.0110439835, 0.019050328, 0.019599997, -0.022001177, 0.014464942, 0.02602243, -0.06914242, -0.012815938, 0.006158449, -0.036133423, -0.019426417, 0.029074533, 0.06567084, 0.04779217, 0.015622137, 0.0013759776, -0.004758966, -0.004856604, 0.014117784, 0.0024499996, 0.01498568, 0.009807231, -0.028452542, -0.021639554, 0.0076230243, 0.018659776, -0.039402504, 0.04481239, 0.0050735786, -0.026239404, -0.018312616, 0.0006002951, 0.03014494, 0.043684125, -0.026123686, 0.008519851, -0.018659776, -0.0009546862, -0.024445752, -0.01990376, -0.053115267, -0.0009836161, 0.0472425, -0.01308354, -0.0065164566, -0.0016688927, -0.0201352, 0.0051531354, 0.046345674, 0.011398374, -0.001612841, 0.068100944, -0.059306264, 0.0651501, -0.030723536, -0.02365018, -0.026499774, 0.033645455, -0.020381104, -0.049209733, 0.0024210697, 0.054012094, -0.013322212, -0.019628927, -0.023693575, -0.024315568, 0.05302848, 0.026210476, -0.010660662, 0.0187321, -0.072903305, 0.038158517, -0.008729593, -0.007279482, 0.00025923888, 0.049441174, 0.00028952485, -0.0041225087, -0.010805312, 0.009358818, -0.023910549, -0.018327082, 0.027787155, 0.02968206, 0.07180397, -0.007015497, 0.001429317, -0.013090773, 0.018283688, 0.011933577, 0.002381291, -0.0299135, 0.031215345, 0.05268132, -0.0058149067, 0.008201622, 0.053057406, 0.01419734, 0.024575936, 0.0072830985, -0.04481239, 0.054677483, -0.018572986, 0.03277756, 0.020670403, 0.0016951103, -0.010993356, -0.012823171, -0.002352361, 0.02388162, 0.008245017, -0.051668774, -0.0022800365, 0.012027599, 0.041138295, 0.015607673, 0.0122735035, -0.016620219, 0.011803392, -0.008563246, -0.036278076, -0.000921236, -0.00084665115, 0.0130690755, -0.018688705, 0.041282944, 0.00986509, 0.028076453, 0.0015242433, -0.043105528, 0.0010821585, 0.0066900356, 0.010147157, -0.03480265, 0.011232028, -0.025197929, -0.016735937, -0.06867954, 0.007420515, -0.0377535, -0.017690625, 0.021509368, -0.026962653, -0.02093077, 0.011926345, -0.024662726, -0.006382656, 0.0018858669, 0.06017416, 0.026658889, 0.089219764, 0.024185384, -0.012750846, 0.041803684, 0.013835717, -0.0422087, 0.013676602, -0.028061988, 0.002256531, 0.01419734, -0.06896885, -0.043452688, 0.022637634, 0.02373697, 0.020482358, -0.033442944, 0.025964571, -0.0056123976, -0.03468693, -0.012042064, 0.08013578, 0.01165151, 0.009517932, 0.012881031, -0.007319261, -0.05282597, -0.007384353, -0.07747423, 0.058988035, -0.016432174, -0.035988774, 0.01756044, -0.029566342, -0.020265384, 0.0073481905, 0.0155064175, 0.0020504056, 0.051784493, 0.06705947, 0.037811358, 0.033529736, -0.024662726, -0.012150551, 0.035901986, 0.023013722, -0.019194977, 0.088525444, 0.07770567, -0.011311585, 0.0012367525, -0.025429368, 0.017791878, 0.00930819, 0.00939498, 0.04183261, -0.008794685, -0.050511576, -0.010805312, -0.016576823, 0.037956007, 0.0077315117, -0.01165151, -0.053636007, 0.036278076, -0.06480294, 0.0223628, -0.02874184, 0.02728088, 0.007268633, -0.024228778, -0.040906858, -0.044147003, 0.24902844, 0.058525156, 0.093617104, 0.0018551288, 0.07382906, 0.020164128, 0.014161178, -0.018587451, 0.023317486, 0.01121033, 0.027960733, 0.0065200725, -0.010798079, -0.008613873, -0.020178594, 0.0016987267, -0.05664471, 0.024792911, -0.011188633, -0.06671231, -0.042874087, 0.034600142, 0.008606641, 0.010884869, -0.014790404, -0.013676602, -0.0007942157, -0.026036896, 0.013466861, -0.0013108854, -0.041080434, -0.040733278, 0.016345385, 0.0069033937, -0.005496678, 0.05028014, 0.0015848152, -0.051176965, -0.005634095, -0.023462135, 0.0101182265, -0.028250031, 0.013365607, -0.036625233, -0.0321411, 0.034629073, -0.024055198, -0.0025819922, 0.05030907, -0.050858736, 0.022116896, -0.07921002, 0.05762833, -0.0068599987, -0.0026796304, 0.0324304, -0.047965746, -0.04212191, 0.011839555, 0.06046346, 0.016707009, 0.08002006, -0.0043792613, -0.022550846, 0.027034977, -0.02133579, -0.03179394, 0.016996307, -0.00036501378, 0.024561472, 0.0038729883, -0.008961031, 0.016461104, -0.0110656805, 0.008476456, 0.0075506996, -0.040704347, 0.046056375, -0.020193059, -0.00942391, -0.009640884, -0.019426417, 0.016345385, -0.025993502, 0.0074856076, 0.022174757, -0.01618627, -0.0060716593, -0.0031678223, 0.05777298, 0.007326493, 0.0070950543, 0.029710991, 0.013003983, -0.003760885 ]
Like DETR, Mask2Former also uses learned object queries and combines them with the image features from the pixel decoder to make a set prediction (class label, mask prediction). The decoder hidden states are passed into a linear layer and transformed into logits over the class labels. The cross-entropy loss is calculated between the logits and class label to find the most likely one. The mask predictions are generated by combining the pixel-embeddings with the final decoder hidden states. The sigmoid cross-entropy and dice loss is calculated between the logits and the ground truth mask to find the most likely mask.
[ 0.008292143, 0.021031223, -0.019548912, -0.056415927, -0.038364004, -0.0523359, -0.039009765, 0.015527588, -0.034401387, 0.05852932, 0.045995712, -0.013524265, 0.0062154382, 0.014316789, 0.0152340615, -0.005019315, 0.017993217, 0.02503787, -0.048255872, -0.027870407, 0.007140049, 0.038452063, -0.053510007, -0.0055770166, 0.00636954, 0.013927865, 0.06792219, -0.006967602, 0.0702117, 0.01786113, -0.028736312, -0.006648391, 0.028442785, -0.048637457, 0.023570234, -0.0035296644, 0.015087297, -0.023306059, -0.015395502, -0.052746836, 0.021867776, -0.009935895, -0.0031260645, -0.044205196, -0.03842271, -0.010163379, 0.018448183, -0.030174594, -0.030174594, -0.027708966, -0.030086538, 0.00064117345, -0.010853168, -0.0040286607, 0.0011016442, 0.05486023, -0.0023280375, -0.0240252, 0.0012410696, -0.010816477, 0.05180755, -0.025903774, 0.004861544, -0.052394602, 0.0234675, 0.013076636, 0.00407269, -0.009943234, -0.019651646, -0.011667706, -0.025786364, -0.021236692, -0.0020675322, -0.027503498, -0.026622916, 0.005877882, 0.035370026, 0.01516068, -0.026681622, 0.056093045, 0.035135206, 0.02854552, 0.011352164, -0.013927865, -0.004120388, -0.025639601, 0.059087023, 0.008915888, -0.056386575, -0.028193288, -0.019211356, 0.025419455, -0.014514919, 0.051543374, 0.015674353, 0.0027022846, -0.00065126346, 0.023012532, 0.007550987, -0.023849085, 0.0046780896, 0.069272414, -0.027400764, 0.061875533, -0.03475362, 0.034401387, 0.014045276, -0.016481552, -0.024935136, -0.0045863623, 0.051308554, -0.0049202493, 0.00076592254, 0.014309451, -0.013737072, 0.043647494, -0.026549535, -0.0442639, 0.0043111807, -0.0042965044, 0.020414816, -0.019563587, 0.014089305, -0.024260022, 0.030585533, -0.018007893, 0.0063842162, 0.038364004, -0.04772752, -0.015021254, 0.00039144602, -0.010721081, -0.016393494, 0.026872415, -0.017362133, -0.03419592, -0.04802105, -0.011623677, -0.03475362, -0.023218, 0.05709104, -0.0076096924, -0.02947013, 0.07379273, -0.017552925, 0.007481274, 0.0043992386, -0.014624992, -0.033638217, 0.0032214609, -0.018374803, 0.021045899, 0.016701696, 0.014918519, -0.009943234, -0.026300035, 0.042267915, -0.0022069577, -0.023159295, -0.025786364, 0.0016520077, -0.0034489445, -0.032405403, 0.03595708, -0.019959848, 0.05192496, -0.005624715, -0.01592385, -0.031877052, -0.022851093, 0.032111876, -0.007954587, 0.012122673, 0.019460853, 0.037571482, 0.03431333, 0.060818832, -0.019343441, 0.032786988, 0.0010447734, -0.011557633, -0.054273177, 0.0012750088, -0.0023977503, -0.03498844, -0.032552164, -0.015101974, -0.0012410696, -0.04869616, -0.0029976463, 0.028677607, -0.027165942, -0.0202387, 0.03812918, 0.0070740054, 0.02471499, -0.026329389, 0.029044516, -0.016188025, -0.02531672, -0.023408793, 0.024861753, -0.039127175, -0.0015263414, -0.0022711665, 0.017230047, 0.01661364, 0.019020561, -0.051367257, 0.011704396, 0.0045313262, -0.021588925, 0.0170099, -0.0007104275, 0.017831776, 0.002467463, 0.0066373837, 0.007763794, 0.010192731, -0.027826378, 0.00066777435, 0.0038085154, -0.005015646, 0.03786501, 0.028398756, -0.033696923, 0.008064659, 0.047111113, 0.053480655, 0.04931257, -0.0017217204, 0.042267915, -0.015527588, 0.06639585, 0.0016410005, -0.02704853, 0.030468123, -0.0006439253, -0.0061090346, 0.050780203, 0.035810318, -0.004777155, 0.008512288, 0.020356111, 0.023188649, 0.0069235726, 0.015263414, 0.03953811, -0.03281634, 0.016393494, -0.03217058, 0.05213043, 0.013722396, 0.023761027, -0.04024258, -0.016657667, 0.01709796, -0.00023688562, -0.03595708, -0.024083907, -0.043236554, 0.0012383178, 0.014089305, -0.027151266, 0.038305297, 0.028090551, 0.02120734, 0.022572242, 0.0016208205, -0.077726, -0.08248114, -0.041504744, -0.05312842, -0.02536075, -0.01592385, -0.061875533, -0.0029205955, -0.04080028, 0.014294774, 0.006398893, -0.015762411, 0.028883075, -0.03789436, 0.040536106, -0.007103358, 0.028927105, -0.04306044, 0.03889235, -0.0047808243, 0.019020561, 0.020356111, -0.029939774, -0.04306044, 0.022674976, 0.042062446, 0.0037277953, 0.049606096, -0.03431333, -0.035340674, 0.009546972, -0.023218, -0.02817861, -0.01314268, 0.004175424, -0.019504882, 0.035692908, 0.030967118, 0.00044739965, 0.013348149, 0.060173076, -0.04417584, 0.023716997, 0.017288752, 0.023937143, -0.018462861, 0.06768737, 0.01157231, -0.014691036, -0.0065456564, -0.03733666, -0.013773764, 0.016584286, 0.012144688, -0.05298166, -0.008248114, 0.0561224, -0.0003061397, -0.018756388, 0.019769056, -0.036045138, -0.058910906, 0.004105712, -0.017685013, 0.007022638, 0.043442026, -0.019299412, -0.046729527, -0.035428733, 0.013927865, 0.057296507, 0.01797854, -0.07819565, 0.06175812, 0.036426723, 0.033814333, -0.019563587, 0.020899136, -0.0045606787, -0.019504882, 0.06023178, 0.064047635, 0.062345177, 0.0061604017, 0.009414884, -0.0007961925, 0.004325857, -0.0071950853, 0.00062695576, 0.02169166, -0.0022766702, 0.02616795, 0.0031297337, -0.030350711, -0.011242092, -0.047433995, -0.040183872, 0.027165942, -0.0050449986, 0.02197051, -0.024098583, 0.02842811, -0.01938747, 0.010809138, 0.034900382, 0.03043877, -0.07549519, 0.034577504, 0.025536865, 0.05938055, -0.039039116, -0.019578263, 0.03237605, -0.009334165, 0.020341434, 0.018242715, 0.036867015, -0.023056561, -0.009011284, -0.031994462, 0.0019244377, 0.0092314305, -0.03560485, -0.0240252, -0.0070886817, -0.034900382, 0.0022436485, 0.011337488, 0.04165151, -0.010067983, -0.023218, 0.030350711, -0.011352164, -0.024421463, 0.009752441, -0.017332781, -0.013267429, -0.040947042, 0.022205332, -0.008673728, -0.027121913, -0.012467568, -0.0036635862, -0.011198062, -0.018360125, 0.021383455, 0.018198686, -0.044117138, -0.009194739, -0.009216754, 0.027767673, 0.02628536, -0.021104606, -0.024979165, -0.0028563866, 0.040682867, -0.06439987, 0.02289512, -0.012885843, 0.019372795, 0.050486676, -0.039039116, -0.021794394, 0.010985255, -0.023672968, -0.037043132, 0.04176892, 0.037659537, 0.008673728, 0.016334789, -0.014316789, 0.01979841, 0.0003086622, -0.023452822, -0.020429492, -0.027826378, 0.02233742, 0.016848462, 0.033080515, -0.0045826933, -0.022058569, -0.008783801, -0.022190657, 0.02208792, -0.03918588, 0.022366771, 0.013817793, 0.059087023, -0.021853099, 0.063519284, 0.0058081695, 0.010009278, -0.0081086885, 0.022528213, -0.05635722, -0.040213224, 0.012019939, 0.014573625, 0.032669578, -0.0008530634, -0.02536075, -0.015791763, 0.022557564, 0.027987817, -0.0128198005, 0.025595572, -0.028442785, 0.00308387, -0.024436139, -0.059820842, 0.03129, -0.027532851, 0.03974358, -0.029382072, -0.029205956, -0.034900382, -0.008967255, -0.03425462, 0.03261087, -0.020869784, 0.022630947, -0.037747595, 0.038569473, -0.021838423, -0.024260022, -0.0016024751, 0.042121153, -0.025492836, 0.014962548, 0.024450814, 0.04382361, 0.005499966, -0.055300523, -0.060818832, 0.046113122, -0.026270684, -0.009334165, -0.04490966, -0.03131935, -0.008578332, -0.025771687, -0.041416686, 0.03510585, -0.01124943, 0.000883792, 0.01350225, -0.0019427831, 0.013069298, -0.05192496, -0.04414649, 0.0073601943, -0.007888543, -0.018712359, -0.03325663, -0.0026509175, 0.009972586, 0.029382072, 0.010588993, -0.031642232, -0.0052064387, -0.0065236418, 0.028853724, -0.039860994, -0.000113741786, -0.06240388, -0.0264468, 0.060407896, 0.023012532, 0.025698306, -0.0077344417, -0.0038708898, -0.04890163, 0.0170099, -0.04417584, -0.014544273, -0.0070923506, -0.015101974, -0.002592212, 0.045085777, -0.00037814557, -0.0340198, 0.012232746, 0.019607617, 0.022190657, 0.04458678, -0.053920943, -0.025683628, -0.013472898, -0.010339496, 0.030468123, -0.014478229, -0.021750364, 0.014962548, -0.04846134, 0.042473383, -0.023232678, -0.022660298, -0.021471513, -0.04467484, 0.050339915, 0.0059255804, -0.0013685705, -0.053510007, 0.032552164, -0.040712222, 0.022557564, -0.023628939, -0.00955431, -0.017846454, -0.0734405, 0.010288128, -0.022660298, 0.0010924715, 0.005987955, -0.034577504, 0.025287367, -0.027679615, 0.062051646, 0.04329526, 0.030702945, -0.020678991, -0.020737696, 0.027356734, -0.007565663, -0.013164694, -0.008974594, 0.005518311, -0.03930329, 0.002353721, -0.04361814, -0.05538858, -0.020546904, -0.0076096924, 0.0372486, -0.002935272, 0.040066462, -0.016995225, -0.01003863, -0.028912429, 0.0502225, -0.018198686, -0.01640817, 0.011322811, 0.012893182, -0.0052944967, 0.01830142, -0.02729803, -0.017450191, -0.038481414, 0.045966357, -0.0026032194, -0.07702153, 0.04793299, 0.026329389, -0.0041093808, 0.0063145035, -0.004806508, -0.011873174, 0.0076170308, -0.01560097, -0.005547664, 0.023188649, -0.02169166, 0.0340198, 0.038921706, -0.036661547, 0.0028086882, 0.005019315, 0.017714366, -0.057237804, 0.023173971, 0.0410351, -0.018638976, -0.038393356, -0.037189893, -0.032229286, -0.03862818, -0.039156526, 0.023159295, 0.0066410527, -0.02503787, 0.01850689, 0.061347183, 0.03713119, -0.031378057, 0.014221393, 0.022322742, -0.0069602635, -0.05691492, -0.026402771, 0.049635448, -0.003973624, 0.015791763, -0.031378057, -0.0023170302, 0.012401524, 0.042678855, -0.033814333, -0.07355791, 0.02358491, -0.03269893, -0.014140672, -0.019842438, -0.028516166, 0.022792386, 0.0039516096, -0.006373209, -0.051425964, 0.044733543, 0.011124681, -0.010757771, 0.015366148, -0.02088446, -0.029000487, -0.03258152, -0.028795017, 0.024876429, -0.0150139155, 0.0052504675, 0.041328628, -0.016554933, -0.008688405, 0.013318797, -0.002329872, -0.022249362, 0.046377297, -0.061464593, -0.004989962, -0.064575985, -0.017626308, -0.010214746, 0.043353967, 0.00685386, -0.06892019, -0.0082774665, -0.0037241261, -0.014500244, 0.013553618, -0.007114365, 0.02769429, 0.02511125, 0.017743718, 0.015791763, 0.05095632, -0.04276691, -0.0027114574, 0.023071237, -0.020062584, 0.0019941505, 0.013010593, 0.033667568, 0.034929737, 0.01855092, 0.015762411, -0.0000617439, -0.015997231, 0.0067878165, -0.008534303, 0.02289512, 0.008468259, 0.0056100385, -0.0025169956, 0.017758396, 0.032464106, -0.02817861, 0.027708966, 0.0010145033, 0.015938526, -0.0015758742, 0.020781726, 0.031554174, 0.02845746, 0.017244723, -0.018594947, -0.0054926276, -0.011073314, -0.026813708, 0.019725027, -0.048725516, -0.019020561, 0.047639463, -0.032992456, 0.0050633443, -0.03519391, -0.03930329, 0.012107996, 0.0577368, -0.004157079, -0.0024160957, 0.01640817, -0.042884324, 0.0350765, -0.010955903, -0.011917204, -0.021926481, 0.029338043, -0.040066462, -0.026109243, -0.020855106, 0.07355791, 0.00026371583, -0.004406577, -0.04179827, 0.0031535828, 0.018873798, 0.015307443, 0.013083975, 0.025067221, -0.01963697, 0.019827763, -0.0008672811, -0.011909866, -0.0029939774, 0.06780478, 0.022997856, -0.025566218, -0.0010933888, -0.0033370373, 0.014720389, -0.01797854, 0.011344826, 0.0006925407, 0.046054415, -0.04467484, 0.0018767394, 0.05148467, 0.05224784, -0.0025298374, 0.0076537216, -0.035223264, 0.044351958, 0.05224784, 0.015850468, -0.038334653, 0.04987027, 0.0120126, 0.032552164, 0.040066462, -0.022836415, -0.004736795, 0.020106612, -0.016936518, 0.01459564, 0.016114643, 0.008570994, 0.015219385, -0.015072621, 0.060466602, -0.026534857, -0.025668953, -0.016642991, 0.010750433, 0.050251856, -0.007051991, 0.012797786, -0.003958948, 0.028207963, 0.040741574, -0.0038965736, 0.033667568, 0.014346141, -0.0004985376, -0.054772172, 0.03419592, -0.0040470064, 0.0144342, -0.011300797, -0.052746836, 0.009811146, 0.018374803, 0.00007825481, -0.025830394, 0.007429907, -0.04402908, -0.04813846, -0.08688405, 0.021354103, -0.050897613, -0.013971894, 0.017846454, -0.030350711, -0.045995712, 0.014485567, 0.0006494289, 0.013003254, 0.031025823, 0.05797162, 0.02951416, 0.09780326, 0.025712982, -0.015556941, 0.020796401, 0.022674976, -0.03930329, -0.007220769, -0.026813708, -0.002551852, -0.001898754, -0.022865769, -0.047580756, 0.026211979, 0.043207202, 0.021222016, -0.042884324, 0.015865145, 0.0017721704, -0.046113122, 0.017347457, 0.07115099, 0.0016079786, -0.013194047, -0.013634338, -0.021765042, -0.020576255, 0.010743096, -0.05031056, 0.07027041, -0.04769817, -0.033931743, -0.02439211, -0.04652406, 0.016496228, 0.027708966, -0.03349145, -0.04684694, 0.00802063, 0.023408793, 0.015057945, 0.03918588, -0.007051991, 0.023438146, 0.01350225, 0.019035239, -0.0056577367, 0.08160056, 0.07167934, -0.019607617, -0.001400675, -0.0052834894, 0.010244099, -0.0029114229, 0.032229286, -0.007349187, -0.013355487, 0.0042488063, -0.026329389, -0.0033572172, 0.058323853, -0.013025269, 0.024612255, -0.05171949, 0.022322742, -0.03313922, 0.026593564, -0.037043132, 0.03616255, -0.007180409, -0.0021354102, 0.017993217, -0.08606217, 0.25712982, 0.042972382, 0.043706197, 0.025169957, 0.048842926, 0.041475393, 0.029807687, -0.012929873, 0.0060099694, 0.00059439254, 0.01712731, -0.03498844, -0.03710184, -0.038686883, -0.017890483, 0.0058448603, -0.017714366, 0.005951264, 0.03390239, -0.0582945, -0.036778957, 0.033168573, 0.027239323, 0.0017263067, -0.0019372795, -0.006648391, 0.01855092, -0.043852963, 0.008981932, -0.03950876, -0.010471582, -0.05949796, 0.04168086, -0.0014813951, -0.022528213, 0.06522174, 0.037600834, -0.06569139, 0.025169957, -0.027914437, -0.007235445, -0.036191903, 0.024626931, -0.008101351, -0.024083907, 0.026828386, -0.026681622, -0.01786113, 0.03939135, -0.060085017, 0.038334653, -0.067335136, 0.05483088, -0.022205332, -0.042238563, 0.004978955, -0.035017792, -0.010787125, -0.00374981, 0.0071547255, 0.050281208, 0.04869616, -0.03874559, -0.0017941849, 0.018272068, -0.012210731, 0.0202387, -0.0031572517, 0.011623677, 0.050134443, 0.011953895, -0.004241468, -0.0049092425, -0.0068428526, 0.022997856, -0.030233301, -0.034577504, 0.039919697, 0.000038840757, -0.027165942, -0.0125996545, -0.018404154, -0.0002478929, -0.034401387, 0.024289375, 0.028839046, 0.012621669, -0.021310074, -0.040976398, 0.004652406, 0.014059952, 0.033696923, 0.015454207, 0.020605609, 0.017244723 ]
DETR uses a bipartite matching loss during training to compare a fixed number of predictions with a fixed set of ground truth labels. If there are fewer ground truth labels in the set of N labels, then they're padded with a no object class. This loss function encourages DETR to find a one-to-one assignment between the predictions and ground truth labels. If either the bounding boxes or class labels aren't correct, a loss is incurred. Likewise, if DETR predicts an object that doesn't exist, it is penalized. This encourages DETR to find other objects in an image instead of focusing on one really prominent object.
[ 0.061568044, 0.026423875, -0.03180831, 0.007931315, -0.007841344, 0.009267042, -0.021094806, 0.011986944, 0.017952733, 0.06799061, 0.021427007, -0.012007706, 0.01593184, -0.039642733, 0.003578089, 0.053318366, -0.005149126, -0.029842783, 0.004017564, -0.030867072, 0.027489688, 0.035683997, -0.06256465, -0.036874384, -0.018201884, 0.02423688, 0.08089111, 0.01554427, 0.065332994, 0.03125464, 0.009357014, -0.007301516, 0.015599636, -0.033607736, -0.023793945, 0.030977806, 0.0030348008, -0.014824499, -0.026091672, -0.01131562, 0.048778277, 0.021745367, 0.028181775, -0.08520973, -0.03731732, 0.0055020903, 0.02376626, -0.02798799, 0.010346698, 0.0008586202, -0.06931941, -0.00076735124, -0.0074953004, -0.033330902, -0.022340562, -0.034908857, 0.036237665, 0.0073153577, 0.0075368253, 0.016679293, 0.0072253863, 0.03773257, 0.006848199, -0.07696006, 0.016471665, 0.0028202538, 0.0100975465, 0.016693134, 0.010139071, -0.05279238, -0.06560983, -0.014796816, -0.023710893, -0.027475847, -0.0068793427, 0.037511107, 0.025800996, 0.018215725, 0.013336513, 0.038313925, 0.011329461, 0.0052667805, -0.03252808, 0.004183665, -0.065831296, -0.055173162, 0.03499191, 0.03820319, 0.012429879, -0.009876079, -0.00574086, 0.042134244, -0.01251985, 0.024638291, -0.007986682, 0.026589975, -0.03681902, 0.039338216, -0.007356883, -0.019156963, -0.014769132, 0.058855064, -0.024845917, 0.060959008, -0.044182822, 0.033386268, 0.0024032714, -0.042300347, -0.036985118, -0.056308184, -0.012332987, -0.024513716, 0.016859235, 0.014866025, -0.0017639563, 0.005938105, -0.00932933, -0.008747977, -0.048667546, 0.032223564, -0.0060522994, -0.0042217295, 0.02335101, 0.015419695, -0.00047407945, -0.04066702, -0.016277881, -0.006353357, -0.048418395, 0.006689019, 0.013654873, 0.0026368508, -0.03524106, 0.035379477, -0.0150736505, -0.013198095, -0.024721341, 0.023060333, 0.0033029844, 0.009336251, 0.017122228, -0.013336513, 0.008187387, 0.08443459, -0.019890575, 0.0047061904, -0.021676159, -0.013239621, -0.014077046, 0.0025209263, 0.005792767, 0.02494281, 0.011384828, -0.0042736363, 0.020222778, 0.01339188, -0.01331575, 0.03529643, 0.026576133, 0.03346932, 0.0082912, -0.0065817456, -0.038064774, 0.068433546, -0.0126721095, 0.039338216, -0.04733874, -0.008166624, -0.009038654, 0.0045954566, -0.014436931, 0.0009689215, 0.005796227, -0.0013703319, 0.01753748, 0.03501959, 0.034216773, -0.01762053, 0.0021420086, 0.008734136, -0.009232438, -0.05819066, -0.050882224, 0.036929753, 0.005938105, -0.01467224, 0.02048577, -0.0017405984, -0.013689477, -0.028347876, -0.010630453, 0.025994781, -0.0497472, 0.043324634, -0.04916585, 0.036708284, -0.011772397, -0.00046759116, -0.007910552, -0.029676683, -0.0069450913, 0.047560208, -0.0057373997, 0.016097939, -0.0331648, 0.03529643, 0.01936459, 0.05985167, -0.05940873, -0.009177071, 0.030036569, 0.026216248, -0.011073389, 0.00056578097, 0.019599898, -0.018354142, 0.011038785, 0.018990863, 0.0029430992, 0.004720032, -0.013225779, 0.03125464, 0.049913302, -0.014824499, 0.032860283, -0.0057650832, 0.020914864, 0.024569081, -0.04703422, 0.043822937, -0.014769132, 0.011128756, -0.0057339394, 0.03800941, -0.018755553, 0.0502455, 0.02909533, 0.0091493875, -0.027780365, -0.01339188, -0.004401672, 0.009530036, 0.04434892, 0.009066338, 0.032417346, -0.014395406, -0.04368452, -0.02718517, -0.031669892, 0.010505877, -0.06494543, 0.08221991, 0.03731732, -0.015765738, -0.03142074, 0.029289113, 0.012035389, 0.028209459, 0.028763128, -0.050577704, 0.013329592, 0.035683997, -0.0155581115, -0.01569653, 0.022672765, 0.02502586, 0.029399848, -0.00033112027, -0.0056958743, -0.06162341, -0.023392534, -0.05038392, -0.07878716, -0.017634371, -0.0266315, -0.01705302, 0.025662579, -0.0014395405, -0.005128363, -0.010609691, -0.009820712, -0.049221214, -0.021080965, -0.0074330126, 0.026811443, 0.014547665, -0.048196927, 0.036209982, -0.010235964, 0.003436211, -0.024126146, -0.027849574, -0.03172526, 0.008055891, 0.010803475, -0.005162968, 0.00043558213, -0.0124368, -0.035213377, 0.01777279, 0.040224086, -0.019503007, -0.011460958, 0.05619745, -0.03322017, 0.021413166, 0.026520766, -0.02288039, 0.052432496, 0.03346932, -0.01944764, 0.03939358, -0.0044708806, 0.034465924, -0.0057650832, 0.06688327, 0.01267903, 0.0034414018, 0.004349766, -0.00892792, -0.0046750465, 0.015668845, 0.011737793, -0.038120143, 0.0073084366, 0.045954563, 0.013288067, -0.056640387, 0.005955407, -0.03457666, -0.052100297, -0.0015269165, -0.015571954, 0.022492822, 0.037455738, 0.033690788, -0.058855064, 0.0006951147, -0.024928967, -0.0017925048, -0.0016229436, -0.05187883, 0.02512275, 0.048446078, -0.017828157, 0.004585075, 0.022700448, 0.007183861, 0.039587367, 0.00012511632, -0.0006384501, 0.00956464, 0.015890313, -0.0029361784, -0.0065575223, 0.010734267, 0.011170281, -0.010132151, -0.029039962, 0.016845394, 0.04122069, 0.024596766, -0.0013089092, -0.0366806, -0.0021264367, -0.031226957, -0.013910945, 0.028057199, 0.04479186, -0.020347353, 0.012845132, 0.0073153577, -0.010159834, 0.013301909, -0.012852052, -0.04598225, 0.07131263, -0.016125623, 0.035213377, -0.028126407, -0.0016091019, -0.0036611392, -0.020582661, 0.041525207, 0.021080965, 0.024126146, -0.010595849, -0.0029379085, -0.05110369, 0.0015139399, 0.013530297, -0.029455215, -0.0119177345, -0.005727018, -0.024029255, -0.0010320744, 0.01259598, 0.052266397, -0.006121508, 0.008727214, 0.025081227, -0.029039962, 0.021676159, 0.0108726835, -0.024375297, -0.013731003, -0.049719516, 0.03596083, 0.021897627, -0.010402065, 0.016250199, 0.016374774, -0.0023876994, 0.03274955, -0.022741973, -0.008983287, -0.015585795, -0.021703843, 0.007446854, 0.011370987, 0.026036305, 0.0008443459, -0.035628628, 0.034327507, 0.021634635, -0.049691834, 0.026506925, -0.048252292, 0.050273187, 0.007398408, -0.04191278, -0.033386268, -0.036320716, -0.024375297, -0.026271615, 0.05301385, 0.03457666, -0.007007379, 0.011107993, -0.03546253, -0.011931577, -0.0017527099, 0.026673026, -0.021897627, 0.04598225, 0.015239752, -0.005515932, 0.006211479, 0.0064537097, -0.022008361, 0.04041787, -0.041580576, 0.021150174, -0.034465924, -0.00019410872, -0.008083574, 0.026022464, -0.024804391, 0.029510582, -0.011703188, -0.016208673, -0.011737793, 0.025012018, -0.023157224, -0.033746153, 0.029981202, -0.035822414, 0.005325608, 0.04409977, -0.018783236, -0.016208673, 0.02678376, 0.03117159, -0.0924628, 0.008734136, -0.012769002, 0.007848265, -0.0057166372, -0.024859758, 0.05279238, 0.00086597365, 0.03756647, -0.065332994, -0.014409248, 0.013654873, -0.06140194, -0.018104991, -0.030590238, -0.05046697, -0.028181775, 0.014866025, -0.0051698885, 0.038701493, -0.025205802, 0.037760258, -0.013862499, -0.04194046, 0.009218596, 0.02710212, 0.030479504, 0.05780309, -0.033856887, -0.06472396, 0.025399586, -0.013128887, -0.013211938, -0.029039962, 0.044847224, -0.030119618, 0.010049101, -0.0425495, 0.012056152, 0.0069104866, -0.03319248, 0.043961354, -0.016610084, 0.023614002, -0.041109957, -0.023475586, 0.02686681, -0.01840951, -0.058246028, -0.050854538, 0.03524106, 0.0027008688, 0.002273505, 0.010180597, 0.015045967, -0.04736642, 0.010630453, 0.038646128, -0.06721547, -0.015004442, -0.033773836, -0.04988562, 0.02256203, 0.007055825, 0.035767045, -0.01618099, -0.008028207, -0.02567642, 0.023973888, -0.031503793, -0.029039962, -0.050854538, 0.013094283, -0.015212068, 0.07452391, 0.007869027, -0.058965795, -0.0566127, 0.0027545055, 0.050356235, 0.03045182, -0.05666807, -0.061125107, 0.0013737923, -0.003834161, 0.03939358, -0.0027043293, 0.015419695, 0.011253332, 0.018852444, 0.03083939, -0.029593632, -0.0024274944, 0.0052356366, -0.06837818, 0.0497472, -0.002256203, 0.010658137, -0.0019516848, 0.008318883, 0.015004442, -0.02773884, -0.0040590893, 0.0038791467, -0.031282324, -0.041968144, 0.036043882, -0.030147301, 0.00693471, -0.015904155, -0.00932933, 0.02710212, 0.022506664, 0.06162341, 0.04465344, 0.035905465, 0.0039241323, -0.04326927, -0.018464876, 0.017745106, 0.007993603, -0.01427083, -0.02296344, 0.012872815, -0.020582661, -0.027946465, -0.05547768, -0.033441637, 0.04169131, 0.06494543, -0.0100006545, 0.025884047, -0.0130596785, -0.012637505, -0.035739362, 0.054010455, -0.027032912, 0.025095068, 0.05957483, 0.048584495, 0.022672765, 0.053346053, -0.026354667, -0.05317995, -0.024458349, 0.037178904, -0.0041905856, -0.014284672, 0.012270699, 0.0363484, -0.031199273, -0.030424137, -0.016637767, 0.009696136, 0.02854166, -0.027171329, -0.0065955874, -0.017468272, 0.020707237, 0.0037303478, -0.0011056087, 0.014866025, -0.0016411109, 0.045096375, 0.0122084115, -0.05099296, 0.039919566, 0.08426849, -0.011758555, -0.02909533, -0.005460565, -0.0041802046, -0.05038392, -0.010229043, 0.05135284, -0.031974413, 0.010789634, 0.009592324, 0.051518943, 0.04869523, 0.04567773, -0.03061792, 0.0146860825, -0.02040272, -0.028707761, 0.026133198, 0.07535441, 0.032334294, 0.030147301, -0.05531158, -0.011004181, 0.020001309, 0.051629677, -0.03848003, -0.08288432, 0.008658006, -0.0064467886, -0.008270438, -0.06123584, -0.049055114, 0.0052183345, -0.0029950056, -0.016001048, -0.024043096, 0.033524685, 0.015599636, -0.039227482, -0.008090495, -0.07701542, 0.0072184657, -0.025994781, -0.0083742505, -0.017869681, -0.04249413, -0.00013246974, 0.0052183345, -0.015156701, 0.02661766, 0.016485509, -0.0011756825, -0.013564901, 0.0021264367, 0.0055055507, -0.0017717422, -0.04257718, 0.027351271, 0.030590238, -0.0012587329, 0.042438764, -0.036625233, -0.0009291266, -0.016070256, -0.0074399333, -0.038701493, 0.014395406, -0.0002170341, 0.008976366, 0.04105459, 0.02455524, 0.00028959507, -0.0055505363, -0.037428055, 0.030922439, 0.0028756207, -0.0025382284, 0.056751117, 0.01912928, 0.05907653, -0.002159311, -0.014187779, 0.03380152, 0.03587778, 0.0044120536, -0.0030434518, -0.0025762932, 0.013468009, 0.014229305, -0.06306295, 0.03380152, 0.03712354, -0.03418909, 0.029455215, 0.030507186, -0.008111257, -0.018755553, -0.0040694703, -0.012810527, 0.023614002, -0.005810069, -0.044985645, 0.010429748, 0.012955865, -0.028029516, -0.006571364, -0.035268743, -0.041109957, 0.0033566211, -0.05013477, 0.008118179, -0.01921233, -0.019724473, 0.045400895, 0.0366806, 0.030396452, -0.003626535, 0.0000038558155, -0.013170412, 0.021413166, -0.05005172, -0.036293034, -0.009613086, -0.018644819, -0.056086715, -0.06655107, 0.0049034352, 0.014921391, 0.011004181, -0.008706452, -0.009557719, -0.06466859, 0.0071146525, 0.008339646, -0.019766, 0.00574086, -0.046895802, 0.03596083, -0.013384959, -0.012506009, -0.0047788597, 0.043822937, 0.03665292, -0.02375242, 0.00789671, 0.009218596, 0.04894438, -0.019060072, -0.023489427, -0.043103166, 0.05780309, 0.03529643, -0.0028479372, 0.006491774, 0.037870992, 0.029372165, 0.000302788, 0.001371197, 0.05730479, -0.0024274944, -0.0366806, 0.02535806, 0.07795666, -0.015281277, -0.005093759, -0.028292509, -0.021828419, 0.0023790484, 0.0032562686, 0.010152914, -0.0031040094, -0.004910356, -0.0247075, 0.0025243866, -0.00043298682, 0.03706817, -0.030202668, -0.029510582, 0.019156963, -0.013502614, 0.02400157, 0.018603293, 0.010671979, 0.040307134, -0.019793684, 0.05046697, -0.04033482, 0.012651347, 0.010588928, 0.001147999, 0.027808048, 0.034881175, -0.0147829745, -0.004695809, -0.030064251, -0.057027955, -0.046037614, 0.044598073, 0.007246149, -0.038784545, 0.032500397, -0.03261113, -0.049940985, -0.075852714, 0.02175921, -0.02989815, 0.024624448, -0.0025555305, -0.03770489, -0.03261113, 0.041995827, 0.0008088765, -0.008395013, 0.04800314, 0.03955968, -0.0011263713, 0.085541934, -0.022866549, 0.033303216, 0.024665974, 0.016167147, -0.022022203, 0.0013504344, -0.031476106, -0.02574563, 0.0013919596, -0.061734144, -0.06522226, 0.010471273, 0.02351711, 0.005211414, -0.007952077, -0.011938497, 0.039282847, 0.009758424, -0.024389138, 0.045096375, 0.026423875, -0.014603032, -0.010637375, -0.0075783506, -0.03665292, -0.014616873, -0.039642733, 0.043795254, -0.03665292, 0.013675636, -0.01347493, -0.011107993, -0.021385483, 0.026174724, 0.0045746937, 0.015765738, 0.014575348, 0.0146860825, 0.018644819, -0.011405591, -0.02263124, -0.04886133, 0.028347876, 0.0067409254, -0.019433798, 0.073029004, 0.04919353, -0.009287805, -0.023032648, 0.00088760135, -0.027434321, 0.013461089, -0.008678769, 0.02678376, 0.0659974, -0.02909533, -0.061900243, -0.0048376867, 0.0012422958, 0.0042736363, -0.029372165, -0.025884047, -0.025441112, -0.06904258, 0.027434321, -0.015655003, 0.019198488, -0.019586056, -0.08161088, -0.002647232, -0.036403768, 0.2241254, 0.04805851, 0.0070662065, 0.0215239, 0.059021164, 0.04512406, 0.029039962, 0.01187621, -0.018008098, 0.0062806876, 0.02845861, 0.039448947, 0.012388354, 0.00026731854, -0.0045227874, 0.030202668, -0.034299824, 0.012644426, 0.015239752, -0.036209982, -0.06289685, 0.021427007, 0.003316826, 0.023793945, 0.0043566865, 0.011578612, -0.036929753, -0.027932623, -0.022271354, -0.006256465, 0.004720032, -0.045234796, 0.06328442, 0.0014075316, -0.04559468, 0.026811443, 0.023614002, -0.038369294, -0.019987468, 0.042881697, 0.021108648, -0.048030823, -0.019766, -0.021357799, 0.020873338, 0.016333248, -0.024582924, -0.015488903, 0.014866025, -0.06887648, 0.038147826, -0.041469842, 0.0071492568, -0.029704366, -0.057249423, -0.01690076, -0.009100942, -0.0020035913, 0.01818804, 0.0029188762, 0.05442571, 0.030728655, -0.014229305, 0.028873863, 0.022589713, 0.020541137, -0.003012308, 0.015322802, -0.015475061, -0.021219382, 0.014769132, -0.03848003, -0.0017734724, 0.024195354, 0.003913751, 0.026908336, -0.015281277, 0.032389663, -0.033995304, -0.011827764, -0.014014758, -0.020028992, 0.006633652, 0.03883991, 0.013904024, 0.024084622, -0.055200845, -0.013786369, -0.013654873, 0.0050003272, -0.009599244, 0.041165322, -0.0146860825, -0.025538003, 0.014187779 ]
Ready to try your hand at object detection? Check out our complete image segmentation guide to learn how to finetune SegFormer and use it for inference! Depth estimation GLPN, Global-Local Path Network, is a Transformer for depth estimation that combines a SegFormer encoder with a lightweight decoder.
[ 0.016153391, 0.0204367, -0.028219445, -0.0656774, -0.0020069259, -0.012807932, -0.02211643, -0.014711625, -0.005011191, 0.053555354, 0.040789414, -0.0047662305, 0.01585944, -0.04465279, 0.023894142, 0.06338177, -0.029955164, -0.05302344, -0.017427186, -0.026525717, 0.00030248243, -0.015915431, -0.057278752, -0.03300667, -0.020716656, 0.004255313, 0.029367259, 0.011590129, 0.066125326, 0.028219445, -0.0039858567, -0.014935588, 0.017511172, -0.035890207, -0.008335655, -0.029339263, 0.021822477, -0.011576131, -0.030487077, -0.036954034, 0.05526308, -0.00420982, 0.011674115, -0.044092882, -0.039025698, -0.01851901, -0.0047522327, -0.017427186, -0.042973064, -0.020366712, -0.02087063, -0.012940911, -0.048040245, -0.021500528, 0.004279809, -0.003306966, 0.005364634, -0.02513994, 0.0023708672, -0.009406481, 0.00526315, 0.02211643, 0.003698903, -0.040649436, -0.009609449, 0.005854555, -0.041489303, -0.055655014, -0.0030480078, -0.0022291401, 0.0044617797, 0.0012702949, 0.03275471, -0.036954034, -0.013955747, -0.0035641745, -0.03029111, -0.0010139613, 0.0042903074, 0.023320235, -0.012143039, 0.021486532, -0.03121496, -0.012464987, -0.056214925, -0.020002771, 0.0075657787, -0.025559874, 0.02050669, -0.011576131, -0.00046236286, 0.03796187, 0.023390224, 0.06338177, 0.013164874, 0.02781351, -0.002631575, 0.048404187, 0.008384646, -0.0008814202, 0.012492983, 0.084770314, -0.028597383, 0.044372834, -0.019764809, 0.00086086104, 0.006047024, 0.0073068202, -0.041545294, -0.006176503, 0.01994678, -0.015159553, 0.030627055, -0.019778807, 0.028947327, 0.024566034, -0.009119527, -0.00057696935, -0.027561551, 0.018770969, -0.03938964, -0.015173551, -0.015089564, -0.0038738747, 0.02117858, -0.023866147, 0.031326942, 0.027155615, -0.03742996, 0.018980935, 0.040117525, -0.024132105, -0.0146136405, 0.067525096, 0.003845879, -0.013178872, -0.03826982, 0.017007254, 0.021528523, -0.0077407504, 0.00027907995, -0.038997702, 0.0077477493, 0.062037986, -0.017889112, 0.016755294, -0.006284985, -0.04762031, -0.02631575, 0.00057390734, 0.012094048, 0.0014190209, 0.008258667, 0.0075237853, -0.0084126415, -0.02651172, -0.033454597, 0.0040523456, -0.0144176725, 0.00042846208, 0.019722816, -0.013514818, -0.010512303, 0.067469105, -0.02309627, 0.046976417, -0.047592316, -0.0121850325, -0.013360843, -0.039221667, 0.0028940327, 0.0010699523, -0.010988226, 0.00811169, -0.0038633763, -0.00033135276, 0.045240697, -0.0118000945, 0.022746328, 0.02316626, 0.026665695, 0.0054906136, -0.0065929354, 0.0576147, -0.03233478, -0.017735137, 0.029619219, -0.0030270114, -0.018057086, 0.007551781, 0.056074947, 0.054983124, -0.031606898, -0.0090495385, -0.03628214, 0.017315205, -0.009077534, -0.063717715, 0.024622025, -0.04638851, -0.00065876864, 0.01833704, 0.015229541, -0.0025440892, -0.033846535, -0.021542521, 0.03225079, 0.054731164, -0.013668793, 0.024789998, 0.008454635, -0.028051471, -0.022872306, 0.031886853, 0.028667372, -0.0035239311, 0.00045273942, 0.0121220425, 0.01667131, 0.050447855, 0.02068866, 0.023726169, 0.035974193, 0.021794481, -0.04423286, -0.016251376, 0.037513945, 0.045044728, 0.029255277, -0.0063199797, -0.013297853, 0.023740167, 0.0050636823, 0.0029570225, 0.015901433, -0.008503627, 0.020730654, 0.011205191, -0.008531623, 0.042581126, -0.014697627, 0.0060855174, 0.030963002, 0.023936136, 0.031102978, -0.0070268656, -0.026651697, -0.0052491524, -0.062037986, 0.015747458, -0.02439806, 0.0712205, -0.0041048373, -0.031354938, -0.039669596, 0.0045877593, -0.023054278, 0.050839793, -0.015509496, -0.028079467, 0.03723399, -0.024244085, -0.0055885976, 0.009581453, 0.040649436, 0.028695367, 0.017119236, 0.0137807755, -0.0075097876, -0.065621406, -0.015621478, -0.033986513, -0.05363934, -0.013647797, -0.024817994, -0.0427491, 0.023516204, 0.0058055627, 0.02495797, -0.023250246, -0.010372326, 0.014326687, -0.061366092, 0.02347421, 0.04602457, 0.02880735, -0.031858858, 0.040677432, 0.005053184, 0.0055361064, -0.0021189079, -0.008573616, -0.004664747, -0.024188096, -0.023866147, -0.029227281, 0.0033857033, -0.012954908, -0.024859987, -0.0020646667, -0.036618087, -0.03197084, -0.028135458, 0.010183356, -0.02508395, 0.017805126, -0.007754748, -0.01851901, -0.0064949514, 0.07166843, -0.023124266, 0.0037024023, 0.0066314293, 0.044064887, -0.024762003, 0.08700995, 0.025321912, 0.01790311, -0.03264273, -0.017203223, -0.002082164, -0.012304014, -0.0053051435, 0.0021381548, -0.03239077, 0.055599023, 0.017539168, -0.054143257, 0.011072213, -0.015915431, -0.01728721, 0.015131557, -0.021836475, 0.01443167, 0.03748595, 0.036898043, -0.03177487, 0.019246893, -0.01752517, -0.012996902, 0.008713593, -0.06618132, 0.0038738747, 0.037541937, 0.0041398318, 0.047424342, 0.032110814, -0.03703802, 0.03510633, 0.009896402, 0.010183356, 0.005711078, 0.013962746, -0.044120878, 0.021906463, 0.004906208, -0.040733423, 0.008125688, 0.0075727776, -0.0008184304, 0.09143324, 0.01634936, -0.01140116, -0.0032667227, -0.023880145, -0.005791565, 0.016069405, 0.056802828, 0.04062144, -0.04174126, -0.0038703752, 0.016111398, -0.040845405, 0.060246274, 0.035694238, -0.03801786, 0.031550907, 0.023726169, 0.03191485, -0.04669646, 0.012478985, 0.017189225, -0.0032754713, 0.0144176725, 0.04781628, 0.008832574, -0.04638851, -0.012555973, -0.053863306, -0.009532461, 0.014907593, 0.01511756, -0.064557575, -0.032474756, -0.020800643, -0.019274889, -0.02255036, 0.038801737, 0.024076113, 0.029815186, 0.037457954, 0.004857216, 0.010169358, 0.061646048, -0.0297312, 0.0017917107, -0.017805126, 0.03040309, 0.00353093, -0.020226734, 0.0005139795, -0.0069708745, -0.010351329, 0.006414464, 0.020100756, 0.01933088, -0.005294645, -0.03692604, -0.018491015, 0.04484876, -0.018840957, -0.02025473, -0.03387453, 0.03334262, 0.016531331, -0.07771546, 0.023950133, -0.038073853, 0.009938396, 0.02495797, -0.016083403, -0.010673277, 0.015005577, -0.008615609, 0.0008026829, 0.072732255, 0.004885211, 0.0015135057, -0.004850217, -0.024803996, -0.010680276, -0.0067049176, -0.013724784, 0.005501112, 0.024440054, 0.031298947, -0.0028870339, 0.005032188, -0.006323479, -0.0032107315, 0.027351584, -0.027435571, 0.019988773, -0.015957424, -0.008776583, -0.02812146, 0.011695112, 0.007971713, 0.036198154, 0.03213881, -0.02211643, -0.010316335, -0.0099453945, -0.029087303, -0.07603572, 0.016979259, 0.021836475, 0.018812962, 0.033594575, 0.005693581, 0.023068275, 0.010855247, 0.011751103, -0.0712205, -0.007985711, -0.03146692, 0.009189516, 0.020100756, -0.0148656, 0.022984289, -0.0015948676, 0.032530747, 0.011618124, -0.046752453, -0.034966353, -0.02656771, 0.002180148, 0.022312397, -0.0001317756, -0.016587323, 0.025615864, -0.0073418147, 0.04249714, -0.019540844, 0.013514818, -0.027967485, -0.052491527, 0.018686984, 0.06601334, -0.0001458827, 0.06075019, -0.0036429118, -0.02068866, -0.0060050306, -0.06360573, 0.015229541, -0.010974228, 0.04157329, -0.02861138, -0.007873729, -0.019862793, 0.013339846, -0.033510588, 0.001870448, -0.014641636, 0.006386469, -0.008461634, -0.037821893, -0.026259761, 0.038045857, -0.018910946, -0.06685321, -0.035946198, 0.030179128, -0.023250246, 0.0427491, -0.013920752, -0.0056515876, -0.019722816, -0.006669923, 0.016769292, -0.043896914, -0.014879597, -0.025629861, -0.0110302195, -0.0013709037, 0.051427696, -0.0022956294, -0.05120373, -0.019456858, -0.047452338, -0.040397476, -0.0576147, -0.05134371, 0.0018372034, -0.016937265, -0.0026140779, 0.02681967, 0.009399482, -0.056214925, 0.024831992, 0.012702949, 0.041713264, 0.025881821, -0.0297312, -0.037317976, 0.045044728, 0.008335655, 0.007376809, -0.023488209, -0.02712762, 0.031354938, -0.029759195, 0.06646127, -0.01065228, 0.0075027887, 0.031242955, -0.039221667, 0.012227026, -0.07396406, 0.026917655, -0.040677432, 0.030571064, 0.021024605, 0.022018446, -0.0063094813, -0.040397476, -0.080906935, -0.021080596, 0.058622535, -0.031858858, 0.0008044326, -0.0053891297, 0.012772938, 0.025475888, -0.036954034, 0.024622025, 0.019190902, 0.032110814, 0.01417971, -0.0077337516, -0.009595451, 0.035722233, -0.0020209237, 0.003667408, -0.031130973, -0.02763154, -0.016209383, -0.041349325, -0.059854336, 0.004174826, 0.018602997, 0.038241826, -0.059854336, 0.022256406, -0.021766486, -0.055766996, -0.013045894, 0.04470878, 0.009469471, 0.010547297, 0.011821091, -0.013402836, 0.02582583, 0.09423278, -0.022928298, -0.030935006, -0.023964131, 0.049020085, -0.022242408, -0.025643859, 0.002712062, -0.002582583, -0.055179093, -0.023054278, 0.0064739548, -0.012597966, -0.013612802, -0.023894142, 0.011394161, -0.013787774, -0.0034714395, 0.0016657311, 0.035526264, 0.029619219, 0.0059175445, 0.00027448693, 0.019092917, -0.052911457, 0.051147744, 0.040229507, 0.012604965, -0.01839303, 0.017483177, 0.012234025, -0.03412649, 0.0023498705, 0.00018065833, -0.0030690045, 0.018113075, 0.0513997, 0.028415412, 0.089081615, -0.034658406, -0.00083855214, -0.024915976, 0.00042518135, -0.066629246, 0.008965553, 0.049412023, 0.027155615, 0.05195961, 0.019050924, 0.0029342764, 0.0016114898, 0.027729522, -0.025601866, -0.07530784, 0.03387453, -0.01375278, 0.0070583606, -0.052127585, 0.022438377, 0.052127585, 0.0029062808, -0.025545876, -0.035974193, 0.017917108, -0.0018214559, 0.014361681, 0.030767033, -0.03600219, -0.019680822, -0.0066349288, -0.04731236, 0.0063514747, -0.05190362, 0.03457442, 0.001244924, -0.018896949, -0.010897241, -0.015481501, 0.011996063, -0.031074982, 0.020660665, 0.0077267527, -0.020898625, -0.039557613, 0.002075165, -0.03250275, 0.032782707, 0.031830862, -0.036814056, -0.033958517, 0.0038038858, 0.0027907994, 0.024062116, -0.025797835, 0.0037443954, 0.009035542, -0.035834216, 0.013066891, 0.010393322, -0.066573255, 0.00024146102, 0.004626253, -0.030459082, -0.008678599, 0.04353297, 0.02490198, 0.07670762, 0.017945103, 0.036870047, 0.010302337, -0.01622338, 0.012849925, 0.031606898, 0.029563228, -0.0006373346, -0.014921591, -0.0021731493, 0.0008464258, 0.01839303, -0.04874013, 0.050587833, -0.0055116103, -0.03003915, -0.029815186, -0.015565487, 0.033762548, 0.055459045, -0.027463567, -0.011268181, -0.039221667, 0.004608756, -0.04571662, -0.029283272, -0.061981995, -0.047788285, 0.05111975, -0.057446726, -0.001096198, -0.021668501, -0.005984034, 0.005816061, 0.022522364, 0.012388, 0.038297817, 0.045380674, -0.013094886, 0.03362257, -0.051567674, 0.012443991, -0.010848248, -0.00067539094, -0.03796187, -0.029703204, 0.0040768418, 0.04280509, -0.040789414, -0.04126534, -0.03600219, -0.01728721, 0.037569933, 0.04157329, -0.021850472, 0.033454597, -0.07631568, 0.01375278, -0.025321912, -0.0048642145, 0.014767616, 0.027645536, -0.0054486203, 0.02025473, -0.003506434, 0.01269595, 0.006613932, 0.008076696, 0.040397476, 0.009931397, 0.042217184, -0.00613101, 0.01393475, -0.0055361064, -0.0031687384, 0.012367004, -0.0013184121, 0.011604127, 0.04781628, 0.028177451, -0.009406481, 0.028093465, 0.031746875, 0.024356067, -0.003691904, 0.010295338, -0.024132105, 0.04689243, 0.017399192, 0.026721686, -0.012779937, 0.027393578, -0.017007254, 0.0021469034, -0.0054171253, 0.010610287, -0.021416543, -0.06685321, -0.004185324, 0.0026158276, 0.030683046, 0.030375095, 0.008629607, -0.019554842, 0.030767033, -0.0033857033, 0.010197354, 0.02551788, -0.0260218, 0.012611964, 0.019106915, 0.006799402, 0.0037373966, -0.0050216895, 0.04168527, -0.020534685, -0.01499158, 0.010414318, -0.027925491, -0.0080906935, 0.01821106, -0.036702074, -0.035386287, -0.071836405, 0.03860577, -0.063157804, -0.027141618, 0.027603544, -0.054423213, -0.05767069, 0.036954034, -0.040033538, -0.008041701, 0.0029167791, 0.050391864, 0.008461634, 0.07698757, 0.011079212, 0.015663471, 0.033902526, 0.012730945, -0.042917073, 0.0012702949, -0.0041888235, -0.031634893, 0.016503336, -0.066069335, -0.036394123, 0.02304028, 0.03667408, -0.010834251, -0.061926004, 0.011674115, -0.004192323, -0.040453468, 0.004370794, 0.03815784, 0.004993694, -0.013031896, -0.004962199, -0.016055407, -0.024748005, -0.047480334, -0.063717715, 0.0421052, 0.011513141, -0.018854955, 0.014571647, -0.041153356, -0.029535232, 0.006981373, 0.0053191413, 0.0086716, 0.037793897, 0.03969759, 0.04112536, 0.01430569, -0.027323589, 0.002272883, 0.05302344, 0.0284854, 0.004185324, 0.08029104, 0.093504906, 0.00018372035, -0.010428316, -0.0060785185, 0.017357199, -0.029395254, 0.0014890096, 0.01683928, 0.022256406, -0.063661724, -0.039417636, -0.022872306, 0.014767616, 0.0076847593, -0.037457954, -0.03239077, 0.041153356, -0.06276587, 0.006452958, -0.019484853, 0.02092662, -0.017427186, -0.03023512, -0.007383808, -0.05165166, 0.23001087, 0.07861131, 0.04974797, 0.015285532, 0.039109685, 0.06724514, 0.02638574, -0.033594575, 0.006774906, -0.013549812, 0.0046752454, -0.018533008, 0.012415996, 0.0055291075, 0.0061905007, 0.016013416, -0.037317976, 0.011443152, -0.001258047, -0.04179725, -0.042469144, -0.0020856634, -0.041349325, 0.014046732, -0.007873729, 0.012192031, 0.00017289397, 0.00067057926, -0.028373418, -0.001653483, -0.040481463, -0.005438122, 0.060918164, 0.0122480225, -0.004143331, 0.03233478, -0.017231219, -0.069484785, -0.015887436, -0.009455473, 0.020884627, -0.008727591, 0.018449022, -0.04076142, -0.037261985, 0.053555354, 0.007691758, -0.022536362, 0.061981995, -0.050643824, 0.01839303, -0.07021266, 0.027141618, 0.011681114, -0.0094974665, 0.032782707, -0.062709875, -0.0068273977, 0.056466885, 0.034742393, 0.011940072, 0.059406407, -0.0056725843, -0.02199045, -0.0137177855, -0.004370794, -0.034014508, 0.06522947, -0.020786645, -0.040005542, 0.014473664, -0.033230636, 0.0408734, 0.0029412752, 0.047060404, 0.04969198, -0.01864499, 0.038297817, -0.023138264, -0.03535829, -0.00062858604, -0.020646667, 0.00953946, -0.023894142, 0.040033538, 0.027365582, -0.029759195, -0.003257974, -0.039865565, 0.052687492, 0.02917129, 0.05543105, 0.010274341, 0.0017129735, -0.01232501 ]
There are three main components to Mask2Former: A Swin backbone accepts an image and creates a low-resolution image feature map from 3 consecutive 3x3 convolutions. The feature map is passed to a pixel decoder which gradually upsamples the low-resolution features into high-resolution per-pixel embeddings. The pixel decoder actually generates multi-scale features (contains both low- and high-resolution features) with resolutions 1/32, 1/16, and 1/8th of the original image.
[ 0.028229047, 0.010690248, -0.013343354, -0.036506735, 0.02766305, -0.013456552, -0.0028989604, 0.0039796587, 0.010683172, 0.016442182, 0.033733357, 0.010025202, 0.021720093, -0.024705721, -0.010803447, 0.02479062, -0.014072074, -0.06225955, -0.025002869, 0.0020888785, -0.0017422062, -0.01316648, -0.079352625, -0.028129997, -0.027026305, 0.033450358, 0.06214635, 0.011164269, 0.0825788, 0.033563558, 0.007322572, 0.021210697, 0.005592747, -0.046892762, -0.011348218, 0.008192791, 0.016923277, -0.009537031, -0.023403931, -0.04573247, 0.03200707, 0.0071775354, 0.03585584, -0.071372084, -0.058806974, 0.008645588, 0.0150271915, -0.004333406, -0.0057130214, -0.03596904, -0.011157194, -0.014998891, -0.015366789, -0.024281224, 0.014128673, -0.00620473, 0.01043555, 0.012982531, -0.02065885, 0.007343797, 0.041034702, 0.020149454, 0.005033826, -0.04018571, 0.007761219, 0.020333404, -0.03410125, -0.04259119, 0.026417859, 0.0016183945, -0.03766703, -0.024408573, -0.045987166, -0.01654123, -0.017361924, -0.018380716, -0.03212027, 0.027450802, -0.019668357, 0.032714564, 0.026021661, 0.020404153, -0.008433339, -0.012416535, -0.024719872, -0.0007769178, 0.017093075, -0.026898956, -0.0060667684, -0.028780892, -0.024606671, 0.03577094, -0.0016882597, 0.058637176, -0.0052991365, 0.016484631, -0.027408352, 0.046496563, 0.01802697, 0.022356838, 0.011235019, 0.09757769, 0.0040680957, 0.060052164, -0.017687373, -0.015621487, -0.003526862, 0.017687373, -0.01942781, 0.0011824009, 0.014616844, -0.0024284762, 0.010025202, -0.009720979, 0.010577048, 0.025823563, 0.0058439076, -0.010117177, -0.050118938, -0.002295821, -0.033874854, -0.022979435, -0.03200707, -0.004071633, 0.009572405, -0.013272604, -0.014758343, 0.005762546, -0.022668136, 0.0021631657, 0.0056210468, -0.01914481, -0.010117177, 0.04312889, -0.01243776, 0.003951359, -0.008228165, 0.021224847, -0.00006892548, -0.008079591, 0.019824008, -0.039336715, -0.008546538, 0.050317038, -0.007952242, 0.00092858705, -0.001396418, -0.035091747, -0.019809857, -0.016244082, 0.0054087983, 0.019074062, 0.019526858, -0.0035038684, -0.022554938, -0.040836606, -0.03410125, 0.011404818, -0.0019933667, 0.047373857, 0.05651469, 0.012876407, -0.025200969, 0.0552129, -0.069843896, 0.036082238, -0.032176867, -0.018960863, -0.019767407, -0.006434666, 0.022583237, -0.005359274, 0.011977889, -0.015352639, -0.000501437, 0.030365681, 0.019923056, 0.0047862027, -0.0011717884, 0.009607781, 0.024182174, -0.033252258, -0.02469157, 0.021168247, -0.009657305, -0.036478437, -0.0052672992, -0.018621266, -0.025059469, 0.020007955, 0.040440407, 0.04876055, -0.035346445, 0.03025248, -0.02896484, 0.009720979, -0.01037895, -0.018295817, 0.0052955993, -0.034525752, -0.011185494, 0.011235019, -0.005115188, 0.0024143262, -0.06373114, 0.02080035, 0.012664159, 0.06854211, -0.058863573, 0.018536367, 0.0015706386, -0.028497893, -0.01918726, 0.0077753686, 0.039053716, -0.03062038, 0.009805879, 0.023234133, -0.0034702625, -0.0040751705, 0.016852528, 0.015423388, 0.015522438, 0.022300238, -0.03299756, -0.0062896297, 0.011553392, 0.031271275, 0.028681843, 0.039251816, -0.0041848323, 0.028186597, -0.013965949, 0.024125576, -0.0012973688, 0.027351752, 0.00090028724, 0.043808084, 0.006770726, -0.004591642, 0.0050798133, 0.008426264, 0.02337563, 0.038516022, 0.012642934, -0.019456109, 0.001823568, -0.012359936, -0.03203537, -0.010824672, -0.0021030286, 0.0691647, 0.037808526, 0.041827098, -0.042534593, -0.025993362, 0.001938536, 0.0553827, -0.034214452, -0.047939852, -0.010272826, 0.018607115, 0.015564888, -0.009070084, 0.0075277453, 0.005649347, -0.004648241, 0.010959095, -0.022922834, -0.08767276, -0.06565552, -0.0551846, -0.028469594, -0.013407028, -0.03718593, -0.038912218, 0.043977883, 0.013803225, -0.0016979877, -0.0019261548, -0.013442403, 0.04559097, -0.024719872, 0.00076099916, 0.015862035, 0.0124023855, -0.025045319, 0.022951134, 0.015352639, 0.029488387, 0.04448728, -0.028894091, -0.041176204, -0.015550737, 0.011206719, 0.0049701515, -0.007923943, 0.007032499, -0.003919522, -0.020913549, -0.050288737, -0.042223293, -0.036082238, -0.026361259, -0.036478437, 0.030507179, 0.0010665485, -0.0416007, -0.017489273, 0.04312889, -0.056175094, 0.00006759893, 0.017687373, 0.046638064, -0.03582754, 0.06701391, 0.043242086, 0.02503117, -0.0006084456, -0.034808747, -0.023403931, 0.03475215, 0.009246958, -0.041911997, -0.021479545, 0.03282776, 0.025979212, -0.055835497, -0.0043440186, -0.059259772, -0.05402431, -0.007747069, -0.040638506, 0.05139243, 0.030054383, 0.03619544, -0.028695993, 0.02346053, 0.012055713, 0.028285645, 0.0276206, -0.06424054, 0.029658185, 0.016102584, -0.010739773, 0.049439743, 0.054760102, -0.051562227, 0.03053548, 0.01312403, 0.052920617, 0.036619935, 0.029743085, -0.04021401, -0.02343223, -0.027564, -0.038261324, 0.049213342, 0.0070041995, -0.038431123, 0.07312667, 0.009975678, 0.006381604, -0.019654207, -0.017149676, -0.006487728, 0.04856245, 0.007725844, 0.030676978, -0.03316736, -0.02220119, 0.015069641, -0.01935706, 0.033733357, -0.015663937, -0.06622152, 0.028540343, -0.0031306648, 0.04024231, -0.04683616, -0.009459207, 0.025144368, -0.0065655527, -0.004853415, 0.045081574, -0.0058191456, -0.032516465, -0.0044253804, -0.03446915, -0.0036895857, 0.008369665, -0.052835718, -0.036619935, 0.0060950685, -0.018847663, -0.004227282, 0.037638728, 0.05942957, 0.011447268, 0.0061905803, 0.043242086, -0.007350872, 0.013654651, 0.027974349, -0.023729378, 0.013024981, -0.017800571, 0.054533705, -0.003337607, -0.01243776, -0.014730044, 0.016994027, 0.0038381598, -0.0018960863, 0.015833735, 0.037638728, -0.03718593, -0.049892537, 0.0035374744, 0.032176867, 0.004839265, 0.011942513, -0.042704392, 0.044968374, 0.049524643, -0.05410921, 0.023757678, -0.011885914, -0.0044925925, 0.018182619, -0.025300017, 0.0055149226, 0.007435771, -0.007916868, -0.014404596, 0.048703946, -0.0034278126, 0.016343132, 0.012161837, -0.013930574, -0.0038876843, -0.0069228373, -0.0061870427, 0.021168247, 0.034723848, 0.036704835, 0.033563558, 0.03483705, 0.018409017, -0.011249169, 0.03766703, -0.023177532, 0.038063224, -0.0121264625, 0.010117177, -0.018239219, 0.044883475, -0.008497014, 0.04714746, 0.012763208, -0.02774795, -0.030818477, 0.016923277, -0.031073175, -0.04584567, 0.0016148571, 0.027153654, -0.00037651992, 0.007092636, 0.01645633, -0.012041563, -0.02068715, 0.033903155, -0.061353955, 0.017602473, -0.0416856, 0.03865752, 0.007294272, -0.027238553, 0.008093742, -0.013767851, 0.025512265, 0.02487552, -0.01647048, -0.03712933, -0.038997117, 0.0036895857, 0.02763475, -0.026856506, 0.0013539683, 0.033337157, -0.05142073, 0.03461065, -0.040638506, 0.0072518224, -0.03483705, -0.02347468, 0.018960863, 0.043411884, -0.049439743, 0.07986202, 0.0012699533, 0.01243776, 0.0056033595, -0.06678752, 0.029177088, -0.033931453, 0.00010446604, -0.015932785, -0.004814503, -0.03319566, 0.010796372, -0.015734686, -0.005104576, 0.008030067, -0.043072287, -0.015041341, -0.043100588, -0.027238553, 0.04049701, -0.038346224, -0.07227768, -0.03596904, 0.006091531, -0.0276206, 0.039251816, -0.022130439, -0.019979656, -0.047741756, -0.028129997, 0.00072871975, -0.044911776, -0.0052036247, -0.041713897, -0.0058792825, -0.0077187694, 0.033506956, 0.00012381161, -0.0024833072, -0.027068755, -0.058863573, -0.031129776, -0.051703725, -0.051081132, 0.0064240536, -0.021904042, -0.010676098, 0.031327873, -0.0043723183, -0.06469333, 0.008758787, 0.0069299126, 0.06373114, 0.03186557, -0.03302586, -0.013067431, 0.027266853, -0.01651293, 0.022399288, 0.021592744, -0.026870655, 0.014206497, -0.013987174, 0.054958202, -0.017121376, 0.020361703, 0.034214452, -0.04938314, 0.022993583, -0.026460309, 0.006328542, -0.023644479, -0.003553393, 0.03984611, 0.000743754, -0.034271054, -0.02633296, -0.03180897, -0.04723236, 0.019541008, -0.008624363, -0.01443997, -0.009381382, 0.012239661, 0.042081796, -0.017701522, 0.0552412, 0.041798797, 0.02486137, -0.016795928, -0.026941406, -0.033563558, 0.038912218, -0.018083569, 0.015791286, -0.036082238, -0.014956442, -0.011928364, -0.037610427, -0.07301347, -0.005829758, 0.04986424, 0.055722296, -0.019724958, 0.0069299126, -0.003284545, -0.01309573, 0.010562899, 0.013060356, -0.011567541, -0.031242974, 0.005391111, -0.01645633, 0.02215874, 0.053005517, -0.017701522, -0.0552412, -0.002449701, 0.06718371, -0.0141428225, -0.038431123, 0.017673222, 0.032261766, -0.045336273, -0.037808526, -0.012267961, -0.020856949, 0.022498338, -0.024436872, 0.01924386, 0.0087941615, -0.018621266, 0.04740216, -0.008716337, 0.01788547, -0.023135083, -0.008284765, 0.01250851, -0.060448363, 0.051788624, 0.059882365, 0.0021224846, -0.044996675, -0.024804771, 0.013682951, -0.030648679, -0.020121155, 0.01799867, 0.00011209372, 0.0063922163, 0.02626221, 0.025837714, 0.0414309, -0.019017462, 0.02626221, 0.0074852956, 0.014659294, -0.05105283, -0.00586867, 0.053033818, 0.00085164694, 0.034808747, -0.048845448, -0.0042166696, 0.010067652, 0.017022327, -0.011178419, -0.08693697, 0.022526637, -0.0413177, 0.015890336, -0.03282776, 0.0004457218, 0.0006363032, -0.0086172875, 0.009261108, -0.019258011, 0.017036477, 0.0019066987, -0.0052107, -0.007322572, -0.03483705, -0.002233915, -0.02491797, 0.0024443949, -0.0025593627, -0.046383366, -0.003364138, 0.019866457, 0.036846332, -0.0019403048, -0.0072659724, -0.0020269728, -0.015678087, 0.022823785, -0.0012177755, -0.0024673883, -0.021125797, 0.020305103, -0.06695732, 0.028625242, 0.046524864, -0.027903598, -0.037525527, -0.003944284, -0.03282776, 0.01652708, -0.023135083, 0.022781335, 0.025597164, -0.029969484, 0.031978767, 0.018267518, -0.049241643, -0.046468265, -0.0035109434, -0.018409017, -0.0017943839, 0.014730044, 0.028710142, 0.08569178, -0.017942071, 0.036506735, -0.019979656, -0.0037072732, 0.010852971, 0.016399732, 0.005935882, -0.0022179964, 0.0036931233, 0.0075914203, -0.011284543, 0.025469815, -0.059882365, 0.017277025, 0.0075560454, -0.023248281, -0.026502758, 0.03718593, 0.016088434, 0.06090116, -0.0064629656, -0.03322396, 0.0009418526, -0.013661726, 0.010661948, -0.020050405, -0.054731805, -0.011135969, 0.04010081, -0.06220295, -0.0031465834, -0.030818477, 0.02473402, 0.043864682, 0.037638728, 0.014383371, -0.011609991, 0.024168026, 0.0070289616, 0.014956442, -0.06039176, 0.016159182, -0.023007734, -0.025724513, -0.04983594, -0.03865752, 0.015536588, 0.06871191, -0.01778642, -0.039110318, -0.028427145, 0.016017685, 0.043242086, 0.014001324, -0.0018925488, 0.025186818, -0.03577094, 0.01102277, -0.012218436, -0.009310633, -0.0005120494, 0.06186335, 0.021536143, 0.01166659, 0.0015609106, 0.030224182, 0.012777357, 0.0019880605, 0.027252702, 0.04423258, 0.062089752, 0.015465838, 0.013449478, -0.01323723, 0.036846332, 0.011213794, -0.0006937872, -0.019824008, 0.024719872, -0.0018394866, -0.030592078, 0.021621043, 0.05937297, 0.029799685, -0.015182841, 0.010824672, -0.016045984, 0.03019588, 0.0080371415, -0.0005664381, -0.028695993, 0.02900729, -0.019003313, -0.0076480196, -0.017899621, 0.028752591, -0.024620822, -0.09118194, -0.00453858, 0.01934291, 0.03039398, 0.029658185, 0.019173112, 0.015380939, 0.0068803877, 0.01661198, -0.012805657, 0.039534815, -0.015932785, -0.017814722, 0.004899402, 0.03619544, -0.016229933, 0.003923059, 0.009515806, -0.03313906, -0.05801458, 0.0069193, -0.0207296, -0.010456774, 0.013116955, -0.011567541, -0.053713012, -0.05671279, 0.04038381, -0.08665397, 0.01519699, 0.04720406, -0.029375188, -0.050260436, 0.01239531, -0.024634972, 0.002907804, 0.018776914, 0.0416573, 0.013746626, 0.08806896, -0.00022175543, 0.032601364, 0.06774971, 0.013350428, -0.0063356166, -0.01309573, -0.015013041, -0.041034702, 0.032148566, -0.04414768, -0.032459866, 0.025965063, 0.039082017, -0.026318809, -0.048902046, 0.047911555, 0.024634972, -0.06254255, -0.021196546, 0.024083126, -0.00621888, -0.02754985, 0.021309746, -0.03429935, -0.01669688, -0.05648639, -0.06203315, 0.060165364, -0.00082423154, -0.013421178, -0.051732026, -0.03186557, -0.029827984, 0.014998891, -0.034016352, 0.013704176, 0.043185487, 0.03033738, 0.028427145, 0.01791377, -0.031441074, -0.0026283434, 0.08897456, 0.025894312, 0.0076763197, 0.09372892, 0.072730474, -0.00027923938, -0.009282333, 0.018904263, 0.038119823, -0.008879061, -0.005564447, 0.006240105, 0.026969705, -0.040525306, -0.049015246, -0.0103082005, 0.04731726, -0.052977215, -0.042279895, -0.059089974, 0.015847886, -0.06452353, 0.0037426478, -0.02912049, 0.04278929, -0.002295821, 0.005472473, 0.010669023, -0.042110097, 0.2363599, 0.05246782, 0.024196325, 0.042336494, 0.028016798, 0.073919065, 0.051901825, 0.019003313, 0.031044876, -0.049411442, 0.0015016579, -0.007598495, 0.013682951, -0.0006031394, 0.0115958415, 0.027266853, -0.009685605, 0.008405039, -0.020290954, -0.020375853, -0.04584567, 0.004368781, -0.0034065878, 0.02920539, -0.0016325444, 0.008574838, -0.003418969, 0.008850761, -0.020531502, -0.011341143, -0.015649786, -0.022370989, 0.050090637, -0.008546538, -0.015338489, 0.025215117, -0.0007397743, -0.02914879, -0.026856506, -0.022370989, -0.0021985404, 0.00083793927, 0.017135527, -0.014128673, 0.0037850975, 0.072334275, 0.0043970807, -0.029261988, 0.034157854, -0.03418615, 0.021253146, -0.05246782, -0.0007552508, -0.006770726, -0.017333625, -0.00820694, -0.021833291, -0.036450136, 0.040355507, 0.03758213, 0.003311076, 0.03438425, -0.03630864, 0.013442403, -0.012996681, -0.015692236, -0.0076975445, 0.03316736, -0.0043793935, -0.025314167, 0.016626129, 0.0124023855, 0.024620822, 0.008624363, 0.032233465, 0.043468487, -0.026898956, 0.023955777, -0.012607559, -0.042081796, -0.035233244, -0.03594074, -0.008199866, -0.024436872, 0.002490382, 0.018479766, -0.032148566, -0.020206055, -0.00035551618, 0.043525085, 0.041232802, 0.065768726, -0.01170904, 0.0009436213, -0.0035569305 ]
The encoder accepts the patch embeddings, and passes them through several encoder blocks. Each block consists of attention and Mix-FFN layers. The purpose of the latter is to provide positional information. At the end of each encoder block is a patch merging layer for creating hierarchical representations. The features of each group of neighboring patches are concatenated, and a linear layer is applied to the concatenated features to reduce the number of patches to a resolution of 1/4. This becomes the input to the next encoder block, where this whole process is repeated until you have image features with resolutions of 1/8, 1/16, and 1/32.
[ 0.019514455, 0.009170159, -0.017062142, -0.0067438567, 0.015003688, -0.018206555, -0.012328438, -0.017240493, -0.029724987, 0.035491634, 0.008256115, -0.000011001729, 0.010203103, -0.027421301, -0.0068367473, -0.029635813, -0.03795881, -0.045300882, -0.022873377, 0.00697051, -0.026455238, 0.027436163, -0.05989585, -0.008181803, -0.011496139, 0.053623877, 0.013814689, 0.034124285, 0.09220691, 0.030824812, 0.012023757, 0.015546169, 0.00485632, -0.0025154771, -0.006650966, -0.035253834, 0.018726742, -0.0123878885, -0.03938561, -0.028372502, 0.013517438, 0.019529317, 0.018994268, -0.050443307, -0.061233476, 0.011726508, 0.027168639, -0.05713143, -0.015293506, -0.044319957, 0.0026566708, -0.029903337, 0.016497368, -0.008204097, -0.016720306, -0.027659101, -0.026782215, 0.0088134585, -0.01924693, 0.017939031, 0.04122856, 0.04696548, -0.019321242, -0.048243657, 0.005978438, 0.017983617, -0.001489965, -0.0022163694, -0.02597964, -0.066405624, -0.046162907, 0.011904858, -0.015122588, -0.011102283, -0.05906355, -0.04958128, 0.03474851, 0.022397779, -0.015234056, 0.071993925, 0.010671271, 0.01686893, -0.0049194857, 0.0023854303, -0.030438388, -0.062481925, 0.052048456, -0.016348744, 0.010433471, -0.0575773, -0.017879581, 0.0013162596, 0.012031189, 0.0047522825, 0.019410416, 0.035551086, -0.018622706, 0.054783154, -0.0017630634, -0.007048538, 0.035878062, 0.0576962, -0.018964542, 0.046252083, -0.026603865, -0.0013654917, 0.05047303, 0.008077766, -0.044052433, 0.0063908724, -0.010834758, -0.0065394975, 0.011644764, -0.021624928, -0.039326157, 0.05213763, 0.012046051, -0.0071005565, -0.06355202, 0.008256115, 0.0067624347, 0.008204097, 0.027659101, -0.030349214, 0.043487657, -0.054069754, -0.00935594, 0.030319488, -0.0088803405, -0.014973963, 0.03352979, 0.017017556, -0.0017389118, 0.020108955, 0.032638036, 0.013123582, -0.014119369, 0.0073792282, 0.008412171, -0.015650205, -0.00062050915, -0.0006376939, -0.007252897, 0.06925922, 0.008315565, 0.009185022, 0.0026473817, -0.04330931, -0.04708438, 0.011704214, -0.051453955, 0.031746287, 0.012529083, -0.0035205532, -0.04702493, -0.03813716, -0.019217204, -0.01304927, -0.030081687, -0.039772034, -0.03712651, 0.00059960876, -0.016556818, 0.068367474, -0.03676981, 0.044944182, -0.009935577, -0.0025117614, -0.027510477, -0.030126275, 0.008895203, 0.0011527722, 0.020421067, 0.019350966, -0.0050495323, 0.048065305, 0.04307151, 0.0047039795, 0.01513745, -0.01906858, 0.004718842, -0.037394036, 0.0065394975, 0.033945937, -0.034391813, 0.012960095, 0.023066591, 0.02269503, -0.02360164, 0.00828584, 0.008568228, 0.06266028, -0.043576833, 0.0042989766, -0.03168684, 0.03718596, 0.0024950411, -0.003789936, 0.0007013239, -0.022546403, -0.03326226, 0.04631153, -0.002377999, 0.009445115, -0.034243185, -0.03902891, 0.019529317, 0.039236985, -0.033708137, 0.00303938, 0.024359629, 0.012209539, -0.013131013, 0.019767117, 0.029710125, -0.011867701, -0.008976947, 0.0009799957, -0.015092863, 0.0076913405, -0.018280867, 0.021193916, 0.037275136, 0.013443125, 0.029843887, -0.0072863377, -0.0064503225, 0.042387832, 0.028922413, 0.04378491, 0.04952183, 0.018013343, 0.022308603, 0.039118085, -0.007706203, 0.029249389, 0.016541956, 0.04619263, 0.011748802, -0.0013989323, 0.014476069, -0.0035317002, 0.054218378, -0.0003183825, -0.0051795794, -0.0035688563, 0.0074275313, -0.028535988, 0.0030635316, 0.014438913, -0.04170416, 0.020762904, 0.006000732, 0.003256744, -0.03861276, -0.020153541, -0.0077433595, 0.028253602, 0.007795378, -0.047530256, 0.013770101, 0.051870104, 0.055318203, -0.028045526, 0.016304156, 0.03272721, 0.029858751, 0.048957054, -0.041020483, -0.06676232, -0.03445126, -0.083765015, -0.07734442, 0.018801056, -0.020302167, -0.021193916, -0.006632388, -0.060817327, 0.009690346, 0.017760681, -0.0024578848, 0.016066356, -0.062006325, 0.031359863, -0.00068135245, 0.000888034, -0.028179288, 0.058974378, -0.0044178762, 0.028431952, -0.01871188, -0.022992278, -0.023705678, -0.04863008, 0.005744354, 0.013086426, 0.016185256, -0.01954418, -0.03165711, 0.00067159894, -0.020019779, -0.010693564, 0.03843441, 0.060341727, -0.05017578, 0.026068814, 0.019098304, -0.044795558, 0.030735638, 0.059985027, -0.043160684, 0.034035113, 0.022903103, 0.032578588, -0.035669986, 0.027079465, 0.035402462, 0.039890934, -0.006977941, -0.031092338, -0.026172852, 0.017433705, 0.0060044476, -0.034243185, 0.010314571, 0.056150503, -0.013056701, -0.035729434, -0.005298479, -0.01835518, -0.04283371, -0.0007626317, 0.00075334264, 0.03694816, 0.020584553, -0.027391577, -0.05439673, -0.022739615, -0.001834589, 0.037096784, 0.016319018, -0.04690603, 0.02366109, 0.04402271, 0.03914781, 0.027451027, 0.017359393, -0.041496083, 0.011912289, -0.00081465044, 0.022620715, 0.06973482, 0.033321712, -0.012863489, -0.010879345, -0.0067512877, -0.023988066, 0.0016209407, 0.018340318, -0.00971264, -0.013903863, 0.01817683, -0.01018824, 0.00515357, -0.049729906, -0.01740398, -0.02348274, -0.007609597, 0.013019545, -0.041198835, 0.014111938, 0.017968755, -0.03284611, 0.02728754, -0.032667764, -0.07579872, 0.032756936, 0.017656643, 0.027480751, -0.042328384, -0.009452546, 0.0100321835, -0.014468638, 0.023675952, 0.058855478, 0.011904858, -0.0135620255, -0.0011694925, 0.019707667, 0.005636601, 0.024359629, 0.004213517, -0.0014816049, 0.022026217, -0.018325455, -0.0063202754, 0.04110966, 0.009363371, 0.015308369, 0.0045665014, 0.057725925, -0.010582096, 0.022397779, 0.0072194566, 0.0022925397, -0.011332652, -0.054248102, 0.04643043, -0.014074782, 0.013896432, -0.04779778, -0.015063138, -0.019142892, 0.014632125, -0.00736065, 0.010708427, -0.051543128, -0.0073903752, 0.023348978, 0.02193704, -0.0042581046, 0.021981629, -0.039296433, 0.013673495, 0.02514734, -0.044082157, 0.0037174814, -0.023274666, 0.0009010387, 0.012945232, -0.028164426, -0.025043303, 0.012075776, -0.027049739, -0.037988536, 0.043012056, 0.029784437, 0.0088803405, 0.048303105, -0.07835507, -0.02597964, 0.022070803, -0.0051981574, 0.0073680812, 0.009943008, 0.023111178, -0.001282819, 0.026901115, 0.011912289, -0.022873377, 0.0009948582, -0.018919954, -0.005131276, -0.046014283, 0.016541956, -0.026544414, 0.040128734, -0.017686367, 0.031478763, 0.002604652, 0.0028740347, 0.0067884442, 0.03760211, -0.038404685, -0.039772034, 0.015694793, 0.016125806, -0.03504576, -0.002872177, 0.009036397, 0.013316794, -0.006550644, 0.04009901, -0.0017797836, 0.0124324765, 0.0058558225, 0.005904126, -0.018518668, 0.009407959, -0.0042098016, -0.05041358, 0.017968755, -0.012974957, -0.03156794, -0.047827505, -0.048124757, -0.019752255, -0.005056964, -0.0014825338, 0.019618493, 0.02562294, 0.0024132975, 0.0302749, -0.04874898, -0.003188005, -0.041258283, -0.04880843, 0.00359115, 0.035996962, 0.03861276, 0.064681575, -0.051424228, 0.0054322416, -0.0045479233, -0.020406205, -0.0070299595, -0.014215976, -0.022397779, 0.033589236, -0.017374255, 0.021297954, 0.04033681, 0.007906847, 0.0033533503, 0.020406205, -0.024775777, 0.000043136068, -0.02855085, -0.034035113, 0.042447284, -0.022130253, -0.082100414, -0.012595964, 0.03873166, -0.028996726, 0.030111413, 0.04075296, -0.03201381, 0.012127795, -0.03837496, 0.019945467, -0.019737393, 0.022769341, -0.048243657, 0.011020539, 0.035759162, 0.032935288, 0.013131013, -0.045300882, -0.026603865, -0.045657583, 0.00625711, 0.008003453, -0.03445126, -0.007795378, -0.013688357, -0.012655414, 0.01215752, 0.013517438, -0.03647256, -0.027629377, -0.027778002, 0.06456267, 0.065870576, -0.059568875, 0.016437918, -0.023690816, -0.014587538, 0.040485434, -0.024642015, -0.019930605, 0.043339033, -0.045181982, 0.035669986, -0.04363628, -0.044855006, -0.056745004, 0.002299971, 0.0026715333, -0.033440612, -0.027198365, -0.055823527, 0.032756936, -0.0018912524, -0.0024838944, -0.079127915, 0.00038572817, -0.035640262, -0.020584553, 0.03742376, -0.0049454947, -0.01036659, -0.018875368, 0.009274196, 0.061709076, -0.030260038, 0.045211706, 0.06676232, 0.004852604, -0.0067512877, -0.03462961, 0.038523585, -0.027213227, 0.0036431688, -0.024879815, 0.015888005, -0.042387832, 0.0069816564, -0.053713053, -0.07181557, -0.0009902137, 0.019767117, 0.03926671, -0.0538914, 0.017849855, -0.01137724, 0.00023315537, -0.044290233, 0.02229374, 0.0051201293, 0.00905869, 0.03891001, -0.0059152725, 0.017745817, 0.011652195, -0.036145587, -0.021491166, -0.0146024, 0.055139855, -0.019469867, -0.041852783, 0.024002928, -0.024582565, -0.0007983946, -0.0074758343, 0.016735168, -0.02413669, -0.0023055444, -0.01227642, -0.03156794, 0.05029468, -0.052464604, 0.013807257, 0.015063138, -0.044082157, 0.0017491297, 0.034599885, -0.0011276917, 0.010314571, 0.07526367, 0.05588298, -0.040069282, 0.036383387, -0.038285784, 0.013190463, 0.00327718, -0.030616738, 0.04815448, -0.0048080166, -0.003542847, -0.0017463431, 0.025459452, 0.023081454, -0.040425982, -0.017686367, 0.02330439, -0.0038159452, -0.04203113, 0.0021847866, 0.0056700413, -0.013963313, 0.019202342, -0.013361382, -0.008174372, 0.021297954, 0.020510241, 0.0019971477, -0.06777297, 0.009824108, 0.004718842, 0.016958106, -0.047589704, -0.041644707, 0.010864483, 0.022486953, -0.009125572, -0.017849855, 0.015694793, 0.026707903, -0.06747572, -0.013041838, -0.05493178, 0.046757407, -0.026321476, -0.02568239, 0.021743828, -0.07591762, -0.0002026176, 0.015211763, -0.015798831, -0.0008815317, -0.009898421, 0.0026213725, -0.014052488, 0.030126275, -0.028714338, -0.026470102, 0.008664834, 0.0006836747, 0.0043547107, 0.0037732157, 0.026247164, -0.0074684033, 0.0028684614, 0.025890464, -0.042239208, -0.0029836458, -0.027629377, 0.031092338, -0.014401757, 0.049016505, -0.024329903, 0.039445058, -0.010678702, -0.041198835, -0.02061428, -0.004637098, 0.0036617469, 0.03831551, 0.016036632, 0.07651212, 0.0056626103, 0.025073027, -0.010767877, 0.04063406, 0.02073318, 0.02496899, 0.009199884, -0.021773554, 0.00014444486, -0.008947222, -0.012974957, 0.0053319195, -0.0042878296, 0.0042878296, 0.044795558, -0.0065283505, -0.005183295, 0.031092338, -0.01186027, 0.031092338, 0.026068814, -0.016319018, 0.03492686, -0.011830545, -0.0018187977, -0.013361382, -0.05356443, -0.04434968, 0.035848334, -0.007899416, 0.044646934, -0.028952138, -0.048303105, -0.009734933, 0.026618727, 0.031478763, -0.008129784, 0.046638507, -0.012967526, -0.011436689, -0.029784437, 0.009207315, 0.009400528, 0.0021253366, -0.017820131, -0.040366534, 0.05585325, 0.059806675, -0.017552605, -0.019038854, -0.036740087, -0.00068135245, 0.0034573877, 0.012781745, -0.029635813, 0.020019779, -0.038166884, 0.0060936227, -0.02728754, -0.014015332, 0.0049380637, 0.082040966, 0.022769341, 0.0024151553, -0.025058165, 0.020183267, 0.0045144823, 0.006829316, -0.0066249566, 0.027317263, 0.0100321835, -0.017968755, -0.0055214167, -0.0075650094, 0.034778237, 0.03819661, 0.0066769756, -0.032548863, 0.021654654, 0.013435694, -0.025162203, -0.01657168, 0.063670926, 0.009995027, -0.0041317735, 0.039831486, 0.020183267, -0.005194442, 0.018191693, 0.012878351, 0.041496083, 0.02091153, 0.009162728, -0.031003162, -0.030408664, 0.0021457726, 0.03647256, -0.06384928, -0.031062612, 0.020421067, 0.033232536, 0.030022237, -0.005870685, 0.0028796082, 0.042625632, 0.025340552, 0.039236985, 0.011436689, -0.011994033, 0.022650441, -0.009660621, -0.003030091, -0.017433705, 0.019291516, -0.035313286, -0.030423526, -0.07044822, 0.026068814, 0.0143646, -0.035194386, 0.03451071, -0.012135226, -0.034391813, -0.06325477, 0.013755239, -0.047768056, -0.01191972, 0.015018551, -0.025905328, -0.052910477, 0.03510521, -0.029739851, 0.03819661, 0.028313052, 0.012974957, 0.017121593, 0.03635366, 0.0025600647, 0.006959363, 0.03272721, 0.024211003, 0.002240521, -0.007877122, -0.007765653, -0.022397779, -0.022189703, -0.038345236, -0.027480751, -0.0046854015, 0.02025758, -0.005268754, -0.038464133, 0.04666823, 0.013666064, -0.027569927, 0.023809716, 0.05632885, -0.007936572, -0.01382212, -0.012246695, 0.023126042, -0.00414292, -0.016497368, -0.031627387, 0.06049035, -0.0124324765, -0.063433126, -0.01859298, -0.058320425, 0.0025247661, -0.019648217, -0.025400002, -0.047589704, 0.043695733, 0.009185022, 0.023096316, 0.017805267, -0.008597953, -0.013316794, 0.035907786, 0.01900913, -0.009586309, 0.087153666, 0.046044007, 0.0073160627, 0.03647256, -0.01162247, 0.050027154, 0.015486719, -0.011035401, -0.017433705, -0.0049269167, -0.007568725, -0.047530256, 0.010641546, 0.03712651, 0.0045070513, -0.022070803, -0.051662028, 0.029353425, -0.032638036, -0.0009995027, -0.01752288, 0.04375518, -0.014550381, -0.021253366, 0.019707667, -0.061174024, 0.2637201, 0.03409456, 0.037631836, 0.03033435, 0.014074782, 0.050502755, 0.012224401, -0.027837452, 0.006008163, 0.004607373, 0.00010670806, -0.020123817, -0.028952138, 0.0006307271, -0.005647748, 0.035907786, -0.040544882, -0.00724175, -0.013450557, -0.028521126, -0.049789354, 0.03896946, 0.013851845, 0.042922884, 0.029843887, -0.01942528, -0.014691575, 0.004035167, 0.0043658577, -0.040723234, -0.007494413, -0.04134746, 0.037512936, 0.012893214, -0.017879581, 0.044646934, 0.023794852, -0.05273213, -0.018875368, 0.032786664, -0.015546169, -0.054307554, 0.04779778, -0.010953658, -0.042685084, 0.037721008, -0.006364863, 0.0023649943, 0.054099478, -0.07609597, 0.064443775, -0.015605619, 0.037096784, -0.049135406, -0.02914535, -0.039474785, -0.035669986, -0.069556475, -0.01758233, 0.01924693, 0.025251377, 0.037275136, 0.016051494, 0.0057034823, -0.001855954, 0.02061428, 0.023854302, 0.038226336, -0.022145117, 0.036323935, 0.03201381, -0.030765362, -0.012350732, -0.0058372444, -0.0038308077, 0.037721008, -0.024389353, 0.06914032, 0.0048117326, -0.038880285, -0.011956876, -0.030765362, -0.048659805, -0.044557758, -0.0032604595, 0.061114576, -0.01835518, 0.0073978063, -0.011815683, 0.018488942, 0.011392102, 0.011719077, 0.01454295, -0.027911764, 0.0147807505 ]
BERT uses WordPiece tokenization to generate a token embedding of the text. To tell the difference between a single sentence and a pair of sentences, a special [SEP] token is added to differentiate them. A special [CLS] token is added to the beginning of every sequence of text. The final output with the [CLS] token is used as the input to the classification head for classification tasks. BERT also adds a segment embedding to denote whether a token belongs to the first or second sentence in a pair of sentences.