vector
sequencelengths 1.02k
1.02k
| text
stringlengths 2
11.8k
|
---|---|
[
0.018706292,
-0.0034992918,
-0.0074796234,
-0.019342856,
-0.007360268,
-0.040797945,
-0.017505502,
-0.021975914,
-0.045890454,
0.095426686,
0.021787839,
0.012065776,
0.026663339,
-0.035271417,
-0.008673181,
0.013150827,
0.0085429745,
-0.0033727025,
-0.06921183,
-0.008217459,
0.008420002,
0.029976362,
-0.08009129,
-0.023191173,
-0.024044747,
0.026171448,
0.012615535,
-0.025274472,
0.07719781,
0.044675197,
-0.018156532,
0.013194229,
0.010358628,
-0.025636157,
-0.022366533,
-0.027430108,
0.02102107,
-0.021426156,
-0.015349866,
-0.013252099,
0.0022297814,
-0.01335337,
0.027227566,
-0.05523637,
-0.085704625,
0.011154332,
-0.0048465645,
-0.012991686,
-0.068343796,
-0.01872076,
0.00503464,
-0.01244916,
0.03356427,
0.006253515,
0.019820279,
-0.028008802,
0.010192253,
0.008839555,
-0.027719455,
0.014619264,
0.027516913,
0.011125397,
0.008159589,
-0.056075476,
-0.0036403486,
0.0019928785,
-0.021223612,
0.00053845695,
-0.013302734,
-0.036631346,
-0.07980194,
-0.034027223,
-0.02063045,
-0.019256052,
-0.026865881,
0.00377598,
0.03298557,
-0.016622992,
-0.026721207,
0.020008354,
0.0035842876,
0.023118837,
0.018981172,
0.0007477815,
-0.022583544,
-0.029151725,
0.059026815,
-0.030294646,
0.012572133,
-0.027661586,
0.002000112,
0.023220107,
-0.03891719,
0.014351618,
-0.00922294,
0.030555058,
0.008723816,
0.062093895,
0.022192925,
0.021469558,
0.029571278,
0.050259598,
-0.013729522,
0.035936914,
-0.015957495,
0.0072481455,
0.03327492,
0.012326188,
-0.031625643,
-0.0061486266,
-0.022091653,
-0.027835194,
-0.007566428,
0.0048465645,
-0.045890454,
0.02534681,
0.008188524,
-0.007143257,
-0.04432798,
-0.0047995457,
0.0038808684,
-0.0029531491,
0.021874644,
-0.0052950527,
0.02648973,
-0.03694963,
-0.0048320973,
0.015928559,
-0.016492786,
0.01653619,
0.024768114,
-0.012868714,
-0.02298863,
0.056191213,
-0.038598906,
-0.003728961,
0.0022858423,
0.021975914,
0.01042373,
-0.002370838,
0.014011635,
0.010199486,
-0.015349866,
0.06394572,
0.0032388796,
0.0009448992,
0.0021664866,
-0.04172386,
-0.032059662,
0.017939523,
-0.032956637,
0.018923303,
0.0032949406,
-0.004408927,
-0.037586194,
-0.008239159,
-0.03530035,
0.026041241,
-0.032638356,
-0.010611806,
0.029629147,
0.01948753,
-0.01877863,
0.05020173,
0.003448656,
0.042505093,
-0.044733066,
0.020239832,
-0.013150827,
-0.0062426645,
0.025404679,
0.0036313066,
-0.009107201,
0.01795399,
0.008181291,
0.041116226,
0.024174953,
0.007978748,
-0.01132794,
0.008629778,
0.0006691152,
-0.042707637,
0.015349866,
0.012847013,
0.0073855855,
-0.0094978195,
-0.04924688,
0.003434189,
-0.016666396,
-0.002822943,
0.02599784,
0.059258293,
-0.010438198,
0.037788738,
-0.019299453,
0.024334094,
-0.051185507,
-0.029122788,
0.006524778,
-0.028978115,
-0.052892655,
0.07800799,
-0.025462547,
0.011074762,
-0.05286372,
0.033680007,
-0.00248296,
0.04241829,
0.00304357,
0.046121933,
0.007349417,
0.0064452076,
-0.030526122,
0.04652702,
0.008875723,
-0.05069362,
-0.039438013,
0.02212059,
-0.008268095,
0.017331893,
-0.0041195797,
0.019241584,
0.037846606,
-0.00035535445,
0.024594506,
-0.04094262,
-0.0020019205,
0.038164888,
0.0032732394,
0.04924688,
0.027762858,
0.04762654,
0.0045138155,
0.053731762,
0.03573437,
0.01872076,
0.049449425,
0.050664682,
0.033188116,
0.021440623,
0.0031683512,
0.012926583,
0.056567363,
0.0003680134,
0.025260005,
0.01921265,
0.018055262,
-0.024102617,
-0.010503301,
-0.018098664,
-0.03486633,
0.019617736,
0.021050004,
0.007595362,
-0.043720353,
-0.02348052,
0.004792312,
-0.0005782422,
-0.022959696,
-0.06244111,
0.010966256,
0.042302553,
0.05752221,
-0.022974163,
0.007486857,
0.007356651,
0.019299453,
0.0056133345,
-0.024956191,
-0.032088596,
-0.026258253,
-0.0721053,
-0.073146954,
-0.031220555,
-0.027343305,
0.0067526386,
-0.017114883,
-0.045514304,
0.023075433,
-0.008514039,
-0.00930251,
-0.008412768,
-0.04328633,
0.042562965,
0.013932064,
-0.0015832713,
-0.06614476,
0.036544543,
-0.007761737,
0.05083829,
-0.01354868,
-0.01630471,
-0.021339351,
-0.044501588,
-0.012138112,
0.020370038,
0.030352514,
-0.008087252,
-0.031191621,
0.0025968906,
-0.027545847,
0.0045355163,
-0.0065790303,
0.027603718,
-0.026373992,
0.032030728,
0.007309632,
-0.033101313,
0.01872076,
0.073378436,
-0.017577838,
0.056278016,
-0.020268766,
0.052892655,
-0.006069056,
0.02418942,
0.052892655,
0.004224468,
-0.0040327758,
-0.043199528,
-0.029658081,
0.0066007315,
0.024681311,
-0.04904434,
0.0230465,
0.038454235,
-0.013114659,
-0.06736001,
0.016478319,
-0.035879046,
-0.0016619376,
-0.030960143,
-0.0036638582,
0.049015407,
0.017765915,
-0.009656961,
-0.043633547,
-0.011624522,
-0.0032316458,
0.032869834,
0.015827289,
-0.037644062,
0.0342587,
0.021874644,
0.04658489,
0.011790896,
0.0067128534,
-0.03897506,
-0.01447459,
-0.021686567,
0.048639253,
0.047858015,
0.00684306,
-0.011834298,
0.006839443,
0.018648423,
-0.028761106,
0.025404679,
0.007645998,
-0.010821583,
0.021223612,
0.015147323,
0.006069056,
0.024131551,
-0.039495885,
-0.012420226,
-0.023798801,
0.02326351,
0.030149972,
-0.026113579,
0.03903293,
-0.03087334,
-0.023003098,
0.010430965,
-0.03585011,
-0.030063167,
0.043257397,
-0.0060111866,
0.026128046,
-0.07436221,
-0.024478767,
0.060357813,
0.02113681,
0.01866289,
0.026793545,
0.042302553,
-0.028587498,
-0.038020212,
-0.013317202,
0.013997167,
0.03388255,
-0.0039712894,
-0.042157877,
0.015783885,
-0.020890864,
-0.056220148,
0.0692697,
0.059663378,
0.009353146,
-0.012065776,
0.06382998,
-0.010112682,
-0.014127374,
0.027545847,
-0.012188748,
-0.0356765,
-0.05688565,
0.035155676,
0.013975467,
0.0009539413,
-0.036081586,
-0.032551553,
-0.009678662,
-0.024608973,
-0.020456843,
0.028167944,
0.029455539,
-0.060126334,
0.005729073,
0.034461245,
-0.025332341,
-0.031336296,
-0.05850599,
0.032377943,
0.03252262,
-0.053384546,
0.010980723,
-0.07592469,
0.0032352626,
-0.003938738,
-0.017563371,
-0.02473918,
-0.024363028,
-0.0001573325,
-0.06724428,
0.03353533,
0.0328409,
-0.021426156,
0.015624746,
-0.047481865,
-0.000038598457,
0.018850965,
-0.021267014,
0.011689624,
-0.00036349235,
0.012593834,
-0.0065139276,
0.032088596,
-0.01626131,
-0.026460795,
0.015060519,
-0.042302553,
0.0018590554,
-0.059316162,
0.01697021,
-0.029976362,
0.018677358,
-0.024652377,
0.043865025,
0.0037181107,
-0.0032443048,
-0.041463446,
0.054252587,
-0.020326637,
-0.02139722,
0.017925056,
-0.0045536007,
-0.020427907,
0.021339351,
0.025187667,
0.024999592,
-0.018344609,
0.05014386,
-0.0034161047,
0.030265711,
-0.015393267,
0.023306912,
0.0033238751,
-0.02320564,
-0.0042461692,
-0.0495941,
0.041665986,
0.004864649,
-0.019675605,
-0.011313473,
-0.07355204,
-0.014857976,
0.011566652,
-0.023726465,
0.024290692,
-0.008969761,
-0.012550432,
0.046382345,
0.017028078,
0.0011799937,
-0.024117084,
-0.028037738,
0.016840003,
0.034027223,
0.035097808,
0.046555955,
-0.025462547,
0.0027361389,
0.021440623,
-0.0019856447,
0.022901826,
-0.016405983,
-0.04869712,
0.01642045,
-0.015812822,
-0.019675605,
0.02200485,
0.0026077412,
0.027676053,
0.05057788,
-0.018749695,
0.011219435,
-0.015132856,
-0.0005845716,
0.058014102,
-0.05827451,
-0.05381857,
-0.006770723,
0.026301654,
0.0029314482,
-0.007443455,
0.02462344,
-0.054947022,
-0.02479705,
-0.04155025,
0.05972125,
-0.04366248,
0.022294197,
-0.008825088,
-0.02084746,
-0.016999144,
0.030641861,
-0.01751997,
-0.037788738,
-0.016565124,
-0.05561252,
0.0066730683,
-0.06602902,
-0.003029103,
-0.019111378,
-0.011494315,
-0.005396324,
0.015552409,
-0.014272047,
0.0076170634,
0.017259557,
-0.019907083,
0.030844405,
0.022149524,
-0.016753199,
-0.00649946,
0.0046693394,
-0.005038257,
0.004275104,
0.011855999,
-0.036544543,
0.0649295,
-0.045572173,
0.046237674,
-0.010358628,
-0.058419187,
-0.020167496,
0.0138741955,
0.032696225,
-0.05381857,
0.007157725,
-0.009700363,
0.016275777,
0.0015281145,
0.025795298,
-0.048726056,
0.013360604,
-0.0433442,
-0.05937403,
0.0049984716,
-0.023683064,
-0.009345912,
-0.012405759,
-0.0018590554,
0.055149563,
-0.026967153,
0.0069298637,
0.036342,
-0.0031321826,
0.015190724,
0.0051359115,
0.013389539,
-0.001236959,
-0.018518217,
0.011978972,
0.022684816,
-0.06666558,
-0.026865881,
-0.06793871,
-0.06539245,
0.010380329,
0.019907083,
0.040711142,
-0.03553183,
-0.00004636901,
-0.03677602,
-0.0021538278,
-0.028587498,
0.013910363,
-0.0010597339,
0.0072336784,
0.056017604,
-0.008383833,
0.01565368,
0.0053637726,
-0.016594058,
-0.019719006,
0.011313473,
0.077429295,
0.030699732,
-0.041984268,
0.031480968,
0.0075230254,
-0.017664643,
-0.061052244,
0.0051865475,
-0.007291548,
-0.0047778445,
-0.024869386,
-0.020529179,
0.004578918,
-0.017259557,
-0.0050237896,
0.01146538,
-0.028327085,
-0.016015364,
0.033130247,
-0.01691234,
-0.026373992,
0.020876396,
0.04814736,
-0.025057461,
0.009259108,
-0.049304754,
-0.02462344,
-0.040421795,
0.0021773372,
0.043112725,
-0.019559866,
0.023986878,
-0.0048682657,
0.0058194944,
0.070253484,
-0.018908836,
-0.0025354042,
0.036978565,
-0.03020784,
-0.05885321,
0.009664195,
-0.008752751,
-0.009881205,
-0.0059677847,
-0.02194698,
0.010083748,
0.05610441,
0.016188972,
0.013020621,
-0.075982556,
-0.011978972,
-0.036718152,
-0.012217683,
-0.021093406,
-0.018691825,
-0.006116075,
0.028645366,
-0.0056820544,
-0.036313064,
0.009251875,
0.02452217,
-0.02829815,
-0.023032032,
-0.042157877,
0.013121893,
-0.042562965,
-0.025737427,
-0.0018843733,
-0.044125438,
-0.014655433,
0.03278303,
0.025925504,
0.043633547,
-0.034056157,
0.019473063,
-0.015494539,
0.025795298,
-0.033130247,
0.02578083,
-0.014698834,
0.007841308,
-0.0073023983,
0.041897465,
0.02184571,
-0.014604797,
-0.0057760924,
0.017505502,
-0.03755726,
-0.022352066,
0.00670562,
0.053297743,
-0.0047597606,
0.03260942,
-0.029455539,
0.037123237,
-0.058419187,
-0.032493684,
-0.006170328,
-0.03376681,
0.026446328,
0.0060654394,
0.04571685,
0.044964544,
0.034229767,
0.053992175,
0.019313922,
0.030121038,
0.0073240995,
0.00859361,
0.0076532317,
0.026735675,
-0.012969986,
-0.035502892,
0.01872076,
0.037991278,
-0.005703755,
0.03463485,
-0.00684306,
0.0071504912,
-0.011212202,
0.022641413,
0.0010452665,
0.028659834,
0.02808114,
-0.051735267,
0.026402926,
-0.014228646,
0.0127674425,
-0.0032171784,
-0.06278833,
-0.04302592,
-0.006720087,
-0.00077219517,
0.0108432835,
-0.012651703,
-0.03660241,
-0.008644246,
0.009671428,
0.044733066,
0.008152355,
-0.026084645,
-0.0021628698,
0.035502892,
-0.0146699,
-0.03715217,
0.0077545033,
0.009533988,
-0.044733066,
-0.028544094,
0.016290244,
0.029267462,
-0.01521966,
-0.043749288,
-0.050606813,
0.011241136,
0.019878149,
0.017751446,
-0.010742012,
0.02769052,
-0.045745783,
0.0051865475,
-0.04470413,
-0.07540386,
0.014076738,
0.04554324,
0.041231968,
-0.017925056,
-0.01789612,
-0.014915844,
0.034056157,
-0.024652377,
-0.0016492787,
0.017664643,
0.04088475,
-0.0054107914,
0.026605468,
-0.00324973,
0.04887073,
0.06354063,
0.029093854,
-0.0076894,
0.023654127,
0.008984229,
0.02041344,
-0.011617287,
0.04814736,
0.025187667,
-0.0067526386,
0.014170776,
-0.010213953,
-0.011704092,
0.00040802467,
0.0005863801,
0.010901153,
0.0019621353,
0.010676909,
-0.015407735,
-0.049362622,
0.008955294,
-0.010720312,
-0.024131551,
0.007331333,
0.040306058,
0.040537532,
0.027198631,
-0.009179538,
-0.0070673036,
0.047886953,
0.07806586,
0.019936018,
0.035763305,
0.0021682952,
0.014127374,
-0.012275552,
0.036023717,
0.003542694,
0.027169695,
-0.023726465,
-0.05512063,
-0.01313636,
0.030005299,
-0.050433207,
-0.03289877,
-0.016203439,
-0.010676909,
-0.015291996,
-0.026287187,
0.02151296,
-0.05743541,
0.008210225,
0.033419594,
-0.040016707,
-0.05095403,
0.05106977,
-0.023075433,
0.0008865777,
0.049449425,
-0.0018011859,
0.0049840044,
0.08686201,
0.039611623,
0.0050020884,
0.04580365,
0.023929007,
0.0026167831,
-0.00031602132,
0.013613783,
0.00081424095,
-0.016290244,
-0.01231172,
-0.0059243827,
0.00998971,
0.010705844,
-0.0015244978,
-0.008072785,
0.019096911,
0.008969761,
-0.015971962,
0.00019790891,
0.07002201,
0.014250346,
0.007280697,
-0.020818526,
-0.009816102,
-0.066202626,
0.00881062,
-0.063367024,
0.020210898,
-0.0077400357,
-0.055149563,
-0.006416273,
-0.053153068,
-0.0026475263,
0.032869834,
-0.0067598727,
-0.029918494,
0.01653619,
0.014004401,
0.04745293,
0.003206328,
-0.024825985,
-0.026070178,
0.045051347,
0.035647567,
-0.02363966,
0.041087292,
0.07274187,
0.015234127,
0.0011347833,
0.014706068,
0.013657185,
0.027285434,
-0.017230622,
-0.017867185,
-0.030352514,
-0.03136523,
-0.07829733,
-0.0069696493,
0.017274024,
0.008658713,
-0.0058773635,
-0.04904434,
-0.029556809,
-0.054860216,
0.014648199,
-0.019125845,
0.0559308,
-0.017071482,
-0.017780382,
0.038714647,
-0.026316121,
0.24999593,
0.082116716,
0.02829815,
-0.0057471576,
0.06064716,
0.059952725,
0.011161566,
-0.028095607,
0.0066224327,
-0.027878597,
0.030612927,
-0.04470413,
-0.015740484,
-0.004521049,
-0.005045491,
0.025592754,
-0.031770315,
0.002835602,
-0.04406757,
-0.014409487,
-0.022959696,
0.026779078,
-0.0031285658,
0.056451626,
-0.009635259,
-0.009584624,
-0.0036475824,
-0.03480846,
-0.011335174,
-0.010590105,
-0.021382753,
-0.017852718,
0.0075881286,
0.0108432835,
-0.03229114,
0.005895448,
0.032001793,
-0.05014386,
-0.03353533,
0.022757152,
-0.005985869,
-0.037904475,
0.0041448977,
-0.01510392,
-0.03301451,
0.05057788,
-0.0066405167,
0.019140312,
0.034692723,
-0.059316162,
0.044472653,
-0.047800146,
0.022019317,
-0.02282949,
-0.02031217,
-0.029744886,
-0.03179925,
-0.029556809,
0.018547151,
0.0009864928,
0.03830956,
0.04345994,
-0.02835602,
0.010966256,
0.023003098,
0.035879046,
-0.021064471,
0.06058929,
-0.014959247,
0.026880348,
0.013592082,
-0.00552653,
-0.03229114,
0.0027958166,
0.012485329,
0.038049147,
0.004162982,
0.043604612,
0.0050744256,
-0.052892655,
-0.011725793,
-0.027820727,
-0.028095607,
-0.021628698,
0.031480968,
0.024319626,
-0.021252546,
0.0021610614,
-0.012535965,
0.0130567895,
0.016868938,
0.037991278,
0.04869712,
0.009382081,
0.022236327
] |
The first sequence, the "context" used for the question, has all its tokens represented by a 0, whereas the second
sequence, corresponding to the "question", has all its tokens represented by a 1.
Some models, like [XLNetModel] use an additional token represented by a 2.
transfer learning
A technique that involves taking a pretrained model and adapting it to a dataset specific to your task. Instead of training a model from scratch, you can leverage knowledge obtained from an existing model as a starting point. This speeds up the learning process and reduces the amount of training data needed.
transformer
Self-attention based deep learning model architecture.
U
unsupervised learning
A form of model training in which data provided to the model is not labeled. Unsupervised learning techniques leverage statistical information of the data distribution to find patterns useful for the task at hand.
Z
Zero Redundancy Optimizer (ZeRO)
Parallelism technique which performs sharding of the tensors somewhat similar to TensorParallel,
except the whole tensor gets reconstructed in time for a forward or backward computation, therefore the model doesn't need
to be modified. This method also supports various offloading techniques to compensate for limited GPU memory.
Learn more about ZeRO here. |
[
0.034934647,
0.013823791,
-0.023524106,
-0.021766556,
-0.0062730946,
-0.025673721,
0.0011305766,
-0.022942763,
0.023794496,
0.0018555651,
-0.023835056,
-0.006661783,
0.0480757,
-0.041478135,
0.020049568,
0.016304638,
-0.010531769,
-0.050022524,
-0.044885073,
0.009896347,
0.029662004,
-0.0072059473,
-0.06029742,
-0.04161333,
-0.04596664,
0.008970255,
0.030635415,
-0.04234339,
0.06424514,
0.06294726,
-0.018116266,
-0.013479042,
-0.011282107,
-0.029364573,
0.0023777597,
-0.057485342,
-0.0001361466,
0.0108292,
-0.061433066,
-0.037395217,
-0.019481745,
0.02267237,
-0.01047769,
-0.035178002,
-0.054646224,
0.014533571,
-0.011789092,
-0.0028391161,
0.008497069,
-0.0054889577,
-0.020225322,
0.032257766,
0.02844524,
0.0019772416,
-0.03544839,
0.011606577,
-0.01117395,
0.0013747744,
-0.03350157,
-0.010464171,
0.02196935,
0.075006746,
0.005458539,
-0.014506531,
-0.0037111302,
0.01252591,
-0.011444342,
0.027566465,
-0.0014423723,
0.0091324905,
-0.02033348,
0.064948164,
0.006161558,
-0.008841819,
-0.028607475,
0.05921585,
0.032690395,
-0.00913925,
0.013377645,
0.041937802,
-0.011917528,
0.05991887,
0.003924064,
0.061162673,
-0.021536723,
-0.020238843,
0.041018467,
-0.0003181331,
-0.055430364,
-0.01588553,
-0.007070751,
0.025984673,
-0.026106348,
0.031311397,
0.037097786,
0.04437133,
-0.037422255,
-0.017480843,
0.016831903,
0.00021166625,
0.01996845,
0.07873815,
-0.039179802,
0.013857591,
0.016439835,
0.004491887,
0.043479037,
-0.038855333,
-0.0413159,
-0.0020904683,
0.013648037,
-0.014276698,
0.022564214,
-0.008246956,
0.018886883,
0.016642628,
0.00914601,
0.040342487,
-0.05818836,
-0.04631815,
-0.0018150064,
-0.04258674,
0.006151418,
-0.040207293,
-0.012323116,
-0.03785488,
-0.0016384065,
0.039747626,
0.013857591,
-0.021753037,
-0.022226224,
0.029418651,
0.049319502,
0.0067902193,
-0.007638574,
-0.04258674,
-0.012282557,
0.0060736807,
0.029986475,
-0.0345561,
-0.014831002,
-0.06413698,
0.012715184,
0.11735013,
0.031987377,
-0.020360518,
0.02474087,
-0.068246946,
-0.016047766,
0.036448844,
-0.014276698,
-0.018359618,
-0.0039443434,
0.016953578,
-0.0027850377,
0.021077057,
-0.033366375,
0.025214056,
0.0007380857,
0.010545288,
0.029526807,
-0.022537174,
-0.019062636,
0.02947273,
-0.013789993,
0.035637666,
-0.010890039,
-0.04564217,
-0.0034981966,
-0.011910768,
-0.012613787,
0.015534021,
-0.024146007,
-0.03252816,
0.04564217,
-0.039774664,
0.07322215,
0.00981523,
-0.020238843,
-0.004126858,
-0.035799902,
-0.0062798546,
-0.029553847,
0.023091478,
-0.012931498,
-0.005360522,
0.026985122,
0.003112888,
0.0013815342,
-0.0048569166,
0.027525907,
0.03928796,
-0.059378084,
-0.01149166,
-0.05383505,
-0.009240647,
0.0022881923,
0.012492111,
-0.007753491,
-0.06565118,
-0.018386656,
0.031365473,
-0.01660207,
0.015466423,
0.02200991,
-0.023145556,
0.009531318,
0.024903104,
0.006455609,
-0.025781877,
0.04983325,
0.036475882,
-0.017440286,
0.0026650513,
0.009767911,
0.011748533,
-0.016642628,
0.033231176,
0.010180259,
-0.011762053,
0.025700761,
0.0038733655,
0.04266786,
0.015452904,
0.022618292,
0.0015826382,
-0.022131586,
0.045534015,
0.013059934,
0.009416401,
-0.00068569725,
0.027958535,
0.027539426,
0.043533113,
-0.047291562,
0.025227575,
0.018264981,
0.030500218,
-0.005989183,
0.01761604,
0.0062899943,
0.019224873,
0.034042355,
0.028580435,
-0.032663357,
0.012573228,
-0.0023760698,
-0.026566016,
-0.02814781,
0.035042804,
-0.038557902,
0.010687244,
0.0055362764,
-0.027904455,
-0.047480837,
-0.043208644,
0.0059993225,
0.033150062,
-0.00053993904,
-0.01592609,
0.022496615,
0.015966648,
-0.0060432614,
0.0023236813,
0.027512386,
0.023172595,
-0.023145556,
0.03861198,
-0.026160426,
-0.054105442,
-0.014533571,
-0.011782332,
-0.057485342,
0.004769039,
-0.10047767,
-0.003920684,
0.039233882,
-0.05245605,
-0.009734113,
-0.04299233,
0.013472282,
-0.014790443,
0.04272194,
0.042613782,
0.043181606,
0.00949752,
-0.03680035,
0.006127759,
-0.016534472,
0.00946372,
-0.05716087,
0.010869759,
-0.017210452,
-0.025511486,
0.0021191973,
0.009598916,
-0.0022611532,
-0.0116538955,
-0.04301937,
0.026566016,
-0.032717433,
-0.0093014855,
-0.0052050464,
0.021942312,
0.02095538,
-0.0025129558,
0.016061286,
-0.05899954,
0.034799453,
0.019224873,
-0.014803963,
0.020563312,
-0.014587649,
0.028688593,
-0.04677782,
0.04474988,
0.04496619,
0.011383504,
-0.049562857,
-0.02774222,
0.002234114,
-0.0011931048,
-0.021090576,
-0.004444569,
0.0031771061,
0.04201892,
0.009619196,
-0.04634519,
-0.011795851,
-0.011309146,
-0.00778053,
-0.029634964,
0.0044141496,
0.035745826,
0.013168091,
0.02541685,
-0.022212703,
0.024227124,
-0.0076858927,
0.0027512386,
-0.0024808466,
-0.01456061,
0.025146456,
0.021442087,
-0.010619646,
-0.006269715,
0.044885073,
-0.05442991,
0.0042079757,
-0.0150473155,
-0.022388458,
-0.009943666,
0.008159079,
0.006198737,
0.016088326,
0.037043706,
-0.012377194,
0.011586297,
0.019819735,
0.03287967,
0.032609276,
0.031716984,
0.02912122,
0.0027563085,
-0.044506524,
-0.035989176,
-0.00913925,
0.008909416,
0.0668409,
-0.021442087,
0.05689048,
0.021158176,
-0.04166741,
0.042127077,
0.033988275,
-0.018832803,
0.014993237,
0.04401982,
0.028553396,
0.004089679,
-0.0297972,
-0.048697602,
0.0043904902,
0.010984675,
0.0028188366,
0.03320414,
-0.006293374,
0.0025957632,
-0.061000437,
-0.049535815,
-0.016750785,
0.011762053,
0.0076926528,
0.01588553,
-0.021482645,
-0.05651193,
0.02605227,
0.047859386,
0.04337088,
0.024632713,
0.017886432,
-0.023240194,
-0.01967102,
0.026214505,
-0.000117768395,
0.019049117,
-0.032906707,
0.029634964,
0.054538067,
-0.025619643,
-0.026228026,
0.017399726,
-0.006357592,
0.028255966,
-0.0009260926,
-0.0143578155,
0.010126181,
0.013688596,
-0.005539656,
-0.0014474422,
-0.031230276,
-0.0223479,
-0.014330776,
-0.0007351283,
0.06278502,
-0.012809821,
-0.020036047,
-0.014749885,
-0.0014634967,
0.038422704,
0.013952227,
-0.061973847,
-0.015655698,
-0.00057331554,
-0.0723569,
0.02369986,
0.07852184,
-0.0119918855,
-0.017994588,
-0.05651193,
-0.000779067,
0.014195581,
-0.009416401,
-0.017196933,
-0.0027309593,
-0.01050473,
-0.0035759343,
0.0169671,
0.025781877,
-0.01658855,
0.020874264,
-0.052212697,
0.001422093,
-0.04910319,
-0.037800804,
-0.037881922,
-0.010349254,
-0.008172599,
0.04266786,
0.026444338,
-0.028580435,
0.018400175,
0.00439387,
-0.06970706,
-0.07062639,
0.011640376,
0.022767007,
0.017778276,
0.015209551,
-0.01218116,
-0.029689042,
0.06597565,
0.014155022,
0.01963046,
0.011288866,
-0.0037314098,
0.0010984675,
0.0264173,
-0.0094704805,
0.0073208637,
-0.038693096,
0.037016667,
0.020712027,
0.029418651,
0.022429017,
-0.08960791,
0.0011457861,
-0.000912573,
-0.009646235,
0.021820635,
0.023902655,
0.031176198,
0.020779626,
0.0070572314,
0.018481294,
-0.01825146,
-0.020630911,
-0.013898149,
0.069598906,
0.022510136,
-0.00848355,
-0.044560604,
-0.012607028,
0.009443441,
-0.047507875,
0.002639702,
0.001760928,
-0.013026135,
0.0011297317,
-0.013810272,
0.004502027,
-0.023118516,
-0.03888237,
-0.03582694,
-0.012350155,
-0.018129785,
0.011701214,
-0.020225322,
-0.02438936,
0.047967542,
-0.02506534,
-0.06516448,
-0.03934204,
0.048454247,
0.0072870646,
0.013141052,
0.037746724,
-0.04196484,
-0.016818384,
-0.022739967,
0.0284182,
-0.067543924,
-0.005316583,
-0.008618745,
-0.026822887,
-0.010727803,
0.03663812,
0.033393413,
-0.08219917,
-0.0029523429,
-0.028742671,
-0.013952227,
-0.09252815,
0.009571877,
-0.004637223,
-0.013729154,
-0.002673501,
0.042748976,
-0.0032092151,
0.00007034417,
-0.0426949,
0.013560159,
-0.014155022,
0.044479486,
-0.03320414,
-0.018819284,
-0.009970705,
-0.0077399714,
-0.023132037,
0.053429462,
-0.0068240184,
0.0015167302,
0.026538976,
0.0075980155,
-0.047534917,
-0.0029016442,
-0.040369526,
0.0077061723,
0.029013062,
-0.016913021,
0.0038023877,
0.002262843,
0.05077962,
0.03999098,
0.028039651,
-0.008659304,
0.009443441,
-0.021847675,
-0.08549795,
0.045101386,
-0.01591257,
-0.008605226,
-0.015331227,
0.030365022,
0.05388913,
0.0019164034,
0.0031382372,
0.05586299,
0.020847224,
0.007888687,
-0.059810713,
0.0027461688,
0.03523208,
-0.029553847,
-0.001489691,
0.007760251,
0.007469579,
0.05186119,
-0.02136097,
-0.05105001,
-0.014668766,
-0.008639025,
0.018670568,
0.0036739514,
0.022063987,
-0.031095082,
-0.0474538,
-0.02747183,
0.008571426,
0.07543937,
0.02269941,
0.0508337,
0.029202336,
0.011437582,
0.064461455,
0.016764306,
0.01253267,
-0.01963046,
0.043857586,
0.0007786445,
-0.028661553,
0.005012392,
0.044236135,
-0.05107705,
-0.021455606,
0.012613787,
0.04812978,
-0.05726903,
-0.05245605,
0.007814329,
0.03482649,
-0.026958084,
0.034745373,
0.057431262,
-0.023240194,
-0.009220367,
0.019792695,
-0.0046541225,
-0.044912115,
-0.0297972,
0.029202336,
-0.015168992,
-0.033150062,
-0.027296074,
0.008747182,
-0.040883273,
-0.050049562,
0.042370427,
0.02607931,
0.04366831,
0.04466876,
0.02776926,
0.07592608,
0.005644433,
0.010349254,
0.018778725,
-0.033907156,
-0.05894546,
-0.030337984,
-0.042613782,
0.00848355,
0.010335735,
-0.02470031,
0.008645784,
0.019468226,
0.008720143,
-0.0032396342,
-0.09442089,
0.0016646008,
-0.035340235,
-0.046155915,
0.025187016,
-0.0072329864,
-0.014655247,
-0.013472282,
-0.00506985,
-0.018359618,
-0.015209551,
0.030337984,
-0.037881922,
-0.053699855,
-0.04672374,
0.005786389,
-0.04499323,
-0.047156367,
-0.03612437,
-0.0091189705,
0.023280753,
0.0271068,
-0.0575935,
-0.0257278,
0.013776473,
0.021198733,
-0.040450644,
0.013445242,
-0.005928345,
-0.011336185,
0.019887332,
0.021712478,
-0.055078853,
0.0069896337,
0.024767907,
-0.0012142292,
0.021928793,
-0.00016550948,
0.043533113,
-0.00062823895,
0.030608376,
0.025862996,
-0.03920684,
0.005789769,
-0.03285263,
0.02776926,
-0.019914372,
0.03079765,
-0.023253713,
-0.0041809366,
-0.04018025,
0.05010364,
-0.0011880349,
0.017453805,
-0.009484,
-0.013938708,
0.015006756,
0.01994141,
0.00029426254,
0.0055971146,
-0.0074493,
-0.03799008,
0.008774221,
-0.012803062,
0.04399278,
0.012438033,
-0.0063508325,
0.022888685,
-0.00012315511,
-0.033717886,
-0.00032214672,
-0.04066696,
0.018886883,
0.04840017,
0.052239735,
-0.02302388,
0.020157725,
-0.01929247,
-0.06127083,
0.021847675,
-0.03853086,
-0.023077957,
0.020198284,
-0.0528346,
0.012938257,
0.0052591246,
0.010531769,
-0.0011390264,
0.020698508,
-0.003248084,
0.029013062,
-0.013952227,
0.024565114,
-0.004907615,
-0.082036935,
-0.03409643,
0.00609058,
0.043127526,
-0.0022865024,
-0.030067591,
-0.029256416,
0.02812077,
0.0003191893,
-0.02267237,
-0.022834605,
-0.043830544,
0.013337086,
0.06489408,
-0.010984675,
0.007003153,
-0.01662911,
0.03423163,
-0.05716087,
0.032041453,
-0.023943212,
0.021523204,
0.013675076,
0.008659304,
0.018562412,
0.0440739,
0.022767007,
0.02334835,
-0.0015927779,
0.019468226,
0.03928796,
-0.0059182053,
-0.0009117281,
-0.013844071,
0.04842721,
0.015750336,
0.054348793,
0.017805314,
0.010558808,
0.022401977,
-0.042776015,
-0.017332127,
-0.0000016866494,
0.005715411,
0.060838204,
0.011356465,
-0.04431725,
-0.016128883,
-0.007888687,
0.029364573,
0.050482187,
-0.006401531,
0.009247406,
-0.019887332,
0.0025011261,
0.024592154,
-0.029986475,
-0.028634515,
0.013127532,
-0.027187917,
0.06170346,
0.00020944819,
0.020806665,
-0.02640378,
0.025538525,
0.042911213,
0.005684992,
0.027187917,
0.043533113,
0.017345648,
-0.021915272,
0.027214956,
-0.002230734,
-0.018535372,
0.023848575,
-0.050536267,
-0.07154573,
0.014479492,
0.034988727,
-0.032338884,
0.0029540327,
-0.00441077,
0.003619873,
-0.058783222,
0.032095533,
-0.024132486,
0.020941861,
0.0049245143,
-0.01829202,
-0.037692647,
0.02844524,
-0.020252362,
0.034069393,
-0.0072329864,
0.07246506,
-0.0077940496,
0.035313196,
0.046588544,
-0.008233436,
0.026809368,
0.03347453,
-0.050184757,
-0.028877867,
0.026336182,
-0.029689042,
-0.012235238,
-0.04915727,
-0.042451546,
0.022848126,
0.019427666,
-0.03477241,
-0.010193779,
0.0135263605,
0.0114984205,
-0.017697157,
0.04502027,
0.06191977,
0.035989176,
-0.00812528,
-0.0030875388,
0.013154571,
-0.019346548,
-0.008301035,
-0.01931951,
0.0036874712,
-0.029040102,
0.004535826,
0.017007658,
-0.03663812,
-0.0041471375,
-0.019522304,
-0.019414145,
0.0082604755,
-0.03250112,
0.03385308,
0.037638567,
0.034069393,
0.010721044,
0.01791347,
0.007719692,
0.024254164,
0.022631811,
0.05110409,
0.010180259,
-0.015020276,
0.003112888,
0.016723746,
-0.0014423723,
-0.019076155,
0.010788641,
0.0153717855,
0.022050468,
-0.04645335,
-0.05451103,
-0.012978816,
0.0053402423,
0.0009708763,
0.0010122801,
-0.034339786,
-0.009598916,
-0.072194666,
-0.0791167,
-0.04085623,
0.013817032,
-0.02537629,
-0.033663806,
-0.026606575,
-0.03996394,
0.21004051,
0.053916167,
0.014411895,
0.013729154,
0.026985122,
0.054754384,
-0.012289317,
-0.018373137,
-0.0033055423,
-0.04737268,
-0.020901302,
-0.0093014855,
0.03420459,
0.05921585,
-0.0542136,
0.0087945005,
-0.04199188,
0.007212707,
-0.010923837,
-0.018697608,
-0.05764758,
0.049914364,
-0.010998195,
0.047507875,
0.04164037,
0.025592605,
0.021928793,
-0.072681375,
-0.023470027,
-0.06922036,
0.033961236,
-0.028472278,
0.02402433,
-0.0016502362,
-0.011092832,
0.0050360514,
-0.0014634967,
-0.0013266108,
-0.011255068,
0.02709328,
0.03388012,
0.013979267,
0.017534923,
-0.031068042,
-0.015101394,
0.032609276,
-0.051212247,
0.027214956,
0.032365922,
-0.016656147,
0.0073479027,
-0.037746724,
0.020968901,
-0.045452897,
-0.036557,
0.015182511,
-0.03206849,
-0.017048215,
-0.0140333455,
0.010585847,
0.043154564,
0.006563766,
-0.014858041,
0.010626406,
-0.04569625,
-0.006702342,
-0.026200986,
0.042424507,
-0.020292921,
-0.003481297,
-0.029959435,
-0.004329652,
-0.020211803,
-0.03385308,
-0.004431049,
0.04537178,
0.038503822,
0.042478584,
-0.0025332351,
-0.047264524,
0.039179802,
0.016142404,
0.00009152136,
-0.017670117,
0.034718335,
0.051158167,
-0.02774222,
-0.01116719,
-0.0010063653,
0.013330326,
0.019454705,
0.036448844,
0.0013612548,
0.032392964,
0.015655698
] | pip install transformers --upgrade
And then you can run the following code: |
[
0.0017470926,
0.010426084,
-0.023633398,
0.015840307,
-0.02688052,
-0.02335104,
-0.005851878,
0.006363652,
-0.05280102,
0.0503445,
-0.016390905,
-0.0030177054,
0.018692126,
-0.043934967,
-0.021911012,
0.04464086,
-0.010101371,
-0.010856681,
-0.05000567,
0.0050824513,
-0.0018282706,
-0.0126073025,
-0.05980351,
-0.011859053,
0.012543771,
0.012600243,
0.02016039,
0.0021070996,
0.06025528,
0.03992548,
-0.010828445,
0.03611364,
0.004397732,
-0.015727364,
-0.019779205,
-0.025666378,
0.02280044,
-0.022151016,
-0.01962391,
-0.03992548,
0.0025906384,
-0.0036459528,
0.017506221,
-0.070702545,
-0.035323035,
0.0146967545,
-0.014026153,
-0.0075248512,
-0.0038224268,
-0.025906382,
-0.019934503,
0.0152191175,
0.033148877,
0.0006450125,
-0.06917781,
-0.059747037,
-0.027459353,
-0.0074472027,
-0.06861309,
0.0005607461,
-0.007362495,
0.03292299,
-0.029760575,
-0.0664107,
0.010814327,
0.03148296,
0.010221374,
0.048876237,
-0.0011532576,
0.030014697,
-0.04526205,
0.031991206,
-0.026104033,
-0.023322804,
0.0088731125,
0.019990975,
0.042127874,
-0.042071402,
-0.015600301,
0.005848348,
0.010913152,
0.0405749,
0.003536539,
0.015812071,
0.022983974,
-0.04297495,
0.05339397,
0.008943702,
-0.008915466,
-0.03182179,
0.009423711,
0.010983742,
-0.019158017,
0.0054601054,
0.0115625765,
0.030014697,
0.005449517,
0.045487937,
-0.03422184,
-0.020682752,
0.026146388,
0.061667074,
-0.02884291,
0.02870173,
0.01588266,
0.006060117,
0.0066813054,
0.0023047505,
-0.024056936,
-0.01180964,
-0.011802581,
-0.0068295435,
-0.010595499,
-0.013955563,
0.03549245,
0.007355436,
-0.012663774,
0.035803046,
-0.04492322,
-0.032301802,
-0.0041859634,
-0.005008332,
0.0027882892,
-0.05313985,
0.017040329,
-0.049779784,
0.02755818,
0.033657122,
-0.00012242884,
0.025835793,
0.016616791,
0.015106174,
0.024579298,
0.047831513,
-0.033967715,
-0.005640109,
-0.025694614,
0.0032400626,
0.0023241625,
-0.00705543,
-0.018480357,
-0.0088237,
0.015077938,
0.064773016,
0.014075566,
-0.022165135,
0.032301802,
-0.061780017,
-0.02381693,
0.022518082,
-0.05604814,
0.011273159,
0.008202512,
-0.01106139,
-0.03800544,
-0.0026012268,
-0.02484754,
0.03622658,
0.024791067,
0.019694498,
0.030325292,
-0.0041965516,
-0.02299809,
0.029280566,
0.000834722,
0.019892149,
-0.039445467,
-0.02884291,
0.004256553,
-0.007821328,
-0.017139155,
0.02632992,
-0.009790777,
0.035520688,
0.054834,
0.021473356,
0.063813,
0.0027141701,
-0.023449864,
0.028631141,
-0.028899381,
0.0017559163,
-0.03583128,
0.043426722,
0.015515594,
0.01812741,
-0.0062895333,
-0.018579183,
0.0033688885,
-0.0103484355,
0.007863682,
0.038513687,
-0.044076145,
0.022263959,
-0.05367633,
0.0048918594,
-0.039614882,
0.007990743,
-0.0050118617,
-0.007849564,
-0.011795522,
0.053365737,
-0.048706822,
-0.0033212407,
-0.027049934,
0.041704334,
-0.011124921,
0.030325292,
-0.022758087,
0.010835503,
0.044076145,
-0.005198924,
-0.017026212,
0.0061165886,
0.027967598,
-0.024664005,
-0.004793034,
0.059069376,
-0.011993173,
0.0074613206,
-0.037243072,
0.014753226,
0.06319181,
0.039417233,
0.013186137,
-0.029760575,
0.015614419,
0.04023607,
-0.0049236245,
-0.023943992,
0.008597814,
0.02096511,
0.030353528,
0.046645608,
0.045120873,
-0.020146271,
0.053958688,
0.032668866,
0.018692126,
0.015247353,
-0.019398022,
0.044217326,
0.019581554,
0.036339525,
-0.0014638518,
-0.0017215038,
-0.020033328,
-0.035125386,
-0.03786426,
-0.01547324,
-0.043680843,
0.064095356,
0.039671354,
-0.03422184,
-0.028687613,
-0.037836026,
0.012656715,
0.015176764,
-0.0033371232,
-0.043116126,
0.053281028,
0.009451947,
0.014767344,
-0.010807267,
0.04133727,
0.051473934,
-0.034363016,
0.008153099,
-0.020202743,
-0.05604814,
-0.012063762,
-0.02857467,
-0.07663207,
-0.005625991,
-0.023026327,
-0.01411792,
-0.0002205925,
-0.041760806,
0.031652376,
-0.008866054,
-0.025285194,
0.0019729794,
-0.020950994,
0.03182179,
0.043144364,
0.029421745,
-0.031398255,
-0.0036706591,
-0.05415634,
0.03108766,
-0.029054679,
-0.048480935,
-0.013496731,
-0.016828561,
0.03656541,
0.013136724,
-0.005491871,
-0.0499492,
-0.013313198,
0.020259215,
0.0066213044,
0.009699011,
-0.0068295435,
0.033431236,
-0.031172367,
-0.0024547533,
0.016941505,
-0.011068449,
0.048424464,
0.0100872535,
-0.034080658,
0.023859285,
-0.009494301,
0.036763065,
-0.05246219,
0.032753576,
0.06347417,
-0.000558099,
-0.02586403,
-0.030438235,
-0.05003391,
0.03554892,
-0.003522421,
-0.02422635,
0.0022994562,
0.048142105,
-0.007913094,
-0.043003183,
-0.018000348,
-0.032753576,
-0.024014581,
-0.012247295,
0.0071295495,
0.02233455,
0.0176474,
-0.0048777414,
-0.049215067,
0.02925233,
-0.032612395,
0.013616733,
-0.0018070937,
-0.031257074,
0.009381358,
0.031624142,
-0.004757739,
0.008738993,
0.058278773,
-0.055878725,
0.03820309,
-0.011364926,
0.01928508,
0.024593417,
-0.015416768,
0.0036388938,
-0.03890899,
0.024085172,
0.007426026,
0.021360412,
0.0050824513,
-0.0043200837,
0.02517225,
0.02456518,
-0.0065860096,
-0.022263959,
-0.021699242,
-0.018353296,
-0.019765088,
0.03732778,
0.053535152,
-0.042805534,
0.011124921,
-0.003121825,
-0.032810047,
-0.041224327,
-0.015205,
-0.02463577,
0.06403889,
0.03597246,
0.0046059713,
0.0028659378,
-0.037356015,
0.028941736,
0.0072707287,
0.04627854,
0.06674953,
0.02212278,
-0.026993463,
-0.006024822,
-0.049243305,
0.0035030087,
-0.01173905,
0.005265984,
-0.010009605,
0.007051901,
-0.016277961,
-0.0022729852,
0.014470868,
0.042156108,
0.0052448073,
-0.007104843,
0.04438674,
-0.027769947,
0.0033300642,
0.028292311,
-0.0042318464,
-0.014484986,
-0.062118847,
0.054297518,
0.04534676,
0.0065930686,
-0.0046730316,
-0.028419372,
-0.01377909,
-0.012310826,
0.0019518024,
0.0170968,
-0.02768524,
0.00868958,
0.0037271308,
0.020315686,
-0.01975097,
-0.021558063,
-0.02524284,
-0.009579008,
0.038400743,
-0.02884291,
0.026075797,
-0.023605162,
-0.019440375,
0.021501591,
0.04927154,
-0.028518198,
-0.029167622,
-0.005809524,
-0.047803275,
0.058052886,
0.041789044,
-0.008816641,
0.006236591,
-0.04003842,
0.019426258,
-0.017943876,
-0.00855546,
-0.05313985,
0.0020223921,
-0.03780779,
-0.0084283985,
0.028532315,
0.007069548,
-0.024649888,
0.04941272,
-0.014513222,
0.0063283574,
-0.022983974,
-0.032414746,
-0.028348783,
-0.011534341,
0.02361928,
0.03752543,
0.0013941446,
-0.018169763,
-0.008386045,
0.046730313,
-0.027275821,
-0.05618932,
0.010976682,
-0.009381358,
0.014139096,
0.02584991,
-0.0050542154,
0.0027194642,
0.053281028,
0.012981427,
0.009000174,
-0.009021351,
0.01472499,
-0.0059542325,
-0.049384482,
-0.040490195,
0.013313198,
-0.037073657,
0.02620286,
0.01167552,
-0.006427183,
0.017393278,
-0.045459703,
0.009240178,
-0.0139273275,
-0.03258416,
0.033007696,
0.012480241,
-0.02775583,
-0.014936759,
-0.013623793,
-0.024536945,
-0.027431117,
-0.015233235,
-0.011873171,
0.06127177,
0.0155720655,
0.022376902,
-0.030777065,
-0.04825505,
0.053986926,
-0.046306778,
0.0308053,
-0.00057751115,
-0.01737916,
-0.0053577507,
-0.038316034,
-0.028419372,
0.0028059366,
-0.016659146,
-0.011082567,
0.010157843,
-0.011075508,
0.01757681,
-0.02518637,
-0.0367913,
0.037892498,
-0.027388765,
-0.030720593,
-0.010771973,
0.036283053,
0.025341665,
-0.024311058,
0.053252794,
-0.044951458,
-0.0048812707,
-0.025369901,
0.048622116,
-0.028969971,
0.016122665,
-0.06019881,
-0.026005208,
0.047662098,
0.017153272,
-0.0012538477,
-0.08340867,
0.009063705,
-0.01017902,
-0.031313546,
-0.03882428,
-0.02944998,
-0.034730084,
0.013722618,
-0.0348995,
0.027642887,
0.00006893516,
0.016461495,
-0.026908755,
0.0047471505,
0.021402767,
0.04879153,
-0.018875659,
0.0012909073,
-0.014357924,
0.016687382,
0.0032382978,
0.021431003,
0.001025314,
0.057629347,
-0.014640283,
0.04328554,
-0.05774229,
-0.028292311,
-0.05169982,
0.033374764,
0.038061913,
-0.047690332,
-0.014837934,
0.018169763,
0.02640051,
0.008421339,
0.041421976,
-0.038796045,
0.010129607,
-0.058674075,
-0.06313534,
0.051078632,
-0.043200836,
-0.015247353,
-0.011230805,
0.008753111,
0.05435399,
-0.047803275,
0.008287219,
0.06906486,
0.0067907195,
-0.0120849395,
-0.034080658,
0.046447955,
0.0010703148,
0.020781578,
0.012833189,
0.0059259967,
-0.0041930224,
0.012861425,
-0.038118385,
-0.0054001044,
-0.01743563,
0.028758202,
0.045374993,
-0.010863739,
0.0038965459,
-0.018692126,
0.0006207473,
-0.043144364,
0.019468611,
0.054862235,
0.017280335,
0.0043412605,
0.036706593,
0.010228433,
0.016235609,
-0.04003842,
-0.03854192,
-0.006081294,
0.061667074,
-0.019327432,
-0.042156108,
0.025454609,
0.0672013,
-0.019595673,
-0.05342221,
-0.020230979,
0.03727131,
-0.04961037,
-0.022885147,
-0.022772204,
0.029675867,
-0.03820309,
0.032697104,
0.022023955,
-0.011626107,
-0.010524909,
0.028828792,
0.012317885,
-0.020216862,
0.00991078,
0.048480935,
-0.040349014,
-0.009691952,
-0.033487707,
0.024353411,
-0.033346526,
-0.007009547,
0.06370006,
0.0054001044,
0.03012764,
0.033007696,
-0.016447376,
0.06296592,
-0.008569578,
0.016983857,
0.0045353817,
-0.038457215,
-0.06804837,
-0.020527456,
0.008237806,
0.016913269,
0.0176474,
-0.010863739,
-0.0050859805,
0.039445467,
0.07267905,
-0.00054353994,
-0.09007233,
0.0176474,
-0.031002952,
-0.009331945,
0.032330036,
-0.0060036452,
0.0003035353,
0.048819765,
0.0015591477,
-0.008661344,
0.040349014,
-0.0029471158,
0.0115625765,
-0.03422184,
-0.05110687,
0.004793034,
-0.06268357,
-0.020583928,
-0.012670833,
-0.044076145,
0.0074824975,
0.038061913,
-0.019567437,
-0.009466065,
-0.012374356,
0.031172367,
-0.047069144,
0.021798069,
0.020033328,
0.009374299,
-0.018028583,
-0.0035912457,
-0.00957195,
0.006889545,
0.013087312,
-0.038428977,
0.008117804,
-0.018000348,
-0.00040147835,
-0.03969959,
0.032132387,
0.06155413,
-0.043737315,
0.0025959325,
-0.059634093,
0.030861773,
-0.023591043,
-0.015487358,
-0.03611364,
0.02083805,
0.0019570966,
0.05299867,
-0.0064236536,
0.02164277,
0.03258416,
-0.016955622,
0.015670892,
0.033064168,
0.0062965923,
-0.016052075,
0.03453243,
-0.032612395,
0.033487707,
-0.028998207,
0.017605046,
0.008661344,
-0.019383904,
0.025962854,
0.017477985,
-0.00603894,
-0.042099636,
-0.00069001334,
0.043737315,
0.039812535,
0.051191576,
-0.039276052,
0.012854366,
0.011301395,
-0.04193022,
-0.0018706244,
-0.06912134,
-0.03989724,
-0.0011911995,
-0.055596367,
0.021332176,
-0.02531343,
-0.003698895,
0.020527456,
-0.008054273,
0.0008197217,
0.018918013,
0.011555517,
0.02130394,
-0.00047515624,
-0.05407163,
-0.028334664,
0.005693051,
0.017732108,
-0.030381763,
-0.03351594,
0.042749062,
0.06217532,
0.05308338,
-0.0029965285,
-0.028532315,
-0.01771799,
0.004450674,
0.04226905,
-0.027318174,
-0.0386831,
-0.05130452,
0.010030782,
-0.03921958,
0.011506105,
0.024551062,
0.023831049,
-0.0063071805,
0.046306778,
-0.007849564,
0.03924782,
0.029026443,
0.00264711,
0.009035469,
0.018649772,
0.03185003,
-0.045149107,
0.0031588846,
0.016588556,
0.06296592,
0.04255141,
0.054184575,
-0.0031800615,
0.05788347,
0.013849679,
-0.041478448,
-0.036028933,
0.022560436,
0.005138923,
-0.008068391,
-0.022235723,
-0.015092056,
-0.018240353,
-0.00753191,
0.0059365854,
0.023774577,
0.017336806,
-0.0019041544,
-0.030240584,
-0.023266332,
0.035690103,
0.0010535498,
-0.017365042,
0.02265926,
-0.02016039,
0.057657585,
0.031708848,
-0.0011814934,
0.012444946,
0.052857492,
0.027021699,
0.009903721,
0.0014894406,
-0.01344026,
0.027318174,
-0.018692126,
0.046984438,
-0.028532315,
-0.0030530002,
-0.036395997,
-0.02944998,
-0.054862235,
0.02299809,
-0.020781578,
-0.0283629,
-0.009508419,
-0.007757797,
-0.00916253,
-0.05003391,
0.019906268,
-0.029562924,
0.03026882,
0.019172136,
-0.021148644,
-0.025228722,
0.023845166,
-0.01805682,
0.026089916,
0.033572413,
0.038231328,
-0.0058130533,
0.06127177,
-0.011386102,
-0.0011100215,
0.052970435,
0.021882776,
-0.06742719,
-0.05280102,
0.012903779,
-0.024085172,
-0.023520455,
-0.026160505,
-0.03645247,
-0.026231095,
-0.0078283865,
-0.03780779,
-0.03456067,
0.0015856188,
0.014435573,
-0.027402882,
-0.014993231,
0.0965101,
0.028659377,
-0.015007349,
-0.0082589835,
0.021558063,
-0.0664107,
-0.01031314,
-0.009190766,
0.034843028,
-0.030635886,
-0.016348552,
0.0040059597,
-0.06048117,
0.012028468,
0.009579008,
-0.012924955,
-0.017054448,
0.018014466,
0.026216976,
0.05110687,
0.009381358,
-0.0057248166,
-0.026471099,
0.048565645,
0.029421745,
0.0018618007,
0.069686055,
0.07217081,
0.016602674,
-0.0005880996,
0.02232043,
0.011520223,
-0.035040677,
-0.024395766,
-0.019496847,
-0.020202743,
-0.021628654,
-0.062062375,
-0.009868426,
0.010447261,
0.015247353,
-0.00889429,
-0.015317943,
-0.018169763,
-0.07939918,
-0.022292195,
-0.012219059,
-0.01689915,
0.037045423,
-0.026682869,
0.047153853,
-0.028673494,
0.2346963,
0.07217081,
0.047407974,
0.047153853,
0.01941214,
0.035520688,
0.0014312041,
-0.04568559,
0.014012035,
-0.04458439,
-0.015035585,
-0.06539421,
-0.0014073801,
0.04791622,
-0.04464086,
0.027784066,
-0.07968154,
-0.0007866328,
-0.04229729,
-0.01608031,
-0.04641972,
0.01960979,
0.022701615,
0.024649888,
0.03921958,
0.013073194,
0.00024904893,
-0.04023607,
-0.015374415,
-0.008011919,
0.00234181,
-0.025807558,
0.012070822,
-0.010800209,
-0.01065197,
0.028786438,
0.004094197,
-0.025624024,
-0.0185933,
0.019934503,
0.0045177345,
-0.03854192,
0.018099174,
-0.009423711,
0.041845515,
0.009141353,
0.004267141,
0.044951458,
0.034730084,
-0.037158366,
0.017336806,
-0.04565735,
0.021798069,
-0.014852052,
-0.023873402,
0.00037500725,
-0.06754013,
-0.021473356,
0.0028041718,
0.0008925172,
-0.0097484235,
-0.02328045,
0.0047153854,
0.028461726,
-0.011703756,
0.046476193,
0.001027961,
0.056923453,
-0.037158366,
-0.012508477,
-0.016023839,
-0.009056645,
-0.037045423,
-0.014541457,
-0.007581323,
0.03583128,
0.04458439,
0.01941214,
-0.03888075,
-0.034645375,
0.03475832,
0.0015723833,
-0.0018829776,
-0.050796274,
0.026428746,
0.0439632,
0.009155471,
0.022546317,
0.0015741481,
0.030099405,
0.030494707,
0.053845745,
0.01730857,
-0.016320316,
-0.011357866
] |
import tensorflow as tf
from transformers import AutoTokenizer, TFAutoModelForCausalLM
Will error if the minimal version of Transformers is not installed.
from transformers.utils import check_min_version
check_min_version("4.21.0")
tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2", padding_side="left", pad_token="")
model = TFAutoModelForCausalLM.from_pretrained("openai-community/gpt2")
input_string = ["TensorFlow is"]
One line to create an XLA generation function
xla_generate = tf.function(model.generate, jit_compile=True)
tokenized_input = tokenizer(input_string, return_tensors="tf")
generated_tokens = xla_generate(**tokenized_input, num_beams=2)
decoded_text = tokenizer.decode(generated_tokens[0], skip_special_tokens=True)
print(f"Generated -- {decoded_text}")
Generated -- TensorFlow is an open-source, open-source, distributed-source application # framework for the |
[
0.0028294057,
0.01275999,
-0.0023486165,
0.013431568,
-0.0064296,
-0.034952603,
-0.009539466,
-0.016072093,
-0.013973409,
0.072164156,
0.0034342078,
0.0028542082,
0.021429457,
-0.04206523,
-0.02440577,
0.016438408,
0.01741525,
-0.00035272175,
-0.005883943,
0.04691891,
0.008089467,
-0.03754734,
-0.03687576,
-0.011172622,
-0.03208313,
0.030511027,
0.010272097,
-0.006906573,
0.08089467,
0.06575363,
-0.031564184,
0.031594712,
0.012256306,
0.011447359,
-0.017506829,
-0.019048406,
0.025046822,
-0.00019794393,
-0.03910418,
-0.051375747,
0.024268402,
-0.0050788117,
0.036906287,
-0.036753654,
-0.05003259,
0.00325105,
-0.001053157,
0.0128592,
-0.020376299,
-0.028282609,
-0.019719984,
0.009112098,
-0.010401834,
-0.020895246,
-0.06166311,
-0.003729931,
0.015133409,
-0.054428376,
-0.051497854,
0.043591544,
0.007417889,
-0.002678682,
-0.0045751277,
-0.07100415,
0.007734599,
-0.010523939,
-0.0124470955,
0.0017886498,
-0.017796827,
-0.014499988,
-0.029396819,
0.019277353,
-0.040874705,
0.004987233,
-0.02057472,
-0.026756294,
0.023032086,
-0.0024974323,
-0.0058724955,
0.051375747,
-0.0046514436,
0.026389979,
0.006379995,
-0.022482613,
-0.02168893,
-0.034250498,
0.021459982,
-0.033059973,
0.022024719,
0.0040714443,
0.024421033,
0.020345774,
-0.008722887,
0.006788284,
0.02843524,
0.07021047,
-0.013080516,
0.05729785,
0.012637884,
-0.02765682,
0.009134993,
0.05250522,
-0.03464734,
0.0071011786,
-0.03751681,
0.03547155,
0.05195575,
0.004227891,
-0.018498933,
-0.0018086827,
-0.00040161153,
-0.018544722,
-0.013904725,
-0.0042660492,
-0.015240251,
0.029030504,
0.00135842,
-0.0036650628,
-0.041179966,
-0.010004992,
0.037333652,
0.016850512,
0.0036860497,
0.0023867744,
-0.0274584,
0.00514368,
0.017232092,
0.059648372,
-0.04459891,
0.01572104,
-0.029412081,
0.012195254,
-0.008364203,
0.062273633,
-0.007536178,
0.04688838,
-0.02081893,
0.013179726,
0.05613785,
-0.025260506,
0.010562097,
-0.024039455,
0.011813675,
0.064593635,
-0.024131034,
-0.005036838,
0.04536207,
-0.027962083,
-0.07344626,
0.037181024,
-0.045178913,
0.0378526,
0.011432096,
0.0012954595,
-0.021826299,
-0.015392882,
-0.045392595,
-0.021948403,
0.0050292066,
0.0016426961,
0.031594712,
0.024711033,
-0.03818839,
0.038310494,
-0.030205766,
0.03779155,
-0.037638918,
-0.004643812,
0.035288393,
-0.02954945,
0.055863112,
0.01649946,
-0.00810473,
0.0070820996,
0.06673047,
0.044476807,
0.0514368,
-0.0042584175,
0.03638734,
0.014576304,
-0.05250522,
0.0034342078,
0.0054260483,
0.030343134,
0.026115242,
0.01732367,
0.0026004585,
0.01251578,
0.009409729,
-0.016056828,
0.01295841,
0.012523411,
-0.056229427,
0.02551998,
-0.018758405,
0.038035758,
-0.05729785,
0.010081308,
-0.022421561,
-0.05531364,
0.011874727,
0.008631309,
0.018544722,
0.016194198,
-0.06441048,
0.011302359,
-0.03023629,
0.018239459,
-0.033517867,
0.0019632222,
0.050429434,
-0.006299863,
-0.064593635,
-0.0020452614,
0.015560777,
-0.00873052,
0.0039951284,
0.01625525,
0.022406297,
0.037974708,
-0.0023657875,
0.016224723,
0.054306272,
-0.0016674986,
-0.008417625,
-0.00946315,
0.04575891,
0.026618926,
0.031655762,
0.0014633541,
-0.014561041,
0.04157681,
0.019323142,
0.066181,
-0.0009272361,
0.020361036,
0.021795772,
0.010073676,
-0.040355757,
0.019414721,
-0.030098923,
0.0431947,
0.021337878,
0.013194989,
-0.00053897983,
0.012683674,
0.013607094,
-0.009402097,
-0.0054718377,
-0.010203413,
-0.042278912,
0.06379995,
0.014499988,
-0.010882623,
0.0027378267,
-0.026038926,
0.005807627,
0.0070324945,
-0.010913149,
-0.057755742,
-0.00006731286,
0.051619958,
0.019536827,
-0.024878927,
0.020941036,
0.034616813,
-0.021429457,
0.018895775,
-0.037974708,
-0.032571554,
-0.019491037,
-0.031319976,
-0.05513048,
-0.016362092,
0.018605774,
0.0007264303,
-0.015438672,
-0.030053133,
0.010111834,
0.014866304,
-0.025504716,
-0.0068493364,
-0.014499988,
0.047804173,
-0.0038444048,
0.013767357,
-0.01295841,
0.039226282,
0.0051703905,
0.056931533,
-0.033548392,
-0.016804723,
-0.0018325314,
-0.018529458,
0.038402073,
0.0008628447,
0.035929445,
-0.021994192,
0.0022207876,
-0.012103674,
-0.00055090414,
0.009432624,
-0.03290734,
-0.009188414,
-0.014934988,
0.029274713,
0.028984714,
-0.03681471,
0.037333652,
0.026130505,
0.004735391,
0.026893662,
0.005109338,
0.025199452,
-0.03363997,
0.019124722,
0.009936308,
-0.023230508,
-0.0013975317,
-0.04945259,
0.00018291926,
-0.011363412,
0.0012592095,
-0.030404186,
-0.0012000648,
0.062517844,
-0.0064906524,
-0.067096785,
0.02402419,
-0.02556577,
-0.030648395,
0.0013412489,
-0.016819986,
0.027168399,
0.010149992,
-0.0059907846,
-0.051284168,
0.021872088,
-0.027061557,
0.021139456,
0.014934988,
-0.042004175,
0.0069180205,
-0.00065059157,
0.0050864434,
-0.015034199,
0.063861,
-0.08254309,
0.015217356,
0.0038348653,
-0.017109986,
-0.0006739633,
-0.0029133528,
-0.002928616,
-0.0117297275,
0.028297871,
-0.03003787,
-0.013836041,
-0.017293144,
-0.010256833,
0.023383139,
0.03397576,
-0.012828674,
0.013339989,
-0.0043805228,
-0.0067615733,
-0.021582088,
0.027992608,
0.07735362,
0.004193549,
0.030923134,
-0.0017295051,
-0.057816796,
-0.0032567736,
-0.008669467,
-0.053939957,
0.06801257,
-0.003001116,
0.013042358,
-0.013591832,
-0.028908398,
-0.03174734,
-0.017873144,
0.056595743,
0.012737095,
0.047682066,
-0.01135578,
-0.026969979,
0.008409993,
0.029412081,
0.022101035,
0.02139893,
0.008982361,
0.006231179,
-0.07118731,
-0.01683525,
0.0319305,
0.04499575,
0.0041401284,
0.007913941,
0.016682617,
-0.029228924,
0.04343891,
0.024466822,
0.015011304,
-0.021032615,
-0.0449347,
0.061937846,
-0.008005519,
0.023383139,
-0.03531892,
-0.02440577,
-0.046064172,
-0.013691042,
0.023993665,
-0.008722887,
-0.040722072,
0.0014547686,
0.020544194,
0.053268377,
-0.024390507,
-0.01543104,
-0.017171038,
0.023062613,
0.03794418,
-0.074667305,
0.02877103,
-0.021521036,
-0.012126569,
0.0067844684,
0.01703367,
-0.033304185,
-0.022864193,
-0.028084189,
-0.04847575,
0.02988524,
0.032541025,
0.020223668,
-0.025291033,
-0.0355326,
0.007791836,
0.027885767,
-0.008036046,
0.012248674,
0.0011285188,
0.018559985,
0.03357892,
0.028007872,
-0.0064677577,
-0.03974523,
0.057328373,
-0.025825242,
0.040447336,
-0.02683261,
-0.008913677,
-0.017842617,
0.0021387483,
-0.048292592,
0.01475183,
0.0039531547,
-0.025489453,
0.0072003887,
0.006734863,
-0.024192085,
-0.0065860474,
0.02645103,
-0.025077349,
0.008669467,
0.011928149,
-0.003554405,
-0.0072347308,
0.04847575,
-0.0011924333,
-0.006906573,
0.009554729,
0.015629461,
0.015522619,
-0.020009983,
-0.042126283,
0.0063723633,
-0.0017419065,
0.007810915,
-0.0011523674,
-0.037730496,
-0.025611559,
-0.01062315,
0.005559601,
0.008409993,
-0.019689457,
0.03638734,
-0.021261562,
-0.028679451,
0.018041039,
-0.05720627,
-0.036234707,
-0.02979366,
-0.010989465,
-0.013576568,
0.033884183,
0.018010512,
0.023978401,
0.0017648012,
-0.050673645,
0.070088364,
-0.07417889,
-0.019002616,
-0.04420207,
0.004414865,
0.03788313,
-0.021414192,
-0.016133144,
0.0038386812,
-0.0059221005,
-0.023459455,
0.03672313,
0.019338405,
0.05293259,
-0.02333735,
-0.025016295,
0.036967337,
0.025504716,
-0.05079575,
-0.030694185,
0.03406734,
-0.010859728,
-0.015980514,
0.007539994,
-0.056901008,
-0.009821834,
-0.06807363,
0.043408386,
-0.0062273634,
0.0029610503,
-0.015782092,
-0.06166311,
0.00271684,
0.02440577,
0.031991553,
-0.056839954,
-0.024726296,
-0.044812594,
0.020834194,
-0.04823154,
-0.025809979,
-0.010661307,
-0.028603135,
0.020254195,
0.016026303,
0.027763661,
-0.022681035,
-0.0014395054,
0.00771552,
0.037089445,
0.037394706,
-0.033701025,
-0.016041566,
-0.028404715,
0.048872594,
-0.027183663,
-0.0074407835,
-0.037822075,
0.040447336,
0.011378675,
0.057267323,
0.0033121025,
-0.02275735,
-0.06129679,
-0.013668147,
0.03144208,
-0.08235993,
-0.020147352,
-0.045972593,
0.02251314,
0.001750492,
0.03186945,
-0.00844052,
0.03260208,
-0.064044155,
-0.053634692,
0.007307231,
-0.019445248,
-0.01217999,
-0.024970505,
0.00965394,
0.030678922,
-0.0025775637,
0.00080417696,
0.07143152,
0.020681562,
0.007501836,
-0.031411555,
0.004090523,
0.019170512,
-0.0022494062,
0.053268377,
0.024329454,
-0.05103996,
-0.017842617,
-0.02411577,
-0.010943675,
0.0020528932,
0.030434713,
0.03562418,
-0.008341309,
0.022574192,
-0.03736418,
-0.029534187,
-0.013675778,
0.0192163,
0.00514368,
0.025840506,
0.010646044,
0.036112603,
0.025458926,
0.039623126,
-0.064044155,
-0.03376208,
-0.00049557525,
0.02435998,
-0.026435768,
-0.06248732,
0.054306272,
-0.012241043,
-0.029869976,
-0.08339783,
0.008379467,
-0.006341837,
-0.031319976,
-0.029579977,
0.01591946,
0.019124722,
-0.0010455254,
-0.026206821,
0.028603135,
0.005235259,
0.007219468,
0.014126041,
-0.028053662,
0.002766445,
0.022406297,
0.0390126,
-0.050002065,
-0.014148936,
-0.009165519,
0.018483669,
-0.023657875,
-0.006872231,
0.021124193,
0.017522091,
-0.01067657,
-0.008119994,
-0.01479762,
0.032144185,
-0.0058457847,
-0.01703367,
0.0056206533,
-0.027092082,
-0.07539994,
-0.010646044,
0.018788932,
0.013362884,
-0.0074903886,
0.010821571,
0.011233675,
0.006536442,
0.011317623,
-0.022696298,
-0.05070417,
0.030114187,
-0.030114187,
-0.0056053903,
-0.024909453,
-0.06288416,
-0.011706833,
-0.011493148,
-0.014889198,
-0.0325105,
0.0029419714,
0.03892102,
-0.036662076,
-0.04221786,
-0.019048406,
-0.020208405,
-0.022070508,
0.0016207553,
0.016072093,
-0.06276205,
-0.005319206,
0.02872524,
-0.04322523,
-0.0030144711,
-0.025092611,
0.03186945,
-0.06007574,
-0.013133937,
-0.031121554,
-0.03220524,
-0.03620418,
0.0008661835,
0.0021196692,
0.023886822,
0.031594712,
-0.02115472,
-0.01630104,
-0.010936044,
0.024848402,
-0.00078319013,
0.015278408,
0.025596295,
-0.024726296,
0.020483142,
0.0014519067,
-0.01591946,
-0.026466295,
-0.012698937,
-0.02692419,
-0.018376827,
0.007829994,
0.029473133,
0.018025775,
0.026939452,
0.04090523,
0.026725767,
-0.0034723657,
-0.0031499316,
0.033182077,
0.030358396,
0.026817346,
-0.011599991,
-0.020071037,
-0.043408386,
-0.005780916,
0.024268402,
0.0025985506,
0.010791044,
-0.0076010465,
0.0009844729,
-0.0614189,
-0.01761367,
0.0022932875,
0.03124366,
0.020651035,
-0.0010417097,
-0.015278408,
-0.0071202572,
-0.050978906,
-0.012950779,
-0.07564415,
-0.05061259,
-0.013469726,
-0.06508205,
0.00030955567,
0.012370779,
-0.0053497325,
-0.0008699993,
0.015003672,
0.012012095,
-0.025779452,
0.0466747,
0.025809979,
-0.024100507,
-0.051711537,
0.01610262,
0.048506275,
-0.02625261,
-0.024039455,
-0.054275747,
0.029076293,
0.05012417,
0.023932612,
-0.02402419,
-0.025657348,
-0.01164578,
-0.006376179,
0.047926277,
-0.02329156,
0.022436824,
-0.06611995,
0.030572081,
-0.011019991,
0.003769997,
0.038035758,
0.023795243,
0.027015768,
0.0113710435,
0.024375243,
0.02625261,
0.04353049,
-0.009829465,
0.04499575,
0.024711033,
0.040019967,
-0.024909453,
-0.0057961796,
0.0077269673,
0.024726296,
0.0355326,
0.022497876,
0.004678154,
0.036662076,
0.030068398,
-0.008646572,
-0.008638941,
0.02057472,
0.026130505,
-0.028450504,
-0.03324313,
0.030465238,
0.015072356,
-0.042919964,
-0.014965515,
-0.0035047997,
0.021811035,
-0.009646308,
-0.029900502,
-0.0556189,
0.029534187,
-0.032724183,
-0.013874199,
-0.03513576,
-0.044049438,
0.056992587,
0.023306822,
-0.03382313,
0.003911181,
0.052291535,
0.07655994,
0.03678418,
0.016591039,
0.0066013103,
0.03449471,
0.0015606566,
0.009058677,
0.021826299,
0.013088147,
0.010836833,
-0.038005233,
-0.0123478845,
0.04172944,
-0.025840506,
-0.039897863,
-0.012378411,
0.0072232834,
0.0016550974,
-0.073202044,
0.033182077,
-0.028618397,
-0.0015806896,
0.052108377,
0.005193285,
-0.034219973,
0.018163143,
-0.008822098,
-0.016560514,
0.054214694,
0.021872088,
-0.030175239,
0.06660837,
-0.00853973,
-0.016148409,
0.045606278,
0.03788313,
-0.008280257,
-0.032113656,
0.014103146,
-0.008371836,
-0.033548392,
-0.0075323624,
-0.022726825,
-0.0058801267,
0.007776573,
-0.011943411,
-0.032144185,
-0.0674631,
0.013454462,
-0.054275747,
-0.033121027,
0.06379995,
0.019033143,
0.020895246,
-0.032541025,
-0.00439197,
-0.0103255175,
-0.0366926,
-0.007051573,
0.008608414,
-0.016621565,
-0.016529987,
-0.018025775,
-0.049727328,
-0.020849457,
-0.02358156,
-0.03565471,
-0.04124102,
0.039226282,
0.003983681,
0.039714705,
0.039928388,
-0.010813938,
0.018254722,
0.05745048,
0.05366522,
0.031655762,
0.049391538,
0.06132732,
0.03870734,
-0.0033960498,
-0.005601574,
0.011966306,
-0.0135231465,
0.007639204,
-0.0064219683,
-0.013874199,
-0.03653997,
-0.03382313,
-0.013866568,
0.016606303,
-0.015690513,
0.01217999,
-0.019185774,
-0.0009682558,
-0.058152586,
-0.007288152,
-0.02877103,
0.02193314,
0.02251314,
0.0010989464,
0.01970472,
-0.047621015,
0.27839977,
0.06495995,
0.042981017,
0.045881014,
0.053054694,
0.032724183,
0.025153663,
-0.037822075,
-0.0128592,
-0.042950492,
0.0019956562,
-0.03977576,
-0.024237875,
0.038982075,
-0.022925245,
-0.03513576,
-0.03241892,
-0.016362092,
-0.011157359,
-0.035105236,
-0.030114187,
0.016682617,
0.015347092,
0.066974685,
0.008119994,
0.027977346,
0.01625525,
-0.031991553,
-0.025794717,
-0.04255365,
0.019948931,
-0.0019842088,
0.056839954,
-0.0047010486,
0.011783148,
0.05803048,
-0.020941036,
-0.042004175,
-0.027717872,
0.027778925,
0.010211044,
-0.023642613,
-0.010088939,
-0.015324198,
-0.025687873,
0.042950492,
-0.0033311816,
0.059892584,
0.025703138,
-0.06361679,
0.009440255,
-0.05183364,
0.002625261,
0.01417183,
-0.03678418,
-0.053268377,
-0.01096657,
0.011554201,
0.008844993,
0.03382313,
0.007562889,
0.008127625,
-0.0010588807,
0.04533154,
-0.045819964,
0.039806284,
-0.012798147,
0.069661,
-0.061785214,
-0.012332622,
-0.004006576,
0.00422026,
0.038310494,
-0.004399602,
0.02872524,
0.033273656,
0.0068684155,
0.0325105,
-0.013408673,
-0.00718131,
0.038951546,
-0.03745576,
-0.0056664427,
-0.016285777,
0.00468197,
0.03217471,
-0.03605155,
0.0035963787,
0.012294464,
0.032479975,
-0.0015091435,
0.026466295,
-0.00016753687,
0.0030869711,
0.0036326286
] |
As you can notice, enabling XLA on generate() is just a single line of code. The rest of the code remains unchanged. However, there are a couple of gotchas in the above code snippet that are specific to XLA. You need to be aware of those to realize the speed-ups that XLA can bring in. We discuss these in the following section.
Gotchas to be aware of
When you are executing an XLA-enabled function (like xla_generate() above) for the first time, it will internally try to infer the computation graph, which is time-consuming. This process is known as “tracing”.
You might notice that the generation time is not fast. Successive calls of xla_generate() (or any other XLA-enabled function) won’t have to infer the computation graph, given the inputs to the function follow the same shape with which the computation graph was initially built. While this is not a problem for modalities with fixed input shapes (e.g., images), you must pay attention if you are working with variable input shape modalities (e.g., text).
To ensure xla_generate() always operates with the same input shapes, you can specify the padding arguments when calling the tokenizer. |
[
0.030596703,
0.02726338,
-0.030422032,
0.0031040662,
0.010407537,
-0.013675358,
0.0060516554,
-0.0045414707,
-0.041280806,
0.048762586,
-0.025400214,
0.02588056,
0.030946048,
-0.05263448,
-0.028136741,
0.05187757,
-0.00029202967,
-0.028777204,
-0.038660727,
0.03973787,
-0.01381364,
-0.018704455,
-0.080523774,
-0.010633155,
-0.00774379,
-0.016331827,
-0.0100581935,
-0.018296886,
0.066026,
0.051091548,
0.0017394415,
0.019854378,
0.011557461,
-0.009723405,
-0.016113488,
-0.021033414,
0.02155743,
-0.0064446675,
-0.019170247,
-0.027583612,
0.015909703,
0.007714678,
0.03126628,
-0.0031149832,
-0.042765517,
0.026491912,
0.00054766936,
-0.022736466,
-0.028151296,
-0.032634545,
-0.03449771,
0.03231431,
0.002177941,
-0.0051782955,
-0.03988343,
-0.018951908,
-0.012627327,
-0.05572035,
-0.07091682,
0.033537015,
0.03918474,
0.021149863,
-0.021324534,
-0.060611166,
0.01966515,
0.014002868,
-0.013478853,
0.04221239,
-0.00796213,
0.014119316,
-0.03772914,
0.011419179,
-0.02352249,
0.007154272,
0.015283796,
0.0030294666,
0.037205126,
-0.00778018,
-0.014934452,
0.007274359,
0.004028372,
0.042270612,
-0.010531263,
0.00905383,
-0.007256164,
-0.044803355,
0.025866006,
-0.032197863,
-0.0044213836,
-0.01810766,
-0.012489045,
-0.0015256504,
-0.0009111144,
0.00450872,
0.029621452,
0.07772902,
-0.017627312,
0.032896552,
-0.011994141,
-0.026622918,
0.0045414707,
0.05595325,
-0.027641837,
0.0061135185,
0.017801983,
0.040960573,
0.026943149,
-0.009505065,
0.014221208,
-0.040290996,
-0.008529814,
-0.014046536,
-0.0018631675,
-0.022925694,
0.028704423,
0.009264892,
-0.010866052,
0.009621513,
-0.04558938,
-0.027015928,
0.013275068,
-0.009031995,
0.006932293,
-0.011491959,
0.007736512,
-0.030305583,
0.036040645,
0.062474336,
-0.042649068,
-0.004319492,
0.027685504,
-0.009337671,
0.0060007093,
0.09560378,
-0.03534196,
0.017438084,
-0.028398748,
0.0066448124,
0.028835429,
-0.023056697,
0.038107596,
-0.022911139,
0.04486158,
0.07144083,
0.013624412,
-0.02588056,
0.044948917,
-0.03216875,
-0.053536955,
0.053100273,
-0.040058102,
0.006211771,
-0.0168704,
-0.026215348,
-0.0005212866,
0.0089446595,
-0.027277937,
-0.013136786,
0.0010516708,
0.027190601,
0.003165929,
-0.008245972,
-0.012809277,
0.045560267,
0.003628082,
0.026404576,
-0.05732151,
-0.008573482,
0.007641898,
-0.017394416,
0.0023471543,
0.031702958,
0.0308296,
0.008478868,
0.065793104,
0.054614097,
0.055109,
-0.003831866,
0.009112054,
0.0139446445,
-0.041833933,
0.027350716,
0.0025654943,
0.054584984,
0.012576381,
0.00042803725,
-0.0012299817,
0.008697208,
0.031935856,
-0.03304211,
0.000025302415,
0.021819439,
-0.04093146,
0.021979554,
-0.03406103,
0.019243026,
-0.0509751,
-0.01355891,
-0.015473024,
-0.020160055,
-0.008442477,
0.037205126,
-0.0067394264,
0.022547238,
-0.042736404,
0.016200824,
-0.028238632,
0.013602578,
-0.0029785207,
0.030742263,
0.055021666,
-0.009737961,
-0.043638878,
-0.009519622,
0.016695727,
0.00034911648,
-0.0085662035,
0.03505084,
0.012809277,
0.0058551496,
-0.004879898,
0.02395917,
0.04695764,
0.029868905,
0.0024053783,
-0.033013,
0.009206668,
0.03202319,
0.029723344,
-0.006954127,
0.004734338,
0.042736404,
0.00970885,
0.061193407,
0.018369667,
-0.023726273,
0.043202195,
-0.004486886,
-0.012772887,
0.018369667,
-0.026302684,
0.0062772734,
0.016593836,
0.031528287,
-0.000963425,
0.017860208,
-0.011077113,
-0.016419163,
-0.027467165,
0.011819469,
-0.0458805,
0.04646274,
0.019723374,
-0.021280866,
-0.038165823,
-0.033187672,
0.010720491,
0.012605493,
-0.008486146,
-0.028238632,
0.04072768,
0.020203723,
0.004064762,
-0.023609826,
0.03376991,
0.07301287,
-0.033537015,
0.032692768,
-0.012154257,
-0.060552943,
-0.012663716,
-0.021368202,
-0.06864608,
-0.042416174,
-0.030043576,
-0.007143355,
0.039766982,
-0.021499205,
0.007332583,
-0.0060989624,
-0.040407445,
-0.007692844,
-0.015735032,
0.07213952,
0.02522554,
0.0105094295,
-0.031528287,
0.0013946464,
-0.02563311,
0.025807781,
-0.0070560193,
-0.014847116,
0.018122215,
-0.0139592,
0.048471466,
-0.0003213691,
-0.016098931,
-0.0016666616,
-0.020014495,
0.013653524,
-0.00737989,
0.030654928,
-0.00055540225,
0.0044723297,
-0.011113503,
0.0047743665,
0.018922795,
-0.032896552,
0.019359475,
0.019403143,
0.012780164,
0.025181873,
0.0065865885,
0.020582179,
-0.040407445,
0.04299841,
0.04689942,
-0.0052947435,
-0.02170299,
-0.0429693,
-0.054322977,
0.00418121,
0.0034115615,
0.007641898,
-0.010924275,
0.06625889,
-0.017176075,
-0.03918474,
-0.011062557,
-0.01740897,
-0.02752539,
-0.006484696,
0.016302716,
0.023682605,
0.009272169,
0.004261268,
-0.053857185,
0.034119256,
-0.022838358,
0.030946048,
0.014475938,
-0.0082095815,
0.0055967807,
0.015735032,
-0.0032696407,
0.010080027,
0.053973634,
-0.07772902,
-0.007874794,
-0.008420643,
0.016884955,
-0.023857277,
-0.004050206,
0.0011108045,
-0.022678241,
0.027539944,
0.011572017,
0.04267818,
-0.003704501,
0.022081446,
0.02119353,
0.0066338954,
0.001945045,
-0.013173177,
-0.022983918,
-0.012860223,
-0.0056186146,
0.044366676,
0.08506524,
-0.010342035,
0.0014874409,
0.008864602,
-0.05199402,
-0.039563198,
-0.022547238,
-0.04163015,
0.060611166,
0.011943195,
0.023027586,
-0.008588037,
-0.054672323,
0.010050915,
0.012030531,
0.041950382,
0.030363807,
0.023114922,
-0.018719012,
0.018427892,
-0.027831065,
0.0067830943,
0.013326014,
0.018937351,
0.016026152,
-0.006553837,
-0.024948977,
-0.017481752,
0.02959234,
0.05126622,
0.012772887,
0.020422062,
0.02163021,
-0.029344888,
0.023973726,
0.037088677,
0.0068194843,
-0.014883506,
-0.05085865,
0.0631148,
0.014133872,
0.03475972,
-0.008799099,
-0.0026182598,
-0.0043777158,
-0.002592787,
-0.00042871956,
0.019170247,
-0.020800518,
0.013093119,
0.010473039,
0.05636082,
-0.02410473,
-0.04748166,
0.0048689805,
-0.011186283,
0.056011472,
-0.024876198,
0.0055458345,
-0.0043304088,
-0.023464266,
0.0052110464,
0.0013173176,
-0.04238706,
-0.048704363,
-0.009505065,
-0.06707403,
0.05595325,
0.038049374,
-0.0161426,
-0.0045414707,
-0.03356613,
-0.013507964,
0.013573467,
0.016521055,
-0.033944584,
-0.007685566,
-0.029708788,
0.0033606156,
0.030742263,
-0.0035534825,
-0.017656423,
0.038456943,
-0.04969417,
0.047248762,
-0.027277937,
-0.02199411,
-0.048704363,
-0.020043606,
0.006826762,
0.008195026,
0.016637504,
-0.027656393,
-0.019577814,
0.026331797,
-0.048034787,
-0.037350684,
0.02126631,
-0.0028511558,
0.013027617,
0.024133842,
-0.0016402788,
-0.014628776,
0.06008715,
-0.0055858637,
0.001875904,
-0.013719026,
-0.0015447551,
0.007445392,
-0.05653549,
-0.043609764,
-0.00450872,
-0.029097436,
0.035720415,
-0.007991242,
-0.011601129,
0.009184834,
-0.059679583,
0.023129478,
-0.00748906,
-0.016200824,
0.00606985,
0.004592417,
-0.021470094,
-0.024221178,
-0.0153420195,
-0.025909673,
-0.024090173,
-0.028660756,
0.016055264,
0.05950491,
0.022197895,
0.028471528,
0.0013755417,
-0.0633477,
0.076972105,
-0.078544155,
0.004759811,
-0.007532728,
-0.006815845,
0.0060079875,
-0.029053768,
-0.024148397,
-0.0054766936,
-0.004748894,
-0.01643372,
0.011564739,
-0.011215395,
0.03505084,
-0.040378332,
-0.03184852,
0.023260482,
-0.007649176,
-0.020713182,
-0.019243026,
0.04340598,
-0.016346384,
-0.03403192,
0.020160055,
-0.02708871,
-0.03740891,
-0.05205224,
0.022620019,
-0.031237168,
-0.0011772162,
-0.04649185,
-0.049461275,
0.024963534,
0.006859513,
0.018922795,
-0.08343497,
0.002061493,
-0.02657925,
-0.022882026,
-0.05761263,
-0.035312846,
-0.029344888,
-0.0052292417,
-0.025735002,
0.030887824,
-0.0010707754,
-0.022343455,
-0.016812176,
0.007179745,
0.0042103217,
0.03292566,
-0.018078547,
-0.018427892,
0.0015802353,
0.044454012,
-0.018296886,
0.020407507,
-0.007954852,
0.02417751,
-0.0027019568,
0.075924076,
-0.052547146,
-0.050916873,
-0.03231431,
0.013689915,
0.039242964,
-0.07708856,
0.017976655,
-0.0062372442,
0.0056404485,
0.010276534,
0.030072687,
0.00038436928,
0.027889289,
-0.043667987,
-0.07580763,
0.035749525,
-0.039534084,
0.0071506333,
-0.030684039,
0.0029967157,
0.05761263,
-0.018224107,
0.024308514,
0.058107536,
0.00097343227,
0.021717547,
-0.044745132,
0.033420566,
0.018136771,
0.0020451176,
0.039097406,
0.012110589,
-0.0020305614,
0.03053848,
-0.019912602,
-0.006379165,
0.004188488,
0.026273573,
0.03053848,
0.0012554546,
0.022969361,
-0.014264876,
-0.02294025,
-0.029767012,
0.030363807,
0.030363807,
0.027685504,
0.0028202243,
0.063173026,
0.022998475,
0.02588056,
-0.018442446,
-0.056448154,
0.0045996946,
0.041892156,
-0.022445345,
-0.036477327,
0.022634573,
0.010902441,
-0.0079257395,
-0.06445395,
-0.033478793,
0.034119256,
-0.022052335,
-0.0264628,
0.0009761615,
0.021833993,
-0.024308514,
0.015240128,
0.042037718,
-0.035021726,
-0.017452639,
0.014082926,
-0.020960635,
-0.037932925,
-0.0410188,
0.047714554,
-0.05697217,
-0.022663686,
0.0005917922,
0.016084375,
-0.041746598,
-0.0108878855,
0.050072625,
0.007969408,
0.027962068,
0.0308296,
-0.036593772,
0.068587855,
-0.013049451,
0.0048835366,
0.022561794,
-0.049286604,
-0.033071224,
-0.05039286,
0.032081414,
0.02995624,
0.013427907,
0.000574507,
0.015953371,
0.035691302,
0.029213885,
-0.014555996,
-0.12390064,
0.024133842,
-0.019999938,
-0.025443882,
0.000093874805,
-0.029213885,
0.011695743,
0.029898016,
-0.0393303,
-0.021950442,
0.0032678212,
-0.007114243,
0.0050654868,
-0.020582179,
-0.045676716,
-0.03612798,
0.00076509954,
-0.02395917,
-0.009621513,
-0.043726213,
-0.00008051285,
0.011368233,
-0.03097516,
-0.017394416,
-0.0065356423,
0.026652029,
-0.038369607,
-0.022081446,
-0.0093958955,
0.0025054507,
-0.017932987,
0.016826732,
0.007409002,
0.02672481,
0.017059628,
-0.011921361,
0.028980989,
-0.011608407,
0.017510863,
-0.029563228,
0.028675312,
0.044541348,
-0.03449771,
-0.010669545,
-0.036855783,
0.024308514,
-0.021324534,
-0.007809292,
-0.04282374,
-0.004876259,
-0.029184772,
0.05886445,
0.009570568,
0.02723427,
0.00785296,
-0.0122852605,
0.022925694,
0.015356576,
0.029781569,
0.020203723,
-0.0027547223,
0.0032550846,
0.028587976,
-0.04267818,
0.017860208,
-0.014628776,
-0.02374083,
0.037176013,
0.008151358,
0.0058369543,
-0.046433628,
0.010611321,
0.023420598,
0.017627312,
0.053595178,
-0.026186237,
-0.026768478,
0.0004930844,
-0.041601036,
-0.0060079875,
-0.06352237,
-0.035982423,
0.013769972,
-0.048180345,
0.04294019,
0.0013618954,
0.0063354974,
-0.020305615,
0.023289593,
0.0028984628,
-0.00090793025,
0.0007314388,
0.017583644,
-0.024628745,
-0.057088617,
-0.027219713,
0.018515227,
0.0136608025,
-0.03636088,
-0.053274944,
0.022765579,
0.04599695,
0.040116325,
-0.029184772,
-0.028165853,
-0.027758285,
-0.004101152,
0.015225572,
-0.031877633,
-0.006317302,
-0.041775707,
0.030858712,
-0.02308581,
0.00323507,
0.027438052,
0.033682574,
0.0087554315,
0.03141184,
0.01646283,
0.04457046,
-0.00759823,
-0.00060771283,
0.014745224,
0.021644766,
0.045647603,
-0.02806396,
0.0014374047,
-0.03097516,
0.035312846,
0.031644735,
0.049053706,
0.040174548,
0.035574853,
-0.0063609704,
-0.00956329,
-0.035487518,
0.024570521,
0.026652029,
-0.00752545,
-0.007059658,
-0.0059534023,
0.0010261977,
-0.019519592,
0.024133842,
0.0032332507,
-0.027583612,
0.029039212,
-0.05842777,
-0.011302731,
0.0065611154,
-0.020946078,
0.0051091546,
0.0020414784,
-0.037962038,
0.06905364,
0.044017334,
-0.007354417,
0.036797557,
0.039359413,
0.023420598,
0.030684039,
0.03522551,
-0.024876198,
0.032197863,
0.0031823046,
0.033653464,
-0.020640403,
-0.009628791,
-0.030043576,
-0.03481794,
-0.060844064,
0.020669514,
-0.018588006,
-0.025356546,
-0.02602612,
0.01959237,
0.014752502,
-0.0616592,
0.02922844,
-0.040844124,
0.047510773,
0.01890824,
-0.019636039,
-0.051935796,
0.025181873,
-0.001934128,
0.017598199,
0.04311486,
0.07988331,
0.0060007093,
0.058806226,
0.0024071978,
0.0012891154,
0.007874794,
0.027874732,
-0.045618493,
-0.029141104,
0.03624443,
-0.040960573,
-0.022780133,
-0.028107628,
-0.011572017,
-0.040174548,
0.0021033415,
-0.006932293,
-0.02930122,
0.010997055,
0.008631705,
-0.027685504,
-0.010516707,
0.09350772,
0.030596703,
0.0016621128,
0.00356258,
-0.0015611306,
-0.032081414,
-0.0009070205,
-0.014752502,
-0.010611321,
-0.040087212,
-0.021368202,
-0.0066884803,
-0.04294019,
-0.017277967,
0.019213915,
-0.03621532,
-0.04649185,
0.045793165,
0.0067721773,
0.05184846,
0.03199408,
-0.007256164,
-0.025400214,
0.060727615,
0.03729246,
-0.015283796,
0.044978026,
0.056739274,
-0.010975221,
-0.00883549,
0.009803464,
0.029432224,
-0.039679646,
-0.016390052,
-0.00810769,
-0.012481767,
-0.01981071,
-0.054992553,
-0.032838326,
-0.025545774,
-0.0031622902,
-0.022896582,
-0.021571986,
-0.028602533,
-0.054730546,
-0.02061129,
-0.007751068,
-0.011215395,
0.0065283645,
0.003595331,
0.03243076,
-0.028879097,
0.25199342,
0.07825304,
0.03973787,
0.048908148,
0.012358041,
0.042416174,
-0.021673879,
-0.04250351,
-0.026884925,
-0.057525296,
-0.011914083,
-0.02315859,
-0.023580713,
0.03831138,
-0.042765517,
0.024410406,
-0.086870186,
-0.021804882,
-0.023420598,
-0.009912633,
-0.04730699,
0.037146904,
-0.0031186221,
0.049024597,
0.037379798,
0.049781505,
0.015662251,
-0.03449771,
-0.02163021,
-0.018224107,
0.021106195,
-0.017685534,
0.010465762,
-0.0062263273,
-0.008719042,
0.025822338,
-0.00034752442,
-0.010909719,
-0.014861672,
-0.003875534,
0.03638999,
-0.02752539,
0.0057714526,
0.0004039289,
-0.007427197,
0.017685534,
-0.022008667,
0.08308563,
0.026390022,
-0.04232884,
0.012263427,
-0.04605517,
0.01465061,
-0.012496322,
-0.04573494,
-0.03624443,
-0.023857277,
-0.043202195,
0.017714648,
0.031644735,
0.007641898,
-0.012081477,
-0.027161488,
0.032983888,
-0.016783064,
0.04547293,
-0.010291089,
0.052983824,
-0.052954715,
-0.018078547,
-0.019141136,
-0.0012509059,
-0.009657904,
-0.024090173,
-0.002119717,
0.038049374,
0.036622886,
0.028442416,
-0.012700107,
-0.04232884,
0.055778578,
-0.011579295,
-0.020829631,
-0.046084285,
0.01847156,
0.054439425,
0.00072006695,
0.01781654,
0.012583659,
0.04649185,
0.021790326,
0.043435093,
0.006673924,
0.017074183,
-0.032052305
] |
In order to run the forward pass with an XLA-compiled function, we’d need to do:
py
xla_fn = tf.function(model, jit_compile=True)
_ = xla_fn(random_inputs)
The default call() function of the model is used for compiling the XLA graph. But if there’s any other model function you want to compile into XLA that’s also possible with:
py
my_xla_fn = tf.function(model.my_xla_fn, jit_compile=True)
Running a TF text generation model with XLA from 🤗 Transformers
To enable XLA-accelerated generation within 🤗 Transformers, you need to have a recent version of transformers installed. You can install it by running: |
[
0.0003032751,
0.018087193,
0.03611751,
0.016949633,
-0.006263686,
-0.06068879,
0.025097402,
0.0049092793,
-0.0041200975,
0.07479452,
0.028254129,
0.004582231,
0.03156727,
-0.033558,
-0.034809314,
0.0030980716,
0.030372834,
-0.027472056,
-0.0318801,
0.029832494,
-0.020476067,
-0.03017376,
-0.032847025,
-0.021898016,
-0.024770353,
0.030913174,
0.010849472,
0.0085743535,
0.07689901,
0.0508489,
-0.035605606,
0.033472683,
0.016167562,
-0.0068324655,
0.013572505,
-0.017504193,
0.039245795,
0.0074865622,
-0.016722122,
-0.042829107,
0.01901146,
-0.012911298,
0.021542529,
-0.03520746,
-0.03244888,
-0.004358274,
0.004447146,
0.030657222,
-0.0017454425,
-0.047151834,
0.007600318,
0.021030627,
0.007429684,
-0.0027834654,
-0.041719988,
0.011595995,
0.0029292153,
-0.06922048,
-0.06728663,
0.034780875,
-0.004663993,
-0.013800017,
-0.009726132,
-0.08474817,
0.037880726,
0.007024429,
-0.024144696,
-0.009740352,
0.0027728009,
-0.012961066,
-0.0070884163,
0.001930296,
-0.017376218,
0.002769246,
-0.0010318018,
-0.012719335,
0.039643943,
0.0009464849,
-0.013636492,
0.028083496,
0.02067514,
0.025083182,
-0.0063312287,
-0.023120893,
-0.0054851687,
-0.044848274,
0.03048659,
-0.00643432,
0.026775302,
0.024372209,
0.013821346,
0.026633108,
-0.015257514,
0.023718111,
0.026775302,
0.03890453,
0.0069391117,
0.03606063,
0.0067009353,
-0.019949947,
0.016451951,
0.092654206,
-0.03131132,
0.017674828,
-0.03273327,
0.03409834,
0.054090943,
-0.0036384123,
-0.006953331,
-0.01679322,
0.03213605,
-0.0036401898,
0.0033789065,
0.0037112872,
-0.0016165784,
0.04834627,
-0.0034428944,
0.028965104,
-0.05028012,
-0.035918433,
0.018001877,
0.02320621,
0.0025061853,
0.014646076,
-0.01987885,
-0.014788271,
0.021627847,
0.053237773,
-0.059153084,
0.023860306,
-0.005986406,
0.015186417,
-0.011034325,
0.033757072,
-0.0103446795,
0.043113496,
-0.04416574,
0.020618262,
0.0412934,
-0.019110996,
0.024485964,
-0.038335748,
-0.004607115,
0.06677473,
-0.032306686,
-0.04533174,
0.062224492,
-0.017802803,
-0.058584303,
0.023860306,
-0.051787388,
-0.00027216994,
-0.0024208685,
0.022210846,
0.008631231,
-0.0048772856,
-0.028922446,
-0.021315018,
0.0055136075,
0.009271109,
0.026348718,
-0.006683161,
0.008979608,
0.043454766,
-0.019324288,
0.05818616,
-0.03634502,
-0.03662941,
0.007998464,
-0.028296787,
0.025367573,
-0.010607741,
0.0133805415,
0.0063347835,
0.052384607,
0.03830731,
0.03682848,
-0.009655034,
0.026348718,
0.045246422,
-0.035577167,
-0.0009295992,
0.01734778,
0.03771009,
0.029548103,
0.019679775,
-0.00979012,
0.0018094303,
0.025950572,
-0.022808064,
0.009271109,
0.030344395,
-0.03077098,
0.065295905,
-0.024087818,
0.011375593,
-0.052100215,
0.009974973,
-0.032050733,
-0.043710716,
0.010877911,
0.027344082,
0.02738674,
-0.000482574,
-0.06609219,
-0.017674828,
-0.029434348,
0.029235274,
-0.023035577,
0.031510394,
0.01622444,
-0.01902568,
-0.035833117,
-0.0056060343,
-0.010565082,
0.0027461392,
0.016011147,
0.026021669,
0.018072974,
0.019324288,
-0.03125444,
0.018286265,
0.02597901,
0.00089893845,
-0.00839661,
0.008695219,
0.030429712,
0.0380798,
0.043796033,
0.024955207,
0.0061357105,
0.039501745,
0.022281943,
0.07581833,
0.021300798,
0.017433096,
0.037880726,
-0.0047919685,
-0.040952135,
0.027031252,
-0.02351904,
0.052157093,
0.015669879,
0.012278531,
0.0070030997,
0.0391036,
0.011787958,
0.0022946703,
-0.031681027,
-0.009768791,
-0.046042714,
0.06444273,
0.012897079,
0.010010522,
-0.005609589,
-0.03213605,
0.0148735875,
0.013778687,
-0.0015117096,
-0.04780593,
-0.02152831,
0.023874525,
-0.004823962,
0.0046853223,
0.010486875,
0.029889371,
-0.0049092793,
0.003689958,
-0.0397577,
-0.024656598,
-0.029235274,
-0.007042203,
-0.06688849,
-0.025054744,
-0.0030802973,
-0.039331112,
0.022466796,
-0.032790147,
0.016338196,
0.00923556,
-0.025182718,
0.0039387993,
-0.03131132,
0.031140685,
0.017461535,
0.015257514,
-0.04217501,
0.020689359,
-0.022879161,
0.058925573,
-0.03128288,
-0.012641128,
0.014660295,
-0.030259077,
0.04419418,
-0.0029754285,
0.026675766,
-0.028822908,
0.019765092,
-0.02791286,
-0.030543467,
0.025026305,
-0.05261212,
-0.04663993,
-0.009548388,
0.013821346,
0.022523675,
-0.03165259,
0.011012996,
0.027429398,
-0.016651025,
-0.0059330827,
0.0033024768,
0.016750561,
-0.030259077,
0.03438273,
0.026732644,
-0.0075860987,
0.011389812,
-0.029804055,
0.009072036,
0.027187668,
0.0051901145,
-0.02319199,
-0.0077851713,
0.057958648,
0.006231692,
-0.07126809,
0.045417055,
-0.027358301,
-0.033671755,
0.035662483,
-0.010856582,
0.04140716,
0.022196626,
0.013344993,
-0.024670817,
0.007351477,
-0.03401302,
0.043540083,
0.033643316,
-0.018755509,
0.008716548,
0.016821658,
0.016835878,
0.008730767,
0.064328976,
-0.061655715,
-0.009008048,
-0.0038961405,
0.007970025,
-0.007998464,
0.0035548727,
-0.0060717226,
-0.0026661546,
0.019139435,
-0.028453203,
0.0058904244,
0.008311293,
0.02791286,
0.044336375,
0.03634502,
0.0067400387,
-0.0071701785,
-0.008460597,
-0.053977188,
-0.014503881,
0.03998521,
0.057389867,
0.0011659983,
0.029178396,
0.010216705,
-0.063589565,
-0.013323664,
-0.0054425104,
-0.030515028,
0.0513608,
-0.004489804,
0.03657253,
-0.003298922,
-0.043540083,
0.0008749431,
-0.028623836,
0.017489973,
0.00685024,
0.044336375,
0.0064449846,
-0.032619514,
-0.0019676222,
-0.0028812245,
0.01901146,
-0.019779311,
-0.013871114,
-0.020916872,
-0.08173364,
-0.035861555,
0.015669879,
0.036231264,
0.02317777,
0.0044862493,
0.03685692,
-0.04135028,
0.042032816,
0.03850638,
0.012612688,
-0.003213605,
-0.04703808,
0.063077666,
0.037539456,
-0.012115006,
-0.023774989,
-0.028922446,
-0.03131132,
-0.007970025,
0.03244888,
-0.0022982252,
-0.067116,
0.011546227,
-0.01033757,
0.031396635,
-0.010920569,
-0.02263743,
0.000055183846,
0.028069276,
0.04365384,
-0.06518215,
0.013913772,
-0.017546853,
-0.033956144,
0.024841452,
0.010152717,
-0.018442681,
-0.020746239,
-0.030856296,
-0.05025168,
0.027002813,
0.06012001,
0.009363535,
0.0017018954,
-0.020490287,
0.026106985,
0.0017427764,
-0.02317777,
0.0011331157,
0.0024048714,
0.042004377,
0.0262634,
0.028396323,
-0.0148735875,
-0.06006313,
0.0474931,
-0.046924323,
0.029107299,
-0.020461848,
0.002179137,
-0.035690922,
-0.0028154594,
-0.016892755,
0.034752436,
-0.0046746577,
-0.03327361,
-0.0076785255,
-0.024485964,
-0.019366948,
-0.042118132,
0.043198813,
-0.012193214,
0.008474817,
0.033017658,
-0.0009269331,
-0.028936666,
0.037966043,
0.010238034,
-0.0044115973,
0.01987885,
-0.005655803,
0.021912236,
0.00082295306,
-0.04919944,
0.015769416,
-0.004240963,
0.016153343,
-0.014482552,
-0.06620595,
-0.038819212,
-0.027230326,
-0.020774677,
0.022950258,
-0.035321217,
0.036458775,
-0.011524898,
-0.05030856,
0.0067151547,
-0.042857546,
-0.01871285,
-0.008247305,
-0.00031927202,
-0.0073443674,
0.041236524,
0.04553081,
0.014958905,
0.020561384,
-0.044762958,
0.04939851,
-0.062850155,
-0.010479765,
-0.02263743,
-0.03682848,
0.030116882,
-0.021542529,
-0.051275484,
0.0037219517,
-0.024727695,
-0.030714102,
-0.0014557204,
0.023575917,
0.039871454,
-0.018627534,
-0.046298664,
0.05673577,
0.01538549,
-0.04939851,
-0.028282568,
0.02512584,
-0.026163865,
-0.016508829,
0.0037432811,
-0.04700964,
-0.03099849,
-0.06404459,
0.033671755,
-0.024685036,
-0.019338507,
-0.01958024,
-0.06319142,
-0.0026448253,
0.018101413,
0.021044847,
-0.051275484,
-0.01848534,
-0.035690922,
0.010700167,
-0.027585814,
-0.014916247,
-0.023931405,
-0.0035495404,
0.0060255094,
0.032363564,
0.009185791,
-0.04189062,
0.027799105,
0.0052612117,
0.043227255,
0.024400648,
0.00065542967,
-0.03298922,
-0.025936352,
0.038136676,
-0.01899724,
0.00684313,
-0.03941643,
0.020803116,
-0.010835253,
0.05920996,
0.0268464,
-0.005257657,
-0.018556437,
-0.013593834,
0.029747175,
-0.05505787,
0.010429997,
-0.026334498,
0.010984557,
0.027287204,
0.045928955,
0.008602792,
0.006039729,
-0.055228505,
-0.060461275,
0.017475754,
-0.028709153,
-0.00949862,
-0.044023544,
-0.004692432,
0.041122768,
0.006430765,
0.017589511,
0.05423314,
0.028709153,
0.019395387,
-0.053124018,
-0.028254129,
0.006508972,
-0.02124392,
0.050109487,
0.02405938,
-0.06034752,
0.012235872,
-0.0147740515,
-0.047123395,
-0.008780536,
0.041577794,
0.03435429,
-0.009477291,
0.051503,
-0.051303923,
-0.045928955,
-0.0034642236,
0.030145321,
-0.026405595,
0.0030198644,
-0.0060539483,
0.029149957,
0.0033362482,
0.0279413,
-0.06825356,
-0.028168812,
0.013046383,
0.05790177,
-0.018101413,
-0.04635554,
0.04302818,
-0.012051019,
-0.028481642,
-0.08213178,
-0.022267723,
0.029121518,
-0.019338507,
-0.027870202,
-0.0048772856,
0.016935414,
-0.018940363,
-0.0040703295,
0.04618491,
0.009925205,
0.0012148778,
-0.003945909,
-0.023263087,
-0.042829107,
0.02043341,
0.032164488,
-0.027230326,
-0.03378551,
-0.033643316,
0.0064058807,
-0.050166365,
-0.0053820773,
0.021428773,
0.016779,
0.008161988,
0.0076714153,
0.007870489,
0.07024429,
-0.004575121,
-0.011915933,
-0.01707761,
-0.028438982,
-0.06273639,
-0.015598782,
0.047948126,
0.018556437,
-0.0007736292,
-0.00065454096,
-0.023078235,
0.0029416573,
0.0131317,
-0.021215482,
-0.074225746,
0.021386115,
-0.020063702,
-0.0012735332,
-0.019750873,
-0.067741655,
-0.01848534,
-0.0016965631,
-0.014432783,
-0.03381395,
-0.00017407768,
0.04470608,
-0.012989505,
-0.0065267463,
-0.039444868,
-0.04695276,
-0.021926455,
-0.003330916,
0.0015605892,
-0.036458775,
-0.01089924,
0.01676478,
-0.024016721,
-0.019736653,
-0.028481642,
0.034297414,
-0.04618491,
-0.009669254,
-0.0141270645,
-0.014091516,
-0.026803741,
0.0062245824,
-0.037738528,
0.04135028,
0.033046097,
-0.047294028,
0.0021826918,
-0.02317777,
0.010174046,
-0.029263712,
0.011595995,
0.049370073,
-0.022936039,
-0.009662144,
0.012669567,
0.00699599,
-0.04723715,
0.004525353,
0.00034060125,
-0.02125814,
-0.004248073,
0.018001877,
0.02317777,
0.034496486,
0.01788812,
0.018101413,
-0.019395387,
0.0018236497,
0.03466712,
0.012072348,
0.021357676,
-0.0128330905,
0.006306344,
-0.050166365,
0.0037361714,
0.025523987,
0.007721184,
0.023533259,
-0.016992291,
-0.016281318,
-0.041833743,
0.00223246,
0.0067116,
0.032534197,
0.033472683,
-0.011581776,
-0.022296162,
-0.01592583,
-0.03941643,
-0.0029985353,
-0.07388448,
-0.055313822,
-0.0020760456,
-0.06296391,
0.0073941355,
0.007202172,
-0.02010636,
0.008410829,
0.018798167,
0.006821801,
-0.02853852,
0.035150584,
0.015285953,
0.009121804,
-0.030287517,
0.03771009,
0.03333049,
-0.0024279782,
-0.013053493,
-0.05110485,
0.019153655,
0.041208085,
0.011908824,
-0.0262634,
-0.017234024,
0.021642067,
0.0018307595,
0.018755509,
-0.028709153,
0.02205443,
-0.04385291,
0.025822597,
-0.019821972,
0.023618575,
0.021855358,
0.019978385,
0.007913147,
0.0026430478,
-0.008766317,
0.02488411,
0.026775302,
-0.00321716,
0.050820462,
0.026163865,
0.056650452,
-0.02714501,
-0.0025186273,
0.0074865622,
0.00893695,
0.059096206,
0.027713789,
0.0008944949,
0.037084434,
0.026050108,
0.0013730696,
-0.011795068,
0.032562636,
0.030571906,
-0.025822597,
-0.011503569,
0.0035175467,
0.005342974,
-0.009327986,
-0.026604667,
-0.026604667,
0.00091537973,
-0.010437107,
-0.01958024,
-0.058470547,
0.017148707,
-0.014311918,
-0.02067514,
-0.027017033,
-0.043767594,
0.054887235,
0.03128288,
-0.024770353,
0.0010993445,
0.036145948,
0.03634502,
0.0038783662,
0.018272046,
0.005630919,
0.0469812,
-0.0026625998,
0.022608992,
0.031197565,
0.0052149985,
-0.0065587405,
-0.037055995,
-0.01709183,
0.039217357,
-0.0069924346,
-0.043682277,
-0.011923043,
-0.011155191,
-0.00013452972,
-0.06120069,
0.027344082,
-0.04703808,
0.014418564,
0.045246422,
0.007849159,
-0.04422262,
0.013472968,
0.013764467,
-0.008510365,
0.05227085,
0.051929582,
0.003384239,
0.07251941,
0.030202199,
-0.013103262,
0.04496203,
0.020575603,
-0.026064327,
-0.03972926,
0.021642067,
-0.028581178,
0.0013419645,
-0.016508829,
-0.039331112,
-0.015968489,
-0.0031709466,
-0.010287802,
-0.039217357,
-0.030031566,
0.039501745,
-0.07598896,
-0.027884422,
0.07507891,
0.03358644,
0.03466712,
-0.001901857,
-0.018556437,
-0.023135113,
0.012143445,
-0.01370048,
0.009647924,
-0.031709466,
-0.034951508,
-0.02653357,
-0.0071417396,
-0.047123395,
-0.015840514,
-0.021115944,
-0.021969113,
0.05286807,
0.02740096,
0.008709438,
0.051218607,
-0.012811761,
0.0037397263,
0.04527486,
0.05366436,
-0.0010140275,
0.029690297,
0.057674255,
0.028680714,
-0.03131132,
-0.0178739,
-0.00021662506,
-0.0029096634,
0.026092766,
-0.008467707,
-0.015968489,
-0.046554614,
-0.038989846,
-0.045616128,
-0.009136023,
-0.05064983,
-0.010429997,
-0.020248555,
-0.01764639,
-0.049512267,
0.0015828072,
-0.038989846,
0.022836503,
0.02208287,
-0.007998464,
-0.004777749,
-0.056963284,
0.24048004,
0.04274379,
0.043227255,
0.037909165,
0.06609219,
0.05926684,
0.023092454,
-0.041264962,
-0.02821147,
-0.0023551031,
0.018200949,
-0.04527486,
-0.0072519407,
0.043198813,
-0.007294599,
-0.019807752,
-0.05875494,
-0.022196626,
-0.00030594124,
-0.060233764,
-0.022395698,
0.05224241,
0.021983333,
0.036202826,
0.037311945,
0.020817336,
0.029775614,
-0.06819668,
-0.03242044,
-0.038677014,
0.02629184,
-0.0049092793,
0.03529278,
-0.0081264395,
0.007042203,
0.0374257,
0.0024955207,
-0.056991722,
-0.021229701,
-0.002740807,
-0.0033291385,
-0.010515314,
0.018286265,
-0.031169124,
-0.033444244,
0.028268348,
-0.01454654,
0.081790514,
0.018442681,
-0.065295905,
-0.019054119,
-0.039217357,
0.014134174,
-0.0087734265,
-0.050194804,
-0.023604356,
-0.012228763,
-0.006956886,
-0.015556123,
0.041264962,
-0.004390268,
0.023064015,
-0.0138782235,
0.06364644,
-0.03321673,
0.016963853,
-0.038364187,
0.038790774,
-0.06114381,
-0.000032577078,
-0.0003194942,
0.013814236,
0.04021272,
0.014304808,
0.011624434,
0.022708528,
-0.026704205,
0.04669681,
-0.011716861,
-0.008083781,
0.017262463,
-0.028609617,
0.0036757386,
-0.016579926,
-0.0044755847,
0.0714956,
-0.02545289,
-0.0021738047,
0.010124277,
0.033102974,
0.0119372625,
0.0391036,
-0.000018093748,
0.041549355,
-0.015755197
] | This way, you can ensure that the inputs to xla_generate() will always receive inputs with the shape it was traced with and thus leading to speed-ups in the generation time. You can verify this with the code below: |
[
0.015815284,
0.022622045,
0.0039790045,
0.02229106,
-0.051950116,
-0.032954507,
-0.0033368235,
0.0009515793,
-0.048438806,
0.053590644,
-0.0036462217,
0.016765065,
0.0027629978,
-0.03778975,
-0.034796502,
0.033415005,
-0.011296632,
-0.031170068,
-0.04976274,
0.01875097,
0.004079739,
-0.020564187,
-0.080817685,
-0.016736284,
0.0019948988,
0.0033386224,
0.018348033,
-0.0070334123,
0.05252574,
0.044380654,
-0.00069974357,
0.054079928,
0.004101325,
-0.012332756,
-0.0323501,
-0.025960667,
0.010051844,
-0.035516035,
-0.018448766,
-0.032292537,
0.02181617,
0.013059482,
0.024579167,
-0.053878456,
-0.04550312,
-0.011749936,
-0.025615292,
-0.00709817,
-0.014009262,
-0.029874913,
-0.03491163,
0.0049251877,
0.040495187,
-0.004651766,
-0.085537806,
-0.041185938,
-0.029428804,
-0.0013239365,
-0.044668466,
-0.007950814,
-0.0058569796,
0.018607063,
-0.023413528,
-0.060267888,
0.025385043,
0.008101915,
0.009037306,
0.042596217,
-0.031227631,
0.008231431,
-0.058541015,
0.038135126,
-0.05203646,
-0.033846725,
-0.010044648,
0.0015227068,
0.0154843,
-0.026795322,
-0.029299289,
0.01617505,
0.0047417074,
0.02137006,
0.018132173,
0.015599425,
0.009138039,
-0.054540426,
0.048007086,
-0.00325048,
-0.0020524613,
-0.032494005,
0.012922771,
0.007483119,
-0.008612783,
-0.005169828,
0.021844951,
0.051144242,
0.0109368665,
0.059634704,
-0.035516035,
-0.018822923,
0.025471386,
0.06533339,
-0.027745103,
0.009224383,
0.016333347,
0.024982106,
0.018261688,
0.004025774,
-0.0061807684,
0.011555662,
-0.030191507,
-0.01738386,
0.009130844,
-0.014512934,
-0.0029140993,
0.01418195,
0.008778274,
0.013707059,
-0.030335413,
-0.018923657,
-0.0038530868,
-0.018578282,
0.006558522,
-0.052583303,
0.019657578,
-0.04012103,
0.026996791,
0.02203203,
-0.016707502,
0.0060008857,
0.009310727,
0.009044501,
0.0239172,
0.05514483,
-0.01875097,
0.017642893,
-0.029759789,
-0.005950519,
-0.0067563932,
0.0031983138,
-0.01384377,
-0.002003893,
0.015513081,
0.07258625,
0.00010208342,
-0.00627071,
0.0384805,
-0.044927496,
-0.0017835366,
0.011519686,
-0.053331614,
-0.00060170755,
0.008850227,
-0.024823809,
-0.053561863,
-0.0031083724,
-0.017096048,
0.02367256,
0.0073967753,
0.011382976,
0.03306963,
-0.012483858,
-0.033933066,
0.0394015,
-0.00089041924,
0.04029372,
-0.03678241,
-0.012088115,
0.022118373,
-0.027658759,
0.0013805995,
0.0164053,
0.017758017,
0.023945982,
0.03358769,
0.029011477,
0.055979487,
0.012527029,
-0.01077857,
0.02183056,
-0.028234383,
-0.0060980227,
-0.030335413,
0.026205307,
0.0129803335,
0.011555662,
-0.0071269516,
-0.011663592,
0.011195897,
0.006065644,
0.023068154,
0.05551899,
-0.046280213,
0.0039322353,
-0.03568872,
0.009540977,
-0.01621822,
0.011231874,
-0.02367256,
-0.017657284,
0.0077493456,
0.051316928,
-0.05678536,
0.011634811,
-0.03917125,
0.023168888,
-0.0024769844,
0.04835246,
-0.013340099,
0.0059037493,
0.054511644,
0.016577987,
-0.02721265,
0.015153316,
0.02814804,
-0.03206229,
-0.016837018,
0.02722704,
0.005472031,
0.024679903,
-0.030105164,
0.019384157,
0.055749238,
0.03471016,
0.0023564629,
-0.03378916,
0.018693408,
0.015498691,
0.010857718,
-0.033904284,
-0.0059757023,
-0.00061474903,
0.014836723,
0.056180954,
0.045848496,
-0.018247299,
0.053302832,
0.035113096,
0.00026195415,
0.0027396132,
-0.016117487,
0.02442087,
0.0239172,
0.039746873,
-0.007123354,
0.009368289,
-0.018434376,
-0.024276964,
-0.05108668,
-0.017441424,
-0.036983877,
0.069765694,
0.030652007,
-0.04740268,
-0.039689314,
-0.035343345,
0.010569906,
0.014023653,
-0.011296632,
-0.036983877,
0.05439652,
0.020952733,
0.014138778,
-0.022147154,
0.041704,
0.044265527,
-0.022578873,
0.008965353,
-0.019643188,
-0.060613263,
-0.006080034,
-0.03845172,
-0.06395189,
-0.009202797,
-0.005763441,
-0.018866094,
-0.007555072,
-0.04181912,
0.020089297,
-0.0031407515,
-0.024996497,
0.0043531605,
-0.035746284,
0.05301502,
0.020578578,
0.027126307,
-0.04153131,
0.009476219,
-0.047114868,
0.03767463,
-0.013577544,
-0.031313974,
-0.00785008,
-0.02370134,
0.02600384,
0.014088411,
0.0057742335,
-0.038336594,
-0.009706469,
0.03283938,
-0.0038386963,
0.021542748,
-0.0114333425,
0.030076383,
-0.019657578,
0.020549797,
0.03609166,
-0.00915243,
0.0473739,
0.03353013,
-0.021643482,
0.019657578,
0.007576658,
0.032378882,
-0.031457882,
0.03358769,
0.067232944,
-0.014203535,
-0.02813365,
-0.045387994,
-0.057591237,
0.020290766,
0.015138926,
-0.034105755,
0.018247299,
0.060785953,
-0.006993838,
-0.035976533,
-0.024147449,
-0.036983877,
-0.017527767,
-0.0328106,
0.009562563,
0.034796502,
0.014714402,
-0.01477916,
-0.060670827,
-0.00080317614,
-0.025960667,
0.021758609,
-0.01045478,
-0.021039078,
0.0131746065,
0.04668315,
-0.0017853355,
0.002687447,
0.033213537,
-0.05681414,
0.011167116,
-0.008763883,
0.0116995685,
0.010605882,
-0.009325118,
-0.0015200085,
-0.033645254,
0.020031733,
-0.0059145424,
0.028176822,
-0.004288403,
0.0038279032,
0.03306963,
0.03799122,
0.003435759,
-0.011361389,
-0.022693997,
-0.009778422,
-0.023053763,
0.037588283,
0.049043212,
-0.036811188,
0.0034573448,
0.01595919,
-0.03704144,
-0.03447991,
-0.024938934,
-0.041905466,
0.06636951,
0.04337331,
0.022147154,
-0.0005940625,
-0.049388587,
0.019571235,
-0.003943028,
0.03589019,
0.068614446,
0.017945096,
-0.017570939,
-0.020780046,
-0.033040848,
0.0012034151,
-0.015930409,
0.0042955982,
-0.0038171103,
0.000051294668,
-0.036983877,
0.0036012512,
0.022478139,
0.03542969,
0.014484152,
0.016376518,
0.017945096,
-0.016045535,
0.025039667,
0.02978857,
0.0012196045,
-0.018218517,
-0.04872662,
0.05793661,
0.01667872,
0.021010296,
-0.020204421,
-0.036206786,
-0.038365375,
-0.0043855393,
0.014822332,
0.02627726,
-0.032896943,
-0.0028673299,
0.020477843,
0.017470205,
-0.02229106,
-0.04265378,
-0.027586807,
-0.014138778,
0.05229549,
-0.037818532,
0.016261393,
-0.019139515,
-0.007526291,
0.007296041,
0.04179034,
-0.023269622,
-0.036178004,
-0.007360799,
-0.039257593,
0.044006497,
0.03125641,
-0.009548172,
0.0135847395,
-0.031342756,
0.0243777,
-0.006580108,
-0.01921147,
-0.03822147,
-0.00029770582,
-0.02111103,
-0.019269032,
0.03753072,
-0.024723073,
-0.049964212,
0.06297333,
-0.016549205,
0.012886794,
-0.031054944,
-0.011677983,
-0.024924543,
-0.020017343,
0.020089297,
0.03609166,
-0.0072600646,
-0.03660972,
0.006400225,
0.049388587,
-0.015786503,
-0.04973396,
0.007090975,
0.01664994,
0.0037847315,
0.0028601345,
-0.019254642,
0.027068743,
0.026536291,
0.029932477,
0.019398548,
-0.005533191,
-0.0068247486,
0.012296779,
-0.04501384,
-0.038307812,
0.01620383,
-0.038509283,
0.007936424,
0.00984318,
-0.0106346635,
0.011929818,
-0.04743146,
0.006385835,
-0.016318956,
-0.0283639,
0.03712778,
0.01921147,
-0.027255822,
-0.01326095,
-0.046107527,
-0.017110439,
-0.020578578,
-0.033012066,
-0.020852,
0.08076012,
0.027558025,
0.039977126,
-0.018477548,
-0.047719274,
0.074140444,
-0.05816686,
0.015930409,
-0.0038890634,
-0.00832497,
0.0035274993,
-0.024017934,
-0.014153169,
0.013347294,
-0.035631157,
-0.012915576,
0.02603262,
-0.0061304015,
0.011742741,
-0.040236156,
-0.03070957,
0.04504262,
-0.02911221,
-0.03517066,
-0.0043783444,
0.023154497,
0.046193868,
-0.026421167,
0.043517217,
-0.037358034,
-0.014210731,
-0.015426738,
0.054540426,
-0.0203915,
0.0012906581,
-0.07178038,
-0.037703406,
0.050626177,
0.022060812,
-0.0065225456,
-0.09359655,
-0.002491375,
-0.018693408,
0.0021765803,
-0.025701636,
-0.031601787,
-0.0323501,
-0.0077565406,
-0.03309841,
0.027788274,
0.005853382,
0.017686063,
-0.0039790045,
-0.01277167,
0.011167116,
0.069765694,
-0.036034096,
0.021844951,
-0.025428215,
-0.01031807,
0.008101915,
-0.0084329,
0.003083189,
0.03517066,
-0.026550682,
0.031544223,
-0.071435004,
-0.036638502,
-0.05226671,
0.025111621,
0.03545847,
-0.080011815,
-0.029284898,
0.00017088854,
0.03047932,
0.0042596217,
0.045301653,
-0.028176822,
-0.0003165935,
-0.05160474,
-0.055317517,
0.04760415,
-0.027701931,
-0.022003248,
0.008490462,
0.010411609,
0.067232944,
-0.059231766,
0.012843623,
0.08035719,
0.007108963,
-0.00627071,
-0.03471016,
0.03494041,
0.0025687246,
0.0040725437,
0.020794436,
-0.0035508838,
-0.008101915,
0.009375485,
-0.053331614,
-0.014807941,
0.00410852,
0.02719826,
0.032695476,
-0.03286816,
0.024262575,
-0.02298181,
-0.017441424,
-0.03819269,
0.021988858,
0.04432309,
0.004658961,
0.005428859,
0.033616472,
0.01045478,
0.014750379,
-0.04665437,
-0.035516035,
0.0013617118,
0.059462015,
-0.012649349,
-0.04990665,
0.021657873,
0.03324232,
-0.023284012,
-0.064585075,
0.0022377404,
0.020564187,
-0.055231176,
-0.019830266,
-0.015844066,
0.027385337,
-0.020002954,
0.034623817,
0.037617065,
-0.014879894,
0.011411756,
0.015383566,
-0.008166674,
-0.018333642,
0.03140032,
0.04924468,
-0.018880485,
0.008267407,
-0.056324862,
0.024593558,
-0.036005314,
0.0026388788,
0.052180365,
0.024205012,
0.027025573,
0.038941,
-0.016103096,
0.07091694,
-0.0030508102,
0.021010296,
-0.0067096236,
-0.034134537,
-0.058684923,
-0.008965353,
0.03445113,
-0.00041800237,
0.025399433,
-0.0028817204,
-0.0091956025,
0.026680198,
0.06349139,
-0.005367699,
-0.094575115,
0.046711933,
-0.007058596,
-0.02767315,
0.010051844,
-0.025644073,
0.0035023156,
0.067117825,
-0.02439209,
-0.016779456,
0.029040258,
-0.02646434,
-0.0071053654,
-0.017268736,
-0.021888124,
0.0038638797,
-0.040725436,
-0.017527767,
-0.005284953,
-0.032781817,
0.0028673299,
0.013102653,
0.0015550856,
-0.00033413206,
-0.019571235,
0.028579758,
-0.040840562,
0.017729236,
0.020592969,
0.0117355455,
-0.022377403,
-0.01243349,
-0.008641563,
0.021211764,
0.021427624,
-0.05554777,
0.0043675513,
0.00074291544,
-0.004608594,
-0.03468138,
0.037358034,
0.05822442,
-0.029846132,
0.033155974,
-0.053590644,
0.021758609,
-0.01688019,
-0.006673647,
-0.04366112,
0.010145383,
0.007979595,
0.04665437,
0.010677835,
0.02252131,
0.046049964,
-0.008504853,
0.008627173,
0.03686875,
0.0012942558,
-0.0047884765,
0.039574187,
-0.025759198,
0.029155383,
-0.038365375,
0.02086639,
0.004849637,
-0.02886757,
0.011570053,
0.018650236,
-0.0014714402,
-0.04481237,
0.019556845,
0.043344527,
0.02065053,
0.014995019,
-0.068269074,
0.0018240103,
0.038365375,
-0.023370357,
0.015455519,
-0.051460836,
-0.031573005,
-0.006558522,
-0.04406406,
-0.008900595,
-0.009972695,
-0.0019445317,
0.037185345,
0.0067527955,
-0.015095754,
0.0068247486,
0.028119259,
0.028953915,
-0.0013850966,
-0.06481532,
-0.026896058,
0.0053173318,
-0.01898122,
-0.017052878,
-0.031573005,
0.06752076,
0.055432644,
0.04429431,
-0.012793255,
-0.008360947,
-0.009087672,
-0.0021873733,
0.055173613,
-0.025428215,
-0.016563596,
-0.066945136,
0.023068154,
-0.025672855,
0.025413824,
0.029644664,
0.035141878,
0.0064182137,
0.034997974,
-0.0063390653,
0.03073835,
0.0132825365,
-0.023355966,
0.016793845,
0.0168658,
0.017786799,
-0.023945982,
0.0054756287,
0.0016261394,
0.052842334,
0.044927496,
0.032781817,
-0.019743921,
0.05704439,
0.024233794,
-0.041329842,
-0.04524409,
0.011670788,
0.02017564,
-0.012052139,
-0.011584444,
0.008152283,
-0.0328106,
-0.021931294,
0.0164053,
0.017441424,
0.017628502,
0.0035203039,
-0.04642412,
-0.029126601,
0.027586807,
0.01266374,
-0.023471091,
0.03868197,
-0.004835246,
0.04705731,
0.031745695,
-0.013469614,
0.0054504448,
0.042855248,
0.025845543,
0.02439209,
-0.002128012,
-0.019182688,
0.031803258,
-0.0013976883,
0.050511055,
-0.036293127,
0.0018123179,
-0.026176525,
-0.012210435,
-0.0469134,
0.0011503496,
-0.025629682,
-0.04063909,
-0.015685769,
0.0022377404,
-0.012814841,
-0.062225014,
0.029731007,
-0.018707797,
0.029817352,
0.0260614,
-0.024593558,
-0.018664626,
0.018132173,
-0.019801484,
0.01323217,
0.021729827,
0.040063467,
-0.00075640663,
0.06303089,
-0.016779456,
-0.0019373364,
0.05911664,
0.011210288,
-0.032206193,
-0.027745103,
0.014469762,
-0.0026730564,
-0.02859415,
-0.03258035,
-0.020535406,
-0.015513081,
0.0037127782,
-0.011174312,
-0.038394157,
0.0018437974,
0.008576806,
-0.022909857,
-0.0091596255,
0.09918011,
0.02439209,
-0.03842294,
-0.01126785,
0.012656544,
-0.050482273,
-0.016002363,
0.0018132173,
0.040955685,
-0.03712778,
-0.026838494,
-0.012332756,
-0.063894324,
0.0016099499,
0.007252869,
-0.024895761,
-0.008490462,
0.022449357,
0.007886056,
0.06314601,
0.012008967,
-0.0054540425,
-0.026104573,
0.053993583,
0.030220289,
0.011361389,
0.07431313,
0.07891812,
0.018707797,
0.015613816,
0.009526586,
0.0062203426,
-0.011231874,
0.009310727,
-0.0007671996,
-0.026377995,
-0.005633925,
-0.053389177,
-0.020521015,
0.0112390695,
0.023859637,
-0.000046600853,
-0.019499281,
-0.0094618285,
-0.087840304,
-0.029256117,
0.0030148337,
0.004867625,
0.029500758,
-0.016808236,
0.037214126,
-0.027745103,
0.24613705,
0.065103136,
0.046827056,
0.01712483,
0.022938639,
0.042625,
0.0050906795,
-0.057850268,
-0.014153169,
-0.0309686,
0.003892661,
-0.071147196,
0.00062599167,
0.022809122,
-0.0309686,
0.019283421,
-0.068787135,
-0.011886647,
-0.037070222,
-0.0130307,
-0.055864364,
0.031285193,
0.03471016,
0.043344527,
0.030076383,
0.009871961,
-0.009879156,
-0.04651046,
-0.015441128,
-0.023355966,
0.007965204,
-0.024032325,
0.017412642,
0.0010586095,
-0.01712483,
0.04199181,
0.0066052917,
-0.059864953,
-0.016146269,
0.0030490113,
0.002262924,
-0.020377109,
0.019801484,
-0.010972843,
0.019269032,
0.016031144,
0.012570201,
0.042797685,
0.037099,
-0.052237928,
0.014700011,
-0.03827903,
0.018319251,
-0.0029968452,
-0.040955685,
0.013692669,
-0.041502528,
-0.01970075,
0.0007793417,
0.0037019853,
-0.021456406,
-0.0023708537,
0.006893104,
0.005302941,
-0.00093898753,
0.05905908,
0.000040108214,
0.047632933,
-0.018477548,
0.009857571,
-0.020031733,
-0.0019463305,
-0.030652007,
0.002845744,
0.025255527,
0.008504853,
0.032004725,
-0.006137597,
-0.04107081,
-0.03589019,
0.035918973,
-0.020708093,
-0.014793551,
-0.04832368,
0.0049971407,
0.056929268,
0.015930409,
0.020880781,
-0.0050475076,
0.043459654,
0.018866094,
0.04884174,
-0.0066412683,
-0.022622045,
-0.0027468083
] |
import tensorflow as tf
from transformers import AutoTokenizer, TFAutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2", padding_side="left", pad_token="")
model = TFAutoModelForCausalLM.from_pretrained("openai-community/gpt2")
input_string = ["TensorFlow is"]
xla_generate = tf.function(model.generate, jit_compile=True)
Here, we call the tokenizer with padding options.
tokenized_input = tokenizer(input_string, pad_to_multiple_of=8, padding=True, return_tensors="tf")
generated_tokens = xla_generate(**tokenized_input, num_beams=2)
decoded_text = tokenizer.decode(generated_tokens[0], skip_special_tokens=True)
print(f"Generated -- {decoded_text}") |
[
0.00001678659,
0.028259968,
-0.024502708,
0.014076309,
-0.01439836,
-0.023764674,
0.002824655,
0.011969559,
-0.026421595,
0.05582216,
-0.012459345,
0.019255962,
0.030836375,
-0.061833777,
-0.029172447,
0.03467415,
-0.016370922,
-0.030004412,
-0.04991789,
0.008319649,
0.013579814,
-0.012875328,
-0.069294624,
-0.026555782,
0.0078835385,
0.012237935,
0.022879034,
-0.012311739,
0.04296696,
0.058130194,
0.0032657976,
0.009795716,
0.00653495,
-0.025213903,
-0.021349292,
-0.014062891,
0.031077914,
-0.025280997,
-0.023737837,
-0.030809538,
0.013767677,
0.0034335325,
0.0026619523,
-0.051662337,
-0.0396391,
-0.007950632,
-0.024542965,
-0.009862809,
-0.015377931,
-0.026448432,
-0.002541183,
0.013546267,
0.04205448,
-0.0027978173,
-0.092106566,
-0.05603686,
-0.03266133,
-0.023898862,
-0.052118573,
0.020530747,
0.017015023,
0.022771684,
-0.037304234,
-0.07621872,
0.015498701,
0.03910235,
0.020893054,
0.043235335,
-0.008688666,
-0.000083605344,
-0.072300434,
0.025978774,
-0.027186466,
-0.032500304,
-0.0034134043,
0.018155621,
0.031722017,
-0.031963553,
-0.024636896,
0.018491091,
-0.008916785,
0.022395957,
-0.0010827285,
0.014076309,
0.009507212,
-0.061780103,
0.025978774,
0.0035727525,
0.0069173854,
-0.03491569,
-0.0015272258,
-0.0020178503,
-0.032419793,
-0.019135192,
0.012593533,
0.04683157,
0.0044248453,
0.037357908,
-0.035720814,
-0.025871424,
0.047690373,
0.06537634,
-0.03432526,
0.016760066,
-0.02248989,
0.016115965,
0.022342283,
-0.018236134,
-0.009399861,
-0.003113159,
-0.008245845,
-0.00007144456,
0.008326358,
-0.005082366,
0.011271782,
0.01659904,
-0.0071924706,
0.019873226,
-0.021107754,
-0.029601848,
0.0002476186,
-0.00786341,
0.009621271,
-0.04232286,
0.026126381,
-0.049756866,
0.0018870172,
0.052225925,
0.008272683,
0.012989387,
0.009621271,
0.01262708,
0.031936716,
0.028152619,
-0.020812541,
0.02027579,
-0.034191072,
-0.0007778704,
0.004220209,
-0.009909775,
-0.017189467,
-0.020477071,
0.0077896067,
0.091194086,
0.0033815347,
-0.014921693,
0.026193475,
-0.029843386,
-0.0043476876,
0.018772885,
-0.070958555,
-0.0073803337,
-0.010607553,
0.001436649,
-0.03279552,
0.004408072,
-0.016142802,
0.024167238,
0.013613361,
0.011909175,
0.0303533,
-0.022395957,
-0.02868937,
0.044362515,
0.017444424,
0.037733633,
-0.044845592,
-0.038377736,
0.012197679,
-0.008708794,
-0.008011017,
0.010594133,
0.012144004,
0.023415785,
0.056734636,
0.04041739,
0.048817553,
0.019336475,
-0.0055318954,
0.030406974,
-0.032527145,
-0.01960485,
-0.030031249,
0.039236538,
0.041356705,
0.0062296726,
0.0023214505,
-0.0026971765,
0.007286402,
-0.005287003,
0.009661527,
0.061887454,
-0.048817553,
0.026649714,
-0.045811743,
0.0007678063,
-0.02901142,
0.021631086,
-0.015109556,
-0.028098943,
-0.003383212,
0.044791915,
-0.0394244,
-0.0064041167,
-0.039075512,
0.024945527,
0.009285802,
0.056734636,
0.005273584,
0.038270384,
0.031292614,
0.009936613,
-0.025777493,
0.017135793,
0.013740839,
-0.02169818,
-0.018330066,
0.03190988,
0.005773434,
0.012211097,
-0.0115066115,
0.015901264,
0.052494302,
0.030406974,
0.008829563,
-0.034191072,
0.017189467,
0.030219112,
0.0062162536,
-0.0033228274,
0.009513921,
0.031856205,
0.0113925515,
0.07541359,
0.048576016,
-0.019859808,
0.039129186,
0.041598246,
0.023992794,
0.0056526647,
-0.028635696,
0.04111517,
0.032392956,
0.06714762,
0.00021784565,
0.009822553,
-0.008594734,
-0.04084679,
-0.038136195,
0.0055989893,
-0.04275226,
0.07101223,
0.035935517,
-0.028045269,
-0.031587828,
-0.05448028,
0.014787505,
0.017592032,
-0.012056782,
-0.026314244,
0.036042865,
0.018638697,
-0.0033094087,
-0.02668997,
0.04111517,
0.051877037,
-0.027884243,
-0.0040055085,
0.0018165685,
-0.047314648,
-0.021228524,
-0.03722372,
-0.084914096,
-0.019953739,
-0.020114765,
-0.028206293,
0.020571003,
-0.03776047,
0.022060487,
-0.010480074,
-0.017887246,
0.01340537,
-0.017739639,
0.057217713,
0.034191072,
0.0044818753,
-0.023576811,
-0.0058874935,
-0.03343962,
0.030943727,
-0.03553295,
-0.014076309,
0.008460546,
-0.026542364,
0.02116143,
0.021094335,
0.0004130471,
-0.038699787,
-0.0052031353,
0.0172834,
-0.0005128493,
0.02658262,
-0.0041833073,
0.017041862,
-0.034700986,
0.025938518,
0.030863214,
-0.018853398,
0.05528541,
0.028394157,
-0.020329464,
0.03319808,
0.0025546018,
0.028501507,
-0.05150131,
0.025401767,
0.060438223,
-0.0010667937,
-0.022422796,
-0.044899266,
-0.039182864,
0.020020833,
-0.0010122799,
-0.02791108,
0.019886645,
0.039531752,
0.0014760668,
-0.037304234,
-0.014129984,
-0.049756866,
-0.00559228,
-0.019551175,
0.008051273,
0.034432612,
0.024744246,
-0.013660327,
-0.06371241,
0.019443825,
-0.013579814,
0.024663733,
0.0052467464,
-0.022570401,
0.003753906,
0.044577215,
-0.009903066,
0.028367318,
0.055231735,
-0.06167275,
0.009929904,
-0.0071253767,
0.0029907124,
0.015069299,
-0.007051573,
0.022302026,
-0.04366474,
0.031802528,
-0.010674646,
0.017202888,
-0.0059747156,
0.019470662,
0.023670742,
0.02293271,
0.016330665,
-0.008722212,
-0.031587828,
-0.020463653,
-0.007145505,
0.021657925,
0.05348729,
-0.048200287,
0.012237935,
-0.011271782,
-0.03580133,
-0.04629482,
-0.030514326,
-0.033815347,
0.054185066,
0.04108833,
0.033949535,
0.0017964403,
-0.035479277,
0.012586824,
-0.00559228,
0.04661687,
0.0797076,
0.015122974,
-0.0022308736,
-0.0040122177,
-0.035962354,
0.0094401175,
-0.017699381,
0.0070247357,
-0.019470662,
-0.012123875,
-0.016102547,
-0.013875027,
0.03843141,
0.04433568,
0.024435613,
0.012754559,
0.011526739,
-0.04366474,
0.00036188794,
0.024972366,
-0.0007816444,
-0.008265974,
-0.061780103,
0.056305237,
0.036230728,
0.01850451,
-0.0046127085,
-0.04111517,
-0.025535954,
-0.010406271,
0.0010743417,
0.008762469,
-0.045140803,
0.0055453144,
0.000805966,
0.0048139906,
-0.02004767,
-0.021456642,
-0.026086126,
0.0038746751,
0.025374928,
-0.03808252,
0.002026237,
-0.0071253767,
-0.010540458,
0.017108954,
0.022127582,
-0.0044349097,
-0.025911681,
-0.02248989,
-0.047878236,
0.06371241,
0.04098098,
-0.005250101,
0.0005073979,
-0.042161833,
0.030729026,
0.004062538,
0.0024556383,
-0.053916693,
-0.0070314454,
-0.035908677,
-0.018826561,
0.00786341,
-0.005273584,
-0.022905871,
0.041812945,
-0.02847467,
0.012707593,
-0.04243021,
-0.014935112,
-0.05083037,
-0.009802425,
0.03110475,
0.0484955,
-0.009708494,
-0.033520132,
-0.014921693,
0.039182864,
-0.01716263,
-0.05093772,
0.018303227,
0.007742641,
0.0008998975,
0.023831768,
-0.025213903,
0.0029571655,
0.02690467,
0.03786782,
0.0012160777,
-0.0068637105,
-0.010339176,
-0.0019624978,
-0.04108833,
-0.02471741,
0.008057983,
-0.039451238,
0.02491869,
0.0054882844,
-0.022972966,
0.030568,
-0.053648315,
0.014935112,
-0.011352295,
-0.0243551,
0.030272787,
0.023388948,
-0.040283203,
-0.010124476,
-0.011815243,
-0.03553295,
-0.02326818,
-0.03875346,
-0.025643304,
0.06033087,
-0.0129222935,
0.03199039,
-0.034593638,
-0.06172643,
0.054641306,
-0.057217713,
0.031883042,
0.010587424,
-0.026716808,
-0.009292511,
-0.022436215,
-0.030729026,
0.027186466,
-0.026435014,
-0.03365432,
0.004740187,
0.001915532,
0.025093134,
-0.021979976,
-0.034835175,
0.042886447,
-0.026206894,
-0.027146209,
-0.018692372,
0.027052278,
0.03311757,
-0.020651516,
0.052494302,
-0.037492096,
-0.0299239,
-0.051098745,
0.03797517,
-0.036311243,
0.025415186,
-0.0684895,
-0.052118573,
0.037170045,
-0.0045321956,
-0.0031919943,
-0.08614862,
-0.0015532247,
-0.037465256,
-0.010547168,
-0.032285605,
-0.018437415,
-0.04586542,
0.021228524,
-0.037492096,
0.02968236,
-0.008997298,
0.02936031,
-0.01450571,
0.010587424,
0.020839378,
0.05748609,
-0.03233928,
-0.0026619523,
-0.0031014176,
0.004666384,
0.00038033878,
0.021631086,
0.002978971,
0.0398538,
-0.012103748,
0.022999803,
-0.06253155,
-0.044496704,
-0.046455845,
-0.00025852135,
0.034700986,
-0.056680962,
-0.004143051,
0.006665783,
0.038055684,
0.006645655,
0.019188868,
-0.031480476,
-0.016585622,
-0.058130194,
-0.057217713,
0.044174653,
-0.03977329,
-0.0041598245,
-0.018289808,
0.017189467,
0.06591309,
-0.06516164,
0.022248352,
0.08845665,
0.025764074,
0.024288008,
-0.043369524,
0.041839782,
0.010486783,
0.009708494,
0.010580715,
-0.0068435823,
-0.01373413,
0.011868918,
-0.015029043,
-0.025790911,
-0.012331867,
0.022275189,
0.026341083,
-0.002376803,
0.0009879583,
-0.009983579,
-0.01827639,
-0.057003014,
0.022355702,
0.053540967,
0.0115334485,
0.028662533,
0.023227923,
0.013995796,
0.018544765,
-0.028394157,
-0.016263572,
0.015699983,
0.06473224,
-0.018088527,
-0.04031004,
0.026864415,
0.05560746,
-0.038404573,
-0.07181735,
-0.011050372,
0.018410578,
-0.04862969,
-0.035720814,
-0.019229123,
0.01174144,
-0.036525942,
0.017135793,
0.021470062,
-0.030219112,
-0.011613961,
0.022986384,
0.0067261676,
-0.028045269,
0.0092992205,
0.030648513,
-0.025965355,
0.01384819,
-0.05770079,
0.022047069,
-0.026555782,
-0.0056224726,
0.0487102,
0.01916203,
0.0398538,
0.04519448,
-0.019591432,
0.06816745,
-0.018598441,
0.005162879,
0.0028179456,
-0.03601603,
-0.07868777,
-0.020732028,
0.027253559,
0.018330066,
0.0385656,
-0.002448929,
-0.008923494,
0.036525942,
0.063014634,
-0.012506311,
-0.093126394,
0.025737237,
-0.03821671,
-0.020879636,
0.022073908,
-0.005716404,
-0.004817345,
0.050347295,
-0.0056325365,
-0.019564593,
-0.004418136,
-0.015310838,
0.008809434,
-0.008212298,
-0.047690373,
0.01629041,
-0.05957942,
-0.020181857,
-0.0047804434,
-0.0060652923,
-0.0050119176,
0.031963553,
0.009802425,
0.0056862114,
-0.0046697385,
0.025307836,
-0.037948333,
0.014210497,
0.03322492,
0.024623478,
-0.0010516975,
0.011003407,
-0.003478821,
0.0115334485,
0.027414585,
-0.044550378,
0.0038042266,
-0.028501507,
0.0004335946,
-0.037492096,
0.052360114,
0.065430015,
-0.024824759,
-0.0043275594,
-0.05359464,
0.03343962,
-0.030165436,
-0.008520931,
-0.055553783,
0.0039618975,
-0.014519129,
0.04554337,
0.015780495,
0.020168439,
0.012613662,
-0.018491091,
0.010178152,
0.024408776,
-0.009822553,
-0.014774086,
0.028850395,
-0.012868619,
0.025764074,
-0.022972966,
0.025844587,
-0.0141970785,
-0.017793313,
0.017404169,
-0.0068838387,
-0.026971765,
-0.02259724,
0.001761216,
0.039612263,
0.02693151,
0.03486201,
-0.046053283,
0.00531384,
0.02226177,
-0.03722372,
0.0038444828,
-0.060438223,
-0.03279552,
-0.0018031497,
-0.043798927,
0.017189467,
-0.019685363,
-0.016746648,
0.037277393,
0.00742059,
-0.017417587,
0.0050454643,
-0.0003555979,
0.025629885,
0.00919858,
-0.059096344,
-0.022744846,
0.00092170306,
0.004716704,
-0.028743045,
-0.026971765,
0.061136,
0.06258523,
0.03902184,
0.001253818,
-0.028394157,
-0.018316647,
0.0060317456,
0.033761673,
-0.026971765,
-0.016545366,
-0.034700986,
0.024408776,
-0.041464057,
0.0347815,
0.0092992205,
0.015216907,
-0.008836272,
0.02936031,
-0.017377332,
0.039075512,
0.023549974,
-0.0060753566,
0.030648513,
0.000114583876,
-0.004354397,
-0.01926938,
-0.00829952,
-0.0045120674,
0.0866317,
0.029199284,
0.048656527,
-0.0035056586,
0.045248155,
0.015820751,
-0.040068503,
-0.023898862,
0.02690467,
0.02259724,
0.020222114,
0.0043376232,
-0.027589029,
-0.03386902,
-0.026086126,
0.0016823806,
0.025549373,
0.0046026446,
0.008889947,
-0.043262172,
-0.015377931,
0.023201086,
0.022570401,
-0.00742059,
0.030755863,
-0.010131185,
0.040793117,
0.015431607,
0.012090328,
0.010446527,
0.047556188,
0.039585426,
0.016411178,
0.009285802,
-0.018423997,
0.03896816,
-0.0084202895,
0.04173243,
-0.020544166,
0.004404717,
-0.018692372,
-0.023858607,
-0.061082326,
0.014868017,
-0.0199269,
-0.03808252,
0.0126673365,
-0.008541059,
-0.016652716,
-0.068113774,
0.026716808,
-0.009225417,
0.030916888,
0.021778693,
-0.037465256,
-0.0141970785,
0.0339227,
-0.027253559,
0.03137313,
0.013311438,
0.053648315,
0.0010215053,
0.08094213,
-0.002641824,
0.0076352907,
0.04685841,
0.020960148,
-0.037250556,
-0.03534509,
0.018437415,
-0.0034855304,
-0.016263572,
-0.048012424,
-0.038458247,
-0.014545967,
-0.0063101854,
-0.027884243,
-0.03580133,
-0.0044919397,
0.005904267,
-0.030755863,
0.0038042266,
0.09827921,
0.015686564,
-0.019430406,
-0.0047368323,
0.020960148,
-0.06473224,
0.005095785,
-0.0056325365,
0.030916888,
-0.033171244,
-0.028904071,
-0.008520931,
-0.060652923,
-0.023617068,
-0.0008931881,
-0.016545366,
-0.017793313,
0.039907478,
0.031641502,
0.04076628,
0.007212599,
-0.0036163635,
-0.030809538,
0.047234137,
0.05359464,
0.010043963,
0.07895615,
0.059418395,
-0.0002895523,
0.020087926,
0.003161802,
0.019752456,
-0.010547168,
-0.005152815,
0.0039551877,
-0.021953138,
-0.020799123,
-0.05405088,
-0.021456642,
0.0072796927,
0.0004696576,
0.022194676,
-0.031614665,
-0.022463052,
-0.08185461,
-0.014036053,
-0.025495699,
0.017618868,
0.026099544,
-0.025790911,
0.03467415,
-0.022449633,
0.20858164,
0.06865052,
0.047422,
0.032607656,
0.014438616,
0.03969278,
0.01816904,
-0.03555979,
-0.0012034976,
-0.027226722,
0.010111057,
-0.07401804,
-0.008769178,
0.045677558,
-0.039934315,
0.062370528,
-0.0693483,
-0.01584759,
-0.01638434,
-0.028394157,
-0.04398679,
0.027535355,
0.034191072,
0.032822356,
0.029601848,
0.02381835,
-0.0015876105,
-0.03733107,
-0.012647208,
0.0038612564,
0.002598213,
-0.025723817,
0.020758865,
0.016867418,
-0.007890248,
0.01494853,
0.016773487,
-0.02801843,
-0.0139421215,
-0.0030141955,
0.004387944,
-0.0076956754,
0.019765876,
-0.019081518,
0.012137294,
0.019255962,
-0.004652965,
0.039290212,
0.056895662,
-0.04653636,
0.020087926,
-0.037814148,
0.010379433,
-0.0108558,
-0.04076628,
0.00963469,
-0.05083037,
-0.024958946,
0.0008332229,
0.012620371,
-0.010258663,
-0.005783498,
0.018209295,
0.021872625,
-0.025616467,
0.062424205,
-0.007957341,
0.04983738,
-0.03346646,
0.0003260346,
-0.016223315,
-0.009869519,
-0.041678756,
-0.0035861712,
0.027669542,
0.049273793,
0.0072595645,
0.020839378,
-0.0349962,
-0.039612263,
0.017672544,
-0.0065081124,
0.0024506063,
-0.036740642,
0.012915584,
0.03343962,
0.00052417145,
0.019202286,
-0.0055956347,
0.030031249,
0.030943727,
0.06258523,
-0.01096986,
-0.020316046,
-0.004562388
] |
import time
import tensorflow as tf
from transformers import AutoTokenizer, TFAutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2", padding_side="left", pad_token="")
model = TFAutoModelForCausalLM.from_pretrained("openai-community/gpt2")
xla_generate = tf.function(model.generate, jit_compile=True)
for input_string in ["TensorFlow is", "TensorFlow is a", "TFLite is a"]:
tokenized_input = tokenizer(input_string, pad_to_multiple_of=8, padding=True, return_tensors="tf")
start = time.time_ns()
generated_tokens = xla_generate(**tokenized_input, num_beams=2)
end = time.time_ns()
print(f"Execution time -- {(end - start) / 1e6:.1f} ms\n") |
[
0.022120992,
0.02217959,
0.014854758,
0.013660811,
0.0005823241,
-0.0522114,
0.015221,
-0.007529927,
-0.027922258,
0.043538798,
-0.005391076,
0.03164327,
0.016173229,
-0.081276335,
0.013624187,
0.034573205,
0.043626696,
0.000418431,
-0.006606998,
0.03665346,
-0.005270216,
-0.024318442,
-0.05956553,
0.009302536,
-0.03691715,
-0.015499344,
-0.014876733,
-0.0068999915,
0.07494768,
0.051215224,
-0.018605072,
-0.027526718,
0.036419064,
-0.004142192,
0.011206992,
-0.040374473,
0.04075536,
-0.0035800114,
-0.012994251,
-0.035071295,
0.022663029,
-0.013323869,
0.034456007,
-0.022384685,
-0.035891674,
-0.01867832,
-0.022765577,
-0.019410804,
-0.0114267375,
-0.049896754,
-0.006394578,
0.015587241,
-0.007954767,
-0.019791694,
-0.01873692,
0.007705723,
-0.016246477,
-0.024362389,
-0.06914641,
0.033899322,
0.031203782,
0.008877696,
-0.001514409,
-0.060708202,
0.026457291,
0.062407564,
-0.017184054,
0.016246477,
-0.0064714886,
-0.0016261126,
-0.007932792,
0.016876413,
-0.00007296219,
0.0014173549,
-0.021549655,
-0.026369393,
0.046351533,
0.013924505,
-0.019484052,
0.019278957,
-0.010393936,
0.007910818,
-0.0041202176,
-0.025387866,
-0.019938191,
-0.061645783,
0.014415269,
0.0048636883,
0.02220889,
0.0037027025,
0.016700616,
0.01020349,
-0.0061858203,
-0.0041714916,
0.033137538,
0.054526046,
-0.033371933,
0.022868125,
0.00363861,
-0.0074237166,
0.0057756295,
0.047494207,
-0.021403158,
0.021593604,
-0.02091972,
0.003973721,
0.054057255,
-0.028640091,
0.0068670297,
-0.025299968,
0.040726062,
0.006442189,
-0.0031588336,
0.004424198,
-0.0027339933,
0.02521207,
-0.017696792,
0.03299104,
-0.027863659,
-0.030529898,
0.011031196,
-0.022135641,
0.0034738013,
-0.008408907,
-0.010437885,
-0.05180121,
-0.013924505,
0.07172475,
-0.03170187,
0.023659207,
-0.03219996,
0.018634371,
0.024171945,
0.03609677,
0.017564947,
0.04318721,
-0.00630668,
0.02697003,
0.04254262,
-0.034954097,
-0.0015446239,
-0.029284677,
0.025754107,
0.10530178,
-0.02998786,
-0.0036257915,
0.07986996,
-0.016803164,
-0.041956637,
0.068912014,
-0.05689929,
0.010210815,
-0.004449835,
0.026354743,
0.013726735,
-0.030734994,
-0.018883416,
-0.022457933,
-0.0027889297,
0.028610792,
0.039319698,
-0.006650947,
-0.0030196619,
0.036272567,
0.010811452,
0.041575745,
-0.044974465,
0.0094270585,
0.010591706,
-0.04570695,
0.045472555,
0.0024464938,
-0.001211344,
0.0021150452,
0.06299355,
0.0121299215,
0.046351533,
-0.0023769077,
0.017462399,
0.04907637,
-0.048900574,
0.026750285,
0.016729916,
0.055434324,
0.043802492,
-0.007991391,
0.029885313,
-0.0029995185,
0.019703796,
-0.045501854,
0.0041531795,
0.033694226,
-0.0023915574,
0.048021596,
-0.018898066,
0.009265912,
-0.034543905,
0.0008780642,
-0.01238629,
-0.04834389,
0.017872589,
0.029387224,
0.029270027,
0.024860479,
-0.060649607,
-0.008108589,
0.0009243022,
0.025329268,
-0.0048563634,
0.010496484,
0.05171331,
0.021915896,
-0.04055027,
0.025124172,
0.0011655638,
-0.009053492,
0.008855721,
0.015557942,
0.026222898,
0.013082149,
-0.014884057,
-0.00914139,
0.046849623,
-0.0052445796,
0.003893148,
-0.0261057,
0.0125327865,
0.021036915,
0.009375785,
0.004801427,
-0.008679925,
0.041136254,
0.017140105,
0.06141139,
-0.0037008713,
0.00871655,
0.03864581,
-0.00096321537,
-0.053764265,
0.0076178247,
-0.033606328,
0.045413956,
0.015924184,
0.02524137,
0.023600608,
0.051303122,
-0.0068560424,
-0.043685295,
-0.015162402,
0.01649552,
-0.010196165,
0.05994642,
0.02612035,
-0.023073219,
0.008452856,
-0.040257275,
0.004226428,
0.026647737,
-0.0045157587,
-0.033225436,
0.018077685,
0.026618438,
0.0059953746,
-0.0042117783,
0.0026277832,
0.06299355,
-0.054115854,
0.019879593,
-0.0055082734,
-0.018180232,
-0.025959203,
-0.04204453,
-0.077701814,
-0.017975137,
-0.02959232,
-0.028771939,
0.028522894,
-0.04189804,
0.016568769,
-0.031965565,
-0.0028878148,
-0.0008318262,
-0.0035891675,
0.026896782,
0.03170187,
0.0057097063,
-0.03527639,
0.007581201,
-0.021666853,
0.041019056,
-0.033166837,
0.011829603,
-0.009829924,
-0.024684682,
0.028757289,
-0.0091267405,
0.011023872,
-0.004307001,
-0.0036312852,
-0.003726508,
-0.024318442,
-0.0077643213,
-0.023585958,
-0.045999944,
-0.020128638,
0.013155398,
0.028596142,
-0.022706978,
0.01907386,
0.009068142,
-0.0060283365,
0.0026699011,
0.010423236,
0.03173117,
-0.030207606,
0.051185925,
0.0076251496,
0.010122918,
-0.0142321475,
-0.04052097,
0.004475472,
0.008057315,
0.012364316,
-0.028361747,
-0.008562728,
0.04172224,
-0.008760499,
-0.07477188,
0.021520356,
-0.033899322,
-0.018238831,
0.018180232,
-0.026603788,
0.031438176,
0.025578313,
0.013192021,
-0.040286575,
0.02037768,
-0.05437955,
0.0015995601,
0.022487232,
-0.020509528,
-0.033313334,
0.033284035,
0.0047391662,
0.01000572,
0.05347127,
-0.060942598,
-0.01963055,
-0.0050431467,
-0.0046109813,
-0.018106984,
0.035920974,
0.005171331,
0.03433881,
0.039847083,
-0.015147752,
-0.0015455395,
-0.011983424,
0.02777576,
0.034163013,
0.02169615,
0.01047451,
0.020656025,
-0.012049348,
-0.008650626,
-0.019908892,
-0.019952841,
0.08039735,
-0.0141808735,
0.0026900445,
0.020172587,
-0.049457263,
-0.0070171887,
-0.004409549,
-0.0348076,
0.058510754,
-0.03178977,
0.04737701,
0.01907386,
-0.011536609,
-0.014246797,
0.004131205,
0.024567485,
0.017477049,
0.047962997,
-0.0174331,
-0.021930546,
-0.003409709,
-0.006676584,
0.007852219,
-0.0012781831,
-0.016583418,
-0.014722912,
-0.05944833,
-0.07219354,
0.028391046,
0.0151917,
0.018487874,
0.006086935,
0.029856013,
-0.039817784,
0.041136254,
-0.004958911,
0.01866367,
-0.029035632,
-0.0694394,
0.062583365,
0.0030105058,
0.014444568,
0.00011410714,
-0.02217959,
-0.014100301,
0.0071929847,
0.03993498,
-0.0021901247,
-0.023175767,
0.045384657,
0.002272529,
0.01784329,
-0.026896782,
-0.023644557,
-0.013111449,
0.023966849,
0.019352205,
-0.048548985,
0.018605072,
-0.03000251,
-0.026193598,
0.028830538,
0.044886567,
-0.0014374983,
-0.012034698,
-0.034163013,
-0.060415212,
0.05686999,
0.03999358,
0.006859705,
-0.029475123,
-0.0391732,
0.01779934,
0.02042163,
-0.030090408,
-0.016685966,
0.004116555,
-0.013851256,
0.022677679,
-0.01697896,
0.03562798,
-0.011917501,
0.063169345,
-0.07424449,
0.038880207,
-0.029401874,
-0.038938805,
-0.025505064,
-0.012877054,
0.024186594,
0.03428021,
-0.007258908,
-0.013008901,
-0.036301866,
0.015484694,
-0.01434202,
-0.056811392,
0.040608868,
0.0038382118,
-0.0141808735,
0.025842005,
0.011133744,
-0.0007681917,
0.06293495,
0.011595208,
0.0045633703,
0.011060496,
0.047699302,
0.052475095,
-0.010064319,
-0.051420316,
-0.028112704,
-0.020187236,
0.031350277,
0.02128596,
-0.032844543,
-0.025798056,
-0.035452183,
0.008042665,
-0.0020912394,
-0.044886567,
0.016568769,
0.03094009,
-0.042777017,
-0.004369262,
-0.028625442,
-0.045589752,
-0.016685966,
-0.014547115,
0.000876233,
0.034661103,
0.038821608,
0.017081507,
-0.0031222096,
-0.024406338,
0.066216476,
-0.05092223,
-0.024010798,
-0.003539725,
-0.023835002,
0.023556659,
0.01152196,
-0.030676395,
-0.0052995156,
-0.03425091,
0.0008592943,
-0.015719088,
0.0072442587,
0.04386109,
-0.0060539735,
-0.0012681115,
0.04304071,
0.01778469,
-0.05171331,
-0.038850907,
0.03302034,
-0.03955409,
-0.005259229,
0.041194852,
-0.06762285,
-0.030324804,
-0.09047632,
0.02354201,
-0.03176047,
0.026017802,
-0.025109522,
-0.0738343,
-0.0026332769,
-0.007815596,
0.04963306,
-0.058071263,
-0.028654741,
-0.016158579,
-0.01455444,
-0.020787872,
-0.01261336,
-0.029680217,
-0.00727722,
-0.000044864595,
0.02962162,
-0.012869729,
-0.013213996,
-0.0018824817,
0.02217959,
0.0061455336,
0.049427964,
-0.014774186,
-0.047933698,
-0.005072446,
0.024552835,
-0.030822892,
0.015133102,
-0.0391439,
0.034016516,
-0.029548371,
0.056811392,
-0.011382788,
-0.02871334,
-0.022545831,
-0.014971956,
0.0067608193,
-0.042894214,
-0.0077643213,
0.021095514,
0.004995535,
0.016026732,
0.036301866,
-0.0015647671,
0.009903172,
-0.06006362,
-0.051625412,
0.014246797,
-0.049838156,
-0.008306359,
-0.04608784,
0.014481192,
0.034573205,
-0.04005218,
0.027746461,
0.06996679,
0.014847433,
0.01781399,
-0.030119708,
0.01349234,
0.0039261095,
-0.014034377,
0.045384657,
0.0011701419,
-0.03568658,
-0.0067388453,
-0.027482769,
-0.042249627,
-0.003761301,
0.034924798,
0.06809163,
0.012261768,
0.013426417,
-0.026193598,
-0.030119708,
-0.042425424,
0.049984653,
0.012027374,
0.045619052,
0.037766833,
0.014400619,
-0.010254764,
0.022560481,
-0.038382117,
-0.004105568,
-0.030354101,
0.039788485,
-0.0040799314,
-0.03307894,
0.052416496,
0.0058598653,
-0.021036915,
-0.07729162,
-0.019176409,
0.02481653,
-0.028156653,
-0.03556938,
0.00889967,
0.0009934303,
-0.012935652,
-0.018414626,
0.029665569,
-0.011602533,
-0.00018415085,
0.022838825,
0.00040881717,
-0.027512068,
-0.023087868,
0.024889778,
-0.0036312852,
0.009771326,
-0.025929904,
-0.0032558877,
-0.04966236,
0.003929772,
0.02127131,
-0.0021571629,
-0.0012525462,
-0.0024995988,
-0.007647124,
0.040198676,
-0.022868125,
-0.0065154377,
0.03094009,
-0.038616512,
-0.072955325,
-0.03345983,
0.037708234,
-0.0028035792,
0.0138805555,
0.0014210173,
0.026222898,
0.019689146,
-0.020612076,
-0.01482546,
-0.08133493,
0.018546473,
-0.024098696,
0.0028255538,
-0.011624508,
-0.042425424,
-0.007778971,
0.0348662,
0.0000042847405,
-0.045120962,
-0.0010062488,
0.03609677,
-0.018824818,
-0.032551553,
-0.019396154,
-0.0062590684,
-0.011814954,
-0.013455716,
-0.004274039,
-0.0477872,
0.0070648002,
0.033752825,
-0.0392318,
0.00072882074,
0.012437564,
0.024640733,
-0.03398722,
-0.022560481,
-0.01866367,
-0.03794263,
-0.01173438,
-0.0064898008,
-0.038323518,
0.0095296055,
0.029167479,
-0.016202528,
0.028464295,
0.009544255,
0.03700505,
-0.011163044,
-0.000878522,
0.06639227,
-0.019879593,
-0.0067974436,
-0.02910888,
0.04476937,
-0.051391017,
-0.0025398855,
-0.015264949,
-0.012833105,
-0.023849651,
0.007874194,
0.012422915,
0.014393294,
0.037766833,
-0.01323597,
0.034192313,
-0.0013441066,
0.0123789655,
0.00045940428,
0.020758573,
-0.006116234,
-0.011741705,
-0.015426096,
0.018048385,
0.01697896,
0.0012122596,
-0.0039444217,
-0.009859223,
-0.015352847,
-0.03343053,
-0.016583418,
0.020465579,
0.028581493,
0.029475123,
0.0057756295,
-0.020758573,
-0.024245193,
-0.06428272,
-0.0028695029,
-0.057807572,
-0.01240094,
0.00063268235,
-0.07805341,
0.046175737,
0.03173117,
-0.009947121,
0.004182479,
0.007145373,
0.012569411,
-0.01566049,
0.023175767,
0.026955381,
0.026032452,
-0.067329854,
0.027673213,
0.02354201,
0.0022084368,
-0.06434132,
-0.04049167,
0.011390113,
0.06592348,
-0.022750927,
-0.038440716,
-0.031965565,
-0.009654128,
0.0021425132,
0.027526718,
-0.045882747,
-0.006467826,
-0.016231827,
0.050160445,
-0.013909855,
-0.005566872,
0.022047743,
0.015177051,
0.0039590714,
0.020187236,
-0.025475765,
0.04954516,
0.04954516,
-0.015440745,
0.059360433,
0.03222926,
0.040989757,
-0.005354452,
-0.0029464136,
-0.011031196,
0.029812064,
0.042952813,
0.032463655,
-0.014195523,
0.028874487,
0.023058569,
-0.021959845,
0.00718566,
0.009544255,
0.022003794,
-0.0141589,
-0.01173438,
-0.01323597,
0.007815596,
-0.04078466,
0.0049625733,
-0.0059184637,
0.0007462172,
-0.007947442,
-0.021242011,
-0.033284035,
-0.0010630161,
-0.01908851,
-0.03864581,
-0.022838825,
-0.029504422,
0.026589138,
0.028361747,
-0.021549655,
0.00033556885,
0.058540054,
0.032317158,
0.04213243,
0.027482769,
0.023776403,
0.03524709,
-0.03164327,
0.02516812,
0.014891382,
-0.020216536,
-0.014964631,
-0.0039041352,
-0.04257192,
0.059712026,
-0.0392318,
-0.036213968,
-0.011558584,
-0.0069549275,
0.010437885,
-0.06129419,
0.04869548,
-0.048812676,
0.02351271,
0.045560453,
0.0049991976,
-0.026281497,
0.0022615418,
-0.00424474,
0.00001826916,
0.04137065,
0.03618467,
-0.025724808,
0.09416804,
0.01371941,
-0.016422272,
0.0048929877,
0.014173549,
-0.03955409,
-0.017037557,
-0.005804929,
-0.02779041,
-0.0044791345,
-0.02040698,
-0.0031771457,
-0.008804448,
0.019674497,
-0.035041995,
-0.026340093,
-0.008291709,
-0.015704438,
-0.07184195,
-0.04441778,
0.076705635,
0.057221584,
0.01960125,
-0.0011124588,
-0.01607068,
-0.012942977,
-0.009192663,
0.004449835,
0.027087227,
-0.005486299,
-0.038440716,
0.00033900235,
-0.036419064,
-0.04699612,
-0.039817784,
-0.022721628,
-0.022999972,
0.049369365,
0.0028347098,
0.03392862,
0.038059823,
0.014722912,
0.0066472846,
0.02609105,
0.060708202,
-0.010122918,
0.066216476,
0.05739738,
0.02874264,
-0.022501882,
-0.01738915,
-0.001585826,
-0.032492954,
0.0003902762,
-0.022516532,
0.019440103,
-0.044974465,
-0.035422884,
-0.017213354,
0.0006459586,
0.015396796,
-0.01326527,
-0.047464907,
0.014136925,
-0.05558082,
-0.030764293,
-0.03999358,
0.03870441,
0.02736557,
-0.0016096317,
0.0042703766,
-0.038909506,
0.2571309,
0.052855983,
0.035129894,
0.01002037,
0.0069732396,
0.0036495973,
0.030207606,
-0.052826684,
-0.0011225304,
-0.019381505,
0.008452856,
-0.02216494,
-0.005717031,
0.03744454,
-0.027585316,
0.030705694,
-0.057133686,
-0.03691715,
-0.02220889,
-0.06346234,
-0.024582135,
0.022047743,
0.0019520676,
0.04049167,
0.0121299215,
0.00041064838,
0.017022908,
-0.0062480816,
-0.008086614,
-0.010489159,
0.032551553,
-0.03685855,
0.029826714,
-0.030471299,
-0.012891703,
0.04049167,
-0.0045816824,
-0.019015262,
-0.00914139,
-0.0030727668,
0.00009968638,
0.0016132941,
0.0011738043,
-0.040257275,
-0.023175767,
0.058540054,
-0.00029116205,
0.03568658,
0.07283813,
-0.062583365,
0.018883416,
-0.056518402,
0.015470045,
-0.0037045337,
-0.04576555,
-0.02169615,
-0.046615228,
-0.027468119,
-0.012950302,
0.041985936,
0.0347783,
-0.032698046,
0.020480229,
0.02957767,
-0.038030524,
0.028142003,
-0.03741524,
0.02957767,
-0.041165553,
0.0057023815,
-0.003215601,
-0.0028749965,
0.0074310414,
-0.027878309,
0.023996148,
0.0737171,
-0.011639157,
0.034426708,
-0.014012403,
0.018194882,
0.02042163,
-0.046146438,
-0.025050923,
-0.020509528,
0.0010639317,
0.030734994,
-0.02783436,
0.020699974,
0.013485015,
0.041458547,
0.007705723,
0.019938191,
-0.023366213,
0.0018302923,
-0.031233082
] |
On a Tesla T4 GPU, you can expect the outputs like so:
```bash
Execution time -- 30819.6 ms
Execution time -- 79.0 ms
Execution time -- 78.9 ms
``
The first call toxla_generate()` is time-consuming because of tracing, but the successive calls are orders of magnitude faster. Keep in mind that any change in the generation options at any point with trigger re-tracing and thus leading to slow-downs in the generation time.
We didn’t cover all the text generation options 🤗 Transformers provides in this document. We encourage you to read the documentation for advanced use cases.
Additional Resources
Here, we leave you with some additional resources if you want to delve deeper into XLA in 🤗 Transformers and in general. |
[
0.035487033,
-0.00261663,
-0.030774584,
0.01255695,
0.014712033,
-0.025932832,
0.013426167,
-0.0055313795,
-0.029266026,
0.038820226,
-0.0021407157,
-0.031694088,
0.019654356,
-0.030113691,
-0.035257157,
0.050055392,
-0.00016129449,
-0.06856037,
-0.024783453,
0.028188486,
0.03410778,
0.020171577,
-0.08855954,
-0.014855705,
-0.021464625,
-0.01152251,
0.057009127,
0.008684984,
0.080858715,
0.031607885,
-0.01004987,
-0.009388978,
-0.0047196317,
-0.046176244,
-0.010603008,
-0.06614668,
-0.018749222,
0.0072949557,
-0.04123392,
-0.03333195,
0.002963239,
0.003846823,
0.015732106,
-0.022700207,
-0.025904097,
-0.04439471,
-0.017973391,
-0.010998107,
0.0124204615,
-0.041205186,
-0.009942116,
0.008440741,
0.022772044,
-0.004109025,
-0.009001063,
0.0055888486,
0.013397432,
0.022355394,
-0.04160747,
-0.037584648,
0.017025156,
0.015487863,
-0.00018273307,
-0.031061929,
0.042584438,
0.032728527,
-0.018059595,
0.052670226,
-0.011623081,
-0.02604777,
-0.032125104,
0.030314833,
-0.05942282,
-0.030573443,
-0.009740975,
0.022197355,
-0.033561826,
0.0027315677,
-0.016895851,
0.020214679,
0.049164627,
0.029567737,
-0.016967686,
0.0039150673,
-0.042699378,
-0.012025363,
0.018663019,
-0.005886968,
0.001824637,
0.0037067425,
0.015171784,
0.035716906,
0.0045400416,
-0.03792946,
0.005721745,
0.017757883,
-0.019855497,
0.06488236,
0.0441361,
-0.0067741442,
0.029266026,
0.0701695,
0.03048724,
0.045285475,
0.0013056211,
0.02175197,
0.017140092,
0.016766544,
-0.0057720304,
-0.0036025804,
0.039998338,
0.005728929,
-0.04815892,
-0.015545332,
0.003385276,
-0.032010164,
0.018763589,
-0.013498003,
-0.002704629,
-0.028303422,
0.013023885,
-0.022197355,
0.037440974,
-0.022843879,
0.0155884335,
-0.09062842,
-0.012154668,
-0.0041126166,
-0.037757054,
-0.049538173,
-0.010955005,
0.011558428,
-0.049049687,
0.025530549,
0.003936618,
-0.020157209,
-0.0037965379,
-0.0020167984,
-0.011615897,
0.007305731,
0.025157,
-0.036866285,
-0.00945363,
0.06919253,
0.004852528,
0.017226296,
0.033245746,
-0.02107671,
-0.014597096,
0.015473495,
-0.040860374,
-0.009058532,
0.017197562,
0.026320746,
-0.0017725558,
-0.0131172715,
-0.04577396,
0.041837342,
0.0012266014,
-0.0046334285,
0.060112447,
0.013584206,
-0.014043957,
0.043446474,
0.0021963888,
0.033504356,
-0.056693047,
-0.029309127,
0.0020347575,
-0.012980783,
0.025415612,
-0.023892686,
-0.026349481,
-0.0010083992,
0.050515145,
0.04499813,
0.05088869,
-0.045544088,
0.004109025,
-0.0075212396,
-0.017628578,
-0.024955861,
0.020157209,
0.057555083,
0.0012050505,
-0.0007138712,
-0.0048130187,
-0.016062552,
-0.01622059,
0.027412655,
0.02795861,
0.01265752,
-0.059192944,
0.03422272,
-0.03611919,
-0.026263278,
0.0060665584,
-0.021134181,
-0.017714782,
-0.046434853,
-0.0075499737,
0.02361971,
-0.0363778,
-0.021866908,
-0.024567945,
0.023964522,
0.011931976,
0.04769917,
-0.018289471,
0.033475623,
0.052066803,
-0.023260528,
-0.035745643,
-0.003997679,
0.027656898,
-0.0050141597,
0.00987028,
0.048015248,
-0.028590767,
-0.008124663,
0.053762134,
0.03982593,
-0.014201997,
0.01695332,
-0.04272811,
-0.06361805,
-0.016881483,
0.029682675,
0.023792116,
0.04232583,
0.016709076,
0.049049687,
-0.035429563,
0.036262862,
0.038619086,
0.025961567,
0.029036151,
0.038590353,
-0.031809025,
-0.003460704,
-0.03327448,
0.05994004,
-0.007399118,
-0.011666182,
0.021450259,
0.03422272,
-0.01932391,
-0.020861203,
-0.041377593,
0.009604487,
-0.024510477,
0.034079045,
0.019697458,
0.015085581,
-0.05560114,
0.004091066,
-0.010710762,
0.030084958,
-0.05450923,
-0.0381306,
0.016709076,
0.038676556,
-0.01782972,
0.013368698,
0.026263278,
0.051032364,
-0.009309959,
-0.010136073,
0.005822316,
-0.004432287,
-0.025343776,
-0.055629876,
-0.04557282,
-0.016191857,
-0.04019948,
-0.011759569,
0.041262656,
-0.043733817,
-0.01255695,
-0.037843257,
0.0063862293,
0.019999169,
0.025961567,
0.0016998217,
0.026392583,
-0.0015489658,
-0.009985218,
0.017786618,
-0.030084958,
0.027642531,
-0.022441598,
0.008979512,
0.018375674,
-0.019079668,
0.048762344,
-0.017384335,
0.01777225,
0.02051639,
-0.026205808,
0.017326867,
-0.013318413,
-0.002174838,
0.007657728,
0.009489548,
-0.006167129,
0.0151861515,
0.01550223,
-0.040055808,
0.04077417,
-0.0025322225,
-0.08344481,
0.008383272,
0.008620332,
0.054854043,
-0.015286721,
0.060744606,
0.03338942,
-0.028403994,
-0.010854434,
-0.024007624,
-0.02020031,
-0.012908947,
0.009647588,
-0.04609004,
-0.03327448,
0.024941493,
-0.011975078,
-0.039136305,
0.004644204,
-0.048331328,
-0.013339964,
-0.018232001,
-0.019912966,
0.034538794,
0.025875362,
0.019754928,
-0.010624559,
0.0355445,
-0.023964522,
0.036205392,
0.023188692,
-0.044538382,
0.048819814,
-0.0058294996,
0.032383714,
0.025588019,
0.021464625,
-0.011378838,
-0.02093304,
-0.022341026,
0.00268667,
0.022455964,
0.008871758,
0.021895643,
-0.0065334933,
0.011716467,
-0.052670226,
0.0363778,
0.014582728,
-0.027110944,
0.012894579,
0.020545123,
0.026234543,
-0.011558428,
-0.030602178,
-0.0086778,
-0.0017635762,
0.036349066,
0.03948112,
-0.024539212,
0.011630264,
0.019956067,
-0.039107572,
0.004525674,
0.023590975,
0.039366182,
0.022614004,
0.016349897,
0.032096367,
-0.032211307,
-0.06045726,
0.005761255,
0.028863745,
0.016177488,
-0.007693646,
0.02356224,
-0.03476867,
-0.055831015,
-0.007126141,
0.010875985,
0.006756185,
-0.009568568,
-0.023332365,
-0.0019054525,
0.01335433,
-0.04640612,
0.031521678,
0.033791702,
0.046635997,
0.006131211,
0.055543672,
0.019654356,
0.043274064,
0.051635787,
0.026464418,
-0.031148132,
-0.020286513,
0.05879066,
0.0046334285,
0.022843879,
-0.06919253,
0.00935306,
0.020602593,
-0.015918879,
-0.038044397,
0.03249865,
0.0055565224,
-0.0119894445,
0.0095470175,
0.041377593,
-0.018275103,
-0.0024388356,
-0.027671264,
0.015832676,
0.05307251,
-0.06131929,
0.0022502658,
-0.03715363,
0.00459751,
0.021019243,
-0.01709699,
-0.045084335,
-0.042268362,
0.0007385649,
-0.03338942,
0.04744056,
0.029194191,
-0.011256716,
-0.0017025155,
-0.06321577,
-0.024122562,
0.0058294996,
0.00072285073,
-0.018174533,
0.0070147947,
0.0017878208,
0.02093304,
-0.022915715,
-0.03140674,
-0.0019593295,
0.036464002,
-0.057842426,
0.017585477,
-0.028217219,
0.019424481,
-0.0025950791,
0.0050680367,
-0.038877696,
0.04427977,
0.028447095,
-0.034969814,
0.0058582337,
0.029424066,
-0.033102073,
-0.015099947,
-0.0032667466,
-0.023849584,
0.008584414,
0.02418003,
0.0057397042,
0.00082925794,
0.026004668,
0.034337655,
-0.016838381,
0.028490197,
-0.04091784,
0.007779849,
0.012880213,
0.040946577,
-0.019812396,
-0.026694294,
0.04051556,
0.014395954,
0.010035503,
0.028892478,
-0.07741058,
-0.036952488,
-0.0061240275,
-0.015818309,
0.05307251,
-0.018950362,
-0.041463796,
0.0045580002,
-0.03508475,
-0.0068747145,
-0.020688796,
0.028447095,
-0.036262862,
0.07160622,
0.030803319,
0.003166176,
0.025702955,
0.02149336,
0.025904097,
-0.07361763,
-0.0025376102,
-0.039452385,
-0.005326647,
0.03126307,
-0.013174741,
-0.032326244,
-0.015114315,
-0.007162059,
0.000165672,
0.044164833,
-0.019367011,
-0.0068136537,
0.019568153,
-0.034079045,
0.06522717,
-0.023016285,
-0.085915975,
-0.045745227,
0.0022394904,
-0.013289678,
0.016076919,
0.0052691777,
-0.066434026,
-0.060169917,
-0.057899896,
0.05930788,
-0.025286306,
-0.016680341,
-0.023806483,
-0.029064884,
-0.052727696,
0.037440974,
-0.006055783,
-0.048072718,
-0.034969814,
-0.038331743,
-0.024582313,
-0.03761338,
-0.021680135,
-0.013742246,
-0.0054954616,
-0.026349481,
0.0017644742,
-0.023792116,
-0.051836926,
-0.0014277424,
0.055543672,
-0.025200102,
0.032843463,
-0.026177075,
-0.06982469,
0.009575752,
0.021866908,
-0.052153006,
0.012973599,
-0.037124895,
0.058963068,
-0.026363848,
0.067583404,
-0.02119165,
-0.0031248704,
0.030745849,
-0.0029865857,
0.03393537,
-0.045544088,
-0.017944658,
-0.014237914,
0.01178112,
0.03922251,
0.0043676347,
-0.030142426,
0.024467375,
-0.04097531,
-0.057181533,
0.0164361,
0.020530757,
0.009309959,
-0.022513432,
0.005721745,
0.019812396,
-0.04427977,
0.02330363,
0.07229585,
0.013418983,
-0.019596888,
-0.050199065,
-0.007259038,
0.030717116,
-0.0046334285,
0.022139885,
-0.041521266,
0.020990508,
-0.011730835,
-0.04186608,
-0.087812446,
-0.043015454,
0.03425145,
0.036578942,
-0.035889316,
0.018303838,
-0.014941908,
-0.04982552,
-0.0019790845,
0.01237736,
0.018763589,
0.0068280213,
0.01622059,
-0.00010758578,
0.008268335,
0.01663724,
-0.040113278,
0.0011332144,
0.03307334,
0.027326452,
-0.017499274,
-0.04356141,
0.040946577,
0.0023795709,
-0.067411,
-0.036349066,
-0.011069942,
0.007959439,
-0.013038252,
-0.028490197,
0.014417505,
-0.007499689,
0.017283766,
0.01550223,
0.029625207,
0.027513225,
-0.003020708,
-0.001566027,
0.022039315,
-0.026119605,
0.03669388,
0.047641702,
-0.029768879,
-0.031119397,
-0.01978366,
0.024194397,
-0.016522303,
-0.02133532,
0.060169917,
-0.023059387,
0.04499813,
0.030630913,
-0.024826555,
0.04893475,
0.0063646785,
0.026421316,
-0.013146006,
-0.0059588044,
-0.09057095,
-0.02025778,
0.031579148,
0.00076550344,
0.015085581,
-0.009906198,
0.030659646,
0.0051111383,
0.015444761,
-0.005326647,
-0.06321577,
-0.004694489,
-0.051923133,
-0.011227982,
-0.010042687,
-0.012700622,
-0.034854874,
-0.025860995,
-0.007679279,
-0.026493153,
-0.012901763,
-0.02491276,
0.0045939186,
-0.015904512,
-0.076318674,
0.0021514911,
-0.029912552,
-0.037699584,
-0.0068926737,
-0.03611919,
-0.017456172,
0.016292427,
0.020530757,
-0.02841836,
0.0023687952,
0.051233504,
-0.033791702,
-0.010947822,
-0.012700622,
-0.020846836,
-0.056089625,
0.013756612,
-0.0058079483,
0.054135684,
0.011594346,
-0.0002630997,
-0.014273833,
-0.004037189,
-0.0026435684,
-0.0069609177,
-0.012621602,
0.017901555,
-0.01798776,
-0.031492945,
-0.0029991572,
-0.02191001,
-0.039423652,
-0.0024621822,
0.014927541,
0.00021483483,
0.007952256,
0.0233611,
0.024884025,
0.054681636,
0.01307417,
0.04577396,
0.004364043,
0.029481534,
0.011967894,
0.019022198,
0.024194397,
0.035716906,
0.03313081,
-0.013605757,
0.012549766,
0.02372028,
-0.028461462,
0.011579979,
-0.0041521266,
-0.020688796,
-0.04698081,
0.021277852,
0.0048094266,
0.044164833,
0.02759943,
-0.013533921,
-0.03907884,
0.012772459,
-0.008850208,
-0.011802671,
-0.059595227,
-0.045026865,
0.014712033,
-0.061261825,
-0.0026489561,
0.009072899,
-0.02588973,
0.02387832,
0.022412863,
0.025415612,
0.007564341,
-0.00008597883,
0.018993465,
0.034395125,
-0.05177946,
-0.03134927,
-0.014618646,
0.029007416,
-0.041664936,
-0.046003837,
0.009934932,
0.07177863,
-0.008210866,
-0.029266026,
-0.05008413,
-0.0164361,
0.024582313,
0.03244118,
-0.032326244,
0.013885918,
-0.037900724,
0.027987344,
-0.029136721,
-0.026809232,
0.023691544,
0.021895643,
0.024725985,
0.01446779,
0.008412007,
0.060284853,
-0.015473495,
-0.018835425,
0.033561826,
0.042297095,
0.055256326,
0.03683755,
0.009733791,
0.00919502,
0.017858453,
0.028274689,
0.02517137,
0.0025178553,
0.01938138,
0.04241203,
0.016723443,
0.0074278526,
-0.033188276,
0.0073021394,
0.014927541,
-0.030860787,
-0.015042479,
-0.005434401,
-0.011055576,
0.02087557,
0.009029797,
-0.017944658,
0.00048983237,
-0.012592868,
0.030314833,
0.042900518,
-0.037469707,
-0.038331743,
-0.020904304,
0.0019126361,
0.048848547,
-0.030832054,
0.0017833312,
0.024223132,
0.03416525,
0.047929045,
0.023677178,
0.022039315,
-0.0056786435,
0.012987967,
-0.049624376,
0.05597469,
0.007011203,
0.01695332,
0.026837965,
0.017700415,
-0.023835218,
0.03456753,
-0.041722406,
-0.029280394,
-0.021220384,
-0.010488071,
-0.00883584,
-0.032613587,
0.012477931,
-0.021206016,
0.027412655,
0.018634284,
-0.02826032,
-0.030199895,
0.022901349,
0.011709284,
0.017556742,
0.039969604,
0.032728527,
-0.014927541,
0.08068631,
0.04494066,
-0.0024083052,
0.0511473,
-0.04129139,
-0.027656898,
0.012873028,
0.026852334,
0.043072924,
0.0052188924,
-0.018734854,
0.014539626,
0.024955861,
0.017298132,
-0.018289471,
-0.011134596,
0.013426167,
0.024165664,
-0.0044466546,
0.0038719657,
0.08252531,
0.01030848,
0.0020670837,
-0.017369969,
-0.011450674,
-0.04014201,
-0.03787199,
-0.05166452,
0.06402033,
-0.021895643,
-0.03534336,
-0.034969814,
-0.047354355,
-0.026392583,
-0.010523988,
-0.032699794,
-0.006889082,
-0.009065716,
0.07057178,
0.03669388,
0.047727905,
0.011536878,
-0.011170513,
0.032469917,
0.009978034,
0.009776893,
0.06166411,
0.07028444,
0.015631534,
0.008491027,
0.051865663,
-0.008225233,
-0.022125518,
0.000034515,
-0.01695332,
0.045429148,
-0.043963693,
-0.06562946,
-0.03275726,
0.019022198,
-0.013778164,
-0.035630703,
-0.029567737,
-0.005466727,
-0.041406326,
-0.005886968,
-0.04155,
-0.0050500776,
-0.014798236,
-0.018562447,
-0.03591805,
-0.017757883,
0.24389791,
0.054279357,
0.015990715,
0.021622665,
0.054681636,
0.06982469,
-0.01793029,
-0.016450467,
0.0030440546,
-0.059652697,
0.010394683,
-0.0012966415,
-0.0062066386,
0.00090333895,
-0.030343568,
0.024955861,
-0.006221006,
-0.036866285,
-0.026823599,
0.0021407157,
-0.039193776,
0.021177283,
0.014008039,
0.025645487,
0.008857391,
0.018131431,
0.030084958,
-0.02103361,
0.0013343556,
-0.031809025,
0.021694502,
-0.008268335,
0.035170954,
-0.021435892,
-0.019625623,
0.03528589,
0.0047088563,
-0.005872601,
-0.005319463,
-0.015157416,
0.0026543438,
0.019869864,
-0.0028231586,
-0.030630913,
-0.031033194,
0.050831225,
-0.018519346,
0.018160166,
0.025444346,
-0.063273236,
0.0624112,
-0.03850415,
-0.04336027,
0.014266649,
-0.040170748,
0.0017222705,
-0.033446886,
-0.0031769515,
0.036607675,
0.020085374,
-0.0061240275,
0.013605757,
-0.052785166,
-0.0074422196,
0.0137350615,
0.018605549,
-0.0051111383,
0.031291805,
-0.015257987,
0.002927321,
0.00847666,
0.017657313,
-0.011192064,
-0.051061098,
0.0133327795,
0.031291805,
0.026996005,
0.0251139,
0.0014492932,
0.0010101951,
0.0016728832,
-0.011048391,
0.008598781,
-0.007384751,
0.02392142,
0.036464002,
-0.039768465,
0.005132689,
0.00640778,
0.051319707,
0.03198143,
-0.006170721,
-0.0014995786,
-0.026019035,
0.010868802
] | The quantization method is available through a Python package that is pip-installable by anyone (it is also fine if you can only install the package from source). Ideally, pre-compiled kernels are included in the pip package.
The method can run on commonly-used hardware (CPU, GPU, ).
The method is wrapped in a nn.Module (e.g., Linear8bitLt, Linear4bit), and the quantized linear layer should have the following definition: |
[
0.045770887,
0.0063236095,
-0.014972179,
0.0368352,
-0.016470797,
-0.039720394,
-0.002127128,
-0.022311207,
-0.026695017,
0.060953155,
-0.0155884335,
0.027577382,
0.021722965,
-0.03826379,
-0.02549052,
0.008368454,
0.000097712196,
-0.011071569,
-0.03820777,
0.0098950835,
0.006694763,
-0.013053387,
-0.06986083,
0.0017384675,
-0.020882618,
0.023711786,
-0.00027289387,
-0.00098128,
0.09299838,
0.033557847,
-0.017409185,
0.014439959,
0.027339283,
-0.056443293,
-0.009642979,
-0.012318083,
0.025182392,
0.00033526335,
-0.03305364,
-0.07025299,
0.0046079014,
-0.0076051387,
0.03266148,
-0.039160162,
-0.06336215,
0.0015301314,
0.004177224,
-0.034902405,
-0.03162505,
-0.05602312,
-0.02190504,
0.021078698,
0.037283387,
-0.013214453,
-0.03859993,
-0.020462444,
-0.01436993,
-0.014818115,
-0.06392238,
-0.005514776,
0.035770763,
0.01385872,
-0.012381109,
-0.078208275,
0.029580208,
-0.008130356,
0.0062745893,
-0.012037968,
-0.0041912296,
0.02064452,
-0.05344606,
0.017283132,
-0.031989202,
-0.021064693,
0.000993535,
-0.005521779,
0.0091877915,
-0.016540825,
-0.02960822,
0.011645806,
0.021652935,
0.009054737,
-0.009902086,
-0.007724188,
-0.012227046,
-0.039244197,
0.07014094,
0.0037640533,
-0.013088401,
-0.003147799,
0.009180789,
0.008788627,
0.011043558,
0.0019222933,
0.016260711,
0.05226957,
-0.00017146139,
0.040560737,
-0.016512815,
-0.014874138,
0.020098295,
0.049300347,
-0.016106647,
0.038179755,
-0.0076751676,
0.018403595,
0.01815149,
-0.034734335,
0.0034821872,
-0.02163893,
-0.036134914,
0.00035298942,
0.007374043,
0.008571537,
0.017353162,
0.009138771,
-0.00047488348,
0.0016631864,
-0.022129133,
-0.039076127,
-0.0046149045,
0.017073046,
-0.014650046,
-0.000804457,
-0.0010784451,
-0.053418044,
0.03932823,
0.03179312,
-0.03375393,
0.0010259234,
-0.0058088973,
0.013298488,
0.012171023,
0.059160415,
-0.01812348,
-0.006551204,
-0.034538254,
0.031877156,
-0.0036625115,
0.015112237,
-0.008725601,
-0.051317178,
0.021989075,
0.0789926,
-0.010581367,
-0.020966653,
0.037143327,
-0.06913253,
-0.042773653,
0.05602312,
-0.01126765,
0.015546416,
-0.013606615,
-0.004688435,
-0.039804425,
-0.016764918,
0.00023087653,
0.02074256,
0.021274779,
0.042633593,
0.0023039507,
0.0017367167,
-0.050140694,
0.03145698,
-0.0062360736,
0.0574237,
-0.0552388,
-0.013242465,
0.016890971,
-0.023585733,
-0.0023757305,
0.01875374,
0.0028186631,
0.026106775,
0.07260596,
0.031541016,
0.030952774,
-0.0033403786,
0.030588623,
0.01848763,
0.012521167,
-0.028193636,
-0.009250818,
0.02684908,
-0.010742433,
0.0062185666,
0.017353162,
-0.012822292,
0.013403531,
0.007090426,
-0.02704516,
0.056107156,
-0.05151326,
0.017661288,
-0.019580081,
0.030000381,
-0.05725563,
0.011281656,
0.0054482482,
-0.04453838,
-0.024454093,
0.06582717,
-0.021498872,
0.0020711047,
-0.0649308,
0.017703306,
-0.039804425,
0.03431416,
-0.02532245,
0.027661415,
0.038852032,
0.0054727583,
-0.02575663,
-0.0162327,
0.039048113,
-0.016890971,
-0.014860133,
0.04221342,
-0.0017183342,
0.03268949,
-0.004156215,
0.015854543,
0.06537898,
-0.0027083678,
0.014874138,
0.002163893,
0.050756946,
0.03299762,
0.015140248,
-0.0010084162,
0.005966462,
0.04826392,
0.01579852,
0.0685723,
0.048151873,
0.02352971,
0.06330612,
0.024664178,
-0.005052585,
0.0041106963,
-0.032157272,
0.034566265,
0.0040546735,
0.03930022,
0.008424477,
-0.018277543,
-0.015784513,
-0.0110855745,
-0.0249583,
-0.019734144,
-0.043529965,
0.041176993,
0.03145698,
-0.029019976,
-0.032017212,
-0.021218756,
-0.015182266,
0.03767555,
0.0009804046,
-0.026779052,
0.013186442,
0.023053514,
-0.0006412021,
-0.0027398807,
0.027703432,
0.051569283,
-0.02425801,
0.013200448,
-0.0056198193,
-0.034958426,
-0.029860323,
-0.04649919,
-0.071261406,
-0.020560484,
-0.015182266,
-0.004572887,
0.013774685,
-0.036162924,
-0.0053642136,
-0.012717248,
-0.041064948,
0.014411948,
-0.021204751,
0.048712105,
0.048908185,
0.021582907,
-0.01732515,
0.011617795,
-0.024173977,
0.019398006,
-0.007892257,
-0.04000051,
-0.0038200766,
0.008718598,
0.02605075,
-0.013830707,
-0.026204815,
-0.001015419,
-0.033725917,
-0.0033263727,
-0.010070156,
0.02672303,
-0.014776098,
0.003406906,
-0.023949884,
0.04347394,
0.02423,
0.000962022,
0.026554959,
0.029075999,
-0.012444136,
0.03308165,
0.000017972261,
0.03647105,
-0.008585543,
0.078432366,
0.04708743,
0.0020203337,
-0.04504259,
-0.012192031,
-0.048179884,
0.018067457,
0.008781624,
-0.02944015,
0.0055602947,
0.051065072,
0.0007484339,
-0.064314544,
-0.00076944253,
-0.046051003,
-0.055967096,
0.003193318,
-0.0018855281,
0.01422287,
0.004642916,
0.019426016,
-0.058936324,
0.04344593,
-0.009075745,
0.004523867,
0.014341919,
-0.027731445,
0.0028344197,
0.03986045,
-0.014664052,
-0.001495117,
0.030728681,
-0.037731573,
0.012549179,
0.011841887,
-0.004863507,
0.0050805965,
0.002983231,
0.007857243,
-0.023851844,
0.03428615,
-0.008711595,
0.030112427,
0.0015905314,
-0.00066527457,
0.029216057,
0.016666878,
0.016050624,
0.0025437998,
-0.0167229,
-0.01027324,
-0.0056933495,
0.031344935,
0.05705955,
-0.051093087,
0.035098486,
0.0110855745,
-0.06694763,
-0.014355925,
-0.010980532,
-0.051121097,
0.043585986,
0.021148728,
0.027759455,
-0.01490215,
-0.033501826,
0.027871503,
-0.0155884335,
0.037199352,
0.02442608,
0.042577572,
-0.015980596,
-0.0062045604,
-0.06067304,
0.03431416,
-0.0066037253,
0.021919046,
-0.018711722,
0.0032143265,
-0.0414291,
-0.010413297,
0.021050688,
0.05151326,
0.006806809,
-0.015980596,
0.06263385,
-0.011127592,
0.004467844,
0.02944015,
0.037955664,
-0.028067583,
-0.043726046,
0.020882618,
0.056611363,
0.017717311,
-0.022717375,
-0.035546668,
-0.033950012,
0.008550528,
-0.01885178,
-0.0051576286,
-0.018249532,
0.004156215,
0.02081259,
0.03647105,
-0.012689237,
-0.016386762,
-0.034174103,
0.01795541,
0.024033919,
-0.008319434,
0.014481977,
-0.02021034,
-0.017997427,
0.04663925,
0.007016896,
-0.025546543,
-0.033921998,
-0.032773525,
-0.074790865,
0.071373455,
0.024356052,
-0.005213652,
-0.00915978,
-0.052717756,
0.035854798,
-0.007857243,
0.013389526,
-0.025238415,
0.009488916,
-0.016148664,
0.014537999,
0.041176993,
-0.0010276741,
-0.024201987,
0.015518405,
-0.06991685,
0.0008136483,
-0.04347394,
-0.011134595,
-0.03070067,
-0.02963623,
-0.01480411,
0.024986312,
0.016736908,
-0.010987534,
-0.009565948,
0.040112555,
-0.022717375,
-0.041765235,
0.029580208,
0.024103947,
-0.017143074,
0.027003143,
-0.017549243,
-0.014033792,
0.018697716,
-0.009734017,
-0.023095531,
0.005147124,
0.015910566,
0.0029814804,
-0.030112427,
-0.02781548,
0.0054657557,
0.0023862347,
0.023361642,
0.0012403869,
0.015420364,
0.0019380498,
-0.037227362,
-0.016834948,
-0.014860133,
-0.038123734,
0.0031145352,
0.0072479914,
-0.020280369,
0.004586893,
-0.04417423,
-0.0506449,
-0.03588281,
-0.003249341,
-0.01669489,
0.06207362,
0.04846,
0.025462508,
-0.008900673,
-0.04809585,
0.067619905,
-0.0574237,
-0.0067297774,
-0.028515767,
0.019832185,
0.010889494,
-0.024944294,
-0.009481913,
-0.0037325404,
-0.032101247,
-0.035714738,
0.012178026,
-0.007184965,
0.018669704,
-0.029047988,
-0.03070067,
0.01802544,
0.0047549624,
-0.023935879,
-0.015854543,
0.012787277,
0.014299901,
-0.017605266,
0.03268949,
-0.036555085,
-0.01965011,
-0.03770356,
0.030000381,
-0.033165686,
0.02612078,
-0.033865977,
-0.012773272,
0.004814487,
-0.0044993567,
0.04341792,
-0.03507047,
-0.012941341,
-0.058768254,
-0.0022951972,
-0.03845987,
-0.026036745,
-0.04666726,
0.017675294,
-0.023389652,
0.047871757,
0.008508512,
0.0047304523,
-0.021400832,
0.017857369,
0.026078762,
0.04907625,
-0.004429328,
-0.014103821,
0.004996562,
0.019972242,
-0.0054832627,
0.012346095,
-0.032101247,
0.03983244,
-0.022745388,
0.022409247,
-0.044118207,
-0.01984619,
-0.038683966,
0.010868485,
0.04381008,
-0.054706577,
0.011666815,
-0.025280433,
-0.009937101,
0.0143979415,
0.02927208,
-0.013536586,
-0.0050070663,
-0.042633593,
-0.05187741,
0.039972495,
-0.040728807,
-0.013543589,
-0.017577253,
0.011547766,
0.03481837,
-0.02602274,
0.014411948,
0.04843199,
0.006946867,
0.012493156,
-0.0009655235,
0.006908351,
0.0062115635,
0.0038796011,
-0.007878251,
-0.007843236,
-0.024201987,
0.015910566,
-0.049804553,
-0.0076891733,
0.009825055,
0.040672787,
0.07193369,
-0.028851908,
0.028879918,
-0.0133265,
-0.016848953,
-0.02469219,
0.04238149,
0.018501636,
0.010112173,
0.0030830223,
0.03666713,
0.011988948,
0.019440023,
-0.033137675,
-0.058039952,
0.007395052,
0.07932874,
-0.010525344,
-0.031569026,
0.05705955,
0.033529837,
-0.00017375921,
-0.07523905,
0.00026414025,
0.03621895,
-0.039020102,
-0.054006286,
0.029300092,
0.01875374,
-0.02791352,
0.036919236,
0.023977896,
-0.010294248,
-0.0077381935,
0.07030901,
-0.00947491,
-0.026554959,
0.000018300521,
0.05865621,
-0.05526681,
-0.009649983,
-0.003921618,
0.018179502,
-0.033361766,
-0.008564535,
0.03845987,
-0.043726046,
-0.019327976,
0.020168323,
-0.018137485,
0.067675926,
0.0019135397,
0.0033386278,
0.0082213925,
-0.058432113,
-0.051821385,
-0.02103668,
0.026596976,
0.0136906495,
0.023179566,
-0.012171023,
0.030588623,
0.029580208,
0.018081462,
-0.042493537,
-0.07944079,
0.0034401696,
-0.067395814,
-0.017255122,
0.005682845,
-0.03789964,
0.0067542875,
0.015084225,
-0.0103082545,
-0.04865608,
0.0048915185,
0.007990298,
-0.0038901053,
0.0028536776,
-0.0506449,
-0.01911789,
-0.033893988,
0.029468162,
0.015602439,
-0.029664243,
0.00608201,
0.04663925,
-0.031008797,
0.0028291675,
0.013767682,
0.025700606,
-0.037563503,
0.0032353352,
-0.027969543,
-0.0009226308,
-0.067900024,
0.0030882745,
-0.031849142,
0.008501508,
0.0045938957,
-0.02602274,
-0.008858656,
-0.015084225,
-0.00012342594,
-0.02260533,
0.018613681,
0.05588306,
0.001378694,
0.019369993,
-0.05927246,
0.028879918,
-0.04540674,
-0.016680883,
-0.019860197,
-0.011778861,
-0.032969605,
0.03697526,
0.03481837,
0.043529965,
0.0074300664,
0.036919236,
0.0037570505,
0.009005717,
0.020448439,
0.0029114515,
0.03302563,
-0.022171149,
0.013802696,
-0.03789964,
-0.010084162,
0.025616571,
-0.0574237,
0.015784513,
0.019075872,
-0.007696176,
-0.037955664,
0.011722838,
0.028851908,
0.031513005,
0.036499064,
-0.009348858,
-0.023823831,
0.02183501,
-0.03680719,
-0.01206598,
-0.0765836,
-0.020868612,
0.017913392,
-0.037451457,
0.0035749753,
-0.0048740115,
-0.008718598,
0.0033648887,
0.0065442007,
0.03106482,
-0.0043102787,
0.012591196,
0.004667426,
-0.020980658,
-0.06952469,
-0.047339536,
0.012493156,
0.02871185,
-0.064146474,
-0.028767873,
0.022871438,
0.05383822,
0.014425954,
-0.015350335,
-0.045994982,
-0.0201123,
0.026765045,
0.022129133,
-0.045742877,
0.0060855113,
-0.031877156,
0.008613555,
-0.0002914953,
-0.0014828619,
0.03843186,
0.051037062,
0.00093401043,
0.028165624,
-0.0028466748,
0.02960822,
0.026610982,
0.0066842586,
0.05246565,
0.0052696746,
0.021680947,
-0.002864182,
-0.006176549,
0.005595309,
0.04907625,
0.023081526,
0.008788627,
-0.022255184,
0.07372642,
0.021050688,
-0.032913584,
-0.018207515,
0.062353734,
0.004247253,
0.0046464177,
-0.027003143,
-0.00069503684,
0.00525917,
-0.014068806,
0.018277543,
0.020504462,
-0.022647345,
-0.024650173,
0.00671227,
-0.034006033,
0.024804236,
-0.009874075,
-0.04563083,
-0.016204687,
0.0074090576,
0.04327786,
0.02542049,
-0.00020209904,
0.016036619,
0.05240963,
0.035938833,
0.05081297,
0.02352971,
-0.025546543,
0.035322577,
-0.014523994,
0.005721361,
-0.014678057,
-0.00014377809,
0.013641629,
-0.0135015715,
-0.0324654,
0.06733979,
-0.02963623,
-0.045154635,
0.018459618,
-0.004159717,
-0.01342454,
-0.05313793,
0.03946829,
-0.045882937,
0.043698035,
0.028795883,
-0.0069923857,
-0.028851908,
-0.0053397035,
-0.025434496,
0.010161193,
0.052913837,
0.0416812,
-0.03518252,
0.07518303,
0.010161193,
0.04187728,
0.043754056,
0.030896751,
-0.04131705,
-0.03845987,
0.011652809,
-0.018235525,
-0.018893797,
-0.030840728,
-0.044566393,
0.025686601,
0.009993124,
-0.01005615,
-0.03282955,
-0.026667004,
0.017941404,
-0.03103681,
-0.034230128,
0.10358675,
0.0006722774,
0.01206598,
-0.010532347,
-0.010070156,
-0.04109296,
-0.021092705,
0.016358752,
0.019986248,
-0.03789964,
-0.029075999,
-0.008326436,
-0.04526668,
-0.029580208,
-0.0036800187,
-0.01805345,
-0.013382522,
0.039076127,
0.009075745,
0.0668916,
0.021190746,
-0.0025402983,
-0.046975385,
0.06941265,
0.046583224,
-0.015560421,
0.0773119,
0.043165814,
0.033893988,
-0.010203211,
-0.008053323,
-0.0011414711,
0.0022514293,
0.011015546,
-0.0034086567,
0.0003311054,
-0.013361515,
-0.061625432,
0.004856504,
-0.009236812,
-0.00010580929,
-0.018165497,
-0.022577317,
-0.038487885,
-0.042969733,
0.000017903873,
-0.048964206,
0.02585467,
0.02091063,
-0.02396389,
0.0087396065,
-0.055070728,
0.23260799,
0.08274615,
0.06588319,
0.068292186,
0.0034664306,
0.009138771,
0.041513134,
-0.023277607,
-0.002125377,
-0.027955538,
0.00028799384,
-0.01274526,
-0.030224474,
0.039272208,
-0.032745514,
0.019201925,
-0.071429476,
-0.007857243,
-0.04484651,
-0.0027363792,
-0.042129386,
0.031877156,
0.005682845,
0.008963699,
0.044734463,
-0.0041176993,
0.0047479593,
-0.030672658,
0.0058894306,
-0.021498872,
-0.014152841,
-0.031316925,
0.02449611,
-0.03666713,
-0.016652873,
0.013284482,
0.011477737,
-0.050925016,
-0.0054377443,
0.023249594,
-0.019384,
-0.039580334,
0.024272017,
0.016820941,
-0.0018505137,
0.0305326,
0.0037185345,
0.046555214,
0.01616267,
-0.06084111,
-0.009327849,
-0.05927246,
0.015952583,
-0.021989075,
-0.04058875,
-0.020700542,
-0.039132148,
-0.019061867,
0.016120654,
0.035546668,
-0.018095467,
0.009243815,
0.003569723,
0.03033652,
-0.03103681,
0.0074090576,
-0.017031029,
0.061121225,
-0.03697526,
-0.026975133,
-0.029468162,
0.020098295,
-0.005122614,
0.0049930606,
0.035434622,
0.041709214,
0.032073237,
0.018361578,
-0.046219073,
-0.025098357,
0.013823705,
-0.0025000318,
-0.00697838,
-0.005752874,
0.017269127,
0.050588876,
-0.027493346,
0.028655825,
0.013081399,
0.05798393,
0.016680883,
0.035322577,
0.02801156,
0.014986184,
-0.030140439
] |
This Colab Notebook provides an interactive demonstration if you want to fiddle with the XLA-compatible encoder-decoder (like T5) and decoder-only (like GPT2) text generation models.
This blog post provides an overview of the comparison benchmarks for XLA-compatible models along with a friendly introduction to XLA in TensorFlow.
This blog post discusses our design philosophy behind adding XLA support to the TensorFlow models in 🤗 Transformers.
Recommended posts for learning more about XLA and TensorFlow graphs in general:
XLA: Optimizing Compiler for Machine Learning
Introduction to graphs and tf.function
Better performance with tf.function |
[
0.034019757,
0.012263756,
-0.03311708,
-0.008638931,
-0.012235547,
0.0022549373,
0.021424549,
0.00014203548,
0.0037834994,
0.034527514,
0.039351214,
-0.047503542,
0.027376596,
-0.057574067,
-0.0030359672,
0.057263773,
-0.007334276,
-0.0434979,
-0.012602261,
-0.018476734,
0.012313122,
-0.016064886,
-0.068490855,
-0.03325812,
-0.013272219,
-0.018349795,
0.05777153,
-0.0319041,
0.097094536,
0.06629057,
-0.020253886,
-0.02036672,
-0.002547603,
-0.013667142,
-0.038222864,
-0.024767287,
0.0021791263,
0.012715097,
-0.04688295,
-0.04482371,
0.009492246,
-0.0026956992,
0.030493664,
-0.04372357,
-0.04710862,
-0.022961926,
-0.01926658,
-0.04053598,
-0.01755995,
-0.045811016,
-0.072383665,
-0.0073977457,
0.027940772,
-0.004626236,
0.007489424,
0.011290554,
0.016770104,
0.0049471105,
-0.04076165,
0.0069534583,
0.03145276,
0.036191832,
-0.012228495,
-0.038561366,
0.018561361,
0.024527512,
-0.028942183,
-0.0015752827,
-0.0055430206,
-0.0077926684,
-0.025458401,
-0.0080536,
-0.057179146,
-0.031593807,
-0.011057832,
-0.023765877,
-0.00022082166,
-0.00051040214,
-0.024499303,
0.062454183,
0.0058850516,
0.02335685,
0.00010247712,
0.024499303,
-0.010211569,
-0.0496192,
0.05461215,
-0.020761644,
0.000055673725,
0.0051798327,
-0.011255293,
0.048885774,
-0.011847677,
0.004189,
0.03464035,
0.02574049,
-0.009097324,
0.0689422,
0.02774331,
0.000019668994,
0.03650213,
0.06792668,
-0.013060654,
0.026107203,
-0.036135416,
0.021889994,
-0.010973206,
0.00799013,
-0.015458398,
-0.034555726,
0.014880118,
0.009598029,
-0.035007063,
-0.0071121324,
-0.023497893,
-0.014880118,
-0.027489431,
0.030521873,
-0.043667153,
-0.0692807,
0.0010878001,
0.025007062,
0.021311715,
-0.012750357,
0.023695353,
-0.044682667,
-0.011882938,
0.015317354,
-0.01984486,
-0.004971793,
0.009104376,
-0.009097324,
-0.03311708,
0.03715093,
-0.014964744,
-0.02242596,
0.0144993,
0.031537388,
-0.04803951,
-0.0031117783,
0.021086045,
-0.02358252,
0.0050634714,
0.061043747,
-0.023441475,
-0.004555714,
0.018547256,
-0.043328647,
-0.061269417,
0.009203106,
-0.030916795,
0.0147954915,
-0.007820877,
-0.0055959118,
-0.029732028,
-0.0013742953,
-0.048406225,
0.017249653,
0.0039668563,
-0.004255996,
0.0020627652,
-0.0023836398,
-0.04620594,
0.030888587,
-0.018420316,
0.022863196,
-0.028194651,
-0.005821582,
0.048857562,
-0.043779988,
0.0013963333,
-0.0015409032,
-0.011678425,
0.021734845,
0.0638082,
0.04098732,
0.03574049,
-0.0039703823,
0.018166438,
-0.011748946,
-0.005870947,
-0.024626244,
0.005535968,
0.04282089,
0.006311709,
-0.023850502,
0.014964744,
0.005927365,
0.018928075,
0.01295487,
-0.013906917,
0.01936531,
-0.05935122,
0.036812425,
-0.05339917,
-0.020465452,
-0.028829347,
0.0030165736,
0.0051093106,
-0.00072284933,
-0.024950644,
0.04073344,
-0.054696776,
0.027306074,
-0.034019757,
0.039830763,
0.01695346,
0.012320174,
-0.037715103,
0.043441482,
0.02616362,
0.007961921,
-0.045557138,
-0.020677017,
0.023483789,
-0.008878706,
0.0019270106,
0.037517644,
-0.011509172,
-0.026854735,
0.022299021,
0.0046121315,
0.036840633,
0.021086045,
0.018378004,
-0.009823699,
0.017898455,
0.065782815,
0.023145283,
-0.022299021,
0.002466503,
0.033540208,
0.0009890695,
0.023667146,
0.02638929,
-0.0034485203,
0.05100143,
0.041777167,
0.006272922,
0.0053244024,
0.020902688,
0.038194653,
-0.0067983097,
0.051368143,
-0.019520458,
-0.044090282,
-0.0099859,
-0.022341333,
-0.06657266,
0.031819474,
-0.04098732,
0.04552893,
0.044456996,
0.02425953,
-0.04959099,
-0.01994359,
-0.005906208,
0.025105791,
-0.044936545,
-0.040902693,
0.021241192,
0.026078993,
-0.0049964758,
-0.016375182,
0.012129765,
0.049280696,
0.020056425,
0.0017242602,
-0.010888579,
-0.04600848,
-0.013166436,
-0.030380828,
-0.05142456,
-0.000009841385,
-0.011114249,
0.013194645,
-0.0060719345,
-0.05354022,
0.018561361,
0.029167853,
-0.03667138,
0.0116995815,
-0.012369539,
0.05260933,
0.060592405,
0.0012491189,
-0.021537384,
0.039774343,
-0.04299014,
0.012002825,
0.010832162,
-0.045669973,
0.011904094,
-0.00966855,
0.032722156,
0.0108603705,
0.0003424719,
-0.00047117437,
-0.048660103,
0.025472505,
-0.044033866,
-0.0064809616,
0.0032704526,
0.022947822,
-0.011720737,
0.019322997,
-0.0089703845,
-0.038702413,
0.032524694,
0.025881533,
-0.030973213,
0.04327223,
-0.021988725,
0.071424566,
-0.029844863,
0.054866027,
0.045444302,
-0.038843457,
-0.025289148,
-0.025627654,
-0.0389845,
0.02761637,
-0.0076798336,
-0.024668556,
-0.016008468,
0.074471116,
-0.047052205,
-0.058053616,
-0.020211574,
-0.016093094,
-0.0047249664,
-0.021551488,
-0.03557124,
0.020789852,
0.01607899,
-0.00985896,
-0.013801133,
0.016727792,
-0.028166441,
0.049478155,
0.012235547,
-0.02709451,
0.06674191,
0.019985903,
0.028942183,
0.023427371,
0.020423139,
-0.019915381,
0.0018758822,
-0.017997185,
0.025796907,
0.03466856,
-0.039012708,
0.009442881,
-0.0027909037,
0.026685482,
-0.023808189,
0.038194653,
0.025655862,
-0.0017057481,
0.029083226,
0.04033852,
-0.010204517,
-0.0035243314,
-0.047221456,
0.0016034914,
-0.020239782,
-0.014569822,
0.039661508,
-0.0312553,
0.0011997536,
-0.008286322,
-0.04987308,
0.022256708,
-0.0035190422,
0.0041960524,
0.031847686,
0.032270815,
0.021452758,
-0.022708047,
-0.017672785,
0.018025395,
0.020677017,
0.032242607,
0.036897052,
0.027884355,
-0.038251072,
-0.011692529,
-0.03241186,
-0.0013504941,
0.01936531,
-0.0021227088,
0.00013443235,
-0.018152334,
-0.04282089,
-0.0460649,
0.0025652337,
0.03582512,
0.0399436,
0.0020010585,
0.052891415,
0.0058533167,
0.00597673,
0.044372372,
0.04239776,
-0.012129765,
-0.0161072,
0.019026805,
0.046375193,
0.0039774342,
-0.015049371,
-0.022976032,
0.008413261,
-0.005458394,
-0.027503535,
0.022172082,
-0.030606499,
0.0036847687,
0.006004939,
0.06431596,
-0.011015519,
-0.009372359,
-0.03438647,
0.013949229,
0.03557124,
-0.05441469,
0.008899862,
-0.043610737,
0.019506354,
0.04208746,
-0.017757412,
-0.04279268,
-0.028913973,
-0.0028138233,
-0.05599438,
0.044936545,
0.0460649,
-0.021184774,
0.011925251,
-0.060818076,
-0.033455584,
-0.019280683,
-0.020126946,
-0.02844853,
0.014294786,
-0.00008457117,
0.0036019054,
0.014456986,
-0.0100000035,
0.0016237665,
0.026727796,
-0.055655874,
0.004474614,
-0.042059254,
-0.013554307,
-0.019576875,
0.029026808,
-0.06375179,
0.011939355,
0.048575476,
-0.015966155,
0.003325107,
0.043638945,
-0.040451355,
-0.014598031,
0.026445707,
0.013991542,
-0.00045839226,
0.03148097,
0.005648803,
0.0018476734,
-0.005567703,
0.0070310323,
-0.023074761,
0.03241186,
-0.0132440105,
0.0039104386,
0.0022619895,
0.008942176,
0.0033832875,
-0.0651058,
0.033173494,
-0.0043617785,
-0.005638225,
0.0036847687,
-0.046318777,
-0.023864606,
0.015684068,
-0.019675607,
0.06634699,
-0.019576875,
0.0007854375,
-0.006163613,
-0.026431603,
0.007912556,
-0.029619193,
0.014315943,
-0.022482378,
0.045218635,
0.031875893,
0.047701005,
-0.02967561,
-0.022299021,
0.006865306,
-0.04733429,
-0.008286322,
-0.014485195,
-0.015133997,
0.029252479,
-0.027348388,
-0.011967564,
-0.011572641,
0.008681244,
0.002611073,
-0.020423139,
-0.041748956,
0.033850506,
-0.018928075,
-0.04798309,
0.052411865,
-0.0014694998,
-0.07576872,
-0.037433017,
-0.0019411149,
-0.01572638,
0.03444289,
0.0451058,
-0.04191821,
-0.022792675,
-0.03940763,
0.01127645,
-0.015416085,
0.004160791,
-0.04265164,
-0.04471088,
-0.008349791,
0.032016937,
0.023131179,
-0.010712274,
-0.0383357,
-0.012080399,
-0.0055853333,
-0.049534574,
-0.016741896,
-0.01595205,
0.051734857,
0.0023836398,
0.016727792,
-0.003143513,
-0.046149522,
-0.0011636112,
0.014266578,
0.038307488,
0.035684075,
-0.043638945,
-0.031875893,
0.0153032495,
0.00269041,
-0.00979549,
0.028138233,
-0.024118485,
0.051678438,
-0.028166441,
0.046290565,
-0.036135416,
-0.0028508473,
0.004372357,
0.00061177736,
0.035007063,
-0.02207335,
0.033427376,
-0.015994364,
-0.0076093115,
-0.0021756003,
0.0032457698,
-0.039097335,
0.01961919,
-0.03083217,
-0.035373777,
0.030775752,
-0.016459808,
0.028631886,
-0.0061177737,
-0.0050352626,
0.053201713,
-0.039069127,
0.018222855,
0.062341347,
-0.021086045,
-0.021537384,
-0.029929489,
0.041071948,
-0.016756,
0.027517641,
0.011424546,
0.0037905513,
-0.00686178,
-0.01053597,
-0.02252469,
-0.057884365,
-0.023540206,
0.0082933735,
0.032665737,
-0.006421018,
0.012172078,
0.02774331,
-0.06256702,
-0.018166438,
0.0052644587,
0.032016937,
-0.0054231333,
0.026699586,
0.017038088,
-0.0047919624,
0.041184783,
-0.017080402,
0.002806771,
-0.014696761,
0.07091681,
-0.021509176,
-0.01959098,
0.026445707,
0.019858964,
-0.039520465,
-0.043413274,
-0.0008136463,
0.046290565,
-0.031311717,
-0.0062024,
-0.0036424554,
-0.017291967,
-0.000392278,
0.024062067,
0.033540208,
0.0056205946,
0.0060401997,
0.008349791,
0.02174895,
-0.03145276,
-0.0007294608,
0.049788453,
-0.03827928,
-0.04101553,
-0.018307483,
0.029280687,
-0.026643168,
-0.04146687,
0.05554304,
-0.039605092,
0.023836398,
0.05345559,
-0.02242596,
0.027870249,
0.014964744,
0.02149507,
0.018758822,
-0.013815238,
-0.08016928,
0.019873068,
0.028787034,
0.010211569,
0.023836398,
-0.014069117,
0.034132592,
0.017954873,
0.055401996,
-0.015430189,
-0.056756016,
0.03241186,
-0.040423147,
-0.039605092,
-0.026685482,
0.007545842,
0.011636111,
0.064598046,
0.006544431,
-0.05069113,
0.03032441,
0.026629064,
-0.013053602,
-0.024978852,
-0.043356854,
-0.019111432,
-0.00351199,
-0.005902682,
0.01585332,
-0.046093106,
0.011558537,
0.026403395,
-0.027856145,
0.0071650236,
0.0013099441,
0.030465456,
-0.03032441,
0.013067706,
-0.022891404,
0.002769747,
-0.026403395,
0.012849088,
-0.0380254,
0.041156575,
-0.0074753202,
-0.016530331,
-0.011861782,
0.01695346,
0.016586747,
-0.004894219,
-0.014922432,
0.0060648825,
-0.03540199,
-0.036840633,
0.002205572,
-0.0060401997,
-0.07819467,
-0.008448523,
-0.02004232,
0.019873068,
0.029788446,
0.02117067,
0.0014069116,
0.07712273,
-0.015190414,
0.038787037,
-0.0148237,
0.027306074,
0.026995778,
0.006061356,
0.07232725,
-0.0000032678356,
-0.0070839236,
-0.051847693,
-0.016093094,
0.041410454,
-0.01878703,
0.0031505653,
-0.02117067,
-0.010232726,
-0.043441482,
0.008885758,
0.00899154,
0.044992965,
0.036727797,
-0.032468278,
-0.0017683363,
-0.004552188,
-0.020239782,
0.020832166,
-0.06561356,
-0.037009887,
0.038307488,
-0.056079004,
-0.008025391,
-0.0032404808,
-0.03148097,
0.016911149,
0.02174895,
0.008596618,
0.022242604,
0.03647392,
-0.004005643,
0.002612836,
-0.05260933,
-0.06775743,
-0.036614966,
-0.0057827947,
-0.031396344,
-0.02107194,
0.022369543,
0.05684064,
0.03988718,
-0.006995771,
-0.044259537,
0.016939357,
0.02523273,
0.07582513,
-0.04849085,
0.0027009882,
-0.0592948,
0.040028222,
-0.018251065,
-0.0010613544,
-0.014767284,
0.021001417,
0.015599442,
-0.0027080404,
0.024372363,
0.047221456,
0.043102976,
-0.021452758,
0.020535974,
0.037009887,
0.0264175,
0.014330047,
0.018928075,
0.0103103,
0.047785632,
0.025811011,
0.041551497,
-0.010895631,
0.015458398,
0.05069113,
-0.015599442,
0.009555716,
0.0055994377,
0.04256701,
-0.013222854,
-0.00940762,
-0.016036676,
0.005952047,
-0.021819472,
0.048575476,
0.01695346,
0.010253882,
-0.013497889,
0.0028631885,
-0.0033779985,
0.026826525,
-0.013293376,
-0.076502144,
-0.02947815,
0.021424549,
0.061043747,
-0.0013328637,
0.015825111,
0.004605079,
0.039830763,
0.051847693,
0.017263757,
-0.0065373788,
-0.0015356141,
0.04033852,
-0.043582525,
0.046995785,
-0.027715102,
-0.0043124133,
0.013829342,
-0.0137588205,
-0.02335685,
0.018829344,
-0.03035262,
0.003741186,
-0.044062074,
-0.022609318,
-0.003705925,
-0.06657266,
0.014083221,
-0.062623434,
0.0066396357,
0.03032441,
-0.012157973,
-0.019435832,
0.03624825,
-0.0009079693,
0.008744714,
0.037940774,
0.023244014,
0.0030870957,
0.07001413,
0.021184774,
-0.0024576879,
0.04129762,
0.010655858,
-0.027306074,
-0.006269396,
-0.0012870245,
-0.0034079703,
-0.0028684777,
-0.010818058,
-0.031791266,
0.012454165,
-0.011932303,
-0.029308897,
-0.031424552,
0.035543032,
0.011128354,
-0.041664332,
-0.006911145,
0.100536,
0.020437242,
0.0046473923,
-0.020747539,
0.01849084,
-0.040846277,
-0.029788446,
-0.055627666,
0.043159395,
-0.02897039,
-0.019760232,
-0.019083222,
-0.031227091,
-0.0006007583,
-0.015923843,
-0.01607899,
0.01024683,
-0.01507758,
0.037461225,
0.033201706,
0.016177721,
-0.030775752,
0.018561361,
0.04397745,
0.042031046,
-0.0040126955,
0.067080416,
0.095796935,
-0.028561365,
0.0014774335,
0.027277866,
-0.005796899,
-0.019308893,
0.0033127656,
-0.004753175,
0.013801133,
-0.030409038,
-0.0518759,
-0.01337095,
0.011093093,
-0.022411855,
-0.045613557,
-0.04530326,
-0.014753179,
-0.047249664,
-0.0029777866,
-0.026854735,
0.028617783,
0.013363898,
-0.04033852,
-0.006808888,
-0.05435827,
0.23492251,
0.02777152,
0.015585337,
0.03373767,
0.05571229,
0.069675624,
0.005345559,
-0.0006496829,
0.027277866,
-0.030098742,
-0.0060014124,
-0.043808196,
0.012545844,
0.039802555,
-0.02332864,
0.037433017,
-0.062454183,
-0.026220039,
-0.0061036693,
-0.009442881,
-0.048152346,
0.013060654,
0.005560651,
0.0653879,
0.040705234,
0.010959101,
0.026868839,
-0.045839228,
0.015585337,
-0.022115665,
-0.009449933,
-0.044315953,
0.009076167,
-0.010373769,
-0.03390692,
0.055401996,
0.01002116,
-0.04440058,
0.0053667156,
-0.023497893,
0.014908327,
-0.023808189,
0.0055077593,
-0.0037940776,
-0.057094518,
0.044315953,
-0.020705227,
-0.011445702,
0.006244713,
-0.055571247,
0.021438655,
-0.044203117,
0.023258118,
-0.0056840642,
-0.030183367,
0.0035225684,
-0.052693956,
-0.023511996,
0.0024136116,
-0.0011257057,
-0.006918197,
0.024978852,
-0.059407637,
0.04050777,
-0.026375186,
-0.023526102,
-0.02200283,
0.021368131,
-0.012877297,
0.016375182,
0.008321582,
0.024428781,
-0.0037976035,
-0.030042324,
0.0051622023,
0.020634703,
-0.021932308,
0.034132592,
-0.0062235566,
-0.027052196,
0.029421732,
-0.03198873,
0.008984488,
-0.056699596,
0.05712273,
0.012433008,
-0.026868839,
0.0036001424,
0.020183364,
0.017672785,
0.050155167,
0.02709451,
0.022595212,
-0.009774334,
-0.0232017
] | For some quantization methods, they may require "pre-quantizing" the models through data calibration (e.g., AWQ). In this case, we prefer to only support inference in Transformers and let the third-party library maintained by the ML community deal with the model quantization itself.
Build a new HFQuantizer class |
[
0.030022362,
-0.013155788,
-0.0021652088,
-0.03321504,
0.029938346,
-0.0035795087,
-0.0023104898,
0.037387922,
-0.031366646,
0.047190003,
0.011013335,
-0.017489707,
0.055339728,
-0.044753484,
-0.013736911,
0.05209104,
-0.015403264,
-0.021690598,
-0.046153784,
0.0058252346,
-0.024897277,
0.015543294,
-0.08054507,
-0.014030973,
-0.017545719,
-0.018974021,
0.021900643,
-0.010936318,
0.068950616,
0.036407717,
-0.035035424,
0.010516229,
0.0069944826,
-0.061164964,
-0.0144230565,
-0.04217694,
0.008982904,
-0.012259599,
-0.032990992,
-0.037163876,
0.0012585167,
-0.02194265,
0.0069314693,
-0.0155713,
-0.08603424,
-0.013960959,
-0.017335674,
0.00966905,
-0.0060002715,
-0.02873409,
-0.008611825,
0.02859406,
0.04982256,
0.028762097,
-0.024799256,
-0.029350221,
0.0052826195,
0.029434238,
-0.048086192,
-0.0021284511,
0.017125629,
0.013547871,
-0.019968232,
-0.031534683,
-0.005440153,
0.05573181,
-0.012966748,
0.008261751,
-0.014703116,
-0.012091563,
-0.039432358,
0.053239282,
-0.015627312,
-0.025191339,
-0.011832508,
0.006402857,
-0.0024435178,
-0.015879365,
0.0048695323,
0.027389806,
-0.0010589744,
0.016705541,
0.021872636,
0.0066794157,
-0.037443936,
0.014703116,
0.020696387,
-0.03665977,
-0.0264236,
0.003717788,
0.019576149,
0.04553765,
-0.0061438023,
-0.00040652367,
0.0429331,
0.011426422,
-0.023538988,
0.020640375,
0.004761009,
-0.014332037,
0.016103413,
0.075616024,
-0.0064658704,
0.03184275,
0.0027620855,
0.035455514,
-0.019254081,
0.04430539,
-0.023272933,
0.009774071,
0.038900245,
-0.011062345,
-0.0013609134,
-0.03464334,
0.004845027,
0.017769767,
-0.033523105,
0.057972286,
-0.06586996,
-0.052903213,
-0.015109202,
0.020080255,
0.0029686291,
-0.068782575,
-0.004095868,
-0.060660858,
-0.03142266,
0.018217862,
0.026787678,
0.008058708,
0.021452546,
-0.010628252,
0.00090581697,
0.0580283,
-0.025205342,
-0.020738395,
-0.0048065186,
0.009052918,
-0.01764374,
-0.03845215,
-0.0032941983,
-0.035455514,
0.0009819581,
0.07696031,
0.0028986144,
0.0009101929,
-0.032906976,
-0.022754822,
-0.0367998,
0.006014275,
-0.008100717,
-0.03665977,
0.009634042,
0.0528472,
0.010628252,
-0.009332978,
-0.062509246,
0.047918156,
0.017755764,
-0.00919995,
0.040412564,
0.025863482,
-0.019940225,
0.046349823,
0.0071765212,
0.017167639,
0.0003686719,
-0.06659812,
0.010271177,
-0.0059897695,
-0.023959078,
0.0065883966,
0.0072675403,
-0.032766946,
0.06021276,
-0.0089548975,
0.0580283,
0.0050970805,
-0.015235229,
-0.0068754572,
-0.046741907,
-0.024477188,
0.037471943,
0.043605242,
0.013428846,
-0.034139235,
0.028426025,
0.016271448,
-0.015235229,
-0.0053526345,
0.016271448,
0.059372585,
-0.062397227,
0.00320843,
-0.04458545,
-0.038088072,
-0.022502769,
-0.011335403,
-0.015445273,
0.016397476,
-0.018105837,
0.013512864,
-0.05444354,
0.015403264,
-0.018525926,
0.025541414,
0.01457709,
0.012959747,
-0.02391707,
-0.016117416,
0.047442056,
-0.0033134522,
-0.06687818,
0.025107322,
0.010264175,
-0.0038753212,
-0.014023973,
0.041672833,
0.018189855,
-0.028384015,
0.021928648,
0.0028723588,
0.042681046,
0.03713587,
0.009101929,
0.006325841,
-0.016705541,
0.060100738,
0.04030054,
0.027963927,
0.01585136,
0.0038858235,
0.015865363,
0.0344473,
-0.0058147325,
0.036547747,
0.034699354,
0.035931617,
0.021158485,
-0.00924896,
0.014675111,
0.03707986,
-0.022824837,
0.017195644,
-0.032094803,
0.0058672437,
-0.029182184,
-0.0065988987,
-0.078584656,
-0.01066326,
-0.040356554,
0.05043869,
0.036071647,
-0.0062488243,
-0.096172385,
-0.008345769,
-0.0339712,
0.037780005,
-0.041784856,
-0.028328003,
0.03388718,
0.0127777085,
-0.02297887,
0.0021494555,
0.02471524,
0.028243987,
-0.038368132,
0.017867787,
-0.022656802,
-0.039572388,
-0.016523503,
-0.025317365,
-0.06166907,
0.024337158,
-0.0065218825,
-0.030414445,
0.032010786,
-0.024743244,
0.035791587,
0.038368132,
0.00003678514,
0.018988024,
0.013946956,
0.0052966224,
0.013484858,
-0.0025135328,
-0.019170063,
0.0027988432,
-0.039992478,
-0.015249232,
-0.03369114,
0.01736368,
0.018287877,
-0.013232805,
0.038340125,
0.037051853,
-0.006483374,
-0.020836417,
-0.03988045,
0.04217694,
-0.05441553,
0.011167367,
0.026297573,
0.030050369,
-0.013897945,
0.0074915877,
-0.0133798355,
-0.046013754,
0.039600395,
0.01680356,
-0.019128054,
0.0003559817,
0.027067738,
0.021788618,
-0.032682925,
0.028328003,
0.028285995,
0.011601459,
-0.022376742,
-0.040496584,
-0.040048487,
0.013624888,
0.004505455,
0.0040013483,
-0.002651812,
0.04926244,
0.013505862,
-0.06844651,
0.013120781,
-0.0055556777,
-0.01816185,
-0.029742304,
-0.02232073,
-0.031590696,
0.0021196993,
-0.0143530425,
-0.04217694,
0.024127115,
-0.03735992,
0.01505319,
0.020304304,
-0.011923527,
0.048702322,
0.014142998,
0.027445817,
0.013855937,
0.04845027,
-0.05015863,
0.0031436663,
-0.011006333,
0.020836417,
0.011174369,
0.014381048,
0.019128054,
0.034195248,
0.0121755805,
-0.009893097,
0.039432358,
0.04769411,
-0.027193764,
0.02471524,
0.034475308,
-0.004610477,
-0.040804647,
-0.029658286,
-0.029518256,
-0.015361256,
0.007365561,
0.040804647,
-0.028033942,
0.0101591535,
0.013050766,
0.0050445693,
0.017685749,
0.005888248,
-0.01849792,
0.03315903,
0.017349677,
0.015865363,
-0.028412022,
-0.044837505,
-0.008247748,
0.008968901,
0.0092559615,
0.05483562,
0.015431271,
-0.0015009431,
0.016565511,
-0.009963112,
-0.033271052,
0.026451606,
-0.017615734,
0.04665789,
-0.03506343,
-0.016061405,
-0.006595398,
-0.0009697055,
0.048674315,
0.02443518,
-0.014899158,
0.04643384,
0.019086044,
-0.0056747026,
0.05410747,
0.02391707,
-0.0011613711,
-0.021760613,
0.04973854,
0.04464146,
0.021816624,
-0.03500742,
0.007309549,
0.029070161,
0.01816185,
-0.012567664,
0.016677534,
-0.028426025,
-0.0024872771,
0.0038613183,
0.039768428,
-0.05830836,
-0.0073165507,
-0.012427634,
-0.0018273873,
0.051866993,
-0.04114072,
0.00217046,
-0.03231885,
-0.021648588,
0.015501285,
0.0026378091,
-0.021872636,
-0.025975505,
0.0011018586,
-0.047105983,
0.021900643,
0.06967877,
-0.023062889,
0.024463184,
-0.041952893,
-0.020444334,
0.009402993,
-0.012182582,
-0.006472872,
0.0038998267,
-0.010544235,
0.0020496845,
0.018371893,
-0.005874245,
-0.03189876,
0.04100069,
-0.03307501,
-0.014619098,
0.0007920429,
0.029378226,
-0.041224737,
0.017405689,
-0.006077288,
0.041952893,
0.047638096,
-0.026801681,
-0.021158485,
0.0049850564,
-0.06710222,
-0.055143688,
0.011678475,
0.009423997,
0.009893097,
0.010173156,
0.025821473,
-0.043437205,
-0.0051180846,
0.035231467,
-0.0064483667,
0.050886784,
-0.053883422,
0.04273706,
0.032570902,
-0.02184463,
0.0035024923,
-0.03954438,
0.04450143,
-0.004109871,
-0.018595941,
0.020556357,
-0.05774824,
-0.020094259,
0.015823353,
-0.04506155,
0.018077832,
-0.009984116,
0.004438941,
0.032682925,
-0.0027200766,
0.013960959,
-0.027949924,
0.003892825,
-0.022572784,
0.03898426,
-0.0005509293,
0.03184275,
-0.029238196,
-0.04915042,
-0.018371893,
-0.057636216,
0.015459277,
-0.026535625,
-0.024225134,
0.03506343,
0.0007552851,
-0.0042534014,
-0.024141116,
-0.026297573,
-0.010705269,
-0.006108795,
-0.012322612,
0.0095570255,
-0.011020335,
-0.012588668,
0.02439317,
-0.0139819635,
-0.086650364,
-0.004120373,
0.030162392,
-0.02929421,
0.042961106,
0.03817209,
-0.031310637,
-0.035315484,
-0.023132904,
0.04817021,
-0.060548835,
0.02538738,
-0.042064916,
0.0065883966,
-0.031338643,
0.03581959,
0.014787134,
-0.046265807,
-0.051110834,
-0.011006333,
-0.025961502,
-0.032346856,
0.002496029,
-0.015753338,
-0.0034692353,
-0.065421864,
0.025989508,
0.013932953,
-0.021648588,
0.009935106,
0.00245402,
0.0017687499,
0.034671348,
-0.039236315,
-0.033999205,
0.033411082,
0.013652894,
-0.003425476,
0.035875604,
-0.019604156,
0.011454428,
0.007610613,
0.035595544,
-0.022796832,
0.009543022,
0.0088148685,
0.0334951,
0.038088072,
0.004789015,
0.00584974,
-0.010348193,
0.026157543,
-0.0072115283,
0.0059022508,
-0.020766402,
0.012959747,
-0.05892449,
-0.06536585,
0.04349322,
0.0050550713,
0.021438545,
0.009178946,
0.031450666,
0.057916276,
-0.024281146,
0.017853783,
0.06273329,
-0.011594458,
-0.011118356,
-0.06727026,
0.05029866,
-0.027627856,
-0.0118745165,
0.03184275,
0.04699396,
0.013120781,
0.011454428,
-0.0047154995,
-0.03416724,
0.001920157,
0.021046462,
0.025709448,
0.0058112317,
0.014731122,
-0.011426422,
-0.057636216,
0.01646749,
0.0344473,
0.041812863,
-0.012651682,
-0.00032184945,
0.021102473,
0.033523105,
0.035315484,
-0.010467218,
-0.0052756183,
-0.005069074,
0.069062635,
-0.007302548,
-0.027613852,
-0.0073165507,
0.046965953,
-0.07483186,
-0.057692226,
-0.056628004,
0.034251258,
-0.012742701,
-0.001150869,
0.0051355883,
-0.0019026533,
-0.020500345,
0.034335278,
0.021578573,
0.024281146,
-0.022614794,
0.023468975,
-0.026073527,
-0.0015464528,
-0.007582607,
0.05209104,
-0.040468577,
-0.056459967,
-0.010250173,
-0.0029161181,
-0.042625032,
-0.008149727,
0.07023889,
0.000882187,
0.055787824,
0.018651953,
-0.002807595,
0.047246013,
0.01099233,
0.043185152,
0.020038247,
-0.037163876,
-0.035791587,
-0.006878958,
-0.004053859,
0.011902522,
0.0066409074,
-0.028930131,
0.0132398065,
0.009732063,
0.019940225,
0.01666353,
-0.0580283,
0.05195101,
-0.065029785,
-0.05713211,
-0.026241561,
-0.02415512,
0.008268752,
0.0193381,
-0.0052791187,
-0.004915042,
0.0044284384,
0.012133571,
-0.02887412,
0.00806571,
-0.060548835,
-0.051250864,
-0.035875604,
-0.015305243,
-0.0018343888,
-0.06855853,
-0.0012287605,
0.01481514,
-0.018413903,
-0.021074466,
0.0117344875,
0.055899847,
0.016243443,
0.0097880745,
-0.002685069,
-0.006486875,
-0.022964867,
-0.030274417,
-0.017685749,
0.025779463,
0.0068614543,
-0.0096270405,
0.0025502904,
0.01636947,
-0.008926892,
-0.0034692353,
0.022166697,
0.010551237,
-0.0349234,
-0.028131962,
0.010278178,
0.006798441,
-0.06553389,
-0.025583422,
-0.03769599,
0.0027393305,
0.0143530425,
0.004817021,
-0.0061543044,
0.060436808,
-0.0174617,
0.008660835,
0.030834535,
0.03198278,
0.03184275,
0.04464146,
0.011153364,
-0.022292726,
-0.009865091,
-0.009522018,
-0.014002968,
0.045173574,
-0.0130087575,
0.022474764,
-0.004288409,
0.0012856475,
-0.045453634,
0.04803018,
0.017335674,
0.05099881,
0.0010992329,
-0.016061405,
-0.011146363,
-0.018287877,
-0.0038753212,
-0.007701632,
-0.029714298,
-0.08765858,
0.019114051,
-0.09527619,
0.01160846,
0.0021634586,
0.0012445138,
0.02415512,
0.005394643,
-0.01109035,
0.023300938,
-0.015627312,
0.007624616,
0.003127913,
-0.04506155,
-0.013869939,
0.011174369,
-0.021830628,
0.017237654,
-0.023552991,
0.025891488,
0.046209794,
0.05601187,
-0.019926224,
-0.010866303,
-0.0047154995,
-0.0047435053,
0.07875269,
-0.024309153,
-0.010327189,
-0.04422137,
-0.01608941,
-0.05858842,
-0.0014580591,
-0.007064497,
0.019954229,
0.011412418,
-0.013561875,
0.02807595,
0.057104103,
-0.003213681,
0.048758335,
0.00049010385,
0.022236712,
0.023833051,
0.0063538468,
0.004775012,
-0.0015403265,
0.03864819,
0.019226074,
0.0679424,
0.0038298117,
-0.0053246287,
-0.0014510575,
0.012231592,
-0.022586787,
-0.02005225,
0.031170607,
0.02066838,
0.012763705,
-0.0039908458,
-0.036127657,
0.034951407,
0.041028697,
0.019590152,
-0.005951261,
-0.026367588,
-0.005247612,
-0.008919891,
0.0405806,
-0.049486488,
-0.0877706,
-0.017531715,
0.003987345,
0.083457686,
0.004747006,
-0.0013670397,
0.0036302693,
0.012448639,
0.034699354,
-0.03898426,
0.026157543,
0.0076736263,
0.021900643,
-0.024827262,
0.02415512,
-0.01915606,
0.015935378,
0.0045789704,
-0.031226618,
-0.032486886,
-0.01221759,
-0.017951805,
0.031086588,
-0.0140519785,
-0.027347796,
-0.013848935,
-0.058868475,
-0.0054751607,
-0.018455911,
0.013183794,
0.019954229,
-0.010222167,
-0.04539762,
0.019002028,
-0.013029762,
-0.021214496,
0.062453236,
0.04520158,
-0.0022089682,
0.019744184,
0.022446757,
-0.011944531,
0.06374151,
0.015907371,
-0.04396932,
0.002131952,
-0.007274542,
-0.019954229,
0.0032399367,
-0.033803165,
-0.043381196,
0.051838987,
0.026829686,
-0.021158485,
-0.027921919,
0.0026115535,
0.02321692,
-0.03478337,
0.00010168561,
0.10877506,
0.042485006,
-0.03713587,
0.004071363,
0.032150812,
-0.024197128,
-0.007813656,
-0.06721424,
0.017657742,
-0.0046594874,
-0.02797793,
-0.0059792674,
-0.03360712,
0.020066254,
0.011867515,
-0.039040275,
-0.040216524,
-0.0012698942,
0.04741405,
0.04898238,
0.01750371,
-0.016579514,
0.0044984533,
-0.018273873,
0.069622755,
-0.0064518675,
0.051250864,
0.06267729,
-0.02656363,
-0.0010589744,
0.035315484,
-0.0001632221,
-0.036407717,
0.015627312,
0.0060037724,
0.008891884,
-0.010922315,
-0.057524193,
-0.024407173,
0.010586244,
-0.034895398,
-0.023889063,
-0.036603756,
0.014128994,
-0.053855415,
-0.022572784,
-0.03693983,
0.0018168851,
-0.04142078,
0.02198466,
-0.00830376,
-0.06715824,
0.22908856,
0.040048487,
0.028958138,
0.015585303,
0.033131022,
0.059708655,
-0.003854317,
-0.037752002,
0.048142202,
-0.063629486,
-0.034895398,
-0.03142266,
-0.0024067601,
0.062509246,
-0.036407717,
0.011580454,
-0.03721989,
-0.048814345,
-0.007876669,
-0.00957803,
-0.05954062,
0.0202903,
0.0010572241,
0.05441553,
0.012140573,
0.012609673,
0.022810835,
-0.040636614,
-0.0058147325,
-0.031198613,
-0.013372835,
0.0077366396,
0.025611429,
0.03388718,
-0.031114595,
0.021284511,
-0.024757247,
-0.03699584,
-0.004382929,
-0.025597425,
0.012525654,
0.0033869678,
0.044753484,
-0.025835475,
-0.018441908,
0.009963112,
-0.0067004203,
0.014409054,
0.03369114,
-0.02524735,
0.026437603,
-0.015347253,
-0.0055031665,
-0.030050369,
-0.034811378,
0.03548352,
-0.031310637,
-0.03346709,
0.042008903,
0.022572784,
-0.0363237,
0.02150856,
-0.019786194,
0.0061473027,
-0.014843146,
-0.0055941856,
-0.004379428,
0.06295735,
-0.0055556777,
0.00060256524,
0.027669864,
-0.020206282,
-0.03391519,
-0.03831212,
0.006644408,
0.024337158,
-0.02963028,
0.034475308,
0.012413631,
-0.0401045,
0.032346856,
-0.009732063,
0.0015779594,
-0.052455116,
0.032486886,
0.034251258,
-0.016061405,
-0.0016996103,
0.022194704,
0.0016225938,
0.027781889,
0.030274417,
0.0040923674,
-0.023791043,
0.027585847
] | Create a new quantization config class inside src/transformers/utils/quantization_config.py and make sure to expose the new quantization config inside Transformers main init by adding it to the _import_structure object of src/transformers/init.py. |
[
0.04060547,
0.030484496,
-0.042489856,
0.012316891,
-0.0003910765,
0.01787127,
0.01709624,
-0.0018767873,
0.013973326,
0.05543741,
0.024436226,
-0.015941294,
0.03914659,
-0.03586411,
-0.009155986,
0.043675195,
0.0013752976,
-0.05710904,
-0.016655536,
0.0025758336,
0.008920439,
-0.013167904,
-0.0954958,
-0.030818822,
-0.053856954,
0.0038428549,
0.034952313,
-0.0463802,
0.088505335,
0.041851595,
-0.03622883,
-0.036715124,
0.010326129,
-0.073551826,
-0.031852193,
-0.037535746,
-0.0074349646,
-0.00035973339,
-0.05884146,
-0.02860011,
-0.022901364,
0.022886166,
0.021503272,
-0.05142549,
-0.06425147,
0.0032767793,
-0.0041486877,
-0.029056009,
0.008646898,
-0.0568355,
-0.06285337,
0.0032311894,
0.031578656,
0.0075603374,
-0.019087002,
-0.010873209,
0.02891924,
0.03019576,
-0.034982707,
-0.020196358,
0.032034554,
0.061212137,
-0.010022196,
-0.014315251,
0.009125593,
0.05707865,
-0.00096403796,
0.034253266,
-0.0013040632,
-0.026609348,
-0.022475857,
0.00891284,
-0.032125734,
-0.046805706,
-0.016093262,
0.023448443,
-0.005125073,
-0.03887305,
-0.011260724,
0.030955592,
-0.00011421238,
0.016473178,
-0.05802084,
0.044769354,
-0.036563158,
-0.0141632855,
0.01860071,
-0.039724063,
-0.020743437,
-0.004596989,
-0.020181162,
0.042216316,
0.0060672658,
0.02168563,
0.025636762,
0.009361141,
-0.02122973,
0.060178764,
0.014664775,
0.00850253,
0.031882588,
0.059783652,
-0.030165365,
0.03665434,
-0.004661575,
0.024755355,
-0.026290217,
0.008510129,
-0.0047527547,
-0.03720142,
-0.016655536,
0.003989123,
-0.0076591154,
-0.021716025,
-0.015409411,
-0.010409711,
-0.023585213,
0.031852193,
-0.027019657,
-0.049814645,
0.015021896,
0.003624403,
0.002104737,
-0.016564356,
0.017992843,
-0.06929676,
0.015021896,
0.013570615,
0.0003827658,
-0.0071880193,
0.016290817,
0.009627082,
-0.01873748,
0.041274123,
-0.0019432727,
-0.038994625,
0.024527406,
0.0107592335,
-0.009421928,
0.0028303775,
0.02268861,
-0.023630803,
0.013114716,
0.07422048,
0.019041412,
0.0041980767,
-0.0030982187,
-0.04841655,
-0.070086986,
-0.019740459,
0.003428746,
0.013509829,
-0.012962749,
0.006492772,
-0.0061090565,
-0.02782508,
-0.043948736,
0.031077165,
0.010554079,
0.045407612,
0.023022937,
-0.0043576416,
-0.026305415,
0.0509392,
-0.0067321192,
0.013213494,
-0.014565997,
-0.018752676,
0.03856912,
-0.049358744,
-0.021275321,
0.000087202694,
-0.011747017,
-0.01837276,
0.07738138,
0.031730622,
0.058355168,
-0.008570915,
-0.0022984946,
-0.028797667,
0.012354882,
-0.0045817923,
-0.03382776,
0.054556,
0.025393615,
-0.0072184126,
0.007176622,
-0.0066903285,
0.025545582,
0.014740758,
0.008798865,
0.031426687,
-0.094523214,
0.041395698,
-0.048750877,
-0.018114416,
0.002705005,
-0.021032175,
-0.0015804524,
-0.0036851894,
-0.020485096,
0.060239553,
-0.025196059,
0.02396513,
-0.010614865,
0.038082823,
0.029724663,
0.014072105,
0.009209175,
0.026974067,
0.04151727,
0.006337006,
-0.055011902,
0.012362481,
0.0077123037,
-0.026761314,
-0.0045134076,
0.042793788,
-0.03932895,
-0.0130767245,
0.02537842,
0.018342366,
0.057595335,
0.0277339,
0.026426988,
-0.018676693,
-0.016002081,
0.03601608,
0.0368367,
0.0049997005,
0.023478836,
0.030210955,
0.037930857,
0.018570315,
0.008251785,
0.03768771,
0.027399573,
0.01996841,
0.024481816,
-0.03224731,
0.001305013,
0.02122973,
0.011944573,
0.008829258,
-0.012765192,
-0.017217813,
-0.041851595,
-0.0341013,
-0.058112018,
0.022977347,
-0.0618504,
0.055771735,
0.021305714,
0.016199637,
-0.052276503,
0.00032387878,
-0.021761615,
0.017263403,
-0.025135271,
-0.0058165207,
0.025059288,
0.037991643,
-0.017612927,
0.004988303,
0.008403752,
0.042824183,
-0.002573934,
-0.0015814023,
-0.0057671317,
-0.038052432,
-0.034921918,
-0.04616745,
-0.05288437,
0.010014597,
-0.02551519,
0.008153007,
0.020682652,
-0.021518467,
-0.009786648,
0.026867691,
-0.0063560023,
0.020697849,
-0.0065687555,
0.02928396,
0.070512496,
0.014117695,
-0.022354284,
0.042824183,
-0.05434325,
0.01432285,
-0.01173182,
0.0076819104,
0.01791686,
-0.012780389,
0.035347424,
0.021442484,
-0.009095199,
-0.04218592,
-0.038082823,
0.021442484,
-0.007461559,
-0.00404611,
0.015059888,
0.027445164,
-0.013935335,
0.010272941,
-0.022536643,
-0.052853975,
0.059266966,
0.023904342,
-0.03556018,
0.014755955,
-0.0152498465,
0.04133491,
-0.033402253,
0.050209757,
0.035894506,
0.00927756,
-0.055984486,
-0.01659475,
-0.038356364,
0.05142549,
0.00018247862,
0.007351383,
-0.019694868,
0.052550044,
-0.04236828,
-0.047200818,
0.0052314494,
-0.019862032,
-0.00882166,
-0.0117014265,
-0.030378118,
0.0035484196,
-0.01173182,
0.001323059,
-0.008130212,
0.025332829,
-0.0073095923,
0.048477337,
0.018342366,
-0.058324773,
0.04060547,
0.016017277,
0.038174003,
0.027429968,
0.040575076,
-0.04169963,
-0.018524725,
-0.027308393,
-0.007020856,
0.0064357845,
-0.024983305,
-0.012947553,
0.012514448,
0.034131695,
-0.023904342,
0.033523828,
0.021320911,
0.015789328,
0.05893264,
0.021260124,
0.0023307875,
-0.015652558,
-0.055072688,
0.009953811,
-0.0039435327,
0.0045893905,
0.042125136,
-0.04710964,
-0.006557358,
-0.016062867,
-0.063400455,
0.0056189643,
0.0036168045,
-0.00463878,
0.03856912,
0.04519486,
0.0033679593,
-0.007112036,
-0.045802727,
-0.0013126113,
0.039572097,
0.028220193,
0.009619485,
0.0000036730203,
-0.022810183,
0.030180562,
-0.022171924,
0.006542161,
0.005797525,
-0.015622164,
0.0014835737,
-0.028888846,
-0.010151368,
0.016731521,
0.019360542,
0.040848617,
0.05443443,
-0.00037706707,
0.08643859,
0.032672815,
0.010538883,
0.023630803,
0.013175502,
-0.024436226,
-0.035043493,
0.0052618426,
0.05425207,
-0.025530385,
-0.008700087,
0.007393174,
0.007370379,
0.012803184,
-0.013790967,
0.019208575,
-0.040088784,
0.00037041854,
0.015758933,
0.059905224,
-0.03586411,
-0.021716025,
-0.03005899,
0.007374178,
0.044586994,
-0.037171025,
0.019634081,
-0.018144809,
-0.0045703948,
0.045589972,
-0.018144809,
-0.0109036025,
-0.008350563,
0.0031476077,
-0.027247608,
0.05379617,
0.04747436,
-0.014269662,
-0.020089982,
-0.05075684,
-0.04060547,
-0.014102498,
-0.015409411,
-0.033979725,
0.027901065,
0.0015576574,
-0.002505549,
-0.010037392,
-0.031943373,
0.033371862,
0.030271742,
-0.044678174,
0.013357862,
-0.019801246,
-0.009877828,
-0.04124373,
0.0015738038,
-0.032885566,
0.03738378,
0.056318816,
-0.04850773,
-0.0028113816,
0.041152548,
-0.021609647,
-0.023843557,
0.017445764,
0.010812422,
0.012081343,
0.0327336,
-0.0054556,
-0.009042012,
0.015272642,
-0.00704745,
-0.008517726,
0.011253125,
-0.0563796,
-0.0020515488,
0.028904043,
0.01850953,
0.036563158,
-0.07020856,
0.07361261,
-0.015295436,
0.012172523,
0.013441443,
-0.047808684,
-0.001887235,
0.0066029476,
-0.014938314,
0.022992544,
-0.010113376,
-0.020591471,
-0.004741357,
-0.0036016079,
0.03309832,
-0.0050035,
-0.012012958,
-0.039906424,
0.06947912,
0.024846535,
0.02287097,
-0.030727642,
-0.031153148,
-0.018235989,
-0.057960052,
0.033037536,
0.0013563017,
-0.013935335,
0.027080445,
-0.01354782,
-0.009087602,
-0.0060672658,
-0.0052618426,
-0.015067486,
0.0038200598,
-0.048264585,
0.022156727,
-0.02100178,
-0.07039092,
0.06285337,
-0.012567636,
-0.0745852,
-0.02268861,
0.026396595,
0.007096839,
0.02937514,
0.042824183,
-0.048994023,
-0.022156727,
-0.029709466,
0.031821802,
-0.014573595,
0.019862032,
-0.066379,
-0.029618286,
-0.0035617168,
0.019497313,
0.029800646,
-0.047291998,
-0.034040514,
-0.0322777,
-0.005315031,
-0.027749097,
-0.018767873,
-0.018433547,
0.038538724,
-0.01572854,
0.011716623,
0.021442484,
-0.050179366,
-0.0052618426,
-0.022217514,
0.01209654,
0.008297375,
-0.025302436,
-0.022126334,
0.054556,
0.020469898,
-0.012035753,
0.022992544,
0.00084958813,
0.025925498,
0.00322739,
0.03747496,
-0.04297615,
-0.017810483,
-0.008836856,
0.007651517,
0.050392117,
-0.019694868,
-0.011336707,
-0.009763853,
0.016564356,
0.012362481,
0.031305116,
-0.03282478,
0.004464018,
-0.02741477,
-0.044860534,
0.013942934,
-0.0010191259,
0.023570016,
0.0003554593,
0.0005618014,
0.06874968,
-0.03993682,
0.020105178,
0.060908206,
-0.014968708,
0.0016041972,
-0.018570315,
0.063582815,
-0.01173182,
0.008570915,
0.016989863,
0.014991503,
-0.0043956335,
0.016837897,
-0.038325973,
-0.08613466,
-0.0036813903,
0.030256545,
0.019846834,
-0.029663876,
-0.01209654,
0.014102498,
-0.04461739,
-0.026837299,
0.020378718,
0.01664034,
0.0027410972,
0.0133426655,
0.0005461299,
-0.008517726,
0.041456483,
-0.016685931,
0.010265342,
-0.0070284544,
0.053340267,
-0.024497012,
-0.022141531,
0.0058963033,
0.0331895,
-0.011800204,
-0.018099219,
-0.01778009,
0.0722753,
-0.031669836,
0.008905241,
-0.01695947,
0.0029994403,
-0.009163585,
0.027171625,
0.019740459,
0.026305415,
-0.01404931,
0.013411051,
0.024269063,
-0.030226152,
-0.013836557,
0.058689494,
-0.049723465,
-0.03604647,
-0.00222821,
0.022445465,
-0.03732299,
-0.016154047,
0.058507133,
-0.03528664,
0.034344446,
0.043219294,
-0.026852494,
0.042520247,
0.01195977,
0.002159825,
0.009581493,
-0.00936874,
-0.056592353,
0.0034667375,
0.029572695,
0.0113671,
0.0277339,
-0.025074486,
-0.00017452412,
-0.013821361,
0.02723241,
-0.015834918,
-0.08966028,
0.02246066,
-0.045042895,
-0.064190686,
-0.01705065,
0.0034363442,
-0.018828658,
0.031305116,
0.00032934008,
-0.022582233,
0.0043956335,
0.017157027,
-0.03154826,
-0.006519366,
-0.06169843,
-0.021716025,
-0.029998202,
-0.023767574,
-0.031578656,
-0.040757436,
0.023949932,
0.011405092,
0.0019679673,
-0.00042336938,
0.026533365,
0.042337887,
-0.044283062,
0.035620965,
-0.015401812,
0.01059207,
-0.042398676,
0.012111736,
-0.0054366044,
0.017172223,
0.024223473,
-0.006120454,
0.0031799006,
0.021199338,
-0.012628423,
0.0034933316,
-0.00741217,
0.005311232,
-0.04686649,
-0.026791709,
-0.0028037834,
0.030651659,
-0.03428366,
-0.003291976,
-0.031244328,
0.020637061,
-0.02850893,
0.033463042,
-0.020697849,
0.02122973,
-0.01996841,
0.0227342,
-0.0088748485,
0.0368367,
-0.005607567,
0.025591172,
0.056075666,
-0.012453661,
-0.021336108,
-0.029587893,
0.002655616,
0.042398676,
-0.0045817923,
0.0056949477,
-0.011374698,
-0.02464898,
-0.031609047,
0.03154826,
-0.010827619,
0.054859936,
0.003664294,
-0.017035453,
-0.004558997,
0.017856073,
-0.024892125,
-0.010508489,
-0.044769354,
-0.05574134,
0.00895843,
-0.047322392,
-0.004483014,
-0.007887065,
-0.015971687,
0.0030469298,
0.024952913,
0.010683251,
0.0059760856,
0.03133551,
-0.019649278,
0.0155157875,
-0.04978425,
-0.031609047,
-0.04097019,
0.020044392,
-0.019314952,
-0.022703806,
0.030408513,
0.04859891,
0.032490455,
-0.020804225,
0.003432545,
-0.0050528888,
0.01695947,
0.06747316,
-0.02732359,
-0.0074729566,
-0.030362923,
0.036411192,
-0.066439785,
0.0016526366,
0.010326129,
0.030393315,
-0.018160006,
0.012468858,
0.008236589,
0.08121094,
0.034222875,
-0.013441443,
0.005360621,
0.03528664,
0.0313659,
0.02960309,
0.008266982,
0.001554808,
0.048811667,
0.0068005044,
0.012514448,
-0.029891826,
-0.0020135571,
0.008160605,
-0.0070930403,
0.0041676834,
0.00020669829,
0.02805303,
0.009725861,
-0.003869449,
-0.023387656,
-0.01195977,
0.019026216,
0.043492835,
0.013821361,
0.010288137,
-0.00427406,
-0.0035845116,
0.018615905,
0.009725861,
-0.013699787,
-0.078718685,
-0.016108457,
0.006287617,
0.069843836,
-0.024208276,
0.03969367,
0.01846394,
0.033493433,
0.058081627,
-0.0043348465,
-0.0054897927,
-0.007811082,
0.024937715,
-0.034921918,
0.014877528,
-0.0019679673,
0.018995821,
-0.0033052731,
-0.0014313352,
-0.028584914,
0.038629904,
-0.027703507,
-0.0011853393,
-0.029481515,
-0.04133491,
-0.01691388,
-0.053036336,
-0.004969307,
-0.07817161,
-0.016792307,
0.013167904,
-0.031031575,
-0.029891826,
0.024345046,
-0.009771451,
0.0090192165,
0.010827619,
0.02928396,
-0.014816741,
0.04565076,
0.0015092181,
-0.02341805,
0.04060547,
-0.014376039,
-0.05306673,
-0.014907922,
-0.0015358123,
0.016655536,
-0.0009269961,
-0.012765192,
-0.02396513,
0.029496713,
-0.018935036,
-0.027901065,
-0.043675195,
0.008358162,
0.021898383,
-0.00006749453,
0.0040347124,
0.07537542,
0.0053264285,
0.0011853393,
-0.02419308,
0.0046083867,
-0.038933836,
-0.030697249,
-0.03759653,
0.03328068,
-0.03604647,
-0.035620965,
-0.015090281,
-0.024466619,
0.0008799815,
0.008077024,
-0.037809286,
0.031517867,
-0.024345046,
0.06315731,
0.031183543,
0.015880508,
-0.030089382,
-0.020044392,
0.0118457945,
0.017947253,
0.010880807,
0.069175184,
0.090997584,
0.011769812,
-0.005573374,
0.012841176,
-0.00618504,
-0.01627562,
-0.020530684,
-0.005197257,
0.020120375,
-0.033159107,
-0.0672908,
-0.030940395,
0.022719003,
-0.013213494,
-0.06197197,
-0.053340267,
-0.02919278,
-0.045985088,
-0.0037364783,
-0.02887365,
0.013038732,
-0.02659415,
-0.034617987,
0.031487476,
-0.04747436,
0.27475557,
0.028478537,
0.036380798,
0.03556018,
0.020849815,
0.053735383,
-0.017521746,
0.012491653,
0.014398834,
-0.025317632,
-0.019071806,
-0.012248506,
0.00071756716,
0.034435626,
-0.039663278,
0.03215613,
-0.03875148,
-0.016260425,
-0.023159707,
-0.04245946,
-0.020986585,
-0.00095359026,
0.019026216,
0.04072704,
0.02255184,
0.0286457,
0.0146951685,
-0.018783068,
0.0012100339,
-0.042733002,
-0.03768771,
-0.007925057,
0.023524426,
-0.0058545126,
-0.028676093,
0.051972568,
0.00069002324,
-0.021396894,
-0.014869929,
-0.025104878,
0.044465423,
-0.017460959,
0.021655237,
-0.0053568217,
-0.046137054,
0.012537243,
-0.035317034,
0.016731521,
0.01168623,
-0.03577293,
0.02396513,
-0.06060427,
0.0111695435,
-0.03252085,
-0.043705586,
0.01700506,
-0.042550642,
-0.03215613,
0.005223851,
0.016564356,
0.005938094,
0.026943674,
-0.040301535,
0.040271144,
-0.017901663,
-0.0044222274,
-0.015204256,
0.03850833,
-0.022627823,
0.010386916,
0.019953212,
0.014649578,
0.020713044,
-0.036867093,
-0.0055847717,
0.029131994,
-0.0026138253,
0.015485395,
-0.011351903,
-0.024800945,
0.042733002,
-0.009976606,
0.009042012,
-0.05306673,
0.038538724,
0.015287838,
-0.024223473,
-0.028888846,
0.018099219,
0.026776511,
0.02923837,
0.03252085,
0.03087961,
-0.016381998,
0.017795287
] |
Contribute new quantization method
Transformers supports and integrates many quantization methods such as QLoRA, GPTQ, LLM.int8, and AWQ. However, there are other quantization approaches that are not yet integrated. To make adding and using these quantization methods with Transformers models easier, you should use the [HfQuantizer] class. The [HfQuantizer] is designed as an internal helper class for adding a quantization method instead of something you apply to every PyTorch module.
This guide will show you how to integrate a new quantization method with the [HfQuantizer] class.
Requirements
Before integrating a new quantization method into Transformers, ensure the method you are trying to add meets the following prerequisites. Only quantization methods that can be run with PyTorch modules are currently supported. |
[
0.017074455,
0.02747245,
-0.012879018,
-0.012586313,
0.005704262,
-0.00534535,
0.006523139,
0.019666985,
0.006307095,
0.025325947,
0.0037041116,
-0.012328453,
0.037549865,
-0.032113913,
-0.01027255,
0.028364504,
-0.0026900978,
-0.07666082,
-0.04150835,
0.0018363751,
0.004826147,
-0.02513081,
-0.0645066,
-0.04011452,
-0.008021509,
-0.018663425,
0.037354726,
-0.011645475,
0.072312064,
0.02630163,
-0.024169065,
-0.011422462,
-0.014900076,
-0.06673673,
-0.009108699,
-0.020308148,
0.0012814553,
-0.008613888,
-0.058652498,
-0.024768414,
0.0056659314,
0.008202707,
0.035877265,
-0.033563502,
-0.061272904,
-0.027207622,
-0.026594335,
0.025953172,
-0.025284132,
-0.015569116,
-0.020726299,
0.02136746,
0.03498521,
0.008913563,
-0.027751217,
-0.010481625,
-0.0096732015,
0.011896365,
-0.028852345,
0.004181499,
0.014063776,
0.058150716,
-0.015708499,
-0.010321334,
0.017046578,
0.07961575,
0.00027963775,
0.012377238,
-0.016489046,
-0.013645626,
-0.016767813,
0.03325686,
-0.011554876,
-0.021701982,
-0.011603661,
-0.0039759087,
0.0051432443,
-0.03540336,
0.0002680951,
0.03841404,
0.0024618576,
0.02086568,
0.015401856,
0.028113613,
-0.018984007,
-0.041480474,
0.028434195,
-0.025688345,
-0.0410902,
-0.0046554026,
0.016516922,
0.03925034,
-0.019485787,
-0.0028033468,
0.041480474,
0.02322126,
-0.027528204,
0.049397446,
0.022426775,
0.0057321386,
0.0407278,
0.08179013,
0.020614792,
0.034037404,
0.0060736276,
0.011659414,
-0.018008323,
0.023430334,
-0.01729747,
-0.002940988,
0.02738882,
-0.006007421,
0.024029683,
-0.015596992,
-0.008983254,
0.011931212,
-0.012809326,
0.055836953,
-0.057481676,
-0.047223065,
0.0033016421,
0.00016573547,
0.010704638,
-0.07916972,
-0.017492605,
-0.038720682,
-0.000055753324,
0.007240963,
0.025548961,
0.014467987,
0.013220507,
-0.007659113,
-0.020140888,
0.041954376,
-0.022914616,
-0.01870524,
-0.013241414,
0.024740538,
-0.0037110806,
-0.031946655,
0.013471397,
-0.005603209,
-0.0023294436,
0.061440162,
0.0040804464,
-0.0012527074,
0.005543971,
-0.031946655,
-0.031890903,
0.005812284,
-0.0029775759,
-0.009547757,
-0.009889246,
0.018607672,
-0.012844172,
-0.018091954,
-0.06071537,
0.03640692,
0.0049202307,
0.022789171,
0.031416997,
0.022203762,
-0.03484583,
0.038191028,
-0.0044951118,
0.037800755,
-0.033033844,
-0.03498521,
0.015596992,
-0.025758035,
-0.013429582,
0.0011699486,
0.0017649411,
-0.023263074,
0.068242066,
0.003420118,
0.04811512,
0.0072130864,
-0.022440713,
-0.010363149,
-0.0070667337,
-0.017910756,
0.024099374,
0.035765756,
0.0009843946,
-0.039194588,
0.010788268,
-0.00014624358,
-0.0007134683,
-0.0012361557,
0.023040062,
0.031751517,
-0.09266202,
0.01294871,
-0.064673856,
-0.032225423,
-0.014732816,
-0.025994988,
0.019081576,
-0.01602908,
-0.025660468,
0.041982252,
-0.04499293,
0.017074455,
0.0037354727,
0.0116524445,
0.030859465,
0.02322126,
-0.016544798,
0.04150835,
0.046358887,
-0.005174605,
-0.048087243,
0.010321334,
0.0040246933,
-0.0078054653,
-0.0079518175,
0.028099675,
-0.0071503636,
-0.0027284282,
0.0327272,
-0.010119229,
0.02113051,
0.03258782,
0.010621008,
0.0005374969,
-0.014272851,
0.051320937,
0.03306172,
0.01344352,
0.0067043374,
-0.004191953,
0.009875308,
0.02087962,
-0.010837052,
0.043738484,
0.010328303,
0.04044904,
-0.0016525633,
-0.020572977,
-0.019471848,
0.039389722,
-0.018524041,
0.029019605,
-0.046498273,
0.015596992,
-0.012739634,
-0.011973026,
-0.06656947,
0.02362547,
-0.04644252,
0.052296616,
0.015917573,
0.042623416,
-0.057091404,
-0.02129777,
0.0084745055,
0.041313212,
-0.048728406,
-0.023430334,
0.01729747,
0.005753046,
-0.012453899,
-0.0012605478,
0.02096325,
0.021869242,
-0.02588348,
0.013492305,
-0.010816145,
-0.032197546,
-0.012223916,
-0.029326249,
-0.06556591,
0.019360341,
0.004209376,
0.0041640764,
0.03373076,
-0.039027326,
0.013812886,
0.014537679,
0.012161193,
0.013060216,
0.0017187705,
0.022747356,
0.03685295,
0.019569417,
0.011067035,
0.013262322,
-0.04744608,
0.025172627,
-0.033619255,
-0.014314666,
0.027207622,
-0.009547757,
0.022928555,
0.020210579,
0.0019809853,
-0.040142395,
-0.02613437,
0.019680923,
-0.052547507,
-0.00087637256,
-0.0030472677,
0.04150835,
-0.015820006,
-0.006056205,
-0.003826072,
-0.04766909,
0.052882027,
0.02663615,
-0.043877866,
0.0018311483,
0.016823566,
0.07203329,
-0.055474557,
0.0646181,
0.020475408,
-0.017924694,
-0.05093066,
-0.028085737,
-0.040365405,
0.022315267,
-0.010760391,
0.007854249,
-0.0024374656,
0.057593185,
0.00011101663,
-0.048895665,
0.001112453,
-0.0101958895,
-0.006833267,
-0.052993536,
-0.0015262472,
-0.01745079,
0.0016368828,
-0.021743797,
-0.021255955,
0.040226024,
-0.02121414,
0.018273152,
-0.0031936201,
-0.013450489,
0.06924563,
0.0028904614,
0.03325686,
0.012161193,
0.03297809,
-0.04039328,
-0.0075266985,
-0.015806068,
0.020586915,
0.013401705,
-0.019694861,
0.015889697,
0.0029218227,
0.01569456,
-0.011527,
0.045550466,
0.050317373,
0.010558286,
0.059767563,
0.057816196,
0.022607973,
-0.018133769,
-0.03373076,
-0.029632892,
0.00048871274,
-0.0063105794,
0.053801958,
-0.04273492,
0.01119248,
0.02338852,
-0.07147576,
0.02596711,
0.011011281,
0.014398296,
0.036100276,
0.018733118,
0.025674406,
-0.0052547506,
-0.027165808,
-0.005965606,
0.02295643,
-0.0046379794,
0.032615695,
0.020670544,
-0.015917573,
0.020740237,
-0.026482828,
0.008572074,
0.017478667,
-0.020991126,
0.033898022,
-0.03925034,
-0.0027005516,
-0.018189522,
0.009422312,
0.03782863,
0.013555027,
-0.003186651,
0.044073004,
0.0043243673,
0.0025158687,
0.041814994,
0.011931212,
0.024419956,
-0.014914014,
0.047306694,
0.045466837,
0.009659263,
-0.034232542,
-0.003599574,
0.014914014,
0.018426474,
-0.011352771,
0.0394176,
-0.033619255,
-0.0023155052,
0.019931814,
0.038302533,
-0.0435991,
0.011854551,
-0.010899775,
0.0016220732,
0.04883991,
-0.04309732,
0.0060840813,
-0.019653047,
-0.028573578,
0.039640613,
-0.0029322763,
-0.012244823,
-0.010816145,
0.02848995,
-0.03598877,
0.027946353,
0.035347607,
-0.0048366007,
0.028531764,
-0.018259214,
-0.026691904,
-0.014426173,
-0.020991126,
0.0031065056,
-0.00085590064,
-0.0014077715,
-0.0049829534,
0.021478968,
-0.008000602,
-0.018524041,
0.032559942,
-0.028712962,
0.0011751755,
-0.003366107,
-0.0047216094,
-0.0532723,
0.023932114,
-0.02731913,
0.038358286,
0.05396922,
-0.032448433,
0.0008855196,
0.02605074,
-0.057927705,
-0.07532274,
0.004286037,
0.009171422,
0.023750916,
0.0015854852,
0.002756305,
-0.016809627,
-0.010760391,
0.002510642,
-0.024029683,
0.02121414,
-0.05837373,
0.0203639,
0.01569456,
-0.0105373785,
0.016043019,
-0.037131716,
0.056171473,
0.0065858616,
-0.0046972176,
0.023541842,
-0.055084284,
-0.035263978,
0.0044045127,
-0.044379644,
0.03685295,
-0.012000903,
-0.0046554026,
-0.017004764,
-0.0150115825,
-0.009457158,
-0.025242317,
0.004867962,
-0.023681225,
0.05564182,
0.017576236,
0.032225423,
-0.0385813,
-0.034371924,
-0.006411632,
-0.05703565,
0.028406318,
-0.0090181,
-0.027806971,
0.028211182,
-0.0018050139,
-0.013938331,
0.0013232703,
-0.024406018,
-0.014168314,
-0.01011226,
0.002935761,
0.009464127,
-0.005651993,
-0.054833394,
0.042790677,
-0.011067035,
-0.07197754,
-0.02865721,
0.047724847,
-0.0063837557,
0.02188318,
0.051404566,
-0.025827728,
-0.061607424,
-0.023444273,
0.03685295,
-0.008927501,
0.002038481,
-0.043877866,
-0.057760444,
-0.031528506,
0.052129358,
0.0038121336,
-0.06238797,
-0.02832269,
-0.03133337,
-0.032336928,
-0.037689246,
-0.013171723,
-0.030915217,
0.053801958,
-0.04633101,
0.014927953,
-0.021228079,
-0.038469795,
0.011227326,
0.0060109054,
0.006620707,
0.015262472,
-0.030023165,
-0.037131716,
0.013408675,
0.00212908,
-0.04351547,
0.04384999,
0.012474806,
0.008160893,
-0.020656606,
0.018607672,
-0.044742044,
0.0059168213,
-0.0042790677,
-0.0021918025,
0.036629934,
-0.027082177,
0.00893447,
-0.019834245,
0.028796593,
0.008153924,
0.030246178,
-0.037968013,
-0.008802056,
-0.05310504,
-0.06205345,
0.027347006,
0.0022214216,
0.02329095,
0.016753875,
-0.0070597646,
0.05937729,
-0.023709102,
0.022148008,
0.076772325,
-0.0032249813,
-0.0036971422,
-0.055418804,
0.05385771,
-0.010760391,
-0.027793031,
0.018593734,
0.002266721,
0.009171422,
0.025033243,
0.014398296,
-0.06790755,
-0.019973628,
0.020210579,
0.014412235,
-0.013910455,
0.0038469795,
-0.002744109,
-0.060994137,
-0.00058933004,
0.030943096,
0.026789472,
0.0036239661,
0.0074012536,
-0.012203009,
0.050651893,
0.039863627,
-0.021757735,
0.006822813,
-0.019471848,
0.0771626,
-0.006070143,
-0.008634796,
-0.004969015,
0.043125197,
-0.05330018,
-0.019346403,
-0.033535626,
0.034790073,
-0.052547507,
-0.0134574585,
-0.005090975,
0.006882051,
-0.014969767,
0.045578342,
0.037549865,
-0.009652294,
0.0012291865,
0.0042267987,
-0.028071798,
-0.02439208,
-0.020308148,
0.035096716,
-0.056171473,
-0.05764894,
-0.019443972,
0.027458511,
-0.026873102,
-0.01595939,
0.047892105,
0.02355578,
0.036351167,
0.028434195,
-0.016070895,
0.06367029,
0.012572374,
0.03484583,
-0.008362998,
-0.0145794945,
-0.059934825,
0.007666082,
0.029103234,
-0.0030577213,
0.008195738,
-0.019304588,
0.009310805,
0.020740237,
0.034371924,
0.0029671222,
-0.07777589,
0.03281083,
-0.044686288,
-0.036128152,
-0.01344352,
0.0048784157,
-0.0019687891,
0.050958537,
0.004442843,
-0.025409577,
0.0007269711,
0.023040062,
-0.015164904,
-0.030497069,
-0.07777589,
-0.040030885,
-0.012669943,
-0.031444874,
-0.013269291,
-0.027904538,
0.005453372,
0.024642969,
0.016084833,
-0.0255629,
0.008690549,
0.056004215,
-0.026343446,
0.013617749,
0.008634796,
-0.004467235,
-0.018984007,
0.002427012,
-0.010558286,
0.04106232,
0.017687742,
0.0015776448,
0.0110530965,
0.001392962,
-0.012370269,
0.0016551767,
0.0018102408,
-0.018928254,
-0.031221861,
-0.045215946,
0.011875458,
0.019750616,
-0.06300125,
-0.03347987,
-0.037354726,
0.05179484,
0.0037981952,
0.05126518,
-0.012356331,
0.037215345,
-0.03799589,
0.006540562,
-0.0067182756,
0.037549865,
0.02748639,
0.010070444,
0.026454952,
-0.0156109305,
0.016377538,
-0.004651918,
-0.0004987309,
0.03197453,
-0.010314365,
-0.000920801,
-0.017144147,
-0.0011307471,
-0.05472189,
0.030162549,
0.011917273,
0.058596745,
-0.008307246,
-0.027779093,
-0.022245577,
0.01679569,
-0.028796593,
-0.0063314866,
-0.04624738,
-0.06684823,
0.023207322,
-0.07286959,
0.0003096923,
-0.0059342445,
-0.006296641,
0.023918176,
0.02121414,
-0.011533969,
0.03398165,
0.016098773,
0.005543971,
0.030608576,
-0.06288975,
-0.012244823,
-0.019820306,
0.015332164,
-0.002893946,
-0.00968714,
0.030274054,
0.054220106,
0.041954376,
-0.033201106,
-0.032113913,
-0.003850464,
0.00072479324,
0.073427126,
-0.03531973,
-0.00019110758,
-0.04711156,
0.020949312,
-0.055418804,
0.021005064,
-0.0020541616,
0.0222177,
0.019430034,
0.021116572,
0.04594074,
0.08312821,
0.013931362,
0.0036971422,
0.015081274,
0.025660468,
0.021451091,
-0.006578892,
0.0068855355,
-0.02412725,
0.0687996,
0.0013345951,
0.048393887,
-0.013798947,
0.004035147,
0.016572675,
0.0047041867,
-0.019151267,
0.003965455,
0.050651893,
0.019736677,
0.0019287165,
-0.018886438,
-0.046832792,
-0.0016865381,
0.041368965,
0.0045229886,
-0.017813187,
-0.03665781,
0.002421785,
-0.011269141,
0.044212386,
-0.012823264,
-0.06813056,
0.013178692,
0.001979243,
0.055502433,
-0.016043019,
0.028434195,
-0.0051815747,
0.045020808,
0.06835358,
0.019109452,
0.018064076,
0.00069386757,
0.030190425,
-0.025827728,
0.012927802,
-0.005561394,
0.0025332917,
-0.0075545753,
-0.01979243,
-0.031082477,
0.014551617,
-0.024545401,
-0.0064081475,
-0.00801454,
-0.020768113,
0.0128581105,
-0.05703565,
0.021074757,
-0.026148308,
0.016252093,
0.021437153,
-0.035486992,
-0.040811434,
0.014746754,
-0.037020206,
0.01094159,
0.018524041,
0.03623966,
0.016921135,
0.039891504,
0.00080929435,
-0.017172024,
0.0511258,
-0.010209828,
-0.047306694,
-0.024810228,
0.021604413,
0.0065022316,
-0.011248233,
-0.02246859,
-0.026441013,
0.047808476,
-0.014969767,
-0.043794237,
-0.03456706,
0.027249437,
0.021506844,
-0.027249437,
0.022482527,
0.11485185,
0.024698723,
-0.017004764,
-0.021827426,
0.048561145,
-0.05210148,
-0.03877644,
-0.0779989,
0.050484635,
0.0020228003,
-0.021451091,
-0.028935974,
-0.032782953,
-0.002822512,
-0.008453597,
-0.029409878,
-0.018551918,
-0.03874856,
0.06238797,
0.03950123,
0.019527601,
-0.013513212,
0.009763801,
0.019067638,
0.045745604,
0.022789171,
0.06528714,
0.08407601,
-0.030497069,
-0.0141474055,
0.021674104,
0.008530258,
-0.043877866,
0.026218,
0.0019531086,
0.012495713,
-0.022343144,
-0.07833342,
-0.04376636,
0.016893256,
-0.045299575,
-0.046303134,
-0.0435991,
0.012119379,
-0.059321538,
-0.033758637,
-0.034288295,
0.013136877,
-0.031110356,
-0.011575784,
0.008551166,
-0.04510444,
0.22758506,
0.033451993,
0.030246178,
0.032113913,
0.036936577,
0.07515548,
-0.0075963903,
-0.011763952,
0.017729556,
-0.04242828,
-0.031221861,
-0.056394488,
0.01085796,
0.05304929,
-0.0424004,
0.024183005,
-0.03799589,
-0.016753875,
-0.003535109,
-0.025939234,
-0.070249185,
0.005111883,
0.0068715974,
0.05803921,
0.0452717,
0.029549262,
0.036629934,
-0.012879018,
-0.012237854,
-0.03498521,
0.0012701304,
-0.005090975,
0.013722287,
-0.002918338,
-0.0065161698,
0.038107395,
-0.008864778,
-0.02765365,
-0.010314365,
-0.039863627,
0.037689246,
-0.0056972927,
-0.019680923,
-0.011979995,
-0.054024972,
0.008209677,
-0.025437454,
0.030051041,
0.017046578,
-0.035152473,
0.022663726,
-0.028294811,
0.0058227377,
-0.018830685,
-0.03490158,
0.03791226,
-0.045020808,
-0.016070895,
0.002643056,
0.01989,
-0.04000301,
0.017827125,
-0.01962517,
0.021325646,
-0.062332217,
-0.0075894212,
-0.006404663,
0.048812035,
-0.012837203,
0.012133317,
0.004916746,
0.004153623,
0.009791678,
-0.050679773,
0.018078016,
0.01962517,
-0.01278145,
0.038525548,
0.020405717,
-0.04092294,
0.02012695,
-0.048421763,
0.0053592883,
-0.05037313,
0.060994137,
0.016419355,
-0.040783558,
0.015262472,
0.012335423,
0.019318527,
0.026664028,
0.03297809,
0.0018520558,
-0.029577138,
0.019025821
] | Create a new file inside src/transformers/quantizers/ named quantizer_your_method.py, and make it inherit from src/transformers/quantizers/base.py::HfQuantizer. Make sure to add the new quantizer and quantization config in the quantization auto-mapping in src/transformers/quantizers/auto.py.
Define the following class attributes/property methods for your quantization method: |
[
0.036583453,
-0.00062784867,
-0.027883729,
0.000053559997,
0.012714981,
-0.014819273,
0.022872094,
-0.022381341,
-0.025236635,
0.038695183,
0.029817002,
-0.016730238,
0.03465018,
-0.03093235,
-0.030872865,
0.06787272,
0.016581524,
-0.06906242,
-0.055113122,
0.031794887,
0.025340734,
0.01101965,
-0.096247196,
-0.033460476,
-0.026500696,
-0.012335762,
0.030411854,
0.010878372,
0.071322866,
0.027363233,
-0.0160759,
-0.021191634,
0.021756744,
-0.043572973,
-0.030084684,
-0.03777316,
-0.024032056,
-0.02697658,
-0.036286026,
-0.023660274,
0.03539375,
-0.0049670218,
0.02270851,
-0.041015107,
-0.0463093,
-0.006952343,
0.009116121,
-0.033906616,
0.021340348,
-0.060258597,
-0.026114043,
0.051157348,
0.006978368,
0.024983821,
-0.008684852,
-0.028746266,
0.031259518,
0.018247113,
-0.04776669,
-0.018143013,
0.022663895,
0.030456468,
0.023214135,
-0.060228854,
0.005796098,
0.028032443,
-0.014440054,
0.03634551,
-0.017934814,
-0.030843122,
-0.029712902,
0.008446911,
-0.037535217,
-0.047052864,
-0.009554825,
0.04473294,
-0.017771231,
0.029341118,
0.011770652,
0.0114955325,
0.040063344,
-0.0109676,
-0.023347976,
-0.01057351,
-0.037029594,
-0.024537683,
0.053388048,
-0.032657426,
-0.009577132,
-0.016953308,
0.00027721075,
0.02922215,
-0.03655371,
0.008788952,
0.025831487,
0.01833634,
-0.004561778,
0.06715889,
0.007264641,
-0.039974116,
0.006428129,
0.08476654,
-0.002505818,
0.0138005875,
-0.0076103993,
0.011398869,
0.006175317,
0.035453234,
-0.00082814676,
-0.0056734094,
0.032925107,
0.009056635,
-0.004390758,
-0.012670367,
-0.003247525,
0.003844237,
0.010595817,
0.040212058,
-0.0035932832,
-0.022247499,
0.012558832,
0.0022511464,
0.034501467,
-0.03934952,
0.018380955,
-0.047974885,
0.0027772195,
0.020314226,
-0.0019165417,
-0.0220393,
0.035007093,
-0.0020987154,
-0.0065508178,
0.021013178,
0.002195379,
-0.015674373,
-0.0025374193,
0.000647832,
0.024374098,
-0.014179806,
0.008104871,
-0.015146442,
-0.0035226445,
0.07405919,
-0.0056473846,
-0.0005576746,
0.0033497654,
-0.046398528,
-0.040271543,
0.0005223552,
-0.026173528,
-0.029430347,
0.011673988,
0.03384713,
-0.016165128,
-0.02058191,
-0.044911396,
0.05285268,
-0.013183427,
-0.006673506,
0.048658967,
-0.004282941,
-0.009487904,
0.06561227,
0.0054317503,
0.030634925,
-0.037713673,
-0.027616046,
0.015540532,
-0.030292884,
0.0017287913,
-0.031913858,
-0.0044205007,
0.006944908,
0.045357533,
0.0022306985,
0.06364926,
0.0029575343,
0.0030374676,
-0.0053164978,
0.0069300365,
-0.003966925,
0.02721452,
0.051365547,
0.00022016528,
-0.046249814,
0.023794116,
-0.0033888025,
-0.006480179,
0.021221377,
0.019942444,
0.05139529,
-0.061626762,
0.027928343,
-0.05362599,
-0.0079859,
-0.029266763,
0.0054800822,
-0.035572205,
-0.00047169975,
0.009183042,
0.03542349,
-0.033341505,
-0.0030356087,
-0.0384275,
0.031586688,
0.016209742,
0.037832644,
-0.018514797,
0.02743759,
0.009971222,
-0.0033479065,
-0.009539953,
0.0007816739,
0.020775238,
0.0064355647,
0.010447104,
0.050562497,
0.00007005787,
-0.0018942347,
0.057938673,
0.024686396,
0.013086764,
0.0044465256,
-0.009227656,
-0.019645017,
-0.011763216,
0.020923952,
0.034828637,
0.029965715,
0.02102805,
0.02282748,
-0.008424604,
0.040420253,
0.015391819,
0.063054405,
0.0319436,
0.05106812,
0.012833951,
-0.014135192,
-0.004022693,
0.005156631,
0.013123943,
-0.021950072,
0.007725652,
0.0071084923,
-0.02361566,
0.0066326098,
-0.088871025,
0.025876101,
0.00922022,
0.04092588,
0.011064264,
0.007019264,
-0.05071121,
0.009777894,
-0.0015986671,
0.027288876,
-0.028597552,
-0.04508985,
0.03643474,
0.018604025,
-0.01321317,
0.016596396,
0.01787533,
0.058176614,
0.025742259,
0.013302398,
-0.023214135,
-0.04565496,
-0.039825402,
-0.06656404,
-0.08429065,
0.0024054365,
-0.057165362,
-0.01854454,
0.04776669,
-0.083576836,
0.0159718,
-0.009993529,
0.009019457,
-0.004981893,
0.023035679,
0.025013564,
0.044941135,
0.017964557,
-0.04208584,
0.024344355,
-0.030783638,
0.003597001,
0.0033869436,
-0.0004786707,
0.02090908,
-0.011220413,
0.009963786,
0.0009136569,
-0.018395826,
-0.0074282256,
-0.03845724,
0.014923372,
-0.0278986,
0.011837573,
-0.012759594,
0.04238327,
-0.018098399,
0.017890202,
-0.011317076,
-0.052466027,
0.026069429,
0.024909465,
-0.025310991,
0.037951615,
-0.025876101,
0.010335569,
-0.015495918,
0.079888746,
0.04880768,
0.018485054,
-0.020269612,
-0.029698031,
-0.03485838,
0.032657426,
0.0015958787,
-0.04544676,
-0.002195379,
0.043572973,
-0.035482977,
-0.04306735,
-0.003117401,
-0.027972957,
-0.036910623,
-0.012328327,
-0.01979373,
0.043721687,
-0.0032586786,
0.031675916,
-0.005513543,
-0.0017436625,
-0.0130942,
0.029965715,
0.008417169,
0.008246148,
0.051990144,
0.024091542,
0.044019114,
-0.023035679,
0.030515954,
-0.008625367,
0.0042048665,
-0.0027307465,
0.03444198,
0.021236248,
0.013993914,
0.0026694024,
0.0063351835,
0.027184777,
-0.019169135,
0.027616046,
0.026679153,
-0.025147406,
0.017131764,
0.020968564,
-0.0359886,
-0.027274005,
-0.026218142,
-0.0013848919,
-0.011785523,
0.03465018,
0.029846745,
-0.034085073,
-0.0032456662,
-0.005885326,
-0.023035679,
0.0139418645,
0.015072085,
-0.006454154,
0.037862387,
0.01574873,
0.05894992,
-0.02676838,
-0.028597552,
0.019035293,
0.033668675,
-0.012633189,
0.004242045,
0.0028720242,
0.014135192,
-0.017964557,
-0.017786102,
-0.0026247883,
0.02711042,
-0.036583453,
-0.03227077,
-0.0056436667,
-0.0062905694,
-0.048183084,
0.0054094438,
0.045506246,
0.0339661,
-0.0144995395,
0.03833827,
-0.023005936,
-0.008558447,
0.062459555,
0.011302205,
-0.023526432,
-0.03286562,
0.041431505,
0.03203283,
-0.015451304,
-0.031021578,
0.005710588,
0.020403454,
0.012952922,
-0.030114427,
0.024790494,
-0.0057700733,
0.016209742,
0.042145327,
0.017890202,
0.0016665176,
0.0017232145,
-0.037743416,
0.013131378,
0.046963636,
-0.028582681,
-0.007725652,
-0.0034092506,
-0.017280476,
0.03970643,
-0.00036667104,
-0.033341505,
-0.048986137,
-0.0086997235,
-0.02102805,
0.05353676,
0.053269077,
-0.00021249725,
0.0037196896,
-0.044822168,
0.012655496,
0.00059996493,
-0.020403454,
-0.016849209,
0.012856258,
-0.007115928,
-0.005335087,
-0.014811837,
-0.011488097,
0.013138813,
0.026381725,
-0.037059337,
0.028389355,
-0.014142628,
-0.018812222,
-0.02868678,
0.026277626,
-0.04033103,
0.04776669,
0.034352753,
-0.04250224,
-0.04092588,
0.029698031,
-0.029415475,
-0.04511959,
0.008900487,
0.012209356,
-0.0068891402,
0.018529668,
0.032211285,
-0.029028822,
0.041847903,
0.041550476,
-0.049759444,
0.041728932,
-0.03589937,
-0.010023272,
-0.004457679,
0.022812609,
0.013257784,
-0.05383419,
0.009718409,
-0.02282748,
0.00048192378,
0.02812167,
-0.061448306,
-0.038397755,
0.0008592836,
0.0021582006,
0.0277945,
0.009019457,
0.0005660397,
-0.009859687,
-0.004189995,
0.015629759,
-0.018960936,
-0.017592775,
-0.011049393,
0.08548036,
0.032538455,
0.062519036,
0.0043312726,
0.006327748,
-0.0024296022,
-0.02058191,
0.04669595,
-0.0028497172,
-0.024552554,
0.028538069,
-0.01888658,
-0.022277242,
-0.014164935,
-0.03259794,
-0.012573703,
0.019481432,
-0.005223552,
-0.015837958,
0.0037828926,
-0.020864466,
0.034888122,
-0.03360919,
-0.071322866,
-0.0278986,
-0.008736902,
-0.034204043,
0.030322626,
0.035126064,
-0.054191098,
-0.050859924,
-0.05790893,
0.014700302,
-0.0260843,
-0.00072823005,
-0.026277626,
-0.01619487,
-0.032181542,
0.04158022,
-0.024106413,
-0.06543382,
-0.019124521,
-0.023065422,
-0.018589154,
-0.03967669,
-0.034025587,
-0.003401815,
0.016522039,
-0.033995844,
0.036613196,
0.014402876,
-0.03893312,
0.010781709,
0.0062422375,
0.014484668,
0.041104335,
-0.040866394,
-0.026485825,
0.021102406,
0.0077033453,
-0.031051321,
0.018916322,
-0.018752737,
0.048986137,
0.0040264106,
0.04250224,
-0.03473941,
-0.02090908,
-0.0018998114,
-0.019912701,
0.04083665,
-0.039290033,
0.011421176,
-0.017622517,
-0.011555018,
0.012358069,
0.009004585,
-0.015733859,
0.01653691,
-0.04047974,
-0.056421798,
0.02922215,
-0.018128142,
0.033460476,
-0.0055730282,
-0.037862387,
0.039736174,
-0.042918637,
-0.00939124,
0.03610757,
-0.007350151,
0.002611776,
-0.036375254,
0.015124135,
0.005755202,
-0.012298584,
0.018827094,
0.0069820858,
0.015347205,
0.023377718,
-0.01957066,
-0.07631963,
-0.0036583454,
0.030441597,
0.027348362,
-0.016730238,
0.024121284,
-0.0033218816,
-0.03634551,
-0.0071902843,
0.02911805,
0.011926801,
-0.00048052962,
0.031913858,
0.0321518,
0.011004779,
0.061686244,
-0.044792425,
-0.02080498,
-0.0038739794,
0.05746279,
-0.015049778,
-0.018306598,
-0.0068891402,
0.01321317,
-0.04925382,
-0.019853216,
-0.042859152,
0.026456082,
-0.041104335,
-0.017354833,
-0.012462168,
-0.031913858,
-0.006773887,
0.027259134,
0.020596782,
0.013889816,
-0.017577903,
0.01933272,
-0.00015603271,
-0.035482977,
0.035661433,
0.06299492,
-0.044941135,
-0.040212058,
0.0046844664,
0.02351156,
-0.04622007,
-0.04961073,
0.06519588,
-0.050532755,
0.059961174,
0.028344741,
-0.028731395,
0.07810418,
-0.017682003,
0.01787533,
0.008030514,
-0.033579446,
-0.040212058,
-0.008097435,
0.02911805,
0.0068631154,
0.017444061,
-0.03360919,
0.018038914,
0.01084863,
0.008959971,
-0.004149099,
-0.071322866,
-0.00084720063,
-0.03283588,
-0.03530452,
-0.015718987,
-0.016328713,
-0.005532132,
0.04095562,
-0.0066177384,
-0.01946656,
0.004085896,
0.010387619,
-0.015406691,
-0.008045386,
-0.0501461,
-0.012231663,
-0.025370477,
-0.038635697,
-0.032181542,
-0.063589774,
-0.014744916,
0.037178308,
-0.023630532,
-0.023273619,
0.009495339,
0.07310742,
-0.0132429125,
-0.017250733,
0.003732702,
-0.0039037222,
-0.018633768,
-0.00029719408,
-0.030902607,
0.027452461,
0.017607646,
-0.000712894,
0.017934814,
-0.010149677,
0.008811259,
-0.012179613,
-0.045506246,
0.006781323,
-0.023794116,
-0.014187242,
-0.010566074,
0.005777509,
-0.083874255,
-0.0014490245,
-0.008104871,
0.029519575,
-0.010268648,
0.0138005875,
0.018261984,
0.049313307,
-0.014982858,
0.0463093,
0.0030430444,
0.02812167,
0.034620438,
0.015072085,
0.028939594,
0.010030707,
0.018604025,
-0.026366854,
0.0002723311,
0.036732167,
-0.0261884,
0.032449227,
-0.018604025,
0.010082757,
-0.03206257,
0.040063344,
0.020269612,
0.028523197,
0.044792425,
-0.035572205,
-0.04095562,
-0.008684852,
-0.008142049,
-0.01720612,
-0.043097094,
-0.042442754,
0.028776009,
-0.08928742,
0.016388196,
-0.010038143,
-0.0007175413,
0.022247499,
0.02563816,
0.022351598,
0.0317354,
-0.010603253,
-0.000003510881,
0.033252276,
-0.059871946,
-0.060793966,
-0.015406691,
0.036821395,
-0.037505474,
-0.050562497,
0.009919172,
0.07167977,
-0.022663895,
-0.029251892,
-0.039230548,
-0.02911805,
0.04892665,
0.0497297,
-0.050413784,
0.0093986755,
-0.04050948,
0.024255127,
-0.029638546,
-0.015763601,
-0.0023162086,
-0.004342426,
0.015540532,
0.01957066,
0.017905071,
0.031765144,
0.005554439,
-0.013510597,
0.035572205,
0.025682773,
0.045030363,
0.027140163,
0.01518362,
-0.0114955325,
0.07548683,
0.035780404,
0.037178308,
-0.008357683,
0.01484158,
0.012789337,
-0.026054557,
-0.018499926,
0.0052793194,
0.019020421,
0.043513488,
0.014090578,
-0.030188784,
-0.012157306,
-0.0006111184,
0.042888895,
0.015986672,
-0.014521847,
-0.0032679732,
0.008625367,
-0.0159718,
0.03667268,
-0.059128378,
-0.06115088,
-0.016046157,
0.021176763,
0.06281646,
0.019288106,
-0.008907923,
-0.02733349,
0.013361883,
0.030813381,
-0.0023868473,
0.032211285,
0.0077330875,
0.019615274,
-0.044941135,
0.04071768,
0.013845202,
-0.008751773,
0.012975229,
-0.028047314,
-0.041342277,
0.028389355,
-0.022113657,
-0.0037234074,
-0.034888122,
-0.014514411,
-0.0277945,
-0.044584226,
-0.023868473,
-0.030233398,
0.00966636,
0.021771615,
-0.036137313,
-0.040301286,
0.023794116,
0.0050004823,
0.0073613045,
0.050740954,
0.018931193,
0.009086378,
0.062935434,
0.032300513,
-0.028136542,
0.032627683,
-0.0044205007,
-0.04657698,
0.017146634,
0.0039037222,
-0.008788952,
-0.0074988646,
-0.030753896,
-0.027749889,
0.02575713,
-0.013205734,
-0.023139779,
-0.039825402,
0.051871173,
0.002457486,
-0.025162278,
0.009763023,
0.09154786,
0.021994686,
-0.009777894,
0.007286948,
0.030159041,
-0.058087386,
-0.037535217,
-0.05814687,
0.062459555,
-0.028984208,
-0.02935599,
-0.02822577,
-0.06668301,
0.006524793,
0.016507167,
-0.03014417,
0.029370861,
0.007636424,
0.07429713,
0.010023272,
0.027199648,
-0.020507554,
-0.013971607,
0.036821395,
0.014120321,
-0.008722031,
0.053060878,
0.05410187,
0.026307369,
-0.0037457144,
0.051097862,
-0.0069002938,
-0.030813381,
0.007179131,
-0.03274665,
0.02486485,
-0.022425955,
-0.07049007,
-0.0070750318,
-0.02586123,
-0.028077057,
-0.026917094,
-0.033371247,
0.012886001,
-0.06126985,
-0.012536525,
-0.043126836,
0.0503543,
-0.049551245,
-0.014038528,
-0.00793385,
-0.047826175,
0.26459056,
0.040301286,
0.0019500022,
0.02473101,
0.04961073,
0.06709941,
0.008915358,
0.012900872,
0.0067069666,
-0.0062682624,
-0.014358262,
-0.028850365,
0.0063165943,
0.017176377,
-0.028642166,
0.023407461,
-0.054458782,
-0.02047781,
-0.030813381,
-0.019451689,
-0.03238974,
0.015570275,
0.016685624,
0.01867838,
0.04128279,
-0.0039111576,
-0.003926029,
-0.025920715,
-0.030634925,
-0.009971222,
0.007926415,
-0.011733473,
0.03393636,
0.002613635,
-0.03372816,
-0.0060935244,
-0.010357876,
-0.036256284,
-0.01708715,
-0.0074728397,
-0.016730238,
-0.008617931,
0.01753329,
-0.018485054,
-0.017384576,
0.015302591,
-0.020418325,
0.031348746,
0.03441224,
-0.032211285,
0.061567277,
-0.045744188,
-0.00793385,
-0.02486485,
-0.03601834,
0.03328202,
-0.057849444,
-0.020507554,
-0.021399833,
0.007543478,
-0.025251506,
0.014878758,
-0.042769924,
0.012774466,
-0.012506782,
0.03137849,
-0.011369126,
0.023526432,
-0.013465983,
0.014707738,
0.0014666842,
0.019987058,
-0.026560182,
-0.017191248,
0.018083528,
0.015956929,
-0.016328713,
0.028300127,
-0.0420561,
-0.03259794,
0.02046294,
-0.009383804,
0.033757903,
-0.042204812,
0.033222534,
0.031765144,
-0.037832644,
0.008558447,
0.017949685,
0.021875715,
0.0382193,
0.029445218,
0.028657038,
0.0065954314,
0.011882187
] | class Linear4bit(nn.Module):
def init(self, ):
def forward(self, x):
return my_4bit_kernel(x, self.weight, self.bias)
This way, Transformers models can be easily quantized by replacing some instances of nn.Linear with a target class.
The quantization method should be serializable. You can save the quantized weights locally or push them to the Hub.
Make sure the package that contains the quantization kernels/primitive is stable (no frequent breaking changes). |
[
0.023810789,
0.0030617586,
-0.017319638,
0.0030858961,
-0.009083155,
0.0069627617,
0.008058236,
-0.013576457,
-0.0005751241,
0.045096416,
-0.01028632,
0.014363714,
0.051245928,
-0.02339488,
-0.00566676,
0.01505442,
-0.02599431,
-0.0053511146,
-0.07165518,
0.013658154,
-0.008659819,
0.009543626,
-0.08044868,
-0.0018623067,
-0.03261915,
-0.022503646,
0.015462901,
0.019562576,
0.07510128,
0.042244468,
-0.020097315,
0.02098855,
-0.002099969,
-0.013457626,
-0.045096416,
-0.04649268,
0.009617895,
0.006431735,
-0.05240453,
-0.027969878,
0.0070630256,
0.02385535,
0.035589926,
-0.01714139,
-0.08027043,
-0.025088225,
-0.04022434,
0.0012291595,
-0.06666427,
-0.034104537,
0.011385508,
0.018552512,
0.037461516,
-0.033421256,
-0.029113628,
0.0024248979,
-0.005369682,
0.028638303,
-0.06422823,
0.008273618,
-0.014356286,
0.018196018,
-0.009736726,
-0.01267037,
0.032797392,
0.0221323,
-0.0008489928,
-0.016368989,
-0.047146253,
-0.004300202,
-0.029886032,
0.0073675304,
-0.025593257,
-0.038263626,
-0.013219964,
0.017393908,
0.0023654823,
0.014334006,
-0.020453809,
0.04678976,
0.011251823,
0.047146253,
0.03499577,
-0.008808358,
-0.043195117,
0.0043559037,
0.0423633,
-0.026261682,
-0.025504133,
-0.016532382,
-0.003980843,
0.04170973,
0.0027034082,
0.006654544,
0.016710628,
0.021077672,
0.011118138,
0.046849176,
-0.0058747143,
-0.0064020273,
0.024360383,
0.08793504,
0.029900884,
0.021092527,
-0.027836194,
-0.000058052028,
0.0069516213,
-0.001293217,
-0.06446589,
-0.033658918,
0.003353266,
0.026499344,
-0.033837166,
0.009313391,
-0.047651287,
0.0008332105,
-0.0036819086,
-0.010368017,
-0.052523363,
-0.007274694,
0.0079096975,
-0.019369476,
-0.01847824,
-0.04560145,
0.021731244,
-0.076230176,
-0.03285681,
0.04747304,
-0.0010546263,
-0.000038962455,
0.008303326,
-0.019770531,
-0.015403486,
0.02575665,
-0.01471278,
-0.01347248,
0.01583425,
0.021686682,
-0.029470121,
-0.027761925,
0.039511353,
0.022756163,
0.0142003205,
0.0545732,
-0.006227494,
-0.0032994207,
-0.0019291493,
-0.02419699,
-0.050859727,
-0.009989242,
-0.03374804,
-0.005388249,
-0.003375547,
-0.0014176184,
-0.011727148,
-0.013895816,
-0.033332136,
0.021612413,
0.008310753,
0.00904602,
0.0031861598,
0.02076574,
-0.036807943,
0.02171639,
0.016933437,
0.045363788,
-0.0053659687,
-0.025043663,
0.0153737785,
-0.00682165,
0.020483518,
0.009810995,
0.007200424,
0.00052499224,
0.06250518,
0.022964116,
0.043105993,
0.010160062,
-0.016903728,
-0.009565907,
-0.005455092,
-0.013561604,
0.036510866,
0.04168002,
-0.022384815,
0.01877532,
-0.005009475,
0.0014473262,
-0.035560217,
0.03648116,
0.004114528,
0.010471994,
-0.07052628,
0.022162007,
-0.044472553,
-0.014608803,
-0.03149025,
0.0067250994,
0.02171639,
-0.037461516,
-0.028757134,
0.041115575,
-0.028148126,
-0.027078645,
0.003438676,
0.026425075,
-0.015403486,
0.032232944,
0.025771502,
0.052612487,
0.030866388,
0.014876173,
-0.030123694,
-0.0081399325,
0.0415909,
0.008793504,
0.008994032,
0.047532454,
-0.010561117,
0.020275563,
0.051780667,
0.0052731317,
0.03900632,
0.029380998,
0.009068301,
-0.031193173,
-0.0423633,
0.050384402,
0.023350319,
-0.00073341094,
-0.024627753,
0.052998688,
0.005117166,
0.04384869,
0.0030710422,
-0.0034572433,
0.048453394,
0.027301453,
-0.011793991,
-0.0007389811,
-0.004664122,
0.019102106,
-0.003227008,
0.016576944,
-0.008214203,
-0.03900632,
-0.013309088,
0.0021166797,
-0.012187619,
0.04396752,
-0.07159576,
0.03270827,
-0.0055479286,
0.001338707,
-0.02984147,
-0.005306553,
-0.015084127,
0.0223254,
-0.045512326,
0.010108073,
0.02675186,
0.00923912,
-0.002198376,
-0.014482545,
0.022503646,
0.0667831,
-0.021538144,
-0.002008989,
0.016309574,
-0.02419699,
0.002987489,
-0.027717363,
-0.07278407,
0.006654544,
-0.04687888,
0.03796655,
0.007694316,
-0.040729374,
0.009283682,
0.0013879106,
0.010152635,
0.024152428,
-0.016799752,
0.05243424,
0.04168002,
0.03404512,
-0.016799752,
0.019206082,
-0.015893664,
-0.007545777,
-0.030064277,
-0.015009858,
0.019636845,
-0.011571182,
0.029529538,
-0.0042333594,
0.005536788,
-0.011875686,
-0.044145767,
0.022310546,
-0.04025405,
-0.000097884826,
-0.02018644,
-0.0056741866,
-0.018552512,
0.054870278,
0.0013832687,
-0.018002918,
0.05094885,
0.028356079,
-0.013977513,
0.022874994,
0.0522857,
0.03354009,
-0.06345583,
0.019057544,
0.046819467,
-0.042274177,
-0.045096416,
-0.036778238,
-0.035857294,
0.021137089,
-0.0031193173,
-0.030079132,
-0.05415729,
0.04462109,
-0.018047478,
-0.073556475,
0.018210871,
-0.03538197,
0.007820575,
-0.025058515,
0.046017356,
0.031757623,
0.019785384,
0.050384402,
-0.011073576,
0.005221143,
-0.008786077,
0.033302426,
0.025207054,
-0.025236763,
0.06393115,
0.004058826,
0.02923246,
0.009261401,
0.0072598397,
-0.038412165,
-0.0065208585,
-0.030183109,
0.037996255,
0.026900398,
-0.009506491,
0.0018771606,
-0.035708755,
0.047413625,
-0.016859168,
0.029098775,
0.031401128,
0.021552997,
0.023899913,
0.03297564,
0.02137475,
0.010620533,
-0.049077258,
-0.01648782,
-0.0029652081,
-0.0033922575,
0.024404945,
-0.07106102,
-0.004834942,
-0.03645145,
-0.02594975,
0.030153401,
0.024078159,
0.0030487613,
0.029886032,
0.04156119,
0.033183593,
-0.049671415,
-0.02534074,
0.011184981,
0.04545291,
0.05240453,
0.0029912025,
0.015849102,
-0.0074640806,
-0.0049092113,
-0.044977587,
0.008607831,
0.006539426,
0.027880756,
0.0017926791,
-0.013487334,
-0.031341713,
-0.04248213,
0.0071335817,
0.05133505,
0.026365658,
0.00146218,
0.053830504,
-0.0059712646,
0.013383357,
0.025325885,
0.015730271,
-0.017794963,
-0.050057616,
0.04572028,
0.023528565,
0.020825157,
-0.036421742,
0.0062980503,
0.003240005,
-0.009320817,
-0.010657667,
0.027851047,
-0.020869719,
-0.0143859945,
-0.003980843,
0.059950307,
-0.027301453,
-0.0427495,
-0.03336184,
-0.021315334,
0.031757623,
-0.022355108,
0.024107866,
0.0033384121,
0.0020275563,
0.016992852,
-0.03564934,
-0.027509408,
-0.0396896,
-0.0033161314,
-0.08995517,
0.0427495,
0.023899913,
-0.056741867,
-0.035500802,
-0.029663222,
-0.036926776,
0.021389604,
-0.0069590486,
-0.0012440134,
-0.009001459,
0.024716876,
0.0059712646,
-0.021211358,
-0.0103902975,
-0.035857294,
0.011712294,
-0.07165518,
0.029975154,
-0.033450965,
0.018745612,
-0.029990008,
0.03716444,
0.0148836,
0.040669955,
0.044710215,
-0.0045824256,
0.013509614,
0.060752418,
-0.06339641,
-0.012492123,
0.007322969,
-0.0068365037,
0.009603041,
0.040699665,
0.018047478,
0.0034980916,
0.033153888,
-0.0021166797,
-0.045868818,
0.0034925214,
-0.05911849,
0.020468663,
0.013271953,
0.014631083,
0.013932951,
-0.049285214,
0.037491225,
-0.030806972,
0.0006224709,
0.03137142,
-0.08680615,
-0.03446103,
-0.00752721,
-0.015284655,
0.049552582,
-0.026038872,
-0.01599764,
0.02018644,
-0.013130841,
-0.00790227,
0.00069674035,
-0.041264113,
-0.035352264,
0.040669955,
0.04462109,
0.021731244,
-0.027435139,
-0.010249185,
0.03553051,
-0.02346915,
-0.0048275148,
-0.027212331,
0.0015828678,
0.044442844,
0.010999307,
-0.014475117,
0.006101236,
0.005741029,
0.014831611,
0.027346015,
-0.055018816,
0.028059002,
-0.028608596,
-0.03022767,
0.027836194,
-0.018641634,
-0.041442357,
-0.039927263,
0.013695288,
0.014326579,
0.03484723,
0.03297564,
-0.052315407,
-0.031163465,
-0.040848203,
0.04129382,
-0.024018744,
-0.0108953295,
-0.03567905,
-0.030257378,
0.0076423273,
0.024909977,
0.03873895,
-0.029143335,
-0.014222601,
-0.052315407,
0.01916152,
-0.059831478,
-0.02534074,
-0.012128203,
0.019176375,
-0.040967036,
0.016799752,
-0.01782467,
-0.0026625602,
-0.014126051,
0.033599503,
0.0040068375,
0.034787815,
-0.036005836,
-0.046433266,
0.000577445,
0.011437497,
-0.0038025964,
0.005391963,
-0.019607138,
0.055345602,
-0.0023283476,
0.042393006,
-0.032470606,
0.021092527,
-0.0002223442,
0.003980843,
0.026038872,
-0.029306728,
-0.0017360486,
-0.04880989,
0.03618408,
0.0062163537,
0.031965576,
-0.026038872,
0.00006202661,
-0.014475117,
-0.07397238,
0.02190949,
-0.0104125785,
0.008496426,
0.025518987,
-0.010977026,
0.06345583,
-0.02954439,
0.020617202,
0.058672875,
0.011095857,
-0.014371141,
-0.056682453,
0.030777264,
0.020691471,
0.0013656297,
-0.036689114,
-0.012247034,
-0.0015160254,
0.0068365037,
0.02667759,
-0.062029853,
-0.009112863,
0.025058515,
0.017349346,
-0.0066211224,
0.044888463,
-0.011073576,
-0.02969293,
-0.014185467,
0.016071912,
0.035738464,
0.0196517,
0.024300968,
-0.013984939,
-0.010865622,
0.03942223,
-0.013992366,
0.009060875,
-0.005540502,
0.058791704,
-0.011392935,
-0.06850615,
-0.0011985234,
0.02782134,
-0.035352264,
-0.07046686,
0.014824185,
0.008615257,
0.024048451,
-0.004277921,
-0.001595865,
-0.0032121541,
-0.018181164,
0.012841189,
0.038709242,
0.02648449,
-0.0045341505,
-0.00929111,
0.004545291,
-0.035322554,
-0.028786844,
0.05819755,
-0.033985704,
-0.009870411,
-0.054781154,
-0.015596586,
-0.019696262,
-0.03255973,
0.057811346,
-0.033956,
0.015462901,
0.047146253,
-0.039214276,
0.023751372,
-0.007181857,
0.03885778,
0.008971751,
-0.020334978,
-0.047948364,
-0.0048535094,
0.049701124,
0.010954745,
-0.0088974815,
-0.023498857,
0.015938226,
0.015136116,
0.04170973,
0.013598738,
-0.06850615,
-0.012789201,
-0.047116544,
-0.01850795,
0.023008678,
0.0012802199,
0.0022652186,
0.022147153,
-0.022503646,
-0.041739438,
-0.024211844,
0.010471994,
-0.039184567,
-0.0056964676,
-0.086152576,
0.006999897,
-0.0039845565,
0.010947319,
-0.039333105,
-0.022533353,
-0.0039288546,
0.04708684,
0.0035927852,
-0.01916152,
-0.012789201,
0.06785258,
-0.009647603,
0.031876452,
-0.006435449,
-0.01743847,
-0.008592976,
-0.005354828,
-0.026439928,
0.034431323,
0.038115088,
-0.0024620327,
-0.008385022,
-0.0086226845,
-0.014170613,
-0.009855557,
-0.015938226,
0.0469383,
-0.0025920041,
-0.043135703,
0.02560811,
0.022384815,
-0.05145388,
-0.027806485,
-0.03285681,
-0.033837166,
0.017126538,
0.036926776,
0.019829946,
0.041085865,
0.021746097,
0.057662807,
0.01478705,
0.019711114,
0.038115088,
0.01471278,
0.04058083,
0.023944475,
-0.0056481925,
-0.017765256,
0.01568571,
0.01599764,
-0.00006904739,
0.047740407,
-0.027969878,
-0.021775806,
-0.018181164,
0.008540988,
-0.056207128,
0.03579788,
0.0061457977,
-0.0076423273,
0.02305324,
-0.010278894,
-0.038560703,
0.019176375,
-0.050384402,
-0.02915819,
0.022444231,
-0.0713581,
-0.025934896,
-0.053117517,
-0.026306244,
0.0051765814,
0.036005836,
0.03003457,
0.004489589,
0.007144722,
-0.01391067,
0.03621379,
-0.001807533,
-0.033718336,
0.004177657,
0.01534407,
-0.04574999,
-0.018686196,
0.0070370315,
0.058940243,
0.041056156,
-0.018998127,
-0.010234332,
-0.02064691,
0.0076126195,
0.0051320195,
-0.030064277,
0.017483031,
-0.050324988,
0.017379053,
-0.02716777,
0.019220937,
0.008904908,
0.03900632,
0.033183593,
0.013063998,
0.02488027,
0.017601863,
0.0049240654,
-0.0052062892,
0.035916712,
0.032530025,
0.041650314,
0.005956411,
0.024063306,
0.0069404813,
0.03377775,
0.036510866,
0.018998127,
0.005911849,
0.032648854,
0.00790227,
-0.035589926,
-0.008273618,
0.02030527,
0.034936354,
0.0047309645,
-0.026439928,
-0.03469869,
-0.016933437,
-0.023795934,
0.050206155,
0.022221422,
-0.019815091,
0.014044355,
-0.021077672,
0.0069590486,
0.043521903,
0.021270774,
-0.05017645,
0.0044338866,
0.032084405,
0.058078717,
0.013093706,
0.0091499975,
-0.011118138,
0.032767687,
0.049017843,
-0.009521345,
0.009595614,
0.0005644479,
0.029039359,
-0.05320664,
0.036778238,
-0.024598045,
0.016383843,
-0.038590413,
-0.049463462,
0.01923579,
0.05472174,
0.01162317,
-0.019324914,
-0.022904702,
-0.017646424,
0.012551539,
-0.052731317,
0.003733897,
-0.059980016,
-0.0024787432,
0.010108073,
-0.028460057,
-0.033153888,
0.030331647,
-0.013932951,
0.00034024697,
0.010925038,
0.053058103,
0.017230514,
0.027925316,
0.006654544,
-0.027152915,
0.038976613,
-0.02037954,
-0.017304784,
0.0036577708,
-0.010293747,
0.02969293,
-0.020245856,
-0.04396752,
-0.03261915,
0.061613943,
-0.00292993,
-0.017393908,
-0.028148126,
-0.022355108,
0.021137089,
-0.029054213,
0.0014111197,
0.09690679,
0.008763797,
0.011920248,
-0.0066062687,
0.003466527,
-0.05938586,
-0.03885778,
-0.030004863,
0.042600963,
-0.0048795035,
-0.07153635,
-0.0014501112,
-0.027643094,
0.0060195397,
0.009536198,
-0.02030527,
-0.030049423,
0.0072969743,
0.052731317,
0.060544465,
0.0027126921,
-0.02755397,
-0.025103077,
0.015967933,
0.038798366,
0.0036614845,
0.063871734,
0.057603393,
-0.05659333,
-0.007215278,
0.017483031,
-0.008459291,
-0.026380513,
-0.027999587,
0.0064391624,
0.003115604,
-0.018567365,
-0.05736573,
-0.021151943,
0.024761438,
-0.04827515,
-0.034134243,
-0.046700638,
-0.016131327,
-0.061198033,
0.007649754,
-0.028073857,
0.017884087,
-0.010249185,
-0.037996255,
0.017289931,
-0.040402588,
0.2626168,
0.0272866,
0.021033112,
0.014579095,
0.03374804,
0.044442844,
0.0055924905,
0.024107866,
0.0136433,
-0.04212564,
-0.004166517,
-0.019874508,
0.014965296,
0.018938713,
0.0076646083,
0.0070147505,
-0.047651287,
-0.0017759685,
-0.018879296,
-0.031846743,
-0.03737239,
-0.004017978,
0.041056156,
0.041234404,
0.013026863,
-0.019146666,
0.0029540677,
-0.03163879,
0.030658433,
-0.034668986,
-0.032648854,
-0.016250158,
0.015923372,
0.0053288336,
0.005737316,
0.037283268,
0.0058301524,
-0.030866388,
-0.027717363,
-0.039778724,
0.012195045,
-0.041620605,
-0.012744639,
0.0270935,
0.0074380864,
0.022340253,
0.002382193,
-0.022295691,
0.021656975,
-0.034609567,
0.04064025,
-0.043759566,
0.009551053,
-0.02171639,
-0.054662324,
0.028534327,
-0.043729857,
-0.024553483,
-0.008214203,
0.05026557,
-0.014022074,
0.011051295,
-0.05736573,
0.033421256,
0.0010592681,
-0.01648782,
0.002606858,
0.01505442,
-0.004066253,
-0.037283268,
0.00958076,
0.020869719,
0.004452454,
-0.05377109,
-0.00487579,
0.034579862,
0.029514683,
0.03924398,
-0.03523343,
-0.07522011,
0.0078057204,
-0.009172278,
-0.0076571815,
-0.031014927,
0.06749608,
0.010516556,
-0.04569057,
0.012202472,
-0.011920248,
0.035916712,
-0.011006734,
0.048186027,
0.012885751,
-0.011184981,
0.012113349
] | is_trainable: A property method to determine whether you can fine-tune models on top of the quantization method (with or without PEFT approaches).
Write the validate_environment and update_torch_dtype methods. These methods are called before creating the quantized model to ensure users use the right configuration. You can have a look at how this is done on other quantizers. |
[
0.008114173,
-0.024448289,
-0.0135236215,
-0.005949638,
-0.013954261,
0.00015995554,
0.0044575064,
0.0189784,
0.007993291,
0.041643687,
0.00010163965,
-0.013228972,
-0.009995392,
-0.052674126,
-0.00871858,
0.07222671,
0.0041590803,
-0.075732276,
-0.05358074,
0.024085645,
0.007985736,
0.030703908,
-0.05838578,
-0.024025204,
-0.011755729,
0.0052016834,
-0.020806734,
-0.04439374,
0.10015035,
0.025626885,
-0.041160163,
0.032033604,
0.0166061,
-0.026412614,
-0.010750901,
-0.03798702,
0.012624565,
-0.034904543,
-0.0025517335,
0.0024176305,
0.0074719894,
-0.020262767,
0.034602337,
-0.03384683,
-0.05980614,
-0.0042044106,
-0.029857738,
-0.020036114,
-0.0027349447,
-0.032638013,
-0.013198752,
-0.0025668438,
-0.012005047,
-0.024705162,
-0.007184896,
-0.009436314,
-0.008801687,
0.021426251,
-0.025732655,
0.036234237,
0.045663,
0.022272421,
0.018207781,
-0.026548605,
0.043668453,
0.058627542,
-0.025506003,
-0.020398758,
-0.018766858,
-0.0146568855,
-0.034904543,
-0.0072302264,
-0.03387705,
-0.013878711,
-0.013085426,
-0.0003404515,
0.012503684,
-0.020338317,
-0.019114392,
0.00945898,
0.016862974,
-0.018479764,
0.02212132,
0.021154268,
-0.0034111256,
-0.02129026,
0.0378057,
-0.04112994,
-0.0033563513,
-0.008371046,
-0.014800432,
0.06062209,
-0.031217655,
-0.0063538356,
0.029797297,
0.024161195,
-0.021683125,
0.046116304,
0.018766858,
0.024841154,
0.03626446,
0.081171945,
0.0047068247,
-0.0004122249,
-0.049470767,
0.009511866,
0.011423305,
0.02677526,
-0.038077682,
-0.03711063,
0.010244709,
-0.0024176305,
-0.044635504,
0.012700115,
-0.016772313,
0.019975673,
0.025898868,
0.014339572,
-0.04125082,
-0.024841154,
0.022302642,
-0.0076268693,
-0.050256494,
-0.04046509,
0.014226245,
-0.012858773,
-0.040344212,
0.058748424,
-0.006633374,
-0.00027835806,
-0.0032770226,
-0.008990563,
0.00010276111,
0.032970436,
-0.02843738,
0.005790981,
0.0012050377,
0.0032449136,
-0.016243456,
-0.0019492147,
0.035780933,
-0.0072642243,
0.0235719,
0.055635724,
-0.008930123,
0.024659833,
-0.0026631712,
-0.003241136,
-0.062918834,
0.0051336875,
-0.053490076,
0.012964544,
-0.0126019,
0.043879997,
0.003683109,
-0.009564751,
-0.033544626,
0.03895407,
0.02053475,
0.006180068,
-0.009013229,
0.02449362,
-0.016968744,
0.045330573,
0.010773567,
0.050830685,
-0.025626885,
-0.022242201,
0.018011348,
-0.04895702,
-0.006074297,
-0.02064052,
-0.011649958,
-0.004431064,
0.07851256,
0.06594087,
0.006659817,
0.004336625,
0.018615756,
0.001850054,
0.015155522,
-0.0068713594,
0.05297633,
0.043879997,
-0.00067004253,
0.028618703,
-0.019280603,
0.03318198,
-0.024690052,
0.049531206,
0.044303082,
0.045753658,
-0.08497971,
0.031489637,
-0.027107684,
-0.02293727,
-0.024705162,
-0.007392661,
0.0072793346,
-0.026216181,
-0.043668453,
0.025113137,
-0.033514403,
0.036022697,
-0.052311484,
0.06956732,
-0.00016385113,
0.0348441,
-0.01982457,
0.01025982,
0.06158914,
0.028029405,
-0.054668672,
-0.0062593967,
0.008590144,
0.0064180535,
0.015895922,
0.0075550955,
-0.007641979,
0.019613028,
0.020066334,
-0.017724255,
0.0056172134,
0.0038644315,
0.008711025,
-0.02047431,
0.0028709364,
0.03801724,
0.02603486,
-0.019522367,
0.010342926,
0.024282077,
0.02051964,
0.032758895,
0.036747985,
-0.01380316,
0.039800245,
0.026533496,
0.023994984,
-0.010048277,
0.03079457,
0.013085426,
-0.016847864,
-0.010841562,
0.012904103,
0.019869901,
-0.027455218,
-0.0063765007,
0.00043984823,
-0.009844289,
0.0020625412,
0.030462146,
0.008159503,
-0.021532023,
-0.037412833,
0.016152794,
0.012171259,
0.025687326,
-0.060712747,
-0.018600645,
0.004336625,
0.017694034,
-0.017739365,
0.016908305,
0.012110818,
0.03626446,
-0.0012541459,
-0.012836107,
-0.024614502,
-0.025536222,
0.0033525736,
-0.029011568,
-0.053157654,
0.018313551,
-0.0333633,
-0.0040910845,
0.0036528888,
-0.014407568,
-0.0017490046,
-0.0006374612,
0.032789115,
-0.010055833,
0.011098435,
0.051827956,
0.046055865,
0.03006928,
-0.032033604,
0.040132668,
-0.048564155,
0.022332862,
-0.030356374,
-0.011740618,
0.017905576,
-0.015714599,
-0.010592244,
0.008235054,
-0.00016479552,
-0.049229003,
-0.019189943,
-0.025657104,
-0.043124486,
0.014294241,
-0.029449763,
0.02765165,
-0.024010094,
0.040978838,
-0.022589736,
-0.02373811,
0.045511898,
-0.006089407,
-0.025490893,
0.063765004,
0.013077871,
0.020111665,
-0.053218093,
0.038893633,
0.05868798,
0.0044726166,
-0.015623937,
-0.039226055,
-0.033091318,
0.046902034,
0.046146523,
-0.03614358,
-0.014211135,
0.027500547,
-0.021773785,
-0.037715036,
0.011642402,
-0.05868798,
0.022272421,
-0.02447851,
-0.022060879,
0.031489637,
0.006380278,
0.017255839,
-0.008038621,
0.025082918,
-0.052795008,
0.012941879,
0.016862974,
-0.008378601,
0.048443273,
0.02212132,
-0.018706417,
-0.0038398774,
0.016303897,
-0.037050188,
-0.0078497445,
0.0040570865,
-0.026367284,
0.007641979,
0.002179645,
0.015027085,
0.0097611835,
0.049410325,
-0.03384683,
0.02762143,
0.008680805,
0.013191197,
0.0348441,
0.010864227,
0.013145867,
-0.013380074,
-0.039679363,
-0.021652903,
0.0127454465,
0.019174833,
0.053187873,
-0.03714085,
0.01890285,
-0.003834211,
-0.062797956,
0.021018276,
0.00079281285,
0.0015317956,
0.03862165,
0.023858992,
0.047627322,
-0.010055833,
-0.035962254,
0.018041568,
0.0018264444,
0.034541897,
-0.016470108,
0.021894667,
-0.058144014,
-0.0025668438,
-0.015956363,
0.022710618,
0.023043042,
-0.0083861565,
-0.011113546,
-0.006089407,
-0.024659833,
-0.05439669,
0.02201555,
0.06588043,
0.03487432,
0.0054510017,
0.01651544,
-0.015306624,
-0.026971692,
0.07978181,
-0.0058740866,
-0.01813223,
-0.021063607,
0.014928869,
0.0033280195,
-0.007675977,
-0.017527822,
-0.018026458,
0.0030144833,
0.011408194,
-0.02062541,
0.025264239,
-0.027319226,
0.012919214,
-0.004200633,
0.04962187,
-0.055091757,
0.005639879,
-0.040706854,
-0.0025082917,
0.058174238,
-0.030144831,
0.00061337935,
-0.04037443,
0.036687545,
0.025551334,
0.0053867833,
-0.022967491,
-0.01736161,
-0.012057933,
-0.055061538,
0.075732276,
0.016167905,
-0.03871231,
0.011483746,
-0.0059949686,
0.0014675773,
-0.014936424,
-0.008167058,
0.00087166915,
0.0011512077,
0.009610082,
0.013500956,
0.01069046,
0.011770839,
-0.009897175,
0.025929088,
-0.049289443,
0.024826044,
-0.026624156,
0.04128104,
0.0015676824,
0.013228972,
-0.0146568855,
0.02047431,
0.014211135,
-0.012481018,
-0.016198125,
0.031973165,
-0.016832752,
-0.012934323,
0.027304115,
0.038047463,
-0.029721746,
0.040344212,
0.020021003,
-0.018313551,
-0.010395812,
0.016062133,
-0.031942945,
0.01813223,
-0.069083795,
-0.008831907,
0.011332643,
0.0054245587,
0.012465908,
-0.045965202,
0.05128399,
-0.0023439685,
-0.02364745,
0.023466127,
-0.066182636,
-0.029117338,
-0.0038870967,
-0.023345245,
0.03862165,
-0.00086553063,
-0.019386375,
0.011687733,
-0.041643687,
-0.029948398,
-0.014641776,
-0.054336246,
-0.0072453367,
0.034964982,
0.013629393,
0.02834672,
-0.03478366,
0.008884792,
0.007166008,
-0.022347974,
0.008869682,
-0.0028350495,
-0.0024270744,
0.03236603,
0.017497601,
-0.034753438,
-0.0029559312,
-0.0029634864,
-0.034693,
0.048866358,
-0.038198564,
-0.0074417694,
-0.014981755,
-0.03650622,
0.016454998,
-0.025974419,
-0.04436352,
-0.060531426,
0.012095708,
-0.017104736,
0.023284804,
0.031398978,
-0.09035894,
-0.05539396,
-0.039286498,
0.014709772,
0.0042044106,
-0.01666654,
-0.03303088,
-0.06340236,
-0.06521559,
0.026971692,
0.046358068,
-0.037019968,
-0.009179441,
-0.036536444,
-0.015397285,
-0.027863193,
-0.024931816,
0.019764131,
0.017029185,
-0.032638013,
0.047022916,
0.0029785964,
-0.0361738,
-0.009217217,
-0.008839462,
0.04820151,
0.019945452,
-0.03783592,
-0.036657322,
0.005247014,
0.030280823,
-0.010577134,
0.033302862,
-0.021154268,
0.04421242,
-0.013636948,
0.09380407,
-0.004034421,
-0.017784694,
0.011400639,
-0.029585754,
0.040495314,
-0.060289662,
0.0052243485,
0.014603999,
0.015518166,
-0.022786168,
0.04684159,
-0.024901595,
0.031489637,
-0.056300573,
-0.059685256,
-0.012873883,
0.003992868,
-0.0075664283,
-0.00007549193,
-0.0031750288,
0.015231073,
-0.028089846,
0.027183235,
0.057569828,
0.0016054579,
-0.013568952,
-0.02922311,
0.040797517,
0.0105393585,
-0.0111362105,
0.023058152,
0.035871595,
-0.013652057,
-0.03176162,
0.013380074,
-0.04753666,
-0.043154705,
0.024206527,
0.044121757,
0.0013948595,
0.011627292,
-0.018721526,
-0.041311264,
-0.0075248755,
0.010546913,
0.005870309,
0.018766858,
-0.009413649,
0.00035674218,
-0.0035622276,
0.0029181556,
-0.004963698,
-0.010199379,
0.002215532,
0.054759335,
-0.007067792,
-0.021909777,
0.0268357,
0.03008439,
-0.021592462,
-0.049380105,
0.0026046191,
-0.002906823,
-0.06146826,
-0.0075928713,
-0.026321953,
-0.0012938101,
-0.031217655,
0.038077682,
0.010924668,
0.0055492176,
0.009247437,
-0.0031108106,
0.01579015,
-0.0020682074,
-0.018766858,
0.05137465,
-0.018827299,
-0.0018538316,
-0.020700961,
0.023284804,
-0.046327848,
-0.0004632218,
0.06866071,
-0.023813661,
0.023224363,
0.021426251,
-0.010803787,
0.025868647,
-0.017678924,
0.03318198,
0.0073359977,
-0.021985328,
-0.062133107,
-0.008272829,
0.031247875,
0.017542932,
0.030401705,
-0.021970218,
0.035962254,
-0.0046312734,
0.039770022,
-0.0029427097,
-0.06956732,
0.029872848,
-0.070715696,
0.026004639,
-0.006708925,
0.009322988,
-0.030250603,
0.045753658,
0.018525094,
-0.03136876,
-0.0022986378,
-0.012866328,
0.009798959,
0.0042724065,
-0.046932254,
0.0027273896,
-0.0073473305,
-0.01580526,
-0.054668672,
-0.011068215,
0.017663814,
0.0021324258,
0.034693,
-0.016047023,
-0.021652903,
0.039286498,
0.02763654,
-0.018540205,
-0.0029294884,
0.01417336,
-0.035811152,
-0.00246485,
-0.055575285,
0.07337509,
0.028860465,
0.00865814,
0.015125302,
0.008280384,
-0.013606727,
-0.014641776,
0.009957616,
0.020821843,
-0.024629612,
-0.04439374,
0.028392049,
0.028981347,
-0.03638534,
0.024977146,
-0.005303677,
-0.008250165,
-0.0030881453,
0.029404432,
-0.0012135372,
0.07482567,
0.013077871,
0.064550735,
-0.019295715,
0.020746293,
0.023209253,
-0.018585535,
0.031398978,
0.011083325,
0.015042195,
-0.0040910845,
0.00087969645,
-0.008068842,
-0.0083861565,
0.0037775477,
-0.02450873,
-0.028074736,
-0.015820371,
0.01580526,
0.019643249,
0.09555685,
0.020776512,
-0.027168123,
-0.040585972,
0.0017527821,
0.021320479,
-0.004295072,
-0.066545285,
-0.0395887,
0.010290041,
-0.054638453,
-0.003033371,
-0.024297187,
-0.02932888,
0.00825772,
0.012005047,
0.033484183,
-0.001361806,
0.011680177,
0.017089626,
0.03717107,
-0.023330135,
-0.042459637,
-0.012858773,
0.007872409,
-0.02133559,
-0.015170632,
0.016726982,
0.028754694,
0.033544626,
-0.046388287,
-0.0017272837,
-0.0034489012,
-0.009338099,
0.042852502,
-0.019325934,
-0.017905576,
-0.045300353,
0.020308098,
0.0042157434,
-0.011982381,
-0.023330135,
0.02521891,
0.0029691525,
0.0025158469,
0.043305807,
0.047899306,
0.024010094,
-0.019900123,
0.033544626,
0.017542932,
0.01899351,
0.0025876202,
0.03559961,
0.00036099192,
0.050075173,
0.03801724,
0.03170118,
-0.009579862,
-0.0044952817,
0.01982457,
-0.02765165,
0.0016951746,
0.007955516,
-0.0052583464,
-0.003575449,
0.016938524,
0.029555535,
-0.05844622,
0.013319634,
0.019869901,
0.008582588,
-0.04517947,
0.014233801,
-0.007184896,
-0.030159941,
0.006380278,
-0.024448289,
-0.08074886,
-0.0016876195,
0.03871231,
0.07518831,
-0.012919214,
-0.01650033,
0.045300353,
0.019582808,
0.06751233,
-0.0070224614,
0.016424777,
-0.007494655,
0.0024629612,
-0.0035697827,
0.0031353647,
0.006282062,
-0.008423932,
0.019220164,
-0.002564955,
0.028059626,
0.0039135395,
-0.045300353,
0.01651544,
-0.024236746,
-0.022786168,
-0.017633593,
-0.016122574,
0.0019161612,
-0.02373811,
0.003768104,
0.038500767,
-0.033514403,
-0.024992255,
0.01426402,
0.010803787,
0.009950061,
-0.021108937,
0.026246402,
0.018827299,
0.04273162,
0.0634628,
-0.034964982,
0.009232326,
0.018525094,
-0.042943165,
-0.008242609,
0.026760148,
-0.018827299,
-0.04659983,
-0.0013098647,
-0.026442835,
0.06231443,
0.011717954,
-0.026593937,
-0.08588633,
0.024690052,
0.020685852,
-0.012057933,
-0.01888774,
0.043003604,
-0.030205272,
0.004737045,
0.0044915043,
-0.01224681,
-0.029389322,
-0.0317314,
-0.069506876,
0.04321515,
-0.014135584,
-0.03136876,
-0.054185145,
-0.07041349,
-0.000066343186,
0.0077817487,
-0.017981127,
-0.029117338,
-0.007978181,
0.029419543,
0.03644578,
0.008106617,
0.004325292,
0.011355309,
0.06400677,
0.05376206,
0.03547873,
0.057116523,
0.06334192,
-0.018691307,
-0.023813661,
0.019658359,
0.01538973,
-0.020096553,
0.007759083,
-0.0015506834,
0.009897175,
-0.002413853,
-0.082320325,
-0.038984295,
0.073677294,
-0.031459417,
-0.0038644315,
-0.04578388,
-0.033514403,
-0.039044734,
0.02608019,
-0.03547873,
0.017195398,
-0.005662544,
-0.0058627543,
0.0052243485,
-0.061286937,
0.2729505,
0.03544851,
-0.0024421846,
0.029555535,
0.068177186,
0.05043782,
0.023843883,
-0.010796231,
-0.0065616006,
-0.07935873,
0.022680396,
-0.03233581,
-0.0009764961,
0.042429417,
-0.0026178407,
0.0394376,
-0.0631606,
-0.015382174,
-0.01733139,
-0.017724255,
-0.037533715,
0.010410922,
-0.013206307,
0.0520395,
-0.022967491,
0.029631086,
0.017935798,
-0.059080847,
0.0060969624,
-0.044303082,
0.010614909,
-0.017588263,
-0.009262547,
-0.05137465,
-0.027938744,
-0.0003834211,
0.010403367,
-0.04959165,
-0.012178814,
-0.07845211,
-0.031036332,
-0.010509138,
-0.0055492176,
-0.0039815353,
-0.013130756,
0.030583028,
-0.020821843,
0.017059406,
0.006297172,
-0.032124266,
0.07603448,
-0.017603373,
-0.0041968557,
-0.009511866,
-0.047778424,
0.0023005267,
-0.004166635,
-0.027107684,
0.0013636948,
0.025339792,
0.009496755,
-0.013206307,
-0.06563867,
0.0012012603,
0.012352581,
-0.0078119687,
-0.020247657,
0.029661305,
-0.009119,
-0.034572117,
0.030975891,
-0.0048314836,
-0.005738095,
-0.011778394,
0.04010245,
0.01982457,
-0.024659833,
0.0060251886,
-0.008892347,
-0.047748204,
-0.0069657983,
-0.038379885,
0.037866138,
-0.05143509,
0.030250603,
0.0505587,
-0.025370011,
0.0042308536,
-0.022272421,
0.017709143,
0.029464873,
-0.014830653,
-0.01742205,
-0.008484372,
0.027213454
] | Write the _process_model_after_weight_loading method. This method enables implementing additional features that require manipulating the model after loading the weights.
Document everything! Make sure your quantization method is documented in the docs/source/en/quantization.md file. |
[
0.035392422,
0.028500214,
-0.010997443,
-0.025290538,
-0.0028819032,
-0.023857646,
0.019401353,
0.020418705,
-0.00419479,
0.038401496,
-0.00037255182,
-0.008640337,
0.037455786,
-0.016120031,
-0.005362597,
0.040006336,
0.0058282865,
-0.051354837,
-0.05167007,
-0.0068277284,
0.0049613873,
0.0155612035,
-0.06631423,
-0.00734357,
-0.010918634,
0.019716589,
0.010474438,
0.012981998,
0.08637471,
0.0071393824,
-0.037914313,
0.023098214,
-0.018083092,
-0.03573632,
-0.0048861606,
-0.049434762,
0.016320636,
0.008060016,
-0.0069638533,
-0.049463417,
-0.023857646,
0.0033923709,
0.030606564,
-0.008561527,
-0.059837554,
-0.0056205173,
-0.031122407,
-0.010753851,
-0.04126728,
-0.0629326,
-0.010825496,
0.01981689,
0.00029150388,
0.022940595,
-0.010581905,
-0.028915754,
-0.016478254,
0.025691748,
-0.052816384,
-0.008568692,
0.013906213,
0.024115566,
-0.010166366,
-0.0127599,
0.033644296,
0.06923732,
-0.017624566,
0.0004759887,
-0.015876438,
0.0044706217,
-0.055166326,
0.005831869,
-0.02103485,
-0.016134359,
0.0031040015,
-0.011563435,
0.0049936273,
-0.014214285,
-0.016463924,
0.013863226,
0.012186743,
-0.00008793253,
-0.012702584,
0.030577907,
-0.059149764,
-0.019802563,
0.009736499,
-0.04731408,
0.04218433,
-0.019917194,
-0.004642569,
0.047400054,
-0.010195024,
-0.002738614,
0.0059250067,
0.037541762,
-0.006928031,
0.042757485,
0.042786144,
0.009528729,
0.03527779,
0.08769297,
-0.010882812,
0.032899193,
-0.021779953,
0.016865134,
-0.018756552,
0.02405825,
0.0070534092,
-0.0010728776,
0.0398917,
-0.0009976508,
-0.002032915,
0.008124496,
-0.00011390369,
-0.0069101197,
-0.018326683,
0.037713706,
-0.061786287,
-0.046597637,
0.04719945,
-0.02074827,
-0.007630148,
-0.061385076,
-0.03648142,
-0.06522523,
-0.025175907,
0.01983122,
0.024115566,
-0.012150921,
-0.015532545,
-0.014730126,
-0.0130321495,
0.05023718,
-0.0033189352,
-0.003222215,
0.01799712,
0.013798746,
0.017266344,
-0.039175257,
0.021221125,
0.015503887,
0.0108398255,
0.06419355,
0.04625374,
0.02629356,
-0.010359806,
-0.030893143,
-0.043932457,
0.038315523,
-0.02989012,
-0.028772464,
0.015489559,
0.02090589,
-0.02592101,
-0.008697652,
-0.077261515,
0.022353109,
0.028457228,
0.034590002,
0.03278456,
0.036825314,
-0.0171947,
0.014701468,
-0.004578089,
0.052558463,
0.0028281698,
-0.034590002,
0.0050581074,
-0.027912728,
0.022224149,
-0.014988046,
-0.038802706,
-0.018226381,
0.07708957,
0.030692538,
0.03120838,
0.012086441,
-0.007615819,
-0.0152029805,
0.0044204704,
-0.025749063,
0.012487651,
0.06814832,
-0.030721197,
0.036338132,
0.009937104,
-0.004878996,
-0.012974834,
-0.000061625535,
-0.007945384,
0.04109533,
-0.094570845,
0.026092956,
-0.048489053,
-0.009535894,
0.002129635,
-0.018040106,
0.009822472,
-0.02365704,
-0.031237038,
0.028070347,
-0.03453269,
-0.0003040417,
-0.0202181,
0.0106392205,
-0.012501979,
0.02815632,
-0.02604997,
0.007551339,
0.066428855,
-0.00048046646,
-0.024144223,
-0.0019308215,
0.036825314,
-0.021335756,
-0.00707132,
0.03954781,
-0.0013245292,
0.016091373,
0.0517847,
-0.018054435,
0.034590002,
0.037398472,
0.018040106,
-0.014601165,
-0.02539084,
0.042528223,
0.024960972,
0.014493699,
-0.009872624,
0.02802736,
0.009020053,
0.032555297,
0.01639228,
0.0004979298,
0.062703334,
0.045823876,
0.0030932548,
0.012150921,
0.019028801,
0.04585253,
-0.009815307,
0.01110491,
0.0071393824,
0.00070256466,
-0.026766416,
-0.01772487,
-0.038945995,
0.0067023505,
-0.04175446,
0.023298819,
0.031781536,
-0.022711333,
-0.07714689,
-0.023427779,
-0.010524589,
0.048202474,
-0.037856996,
-0.003879554,
0.009478578,
0.033672955,
-0.020805586,
0.0066736927,
0.027038665,
0.04559461,
-0.024359157,
-0.024874998,
0.0070140045,
0.012903189,
-0.04416172,
-0.019845549,
-0.064824015,
-0.011405817,
-0.043617222,
0.018398328,
0.014450712,
-0.030434618,
-0.025132919,
-0.009263644,
-0.004187626,
-0.0006062923,
0.025003958,
0.038086258,
0.011964645,
0.004785858,
-0.0075011877,
0.011248199,
-0.07193116,
0.020031825,
-0.055768143,
0.0058748554,
-0.006175763,
-0.017266344,
0.06906538,
0.00509393,
-0.018455643,
-0.027626151,
-0.033214428,
0.012408841,
0.0068241465,
0.02629356,
0.02829961,
0.029918777,
-0.009571716,
0.01136283,
-0.006849222,
-0.0088266125,
0.06568375,
-0.006007398,
-0.01116939,
0.019472998,
0.030893143,
0.039576467,
-0.049463417,
0.04656898,
0.05167007,
-0.018985813,
-0.034446716,
-0.0044312174,
-0.012079276,
0.015776137,
0.011893,
-0.029660856,
-0.01679349,
0.048661,
0.0028944411,
-0.0801273,
0.017552922,
-0.011799863,
-0.050667048,
-0.008382416,
0.005659922,
0.042556882,
-0.03533511,
0.013024985,
-0.04284346,
0.021307098,
-0.03501987,
0.0028210054,
0.028056018,
-0.027611822,
0.025304867,
-0.007021169,
-0.015618519,
-0.012014796,
0.037656393,
-0.05298833,
-0.004141057,
-0.05235786,
-0.0063262167,
-0.0013254248,
-0.040522177,
-0.001094371,
0.029259646,
0.036338132,
-0.054048672,
0.0072468496,
0.015446572,
0.005831869,
0.037799682,
0.04636837,
0.029288305,
0.001149,
-0.043359302,
-0.020590652,
0.0064838347,
-0.015475229,
0.055567537,
-0.036653366,
0.010725194,
0.0061256117,
-0.05184202,
0.018469973,
0.014658481,
-0.016019728,
0.029302634,
0.003096837,
0.020404376,
-0.012122263,
-0.075370096,
0.019086117,
-0.0033350552,
0.03966244,
-0.000613009,
0.018083092,
-0.014758783,
-0.02061931,
0.000022095077,
-0.0073865564,
0.0017212611,
-0.026752086,
0.011484627,
-0.0069674356,
-0.006383532,
-0.037398472,
0.014515192,
0.05840466,
0.05089631,
0.009571716,
0.054793775,
0.007021169,
0.005738731,
0.04083741,
0.005047361,
-0.0032902774,
-0.030549249,
0.004929147,
0.025233222,
-0.0037613404,
-0.024301842,
-0.015819123,
0.01414264,
0.013863226,
-0.01322559,
0.0029266812,
0.019086117,
0.024502447,
0.0067990706,
-0.0019308215,
-0.026336549,
0.014422054,
-0.041955065,
0.015088349,
0.059722923,
-0.047514684,
0.0120936055,
-0.028987398,
-0.02683806,
0.028256623,
-0.029431595,
-0.02564876,
-0.032010797,
-0.010051735,
-0.07067022,
0.051383495,
0.010868483,
-0.008411074,
-0.010768181,
-0.013899049,
0.007035498,
-0.002364271,
-0.01316111,
-0.013476346,
-0.00522289,
-0.010245175,
0.05422062,
0.020060483,
0.011305515,
-0.021894583,
0.057573587,
-0.032813217,
-0.009406934,
0.016435267,
0.021565018,
-0.00429151,
0.026078628,
-0.01746695,
0.050667048,
0.017896816,
-0.07760541,
0.01440056,
0.045308035,
-0.028600518,
-0.06436549,
0.042728826,
-0.004427635,
-0.013956364,
0.03413148,
-0.019329708,
-0.0091633415,
0.022238478,
0.033243086,
0.011742547,
0.013340221,
-0.031609587,
0.028844109,
0.037226524,
0.027511518,
0.00069808686,
-0.054879747,
0.074338414,
-0.011857178,
0.023700027,
0.018326683,
-0.04141057,
-0.028371254,
-0.019630615,
-0.041324593,
0.06425086,
-0.008203304,
-0.02445946,
-0.009543058,
-0.019401353,
0.0069674356,
0.028500214,
-0.021851597,
-0.022453412,
0.02711031,
0.021565018,
0.012136592,
-0.043932457,
-0.017825171,
-0.004252106,
-0.05264444,
0.016220333,
-0.01706574,
0.030205356,
0.033672955,
0.009672019,
-0.029130686,
-0.004424053,
0.009607539,
-0.018355342,
0.03080717,
-0.031695563,
-0.00584978,
-0.042470906,
-0.040808752,
0.054535855,
-0.017080069,
-0.061499707,
-0.051641416,
0.022195492,
-0.000465242,
0.04596716,
0.055452906,
-0.08041388,
-0.07365063,
-0.03662471,
0.02867216,
0.008926915,
0.002392929,
-0.020561995,
-0.023184186,
-0.02576339,
0.04100936,
0.05209994,
-0.025089933,
-0.0015134917,
-0.012910354,
-0.02619326,
-0.032383353,
-0.0051834853,
-0.0014436383,
0.024731709,
-0.06304723,
0.0141068185,
-0.005831869,
-0.018355342,
-0.0043416615,
0.045308035,
-0.007067738,
0.037713706,
-0.03519182,
-0.06849222,
0.02049035,
-0.014235779,
-0.033157114,
0.018985813,
-0.057716876,
0.035764974,
-0.03479061,
0.04613911,
-0.045823876,
-0.019372694,
-0.0018896258,
-0.008561527,
-0.0014087115,
-0.031179722,
0.008024193,
0.02603564,
0.019859878,
0.011219542,
0.014235779,
-0.028256623,
-0.00228188,
-0.033415034,
-0.064308174,
0.019859878,
-0.023700027,
-0.020404376,
0.0035428246,
-0.008633172,
0.035220478,
-0.032497983,
0.022295794,
0.06241676,
-0.0025809961,
0.0029445924,
-0.044362325,
0.057029087,
0.000015224474,
-0.004219866,
0.021966228,
-0.007895233,
-0.0023965111,
-0.015905097,
-0.057287008,
-0.065110594,
0.010567576,
0.027769439,
0.027497191,
-0.016134359,
-0.032326035,
-0.0076659704,
-0.036796656,
-0.028858438,
0.018226381,
0.036309473,
0.008411074,
0.018584603,
0.01811175,
0.028256623,
0.051354837,
-0.0135479905,
0.0020991862,
-0.01825504,
0.048431735,
0.019530313,
-0.025849365,
-0.013232755,
0.009471414,
-0.063448444,
-0.028342597,
0.0023839734,
0.028270952,
-0.07296284,
-0.0026347295,
-0.0058533624,
-0.005333939,
-0.02907337,
0.05101094,
0.01796846,
0.023700027,
-0.0026669696,
-0.016306307,
0.020060483,
0.006652199,
-0.0034711799,
0.06906538,
-0.010195024,
-0.033930875,
-0.008138824,
0.0058426154,
-0.03398819,
-0.012466157,
0.023972277,
-0.012817215,
-0.005004374,
0.024244526,
-0.004649733,
0.052443832,
0.028113334,
0.021077836,
0.013762924,
-0.027153296,
-0.08540034,
0.011606422,
0.021679651,
-0.0029857878,
0.024946643,
-0.031724222,
0.009586045,
0.010732358,
-0.0021815775,
0.016893793,
-0.101620674,
-0.0043739015,
-0.032068115,
0.0055094683,
-0.012115099,
-0.0236857,
0.010610563,
0.01785383,
0.006068296,
-0.025347853,
0.003394162,
0.016435267,
0.021679651,
-0.013232755,
-0.05167007,
-0.008898257,
-0.031724222,
-0.0048897425,
-0.025562787,
-0.038430154,
-0.002423378,
0.015532545,
0.012423171,
-0.034847923,
0.031781536,
0.07009706,
0.005362597,
0.012552131,
0.005989487,
-0.003098628,
-0.024803353,
-0.014278765,
-0.029660856,
0.024803353,
0.015833452,
-0.022453412,
0.013848897,
0.0044813687,
-0.0090057235,
-0.025233222,
0.00998009,
0.034561347,
-0.045823876,
-0.033386376,
-0.004814516,
-0.0054199127,
-0.03450403,
-0.00416255,
-0.014156969,
-0.032010797,
0.002720703,
0.022682674,
-0.0022603865,
0.025075603,
0.0076014902,
-0.00813166,
0.006157852,
0.02669477,
0.03553571,
0.01825504,
0.06849222,
0.011470297,
-0.00013321414,
0.020433035,
-0.00572082,
0.020404376,
0.019544642,
-0.0065948837,
-0.016148688,
-0.0040729945,
-0.025433827,
0.014500863,
-0.011663738,
0.08350892,
0.012029125,
0.016306307,
-0.028987398,
0.0011060132,
-0.0139492,
0.04149654,
-0.070269,
-0.061786287,
0.039691098,
-0.05937903,
0.0027439874,
0.01316111,
0.009593209,
0.018341012,
0.014536685,
-0.0011561644,
0.006634288,
0.036939945,
0.033930875,
0.02142173,
-0.020031825,
-0.027955716,
-0.018527288,
0.023184186,
-0.0077447793,
-0.024402143,
0.02550547,
0.07009706,
0.043875143,
-0.026766416,
-0.05063839,
-0.013383208,
-0.027325243,
0.05565351,
-0.021579348,
-0.0043344973,
-0.03573632,
0.010932963,
-0.043015406,
0.0046927202,
0.0020275416,
0.007888068,
0.021765623,
0.016693188,
0.02301224,
0.06339113,
0.0010128752,
0.0073722275,
0.029273976,
0.02272566,
0.007479694,
0.0095645515,
0.033357717,
0.00853287,
0.05711506,
0.0039225407,
0.060697287,
-0.0069566886,
0.03874539,
0.007859411,
-0.006630706,
0.014773113,
-0.025362182,
0.009449921,
-0.0063763675,
-0.004492115,
-0.03407416,
-0.009822472,
0.0017812634,
0.0033386375,
0.010718029,
-0.042212985,
-0.020791257,
-0.0038867185,
0.0038007451,
0.043502588,
-0.04232762,
-0.027540177,
-0.006193674,
0.026508495,
0.081560194,
-0.016191676,
-0.009700676,
0.0285432,
0.0046819733,
0.059665605,
-0.014930731,
0.00070301245,
0.0052013965,
0.03728384,
-0.061041184,
0.008489883,
0.036166184,
0.022697004,
-0.004155386,
-0.023427779,
-0.021951899,
0.033930875,
-0.036653366,
-0.025706075,
-0.0003062806,
-0.019014472,
-0.0069638533,
-0.06791906,
-0.024617078,
-0.05860527,
0.026350876,
-0.0017579789,
-0.014450712,
-0.031838853,
0.027998703,
0.0081101665,
-0.0018242501,
0.027196283,
0.022568043,
0.016979765,
0.02352808,
0.04229896,
-0.0086260075,
0.02407258,
-0.0069423597,
-0.033386376,
0.0027708542,
0.048059184,
0.014264436,
-0.012301374,
-0.027296586,
-0.01981689,
0.029918777,
0.026264904,
-0.04774395,
-0.041439224,
0.005276623,
0.029145015,
-0.03559303,
-0.0020114216,
0.09984389,
0.043445274,
0.002987579,
-0.021321427,
-0.0040013497,
0.002658014,
-0.062187497,
-0.04719945,
0.02683806,
0.00069853466,
-0.022940595,
-0.037169207,
-0.065282546,
0.010152037,
-0.011541942,
-0.02646551,
-0.0088266125,
0.014457877,
0.03593692,
0.03963378,
0.013282905,
0.0054163304,
0.011262529,
0.010940127,
0.018727893,
0.015389256,
0.08769297,
0.07124337,
0.011649409,
-0.020261088,
0.022009216,
0.010589069,
-0.04020694,
0.0022317288,
0.021321427,
0.020690955,
-0.008482719,
-0.06419355,
-0.07107142,
0.024960972,
-0.027712123,
-0.00026150272,
-0.02907337,
-0.0021762042,
-0.043187354,
-0.037427127,
-0.042556882,
-0.02365704,
-0.012466157,
-0.050523758,
0.028729478,
-0.038630757,
0.24347694,
0.03636679,
0.031007774,
0.0081101665,
0.03911794,
0.055424247,
0.0051834853,
-0.016822148,
0.011463133,
-0.060238764,
0.0079310555,
-0.0243305,
-0.001430205,
0.019730918,
-0.03464732,
0.022381768,
-0.055080354,
-0.013397536,
-0.023470765,
-0.031552274,
-0.052128598,
0.016850805,
-0.004474204,
0.019315379,
0.018040106,
0.018971484,
0.014500863,
-0.043015406,
-0.014594001,
-0.049262814,
0.025806379,
-0.013383208,
0.01811175,
-0.024932314,
0.016951108,
0.041066673,
-0.01560419,
-0.015518216,
-0.0056061884,
-0.044648904,
0.008898257,
0.016994094,
0.023714356,
-0.0053196102,
-0.010402793,
0.03407416,
-0.031151064,
0.0013030358,
0.007952549,
-0.024588421,
0.037541762,
-0.016048387,
-0.013899049,
-0.0063441275,
-0.07273358,
0.023499422,
-0.039060626,
-0.007443872,
0.009299466,
0.022453412,
0.01494506,
-0.01216525,
-0.039031968,
0.018283697,
-0.0013137825,
0.005745895,
-0.032669928,
0.022181163,
0.01468714,
-0.032240063,
-0.015976742,
0.009822472,
-0.0031613172,
-0.07989804,
0.03530645,
0.03490524,
-0.010990279,
0.0018538035,
-0.0072970004,
-0.006182927,
0.0091633415,
-0.02882978,
-0.0079310555,
-0.048976235,
0.057201035,
0.012487651,
-0.008926915,
-0.0026365207,
0.009937104,
0.038659416,
0.04175446,
0.02445946,
-0.008475554,
-0.020031825,
0.010796838
] | Document everything! Make sure your quantization method is documented in the docs/source/en/quantization.md file.
Add tests! You should add tests by first adding the package in our nightly Dockerfile inside docker/transformers-quantization-latest-gpu and then adding a new test file in tests/quantization/xxx. Feel free to check out how it is implemented for other quantization methods. |
[
0.007925523,
-0.0074233552,
0.011586256,
0.009715863,
0.00122358,
0.010654698,
0.023041513,
-0.012626982,
-0.025719743,
0.0558935,
0.0076053003,
-0.036068775,
0.009068138,
-0.02427874,
-0.005756739,
0.027801193,
-0.045850135,
-0.023769293,
-0.05670861,
-0.00024198683,
0.016229492,
-0.0047669588,
-0.078134455,
0.005087182,
-0.0027528277,
-0.019795613,
0.040930342,
-0.0022925069,
0.09513539,
0.05443794,
-0.046024803,
0.015880158,
-0.013922431,
-0.023521848,
-0.02636019,
-0.017786942,
0.009031749,
-0.017888831,
-0.02867453,
-0.017423052,
0.028951086,
0.024351517,
0.049256146,
-0.02953331,
-0.075165115,
-0.007918246,
-0.0647433,
-0.039416563,
-0.06328774,
-0.044161685,
-0.02199351,
-0.019606391,
0.021294842,
0.036243442,
-0.012939927,
0.0007887315,
0.018441943,
0.058251508,
-0.037728112,
0.027131636,
-0.004821542,
0.0056439335,
-0.0029675227,
-0.0332741,
-0.0049780146,
0.031061647,
-0.010370864,
-0.005516572,
-0.02940231,
-0.002090548,
-0.031993207,
-0.019737393,
0.008580525,
-0.05076993,
-0.013340206,
0.027146192,
-0.02513752,
-0.01851472,
-0.03580677,
0.056330167,
0.017102828,
0.03697122,
0.041949235,
0.012110258,
-0.025646964,
-0.0031312732,
0.025253965,
-0.026840525,
0.004308457,
-0.01887861,
-0.021877065,
0.06159929,
-0.028732752,
0.016986383,
0.016447827,
-0.0025781605,
0.008303969,
0.094029166,
0.028747307,
-0.0052691265,
0.04232768,
0.10287897,
0.00076871755,
0.041017678,
-0.027772082,
0.039533004,
0.018048942,
0.0023598264,
-0.030683203,
-0.03286654,
0.012008369,
-0.0034769687,
-0.03190587,
-0.014351821,
-0.072486885,
0.021236619,
-0.008216635,
0.00010541437,
-0.03595233,
-0.032924764,
0.00052036264,
0.0057021556,
0.03312854,
-0.03208054,
0.0029620642,
-0.042939015,
-0.02930042,
-0.00638263,
-0.015720047,
-0.012838038,
-0.03228432,
-0.0041410676,
-0.018267276,
0.028980197,
-0.018558389,
-0.050915483,
0.031702094,
0.019620948,
-0.042473238,
0.025952632,
0.042385902,
0.012670648,
0.007103132,
0.0665482,
-0.021775175,
0.012707038,
-0.0006126997,
0.001021621,
-0.048499256,
-0.0032495374,
-0.02579252,
0.010501864,
0.025938077,
0.01319465,
0.039474785,
-0.040551897,
-0.0439288,
0.028528973,
-0.0148831,
-0.011702701,
-0.0077071893,
-0.0026072715,
-0.03164387,
0.013871485,
-0.0042174845,
0.024118626,
-0.03088698,
-0.015356157,
0.022502955,
-0.0044685686,
0.030013645,
-0.016622493,
-0.010385419,
-0.032691874,
0.06311308,
0.012415926,
0.037087664,
-0.017102828,
-0.019155167,
-0.019519057,
-0.00965764,
-0.060085513,
0.04034812,
0.014628377,
-0.0020614367,
-0.0071504377,
-0.00085104763,
0.010916699,
-0.0065136305,
-0.0015965672,
0.022575734,
0.016113048,
-0.052341934,
0.016520604,
-0.030828757,
-0.020261394,
-0.053826604,
-0.021571398,
-0.0188495,
0.008376747,
-0.015952935,
0.032255206,
-0.06101707,
-0.012685204,
-0.023725625,
0.0032349818,
0.0010798435,
0.032924764,
-0.032924764,
0.021644175,
0.019737393,
0.020072171,
-0.036592774,
0.032691874,
0.020610727,
0.014875822,
0.014788488,
0.04855748,
-0.009053582,
0.03161476,
0.0298972,
-0.0000024910828,
0.02407496,
0.025807077,
0.020960063,
-0.044627465,
-0.019402614,
0.07091488,
0.040639233,
0.019693725,
0.0150068225,
0.044452798,
-0.007252327,
0.020421505,
0.02542863,
0.00025949904,
0.048790365,
0.04279346,
0.024948297,
-0.0035006215,
0.0080856355,
0.037495222,
0.00423204,
-0.025879854,
0.008303969,
-0.009999696,
0.0045231525,
-0.018572943,
-0.027859416,
0.0033023015,
-0.016200382,
0.061366405,
0.017757831,
-0.009388361,
-0.02953331,
-0.010247141,
0.014555599,
0.042415015,
-0.072253995,
-0.013907875,
0.026665857,
0.020712618,
-0.014402765,
0.005112654,
0.01653516,
0.03985323,
0.04424902,
-0.038048334,
-0.0053419047,
-0.008886193,
-0.009250083,
-0.022080842,
-0.04282257,
0.029154865,
0.011804591,
0.024191406,
-0.027364526,
-0.09484428,
0.015894713,
0.01801983,
-0.03525366,
0.017685052,
0.0112296445,
0.050391484,
0.008063802,
0.014868544,
-0.0025017436,
0.03254632,
-0.03263365,
0.026476635,
-0.000039857325,
-0.04034812,
0.020377839,
-0.01570549,
0.019722836,
-0.0055202106,
0.033885434,
-0.013391151,
-0.025122963,
-0.008318525,
-0.045529913,
0.0028820084,
-0.014402765,
0.03816478,
0.0024326043,
0.015137822,
-0.02394396,
-0.022532066,
0.041774567,
0.005949601,
-0.038019225,
0.0003154471,
-0.015749158,
0.045384355,
-0.048528366,
0.05126482,
0.03155654,
-0.056533944,
-0.036010552,
-0.026200078,
-0.03621433,
0.05493283,
-0.019620948,
-0.016127603,
-0.021120174,
0.060143735,
-0.0025745216,
-0.0652673,
0.03496255,
-0.037000332,
-0.011367923,
-0.06491797,
-0.009366528,
0.034554992,
0.041978348,
0.035632107,
0.030304756,
-0.0032695513,
-0.022051731,
0.037058555,
0.0343221,
0.00023311701,
0.056679502,
-0.013951541,
0.035602994,
0.0077071893,
0.007947356,
-0.01729205,
-0.0265203,
-0.02553052,
-0.0017830608,
0.050566148,
-0.019664614,
0.017816054,
-0.004781514,
0.043725017,
-0.02553052,
0.04791703,
0.03525366,
0.0038972616,
0.029809866,
0.028092306,
0.013747763,
-0.020654395,
-0.056533944,
-0.02116384,
-0.032196984,
-0.003353246,
0.039329227,
-0.03277921,
0.042647906,
-0.011513478,
-0.048499256,
0.023900293,
0.011964702,
-0.011156866,
0.03595233,
0.010967644,
0.055136606,
-0.045180578,
0.0040464564,
0.021847954,
0.032750096,
0.0139879305,
0.007896412,
0.0034769687,
-0.028048638,
-0.012874427,
-0.032924764,
-0.016171271,
0.04672347,
-0.01240137,
-0.023565514,
-0.021120174,
-0.053419046,
-0.034176547,
0.010480031,
0.026971525,
0.016593382,
-0.04110501,
0.023973072,
0.02550141,
0.013434818,
0.02550141,
-0.010167086,
-0.011819147,
-0.00565485,
0.03277921,
0.02672408,
0.0298972,
-0.047946144,
0.009155472,
-0.007896412,
-0.038485,
-0.0133547615,
0.048237253,
-0.030100979,
-0.010894866,
0.0047451253,
0.07015798,
-0.032167874,
-0.02774297,
-0.00850047,
0.0046978197,
0.046985473,
-0.018340055,
0.007954635,
-0.014300875,
0.016025715,
0.035602994,
-0.046577916,
-0.0141917085,
0.0026036326,
0.019053278,
-0.044161685,
0.019096946,
0.024991963,
-0.023201624,
0.019722836,
-0.017044606,
-0.0007041271,
-0.011171422,
-0.029562421,
0.0026400217,
-0.021367619,
0.034554992,
0.0058986563,
0.0139879305,
-0.00014305425,
-0.036418106,
-0.011993813,
-0.049489036,
-0.004242957,
-0.0478297,
0.0008455893,
0.0057021556,
0.045122355,
-0.051177487,
0.044831242,
0.023259846,
0.032720987,
-0.0033987323,
0.030450312,
-0.029052975,
0.0005567517,
0.020814506,
-0.014133486,
-0.019882947,
0.029460533,
0.0028201472,
0.005371016,
-0.0048324587,
-0.005250932,
-0.046403248,
0.033681657,
-0.053913936,
-0.013944264,
-0.013798707,
0.000057909678,
-0.0012053855,
-0.028558085,
0.02734997,
-0.013755041,
-0.04980926,
-0.014657488,
-0.07405888,
-0.026054522,
-0.012859872,
-0.032429874,
0.076213114,
-0.05158504,
-0.006928465,
0.0053164326,
-0.03502077,
-0.0030166479,
-0.006524547,
-0.008638748,
-0.03213876,
0.028325194,
-0.004377596,
0.031993207,
-0.02407496,
-0.0263893,
0.011040421,
-0.051876154,
-0.019417169,
-0.006604603,
0.0009961488,
0.04593747,
-0.003224065,
-0.00105801,
-0.04448191,
0.004213846,
0.030100979,
0.01580738,
-0.051381264,
0.048004363,
0.0003356885,
-0.04451102,
0.014562877,
0.03697122,
-0.035195436,
-0.018194498,
0.038019225,
-0.021440396,
0.026927857,
0.034380324,
-0.028878307,
-0.020960063,
-0.008602358,
0.028048638,
0.009977863,
-0.018194498,
-0.008180247,
-0.026112745,
0.0037517056,
0.04355035,
0.025748855,
0.009548473,
-0.03205143,
-0.026272856,
0.014198987,
-0.04520969,
-0.013507595,
-0.0062370743,
0.061366405,
-0.029547865,
0.0002569973,
-0.02745186,
-0.04622858,
-0.009402917,
0.01650605,
0.018238164,
0.027757527,
-0.016651604,
-0.046519693,
0.0011981077,
0.035195436,
-0.044307243,
0.022022622,
-0.012983594,
0.04465658,
-0.024031293,
0.056533944,
0.00013031809,
0.0014182611,
0.0034187462,
0.008573248,
0.046985473,
-0.050886374,
-0.0223574,
-0.020246837,
-0.0039372896,
-0.0072050216,
0.014468265,
-0.07027443,
-0.004086484,
-0.033914544,
-0.052662157,
0.03545744,
0.016098492,
0.017306607,
0.007405161,
-0.01332565,
0.04515147,
-0.022561178,
0.010676532,
0.07650422,
0.0035078994,
0.014017042,
-0.043637685,
0.059736177,
0.018747611,
-0.0037589835,
0.012081147,
-0.017466718,
-0.02506474,
-0.03213876,
-0.0007887315,
-0.085994475,
-0.04660703,
-0.00373715,
0.04253146,
-0.037087664,
0.005083543,
0.0019122418,
-0.047131028,
-0.0024598963,
0.034554992,
-0.0042575127,
-0.003369621,
0.047393028,
-0.008027413,
-0.0127434265,
0.03897989,
0.0007982836,
0.0019231585,
0.0016129423,
0.059183065,
-0.021484064,
-0.061657514,
0.036156107,
0.012073869,
-0.05542772,
-0.034292992,
0.016869938,
0.00090563117,
-0.014773932,
-0.048266366,
-0.016476939,
0.004559541,
-0.0013100039,
-0.02355096,
0.013980652,
0.00066046027,
0.017481275,
-0.015399823,
0.0075325225,
0.023259846,
-0.030421201,
0.05050793,
-0.061541073,
-0.022794068,
-0.009104527,
0.0017221093,
-0.011498923,
-0.009708584,
0.06561664,
-0.010487309,
0.00076007517,
0.01240137,
-0.03336143,
0.038834337,
-0.022284621,
0.062181517,
0.038834337,
-0.014104375,
-0.06724687,
-0.0069757705,
0.02817964,
0.025734298,
-0.02745186,
-0.024831852,
0.008405859,
0.016695272,
0.048790365,
0.0030493978,
-0.05400127,
0.041163232,
-0.062181517,
-0.043608572,
-0.011397034,
0.0033477878,
-0.019038724,
0.018412832,
-0.0120665915,
-0.037320554,
-0.0055202106,
0.0125178145,
-0.012976316,
0.011469812,
-0.05467083,
-0.0015447129,
0.0039445674,
-0.015632713,
-0.05280771,
-0.07120599,
0.01256876,
0.037000332,
-0.008471359,
-0.013376595,
-0.026141856,
0.04037723,
-0.049168814,
0.0053892103,
-0.0037262333,
-0.00085514144,
0.014817599,
0.020683507,
-0.026709523,
0.0670722,
0.0002708706,
0.028063195,
-0.011018588,
0.028412528,
-0.018121721,
-0.0054001273,
-0.0014610182,
-0.0135803735,
-0.004286624,
-0.024016738,
-0.0081293015,
0.010487309,
-0.088672705,
-0.03155654,
0.02688419,
-0.012263092,
0.028004972,
0.0016575188,
0.029067531,
0.054961942,
0.011935591,
0.061308183,
-0.032720987,
0.0074160774,
0.047713254,
-0.0021615063,
0.05566061,
0.014046153,
-0.0188495,
-0.017146496,
0.0055202106,
-0.010727476,
-0.010756588,
-0.00012315401,
-0.015283379,
-0.018063499,
-0.017481275,
0.03376899,
-0.026331078,
0.046286803,
0.02090184,
-0.018529277,
0.0016083936,
-0.0021451314,
-0.013944264,
0.011833701,
-0.06800376,
-0.05519483,
0.014148042,
-0.049751036,
-0.013660429,
0.0031167176,
-0.02896564,
-0.0112442,
0.033739876,
0.026432967,
0.017306607,
0.044540133,
0.009992419,
0.04596658,
-0.012081147,
-0.058484394,
0.0045740968,
-0.0023689237,
-0.042415015,
0.005734906,
0.0150796,
0.020057615,
0.041949235,
-0.006517269,
-0.020974617,
0.005509294,
0.023361735,
0.063462414,
-0.030945202,
-0.0073105493,
-0.070798434,
0.0014064347,
-0.009461139,
0.031032536,
0.010094307,
0.011513478,
0.012969038,
-0.024176849,
0.0533026,
0.040464565,
0.006200685,
-0.0041228733,
0.022139065,
0.013616762,
0.01663705,
0.015880158,
0.02688419,
0.016185826,
0.015894713,
0.021134729,
0.055573277,
0.005079904,
-0.031731207,
0.026825968,
0.0056876,
0.030770537,
-0.009177305,
0.027553748,
0.033681657,
-0.008711526,
-0.010101586,
-0.038019225,
0.001187191,
0.04183279,
0.030828757,
-0.026636746,
-0.0301592,
-0.017306607,
-0.02394396,
0.019620948,
-0.015720047,
-0.042240348,
0.0099851405,
0.020130392,
0.06538375,
-0.014773932,
0.015196045,
0.023419958,
0.023987627,
0.04378324,
-0.01666616,
0.01368954,
0.0071249655,
0.031148981,
-0.041541677,
0.025821632,
0.018820388,
0.031934984,
-0.009417472,
-0.07551444,
0.03228432,
0.010996755,
0.0033768988,
0.005698517,
-0.032982986,
-0.04718925,
0.026956968,
0.004170179,
0.026840525,
-0.030595869,
-0.02225551,
0.010865754,
-0.030421201,
-0.0080856355,
0.03816478,
0.0004100585,
0.021746064,
0.042094793,
0.03668011,
0.005836795,
0.044627465,
0.028659973,
-0.024977406,
0.04718925,
-0.015137822,
-0.06223974,
0.009417472,
-0.0133329285,
0.0188495,
0.011782757,
-0.009810474,
-0.004643236,
0.056446612,
0.011855535,
-0.017597718,
-0.039329227,
-0.0010543711,
0.023157958,
-0.008733359,
-0.00065727625,
0.0647433,
0.007910968,
0.024977406,
-0.016942717,
0.008755192,
-0.022342844,
-0.0039336504,
-0.054874606,
0.043346573,
0.017976165,
-0.027364526,
0.01167359,
-0.033972766,
0.0014027958,
0.00059268577,
-0.008442247,
-0.03181854,
-0.016287714,
0.04905237,
0.032226097,
0.0003650271,
-0.047800586,
-0.028165083,
0.009461139,
0.03915456,
-0.022197288,
0.085004695,
0.07551444,
0.00522546,
0.0022069926,
0.029620644,
-0.015516268,
-0.02443885,
-0.0019540892,
0.0010689268,
-0.0038281225,
-0.007867301,
-0.06625708,
0.0028983837,
0.023099735,
-0.004963459,
-0.037640776,
-0.016957272,
-0.024977406,
-0.044132575,
0.0036097884,
-0.05344816,
0.027510082,
-0.007830912,
-0.009250083,
0.015327046,
-0.057232615,
0.25082207,
-0.006135185,
0.0072777993,
-0.015574491,
0.07504867,
0.058164172,
-0.002794675,
0.015720047,
0.027917638,
-0.0120665915,
0.028223306,
-0.02470085,
0.008049246,
0.023172513,
0.016025715,
-0.0040792064,
-0.04817903,
-0.025908966,
0.0022433817,
0.011193255,
-0.0076271337,
-0.026898745,
-0.015196045,
0.041687235,
0.0014437335,
0.012692482,
0.007925523,
-0.04890681,
0.022866845,
-0.04037723,
-0.049663704,
-0.038543224,
0.01716105,
-0.013594929,
-0.014075264,
0.029227642,
0.009439305,
-0.05737817,
-0.026694968,
-0.012583315,
0.010283531,
-0.0019850198,
-0.016011158,
-0.0071577155,
-0.023973072,
-0.0038244836,
0.0017521302,
-0.026782302,
-0.0006227067,
-0.024991963,
0.03988234,
-0.032226097,
0.030071868,
0.030683203,
-0.02896564,
-0.001061649,
-0.01593838,
-0.013820541,
0.016083937,
0.03499166,
-0.047713254,
0.006913909,
-0.073709555,
0.002341632,
-0.01293265,
-0.014715711,
0.004282985,
-0.010996755,
0.027364526,
-0.01326015,
0.026767746,
-0.0034915241,
0.011135033,
-0.03676744,
0.045093246,
0.009730417,
-0.033710767,
0.040784787,
0.032226097,
-0.04229857,
0.029009309,
-0.01887861,
0.0013291081,
-0.058164172,
0.04672347,
0.027641082,
-0.067130424,
0.028063195,
0.0037808167,
0.0065136305,
0.017961608,
0.013070928,
0.009490251,
-0.037349667,
0.0009033568
] | Define the following class attributes/property methods for your quantization method:
requires_calibration: Whether the quantization method requires a data calibration process. If set to True, you can only support inference (with quantized weights) and not inference and quantization. |
[
0.018488359,
0.040429596,
0.0014735931,
0.00020402821,
-0.024865877,
-0.03901237,
-0.022959063,
-0.00050971826,
-0.006822011,
0.046845764,
0.0065965434,
-0.021078017,
0.0039166976,
-0.026566548,
-0.014713384,
-0.03421957,
-0.0016716826,
-0.055761404,
-0.013412112,
-0.020601314,
-0.03192624,
0.021206856,
-0.06895449,
-0.047412656,
-0.01243938,
0.019699443,
0.008387402,
0.012941851,
0.09704134,
0.057462078,
0.051200513,
0.006438716,
0.009160434,
-0.01117676,
-0.015988888,
-0.018849107,
0.036100615,
-0.0015194919,
-0.025445651,
-0.00641939,
0.008020211,
-0.0166975,
0.02424745,
-0.0049377447,
-0.050839767,
-0.030715154,
-0.014417055,
-0.019879818,
0.0027410442,
-0.017032482,
-0.014777803,
-0.0029004822,
0.013953235,
-0.033575375,
0.013463648,
-0.012201029,
0.0050408156,
-0.031848937,
-0.019235624,
0.033833053,
0.030663619,
0.04292907,
0.024067076,
-0.045892358,
-0.000688482,
0.020433825,
0.008973618,
0.025896586,
0.00070982095,
-0.028524896,
-0.042387944,
-0.027648794,
-0.019403113,
-0.019377345,
-0.027854934,
-0.00047469023,
0.038728926,
0.0031066241,
-0.022121612,
0.047541495,
0.0056656837,
-0.0056817885,
-0.010268447,
0.0137084415,
0.0023142658,
-0.0389866,
0.072149694,
-0.0061842594,
-0.0053983433,
-0.012136609,
0.020781688,
0.00081329455,
-0.014558777,
0.019892702,
-0.0013817955,
0.05094284,
-0.024389174,
0.025329696,
0.024659734,
0.047773402,
0.012465148,
0.04493895,
-0.049036022,
0.02618003,
-0.010165377,
0.003974675,
0.05375152,
-0.019609256,
-0.036203686,
-0.0014188366,
0.00023694249,
0.016658848,
0.0540092,
0.017071133,
-0.02603831,
0.060657278,
0.009875489,
0.021271275,
-0.014687616,
0.008406728,
-0.02275292,
0.01726439,
0.005002164,
-0.01796012,
0.014326868,
-0.03135935,
0.0015412334,
0.03398766,
-0.07673635,
0.031513955,
-0.016272333,
-0.009585602,
0.012716384,
0.019660791,
0.02687576,
0.035507955,
-0.013399228,
0.031307813,
0.0031903693,
-0.0038136267,
-0.0029375232,
-0.027391115,
-0.010294215,
0.106369264,
-0.026270218,
-0.0119047,
0.020691501,
-0.03349807,
-0.058802,
0.037878588,
-0.06374941,
0.003200032,
-0.007363134,
0.013682674,
-0.015215855,
-0.0057977433,
0.005598043,
-0.027468419,
-0.06725382,
-0.009192644,
0.020395173,
-0.030843994,
-0.038007427,
0.030225568,
-0.035379115,
0.06715075,
-0.010764477,
-0.008310098,
-0.037389003,
-0.03007096,
0.0011047922,
0.010899757,
0.024981832,
-0.023719212,
0.0075757178,
0.039089672,
0.015293159,
-0.0002103695,
0.05674058,
0.008934966,
-0.0452997,
-0.011576161,
-0.026270218,
0.0013278442,
0.0349926,
0.015215855,
0.007459763,
-0.009682232,
-0.0137084415,
-0.0050279316,
-0.0047573703,
0.04300637,
-0.018436823,
0.025522955,
-0.025767747,
0.035997543,
-0.016104842,
-0.0079300245,
-0.021232624,
-0.018823339,
-0.023075018,
0.004998943,
0.017766861,
0.014687616,
-0.06405862,
0.03566256,
-0.0027990215,
0.04403708,
-0.050350178,
0.03372998,
0.006770476,
0.028215684,
-0.0540092,
-0.010996386,
0.02161914,
-0.02637329,
-0.035276048,
0.041228395,
0.038136266,
-0.019248508,
-0.013244622,
-0.01783128,
0.02254678,
0.019441765,
0.011543951,
-0.004995722,
0.005211527,
0.038909297,
-0.0002657299,
0.018630082,
0.027056135,
0.034039196,
0.010094515,
0.036538664,
0.004576996,
0.025484303,
0.02458243,
0.027829167,
0.003006774,
0.024852993,
-0.020833224,
-0.005594822,
0.060811885,
0.045840822,
-0.031075904,
0.04024922,
-0.0011796796,
-0.0421045,
-0.011859606,
0.0016201471,
-0.012561777,
0.070449024,
0.025394116,
0.01343788,
-0.038058963,
-0.06266716,
0.019970004,
0.011286274,
-0.017509185,
-0.02929793,
-0.025394116,
0.015409113,
0.0098626055,
-0.009115341,
-0.016787687,
0.03870316,
0.012117283,
0.023577489,
-0.050891303,
-0.010139609,
-0.029452536,
-0.050633624,
-0.08194144,
0.010030095,
-0.0069701755,
-0.017212855,
0.008934966,
-0.047670335,
-0.0014212523,
-0.019750979,
-0.027623026,
0.000071465234,
-0.034348406,
0.018333752,
-0.003196811,
-0.017238623,
-0.031410884,
0.044681273,
-0.015756978,
0.06411015,
0.01653001,
0.00024177395,
-0.011189644,
-0.029375233,
-0.01978963,
-0.0010838559,
-0.02757149,
0.000016985576,
-0.008793244,
-0.017406113,
0.022830224,
0.014262448,
-0.031256277,
-0.019415997,
-0.03308579,
0.010255563,
0.035739865,
-0.0437021,
0.023435766,
0.04117686,
-0.043083675,
0.02311367,
-0.012014212,
0.03947619,
-0.029246394,
0.018076075,
0.024917413,
-0.010287773,
0.00071666547,
-0.040919185,
-0.022701386,
0.0087417085,
0.0052630627,
-0.016942294,
0.019660791,
0.04127993,
0.01413361,
-0.057255935,
0.012374961,
-0.011866048,
-0.054627623,
-0.0030921297,
-0.017483417,
0.044810113,
0.054936837,
0.005314598,
-0.05102014,
-0.024118612,
-0.022044308,
0.029272161,
0.03921851,
-0.03514721,
0.013173761,
0.038600087,
0.0057558706,
0.01783128,
0.065501615,
-0.04254255,
-0.0077109984,
0.035172977,
0.015396229,
0.045686215,
0.035997543,
-0.009894815,
-0.029607141,
-0.001889098,
-0.006699614,
0.041563377,
0.058183573,
0.008819012,
0.023023482,
0.0548853,
-0.0019019819,
0.018810455,
0.011885374,
-0.042516783,
-0.016852107,
-0.0050343736,
0.037131324,
-0.058028966,
0.049448308,
-0.004576996,
-0.033807285,
0.0008100736,
-0.007814069,
-0.06096649,
0.040919185,
0.0042774463,
0.060451135,
-0.029272161,
-0.039527725,
0.013373461,
0.03808473,
0.043624796,
0.049087558,
0.07482954,
0.01819203,
-0.041202627,
-0.0014196419,
-0.01865585,
-0.015331809,
-0.0015823008,
-0.0317974,
-0.013540952,
-0.062976375,
-0.016079074,
0.028550664,
0.027391115,
0.02624445,
0.026205799,
0.023757864,
-0.041692216,
0.021992773,
0.025187973,
0.015782746,
0.018398171,
-0.0162981,
0.06524394,
-0.0043611913,
0.002301382,
-0.00091636553,
-0.002501082,
-0.029761748,
0.012497357,
0.029761748,
0.015718326,
-0.025084902,
0.018488359,
-0.030225568,
0.030689387,
-0.015885817,
0.04280023,
0.021206856,
0.02826722,
0.010629196,
-0.0644709,
0.00522119,
-0.020871876,
0.012143051,
0.026824225,
0.02407996,
-0.04267139,
0.00552074,
-0.02328116,
-0.043727867,
0.026192915,
0.025793515,
-0.024968948,
0.026643852,
-0.04037806,
-0.0070925723,
0.0062712254,
-0.01327039,
-0.004470704,
0.004837895,
-0.013032039,
-0.00838096,
0.022675619,
-0.007131224,
-0.04012038,
0.021297043,
-0.03870316,
0.033961892,
-0.048366062,
-0.014017655,
-0.0317974,
0.008161934,
0.010236238,
0.0062583415,
-0.034580316,
0.0076465793,
-0.047567263,
0.04620157,
-0.039862704,
-0.05112321,
0.0421045,
-0.0013197918,
-0.013412112,
0.019506184,
-0.010506799,
-0.0143526355,
0.035714097,
0.0015823008,
-0.016710384,
0.008806128,
0.017650908,
0.047283817,
-0.026746921,
-0.040944953,
0.009972118,
-0.021657791,
0.013656906,
-0.018900642,
-0.0452997,
-0.017109785,
-0.059059676,
0.009952793,
0.0015186867,
-0.027288044,
0.020408057,
0.018668734,
-0.033936124,
-0.007163434,
-0.05109744,
-0.0056527997,
0.0030148264,
-0.032390058,
0.015306042,
-0.010075189,
0.022765804,
0.047644567,
-0.02331981,
-0.06086342,
0.02904025,
-0.0016990609,
0.009617812,
-0.035765633,
-0.04864951,
-0.001998611,
-0.010835337,
-0.024440708,
0.01613061,
-0.016027538,
0.009939909,
0.011447322,
-0.014803571,
-0.018900642,
-0.021142436,
0.004924861,
0.05617369,
-0.01207219,
-0.076942496,
-0.01991847,
0.039038137,
-0.03442571,
0.0069959434,
0.030328639,
-0.039940007,
0.019403113,
-0.038935065,
0.0017232181,
-0.019145437,
0.041949894,
-0.06704768,
-0.038162034,
0.022469476,
-0.016246565,
0.043856706,
-0.031307813,
0.0017634802,
-0.019132553,
0.023268277,
-0.023190973,
-0.0286022,
-0.003887709,
0.016259449,
0.015280275,
0.037466306,
0.003349807,
-0.024466475,
0.028705271,
-0.028627967,
0.032879647,
0.06879988,
-0.047670335,
-0.02075592,
-0.010796687,
-0.009482531,
0.03957926,
-0.004109956,
0.013334809,
0.03924428,
-0.015164319,
0.026927296,
-0.01423668,
-0.03617792,
-0.039656565,
0.011163876,
0.043856706,
-0.079880014,
-0.004109956,
-0.018552778,
0.058956604,
0.029761748,
0.029194858,
-0.037646677,
-0.010893315,
-0.05823511,
-0.045273934,
0.0062003643,
-0.025226625,
0.000121088284,
0.00305992,
0.000014267884,
0.049809057,
-0.037904356,
0.05225699,
0.05109744,
0.011543951,
0.0061713755,
-0.046046965,
-0.00954695,
-0.0057913014,
-0.034477245,
-0.0057784175,
-0.009765976,
-0.06957292,
0.039630797,
-0.031900473,
-0.057822827,
-0.003365912,
0.019364463,
0.060605742,
0.0035334025,
0.034606084,
-0.027726097,
-0.012458706,
-0.06570776,
0.027932238,
0.03821357,
0.019325811,
0.03728593,
-0.031307813,
0.028112613,
0.0158987,
-0.045248166,
-0.006409727,
0.00412284,
0.0715828,
-0.018514127,
-0.030715154,
0.037801284,
0.012220354,
-0.017406113,
-0.024505127,
0.0061327238,
0.024659734,
-0.029117554,
-0.04316098,
-0.018217798,
-0.004502914,
-0.006345308,
-0.013167319,
-0.00092280743,
-0.0500925,
0.018372403,
-0.009237737,
-0.038960833,
-0.046304643,
0.051432423,
0.019248508,
-0.0109835025,
0.02344865,
-0.059162747,
-0.004808906,
-0.014146494,
0.0065127984,
0.006306656,
0.02185105,
0.018539894,
0.019802514,
0.025729096,
0.055606797,
-0.01859143,
0.017702442,
0.007105456,
-0.0060521998,
-0.057410542,
-0.01892641,
0.042954836,
-0.008561335,
0.030534782,
-0.028962947,
-0.01892641,
0.017109785,
0.036487132,
-0.006660963,
-0.08807416,
0.013579603,
-0.013321926,
-0.01044238,
-0.03604908,
-0.04367633,
-0.01846259,
0.048469134,
-0.03501837,
-0.010319983,
-0.0053339237,
0.048340295,
-0.027236508,
-0.010088073,
-0.01719997,
0.0013214023,
-0.008303656,
-0.018166263,
-0.017921468,
0.0037169976,
-0.0026943402,
0.0429033,
-0.013360577,
0.0413057,
-0.03558526,
0.015357577,
0.023886701,
-0.021232624,
0.0064870305,
-0.018630082,
-0.00971444,
0.009849722,
-0.014971062,
0.03313732,
0.014842222,
-0.04645925,
0.0076079275,
-0.012916083,
0.021606257,
-0.050814,
0.00532104,
0.06405862,
-0.009488973,
0.026643852,
-0.019931352,
0.02551007,
-0.035224512,
-0.039089672,
-0.0064515998,
-0.0011482752,
-0.02929793,
0.04952561,
0.012568219,
0.044217456,
0.026618084,
0.011279832,
-0.0021934796,
0.007427553,
0.029529838,
-0.021992773,
-0.0001939627,
-0.012819454,
0.011505299,
-0.11152281,
0.039192744,
0.017779745,
0.022508128,
0.005308156,
-0.02178663,
-0.026566548,
-0.07029442,
0.01985405,
0.033910356,
0.020459592,
0.009566276,
-0.01852701,
-0.0149839455,
-0.0030760248,
0.00087288243,
0.018153379,
-0.07034595,
-0.02929793,
0.0151514355,
-0.034734923,
0.022572547,
-0.004596322,
-0.0072729466,
-0.0010266837,
0.022868875,
0.029194858,
-0.0476188,
0.050247107,
0.0073695756,
0.041228395,
-0.052823883,
0.0030502572,
0.034064963,
0.033008486,
-0.042645622,
-0.034966834,
0.035224512,
0.058492787,
0.015177203,
-0.044526666,
-0.027288044,
0.017161319,
-0.010197586,
0.034941066,
-0.022920411,
0.025484303,
-0.0070925723,
0.03581717,
-0.0036557992,
0.013450764,
0.004145386,
0.049139094,
0.032570433,
0.00024076739,
-0.017702442,
0.04712921,
0.029942123,
-0.02590947,
0.015138552,
0.013914583,
0.022778688,
-0.015370461,
0.0016467201,
-0.008438937,
0.048366062,
0.08168376,
0.00735025,
-0.03628099,
0.040300757,
0.011189644,
-0.05042748,
-0.037827052,
0.042697158,
0.018333752,
-0.013476532,
0.0045415657,
-0.047670335,
-0.0054627624,
-0.069263704,
0.0002713666,
-0.035404883,
-0.0059684543,
0.007111898,
-0.030045193,
-0.030612083,
0.021541838,
0.025033366,
-0.014790687,
-0.036203686,
0.009927025,
0.00878036,
0.0190939,
-0.0033304815,
-0.0043322025,
0.027313812,
0.036435597,
0.042491015,
0.038522784,
0.014494358,
0.04506779,
0.01892641,
0.019699443,
-0.011627696,
-0.009315041,
-0.004406285,
-0.00016265891,
-0.05181894,
0.01343788,
-0.0015670011,
-0.02904025,
0.0081039565,
0.004812127,
0.00715055,
-0.05112321,
0.0041260608,
-0.0022337416,
0.005208306,
0.05591601,
-0.013218855,
-0.008651521,
0.019209856,
-0.0065224613,
0.03988847,
0.029967891,
0.06627464,
-0.0174963,
0.09358846,
0.0397081,
-0.020858992,
0.02677269,
0.018539894,
0.036667503,
-0.017071133,
0.014404171,
-0.047464192,
-0.007028153,
-0.04506779,
-0.021271275,
-0.04965445,
-0.012536009,
-0.014971062,
-0.007962234,
-0.0016306153,
0.0069508497,
-0.027494187,
-0.007556392,
0.05019557,
0.021825282,
-0.020446708,
0.0054756464,
0.015280275,
-0.015576604,
0.03545642,
-0.03762091,
0.030637851,
-0.0141980285,
-0.027468419,
-0.028859878,
-0.032441594,
-0.008754592,
-0.034812227,
-0.00409063,
-0.034039196,
0.03744054,
0.029658677,
0.044346295,
0.03195201,
-0.024840109,
0.0043547493,
0.02733958,
0.039656565,
0.010848221,
0.043186747,
0.06658386,
0.024234567,
-0.009914141,
-0.021142436,
0.02654078,
-0.003894151,
-0.019544836,
-0.028550664,
0.020704385,
-0.049499843,
-0.052695043,
-0.042336408,
0.028061077,
0.025690444,
-0.0032257999,
-0.05091707,
0.0405069,
-0.03133358,
-0.003113066,
-0.022843108,
0.067202285,
-0.010654964,
0.020897644,
-0.017251506,
-0.026746921,
0.18460014,
0.04347019,
0.032544665,
-0.026115611,
0.020730153,
0.06812993,
0.054060735,
-0.025626024,
-0.023964005,
0.017766861,
0.015847165,
-0.037646677,
-0.004071304,
0.040687274,
-0.019828282,
0.007942908,
-0.07147973,
-0.018977946,
-0.012117283,
-0.07931313,
-0.032931183,
0.051664334,
0.00059064507,
0.03272504,
0.0029487966,
0.024221683,
0.0065772175,
-0.0073115984,
0.01915832,
-0.017947236,
0.011427996,
-0.04687153,
0.001297245,
0.010423054,
-0.030457478,
0.033472303,
0.03246736,
-0.048314527,
0.011138109,
-0.009160434,
0.0028425045,
-0.02733958,
-0.011704999,
-0.022624083,
-0.05112321,
0.01995712,
-0.0058653834,
0.034683388,
0.011569719,
-0.059059676,
0.016259449,
-0.02065285,
0.04586659,
-0.04200143,
-0.06374941,
-0.035404883,
-0.05364845,
-0.058132038,
-0.0065031354,
0.036229454,
-0.0040197684,
0.018488359,
0.0097015565,
0.029993659,
-0.027854934,
0.04738689,
0.009392344,
-0.048340295,
-0.049036022,
0.01783128,
0.0013044922,
0.019841166,
-0.010841779,
-0.04027499,
-0.008277889,
0.026824225,
-0.035276048,
0.040584203,
-0.012645522,
-0.02534258,
0.015860049,
-0.05354538,
0.0065578916,
-0.0051503284,
0.012078632,
0.08049844,
-0.016220797,
0.039656565,
-0.034271102,
0.035533722,
0.00971444,
0.026128495,
0.00039799092,
0.041073788,
-0.025265276
] | "Autoregressive generation iteratively selects the next token from a probability distribution to generate text" |
[
0.056376316,
-0.05329795,
-0.021322198,
0.018696535,
-0.013897909,
0.019088876,
0.021593818,
-0.008329691,
-0.016478302,
0.048076805,
0.015738891,
-0.03482777,
0.020658238,
-0.05797586,
-0.009408628,
0.06337809,
-0.023449892,
-0.033348944,
-0.032534085,
-0.013256583,
0.03847955,
-0.012773702,
-0.08625456,
-0.017172443,
-0.031568322,
-0.00027468553,
0.034616508,
0.02959153,
0.08275367,
0.05873036,
-0.023917682,
-0.0006686765,
-0.0009101169,
-0.049585808,
-0.023102822,
-0.033107504,
-0.013384848,
-0.013943179,
-0.0071866224,
0.0022785931,
0.02249922,
-0.009816058,
0.032986786,
-0.044032678,
-0.07822666,
-0.013128318,
-0.017625144,
-0.02258976,
0.002084309,
-0.0730357,
-0.034948487,
0.013301853,
0.034133628,
0.005145697,
-0.029153919,
-0.0052098297,
0.018968156,
-0.0021031715,
-0.038690813,
-0.021473099,
-0.0027973126,
0.0068546417,
0.0024691047,
-0.026784787,
-0.00043808215,
0.026437717,
0.017610054,
0.046266004,
-0.00056351797,
-0.034254346,
-0.015497451,
0.011626861,
-0.055923615,
-0.061325844,
-0.015248465,
0.03748361,
0.0041497555,
0.0021541005,
-0.041920077,
0.050008327,
0.003068933,
-0.00070310064,
0.032986786,
-0.028082527,
-0.018198565,
-0.00048948254,
0.014146894,
-0.030813823,
-0.0032066293,
-0.016795192,
-0.023721512,
0.039022792,
-0.016251951,
0.00034989984,
0.010796909,
0.019903736,
-0.008676762,
0.054988034,
0.020431887,
-0.02975752,
0.037513793,
0.07327714,
-0.0023804507,
0.0054852227,
0.014388335,
0.032896243,
0.017459154,
0.025245605,
-0.048167344,
0.0029765065,
0.008239151,
-0.014267614,
-0.046899784,
-0.014946666,
-0.0567083,
-0.0055531277,
-0.011475961,
0.000053964508,
-0.03576335,
-0.004745811,
0.026362266,
-0.012932148,
0.014795765,
-0.039264232,
-0.009499168,
-0.041739,
-0.025743576,
0.014886306,
0.005221147,
-0.024249664,
-0.009265273,
-0.009031378,
0.0047307215,
0.026694246,
0.0007992995,
-0.026332086,
0.005960558,
-0.0028991702,
0.005251327,
0.007861901,
0.019451037,
-0.00787699,
0.017851494,
0.07490686,
0.0011657041,
0.020341348,
-0.016870642,
-0.0076204604,
-0.071466334,
-0.0033801645,
-0.0110081695,
0.0026879099,
-0.012238007,
0.017911855,
-0.0009648182,
-0.025456864,
-0.037755232,
0.0104951095,
0.03826829,
0.032443546,
0.03784577,
0.030044232,
-0.024370383,
0.054867316,
-0.006767874,
0.031779584,
-0.038238112,
-0.004413831,
0.020145178,
-0.003068933,
0.015482361,
-0.03165886,
-0.012773702,
-0.016297223,
0.094342805,
0.022635031,
0.054082632,
0.0051570144,
0.0007700626,
-0.009023832,
0.015467271,
-0.01130997,
0.028655948,
0.047382664,
0.010547925,
0.022710482,
-0.010087679,
0.021322198,
-0.012864242,
0.007861901,
0.018243834,
-0.006865959,
-0.056738477,
0.03712145,
-0.037362892,
-0.01143069,
-0.039656572,
0.020145178,
-0.010253669,
-0.018968156,
-0.021307109,
0.014509055,
-0.048921846,
-0.0020805367,
-0.03784577,
0.06114476,
0.009484078,
0.040139455,
-0.0054097725,
0.01448642,
0.03739307,
0.020748777,
-0.033077326,
0.022016339,
-0.010253669,
0.0020258352,
-0.0019749065,
0.06621501,
-0.03666875,
0.015482361,
-0.012388906,
0.026015196,
0.04412322,
0.0068546417,
0.02269539,
-0.04361016,
-0.033620566,
0.04361016,
0.032111563,
0.02246904,
0.0055983975,
0.06367989,
0.0062472685,
0.04267458,
0.012388906,
0.034857947,
0.050249767,
0.04569258,
0.034495786,
-0.014267614,
-0.0017013998,
0.022801021,
0.002152214,
-0.016372671,
0.0021918255,
-0.025547404,
-0.026845146,
0.0038215476,
-0.021201478,
0.036034968,
-0.03491831,
0.062834844,
0.024264753,
0.020326257,
-0.047201585,
-0.033258405,
-0.0027822226,
0.05725154,
-0.046386722,
-0.0062548136,
0.029033199,
0.031417422,
-0.0039158603,
0.012026747,
0.02968207,
0.06856906,
0.008805027,
-0.0047005415,
-0.0017212054,
0.009408628,
-0.019617027,
-0.008805027,
-0.056195237,
0.014916485,
-0.03739307,
0.032232285,
0.009966958,
-0.05879072,
0.011257155,
-0.02227287,
-0.0013382962,
0.016674472,
0.0019286933,
0.039022792,
0.00757519,
0.016644293,
-0.016644293,
0.048016444,
-0.041648455,
0.031387243,
-0.024370383,
0.0042025708,
0.016433032,
-0.038992614,
0.028263608,
0.024430742,
-0.016251951,
-0.026754607,
-0.037815593,
-0.00069178315,
0.0029387814,
0.02138256,
0.025260694,
0.012562442,
-0.026558436,
0.0060020555,
-0.007922261,
-0.035340827,
0.048559684,
0.005473905,
-0.03621605,
0.008110886,
-0.00038526708,
0.020703508,
-0.07104382,
0.05755334,
0.04530024,
-0.024476014,
-0.048257887,
-0.017006453,
-0.0060699605,
0.04499844,
-0.008503227,
-0.018651266,
-0.02870122,
0.039626393,
-0.030285671,
-0.053992093,
0.05867,
-0.031689044,
-0.018651266,
-0.024898535,
0.0016599023,
0.035401188,
-0.02296701,
0.06983662,
-0.011513686,
0.0021276928,
-0.02269539,
0.013988449,
0.012637892,
-0.017021542,
0.02885212,
-0.005190967,
0.033439487,
0.004315746,
0.01084218,
-0.012901967,
-0.031326883,
-0.031809762,
0.0029519852,
0.05269435,
-0.01076673,
0.019752838,
0.033107504,
0.049827248,
-0.013113228,
0.05710064,
0.021427829,
0.032021023,
0.028067438,
0.016946092,
0.024973985,
-0.02953117,
-0.05018941,
-0.02200125,
-0.015904881,
0.0051117446,
0.062653765,
-0.030859092,
0.0085635865,
-0.021473099,
-0.052633993,
0.0008582449,
0.009838694,
-0.00061586144,
0.025019255,
0.05221147,
0.049525447,
-0.053720474,
-0.057070456,
0.019345406,
0.027991988,
0.018243834,
0.009702883,
0.012147467,
0.0005488995,
-0.026694246,
-0.033831827,
-0.028203249,
0.0066207466,
-0.016704652,
-0.03027058,
-0.010072589,
-0.015663441,
-0.028323969,
-0.0220767,
0.00019652394,
0.050098866,
-0.00019994278,
0.020401707,
0.023736602,
-0.0068508694,
0.025094705,
0.0057115727,
-0.0120720165,
-0.02987824,
0.042644396,
-0.0077034556,
0.00028105165,
-0.049827248,
-0.012298367,
0.030587472,
-0.012547352,
-0.0034820223,
0.001441097,
-0.03721199,
0.022755751,
-0.008729577,
0.03582371,
-0.028067438,
-0.030512022,
-0.025426684,
0.019571757,
0.048589867,
-0.055863257,
-0.0043647885,
-0.016991364,
-0.021352379,
0.05839838,
-0.042252056,
-0.039384954,
0.00008824125,
-0.0067867367,
-0.055712357,
0.03796649,
0.03681965,
-0.017413884,
0.023133002,
-0.030708192,
-0.0208695,
0.0012901968,
-0.032835886,
-0.022363411,
0.0038856803,
0.03691019,
0.013316943,
-0.024536373,
-0.021005308,
-0.01492403,
0.019888647,
-0.02206161,
-0.003570676,
-0.020673329,
-0.001733466,
-0.009197367,
0.009966958,
-0.012554897,
0.040471435,
0.03497867,
-0.022906652,
0.006360444,
0.038147572,
-0.020130087,
-0.02886721,
0.02935009,
0.009650068,
-0.019209595,
0.041075036,
0.00022658608,
0.014124259,
0.009800969,
0.017217712,
-0.04451556,
0.005658758,
-0.020431887,
-0.0014476988,
-0.011777761,
-0.0023144318,
-0.0015278646,
-0.07460506,
0.055501096,
-0.034797587,
-0.019873558,
0.030768551,
-0.08154647,
-0.055561457,
-0.0042667035,
-0.00536073,
0.047925904,
-0.012713342,
-0.017308254,
0.01499948,
-0.01483349,
0.0048891664,
-0.012728432,
-0.04530024,
-0.01472786,
0.047624104,
0.030089501,
0.062291604,
-0.033047143,
-0.013482933,
0.03591425,
-0.019933917,
0.008684306,
0.007809086,
0.008427776,
0.045119163,
-0.002621891,
-0.002965189,
-0.012305912,
-0.0031575868,
-0.02185035,
0.031960662,
-0.027373297,
0.022363411,
-0.0016627316,
-0.05999792,
0.045360602,
0.00781663,
-0.06530961,
-0.025879385,
-0.01105344,
-0.0044591012,
0.013294308,
0.025230514,
-0.05794568,
-0.06633573,
-0.00739411,
0.02203143,
0.008254241,
0.011770216,
-0.047352485,
-0.024098763,
-0.026664067,
0.03857009,
0.030934542,
-0.018651266,
-0.011468415,
-0.017157353,
0.009959414,
-0.024868354,
-0.017036634,
-0.02909356,
0.027675098,
-0.016010512,
0.016417943,
-0.010231034,
-0.034797587,
-0.009069102,
0.023661152,
0.017489335,
0.024823084,
-0.007416745,
-0.03150796,
0.024068583,
0.030315852,
-0.039837655,
0.015980331,
-0.042704757,
0.062351964,
-0.006922547,
0.07219066,
-0.039988555,
-0.04578312,
-0.012856698,
0.00020501208,
0.07194922,
-0.0421917,
0.003472591,
0.023932772,
0.018002395,
0.005877563,
0.026332086,
-0.026860237,
0.020265898,
-0.008035436,
-0.04424394,
0.0051192893,
0.012871788,
0.02144292,
0.0001279115,
-0.032322824,
0.04466646,
-0.03570299,
0.00080260047,
0.056195237,
0.0015995422,
-0.026860237,
-0.03165886,
0.030647831,
-0.0007417688,
0.0032217193,
0.009129463,
-0.027644917,
-0.032171924,
0.010291394,
-0.023751693,
-0.055440735,
-0.019722657,
-0.0067263767,
0.0041950257,
-0.025879385,
-0.00018379174,
0.023495162,
-0.030406391,
-0.019828286,
0.048016444,
0.013694193,
-0.0089182025,
0.012230461,
0.01085727,
-0.003046298,
0.0037951402,
0.00073280913,
0.0016627316,
-0.018409826,
0.050702468,
-0.017444063,
-0.031417422,
0.026890416,
-0.004576049,
-0.046115104,
-0.009642523,
0.013022687,
0.016463213,
-0.02886721,
-0.023193361,
-0.019073786,
0.02191071,
-0.011830576,
-0.0035046572,
0.020643149,
0.035099387,
-0.02227287,
-0.012675617,
0.020688418,
0.009106827,
-0.012954783,
0.05148715,
-0.01463732,
-0.041769177,
-0.0059190607,
0.018998336,
-0.05909252,
-0.011875846,
0.08933292,
-0.016312312,
0.031115623,
0.026075555,
-0.014659955,
0.055259656,
-0.01472786,
0.032835886,
0.026075555,
-0.019828286,
-0.04439484,
-0.0105931945,
0.033047143,
0.005356957,
-0.011392966,
-0.009167188,
0.010004683,
0.00561726,
0.040863775,
0.0139054535,
-0.06706005,
0.023419712,
-0.04548132,
-0.018258926,
0.02941045,
-0.017187534,
-0.023374442,
0.035431366,
-0.017021542,
-0.03745343,
-0.03663857,
0.04569258,
-0.013316943,
0.016734833,
-0.060933504,
-0.020884588,
-0.026920596,
-0.018409826,
-0.06995734,
-0.035159748,
-0.009318087,
0.011332605,
-0.002710545,
-0.025109794,
0.019767927,
0.07973567,
-0.03165886,
0.02968207,
-0.007982621,
0.016508482,
-0.019209595,
0.01088745,
-0.007990166,
0.041648455,
0.017534604,
-0.0028727627,
0.012811427,
0.005311687,
0.0045911386,
-0.018696535,
-0.03165886,
0.033952545,
-0.024174213,
-0.04499844,
0.002374792,
0.010925175,
-0.044032678,
-0.01492403,
-0.025124883,
-0.04243314,
0.02194089,
0.027856179,
-0.0065452964,
0.05290561,
0.0007045153,
0.053660113,
-0.020145178,
0.04267458,
0.03733271,
0.048257887,
0.049012385,
0.020190448,
0.013686649,
0.0023634746,
0.020914769,
-0.018032575,
-0.017610054,
0.05193985,
-0.024219483,
-0.02168436,
-0.028188158,
-0.0088201165,
0.011340151,
0.06036008,
0.009733063,
-0.010027318,
-0.025864296,
-0.01442606,
0.008759757,
0.007643095,
-0.090238325,
-0.04273494,
0.025456864,
-0.072069936,
-0.0016768785,
-0.030361122,
-0.008193881,
0.021126028,
0.026754607,
0.01144578,
0.044032678,
0.020763868,
-0.033922367,
0.047593925,
-0.03706109,
-0.058066398,
-0.029153919,
0.0065113436,
-0.0421917,
-0.041195758,
-0.0036291499,
0.07919243,
-0.00024898534,
-0.02188053,
-0.04367052,
-0.018621085,
0.009257727,
0.08221043,
-0.041497555,
-0.0440025,
-0.05951504,
0.019330317,
-0.03718181,
-0.00020760567,
-0.01106853,
-0.014320429,
0.040380895,
0.026814966,
0.0137470085,
0.033922367,
0.008676762,
-0.018183475,
0.02185035,
0.032111563,
0.038660634,
0.028339058,
0.034586325,
0.03694037,
0.033952545,
0.017428974,
0.041708816,
-0.009295452,
0.0033745058,
-0.0025445546,
-0.01563326,
-0.032322824,
0.006832007,
0.032503903,
0.013988449,
0.0019107738,
-0.020130087,
-0.02153346,
-0.0009652898,
0.03591425,
0.028761579,
-0.008201426,
0.0027897675,
0.024476014,
-0.02129202,
0.033711106,
-0.054927673,
-0.026694246,
-0.0034989985,
0.013279218,
0.054806955,
0.013203768,
0.0016014284,
0.00016976273,
0.019315226,
0.030723281,
0.0043572434,
-0.007507285,
-0.02308773,
0.034405246,
-0.033922367,
0.020778958,
-0.005764388,
0.011257155,
0.02239359,
-0.028399419,
0.01078182,
0.026301906,
-0.006386851,
0.023827143,
-0.03491831,
-0.02197107,
0.006258586,
-0.02227287,
-0.0025954836,
-0.06428349,
-0.00073516695,
0.01563326,
-0.015874702,
0.017821314,
0.023570612,
-0.0015174901,
0.016915914,
-0.0081486115,
0.02912374,
-0.00528528,
0.04451556,
0.056165054,
-0.028173069,
0.040139455,
0.001665561,
-0.048650227,
0.0112043405,
-0.016433032,
0.008397596,
-0.02221251,
-0.018621085,
-0.010276304,
0.041014675,
0.024219483,
-0.027116766,
-0.04487772,
0.011589136,
0.019571757,
-0.032684986,
0.0027577013,
0.06977625,
0.014441149,
-0.032805704,
-0.042161517,
0.023857322,
-0.041829538,
-0.02185035,
-0.027146947,
0.03663857,
-0.029153919,
-0.056617755,
-0.016176501,
-0.019798107,
0.011589136,
-0.005832293,
-0.013807368,
-0.003061388,
-0.014003539,
0.04964617,
0.020507338,
0.02136747,
-0.027644917,
-0.019949008,
0.03007441,
0.020628057,
0.0097858785,
0.05269435,
0.08202935,
0.018077845,
0.017293163,
0.032986786,
-0.012932148,
-0.0071790772,
-0.0007813801,
0.0030274354,
0.021669269,
-0.03700073,
-0.03688001,
-0.052030392,
0.041527737,
-0.028293788,
-0.02921428,
-0.032745343,
-0.027735457,
-0.03645749,
0.008571132,
-0.04572276,
0.0071187173,
-0.0055682175,
-0.03512957,
0.01088745,
-0.06464565,
0.27137893,
0.03576335,
0.004345926,
0.015482361,
0.029621711,
0.06627537,
-0.015263556,
0.009227548,
0.007861901,
-0.03018004,
0.011536321,
-0.009046467,
-0.00060218613,
0.030089501,
-0.012871788,
0.0060020555,
-0.07345822,
-0.038902074,
-0.014267614,
-0.021548549,
-0.026920596,
-0.020386618,
0.016176501,
0.027146947,
0.032594446,
-0.017896764,
0.010517744,
-0.041437197,
0.035793528,
-0.019420857,
-0.017972214,
-0.017202623,
0.017428974,
-0.0067112865,
-0.012396452,
0.01575398,
0.0042327507,
-0.019330317,
-0.024128944,
-0.03497867,
0.013641379,
-0.007356385,
0.012585077,
-0.013233948,
-0.024234572,
0.030602561,
-0.003495226,
0.012004111,
0.020507338,
-0.033801645,
0.06386097,
-0.030512022,
-0.017459154,
-0.022831202,
-0.038841713,
0.016236862,
-0.046748884,
-0.014501509,
0.023766782,
0.011211885,
-0.041195758,
0.023344262,
-0.072552815,
0.006835779,
-0.025260694,
-0.0034405247,
-0.0143581545,
0.016055781,
-0.027720368,
-0.02941045,
0.008903112,
0.012992508,
-0.023298992,
-0.05278489,
0.03648767,
0.0068508694,
-0.0074544703,
0.032232285,
0.014901395,
-0.056436677,
0.0044251485,
-0.020507338,
0.027237486,
-0.062231246,
0.04988761,
0.04315746,
-0.06404205,
0.0077411807,
0.011694766,
0.008608856,
0.019798107,
0.033831827,
0.0084051415,
-0.0036725337,
-0.01057056
] |
required_packages: A list of strings of the required packages to use the quantized weights. You might need to define some new utility methods such as is_auto_awq_available in transformers/src/utils/import_utils.py.
requires_parameters_quantization: Only required if your quantization method requires extra attention to the underlying nn.Parameter object. For example, bitsandbytes uses Params4bit and Int8Param, which requires some extra attention when quantizing the model. Most of the recent quantization method packs int2/int4 weights inside torch.uint8 weights, so this flag should not be really required (set to False by default).
is_serializable: A property method to determine whether the method is serializable or not. |
[
0.017950019,
-0.018586334,
-0.016840165,
-0.0049721403,
-0.014228313,
0.0019736881,
0.008960212,
-0.005171914,
-0.0043099285,
0.04667301,
0.031756587,
-0.019962553,
0.019015478,
-0.05667648,
-0.012526538,
0.08310578,
-0.015715515,
-0.055729408,
-0.06966916,
0.020850435,
-0.014302303,
0.0035200831,
-0.069314,
-0.035840847,
-0.019947754,
-0.013051868,
-0.016751379,
-0.02662167,
0.102047265,
0.041138545,
-0.028249454,
-0.008190714,
0.04033945,
-0.020776445,
-0.010824764,
-0.06629521,
-0.031223858,
-0.025541412,
-0.022330238,
-0.017772444,
0.00414715,
-0.00043122406,
0.03326599,
-0.02548222,
-0.06055357,
-0.010395621,
-0.008161117,
-0.033058815,
0.01756527,
-0.052444246,
-0.043358248,
0.012089997,
-0.005330993,
0.019045074,
-0.017180521,
-0.019666592,
-0.012800302,
0.00082129106,
-0.04102016,
0.028486222,
0.040191468,
0.038563684,
0.019104267,
-0.041316118,
0.016011477,
0.04063541,
0.0015399208,
0.018763911,
-0.0067849,
-0.014842431,
0.000034856315,
0.038474895,
-0.039421972,
-0.026059344,
-0.008812231,
0.020480484,
-0.0006164307,
-0.017890828,
0.017950019,
0.015167988,
0.034568217,
0.0044357115,
0.00761359,
0.018615931,
-0.029995622,
-0.013310835,
0.024268782,
-0.008042733,
-0.021812307,
0.0017350699,
-0.002820876,
0.06676874,
-0.02156074,
0.01311846,
0.022197057,
0.02051008,
-0.016573802,
0.049869385,
0.023765648,
-0.0271396,
0.028856173,
0.07872556,
-0.02088003,
0.005993205,
-0.020332504,
-0.013162854,
0.0109283505,
0.01725451,
-0.04643624,
-0.004831559,
0.034716196,
-0.0091895815,
-0.015330766,
-0.00610789,
0.008782635,
0.013540204,
0.0051016235,
0.025985353,
-0.03430185,
-0.012600529,
0.015523141,
0.0037734995,
-0.016603397,
-0.03220053,
0.021649528,
-0.027909098,
-0.0271396,
0.039155606,
0.009788902,
-0.005157116,
0.029033748,
0.024165194,
0.009174783,
0.035752058,
0.003928879,
-0.0034312948,
0.0042803325,
0.009618724,
-0.012837297,
-0.009566931,
0.015301171,
-0.0023806342,
0.010684183,
0.07191846,
-0.0025101171,
0.024253983,
0.002458324,
-0.05238505,
-0.05407203,
-0.011357494,
-0.052296262,
-0.008412684,
0.003914081,
0.026207324,
0.015375161,
-0.018763911,
-0.020687656,
0.041049756,
0.014531673,
-0.0035866743,
0.008161117,
-0.0022067572,
-0.032141335,
0.067597434,
-0.0014113628,
0.027879503,
-0.039007626,
-0.01968139,
0.02352888,
-0.03264447,
-0.012341563,
-0.032851644,
-0.021605134,
0.012400756,
0.050875653,
0.037882976,
0.04048743,
0.0069106836,
0.016573802,
0.0015574935,
-0.010469612,
-0.01846795,
0.03353235,
0.046584222,
0.0036236693,
-0.020391695,
-0.0036514157,
0.00094383734,
0.017816836,
0.049484637,
0.034035485,
0.027524348,
-0.037113477,
0.03362114,
-0.046584222,
-0.0055381656,
-0.0042248396,
-0.0019089468,
-0.025423028,
-0.017106531,
-0.023099735,
0.024017215,
-0.064341865,
0.0013345979,
-0.03181578,
0.04433492,
0.0022030578,
0.02833824,
-0.006588826,
0.041375313,
0.041730464,
0.018571537,
-0.028219856,
0.0051164213,
-0.004546697,
0.008198112,
0.016573802,
0.020332504,
-0.0016860514,
0.012385957,
0.032762855,
0.0021975085,
0.035840847,
-0.009463345,
0.019607399,
-0.0038289921,
0.0050535295,
0.03868207,
0.049780596,
0.0022345036,
0.03965874,
0.027036015,
0.024549944,
0.04267754,
0.048892714,
0.0013299736,
0.05007656,
0.03370993,
-0.0010876558,
-0.012844697,
0.03157901,
0.0077763684,
0.012112194,
0.006492639,
-0.0124747455,
0.007206644,
-0.024342772,
-0.014524274,
-0.02984764,
0.0016268592,
0.012297169,
0.036314383,
0.012496943,
-0.006500038,
-0.038178936,
0.014339298,
-0.017032541,
0.045400377,
-0.03800136,
-0.034124274,
0.0056676483,
0.006292865,
-0.029832844,
0.0015741412,
0.03684711,
0.06274368,
0.013702982,
0.012452548,
-0.030483957,
-0.040428236,
-0.011816232,
-0.028560212,
-0.07410857,
0.016603397,
-0.055906985,
0.01251914,
0.014783239,
-0.030202795,
0.020672858,
0.012082597,
0.01756527,
0.01726931,
0.0061929785,
0.039540354,
0.06446025,
0.018334769,
-0.026222123,
0.031697396,
-0.057475578,
0.010114458,
-0.040457834,
0.00021827105,
0.013702982,
-0.018734315,
-0.02978845,
0.0034960364,
-0.00051839376,
-0.030868705,
-0.028086675,
0.012674519,
-0.02811627,
0.0043987166,
0.00866425,
0.034361042,
-0.033917103,
0.036048017,
-0.018024009,
-0.04176006,
0.048537564,
0.013902756,
-0.02947769,
0.0565581,
-0.005963609,
0.034893773,
-0.03450902,
0.041256927,
0.058393054,
0.010462212,
-0.0038622876,
-0.043683805,
-0.022345036,
0.042204004,
0.015404757,
-0.02209347,
0.000014256117,
0.018734315,
-0.039629143,
-0.026207324,
0.012644922,
-0.042499963,
0.012252775,
-0.03557448,
-0.01160906,
0.03234851,
0.0007889204,
0.015715515,
-0.019888561,
0.035485692,
-0.06446025,
0.013074066,
-0.00051700644,
-0.019237448,
0.059280936,
0.029522084,
0.006152284,
0.015375161,
0.04643624,
-0.036817517,
-0.0077393735,
-0.01078037,
0.002019932,
0.012792903,
0.014583466,
0.009944281,
0.006093092,
0.029152133,
-0.001779464,
0.037054285,
0.035012156,
-0.009492941,
0.035012156,
0.026917629,
-0.0033684033,
-0.011638656,
-0.03877086,
-0.014435485,
-0.039421972,
0.0143245,
0.03211174,
-0.03687671,
0.0018146093,
0.0104844095,
-0.03951076,
-0.00482786,
0.016780974,
0.009263571,
0.014405889,
0.047324125,
0.051467575,
-0.038918838,
-0.03356195,
0.008649453,
0.0022899962,
0.033976294,
-0.011128124,
0.00520151,
-0.015301171,
0.0092857685,
-0.011202115,
0.0061004907,
0.026858438,
-0.006537033,
0.004321027,
-0.0165886,
-0.028974557,
-0.057919517,
-0.015345565,
0.05857063,
0.035189733,
0.0048648547,
0.021782711,
-0.003451642,
-0.020702453,
0.05623254,
0.0122231785,
-0.02073205,
-0.046110682,
0.03228932,
0.028471423,
0.011690449,
-0.009012004,
-0.028915364,
-0.0016518309,
0.008346093,
-0.032614876,
0.030661533,
-0.023469687,
0.040398642,
0.0063076634,
0.039333183,
-0.028234655,
-0.009751907,
-0.055019103,
-0.008523669,
0.049928576,
-0.04395017,
0.008656852,
-0.043979768,
0.027257985,
0.047383316,
-0.016070668,
-0.031549416,
-0.034065083,
0.012652322,
-0.025896566,
0.08926176,
0.043180674,
-0.036610343,
-0.0026026047,
-0.043358248,
-0.0144650815,
-0.016159456,
-0.0324077,
-0.008042733,
0.020820837,
0.009966478,
0.0051164213,
0.0048500565,
-0.0038955833,
0.00067284825,
0.020169726,
-0.057712346,
0.021102002,
-0.050165348,
0.024461156,
-0.007635787,
0.02518626,
-0.024475954,
0.02089483,
0.01990336,
-0.022256248,
-0.034005888,
0.022522613,
-0.050017364,
-0.035041753,
0.015012609,
0.019459419,
-0.010151453,
0.039629143,
0.008220309,
-0.025852172,
0.0069402796,
0.03131265,
-0.031756587,
0.020228917,
-0.027124802,
-0.016529407,
0.019725783,
-0.0028689695,
0.005671348,
-0.061027106,
0.040161874,
-0.010787769,
-0.01824598,
0.03513054,
-0.083875276,
-0.019489015,
-0.00063909026,
0.0017776142,
0.052888185,
0.022374632,
-0.026888033,
-0.00807233,
-0.025423028,
0.014583466,
-0.044275727,
-0.051674746,
-0.026340507,
0.05851144,
0.040013894,
0.04389098,
-0.042470366,
0.004531899,
0.006514836,
-0.021457154,
0.015508343,
0.0017655909,
-0.0406946,
0.018275576,
0.0023806342,
-0.018601133,
-0.016041072,
-0.02540823,
-0.0058711213,
-0.0014307852,
-0.028708192,
0.018675122,
-0.0058378256,
-0.026103737,
0.03595923,
-0.0074471124,
-0.0671239,
-0.04107935,
0.01115772,
-0.03634398,
0.04350623,
0.013125859,
-0.0670647,
-0.06303964,
-0.032170933,
0.028767385,
-0.016499812,
0.0043839184,
-0.044690073,
-0.0324077,
-0.048300795,
0.0226114,
0.02194549,
-0.06357237,
-0.01334783,
-0.022744583,
0.0074989055,
-0.02969966,
-0.0058970177,
-0.018186787,
0.017950019,
-0.015360363,
0.044394113,
0.011379691,
-0.024771914,
0.0054641753,
0.0057194415,
0.039155606,
0.052000303,
-0.05324334,
-0.025467422,
-0.0024472254,
0.0044653076,
-0.013695584,
0.026325708,
-0.020110533,
0.055078294,
0.022226652,
0.08813711,
-0.020199321,
-0.008531068,
-0.0045725936,
-0.018586334,
0.043091886,
-0.048448775,
-0.006200378,
0.0134588145,
0.02201948,
0.018112797,
0.02194549,
-0.02058407,
0.043713402,
-0.0384453,
-0.064933784,
0.022063874,
-0.017506078,
0.03083911,
-0.010018271,
-0.006614723,
0.042470366,
-0.04409815,
0.0038363913,
0.061263874,
-0.0015824651,
-0.018231181,
-0.050786864,
0.021531144,
-0.011475878,
-0.027509551,
0.023247717,
0.029018952,
-0.00813892,
-0.0031871272,
-0.012933484,
-0.069550775,
-0.034065083,
0.008827029,
0.01544915,
0.0010349377,
-0.003000302,
-0.0021087204,
-0.043417443,
-0.04063541,
0.02360287,
0.04063541,
0.010188448,
-0.012045602,
0.01123171,
-0.016603397,
0.025467422,
-0.006740506,
-0.0016259344,
-0.012489543,
0.0542792,
0.010846961,
-0.013177652,
0.023499284,
0.018231181,
-0.016440619,
-0.03439064,
-0.019696187,
0.02307014,
-0.07144492,
-0.020776445,
-0.040457834,
0.03131265,
-0.014990412,
0.041819252,
0.024875501,
0.015819103,
-0.02102801,
0.0069328803,
-0.007199245,
-0.018527143,
0.010698981,
0.020228917,
-0.026370103,
-0.023854436,
-0.014235712,
-0.014694451,
-0.055729408,
-0.053953644,
0.07262877,
-0.005556663,
0.05217788,
0.016485013,
0.0007181672,
0.041819252,
-0.0020032844,
0.016899358,
0.005530766,
-0.02382484,
-0.03965874,
-0.010528804,
0.01522718,
0.006770102,
0.020658059,
-0.035900038,
0.010151453,
0.004065761,
0.041493695,
-0.00075285014,
-0.07493726,
0.036610343,
-0.07191846,
-0.0053716875,
-0.0054900716,
0.004265534,
-0.027183995,
0.034124274,
-0.008612458,
-0.01891189,
0.000120349665,
0.008804833,
-0.017091732,
-0.031697396,
-0.03323639,
-0.008612458,
-0.020080937,
-0.028708192,
-0.045962702,
-0.04516361,
0.008560665,
-0.005001737,
-0.010040469,
-0.010321631,
0.0013003775,
0.021279577,
-0.005963609,
-0.009862891,
-0.010373424,
0.01568592,
-0.020850435,
-0.01772805,
-0.064341865,
0.019696187,
0.028471423,
0.0031371838,
0.013739978,
0.011172518,
0.0045208004,
0.007909551,
-0.018956285,
0.005060929,
-0.037379842,
-0.047708873,
0.007169649,
0.03083911,
-0.04424613,
0.020613667,
-0.0075285016,
-0.014502076,
0.0063964515,
0.03338437,
-0.00053550396,
0.089084186,
-0.007251038,
0.04667301,
0.013288638,
0.053776067,
0.053716876,
0.017876029,
0.05519668,
-0.009307966,
-0.013710381,
-0.00042081918,
-0.008767837,
0.006581427,
-0.0032074745,
0.03572246,
-0.014775841,
-0.016470216,
-0.0006640619,
-0.0011940167,
0.024890298,
0.067597434,
0.016721781,
-0.054841526,
-0.0039547756,
-0.006670215,
0.0064593432,
-0.009056399,
-0.039096415,
-0.034272254,
0.022700189,
-0.08576942,
0.0056639486,
-0.018127596,
-0.035337713,
0.021501549,
0.014590865,
0.020717252,
-0.009470744,
0.018808305,
-0.00018173839,
0.019089468,
-0.053894453,
-0.056143753,
0.00041920066,
0.010587996,
-0.01914866,
-0.0138657605,
0.020125331,
0.033887506,
0.0145612685,
-0.048715137,
-0.028471423,
-0.01416912,
0.009359758,
0.09589128,
-0.021190789,
-0.027420763,
-0.03234851,
0.017047338,
-0.0077541717,
-0.034213062,
-0.0076875803,
0.008997207,
0.0015315969,
0.0019533408,
0.042559154,
0.04190804,
0.036669537,
-0.023484485,
-0.010647188,
0.02089483,
0.029211326,
0.013673387,
0.036255192,
0.0065185353,
0.038948435,
0.03672873,
0.02669566,
-0.0316678,
-0.010787769,
0.034094676,
-0.01824598,
-0.0128151,
-0.011942016,
-0.0044616084,
0.012245376,
0.0042840317,
-0.0018959985,
-0.045577955,
0.00050960743,
0.021175992,
0.035988826,
-0.0057564364,
0.014413288,
0.000048064718,
-0.044127747,
-0.000731578,
-0.046525028,
-0.07381261,
-0.025911363,
0.025955757,
0.08902499,
-0.0033258589,
-0.008020536,
0.010972745,
0.020450888,
0.0414641,
-0.016573802,
0.022211853,
0.015863497,
0.031697396,
-0.025541412,
0.022049075,
0.0018747264,
-0.0067738015,
0.032170933,
-0.024061609,
-0.019281842,
0.034864176,
-0.039777122,
0.015493545,
-0.0377054,
-0.03415387,
-0.014738845,
-0.053065762,
-0.0015491695,
-0.041523293,
-0.005678747,
0.013029672,
-0.012274972,
-0.038918838,
0.03023239,
0.020554474,
0.013739978,
0.014820234,
0.042351983,
-0.00078984525,
0.055729408,
0.026414497,
-0.03868207,
0.026266515,
0.0073102303,
-0.026370103,
0.0046687806,
0.011490676,
-0.03761661,
-0.03663994,
-0.013407022,
-0.03853409,
0.039244395,
-0.0049129482,
-0.027953492,
-0.06623601,
0.027627936,
0.004657682,
-0.017180521,
-0.023765648,
0.075055644,
0.029092941,
-0.00866425,
-0.0057120426,
0.029610872,
-0.046377048,
-0.027775915,
-0.057771537,
0.031194262,
-0.046377048,
-0.0046687806,
-0.03045436,
-0.03678792,
0.015271574,
-0.0010118159,
0.0024990186,
0.023321707,
0.0001924901,
0.051704343,
0.029018952,
0.043003097,
-0.022063874,
-0.0077171763,
0.056025367,
0.06564409,
0.009944281,
0.054841526,
0.075884335,
-0.0128151,
-0.01176444,
0.029344508,
0.0084940735,
0.0004196631,
-0.010824764,
-0.027331974,
-0.0048426576,
-0.0017406191,
-0.054101624,
-0.009152586,
0.02314413,
-0.028323444,
-0.026651265,
-0.06665036,
-0.016085466,
-0.04915908,
-0.0010950548,
-0.04380219,
0.031342242,
-0.02511227,
-0.015108796,
0.013481012,
-0.047620084,
0.26115575,
0.029196527,
-0.003129785,
0.038474895,
0.05359849,
0.058836997,
0.012881692,
-0.031608608,
0.016189054,
-0.049869385,
0.0071363533,
-0.045785125,
0.0016203851,
0.04205602,
-0.028530616,
0.04161208,
-0.06570329,
0.0063335598,
-0.023292111,
-0.022862967,
-0.050490905,
-0.003965874,
-0.007284334,
0.035988826,
0.013984146,
0.030054813,
-0.014509476,
-0.05315455,
-0.00814632,
-0.037882976,
0.010129256,
-0.0041693468,
0.03151982,
-0.016485013,
-0.024757117,
0.021827105,
0.0010016422,
-0.02321812,
-0.02088003,
-0.036284786,
0.010795169,
-0.02398762,
0.014894225,
-0.032674067,
-0.028441828,
0.033887506,
-0.028515818,
0.048004832,
0.025822574,
-0.03370993,
0.08257305,
-0.032378107,
0.006618422,
-0.03474579,
-0.027568743,
0.029092941,
-0.044157345,
-0.020302907,
-0.016322235,
0.021205587,
-0.013059268,
0.002985504,
-0.04501563,
0.010565799,
-0.011956814,
-0.006115289,
-0.0278943,
0.04516361,
-0.026074141,
0.019015478,
0.03279245,
-0.002600755,
0.0009923934,
-0.039273992,
0.029684862,
0.03551529,
0.0013604945,
0.027198792,
-0.006666516,
-0.053420916,
0.008346093,
-0.010824764,
0.04365421,
-0.09115591,
0.057209212,
0.02676965,
-0.030779917,
-0.01416912,
0.001206965,
-0.0010645338,
0.026562477,
0.009914685,
-0.00015399208,
-0.018408759,
-0.01100974
] |
Write the _process_model_before_weight_loading method. In Transformers, the quantized models are initialized first on the "meta" device before loading the weights. This means the _process_model_before_weight_loading method takes care of manipulating the model skeleton to replace some modules (e.g., nn.Linear) with the target modules (quantization modules). You can define a module replacement logic or any other utility method by creating a new file in transformers/src/integrations/ and exposing the relevant methods in that folder's __init__.py file. The best starting point would be to have a look at another quantization methods such as quantizer_awq.py. |
[
0.038508326,
0.032769505,
-0.013446032,
0.008913195,
-0.030302089,
-0.0009105528,
0.009405292,
0.002956048,
0.011540023,
0.05453267,
0.008816161,
-0.01335593,
0.01335593,
-0.047684897,
0.012725214,
0.03016347,
0.005693771,
-0.07563046,
-0.040005412,
-0.017604599,
0.016329305,
0.003373637,
-0.062045816,
-0.024715748,
-0.013023244,
-0.0051566227,
0.018020455,
0.003545178,
0.08566647,
0.09326279,
-0.021638408,
-0.009855803,
-0.020626491,
-0.031161526,
-0.056667402,
-0.02370383,
-0.008871609,
-0.02606035,
-0.05128899,
-0.026074212,
0.026725722,
-0.0195314,
0.06348745,
-0.030496156,
-0.0368449,
-0.015982758,
0.021180967,
-0.031106079,
-0.014527259,
-0.036456767,
-0.018741274,
0.02303846,
0.007769589,
-0.023426592,
0.014049024,
-0.008684473,
0.009363706,
0.009571634,
-0.02994168,
0.013667823,
0.054643568,
0.034349762,
-0.007582453,
-0.05833083,
0.043470882,
0.04530065,
-0.017992731,
0.009155777,
0.00339443,
-0.055503003,
-0.0538673,
-0.00025146332,
-0.030717947,
-0.014832221,
0.015234216,
-0.0056556505,
0.016135238,
-0.019974982,
-0.018616516,
0.014076748,
0.039672725,
0.018159075,
-0.0264069,
-0.010618207,
-0.017507566,
-0.022276055,
0.03773206,
-0.022636464,
0.01716102,
-0.03529237,
0.006632914,
0.05123354,
0.00081525237,
0.008899333,
0.005506635,
0.03523692,
-0.009232018,
0.054421775,
0.04161339,
-0.0258247,
-0.014859945,
0.05943978,
-0.019101683,
0.016495647,
-0.040338095,
0.010334038,
-0.006920548,
-0.00910033,
0.0070626326,
-0.01607979,
-0.013272759,
-0.0056487196,
-0.0116925035,
0.009398361,
-0.024258306,
0.022414675,
0.0043353057,
0.01686992,
-0.04482935,
-0.027612882,
0.016606543,
0.020931453,
0.019697744,
-0.049681008,
0.04286096,
-0.04330454,
-0.0122469785,
0.052508835,
-0.07585225,
0.019808639,
0.0030756067,
-0.0010006551,
-0.0003883495,
0.04491252,
0.014887668,
-0.0025696477,
0.025256362,
0.04410853,
0.00443927,
-0.002266419,
-0.0010344435,
-0.025090018,
0.012080636,
0.10296611,
-0.01922644,
0.0034256193,
0.034765616,
-0.05644561,
-0.031106079,
0.025783114,
-0.02811191,
0.03529237,
0.011505368,
0.027086131,
0.01226084,
-0.014832221,
-0.03243682,
0.0049209706,
-0.013584651,
-0.007104218,
0.045078862,
0.011498437,
-0.046492774,
0.028721834,
-0.006625983,
0.020155186,
-0.018020455,
0.0070868907,
-0.0015152778,
-0.04915426,
0.0054061366,
-0.00873299,
0.00142171,
0.026434623,
0.036789455,
0.068145044,
0.017008537,
0.02861094,
0.034072522,
0.022788946,
-0.025547462,
-0.007097287,
0.0009902586,
0.051760294,
0.028278254,
0.032991294,
0.03897963,
0.010722171,
-0.0007684685,
0.0014269082,
-0.009128054,
0.044496663,
-0.014208436,
0.04754628,
-0.03873012,
0.025991041,
-0.019462092,
0.0060923,
-0.0038847944,
-0.021887923,
-0.011124166,
0.020598767,
-0.012392528,
0.015788691,
-0.008940918,
0.03670628,
-0.016384752,
0.033268534,
-0.054116815,
-0.00055144326,
0.06260029,
0.012233117,
-0.058885302,
-0.03728848,
0.04807303,
0.00572496,
-0.023551349,
-0.0016140437,
-0.011165751,
-0.00953698,
0.010632069,
-0.015968896,
0.032603163,
0.011006339,
-0.02773764,
-0.04366495,
-0.014929255,
0.021375032,
-0.0042452035,
0.0209869,
0.021818614,
0.036124084,
0.005731891,
0.035181474,
0.046520498,
0.025852423,
0.04189063,
0.050845407,
-0.01857493,
0.020141324,
-0.040532164,
0.023301836,
-0.00007369543,
0.027834672,
0.023925621,
-0.008150791,
-0.01724419,
-0.04471845,
-0.0004687051,
0.019032374,
-0.027862396,
0.0334626,
0.023662245,
0.017992731,
-0.042944133,
0.0062863664,
0.029165415,
0.028832728,
-0.03141104,
-0.059994254,
-0.0119004315,
0.043692674,
-0.015788691,
-0.007097287,
0.009932043,
0.061990365,
-0.02457713,
0.017258052,
-0.008324064,
0.0037115207,
-0.022206746,
-0.037177585,
-0.06215671,
-0.01681447,
0.0065878625,
-0.006671034,
0.01820066,
-0.043110475,
-0.010472657,
-0.03714986,
0.0043353057,
0.023884034,
-0.030662498,
0.04469073,
0.027987154,
-0.007478489,
-0.010708309,
0.019434368,
-0.024230583,
0.07391159,
0.01320345,
0.010389485,
0.011914293,
-0.03199324,
0.021971093,
-0.025200915,
0.0003686396,
0.0063937963,
-0.017063985,
-0.012212324,
0.01020235,
0.027654469,
0.016675852,
0.00682698,
-0.006172006,
0.025644494,
-0.013404447,
-0.042029247,
0.025076156,
0.012136084,
-0.054948527,
0.01864424,
-0.014693602,
0.046714567,
-0.011526161,
0.01606593,
0.025145466,
-0.03498741,
-0.011754882,
-0.013459894,
-0.012288565,
-0.020460147,
-0.0058809062,
-0.009938974,
0.008060688,
0.085389234,
0.010666723,
-0.060271494,
0.010756826,
-0.033434875,
-0.0328804,
0.0031466489,
-0.033046745,
0.026517794,
0.006941341,
0.033102192,
-0.027626745,
-0.00785276,
-0.040254924,
0.043526333,
0.03274178,
-0.02202654,
0.053229652,
0.031216973,
-0.006203195,
-0.002664948,
0.07163824,
-0.07113922,
0.0131410705,
-0.010209281,
-0.013037106,
0.017119432,
-0.021804752,
0.03060705,
0.0012553673,
0.014069817,
-0.042777788,
0.034155693,
0.014721326,
0.020127462,
0.020945314,
0.049098812,
0.0039229146,
0.018519484,
0.018172937,
-0.0077903816,
-0.04155794,
-0.0023028064,
0.05505942,
-0.057776354,
0.040476717,
-0.0071804584,
-0.062544845,
-0.010327107,
-0.014374779,
-0.017812528,
0.036678556,
-0.0071250107,
0.0334626,
-0.035430986,
-0.015372835,
-0.024535544,
0.036678556,
0.03698352,
0.022428537,
0.035209198,
-0.030052574,
-0.031716,
-0.008573579,
0.015636211,
0.011359818,
0.004719973,
-0.034349762,
-0.021707717,
-0.034460656,
-0.03074567,
0.029165415,
0.027016822,
0.015899587,
0.014901531,
0.03956183,
-0.022913702,
0.009197364,
0.026171247,
0.008109205,
-0.021180967,
-0.02025222,
0.054033644,
-0.008213169,
0.0069066864,
0.012344012,
0.0028746093,
-0.00064111233,
-0.01474905,
-0.012732145,
0.010541966,
-0.012898488,
0.016190685,
-0.0031743725,
0.05145533,
-0.026725722,
-0.00887854,
-0.026822755,
0.04006086,
0.024798919,
-0.025741527,
-0.02061263,
-0.032409098,
0.0013549996,
0.04629871,
0.009710253,
-0.032464545,
-0.021250276,
-0.03653994,
-0.0044323388,
0.031133803,
0.036955796,
-0.009266673,
-0.033795286,
-0.036096357,
-0.048100755,
-0.033573493,
0.014610431,
-0.0037808302,
0.012350943,
-0.024965262,
-0.00080139044,
-0.02795943,
0.017812528,
-0.0033372499,
0.022400813,
-0.030135747,
0.025949456,
-0.031272423,
-0.0101746265,
0.008788438,
-0.019170992,
-0.005614065,
0.023759278,
0.00007255832,
-0.0044877864,
-0.002029034,
0.03471017,
-0.01900465,
-0.041419324,
0.022927564,
0.009627081,
-0.020945314,
0.066204384,
0.020002706,
-0.021513652,
0.058940753,
0.02649007,
-0.0034377484,
-0.0040407404,
0.007436903,
0.029054519,
-0.00968253,
0.00068443076,
-0.015372835,
-0.057443667,
0.05029093,
0.01716102,
0.0053091035,
0.004470459,
-0.040448993,
-0.010216212,
-0.014846083,
-0.03368439,
0.04396991,
-0.008677542,
-0.05128899,
0.02260874,
-0.03368439,
-0.012018258,
-0.016537234,
-0.013175725,
0.0045778886,
0.027987154,
0.024452372,
0.014929255,
-0.0152758015,
-0.0035832983,
0.023551349,
-0.063709244,
-0.0014676275,
-0.0334626,
0.0054407916,
-0.009779562,
-0.008739921,
-0.055586174,
-0.028971348,
0.014028232,
-0.012725214,
0.0096894605,
-0.032048687,
-0.009439946,
0.0040095514,
-0.041946076,
0.07191548,
-0.0039159837,
-0.06520633,
-0.027640607,
0.027086131,
-0.026587103,
0.042001523,
0.022844393,
-0.015844138,
0.0054789116,
-0.054643568,
0.024507819,
0.010361762,
0.00359716,
-0.03296357,
-0.06764602,
-0.0093429135,
0.008899333,
0.033767562,
-0.03556961,
-0.020668076,
-0.023800863,
0.032852676,
-0.03814792,
-0.024771195,
-0.049431495,
0.030218918,
0.017438257,
0.0034827995,
0.00046827193,
-0.022012679,
0.0019718537,
0.0035798328,
0.023385007,
0.032686334,
-0.049958248,
-0.050900854,
0.007873553,
0.026171247,
0.000007749933,
-0.0005670379,
-0.021638408,
0.07352346,
-0.016620405,
0.04247283,
-0.0328804,
-0.03523692,
-0.03132787,
-0.038064748,
0.05461584,
-0.06631528,
0.010902376,
0.0044080806,
0.028971348,
0.017188743,
-0.008497338,
-0.030218918,
0.0294981,
-0.041807458,
-0.010223143,
-0.010119179,
-0.024424648,
0.00075677247,
-0.019656159,
-0.012357874,
0.016883781,
-0.03529237,
0.028860454,
0.05755456,
0.018380865,
-0.011858846,
-0.063709244,
0.0038432088,
0.0014494337,
0.0028815402,
-0.0020186375,
-0.0062586428,
-0.036345873,
-0.0076656244,
-0.020876005,
-0.051871188,
-0.02847232,
0.032464545,
0.06376469,
-0.035181474,
0.00054884417,
0.001290022,
-0.027945569,
-0.028943624,
0.016842196,
-0.00711808,
0.026878202,
0.021125518,
0.017701631,
0.014652017,
0.0487384,
-0.060659625,
-0.00096166856,
-0.015566901,
0.047934413,
-0.05128899,
-0.009121123,
0.026517794,
0.03096746,
-0.037094414,
-0.06653707,
-0.026074212,
0.015511454,
-0.032270476,
-0.0051219678,
0.025935594,
-0.039367765,
-0.003368439,
0.0008841286,
0.018602654,
-0.020196771,
-0.010611276,
-0.0050284,
-0.023953345,
-0.051510777,
0.028014878,
0.033850733,
-0.02789012,
-0.0082201,
-0.03595774,
0.0051046405,
-0.019323474,
0.029082242,
0.043276817,
-0.026684135,
0.02773764,
0.040975742,
-0.01746598,
0.0612141,
-0.0013524005,
0.002883273,
0.013737132,
-0.0071596657,
-0.07169369,
-0.030329812,
0.026989097,
0.006244781,
0.03332398,
-0.002574846,
0.042112418,
0.014347055,
0.053922746,
0.018048178,
-0.042888682,
-0.0059779393,
-0.061324995,
-0.0050665205,
0.010791481,
-0.046631396,
-0.02362066,
0.044413492,
0.018561069,
-0.04183518,
-0.012572733,
0.015331249,
-0.01907396,
-0.04807303,
-0.032325923,
0.01681447,
-0.054588117,
-0.019503677,
0.012156877,
0.014097541,
-0.014984702,
0.022802807,
0.005738822,
-0.011844984,
0.002015172,
-0.0009694659,
-0.0037184516,
-0.017008537,
0.0067126197,
0.0015239414,
-0.029997127,
0.012642043,
-0.009114192,
0.056473337,
-0.025187053,
-0.017119432,
0.026892064,
-0.015885724,
0.018852169,
-0.049348325,
-0.034238864,
0.046104643,
-0.009772631,
-0.007346801,
-0.034599274,
0.024299892,
-0.032353647,
0.013778717,
-0.015608487,
-0.023731554,
-0.02751585,
0.056833744,
0.025672218,
0.0065566734,
0.050623618,
0.028222805,
0.01607979,
0.037759785,
0.012101429,
-0.018450174,
0.040670782,
0.009446877,
-0.023745416,
-0.07773747,
0.030579327,
0.0065428116,
-0.037704337,
0.01078455,
-0.026697999,
0.006019525,
-0.052425664,
-0.012156877,
0.029581271,
0.073634356,
0.03581912,
-0.009370637,
-0.038425155,
-0.024937538,
-0.0042382726,
-0.0077002794,
-0.07734934,
-0.046714567,
0.0020082411,
-0.06104776,
-0.00053844776,
-0.011325163,
0.0076448317,
0.021194829,
0.021250276,
0.011643986,
-0.0027741105,
0.036595386,
0.0065358807,
0.009731046,
-0.054116815,
-0.055586174,
0.043027304,
0.0072705606,
-0.036678556,
-0.048516612,
0.049597837,
0.040088583,
-0.0015152778,
-0.015733244,
-0.037399378,
-0.0063002286,
-0.015469868,
0.039728172,
-0.036928073,
0.010375624,
-0.048405714,
0.034765616,
0.02332956,
-0.017840251,
-0.036096357,
0.02267805,
0.027793087,
0.033268534,
-0.002725594,
0.053756405,
0.0645964,
-0.06071507,
0.037122138,
0.022775084,
0.041585665,
0.0009382766,
0.017840251,
0.011325163,
0.041142087,
0.05306331,
0.026004903,
-0.0053229653,
0.043359987,
0.020141324,
-0.017258052,
-0.002947384,
0.0246603,
0.022345364,
-0.036817178,
-0.023606798,
-0.0209869,
0.022636464,
-0.021125518,
0.021693856,
-0.037537996,
0.010895445,
-0.014291608,
-0.019434368,
0.0024968728,
0.0154144205,
0.025256362,
-0.01386882,
-0.047019526,
-0.011325163,
0.03096746,
0.00037578715,
0.025699941,
0.016329305,
0.024410786,
0.053534616,
0.076961204,
0.007492351,
0.01797887,
0.034959685,
0.0005445123,
0.03440521,
-0.009148846,
-0.031965517,
-0.023731554,
0.015317387,
-0.03207641,
0.057277326,
-0.0374271,
-0.0045709577,
-0.043276817,
0.0039437073,
-0.01650951,
-0.046049196,
0.010431072,
-0.045245204,
-0.019046236,
0.041252982,
0.010444934,
-0.021582961,
0.02486823,
-0.018145213,
0.02861094,
0.05189891,
0.022802807,
-0.017965008,
0.10390872,
0.022996875,
0.006106162,
0.027294058,
0.025991041,
-0.024244444,
-0.003545178,
0.04962556,
0.01790956,
-0.022927564,
-0.0052432595,
-0.051122647,
0.001181726,
-0.021402756,
-0.0258247,
-0.01797887,
-0.00095127214,
0.006847773,
-0.03457155,
-0.021513652,
0.06454095,
0.013889613,
-0.0043768915,
-0.025935594,
-0.01849176,
-0.03507058,
0.002081016,
-0.03154966,
0.06664796,
0.018533345,
-0.043942187,
-0.02245626,
-0.018907616,
-0.023163216,
-0.032908123,
-0.014062886,
-0.03362894,
0.005995267,
0.03154966,
0.055364385,
0.0012207126,
-0.0049937456,
-0.05431088,
0.020293806,
0.027931707,
0.029331757,
0.047463108,
0.08034351,
0.034959685,
-0.037621167,
0.020709662,
-0.0154144205,
-0.014956978,
-0.005711098,
-0.032020964,
-0.0011098175,
-0.023468178,
-0.05347917,
-0.029969404,
0.041807458,
0.0077002794,
-0.016800608,
-0.011574677,
-0.0055204974,
-0.026850479,
0.012704421,
-0.01967002,
0.029747613,
0.025436565,
-0.035320092,
-0.0014962177,
0.002626828,
0.22589335,
0.052342493,
0.020044291,
0.025492014,
0.03493196,
0.05694464,
0.013730201,
-0.00733987,
0.042888682,
-0.048045307,
0.0062863664,
-0.023385007,
-0.0039229146,
0.03903508,
-0.04998597,
0.019281887,
-0.032020964,
-0.010645931,
-0.04031037,
-0.044496663,
-0.03362894,
0.0156223485,
0.028971348,
0.0037115207,
-0.00088586134,
-0.0028919366,
-0.006400727,
-0.02847232,
0.039589554,
-0.058663514,
0.026185108,
-0.05156623,
-0.022123575,
-0.037759785,
-0.023218663,
0.034294315,
0.018547207,
-0.029442651,
-0.028999072,
0.012877694,
-0.01591345,
-0.027183164,
-0.032104135,
-0.019392783,
-0.04557789,
0.084446624,
-0.013972784,
0.058441725,
0.03706669,
-0.055724792,
0.029997127,
-0.035042856,
-0.0007433438,
-0.024882091,
-0.056556508,
-0.016925367,
-0.066370726,
-0.04896019,
0.02332956,
0.022331502,
-0.021638408,
0.019018512,
-0.020460147,
0.056251545,
-0.016481785,
0.007915138,
0.010826135,
-0.043415435,
-0.03412797,
-0.01989181,
0.0023495902,
0.020557182,
-0.03340715,
-0.0691431,
-0.015566901,
0.037122138,
-0.010805342,
0.030302089,
-0.00029673107,
-0.007915138,
-0.0049937456,
-0.025575185,
-0.014721326,
-0.018186798,
0.04122526,
0.010216212,
-0.017965008,
-0.0019874484,
0.023163216,
0.041058917,
0.005711098,
0.013515342,
0.009017158,
-0.014735188,
0.004574423
] | If you're interested in basic LLM usage, our high-level Pipeline interface is a great starting point. However, LLMs often require advanced features like quantization and fine control of the token selection step, which is best done through [~generation.GenerationMixin.generate]. Autoregressive generation with LLMs is also resource-intensive and should be executed on a GPU for adequate throughput.
First, you need to load the model. |
[
0.026955815,
0.02897282,
-0.010798174,
-0.0011219584,
-0.021005655,
-0.0002885936,
0.0023069482,
-0.0063859783,
-0.027143108,
0.05212514,
0.039273944,
0.0041924864,
0.003954768,
-0.044316456,
0.020962432,
0.0598762,
0.009919337,
-0.034836538,
-0.046852116,
-0.0056512123,
0.012282113,
-0.018455585,
-0.0884024,
-0.056937136,
-0.023296393,
-0.0031677766,
0.036997613,
-0.028569419,
0.05808971,
0.03884173,
-0.036017925,
-0.026941407,
0.028497383,
-0.020357331,
-0.037458643,
-0.04322151,
-0.007257612,
-0.041262135,
-0.031407632,
-0.043596096,
0.024189638,
-0.008442601,
0.02565917,
-0.02576002,
-0.03273309,
-0.025644762,
-0.020645475,
-0.035441637,
0.011965155,
-0.05935754,
-0.02489559,
0.02820924,
0.0044482136,
-0.003630607,
-0.036738284,
-0.008658709,
-0.0022763328,
-0.01012824,
-0.05137597,
-0.0119003225,
0.039994303,
0.029966913,
0.009386271,
-0.060394857,
0.0076358,
0.059242282,
-0.023137916,
0.0031659757,
-0.00002851888,
0.0026797336,
-0.030053357,
0.003504544,
-0.0063067386,
-0.016611466,
-0.036882356,
0.03247376,
0.009033295,
-0.0035009424,
0.007859111,
-0.00096978265,
0.022446372,
0.019118315,
-0.016741132,
-0.014032584,
-0.033309378,
-0.05212514,
0.053940445,
-0.012771957,
0.011252,
-0.016308917,
-0.0030597227,
0.033338193,
-0.012829585,
0.005917745,
0.005607991,
0.048696235,
-0.017936926,
0.038755286,
0.049358964,
-0.04255878,
-0.021884492,
0.08534808,
-0.010034594,
0.02413201,
0.0049344557,
-0.010171462,
-0.00697307,
0.002897642,
-0.019579343,
-0.029030448,
0.030312685,
0.0061698705,
-0.0030237047,
0.02550069,
0.032877162,
0.026653264,
-0.0100417975,
0.027099887,
-0.02967877,
-0.03653658,
0.0060330024,
-0.021495497,
-0.004077229,
-0.05636085,
-0.0009751853,
-0.053364158,
-0.0108125815,
0.041204505,
-0.046996187,
0.02509729,
0.013456297,
-0.03201273,
-0.020242075,
0.04082992,
0.013917326,
-0.041348577,
0.0037530677,
0.029088076,
0.0065912805,
0.01028672,
0.011107928,
-0.009422289,
-0.016265696,
0.08603962,
0.02622105,
0.0047867824,
0.03319412,
-0.06264237,
-0.057398167,
0.024881182,
-0.04301981,
-0.026754115,
0.0044338065,
0.003263224,
-0.009515936,
-0.018714914,
-0.036968797,
0.035441637,
-0.013614776,
0.02658123,
0.06241186,
0.018052185,
-0.031753402,
0.043250326,
0.006231101,
0.04780299,
-0.055582862,
-0.01623688,
0.0063931816,
-0.054545544,
0.03558571,
-0.009436697,
-0.021855677,
-0.0022295096,
0.04241471,
0.019175943,
0.03498061,
0.023656573,
0.0014452193,
0.020227667,
-0.025687985,
-0.00034172006,
0.013290615,
0.021567533,
0.00047678727,
-0.006094233,
-0.014911421,
-0.011460904,
-0.00355677,
0.02861264,
0.029116891,
0.03564334,
-0.012822381,
0.052009884,
-0.04768773,
-0.0030309083,
-0.04229945,
-0.02061666,
-0.0087091345,
-0.044316456,
0.0036882355,
0.026048163,
-0.048638605,
0.030716086,
-0.04374017,
0.038092557,
0.000988692,
0.048840307,
-0.00576647,
0.0144936135,
0.029044855,
-0.019420866,
-0.042270638,
-0.02403116,
0.019709008,
-0.006476023,
0.00257168,
0.04414357,
0.005291033,
0.0095879715,
0.017317418,
0.036623027,
0.01858525,
0.007959962,
-0.022086192,
-0.025327805,
-0.005816895,
0.03930276,
0.007570968,
0.03126356,
-0.0019845876,
0.038063742,
0.026149014,
0.041089248,
0.021394648,
0.003713448,
0.025529506,
0.029131297,
0.007693429,
0.008003183,
-0.018527621,
0.05091494,
0.031897474,
0.023137916,
-0.008918039,
0.008572266,
0.01573263,
-0.01786489,
-0.028194832,
0.050886124,
-0.017144533,
0.03227206,
0.0023987938,
-0.022331113,
-0.04149265,
0.003614399,
0.028353311,
0.043365583,
-0.026408343,
-0.074052855,
0.025385434,
0.031753402,
0.0084642125,
-0.02326758,
0.024823554,
0.060971145,
-0.011619383,
-0.0045922855,
0.019118315,
-0.04255878,
-0.009768061,
-0.02601935,
-0.071862966,
-0.0017234577,
-0.041262135,
-0.01079097,
0.048436906,
-0.020501403,
0.030024542,
-0.005265821,
0.015012271,
0.016568245,
-0.030255057,
0.07422574,
0.0590694,
0.010049001,
-0.03578741,
0.015228379,
-0.04025363,
0.028036352,
-0.005543159,
-0.036594212,
-0.00091575575,
-0.022230264,
0.018902207,
-0.008831595,
0.012930435,
-0.019377643,
-0.029491477,
0.009998576,
-0.0015649789,
0.016813168,
-0.009559157,
0.018931022,
-0.006857813,
0.0033874859,
0.0033730788,
-0.018297106,
0.039245132,
0.019737823,
-0.035499267,
0.023915902,
0.0002541515,
0.06241186,
-0.043307953,
0.054343846,
0.058262594,
-0.015213972,
-0.022230264,
-0.023541316,
-0.028742304,
-0.009263811,
-0.027935503,
-0.020933619,
-0.019723415,
0.06828999,
0.0070739207,
-0.06627298,
0.0020620262,
-0.022331113,
-0.012527035,
-0.039677348,
-0.03492298,
0.04397068,
-0.001014805,
0.011316832,
-0.036680654,
0.02300825,
-0.030427944,
0.012505423,
0.029995728,
-0.012109227,
0.034865353,
0.017014869,
-0.013218579,
0.02561595,
0.03241613,
-0.049906436,
0.00032438643,
0.006908238,
-0.03791967,
-0.01107191,
0.004203292,
0.016222473,
0.017403862,
0.013953344,
-0.010697324,
0.020688696,
-0.003749466,
-0.000036833957,
0.025587134,
0.01736064,
-0.007513339,
0.031378817,
-0.00839938,
0.0065588644,
0.008846003,
0.0299381,
0.059588056,
-0.008305733,
-0.0044121956,
0.010733342,
-0.050626796,
-0.009134145,
-0.0009090024,
0.0023321607,
0.044114754,
0.0150554925,
0.03751627,
-0.014731332,
-0.023253173,
0.003940361,
0.030312685,
0.021452276,
0.020587847,
0.013182561,
-0.0229074,
-0.011021486,
-0.008701931,
-0.021135319,
0.022042971,
-0.0036180005,
-0.016986053,
-0.015804665,
-0.020948024,
-0.053796373,
0.04048415,
0.025932906,
0.029116891,
0.020890396,
0.055525232,
-0.016841982,
0.00510374,
0.026869372,
0.0005470222,
-0.01094945,
-0.030255057,
0.060394857,
-0.003333459,
-0.016380953,
-0.01633773,
-0.03843833,
-0.011821083,
0.0043869833,
0.0018090003,
0.018542027,
-0.034634836,
0.021149725,
-0.037343387,
0.0297364,
-0.046102945,
0.0067821755,
-0.04123332,
0.032963604,
0.036680654,
-0.057023577,
-0.012692717,
-0.09088043,
0.002796792,
0.047226705,
0.027344808,
-0.046247017,
-0.018441178,
0.016265696,
-0.061547432,
0.07462914,
0.015502115,
-0.015530929,
-0.018974243,
-0.021668384,
0.013506722,
-0.009213385,
-0.003785484,
-0.033655148,
0.011237592,
-0.005453114,
0.013672404,
-0.0139677515,
0.009861708,
0.0059501613,
0.047889434,
-0.04342321,
0.04469104,
-0.0137228295,
-0.011230389,
-0.02077514,
-0.0072648153,
0.012253298,
0.0063355532,
0.002949868,
-0.027719395,
-0.027517695,
0.025010847,
-0.03884173,
-0.030946601,
0.009400679,
0.027604138,
0.002883235,
0.04322151,
0.012332537,
-0.027632952,
0.07520543,
0.018297106,
0.0064003854,
-0.01094945,
-0.017533526,
0.010092223,
0.0066381036,
-0.033107676,
0.009177367,
-0.04509444,
0.08200561,
0.0061734724,
-0.015430079,
0.018138627,
-0.03910106,
-0.024477782,
0.018686099,
-0.023483688,
0.049214892,
0.009004481,
-0.050886124,
-0.0074341,
0.006612891,
0.01442878,
-0.009112535,
-0.0231091,
0.025961721,
0.074110486,
0.023714202,
0.04022482,
-0.005316246,
-0.011741844,
0.036968797,
-0.061777946,
-0.008377769,
-0.011821083,
-0.021452276,
0.0148105705,
-0.0009171064,
-0.044028312,
-0.0458148,
-0.021754827,
-0.000655076,
-0.019781044,
-0.016049588,
0.005953763,
-0.029044855,
-0.004826402,
0.083676845,
-0.044374082,
-0.0681171,
-0.058060896,
0.0061770743,
0.011259204,
0.0073512583,
0.014032584,
-0.06264237,
-0.023699794,
-0.03518231,
0.04745722,
-0.009811283,
0.018801358,
-0.018354734,
-0.08050726,
0.00572685,
0.034548394,
0.027604138,
-0.048148762,
0.02545747,
-0.022287892,
0.0084642125,
-0.068001844,
-0.007326046,
-0.055093016,
0.012246095,
0.007585375,
0.023714202,
-0.015847888,
-0.009047703,
0.0055287513,
0.050713237,
0.024607446,
0.016640281,
-0.022691293,
-0.04250115,
-0.023815053,
-0.02194212,
-0.013629183,
0.033424634,
-0.024175232,
0.043106254,
0.008140051,
0.034548394,
-0.023714202,
-0.0041096453,
0.0018108012,
-0.021308204,
0.036219627,
-0.053623486,
-0.0025068475,
0.017115718,
0.021308204,
0.015415672,
0.010099426,
-0.011194371,
0.015242786,
-0.05624559,
-0.073130794,
0.013297818,
-0.042962182,
-0.01450802,
-0.013247393,
-0.015790258,
0.041060437,
-0.019968338,
-0.001189492,
0.055986263,
0.010099426,
-0.021956528,
-0.038812917,
0.032934792,
0.010214684,
0.005716045,
0.0093070315,
0.015185157,
-0.023613352,
-0.021135319,
-0.02586087,
-0.053018387,
-0.017965741,
0.02397353,
0.033770405,
0.0021790846,
0.010466809,
-0.010049001,
-0.059703313,
-0.0020728316,
0.012534238,
0.032127988,
0.011871508,
0.028065167,
0.04241471,
-0.008637099,
0.06465938,
-0.027921095,
-0.023181137,
0.0027355615,
0.038121372,
-0.01354274,
-0.011093521,
0.030946601,
0.00791674,
-0.050223395,
-0.05935754,
-0.04235708,
0.015660593,
-0.060337227,
-0.014983457,
0.012815177,
-0.038092557,
-0.007063115,
0.015977552,
0.029433848,
-0.019031871,
-0.0045490637,
-0.004945261,
-0.02550069,
-0.060337227,
-0.0042933365,
0.045469027,
-0.013067303,
-0.015991958,
-0.05538116,
-0.028987227,
-0.030773716,
-0.022215856,
0.036680654,
-0.0018513213,
0.021164132,
0.03394329,
0.012029987,
0.049589477,
-0.0046391087,
0.029246556,
-0.011597772,
-0.023022657,
-0.06333392,
-0.03910106,
0.036017925,
-0.0014731331,
0.01392453,
-0.007686225,
0.025270177,
0.045699544,
0.03192629,
-0.037285756,
-0.059588056,
0.004163672,
-0.068059474,
-0.015991958,
0.014198266,
-0.029995728,
-0.021452276,
0.035441637,
-0.0007932948,
-0.038150188,
0.0303415,
0.008838799,
0.011367257,
-0.022014156,
-0.03264665,
-0.011727436,
-0.04051296,
-0.052499726,
-0.019781044,
-0.036623027,
0.0062707206,
0.04474867,
0.0033280563,
0.002863425,
-0.011460904,
0.04348084,
0.005741257,
0.021437868,
-0.011482514,
0.023743017,
-0.048379276,
-0.02097684,
-0.045584287,
0.051836997,
0.005211794,
-0.03500942,
0.030975416,
0.007426896,
0.025039662,
-0.029448256,
-0.013621979,
0.04235708,
-0.017418269,
-0.0090621095,
-0.02214382,
0.004635507,
-0.057830382,
0.031177117,
-0.007412489,
0.0026419149,
-0.02581765,
0.0047471626,
0.00021002952,
0.023685388,
0.013413075,
0.022561628,
-0.015444486,
0.034778908,
0.02122176,
-0.0021988943,
0.011770658,
-0.0011957951,
0.027215144,
-0.031378817,
0.0142126735,
0.031234745,
-0.052672613,
0.007621393,
-0.021192947,
0.0012381162,
-0.019161535,
0.0029246556,
0.07145956,
0.05869481,
0.027460067,
-0.027704988,
-0.03783323,
-0.015847888,
-0.047053818,
-0.0060726223,
-0.061547432,
-0.036161996,
0.00008694952,
-0.0681171,
-0.0064652176,
0.018556435,
-0.00039934873,
-0.004185283,
0.016222473,
-0.009688822,
0.04791825,
0.04103162,
0.018455585,
0.012735939,
-0.04255878,
-0.023901494,
0.0021862881,
0.04806232,
-0.04048415,
-0.006785777,
0.011849897,
0.06339155,
0.030110985,
-0.028756712,
-0.03869766,
0.0020602252,
-0.0013173557,
0.046102945,
-0.023498094,
-0.006043808,
-0.048436906,
0.03385685,
-0.045641914,
0.015257193,
-0.006818193,
0.01117276,
0.018570842,
0.021596348,
0.018124219,
0.02509729,
0.036421325,
-0.050626796,
0.029621141,
0.030773716,
0.039734975,
-0.008615487,
0.0103587555,
-0.013621979,
0.02921774,
0.030572014,
0.033741593,
0.0047795787,
0.047774177,
0.023051472,
-0.021884492,
-0.019464087,
0.02622105,
0.017778449,
-0.0012129036,
0.0068506096,
-0.01725979,
0.0064291996,
-0.0036558195,
-0.010711731,
-0.003403694,
-0.010063408,
-0.023685388,
-0.0048840307,
0.0015694811,
0.034692466,
0.008154458,
-0.036882356,
-0.030860158,
0.009004481,
0.042875737,
-0.02688378,
0.01028672,
0.0046607195,
0.03523994,
0.04786062,
0.027632952,
0.015919924,
-0.0121452445,
0.03281953,
-0.0090260925,
0.041809607,
0.026999036,
-0.017764041,
-0.008694727,
-0.030255057,
-0.049762364,
0.03829426,
-0.018931022,
-0.029995728,
-0.034000922,
-0.011763454,
0.005539557,
-0.057455793,
0.008550655,
-0.043365583,
0.037401013,
0.027503287,
0.00028881873,
-0.024953218,
0.032848347,
-0.013830883,
0.03578741,
0.035700966,
0.046621602,
-0.008730745,
0.090016,
0.056389663,
-0.013297818,
0.011727436,
0.010301126,
-0.057052393,
-0.019161535,
0.031839848,
0.003976379,
-0.0067281486,
-0.022748921,
-0.019795451,
-0.0127791595,
-0.0072828243,
-0.046996187,
-0.0148105705,
0.042126566,
-0.0023411652,
-0.041982494,
0.010682916,
0.08627013,
0.014111823,
-0.008788373,
-0.02061666,
-0.020400552,
-0.05875244,
-0.0077510574,
-0.054257404,
0.035412826,
-0.03523994,
-0.015819073,
-0.04832165,
-0.015876701,
-0.020962432,
0.0013056498,
-0.011929137,
0.016942833,
0.037545085,
0.05610152,
0.008190476,
0.052096326,
0.009256607,
-0.025327805,
0.05051154,
0.028310088,
0.045123257,
0.03431788,
0.06540855,
0.023440465,
-0.016611466,
0.043711353,
0.00019303357,
-0.026538007,
-0.007034301,
0.013225782,
-0.009263811,
-0.023152322,
-0.038121372,
-0.051606484,
0.00028476672,
-0.0303415,
-0.01914713,
-0.029880472,
0.011460904,
-0.049647108,
-0.009004481,
-0.021250576,
-0.0033910878,
0.013211375,
-0.0056872303,
-0.004999288,
-0.037746787,
0.24780333,
0.041723166,
0.0027373624,
0.0015568748,
0.038207814,
0.09070754,
0.007318842,
-0.026235458,
0.026955815,
-0.04434527,
-0.024045566,
-0.042241823,
0.010178666,
0.018008962,
-0.0301398,
0.03823663,
-0.040051933,
0.00014733583,
-0.0045022406,
-0.047025003,
-0.03685354,
0.017692005,
-0.007034301,
0.043279137,
0.023123508,
0.025270177,
0.018167442,
-0.03385685,
-0.027575323,
-0.036334883,
0.024866775,
-0.0108125815,
0.027474474,
-0.033309378,
0.0005879926,
0.03146526,
-0.0048696236,
-0.020472588,
-0.038668845,
-0.004304142,
0.030024542,
-0.016885202,
0.018008962,
0.0002262376,
-0.0047507645,
0.03930276,
0.010682916,
0.042731665,
0.06788658,
-0.013218579,
0.056591365,
-0.051692925,
0.0031893873,
-0.0018477195,
-0.03864003,
0.006947858,
-0.06782895,
-0.031033045,
0.01249822,
0.0039835824,
-0.010502827,
-0.0024780333,
-0.030168613,
0.010423588,
-0.0076790215,
0.02031411,
-0.013060099,
0.012822381,
-0.0005537756,
0.009494325,
-0.014054194,
0.0021340621,
-0.03080253,
-0.050742052,
0.019665787,
0.056216776,
-0.0070198937,
0.008183273,
0.022028564,
-0.021034468,
0.0033928885,
-0.013874105,
0.01919035,
-0.045440216,
0.041175693,
0.019867487,
-0.030427944,
0.0067785736,
-0.0012813377,
0.0097968755,
0.019132722,
0.037228126,
0.007498932,
-0.026134606,
-0.0032236043
] | First, you need to load the model.
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(
"mistralai/Mistral-7B-v0.1", device_map="auto", load_in_4bit=True
)
You'll notice two flags in the from_pretrained call:
device_map ensures the model is moved to your GPU(s)
load_in_4bit applies 4-bit dynamic quantization to massively reduce the resource requirements |
[
0.052053574,
0.00049654907,
0.0002828797,
-0.03273043,
-0.02250403,
0.006071926,
0.052677862,
-0.016008481,
-0.016588176,
0.049080785,
0.021344641,
-0.016008481,
0.015844978,
-0.035970774,
-0.014678157,
0.048961874,
-0.0061128023,
-0.046553914,
-0.054342624,
0.024897126,
0.0023020552,
0.03293853,
-0.10089654,
-0.027973967,
-0.009914259,
0.019338008,
0.025120087,
-0.0033666862,
0.07842223,
0.054639906,
-0.028672572,
-0.0024618427,
0.034365468,
-0.012991098,
-0.07194155,
-0.05098337,
-0.03501948,
-0.037427444,
-0.033651996,
-0.017138142,
0.054461535,
-0.014261967,
0.06676889,
-0.006811408,
-0.055591196,
-0.021968927,
-0.009661572,
-0.035792407,
-0.020675763,
-0.0579397,
-0.036386967,
0.008702846,
0.009163629,
0.008242064,
-0.013593088,
-0.027067265,
-0.0053064325,
0.027022673,
-0.02141896,
0.0070603793,
0.018208347,
0.022177024,
0.020571716,
-0.045513436,
-0.006573585,
0.040073227,
-0.03662479,
-0.005440208,
0.002367085,
-0.020437941,
-0.027914511,
0.008368407,
-0.03258179,
-0.04628636,
0.004028132,
-0.0036676812,
0.013570792,
-0.010872984,
-0.02457012,
-0.0011779686,
0.023975562,
-0.015919298,
0.0022983393,
-0.013578224,
-0.026472706,
-0.022741854,
0.035108667,
-0.011133104,
0.024064746,
-0.044205405,
0.01566661,
0.048605137,
0.0054030484,
0.024257977,
0.0011175837,
0.017420556,
-0.006867148,
0.06314208,
0.05728569,
-0.022028383,
-0.036684245,
0.105355725,
-0.020482533,
0.020408213,
-0.033562813,
-0.02584842,
-0.03403846,
0.026383523,
-0.025343046,
0.0028055718,
0.0036175153,
-0.005544256,
-0.034157373,
-0.001007033,
-0.008517047,
0.010449361,
-0.00067398755,
0.031095397,
-0.04233255,
-0.0026067663,
0.02250403,
0.00033861952,
0.0017948227,
-0.055323645,
-0.0029337734,
-0.018238075,
-0.057999156,
0.0341871,
-0.029371178,
0.011051351,
0.032254785,
-0.019694742,
-0.01360052,
0.0387652,
0.010196675,
-0.019977158,
0.022385119,
0.048218675,
0.01800025,
0.0055070957,
0.0021905757,
-0.004466619,
-0.011950621,
0.06676889,
0.013875503,
0.022593213,
-0.01420251,
-0.0612395,
-0.041232616,
0.044354048,
-0.040965065,
0.033384446,
0.019129911,
0.026442979,
0.004737886,
-0.011564158,
-0.016112529,
0.054193985,
-0.012314788,
-0.008650823,
0.029698186,
0.008242064,
-0.0045149266,
0.06569869,
0.007870465,
0.013050553,
-0.03335472,
0.016112529,
0.03588159,
-0.023321548,
0.0059232865,
-0.0063023176,
-0.006759384,
0.025833556,
0.034395196,
0.06171515,
0.03207642,
0.026769986,
0.014447765,
0.006443525,
-0.0125600435,
0.012374244,
0.047832213,
0.048753776,
-0.0008556065,
0.013726864,
0.019219095,
0.03076839,
-0.02599706,
0.039686766,
0.0036546753,
0.040400233,
-0.018728586,
0.04117316,
-0.012114124,
0.013905231,
-0.028717164,
-0.021998655,
-0.020200117,
-0.029296858,
-0.023381004,
0.013370129,
-0.051399563,
0.013132306,
-0.047713302,
0.04361085,
-0.004548371,
0.0714659,
-0.009096742,
-0.012634363,
0.038081456,
-0.001024684,
-0.064033926,
-0.022459438,
0.020556852,
0.026011923,
0.0057040434,
0.0008216981,
-0.020229844,
0.010642593,
0.0362086,
0.022191888,
0.022147296,
0.024540393,
-0.03519785,
-0.024852535,
0.009163629,
0.031689957,
0.017182734,
0.024257977,
0.008123152,
0.044918876,
-0.0024469788,
0.03956785,
0.008784599,
0.032641247,
0.033146624,
0.06409338,
-0.02862798,
-0.0039835405,
-0.005365888,
0.045632347,
0.014938276,
-0.0056966115,
0.046078265,
-0.014053871,
-0.024495801,
-0.022935085,
-0.029698186,
0.010493954,
-0.02205811,
0.035554584,
0.022221616,
-0.0062205656,
-0.027513184,
0.0029374894,
0.013459313,
0.03959758,
-0.0400435,
-0.046553914,
0.025625462,
0.04982398,
-0.0017976097,
-0.02896985,
0.019992022,
0.07848169,
0.008316384,
-0.01588957,
0.0062057017,
-0.013503904,
0.010568273,
-0.02344046,
-0.054342624,
0.005737487,
0.0027925659,
-0.0015467805,
-0.0031084248,
-0.0142693985,
0.00047936258,
-0.06867148,
0.015919298,
0.0048902417,
-0.022385119,
0.04545398,
0.0637961,
-0.030129239,
-0.04714847,
0.009966283,
-0.015622018,
0.044651326,
-0.026338931,
-0.011950621,
0.0030062352,
-0.026353795,
-0.014551814,
-0.026963217,
0.013942392,
-0.004418311,
-0.053658884,
-0.0086656865,
0.008910942,
-0.007145847,
0.014811933,
0.035584312,
-0.016751679,
0.058355894,
0.0002387523,
-0.041143432,
0.041113704,
0.0177327,
-0.049259152,
0.028286109,
-0.0029913713,
0.04527561,
-0.013362697,
0.042392004,
0.033562813,
-0.018862361,
-0.0025454524,
-0.0142693985,
-0.021210866,
-0.025372773,
0.011370927,
-0.02769155,
-0.030827846,
0.085794754,
-0.015324739,
-0.06629325,
-0.0014873246,
-0.042124454,
-0.0063023176,
-0.015295011,
-0.017569197,
0.02509036,
-0.03849765,
0.026963217,
0.0060347663,
0.017034095,
-0.030590022,
0.020675763,
0.011222287,
-0.029876553,
0.033533085,
0.033384446,
0.009156197,
0.014700453,
0.014707885,
-0.039330028,
-0.0042213635,
-0.018223211,
0.008204904,
-0.009609547,
0.008539343,
0.008591367,
0.008613663,
0.013429585,
-0.04361085,
0.030173833,
0.002720104,
-0.0075285938,
0.019739334,
0.022949949,
-0.030173833,
0.02840502,
0.014774772,
-0.005050029,
-0.024020154,
0.032373697,
0.043789215,
-0.035673495,
0.032225057,
-0.00067723903,
-0.017524606,
0.03374118,
-0.0077143935,
-0.0036695392,
0.028523933,
0.0360005,
0.043373026,
-0.011400655,
-0.013451881,
-0.0003643992,
0.009431181,
0.014299126,
0.045840442,
0.029326586,
0.0015049756,
-0.0063543413,
0.017346237,
0.013994415,
0.03647615,
0.019813653,
-0.02535791,
-0.015577426,
-0.007788713,
-0.06807692,
0.028345564,
0.049199697,
0.045929626,
0.011801981,
0.047683574,
-0.001688917,
0.018698858,
0.05811807,
-0.007974513,
-0.043343298,
-0.05469936,
0.046494454,
-0.043254115,
-0.007480286,
-0.03445465,
-0.033146624,
-0.009416317,
0.018758314,
-0.013622816,
0.007996809,
0.005670599,
-0.011378359,
-0.009059582,
0.05312378,
-0.054491263,
-0.022831038,
-0.03701125,
-0.0021664216,
0.039924588,
-0.036268055,
-0.018312395,
-0.045305338,
0.017494876,
0.02784019,
-0.006536425,
-0.030248152,
-0.040816426,
-0.032016963,
-0.0413218,
0.061893515,
0.0039761085,
-0.019427191,
-0.026130835,
-0.039954316,
-0.004663566,
-0.023960698,
-0.0019899122,
-0.0033016563,
0.02149328,
-0.006384069,
0.019665014,
-0.046494454,
-0.0013331111,
-0.015547698,
0.039211117,
-0.020200117,
0.030649478,
-0.011712798,
0.025625462,
-0.004031848,
-0.011437815,
-0.0066553364,
0.013704568,
0.010820961,
-0.018594809,
-0.020527124,
0.032403424,
-0.021983791,
-0.016008481,
0.00024897128,
0.011601318,
-0.029921144,
0.05927746,
0.0144403335,
-0.024302568,
0.028271245,
0.023648554,
-0.008561639,
-0.007179291,
-0.048515953,
0.0316305,
0.025759237,
-0.018490762,
-0.009832507,
-0.046226904,
0.059634194,
-0.018431306,
-0.0005759783,
0.023886379,
-0.070752434,
-0.021106819,
-0.0038460488,
-0.0069897757,
0.029965736,
-0.0070046396,
-0.012455995,
-0.0035227577,
-0.018906953,
0.008769735,
-0.02400529,
-0.055472285,
0.019590694,
0.067006715,
0.021954063,
0.04283792,
0.00025454524,
-0.017286781,
0.028419884,
-0.029876553,
0.024689032,
-0.0069266036,
-0.0042771036,
0.01314717,
-0.0032644963,
-0.0160828,
-0.015681474,
-0.0059715947,
0.037962545,
0.03632751,
-0.023187771,
0.028360428,
-0.011601318,
-0.04786194,
0.048991602,
-0.035673495,
-0.058742356,
-0.036059957,
0.026279476,
-0.0093197,
0.033651996,
0.016944911,
-0.018431306,
-0.04967534,
-0.031035941,
0.05232113,
-0.022087839,
0.011504702,
-0.044562142,
-0.051667113,
-0.009453476,
0.0034112781,
0.002025214,
-0.06884985,
-0.03320608,
-0.016276032,
0.01157159,
-0.02141896,
-0.0076772333,
-0.04741602,
0.0014882536,
-0.011593886,
0.0067408043,
0.0049868575,
-0.00681884,
-0.010152082,
0.03391955,
0.03817064,
0.028196925,
-0.0372788,
-0.018535353,
0.0046672826,
0.017896203,
-0.0038720607,
0.02257835,
-0.043640576,
0.07776822,
-0.01175739,
0.032225057,
-0.028761756,
-0.047386292,
0.013474177,
-0.0407867,
0.023544507,
-0.044532415,
-0.015622018,
-0.004042996,
0.011504702,
0.008740006,
-0.0068262722,
-0.020541988,
0.007197871,
-0.023410732,
-0.034662746,
0.0032626383,
-0.031957507,
-0.007183007,
-0.028182061,
-0.011876301,
0.026442979,
-0.02840502,
-0.007104971,
0.06575815,
-0.0065958807,
-0.022177024,
-0.047505204,
0.039359756,
-0.012485723,
0.015399059,
0.02584842,
-0.0016619761,
-0.0145889735,
-0.023024268,
-0.059990928,
-0.066174336,
-0.03775445,
0.038586833,
0.040548872,
-0.014849093,
-0.002406103,
-0.012500588,
-0.03258179,
0.0037011253,
0.03888411,
0.0012922352,
-0.007877897,
-0.0022853334,
0.046553914,
-0.02073522,
0.05624521,
-0.049080785,
-0.02599706,
0.02678485,
0.04557289,
-0.011601318,
-0.023693146,
0.045810714,
0.025179543,
-0.055026367,
-0.055561468,
-0.02678485,
-0.0023466472,
-0.039330028,
-0.030679205,
0.0062094177,
-0.042094726,
-0.040132683,
-0.0030545432,
0.029802233,
-0.01018181,
-0.021850016,
0.024020154,
0.00038437263,
-0.019887974,
0.011787117,
0.06641216,
-0.008673118,
0.005481084,
-0.010820961,
-0.008844054,
-0.015205828,
-0.0057040434,
0.04598908,
-0.03076839,
0.019932566,
0.006785396,
-0.011593886,
0.04218391,
-0.012693819,
0.00049004605,
-0.00011740203,
-0.03763554,
-0.05829644,
-0.036922067,
0.061596237,
0.008962966,
0.023128316,
0.0005792298,
0.02464444,
0.0145889735,
0.041767716,
-0.014343718,
-0.038586833,
0.035703223,
-0.057850517,
-0.014774772,
-0.003128863,
-0.035584312,
-0.010285858,
0.031125125,
0.027468592,
-0.020110933,
0.030233288,
0.017420556,
-0.029400906,
-0.005116917,
-0.045335066,
0.01360052,
-0.060585488,
-0.017048959,
-0.015146372,
-0.026576754,
-0.012299924,
0.027037537,
-0.013704568,
-0.026978081,
-0.013481609,
0.054461535,
-0.014655861,
0.008056264,
-0.005573984,
0.029044172,
-0.021463552,
-0.02235539,
-0.05526419,
0.030946758,
0.01930828,
0.009014989,
0.010486522,
0.011460111,
-0.0029151936,
-0.018089434,
-0.02693349,
0.050805002,
-0.018223211,
0.024406616,
-0.0036416694,
0.009735892,
-0.07735203,
0.026056515,
-0.0015328455,
-0.048961874,
-0.017078687,
0.055472285,
0.036119413,
0.030441383,
0.046078265,
0.03157104,
0.015934162,
0.013511336,
0.02656189,
-0.0062205656,
0.032997984,
0.029802233,
-0.051221196,
-0.035673495,
-0.008472456,
0.028479341,
-0.064033926,
0.008256928,
-0.039538123,
-0.003689977,
-0.018832633,
0.0032459165,
0.026532162,
0.049348336,
0.01153443,
-0.023262093,
-0.021136547,
-0.031541314,
-0.007484002,
-0.008004241,
-0.045899898,
-0.07265502,
0.020200117,
-0.06332046,
-0.009520364,
0.0054179123,
-0.001042335,
0.032284513,
0.04286765,
0.016647631,
0.0144329015,
0.032225057,
-0.0014306558,
0.0036398114,
-0.024986312,
-0.055026367,
0.01581525,
0.021240594,
-0.012790435,
-0.008085992,
0.02457012,
0.043818943,
0.009379157,
-0.015116644,
-0.028806347,
-0.024614712,
-0.0013108152,
0.034930296,
-0.032968257,
0.030010328,
-0.037249073,
-0.011073648,
-0.018119164,
-0.013169466,
-0.04218391,
0.04887269,
0.025967332,
0.025164679,
0.030946758,
0.008405567,
0.028033422,
-0.02314318,
0.020913586,
0.04257037,
0.049764525,
0.013050553,
0.034633018,
0.0033388163,
0.042629827,
0.052885957,
0.020675763,
0.0060161864,
0.034514107,
0.005443924,
-0.039211117,
0.006770532,
0.020809539,
0.008740006,
0.005090905,
-0.045186426,
-0.003734569,
-0.011831709,
0.000217966,
0.016885454,
-0.013117442,
-0.010397337,
-0.022087839,
-0.009394021,
-0.025952468,
0.04147044,
0.005072325,
-0.048724048,
-0.041827172,
0.039062478,
0.014358582,
-0.012790435,
-0.018788042,
0.006454673,
0.030976485,
0.07431978,
0.0586829,
0.013199193,
0.0022425994,
0.012218173,
-0.009951419,
0.03027788,
0.015978754,
-0.01596389,
-0.0019397463,
-0.0049905735,
-0.026130835,
0.04447296,
-0.026888898,
-0.00957982,
-0.042273093,
-0.01596389,
-0.017450284,
-0.03490057,
0.004819638,
-0.05223194,
0.024629576,
0.061774604,
-0.017450284,
-0.043046016,
0.05196439,
-0.010605433,
0.0152132595,
0.030218424,
0.030530566,
0.025387637,
0.058088344,
0.033235807,
-0.01945692,
0.02280131,
-0.0013470461,
-0.020081205,
0.018550217,
0.034008734,
0.012567475,
-0.017821884,
-0.022221616,
-0.034246556,
0.02107709,
-0.0017465149,
-0.034930296,
-0.025744373,
0.009423749,
-0.014544382,
-0.04616745,
-0.0035673496,
0.049942892,
-0.009847371,
0.016498992,
-0.030649478,
-0.015949026,
-0.04444323,
-0.038081456,
-0.0663527,
0.04286765,
-0.024139065,
-0.02107709,
-0.0283307,
-0.040846154,
-0.0035636337,
0.0010618439,
-0.023841787,
0.0025937604,
-0.008004241,
0.05157793,
0.03261152,
0.015399059,
-0.0042213635,
-0.041262344,
0.026324067,
0.014841661,
0.017569197,
0.05131038,
0.060496304,
0.011906029,
-0.010315586,
0.013444449,
0.016365215,
-0.017688109,
-0.006491833,
-0.02021498,
-0.01807457,
0.0160828,
-0.07140645,
-0.02558087,
0.023663418,
-0.013199193,
-0.031154852,
-0.01893668,
0.006060778,
-0.0299806,
0.018832633,
-0.020423077,
0.015755793,
-0.008799463,
-0.00008349363,
-0.00073530135,
-0.027438864,
0.26398388,
0.0367437,
0.016112529,
0.014648429,
0.03632751,
0.05425344,
0.022266207,
-0.018966408,
0.02983196,
-0.09292945,
0.025818693,
-0.012701251,
-0.025194407,
0.029564409,
-0.016915182,
0.03763554,
-0.051667113,
0.024689032,
-0.026695665,
-0.01874345,
-0.0451567,
-0.0059158546,
0.009929123,
0.046940375,
-0.029445497,
0.008881214,
0.029237403,
-0.03745717,
-0.03614914,
-0.038794927,
0.0053250124,
-0.008747438,
-0.009535228,
-0.029504953,
-0.021850016,
-0.011289175,
-0.028806347,
-0.053361602,
-0.05568038,
-0.0019508942,
-0.019442055,
-0.032849345,
0.03386009,
0.014373446,
-0.0038386167,
0.0694444,
-0.0077292575,
0.049199697,
0.036565334,
-0.029177947,
0.07408196,
-0.021433825,
-0.008108288,
-0.021166274,
-0.08305979,
0.029490089,
-0.031511586,
-0.054491263,
0.0034781657,
0.019397464,
-0.020051477,
0.027929375,
-0.047832213,
0.004158192,
0.0028613117,
0.021166274,
0.009007557,
0.007922489,
-0.018119164,
-0.023559371,
-0.00027010596,
-0.011579022,
-0.019129911,
-0.050775275,
-0.010679753,
0.018461034,
0.0003592897,
0.026368659,
0.0011575306,
0.0000187251,
-0.0017455859,
0.0058972747,
0.015577426,
-0.040667783,
0.04842677,
0.011883733,
-0.01239654,
-0.024495801,
0.030857574,
-0.017494876,
0.014826797,
0.015726065,
0.003377834,
-0.023886379,
0.0088068945
] | device_map ensures the model is moved to your GPU(s)
load_in_4bit applies 4-bit dynamic quantization to massively reduce the resource requirements
There are other ways to initialize a model, but this is a good baseline to begin with an LLM.
Next, you need to preprocess your text input with a tokenizer. |
[
-0.0059844595,
-0.004749284,
-0.01659902,
-0.013984204,
-0.021453042,
-0.03967007,
0.045535345,
0.002289769,
-0.008732905,
0.03397815,
-0.0023313027,
0.022002008,
0.015501086,
-0.02895077,
-0.031348888,
-0.014937673,
0.014923226,
-0.05218073,
-0.023923391,
-0.01186057,
-0.014504278,
0.023822265,
-0.043050546,
-0.04562202,
-0.021308577,
-0.010690404,
0.00011816779,
0.00036748263,
0.06292892,
0.051371727,
-0.005890557,
0.038889956,
-0.02528136,
0.0026419023,
-0.005030991,
-0.034440435,
0.012633457,
-0.0629867,
-0.0055907923,
-0.036954127,
0.02870518,
0.005749704,
0.020398447,
-0.04221265,
-0.059866264,
-0.0341804,
-0.01404199,
-0.007642194,
-0.030193169,
0.006435912,
0.014966566,
-0.012720136,
0.001417562,
0.024804628,
-0.022637652,
-0.013586925,
0.010943218,
-0.026624884,
-0.034584902,
-0.01048093,
0.033169147,
0.036376268,
-0.003373256,
-0.06656943,
-0.01573223,
0.007226858,
-0.026350401,
-0.01840483,
-0.02463127,
-0.002309633,
-0.03550948,
0.0019574997,
-0.0044422965,
-0.026422635,
-0.018274812,
-0.020239536,
-0.01737913,
-0.01248177,
-0.02216092,
0.028112873,
-0.029817559,
-0.000020936128,
-0.007786659,
-0.021857543,
0.01568889,
-0.06986324,
0.04192372,
-0.026307061,
0.01746581,
-0.0136952745,
-0.0005787626,
0.018924905,
-0.04937811,
0.045448665,
0.039352246,
0.08355851,
0.0071979645,
0.042443793,
-0.016627911,
-0.018245919,
0.036636304,
0.08136264,
-0.062466633,
0.050216008,
-0.012597341,
0.016454555,
0.03290911,
0.036925234,
-0.023316639,
-0.012452876,
-0.0014320086,
-0.015313282,
0.008624556,
-0.01264068,
-0.053509805,
0.047037777,
0.02153972,
-0.007281032,
-0.052903052,
-0.01622341,
-0.00008385737,
-0.019546105,
-0.013738614,
-0.028791858,
0.008530654,
-0.04053686,
0.011614979,
0.019488318,
-0.039352246,
0.021481933,
0.011174361,
-0.010126991,
0.030626563,
0.05400099,
-0.016122285,
0.01292961,
-0.037734237,
0.014590957,
0.0036802439,
-0.0247035,
0.0038824948,
-0.016078945,
0.005977236,
0.088701464,
0.012091714,
-0.012915164,
0.050418258,
-0.00183019,
-0.028213998,
0.0060422453,
-0.050533827,
0.010870986,
-0.0079744635,
0.046922207,
-0.004012513,
-0.008891816,
0.0015060467,
-0.018939352,
-0.028387357,
-0.012922388,
0.04403291,
0.03689634,
0.0018256755,
0.052816376,
-0.015053244,
0.025122449,
-0.018000329,
0.007262974,
0.014395929,
-0.039467815,
0.031262208,
0.01820258,
0.03990121,
0.019993944,
0.011665543,
0.016483447,
0.024645716,
-0.0019430532,
0.004543422,
0.0354228,
-0.011340496,
0.0011746804,
0.00029660453,
0.059346188,
0.018867118,
0.0038933295,
0.024530144,
0.021366362,
-0.013247433,
-0.0098597305,
0.042472687,
0.048598,
-0.01940164,
0.008747351,
-0.028560715,
0.061137553,
-0.013211317,
0.0062625543,
0.015703337,
-0.04484191,
-0.008292287,
0.05850829,
-0.008559546,
0.029340826,
-0.015804462,
0.004110027,
0.010192,
0.05894169,
-0.04461077,
0.03550948,
0.03001981,
0.015009905,
-0.03146446,
0.01717688,
-0.0036964961,
-0.024717947,
-0.031926747,
0.023692247,
0.011629426,
0.015948927,
-0.0030445983,
0.017408023,
0.005030991,
0.02096186,
-0.017942542,
-0.04550645,
0.016714592,
0.042068183,
0.017162433,
0.00289291,
0.016208963,
0.017147986,
0.008884593,
0.054376595,
0.015515532,
0.009794721,
0.051082797,
0.018289259,
-0.0056269085,
0.0077649895,
-0.011694435,
0.0105314925,
0.050620507,
0.01849151,
-0.00076882425,
0.045824274,
0.027477227,
-0.014099776,
-0.029311933,
-0.012785145,
-0.034295972,
0.085869946,
0.008646226,
-0.0021507216,
-0.047211137,
-0.024920199,
0.025526952,
0.031782284,
-0.005814713,
-0.0646625,
0.021337468,
0.03727195,
0.016757932,
-0.025339147,
0.008819584,
0.032128997,
0.0071907416,
0.014273134,
-0.03522055,
-0.030510992,
-0.009975303,
-0.03097328,
-0.08211386,
0.0037091367,
-0.011665543,
-0.037647557,
0.01787031,
-0.030828815,
-0.013297996,
-0.021843096,
-0.032389034,
-0.016671252,
-0.072983675,
0.059866264,
0.010199224,
0.011405505,
-0.02754946,
0.015573318,
-0.014793208,
0.04949368,
-0.006197545,
-0.0030102879,
-0.008415082,
-0.037618667,
0.010921548,
0.0036098172,
0.023562228,
-0.0050165444,
-0.034035936,
-0.0037199717,
-0.009520238,
0.02585922,
-0.01326188,
0.015674444,
-0.035307225,
0.027072726,
0.037011914,
-0.025064664,
0.005077942,
0.0794557,
-0.023591122,
0.014807655,
0.008985718,
0.0145548405,
-0.03698302,
0.016396768,
0.027433889,
-0.010423144,
0.04888693,
-0.0030987726,
-0.018058116,
-0.0014717364,
-0.005861664,
-0.028055087,
-0.026220383,
0.060501907,
-0.00048034586,
-0.074139394,
-0.0068440256,
-0.04114361,
-0.027607247,
0.01782697,
-0.016295644,
0.04175036,
0.044004016,
-0.00041962546,
-0.020615144,
-0.014836547,
0.0021633622,
0.01878044,
0.038456563,
-0.043628406,
0.013767507,
0.02338887,
0.02129413,
0.0059519545,
0.04810682,
-0.03990121,
0.0023529723,
0.009809168,
0.03484494,
0.0473556,
0.017321344,
-0.019546105,
0.003640516,
-0.005316309,
-0.028474037,
0.019777248,
0.0017272587,
0.009953633,
0.030828815,
0.031002171,
0.01626675,
0.016627911,
-0.033544753,
-0.02434234,
-0.031002171,
0.011954472,
0.038658813,
-0.024847966,
-0.021698631,
0.029456398,
-0.025917007,
-0.0016107839,
-0.034122616,
-0.031782284,
0.036347374,
0.00672123,
0.048858035,
-0.018274812,
-0.0015087555,
-0.006555096,
0.00607475,
0.031984534,
0.01902603,
0.052643016,
-0.012749029,
0.024501251,
0.022377616,
0.009982526,
0.03880328,
-0.021626398,
-0.033371396,
0.005402988,
-0.08448309,
-0.032215677,
0.02256542,
0.027665032,
0.03565394,
0.0018049086,
0.037445307,
-0.047037777,
0.01902603,
0.043888442,
-0.038023166,
0.0055330065,
-0.04203929,
0.07361932,
-0.006381738,
0.012633457,
-0.035682835,
0.01602116,
-0.034411546,
-0.00017143923,
0.044639662,
0.012561224,
-0.01878044,
0.02648042,
0.0060025174,
0.04056575,
-0.026018132,
-0.0312911,
-0.022926582,
0.01128271,
0.034093723,
-0.046517704,
0.004225599,
-0.0026906591,
0.015168817,
0.028430697,
-0.014273134,
-0.05923062,
-0.009578024,
-0.028734073,
-0.07067224,
0.019459425,
0.038774386,
-0.00018306414,
0.0096502565,
-0.0032161502,
0.01956055,
0.008480091,
-0.057670396,
0.021510826,
0.015284388,
-0.033862576,
-0.0070101605,
0.0014500667,
-0.003611623,
-0.04097025,
0.030395418,
-0.023793373,
0.031811174,
-0.025917007,
0.014244241,
-0.03406483,
-0.0063781263,
-0.015790015,
0.016757932,
-0.033284716,
-0.050389364,
0.0032847712,
0.030713242,
-0.028632948,
-0.04715335,
0.0039511155,
0.035913978,
-0.0143453665,
0.019719461,
0.0079744635,
-0.013514693,
0.02029732,
0.009628587,
-0.033284716,
-0.028344017,
0.010870986,
0.013984204,
-0.005699141,
-0.024371233,
0.045390878,
-0.025599184,
0.021106325,
0.02236317,
-0.06431578,
-0.031348888,
-0.029990917,
-0.028344017,
-0.00829951,
-0.031088851,
0.04949368,
0.02026843,
-0.034700476,
0.0033588095,
-0.041692577,
-0.017017968,
-0.037416413,
-0.028734073,
-0.0021380808,
0.05894169,
0.014005874,
0.064257994,
-0.019835034,
-0.031926747,
0.045824274,
-0.02479018,
0.005774985,
-0.013919195,
-0.025526952,
0.0009169008,
-0.03805206,
-0.0156022115,
0.0024847966,
-0.012409537,
0.01515437,
0.021178557,
-0.017812524,
0.02244985,
-0.022146473,
-0.008906262,
0.060212977,
-0.013586925,
-0.05712143,
-0.026437081,
0.03883217,
0.010885431,
0.015168817,
0.02211758,
-0.043599512,
-0.004713168,
-0.04125918,
0.029124128,
-0.019387193,
0.04432184,
-0.0617732,
-0.033053573,
0.0020857123,
0.021481933,
-0.008400635,
-0.05856608,
0.007808329,
-0.037214164,
0.033949256,
-0.034151506,
-0.019156048,
-0.023172174,
-0.04432184,
-0.009361327,
0.036145125,
0.02309994,
-0.007526622,
-0.018419277,
-0.020037284,
0.017032415,
0.056427997,
-0.047268923,
0.020253982,
0.000244236,
-0.02458793,
0.005114058,
-0.0030102879,
-0.006746512,
0.051082797,
-0.01105879,
0.042761616,
-0.03059767,
-0.057814863,
-0.024559036,
0.005655802,
0.03805206,
-0.04053686,
0.007606078,
-0.052787483,
0.0050165444,
-0.0025082722,
0.05567678,
-0.04183704,
-0.038167633,
-0.07558405,
-0.01989282,
0.018043669,
-0.012633457,
-0.023172174,
0.000036341957,
0.009895847,
0.04877136,
-0.016093392,
0.030857706,
0.05625464,
-0.011297157,
0.008017804,
-0.03949671,
0.04839575,
-0.019676123,
-0.00059907796,
-0.0024486803,
0.02973088,
-0.059866264,
0.0034039547,
-0.04374398,
-0.028936323,
-0.030482098,
0.019965053,
0.051834013,
-0.0029669483,
0.03767645,
-0.01684461,
-0.04125918,
-0.04114361,
0.06206213,
-0.008068366,
0.036145125,
0.018896012,
0.02236317,
-0.0045109172,
0.03368922,
-0.007981687,
-0.021973114,
-0.03536501,
0.04183704,
-0.0064431354,
-0.02314328,
0.0145765105,
-0.0020333438,
-0.016714592,
-0.04599763,
-0.0021886434,
-0.010740967,
-0.046633277,
-0.02087518,
-0.021987561,
0.0023493608,
-0.0050671073,
0.0018347045,
0.02026843,
-0.013211317,
0.009505792,
-0.012828485,
-0.03158003,
-0.010928771,
0.024197875,
0.052787483,
-0.008870146,
0.0362318,
-0.055532314,
-0.01105879,
-0.05501224,
-0.0039222226,
0.043830656,
0.018852672,
0.008458422,
0.028069533,
0.011911132,
0.073561534,
-0.04221265,
-0.01297295,
0.03796538,
-0.015847802,
-0.06414243,
-0.023807818,
0.028777413,
0.020225089,
-0.009809168,
0.008306733,
-0.007656641,
0.015327728,
0.05376984,
-0.02223315,
-0.067436226,
0.060155194,
-0.01713354,
-0.041374754,
-0.024472358,
-0.03718527,
-0.0048431866,
0.020947414,
-0.011528301,
-0.018130347,
-0.0013769313,
0.028055087,
-0.01651234,
-0.019531658,
-0.018217027,
-0.004973205,
-0.017147986,
-0.03166671,
-0.011383836,
-0.04455298,
-0.0075699617,
-0.011968919,
-0.011131022,
-0.0020730717,
-0.03990121,
0.033226933,
0.0103003485,
-0.020976307,
-0.008805137,
-0.026249276,
0.010683181,
-0.0058183246,
-0.0090218345,
0.019329406,
0.029846452,
-0.027433889,
-0.0054571624,
-0.000088823355,
0.007829999,
-0.0040197363,
0.011831677,
0.04105693,
-0.046402134,
0.014056437,
0.032186784,
0.02565697,
-0.044004016,
-0.025584737,
-0.037820917,
-0.013420791,
0.0065478724,
0.02223315,
0.047413386,
0.045939844,
0.027202744,
0.04781789,
-0.0047095562,
0.04270383,
0.033718113,
0.02009507,
0.006540649,
-0.0040414063,
0.031695604,
-0.03880328,
-0.014482608,
-0.004167813,
-0.03536501,
0.028647393,
0.006800686,
-0.02005173,
-0.07148124,
-0.00062345644,
0.02067293,
0.023807818,
0.00883403,
-0.036058445,
-0.0070462767,
0.0073893806,
0.009614141,
0.034700476,
-0.06945873,
-0.023923391,
0.021799756,
-0.04461077,
0.0154433,
-0.017971436,
-0.0137964,
0.0047854003,
0.0023042154,
0.038687706,
0.01878044,
0.06772515,
-0.017205773,
0.030164275,
-0.027404996,
-0.014287581,
0.01157164,
-0.00065866974,
-0.02182865,
-0.047326706,
-0.0020423727,
0.021554166,
0.01295128,
-0.048482426,
-0.025729202,
-0.0006401602,
0.015544426,
0.02614815,
0.004666217,
0.008270617,
-0.068765305,
0.025469165,
-0.018563742,
-0.012344527,
-0.013890302,
0.007808329,
0.03319804,
-0.0013335918,
0.026841583,
0.012265072,
0.05036047,
-0.031002171,
0.024226768,
0.03001981,
0.033804793,
-0.027246084,
0.000957983,
-0.023663353,
-0.011947249,
0.05703475,
0.02463127,
0.010538716,
0.04085468,
0.018823778,
-0.059981834,
-0.010264233,
0.03464269,
0.010914325,
-0.023981176,
-0.00507433,
-0.012243402,
0.025714755,
-0.02812732,
0.008046696,
0.0018599859,
-0.009729712,
-0.014511501,
-0.02585922,
-0.057294786,
-0.019502765,
0.026581546,
-0.011448845,
-0.037329737,
-0.014200902,
0.04328169,
0.037329737,
-0.0103220185,
-0.014735422,
0.031695604,
0.018838225,
0.024212321,
0.03516276,
0.000651898,
0.02096186,
0.027578354,
0.016989075,
-0.0017453168,
-0.045361985,
-0.00199181,
-0.010668734,
-0.03553837,
0.014395929,
-0.021915328,
-0.017509148,
-0.009614141,
-0.036838554,
-0.032128997,
-0.053596485,
0.024833519,
-0.027939515,
0.01956055,
0.037040807,
-0.021770863,
-0.045679808,
0.024371233,
-0.03311136,
0.034440435,
0.02009507,
0.060790837,
0.016396768,
0.09130183,
0.033833686,
0.00064241746,
0.061021984,
0.014836547,
-0.0032269852,
0.002434234,
0.027953962,
-0.0013679023,
-0.01486544,
-0.07766434,
-0.04299276,
-0.03117553,
0.010141438,
-0.030453205,
-0.041605897,
0.0065370374,
-0.017725846,
-0.04550645,
-0.014735422,
0.072001316,
0.01737913,
0.017769186,
0.02125079,
0.006179487,
-0.0073424294,
-0.017783633,
-0.03941003,
0.023114387,
0.010040312,
-0.077722125,
-0.018592635,
-0.051053904,
0.0031204424,
-0.021958668,
-0.014403152,
-0.04443741,
0.061137553,
0.037329737,
0.037445307,
0.026552653,
-0.0023818654,
-0.012727359,
0.055127814,
0.05324977,
0.027000494,
0.07754877,
0.06391128,
-0.03698302,
-0.01130438,
0.0007769504,
0.04056575,
-0.0067103957,
0.023157727,
-0.011405505,
-0.0028622113,
-0.032360144,
-0.0420104,
-0.049609255,
0.016208963,
-0.0032017038,
-0.015125477,
-0.03727195,
0.00080403755,
-0.045593128,
-0.017798077,
-0.036462948,
0.026075918,
0.0056124623,
0.008386188,
-0.019011583,
-0.057294786,
0.24940424,
0.05923062,
0.020398447,
-0.019329406,
0.059403975,
0.045766488,
0.022796564,
-0.024125641,
0.0027719208,
-0.017956989,
0.023663353,
0.021164112,
-0.0032739362,
0.022319831,
-0.007822775,
0.0135074705,
-0.07049888,
0.009874177,
-0.030222062,
-0.03215789,
-0.03166671,
0.046055418,
0.018968243,
0.04258826,
0.016324537,
-0.010040312,
-0.0077072037,
-0.046257667,
-0.028921878,
-0.018029222,
0.056948073,
-0.015125477,
0.007851669,
-0.010582056,
-0.027433889,
0.034498222,
-0.00066544156,
-0.053365342,
-0.004417015,
0.0143453665,
-0.004857633,
-0.029817559,
0.023417763,
-0.017061308,
-0.01593448,
0.025628077,
-0.0032432375,
0.050013755,
0.02034066,
-0.075237334,
0.023071047,
-0.032186784,
0.05836383,
-0.010618172,
-0.042386007,
0.0079961335,
-0.034787152,
-0.037936486,
-0.020037284,
0.06119534,
-0.04172147,
0.02648042,
-0.01791365,
-0.010473707,
-0.003477993,
0.04143254,
-0.014309251,
0.018433724,
-0.035885084,
0.0055438415,
0.0115788635,
-0.026668224,
-0.023504443,
-0.028040642,
-0.0014166591,
0.055994604,
-0.007212411,
0.0411725,
0.00594112,
-0.04143254,
0.037040807,
-0.020528466,
-0.031637818,
-0.023374423,
0.019343853,
0.062408846,
-0.027578354,
0.03446933,
0.0024559037,
0.03680966,
0.016902396,
0.027563907,
0.022680992,
-0.021554166,
-0.0013931836
] | The model_inputs variable holds the tokenized text input, as well as the attention mask. While [~generation.GenerationMixin.generate] does its best effort to infer the attention mask when it is not passed, we recommend passing it whenever possible for optimal results.
After tokenizing the inputs, you can call the [~generation.GenerationMixin.generate] method to returns the generated tokens. The generated tokens then should be converted to text before printing. |
[
0.003926806,
0.012876113,
0.028147781,
0.022907503,
-0.011433335,
-0.060705565,
-0.014033058,
0.018415837,
0.014237224,
0.052756675,
0.03519834,
0.0047911117,
0.019572781,
-0.030107781,
-0.02605167,
0.012910141,
0.025139725,
-0.04938112,
-0.048401117,
0.0034827436,
-0.00013387806,
-0.030761115,
-0.022417502,
-0.026187781,
-0.025112504,
0.021328613,
0.001058264,
0.036423337,
0.12141113,
0.024268614,
-0.015326113,
0.0030880212,
0.011263196,
-0.01442778,
-0.011651113,
-0.012147918,
0.020933893,
0.017027503,
-0.018688058,
-0.006278126,
0.028583337,
-0.023329448,
0.04303834,
-0.04695834,
-0.033238336,
-0.03557945,
-0.005655417,
-0.015108336,
-0.013114307,
-0.030625004,
-0.016932225,
-0.0074316678,
0.008268751,
0.0059378482,
-0.005083751,
0.009119445,
0.008765557,
0.004913612,
-0.036151115,
0.012569862,
0.0024993406,
0.02836556,
0.032503337,
-0.046822228,
0.016401391,
0.04219445,
-0.0073363897,
0.0069280565,
-0.0053797923,
-0.040506672,
-0.036750004,
0.0009876564,
-0.017844168,
-0.02543917,
-0.019572781,
-0.024391115,
0.045542784,
-0.022771392,
0.0094052795,
0.034055006,
0.0058834036,
0.024431948,
0.02959056,
-0.008527363,
-0.024132503,
-0.05297445,
0.060378898,
-0.0067987507,
0.017463058,
-0.025997225,
-0.015053891,
0.03046167,
-0.035878893,
0.022254169,
-0.0044270144,
0.044481117,
0.0009782987,
0.02251278,
0.00011941625,
0.0074384734,
0.04418167,
0.06816445,
-0.04339223,
-0.020198891,
-0.045080006,
-0.005175626,
0.03244889,
0.031850003,
-0.02176417,
-0.022118058,
0.0077515286,
-0.0093576405,
0.00055125006,
-0.0009987154,
-0.030216672,
0.08204779,
-0.0022237157,
0.041160006,
-0.06881779,
-0.021178892,
0.02948167,
0.029400004,
0.0052436814,
-0.0068463897,
0.026568893,
-0.036123894,
0.022213336,
0.029073337,
-0.040016674,
0.0018528127,
-0.018865002,
-0.01382889,
0.0011969273,
0.04086056,
-0.0048115286,
0.036505006,
0.011263196,
0.02763056,
0.019423058,
-0.050796673,
0.0026541671,
0.0047196536,
-0.00954139,
0.08841779,
-0.01847028,
-0.017789725,
0.028773893,
-0.023533614,
-0.033537783,
0.015584724,
-0.07028779,
0.02556167,
0.023302225,
0.023275003,
-0.009555002,
-0.0037566673,
-0.025303058,
-0.02202278,
-0.021056391,
-0.015298891,
0.022893893,
0.022703337,
-0.028420003,
0.06756557,
-0.03694056,
0.01381528,
0.009473335,
0.03288445,
-0.01945028,
-0.030026115,
0.03315667,
-0.000021227488,
-0.0044746534,
0.0004934028,
0.020130835,
0.035007782,
0.05256612,
0.018184448,
0.029182225,
0.01808917,
-0.01808917,
0.013148335,
-0.02214528,
0.04268445,
0.029699448,
0.0028072922,
-0.0146727795,
0.017667225,
-0.023533614,
0.010718752,
-0.002837917,
0.025534447,
-0.009527779,
0.015611947,
-0.026555281,
0.049217783,
-0.02410528,
0.022635281,
-0.015026669,
-0.018905835,
-0.01504028,
0.026024448,
-0.024663337,
0.02554806,
-0.06816445,
-0.016360559,
-0.011936946,
0.040425006,
-0.02409167,
0.011732779,
-0.0015976044,
0.021900281,
-0.04758445,
-0.00094852445,
-0.015543891,
-0.06239334,
-0.05185834,
0.045107227,
0.044916674,
0.010507779,
0.0056247925,
-0.009779585,
0.01528528,
-0.0028175004,
0.009820418,
-0.04096945,
0.033918895,
0.024241392,
0.0060943756,
0.012338473,
0.012229585,
0.049925562,
0.022322224,
0.049136117,
0.023792226,
0.01332528,
0.04083334,
0.057438895,
-0.020947503,
0.0078604175,
-0.0029451046,
0.0027987852,
0.023914726,
0.009071806,
-0.0123861125,
0.00443382,
0.0036818061,
-0.04094223,
0.033565003,
-0.012522224,
-0.019586392,
0.06299223,
0.025738616,
0.009793196,
-0.07224779,
-0.03862834,
-0.015053891,
0.011099863,
-0.026201392,
-0.053954452,
0.017871391,
0.028066115,
0.01774889,
-0.044698894,
-0.008187084,
0.025956392,
-0.0030812158,
0.05414501,
-0.027358336,
-0.038437784,
-0.009888474,
-0.047611672,
-0.06081445,
0.021165282,
0.0033585422,
0.0031645838,
0.03171389,
-0.051422786,
0.00240066,
-0.02447278,
-0.011719168,
-0.0020161462,
-0.01810278,
0.041486673,
-0.028093338,
0.0038383338,
-0.035824448,
0.02787556,
-0.029318338,
0.06163112,
-0.01381528,
-0.00541382,
-0.017885003,
-0.030488893,
0.0030369796,
-0.01107264,
0.011664724,
-0.0033177088,
-0.014033058,
-0.003105035,
0.000325178,
0.0014810592,
-0.019395836,
-0.010024585,
-0.02850167,
0.036586672,
0.029018892,
-0.040533893,
0.052021675,
0.0647889,
-0.027249448,
0.0089833345,
-0.003559306,
0.05381834,
-0.02469056,
0.011201946,
0.027793894,
0.002055278,
0.0057506952,
-0.032639448,
-0.020471115,
-0.008350418,
0.031033337,
-0.025997225,
0.009684307,
0.05760223,
0.021723336,
-0.06642223,
0.0041173617,
-0.030733893,
-0.014523057,
0.025221393,
-0.018021114,
0.038601115,
0.03533445,
0.031931672,
-0.034681115,
-0.035171118,
-0.05123223,
0.02092028,
0.047366675,
-0.036232784,
-0.045270562,
0.027589725,
-0.008636251,
-0.0027698616,
0.063700005,
-0.06658556,
0.017041113,
0.008826807,
-0.0014461807,
0.039662782,
0.04156834,
-0.02605167,
-0.0068463897,
0.018443057,
-0.027902782,
-0.0054852786,
-0.03879167,
-0.024568059,
0.019776948,
0.025588892,
0.017054725,
0.023656115,
-0.027072504,
-0.03571556,
-0.017150002,
0.0048421533,
0.04145945,
-0.0060501397,
0.015081113,
0.008956112,
-0.015938614,
-0.010575835,
-0.020580003,
-0.041241672,
0.048128895,
0.0065401397,
0.030978894,
-0.0035014588,
-0.009793196,
0.0034334033,
0.008139445,
0.058691118,
0.02666417,
0.07105001,
-0.0075269453,
-0.020893058,
-0.019055558,
0.006274723,
0.03606945,
-0.040043894,
-0.0070369453,
-0.0075745843,
-0.07219335,
-0.03152334,
0.015598335,
0.06201223,
0.02090667,
0.018184448,
0.0035967366,
-0.03854667,
0.02139667,
0.004927223,
-0.02337028,
0.005801737,
-0.04254834,
0.053464454,
-0.016973058,
-0.01968167,
-0.016905002,
-0.03291167,
-0.016823336,
-0.010970557,
0.022267781,
0.009507363,
-0.037593894,
0.015067502,
0.020716114,
0.02910056,
-0.011555835,
-0.000040540912,
-0.021954725,
0.046277784,
-0.010051807,
-0.035116673,
-0.019531947,
-0.035035003,
0.0059446534,
0.031904448,
0.013270835,
-0.03718556,
-0.0013296356,
-0.021736948,
-0.057547785,
0.009269168,
0.059507787,
0.0010820834,
-0.020321392,
-0.020661669,
0.009221529,
0.0023734379,
-0.02324778,
0.010010974,
0.011555835,
0.008030557,
-0.01992667,
-0.0033602435,
-0.006570765,
-0.06223001,
0.036750004,
-0.025765836,
0.010358057,
-0.035661116,
-0.022295004,
0.008125834,
-0.011167918,
0.005784723,
0.0073908344,
-0.00590382,
-0.012005001,
-0.030026115,
0.041731674,
-0.03974445,
-0.0642989,
0.023166114,
0.0077243065,
-0.028828338,
0.017912224,
0.007874029,
-0.016619168,
0.015339725,
0.019763336,
-0.023315836,
0.0029621185,
0.0044474313,
0.036586672,
-0.017326947,
-0.038927782,
0.016932225,
-0.037975006,
0.034817226,
0.013189169,
-0.077855565,
-0.017653614,
-0.05586001,
-0.025806671,
0.0035831255,
-0.02090667,
0.029291116,
0.031332783,
-0.04034334,
0.024064448,
-0.036831673,
-0.019776948,
-0.04020723,
-0.04891834,
0.020443892,
0.047638897,
0.017272502,
0.05673112,
-0.011562641,
-0.01565278,
0.042657226,
-0.032748338,
-0.011283613,
-0.025153337,
-0.010909307,
-0.027902782,
-0.013447779,
-0.0055295145,
0.008023751,
-0.009820418,
-0.027167782,
-0.012542641,
-0.011909724,
0.013978613,
0.009344029,
-0.013747225,
0.05689445,
-0.009527779,
-0.06914446,
-0.017177224,
0.05223945,
-0.019627225,
0.018810559,
-0.00020278431,
-0.049081672,
-0.0137404185,
-0.05749334,
0.006073959,
0.001810278,
0.012644724,
-0.039798893,
-0.024010003,
0.0012224481,
0.027235838,
0.012869308,
-0.04026167,
-0.0057983343,
-0.04758445,
0.05370945,
-0.03057056,
0.0035388893,
-0.036886115,
0.020239726,
0.0057166675,
0.021070004,
0.039172783,
-0.04023445,
0.011834863,
-0.02092028,
0.034163892,
0.059290007,
-0.02836556,
-0.0060671535,
-0.021070004,
-0.02092028,
-0.0074180565,
0.00905139,
-0.020280559,
0.02556167,
-0.02202278,
0.057384454,
-0.027548892,
-0.05199445,
-0.034191117,
-0.006996112,
0.05771112,
-0.041350562,
0.03400056,
0.024350282,
0.00660139,
0.013243613,
0.016360559,
-0.024894726,
0.029563338,
-0.037838895,
-0.026242226,
0.017081946,
-0.023492781,
-0.04023445,
-0.0007060765,
0.0030965281,
0.035416115,
-0.025983615,
0.045678895,
0.07415334,
0.0024891323,
0.0069484734,
-0.040642783,
0.0059650703,
-0.007043751,
0.0040561114,
0.018375002,
0.014359724,
-0.041023895,
0.012120696,
-0.04586945,
-0.04096945,
-0.030897226,
0.03775723,
0.040887784,
0.020021947,
0.03996223,
-0.06631334,
-0.04412723,
-0.028066115,
0.01589778,
-0.0102423625,
0.0080509735,
0.06892668,
-0.003060799,
-0.0028991671,
0.042140007,
-0.048265006,
-0.0021879864,
-0.046032783,
0.06005223,
0.0137404185,
-0.027957225,
0.02458167,
0.005093959,
-0.045787785,
-0.06566001,
0.0020603822,
-0.0026660766,
-0.025058059,
-0.028773893,
-0.03244889,
0.00782639,
-0.0037056254,
0.00069459213,
0.0029451046,
-0.008037362,
0.0121547235,
-0.0033109032,
-0.041432228,
-0.040152784,
0.04853723,
0.058527786,
-0.02458167,
-0.0012564759,
-0.092228904,
-0.002579306,
-0.033565003,
-0.004634584,
0.01823889,
0.015353335,
0.024799448,
0.012127502,
0.019436669,
0.05896334,
-0.030597782,
0.027739448,
0.03473556,
-0.041187227,
-0.07731112,
-0.004314723,
0.0049952785,
-0.0071730567,
0.026391948,
0.0035661117,
-0.013842502,
0.0035865284,
0.03547056,
0.020253336,
-0.055206675,
0.03775723,
-0.010711946,
0.025112504,
-0.026487226,
-0.021110836,
-0.027371949,
0.012631113,
-0.00541382,
0.003726042,
-0.00008411243,
-0.0034317018,
-0.0016843752,
-0.04630501,
-0.027848337,
0.015489447,
-0.038710006,
-0.01724528,
0.0019463892,
-0.040180005,
-0.022403892,
0.036750004,
0.0016401391,
0.014141946,
-0.034408893,
0.039553896,
-0.034817226,
-0.009010557,
-0.0002800912,
-0.0039948616,
0.018756114,
-0.01216153,
-0.034517784,
0.043691672,
0.026187781,
-0.027249448,
0.009078613,
-0.0032904865,
0.003620556,
-0.03329278,
-0.0010106252,
0.021587225,
-0.00015588978,
0.00215566,
0.024976393,
0.038083892,
-0.032203894,
-0.0046413895,
-0.012991807,
-0.001587396,
-0.026460003,
0.015611947,
-0.012515418,
0.057820007,
0.011936946,
0.028038893,
0.0012990106,
0.02959056,
0.05504334,
-0.0032088198,
-0.0014682988,
0.018211668,
-0.0099156955,
-0.06892668,
0.04464445,
0.021845836,
-0.011079446,
-0.006611598,
-0.016442224,
-0.022199726,
-0.03476278,
-0.027848337,
-0.008854029,
0.022349447,
0.030243892,
-0.020076392,
0.006839584,
-0.0077719456,
-0.013243613,
-0.00990889,
-0.07192112,
-0.061740007,
-0.02752167,
-0.039717227,
0.029073337,
-0.015067502,
-0.016768891,
0.018157225,
0.018892225,
0.015217224,
-0.005740487,
0.04279334,
0.006689862,
0.036123894,
-0.06898112,
0.009269168,
0.034055006,
-0.013468197,
-0.020443892,
-0.045080006,
-0.00041513896,
0.048101675,
0.013291252,
-0.018851392,
-0.011521807,
0.00184941,
-0.00020671877,
0.031087782,
-0.028910004,
0.002662674,
-0.045570005,
0.028093338,
-0.0014130037,
-0.001464896,
0.008125834,
0.02358806,
0.0613589,
-0.0015142363,
-0.0067783343,
0.0042534727,
0.05245723,
-0.03606945,
0.04072445,
0.028665004,
0.04644112,
-0.0062679173,
0.013379724,
0.011521807,
0.045406673,
0.036096673,
0.029318338,
0.006387015,
0.031468894,
0.0057166675,
-0.039717227,
-0.03617834,
0.0672389,
0.049952786,
-0.03876445,
-0.00758139,
0.011773612,
0.0023121878,
-0.03631445,
-0.0063155564,
-0.013012224,
-0.0030148616,
-0.002203299,
-0.033510562,
-0.01738139,
0.016483057,
0.023016391,
-0.008547779,
-0.024200559,
-0.028175004,
0.03707667,
0.037240006,
-0.048401117,
0.0041820146,
0.029427227,
0.051422786,
0.017218057,
0.04401834,
0.02592917,
0.030870004,
0.0067987507,
0.02885556,
-0.01301903,
0.0071322233,
-0.038301673,
-0.03721278,
-0.014386946,
0.04646834,
-0.06642223,
-0.032693893,
-0.036641117,
-0.021941114,
-0.025085282,
-0.030298337,
0.024132503,
-0.063972235,
0.0005274306,
0.055233896,
0.006580973,
-0.025357503,
0.034545004,
0.0020569793,
0.02384667,
0.034163892,
0.019627225,
-0.029263893,
0.060487784,
0.042385004,
0.0033500353,
0.056948896,
0.027072504,
-0.01455028,
-0.024853893,
0.00911264,
-0.031251114,
-0.037403338,
-0.024853893,
-0.028338337,
0.009037779,
-0.009473335,
-0.033075005,
-0.021478336,
-0.0015184898,
0.00011101564,
-0.063754454,
0.005556737,
0.034191117,
0.044835005,
-0.029563338,
-0.006046737,
0.0026031253,
-0.012304446,
0.010766391,
-0.026936393,
0.034517784,
-0.00215566,
-0.052048896,
-0.039608337,
-0.039935004,
-0.019150836,
-0.054036118,
-0.01894667,
-0.025602503,
0.03781167,
0.027589725,
0.057275563,
0.009956529,
-0.031087782,
0.020634448,
0.05150445,
0.07143112,
0.026242226,
0.028392782,
0.046849452,
0.04695834,
0.0053491676,
0.005093959,
0.019041946,
-0.014332502,
0.02018528,
-0.015380558,
-0.0098680565,
-0.033946116,
-0.049707785,
-0.035878893,
0.004770695,
-0.019137224,
-0.031115005,
-0.04622334,
0.024921948,
-0.050932784,
-0.04747556,
-0.037240006,
0.034953337,
-0.010902502,
-0.0045665284,
-0.00018321835,
-0.05036112,
0.21701558,
0.05613223,
0.019259725,
0.042357784,
0.063536674,
0.062066674,
0.031251114,
-0.05183112,
0.005985487,
-0.030625004,
0.0026677782,
-0.04094223,
-0.0065911813,
0.030352782,
-0.013896947,
0.04597834,
-0.07246557,
-0.011916529,
0.019246114,
-0.055233896,
-0.05221223,
0.044671673,
0.0034878477,
0.050007228,
0.019504724,
0.014005835,
-0.015884168,
-0.034790006,
-0.0006622657,
-0.020675281,
0.0127604185,
-0.023928337,
0.02236306,
-0.009990557,
0.008649862,
0.03277556,
0.06076001,
0.001626528,
0.015081113,
-0.00590382,
0.0115966685,
-0.01735417,
0.015666392,
-0.026759448,
-0.028583337,
0.040642783,
-0.0070981956,
0.06065112,
0.04513445,
-0.062066674,
0.03805667,
-0.0082347235,
0.043501116,
-0.005740487,
-0.059017785,
-0.047829453,
-0.041187227,
-0.03645056,
-0.01504028,
0.016700836,
0.016755281,
-0.0036954172,
0.0006205817,
0.035171118,
-0.03361945,
0.056676675,
-0.020852225,
-0.012243196,
-0.050769452,
-0.023302225,
0.010439724,
0.020716114,
-0.019491114,
0.0004793664,
0.010364862,
0.027603338,
-0.014400558,
0.04630501,
0.016210835,
-0.00825514,
0.00028944883,
-0.05515223,
-0.017095558,
-0.01992667,
0.0549889,
0.042847782,
-0.043011118,
0.03634167,
0.015380558,
0.025806671,
0.013366113,
0.028828338,
-0.017558336,
0.036641117,
0.0029417018
] |
The process depicted above is repeated iteratively until some stopping condition is reached. Ideally, the stopping condition is dictated by the model, which should learn when to output an end-of-sequence (EOS) token. If this is not the case, generation stops when some predefined maximum length is reached.
Properly setting up the token selection step and the stopping condition is essential to make your model behave as you'd expect on your task. That is why we have a [~generation.GenerationConfig] file associated with each model, which contains a good default generative parameterization and is loaded alongside your model.
Let's talk code! |
[
0.010886296,
-0.0008114826,
-0.014558606,
0.021380685,
-0.016997136,
-0.030481627,
0.013673187,
0.014609409,
-0.013629642,
0.08064568,
-0.009862984,
0.012345059,
0.021612925,
-0.04084538,
-0.034342635,
-0.023906305,
0.005668131,
-0.06851108,
-0.03991642,
-0.021162959,
-0.008288099,
0.016706835,
-0.061659977,
-0.018201886,
-0.022324163,
0.011466898,
-0.009543653,
-0.002926599,
0.07483965,
0.025473932,
-0.02432724,
0.023049917,
0.009696061,
-0.035271596,
0.012134591,
-0.010029907,
0.0020829113,
-0.0034364406,
-0.044996686,
-0.04235495,
0.026954468,
-0.028362429,
0.015414994,
-0.03901648,
-0.07164634,
-0.015589175,
0.001679211,
-0.004445237,
0.0006481882,
0.008912248,
-0.01692456,
-0.011953153,
0.008353418,
-0.000051199608,
-0.023398278,
-0.0047790837,
0.004093247,
-0.024573999,
-0.028696274,
-0.033820093,
0.00778733,
0.037913337,
-0.0022081037,
-0.0810521,
-0.0092751235,
0.016619744,
-0.02641741,
-0.008621946,
-0.03309434,
-0.08227137,
-0.036606982,
-0.00077746296,
-0.013012752,
-0.026722226,
-0.03608444,
-0.0035489323,
0.029030122,
-0.027709251,
-0.029901026,
0.038784243,
-0.013244993,
0.01663426,
0.018637339,
-0.015952053,
-0.011365293,
-0.04804485,
0.046099834,
-0.03292016,
0.015182753,
-0.011583018,
-0.020683961,
0.04276137,
-0.018738944,
0.021162959,
0.010704857,
0.046244983,
-0.0030717498,
0.055766862,
0.008215524,
-0.00014299602,
0.006241476,
0.043777425,
-0.03350076,
0.034720026,
-0.00086863566,
0.0034981295,
0.027418949,
0.012170878,
-0.024791723,
0.01319419,
-0.011096764,
-0.0358522,
0.010566964,
-0.016387504,
-0.031875074,
0.056666795,
0.019754998,
0.025023965,
-0.07193664,
-0.011815259,
0.01554563,
-0.0010523419,
0.044416085,
-0.020843627,
0.018550247,
-0.06711764,
0.02019045,
0.0400906,
-0.06752406,
0.013368371,
0.037071466,
0.008418735,
0.006009235,
0.036781162,
0.006005606,
0.022701554,
-0.03817461,
0.0052653383,
0.049786657,
-0.015748842,
0.014173957,
0.009594455,
0.0033439072,
0.086742006,
-0.002304266,
-0.006027379,
0.03846491,
-0.007707497,
-0.02142423,
0.0046375617,
-0.07216888,
0.014159442,
-0.011452382,
0.046883646,
-0.022527374,
0.008222782,
0.0054068603,
-0.025198145,
-0.019087305,
0.0129909795,
-0.0060491515,
-0.00790345,
-0.0033511647,
0.036665045,
-0.016648775,
0.022454798,
-0.03379106,
-0.015821416,
0.0074679987,
-0.036926314,
0.063692085,
0.0031406963,
0.031933133,
0.035126448,
0.029392999,
0.022222558,
0.045025717,
0.013528037,
0.031991195,
0.042587187,
0.010545191,
-0.019696938,
0.007867163,
0.013121615,
0.015923021,
-0.009449304,
0.024965905,
-0.02759313,
-0.025967443,
-0.014660211,
0.051905856,
0.03628765,
-0.0089557925,
0.010719372,
-0.042093676,
0.0478997,
-0.012686163,
-0.00031479538,
-0.014645697,
-0.034865174,
0.0049714083,
0.025996475,
-0.01375302,
0.03747789,
-0.031991195,
0.00066224963,
0.01560369,
0.04528699,
-0.035039358,
0.018767973,
0.045896623,
-0.010995159,
-0.03405233,
-0.023209581,
0.036519893,
-0.010625024,
-0.022527374,
0.039887387,
0.009144488,
-0.0014905153,
0.020117873,
0.008912248,
0.046477225,
-0.029392999,
-0.020872658,
-0.019145366,
0.027665706,
0.02039366,
0.027041558,
0.025401356,
-0.0023895418,
0.015995597,
0.032339554,
0.05283482,
0.0060636667,
0.01913085,
0.038987454,
0.020959748,
-0.020742022,
0.024356272,
-0.00946382,
-0.019856604,
0.029567178,
0.020843627,
-0.011227399,
0.013390143,
0.016997136,
-0.013586096,
-0.059047267,
0.01331031,
-0.05692807,
0.044009663,
0.02291928,
-0.0122797415,
-0.04351615,
-0.027970523,
0.051644586,
0.02265801,
0.0043472606,
-0.023906305,
0.023398278,
0.045896623,
0.035039358,
-0.06694346,
0.015647236,
0.04319682,
0.0005121095,
0.046274014,
-0.03329755,
0.009725091,
-0.010058937,
-0.030597748,
-0.043777425,
0.012940177,
-0.015531115,
-0.003770287,
-0.0067495033,
-0.04058411,
0.018695397,
0.013905428,
-0.00092488155,
-0.025749717,
-0.018869579,
0.04955442,
0.018913124,
0.003144325,
-0.068569146,
0.021119414,
0.00085684215,
0.060847133,
-0.005468549,
0.016300414,
-0.014877937,
-0.044851538,
-0.011270945,
-0.0058931145,
0.013557067,
-0.032687917,
0.004822629,
0.0047028796,
-0.018695397,
0.023877274,
-0.00054658274,
0.003220529,
-0.024893329,
0.019392122,
0.051151074,
-0.018376067,
0.034400694,
0.053821847,
-0.014377167,
0.026852863,
0.010305693,
0.045199897,
-0.013999776,
0.032862097,
0.017156802,
0.0155601455,
-0.010385526,
-0.012221681,
-0.039248724,
-0.00079560676,
-0.018637339,
0.0039190664,
0.009398501,
0.04996084,
-0.028841425,
-0.05245743,
0.0008754396,
-0.040032536,
-0.041222773,
0.015066633,
-0.0028757963,
0.040264778,
0.008113919,
0.013963488,
-0.04313876,
-0.0016510881,
-0.013890913,
0.034081362,
0.01586496,
-0.02374664,
-0.0042819427,
0.029480089,
0.029131727,
-0.0028195505,
0.055331413,
-0.04996084,
0.0028231794,
-0.034952264,
0.030975139,
0.0206259,
0.024414333,
-0.0029465572,
0.0019885632,
0.020292055,
-0.037623037,
0.012149106,
0.016227838,
0.022019347,
0.053096093,
0.001133082,
-0.0022843077,
0.02403694,
-0.018550247,
-0.05974399,
-0.008629204,
0.021830652,
0.06897557,
-0.0074063097,
0.020829111,
0.025256205,
-0.012207166,
0.037419826,
-0.03834879,
-0.042500097,
0.039684176,
0.01698262,
0.044009663,
-0.039597087,
-0.022251587,
-0.0036668673,
0.0000036854647,
0.02641741,
0.02744798,
0.06299537,
0.014028806,
-0.026635136,
-0.013404659,
-0.007772815,
0.024414333,
0.005776994,
-0.0020048928,
-0.013506264,
-0.0776846,
-0.034923237,
-0.011662851,
0.04104859,
0.05968593,
0.017301952,
0.030626778,
-0.043806452,
0.019334061,
0.02280316,
-0.023528913,
-0.017563224,
-0.039684176,
0.048219033,
0.012802283,
-0.006985373,
-0.017679343,
-0.010421813,
-0.012983722,
0.03405233,
-0.006662413,
-0.014195729,
-0.053531542,
-0.000054913424,
0.007576862,
0.028594669,
-0.0077945874,
-0.044416085,
-0.029233333,
0.03747789,
0.027172193,
-0.05295094,
0.0026453699,
-0.028130187,
0.0025619082,
0.012040243,
0.01554563,
-0.012678905,
-0.023078946,
-0.017650314,
-0.025227176,
0.034371663,
0.08122628,
-0.00044565773,
0.018477673,
-0.03120738,
0.0012156364,
0.010044422,
-0.0016438307,
0.006089068,
0.0099863615,
-0.00473191,
-0.020016268,
0.02394985,
0.0020593242,
-0.021250049,
0.014086867,
-0.03846491,
-0.0038138323,
-0.049235087,
0.03582317,
0.002271607,
-0.012170878,
-0.016256869,
0.032455675,
0.023703095,
-0.01545854,
-0.023224097,
0.018593792,
-0.030017145,
-0.06305342,
0.030104237,
0.034981295,
-0.0050584986,
0.0155601455,
0.0036033639,
-0.004093247,
0.027462495,
0.016561685,
-0.03384912,
0.0006459202,
0.003153397,
0.0155601455,
-0.021917742,
-0.026838347,
0.019479211,
-0.024994934,
0.046738494,
0.01683747,
-0.035358686,
-0.036519893,
-0.06984647,
0.0071885837,
0.014935997,
-0.03347173,
0.024530452,
0.0179261,
-0.014950513,
0.015748842,
-0.016503625,
0.00449604,
-0.018216401,
-0.0376811,
-0.016503625,
0.067059584,
0.015081148,
0.033529792,
-0.012780511,
-0.022033863,
0.038493942,
-0.017679343,
0.010646797,
-0.029712329,
-0.00790345,
-0.0073228483,
-0.029959084,
-0.021119414,
0.016169777,
-0.024472393,
-0.020437205,
0.023645034,
0.016300414,
0.020292055,
-0.052051008,
-0.03628765,
0.036665045,
-0.021874197,
-0.072110824,
-0.011321748,
0.02148229,
0.03602638,
0.016532654,
0.013557067,
-0.03582317,
-0.0017082412,
-0.039161634,
0.039074544,
-0.025865838,
0.015371449,
-0.022251587,
-0.03823267,
-0.023543429,
0.049496356,
0.007373651,
-0.09063204,
-0.013005494,
-0.035039358,
0.032542765,
-0.024878815,
-0.03814558,
-0.009071913,
-0.0022970084,
-0.003911809,
0.010523419,
-0.0073845373,
0.0060455226,
0.0101024825,
0.00719947,
0.022193529,
0.044503175,
-0.03840685,
0.018201886,
-0.025183631,
-0.0014714643,
-0.017505163,
-0.032455675,
-0.017055197,
0.010683085,
-0.04058411,
0.02248383,
-0.032078285,
-0.03570705,
-0.04488057,
-0.00714141,
0.05219616,
-0.07483965,
-0.039306786,
-0.046303045,
0.0473191,
0.016576199,
0.060382653,
0.010116997,
0.003476357,
-0.056899037,
-0.03602638,
0.018303491,
-0.021787107,
-0.019232456,
0.011016931,
0.003044534,
0.06316955,
-0.017606769,
0.030684838,
0.055621713,
-0.0031461394,
0.00975412,
-0.070775434,
-0.0029665155,
0.00030708426,
-0.033936214,
-0.023180552,
0.012925661,
-0.058902115,
0.002010336,
-0.05486693,
-0.05774091,
-0.01680844,
0.0014270119,
0.041977555,
-0.04293555,
0.055999104,
-0.016474593,
-0.049612477,
-0.07182052,
0.039248724,
0.0052725957,
0.023630518,
0.034603905,
0.012744224,
0.021641955,
-0.0056282147,
-0.028899485,
-0.032658886,
-0.017447103,
0.041484043,
0.003846491,
-0.016140748,
0.019972723,
0.0054177465,
-0.040061567,
-0.09161906,
0.019058274,
0.019145366,
-0.019145366,
-0.023993395,
-0.00022498344,
0.010625024,
-0.014435228,
0.003068121,
0.047290068,
-0.017287437,
-0.0034110392,
0.0076421793,
0.011720912,
-0.04055508,
0.0313235,
0.058640845,
-0.03152671,
-0.011655593,
-0.05042532,
-0.012098303,
-0.02782537,
0.004837144,
0.038900364,
-0.010153285,
0.014028806,
0.020524295,
0.01586496,
0.07129798,
-0.022324163,
0.003846491,
-0.0070688347,
-0.03376203,
-0.041861434,
-0.030481627,
0.0037666583,
-0.028899485,
0.0070434334,
0.016140748,
-0.00502584,
-0.00014957317,
0.03582317,
-0.01372399,
-0.0852905,
0.021990318,
-0.029378483,
-0.0400906,
-0.02016142,
-0.032455675,
-0.0062342184,
0.004463381,
-0.012795026,
-0.05312512,
0.00020128307,
0.03318143,
-0.021932257,
-0.055331413,
-0.024994934,
-0.0154440245,
-0.033036277,
0.0041404213,
-0.00071259873,
-0.05245743,
-0.00831713,
0.013716732,
-0.036897283,
-0.00820101,
-0.05962787,
0.024559483,
-0.02016142,
0.012932919,
-0.009833953,
-0.0022933795,
-0.012192651,
-0.0003751236,
-0.018114796,
0.030191327,
0.05013502,
-0.034284573,
0.0038356048,
0.015240814,
0.038900364,
-0.019101819,
0.011358035,
0.052225187,
-0.007526059,
0.024994934,
-0.0037448856,
0.022077408,
-0.046332072,
0.005606442,
0.0006858366,
-0.041484043,
0.027012529,
0.04084538,
0.00339471,
0.045112807,
0.008672749,
0.035387717,
0.012257969,
0.04040993,
0.019334061,
-0.021206504,
0.002095612,
0.02360149,
0.0018089394,
-0.036432803,
0.018347036,
0.022440284,
-0.015995597,
0.026852863,
0.0054141176,
-0.01442797,
-0.06734988,
-0.027999552,
-0.025590053,
0.013818338,
0.020771053,
-0.052021977,
0.014819877,
0.01557466,
-0.008621946,
0.02039366,
-0.03332658,
-0.034720026,
-0.0050004385,
-0.05039629,
-0.004746425,
-0.03550384,
-0.018550247,
0.009703318,
0.013150645,
0.030510658,
-0.00949285,
0.06711764,
0.024385301,
0.017998675,
-0.05022211,
-0.022440284,
0.017098742,
-0.029189788,
-0.038697153,
-0.030597748,
0.016169777,
0.027375404,
0.007838133,
-0.026765771,
-0.03788431,
0.0016402019,
0.0019196168,
0.029233333,
-0.01918891,
0.009434789,
-0.06212446,
0.035387717,
-0.024269182,
-0.016474593,
0.002153672,
0.020364631,
0.046941705,
0.012178136,
-0.0034600275,
0.023398278,
0.07884581,
-0.033733003,
0.022048377,
0.028957546,
0.025561022,
-0.027985036,
0.015763355,
-0.023514397,
0.016329443,
0.043719362,
0.021162959,
-0.0037049693,
0.026910923,
0.007010774,
-0.03309434,
-0.021250049,
0.03312337,
0.032223433,
-0.009623486,
-0.016010111,
-0.0106975995,
0.0028540238,
-0.009862984,
0.027709251,
-0.0066805566,
0.010269405,
0.011387065,
0.022672525,
-0.06793048,
-0.011104021,
0.00823004,
-0.002930228,
-0.015298874,
-0.04244204,
0.015182753,
0.04261622,
0.00087090366,
-0.022048377,
0.05004793,
0.037535947,
0.039219692,
0.02627226,
-0.023311187,
0.03364591,
0.017330982,
0.04531602,
-0.022904765,
-0.022556404,
-0.0065317773,
-0.011111279,
-0.04566438,
0.019784028,
-0.037361767,
-0.060963254,
0.024399817,
-0.01680844,
-0.0037739158,
-0.028609185,
0.025198145,
-0.023412792,
0.00042569952,
0.027868917,
-0.014718272,
-0.04032284,
0.022556404,
-0.02154035,
0.009500107,
0.022469314,
0.07663952,
0.000077734956,
0.08755485,
0.026025504,
-0.012453922,
0.047290068,
0.027128648,
0.0038392337,
-0.025052994,
0.022382224,
-0.007428082,
-0.013687702,
-0.055708803,
-0.024559483,
0.0021119413,
0.019813057,
-0.010153285,
-0.029625239,
0.021293594,
-0.0004261531,
-0.011212884,
0.024675604,
0.108224295,
0.01425379,
0.010770175,
-0.024254667,
-0.010407299,
-0.024748178,
0.011292717,
-0.030191327,
0.00221899,
-0.028188247,
-0.0575377,
-0.0035561898,
-0.037013404,
-0.032542765,
-0.007446226,
-0.009950074,
-0.028043097,
0.039655145,
0.040177688,
0.020611387,
0.015168238,
0.0066224965,
0.0048444015,
0.06711764,
0.042674277,
0.008578401,
0.03599735,
0.054286327,
-0.019595332,
0.014703756,
0.021017808,
0.0046593347,
0.009717833,
0.0005606442,
0.005824168,
-0.021337138,
-0.049583446,
-0.05530238,
-0.028725306,
0.024225635,
0.010501646,
-0.017708374,
-0.0286237,
0.0011947709,
-0.042093676,
-0.004307344,
-0.012286999,
0.03355882,
-0.02847855,
-0.0025328782,
0.009862984,
-0.060498774,
0.25174922,
0.054083116,
0.058960177,
-0.0004699251,
0.020408176,
0.06694346,
0.023586974,
-0.02397888,
0.007772815,
0.00834616,
-0.010581479,
-0.04546117,
0.021046838,
0.02265801,
-0.0316138,
0.0151246935,
-0.05986011,
0.00066224963,
0.01260633,
-0.023761155,
-0.051644586,
0.036694072,
0.012381347,
0.036984373,
0.0076784673,
0.006644269,
0.03091708,
-0.030220356,
-0.017026166,
-0.01131449,
0.06340179,
-0.0075913765,
0.039451934,
-0.035039358,
0.017882554,
0.03570705,
0.01201847,
-0.073213965,
-0.0066878144,
0.016184293,
0.034313604,
-0.056028135,
-0.021119414,
-0.018753458,
-0.04534505,
0.0313235,
-0.04531602,
0.046680436,
0.033994272,
-0.06218252,
0.01386914,
-0.018724428,
0.04302264,
-0.026460955,
-0.04296458,
0.0067132157,
-0.049989868,
-0.016489109,
-0.021772591,
0.030684838,
-0.03071387,
0.0064555733,
0.015748842,
0.024414333,
-0.027607646,
0.004183966,
-0.0002794149,
0.028057612,
-0.04534505,
-0.013295796,
0.037739158,
-0.017055197,
0.027839886,
-0.016968107,
0.025111055,
0.025952928,
-0.012584558,
0.06885945,
0.0043799197,
-0.048567392,
0.017142287,
-0.045199897,
-0.011800745,
-0.047261037,
0.02127908,
0.038987454,
-0.029901026,
0.01824543,
0.012069273,
0.028536608,
0.018521218,
0.027375404,
0.021612925,
0.015821416,
-0.016939076
] | generated_ids = model.generate(**model_inputs)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'A list of colors: red, blue, green, yellow, orange, purple, pink,'
Finally, you don't need to do it one sequence at a time! You can batch your inputs, which will greatly improve the throughput at a small latency and memory cost. All you need to do is to make sure you pad your inputs properly (more on that below). |
[
0.013970766,
0.01790122,
0.010115466,
0.013850523,
-0.05212546,
-0.028903479,
0.019208865,
0.0018337101,
-0.0011216444,
0.06733624,
0.0034062667,
0.03405891,
-0.0032503263,
-0.04136369,
-0.04479062,
0.0096495235,
0.0018149221,
-0.039680284,
-0.011648568,
-0.00009264839,
0.0017980129,
-0.0008872639,
-0.07773728,
-0.026258128,
0.010761774,
0.02448454,
0.03802694,
0.018096615,
0.07130427,
0.025852306,
-0.032375503,
0.038327545,
0.005929497,
-0.031623982,
-0.008529758,
-0.013399611,
0.007928542,
-0.05308741,
-0.024980541,
-0.029023722,
0.04791695,
-0.004298697,
0.0042686365,
-0.03183441,
-0.039079066,
-0.032796357,
-0.01761564,
-0.006632169,
0.00686514,
-0.0041934843,
-0.02600261,
-0.012655606,
0.018141706,
-0.0045542144,
-0.043738496,
-0.00003833929,
-0.013700219,
-0.012595484,
-0.045632325,
-0.02601764,
-0.008086361,
0.00603471,
0.005786708,
-0.08314823,
-0.008852912,
-0.00079097535,
-0.0044001527,
0.016593574,
-0.012400089,
-0.05459045,
-0.024694964,
0.022154825,
-0.027791228,
-0.07178524,
-0.041994967,
-0.009634493,
-0.015917204,
-0.013234276,
-0.03766621,
0.0068388367,
0.027295224,
0.0193742,
0.0060459827,
0.0010765531,
0.0062338626,
-0.026964556,
0.022560647,
0.008725153,
0.014692226,
-0.040912777,
-0.014902652,
0.03989071,
-0.033127025,
0.018532496,
0.024003565,
0.05492112,
0.0043550613,
0.043738496,
0.00877776,
-0.016217813,
0.025536668,
0.07899984,
-0.06390931,
0.011272808,
0.0013499188,
0.016217813,
0.0190285,
0.026618857,
0.00604974,
-0.0070004137,
-0.013392095,
-0.01791625,
0.0021361972,
-0.008882972,
-0.04127351,
0.058348052,
-0.022169854,
0.0030755978,
-0.06463076,
-0.026198005,
-0.023898352,
-0.0015594051,
0.019238925,
-0.041513994,
-0.0023654108,
-0.043167338,
0.02860287,
0.05344814,
-0.048488103,
0.014286405,
0.033728242,
-0.009100913,
0.023943443,
0.020185841,
-0.01316664,
0.03369818,
-0.017315032,
-0.0017313154,
0.052937105,
-0.0063428334,
0.02783632,
0.015977327,
0.014835015,
0.085793585,
0.01390313,
0.012339967,
0.058348052,
-0.023612775,
-0.023161862,
0.03589262,
-0.036944747,
0.009454128,
0.02162876,
0.0505623,
-0.022801133,
0.001782043,
0.002004681,
0.016007386,
-0.030812342,
-0.0045730025,
-0.0052531282,
0.02089227,
-0.015691748,
0.038778458,
-0.0023785625,
0.017871158,
-0.031233193,
0.01681903,
0.005993376,
-0.058197748,
0.035471767,
0.005069006,
0.019674808,
0.025521636,
0.015781932,
0.0337583,
0.041604176,
0.0402815,
-0.0052982196,
0.04178454,
-0.0010934623,
0.007996178,
-0.004512881,
0.011633538,
0.015842052,
0.017720854,
0.0035979045,
-0.024950482,
-0.021508517,
0.008484666,
0.050472118,
0.04827768,
0.018111644,
0.020005476,
-0.014308951,
0.029790273,
-0.026077762,
0.02452963,
-0.024123808,
-0.03802694,
-0.026468553,
0.043798614,
-0.02239531,
0.023176894,
-0.008582365,
0.0074212654,
0.0029929304,
0.047796704,
-0.010145527,
0.012437665,
0.06511174,
0.009762252,
-0.008860427,
-0.020802088,
0.02637837,
-0.025115816,
-0.018998438,
0.023567684,
-0.011866509,
0.030436581,
-0.005482342,
0.049900964,
0.022410342,
0.012745788,
-0.023327196,
-0.042325635,
0.019268986,
0.02083215,
-0.013286883,
0.012610515,
-0.026468553,
0.0063766516,
0.01758558,
0.03441964,
0.02675413,
0.044850744,
0.06048237,
0.044159345,
-0.013256822,
-0.012783364,
-0.005005127,
0.0036617836,
0.017675763,
-0.0137152495,
0.031654045,
-0.008424545,
0.014669681,
-0.008559818,
-0.047766645,
0.016353086,
-0.0303464,
0.061805047,
0.014361558,
-0.02526612,
-0.048578285,
-0.039409734,
0.024860298,
0.012738273,
-0.01829201,
-0.028332323,
0.013685188,
0.034690186,
0.04313728,
-0.03333745,
-0.00495252,
0.05005127,
0.023642836,
0.021403305,
-0.028738145,
-0.017074546,
-0.017886188,
-0.053808868,
-0.07022208,
0.017119637,
-0.003034264,
-0.012888577,
-0.015676718,
-0.047015123,
0.00089759735,
-0.051674552,
-0.00048754894,
-0.019479413,
-0.018772982,
0.04280661,
0.012933668,
0.016548483,
-0.07058281,
0.013835493,
-0.011460688,
0.06252651,
-0.023612775,
0.02891851,
-0.03001573,
-0.01647333,
-0.032676112,
-0.008304302,
0.03114301,
-0.001451374,
-0.0044189407,
0.007477629,
-0.010070375,
0.038207304,
0.02009566,
0.01904353,
-0.026258128,
0.048157435,
0.0445802,
-0.02020087,
0.031263255,
0.048758652,
-0.01760061,
0.029023722,
0.0270848,
0.005816769,
-0.010656561,
0.039860647,
0.0498709,
-0.024048656,
-0.034900613,
-0.03814718,
-0.069019645,
0.00039478313,
0.028332323,
-0.0154212015,
0.029369421,
0.053297836,
0.02780626,
-0.053628504,
0.0070642927,
-0.031473678,
-0.04208515,
-0.011069898,
0.00078205107,
0.046113297,
-0.008507213,
0.02454466,
-0.027701046,
-0.03114301,
-0.029700091,
0.017525459,
0.004918702,
-0.041033022,
0.0029309301,
0.03922937,
-0.016728846,
0.013354519,
0.016368117,
-0.041153263,
-0.003158265,
-0.022831194,
0.009333885,
-0.009063338,
0.030120943,
-0.008627456,
-0.007800783,
0.039469857,
-0.015616597,
0.01355743,
-0.025386363,
0.010243225,
0.055552397,
0.010536318,
0.0022395311,
0.027595833,
-0.0044001527,
-0.036644142,
-0.010370983,
0.0129411835,
0.035982803,
-0.019509472,
0.020306084,
0.028662993,
-0.035321463,
0.010949654,
-0.06300748,
-0.032736234,
0.05425978,
0.0293093,
0.05934006,
-0.050321814,
-0.016127631,
-0.022365252,
-0.004321243,
0.018803043,
0.056213737,
0.053147532,
0.011280323,
-0.029384453,
-0.009837404,
-0.024860298,
0.0079059955,
-0.024244051,
-0.0048660953,
-0.028647963,
-0.06733624,
-0.024619812,
0.010145527,
0.07034232,
0.070943534,
0.02195943,
0.038778458,
-0.01791625,
0.013437187,
0.008086361,
-0.033577938,
-0.027310256,
-0.027144922,
0.06517186,
-0.024980541,
-0.004975066,
-0.014444225,
-0.019223895,
-0.030571856,
0.03775639,
0.028723115,
0.027280195,
-0.046955,
-0.028317293,
0.02854275,
0.0056890105,
-0.028166989,
-0.056604527,
-0.059941277,
0.026047701,
0.022635799,
-0.050772727,
-0.016969332,
0.0040319078,
0.008138968,
0.021478457,
0.0021249242,
-0.022605738,
-0.03339757,
-0.017315032,
-0.009589402,
0.0070830807,
0.03484049,
0.0068989582,
0.0034757825,
-0.026483582,
0.023567684,
0.03472025,
-0.0066697444,
0.0008388848,
0.020065598,
-0.018066553,
-0.005873133,
0.010288316,
-0.015691748,
-0.033457693,
0.045301657,
-0.045512084,
0.009446613,
-0.032345444,
-0.0012710091,
-0.014218768,
-0.018156735,
0.014714772,
0.03766621,
-0.030316338,
-0.037576027,
0.0031751741,
0.032375503,
0.006913989,
-0.02971512,
0.021794096,
0.015586535,
-0.011152565,
0.013564945,
0.0075941146,
0.01246021,
0.040101133,
0.036072984,
0.007056778,
-0.022485495,
-0.013407126,
0.006647199,
-0.016984364,
-0.017284973,
0.018036492,
-0.005959558,
0.044640318,
0.009536795,
-0.019644747,
-0.010521287,
-0.052846923,
0.0055612517,
-0.01722485,
-0.04280661,
0.026122853,
-0.0020178326,
-0.02011069,
0.03772633,
-0.029234149,
0.0001133152,
-0.019674808,
-0.06234614,
-0.0067862305,
0.06787733,
0.019103652,
0.05131382,
0.0025138361,
-0.033848483,
0.056905136,
-0.03841773,
-0.010904563,
-0.019584624,
0.010934624,
-0.011092443,
-0.005380887,
-0.014962774,
0.00093282486,
-0.012858517,
-0.029369421,
0.020576632,
-0.0011028564,
-0.0033874786,
-0.028407475,
-0.044459954,
0.071725115,
-0.033938665,
-0.05642416,
-0.015601566,
0.014752348,
0.06950062,
0.01761564,
0.020336146,
0.031203132,
-0.0061699837,
-0.047015123,
0.0062676813,
-0.019268986,
0.0018872559,
-0.064270034,
-0.06511174,
0.010844441,
0.046955,
-0.0022846223,
-0.113750145,
-0.01614266,
-0.019734928,
0.024604782,
-0.005764162,
-0.016428238,
-0.04391886,
-0.009604433,
-0.02269592,
0.021403305,
-0.015278412,
0.016894182,
-0.0047533675,
-0.006380409,
0.021298092,
0.041904785,
-0.034930672,
-0.004896156,
-0.019509472,
-0.0033592968,
-0.036103047,
-0.017871158,
-0.006448046,
0.053357955,
-0.05017151,
0.018322071,
-0.072807305,
-0.031263255,
-0.054891057,
0.008890488,
0.054981243,
-0.060332067,
-0.029850395,
0.009551826,
0.025175937,
0.00841703,
0.024048656,
-0.015481323,
-0.036854565,
-0.049931023,
-0.032375503,
0.042956915,
-0.029865425,
-0.016172722,
0.0032033562,
-0.03709505,
0.040792532,
-0.008665032,
0.014872591,
0.069801226,
-0.0049938536,
-0.012377543,
-0.06847855,
0.0066246535,
0.002419896,
-0.018141706,
0.027670985,
0.015105562,
-0.039830588,
0.003421297,
-0.061624683,
-0.03919931,
-0.014752348,
0.0373656,
0.037906695,
-0.042235453,
0.051373944,
-0.046774637,
-0.046624333,
-0.023582714,
0.023221985,
-0.016773937,
0.028437536,
0.062466387,
0.03363806,
0.03478037,
0.022229977,
-0.016894182,
-0.011851478,
-0.025551697,
0.03186447,
0.01100226,
-0.008236665,
0.03369818,
0.024364294,
-0.050742667,
-0.0741901,
0.008484666,
0.00219444,
-0.037425723,
-0.0010239467,
0.024830239,
0.018412253,
-0.053357955,
0.0044790623,
0.015781932,
-0.0065945927,
0.004069484,
-0.011483233,
0.023011558,
-0.017044485,
0.03952998,
0.063187845,
0.007301022,
0.01904353,
-0.054981243,
-0.01244518,
-0.024439447,
0.04427959,
0.02818202,
0.0029196572,
-0.007195809,
0.029068815,
0.027716076,
0.08898003,
-0.023582714,
-0.011678629,
0.0075602964,
-0.03336751,
-0.050411996,
-0.025055693,
0.026543705,
-0.02712989,
0.013174155,
-0.006493137,
-0.01609757,
0.022650829,
0.058017384,
0.0057228287,
-0.058047444,
0.02230513,
-0.009078368,
-0.049419988,
-0.019960385,
-0.04178454,
-0.0215987,
0.037606087,
-0.0010774925,
-0.02633328,
0.015616597,
0.017931279,
-0.005106582,
-0.038718335,
-0.0066922903,
-0.01376034,
-0.044520076,
0.0033499028,
-0.008191573,
-0.03270617,
-0.0049412474,
-0.0064330157,
-0.010558863,
-0.018998438,
-0.037966818,
0.03670426,
-0.028076807,
-0.029985668,
0.020005476,
-0.0067824726,
-0.037846573,
-0.028392445,
-0.0051216125,
0.03249575,
0.058378115,
-0.02020087,
0.017750915,
0.009739706,
0.00031892653,
-0.02897863,
0.012768334,
0.043828677,
0.012670636,
0.024033627,
-0.01940426,
0.0058205263,
-0.022320159,
0.016127631,
-0.018457344,
-0.008552304,
0.022139795,
0.02706977,
0.013392095,
0.022049611,
0.037936755,
0.016608603,
-0.00017050121,
0.029113906,
0.011919116,
-0.026182976,
0.009574371,
0.01244518,
-0.00114419,
-0.042265516,
0.0048247618,
0.05044206,
-0.051373944,
-0.0016073146,
-0.020411298,
-0.028662993,
-0.03658402,
-0.027190013,
0.011062382,
0.028061775,
0.030361429,
-0.05891921,
0.016653694,
0.026152914,
-0.030616947,
0.017856127,
-0.039409734,
-0.012542877,
-0.015263381,
-0.03327733,
-0.011761297,
-0.03192459,
-0.01318167,
0.015270897,
-0.0013856159,
-0.014496831,
0.0045730025,
0.07719619,
0.0046443967,
0.0061699837,
-0.06009158,
-0.03258593,
0.013121548,
-0.03117307,
-0.027625894,
-0.055402093,
0.028362384,
0.059971336,
0.04803719,
-0.038267426,
-0.003517116,
0.011663598,
-0.02455969,
0.03517116,
0.016202783,
0.046594273,
-0.048578285,
0.026032671,
-0.0263934,
-0.018246919,
-0.0066998056,
0.042656306,
0.0337583,
0.025040664,
0.0011620387,
0.0046782154,
0.054410085,
-0.05561252,
0.027881412,
0.029189058,
0.037485845,
-0.027205043,
0.014940228,
-0.026483582,
0.022861253,
0.049720597,
0.0003896164,
-0.040552046,
0.04394892,
0.011024806,
-0.071725115,
-0.033998787,
0.040942837,
0.049029198,
-0.0010455529,
-0.016698785,
-0.015451262,
-0.00604974,
0.005388402,
0.009311339,
0.0019464381,
0.017841097,
0.004065726,
-0.0008656577,
-0.021042574,
0.017856127,
0.020907301,
-0.012362513,
-0.01648836,
-0.0037087537,
0.020847179,
0.020666813,
0.0041183326,
0.0104235895,
0.025506606,
0.032135017,
0.0351411,
0.011160079,
-0.019299047,
0.019208865,
0.021253001,
0.027159952,
-0.042596184,
0.003922937,
-0.035050917,
-0.0059633153,
-0.039650224,
0.02633328,
-0.035471767,
-0.02564188,
0.010040314,
0.00029849456,
-0.012189663,
-0.036343534,
0.006797503,
-0.04497099,
0.012279845,
0.041213386,
-0.023116771,
-0.03992077,
0.041333627,
-0.020441359,
0.022846224,
0.024574721,
0.026258128,
0.023312166,
0.049510173,
-0.010649046,
-0.025175937,
0.04650409,
-0.008394484,
-0.0017454064,
-0.01570678,
0.013136579,
-0.012505301,
0.00371439,
-0.043467946,
-0.045962997,
0.026167944,
0.00039313917,
-0.0135123385,
-0.011964207,
0.029820334,
0.018923286,
-0.010581409,
0.024634842,
0.077015825,
0.005106582,
0.005399675,
-0.0014119191,
-0.011648568,
-0.033788364,
-0.026152914,
-0.0351411,
0.019930324,
-0.029820334,
-0.04617342,
-0.031654045,
-0.01835213,
-0.021343183,
-0.0000064803967,
-0.011475719,
0.005418463,
0.028272202,
0.024634842,
0.04148393,
0.008597394,
0.01609757,
-0.02050148,
0.052275766,
0.034870554,
-0.0064142277,
0.02815196,
0.060632676,
0.016037447,
0.02083215,
-0.011250262,
-0.006541986,
-0.017059516,
0.03144362,
0.0015706779,
-0.017300002,
-0.033427633,
-0.042295575,
-0.021463426,
0.016217813,
0.056604527,
-0.032165077,
0.0027298983,
-0.0010464924,
-0.048067253,
-0.013241791,
-0.01485756,
0.029760212,
-0.0045730025,
-0.002998567,
0.015150654,
-0.034179155,
0.27102837,
0.049029198,
0.019629717,
-0.03408897,
0.029219117,
0.045181412,
0.026423462,
-0.041303568,
0.018502435,
-0.030707128,
0.011257777,
0.0015011622,
-0.0014410405,
0.03949992,
-0.024319204,
0.036463775,
-0.056454223,
-0.0031995985,
0.026483582,
-0.025927458,
-0.043858737,
0.035321463,
0.022365252,
0.039770465,
0.01835213,
0.020711906,
-0.004140878,
-0.045031108,
-0.0057265866,
-0.029970638,
0.033066902,
-0.021328153,
0.0003015476,
-0.04686482,
-0.003810209,
0.03249575,
0.00024166082,
-0.06282712,
-0.038928762,
0.008928063,
0.0038553004,
-0.03447976,
0.009626978,
-0.013301914,
-0.010919593,
0.040461864,
-0.025792183,
0.03366812,
0.059189755,
-0.053658564,
0.026303219,
-0.022079673,
0.024274113,
-0.0122122085,
-0.076114,
0.014188708,
-0.023402348,
-0.03814718,
-0.008469637,
0.018006431,
-0.028993662,
-0.0020554087,
0.006902716,
-0.0028858387,
-0.029083844,
0.05350826,
0.013331974,
0.038688276,
-0.04797707,
-0.032435626,
-0.024003565,
-0.015188229,
-0.018562557,
-0.0137979165,
0.028362384,
0.008319332,
-0.03297672,
0.015887143,
-0.02598758,
-0.013437187,
0.00274305,
-0.032165077,
-0.023687927,
-0.015691748,
0.018457344,
0.026483582,
-0.016413208,
-0.010836926,
0.013046396,
0.013647612,
0.012565423,
0.03189453,
-0.024980541,
-0.025251089,
0.0076842974
] | tokenizer.pad_token = tokenizer.eos_token # Most LLMs don't have a pad token by default
model_inputs = tokenizer(
["A list of colors: red, blue", "Portugal is"], return_tensors="pt", padding=True
).to("cuda")
generated_ids = model.generate(**model_inputs)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
['A list of colors: red, blue, green, yellow, orange, purple, pink,',
'Portugal is a country in southwestern Europe, on the Iber'] |
[
-0.0060335835,
0.015784059,
0.00625907,
0.005531694,
-0.034448523,
-0.044544503,
0.03113169,
0.0052989335,
0.037328932,
0.024948994,
0.011208863,
-0.0069464403,
0.036572464,
-0.033168342,
-0.021195734,
-0.003369569,
0.011870775,
0.0017247902,
-0.0556879,
0.03558323,
0.021428496,
-0.01793709,
-0.07011904,
-0.01110703,
-0.0116962055,
0.032964677,
0.025938226,
-0.022999628,
0.09060194,
0.03887097,
-0.033139247,
-0.013536466,
0.010997924,
-0.026040059,
-0.05170188,
-0.024279809,
0.0116962055,
-0.02732024,
-0.0451555,
-0.02596732,
0.045591924,
0.012503592,
0.053185727,
-0.07006085,
-0.027945783,
-0.030229744,
0.024061596,
-0.0059353877,
-0.011419802,
-0.05594976,
-0.012183547,
0.02321784,
0.012481771,
-0.024890805,
-0.014205652,
-0.0043169763,
-0.019842815,
0.012452676,
-0.045766495,
0.017107882,
-0.008343002,
0.041896854,
-0.01116522,
-0.02925506,
0.035146806,
0.0213994,
0.005313481,
-0.0024876257,
0.012299927,
-0.0114852665,
-0.0070919152,
0.048326857,
-0.032004543,
-0.01542037,
-0.01331098,
0.006226338,
0.06237976,
-0.0076883635,
-0.032877393,
0.01149254,
0.0075065196,
0.04372984,
-0.018679013,
-0.0027531178,
-0.027683929,
-0.003405938,
0.031160785,
0.024716234,
0.008255717,
-0.011587098,
0.006840971,
0.06348537,
-0.025341777,
0.03113169,
0.06237976,
0.027349336,
-0.0032422782,
0.025981868,
-0.0035041336,
-0.010248727,
0.012598151,
0.082979046,
-0.01240176,
0.017006049,
-0.0304916,
0.0030167918,
0.008343002,
0.012270832,
-0.009455888,
-0.016220484,
-0.034972236,
0.01336917,
-0.004378803,
-0.0071828375,
-0.012619972,
0.035757802,
-0.0045388257,
0.015725868,
-0.040849432,
-0.031800877,
0.03892916,
-0.01940639,
0.013871059,
-0.044311743,
0.019537318,
-0.036572464,
-0.007848387,
0.052254688,
-0.036717936,
0.014445686,
-0.02679653,
0.017893448,
0.018620824,
0.011659836,
-0.019624602,
-0.00042210534,
0.0148021,
0.04637749,
-0.011914418,
-0.026301913,
0.013507371,
-0.018984511,
-0.012598151,
0.088332534,
-0.00814661,
-0.00050325325,
0.03540866,
-0.030200649,
-0.05423315,
0.0036368796,
-0.027873047,
0.01360193,
0.0151003245,
0.027887594,
0.042129613,
-0.052458353,
-0.01456934,
0.010437844,
0.041285858,
-0.016613265,
0.019973744,
0.053331204,
-0.0012138085,
0.035786897,
0.007193748,
0.007259212,
-0.030171555,
0.019028155,
-0.016235031,
-0.040587578,
0.012823638,
0.0014993036,
-0.024410736,
0.014205652,
0.0633108,
0.04914152,
0.059993967,
-0.018548086,
0.0021075718,
0.026592864,
-0.021035712,
0.031277165,
0.0085030245,
0.046872105,
0.014823922,
0.0063281707,
0.02796033,
0.030869834,
-0.033808433,
-0.00219122,
0.0034932229,
0.049461562,
-0.030666169,
0.024512568,
-0.009834123,
0.009514078,
-0.025545442,
0.04425355,
0.014576614,
-0.049403373,
-0.025429063,
0.0030622527,
-0.010845175,
0.01905725,
-0.0022148597,
-0.021297567,
-0.010786985,
0.038609114,
-0.015056682,
0.021661256,
0.0070882784,
-0.0055207834,
-0.052603826,
0.010648783,
0.034244858,
0.00199301,
-0.010059609,
-0.016758742,
-0.003464128,
0.036397893,
-0.0076738163,
-0.02873135,
-0.003385935,
-0.013216421,
0.0023894298,
-0.036077846,
0.018780846,
0.04826867,
-0.029996984,
0.007433782,
0.021093901,
0.03299377,
0.028251281,
0.020293789,
0.03523409,
0.03968563,
0.0498398,
0.022941437,
-0.015973175,
0.017995281,
0.014729363,
0.02985151,
-0.020395622,
0.039772917,
0.024788972,
-0.0039241933,
-0.012001703,
-0.025239944,
-0.0061754216,
0.012569056,
-0.032091826,
0.035263184,
0.051672786,
-0.011405255,
-0.0069646244,
-0.011296148,
-0.028003974,
0.043351606,
-0.054058578,
-0.02233044,
0.005648074,
0.059761208,
-0.036310606,
-0.0005709901,
0.01617684,
0.045504637,
0.003071345,
-0.012125357,
-0.010670605,
-0.05266202,
-0.035030425,
-0.071108274,
-0.06528927,
-0.0219813,
0.003278647,
0.017267905,
-0.003658701,
-0.038900066,
-0.014838469,
-0.06604574,
0.0077320063,
-0.008052052,
0.013827416,
0.028818635,
0.05769546,
0.0108160805,
-0.02743662,
0.032906488,
-0.03366296,
0.06365994,
-0.023523338,
-0.015580392,
0.023959763,
-0.028469494,
0.041635,
0.022752319,
0.01571132,
-0.0038732768,
-0.074599676,
-0.03875459,
-0.02931325,
0.0059972145,
-0.0107578905,
-0.0058117337,
-0.014140188,
0.05464048,
0.027800309,
-0.0386964,
0.04003477,
0.023770645,
-0.036659747,
0.026781982,
-0.022054039,
0.025545442,
-0.018649919,
0.018373515,
0.013696489,
-0.028673159,
-0.004233328,
-0.007790196,
-0.04361346,
0.036194228,
0.022854151,
-0.011652563,
-0.02972058,
0.091009274,
0.0059935777,
-0.08937995,
0.0073937764,
-0.04655206,
-0.039598346,
0.015914986,
0.0013092767,
-0.022199513,
0.013121862,
0.034739476,
-0.011157947,
0.0010383291,
-0.02749481,
0.033284724,
-0.0036023294,
-0.017660689,
-0.021588517,
0.010612415,
-0.008328455,
0.013136409,
0.010059609,
-0.05632799,
0.0023294215,
-0.03840545,
0.008859439,
0.01677329,
0.005051626,
0.014540245,
0.00814661,
0.021544876,
-0.032731917,
-0.0050407154,
0.019159082,
-0.006557294,
0.019450033,
0.04250785,
-0.016598718,
-0.018635372,
-0.02445438,
-0.013216421,
-0.028542232,
0.012161725,
0.07169017,
0.0073210387,
0.060401298,
-0.00075647095,
-0.03354658,
0.019653698,
-0.0058408286,
0.008212075,
0.08018592,
-0.0029495095,
0.019682793,
-0.028076712,
-0.015624035,
-0.0013647391,
0.0036077846,
0.030229744,
0.033575673,
0.0023548796,
-0.031393547,
-0.014496602,
-0.018038923,
0.04914152,
-0.013209147,
-0.004797044,
-0.021646708,
-0.021530328,
-0.0001779798,
-0.0439626,
-0.00052734755,
0.031684496,
-0.0009310412,
0.008430287,
0.018388065,
-0.010270548,
0.004167864,
0.013652846,
-0.010670605,
-0.032877393,
-0.04597016,
0.021195734,
0.024250714,
-0.025196303,
0.01940639,
-0.043264322,
0.040878527,
0.0139728915,
0.023610624,
-0.010430571,
-0.012605425,
0.011761669,
0.019784626,
0.06278709,
-0.017515212,
-0.011056114,
-0.05388401,
0.014540245,
-0.0018138938,
-0.022432273,
0.011063388,
-0.050567176,
0.024439832,
0.04003477,
0.004473362,
-0.023523338,
-0.031684496,
-0.047337625,
-0.060692247,
0.011317969,
0.07128284,
-0.054378625,
-0.021428496,
-0.062728904,
-0.026883814,
0.0039932937,
0.02180673,
0.058248267,
0.01280909,
-0.025472706,
0.01841716,
-0.037328932,
-0.009128568,
-0.0050007096,
0.033430196,
-0.055076905,
0.0014229292,
-0.05586247,
0.0022184965,
-0.026258271,
0.0010865178,
-0.044078983,
0.0181844,
0.0049316087,
0.0125763295,
-0.008721237,
0.033779338,
-0.03546685,
-0.050305318,
-0.003125898,
-0.008517573,
-0.064067274,
0.07750918,
-0.0035441392,
-0.019871911,
0.015493107,
0.00015252164,
-0.020832047,
0.003642335,
-0.005342576,
0.02884773,
-0.0015465831,
-0.044573598,
-0.039831106,
-0.0504217,
0.03453581,
0.0064227297,
-0.061099578,
0.006284528,
-0.03683432,
-0.059528448,
0.0052552912,
-0.024992637,
0.019828267,
-0.026723793,
-0.00920858,
0.023116007,
-0.04474817,
-0.022563202,
-0.02045381,
-0.007259212,
-0.009310412,
0.032091826,
0.011085209,
0.046232015,
-0.015027587,
-0.023174196,
0.029211417,
-0.026287366,
0.009521351,
-0.010474213,
0.0141256405,
0.02796033,
0.0067827804,
-0.068082385,
-0.017238809,
0.011085209,
0.011092483,
0.022374084,
-0.059062924,
0.019770078,
-0.0005905383,
-0.040238436,
0.037212554,
0.014351128,
-0.04372984,
-0.030695265,
0.037212554,
-0.032150015,
0.05242926,
0.021632161,
-0.037037984,
-0.009703195,
-0.08292086,
-0.0036732485,
0.014118367,
-0.009055831,
-0.0404421,
-0.042827897,
-0.016264126,
-0.008852165,
0.05013075,
-0.043904413,
-0.03389572,
-0.036223322,
0.02045381,
-0.017020596,
-0.006677311,
-0.010728795,
0.029327799,
-0.003344111,
0.07308673,
0.01869356,
-0.03471038,
-0.017340641,
0.011390707,
0.042595133,
0.038958255,
0.0022639576,
-0.014285663,
0.007175564,
0.019566413,
-0.019115439,
0.036485177,
-0.014227473,
0.04492274,
-0.042013235,
0.030637074,
-0.025152659,
0.0055789733,
-0.040878527,
-0.02116664,
0.02093388,
-0.028120354,
0.02532723,
-0.041111287,
0.009775933,
0.010852449,
-0.051585503,
-0.042886086,
0.013405538,
-0.037037984,
-0.0111797685,
0.008968545,
-0.05024713,
-0.008175706,
-0.014998492,
0.015376727,
0.03171359,
-0.059353877,
0.008830344,
0.07017723,
0.031160785,
-0.0065791155,
-0.018228041,
-0.0066118473,
0.024527116,
-0.022126775,
0.019377295,
0.034390334,
0.00065463834,
-0.0012492682,
-0.012838185,
-0.024163429,
-0.06203062,
0.026185533,
0.06901343,
0.0057280855,
0.0116962055,
0.0072810333,
-0.027771214,
-0.03325563,
0.004829776,
-0.020773856,
0.023072364,
0.023363315,
0.018257136,
-0.0005896291,
0.047657672,
-0.033284724,
-0.008313907,
-0.036717936,
0.06994447,
0.0058226446,
-0.011579825,
0.03922011,
0.045126405,
-0.051963735,
-0.0011538,
-0.017558856,
0.010648783,
-0.015754962,
-0.008837618,
-0.016525982,
-0.011012471,
-0.020977521,
0.037037984,
-0.0021712172,
0.017166073,
0.021472137,
0.017340641,
-0.013361896,
-0.036950696,
0.014314759,
0.03887097,
-0.010074156,
0.024410736,
-0.022635939,
0.028644064,
-0.027131122,
-0.0039132824,
0.061332338,
0.055658806,
0.013900154,
0.039714728,
-0.014067451,
0.0545241,
-0.022548653,
-0.0075356145,
0.027887594,
-0.065812975,
-0.035757802,
0.011317969,
0.022752319,
0.01830078,
0.023988858,
0.001136525,
0.022243157,
0.03747441,
0.052691113,
0.010590593,
-0.03407029,
0.030171555,
-0.06348537,
-0.0037641705,
-0.01547856,
-0.02561818,
-0.022519559,
0.030055175,
0.029167775,
-0.0144893285,
0.0056953537,
0.06179786,
-0.016031366,
0.004993436,
-0.026578316,
-0.0047788597,
-0.027945783,
-0.0060881367,
-0.037969023,
-0.006673674,
-0.025181755,
0.036397893,
-0.010110525,
-0.02521085,
-0.017384285,
0.028396757,
-0.014889386,
-0.0054480457,
-0.0034495804,
-0.025632728,
0.025458157,
0.0013492823,
-0.041518617,
0.025661822,
-0.011477992,
0.021472137,
0.006102684,
0.0127509,
0.0106633315,
-0.029225966,
-0.001980281,
0.05129455,
-0.02567637,
0.00052780216,
0.0107578905,
0.013412813,
-0.037037984,
0.04914152,
0.025123565,
0.015798606,
-0.0039205565,
0.020832047,
0.036426987,
0.037969023,
0.036136035,
0.047104865,
-0.005171643,
0.03933649,
0.02679653,
0.008379371,
0.009986872,
-0.01371831,
-0.038434543,
-0.05053808,
0.008524846,
0.045010023,
-0.037969023,
0.016787836,
0.007768375,
0.002707657,
-0.033575673,
-0.021850374,
-0.01530399,
0.049577944,
0.052400164,
-0.0009637731,
-0.034332145,
-0.022184966,
0.006920982,
-0.007884755,
-0.08641226,
-0.044078983,
0.028236734,
-0.034273956,
-0.0048188656,
-0.00859031,
-0.021152092,
0.018388065,
-0.0074628773,
0.034215763,
-0.014445686,
0.043002464,
-0.022970533,
-0.013878332,
-0.064067274,
-0.0039205565,
0.030026078,
0.009637731,
-0.03235368,
-0.08321181,
0.014118367,
0.020162862,
0.0081393365,
-0.0010101433,
0.0009428611,
-0.0011974426,
-0.042362373,
0.007964767,
-0.030026078,
-0.0010810625,
-0.028833183,
-0.015667677,
0.014402044,
0.007942945,
-0.029284155,
0.027480263,
0.004597016,
0.0030622527,
-0.023494244,
0.03683432,
0.02644739,
-0.011390707,
0.019595508,
0.054058578,
0.037619885,
0.0016975136,
-0.01665691,
0.04637749,
-0.01002324,
0.045591924,
0.026025511,
-0.008204801,
0.019639151,
0.03535047,
-0.018082567,
-0.011230685,
0.022388631,
0.0028658612,
-0.017631592,
-0.026432842,
0.0006219064,
0.055978853,
-0.015347633,
-0.014256569,
0.0047861338,
-0.004058758,
-0.0018066199,
-0.024556212,
-0.038027216,
0.037910834,
0.009375876,
-0.051032696,
-0.07017723,
-0.04402079,
0.018926322,
0.03898735,
-0.015813153,
-0.0037187096,
0.043904413,
0.03148083,
0.063194424,
-0.012118083,
0.015318537,
0.024381641,
0.02445438,
0.040238436,
-0.020904785,
0.028309472,
-0.055571523,
-0.032033637,
-0.0048152287,
0.041664094,
-0.01981372,
0.0039241933,
-0.041780476,
-0.022170419,
0.036543366,
-0.03453581,
0.036223322,
-0.08105878,
0.0005014348,
0.03084074,
-0.021355757,
-0.037096173,
0.008401192,
0.025836393,
0.0060663153,
0.018068017,
0.032324586,
-0.027102027,
0.067151345,
0.035670515,
0.010205084,
-0.016162293,
0.026665602,
-0.028600423,
0.014067451,
0.014612983,
0.0024858073,
0.003804176,
0.002791305,
-0.0668022,
0.00077692844,
0.00018286686,
0.01404563,
-0.013929249,
-0.018591728,
0.03354658,
-0.034012098,
-0.0094777085,
0.035612326,
-0.005109816,
0.014438412,
-0.022010395,
-0.0029131407,
-0.032906488,
0.027945783,
-0.05938297,
0.03407029,
-0.010139621,
-0.044166267,
-0.01547856,
-0.020497454,
0.006382724,
-0.06726772,
0.0039132824,
-0.025138112,
-0.0065972996,
0.0053789453,
0.050567176,
-0.030404314,
-0.015565845,
-0.038492735,
0.027116574,
0.021035712,
-0.012256284,
0.05065446,
0.043293417,
0.0009228582,
-0.04244966,
-0.026156439,
0.0020239234,
0.017035145,
-0.005808097,
-0.02503628,
0.0069318926,
-0.013507371,
-0.02420707,
-0.012059893,
0.037503503,
-0.011761669,
-0.008044777,
-0.0022221336,
-0.023145102,
-0.035990562,
-0.007942945,
-0.05210921,
0.026301913,
0.012219916,
-0.032324586,
0.0072446642,
-0.025123565,
0.25184664,
0.024556212,
0.029007751,
0.016976954,
0.009950503,
0.027931236,
0.014365675,
0.01588589,
0.03910373,
-0.06511469,
0.025530895,
-0.007993861,
-0.0433807,
0.06284528,
-0.020119218,
-0.0010656058,
-0.05545514,
-0.0043133395,
-0.015842248,
-0.038259976,
-0.035204995,
0.019740984,
0.032877393,
0.040354818,
0.015842248,
-0.009703195,
0.015871342,
-0.05827736,
-0.00078692986,
-0.061565097,
0.0136092035,
-0.06284528,
0.0004700667,
-0.029284155,
-0.02772757,
0.023901572,
0.014169283,
-0.006011762,
-0.036165133,
0.035117712,
0.016671456,
-0.026069153,
-0.0363397,
-0.008772153,
-0.003204091,
0.051410932,
-0.0008051142,
0.019842815,
0.023305126,
-0.044951834,
0.021704897,
-0.020773856,
0.06307804,
-0.03738712,
-0.053098444,
-0.0030404313,
-0.04157681,
-0.04841414,
0.016715098,
0.028425852,
-0.001041966,
0.014372949,
-0.029415082,
0.056124326,
-0.0296042,
0.004364256,
-0.0070991893,
-0.019159082,
-0.017267905,
-0.03828907,
0.0076447213,
0.021006618,
-0.015958628,
-0.06365994,
-0.044689976,
-0.0030604342,
0.0073792287,
0.047454007,
0.023319673,
-0.023014175,
0.0077174585,
0.017326094,
-0.0018520809,
-0.028018521,
0.05071265,
0.00996505,
-0.074250534,
0.012278106,
0.0014656625,
0.009557719,
-0.0041605905,
0.04274061,
0.027771214,
0.026389198,
-0.006899161
] | And that's it! In a few lines of code, you can harness the power of an LLM.
Common pitfalls
There are many generation strategies, and sometimes the default values may not be appropriate for your use case. If your outputs aren't aligned with what you're expecting, we've created a list of the most common pitfalls and how to avoid them. |
[
0.02347264,
0.0072283056,
0.010755837,
-0.013004315,
-0.036034632,
0.014648285,
0.028470898,
-0.0007717626,
-0.0029746266,
0.049953084,
0.0070956084,
0.015599281,
0.0090160305,
-0.035326917,
0.0035680775,
0.052754465,
-0.0067306915,
-0.023649571,
-0.058268767,
-0.017162157,
0.004625968,
0.02600863,
-0.08392354,
-0.04125405,
-0.0070771785,
0.00797657,
0.02392971,
-0.018179502,
0.046591423,
0.044556737,
-0.031522933,
0.015731977,
0.028559363,
-0.009274052,
-0.04853765,
-0.05688282,
-0.038010344,
-0.051427495,
-0.036830816,
-0.030461354,
0.056145616,
-0.0032105325,
0.029650427,
-0.036683373,
-0.037450068,
0.0018365646,
0.013284453,
-0.018489128,
-0.0066311685,
-0.058711093,
-0.027718948,
0.0061777867,
0.020553306,
0.015864674,
-0.06039192,
-0.021452697,
-0.018282712,
-0.003160771,
-0.052813444,
-0.036535934,
0.013756265,
0.022381576,
-0.013992172,
-0.07802589,
-0.011920623,
0.037361603,
-0.008684288,
0.034117896,
0.01141195,
-0.029045919,
-0.0461491,
0.023752779,
-0.03688979,
-0.05770849,
-0.05505455,
0.0052452213,
0.008448382,
-0.022868132,
-0.012244993,
0.01284213,
0.002196874,
-0.005459011,
0.004622282,
0.016646113,
-0.020730235,
-0.007283596,
0.02460794,
0.0061335545,
-0.0140658915,
-0.029738894,
-0.014287054,
0.03040238,
-0.015894163,
0.032112695,
0.034530733,
0.031287026,
-0.020096237,
0.07029997,
0.024711147,
-0.025123984,
-0.0019572822,
0.083628654,
-0.030313915,
0.019506473,
-0.014898934,
-0.0056248824,
-0.04632603,
0.014390263,
-0.012561992,
-0.007290968,
-0.004028831,
-0.0085589625,
-0.0112423925,
0.015584537,
-0.026893277,
0.036771838,
-0.01652816,
0.044556737,
-0.077613056,
-0.006668029,
0.026509931,
0.0029672545,
-0.016660858,
-0.063694604,
0.01481047,
-0.024843846,
0.008256708,
0.04095917,
-0.027025975,
0.024460498,
0.047240164,
-0.015481328,
0.02418036,
0.05045438,
-0.009178216,
-0.020612283,
-0.016749322,
0.017722433,
0.037892394,
0.008433637,
0.007176701,
0.0053889765,
-0.021953996,
0.08716725,
0.0456478,
-0.013977427,
0.04042838,
-0.0694743,
-0.011507787,
0.034530733,
-0.039632197,
0.013476127,
0.016218534,
0.06357665,
-0.019196846,
-0.016749322,
0.014124868,
0.0019314799,
-0.009473098,
0.0073352004,
0.026450954,
0.020361632,
-0.015628768,
0.028249737,
0.027822157,
0.005252593,
-0.053963486,
-0.0001455982,
0.01180267,
-0.06687933,
-0.019182103,
0.013483499,
0.011876389,
0.02132,
0.021378975,
0.025374632,
0.03998606,
0.039838616,
-0.018282712,
0.018297454,
-0.009303541,
-0.0075637344,
0.009126611,
0.03556282,
0.01795834,
-0.007040318,
0.014250194,
0.0009182823,
-0.0051604426,
0.022381576,
0.03426534,
0.029576708,
0.012724177,
0.045234963,
-0.040074524,
0.017943596,
-0.0048987344,
0.022779668,
-0.01863657,
0.0132107325,
-0.003892448,
0.024136126,
-0.05151596,
0.03287939,
-0.019653914,
0.026583651,
-0.0004639791,
0.04476315,
-0.015363375,
0.016483927,
0.027999086,
0.017574992,
-0.033498645,
-0.009753237,
0.03373455,
-0.026819557,
-0.04193228,
0.012827385,
-0.0011094952,
-0.0072209337,
0.024666915,
0.014722005,
0.026082352,
0.027586251,
-0.022529017,
-0.017810898,
0.00289722,
0.041755352,
-0.0030796784,
0.012023831,
0.0168083,
0.036712863,
0.028500387,
0.031493444,
0.0063620885,
0.01309278,
0.06823579,
0.044733666,
0.019624425,
0.0026078664,
-0.009819585,
0.030107496,
0.035267938,
0.04349516,
0.004128354,
-0.0068339,
-0.004242621,
-0.015555048,
-0.057177704,
0.031110097,
-0.03444227,
0.05473018,
0.016513417,
-0.032790925,
-0.04847867,
-0.0050166873,
0.01459668,
0.020125726,
-0.008168243,
-0.058268767,
0.039514247,
0.040162988,
0.032171674,
-0.030343402,
0.024917565,
0.032348603,
-0.018828243,
0.0077922684,
-0.013734149,
-0.04476315,
-0.012134412,
-0.030490844,
-0.07997212,
0.02272069,
-0.032496043,
0.006682773,
0.013240221,
-0.041607913,
0.023561107,
-0.023914965,
0.0029746266,
-0.02500603,
-0.03509101,
0.06440232,
0.061512474,
0.013387662,
-0.031729348,
-0.017294854,
-0.046385005,
0.036359005,
-0.03187679,
-0.016071092,
0.026170816,
-0.021865532,
0.0018715819,
-0.0074900137,
0.014611424,
-0.025492586,
-0.043200277,
0.007924966,
-0.007471584,
0.016734578,
0.022868132,
0.033675574,
0.002053119,
0.008153499,
0.005783382,
-0.041224565,
0.03774495,
0.027424065,
-0.021084094,
0.021187302,
-0.0044084922,
0.020597538,
-0.011220276,
0.01820899,
0.034560222,
0.019594938,
-0.01652816,
-0.03494357,
-0.029488243,
-0.0022816528,
0.00033727178,
-0.014685145,
0.0018817185,
0.06375358,
-0.0013315785,
-0.053226277,
-0.0035017289,
-0.05402246,
-0.03444227,
-0.03771546,
-0.00969426,
0.029797869,
-0.00822722,
0.008433637,
-0.017250622,
0.007666943,
-0.023738036,
0.009421494,
0.02360534,
-0.021895021,
0.029149128,
0.043023348,
-0.01677881,
-0.009591051,
0.009605795,
-0.04653245,
-0.0046591423,
-0.008662172,
0.0038187276,
0.0005307884,
-0.0077480357,
0.0153191425,
0.009605795,
0.015835186,
-0.025212448,
0.015879419,
-0.000819681,
-0.020774467,
0.029768381,
0.037833415,
-0.01878401,
0.014471355,
-0.008588451,
-0.023738036,
-0.039160386,
0.03591668,
0.06534594,
0.003258451,
0.039543733,
0.04078224,
-0.04983513,
0.010357745,
-0.05304935,
-0.019653914,
0.056027662,
0.038482156,
0.054582737,
-0.03069726,
-0.020730235,
0.0018549948,
0.0019904564,
0.03373455,
0.048920996,
0.027394578,
0.018150013,
-0.015731977,
-0.009546818,
0.0018964626,
-0.013446638,
0.0014329443,
-0.008581079,
0.0026944883,
0.002430937,
-0.060686804,
0.016690345,
0.050778754,
0.041607913,
0.015746722,
0.029016431,
0.0032547647,
-0.019506473,
-0.006236763,
-0.014758865,
-0.015437095,
-0.036005143,
0.06056885,
-0.0063731465,
-0.042669486,
-0.010608396,
-0.04010401,
-0.013203361,
0.012657829,
0.0049134786,
0.0014827057,
-0.016056348,
0.032142185,
0.012458783,
0.027025975,
-0.070417926,
-0.054110926,
-0.045205478,
0.021806555,
0.03408841,
-0.045293942,
0.0076964316,
-0.03438329,
-0.0042794812,
0.0441439,
0.023855988,
-0.040870704,
-0.036801327,
-0.00488399,
-0.0299748,
0.04045787,
0.03824625,
-0.030343402,
0.0056248824,
-0.017044205,
-0.012672572,
0.017427552,
0.00028843188,
0.015333886,
0.03780393,
-0.040162988,
-0.021482185,
0.0036786583,
-0.010954882,
-0.033262737,
0.026745837,
-0.053167302,
0.03255502,
-0.03506152,
0.027659971,
-0.020346887,
-0.002766366,
0.011810041,
0.0031663,
0.00029787733,
-0.033321716,
-0.029989542,
0.030431867,
-0.019506473,
-0.05555585,
0.02164437,
0.02039112,
-0.024224592,
0.04482213,
0.026318258,
-0.041047633,
0.03989759,
0.0401335,
0.015820442,
-0.03190628,
-0.025993885,
-0.014051148,
-0.006432123,
-0.031699862,
0.004231563,
-0.040546335,
0.049776156,
-0.010166071,
-0.007622711,
0.02994531,
-0.037509046,
-0.019108381,
-0.0068375864,
-0.03777444,
0.00062339986,
0.015156957,
-0.021541161,
0.006417379,
-0.01710318,
0.012444039,
-0.023914965,
-0.03792188,
-0.013336058,
0.06393051,
0.027424065,
0.04983513,
0.008241964,
-0.019196846,
0.05903546,
-0.02224888,
0.01438289,
0.011404578,
-0.03579873,
-0.021850787,
-0.020228935,
-0.023118783,
-0.022661714,
0.0047807815,
-0.021629626,
0.0025175586,
-0.023236735,
0.016513417,
-0.008035546,
-0.020022517,
0.06864863,
-0.04435032,
-0.044881105,
-0.022691203,
0.021113582,
0.014788354,
0.02400343,
0.039219365,
0.0041873306,
0.0043015974,
-0.021128327,
0.04561831,
-0.020361632,
0.021039862,
-0.052960884,
-0.046414495,
0.028161272,
0.015908906,
-0.0014928423,
-0.106216654,
-0.004003029,
-0.01677881,
0.0050351173,
-0.05198777,
-0.02425408,
-0.036476955,
0.012082808,
-0.0193148,
0.02558105,
-0.008286196,
0.021850787,
-0.027600996,
0.010003886,
0.031817812,
0.028397178,
-0.03942578,
0.008477869,
-0.015437095,
-0.008463126,
-0.010084979,
0.05573278,
0.011927994,
0.05018899,
-0.007158271,
0.025182959,
-0.033970457,
-0.041607913,
-0.027615739,
-0.017309599,
0.043554135,
-0.012908478,
-0.019786611,
0.0056543704,
0.03553333,
0.0038555877,
0.001523252,
-0.018326944,
0.0027424067,
-0.039543733,
-0.048920996,
0.015864674,
-0.037833415,
0.012643084,
-0.03208321,
-0.023089293,
0.032348603,
-0.019683402,
-0.022425808,
0.06540492,
0.001339872,
0.0016163243,
-0.053963486,
0.027984343,
-0.008993914,
0.0014421594,
-0.0017361203,
0.015673,
-0.039484758,
-0.01753076,
-0.028249737,
-0.07230517,
-0.042669486,
0.047918394,
0.032613996,
0.00013511605,
0.012945339,
0.00071416836,
-0.04694528,
-0.03287939,
0.027600996,
0.04146047,
-0.010859045,
0.004972455,
0.04697477,
0.0039366805,
0.046001658,
-0.025699005,
-0.019609682,
0.008957054,
0.044438783,
0.02164437,
0.0074642114,
0.0018549948,
0.023045061,
-0.06929737,
-0.04435032,
-0.012318714,
0.022661714,
-0.054346833,
-0.018444896,
0.008735892,
-0.0076079667,
-0.05331474,
0.00625888,
0.03402943,
-0.03473715,
-0.012333457,
-0.013933195,
-0.012886362,
-0.03559231,
0.02475538,
0.061158616,
-0.009583679,
-0.0003140037,
-0.035651285,
-0.018710291,
-0.043849017,
-0.0006634855,
0.034766637,
0.009561563,
0.03072675,
0.02751253,
-0.011220276,
0.06699729,
-0.03137549,
-0.017692946,
0.0019241079,
-0.04367209,
-0.057590537,
-0.029960055,
0.027202904,
0.013431895,
0.011470927,
-0.026097095,
0.008160871,
0.0111613,
0.054966085,
-0.006922365,
-0.06593571,
0.018120525,
-0.057590537,
-0.046237566,
0.021614881,
-0.032112695,
0.004732863,
0.04057582,
0.035828214,
-0.021688603,
0.031169074,
0.039189875,
-0.031257536,
-0.020228935,
0.011765809,
0.006756494,
-0.06428437,
0.021261023,
-0.028426666,
-0.016926251,
-0.013925822,
0.034648687,
-0.006410007,
0.00391825,
-0.038806528,
0.020582793,
-0.023782268,
0.0051788725,
0.007947082,
0.002318513,
-0.028176015,
-0.03069726,
-0.034589708,
0.022455297,
0.03402943,
-0.05355065,
0.012473526,
0.03208321,
0.03105112,
-0.025271425,
-0.02132,
0.036476955,
-0.021703348,
0.022160415,
-0.032437067,
-0.0035975657,
-0.062220193,
0.026097095,
0.005252593,
-0.026170816,
0.016823042,
0.032437067,
0.038305227,
0.018002572,
0.014132241,
0.01141195,
0.0027755809,
0.034471758,
0.031611398,
-0.017840387,
0.017914107,
0.016365975,
-0.0076816874,
-0.035621796,
0.0055069295,
0.04836072,
-0.04361311,
0.037361603,
-0.002440152,
0.0033118983,
-0.02314827,
-0.029635685,
0.03069726,
0.0406348,
0.022735436,
-0.0742514,
-0.004515387,
-0.0289722,
-0.026524674,
0.026406722,
-0.025138726,
-0.05555585,
-0.011942739,
-0.06434335,
-0.005215733,
-0.026731092,
-0.0036123097,
0.017339086,
0.0075932224,
0.0053005116,
0.010306141,
0.059979085,
0.0019664972,
-0.02257325,
-0.041077122,
-0.03373455,
0.01638072,
-0.01552556,
-0.023384176,
-0.025728492,
0.03004852,
0.048567135,
0.024563706,
-0.010239792,
-0.030756237,
0.011869018,
-0.035828214,
0.06121759,
-0.019418009,
0.0016458125,
-0.047476072,
0.024843846,
-0.032466557,
-0.002554419,
-0.047033746,
0.03105112,
0.027615739,
0.013896335,
0.03998606,
0.031611398,
0.063399725,
-0.038806528,
-0.009524702,
0.03308581,
0.035887193,
-0.02071549,
0.009967026,
0.00095376035,
0.042433582,
0.05069029,
0.030092752,
0.019300055,
0.03759751,
0.015304398,
-0.04042838,
-0.016203789,
0.019875076,
0.028146528,
0.016395463,
-0.03323325,
-0.025477841,
-0.016012115,
0.028338201,
0.003522002,
0.0036583852,
0.015112724,
-0.0018218205,
0.017604481,
-0.051132612,
0.008713776,
0.041519444,
-0.02132,
-0.033852503,
0.016159557,
0.024770124,
0.010018631,
0.027070208,
0.015289654,
0.024843846,
0.04762351,
0.04408492,
0.01162574,
-0.01180267,
0.0109843705,
0.008831729,
0.029694661,
0.0007372061,
-0.003907192,
-0.014928423,
-0.018503873,
-0.034648687,
0.055614825,
-0.023487385,
-0.029149128,
-0.015333886,
-0.006679087,
-0.030151729,
-0.04264,
0.014677773,
-0.03774495,
0.030992143,
0.040015545,
-0.01946224,
-0.055791754,
0.030136984,
0.005739149,
0.027468298,
0.02339892,
0.050277453,
0.008802241,
0.08610567,
0.010564163,
-0.016631369,
0.018326944,
0.016999973,
-0.01971289,
-0.015908906,
0.032967854,
-0.0166756,
-0.010829558,
-0.0421387,
-0.02944401,
0.0102103045,
-0.0138078695,
-0.046237566,
-0.024622682,
0.021334743,
-0.0052968254,
-0.036359005,
-0.01520119,
0.072128244,
0.014161728,
0.027674716,
-0.009097123,
-0.0121639,
-0.053137813,
-0.012908478,
-0.052135214,
0.040339917,
-0.040988658,
-0.0243278,
-0.012156528,
-0.028102295,
0.0066864593,
-0.009679516,
0.013734149,
-0.009038147,
0.01788462,
0.059625227,
0.032319114,
0.022366833,
0.009030774,
-0.032496043,
0.04721068,
0.02894271,
0.018931452,
0.06092271,
0.076256596,
-0.019771867,
0.009885933,
0.029252337,
0.008345173,
-0.019270567,
-0.0032510788,
-0.0035828215,
-0.000817838,
-0.009701632,
-0.04833123,
-0.021526417,
0.005554848,
0.018592337,
-0.007829129,
-0.01377101,
-0.011279253,
-0.06257405,
-0.027822157,
-0.019300055,
0.004600166,
0.0009035382,
-0.02217516,
0.010070235,
-0.05369809,
0.25926062,
0.05641101,
0.01946224,
0.020243678,
0.033203762,
0.06127657,
0.027645228,
-0.012045947,
0.036359005,
-0.03444227,
-0.021511674,
-0.015938396,
-0.00013200597,
0.044202875,
-0.043200277,
0.03438329,
-0.08138755,
0.012252365,
-0.014943168,
-0.019875076,
-0.029650427,
0.018901965,
0.022337344,
0.03556282,
0.015437095,
-0.010962254,
0.0075932224,
-0.05051336,
-0.012208133,
-0.063517675,
0.021659115,
-0.011249765,
0.0055401037,
-0.039543733,
-0.0018116839,
0.018828243,
-0.010851674,
-0.02021419,
-0.05623408,
0.0062220194,
-0.0074531534,
-0.057354633,
0.038747553,
-0.010534675,
-0.012001715,
0.03573975,
0.00034234006,
0.054553248,
0.048036348,
-0.03774495,
0.043347716,
-0.03930783,
-0.0043273997,
-0.006196217,
-0.052341633,
0.029267082,
-0.05941881,
-0.036093608,
-0.022012973,
0.012244993,
-0.03839369,
0.00015124244,
-0.008028174,
0.013446638,
-0.022160415,
0.006911307,
0.005901335,
0.010261908,
-0.010217676,
0.00008005597,
-0.028603595,
-0.012370318,
-0.014670401,
-0.027571507,
0.010991743,
0.045411896,
-0.029679917,
0.040221963,
0.020656515,
-0.016793555,
0.016940996,
-0.010166071,
0.016823042,
-0.03376404,
0.050365917,
-0.010416722,
-0.01169946,
-0.0041725864,
0.01405852,
-0.0062220194,
0.031080607,
0.019491728,
0.0028142843,
-0.012812641,
0.004850816
] | There are other ways to initialize a model, but this is a good baseline to begin with an LLM.
Next, you need to preprocess your text input with a tokenizer.
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1", padding_side="left")
model_inputs = tokenizer(["A list of colors: red, blue"], return_tensors="pt").to("cuda") |
[
0.011214523,
0.008881444,
0.005099137,
0.034466587,
-0.019466178,
-0.032920744,
0.005621575,
0.008301753,
-0.03005807,
0.068188876,
-0.003478148,
0.039991546,
0.0005215433,
-0.048064284,
-0.028898688,
0.01955206,
-0.017677007,
-0.06429564,
-0.05230104,
-0.00854508,
0.008444887,
0.014005629,
-0.07042176,
-0.042195804,
-0.02244336,
0.010348564,
0.01985264,
-0.012044698,
0.06309332,
0.0143205235,
-0.032577224,
0.025091331,
0.015071975,
-0.04706235,
-0.022099838,
-0.006795271,
0.0042796964,
-0.0004540021,
-0.007192467,
-0.032806236,
0.023574114,
-0.022643747,
0.032462716,
-0.030401591,
-0.04935249,
-0.035268135,
-0.008001172,
-0.016617818,
-0.00649469,
-0.01832111,
-0.007929605,
-0.0023795972,
0.022028271,
-0.0016746639,
-0.040277813,
-0.026307968,
-0.03048747,
0.0019090453,
-0.047549006,
-0.0202391,
0.005310259,
0.023101773,
-0.021140842,
-0.052272417,
-0.009296532,
0.02479075,
0.009131928,
0.004820026,
0.0005067826,
-0.029571416,
-0.04039232,
0.017748574,
-0.02576406,
-0.0200244,
-0.028211646,
0.0042904317,
0.036785353,
-0.011965974,
-0.056137025,
0.0318043,
-0.018750511,
-0.00047681402,
-0.008881444,
-0.022987267,
-0.044543196,
-0.04285422,
0.042968728,
-0.03332152,
0.0070922733,
-0.032462716,
-0.015114916,
0.013833869,
-0.002796474,
0.024132336,
0.031832926,
0.05879931,
-0.008459199,
0.052530054,
0.0007680016,
-0.014177389,
0.038216688,
0.08696801,
-0.033235636,
0.025191525,
0.010491698,
0.013211237,
0.031403527,
0.017762888,
-0.03638458,
0.00034821738,
0.0047878213,
-0.031947434,
0.012996537,
-0.000051550483,
-0.034037184,
0.05424766,
-0.016617818,
0.03463835,
-0.06074593,
0.007765001,
0.02300158,
0.02414665,
0.021842197,
-0.028068513,
-0.0038073554,
-0.06773085,
0.020725755,
0.029342402,
-0.038331196,
0.0003039354,
0.0035550825,
-0.004598169,
-0.03460972,
0.04477221,
0.0038180905,
0.004723411,
-0.041966792,
0.005668093,
0.05765424,
-0.007349914,
0.0017990113,
-0.015530002,
-0.02554936,
0.08650999,
0.01993852,
-0.006913356,
0.02231454,
0.011987445,
0.016718011,
0.021269662,
-0.08639548,
0.023903321,
0.009439665,
0.04706235,
-0.012481255,
-0.0070851166,
-0.02330216,
0.0056752497,
-0.042539325,
0.018263856,
0.019423239,
-0.027095202,
0.011980288,
0.031403527,
0.0032240858,
0.05046893,
-0.016546251,
-0.008366163,
0.014914528,
-0.038588837,
0.046776082,
0.006398075,
0.0036481193,
0.011379126,
0.030830992,
0.031231767,
0.03601243,
0.0064374367,
0.00573966,
0.024304096,
-0.012817619,
0.02483369,
0.026121894,
-0.00033837694,
0.013504662,
-0.0076218676,
-0.024919571,
-0.025005452,
-0.037844542,
0.0023348678,
0.0027839497,
0.047005095,
-0.019494805,
-0.0051134503,
-0.03065923,
0.008688213,
-0.028354779,
0.018936584,
-0.009439665,
-0.03286349,
-0.009783186,
0.054562554,
-0.010964039,
0.01141491,
-0.042796966,
0.015329615,
0.011114329,
0.043856155,
-0.026694428,
-0.008902914,
0.039991546,
-0.014041413,
0.0011271776,
0.01007661,
0.036871232,
-0.0043798904,
-0.042024042,
0.013490348,
-0.00854508,
0.039218623,
0.006140434,
0.00095362804,
0.0144350305,
-0.0014179179,
-0.0144350305,
-0.046747454,
0.033350144,
0.02159887,
0.009532702,
0.05098421,
0.023645682,
0.008158619,
0.031832926,
0.015916463,
-0.0038932357,
0.01683252,
0.04769214,
0.045631014,
-0.0044335653,
0.01641743,
-0.03541127,
-0.017405054,
0.019308731,
-0.011321873,
0.003299231,
0.034294825,
0.017963275,
-0.030630605,
-0.03890373,
0.010448758,
-0.038331196,
0.043713022,
0.008444887,
-0.016632132,
-0.044285554,
-0.041766405,
0.022586493,
0.015401183,
0.0018374785,
-0.03523951,
0.045860026,
0.02019616,
0.048493687,
-0.038617462,
0.024776438,
0.055278223,
0.019380298,
0.030172577,
-0.014900215,
0.012330965,
0.0037000054,
-0.047749393,
-0.044915345,
-0.010405817,
-0.026808936,
-0.021398483,
0.010398661,
-0.015558629,
0.0034423647,
-0.009253591,
-0.012509882,
-0.032405462,
-0.04259658,
0.041050736,
0.010613361,
0.01866463,
-0.07746394,
0.016732326,
-0.020940455,
0.06458191,
-0.009067518,
0.021784944,
0.013612011,
-0.041966792,
-0.0055034896,
-0.0075145173,
0.0065197386,
-0.025577987,
-0.003623071,
0.002325922,
-0.0051492336,
0.00038735548,
0.013440251,
0.0103915045,
-0.02589288,
0.026121894,
0.037300635,
-0.009382412,
0.047005095,
0.063952126,
-0.001575365,
0.012223615,
0.0143491505,
0.05676681,
-0.0033636412,
0.015873523,
0.04022056,
0.020339293,
-0.023803128,
-0.020167533,
-0.030000817,
0.02695207,
-0.0035031964,
-0.037100248,
-0.014163076,
0.031346273,
-0.019609312,
-0.05616565,
0.012581449,
-0.03260585,
-0.04628943,
0.01866463,
-0.0063837613,
0.047606256,
0.015988031,
0.013769459,
-0.045258865,
-0.03251997,
-0.04259658,
0.009368098,
0.04190954,
0.008237342,
-0.0177772,
0.040993482,
-0.013239864,
-0.020124594,
0.042281684,
-0.043598514,
0.022300225,
-0.00025316767,
0.047377244,
0.026422475,
0.04239619,
0.001926937,
0.009010265,
0.01154373,
-0.034838736,
0.024089396,
0.008752624,
0.0108996285,
0.05273044,
0.0017891708,
0.012123422,
0.03294937,
-0.014914528,
-0.04022056,
-0.021699063,
0.008029799,
0.029628668,
-0.0073356004,
0.008759781,
0.030859618,
-0.004075731,
0.016274298,
-0.012366748,
-0.034810107,
0.04671883,
0.0029378184,
0.042997353,
-0.010849532,
-0.02330216,
0.024103709,
-0.007528831,
0.033779547,
0.054333538,
0.059715364,
0.03418032,
-0.039275877,
-0.009854753,
0.017505247,
0.008001172,
-0.01422033,
-0.018092096,
-0.022228658,
-0.06252079,
-0.033264264,
0.0003647672,
0.061833743,
0.02925652,
0.0064982683,
0.027925378,
-0.006873994,
0.019509118,
0.031346273,
-0.016302925,
-0.030430218,
-0.06194825,
0.08965893,
0.0065412084,
0.0076218676,
-0.039819784,
-0.027238337,
-0.018306796,
0.014592477,
0.0062263147,
0.011937348,
-0.009568485,
-0.0024243265,
0.008251656,
0.041938163,
-0.02844066,
-0.025807,
-0.014384934,
0.010040827,
0.041480135,
-0.031317648,
-0.005131342,
-0.04617492,
0.008487826,
0.019265791,
0.006745174,
-0.040936228,
-0.03604106,
-0.017991902,
-0.051585373,
0.021341229,
0.039132744,
-0.010141021,
0.0019018886,
-0.042625207,
-0.0072318283,
-0.01132903,
-0.021613184,
-0.0043119015,
0.0005278054,
-0.0019018886,
-0.010556108,
-0.0010081978,
-0.029743176,
-0.036527712,
0.03189018,
-0.03163254,
-0.009239278,
-0.040249187,
0.017891709,
0.006716547,
-0.015673136,
0.03366504,
0.0602879,
0.019351672,
-0.013440251,
-0.04145151,
0.0077149044,
-0.011923035,
-0.04477221,
0.020339293,
0.024890944,
-0.010191117,
0.04697647,
-0.003929019,
0.0037143186,
0.016517624,
0.028168706,
-0.02347392,
-0.0113504995,
0.03191881,
0.03128902,
-0.032061942,
-0.024919571,
0.0014876955,
-0.02418959,
0.040277813,
0.0051957523,
-0.03048747,
-0.009869066,
-0.055850755,
-0.022056898,
0.019022465,
-0.041766405,
0.023559801,
0.020282041,
-0.028855747,
0.0318043,
-0.023101773,
0.008065582,
0.0022901387,
-0.047119603,
0.019838326,
0.041566018,
0.01154373,
0.03767278,
-0.0091176145,
-0.02712383,
0.06423839,
-0.034895986,
0.005582213,
-0.026808936,
-0.016861146,
-0.011379126,
-0.014256113,
-0.03941901,
0.0048629665,
-0.029070448,
-0.024776438,
-0.0069491393,
0.003907549,
0.010749338,
-0.012345279,
-0.028183019,
0.029857682,
-0.03286349,
-0.049839143,
0.009962103,
0.0507552,
0.02856948,
-0.012788993,
-0.0018267434,
-0.03380817,
-0.020095967,
-0.026680116,
0.050182663,
-0.031489406,
0.011057076,
-0.03770141,
-0.050325796,
0.0026658645,
0.027467351,
-0.027281277,
-0.09349491,
-0.008058425,
-0.03260585,
0.02942828,
0.0071674185,
-0.028984567,
-0.04689059,
0.0035783416,
-0.0015145331,
0.028998882,
0.0022489878,
0.016388806,
0.03363641,
0.005528538,
0.010649145,
0.057511106,
-0.030888245,
0.021226723,
-0.022672372,
-0.020081654,
-0.0068775727,
-0.00092410675,
-0.017791515,
0.023058834,
-0.032462716,
0.012116265,
-0.027495977,
-0.06458191,
-0.019580685,
-0.0086094905,
0.0318043,
-0.047606256,
-0.0021291133,
0.004039948,
0.0322337,
0.031117259,
0.044800837,
0.01866463,
0.0050705103,
-0.047863897,
-0.05416178,
0.038789224,
-0.014535224,
-0.018564437,
-0.007385697,
0.0065233167,
0.059429098,
-0.017333487,
0.029013194,
0.08977344,
0.013468878,
0.04417105,
-0.032892115,
0.023488235,
-0.011708334,
-0.026808936,
0.015716076,
-0.017061533,
-0.052472804,
0.009432509,
-0.055335477,
-0.06555522,
-0.020840261,
0.026494041,
0.037815914,
-0.014656887,
0.046575695,
-0.054104526,
-0.04978189,
-0.05107009,
0.031060005,
-0.012667329,
0.035983805,
0.031260394,
-0.018822078,
-0.0025942978,
0.03944764,
-0.027009323,
-0.027453037,
-0.012731739,
0.05038305,
0.009912007,
-0.0071495264,
0.042338938,
0.017505247,
-0.033779547,
-0.0909185,
0.009310845,
0.001519006,
-0.020038713,
-0.042567953,
-0.01150079,
-0.007457264,
-0.0660705,
-0.00018081808,
0.01760544,
-0.021040648,
0.0054784412,
0.015801957,
-0.020940455,
-0.031117259,
0.05593664,
0.044314183,
0.001225582,
0.0041508763,
-0.06452466,
-0.018807763,
-0.040106054,
0.020425174,
0.044829465,
-0.024890944,
0.028970255,
0.026436789,
0.007224672,
0.09177731,
-0.031117259,
0.032663103,
-0.011429223,
-0.02015322,
-0.047606256,
0.00124079,
0.0018893644,
-0.047549006,
0.015286676,
0.032920744,
-0.021956705,
0.006952718,
0.05046893,
-0.0149431545,
-0.07047902,
0.043254994,
-0.017204667,
-0.035439897,
-0.0024064349,
-0.0070564896,
0.012788993,
0.046117667,
-0.0010359299,
-0.039905667,
0.021713378,
0.00645175,
-0.026594235,
-0.0400488,
-0.03460972,
-0.01398416,
-0.028068513,
-0.008444887,
-0.01794896,
-0.042281684,
0.0107851215,
0.016259985,
-0.0081013655,
0.004777086,
-0.04391341,
0.044829465,
-0.034294825,
-0.016517624,
0.013089574,
-0.0229157,
0.011708334,
-0.028039886,
-0.021870824,
0.004569542,
0.047291365,
-0.011987445,
0.0024851584,
0.04689059,
-0.009962103,
-0.02831184,
0.037357885,
0.05318847,
-0.023774503,
0.016431745,
-0.0131897675,
0.05098421,
-0.042081296,
0.0071709966,
-0.037959047,
-0.028154392,
0.009239278,
0.025034077,
0.0131897675,
0.04417105,
0.01976676,
0.029657295,
-0.021885138,
0.011207366,
0.013654952,
-0.010090924,
0.022200031,
0.003551504,
-0.009289375,
-0.028984567,
0.01585921,
0.026823249,
-0.04179503,
0.012152048,
-0.0026014543,
-0.025663866,
-0.021241035,
0.020825949,
-0.023588428,
0.04311186,
-0.005542851,
-0.03775866,
-0.011207366,
0.03979116,
-0.024032142,
0.011085702,
-0.04978189,
-0.049037594,
0.0036624328,
-0.05413315,
0.002943186,
-0.03604106,
-0.029371029,
0.025248779,
0.019752447,
0.014578164,
0.00032428722,
0.033750918,
0.004880858,
0.021713378,
-0.072940916,
-0.005009678,
0.0063944967,
0.0026587078,
-0.044915345,
-0.026665801,
0.03320701,
0.03584067,
0.03778729,
-0.032405462,
-0.037959047,
0.006755909,
-0.016317237,
0.03163254,
-0.04391341,
0.009010265,
-0.04731999,
0.016016657,
-0.03601243,
-0.032004688,
0.0013177244,
0.035268135,
0.01879345,
0.04170915,
-0.0053889826,
0.016331552,
0.03830257,
-0.035697535,
0.019666566,
0.035096373,
0.0126888,
-0.03890373,
0.02300158,
-0.013361528,
0.031002752,
0.04923798,
0.034409333,
-0.0008337536,
0.03214782,
0.012452629,
-0.009310845,
-0.03523951,
0.04039232,
0.037501022,
-0.028154392,
0.008995951,
-0.008752624,
-0.024676245,
-0.018149348,
0.003195459,
0.0071495264,
0.025248779,
-0.015429809,
0.0015762595,
-0.076433375,
0.0039003924,
-0.011343343,
-0.023760188,
-0.018721884,
-0.021484364,
0.007550301,
0.034581095,
0.0013544023,
-0.01137197,
0.02308746,
0.034294825,
0.07047902,
0.022686686,
-0.028855747,
0.04548788,
0.0021201675,
0.0380163,
-0.018263856,
-0.012130578,
-0.02423253,
-0.04523024,
-0.036584966,
0.012366748,
-0.061375715,
-0.025306033,
0.012459786,
-0.030516097,
-0.0017981167,
-0.023788815,
0.023559801,
-0.04391341,
0.014191703,
0.016045284,
-0.002723118,
-0.01288203,
0.05390414,
-0.0057682865,
0.01577333,
0.028025571,
0.02755323,
0.010735025,
0.07860901,
0.039018236,
-0.010699241,
0.071566835,
0.034724228,
-0.015630197,
-0.019065404,
0.007593241,
0.017462308,
-0.020668501,
-0.008001172,
-0.025391912,
0.018593064,
0.021198096,
-0.025792686,
-0.041165244,
0.00865243,
-0.03065923,
0.008351849,
-0.012166361,
0.09939202,
0.006233471,
-0.0057217684,
-0.017548187,
0.01150079,
-0.029886309,
-0.010949725,
-0.016531939,
0.00897448,
-0.0060080355,
-0.043970663,
0.0063658697,
-0.029399656,
-0.004004164,
-0.033407398,
-0.0086381165,
-0.036069684,
0.037959047,
0.05181439,
0.051757134,
0.04966738,
-0.0015816271,
-0.027639112,
0.062177263,
0.013146827,
0.0008395684,
0.027524604,
0.088742875,
0.024604676,
0.011264619,
0.03014395,
0.018235229,
0.005406874,
0.010964039,
-0.006673607,
-0.036670845,
-0.040878974,
-0.05187164,
-0.025735432,
0.02925652,
0.019480491,
-0.00638734,
-0.043398127,
-0.02593582,
-0.06635677,
-0.0059257336,
-0.016675072,
0.026078954,
-0.01913697,
-0.0035640283,
0.016875459,
-0.06503994,
0.24344175,
0.06458191,
0.031976063,
-0.015243735,
0.024060769,
0.081815206,
-0.003057693,
-0.03217645,
-0.019051092,
-0.018335423,
-0.0070529114,
-0.05241555,
0.010792279,
0.027453037,
-0.007392854,
0.031403527,
-0.06824613,
-0.015787642,
-0.021398483,
-0.032119196,
-0.050440304,
0.033865426,
0.020482428,
0.05250143,
0.017791515,
0.049123473,
0.0073356004,
-0.030859618,
-0.021527303,
-0.033378772,
0.050010905,
-0.0026980697,
-0.004161611,
-0.026093267,
0.009818969,
0.021040648,
-0.00011685522,
-0.054304913,
-0.0076934346,
0.0253776,
0.032634474,
-0.028354779,
-0.01879345,
-0.022629432,
-0.023874696,
-0.00010019357,
-0.011579514,
0.052243788,
0.056709558,
-0.08284576,
0.0059328903,
-0.018163662,
0.03014395,
-0.024504483,
-0.055507235,
0.016474685,
-0.054963328,
-0.024289783,
-0.01551569,
0.030430218,
-0.022457672,
-0.005292367,
0.035010494,
0.001596835,
-0.010026514,
0.03506775,
-0.02496251,
0.028669674,
-0.028898688,
-0.003046958,
0.014184547,
-0.014814334,
-0.016947025,
-0.019952834,
0.018177975,
0.03389405,
-0.019265791,
0.012094795,
0.012703113,
-0.030000817,
-0.0021738426,
-0.0065805702,
0.0068167406,
-0.026823249,
-0.006390918,
0.04826467,
-0.027853811,
0.024676245,
0.030086696,
0.019451866,
0.0065268953,
0.051270477,
0.0070135496,
0.014914528,
-0.009217808
] |
model_inputs = tokenizer(["A sequence of numbers: 1, 2"], return_tensors="pt").to("cuda")
By default, the output will contain up to 20 tokens
generated_ids = model.generate(**model_inputs)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'A sequence of numbers: 1, 2, 3, 4, 5'
Setting max_new_tokens allows you to control the maximum length
generated_ids = model.generate(**model_inputs, max_new_tokens=50)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'A sequence of numbers: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,' |
[
0.003601481,
-0.00036410027,
-0.0012737832,
0.017792989,
-0.03538246,
-0.047942217,
0.007682675,
0.02459619,
-0.008940104,
0.06186843,
0.030294597,
-0.00589102,
0.05433839,
-0.016731804,
-0.03794093,
-0.041051798,
0.0049352283,
-0.036865212,
-0.055385035,
-0.0041938536,
0.013846259,
0.0050551565,
-0.034742843,
-0.024305454,
-0.018156407,
0.014086115,
0.014427729,
0.0074864286,
0.06785757,
0.024610726,
-0.009812309,
0.03139939,
-0.037068725,
-0.033260096,
0.010248412,
-0.028564723,
0.036429107,
0.0060727294,
-0.032591406,
-0.025671909,
-0.009165424,
-0.030934215,
0.06413616,
-0.05899015,
-0.03811537,
-0.036254667,
-0.013381083,
-0.031690124,
-0.01339562,
-0.030439965,
-0.0017226054,
-0.010510074,
-0.001436413,
0.007471892,
-0.011803845,
-0.027081974,
0.03535339,
0.004775324,
-0.024959609,
-0.0070394236,
0.015699696,
0.03526617,
-0.0008962818,
-0.03817352,
0.005124206,
0.0085403435,
-0.030701626,
0.009979482,
-0.025119513,
-0.040354032,
-0.03363805,
0.024218233,
-0.017095223,
-0.0052913786,
0.0032416964,
-0.039220165,
0.039045725,
-0.035091728,
-0.021688838,
0.068787925,
0.00743555,
0.037708342,
0.0263406,
-0.01612126,
-0.0055857482,
-0.048756275,
0.048320174,
-0.04142975,
-0.007181157,
-0.00023758509,
-0.0028273987,
0.051779922,
-0.03759205,
0.022561044,
0.0043573924,
0.06006587,
0.015845062,
0.043697484,
-0.0060073137,
-0.0013501011,
0.018897781,
0.059833284,
-0.054745417,
0.004331953,
-0.015728768,
-0.009121814,
0.047825925,
0.03273677,
-0.0038231665,
0.0375339,
-0.0010802626,
0.011353206,
-0.007958873,
-0.018621583,
-0.036167447,
0.039045725,
0.0037722879,
0.009121814,
-0.05593743,
-0.04424988,
0.010669978,
-0.0061163395,
-0.009078204,
-0.02369491,
0.04689557,
-0.036545403,
0.041894928,
0.009507038,
-0.04744797,
0.011796577,
-0.002022426,
0.03826074,
0.036429107,
0.03212623,
0.0077553587,
0.0395109,
-0.022648264,
0.0059418986,
-0.015728768,
-0.035091728,
0.0035669561,
-0.024843315,
0.01097525,
0.08983714,
-0.025642836,
-0.0068649827,
0.018970465,
-0.018272702,
-0.03785371,
0.036138374,
-0.055617623,
-0.0046372246,
-0.0011547635,
0.023273345,
-0.0038449718,
0.00017773455,
-0.0380863,
-0.019522863,
-0.001589049,
0.0022968072,
-0.02382574,
0.04744797,
-0.03919109,
0.06425246,
-0.053233597,
0.04395915,
-0.0067850305,
0.0031635612,
0.010779004,
-0.014180604,
0.027169194,
0.006912227,
-0.008504001,
0.025017755,
0.0049570333,
0.016833562,
0.03645818,
0.0064942953,
0.0058619464,
0.018040113,
-0.019842671,
0.0025711886,
-0.00058328727,
0.027590761,
0.007588186,
0.017502252,
-0.011331401,
0.014544023,
-0.029684054,
0.012378047,
0.019871743,
0.06989272,
-0.04762241,
0.015612475,
-0.025875423,
0.05317545,
-0.0024403578,
-0.003910387,
-0.012625172,
-0.05965884,
0.004222927,
0.06611316,
0.0030472672,
0.033608977,
-0.035411537,
-0.03837703,
-0.006701444,
0.04672113,
-0.03485914,
0.016644584,
0.05989143,
0.036632624,
-0.056460757,
0.012894101,
0.030963289,
-0.008460391,
0.0033652587,
0.00662876,
0.04416266,
0.029378781,
-0.014587633,
-0.0058982885,
0.06221731,
-0.03570227,
-0.016920783,
0.01742957,
0.04000515,
0.008743858,
0.0052441345,
0.007966141,
0.008046093,
0.021078294,
0.02924795,
0.030381817,
0.018970465,
0.012414388,
0.03869684,
0.033318244,
-0.028433893,
0.006570613,
-0.018752413,
0.04209844,
0.004102999,
0.034248594,
-0.019828133,
0.019871743,
0.0032435134,
-0.0058401413,
-0.02526488,
0.000118678974,
-0.032184374,
0.04474413,
0.030846994,
0.02347686,
-0.051779922,
-0.06419431,
0.03517895,
0.02651504,
0.00662876,
-0.05823424,
0.0031308536,
0.03503358,
-0.011396816,
-0.012348973,
0.045936145,
0.025468394,
-0.02253197,
0.010946176,
-0.02849204,
-0.024131013,
-0.011462231,
-0.04183678,
-0.0443371,
0.00512784,
0.007842579,
0.007922531,
-0.013860796,
-0.0580598,
0.0029945716,
-0.0098704565,
-0.029306097,
0.0076972116,
-0.012203606,
0.014311435,
0.002331332,
0.014231483,
-0.040208664,
0.025148585,
0.025235806,
0.085999444,
0.0060327533,
-0.026733093,
0.015975894,
-0.033172876,
0.046430394,
0.017080687,
0.0023404176,
-0.0067850305,
0.009376206,
-0.0027401783,
-0.019246664,
0.035149872,
-0.011752966,
-0.0039794366,
-0.008424049,
0.025628299,
0.052041583,
-0.03247511,
0.032940287,
0.0770448,
-0.020584045,
0.019958964,
-0.03337639,
0.062275458,
-0.01738596,
0.019653693,
0.032097153,
-0.020627655,
-0.00021702921,
-0.0041720485,
-0.042127516,
-0.036080226,
0.0050733276,
0.008794737,
-0.002429455,
0.05907737,
0.009688747,
-0.08076621,
0.045441896,
-0.04166234,
-0.04756426,
0.03273677,
-0.02190689,
0.044278957,
0.014849295,
0.020598581,
-0.022997146,
-0.020031648,
-0.048639983,
0.007762627,
0.001358278,
-0.016499218,
-0.012414388,
0.021659765,
0.0047389823,
-0.0071557174,
0.039162017,
-0.037388533,
0.0021132808,
0.001675361,
0.022052256,
0.06553169,
0.016339313,
-0.009688747,
-0.033172876,
0.017458642,
-0.022023184,
0.009107277,
0.025163123,
-0.016804488,
0.030527186,
0.026820313,
0.002616616,
0.01594682,
0.004699006,
-0.030788846,
-0.03122495,
0.04497672,
0.083789855,
0.00009908843,
0.045296527,
0.016106725,
-0.027125584,
0.000981231,
-0.032271598,
-0.027939644,
0.04413359,
-0.009230839,
0.0155688645,
-0.051431037,
-0.014587633,
-0.021136442,
-0.0014854746,
0.034568403,
0.02898629,
0.03445211,
-0.00086039415,
0.009935872,
0.012356241,
-0.016513754,
0.028070474,
-0.03718502,
0.045500044,
-0.04183678,
-0.05259398,
-0.039569046,
0.039772563,
0.006378001,
-0.000072456634,
0.022241235,
0.029771274,
-0.020816633,
0.0662876,
0.008903762,
-0.015525254,
-0.018752413,
-0.028855458,
0.04183678,
0.0017680328,
0.026849385,
-0.02257558,
-0.013984358,
-0.019479252,
0.027619835,
0.008605759,
0.0026511406,
-0.027227342,
0.01979906,
0.03544061,
0.052564904,
-0.0032253424,
-0.013133958,
-0.022895388,
0.0404994,
0.021848742,
-0.048843496,
0.010779004,
-0.048174806,
0.0030000228,
0.025555614,
0.026863923,
-0.035934858,
-0.021485323,
-0.051663626,
-0.040034223,
0.0017216969,
0.07721924,
-0.009390743,
0.017167907,
-0.022604654,
0.0021387201,
-0.007980678,
-0.009805041,
0.036167447,
0.016164871,
-0.0024385406,
-0.009288986,
0.011585793,
-0.012218143,
-0.04762241,
0.044191733,
-0.020133406,
0.015074614,
-0.037097797,
-0.004219293,
-0.041720487,
-0.004371929,
-0.031137729,
0.013744501,
0.004942497,
0.0028855458,
0.021514397,
0.058205165,
-0.051663626,
-0.044598766,
0.013075811,
-0.015801452,
-0.0151182255,
0.03878406,
0.03919109,
0.0010275668,
0.042301957,
-0.00662876,
-0.029974788,
0.036429107,
0.030207377,
0.03453933,
-0.029945714,
-0.013599134,
0.010575489,
-0.012894101,
0.011491304,
0.05035532,
-0.041546047,
-0.016295703,
-0.08698794,
0.0023186123,
-0.007181157,
-0.021645227,
0.0297422,
-0.00022123124,
-0.021339957,
0.037155945,
-0.044104513,
-0.003218074,
-0.042563617,
-0.0018734243,
0.0014900174,
0.04765148,
0.05585021,
0.03494636,
-0.019522863,
-0.014260557,
0.03081792,
-0.012559757,
-0.0027783373,
-0.049047012,
-0.030091083,
0.013199373,
0.003219891,
-0.03264955,
-0.010699051,
-0.014718465,
-0.000008773159,
0.0034433939,
-0.013075811,
0.01101886,
-0.04017959,
-0.02386935,
0.03480099,
0.0016599157,
-0.0760563,
-0.023011683,
0.025657373,
-0.011338669,
0.019682767,
0.02145625,
-0.039801635,
-0.027590761,
-0.03887128,
0.025875423,
-0.031166803,
0.009826846,
-0.025163123,
-0.045470968,
-0.030294597,
0.04765148,
0.00016013144,
-0.03485914,
0.0047135428,
-0.030527186,
0.028244914,
-0.044017293,
-0.0087802,
-0.036312815,
0.022793632,
-0.005356794,
0.01545257,
0.01258883,
-0.032940287,
0.016048577,
-0.006185389,
0.031661052,
0.0404994,
-0.022764558,
0.017037077,
0.011433158,
0.0037541168,
-0.0020569507,
-0.035411537,
-0.03785371,
0.030934215,
-0.034074154,
0.017356886,
-0.027925106,
-0.029466001,
-0.040615693,
0.013475572,
0.05361155,
-0.049017936,
-0.0042956113,
-0.032446038,
0.02929156,
0.039132945,
0.045761704,
-0.046023365,
0.0070757656,
-0.049890142,
-0.02051136,
0.020395067,
-0.00669781,
-0.0024567116,
0.0054621855,
0.008852884,
0.05523967,
-0.04707001,
0.0060073137,
0.057623696,
-0.015975894,
-0.02696568,
-0.090941936,
0.002447626,
0.0041684145,
-0.0009276267,
-0.02360769,
-0.003059987,
-0.033957858,
0.0065524424,
-0.039743487,
-0.0040375837,
-0.030207377,
0.025061365,
0.05640261,
-0.012000091,
0.03488821,
-0.035905786,
-0.06087993,
-0.0477387,
-0.013112153,
-0.020002576,
0.021848742,
0.00070821255,
0.021325419,
-0.012130922,
0.034306742,
-0.0580598,
-0.009216303,
-0.021441713,
0.05515245,
0.009325328,
-0.02078756,
0.020685801,
0.01594682,
-0.0502681,
-0.06128696,
-0.03901665,
0.010015824,
-0.04613966,
-0.024014719,
-0.023535006,
0.024319991,
0.009216303,
-0.008445854,
0.03602208,
0.006010948,
-0.016339313,
0.005062425,
-0.0133738145,
-0.031341244,
0.045412824,
0.05922274,
-0.042360105,
-0.0094416225,
-0.048000365,
0.016324775,
-0.015016467,
-0.005952801,
0.030207377,
0.02087478,
0.011665746,
0.007068497,
-0.008947372,
0.05047161,
0.003430674,
0.0055821138,
0.0009153613,
-0.0624499,
-0.052535832,
-0.0030563527,
0.023215197,
-0.00434649,
0.010146655,
-0.006734152,
0.025293954,
-0.0011720258,
0.029625906,
0.0015608841,
-0.039859783,
0.051634554,
-0.025613762,
0.0014173336,
-0.00696674,
-0.020613119,
0.00016103999,
0.006374367,
-0.021514397,
-0.025744593,
0.0018316311,
0.011760235,
-0.022023184,
-0.052041583,
-0.030585332,
0.012239948,
-0.020976538,
-0.0004610877,
-0.0058256043,
-0.06087993,
-0.030294597,
-0.012596098,
-0.023171587,
0.008067899,
-0.033841565,
0.036603548,
0.0058801174,
-0.0037214092,
-0.018926855,
0.029945714,
0.018941391,
0.0005923728,
-0.01773484,
0.03480099,
0.029684054,
0.017211517,
-0.007013984,
0.0039830706,
-0.024116477,
-0.041953076,
0.004353758,
0.035411537,
-0.008918299,
0.0017961977,
0.0137808435,
-0.012232679,
-0.07006716,
-0.008075167,
-0.026326062,
-0.010655441,
0.015699696,
0.020453215,
-0.0089691775,
0.06326396,
0.016004967,
0.06838089,
0.028608333,
0.01240712,
0.017415032,
0.007093936,
0.0023985645,
-0.0015617926,
-0.010371975,
-0.040644765,
-0.011978286,
0.048552763,
0.014943784,
0.027212804,
-0.0051314747,
0.008707516,
-0.070648625,
-0.002213221,
0.0133520095,
0.013766306,
0.049831994,
-0.0507042,
-0.0070575946,
-0.033696197,
0.0049788384,
0.02490146,
-0.062101018,
-0.0502681,
0.004833471,
-0.045412824,
0.0032435134,
-0.008678443,
0.007224767,
-0.008438586,
-0.005567577,
-0.0019134004,
0.015045541,
0.053320818,
-0.0045354674,
0.015379887,
-0.015336276,
0.021063758,
0.011680283,
0.0011829284,
-0.0039539975,
-0.06372913,
0.034103226,
0.041807707,
0.019973502,
-0.0129231755,
-0.019072222,
0.016164871,
-0.025032291,
0.02038053,
-0.051314745,
0.009347133,
-0.016848098,
0.029669516,
0.025482932,
-0.02414555,
0.006417977,
0.015481644,
0.029466001,
0.0059200935,
-0.0004833471,
0.013163031,
0.04959941,
-0.00662876,
0.047913145,
0.05334989,
0.021892352,
-0.024945071,
0.015583402,
0.0098631885,
0.010691783,
0.030963289,
0.031050509,
-0.01491471,
0.018200018,
0.008678443,
-0.038725916,
-0.044860426,
0.040383104,
0.030149229,
-0.060298458,
0.0034361253,
0.013613671,
0.034393962,
-0.018650657,
-0.026892997,
0.0064252457,
0.006058193,
0.009819577,
0.020002576,
-0.03791186,
0.017574936,
0.04358119,
-0.02338964,
-0.034248594,
-0.00094670616,
0.02907351,
0.045325603,
-0.0017807524,
-0.029538685,
0.07582372,
0.0016862636,
0.015961356,
0.023447786,
-0.024087403,
0.037388533,
0.02821584,
0.04762241,
-0.0032453304,
-0.020860244,
-0.0375339,
-0.03139939,
-0.013468304,
0.031021435,
-0.017662156,
-0.043610264,
-0.039772563,
-0.016106725,
0.0065161004,
-0.035498757,
0.008496733,
-0.061403252,
-0.024465358,
0.021296347,
-0.0028001424,
-0.03860962,
-0.027576225,
-0.013032201,
0.022982609,
0.003790459,
0.057536475,
-0.035062652,
0.07820774,
0.017589474,
0.0017653072,
0.0026220672,
0.030236451,
-0.017444106,
-0.013431962,
0.024014719,
-0.016150335,
-0.01258883,
-0.006817738,
-0.036865212,
-0.008685711,
-0.03305658,
0.016746342,
-0.021790596,
-0.006759591,
0.001964279,
-0.03154476,
0.003757751,
0.0634384,
0.029378781,
-0.011265985,
-0.012850491,
-0.004063023,
-0.030934215,
-0.01652829,
-0.036603548,
0.033899713,
-0.021339957,
-0.07140454,
-0.0050914986,
0.0070357895,
-0.014689391,
-0.022299383,
-0.014376851,
-0.036574475,
0.026704019,
-0.0031217681,
0.04116809,
0.014747538,
-0.027081974,
0.007319256,
0.033957858,
0.04416266,
0.04076106,
0.030759774,
0.02244475,
-0.004517297,
0.018577972,
-0.0045100283,
0.029553223,
-0.015263593,
-0.009812309,
-0.064833924,
-0.04363934,
-0.06820645,
-0.04605244,
-0.023171587,
0.030469038,
0.0039612656,
-0.017327812,
-0.04381378,
0.007624528,
-0.052797493,
-0.020714875,
-0.010793541,
0.038900357,
-0.040295884,
0.008169657,
0.016324775,
-0.038900357,
0.2516603,
0.05218695,
0.055704843,
0.013184837,
0.022866316,
0.08745312,
0.054600053,
-0.049831994,
0.04637225,
-0.00701035,
0.00070775824,
-0.02956776,
-0.016877173,
0.02777974,
-0.05797258,
0.024712482,
-0.05617002,
-0.021223662,
-0.033347316,
-0.03064348,
-0.04102272,
0.050733276,
-0.004081194,
0.02141264,
0.00815512,
0.019769987,
0.028186768,
-0.03744668,
-0.005320452,
-0.037737414,
0.022677338,
-0.032998435,
0.03573134,
-0.014769343,
-0.023258807,
0.031661052,
-0.013068543,
-0.045470968,
0.0039612656,
0.021267273,
0.021790596,
-0.01406431,
-0.02418916,
-0.008038825,
-0.05358248,
0.019028611,
0.0009775967,
0.049395893,
0.047913145,
-0.031108655,
0.024261843,
-0.015089151,
0.03901665,
-0.036632624,
-0.04157512,
-0.05666427,
-0.050500687,
-0.033667125,
-0.008642101,
0.002427638,
-0.019697303,
-0.019072222,
0.004829837,
0.061112516,
-0.014660317,
0.017138833,
0.017284201,
-0.016019505,
-0.04605244,
-0.0067087123,
0.029596834,
-0.016223019,
-0.012123654,
-0.04613966,
-0.009710552,
0.024261843,
0.017851135,
0.041633267,
-0.00060509244,
-0.033347316,
-0.000836772,
-0.017458642,
-0.012646977,
-0.0536697,
0.012567025,
0.03828981,
-0.035091728,
0.01635385,
-0.0058183363,
0.040877353,
-0.00069912703,
0.031341244,
0.010342901,
0.008533075,
-0.016339313
] | Incorrect generation mode
By default, and unless specified in the [~generation.GenerationConfig] file, generate selects the most likely token at each iteration (greedy decoding). Depending on your task, this may be undesirable; creative tasks like chatbots or writing an essay benefit from sampling. On the other hand, input-grounded tasks like audio transcription or translation benefit from greedy decoding. Enable sampling with do_sample=True, and you can learn more about this topic in this blog post. |
[
0.018115353,
0.044000734,
0.010043645,
-0.0035244734,
-0.03676048,
0.013936019,
-0.0064823823,
-0.0023821467,
-0.01877757,
0.049063027,
0.021558888,
0.016231708,
-0.016584892,
-0.04488369,
-0.018748138,
0.050799508,
0.0010669074,
-0.03266944,
-0.038379237,
-0.004227161,
0.011875783,
-0.026577031,
-0.071460724,
-0.048886433,
-0.0135754775,
0.030167727,
0.032433987,
-0.0066369,
0.046561312,
0.058186922,
-0.026974363,
0.0117212655,
0.020543486,
-0.011250354,
-0.04838609,
-0.04729711,
-0.0071740327,
-0.083881,
-0.029932272,
-0.037025366,
0.043529823,
0.016364152,
0.019748824,
-0.045531195,
-0.031668756,
-0.017821033,
-0.022692017,
-0.0063094697,
0.0052609574,
-0.028843291,
-0.051211555,
-0.010727938,
0.020631783,
-0.0037893609,
-0.048180066,
-0.00820415,
-0.003782003,
-0.02472282,
-0.042205386,
-0.022780312,
-0.0069312192,
0.02891687,
-0.018130068,
-0.05418418,
-0.011500526,
0.0216619,
0.007806819,
0.036819343,
-0.015687218,
-0.010374755,
-0.027577717,
0.030962389,
-0.021485308,
-0.045825515,
-0.039262194,
0.007968695,
0.010168731,
-0.018586263,
-0.0017475208,
0.031050686,
0.027003795,
0.033699557,
-0.003759929,
0.016158128,
-0.008579407,
-0.03967424,
0.045295738,
0.0017042926,
-0.0043522464,
-0.022176959,
-0.0072660074,
0.036083546,
-0.024899412,
0.0164083,
0.04241141,
0.026179701,
0.004576665,
0.0384381,
0.002501714,
-0.031080117,
0.011184133,
0.061453868,
-0.037349116,
-0.015819661,
-0.012089165,
0.004013779,
0.010154015,
0.01845382,
-0.011331293,
-0.0226773,
0.0022699374,
0.004918811,
0.012030301,
0.011802203,
0.0014522817,
0.026179701,
0.004216124,
0.016805632,
-0.058863856,
-0.029946988,
0.017526714,
-0.009793474,
-0.018115353,
-0.06551547,
0.00021763532,
-0.020366894,
0.016378868,
0.055449754,
-0.037466846,
0.0039659524,
0.021308716,
0.0036090903,
0.033228647,
0.050475758,
0.02089667,
0.0034656096,
0.010124584,
0.010455693,
0.037614007,
0.007494105,
0.009248984,
0.031374436,
0.010190805,
0.09659559,
0.015334035,
-0.0059231757,
0.023207076,
-0.05506714,
-0.028769711,
-0.0037709658,
-0.043147206,
-0.0012205053,
0.022721449,
0.002764762,
0.0005711634,
-0.03110955,
0.0023140854,
0.04561949,
0.021706048,
0.0075125,
0.020514054,
0.03920333,
-0.05633271,
0.039644808,
-0.008844295,
0.018733423,
-0.035906952,
0.006250606,
0.019866552,
-0.06993026,
0.0060261874,
-0.0072181807,
0.010242311,
0.00820415,
0.026238564,
0.027563002,
0.06745798,
0.048562683,
0.006118162,
0.0024226157,
-0.017497282,
0.008079064,
-0.015392899,
0.011581464,
0.010080435,
0.014105252,
-0.0037102625,
-0.007332229,
-0.0029634272,
0.008535259,
0.048621546,
0.036642753,
0.011875783,
0.015363467,
-0.03252228,
-0.013523972,
-0.023310088,
0.022221107,
0.013744711,
-0.014267128,
-0.001549775,
0.04361812,
-0.0690473,
0.015098579,
0.003311092,
0.022191674,
0.028799143,
0.040351175,
-0.01181692,
0.012258398,
0.055655777,
0.02891687,
-0.03555377,
-0.021308716,
0.0056288564,
-0.028136924,
-0.009852339,
0.019410357,
-0.013266442,
0.027901469,
-0.035906952,
0.033611264,
0.031757053,
0.0005444907,
-0.0149955675,
-0.023530828,
-0.007096774,
0.040262878,
-0.032286827,
0.006912824,
-0.013450392,
0.0128543945,
0.031521596,
0.04300005,
0.04196993,
0.03264001,
0.049533937,
0.027224533,
0.022368265,
-0.00087284064,
0.004896737,
0.036525022,
-0.0012011906,
0.029785112,
-0.007828893,
0.0021190988,
-0.016069833,
-0.027445273,
-0.034906268,
0.032551713,
-0.021632468,
0.08482282,
0.020469906,
-0.030491479,
-0.036407296,
0.004087359,
0.02457566,
0.022721449,
-0.0097787585,
-0.033846717,
0.03846753,
0.02982926,
0.012383484,
-0.018689275,
0.00077580725,
0.049210183,
0.010279101,
-0.0058937436,
-0.018748138,
-0.061571594,
-0.017144099,
-0.044501077,
-0.078936435,
0.007004799,
-0.018071204,
-0.02709209,
-0.004006421,
-0.043912437,
0.006257964,
-0.031521596,
0.025296742,
0.005043897,
-0.034553085,
0.055126004,
0.026680043,
0.027033227,
-0.040645495,
0.013354737,
-0.034111604,
0.026194416,
-0.008137928,
-0.029579088,
-0.02220639,
-0.027798457,
-0.013398886,
0.027695445,
0.042146523,
-0.026871352,
-0.019881267,
0.026341576,
0.0010521915,
0.029888123,
0.004271309,
0.028858006,
-0.0073910933,
0.01914547,
0.016452448,
-0.041911066,
0.052506562,
0.04664961,
-0.045678355,
0.016437732,
-0.002130136,
0.037878893,
-0.04850382,
0.031492162,
0.056597598,
-0.026047258,
-0.03278717,
-0.047503132,
-0.07293232,
0.031080117,
-0.017438417,
-0.028563688,
0.03434706,
0.07057776,
0.019792972,
-0.052742016,
-0.012626298,
-0.019027742,
-0.021411728,
-0.06245455,
-0.009241626,
0.041381292,
0.017041087,
0.017968193,
-0.02960852,
-0.023457248,
-0.030903526,
0.029108178,
-0.012427632,
-0.012898543,
0.016643755,
0.027209818,
-0.0151574435,
0.0016969347,
0.02494356,
-0.049857687,
-0.003073797,
-0.0095800925,
-0.029946988,
-0.004973996,
0.0057355473,
-0.0011211726,
-0.016599609,
0.030344319,
-0.0075787217,
-0.007483068,
-0.024296056,
-0.000069728376,
0.011220923,
0.028387096,
-0.02417833,
0.015231024,
-0.00025500008,
-0.007873041,
-0.013030986,
0.031992506,
0.04149902,
-0.027077375,
0.020867238,
0.021544171,
-0.04108697,
-0.0094550075,
-0.042646866,
-0.019748824,
0.06969481,
0.030064715,
0.04273516,
-0.013840364,
0.006953293,
-0.011346009,
-0.003678991,
0.022883324,
0.04485426,
0.0064492715,
-0.007571364,
-0.04029231,
-0.016069833,
0.00068797136,
-0.004598739,
-0.0141493995,
-0.00066819676,
-0.0048121205,
-0.04868041,
-0.034759108,
0.002483319,
0.05185906,
0.016143413,
0.032551713,
0.04273516,
-0.014061104,
0.008947306,
0.009896486,
-0.023133496,
-0.008373383,
-0.026429873,
0.06516229,
-0.025385039,
-0.013104566,
-0.0072071436,
-0.037967186,
-0.032728303,
0.0019222728,
0.0101025095,
0.035347745,
-0.044677667,
-0.0036238062,
-0.015878526,
0.006269001,
-0.047944613,
-0.03190421,
-0.060041133,
0.02180906,
0.03737855,
-0.06592752,
0.007063663,
-0.028490108,
0.0021099015,
0.036495592,
0.042823456,
-0.021838492,
-0.020661214,
0.0055074496,
-0.0051321927,
0.046943925,
0.021470591,
-0.010058362,
0.0017125703,
-0.026091404,
0.037290253,
0.016570175,
-0.026738908,
-0.0029119214,
0.04714995,
-0.004197729,
0.006625863,
-0.006143915,
-0.008483754,
-0.013126641,
0.07246141,
-0.03387615,
0.021058545,
-0.019454505,
-0.016055116,
-0.036525022,
-0.0109118875,
0.04032174,
0.014281844,
-0.025105435,
-0.039615378,
0.01225104,
0.05168247,
-0.019248482,
-0.012802889,
0.0067288745,
0.027504137,
-0.00930049,
0.027695445,
-0.008373383,
-0.0029818222,
0.054507934,
0.03405274,
0.025591062,
-0.034111604,
-0.005805448,
-0.0028585761,
-0.0066074682,
-0.03528888,
0.030344319,
-0.04211709,
0.037172526,
0.0014035351,
-0.017453134,
0.01768859,
-0.027445273,
-0.017085236,
-0.016938075,
-0.03358183,
0.021676615,
0.03858526,
-0.028607834,
-0.012523286,
-0.021485308,
0.004550912,
-0.049945984,
-0.051800195,
-0.02042576,
0.06663389,
0.026871352,
0.060982957,
-0.040351175,
-0.0035281524,
0.059423063,
-0.026341576,
-0.0033037341,
-0.0016417498,
0.014237695,
-0.0051873773,
-0.0009464205,
-0.03628957,
-0.028754994,
-0.00995535,
-0.030197158,
-0.009609525,
-0.008152644,
-0.013634341,
-0.026532885,
-0.026209133,
0.0832335,
-0.018762855,
-0.06245455,
-0.018703992,
0.0044258265,
0.021132125,
0.0010043646,
0.047944613,
-0.0023600727,
-0.02669476,
-0.019174902,
0.05006371,
0.014245054,
0.011875783,
-0.056097258,
-0.058804993,
0.015525343,
0.025164299,
-0.009933276,
-0.09382899,
0.0031271426,
-0.016216993,
0.015687218,
-0.04900416,
-0.01626114,
-0.025752937,
-0.0008411093,
0.0037360154,
0.029461361,
0.017261826,
-0.0023140854,
-0.013067776,
-0.01480426,
0.031815916,
0.015804946,
-0.05403702,
0.018394956,
-0.007030552,
-0.009109182,
-0.03452365,
0.043206073,
0.0135386875,
0.0690473,
-0.008601481,
0.014811618,
-0.059452496,
0.00747571,
-0.07828893,
0.010051004,
0.043147206,
-0.058186922,
-0.03481797,
0.033552397,
0.021073261,
-0.007490426,
0.034876835,
-0.050770078,
-0.015451763,
-0.05480225,
-0.027047943,
0.023648554,
-0.0258118,
0.0021963576,
-0.0036238062,
-0.030962389,
0.05203565,
-0.04915132,
0.0050144647,
0.06333751,
-0.0023582333,
-0.013729995,
-0.060158864,
0.034288198,
0.0084101735,
-0.006110804,
0.013825648,
0.03158046,
-0.017482566,
-0.0065633203,
-0.015657786,
-0.03923276,
-0.012457063,
0.055508617,
0.04350039,
-0.008101138,
0.0125674335,
-0.02030803,
-0.06657502,
-0.011493168,
0.025223164,
0.012273114,
0.03022659,
0.038879577,
0.044059597,
0.016511312,
0.035318315,
-0.044353917,
-0.004606097,
-0.027356979,
0.011529958,
0.01579023,
-0.0026396762,
0.016349437,
0.033787854,
-0.047326542,
-0.062160235,
0.011309219,
0.009035602,
-0.071460724,
0.0051469086,
-0.009410859,
-0.0060151503,
-0.027960332,
0.014693891,
-0.0036238062,
-0.021264568,
-0.004948243,
-0.030874094,
-0.008719209,
-0.06404388,
0.039733104,
0.044765964,
-0.021897355,
0.0065375674,
-0.06274887,
-0.013869797,
-0.032080803,
0.0005228766,
0.029034598,
0.021882638,
0.031050686,
0.04014515,
0.020190302,
0.0817619,
-0.0024134181,
0.0038335088,
0.024443217,
-0.008042275,
-0.06969481,
-0.018571546,
0.027754309,
-0.0062984326,
0.008549975,
-0.028210504,
0.012655729,
0.028799143,
0.067987755,
-0.00032030218,
-0.042646866,
0.005386043,
0.0023140854,
-0.029108178,
0.011500526,
-0.034759108,
-0.01225104,
0.067340255,
0.0018514523,
-0.0023582333,
0.032080803,
0.011515242,
-0.01225104,
-0.039939128,
0.0022184316,
0.02874028,
-0.060011704,
-0.03467081,
-0.024193045,
-0.025752937,
-0.0029799829,
0.009425575,
-0.0077700294,
-0.022000367,
-0.006497098,
0.028754994,
-0.014936704,
0.015613638,
0.028534256,
0.012538002,
-0.007464673,
-0.021779627,
-0.026415156,
0.047414836,
0.040351175,
-0.034876835,
0.050328597,
0.0024023813,
0.01422298,
-0.027724877,
0.010669074,
0.06027659,
-0.013612267,
0.04579608,
-0.040056854,
0.0006240489,
-0.019807689,
0.02067593,
-0.02042576,
0.030609205,
0.026194416,
0.023471963,
-0.014031672,
0.021941504,
0.051329285,
-0.011007542,
0.0047753304,
0.05021087,
0.018247796,
-0.010676432,
0.023942875,
-0.020999681,
0.032286827,
-0.05156474,
0.02731283,
0.035906952,
-0.036054112,
-0.0016610645,
0.0019627418,
-0.015113295,
-0.040410038,
-0.017453134,
0.053036336,
0.035347745,
0.030197158,
-0.051505875,
-0.009337279,
0.00820415,
-0.03358183,
-0.0071629956,
-0.049857687,
-0.013457749,
-0.015804946,
-0.048150636,
-0.030785797,
-0.024016455,
-0.00816736,
0.0073469453,
0.010801518,
-0.0039843475,
0.024340205,
0.05341895,
0.0013198381,
-0.007067342,
-0.0516236,
-0.01823308,
0.019925416,
0.004481011,
-0.015363467,
-0.025282027,
0.037260823,
0.06545661,
0.040027425,
-0.019719392,
-0.0013741031,
0.0092563415,
-0.012560076,
0.059776247,
-0.007799461,
-0.019351494,
-0.056685895,
0.044971988,
-0.020690646,
0.03234569,
-0.02640044,
0.0028015517,
0.014568805,
0.018542115,
0.008498469,
-0.016378868,
0.04641415,
-0.0705189,
0.002632318,
0.034759108,
0.027121522,
-0.011059048,
-0.008579407,
-0.02526731,
0.044648238,
0.038232077,
0.016025685,
-0.03596582,
0.045384035,
0.029343633,
-0.063572966,
-0.043529823,
0.030138295,
0.021426445,
-0.027769025,
-0.00284386,
-0.0017953477,
0.018321376,
0.013663773,
0.0011368083,
0.013222294,
0.024634525,
0.011809561,
-0.0031326609,
0.0047238246,
0.027283398,
0.0024023813,
-0.035494905,
0.008086422,
-0.007968695,
0.05353668,
-0.0034141038,
0.021603037,
0.008630913,
0.040086288,
0.04597267,
0.025134867,
-0.012236324,
0.0043375306,
0.008792789,
0.025061287,
0.027253967,
-0.030785797,
-0.021632468,
-0.041234132,
-0.0037396944,
-0.051329285,
0.030785797,
-0.016055116,
-0.039350487,
-0.0024980349,
-0.0109118875,
-0.01768859,
-0.07440392,
0.009138614,
-0.038114347,
0.0105513465,
0.041440155,
-0.023751566,
-0.03784946,
0.041145835,
-0.014458435,
0.04426562,
0.014598236,
0.00648974,
-0.010713222,
0.036495592,
-0.015289887,
-0.0255322,
0.028210504,
0.0021319753,
-0.04317664,
-0.03693707,
0.0076228697,
-0.001761317,
-0.021264568,
-0.036024682,
-0.03829094,
-0.020072576,
-0.017364837,
-0.032316256,
-0.014642385,
0.03343467,
0.013141356,
-0.016746767,
0.0104262605,
0.046178695,
0.012920617,
-0.015083863,
0.00033386843,
0.002231308,
-0.043735847,
-0.037349116,
-0.039968558,
0.032227963,
-0.041116405,
-0.009307847,
-0.04962223,
-0.015128012,
-0.019160185,
0.0029634272,
-0.009168046,
0.018071204,
0.020646498,
0.011765414,
0.04838609,
0.017850464,
0.008476395,
-0.013325306,
0.055273164,
0.02862255,
0.02647402,
0.048886433,
0.05177076,
0.021073261,
-0.010536631,
0.028048629,
0.002205555,
-0.03628957,
0.0072328965,
0.0047532567,
-0.02136758,
-0.035347745,
-0.060629774,
-0.027077375,
-0.019101322,
0.059746817,
-0.004657603,
0.012464422,
0.0032227961,
-0.07528687,
-0.026061973,
-0.008226224,
0.00032812002,
0.0258118,
-0.021485308,
0.019572232,
-0.022809746,
0.25853005,
0.04635529,
-0.0013612267,
0.011912573,
0.042970616,
0.047355972,
0.01768859,
-0.037113663,
0.027666014,
-0.038202643,
-0.03478854,
-0.025149584,
-0.004190371,
0.03340524,
-0.04093981,
0.038702987,
-0.04270573,
0.0138624385,
0.022441845,
-0.043088343,
-0.047561996,
0.04411846,
0.009028244,
0.045148578,
0.03325808,
0.0032761416,
-0.0004568847,
-0.02425191,
-0.0029523904,
-0.026856635,
0.033081487,
-0.028754994,
0.0027813173,
-0.03452365,
-0.03202194,
0.039115034,
-0.014635026,
-0.024516797,
-0.032846034,
0.006761986,
0.025355607,
-0.025399754,
0.014642385,
-0.022471277,
-0.00049068546,
0.016202277,
0.004550912,
0.032080803,
0.053154062,
-0.03128614,
0.030079432,
-0.04223482,
0.023928158,
-0.010396829,
-0.06940049,
0.028033912,
-0.017423702,
-0.042470273,
-0.039733104,
-0.02260372,
-0.017732738,
-0.026856635,
0.0074094883,
0.02045519,
-0.02363384,
0.042970616,
-0.012950049,
0.027209818,
-0.026900783,
0.007895115,
-0.02016087,
-0.011257713,
-0.054449067,
-0.032080803,
0.021249853,
0.007895115,
0.006338902,
0.0029450324,
-0.031609893,
-0.028122207,
0.045266308,
-0.0108750975,
-0.005246241,
-0.038673554,
0.027607149,
0.014539373,
-0.025429187,
0.01764444,
-0.016908644,
0.011220923,
0.012670445,
0.025723506,
-0.017335406,
-0.048768707,
0.023251224
] | from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
tokenizer.pad_token = tokenizer.eos_token # Most LLMs don't have a pad token by default
model = AutoModelForCausalLM.from_pretrained(
"mistralai/Mistral-7B-v0.1", device_map="auto", load_in_4bit=True
) |
[
0.05056199,
0.023569407,
0.025224878,
0.023162553,
-0.06240281,
-0.012437071,
0.03369864,
-0.008249292,
-0.029377582,
0.066050455,
-0.0036195875,
0.03010711,
-0.017831378,
-0.01924835,
-0.062963985,
0.009070013,
0.02110023,
-0.031117229,
-0.05931634,
0.007779307,
0.0436034,
0.030303523,
-0.06924916,
0.012661542,
-0.023064347,
0.0006984015,
0.04952381,
0.014899232,
0.06599434,
0.05404128,
-0.007856469,
0.04110617,
-0.0096311895,
-0.039198168,
-0.06307622,
-0.03207123,
-0.006141374,
-0.051291518,
-0.015165791,
-0.036364228,
0.049748283,
0.013292865,
0.007737219,
-0.058418456,
-0.029602053,
-0.038805343,
-0.021717524,
-0.018673142,
0.00468933,
-0.01341913,
-0.01732632,
-0.013145556,
0.001120599,
-0.033586405,
-0.04152705,
0.001932551,
0.009568057,
0.020454878,
-0.031369757,
-0.046297047,
0.0001911507,
0.026066642,
0.029826524,
-0.05651046,
0.022503171,
-0.006046675,
-0.04076946,
-0.010136248,
-0.009596116,
-0.037065696,
-0.009238366,
0.030022934,
-0.04935546,
-0.053872928,
-0.025743965,
-0.010192365,
0.006744638,
0.029461758,
-0.027946582,
0.028185083,
0.04604452,
0.03512964,
0.026291111,
-0.006576285,
-0.0030812088,
-0.021170378,
0.03748658,
-0.019346554,
-0.003475786,
-0.027722111,
-0.0026954,
0.055612575,
-0.01590935,
0.023835965,
0.033418052,
0.057324164,
0.006713072,
0.05572481,
0.040180225,
-0.026992582,
0.017200055,
0.059821397,
-0.046633754,
0.025477406,
-0.056089576,
-0.007639013,
-0.018532848,
0.03487711,
-0.025842171,
0.002186834,
-0.021170378,
0.010115203,
-0.0019956834,
0.010844733,
-0.06717281,
0.035438288,
0.009490895,
0.003745852,
-0.07306516,
-0.004822609,
0.046016462,
-0.01231782,
-0.019079996,
-0.008607042,
0.028507758,
0.002344665,
0.0017203563,
0.0322957,
-0.013384056,
0.00034941995,
0.014857144,
0.019304466,
0.020019967,
0.00090226636,
-0.0056538517,
0.0077442336,
-0.024032377,
-0.0009890733,
0.034933228,
0.009596116,
0.012514233,
0.018631054,
-0.0024007827,
0.07671281,
-0.03131364,
-0.004314043,
0.01828032,
-0.03608364,
-0.0140364235,
-0.0265717,
-0.023008231,
0.03748658,
0.009196278,
0.011805748,
-0.025533523,
-0.027694052,
0.00043535008,
0.005538109,
0.020454878,
0.021170378,
-0.005825712,
0.034933228,
-0.024284907,
0.0303877,
-0.004531499,
0.02918117,
-0.015937408,
0.0012503711,
0.016709026,
-0.05241387,
-0.018097937,
-0.026403347,
-0.026683936,
0.017340349,
0.011679483,
0.055696752,
0.024733847,
0.025715906,
0.024874141,
0.013650615,
-0.021268584,
0.0036160802,
0.011209497,
0.013790909,
0.02753973,
0.006383381,
0.015769055,
0.0035055985,
-0.02276973,
0.036728993,
0.036420345,
0.0483734,
0.011398895,
0.008410631,
0.007070822,
0.019150143,
-0.01494132,
0.049046814,
0.027217053,
-0.047812223,
0.0057275062,
0.037879404,
-0.047110755,
0.018448673,
-0.009048969,
0.014871174,
0.03013517,
0.065320924,
-0.006330771,
-0.016961556,
0.040152166,
0.013994335,
-0.012338865,
0.03462458,
0.024803994,
-0.00503305,
-0.030948875,
-0.016217997,
-0.028549846,
0.022222584,
-0.05059005,
0.046128694,
0.006274653,
0.00058441254,
-0.027132876,
-0.043070287,
0.033838935,
-0.006432484,
-0.025238907,
0.028984759,
-0.04671793,
0.0024288413,
0.009322542,
0.023092406,
0.04697046,
0.00023652706,
0.08193175,
0.04158317,
-0.028760288,
-0.0039282343,
0.015249968,
-0.00065192906,
0.004314043,
0.020763526,
0.04200405,
-0.01021341,
-0.024102524,
-0.010409821,
-0.07104493,
-0.018659113,
0.0007597802,
0.049720224,
0.044613518,
-0.027469583,
-0.0036441388,
-0.0058046677,
0.011518145,
0.07441198,
-0.05998975,
-0.032576285,
0.044641577,
0.034259815,
-0.015839202,
-0.01707379,
0.031678405,
0.0025217861,
0.031453934,
0.016807232,
-0.0033986242,
-0.018055849,
-0.027651964,
-0.07497316,
-0.054237694,
0.0074215573,
0.009420748,
-0.037093755,
-0.0016738839,
-0.029910699,
0.0055310945,
-0.031734522,
-0.0023201134,
-0.020735467,
0.0026287604,
0.037598815,
0.0006238703,
-0.0029146096,
-0.06666775,
0.009427763,
0.005580197,
0.0731774,
-0.0119741,
-0.014071497,
-0.04607258,
-0.019416701,
0.026445435,
-0.0045841094,
0.065825984,
0.004324565,
-0.03395117,
0.016302172,
0.024789965,
0.031594228,
-0.0045841094,
0.0025217861,
0.00817213,
0.05738028,
0.045679756,
-0.07312128,
0.012444085,
0.03628005,
-0.05261028,
0.028283289,
0.010928909,
0.012878997,
-0.019613113,
0.015348173,
0.017157966,
-0.0124511,
-0.01871523,
-0.041190345,
-0.06801458,
-0.008803454,
0.053311754,
-0.021058142,
0.04298611,
0.096915156,
-0.0071374616,
-0.05030946,
0.0095820865,
-0.050225284,
-0.011553218,
-0.017214084,
-0.0070427633,
0.033109404,
0.029321464,
0.060158104,
0.01729826,
-0.047335226,
-0.034203697,
0.041218404,
-0.03156617,
0.01971132,
0.020539055,
0.02375179,
0.017438555,
-0.0049173078,
0.007379469,
-0.041386757,
-0.004440308,
0.009462836,
0.0080879545,
-0.006593822,
0.008179145,
0.00036103805,
0.000017249049,
0.027960612,
-0.03630811,
-0.002837448,
0.0072742486,
0.0225172,
0.01588129,
0.029489817,
0.013840011,
-0.0054328884,
-0.0040264404,
-0.011251586,
0.000014344522,
0.034175638,
0.055331986,
0.009596116,
0.03773911,
0.0025761502,
-0.03013517,
-0.000806691,
-0.06431081,
0.0008180899,
0.06358128,
0.0077933366,
0.01588129,
-0.056145694,
-0.03555052,
0.009862674,
-0.032520168,
-0.0020395252,
0.031706464,
-0.0033425067,
-0.008059896,
-0.017186025,
0.015923379,
0.057576694,
0.0030829625,
-0.034820992,
0.004833131,
-0.04133064,
-0.02110023,
-0.01686335,
-0.0111253215,
0.08254904,
0.013068394,
0.013755836,
0.0032390398,
-0.016694997,
0.037907463,
-0.0054434105,
-0.02278376,
-0.037121814,
-0.033810876,
0.030163229,
-0.018953731,
0.023302848,
-0.031594228,
0.021282613,
-0.029377582,
0.06801458,
0.0031969515,
-0.02014623,
-0.02870417,
-0.031846758,
0.029798465,
-0.006176447,
-0.035326052,
-0.04643734,
-0.04929934,
-0.0143591,
0.07441198,
-0.056314047,
-0.011609335,
-0.0018553893,
0.0063448,
0.015698908,
0.021170378,
-0.023106435,
-0.041414816,
-0.06638716,
-0.009070013,
0.0017019426,
0.032127347,
0.01613382,
0.022180496,
-0.026459465,
0.009806557,
0.0009031432,
-0.009932822,
0.031846758,
0.006130852,
-0.0038159993,
0.043799814,
0.024481319,
-0.025252936,
-0.035494406,
0.030556053,
-0.029040877,
0.028142994,
-0.030527994,
0.014394173,
0.011041145,
0.0021692973,
0.010227439,
0.04986052,
-0.044080403,
-0.024270877,
0.013587482,
-0.0034372052,
-0.029854583,
-0.023429113,
0.01517982,
0.03891758,
-0.046858225,
0.010451909,
0.002793606,
-0.0143661145,
0.010479968,
0.041218404,
-0.012373938,
0.012773776,
-0.0062185354,
0.013194659,
-0.026473494,
-0.025940377,
0.034933228,
-0.035662755,
0.040432755,
0.019150143,
-0.0029111023,
0.014857144,
-0.04365952,
-0.048541754,
0.0087964395,
-0.022910025,
0.059260223,
0.0025919334,
0.013180629,
0.025898289,
-0.009596116,
0.026431406,
-0.026669906,
-0.040657226,
0.00936463,
0.051067047,
0.041470934,
0.01943073,
-0.02065129,
0.023457171,
0.055612575,
-0.042593285,
-0.017494673,
-0.031145288,
-0.018420614,
0.00001956445,
-0.012654527,
-0.047363285,
-0.015544585,
0.022026172,
0.011581277,
0.037598815,
-0.04076946,
-0.014590585,
-0.01686335,
-0.03967517,
0.07166222,
0.0028777826,
-0.056791045,
-0.011293674,
-0.0097083505,
0.014730879,
0.034315933,
0.016288143,
0.005485499,
-0.04127452,
-0.01634426,
0.043743696,
0.009350601,
-0.005478484,
-0.05174046,
-0.015867261,
-0.01008013,
0.030584112,
-0.023358965,
-0.0957928,
-0.025126671,
-0.022404965,
0.060158104,
-0.04079752,
0.011672468,
-0.029994875,
-0.0025305545,
-0.009575072,
0.013334953,
0.018813437,
-0.027932553,
0.026529612,
0.006193984,
0.022306759,
0.05712775,
-0.048710108,
-0.013938217,
0.017438555,
0.022166466,
0.0070427633,
-0.0063693514,
0.006123837,
0.0450344,
-0.028634023,
0.03703764,
-0.03204317,
0.005590719,
-0.03703764,
-0.044641577,
0.05011305,
-0.0493274,
-0.024832053,
-0.024523407,
0.03274464,
0.010788615,
0.0009408472,
-0.019360583,
-0.015965467,
-0.007309322,
-0.00337758,
0.013489276,
-0.044585463,
0.017424526,
0.003470525,
-0.0351577,
0.076039396,
-0.050141107,
0.017410496,
0.053900987,
-0.030948875,
-0.01993579,
-0.067790106,
0.011728586,
-0.0016203967,
-0.01517982,
0.030247405,
0.002274518,
-0.01801376,
-0.03793552,
-0.05269446,
-0.034680698,
-0.021689465,
0.028423581,
0.048513696,
-0.025280995,
0.03726211,
0.0059905574,
-0.0536204,
-0.027960612,
0.03347417,
-0.018420614,
0.007091866,
0.011020101,
0.04270552,
-0.014422232,
0.020819642,
-0.06520869,
-0.033305816,
-0.007049778,
0.049187105,
-0.007919601,
-0.0072532045,
0.040993933,
0.03176258,
-0.0322957,
-0.058755163,
0.009652233,
-0.0028953191,
-0.041442875,
-0.005496021,
-0.0065412116,
-0.029012818,
-0.027118847,
0.0026813708,
0.035073522,
0.03207123,
0.010879806,
0.008754351,
0.0023043305,
0.0034845544,
0.029545935,
0.05738028,
-0.025042495,
0.004492918,
-0.04957993,
-0.00486119,
-0.01659679,
0.0028567384,
0.04671793,
-0.0003941387,
0.007491704,
0.029293405,
-0.013250777,
0.04079752,
-0.0015993526,
-0.009995954,
0.011798733,
-0.047756106,
-0.04051693,
-0.003724808,
0.06139269,
0.013629571,
0.040657226,
-0.024818024,
-0.0013792663,
-0.030696345,
0.060550928,
-0.026543641,
-0.047391344,
0.013236747,
-0.029854583,
-0.025266966,
-0.022250643,
-0.021927966,
0.02798867,
0.057099693,
-0.0067867264,
-0.037626874,
0.0034196684,
0.024411172,
-0.07059599,
-0.009946851,
0.0032039662,
0.03602752,
-0.061561044,
0.012577365,
-0.016077703,
-0.018841496,
0.0015309593,
-0.018322408,
0.00093470933,
-0.039534874,
-0.039338462,
-0.0010048564,
-0.02560367,
-0.012612439,
0.022376906,
0.014008365,
-0.027174965,
0.011595306,
-0.018588966,
0.048036695,
0.023330906,
-0.008256307,
0.025098613,
0.00782841,
0.0022236612,
-0.043070287,
-0.0050751385,
0.009757454,
-0.0023148526,
0.011104277,
0.0031057603,
0.009027924,
-0.0498044,
0.0029917713,
-0.032239582,
-0.019150143,
0.030696345,
0.016779173,
0.042845815,
0.04318252,
0.023134494,
0.007172535,
0.0076109543,
0.051403753,
0.028479699,
0.025463376,
-0.0026778635,
0.00533819,
-0.04483799,
-0.049720224,
-0.012121409,
0.039815463,
-0.05291893,
0.012738703,
-0.01422582,
0.016961556,
-0.032604344,
0.012710644,
-0.013348983,
0.028563876,
0.041162286,
-0.056819104,
-0.011595306,
-0.01351032,
-0.011006071,
0.026936464,
-0.05095481,
-0.008501822,
-0.0072882776,
-0.031622287,
-0.058418456,
-0.0365887,
-0.005071631,
0.030331582,
0.0060501825,
-0.004401727,
-0.026641848,
0.058474574,
0.01565682,
0.0011933766,
-0.024860112,
-0.021773642,
0.011440983,
-0.026263053,
-0.00060808717,
-0.050646167,
0.03656064,
0.035662755,
-0.001575678,
0.011160394,
-0.015207879,
0.012794821,
-0.029714288,
0.03939458,
-0.021310672,
0.026375288,
-0.06262728,
0.010283557,
0.029770406,
-0.02302226,
-0.009757454,
0.030780522,
0.009462836,
-0.004682315,
0.0026234994,
0.011342777,
0.03796358,
-0.067285046,
-0.00013010085,
0.027932553,
0.036504522,
-0.004443815,
0.04812087,
0.00830541,
0.043042228,
0.023415083,
0.012247674,
-0.0588674,
0.04385593,
0.021436937,
-0.048794284,
-0.022755701,
0.018448673,
-0.019514907,
-0.029826524,
-0.045707814,
-0.013952247,
0.020342642,
0.031987052,
0.022026172,
-0.0044332934,
0.022559289,
-0.0040369625,
-0.024747876,
-0.04225658,
0.061617162,
0.03459652,
-0.038749225,
-0.04194793,
-0.015726967,
0.040039934,
0.027343318,
-0.0037002566,
0.0005436396,
0.0001868761,
0.040993933,
0.044529345,
0.013110482,
-0.011244571,
0.005050587,
-0.0015265751,
0.00925941,
0.0030724404,
0.011483071,
-0.04335087,
-0.025477406,
0.0028690142,
0.01616188,
-0.032155406,
-0.026641848,
-0.030219346,
-0.0010416836,
-0.009827601,
-0.031902876,
0.026754083,
-0.050926752,
-0.029742347,
0.04722299,
0.003356536,
-0.043715637,
0.017368408,
-0.0001523506,
0.018645084,
-0.004443815,
0.04009605,
0.033025227,
0.04534305,
-0.018546877,
-0.023176583,
0.04436099,
-0.01033266,
-0.013818967,
0.0037177934,
0.008108999,
0.019009849,
-0.030443817,
-0.015853232,
-0.04245299,
-0.010592204,
0.00593444,
-0.006593822,
-0.012731688,
0.026501553,
-0.008480778,
-0.03541023,
-0.012605424,
0.06475975,
0.031425875,
-0.007077837,
-0.0101643065,
-0.018322408,
0.004254418,
-0.0053101312,
0.0044052345,
0.020931877,
-0.06717281,
-0.024481319,
-0.0318187,
-0.030948875,
-0.029068936,
0.01588129,
-0.0027550252,
-0.015600703,
0.02159126,
0.0077231894,
0.015558614,
0.015572644,
-0.015011467,
-0.0289567,
0.048457578,
0.032155406,
0.0020219886,
0.03010711,
0.08799245,
0.029602053,
0.0005002361,
0.025337111,
-0.011932012,
0.0017177258,
0.0033635506,
-0.03409146,
0.0023148526,
-0.031341698,
-0.016302172,
-0.005657359,
0.022110349,
0.045371108,
-0.003654661,
-0.048092812,
-0.03541023,
-0.043996226,
0.013545394,
-0.01562876,
0.047391344,
-0.010641307,
-0.018855525,
0.010192365,
0.0030549038,
0.2316536,
0.047166873,
0.04624093,
-0.0015011467,
0.053059224,
0.062963985,
0.032351818,
-0.016666938,
0.02016026,
-0.04225658,
0.0129982475,
-0.006972616,
0.020440849,
-0.006614866,
-0.008929718,
-0.0012161743,
-0.032856874,
0.0280027,
-0.03678511,
-0.020693379,
-0.057043575,
0.035045464,
0.020202348,
0.024818024,
0.004370161,
-0.01704573,
-0.003844058,
-0.056061517,
-0.007870498,
-0.0763761,
0.035326052,
-0.015376232,
0.014576555,
-0.041863754,
-0.019514907,
0.04413652,
-0.026711995,
-0.025926348,
-0.042284638,
-0.008908674,
-0.035297994,
-0.03911399,
-0.006443006,
-0.0208477,
0.0030391207,
0.052975047,
0.004373668,
0.024481319,
0.03392311,
-0.05432187,
0.02421476,
-0.015600703,
0.010465939,
-0.03207123,
-0.0674534,
0.008817484,
-0.0084176455,
-0.019571025,
0.003963308,
0.005587212,
-0.036364228,
0.017214084,
-0.031846758,
0.048008636,
-0.035859168,
-0.0055030356,
-0.0014660732,
-0.016442467,
0.0049138004,
0.011405909,
0.018687172,
0.003286389,
-0.034063403,
-0.020693379,
0.010479968,
-0.006057197,
0.0084176455,
0.01351032,
0.040011875,
-0.005517065,
-0.015558614,
-0.020468907,
-0.004001889,
-0.03294105,
0.00097153656,
0.030499935,
-0.016175909,
-0.020328613,
-0.012836909,
0.028648052,
0.025912318,
0.028114935,
-0.021170378,
-0.04814893,
0.02039876
] | Wrong padding side
LLMs are decoder-only architectures, meaning they continue to iterate on your input prompt. If your inputs do not have the same length, they need to be padded. Since LLMs are not trained to continue from pad tokens, your input needs to be left-padded. Make sure you also don't forget to pass the attention mask to generate! |
[
0.017152945,
0.007230605,
0.0018145179,
0.051664837,
-0.05410937,
-0.0505387,
0.03306989,
0.047544833,
-0.01639761,
0.064436845,
0.006015204,
0.012744542,
-0.008652006,
-0.011989208,
-0.038398426,
-0.030460553,
0.023223082,
-0.03853576,
-0.037437093,
0.007834872,
-0.0028101853,
-0.007965338,
-0.031449355,
-0.017194144,
-0.02337415,
0.008061472,
0.017812146,
0.015257744,
0.078115255,
0.03348189,
-0.035898957,
0.015573611,
-0.0011184091,
-0.027178286,
-0.028702686,
-0.0151753435,
-0.006382571,
-0.0050744703,
-0.02974642,
-0.039689362,
0.036338426,
-0.030982422,
0.069106184,
-0.064766444,
-0.050785903,
-0.038068827,
-0.026738819,
-0.012723942,
0.01462601,
-0.01733148,
-0.008308672,
0.0015432844,
-0.037656825,
-0.018347746,
-0.0055482704,
-0.01639761,
0.0038728027,
0.021204282,
-0.051088035,
0.025791219,
-0.0013741927,
0.04597923,
0.011075941,
-0.04350723,
0.0013905009,
0.050264034,
-0.016507478,
-0.0010797841,
0.0062830043,
-0.02941682,
-0.0029475186,
0.02982882,
-0.01988588,
-0.012414942,
0.0029269187,
-0.015546144,
0.046556033,
-0.0069387713,
-0.041035227,
0.030076021,
-0.0055963374,
0.025461618,
-0.024005882,
-0.039689362,
-0.018553747,
-0.041721895,
0.039744295,
-0.044138964,
0.0009939506,
-0.010368674,
0.021561349,
0.038343493,
-0.029856287,
0.013369409,
0.04389176,
0.0494675,
-0.0040994026,
0.02329175,
-0.025090817,
-0.024308017,
0.057734974,
0.05768004,
-0.03686029,
0.014612277,
-0.0100184735,
-0.012099075,
0.023044549,
0.027864952,
-0.025653884,
-0.008700073,
-0.0020634348,
-0.01635641,
-0.0020222347,
-0.0070520714,
-0.041474696,
0.061525375,
0.006969671,
0.030707754,
-0.060152043,
-0.022357881,
0.054054435,
0.022591349,
0.0044633364,
-0.035541892,
0.0035226024,
-0.03952456,
0.018910812,
0.027988553,
-0.02108068,
0.021355348,
-0.026697619,
-0.0025149183,
-0.0081919385,
0.029883754,
0.00013046675,
0.004707103,
-0.026244419,
0.037739225,
0.036805358,
-0.066908844,
0.012284475,
-0.0028857186,
0.0010686257,
0.08031259,
-0.014001143,
0.0074709384,
0.031751487,
-0.022138149,
-0.03529469,
0.008706939,
-0.05520804,
0.045951765,
0.015587344,
0.05866884,
0.018869612,
-0.04532003,
-0.02834562,
-0.012730809,
-0.0043843696,
-0.014516143,
0.01429641,
0.024074549,
-0.019405214,
0.026120817,
-0.04342483,
-0.016342677,
0.01450241,
0.009585873,
0.012154008,
-0.039085094,
0.020242948,
0.010416741,
-0.0014694677,
0.012566009,
0.03298749,
0.035184823,
0.045951765,
0.017070545,
0.004140603,
0.037794158,
-0.02337415,
0.036832824,
0.00008964225,
0.02329175,
0.041749362,
0.019446414,
-0.0027277851,
0.004696803,
-0.03587149,
-0.0016797595,
-0.019982014,
0.046336297,
-0.03133949,
-0.009112073,
-0.03241069,
0.045429897,
-0.0060083373,
0.034937624,
0.0056169373,
-0.041309893,
0.0037183026,
0.050785903,
-0.001932968,
0.020256681,
-0.039414693,
-0.0011501674,
0.01499681,
0.03762936,
-0.03150429,
-0.020682415,
0.074874185,
0.013499876,
-0.034992557,
0.032850157,
0.015546144,
-0.012888742,
-0.033042423,
0.010444207,
0.030872554,
0.018457612,
-0.023538949,
0.019322813,
0.017180411,
-0.02982882,
-0.024349216,
-0.04474323,
0.016095478,
0.013156543,
-0.026010951,
0.035377093,
-0.005654704,
0.010712007,
0.041309893,
0.015010543,
0.008034006,
0.021094415,
0.054466438,
0.048011765,
-0.008047739,
-0.0018419846,
-0.050401367,
0.021561349,
-0.005891604,
-0.023401616,
0.012428675,
0.03422349,
-0.008260606,
-0.053889636,
-0.022536416,
0.0079447385,
-0.01396681,
0.069655515,
0.049852032,
-0.0026694185,
-0.034086157,
-0.008308672,
-0.005510504,
0.04424883,
0.0011630425,
-0.053065635,
0.042106427,
0.031147221,
0.01627401,
-0.038425893,
-0.017056812,
0.03496509,
0.011755741,
0.030652821,
-0.005802337,
-0.010451074,
-0.0019570014,
-0.04235363,
-0.057350438,
-0.003721736,
0.009064007,
0.0065199044,
0.043314964,
-0.026752552,
0.0035002858,
-0.022605082,
-0.011233875,
-0.040073894,
-0.018663613,
0.016988145,
-0.0061937375,
0.012723942,
-0.053724837,
0.029773887,
-0.021478947,
0.085146725,
-0.0034487857,
0.006231504,
-0.0026453852,
-0.040980294,
0.018292813,
-0.0074709384,
0.010732607,
0.008734406,
-0.0013046676,
0.0014540177,
0.020270415,
0.017372679,
0.012696476,
-0.00039933986,
-0.034250956,
0.029773887,
0.026299352,
-0.020119347,
0.044715762,
0.07350085,
-0.033426955,
0.00501267,
-0.0044049695,
0.08047739,
-0.026642686,
0.011117141,
0.011817541,
0.014804543,
-0.013451809,
-0.015532411,
-0.018883346,
-0.0014171093,
0.030433087,
-0.001958718,
-0.0035002858,
0.04207896,
-0.018965747,
-0.06081124,
0.035514425,
-0.019254146,
-0.03776669,
0.042490963,
-0.040238693,
0.009256273,
0.016191611,
0.016095478,
-0.019171746,
-0.05625177,
-0.06223951,
0.018663613,
0.039552025,
0.01540881,
-0.0488907,
0.017688546,
-0.029444287,
-0.02054508,
0.053972036,
-0.06081124,
0.013438076,
0.014310143,
0.031669088,
0.04018376,
0.04026616,
0.0054933373,
-0.017235344,
0.044825632,
-0.014035476,
0.0069868383,
0.022522682,
-0.027535353,
0.021478947,
0.027013484,
0.0034487857,
0.013753943,
-0.015532411,
-0.030130954,
-0.045347497,
-0.007319872,
0.05520804,
0.012607208,
0.018073078,
0.02481615,
0.002496035,
0.020036947,
-0.025447885,
-0.018169213,
0.046803232,
-0.036365893,
0.026216952,
-0.01027254,
0.0037904026,
-0.0100184735,
-0.036173623,
0.044276297,
0.043534696,
0.048863232,
-0.0046556033,
-0.034608025,
0.015395077,
0.036365893,
0.017853346,
-0.02851042,
0.012943676,
-0.02842802,
-0.050648566,
-0.023346683,
-0.010808141,
0.047077898,
-0.0023192184,
0.008452873,
-0.009647673,
-0.03150429,
0.050593633,
-0.0053045037,
-0.044798166,
0.01823788,
-0.053505104,
0.06828218,
0.0064066043,
-0.0044324365,
-0.012875008,
-0.017729746,
-0.011652742,
0.036915224,
0.024390416,
-0.0046556033,
-0.02325055,
0.03655816,
0.013108476,
0.03133949,
0.0021870348,
-0.004171503,
-0.011494808,
0.023360416,
0.012868142,
-0.036063757,
0.0050470033,
-0.029773887,
0.0031878522,
0.036091223,
0.03488269,
-0.04507283,
-0.036970157,
-0.04018376,
-0.039140027,
-0.011899942,
0.07437979,
-0.013719609,
-0.026766285,
-0.05476857,
-0.0031638187,
0.0038419026,
-0.020819748,
0.035898957,
-0.0016076594,
-0.018704813,
-0.008734406,
-0.044358697,
-0.0025698517,
-0.047517367,
0.04268323,
-0.017455079,
-0.0014188259,
-0.012490476,
-0.0148320105,
0.00513627,
-0.03199869,
0.009112073,
0.03356429,
-0.015807077,
-0.0047620367,
-0.0112544745,
0.026642686,
-0.022248015,
-0.015930677,
0.020242948,
0.005699337,
0.0076151383,
0.027617753,
0.012785742,
-0.0065508042,
0.03952456,
0.016933212,
-0.038343493,
0.018498812,
0.041145094,
0.06405231,
-0.031394422,
-0.030433087,
0.0032857023,
-0.024637617,
0.027137086,
0.029554153,
-0.042930428,
-0.01458481,
-0.03894776,
-0.011927408,
0.017317746,
-0.022522682,
0.041035227,
-0.014104143,
-0.016686011,
0.028977353,
-0.058558974,
0.0068598045,
-0.022440283,
-0.014323876,
0.0021355348,
0.036997624,
0.008281206,
0.029279487,
-0.026601484,
-0.01376081,
0.05443897,
-0.030597888,
-0.01479081,
-0.045210164,
-0.012002941,
-0.00493027,
-0.019446414,
-0.049934436,
0.00445647,
-0.02141028,
-0.020668682,
-0.009743807,
-0.02009188,
0.020078147,
-0.030762687,
-0.01396681,
0.034278423,
-0.0025355185,
-0.05833924,
-0.0016557261,
0.062184576,
-0.008521539,
0.029279487,
-0.013451809,
-0.04466083,
-0.014557343,
-0.026203217,
0.008336139,
0.0090296725,
0.010670807,
-0.025379218,
-0.030378154,
-0.00977814,
0.011707675,
-0.015353877,
-0.07959846,
-0.016328944,
-0.004185236,
0.0469955,
-0.012490476,
-0.01000474,
-0.05114297,
0.012037274,
0.009949807,
0.03504749,
0.022495216,
-0.011735141,
0.0037560693,
-0.0105884075,
0.007251205,
0.061525375,
-0.03155922,
0.031531755,
-0.015724678,
-0.030570421,
-0.008034006,
0.0076220054,
-0.015038011,
0.0046006697,
-0.022811083,
0.037327226,
-0.012531675,
-0.03639336,
-0.02974642,
0.006135371,
0.034855224,
-0.040650696,
0.036585625,
0.0076151383,
0.020902148,
0.022797348,
0.043699495,
-0.039964028,
0.026821218,
-0.023429083,
-0.015765877,
0.00934554,
-0.02149268,
-0.023154415,
-0.013438076,
0.020311614,
0.04474323,
-0.024074549,
0.040980294,
0.080092855,
-0.02378615,
0.027288152,
-0.066744044,
0.025928551,
-0.017427612,
-0.016603611,
-0.0011252757,
0.0488907,
-0.0467483,
0.0061731376,
-0.043314964,
-0.03323469,
-0.049522433,
0.028112153,
0.045347497,
-0.003225619,
0.041200027,
-0.041145094,
-0.040156294,
-0.04998937,
0.022220548,
-0.010080273,
0.04474323,
0.024143217,
0.007882939,
-0.0061937375,
0.05669124,
-0.07311632,
-0.010409874,
-0.031669088,
0.050181635,
0.0011192674,
-0.0076426053,
0.026381752,
0.030488022,
-0.03279522,
-0.066579245,
-0.0053457036,
0.011323141,
-0.031669088,
-0.03405869,
-0.011185807,
0.0036153025,
-0.027713886,
-0.008452873,
0.0048238365,
-0.006966238,
-0.004006703,
0.010622741,
-0.031366955,
-0.026711352,
0.051747236,
0.044056565,
-0.03405869,
-0.011879342,
-0.0878934,
-0.014818277,
-0.048753366,
0.032602955,
0.05493337,
0.007628872,
0.02916962,
0.011412408,
-0.0143376095,
0.059053373,
-0.02916962,
0.01008714,
0.030707754,
-0.0490555,
-0.047022965,
-0.008315539,
-0.0050882036,
-0.022714948,
0.012105942,
0.028263219,
-0.0018505679,
0.0015175344,
0.022495216,
0.010059673,
-0.023758683,
0.049522433,
-0.0017784679,
0.00967514,
-0.015697211,
-0.028029753,
0.0003117898,
0.040980294,
0.025942285,
-0.0039655026,
0.012950542,
0.021204282,
-0.036173623,
-0.050016835,
-0.04389176,
0.018004412,
-0.021630015,
-0.008466606,
0.011357474,
-0.054988306,
-0.021630015,
-0.008864873,
-0.03979923,
-0.011021008,
-0.029718954,
0.04207896,
-0.0049268366,
-0.02555775,
0.003642769,
-0.023154415,
0.025901085,
-0.026258152,
-0.030158421,
0.017400146,
0.026903618,
0.0025835852,
0.007958472,
0.01582081,
-0.012696476,
-0.026422951,
0.01425521,
0.030927489,
-0.010966074,
0.015601077,
-0.0034934191,
0.03845336,
-0.046638433,
0.01402861,
-0.033097357,
-0.001963868,
0.018910812,
0.04152963,
0.024939751,
0.04235363,
0.029609086,
0.0032015855,
0.0033629523,
0.026656419,
0.04216136,
-0.003694269,
-0.0010643341,
0.006032371,
-0.046034165,
-0.04532003,
0.026120817,
0.027137086,
-0.0038590692,
0.00087378395,
-0.032767754,
-0.001974168,
-0.03935976,
-0.02974642,
-0.030900022,
0.007264938,
0.030460553,
-0.0066709714,
-0.04169443,
0.01873228,
-0.0067980047,
0.01823788,
-0.096353136,
-0.063338175,
-0.016260277,
-0.040897895,
-0.014323876,
-0.029197088,
-0.02062748,
0.046171498,
-0.0030676855,
-0.00026050434,
-0.020641213,
0.041941628,
-0.0033990024,
-0.0070005716,
-0.09492487,
0.014186543,
0.028894953,
-0.016507478,
-0.006341371,
-0.06306351,
0.024060816,
0.037080027,
0.045869365,
0.008185072,
-0.00504357,
0.014639744,
-0.030954955,
0.03389389,
-0.051554967,
0.008830539,
-0.03430589,
-0.0045182696,
-0.017180411,
-0.01782588,
0.00957214,
0.010396141,
0.042957895,
0.018265346,
0.0090296725,
0.011199541,
0.047599766,
-0.025585217,
0.011824408,
0.036585625,
0.018993214,
-0.023168148,
0.018361479,
0.012154008,
-0.0066469377,
0.047352567,
0.04367203,
-0.0035844024,
-0.005541404,
0.0047483034,
-0.029691488,
-0.024884816,
0.05740537,
0.021739881,
-0.06723844,
0.020792281,
0.009379873,
0.0083636055,
0.0041165696,
0.021602549,
-0.015793344,
0.028029753,
-0.014406277,
-0.00971634,
-0.068556845,
0.030680288,
0.010444207,
-0.019707346,
-0.043397363,
-0.068392046,
0.018746013,
0.059877373,
0.0033320524,
-0.0032084521,
0.040980294,
0.04070563,
0.070369646,
0.04260083,
0.0154225435,
0.023085749,
0.019336546,
0.032520555,
-0.036585625,
-0.032932557,
-0.050840836,
-0.032053623,
-0.018306546,
0.017139211,
-0.059382975,
-0.028400553,
-0.03521229,
-0.041639496,
0.0125110755,
-0.020874681,
0.017853346,
-0.06471151,
-0.020764815,
0.034608025,
0.021012014,
-0.003488269,
0.01988588,
-0.009894873,
0.014886944,
0.03771176,
0.011481075,
-0.020036947,
0.05430164,
0.016411345,
0.0046350034,
0.03562429,
0.043781895,
-0.027466685,
-0.0050470033,
0.04218883,
-0.009393606,
-0.024555217,
-0.0064100376,
-0.0495499,
-0.0051191035,
0.011556608,
-0.009228806,
-0.032602955,
-0.002485735,
-0.022618815,
-0.026876152,
-0.013170276,
0.06526084,
0.05460377,
-0.0134243425,
-0.022055749,
0.012064742,
-0.0072168717,
-0.038590692,
-0.0044667698,
0.013506742,
-0.0014042343,
-0.038398426,
0.00032895646,
-0.027315618,
0.0025372352,
-0.044962965,
-0.0027106185,
-0.025365485,
0.027796285,
0.016493745,
0.042710695,
0.017029345,
-0.021135615,
-0.011755741,
0.031092288,
0.01353421,
0.0017750346,
0.036063757,
0.07185285,
0.018581213,
-0.00081713387,
0.0038178694,
0.006097604,
-0.006200604,
0.0032548022,
-0.04548483,
-0.03438829,
-0.04383683,
-0.040568296,
-0.0016411345,
0.03150429,
0.0015630261,
-0.0025355185,
-0.04705043,
-0.012806342,
-0.066579245,
-0.031064821,
-0.024541484,
0.038398426,
-0.02242655,
0.0021149348,
-0.0027638352,
-0.048094165,
0.22028282,
0.015038011,
0.03686029,
-0.0046556033,
0.049357634,
0.08652006,
0.028647752,
-0.035432026,
0.022769881,
-0.02374495,
0.008253739,
-0.0016548678,
0.012236408,
0.039249893,
-0.009318073,
0.01860868,
-0.04084296,
-0.038068827,
0.00981934,
-0.03631096,
-0.02390975,
0.021108149,
0.022508949,
0.09031046,
0.037986428,
0.013788276,
0.008384205,
-0.022948416,
0.0024994684,
-0.04614403,
0.03199869,
-0.04630883,
0.0081919385,
0.0050676037,
-0.020146813,
0.032685354,
0.014159076,
-0.029197088,
0.002873702,
0.03463549,
0.005283904,
-0.034415755,
-0.027864952,
-0.028785087,
-0.034553092,
0.0010754924,
0.013541076,
0.054329105,
0.029059753,
-0.05982244,
0.0032633855,
-0.000008462636,
0.06652431,
-0.039579492,
-0.04216136,
-0.005974004,
-0.04622643,
-0.024266817,
-0.012483609,
0.013204609,
-0.029554153,
-0.007752472,
-0.011968608,
0.06328324,
-0.036063757,
0.03952456,
-0.015559877,
-0.0023844517,
-0.026532818,
-0.005194637,
0.045896832,
-0.014612277,
-0.024637617,
-0.040568296,
-0.030625354,
0.019006947,
-0.002686585,
0.019048147,
0.03587149,
-0.018292813,
0.013808876,
-0.02760402,
0.0029063188,
-0.056059506,
0.010354941,
0.04161203,
-0.039579492,
0.018746013,
0.02991122,
0.04191416,
-0.012627808,
0.051774703,
-0.0058538374,
0.018306546,
-0.006605738
] | Generated output is too short/long
If not specified in the [~generation.GenerationConfig] file, generate returns up to 20 tokens by default. We highly recommend manually setting max_new_tokens in your generate call to control the maximum number of new tokens it can return. Keep in mind LLMs (more precisely, decoder-only models) also return the input prompt as part of the output. |
[
0.015854236,
0.025562402,
0.015182694,
0.033226743,
-0.04312469,
-0.008496469,
0.012496525,
-0.020321451,
-0.032350816,
0.0604388,
-0.03173767,
0.026832491,
-0.018160839,
-0.04233636,
-0.0593001,
0.026628109,
0.014022094,
-0.017299512,
-0.04709555,
-0.00395261,
0.03711001,
-0.013511138,
-0.070716314,
-0.013503838,
0.0013896179,
0.02116818,
0.03313915,
0.013314054,
0.0569351,
0.009693566,
-0.02103679,
0.044234194,
0.00964977,
-0.035533343,
-0.028190175,
-0.036467664,
-0.0055584717,
-0.039796177,
-0.013752017,
-0.018905373,
0.052234307,
0.02951866,
0.02370836,
-0.053635787,
-0.02626314,
-0.05673072,
-0.025898172,
-0.0075183534,
0.005200803,
-0.056467943,
-0.033051558,
-0.007489156,
0.0117081925,
-0.036350872,
-0.07970914,
0.005262847,
0.0064781928,
-0.008095004,
-0.039153833,
-0.03170847,
-0.008051207,
0.012481926,
0.0060402304,
-0.07988433,
0.0138250105,
0.01870099,
0.009043922,
0.032496806,
-0.017766671,
-0.025547802,
-0.031445693,
0.04233636,
-0.03579612,
-0.053314615,
-0.05313943,
-0.021124383,
-0.0013458218,
-0.007861423,
-0.016175408,
0.013328654,
0.019036762,
0.0116278995,
0.01266441,
-0.01964991,
-0.024686476,
-0.033460323,
0.017591488,
-0.003290192,
0.0026441975,
-0.0026551466,
0.009715464,
0.028686533,
-0.00976656,
0.016803155,
0.030890943,
0.05883294,
0.018409016,
0.058511768,
0.0051205093,
-0.033985876,
0.016481983,
0.0651104,
-0.053664982,
-0.012627914,
-0.015518465,
0.003861368,
-0.001790171,
0.019051362,
0.0081388,
0.03544575,
-0.009182611,
-0.014211877,
0.008313985,
0.013868807,
-0.045051724,
0.057811026,
0.011343224,
0.0029434718,
-0.05664313,
-0.0033978578,
0.010051236,
-0.009109616,
0.013007481,
-0.016730161,
0.0081533985,
-0.017255716,
0.027971193,
0.040818088,
-0.04116846,
0.004379623,
0.03985457,
0.013357851,
-0.016817754,
0.026905486,
0.012890691,
0.028774126,
-0.017007537,
0.0143140685,
0.062482625,
0.0110293515,
0.0069453525,
0.005649714,
0.016890747,
0.08870197,
0.0008380592,
-0.01639439,
0.03243841,
-0.01232864,
0.01522649,
0.013416246,
-0.05474529,
0.011678996,
0.015883435,
0.01941633,
-0.03824871,
-0.018277628,
-0.0049927705,
0.011890677,
-0.020978395,
0.0018065945,
0.0044270693,
0.010934459,
-0.032496806,
0.04706635,
-0.0035657433,
0.045606475,
-0.03115372,
-0.00033691165,
0.009146113,
-0.047971472,
-0.0006012858,
-0.015781242,
0.032263223,
0.03045298,
-0.0107592745,
0.03789834,
0.04960653,
0.027606225,
-0.00070073974,
0.03497859,
-0.03626328,
-0.022569658,
0.020628026,
0.014073189,
0.0060511795,
-0.008065806,
0.0056533637,
-0.027489435,
-0.025912771,
0.036672045,
0.026482122,
0.030394586,
0.0069563016,
0.016861549,
-0.0086132595,
0.013233761,
-0.029460266,
0.038277905,
0.0040037055,
-0.035036985,
0.0015118824,
0.05033647,
-0.05021968,
0.018233832,
-0.03281798,
-0.007591347,
0.015883435,
0.052964244,
-0.013102373,
0.0013704571,
0.07404483,
0.006087676,
-0.030774152,
-0.0029544209,
0.04289111,
-0.020920001,
-0.018058646,
0.020978395,
-0.003253695,
0.046803575,
-0.03556254,
0.024949254,
0.042161174,
0.006686225,
-0.034044273,
-0.024321508,
0.029898228,
0.013540335,
-0.009540279,
-0.0009288451,
0.021606142,
0.00430298,
0.012182652,
0.03010261,
0.045606475,
-0.0016879798,
0.053081036,
0.041577224,
-0.028277768,
-0.0014023918,
0.004135094,
-0.0023996686,
0.021679135,
0.0011824983,
0.030248597,
-0.003010991,
0.013343252,
-0.013934501,
-0.05419054,
-0.00096899166,
-0.011175339,
0.047124747,
0.016642569,
-0.03684723,
-0.02198571,
-0.029270481,
0.012919889,
0.022598855,
-0.02046744,
-0.042686727,
0.052117515,
0.02255506,
0.01708053,
-0.049372952,
0.028905513,
0.03821951,
0.015182694,
0.011949073,
-0.021839721,
-0.019460127,
-0.019284941,
-0.05740226,
-0.06464324,
0.020759415,
-0.006686225,
-0.037606366,
-0.010043936,
-0.056555536,
0.013452743,
-0.046482403,
-0.011803085,
-0.00006957214,
-0.036672045,
0.04581086,
0.0072665247,
0.002406968,
-0.07369446,
0.014073189,
-0.014730133,
0.07854124,
-0.0065292884,
0.0035858166,
-0.006649728,
-0.028920112,
-0.016788555,
0.022598855,
0.022569658,
-0.0033996825,
-0.017051334,
0.03299316,
-0.0033084403,
0.048905794,
0.0066059316,
0.0007021084,
-0.010058534,
0.048555423,
0.030861745,
-0.035650134,
0.044117406,
0.065285586,
-0.038336303,
0.027241256,
0.02451129,
0.033693902,
-0.01383231,
0.02383975,
0.009635171,
-0.009722764,
-0.02046744,
-0.05170875,
-0.05532924,
0.006901556,
0.046424005,
-0.040759694,
0.015007509,
0.0708915,
0.0008713626,
-0.034599025,
-0.008423476,
-0.02940187,
-0.028803322,
-0.020949198,
-0.0064672437,
0.046307217,
0.012839596,
0.024000335,
-0.028920112,
-0.03859908,
-0.029664649,
0.011649798,
-0.0026150001,
-0.018117042,
0.040555313,
0.047971472,
-0.0037993232,
-0.0053869365,
0.007496455,
-0.030628165,
-0.011795785,
-0.016131612,
-0.0019051362,
0.014160782,
0.019343335,
-0.004686197,
-0.024365304,
0.023416385,
-0.027533231,
-0.0034891,
-0.012036664,
0.001361333,
0.04744592,
0.022029504,
-0.0063906005,
0.025095241,
0.007452659,
-0.023752157,
-0.026701104,
0.036321677,
0.040058956,
0.01267901,
0.017752074,
0.030774152,
-0.044613764,
-0.012584117,
-0.06300818,
-0.019241145,
0.069022864,
0.013861507,
0.025314223,
-0.023153609,
-0.023401788,
0.0073760157,
-0.013846909,
0.0118176835,
0.040613707,
0.04499333,
0.015197293,
-0.040058956,
-0.017255716,
0.020321451,
-0.008525667,
-0.019022163,
0.004613203,
-0.027036874,
-0.047475114,
-0.013460042,
-0.0052956943,
0.07982593,
0.022642652,
0.04960653,
0.026248543,
-0.020044075,
0.039212227,
0.01813164,
-0.021314166,
-0.03325594,
-0.056234363,
0.06172349,
-0.034949392,
0.02290543,
-0.027562428,
-0.018978367,
-0.060030036,
0.015065904,
0.0077738315,
0.011569505,
-0.020788612,
-0.006441696,
0.022248486,
0.015883435,
-0.03684723,
-0.05197153,
-0.06803015,
0.0047701397,
0.03687643,
-0.070249155,
0.00976656,
-0.031679276,
-0.0047956873,
0.0055876696,
0.0070183463,
-0.027241256,
-0.042161174,
-0.02429231,
-0.007649742,
0.022584258,
0.007547551,
0.015912632,
0.016817754,
-0.014000196,
0.016598772,
0.010387006,
-0.044000614,
0.0044818143,
-0.0008102303,
-0.010949058,
-0.0018850629,
0.02185432,
-0.0054891277,
-0.03941661,
0.05497887,
-0.02487626,
0.007919819,
-0.04686197,
0.035328962,
-0.01267171,
-0.021533148,
-0.014752031,
0.03547495,
-0.021241173,
-0.033898283,
-0.0014142534,
0.02871573,
-0.0073760157,
-0.034307048,
0.018627997,
0.019620713,
-0.008080405,
0.014116986,
0.015051305,
0.023387188,
0.036467664,
0.048876595,
0.02754783,
-0.019153552,
0.015182694,
0.008693553,
-0.02487626,
-0.024555087,
0.008270188,
-0.021430956,
0.039007846,
0.009095018,
-0.015868835,
0.0041569923,
-0.040175743,
-0.024861662,
0.0042044385,
-0.030190203,
0.027285052,
0.024861662,
-0.016744759,
0.034540627,
-0.05042406,
0.011722792,
-0.042015187,
-0.07030755,
-0.0036588102,
0.07953396,
0.053285416,
0.04849703,
-0.0009799408,
-0.0030420134,
0.081577785,
-0.056438744,
-0.014241075,
-0.02360617,
-0.0395334,
-0.0034033323,
-0.0007595909,
-0.03439464,
-0.0100001395,
-0.0061351224,
-0.02103679,
0.000822548,
0.00072400644,
-0.0004420682,
-0.0038358201,
-0.04394222,
0.059329297,
-0.027708417,
-0.046102833,
-0.0026770448,
0.015752045,
0.029927425,
0.00026984865,
0.018219233,
0.016584173,
0.0006564873,
-0.033460323,
0.048555423,
-0.010883364,
0.009116916,
-0.04849703,
-0.045898452,
0.021138981,
0.023401788,
-0.023620768,
-0.10061455,
-0.02522663,
-0.036409266,
0.040876485,
-0.027036874,
-0.02522663,
-0.051767148,
-0.01963531,
-0.015547663,
0.033547916,
0.011226434,
0.024000335,
0.028321564,
0.0014881595,
-0.011299428,
0.07258496,
-0.032671988,
0.022394473,
-0.0071095885,
0.0008950855,
-0.018044047,
-0.016117014,
-0.0062336638,
0.04584006,
-0.040876485,
0.020190064,
-0.025197433,
-0.019547718,
-0.019241145,
-0.020058675,
0.033051558,
-0.06353374,
-0.041197658,
-0.012445429,
0.034336247,
-0.006412498,
0.015898032,
-0.006313957,
0.0012016591,
-0.038161118,
-0.032730386,
0.021839721,
-0.031358104,
-0.0091315145,
0.017241117,
-0.035066184,
0.07813248,
-0.046891168,
0.023168206,
0.052117515,
-0.0049197767,
-0.003080335,
-0.055124857,
0.012824996,
0.011219135,
-0.009686267,
0.024000335,
0.002640548,
-0.042277962,
-0.013905304,
-0.059708863,
-0.04659919,
0.0063760015,
0.046803575,
0.030686561,
-0.012708207,
0.053314615,
-0.03127051,
-0.0662783,
-0.01778127,
0.052029923,
-0.010795771,
0.036438465,
0.04137284,
0.025664592,
0.005273796,
0.042599134,
-0.049431346,
0.0019781298,
-0.017722875,
0.030131808,
-0.015474669,
-0.003569393,
0.0395042,
-0.008846839,
-0.05287665,
-0.07276014,
0.006682575,
-0.0019781298,
-0.04347506,
0.007803029,
0.014788528,
0.000030052883,
-0.049460545,
-0.008299386,
0.016350593,
0.022467468,
0.014547649,
-0.008438074,
-0.021460153,
-0.0044489675,
0.062365834,
0.04744592,
-0.02694928,
0.010730077,
-0.062365834,
-0.0065986323,
-0.038569883,
0.0135257365,
0.034248654,
0.028628137,
0.028905513,
0.017124327,
0.0010666207,
0.06925644,
-0.012817698,
-0.004160642,
0.028409157,
-0.015357879,
-0.04335827,
-0.008978228,
0.025285024,
-0.024029532,
0.004397872,
-0.0024544138,
-0.016058618,
0.0026551466,
0.050394867,
-0.025620796,
-0.047942277,
0.007708137,
0.0078833215,
-0.03521217,
-0.013204564,
-0.047037154,
0.021839721,
0.052146714,
-0.0041204956,
-0.03419026,
0.014226477,
0.015065904,
-0.028642736,
-0.049810916,
0.0015775767,
-0.004324878,
-0.035533343,
-0.013394347,
-0.014898019,
-0.02801499,
-0.0003647405,
-0.014533049,
-0.0008531141,
-0.01220455,
-0.040204942,
0.03290557,
-0.01800025,
-0.031299707,
0.011496511,
0.001523744,
-0.029460266,
-0.031445693,
0.016452786,
0.039708585,
0.045168515,
-0.029489463,
0.030715758,
0.040029757,
-0.00940889,
-0.040234137,
-0.018321425,
0.035971306,
-0.012569519,
0.030073414,
-0.031182917,
0.019124355,
-0.037255995,
0.011751989,
-0.021460153,
-0.006646078,
0.028744927,
0.019927286,
0.000764153,
0.048292644,
0.054307327,
0.023255799,
0.0011323151,
0.030015018,
0.022963824,
0.004616853,
0.020394446,
-0.0024963852,
-0.0043212282,
-0.03789834,
0.0058905934,
0.05205912,
-0.04613203,
0.02150395,
0.02056963,
-0.005638765,
-0.04125605,
0.014328668,
0.010036637,
0.032117236,
0.016263,
-0.06207386,
0.0050146687,
0.026058758,
-0.04280352,
0.025241228,
-0.02127037,
-0.023460181,
-0.009306699,
-0.043650243,
-0.026555115,
-0.058394976,
-0.012043964,
-0.0011989218,
0.0061533707,
-0.005529274,
0.00010327471,
0.07258496,
0.019606113,
0.011941773,
-0.03337273,
-0.015328681,
0.017109727,
-0.016788555,
-0.01302208,
-0.06300818,
0.04464296,
0.058424175,
0.0042628334,
-0.028292365,
-0.015941828,
0.026832491,
-0.023416385,
0.07165064,
-0.026920084,
0.03127051,
-0.07445359,
0.040292535,
-0.005138758,
-0.009029323,
0.011058548,
0.035299763,
0.025314223,
0.02219009,
-0.0028613538,
-0.002649672,
0.039737783,
-0.074687175,
0.027635423,
0.04697876,
0.022993023,
-0.019387132,
0.019095158,
-0.01174469,
0.036701243,
0.0488474,
-0.007240977,
-0.041898396,
0.05859936,
0.015430872,
-0.048555423,
-0.04639481,
0.025153637,
0.020978395,
-0.037489574,
-0.0023029519,
0.017153524,
0.016423587,
0.013036679,
0.013664424,
-0.00987605,
0.026365332,
0.0012655286,
0.003452603,
-0.04826345,
0.026073357,
0.0147739295,
-0.00183123,
-0.034599025,
-0.020029478,
0.061314724,
0.021868918,
-0.0139491,
0.012978284,
0.03763556,
0.04788388,
0.030161006,
0.020540433,
-0.023752157,
0.026701104,
0.008416176,
0.024963852,
-0.0049161273,
-0.006565785,
-0.04312469,
-0.02686169,
-0.016846951,
0.029255884,
-0.059124913,
-0.03383989,
-0.0025785032,
0.009576776,
-0.00012283474,
-0.04639481,
0.014496553,
-0.050628446,
-0.0027390893,
0.05369418,
-0.013781214,
-0.018788584,
0.025722988,
0.00848917,
0.021357963,
0.028073385,
0.022263085,
-0.0020128018,
0.028525947,
-0.0075256526,
-0.0021076936,
0.071825825,
0.0043066298,
0.00049453246,
-0.0063650524,
0.004729993,
0.013620628,
-0.010846867,
0.00975926,
-0.021051388,
-0.00059033674,
-0.014949114,
-0.0046679485,
0.002638723,
0.009087718,
0.0022409072,
-0.016000224,
0.009445388,
0.06931484,
0.017255716,
-0.0044818143,
-0.016861549,
-0.014963713,
-0.03582532,
-0.00859866,
-0.0031168319,
0.02359157,
-0.05150437,
-0.02289083,
-0.019255744,
-0.012372436,
-0.017138926,
0.0040511517,
-0.018525807,
-0.02185432,
0.031212116,
0.011773887,
0.04659919,
0.037956733,
-0.0056460644,
-0.0371976,
0.035358157,
0.028058786,
0.0088322405,
0.025285024,
0.08922753,
0.023314195,
0.027358046,
0.014511152,
-0.014124285,
-0.021649938,
0.034102667,
-0.031358104,
-0.028438354,
-0.033226743,
-0.030890943,
-0.030774152,
-0.0016177234,
0.05798621,
-0.025620796,
-0.0041715913,
-0.004719044,
-0.041810803,
-0.035270564,
-0.022511264,
0.011919875,
0.014562247,
0.012525722,
0.011314027,
-0.01616081,
0.25320062,
0.068205334,
0.024350705,
-0.024365304,
0.030598968,
0.058424175,
0.00476649,
-0.054570105,
-0.00015579598,
-0.042219568,
-0.014080489,
-0.029766839,
0.004474515,
0.008730049,
-0.039183028,
0.014335967,
-0.059767257,
-0.02684709,
-0.014387063,
-0.023314195,
-0.039153833,
0.031182917,
0.020496637,
0.03708081,
0.020029478,
0.020920001,
-0.009036623,
-0.03792754,
-0.018204633,
-0.052000728,
0.03497859,
-0.01884698,
0.016481983,
-0.04820505,
-0.009897948,
0.04522691,
-0.021430956,
-0.04137284,
-0.02708067,
0.0143140685,
-0.011430817,
-0.017854264,
-0.0009553053,
-0.013679023,
-0.010481899,
0.014693636,
-0.006671626,
0.0348618,
0.066161506,
-0.0662199,
0.024920056,
-0.018905373,
0.017503895,
-0.013000182,
-0.05150437,
0.024190119,
-0.02870113,
-0.010562192,
-0.025241228,
0.0044307187,
-0.049548138,
-0.0053650383,
0.0033923832,
0.00055110257,
-0.010335911,
0.03962099,
0.010124229,
0.0060986253,
-0.03696402,
-0.0044270693,
0.0022920028,
-0.024379903,
-0.03363551,
-0.0046533495,
0.033431124,
-0.007876023,
0.0053796372,
0.006989149,
0.0015036707,
-0.021197377,
0.015095102,
-0.010824969,
-0.023387188,
-0.033197545,
0.006350454,
0.036526058,
-0.0069307536,
-0.0018275803,
0.0023649966,
0.0063796514,
-0.009386992,
0.043212283,
0.0000439388,
-0.027620824,
-0.0126863085
] |
The tokenizer initialized above has right-padding active by default: the 1st sequence,
which is shorter, has padding on the right side. Generation fails to capture the logic.
model_inputs = tokenizer(
["1, 2, 3", "A, B, C, D, E"], padding=True, return_tensors="pt"
).to("cuda")
generated_ids = model.generate(**model_inputs)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'1, 2, 33333333333'
With left-padding, it works as expected!
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1", padding_side="left")
tokenizer.pad_token = tokenizer.eos_token # Most LLMs don't have a pad token by default
model_inputs = tokenizer(
["1, 2, 3", "A, B, C, D, E"], padding=True, return_tensors="pt"
).to("cuda")
generated_ids = model.generate(**model_inputs)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'1, 2, 3, 4, 5, 6,' |
[
0.014679932,
0.04748164,
0.0042250613,
-0.042538032,
-0.0015340996,
-0.03995126,
0.00004589163,
0.008924364,
-0.009851291,
0.028353898,
-0.004322065,
0.016612826,
0.026543157,
-0.031501137,
-0.0036394447,
-0.0067759063,
-0.0122153135,
-0.03966384,
-0.03724952,
0.00040665315,
0.017906211,
0.035869908,
-0.07415414,
-0.010038113,
-0.0070022484,
0.004562779,
0.0021233088,
0.003855009,
0.068693176,
0.032363396,
-0.004821456,
0.006862132,
0.0049615726,
-0.048516348,
0.0010571635,
-0.035093877,
0.008457308,
-0.00019142563,
-0.041704517,
-0.043773934,
0.022418693,
-0.022706112,
0.034806456,
-0.033886716,
-0.04762535,
-0.03155862,
-0.0057447897,
0.008349526,
0.008902808,
-0.027117996,
0.011230903,
0.005087319,
-0.007939953,
0.012632071,
-0.038284227,
-0.022030676,
-0.012962603,
0.008292042,
-0.042480547,
-0.0204355,
0.017676277,
0.032075975,
0.0030250864,
-0.05377612,
0.020995967,
0.025479706,
-0.014902682,
0.012488361,
-0.025335997,
-0.04552719,
-0.017101439,
0.02642819,
-0.03230591,
-0.053230025,
-0.038370453,
-0.023223465,
0.046015803,
-0.01999,
-0.031644847,
0.02056484,
0.012854821,
0.022145644,
0.015966132,
-0.012854821,
-0.035783682,
-0.03144365,
0.040094968,
-0.037048325,
-0.0018206206,
-0.025177917,
-0.005575931,
0.025292885,
-0.0052310284,
0.05768502,
0.039750066,
0.057886213,
-0.013738635,
0.068405755,
0.014313472,
0.0013454808,
0.009017776,
0.107207336,
-0.043917645,
0.017963696,
0.008687243,
0.0088884365,
0.057311375,
0.011503951,
-0.024215061,
-0.0025688086,
0.038111776,
-0.0034256768,
-0.0076022362,
0.025177917,
0.005151988,
0.032564588,
-0.011317128,
0.069900334,
-0.06863569,
-0.03788184,
-0.008378268,
-0.024272546,
-0.007451341,
-0.049666025,
0.007630978,
-0.05754131,
-0.0054034796,
0.038830325,
-0.024718046,
-0.011295572,
0.006844168,
0.013170982,
0.02912993,
0.021096565,
-0.0044837384,
0.004214283,
-0.017374486,
0.0077028326,
0.036818393,
-0.023855789,
0.01501765,
-0.012725482,
-0.022016305,
0.0895598,
-0.020334903,
-0.026399447,
0.009908775,
-0.02491924,
-0.00525977,
0.024876125,
-0.009642912,
-0.017633164,
0.016109843,
0.053402476,
-0.00027057817,
-0.010081226,
-0.047855284,
0.0222175,
-0.02191571,
0.035984874,
0.0016131399,
0.032104716,
-0.050212122,
0.05978318,
0.0016912819,
0.052770153,
-0.032535847,
-0.020809146,
-0.019515758,
-0.05139054,
0.021599548,
-0.03541004,
0.0073723006,
0.0064274105,
0.028008994,
0.008141147,
0.036444746,
0.03365678,
-0.010009372,
0.016023617,
-0.03469149,
0.0143494,
0.027017398,
0.027117996,
-0.0024538408,
-0.027304817,
-0.0060968786,
-0.037220776,
-0.017978067,
-0.004720859,
0.028123962,
0.05857602,
-0.04791277,
0.007217813,
-0.016426003,
0.034059167,
-0.004544815,
-0.00021432935,
-0.013587739,
-0.036071103,
0.0042609884,
0.050671995,
0.026198255,
0.00931238,
0.0007603134,
-0.0256809,
-0.00967884,
0.03515136,
-0.04457871,
-0.011353056,
0.03814052,
0.011388984,
-0.021513322,
0.0112165315,
0.035496265,
0.006129213,
-0.009592613,
0.013214095,
0.013796118,
0.014363771,
0.008909993,
-0.0012359023,
0.060013115,
-0.00027596726,
0.008593832,
0.0009556686,
0.007587865,
0.047941513,
0.017690647,
0.026715608,
-0.00027102727,
0.027750317,
0.017331373,
0.0020819923,
0.0008133063,
0.029374236,
0.0330532,
0.041532066,
-0.008414195,
0.029949075,
0.012890748,
0.024358772,
0.026399447,
0.015865536,
-0.0076956474,
0.03977881,
0.018869067,
0.017949324,
-0.035869908,
0.010799774,
-0.017805615,
0.04204942,
0.030437686,
0.008543534,
-0.040037487,
-0.043745194,
0.036732167,
0.010303976,
-0.0039591985,
-0.03546752,
-0.015003279,
-0.0013068588,
-0.0027628164,
0.0027717983,
0.042652998,
0.028511979,
-0.0028400603,
0.037939325,
-0.019946888,
-0.012488361,
-0.030868815,
-0.040784776,
-0.05575931,
-0.010239307,
-0.01187041,
-0.03650223,
-0.015132617,
-0.055788055,
0.030150266,
-0.023956385,
-0.010368645,
-0.0040957225,
-0.026169512,
0.041991934,
0.041934453,
0.032650813,
-0.041991934,
-0.012244055,
-0.03290949,
0.063462146,
-0.013767377,
-0.011820112,
-0.016267924,
0.0010167452,
0.01773376,
0.010490798,
-0.016756536,
-0.023611482,
-0.009973444,
0.01802118,
-0.022059418,
0.035697456,
-0.023841416,
0.030523911,
-0.011676403,
0.011633289,
0.003758005,
-0.039175227,
0.058777213,
0.037307005,
-0.00034086112,
0.028828138,
-0.004569964,
0.039433904,
-0.021570805,
0.028885623,
0.03653097,
0.02658627,
-0.027117996,
-0.024286916,
-0.036243554,
-0.02420069,
0.0068549463,
-0.013781748,
-0.017791245,
0.05389109,
0.00017548286,
-0.07306194,
-0.005223843,
-0.03621481,
-0.045613416,
-0.014960166,
0.017546939,
0.039175227,
0.024444997,
0.036703423,
-0.030581396,
0.0043436214,
-0.034605265,
0.0024215062,
0.025508448,
-0.020306163,
0.015535004,
0.04236558,
-0.0028400603,
-0.0006844168,
0.022663,
-0.055040766,
-0.005468149,
0.006722015,
0.03138617,
-0.0038011181,
0.014787714,
-0.007947139,
-0.013400917,
0.027836543,
-0.016426003,
0.039031517,
0.06449685,
-0.001287997,
0.041790742,
0.013623667,
0.026686866,
0.005769939,
-0.019946888,
-0.03382923,
-0.02312287,
0.0036825577,
0.06248492,
-0.04233684,
0.005529226,
0.001235004,
-0.024617448,
0.0013814082,
-0.022892933,
-0.03469149,
0.036674682,
-0.013005716,
0.04788403,
-0.02796588,
-0.020205565,
-0.005658564,
0.00093231583,
0.021527693,
0.04495235,
0.035726197,
0.032047234,
0.0017972678,
-0.0022670184,
-0.018840324,
0.0073471516,
-0.021685774,
0.0060393945,
-0.026212625,
-0.040497355,
-0.05679402,
0.028957477,
0.03952013,
0.021211533,
0.0041927267,
0.04058358,
-0.017043954,
0.019573243,
0.017963696,
-0.008938735,
0.0055040764,
-0.0369621,
0.04673435,
0.016311036,
0.008874066,
-0.03244962,
0.012100345,
-0.024459368,
0.030092783,
0.028655687,
0.009642912,
-0.015391295,
0.001161353,
0.00080567173,
0.022591144,
-0.017058326,
-0.041790742,
-0.022059418,
-0.0041280575,
0.028511979,
-0.04147458,
-0.0029155079,
-0.012890748,
-0.0039412347,
0.030725105,
0.018064292,
-0.028641317,
-0.022174386,
0.007954325,
-0.051246833,
0.047711577,
0.057713762,
-0.02777906,
-0.01967384,
-0.022964789,
0.007983066,
0.005094504,
-0.02795151,
-0.0019077444,
-0.005960354,
0.017676277,
-0.017331373,
0.0010975818,
0.0031705922,
-0.032995716,
0.037192035,
-0.038686614,
0.0020334905,
-0.021369612,
-0.017101439,
-0.020090597,
0.009463275,
0.013257207,
0.03693336,
0.0015520633,
-0.037019584,
-0.018667873,
0.0018933736,
-0.042480547,
-0.068520725,
0.00862976,
0.0008586647,
-0.008421381,
0.03768065,
-0.0008469883,
0.01239495,
0.047682833,
-0.005191508,
0.005108875,
0.009599799,
-0.005345996,
0.013364989,
-0.0061759185,
-0.0174176,
0.007551938,
-0.010160266,
0.034432814,
0.022016305,
-0.005629822,
-0.017934954,
-0.073349364,
0.0019742101,
-0.013012901,
-0.056132957,
0.049809735,
0.008744727,
-0.015606859,
0.043572742,
0.010548282,
0.016138585,
-0.018797211,
-0.048889995,
-0.017934954,
0.08651316,
0.019328937,
0.064956725,
-0.04638945,
-0.04788403,
0.013364989,
-0.011194975,
0.015305069,
-0.026830576,
-0.043342806,
0.01155425,
0.009154299,
-0.025120432,
0.0014335029,
-0.025767125,
-0.022246242,
0.008133962,
-0.009125558,
0.0029586207,
-0.03589865,
-0.032622073,
0.04058358,
-0.017115809,
-0.07944265,
-0.033455588,
0.026658125,
0.021700144,
0.02194445,
0.07219969,
-0.026040174,
-0.022116903,
-0.022116903,
0.031644847,
-0.019731324,
-0.0063842977,
-0.038801584,
-0.044406258,
-0.02494798,
0.030150266,
0.011417725,
-0.08887,
0.013106313,
-0.024588708,
-0.0067866845,
-0.016037988,
-0.0047603794,
-0.03604236,
0.030840073,
-0.004681339,
0.0378531,
-0.022001935,
0.0061759185,
-0.0058561647,
0.02057921,
-0.013623667,
0.053833604,
-0.027405415,
-0.017489454,
0.00017211465,
-0.0014811067,
-0.010181823,
0.03486394,
-0.023395918,
0.03138617,
-0.0003601721,
0.040123712,
-0.06921053,
-0.024128836,
-0.033340618,
0.013645223,
0.015764939,
-0.028785026,
0.0018772063,
-0.027232964,
0.019788807,
0.0231085,
0.052741412,
-0.023539627,
0.008938735,
-0.03380049,
-0.078752846,
0.041215904,
-0.033541813,
0.0054214434,
0.0032011305,
-0.005633415,
0.059553243,
-0.017934954,
0.020392388,
0.06622137,
0.022763595,
0.020464242,
-0.06472679,
0.012136273,
0.0148164565,
-0.05920834,
-0.0027071289,
0.0041999123,
-0.05452341,
0.0021035487,
-0.021987563,
-0.0447799,
-0.01058421,
0.014198505,
0.030380202,
-0.023927642,
0.0027915584,
-0.05064325,
-0.05300009,
-0.050183382,
0.020464242,
0.014500296,
0.022188757,
0.040353645,
0.0021772,
0.003140054,
0.042423066,
-0.005026242,
-0.020794773,
-0.014478738,
0.045728385,
0.013185353,
-0.01845231,
0.02312287,
0.026830576,
-0.06777343,
-0.06259989,
-0.026399447,
0.0013239244,
-0.038629133,
-0.002293964,
-0.01651223,
0.007997437,
-0.05331625,
0.026945544,
0.041187163,
0.00046301426,
-0.024286916,
0.00967884,
-0.029977815,
-0.04133087,
0.026787464,
0.068693176,
-0.019027147,
-0.00041585957,
-0.045613416,
0.021886967,
-0.024890497,
0.0045124805,
0.034317844,
0.003174185,
0.039146487,
0.031127492,
-0.00483942,
0.07105001,
-0.031472396,
0.031731073,
-0.0054322216,
-0.034892682,
-0.049666025,
-0.008421381,
0.021542065,
-0.031673588,
0.0030322718,
-0.028511979,
-0.013681151,
0.0145434085,
0.036128584,
-0.0061363983,
-0.049436092,
0.02569527,
-0.028497607,
-0.022160016,
-0.013228466,
-0.022706112,
0.0036484266,
0.028023366,
0.0071962564,
-0.03365678,
0.011654845,
0.00087528105,
-0.040842257,
-0.039405163,
-0.040756032,
-0.025752755,
-0.06070292,
0.010943484,
-0.034202877,
-0.07524633,
-0.0021843854,
0.022936046,
-0.019472646,
-0.0065998617,
-0.051074382,
0.05210909,
0.000894592,
0.010418944,
0.015865536,
-0.025149174,
-0.0014981723,
-0.016742164,
-0.06616388,
0.028339528,
0.051907897,
-0.011173419,
-0.005960354,
0.036617197,
-0.0148739405,
0.0029191007,
-0.005619044,
0.041215904,
-0.024286916,
0.025034206,
-0.01126683,
0.040842257,
-0.0664513,
0.0066321967,
-0.0013894918,
-0.035496265,
0.013839231,
0.052195314,
-0.010268048,
0.038111776,
0.049234897,
0.047797803,
0.0022903713,
0.017302632,
0.023194725,
-0.0041388357,
0.0070238053,
-0.016469117,
-0.0052813264,
-0.021556435,
-0.01531944,
0.04549845,
-0.008536348,
0.028368268,
0.00945609,
0.023237837,
-0.019300194,
0.022045048,
-0.0148164565,
0.01937205,
0.020033114,
-0.030983783,
-0.019946888,
-0.043630224,
-0.009527944,
0.027592236,
-0.0735793,
-0.04239432,
0.03782436,
-0.06455434,
0.015132617,
-0.0148164565,
-0.013566183,
-0.02118279,
0.025450964,
-0.033685524,
0.00021084888,
0.031328686,
0.002254444,
0.027376672,
-0.043199096,
-0.017791245,
-0.009815363,
0.005288512,
-0.005306476,
-0.018581647,
0.019860663,
0.06581898,
0.033139426,
-0.020665435,
-0.0330532,
0.008371082,
0.0071315872,
0.033455588,
-0.047079254,
0.048545092,
-0.027520383,
0.032507103,
-0.031357426,
-0.0030987374,
-0.0057735317,
0.04538348,
0.01037583,
0.022993531,
0.03690462,
0.021585178,
0.015060763,
-0.02494798,
0.0066178255,
0.028756285,
0.0135446265,
-0.025479706,
0.04207816,
-0.012869191,
0.051907897,
0.04549845,
0.03382923,
0.0065495637,
0.02960417,
0.0318173,
-0.024976723,
-0.015894279,
0.0145434085,
0.02238995,
-0.0031328686,
-0.00864413,
-0.031070009,
-0.0140404245,
-0.0042178757,
0.0049903146,
-0.013659595,
0.030523911,
0.005051391,
-0.009369864,
-0.06944046,
0.020794773,
-0.022145644,
-0.03397294,
-0.010131525,
0.0025274921,
0.04584335,
0.039002776,
-0.001798166,
-0.046791837,
0.039002776,
0.03802555,
0.019645099,
0.02026305,
-0.002590365,
0.03230591,
0.0022813894,
0.0639795,
0.013616482,
-0.0069519505,
-0.019961258,
-0.036013618,
-0.03141491,
0.016555343,
-0.0068477606,
-0.039750066,
-0.002031694,
-0.03486394,
-0.0024520445,
-0.057713762,
0.052310284,
-0.05978318,
0.0031256832,
0.0247899,
-0.007232184,
-0.055989247,
0.02193008,
0.014730231,
0.042308096,
0.011144677,
0.04989596,
-0.024071353,
0.054149766,
0.034260362,
-0.0033717856,
0.028095221,
0.020679807,
-0.0174176,
-0.04699303,
0.02583898,
-0.01802118,
-0.0018772063,
-0.041963194,
-0.029776622,
0.021829484,
0.0001297877,
-0.022548031,
-0.04911993,
0.02823893,
0.0017308021,
-0.021886967,
0.005360367,
0.100481726,
0.03377175,
0.0030017337,
0.0145937065,
0.007052547,
-0.03693336,
-0.0064669307,
-0.034116652,
0.036071103,
-0.018279856,
-0.066336334,
-0.00735793,
-0.034432814,
-0.016699051,
-0.009298009,
0.0037939325,
-0.011317128,
0.040842257,
0.042423066,
0.045268513,
0.030437686,
-0.007616607,
-0.037163295,
0.03541004,
0.007853728,
0.0060106525,
0.070130266,
0.061220277,
0.005288512,
-0.007386672,
-0.0038334527,
0.020449871,
-0.033426844,
-0.0060681365,
-0.033110686,
-0.009290824,
-0.027376672,
-0.047740318,
-0.021297758,
0.010577024,
-0.002974788,
-0.022260612,
-0.051936638,
-0.010497984,
-0.051160607,
-0.0678884,
-0.032995716,
0.025767125,
-0.017776873,
-0.057799987,
0.03141491,
-0.044320032,
0.24603078,
0.034432814,
0.045555934,
-0.018869067,
0.043630224,
0.078350455,
0.01681402,
-0.034634005,
-0.010325532,
0.017158922,
-0.013508699,
-0.021786371,
0.014133836,
0.015118247,
-0.020507354,
0.00885251,
-0.052367765,
-0.0011380002,
-0.0075303814,
-0.049177416,
-0.0522528,
0.027980253,
0.005177137,
0.031357426,
0.024818642,
0.012114717,
0.025019836,
-0.045412224,
-0.012129087,
-0.055356923,
0.046964288,
-0.0047172667,
0.041704517,
-0.038226746,
-0.008083663,
0.042767968,
-0.053546187,
-0.03727826,
0.012057233,
0.0067759063,
0.033398103,
-0.015463149,
-0.023395918,
-0.008148332,
-0.026773093,
0.0030556247,
-0.011971007,
0.042480547,
0.08289168,
-0.056190442,
0.0013688336,
-0.045987062,
0.01471586,
-0.031041266,
-0.07059014,
0.0023604296,
-0.05633415,
-0.046906803,
-0.008715985,
0.018251115,
-0.00048277434,
0.009779436,
0.02147021,
0.017245147,
0.013558998,
0.008220187,
-0.006172326,
0.03196101,
-0.036703423,
-0.015290698,
-0.0029855662,
-0.007947139,
0.0068297973,
-0.039750066,
0.012941047,
0.032363396,
-0.014608078,
0.034001682,
0.0034328622,
-0.048487607,
-0.012596143,
-0.018754099,
0.0018367879,
-0.043544,
0.040324904,
0.04202068,
-0.0052669556,
-0.0013445826,
0.0071279947,
0.022059418,
0.032535847,
0.02359711,
0.001015847,
0.015822424,
-0.004480146
] |
Set seed or reproducibility -- you don't need this unless you want full reproducibility
from transformers import set_seed
set_seed(42)
model_inputs = tokenizer(["I am a cat."], return_tensors="pt").to("cuda")
LLM + greedy decoding = repetitive, boring output
generated_ids = model.generate(**model_inputs)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'I am a cat. I am a cat. I am a cat. I am a cat'
With sampling, the output becomes more creative!
generated_ids = model.generate(**model_inputs, do_sample=True)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'I am a cat. Specifically, I am an indoor-only cat. I' |
[
0.04576553,
0.05592583,
-0.05189116,
0.02202871,
-0.024104945,
-0.033043064,
-0.006044643,
0.026549308,
0.044499174,
0.050153602,
0.0074508875,
-0.019864125,
0.015343527,
-0.04791539,
0.01767009,
-0.007693851,
0.016933834,
-0.028419392,
-0.033013616,
-0.0033444325,
-0.005069107,
0.017537562,
-0.057221636,
-0.031011006,
-0.023957696,
-0.012192361,
0.02292694,
-0.005352564,
0.09294467,
0.08587663,
-0.020585652,
-0.0134439925,
-0.035104576,
-0.028772794,
-0.04538268,
-0.012781364,
-0.0039426386,
-0.026622934,
-0.019569622,
-0.036606535,
0.033425916,
-0.042732164,
0.07097486,
-0.024208022,
-0.043645117,
-0.034986775,
0.022396838,
-0.019319298,
-0.00073441304,
-0.056308683,
0.0038653319,
0.012332249,
-0.0003722683,
-0.037136637,
0.05586693,
-0.005183226,
0.011816872,
-0.015593853,
-0.036665436,
0.018965894,
0.05704494,
0.022661889,
-0.035075124,
-0.027638964,
0.02774204,
0.044882026,
-0.026946886,
0.008165053,
-0.016904386,
-0.06714634,
-0.0496824,
-0.027432812,
-0.004826143,
0.0034898424,
-0.0063538696,
-0.010233927,
0.035104576,
-0.0040420326,
-0.0143569475,
0.008290216,
0.043321166,
0.032041762,
-0.016079782,
-0.0149606755,
-0.0005439074,
-0.0053267954,
0.018465243,
0.016580433,
0.0297741,
-0.021380808,
0.005404102,
0.050359752,
-0.036930487,
0.00028276743,
0.022470463,
0.03239516,
-0.003633412,
0.04815099,
0.043321166,
0.010278102,
-0.043085568,
0.051243257,
-0.018803919,
0.014894412,
-0.042526014,
0.030716505,
0.005595528,
-0.018317992,
0.013429267,
-0.044970375,
0.004347578,
0.014975401,
-0.003291054,
-0.012781364,
-0.025503827,
0.041348007,
0.029833,
0.015071114,
-0.040729556,
-0.011544458,
0.043645117,
0.0020302196,
0.00946086,
-0.045294326,
0.05395267,
0.024679223,
-0.018038215,
0.065320425,
-0.06349452,
0.03009805,
-0.0398755,
-0.013259929,
0.018303268,
0.03133496,
0.0010611257,
0.006482714,
0.0101234885,
0.04785649,
0.0052494886,
-0.024311097,
0.030569253,
-0.0016906225,
0.009571298,
0.07338977,
-0.03213011,
0.015947254,
0.028581368,
-0.035310727,
-0.043321166,
0.031158257,
-0.023162542,
0.020276427,
0.016212307,
0.03374987,
-0.0019400285,
-0.04346842,
-0.038137943,
-0.023530668,
0.003708878,
-0.010867105,
0.017758438,
0.026122281,
-0.045677178,
0.016874935,
0.011735884,
0.014371672,
-0.030804854,
0.016992735,
0.0048519117,
-0.05165556,
-0.011949398,
0.014430572,
0.020408953,
0.004561092,
0.040641204,
0.09318027,
0.012597301,
-0.011802147,
0.03572303,
0.013642781,
-0.02391352,
0.021248281,
0.016006155,
0.03168836,
0.024266921,
0.028124891,
0.044528622,
0.038609143,
0.00009715097,
0.0045316415,
-0.015137376,
0.010697766,
0.0048924056,
0.0496824,
-0.0014899934,
0.040228903,
-0.015579129,
-0.016550982,
0.011765334,
-0.019392923,
-0.01694856,
-0.013937282,
0.0026229038,
0.034692273,
-0.025651079,
0.0044948286,
-0.009136909,
0.046678483,
-0.018288542,
0.03227736,
0.06920785,
0.00856263,
-0.050948754,
-0.050153602,
0.03404437,
-0.024679223,
-0.012928615,
0.008459555,
-0.008378567,
0.0020320602,
-0.0033205042,
-0.02573943,
0.036253132,
0.004715705,
-0.019525448,
-0.015314077,
0.026240082,
0.03955155,
-0.029567948,
0.018111842,
0.026696559,
0.022838589,
0.036959935,
0.0398755,
0.039639898,
0.0398755,
0.015166827,
0.024119671,
0.02908202,
0.015372978,
0.034662824,
0.014783974,
0.020438403,
0.05192061,
-0.009122184,
0.024443623,
-0.038815293,
-0.018288542,
-0.0059967865,
-0.025533278,
-0.028080717,
0.025356578,
0.082931615,
0.003979451,
-0.027005786,
0.02188146,
0.016403733,
0.026122281,
-0.0104253525,
-0.040376153,
-0.007211605,
0.055307377,
-0.00068885734,
-0.008945483,
0.011978848,
0.040759005,
-0.0110290805,
-0.0061918935,
-0.03207121,
-0.02017335,
-0.009674374,
-0.0496235,
-0.06390682,
-0.015056388,
0.012405875,
0.010911279,
-0.0042260964,
-0.068559945,
-0.022823865,
-0.034898426,
0.000018622042,
0.017228337,
-0.028640268,
0.045235425,
0.023648469,
0.026195906,
-0.035310727,
0.022838589,
-0.022441013,
0.051979512,
-0.0047782864,
-0.011794784,
-0.023236167,
-0.044616975,
0.031305507,
-0.0064900764,
-0.0012866033,
-0.026829084,
-0.038874194,
-0.054806724,
-0.010712491,
-0.006990729,
-0.02223486,
0.0118315965,
-0.008680431,
0.01613868,
0.005201632,
-0.007539238,
0.024458347,
0.020674003,
-0.06467252,
0.013370367,
-0.003084903,
0.00937251,
-0.015476053,
-0.004988119,
0.024369998,
-0.035045676,
0.028198516,
-0.012980153,
-0.013812119,
-0.030893205,
0.015520228,
0.011750609,
0.009828987,
0.087408036,
0.00252535,
-0.046001133,
0.00795154,
-0.034279972,
-0.037077736,
0.011191056,
-0.005860579,
0.0063133757,
-0.0012295437,
0.0137458565,
-0.06979685,
-0.020526754,
-0.050271403,
0.046737384,
0.018067665,
-0.0022750238,
0.029567948,
0.035310727,
-0.019437097,
0.0031732535,
0.07079816,
-0.07009135,
0.004862956,
0.013893107,
0.008717244,
0.007182155,
-0.022823865,
0.012685651,
-0.023339242,
0.018877545,
-0.035134025,
0.02498845,
0.040582303,
0.027727313,
0.037401687,
0.034868974,
-0.0077969264,
-0.02101268,
0.005389377,
-0.029229272,
0.019068971,
0.005536628,
0.053422567,
-0.038079042,
0.04008165,
-0.006074093,
-0.046590135,
0.020762354,
-0.01587363,
-0.038579695,
0.04358622,
-0.006799303,
0.020379502,
-0.048916694,
-0.018538868,
-0.009961513,
0.023088915,
0.026887985,
0.028360492,
0.05165556,
-0.032483514,
-0.033543717,
-0.0019308253,
0.048504394,
0.010771392,
-0.03386767,
-0.008665706,
-0.040994607,
-0.01439376,
-0.02382517,
0.040641204,
0.029111471,
-0.031305507,
0.00030692577,
0.03640038,
0.009335697,
0.0143495845,
0.015417152,
-0.000037790523,
-0.025901405,
-0.00223453,
0.026829084,
0.010138214,
0.006294969,
0.044970375,
-0.023854619,
-0.01619758,
-0.01035909,
-0.0019860445,
-0.0051869075,
-0.024222746,
0.017832065,
-0.010491615,
0.039168697,
-0.043645117,
0.012067198,
-0.010756667,
0.025268227,
0.014533648,
-0.03389712,
0.005278939,
-0.05993105,
0.010491615,
0.040847354,
0.027138311,
0.00031014686,
-0.0146588115,
-0.056838784,
0.0017062679,
0.02591613,
0.033278666,
-0.014901775,
-0.033190317,
-0.028831694,
-0.034338873,
-0.022764964,
0.004862956,
0.022337938,
0.0003177395,
-0.016374283,
0.0041524707,
-0.019687423,
0.004196646,
-0.019981924,
0.016389007,
-0.046825737,
0.023515943,
-0.017508114,
0.015520228,
-0.0009865799,
-0.023030015,
-0.024222746,
0.02702051,
-0.0059636547,
0.0024388405,
0.0076202257,
0.026092831,
-0.0106241405,
-0.012472138,
0.034633376,
-0.0023983463,
-0.046678483,
0.06537933,
0.029479599,
-0.00034304822,
0.020438403,
0.019304572,
-0.00095805014,
-0.011662259,
0.008746694,
0.025209326,
0.0015580968,
-0.02301529,
-0.023191992,
-0.05365817,
0.032836914,
-0.007958902,
-0.032748565,
-0.007307318,
-0.00516482,
-0.01915732,
-0.01918677,
-0.022838589,
0.04414577,
0.017463937,
-0.024252197,
0.009122184,
-0.042260963,
-0.013149491,
-0.03996385,
-0.002928449,
0.030539803,
0.0092178965,
0.022853315,
0.02684381,
-0.03961045,
-0.010609415,
0.0074324813,
-0.05781064,
0.009482947,
-0.034603924,
-0.024414172,
0.00856263,
0.0069060596,
-0.06590943,
-0.004660486,
0.0024959,
-0.0064716698,
0.048769444,
-0.05212676,
-0.006074093,
-0.023191992,
-0.010403264,
0.058753043,
-0.0016188378,
-0.034545023,
-0.027992366,
0.013451355,
-0.038520794,
0.038579695,
0.0058053606,
-0.02280914,
0.013922557,
-0.08228371,
0.007388306,
0.0029468555,
0.0045279604,
-0.038196843,
-0.07068036,
0.0004396815,
-0.0018277498,
0.050448105,
-0.011595996,
-0.01892172,
0.013164216,
0.035134025,
-0.031217156,
-0.029567948,
-0.038579695,
0.0058200853,
-0.011765334,
0.012722464,
0.023147816,
-0.016433183,
0.0008660184,
-0.027285563,
0.036164783,
0.0016804991,
-0.015770555,
-0.06337672,
0.0036297308,
0.033190317,
0.0076055005,
0.03640038,
-0.0068066656,
0.056720983,
-0.048298243,
0.04773869,
-0.026799634,
-0.029612124,
-0.052774664,
-0.046001133,
0.06973795,
-0.057015486,
0.0049918,
-0.0103222765,
0.028493019,
0.016433183,
0.0071674297,
-0.038933095,
0.033337567,
-0.03363207,
-0.0104253525,
-0.0076717637,
-0.027418088,
-0.0052494886,
-0.017832065,
-0.021336632,
0.0015231249,
-0.028051266,
0.044911474,
0.049063947,
0.04208426,
0.0049697123,
-0.037460588,
-0.0021056856,
-0.018362166,
-0.00029036004,
-0.009505035,
0.017625913,
-0.023957696,
0.007863189,
-0.00007235994,
-0.05601418,
-0.039139245,
0.029759374,
0.09382817,
-0.010491615,
-0.00021351357,
0.014010908,
-0.035369627,
-0.018524144,
0.025224052,
-0.009409322,
0.03749004,
0.022043435,
0.022485187,
0.004785649,
-0.0027591106,
-0.057398338,
-0.012663564,
-0.021130482,
0.047444187,
-0.027344462,
-0.00859208,
-0.02594558,
0.03377932,
-0.036901034,
-0.029214546,
-0.024443623,
0.025592178,
-0.005087513,
0.01349553,
0.009048558,
-0.030775404,
0.01395937,
0.004524279,
0.0031180345,
-0.01665406,
0.0011439542,
0.033602618,
-0.030716505,
-0.05795789,
0.026667109,
0.040376153,
-0.022529364,
-0.00014529507,
-0.023030015,
-0.0015433718,
0.006688865,
0.030539803,
0.03619423,
-0.026667109,
0.009799536,
0.032748565,
-0.038520794,
0.022396838,
-0.025209326,
0.026107555,
0.032660212,
-0.0064716698,
-0.057133287,
-0.0034843206,
0.023751544,
0.01918677,
0.0038616506,
-0.009122184,
0.004855593,
0.03843244,
0.037018836,
0.00847428,
-0.01796459,
0.000048431688,
-0.05206786,
-0.0107272165,
-0.012825539,
-0.005672835,
-0.01349553,
0.0496235,
-0.001178006,
-0.05975435,
0.010233927,
0.07097486,
0.027359188,
-0.04391017,
-0.030952105,
0.01790569,
-0.018185467,
-0.0064716698,
0.008636256,
0.012295437,
-0.012081923,
0.009505035,
-0.0066446895,
0.010587328,
-0.025695253,
0.00041943454,
0.014504198,
-0.03351427,
0.009777449,
0.0051611383,
-0.0146514485,
0.0075097876,
-0.030422002,
0.036930487,
-0.028345767,
-0.006155081,
0.04812154,
0.0049807564,
0.00084163,
-0.052303463,
-0.025150426,
0.054747824,
-0.00516482,
-0.012781364,
-0.034603924,
0.027550614,
-0.030893205,
0.0013197347,
0.010535791,
-0.009394597,
-0.014931225,
0.04373347,
0.024517247,
0.016330106,
0.061609708,
0.015269902,
0.02974465,
0.048563294,
0.025224052,
-0.0033094604,
0.02974465,
0.016639333,
-0.04367457,
-0.089057244,
0.036842134,
0.009048558,
-0.05192061,
0.006924466,
-0.004483785,
0.0017890965,
-0.06514373,
-0.0004594683,
0.007598138,
0.07721829,
0.03528128,
0.0038616506,
-0.04579498,
-0.023265617,
0.00050065253,
0.012111373,
-0.075097874,
-0.04355677,
0.017198887,
-0.040847354,
-0.034633376,
0.01814129,
0.0396988,
0.029155646,
-0.004428566,
0.01993775,
-0.050418653,
0.018332718,
-0.008378567,
0.046413433,
-0.05404102,
-0.01694856,
0.022794414,
0.025651079,
-0.030628154,
-0.08228371,
0.046266183,
0.040935706,
0.006184531,
-0.001834192,
-0.015328802,
-0.00012286233,
-0.03148221,
0.03201231,
-0.016801309,
0.033072516,
-0.01814129,
0.032954715,
0.043232817,
0.011441383,
-0.04199591,
0.03781399,
-0.009828987,
0.023471767,
-0.019687423,
0.05127271,
0.019657973,
-0.04588333,
0.02325089,
0.029185096,
0.030922655,
0.000023899485,
0.0028493018,
0.018421067,
0.011787422,
0.03984605,
0.004785649,
-0.017301962,
0.02188146,
0.0065452955,
-0.035163477,
0.009409322,
0.013414542,
0.007819015,
-0.0027315011,
-0.041671958,
-0.0012893643,
0.041053507,
-0.0395221,
-0.013583881,
-0.022558814,
-0.01665406,
-0.008039891,
-0.019230947,
-0.017949864,
0.04367457,
0.02400187,
-0.013709044,
-0.04414577,
-0.023987146,
0.019952476,
0.011919947,
0.011183694,
0.022573538,
0.020305878,
0.03575248,
0.07132826,
0.023677919,
0.025886679,
0.032748565,
0.026195906,
0.03336702,
-0.007966265,
-0.011021717,
-0.040759005,
0.000766164,
-0.0043843905,
0.026770184,
-0.011905222,
-0.0048739994,
-0.01764064,
-0.009136909,
0.0015645392,
-0.032778013,
0.008989657,
-0.03539908,
-0.023353968,
0.07026805,
-0.025327127,
-0.027344462,
0.02191091,
-0.002092801,
0.019466547,
-0.010042501,
0.044351924,
-0.027933465,
0.07515678,
0.037195537,
-0.0045169163,
0.002541916,
0.0128402645,
-0.013473443,
-0.011110068,
0.059194796,
-0.0017504431,
-0.025960306,
-0.0023633745,
-0.02675546,
-0.024208022,
-0.011507645,
-0.02101268,
-0.00696496,
-0.02806599,
0.046590135,
-0.03180616,
-0.033072516,
0.019275121,
-0.005017569,
-0.0049697123,
-0.010130851,
0.014592548,
-0.0063133757,
-0.007502425,
-0.065968335,
0.04812154,
0.020129176,
-0.034073822,
-0.022264311,
-0.023957696,
0.0027940827,
-0.04025835,
-0.010918642,
-0.03763729,
0.017301962,
-0.013252567,
0.05141996,
-0.01976105,
-0.03634148,
-0.033484817,
0.021366082,
0.017390313,
0.022912215,
0.06496703,
0.06384792,
0.010204476,
-0.038609143,
-0.01712526,
0.0034861614,
-0.01715471,
-0.06184531,
-0.018465243,
0.0063833194,
-0.024237473,
-0.06579163,
-0.030539803,
0.04170141,
0.009873162,
0.012324887,
-0.02403132,
-0.01599143,
-0.05351092,
0.020099726,
-0.009424048,
0.04019945,
0.00078917196,
-0.030480903,
0.01802349,
-0.028596094,
0.2589257,
0.045205977,
0.020968506,
-0.021366082,
0.0051096007,
0.05371707,
0.0121334605,
0.011515007,
0.023560118,
-0.029685749,
0.011846322,
-0.024163846,
0.009239984,
0.031423308,
-0.02400187,
-0.0052605327,
-0.036989387,
0.024355272,
-0.019378196,
-0.053186968,
-0.02304474,
0.00957866,
0.010697766,
0.007900002,
-0.02199926,
0.010609415,
-0.0074913814,
-0.0004231158,
0.022102335,
-0.05404102,
0.01787624,
-0.04971185,
-0.011205781,
-0.01599143,
-0.020114452,
0.03425052,
0.009990962,
-0.036105882,
-0.0035505835,
0.014901775,
-0.005404102,
-0.072506264,
-0.050124153,
-0.03168836,
-0.054865625,
0.055071775,
-0.018303268,
0.032159563,
-0.019584348,
-0.032100663,
0.037107185,
-0.027388638,
0.007553963,
-0.032866366,
-0.06296442,
0.001892172,
-0.06508483,
-0.06749974,
0.017655363,
0.032719113,
0.0040825265,
-0.010896555,
-0.026254807,
0.044940926,
-0.0018461562,
0.008400654,
0.0044727414,
-0.04158361,
-0.020850705,
-0.027565338,
0.01987885,
0.021645859,
-0.054423872,
-0.054011572,
-0.01868612,
0.0031530065,
-0.02077708,
0.018612493,
-0.018965894,
-0.032925267,
0.03377932,
-0.036429834,
-0.0052678953,
-0.04178976,
0.046796285,
0.04762089,
-0.022573538,
-0.004045714,
0.014644086,
0.050153602,
0.0010813726,
-0.022470463,
-0.026328431,
-0.0021020044,
0.02104213
] | Further resources
While the autoregressive generation process is relatively straightforward, making the most out of your LLM can be a challenging endeavor because there are many moving parts. For your next steps to help you dive deeper into LLM usage and understanding:
Advanced generate usage |
[
-0.005444679,
-0.021778716,
-0.025336692,
0.012897669,
-0.030548574,
-0.007602398,
0.009040877,
0.027838396,
0.009624608,
0.09923422,
-0.012063769,
0.01559395,
-0.021806512,
-0.021973291,
-0.04172285,
0.0015461915,
-0.017247854,
-0.0345513,
-0.06243139,
0.0024217875,
0.036775034,
0.006935277,
-0.068991415,
-0.028199753,
-0.03024281,
0.012994958,
0.00240094,
-0.017637007,
0.032327563,
0.045892354,
-0.022668209,
0.045280825,
-0.020652948,
0.0028092042,
-0.037886903,
-0.05181305,
0.0113758,
-0.044863876,
-0.013933096,
-0.017803786,
0.01922142,
-0.0141137745,
0.03338384,
-0.05959613,
-0.05156288,
-0.030993322,
-0.011070036,
-0.032994684,
-0.02915874,
-0.025725847,
0.007685788,
-0.027616022,
-0.00374908,
-0.007776127,
-0.059707314,
-0.009214606,
-0.021889903,
-0.009714947,
-0.045280825,
-0.001286466,
0.010576645,
-0.0030350522,
-0.010757323,
-0.060430028,
0.002524288,
-0.00480188,
-0.037553344,
0.009812236,
-0.0116607165,
0.015302083,
-0.054231364,
0.017928872,
-0.031243492,
-0.025628557,
-0.024961438,
0.005441204,
0.020944815,
-0.008373756,
-0.01264055,
0.031076713,
0.01339801,
0.05342526,
0.010173593,
0.009972067,
-0.028213652,
-0.019332606,
0.03758114,
0.019332606,
0.023502111,
-0.008047145,
-0.015010218,
0.055398826,
-0.035412997,
-0.010472408,
0.010041558,
0.06960294,
0.0014593268,
0.043362852,
-0.027060088,
-0.017386837,
0.024461096,
0.07188227,
-0.021542443,
0.006497479,
-0.04575337,
-0.010764273,
0.0294923,
0.010722578,
-0.05234119,
-0.034523502,
-0.01306445,
0.011243765,
-0.009902575,
0.019582776,
-0.04575337,
0.04608693,
0.058261886,
-0.015538356,
-0.0707704,
-0.01862379,
0.048838805,
-0.034023162,
-0.025433982,
-0.021681426,
0.012355634,
0.010729526,
0.02300177,
0.05948494,
-0.013043602,
-0.052035425,
-0.0021160238,
0.00060631556,
0.05578798,
0.031215696,
-0.031827223,
0.029186536,
-0.01827633,
0.041973017,
0.0063306987,
-0.01195953,
0.010729526,
0.00015581354,
-0.0031584,
0.058651038,
0.012126311,
-0.04491947,
0.029186536,
-0.020180404,
-0.03168824,
-0.0049756095,
-0.03546859,
0.040082842,
-0.022265157,
0.017998364,
-0.019040741,
-0.022570921,
0.013543943,
-0.030798744,
-0.0053995093,
0.0016764886,
-0.013377163,
0.03824826,
-0.05520425,
0.018818367,
0.002937764,
0.016817003,
-0.03388418,
-0.00009196799,
0.022862786,
-0.067212425,
0.016650224,
-0.0011162113,
-0.03655266,
0.02619839,
0.049783893,
0.05831748,
0.03227197,
-0.027240766,
0.035301812,
0.006014511,
-0.014482081,
0.0029481875,
0.017470226,
0.028074669,
0.016163781,
0.03557978,
0.020097015,
0.02308516,
0.013752418,
0.032216378,
0.009881727,
0.04683744,
0.011570376,
0.050756775,
0.0022046259,
0.016608529,
-0.042112,
0.044113364,
0.04844965,
-0.048088294,
-0.01044461,
0.036497068,
-0.03824826,
0.01955498,
-0.0032539512,
-0.008074942,
-0.017136667,
0.030187218,
-0.01669192,
0.054703906,
0.02644856,
0.022140073,
-0.052563563,
-0.006212563,
0.0035753506,
-0.025545169,
0.013724621,
-0.015038015,
0.009721897,
0.030993322,
-0.026101103,
0.018443111,
-0.0017546668,
0.0032139935,
-0.004291116,
-0.029130943,
0.030798744,
0.025976017,
0.0058338325,
0.0303262,
0.0007209769,
0.025336692,
0.008276468,
0.032466546,
0.046920832,
-0.026559748,
0.10134677,
0.028449923,
-0.018220738,
0.013953944,
0.031438068,
0.04177844,
0.016274968,
0.05703883,
0.021264477,
-0.01912413,
-0.013870554,
-0.0005020779,
-0.023988552,
0.008220875,
-0.022862786,
0.039387926,
0.06409919,
-0.029603487,
-0.007956806,
0.0019579302,
0.034996048,
0.026295679,
-0.03663605,
-0.034996048,
0.027782803,
0.017734295,
-0.0056218826,
-0.025850931,
0.010062406,
0.018137347,
0.00012139341,
0.033078074,
-0.0013411908,
-0.055732384,
-0.027115682,
-0.042918105,
-0.0640436,
0.01879057,
-0.031104509,
-0.024891946,
0.0032956463,
-0.020027524,
0.019026842,
-0.06493309,
-0.020917017,
-0.0023974655,
-0.034606893,
0.05450933,
0.026323477,
-0.008227823,
-0.06493309,
-0.00068188785,
-0.015983103,
0.022668209,
-0.0032626379,
-0.008776808,
-0.022529226,
-0.008700367,
0.025934322,
-0.0044335737,
0.02990925,
0.020180404,
-0.023488212,
-0.0051979832,
-0.010590543,
0.007706635,
0.014787845,
-0.010632238,
-0.0016174206,
0.045336418,
0.032827903,
-0.027157377,
0.042945903,
0.054203566,
-0.037886903,
0.0051006945,
-0.03343943,
0.012821228,
-0.01835972,
0.049311347,
0.05111813,
-0.026573647,
-0.013279874,
-0.022862786,
-0.05106254,
-0.012480719,
0.016539037,
0.0070395144,
-0.034829266,
0.060930368,
-0.043779805,
-0.052507967,
-0.00024930167,
-0.04625371,
0.01297411,
0.004701117,
-0.07032565,
0.079943314,
0.06309851,
0.040722165,
0.009256301,
-0.0088185035,
-0.035996728,
0.02038888,
-0.009721897,
0.027324157,
0.013557841,
0.011584275,
0.011730208,
0.00065843435,
0.035246216,
-0.027157377,
-0.024711268,
0.016566833,
0.016608529,
0.027087886,
0.00539256,
-0.0127239395,
0.0019839895,
0.04769914,
-0.033606213,
-0.006817141,
0.009026979,
0.025475677,
0.015038015,
0.0345513,
-0.0049582366,
0.017386837,
-0.035190623,
0.0037942496,
-0.008394604,
0.03496825,
0.0724938,
0.03733097,
0.017678702,
-0.020930916,
-0.0079429075,
-0.027768904,
-0.081333145,
-0.025670253,
0.05181305,
0.026976699,
0.018234637,
-0.055982556,
-0.026392968,
0.02451669,
-0.01802616,
0.03785911,
0.00792206,
0.009735795,
-0.007373075,
0.0031775103,
0.045114044,
0.031299084,
0.038220465,
-0.013717672,
0.004263319,
-0.030131623,
-0.06865785,
-0.07288295,
0.02603161,
0.08149993,
0.019916337,
0.04152827,
0.037553344,
-0.015107507,
0.055815775,
-0.010562747,
-0.01845701,
-0.030187218,
-0.046476085,
0.0055315434,
-0.008137484,
0.011778852,
-0.019874642,
-0.01692819,
-0.0010875459,
0.017122768,
-0.011146477,
-0.014315301,
-0.024224825,
0.0047393376,
0.021959394,
0.04372421,
-0.032466546,
-0.061986644,
-0.0011422706,
-0.0042216238,
0.024544487,
-0.022459734,
0.001904074,
-0.014899032,
0.019235317,
0.05662188,
-0.0012960212,
-0.033550616,
0.0036344186,
-0.03944352,
-0.058651038,
0.034773674,
0.037636735,
-0.044613704,
-0.008436299,
-0.038665213,
0.006716378,
0.0631541,
-0.01078512,
0.022682108,
-0.0064488347,
-0.02225126,
0.03218858,
0.022445835,
-0.004812304,
-0.027490938,
0.0328835,
-0.040972337,
-0.005774765,
-0.038470633,
0.024002451,
-0.020513965,
-0.015816323,
0.0058929008,
0.03566317,
-0.0028213651,
-0.008311214,
-0.0011275037,
0.025044827,
-0.03185502,
-0.0077135847,
0.011368851,
-0.0005611459,
-0.027532632,
0.03824826,
0.010993595,
-0.011167325,
0.009325793,
0.035690963,
-0.0077900253,
0.014551573,
0.02924213,
0.005038152,
-0.015997002,
0.01829023,
-0.0014028647,
-0.014815642,
0.035190623,
0.01760921,
-0.022209564,
0.000586771,
-0.037469953,
-0.022445835,
0.010889358,
-0.022737702,
0.039777078,
0.010500204,
0.008776808,
-0.0025399236,
-0.035524186,
-0.055148654,
-0.044446927,
-0.019138029,
0.03235536,
0.045975745,
0.017372938,
0.003801199,
-0.01583022,
-0.019860743,
0.06309851,
-0.0010354271,
-0.03841504,
0.0069943448,
0.0033894603,
0.008290366,
-0.03844284,
-0.053453054,
0.005128491,
0.03166044,
0.03396757,
0.054064583,
-0.034996048,
0.00019566271,
-0.03674724,
-0.011896988,
0.04061098,
-0.020583456,
-0.053036105,
-0.032549936,
-0.0019283962,
0.0042216238,
0.03521842,
0.010486306,
-0.0004742812,
-0.039665893,
-0.08149993,
0.05339746,
0.0011952581,
-0.015899712,
-0.02814416,
-0.03772012,
-0.017831584,
0.024808556,
-0.005427306,
-0.03377299,
-0.024085842,
-0.024224825,
0.048004903,
-0.06509987,
0.01491293,
-0.011994276,
0.025795339,
-0.04391879,
0.026434662,
-0.005997138,
-0.02309906,
0.004708066,
-0.009909524,
0.026935004,
0.021125494,
-0.038665213,
-0.009159013,
0.020583456,
0.030520778,
0.008457147,
-0.010006812,
-0.0017225269,
0.055315435,
-0.026976699,
0.028005177,
-0.008491892,
-0.023196347,
-0.035301812,
-0.0060110367,
0.038637415,
-0.059429348,
-0.0020795406,
-0.04497506,
0.009346641,
0.008874097,
-0.015204796,
-0.08155552,
-0.00026602313,
-0.03844284,
-0.0040096743,
0.0055176453,
-0.047476765,
-0.0033356042,
-0.046392694,
-0.013912248,
0.049672704,
-0.02729636,
-0.0029846707,
0.08327892,
0.0012343472,
-0.0024148384,
-0.08161111,
0.049756095,
-0.0040096743,
0.0077622286,
-0.008867147,
0.025392286,
-0.049811687,
-0.03883199,
-0.027713312,
-0.0031722984,
-0.042501155,
0.029325519,
0.05175746,
-0.0019353454,
0.028005177,
-0.0030402641,
-0.04541981,
-0.021208882,
0.022028886,
-0.02511432,
0.01735904,
0.01070173,
0.048421852,
-0.032744512,
-0.023793977,
-0.051785253,
-0.042167597,
-0.014760048,
0.029103147,
0.0412781,
-0.010666984,
0.06582259,
0.01221665,
-0.02621229,
-0.05503747,
-0.011090884,
0.025753643,
-0.050339825,
-0.0029933571,
-0.012703093,
-0.017553616,
-0.012647499,
0.012452922,
0.032410953,
-0.021848207,
-0.018165143,
0.021056,
0.010729526,
-0.016525138,
-0.007077735,
0.07810873,
-0.056510694,
0.03505164,
-0.05047881,
-0.026684834,
-0.014058181,
0.007532906,
0.055871367,
-0.00859613,
0.008283417,
0.021695325,
-0.036469273,
0.030604167,
-0.013349365,
0.011000545,
0.03405096,
-0.06165308,
-0.051423896,
-0.007796975,
0.020722441,
0.00833901,
0.017664803,
-0.01694209,
0.039221145,
0.018053958,
0.06515547,
-0.017261751,
-0.024905844,
0.019082434,
-0.01702548,
-0.0010614865,
0.00943698,
0.017233955,
0.012932415,
0.009325793,
0.041472677,
-0.04077776,
-0.012967161,
-0.002790094,
-0.031160101,
-0.011931734,
0.010319525,
0.034189943,
-0.04111132,
-0.012063769,
-0.03405096,
0.0031966206,
-0.012904619,
0.0010797281,
-0.007803924,
-0.008714266,
-0.027880091,
0.031493664,
0.002135134,
-0.00892969,
-0.025225507,
-0.010938002,
-0.008832402,
-0.023057364,
-0.025378387,
0.025406186,
0.016066493,
-0.007692737,
0.008790706,
-0.02586483,
-0.009492573,
-0.026726527,
0.024044147,
0.03338384,
-0.03229977,
-0.00042867725,
0.0034363673,
-0.004051369,
-0.06737921,
0.0022758548,
0.007845619,
0.0022515329,
0.0021507698,
0.03446791,
0.019916337,
0.035162825,
0.028713992,
0.049394738,
0.0072201933,
0.009728845,
0.0015922298,
-0.020361083,
0.008887995,
-0.029686878,
0.0024408977,
-0.009124267,
0.012452922,
0.020736339,
-0.0029012808,
0.023404822,
-0.019193621,
-0.018304128,
-0.036441475,
-0.022696007,
-0.008450197,
0.01862379,
0.051201522,
-0.012251396,
-0.017303446,
-0.01044461,
-0.007505109,
0.0573168,
-0.082111456,
-0.0022671684,
0.017317345,
-0.032494344,
-0.02671263,
-0.043779805,
-0.027449243,
-0.012404278,
0.009555116,
-0.0023800926,
-0.011771902,
0.036886223,
0.019568877,
0.016038697,
-0.0294923,
-0.020917017,
-0.00043258615,
0.0022497955,
-0.022418039,
-0.055732384,
0.026434662,
0.015871916,
0.020083116,
-0.01491293,
-0.056649677,
0.029603487,
-0.05300831,
0.010243084,
-0.006730276,
-0.0037942496,
-0.039221145,
0.011000545,
0.034662485,
-0.027282462,
-0.06687886,
-0.018637689,
0.053369667,
-0.01162597,
0.0035093336,
0.01541327,
0.044863876,
-0.055287637,
0.037469953,
0.03127129,
0.039137755,
-0.014134622,
0.0081305355,
0.012445973,
0.0130575,
0.058428664,
-0.0032556886,
0.01069478,
0.009277149,
0.014002589,
-0.04744897,
-0.009812236,
0.035607573,
0.0122235995,
-0.020208202,
-0.018554298,
0.009666303,
0.019985829,
0.017623108,
-0.006209088,
0.011591224,
-0.00033594918,
0.023404822,
0.00063932413,
-0.05061779,
-0.016163781,
0.037692327,
0.007977653,
-0.021250578,
-0.019513285,
0.02646246,
0.043196075,
0.028158057,
-0.0037734022,
0.018137347,
0.03785911,
0.034162145,
0.030409591,
-0.01482954,
0.022904482,
0.0027188647,
0.02669873,
0.006546123,
-0.022696007,
-0.010680882,
0.0067962934,
0.021848207,
0.017094972,
-0.02401635,
-0.031382475,
-0.012661397,
-0.029937048,
-0.0125988545,
-0.025837034,
0.034217738,
-0.055426624,
0.00018306734,
0.048004903,
-0.0033738245,
-0.014044283,
-0.010055456,
0.03546859,
0.015149202,
-0.029297723,
0.06787954,
0.014593268,
0.08400163,
0.013835808,
0.0047323885,
-0.017637007,
0.021959394,
-0.04600354,
-0.0010771222,
0.04408557,
0.012584956,
0.032911293,
-0.029714674,
-0.069213785,
-0.013113094,
0.009395285,
-0.013015805,
-0.036469273,
0.023321433,
0.030409591,
-0.0046802694,
0.0050833216,
0.043668617,
0.023265839,
0.02990925,
-0.009423082,
-0.012334786,
-0.0269489,
0.0055906116,
-0.022557022,
-0.012056819,
-0.03613571,
-0.06298733,
-0.019485487,
-0.018220738,
-0.020930916,
0.018887859,
0.006580869,
-0.02831094,
0.019527182,
0.009485624,
0.029798064,
-0.006723327,
-0.025350591,
-0.02890857,
0.0219038,
0.06593377,
0.025392286,
0.074773125,
0.04052759,
-0.044697095,
-0.015482763,
-0.01785938,
0.03185502,
-0.011869191,
-0.01044461,
-0.02316855,
-0.018901756,
-0.012445973,
-0.0028839076,
0.013377163,
0.06254258,
0.015176998,
-0.014732252,
-0.04775473,
-0.052952714,
-0.043029293,
0.027755005,
-0.03566317,
0.041361492,
0.0014350046,
-0.014440387,
0.018012263,
-0.035802152,
0.22793294,
0.03986047,
0.029297723,
0.02999264,
0.033328246,
0.044697095,
0.043001495,
0.016261071,
0.0303262,
-0.036107916,
0.019527182,
-0.0038289956,
-0.021056,
-0.004812304,
-0.029798064,
0.006167393,
-0.053536445,
0.0071993456,
0.014127674,
-0.0060527315,
-0.037886903,
0.039165553,
0.0014584581,
0.09339692,
0.010368169,
0.032716718,
0.044780485,
-0.032966886,
0.0029655606,
-0.05375882,
0.009735795,
-0.029881453,
-0.010750374,
-0.038637415,
-0.017289547,
0.031410273,
-0.0640436,
-0.03168824,
0.008151382,
-0.019749556,
-0.0058685783,
-0.03488486,
-0.006646886,
-0.0050798473,
-0.023654992,
0.031438068,
0.026684834,
0.055343233,
0.04658727,
-0.058929008,
0.029770266,
-0.02038888,
0.04405777,
-0.029436706,
-0.041333694,
-0.02088922,
0.0068796836,
-0.03766453,
-0.0029533994,
0.016650224,
-0.00968715,
-0.013453604,
-0.048505243,
0.017247854,
-0.025934322,
-0.01642785,
0.0043189125,
-0.0016208951,
-0.0008534456,
-0.006851887,
0.011841395,
0.011653767,
-0.010910206,
-0.036358085,
0.033995364,
0.014885133,
0.0075607025,
0.01078512,
0.02578144,
-0.029937048,
-0.018887859,
-0.016539037,
-0.022084478,
-0.04341845,
0.034773674,
0.054231364,
-0.030993322,
-0.020764135,
0.016914293,
0.04555879,
-0.0021976766,
0.022348547,
0.009040877,
-0.0017164462,
-0.0057504424
] | Wrong prompt
Some models and tasks expect a certain input prompt format to work properly. When this format is not applied, you will get a silent performance degradation: the model kinda works, but not as well as if you were following the expected prompt. More information about prompting, including which models and tasks need to be careful, is available in this guide. Let's see an example with a chat LLM, which makes use of chat templating:
thon |
[
0.041681424,
0.0022218318,
-0.019314747,
0.049113434,
-0.04315087,
0.0028258592,
0.023694828,
0.018509377,
-0.0018385747,
0.03752741,
-0.035464533,
0.009537275,
-0.0048251543,
-0.036990497,
-0.025658801,
0.04657016,
-0.011600152,
-0.034362447,
-0.068272755,
-0.0030589926,
0.0026951632,
0.0348711,
-0.06499476,
0.015951974,
-0.030971417,
-0.004984109,
0.0075309146,
0.023327468,
0.09624876,
0.051261086,
0.020091858,
-0.0071494235,
-0.033260364,
-0.05239143,
-0.03755567,
-0.010222546,
0.005757688,
-0.043913852,
-0.01986579,
-0.0365101,
0.026902178,
-0.023087269,
0.042020526,
-0.069968276,
-0.064768694,
-0.011169208,
0.017590974,
-0.00893678,
0.0121088065,
-0.07567651,
-0.04052282,
0.015330286,
0.01968211,
-0.036227513,
0.034221154,
-0.015316157,
-0.021236332,
0.004895801,
-0.030264951,
-0.0062769395,
0.044365987,
0.01404452,
-0.02807491,
-0.05756275,
0.06296014,
0.034645032,
-0.0077781775,
-0.015372674,
-0.0089226505,
-0.063751385,
-0.034249414,
0.013790193,
-0.04038153,
-0.013451089,
-0.0074461387,
-0.013027211,
0.024655621,
-0.011465924,
-0.03950551,
0.005298486,
0.054878186,
0.05137412,
0.0058601256,
-0.035436273,
-0.041653164,
-0.06646421,
-0.022013443,
-0.015895458,
0.0026986955,
-0.027651032,
-0.00366302,
0.06160373,
0.014553174,
0.010356774,
-0.0020134246,
0.0046096826,
-0.009784537,
0.02588487,
0.042218335,
-0.005782414,
-0.008251509,
0.050667655,
0.018339826,
-0.0041045602,
-0.07680685,
0.020812452,
-0.01928649,
0.015584613,
-0.0060473387,
-0.05521729,
-0.0076298197,
0.027241282,
-0.042613957,
-0.027410833,
-0.046711452,
0.01062523,
-0.013225021,
0.010222546,
-0.027919488,
0.01083717,
0.02806078,
-0.026308749,
0.005245501,
-0.045835435,
0.039533768,
-0.008512901,
0.013246215,
0.047446176,
-0.06555993,
-0.009565533,
0.0042811767,
-0.0006901278,
-0.011402342,
0.0014456036,
0.010611101,
0.053126153,
-0.001427942,
0.023836123,
0.020035341,
-0.033938568,
0.038403425,
0.016813861,
0.024189355,
0.07714596,
-0.044365987,
0.012709302,
-0.012059354,
-0.013620641,
-0.028173815,
-0.0051819193,
-0.004811025,
0.046881005,
0.016220432,
0.034588516,
0.038742527,
-0.022847071,
-0.05196755,
0.006541864,
0.036227513,
-0.011783833,
0.03170614,
0.057195388,
-0.05499122,
0.041992266,
0.0010376201,
0.019032162,
-0.029756296,
-0.023214433,
0.026308749,
-0.015075958,
-0.0054044556,
-0.0051289345,
0.012243035,
0.039872874,
0.028625954,
0.0677641,
0.070985585,
0.0022306626,
0.010455679,
-0.00010481067,
0.0045001805,
-0.032893002,
0.015669389,
0.080593504,
0.000247925,
0.036623135,
0.020600513,
0.000850407,
-0.025983775,
0.0018597685,
-0.002246558,
0.042387888,
-0.012977758,
0.011275178,
0.0002055371,
-0.01764749,
-0.020685289,
0.033655982,
-0.027354317,
-0.0005302901,
0.00008174018,
-0.0090992665,
-0.028710729,
0.019314747,
0.0015948443,
0.039279442,
0.016093267,
0.036001444,
-0.0437443,
-0.0038078453,
0.065277345,
-0.006944549,
-0.011797962,
-0.014864019,
0.07126817,
0.0074955914,
-0.027396705,
0.0029706846,
-0.0022271303,
0.021843892,
-0.01284353,
0.03331688,
0.0042458535,
-0.019653851,
0.012589202,
-0.040098943,
-0.01415049,
0.046711452,
0.011148014,
0.020727677,
-0.030151917,
0.0152878985,
0.0049664476,
0.034475483,
0.06143418,
0.043574747,
0.05617808,
0.014108102,
0.022719909,
0.0038043128,
-0.0012336641,
0.047248363,
0.002997177,
0.036255773,
0.021787373,
-0.0108583635,
-0.031819176,
-0.006382909,
-0.04450728,
0.024740396,
-0.016291078,
0.039759837,
0.042585697,
-0.007749919,
-0.045722403,
0.023426373,
0.03068883,
0.053041376,
-0.02766516,
-0.0054821665,
0.00823738,
0.020120118,
0.025729448,
-0.01243378,
-0.013232086,
0.06493824,
0.014623821,
0.023708958,
0.015951974,
-0.01333099,
-0.01805724,
-0.0509785,
-0.04255744,
-0.036594875,
0.012695172,
0.023723088,
0.01664431,
-0.07211593,
-0.042896543,
-0.015104217,
0.03693398,
0.0046485383,
0.019738626,
0.057930112,
0.0033080215,
0.0011065005,
-0.026789146,
0.016700828,
-0.031338777,
0.03128226,
-0.027792325,
0.044705093,
-0.028159687,
-0.038403425,
0.05253272,
0.010710007,
0.0071211653,
0.028852021,
-0.03509717,
-0.036425326,
-0.023836123,
-0.008428125,
0.033684243,
0.01846699,
-0.016559534,
0.05013074,
-0.0035711795,
-0.01074533,
0.04512897,
0.01945604,
-0.07358537,
0.012271293,
0.012228905,
0.024104578,
-0.04032501,
0.0661251,
0.034955878,
-0.032186534,
-0.020982005,
-0.01465208,
-0.017746396,
-0.020812452,
0.009417175,
-0.0638079,
-0.0023966818,
0.07545044,
0.0006433245,
-0.06318621,
0.033769015,
-0.017958336,
-0.0009104565,
0.0060791294,
-0.019540817,
-0.0112257255,
0.023624182,
0.051232826,
0.0032409073,
0.021222202,
-0.025729448,
0.02669024,
0.0070964387,
-0.009311206,
0.027636902,
0.05538684,
0.010307321,
0.007841759,
0.021236332,
0.0010508663,
0.0077287247,
-0.050808948,
0.00044904667,
0.022564486,
0.016446501,
0.0040409784,
-0.0117414445,
-0.0005082131,
-0.027537998,
0.023751346,
0.031027934,
0.009162848,
0.0027834713,
0.011183337,
0.025983775,
0.010173093,
-0.02486756,
-0.030830123,
0.0076934015,
0.03374076,
0.07115513,
-0.10642186,
0.027990134,
-0.0005082131,
-0.009897572,
0.019159324,
-0.03385379,
0.010936075,
0.034673292,
-0.012214776,
0.03128226,
-0.028046653,
-0.03167788,
0.015005312,
0.03374076,
-0.004556698,
0.026577204,
0.0016036751,
0.013761934,
-0.0010323217,
0.008491707,
0.031027934,
0.01826918,
-0.025927259,
-0.031847432,
-0.027311929,
-0.019710368,
-0.006545396,
0.022112347,
0.04673971,
0.0076439492,
-0.038064323,
0.059230007,
-0.0035906073,
0.005605798,
0.06589904,
0.014369493,
-0.02568706,
-0.032214794,
0.021589564,
0.0037477957,
0.03970332,
-0.0158672,
0.03834691,
-0.010045929,
0.009360658,
0.010575778,
-0.0024055126,
-0.048237417,
-0.025983775,
-0.022451451,
0.029869331,
0.000052653704,
-0.009113396,
-0.013776063,
0.022338416,
0.014524916,
-0.003401628,
-0.01544332,
0.020939616,
-0.00451431,
0.051684964,
-0.030773606,
-0.023581795,
-0.048293933,
-0.01904629,
-0.049904674,
0.049989447,
0.04673971,
-0.017915947,
-0.039618544,
-0.020317927,
-0.0031755592,
-0.0147651145,
0.01884848,
0.00086232857,
-0.000578418,
0.020388573,
0.05956911,
-0.04332042,
0.013062534,
0.02766516,
0.033910308,
-0.024118708,
0.0020204892,
-0.003825507,
-0.003073122,
-0.018198533,
0.0006344937,
-0.021688469,
0.015627,
0.04792657,
-0.01602262,
0.012327811,
-0.008837874,
0.0101660285,
-0.0063369893,
0.045044195,
0.008124345,
-0.029643262,
0.04614628,
-0.0056517185,
-0.015033571,
0.036170997,
0.043433454,
-0.003564115,
-0.015203122,
-0.012836466,
0.029191125,
0.009678568,
-0.0060791294,
-0.03204524,
-0.004327097,
0.044931162,
0.011465924,
0.007636884,
0.0055810716,
-0.044168178,
-0.054680374,
0.009614985,
-0.027057601,
0.018565895,
-0.004426002,
-0.0046591354,
0.0020257877,
-0.04272699,
-0.028004264,
-0.03348643,
0.009932895,
-0.018961515,
0.030914899,
0.017788783,
0.0004808376,
-0.028625954,
-0.020614643,
0.029784555,
-0.03571886,
0.009699762,
-0.021928666,
-0.015768293,
0.035577565,
0.025630543,
-0.03552105,
-0.023369854,
0.0145814335,
0.010632295,
0.029501969,
-0.054030426,
0.00042939812,
-0.008887327,
-0.036255773,
0.045383297,
0.00089809333,
-0.054906443,
-0.0365101,
0.008505836,
0.009367723,
0.040466305,
0.002016957,
-0.03204524,
-0.013839645,
-0.059003938,
-0.019908179,
0.031875692,
-0.0040868986,
-0.049509052,
-0.018142017,
-0.030406244,
0.027919488,
0.011833285,
-0.043829076,
-0.010921946,
-0.03331688,
-0.003357474,
-0.0064500235,
0.021999314,
-0.0074955914,
0.031395294,
0.01743555,
-0.003945606,
0.027537998,
0.009565533,
-0.009784537,
0.018594153,
0.0057082353,
0.00028457286,
-0.044196438,
-0.01788769,
0.035379756,
0.020007083,
-0.02007773,
0.016389983,
-0.06606859,
0.052674014,
-0.047304884,
0.02585661,
-0.025757706,
0.028922668,
-0.04956557,
-0.0537761,
0.042783506,
-0.017619232,
0.006640769,
0.033910308,
0.021829762,
0.00088617177,
-0.0064500235,
-0.030151917,
-0.01083717,
-0.0026898647,
-0.025446862,
0.015471579,
0.0021105635,
-0.022621002,
0.004493116,
-0.00026691123,
0.028611824,
-0.06917703,
0.04710707,
0.052589238,
0.0015003546,
-0.037499152,
-0.032412603,
-0.027764067,
-0.016559534,
-0.01395268,
0.008067828,
-0.0214624,
-0.0018685993,
0.000736048,
-0.039081633,
-0.04916995,
-0.031790916,
0.027594514,
0.084775776,
-0.017364904,
-0.029756296,
0.02868247,
-0.0730202,
-0.0028947394,
0.035436273,
-0.034588516,
-0.0058283345,
0.023186175,
0.0022536227,
0.0067644003,
-0.041116253,
-0.014079844,
-0.0021070312,
-0.00872484,
0.034645032,
-0.031536587,
-0.04631583,
0.038996857,
0.04193575,
0.0032868274,
-0.043603007,
-0.010830105,
0.0059908214,
-0.013627706,
0.008442254,
0.016785603,
-0.02406219,
0.0052419687,
-0.014171683,
-0.0044224695,
-0.023186175,
-0.040211976,
-0.021759115,
0.0050830143,
-0.039646804,
-0.022140607,
0.057280164,
-0.014037455,
0.0085694175,
-0.027721679,
0.011557764,
0.007099971,
-0.0017114109,
0.050526362,
-0.055443358,
0.0048074927,
0.0063758446,
-0.013119051,
0.056714993,
0.0010844235,
0.0020893696,
0.011430601,
-0.04015546,
-0.04716359,
-0.015188993,
0.041822717,
-0.00086851016,
0.022592744,
-0.028103169,
0.049282983,
0.023595924,
0.023624182,
-0.010808911,
-0.05781708,
-0.0064853467,
-0.03249738,
0.005549281,
-0.015188993,
-0.038855564,
-0.019131066,
0.058551803,
0.012002837,
-0.058099665,
-0.022112347,
0.048265673,
-0.03608622,
-0.018339826,
-0.03385379,
0.006301666,
-0.048887365,
0.0027640434,
-0.010568713,
-0.036453582,
0.0050300295,
0.054736894,
-0.0066266395,
-0.019724498,
0.039646804,
0.012454974,
-0.013549995,
-0.014595563,
-0.016997542,
-0.014962925,
-0.017124707,
0.006245149,
-0.03433419,
0.03407986,
0.018382214,
0.01825505,
0.035153687,
0.010886623,
-0.004404808,
-0.0012857659,
-0.038601235,
0.045072455,
0.008696581,
-0.015923716,
-0.02947371,
-0.009410111,
-0.02625223,
-0.011797962,
-0.04032501,
-0.028555308,
0.003761925,
0.032214794,
0.021052651,
0.0445638,
0.025037112,
0.009353594,
0.006990469,
0.064768694,
0.022451451,
0.0036118012,
0.011586023,
0.017407293,
-0.026506558,
-0.04332042,
0.035944927,
0.021038521,
-0.04354649,
0.014390687,
-0.05095024,
0.030914899,
-0.049424276,
-0.039251182,
0.0007095556,
0.048661295,
0.009841055,
-0.025220793,
-0.032186534,
0.014553174,
0.029728038,
-0.026026163,
-0.05151541,
-0.026464172,
0.013458154,
-0.023002494,
-0.027453221,
0.005930772,
-0.003818442,
0.032412603,
0.01626282,
0.003445782,
-0.021787373,
0.031593107,
0.00096873986,
0.025828352,
-0.054878186,
-0.040438045,
-0.0121088065,
0.014433076,
-0.04589195,
-0.015019441,
0.027862972,
0.056432407,
0.015754165,
0.014779244,
-0.038233876,
-0.0035959058,
0.026308749,
0.017845301,
-0.017082319,
0.028809635,
-0.038996857,
0.021292849,
0.02628049,
-0.05120457,
-0.033401657,
0.004655603,
0.039081633,
0.026944567,
-0.02790536,
0.015697647,
0.042020526,
-0.07612865,
0.00446839,
0.03269519,
0.021688469,
0.002933595,
0.021010263,
-0.015485709,
0.035803635,
0.0158672,
0.011063239,
-0.019314747,
-0.017492069,
0.00782763,
-0.01785943,
0.015160735,
-0.003270932,
-0.023567665,
-0.021236332,
-0.0121088065,
-0.005376197,
-0.016587794,
0.023567665,
0.031225743,
0.011345824,
-0.03170614,
-0.019512558,
-0.013097857,
-0.018297438,
0.03588841,
-0.032158278,
-0.076015614,
-0.001700814,
-0.020219022,
0.016983414,
0.01445427,
0.007834694,
-0.009565533,
0.03854472,
0.04792657,
0.05883439,
0.008428125,
0.031367037,
0.039222926,
-0.00082832994,
0.037414376,
0.0075309146,
-0.016630182,
-0.042077042,
-0.018142017,
0.014524916,
0.023595924,
-0.046485383,
-0.018580023,
-0.018820222,
-0.0267185,
-0.05018726,
-0.042698734,
-0.015485709,
-0.07019434,
-0.017944206,
0.06279059,
-0.051006757,
-0.029049832,
0.006128582,
0.010356774,
0.030377986,
0.017096449,
-0.012278358,
-0.009381852,
0.034673292,
0.0119321905,
-0.012271293,
-0.008512901,
-0.03292126,
-0.014277654,
0.009770408,
-0.015669389,
0.05555639,
0.0045849564,
0.00031879224,
-0.038036063,
0.000014570836,
-0.001875664,
0.0186648,
-0.05417172,
0.0020098924,
0.024909949,
-0.008908521,
-0.017520327,
0.056291115,
-0.018890869,
0.015386803,
-0.01787356,
-0.01583894,
-0.012525621,
-0.022296028,
-0.06222542,
0.030999675,
-0.04512897,
-0.035210203,
-0.020148376,
-0.059230007,
-0.013641835,
-0.012582138,
-0.020374445,
-0.01585307,
0.030010624,
0.045044195,
0.04815264,
-0.0015657026,
-0.02226777,
-0.027213024,
0.021547176,
0.04230311,
0.0004976161,
0.06719893,
0.053041376,
0.028965056,
-0.029191125,
0.045242004,
0.018212663,
-0.011232791,
-0.016121527,
-0.032893002,
-0.008555288,
0.001482693,
-0.040438045,
-0.026930438,
0.037414376,
0.03430593,
0.012419651,
-0.04970686,
-0.027255412,
-0.046852745,
0.02889441,
-0.024033932,
0.03088664,
0.020360315,
-0.007912406,
-0.0035976719,
-0.04713533,
0.23556362,
0.053634807,
0.010279063,
0.04317913,
0.008541159,
0.033571206,
0.03888382,
-0.000746645,
0.04495942,
-0.015528096,
0.013705417,
0.017831171,
-0.0016752046,
0.04272699,
0.013592383,
0.005722365,
-0.03131052,
0.027636902,
-0.005810673,
-0.03509717,
0.0136912875,
0.020445092,
0.014009196,
-0.026619593,
0.007841759,
-0.0043341615,
0.041992266,
-0.017322516,
0.06691635,
-0.043800816,
0.008696581,
-0.039844614,
-0.004627344,
-0.022084089,
-0.024005674,
0.032412603,
-0.025107758,
-0.04315087,
-0.0013228554,
-0.013119051,
0.025672931,
-0.036001444,
-0.009509016,
-0.014821631,
0.0031384698,
0.06753803,
0.014079844,
-0.026365265,
0.027396705,
-0.0050794818,
0.03812084,
-0.030377986,
-0.04069237,
0.0059272395,
-0.09184042,
-0.0021193943,
-0.017930076,
-0.05838225,
0.009184042,
0.021349367,
0.021518918,
-0.004906398,
-0.05417172,
0.035238463,
-0.04789831,
0.012207711,
-0.025362086,
0.005100676,
-0.025616413,
-0.01603675,
0.037612185,
0.03190395,
-0.021829762,
-0.024726268,
-0.030406244,
-0.026775016,
-0.011451794,
0.03128226,
-0.016305208,
-0.033599466,
0.003489936,
-0.014609692,
-0.02708586,
0.0050688847,
0.016206302,
0.04795483,
-0.056319375,
0.008103151,
-0.002453199,
0.03992939,
0.002606855,
-0.02485343,
-0.018777834,
-0.036623135,
0.039392475
] | LLM leaderboards
Open LLM Leaderboard, which focuses on the quality of the open-source models;
Open LLM-Perf Leaderboard, which focuses on LLM throughput.
Latency, throughput and memory utilization
Guide on how to optimize LLMs for speed and memory;
Guide on quantization such as bitsandbytes and autogptq, which shows you how to drastically reduce your memory requirements.
Related libraries |
[
0.03452753,
-0.00027715816,
-0.016200053,
0.030128935,
-0.028073383,
-0.02818838,
-0.0046537416,
0.024810374,
-0.015121966,
0.039156117,
-0.0032378542,
0.013619831,
0.013986381,
-0.05042572,
-0.022136718,
0.022553578,
-0.013828261,
-0.055313043,
-0.061292835,
-0.017321263,
0.027383408,
-0.0102562,
-0.073079914,
-0.032170113,
-0.011679275,
0.0338663,
0.008322831,
0.0035145632,
0.023229178,
0.029582703,
0.01265674,
0.020397404,
0.011398972,
-0.028289,
-0.013986381,
-0.027139042,
0.011312725,
-0.014697918,
-0.029956441,
-0.020052416,
0.010809618,
-0.013957632,
0.0030923125,
-0.017910616,
-0.038638633,
-0.025945958,
-0.034987513,
-0.013533584,
0.005613239,
-0.020038042,
0.013476086,
0.013181409,
0.055025555,
0.0023286678,
-0.060372867,
-0.040104833,
-0.024968492,
-0.023315426,
-0.0523519,
-0.014877599,
0.019764926,
0.050310723,
-0.04168603,
-0.06117784,
0.010284949,
0.013813887,
-0.0041865706,
0.023286676,
-0.031077651,
-0.011801458,
-0.051575676,
0.032687593,
-0.025701592,
-0.04188727,
-0.039673597,
-0.017062522,
0.024551632,
-0.026060954,
-0.00868938,
0.05347311,
-0.008531261,
0.04749332,
0.020239284,
0.0046573356,
-0.03366506,
-0.03766117,
0.043180972,
0.0016845107,
0.007733477,
-0.042088512,
0.009638097,
0.014978221,
-0.02374666,
0.0072770864,
0.03734493,
0.054191835,
-0.0026143608,
0.049103264,
-0.024249768,
-0.020569898,
0.035619993,
0.05232315,
-0.023157306,
0.015524452,
-0.01294423,
-0.012311752,
0.031911373,
-0.0032270735,
-0.01740751,
0.023804158,
-0.000469417,
0.001282025,
0.0072519314,
0.004926857,
-0.010356821,
0.028590864,
-0.012261442,
0.008840312,
-0.05183442,
-0.0076903533,
-0.017163143,
-0.025557846,
0.0041901646,
-0.045107156,
0.03334882,
-0.04105355,
0.03458503,
0.047378324,
-0.032371357,
0.0016548634,
0.01625755,
0.006234936,
0.03225636,
0.022999188,
-0.025644094,
0.0052359086,
-0.018039986,
0.038868625,
0.027570276,
-0.015596324,
0.008409078,
-0.00281201,
0.0004209031,
0.10303636,
0.023372924,
-0.016013185,
0.0072806804,
-0.0003276935,
0.012132071,
0.019994918,
-0.07014752,
0.003794866,
-0.0044632796,
0.015438205,
-0.032400105,
0.0027383408,
0.014122939,
0.02304231,
-0.026851552,
0.001835443,
0.018758712,
-0.0037984594,
-0.029668951,
0.055514287,
-0.00001130026,
0.05548554,
-0.03648246,
-0.021619236,
0.013282031,
-0.040277325,
0.02092926,
-0.006091191,
0.013878572,
0.018873708,
0.030818911,
0.039788593,
0.028015886,
0.015308834,
0.018773086,
-0.0005781241,
-0.014963846,
-0.01737876,
-0.0197793,
0.019822424,
0.014122939,
0.0011185152,
-0.008258145,
-0.025356604,
-0.031192647,
0.007992217,
0.016631287,
0.03194012,
-0.032342605,
0.021604862,
0.017982488,
0.0032576192,
-0.032170113,
0.008998432,
0.017105645,
-0.040823556,
-0.010205889,
0.08572947,
-0.0039601726,
0.0054659005,
0.004603431,
-0.023631664,
-0.014187624,
0.029381461,
-0.055600535,
0.017910616,
0.039443605,
0.0035594834,
-0.012908294,
-0.012060199,
0.025011616,
-0.015567575,
-0.017292514,
-0.004459686,
0.007848472,
0.039012372,
-0.023919154,
0.030531421,
0.016458793,
0.0014140906,
-0.020756766,
-0.013698891,
-0.012469872,
0.024149146,
-0.015251336,
0.011959577,
0.022438582,
0.021274248,
0.013188596,
0.06710013,
-0.0069069434,
-0.010931801,
0.06583517,
0.024795998,
0.009904025,
-0.005969008,
-0.040852305,
0.046515856,
0.01808311,
0.039587352,
0.0324576,
0.017062522,
0.013885759,
0.0071333414,
-0.021159252,
0.01952056,
-0.03222761,
0.061235335,
-0.0019154011,
0.011715211,
-0.062385295,
-0.051230688,
0.010435881,
0.025040366,
-0.0064505534,
-0.036137473,
0.02591721,
-0.001406005,
0.032112613,
-0.011959577,
0.044618424,
0.038092405,
-0.020426152,
0.0013449134,
-0.03855239,
-0.016171303,
-0.013095162,
-0.057037983,
-0.07934719,
-0.000314442,
-0.022021722,
-0.027440906,
-0.007956281,
-0.030962655,
-0.0024813968,
-0.052696887,
0.012477059,
0.010213076,
-0.03478627,
0.030473923,
0.036022477,
0.0032899617,
-0.05597427,
-0.014863225,
-0.021590486,
0.020268034,
-0.0067057004,
-0.009882463,
0.0018327477,
-0.016660037,
0.015265711,
0.00040944843,
0.016343797,
0.003974547,
-0.009724344,
0.010162766,
-0.009717156,
0.021274248,
0.023401672,
-0.030330177,
-0.028720235,
0.01821248,
0.04329597,
-0.02518411,
0.04016233,
0.042634744,
-0.011420534,
0.02262545,
-0.034671273,
0.056578,
-0.028792107,
0.03740243,
0.046774596,
0.028792107,
-0.04295098,
-0.04415844,
-0.07043501,
0.00983934,
-0.019419938,
-0.030531421,
-0.011600215,
0.014963846,
-0.003288165,
-0.057612963,
0.008430639,
-0.04755082,
-0.04329597,
-0.0268803,
-0.033636313,
0.058101695,
0.03541875,
0.002927006,
-0.050770704,
-0.006633828,
-0.017278139,
0.011305538,
0.0058683865,
-0.009257173,
0.0325151,
0.058734175,
-0.024839122,
0.041398536,
0.048212048,
-0.014762603,
0.002955755,
-0.0013610848,
-0.0066482024,
0.017996864,
0.03682745,
-0.006443366,
-0.0048549846,
0.027915264,
-0.038034905,
0.020756766,
0.034671273,
-0.0037912722,
0.026564062,
0.028217128,
-0.0057138605,
-0.0035109697,
-0.0247385,
-0.042979732,
-0.015740069,
0.031537637,
0.04154228,
0.007122561,
0.034556277,
-0.01581194,
-0.03898362,
-0.004718427,
-0.036367465,
-0.060660355,
0.02928084,
0.021188,
0.051805668,
-0.013943257,
-0.014237934,
0.010953363,
0.00988965,
0.02207922,
0.031307645,
0.02505474,
0.0032378542,
-0.019664304,
-0.0052934065,
0.000004053354,
0.0017330247,
0.012081761,
-0.014230747,
-0.01409419,
-0.022855442,
-0.08337206,
0.031480137,
0.05637676,
0.0735974,
0.039817344,
0.02390478,
-0.024939744,
0.019851174,
0.03136514,
-0.005519805,
0.022682948,
-0.07428738,
0.045998376,
0.026995296,
-0.007596919,
-0.040306076,
-0.006155876,
-0.0010897662,
0.021259874,
0.018672464,
0.026161576,
-0.04076606,
0.0006257396,
-0.023674788,
-0.0022136718,
-0.059280403,
-0.04829829,
-0.009364981,
0.01581194,
0.06750261,
-0.040881056,
0.005203566,
-0.03682745,
0.009868089,
0.023257928,
0.009580599,
-0.03714369,
-0.029611453,
-0.029870193,
-0.046429608,
0.02361729,
0.025414102,
-0.031020153,
0.014906348,
-0.033003833,
0.017982488,
0.007834098,
-0.015653823,
-0.011053984,
0.03162388,
-0.023056686,
-0.017335637,
0.032083865,
-0.019707428,
-0.06273028,
0.042318504,
-0.03789116,
-0.022697322,
-0.047090836,
0.00052197376,
-0.033262573,
0.005659956,
0.038581137,
0.047090836,
-0.026161576,
-0.015725695,
-0.0075466083,
0.0016638475,
-0.031278893,
-0.034153793,
0.0007232166,
0.02022491,
0.0048765466,
0.03970235,
-0.004804674,
-0.01839935,
0.044503428,
0.012714238,
-0.010701809,
-0.00889781,
-0.026635934,
0.02092926,
0.0006203492,
-0.0010520332,
0.012764549,
-0.034958765,
0.04410094,
0.006184625,
-0.02818838,
0.0029413805,
-0.085211985,
0.009379356,
0.00083192374,
-0.0025496755,
0.05459432,
0.02972645,
-0.016286299,
-0.0022190623,
-0.010895865,
-0.028231502,
-0.040938552,
-0.046860844,
0.012326127,
0.05433558,
0.020153038,
0.039213613,
-0.005077789,
-0.05292688,
0.041398536,
-0.022107968,
0.018097484,
-0.024206644,
-0.019908672,
0.0010421507,
0.026952172,
-0.031825125,
0.023157306,
-0.046832096,
-0.02137487,
-0.016401295,
0.008617508,
0.0031426232,
-0.028835231,
-0.03087641,
0.05836044,
0.009364981,
-0.070665,
-0.015323209,
0.020397404,
0.023732286,
0.001972899,
0.035964977,
-0.021863602,
-0.026808428,
-0.031278893,
0.02194985,
-0.043727204,
-0.003137233,
-0.046314612,
-0.030531421,
0.008164711,
0.02377541,
-0.012908294,
-0.06324776,
-0.028202754,
-0.04499216,
0.0059905695,
-0.016760658,
-0.01865809,
-0.06198281,
0.013425776,
-0.031508885,
0.03929986,
0.006242123,
0.03084766,
0.011506781,
0.0022406238,
0.028303375,
0.0395586,
-0.008948121,
-0.0013979194,
-0.010651498,
-0.0007443292,
-0.010148391,
0.06963004,
-0.013993568,
0.034470033,
-0.01471948,
0.029381461,
-0.04829829,
-0.022036096,
-0.044273436,
0.0040643876,
0.038954873,
-0.030703915,
-0.010766494,
-0.012390812,
0.021532988,
0.03705744,
0.034096293,
-0.031825125,
0.004887327,
-0.051891916,
-0.07428738,
0.04835579,
-0.015495703,
-0.019822424,
-0.020713642,
0.014820101,
0.04272099,
-0.057354223,
0.014963846,
0.07946219,
-0.00066751544,
0.0048082676,
-0.07681728,
0.04720583,
0.011657713,
0.0003103992,
-0.012699864,
-0.013382652,
-0.045653388,
-0.006522426,
-0.03791991,
-0.034038797,
-0.00277248,
0.024839122,
0.03277384,
-0.005041853,
0.043382216,
-0.036367465,
-0.06192531,
-0.04194477,
0.0054479325,
0.03599373,
0.02317168,
0.033578813,
0.037488677,
-0.001926182,
0.0073453654,
-0.008049715,
-0.009975897,
-0.018830584,
0.0593954,
0.008991244,
-0.011902079,
0.012671115,
0.028849605,
-0.059567895,
-0.07233244,
-0.023574166,
-0.00732021,
-0.05491056,
-0.018284354,
0.015021344,
-0.028720235,
-0.046027124,
0.02291294,
0.028461494,
-0.019994918,
-0.020239284,
-0.000015300973,
0.006996784,
-0.06439772,
0.029266465,
0.055916775,
-0.00033532994,
0.011973952,
-0.070607506,
0.0033348822,
-0.012872358,
-0.014482301,
0.06140783,
-0.031508885,
0.019046202,
0.0070219394,
-0.007445987,
0.076759785,
-0.034326285,
0.005997757,
-0.017005024,
-0.032141365,
-0.04887327,
-0.032888837,
0.003374412,
-0.034872517,
0.030732663,
-0.023013562,
0.0032342607,
0.007169278,
0.03906987,
-0.017910616,
-0.0552268,
0.0040140767,
-0.043755952,
-0.009961523,
0.008904998,
-0.0002951263,
-0.000027457525,
0.047838308,
0.026779678,
-0.02716779,
0.0012191366,
0.01231894,
-0.02294169,
-0.03136514,
-0.027829016,
-0.0009442244,
-0.04410094,
-0.01993742,
0.0066697644,
-0.015725695,
0.0014805726,
0.010054957,
0.014705106,
-0.0030060657,
-0.014575735,
0.050511964,
-0.012937043,
0.0033726152,
0.029496457,
0.0023556198,
0.017278139,
-0.027929638,
-0.019750552,
0.018183732,
0.019405564,
-0.053846847,
0.011283976,
0.0012424951,
-0.009415292,
-0.021173626,
0.01584069,
0.052121907,
-0.021532988,
-0.01223988,
-0.010062144,
-0.0052754385,
-0.02291294,
-0.021892352,
-0.03590748,
-0.007819723,
-0.0039206427,
0.014245122,
0.0068674134,
0.02915147,
0.022582326,
0.012857983,
0.008811563,
0.040593565,
0.018758712,
-0.021992972,
0.027268412,
-0.009738718,
0.028130881,
0.00926436,
0.024551632,
0.07273493,
-0.016156929,
0.028562116,
-0.0049340446,
-0.041197293,
-0.04332472,
0.009386543,
0.023631664,
0.036367465,
0.022093594,
-0.040938552,
0.011018048,
0.02009554,
-0.034872517,
0.018586218,
-0.065892674,
-0.024537258,
0.01187333,
-0.015078842,
0.019606806,
-0.045797132,
0.0033223045,
-0.006224155,
0.024436636,
0.036913697,
0.009566224,
0.024551632,
0.015050093,
0.015984435,
-0.04927576,
-0.00591151,
-0.017996864,
-0.0021130503,
-0.042893484,
-0.052725635,
0.046314612,
0.07204495,
0.010284949,
-0.035533745,
-0.049045768,
0.011542717,
-0.016559415,
0.055888023,
-0.05373185,
0.00868938,
-0.036712453,
0.03202637,
-0.038696133,
0.031508885,
-0.0040464196,
0.004926857,
0.011355849,
0.030387675,
0.022237338,
0.01422356,
0.043439716,
-0.0247385,
0.048815776,
0.03222761,
0.011672087,
-0.00632837,
0.023631664,
-0.020871762,
0.0762998,
0.054220583,
0.016616913,
-0.014669169,
0.034470033,
0.021619236,
-0.036396213,
-0.022668574,
0.018313102,
0.03875363,
-0.01471948,
0.021676734,
-0.03145139,
-0.022524828,
-0.0064110234,
0.012096135,
0.004147041,
0.010608375,
0.0032486352,
-0.0247385,
-0.044388432,
0.0035289377,
-0.0063607125,
-0.023502294,
0.015121966,
0.014575735,
0.052984376,
0.03771867,
-0.0010376587,
0.011779896,
0.047924556,
0.030646417,
0.03421129,
0.0032001212,
-0.018715588,
0.019851174,
-0.01594131,
0.027829016,
-0.007348959,
-0.013267656,
-0.015538826,
-0.029956441,
-0.03340632,
0.04527965,
-0.009846527,
-0.01187333,
-0.0030384082,
-0.0078053493,
0.0057426095,
-0.04608462,
0.019851174,
-0.017838744,
0.008502512,
0.036309965,
-0.008236584,
-0.03309008,
0.024839122,
-0.007812536,
0.034470033,
-0.011348661,
0.050195727,
0.023847282,
0.08716692,
0.01075212,
-0.009695595,
0.047838308,
0.008330018,
-0.018916832,
-0.031508885,
0.00367987,
-0.006224155,
0.0044560926,
-0.04136979,
-0.048557032,
0.0049879486,
0.0240629,
-0.0074675484,
-0.030157683,
0.020656144,
-0.0296977,
-0.010083706,
0.009961523,
0.07078,
0.0020429746,
-0.021274248,
-0.011255227,
0.008337205,
-0.04809705,
-0.007762226,
-0.023430422,
0.045337148,
-0.0338663,
-0.0708375,
-0.027354658,
-0.023919154,
-0.007769413,
0.0066877324,
-0.00011915106,
-0.020038042,
0.029553955,
0.050511964,
0.01737876,
0.046487108,
0.0051245065,
-0.040881056,
0.066640146,
0.05232315,
0.014834476,
0.060315367,
0.061062843,
-0.011959577,
0.020598646,
-0.0018390366,
0.014762603,
0.0013332341,
0.0072195884,
-0.020742392,
-0.045164652,
-0.028303375,
-0.044532176,
-0.014582922,
0.0325151,
0.029870193,
-0.003345663,
-0.07371239,
-0.03855239,
-0.065892674,
-0.012268629,
-0.034901265,
0.03912737,
0.019549308,
-0.013052039,
0.01409419,
-0.03449878,
0.24862121,
0.07187246,
-0.000042730422,
0.016271925,
0.0046178056,
0.03510251,
0.04979324,
-0.021806104,
0.025270356,
-0.031336393,
-0.0036205752,
-0.044905912,
0.009329045,
0.037287433,
-0.013202971,
0.04921826,
-0.045222152,
0.00042853953,
-0.008739691,
-0.027369032,
-0.053358115,
0.019276194,
0.040909804,
0.038264897,
0.048758276,
0.025399728,
0.005774952,
-0.038581137,
-0.02246733,
-0.016430045,
0.0338663,
-0.021029882,
0.012707051,
-0.030186433,
-0.023559792,
0.02601783,
0.011916454,
-0.06445522,
-0.004114698,
0.0065332064,
-0.0046932716,
-0.006881788,
0.007169278,
-0.012153633,
-0.02207922,
0.05439308,
-0.0032863682,
0.043784704,
0.076242305,
-0.07319491,
-0.0076041063,
-0.025687218,
0.02633407,
-0.018773086,
-0.03139389,
-0.01779562,
-0.025040366,
-0.018039986,
-0.033751305,
0.019707428,
-0.0071944334,
-0.023559792,
0.025083488,
0.011779896,
-0.014151688,
0.032486353,
0.00587198,
0.03840864,
-0.037948657,
-0.00008664,
-0.020181786,
0.007054282,
-0.012699864,
-0.0276134,
0.048269544,
0.03881113,
-0.0041111046,
0.014496675,
0.017867494,
-0.018011238,
-0.0030725477,
-0.010249013,
-0.014805727,
-0.03501626,
0.026319694,
0.04913201,
-0.007877221,
0.012584868,
0.008883436,
0.028015886,
0.009113428,
0.008775627,
-0.005318562,
0.016329423,
-0.040248577
] |
tokenizer = AutoTokenizer.from_pretrained("HuggingFaceH4/zephyr-7b-alpha")
model = AutoModelForCausalLM.from_pretrained(
"HuggingFaceH4/zephyr-7b-alpha", device_map="auto", load_in_4bit=True
)
set_seed(0)
prompt = """How many helicopters can a human eat in one sitting? Reply as a thug."""
model_inputs = tokenizer([prompt], return_tensors="pt").to("cuda")
input_length = model_inputs.input_ids.shape[1]
generated_ids = model.generate(**model_inputs, max_new_tokens=20)
print(tokenizer.batch_decode(generated_ids[:, input_length:], skip_special_tokens=True)[0])
"I'm not a thug, but i can tell you that a human cannot eat"
Oh no, it did not follow our instruction to reply as a thug! Let's see what happens when we write
a better prompt and use the right template for this model (through tokenizer.apply_chat_template)
set_seed(0)
messages = [
{
"role": "system",
"content": "You are a friendly chatbot who always responds in the style of a thug",
},
{"role": "user", "content": "How many helicopters can a human eat in one sitting?"},
]
model_inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to("cuda")
input_length = model_inputs.shape[1]
generated_ids = model.generate(model_inputs, do_sample=True, max_new_tokens=20)
print(tokenizer.batch_decode(generated_ids[:, input_length:], skip_special_tokens=True)[0])
'None, you thug. How bout you try to focus on more useful questions?'
As we can see, it followed a proper thug style 😎 |
[
0.041671723,
-0.025862245,
-0.025962485,
-0.007410693,
0.014148338,
0.008069421,
-0.025747683,
0.0056958515,
0.008234103,
0.06220686,
0.0207213,
-0.00717441,
0.008183982,
-0.049003653,
-0.027279941,
0.016998053,
-0.0028550858,
-0.01031053,
-0.04868861,
0.012859521,
-0.0007433068,
-0.0004931512,
-0.08666573,
-0.055533655,
-0.000095989955,
0.014119697,
0.028926764,
-0.022038756,
0.040497467,
0.044249356,
-0.011334422,
0.009186395,
-0.02074994,
-0.04840221,
-0.0091505945,
-0.023270292,
0.018014787,
-0.014563623,
-0.040440187,
-0.011434663,
0.036487818,
-0.0190888,
0.034397073,
-0.030015096,
-0.0938831,
0.007328352,
0.020406255,
-0.003916569,
0.0009424468,
0.017427659,
0.02153755,
0.024387266,
0.03812032,
-0.011212701,
-0.05178177,
0.0004296054,
0.0052161254,
0.013983656,
-0.014692504,
-0.023628296,
0.012838041,
-0.015566035,
-0.018014787,
-0.012587438,
0.00032824537,
0.012250913,
-0.010231769,
-0.025847925,
-0.010976418,
-0.007510934,
-0.03416795,
0.011513424,
-0.040354267,
-0.030702464,
-0.01986209,
0.013711572,
0.009043193,
0.041929487,
-0.045480892,
0.057853527,
0.0029964976,
0.028038912,
0.003341972,
-0.0024236904,
-0.041614443,
0.0045287567,
0.0650709,
-0.042731415,
0.01198599,
-0.024888473,
0.00882123,
0.015537395,
0.016110202,
0.017943185,
0.05742392,
0.028497158,
0.017069655,
0.029700052,
-0.043476064,
0.0049762623,
0.027523385,
0.09600248,
-0.02564744,
0.034024745,
-0.020936102,
0.016095882,
0.03897953,
0.0025740522,
-0.04699883,
-0.020334655,
-0.025017355,
0.008857031,
-0.013002723,
0.004228033,
-0.03416795,
0.010088567,
0.012050431,
-0.012701999,
0.016153162,
-0.013339248,
0.003657016,
0.0025275117,
-0.023427814,
-0.037203826,
0.03270729,
-0.04705611,
0.009909565,
0.019618645,
-0.015608996,
-0.03814896,
0.036344618,
-0.0047435593,
0.004160012,
0.066101946,
-0.015007548,
-0.019375203,
0.031618956,
0.034740757,
0.020535138,
0.021967156,
-0.027552025,
-0.0641544,
0.0075538945,
0.080193006,
-0.008298544,
-0.000873531,
0.027594985,
-0.0429319,
-0.02952821,
-0.0037339868,
-0.022525642,
-0.014735465,
0.006605183,
0.01280224,
-0.00476146,
-0.0037304068,
-0.017012373,
0.025446959,
0.017012373,
0.017757023,
-0.0130385235,
-0.017728383,
-0.026062727,
0.013768853,
-0.012737799,
0.04384839,
-0.01280224,
-0.030473342,
0.0070598484,
0.017699743,
0.04310374,
-0.025303757,
0.025260797,
0.019017199,
0.06902327,
0.014978908,
0.06323791,
-0.0066195033,
-0.01600996,
-0.002872986,
-0.001043583,
0.022497002,
-0.007646976,
0.063868,
0.04316102,
0.031561676,
-0.017069655,
0.023442134,
-0.013711572,
-0.0065729623,
0.03265001,
0.052898742,
-0.054617167,
-0.0020280955,
-0.05750984,
0.0076970966,
-0.032850493,
0.0095444,
-0.02484551,
-0.06369616,
-0.0018616234,
0.032821853,
-0.038005758,
-0.017026694,
-0.028869482,
0.037117906,
-0.032879133,
0.054073,
0.003028718,
0.011370223,
0.057338,
-0.019189041,
-0.026377771,
-0.0111411,
0.013618491,
-0.0070670084,
-0.029728692,
-0.0035227642,
-0.03571453,
0.029299088,
0.038721766,
0.013776013,
0.020334655,
0.018916957,
-0.014513502,
-0.013367888,
0.033194177,
0.016453886,
0.021795314,
-0.008341504,
0.010131527,
0.05404436,
-0.049175497,
0.034941237,
-0.005001323,
0.0044285157,
0.043619268,
0.011642306,
-0.00955156,
-0.0045323367,
-0.030043736,
0.012587438,
-0.000959452,
0.037060626,
0.036115494,
-0.017513579,
-0.00637964,
-0.019389523,
-0.004632578,
0.032420885,
-0.084317215,
0.039323214,
0.010081407,
-0.03600093,
-0.03763343,
0.0007795548,
0.0025293017,
0.013289127,
-0.025847925,
0.02778115,
0.003109269,
0.024917113,
-0.0050335433,
0.000030402412,
0.037948474,
0.06340975,
-0.011792668,
-0.012845201,
0.007106389,
-0.016253404,
-0.060259316,
-0.053843874,
-0.061977737,
-0.016554128,
-0.039409135,
0.002550782,
0.021165226,
-0.020549458,
0.023714218,
-0.017155575,
0.00026581832,
0.037031986,
-0.006154097,
-0.023628296,
0.00879975,
0.025661763,
-0.032821853,
0.021107946,
-0.045853216,
0.017757023,
-0.0072173704,
0.030530622,
0.00008329198,
-0.007331932,
0.038922247,
0.01991937,
0.012437076,
-0.031389832,
-0.043705188,
0.0040526106,
-0.0040168106,
-0.015623316,
-0.009816483,
-0.0051302044,
-0.017513579,
0.05739528,
0.00090709387,
-0.042158607,
0.053729314,
0.050807998,
-0.026334811,
0.028425556,
0.011112459,
0.014635224,
-0.025661763,
0.056994315,
0.012687679,
-0.015437153,
-0.0350558,
-0.025103275,
0.015308272,
0.04138532,
-0.011585025,
-0.008477546,
-0.045996416,
0.056994315,
-0.06117581,
-0.04774348,
0.03184808,
0.018831037,
-0.0130886445,
-0.003748307,
0.022110358,
0.017842945,
0.0024988714,
0.06392528,
-0.030731106,
0.03594365,
-0.00012619658,
0.020921782,
-0.000064272994,
-0.033938825,
0.002790645,
0.013339248,
0.020592418,
0.017957505,
0.02073562,
-0.06541458,
0.031934,
-0.03731839,
-0.020248733,
0.007876099,
0.0022106778,
-0.0094226785,
-0.038005758,
0.03511308,
-0.033165537,
0.00714935,
-0.0353422,
0.017098295,
0.051552646,
0.043304224,
-0.003506654,
-0.010661374,
-0.008241263,
-0.0002631333,
-0.005674371,
0.02394334,
0.048201725,
-0.036144134,
0.02559016,
-0.016697329,
-0.043447424,
0.0070276284,
-0.011470464,
-0.021652112,
0.011062339,
0.023327572,
0.018845357,
-0.026735775,
-0.04963374,
-0.0061290367,
-0.0011653046,
0.036888782,
0.031733517,
0.032163125,
0.024974393,
0.03104615,
-0.008298544,
-0.02792435,
0.011692427,
0.011456144,
-0.026377771,
-0.04545225,
-0.04221589,
-0.022468362,
0.045223128,
0.0353422,
0.02233948,
0.022497002,
0.06226414,
-0.023327572,
-0.013826134,
0.0094298385,
-0.02311277,
-0.0222822,
-0.024458867,
0.05839769,
0.002540042,
0.017871585,
-0.013203206,
0.012207953,
0.034568913,
-0.0046719587,
0.011441823,
-0.008090901,
-0.022625884,
0.007425013,
-0.014821386,
0.028124833,
-0.026707135,
-0.038521282,
-0.055247255,
0.025332397,
0.05510405,
-0.049261417,
-0.010546812,
0.0024952914,
-0.0054559885,
0.007568215,
-0.0022178378,
-0.020234413,
-0.030759746,
0.013224686,
-0.046597864,
0.017041015,
0.048287645,
-0.031017508,
-0.006229278,
-0.056192383,
-0.012465716,
0.0040239706,
-0.00951576,
0.027179701,
-0.001115184,
0.011420343,
0.0013129815,
0.0033920927,
-0.009257996,
0.029986456,
0.020936102,
-0.053757954,
0.041671723,
-0.026263209,
0.04072659,
-0.0094226785,
-0.010181648,
0.010403611,
0.021222506,
0.02480255,
-0.01678325,
0.00799066,
0.04845949,
-0.062607825,
-0.003334812,
0.02225356,
0.014470542,
-0.0018437231,
0.045223128,
-0.0019529145,
0.007561055,
0.015737878,
-0.0026134327,
-0.05899914,
0.015079149,
-0.024487507,
0.012923962,
-0.0223538,
0.017871585,
0.02483119,
-0.06753397,
0.029671412,
-0.03250681,
-0.0059428746,
0.047686197,
-0.0674194,
-0.021208186,
0.05352883,
0.013260487,
-0.004500116,
0.0061290367,
-0.020191453,
0.02697922,
-0.0030967388,
-0.03508444,
-0.035485405,
-0.012107712,
0.004399875,
0.047542997,
0.03256409,
-0.032277685,
-0.04937598,
-0.061977737,
0.038320802,
0.0024111602,
0.059457384,
0.014398941,
0.03408203,
0.09067538,
0.010883337,
-0.022468362,
0.032363605,
0.005430928,
-0.02944229,
0.02709378,
-0.047199313,
-0.009479959,
0.0059321346,
-0.03104615,
0.06764853,
-0.030759746,
-0.057910807,
-0.020549458,
0.04132804,
0.012064751,
-0.019346563,
-0.00015629134,
-0.06747669,
-0.039409135,
-0.007854618,
0.06432625,
-0.083228886,
0.027666587,
-0.025275117,
-0.065643705,
-0.010740135,
0.013303447,
-0.0009925674,
-0.026478013,
-0.032363605,
-0.0334233,
-0.004843801,
-0.04396295,
0.01987641,
-0.0052948864,
0.0009710872,
-0.03270729,
0.044392556,
0.0031056888,
0.0050478633,
-0.0008605533,
0.008728149,
-0.00047435594,
0.04124212,
-0.043590628,
-0.0015653747,
0.046053696,
0.0176711,
-0.00013100727,
-0.026148647,
0.011663786,
0.024301345,
-0.01685485,
0.042674135,
-0.032907773,
-0.065586425,
-0.00046003578,
-0.022153318,
0.06799221,
-0.01437746,
0.02315573,
-0.03763343,
0.008119542,
0.008613588,
0.03814896,
0.014892987,
-0.0046075177,
-0.0026689235,
-0.04699883,
0.03024422,
-0.018573273,
0.0005629621,
-0.013410849,
0.01981913,
0.084145375,
-0.044879444,
0.019675927,
0.04224453,
0.028253714,
0.016353644,
-0.026134327,
0.031475756,
-0.0045752972,
-0.006075336,
0.0062113777,
0.03247817,
-0.028840842,
-0.021122266,
-0.004478636,
-0.0059428746,
-0.032764573,
0.03751887,
0.019217681,
-0.029929176,
0.043189663,
0.041012995,
-0.068851426,
-0.005090824,
0.024859833,
0.0062829787,
0.01593836,
-0.0006300879,
0.00955156,
-0.01430586,
-0.0051337844,
0.0016495057,
-0.049175497,
-0.01034633,
0.04390567,
-0.031017508,
-0.018659195,
0.02564744,
0.028339636,
-0.029728692,
-0.037203826,
0.0044464157,
0.018916957,
0.029757334,
-0.002962487,
-0.0012020001,
-0.053127866,
-0.02231084,
-0.012680519,
-0.0065837028,
0.04081251,
-0.020979064,
0.031361192,
0.0045824572,
-0.0271081,
0.0074464935,
0.061576772,
-0.04805852,
-0.015594675,
-0.029728692,
0.0004168515,
-0.018902637,
0.0048831813,
0.059285544,
-0.038492642,
0.009071833,
0.05498949,
-0.037833914,
0.02387174,
-0.03116071,
0.032764573,
0.0025239317,
-0.036344618,
-0.050893918,
-0.05115168,
0.030444702,
-0.02148027,
-0.0190888,
-0.012386955,
0.0028103353,
0.0017193166,
0.024673669,
-0.0037841075,
-0.035657246,
0.008112382,
-0.038521282,
-0.013740213,
0.01595268,
-0.014441901,
-0.01906016,
0.012444236,
-0.009730562,
-0.040039223,
-0.023255972,
0.054502603,
0.0046647987,
0.04233045,
-0.0706844,
0.0031754998,
-0.01980481,
0.018043427,
-0.050378393,
0.018487351,
-0.003120009,
0.0006296404,
-0.009680442,
-0.0053736474,
-0.009179235,
0.05501813,
-0.01201463,
0.013303447,
-0.023556696,
0.029585492,
-0.0014275429,
-0.016382286,
-0.0131029645,
0.04124212,
0.007811658,
-0.015250991,
-0.011470464,
0.019389523,
-0.014527822,
0.018029107,
0.012064751,
0.053815234,
-0.041213475,
0.029642772,
0.0056242505,
0.021866914,
-0.03411067,
0.010983578,
0.009250836,
0.0021695073,
0.018916957,
0.035428125,
0.010861856,
0.03419659,
0.011112459,
0.06484177,
0.012723479,
-0.019532725,
0.0033831424,
-0.03734703,
0.047600277,
0.00477578,
-0.014219939,
-0.008298544,
0.004142112,
-0.015250991,
0.0020996963,
0.038320802,
-0.029313408,
-0.02944229,
-0.017871585,
0.029155886,
-0.034597553,
0.048803173,
0.033738345,
0.002787065,
-0.047686197,
-0.0037948475,
-0.030215578,
0.0059285546,
-0.041070275,
-0.008441746,
0.0028837263,
-0.052812822,
0.018072067,
-0.041843563,
0.019632965,
0.009981166,
0.01676893,
0.012465716,
0.001354152,
-0.034654833,
-0.029700052,
0.0014803485,
-0.019661607,
-0.051638566,
-0.004381975,
0.022482682,
-0.027451783,
-0.01672597,
-0.026964897,
0.05822585,
-0.021895554,
-0.026921937,
-0.028482838,
-0.0076827765,
0.014620903,
0.03591501,
-0.05518997,
0.005817573,
-0.016568448,
0.04969102,
-0.03362378,
0.025103275,
-0.034626193,
0.035456765,
-0.007825978,
0.036230054,
-0.003331232,
0.015709236,
0.0038986688,
-0.0047542998,
0.0009317067,
-0.004553817,
0.020248733,
0.029843254,
0.0061755776,
0.007002568,
0.013582691,
0.057738964,
0.031733517,
0.009716242,
0.004858121,
0.028969724,
-0.047113393,
-0.0496051,
0.019489765,
0.070054315,
-0.007740057,
0.006862946,
-0.017742703,
0.0012046851,
-0.016539808,
0.011090979,
0.006841466,
-0.016210442,
-0.014778425,
-0.012100552,
-0.01762814,
0.0077615376,
-0.019962331,
-0.004847381,
-0.010797416,
0.0011840998,
0.0057817725,
0.006834306,
-0.019461123,
0.011040859,
0.009479959,
0.021809634,
0.0042745736,
0.0026384932,
-0.02483119,
0.019160401,
-0.006991828,
0.006698264,
-0.014628064,
0.018630553,
-0.0072245304,
-0.014721145,
-0.019461123,
0.037833914,
0.01282372,
0.002788855,
-0.012709159,
-0.027408823,
0.009802163,
-0.07354844,
-0.0020066153,
-0.04250229,
-0.0013434119,
0.016468206,
-0.047199313,
-0.032191765,
-0.0048939213,
0.013367888,
0.0038449683,
-0.028368276,
0.06512818,
0.010439411,
0.09961117,
0.029814614,
-0.0045931977,
0.023485094,
0.015551715,
-0.03348058,
0.01598132,
-0.016582768,
0.013568371,
-0.014212778,
-0.044908084,
-0.051409446,
0.026334811,
0.01837279,
-0.040182423,
-0.073720284,
0.0013335667,
0.014155498,
-0.023742858,
-0.015737878,
0.044994004,
0.010074247,
0.032306325,
-0.0008717409,
-0.015236671,
-0.053786594,
-0.014778425,
-0.0160386,
-0.002618803,
-0.008234103,
-0.037060626,
-0.042015407,
-0.018673515,
-0.005398708,
-0.06426897,
0.013375048,
0.003116429,
0.0069667674,
0.027652267,
0.10384994,
-0.0045967777,
-0.030101018,
-0.047199313,
0.015623316,
0.041070275,
0.026234569,
0.04688427,
0.077099845,
0.020134173,
-0.033795625,
-0.025418319,
0.04250229,
0.0068665263,
-0.03582909,
-0.02868332,
0.008950112,
-0.031447116,
-0.04296054,
-0.022024436,
0.037719354,
-0.014807066,
0.021222506,
-0.02236812,
-0.013418009,
-0.050807998,
0.0093868775,
-0.04459304,
0.03247817,
-0.018544633,
-0.026019767,
0.009931045,
-0.04616826,
0.24172463,
0.036659658,
0.030215578,
0.024358626,
0.027466105,
0.050550234,
0.033222817,
-0.024172463,
0.0092794765,
-0.034941237,
0.022912288,
-0.020878822,
0.0072782314,
0.05673655,
-0.030702464,
0.01984777,
-0.07154362,
-0.0064548207,
-0.02478823,
-0.053843874,
-0.01764246,
0.024587749,
0.038464002,
0.038693126,
0.034454353,
-0.009802163,
-0.016110202,
-0.050492954,
0.030186938,
-0.02475959,
-0.0049547823,
0.001119659,
-0.012365475,
-0.020205773,
0.0093224365,
0.0130671635,
-0.013747373,
-0.015064829,
-0.0068736863,
0.07079897,
-0.01681189,
-0.03903681,
0.026807377,
0.021895554,
-0.017184215,
0.0131960455,
-0.026191609,
0.00398459,
0.010417931,
-0.057968087,
0.02229652,
-0.06845046,
-0.027509065,
-0.062035017,
-0.050865278,
0.00065559574,
-0.017255817,
-0.03809168,
0.010811736,
0.04679835,
-0.0048867613,
0.017928865,
-0.023313252,
0.038750406,
-0.03915137,
0.001992295,
-0.06873686,
0.015780838,
-0.02062106,
-0.035542686,
0.008477546,
-0.025719043,
-0.03751887,
-0.018143667,
0.022554282,
0.033996105,
-0.0070383684,
0.041986767,
0.0008712934,
-0.046626505,
0.019590005,
0.001986925,
-0.019232001,
-0.019704567,
-0.0025131914,
0.04127076,
-0.065872826,
0.010611253,
0.07349116,
0.015408513,
0.021981476,
0.06392528,
-0.01515075,
0.007346252,
0.015365553
] | Export to TorchScript
This is the very beginning of our experiments with TorchScript and we are still
exploring its capabilities with variable-input-size models. It is a focus of interest to
us and we will deepen our analysis in upcoming releases, with more code examples, a more
flexible implementation, and benchmarks comparing Python-based codes with compiled
TorchScript.
According to the TorchScript documentation:
TorchScript is a way to create serializable and optimizable models from PyTorch code. |
[
0.0498731,
-0.009345695,
-0.039557565,
-0.0087285265,
-0.0077513433,
-0.0006327815,
-0.025509633,
-0.007861552,
0.020792702,
0.04402469,
0.0102641005,
-0.009389779,
0.03309199,
-0.06389164,
-0.00019286518,
0.04202624,
0.009455904,
-0.012225815,
-0.07247322,
0.015105935,
0.024892464,
0.0066198674,
-0.08763794,
-0.0655962,
-0.028683644,
0.010712283,
0.026288442,
-0.023452405,
0.03661867,
0.04408347,
-0.03394427,
-0.017221943,
0.00048721416,
-0.048815094,
0.004287117,
-0.0057639135,
0.003695664,
-0.022688292,
-0.032416042,
-0.029771036,
0.033003822,
-0.034032438,
0.028977534,
-0.074060224,
-0.064773306,
-0.00044749313,
0.027405223,
-0.019396726,
0.026670499,
0.00495939,
0.016208021,
0.05316466,
0.016751718,
0.016193327,
-0.03109354,
-0.006799875,
-0.009272222,
-0.018250557,
-0.01914692,
-0.013166263,
0.041056402,
0.0057565663,
-0.026494164,
-0.029271424,
0.02143926,
0.03303321,
-0.012034787,
0.0077072596,
-0.011028214,
-0.01152048,
-0.02503941,
0.018470973,
-0.037353393,
-0.02837506,
-0.025935775,
0.011998051,
0.03620722,
0.011101686,
-0.00038228632,
0.043789577,
0.00012501796,
0.053047106,
-0.033885494,
0.0016035362,
-0.03420877,
-0.019764088,
0.0573379,
-0.036295388,
-0.03597211,
-0.02634722,
-0.023849156,
0.010572685,
0.017045608,
0.046728477,
0.0434663,
0.04023351,
-0.0016724166,
0.027287668,
-0.04023351,
-0.025715357,
0.026729276,
0.09968742,
-0.047051754,
0.03561944,
-0.015840659,
-0.011028214,
0.037000723,
-0.014554892,
-0.031034762,
-0.026670499,
0.011447007,
0.004863876,
0.0061459704,
0.030094314,
-0.0061312756,
-0.0057933023,
-0.0046948893,
0.005848407,
0.002771748,
-0.00941182,
0.009125278,
-0.03362099,
-0.006090866,
-0.037000723,
0.050225765,
-0.008794652,
0.018970586,
0.04123274,
-0.018206472,
-0.015723104,
0.011314757,
-0.004687542,
0.009235486,
0.050725378,
-0.014290391,
-0.0012086218,
-0.0053965515,
-0.0055288016,
0.015105935,
0.007824816,
-0.027963614,
-0.040439233,
-0.0022794828,
0.087755494,
0.020733925,
-0.00073380605,
0.02202704,
-0.04264341,
-0.022835236,
0.007196626,
-0.019058753,
-0.024965938,
0.0006015557,
0.032357264,
-0.0061533176,
0.014194877,
-0.014525503,
0.014951643,
0.017471747,
0.01810361,
-0.015958216,
-0.02968287,
-0.02245318,
0.051989105,
-0.009022417,
0.05096049,
-0.019514281,
-0.016149243,
0.00741337,
-0.0004575956,
0.035501886,
-0.0020884543,
0.010535949,
0.016090466,
0.07788079,
0.01757461,
0.052253604,
-0.009735099,
0.014077321,
0.0058226916,
-0.010925353,
0.01359975,
0.010028989,
0.0685351,
0.031299263,
0.015796576,
-0.018500362,
0.012189079,
0.004232013,
0.033297714,
0.033503436,
0.06359775,
-0.061481744,
0.02818403,
-0.05389939,
-0.005069599,
-0.025876995,
0.02863956,
-0.0056573786,
-0.06042374,
-0.0002605976,
0.033797327,
-0.01610516,
0.005201849,
0.00834647,
0.030623317,
-0.014114057,
0.019764088,
0.007259078,
0.0045185555,
0.052547496,
-0.02143926,
-0.014929601,
-0.05213605,
0.024187129,
0.005341447,
0.00022053214,
0.022262152,
-0.01418753,
0.00941182,
0.043525077,
0.025377383,
0.014496114,
-0.020866174,
0.025744746,
-0.00031983474,
-0.008375859,
0.030711483,
0.024804298,
-0.014084668,
0.020689841,
0.039293066,
-0.006002699,
0.031916432,
-0.0055692117,
-0.008280345,
0.036060277,
-0.0036717856,
-0.010895964,
0.00034761653,
0.00890486,
0.008118706,
0.004863876,
0.025010021,
0.01343811,
-0.017530525,
-0.026890915,
0.012144996,
-0.03564883,
0.051166214,
-0.08164258,
0.026993778,
0.018485667,
-0.020704536,
-0.057984456,
-0.006351693,
0.0042467075,
0.0055398224,
-0.007530926,
0.014047932,
0.024598576,
0.011380882,
-0.03717706,
0.0027221541,
0.04258463,
0.07500067,
-0.009242834,
0.0033540172,
0.005436961,
-0.013886292,
-0.053634886,
-0.021130675,
-0.08810816,
-0.014870823,
-0.051959716,
-0.011476397,
0.033914883,
-0.038764063,
0.035354942,
-0.004434062,
0.012732775,
0.032709934,
-0.02042534,
0.01503981,
0.045523528,
0.044524305,
-0.050872322,
0.0650672,
-0.0437308,
0.006179033,
-0.023378933,
-0.0027350117,
0.024201823,
0.009735099,
0.04120335,
0.00994817,
-0.0019323253,
-0.02154212,
-0.014114057,
0.034385104,
-0.018074222,
-0.0067557916,
-0.017457053,
-0.025362689,
-0.0050255153,
0.036177833,
-0.00038159752,
-0.044406746,
0.049197152,
0.052253604,
-0.01983756,
0.0019249781,
0.01122659,
0.02863956,
-0.024510408,
0.069005325,
0.026949694,
-0.007064376,
-0.036383554,
0.0034476945,
-0.016957441,
0.05525128,
-0.026508858,
-0.016869273,
-0.02202704,
0.035002273,
-0.045641083,
-0.035883944,
0.008963639,
-0.005330426,
-0.019822866,
0.015458602,
-0.015017768,
0.037118282,
0.011402924,
0.042143796,
-0.037000723,
0.016413745,
-0.0005542578,
0.023114432,
-0.0027258277,
-0.041526627,
0.050490264,
0.026670499,
0.012894414,
-0.014606322,
0.03018248,
-0.06365653,
0.016883967,
-0.025303911,
0.0034164689,
-0.007979108,
-0.0017477259,
0.017750943,
-0.01368057,
0.06565498,
-0.014966338,
-0.003912408,
0.001994777,
0.043378133,
0.04146785,
0.0088019995,
-0.0051540923,
-0.0020462077,
-0.046728477,
-0.014606322,
-0.017971361,
0.016648857,
0.030050231,
-0.04428919,
0.017618693,
-0.031710707,
-0.031916432,
0.02890406,
-0.0026633763,
-0.020234313,
0.025744746,
0.03197521,
0.011880495,
0.009793878,
-0.05525128,
-0.004768362,
0.00474632,
0.029624091,
0.0199992,
0.0000069705548,
0.011417618,
0.024363464,
-0.036765613,
-0.012747469,
0.004059353,
0.009801225,
-0.0051614395,
-0.052282993,
-0.0498731,
-0.037500337,
0.012975235,
0.043407522,
0.034443885,
0.008897513,
0.0517246,
-0.009668974,
-0.007597051,
0.033444658,
-0.029638786,
-0.04370141,
-0.036383554,
0.031740095,
0.022144595,
-0.018617919,
0.006421492,
-0.0026505184,
-0.014312433,
0.019396726,
-0.011322104,
-0.0183975,
-0.022482568,
0.0047610146,
-0.019911034,
0.00470591,
-0.03162254,
-0.03400305,
-0.047933426,
0.026126802,
0.051371936,
-0.03106415,
-0.009286918,
-0.02733175,
-0.032327875,
0.04722809,
0.00890486,
-0.044788804,
-0.020572286,
0.007655829,
-0.05692645,
0.035560664,
0.04925593,
-0.034091216,
-0.025259828,
-0.0477277,
-0.032092765,
0.011336799,
-0.021791928,
0.010403698,
0.01711908,
0.007677871,
-0.007810121,
0.0033981006,
-0.016928053,
0.031211095,
0.018177083,
-0.056279894,
0.015341047,
-0.01077106,
0.00834647,
-0.024539797,
-0.012637261,
0.009191403,
0.020704536,
0.066654205,
-0.021174759,
-0.0053524678,
0.042173184,
-0.036383554,
-0.058660403,
0.026259053,
0.028610172,
0.019337948,
0.039557565,
0.005646358,
-0.02595047,
0.035002273,
-0.0078027737,
-0.0128282895,
-0.0024080595,
-0.020249007,
0.0075603146,
0.0009909596,
-0.00826565,
0.026920306,
-0.049314708,
0.030917205,
-0.023246683,
-0.0015364926,
0.02968287,
-0.06624276,
-0.036883168,
0.03223971,
0.013511583,
-0.009845308,
0.010109808,
0.0013261776,
0.021424565,
-0.0005914532,
-0.0016384355,
-0.023099737,
-0.034355715,
-0.0076999124,
0.08176014,
0.05810201,
-0.018706085,
-0.044171635,
-0.03970451,
0.018617919,
-0.009551418,
0.039939623,
0.017956667,
-0.0015530238,
0.034620218,
0.002617456,
-0.035766385,
0.013460153,
-0.00478673,
-0.025685968,
0.01498838,
-0.013085443,
0.0011342309,
-0.015296963,
-0.04258463,
0.050842933,
-0.01639905,
-0.053370386,
-0.0029113458,
0.020249007,
0.02556841,
0.023158515,
0.013856904,
-0.052811995,
-0.050137598,
-0.020204922,
0.058307733,
-0.06583131,
0.036412943,
-0.029638786,
-0.066007644,
0.0067484444,
0.046258252,
0.024892464,
-0.064538196,
-0.017192552,
-0.025377383,
0.0080672745,
-0.05989474,
0.020381257,
0.004044658,
-0.008603623,
-0.02994737,
0.052224215,
0.012872373,
0.0027644008,
0.004103436,
0.027596252,
0.007912982,
0.0033999374,
-0.033826716,
-0.013636487,
0.044347968,
0.012402149,
0.00028883855,
0.0059549417,
-0.006840285,
0.033474047,
0.001245358,
0.010403698,
-0.028551392,
-0.041350294,
-0.010638811,
0.0075750095,
0.041144572,
-0.010726977,
0.030858427,
-0.03256299,
0.029286118,
-0.01431978,
0.038793452,
0.012482969,
-0.0067741596,
-0.026655804,
-0.06095274,
0.03027065,
-0.03303321,
-0.0062488317,
-0.026964389,
0.009250181,
0.07088622,
-0.0320046,
0.026332526,
0.05151888,
0.035736997,
0.023187904,
-0.024392853,
0.04108579,
0.00014350087,
-0.0076631764,
-0.040351067,
0.042937297,
-0.027008472,
0.018133,
0.007883593,
-0.014716531,
-0.00023258622,
0.017471747,
0.01498838,
-0.02343771,
0.028286893,
-0.013085443,
-0.06195197,
-0.022688292,
0.03764728,
0.01322504,
0.028301587,
-0.0050438833,
-0.0016568037,
-0.034061827,
0.015076546,
0.013548319,
-0.028433837,
-0.026464775,
0.046434585,
-0.01911753,
-0.02634722,
-0.0030784956,
0.008302387,
-0.018779557,
-0.057102785,
-0.0122405095,
0.048785705,
-0.03597211,
0.009727752,
-0.03221032,
-0.011579257,
-0.01503981,
0.008912208,
0.05266505,
0.02434877,
-0.026729276,
0.051812768,
-0.020190228,
-0.04887387,
-0.0033723854,
0.03858773,
-0.041262127,
-0.025068799,
-0.027184805,
-0.014951643,
-0.03165193,
-0.028683644,
0.0631863,
-0.015693715,
0.0030123703,
0.055986006,
-0.022497263,
0.043554466,
-0.009698363,
0.017368887,
0.024069574,
-0.02474552,
-0.06424431,
-0.041908685,
-0.002518268,
-0.02013145,
0.009764488,
-0.033268325,
0.010102461,
0.02736114,
0.019132225,
-0.03365038,
-0.06218708,
-0.024760215,
-0.03482594,
-0.019176308,
0.03944001,
-0.035795778,
-0.013144221,
0.00081829936,
0.01885303,
-0.05936574,
-0.0069394726,
0.03685378,
-0.015855353,
0.015870048,
-0.062304635,
0.00015808057,
-0.027684418,
-0.0025458203,
-0.03194582,
0.013489542,
-0.008897513,
0.0015190429,
-0.025347995,
-0.01682519,
0.032357264,
0.035501886,
-0.013430763,
-0.0045001875,
-0.023819767,
0.01482674,
-0.010300837,
0.016648857,
-0.01842689,
0.016869273,
0.005778608,
0.010389004,
0.047022365,
0.005264301,
0.015487992,
-0.0022207047,
0.014466725,
0.07029844,
-0.045141473,
0.025318606,
0.01448142,
0.048462424,
-0.053928778,
0.024686743,
0.010175934,
-0.004863876,
-0.012953192,
0.019264476,
-0.013937723,
0.022894014,
-0.0067300764,
0.04546475,
0.012982582,
0.022511957,
0.0053524678,
-0.004584681,
0.051665824,
0.0024356116,
-0.018794252,
-0.02789014,
0.0070570284,
0.0030564538,
-0.013460153,
0.04828609,
-0.023937324,
-0.023378933,
-0.005429614,
0.0032125828,
0.02143926,
0.06306875,
0.04408347,
-0.0056353365,
-0.03482594,
-0.024598576,
-0.008647707,
-0.005943921,
-0.06594887,
-0.017956667,
0.010535949,
-0.06794732,
0.03027065,
-0.02333485,
0.020102061,
-0.011726202,
-0.0022298887,
0.010124504,
-0.008919555,
-0.05613295,
-0.008882819,
0.0127915535,
-0.04120335,
-0.02376099,
0.0056243157,
0.02592108,
-0.02314382,
-0.016707635,
-0.009184056,
0.07529456,
-0.03944001,
-0.04893265,
-0.02605333,
-0.027434612,
-0.006098213,
0.05290016,
-0.018456278,
-0.006010046,
-0.018118305,
0.046522755,
-0.04232013,
0.044730026,
-0.050431486,
0.024231212,
0.0022096839,
0.019911034,
0.022056429,
0.01941142,
0.027008472,
0.004716931,
0.025539022,
0.011219243,
0.017133774,
0.009896738,
-0.0007250812,
-0.002744196,
0.023496488,
0.041350294,
0.022820542,
-0.014165488,
0.025671273,
0.03079965,
-0.03741217,
-0.03079965,
0.009852655,
0.022673598,
-0.00038550075,
0.017192552,
-0.025597801,
-0.022658903,
-0.0027129701,
-0.0059586153,
0.032709934,
-0.009132626,
-0.0102273645,
-0.0040667,
-0.021850705,
0.0020902911,
-0.018573835,
-0.02085148,
0.0041401726,
-0.019029364,
0.002909509,
0.00056436023,
0.0137760835,
0.0050659254,
0.05469289,
0.005176134,
0.0082142195,
-0.014459377,
-0.01659008,
0.03456144,
-0.029286118,
0.03362099,
0.015649632,
-0.001945183,
-0.032886267,
-0.020969037,
-0.021982957,
0.044759415,
-0.0065647634,
0.007354592,
-0.0017532363,
-0.025553716,
-0.014812046,
-0.10580032,
0.01029349,
-0.059453905,
0.0036754592,
0.0035046358,
-0.021115981,
-0.05754362,
0.02114537,
-0.009514682,
0.012233162,
-0.015781881,
0.06095274,
0.008662402,
0.07206178,
0.031504985,
-0.007295814,
0.021174759,
0.0099996,
-0.0437308,
0.018412195,
0.022085818,
0.008978333,
-0.016604774,
-0.01711908,
-0.07206178,
0.017368887,
0.024436936,
-0.023966713,
-0.06071763,
0.015399825,
0.006079845,
-0.036736224,
-0.0024668374,
0.07035722,
0.029183256,
0.04226135,
-0.001148007,
-0.01554677,
-0.053047106,
-0.013291165,
-0.011461702,
0.022100512,
-0.027464,
-0.044406746,
-0.007655829,
-0.016619468,
-0.015576159,
-0.052988328,
0.0016200675,
-0.016883967,
-0.0029242034,
0.020454729,
0.079702914,
0.007854205,
-0.013460153,
-0.04140907,
0.009977559,
0.046375807,
0.026259053,
0.047992203,
0.06947555,
0.028448531,
-0.035560664,
-0.02402549,
-0.0022978508,
0.025347995,
-0.02794892,
-0.009727752,
-0.0058777956,
-0.031681318,
-0.04928532,
-0.036530502,
0.027522778,
-0.0041107833,
-0.0020994751,
-0.015576159,
-0.030946596,
-0.055221893,
-0.016972136,
-0.037764836,
0.0057712607,
-0.0019929402,
-0.024304686,
-0.003956491,
-0.042790353,
0.25744745,
0.036648057,
0.034149993,
0.010087767,
0.029095089,
0.05871918,
0.011682119,
-0.02071923,
-0.0057712607,
-0.02091026,
0.0031574785,
-0.03744156,
0.002850731,
0.039293066,
-0.025583107,
0.032092765,
-0.053634886,
-0.009830614,
-0.033238936,
-0.053340998,
-0.011615993,
0.04525903,
0.030358816,
0.05037271,
0.058807347,
-0.02386385,
0.008566887,
-0.04199685,
0.0033246283,
-0.042114407,
0.00076640944,
-0.029962065,
-0.0007742159,
-0.031857654,
0.002927877,
0.012394802,
-0.01554677,
-0.028551392,
-0.003414632,
0.036383554,
-0.005165113,
-0.035707608,
0.02392263,
0.0057455455,
-0.013401374,
0.021850705,
-0.019661227,
0.010682894,
0.036442332,
-0.056867674,
0.028654255,
-0.061481744,
0.020204922,
-0.057396676,
-0.050813545,
0.0053047105,
-0.041879296,
-0.055427615,
-0.016281495,
-0.0034789203,
-0.004581007,
0.017853804,
-0.014055279,
0.06018863,
-0.027081944,
-0.009771835,
-0.067183204,
0.037823617,
-0.008610971,
-0.007049681,
0.0038352618,
0.012571136,
-0.025112882,
-0.04661092,
0.0014143446,
0.045964364,
0.026361914,
0.0399984,
-0.028566087,
-0.0434663,
-0.0033742222,
-0.0010662689,
0.0072554043,
-0.016663551,
0.004096089,
0.054281443,
-0.05410511,
-0.012762164,
0.037294615,
0.015561464,
0.016898664,
0.051195603,
0.00011216028,
0.024554491,
0.011175159
] | There are two PyTorch modules, JIT and
TRACE, that allow developers to export their
models to be reused in other programs like efficiency-oriented C++ programs.
We provide an interface that allows you to export 🤗 Transformers models to TorchScript
so they can be reused in a different environment than PyTorch-based Python programs.
Here, we explain how to export and use our models using TorchScript.
Exporting a model requires two things: |
[
0.033990882,
0.011611838,
0.001264192,
0.03501913,
-0.029936654,
-0.05523151,
-0.0030627048,
0.03305077,
0.027307281,
0.0294666,
-0.024619153,
0.02790954,
0.039690305,
-0.041394256,
0.0010007039,
0.008549132,
0.017832728,
-0.022988647,
-0.057669923,
0.000113210364,
0.00793953,
0.023811245,
-0.041658662,
-0.04571289,
-0.017436119,
-0.0006954433,
-0.007792637,
-0.016466629,
0.07368118,
0.03419653,
-0.029216882,
-0.027410107,
0.0033473086,
-0.048386328,
-0.033168286,
-0.0074768187,
0.006808459,
-0.019551367,
-0.036987484,
-0.05026655,
0.0054203263,
-0.043538883,
0.06933317,
-0.055143375,
-0.0500609,
-0.015981885,
-0.014725954,
-0.011824831,
-0.00043815223,
-0.03313891,
-0.0009612266,
0.02617621,
0.02887903,
-0.026132142,
-0.0008395814,
-0.026058696,
-0.034519695,
-0.0059087435,
-0.034666587,
0.024986383,
0.012493191,
0.043832667,
-0.016305048,
-0.023634974,
0.03346207,
0.037604433,
-0.016158154,
0.006907611,
-0.011369465,
-0.037956975,
-0.048386328,
0.027630445,
-0.020491479,
-0.012383022,
0.0026312086,
-0.034372803,
0.018625945,
-0.03769257,
-0.02312085,
0.040277872,
0.020138936,
0.06216483,
-0.0204621,
-0.02790954,
-0.014770023,
-0.05863941,
-0.0056553544,
-0.003683325,
0.018273404,
0.002456774,
0.016598832,
0.084786244,
-0.0017388378,
-0.0049392544,
0.040072225,
0.013910702,
0.007902807,
0.056230377,
-0.01681917,
0.010767207,
0.01797962,
0.07397497,
-0.03402026,
-0.004619763,
-0.02716039,
0.00039178936,
0.019918598,
0.010708449,
-0.008710714,
-0.02884965,
-0.011406189,
0.0019426509,
-0.020506168,
-0.037575055,
-0.019066622,
0.047387462,
0.014946293,
-0.015085841,
-0.041952446,
0.0030241455,
0.015937816,
-0.010972856,
-0.028937787,
-0.04756373,
0.03501913,
-0.025500506,
0.017906174,
0.047681246,
-0.0589332,
0.008901674,
-0.02732197,
-0.0045059216,
0.036634944,
0.024398813,
0.0037310647,
0.020300519,
0.0010089666,
0.029760383,
-0.011986413,
-0.050031524,
0.013234998,
-0.016143465,
-0.022092605,
0.094539896,
0.00014643327,
0.025955873,
-0.009430487,
0.012309576,
-0.056935463,
-0.00035483675,
-0.029804451,
0.016187534,
0.0011365793,
0.03725189,
0.046182945,
-0.03731065,
-0.019272272,
0.005152248,
0.035107262,
-0.018802216,
0.020550234,
0.03763381,
-0.046124186,
0.051206663,
-0.028203325,
-0.009357041,
-0.03769257,
-0.01137681,
0.014454204,
-0.049062032,
0.003940386,
0.0016883436,
0.032815743,
0.031199928,
0.05637727,
0.04342137,
0.048298195,
0.013675675,
0.013734432,
-0.005056768,
-0.009614103,
-0.016496006,
-0.0024861523,
0.031611226,
-0.0023906725,
0.03211066,
0.034167152,
-0.0043920805,
0.003830217,
0.017303916,
0.005640665,
0.052646205,
-0.04068917,
0.0019977356,
0.016334426,
0.04568351,
-0.025838358,
0.025764912,
-0.013352511,
-0.0409242,
-0.027924228,
0.046741135,
-0.019918598,
-0.012588671,
0.03313891,
-0.012581327,
-0.008446308,
0.026352482,
-0.06369251,
0.011002234,
0.07744163,
0.024868868,
-0.036605567,
-0.007961564,
0.050178416,
0.018875662,
-0.025603332,
-0.0082920715,
-0.0068782326,
0.024442881,
-0.011391499,
0.019051934,
0.038544543,
-0.01481409,
-0.029202193,
-0.019007865,
0.0073519605,
0.047916275,
-0.03957279,
0.015585274,
0.009716927,
0.022709552,
0.021754753,
0.026293725,
0.009731616,
0.035606697,
0.04774,
0.031699363,
0.024207855,
-0.0029892586,
-0.0121994065,
0.033579584,
0.008629924,
0.0362824,
0.03769257,
0.016525386,
-0.03845641,
-0.0067056343,
-0.019654192,
-0.03346207,
-0.07438627,
0.0703908,
0.021872265,
0.01624629,
-0.03020106,
-0.008196591,
0.0022364354,
0.05596597,
-0.021710685,
0.0044251313,
0.038603302,
0.017627077,
-0.0034593141,
-0.0055598742,
0.0012458304,
0.0653377,
0.0022823394,
0.005423999,
-0.0016552928,
-0.05258745,
-0.0068745604,
-0.06351624,
-0.052117392,
-0.002014261,
0.020241762,
0.018684702,
0.009944609,
-0.07579643,
-0.021505035,
-0.040101603,
-0.017656457,
0.0025302202,
-0.012662117,
0.034137774,
0.02542706,
-0.003244484,
-0.040042844,
-0.00011734171,
-0.020697128,
0.029892586,
0.0010126389,
0.026881294,
0.007924841,
-0.024604462,
0.058022466,
0.015218044,
0.023429325,
0.013359856,
-0.023106162,
-0.0324632,
-0.04779876,
-0.007836705,
0.026675645,
0.005379931,
-0.05126542,
0.056729812,
0.03457845,
-0.0324632,
0.0162316,
0.047446217,
-0.021167183,
0.0010814947,
-0.0077265357,
0.03974906,
-0.029598802,
0.052646205,
0.0019738656,
-0.013007315,
-0.028776204,
0.02410503,
-0.03308015,
-0.009885853,
0.01204517,
-0.014277933,
-0.018390918,
0.06381002,
0.010223705,
-0.07285859,
0.042833798,
-0.037516296,
-0.03692873,
0.0034023933,
-0.012375678,
-0.011479635,
0.021651927,
0.038133245,
-0.032375067,
-0.033373933,
-0.017964931,
0.018449675,
-0.013829912,
0.0017002786,
0.00870337,
0.0500609,
-0.035782967,
-0.01624629,
0.030582981,
-0.021886956,
0.00037664108,
-0.032228176,
-0.012434434,
0.010635003,
0.024428193,
-0.009276249,
-0.004175414,
0.06757046,
-0.032375067,
0.015732167,
0.021754753,
0.010451389,
0.0046234354,
0.022254186,
0.009996022,
-0.030700494,
-0.036076754,
-0.018787527,
-0.016290357,
0.036869973,
0.04395018,
-0.062047314,
0.061283473,
0.004542645,
-0.048298195,
-0.007241791,
-0.033197664,
-0.022709552,
0.020741194,
-0.0011705481,
0.046711758,
-0.015291491,
-0.027468864,
0.00956269,
-0.011810143,
-0.0019316339,
-0.0013082597,
0.021681305,
0.0068047866,
-0.010958167,
0.0017737247,
0.025324235,
0.029877897,
-0.02601463,
0.012258164,
-0.044243965,
-0.039602168,
-0.039102733,
0.02006549,
0.0864902,
0.014439515,
0.021123115,
0.036958106,
0.018434986,
0.029319705,
0.040013466,
-0.032992013,
0.010884721,
-0.043450747,
0.021079047,
0.04774,
0.020183004,
-0.0146378195,
-0.014233866,
-0.031111792,
0.0037273925,
0.013139518,
0.011420878,
-0.040101603,
0.0039220247,
-0.009570034,
0.013646296,
-0.019933287,
-0.04568351,
-0.0047299326,
0.06269364,
0.01931634,
0.014167764,
0.014329346,
-0.04110047,
-0.019301651,
0.028599935,
-0.039602168,
-0.021284698,
-0.033961505,
-0.038603302,
-0.029877897,
0.005423999,
0.056171622,
-0.0039881263,
-0.031405576,
-0.03590048,
0.001669982,
-0.008813539,
-0.0054423604,
0.027263215,
0.018214647,
-0.017612388,
0.012368333,
-0.009386419,
0.014057594,
-0.032756988,
0.033432692,
-0.031434957,
-0.02924626,
-0.018802216,
0.003933042,
-0.019639503,
-0.02429599,
-0.010789241,
0.007631056,
0.003268354,
-0.018772839,
0.02563271,
0.008710714,
-0.0048584635,
0.001131989,
0.06310494,
-0.016877927,
-0.010928788,
0.03078863,
0.022298254,
-0.03249258,
0.023267742,
-0.0016589651,
0.0006096031,
-0.011744041,
-0.008725404,
0.023223676,
-0.004028522,
-0.026058696,
-0.0039146803,
-0.01233161,
0.054203264,
0.004307617,
-0.0075429203,
-0.020285828,
-0.021079047,
-0.018053066,
0.0038008387,
-0.032198794,
0.010590936,
-0.001001622,
-0.022077914,
0.0024971694,
-0.055172753,
-0.032081284,
-0.050207794,
0.01607002,
-0.00491722,
0.05508462,
-0.0040836064,
0.036253024,
-0.021681305,
-0.024942316,
-0.009915232,
-0.047475595,
-0.007216085,
-0.018302783,
0.012669463,
0.0047152434,
0.031258684,
-0.037986353,
0.0055304957,
-0.006558742,
-0.013212964,
0.040836062,
-0.044420235,
0.027659824,
-0.020667749,
-0.038368274,
0.03769257,
0.04497843,
-0.043685775,
-0.00937173,
0.016672278,
-0.0057067666,
0.044655263,
0.018214647,
-0.00563332,
-0.0076898127,
-0.066865385,
0.019610124,
0.008424275,
0.01605533,
-0.01740674,
-0.015746856,
-0.008108456,
0.0050127003,
0.009496588,
-0.04950271,
-0.03713438,
-0.015702788,
0.03684059,
-0.012471158,
0.023532148,
-0.041247364,
0.006977385,
-0.03537167,
0.018890351,
0.030818008,
0.012772287,
0.018008998,
-0.01346268,
0.007910151,
0.0009795881,
-0.03786884,
-0.017744591,
0.017553631,
0.012302231,
-0.03501913,
0.031787496,
-0.000024085175,
0.04245188,
-0.054262023,
0.0072344467,
-0.022136671,
-0.013536127,
-0.038368274,
-0.0071610003,
0.05014904,
-0.050560337,
0.007105916,
0.005067785,
0.009342351,
-0.004733605,
-0.009599413,
-0.044802155,
-0.015129909,
-0.048709493,
-0.0281005,
0.021842888,
-0.0059528113,
-0.034314044,
0.0011558589,
-0.011795453,
0.051852986,
-0.051206663,
0.06257613,
0.080203205,
-0.012662117,
0.012434434,
-0.07003826,
0.021681305,
0.0026091747,
0.021314075,
0.0048878416,
0.03099428,
-0.02887903,
0.011501668,
-0.026484685,
-0.0013789516,
-0.0014514797,
0.026425928,
0.072094746,
-0.026073387,
-0.019037245,
-0.009188115,
-0.061459746,
-0.009004499,
0.0362824,
-0.035636075,
0.01817058,
-0.009841785,
0.011207884,
0.020697128,
-0.007190379,
-0.024589773,
-0.0001227928,
-0.03534229,
0.02636717,
-0.005868348,
-0.04068917,
-0.0127208745,
0.038720816,
-0.03172874,
-0.026117453,
-0.024942316,
0.012816355,
-0.038280137,
-0.00711326,
-0.009210148,
0.0204621,
-0.008380206,
0.009430487,
-0.015746856,
-0.022782998,
-0.017920863,
0.010972856,
-0.01893442,
-0.071213394,
0.01548245,
0.064750135,
-0.006870888,
0.002814824,
-0.037016865,
0.015335558,
-0.027953608,
0.0110095795,
0.03939652,
-0.035782967,
-0.019419163,
0.031493712,
-0.00019841938,
0.062399857,
0.008585856,
0.00009743092,
0.03422591,
-0.065513976,
-0.041981824,
-0.021314075,
0.020036113,
-0.000244438,
0.026675645,
-0.0046417974,
0.02981914,
0.039543413,
0.029540045,
0.008769471,
-0.06422132,
0.00014758087,
-0.031199928,
-0.008585856,
-0.0019114363,
-0.014476238,
-0.00010466077,
-0.019360408,
0.014410136,
-0.059990823,
0.010172293,
0.014020871,
-0.011611838,
-0.024354747,
-0.03266885,
0.008857607,
-0.062987424,
0.011935,
0.0055268235,
0.001669982,
-0.0045059216,
-0.011780764,
-0.015717478,
-0.0061694775,
0.010341219,
0.03158185,
-0.0030829024,
-0.016775103,
-0.011714662,
-0.024398813,
0.01223613,
-0.017671145,
-0.025941184,
0.012750253,
0.01032653,
0.0014257736,
0.027131012,
0.015908439,
-0.032727607,
-0.023385257,
0.005368914,
0.08337608,
0.014277933,
-0.01758301,
-0.00965817,
0.025118586,
-0.034490317,
0.021607859,
-0.007623711,
0.035606697,
-0.020829331,
0.025338925,
-0.0022162378,
0.052293666,
0.06821679,
0.02276831,
0.009489244,
0.053468805,
0.025588641,
0.0058499863,
0.0075576096,
0.014850813,
-0.023444014,
-0.06651284,
0.04459651,
0.013528782,
-0.03825076,
0.02315023,
-0.022988647,
0.02485418,
-0.04756373,
-0.022827066,
0.0076751234,
0.037604433,
0.008475686,
-0.017215779,
-0.028335528,
-0.0065917927,
-0.004403097,
0.0052771065,
-0.0822597,
-0.017700525,
0.03651743,
-0.022004468,
-0.006437556,
-0.026660955,
0.018831596,
8.140761e-7,
0.0061694775,
0.032404445,
-0.06057839,
0.050589714,
-0.04606543,
0.014285278,
-0.08496252,
-0.0043737185,
0.019727638,
0.020050801,
-0.0045830403,
-0.06304618,
0.071213394,
0.06469138,
0.002812988,
-0.009922576,
-0.026029319,
-0.025603332,
-0.026705023,
0.02904061,
-0.030906143,
0.012272853,
-0.03807449,
-0.031493712,
0.015967194,
0.013007315,
-0.028644001,
0.00983444,
0.04286318,
0.009900542,
-0.0045903847,
0.026234968,
0.025206722,
-0.0324632,
0.053615697,
0.024692599,
0.03166998,
-0.020388654,
0.006488968,
-0.008167213,
0.03305077,
0.05023717,
0.0056957495,
-0.018552499,
-0.0059013986,
0.023018027,
-0.025706155,
0.012831043,
0.03228693,
-0.009885853,
-0.016099397,
-0.013132173,
-0.033491448,
0.015453071,
0.0067093065,
0.023664352,
0.008079077,
-0.032051902,
-0.03557732,
-0.022210117,
-0.019389786,
0.019947976,
-0.00741439,
-0.029951343,
-0.0016764086,
-0.027968297,
0.018581878,
0.021960402,
0.01681917,
-0.018023686,
0.03551856,
0.032169417,
0.051441688,
-0.0073005483,
0.007407045,
0.045448482,
0.008483031,
0.034490317,
-0.021049669,
-0.029598802,
-0.05370383,
-0.010253084,
-0.004186431,
0.03269823,
-0.034666587,
-0.010480767,
-0.017347982,
-0.023928758,
0.0011788108,
-0.043480124,
0.0073886835,
-0.02370842,
-0.012669463,
0.050384063,
-0.033315178,
-0.023370568,
0.027424796,
-0.017538942,
0.02027114,
0.029613491,
0.042128716,
-0.012838389,
0.0806145,
0.025103897,
-0.004957616,
0.010980201,
0.015056462,
-0.03166998,
-0.013499404,
0.036488052,
0.015937816,
-0.012258164,
-0.022547971,
-0.056171622,
-0.008071733,
0.009731616,
0.0043443404,
-0.02636717,
-0.016158154,
0.010392631,
-0.023179607,
-0.012023136,
0.053645074,
-0.01223613,
0.024604462,
-0.004355357,
0.0011200539,
-0.012691496,
-0.016657589,
-0.035547942,
0.0519705,
-0.021137804,
-0.020741194,
0.0037971663,
-0.041776177,
-0.03308015,
-0.038338896,
-0.0056553544,
-0.012397711,
0.018758148,
0.020403342,
0.038750194,
-0.0074290787,
-0.02773327,
-0.03340331,
0.008931053,
0.035606697,
0.0007289531,
0.066630356,
0.04068917,
0.010767207,
-0.0055158064,
-0.016921995,
0.0005081556,
-0.018199958,
0.027571687,
-0.0049796496,
-0.031199928,
0.0013514094,
-0.066865385,
-0.010480767,
0.058198735,
0.021108426,
0.013807878,
-0.015996573,
-0.019551367,
-0.07244729,
-0.007072865,
-0.055172753,
0.042745665,
0.038897086,
-0.022694863,
0.022298254,
-0.017994309,
0.25900054,
0.050912876,
0.044067696,
0.042275608,
0.02009487,
0.04709368,
0.05296937,
0.0039293696,
0.054173887,
-0.06369251,
0.0073005483,
-0.0042268266,
0.0007716437,
0.0691569,
-0.0062429234,
0.035606697,
-0.06381002,
0.003743918,
0.01252257,
-0.027586376,
-0.034519695,
0.003947731,
0.002074854,
0.03190501,
0.028776204,
-0.0096508255,
0.0059528113,
-0.03631178,
0.03498975,
-0.04929706,
-0.014373413,
-0.08602014,
-0.017538942,
-0.033961505,
-0.049737737,
0.047857516,
0.0118835885,
-0.056289136,
-0.012397711,
0.020124247,
-0.008953087,
-0.017318605,
-0.009386419,
-0.004961288,
-0.01701013,
0.057669923,
0.011766074,
0.021490347,
0.061224718,
-0.024237232,
0.0019279617,
-0.037956975,
0.017920863,
-0.009173425,
-0.057229247,
-0.022033848,
0.031111792,
-0.05596597,
-0.037428163,
0.04641797,
0.009716927,
0.007711847,
-0.0027982986,
0.03728127,
-0.059226982,
0.032962635,
-0.012515225,
0.0023759832,
-0.039719682,
-0.02904061,
0.0261909,
0.025089208,
0.0044067693,
-0.04606543,
0.0060629803,
-0.0029011231,
-0.005820608,
0.009768339,
0.01586437,
-0.04497843,
0.018038377,
-0.023987515,
-0.04606543,
-0.020315208,
0.024222543,
0.05009028,
-0.05182361,
0.003494201,
0.015379625,
0.051118527,
-0.02354684,
0.028306149,
-0.012507881,
0.021931022,
0.0124785025
] | Guide on how to control different generation methods, how to set up the generation configuration file, and how to stream the output;
Guide on the prompt template for chat LLMs;
Guide on to get the most of prompt design;
API reference on [~generation.GenerationConfig], [~generation.GenerationMixin.generate], and generate-related classes. Most of the classes, including the logits processors, have usage examples!
LLM leaderboards |
[
0.05422032,
0.020921662,
-0.01284539,
0.03468965,
-0.020396492,
-0.011007292,
0.014222188,
0.0061494643,
-0.008140145,
0.01002792,
-0.0038252294,
-0.03278768,
0.0077994936,
-0.028259857,
-0.016337065,
0.023405578,
0.0053333207,
-0.016351258,
-0.04806021,
-0.002308267,
-0.01616674,
0.0009296939,
-0.07443229,
-0.005120414,
-0.023249445,
-0.014016379,
0.017671281,
0.036563233,
0.098277874,
0.030431509,
-0.025108833,
0.002088263,
-0.01657836,
-0.032645743,
-0.03690388,
-0.025974656,
0.016748685,
-0.01911905,
-0.032503802,
-0.054759685,
0.019984871,
-0.03608064,
0.072501935,
-0.052034475,
-0.050387993,
-0.034973525,
0.01728805,
-0.02781985,
-0.0070117377,
-0.049678303,
-0.041956875,
0.020850694,
0.019544864,
-0.032219928,
0.0124479635,
-0.0046626637,
-0.009580815,
0.011049874,
-0.01960164,
-0.014548645,
0.023235252,
0.046016302,
-0.018934531,
-0.056491327,
0.025264965,
0.0129731335,
0.0031244103,
0.019331956,
-0.014648003,
-0.025563035,
-0.04405756,
0.023533322,
0.0041020084,
-0.030828936,
0.01124149,
-0.0019906806,
0.027621137,
-0.017543538,
-0.015627375,
0.040878147,
0.026783703,
0.022908794,
-0.0077143307,
0.0021521351,
-0.034150284,
-0.057740383,
0.01982874,
-0.030005695,
-0.0066568926,
-0.027805656,
0.009332424,
0.05549776,
0.008665316,
0.009587913,
0.02983537,
-0.0013741374,
0.00000520139,
0.043120768,
0.041502673,
-0.012369897,
-0.025406903,
0.057570055,
-0.026315307,
0.008778865,
-0.053595793,
0.02090747,
-0.01215699,
0.02640047,
-0.05007573,
-0.01799774,
0.003280542,
0.0035040947,
0.0011931664,
-0.01852291,
-0.0700606,
0.00066710863,
-0.0051133167,
0.015953831,
-0.016251901,
-0.010269214,
0.008949191,
-0.011525366,
-0.000023453038,
-0.045704037,
0.018721623,
-0.05847846,
0.0029700529,
0.020779725,
-0.06932253,
0.003775551,
0.0014415579,
0.00471589,
-0.0036832914,
0.027379842,
0.037869062,
0.019544864,
-0.011787952,
0.0019534219,
-0.019729383,
-0.02113457,
0.034519322,
-0.024725601,
0.008353052,
0.09878885,
-0.013143459,
0.016124157,
-0.006532697,
-0.0152157545,
-0.053595793,
0.0019072919,
-0.011092455,
0.023391383,
-0.0052765454,
0.04286528,
0.0487699,
-0.033554144,
-0.07062835,
0.020481655,
0.04133235,
-0.007707234,
0.03809616,
0.03099926,
-0.03928844,
0.03908973,
-0.01774225,
-0.007416261,
-0.027890818,
-0.013455723,
0.01266087,
-0.016592553,
-0.024328174,
-0.033071555,
-0.010347281,
0.032106377,
0.017429987,
0.07233161,
0.076135546,
0.006174303,
0.018182259,
-0.020382298,
0.014385417,
-0.032929618,
-0.005737844,
0.030942487,
0.015655762,
0.029920531,
0.03077216,
0.028274052,
-0.025534648,
0.018097095,
-0.0147757465,
0.059330087,
-0.034746423,
-0.013228622,
-0.026499826,
0.015457049,
-0.024413338,
0.011610529,
-0.0348032,
-0.010574382,
0.0071217394,
0.013732502,
-0.025179803,
-0.032418642,
0.015769312,
0.047776334,
-0.013420239,
0.03491675,
-0.019800352,
0.018608073,
0.07153676,
0.0082111135,
-0.034349,
0.033781245,
0.047662783,
0.0009079597,
-0.02378881,
-0.0032929617,
-0.006053656,
0.036279354,
0.022951376,
0.029892145,
0.029324392,
-0.027990175,
-0.0054610646,
-0.012270541,
0.014889297,
0.046413727,
0.010936324,
0.030374734,
0.00087158807,
0.034519322,
0.023873974,
0.0119866645,
0.014449289,
0.04204204,
0.032134764,
0.017671281,
-0.029863756,
0.00019915677,
-0.015002848,
0.024399143,
-0.0051736403,
0.031396687,
0.017841607,
-0.008466602,
-0.026443051,
-0.036875494,
-0.073069684,
-0.014073153,
-0.03440577,
0.06529149,
0.018480329,
-0.0049287975,
-0.019431313,
0.0069939955,
-0.013363464,
0.05407838,
-0.0350303,
-0.039487153,
0.006912381,
0.039941356,
0.01215699,
0.014002184,
0.01911905,
0.076135546,
0.017671281,
0.0008285631,
0.008111757,
0.009900176,
-0.012944747,
-0.054646134,
-0.022383625,
0.011056971,
0.013860246,
0.022341043,
0.00792014,
-0.09521201,
-0.031396687,
-0.019104855,
0.03315672,
0.013178944,
0.010567285,
0.02102102,
0.038067773,
-0.012015052,
-0.028032757,
0.01904808,
-0.056264225,
0.03693227,
-0.0064830184,
0.0077356216,
-0.017614506,
-0.031339914,
0.058875885,
-0.0050104116,
0.010013727,
0.031992827,
-0.07159353,
-0.008303373,
-0.0067207646,
0.012568611,
0.022284267,
0.03622258,
-0.015485437,
0.046555668,
-0.0029221487,
-0.0128879715,
0.047833107,
0.024569469,
-0.066654086,
0.008920804,
-0.02603143,
0.060295265,
-0.00849499,
0.042098813,
0.009687269,
-0.016720297,
-0.016649328,
-0.0064191464,
-0.008558862,
0.006053656,
-0.002420043,
-0.017359018,
0.0091337105,
0.081756294,
-0.022170717,
-0.060863018,
0.026074013,
-0.012355704,
-0.023476547,
0.011681498,
-0.0026702087,
-0.0017351921,
-0.01811129,
0.038550362,
-0.01355508,
0.0026755314,
-0.0386923,
0.012398285,
-0.015244142,
-0.002608111,
0.011326653,
0.030743772,
0.0069549624,
-0.00485428,
0.039373603,
-0.016209321,
0.004208462,
-0.061033342,
0.0060181716,
0.053169977,
0.013136363,
0.014761553,
0.005620745,
0.009332424,
-0.018026127,
0.020240359,
0.04070782,
0.0026311758,
0.022681694,
0.010084695,
0.023064926,
-0.01073761,
-0.0036158708,
-0.029296005,
-0.009013063,
0.016195126,
0.076022,
-0.04175816,
0.0279334,
-0.009147905,
-0.041701388,
-0.00396007,
-0.0054184836,
0.013143459,
0.059159763,
0.009992436,
0.047066644,
-0.04295044,
-0.017600313,
0.013767987,
0.017614506,
0.008026594,
0.020737143,
0.0015240593,
0.0143357385,
0.012199571,
-0.01275313,
0.010396959,
0.00941049,
-0.0071217394,
0.009268552,
-0.023987524,
-0.013001521,
-0.023419771,
-0.010872452,
0.035796765,
-0.0032681227,
-0.027209517,
0.05765522,
-0.01669191,
0.03162379,
0.042780116,
0.021517802,
-0.033327043,
-0.019431313,
-0.008821447,
0.033894796,
0.03244703,
0.003065861,
-0.010822773,
-0.010730513,
0.041360736,
-0.021148764,
-0.004747826,
-0.053680956,
-0.011624723,
-0.0070578675,
0.040906534,
0.0060323654,
0.026443051,
-0.041729774,
0.033639308,
0.032730903,
-0.016067382,
-0.025875298,
-0.0072885165,
0.004201365,
0.04970669,
-0.0022763307,
-0.020141004,
-0.0446537,
-0.00041250733,
-0.052289963,
0.055071946,
0.053993218,
0.0047265356,
-0.022979764,
-0.026755314,
-0.017075142,
0.0030321507,
0.016251901,
0.014030572,
0.0041197506,
0.0006245272,
0.016748685,
-0.031056035,
0.026357887,
-0.002285202,
0.022809438,
-0.017543538,
0.0015400274,
-0.004041685,
-0.0067385067,
-0.0031102167,
0.004581049,
-0.03301478,
0.017756445,
0.024938509,
0.0095737185,
-0.0040878146,
0.015102204,
-0.0382381,
0.0031190878,
0.03562644,
0.0056100995,
-0.055071946,
0.0019126147,
0.006028817,
-0.013959603,
0.05552615,
0.020552624,
-0.020254554,
0.0034348997,
0.005936557,
0.02569078,
0.0011017938,
-0.007267226,
-0.042212363,
0.00004391207,
0.031027649,
-0.019062275,
0.03642129,
0.032617353,
-0.02804695,
-0.041076858,
0.05078542,
-0.035229012,
0.02509464,
0.011376332,
-0.019374538,
-0.012064731,
-0.02307912,
-0.020240359,
-0.05277255,
0.021872647,
-0.004957185,
0.018380972,
0.05336869,
0.04181494,
-0.05950041,
-0.013867344,
0.015669957,
-0.052744165,
0.0028600509,
-0.0074943267,
-0.014392514,
0.02349074,
0.028685672,
-0.027706299,
-0.03798261,
0.0208365,
-0.029494718,
0.035342563,
-0.044313047,
0.004801053,
-0.014690584,
-0.06801669,
0.07363744,
0.022454593,
-0.049877018,
-0.035229012,
0.01934615,
-0.025421098,
0.025775943,
0.016464809,
-0.0147331655,
-0.023760423,
-0.053113203,
0.016180933,
0.014151219,
0.019062275,
-0.028572122,
0.019686801,
-0.045590486,
0.005233964,
0.031283136,
-0.033071555,
-0.017075142,
-0.02319267,
-0.0044249175,
-0.023618484,
0.02834502,
-0.04334787,
0.009758238,
-0.0007394083,
0.026244337,
0.022312654,
-0.010751804,
-0.007345292,
0.014761553,
0.0059152665,
0.01520156,
-0.052573837,
-0.016067382,
0.034718037,
0.013697018,
0.0015143012,
0.01064535,
-0.05041638,
0.052375127,
-0.07113933,
0.024668826,
-0.045618877,
0.019885516,
-0.042382687,
-0.047946658,
0.033809632,
-0.027621137,
-0.0042510433,
0.00018241252,
0.018281616,
0.036563233,
-0.011056971,
-0.050757032,
0.0034810295,
-0.02841599,
-0.013044103,
0.02046746,
-0.0082749855,
-0.0019516476,
0.019246794,
-0.012199571,
0.042893667,
-0.056519713,
0.020850694,
0.066654086,
-0.006429792,
0.003981361,
-0.02980698,
0.012980231,
-0.03244703,
0.00313683,
0.0005815023,
0.003807487,
0.0028423087,
-0.015726732,
-0.08805834,
-0.032844454,
-0.0044249175,
0.016564166,
0.080961436,
-0.013647339,
-0.014179607,
0.036279354,
-0.06529149,
-0.011234393,
0.053283527,
-0.018253228,
0.0004958959,
0.0060004294,
0.0046058884,
-0.008388536,
-0.0045775007,
-0.066824414,
-0.028401796,
-0.0315954,
0.046356954,
-0.014889297,
-0.044994347,
0.02879922,
0.028288245,
-0.014875103,
-0.013732502,
0.029778594,
0.04661244,
-0.04806021,
0.010787289,
0.010191149,
-0.014144123,
0.024824958,
-0.011993762,
0.003523611,
-0.005744941,
0.0010308247,
0.0067101195,
0.017543538,
-0.03207799,
-0.0038429715,
0.04343303,
0.0012996199,
0.008778865,
-0.030630222,
0.01346282,
-0.028430182,
-0.016109964,
0.056179065,
-0.024853345,
-0.013526692,
0.0315954,
-0.0086085405,
0.06529149,
0.0047265356,
-0.0035449017,
0.0061849486,
-0.043120768,
-0.049025387,
0.020850694,
0.055185497,
0.008949191,
-0.00698335,
-0.024257205,
0.026741121,
0.009445975,
0.047407296,
-0.025250772,
-0.053766116,
0.015740925,
-0.057087466,
-0.00028188,
-0.018877756,
-0.045987915,
0.005535582,
0.055838414,
0.01616674,
-0.056661654,
-0.0055994545,
0.04993379,
-0.068698,
-0.020197779,
-0.042098813,
-0.0037471633,
-0.04405756,
-0.009893079,
-0.00647947,
-0.026017237,
-0.02461205,
0.023433965,
-0.025307547,
0.004045233,
0.03820971,
0.016479002,
-0.018097095,
-0.016734492,
-0.02882761,
0.008239501,
0.013327979,
-0.014427998,
-0.021673935,
0.033185106,
0.007849172,
0.0025335934,
-0.01195118,
0.043376256,
0.031027649,
-0.021304894,
-0.024441725,
0.02046746,
0.00364071,
-0.00047593587,
-0.0044178204,
0.02207136,
-0.056860365,
0.02042488,
-0.033327043,
0.017316436,
0.0009101775,
0.042553015,
0.019743577,
0.052573837,
0.03477481,
0.0069052842,
0.024668826,
0.036648393,
0.050359607,
0.03622258,
-0.0019214858,
0.0005806152,
-0.036960658,
-0.057115853,
0.022937182,
0.020027453,
-0.024981089,
0.020737143,
-0.029721819,
0.015031235,
-0.057939094,
-0.02005584,
0.01852291,
0.051807374,
0.02337719,
-0.023732034,
-0.056661654,
-0.011362137,
0.016777072,
-0.012121506,
-0.044000782,
-0.034377385,
0.037556797,
-0.018352585,
-0.006142367,
0.020297134,
-0.00929694,
0.03488836,
0.0042829793,
0.030090857,
-0.03667678,
0.05291449,
-0.011404719,
0.03977103,
-0.05504356,
-0.047520846,
-0.009722753,
0.027266292,
-0.03338382,
-0.02905471,
0.06336112,
0.020566817,
-0.016010607,
0.011802145,
-0.050757032,
-0.00760078,
0.01815387,
0.03906134,
-0.061941747,
-0.006110431,
-0.02935278,
0.02923923,
-0.0050494447,
-0.012987328,
-0.005375902,
-0.005886879,
0.03647807,
0.0412188,
-0.010169858,
0.014186704,
0.07255871,
-0.04828731,
-0.012015052,
0.03883424,
0.03361092,
0.02532174,
0.009893079,
-0.0075085205,
0.05967074,
0.014761553,
0.02431398,
-0.022695888,
-0.009474362,
0.017018367,
-0.019246794,
0.007685943,
-0.0006391646,
-0.03304317,
-0.038067773,
-0.036847107,
-0.0013501853,
-0.000027112377,
-0.026074013,
0.022511369,
0.012667967,
-0.02438495,
-0.030459896,
-0.01325701,
-0.031311523,
0.033781245,
-0.0012126828,
-0.08141564,
-0.012703451,
-0.0105601875,
0.004226204,
-0.0055107432,
-0.0087149935,
-0.04666922,
0.018778399,
0.0228946,
0.075340696,
-0.026286919,
0.02202878,
0.05825136,
-0.0212907,
0.024441725,
-0.0095311375,
-0.024597857,
-0.003278768,
-0.024839152,
0.005233964,
0.015116398,
-0.03798261,
-0.01439961,
-0.03185089,
-0.04286528,
-0.048826676,
-0.048003435,
0.006976253,
-0.035257403,
0.015045429,
0.06131722,
-0.025818523,
-0.03148185,
0.013682824,
-0.009311133,
0.018877756,
0.06597278,
-0.016152546,
0.015854476,
0.06614311,
0.015229948,
-0.008828544,
0.017245468,
-0.014420901,
-0.027195321,
0.0056846174,
0.00084852317,
0.006997544,
-0.031084424,
-0.025222383,
-0.031425074,
-0.0020616495,
-0.016266096,
-0.018239034,
-0.0031492496,
0.006724313,
0.0114473,
0.0043468513,
-0.0021539093,
0.07176386,
0.015641568,
-0.00018207985,
-0.003750712,
0.023774616,
-0.0014805909,
-0.0021645545,
-0.03812455,
0.032702517,
-0.04417111,
-0.0071927086,
0.006898187,
-0.03065861,
-0.03820971,
-0.038749076,
-0.021929422,
0.00014737157,
0.038749076,
0.0279334,
0.014144123,
0.0042049135,
-0.009346617,
-0.015641568,
0.012497641,
0.016053189,
-0.0035768377,
0.06551859,
0.08028014,
0.02461205,
-0.020084228,
0.035314176,
0.0023845586,
-0.06154432,
-0.00464847,
-0.02363268,
0.0053120297,
0.0013448626,
-0.03244703,
-0.023008151,
0.030034082,
0.050331216,
-0.006298499,
-0.035257403,
-0.012178281,
-0.042780116,
0.0029700529,
-0.04388723,
0.057144243,
-0.0043894327,
-0.01698998,
-0.00890661,
-0.03608064,
0.23732035,
0.07057158,
0.04002652,
0.055128723,
0.007905947,
0.04331948,
0.04840086,
-0.04082137,
0.048344087,
-0.02095005,
0.015002848,
-0.010588575,
0.007118191,
0.041076858,
-0.026897252,
0.008551765,
-0.033554144,
0.0013430883,
-0.02980698,
-0.006174303,
-0.026144981,
0.026074013,
0.0070898035,
0.01568415,
0.0114473,
-0.022142328,
0.016663522,
-0.031396687,
0.032163154,
-0.040395558,
0.03077216,
-0.058875885,
-0.01041825,
-0.018026127,
-0.028543733,
0.0348032,
0.0006675522,
-0.0313683,
-0.008147242,
-0.022341043,
0.005989784,
-0.04757762,
-0.026457245,
-0.024030104,
-0.0028405343,
0.07863366,
0.011262781,
0.019218406,
0.021461027,
-0.03099926,
0.052630614,
-0.0446537,
-0.03962909,
-0.019473895,
-0.081983395,
-0.022965569,
-0.048826676,
-0.06069269,
0.0030410218,
0.013917021,
-0.0065930206,
0.0015001073,
-0.027777268,
0.054759685,
-0.032361865,
-0.0147331655,
-0.023746228,
0.0035750635,
-0.021673935,
-0.009183389,
0.0210636,
-0.016947398,
-0.0389194,
-0.036137417,
-0.026897252,
-0.02804695,
-0.007771106,
0.03477481,
0.0040523303,
-0.017500956,
0.030488284,
0.004737181,
-0.013214429,
-0.038181324,
0.017671281,
0.047861498,
-0.07267226,
0.02113457,
0.006681732,
0.033185106,
0.0035608697,
-0.002608111,
0.0152157545,
-0.050359607,
0.029437942
] | Guide on how to optimize LLMs for speed and memory;
Guide on quantization such as bitsandbytes and autogptq, which shows you how to drastically reduce your memory requirements.
Related libraries
text-generation-inference, a production-ready server for LLMs;
optimum, an extension of 🤗 Transformers that optimizes for specific hardware devices. |
[
0.030151898,
-0.024776401,
0.008411151,
-0.020806175,
-0.023916867,
0.033153445,
0.0077835554,
0.017722767,
-0.011787891,
0.056647368,
0.050671563,
0.0060747205,
0.0073742536,
-0.051053576,
0.010403087,
0.03293515,
0.0034927086,
-0.018636875,
-0.038337935,
-0.032280266,
0.023180123,
0.02657733,
-0.07836765,
-0.07967741,
-0.010239366,
0.0020533307,
0.027082134,
-0.023493923,
0.055665042,
0.048052028,
0.017299822,
-0.00494573,
0.034053907,
-0.009393476,
-0.036728013,
-0.063359916,
-0.012197193,
-0.015949126,
-0.021692995,
0.0061395266,
0.025772369,
-0.004379529,
0.016399357,
-0.0167268,
-0.06472425,
-0.010675955,
0.018746022,
-0.002807128,
-0.0099323895,
-0.013950369,
-0.025144773,
0.0001396316,
0.0305612,
-0.01262696,
-0.041885216,
-0.0047274358,
-0.0008313942,
-0.063687354,
-0.04161235,
-0.005017358,
0.05959434,
0.008950066,
-0.0002530423,
-0.038747236,
-0.004829761,
0.018759664,
-0.018786952,
0.010089289,
-0.0060337903,
0.012285875,
-0.029469728,
-0.005546039,
-0.015744476,
-0.028651126,
-0.014925872,
0.03429949,
0.011405876,
0.03361732,
-0.023248341,
0.05135373,
-0.008779523,
0.0034688327,
0.007326502,
-0.002147129,
-0.01934633,
-0.0014521686,
0.056374498,
-0.0153078865,
-0.047697302,
-0.035882123,
-0.017245248,
0.026904771,
-0.0029742597,
0.041203044,
0.041039325,
0.054710004,
-0.026372679,
0.02903314,
-0.01970106,
-0.016235637,
0.029851744,
0.09703181,
-0.027737018,
0.021420127,
0.001572401,
-0.009120608,
-0.015471607,
0.019496407,
-0.026359035,
-0.05009854,
-0.012599673,
-0.010675955,
-0.0066170455,
0.00036133674,
-0.040793743,
0.023425706,
-0.0057234033,
0.0000020418456,
-0.04131219,
0.015103236,
0.0020550361,
-0.039020102,
0.019469121,
-0.048488617,
0.022006793,
-0.010484947,
-0.008895492,
0.04685141,
-0.0324167,
-0.024940122,
0.03956584,
-0.039265685,
0.040439017,
0.05610163,
-0.03394476,
0.013807113,
-0.03462693,
0.026208958,
0.013643392,
-0.014380136,
-0.0067978203,
-0.001735269,
-0.010982932,
0.08267896,
-0.00013739323,
-0.023152838,
0.0009379833,
-0.0338629,
-0.050398692,
0.0021965862,
-0.035036232,
-0.034108482,
-0.0010710063,
0.030997789,
0.007572083,
-0.006538596,
0.035527393,
-0.013895796,
-0.0017216257,
0.008990996,
-0.028596552,
-0.003269298,
-0.01230634,
0.041284908,
-0.00026242214,
0.030424766,
-0.018718734,
-0.003792863,
-0.010116575,
-0.023152838,
0.021501986,
0.0024779812,
0.02042416,
0.0047479006,
0.055310313,
0.005702938,
0.0269457,
0.02770973,
0.016385715,
0.033562746,
-0.019209897,
0.016917806,
0.014284632,
0.08164206,
0.06930844,
0.0102325445,
-0.000017280743,
0.02678198,
-0.0058939457,
0.012872541,
0.038447082,
0.039620414,
-0.02038323,
0.060576662,
-0.046469394,
0.038092352,
-0.043085836,
0.03004275,
-0.029715309,
-0.038992815,
-0.0085407635,
0.016945094,
-0.0695813,
0.014134555,
-0.048188463,
0.04524149,
0.020001214,
0.04057545,
-0.02372586,
0.0051265047,
0.02979717,
0.012408665,
-0.03342631,
-0.02195222,
-0.0015374399,
-0.0070672776,
-0.030288331,
0.060249224,
0.024639968,
0.026427252,
0.026850197,
0.028159963,
0.02678198,
0.030615773,
-0.0075584394,
-0.02529485,
-0.03206197,
0.033671893,
0.0022750357,
0.004058909,
-0.013220448,
0.023180123,
-0.050753422,
0.046824124,
0.006852394,
-0.010341692,
0.03992057,
0.012026651,
0.018227573,
0.018159356,
0.0131522305,
0.000977208,
0.035609256,
0.06543371,
-0.011665101,
-0.005648365,
0.027409576,
0.006003093,
-0.0037348787,
0.033126157,
-0.062159296,
0.04897978,
-0.00011362388,
-0.026236244,
-0.04431374,
0.0041441806,
0.03992057,
0.0200285,
-0.030015465,
0.0085407635,
0.030915927,
0.0015229437,
-0.023739504,
-0.06985417,
0.023111908,
0.05296365,
-0.015444321,
0.024435317,
-0.03743747,
-0.030124612,
-0.013909439,
-0.033508174,
-0.098832734,
-0.003088523,
-0.033917475,
-0.015935482,
0.030915927,
0.019632842,
0.031980112,
-0.013077192,
0.0037041812,
-0.023234697,
-0.02903314,
0.05476458,
0.049116213,
0.014666648,
-0.049198076,
0.028678412,
-0.014653004,
0.021979505,
-0.007613013,
0.01850044,
0.019605555,
-0.0054061944,
-0.0077835554,
0.0004979838,
-0.016740443,
-0.03206197,
-0.045541644,
0.0094685145,
-0.008895492,
0.0046830946,
0.025308494,
-0.0071832463,
-0.035445534,
0.0057677445,
0.044559322,
-0.052772645,
0.036618866,
0.06597945,
-0.013554711,
0.034026623,
0.010805567,
0.0000060655807,
-0.031761818,
0.07563897,
0.024694541,
-0.019728346,
-0.040275294,
-0.037983205,
-0.015512537,
0.03249856,
-0.016563078,
0.009270686,
-0.047315285,
0.05228148,
-0.025035625,
-0.02987903,
0.014366493,
-0.01781827,
-0.038092352,
-0.052172333,
-0.0038508477,
0.018623231,
0.004509141,
0.033180732,
-0.04488676,
-0.015498894,
0.010894249,
0.015867265,
0.009543553,
-0.037301037,
0.02979717,
-0.010573629,
0.013438742,
0.010812389,
0.012470061,
-0.04878877,
0.012954402,
-0.012770216,
0.015785405,
-0.014653004,
-0.0053550317,
-0.009106965,
-0.024421673,
0.03640057,
-0.01676773,
0.021597492,
0.01693145,
0.02127005,
0.02066974,
0.039101962,
-0.006405573,
0.0043317773,
-0.023221055,
-0.0111534735,
-0.012572386,
0.04736986,
0.011535489,
-0.019073464,
0.0034756544,
-0.0060747205,
-0.04483219,
0.011849287,
-0.036973596,
-0.049607377,
-0.012333627,
0.028405543,
0.04906164,
-0.008595337,
-0.044613894,
0.011992542,
0.013697966,
0.045869086,
0.030533914,
0.017463543,
0.010962466,
0.0009627119,
-0.014775794,
-0.032362126,
-0.0016150366,
0.010218902,
-0.018991603,
-0.02304369,
-0.03825607,
-0.018227573,
0.005481233,
0.024639968,
0.055992484,
0.040957466,
0.02787345,
-0.04906164,
-0.019755634,
0.021870358,
-0.035199955,
-0.030943215,
-0.04881606,
0.055064734,
0.009325259,
-0.025676865,
-0.007858594,
0.011405876,
-0.0050923964,
0.044777617,
0.036946308,
-0.031052362,
-0.01761362,
0.024080588,
0.019660128,
0.035008945,
-0.0254995,
-0.06095868,
-0.0057268143,
0.020533307,
0.058939457,
-0.07869509,
-0.000011784747,
-0.018022921,
0.014857654,
0.0007887586,
-0.018132068,
-0.056319926,
-0.018937029,
-0.005638132,
-0.06663433,
0.0145575,
0.052472487,
-0.024871904,
0.026113454,
0.002460927,
-0.000926898,
-0.0052527064,
-0.005747279,
-0.007074099,
0.0265364,
-0.00315674,
-0.03836522,
-0.0011076729,
-0.037655763,
-0.01821393,
0.025813298,
-0.042403664,
0.05866659,
-0.039593127,
0.025867872,
-0.05702938,
0.032389414,
0.024353456,
0.018173,
-0.016413001,
-0.047397148,
-0.01351378,
0.02678198,
-0.0276688,
-0.024026014,
0.024749115,
0.018964317,
0.004287436,
0.048761487,
0.017872844,
-0.01829579,
0.029769883,
0.0006467821,
-0.05915775,
-0.0035404605,
-0.006535185,
0.017804628,
0.0076061916,
-0.03691902,
0.04286754,
-0.063250765,
0.026959345,
-0.018323077,
-0.046278387,
0.026850197,
-0.07492951,
-0.011051148,
0.004857048,
0.00028331357,
0.002111315,
0.029578876,
-0.017722767,
0.01970106,
-0.0008561229,
0.0011972077,
-0.026809268,
-0.048270322,
-0.005835961,
0.054791864,
0.049852956,
-0.010341692,
-0.023616713,
-0.076348424,
0.03686445,
0.0014146493,
0.02440803,
0.0073742536,
-0.006159992,
0.016958738,
-0.009959676,
-0.037301037,
0.0148440115,
-0.0008808515,
-0.00510604,
-0.031816393,
-0.0051128613,
-0.013547889,
-0.024503533,
-0.008158749,
0.02979717,
-0.05119001,
-0.051108148,
-0.006855805,
0.0342722,
0.00064848753,
-0.0076403,
0.032716855,
-0.05135373,
-0.040002428,
-0.018623231,
0.06712549,
-0.057083957,
0.023384776,
-0.05364582,
-0.063087046,
0.025731439,
-0.028678412,
0.027409576,
-0.06696177,
-0.0029947248,
-0.030697634,
-0.000971239,
-0.06898099,
-0.022675319,
-0.018555013,
-0.001146045,
-0.016508505,
0.050289545,
-0.021979505,
0.022075009,
-0.0040145684,
0.008029137,
0.009161538,
0.02754601,
-0.036100417,
-0.009318437,
-0.014243702,
0.0048638694,
0.012667891,
-0.0023637179,
0.024721827,
0.0072446414,
-0.02275718,
0.0530728,
-0.034163054,
-0.059048604,
0.0064840224,
0.004628521,
0.042239945,
-0.04117576,
0.05610163,
-0.02810539,
0.034817938,
-0.0037689873,
0.02919686,
0.0016892225,
-0.01146045,
-0.037082743,
-0.076348424,
0.058120854,
-0.028214537,
0.0019356563,
0.00014762577,
-0.011283086,
0.04491405,
-0.013343238,
0.019319044,
0.060358368,
-0.008254252,
0.0047751875,
-0.04786102,
0.045541644,
-0.010819211,
-0.00040866225,
0.01905982,
0.012047116,
-0.034763366,
0.003177205,
0.0025803067,
0.013193161,
-0.051681172,
0.010785102,
0.00091751816,
0.02232059,
0.038501654,
-0.00132682,
-0.0534821,
-0.04556893,
0.026318105,
0.023616713,
0.013670679,
0.014939515,
0.025622291,
0.027068492,
0.015689902,
0.013363703,
-0.05432799,
-0.017831914,
0.056865662,
-0.009686809,
-0.024012372,
0.01910075,
0.03277143,
-0.043576997,
-0.048270322,
-0.015539824,
-0.016576722,
0.008267896,
-0.02597702,
-0.012879362,
-0.039320257,
-0.030806782,
-0.026086167,
0.014352849,
-0.010928358,
0.006859216,
0.0023534852,
-0.0119243255,
-0.04158506,
0.017477186,
0.03828336,
-0.033208016,
-0.0016568195,
-0.031379804,
-0.03334445,
-0.022825396,
0.0013677501,
0.042321805,
0.007838129,
0.043249555,
0.03836522,
-0.0003675189,
0.055146594,
-0.029524302,
0.010041537,
0.01459843,
-0.04963466,
-0.043222267,
-0.06619774,
-0.01676773,
-0.00048050325,
0.008643089,
-0.012053938,
0.019128036,
0.027518723,
0.03869266,
-0.013015796,
-0.09222934,
0.005658597,
-0.037110027,
-0.064942546,
-0.015198739,
0.003313639,
0.015116879,
0.037955917,
-0.016099203,
-0.018323077,
-0.020806175,
0.019673772,
-0.005546039,
0.00048306136,
-0.030424766,
-0.014748507,
-0.020124005,
-0.002907748,
-0.03558197,
-0.011781069,
0.006559061,
-0.003977049,
0.00018237378,
0.03921111,
-0.027068492,
0.021324623,
0.017586334,
-0.013315951,
-0.015717188,
-0.00018589123,
0.0013524013,
0.018636875,
-0.01994664,
0.030834068,
0.025117487,
-0.021379197,
-0.0011221691,
-0.019209897,
0.011508202,
0.02826911,
0.016958738,
0.03691902,
-0.0009064329,
0.0018572068,
0.026645547,
0.008834097,
-0.0156216845,
0.017040597,
-0.040602736,
-0.046824124,
0.003823561,
0.024244308,
0.028214537,
0.037082743,
0.04829761,
0.013595641,
-0.0037212353,
0.0116105275,
0.023180123,
-0.010669133,
0.013493315,
0.015935482,
-0.007483401,
-0.016385715,
0.00020859469,
-0.005610845,
-0.030315619,
0.053263806,
-0.019032532,
-0.017995635,
-0.037137315,
0.029251434,
0.0146939345,
0.040275294,
-0.0030100734,
-0.013363703,
-0.0031635617,
-0.016071917,
-0.021652065,
0.026372679,
-0.07296486,
-0.012831611,
0.0025155006,
-0.07411091,
0.021174546,
-0.038174212,
-0.010048359,
0.010641847,
0.07754905,
0.0017165093,
0.012742929,
0.0043249554,
0.010355335,
-0.0004847668,
-0.009052391,
-0.029005853,
0.008247431,
0.0014027113,
-0.0028207714,
-0.05899403,
-0.01137859,
0.04958009,
0.010914714,
-0.017831914,
0.002987903,
-0.008786345,
0.003680305,
0.04338599,
-0.009604949,
0.02131098,
-0.028132675,
0.055064734,
-0.029115,
0.044150017,
-0.06439681,
0.04202165,
0.018800596,
0.01901889,
0.016904164,
0.057847984,
-0.009188825,
-0.023671286,
-0.004567126,
0.014489283,
0.036236852,
0.0018606177,
0.008254252,
0.024981052,
0.037382897,
0.053509388,
0.040520877,
0.020342298,
0.012940758,
0.007831307,
-0.0353091,
-0.021611134,
0.040029716,
0.061941,
-0.0148440115,
-0.015048662,
-0.054682717,
-0.006252085,
-0.0334536,
0.017763697,
-0.0075584394,
-0.020124005,
-0.0043965834,
-0.03956584,
-0.03165267,
0.009345724,
-0.009488979,
0.011487736,
-0.009236577,
0.029005853,
0.058557443,
0.040630024,
-0.004157824,
0.03912925,
0.028405543,
0.044532035,
-0.028214537,
0.0114672715,
-0.046633117,
0.01829579,
0.036728013,
0.024858262,
-0.016426645,
0.007524331,
-0.020014858,
-0.04363157,
-0.04592366,
0.035008945,
-0.005641543,
-0.01885517,
-0.027655156,
-0.011787891,
0.01206076,
-0.041039325,
0.024639968,
-0.04466847,
-0.0022375165,
0.028432831,
-0.030097324,
-0.016413001,
0.02919686,
0.009911925,
0.029497014,
-0.01536246,
0.0809326,
0.006651154,
0.065379135,
0.01777734,
-0.038310647,
0.015430678,
0.02742322,
-0.01676773,
0.015430678,
0.01270882,
-0.055583183,
-0.014393779,
-0.039511267,
-0.038146928,
-0.006562472,
0.027532367,
-0.015662614,
-0.038583513,
0.037301037,
-0.0038542585,
-0.0677258,
0.022620745,
0.059048604,
0.01905982,
0.012811146,
-0.019523695,
0.0021982917,
-0.04423188,
0.02087439,
-0.06832611,
0.008779523,
-0.038419794,
-0.027641514,
-0.0334536,
-0.013725253,
0.0014990678,
-0.0041066613,
0.0019117804,
-0.007046812,
0.041939788,
0.03342631,
0.057356823,
0.02987903,
-0.012954402,
-0.032907862,
0.039838705,
0.06827154,
0.017831914,
0.0611224,
0.0629779,
-0.031216083,
-0.007872238,
-0.0055153416,
0.04524149,
0.0022102296,
-0.019278115,
-0.0012117039,
-0.0089978175,
-0.009734561,
-0.039729558,
-0.041857928,
-0.0014675175,
-0.02517206,
0.0076675867,
-0.020014858,
-0.009959676,
-0.061176974,
-0.009216112,
-0.037464757,
0.022702606,
-0.0003730615,
-0.00022319738,
-0.0096117705,
-0.036127705,
0.2160022,
0.03607313,
0.030452052,
-0.002952089,
0.06385108,
0.08317012,
0.009727739,
-0.008452082,
-0.020465089,
-0.04032987,
-0.012633782,
-0.014066338,
0.017804628,
0.025813298,
-0.01934633,
0.037655763,
-0.07962284,
-0.006494255,
0.035445534,
-0.04990753,
-0.04251281,
-0.01307037,
0.021365553,
0.053754967,
0.013063548,
0.03206197,
0.005232241,
-0.04753358,
0.030806782,
-0.0214747,
0.013581998,
0.006350999,
0.027355002,
-0.0063032475,
0.017190674,
0.0117674265,
-0.0030066627,
-0.025676865,
-0.008595337,
0.028760271,
0.02444896,
-0.023384776,
0.00989146,
-0.0017958116,
-0.0064192163,
-0.0054437136,
-0.029333295,
0.02155656,
0.020042144,
-0.039674986,
0.046332963,
-0.04611467,
0.02300276,
-0.011317194,
-0.0342722,
0.00575069,
-0.04436831,
-0.015703546,
-0.0041168937,
0.04286754,
0.0045296066,
0.023862295,
-0.036455147,
-0.022661675,
-0.006821696,
0.005771155,
-0.021324623,
0.00017000946,
-0.02412152,
-0.028405543,
-0.047260713,
0.0035643363,
0.0021505398,
-0.019510051,
0.020328656,
0.028378258,
-0.021815784,
0.048625052,
-0.008097353,
-0.033508174,
-0.002964027,
-0.031980112,
0.024148805,
-0.009659522,
0.0200285,
0.033480886,
-0.013295487,
-0.014339206,
0.004952552,
0.0029128643,
0.009911925,
0.07520238,
0.01218355,
0.027887095,
0.012763394
] | model instantiation with the torchscript flag
a forward pass with dummy inputs |
[
0.04499143,
-0.026821814,
-0.033712674,
-0.0037370543,
-0.020734375,
0.029093016,
-0.0017777564,
0.019390194,
-0.02787244,
0.035504915,
0.038656786,
-0.007300292,
-0.00005365377,
-0.07100983,
-0.011572315,
0.051944092,
-0.0054385248,
-0.047030877,
-0.03405258,
-0.016701832,
0.018571327,
-0.0037891993,
-0.060905296,
-0.04928663,
-0.014724188,
0.019730102,
0.019482896,
-0.0031364218,
0.07033001,
0.057011805,
-0.0058209207,
0.013240954,
-0.015519881,
-0.013210053,
-0.0051488304,
-0.015110446,
-0.020224513,
-0.005612341,
-0.01613017,
-0.02705357,
-0.0004922386,
-0.051326077,
0.043909907,
-0.04579485,
-0.07039181,
-0.002020134,
-0.0027907202,
-0.015589408,
0.03831688,
-0.026543709,
-0.012607489,
0.026080199,
0.023407286,
-0.009293388,
-0.038069673,
0.012476161,
-0.022341212,
-0.011209232,
-0.043786302,
-0.0031209716,
0.054354347,
0.014044371,
-0.0148864165,
-0.062110424,
-0.012398909,
0.012244405,
0.006319195,
-0.001633875,
-0.025153177,
-0.010428989,
-0.008992106,
-0.0026535983,
-0.039954614,
-0.022341212,
-0.020904329,
-0.0011075973,
0.03315646,
0.040263623,
-0.045516744,
0.0742235,
0.01874128,
0.03442339,
0.01784516,
-0.023731744,
0.013434083,
-0.019869156,
0.058680445,
0.003426116,
-0.03309466,
-0.029417474,
-0.038656786,
0.032971054,
-0.027841538,
0.025153177,
0.019251142,
0.027146272,
-0.006411897,
0.043909907,
-0.020023659,
-0.025060475,
0.036710043,
0.10135432,
-0.03457789,
0.028938513,
0.0065586753,
0.021939503,
0.043044686,
0.012584314,
-0.03711175,
0.0038220314,
-0.009347464,
0.0066127516,
-0.011425537,
0.014291578,
-0.03844048,
0.02139874,
-0.012592038,
-0.022001304,
-0.054756057,
0.011425537,
0.015156797,
-0.023252783,
0.0039282525,
-0.056640998,
0.04242667,
-0.010900225,
-0.0018839776,
0.025601236,
-0.0019506072,
-0.047834296,
0.027594332,
-0.010320837,
0.021846801,
0.0349487,
-0.017551603,
-0.011974025,
-0.02356179,
-0.003675253,
0.018973036,
-0.014283853,
-0.00805736,
-0.0030012312,
-0.009501968,
0.06458248,
0.008559496,
-0.00829684,
0.00808826,
-0.03788427,
-0.0148864165,
-0.0141757,
-0.04749439,
0.024148904,
-0.007837192,
0.014925042,
-0.028073294,
-0.020595321,
-0.0034570168,
0.0040209545,
0.029556528,
0.012159429,
0.0018482486,
0.0070183235,
-0.031765927,
0.036370132,
-0.026929967,
0.052160397,
-0.008760351,
0.0036327646,
0.023221882,
-0.011927674,
0.058649544,
-0.008080536,
-0.0218159,
0.023917148,
0.05453975,
0.023376387,
0.053767234,
-0.00089853466,
0.009277938,
0.009950028,
0.0025956596,
0.002448881,
-0.000021998649,
0.06495329,
0.019266592,
0.028861262,
-0.014268402,
0.025523985,
0.0019187408,
-0.0024044614,
0.02311373,
0.03612293,
-0.0349796,
0.038100574,
-0.037698865,
-0.0030997272,
-0.034701496,
0.043384593,
-0.01287787,
-0.03800787,
0.022356663,
0.04533134,
-0.04975014,
0.03572122,
-0.016779084,
0.048174202,
0.014198875,
0.053489126,
-0.03797697,
-0.0046235183,
0.054014437,
0.0008594259,
-0.0012736885,
-0.0030804144,
0.0027965142,
0.017057192,
0.00011817107,
0.03229124,
-0.008011009,
0.022449365,
0.016222872,
0.020749826,
0.037358955,
0.004430389,
0.04054173,
-0.000848321,
0.008883954,
0.014430631,
0.017520702,
-0.010428989,
0.004430389,
0.054416146,
-0.012986023,
0.05793883,
0.0051874565,
-0.022634769,
0.050429955,
0.020440819,
0.018215967,
0.03150327,
0.031117013,
-0.023499988,
0.01180407,
0.0000055977357,
0.014940493,
-0.022835623,
-0.011255583,
-0.00080293557,
-0.03147237,
0.03760616,
-0.065262295,
0.038594984,
0.027439829,
-0.020749826,
-0.069650196,
-0.007161239,
0.015087271,
0.044404317,
-0.026991768,
0.012352558,
0.027130822,
0.04007822,
0.004666007,
-0.007887405,
0.031194264,
0.049997345,
0.00012408565,
0.032105837,
-0.011077904,
-0.03874949,
-0.024318857,
-0.030823456,
-0.077560775,
-0.03222944,
-0.058525942,
-0.00030973132,
0.028305048,
-0.022464816,
0.03321826,
-0.028119644,
-0.010259035,
0.010166333,
-0.012746542,
0.056331992,
0.028953964,
0.029386574,
-0.026852716,
0.03454699,
-0.015882963,
0.012383459,
-0.007794704,
-0.007852643,
-0.020332666,
-0.0042565726,
0.038502283,
0.020548971,
-0.0038703138,
-0.027069021,
-0.021954954,
0.0349796,
-0.021877702,
0.0044265264,
0.034083482,
0.014237502,
-0.02007001,
0.010212684,
-0.014330204,
-0.05015185,
0.051665984,
0.050306354,
-0.031534173,
0.018463174,
0.035195906,
0.039398402,
-0.02966468,
0.042488474,
0.051820487,
-0.008273665,
-0.043693602,
-0.04319919,
-0.021321489,
0.051944092,
-0.014090723,
0.00042078074,
-0.0021765686,
0.05503416,
-0.05311832,
-0.04115974,
0.015342202,
-0.03531951,
-0.03828598,
-0.026311953,
-0.013109625,
0.0262038,
-0.016006567,
0.039027594,
-0.02269657,
-0.029757382,
0.005678005,
0.044002607,
0.002867972,
-0.02921662,
0.019421095,
0.022372114,
0.026945418,
-0.004067306,
0.010637569,
-0.072184056,
0.014500157,
-0.01222123,
0.021615045,
0.032074936,
0.010351737,
0.0074277576,
0.010089081,
0.057073608,
-0.022047656,
0.02963378,
-0.00808826,
0.026080199,
0.020023659,
0.007284842,
0.025462184,
-0.00008346813,
-0.06791975,
0.009293388,
0.0084976945,
0.018277768,
0.039583806,
-0.018988485,
0.02139874,
-0.0109697515,
-0.06476788,
-0.0023465226,
-0.033372764,
-0.037266254,
0.011927674,
0.06016368,
0.027439829,
-0.042982884,
-0.034732398,
-0.0020124086,
-0.025601236,
0.05280931,
0.018911233,
0.02135239,
-0.001926466,
-0.017767908,
0.009200686,
-0.0136272125,
-0.008768076,
-0.0070453617,
-0.02971103,
-0.022804722,
-0.055775777,
-0.015102721,
-0.01222123,
0.042086765,
0.041623253,
0.018555876,
0.036864545,
-0.03011274,
-0.02438066,
-0.0015807643,
-0.021738648,
-0.03213674,
-0.044836927,
0.053087417,
-0.020178162,
-0.010598943,
-0.01660913,
0.0030630326,
-0.009046182,
0.014307028,
-0.008242764,
-0.044558823,
-0.036277432,
0.0067827054,
0.013882143,
0.003754436,
-0.011286484,
-0.028490452,
-0.034516092,
0.003897352,
0.056980904,
-0.056517396,
-0.006319195,
-0.02444246,
-0.00805736,
0.031194264,
-0.019112088,
-0.029896434,
-0.017582502,
-0.00250682,
-0.03874949,
-0.007883543,
0.038502283,
0.007049224,
0.024457911,
-0.04496053,
-0.040263623,
0.0053187846,
-0.009332014,
-0.0084976945,
0.015751636,
0.024303406,
0.009347464,
0.02133694,
-0.016423726,
0.01351906,
0.019050287,
-0.04326099,
0.019714652,
-0.029463826,
0.029741932,
-0.033805374,
0.008258214,
-0.013410907,
0.044404317,
0.035226807,
-0.052500304,
0.003978466,
0.0024990947,
-0.017536152,
-0.03275475,
0.011402361,
0.01789151,
-0.013155976,
0.03405258,
0.0021958817,
0.01565121,
0.026713662,
0.034299787,
-0.024921421,
0.017366199,
0.011525964,
0.003439635,
-0.012854694,
-0.00067933276,
0.034794196,
-0.060874395,
0.037760664,
-0.024195254,
-0.04882312,
-0.0046312436,
-0.063593656,
-0.05447795,
0.021676848,
0.0017449243,
0.02397895,
0.02572484,
0.015573957,
0.04174686,
-0.00916206,
-0.010660744,
-0.026852716,
-0.03800787,
0.009432442,
0.060905296,
0.07477971,
0.004569442,
-0.058834948,
-0.01548898,
0.038193274,
-0.006477561,
0.027547982,
0.006693866,
-0.0003601864,
0.043909907,
-0.01177317,
0.004975014,
0.0014600585,
-0.0074663837,
-0.004075031,
-0.0039417716,
-0.022912875,
-0.01611472,
-0.019405644,
-0.043971706,
0.045115035,
-0.05188229,
-0.06136881,
-0.026512807,
0.009254762,
0.02400985,
0.022912875,
0.0035033678,
-0.06062719,
-0.07675736,
-0.038625885,
0.03349637,
-0.03142602,
0.007149651,
-0.034608793,
-0.046752773,
0.02057987,
0.020317215,
0.018926684,
-0.0653241,
-0.017783357,
-0.019405644,
0.026033847,
-0.07168964,
-0.010119982,
0.0066475146,
-0.030143641,
-0.010591217,
0.032445744,
0.011549139,
-0.0030668953,
-0.009903677,
-0.009926853,
0.035134107,
0.028953964,
-0.022372114,
-0.021321489,
0.015419453,
0.021089733,
-0.0068251938,
-0.039954614,
-0.0174589,
0.04227217,
-0.025014123,
0.061276104,
-0.03980011,
-0.086336575,
0.007725177,
-0.019668302,
0.044620622,
-0.023237333,
0.03837868,
-0.026311953,
0.022851074,
-0.008489969,
0.02489052,
-0.01878763,
0.01244526,
-0.02099703,
-0.030622602,
0.013071,
-0.022480264,
-0.027393477,
-0.0073273303,
-0.0097800745,
0.053303722,
-0.015349926,
0.0020066148,
0.06266664,
-0.012576588,
-0.0074277576,
-0.020270865,
0.0350105,
-0.034361586,
-0.0021553244,
0.0083354665,
0.017397098,
-0.027223524,
0.02836685,
-0.036401033,
-0.0076942765,
-0.013233229,
0.01922024,
0.020749826,
-0.015102721,
0.042055864,
0.029803732,
-0.036153827,
-0.064397074,
0.04446612,
-0.0035748256,
0.01438428,
-0.009061633,
0.0047355336,
-0.0046621445,
0.012020376,
0.0083818175,
-0.014500157,
-0.0015247568,
0.035474014,
-0.029309321,
-0.03238394,
0.043415494,
0.00032059485,
-0.023175532,
-0.05639379,
0.008914854,
-0.019807354,
-0.012530237,
0.0050368155,
-0.00752046,
0.0029993,
-0.012120803,
0.030653503,
0.042982884,
0.009501968,
-0.008829878,
-0.006052676,
0.008343191,
-0.022310311,
0.0027482316,
0.033249162,
-0.047339886,
-0.0174589,
-0.032631148,
0.0068483693,
-0.041221544,
-0.0050715785,
0.06371726,
-0.013117351,
0.037760664,
0.033898078,
0.0026999493,
0.047308985,
-0.008018734,
-0.003746711,
0.033836275,
-0.0393057,
-0.03528861,
-0.027965141,
0.01372764,
-0.01569756,
0.0041638706,
-0.018555876,
-0.011865872,
-0.008026459,
0.057073608,
-0.010614393,
-0.0610907,
0.008065085,
-0.016763635,
-0.029000314,
0.029989138,
-0.026960868,
-0.008142336,
0.032878354,
-0.009324289,
-0.049842842,
0.0011230477,
0.04014002,
-0.012568863,
-0.00017381649,
-0.04638196,
0.011510514,
-0.047710694,
0.0007971417,
-0.035165004,
-0.046721872,
-0.015349926,
-0.0070646745,
0.010745721,
0.018524975,
0.016686382,
0.016918138,
0.00019964755,
0.008142336,
-0.025601236,
-0.0043763127,
-0.015380828,
0.0195756,
-0.006852232,
0.03964561,
0.0049170754,
-0.022403013,
-0.005284021,
-0.00940154,
0.0051102047,
0.010954301,
-0.004353137,
0.06662193,
-0.020718925,
0.011711368,
0.04091254,
0.020765277,
-0.024535162,
0.010745721,
-0.02745528,
-0.04848321,
0.0077406275,
0.0124143595,
-0.0028930788,
0.058649544,
0.004550129,
0.05355093,
-0.026250152,
0.022511166,
0.03102431,
0.0022596142,
0.060410883,
-0.010243584,
0.00071988994,
0.009146609,
0.008289115,
-0.010761172,
-0.03269295,
0.07471791,
0.0059561115,
-0.006531637,
0.0053535476,
0.0067170416,
0.0057745697,
0.060318183,
0.02133694,
-0.01750525,
-0.00027907203,
-0.012684741,
0.0051565557,
0.02575574,
-0.07119523,
-0.007628612,
0.011989475,
-0.06232673,
0.009023007,
-0.042951986,
-0.0074779713,
-0.008273665,
0.044218913,
0.007049224,
0.013511335,
-0.0025435146,
-0.022588417,
0.008018734,
0.0014928904,
-0.03844048,
-0.007956932,
-0.026883617,
-0.03361997,
-0.040294524,
-0.009718273,
0.060997996,
0.005241533,
-0.028598605,
-0.040387224,
-0.011286484,
0.0026497357,
0.056053884,
-0.016670933,
0.013789441,
-0.047370784,
0.031364217,
-0.023917148,
-0.011054728,
-0.018432273,
0.0096641965,
0.029942786,
0.011008377,
0.0084745195,
0.025817541,
0.0068367817,
-0.0148864165,
-0.0049981894,
0.010150882,
0.021460542,
-0.025369482,
0.021939503,
0.027702484,
0.026929967,
0.014762813,
0.023469089,
-0.029927336,
0.020966131,
-0.006280569,
-0.04394081,
-0.051727787,
-0.0025802092,
0.04712358,
-0.019606499,
0.026760014,
-0.0028525216,
0.0013789441,
0.008853053,
-0.0013065205,
0.019343844,
0.0009670956,
0.020286314,
0.011371461,
-0.029355673,
0.033990778,
-0.006245806,
-0.032198537,
-0.013928494,
0.0070839874,
0.02448881,
0.03238394,
-0.023778096,
0.01744345,
0.006099027,
0.03964561,
0.012777443,
-0.011927674,
-0.052098595,
0.026790913,
0.0012669291,
0.03970741,
-0.0035999324,
-0.005349685,
-0.020888878,
-0.028258698,
-0.0348869,
0.05024455,
-0.007404582,
0.011425537,
-0.014307028,
-0.02567849,
-0.01656278,
-0.042519376,
-0.017690655,
-0.07366729,
-0.020023659,
-0.0149095915,
-0.011811796,
-0.04199406,
0.019266592,
-0.00229824,
0.028644957,
-0.019127538,
0.038069673,
0.001220578,
0.073420085,
0.050738964,
-0.025400382,
0.027625233,
0.018370472,
-0.027810637,
0.016022017,
0.0036327646,
-0.025879344,
-0.03538131,
-0.03096251,
-0.08646018,
0.013511335,
0.041097943,
-0.019127538,
-0.06495329,
0.032445744,
-0.00041040004,
-0.023360936,
-0.0111551555,
0.10215774,
0.033774473,
0.003702291,
-0.0056277914,
0.0014561958,
-0.025941145,
-0.023685392,
-0.020162713,
0.02485962,
-0.031039761,
-0.05759892,
-0.018864883,
-0.02918572,
0.008312291,
-0.0072809793,
-0.0018839776,
-0.010158608,
0.039985515,
0.022511166,
0.056579195,
0.017675204,
-0.02353089,
-0.03352727,
0.043044686,
0.05061536,
0.004129107,
0.030653503,
0.0870782,
0.008621298,
-0.015852064,
0.0136272125,
0.02266567,
0.019251142,
-0.020842528,
-0.013325931,
-0.0050561284,
-0.03142602,
-0.027347127,
-0.043693602,
0.012885596,
-0.014121624,
-0.009061633,
-0.031317867,
-0.019977307,
-0.05979287,
-0.0046312436,
-0.04174686,
0.003346933,
0.007883543,
-0.036431935,
0.009216136,
-0.059236657,
0.28527534,
0.040696234,
0.032847453,
0.0016860199,
0.031039761,
0.056857303,
0.016022017,
-0.006531637,
-0.014546508,
-0.018648578,
-0.024627864,
-0.028026942,
0.008196413,
0.00729643,
-0.026095647,
0.0017024359,
-0.07039181,
-0.019343844,
-0.016300123,
-0.031225165,
-0.031765927,
-0.0018820462,
0.037637062,
0.05834054,
0.04270478,
-0.012113078,
-0.014561959,
-0.06841417,
0.0047084955,
-0.0478961,
0.021568695,
-0.028135095,
0.0048668617,
-0.01838592,
-0.002881491,
0.03871859,
-0.009486518,
-0.052253097,
-0.010158608,
-0.0029259108,
0.0060024625,
-0.04017092,
0.030668953,
0.01484779,
0.01548898,
0.0037853369,
-0.020193612,
0.017366199,
0.028521353,
-0.07051542,
0.045176834,
-0.049348433,
0.04227217,
-0.036555536,
-0.024257056,
0.028382301,
-0.053427324,
-0.031580523,
-0.0015093065,
0.022804722,
-0.00023827342,
0.0065277745,
-0.051418778,
0.028135095,
-0.014322478,
-0.0063694087,
-0.062481232,
0.04486783,
-0.015759362,
-0.033249162,
0.009841875,
0.016670933,
-0.022866525,
-0.015404003,
0.034639694,
0.03748256,
0.00065470877,
0.03967651,
0.0054617003,
-0.0391512,
-0.0054307994,
-0.002520339,
0.010846148,
-0.037328057,
0.015288126,
0.04236487,
-0.051665984,
-0.018123265,
0.030220892,
0.014090723,
0.020703474,
0.060997996,
0.023824446,
-0.012043551,
-0.012522512
] |
These necessities imply several things developers should be careful about as detailed
below.
TorchScript flag and tied weights
The torchscript flag is necessary because most of the 🤗 Transformers language models
have tied weights between their Embedding layer and their Decoding layer.
TorchScript does not allow you to export models that have tied weights, so it is
necessary to untie and clone the weights beforehand.
Models instantiated with the torchscript flag have their Embedding layer and
Decoding layer separated, which means that they should not be trained down the line.
Training would desynchronize the two layers, leading to unexpected results.
This is not the case for models that do not have a language model head, as those do not
have tied weights. These models can be safely exported without the torchscript flag.
Dummy inputs and standard lengths
The dummy inputs are used for a models forward pass. While the inputs' values are
propagated through the layers, PyTorch keeps track of the different operations executed
on each tensor. These recorded operations are then used to create the trace of the
model.
The trace is created relative to the inputs' dimensions. It is therefore constrained by
the dimensions of the dummy input, and will not work for any other sequence length or
batch size. When trying with a different size, the following error is raised:
`The expanded size of the tensor (3) must match the existing size (7) at non-singleton dimension 2`
We recommended you trace the model with a dummy input size at least as large as the
largest input that will be fed to the model during inference. Padding can help fill the
missing values. However, since the model is traced with a larger input size, the
dimensions of the matrix will also be large, resulting in more calculations.
Be careful of the total number of operations done on each input and follow the
performance closely when exporting varying sequence-length models.
Using TorchScript in Python
This section demonstrates how to save and load models as well as how to use the trace
for inference.
Saving a model
To export a BertModel with TorchScript, instantiate BertModel from the BertConfig
class and then save it to disk under the filename traced_bert.pt:
thon
from transformers import BertModel, BertTokenizer, BertConfig
import torch
enc = BertTokenizer.from_pretrained("google-bert/bert-base-uncased")
Tokenizing input text
text = "[CLS] Who was Jim Henson ? [SEP] Jim Henson was a puppeteer [SEP]"
tokenized_text = enc.tokenize(text)
Masking one of the input tokens
masked_index = 8
tokenized_text[masked_index] = "[MASK]"
indexed_tokens = enc.convert_tokens_to_ids(tokenized_text)
segments_ids = [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1]
Creating a dummy input
tokens_tensor = torch.tensor([indexed_tokens])
segments_tensors = torch.tensor([segments_ids])
dummy_input = [tokens_tensor, segments_tensors]
Initializing the model with the torchscript flag
Flag set to True even though it is not necessary as this model does not have an LM Head.
config = BertConfig(
vocab_size_or_config_json_file=32000,
hidden_size=768,
num_hidden_layers=12,
num_attention_heads=12,
intermediate_size=3072,
torchscript=True,
)
Instantiating the model
model = BertModel(config)
The model needs to be in evaluation mode
model.eval()
If you are instantiating the model with from_pretrained you can also easily set the TorchScript flag
model = BertModel.from_pretrained("google-bert/bert-base-uncased", torchscript=True)
Creating the trace
traced_model = torch.jit.trace(model, [tokens_tensor, segments_tensors])
torch.jit.save(traced_model, "traced_bert.pt") |
[
0.023410395,
-0.033399757,
-0.01226788,
-0.02379941,
0.0048244866,
0.012851403,
-0.00672441,
-0.0066514695,
0.0052378154,
0.038790397,
0.024299573,
-0.016005207,
0.018200366,
-0.03484467,
0.028787144,
0.04295842,
-0.0021743185,
-0.056824043,
-0.048932586,
-0.004897427,
0.000093997594,
0.032260496,
-0.062242474,
-0.025216538,
0.008572234,
-0.013719741,
-0.00849582,
-0.0055782036,
0.07168999,
0.03406664,
-0.017311187,
0.017352868,
0.004959947,
-0.011073047,
-0.02102073,
-0.044431124,
-0.018492127,
-0.005484423,
-0.0474321,
-0.0392072,
0.012705523,
-0.0053871693,
0.018172579,
-0.047182016,
-0.055267982,
-0.012295667,
0.03965179,
-0.0039908816,
0.00007663084,
-0.0037790074,
-0.0040186686,
0.008461086,
0.0010645825,
0.014949309,
-0.03134353,
-0.04934939,
-0.021104088,
-0.009350264,
-0.041318998,
-0.02229892,
0.048626933,
0.0021048514,
0.0010281123,
-0.030954516,
0.0053489627,
0.0510166,
-0.024688588,
-0.010843806,
-0.033677623,
0.005116248,
-0.036984254,
0.002321936,
-0.024716375,
-0.024021704,
-0.011996959,
0.046098333,
0.0063284477,
0.013497447,
-0.01028807,
0.0073565603,
-0.008315206,
0.023604902,
0.02209052,
-0.0012113316,
0.0077455756,
-0.036817536,
0.07513556,
-0.0345668,
-0.023438182,
-0.022312814,
-0.045181368,
0.023854984,
0.0017271244,
0.03503918,
0.013080644,
0.031788122,
-0.014365785,
0.03353869,
-0.00851666,
-0.00862086,
0.018603275,
0.14438032,
0.0011800715,
0.020145444,
-0.02510539,
-0.006516009,
0.0025459672,
-0.0060088993,
-0.07030065,
0.0094266785,
-0.008509713,
-0.0027752086,
0.0026779547,
-0.013865623,
-0.003174644,
-0.0015604035,
-0.028300874,
-0.01597742,
-0.04454227,
-0.02310474,
-0.000053457064,
-0.022243349,
0.008725061,
-0.06502116,
0.02738391,
-0.012712469,
-0.03389992,
0.026703132,
-0.011281448,
-0.03467795,
0.0038102674,
-0.031482466,
0.043847598,
0.013122325,
-0.007870616,
-0.0023306194,
-0.024688588,
-0.030537713,
0.012927817,
-0.015671765,
0.015643978,
0.006964071,
-0.00006110929,
0.064854436,
0.0024417667,
0.024855308,
-0.00978096,
-0.050377503,
-0.047265377,
0.015018775,
-0.0326773,
-0.015268857,
-0.009523932,
0.036900897,
-0.02510539,
-0.0022489957,
-0.007696949,
0.004286117,
0.0141365435,
0.0042722235,
-0.037623353,
-0.031149024,
-0.034205575,
0.05929707,
-0.009134917,
0.028453702,
0.002321936,
-0.011177247,
-0.0041471827,
-0.019061757,
0.02527211,
-0.0016446323,
0.0073496136,
0.029676322,
0.05004406,
0.007571908,
0.038901545,
0.007363507,
0.0057310313,
0.0030739168,
0.023660475,
-0.0153522175,
0.040402032,
0.05257266,
0.033066314,
0.020506673,
-0.009919894,
0.04295842,
-0.01039227,
0.041541293,
0.033233035,
0.05735199,
-0.027703458,
0.027397802,
-0.07952587,
0.012101159,
-0.028106367,
0.013150112,
-0.011580156,
-0.024174532,
0.008294365,
0.03854032,
-0.042374898,
0.012399868,
0.00095864525,
0.030176485,
-0.0006243351,
0.026883747,
-0.0011566263,
0.007168999,
0.07246802,
0.019339625,
-0.01720004,
-0.021993266,
0.03389992,
0.01633865,
0.008982089,
0.00851666,
0.015199389,
-0.014032343,
0.036623027,
0.025661128,
0.04034646,
0.024382934,
0.029648535,
-0.010364483,
-0.04776554,
0.0470153,
0.03231607,
0.011073047,
0.010003255,
0.030982303,
-0.01572734,
0.057574287,
-0.005765765,
0.0037790074,
0.061019853,
0.0160191,
0.012309561,
0.00035927488,
0.03320525,
-0.004734179,
0.014879841,
0.01899229,
0.010239443,
0.0076830555,
-0.017422335,
0.0047584926,
-0.042680554,
0.02327146,
-0.07558015,
0.02828698,
0.007460761,
-0.035511553,
-0.060130674,
0.004428524,
0.0060679466,
0.032343857,
0.016574837,
-0.0006994463,
0.027119935,
0.022326708,
-0.011996959,
-0.025897315,
0.05868576,
0.08380505,
0.0072662532,
0.050599795,
0.019172905,
-0.033566475,
0.0070439586,
-0.029620748,
-0.07163442,
-0.008037337,
-0.027050467,
-0.026230756,
-0.006908498,
-0.015894061,
0.013726688,
-0.010044935,
0.020381631,
0.009732333,
-0.03465016,
0.040068593,
0.028161941,
0.014893735,
-0.06307608,
0.024244,
-0.01903397,
0.000042250074,
-0.019978723,
-0.0017097577,
0.00059394323,
-0.007148159,
-0.030204272,
0.012712469,
-0.0031086502,
-0.044931285,
0.017950285,
0.010843806,
-0.027189402,
0.029509602,
0.012003905,
0.01342798,
0.0030218165,
0.04140236,
0.010211656,
-0.026633665,
0.07074524,
0.049821764,
-0.002917616,
0.043569732,
0.052350365,
-0.008273525,
-0.01414349,
0.038929332,
0.04462563,
0.006637576,
-0.037262123,
-0.008231845,
-0.03415,
0.003480299,
-0.032566153,
-0.0027630518,
-0.045598168,
0.06518788,
-0.040068593,
-0.028384235,
0.0039387816,
-0.05004406,
-0.022382282,
-0.03353869,
0.01821426,
0.040846623,
0.011017473,
0.020937368,
-0.0632428,
-0.0003911863,
-0.0137127945,
0.018575488,
0.012045586,
-0.056740683,
0.046487346,
0.034177788,
0.037317697,
-0.002150005,
0.03317746,
-0.049599472,
-0.0110938875,
-0.0051926617,
0.015713446,
0.00016509277,
0.0059324857,
0.0056233574,
-0.0104061635,
0.032705083,
-0.008613913,
0.024118958,
0.00965592,
0.037845645,
0.024244,
0.0013563441,
0.0056928243,
-0.009683706,
-0.019117331,
0.009454465,
-0.017908605,
0.0033934652,
0.010795179,
-0.06796656,
0.01768631,
-0.0070231184,
-0.01996483,
-0.013337673,
0.0025459672,
-0.045014646,
-0.0060471063,
0.033344183,
0.032427218,
-0.011448169,
-0.050377503,
-0.012434601,
-0.02306306,
0.061075427,
0.016908279,
0.02730055,
0.023729943,
-0.00048844016,
0.018756103,
0.0027665251,
-0.018631062,
0.015866274,
0.013851729,
-0.024021704,
-0.05390643,
-0.044764563,
0.01625529,
0.022715725,
0.041541293,
-0.0038033207,
0.039624,
-0.044264402,
-0.011580156,
0.04079105,
-0.027370017,
-0.046014972,
-0.06813328,
0.04796005,
0.008370779,
0.01524107,
-0.006575056,
0.0016029521,
-0.037262123,
0.030982303,
0.013629435,
-0.024758056,
-0.007891457,
0.009774013,
-0.010058829,
0.022104414,
-0.0007098664,
-0.04740431,
-0.019395199,
0.0088987285,
0.055156834,
-0.048932586,
0.014178224,
-0.04156908,
0.015880167,
0.027356124,
0.02102073,
-0.030926729,
-0.0031294904,
-0.036650814,
-0.042847276,
0.07207901,
0.04479235,
-0.041513506,
0.004202756,
-0.044736777,
0.00006659068,
0.007641375,
-0.0059984797,
-0.010552044,
0.04670964,
0.008843155,
-0.0020527511,
-0.0075093876,
-0.013351566,
0.0229797,
-0.0048244866,
-0.03948507,
0.05273938,
-0.033233035,
0.020687286,
-0.013969823,
-0.0038137408,
-0.006828611,
0.029592961,
0.0040013017,
-0.03895712,
0.008551394,
0.020326057,
-0.02563334,
-0.00733572,
0.015755126,
0.033344183,
0.004949527,
0.021979373,
0.014796481,
0.0025147072,
0.03406664,
0.016963853,
-0.05482339,
0.011691304,
-0.011871918,
0.016116355,
0.0014405729,
0.014365785,
0.019798107,
-0.04095777,
0.036817536,
-0.022993593,
-0.011948332,
0.035178114,
-0.056518387,
-0.024132852,
-0.017825244,
0.006220774,
0.008627807,
0.039790723,
-0.03212156,
-0.006467382,
-0.03895712,
0.0028116787,
-0.020437205,
-0.043375224,
0.0017957231,
0.058852483,
0.07302376,
-0.005682404,
-0.045375876,
-0.013837836,
-0.0030878102,
-0.010954953,
0.029370667,
-0.019186798,
-0.007912297,
0.021979373,
-0.0089265155,
-0.022910232,
0.031399105,
-0.0030391833,
0.015393898,
0.02025659,
-0.012379028,
0.010600671,
-0.050266355,
0.0006017583,
0.019895362,
-0.017547376,
-0.080415055,
-0.0013902093,
0.011969172,
0.020840114,
0.025938995,
0.038373597,
-0.040902197,
-0.04715423,
-0.05021078,
0.064409845,
-0.018672742,
0.030176485,
-0.029398454,
-0.059519365,
0.02449408,
0.0044528376,
0.039068267,
-0.0765249,
0.005800498,
-0.015741233,
0.008884835,
-0.041041132,
-0.019589707,
-0.00011103873,
-0.03940171,
-0.02004819,
0.019464666,
-0.022549003,
0.025786167,
0.010753498,
0.027161615,
0.029092798,
0.0066167363,
-0.03965179,
-0.0044424175,
0.012615216,
-0.00668273,
-0.022312814,
0.013865623,
-0.0035671329,
0.051405612,
-0.00035666986,
0.06252034,
-0.061353296,
-0.058741335,
-0.03423336,
0.014074024,
0.03545598,
-0.04690415,
0.024160638,
-0.033316396,
0.010850753,
-0.006456962,
0.046153907,
0.0031121236,
-0.017158361,
-0.005050254,
-0.065521315,
0.043013994,
-0.02000651,
-0.013087591,
-0.023535436,
0.0015421684,
0.029565174,
-0.027814606,
0.009211331,
0.055323556,
-0.0017444912,
-0.01037143,
-0.050099634,
0.0063249744,
-0.010017148,
0.017422335,
-0.020603925,
0.029676322,
-0.036845323,
0.008134591,
-0.032760657,
-0.020659499,
-0.035678275,
0.0058769123,
0.009940734,
-0.015477258,
0.059630513,
0.00016834904,
-0.028481489,
-0.062742636,
0.013879516,
0.026675345,
0.0016845759,
-0.022423962,
0.0039561484,
-0.0033847818,
0.011475956,
-0.0231881,
-0.036761962,
0.005105828,
0.033427544,
-0.02327146,
-0.021590358,
0.04498686,
0.010948006,
-0.019214585,
-0.05187799,
-0.012108106,
0.007891457,
-0.03259394,
0.0043173768,
-0.020965155,
0.014713121,
-0.014949309,
0.03545598,
0.048488,
-0.012330401,
-0.03631737,
0.036567453,
-0.00306176,
-0.024035597,
0.010621511,
0.05913035,
-0.047709968,
-0.0053003356,
-0.037929006,
-0.012781937,
-0.023868877,
-0.015268857,
0.04740431,
-0.016644305,
-0.0075649614,
0.0051127747,
0.025035923,
0.054100934,
-0.041985884,
0.014935415,
-0.009412785,
-0.008697274,
-0.07602473,
-0.033649836,
0.0064465418,
-0.0017800931,
0.020117657,
-0.009475305,
0.023771623,
0.039874084,
0.03798458,
-0.022660151,
-0.0887511,
0.01344882,
-0.032788444,
0.00052404206,
0.011059154,
0.018075325,
-0.0067105168,
0.055851504,
0.021298597,
-0.04776554,
-0.017839137,
0.010211656,
-0.03101009,
-0.0060366862,
-0.05265602,
0.011934439,
-0.051322255,
-0.009391945,
-0.020367738,
-0.0402631,
0.0064187553,
0.006606316,
0.017144468,
0.003464669,
-0.0145325065,
0.021673718,
0.028175835,
0.0059046987,
-0.030176485,
0.024660802,
0.0055712573,
-0.008377726,
-0.058296744,
0.031788122,
0.028342554,
-0.0011418646,
0.0029558227,
0.0145325065,
-0.0009673286,
0.014337998,
0.008092911,
0.04576489,
-0.009697599,
0.009822641,
0.0185477,
0.008759795,
-0.062409196,
0.02689764,
-0.0031954842,
-0.04315293,
0.0001500054,
0.064409845,
0.0060401596,
0.04873808,
0.015907954,
0.03720655,
-0.0066202097,
0.039151628,
0.020840114,
-0.0058873324,
0.030898942,
-0.019589707,
-0.015491151,
0.014838161,
-0.011198088,
-0.0022767824,
-0.03923499,
0.042235963,
0.0039075213,
0.004456311,
-0.00012677736,
0.028273087,
0.026397478,
0.040735476,
0.0244524,
0.002316726,
0.0045431447,
-0.048043407,
-0.005981113,
-0.010795179,
-0.06591033,
-0.030204272,
0.032065988,
-0.06502116,
0.03826245,
-0.015449471,
-0.026744813,
0.0014440463,
0.03484467,
-0.012253987,
-0.0015482468,
-0.02000651,
-0.026466945,
0.0059220656,
-0.014713121,
-0.04776554,
-0.008933462,
0.012906977,
-0.012649949,
-0.0073565603,
-0.011885812,
0.016533157,
0.016310863,
0.00020579612,
-0.019145118,
-0.0026293276,
-0.025744487,
0.031788122,
-0.033927705,
0.025772274,
-0.009857374,
0.0137127945,
-0.03362205,
0.007168999,
-0.036567453,
0.050377503,
0.014212958,
0.03345533,
0.04459784,
-0.0034334087,
-0.0012868771,
0.0074468674,
0.010260283,
0.02755063,
0.0013155321,
-0.029759683,
0.013136218,
0.0007867143,
0.037039828,
0.07596916,
0.018797783,
-0.0112536615,
0.04245826,
0.003372625,
-0.04429219,
-0.03048214,
0.022354495,
0.029231733,
0.0060783667,
0.030398779,
-0.038123515,
-0.04584825,
-0.0113856485,
0.007168999,
0.031065663,
-0.014129597,
0.027689565,
-0.026105717,
-0.020423312,
0.0050016274,
-0.0041193957,
0.0017062844,
0.0018321933,
0.0080790175,
0.025230432,
0.029176159,
-0.037706714,
0.012323454,
0.025466619,
0.02628633,
-0.00084315625,
-0.0045327246,
0.0013936826,
0.029592961,
0.024146745,
0.045459233,
-0.013608594,
-0.010642352,
-0.035650488,
-0.0153522175,
-0.04715423,
0.024549654,
-0.005078041,
-0.03370541,
0.012712469,
-0.04245826,
-0.015463364,
-0.059686087,
-0.0016576574,
-0.057963304,
0.005366329,
0.00023228044,
0.0075858016,
-0.04470899,
0.028842717,
-0.016616518,
0.013393247,
-0.021937693,
0.06980049,
0.044847924,
0.04418104,
0.045987185,
-0.008051231,
0.01216368,
0.015143816,
-0.04340301,
0.03398328,
0.040374245,
-0.047209803,
-0.009266904,
-0.03239943,
-0.08519439,
0.029398454,
0.030732222,
-0.020951262,
-0.06546574,
0.027008787,
-0.01528275,
-0.024591334,
0.03109345,
0.08074849,
0.022674045,
0.0021447951,
-0.019659175,
0.0123373475,
-0.043847598,
-0.015588406,
-0.05587929,
0.0023948764,
-0.043958746,
-0.042652767,
-0.027675672,
-0.028481489,
0.006929338,
0.027911859,
0.0063666548,
-0.015129923,
0.0046681855,
0.02873157,
0.043347437,
0.008169325,
-0.011288395,
-0.047571033,
0.04368088,
0.039512854,
0.028481489,
0.08625028,
0.06930032,
0.0018374034,
-0.03248279,
-0.029981976,
0.03434451,
0.016838811,
-0.04184695,
-0.028870504,
-0.00010664277,
-0.024549654,
-0.055406917,
-0.025536086,
0.01658873,
-0.02209052,
-0.020201016,
-0.00366786,
-0.0002468251,
-0.07013393,
-0.017227827,
-0.014101811,
0.060686413,
-0.03320525,
-0.011114728,
-0.014546399,
-0.05118332,
0.22640699,
0.009767067,
0.02632801,
-0.0018617169,
0.061464444,
0.06996721,
0.022910232,
-0.020840114,
-0.024799736,
-0.03003755,
0.0061860406,
-0.008245738,
0.011184194,
0.025174858,
-0.0062346673,
0.03756778,
-0.0845275,
0.013865623,
-0.005609464,
-0.04662628,
-0.023660475,
0.0040464555,
0.00902377,
0.046515133,
0.03553934,
-0.0018947137,
0.02559166,
-0.101032875,
0.029648535,
-0.039762937,
-0.007217626,
0.005050254,
0.00803039,
0.008857048,
-0.012399868,
-0.00039748175,
-0.018380981,
-0.058074452,
0.008683381,
0.011107781,
-0.013469661,
-0.0459594,
0.015782913,
0.010510365,
-0.001225225,
-0.0056928243,
-0.033733197,
0.04009638,
0.031676974,
-0.06140887,
0.04796005,
-0.05196135,
0.046237268,
-0.078303255,
-0.03573385,
0.01279583,
-0.06885573,
-0.06140887,
-0.02204884,
-0.0047376524,
0.025174858,
0.015129923,
-0.043291863,
0.014588079,
0.028870504,
0.0020788014,
-0.0050433073,
0.016922172,
-0.0023097792,
0.0366786,
0.036623027,
-0.0072593065,
-0.005800498,
-0.028481489,
0.009280797,
0.023299247,
-0.012476281,
0.037512206,
-0.023007486,
-0.0326773,
0.0087667415,
-0.011837184,
0.02428568,
-0.04176359,
0.013539127,
0.06529903,
-0.026967108,
-0.024188425,
-0.0009560402,
0.024730269,
0.0138447825,
0.03765114,
0.017311187,
0.009968521,
0.0042270697
] | Loading a model
Now you can load the previously saved BertModel, traced_bert.pt, from disk and use
it on the previously initialised dummy_input:
thon
loaded_model = torch.jit.load("traced_bert.pt")
loaded_model.eval()
all_encoder_layers, pooled_output = loaded_model(*dummy_input) |
[
0.039694756,
-0.0008535031,
-0.048330415,
-0.014051241,
-0.010670161,
-0.00315787,
-0.009433359,
-0.023360187,
0.01378778,
0.02068167,
0.03419135,
-0.017622598,
0.03401571,
-0.07997498,
-0.0044129677,
0.029902797,
-0.010575023,
-0.013992694,
0.0002895324,
-0.0015514912,
0.0064694253,
-0.0061766915,
-0.08307796,
-0.061298538,
-0.0060522794,
0.038231086,
0.029156325,
-0.037177242,
0.052282326,
0.030883456,
-0.019218,
-0.00016226164,
0.023667559,
-0.049413532,
-0.004808159,
-0.0035768459,
0.0016246748,
0.0019155793,
-0.06241093,
-0.031322557,
0.044232134,
-0.032054394,
0.023360187,
-0.061298538,
-0.08143865,
0.0010776278,
0.0024406712,
-0.026126526,
-0.0011544705,
0.019203363,
-0.038231086,
0.008650295,
0.019935198,
-0.0019064314,
-0.044671237,
-0.0071244184,
0.015383181,
-0.0097553665,
-0.011109263,
-0.009550453,
0.04522743,
-0.0006947863,
-0.022452712,
-0.027341373,
0.01365605,
0.031468924,
-0.008525883,
0.013385271,
-0.010948258,
0.013421862,
-0.022555169,
0.011848416,
-0.04683747,
-0.044173587,
-0.007779411,
-0.0058729798,
0.0070878263,
0.011387359,
-0.020008381,
0.046134908,
0.019422913,
0.02606798,
-0.007881868,
0.02886359,
-0.016715122,
-0.028307395,
0.07306645,
-0.023579739,
-0.04780349,
-0.031820204,
0.0029785703,
0.01934973,
0.018573985,
0.037469976,
0.037967622,
0.027736563,
-0.013304769,
0.021911154,
-0.03410353,
0.017461594,
0.023535829,
0.08214121,
-0.025702061,
0.032083668,
-0.041597527,
0.012675391,
0.0319373,
-0.018910628,
-0.018164156,
-0.029156325,
-0.00409096,
-0.013187675,
0.00755986,
0.023360187,
-0.024267664,
0.012353383,
-0.032347128,
0.008884482,
0.008335606,
-0.018047063,
-0.01361214,
-0.0070878263,
0.022364892,
-0.05292634,
0.03117619,
-0.0361234,
0.029771067,
0.015353908,
-0.02325773,
-0.017856786,
0.014526934,
0.0035786754,
0.0030938345,
0.06568955,
-0.0069304816,
-0.036416132,
0.010340835,
-0.008577111,
-0.0012130173,
-0.005038687,
-0.033342425,
-0.050145365,
0.005320444,
0.09677792,
-0.009952962,
-0.0048557282,
-0.0065462682,
-0.03015162,
-0.03826036,
0.0017994004,
-0.017227408,
0.014058559,
-0.004453219,
0.029258782,
-0.016773669,
-0.0009687672,
-0.029946707,
0.02192579,
0.023638286,
0.00024013351,
0.02175015,
-0.03161529,
-0.045783628,
0.0439394,
-0.014380567,
0.033957165,
-0.034337718,
-0.04007531,
0.025745971,
-0.0016182711,
0.038640913,
-0.02205752,
0.027034001,
-0.0053826496,
0.055473126,
0.015632005,
0.07183697,
-0.033459518,
-0.000042166303,
-0.020359663,
-0.007918459,
0.000358142,
-0.0020893903,
0.03392789,
-0.0065901782,
0.013736552,
-0.009572408,
0.00032909727,
-0.011204401,
0.006334036,
-0.0008201131,
0.044759057,
-0.053219076,
-0.0005991903,
-0.043061197,
-0.004420286,
-0.016334567,
0.004186099,
0.017798238,
-0.054185096,
-0.004723998,
0.058781024,
-0.05163831,
-0.016290657,
-0.007896504,
0.033518065,
-0.010618933,
0.025789881,
-0.025716698,
-0.0006618537,
0.05084793,
0.01222897,
-0.0490037,
-0.01445375,
0.038113993,
0.0007757456,
-0.0019448528,
0.011950873,
-0.013436499,
0.017637234,
0.0039080014,
0.017139586,
0.01627602,
-0.01036279,
0.004947208,
0.015617369,
-0.0073366505,
0.027824385,
0.01610038,
-0.037206516,
0.015807645,
0.01773969,
-0.018925264,
0.029727157,
0.0029895478,
0.022716172,
0.03714797,
0.004398331,
-0.017022492,
-0.005858343,
-0.0024973885,
-0.007537905,
0.02295036,
0.0485646,
0.042534277,
0.005733931,
-0.0104067,
-0.0104067,
-0.030327262,
0.035713572,
-0.07652072,
0.048593875,
0.017417684,
-0.010626251,
-0.04590072,
0.010099329,
-0.0033993758,
0.014739166,
0.012287517,
0.026082616,
0.0006732886,
0.021150045,
-0.0019668078,
0.0051045525,
0.039080013,
0.038845826,
-0.0053899684,
0.006542609,
0.012258244,
-0.025423964,
-0.06516263,
-0.04522743,
-0.06773869,
0.00014510925,
-0.058195557,
0.012287517,
0.018573985,
-0.04487615,
0.041246247,
-0.025145866,
0.019862015,
0.00916258,
-0.030502902,
0.0061949873,
0.066099375,
0.03272768,
-0.030532176,
0.04513961,
-0.034074258,
0.026448533,
-0.0219697,
-0.026404623,
0.015880829,
-0.010684798,
0.04830114,
0.009726093,
-0.0071536917,
-0.025848428,
-0.038231086,
0.022511259,
0.009330902,
-0.012170424,
0.005990073,
-0.014395203,
-0.03536229,
0.023755379,
0.010004191,
-0.04025095,
0.030385809,
0.029390512,
-0.00573759,
0.028483037,
-0.02161842,
0.043734487,
-0.024926316,
0.07423739,
0.031234737,
-0.008262422,
-0.055560946,
-0.043031923,
-0.005711976,
0.023023544,
-0.038055442,
-0.022350255,
-0.04888661,
0.035069555,
-0.044085767,
-0.049354985,
0.0020033997,
0.009352857,
-0.056380603,
-0.014300065,
0.0021186636,
0.025321508,
0.014475705,
0.03091273,
-0.029434422,
0.032786228,
0.0046727695,
0.026829088,
0.0076696356,
-0.04221227,
0.046252,
0.030766362,
0.008730797,
0.040280223,
0.038582366,
-0.06943655,
0.0016887103,
-0.017139586,
-0.019291183,
-0.0020930495,
-0.006418197,
-0.010714071,
-0.0203743,
0.017959243,
-0.043705214,
0.009638273,
-0.02410666,
0.052282326,
0.04871097,
0.04531525,
0.019379003,
-0.009447996,
-0.026682721,
-0.00969682,
-0.011197083,
0.00067466084,
0.054068003,
-0.041334067,
0.0064328336,
-0.036591772,
-0.04452487,
-0.012038694,
0.035713572,
-0.022042884,
0.018617895,
0.03896292,
0.005042346,
-0.00907476,
-0.031322557,
0.009938326,
0.0012880304,
0.045256704,
0.036064852,
0.013546274,
-0.016217474,
0.020037655,
-0.020871947,
-0.037265062,
0.01939364,
0.041334067,
-0.028717224,
-0.019379003,
-0.07095876,
-0.02868795,
0.006897549,
0.023023544,
0.035977032,
0.017534778,
0.060830165,
-0.030122347,
0.0013996353,
0.014958717,
-0.0014215903,
-0.043617394,
-0.05283852,
0.042944103,
0.016905399,
-0.022203889,
0.0028267144,
0.021354958,
0.0052728746,
-0.0059059123,
0.012016738,
-0.034337718,
-0.024604307,
0.009169898,
0.0068829125,
0.04531525,
-0.0018524585,
-0.034981735,
-0.050965022,
0.026082616,
0.08114591,
-0.048418235,
-0.008394153,
-0.036094125,
-0.031732384,
0.02650708,
-0.006253534,
-0.044319954,
-0.0033005779,
0.013597503,
-0.07581815,
0.043441754,
0.039109286,
-0.037177242,
-0.002138789,
-0.055297486,
0.009140625,
0.031146917,
-0.01836907,
-0.0024004204,
0.0219697,
0.016378477,
-0.017081039,
0.022672262,
0.016071107,
0.012250925,
0.013604822,
-0.02641926,
0.041392613,
-0.029639335,
-0.02624362,
-0.027678017,
0.0042226906,
0.011467862,
0.045959268,
0.028365942,
-0.002641926,
0.016993219,
0.026214346,
-0.03307896,
-0.041831713,
0.029097779,
0.029917434,
0.021735514,
0.012924214,
-0.009338221,
-0.016071107,
0.0154124545,
-0.011672775,
-0.04127552,
0.0011050715,
-0.019364366,
0.011248311,
-0.028658677,
-0.012382656,
0.032961868,
-0.058781024,
0.018603258,
-0.040485136,
-0.016217474,
0.023316277,
-0.042241544,
-0.00613644,
0.040865693,
-0.007991644,
0.023638286,
0.016437024,
0.0042409864,
0.020974405,
-0.00689389,
-0.04186099,
-0.025497148,
-0.055765864,
-0.0035219581,
0.062996395,
0.038845826,
-0.011058033,
-0.032142214,
-0.046281274,
0.02881968,
-0.00871616,
0.047393665,
0.00095961924,
0.02192579,
0.02308209,
-0.02463358,
-0.042007357,
0.022789355,
-0.0011425781,
-0.0064804032,
-0.022174615,
-0.02482386,
0.0038128628,
-0.03161529,
-0.022555169,
0.073827565,
-0.029697884,
-0.0550633,
-0.02334555,
0.03504028,
0.027151095,
0.002063776,
0.042153724,
-0.036152672,
-0.042270817,
-0.0132681765,
0.05488766,
-0.08190703,
0.041041333,
-0.033605885,
-0.05799064,
0.0073988563,
0.021691604,
0.034074258,
-0.024253028,
-0.014504978,
-0.024516487,
0.001036462,
-0.041509707,
-0.015705189,
0.0028011003,
-0.026814451,
-0.003198121,
0.06141563,
-0.001569787,
-0.0061437585,
-0.0067585004,
0.026580265,
0.012163105,
0.039284926,
-0.048593875,
0.007940414,
0.050994296,
-0.00082788884,
0.012148469,
-0.008072145,
-0.011775233,
0.008738115,
0.0013218778,
0.005543654,
-0.0555024,
-0.04420286,
-0.014870897,
-0.012682709,
0.046486188,
-0.0300638,
0.033283878,
-0.03483537,
0.0042446456,
-0.010757981,
0.046808194,
0.013758507,
-0.017037129,
-0.032669134,
-0.07886259,
0.04470051,
-0.033459518,
-0.024472577,
0.0036079488,
0.0027315759,
0.054009456,
-0.041773167,
0.019876651,
0.046222728,
0.02611189,
0.009067441,
-0.016510207,
0.06908527,
0.007991644,
0.022481985,
-0.04007531,
-0.003456093,
-0.018427618,
-0.030707816,
-0.029009957,
-0.014885534,
-0.015178268,
0.043646667,
0.020403573,
-0.02980034,
0.043705214,
0.0048008407,
-0.054507107,
-0.039577663,
0.04835969,
0.0002732948,
0.021311048,
0.0011974658,
0.012324109,
-0.022569805,
0.01792997,
0.0064474703,
-0.03509883,
-0.031293284,
0.06270366,
-0.025848428,
-0.041743893,
0.010596978,
0.02606798,
-0.00019931082,
-0.033049688,
0.0012212504,
0.015675915,
-0.0040141176,
-0.02504341,
0.0005484192,
-0.030824909,
-0.031995848,
0.012653436,
0.037967622,
0.0131584015,
-0.012624161,
0.04853533,
0.025350781,
-0.05995196,
-0.0027773157,
0.03483537,
-0.045373797,
-0.022686899,
-0.028263485,
-0.016173564,
-0.03220076,
-0.011145854,
0.051228482,
-0.017725054,
0.0003213215,
0.07341773,
0.011460544,
0.045549437,
-0.011643502,
0.0057851593,
0.014021968,
-0.02611189,
-0.03307896,
-0.038318906,
0.032698408,
0.00050588127,
-0.00018101493,
-0.05857611,
-0.0011041567,
0.019862015,
0.042797737,
-0.025160503,
-0.03621122,
0.00907476,
-0.021252502,
-0.018530075,
0.019247273,
-0.015983287,
-0.02491168,
0.021150045,
-0.01143127,
-0.07909678,
0.02183797,
0.022364892,
-0.042622097,
-0.025189776,
-0.018310523,
0.007998962,
-0.01596865,
0.018047063,
-0.0032658158,
-0.008416108,
0.016978582,
0.031556744,
-0.0035201286,
0.028029298,
0.009265037,
0.007757456,
-0.016437024,
0.030737089,
0.0010611614,
0.012382656,
-0.031732384,
0.011863053,
-0.020959768,
0.0012276539,
0.008108737,
-0.0047679082,
-0.0014966035,
0.018339796,
-0.008913756,
0.02886359,
0.030532176,
0.050467372,
0.0076623172,
0.029697884,
-0.007442767,
0.025643514,
-0.039109286,
0.014065878,
-0.014805031,
-0.014358612,
-0.0036353928,
0.058107737,
0.027502377,
0.057083167,
-0.0062425565,
0.04736439,
0.011182446,
0.015441728,
0.000618401,
-0.031410377,
0.034132805,
0.012111877,
-0.009865142,
-0.0628793,
0.0151489945,
8.183121e-7,
-0.010904348,
0.033459518,
-0.025775244,
-0.025716698,
0.002210143,
-0.0020088884,
0.019554643,
0.061942555,
0.010692116,
0.009484587,
-0.008533201,
-0.009843187,
-0.025306871,
0.0076842722,
-0.063523315,
0.011043397,
0.037909076,
-0.038055442,
0.050994296,
-0.028029298,
0.02072558,
-0.0055765864,
0.051755402,
0.025350781,
0.013151083,
0.004636178,
0.0030828568,
0.02624362,
-0.03878728,
-0.040572956,
-0.0076403623,
0.021076862,
-0.046398368,
-0.038670186,
0.004164144,
0.044232134,
-0.0035128102,
-0.020871947,
-0.049354985,
0.0015652131,
0.04470051,
0.028219575,
-0.040397316,
-0.0073842197,
-0.038728733,
0.06176691,
-0.028234212,
0.04853533,
-0.005492425,
0.030971278,
0.015514912,
0.042944103,
-0.022350255,
0.042856283,
-0.010626251,
-0.04385158,
0.03384007,
-0.010355472,
0.012360701,
0.0054192417,
0.004617882,
0.0020985382,
0.030297989,
0.031468924,
0.0077867294,
-0.003838477,
0.0021095157,
0.038728733,
-0.006158395,
-0.011555682,
0.037001602,
0.04171462,
0.00016420559,
-0.007903823,
-0.042622097,
-0.02517514,
-0.038670186,
0.039519116,
0.024838496,
-0.0048374324,
-0.0071976017,
-0.008335606,
-0.045842174,
0.017271318,
-0.02469213,
-0.054068003,
0.011387359,
0.03108837,
0.029566152,
0.02175015,
0.032317854,
0.016978582,
0.034132805,
0.008635659,
-0.0028852613,
0.002819396,
-0.008877164,
0.008152647,
-0.01241193,
0.016802942,
0.0017554903,
-0.01948146,
0.021633057,
-0.009323584,
-0.028761134,
0.057873547,
0.021296412,
-0.0017536607,
0.0011105603,
-0.05196032,
-0.028658677,
-0.046954565,
0.017242044,
-0.042973377,
-0.008438063,
0.01623211,
-0.011489817,
-0.03521592,
0.024970226,
-0.01769578,
0.029200235,
0.004310511,
0.042505004,
-0.00081599655,
0.09824159,
0.047832765,
0.0068390025,
0.026082616,
0.007925778,
-0.041480433,
0.0319373,
-0.02641926,
0.0043397844,
-0.028966047,
-0.055004753,
-0.06446007,
-0.004519084,
0.009543135,
-0.03998749,
-0.048008405,
0.007530587,
-0.001605464,
-0.03706015,
-0.0051228483,
0.0786284,
0.013897556,
0.020784127,
0.0017179837,
-0.0053826496,
-0.03486464,
-0.017490868,
0.006952437,
0.011050715,
-0.022086794,
-0.03483537,
0.0074756993,
-0.03905074,
-0.0055216984,
-0.0416268,
0.018998448,
0.004142189,
0.0203743,
0.047774218,
0.03826036,
0.02463358,
-0.024135934,
-0.015822282,
0.016202837,
0.05102357,
-0.0005937015,
0.07646217,
0.07903823,
0.0077501377,
-0.025423964,
-0.014687938,
0.021018315,
-0.009484587,
-0.0000015901699,
-0.023052817,
0.009228446,
-0.0351281,
-0.0284684,
-0.022203889,
0.010414018,
0.00057769264,
-0.006560905,
-0.019144816,
-0.025277596,
-0.055004753,
0.011980146,
-0.037821256,
0.021032952,
0.024926316,
-0.016773669,
-0.008833254,
-0.03946057,
0.2554984,
0.05661479,
0.042680643,
0.0029950365,
0.028263485,
0.04434923,
0.022686899,
-0.0049581854,
0.012155787,
-0.006831684,
0.0014197608,
-0.024970226,
0.014343975,
0.026975455,
-0.022803994,
0.01801779,
-0.053628903,
-0.022686899,
-0.011270266,
-0.04874024,
-0.026946181,
0.020710943,
0.04429068,
0.024179844,
0.06926091,
-0.0032749637,
-0.0026675402,
-0.032083668,
0.025350781,
-0.032522768,
0.023199184,
-0.03972403,
0.01596865,
-0.007080508,
0.002610823,
0.04923789,
0.003970207,
-0.024179844,
-0.0057851593,
0.05403873,
-0.0070292796,
-0.033635158,
-0.0020033997,
0.0064511294,
-0.015866192,
0.004453219,
-0.012265562,
-0.039431296,
-0.0012715642,
-0.07810148,
0.019144816,
-0.09619246,
-0.012243607,
-0.04016313,
-0.038289633,
-0.0153246345,
-0.032347128,
-0.053745996,
-0.0007926693,
0.028834317,
0.013941466,
0.038055442,
-0.01627602,
0.00240225,
-0.04016313,
-0.009835869,
-0.053131256,
0.024223754,
0.00030005255,
-0.010948258,
-0.000009841186,
0.0013273666,
-0.02513123,
-0.0064840624,
0.026697358,
0.011058033,
-0.0063120807,
0.057610087,
-0.042944103,
-0.04762785,
0.012924214,
0.006645066,
-0.0074171526,
-0.01303399,
-0.0040543685,
0.038904373,
-0.06393315,
0.0031157895,
0.022438075,
0.015851555,
0.00014671014,
0.06323058,
-0.00030073864,
0.01631993,
0.013634095
] | Easy-to-use API with one line of code change to trace and optimize a TorchScript
model for inference in the cloud.
Out of the box performance optimizations for improved
cost-performance.
Support for Hugging Face transformers models built with either
PyTorch
or
TensorFlow. |
[
0.03321122,
0.0034747827,
-0.06953233,
-0.015197361,
0.026654059,
0.0189967,
-0.016546933,
-0.024659038,
0.020346275,
0.048525937,
0.005299273,
-0.025671218,
0.061141506,
-0.058941115,
0.000966338,
-0.0011322841,
-0.012175492,
-0.017940514,
-0.027768923,
-0.024262968,
0.0312162,
-0.0070045753,
-0.07170338,
-0.021959893,
-0.047821812,
0.01470594,
0.067713335,
-0.004298095,
0.08678339,
0.02159316,
-0.0041477354,
-0.035528965,
0.01942211,
-0.02361752,
-0.002662472,
-0.021871878,
0.030864138,
-0.018967362,
-0.020243589,
-0.048584614,
-0.0044997977,
0.007231949,
0.028135655,
-0.0336513,
-0.09757996,
0.020933045,
-0.010334499,
-0.007187941,
0.022091916,
-0.011845433,
-0.039372314,
0.01739775,
0.031685617,
0.04878998,
-0.02661005,
-0.038697526,
-0.018703315,
0.00250111,
-0.052926715,
-0.009916425,
0.056359325,
0.0308348,
0.024835069,
-0.024512345,
-0.000692206,
0.035910368,
0.0044411207,
-0.020082228,
-0.014676602,
-0.012212165,
0.00036237674,
0.020713005,
-0.053278778,
-0.04142601,
-0.018894017,
0.021710515,
0.017544445,
0.034736823,
0.011500706,
0.056036603,
0.009087611,
0.040927257,
-0.013459053,
0.010231814,
-0.015241369,
-0.00475651,
0.048936676,
-0.010994616,
-0.018527284,
-0.04283426,
-0.014126505,
0.017045688,
0.0052332613,
0.04961146,
0.021109076,
0.023162773,
-0.02000888,
0.045768116,
0.025744565,
-0.035734337,
0.012608236,
0.04060453,
-0.029925305,
0.033563282,
-0.04107395,
-0.031714957,
0.018072538,
0.016766973,
-0.026976783,
-0.001212965,
0.005196588,
0.0009727558,
0.012872282,
-0.0072062775,
0.0051562474,
0.010789246,
-0.017764483,
0.0061757616,
-0.06143489,
-0.009454343,
-0.009674381,
-0.020140905,
0.019686157,
-0.034531455,
0.022370633,
-0.017647129,
0.015857479,
0.01622421,
-0.016708296,
-0.016268218,
0.020771682,
0.01840993,
0.028223671,
0.047997843,
0.010092456,
-0.040956594,
0.011537379,
0.006216102,
0.0051085725,
-0.042482197,
-0.0073419684,
-0.005878709,
-0.011911445,
0.09188829,
-0.0023507501,
-0.0138844615,
-0.020815691,
-0.04620819,
-0.03981239,
0.0030952154,
-0.052339945,
-0.0059337188,
0.03822811,
0.012681582,
-0.03599838,
-0.019686157,
0.005592658,
0.015945494,
-0.011559383,
0.017544445,
-0.007862727,
0.0064544776,
-0.06747863,
0.070353806,
-0.014573917,
0.04864329,
-0.013305025,
0.010393176,
0.028473048,
-0.038873557,
0.01782316,
-0.020316936,
-0.002266402,
0.02464437,
0.017133703,
-0.0077380384,
0.07229015,
-0.0031337223,
0.021299776,
-0.02222394,
-0.01720705,
-0.030952154,
0.025187133,
0.02163717,
0.0023269125,
0.010092456,
0.004037716,
-0.0054899734,
0.02159316,
0.019055378,
0.023837559,
0.050110217,
-0.018585961,
0.009322319,
-0.046824303,
0.012593566,
-0.04785115,
0.023793552,
0.0061574248,
-0.02323612,
-0.016752303,
0.053161424,
-0.023500167,
-0.0030842135,
-0.022150593,
0.01031983,
-0.015769463,
0.043303676,
-0.006876219,
0.0032730803,
0.01901137,
-0.0027413194,
-0.02640468,
0.03139223,
0.033768654,
-0.014969987,
-0.03238974,
0.04345037,
-0.043949123,
-0.011398021,
0.04500531,
0.0123148495,
0.08161981,
-0.011669402,
0.032096356,
0.0065534953,
0.028120985,
0.012358857,
0.042804923,
0.025187133,
0.052017223,
0.04444788,
-0.003152059,
0.02703546,
0.007782046,
0.01662028,
0.025568534,
0.044095818,
0.018527284,
0.031949665,
-0.0025432843,
0.016268218,
0.055977926,
0.034267407,
0.0040120445,
-0.032976512,
-0.026742075,
0.0016017007,
-0.024893746,
0.03189099,
-0.069121584,
0.028341025,
0.04060453,
-0.033533946,
-0.049699478,
0.005577989,
-0.004378776,
0.042335507,
0.0030823797,
-0.017588452,
0.035616983,
0.0014531743,
-0.011669402,
-0.018380592,
0.013070317,
0.028091647,
0.013466387,
0.03189099,
-0.012021464,
-0.052545317,
-0.03904959,
-0.025509857,
-0.080094196,
0.009762397,
-0.07099926,
-0.024688376,
0.009865082,
-0.019935533,
0.039724376,
-0.020654328,
-0.02021425,
0.018307246,
-0.023734875,
0.037729356,
0.05031559,
0.024321645,
-0.05741551,
0.014595921,
-0.037113246,
0.028443709,
0.0017098865,
0.0020115233,
-0.015256038,
-0.021255769,
0.001556776,
0.0008168948,
-0.039695036,
-0.015241369,
-0.04110329,
0.029001141,
-0.013084986,
-0.0030292037,
0.02942655,
0.014383216,
-0.025964603,
0.010913935,
0.01619487,
-0.06425139,
0.067713335,
0.022546664,
-0.029015811,
0.023368143,
0.0216225,
0.023382813,
-0.019656818,
0.009351658,
0.02241464,
-0.0017419755,
-0.03206702,
-0.043714415,
-0.018908685,
0.011170647,
-0.004239418,
0.012600901,
-0.0018850008,
0.06894556,
-0.03705457,
-0.053190764,
0.004708835,
-0.008618195,
-0.052163914,
0.005460635,
-0.017251058,
0.0368492,
0.019598141,
0.05480438,
-0.040369824,
-0.0070852563,
-0.03705457,
0.0143905515,
-0.015769463,
-0.044565234,
0.011772087,
0.06331256,
0.033533946,
0.02702079,
0.04521068,
-0.06143489,
0.012094811,
-0.013730434,
-0.037377294,
0.013657087,
-0.025964603,
-0.022590673,
0.028605072,
0.02121176,
-0.020478297,
0.031098846,
0.011742748,
0.0075179995,
0.014493236,
0.047352396,
0.015402731,
-0.0035829686,
-0.043333016,
0.02062499,
0.02804764,
0.014595921,
0.03523558,
-0.05404158,
0.007628019,
0.026991451,
-0.049699478,
-0.012542224,
0.01361308,
-0.028150324,
-0.011706076,
0.017529774,
0.050990373,
-0.040135115,
0.027108805,
0.0037498313,
-0.008676872,
0.019803511,
0.033592623,
-0.009872417,
0.021387791,
0.024497677,
-0.024380323,
-0.0119774565,
0.012366192,
0.0028109984,
-0.016004171,
-0.0020170242,
-0.038286787,
-0.02163717,
0.019114055,
0.02382289,
0.03280048,
0.04884866,
0.06818275,
0.0011258663,
-0.022487987,
0.0096230395,
-0.0072832913,
-0.005141578,
-0.056799404,
0.03344593,
0.0020151907,
0.0019491789,
0.01802853,
-0.016488256,
0.0091169495,
0.03362196,
-0.023250788,
-0.06108283,
-0.015373392,
-0.016664287,
0.0011313673,
0.02402826,
-0.00565867,
-0.01921674,
-0.03101083,
0.002308576,
0.03749465,
-0.02942655,
0.0057613547,
-0.055743217,
-0.017295066,
0.013444384,
-0.020155573,
-0.036350444,
0.011339344,
0.009674381,
-0.044066478,
0.008427494,
0.056711387,
-0.019451449,
0.0012166323,
-0.04565076,
-0.03397402,
0.00097183895,
-0.027123475,
-0.021123745,
0.028546395,
0.029147834,
0.00081506115,
0.016004171,
0.01619487,
0.053513486,
0.011940784,
-0.037905388,
0.022708027,
-0.07170338,
-0.034003362,
-0.009182962,
-0.011772087,
-0.025744565,
0.042071458,
0.03344593,
-0.058148976,
-0.012600901,
0.061610922,
-0.038374804,
-0.048144534,
0.014375882,
0.026947444,
0.010488526,
0.045504067,
-0.015197361,
-0.0016759638,
0.03265379,
0.011537379,
-0.027358184,
0.003291417,
-0.015842808,
0.0075326688,
-0.008053428,
-0.019231409,
0.027754255,
-0.05943987,
0.007818719,
-0.035352934,
0.008896911,
0.013275687,
-0.04025247,
-0.010679226,
-0.015505415,
0.0018382425,
-0.014999325,
0.05586057,
0.017529774,
0.016781641,
0.023206782,
0.023705536,
-0.045416053,
-0.01920207,
-0.004235751,
0.016781641,
0.044330526,
0.034091376,
-0.043949123,
-0.021769192,
0.0069642346,
-0.017911175,
0.018512616,
-0.024042929,
-0.011948118,
-0.006421472,
-0.023485497,
-0.004690498,
0.016781641,
-0.005776024,
0.0004366399,
0.0017630626,
-0.052398622,
-0.011038624,
-0.03139223,
-0.009916425,
0.061141506,
-0.013554403,
-0.07041249,
-0.020889036,
0.03303519,
0.016590942,
0.039607022,
0.043479707,
-0.002721149,
-0.014830629,
-0.038726866,
0.04301029,
-0.059175823,
0.013811115,
-0.024248298,
-0.029441219,
0.0035921368,
0.0055303136,
0.016341563,
-0.019334095,
0.015490746,
-0.050990373,
0.016913665,
-0.0584717,
-0.024262968,
-0.029895967,
0.026859429,
-0.027284836,
0.041514028,
0.009872417,
-0.028678417,
0.0016383738,
-0.018116545,
0.034296747,
0.022253279,
-0.0379934,
0.009571697,
0.006773534,
0.008728214,
0.018923355,
-0.004191743,
0.020536974,
0.029866628,
-0.0124835465,
-0.0068688844,
-0.06624641,
-0.041308656,
-0.032008342,
0.017676467,
0.05424695,
-0.008530179,
0.009601035,
-0.028135655,
0.036027722,
-0.021739854,
0.018556623,
-0.03904959,
-0.01381845,
-0.037964065,
-0.068886876,
0.0532201,
-0.035528965,
0.008962923,
-0.004063387,
0.024629699,
0.043068968,
-0.045826793,
-0.013004306,
0.042306166,
-0.006168427,
0.0045401384,
-0.023045419,
0.052926715,
0.015960163,
-0.001793318,
-0.037700016,
0.024321645,
0.00056293316,
0.016957672,
-0.04761644,
-0.037171923,
-0.013018975,
0.021270437,
0.057356834,
0.00881623,
0.01582814,
0.019451449,
-0.013569072,
-0.065777,
0.016752303,
-0.017339073,
0.02005289,
0.03725994,
0.019803511,
-0.00626011,
0.05025691,
0.022972073,
-0.04186609,
-0.03206702,
0.03238974,
-0.023338804,
-0.037377294,
0.0019033374,
-0.0057026776,
0.0004836274,
-0.04664827,
-0.0030292037,
0.038169432,
-0.004452123,
-0.003957035,
-0.00092049653,
0.010701231,
-0.014441893,
0.017661799,
0.021769192,
-0.01662028,
-0.018644638,
0.021754524,
-0.014067828,
-0.02724083,
0.005559652,
0.030394722,
-0.051137067,
-0.021739854,
-0.034707487,
-0.021402461,
-0.002130711,
-0.0027871607,
0.059469208,
0.013033644,
0.027504876,
0.0336513,
-0.009241639,
0.021886546,
0.006659847,
-0.014045823,
0.012864947,
-0.027944954,
-0.033592623,
-0.018292576,
0.0028825111,
-0.015593431,
0.017984523,
-0.053337455,
0.0051562474,
0.02423363,
0.058148976,
-0.027167482,
-0.054687027,
-0.020683667,
-0.013583741,
-0.009879751,
-0.009072942,
-0.026008612,
-0.04726438,
0.040369824,
-0.006920227,
-0.059615903,
0.00851551,
0.0076720268,
-0.033592623,
-0.023910906,
-0.033181883,
-0.016326895,
-0.018380592,
0.006843213,
-0.0064984853,
-0.0460615,
-0.012982301,
-0.0010167636,
-0.002007856,
0.01763246,
0.026067289,
0.013862458,
0.0052479305,
0.028781103,
-0.03822811,
0.00088978274,
-0.029925305,
-0.0075033302,
-0.008508175,
-0.0054276288,
0.007231949,
-0.012468877,
0.019598141,
-0.0054533,
0.024174953,
0.012380862,
-0.01662028,
0.05022757,
-0.036145076,
0.008874907,
-0.005834701,
0.050843682,
-0.054775044,
-0.0050902357,
-0.03640912,
-0.023485497,
-0.029866628,
0.03922562,
0.0026074622,
0.068006724,
-0.017925845,
0.016913665,
0.011148643,
0.016532265,
0.035206243,
0.029558573,
0.04224749,
0.014940648,
-0.025729895,
-0.042218152,
-0.0015824472,
0.0528387,
-0.017691137,
0.03282982,
0.052134577,
0.0014110002,
0.004525469,
0.014141174,
0.022062577,
0.043802433,
0.026331335,
-0.011310006,
0.007892066,
0.0032657457,
-0.010708565,
-0.006865217,
-0.04403714,
-0.029778613,
0.0528387,
-0.04826189,
0.011442029,
-0.029089157,
-0.01521203,
-0.0067918706,
0.037876047,
0.016180202,
0.014317205,
0.0015824472,
-0.022311956,
-0.0007472158,
-0.033328574,
-0.059967965,
-0.011816095,
0.023661528,
-0.03162694,
-0.028942464,
0.0460615,
0.038873557,
0.023661528,
-0.0017300567,
-0.033592623,
-0.020991722,
0.016693626,
0.04482928,
-0.046530917,
0.013950474,
-0.043068968,
0.03206702,
-0.03344593,
-0.012292846,
0.0024754389,
0.032008342,
0.04110329,
0.003113552,
-0.0011396187,
0.005673339,
0.003606806,
-0.015901485,
-0.00615009,
0.01904071,
0.028355693,
0.002609296,
0.019979542,
-0.0045804786,
0.06818275,
0.027328845,
0.023162773,
-0.019334095,
0.02022892,
0.0100117745,
-0.055625863,
-0.04829123,
0.002286572,
0.030336045,
0.026742075,
-0.023866897,
-0.017265728,
-0.01581347,
-0.018806001,
-0.005655003,
0.036702506,
0.035881028,
-0.016678957,
-0.012307515,
-0.004261422,
0.008882241,
-0.002205891,
-0.04459457,
-0.021783862,
0.039489668,
0.035206243,
-0.00026267156,
0.0052112574,
-0.00575402,
0.044066478,
0.01619487,
0.0015833641,
0.024747053,
-0.016561603,
0.022179931,
-0.014881971,
0.020360943,
-0.01799919,
-0.011045958,
0.01210948,
-0.0019345096,
-0.067126565,
0.04943543,
-0.0019895195,
-0.037142586,
0.02703546,
-0.0347955,
-0.043127645,
-0.041924767,
0.003843348,
-0.0548924,
0.023705536,
-0.0045878133,
-0.03503021,
-0.036115736,
-0.0040303813,
-0.033093866,
0.027724916,
-0.000026673999,
0.05189987,
-0.014977322,
0.07610416,
0.025201801,
-0.00041601126,
0.0436264,
0.009887086,
-0.031568263,
0.0038470153,
0.009447008,
-0.029925305,
0.020918375,
-0.02941188,
-0.057210144,
0.020962384,
-0.0054899734,
-0.04242352,
-0.04028181,
0.012996971,
0.010363838,
-0.029309196,
0.019114055,
0.064016685,
0.056124616,
0.0016933836,
0.0023214116,
-0.006516822,
-0.049816832,
-0.008046093,
-0.0034766165,
0.02741686,
-0.078392565,
-0.013811115,
-0.023294797,
-0.042130135,
-0.0008118523,
-0.038873557,
-0.012571562,
-0.0013248182,
0.018541954,
0.03825745,
0.034326084,
0.014617925,
-0.027504876,
-0.0460615,
0.034355424,
0.038198773,
0.021182422,
0.056770064,
0.057034113,
-0.009278311,
-0.038550835,
0.00811944,
0.027519545,
0.018967362,
-0.03781737,
-0.033915345,
0.0030805462,
-0.024673708,
-0.03221371,
0.0018868345,
-0.007606015,
0.015564092,
-0.02644869,
-0.027167482,
-0.010473857,
-0.065190226,
-0.010583877,
-0.025099117,
0.017515104,
-0.03866819,
-0.03544095,
0.030512076,
-0.064603455,
0.25583202,
0.06683318,
0.0066745165,
0.011214655,
0.02502577,
0.03238974,
0.04083924,
0.0043090973,
0.021065067,
-0.018894017,
-0.020199582,
-0.019920865,
0.027695578,
0.0025249477,
-0.055449832,
0.048408583,
-0.042775583,
0.024204291,
-0.009755063,
-0.029455889,
-0.025509857,
0.015798802,
-0.010055783,
0.018512616,
0.055449832,
-0.0020426954,
0.010965277,
-0.061141506,
0.013957808,
-0.031098846,
-0.0128209395,
-0.01461059,
0.02565655,
-0.032712467,
0.01451524,
0.024512345,
-0.0062894486,
-0.024791062,
0.007092591,
0.065424934,
0.0027926618,
-0.05785559,
0.030453399,
-0.017603122,
-0.017324405,
0.016869657,
-0.003199734,
0.025773903,
0.04987551,
-0.055185784,
0.02041962,
-0.06466213,
0.03482484,
-0.046237532,
-0.041161966,
0.014933314,
-0.103975765,
-0.06419271,
0.0073419684,
0.025568534,
-0.01739775,
0.009351658,
-0.028649079,
0.030101337,
-0.013451718,
0.007037581,
0.006659847,
0.040956594,
0.0045108,
-0.013451718,
0.03265379,
0.0027083135,
-0.059117146,
-0.060554735,
0.03544095,
0.04303963,
0.003091548,
0.047088347,
-0.02920651,
-0.013569072,
0.0062747793,
-0.0028403369,
0.033592623,
0.00056568364,
0.023470828,
0.019847518,
-0.030130675,
-0.010657223,
0.005416627,
0.008566852,
0.037142586,
0.028018301,
0.017969852,
-0.027680907,
-0.0020757013
] |
Implications
Transformers models based on the BERT (Bidirectional Encoder Representations from
Transformers)
architecture, or its variants such as
distilBERT and
roBERTa run best on
Inf1 for non-generative tasks such as extractive question answering, sequence
classification, and token classification. However, text generation tasks can still be
adapted to run on Inf1 according to this AWS Neuron MarianMT
tutorial.
More information about models that can be converted out of the box on Inferentia can be
found in the Model Architecture
Fit
section of the Neuron documentation.
Dependencies
Using AWS Neuron to convert models requires a Neuron SDK
environment
which comes preconfigured on AWS Deep Learning
AMI.
Converting a model for AWS Neuron
Convert a model for AWS NEURON using the same code from Using TorchScript in
Python to trace a BertModel. Import the
torch.neuron framework extension to access the components of the Neuron SDK through a
Python API:
python
from transformers import BertModel, BertTokenizer, BertConfig
import torch
import torch.neuron
You only need to modify the following line:
diff
- torch.jit.trace(model, [tokens_tensor, segments_tensors])
+ torch.neuron.trace(model, [token_tensor, segments_tensors])
This enables the Neuron SDK to trace the model and optimize it for Inf1 instances.
To learn more about AWS Neuron SDK features, tools, example tutorials and latest
updates, please see the AWS NeuronSDK
documentation. |
[
0.026626173,
0.028153487,
-0.025480688,
0.023100624,
-0.05259051,
-0.04276479,
0.025366139,
0.024946127,
0.016189529,
0.05477966,
-0.003376,
0.046633985,
0.047754016,
-0.0056224247,
-0.028204398,
0.01211669,
0.015985886,
-0.03909924,
-0.045590322,
-0.012097599,
-0.029146241,
0.008349316,
-0.06801638,
-0.012727616,
-0.00040967015,
0.019333249,
-0.013822191,
-0.01741138,
0.055492405,
0.03581551,
-0.05584878,
-0.023418814,
-0.005969252,
-0.050961375,
-0.02996081,
-0.012581249,
0.026931636,
0.012403062,
-0.047346734,
-0.02632071,
-0.031004474,
0.007165648,
0.04357936,
-0.029375339,
-0.052946884,
-0.00018196514,
-0.026524352,
-0.006771092,
-0.027033458,
-0.008393863,
0.032429967,
0.053405076,
0.00020821585,
-0.04368118,
-0.049357697,
-0.004995589,
-0.027644383,
-0.02050419,
-0.0029750804,
0.007961124,
-0.02904442,
-0.013274903,
0.008050217,
-0.052234136,
0.03128448,
0.03507731,
-0.031589944,
-0.011900322,
-0.014318569,
0.014547666,
-0.043019343,
0.0047187638,
-0.05205595,
-0.039430156,
-0.018455043,
0.034619115,
0.027797114,
0.018862328,
-0.048135843,
0.009895721,
0.024169743,
0.02423338,
-0.021751497,
0.0005870613,
-0.03726646,
-0.055492405,
0.025926154,
0.00036929973,
0.0063415347,
-0.037597377,
0.026600718,
0.038641043,
-0.005635152,
-0.039277423,
-0.002384837,
0.012657614,
0.0036750992,
0.041212022,
0.0013531047,
0.010780291,
0.034950033,
0.06272169,
0.0030339456,
0.04923042,
-0.045895785,
0.0071783755,
-0.012371243,
-0.018569592,
-0.024322474,
-0.053863272,
-0.02845895,
-0.005272415,
0.02840804,
0.041135654,
-0.034797303,
0.0042351144,
-0.04340117,
-0.012243967,
0.0029703074,
-0.027033458,
0.014611304,
0.0026680266,
-0.01575679,
-0.03459366,
0.020198727,
-0.055339675,
0.019193245,
0.03652826,
-0.02269334,
0.024360657,
-0.012791255,
-0.014318569,
0.026906181,
0.034211833,
-0.025391594,
-0.0003919708,
-0.009380253,
0.022082414,
-0.020542372,
0.013453091,
-0.008457501,
-0.012212148,
-0.015565875,
0.060074348,
-0.0064879023,
-0.010067544,
0.013325814,
-0.04431756,
-0.012231239,
0.017551383,
-0.039302878,
-0.016800454,
-0.030851742,
0.0359937,
-0.025060676,
0.0047601284,
0.0009020698,
0.05712154,
0.0015527692,
0.0656745,
-0.01820049,
0.043757543,
-0.03535732,
0.029604435,
-0.018162308,
0.042052045,
-0.038997415,
-0.053048704,
0.019231427,
-0.0535069,
-0.02840804,
0.025824333,
0.019524163,
0.0013117399,
0.07524566,
0.03993926,
0.037011907,
0.043019343,
0.026906181,
0.007172012,
0.021764224,
-0.00357646,
0.021535126,
0.022935165,
-0.021929683,
0.0060774367,
-0.0014239021,
0.023584273,
0.0043242075,
0.046583075,
-0.0153495055,
0.031309936,
-0.041924767,
0.045997605,
-0.011550312,
-0.0057878834,
-0.04431756,
0.024729759,
0.016049525,
-0.07982761,
-0.03640098,
0.05111411,
-0.036859177,
-0.00451194,
0.019396886,
0.008572049,
-0.055441495,
0.051903218,
0.014751307,
-0.009227522,
0.050375905,
0.0044228467,
0.020275092,
0.011626678,
0.036273707,
-0.045717597,
0.007833848,
0.012937622,
-0.015094953,
0.027466197,
0.030571735,
0.008311134,
0.00073859945,
-0.00077916874,
0.015044042,
-0.011868502,
0.016316803,
0.020593284,
-0.04271388,
0.0011462809,
0.00630017,
0.023113351,
0.0067201816,
0.059412513,
0.048823137,
0.018544137,
0.016316803,
0.073718354,
0.04345208,
0.035433684,
-0.00925934,
0.018811416,
-0.022616973,
0.0006240509,
-0.019498708,
-0.030826287,
-0.034313653,
-0.006930187,
-0.03225178,
0.0010770746,
-0.05671426,
0.027822569,
0.006790183,
-0.004209659,
-0.04436847,
0.008565686,
-0.014738579,
0.023495179,
-0.025506143,
0.033728182,
0.01793321,
0.037521012,
-0.029248063,
0.016138617,
0.06959461,
0.031411756,
-0.012021233,
-0.0034364564,
0.0056096967,
-0.021764224,
-0.03887014,
-0.055288766,
-0.06333262,
-0.025226135,
-0.025747968,
-0.024946127,
0.011728498,
-0.06587814,
0.008031126,
-0.05686699,
-0.0033950915,
0.0024691576,
-0.0043019345,
0.03535732,
0.027288008,
-0.008451137,
-0.012269422,
0.020898746,
-0.047270365,
0.023176989,
-0.0021986957,
-0.046888538,
-0.015311322,
0.0017834572,
0.02856077,
-0.013013988,
-0.013593094,
-0.0018057305,
-0.045844875,
-0.00083922717,
-0.010105727,
0.016291348,
0.007032008,
0.007961124,
-0.04436847,
0.04095747,
0.046353977,
-0.030189905,
0.033600908,
0.0116521325,
-0.031360846,
0.034517296,
-0.011512129,
0.040753826,
-0.059565242,
0.06149984,
0.06256896,
-0.023762459,
-0.031157205,
-0.018111398,
-0.025824333,
0.019333249,
-0.0022957437,
-0.038742863,
-0.035000946,
0.04821221,
-0.025264319,
-0.048288576,
0.022069687,
-0.06766001,
-0.04368118,
-0.008680235,
0.0062206225,
0.02919715,
0.010315733,
0.011327579,
-0.064910844,
0.001030937,
-0.0017070916,
-0.016915003,
0.021687858,
-0.015196774,
0.011302123,
0.05910705,
-0.015769517,
0.013033079,
0.0074520195,
-0.028840778,
0.011162119,
-0.025111586,
0.02366064,
0.017716842,
0.0025359776,
0.01820049,
0.008101128,
0.056103334,
-0.057579737,
-0.005399691,
-0.019511435,
-0.008482956,
0.004699672,
0.024640664,
0.024653392,
-0.007566568,
-0.03250633,
-0.029146241,
0.019295067,
0.0042923884,
0.025213407,
-0.07183467,
0.07061282,
-0.021509672,
-0.04286661,
0.020211454,
-0.01398765,
-0.02675345,
0.02802621,
0.03059719,
0.01420402,
-0.028713502,
-0.057630647,
-0.0070383716,
-0.027058912,
0.0695437,
0.016813181,
0.03978653,
0.005896068,
-0.036884632,
-0.021064205,
0.03151358,
-0.009342071,
0.02023691,
-0.001958462,
-0.01510768,
-0.017525928,
-0.05111411,
0.042739335,
0.068372756,
0.018862328,
0.0053869635,
0.048721313,
-0.0053869635,
0.034950033,
0.013784008,
0.017424107,
-0.06363808,
-0.03978653,
0.019142335,
0.07290378,
0.017844118,
-0.035102766,
-0.041822948,
-0.013936739,
0.0010460509,
-0.042459328,
0.01858232,
0.005075137,
-0.008311134,
0.005371054,
0.04159385,
-0.056968812,
-0.019065969,
-0.08670052,
0.0144713,
0.053048704,
-0.0031294026,
-0.01211669,
-0.03892105,
0.02685527,
0.022095142,
0.0083874995,
-0.00062086905,
-0.019078696,
-0.03594279,
-0.067507274,
0.021115115,
0.044444837,
-0.05269233,
-0.016189529,
-0.0518014,
-0.0008304769,
0.0035891877,
0.024857035,
0.0015233365,
-0.04004108,
-0.015502237,
-0.003932833,
0.004543759,
0.027898936,
0.027288008,
0.01532405,
-0.069950975,
-0.00060973235,
-0.047983114,
0.013631277,
-0.012205784,
-0.00411102,
0.013834919,
0.027644383,
0.013160355,
0.0021318756,
0.01724592,
0.02685527,
-0.011015751,
-0.021229664,
0.0035541868,
-0.0025534779,
-0.014674941,
0.014216747,
0.017589565,
-0.01853141,
0.01814958,
0.014178565,
-0.016533174,
0.011556676,
-0.028051667,
-0.002819167,
-0.041033834,
0.024513388,
-0.0053296895,
-0.05905614,
-0.0088902395,
0.0052946885,
0.028891688,
-0.03255724,
-0.053201437,
-0.04345208,
0.01206578,
-0.0026266617,
0.055441495,
-0.0077765733,
-0.0037991935,
0.0046583074,
-0.038717408,
-0.043732088,
0.0072801965,
0.015540419,
-0.0060965284,
0.05274324,
0.009806628,
-0.0029098513,
-0.029349882,
0.0035732782,
0.04024472,
-0.03444093,
0.022973347,
-0.06037981,
0.0132494485,
-0.023724277,
-0.01340218,
-0.055136032,
0.015451326,
0.0020634648,
0.017258648,
0.030240817,
0.017220465,
0.02558251,
-0.023469724,
-0.04164476,
0.035586417,
-0.02167513,
-0.024169743,
0.012008506,
-0.014165836,
0.044241194,
0.0106021045,
0.009431164,
-0.05175049,
-0.033168167,
-0.07519475,
0.01692773,
-0.04869586,
0.0144713,
-0.03909924,
-0.012046689,
0.005803793,
0.020911474,
0.016533174,
-0.011143028,
0.010614832,
-0.041135654,
-0.011512129,
-0.040270176,
0.020186,
0.020198727,
0.013771281,
-0.040015627,
0.030419003,
-0.004041018,
0.023240628,
0.020975111,
0.03973562,
0.020186,
0.05467784,
-0.019944174,
-0.042841155,
0.027873479,
0.008158402,
0.011193939,
-0.0042223865,
-0.024004284,
0.011594858,
-0.044877574,
0.06572541,
-0.048823137,
0.014840401,
-0.025633419,
0.005011499,
0.043782998,
-0.036273707,
-0.0054219645,
0.0013244676,
0.023049712,
-0.006599269,
0.01975326,
-0.0004625693,
0.0073883813,
0.0056096967,
-0.027669838,
0.03186995,
0.009469346,
-0.043859366,
-0.036706444,
0.018391406,
0.026117068,
-0.049484972,
0.06791456,
0.060532544,
-0.023126079,
-0.021395123,
0.023367904,
0.0340591,
0.04077928,
0.031259026,
-0.0024246108,
0.00074138364,
-0.024729759,
-0.018811416,
-0.011734862,
-0.010659379,
-0.037139185,
-0.012784891,
0.01425493,
-0.053812362,
0.056154244,
0.01161395,
-0.05024863,
-0.042968433,
0.02616798,
0.00007512276,
0.012447609,
-0.012842164,
0.017449562,
-0.014547666,
-0.011658496,
-0.044648476,
-0.039302878,
-0.006611997,
0.06964552,
-0.046532165,
-0.045361225,
-0.0057528825,
0.06893277,
-0.03535732,
-0.047117636,
-0.031895407,
0.039175604,
0.0043910276,
-0.029808078,
-0.0048555858,
-0.014051288,
-0.05722336,
0.034924578,
0.03523004,
-0.005145139,
0.00043075025,
0.0890424,
0.02205696,
-0.038539223,
-0.012880348,
0.015362233,
-0.035637327,
0.008202949,
-0.016571356,
0.01851868,
-0.033575453,
0.0055237855,
0.05681608,
-0.034950033,
-0.028586226,
0.037368283,
-0.002123921,
0.035968244,
-0.007693844,
0.021916956,
0.016965913,
-0.05045227,
-0.026117068,
-0.0062047127,
-0.014089471,
-0.018085944,
0.061652575,
0.0006371763,
0.046964902,
0.02738983,
0.04650671,
-0.05681608,
-0.047575828,
-0.039175604,
-0.051903218,
0.02733892,
0.042968433,
0.003916924,
0.0003291282,
0.03517913,
-0.0015503827,
-0.06368899,
-0.033728182,
-0.021586036,
0.010481192,
0.019740533,
-0.0603289,
0.04286661,
-0.032811794,
0.009685716,
-0.022018775,
0.00029671256,
0.00026091613,
0.010309369,
-0.0071592843,
-0.00033549202,
0.03342272,
0.025875244,
-0.0045946697,
0.04363027,
-0.03589188,
0.032124504,
-0.028789869,
0.014764035,
-0.01372037,
0.036910087,
0.0028318947,
-0.005336053,
0.022362422,
-0.0038691952,
-0.022731522,
-0.05248869,
0.036859177,
0.03892105,
0.032379057,
0.0063447165,
-0.06037981,
0.015985886,
-0.03326999,
-0.0245643,
0.008928423,
-0.007534749,
-0.011906685,
0.034288198,
0.01634226,
0.046252158,
0.009265705,
0.031691764,
0.031055383,
0.027517106,
0.014191292,
-0.02135694,
0.014000378,
0.026575262,
-0.008680235,
-0.013567639,
0.016520446,
-0.010824838,
-0.051317748,
0.028840778,
0.03449184,
0.012912166,
0.0029782623,
0.016507719,
0.0037005544,
0.048161298,
0.046048515,
-0.0044228467,
-0.014216747,
-0.0052596875,
0.005100592,
-0.0055587864,
-0.08965333,
-0.0069556423,
0.013542184,
-0.020160545,
-0.011009388,
-0.010462101,
-0.025302501,
0.01814958,
-0.03647735,
0.006226986,
-0.027160732,
-0.017436834,
0.013211265,
0.0037196458,
-0.053354166,
-0.010417554,
-0.007229286,
0.05228505,
-0.023469724,
-0.03983744,
0.019269612,
0.025111586,
-0.0037101002,
-0.012498519,
-0.017805936,
-0.0103730075,
-0.0010563921,
0.014178565,
-0.03566278,
0.0065865414,
-0.03074992,
0.011270304,
-0.0053837816,
0.021496944,
-0.028382584,
0.038055573,
-0.011550312,
0.016953185,
-0.041517485,
0.03993926,
0.014827673,
0.0069556423,
0.044597566,
-0.015845882,
0.024729759,
-0.00025335912,
-0.012899439,
0.034288198,
0.04416483,
0.035433684,
0.03731737,
-0.009399344,
0.051241383,
0.017093189,
-0.05554332,
-0.01300126,
0.050375905,
-0.0117985,
-0.009100245,
-0.0060169804,
-0.030368092,
0.027288008,
0.018073214,
0.017844118,
0.042892065,
-0.036757357,
-0.029298972,
-0.023431541,
-0.013618549,
0.021713313,
0.019384159,
-0.013974923,
0.00011305703,
0.0060106167,
-0.0052533234,
0.02632071,
0.01612589,
-0.00027185393,
0.04217932,
0.0535069,
0.035382774,
0.021127842,
0.000894115,
0.023787914,
-0.030088084,
0.029858988,
-0.011155755,
-0.006398809,
-0.018684141,
0.018505953,
-0.043273896,
0.026677083,
0.011970323,
0.013771281,
-0.004820585,
0.0003092413,
-0.021318758,
-0.030291727,
0.019625984,
-0.024895217,
0.0107166525,
0.018684141,
-0.043172073,
-0.012364879,
-0.021738768,
-0.017818663,
0.017118644,
0.03293907,
0.038590133,
-0.010086636,
0.11607586,
0.04709218,
0.057427004,
0.020618739,
0.024704304,
-0.038030118,
-0.01537496,
0.036808267,
-0.024309747,
-0.017309558,
-0.0192187,
-0.045132127,
0.037979208,
0.031309936,
0.033091802,
-0.0279753,
-0.0028780322,
0.030444458,
-0.013809464,
-0.0020141453,
0.083493166,
0.0032439511,
0.0028000756,
-0.02675345,
-0.056612436,
-0.02147149,
-0.03230269,
-0.008724781,
0.04737219,
-0.0054919664,
-0.034466386,
-0.0008980924,
-0.053150523,
0.0029893988,
0.0019616438,
-0.023126079,
-0.024678849,
0.01612589,
-0.015871337,
0.03444093,
-0.002879623,
0.015285867,
0.002882805,
0.06109256,
0.057783376,
0.014127654,
0.07208922,
0.02861168,
0.0045278496,
0.017271375,
-0.02114057,
0.02215878,
0.0023005167,
-0.022973347,
-0.017500473,
0.0051196837,
-0.036171887,
-0.04276479,
0.009112973,
0.023291538,
-0.00377692,
0.0036337345,
-0.023342447,
-0.09352253,
-0.055492405,
0.0069683697,
-0.03080083,
0.050579548,
0.033168167,
-0.008132947,
0.02621889,
-0.017398652,
0.17828844,
0.0690855,
0.030851742,
0.01799685,
0.0001380151,
0.0090493355,
0.038946506,
0.0042669335,
-0.03202268,
-0.046226703,
0.020211454,
-0.0014716306,
-0.005803793,
0.005880159,
-0.017856846,
0.051266838,
-0.03342272,
-0.01260034,
-0.012422154,
0.004674217,
-0.027033458,
0.0464558,
-0.010022998,
0.007916577,
0.028280763,
-0.0076429336,
-0.012021233,
-0.04953588,
0.018085944,
-0.020478735,
0.03074992,
-0.0080884,
0.012498519,
-0.008533867,
-0.026931636,
0.005638334,
0.008902968,
-0.0021064205,
-0.01836595,
0.002426202,
-0.01980417,
0.008482956,
0.0127021605,
-0.0042860247,
-0.014114927,
0.019231427,
0.012753071,
-0.030393548,
0.016151344,
-0.06506357,
0.008794783,
-0.04352845,
0.018340494,
-0.04650671,
-0.03897196,
-0.0029655346,
-0.013274903,
-0.009221158,
0.036502805,
0.013414907,
0.014013105,
0.010474828,
0.016214984,
0.0096666245,
-0.026957091,
0.031208115,
0.012231239,
0.012447609,
-0.010379371,
0.029553525,
-0.018302312,
0.025951609,
-0.020033268,
-0.008508411,
0.043197528,
0.043070253,
0.023877008,
0.01420402,
-0.010723016,
-0.082576774,
-0.03762283,
0.009723899,
-0.02424611,
-0.028840778,
0.004486485,
0.02488249,
-0.04485212,
0.029909898,
-0.0016975458,
0.038310125,
0.03268452,
0.09520257,
-0.024360657,
0.014878583,
-0.017055005
] | Training on TPU with TensorFlow
If you don't need long explanations and just want TPU code samples to get started with, check out our TPU example notebook! |
[
0.027570568,
0.01625703,
-0.05542362,
0.041158114,
-0.015268331,
-0.00526482,
0.019618606,
-0.0128601445,
0.008855915,
0.036016878,
-0.014886976,
0.018799398,
0.044802174,
-0.04468918,
-0.0068785176,
0.007245749,
0.021002784,
-0.022994306,
-0.066723034,
-0.01605929,
0.023898259,
0.0076341657,
-0.045903865,
-0.0138629675,
-0.022288091,
0.031836096,
0.009053655,
-0.022415211,
0.06903941,
0.040084668,
-0.039350204,
-0.0003016855,
0.0054413737,
-0.058078982,
-0.0006192608,
0.003813552,
-0.0052365717,
0.024646845,
-0.080960296,
-0.043192007,
-0.011574836,
0.007330494,
-0.0012146869,
-0.013665227,
-0.030706154,
0.014675112,
0.0010266576,
-0.028163787,
0.00705154,
-0.017838947,
-0.0014486201,
0.058191977,
-0.028954746,
0.024152495,
-0.06559309,
-0.0259604,
-0.0073658046,
0.007048009,
-0.011899694,
0.00090307026,
-0.007528234,
-0.00920196,
-0.006475976,
-0.057852995,
0.02771181,
0.009759868,
0.00078963477,
-0.007069195,
-0.018714653,
-0.008947723,
-0.045932114,
0.0020374255,
-0.024463229,
-0.06480213,
-0.022090353,
0.07971736,
0.002364049,
0.03788128,
-0.0065677837,
0.006264112,
0.04833324,
0.031299375,
-0.018531037,
-0.015508444,
-0.026878478,
-0.030112935,
0.068869926,
0.0045374203,
-0.008340379,
-0.059208926,
0.009985857,
0.012916641,
-0.025296561,
0.027189212,
0.014173701,
0.020268323,
-0.024957579,
0.043163758,
-0.0077895327,
0.008107329,
0.046355844,
0.068361446,
-0.019053636,
0.07152528,
-0.004710443,
0.011362973,
0.044434942,
0.003102042,
-0.06180779,
-0.03827676,
-0.022386963,
-0.0003462652,
0.0024629189,
-0.002125702,
0.0042302175,
-0.003926546,
-0.03675134,
-0.0048057814,
-0.0031761944,
0.0016887325,
0.007471737,
-0.010063539,
0.0061016832,
0.023192044,
0.056073338,
-0.044802174,
0.018855896,
0.019519735,
0.0050141145,
0.0077259736,
0.0021398263,
0.016426522,
0.011935005,
0.04833324,
-0.008714672,
-0.009053655,
-0.022273967,
0.028926497,
0.021002784,
0.010713256,
-0.027273959,
-0.013629917,
-0.018050812,
0.07225975,
-0.017838947,
-0.0022669449,
0.011151108,
-0.09067779,
0.0027701217,
0.022669448,
-0.0037782413,
-0.013891215,
-0.019336121,
0.027853053,
-0.051158093,
-0.007584731,
-0.025480177,
0.054180685,
0.002651831,
0.04364398,
-0.020211825,
0.005091798,
0.0197316,
0.03350276,
0.0071398164,
0.053050745,
-0.058756948,
-0.04412421,
-0.019505613,
-0.03175135,
-0.027372828,
0.01867228,
-0.020861542,
-0.019703351,
0.040706135,
0.04661008,
0.011906756,
0.016101664,
-0.021200523,
-0.02135589,
0.018926516,
-0.025169443,
0.0055896784,
0.01231636,
-0.026807858,
0.0004449144,
-0.009371451,
-0.012754212,
0.00956919,
0.02281069,
-0.0049717417,
0.012005626,
-0.06299423,
0.0021045157,
-0.059830394,
0.004456206,
-0.021723121,
-0.0006347092,
0.004353805,
-0.0635027,
0.0045374203,
0.034999933,
-0.008580492,
-0.007895465,
0.01261297,
-0.005399001,
-0.0078177815,
0.052259784,
-0.019773973,
0.02887,
0.05039538,
0.00016673256,
0.020649677,
-0.0025052917,
0.016045166,
-0.031016888,
0.0014706892,
-0.006292361,
-0.014336131,
0.018022563,
0.027372828,
0.0110593,
0.028672261,
0.002625348,
0.0011776107,
0.0028760538,
0.015056468,
0.014703361,
-0.0051659504,
0.008665238,
0.012598845,
0.08265521,
0.0038029586,
0.03932196,
0.016878499,
0.013114382,
-0.017104486,
0.05237278,
0.029011242,
0.008283882,
-0.049039453,
-0.020183576,
0.02307905,
-0.0068608625,
0.027231585,
-0.035338916,
-0.0058086044,
-0.0023552214,
-0.0634462,
0.06067785,
-0.050903857,
0.03429372,
-0.011836135,
-0.0013320949,
-0.035734393,
-0.024449104,
-0.0462146,
-0.0016657807,
-0.0063523888,
-0.040367153,
0.03002819,
0.026271135,
0.007824844,
-0.028163787,
0.07050834,
0.0040183538,
0.022062104,
0.029293729,
-0.02704797,
-0.01844629,
-0.014194888,
-0.039971672,
-0.035451908,
-0.027372828,
-0.031101635,
-0.04663833,
-0.0031161662,
-0.030338924,
0.024406733,
-0.032796547,
-0.015353077,
0.02076267,
-0.017923694,
0.01820618,
0.026539497,
0.039632693,
-0.051299334,
-0.011504215,
-0.021652501,
0.008644051,
-0.018686404,
-0.032881293,
-0.016073415,
-0.006094621,
0.024745714,
0.002667721,
0.021539506,
-0.0020939226,
-0.014336131,
0.0041101617,
-0.01628528,
0.010169472,
-0.0032468156,
0.020635553,
-0.04310726,
0.02591803,
0.019590357,
0.0047492846,
0.038192015,
0.016045166,
-0.011433594,
0.0046327594,
-0.025607295,
0.038135517,
-0.026468875,
0.06254225,
0.03776829,
0.0049505555,
-0.03870049,
-0.02231634,
-0.042598788,
-0.0023146141,
0.0008827666,
-0.053559218,
0.007429364,
0.05347447,
-0.043022513,
-0.05336148,
0.0037358685,
-0.04564963,
-0.014187826,
0.009604501,
0.013820594,
0.044406693,
0.031497113,
0.0030349516,
-0.039547946,
-0.016596014,
-0.018658156,
-0.024081875,
0.041638337,
-0.020014085,
-0.000117959695,
0.023474531,
-0.05658181,
0.013594606,
0.043954715,
-0.017132735,
-0.008269758,
-0.045508385,
0.015706183,
0.0037288063,
0.02204798,
0.030338924,
0.014039521,
0.019350246,
-0.03519767,
0.011892633,
-0.010812126,
0.00546256,
0.03689258,
0.048559226,
0.0036299364,
-0.0028230876,
-0.031864345,
0.024519727,
-0.026581869,
0.019392617,
0.030734403,
-0.058417965,
0.045367144,
-0.014152515,
-0.03115813,
0.016299404,
-0.018714653,
-0.059717398,
0.02963271,
0.022853063,
0.020014085,
-0.014124266,
-0.0337005,
0.004463268,
-0.015550817,
0.024590347,
0.012648281,
0.015353077,
-0.0132415,
-0.008298007,
0.0014636271,
0.017627085,
-0.010790939,
0.03714682,
-0.0027789494,
0.03155361,
0.009117214,
-0.018418044,
0.034406714,
0.049067702,
0.0035187078,
-0.020663802,
0.061299317,
0.036045127,
0.018149681,
0.039745685,
0.0077612842,
-0.06084734,
-0.0066384054,
0.021412387,
0.033756997,
0.015875675,
-0.03350276,
-0.04446319,
-0.012351671,
-0.021214647,
-0.0015218897,
0.02721746,
0.010910995,
-0.015946297,
0.029717457,
0.028601639,
-0.009442072,
-0.056807797,
-0.11011278,
0.017189233,
0.025875656,
0.012838958,
-0.028375652,
-0.041271105,
0.010105913,
0.025748538,
-0.010564951,
-0.024124246,
-0.005776825,
-0.025367182,
-0.026539497,
0.057457514,
0.034547955,
-0.013799408,
-0.036581848,
-0.06615806,
0.016596014,
0.01731635,
0.03158186,
-0.04347449,
-0.019307872,
-0.01923725,
0.003132056,
0.019350246,
0.015677936,
0.022076229,
-0.014463249,
-0.06429366,
0.025254188,
-0.04271178,
-0.016610136,
-0.0317231,
0.009329078,
-0.012987263,
0.041694835,
0.015946297,
-0.01894064,
-0.0009101324,
0.017782452,
-0.033192027,
-0.032005586,
0.0026588931,
-0.0006285299,
0.020734424,
0.03194909,
0.05045188,
-0.04717505,
0.057627007,
0.022358714,
-0.03884173,
0.026638366,
-0.06423716,
-0.016440647,
-0.01625703,
-0.01645477,
-0.004830499,
-0.009809303,
0.005985158,
0.012817772,
-0.008290945,
0.0033174371,
-0.050480127,
-0.008834729,
0.03680784,
-0.0019473832,
0.036045127,
-0.008213261,
-0.0052224477,
0.032457564,
0.019773973,
0.020014085,
0.015762681,
0.012012688,
0.034434963,
0.072542235,
0.0048057814,
0.046920814,
0.01036015,
-0.017429344,
0.031864345,
-0.043220256,
0.00021671921,
-0.053615715,
0.0049470244,
-0.01586155,
-0.060903836,
-0.05796599,
0.011320599,
-0.005575554,
-0.036723092,
0.016002793,
-0.0050776736,
0.0346892,
0.00025600233,
0.00096927775,
0.025932154,
-0.029943444,
-0.038756985,
-0.032994285,
-0.015960421,
0.006829083,
0.009251394,
0.012507038,
-0.035169423,
-0.015014095,
-0.058078982,
0.06858744,
-0.06118632,
0.01645477,
-0.023841761,
-0.013100257,
-0.046440586,
0.0028919436,
0.005289538,
-0.021045156,
-0.008495746,
-0.028672261,
0.02608752,
-0.027895426,
-0.0009763399,
-0.008326255,
-0.024590347,
-0.0414406,
0.036525354,
0.0018679342,
-0.01281071,
0.0013841781,
0.027584692,
0.013594606,
0.05505639,
-0.032033835,
-0.027824804,
0.008622864,
0.0059251296,
0.029886948,
0.017556462,
-0.021567754,
0.033954736,
0.002221041,
0.023149673,
-0.052683514,
0.003548722,
-0.05141233,
-0.00947032,
0.032372817,
-0.025861531,
0.0051023914,
-0.01423726,
0.0127047775,
0.0076129795,
0.036299363,
0.008248571,
0.008870039,
-0.017189233,
-0.06062135,
0.053163737,
-0.030112935,
-0.0065006935,
-0.033389766,
0.026398255,
-0.0055896784,
-0.034576204,
0.0092584565,
0.04980216,
0.002969627,
-0.011588961,
-0.00016584978,
0.0056567686,
0.03983043,
0.0003965829,
0.002591803,
-0.03412423,
-0.03002819,
-0.0044738613,
-0.033389766,
-0.074011154,
0.0066066254,
0.0086934855,
-0.003983043,
-0.025353057,
0.04466093,
-0.024124246,
0.019943465,
-0.046073355,
0.020070583,
0.013566358,
0.00027740942,
0.047259796,
0.014187826,
-0.048361488,
0.03155361,
-0.046920814,
-0.04675132,
-0.019265499,
0.055932093,
-0.0024417324,
-0.06994337,
0.010685007,
0.027598817,
-0.030762652,
-0.051045097,
-0.023912383,
0.016299404,
-0.0068573314,
-0.0066030943,
0.004442082,
-0.0034904594,
-0.031299375,
0.029208982,
0.053417973,
-0.010967493,
-0.034208972,
0.064745635,
0.0124222925,
-0.037288062,
0.005985158,
0.020635553,
-0.01198444,
-0.0021504196,
-0.024802212,
0.017895445,
-0.010508454,
-0.023757016,
0.05601684,
-0.04790951,
-0.025833283,
0.022231596,
0.014660988,
0.053756956,
-0.0070762574,
0.0025511957,
-0.0028972402,
-0.046553582,
-0.031214628,
0.00012877358,
0.0010875685,
0.0024505602,
0.02823441,
-0.01810731,
0.017923694,
0.023785265,
0.05406769,
-0.06717501,
-0.06525411,
-0.021836115,
-0.062090274,
-0.004180783,
0.034915186,
0.026934976,
-0.004710443,
0.008601679,
-0.032768298,
-0.033389766,
-0.015353077,
0.004297308,
0.0014009507,
-0.007782471,
-0.06175129,
0.023531027,
-0.035141174,
0.0067160884,
-0.0104166465,
-0.028954746,
0.010028229,
0.04155359,
-0.009823428,
0.038248513,
0.003068497,
0.010960431,
-0.01692087,
0.031327624,
-0.039095968,
0.011299413,
-0.058248475,
0.052824754,
-0.030734403,
0.0076624146,
0.011320599,
-0.020127079,
-0.016934995,
-0.013100257,
-0.0384745,
-0.03903947,
0.03175135,
0.03581914,
0.048587475,
0.013488675,
-0.063050725,
0.043954715,
-0.024957579,
-0.037457556,
-0.014251385,
-0.051129844,
-0.02049431,
0.037288062,
0.033446264,
0.017288102,
-0.0008893874,
0.0143643785,
0.011659582,
0.047796518,
0.027994296,
0.011115798,
0.033333268,
0.00011282861,
-0.016525391,
-0.04525415,
-0.023135548,
0.019830469,
-0.004721036,
0.041214608,
0.05141233,
-0.0075635444,
0.012125683,
0.0015227725,
0.016384149,
0.017754203,
0.01539545,
-0.024675094,
0.0048481543,
-0.018022563,
-0.012160993,
-0.013015511,
-0.059039433,
-0.028347403,
0.024463229,
-0.037994277,
-0.0028848813,
-0.0015157104,
0.0043785227,
0.014802231,
-0.00764829,
0.021214647,
0.0022192753,
-0.060564853,
-0.0010160644,
0.020056458,
-0.050536625,
-0.030677907,
-0.0029449095,
0.047627024,
-0.043361496,
-0.0327118,
0.026144017,
0.055536617,
-0.007669477,
-0.0052153855,
-0.044293698,
-0.049434934,
0.057655256,
0.0043008393,
-0.03638411,
-0.0124222925,
-0.08067781,
0.013114382,
-0.045395393,
-0.009985857,
0.012252801,
0.041073367,
0.018262677,
0.018389795,
-0.03217508,
0.031299375,
0.033531006,
-0.033982985,
0.023545152,
-0.0064406656,
0.021934986,
-0.019096008,
0.0023887665,
0.03161011,
0.03522592,
-0.010374273,
0.02724571,
-0.0054908083,
0.04833324,
0.015324829,
-0.016906748,
-0.0058580395,
0.02668074,
-0.0014583305,
0.0033756997,
0.027302207,
-0.033926487,
-0.022401087,
-0.027923675,
-0.002810729,
0.03081915,
-0.00050450116,
-0.012556473,
0.00088055973,
-0.0317796,
-0.0014230198,
0.03833326,
-0.017556462,
0.0070197606,
0.013898278,
0.021638377,
-0.005028239,
0.024194868,
-0.0016445942,
0.021666624,
0.023036677,
0.010388398,
0.025508424,
0.008700548,
0.03522592,
0.0029307853,
0.04211856,
-0.037655294,
0.02926548,
0.043276753,
-0.03539541,
-0.00070797885,
0.02406775,
-0.0019456177,
-0.023403909,
-0.0059675025,
-0.011906756,
-0.017824825,
-0.037005577,
0.04968917,
-0.05064962,
0.025240064,
-0.019858718,
-0.059152428,
-0.0201977,
-0.001433613,
0.004092506,
0.021807868,
0.061525304,
0.051045097,
-0.009463258,
0.10338963,
0.033644002,
0.04929369,
0.025451928,
0.0114830285,
-0.028432148,
-0.02022595,
0.011129922,
-0.00038488625,
0.019251375,
0.0063912305,
-0.047259796,
0.01208331,
0.01102399,
0.028686386,
-0.010430771,
0.016101664,
0.017401095,
0.004085444,
0.0118573215,
0.09084728,
0.017231604,
-0.015324829,
-0.032457564,
0.012662405,
-0.04884171,
-0.06389818,
0.014717486,
0.027796555,
-0.019152505,
-0.05449142,
0.0002024846,
-0.06180779,
-0.0101977205,
0.0317796,
0.011377096,
-0.011115798,
0.063276716,
0.021694873,
0.040282406,
-0.004876403,
-0.021652501,
-0.009025406,
0.051045097,
0.047853015,
0.013919464,
0.07276822,
0.0153672015,
0.03118638,
0.0007600621,
-0.02704797,
-0.011045177,
-0.024802212,
-0.013050822,
-0.0173446,
-0.0096963085,
-0.045480136,
-0.043587487,
-0.037598796,
0.036073375,
-0.025903905,
0.00015790488,
-0.040734384,
-0.05556486,
-0.054547917,
-0.0010902168,
-0.008156763,
-0.017358724,
-0.013086133,
-0.033446264,
0.019675102,
-0.030084686,
0.2348018,
0.08954785,
0.028531019,
0.030875646,
0.02823441,
0.062090274,
0.029293729,
0.038728736,
-0.015423698,
-0.0036228744,
0.015918048,
-0.0461581,
0.00831213,
0.012916641,
-0.018841771,
0.04234455,
0.0009851676,
0.009456196,
-0.044971664,
0.0036970268,
-0.040903874,
-0.002787777,
-0.0065960325,
-0.002499995,
0.012040937,
-0.010868623,
-0.058191977,
-0.019505613,
-0.016327651,
-0.011249978,
-0.012168055,
-0.0013859436,
0.03576264,
0.015875675,
0.012754212,
0.029745705,
0.013276811,
0.009110152,
-0.042485792,
-0.0051659504,
-0.013213251,
-0.00030676142,
0.018728778,
-0.03158186,
0.00067355094,
0.06802247,
-0.020734424,
-0.027641188,
0.064745635,
-0.04833324,
0.05240103,
-0.07717499,
-0.0018802929,
-0.033587504,
-0.030875646,
0.012754212,
-0.03234457,
-0.03039542,
0.0020727362,
0.036694843,
0.04502816,
0.029152486,
0.01946324,
-0.0026412378,
0.005402532,
0.038079023,
-0.037966028,
0.05101685,
-0.002231634,
0.01029659,
-0.014590367,
0.00026174032,
-0.005716797,
-0.0015942765,
0.035706144,
0.047598775,
0.024025377,
0.018545162,
-0.021666624,
-0.03579089,
-0.007273997,
0.038418002,
-0.016991492,
-0.0110593,
0.03771179,
0.028135538,
-0.025296561,
-0.034915186,
0.008396876,
0.031666607,
0.042768277,
0.055734355,
-0.005293069,
0.012104496,
0.004618635
] |
What is a TPU?
A TPU is a Tensor Processing Unit. They are hardware designed by Google, which are used to greatly speed up the tensor computations within neural networks, much like GPUs. They can be used for both network training and inference. They are generally accessed through Google’s cloud services, but small TPUs can also be accessed directly for free through Google Colab and Kaggle Kernels.
Because all TensorFlow models in 🤗 Transformers are Keras models, most of the methods in this document are generally applicable to TPU training for any Keras model! However, there are a few points that are specific to the HuggingFace ecosystem (hug-o-system?) of Transformers and Datasets, and we’ll make sure to flag them up when we get to them.
What kinds of TPU are available?
New users are often very confused by the range of TPUs, and the different ways to access them. The first key distinction to understand is the difference between TPU Nodes and TPU VMs.
When you use a TPU Node, you are effectively indirectly accessing a remote TPU. You will need a separate VM, which will initialize your network and data pipeline and then forward them to the remote node. When you use a TPU on Google Colab, you are accessing it in the TPU Node style.
Using TPU Nodes can have some quite unexpected behaviour for people who aren’t used to them! In particular, because the TPU is located on a physically different system to the machine you’re running your Python code on, your data cannot be local to your machine - any data pipeline that loads from your machine’s internal storage will totally fail! Instead, data must be stored in Google Cloud Storage where your data pipeline can still access it, even when the pipeline is running on the remote TPU node. |
[
0.022659233,
0.03822388,
-0.08374505,
-0.031969063,
-0.01775094,
0.030115785,
-0.016592639,
-0.014181929,
0.027538568,
0.03639956,
0.031505745,
-0.025091661,
0.038050137,
-0.041843567,
-0.01601349,
0.04549221,
-0.013030868,
-0.01775094,
-0.010497089,
-0.026134131,
0.056611884,
0.01578183,
-0.08461377,
-0.041727737,
-0.035270218,
0.029406326,
0.052210346,
0.003038726,
0.07152499,
0.012516873,
-0.03347485,
-0.01738897,
0.010149599,
-0.045202635,
-0.014037141,
-0.0013193755,
0.02407815,
-0.017171789,
-0.017794374,
-0.043030825,
0.013827199,
-0.01601349,
0.01760615,
-0.04065631,
-0.089073226,
-0.005056701,
-0.012828166,
-0.020690123,
-0.007847479,
-0.0073081455,
-0.03582041,
0.036225814,
0.013269768,
-0.006309112,
-0.033909217,
0.009621125,
-0.011018323,
0.00760134,
-0.050907258,
-0.015376424,
0.052442007,
-0.022007689,
0.0011329616,
-0.059015356,
0.010743227,
0.05229722,
0.015246117,
-0.023354212,
-0.009896221,
-0.0017555476,
-0.014587333,
-0.0022785922,
-0.06104238,
-0.033909217,
-0.024382202,
0.00044205412,
0.026684323,
0.01624515,
0.026742239,
0.041496076,
0.027234515,
0.03419879,
-0.021341667,
0.020415027,
-0.011105196,
-0.013255289,
0.044507656,
-0.010453653,
-0.021240316,
-0.00921572,
0.0030568247,
0.02015441,
0.014522179,
0.07262538,
0.02163124,
0.020574294,
-0.038281795,
0.04610032,
0.017490322,
-0.021558847,
0.025120618,
0.062142763,
-0.020588772,
0.048301086,
-0.07378367,
0.009664561,
0.028740304,
0.0026206526,
-0.015231637,
-0.04502889,
0.0025283506,
0.014138492,
-0.005592414,
0.009027496,
-0.03191115,
0.014406349,
-0.019068504,
-0.010077205,
-0.018402481,
-0.031129297,
-0.018156344,
-0.0028794599,
0.025207492,
-0.013573822,
0.021356145,
-0.014898626,
0.01578183,
0.0099830935,
-0.028479688,
0.0007447503,
-0.0021718114,
-0.025656331,
-0.0016415274,
0.078358956,
-0.015304031,
-0.033301108,
0.015970053,
0.0063163517,
0.005577936,
-0.030347444,
0.00006340106,
0.0010153218,
0.013501428,
0.0978763,
0.0063815056,
0.014109535,
-0.01405162,
-0.00990346,
-0.06173736,
0.0039997525,
-0.03246134,
0.0059109465,
0.020646688,
0.025091661,
-0.049140852,
-0.016766384,
-0.0014460644,
0.006515434,
0.015043413,
0.014399109,
0.0015727534,
-0.0093749855,
-0.020183368,
0.03799222,
-0.029406326,
0.045868658,
-0.025844555,
0.01657816,
0.066602215,
-0.031042425,
0.039584883,
-0.0021338046,
0.002946424,
-0.00027962073,
0.016042447,
0.006508195,
0.039092604,
-0.022543402,
0.020704603,
-0.055221926,
-0.028943006,
-0.043146655,
0.038513456,
0.0056937654,
0.038281795,
0.034111917,
-0.019010589,
0.0135665815,
0.0003526931,
0.018590705,
0.01370413,
0.058580995,
-0.028870612,
0.03373547,
-0.03544396,
0.010424695,
-0.045057848,
-0.00009716594,
0.021211358,
-0.021037614,
0.014609052,
0.022702668,
-0.03199802,
-0.0104464125,
-0.026698802,
0.031969063,
-0.01760615,
0.05000958,
-0.023137031,
-0.034864813,
0.0493146,
-0.0006918124,
-0.041988354,
-0.00046965422,
0.054497987,
-0.018301131,
0.0038079093,
0.016592639,
-0.039758626,
0.034835856,
0.04045361,
0.045550123,
0.013762045,
-0.014884148,
0.024671778,
-0.0103088645,
0.019415993,
0.011677106,
0.019488387,
-0.0018949055,
0.023281818,
0.047692977,
0.00026220098,
0.0508783,
0.0015410812,
-0.007264709,
0.02106657,
0.01669399,
-0.022253828,
0.025453629,
-0.023354212,
-0.002119326,
0.024266373,
0.03315632,
0.03694975,
-0.012524112,
-0.011148632,
0.024744172,
-0.043725803,
0.026177566,
-0.059941996,
0.045405336,
0.022630274,
-0.009896221,
-0.035530835,
0.0011275321,
-0.003465849,
0.00045743777,
0.01209699,
-0.0151013285,
0.018967154,
0.011163111,
-0.007304526,
-0.01821426,
0.026510578,
0.047808807,
0.039932374,
-0.005215967,
0.0047635064,
-0.031332,
-0.05632231,
-0.017417928,
-0.06544392,
-0.021732593,
-0.056148563,
-0.014927584,
0.022775061,
-0.018663099,
0.045694914,
-0.016853256,
0.0054295287,
0.037615772,
-0.03631269,
0.02096522,
0.051833898,
0.021008655,
-0.06405396,
0.013776524,
-0.043146655,
0.03836867,
0.0035834888,
-0.057770185,
0.0077244095,
-0.031245127,
0.034285665,
-0.0118436115,
-0.013899593,
-0.009143326,
-0.0043363837,
0.012849884,
-0.02129823,
-0.0001922958,
0.0069063604,
0.006345309,
-0.04615823,
0.014413589,
0.019980665,
-0.031245127,
0.032779872,
0.024903437,
-0.026235482,
0.022036646,
-0.0012406473,
0.019415993,
-0.009165044,
0.048677534,
0.055453584,
-0.029232582,
-0.0064683785,
-0.066602215,
-0.0118001755,
0.016332021,
-0.030926595,
-0.016607119,
-0.021964252,
0.05180494,
-0.05675667,
-0.083687134,
0.00955597,
-0.012654421,
-0.036486432,
0.007188696,
0.013457991,
0.037847433,
0.0016994424,
0.041872524,
-0.043957464,
-0.0024505272,
-0.046940085,
0.02913123,
-0.018909238,
-0.05872578,
-0.008651049,
0.04630302,
0.01290056,
0.03179532,
0.033214238,
-0.06880298,
0.003304773,
0.0012542211,
-0.049546257,
0.017084917,
-0.04271229,
-0.021645721,
0.024715213,
0.022673711,
-0.0301737,
0.0067832908,
-0.024671778,
0.016809821,
0.021935295,
0.039932374,
0.02291985,
0.018605184,
-0.016216192,
-0.017953642,
0.019908272,
0.007970548,
0.011981159,
-0.05504818,
-0.011358574,
0.005147193,
-0.054063626,
-0.0063887453,
0.004644057,
-0.062142763,
0.0048576184,
0.033330064,
0.0336486,
-0.018489355,
0.02326734,
0.021385103,
-0.016954608,
0.026843589,
0.029203624,
0.014797275,
0.015839744,
0.030260572,
-0.011409249,
-0.019937228,
0.018503834,
0.011488883,
-0.024816565,
0.01059844,
-0.05953659,
-0.04326248,
0.011763979,
0.031592615,
0.019010589,
0.027596483,
0.043725803,
0.008035703,
-0.014102295,
0.030752849,
0.004133681,
-0.01081562,
-0.039903414,
0.053484477,
0.0069497963,
-0.025207492,
0.018851323,
-0.014377392,
-0.0019781583,
0.016549204,
-0.007956069,
-0.0688609,
-0.053629264,
0.004499269,
-0.0151013285,
0.013885114,
-0.011568516,
-0.004430495,
-0.0458397,
0.0073371027,
0.060289484,
-0.043609973,
0.004893815,
-0.06445936,
-0.0068918816,
0.013081544,
-0.005552598,
-0.021862902,
0.004021471,
0.024686256,
-0.052702624,
0.030289529,
0.0350096,
-0.029884124,
-0.011966681,
-0.045521166,
-0.010258189,
0.017027002,
-0.008745161,
-0.016201714,
0.029739337,
0.016621597,
0.02707525,
0.04065631,
0.019300165,
0.033996087,
0.037847433,
-0.06648639,
0.040511522,
-0.058899526,
-0.024136065,
-0.009881742,
0.011257223,
-0.051660154,
0.025149576,
0.04526055,
-0.022615796,
-0.009382226,
0.04919877,
0.003235999,
-0.041322332,
0.044826187,
0.007970548,
0.00610279,
0.028798219,
0.025294363,
-0.02845073,
0.026452662,
0.003731896,
-0.035733536,
-0.00022747462,
-0.040714223,
0.0049589695,
0.02763992,
-0.033793386,
0.031447828,
-0.06185319,
-0.014724881,
0.007195935,
0.0055344994,
0.0072031743,
-0.014942062,
-0.01394303,
-0.0049589695,
0.0028070663,
0.029102273,
0.03741307,
0.017765418,
0.0127268145,
0.028494166,
-0.0013555723,
-0.02902988,
-0.019068504,
-0.019444952,
0.038513456,
0.04734549,
0.028479688,
-0.012466198,
-0.013429034,
0.0138923535,
-0.027770229,
-0.016853256,
-0.02475865,
0.008803075,
-0.025656331,
-0.029087795,
-0.020458464,
0.015622564,
0.019271206,
-0.009020257,
-0.028132197,
-0.0057263426,
0.033359025,
-0.028725825,
-0.010996605,
0.06706554,
0.0137982415,
-0.053745095,
-0.03373547,
0.036486432,
0.023672745,
0.022659233,
0.034633152,
-0.010605679,
-0.014840711,
-0.052557837,
0.036660176,
-0.044855144,
0.02729243,
-0.0036776008,
-0.03272196,
-0.000034584966,
-0.0011963061,
0.034980644,
0.007300906,
0.01555017,
-0.05064664,
0.042654376,
-0.037644733,
-0.0168243,
-0.04974896,
0.008933384,
0.014000944,
0.028696869,
0.017070437,
-0.05333969,
0.016071405,
0.0024903438,
0.052268263,
-0.02003858,
-0.029145708,
-0.006348929,
0.015941096,
0.0056358506,
0.016679512,
-0.0019618697,
-0.015376424,
0.010620158,
-0.005462106,
-0.031940106,
-0.028696869,
-0.039787587,
-0.013523146,
0.00051399536,
0.07100376,
-0.040366735,
0.011684345,
0.0038079093,
0.016447851,
-0.024961352,
0.038079094,
-0.027683357,
-0.0181853,
-0.032895703,
-0.106100224,
0.034227747,
-0.032693002,
-0.04320457,
-0.002360035,
0.04537638,
0.03729724,
-0.031071382,
0.0143122375,
0.04077214,
0.015723914,
0.0036033972,
-0.0055562174,
0.04630302,
0.0271766,
-0.005277502,
-0.030752849,
0.027553048,
-0.007833,
0.0093315495,
-0.033011533,
-0.042162098,
0.0022876414,
0.02027024,
0.05322386,
-0.026554015,
0.040250905,
-0.009317071,
-0.009150566,
-0.041322332,
0.02682911,
-0.0056141326,
0.037239328,
0.03642852,
0.02199321,
-0.0336486,
0.034720026,
0.021008655,
-0.04146712,
-0.06318523,
0.020125452,
-0.038021177,
-0.051167876,
0.017693024,
-0.009338789,
-0.0017582623,
-0.056148563,
0.014985499,
0.061100293,
0.010337822,
-0.017881248,
0.022282785,
-0.008310799,
-0.02223935,
-0.008122575,
0.054729648,
-0.017519278,
-0.012871603,
0.03605207,
0.02073356,
-0.060521144,
0.0126689,
0.020110974,
0.0016170946,
-0.024628341,
-0.033301108,
-0.025757683,
-0.0155212125,
-0.029058836,
0.04827213,
-0.012538591,
0.007890915,
0.025540503,
0.016911171,
0.043841634,
-0.0059580025,
-0.0038513455,
0.051196836,
-0.012647182,
-0.03110034,
-0.013950269,
0.02338317,
-0.0108301,
0.003581679,
-0.040569436,
0.015275073,
0.0073190043,
0.066428475,
-0.067413025,
-0.052210346,
-0.02694494,
-0.01531851,
-0.0006103695,
-0.002175431,
-0.049546257,
-0.05168911,
0.024367724,
0.028711347,
-0.057306863,
0.0076302974,
0.007818521,
-0.035530835,
-0.0036269252,
-0.032084893,
0.009157805,
-0.017171789,
0.030839723,
0.009179523,
-0.022876414,
-0.004582522,
0.012249016,
-0.0084483465,
0.019908272,
-0.013747566,
0.017678546,
-0.00771717,
0.005009645,
-0.030376403,
0.021544369,
-0.04193044,
0.011315137,
-0.010388498,
0.0019075744,
0.010511567,
-0.0010388498,
0.021602284,
-0.024917915,
0.004198835,
-0.014797275,
0.026351312,
0.05064664,
-0.028870612,
0.033011533,
-0.01727314,
0.05467173,
-0.052905325,
-0.018445918,
-0.023093594,
-0.03260613,
-0.0006497336,
0.02106657,
0.03359068,
0.079980575,
-0.005237685,
0.034748983,
0.00005471947,
-0.0025428291,
0.038194925,
0.01715731,
0.03315632,
0.0104464125,
-0.013624497,
-0.056293353,
0.005954383,
0.02659745,
-0.016809821,
0.0230212,
0.045636997,
-0.0075144675,
-0.00667832,
-0.016404416,
0.02290537,
0.04711383,
0.018836845,
0.013791002,
-0.014203646,
-0.018474875,
-0.022195913,
-0.014710403,
-0.061447784,
-0.028291464,
0.06833967,
-0.032808833,
-0.014999977,
-0.014681445,
-0.023093594,
-0.009259156,
0.04809838,
0.01623067,
0.00736968,
0.0016415274,
-0.011373052,
0.020241283,
0.0015944715,
-0.0508783,
0.0096573215,
0.023194946,
-0.075231545,
-0.027813666,
0.031245127,
0.045694914,
0.03926635,
-0.012314171,
-0.048851278,
-0.015477776,
0.047432363,
0.045665953,
-0.027379302,
0.004470312,
-0.064748935,
0.050038535,
-0.030608062,
0.025612896,
0.0017184458,
0.03489377,
0.050820388,
-0.0029337553,
-0.0057299626,
-0.014304997,
0.030318487,
-0.045694914,
-0.0060050585,
0.032084893,
0.005686526,
-0.0010840959,
0.024425639,
0.0061679445,
0.046882167,
0.039758626,
-0.0057987366,
-0.023194946,
0.021153443,
0.026785674,
-0.06364855,
-0.027943974,
0.023759617,
0.02003858,
0.022297263,
-0.019777963,
-0.056669798,
-0.015637042,
-0.023556914,
-0.028827177,
0.035038557,
0.01462353,
-0.009642842,
0.011677106,
-0.0046874927,
0.017808853,
0.009498055,
-0.03222968,
-0.028638953,
0.015506733,
0.04673738,
-0.015796307,
0.0011999258,
-0.019893793,
0.055569414,
0.016491288,
0.0035038558,
-0.013870636,
-0.012270735,
0.035646666,
-0.032779872,
0.012343128,
0.0040250905,
-0.0131032625,
0.015492255,
0.012111468,
-0.0006348024,
0.019054025,
-0.00081035716,
-0.021949774,
0.006609546,
-0.043407273,
-0.062490255,
-0.043291442,
0.03246134,
-0.07870644,
0.037239328,
0.009353268,
-0.008962342,
-0.017128352,
0.0087524,
-0.013733087,
-0.006703658,
0.012372086,
0.024802087,
0.005425909,
0.08119679,
0.060405314,
0.031766362,
0.0253378,
0.022644754,
-0.029203624,
-0.004321905,
-0.008042942,
-0.021110008,
0.016143799,
-0.039440095,
-0.030752849,
-0.008375953,
-0.0015682288,
-0.005161672,
-0.059478674,
0.017403448,
-0.016491288,
-0.010294386,
0.021023134,
0.051631197,
0.026394747,
0.017360013,
-0.024237415,
-0.028190112,
-0.03663122,
-0.0034043144,
0.00054521515,
0.027972931,
-0.06816592,
-0.0033264912,
-0.03373547,
-0.0384845,
-0.0043327636,
-0.043088738,
-0.0024360484,
-0.017548237,
0.0012424571,
0.040714223,
-0.0006506385,
0.031708445,
-0.015115808,
-0.022601318,
0.052644707,
0.03860033,
0.002084939,
0.03315632,
0.05713312,
-0.010221993,
-0.013508667,
0.032750916,
0.02499031,
0.021110008,
-0.0042024553,
-0.027277952,
0.0064683785,
-0.048735447,
-0.013277007,
-0.01208975,
-0.0132408105,
0.01762063,
-0.016737426,
-0.018561749,
-0.02937737,
-0.06405396,
0.036689132,
-0.036891837,
0.007565143,
-0.008361474,
-0.022543402,
0.007442074,
-0.059362844,
0.24880272,
0.0762161,
0.007992266,
0.0041771173,
0.0135665815,
0.009490816,
0.06492268,
-0.012516873,
0.022297263,
-0.036457475,
0.0004732739,
-0.010431934,
-0.018967154,
-0.0012768442,
-0.000417395,
0.04963313,
-0.018706536,
0.045086805,
0.011148632,
-0.047403403,
-0.00003749768,
0.031650532,
-0.011459925,
0.01806947,
0.035675623,
0.017823333,
0.019662132,
-0.06220068,
0.011532319,
-0.02775575,
-0.0049119135,
-0.0055272602,
0.030723892,
-0.025728727,
0.022282785,
0.038165964,
0.008339756,
-0.0075289463,
0.0045318464,
0.02856656,
0.0033952652,
-0.05652501,
0.021891858,
-0.026698802,
-0.024570426,
0.033938173,
0.01738897,
-0.0036106366,
0.0139864655,
-0.07146707,
0.008933384,
-0.052123472,
0.011257223,
-0.010272668,
-0.03454628,
0.013378358,
-0.05881265,
-0.03952697,
-0.018692058,
-0.0016903932,
0.0014062478,
-0.000039307524,
-0.035559792,
0.02568529,
-0.010656355,
0.025193013,
-0.0017410688,
0.028436251,
0.0038875425,
-0.022109041,
0.013537625,
-0.0048431396,
-0.059710335,
-0.06833967,
0.03283779,
0.020183368,
-0.026163088,
0.008122575,
-0.027451696,
-0.010801142,
0.014449785,
-0.007811282,
0.007992266,
-0.019415993,
0.023904404,
0.018141864,
-0.031621575,
-0.02258684,
0.018156344,
-0.020415027,
0.028523123,
0.021616763,
0.0074782707,
-0.02982621,
0.025511544
] |
Using a traced model for inference
Use the traced model for inference by using its __call__ dunder method:
python
traced_model(tokens_tensor, segments_tensors)
Deploy Hugging Face TorchScript models to AWS with the Neuron SDK
AWS introduced the Amazon EC2 Inf1
instance family for low cost, high performance machine learning inference in the cloud.
The Inf1 instances are powered by the AWS Inferentia chip, a custom-built hardware
accelerator, specializing in deep learning inferencing workloads. AWS
Neuron is the SDK for
Inferentia that supports tracing and optimizing transformers models for deployment on
Inf1. The Neuron SDK provides: |
[
0.005039278,
0.00024103458,
-0.014141904,
0.04310052,
0.0032488648,
-0.040633485,
0.038456693,
-0.0014865688,
-0.0009586963,
0.0382245,
-0.038863026,
-0.012233581,
0.04652534,
-0.011101649,
-0.038282547,
-0.011058113,
0.011936086,
-0.016325954,
-0.054855205,
-0.011370121,
0.024438139,
0.0003689212,
-0.090090245,
-0.039008148,
-0.0036443158,
-0.00859108,
0.017298255,
0.019025179,
0.0792353,
0.038630836,
-0.0076405467,
-0.0014738708,
-0.00009920284,
-0.039588626,
0.008155721,
0.012872108,
-0.000035231184,
0.028864287,
-0.034538463,
-0.047076795,
0.012581869,
0.028690144,
0.07314028,
-0.01888006,
-0.03970472,
0.017153136,
-0.024975082,
0.016775824,
-0.036425017,
-0.0062655383,
0.017240208,
0.042781256,
-0.0034411484,
0.0124294935,
-0.051140144,
-0.009744781,
-0.029633421,
-0.027224436,
-0.037092566,
0.0022493538,
-0.0041068844,
-0.0019645565,
-0.004567639,
-0.042316873,
0.041939564,
0.016703265,
-0.0469607,
-0.030417066,
-0.04191054,
-0.019504074,
-0.0154697485,
0.018996155,
-0.024031805,
-0.060834132,
-0.028980384,
0.02095527,
-0.022087201,
0.010376051,
0.025729705,
0.015745476,
0.02496057,
0.06629063,
0.023901196,
0.01355417,
0.011007321,
-0.05845417,
0.028196737,
0.011522496,
0.004658339,
-0.050472595,
0.00496309,
0.037208665,
-0.045161217,
0.0026974105,
0.006831505,
0.041533228,
0.0062002344,
0.06095023,
-0.022943407,
-0.009106254,
0.047802392,
0.07993187,
0.0037658534,
0.034335297,
0.013975017,
0.03207143,
-0.0027228063,
-0.0050683017,
-0.03183924,
-0.026353719,
-0.00094781234,
-0.018415676,
0.037963286,
-0.035438206,
-0.029836588,
0.023843149,
-0.019068714,
-0.016035715,
-0.022319393,
-0.035815515,
0.0074119833,
-0.019228347,
0.06199509,
-0.032535814,
0.038863026,
-0.051401358,
0.032768004,
0.037150614,
0.012088462,
0.00015679719,
-0.025831288,
-0.0026212228,
0.03326141,
0.050966002,
-0.012023158,
-0.036715258,
0.0027590862,
0.0059970673,
0.010376051,
-0.01615181,
0.007952554,
-0.018299581,
0.0241479,
0.069076926,
-0.019968456,
0.0013323793,
0.04304247,
-0.045161217,
0.0011165139,
0.015963156,
-0.038601812,
0.017240208,
-0.0008203792,
-0.0030184875,
-0.026353719,
0.00066755014,
-0.023132063,
0.0029296018,
-0.021172948,
0.029952684,
-0.024800938,
0.011849015,
-0.0036678978,
0.03427725,
0.03241972,
0.025802264,
-0.027209925,
-0.022696704,
-0.008075905,
-0.033783842,
0.009752037,
0.016238883,
0.013046252,
0.0066646175,
0.054477897,
0.03546723,
-0.007836458,
-0.018749451,
-0.027688818,
0.027587235,
0.025918359,
-0.0040270686,
0.02043284,
0.017124113,
-0.052620366,
-0.018749451,
0.002180422,
-0.01837214,
0.030707305,
0.020200647,
-0.00062492123,
-0.00012369177,
-0.055522755,
0.03569942,
-0.025453977,
-0.01488927,
-0.051227216,
-0.03784719,
0.021767939,
-0.045277312,
-0.03598966,
0.05694493,
-0.03926936,
-0.028457953,
0.012872108,
-0.035206012,
0.010332515,
0.010630011,
-0.0087579675,
0.0142072085,
0.0342192,
-0.0006471427,
0.014860246,
-0.029227085,
0.0027536443,
-0.038834002,
-0.025512025,
0.015164997,
-0.020186136,
-0.0040379525,
0.00006076883,
0.024423627,
0.015135974,
0.02799357,
-0.0048288545,
0.0016988062,
0.0012353306,
0.020186136,
-0.001070257,
0.010499403,
0.022043666,
0.05102405,
0.026484326,
0.048527993,
0.052939627,
-0.0072378395,
0.021651844,
0.008003346,
0.016761312,
0.027790403,
-0.052562315,
0.009251374,
0.004197584,
0.017588494,
0.025091177,
-0.027688818,
0.019199323,
0.00066573615,
-0.021376116,
0.050646737,
-0.0819055,
0.033377506,
0.022464514,
0.0051190937,
-0.059731223,
-0.0342192,
-0.042432968,
0.049805045,
-0.041591275,
-0.003568128,
0.026484326,
0.031752165,
0.008837783,
-0.0034937542,
0.05346206,
0.042839304,
-0.0029749516,
0.023422303,
-0.02615055,
-0.048992373,
-0.053287916,
-0.027616259,
-0.012864852,
-0.037295736,
-0.005717712,
-0.01303174,
-0.0071036043,
-0.041968588,
0.019663705,
-0.012364189,
-0.044870976,
0.027471138,
-0.021564772,
0.016282419,
0.028849775,
0.015629381,
-0.03149095,
0.018575307,
-0.014932806,
0.01680485,
-0.012552844,
-0.010383307,
0.021608308,
-0.012683452,
0.024757402,
-0.011326584,
0.0006852366,
-0.036250874,
-0.013336491,
0.028022593,
-0.06193704,
-0.0021913059,
0.0062220027,
0.005714084,
-0.02369803,
0.011566032,
-0.00774213,
0.0051118378,
0.027180899,
0.038050357,
-0.013757338,
-0.020752102,
-0.004676479,
0.0052497014,
-0.024931546,
0.08213769,
0.05912172,
-0.014228976,
-0.058686364,
-0.037789144,
-0.04362295,
-0.022101713,
0.009868132,
-0.043129545,
-0.028356368,
0.043129545,
-0.06065999,
-0.049311638,
-0.01755947,
-0.034915775,
-0.0036207337,
0.011362864,
-0.00925863,
0.059615128,
0.028632095,
0.026034456,
-0.050472595,
0.021651844,
-0.011711151,
0.024975082,
-0.004661967,
-0.012843084,
0.032477766,
0.016137298,
-0.0077784103,
0.0089683905,
0.059615128,
-0.015876083,
0.013321979,
-0.015789011,
0.038601812,
0.0036370598,
0.02007004,
0.03375482,
-0.015658405,
0.021056853,
-0.04127201,
0.009171559,
0.022856336,
0.0073503074,
0.02636823,
0.026643958,
0.0097012445,
-0.00025940128,
-0.06547796,
-0.041068844,
0.01828507,
0.0036461297,
0.07267589,
-0.028327344,
0.027950034,
0.025990918,
-0.018792987,
-0.017138625,
0.012719733,
-0.03230362,
0.025424954,
0.07139884,
0.021448676,
-0.03784719,
-0.066696964,
-0.00720156,
0.020026503,
0.03526406,
0.03050414,
0.015600356,
-0.0047671786,
-0.016398514,
-0.015440725,
-0.019054202,
0.023074016,
-0.0073067714,
-0.026614934,
-0.01651461,
0.019808825,
-0.031694118,
0.031868264,
0.071747124,
0.03535113,
0.02481545,
0.04896335,
-0.0019881385,
0.0604278,
0.036831353,
-0.011449936,
-0.034712605,
-0.048266776,
0.027964545,
0.0048869024,
0.02770333,
-0.029096479,
-0.03044609,
-0.0012997274,
-0.027296996,
-0.0056850603,
0.022304881,
0.0015799896,
0.017385326,
0.020984294,
0.059499033,
-0.02377059,
-0.062227283,
-0.009316678,
0.005971671,
0.061646804,
-0.036076732,
0.007546219,
-0.039124243,
0.019344442,
0.014025808,
-0.0140040405,
-0.028037105,
-0.026876148,
0.0019718125,
-0.06303995,
0.03198436,
0.05917977,
-0.036860377,
-0.016427537,
-0.05421668,
-0.003259749,
0.0058664596,
-0.0061820946,
-0.028980384,
-0.011609567,
-0.0008571126,
-0.00084214716,
0.01888006,
0.008794247,
-0.001043047,
-0.009229606,
0.010158371,
0.036163803,
-0.05726419,
-0.041939564,
-0.01777715,
-0.008721688,
-0.013336491,
0.04118494,
0.019431513,
0.0033722166,
0.026934197,
0.048005562,
-0.00851852,
-0.030271947,
0.039211314,
0.027021268,
0.04266516,
0.03044609,
-0.006058743,
-0.014279768,
0.016645217,
-0.0027300622,
-0.021448676,
0.00705644,
-0.012385957,
0.015019878,
-0.016775824,
-0.008467728,
-0.0058519477,
-0.018401165,
0.03953058,
0.031171689,
-0.012081206,
-0.011043601,
-0.07226956,
-0.017327279,
0.021840498,
-0.008344376,
0.054913253,
0.010825922,
-0.0020643263,
0.018052878,
-0.011246769,
-0.02259512,
-0.014540983,
-0.010579218,
0.014903782,
0.05235915,
0.010927506,
0.012879364,
0.0076478026,
-0.049456757,
0.055203494,
-0.029952684,
0.028719168,
-0.03741183,
-0.02385766,
-0.003954509,
-0.07273394,
-0.022841824,
-0.014337815,
-0.008779735,
-0.0034175664,
0.005681432,
-0.0022602377,
0.009650453,
0.011087137,
-0.01340905,
0.016674241,
0.0033577045,
-0.02140514,
0.018139949,
0.005670548,
0.022203298,
0.005402077,
0.01422172,
-0.04191054,
-0.048411895,
-0.06153071,
0.036279898,
-0.05082088,
-0.007459147,
-0.039588626,
-0.049514804,
0.01351789,
0.027979057,
-0.006697269,
-0.009563381,
0.00025622678,
-0.03851474,
0.014395864,
-0.03546723,
-0.003225283,
-0.013532402,
0.010347027,
-0.04730899,
0.06640673,
-0.039559603,
-0.005391193,
0.004252004,
0.01277778,
0.03468358,
0.042636137,
-0.0087362,
-0.046641435,
0.0037041777,
-0.0018847407,
-0.011079881,
0.01851726,
-0.010876713,
-0.01837214,
-0.046844605,
0.04008203,
-0.041881513,
-0.034973823,
-0.022493538,
0.026934197,
0.05111112,
-0.05450692,
0.025715193,
-0.017573982,
-0.0029822076,
0.0040960005,
0.06193704,
0.0018375769,
-0.0044551715,
-0.03172314,
-0.06663892,
0.07505585,
-0.028719168,
-0.017298255,
0.003223469,
-0.008090417,
0.0342192,
-0.05044357,
0.036425017,
0.028617583,
-0.03680233,
-0.026643958,
-0.021056853,
0.032187525,
0.018938107,
0.006403402,
-0.010767873,
-0.0071616517,
-0.043216616,
0.0050610458,
-0.051981837,
-0.03926936,
-0.006134931,
0.0011591427,
-0.002461591,
-0.023683518,
0.030242924,
-0.02043284,
-0.021608308,
-0.06629063,
0.035060894,
-0.016325954,
0.03259386,
-0.013038996,
0.027209925,
-0.005387565,
0.0073575634,
-0.036686234,
-0.029952684,
-0.0015001738,
0.07517195,
-0.036831353,
-0.0583671,
0.012509309,
-0.013263931,
-0.022261346,
-0.06878669,
-0.032361668,
-0.008866807,
-0.005677804,
-0.027877474,
-0.0031781192,
0.023465838,
-0.023886684,
0.029894637,
0.057409313,
0.01755947,
-0.03326141,
0.0047127586,
0.021056853,
0.00010266077,
-0.008794247,
0.031258762,
-0.030765355,
-0.008474984,
-0.013641242,
-0.011166953,
-0.017806174,
-0.02541044,
0.04339076,
0.018502748,
0.025990918,
0.02911099,
-0.0058845994,
0.05502935,
0.017327279,
0.007509939,
-0.009715756,
-0.038863026,
-0.009338446,
-0.035815515,
-0.0025414068,
0.0066646175,
-0.0000065615595,
-0.018778475,
0.029154526,
0.0058120396,
0.072385654,
-0.014548239,
-0.0724437,
0.025236297,
-0.04008203,
-0.0006861436,
0.024322044,
0.03059121,
-0.017283743,
0.00918607,
-0.02229037,
-0.06414286,
-0.013655754,
-0.016703265,
0.036512088,
0.021434164,
-0.04957285,
-0.022493538,
-0.019431513,
-0.015382677,
-0.021390628,
-0.0033794725,
0.038195476,
0.0027518303,
-0.02207269,
-0.0069149486,
-0.01615181,
0.027079316,
0.010767873,
0.023451326,
-0.037266713,
-0.017167648,
-0.006428798,
0.02081015,
-0.030184876,
0.023320718,
0.00033740306,
-0.027209925,
0.0009605103,
0.0035209642,
-0.07052812,
-0.033580672,
0.009164303,
0.047076795,
0.016384002,
-0.006051487,
-0.020606982,
0.037440855,
-0.047367036,
-0.03172314,
-0.042636137,
-0.034393344,
-0.008192001,
0.034422368,
-0.0008022392,
0.010550194,
0.02295792,
0.010680802,
-0.0019210206,
-0.0013795431,
0.018096413,
0.015339141,
0.019649193,
0.022696704,
0.00029998942,
-0.025787752,
0.011624079,
0.019576633,
-0.0018720428,
0.03732476,
0.022943407,
-0.00019126308,
0.014033064,
0.015353653,
0.020577958,
0.036918424,
0.017196672,
-0.017066063,
-0.008416937,
-0.017370814,
0.014990854,
-0.0010865829,
-0.0979267,
-0.028922334,
0.03680233,
-0.022856336,
-0.0021078622,
-0.035438206,
-0.021884035,
-0.006769829,
0.0136920335,
-0.005471009,
0.029952684,
-0.019054202,
-0.0030076036,
0.02829832,
-0.04762825,
-0.019678216,
-0.003579012,
0.0456256,
-0.021564772,
-0.04797654,
0.029038431,
0.05177867,
0.004661967,
0.015121462,
-0.043303687,
-0.0036515717,
0.01999748,
-0.00013366876,
-0.046989724,
-0.002866112,
-0.053491082,
0.026992245,
-0.019054202,
-0.007567987,
0.0055218004,
0.03874693,
0.019881384,
0.0144248875,
-0.030039756,
0.032361668,
-0.023001455,
0.0033849145,
0.06681306,
0.026266646,
0.026252134,
-0.017428864,
0.0051154657,
0.036395993,
0.033116292,
-0.0016842943,
0.019228347,
0.006690013,
0.034857728,
0.0084459605,
0.006007951,
-0.023233647,
0.046583388,
0.026760053,
0.007524451,
-0.013285698,
0.0015400817,
0.005307749,
-0.011595055,
0.04043032,
0.025947383,
0.017486911,
-0.015208533,
-0.043826118,
0.0063018184,
-0.0047163866,
-0.00720156,
-0.01725472,
-0.021376116,
0.045596577,
0.044841953,
0.035902586,
0.025134714,
0.025729705,
0.032709956,
0.018836522,
-0.0086563835,
0.04257809,
-0.025381416,
0.036250874,
-0.02710834,
0.051372334,
-0.06762573,
0.02007004,
0.0013097044,
-0.032013383,
0.0058047837,
0.013017228,
0.0000662675,
0.0017024343,
-0.008177489,
0.0005723154,
-0.017806174,
-0.040053006,
0.028835263,
-0.05813491,
0.022479026,
0.002488801,
-0.0129229,
-0.009570637,
0.0047127586,
0.0010557451,
0.019881384,
0.03340653,
0.06420091,
-0.0065739173,
0.07482366,
0.0603117,
0.019228347,
0.013220395,
-0.0013459842,
-0.037585974,
-0.013321979,
-0.022972431,
0.025091177,
0.023944734,
-0.035670396,
-0.049195543,
0.025947383,
-0.013815385,
0.025990918,
-0.025715193,
0.0076913387,
0.02355291,
-0.052707437,
-0.0024488932,
0.08689761,
0.022450002,
-0.026745541,
-0.0047526667,
-0.0013940551,
-0.08074454,
-0.029444765,
-0.023117552,
0.033000197,
0.021463187,
-0.04376807,
0.013314723,
-0.032535814,
0.02577324,
0.003566314,
-0.0268181,
-0.01970724,
0.04466781,
0.021913059,
0.03178119,
0.0052206772,
-0.062343378,
-0.033783842,
0.033638723,
0.05607421,
0.0211149,
0.09374726,
0.064026766,
0.010412331,
-0.001779529,
-0.0016371304,
0.023683518,
-0.028109666,
0.0022221438,
0.01636949,
-0.019504074,
-0.030329995,
-0.03230362,
-0.015135974,
0.041359086,
0.0057975277,
-0.050530642,
-0.025642632,
-0.02030223,
-0.054332774,
0.020795638,
0.0006262817,
-0.0058845994,
0.0024434512,
-0.0133727705,
0.026992245,
-0.056103233,
0.25123104,
0.07076032,
0.043071494,
0.016848385,
0.019866873,
0.040575437,
-0.003566314,
0.020345766,
-0.0120086465,
-0.04704777,
0.019286394,
-0.05955708,
-0.009556125,
-0.002804436,
-0.027790403,
0.034422368,
-0.043680996,
-0.0056342683,
-0.024975082,
-0.05311377,
-0.059382938,
0.02673103,
-0.011624079,
0.01474415,
-0.002514197,
-0.024917034,
-0.015672917,
-0.053955466,
-0.00030883265,
-0.049950164,
0.009026439,
-0.027601747,
0.03241972,
-0.02073759,
0.020258695,
0.039965935,
0.01488927,
-0.035409182,
0.0020099063,
-0.047802392,
-0.003232539,
0.027790403,
0.034654558,
-0.015585844,
-0.019199323,
0.009498077,
-0.026237622,
-0.017414352,
0.018807499,
-0.06814816,
0.015426213,
-0.051720623,
0.02081015,
-0.048876278,
-0.06408481,
-0.0268181,
-0.04147518,
-0.0604278,
0.033522625,
0.04127201,
0.001789506,
0.029459277,
-0.0065521495,
0.030997545,
-0.042026635,
0.031171689,
-0.02133258,
0.012095718,
0.006084139,
0.011079881,
-0.0042157243,
-0.0005655129,
0.018865546,
0.0063199583,
0.0054601245,
0.012262606,
0.019025179,
0.047076795,
0.019358953,
-0.03950155,
0.023436815,
0.008083161,
-0.008504008,
-0.007466403,
0.023015967,
0.030736329,
-0.027862962,
0.00015963156,
0.0073321676,
0.024336556,
0.03015585,
0.04934066,
-0.02813869,
0.02102783,
-0.0008489496
] |
🤗Specific Hugging Face Tip🤗: The methods Dataset.to_tf_dataset() and its higher-level wrapper model.prepare_tf_dataset() , which you will see throughout our TF code examples, will both fail on a TPU Node. The reason for this is that even though they create a tf.data.Dataset it is not a “pure” tf.data pipeline and uses tf.numpy_function or Dataset.from_generator() to stream data from the underlying HuggingFace Dataset. This HuggingFace Dataset is backed by data that is on a local disc and which the remote TPU Node will not be able to read. |
[
0.024314128,
0.0070857303,
-0.016737167,
0.038761243,
-0.02295706,
-0.006343584,
0.009082457,
0.0004921137,
0.049787417,
0.04828899,
0.027551299,
-0.010913085,
0.0140301,
-0.06513924,
-0.022137165,
0.004078271,
0.028922502,
-0.006096202,
-0.03191936,
-0.017373292,
0.03064711,
0.0073154424,
-0.086117245,
-0.018094234,
-0.022363342,
0.008029317,
0.016694758,
0.001413612,
0.07729631,
0.004944108,
-0.009379316,
-0.006781804,
-0.015097377,
-0.061237674,
0.00021358795,
0.0046154433,
0.035736114,
0.020469103,
-0.032739256,
-0.028413603,
0.0026522896,
-0.011330101,
0.04778009,
-0.03251308,
-0.041305743,
-0.0071811494,
0.006548558,
0.014256278,
-0.0028360593,
-0.036131926,
-0.0035393313,
0.04630993,
0.016171722,
-0.0054565426,
-0.046620924,
0.018433502,
-0.0037602081,
-0.0069514373,
-0.002680562,
-0.013761514,
0.02346596,
-0.019762296,
0.024992662,
-0.03898742,
0.026208367,
0.006668715,
0.0059230346,
-0.015987953,
-0.01078586,
0.014729838,
-0.011754184,
-0.020709416,
-0.028031927,
-0.048091084,
0.0008547935,
0.046875376,
0.0055802334,
0.024992662,
0.014588476,
0.03189109,
0.049504694,
0.023013605,
0.0012642993,
0.007916228,
-0.005304579,
-0.040401034,
0.047384277,
-0.0024208107,
0.016369628,
-0.02743821,
-0.038535066,
0.023423553,
-0.027607843,
0.023847636,
-0.0004740018,
0.034492135,
-0.024681667,
0.081932954,
0.009534813,
0.008389788,
0.02420104,
0.07480835,
0.0070680603,
0.05272773,
0.016482716,
0.049759146,
0.02528952,
-0.01774083,
-0.049532965,
-0.034237683,
-0.0054706787,
0.013068844,
0.03443559,
0.016666487,
-0.009704446,
-0.0032407057,
-0.008729055,
-0.008559421,
0.01519633,
-0.038110983,
-0.009103661,
-0.009506541,
0.018009417,
-0.024752347,
0.017231932,
-0.058636628,
0.0042761764,
0.04630993,
-0.011421986,
0.002698232,
-0.032117266,
-0.027353393,
0.017104706,
0.019663343,
-0.024172766,
-0.017019888,
-0.026844492,
-0.0028943706,
0.009103661,
-0.009683243,
-0.0004907884,
-0.042577997,
0.0052091605,
0.076165415,
-0.036273286,
0.03415287,
0.0437937,
-0.060615685,
0.009513609,
0.040909935,
-0.021797897,
-0.02226439,
-0.0014374667,
-0.0009462366,
-0.037517264,
0.042182185,
-0.031636637,
0.026943445,
0.022971196,
-0.001171531,
0.024073813,
-0.010248687,
-0.018306276,
-0.0046578515,
0.008276698,
0.07593924,
-0.030873287,
-0.0268869,
0.0022935856,
-0.025317792,
0.015153921,
0.023776954,
0.020030882,
0.011174603,
0.052869093,
0.06440417,
0.028611507,
-0.022745019,
0.009746855,
0.009457065,
-0.006124474,
-0.022165436,
0.041927733,
0.008559421,
0.0046154433,
-0.002221138,
-0.024441352,
0.013754445,
0.054904692,
-0.013174864,
-0.024059677,
0.028328786,
-0.04908061,
0.026010461,
-0.0732251,
-0.017443974,
-0.017472245,
-0.0010743452,
-0.009131934,
-0.0779183,
-0.0007001797,
0.057053383,
-0.049278516,
-0.018801041,
-0.028752869,
0.029968577,
0.0008706967,
0.048373803,
0.0076547093,
0.028851822,
0.042210456,
0.008799735,
0.025487425,
-0.02649109,
-0.0009621397,
-0.00020331718,
-0.004000522,
0.01271544,
-0.018687952,
-0.02951622,
-0.0025409677,
-0.0068595526,
0.008354447,
0.00699738,
0.008637169,
0.023932451,
0.041305743,
0.029798942,
0.026264912,
-0.0061880867,
0.004707328,
0.041136112,
-0.03895915,
0.071415685,
0.048995793,
0.0024508499,
0.044500507,
0.026547635,
-0.018136643,
0.028625645,
-0.008396856,
0.019719888,
-0.0029597504,
0.014786382,
0.023522506,
-0.023225646,
0.024102086,
0.034379046,
-0.056374848,
0.061859664,
-0.085212536,
0.020539783,
0.002712368,
-0.0017263737,
-0.04670574,
-0.041164383,
-0.020709416,
0.0126801,
-0.0338136,
-0.011605755,
-0.013499995,
0.066213585,
-0.013584812,
0.011655231,
0.035764385,
0.0201157,
-0.005262171,
-0.0023059547,
0.003636517,
0.0026487557,
-0.03960941,
-0.021076957,
-0.0141078485,
-0.026985854,
0.0042479043,
-0.035170667,
0.019041354,
-0.044641867,
0.017203659,
-0.0026575907,
-0.02503507,
0.017797375,
-0.0030781403,
0.038252342,
0.05309527,
0.005732197,
-0.05298218,
0.019521983,
-0.04266281,
0.04670574,
-0.019295804,
-0.049872234,
0.02630732,
0.0008980854,
0.016567534,
-0.003500457,
0.00068250956,
0.009973033,
-0.036810458,
0.013019367,
-0.0013217273,
0.009393452,
0.0005035993,
-0.011626959,
-0.0102698915,
0.039411504,
0.02591151,
-0.02808847,
0.020242924,
0.02692931,
-0.010877745,
0.046875376,
-0.024823029,
0.042606268,
-0.018956538,
0.048006266,
0.06446071,
-0.012298425,
-0.04778009,
-0.019903658,
-0.026250776,
-0.024469625,
0.0027600776,
-0.030562293,
-0.010192143,
0.041164383,
-0.031636637,
-0.05360417,
0.013832194,
-0.04266281,
-0.020129835,
-0.014885335,
0.013818058,
0.039270144,
-0.008594762,
-0.0054388726,
-0.043086894,
-0.008227223,
-0.026872765,
0.022236118,
0.007895024,
-0.045263857,
0.0006299409,
0.01563455,
-0.01282853,
0.0020338343,
0.038563337,
-0.03986386,
0.012991095,
-0.008764395,
-0.039920405,
0.017217794,
0.00747094,
0.05903244,
0.0034262422,
-0.0028360593,
-0.034011506,
0.008608897,
-0.0051808883,
0.00036864352,
0.01632722,
0.04500941,
0.03582093,
-0.010305232,
-0.04984396,
-0.0038450249,
-0.010913085,
0.0026717267,
0.03859161,
-0.033841874,
0.039326686,
-0.010856541,
-0.0353403,
-0.0061527467,
-0.0048310193,
-0.03180627,
0.02277329,
0.014885335,
0.028173288,
-0.05196438,
-0.057081655,
-0.008990573,
0.008835075,
0.04099475,
0.01282853,
0.022886379,
-0.026434546,
-0.022971196,
-0.021444496,
-0.004336255,
0.0070680603,
0.020808369,
-0.010121462,
-0.029855486,
-0.002807787,
-0.030845014,
0.012107587,
0.07096332,
0.032145537,
-0.002228206,
0.028371194,
0.018193187,
0.025586378,
0.042182185,
0.030873287,
-0.028371194,
-0.056063853,
0.038393702,
0.041051295,
0.0066121705,
-0.005732197,
-0.031184282,
-0.015775912,
-0.0018889391,
-0.017260203,
0.004297381,
-0.002929711,
0.00011518729,
0.038902603,
0.031353917,
0.0072094216,
-0.026717268,
-0.045970663,
0.016228266,
0.04099475,
-0.05196438,
-0.005304579,
-0.021359678,
0.009923557,
0.026759677,
-0.010573818,
-0.0417581,
-0.041927733,
-0.0102345515,
-0.051568568,
0.059710972,
0.029798942,
-0.03491622,
0.015832456,
-0.05575286,
-0.002922643,
-0.009527746,
-0.013464655,
-0.007584029,
-0.010008373,
0.049165428,
0.030223025,
0.037630353,
0.008799735,
-0.016086906,
0.0101002585,
-0.03785653,
0.058071185,
-0.050522495,
-0.003283114,
-0.019521983,
-0.019974338,
-0.031071194,
0.030053392,
0.013132456,
0.004502354,
-0.0029420801,
0.027452346,
-0.024497896,
-0.026448682,
0.048656527,
-0.021543447,
0.0043609934,
0.066892125,
0.032597896,
-0.042097367,
0.03053402,
-0.008036384,
-0.015790047,
0.04376543,
-0.057958096,
0.016991617,
-0.030109936,
-0.0048628254,
0.011351305,
-0.006166883,
0.031353917,
0.017316747,
-0.016383763,
-0.012453922,
-0.07412982,
-0.028031927,
-0.013266749,
-0.02037015,
0.04300208,
-0.010891881,
-0.040005222,
0.009343976,
-0.023663865,
-0.013535336,
0.011994499,
-0.009626698,
-0.019210989,
0.04189946,
0.01709057,
-0.026816221,
0.019974338,
-0.07752249,
0.07039788,
-0.04630993,
-0.0071104686,
-0.033248156,
-0.038054436,
0.012757849,
-0.05436752,
-0.038026165,
0.003281347,
-0.024936117,
-0.0018889391,
-0.0013084747,
-0.007817275,
0.03251308,
-0.015252874,
-0.0040146583,
0.03901569,
-0.032004178,
-0.02182617,
-0.021218317,
-0.003413873,
0.030845014,
-0.0133727705,
0.021953395,
-0.023550777,
-0.013330362,
-0.045490038,
0.055187415,
-0.03090156,
-0.025529834,
-0.015889,
-0.045461763,
0.00071608287,
0.019719888,
0.035085853,
-0.017825648,
0.014927743,
-0.037658624,
0.038139254,
-0.06327327,
-0.0338136,
-0.010976697,
-0.0073719868,
-0.040033493,
0.09335494,
-0.03734763,
-0.014291618,
0.023296326,
-0.00038344227,
-0.019366486,
0.081310965,
-0.022179574,
-0.04438742,
-0.015592141,
-0.03420941,
0.0126730325,
-0.004707328,
-0.005389396,
0.036527734,
-0.036810458,
-0.010792928,
-0.045687944,
0.011888477,
-0.005149082,
-0.037658624,
0.005187956,
-0.047977995,
0.011535075,
-0.03720627,
0.0112028755,
-0.015380099,
0.02004502,
-0.018532455,
0.012736645,
-0.036131926,
-0.068475366,
0.048034538,
-0.052360192,
-0.025317792,
-0.009379316,
-0.003037499,
0.005011255,
-0.055441864,
-0.0025126955,
0.041645013,
0.013351566,
-0.00397225,
0.014001828,
0.009449997,
0.01625654,
0.0026363865,
-0.011690572,
-0.019083763,
-0.016694758,
-0.009259159,
-0.03935496,
-0.056346577,
-0.0022759154,
0.018829312,
0.047073282,
-0.025642922,
0.037488993,
0.026915174,
-0.0048840297,
-0.05609213,
0.04905234,
-0.008008112,
-0.0084534,
0.030053392,
0.00495471,
-0.027325122,
0.01049607,
-0.030251298,
-0.026547635,
0.029657582,
0.061859664,
-0.03505758,
-0.0753738,
0.010906017,
0.020737689,
-0.03847852,
-0.055187415,
-0.016595805,
0.022462295,
0.01981884,
-0.03963768,
0.017132979,
-0.00936518,
-0.044076424,
0.0322869,
0.047638725,
-0.00057118764,
-0.0051102075,
0.027947111,
-0.0039969883,
-0.04413297,
0.022843972,
0.038648155,
-0.041164383,
-0.00066572294,
-0.030562293,
-0.0069337673,
-0.029035592,
-0.0131395245,
0.026279049,
-0.010298164,
-0.006371856,
0.045631398,
0.018772768,
0.053406265,
0.001516099,
0.011315964,
-0.0107010435,
-0.06643977,
-0.022787426,
-0.0015311185,
0.02339528,
0.0065238196,
0.015153921,
-0.0035623023,
0.022250254,
0.020794233,
0.05439579,
-0.027409937,
-0.09001882,
0.0026045803,
-0.07769212,
-0.01974816,
-0.0076476415,
-0.025628787,
-0.008425128,
0.0031134805,
-0.028880095,
-0.06118113,
-0.0135424035,
0.009103661,
0.005749867,
0.003267211,
-0.027155487,
-0.0056685843,
-0.04591412,
0.006414265,
-0.016228266,
-0.034887947,
0.0042585065,
0.000060520266,
-0.028300513,
0.0065132175,
-0.033332974,
0.00911073,
-0.023847636,
0.008446332,
-0.009697379,
-0.0114714615,
-0.053830348,
0.03531203,
-0.025331927,
0.0116623,
0.023225646,
-0.020129835,
-0.024073813,
-0.024568578,
-0.009040049,
-0.03924187,
0.0322869,
0.024328263,
0.03101465,
-0.0138746025,
-0.030675381,
0.007265966,
-0.04014658,
-0.018080099,
-0.00491937,
-0.030929832,
0.0014153791,
0.009563086,
0.051709928,
0.041531924,
-0.022306798,
0.01658167,
-0.0024526168,
-0.028286377,
0.0353403,
0.00035782057,
0.057081655,
-0.012856802,
-0.000010615895,
-0.05261464,
-0.006916097,
0.008785599,
-0.043058623,
0.019196851,
0.01494188,
0.014602613,
-0.009534813,
0.00020618858,
0.047469094,
0.02547329,
0.00373547,
0.014800519,
0.007873819,
-0.009647902,
-0.026943445,
0.012369106,
-0.06672249,
-0.030307842,
0.04619684,
-0.04489632,
-0.015182193,
0.0131395245,
-0.042719357,
0.021953395,
0.02328219,
-0.00013860024,
0.045179043,
-0.026462818,
0.0028767006,
0.0010655101,
-0.057618827,
-0.05450888,
-0.0025621718,
0.008997641,
-0.062707834,
-0.001180366,
0.021274861,
0.053010453,
0.0144753875,
0.0014295152,
-0.02448376,
-0.02390418,
0.038535066,
0.0049016997,
-0.036867004,
0.029855486,
-0.058806263,
0.040457577,
-0.005028925,
0.010071986,
-0.0018235595,
0.031636637,
0.019847114,
0.011789525,
-0.022660201,
0.01759947,
-0.0012077548,
-0.011867274,
0.052812546,
0.028017791,
0.016086906,
-0.004000522,
-0.01625654,
0.029346587,
0.015281146,
0.01009319,
0.021981668,
-0.015351827,
0.076504685,
0.03469004,
-0.0032354046,
-0.03364397,
0.0090329815,
0.03491622,
0.014432979,
-0.029685853,
-0.040655483,
-0.009591358,
-0.030845014,
0.02029947,
-0.00025445016,
-0.010566751,
-0.012199472,
-0.03556648,
-0.024738211,
0.029685853,
-0.022646066,
-0.014729838,
-0.0070221177,
0.04794972,
0.032626167,
-0.00889162,
0.024116222,
0.017952872,
0.026406273,
0.023932451,
-0.0050006527,
0.030364387,
-0.0037602081,
0.0432848,
-0.0238335,
0.030194754,
-0.015832456,
0.012376173,
0.03796962,
-0.015719365,
-0.01075052,
0.010609158,
0.01771256,
-0.019974338,
-0.015648685,
-0.00442814,
-0.01075052,
-0.06299055,
0.018122507,
-0.06598741,
0.03859161,
0.0041524856,
-0.02226439,
-0.024285855,
0.012439786,
-0.00058929954,
0.024045542,
0.043369617,
0.046479564,
0.010241619,
0.09341148,
0.08436437,
0.007909159,
0.028258106,
0.007513348,
-0.008524081,
0.017868057,
0.015026696,
0.014411775,
0.042351816,
-0.03497276,
-0.052049197,
0.010573818,
0.0016821984,
0.0010628595,
-0.038648155,
0.010510205,
0.049363334,
-0.052247103,
-0.007887956,
0.10907431,
0.009237954,
-0.003406805,
-0.011061515,
0.008538217,
-0.01676544,
-0.018956538,
-0.0010752287,
0.03709318,
0.012058111,
-0.032824073,
0.009782195,
-0.029120408,
0.014970152,
0.0023077216,
-0.0022052347,
-0.007633505,
0.032710984,
0.03143873,
0.02397486,
0.026802085,
-0.026363865,
-0.018687952,
0.04910888,
0.05337799,
0.004120679,
0.059937153,
0.045687944,
0.027155487,
-0.004823951,
0.007923296,
-0.00042342098,
-0.019465439,
0.011930886,
0.022306798,
0.012842665,
-0.03845025,
-0.015436644,
-0.038110983,
-0.0022458762,
0.002125719,
-0.013584812,
-0.026250776,
-0.054084796,
-0.053151812,
0.003392669,
-0.023932451,
-0.021599993,
0.013309157,
-0.02422931,
0.016624078,
-0.06547851,
0.23658212,
0.06299055,
0.047864903,
0.0013553005,
0.020172244,
0.052558098,
0.017656015,
-0.003046334,
-0.019917794,
-0.036131926,
0.019451302,
-0.03830889,
-0.005597904,
-0.0020196983,
-0.014574341,
0.0059407046,
-0.0052551026,
-0.026194232,
0.0009259159,
-0.0042726425,
-0.052162286,
0.030760199,
0.00031960887,
0.0148429265,
0.018490046,
-0.02769266,
-0.03353088,
-0.03415287,
-0.0620293,
-0.05057904,
0.034463864,
-0.030251298,
0.03443559,
-0.027028263,
-0.015252874,
0.04554658,
0.024031404,
-0.038054436,
0.0039545796,
-0.0084534,
0.0047568046,
0.00841806,
0.021218317,
0.009605494,
0.030420931,
0.013125388,
0.023791092,
0.032202084,
0.030958105,
-0.08408164,
0.04783663,
-0.06016333,
0.018150778,
-0.039270144,
-0.07593924,
-0.014489524,
-0.047893178,
-0.04605548,
-0.005976045,
0.040909935,
0.012404446,
0.022914652,
0.0027671456,
0.022843972,
-0.010962562,
0.02044083,
-0.04325653,
0.018065963,
0.0070645264,
-0.00005107778,
-0.042973805,
0.0079445,
0.011584551,
-0.024243446,
0.0015611579,
0.033502605,
-0.013351566,
0.054650243,
0.004103009,
0.0026204833,
0.008552353,
0.020454967,
0.014927743,
0.0016044497,
0.022674337,
0.057166472,
-0.036131926,
0.006205757,
0.004000522,
-0.007619369,
0.03833716,
0.062312018,
-0.026830357,
0.029601038,
-0.0020797767
] | If you can fit all your data in memory as np.ndarray or tf.Tensor, then you can fit() on that data even when using Colab or a TPU Node, without needing to upload it to Google Cloud Storage. |
[
0.035185777,
0.020575244,
-0.034492906,
0.040487744,
-0.008540384,
-0.024280597,
0.018120073,
-0.006081446,
0.015152779,
0.042445857,
-0.015755275,
-0.008623227,
0.0432291,
-0.025109028,
-0.017592888,
0.028648693,
0.053652287,
-0.020876493,
-0.07085355,
0.017999573,
0.031661175,
-0.01891838,
-0.06494909,
0.0100089675,
-0.005475184,
0.021945924,
-0.015740212,
-0.008254197,
0.07657727,
0.049284186,
-0.03256492,
0.0026415691,
0.0141812535,
-0.011485084,
-0.037746385,
0.0008048972,
0.005467653,
0.01941544,
-0.08127674,
-0.056544267,
-0.010890119,
0.002972942,
0.033589162,
-0.0031649878,
-0.04066849,
0.038047634,
0.005143811,
-0.021388615,
0.009700188,
-0.0150473425,
-0.0015250684,
0.06898581,
0.020424621,
0.023813661,
-0.059707373,
0.00385221,
-0.0089545995,
0.01452769,
-0.038348883,
-0.002199111,
-0.0024777655,
0.029687999,
-0.02298523,
-0.06452734,
0.031841923,
0.04578971,
-0.01735189,
-0.008171354,
-0.010905181,
-0.0115378015,
-0.06952806,
0.017743513,
-0.027232828,
-0.013548633,
-0.043680973,
0.030260371,
0.015077467,
0.031149052,
0.016734332,
0.0020258934,
0.03376991,
0.033739787,
-0.0014026865,
-0.019400377,
-0.047747824,
-0.004620393,
0.053833034,
-0.017321765,
0.023753412,
-0.023015354,
0.010498496,
0.029868748,
-0.050338555,
0.0037166483,
0.013081699,
0.031058678,
-0.024099847,
0.053200413,
0.016297521,
-0.005475184,
0.024898155,
0.05262804,
0.014271628,
0.0392225,
-0.002462703,
0.02173505,
0.022955105,
0.0065257866,
-0.0076253423,
-0.040939614,
-0.010438247,
0.004002834,
0.010189717,
0.0053320914,
0.026103146,
-0.03639077,
-0.016131835,
-0.007184767,
-0.03651127,
0.0015890837,
0.033046916,
-0.00285056,
0.04479559,
-0.024084784,
0.0592555,
-0.011100993,
0.010664183,
0.044132847,
-0.019566063,
0.020891555,
-0.0150699355,
0.0027112328,
-0.004051787,
0.029838623,
-0.0032741902,
-0.004304082,
-0.029236127,
0.027940761,
0.020560183,
0.018526757,
-0.0049216407,
-0.013134417,
-0.023738349,
0.07826425,
0.0013612648,
-0.016930142,
0.022442983,
-0.06525034,
-0.014941906,
0.040487744,
-0.000012407361,
-0.013089229,
-0.031179177,
-0.0010581339,
-0.043289352,
-0.0046316893,
-0.024792718,
0.0511218,
0.016508395,
0.032926418,
0.015679963,
0.020951806,
0.02066562,
0.005825385,
0.021373551,
0.046271708,
-0.043741222,
-0.026253771,
0.008276791,
-0.016026398,
0.026073022,
0.034884527,
-0.017487451,
0.014053224,
0.049585436,
0.040457617,
0.009263379,
0.009278441,
-0.02663033,
0.016990392,
-0.004654283,
0.008321978,
0.019370252,
0.029281314,
-0.0069663622,
-0.010415653,
0.0071621733,
-0.0040291934,
0.004835032,
0.019927561,
-0.02818176,
0.033679537,
-0.063382596,
0.0553694,
-0.043439973,
-0.018571945,
-0.02857338,
0.00651449,
0.0022819543,
-0.058080632,
-0.027609387,
0.07434803,
-0.0028016074,
0.004059318,
0.004642986,
-0.022081485,
-0.018180322,
0.03376991,
-0.027082203,
-0.009873406,
0.055339273,
0.009157942,
-0.022473108,
-0.035818398,
0.011093461,
-0.021825423,
0.021599488,
-0.005637105,
-0.020966867,
0.03126955,
0.019490752,
0.02010831,
0.029356627,
-0.022683982,
-0.041602362,
-0.024777656,
0.0067441915,
-0.011138648,
0.016749393,
0.000005630015,
0.019310003,
0.053802907,
-0.013510977,
0.08880794,
0.025350027,
0.008728663,
0.02875413,
0.04973606,
-0.0088341,
0.018767755,
-0.05003731,
0.04253623,
-0.010920243,
-0.024325784,
0.007824919,
-0.0066048643,
0.003445525,
0.0075575616,
-0.050278306,
0.030365808,
-0.04136136,
0.030365808,
-0.016433083,
-0.005211592,
-0.02173505,
-0.033980783,
-0.060159244,
-0.004089443,
-0.036179896,
-0.054525904,
0.01046084,
0.030290496,
-0.02318104,
-0.03238417,
0.06627458,
0.05009756,
-0.019535938,
0.016433083,
-0.0056596985,
-0.016026398,
-0.00939894,
-0.00679691,
-0.027519014,
-0.03482428,
-0.030049497,
-0.0034436423,
0.026555018,
-0.029537376,
-0.023527475,
-0.03883088,
0.00025276598,
-0.0023742116,
0.008916943,
0.033438537,
0.030727305,
0.025304839,
-0.00086797104,
0.014934374,
-0.033830162,
0.015024749,
-0.031299677,
-0.033408415,
-0.0069851903,
-0.0057914946,
0.03690289,
-0.02605796,
-0.00460533,
-0.014392127,
-0.039945498,
-0.00517017,
-0.02242792,
-0.017065704,
0.0038936315,
0.0038748037,
-0.012622295,
0.021057243,
0.009436596,
-0.030109746,
0.0176682,
-0.0019524642,
-0.0010788448,
0.010129467,
-0.019490752,
0.032293797,
-0.010995556,
0.055640522,
0.04804907,
0.01653852,
-0.055279024,
-0.03602927,
-0.022458045,
-0.01516031,
0.0048086727,
-0.046633206,
0.0059157596,
0.061062988,
-0.03325779,
-0.059857994,
0.025078904,
-0.05247742,
-0.035878647,
0.010468371,
0.012735263,
0.024416158,
0.022307422,
0.011628176,
-0.03307704,
0.009730313,
-0.029507251,
0.007591452,
0.030621868,
-0.016192084,
-0.0065408493,
0.0100089675,
-0.063864596,
-0.049705934,
0.032233547,
-0.051091675,
0.022533357,
-0.021132553,
-0.0136013515,
-0.016568646,
-0.009414003,
0.051091675,
0.0040291934,
0.0355774,
-0.033498786,
0.02869388,
-0.00951944,
0.009203129,
0.019430501,
0.008969662,
0.02036437,
0.013262447,
-0.011989674,
-0.007855044,
0.012456609,
0.05073018,
0.05895425,
-0.052025545,
0.035728022,
0.008186417,
-0.041451737,
-0.019023817,
0.007222423,
-0.06193661,
0.05042893,
0.03621002,
0.03819826,
-0.02611821,
-0.052025545,
0.011613114,
-0.005832916,
0.04202411,
0.038409133,
0.004522487,
-0.045940336,
-0.026042897,
-0.018752694,
0.027760012,
-0.017231392,
0.033167414,
0.011628176,
0.0053961063,
-0.0033382054,
-0.039794873,
0.032986667,
0.05018793,
-0.0004723476,
-0.0012539452,
0.043831598,
-0.018888256,
0.023376852,
0.030200122,
0.024069723,
-0.036993265,
-0.019053942,
0.030350745,
0.060611118,
0.01446744,
-0.05012768,
-0.060159244,
-0.014068286,
-0.016719269,
-0.0023064306,
0.008984724,
-0.017110892,
0.01421891,
0.016312584,
0.025229529,
0.004514956,
-0.019370252,
-0.076336265,
0.02611821,
0.051272426,
-0.00006948711,
0.00460533,
-0.045367964,
0.006495662,
0.023226228,
-0.03720414,
-0.026389332,
-0.020876493,
-0.06645533,
-0.04979631,
0.0631416,
0.033679537,
-0.03919238,
-0.05181467,
-0.03777651,
0.007158408,
0.0019901202,
0.030682119,
-0.034432657,
-0.019505814,
0.013254916,
0.02542534,
-0.004021662,
-0.021117492,
-0.004804907,
0.0069851903,
-0.070070304,
0.023858849,
-0.035667773,
0.00921066,
-0.033498786,
-0.0015768455,
-0.025124092,
0.030260371,
0.009609814,
-0.0062170075,
-0.006458006,
0.021132553,
-0.025591025,
-0.014444846,
0.022277296,
0.015770338,
-0.010219841,
0.044675093,
0.031661175,
-0.038258508,
0.07368528,
0.017442264,
-0.017321765,
-0.010325278,
-0.04509684,
-0.008653351,
-0.013104292,
-0.012848231,
0.011658302,
-0.01102568,
0.037415013,
0.0036469847,
-0.0058404473,
0.014068286,
-0.04340985,
-0.008246667,
0.0026585143,
-0.019535938,
0.025033716,
-0.022307422,
-0.005166405,
0.014113473,
-0.013639008,
-0.012742794,
-0.004063084,
0.0055391993,
0.014550283,
0.0631416,
0.03395066,
0.013450727,
0.03852963,
-0.009715251,
0.067359075,
-0.05247742,
0.000034802393,
-0.061665483,
0.016071586,
0.027262952,
-0.027729888,
-0.06651558,
0.008073449,
0.00025205992,
-0.02135849,
-0.0012530038,
0.00082607876,
0.05229667,
0.016267397,
0.003965178,
-0.002152041,
-0.02262373,
-0.04127099,
-0.037987385,
-0.01677952,
0.004484831,
-0.02086143,
0.008035793,
-0.055399526,
-0.01478375,
-0.07470953,
0.062478855,
-0.03226367,
-0.0103177475,
-0.021207865,
-0.076818265,
-0.018135136,
0.0159059,
0.008457541,
-0.04027687,
0.014618063,
-0.03376991,
0.017336827,
-0.04792857,
-0.009896,
-0.04109024,
-0.018647257,
0.00078042084,
0.044132847,
0.0018554999,
0.016674083,
-0.01459547,
0.024883093,
0.024822842,
0.057357635,
-0.0033005495,
-0.03639077,
-0.009383878,
0.017999573,
-0.01233611,
0.010061686,
-0.01616196,
0.020032998,
-0.020755993,
0.038439255,
-0.02905538,
-0.013804694,
-0.029974185,
0.026570082,
0.028859567,
-0.044132847,
0.025952524,
-0.018330947,
0.0020654323,
0.009112755,
0.011010618,
0.0048086727,
0.045819834,
0.00313298,
-0.05292929,
0.031179177,
-0.026389332,
-0.025485588,
-0.012870825,
-0.0006307382,
-0.0060852114,
-0.02173505,
0.01860207,
0.0710343,
-0.008450009,
-0.0002692405,
-0.036661893,
0.0058931657,
0.0068496284,
0.018828006,
-0.0011042625,
-0.023828724,
-0.009903531,
-0.022277296,
-0.036692016,
-0.034914654,
-0.00077618455,
0.021478988,
0.010852463,
-0.009188067,
0.05012768,
-0.008419884,
0.0052341856,
-0.016448146,
0.006714067,
0.015341059,
0.016613832,
0.014452377,
0.049645685,
-0.027744949,
0.007150877,
-0.07639652,
-0.018782819,
0.022126673,
0.07760151,
-0.025395215,
-0.059165124,
0.053953532,
0.009301035,
-0.058683127,
-0.043590598,
-0.018361071,
0.024958404,
0.006258429,
0.016719269,
0.011070867,
0.015318465,
-0.030486306,
0.04301823,
0.04880219,
-0.013254916,
-0.005117452,
0.03639077,
-0.0046655796,
-0.027323201,
0.01717114,
0.026208583,
-0.038258508,
-0.01534859,
-0.036420893,
-0.0036036803,
-0.01165077,
0.007165939,
0.04039737,
-0.05042893,
-0.008660883,
0.0215543,
-0.00020322479,
0.06591308,
0.0054337624,
0.0031066209,
-0.000004103917,
-0.061183486,
-0.0473562,
-0.035035152,
-0.0019976513,
-0.009436596,
0.022503233,
0.024762593,
0.04804907,
0.025696462,
0.023331665,
-0.038348883,
-0.06265961,
-0.010302685,
-0.057237137,
0.0022876028,
0.034221783,
0.0028279664,
0.0056973547,
0.012155361,
-0.0045187213,
-0.036360644,
-0.011500146,
0.007177236,
-0.005723714,
-0.035728022,
-0.07778226,
0.002349735,
-0.03187205,
-0.031359926,
-0.011989674,
-0.017502515,
-0.0015363652,
0.026570082,
-0.020996992,
0.009414003,
-0.0068684565,
0.024852967,
-0.011582989,
0.020454746,
-0.007583921,
0.007855044,
-0.053652287,
0.020816242,
-0.060400244,
0.021991111,
-0.0012859527,
0.001321726,
0.01816526,
-0.004748423,
-0.021012055,
-0.045367964,
0.01973175,
0.042506106,
0.032414295,
0.0059534153,
-0.033227663,
0.02506384,
-0.033438537,
0.018195385,
-0.017683264,
-0.071757294,
0.0031141522,
0.06296085,
0.018556882,
0.032715544,
0.0314503,
0.023015354,
-0.00660863,
0.053200413,
0.020017935,
0.026841205,
0.038017508,
0.029808499,
-0.023873912,
-0.039071877,
0.008382228,
0.04283748,
-0.058321632,
0.00013273743,
0.024581844,
-0.009760438,
-0.009097693,
-0.030832741,
0.039252628,
0.026223646,
0.03500503,
0.0041685207,
-0.004191114,
-0.022638794,
0.005750073,
-0.009316097,
-0.0788065,
-0.054134283,
-0.016387897,
-0.045458335,
0.032866165,
0.010807275,
-0.0035095403,
0.014053224,
0.008020731,
0.01816526,
-0.0014008037,
-0.016402958,
0.017623013,
0.019701624,
-0.040819116,
-0.055881523,
0.018074885,
0.012908481,
-0.044705216,
-0.040698618,
-0.004827501,
0.04810932,
0.015454027,
-0.0076479358,
-0.026178459,
-0.037234265,
0.037113763,
0.012998855,
-0.06344285,
0.00736175,
-0.057207014,
0.00045846193,
-0.024792718,
-0.03551715,
0.0026829909,
0.026720706,
-0.0050157807,
0.025139153,
-0.01903888,
0.036692016,
0.017110892,
-0.020454746,
0.045880083,
0.018903317,
0.044012345,
-0.002963528,
-0.00088068,
0.0431086,
0.028739069,
-0.017562764,
0.047898445,
-0.0017095829,
0.06838331,
0.008495196,
-0.011281741,
-0.035848524,
0.006909878,
-0.0077571385,
-0.0350954,
0.011078399,
-0.00908263,
-0.001128739,
-0.019551001,
0.005814088,
0.010490965,
-0.0061416957,
0.005742542,
-0.010204779,
-0.02574165,
0.021810362,
0.013669132,
-0.0028336148,
-0.013834818,
-0.016071586,
0.008472603,
0.0003953881,
0.009150411,
0.012795513,
0.055188652,
0.04452447,
0.045458335,
0.012562046,
0.014459908,
0.023196103,
-0.022593606,
0.016734332,
-0.040065996,
0.029386751,
0.0022725402,
-0.027428638,
-0.011560395,
0.025892273,
-0.02298523,
-0.030667055,
0.00029654108,
-0.0037618356,
0.0015165958,
-0.03244442,
0.012479202,
-0.049946934,
0.00864582,
-0.016177023,
-0.028121509,
-0.037866887,
0.029401815,
0.022458045,
0.038740505,
0.063864596,
0.011658302,
-0.02060537,
0.06958831,
0.04898294,
0.0010779033,
0.014392127,
0.01784895,
-0.032685418,
-0.0054412936,
0.034041036,
0.023467226,
-0.013398009,
0.0063186786,
-0.049284186,
0.013669132,
0.013202198,
0.0058894004,
-0.02141874,
-0.009444128,
-0.024777656,
-0.036270272,
-0.002200994,
0.10374984,
0.03307704,
0.00084067043,
-0.05786976,
-0.0016333295,
-0.037686136,
-0.027729888,
0.0064994274,
0.03256492,
-0.0062170075,
-0.040608242,
-0.009602283,
-0.06033999,
-0.0030275434,
0.018571945,
0.0030896757,
-0.023708224,
0.044313595,
0.00058225606,
0.051031426,
0.015695026,
-0.003633805,
-0.041993983,
0.07983074,
0.045639087,
0.007794794,
0.060611118,
0.018255634,
-0.0006062618,
-0.008683477,
-0.0013396126,
-0.01027256,
-0.034101285,
0.011357053,
0.020063123,
-0.0011494497,
-0.049223937,
-0.039855123,
-0.050218057,
0.007037909,
-0.04178311,
-0.004872688,
-0.018330947,
-0.04307848,
-0.055399526,
-0.01033281,
-0.026524894,
-0.012554514,
0.015845649,
-0.019340128,
0.010792213,
-0.029868748,
0.27160528,
0.077420756,
0.03928275,
0.05298954,
-0.007448359,
0.042385608,
-0.0064504747,
-0.002406219,
-0.019505814,
-0.04636208,
0.00027535958,
-0.03865013,
0.002031542,
0.036240146,
-0.04904319,
0.008382228,
-0.04636208,
-0.014038161,
-0.023030417,
-0.018767755,
-0.04937456,
0.04479559,
0.011183836,
-0.0088717565,
0.0046316893,
-0.016794581,
-0.0114549585,
-0.04380147,
-0.012313516,
-0.03325779,
0.03678239,
-0.0077722007,
0.015002155,
-0.03714389,
0.021343427,
0.01715608,
0.008457541,
-0.01810501,
-0.008020731,
-0.019746812,
-0.032113045,
0.0120122675,
-0.010152061,
-0.007655467,
0.0025907336,
0.052778665,
-0.009075099,
0.007832451,
0.025139153,
-0.058231257,
0.0511218,
-0.058050506,
0.000033096105,
-0.024145035,
-0.033739787,
-0.01033281,
-0.031239428,
-0.034131408,
0.019551001,
-0.009670064,
0.04121074,
-0.0058404473,
-0.012110174,
0.038499504,
0.010890119,
0.043379724,
-0.0043379725,
0.03190217,
-0.007467187,
-0.012750326,
-0.019686563,
0.03506528,
-0.027760012,
-0.008382228,
0.015197966,
0.047175452,
0.013789631,
0.023346728,
-0.011085929,
-0.024627032,
0.014994624,
0.02718764,
-0.006676411,
-0.020499934,
0.019897437,
0.011417302,
-0.006932472,
0.011070867,
-0.007373047,
-0.0054299966,
0.03675227,
0.031179177,
0.00017945444,
0.024386033,
-0.018255634
] |
The second way to access a TPU is via a TPU VM. When using a TPU VM, you connect directly to the machine that the TPU is attached to, much like training on a GPU VM. TPU VMs are generally easier to work with, particularly when it comes to your data pipeline. All of the above warnings do not apply to TPU VMs!
This is an opinionated document, so here’s our opinion: Avoid using TPU Node if possible. It is more confusing and more difficult to debug than TPU VMs. It is also likely to be unsupported in future - Google’s latest TPU, TPUv4, can only be accessed as a TPU VM, which suggests that TPU Nodes are increasingly going to become a “legacy” access method. However, we understand that the only free TPU access is on Colab and Kaggle Kernels, which uses TPU Node - so we’ll try to explain how to handle it if you have to! Check the TPU example notebook for code samples that explain this in more detail.
What sizes of TPU are available?
A single TPU (a v2-8/v3-8/v4-8) runs 8 replicas. TPUs exist in pods that can run hundreds or thousands of replicas simultaneously. When you use more than a single TPU but less than a whole pod (for example, a v3-32), your TPU fleet is referred to as a pod slice.
When you access a free TPU via Colab, you generally get a single v2-8 TPU.
I keep hearing about this XLA thing. What’s XLA, and how does it relate to TPUs?
XLA is an optimizing compiler, used by both TensorFlow and JAX. In JAX it is the only compiler, whereas in TensorFlow it is optional (but mandatory on TPU!). The easiest way to enable it when training a Keras model is to pass the argument jit_compile=True to model.compile(). If you don’t get any errors and performance is good, that’s a great sign that you’re ready to move to TPU!
Debugging on TPU is generally a bit harder than on CPU/GPU, so we recommend getting your code running on CPU/GPU with XLA first before trying it on TPU. You don’t have to train for long, of course - just for a few steps to make sure that your model and data pipeline are working like you expect them to. |
[
0.003546468,
-0.010080878,
-0.004413382,
0.008819912,
-0.0244929,
-0.028536217,
0.03569083,
-0.00797013,
0.019257149,
0.049287338,
-0.015515368,
0.011389816,
0.02556198,
-0.03818535,
-0.008929561,
-0.0014280102,
0.020559235,
-0.029906832,
-0.06792771,
0.07149131,
0.014747824,
-0.019928752,
-0.07653517,
0.011561142,
-0.00921739,
0.012314981,
-0.028974814,
-0.0019548405,
0.06573472,
0.0910637,
-0.0436404,
0.0012832389,
0.0051089698,
-0.023396408,
-0.0062020356,
-0.017653529,
0.026603648,
0.020997832,
-0.035279647,
-0.072861925,
0.0026007432,
-0.0078056557,
0.0054070787,
-0.0036629701,
-0.05466015,
0.013596507,
-0.016392563,
-0.029934244,
-0.026521413,
-0.04459983,
0.0054276376,
0.028755516,
0.012267009,
0.00232662,
-0.056140415,
0.034237977,
0.0028937121,
-0.01968204,
-0.06047156,
0.049862996,
-0.011492612,
-0.018448487,
-0.011184223,
-0.06606367,
0.05942989,
0.048300494,
-0.0074287364,
0.006383642,
0.006219168,
0.010916953,
0.0012292708,
0.023464939,
-0.02364312,
0.007195732,
-0.007319087,
-0.008299078,
0.020353641,
0.038295,
-0.017091576,
-0.0032980437,
0.0003732786,
0.05416673,
0.0053282683,
-0.017776884,
-0.07878298,
-0.036211666,
-0.010711361,
-0.026822947,
0.00554414,
0.0061574904,
0.03281254,
0.013966573,
-0.013747275,
0.006661192,
0.01278099,
0.041584477,
-0.0107730385,
0.01297973,
0.012143655,
-0.00376234,
0.004824567,
0.0074698552,
0.0036972356,
0.031222623,
-0.026247289,
0.022601452,
0.015350895,
-0.025479743,
0.009608015,
-0.017927652,
0.0114994645,
0.011951768,
-0.0009457248,
0.025068559,
0.034429863,
-0.012746725,
-0.028974814,
0.032538414,
-0.020518115,
-0.023560882,
0.07642553,
0.014624469,
0.006517277,
0.01783171,
0.027179308,
-0.020984124,
0.012438336,
0.060745683,
-0.022669982,
0.009320186,
0.0016901403,
0.009272215,
0.004005624,
0.03818535,
0.00039062544,
0.047204003,
-0.0070004193,
0.03511517,
0.011992887,
-0.0069627273,
0.012102536,
-0.040762108,
-0.002472248,
0.062171124,
-0.033031836,
0.004673799,
0.051069137,
-0.03368973,
-0.031030737,
0.03141451,
-0.026260994,
0.0080386605,
-0.023697944,
-0.029385999,
0.014487407,
0.017489055,
-0.008806205,
0.002974236,
0.03840465,
0.055564757,
-0.026973715,
-0.00921739,
0.019490154,
0.03925443,
-0.0030873118,
0.06425446,
-0.023848712,
-0.0003163124,
0.014185872,
-0.046162333,
0.0034847902,
0.00007848916,
-0.031304862,
0.00030967346,
0.06365139,
0.08870624,
0.03368973,
-0.005002747,
0.025233034,
0.03401868,
-0.012630223,
0.031250037,
-0.009868433,
0.040762108,
-0.003745207,
0.027343782,
0.02257404,
-0.0036732499,
0.025603099,
-0.007182026,
-0.004941069,
0.019997282,
-0.026411762,
0.06151323,
-0.03626649,
-0.010978631,
-0.01511789,
0.019956164,
-0.02282075,
-0.045312554,
-0.019901339,
0.0422972,
-0.011115693,
0.020271406,
-0.035169996,
-0.05156256,
-0.033305958,
0.03190793,
-0.012184773,
0.015487957,
0.056359712,
0.0026298687,
-0.047752246,
0.018174363,
0.0070997886,
0.013966573,
0.0420779,
-0.004081008,
-0.0012241311,
0.013596507,
0.010430384,
0.026466588,
0.021395309,
-0.019229736,
-0.011787294,
0.003077032,
0.008292224,
0.04098141,
0.020888181,
-0.031359684,
-0.007915305,
0.031990167,
0.01155429,
0.07796062,
0.020600352,
0.015487957,
0.019284561,
0.03533447,
-0.04004939,
0.037719343,
-0.026233584,
0.024945203,
-0.0123012755,
0.0113075785,
-0.0015719248,
0.010197381,
-0.010807304,
-0.009258509,
-0.02064147,
0.035718244,
-0.04150224,
0.032785125,
0.011143105,
0.013288118,
0.0034162593,
-0.029276349,
0.011191077,
0.020600352,
-0.044024173,
-0.02696001,
-0.014158459,
0.05383778,
-0.006459026,
-0.02007952,
0.066337794,
0.038486887,
-0.016419975,
0.0029039918,
-0.014569644,
-0.020710003,
-0.019599803,
-0.0072711157,
-0.046080098,
-0.02856363,
-0.04125553,
-0.004283174,
0.03898031,
-0.07253298,
-0.0071614664,
-0.030043894,
0.00034608043,
0.01055374,
0.010862129,
0.02870069,
0.02542492,
-0.0014605622,
0.019106383,
0.058936473,
-0.023259347,
0.009834167,
-0.029550472,
-0.00092859205,
-0.01422699,
-0.007874187,
0.04967111,
-0.026932597,
-0.002758364,
0.005246031,
-0.032538414,
-0.028125033,
-0.024081716,
0.013390915,
0.010163114,
-0.024643669,
-0.00376234,
0.03484105,
0.0050678514,
-0.03486846,
0.037390392,
-0.00644532,
-0.042626146,
-0.013555388,
-0.013884336,
0.035197407,
-0.05367331,
0.02121713,
0.030921089,
-0.010341295,
-0.05986849,
-0.033278547,
-0.028645866,
-0.002300921,
0.033114072,
-0.021134892,
-0.0030102145,
0.04660093,
-0.006935315,
-0.04432571,
0.046683166,
-0.0076960064,
-0.022519214,
0.014871179,
-0.017187519,
0.014028251,
0.008607466,
0.0047628894,
-0.011273313,
0.04100882,
-0.068475954,
-0.015063065,
0.0100192,
0.005119249,
0.028289506,
0.034100916,
0.014213284,
-0.006914756,
0.02709707,
-0.03377197,
-0.009868433,
-0.051343262,
-0.006520704,
-0.026233584,
-0.012726166,
0.023314172,
0.024205072,
0.032648064,
-0.01843478,
0.029194113,
0.0055612726,
0.011245901,
0.037280746,
0.055208396,
0.0155839,
0.013534829,
-0.018311424,
-0.010971778,
-0.013658185,
0.011430934,
0.06792771,
-0.029879421,
0.060910158,
-0.003649264,
-0.06381586,
0.027165601,
-0.009676546,
-0.0052905763,
0.06387069,
0.03993974,
0.037637103,
-0.03484105,
-0.056579012,
-0.017598704,
-0.007819362,
0.035416707,
0.029276349,
0.042543907,
-0.02310858,
-0.021970969,
-0.03865136,
-0.004043316,
-0.0032774846,
0.029852008,
0.031716045,
-0.026932597,
-0.0131236445,
-0.079331234,
0.03070179,
0.018818552,
0.0079427175,
-0.009724517,
0.01636515,
-0.04931475,
0.05773033,
0.02021658,
0.055866294,
-0.044956192,
-0.016282914,
0.03390903,
0.012150507,
0.020120637,
-0.064528584,
-0.045065843,
-0.031277448,
-0.008641731,
-0.03569083,
-0.0010990624,
-0.011417228,
0.018407367,
-0.019627215,
0.059210595,
-0.029714946,
-0.04994523,
-0.03152416,
0.0065138508,
0.03377197,
-0.028371744,
-0.01729717,
-0.0037794726,
-0.011787294,
0.043722637,
0.015529075,
-0.023835005,
-0.012075123,
-0.03580048,
-0.06798253,
0.04835532,
0.06551543,
-0.01640627,
0.009169418,
-0.052823525,
0.0044956193,
0.02264257,
0.006489865,
-0.013192175,
-0.027193014,
-0.007935864,
0.030290606,
0.028262094,
0.0025527715,
-0.0021535798,
0.044627246,
-0.09769748,
0.02064147,
-0.030674377,
-0.0059279124,
-0.022464389,
-0.020956712,
0.0006090673,
0.036129426,
0.021669433,
-0.008867883,
-0.007394471,
0.0076685944,
-0.04980817,
-0.015460544,
0.009121447,
-0.020874476,
-0.018517017,
0.051617384,
-0.014775236,
-0.030674377,
0.041721538,
0.016981928,
-0.016776334,
0.031277448,
0.0061437846,
-0.005760012,
-0.020627765,
-0.004735477,
-0.045559265,
-0.008141457,
-0.00078938896,
0.027892027,
-0.017735766,
-0.028618453,
-0.02495891,
-0.016803747,
0.013534829,
-0.019668333,
0.038788423,
-0.031853106,
-0.03355267,
0.016502213,
-0.05701761,
-0.03149675,
-0.003680103,
0.011828412,
-0.014720412,
0.046655755,
0.046655755,
-0.009237949,
0.025411213,
-0.03163381,
0.052823525,
-0.058662347,
-0.0362939,
-0.053481422,
0.020531822,
0.011081427,
-0.032291703,
-0.036321312,
-0.003724648,
-0.024904085,
0.0067228694,
0.039446317,
0.010471503,
0.06293867,
-0.009477807,
-0.017763179,
0.041940838,
0.011321285,
-0.010389267,
-0.019627215,
-0.010149408,
0.013034554,
0.014158459,
0.015474251,
-0.052576814,
-0.039638203,
-0.083443075,
0.035526358,
-0.047587775,
-0.014446288,
-0.0218202,
-0.07220403,
-0.0247122,
0.030646965,
0.03368973,
-0.04539479,
-0.005396799,
-0.04043316,
0.003508776,
-0.08207246,
-0.0036698233,
0.003731501,
-0.00061206555,
0.013171616,
0.025178209,
0.0031181504,
0.0032192334,
-0.014775236,
0.04846497,
0.017516468,
0.03059214,
-0.027069658,
-0.05153515,
0.03747263,
0.023478646,
-0.03308666,
-0.016269207,
-0.057346556,
0.045065843,
-0.021299366,
0.060142614,
-0.017680941,
0.012883787,
-0.042955093,
-0.00322266,
0.032291703,
-0.030921089,
0.008271665,
-0.007558945,
-0.006191756,
0.04325663,
0.025932048,
0.01422699,
0.038212765,
0.0036595436,
-0.025616806,
0.020367349,
-0.0133155305,
0.008408727,
-0.03593754,
-0.00420779,
0.017790591,
-0.013719862,
0.028974814,
0.0656799,
-0.031304862,
-0.014350345,
-0.03368973,
-0.018640373,
0.031250037,
-0.016954515,
0.027521962,
-0.013589654,
-0.023163404,
0.005389946,
-0.03615684,
-0.038541712,
-0.011986033,
0.03390903,
0.027604198,
-0.023684237,
0.02478073,
0.008052367,
-0.038267586,
-0.022930399,
0.041063644,
-0.010389267,
0.019832809,
0.03270289,
0.032428764,
-0.032319117,
0.003438532,
-0.06743429,
-0.00671259,
0.024835555,
0.047944132,
-0.021984674,
-0.0581141,
0.08042772,
0.0064624525,
-0.0327303,
-0.07351982,
-0.00921739,
0.05367331,
-0.01117737,
0.0020233714,
0.01600879,
0.02342382,
-0.042132724,
0.017598704,
0.032319117,
-0.029248938,
-0.024026891,
0.026480293,
-0.008710262,
-0.010958072,
-0.046025272,
0.017598704,
-0.03700662,
-0.027467137,
0.026864067,
0.020874476,
-0.033497844,
-0.0025219328,
0.061787352,
-0.034429863,
0.014473701,
0.017680941,
-0.019928752,
0.022149147,
-0.0027994823,
0.0077028596,
0.00036835295,
-0.04895839,
-0.05005488,
-0.042653557,
0.01654333,
0.0023129138,
0.024095422,
0.023327878,
0.064473756,
0.030756615,
-0.008744528,
-0.012410925,
-0.062445246,
0.011581702,
-0.011780441,
-0.011670792,
0.013932307,
-0.028125033,
-0.0035190557,
0.0018109259,
-0.0011830126,
-0.048136022,
-0.018092126,
0.013130497,
0.009560044,
-0.021518664,
-0.03804829,
-0.020970419,
-0.02870069,
-0.04994523,
-0.02057294,
-0.018530723,
-0.023149697,
0.03840465,
-0.047861896,
-0.02531527,
0.009806755,
0.038596537,
-0.034292802,
0.04235202,
-0.016036203,
-0.013466299,
-0.04300992,
0.012116242,
-0.00752468,
0.033251137,
0.035718244,
0.008902148,
0.023807593,
-0.008381315,
0.010300176,
-0.0047697425,
0.041063644,
0.030537317,
-0.043174393,
-0.008854177,
-0.06765359,
0.018722609,
-0.04125553,
0.010272764,
0.027206719,
-0.017694648,
-0.0024705345,
0.024095422,
0.008367608,
0.026356937,
0.016186971,
0.027042245,
0.03012613,
0.025726454,
0.020463292,
0.008278518,
0.020627765,
0.041886013,
0.0020010988,
-0.012650782,
0.011773588,
0.011670792,
-0.023752768,
0.02891999,
-0.0076685944,
0.009936963,
-0.035060346,
-0.027302664,
0.010875835,
0.013281265,
0.047587775,
-0.0007696863,
-0.030866263,
-0.042955093,
-0.008066073,
0.0064316136,
-0.06962727,
-0.034128327,
0.014446288,
-0.079057105,
0.00966284,
-0.0046943584,
0.0010228219,
0.029934244,
-0.014103634,
-0.009375011,
-0.028536217,
0.011992887,
0.06025226,
-0.005681202,
-0.047478124,
-0.029084463,
0.04103623,
-0.009738224,
-0.033744555,
-0.037664518,
-0.0037417805,
0.023012636,
-0.0095874565,
-0.005746306,
-0.014679293,
-0.01378154,
0.02502744,
0.020202873,
-0.059758842,
0.015748374,
-0.032373942,
0.025630511,
-0.018284012,
-0.014747824,
0.0010613705,
0.029248938,
0.0014811215,
0.023985773,
-0.017735766,
0.025219327,
0.026123933,
0.0130277015,
0.05285094,
0.010533181,
0.09062511,
-0.00061763363,
-0.0020422172,
0.02709707,
0.044545006,
0.034676574,
0.09292774,
0.030318018,
0.05581147,
0.021929849,
0.0012155647,
-0.017242344,
-0.031441923,
0.01075248,
-0.023053754,
-0.03415574,
0.046052683,
0.018352544,
-0.00661322,
-0.0019188619,
0.022532921,
-0.01879114,
0.017626116,
-0.033333372,
-0.04336628,
0.010238498,
-0.045696326,
-0.0067400024,
-0.0028046223,
-0.03166122,
0.019024145,
0.03070179,
-0.015186421,
0.0098547265,
0.036102016,
0.033415608,
0.026727004,
0.0247122,
0.016186971,
0.013500564,
-0.012733019,
-0.0126919,
-0.007545239,
0.004704638,
-0.006510424,
0.012986583,
-0.020339936,
0.0124931615,
-0.0109649245,
-0.028673278,
-0.006784547,
-0.020545527,
-0.030043894,
-0.04525773,
0.027261544,
-0.03591013,
-0.015323482,
0.017557586,
0.008723969,
-0.03262065,
-0.00072771125,
0.016502213,
-0.015241246,
0.061622877,
0.046080098,
-0.019284561,
0.07017552,
0.010183674,
-0.0063665095,
0.016666686,
0.0077371253,
-0.029687535,
-0.03511517,
0.021244543,
-0.011095134,
-0.024013186,
0.026069108,
-0.031332273,
0.0101219965,
0.008120897,
-0.006181476,
-0.045093253,
-0.02021658,
0.009847873,
-0.046409044,
-0.02324564,
0.06485753,
0.050822426,
0.013493711,
-0.035855304,
-0.039089955,
-0.018873377,
-0.00581141,
-0.0027686434,
0.00197026,
-0.02798797,
-0.04731365,
0.0041872305,
-0.017160108,
-0.025603099,
0.0016310326,
-0.011725617,
-0.049479224,
0.028645866,
-0.0061643436,
0.0380757,
0.026494,
0.006273993,
0.003426539,
0.0327303,
0.08442992,
-0.010361854,
0.05183668,
0.015350895,
0.024684787,
0.011245901,
-0.025630511,
-0.019490154,
-0.009861579,
-0.021792788,
0.017872827,
0.018352544,
-0.052549403,
-0.040597633,
-0.029139288,
0.034649163,
-0.042653557,
-0.004550444,
-0.025150796,
-0.045586675,
-0.05630489,
-0.015912848,
-0.021888731,
-0.019366799,
0.041447416,
-0.005790851,
0.0083059305,
-0.04432571,
0.21918885,
0.047752246,
0.024479195,
0.058388226,
0.016488506,
0.019956164,
-0.008936414,
-0.0123012755,
-0.013336089,
-0.04314698,
0.020956712,
-0.027782379,
-0.012452043,
0.03714368,
-0.04624457,
0.014213284,
-0.040350925,
-0.020120637,
0.0034539513,
-0.03404609,
-0.07669965,
0.024054304,
-0.0007632616,
0.021970969,
0.013178469,
-0.020915594,
-0.0023163403,
-0.03725333,
0.0042009368,
-0.029742358,
0.027371194,
-0.02028511,
0.022368446,
-0.020476997,
-0.0139460135,
0.026905185,
-0.022765925,
-0.025095971,
-0.014555938,
0.0006651769,
-0.024438076,
0.013562242,
-0.0030530463,
-0.027576786,
-0.015858022,
0.07796062,
-0.008895296,
0.0380757,
0.024205072,
-0.07785097,
0.0218202,
-0.051315848,
-0.0021467267,
-0.01932568,
-0.058278576,
-0.027905734,
-0.034402452,
-0.009991787,
0.05953954,
-0.0014031677,
0.025082266,
-0.01189009,
-0.014295521,
0.041557066,
-0.042982504,
-0.008196281,
-0.022491802,
0.034566924,
-0.045202903,
0.011348697,
0.009847873,
0.009203684,
0.019051557,
0.020476997,
0.016694099,
0.0454222,
0.021313073,
0.042489085,
-0.015474251,
-0.018174363,
0.00848411,
-0.012027152,
0.014144753,
-0.016981928,
0.013747275,
0.03950114,
-0.038295,
-0.0024962337,
-0.026260994,
0.04339369,
0.041940838,
0.035142586,
-0.0056983344,
-0.007195732,
-0.050137118
] | XLA compiled code is usually faster - so even if you’re not planning to run on TPU, adding jit_compile=True can improve your performance. Be sure to note the caveats below about XLA compatibility, though! |
[
0.018322848,
-0.0068962,
-0.004195356,
0.027879681,
0.016111238,
-0.04069361,
0.023804959,
-0.0097243795,
-0.017411398,
0.10910606,
0.009235145,
0.048950285,
0.043508388,
-0.056134664,
-0.015548283,
0.03259778,
0.026405275,
0.0076199993,
-0.053990074,
0.035921898,
-0.0020926516,
-0.010716252,
-0.09790057,
0.0052039837,
0.0033777305,
0.024327703,
0.012512347,
-0.016607175,
0.076883584,
0.03342881,
-0.046778888,
0.031820368,
0.03176675,
-0.01970343,
-0.04685931,
-0.016607175,
0.023456462,
-0.012961371,
-0.048950285,
-0.036886964,
0.013041793,
-0.003451451,
0.00631649,
-0.05058554,
-0.05484791,
0.04069361,
-0.014891502,
0.001462678,
-0.015360632,
-0.04838733,
-0.009784696,
0.033509232,
0.01048839,
-0.01143335,
-0.06251482,
-0.00406467,
-0.008665487,
0.017867122,
-0.078760095,
0.025922742,
-0.0055692345,
0.007506068,
-0.00537153,
-0.038280945,
0.054177728,
0.035734244,
-0.026418678,
0.024475142,
0.014355355,
0.022303745,
-0.003451451,
-0.008417519,
-0.036672503,
-0.0116411075,
0.038495407,
0.003568733,
0.008142743,
0.0010647558,
-0.029488124,
0.012800527,
0.030399576,
0.026445486,
0.0042992346,
0.015575091,
0.022813085,
0.011976199,
0.025815513,
0.025641264,
0.018336251,
-0.028657096,
0.0076468065,
0.033080313,
-0.017076304,
-0.005639604,
0.009717677,
0.030774878,
0.024126647,
0.032222476,
-0.00010241259,
-0.050371077,
0.00457401,
0.048360523,
0.012626278,
0.033884536,
-0.036029126,
0.021285065,
-0.0090743,
0.0023791555,
0.0052140364,
-0.06675039,
-0.00802211,
-0.014730658,
-0.022947121,
0.03814691,
0.032061633,
0.024542162,
-0.00624277,
0.033080313,
-0.02450195,
-0.0413906,
0.043535195,
0.014757466,
-0.0077875457,
0.033267964,
0.0018999735,
-0.03744992,
0.038897518,
0.046215933,
0.0039976514,
0.011218891,
-0.0014140896,
0.013926437,
0.040532768,
0.036645696,
-0.02972939,
-0.021781001,
-0.015682321,
0.03576105,
-0.007988601,
-0.0066080205,
0.0027745643,
-0.039969813,
0.021311872,
0.051818676,
0.004057968,
-0.014449181,
0.05230121,
-0.045170445,
-0.03546617,
0.004222163,
-0.039943006,
0.044339415,
-0.0042489707,
-0.011031239,
-0.045894243,
0.002315488,
0.0015640433,
0.02040042,
0.028228177,
0.016030816,
-0.01517298,
0.03353604,
-0.041765906,
0.04018427,
-0.0018379814,
0.030506805,
-0.016138045,
-0.027665222,
0.02076232,
-0.013262954,
-0.017679472,
0.030560419,
-0.028013717,
0.022451185,
0.06492749,
0.05640274,
0.048253294,
-0.0066582845,
0.01302839,
-0.004232216,
-0.008370606,
-0.0036525063,
0.00021571569,
0.05109488,
0.0029354086,
-0.021204641,
0.0034648546,
0.002972269,
0.015414246,
-0.008605171,
-0.020896357,
0.01676802,
-0.020333402,
0.0428382,
-0.03873667,
-0.00041153526,
-0.07806311,
0.015749339,
0.028844746,
-0.041042108,
-0.028630288,
0.029970657,
-0.032544166,
0.0043528494,
-0.036484852,
0.02653931,
-0.06503472,
0.0027310024,
-0.0071843793,
0.012981476,
-0.006004854,
-0.008236569,
-0.008162849,
-0.0486286,
-0.0027377042,
-0.0050833505,
-0.021915037,
0.0117081255,
-0.0308553,
0.015119365,
0.015481265,
0.002819802,
0.018818785,
0.037369497,
-0.0011116688,
-0.017545434,
0.078277566,
0.032892663,
0.013966648,
-0.006236068,
0.0017274009,
0.05160422,
0.015936991,
0.051845483,
0.03506406,
0.01847029,
0.071307644,
0.033670075,
-0.004503641,
0.029702583,
-0.008953666,
0.031820368,
-0.02363071,
0.03232971,
0.021392293,
-0.030077886,
-0.038307752,
-0.0049593663,
0.0029890235,
-0.033187542,
-0.01655356,
0.015293613,
0.013658362,
0.0006425395,
-0.042087596,
-0.030104693,
-0.033160735,
0.007164274,
-0.043427963,
-0.029675776,
0.015990606,
0.024488546,
-0.0058607645,
-0.0016293864,
0.049030706,
0.036726117,
-0.0315791,
0.020789128,
0.0061388914,
-0.02602997,
-0.03219567,
-0.056241896,
-0.071200415,
-0.011594194,
-0.003320765,
-0.0072580995,
0.027745644,
-0.034715563,
0.007110659,
0.008249973,
-0.022880103,
-0.0040814243,
-0.014770869,
0.00838401,
0.020293191,
0.02526596,
-0.032544166,
0.045760207,
-0.06058469,
0.028523058,
-0.01361145,
-0.02554744,
-0.0047449074,
0.002950488,
0.04490237,
0.012793825,
-0.009657361,
-0.007284907,
-0.04846775,
-0.013872822,
-0.04307947,
0.01491831,
-0.014100685,
0.040586382,
-0.0049493136,
-0.0072513977,
0.007995303,
-0.041873135,
0.0344743,
0.008209762,
-0.03927282,
0.026512504,
-0.0010597295,
0.009248548,
-0.028576672,
0.030721264,
0.0598877,
-0.0018781924,
-0.03332158,
-0.024381317,
-0.030211924,
0.006239419,
0.02507831,
-0.01731757,
-0.04600147,
0.045706593,
-0.04189994,
-0.06508833,
-0.0022049074,
-0.036324006,
-0.023389444,
0.012405118,
-0.01927451,
0.03393815,
0.014543006,
0.004242269,
-0.028120948,
0.017907333,
-0.05085361,
0.03393815,
0.0050364374,
0.01978385,
0.010575513,
0.035627015,
-0.013859418,
-0.015159576,
-0.0008804551,
-0.05811841,
0.03959451,
0.008223166,
0.030479997,
-0.005797097,
-0.042382475,
-0.0015874999,
-0.003451451,
0.05412411,
-0.002700844,
0.011681318,
-0.019180683,
-0.0077406326,
0.045358095,
0.046081897,
0.012116938,
-0.022129497,
-0.017960949,
-0.017304167,
0.03822733,
0.012210764,
0.05058554,
0.02235736,
0.056456354,
0.020802531,
-0.031605907,
-0.0026589576,
0.0021395644,
0.019569391,
0.051845483,
0.047341842,
0.03589509,
-0.04581382,
-0.037557147,
0.046403583,
-0.009523324,
0.039648123,
0.04069361,
0.045438517,
-0.06289013,
-0.014931713,
-0.04010385,
0.07087873,
0.003320765,
-0.0064706327,
-0.024341106,
0.007144168,
-0.009121213,
-0.034501106,
0.011661213,
0.025721686,
0.011118363,
-0.010836885,
0.04195356,
-0.010984326,
-0.000463684,
0.017357782,
0.038709864,
-0.047234613,
-0.029514931,
0.027289918,
0.035519786,
0.008236569,
-0.026901212,
-0.02598976,
-0.0133969905,
-0.012981476,
-0.03959451,
0.0024076384,
-0.07270163,
-0.008270078,
-0.035787858,
0.06658954,
-0.07741973,
-0.031096566,
-0.044741526,
-0.010535303,
0.049245168,
-0.025641264,
-0.0044734823,
-0.03259778,
-0.012626278,
0.029595353,
-0.014087281,
-0.021003587,
-0.034527913,
-0.036109548,
-0.065892555,
0.022853296,
0.030533612,
-0.015601899,
0.005629551,
-0.039192397,
-0.01274021,
-0.0044868863,
0.048574984,
-0.015226595,
-0.023188388,
0.016272083,
0.027450763,
0.05281055,
-0.030292345,
-0.015950395,
-0.0077473344,
-0.034259837,
-0.028067332,
-0.052220788,
0.0008704023,
0.008993878,
-0.0063466486,
-0.0026907914,
0.023617307,
0.008973773,
0.013564537,
0.008585066,
0.029514931,
-0.032651395,
-0.027289918,
0.0031817015,
0.012793825,
0.0090743,
0.03822733,
-0.021539735,
-0.024408124,
0.004657783,
0.0016134696,
-0.014971925,
0.032249283,
-0.0012256001,
-0.017411398,
-0.053373504,
0.007995303,
0.0008972097,
-0.03096253,
0.020829339,
-0.021794405,
0.00319343,
0.012217466,
-0.037664376,
-0.028308598,
0.00624277,
-0.02188823,
0.04707377,
-0.017612452,
0.008209762,
-0.027249707,
-0.033375196,
-0.042355668,
-0.022598626,
-0.016701002,
0.01942195,
0.048655406,
0.011962796,
-0.01186897,
-0.0087191025,
-0.029595353,
0.076132976,
-0.061871447,
-0.00027498513,
-0.017036093,
0.015307017,
0.03487641,
-0.01702269,
-0.014408969,
-0.0095635345,
0.009241846,
-0.019917887,
0.034608334,
-0.034688756,
0.04163187,
-0.03576105,
-0.038280945,
0.02116443,
-0.004966068,
-0.010716252,
-0.015735935,
0.017424801,
0.05608105,
-0.011460157,
0.010119788,
-0.065141946,
-0.019730236,
-0.015668917,
0.01604422,
-0.027048651,
-0.05752865,
-0.037986066,
-0.035198096,
0.0051570707,
0.0399162,
0.013336674,
-0.04222163,
0.01056211,
-0.049030706,
-0.017719682,
-0.045974664,
-0.02660633,
-0.022330552,
0.029756198,
-0.016620578,
0.020990184,
-0.024180261,
-0.03833456,
-0.00820306,
0.0024361212,
0.030882109,
0.031927597,
0.026700156,
-0.05565213,
0.0035419257,
0.029193243,
-0.031605907,
0.01328306,
-0.016432928,
0.032946277,
-0.010052769,
0.09227102,
-0.036029126,
-0.01731757,
-0.03744992,
-0.033133928,
0.054365378,
-0.02769203,
0.0066817407,
0.012646385,
-0.024367914,
0.003977546,
0.04460749,
-0.018242426,
0.015159576,
-0.019153876,
-0.035868283,
0.035332136,
-0.049298782,
0.00969087,
-0.01582976,
0.005327968,
0.04337435,
-0.02602997,
-0.015655514,
0.05667081,
-0.008182954,
0.008162849,
0.0030862002,
0.038951132,
0.040264692,
0.017210342,
0.012592769,
0.020802531,
-0.0020876252,
-0.0030409629,
-0.027879681,
0.011440052,
-0.02747757,
0.05597382,
0.058654558,
-0.021285065,
0.041685484,
-0.01324955,
-0.027665222,
-0.015936991,
0.029783005,
0.006591266,
0.032731816,
0.004503641,
0.05240844,
-0.014395566,
0.015695725,
-0.023577096,
-0.036029126,
-0.0042020576,
0.04498279,
-0.0006186642,
-0.015481265,
0.050397884,
0.05752865,
-0.011460157,
-0.07270163,
-0.0043863584,
0.045947857,
-0.0072513977,
0.0023791555,
0.045090023,
-0.011956094,
-0.050719574,
0.030372767,
-0.0043763057,
0.0046108705,
0.0020239577,
0.027450763,
-0.0050062793,
0.00004275045,
-0.010836885,
0.05433857,
-0.046189126,
-0.002203232,
-0.00820306,
0.009355778,
-0.035519786,
0.022679048,
0.059726853,
-0.04088126,
0.009590342,
0.014234722,
-0.03128422,
0.041042108,
-0.00037572227,
0.024542162,
0.00031854713,
-0.0744173,
-0.069699205,
-0.0058071497,
0.010059471,
0.008819629,
-0.014556411,
-0.007814352,
0.01948897,
0.035787858,
0.06256844,
-0.021660367,
-0.046189126,
0.022089286,
-0.047234613,
-0.027531184,
0.03380411,
-0.018054774,
0.00324872,
0.007995303,
0.0027779152,
-0.047609918,
-0.015105962,
-0.007633403,
0.006517546,
-0.023979206,
-0.03546617,
-0.027852874,
-0.039648123,
0.012646385,
-0.009429498,
-0.025252556,
-0.0057736407,
0.058279257,
-0.015735935,
-0.014248125,
-0.0005336345,
0.012425223,
-0.060638305,
0.03147187,
0.009442901,
-0.0039004746,
-0.049700893,
-0.013450606,
-0.042704165,
0.039004747,
0.009784696,
-0.0275848,
0.006852638,
-0.023309022,
-0.004664485,
-0.026861,
0.025453612,
0.057367805,
-0.05240844,
-0.015199788,
-0.067393765,
0.02609699,
-0.03908517,
0.025386594,
-0.006805725,
0.016379312,
-0.026324853,
0.023536885,
0.009650659,
0.019060051,
-0.0022568468,
0.042811394,
-0.016191661,
0.019194089,
0.008873245,
-0.004094828,
0.037047807,
0.009241846,
0.0010262203,
-0.017920738,
0.010220315,
0.020735513,
-0.07393477,
-0.01702269,
0.015119365,
-0.029354086,
-0.014033666,
0.02014575,
-0.05597382,
0.027718836,
0.057367805,
0.013832611,
-0.0048487857,
0.018832188,
-0.058708172,
0.014690448,
-0.083317354,
-0.028817939,
-0.0098249065,
-0.026298044,
0.012760315,
-0.020668494,
-0.035519786,
-0.006882796,
-0.028147755,
0.028791131,
0.011553983,
0.004527097,
0.002533298,
-0.045974664,
-0.05093403,
-0.06101361,
0.022638837,
-0.0015883376,
-0.0555449,
-0.031873982,
-0.0032436936,
0.019086858,
0.038012873,
-0.0089134555,
-0.006229366,
0.013524326,
-0.011915883,
0.022880103,
-0.048977092,
-0.014033666,
-0.05978047,
0.021218045,
0.004788469,
0.02707546,
0.0025651318,
0.05002258,
-0.028630288,
0.010877097,
0.014100685,
0.042784587,
0.019716833,
-0.011078152,
0.031820368,
0.0019485619,
0.015735935,
-0.010769867,
-0.007157572,
0.013604748,
0.035841476,
0.039648123,
0.036672503,
0.0326782,
0.05967324,
0.015628705,
-0.00936248,
-0.027062055,
0.034715563,
-0.012606173,
0.008243271,
-0.027611608,
0.027879681,
0.0221429,
0.006594617,
0.017518627,
0.010957519,
-0.008370606,
-0.0009726054,
0.015628705,
-0.0598877,
0.038307752,
-0.0077808434,
-0.029139629,
-0.023791555,
0.019207492,
0.029622162,
0.0344743,
-0.0023255406,
0.051443372,
0.035653822,
0.048146065,
0.038388178,
0.03908517,
-0.00925525,
0.020748917,
-0.00439306,
-0.0020172556,
-0.022625433,
0.008357203,
-0.011654511,
0.008591767,
-0.034340262,
0.037369497,
-0.05487472,
-0.015843164,
-0.022276938,
0.00791488,
0.006631477,
-0.044634297,
0.035707437,
-0.051952712,
0.0074055404,
0.026767174,
0.0034548019,
-0.0139800515,
0.014355355,
-0.0059880996,
0.015910184,
0.03782522,
0.02537319,
-0.018430078,
0.062407594,
0.036109548,
0.03281224,
0.05833287,
0.024207069,
-0.07002089,
-0.019984907,
0.014475988,
-0.014114088,
-0.011419946,
-0.01829604,
-0.03999662,
0.04155145,
0.008873245,
-0.038522214,
-0.040961687,
-0.04131018,
0.01299488,
-0.012371608,
-0.038629442,
0.08524749,
0.015508072,
-0.012968073,
-0.010327545,
-0.028335406,
-0.025574246,
-0.010166701,
0.01578955,
0.025601054,
-0.0059512397,
-0.03549298,
-0.0077808434,
-0.035358943,
-0.014543006,
0.002635501,
-0.049245168,
-0.00511686,
0.0048688916,
0.009898627,
0.032758623,
0.014408969,
0.012880948,
-0.02094997,
0.05259609,
0.04112253,
-0.015910184,
0.0613353,
0.044151764,
0.0011066424,
-0.0015548284,
-0.017049497,
0.000014778095,
-0.026070183,
-0.029595353,
-0.015347228,
0.0033693532,
-0.019328125,
-0.022156304,
0.010072875,
0.026847597,
-0.007847862,
-0.025453612,
-0.008089129,
-0.06760822,
-0.044124957,
0.02747757,
-0.05487472,
-0.0017810157,
0.021030394,
-0.04297224,
0.04206079,
-0.054821104,
0.20630963,
0.051631026,
0.038066488,
0.04385688,
0.043401156,
0.010977624,
0.008712401,
-0.005224089,
-0.014127492,
-0.06557086,
0.011292611,
-0.028335406,
-0.012659788,
0.040264692,
-0.04675208,
0.006286332,
-0.06878775,
-0.005284406,
-0.029273665,
-0.0010647558,
-0.028362215,
0.03415261,
0.01158079,
0.060638305,
0.047824375,
0.012070025,
-0.0018698152,
-0.03334839,
-0.019113665,
-0.0776878,
0.045358095,
-0.0028432582,
0.009576938,
-0.02922005,
0.0112524,
0.03353604,
-0.0061455932,
-0.003158245,
-0.013068601,
0.026445486,
-0.033455618,
-0.03139145,
-0.01281393,
0.031525485,
0.0012741885,
-0.00015990187,
0.0077741416,
0.016741212,
-0.02769203,
-0.058815405,
-0.0015539906,
-0.037557147,
0.015132769,
-0.048923478,
-0.023670921,
-0.0056999205,
-0.045063216,
-0.011828759,
0.068412445,
0.0069699204,
-0.0025433507,
0.010133192,
-0.026995037,
0.029622162,
-0.022491395,
-0.007733931,
-0.0039708437,
0.046028282,
-0.019797254,
-0.02497108,
-0.020923164,
0.051711448,
-0.029541738,
0.02225013,
0.029997464,
0.0007112335,
0.031632714,
0.007713825,
-0.019395143,
-0.024850447,
0.0006052605,
0.00058054744,
0.016245276,
-0.018684749,
0.023791555,
0.037664376,
-0.016928865,
0.019609602,
0.039326433,
0.016459735,
0.010253825,
0.04634997,
-0.00027749833,
-0.0079081785,
-0.04265055
] | How do I make my model XLA compatible?
In many cases, your code is probably XLA-compatible already! However, there are a few things that work in normal TensorFlow that don’t work in XLA. We’ve distilled them into three core rules below: |
[
0.00027036862,
0.005755113,
0.009674154,
0.021031374,
-0.035274845,
-0.05210551,
0.029961362,
-0.009430735,
0.019723868,
0.051827315,
-0.011364175,
0.011635413,
0.034718458,
-0.046903305,
-0.0073025604,
0.017150585,
0.015606615,
-0.031352326,
-0.08996755,
0.065319665,
0.001790866,
-0.029488435,
-0.07116172,
0.0140696,
-0.010905157,
0.013554944,
-0.03508011,
-0.00965329,
0.05694606,
0.067545205,
-0.04039359,
0.00020538451,
0.019459585,
-0.017150585,
-0.026748236,
-0.039670292,
0.024884345,
0.014368657,
-0.042730413,
-0.05049199,
-0.011698007,
0.01849982,
0.009493329,
-0.003063598,
-0.062315185,
-0.0014022655,
-0.00810932,
-0.030629026,
-0.027262893,
-0.050686724,
0.007441657,
0.039559014,
0.007740714,
0.005897687,
-0.05586111,
0.02773582,
-0.018402454,
-0.026845604,
-0.06576478,
0.038334966,
-0.005212637,
0.0026306605,
-0.014410386,
-0.088799134,
0.06353923,
0.03271547,
-0.009945392,
0.021295657,
-0.017957345,
0.023284735,
-0.020321982,
0.02965535,
-0.024147134,
0.008707434,
-0.02391067,
-0.0061932667,
0.014841585,
0.032326,
-0.017957345,
0.0064958013,
-0.0019369173,
0.040671784,
0.01409742,
-0.028987689,
-0.09313894,
-0.0347741,
0.0039468603,
-0.019737778,
-0.002009943,
-0.01653856,
0.008290145,
0.018583277,
-0.0035573903,
0.015105868,
0.0043085106,
0.033689145,
0.0124908555,
0.011259853,
0.010390501,
-0.024383597,
0.0038286282,
0.019042296,
-0.004005976,
0.036971822,
-0.018736284,
0.0046110456,
0.013179383,
-0.027137706,
0.02036371,
-0.036777087,
0.012998558,
0.020280253,
-0.008547474,
0.034078617,
0.040671784,
-0.0045241104,
-0.034273352,
0.017456597,
-0.016079543,
-0.02503735,
0.0802308,
-0.0015239748,
0.006899181,
0.0032635492,
0.020294163,
-0.015356242,
0.024077585,
0.055276904,
-0.03850188,
0.0081858225,
0.002368116,
-0.005184818,
0.0048057805,
0.045540158,
-0.00828319,
0.034523726,
-0.011871877,
0.03819587,
-0.002851476,
-0.0091873165,
-0.003258333,
-0.019890783,
-0.0017352275,
0.06654371,
-0.0011901435,
0.001063218,
0.035608675,
-0.025969297,
-0.026261399,
0.04120035,
-0.04464994,
-0.022227604,
-0.013186338,
-0.02695688,
0.004402401,
-0.0023768095,
-0.021184381,
0.02157385,
0.03355005,
0.03964247,
-0.014897224,
-0.0002384199,
0.017178405,
0.03972593,
-0.0020012492,
0.0717181,
-0.040282317,
-0.01368013,
0.0070348,
-0.043759726,
0.0281392,
0.008756118,
-0.026261399,
0.0035852096,
0.07789398,
0.067211375,
0.031463604,
0.0015926537,
0.01194838,
0.029822266,
-0.014479934,
0.032993663,
-0.0014657283,
0.037862036,
-0.0045241104,
0.00942378,
0.024369689,
0.0014518186,
0.015342332,
0.021657309,
-0.006916568,
0.009778476,
-0.024508784,
0.05291227,
-0.016510742,
0.0021542553,
-0.04590181,
0.008978672,
-0.02239452,
-0.06276029,
-0.024494875,
0.048655916,
-0.016288187,
0.011482407,
-0.024327958,
-0.057307713,
-0.042730413,
0.030935038,
0.000023703438,
0.01349235,
0.046430375,
-0.0000067748365,
-0.03435681,
-0.004440652,
0.023326464,
0.00942378,
0.037889857,
-0.0001408351,
0.01970996,
0.044149194,
0.024578333,
0.023688115,
0.01541188,
-0.008693525,
0.0053586885,
-0.02776364,
0.0041102986,
0.045957446,
0.02232497,
-0.030406471,
-0.014125238,
0.032993663,
0.0022185876,
0.06292721,
-0.00053986785,
0.004235485,
0.02157385,
0.046124365,
-0.03580341,
0.031074135,
-0.024133224,
0.025273815,
-0.015105868,
0.017693061,
0.0013561898,
0.00008296882,
0.00061550154,
-0.0110372985,
-0.022881357,
0.006127196,
-0.02311782,
0.02851476,
0.008610067,
0.005497785,
-0.006203699,
-0.037750762,
0.017373139,
0.01698367,
-0.024759158,
-0.018416362,
0.002468961,
0.020739272,
-0.017275771,
-0.02314564,
0.07160682,
0.046013087,
-0.010682603,
0.0101888105,
0.008429241,
-0.026052754,
0.00061158946,
-0.018026892,
-0.04701458,
-0.025412912,
-0.04122817,
-0.020335892,
0.028320026,
-0.06008964,
-0.02001597,
-0.03777858,
-0.011670187,
0.014619031,
-0.010133172,
0.037444748,
0.036832724,
-0.0068609295,
0.00036469335,
0.038334966,
-0.03421771,
0.013137654,
-0.011656278,
-0.01773479,
-0.0042911237,
0.0021299135,
0.05666787,
-0.032326,
-0.0009910618,
0.020975735,
-0.036498893,
-0.0189032,
0.008408377,
0.0003992501,
0.014925043,
-0.017943434,
-0.018958839,
0.036971822,
0.02240843,
-0.029794447,
0.033800423,
0.0014796378,
-0.05018598,
-0.009409871,
0.0020377622,
0.03750039,
-0.04311988,
0.035970327,
0.030573387,
-0.020725362,
-0.03577559,
-0.026650868,
-0.043648448,
0.004339807,
0.013714904,
-0.029905723,
-0.017428778,
0.044065736,
0.004583226,
-0.059255064,
0.04860028,
-0.021323476,
-0.032659832,
0.01581526,
-0.008290145,
0.033049304,
0.017693061,
0.01891711,
-0.020113338,
0.044483025,
-0.054525785,
-0.020989645,
0.006881794,
0.0056160167,
0.03396734,
0.02971099,
-0.0006720094,
-0.00032339912,
0.018485911,
-0.045345422,
-0.0071217353,
-0.0532461,
0.013610582,
-0.024327958,
-0.0066418527,
0.02658132,
0.0065792594,
0.04281387,
-0.028820772,
0.011725826,
0.03577559,
0.010675648,
0.028167019,
0.029460616,
0.021504302,
0.023243006,
0.0003360047,
-0.00056725246,
-0.025232086,
0.032520737,
0.05669569,
-0.0242445,
0.05207769,
-0.022867447,
-0.06760085,
0.015620525,
-0.0001383357,
-0.014236515,
0.055249088,
0.028403483,
0.04278605,
-0.032659832,
-0.070772246,
0.00530305,
-0.0025124287,
0.029877905,
0.01811035,
0.02391067,
-0.014591211,
-0.018193807,
-0.042980786,
0.017567875,
-0.017832158,
0.02009943,
0.035525218,
-0.02386894,
-0.027666273,
-0.0702715,
0.042646952,
0.0204889,
0.014869404,
-0.0057933647,
0.022380609,
-0.04771006,
0.05399722,
0.015523157,
0.04896193,
-0.060757305,
-0.023646386,
0.053524293,
0.020155067,
0.009145588,
-0.04592963,
-0.039809387,
-0.045428883,
-0.023980217,
-0.020892277,
0.015523157,
-0.02854258,
0.00849879,
-0.022088507,
0.037556026,
-0.044037916,
-0.054637063,
-0.03355005,
-0.0050352896,
0.030239556,
-0.023326464,
-0.017359229,
-0.0110372985,
-0.014299109,
0.052689712,
0.0040337956,
-0.026776055,
-0.0048231673,
-0.034635,
-0.08735254,
0.03747257,
0.05741899,
0.001968214,
-0.0049344446,
-0.041756738,
-0.0012423047,
-0.0019995107,
0.007552934,
-0.025538098,
-0.03583123,
-0.018291175,
0.019042296,
0.014424296,
0.002079491,
-0.017261863,
0.068880536,
-0.097478755,
0.015328422,
-0.024133224,
0.021643398,
-0.014925043,
-0.017929524,
-0.008359693,
0.029043326,
0.027708001,
-0.020280253,
-0.012977693,
0.005160476,
-0.030295193,
-0.0137427235,
-0.0040894337,
-0.016065633,
-0.031547062,
0.045178507,
-0.022491887,
-0.040671784,
0.041422907,
0.015314513,
-0.008213642,
0.017484417,
-0.0061480603,
-0.0054769204,
-0.0112389885,
-0.013631446,
-0.030712483,
-0.024355778,
0.028653856,
0.03502447,
-0.023757664,
-0.0227979,
-0.029822266,
-0.013436711,
-0.00026015373,
-0.010877338,
0.04503941,
-0.02774973,
-0.03541394,
0.014702489,
-0.0385297,
-0.028792953,
-0.01505023,
-0.010745197,
-0.0031679203,
0.040810883,
0.04019886,
-0.0041555045,
0.007399928,
-0.016635928,
0.06042347,
-0.06810159,
-0.03385606,
-0.049240123,
0.009284684,
0.011218124,
-0.014055691,
-0.052216787,
-0.0017430517,
-0.023243006,
0.009326413,
0.029377159,
-0.010675648,
0.052634075,
-0.009409871,
-0.0339117,
0.049963422,
0.0055290814,
-0.012365669,
-0.010543507,
-0.02200505,
0.01969605,
0.0149945915,
-0.0062349956,
-0.048433363,
-0.024759158,
-0.08295709,
0.049685232,
-0.015996085,
-0.00045032456,
-0.034635,
-0.046096545,
-0.0017700016,
0.04200711,
0.032465097,
-0.03783422,
-0.0087352535,
-0.037528206,
0.004850987,
-0.07127299,
0.0005915943,
-0.020071609,
-0.004784916,
0.008130184,
0.031101953,
0.008554428,
0.010710422,
-0.007636392,
0.06804595,
0.02115656,
0.037667304,
-0.014772037,
-0.048489,
0.021657309,
0.04464994,
-0.030795941,
-0.00055682025,
-0.07310906,
0.051855136,
-0.01964041,
0.0933615,
-0.023229098,
0.010891248,
-0.040282317,
0.014966772,
0.031713977,
-0.036165062,
0.012031838,
-0.0062732473,
-0.0011710178,
0.027541086,
0.014090464,
0.03163052,
0.040254496,
-0.006947865,
-0.049601775,
0.027054248,
-0.011649323,
-0.001228395,
-0.010946886,
0.014368657,
0.036888365,
-0.014785946,
0.043704085,
0.08056463,
-0.0065131886,
-0.030795941,
-0.02274226,
-0.015203236,
0.040616147,
0.0041868016,
0.03480192,
-0.024327958,
-0.024870435,
-0.00020603654,
-0.042980786,
-0.035274845,
-0.009562877,
0.02694297,
0.019487405,
-0.02239452,
0.032548554,
-0.01349235,
-0.0347741,
-0.023020452,
0.029516254,
-0.018944928,
-0.002710641,
0.012838597,
0.024981711,
-0.016260369,
0.021699037,
-0.087742,
-0.020558447,
0.036721446,
0.04579053,
0.0050387667,
-0.049128845,
0.06871362,
-0.023423832,
-0.042285305,
-0.07082788,
-0.0017656548,
0.045345422,
-0.017832158,
0.00375908,
-0.007664211,
0.0004607568,
-0.02009943,
0.021782495,
0.04515069,
-0.039920665,
-0.017887795,
0.021267839,
-0.016719386,
-0.014368657,
-0.04857246,
0.03546958,
-0.028069653,
-0.014396477,
0.0000014874078,
0.010007985,
-0.025691103,
-0.0010058408,
0.08418114,
-0.01964041,
0.0008589202,
0.011162485,
-0.012845552,
0.04231312,
-0.010912112,
0.0053725983,
-0.008526608,
-0.051604763,
-0.05099274,
-0.05438669,
0.020572357,
-0.010620009,
0.031797435,
0.021657309,
0.03747257,
0.039336458,
-0.0014944169,
-0.009743703,
-0.056083664,
0.006568827,
-0.021351296,
-0.011065118,
0.041089073,
-0.015773531,
-0.0058698677,
0.0016309052,
0.010529597,
-0.04050487,
-0.0021351296,
-0.0063845245,
-0.0006285418,
-0.042480037,
-0.042146206,
-0.005855958,
-0.020878369,
-0.035219207,
-0.016663747,
-0.035386123,
-0.017303592,
0.031101953,
-0.023771573,
-0.023340374,
0.013874865,
0.043036424,
-0.03777858,
0.03861316,
-0.002387242,
-0.013819226,
-0.048322085,
0.0077198497,
-0.010960796,
0.03238164,
0.03196435,
0.00849879,
0.021768585,
0.0031609654,
0.011913606,
-0.027833188,
0.017985163,
0.043620627,
-0.02549637,
-0.01079388,
-0.044928133,
0.001546578,
-0.039058268,
-0.0011345049,
0.03546958,
-0.038807895,
0.0054699657,
0.034607183,
-0.009945392,
0.021879863,
0.0401154,
0.026776055,
0.00080328167,
0.028765135,
0.021879863,
0.024828706,
0.016844572,
0.019403948,
-0.00082718884,
0.011301582,
0.026442224,
0.0135410335,
-0.03043429,
0.030545568,
0.0061793574,
0.019612592,
-0.022519706,
-0.0072677867,
0.005702952,
0.01925094,
0.044844676,
-0.0020725362,
-0.03307712,
-0.006986116,
-0.029182423,
0.0073095155,
-0.06593169,
-0.02965535,
0.011871877,
-0.07466694,
-0.01347844,
-0.01099557,
-0.00092064426,
0.031797435,
-0.02430014,
-0.012810778,
-0.042535678,
0.016274277,
0.060757305,
-0.00067374815,
-0.04089434,
-0.017484417,
0.03777858,
-0.009375097,
-0.035247024,
-0.052634075,
0.0021246974,
0.03004482,
0.011885786,
-0.014772037,
-0.01926485,
-0.021824224,
0.0031157592,
0.0152449645,
-0.049073208,
0.00883262,
-0.037556026,
0.013207203,
-0.034134254,
0.0068852715,
0.017122766,
0.05291227,
-0.00539694,
0.020641904,
-0.0030983721,
0.017136676,
0.020127248,
0.0029245017,
0.055249088,
-0.0054769204,
0.0884653,
0.007010458,
0.009882798,
0.029571893,
0.035553038,
0.036637988,
0.07472258,
0.023590747,
0.07049405,
0.021087013,
-0.021462573,
-0.009806296,
-0.004311988,
0.0070348,
-0.035525218,
-0.018416362,
0.016649839,
0.017693061,
-0.008630931,
0.0062558604,
0.016733296,
-0.040143218,
0.0037312608,
-0.047904797,
-0.036888365,
0.019181393,
-0.023479471,
0.021782495,
-0.009715883,
-0.009048221,
0.03941992,
0.046513833,
-0.019918604,
0.015091958,
0.039141726,
0.04434393,
0.009368142,
0.012080521,
0.0065827365,
0.018485911,
-0.036526714,
0.0027541085,
-0.0003968594,
0.022436248,
-0.018152079,
-0.008227551,
-0.006923523,
0.02001597,
-0.0059533254,
-0.03399516,
0.014869404,
-0.0049622636,
0.0019247463,
-0.04512287,
0.027888827,
-0.033271857,
-0.018736284,
0.02932152,
0.0029662305,
-0.018708464,
0.0075320695,
0.028069653,
-0.013986142,
0.05708516,
0.046764206,
-0.013568853,
0.06298285,
0.01582917,
0.008032816,
0.022269333,
-0.0038738346,
-0.044538666,
-0.04286951,
0.04434393,
-0.016093453,
-0.015884807,
0.016649839,
-0.024494875,
0.022422338,
0.010049715,
-0.004990083,
-0.039058268,
-0.01272732,
-0.018666735,
-0.037250012,
-0.014980681,
0.07655866,
0.033716965,
0.013130699,
-0.039169542,
-0.03705528,
-0.033438772,
0.006787904,
-0.01619082,
0.020711454,
-0.020725362,
-0.055694196,
0.014799856,
-0.013554944,
-0.02658132,
0.01542579,
-0.01271341,
-0.052216787,
0.0331884,
0.015954357,
0.037583847,
0.028403483,
0.0076503013,
-0.0019438721,
0.01886147,
0.08223379,
-0.02314564,
0.045178507,
0.023034362,
0.005685565,
0.022297151,
-0.021184381,
-0.02740199,
-0.008220597,
-0.015091958,
0.03313276,
-0.008978672,
-0.039058268,
-0.028653856,
-0.025746742,
0.04818299,
-0.0447334,
-0.0018882335,
-0.018305086,
-0.05040853,
-0.04854464,
-0.009715883,
-0.031741798,
-0.01891711,
0.035998147,
-0.010140127,
0.027833188,
-0.044149194,
0.22789553,
0.044761218,
0.030795941,
0.05282881,
0.006228041,
0.030907217,
-0.011600639,
-0.034913193,
-0.0019021431,
-0.049128845,
0.0015204974,
-0.025691103,
-0.013631446,
0.032465097,
-0.028459122,
0.016900212,
-0.051743858,
-0.0056959973,
-0.006008964,
-0.030517748,
-0.066877544,
0.025997115,
0.011079027,
-0.00027189,
0.005045722,
-0.008902169,
-0.0052578435,
-0.052856628,
0.010766061,
-0.051771678,
0.0316027,
-0.009284684,
0.027179435,
-0.049824327,
0.003734738,
0.040616147,
-0.011259853,
-0.014966772,
-0.015091958,
-0.005762068,
-0.024786977,
-0.010501778,
-0.011628458,
-0.0017873886,
-0.0056925197,
0.06821287,
-0.015537067,
0.052161146,
0.0455958,
-0.07066096,
0.025663285,
-0.04673639,
-0.000042245094,
0.005803797,
-0.044427387,
-0.01541188,
-0.038251508,
-0.011635413,
0.05051981,
0.01173278,
0.010626964,
-0.007205193,
-0.043398075,
0.0144938445,
-0.017484417,
0.007942404,
-0.019070115,
0.029377159,
-0.026261399,
-0.00664533,
-0.0039225183,
0.024119314,
0.034189895,
0.018388543,
0.03699964,
0.029377159,
0.036498893,
0.015133687,
0.0074972957,
-0.01194838,
0.0041276854,
-0.002286397,
0.0039468603,
-0.030267375,
0.016385555,
0.049240123,
-0.028403483,
0.0019351785,
-0.023173459,
0.04962959,
0.0251069,
0.037110917,
0.0065027564,
-0.007062619,
-0.05018598
] | Tip born of painful experience: Although using jit_compile=True is a good way to get a speed boost and test if your CPU/GPU code is XLA-compatible, it can actually cause a lot of problems if you leave it in when actually training on TPU. XLA compilation will happen implicitly on TPU, so remember to remove that line before actually running your code on a TPU! |
[
0.028819429,
0.0026640398,
0.035145644,
0.032896325,
-0.004793866,
-0.020314183,
0.06781703,
0.0059255557,
-0.006308643,
0.028453914,
0.0066600996,
0.005939614,
-0.017122958,
-0.044283513,
-0.06618628,
0.0083014015,
-0.0045127007,
-0.06686108,
-0.034527082,
0.01791022,
-0.0032790888,
-0.003263273,
-0.07164088,
-0.03171543,
-0.015646841,
0.040600248,
0.025487622,
-0.0068463716,
0.07928857,
0.0466453,
-0.041275047,
0.03525811,
0.005802546,
-0.02453166,
-0.016237289,
-0.014578413,
0.0018381173,
-0.006445711,
-0.027624477,
-0.03463955,
0.04048778,
-0.003131477,
0.047151398,
-0.040740833,
-0.03480825,
-0.007053731,
-0.0047411476,
0.038125996,
0.022451038,
-0.018289793,
-0.021607542,
0.0067022745,
-0.011260665,
0.022999309,
-0.039728638,
0.0008149396,
0.00838575,
0.02332265,
-0.0071837697,
-0.02589531,
0.0089832265,
0.03742308,
-0.009264392,
-0.03615784,
0.030506419,
0.021987116,
-0.029915974,
-0.0073243524,
-0.0133131705,
-0.024587894,
-0.057470158,
0.022226106,
-0.012286917,
-0.049344484,
-0.01824762,
-0.018050803,
-0.003467118,
-0.00047973805,
-0.02242292,
0.05150946,
0.011443422,
0.046336018,
0.012694607,
0.010297674,
-0.0093135955,
-0.06641121,
0.035454925,
-0.0023020396,
0.055248953,
-0.0011747432,
-0.018767774,
0.013144471,
-0.025318922,
0.020047076,
0.062025033,
0.05181874,
-0.0133764325,
0.058144953,
0.002085894,
-0.017966453,
0.055642586,
0.07653315,
-0.008730178,
0.037085686,
-0.029887857,
0.03261516,
0.009173013,
0.010747538,
-0.0040382347,
0.030534536,
-0.01371383,
-0.016434103,
0.049232017,
0.008603654,
-0.012933597,
0.029887857,
0.0025234574,
0.028060284,
-0.047713727,
-0.015646841,
-0.000984078,
0.021888707,
0.01670121,
-0.03090005,
0.01661686,
-0.024784708,
0.0077812457,
0.040740833,
-0.014170724,
0.0050152834,
-0.000030395491,
0.003280846,
0.015843656,
0.014423773,
0.026134301,
0.030562652,
-0.021424785,
-0.010185208,
0.014388627,
0.0024057194,
0.028524205,
0.008737207,
0.004333458,
0.06545525,
-0.0024373506,
0.0006598595,
0.04841664,
-0.016968317,
0.00013575006,
0.012568083,
-0.06562395,
0.03492071,
0.04746068,
-0.008765324,
0.001074578,
-0.0015402578,
-0.007999149,
-0.035201877,
0.003175409,
0.004593536,
0.0076968963,
0.0032333992,
-0.003704351,
0.03759178,
-0.0014067044,
0.041106347,
-0.017263541,
0.0045232447,
0.027821293,
-0.037788596,
0.0064703133,
0.003437244,
0.012090102,
-0.004706002,
0.010016508,
0.070797384,
0.021270145,
-0.014648705,
0.022380747,
0.033936635,
0.0017177433,
-0.003936312,
0.000029818882,
-0.009742373,
-0.0077039255,
-0.024840942,
-0.01622323,
-0.020904629,
-0.008596624,
-0.0018574473,
0.028692905,
0.012469674,
-0.028214924,
-0.008224081,
-0.001373316,
-0.026429525,
-0.008083498,
0.01492987,
-0.0040206616,
-0.035932906,
-0.03137803,
0.0437493,
-0.019779969,
0.011654296,
-0.009658023,
-0.030590769,
0.02347729,
0.028777255,
-0.03680452,
-0.007563343,
0.03697322,
-0.030225255,
-0.015998298,
-0.009517441,
-0.01379818,
-0.013039034,
0.010515577,
0.00018791937,
-0.030618886,
0.011956548,
0.004147186,
0.04107823,
0.01896459,
-0.022408864,
-0.037254382,
-0.015660899,
0.0069553233,
-0.008779382,
0.0105718095,
0.01661686,
0.023055542,
0.017629055,
0.031124983,
0.017896162,
0.004192875,
0.042905804,
0.06646744,
0.004565419,
0.0035936423,
0.029915974,
-0.001799457,
-0.013910647,
-0.005900954,
0.012153364,
0.0021614572,
0.00042328535,
0.007134566,
0.0044424096,
-0.030478302,
0.009777518,
-0.05522084,
0.05429299,
0.019920552,
0.015281326,
-0.034752015,
-0.028046224,
0.00411907,
0.040319085,
-0.015759308,
-0.01685585,
-0.0019453114,
0.05471474,
0.008898878,
-0.01824762,
0.023294533,
0.027371429,
0.01831791,
-0.010789713,
-0.014747112,
-0.020145483,
-0.03953182,
-0.019470688,
-0.05060973,
-0.0068147406,
0.00021834232,
-0.031265564,
-0.021987116,
-0.049428836,
0.0027554187,
0.013411578,
-0.019231698,
-0.009419032,
-0.019751852,
-0.0047727786,
0.034189682,
0.02638735,
-0.06337462,
0.053224564,
0.013685714,
0.06011311,
-0.003616487,
-0.010824858,
-0.02718867,
-0.01476117,
0.030112788,
-0.0064035365,
0.021326378,
-0.02517834,
-0.0064914008,
-0.004976623,
-0.015407851,
-0.014367539,
-0.016181055,
-0.026288942,
-0.03607349,
0.027821293,
0.033908516,
-0.0279197,
0.02960669,
0.049007088,
-0.007886683,
-0.021565368,
0.03140615,
0.020792164,
-0.04220289,
0.040431548,
0.024616009,
0.0200049,
-0.0013864957,
-0.061012838,
-0.038547743,
0.029662924,
0.0033651956,
-0.015506258,
0.01557655,
0.066692375,
-0.029634807,
-0.05091901,
0.019175464,
-0.057413924,
-0.030590769,
-0.03430215,
-0.022254223,
0.05198744,
0.022451038,
0.0010042868,
-0.038547743,
-0.030534536,
-0.01807892,
0.04760126,
0.02228234,
-0.019484745,
0.014873637,
0.027989991,
-0.0145924715,
0.002259865,
0.014550297,
-0.07883871,
-0.0052437303,
-0.0043264288,
0.041499976,
0.012378296,
0.04203419,
0.02349135,
-0.005236701,
0.026879389,
-0.08401215,
-0.0034354867,
0.015857715,
0.0005219128,
0.03953182,
0.037338734,
0.008835615,
-0.015478142,
-0.020539114,
-0.04670153,
0.011605092,
0.012821131,
0.057807557,
-0.010768626,
0.017249482,
0.031181216,
-0.043355666,
0.041809257,
-0.028482031,
-0.04456468,
0.080357,
0.032558925,
0.04082518,
-0.031912245,
-0.04945695,
-0.0028924865,
-0.026527932,
0.017713405,
0.032558925,
0.038547743,
-0.00021768334,
-0.042652756,
0.019808086,
-0.0073946435,
0.0154922,
-0.02187465,
-0.0280884,
-0.018936474,
-0.047657494,
0.002029661,
-0.02574067,
0.049007088,
0.05319645,
0.016110763,
0.03792918,
-0.014332394,
0.05364631,
0.025965603,
-0.01791022,
0.002115768,
-0.020721871,
0.0560081,
-0.016588744,
0.009468237,
-0.04349625,
-0.00790777,
-0.045127008,
0.04746068,
-0.0101992665,
0.024166144,
-0.067029774,
0.024391077,
0.016405987,
0.031293683,
-0.040740833,
-0.015464083,
-0.042821452,
-0.001799457,
0.070066355,
-0.08614901,
-0.006649556,
-0.03542681,
0.014318336,
-0.0011202674,
-0.00070642744,
-0.025881253,
-0.028636672,
-0.033458654,
-0.02405368,
0.04251217,
0.042399704,
-0.023842806,
0.03801353,
-0.050216097,
0.0014480005,
0.004456468,
-0.060506742,
0.0051699243,
-0.008905906,
0.024489485,
-0.003062943,
0.03759178,
0.021227969,
-0.0403472,
0.022141756,
0.0049449923,
0.0049168756,
-0.028200865,
-0.007788275,
-0.016012356,
-0.00066820654,
-0.02250727,
0.06269983,
-0.0055459826,
-0.013692743,
0.03573609,
0.019597212,
-0.019062998,
-0.03776048,
0.018655308,
0.019920552,
-0.0014330636,
0.039812986,
0.0068780025,
0.014943928,
0.0042912834,
0.06528655,
0.0005065366,
-0.020974921,
-0.05527707,
0.011162257,
-0.01920358,
-0.056935944,
0.040290967,
0.0034073703,
0.020721871,
0.0052015553,
-0.06556772,
-0.0200049,
-0.056120567,
-0.021832474,
-0.0017678259,
-0.008188935,
0.032137178,
-0.0020437192,
-0.024812825,
0.00520507,
-0.060506742,
0.025431389,
0.014662763,
-0.007015071,
-0.021101445,
0.04206231,
0.025192399,
0.055811282,
0.011886257,
-0.01460653,
0.05648608,
-0.01363651,
-0.0013601364,
-0.02751201,
0.006786624,
0.011190373,
-0.031462383,
-0.012322063,
0.011534801,
-0.020482881,
-0.01388253,
-0.0035567393,
0.026991855,
0.016602803,
-0.024250494,
-0.049681883,
0.039925452,
-0.0010921509,
-0.061294004,
-0.0022827096,
0.019470688,
0.013193675,
0.0133764325,
-0.0000808899,
0.0019540978,
-0.047095165,
-0.008350605,
0.026176477,
-0.031659197,
-0.029325526,
-0.061294004,
-0.054180525,
0.029803507,
0.03444273,
0.002913574,
-0.07591459,
-0.024854999,
-0.047404446,
0.038688324,
-0.03792918,
-0.04625167,
0.027568243,
-0.021185795,
-0.037985414,
0.058201186,
0.0037887006,
-0.014957987,
0.05198744,
-0.009404974,
0.026162418,
0.055951867,
-0.01452218,
0.0089621395,
-0.012420471,
0.009257363,
-0.0020894087,
-0.014451889,
-0.013039034,
0.017600939,
-0.05027233,
0.023308592,
-0.029156826,
-0.013285054,
-0.047657494,
-0.011541829,
0.032474577,
-0.044817727,
-0.031490497,
-0.04349625,
0.038266577,
0.013840355,
0.06106907,
0.024489485,
-0.0031103895,
-0.039419357,
-0.00657575,
0.020764047,
-0.017769638,
0.005746313,
-0.00063306093,
0.009390917,
0.07068492,
-0.02420832,
0.062418666,
0.058482353,
0.0021087388,
0.012251772,
-0.054770973,
-0.0111692855,
-0.013692743,
-0.018008629,
0.014360511,
-0.019808086,
-0.07462123,
-0.002296768,
-0.05623303,
-0.05938208,
-0.026696632,
0.0034917197,
0.054686625,
-0.047404446,
0.045886155,
-0.018978648,
-0.074452534,
-0.04976623,
0.041190695,
-0.01847255,
0.03140615,
0.012821131,
-0.019287929,
0.0027202729,
0.02218393,
-0.075408496,
-0.0050223125,
-0.00032773314,
0.05893222,
-0.015928006,
-0.0619688,
0.019737793,
0.012216626,
-0.044508446,
-0.07720795,
-0.0092503335,
-0.033036906,
-0.0037570694,
-0.012483733,
0.027624477,
0.0075492845,
-0.06584888,
-0.01258917,
0.02599372,
0.016096706,
0.00060626236,
0.0024443795,
0.015534375,
0.0023301563,
0.062980995,
0.043215085,
-0.028931895,
0.031040633,
-0.019779969,
-0.020370416,
-0.028678846,
-0.0051066624,
0.04703893,
0.035201877,
0.016912084,
0.014775229,
-0.0023705738,
0.04518324,
-0.013524044,
0.00093223824,
-0.02574067,
-0.001929496,
-0.04487396,
-0.039728638,
0.0749024,
-0.01202684,
-0.0036270306,
-0.009805635,
-0.03736685,
-0.02170595,
0.005676022,
-0.006649556,
-0.056514196,
0.066692375,
0.0052964487,
-0.039419357,
-0.03295256,
-0.041190695,
-0.027019972,
0.01630758,
-0.027568243,
-0.03801353,
-0.028721021,
0.024756592,
-0.042287238,
0.019147348,
0.0024672241,
0.018500667,
-0.029016245,
-0.0014708452,
0.009854839,
-0.037338734,
-0.005971245,
-0.02073593,
0.010719421,
-0.015942065,
-0.040122267,
0.02904436,
0.0055846428,
0.00117035,
-0.033374306,
-0.010642101,
-0.006712818,
-0.010508548,
-0.018135153,
0.033936635,
0.055136487,
-0.012554024,
0.0004937963,
0.023913097,
-0.018992707,
-0.03663582,
0.027019972,
0.03629842,
-0.001867991,
0.0068041966,
0.011070878,
0.021438843,
-0.048472874,
-0.0070326435,
-0.0015490443,
-0.037985414,
-0.001606156,
0.015998298,
0.012554024,
0.046785884,
0.015506258,
0.031490497,
-0.01663092,
-0.006421109,
0.037338734,
0.012293947,
0.024264554,
0.0056549343,
-0.0050644875,
-0.024264554,
0.028988129,
0.011752703,
-0.009714256,
0.013545131,
0.012069015,
-0.028467972,
-0.020370416,
0.040319085,
-0.0018064862,
0.041668676,
-0.03188413,
-0.06849183,
0.016659036,
0.00084261684,
-0.023266416,
0.008287343,
-0.059663247,
-0.057582624,
0.007303265,
-0.009791576,
-0.011576976,
-0.036354654,
-0.040431548,
0.0619688,
0.013685714,
-0.0012810588,
0.011408276,
0.027989991,
0.0034794188,
0.0061294003,
-0.04639225,
0.03649524,
0.010332819,
-0.028749138,
-0.008287343,
-0.006969381,
0.034752015,
-0.0133764325,
0.0026411952,
0.00649843,
0.029578574,
0.011977635,
-0.003449545,
0.02638735,
-0.011450451,
0.015534375,
-0.056373615,
0.0044353805,
-0.012322063,
0.01857096,
-0.010852975,
0.029578574,
-0.0056865653,
-0.008765324,
0.024025563,
0.03309314,
0.03236211,
-0.018992707,
0.0062594395,
0.02356164,
0.06174387,
-0.0130671505,
-0.018613134,
-0.011520742,
0.027385486,
-0.0010332819,
0.016687153,
-0.034189682,
0.045155123,
0.028496088,
0.016265403,
-0.029325526,
0.026710689,
0.0027343312,
-0.039250657,
-0.033543,
0.010628043,
-0.010536664,
0.02751201,
-0.012525908,
0.01121146,
0.010318762,
-0.012518879,
-0.0080553815,
-0.05114394,
0.02952234,
-0.0080553815,
-0.05898845,
-0.021565368,
0.022872785,
0.025361096,
0.020159543,
0.03157485,
0.02008925,
0.015590608,
0.0052085845,
0.039728638,
0.028875662,
-0.01412152,
0.011014645,
-0.023744397,
0.02444731,
-0.04405858,
-0.0009216945,
-0.034555197,
0.004147186,
-0.00500474,
0.028439855,
-0.01639193,
0.009749402,
0.03261516,
-0.043608718,
-0.036860753,
-0.05971948,
0.0047270893,
-0.03851963,
-0.02444731,
0.008210023,
-0.009264392,
-0.03556739,
0.049091436,
-0.008941052,
0.001787156,
0.036720168,
0.014817404,
0.027807234,
0.05938208,
0.0056127594,
-0.021340435,
0.041050114,
0.04113446,
0.015225093,
-0.025529796,
-0.052099902,
0.031349916,
-0.010466373,
-0.013699772,
-0.031181216,
0.0027097291,
0.017614998,
-0.018008629,
-0.020806221,
-0.009011343,
0.05384313,
-0.04833229,
-0.01226583,
0.054967787,
-0.010044625,
-0.010065713,
-0.0054756915,
-0.02751201,
-0.008905906,
-0.03382417,
-0.011752703,
0.0108178295,
0.006424624,
-0.06337462,
-0.025290806,
-0.029719157,
-0.00911678,
-0.024869058,
-0.010958412,
-0.030393954,
0.052577883,
0.0037324675,
0.049203902,
0.041668676,
-0.054686625,
-0.0007648571,
0.05575505,
0.015520317,
0.01647628,
0.066636145,
0.055558234,
0.033205606,
0.029156826,
-0.008856703,
0.020707814,
0.0025129137,
0.018542843,
0.010993558,
0.01767123,
-0.030731352,
-0.04124693,
-0.05212802,
0.040965762,
0.020398533,
-0.022816552,
-0.021832474,
0.0064703133,
-0.056457963,
0.012483733,
-0.006006391,
0.006863944,
0.014233986,
0.018978648,
0.014789287,
-0.05921338,
0.2316801,
0.05825742,
0.04164056,
-0.009770489,
0.04116258,
0.029353643,
-0.037085686,
-0.038435277,
-0.014817404,
0.0020806221,
0.027005913,
-0.0171089,
0.025937486,
0.015590608,
0.015843656,
0.006969381,
-0.052184254,
-0.003525108,
0.001752889,
-0.03986922,
-0.03863209,
0.04284957,
0.037648015,
0.022549445,
0.029831624,
0.0038625062,
0.016237289,
-0.018922415,
-0.058819752,
-0.062362432,
0.076083295,
-0.021916823,
0.023449175,
-0.033796053,
0.0023125834,
0.057301458,
-0.04284957,
-0.06084414,
-0.011710529,
-0.002061292,
0.0037816714,
-0.042427823,
-0.007577401,
-0.042259123,
-0.016363813,
-0.0046919435,
-0.01653251,
0.026766922,
0.019470688,
-0.07287801,
0.00033542124,
-0.035314344,
0.030140905,
-0.028018108,
-0.084574476,
-0.027863467,
-0.018092979,
-0.04234347,
0.003337079,
0.011162257,
0.009538528,
-0.0061715753,
0.0025357583,
0.015000161,
-0.037254382,
0.056345496,
-0.01460653,
0.031462383,
-0.039644286,
0.002758933,
0.008688004,
-0.0098899845,
0.022690028,
0.009679111,
0.02977539,
0.03511753,
-0.0019470687,
0.019259814,
0.020932745,
-0.031490497,
0.013889559,
-0.0012696364,
-0.007310294,
-0.029803507,
-0.022943078,
0.0558394,
-0.03042207,
0.0063543324,
0.022226106,
0.042399704,
0.023674106,
0.03655147,
-0.01791022,
0.0028590981,
-0.045998618
] | 🤗Specific HuggingFace Tip🤗: Our tokenizers and data collators have methods that can help you here. You can use padding="max_length" or padding="longest" when calling tokenizers to get them to output padded data. Our tokenizers and data collators also have a pad_to_multiple_of argument that you can use to reduce the number of unique input shapes you see! |
[
0.031423155,
0.006503276,
-0.004730292,
-0.008108071,
-0.0051787943,
-0.037786275,
0.035123296,
-0.021920525,
-0.036945336,
0.07635743,
0.009222318,
0.013104661,
0.025522554,
-0.06363119,
-0.02550854,
0.027694985,
0.00017322505,
-0.011948368,
-0.06464032,
0.03728171,
0.016230159,
-0.019846205,
-0.08073032,
-0.017603695,
-0.0056798547,
-0.0005615032,
0.029545056,
-0.028185533,
0.08998067,
0.03089056,
-0.04756922,
0.027400656,
0.027022233,
-0.0071059503,
-0.020659113,
0.007841773,
0.011142466,
-0.01502481,
-0.052054238,
-0.05334368,
0.040309098,
-0.024387285,
0.018248416,
-0.059034046,
-0.05191408,
0.029545056,
0.0018851091,
-0.026615778,
-0.028507894,
-0.06279025,
-0.027638923,
0.017954087,
-0.0063105603,
0.013356944,
-0.058249168,
0.008521534,
0.0020760726,
0.018066213,
-0.060043175,
0.006184419,
0.041262165,
0.02761089,
-0.030329933,
-0.066210076,
0.041710667,
0.0031097292,
-0.0126491515,
0.013083638,
0.022957684,
0.015529375,
-0.004264271,
0.000071666116,
-0.02852191,
-0.026629794,
0.026041135,
0.0039384062,
0.028788209,
-0.015459296,
-0.033721726,
0.0298534,
0.030750403,
0.034955107,
0.032011814,
0.017211257,
0.02777908,
-0.0069973287,
0.06329481,
0.009579718,
-0.017673774,
-0.03391795,
0.000395724,
0.020308722,
-0.0031307526,
0.010084283,
0.02491988,
0.050820857,
0.018444637,
0.044149395,
-0.00072531146,
-0.05785673,
0.010112314,
0.047513157,
-0.006272017,
0.035011172,
-0.018290464,
0.03461873,
0.011738133,
0.0010608118,
0.012957497,
-0.039328,
0.0046461984,
-0.0049720625,
-0.01749157,
0.02615326,
0.010371604,
0.009019091,
-0.01440812,
0.04566309,
-0.043336485,
-0.05314746,
0.022719419,
0.016930941,
0.018248416,
-0.0025175666,
0.025550585,
-0.0072180755,
0.0426357,
0.041738696,
-0.014870637,
0.011513881,
0.003738683,
0.019425733,
0.029460961,
0.057071853,
-0.0055957604,
-0.029601118,
-0.055193752,
0.005876074,
-0.024709646,
-0.018024165,
-0.0122216735,
-0.03268457,
0.035768017,
0.07041478,
-0.017407475,
-0.02686806,
0.05415659,
-0.071367845,
-0.0421872,
0.027470734,
0.0019096365,
0.043112233,
-0.011569944,
-0.0030887057,
-0.04053335,
-0.018935185,
-0.0039769495,
0.025172163,
0.031983785,
0.033693697,
0.0027873686,
0.0054170606,
-0.022397058,
0.063911505,
-0.0045445845,
0.06110837,
-0.023238,
-0.0020760726,
0.027680969,
-0.02923671,
-0.021163678,
-0.00045550964,
-0.014036704,
0.023532327,
0.044373646,
0.057912793,
0.059426486,
-0.017421491,
0.009747906,
0.009306412,
-0.00658737,
-0.005855051,
0.0023879216,
0.052586835,
-0.016538503,
-0.048522286,
0.0011904569,
-0.0073231934,
0.0044184434,
-0.018837076,
-0.010133337,
0.02070116,
-0.03868328,
0.004583128,
-0.043616798,
-0.0045971433,
-0.05208227,
0.03089056,
0.009152239,
-0.023644453,
-0.0044429707,
0.062902376,
-0.036945336,
0.04367286,
-0.010960262,
0.01502481,
-0.018752981,
0.006250994,
-0.011696085,
0.03929997,
0.010301526,
-0.007077919,
-0.019075342,
-0.027919237,
0.023812642,
-0.0009250349,
0.007456342,
0.019425733,
-0.036356676,
0.004709269,
-0.008710746,
-0.00032279865,
0.037505962,
0.004481514,
0.034730855,
-0.006061782,
0.035936207,
0.02553657,
0.026769951,
-0.017477553,
0.0028381753,
0.019846205,
0.03125497,
0.047849536,
0.02881624,
-0.0027050264,
0.06402363,
0.019495811,
0.015977876,
0.027134359,
0.00808004,
0.020238644,
0.008045001,
0.029292773,
0.008360353,
-0.008717753,
-0.027386641,
-0.005389029,
-0.029517023,
-0.006107333,
-0.028662067,
0.054436903,
0.013994657,
0.020617066,
-0.057380196,
-0.03254441,
-0.015753625,
0.02138793,
-0.022733435,
-0.005620288,
0.012866395,
0.011184514,
-0.008465471,
-0.005266392,
0.04939126,
0.057324134,
-0.02625137,
0.024135003,
0.0012999544,
-0.06520095,
-0.013525132,
-0.034114167,
-0.07377855,
-0.0258309,
-0.016510472,
0.012544034,
0.024835786,
-0.043728925,
-0.0039243908,
0.013398991,
-0.034450542,
0.0099581415,
-0.016594566,
0.035179358,
0.03680518,
0.046167653,
-0.038206745,
0.033861883,
-0.045326713,
0.0065978817,
0.018584793,
-0.039271936,
0.0052558803,
0.015178982,
0.032011814,
0.017337397,
-0.0008444448,
-0.011745141,
-0.060155302,
0.0004787231,
-0.018991247,
0.014295994,
-0.010364596,
0.016664645,
-0.023462249,
0.009383499,
-0.003561735,
-0.041962948,
0.03638471,
0.02096746,
-0.011822226,
0.024022877,
-0.024191065,
0.041906886,
-0.016061971,
0.05202621,
0.07276942,
-0.0108130975,
-0.027933251,
-0.032208033,
-0.021486038,
0.035768017,
0.021626195,
-0.017715821,
-0.016146064,
0.071367845,
-0.010490737,
-0.08751391,
-0.022593277,
-0.019621953,
-0.044569865,
-0.004257263,
-0.029993556,
0.03540361,
0.013770406,
0.009747906,
-0.030554185,
-0.009026098,
-0.038991623,
0.03461873,
0.001709913,
-0.034478575,
0.048578348,
0.024485394,
-0.015515358,
-0.008605628,
0.03189969,
-0.060603805,
0.021696273,
0.018024165,
0.01882306,
-0.0033637634,
0.0029082538,
-0.0177859,
-0.00086941017,
0.038963594,
0.0015180734,
0.024821771,
-0.006464733,
-0.010056251,
0.058137044,
0.031114811,
0.0060652858,
-0.013868516,
-0.02398083,
0.010217431,
0.002454496,
0.021023521,
0.05681957,
-0.019257545,
0.060884118,
0.0015925317,
-0.0355718,
-0.003384787,
-0.003913879,
-0.027148373,
0.065537326,
0.061725058,
0.02988143,
-0.050708733,
-0.017015036,
0.05225046,
-0.02161218,
0.0025893971,
0.02294367,
0.022537215,
-0.045326713,
-0.009208302,
-0.050064012,
0.0143030025,
-0.01801015,
-0.03845903,
-0.026713887,
0.010000188,
-0.037898403,
0.010939239,
0.0056833588,
0.027358608,
0.022495167,
-0.0059006014,
0.06262206,
0.0009898575,
-0.016426377,
0.010098298,
0.024961928,
-0.03481495,
-0.039552253,
0.013651273,
0.04689647,
-0.008009962,
-0.011752148,
-0.012501988,
-0.0022757961,
-0.008402401,
-0.044205457,
-0.014912684,
-0.04033713,
0.00028710245,
0.012207658,
0.035908174,
-0.030498121,
-0.022116745,
-0.0502322,
-0.0060828053,
0.049923856,
-0.054717217,
0.009530663,
-0.04201901,
-0.017211257,
0.03419826,
0.03520739,
-0.037590057,
-0.036777146,
-0.012333799,
-0.04734497,
0.038402967,
0.029769305,
-0.02550854,
0.022172807,
-0.048690476,
0.022985717,
0.012347815,
-0.016118033,
-0.015753625,
0.00535399,
0.0077927187,
0.0048564333,
0.055502094,
-0.0067310305,
-0.019972345,
0.030778434,
-0.022817528,
-0.01794007,
-0.043953177,
-0.04855032,
-0.025788853,
0.009404521,
-0.0037702182,
0.01882306,
0.000013646127,
0.021458007,
0.0177859,
0.029124584,
-0.024289174,
-0.034955107,
0.008970035,
0.044345614,
0.0019183963,
0.04300011,
-0.010182392,
-0.019061325,
0.018612824,
0.024022877,
-0.01749157,
0.011668054,
0.01122656,
-0.017141178,
-0.035739984,
-0.038739342,
0.017127162,
-0.041206103,
0.022411074,
-0.006727527,
-0.01914542,
0.010574831,
-0.037253678,
-0.026601762,
-0.016930941,
-0.017365428,
-0.001536469,
0.0023108353,
0.035319515,
-0.006503276,
-0.022312963,
-0.013420015,
-0.010518769,
-0.047288906,
0.01801015,
0.06688283,
0.04036516,
0.034478575,
-0.026405543,
-0.013511117,
0.034646764,
-0.012452932,
0.033441413,
0.0026577234,
-0.018052196,
0.006625913,
-0.0073231934,
-0.015178982,
-0.020855334,
-0.0016897655,
-0.008227205,
0.007806734,
-0.005529186,
0.018444637,
-0.0294049,
-0.04381302,
0.020252658,
-0.008059016,
-0.025228225,
-0.01596386,
-0.0117311245,
0.017589679,
-0.017225271,
-0.0017852474,
-0.020813286,
-0.047373,
-0.028507894,
0.04036516,
-0.044990335,
-0.015347171,
-0.05987499,
-0.026433574,
0.0052488726,
0.021766352,
0.022691388,
-0.045438837,
0.016005907,
-0.033665664,
0.0006626789,
-0.0502322,
-0.04036516,
-0.02449941,
0.0416546,
0.019355655,
0.06054774,
0.0044534826,
-0.017463539,
0.004208208,
-0.004660214,
0.0407576,
0.0317315,
-0.030806467,
-0.024036892,
0.02822758,
0.021542102,
0.0026664832,
0.016650628,
-0.011913328,
0.030105682,
0.008059016,
0.06133262,
-0.019734079,
-0.044317584,
-0.050540544,
-0.0123127755,
0.038991623,
-0.04221523,
0.01566953,
-0.011703094,
-0.0140577275,
-0.0062685134,
0.043560736,
-0.011093412,
0.00463919,
-0.036917303,
-0.037141554,
0.05480131,
-0.049251102,
0.013216787,
-0.015557406,
-0.011815219,
0.06116443,
-0.03349748,
-0.027092312,
0.052530773,
0.009271373,
0.0068466603,
-0.016790785,
0.04000075,
0.012382854,
0.0024474883,
0.0047933627,
0.024513425,
-0.022873592,
0.01236183,
-0.049335197,
-0.016524488,
-0.0032201027,
0.040225003,
0.039075717,
-0.020154549,
0.057296105,
0.012579073,
-0.0075614597,
-0.0407576,
0.015683547,
0.009544679,
0.04507443,
-0.029124584,
0.018038182,
0.012572066,
0.047008593,
-0.02326603,
-0.006282529,
-0.016146064,
0.09620363,
-0.014464183,
-0.032656536,
0.02070116,
0.03829084,
-0.017421491,
-0.057744604,
-0.03523542,
0.05987499,
-0.0058200113,
-0.014716465,
0.024555473,
0.038178716,
-0.03419826,
0.04961551,
0.02398083,
-0.013749382,
-0.008402401,
0.006769574,
0.009481608,
-0.029376866,
0.0016897655,
0.024667598,
-0.022214854,
-0.016440393,
0.016370315,
0.039019655,
-0.043112233,
-0.011254592,
0.061500806,
-0.0058690663,
0.015991893,
0.039019655,
-0.007883821,
0.06071593,
0.015753625,
-0.0067835897,
0.0025561098,
-0.0539884,
-0.060267426,
-0.033020943,
0.026041135,
0.022214854,
-0.00463919,
-0.03461873,
0.009832,
0.026097197,
0.06671464,
-0.04070154,
-0.086392656,
0.032600474,
-0.03234819,
-0.032236066,
0.044990335,
-0.010729004,
0.005350486,
0.04182279,
0.0133849755,
-0.04877457,
0.023644453,
0.03133906,
-0.007155005,
-0.021724306,
-0.03972044,
-0.015781656,
-0.03806659,
0.013994657,
-0.0016739978,
-0.03540361,
0.023924768,
0.033217162,
-0.002587645,
-0.0029152615,
0.019818172,
-0.005742925,
-0.06340694,
0.022144776,
0.002496543,
-0.0016915174,
-0.037421867,
-0.0079398835,
-0.021598164,
0.0012990785,
0.005704382,
-0.020911396,
0.017127162,
-0.02469563,
-0.010462706,
-0.012747262,
0.0048844647,
0.05289518,
-0.03133906,
0.0016792538,
-0.034506608,
0.02067313,
-0.05185802,
0.023924768,
-0.02745672,
-0.015150951,
0.0029678205,
0.018710934,
-0.0011107427,
0.012396869,
-0.012789309,
0.031871658,
-0.012193643,
0.018542746,
-0.0083673615,
0.0036791163,
0.033693697,
0.0018483179,
0.024975942,
-0.039075717,
0.00086327834,
0.037954465,
-0.023546344,
0.019635968,
0.018024165,
-0.0075404365,
-0.013216787,
0.029909464,
0.026279401,
0.05202621,
0.028704114,
-0.005571233,
-0.017715821,
-0.003300693,
-0.060435615,
0.02200462,
-0.075796805,
-0.015389217,
0.016622597,
-0.04588734,
0.015571421,
-0.022467136,
-0.015361186,
0.004923008,
0.018094243,
0.01810826,
0.023742564,
0.0030431547,
0.02112163,
-0.01100231,
-0.045691118,
-0.04342058,
0.0069552814,
-0.01044869,
-0.03803856,
-0.034450542,
0.025606649,
0.025200194,
0.0012342558,
-0.033048976,
-0.030582216,
-0.0010511761,
0.021486038,
0.025760822,
-0.037337773,
-0.016818818,
-0.059370425,
0.021976588,
0.0051087155,
-0.0030781939,
0.0063806386,
0.04678434,
-0.008780824,
-0.0020077464,
0.019397702,
0.043532703,
0.0030519145,
-0.026041135,
0.016888896,
0.005571233,
0.0729376,
-0.021345882,
0.021261787,
0.0083042905,
0.039328,
0.011808211,
0.01791204,
0.011892305,
0.03728171,
0.025298303,
-0.013118677,
-0.035908174,
0.0137213515,
0.0005531814,
-0.016790785,
-0.028143488,
0.019257545,
0.0008229833,
0.006724023,
0.014436151,
0.0077436636,
-0.0026577234,
0.0068326443,
0.02277548,
-0.046588123,
0.031002685,
-0.027078295,
-0.057744604,
-0.02171029,
0.017281335,
0.055277847,
0.02563468,
0.020757223,
0.024709646,
0.04176673,
0.010609871,
0.02005644,
0.0407576,
-0.018570777,
0.037197616,
-0.031759534,
0.013805445,
-0.029993556,
0.008871926,
-0.03338535,
-0.028073408,
-0.024849802,
0.03131103,
-0.051998176,
-0.021233756,
-0.0077927187,
-0.012726238,
-0.014744496,
-0.069069274,
0.026769951,
-0.052755024,
-0.016496457,
0.020939426,
0.020140532,
-0.047625285,
0.0020077464,
0.006342096,
0.017687788,
0.06340694,
0.01840259,
-0.027148373,
0.04720481,
0.01616008,
-0.012845372,
0.038374934,
0.014758511,
-0.06531307,
-0.0075334283,
0.0021636707,
-0.011436796,
-0.015753625,
-0.02625137,
-0.027835142,
0.029517023,
-0.013146709,
-0.024120986,
-0.05987499,
-0.015263076,
0.0073652402,
-0.0345907,
-0.020911396,
0.07613318,
0.017183224,
-0.015038826,
0.0035880143,
-0.009306412,
-0.042131137,
-0.028956397,
-0.0037947455,
0.008963028,
-0.022186823,
-0.019215498,
-0.026826013,
-0.044597898,
0.010161368,
0.0052103293,
-0.022705402,
0.013959618,
0.022046667,
0.012410886,
0.024415316,
0.0355718,
-0.026083183,
-0.026027119,
0.05202621,
0.036945336,
-0.03624455,
0.053399745,
0.06766771,
0.006317568,
-0.011976399,
-0.0031973273,
0.023294061,
-0.010504752,
-0.010049243,
0.0032831733,
0.0056868624,
-0.019930298,
-0.03189969,
0.017379444,
-0.0063806386,
-0.004919504,
-0.03374976,
-0.016860863,
-0.04367286,
-0.057744604,
0.014225916,
-0.043392546,
0.003419826,
-0.0072320914,
-0.026041135,
0.022999732,
-0.06878896,
0.23165117,
0.07529224,
0.05681957,
0.023083827,
0.03972044,
0.014814574,
-0.014029697,
-0.010420659,
0.0062439856,
-0.06273419,
0.021850446,
-0.059034046,
-0.0156415,
0.019397702,
-0.04507443,
-0.0055432017,
-0.08157126,
-0.019495811,
-0.039271936,
-0.017884009,
-0.0298534,
0.0630145,
0.024779724,
0.042859953,
0.052755024,
0.008045001,
0.009159247,
-0.05623091,
-0.019313607,
-0.05724004,
0.028073408,
-0.019621953,
0.014155838,
-0.049251102,
0.008808855,
0.023826657,
-0.013006552,
-0.033077005,
-0.033301257,
-0.008234212,
-0.008430432,
-0.010855145,
0.012263721,
-0.0058935937,
0.01677677,
0.01086916,
-0.011471835,
0.040421225,
0.00082999107,
-0.07372248,
0.009103185,
-0.057520352,
0.007112958,
-0.036889274,
-0.024975942,
-0.024415316,
-0.053539902,
-0.05763248,
0.01100231,
-0.004085571,
-0.012642144,
0.015122919,
-0.033665664,
0.047373,
-0.035768017,
0.006660952,
-0.014324026,
0.053063367,
-0.026237354,
-0.02326603,
-0.033833854,
0.016944958,
-0.035011172,
0.005322455,
0.03105875,
-0.009481608,
0.020925412,
0.04650403,
-0.037169587,
-0.02183643,
0.008647675,
-0.01178018,
0.013455054,
-0.033217162,
0.007316185,
0.022957684,
-0.027975298,
0.015711578,
0.020140532,
0.03969241,
0.0210936,
0.034282357,
0.026826013,
0.010588847,
-0.050568577
] | 🤗Specific HuggingFace Tip🤗: We’ve put a lot of effort into rewriting our TensorFlow models and loss functions to be XLA-compatible. Our models and loss functions generally obey rule #1 and #2 by default, so you can skip over them if you’re using transformers models. Don’t forget about these rules when writing your own models and loss functions, though! |
[
0.029319383,
-0.010056406,
-0.027364757,
-0.01014139,
-0.0023636096,
0.00089232903,
0.026543248,
-0.02271898,
0.03628805,
0.034730013,
-0.026741544,
0.019673731,
0.039432444,
-0.011904802,
-0.020764355,
0.036344703,
0.025310984,
-0.00798847,
-0.061528213,
0.0119543765,
0.0073865014,
-0.021869143,
-0.07540888,
-0.012945853,
-0.051755086,
0.019617075,
-0.0011481654,
-0.009943095,
0.07302934,
0.04625947,
-0.027208954,
0.020509403,
0.020339437,
-0.03016922,
-0.028781153,
-0.016670972,
-0.003160332,
0.017506646,
-0.07954476,
-0.038327657,
-0.008746241,
0.0044439402,
0.03450339,
0.011472802,
-0.038129363,
0.02733643,
-0.01880973,
-0.028285414,
-0.042831793,
-0.020396093,
0.010807096,
0.059261978,
0.020226125,
0.013271624,
-0.0657774,
0.003902169,
-0.04223691,
-0.013675297,
-0.05467286,
0.007457321,
-0.01067962,
-0.028667841,
-0.025084361,
-0.047930818,
0.04288845,
-0.006589779,
-0.009865194,
-0.0066004023,
-0.013200805,
-0.0026645937,
-0.034843326,
0.012202245,
-0.01805904,
-0.028965283,
-0.029630989,
0.03637303,
0.01920632,
0.02429118,
0.0071032224,
0.025608428,
0.024985213,
0.027109805,
0.00336748,
-0.018710582,
-0.032123845,
0.001988265,
0.065437466,
-0.00056080404,
0.0003501152,
-0.038667593,
0.018101532,
0.016628481,
-0.053624727,
-0.00010965998,
0.00043952517,
0.050621968,
0.011784409,
0.05113187,
0.035098277,
0.0014765922,
0.025608428,
0.063397855,
0.0058178436,
0.035778146,
-0.0051131872,
0.010028079,
0.0063666967,
-0.019404616,
-0.02196829,
-0.044219863,
-0.00788224,
0.0038101033,
0.026727378,
-0.0003501152,
0.0031107583,
-0.0151695935,
-0.046571076,
-0.0028398726,
-0.025622591,
-0.020183632,
0.03733618,
0.013285788,
-0.008179683,
-0.018625598,
0.014284346,
-0.030565811,
0.00016022971,
0.057137385,
0.006419812,
0.025735902,
-0.03175558,
-0.024588622,
0.020905994,
0.03759113,
-0.030197548,
-0.0011809196,
-0.011069129,
0.041415397,
0.032633748,
-0.0070571895,
-0.010771686,
0.005934696,
-0.024277015,
0.078354985,
0.017690778,
-0.009072012,
0.018682254,
-0.10011082,
-0.0053610564,
0.025226,
-0.041160446,
-0.0067207958,
-0.016571825,
-0.0003027545,
-0.052548267,
0.007032403,
-0.01590612,
0.025707575,
-0.00820801,
0.033058666,
-0.03099073,
0.025650918,
-0.01805904,
0.004805121,
0.05087692,
0.059205323,
-0.03730785,
-0.03203886,
-0.0021051175,
-0.05977188,
-0.022209078,
0.013314116,
-0.025820887,
0.012528016,
0.072179504,
0.05858211,
0.020636879,
-0.006912009,
-0.01078585,
-0.019220484,
0.00021256995,
-0.004518301,
0.012081852,
0.053766366,
-0.025523443,
-0.0064481394,
0.00075068953,
0.03274706,
0.030650795,
0.030254204,
-0.017010907,
0.009652734,
-0.01841314,
0.04232189,
-0.02490023,
-0.04342668,
-0.05249161,
0.0011304605,
0.016784284,
-0.04130209,
-0.020721864,
0.044758093,
-0.023965409,
-0.00906493,
0.0007745912,
0.008016798,
-0.07183957,
0.009001192,
-0.00473076,
0.0029478727,
0.03589146,
0.005095482,
0.0007166075,
-0.0036029555,
0.010828342,
-0.032010533,
-0.0025105607,
-0.014128543,
-0.0035108898,
-0.0076768626,
0.012620082,
-0.0020077403,
0.027081478,
0.01838481,
0.004567875,
0.016132742,
0.014298511,
0.040140644,
0.0046528587,
0.0061259097,
0.00784683,
0.05982854,
0.0014827888,
0.08968615,
0.03283204,
0.018257335,
0.06702383,
0.033341944,
0.005920532,
0.021670848,
-0.007931814,
0.023158062,
-0.0014031166,
0.031132368,
0.004854695,
-0.046882685,
-0.0099289315,
0.02848371,
-0.024574459,
0.014503888,
-0.0662873,
0.004883023,
0.017393334,
0.0043660384,
-0.010977063,
-0.017322514,
-0.03475834,
0.0073227636,
-0.020098649,
-0.046599407,
0.006529582,
0.021061799,
-0.0008670995,
-0.025962526,
0.04396491,
0.040480576,
-0.022294061,
0.019291304,
-0.013108739,
-0.021869143,
-0.009192405,
-0.016387694,
-0.060735032,
-0.017832417,
-0.008555028,
-0.000910034,
-0.005463745,
-0.041472055,
-0.014758839,
-0.02841289,
-0.0036295129,
0.0370529,
-0.0056160074,
0.052519936,
0.02691151,
0.017110055,
-0.038639262,
0.015311233,
-0.051358495,
-0.0051769246,
-0.026472429,
-0.009390701,
0.0020856422,
-0.012542181,
0.015098774,
-0.0005479679,
-0.004337711,
0.0061790245,
-0.02550928,
0.01071503,
-0.025084361,
0.0316706,
0.03243545,
-0.015353725,
0.004447481,
0.04438983,
0.04167035,
-0.028257087,
0.015608676,
-0.006667681,
-0.00788224,
0.011989786,
-0.0133991,
0.01576448,
-0.029829284,
0.03535323,
0.053454757,
-0.014560544,
-0.038752574,
-0.03518326,
-0.054871153,
0.0062887953,
0.03031086,
-0.010113062,
-0.017818253,
0.052378297,
-0.04693934,
-0.051585115,
0.0078751575,
-0.032718733,
-0.02827125,
-0.0047378424,
0.008838307,
0.03300201,
0.023512162,
0.012025196,
-0.03682628,
0.025084361,
-0.032152172,
-0.01189772,
0.023299703,
-0.0016297399,
0.024390327,
0.025778394,
-0.06016847,
-0.02199662,
0.027534725,
-0.022223242,
-0.008335486,
-0.020381927,
0.009645652,
-0.018370647,
0.0097518815,
0.0316706,
0.011316999,
0.038922545,
-0.03436175,
0.01271923,
-0.001261477,
-0.018299827,
0.006564992,
0.035211585,
0.001365051,
0.016217725,
-0.039035853,
0.013802772,
0.020905994,
0.028540365,
0.04206694,
-0.03841264,
0.050706953,
-0.011727753,
-0.04600452,
0.0038419722,
-0.0064764675,
-0.0007586567,
0.070933074,
0.05869542,
0.030509155,
-0.02640161,
-0.035211585,
0.010297194,
0.0023636096,
0.042038612,
0.026571576,
0.012740476,
-0.017775761,
-0.029829284,
-0.031019056,
0.021061799,
-0.0022839375,
0.042435203,
-0.009178242,
0.013824018,
0.004900728,
-0.074219115,
-0.0024273475,
0.081641026,
0.04223691,
0.010481325,
0.05370971,
-0.022988096,
0.004235022,
0.0179174,
0.031783912,
-0.026713215,
-0.02325721,
0.017464153,
0.048100784,
-0.0018784943,
-0.044871405,
-0.075918786,
-0.0049892524,
-0.02150088,
-0.030197548,
0.004291678,
-0.011777326,
0.004150038,
-0.021755831,
0.06844022,
-0.06022513,
-0.06968665,
-0.054729514,
-0.0005329187,
0.028851973,
-0.004812203,
-0.011147031,
-0.023016423,
0.020155305,
0.01641602,
-0.020396093,
-0.033313617,
-0.03164227,
-0.026189148,
-0.07291603,
0.029744301,
0.016090252,
-0.028965283,
-0.014114379,
-0.040367264,
-0.006246303,
0.0008387716,
0.033511914,
-0.0148721505,
-0.019107172,
-0.0052264985,
0.043511663,
0.00240079,
0.0062710904,
-0.020778518,
-0.004447481,
-0.062944606,
0.019532092,
-0.054446235,
0.033256963,
-0.024801081,
0.015566184,
-0.009971423,
0.017563302,
0.029092759,
0.0006210008,
0.012181,
0.04206694,
-0.016784284,
-0.016940087,
0.016670972,
0.0077406005,
-0.005127351,
0.064191036,
0.016260218,
-0.040423922,
0.041472055,
0.018583106,
-0.017138382,
-0.00523004,
-0.037421163,
0.010403424,
-0.011671097,
-0.00924198,
-0.009114504,
-0.007205911,
0.015637005,
0.0044262353,
-0.004504137,
0.0014960675,
-0.055494368,
-0.020976814,
0.008045126,
-0.022605669,
0.04184032,
-0.02082101,
0.0049998756,
0.005970106,
0.0026327248,
-0.013597395,
-0.0134132635,
-0.012315557,
0.0029832826,
0.043285042,
0.0059240735,
0.0006373779,
-0.0154670365,
-0.03651467,
0.09223566,
-0.049602162,
-0.0017634121,
-0.027548889,
0.006515418,
0.018639762,
-0.043058418,
-0.03543821,
0.002393708,
-0.016458513,
-0.010771686,
0.04223691,
-0.009411947,
0.036401358,
-0.0061861062,
-0.014985463,
0.0062108934,
-0.019942846,
-0.015452873,
-0.020707699,
-0.0040473496,
0.04331337,
0.014673855,
0.024050392,
-0.040905498,
-0.014248936,
-0.053794693,
0.03637303,
-0.03937579,
-0.027293937,
-0.039347462,
-0.04747757,
0.007613125,
0.016883433,
0.010134309,
-0.020905994,
0.019942846,
-0.06300126,
0.02873866,
-0.07988469,
-0.012011033,
-0.0018448549,
0.023413014,
-0.01888055,
0.032633748,
0.0022750848,
-0.003611808,
-0.01315123,
0.040820513,
0.03668464,
0.03642969,
-0.013944412,
-0.04237855,
0.015962776,
0.030339187,
-0.009411947,
0.025141016,
0.008016798,
0.04858236,
0.0031160696,
0.036996245,
-0.056769125,
-0.024489475,
-0.043483336,
0.0035445292,
0.05413463,
-0.02407872,
0.033851847,
-0.03150063,
-0.012790049,
-0.0034099717,
0.010630047,
-0.0002653528,
0.03895087,
0.0038419722,
-0.017124219,
0.047279276,
-0.03761946,
-0.014057723,
-0.03569316,
0.02293144,
0.0034011193,
-0.018639762,
-0.005074236,
0.07722187,
-0.03651467,
-0.004213776,
-0.009022438,
0.028766988,
0.012407623,
0.052123345,
0.0031408565,
-0.02389459,
-0.016826777,
-0.010353849,
-0.01988619,
-0.044871405,
-0.0014243625,
0.021840816,
0.0073227636,
-0.0067703696,
0.05628755,
-0.009645652,
0.01014139,
-0.010481325,
0.02676987,
0.020410256,
-0.012258901,
0.020693535,
0.06045175,
-0.010630047,
0.043086745,
-0.051075213,
-0.035381556,
0.018639762,
0.07608876,
-0.0067385007,
-0.047562554,
0.023172228,
0.05399299,
-0.050933573,
-0.06946003,
-0.0065579102,
0.028710332,
-0.018965533,
0.00089808315,
0.022010783,
0.013944412,
-0.0760321,
0.06940337,
0.04912059,
-0.048100784,
-0.0145747075,
0.031840567,
-0.00734401,
-0.01895137,
-0.032662075,
0.031585615,
-0.042945106,
-0.00967398,
-0.019376287,
-0.004199612,
-0.027024822,
-0.011331162,
0.04719429,
-0.05682578,
-0.019560419,
0.032945354,
-0.027152298,
0.025650918,
-0.00028106594,
-0.0048794816,
0.004277514,
-0.06793032,
-0.051330164,
-0.017095892,
0.015027954,
0.008930372,
0.03152896,
0.007641453,
0.036458015,
0.018937206,
0.05396466,
-0.029630989,
-0.0735959,
-0.000060528768,
-0.04424819,
0.0007993781,
0.051103543,
0.006827025,
0.022180751,
0.010509653,
0.002089183,
-0.050565314,
-0.0024893146,
-0.0012481983,
0.002607938,
-0.009142832,
-0.057873912,
0.026189148,
-0.048922293,
-0.005400007,
-0.03759113,
-0.03716621,
0.0077618463,
0.04597619,
-0.034560047,
-0.0047413833,
-0.013993986,
0.03750615,
-0.013788608,
0.031189024,
-0.0215717,
-0.01880973,
-0.06946003,
0.010587554,
-0.033171978,
0.039064184,
0.019333797,
-0.034843326,
0.0008489519,
-0.0006378205,
-0.007967223,
-0.033880174,
0.029177744,
0.05249161,
-0.0007011157,
-0.012782968,
-0.05319981,
0.010530899,
-0.05101856,
-0.012556344,
-0.012379295,
-0.05994185,
0.0037923984,
0.054049645,
0.038186017,
0.011699425,
0.0058532534,
0.03152896,
0.0056584994,
0.0064764675,
0.03082076,
0.011706507,
0.02794548,
0.0052194167,
-0.02684069,
-0.016670972,
0.012605919,
0.057590634,
-0.04560793,
0.030934073,
0.007797256,
0.0020626257,
0.031047385,
-0.031189024,
-0.0062746312,
0.012046442,
0.030934073,
-0.00637732,
-0.019305468,
-0.016005266,
-0.008930372,
-0.0013677067,
-0.07586213,
-0.055381056,
0.0049396786,
-0.056712467,
-0.014376412,
0.008448798,
-0.024319507,
0.02991427,
-0.007903486,
0.0010702637,
0.003142627,
-0.01468802,
-0.004118169,
-0.03229381,
-0.046344455,
-0.061528213,
0.019376287,
-0.0011543622,
-0.020835174,
-0.021260094,
0.016543496,
0.049998753,
0.024206195,
-0.009001192,
-0.01899386,
-0.039460775,
0.0316706,
0.029800957,
-0.060791686,
0.025721738,
-0.06810029,
0.0040615136,
0.0061365324,
0.0070040748,
0.011253261,
0.058525454,
0.0071067633,
-0.0012836083,
0.0059028273,
0.0328887,
0.0148721505,
0.0023388227,
0.03770444,
-0.0073015178,
0.046712715,
-0.006515418,
-0.009836866,
0.046174485,
0.05529607,
0.014128543,
0.033058666,
0.007754764,
0.072349474,
0.01841314,
-0.019758714,
-0.018696418,
0.04640111,
0.012945853,
0.027152298,
-0.02150088,
-0.009936013,
-0.020665208,
-0.014461396,
0.017761597,
0.02590587,
-0.01594861,
-0.0061259097,
-0.020721864,
-0.029744301,
0.026458263,
0.008229257,
-0.009305717,
0.009192405,
0.0066924677,
0.023497999,
0.04303009,
0.012018114,
0.02135924,
0.0023405931,
0.06033844,
0.016571825,
0.015452873,
0.013002509,
0.014312674,
-0.0016102644,
0.012336803,
-0.05464453,
0.011664015,
-0.009702308,
-0.036996245,
-0.011104539,
0.032265484,
0.009957259,
-0.04733593,
-0.017209202,
0.013646969,
-0.024588622,
-0.04277514,
0.033596896,
-0.040140644,
0.043341696,
0.007542305,
-0.025056032,
-0.014843822,
0.023611309,
0.021146782,
0.0019298386,
0.038639262,
0.056372534,
0.016741792,
0.058865387,
0.034418404,
0.027223118,
0.027860496,
0.0063985656,
-0.03665631,
-0.01677012,
0.021911636,
-0.015651168,
-0.0143055925,
-0.01318664,
-0.06005516,
0.066343956,
0.019362124,
-0.0097448,
-0.009730636,
-0.023413014,
0.0043979073,
-0.033115324,
-0.032265484,
0.080677874,
0.012825459,
0.0006134762,
-0.041500382,
0.0014429527,
-0.053936332,
-0.04546629,
0.005527483,
0.010105981,
-0.01508461,
-0.04274681,
-0.0070571895,
-0.04271848,
0.004808662,
0.014355166,
-0.0034772505,
-0.03314365,
0.015070446,
-0.0146030355,
0.06266133,
-0.005357515,
-0.026713215,
-0.012712148,
0.060508408,
0.06764704,
0.025608428,
0.03937579,
0.002393708,
0.015353725,
-0.0038242673,
-0.013307034,
-0.021160945,
-0.020679371,
-0.002576069,
0.018512286,
0.0097448,
-0.049148917,
-0.052378297,
-0.03181224,
0.010608801,
-0.039007526,
-0.002719479,
-0.017081728,
-0.052831545,
-0.047845833,
0.003909251,
-0.018554779,
-0.017605793,
0.016076086,
-0.014128543,
0.01895137,
-0.034333423,
0.23704791,
0.05368138,
0.033653554,
0.056797452,
0.033625223,
0.0053150235,
0.036571328,
0.0037888575,
-0.01046008,
-0.059318636,
0.014673855,
-0.03152896,
-0.0022750848,
0.019801207,
-0.03450339,
0.014213527,
-0.03951743,
0.014588872,
-0.009199487,
0.020197798,
-0.067590386,
0.029574335,
-0.024262851,
0.048780654,
0.00080955843,
-0.038497623,
-0.03679795,
-0.050933573,
-0.008781651,
-0.047534227,
0.0026274133,
-0.0061400738,
0.00047006618,
-0.040792186,
0.026614068,
0.030934073,
0.02433367,
0.0010481325,
-0.026274133,
0.0018979697,
-0.029744301,
-0.00066172215,
0.029659318,
0.007209452,
0.017280024,
0.056797452,
0.0043837433,
-0.0074927313,
0.008781651,
-0.04504137,
0.049857114,
-0.043766614,
0.0066818446,
-0.032917026,
-0.049687147,
-0.011642769,
-0.032095518,
-0.043738287,
0.014036478,
0.03084909,
0.004532465,
0.0077122725,
-0.032945354,
0.022435702,
-0.017974056,
0.008498372,
-0.036458015,
0.060395095,
-0.0007020009,
-0.020084485,
-0.0387809,
0.024560295,
0.008979946,
-0.0070217797,
0.031868894,
0.017634122,
0.012223491,
0.022648161,
0.00008127675,
-0.033483583,
0.008278831,
0.019673731,
0.03016922,
0.017549139,
0.033511914,
0.016869267,
-0.04249186,
-0.0007130665,
0.012867951,
0.022294061,
0.036712967,
0.020679371,
0.007216534,
0.023158062,
0.009843947
] |
How do I actually train my model on TPU?
Once your training is XLA-compatible and (if you’re using TPU Node / Colab) your dataset has been prepared appropriately, running on TPU is surprisingly easy! All you really need to change in your code is to add a few lines to initialize your TPU, and to ensure that your model and dataset are created inside a TPUStrategy scope. Take a look at our TPU example notebook to see this in action!
Summary
There was a lot in here, so let’s summarize with a quick checklist you can follow when you want to get your model ready for TPU training: |
[
0.021062814,
0.007637929,
-0.017758008,
0.018240254,
-0.01998485,
-0.014219172,
0.0140206,
0.0012916044,
0.017914029,
0.023360575,
-0.027998649,
0.0039891694,
0.03128927,
-0.02964396,
-0.009949874,
0.037615206,
0.011680287,
-0.020594751,
-0.0833435,
0.037501737,
0.005386265,
-0.009503087,
-0.08147124,
-0.014978001,
-0.013822028,
0.046664413,
0.0047657276,
0.0036913112,
0.06637978,
0.031090697,
-0.018126784,
0.00672308,
0.018041683,
-0.037927248,
-0.032792743,
-0.0041593737,
0.0044253184,
-0.0032002002,
-0.06252181,
-0.036593977,
0.0027037703,
-0.0068791006,
0.020920977,
-0.000866093,
-0.06155731,
0.008666248,
-0.020509649,
-0.021715265,
-0.013609272,
-0.032140292,
0.0077655828,
0.054068312,
0.039147045,
0.017587803,
-0.07784022,
-0.004840192,
-0.033218253,
-0.009162678,
-0.06303242,
0.0071769585,
0.00989314,
0.007006754,
-0.0039217966,
-0.069670394,
0.03568622,
0.030665187,
-0.007907419,
0.0024431446,
-0.01906291,
0.02418323,
-0.02880712,
0.019389136,
-0.0104533965,
-0.0025867545,
-0.021601794,
0.0036877652,
0.009531455,
0.003311897,
0.005113228,
0.014580857,
0.042806447,
0.03568622,
0.020779138,
-0.002322583,
-0.05872057,
-0.019474238,
0.06552875,
0.0054678214,
0.000060557806,
0.0037338624,
-0.0062018284,
0.011878859,
-0.04779911,
0.036168467,
-0.0012135939,
0.05764261,
0.00393598,
0.051401775,
0.016765147,
-0.004471415,
0.021615978,
0.06150058,
0.0011745887,
0.02204149,
-0.023005983,
0.023445677,
0.033019684,
-0.033984177,
0.000157683,
-0.031204168,
-0.0016665863,
-0.009630741,
0.023828637,
0.0012295506,
0.03579969,
-0.0011276052,
-0.017942397,
0.019715361,
-0.019176379,
-0.030097838,
0.026438441,
0.019133829,
0.0022303888,
-0.015417696,
0.0138362115,
-0.03472173,
0.012751157,
0.05378464,
-0.014921266,
0.030608453,
0.0042870273,
-0.027417116,
0.004148736,
0.036253568,
-0.026424257,
0.002962623,
-0.013240496,
0.02422578,
0.015020552,
0.006361395,
0.0012463938,
-0.009673292,
-0.025317928,
0.08062022,
0.0028030563,
0.0040707258,
0.03318989,
-0.063940175,
-0.0155169815,
0.035828058,
-0.04031011,
-0.011630644,
-0.020807507,
0.0016781104,
-0.016609127,
0.025261192,
-0.01928985,
0.022906696,
0.0050671315,
0.01604178,
0.004588431,
-0.008254921,
-0.010729979,
0.015899941,
0.039402355,
0.05023871,
-0.047175027,
-0.01520494,
-0.012176718,
-0.03225376,
0.0012002967,
0.00026173383,
-0.0006918992,
0.020268526,
0.048621766,
0.069273256,
0.0280412,
-0.001927212,
0.006719534,
-0.005974889,
-0.020722404,
-0.0056699393,
0.033019684,
0.015048919,
0.0073258877,
-0.0022977614,
-0.0012933773,
0.03151621,
0.026083848,
0.0068471874,
-0.0029679418,
0.023232922,
-0.044820532,
0.057444036,
-0.03789888,
-0.009120127,
-0.03435295,
-0.020594751,
-0.012687331,
-0.034636628,
-0.010822173,
0.046324007,
-0.03040988,
-0.015857391,
-0.012098707,
-0.011134215,
-0.028353242,
0.010183905,
-0.020835875,
0.0052089687,
0.03293458,
-0.0055387397,
0.005088407,
-0.026722115,
0.007900328,
-0.011666103,
-0.0012109345,
0.0059217,
0.000961833,
0.00601744,
0.023247104,
0.0030264496,
0.014907082,
0.009020842,
0.015545349,
-0.004538788,
0.01046758,
0.05341586,
0.017204843,
-0.01570137,
0.009999517,
0.052706677,
0.00779395,
0.104392126,
0.035175607,
0.012907178,
0.03789888,
0.057869546,
-0.015488614,
0.025275376,
-0.024239965,
0.01574392,
0.010311559,
0.016836068,
0.0373599,
-0.011737023,
-0.00403172,
-0.0049713915,
-0.0242967,
0.023630066,
-0.05838016,
0.026452623,
0.0081272675,
-0.004503329,
-0.033984177,
-0.013651824,
-0.00901375,
0.01302774,
-0.0028278776,
-0.04419645,
-0.0066911667,
0.020793322,
-0.016226167,
-0.011595185,
0.04425318,
0.054493826,
-0.03892011,
0.012290187,
0.016070146,
-0.0020353629,
-0.022027306,
-0.029757429,
-0.050408915,
-0.017403416,
-0.009247781,
-0.017105557,
0.02846671,
-0.029388653,
-0.007059943,
-0.019743728,
-0.02265139,
0.028821304,
-0.01890689,
0.04955789,
0.042664606,
0.027119258,
-0.015871575,
0.020523833,
-0.05883404,
0.0004591977,
-0.03401254,
-0.022296796,
0.026764667,
0.0077655828,
0.02594201,
-0.038012348,
-0.007198234,
-0.0057656793,
-0.038182553,
0.0061770068,
0.011311511,
0.028126303,
0.018155152,
-0.011545542,
0.017204843,
0.049529526,
0.027856812,
-0.0032197027,
0.021474142,
-0.00064314273,
-0.017758008,
0.024254149,
0.0093967095,
0.012609321,
-0.03426785,
0.046182167,
0.041388072,
0.005045856,
-0.049330954,
-0.050834425,
-0.063429564,
0.008474768,
0.02066567,
-0.007907419,
0.012942638,
0.032991316,
-0.047118295,
-0.058323428,
0.018793419,
-0.045558084,
-0.02892059,
-0.013963865,
0.016098514,
0.022112409,
0.026381705,
0.0039111585,
-0.035828058,
0.033785604,
-0.045983598,
-0.0060032564,
0.010488856,
-0.007879052,
0.034523156,
0.023076901,
-0.023786087,
0.002710862,
0.039430723,
-0.04141644,
-0.012651872,
-0.01379366,
-0.008793902,
-0.0373599,
0.013935498,
0.03219703,
-0.0072336933,
0.039288886,
-0.013595088,
0.0047302684,
0.0071840505,
-0.000652894,
0.010396661,
0.018055866,
-0.006698258,
0.015786473,
-0.035232343,
-0.0062089204,
0.014538306,
0.03318989,
0.041813586,
-0.05619587,
0.036423773,
-0.00057222415,
-0.067401,
-0.016779331,
0.019374952,
-0.009198138,
0.0634863,
0.046097066,
0.027062524,
-0.015006368,
-0.045132574,
-0.01310575,
0.0040210825,
0.044451755,
0.057103626,
0.012127074,
-0.015332594,
0.010198089,
-0.012701515,
0.01967281,
-0.009219414,
0.036735814,
0.015545349,
-0.013772385,
-0.005822414,
-0.062181395,
0.02853763,
0.0747198,
0.023048533,
0.016495658,
0.033672135,
-0.042948283,
0.010297376,
0.047175027,
0.036310304,
-0.016538208,
-0.044905633,
0.02467966,
0.025686704,
0.0024927875,
-0.043600734,
-0.07761328,
-0.04042358,
-0.0073471633,
-0.026480991,
-0.0049146563,
-0.026920687,
0.016793516,
-0.010347018,
0.046153802,
-0.038182553,
-0.040792357,
-0.03282111,
-0.01631127,
0.0286511,
-0.01955934,
-0.021147916,
-0.04343053,
0.005815322,
0.0324807,
0.007609562,
-0.041785218,
-0.016226167,
-0.034494787,
-0.07528715,
0.06116017,
0.023544963,
-0.014361009,
0.0021133733,
-0.037728675,
0.016750965,
0.004783457,
0.023828637,
-0.03338846,
-0.014233355,
-0.0106661515,
0.043458894,
0.021445774,
-0.017956581,
-0.02276486,
0.016382188,
-0.06456426,
0.036565613,
-0.021871286,
0.009559822,
-0.02066567,
-0.01459504,
-0.00267363,
0.02899151,
0.042012155,
-0.011481715,
-0.02418323,
0.0041522817,
-0.020225974,
-0.036622345,
0.027757525,
0.005716036,
0.006428768,
0.06620957,
-0.02460874,
-0.03755847,
0.055259746,
0.010637784,
-0.017928213,
-0.0058968784,
-0.033104785,
0.0025920735,
-0.0019041634,
-0.029133346,
0.0010948053,
0.0010478217,
0.04340216,
0.00020621788,
-0.02616895,
-0.008609514,
-0.073982246,
0.0053649894,
-0.003498058,
-0.023672616,
0.047175027,
-0.011659012,
-0.023814453,
-0.00947472,
0.0004897813,
-0.031544577,
-0.03140274,
0.0045246044,
-0.0008253148,
0.038863372,
0.0065954262,
0.0016524026,
0.00060458074,
-0.038267657,
0.08453493,
-0.063259356,
0.0030885034,
-0.04067889,
-0.013843304,
0.021842917,
-0.031884987,
-0.031572945,
-0.0017773965,
-0.044366654,
-0.015715554,
0.021062814,
-0.0038296024,
0.035913162,
-0.013864579,
-0.017133925,
0.023615882,
-0.016055962,
0.0035335175,
-0.03284948,
0.011744114,
0.037643574,
0.0038437862,
-0.012495851,
-0.024041394,
-0.015616268,
-0.053188924,
0.05511791,
-0.03704786,
-0.008907371,
-0.03469336,
-0.08952759,
0.005279887,
0.03415438,
0.037757043,
-0.03534581,
0.021403223,
-0.0560824,
0.01692117,
-0.06757121,
-0.0046593496,
-0.037161328,
0.0448489,
-0.030977229,
0.04518931,
-0.012027788,
0.010190997,
-0.0011612915,
0.05917445,
0.024637109,
0.048252992,
-0.020396179,
-0.032679275,
0.020027403,
0.013666007,
-0.0019413957,
0.017289946,
-0.0155311655,
0.03350193,
0.015857391,
0.038296025,
-0.023956291,
-0.029076612,
-0.031998456,
0.011609369,
0.05872057,
-0.031601314,
0.03667908,
-0.021332303,
-0.0041310065,
0.005450092,
0.031601314,
0.011538451,
0.03999807,
-0.0087726265,
-0.06524508,
0.04172848,
-0.044820532,
-0.022282613,
-0.016892802,
-0.015176573,
0.015332594,
-0.01692117,
0.019133829,
0.08288962,
-0.032026824,
-0.01054559,
-0.030580085,
-0.0022569832,
0.01291427,
0.014751061,
0.0098222215,
-0.035742957,
-0.020055769,
-0.0022995344,
-0.041047666,
-0.029927634,
0.008262013,
0.035232343,
0.0040210825,
-0.023048533,
0.05089116,
-0.025218641,
0.0016976132,
-0.017914029,
0.031601314,
0.008871912,
-0.0072904285,
0.022013122,
0.044309918,
-0.013346873,
0.041927055,
-0.06263527,
-0.020991895,
0.018169336,
0.07449286,
0.00036500898,
-0.056564648,
0.04879197,
0.031147433,
-0.057245463,
-0.0636565,
0.0006116726,
0.02265139,
-0.027573137,
-0.026977422,
0.016878618,
0.018580664,
-0.07698919,
0.06603937,
0.061670784,
-0.054578926,
-0.014013508,
0.036991123,
-0.03208356,
-0.03228213,
-0.021757815,
0.025700888,
-0.03721806,
-0.017914029,
-0.028097935,
-0.0014928358,
-0.027232729,
-0.014382285,
0.05542995,
-0.027360382,
-0.016055962,
0.0350054,
-0.007567011,
0.029331917,
-0.0076875724,
0.015843207,
0.0031948814,
-0.06070629,
-0.03469336,
-0.039856233,
0.026736299,
0.0013509986,
0.024920784,
0.003946618,
0.036055,
0.031090697,
0.02892059,
-0.010949826,
-0.07596797,
0.0016461972,
-0.06598263,
-0.014779429,
0.040849093,
-0.019304033,
-0.008410942,
0.023445677,
0.02265139,
-0.030211307,
0.005918154,
-0.0023775448,
-0.000913963,
-0.00989314,
-0.063599765,
-0.015800657,
-0.045472983,
-0.023105267,
-0.031232536,
-0.017445967,
0.01757362,
0.051089734,
-0.036310304,
-0.01325468,
-0.029076612,
0.03568622,
-0.019686993,
0.0212472,
0.0074464492,
-0.0065989722,
-0.06717406,
0.0061734607,
-0.04550135,
0.016665863,
0.017672906,
-0.027062524,
-0.009481812,
-0.00058729434,
-0.0070457594,
-0.0423242,
0.034494787,
0.045472983,
-0.017942397,
-0.021275569,
-0.044565227,
0.04187032,
-0.055486683,
0.007496092,
-0.00029940932,
-0.06008221,
-0.010807989,
0.036055,
0.014850347,
0.020098321,
0.004747998,
0.02364425,
-0.00867334,
0.014566673,
0.014346825,
0.015800657,
0.021034446,
-0.008439309,
0.0013261772,
-0.012041972,
0.021828733,
0.036593977,
-0.021857101,
-0.0024112312,
0.008914463,
-0.007694664,
0.016651679,
-0.027175993,
0.009269056,
0.034863565,
0.025871092,
-0.0026824947,
-0.0055529233,
-0.006971295,
-0.042466037,
-0.01176539,
-0.07540061,
-0.07103203,
0.0056983065,
-0.05517464,
-0.010758346,
0.015247491,
-0.005928792,
0.019474238,
0.018311173,
-0.019928116,
-0.0049146563,
-0.0036735816,
0.030608453,
-0.015119838,
-0.044650327,
-0.06246507,
0.0298709,
0.0054394538,
-0.031260904,
-0.0011666104,
0.00236868,
0.0474587,
0.038296025,
-0.011673195,
-0.030353146,
-0.04453686,
0.0140560595,
0.024339251,
-0.053047087,
0.03143111,
-0.055316478,
0.009765486,
-0.010311559,
0.010559774,
0.008056349,
0.050607488,
-0.0007929582,
0.008056349,
0.0067088963,
0.0013820255,
0.025346294,
-0.008389666,
0.057245463,
-0.021006078,
0.04805442,
-0.0045919768,
-0.03259417,
0.0069464734,
0.06518834,
0.021729447,
0.037842147,
0.0066805286,
0.06586916,
0.012829168,
-0.004531696,
-0.0142546315,
0.04286318,
0.015233307,
0.016736781,
-0.022381898,
-0.001482198,
-0.049614627,
-0.035629485,
0.0074890004,
0.01104202,
-0.027360382,
-0.015786473,
-0.03690602,
-0.041019298,
0.019843014,
-0.015545349,
-0.007701756,
0.0142617235,
0.012517126,
0.052508105,
0.023374759,
0.019006174,
0.035742957,
0.009460537,
0.04950116,
0.030551717,
0.008680432,
0.002469739,
0.02510517,
-0.0140206,
-0.00025109603,
-0.026452623,
-0.0047550895,
-0.0052089687,
-0.019843014,
-0.009290332,
0.026608644,
0.006559967,
-0.047572173,
0.0087584425,
0.012772433,
-0.027261095,
-0.032877848,
0.033303358,
-0.053047087,
0.05089116,
0.023601698,
-0.03338846,
-0.020651486,
0.036877654,
0.016297085,
0.00063693733,
0.03892011,
0.05432362,
0.006084813,
0.04947279,
0.05168545,
0.020311076,
0.017275762,
0.006361395,
-0.042919915,
-0.0175027,
0.03052335,
0.0028792936,
-0.009630741,
-0.039147045,
-0.044820532,
0.04847993,
0.019616075,
-0.019460054,
-0.061954457,
-0.016382188,
0.00947472,
-0.029360285,
-0.016353821,
0.09009495,
0.043884408,
-0.005141596,
-0.033019684,
0.0067798146,
-0.040934194,
-0.0030920494,
0.00076237455,
0.026495175,
-0.014538306,
-0.05894751,
-0.0013864579,
-0.030778656,
0.009574006,
-0.0009831085,
-0.008659157,
-0.031033963,
0.031771515,
0.014623408,
0.048933808,
0.008630789,
-0.0071273157,
-0.009006658,
0.046919722,
0.06388344,
0.0022374806,
0.039175414,
0.035175607,
0.021857101,
0.005272795,
-0.01592831,
-0.018892705,
-0.017034639,
0.01195687,
0.027615689,
-0.0016984995,
-0.023786087,
-0.0573022,
-0.028296506,
0.0039856234,
-0.042692974,
0.0008519092,
-0.021772,
-0.013921314,
-0.051373407,
-0.008957014,
-0.034409687,
-0.011375338,
0.011666103,
-0.02562997,
0.011659012,
-0.048877075,
0.23919412,
0.061784253,
0.032707643,
0.046238903,
0.031033963,
0.03611173,
0.035572752,
-0.03537418,
-0.015233307,
-0.042380933,
-0.014566673,
-0.039487455,
-0.011701563,
0.014027691,
-0.042012155,
0.028722018,
-0.063259356,
0.00071938016,
-0.015233307,
-0.01624035,
-0.08799575,
0.056224238,
0.00955273,
0.032338865,
0.018779235,
-0.022906696,
-0.023374759,
-0.055316478,
-0.019616075,
-0.046777885,
-0.006701804,
-0.02418323,
0.010368294,
-0.039487455,
0.023374759,
0.0337005,
0.012403657,
0.0014848574,
-0.0056451177,
-0.023459861,
-0.018750869,
-0.015417696,
0.016892802,
0.01211289,
0.017133925,
0.045898493,
0.007900328,
0.02903406,
0.030863758,
-0.057444036,
0.020481281,
-0.058663834,
-0.0060989964,
-0.022736492,
-0.055373214,
-0.021006078,
-0.054295253,
-0.038636435,
-0.0053082546,
0.024594558,
0.008687524,
0.008779719,
-0.028878039,
0.019871382,
-0.02899151,
0.023658432,
-0.011857584,
0.029502122,
-0.003363313,
-0.018013315,
-0.02231098,
0.010198089,
0.0026452625,
-0.012063248,
0.034097645,
0.041047666,
0.020566383,
0.033870704,
-0.003157649,
-0.017034639,
0.0180275,
0.015644634,
0.027190177,
0.020339444,
0.027828444,
0.05157198,
-0.041246235,
0.0043792212,
0.013006465,
0.012658964,
0.034097645,
0.028239772,
-0.013034832,
-0.0017100238,
-0.01077253
] |
Make sure your code follows the three rules of XLA
Compile your model with jit_compile=True on CPU/GPU and confirm that you can train it with XLA
Either load your dataset into memory or use a TPU-compatible dataset loading approach (see notebook)
Migrate your code either to Colab (with accelerator set to “TPU”) or a TPU VM on Google Cloud
Add TPU initializer code (see notebook)
Create your TPUStrategy and make sure dataset loading and model creation are inside the strategy.scope() (see notebook)
Don’t forget to take jit_compile=True out again when you move to TPU!
🙏🙏🙏🥺🥺🥺
Call model.fit()
You did it!
|
[
-0.014048894,
-0.0034819457,
-0.03191635,
0.0067786626,
-0.01496079,
-0.026558964,
0.027100403,
-0.007473271,
-0.044397924,
0.048387468,
0.01845164,
0.012061247,
0.033654653,
-0.058275837,
-0.03955348,
0.02650197,
-0.0066575515,
-0.013699809,
-0.061723944,
0.025946284,
0.008691506,
-0.0067287935,
-0.08606017,
0.0073806564,
-0.03892655,
0.0061837933,
0.0069140224,
0.00105527,
0.0883399,
0.06656839,
-0.018494386,
-0.0010704088,
0.009211572,
-0.0042317663,
-0.011961508,
0.020446412,
0.022341447,
-0.023638047,
-0.020546151,
-0.04622172,
0.017468503,
0.006946081,
0.018565629,
-0.06639741,
-0.03918302,
0.019392034,
-0.010401311,
-0.018708112,
0.0042460146,
-0.052946948,
-0.04149126,
0.02861073,
0.029608116,
0.000244226,
-0.045509297,
0.00092169154,
0.013557325,
-0.0314889,
-0.05274747,
-0.033284195,
-0.035563935,
-0.021073341,
0.009069088,
-0.070044994,
0.041576747,
-0.0041569625,
-0.0053182044,
-0.0022369942,
-0.015929678,
0.010451181,
-0.026544716,
-0.011526932,
-0.06326277,
-0.042232174,
0.011605298,
-0.0024133178,
-0.006522192,
0.016371379,
-0.03884106,
-0.0025967658,
-0.00041542907,
0.015146019,
0.022270204,
0.004523858,
0.0043991846,
-0.01662785,
0.027000664,
0.02353831,
-0.02992158,
-0.013927783,
-0.03271426,
-0.008057454,
-0.015972424,
0.0035229097,
0.009902618,
0.027613344,
0.014390855,
0.048672438,
0.0062728454,
-0.04416995,
0.01176203,
0.04664917,
0.0043884986,
0.034082104,
-0.0017187098,
0.057534922,
0.049612828,
0.019876478,
-0.036988772,
-0.04505335,
-0.0107646445,
-0.023965761,
0.011769155,
0.0037330734,
0.0101733375,
0.032685764,
-0.01618615,
0.0016065039,
-0.056851003,
-0.017055301,
0.027057657,
-0.0048017013,
0.036105372,
-0.015473731,
-0.0011585708,
0.0069567673,
0.03858459,
0.047732044,
-0.013877913,
-0.011348828,
0.01119922,
0.00082640554,
0.008299677,
0.05887427,
-0.007779611,
-0.015245757,
-0.034994,
0.012011377,
-0.018950334,
0.015815692,
0.034766026,
-0.033711646,
-0.002342076,
0.06850617,
-0.021629028,
-0.005432192,
0.041747727,
-0.029266154,
-0.029665109,
0.022911381,
-0.025476089,
0.030035567,
-0.00048444464,
-0.032685764,
-0.034253083,
-0.025176872,
-0.021728767,
-0.015715953,
0.0054678125,
0.029864587,
0.011120854,
0.020318178,
-0.0016162996,
0.07146983,
-0.005111603,
0.07808108,
-0.04530982,
-0.002222746,
0.01119922,
-0.023652297,
0.022768898,
0.013991901,
-0.00040875014,
0.01942053,
0.06616943,
0.022099225,
0.081272714,
-0.027869815,
0.022327198,
0.016200399,
-0.04251714,
-0.03174537,
0.01776772,
0.0384991,
0.0236238,
-0.019548766,
0.0045096097,
0.019534517,
0.006016375,
-0.02003321,
-0.0024809977,
-0.00086069066,
-0.047817536,
0.03317021,
-0.0028283016,
-0.0240655,
-0.05012577,
0.024165237,
-0.013087129,
-0.034424067,
0.0031364227,
0.038983542,
-0.05214904,
0.015416738,
-0.034424067,
0.0125528155,
0.013635691,
0.036532823,
-0.0011238403,
0.039069034,
-0.018294908,
-0.025846547,
-0.038442105,
0.015815692,
0.0083851665,
-0.0068962118,
-0.006215852,
0.032742757,
-0.023452818,
-0.0013794204,
-0.007879349,
0.05320342,
0.007587258,
0.049014397,
0.013300855,
-0.0070280093,
0.036447335,
0.03043452,
0.03812864,
0.0166136,
0.008071702,
0.06713833,
0.01785321,
0.08440735,
0.0109285,
0.018252164,
0.05046773,
0.015117522,
0.0017017899,
0.027713083,
-0.002837207,
-0.0057385317,
0.012531443,
0.010116343,
-0.011733534,
0.009988109,
0.009617651,
0.019149812,
-0.03009256,
-0.0017917327,
-0.039325505,
0.07107088,
0.025305107,
0.01273092,
-0.031260926,
-0.042545635,
-0.023581054,
0.034367073,
-0.025917787,
-0.005524806,
0.0025647068,
0.014832554,
-0.01373543,
0.010999743,
0.09210147,
0.056110088,
0.010066475,
0.017383013,
-0.015701706,
-0.056822505,
-0.03627635,
-0.021458047,
-0.03921152,
-0.04100681,
-0.03254328,
-0.059957147,
0.032600272,
-0.05573963,
0.0046235966,
-0.0052825836,
-0.0384991,
0.025248114,
-0.039923936,
0.023894519,
0.023196349,
0.032315306,
-0.019862229,
0.018394647,
-0.02467818,
0.026316741,
-0.008819742,
-0.049213875,
-0.024792166,
-0.025447592,
0.059615187,
-0.0030028443,
0.005777715,
-0.052291524,
-0.054143813,
-0.021287067,
-0.023965761,
0.015373993,
-0.003978858,
0.05015427,
-0.010201834,
0.01242458,
-0.009339808,
-0.00529327,
0.013942031,
0.0035941517,
-0.055397667,
0.028938442,
-0.003300279,
-0.012894776,
-0.029665109,
0.040351387,
0.047789037,
-0.0022708343,
-0.015801445,
-0.017596738,
-0.029023932,
0.010956998,
-0.005809773,
-0.008164316,
0.0057741525,
0.055825118,
-0.0038470603,
-0.076713234,
0.013421966,
-0.05440028,
-0.049641326,
-0.0025611448,
0.022597916,
0.033626158,
0.011241965,
0.014419352,
-0.03510799,
0.0038470603,
-0.020987852,
0.018679615,
0.016684843,
-0.054029826,
0.029323148,
0.006946081,
0.018480137,
0.038100146,
0.024863409,
-0.04434093,
0.0021194452,
0.0077012447,
0.033540666,
0.037587203,
0.007971964,
0.0009087789,
0.025262363,
0.034338575,
-0.0050902306,
0.03431008,
-0.025305107,
0.023068113,
0.02949413,
0.02256942,
-0.0031435469,
-0.0041106553,
-0.021600531,
-0.0035549686,
0.028710468,
0.017511249,
0.059900153,
-0.0022886447,
0.04664917,
0.0063191527,
-0.017810464,
-0.03317021,
0.0054998714,
-0.036190864,
0.050496228,
0.0481025,
0.0323723,
-0.054742243,
-0.04821649,
0.040892825,
0.0067679766,
-0.0071562445,
0.03157439,
0.028639227,
-0.033711646,
-0.009147454,
-0.032771256,
0.016528111,
0.0094822915,
-0.033113215,
-0.013678436,
0.009866998,
-0.050952177,
0.0053395773,
0.01855138,
-0.015131771,
0.0067786626,
0.004979806,
0.054770738,
-0.028112037,
0.006173107,
0.020061707,
0.034424067,
-0.028981186,
-0.0064580743,
0.029665109,
-0.008841114,
0.013771051,
-0.047019627,
0.0067679766,
-0.0059665055,
-0.048871912,
-0.036190864,
0.0038506223,
-0.046136227,
0.011355952,
0.0051151654,
0.052263025,
-0.014547587,
-0.03542145,
-0.010921377,
0.009468043,
0.051864073,
-0.055796623,
0.008328173,
0.0000058440587,
-0.0027873376,
0.047931522,
-0.001111373,
-0.004580851,
-0.008776997,
-0.028909946,
-0.054542765,
0.031517398,
0.050496228,
-0.033369686,
0.0060804924,
-0.03473753,
0.000015695472,
0.0012876965,
-0.010501049,
-0.057164464,
0.011021115,
0.019050073,
0.030235045,
0.04539531,
-0.03664681,
-0.013115626,
0.03203034,
-0.054029826,
0.022982623,
-0.052092046,
0.02799805,
0.019221053,
-0.0013099597,
-0.029294651,
0.03980995,
-0.004210394,
-0.011526932,
0.0074447743,
0.012787913,
-0.038613085,
-0.02711465,
0.018009942,
-0.005756342,
0.02352406,
0.056224074,
-0.010999743,
-0.0033269946,
0.03630485,
0.00037424237,
-0.05545466,
0.012075495,
-0.007865101,
-0.007052944,
-0.081272714,
-0.055625644,
0.028154781,
-0.03052001,
0.0428591,
-0.010187586,
-0.064801596,
0.0057420935,
-0.029109422,
-0.030178051,
-0.01325811,
-0.032144327,
0.020090204,
-0.0022494616,
0.0031168312,
-0.0076513756,
-0.024093997,
-0.025746807,
0.0061161136,
-0.019805236,
0.0012048779,
0.025390597,
0.02299687,
0.039695963,
-0.032685764,
-0.038100146,
0.06993101,
-0.042830605,
0.020261183,
-0.049897797,
-0.023866022,
0.01960576,
-0.036247857,
0.0070743165,
-0.034566548,
-0.010116343,
-0.017810464,
-0.00088918745,
-0.0032789065,
0.03639034,
-0.028012298,
-0.014462097,
0.06491558,
-0.00009328231,
-0.01155543,
-0.033455174,
0.012467325,
-0.008997846,
-0.02607452,
-0.014113012,
-0.033141714,
-0.0027356874,
-0.029095175,
0.04043688,
-0.02825452,
-0.007159807,
-0.03961047,
-0.034110602,
-0.020018961,
0.05448577,
0.034851518,
-0.036190864,
0.016029418,
-0.008363794,
-0.020489158,
-0.048387468,
-0.010508174,
-0.010287324,
-0.028496742,
0.007291604,
0.054143813,
-0.01496079,
-0.011697913,
-0.0025504585,
-0.019876478,
0.042317662,
0.04060786,
0.000835756,
0.0044633024,
0.009817128,
0.04864394,
0.017781967,
0.008826866,
-0.036675308,
0.0109285,
0.006062682,
0.061552964,
-0.026316741,
-0.03174537,
-0.006992388,
-0.018494386,
0.05177858,
-0.027143147,
0.005816898,
-0.01810968,
0.0071241856,
-0.029152168,
0.0094822915,
0.021842754,
0.026402231,
-0.04707662,
-0.056053095,
0.041804723,
-0.019805236,
-0.0016706216,
-0.011519808,
-0.027242886,
0.0726097,
-0.036817793,
0.0060769306,
0.03918302,
0.019548766,
-0.03550694,
0.008691506,
0.018921837,
0.01159105,
-0.0069781397,
0.023980008,
-0.018950334,
-0.03815714,
0.005535492,
-0.03317021,
-0.023908768,
-0.022227459,
0.014618829,
0.038442105,
-0.027969552,
0.04909989,
-0.0070671923,
-0.016143404,
-0.05197806,
0.032486286,
-0.017497,
0.019278046,
0.009859873,
0.051294137,
0.0077582384,
0.01404177,
0.0075373882,
-0.047760542,
0.028938442,
0.053744856,
-0.0033287758,
-0.036247857,
0.06776525,
0.015701706,
-0.030292038,
-0.026387984,
0.011662292,
-0.010786017,
0.014034646,
-0.04226067,
0.033740144,
0.02231295,
-0.04787453,
0.018779354,
0.032343805,
0.0041213413,
0.01724053,
0.015402489,
0.0030544945,
-0.029437136,
-0.020888112,
0.017283274,
-0.046706162,
0.0033857692,
-0.001802419,
0.012453076,
-0.03633335,
-0.028382756,
0.04454041,
-0.0053146426,
0.023566807,
0.016314385,
0.006878401,
0.071184866,
-0.0065471265,
0.00059219793,
0.0032557528,
-0.047190607,
-0.051123157,
-0.022555172,
0.01574445,
0.010308697,
-0.003070524,
-0.0068178456,
0.0071562445,
0.016371379,
0.06599846,
-0.017368766,
-0.08161467,
0.03639034,
-0.035791907,
-0.030747985,
0.01783896,
-0.011918763,
-0.014170005,
0.02204223,
-0.026345238,
-0.06081205,
0.021116087,
0.02826877,
0.025219617,
0.007786735,
-0.047561064,
-0.05451427,
-0.042175177,
-0.020403668,
-0.03220132,
-0.03448106,
-0.0052362764,
0.059330218,
-0.0055069956,
0.025091382,
-0.010330069,
0.020674387,
-0.064858586,
0.038271125,
-0.017895954,
0.002188906,
-0.028525239,
0.007843728,
-0.030918965,
0.036162365,
0.0065115057,
0.0067679766,
0.007601506,
-0.04419845,
0.015203012,
-0.031716876,
-0.00253621,
0.046079233,
-0.01159105,
0.026729945,
-0.032286808,
0.013001638,
-0.05343139,
-0.044568907,
-0.018095432,
-0.023395825,
0.021044845,
-0.011990004,
0.015829941,
0.04556629,
-0.017454255,
0.04069335,
-0.0376157,
0.020902362,
0.00025691596,
0.02467818,
0.0122892205,
-0.0132652335,
0.0004205496,
-0.03525047,
0.033113215,
-0.027499357,
-0.045252826,
0.014248371,
0.033056222,
-0.02764184,
-0.0016358912,
0.02422223,
0.0037259492,
0.05004028,
0.044112958,
-0.014355234,
-0.017383013,
-0.040636357,
-0.034794524,
-0.021657525,
-0.069418065,
-0.01775347,
0.024920402,
-0.061894923,
0.005496309,
-0.030206548,
-0.006821408,
-0.011925886,
0.024393212,
0.027812822,
-0.01618615,
0.015288503,
0.0016367816,
0.010914252,
-0.02816903,
-0.027086154,
0.0030794293,
0.0040465374,
-0.039154526,
-0.046962634,
0.00719899,
0.074262515,
0.0017160382,
0.0024364714,
-0.02825452,
-0.009674644,
0.004516734,
0.04120629,
-0.031175436,
-0.0081001995,
-0.045537796,
0.0023848212,
0.005688662,
0.01470432,
0.028382756,
0.032685764,
0.016556608,
0.007865101,
-0.029038182,
0.022612166,
0.024037002,
-0.049584333,
0.034794524,
-0.0074447743,
0.06326277,
-0.015587718,
-0.01828066,
0.0008121572,
0.029109422,
0.011754907,
0.023281839,
0.020945106,
0.04149126,
-0.014027522,
0.01775347,
-0.058418322,
0.008741376,
0.017026804,
0.0058382703,
-0.017026804,
0.0028532364,
0.008541899,
-0.0402659,
0.01715504,
0.018964583,
-0.022113472,
0.02466393,
0.0013696247,
-0.054314792,
-0.00029966107,
-0.024293473,
-0.0107646445,
0.011099481,
-0.0053965705,
0.0638897,
0.011177847,
0.0035514066,
0.031004457,
0.034595046,
0.036105372,
0.018480137,
0.024621185,
-0.020688634,
0.04314407,
-0.035221975,
0.020403668,
0.024906153,
0.030719489,
0.02081687,
-0.050695706,
-0.013450462,
0.012103992,
-0.03630485,
-0.02413674,
-0.014861051,
-0.026003277,
0.005093793,
-0.048074003,
0.01863687,
-0.050182763,
0.019050073,
0.005756342,
-0.014618829,
-0.018594125,
0.0266872,
0.0015566346,
0.026387984,
0.03613387,
0.01521726,
-0.0029618803,
0.071241856,
0.026060272,
-0.0039183022,
0.04086433,
0.030178051,
-0.05588211,
-0.028040795,
-0.024378963,
0.006098303,
-0.010757521,
-0.013493207,
-0.022526676,
0.009574906,
0.005624545,
-0.016927065,
-0.054742243,
-0.000641622,
0.021814257,
-0.014412228,
-0.028069291,
0.09894069,
0.0026377297,
-0.015815692,
-0.0048408844,
-0.012253599,
-0.0077012447,
0.032771256,
-0.009133206,
-0.015530725,
-0.013991901,
-0.04043688,
-0.0048159496,
-0.030577006,
0.038983542,
0.028624978,
-0.031716876,
-0.041263282,
0.025305107,
0.018266411,
0.016513862,
0.015958175,
-0.02755635,
-0.021572035,
0.059957147,
0.028938442,
-0.019406281,
0.060071133,
0.07711218,
-0.0015441673,
0.03191635,
-0.020774126,
0.024820663,
-0.0103371935,
-0.023068113,
0.03217282,
0.0014150414,
-0.0143623585,
-0.015772946,
-0.027670337,
0.0017765939,
-0.0030936776,
-0.0043671257,
-0.020446412,
-0.033825632,
-0.052206032,
0.015516477,
-0.021458047,
0.004563041,
0.008028957,
-0.02869622,
0.031260926,
-0.042232174,
0.24074048,
0.0804748,
0.06047009,
0.021230074,
0.046706162,
0.021287067,
-0.022099225,
-0.025575826,
-0.009959612,
-0.016955562,
0.0022174027,
-0.003145328,
-0.050410736,
0.016285889,
-0.034794524,
-0.026031775,
-0.07540238,
-0.0018505072,
-0.019548766,
0.00883399,
-0.027584847,
0.020104451,
0.026402231,
0.03918302,
0.019677,
0.02423648,
-0.004256701,
-0.093412325,
-0.014020397,
-0.038727075,
0.0002580291,
-0.029608116,
0.041576747,
-0.007922094,
0.014234123,
0.029978573,
0.011099481,
0.017183537,
-0.013443339,
-0.043343544,
0.007530264,
-0.050638713,
0.01351458,
-0.015943928,
-0.031973347,
0.015929678,
0.008606017,
0.054371785,
0.016827326,
-0.0638327,
0.01417713,
-0.03009256,
0.028510991,
-0.016670594,
-0.030776482,
0.008071702,
-0.043827992,
-0.0047375835,
0.036960274,
0.024279226,
-0.021415303,
0.017981445,
-0.017340267,
0.03613387,
0.00922582,
0.027613344,
-0.01434811,
0.07386356,
-0.048529953,
-0.026701448,
-0.009282814,
0.015103274,
-0.020688634,
0.0014969695,
0.051066164,
0.016428372,
-0.018437393,
0.044255443,
-0.0066148066,
-0.011583926,
0.012196606,
0.0029405076,
0.039667465,
-0.030377528,
-0.0049050017,
0.025632821,
-0.03630485,
0.01259556,
0.021230074,
0.015872685,
0.025561579,
0.043058578,
-0.0092186965,
0.018850595,
-0.018907588
] |
XLA Rule #1: Your code cannot have “data-dependent conditionals”
What that means is that any if statement cannot depend on values inside a tf.Tensor. For example, this code block cannot be compiled with XLA!
python
if tf.reduce_sum(tensor) > 10:
tensor = tensor / 2.0
This might seem very restrictive at first, but most neural net code doesn’t need to do this. You can often get around this restriction by using tf.cond (see the documentation here) or by removing the conditional and finding a clever math trick with indicator variables instead, like so:
python
sum_over_10 = tf.cast(tf.reduce_sum(tensor) > 10, tf.float32)
tensor = tensor / (1.0 + sum_over_10)
This code has exactly the same effect as the code above, but by avoiding a conditional, we ensure it will compile with XLA without problems!
XLA Rule #2: Your code cannot have “data-dependent shapes”
What this means is that the shape of all of the tf.Tensor objects in your code cannot depend on their values. For example, the function tf.unique cannot be compiled with XLA, because it returns a tensor containing one instance of each unique value in the input. The shape of this output will obviously be different depending on how repetitive the input Tensor was, and so XLA refuses to handle it!
In general, most neural network code obeys rule #2 by default. However, there are a few common cases where it becomes a problem. One very common one is when you use label masking, setting your labels to a negative value to indicate that those positions should be ignored when computing the loss. If you look at NumPy or PyTorch loss functions that support label masking, you will often see code like this that uses boolean indexing:
python
label_mask = labels >= 0
masked_outputs = outputs[label_mask]
masked_labels = labels[label_mask]
loss = compute_loss(masked_outputs, masked_labels)
mean_loss = torch.mean(loss)
This code is totally fine in NumPy or PyTorch, but it breaks in XLA! Why? Because the shape of masked_outputs and masked_labels depends on how many positions are masked - that makes it a data-dependent shape. However, just like for rule #1, we can often rewrite this code to yield exactly the same output without any data-dependent shapes.
python
label_mask = tf.cast(labels >= 0, tf.float32)
loss = compute_loss(outputs, labels)
loss = loss * label_mask # Set negative label positions to 0
mean_loss = tf.reduce_sum(loss) / tf.reduce_sum(label_mask)
Here, we avoid data-dependent shapes by computing the loss for every position, but zeroing out the masked positions in both the numerator and denominator when we calculate the mean, which yields exactly the same result as the first block while maintaining XLA compatibility. Note that we use the same trick as in rule #1 - converting a tf.bool to tf.float32 and using it as an indicator variable. This is a really useful trick, so remember it if you need to convert your own code to XLA!
XLA Rule #3: XLA will need to recompile your model for every different input shape it sees
This is the big one. What this means is that if your input shapes are very variable, XLA will have to recompile your model over and over, which will create huge performance problems. This commonly arises in NLP models, where input texts have variable lengths after tokenization. In other modalities, static shapes are more common and this rule is much less of a problem.
How can you get around rule #3? The key is padding - if you pad all your inputs to the same length, and then use an attention_mask, you can get the same results as you’d get from variable shapes, but without any XLA issues. However, excessive padding can cause severe slowdown too - if you pad all your samples to the maximum length in the whole dataset, you might end up with batches consisting endless padding tokens, which will waste a lot of compute and memory!
There isn’t a perfect solution to this problem. However, you can try some tricks. One very useful trick is to pad batches of samples up to a multiple of a number like 32 or 64 tokens. This often only increases the number of tokens by a small amount, but it hugely reduces the number of unique input shapes, because every input shape now has to be a multiple of 32 or 64. Fewer unique input shapes means fewer XLA compilations! |
[
0.018285258,
-0.0084801195,
-0.023290884,
0.026750654,
-0.0015440148,
-0.027192326,
-0.037129965,
-0.0023463871,
0.0052706297,
0.047259,
-0.00200041,
-0.0039492915,
0.030858211,
-0.01866804,
-0.018903598,
-0.017740527,
-0.023923947,
-0.014589927,
-0.06666316,
-0.029017908,
-0.008237199,
0.029312355,
-0.043725614,
0.0029260828,
-0.019418884,
0.030504873,
0.022068921,
-0.002714448,
0.042106148,
0.028075673,
-0.003964014,
-0.0152524365,
0.005417854,
-0.023850335,
0.0053295195,
-0.031682666,
0.04060446,
-0.011682248,
-0.042930603,
-0.050262373,
0.0043799225,
-0.017504968,
0.0075967736,
-0.04060446,
-0.048937354,
-0.011424605,
0.01654801,
-0.034479927,
0.0002309581,
-0.031564888,
-0.024350898,
-0.019227492,
0.01405992,
0.007545245,
0.011321548,
-0.024983963,
-0.028767627,
-0.021715583,
-0.03418548,
-0.024218395,
0.022113089,
0.028016783,
-0.03586384,
-0.03515716,
0.003581231,
-0.013780193,
-0.010298339,
-0.014405897,
-0.031741556,
-0.015384939,
-0.06854763,
0.03259546,
-0.033684917,
-0.034686044,
-0.040015563,
-0.032330453,
0.019713333,
-0.0060877246,
0.0075967736,
0.046993993,
-0.0083917845,
0.043872837,
-0.025263688,
-0.0033695959,
-0.018285258,
-0.017652193,
0.02508702,
0.011439327,
-0.01387589,
-0.042223927,
-0.026279535,
0.02018445,
-0.01703385,
0.031358775,
0.025587581,
0.069725424,
-0.013743388,
0.038690545,
0.011417244,
0.0049945842,
0.0124036465,
0.063012,
-0.047052883,
0.019566108,
-0.05049793,
0.0076703858,
0.019595552,
-0.02685371,
-0.020950017,
-0.019477773,
0.032389343,
-0.019477773,
0.022319203,
-0.033537693,
-0.039220553,
0.014008392,
0.03777775,
-0.0054657017,
-0.024983963,
0.018829986,
-0.0158855,
-0.0061502946,
0.021376967,
-0.04731789,
-0.005156531,
-0.044196732,
-0.0048952075,
0.006400576,
-0.054031316,
0.0018955128,
-0.0028138242,
0.007478994,
-0.0043467972,
0.03654107,
0.004987223,
0.019772222,
0.018697485,
0.022201423,
0.013198658,
0.004582356,
-0.013728665,
-0.027427886,
-0.018933045,
0.07496661,
0.009893472,
0.05812415,
-0.015782444,
0.01927166,
-0.041075576,
0.012263783,
0.0037873448,
0.034450483,
0.015517441,
0.0049688197,
-0.04466785,
0.0048878463,
0.003308866,
-0.014722429,
0.0004715778,
0.024748404,
0.010659039,
-0.00031975275,
-0.04031001,
0.03710052,
-0.02708927,
0.042636156,
-0.018167477,
-0.009768331,
-0.03224212,
-0.039809447,
0.005594523,
-0.017711082,
0.0012707297,
0.037218302,
0.022598928,
-0.008855541,
0.036482178,
0.027295383,
0.043813948,
-0.009164712,
-0.006558842,
-0.048466235,
-0.024233118,
0.03350825,
-0.0152524365,
0.029960142,
-0.016400786,
0.028105117,
-0.007788165,
-0.028620401,
0.024586456,
0.049084578,
-0.031240994,
0.010732651,
0.008907069,
0.008075252,
-0.04605176,
0.012712818,
-0.0033143868,
-0.027000936,
-0.03986834,
0.014273395,
-0.0046081203,
0.005358964,
-0.026824266,
0.06630982,
0.008899708,
0.041281693,
-0.04552175,
0.002478889,
0.0061245305,
0.029106243,
-0.020449454,
0.003224212,
0.05338353,
-0.035893284,
-0.00006630844,
0.01866804,
-0.007780804,
0.0018301819,
-0.014133532,
0.024954516,
0.027707612,
-0.0061134887,
-0.023202548,
-0.019301105,
-0.006076683,
0.03109377,
0.008921792,
0.027251216,
0.013286992,
0.0075158,
0.0024420829,
0.059743617,
0.026161756,
0.034097146,
0.07090322,
0.025911475,
0.0045197858,
0.015797166,
0.0065956484,
0.0117558595,
0.057741366,
0.030077923,
0.026971491,
-0.0021678777,
0.019551385,
-0.02951847,
0.03200656,
-0.004637565,
-0.072022125,
0.06177531,
-0.006006751,
0.032212675,
-0.016680513,
-0.024704237,
0.017446078,
0.054031316,
-0.030136812,
-0.032831017,
-0.0010406917,
0.02284921,
0.025131186,
0.027737057,
0.02187753,
0.043195605,
-0.008406507,
0.011881,
-0.03854332,
-0.017873028,
-0.06371868,
-0.04192948,
-0.07973668,
0.019242214,
-0.01582661,
0.009672636,
-0.017343022,
-0.03539272,
0.0013590642,
-0.01703385,
-0.028826516,
-0.022878654,
-0.02994542,
0.042282816,
-0.027795946,
-0.007677747,
-0.043372277,
0.036482178,
0.0021862807,
0.039750557,
-0.03144711,
-0.015134657,
-0.042135593,
-0.033537693,
0.0087377615,
-0.0042032534,
-0.011571829,
-0.017711082,
-0.042076703,
-0.024159506,
-0.01612106,
-0.0658387,
0.0118000265,
0.013441578,
-0.04072224,
0.048996244,
0.02957736,
-0.0021476343,
0.045345083,
0.051970176,
-0.038513873,
0.06218754,
0.013920057,
0.028811794,
-0.007920667,
0.047965676,
0.024336176,
0.0048399987,
-0.033243246,
-0.002655558,
-0.021185575,
-0.022716708,
-0.024777848,
-0.030534318,
0.0035168203,
0.02072918,
0.004714858,
-0.07049099,
0.023290884,
-0.019831112,
-0.06289422,
-0.018697485,
-0.027118715,
0.027310107,
0.02036112,
0.017902473,
-0.06195198,
0.035687167,
0.0072581577,
0.04139947,
0.030269314,
-0.023173103,
0.007383298,
0.054767437,
-0.015429106,
0.005502508,
0.026647598,
-0.038160536,
0.005822721,
-0.042518374,
-0.002103467,
0.03436215,
0.017475523,
0.04042779,
0.023526441,
0.029724585,
-0.054679103,
-0.011925167,
0.017976087,
0.052264623,
-0.013618247,
0.010445563,
0.0036824476,
0.010298339,
0.008988043,
-0.03430326,
-0.0024107979,
-0.0018403037,
0.042400595,
-0.07160989,
0.028193451,
-0.010452924,
-0.022996435,
-0.010025974,
-0.015944391,
-0.03842554,
0.06919542,
0.014965349,
0.06030307,
-0.02018445,
-0.000830437,
-0.00019932789,
-0.004460896,
0.00013802278,
0.00878929,
0.02909152,
0.005473063,
0.007328089,
-0.00059993897,
-0.021906974,
0.028649848,
-0.023511719,
0.012756985,
-0.017195797,
-0.037659973,
-0.05550356,
0.02387978,
0.02181864,
0.025808418,
0.011174324,
0.015024239,
-0.015753,
0.05182295,
0.03583439,
-0.014943265,
0.01364033,
-0.027192326,
0.051145718,
-0.020655569,
-0.004273185,
-0.012293228,
0.012992544,
-0.016194671,
0.003509459,
-0.02199531,
0.022922821,
-0.05635746,
-0.007913305,
-0.005156531,
0.014376452,
-0.026235368,
-0.014538399,
-0.028590957,
0.0068054427,
0.027295383,
-0.040633906,
0.03786609,
-0.05279463,
0.012690734,
0.012160727,
-0.08380007,
-0.003295984,
0.016091615,
-0.031358775,
-0.0441084,
0.010857792,
0.021641972,
-0.03327269,
0.024453955,
-0.038101647,
-0.009348743,
0.0035591472,
0.02012556,
-0.036011063,
-0.013036711,
0.028149284,
0.041752808,
0.01115224,
-0.034097146,
-0.041605584,
0.008877625,
-0.041664474,
0.00963583,
-0.038926102,
0.028517345,
0.0074973973,
0.020950017,
-0.0026353148,
0.031506,
0.017681638,
-0.035422165,
0.007655663,
0.055739116,
-0.020007782,
-0.062069762,
0.045816198,
0.0074274656,
0.011336271,
0.04817179,
-0.02642676,
-0.030652096,
0.015053684,
0.009937639,
-0.011034461,
-0.0038020674,
-0.009724164,
-0.004129641,
-0.02175975,
-0.031005437,
0.016444953,
-0.015237714,
0.026691765,
-0.032831017,
-0.019919446,
-0.035952173,
-0.04987959,
0.010136393,
0.021671416,
-0.033243246,
-0.00083411764,
0.001799817,
-0.0049725003,
0.029268188,
-0.029636249,
-0.0357755,
-0.050291818,
-0.030946545,
-0.016562732,
0.0047406224,
-0.021774473,
0.052588515,
-0.03751275,
-0.04084002,
0.046611212,
-0.02466007,
-0.0074385074,
-0.016135782,
0.018874153,
0.011674887,
0.0068569714,
-0.021435857,
0.025425635,
-0.021465302,
-0.001260608,
0.04490341,
0.030681543,
0.0009864027,
-0.031005437,
-0.02794317,
0.032448232,
-0.010806263,
-0.033949923,
-0.020155005,
0.026441483,
0.0056092455,
-0.0052227816,
0.039750557,
-0.017652193,
-0.020434732,
-0.034421038,
0.027045103,
-0.036393844,
-0.0043799225,
-0.029974865,
-0.025543414,
0.033537693,
0.029415414,
0.027781224,
-0.022937544,
-0.02714816,
-0.032948796,
-0.004291588,
-0.042076703,
-0.028002061,
-0.032801572,
0.017902473,
-0.027678167,
0.016813014,
-0.0019065546,
0.006717108,
-0.024012282,
0.013544635,
0.034862712,
0.027972614,
-0.025720084,
0.004357839,
-0.031506,
0.017961364,
0.016651068,
-0.0000113796905,
-0.037483305,
0.032448232,
-0.045021188,
-0.033125464,
0.006963709,
-0.026264813,
-0.014523677,
-0.010040697,
0.059684727,
-0.020316953,
-0.041281693,
-0.030740432,
0.07278769,
0.020464176,
-0.010703206,
-0.04316616,
-0.03230101,
-0.04593398,
-0.024630625,
0.0028745544,
-0.025528692,
-0.008082613,
0.036688294,
0.020346398,
0.051204607,
-0.055798005,
0.06466091,
0.056328014,
0.025116464,
0.0062018232,
-0.044932853,
0.020066671,
0.012352118,
0.000080743324,
-0.01952194,
-0.03783664,
-0.00029674897,
-0.010003891,
-0.049673475,
-0.023570608,
-0.02236337,
-0.020169728,
0.057270247,
-0.04310727,
0.026838988,
-0.0049688197,
-0.014715068,
-0.055002995,
0.02315838,
0.0008037526,
-0.010541259,
0.030298758,
0.012631844,
0.019536663,
0.005473063,
-0.048142344,
-0.044078954,
-0.03963278,
0.038072202,
0.032153785,
-0.047141217,
0.0386611,
0.03424437,
-0.005605565,
-0.020979462,
0.052882966,
-0.027501497,
-0.040898908,
-0.028414289,
0.015384939,
-0.003097231,
0.0074753133,
-0.028164007,
0.020626124,
-0.0099450005,
0.013493107,
0.023099491,
-0.0025727444,
-0.025499247,
0.038219426,
0.051970176,
-0.043195605,
0.0018274215,
-0.042165037,
-0.0018016573,
-0.017534412,
0.027899003,
0.04431451,
0.012617121,
-0.023968115,
0.035009935,
0.008745123,
0.03371436,
0.01557633,
0.003654843,
0.033125464,
-0.01109335,
-0.050880715,
0.020213895,
0.029724585,
0.021494746,
0.0076041347,
-0.020626124,
0.016901348,
0.042547822,
0.014457425,
0.015664665,
-0.0357755,
-0.020685013,
-0.053942982,
0.027545664,
-0.010710567,
-0.021288633,
-0.025499247,
0.008053169,
-0.024439232,
-0.010445563,
0.018844709,
0.05429632,
-0.035422165,
-0.026264813,
-0.02539619,
0.0046081203,
-0.027045103,
-0.03259546,
-0.0056350096,
0.0036088354,
-0.013286992,
0.025778973,
-0.0244834,
0.011314187,
0.012131281,
0.0143470075,
0.01715163,
0.03259546,
-0.043872837,
-0.0090911,
0.008781929,
0.04225337,
-0.03715941,
0.026014533,
0.014582566,
-0.02708927,
0.0066803023,
0.017843584,
0.008642066,
-0.027899003,
0.005738067,
0.050321262,
-0.010165838,
0.03115266,
-0.012109198,
-0.011483495,
-0.01933055,
-0.03618773,
-0.009363465,
-0.010099586,
0.002999695,
0.00842859,
-0.012904209,
0.05950806,
0.07390659,
0.037718862,
-0.023923947,
0.022952268,
0.0016774368,
-0.030328205,
0.0332138,
0.010916681,
-0.018579705,
-0.035186607,
0.024159506,
0.05005626,
-0.041782252,
-0.019109713,
-0.021421134,
-0.040692795,
-0.036864962,
-0.0014115128,
0.037129965,
0.07802887,
0.019006656,
-0.014796041,
0.006558842,
0.033743806,
-0.001866988,
0.011571829,
-0.07025543,
-0.031682666,
-0.008075252,
-0.015237714,
0.020758625,
0.0118000265,
-0.0075158,
-0.045875087,
0.046581767,
0.044402845,
-0.0051712533,
0.057417475,
-0.007655663,
-0.0012615281,
-0.042194482,
-0.009046933,
0.007225032,
0.013802277,
-0.035245497,
-0.07237546,
0.037659973,
0.03545161,
-0.015841333,
-0.030887656,
-0.07007876,
0.024453955,
-0.014722429,
-0.0066398154,
-0.01436173,
0.028002061,
-0.04169392,
0.028826516,
0.008509564,
-0.017019128,
-0.012882126,
0.03132933,
0.027074547,
0.015193547,
-0.02878235,
0.0071293362,
0.02382089,
-0.013691859,
0.019242214,
-0.0078102485,
0.021906974,
0.010092225,
-0.0016571934,
-0.0035738696,
0.029665696,
0.053589642,
0.022584205,
-0.05538578,
0.040074453,
0.057181913,
0.032772128,
0.015620497,
0.05835971,
0.024718959,
-0.009414993,
0.007869138,
-0.02872346,
-0.018977212,
-0.019669166,
0.0058337627,
0.034862712,
-0.00090634957,
-0.030887656,
0.009216241,
-0.033066574,
0.012617121,
-0.016754124,
-0.04425562,
-0.028237619,
-0.010195282,
0.008877625,
-0.005653413,
0.03185934,
-0.00033125465,
0.055680227,
0.035893284,
0.041605584,
0.017990809,
0.0041259606,
0.04558064,
-0.015811889,
-0.036040507,
-0.013603524,
-0.0014556802,
-0.019433606,
-0.01321338,
-0.022348648,
0.059066385,
0.023938669,
-0.03739497,
0.040692795,
-0.033419915,
-0.014339646,
-0.07066766,
-0.015119934,
-0.043136716,
0.028281786,
0.041222803,
-0.033184357,
-0.034774378,
0.048584018,
-0.004490341,
0.03704163,
0.04510952,
0.06224643,
0.003993459,
0.08751012,
0.0069416254,
0.016886625,
-0.0041958923,
0.045138966,
-0.011174324,
0.0065109944,
-0.0060877246,
0.032742683,
-0.03618773,
-0.010754734,
-0.0346566,
0.02563175,
0.022466427,
-0.00999653,
-0.023923947,
-0.03297824,
-0.0043431167,
-0.030652096,
-0.010320423,
0.045668975,
-0.008038446,
0.013780193,
-0.008892347,
0.03453882,
-0.007824971,
0.009194157,
-0.02012556,
0.05824193,
0.006382173,
-0.041752808,
0.023099491,
-0.044932853,
-0.009164712,
0.024041727,
-0.004630204,
-0.04793623,
0.02654454,
0.037277192,
0.060950857,
-0.0026389954,
-0.04552175,
-0.017284133,
0.047023438,
0.016886625,
0.020670291,
0.08238671,
0.026706487,
-0.0042290175,
0.0047737476,
-0.032212675,
0.04466785,
0.010673761,
0.010143754,
0.025734806,
0.00012893627,
-0.0070925304,
-0.033891033,
-0.0034800142,
0.09858139,
0.025778973,
-0.008259282,
-0.05703469,
0.043813948,
-0.053295195,
0.016754124,
-0.019109713,
0.0681354,
-0.007364895,
-0.035598833,
0.012322674,
-0.049143467,
0.26029256,
0.04805401,
0.071433224,
0.07526106,
-0.0059000133,
0.053471863,
0.014082003,
-0.024895627,
-0.0007931709,
0.018373592,
0.0047479835,
-0.06195198,
-0.02418895,
0.017549135,
0.012786429,
0.033626027,
-0.01612106,
-0.012896848,
-0.026043978,
-0.056033567,
-0.05623968,
0.0086935945,
-0.004405687,
0.000047042762,
-0.028296508,
0.012411008,
-0.008053169,
0.0008529807,
0.026470928,
-0.03453882,
0.01199878,
-0.040133342,
0.042341705,
-0.05005626,
-0.006783359,
0.027972614,
0.0104602855,
-0.071256556,
-0.0034652918,
-0.007824971,
0.00044213294,
-0.018417759,
0.040221676,
-0.024748404,
-0.04449118,
0.028649848,
-0.032418787,
-0.011917806,
0.030210424,
-0.06907764,
0.024763126,
-0.03315491,
0.0033843184,
-0.01291157,
-0.042930603,
-0.02236337,
-0.006128211,
-0.011358354,
-0.054708548,
0.048142344,
0.010040697,
0.007979557,
0.050262373,
0.033920478,
-0.04717066,
0.038572766,
0.015561608,
0.01012167,
0.021244464,
-0.013551996,
0.004332075,
0.019963615,
0.010820986,
-0.0641309,
0.012683373,
0.006522036,
0.014854931,
0.03436215,
0.046611212,
-0.03200656,
-0.01181475,
0.021244464,
-0.036570515,
-0.00068689336,
0.004416729,
0.051734615,
-0.026132312,
-0.031476554,
-0.032477677,
0.027678167,
0.017666915,
0.025896752,
-0.03515716,
-0.009886111,
0.021715583
] |
| Task | Description | Modality | Pipeline identifier |
|------------------------------|--------------------------------------------------------------------------------------------------------------|-----------------|-----------------------------------------------|
| Text classification | assign a label to a given sequence of text | NLP | pipeline(task=“sentiment-analysis”) |
| Text generation | generate text given a prompt | NLP | pipeline(task=“text-generation”) |
| Summarization | generate a summary of a sequence of text or document | NLP | pipeline(task=“summarization”) |
| Image classification | assign a label to an image | Computer vision | pipeline(task=“image-classification”) |
| Image segmentation | assign a label to each individual pixel of an image (supports semantic, panoptic, and instance segmentation) | Computer vision | pipeline(task=“image-segmentation”) |
| Object detection | predict the bounding boxes and classes of objects in an image | Computer vision | pipeline(task=“object-detection”) |
| Audio classification | assign a label to some audio data | Audio | pipeline(task=“audio-classification”) |
| Automatic speech recognition | transcribe speech into text | Audio | pipeline(task=“automatic-speech-recognition”) |
| Visual question answering | answer a question about the image, given an image and a question | Multimodal | pipeline(task=“vqa”) |
| Document question answering | answer a question about the document, given a document and a question | Multimodal | pipeline(task="document-question-answering") |
| Image captioning | generate a caption for a given image | Multimodal | pipeline(task="image-to-text") |
Start by creating an instance of [pipeline] and specifying a task you want to use it for. In this guide, you'll use the [pipeline] for sentiment analysis as an example: |
[
0.019358639,
0.010816348,
-0.015043762,
0.0044715833,
-0.0069679436,
-0.019358639,
0.028586062,
0.0031322949,
-0.005535725,
0.031312015,
-0.028965073,
-0.0426823,
0.009591856,
-0.025656028,
-0.019154556,
-0.022390716,
-0.0030557641,
-0.020349894,
-0.040728945,
0.000684677,
-0.01209915,
0.020670595,
-0.07078731,
-0.011457749,
-0.03352776,
0.023819288,
0.021443192,
-0.016486913,
0.06594765,
0.052390773,
-0.011946088,
0.007397974,
0.012915477,
-0.008775528,
-0.027478188,
-0.053935967,
-0.004628289,
-0.027449034,
-0.056618188,
-0.056414105,
0.014562711,
-0.00046328444,
-0.0036115232,
-0.028381981,
-0.039533608,
0.0010450094,
-0.015889244,
-0.048833914,
-0.009489815,
-0.05166191,
-0.036472376,
0.018396538,
0.03720124,
0.015903821,
-0.015816357,
-0.032390736,
-0.019271174,
0.02241987,
-0.054810602,
-0.0117055625,
0.028484022,
0.039766844,
-0.03833827,
-0.0146793295,
0.005838204,
0.0029099912,
-0.02198255,
-0.0014495291,
-0.015408194,
-0.023513166,
-0.08466489,
0.03553943,
-0.019067094,
-0.050145872,
-0.041224573,
0.0006578001,
0.006723774,
-0.0038338269,
-0.021311995,
0.043090463,
-0.013148714,
0.034344092,
0.00033345548,
0.07131209,
-0.028075857,
-0.02967936,
0.049854327,
-0.03860066,
-0.024154566,
-0.047230415,
-0.01586009,
0.0248397,
-0.008943167,
0.016997118,
0.03962107,
0.045656066,
-0.009344041,
-0.005502926,
-0.021997128,
-0.01446067,
0.021865932,
0.07416924,
-0.035043802,
0.04623916,
-0.02311958,
0.032915518,
0.05670565,
-0.007252201,
-0.017172046,
-0.011457749,
-0.011231801,
-0.011712851,
0.041253727,
-0.009176403,
-0.049912635,
0.034373246,
0.037376165,
0.02870268,
-0.044548195,
-0.04629747,
-0.012033552,
0.0033564207,
0.017857179,
-0.055918477,
0.018994207,
-0.06793016,
0.010801771,
0.03326537,
-0.030437378,
-0.004879747,
0.016822191,
0.014001485,
0.04084556,
0.04536452,
-0.00077031855,
-0.01628283,
0.009861535,
-0.0015133048,
0.04256568,
-0.024314918,
-0.017332396,
-0.021326574,
-0.00572523,
0.07650161,
-0.01247087,
0.020364473,
0.03122455,
-0.06414007,
-0.037405323,
0.02193882,
-0.046530705,
0.03918375,
0.0011643609,
0.020626863,
-0.031924263,
0.002953723,
0.021851355,
0.0041581714,
-0.011690985,
0.00060951285,
-0.0034347735,
-0.018863011,
-0.04714295,
0.07212842,
-0.009256578,
0.028032126,
-0.021924242,
-0.028367404,
0.008535002,
-0.039067134,
-0.0074089067,
0.009985442,
0.0058746473,
0.015131225,
0.026734747,
-0.009424217,
0.050349955,
-0.020408204,
0.015991285,
-0.02032074,
-0.008294477,
-0.02736157,
-0.009395062,
0.036705613,
-0.020568553,
-0.005083829,
0.022405293,
-0.015102071,
-0.035597738,
0.016588954,
0.019285752,
0.041312035,
-0.014256588,
0.00400511,
-0.021530654,
0.003349132,
-0.01628283,
0.021632696,
0.016516067,
-0.011946088,
-0.037405323,
0.04682225,
-0.038513195,
0.02623912,
-0.03058315,
0.024183722,
0.010021886,
0.023236198,
-0.029795978,
-0.028877608,
0.022026282,
0.054169204,
-0.02123911,
0.004263857,
0.038192496,
-0.032332424,
-0.0172012,
0.030058369,
0.00080402853,
-0.026559819,
0.004923479,
0.016574377,
0.023586053,
0.012128304,
0.028163321,
-0.0150291845,
-0.041545272,
0.052215848,
0.017055428,
0.005306133,
0.02736157,
0.0019406015,
-0.0036825875,
0.0426823,
0.023746403,
0.06571442,
0.053935967,
0.04638493,
-0.009817803,
0.0015597699,
0.00010642559,
0.03909629,
0.05839662,
0.03586013,
-0.059417028,
-0.012602066,
-0.00007692936,
-0.015510235,
-0.028484022,
0.09580194,
-0.050145872,
0.0049599223,
0.025758069,
0.011552501,
-0.0407581,
-0.027565653,
-0.022828033,
0.036268294,
0.006370275,
0.008199724,
0.03516042,
0.040962182,
0.014883411,
-0.0025965795,
0.028177898,
0.040233314,
-0.002172016,
0.03612252,
-0.03994177,
-0.07527712,
-0.02220121,
-0.08122465,
-0.070029296,
0.011982531,
-0.009518969,
0.00044210182,
-0.0117347175,
-0.07381939,
-0.007084562,
-0.013112271,
-0.02596215,
-0.036909696,
0.0012591133,
0.02128284,
0.007864447,
0.026778478,
-0.03795926,
0.013804692,
-0.0297814,
0.033673536,
0.010043751,
-0.011319265,
0.004573624,
-0.02768227,
0.019737648,
0.0014103526,
0.02106418,
-0.01908167,
-0.07696808,
0.024562731,
-0.010182236,
-0.017099159,
0.014314897,
0.041253727,
-0.03924206,
0.012718684,
0.0043039443,
-0.0122084785,
0.0019843334,
0.04472312,
-0.031691026,
0.022274097,
0.0105904,
0.015102071,
-0.024591886,
0.017536478,
0.03352776,
0.020349894,
-0.031253707,
-0.009446083,
-0.051399518,
0.0026166232,
-0.039475296,
-0.029344082,
-0.0009279355,
0.043090463,
-0.0007110984,
-0.07078731,
-0.022099169,
-0.030991316,
-0.036035057,
-0.016443182,
-0.027886353,
0.047172107,
0.06198263,
-0.012623931,
-0.038950514,
0.017026274,
0.013564167,
0.040933024,
0.023294507,
-0.007682231,
-0.0012837125,
0.053498648,
-0.008024797,
-0.015335307,
0.003698987,
-0.028556908,
-0.032332424,
-0.0026749324,
0.018717239,
0.0051202727,
0.015233266,
0.01962103,
0.0065306253,
0.04032078,
-0.029533586,
0.017070005,
0.031749334,
0.0043986966,
0.00007254479,
0.034256626,
-0.010772616,
0.012507313,
0.015422771,
-0.021530654,
-0.014599155,
0.0044970936,
0.033207063,
-0.0637319,
0.035830975,
-0.000018136197,
-0.01301023,
0.039329525,
-0.0004582735,
-0.055452004,
0.08099142,
0.015087494,
0.05580186,
-0.033090446,
-0.012179324,
-0.013906733,
0.0538485,
0.011188068,
0.04338201,
0.030553997,
-0.012427138,
0.012084572,
-0.018702662,
-0.029766822,
0.022449024,
0.008943167,
0.0042492794,
-0.0026913318,
-0.032536507,
-0.03892136,
-0.0055503026,
0.01155979,
0.043032154,
0.007653076,
0.052653164,
-0.003881203,
-0.008826548,
0.005521148,
0.012434427,
0.0048906803,
-0.021297418,
0.029358659,
0.023833867,
-0.0321575,
-0.023294507,
-0.0014549956,
-0.0011944266,
0.02510209,
-0.047376186,
0.0057179416,
-0.006709197,
0.011188068,
-0.007893601,
0.0010659642,
-0.020991296,
-0.049125463,
-0.05897971,
0.009344041,
0.0423616,
-0.0150146065,
0.024329495,
-0.029664781,
-0.00014975887,
0.023790134,
-0.012354252,
-0.03256566,
0.004555403,
-0.028017549,
-0.059417028,
0.03122455,
0.039533608,
-0.0031650937,
0.03075808,
-0.05332372,
0.0031523386,
0.01370994,
-0.0011014964,
-0.025335327,
0.01833823,
-0.014154547,
-0.0061261053,
0.032390736,
-0.011807604,
-0.021414036,
0.036093365,
-0.049650244,
-0.008046663,
-0.054373287,
0.0044898046,
0.0118877785,
0.021778468,
-0.032653127,
0.021137068,
0.035335347,
-0.039970923,
-0.009475238,
0.03804672,
-0.02392133,
-0.0891547,
-0.0010094772,
0.032886364,
-0.010838214,
0.032274116,
-0.030903852,
-0.019533567,
0.028017549,
0.011377574,
0.002815239,
0.025233286,
-0.04064148,
0.004719397,
-0.034344092,
-0.024504421,
0.02536448,
-0.01962103,
0.038425732,
-0.020262431,
-0.027769735,
-0.019431526,
-0.066647366,
0.020787213,
-0.007343309,
-0.03816334,
0.013928599,
-0.0007110984,
0.0010878302,
-0.022113746,
-0.031195397,
0.017551055,
-0.024256608,
-0.003381931,
-0.01483968,
0.057463672,
0.005156716,
0.06571442,
-0.06320712,
-0.009591856,
0.022346983,
-0.006246368,
-0.0007534636,
-0.02166185,
0.0010996741,
0.013432971,
0.008695353,
0.019285752,
0.029052535,
-0.012069995,
-0.00008558462,
0.012572912,
-0.04431496,
-0.031632714,
-0.011967953,
-0.02037905,
0.052798938,
-0.043003,
-0.04606423,
-0.02983971,
0.024183722,
-0.010408184,
0.013629764,
0.046909712,
-0.041749354,
-0.016734727,
-0.018586043,
0.028833875,
-0.031166242,
-0.0016271898,
-0.040087543,
-0.020218698,
-0.009970865,
0.022521911,
0.01145046,
-0.021370305,
-0.006869547,
-0.038513195,
-0.044898048,
-0.030816387,
-0.00881926,
-0.008163282,
0.025043782,
-0.045510296,
0.0072266906,
-0.00962101,
0.0040342645,
-0.021093337,
-0.01548108,
0.04387764,
0.07632668,
-0.046676476,
0.0050765406,
-0.0026731102,
-0.027944662,
0.035889283,
0.022594796,
-0.028352825,
0.039854307,
-0.032332424,
0.01774056,
-0.055656087,
-0.04058317,
-0.017973797,
0.016924232,
0.057172123,
0.013527724,
-0.018950475,
-0.021137068,
0.03230327,
-0.014198279,
0.02080179,
-0.05440244,
0.0038338269,
-0.017507324,
-0.019591875,
0.006836748,
-0.025699759,
0.021137068,
0.02215748,
0.040029235,
0.09953372,
-0.033761,
0.027536498,
0.044489883,
-0.0036115232,
0.01387029,
-0.049796015,
0.02779889,
0.002397964,
-0.010437339,
-0.039212905,
-0.011756583,
-0.008855702,
0.013454837,
-0.007886313,
-0.030466532,
-0.0032033592,
0.0053462205,
0.0649564,
-0.026224542,
0.025874687,
-0.00059903547,
-0.011807604,
-0.051049665,
0.009781361,
0.028367404,
0.025422791,
0.01972307,
-0.0018713594,
0.011807604,
0.017798869,
-0.006687331,
-0.010634132,
-0.04542283,
0.066414125,
-0.0034584617,
-0.013396528,
-0.007857159,
0.036968004,
-0.020772636,
-0.021516077,
0.039067134,
0.026107924,
-0.04317793,
-0.019518988,
0.0030976739,
-0.019314907,
-0.031953417,
0.009562701,
0.024096258,
-0.041924283,
0.009978154,
0.010233256,
-0.00055393693,
-0.036093365,
0.021676429,
0.0420409,
-0.023207042,
0.0024453402,
-0.044169184,
0.038950514,
-0.01967934,
-0.02472308,
0.057726063,
0.0028717257,
-0.0018859367,
0.04431496,
-0.02188051,
0.07562697,
-0.023032116,
-0.014905278,
0.019927153,
-0.020000039,
-0.05300302,
-0.0028808366,
0.020932985,
0.000087065135,
0.016268253,
-0.027288685,
0.024256608,
0.025014626,
0.031574406,
0.0122084785,
-0.07731794,
0.038717277,
-0.016822191,
-0.029562742,
0.014657463,
-0.020277008,
-0.039067134,
0.013702651,
-0.003677121,
-0.0042602126,
0.011086028,
0.049417008,
-0.03950445,
-0.01247087,
-0.04230329,
0.02714291,
-0.017128313,
-0.031691026,
-0.041924283,
-0.008425673,
0.035947595,
0.024781391,
-0.021399459,
-0.009599145,
0.009045207,
-0.002193882,
0.02413999,
0.030058369,
-0.025874687,
-0.018192455,
0.036151674,
-0.004795928,
-0.032886364,
0.04542283,
0.008265322,
-0.04084556,
-0.0150291845,
0.024810545,
0.029300349,
0.0009220135,
0.0019715782,
0.060349975,
-0.034110855,
0.07014591,
-0.0258018,
0.008068529,
-0.034868874,
-0.015947554,
0.0066363104,
0.005298844,
0.0045226035,
0.013746383,
0.018440269,
0.049154617,
0.0030830966,
0.004639222,
-0.0023742758,
0.051253747,
-0.0054737716,
-0.009227424,
0.017973797,
-0.024985472,
0.039037976,
-0.029548163,
-0.0012919122,
0.043032154,
-0.020874677,
-0.0012099149,
0.03026245,
-0.02408168,
-0.034489863,
0.0036643657,
-0.043848485,
0.0509622,
0.020364473,
-0.068979725,
0.016457759,
-0.016516067,
-0.005929312,
0.012616643,
-0.048192516,
-0.03306129,
0.0055685244,
0.012871746,
0.010021886,
-0.024446113,
-0.016195368,
-0.01586009,
0.026151655,
0.04326539,
0.02198255,
0.008483982,
-0.02268226,
-0.0074489946,
-0.014271165,
-0.03930037,
0.015145803,
0.027113756,
-0.014154547,
-0.030116677,
0.037551094,
0.026384892,
-0.024096258,
-0.010313432,
-0.047376186,
0.0055503026,
0.007142871,
0.0060349973,
-0.016851345,
0.014307609,
-0.032886364,
0.012944632,
-0.0150000295,
-0.0027350637,
0.001504194,
0.04758027,
0.0055721686,
0.005306133,
-0.006231791,
-0.001176205,
0.03032076,
-0.0089213,
0.0044424287,
-0.0011506947,
0.0284986,
-0.037580248,
-0.013629764,
-0.019970885,
0.06647243,
0.034898028,
0.033148754,
-0.012733261,
0.021253686,
0.022696838,
-0.013877578,
-0.031807642,
0.028892186,
0.009832381,
0.013819269,
0.002319611,
-0.024431536,
-0.029723091,
0.0135204345,
0.015408194,
0.058250844,
-0.017959218,
-0.010000019,
0.024606463,
-0.029825132,
-0.021370305,
0.001584369,
-0.040699787,
0.0071319384,
-0.021122491,
0.045510296,
0.0050072987,
0.022463601,
-0.01833823,
0.039591916,
0.03355692,
0.014307609,
0.027915508,
0.0070663407,
0.04909631,
-0.019810535,
0.014285742,
-0.025014626,
-0.016793037,
-0.013258044,
-0.00731051,
-0.05046657,
0.07230335,
0.013841135,
-0.024431536,
0.030087523,
-0.034927182,
0.003234336,
-0.065597795,
0.027055448,
-0.039766844,
-0.0062937443,
0.018017529,
-0.03638491,
-0.056210022,
0.007988354,
0.0042711454,
0.041836817,
0.039591916,
0.06128292,
0.010619555,
0.033411145,
0.026574397,
0.02467935,
0.034256626,
0.023556897,
-0.03294467,
-0.037813485,
0.0130466735,
0.014737639,
-0.0074271285,
-0.038833898,
-0.04177851,
0.011588944,
0.015962131,
-0.023556897,
-0.03930037,
0.044752274,
-0.04816336,
-0.0105904,
0.015524812,
0.0611663,
-0.002840749,
-0.008097684,
-0.0019114469,
0.025116667,
-0.005601323,
-0.002069975,
-0.030233296,
0.03676392,
-0.01972307,
-0.0917203,
0.024854276,
-0.038134187,
0.00088283705,
0.034548175,
-0.005010943,
-0.03268228,
-0.010721596,
0.008644332,
0.04865899,
-0.011137049,
-0.019358639,
-0.014446093,
0.062798955,
-0.0014349518,
0.014198279,
0.078017645,
0.0145116905,
-0.037055466,
0.031078778,
-0.015699739,
0.044198338,
0.007397974,
0.032536507,
0.019037938,
0.014744927,
-0.009832381,
-0.073994316,
-0.008323631,
0.02832367,
0.0039103576,
-0.028134167,
-0.030204142,
0.0016062349,
-0.05769691,
-0.028352825,
-0.04527706,
0.044519037,
-0.023950486,
-0.009635587,
0.002295923,
-0.0853646,
0.25399467,
0.03172018,
0.04186597,
0.038833898,
0.0076457877,
0.021399459,
0.009832381,
-0.036968004,
0.0015360818,
0.012121015,
0.009650165,
-0.044519037,
-0.019344062,
0.019314907,
-0.0029828777,
0.035072956,
-0.02822163,
-0.017449014,
-0.026107924,
-0.014074372,
-0.034285784,
0.058746472,
0.006053219,
0.04102049,
0.03650153,
-0.0150146065,
-0.014314897,
-0.021632696,
-0.019533567,
-0.02854233,
0.035743512,
-0.027507342,
0.053935967,
-0.022565642,
-0.011005852,
0.0025145821,
0.005830915,
-0.044519037,
-0.015758049,
0.021967974,
-0.0072485567,
-0.035772666,
0.0512829,
0.007653076,
-0.03988346,
-0.01075075,
-0.060233355,
0.052011766,
0.033294525,
-0.061632775,
0.021924242,
-0.050087564,
0.01758021,
-0.032332424,
-0.023454856,
-0.007988354,
-0.022653107,
-0.025932996,
-0.03075808,
0.010021886,
0.0066472436,
0.013986908,
-0.005058319,
0.030612305,
-0.01892132,
0.036588993,
0.022536488,
0.020816367,
0.0015306153,
-0.0058892244,
0.012616643,
0.008695353,
0.0008960477,
-0.04358609,
-0.0051676487,
0.04527706,
0.00020317096,
0.04516044,
0.021603541,
-0.040408242,
0.017507324,
0.023658939,
-0.019169135,
-0.010021886,
0.015422771,
0.071778566,
-0.016399449,
0.017930064,
-0.037055466,
0.046355776,
0.04247822,
0.027026292,
0.02720122,
-0.007915468,
0.0067711505
] | from transformers import pipeline
classifier = pipeline("sentiment-analysis")
The [pipeline] downloads and caches a default pretrained model and tokenizer for sentiment analysis. Now you can use the classifier on your target text:
classifier("We are very happy to show you the 🤗 Transformers library.")
[{'label': 'POSITIVE', 'score': 0.9998}]
If you have more than one input, pass your inputs as a list to the [pipeline] to return a list of dictionaries: |
[
0.045460165,
0.0045363093,
-0.034528222,
-0.02440273,
-0.013112361,
0.0035450417,
-0.020101637,
0.017234242,
-0.00017104499,
0.039874718,
0.015247973,
-0.019907491,
0.05274813,
-0.057019353,
-0.0034759704,
0.039247476,
0.0025575077,
-0.008094419,
-0.060245175,
-0.008094419,
0.0083035,
0.017637469,
-0.05107548,
-0.0356931,
-0.02567215,
0.014837278,
0.015770676,
-0.027822698,
0.048685987,
0.039426688,
-0.03384124,
-0.014396715,
0.015934953,
-0.03357242,
-0.0014280974,
-0.025761757,
0.026209787,
-0.025074776,
-0.07628467,
-0.039068263,
0.011141026,
-0.006459107,
0.014643132,
-0.048237953,
-0.06081268,
-0.008393105,
0.0023932299,
-0.045639377,
-0.0007261828,
-0.022386592,
-0.029525213,
0.044534236,
0.013082492,
0.0007621186,
-0.03085437,
-0.020713946,
-0.039426688,
-0.004136815,
-0.03357242,
-0.0067465934,
0.03500612,
0.028046712,
-0.0249553,
-0.06170874,
-0.0011350107,
0.026837029,
-0.0063919025,
-0.025612412,
-0.016293377,
-0.013597727,
-0.056541454,
0.015666135,
-0.014740204,
-0.0483873,
-0.016756343,
0.03294518,
0.035334677,
-0.016621932,
0.020340586,
0.04190579,
0.022715148,
0.020206178,
-0.0090502165,
-0.00096046546,
-0.02818112,
-0.031212794,
0.062067166,
-0.02532866,
-0.04716268,
-0.030794632,
0.010267367,
0.028330464,
-0.016278444,
0.023103442,
0.04994047,
0.035543755,
-0.039277345,
0.007075149,
-0.003804526,
-0.020191243,
0.02937587,
0.08387132,
-0.035125595,
0.028972642,
-0.015905084,
0.0019339985,
0.0072506275,
-0.032108855,
-0.0342594,
-0.03106345,
-0.001163946,
-0.00053063617,
0.016218705,
0.01335131,
-0.005932671,
0.008400572,
-0.012432847,
0.0107602,
-0.013187032,
-0.029107051,
-0.025791625,
0.01633818,
0.001208749,
-0.054928545,
0.037574828,
-0.036887847,
-0.0008041215,
0.043249883,
-0.03366203,
0.0057571926,
-0.0048723323,
0.006369501,
0.019937359,
0.07299911,
-0.014336977,
-0.0065375124,
-0.015770676,
0.041129205,
0.03318413,
-0.011962416,
-0.02992844,
-0.012619527,
-0.010446579,
0.07861443,
0.009767066,
0.002318558,
0.015964821,
-0.06959408,
-0.01853353,
0.02731493,
-0.015053826,
-0.02474622,
-0.014351912,
0.01805563,
-0.061768476,
0.009513182,
-0.004465371,
0.05274813,
-0.011297837,
0.026508473,
0.0019507996,
-0.027942171,
-0.04510174,
0.03500612,
0.0098865405,
0.04187592,
-0.043668043,
-0.03013752,
0.021281451,
-0.042503163,
-0.0024940367,
-0.014389248,
0.014254838,
-0.0004389299,
0.06547219,
0.02625459,
0.036499556,
0.016756343,
0.0073514343,
-0.012724067,
-0.026269523,
-0.039904587,
0.0047603245,
0.015636265,
0.005398768,
-0.009005414,
0.012559789,
0.00006271261,
0.0034573025,
0.043339487,
-0.017697206,
0.03867997,
-0.04531082,
0.017801747,
-0.02559748,
0.023835225,
-0.040591568,
0.0005213022,
0.017622534,
-0.042533033,
-0.01218643,
0.023163179,
-0.025642281,
-0.004457904,
0.01491195,
0.02501504,
-0.0033098257,
0.0342594,
-0.014187634,
-0.040860385,
0.04142789,
0.018891955,
-0.016935555,
-0.034468483,
0.029510278,
-0.022506068,
-0.0019377321,
0.014613262,
0.0043384293,
0.0030242063,
0.044504367,
0.018727677,
0.053763665,
-0.014202568,
0.024253387,
0.0131720975,
-0.018981561,
0.042174608,
0.03246728,
-0.0038418618,
0.012552322,
0.04280185,
-0.0018378586,
0.06344113,
0.02474622,
0.011835474,
0.045221217,
0.022282053,
0.012873411,
-0.0057945284,
-0.016636867,
0.040382486,
0.012052022,
0.016621932,
-0.0076351874,
-0.028868102,
-0.014165232,
0.00420402,
-0.016965423,
0.0109543465,
-0.03497625,
0.02210284,
0.028001908,
-0.006724192,
-0.022371659,
0.0022700215,
-0.029405737,
0.011618925,
0.006040945,
0.0055667795,
0.008497646,
0.013567858,
-0.01884715,
-0.019743213,
0.02789737,
0.061171103,
-0.017383585,
0.021774285,
0.000101273574,
-0.02371575,
-0.03778391,
-0.006194022,
-0.073596485,
0.009774533,
-0.03706706,
-0.0034573025,
0.0088038,
-0.030466076,
0.002118811,
-0.02313331,
0.010558587,
0.016965423,
-0.014351912,
0.06152953,
0.068459064,
0.012574724,
-0.05761673,
0.010737799,
-0.022267118,
0.032347806,
-0.028838232,
-0.019190641,
-0.014882081,
0.00054090354,
0.013732136,
-0.0070340796,
-0.006724192,
-0.013560391,
-0.02865902,
0.0371268,
0.010379374,
0.014053225,
0.024507271,
0.024507271,
-0.008124287,
0.065950096,
0.024208583,
-0.03778391,
0.047491238,
0.0152853085,
-0.009655058,
0.055854473,
-0.0092817,
0.055077888,
-0.01633818,
0.05346498,
0.04115907,
0.011641327,
-0.02955508,
-0.01105142,
-0.037634566,
-0.01031217,
-0.021804154,
-0.03984485,
0.004357097,
0.050149553,
-0.028196055,
-0.057138827,
-0.01774201,
-0.03841115,
-0.047371764,
-0.021057436,
-0.0009529983,
0.023805356,
0.0054025017,
0.035155464,
-0.05107548,
0.042921327,
-0.010872208,
0.0051336833,
-0.006459107,
-0.017906288,
0.03154135,
0.037903383,
-0.01980295,
-0.012246168,
0.013874012,
-0.04074091,
0.021699613,
-0.031869907,
-0.013448384,
-0.021221714,
-0.02072888,
0.0156213315,
0.0003999606,
0.037933253,
-0.053166293,
0.02649354,
0.014359379,
0.012305905,
0.033064652,
0.018593267,
0.024940366,
0.0027292527,
-0.01451619,
-0.011006617,
-0.027270125,
0.024328059,
0.038560495,
-0.06033478,
0.028897969,
-0.007833067,
-0.025388397,
-0.004502707,
-0.013261704,
-0.061828215,
0.032586753,
0.030242061,
0.026418868,
-0.013104893,
-0.030555682,
-0.020430192,
0.0019153305,
0.06362034,
0.04578872,
0.02038539,
0.0022065504,
0.014971687,
-0.049761258,
-0.0059924084,
0.0076239863,
0.02749414,
0.009841737,
-0.029181723,
-0.02807658,
-0.06893697,
0.032885443,
0.06326191,
0.028435005,
0.008796333,
0.031690694,
0.00044989734,
0.014501255,
0.01942959,
0.011215698,
-0.030018046,
-0.036738504,
0.035274938,
0.037485223,
-0.017831616,
0.0010706063,
-0.01966854,
-0.008669391,
0.03387111,
-0.06320217,
-0.0042114872,
0.007780797,
-0.0007644521,
-0.028629152,
0.019997096,
-0.049074277,
-0.06565141,
-0.060215306,
0.0156512,
0.04301093,
-0.020295784,
-0.021908693,
-0.02001203,
0.010805003,
0.041816182,
-0.026075378,
-0.043220013,
-0.0128808785,
-0.015352514,
-0.053823404,
0.049761258,
0.047102943,
-0.018458858,
-0.024776088,
-0.04692373,
-0.005805729,
0.015337579,
0.0013142229,
-0.021535335,
0.009528116,
-0.030884238,
-0.0037354548,
0.009289167,
0.0018378586,
-0.00572359,
0.013888947,
-0.065292984,
0.02765842,
-0.028300596,
-0.0062948293,
-0.02971936,
-0.01179067,
-0.005704922,
0.021460664,
0.041039597,
-0.022043103,
-0.010819938,
0.04053183,
-0.03198938,
-0.06469561,
0.019534132,
0.019265313,
-0.012253636,
0.044355024,
0.018234843,
-0.04650557,
0.043220013,
0.017861484,
-0.026418868,
-0.002482836,
-0.03243741,
0.014053225,
0.013911349,
-0.010424177,
-0.0025071043,
-0.037903383,
0.03294518,
-0.014710336,
0.008848603,
-0.009348904,
-0.06517351,
0.0058206636,
-0.01863807,
-0.019549066,
0.028494742,
0.009587853,
-0.010551119,
0.0015746406,
-0.017069964,
-0.002156147,
-0.021161975,
-0.011521852,
-0.0043869657,
0.06589036,
0.01942959,
0.002998071,
-0.053285766,
-0.03703719,
0.0007401838,
-0.031033583,
0.003623447,
-0.0022158844,
0.027807763,
-0.018832218,
-0.008938209,
-0.042921327,
-0.0017323848,
-0.014478854,
-0.029047314,
0.0005171019,
0.0074709095,
0.019354919,
0.00777333,
-0.019145839,
0.02807658,
-0.023103442,
-0.046893865,
-0.021102238,
0.030361537,
-0.0021897494,
0.012022153,
0.032078985,
-0.033243865,
-0.011730933,
-0.057766072,
0.05412209,
-0.062067166,
0.026657818,
-0.050358634,
-0.024462467,
0.0055555785,
0.009923876,
0.053793535,
-0.01208189,
0.020743813,
-0.021385992,
0.0065449793,
-0.07066935,
-0.021699613,
-0.03984485,
0.00053576985,
-0.025388397,
0.0075082453,
0.018548464,
0.013784407,
0.0037223871,
0.05866213,
0.011850408,
0.04002406,
-0.024492336,
-0.0038642634,
-0.003759723,
-0.006768995,
0.0017501193,
0.05961793,
-0.039874718,
0.017771877,
0.02371575,
0.0047080545,
-0.044593975,
-0.03479704,
-0.01750306,
0.0021972165,
0.04423555,
-0.018981561,
0.019922424,
0.022162577,
0.03682811,
-0.014374313,
0.017293978,
-0.025627347,
-0.015531725,
-0.01134264,
-0.056750536,
0.034408744,
-0.028136319,
-0.017144635,
-0.0045661777,
0.018891955,
0.03500612,
-0.005943872,
0.023670947,
0.07945075,
0.014941819,
0.012761403,
-0.038381282,
0.01853353,
0.0030223394,
0.022774886,
-0.034587957,
0.023491735,
0.0021990833,
0.025418267,
0.004827529,
-0.03503599,
-0.011730933,
0.012492585,
0.039785113,
-0.0013076891,
0.025388397,
0.009879073,
-0.028031778,
-0.011141026,
0.022909295,
0.045579642,
0.027718157,
0.02937587,
0.01736865,
-0.031392008,
0.03963577,
-0.023999503,
-0.024537139,
-0.0040994794,
0.083512895,
0.012134161,
-0.026329262,
-0.010939413,
0.043399226,
-0.047282156,
-0.0591699,
0.011910145,
0.008318434,
-0.04080065,
-0.026971439,
0.010857274,
-0.022745017,
-0.035842445,
0.036320344,
0.054181825,
-0.020191243,
-0.03360229,
0.08321421,
-0.02783763,
-0.056541454,
0.0013384912,
0.028494742,
-0.05116509,
-0.03479704,
-0.039964326,
0.00062537595,
-0.0430408,
-0.03363216,
0.049193755,
-0.059050426,
0.022849558,
0.05645185,
-0.018623136,
0.05681027,
0.0057123895,
0.007612786,
0.008818734,
-0.052658524,
-0.037604697,
-0.010476448,
-0.011962416,
-0.007989878,
0.036171,
-0.009774533,
0.019907491,
0.026105246,
0.035364546,
-0.039038394,
-0.061290577,
-0.009005414,
-0.076762564,
-0.032556888,
0.04931323,
-0.018593267,
0.0031492813,
0.022521002,
0.019399723,
-0.043130405,
0.0027647219,
0.0121042915,
-0.021027567,
-0.012589659,
-0.053942878,
0.04080065,
-0.057795938,
-0.009662526,
0.0017631869,
-0.026866898,
0.016144034,
0.030914107,
-0.03434901,
0.012201365,
0.026269523,
0.030331668,
-0.012567257,
0.00972973,
-0.040412355,
0.019534132,
-0.03844102,
0.0317803,
-0.017517995,
-0.009931344,
0.010244965,
-0.038650103,
0.02474622,
0.02175935,
0.02559748,
-0.036200866,
0.03154135,
0.051224824,
-0.01237311,
0.014919417,
-0.030585552,
0.014814877,
-0.03500612,
0.009139823,
-0.0021318786,
-0.05337537,
-0.025716953,
0.038291678,
0.018369252,
0.039516293,
-0.0059588063,
0.021714548,
0.025657216,
0.03754496,
0.017756945,
-0.01599469,
0.034110058,
0.004528842,
-0.01715957,
-0.039247476,
0.006623385,
0.048028875,
-0.051284563,
0.04414594,
0.02258074,
-0.015277841,
-0.00938624,
0.019205576,
0.017458256,
0.06481508,
0.017069964,
-0.027733091,
-0.018309515,
-0.011193296,
-0.026583146,
0.009796934,
-0.058124494,
-0.022043103,
0.0031418141,
-0.054450646,
-0.01208189,
-0.014628197,
0.031033583,
0.04656531,
0.027792828,
0.033542555,
-0.0065375124,
-0.028957708,
0.02725519,
-0.015561594,
-0.03885918,
-0.048506774,
-0.0051336833,
0.042622637,
-0.032616623,
-0.026896767,
0.004573645,
0.029838834,
-0.007220759,
-0.015165834,
-0.028778495,
-0.027643485,
0.023685882,
0.046834126,
-0.03151148,
0.016532326,
-0.04584846,
0.054002613,
-0.01715957,
0.028300596,
-0.02440273,
0.04077078,
0.006007343,
0.035663232,
-0.0016110431,
0.054958414,
0.03867997,
-0.010043351,
0.0171297,
0.0021897494,
-0.0009996681,
-0.019922424,
-0.015001556,
0.014426583,
0.06648773,
0.03823194,
0.0036122461,
0.0066009834,
0.053584453,
0.02096783,
-0.048954803,
0.0045811124,
0.03551389,
0.015150899,
0.004704321,
-0.0234768,
-0.032586753,
-0.012290971,
-0.005171019,
0.022804754,
0.037963122,
-0.0046147145,
-0.036738504,
0.012313372,
-0.024656614,
0.028285662,
-0.0025836427,
-0.025119578,
0.018369252,
0.008602186,
0.025134513,
0.016935555,
0.022267118,
0.0024492336,
0.05504802,
0.030152455,
0.015725872,
-0.0078106658,
-0.012843542,
0.036021657,
-0.03309452,
0.029570015,
-0.022416461,
0.0010846073,
-0.009453445,
0.0028767295,
-0.030451143,
0.07992865,
0.006089482,
-0.04414594,
0.014322043,
-0.016054427,
-0.013179565,
-0.05707909,
0.026687685,
-0.065233245,
0.019369854,
0.013620129,
-0.019982163,
-0.03381137,
0.026971439,
-0.0029514013,
0.014232437,
0.018802349,
0.0626048,
0.009953746,
0.071983576,
0.03984485,
0.029749228,
0.027718157,
0.021595072,
-0.05943872,
-0.029749228,
0.012626994,
-0.02903238,
-0.0113725085,
-0.05531684,
-0.06565141,
0.064456664,
0.019160774,
-0.038650103,
-0.028390203,
0.0017575865,
0.0030092718,
-0.01192508,
0.0049955407,
0.087395824,
0.019295182,
0.0034237,
-0.022401527,
0.0030727428,
-0.029599885,
-0.03497625,
-0.02765842,
0.014523657,
-0.029779097,
-0.034229532,
0.006675655,
-0.040830515,
0.0022345523,
0.016308311,
0.021774285,
-0.025164383,
-0.009640124,
0.026717555,
0.034946382,
0.010931945,
-0.020221112,
-0.030152455,
0.042562902,
0.020878224,
0.01890689,
0.053524714,
0.03195951,
-0.005917737,
0.009557985,
0.014000954,
-0.004521375,
0.012828608,
0.00254444,
-0.002699384,
0.01681608,
-0.041726578,
-0.049432702,
0.016651802,
0.0020180042,
-0.03016739,
-0.0028207256,
-0.04014354,
-0.039964326,
-0.042742115,
-0.008729128,
-0.046415962,
0.0113725085,
0.0058019953,
-0.035095725,
0.0020273381,
-0.019011429,
0.26738462,
0.063859284,
0.035752837,
0.040322747,
0.0044019,
0.03243741,
0.020923026,
-0.0032762233,
0.015046359,
-0.042264216,
0.00031058784,
-0.04396673,
0.027986975,
0.026777292,
-0.013971086,
0.02879343,
-0.029017445,
-0.003442368,
-0.016144034,
-0.0010538051,
-0.03434901,
0.02821099,
-0.008669391,
-0.0042077536,
0.032317936,
-0.015382382,
-0.000503101,
-0.029913506,
-0.004222688,
-0.03157122,
0.012111759,
-0.04235382,
0.027688287,
-0.011999751,
-0.0062014894,
0.020265914,
-0.013052623,
-0.02155027,
0.020221112,
0.023596276,
-0.04127855,
-0.031899776,
0.0610815,
0.03054075,
0.0088038,
0.062067166,
-0.038381282,
0.007399971,
0.027270125,
-0.068996705,
0.004174151,
-0.069116175,
-0.023043703,
-0.043817386,
-0.018757544,
-0.01575574,
-0.04414594,
-0.029017445,
-0.048506774,
0.025716953,
0.008579785,
0.017786812,
-0.0064553735,
0.012791272,
-0.017682273,
0.00093993073,
0.006709257,
0.029077182,
-0.0142399045,
-0.030824501,
-0.015531725,
0.0069706086,
0.0021356123,
-0.03315426,
0.03054075,
0.03497625,
0.0017995894,
0.011574122,
-0.005335297,
-0.045490034,
0.023745619,
0.008184024,
-0.00027791894,
-0.01335131,
0.025029972,
0.043817386,
-0.050926138,
-0.02255087,
0.005742258,
0.025253989,
0.0092592975,
0.040233143,
0.02844994,
0.020893158,
-0.010827404
] |
Quick tour
[[open-in-colab]]
Get up and running with 🤗 Transformers! Whether you're a developer or an everyday user, this quick tour will help you get started and show you how to use the [pipeline] for inference, load a pretrained model and preprocessor with an AutoClass, and quickly train a model with PyTorch or TensorFlow. If you're a beginner, we recommend checking out our tutorials or course next for more in-depth explanations of the concepts introduced here.
Before you begin, make sure you have all the necessary libraries installed: |
[
0.03069622,
-0.009624368,
-0.06523653,
-0.029848259,
-0.037677772,
-0.0028018074,
-0.015461172,
-0.015093721,
0.011807869,
0.058170184,
0.012952618,
-0.053817313,
0.03253347,
-0.049153525,
0.018202916,
0.042115442,
-0.017623475,
-0.021326242,
-0.030611424,
-0.00882587,
0.016987503,
0.021029456,
-0.06455816,
-0.016902708,
-0.0120269265,
0.010860979,
0.02057721,
-0.036377564,
0.061222848,
0.052828025,
-0.023757067,
-0.0010652521,
-0.013977239,
-0.013086879,
-0.015249182,
-0.012500372,
-0.013030347,
0.00036060464,
-0.080895565,
-0.038016956,
0.0046637906,
0.00016661127,
0.017256025,
-0.045281164,
-0.06427551,
-0.0033105845,
-0.0021075385,
-0.0378191,
-0.0065434393,
-0.01105177,
-0.030470097,
0.017256025,
0.036688484,
0.005123103,
-0.03793216,
-0.025495388,
-0.009977685,
0.009440643,
-0.037055936,
0.0031763238,
0.03985421,
0.007631657,
-0.015206783,
-0.03346623,
0.0075327284,
0.008762273,
-0.0063526477,
-0.0040560844,
-0.030667955,
-0.0047627194,
-0.06263612,
0.0066918326,
-0.031770304,
-0.04095656,
-0.013129276,
0.033777148,
0.024124516,
0.017581077,
0.013383665,
0.058792025,
0.027233709,
0.057746205,
-0.025763908,
0.03872359,
-0.0011597646,
-0.013963106,
0.036971137,
-0.022541653,
-0.037253793,
-0.046100862,
-0.009179188,
0.04545076,
-0.007928444,
0.0011076502,
0.010747917,
0.023191758,
-0.02928295,
0.026484676,
-0.0031727906,
-0.018047456,
0.0019503124,
0.09853317,
-0.015376376,
0.036688484,
0.010627789,
0.009829291,
0.01081858,
-0.0101260785,
-0.044546265,
-0.02425171,
-0.0027841416,
-0.00940531,
-0.010500595,
0.0009433576,
-0.016860308,
-0.024562629,
-0.015545968,
0.024887681,
-0.030865813,
-0.0065469723,
-0.016888574,
-0.01890955,
0.023898393,
-0.0481925,
0.005055973,
-0.057859268,
-0.01513612,
0.0027594094,
-0.029537339,
-0.0274457,
-0.030243974,
0.028053407,
0.026046563,
0.06133591,
-0.0074761976,
-0.018443171,
0.009327581,
0.022117672,
0.0011968629,
-0.0038334944,
-0.0067059654,
-0.025071407,
-0.017284289,
0.062353466,
-0.015941683,
0.003008498,
0.003158658,
-0.084230885,
-0.019163938,
0.026357481,
-0.034229394,
0.019658582,
-0.0052926955,
0.02996132,
-0.05698304,
0.0032734862,
-0.00927105,
0.027304374,
0.011610012,
0.020124963,
0.020450015,
-0.0051301694,
-0.0451681,
0.02163716,
-0.0015855121,
0.010514728,
-0.02057721,
-0.019474858,
0.022541653,
-0.031939898,
0.016097143,
-0.0034466118,
0.0021022388,
-0.001215412,
0.06127938,
0.027459832,
0.05463701,
-0.00011173665,
0.01076205,
-0.045648616,
-0.028816571,
-0.018782357,
0.005801473,
0.019050878,
-0.0111224335,
0.033918474,
-0.0053103613,
-0.002268298,
-0.011080035,
0.0229939,
-0.0041762125,
0.023333084,
-0.022527521,
0.03394674,
-0.06857185,
0.0038688262,
-0.029028563,
0.009150922,
0.026371615,
-0.029933054,
-0.010931642,
0.04432014,
-0.024590895,
-0.0303853,
0.028830705,
0.057859268,
-0.015969949,
0.01587102,
-0.024124516,
-0.045224633,
0.06693246,
0.041408807,
-0.025368193,
-0.010712585,
0.026145492,
-0.0013797047,
-0.004554262,
0.017778935,
-0.0015590133,
0.00025880503,
0.05132996,
0.021128384,
0.040815234,
-0.01225305,
-0.0040596174,
-0.015150253,
-0.01743975,
0.07332044,
0.018118119,
0.03776257,
0.0010590691,
0.02833606,
-0.0058403374,
0.039825942,
0.008606813,
-0.0062042545,
0.031233262,
0.011949196,
0.0027558762,
0.04457453,
0.0062607853,
-0.0042221434,
-0.0072147422,
0.047118414,
-0.015828623,
-0.038554,
-0.01833011,
-0.0014256359,
-0.047174945,
0.012931419,
-0.081856586,
0.013164609,
0.006999219,
-0.010550059,
-0.027473966,
0.012415576,
0.0040949495,
0.01134149,
0.00392889,
0.0017153563,
0.024138648,
0.047372803,
-0.0065964367,
-0.008126302,
0.05941386,
0.070720024,
-0.014867598,
0.035162155,
0.015432906,
-0.02713478,
-0.022442725,
-0.030130913,
-0.03671675,
0.006766029,
-0.04850342,
-0.016337398,
-0.034088068,
-0.046637904,
-0.0073207375,
-0.010811514,
0.0063526477,
0.013468461,
-0.009998884,
0.039741147,
0.024491966,
0.01534811,
-0.049040463,
0.02649881,
-0.032194287,
0.008741074,
-0.03001785,
-0.012118788,
-0.014104432,
-0.039147574,
0.049068727,
-0.028632846,
0.015362243,
-0.015955817,
-0.032561738,
0.023728801,
0.011525216,
0.003526108,
0.031826835,
0.036631953,
-0.0033953807,
0.0067730956,
0.03954329,
-0.018471437,
0.026597738,
0.02707825,
-0.033494495,
0.041521866,
0.011249628,
0.026329217,
-0.0009460075,
0.036066648,
0.040306456,
-0.024011454,
-0.049266584,
-0.03462511,
-0.019460725,
-0.01734082,
-0.046666168,
-0.026682533,
-0.034653377,
0.06263612,
-0.061448973,
-0.0459878,
-0.0028495053,
-0.021665426,
-0.02425171,
-0.021552365,
-0.0303853,
0.047372803,
0.018146385,
0.02378533,
-0.07569473,
0.017326688,
0.005882736,
0.02665427,
0.0011438653,
-0.026173757,
0.0734335,
0.020407617,
-0.0078012496,
-0.022894971,
0.06811961,
-0.04997322,
0.0071935435,
-0.034059804,
0.049379647,
-0.0126911625,
-0.015291579,
0.014026703,
0.0020739734,
0.025848705,
-0.038045224,
0.028661111,
-0.009179188,
0.0334097,
-0.00023252705,
0.01801919,
0.0011818468,
0.037479915,
-0.028689377,
-0.0007980558,
-0.023234155,
0.007062816,
0.03179857,
-0.028053407,
0.05630467,
-0.026739065,
-0.0065045743,
-0.0041656126,
0.017609341,
-0.01838664,
0.02430824,
0.0556263,
0.01828771,
-0.013609788,
-0.034088068,
-0.010797381,
0.027799018,
0.028562183,
0.026018297,
0.013178741,
0.011737206,
0.015319845,
-0.01613954,
-0.0113697555,
0.016747247,
0.03168551,
0.007243008,
0.0032240218,
-0.047372803,
-0.04771199,
0.047853317,
0.03468164,
0.031600714,
-0.00053218444,
0.078521274,
-0.004130281,
-0.0042610085,
0.004932312,
0.020026034,
-0.036631953,
-0.024859415,
0.03346623,
0.039458495,
0.030583158,
-0.018400773,
-0.0155035695,
-0.0037875632,
0.011885599,
-0.07111574,
-0.011178964,
0.011136566,
-0.005624814,
-0.048475154,
0.024025587,
-0.034709908,
-0.037508182,
-0.05729396,
0.016846176,
0.054863136,
-0.03168551,
0.008168699,
-0.044772387,
-0.0060982592,
0.014768669,
-0.010345135,
-0.05735049,
0.010401666,
-0.002024509,
-0.05002975,
0.03335317,
0.049520973,
-0.054552216,
-0.030441832,
-0.05845284,
-0.051810473,
0.011136566,
0.034822967,
-0.030074382,
0.0071935435,
-0.016266735,
0.0098787565,
0.02173609,
-0.008726941,
0.0027770752,
0.011087102,
-0.031572446,
0.011306158,
-0.052912824,
-0.012323713,
-0.01906501,
0.007469131,
-0.027318506,
0.00078038994,
0.035444807,
-0.031120202,
0.0423133,
0.038695328,
-0.038384408,
-0.0333249,
0.013503793,
0.003390081,
-0.019729247,
0.03366409,
-0.0032469875,
0.0037345656,
0.038638797,
0.023615738,
0.00785778,
-0.002876004,
0.004511864,
0.0140973665,
-0.03236388,
-0.002054541,
0.024449568,
-0.05678518,
0.0050913044,
-0.015701428,
0.027841415,
0.02158063,
-0.0822523,
-0.008606813,
-0.014210428,
-0.01691684,
0.027897947,
0.008317092,
-0.0072359415,
-0.016365664,
-0.025424724,
-0.00012178411,
-0.015305712,
-0.018457305,
-0.018471437,
0.07953882,
0.026442278,
-0.015489438,
-0.028378459,
-0.003826428,
0.030583158,
-0.046100862,
-0.00021397788,
-0.0023813597,
0.019602053,
0.020803332,
-0.017891996,
-0.029339481,
0.000956607,
0.019997768,
0.0057838066,
-0.010182609,
-0.0430482,
-0.003865293,
-0.01327767,
-0.027742486,
0.051838737,
-0.037112467,
-0.05913121,
-0.01691684,
0.025707377,
0.026739065,
-0.005328027,
0.044602796,
-0.03383368,
-0.020520678,
-0.022923237,
0.07631657,
-0.059357334,
0.0072218087,
-0.014881731,
-0.04923832,
0.008006173,
0.0053209607,
0.034794703,
-0.027064117,
-0.002662247,
-0.01105177,
-0.0071264133,
-0.07100268,
-0.009758628,
-0.022909103,
-0.004635525,
0.0008572365,
0.004688523,
-0.030781016,
0.002478522,
0.0022117672,
0.03131806,
0.021142516,
0.029198155,
-0.044857185,
-0.022329664,
0.007271273,
-0.003206356,
0.0055400175,
0.033748884,
-0.01734082,
0.013850044,
0.0077517848,
0.03733859,
-0.05624814,
-0.04347218,
-0.01943246,
0.03493603,
0.058792025,
-0.02341788,
0.004331672,
-0.0043952693,
0.044546265,
0.020633738,
0.030046117,
-0.04191758,
0.02959387,
-0.00069029396,
-0.052347515,
0.03598185,
-0.020930527,
-0.02126971,
-0.007949643,
0.043698303,
0.04918179,
-0.031176733,
0.031657245,
0.056898244,
0.0132706035,
-0.0034430786,
-0.042369828,
0.036688484,
0.021128384,
0.0010352201,
-0.028844837,
-0.0008779939,
-0.011376822,
-0.00080777204,
-0.03196816,
-0.041182682,
-0.024294108,
-0.0047485866,
0.036942873,
-0.0200119,
0.04463106,
0.0039606886,
-0.012288381,
-0.052545372,
0.00012851923,
0.055060994,
0.03948676,
0.035133887,
0.02760116,
-0.0054304893,
0.03787563,
-0.009200387,
-0.037055936,
-0.02403972,
0.051725674,
0.0044518,
-0.029509073,
0.015955817,
0.043698303,
-0.02959387,
-0.054439154,
0.037564714,
0.0014830501,
-0.016747247,
-0.013659253,
-0.001422986,
0.0029007364,
0.011878533,
0.0065540387,
0.049096994,
-0.012620499,
-0.011433353,
0.0607706,
0.0057590744,
-0.03309878,
0.024378905,
0.023220023,
-0.049662303,
-0.03499256,
-0.02403972,
-0.0023212957,
-0.048644748,
-0.033381432,
0.03205296,
-0.02603243,
0.00046372917,
0.04954924,
-0.013616854,
0.023488544,
0.000050320134,
0.007794183,
0.027572894,
-0.027148914,
-0.07925617,
-0.030413566,
-0.018457305,
-0.018725825,
0.00040521094,
-0.013093945,
-0.00040211942,
0.037734304,
0.043076463,
-0.019390061,
-0.08694436,
0.0017268391,
-0.03476644,
-0.027897947,
0.06811961,
0.0027134782,
-0.003004965,
0.007864847,
-0.01008368,
-0.034003273,
0.015913418,
0.010267405,
-0.041861054,
-0.051301695,
-0.068176135,
0.032194287,
-0.046129126,
0.00081086357,
0.0015263314,
-0.015447039,
0.012896087,
0.032646533,
-0.016832044,
0.013553258,
-0.00311626,
0.007243008,
-0.00956077,
0.019870574,
-0.021467568,
0.025184467,
-0.02781315,
0.03657542,
-0.015206783,
0.028858969,
0.0026569474,
-0.042906873,
0.017637607,
0.0075185956,
0.028972032,
-0.015998214,
0.023771198,
0.06303184,
-0.0170723,
0.022513388,
-0.045111574,
0.0013302402,
-0.031770304,
-0.005328027,
-0.0061406572,
-0.03660369,
-0.013807646,
0.043726567,
-0.015729694,
0.011108301,
0.016379798,
0.0055364845,
0.053958643,
0.061222848,
-0.007886046,
-0.03437072,
0.014599077,
0.03278786,
-0.046581373,
-0.032081224,
0.020068431,
0.02959387,
-0.018782357,
0.016846176,
0.02990479,
-0.011242561,
0.001371755,
0.029763462,
0.021015322,
0.062240403,
0.02210354,
-0.024477834,
-0.0002444515,
-0.042369828,
-0.02440717,
0.028067539,
-0.07241595,
0.009659699,
0.020492412,
-0.019573787,
0.0013973705,
0.000082643164,
-0.014090301,
0.014909997,
0.034851234,
0.046694435,
0.008755206,
-0.008366558,
0.0016915073,
-0.005176101,
-0.018556233,
-0.057633143,
-0.020365218,
0.008345358,
-0.037423383,
-0.033918474,
0.002487355,
0.028449122,
0.003185157,
-0.0010060715,
-0.03001785,
-0.039458495,
0.01351086,
0.039882474,
-0.03273133,
-0.010394599,
-0.020859862,
0.0423133,
-0.04813597,
0.0053492263,
-0.017948527,
0.024562629,
0.012867821,
0.015941683,
0.015814489,
0.040136863,
0.009278117,
-0.013920708,
0.002247099,
0.0051019043,
0.028745908,
-0.0075397943,
0.003992487,
0.042878605,
0.041041356,
0.005490553,
0.014556679,
-0.011956262,
0.035218682,
0.025749777,
-0.028689377,
0.0012012793,
0.012896087,
0.019729247,
0.007363136,
-0.00934878,
-0.030187443,
-0.0118644005,
-0.025735643,
0.0060558612,
0.06568878,
0.033127043,
-0.007758851,
-0.016733116,
0.0026039497,
0.027106516,
0.01974338,
-0.030046117,
0.02702172,
-0.0035508403,
0.050255876,
0.009256917,
0.024746355,
0.017849598,
0.046948824,
0.020718535,
0.021566497,
0.018895417,
-0.0010546526,
0.04652484,
0.0010431698,
0.042454626,
-0.037903897,
0.008373624,
-0.0078012496,
-0.022739511,
-0.03524695,
0.05992264,
0.0200119,
-0.035586134,
-0.022739511,
-0.03236388,
-0.007674055,
-0.065293066,
0.021312108,
-0.061844688,
0.037988693,
0.021877417,
-0.017199494,
-0.018188782,
0.026286818,
0.002499721,
0.038158286,
0.033918474,
0.05913121,
0.016083011,
0.08208271,
0.03001785,
0.002430824,
0.04499851,
0.029876525,
-0.028378459,
-0.019446593,
0.020153228,
0.0030826947,
-0.01979991,
-0.048418622,
-0.04593127,
0.006158323,
0.011737206,
-0.042963404,
-0.030667955,
-0.04217197,
-0.025848705,
0.002289497,
-0.02194808,
0.09598929,
0.031289794,
0.014754537,
-0.023064563,
0.017708272,
-0.044772387,
-0.013383665,
-0.027615292,
0.023530943,
-0.013072746,
-0.03205296,
0.026329217,
-0.060318355,
0.0049888426,
0.012874888,
-0.024053853,
-0.031713776,
-0.024859415,
0.012104656,
0.046807498,
-0.007674055,
-0.01639393,
-0.023135226,
0.02990479,
0.0029095693,
-0.0060558612,
0.06778042,
0.041041356,
-0.025014875,
-0.0054728873,
0.009179188,
0.0068967566,
-0.0016968071,
-0.036490627,
-0.016464593,
0.020873995,
-0.034229394,
-0.040730435,
0.003167491,
0.031657245,
0.00793551,
-0.0118644005,
-0.0064091785,
0.011737206,
-0.06591491,
-0.014358821,
-0.04545076,
-0.014796935,
0.005992264,
-0.03849747,
-0.010055414,
-0.014394153,
0.23494197,
0.05992264,
0.0452529,
0.022668848,
0.036066648,
0.04437667,
0.011228429,
0.0018443171,
0.0083877565,
-0.06048795,
-0.00019123308,
-0.05752008,
-0.0027470433,
0.004730921,
-0.030809281,
0.0400238,
-0.009907021,
0.011221362,
-0.031826835,
0.00882587,
-0.024152782,
0.03733859,
0.0098787565,
0.037423383,
0.03572746,
0.0067483634,
-0.0070133517,
-0.05997917,
0.053817313,
-0.03849747,
-0.0009574903,
-0.036801547,
0.03247694,
-0.010147277,
0.019729247,
0.0170723,
-0.018160516,
-0.016351532,
0.013652187,
0.036886342,
0.003967755,
-0.034794703,
0.048559953,
0.019941237,
-0.04095656,
0.038780123,
-0.056954775,
-0.010246206,
0.04132401,
-0.07015471,
0.020591341,
-0.06303184,
-0.016832044,
-0.06789348,
-0.028251264,
-0.013715784,
-0.052093126,
-0.02163716,
-0.027092382,
0.02948081,
0.02661187,
0.017453883,
-0.004978243,
0.020124963,
0.010853913,
0.00038732425,
-0.016068878,
0.046185657,
0.008804671,
-0.017468015,
0.023714667,
0.028095804,
-0.026117226,
-0.053393334,
0.007688188,
0.027375037,
0.02330482,
0.041776255,
-0.00048183667,
-0.070720024,
0.0062643182,
0.006981553,
0.008755206,
-0.034059804,
0.01639393,
0.029396012,
-0.026626004,
-0.025311662,
0.018414905,
0.04624219,
0.011030571,
0.047627192,
0.017157096,
0.014090301,
0.015489438
] | !pip install transformers datasets
You'll also need to install your preferred machine learning framework:
pip install torch
pip install tensorflow
Pipeline
The [pipeline] is the easiest and fastest way to use a pretrained model for inference. You can use the [pipeline] out-of-the-box for many tasks across different modalities, some of which are shown in the table below:
For a complete list of available tasks, check out the pipeline API reference. |
[
0.029745013,
0.010643977,
-0.03292731,
0.011806459,
-0.004944182,
-0.015155861,
-0.031299833,
-0.0174227,
0.0087549435,
0.047574583,
0.031067336,
-0.028800495,
0.04867894,
-0.0373738,
0.000235221,
0.02787051,
-0.04344777,
-0.024862587,
-0.06556399,
-0.04896956,
0.0030315355,
0.007650586,
-0.06765646,
-0.017655198,
-0.010462339,
0.0074907443,
0.030863902,
-0.010520464,
0.07067891,
0.05475291,
-0.0056562023,
-0.024281345,
-0.024179628,
-0.018163783,
-0.01810566,
-0.04272122,
0.04740021,
0.005496361,
-0.028219255,
-0.03394448,
-0.006226545,
0.009721257,
0.013172376,
-0.023990726,
-0.060623445,
0.015620854,
0.0020852024,
-0.020866554,
-0.021069989,
-0.013441199,
-0.020401562,
-0.002428498,
0.008566041,
0.0113051385,
-0.014451106,
-0.025240393,
-0.02789957,
0.007883082,
-0.045830857,
-0.040744998,
0.01626022,
0.019718604,
-0.0051875766,
-0.019776728,
0.020430624,
0.0348454,
-0.0128381625,
-0.025603669,
-0.010011878,
-0.031387016,
-0.07300388,
0.04713865,
-0.027783323,
-0.06881894,
-0.0055726487,
0.009365247,
0.02108452,
0.0065280637,
0.020314375,
0.010469605,
0.010048205,
0.06382027,
0.012990738,
0.010498667,
-0.02192732,
-0.0031568655,
0.032781996,
-0.007218288,
0.00016892319,
-0.03833285,
-0.05536321,
0.016928647,
-0.015751634,
0.008616899,
0.0071311016,
0.049725175,
-0.03879784,
0.017858632,
0.012009894,
-0.00869682,
0.020198127,
0.10317029,
-0.03891409,
0.012809101,
-0.023409484,
-0.0069821584,
0.0022686566,
-0.020416092,
-0.03127077,
-0.036734436,
-0.0041268114,
0.000691132,
0.029933915,
-0.010418747,
-0.0011988097,
0.016390998,
0.019863913,
0.02108452,
-0.03443853,
-0.0075997273,
-0.010716632,
0.012474886,
0.031328894,
-0.030892963,
0.03443853,
-0.056787252,
-0.028132068,
0.014494699,
0.0068368483,
-0.0017219267,
-0.006822317,
0.018018473,
0.037955042,
0.051410772,
-0.012700117,
-0.014073299,
0.009634071,
-0.008718616,
-0.003245868,
-0.013099721,
0.001804572,
-0.024237752,
-0.006477205,
0.07434073,
0.010091798,
0.016405528,
0.018236438,
-0.049870484,
-0.03467103,
0.012968942,
-0.019500637,
0.023424014,
0.00039301885,
-0.03865253,
-0.04882425,
0.0050858594,
-0.0039052134,
-0.031212647,
0.018047536,
0.01755348,
-0.01599866,
-0.03879784,
-0.056235075,
0.05501447,
0.0029697786,
0.044029012,
0.020619527,
0.01060765,
0.025865227,
-0.031183584,
-0.004820668,
0.009459699,
-0.0029207363,
0.023017146,
0.047981452,
0.021302486,
0.04016376,
0.028277379,
0.047283962,
-0.011058112,
-0.02067765,
-0.026490062,
-0.010426012,
0.004450127,
-0.025124146,
-0.00039801392,
0.008602368,
0.03734474,
-0.015213985,
0.009735788,
0.008827599,
0.04928924,
-0.032636687,
0.01266379,
-0.047661766,
0.00863143,
-0.057833485,
0.018759556,
0.008558774,
-0.03467103,
-0.015940536,
0.014233141,
-0.0040832185,
0.015097737,
-0.0005935016,
0.055246964,
0.012213328,
0.053299807,
-0.0018890335,
0.0065498604,
0.014661806,
0.05757193,
-0.003193193,
0.004272122,
0.024659153,
-0.023889009,
-0.017945819,
0.0111162355,
0.0098084435,
-0.030486094,
0.023467608,
0.016739743,
0.036618188,
-0.010869208,
0.032869183,
0.0013432117,
-0.008159172,
0.04161686,
0.046150543,
0.012780038,
-0.0026809745,
0.028408157,
-0.0066951704,
0.05603164,
-0.008689554,
0.042517785,
0.054113545,
0.02335136,
-0.0010380602,
-0.015606323,
-0.011312405,
0.011152563,
0.034496658,
0.025356641,
-0.016739743,
0.0013087007,
0.009713992,
-0.0061102966,
-0.01104358,
0.035717264,
-0.0665521,
0.03667631,
-0.005507259,
0.011515839,
-0.03440947,
-0.039727826,
0.00047952388,
0.022101691,
-0.0207939,
-0.02407791,
0.020997334,
0.04603429,
-0.01996563,
-0.0059976815,
0.0480977,
0.061088435,
-0.02419416,
0.032433253,
-0.02673709,
-0.015025082,
-0.062948406,
-0.0430409,
-0.057426617,
0.015155861,
-0.03873972,
-0.032433253,
0.021578575,
-0.055624772,
0.025574608,
-0.007810427,
-0.003245868,
0.0147199305,
-0.01557726,
0.05420073,
0.03225888,
-0.0035691834,
-0.076026335,
0.045046184,
0.018948458,
0.033915415,
0.0065752896,
-0.02532758,
-0.0024412125,
-0.07288763,
0.019282673,
0.007781365,
-0.0062992,
-0.026693497,
-0.019558761,
0.038449097,
-0.014196813,
0.0060848673,
-0.010171719,
-0.0049914075,
-0.028175661,
0.0018799516,
0.032026384,
-0.039291896,
0.033043556,
0.035048835,
-0.02859706,
0.054462288,
0.019471576,
0.0489405,
-0.0260396,
0.02787051,
0.034932587,
0.012562073,
-0.051556084,
-0.025792573,
-0.06225092,
-0.012402232,
-0.03342136,
-0.0041377097,
-0.0023304133,
0.050335478,
-0.0636459,
-0.07201577,
0.007534337,
-0.03862347,
-0.030457033,
-0.023700105,
-0.00403236,
0.06126281,
0.0116902115,
0.023075271,
-0.04559836,
0.018701432,
-0.010200781,
0.0359207,
0.0018981154,
-0.0047843405,
0.018149253,
0.04315715,
-0.004210365,
-0.011014518,
0.04330246,
-0.06039095,
0.033741046,
0.0020706714,
-0.003897948,
-0.0063282624,
0.0074834786,
0.02051781,
0.023947133,
0.030602343,
-0.05931565,
0.029396268,
0.013760882,
0.07625883,
-0.011428652,
0.012482152,
0.05024829,
0.027507234,
-0.02292996,
-0.032346066,
0.0048460974,
-0.00884213,
0.06777271,
-0.043273397,
0.012133407,
-0.01628928,
-0.021200769,
-0.008369871,
-0.010760225,
-0.031096397,
0.056380384,
0.022973554,
0.035571955,
-0.0151994545,
-0.026431939,
-0.006880441,
0.027434578,
0.016565371,
0.029338144,
0.033363238,
0.010375153,
0.024528373,
-0.0045772735,
-0.008108313,
0.012976207,
0.0212153,
0.0035782654,
-0.019282673,
-0.017655198,
-0.040076572,
0.027013179,
0.03554289,
0.038274724,
-0.0029443493,
0.039233774,
-0.012416762,
0.007963003,
-0.003331238,
-0.008980175,
-0.004998673,
-0.023758229,
0.0560607,
0.009917426,
-0.0050713285,
-0.0012424028,
-0.010084532,
-0.029454391,
0.02605413,
-0.026984116,
-0.012416762,
-0.028669717,
0.008747678,
-0.030747652,
0.009626805,
-0.040657815,
-0.03443853,
-0.043128088,
0.025632732,
0.061030313,
-0.039582517,
0.047313023,
-0.054026358,
0.011871849,
0.016303811,
-0.031677637,
-0.018774087,
0.029904854,
-0.023554794,
-0.054869156,
-0.002174205,
0.05321262,
-0.038826905,
-0.0004872435,
-0.060042202,
-0.027550828,
0.010774757,
0.020154534,
-0.031445142,
-0.010891004,
-0.0040686876,
0.023947133,
0.015097737,
-0.021331547,
0.0038797841,
-0.010360622,
-0.026896931,
0.023714636,
-0.040570628,
-0.020052817,
-0.0067714583,
0.0028916744,
0.005961354,
-0.0049151196,
0.045191493,
-0.016405528,
0.02464462,
0.043128088,
-0.028044881,
-0.08561681,
0.025734449,
0.028756902,
-0.023293236,
0.02660631,
0.018628776,
-0.004497353,
0.028640654,
0.0057724505,
-0.035339456,
0.00067024364,
-0.025254924,
-0.010723898,
0.0042212633,
-0.021011865,
0.021404203,
-0.030021101,
0.017364576,
-0.020837493,
0.011515839,
-0.011668415,
-0.07050454,
-0.00976485,
-0.0014549191,
0.003451119,
0.03580445,
0.0065171653,
-0.0058160434,
0.010346091,
-0.024862587,
0.01797488,
-0.012576603,
-0.031793885,
-0.020052817,
0.053532302,
0.0050386335,
0.043564018,
-0.034060728,
-0.0037744343,
0.02150592,
-0.023801822,
0.032781996,
-0.005750654,
-0.024935242,
0.03792598,
-0.0067532947,
-0.0060085794,
0.013913458,
0.0045591095,
0.032723874,
-0.022755587,
-0.006916769,
0.00048542712,
-0.02279918,
0.010317029,
0.03342136,
-0.027797854,
-0.06934206,
-0.014429309,
0.02179654,
-0.014036972,
-0.031910136,
0.05579914,
-0.030631404,
-0.03833285,
-0.03153233,
0.048010513,
-0.046353977,
0.0103824185,
-0.031241708,
-0.066203356,
0.018323625,
0.0051766783,
0.031677637,
-0.026809745,
0.009706726,
-0.027100366,
-0.024848055,
-0.053851984,
-0.017073957,
-0.012177001,
0.0390594,
-0.038885027,
0.010723898,
-0.0068150517,
-0.008725882,
0.0060993987,
-0.016376467,
0.047719892,
0.028887682,
-0.04059969,
-0.048882373,
-0.013114252,
0.011566698,
0.016638026,
0.004987775,
-0.022915429,
-0.013448466,
-0.0023649246,
0.0047116852,
-0.037112243,
-0.033886354,
-0.033130743,
-0.0037816998,
0.057688177,
-0.046877094,
0.0041268114,
0.02843722,
0.025560075,
0.024673684,
0.024949772,
-0.009568681,
-0.01174107,
-0.016667088,
-0.06579649,
0.02207263,
-0.034700092,
0.012155204,
-0.0007628789,
0.01753895,
0.06893519,
-0.035426643,
0.035978824,
0.03626944,
0.0067205997,
0.009677663,
-0.06887706,
0.012852693,
0.014698134,
0.014857975,
-0.046906155,
-0.043534957,
0.010891004,
-0.013099721,
-0.028350033,
-0.01146498,
-0.017785978,
-0.01755348,
0.046324912,
-0.054723848,
0.021157175,
0.0021778375,
-0.017756915,
-0.086198054,
0.0076069925,
0.012750976,
0.026955055,
0.0011070826,
0.03365386,
-0.027100366,
0.049608927,
-0.080618136,
-0.0390594,
-0.025298517,
0.06445964,
-0.03115452,
-0.018352687,
0.02574898,
0.01464001,
-0.028350033,
-0.050306413,
0.03481634,
-0.005107656,
-0.013455731,
-0.021011865,
0.02789957,
-0.011443184,
0.012983472,
-0.022464968,
0.048301134,
-0.005961354,
-0.009299858,
0.04484275,
0.010861943,
-0.034264162,
0.02971595,
0.054229792,
-0.055828206,
-0.0049841423,
-0.032752935,
-0.0075052753,
-0.03127077,
-0.02122983,
0.02971595,
-0.01726286,
0.00006783038,
0.03862347,
-0.008493385,
0.025865227,
0.009634071,
0.030108288,
0.030951086,
-0.022668403,
-0.05254419,
0.00034579303,
0.013964317,
0.017582543,
0.020924678,
-0.034903526,
0.015446481,
-0.014908833,
0.057542868,
-0.012111611,
-0.09584665,
0.026330221,
-0.042227164,
0.0037998636,
0.023845416,
-0.016579902,
0.01740817,
0.031706702,
-0.019922039,
-0.02587976,
-0.039582517,
0.0085006505,
-0.022029037,
-0.041384365,
-0.027405517,
0.02587976,
-0.02830644,
-0.0021578574,
-0.012729179,
0.013419404,
0.02008188,
0.026882399,
-0.023380423,
0.014894303,
-0.0044283303,
0.026402876,
0.01174107,
0.014284,
-0.007102039,
0.026010538,
0.033217926,
0.042110916,
-0.009546884,
0.040309068,
0.015693508,
-0.012634728,
0.036995996,
-0.002059773,
0.019108301,
-0.038565345,
0.022682933,
0.025385704,
-0.003629124,
0.014443841,
-0.018018473,
0.019210018,
-0.048417382,
-0.030602343,
-0.0024811728,
-0.00484973,
-0.019021114,
0.061204687,
-0.009692195,
0.045453053,
-0.01485071,
0.052282635,
0.0113051385,
0.03042797,
-0.0049478146,
0.0005262956,
0.037141304,
0.010774757,
-0.043796513,
-0.012656525,
-0.0048170355,
0.030050164,
-0.024295878,
-0.010033674,
0.0023213315,
-0.035281334,
-0.028713308,
0.015955068,
0.014407513,
0.079281285,
0.050974842,
-0.023394953,
0.0055762813,
-0.027638013,
-0.028742371,
0.00382166,
-0.07486385,
-0.031387016,
0.021462327,
-0.038972214,
0.018933928,
-0.013680962,
-0.017001301,
-0.019994693,
0.046877094,
0.018280031,
-0.010193516,
0.013535651,
-0.0041304445,
-0.0030515157,
-0.01671068,
-0.026170379,
0.003423873,
0.017582543,
-0.056118827,
-0.033741046,
0.022319658,
0.014857975,
0.005242068,
-0.00060076715,
-0.044523068,
0.015490075,
-0.0019998325,
0.018774087,
-0.040657815,
0.010360622,
-0.0123877,
0.026243035,
-0.033130743,
-0.00090818916,
-0.0068295826,
0.026548186,
0.030457033,
0.028873151,
-0.017509887,
0.023816353,
0.0148143815,
-0.0000034624713,
0.012525745,
0.0072219204,
0.0025229496,
0.0018091128,
0.0041922014,
0.01854159,
0.052689504,
0.03879784,
0.0072836773,
-0.009416105,
0.05632226,
0.021055458,
0.002726384,
-0.011036315,
0.04048344,
0.057223182,
0.005049532,
-0.007087508,
-0.019863913,
-0.021200769,
0.004540946,
0.019645948,
0.007374496,
0.021869196,
0.009481495,
0.00090274005,
-0.010484136,
-0.0186869,
0.0040686876,
-0.04487181,
-0.00025951504,
-0.0077595683,
0.022886368,
0.007570665,
0.04417432,
-0.027202083,
0.04443588,
0.017146612,
0.030602343,
0.0038725187,
-0.012017159,
0.041471552,
-0.0023195152,
0.023453077,
-0.030660467,
-0.0059976815,
-0.044261508,
-0.029062053,
-0.040686876,
0.0495508,
0.014632744,
-0.038594406,
-0.004686256,
-0.026330221,
-0.018439872,
-0.04696428,
0.026635373,
-0.07492197,
-0.026097724,
0.019122832,
0.022537623,
-0.06730772,
0.040134694,
-0.015126799,
0.026664434,
0.017713321,
0.07707257,
0.0135719795,
0.07393386,
0.023322297,
0.016158503,
-0.002755446,
0.051730454,
-0.036734436,
-0.017175674,
0.0063972846,
0.0066079847,
-0.052311696,
-0.04882425,
-0.049783297,
0.002530215,
-0.0077087097,
-0.015795225,
-0.049347367,
-0.028001288,
-0.008159172,
-0.037286613,
0.0014803484,
0.08962737,
0.01557726,
-0.0049696113,
-0.028960336,
0.015301172,
-0.04484275,
0.016231157,
-0.023438547,
0.028146598,
-0.005906862,
-0.05870535,
0.032200754,
-0.030892963,
-0.0021396936,
-0.0078031616,
-0.016492715,
-0.0019998325,
0.0044137994,
-0.0013023433,
0.04824301,
0.02590882,
-0.048708003,
-0.02150592,
0.060972188,
-0.0067278654,
0.019631417,
0.07230639,
0.024513843,
0.017306453,
-0.020779368,
-0.008260889,
0.022668403,
-0.012729179,
-0.030951086,
0.0147199305,
0.0007310923,
-0.04190748,
-0.042517785,
0.013819006,
0.003106007,
-0.018861273,
-0.019297203,
-0.027565358,
0.022755587,
-0.049870484,
0.0040141963,
-0.03626944,
0.030544218,
-0.0047552786,
-0.008108313,
0.0051912093,
-0.05318356,
0.25225863,
0.042401537,
0.033566672,
0.029657826,
0.015620854,
0.065738365,
0.017146612,
-0.014552823,
-0.020169064,
-0.015315702,
0.0054854625,
-0.07189952,
-0.0068150517,
0.009946488,
-0.007890347,
0.05940284,
-0.021970913,
0.020852024,
-0.009314388,
-0.060507197,
-0.05178858,
0.034903526,
-0.00732727,
0.05068422,
0.01159576,
-0.008682288,
-0.016013192,
-0.021040928,
0.00934345,
-0.050829533,
0.011450449,
-0.029076586,
0.015795225,
-0.022915429,
0.011087174,
0.018759556,
-0.024441186,
-0.043331522,
0.011864583,
0.013048862,
-0.0006320997,
-0.013702759,
0.04461025,
-0.005300192,
-0.05940284,
0.02930908,
-0.016332874,
-0.0074544167,
0.033566672,
-0.048475504,
0.018149253,
-0.038855966,
0.0035691834,
-0.049434554,
-0.01465454,
-0.034322284,
-0.024383062,
-0.055624772,
-0.051614206,
0.04022188,
0.041413426,
0.020445155,
0.007766834,
0.048359256,
-0.0441162,
0.031357955,
-0.011167094,
0.016158503,
0.010317029,
0.014458371,
0.012641993,
0.012540276,
-0.005434604,
-0.0752126,
0.01954423,
0.021258892,
0.03891409,
0.049899545,
0.006571657,
-0.015155861,
-0.00785402,
-0.004795239,
-0.0027209348,
-0.01626022,
0.013833538,
0.054404166,
-0.056118827,
0.019442514,
-0.009496026,
0.027507234,
0.02165123,
0.041239053,
0.022697464,
0.012671055,
0.016507246
] | The [pipeline] can also iterate over an entire dataset for any task you like. For this example, let's choose automatic speech recognition as our task:
import torch
from transformers import pipeline
speech_recognizer = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-960h")
Load an audio dataset (see the 🤗 Datasets Quick Start for more details) you'd like to iterate over. For example, load the MInDS-14 dataset: |
[
0.012670394,
0.008333304,
-0.016115407,
-0.016376503,
-0.028967116,
-0.01969822,
0.011589748,
0.016463535,
-0.015375636,
0.060690243,
0.010987777,
-0.029039644,
0.006197396,
-0.020786118,
-0.03257894,
0.01263413,
-0.021453364,
-0.03031611,
-0.042819694,
-0.028517451,
0.0011196291,
0.023585644,
-0.06190869,
-0.017246822,
-0.049927298,
0.025036177,
0.010661407,
-0.020786118,
0.06655039,
0.046881184,
-0.0060124537,
-0.015941342,
0.021714458,
-0.03211477,
-0.001354434,
-0.038439088,
0.022860378,
-0.004453132,
-0.031099398,
-0.043806054,
0.025485842,
-0.012467319,
-0.011945128,
-0.01975624,
-0.049202032,
-0.0060233325,
-0.0040034675,
-0.027197469,
0.0071765054,
-0.071656264,
-0.032636963,
0.0338264,
0.028981622,
-0.015680246,
-0.045662735,
0.00984911,
-0.014345758,
0.021990059,
-0.060690243,
-0.011285136,
0.048273694,
0.035015833,
-0.01969822,
-0.035915162,
0.02130831,
0.037278663,
-0.0066724457,
-0.03890326,
0.0038584142,
-0.02660275,
-0.05642568,
0.022135112,
-0.021395342,
-0.045227576,
-0.042964745,
0.01702924,
0.017783517,
0.019611187,
-0.025688915,
0.03707559,
0.0086451685,
0.040063683,
-0.031998727,
0.060284093,
-0.016449029,
-0.024194868,
0.051638927,
-0.03675647,
-0.034203537,
-0.03945446,
-0.026385171,
0.029184697,
-0.022323681,
0.011408431,
0.052944403,
0.039338417,
-0.018218677,
0.01342467,
-0.00025792266,
-0.0041158837,
0.06533194,
0.09875219,
-0.0073143058,
0.034783747,
-0.014055652,
0.034174524,
0.034928802,
-0.0015511622,
-0.031360492,
-0.026994394,
0.013352144,
0.00092426065,
0.049434118,
-0.022309177,
-0.023339054,
0.04395111,
0.042906728,
0.018610321,
-0.04131114,
-0.038294036,
-0.011901612,
0.008579895,
0.03942545,
-0.04615592,
0.025717925,
-0.03620527,
-0.0015801729,
0.030519186,
0.0013190772,
-0.0016490732,
0.0063098124,
0.023121474,
0.004442253,
0.013591481,
-0.00984911,
-0.017043747,
-0.02022041,
0.014425538,
0.033652335,
-0.009210876,
0.03939644,
-0.014309495,
-0.014635865,
0.08708992,
-0.024325415,
-0.0031694116,
0.013214343,
-0.018146152,
-0.025572874,
-0.004630822,
-0.07577577,
0.025964517,
0.0059109163,
0.0018566805,
-0.03196972,
0.02360015,
0.0041956627,
0.01560772,
-0.007423096,
-0.02338257,
-0.01792857,
-0.030026006,
-0.013990378,
0.038236015,
-0.00047776886,
0.021424353,
-0.024513984,
-0.041108068,
0.014853444,
-0.051058713,
0.0022755214,
-0.022164123,
0.006523766,
-0.004565548,
0.060458157,
0.015274098,
0.07142418,
-0.017232316,
0.026022537,
0.003109577,
-0.0013190772,
-0.015506183,
-0.00029033297,
0.031389505,
0.010632397,
0.0013399286,
0.017754506,
-0.0059689377,
-0.019292071,
-0.011560737,
0.03431958,
0.055265255,
-0.0466491,
0.005707842,
-0.0504785,
-0.02248324,
-0.012474572,
0.05599052,
-0.0011604254,
-0.026254622,
-0.028952612,
0.016608587,
-0.022251155,
0.004572801,
-0.015723763,
0.01808813,
0.016361997,
0.029257223,
-0.05813731,
-0.021003699,
0.011495464,
0.030200068,
-0.002799526,
0.012931489,
0.030751271,
0.0064512393,
-0.02040898,
0.019582177,
0.022280166,
-0.012692152,
0.028517451,
0.014193452,
0.011945128,
0.03666944,
0.012162708,
-0.0324629,
-0.008195504,
0.054888118,
0.022831367,
0.022990927,
0.013199838,
0.035480004,
0.008659674,
0.03310113,
0.024891123,
0.031128408,
0.05459801,
0.020046348,
0.03031611,
-0.010581628,
-0.018204171,
0.011495464,
0.02022041,
0.02567441,
-0.03292707,
0.010284269,
0.013910598,
0.0053053196,
-0.06637633,
0.07125011,
-0.042790685,
0.026124075,
0.0057985,
-0.015114539,
-0.057557095,
-0.029344255,
-0.00040297583,
0.04345793,
-0.024818595,
0.031592578,
0.031766642,
0.010168226,
0.0133086275,
-0.005740479,
0.008674179,
0.065796115,
0.0007828338,
0.031998727,
-0.015520688,
-0.060168054,
-0.048940938,
-0.053756703,
-0.0823902,
-0.010356796,
-0.022903895,
-0.035073854,
0.0040542358,
-0.05697688,
0.004616317,
-0.009950647,
-0.035886154,
-0.03841008,
0.0035284183,
0.03579912,
0.026501212,
0.024151351,
-0.05915268,
0.020321948,
-0.015216077,
0.037481736,
-0.00080504507,
-0.0030950718,
-0.016869683,
-0.042471565,
0.026124075,
-0.013983125,
0.016361997,
-0.029735899,
-0.04853479,
-0.002576507,
-0.035189897,
0.0050260923,
0.013192586,
0.03994764,
-0.023426086,
0.028082293,
0.0335653,
-0.017885055,
0.010951513,
0.0357411,
-0.018943943,
0.015549699,
0.029184697,
0.0058311373,
-0.02384674,
0.027792186,
0.039193366,
0.01808813,
-0.049202032,
-0.01904548,
-0.047722492,
0.011597,
-0.02796625,
-0.024818595,
0.0072490317,
0.04998532,
-0.00960252,
-0.06811696,
0.01557871,
-0.02840141,
-0.049289066,
-0.0028901843,
-0.030519186,
0.037539758,
0.036234282,
-0.0007619824,
-0.049260054,
-0.0052146614,
0.02941678,
0.037742835,
0.03980259,
-0.027806692,
-0.0022646426,
0.04450231,
-0.00005088193,
0.016637597,
0.018668342,
-0.018595815,
-0.009145602,
0.011582495,
-0.0047468645,
-0.0034794628,
0.015375636,
0.013765546,
0.01178557,
0.035944175,
-0.024412448,
0.025906496,
0.03800393,
0.040875982,
-0.000056803045,
0.020728096,
0.0027596364,
0.016768146,
-0.02204808,
-0.038439088,
-0.012626878,
-0.004728733,
0.041572236,
-0.044270225,
0.033797387,
-0.00894978,
0.0016572324,
0.015665742,
0.015303109,
-0.04525659,
0.07177231,
0.018218677,
0.07322284,
-0.023556633,
-0.03939644,
-0.00856539,
0.006668819,
-0.0069698044,
0.035450995,
0.025790453,
0.015868817,
0.014055652,
-0.03936743,
-0.031447526,
0.01399763,
0.0055228993,
-0.0020978313,
-0.03115742,
-0.019001964,
-0.024818595,
-0.0051058712,
0.023861246,
0.0357411,
0.0014287736,
0.026399676,
-0.04180432,
-0.021990059,
0.02059755,
-0.007890892,
-0.000562081,
-0.018871417,
0.036930535,
0.008180998,
-0.043370895,
-0.020815128,
0.0028502946,
0.014389274,
0.008732201,
-0.019495144,
0.0004152147,
-0.017275833,
0.029938973,
-0.013315881,
0.012800941,
-0.014483558,
-0.035596047,
-0.023527622,
0.027603617,
0.018407246,
-0.04725832,
0.027618123,
0.0029463924,
0.0022392583,
0.023788719,
-0.01895845,
-0.005863774,
-0.0022501373,
-0.048679844,
-0.04766447,
0.023919268,
0.06817499,
-0.011952381,
0.019814262,
-0.03756877,
0.0065310188,
-0.00002524265,
-0.004823018,
-0.025123209,
-0.008072209,
-0.0046018115,
0.014157189,
0.017856045,
-0.043167822,
-0.028357893,
0.028720526,
-0.06405548,
0.006048717,
-0.02201907,
0.006777609,
-0.019321082,
0.0338264,
-0.031418514,
0.040730927,
0.0083985785,
-0.034203537,
-0.022512252,
0.023194,
-0.043080788,
-0.083202496,
0.024978155,
0.04673613,
0.019524155,
0.031273462,
-0.020945678,
-0.016608587,
0.026747804,
0.0141862,
0.00096641673,
0.01560772,
-0.036553398,
0.014483558,
-0.024601016,
-0.024470469,
0.026095064,
-0.024151351,
0.05952982,
0.007687818,
-0.046939205,
-0.011140083,
-0.07600786,
-0.007970671,
0.0042500575,
-0.03292707,
0.028444925,
-0.014345758,
0.0014061091,
-0.014998497,
-0.029503813,
0.02360015,
-0.00648025,
-0.0043806056,
-0.008151988,
0.05181299,
-0.0110385455,
0.031012366,
-0.05178398,
-0.035683077,
0.013352144,
-0.027893724,
-0.00078872655,
-0.0071003526,
0.00033906178,
0.0066724457,
-0.010741186,
-0.01647804,
0.039135344,
-0.029880952,
-0.02201907,
-0.015317614,
-0.0059761903,
-0.019988326,
0.0067921146,
-0.014128178,
0.03530594,
-0.052451223,
-0.060690243,
-0.0458368,
0.031012366,
0.0048882915,
-0.0016309415,
0.03666944,
-0.036553398,
-0.03809096,
-0.041601248,
0.014149936,
-0.029257223,
-0.0038983037,
-0.060342114,
-0.030084027,
-0.01650705,
0.009537245,
0.0006096766,
-0.043312874,
0.010218996,
-0.03988962,
-0.022555767,
-0.053031437,
-0.013468186,
-0.018015603,
0.024847606,
-0.057179958,
0.010400312,
-0.017536927,
0.0000108860695,
-0.0051675187,
0.013780051,
0.008906264,
0.04946313,
-0.042790685,
-0.013634997,
-0.014606854,
-0.0026689782,
0.015796289,
0.012336772,
-0.01399763,
-0.004043357,
-0.046620086,
-0.002083326,
-0.043254852,
-0.029126676,
0.007205516,
-0.010523607,
0.057005893,
0.0049862023,
0.003927314,
-0.027197469,
0.03217279,
-0.0051929033,
0.014294989,
-0.031853676,
-0.026689783,
-0.016637597,
-0.051958043,
0.027415048,
-0.013040279,
0.021932038,
0.006436734,
0.0077530914,
0.091093384,
-0.022932906,
0.04131114,
0.039541494,
0.014969487,
0.05314748,
-0.045169555,
0.02412234,
0.016434524,
-0.018508784,
-0.012583362,
-0.030113038,
0.009377687,
0.006288055,
-0.008043198,
-0.050681576,
-0.012271497,
0.015448162,
0.062082753,
0.014664874,
0.02065557,
0.0044386266,
-0.048302703,
-0.060110033,
0.018697353,
0.018320214,
0.029329749,
0.041572236,
0.025413314,
0.00071393355,
0.04000566,
-0.008420336,
0.0018603068,
-0.031273462,
0.063475266,
-0.027110437,
-0.019016469,
0.03167961,
0.04760645,
-0.036785483,
-0.02229467,
0.006647061,
0.003051556,
-0.024601016,
-0.045604713,
0.009559004,
0.0020615682,
-0.0324629,
0.006378713,
0.026312644,
-0.039831597,
0.0152886035,
-0.0018485213,
0.007905398,
-0.07647203,
0.010095701,
0.051232778,
-0.044792417,
-0.0324629,
-0.043893088,
0.027008899,
-0.007550017,
-0.045575704,
0.04496648,
0.008442095,
0.011756559,
0.050710585,
-0.0108717345,
0.051087726,
-0.018668342,
-0.0013925104,
0.012568857,
-0.024905628,
-0.049608182,
-0.00902956,
0.010835472,
0.010371301,
0.024180362,
-0.017841538,
0.019886788,
-0.00069489534,
0.009312413,
-0.0014985804,
-0.09196371,
0.06829103,
-0.030374132,
-0.04070192,
-0.0047867545,
-0.009123844,
-0.026733298,
0.020031841,
-0.022990927,
-0.021482373,
0.018900428,
0.016057385,
-0.017087262,
0.025514852,
-0.051464863,
0.03156357,
-0.028604483,
-0.013025774,
-0.048447758,
-0.013605987,
0.03307212,
0.04543065,
-0.047461394,
-0.023484107,
0.039164353,
0.025355292,
-0.005892785,
0.009667793,
-0.03716262,
-0.022396209,
0.011082062,
-0.007832871,
-0.058311373,
0.050101362,
0.02016239,
-0.011314147,
0.012046665,
0.0052509247,
0.015201571,
-0.0041593993,
0.018972954,
0.06950948,
-0.02654473,
0.038787216,
0.00019559513,
0.011009535,
-0.051551893,
0.006668819,
-0.0034595178,
-0.0052944403,
-0.009994163,
-0.0010262511,
0.028386904,
0.06742071,
-0.015216077,
0.010922504,
-0.00058610545,
0.02589199,
0.036321312,
-0.0077966074,
0.029083159,
0.00040954855,
-0.0012918797,
-0.025616389,
0.0114592,
0.04812864,
-0.012460067,
0.008732201,
0.022164123,
-0.0379169,
-0.022802357,
-0.001961844,
-0.03391343,
0.042268492,
0.010472839,
-0.039135344,
-0.006248165,
-0.016608587,
-0.019770747,
0.028720526,
-0.058166318,
-0.03988962,
0.004493022,
-0.022802357,
-0.0036553398,
-0.018813396,
-0.01895845,
0.005816632,
0.0316506,
0.024920134,
0.013780051,
0.017174294,
-0.014041146,
-0.007350569,
-0.030142047,
-0.038177993,
-0.017783517,
0.038642164,
0.017174294,
-0.002150413,
0.027487574,
0.034551665,
0.0063061863,
-0.0103350375,
-0.028517451,
-0.0074122166,
0.013337638,
0.0010480091,
-0.036466364,
0.0046779644,
-0.04714228,
0.004823018,
-0.036582407,
0.022004565,
-0.0030551823,
0.04685217,
-0.008340557,
0.0064947554,
-0.0016617653,
0.02103271,
0.032491907,
-0.011792822,
0.0031331484,
0.0042283,
0.018378235,
-0.032723993,
-0.03910633,
0.011140083,
0.06260495,
0.01585431,
0.038584143,
0.007470238,
0.015274098,
0.015883321,
-0.011669527,
-0.023556633,
0.026341654,
-0.003978083,
0.03025809,
0.023643665,
-0.052915394,
-0.014324,
0.013417417,
0.015970353,
0.041021034,
-0.014846192,
-0.0018983833,
0.042123437,
-0.02629814,
0.016376503,
-0.023106968,
-0.06933541,
0.01536113,
-0.02449948,
0.06753676,
-0.008231767,
0.03495781,
-0.03446463,
0.036872514,
0.025442325,
0.028009767,
0.041833334,
0.01328687,
0.040527854,
-0.023121474,
0.014178947,
-0.016391007,
0.003974457,
-0.0015457228,
-0.03849711,
-0.03484177,
0.027415048,
0.03481276,
-0.026878351,
0.024717059,
-0.03930941,
0.013388407,
-0.059703883,
0.032433886,
-0.053350553,
-0.01623145,
0.0007375047,
-0.035828132,
-0.04908599,
0.03257894,
0.020060852,
0.020205906,
0.025558367,
0.066608414,
0.04632998,
0.055729426,
0.03986061,
0.009653288,
0.032346856,
0.046939205,
-0.04850578,
-0.011901612,
0.004112257,
0.0036444608,
0.0169132,
-0.056309637,
-0.050188396,
0.009174612,
0.0229184,
0.009783836,
-0.033739366,
0.017710991,
-0.026486708,
-0.025282767,
0.024426952,
0.06916135,
-0.0007841937,
0.004754117,
0.0049100495,
0.02474607,
-0.016608587,
0.008739453,
-0.021975555,
0.014527074,
-0.0431098,
-0.06434558,
0.011865349,
-0.04081796,
-0.016057385,
0.024180362,
0.0036118238,
-0.04525659,
0.0020089864,
0.018102635,
0.013228849,
-0.001801379,
-0.039193366,
-0.005871027,
0.071830325,
0.02499266,
0.0070894733,
0.06695654,
0.011248873,
-0.03298509,
0.01489696,
-0.036292303,
0.025616389,
0.0059653115,
0.051551893,
0.0128227,
0.022149619,
-0.009174612,
-0.07415118,
-0.02090216,
0.021932038,
-0.004779502,
-0.008405831,
-0.03620527,
0.0056824577,
-0.06469371,
-0.007183758,
-0.048273694,
0.05079762,
-0.028967116,
0.008311546,
0.00020420765,
-0.08494313,
0.25181228,
0.046039876,
0.057934232,
0.04769348,
0.022961916,
0.021206772,
-0.0027632627,
-0.014853444,
-0.004895544,
0.025007166,
-0.0106686605,
-0.037800856,
-0.023150485,
0.052132107,
-0.004279068,
0.01560772,
-0.0649258,
-0.01536113,
0.014911465,
-0.038177993,
-0.052538257,
0.052973416,
0.016608587,
0.016028374,
0.031447526,
-0.015723763,
0.016057385,
-0.03585714,
-0.008601652,
-0.007140242,
0.026457697,
-0.017014736,
0.039338417,
-0.012242487,
0.012104686,
0.013939609,
-0.0021540395,
-0.029097665,
0.0019763494,
0.0014006696,
0.029735899,
-0.027357027,
0.052567266,
-0.027922735,
-0.02654473,
0.012315013,
-0.05964586,
0.04902797,
0.04630097,
-0.03814898,
0.0012664954,
-0.047171287,
0.023542129,
-0.035334952,
-0.03495781,
0.011321399,
-0.038323045,
-0.037336685,
-0.05369868,
0.029590845,
0.031911697,
-0.0013970432,
-0.00077512785,
0.019582177,
-0.0021667315,
0.04223948,
0.007336064,
0.029286234,
0.011466453,
0.008442095,
-0.018856911,
0.014556085,
-0.0018539608,
-0.042964745,
0.024238383,
0.028415915,
-0.004540164,
0.039599515,
0.014251473,
-0.044386268,
0.010987777,
0.014577843,
-0.00014052025,
-0.034087494,
0.02976491,
0.049318075,
-0.021786986,
0.002391564,
-0.011582495,
0.0171888,
0.034783747,
0.04345793,
0.008899012,
0.017362863,
-0.011495464
] | If you have more than one input, pass your inputs as a list to the [pipeline] to return a list of dictionaries:
results = classifier(["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."])
for result in results:
print(f"label: {result['label']}, with score: {round(result['score'], 4)}")
label: POSITIVE, with score: 0.9998
label: NEGATIVE, with score: 0.5309 |
[
0.0018536539,
0.05503574,
0.0020490533,
0.018462604,
-0.007358284,
-0.031348404,
-0.041009232,
0.012054912,
0.02409574,
0.04729018,
0.031348404,
-0.04312166,
0.070132546,
-0.03534793,
-0.021152427,
0.02974296,
-0.037460357,
-0.047374677,
-0.023011362,
-0.049656097,
-0.007654024,
-0.022138225,
-0.054416098,
-0.017885208,
-0.026236333,
0.02220864,
0.017800711,
-0.0040664203,
0.0770613,
0.05359929,
0.019856805,
-0.025574438,
-0.034221303,
-0.03461562,
0.02850367,
-0.016505089,
0.046726864,
0.01333645,
-0.041516215,
-0.02523645,
-0.015998106,
-0.009442545,
0.019969467,
-0.03777018,
-0.026630651,
-0.0063900887,
-0.01318858,
0.017209232,
-0.01929349,
-0.02151858,
0.007154083,
-0.007752604,
0.018279526,
-0.04734651,
0.005840858,
-0.035601422,
-0.018575266,
-0.030418936,
-0.039150298,
-0.0046614204,
0.016237516,
0.013568817,
0.022152308,
-0.03881231,
-0.020138461,
0.02608142,
-0.015195385,
-0.039938934,
-0.03208071,
-0.01571645,
-0.04168521,
0.029404972,
-0.028728995,
-0.03306651,
-0.028024852,
-0.021279173,
-0.022053728,
-0.020476451,
0.019054083,
0.02539136,
-0.013780059,
0.051796686,
0.027039055,
0.004545237,
-0.016082603,
-0.035911243,
0.05126154,
-0.040981065,
0.025039291,
0.0026510947,
-0.048050653,
0.04754367,
-0.06416142,
-0.029320475,
0.002434571,
0.03574225,
0.0028940237,
0.024884379,
0.017659882,
0.022448048,
0.036108404,
0.08365207,
-0.02156083,
0.020913018,
-0.015984025,
-0.0071505625,
0.0068689054,
-0.025799764,
-0.03399598,
-0.028151598,
0.011604261,
0.0093580475,
0.033348165,
-0.024856213,
0.011991539,
0.02425065,
0.03802367,
0.015730534,
-0.023433847,
-0.0059781657,
-0.018166864,
0.045149587,
-0.00027989646,
-0.051937517,
0.008463787,
-0.061795503,
0.0026510947,
0.00026449334,
-0.032446865,
0.028038936,
-0.025447693,
0.018124616,
0.006875947,
0.023518344,
-0.000153701,
0.005953521,
-0.032644026,
-0.012730888,
0.010245266,
-0.003395725,
0.036671717,
-0.013956095,
-0.022786036,
0.065062724,
-0.028813493,
0.008520119,
0.061908167,
-0.049712427,
-0.008844024,
0.039600946,
-0.042558346,
0.040586747,
0.007023817,
-0.02142,
-0.036671717,
0.003872781,
-0.019941302,
-0.0048304144,
-0.016913492,
0.01660367,
0.0043199114,
0.004471302,
-0.078863904,
0.02539136,
-0.005548639,
0.027236214,
0.031292073,
-0.020194793,
0.039600946,
-0.055965208,
-0.0034678995,
0.025996923,
0.02270154,
0.022321302,
0.03951645,
-0.0013361095,
0.0143152075,
-0.0024328106,
0.022194557,
-0.005464142,
-0.02201148,
0.0005276664,
0.04069941,
0.007576568,
-0.02736296,
0.0019223078,
-0.016617753,
0.0129491715,
-0.032728523,
0.0067139943,
0.028024852,
0.04872663,
-0.04224852,
0.005721154,
-0.04709302,
0.008914438,
-0.06382343,
-0.0029573964,
0.0050486983,
-0.02226497,
-0.00010232064,
0.03137657,
-0.002344793,
0.042671006,
-0.040868405,
0.039093964,
0.060894202,
0.0466987,
-0.0008652145,
0.018040119,
0.0124069825,
0.021321421,
-0.010322723,
0.009203136,
0.025799764,
-0.019631479,
-0.0040382547,
0.004591006,
0.040952902,
-0.019011835,
0.017631717,
0.005140237,
0.035573255,
0.016251598,
-0.008407456,
-0.004467781,
0.028686747,
0.033376332,
0.027292546,
0.022039646,
-0.001427648,
0.02979929,
-0.013216746,
0.047966156,
0.016237516,
0.027475622,
0.034587458,
0.03684071,
0.018462604,
-0.011660592,
-0.039600946,
0.017406391,
0.035516925,
0.018533017,
-0.0123929,
-0.015955858,
0.012730888,
-0.0060626627,
0.0024909023,
0.0070731067,
-0.062189825,
0.036868878,
-0.0054923077,
0.033376332,
-0.02661657,
-0.069625564,
0.0055662426,
0.041121896,
-0.04357231,
-0.018969586,
0.014103965,
0.032446865,
-0.0051085507,
-0.010836746,
0.04700852,
0.0077314796,
-0.026137752,
-0.0018483729,
-0.006277426,
0.0062386985,
-0.038305327,
-0.058866274,
-0.07869491,
0.011681716,
-0.04253018,
-0.013294201,
0.011174734,
-0.05869728,
0.002508506,
0.016983906,
-0.0067280773,
-0.020715859,
-0.022025563,
0.023264853,
0.016138935,
-0.002601805,
-0.02974296,
0.038164496,
0.036812544,
0.047177516,
-0.01021006,
-0.005766923,
0.042023197,
-0.023490177,
0.007921598,
-0.029376805,
-0.022574794,
-0.0022074853,
0.01268864,
-0.004788166,
-0.0024310504,
-0.007745562,
-0.019645562,
-0.036559053,
-0.045543905,
0.025856094,
0.02974296,
-0.02934864,
0.028489586,
0.048670296,
-0.00976645,
0.04844497,
0.03039077,
0.030925918,
-0.027954439,
0.029095149,
0.065062724,
0.02464497,
-0.056810178,
-0.027531954,
-0.06804828,
-0.054810416,
-0.027644616,
-0.01021006,
-0.010878994,
0.0524445,
-0.034193136,
-0.060612544,
0.0057422784,
-0.051543195,
-0.03196805,
-0.021166509,
-0.01927941,
0.042389352,
0.052613493,
-0.009935444,
-0.03912213,
0.011871834,
-0.016040355,
0.026123669,
0.021222841,
0.010780415,
0.009935444,
0.03171456,
-0.015589705,
-0.0005113832,
0.024067575,
-0.046022724,
0.029489469,
0.027320711,
0.011667633,
0.013012545,
0.011963373,
0.032249704,
0.0041650003,
0.033010177,
-0.044107456,
0.024363315,
0.035601422,
0.04368497,
0.021588994,
0.027884025,
0.027137633,
0.0053866864,
-0.0085905325,
-0.030559763,
0.012561894,
0.023715504,
0.0457129,
-0.025208285,
0.015350296,
0.017983787,
-0.032953847,
0.017321894,
0.011977456,
-0.023828166,
0.031996213,
0.007456864,
0.04644521,
-0.046473373,
-0.0075624855,
0.023208521,
0.061682843,
0.04467077,
0.03630556,
0.0485013,
-0.0001829669,
-0.028841658,
0.0016089645,
-0.005090947,
-0.0100410655,
-0.018547101,
0.003217929,
-0.0056436984,
-0.0061401185,
-0.045149587,
-0.000051682924,
0.000020354106,
0.026348995,
0.02582793,
0.049909588,
0.015392545,
0.0390658,
0.03320734,
-0.04168521,
-0.018673846,
-0.0014382101,
0.04247385,
-0.015223551,
0.003311228,
-0.00520361,
0.0060450593,
-0.041262724,
0.01343503,
-0.012660474,
0.019744143,
-0.04993775,
-0.0071716867,
-0.0014927811,
0.022983195,
0.002855296,
-0.03886864,
-0.03123574,
0.039995268,
0.04447361,
-0.050951716,
0.0063020713,
-0.08736994,
0.050444733,
0.042445682,
-0.056387693,
-0.045093257,
-0.0016873004,
-0.031799056,
-0.027151717,
0.0485013,
0.021786155,
0.01487148,
0.0043058284,
-0.04154438,
0.0032196895,
-0.0028940237,
-0.013526568,
-0.00828071,
-0.01670225,
-0.021082012,
0.007851183,
0.0029556362,
0.01982864,
-0.0047564795,
0.014434911,
-0.010519882,
0.018166864,
-0.016378343,
-0.030447101,
-0.0038094083,
0.01927941,
-0.009907278,
0.018913254,
0.031094912,
-0.01699799,
0.0016564941,
-0.01591361,
-0.011118403,
-0.07897657,
0.013554734,
0.027827693,
-0.00852716,
0.00021003236,
0.032165207,
0.03579858,
0.012132367,
0.0049853255,
-0.023870414,
0.009301716,
-0.007154083,
-0.00044999077,
0.0006508913,
-0.024123905,
0.023518344,
-0.019096332,
0.013378698,
0.0036721006,
-0.031545565,
-0.003291864,
-0.056331363,
-0.007837101,
-0.007273787,
-0.035516925,
0.033742487,
0.018871006,
0.001333469,
0.015054557,
-0.04368497,
0.0007481509,
0.019575149,
-0.034333967,
-0.0035242308,
0.055796213,
-0.024799882,
0.048332307,
-0.030869586,
-0.013787101,
0.037657514,
-0.018321775,
0.020631362,
-0.01858935,
-0.013815267,
0.032446865,
-0.051177043,
-0.0037319527,
-0.00743574,
-0.035038106,
0.009808699,
-0.047233846,
-0.0044994676,
0.030869586,
-0.035629585,
-0.008984853,
0.026855977,
-0.005101509,
-0.02934864,
-0.039093964,
0.011231066,
-0.022574794,
0.014927811,
0.036418226,
-0.03326367,
-0.027447456,
-0.029940119,
0.033573493,
-0.047431007,
-0.010005858,
-0.010555089,
-0.057964973,
-0.021434084,
0.040952902,
-0.019152664,
-0.03286935,
0.013392782,
-0.031404734,
-0.010787456,
-0.047797162,
-0.03377065,
-0.0036368936,
0.0495716,
0.00684074,
0.0181387,
-0.0181387,
-0.01224503,
0.034643788,
-0.018533017,
0.05438793,
0.044389114,
-0.024870297,
-0.026306747,
0.0014329291,
0.0124069825,
0.028588166,
-0.01611077,
-0.039206628,
0.03475645,
-0.027264379,
0.016251598,
-0.01155497,
-0.019927219,
0.023447929,
-0.044248287,
0.06635834,
-0.047318343,
-0.01789929,
-0.006946361,
-0.003548876,
0.014547574,
0.038108166,
-0.013357574,
-0.006837219,
-0.024574557,
-0.047966156,
0.013399823,
-0.0070871897,
-0.0074850298,
-0.0014452515,
0.018871006,
0.041065563,
-0.006101391,
0.06280947,
0.042051364,
-0.026996806,
0.005879586,
-0.06252781,
0.010928284,
-0.01254077,
-0.0024064053,
-0.010203018,
-0.039629113,
0.0020261686,
-0.0065872488,
-0.023785917,
-0.020251125,
-0.008294793,
-0.037291363,
0.023631006,
-0.028292427,
0.02696864,
0.0040030475,
-0.014505326,
-0.057964973,
0.0010606139,
0.027236214,
0.021377752,
0.006523876,
0.022349468,
0.023560593,
0.06331645,
-0.073005445,
-0.033320002,
0.015477042,
0.07452639,
-0.055965208,
-0.03568592,
0.023814084,
-0.0073160357,
-0.045290414,
-0.0513742,
-0.008991893,
-0.05100805,
-0.005298669,
-0.034812782,
0.031799056,
-0.0016432914,
-0.029573966,
-0.011259231,
0.024701303,
-0.013104083,
0.012456273,
0.009829823,
-0.005478225,
0.0025419528,
0.0195329,
0.035714082,
-0.042220358,
-0.013913847,
-0.0149982255,
-0.023926746,
-0.044586275,
0.0070871897,
0.03847432,
0.00033644788,
0.012984379,
0.044924263,
-0.018180948,
0.04878296,
0.036502723,
0.040220592,
0.00015755178,
-0.017040238,
-0.053711955,
0.0073653255,
0.01913858,
-0.0059676035,
0.022039646,
-0.03137657,
0.03461562,
-0.016040355,
0.063879766,
0.027729113,
-0.06878059,
0.04078391,
-0.044191953,
-0.023490177,
0.005781006,
0.014491243,
0.022293137,
0.027560119,
-0.014448995,
-0.044191953,
-0.030052781,
-0.02494071,
-0.0068090535,
-0.020941185,
-0.060161896,
-0.0011591938,
-0.028982487,
-0.03351716,
-0.0034538168,
0.0019575148,
0.020884853,
-0.0023166272,
-0.0040734615,
0.021673491,
0.011019823,
0.039093964,
0.028982487,
0.001284179,
0.004105148,
0.024109824,
0.011709882,
0.008639823,
-0.027334794,
0.047825325,
0.0021951627,
-0.027489705,
-0.0049958876,
0.026630651,
0.02136367,
-0.027391125,
0.009484793,
0.019420236,
0.010019941,
-0.024152072,
-0.02846142,
0.021701658,
-0.057964973,
-0.01809645,
-0.004298787,
-0.012977337,
0.005523994,
0.020659527,
-0.007970888,
0.053176805,
-0.011674675,
0.061795503,
-0.023856333,
-0.009512959,
-0.007992012,
0.022462131,
0.03346083,
0.0032707397,
-0.002612367,
-0.028869823,
0.027377043,
0.025813846,
-0.020786272,
0.00461213,
-0.02687006,
-0.012963255,
-0.01209716,
-0.010984615,
0.05086722,
0.0419387,
0.030024616,
-0.024504142,
-0.024659054,
-0.008344083,
-0.012590059,
-0.015955858,
-0.09970651,
-0.056246866,
0.051205207,
-0.054275267,
0.01571645,
-0.01884284,
-0.022870533,
-0.02096935,
0.051346038,
-0.057683315,
0.0024222485,
0.022771953,
0.019997634,
-0.012766095,
-0.005372604,
-0.0073160357,
0.005710592,
0.012885799,
-0.050613727,
0.020617278,
0.03822083,
0.058077633,
0.030531598,
-0.018997751,
-0.052528996,
-0.0039044674,
-0.011885918,
-0.011625385,
-0.038502485,
0.014012426,
-0.022363551,
0.013871598,
-0.008942604,
-0.0073089944,
0.004238935,
-0.012984379,
0.011970415,
0.005443018,
-0.03137657,
0.03117941,
-0.0012718566,
-0.0066999113,
0.029404972,
0.019715976,
0.0130900005,
-0.023039527,
0.0020384912,
0.0036580178,
0.049064618,
0.013899764,
-0.0004174242,
-0.017575385,
0.041572545,
-0.022180473,
0.0026141272,
-0.02171574,
0.04928994,
0.036418226,
-0.00952,
0.022898698,
-0.009970651,
-0.014167338,
-0.008252544,
-0.012040828,
-0.0029081067,
0.024053492,
-0.019870888,
0.0020596154,
-0.00743574,
0.013505444,
0.01839219,
-0.064330414,
-0.024968876,
0.024997042,
0.01284355,
0.011822545,
0.04140355,
-0.01155497,
0.07007621,
0.02751787,
0.020462368,
0.032052547,
-0.022462131,
0.039629113,
0.00366858,
0.014322249,
-0.020307457,
-0.013456155,
-0.048670296,
0.015237633,
-0.03410864,
-0.0025049853,
0.0064816275,
-0.030616095,
0.0068935505,
0.014463077,
-0.024828048,
-0.015941776,
0.010829705,
-0.05993657,
-0.02077219,
0.02810935,
-0.023983078,
-0.020589113,
0.0639361,
0.0009294675,
0.0035418344,
0.0041826037,
0.08145515,
0.020603197,
0.08810225,
0.013132249,
0.007759645,
-0.027700948,
0.045543905,
-0.036953375,
-0.047121186,
-0.017969705,
-0.00086785504,
-0.01135077,
-0.03886864,
-0.055683553,
-0.01338574,
0.0028077664,
-0.0038199704,
-0.045487575,
0.03315101,
-0.0224058,
-0.060556214,
0.019969467,
0.09266509,
0.008829941,
-0.014589823,
-0.0362774,
-0.009843905,
-0.047712665,
-0.036108404,
-0.037460357,
0.06624568,
-0.0073864497,
-0.0686116,
0.010871953,
-0.035178937,
-0.030278107,
0.030278107,
-0.005988728,
-0.016336095,
0.029771125,
0.011963373,
0.034446627,
0.022490297,
-0.05078272,
0.021617161,
0.034643788,
0.033545326,
0.019307574,
0.065569706,
-0.00025327108,
-0.017814793,
0.015279882,
0.0074286982,
0.020532781,
-0.02364509,
-0.01656142,
-0.017166983,
0.010364971,
-0.07463905,
-0.027503788,
0.019870888,
0.04258651,
-0.017688047,
-0.025250534,
-0.037854675,
0.0485858,
-0.08089184,
-0.01090716,
-0.012808343,
0.03748852,
0.009062308,
-0.00758361,
-0.018899173,
-0.048360474,
0.23411314,
0.053458463,
0.067710295,
0.015237633,
0.013843432,
0.046417043,
0.051092546,
-0.03123574,
-0.0068794675,
-0.022138225,
-0.014139172,
-0.036868878,
0.006118994,
0.020546865,
-0.028222013,
0.066752665,
-0.008344083,
-0.009696036,
0.0003291864,
-0.06996355,
-0.031911716,
0.030841421,
-0.022969114,
0.07565302,
0.011639467,
0.026109587,
0.004798728,
-0.019786391,
0.022194557,
-0.015223551,
0.0040840236,
-0.036953375,
0.035319764,
-0.012554852,
0.014815148,
0.0045734025,
0.0012120045,
-0.040051598,
0.014153255,
-0.01254077,
0.019673727,
0.0048163314,
0.00014908006,
-0.0020332101,
-0.080441184,
0.01829361,
0.036221065,
0.03182722,
0.0572045,
-0.046022724,
0.023236686,
-0.03148923,
0.015195385,
-0.055401895,
-0.0104987575,
-0.039938934,
-0.04852947,
-0.03743219,
-0.0012630548,
0.03019361,
-0.0071505625,
0.068555266,
0.0027778402,
0.013139291,
-0.010660711,
-0.004619172,
0.006696391,
-0.007456864,
-0.02082852,
-0.0010174853,
0.0009778773,
-0.012118285,
0.011019823,
-0.010822663,
-0.017476805,
0.08421539,
-0.0000016056364,
0.025898343,
0.0029521154,
-0.044839766,
-0.010541006,
-0.021884734,
0.03796734,
-0.016617753,
0.03292568,
0.03658722,
-0.053655624,
0.02171574,
-0.023673255,
0.03317917,
0.033010177,
0.0039889645,
0.024870297,
0.040643077,
0.014096923
] | You need to make sure the sampling rate of the dataset matches the sampling
rate facebook/wav2vec2-base-960h was trained on:
dataset = dataset.cast_column("audio", Audio(sampling_rate=speech_recognizer.feature_extractor.sampling_rate))
The audio files are automatically loaded and resampled when calling the "audio" column.
Extract the raw waveform arrays from the first 4 samples and pass it as a list to the pipeline: |
[
0.027646199,
-0.032813977,
-0.039393716,
0.019103834,
0.010879161,
-0.043093055,
-0.0038581837,
-0.00047962554,
0.044985082,
0.034988396,
0.020106327,
0.007702248,
0.025415301,
-0.013321853,
-0.018284896,
0.0041899947,
-0.031740885,
-0.033463478,
-0.010095522,
-0.026488392,
-0.008394109,
0.0036093257,
-0.07647181,
-0.0030639556,
-0.032164473,
0.0070033274,
0.020826427,
0.03264454,
0.070033275,
0.04069272,
0.003203387,
-0.006127911,
0.008676501,
-0.039450195,
0.01817194,
-0.032531586,
0.05625253,
-0.006219689,
-0.032249194,
-0.036372118,
0.008817697,
0.01236172,
0.032503344,
-0.019696858,
-0.09098677,
-0.002183245,
-0.02911464,
-0.02905816,
-0.027519124,
-0.042358834,
0.027123773,
0.0022591378,
0.036485076,
-0.0036252101,
0.008288212,
-0.02575417,
-0.04100335,
0.0017923082,
-0.041539896,
-0.011895773,
0.012255822,
0.03267278,
-0.004391199,
-0.05404987,
0.008076418,
0.02069935,
-0.00580669,
-0.016195195,
-0.022054832,
-0.02362211,
-0.03450833,
0.028563974,
-0.008542365,
-0.046227608,
-0.02360799,
-0.01380898,
0.0031469085,
0.012418198,
-0.034310658,
0.03233391,
0.033322282,
0.028620452,
0.029566467,
-0.022478422,
-0.017494198,
-0.05743858,
0.052157845,
0.019146193,
0.014098432,
-0.023960982,
0.0037346373,
0.024892876,
-0.06037546,
-0.009424841,
0.06308643,
0.02583889,
-0.028846366,
0.035440225,
0.02694022,
0.021941876,
0.08618611,
0.02653075,
-0.0012716475,
0.044843886,
-0.013004162,
0.049249206,
0.03597677,
-0.02034636,
-0.009001252,
-0.01636463,
0.02394686,
0.007222181,
0.046029933,
-0.013343032,
-0.0056407847,
0.06178742,
0.030272447,
0.028648691,
-0.01052617,
-0.0013907817,
-0.014867951,
0.024511645,
0.03778408,
-0.041257504,
0.0444203,
-0.035468463,
-0.019357987,
0.03126082,
-0.030837232,
-0.002365035,
0.0181437,
0.014698516,
-0.006022014,
0.0029845329,
-0.032192715,
-0.010257898,
-0.0061208517,
-0.0031945622,
0.023029087,
-0.0032016218,
0.042076442,
-0.026333075,
-0.0021055872,
0.0778273,
0.033124607,
0.00837293,
0.0019696858,
-0.019866293,
-0.024652842,
0.0023032615,
-0.04981399,
0.0076175304,
0.03343524,
-0.030272447,
-0.018680247,
0.025005832,
-0.0032404508,
-0.0112109715,
-0.014409063,
-0.025217626,
0.008838877,
-0.010046104,
-0.058285758,
0.026770784,
0.021235896,
0.03961963,
-0.01090034,
0.01417609,
0.033294044,
-0.013766621,
0.005785511,
-0.0034840142,
-0.0117263375,
0.000073024865,
0.022097193,
-0.0011472184,
0.06410304,
0.0022026594,
0.035383746,
0.020459317,
0.006978618,
0.004398259,
0.00905773,
-0.0035299028,
0.009551917,
-0.0037487568,
-0.0005387514,
0.02105234,
-0.014006655,
-0.033689395,
0.022859652,
0.0057678614,
-0.02945351,
0.041539896,
0.0009566037,
0.022916129,
-0.02403158,
0.028902845,
-0.00034791607,
-0.024229253,
-0.04430734,
-0.0017667164,
0.0053160335,
0.05633725,
0.010745024,
-0.0070103873,
0.027222611,
0.053343892,
-0.013117119,
0.033294044,
0.044617973,
0.032220952,
-0.05272263,
-0.005301914,
0.0319668,
-0.00874004,
-0.020600513,
0.016858816,
-0.0043806094,
-0.0042252936,
0.010759144,
0.031402014,
0.006279697,
0.011747517,
-0.026078923,
-0.04470269,
0.032249194,
0.027363807,
-0.009996685,
0.057184428,
0.018355494,
0.010603828,
0.002114412,
0.08189375,
-0.016505826,
0.04216116,
0.07116284,
0.015460975,
0.03487544,
-0.00039556975,
-0.025994204,
0.022661977,
0.02031812,
0.02835218,
0.007596351,
0.016901175,
-0.0017437721,
-0.0030233618,
-0.01636463,
0.004504156,
-0.03597677,
0.045549866,
-0.011098014,
0.024483407,
-0.03815119,
-0.057212666,
0.0181437,
0.050350536,
-0.07268776,
-0.060601372,
-0.012531155,
0.01849669,
-0.0015143283,
0.0075822314,
0.011429826,
0.00084276433,
0.016844697,
-0.017338883,
-0.023410317,
-0.030837232,
-0.047018304,
-0.05376748,
-0.08002996,
-0.02655899,
-0.030074773,
-0.043375447,
0.0013087115,
-0.059697717,
-0.0053689824,
-0.047921963,
0.0034610697,
0.005672554,
-0.0045994637,
0.0567326,
0.007377497,
-0.03205152,
-0.006216159,
0.010039044,
0.020515796,
0.042415313,
0.02216779,
-0.015771607,
-0.011719277,
-0.0428389,
0.03854654,
-0.015362137,
0.005894938,
-0.007384557,
-0.04405319,
-0.006322056,
-0.06359473,
0.007815205,
0.0010201419,
-0.0066326875,
-0.038772453,
-0.0020279293,
0.034734245,
-0.032249194,
0.009728412,
0.04176581,
-0.05591366,
0.031430256,
0.029509988,
0.004444148,
-0.009968446,
0.038038235,
0.040466808,
0.038687736,
-0.031514972,
-0.03306813,
-0.04032561,
-0.013343032,
-0.013766621,
-0.017931907,
-0.0016952358,
0.04543691,
-0.025669454,
-0.07788378,
0.037360493,
-0.061448548,
-0.040156174,
-0.019329747,
-0.011302749,
0.031825606,
0.020685231,
-0.018411973,
-0.045719303,
-0.0022644326,
-0.008210554,
0.025909487,
0.019682739,
-0.030667797,
0.024596363,
0.028902845,
-0.010003745,
0.02215367,
0.023918621,
-0.0181437,
-0.0005387514,
0.014995027,
-0.00035828515,
-0.0042676525,
-0.010081403,
0.015743367,
0.025598856,
0.044279102,
-0.043827273,
0.0031698528,
0.011330988,
0.039506674,
-0.013554827,
0.03953491,
0.004528865,
0.02616364,
-0.006643277,
-0.0088459365,
0.013780741,
-0.016421108,
0.06466782,
-0.023833904,
0.019795695,
-0.00027599427,
-0.052750867,
-0.004077038,
-0.010709725,
-0.04004322,
0.06720935,
0.014585558,
0.06348177,
-0.019287389,
0.011147433,
0.02835218,
0.006300877,
0.043686077,
0.009248345,
0.035411984,
-0.020812307,
-0.0034875441,
-0.028295701,
0.0011225091,
0.013018282,
-0.027999189,
0.0003086459,
-0.00618086,
-0.016505826,
-0.039506674,
0.054953527,
-0.0020844077,
0.014627918,
-0.0075892913,
0.040184416,
-0.010857982,
0.022266628,
0.024059817,
-0.014952669,
0.008175255,
-0.038377102,
0.052750867,
-0.014281987,
0.017395362,
-0.029142879,
-0.0038723035,
-0.030780753,
0.026347196,
0.00254506,
0.035553183,
-0.057212666,
0.0012407609,
-0.012036969,
0.007857564,
-0.044081427,
-0.035016637,
-0.031430256,
0.033576436,
0.022097193,
-0.03919604,
0.002656252,
-0.027702678,
0.038038235,
0.018214298,
-0.01855317,
-0.00725748,
-0.021941876,
-0.039563153,
-0.020925265,
0.0036358,
0.032813977,
-0.0022838472,
0.011232151,
-0.042471793,
-0.008203494,
0.0006570032,
0.009495439,
0.004069978,
-0.040862154,
-0.009933147,
-0.0034434202,
0.0026227178,
0.00017230338,
-0.044787407,
0.024257492,
-0.037473448,
0.004878326,
-0.029227596,
0.0031592632,
-0.0030992548,
0.0070951045,
-0.0022644326,
0.012898265,
-0.012495856,
-0.0036781589,
0.010476751,
0.035327267,
-0.02328324,
-0.037614644,
0.007878743,
0.013117119,
-0.045323953,
0.03750169,
0.005707853,
-0.016463468,
-0.0047335997,
0.028818127,
0.0045676944,
-0.018581409,
-0.034395374,
0.010850921,
-0.018369615,
-0.027137894,
-0.014338465,
-0.034225937,
0.030808993,
-0.010794443,
-0.02365035,
-0.03558142,
-0.08940538,
-0.0075469324,
-0.023735067,
0.0009821955,
0.055800706,
0.0056443145,
0.01163456,
0.010519111,
-0.068621315,
-0.025500018,
-0.007056276,
0.0167035,
-0.036428597,
0.035411984,
-0.010215539,
0.049898706,
0.0046347626,
-0.014274927,
0.056506686,
-0.034423612,
-0.0088812355,
-0.02288789,
-0.009664874,
0.046001695,
-0.015291539,
-0.043347206,
0.015813965,
-0.03961963,
0.0076810685,
-0.0068127126,
0.024059817,
0.023678588,
0.007006857,
-0.010716785,
0.070428625,
0.018044863,
-0.044279102,
-0.034056503,
0.008055238,
0.021574765,
0.014345525,
0.04910801,
-0.0130959395,
-0.041568138,
-0.07330902,
0.016887056,
-0.011373347,
-0.0043029515,
-0.077149555,
-0.030696034,
0.022676095,
0.028267462,
0.031797364,
-0.028592214,
0.02542942,
-0.051112995,
0.030978428,
-0.034028262,
0.0093260035,
-0.029679423,
0.037275773,
-0.033407,
0.023240881,
0.0035863812,
-0.02365035,
-0.0011913422,
-0.028662812,
0.0370781,
0.014966788,
-0.013583066,
-0.005778451,
0.00015366108,
0.031825606,
0.005160718,
0.012213464,
-0.011528662,
0.0077587264,
-0.04645352,
0.0039429017,
-0.04546515,
-0.044081427,
-0.054416984,
-0.008662381,
0.058342233,
-0.03738873,
-0.02942527,
-0.033237565,
0.0335482,
0.03535551,
0.023029087,
-0.054332264,
-0.013173598,
-0.044617973,
-0.0377276,
0.019287389,
-0.02359387,
-0.04111631,
-0.029397031,
0.011486304,
0.026982578,
-0.05492529,
0.032107998,
0.06850836,
0.011373347,
-0.011839294,
-0.068056524,
0.04569106,
-0.008175255,
-0.021913636,
-0.034564808,
-0.042274117,
0.00002199295,
-0.00982725,
-0.016858816,
-0.06658809,
-0.038122952,
-0.018327255,
0.06370769,
-0.00030798404,
0.011676919,
0.021687724,
-0.03425418,
-0.00036335937,
0.021391211,
0.020798188,
0.0058631687,
0.03168441,
0.014825592,
-0.010420273,
0.0011904597,
-0.04975751,
-0.0027850934,
-0.0131665375,
0.05964124,
-0.0225349,
-0.041257504,
0.07460803,
0.040608004,
-0.053682763,
-0.040184416,
-0.0014128436,
-0.022732574,
-0.035327267,
0.0047053606,
0.02141945,
0.021518288,
-0.027434405,
0.019019118,
0.01921679,
-0.010780323,
0.010356735,
0.011218031,
0.0008943891,
-0.03891365,
0.010688546,
0.056789078,
-0.031797364,
0.0026597818,
-0.044166144,
0.036880426,
-0.028818127,
0.016548185,
0.027307328,
-0.0005740505,
-0.008139956,
0.030413643,
0.0062726373,
0.051141232,
0.008132896,
-0.010702666,
0.020416958,
-0.038038235,
-0.03425418,
0.0010298492,
0.03891365,
-0.0092201065,
0.0117616365,
-0.008168195,
-0.01234054,
0.04221764,
0.06415951,
0.004507686,
-0.049983423,
0.043177772,
-0.029481748,
-0.013124179,
-0.014740874,
-0.006971558,
-0.0046630017,
0.047809005,
-0.016053999,
-0.016124597,
-0.032418627,
0.0045323954,
-0.003559907,
0.030103011,
-0.054332264,
-0.006406774,
-0.032898694,
-0.021122938,
-0.021546528,
0.0037381672,
-0.030272447,
0.018750845,
-0.027688557,
0.01633639,
-0.0121358065,
0.010639127,
-0.01271471,
-0.015743367,
-0.0031839723,
-0.008111717,
0.015686888,
0.0046735913,
-0.008563545,
0.033689395,
-0.009205987,
-0.032898694,
0.022323105,
-0.0102861365,
0.014613798,
-0.030357165,
0.038405344,
0.035411984,
-0.0024832867,
0.0132724345,
-0.043177772,
0.012397019,
-0.046058174,
-0.018849682,
-0.014352585,
0.013378331,
-0.025584737,
0.03589205,
0.026347196,
0.0085070655,
-0.00052242563,
-0.001092505,
-0.003667569,
0.005926707,
0.017296525,
0.017494198,
0.0055101784,
0.024229253,
-0.004620643,
-0.014642037,
0.011225091,
0.04221764,
-0.013110059,
0.004648882,
-0.009686054,
-0.04727246,
-0.03134554,
0.015009147,
0.054360505,
0.02871929,
0.04611465,
-0.043121293,
0.005499589,
0.007836385,
-0.05427579,
-0.016096357,
-0.08878411,
-0.028648691,
0.010773264,
-0.026869621,
-0.009304824,
-0.024624603,
-0.036569793,
0.015065625,
0.021334734,
-0.032588065,
-0.040127937,
0.0050336416,
-0.002326206,
0.013046521,
-0.0370781,
-0.03699338,
-0.040551525,
0.00979901,
-0.031147864,
-0.035383746,
0.017310644,
0.048232593,
-0.0034698944,
-0.019866293,
-0.07906982,
0.010476751,
0.015573932,
-0.008422349,
-0.026262477,
0.030441882,
-0.036146205,
0.013823099,
-0.028083907,
0.026784902,
-0.0034275358,
0.0052524954,
0.0004454296,
-0.004175875,
-0.023339719,
0.030498361,
-0.0034681296,
-0.010010805,
-0.00022878184,
0.020925265,
0.026333075,
0.0140560735,
-0.026742544,
-0.0084364675,
0.045267474,
0.05551831,
0.014027834,
-0.014966788,
0.0377276,
0.003921722,
-0.014380825,
-0.020685231,
0.0053266236,
0.022817291,
0.02830982,
-0.0038193548,
-0.01999337,
0.0009416016,
0.00038475942,
-0.01053323,
-0.012425258,
-0.012439378,
0.0036022658,
-0.019372107,
-0.012255822,
0.017578917,
0.0006931847,
-0.048825618,
0.007412796,
-0.041483417,
0.045380432,
0.04210468,
0.01564453,
-0.040579762,
0.05695851,
0.020798188,
0.06890371,
0.009093029,
0.01668938,
-0.008147016,
-0.03569438,
0.013223016,
-0.06528908,
0.012502916,
-0.014218449,
0.015701007,
-0.048910335,
-0.0047900784,
0.032955173,
-0.002474462,
0.021631245,
-0.052242562,
-0.00016226522,
-0.033124607,
0.05020934,
-0.029707663,
0.01779071,
0.028648691,
-0.04614289,
-0.036880426,
0.053654525,
0.00024996125,
0.024398688,
0.029142879,
0.08929242,
0.013865459,
0.10719609,
0.011119194,
-0.013964295,
-0.027293209,
0.038687736,
-0.008528246,
-0.033915307,
0.013512468,
-0.017720113,
-0.013258316,
-0.032870457,
-0.04436382,
-0.011076835,
0.043488402,
-0.0052030766,
-0.025951846,
-0.019753337,
-0.0038828931,
-0.016068118,
0.025895368,
0.06353825,
0.020784069,
-0.005008932,
-0.021362972,
0.0074622147,
-0.039760824,
0.02177244,
-0.026728425,
0.028606333,
0.017296525,
-0.0493904,
-0.023720948,
-0.05591366,
-0.024229253,
0.01925915,
0.007843444,
-0.029961815,
0.013921937,
0.01927327,
0.031430256,
0.016195195,
-0.041144546,
0.0014031364,
0.048966814,
0.04176581,
-0.017381242,
0.06800005,
0.0174236,
0.014041954,
0.014797353,
0.02284553,
0.008464707,
0.011938131,
0.031402014,
0.004250003,
0.028098026,
-0.061279114,
-0.044900365,
-0.009107149,
0.051112995,
0.016618783,
-0.013244196,
-0.027363807,
-0.003085135,
-0.07031567,
0.0055737165,
-0.028804008,
0.043347206,
-0.016802337,
0.029764142,
0.005379572,
-0.06675752,
0.2376613,
0.07906982,
0.053852197,
0.022464301,
0.011782816,
0.039817303,
-0.008598844,
-0.024073938,
-0.004899505,
-0.0047759586,
0.02287377,
-0.034000024,
-0.021603005,
0.063820645,
-0.035553183,
0.03496016,
-0.07059806,
0.011811055,
0.005263085,
-0.045719303,
-0.014882071,
0.02506231,
0.021758322,
0.04766781,
0.01674586,
0.010109642,
0.0704851,
-0.024892876,
-0.0038299446,
-0.047696047,
0.036569793,
-0.083136275,
0.02360799,
-0.011034477,
-0.033350524,
0.017621275,
-0.029735902,
-0.04029737,
0.0018426093,
-0.008182315,
0.015771607,
0.01270059,
0.0017031782,
-0.005570187,
-0.043827273,
-0.0068056528,
0.005665494,
0.040946875,
0.0458605,
-0.059189413,
0.041172788,
-0.030837232,
0.032192715,
-0.04458973,
-0.035779096,
-0.023480915,
-0.014500841,
-0.04970103,
-0.008824757,
0.048458505,
0.002467402,
0.012022849,
0.035835575,
0.010702666,
-0.024483407,
0.046058174,
0.0077304873,
0.043093055,
-0.010455572,
0.052637912,
0.003526373,
0.014599678,
-0.016096357,
-0.008337631,
0.016181074,
0.027716797,
-0.004843027,
0.018680247,
0.041483417,
-0.025019951,
0.0007148053,
0.0043488406,
0.0067844735,
-0.012248763,
0.023240881,
0.07997348,
-0.04546515,
-0.00217795,
-0.0045112157,
0.03244687,
0.037162818,
-0.01887792,
-0.02876165,
0.0039676107,
-0.011147433
] |
result = speech_recognizer(dataset[:4]["audio"])
print([d["text"] for d in result])
['I WOULD LIKE TO SET UP A JOINT ACCOUNT WITH MY PARTNER HOW DO I PROCEED WITH DOING THAT', "FONDERING HOW I'D SET UP A JOIN TO HELL T WITH MY WIFE AND WHERE THE AP MIGHT BE", "I I'D LIKE TOY SET UP A JOINT ACCOUNT WITH MY PARTNER I'M NOT SEEING THE OPTION TO DO IT ON THE APSO I CALLED IN TO GET SOME HELP CAN I JUST DO IT OVER THE PHONE WITH YOU AND GIVE YOU THE INFORMATION OR SHOULD I DO IT IN THE AP AN I'M MISSING SOMETHING UQUETTE HAD PREFERRED TO JUST DO IT OVER THE PHONE OF POSSIBLE THINGS", 'HOW DO I FURN A JOINA COUT'] |
[
0.015796782,
-0.008536502,
-0.022021906,
0.023964599,
-0.023680994,
-0.012889834,
0.013981712,
0.0005375196,
0.013088358,
0.065058924,
-0.011358369,
-0.017654393,
0.008586133,
-0.05113393,
-0.019129138,
-0.01442839,
0.000075498676,
-0.038683683,
-0.065058924,
-0.02397878,
0.0071893795,
0.007926752,
-0.06965332,
-0.019058237,
-0.03238766,
0.026928268,
0.025722947,
-0.009841084,
0.10294851,
0.049772628,
-0.014194416,
-0.00031285145,
-0.0062960247,
-0.015938586,
-0.033919122,
-0.04140629,
0.001459678,
0.0017166948,
-0.06069141,
-0.052438512,
0.011103124,
-0.020561341,
0.009756003,
-0.03732238,
-0.02830375,
0.008855557,
0.021582318,
-0.022787638,
0.015101951,
-0.023624273,
-0.036613367,
0.0010404747,
0.032132413,
0.044327416,
-0.029097844,
-0.017512592,
-0.026587943,
0.021256173,
-0.058082245,
-0.021227812,
0.032954868,
0.015328835,
-0.018377585,
-0.045320034,
0.016917022,
0.009904895,
-0.008075644,
-0.004683023,
-0.005661459,
-0.05056672,
-0.08139455,
0.0059769694,
-0.031168157,
-0.06006748,
-0.029239645,
-0.009422767,
0.0064697326,
-0.0050091683,
0.00843015,
0.0041796244,
0.008096915,
0.015498998,
-0.025382621,
0.010599726,
-0.023581732,
-0.029523252,
0.05533128,
-0.03184881,
-0.010167229,
-0.035989437,
-0.052750476,
0.017923817,
-0.015201213,
0.020348638,
-0.0065867193,
0.054281943,
-0.020206835,
0.040725637,
-0.005165151,
-0.011507262,
0.0047291084,
0.089222044,
-0.025666226,
0.013187619,
-0.036896974,
0.0034103466,
0.011216566,
0.016363991,
-0.037208937,
-0.007948022,
-0.023312308,
0.0018363405,
-0.0013799142,
-0.0127763925,
-0.019639626,
0.019384382,
0.0025134468,
-0.0056295535,
-0.046170846,
-0.019753069,
0.0019320571,
0.009358956,
0.03496846,
-0.032756343,
0.020192655,
-0.056919467,
0.0058458024,
0.031083077,
-0.039704658,
-0.0106706275,
0.008054374,
0.0008406221,
0.008139456,
0.03910909,
0.016463254,
-0.018604469,
0.003736492,
0.007543885,
0.03797467,
-0.01742751,
-0.0038180284,
-0.015612439,
-0.0006172834,
0.066306785,
0.010039607,
0.055104397,
0.022986162,
-0.08479781,
-0.018193243,
0.02643196,
-0.02345411,
0.030430786,
0.021270353,
0.017895458,
-0.05300572,
-0.0032153684,
0.026417779,
-0.02336903,
0.0335788,
-0.003722312,
-0.0125565985,
0.0032933597,
-0.038059752,
0.05476407,
-0.007721138,
0.027396215,
-0.005062344,
0.02464525,
-0.009408587,
-0.047106743,
-0.0008991156,
0.025496064,
0.002199709,
0.026020732,
0.046879858,
0.02889932,
0.04872329,
0.0041867145,
0.03542223,
0.012209183,
0.019625446,
-0.0005259981,
-0.010642267,
0.0114150895,
-0.006721432,
-0.009210063,
0.024191482,
-0.0006110795,
-0.005767811,
0.002327331,
0.008791747,
0.028757518,
-0.002892768,
0.026715564,
-0.066306785,
0.033465356,
-0.02597819,
0.02463107,
0.011890127,
-0.009061171,
-0.019384382,
0.036556646,
-0.030459147,
0.030260623,
-0.011776686,
0.017583493,
-0.008082734,
0.03984646,
-0.03369224,
-0.003498973,
0.035592392,
0.04081072,
-0.026687203,
0.0012124102,
0.04018679,
-0.011578162,
-0.026984988,
-0.005243142,
-0.005002078,
-0.014591463,
0.01978143,
0.01569752,
0.03488338,
-0.026176715,
0.011507262,
-0.0042540706,
0.0070121265,
0.02650286,
0.04628429,
0.02536844,
0.013421593,
0.019667987,
-0.006448462,
0.06738448,
0.037776146,
0.019441104,
0.079068996,
0.036471564,
0.008189086,
0.0030930638,
-0.012733852,
0.018902253,
0.032954868,
0.02831793,
-0.0020082758,
-0.011074764,
0.008501051,
-0.013442864,
-0.017611852,
0.05777028,
-0.07725392,
0.008359249,
-0.009897805,
0.0084372405,
-0.062109433,
-0.03726566,
-0.0069412254,
0.035677474,
-0.007586426,
-0.031536844,
-0.0035610117,
0.05638062,
0.032869786,
-0.021851743,
0.059046503,
0.064208105,
-0.000870312,
0.04149137,
-0.0335788,
-0.03247274,
-0.0044986797,
-0.053941615,
-0.047730673,
0.006973131,
-0.014662364,
-0.01681776,
0.0010271808,
-0.03956286,
0.025751308,
0.004168989,
-0.024971396,
-0.014945968,
-0.027977604,
0.054990955,
0.015527358,
-0.00046661837,
-0.038116474,
0.041576453,
0.0052006016,
0.04696494,
0.016519975,
0.007207105,
-0.0081323655,
-0.014548922,
0.017597672,
0.028729158,
-0.0038251185,
-0.00053441763,
-0.03553567,
-0.00481419,
-0.0020065033,
-0.015357195,
0.020646423,
0.020135935,
0.0004723791,
0.020688964,
0.014300767,
-0.029296366,
0.026389418,
0.045546915,
-0.020660603,
0.03496846,
0.0077424087,
0.024843773,
-0.004154809,
0.020065034,
0.045660358,
0.0076644174,
-0.048071,
0.006381106,
-0.050623443,
-0.020065034,
-0.0047787395,
-0.021454697,
-0.013201799,
0.05760012,
-0.027750721,
-0.07334018,
0.009529118,
-0.015201213,
-0.041973498,
-0.018405946,
-0.031224879,
0.055898488,
0.02161068,
0.005236052,
-0.027608918,
-0.008096915,
-0.032132413,
0.019937411,
0.029324727,
-0.01203902,
-0.00840888,
0.046851497,
0.011563982,
-0.015796782,
0.028729158,
-0.053346045,
0.0228869,
-0.016534155,
0.028785879,
0.021227812,
0.01870373,
0.044128895,
0.047787394,
0.020575522,
-0.030118821,
0.04106596,
0.009061171,
0.04041367,
0.017214807,
0.039874822,
-0.0040839077,
0.019412743,
-0.009160432,
-0.0031267419,
-0.002882133,
0.0059308833,
0.05785536,
-0.06205271,
0.025907291,
0.010642267,
-0.008337978,
0.0066505307,
-0.0008242262,
-0.06069141,
0.047447067,
0.034401253,
0.07560901,
-0.044384137,
-0.004441959,
-0.034457974,
0.0044277785,
0.01989487,
0.047447067,
0.019015696,
-0.024928855,
0.0035273337,
-0.0004546538,
0.013967532,
0.016718497,
-0.0140455235,
-0.014917608,
0.01447802,
-0.015768422,
-0.03902401,
0.013371962,
0.03301159,
0.0469933,
-0.009529118,
0.059386827,
-0.01503105,
0.011166936,
0.015357195,
0.010713168,
-0.015343015,
-0.024588529,
0.04163317,
0.010301941,
-0.014619823,
0.003725857,
-0.02346829,
-0.035592392,
0.029296366,
-0.053658012,
0.0073949927,
-0.005296318,
-0.014229867,
0.015300474,
0.038882207,
-0.0006669142,
-0.018264143,
-0.02471615,
0.022135347,
0.043419883,
-0.03145176,
-0.0023539192,
-0.040328592,
0.01565498,
0.037237298,
-0.005228962,
-0.026843186,
0.0026570216,
-0.040073346,
-0.050992128,
0.015825143,
0.050339837,
-0.0326429,
0.015442276,
-0.06522908,
-0.016449073,
-0.0073737227,
0.025311721,
0.0012841976,
0.023099603,
-0.007714048,
0.003927925,
0.015371376,
-0.019455284,
-0.007480074,
0.0008246693,
-0.035280425,
0.033748962,
-0.053232607,
0.035025183,
-0.0071255686,
0.008968999,
-0.016647596,
0.021284534,
0.024957215,
-0.02402132,
-0.0028644076,
0.043051194,
0.000012373086,
-0.063470736,
0.0140029825,
0.029182926,
-0.0059096133,
0.053289324,
-0.0055657425,
-0.011174026,
0.016037846,
0.019937411,
-0.013109628,
0.00081181846,
-0.015428096,
-0.014761626,
-0.022220429,
-0.031735368,
0.021738302,
-0.026176715,
0.040527113,
0.009947435,
-0.022929441,
0.0046723876,
-0.058082245,
0.0048780013,
-0.008451421,
-0.019696347,
0.018108161,
0.01263459,
-0.009309324,
-0.0010440198,
-0.053799815,
-0.011287468,
-0.022943622,
0.0104508335,
0.03244438,
0.050623443,
0.012811843,
0.05853601,
-0.042824313,
-0.0047184736,
0.019044057,
-0.030402426,
0.007522615,
-0.041604813,
-0.0030930638,
0.01694538,
-0.006969586,
-0.01082661,
-0.023042884,
-0.0013542125,
-0.0066398955,
-0.013279791,
-0.02468779,
-0.022688378,
-0.044696104,
-0.010599726,
0.03899565,
-0.05640898,
-0.054990955,
-0.02892768,
0.011322918,
0.023085423,
-0.00004663968,
0.03669845,
-0.011358369,
-0.020717325,
-0.026743924,
0.04614249,
-0.005338859,
0.0015580534,
-0.037861228,
-0.03791795,
-0.0032614542,
0.02943817,
0.01806562,
-0.05777028,
0.0074375337,
-0.025524424,
0.0029246735,
-0.049971152,
-0.047872476,
0.0043037017,
0.0043675127,
-0.017370788,
0.026148355,
-0.024460906,
-0.008983179,
-0.014548922,
-0.023893697,
0.06647694,
0.06074813,
-0.039080728,
-0.0135633955,
-0.0115923425,
-0.0104082925,
-0.0020632243,
0.0037754877,
-0.03199061,
0.052778836,
-0.031707007,
-0.0021802112,
-0.018788813,
-0.054650627,
-0.0025028116,
-0.01630727,
0.057458315,
-0.010691898,
-0.017002102,
-0.012258814,
0.034174368,
-0.0006580516,
-0.0006505183,
-0.025808029,
-0.002912266,
-0.026602123,
-0.017540952,
0.013535035,
-0.044128895,
0.0140455235,
-0.00784876,
0.010989683,
0.05351621,
-0.021695761,
0.022660017,
0.037520904,
-0.025694586,
0.03125324,
-0.039534498,
0.008685394,
-0.02040536,
-0.012953646,
-0.045433477,
-0.005757176,
-0.03919417,
-0.011535622,
-0.058762897,
-0.041888416,
-0.027878344,
-0.0059769694,
0.06205271,
-0.04262579,
0.038683683,
0.040952522,
-0.026999168,
-0.086385995,
0.02827539,
-0.021327075,
0.009876534,
0.039704658,
0.009295144,
0.0064023766,
0.0053601293,
-0.03556403,
-0.013648476,
-0.031933893,
0.07271625,
-0.008118185,
-0.026999168,
0.024390005,
0.022617476,
-0.023439929,
-0.06080485,
0.011719964,
-0.002772236,
-0.01870373,
-0.01142927,
0.035308786,
-0.034628134,
0.0011477128,
0.025566965,
0.019994132,
-0.037464183,
0.012443157,
0.02287272,
0.012173733,
-0.013364872,
0.037804507,
0.048354603,
-0.03735074,
-0.0023255586,
-0.011776686,
0.01322307,
-0.03800303,
-0.023610093,
0.049687546,
-0.008337978,
-0.0049099065,
0.011719964,
0.0023450565,
0.049659185,
-0.031224879,
-0.02336903,
0.0018053212,
-0.023142144,
-0.044242334,
-0.010620996,
0.023865337,
0.0180798,
0.019767249,
-0.008912278,
0.020958388,
0.020206835,
0.049971152,
-0.003250819,
-0.08116767,
0.04883673,
-0.041264486,
0.0008025127,
0.010131778,
-0.009706371,
-0.008004743,
0.01918586,
-0.027920883,
-0.036273044,
-0.0064165564,
0.02828957,
-0.016902842,
-0.045263313,
-0.03389076,
-0.003846389,
-0.046255928,
-0.0240355,
-0.008678304,
-0.021341255,
0.0055090217,
0.036414847,
-0.023950418,
0.0011299875,
-0.03857024,
-0.0006053188,
0.05238179,
0.044100534,
-0.036868613,
-0.027977604,
0.00036669202,
-0.010897511,
-0.0104082925,
0.052750476,
0.013988802,
-0.009713462,
0.004402963,
0.010075058,
0.020731505,
-0.023312308,
-0.008238717,
0.0541685,
-0.022092808,
0.027013348,
-0.027608918,
0.017654393,
-0.041945137,
-0.00210222,
0.013315241,
-0.007990562,
-0.030005379,
0.04634101,
0.013769009,
0.056125373,
0.006994401,
0.042512346,
-0.007302821,
0.028700797,
0.017725294,
-0.014173145,
0.030629309,
-0.017328247,
-0.015484817,
-0.061145175,
-0.00048788873,
0.0385986,
-0.04702166,
0.0019763703,
0.009394406,
-0.003959831,
-0.02460271,
0.01989487,
0.022631656,
0.04880837,
0.034684855,
-0.0180798,
0.008536502,
-0.01201066,
-0.00962838,
-0.015598259,
-0.06727104,
-0.047078382,
0.021355435,
-0.04015843,
0.02880006,
-0.022603296,
-0.043136276,
-0.007905481,
0.018207423,
0.013003276,
0.010422473,
0.01572588,
-0.021426337,
-0.017668573,
-0.02336903,
-0.049999513,
0.0024390006,
0.010755708,
-0.040753998,
-0.023610093,
0.0011096034,
0.01925676,
-0.004105178,
0.005594103,
-0.04228546,
0.021086011,
-0.004509315,
0.013003276,
-0.028714977,
0.0071397484,
-0.036528286,
0.011925578,
-0.008664124,
-0.05070852,
-0.03306831,
0.023439929,
0.0337206,
0.028034326,
0.0023078334,
0.0300621,
0.028161949,
-0.0037010415,
0.012216273,
0.014846707,
0.014258227,
-0.026006551,
0.001275335,
0.014988509,
0.022943622,
0.0051190653,
0.0071929246,
-0.011975209,
0.06279008,
0.0012088651,
-0.010876241,
-0.04764559,
0.03788959,
0.023000343,
-0.013031636,
-0.0015412144,
-0.008259987,
-0.014173145,
-0.010379933,
0.019015696,
0.038173195,
-0.011393819,
0.02474451,
-0.0038073934,
-0.053147525,
-0.0049595376,
0.03613124,
-0.051530976,
-0.011322918,
0.0137831895,
0.02046208,
0.0116348835,
0.032557823,
-0.01025231,
0.038144834,
0.027311133,
0.06868906,
0.027835803,
-0.024900494,
0.056976188,
0.015215393,
0.025907291,
-0.029494891,
-0.01386118,
-0.017696934,
0.00077681104,
-0.06006748,
0.05836585,
-0.0037471273,
-0.016761038,
0.03312503,
-0.012173733,
-0.015257933,
-0.057117987,
0.01199648,
-0.07453132,
0.0033660335,
0.021497237,
-0.007685688,
-0.074134275,
0.028105227,
-0.03136668,
0.023581732,
0.053658012,
0.06761137,
0.0065689944,
0.05830913,
0.04086744,
0.0021039925,
0.029154565,
0.01747005,
0.0015208303,
-0.010642267,
0.015498998,
-0.01261332,
0.008742115,
0.004764559,
-0.0842306,
0.04580216,
0.0044951346,
-0.020093394,
-0.03899565,
0.003096609,
-0.018320864,
-0.02402132,
-0.010989683,
0.0939866,
-0.02291526,
0.0011273287,
-0.045631997,
0.006125862,
-0.044866264,
0.012024839,
-0.009288054,
0.029097844,
-0.028729158,
-0.08536502,
-0.001861156,
-0.06522908,
0.022177888,
-0.0044738646,
-0.02821867,
-0.03309667,
0.030118821,
0.013045817,
0.06732776,
0.000055973156,
-0.021596499,
-0.009358956,
0.068745784,
0.0140029825,
0.031111438,
0.0950643,
0.023000343,
-0.0065689944,
-0.008805926,
-0.031621926,
0.03613124,
-0.0019870056,
-0.015257933,
0.010422473,
-0.0028147767,
-0.004824825,
-0.07351034,
-0.014733265,
0.0099261645,
0.0013293971,
-0.037038777,
-0.021511417,
0.025652047,
-0.04149137,
0.0029388538,
-0.01694538,
0.019029876,
-0.020816585,
-0.021880103,
-0.0013905494,
-0.05777028,
0.23845485,
0.037861228,
0.044922985,
0.025623687,
0.008174906,
0.07577918,
0.03009046,
-0.0019763703,
0.011833407,
-0.026417779,
-0.014137695,
-0.037577625,
-0.014251137,
0.009146252,
-0.0006558359,
0.05289228,
-0.031054717,
0.026162535,
-0.018434307,
-0.033408634,
-0.046511173,
0.016094567,
0.009911985,
0.045008067,
0.01508777,
-0.021128552,
-0.035025183,
-0.035961077,
-0.011372549,
-0.08360667,
0.05604029,
-0.039421055,
0.031224879,
-0.036896974,
-0.004087453,
0.018590288,
0.018349225,
-0.063016966,
0.012464427,
0.00037112334,
-0.00015576102,
-0.047900837,
0.029296366,
-0.0031019265,
-0.024545988,
0.012365165,
-0.025042295,
0.043107916,
0.045631997,
-0.07010709,
0.032954868,
-0.035195343,
0.02165322,
-0.057401594,
-0.028161949,
-0.022986162,
-0.0636409,
-0.06403794,
-0.027041709,
0.031026356,
0.024517627,
0.021809202,
0.009529118,
0.052693754,
-0.01863283,
0.015413916,
0.0021766662,
0.0090044495,
0.0030682485,
0.0017698706,
0.018179063,
0.024886314,
0.0059060683,
-0.038088113,
0.00964256,
0.049006894,
0.012996186,
0.045348395,
0.023184685,
-0.025737127,
-0.011230746,
-0.0054593906,
-0.0003766625,
-0.022532394,
0.017356608,
0.06619334,
-0.047475427,
0.00601951,
-0.016973741,
0.01867537,
0.02585057,
0.024971396,
0.00693059,
0.025155738,
0.010004156
] |
For larger datasets where the inputs are big (like in speech or vision), you'll want to pass a generator instead of a list to load all the inputs in memory. Take a look at the pipeline API reference for more information.
Use another model and tokenizer in the pipeline
The [pipeline] can accommodate any model from the Hub, making it easy to adapt the [pipeline] for other use-cases. For example, if you'd like a model capable of handling French text, use the tags on the Hub to filter for an appropriate model. The top filtered result returns a multilingual BERT model finetuned for sentiment analysis you can use for French text: |
[
0.0030805243,
-0.026586866,
-0.015041839,
-0.008270237,
0.0076943724,
-0.0068132314,
0.02229911,
-0.0048046466,
-0.017220408,
0.052507672,
0.0028793188,
-0.019301843,
-0.0048254607,
-0.057003573,
-0.002509864,
0.013008971,
0.004787301,
-0.07104632,
-0.045042258,
0.009491345,
-0.025906932,
0.021050248,
-0.061943512,
-0.011517275,
-0.017914219,
0.021633051,
0.03907548,
0.008221669,
0.0707688,
0.05425608,
0.0026919895,
0.003110011,
0.0027370874,
0.009893755,
-0.04290532,
-0.05694807,
-0.03574518,
-0.014237017,
-0.042156003,
-0.039824795,
0.00519665,
-0.0075972388,
0.011947438,
-0.029806154,
-0.046596397,
-0.017706076,
-0.00082780415,
0.0077637536,
0.009359521,
-0.0073474664,
0.006254713,
-0.0007410777,
0.032553647,
0.021189012,
-0.030194689,
-0.042183757,
-0.045930337,
0.0058141425,
-0.053756535,
-0.0023017204,
0.05392305,
0.05816918,
-0.020509075,
-0.06671694,
0.008089845,
0.0094080875,
0.006729974,
0.0015116424,
-0.024269536,
-0.022562759,
-0.06111094,
0.00718789,
-0.0140705025,
-0.032442637,
-0.04246128,
0.0041698087,
0.012363725,
-0.0016625464,
0.0034482444,
0.035689678,
-0.006220022,
0.028890321,
0.042766556,
0.035106875,
-0.0051619597,
-0.072267435,
0.051147804,
-0.021147383,
-0.04451496,
-0.02259051,
-0.029917164,
0.011045483,
-0.05178611,
0.0064038825,
0.040879387,
0.03957502,
-0.0062130843,
0.018108487,
-0.012960404,
-0.023686733,
0.020703344,
0.062498562,
-0.031887587,
0.044875745,
-0.037354827,
0.009866003,
0.01831663,
-0.0010676029,
-0.02229911,
0.012301283,
-0.041822974,
0.010094961,
0.016706986,
-0.017525686,
-0.014916953,
0.02944537,
-0.010164342,
0.022063214,
-0.04562506,
-0.023867125,
-0.0013130388,
-0.016582102,
0.020273179,
-0.07060228,
0.013126918,
-0.046374377,
-0.028127128,
0.03496811,
-0.014181512,
0.0023971195,
0.047040436,
-0.0055192728,
0.04090714,
0.022992922,
-0.008214732,
-0.020203799,
0.007146261,
0.012967342,
0.038686942,
-0.028265892,
0.015583012,
0.023645105,
0.012301283,
0.066550426,
-0.00045488033,
0.012662064,
0.02370061,
-0.06566235,
-0.035328895,
0.031776577,
-0.053284742,
0.024880089,
0.0015870944,
0.0179836,
-0.02436667,
-0.016665358,
0.016540473,
0.017955849,
0.0032713225,
-0.025684912,
-0.024602566,
0.0077498774,
-0.045458548,
0.04884435,
0.0120862005,
0.015874414,
-0.0034517136,
-0.043377113,
0.022215853,
-0.04684617,
-0.019274091,
-0.012689817,
0.018705165,
0.03852043,
0.025851427,
0.012301283,
0.048816595,
-0.001221976,
0.01437578,
-0.008075969,
0.0026295467,
-0.041434437,
0.0017015734,
0.019815264,
-0.00999089,
-0.019454481,
-0.0035627233,
-0.007264209,
-0.043182842,
-0.004561812,
0.028557291,
0.03863144,
0.011329946,
0.033330716,
-0.02944537,
0.014833695,
-0.037771113,
0.016915131,
-0.0012670737,
-0.0026659716,
-0.032498144,
0.07509819,
-0.059945337,
0.029722895,
-0.010108837,
0.011184245,
0.010580629,
0.01617969,
-0.01146177,
0.018732918,
0.05894625,
0.019052071,
-0.036799777,
-0.026406476,
0.009421964,
-0.039241992,
-0.027960613,
0.0034690588,
-0.013557082,
-0.0039026912,
0.008665709,
0.010740206,
0.02933436,
0.00685486,
0.03055547,
-0.023520218,
-0.019704254,
0.04368239,
-0.00094445125,
0.019634873,
0.04101815,
0.0061367652,
-0.0009973544,
0.07770692,
0.019551616,
0.0308885,
0.03957502,
0.034440815,
0.024782956,
-0.00497463,
0.008325741,
0.042711053,
0.038659193,
0.036550004,
-0.012377602,
-0.0050995164,
-0.00018537782,
-0.0015263859,
-0.006178394,
0.03358049,
-0.03630023,
0.03985255,
0.026892144,
0.0061575794,
-0.059057258,
-0.019593244,
0.01953774,
0.019398976,
0.0076874346,
-0.02447768,
-0.0030319574,
0.023520218,
0.032498144,
-0.017123275,
0.029140094,
0.034052283,
0.012252715,
0.035051372,
-0.017941972,
-0.05772514,
0.0049330015,
-0.04246128,
-0.087253764,
0.011288317,
-0.016054804,
-0.014292522,
-0.015083468,
-0.038936716,
0.024921719,
-0.022826407,
0.001857681,
0.0025896523,
-0.025934683,
0.045430794,
0.020203799,
-0.0047456725,
-0.03077749,
0.025407387,
-0.016013175,
-0.017414676,
0.0015766872,
-0.017026141,
-0.004818523,
0.007486229,
-0.018580278,
0.019398976,
0.0011786127,
-0.017858714,
-0.037604596,
0.040601864,
-0.0152499825,
0.014389656,
0.013987245,
0.04179522,
-0.0325814,
0.016318453,
0.031970847,
-0.02336758,
0.05023197,
0.04901086,
-0.024297288,
0.017497933,
0.031415798,
0.042516787,
-0.031332538,
0.008436751,
0.05694807,
-0.009428902,
-0.019024318,
-0.057447612,
-0.05794716,
0.01898269,
-0.02830752,
-0.022618264,
0.020536829,
0.05000995,
-0.006188801,
-0.038936716,
-0.018566404,
-0.046929426,
-0.016942883,
-0.04540304,
-0.024241783,
0.046429884,
0.041073658,
-0.011600533,
-0.057780642,
0.02222973,
-0.0008906808,
0.023173314,
0.005685787,
-0.013348938,
0.041767467,
0.059945337,
0.021397155,
0.011746233,
0.024130773,
-0.040768377,
-0.013314248,
-0.023048427,
0.033413973,
0.021966081,
0.0325814,
0.023797743,
-0.033413973,
0.036716517,
-0.0009860799,
0.027724719,
0.011815614,
-0.0043502,
-0.0065183616,
0.021966081,
-0.01404275,
0.00028879914,
0.0042669424,
-0.026670124,
-0.003276526,
0.010004765,
0.040629618,
-0.051702853,
0.013036723,
0.00792333,
-0.040657368,
0.025462892,
0.007611115,
-0.066994466,
0.031554557,
0.049482655,
0.04334936,
-0.015055715,
-0.0062269606,
-0.015069592,
0.0048046466,
0.055921227,
0.071157336,
0.032858927,
-0.026364846,
-0.047873013,
-0.0073821573,
-0.0011647365,
-0.0066848765,
-0.0056441585,
0.0071115703,
0.01975976,
-0.0145978,
-0.036355738,
0.02864055,
0.013813792,
0.032775667,
0.03180433,
0.050093208,
-0.032192867,
0.000022345617,
0.015499755,
0.005664973,
0.009630107,
-0.01762282,
0.055338427,
-0.0010684701,
-0.010094961,
-0.021549793,
-0.015277735,
-0.017747706,
0.03774336,
-0.043959912,
0.022423996,
-0.023450838,
0.028154882,
0.004183685,
0.014459037,
-0.015291612,
-0.00987988,
-0.030139184,
0.0027006622,
0.01876067,
-0.021133507,
0.013862359,
-0.032220617,
0.019454481,
0.028127128,
0.01887168,
-0.032498144,
-0.0075070434,
-0.011496461,
-0.03940851,
0.05894625,
0.041656457,
-0.025102109,
0.047345717,
-0.062665075,
0.0010788772,
0.00021193782,
-0.0021178604,
-0.01831663,
0.027877357,
-0.04401542,
-0.017484056,
0.028321397,
0.03469059,
0.0056233443,
0.009789684,
-0.031832084,
0.009449717,
-0.045541804,
-0.009796622,
-0.028182633,
0.023103932,
-0.016429463,
0.0370773,
0.01662373,
-0.037798867,
-0.017775457,
0.034940362,
0.0032227556,
-0.07087981,
-0.012509426,
0.03979704,
-0.028834816,
0.048983112,
-0.00987988,
-0.0038471862,
0.04090714,
0.020536829,
-0.012731446,
0.0037604598,
-0.005890462,
0.009054244,
-0.014542295,
-0.012315159,
0.05145308,
-0.04895536,
0.029750649,
-0.009026491,
-0.04912187,
0.017234284,
-0.09352583,
-0.011385451,
-0.027474945,
-0.047095943,
0.025157614,
0.033663746,
-0.00041607025,
0.0218967,
-0.024852337,
-0.019593244,
-0.042933073,
-0.02203546,
0.009977013,
0.034662835,
0.020467447,
0.063719675,
-0.05855771,
0.0018438047,
0.038020883,
-0.00020196427,
0.030083679,
-0.02472745,
-0.002749229,
-0.0060569765,
0.008742028,
0.0050544185,
0.008506132,
-0.010427991,
0.003774336,
0.008887729,
-0.010989978,
-0.017456304,
-0.056226507,
-0.014098255,
0.023714487,
-0.041878477,
-0.03618922,
-0.039824795,
0.0353844,
0.020287056,
0.022493377,
0.04390441,
-0.02214647,
-0.044376202,
-0.024352793,
0.025476769,
-0.01742855,
0.019676501,
-0.04482024,
-0.040324338,
0.025657158,
0.032942183,
0.022174224,
-0.027350059,
0.027946739,
-0.029944915,
0.0030493026,
-0.042156003,
-0.047900762,
-0.022687644,
0.013876235,
-0.027946739,
0.022312986,
-0.008957109,
0.02494947,
-0.011267503,
-0.0021456128,
0.057114583,
0.048150536,
-0.05794716,
-0.020300932,
0.00009870556,
-0.015083468,
0.004506307,
0.035106875,
-0.01651272,
0.067216486,
-0.013994183,
0.011295255,
-0.05023197,
-0.034329806,
-0.035689678,
-0.009581541,
0.046790667,
-0.01717878,
-0.021064125,
-0.01584666,
0.019246338,
-0.017997477,
0.016304577,
-0.067383,
-0.0056961947,
-0.035689678,
-0.026795011,
0.012946527,
-0.027516574,
-0.002686786,
0.010761021,
0.011697667,
0.049704675,
-0.04473698,
0.01776158,
0.0572811,
-0.0325814,
-0.008908543,
-0.048705585,
0.028779311,
-0.008533885,
-0.015541383,
-0.047151446,
0.011614409,
-0.036105964,
0.026781134,
-0.012821642,
-0.056753803,
-0.035106875,
0.017303666,
0.03951952,
0.00022191135,
0.046901677,
0.015402621,
-0.021757936,
-0.056892563,
0.025629407,
0.024977224,
0.010747144,
0.035217885,
-0.008755905,
0.022798654,
0.026850516,
-0.026892144,
0.012079263,
-0.01477819,
0.041073658,
-0.0103447335,
-0.01286327,
0.01477819,
0.016193567,
-0.03077749,
-0.052646436,
0.006549583,
-0.0107748965,
-0.05134207,
-0.007139323,
0.0074723526,
0.0031516398,
-0.033552736,
0.039214242,
0.003545378,
-0.047206953,
-0.026572991,
0.015860537,
-0.004065737,
-0.030472213,
0.036688767,
0.03066648,
-0.0077082487,
0.010941411,
-0.029639639,
0.0014691465,
-0.034274302,
-0.007354405,
0.068770625,
0.015888289,
0.020883733,
0.0098590655,
0.025976313,
0.090306535,
-0.030139184,
-0.025518397,
0.00044447315,
-0.0075139813,
-0.05550494,
-0.008873853,
0.028002243,
-0.0076943724,
0.014611675,
-0.026850516,
0.021577546,
0.049843438,
0.05816918,
0.018913308,
-0.07765141,
0.022312986,
-0.005311129,
-0.012773074,
0.010899783,
0.011940501,
-0.035689678,
0.030499965,
0.0001730193,
-0.018566404,
0.0043918286,
0.014306398,
-0.04662415,
-0.0066259024,
-0.05372878,
0.020217674,
-0.04989894,
-0.043654636,
-0.025310254,
-0.025296377,
0.02701703,
0.025782045,
0.0076180534,
0.0017215204,
0.0014301195,
0.0112813795,
0.010636134,
0.014847572,
-0.003951258,
0.011669914,
-0.0022861098,
-0.013335062,
-0.010185157,
0.029917164,
0.028834816,
-0.06077791,
-0.00637613,
0.0016486702,
0.014681057,
-0.018066859,
-0.01876067,
0.025893055,
-0.032831173,
0.0020363375,
-0.026406476,
0.029972669,
-0.055199664,
-0.015374869,
-0.011087112,
-0.018219497,
-0.010275352,
0.05322924,
0.020370314,
0.07920555,
0.0005710938,
0.023201065,
-0.016859626,
0.05439484,
0.012120891,
0.024630317,
0.022826407,
-0.030860746,
0.026004065,
-0.009519097,
0.033275213,
0.0012028961,
-0.033219706,
0.0089779245,
0.020744972,
-0.000047726662,
-0.043821152,
0.0043467307,
0.019107576,
0.043932162,
0.045264278,
-0.033885766,
0.0038020886,
0.0038020886,
-0.020328684,
-0.010767958,
-0.05661504,
-0.047151446,
-0.00733359,
-0.04035209,
0.004440395,
-0.05100904,
-0.03685528,
0.012377602,
0.006899958,
0.008672647,
0.030028174,
0.015596888,
0.012613498,
-0.013237928,
0.009491345,
-0.043876655,
0.00065998844,
0.010865092,
-0.027558204,
-0.019565491,
0.01887168,
0.03552316,
0.014008059,
-0.0045583434,
-0.045791578,
-0.004260004,
-0.0101018995,
0.061610483,
-0.0392975,
0.01953774,
-0.0308885,
0.028945826,
-0.028127128,
-0.020176046,
-0.0072711473,
0.037271567,
0.018066859,
-0.0075209197,
0.008381246,
0.023853248,
0.006903427,
-0.008096783,
0.01717878,
0.025962437,
0.0015255186,
-0.0128355175,
0.01330731,
-0.026420351,
0.07720737,
0.03435756,
0.032165114,
-0.034080032,
0.051647346,
0.019107576,
-0.022562759,
-0.030388955,
0.047539983,
0.022535006,
0.03202635,
0.026572991,
0.011662976,
-0.04773425,
0.021327773,
0.00994926,
0.03000042,
-0.024408298,
0.016887378,
0.0039894176,
-0.02494947,
-0.0058696475,
0.017386923,
-0.039130982,
-0.009810498,
0.02841853,
0.03918649,
0.015125097,
0.013390567,
-0.009817436,
0.039436262,
0.047206953,
0.020203799,
0.021078002,
0.007645806,
0.05361777,
-0.029639639,
0.019662626,
-0.031832084,
-0.030194689,
-0.019732006,
-0.00482893,
-0.0629426,
0.0426833,
0.013938678,
-0.023894876,
0.02222973,
-0.020370314,
-0.021369401,
-0.033747002,
-0.008297988,
-0.034385312,
0.0065808045,
0.016457215,
-0.017789334,
-0.038881212,
0.013501577,
-0.024297288,
0.016693112,
-0.0041143037,
0.02325657,
0.012495549,
0.042433526,
0.023950381,
0.011531152,
0.020578457,
0.014903077,
-0.009255449,
-0.034829352,
0.023797743,
-0.023353703,
-0.0190937,
-0.02955638,
-0.086587705,
0.016595976,
0.017206531,
-0.027003154,
-0.04407092,
0.018788423,
-0.018816175,
-0.01511122,
0.01230822,
0.08420099,
-0.0024456864,
-0.031277034,
-0.024533184,
0.02111963,
-0.049260635,
0.0042738803,
-0.04068512,
0.025698788,
-0.0207866,
-0.07126834,
-0.012169458,
-0.037660103,
-0.00047742922,
0.027821852,
0.00091496424,
-0.023742238,
0.020966992,
0.028265892,
0.042156003,
0.005442953,
-0.010851216,
-0.031415798,
0.05883524,
0.055699207,
0.027072536,
0.08009363,
0.036216974,
-0.018302754,
0.006011879,
0.0029920633,
0.0072295186,
0.019634873,
-0.000699449,
-0.029528629,
0.028057748,
-0.010927536,
-0.075986266,
0.0052035884,
0.020467447,
0.010434929,
-0.050315227,
-0.01264125,
0.020106666,
-0.057891652,
-0.0023971195,
-0.012467797,
0.033441726,
-0.021646926,
0.0026659716,
-0.0046762913,
-0.059390288,
0.22623815,
0.04473698,
0.0145006655,
0.02458869,
0.03541215,
0.0024734389,
0.024991099,
-0.035661925,
0.01500021,
-0.0043814215,
-0.0086795855,
-0.031721074,
-0.013251805,
0.04212825,
-0.03563417,
0.048344802,
-0.06760502,
0.012821642,
-0.01978751,
-0.032747917,
-0.0595568,
0.03979704,
0.009484407,
0.08408999,
0.017595066,
-0.027363935,
0.009061182,
-0.06471876,
-0.0046832296,
-0.030055925,
0.013237928,
-0.033996776,
0.025254749,
-0.003656388,
-0.026239961,
-0.002332942,
0.017234284,
-0.072100915,
-0.0017041751,
0.010885906,
-0.017359171,
-0.038242903,
0.043515872,
-0.011787862,
-0.011704604,
-0.0048809657,
-0.037049547,
0.026461981,
0.036799777,
-0.07742939,
0.037993133,
-0.022160348,
0.038048636,
-0.050870277,
-0.028335273,
-0.007139323,
-0.083479434,
-0.06938118,
-0.011489523,
-0.0031620471,
-0.01595767,
0.01337669,
-0.0252825,
0.020661714,
-0.0023936506,
0.041711964,
0.021105753,
0.036161467,
-0.0115242135,
0.011864181,
0.046929426,
-0.007548672,
-0.034773845,
-0.0101574045,
-0.01135076,
0.046651904,
-0.010414114,
0.055116408,
0.0016920335,
-0.038659193,
0.010379424,
-0.027877357,
-0.006605088,
-0.024782956,
0.009623169,
0.07720737,
-0.017081646,
0.015596888,
-0.010983041,
0.034218796,
0.031332538,
0.018288879,
0.045930337,
-0.036799777,
-0.018594155
] | model_name = "nlptown/bert-base-multilingual-uncased-sentiment"
Use [AutoModelForSequenceClassification] and [AutoTokenizer] to load the pretrained model and it's associated tokenizer (more on an AutoClass in the next section): |
[
-0.0032306204,
0.03451562,
0.014655221,
-0.004606722,
-0.015198007,
-0.035183664,
-0.007348487,
-0.0241331,
-0.0015161474,
0.042532153,
-0.0050312085,
-0.008705452,
0.0623508,
-0.02101556,
-0.0044083963,
0.025441352,
-0.042003285,
-0.02354856,
-0.065078646,
-0.052107453,
-0.010055458,
0.025413517,
-0.057451807,
0.004902471,
-0.039219767,
0.018148536,
-0.002141569,
0.014585634,
0.08378389,
0.04203112,
0.027292391,
-0.015615535,
-0.023632066,
-0.044814635,
-0.014021971,
-0.027570743,
0.051300235,
0.0058558257,
-0.018844416,
-0.032511488,
-0.005786238,
-0.0014074162,
-0.005747964,
-0.028043943,
-0.03596305,
0.016895954,
-0.02765425,
-0.014669139,
-0.02770992,
0.008935092,
0.014161147,
0.007084053,
0.020820713,
-0.012950317,
0.0183573,
-0.047793,
-0.0023920857,
-0.009971953,
-0.028280541,
0.0041648387,
0.01368099,
0.0040082657,
0.0064403643,
-0.054918807,
0.0050660023,
0.009171691,
-0.005880181,
-0.04548268,
-0.029894982,
-0.023186704,
-0.061404403,
0.028280541,
-0.035127994,
-0.038134195,
0.020570196,
0.01940112,
0.011725569,
-0.020904219,
0.006252477,
-0.005351313,
0.024411451,
0.05917759,
0.05143941,
0.02961663,
-0.008058284,
-0.03643625,
0.038468216,
-0.039386775,
0.008274007,
-0.00025878017,
-0.023715572,
0.0386909,
-0.06869722,
-0.02903209,
0.015309348,
0.01362532,
0.024105264,
0.037967183,
0.0059845634,
0.0034202475,
0.039275438,
0.087458126,
-0.01298511,
0.03493315,
-0.040472347,
0.014808315,
-0.009401332,
-0.013033822,
-0.024258358,
-0.05374973,
0.004801568,
0.0059706457,
0.034432117,
-0.010591285,
0.038885742,
0.011558558,
0.0057305675,
0.017591832,
-0.027668167,
-0.028642397,
-0.013235627,
0.023298044,
-0.0041822353,
-0.0371878,
-0.014474292,
-0.053638387,
-0.046568252,
0.031843442,
-0.0071258056,
-0.013785372,
0.010257263,
0.03390325,
0.021196488,
0.02787693,
-0.017577915,
-0.021836698,
-0.032260973,
-0.033680566,
0.0017901498,
-0.035183664,
0.029143432,
0.0056748968,
-0.025552694,
0.06730546,
-0.008002614,
0.019776894,
0.02424444,
-0.05349921,
-0.028266624,
0.019039262,
-0.0638539,
0.029922817,
-0.02002741,
-0.03301252,
-0.04848888,
0.009630972,
-0.016311415,
-0.008037408,
0.007557251,
0.036658928,
-0.008113954,
0.014154188,
-0.062016778,
0.03515583,
-0.0114402585,
0.021043394,
0.005490489,
-0.008441018,
0.053332202,
-0.05516932,
0.0017692735,
0.024453204,
-0.0043840404,
0.034014586,
0.031537257,
0.022616083,
0.012845934,
-0.015518112,
0.04264349,
-0.01940112,
-0.011461135,
-0.014794397,
0.061961107,
0.009157774,
-0.023520725,
0.013687949,
-0.0070736147,
0.0057514436,
-0.047598153,
-0.00068109203,
0.0062872707,
0.054640453,
-0.033931084,
-0.0081905015,
-0.03457129,
0.013534855,
-0.06602504,
0.0016996856,
0.016548013,
-0.054640453,
-0.019985657,
0.024105264,
-0.025079496,
0.043144528,
0.025441352,
0.04988064,
0.033958916,
0.05778583,
-0.014933573,
0.00825313,
0.04255999,
0.032984685,
-0.020500608,
-0.0019849963,
0.046930112,
-0.027111463,
-0.02095989,
-0.000848538,
0.01951246,
-0.025371766,
0.027292391,
0.0061098216,
0.027515074,
-0.004972059,
0.025844963,
0.0016640218,
0.00958226,
0.0457332,
0.041196063,
0.03228881,
-0.020709373,
0.039887812,
-0.020389268,
0.07337353,
0.018329464,
0.019442871,
0.06730546,
0.015170172,
0.035712533,
-0.0013848001,
-0.012247479,
0.034487784,
0.038301203,
0.034710467,
-0.029505288,
0.016728941,
0.02459238,
0.033151697,
0.006269874,
0.00035054926,
-0.043144528,
0.040778536,
0.0006649998,
0.051634256,
-0.03170427,
-0.051773433,
0.018579982,
0.05594871,
-0.016575849,
-0.021864532,
0.0018806142,
0.0397208,
-0.0056192265,
-0.0024842897,
0.03440428,
0.017911937,
-0.021377416,
0.011447217,
0.022769175,
0.01056345,
-0.027932601,
-0.0326785,
-0.09141073,
-0.008837669,
-0.018273795,
-0.02107123,
0.019846482,
-0.059010576,
-0.015935639,
-0.0062037655,
0.007007506,
-0.0033784946,
-0.005476571,
0.043311536,
0.032984685,
0.020528443,
-0.05369406,
0.01102969,
0.018844416,
0.028197035,
-0.009450043,
-0.012038714,
0.00946396,
-0.041168228,
0.0046275984,
0.002781778,
-0.010166799,
0.017536161,
0.00606111,
0.00043557704,
-0.030674366,
0.01951246,
-0.0099510765,
-0.0006628252,
-0.0674168,
0.023938254,
0.04166926,
-0.0048120064,
0.03947028,
0.0094987545,
-0.026123315,
0.05455695,
0.026234655,
0.023771241,
-0.03707646,
0.022393402,
0.05347138,
0.010688708,
-0.046540417,
-0.036046557,
-0.07198177,
-0.04439711,
-0.00923432,
-0.027863013,
-0.017174305,
0.048516717,
-0.03457129,
-0.0890169,
-0.0036464084,
-0.05767449,
-0.027236722,
-0.021516593,
0.009665766,
0.05945594,
0.03874657,
-0.01073742,
-0.047876507,
0.038078524,
-0.031565093,
0.032817677,
0.014641304,
0.007654674,
0.006137657,
0.029087761,
0.0029801037,
0.006788304,
0.025163,
-0.045677528,
0.012024797,
0.039748635,
0.037104294,
-0.0072719404,
0.019442871,
0.014209858,
0.00009513977,
0.030730037,
-0.056199223,
0.044285767,
0.03902492,
0.06257348,
-0.022936188,
0.00571665,
0.047570318,
-0.001182995,
-0.0026982725,
-0.045816705,
0.02448104,
0.01137067,
0.030034157,
-0.07292817,
0.009971953,
0.009791024,
-0.021266077,
-0.017369151,
0.019540295,
-0.018858334,
0.04058369,
0.025497023,
0.045872375,
-0.025316095,
-0.0059602074,
0.0060158777,
0.03337438,
0.034793973,
0.015211925,
0.03960946,
-0.016311415,
0.007939985,
0.021739274,
-0.006043713,
0.011600311,
0.01315908,
-0.013576608,
-0.00998587,
-0.014390787,
-0.058509544,
0.023576396,
0.036658928,
0.047765166,
0.01166294,
0.03757749,
-0.019637719,
0.011161907,
0.010953142,
-0.008962927,
0.0034080697,
-0.020389268,
0.054167256,
0.008162666,
0.014502128,
-0.017396986,
-0.00681266,
-0.06379823,
0.0057201292,
-0.01091139,
0.020069163,
-0.045065153,
-0.025956303,
-0.048572388,
0.016102651,
-0.044341438,
-0.021488758,
-0.03214963,
0.026220737,
0.06880856,
0.009129939,
0.012511913,
-0.07665808,
0.040862042,
0.029922817,
-0.054334268,
-0.045928042,
-0.0069135623,
-0.024411451,
-0.054167256,
0.03560119,
0.05063219,
-0.017188223,
0.036631096,
-0.04745898,
0.012358819,
0.014808315,
0.01980473,
-0.016909871,
-0.007717303,
-0.025886716,
0.020347515,
0.0078077675,
0.011161907,
-0.0020511048,
0.007870397,
-0.02187845,
0.026499089,
-0.03510016,
-0.024230523,
0.0181207,
-0.0047841715,
0.012776347,
0.0037368727,
0.046930112,
-0.02263,
0.028753739,
0.020055246,
-0.0023990443,
-0.040444516,
0.032706335,
0.015796464,
0.0016474946,
0.019846482,
0.018329464,
0.007438951,
0.025121247,
-0.0036011762,
-0.045649692,
-0.0017718831,
-0.038189866,
0.0006397742,
-0.015907804,
-0.010472986,
0.0035872585,
-0.021349581,
0.014850068,
-0.009944118,
-0.039637294,
0.0046380367,
-0.052664157,
-0.015003161,
-0.028210953,
-0.033513553,
0.039581623,
-0.01385496,
0.00014972281,
-0.004178756,
-0.029226936,
-0.0036742436,
0.018524311,
-0.021614015,
-0.017577915,
0.03855172,
-0.007004027,
0.029978488,
-0.033819743,
-0.004070895,
0.024467122,
-0.006384694,
0.031843442,
-0.022170719,
-0.0228666,
0.019150602,
-0.026290325,
0.016645437,
0.00744591,
-0.025719704,
0.061627083,
-0.017160388,
0.0018475599,
0.013312174,
-0.04144658,
-0.024160935,
0.033040356,
-0.0040082657,
-0.00663869,
0.0051112347,
0.0025851922,
0.0017884102,
0.009881488,
0.03919193,
-0.050660025,
-0.03919193,
-0.02886508,
0.035573356,
-0.0069066035,
0.0018858333,
-0.019832565,
-0.057006445,
-0.008594112,
0.045037318,
-0.00963793,
-0.035990886,
0.06407658,
-0.010549532,
0.0008733287,
-0.04333937,
-0.0170908,
0.008726329,
0.018649569,
-0.0015805162,
0.007153641,
-0.0008850717,
0.010612162,
0.04439711,
-0.0045754076,
0.031676434,
0.0057062116,
-0.052330136,
-0.042810503,
-0.004390999,
-0.015253678,
0.010591285,
0.0014422102,
-0.033096027,
0.02626249,
-0.02880941,
0.0144186225,
-0.0296723,
-0.02095989,
-0.014655221,
-0.0032410584,
0.05374973,
-0.056421906,
-0.0001263456,
0.017563997,
0.010500821,
0.044591956,
0.036157895,
-0.017786678,
-0.007759056,
-0.015685122,
-0.06969929,
0.015657287,
-0.020194422,
-0.025260424,
-0.023117116,
0.026596513,
0.069532275,
-0.044369273,
0.02701404,
0.0377445,
-0.0269027,
-0.001927586,
-0.07760448,
-0.00021507025,
0.014822233,
-0.01916452,
-0.014126353,
-0.03134241,
0.0155877,
0.011753404,
0.0015735574,
-0.02332588,
-0.02892075,
-0.010083294,
0.03601872,
-0.058453873,
0.0059845634,
-0.006788304,
-0.012080467,
-0.06580236,
-0.012678924,
0.03983214,
0.018148536,
-0.007292817,
0.033430047,
-0.00023007515,
0.078495204,
-0.057451807,
-0.027737755,
0.005894099,
0.05305385,
-0.034432117,
-0.049546618,
0.041140392,
0.023812994,
-0.031203235,
-0.08322718,
-0.0040500183,
-0.008392306,
0.0002239862,
-0.021238241,
0.017076882,
0.0352115,
-0.047960013,
-0.017689256,
0.028252706,
-0.007842561,
0.012811141,
0.009032515,
0.00059541187,
-0.02182278,
0.0024842897,
0.021293912,
-0.036575425,
-0.012108303,
-0.04807135,
-0.012289231,
-0.022435153,
0.00059889123,
0.0553085,
-0.036519755,
0.0039456366,
0.02211505,
0.0052956427,
0.039859977,
0.009192567,
-0.008851587,
0.029366113,
-0.042448647,
-0.046902277,
0.008955969,
0.038857907,
-0.029115597,
0.025872799,
-0.033235203,
0.019192355,
0.004178756,
0.04358989,
0.004300535,
-0.081000365,
-0.0015692082,
-0.01876091,
-0.000055942182,
0.02303361,
0.01015984,
0.003816899,
0.030451685,
-0.012379696,
-0.020361433,
-0.014877902,
-0.026123315,
0.0027052313,
-0.042003285,
-0.043784734,
0.002637383,
-0.035406347,
-0.020291844,
-0.025357848,
-0.013235627,
0.020055246,
0.0094987545,
-0.000009513977,
-0.0036707642,
-0.0014535182,
0.03810636,
0.008447977,
0.016130487,
-0.014585634,
0.0067569893,
0.03451562,
0.014460375,
-0.016408838,
0.02972797,
0.041891944,
-0.011419382,
0.026791358,
0.007752097,
0.0043631643,
-0.053972412,
0.03721563,
0.029366113,
0.0111688655,
-0.018900085,
-0.04745898,
0.018106783,
-0.052998178,
-0.035016656,
-0.035879545,
-0.0019554212,
0.014613468,
0.035127994,
0.009011639,
0.05795284,
-0.01800936,
0.051133223,
0.009283032,
0.019192355,
-0.013513979,
0.018788746,
0.028141364,
0.026234655,
0.0010942705,
-0.0038830074,
0.014349034,
0.014126353,
-0.010118087,
-0.020570196,
-0.028127447,
-0.015211925,
0.00583147,
0.019039262,
0.016659355,
0.037633162,
0.01633925,
-0.019248025,
0.0023329358,
-0.026749605,
-0.02897642,
-0.015726876,
-0.06647041,
-0.064521946,
0.038941413,
-0.05756315,
-0.0031418956,
-0.028197035,
-0.036992952,
-0.02244907,
0.042476483,
-0.022101132,
-0.025984138,
0.005949769,
0.015601617,
0.0067291544,
-0.00076764205,
-0.024912484,
0.023715572,
0.01575471,
-0.029254772,
-0.005702732,
0.013799289,
0.039637294,
0.05374973,
-0.019846482,
-0.06602504,
-0.028280541,
0.0010412097,
-0.01916452,
-0.01448821,
0.02673569,
-0.025497023,
-0.012859852,
-0.0016013926,
0.004310973,
0.0104033975,
0.041168228,
0.015963474,
0.030897047,
-0.0181207,
0.021377416,
-0.027167134,
-0.01830163,
0.008357512,
0.03757749,
0.00025812778,
-0.02107123,
0.024759391,
0.01489182,
0.063130185,
0.03256716,
-0.014070682,
-0.015559864,
0.02638775,
0.015323265,
-0.0026913139,
-0.013152122,
0.041502252,
-0.0041717975,
-0.0032167027,
0.0024651529,
-0.05477963,
-0.018900085,
0.007967819,
0.013179957,
-0.009958035,
-0.0030566505,
-0.0042344267,
-0.031036224,
-0.028948585,
-0.0048050475,
0.011642063,
-0.016381003,
0.011697734,
0.01247016,
0.032233138,
0.0144186225,
0.045287836,
0.00548353,
0.055392005,
0.019526377,
-0.018343382,
0.014975326,
-0.02706971,
0.06285183,
-0.019999575,
0.03170427,
-0.045816705,
-0.021683604,
-0.048182692,
0.0032758524,
-0.03902492,
0.016088733,
0.02153051,
-0.021572264,
0.008851587,
-0.015545947,
-0.004537134,
-0.00779385,
0.02424444,
-0.059901305,
-0.026332079,
0.016478425,
0.0140846,
-0.0228666,
0.037493985,
-0.01327738,
-0.0038308164,
-0.008594112,
0.08378389,
0.042587824,
0.07443126,
0.044675462,
0.011488969,
-0.03025684,
0.009519631,
-0.032594994,
-0.021850616,
0.012532789,
-0.013729702,
-0.021210406,
-0.051801268,
-0.034376446,
0.006819619,
0.004912909,
0.0017170826,
-0.035740368,
0.022268143,
-0.028781574,
-0.047180627,
0.028266624,
0.104047894,
-0.0029296526,
-0.015907804,
-0.034265105,
-0.0028409278,
-0.03278984,
-0.0121639725,
-0.0578415,
0.012136138,
-0.007167558,
-0.066915765,
-0.0038760486,
-0.06602504,
-0.0269027,
0.026749605,
-0.0040534977,
-0.023200622,
0.009248238,
0.0023833872,
0.032121796,
0.03493315,
-0.036352742,
0.028183118,
0.061627083,
0.025302177,
0.006903124,
0.064911634,
-0.02354856,
-0.015921721,
0.024968155,
0.024397533,
0.027737755,
-0.011600311,
-0.03429294,
-0.019943906,
0.014905738,
-0.06073636,
-0.059845634,
0.016756777,
0.035127994,
-0.023158869,
-0.008955969,
-0.024439286,
0.0058105933,
-0.08016531,
0.0099302,
-0.009331743,
0.024272276,
-0.020528443,
0.0026547802,
-0.024383616,
-0.047820836,
0.22847115,
0.035823874,
0.05402808,
0.02661043,
0.015351101,
0.04155792,
0.028043943,
-0.03301252,
-0.011301083,
-0.022240307,
0.018092865,
-0.030785708,
-0.012546707,
0.0048920326,
0.028280541,
0.0679735,
-0.013200833,
0.02187845,
0.010758297,
-0.06730546,
-0.04907342,
0.050158992,
-0.01951246,
0.056588918,
0.014265529,
-0.022602165,
0.021836698,
-0.048294034,
0.010250304,
-0.04172493,
0.018746993,
-0.005386107,
0.020945972,
-0.023131033,
0.023131033,
0.0075015803,
-0.003249757,
-0.033235203,
0.006864851,
-0.016701106,
0.013994136,
-0.012866811,
0.028670233,
0.0065203905,
-0.054974478,
0.02800219,
0.015420688,
0.039887812,
0.03170427,
-0.027334144,
0.029199101,
-0.01483615,
0.044285767,
-0.05283117,
-0.044981647,
-0.036965117,
-0.03468263,
-0.045705363,
-0.0126998,
0.039386775,
-0.02343722,
0.052497145,
-0.013903672,
-0.008294883,
-0.040026985,
0.018232042,
0.01846864,
0.02897642,
-0.028030025,
0.01194825,
0.021961955,
0.0044362317,
-0.024327945,
-0.05027033,
0.0011264549,
0.041196063,
-0.009832777,
0.01114103,
-0.007181476,
-0.038245536,
-0.016728941,
-0.0020998162,
-0.00009535723,
0.004878115,
0.010222469,
0.05369406,
-0.03960946,
0.05188477,
-0.02661043,
0.042225964,
0.0296723,
0.013479185,
0.04166926,
0.0111688655,
0.007111888
] | Load an audio dataset (see the 🤗 Datasets Quick Start for more details) you'd like to iterate over. For example, load the MInDS-14 dataset:
from datasets import load_dataset, Audio
dataset = load_dataset("PolyAI/minds14", name="en-US", split="train") # doctest: +IGNORE_RESULT
You need to make sure the sampling rate of the dataset matches the sampling
rate facebook/wav2vec2-base-960h was trained on: |
[
0.010700154,
-0.010665026,
-0.0068500657,
-0.0017388628,
0.009421475,
0.017170832,
-0.00073857757,
-0.012793815,
0.004412145,
0.04614485,
0.019166132,
-0.028327655,
0.012568993,
-0.046285365,
0.012133398,
0.03282411,
-0.0063020606,
-0.05319866,
-0.0654796,
-0.029507974,
-0.020262143,
0.01055964,
-0.07413527,
-0.03420115,
-0.013896851,
0.002673282,
0.0016800225,
0.013629874,
0.04822446,
0.05940939,
0.00009007178,
-0.004001141,
0.0006406568,
-0.0038500882,
-0.05761081,
-0.059971448,
-0.017283242,
-0.010285637,
-0.023859305,
-0.031109836,
0.0024695364,
-0.0026873334,
0.020838251,
-0.049011342,
-0.050163556,
0.0032634416,
-0.006551473,
-0.01944716,
-0.03996223,
-0.015793793,
-0.014269213,
-0.007594791,
0.030210545,
0.023100529,
-0.03611214,
-0.068683326,
-0.021400308,
-0.01764858,
-0.05148439,
-0.010847693,
0.010011635,
0.07014467,
-0.040692903,
-0.05724547,
-0.015807843,
0.041030135,
-0.007475354,
-0.0017757477,
-0.012449555,
-0.02480075,
-0.05761081,
0.008100642,
-0.008360593,
-0.01051046,
-0.038838115,
0.002545063,
0.015245787,
-0.025629785,
0.02211693,
0.036646094,
-0.008620544,
0.018618127,
0.03420115,
0.006618217,
0.014213008,
-0.05665531,
0.048674107,
-0.0272738,
-0.024688339,
-0.024084128,
-0.024224643,
0.02370474,
-0.066828534,
0.008732956,
0.046341572,
0.019798446,
-0.015821895,
0.039540686,
-0.0019074798,
-0.010208354,
0.022426061,
0.058285277,
-0.032402568,
0.038163647,
-0.014170853,
-0.009709529,
-0.0024677801,
-0.009365269,
-0.014072494,
-0.016636878,
-0.02013568,
-0.007819613,
0.01843546,
-0.008585416,
0.017100574,
0.033863913,
-0.00006421936,
0.035044234,
-0.05516586,
-0.032486875,
-0.0044402475,
-0.0018899156,
0.010243483,
-0.079980664,
0.029086433,
-0.036055934,
-0.010580717,
0.030885015,
-0.013475308,
0.0337234,
0.032262053,
-0.014627525,
0.039203454,
0.03184051,
0.004289195,
-0.0061299307,
0.02301622,
0.005399257,
0.012821917,
-0.0046334546,
-0.007278634,
0.009098292,
-0.005318461,
0.08183545,
0.019798446,
-0.030603986,
-0.0043770163,
-0.045357972,
-0.049432885,
0.012077193,
-0.051456288,
0.024365157,
0.007981204,
0.007036247,
-0.019362852,
-0.015990512,
0.0048372,
0.022440113,
-0.006379343,
0.014810193,
-0.011627547,
-0.027119234,
-0.048786517,
0.046004336,
-0.013826594,
0.028594634,
0.002878784,
-0.047634304,
0.033273757,
-0.028032577,
-0.0048090974,
0.018337099,
0.016341798,
0.02252442,
0.030997425,
0.0051217414,
0.05544689,
0.030098135,
0.00058137736,
-0.0055994894,
-0.009028035,
-0.05117526,
-0.015316044,
0.0069484254,
0.02319889,
-0.01835115,
-0.0029103996,
-0.006017519,
-0.01854787,
0.0033091085,
0.034229252,
0.05038838,
-0.011248159,
0.006245855,
-0.030322958,
0.008852392,
-0.036027834,
-0.0032968137,
0.0014385137,
0.013461257,
-0.028426016,
0.076552115,
-0.06002765,
0.009597118,
-0.02599512,
0.0203324,
0.042828716,
0.040215153,
-0.023156734,
0.0023395608,
0.034763206,
0.026121583,
-0.03661799,
-0.0075526363,
-0.00013206137,
-0.041788913,
-0.0072083767,
0.042997334,
0.0070221955,
0.0025239857,
0.00263991,
0.008796187,
0.047578096,
0.002397523,
0.030885015,
-0.031166041,
-0.012266886,
0.047268964,
0.009899223,
0.021386256,
0.030969322,
0.007155684,
0.009955429,
0.06216347,
-0.0016264515,
0.01805607,
0.020782046,
0.03453838,
0.022777347,
-0.02311458,
0.024941264,
0.033414267,
0.044177655,
0.046987936,
-0.044374373,
0.0059086205,
-0.018575972,
-0.019109927,
-0.022566576,
0.004338375,
-0.040945828,
0.05367641,
0.01433947,
0.0037938824,
-0.05027597,
-0.028594634,
0.027372159,
0.015231736,
0.004366478,
-0.03380771,
0.014276239,
0.000029447598,
0.028243348,
-0.031278454,
0.034959923,
0.051821623,
0.01556897,
0.033273757,
-0.026992772,
-0.044739712,
-0.009604143,
-0.026824154,
-0.076327294,
0.028144987,
-0.014262188,
-0.05027597,
-0.028327655,
-0.052215066,
0.02936746,
-0.01150811,
0.0096744,
-0.002820822,
-0.060983147,
0.03408874,
0.015948357,
0.003709574,
-0.047943432,
0.028650839,
-0.02211693,
0.009231781,
-0.0012663839,
-0.022355804,
-0.012238784,
-0.015695432,
0.010770411,
0.012737609,
-0.015554918,
-0.05106285,
-0.014269213,
0.020810148,
-0.0018354662,
0.022482267,
0.010496409,
0.047268964,
-0.018210636,
0.01843546,
0.030322958,
-0.039849818,
0.07317978,
0.04125496,
-0.011992884,
0.03628076,
0.023058375,
0.03479131,
-0.033161342,
0.029198844,
0.047521893,
0.0006116757,
-0.032093436,
-0.041311163,
-0.050725613,
0.034988027,
-0.04046808,
-0.04117065,
0.00933014,
0.058678716,
-0.031166041,
-0.02113333,
-0.03344237,
-0.039034836,
-0.025896762,
-0.04639778,
-0.026739845,
0.03807934,
0.044177655,
0.017128676,
-0.07818208,
0.003556765,
-0.008297361,
0.02876325,
-0.0046791215,
-0.024730492,
0.042547688,
0.053423487,
0.02073989,
0.00033416026,
0.044880226,
-0.03760159,
-0.0042470405,
-0.013840646,
0.0068570916,
0.032992728,
-0.00082903355,
0.01055964,
-0.0035462263,
0.023142682,
-0.0018899156,
0.021175485,
0.024969367,
0.017718837,
0.019208286,
0.014086545,
-0.021934262,
-0.0013155639,
-0.013229409,
-0.024688339,
-0.026121583,
0.015428456,
0.032796007,
-0.055474993,
0.018800795,
0.0024730493,
-0.027161388,
0.007531559,
-0.031194145,
-0.055784125,
0.029198844,
0.040018436,
0.054519497,
0.002792719,
-0.01398116,
0.009730606,
0.0077493563,
0.028833507,
0.057779424,
0.019180184,
-0.004784507,
-0.010405074,
-0.019292595,
-0.018786743,
0.011360571,
0.030800706,
0.0042259637,
0.013398026,
-0.036955226,
-0.038163647,
0.00813577,
0.016215336,
0.018308995,
0.019320698,
0.03414494,
-0.043896627,
-0.0054273596,
0.015906204,
-0.0041521937,
0.024084128,
-0.04055239,
0.044964533,
0.0059191594,
0.0035181234,
-0.02262278,
-0.019910857,
-0.015400353,
0.011381648,
-0.0020497504,
0.0070151696,
-0.043025438,
0.011269236,
-0.025320653,
0.02925505,
-0.027863959,
-0.011894524,
-0.035578188,
0.017915556,
0.019067772,
-0.032683596,
0.015611124,
-0.026697692,
0.010601793,
0.037714,
-0.001221595,
-0.01884295,
0.01175401,
0.0042470405,
-0.03004193,
0.06216347,
0.03661799,
-0.034116838,
0.0049215085,
-0.049882527,
0.021779696,
-0.0022324189,
-0.038247958,
-0.048140153,
0.013749311,
-0.022552524,
-0.029507974,
0.004433222,
0.010707179,
-0.019924909,
0.03203723,
-0.02897402,
-0.0040327567,
-0.031278454,
-0.009828966,
-0.029339358,
0.012484684,
0.012126372,
0.017114626,
0.010426152,
-0.0262902,
-0.03420115,
0.054378983,
-0.019208286,
-0.05581223,
-0.022861656,
0.04114255,
-0.008416799,
0.032262053,
-0.013383974,
-0.00703976,
0.026248047,
0.015498713,
-0.0015254569,
-0.0047353273,
-0.0067060385,
-0.018983465,
0.008009307,
-0.022074776,
0.03383581,
-0.06873953,
0.02925505,
-0.0022921374,
-0.02984521,
-0.0062809833,
-0.07222428,
-0.004240015,
-0.03164379,
-0.03442597,
0.028440068,
0.032908417,
-0.0050444584,
-0.0071170423,
-0.0064917547,
0.002109469,
-0.043587495,
-0.03628076,
-0.00676927,
0.050163556,
0.03940017,
0.0704257,
-0.050444584,
-0.0070959656,
0.030126236,
0.0030421317,
0.02370474,
0.0016800225,
-0.016693084,
-0.014416753,
-0.004215425,
-0.010131071,
0.009871121,
-0.0043735034,
0.023760946,
0.007868793,
-0.012878124,
0.00823413,
-0.036758505,
-0.030407265,
0.024618082,
-0.020177834,
-0.0783507,
-0.029929517,
0.046931732,
0.014964758,
-0.00067007693,
0.075821444,
-0.030435368,
-0.022678986,
-0.016327746,
0.028060678,
0.012105295,
0.03352668,
-0.039315864,
-0.044571094,
0.053507794,
0.019868704,
0.013503412,
-0.033470474,
-0.004117065,
-0.03639317,
0.0009326628,
-0.022594677,
-0.049151856,
-0.02519419,
0.021597028,
0.009210704,
0.0168617,
0.030322958,
0.007355917,
-0.011550264,
-0.012386324,
0.03153138,
0.02370474,
-0.080655135,
-0.0029349898,
-0.0011715369,
-0.005687311,
-0.018154431,
0.060140062,
0.0007469206,
0.045161255,
0.001505258,
0.01586405,
-0.04679122,
-0.02697872,
-0.051709212,
0.009098292,
0.036477476,
-0.03945638,
-0.037854515,
-0.0023009195,
0.043980934,
0.0007082792,
0.049938735,
-0.049432885,
0.011936679,
-0.024660237,
-0.046594497,
0.017212985,
-0.02697872,
-0.0018758641,
0.0014534434,
0.027639136,
0.068514705,
-0.041311163,
0.013580694,
0.06486134,
-0.009597118,
-0.013672029,
-0.022763295,
0.05097854,
-0.0036077013,
0.015006913,
-0.035100438,
0.010004609,
-0.015414404,
0.023634482,
0.012105295,
-0.061826233,
-0.008557313,
0.005831338,
0.025573578,
-0.015906204,
0.029620387,
0.0015649765,
-0.029873312,
-0.02021999,
0.030660192,
0.03453838,
0.010334817,
0.044627298,
0.0043208105,
0.0054835654,
0.011107645,
-0.036252655,
-0.023789048,
-0.010981183,
0.046341572,
-0.009449578,
-0.020599376,
0.009807888,
0.02002327,
-0.02686631,
-0.03779831,
0.017114626,
0.027849907,
-0.062332083,
-0.008191976,
-0.016102923,
0.00050497276,
-0.037432972,
0.011072516,
0.015934307,
-0.027484572,
-0.03698333,
0.0307445,
-0.023241043,
-0.025461167,
0.02262278,
0.05165301,
-0.017508065,
0.01468373,
-0.05685203,
0.0047353273,
-0.028496273,
-0.030491574,
0.05266471,
0.007531559,
0.040917724,
0.0037201126,
0.018168481,
0.06772783,
-0.016847648,
-0.000118339274,
0.017718837,
-0.018365202,
-0.06952641,
0.004429709,
0.028538426,
0.00080839556,
0.010060814,
-0.03462269,
0.0317562,
0.048140153,
0.064130664,
0.004728302,
-0.08616329,
0.0297609,
-0.01635585,
-0.0022464702,
-0.0008092738,
0.014416753,
-0.019573623,
0.051793523,
0.012962432,
-0.011002259,
0.018997515,
0.007362942,
-0.047268964,
-0.026149686,
-0.053030048,
0.022875706,
-0.034931824,
-0.0367023,
-0.027906114,
-0.037545387,
0.015625175,
0.036308862,
-0.007826639,
-0.009470655,
-0.0047809947,
0.026543126,
0.0017379846,
0.013580694,
-0.014037365,
0.038163647,
-0.0020216475,
-0.0033091085,
0.009618195,
0.03153138,
0.042884924,
-0.061826233,
0.020360503,
0.019095875,
0.009273935,
-0.011550264,
0.022749243,
0.03760159,
-0.039006732,
0.021779696,
-0.015063118,
0.034931824,
-0.036196448,
-0.014100596,
-0.0203324,
-0.013398026,
-0.011592419,
0.04948909,
0.015442507,
0.055699814,
0.002878784,
0.02221529,
-0.006885194,
0.047240864,
0.023985768,
0.016749289,
0.04842118,
-0.037517283,
0.006077238,
-0.020838251,
0.021161433,
0.006358266,
-0.026852258,
0.030070031,
0.01726919,
-0.016819546,
-0.05168111,
-0.0048161233,
0.045442283,
0.03678661,
0.0072575565,
-0.023283197,
0.0063933944,
-0.010419126,
-0.015597072,
0.014135725,
-0.06317517,
-0.04392473,
-0.001163633,
-0.037236255,
-0.008789161,
-0.04999494,
-0.018013917,
0.010587743,
0.017086523,
-0.0075737135,
0.02936746,
0.025348756,
0.0054273596,
0.0067341416,
-0.019812498,
-0.04212615,
0.0056100283,
-0.0020409683,
-0.027653188,
0.00031505912,
0.024758596,
0.044908326,
0.02845412,
-0.005894569,
-0.030407265,
-0.005522207,
0.010707179,
0.0872874,
-0.015259839,
0.0013190767,
-0.06817748,
0.021470565,
-0.041704606,
-0.0059332107,
-0.0022833552,
0.019573623,
0.026711743,
0.014866399,
-0.0009660349,
0.011810216,
0.0337234,
-0.0046369676,
0.0060842633,
0.021849953,
-0.009639272,
-0.011936679,
-0.0065163444,
-0.021653233,
0.07424769,
0.052524194,
0.031587586,
-0.017367551,
0.043306466,
0.016046718,
-0.04690363,
-0.03560629,
0.05581223,
0.0367023,
0.010552614,
0.012435503,
-0.0010960104,
-0.029985724,
0.009632247,
0.017901504,
0.034454074,
-0.013208332,
0.015287941,
-0.014269213,
-0.026233995,
0.004232989,
0.01745186,
-0.024463516,
-0.002780424,
-0.000460623,
0.06177003,
0.0233113,
0.0152738895,
-0.027751548,
0.039990332,
0.052243166,
-0.004095988,
0.019166132,
0.0025872171,
0.032683596,
-0.005146331,
0.016735237,
-0.027414314,
-0.0233113,
-0.035746805,
-0.0317281,
-0.058959745,
0.013946031,
-0.0013744042,
-0.045667104,
0.01488045,
-0.014170853,
-0.036730405,
-0.04114255,
-0.0023079452,
-0.04783102,
0.008662699,
0.014002237,
-0.0038606268,
-0.035269056,
0.037742104,
-0.019924909,
0.01507717,
-0.0023799588,
0.025180139,
0.024505671,
0.043475084,
-0.009259883,
0.0064706774,
0.022341752,
0.020683685,
-0.030070031,
-0.06300655,
-0.0015377519,
-0.02658528,
-0.023451814,
-0.03243067,
-0.05466001,
0.018885104,
0.011472981,
-0.028833507,
-0.029451769,
0.022454163,
-0.006667397,
-0.01556897,
0.023283197,
0.08992907,
0.020978766,
-0.033133242,
-0.023718791,
0.017873403,
-0.07329219,
0.00882429,
-0.04403714,
0.0327398,
-0.015428456,
-0.04235097,
0.012955406,
-0.022440113,
-0.004795046,
-0.0018407356,
0.014950708,
-0.0047318144,
0.02925505,
0.029929517,
0.015554918,
0.035381466,
-0.0015447777,
-0.033639092,
0.06008386,
0.049432885,
0.03164379,
0.07717038,
0.043278363,
-0.005202537,
-0.01843546,
0.03282411,
-0.014613474,
-0.0061299307,
-0.010496409,
-0.011065491,
0.003194941,
-0.034060635,
-0.059128363,
-0.009913274,
0.0031036066,
0.019053722,
-0.021976415,
-0.005318461,
0.028299553,
-0.07149361,
-0.021049023,
-0.013405051,
0.014072494,
-0.0004909214,
-0.023676638,
0.025320653,
-0.042688202,
0.23314111,
0.039990332,
0.0025608707,
0.03563439,
0.04541418,
0.052889533,
0.020782046,
-0.051709212,
0.008501107,
-0.021639181,
-0.006920323,
-0.049432885,
-0.00261532,
0.040721007,
-0.04471161,
0.048561696,
-0.075315595,
0.006196675,
-0.018618127,
-0.050922334,
-0.08464573,
0.06828988,
0.0071416325,
0.07154981,
0.029901415,
-0.013812543,
0.00818495,
-0.0327117,
0.0033495065,
-0.002146354,
-0.0016115218,
-0.024013871,
0.013819568,
-0.010650974,
-0.024435414,
0.0125760175,
0.018463561,
-0.055390686,
-0.0131451,
0.029592283,
-0.0003324038,
-0.016566621,
0.037067637,
-0.026515024,
-0.016032666,
-0.009302038,
-0.016791442,
-0.00013667198,
0.04257579,
-0.039737407,
0.053282972,
-0.035353363,
0.041788913,
-0.053648308,
-0.04004654,
0.005992929,
-0.060645916,
-0.044908326,
-0.028440068,
-0.014950708,
-0.011198979,
0.012688429,
-0.00066392944,
0.01586405,
-0.0026908463,
0.03431356,
0.00625288,
0.04206994,
-0.022032622,
0.0233113,
0.037826415,
-0.021287896,
-0.011564316,
-0.0023904974,
-0.006509319,
0.040018436,
-0.00021658941,
0.06019627,
-0.0036779584,
-0.046369676,
0.03560629,
-0.03886622,
-0.0031598124,
-0.04043998,
0.03164379,
0.07222428,
-0.0049777143,
0.011929653,
-0.0055327453,
0.028692992,
0.02113333,
0.021597028,
0.034285456,
-0.026276149,
0.00044437606
] | from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
``
</pt>
<tf>
Use [TFAutoModelForSequenceClassification] and [AutoTokenizer] to load the pretrained model and it's associated tokenizer (more on anTFAutoClass` in the next section): |
[
-0.00088979205,
-0.013111961,
-0.014962293,
0.018372709,
0.00086167426,
0.021855688,
0.0028843412,
-0.022320084,
-0.0066902204,
0.035207104,
-0.041679636,
0.011101993,
-0.004977756,
-0.017806726,
-0.019577239,
0.015992675,
-0.019983586,
-0.0638546,
-0.0629258,
-0.035207104,
-0.023060217,
0.013053912,
-0.0952014,
-0.03857398,
-0.01711013,
0.007415841,
0.042579405,
-0.010412653,
0.060661867,
0.062809706,
0.016079748,
-0.006715617,
0.0019446628,
-0.0047999793,
-0.0436243,
-0.08086314,
-0.010253017,
-0.022421671,
-0.013721482,
-0.021013968,
0.001418588,
-0.0025033904,
0.014606739,
-0.033059265,
-0.037500065,
-0.0061677736,
-0.019620776,
-0.028879693,
-0.009723314,
0.0024290143,
-0.008322867,
-0.0035791227,
0.03529418,
0.004618574,
-0.04838437,
-0.026906006,
-0.03006971,
-0.00909928,
-0.05717889,
-0.008409941,
0.014251186,
0.06008137,
-0.029750438,
-0.062171157,
-0.019736875,
0.012785432,
-0.009404041,
0.041186217,
0.002488878,
-0.031317778,
-0.06640878,
0.0066321706,
-0.005786823,
-0.014889731,
-0.047919974,
-0.0091863545,
0.0012399039,
-0.018866131,
0.00064172054,
0.052883215,
-0.021376777,
0.017661601,
0.013460259,
0.01879357,
-0.008598602,
-0.06536389,
0.0518093,
-0.014374541,
-0.030708257,
-0.04086694,
-0.016863419,
-0.0042448794,
-0.052447844,
-0.016790858,
0.0050865994,
0.01443259,
-0.0022548656,
0.03224657,
0.017530989,
-0.018909669,
0.027268816,
0.042318184,
-0.02718174,
0.027210766,
-0.02229106,
0.015455715,
0.016253898,
-0.0177777,
-0.021405803,
-0.024105111,
-0.008780007,
0.0021496506,
0.03332049,
-0.022842532,
-0.022276547,
0.0004367328,
-0.0001361672,
0.023190828,
-0.0073323944,
-0.030418009,
-0.023481077,
-0.017603552,
0.018938694,
-0.08324318,
0.020810794,
-0.044030648,
0.003194544,
0.038428858,
-0.044553094,
0.041360363,
0.023510102,
0.002135138,
0.026151361,
0.015833037,
0.0046693673,
0.0180099,
0.004092499,
0.012879763,
0.012023531,
-0.006704733,
-0.013126474,
-0.0062330794,
-0.004926963,
0.08382367,
0.01573145,
-0.0048435163,
-0.017661601,
-0.062287256,
-0.02446792,
0.032304622,
-0.046178482,
0.0034213003,
0.00032720948,
-0.0016671129,
-0.03253682,
0.008076156,
0.018474296,
-0.0199981,
-0.006715617,
0.0021550928,
-0.018837105,
-0.012009018,
-0.032769017,
0.0559018,
-0.008533296,
0.022726431,
-0.0062403358,
0.0013995405,
0.018735519,
-0.028429808,
-0.009062999,
0.017676113,
0.019983586,
0.02693503,
0.027326865,
0.017545503,
0.052012473,
-0.0054530376,
0.0143455155,
-0.0044952184,
0.014200392,
-0.035584427,
-0.03271097,
0.005021293,
0.018895157,
-0.0073251384,
-0.01355459,
-0.0008916061,
-0.01994005,
0.0053079133,
0.025382202,
0.03616492,
-0.00961447,
0.012161398,
-0.024554996,
0.0006421741,
-0.014265697,
0.017095618,
0.02114458,
-0.001950105,
-0.051664174,
0.083301224,
-0.046236534,
0.0052026985,
-0.0049523595,
0.022073373,
0.01051424,
0.04014132,
-0.008359147,
0.023872912,
0.0030675603,
0.017574526,
-0.042027935,
0.017211717,
0.018401735,
-0.032304622,
-0.0049523595,
0.031230703,
-0.004190458,
0.0050648306,
0.010434422,
0.043217953,
0.030214835,
0.012074324,
0.029431164,
-0.016906956,
-0.036832493,
0.06902102,
0.0070929397,
0.011501084,
0.02634002,
0.0059537156,
-0.0021768613,
0.07500013,
0.002305659,
0.019794926,
0.040199373,
0.02710918,
-0.018517833,
-0.012248473,
0.010978637,
0.02764614,
0.06008137,
0.06037162,
-0.044756267,
-0.002523345,
-0.0072707166,
-0.028821643,
-0.015716938,
0.034742706,
-0.04983561,
0.041737687,
0.011667976,
-0.000115702445,
-0.04585921,
-0.025977211,
0.015136442,
0.019664314,
-0.007176386,
-0.0550891,
-0.0057033766,
0.015092905,
0.029358603,
-0.03526515,
0.020201273,
0.053637862,
-0.0001190471,
0.036919568,
-0.043392103,
-0.05209955,
-0.0151944915,
-0.062635556,
-0.097639486,
0.021347754,
-0.015774988,
-0.03982205,
-0.01808246,
-0.06211311,
0.02156544,
-0.013373185,
-0.01626841,
0.0011092923,
-0.07923775,
0.047484603,
0.0129015315,
0.0059791123,
-0.0319273,
0.029358603,
-0.040199373,
0.035149053,
0.005892038,
-0.019069305,
-0.043421127,
-0.019446628,
0.02072372,
0.028125048,
0.0003868464,
-0.0295908,
-0.011762307,
0.0278348,
-0.009164586,
-0.010086124,
0.031956322,
0.034858804,
-0.02634002,
-0.0073432787,
0.019112842,
-0.03471368,
0.04469822,
0.060197473,
-0.036745418,
0.02343754,
0.008192254,
0.059007455,
-0.03512003,
0.006396344,
0.042753555,
0.0034993044,
-0.02680442,
-0.000004233967,
-0.041911837,
0.018459784,
-0.028908718,
-0.012009018,
0.013307879,
0.036426146,
-0.013656177,
-0.043943573,
-0.006254848,
-0.015716938,
-0.029750438,
-0.037442014,
-0.032507796,
0.03332049,
0.036106873,
-0.012545977,
-0.064609244,
0.009062999,
0.012952325,
0.039502777,
-0.020389935,
-0.015920112,
0.029532751,
0.05006781,
0.017066592,
0.009534652,
0.016529633,
-0.03207242,
0.007452122,
-0.026354535,
0.016892444,
0.04699118,
0.01286525,
0.018633932,
0.013082936,
0.030940454,
0.01114553,
0.019243455,
0.026833443,
0.017240742,
0.0146793015,
0.023277903,
0.0033451102,
0.01867747,
-0.006160517,
-0.007568221,
0.0036154038,
0.044872366,
0.05662742,
-0.04603336,
0.016486095,
-0.0012090651,
-0.022465209,
-0.0064834184,
-0.031898275,
-0.064260945,
0.06942736,
0.038399834,
0.060023323,
-0.0060226494,
-0.006109724,
-0.0075464523,
0.007604502,
0.022697408,
0.05259297,
0.012937812,
0.00043061038,
-0.012386341,
-0.0105360085,
-0.011261629,
0.0073831878,
0.030214835,
0.017922824,
0.022015324,
-0.015978161,
-0.04693313,
0.016413534,
0.030388983,
0.011515596,
0.008809032,
0.052476868,
-0.018445272,
0.03758714,
0.009636239,
-0.0024217581,
0.018866131,
-0.04440797,
0.050038785,
0.006675708,
-0.0061895424,
-0.006004509,
-0.038080562,
0.002240353,
-0.0011156414,
-0.027225278,
0.01449064,
-0.029489214,
-0.0034267425,
0.0032380812,
0.02989556,
-0.031259727,
0.00973057,
-0.020680182,
0.024380846,
0.03337854,
-0.015513765,
0.0070747994,
-0.009345992,
0.019040281,
0.044378944,
0.010543264,
-0.0009052115,
0.0055328556,
-0.032304622,
-0.03163705,
0.06588633,
0.0072562043,
-0.018590396,
0.025106467,
-0.06008137,
-0.022058861,
-0.014788144,
-0.026325509,
-0.043276,
0.027559064,
-0.023713276,
0.0010149616,
-0.0068280883,
0.016021699,
-0.023423027,
0.022639357,
-0.023176316,
-0.0006866183,
-0.035932723,
-0.0091790985,
-0.022058861,
-0.0046838797,
-0.012836225,
0.011842125,
0.027283328,
-0.014185879,
-0.030011661,
0.06983371,
-0.0040271934,
-0.05831086,
0.0042739045,
0.045888238,
-0.012284754,
0.02512098,
-0.012799945,
-0.022726431,
0.024148649,
0.03752909,
0.02127519,
-0.007669808,
-0.0041723177,
-0.020651158,
-0.023713276,
-0.034423433,
0.005823104,
-0.036135897,
0.03271097,
-0.018213073,
-0.026833443,
0.0031927298,
-0.07407133,
0.01003533,
-0.02934409,
-0.030853381,
0.019185403,
0.02253777,
-0.00831561,
-0.007005865,
-0.02483073,
-0.03909643,
-0.038254708,
-0.0316951,
0.010412653,
0.059849173,
0.029053843,
0.07250399,
-0.05320249,
0.006998609,
0.037267864,
-0.0018131441,
0.00774237,
-0.017342329,
-0.021086529,
-0.0083373785,
0.010376372,
-0.0038167634,
0.0014630322,
0.014555946,
0.012633052,
0.0077206013,
-0.022436183,
-0.0040598465,
-0.032449745,
-0.01969334,
0.04710728,
-0.059007455,
-0.047948997,
-0.028763594,
0.03102753,
0.033088293,
0.006646683,
0.061532613,
-0.010267529,
-0.026557708,
-0.0140044745,
0.03337854,
-0.006084327,
0.023887424,
-0.041534513,
-0.030447034,
0.03735494,
0.034133185,
-0.001241718,
-0.054508608,
0.0008557786,
-0.040112298,
-0.014381797,
-0.035874672,
-0.043159902,
-0.016282922,
0.027689675,
-0.028952256,
0.034075137,
0.010717413,
0.007822189,
-0.02777675,
-0.01909833,
0.05421836,
0.039502777,
-0.040837917,
-0.0025813947,
0.024380846,
-0.017182691,
-0.0011809473,
0.033059265,
0.004651227,
0.048645593,
-0.010049843,
0.006004509,
-0.04940024,
-0.037616163,
-0.017095618,
0.0049197064,
0.040983044,
-0.028342733,
-0.047223378,
-0.0070566586,
0.024598533,
-0.0041070115,
0.016181335,
-0.0516932,
0.008076156,
-0.028836155,
-0.034916855,
0.01219768,
-0.027515527,
0.0003925153,
0.009853926,
0.011602671,
0.090034984,
-0.045162614,
0.013598127,
0.053637862,
-0.0017931894,
-0.019548215,
-0.032798044,
0.047136303,
-0.029605314,
0.0089251315,
-0.051141728,
-0.015165467,
-0.02951824,
0.026862469,
-0.0053732195,
-0.07273619,
-0.011544621,
0.026223922,
0.046410684,
-0.020491522,
0.036600295,
0.012415365,
-0.023945475,
-0.022218497,
0.05314444,
0.0053949878,
-0.005293401,
0.05207052,
-0.008555065,
0.011697002,
-0.0013160941,
-0.021057505,
-0.018343685,
-0.024787193,
0.040954016,
0.0055292277,
-0.0218702,
-0.0017006729,
0.019504678,
-0.0156153515,
-0.037906412,
0.04121524,
0.019330528,
-0.08034069,
-0.007107452,
0.014962293,
0.03096948,
-0.024322797,
0.020491522,
0.022494234,
-0.05500203,
0.0041251522,
0.023814863,
-0.019257966,
-0.026122335,
0.012458903,
0.022102399,
-0.044785295,
0.03303024,
-0.06368045,
0.01644256,
-0.01867747,
-0.028168585,
0.034800757,
0.02915543,
0.00957819,
0.04104109,
-0.014410822,
0.06042967,
-0.021391291,
-0.018053437,
0.03073728,
-0.0063636913,
-0.03898033,
-0.020056149,
0.04481432,
0.0066938484,
-0.002663027,
-0.011617183,
0.02446792,
0.07389718,
0.04887779,
0.00018945496,
-0.07749626,
0.02120263,
-0.006755526,
-0.0109351,
0.0034884203,
-0.005641699,
-0.02398901,
0.035061978,
-0.019867487,
-0.027573576,
0.009723314,
0.025686963,
-0.026180385,
-0.0116389515,
-0.026325509,
0.018967718,
-0.011232604,
-0.059326727,
-0.022871556,
-0.025280615,
0.0063782036,
0.04464017,
0.0065160715,
-0.018329171,
0.01066662,
0.010985893,
0.0021677911,
0.04182476,
-0.009643495,
0.009251661,
0.0028934116,
-0.01177682,
-0.0037442015,
0.065538034,
0.048471443,
-0.030882405,
0.0156153515,
0.009897463,
0.005928319,
-0.01711013,
0.011414009,
0.058397934,
-0.030156786,
0.04922609,
-0.0356715,
0.017240742,
-0.015267054,
-0.009679777,
-0.024859756,
0.0071727578,
-0.019736875,
0.043479174,
0.017023055,
0.029010305,
-0.01244439,
0.036310047,
-0.009055743,
0.046265557,
0.021826662,
0.004117896,
0.012125118,
-0.047281425,
0.04104109,
-0.039589852,
0.0039872844,
0.022102399,
-0.006610402,
0.013228061,
0.0156153515,
-0.0061496333,
-0.048645593,
-0.00020510115,
0.0559018,
-0.011522853,
0.02439536,
-0.05680157,
-0.014824426,
0.018648446,
-0.05773036,
0.015586327,
-0.04211501,
-0.020085173,
0.015354129,
-0.04121524,
0.020738231,
-0.013634408,
-0.017008543,
-0.006973212,
0.009244405,
-0.010623083,
0.007103824,
-0.0028825272,
0.0044154003,
0.00084988296,
-0.021667026,
-0.03639712,
-0.0072670886,
-0.002594093,
-0.041795738,
0.0021278819,
0.06896297,
0.061706763,
-0.0016462513,
-0.015557302,
-0.059907224,
-0.007902007,
-0.014744607,
0.026238434,
-0.022595821,
0.01135596,
-0.059907224,
0.01166072,
-0.038661055,
0.01928699,
0.01951919,
0.013902888,
0.014657533,
0.017182691,
-0.009788619,
0.012785432,
0.00909928,
-0.007785907,
0.011943712,
0.026775394,
0.006570493,
-0.022203986,
-0.025135491,
-0.029837511,
0.06571218,
0.02446792,
0.015325104,
-0.011580902,
0.032827068,
-0.0028462461,
-0.029561777,
-0.040576693,
0.06681513,
0.050503183,
0.04464017,
0.016500609,
0.008780007,
-0.037325915,
-0.00290611,
0.010332835,
0.043479174,
-0.023350466,
0.011174555,
0.0023872913,
-0.031491928,
-0.020157736,
0.0079963375,
-0.025774037,
-0.00019931886,
0.001346933,
0.04133134,
0.0005836709,
0.029619826,
-0.012183167,
0.037790313,
0.025280615,
0.024656583,
0.019548215,
-0.0046076896,
0.031172654,
-0.011595414,
0.03572955,
-0.017603552,
-0.0053587067,
-0.035091005,
-0.013685201,
-0.08179194,
0.022857044,
-0.009752339,
-0.05453763,
0.03427831,
-0.008896107,
-0.02825566,
-0.029663363,
-0.009795876,
-0.012001762,
0.018111486,
-0.0026412583,
-0.032304622,
-0.040199373,
0.033697814,
-0.030156786,
0.03982205,
0.021478364,
0.0635063,
0.011515596,
0.050706357,
-0.013765019,
0.01838722,
0.04037352,
-0.0035754947,
-0.019141868,
-0.052912243,
0.0038385321,
-0.0005723331,
-0.015121929,
-0.0053768475,
-0.062461406,
0.021971786,
0.014933269,
-0.022973143,
-0.032623895,
0.021101043,
-0.0012698357,
-0.010855282,
0.019330528,
0.10431519,
0.004146921,
-0.02831371,
-0.022131423,
0.011515596,
-0.082024135,
0.028212123,
-0.0357876,
0.040344495,
-0.018140512,
-0.06524779,
-0.006120608,
-0.017864775,
0.013648921,
-0.0072271796,
-0.0039292346,
-0.038893256,
0.026601246,
-0.003736945,
0.026543194,
0.014817169,
-0.012038043,
0.00025872904,
0.031172654,
0.028894205,
0.02813956,
0.07389718,
0.030156786,
0.005365963,
0.00052380725,
0.004749186,
0.0010476145,
-0.0137505075,
-0.008627627,
0.0015609909,
-0.0027918245,
-0.042347208,
-0.04934219,
-0.00050657376,
-0.00074466795,
0.037006643,
-0.03898033,
-0.013010374,
0.03857398,
-0.070820555,
0.0038603006,
0.015136442,
0.01433826,
-0.01506388,
-0.013503796,
0.02043347,
-0.03645517,
0.25100663,
0.051722225,
0.013569102,
0.045104567,
0.013278854,
0.03265292,
0.029808488,
-0.036368094,
-0.0014866148,
0.0031510068,
-0.0035700526,
-0.04054767,
-0.0070856833,
0.033407565,
-0.04104109,
0.025701476,
-0.042985756,
0.0039110943,
-0.008228536,
-0.027486501,
-0.058049634,
0.06164871,
0.0077931634,
0.049864635,
0.031056555,
-0.024090597,
0.027515527,
-0.011588158,
-0.022624845,
-0.016703783,
0.0118929185,
-0.06437705,
0.011022175,
0.0021750473,
-0.03361074,
-0.00048571217,
0.023364978,
-0.0559018,
-0.040576693,
0.038951304,
-0.00418683,
-0.012966837,
0.05511813,
-0.0019120098,
-0.017037569,
-0.001067569,
-0.0004455763,
0.031056555,
0.050822455,
-0.028792618,
0.035584427,
-0.044320896,
0.03982205,
-0.06205506,
-0.043101855,
-0.016819881,
-0.05662742,
-0.0518093,
0.0015383153,
0.013300623,
-0.038254708,
-0.0055255997,
0.00973057,
-0.005271632,
-0.018938694,
0.04289868,
0.009396785,
0.04789095,
-0.0278348,
0.016703783,
0.021841176,
-0.01632646,
-0.011232604,
-0.0045278715,
-0.004897938,
0.05476983,
0.01470107,
0.058049634,
-0.026717344,
-0.04815217,
0.02452597,
-0.02343754,
0.009316966,
-0.033697814,
0.016965006,
0.08010849,
-0.013888375,
0.033291467,
-0.032739993,
0.015238029,
0.03297219,
0.01301763,
0.016152311,
-0.016921468,
0.0055909054
] | from transformers import AutoTokenizer, TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
Specify the model and tokenizer in the [pipeline], and now you can apply the classifier on French text: |
[
0.0020090167,
-0.004670194,
-0.029434176,
0.0019057578,
0.006974494,
-0.011572225,
0.03028923,
-0.013021471,
-0.018985117,
0.033651482,
-0.05217284,
-0.008238961,
0.0048622186,
-0.01628952,
-0.03582535,
-0.007217243,
-0.024463264,
-0.04857871,
-0.05767997,
-0.0042173043,
-0.0041122343,
0.006557836,
-0.07808535,
0.0018659036,
-0.024941515,
0.04144842,
0.046259917,
-0.016130103,
0.08214324,
0.049071454,
-0.00494555,
-0.00070877164,
-0.009456327,
-0.009007061,
-0.01976771,
-0.0728101,
-0.004844103,
-0.04527443,
-0.039332524,
-0.030260246,
0.031651523,
-0.013325812,
0.008557795,
-0.021521296,
-0.037332565,
-0.016970664,
-0.025274841,
-0.0286226,
0.006311464,
-0.04089771,
-0.014267822,
-0.0071049263,
0.051042426,
0.0017073924,
-0.011260638,
-0.0059056757,
-0.03559347,
0.03478189,
-0.051796034,
-0.0066737756,
0.021101015,
0.047361344,
-0.029028388,
-0.03605723,
0.009094016,
-0.007724479,
-0.022985034,
0.03211528,
-0.005514379,
-0.04202812,
-0.07025942,
0.029390698,
-0.020912614,
-0.030868929,
-0.057158243,
-0.015318525,
0.007123042,
-0.028318258,
-0.028796509,
0.059998766,
-0.010108488,
0.012318587,
0.010492537,
0.042057104,
-0.0063223336,
-0.036636926,
0.052027915,
-0.018637298,
-0.04924536,
-0.04083974,
-0.012398295,
0.018506866,
-0.0011766062,
-0.004670194,
0.016970664,
0.019463368,
-0.00994907,
0.0016258723,
-0.002065175,
-0.0328399,
0.049477242,
0.053738024,
-0.018854685,
0.019347427,
-0.04173827,
0.041274514,
0.040231057,
-0.010680939,
-0.0046122237,
-0.018043106,
-0.004391214,
-0.0074563683,
0.034665953,
-0.024753114,
-0.057419106,
0.00935488,
0.027245816,
0.026347283,
-0.009608498,
-0.04794104,
-0.027013937,
-0.0019927125,
0.020216975,
-0.068578295,
0.013448998,
-0.059592977,
0.0055252486,
0.043042593,
-0.03481088,
-0.002456471,
0.023100974,
0.026376268,
0.027405232,
0.031042838,
0.0074563683,
-0.00009284229,
0.009434588,
0.0136736315,
0.052404717,
-0.021390865,
0.0053622085,
-0.028115364,
0.0151011385,
0.0795346,
-0.017477902,
0.026376268,
0.0065759514,
-0.07083912,
-0.035390574,
0.043361425,
-0.04846277,
0.026361777,
-0.009572267,
0.017463408,
-0.059071247,
0.03252107,
0.00770274,
-0.020912614,
0.012420034,
-0.012833069,
-0.010224427,
-0.012840316,
-0.040462933,
0.07292604,
0.0024148053,
0.01847788,
-0.019173518,
-0.0010769706,
0.0038078926,
-0.03872384,
-0.012825822,
0.00046013546,
0.008920106,
0.033332646,
0.037303578,
-0.004133973,
0.045361385,
-0.0074563683,
0.03081096,
-0.015651852,
0.004757148,
-0.030405171,
-0.024057476,
0.02095609,
-0.01876773,
-0.0003912963,
0.014166375,
-0.009536035,
-0.036318094,
0.0026974082,
0.025071947,
0.039622374,
-0.029970398,
0.016738785,
-0.01534751,
0.009651975,
-0.023014018,
0.027129875,
0.039390493,
-0.03510073,
-0.047013525,
0.06092628,
-0.04185421,
0.030405171,
-0.010702678,
0.005383947,
0.015130123,
0.02579657,
-0.036810838,
-0.015434464,
0.0070107253,
0.0432165,
-0.026926981,
-0.013130165,
0.04539037,
-0.01759384,
-0.026477715,
0.0117896125,
-0.009275171,
-0.0011557733,
0.013644647,
0.022100994,
0.02160825,
0.026608149,
0.026897997,
-0.025869032,
-0.055274226,
0.0741434,
0.02060827,
-0.006583198,
0.021579266,
0.0009411038,
-0.009485312,
0.06579575,
0.014514194,
0.045651235,
0.06515808,
0.040694814,
-0.025303828,
-0.015188093,
0.0086230105,
0.034202196,
0.060056735,
0.047680177,
-0.0286226,
-0.017217036,
0.010369352,
-0.028347243,
-0.017753258,
0.07623032,
-0.03475291,
0.017347468,
0.02089812,
0.0030470388,
-0.056027833,
-0.036347076,
-0.02520238,
0.024173414,
-0.0034310888,
-0.012115693,
-0.005090475,
0.033332646,
0.015782284,
-0.00802882,
0.0069491323,
0.03941948,
-0.0036104328,
0.04220203,
-0.03269498,
-0.060810342,
-0.015651852,
-0.07379558,
-0.08886774,
0.019332936,
-0.016912695,
-0.0046520783,
-0.013086687,
-0.06967972,
0.02024596,
-0.0013305886,
-0.028680569,
-0.0063223336,
-0.03843399,
0.057071287,
0.020057557,
0.021564774,
-0.042897668,
0.022999527,
-0.04675266,
0.0318834,
0.012956255,
-0.0113331,
-0.011514256,
-0.034984786,
-0.0022427074,
0.019173518,
0.008869383,
-0.01039109,
-0.058404595,
0.021492312,
-0.018912654,
-0.025071947,
0.004297013,
0.044057064,
-0.027492188,
0.0011738889,
-0.009883855,
-0.031158779,
0.020680733,
0.050781563,
-0.04910044,
0.029173313,
0.009383865,
0.034202196,
-0.022796633,
0.026245836,
0.031071823,
0.018405419,
-0.030405171,
-0.0008767935,
-0.040694814,
-0.012688144,
-0.018637298,
-0.027115384,
0.004405706,
0.035390574,
0.0070904335,
-0.05683941,
-0.004010787,
-0.01888367,
-0.026593655,
-0.038926736,
-0.0432165,
0.0432165,
0.033651482,
-0.01304321,
-0.03617317,
0.012912777,
0.022680692,
0.04385417,
-0.0101954425,
-0.0129490085,
0.013231612,
0.06724499,
0.00401441,
0.010282397,
-0.019332936,
-0.032202236,
-0.020332914,
-0.020999568,
-0.000013077176,
0.019941619,
0.023941536,
0.023274884,
0.01759384,
0.038984705,
-0.002465529,
0.0023821974,
0.015202586,
0.005344093,
0.014282315,
0.03144863,
0.018072091,
0.011304115,
-0.011608456,
-0.01523157,
0.0072824587,
-0.0006308747,
0.0508975,
-0.06486823,
0.02944867,
0.008637504,
-0.0197822,
0.018202525,
-0.019753216,
-0.060346585,
0.09049089,
0.04118756,
0.053158324,
-0.02053581,
0.007380283,
-0.027999423,
0.02691249,
0.0042752745,
0.04292665,
0.022651708,
-0.015477942,
0.021043045,
-0.023448793,
-0.02544875,
0.013970727,
-0.0048223645,
0.00090170244,
0.0027137122,
-0.0061846552,
-0.038376022,
0.027245816,
0.026390761,
0.038520947,
0.013948988,
0.06498417,
-0.0026176998,
0.0032680486,
0.009420096,
0.01112296,
0.027492188,
-0.022506783,
0.033303663,
0.006162917,
-0.016869217,
-0.008340408,
0.0018160858,
0.00085143175,
0.021622743,
-0.041245528,
0.0061846552,
-0.021303909,
-0.00814476,
0.00478251,
0.007724479,
-0.021390865,
-0.03854993,
-0.021869116,
0.037274595,
0.044636764,
-0.0065034893,
0.012521481,
-0.023100974,
0.012231632,
0.03941948,
-0.02910085,
-0.030028367,
-0.014818535,
-0.04237594,
-0.04449184,
0.029434176,
0.03478189,
0.001013566,
0.02756465,
-0.05217284,
-0.017448915,
0.009456327,
-0.010253412,
-0.025564691,
0.026231345,
-0.014180867,
0.011246145,
0.018637298,
-0.009123,
-0.04220203,
0.022680692,
-0.02172419,
-0.019289458,
-0.046491798,
0.004271651,
-0.00020210182,
-0.0033332647,
-0.018666282,
0.003883978,
0.049042467,
-0.035912305,
0.004807872,
0.038694855,
0.0026195112,
-0.0704913,
0.017825719,
0.06289726,
-0.009065031,
0.03394133,
-0.02249229,
-0.036636926,
0.02243432,
0.027129875,
0.01623155,
0.030028367,
-0.0036720259,
0.0062571177,
-0.0249705,
-0.026550177,
0.025927002,
-0.016695308,
0.04191218,
-0.009463573,
-0.01413739,
-0.01705762,
-0.072288364,
0.034694936,
-0.036260124,
-0.0437962,
0.01694168,
0.00643465,
0.000086615066,
0.009862116,
-0.027405232,
-0.0077534635,
-0.04521646,
-0.0106084775,
0.0010905572,
0.044259958,
0.002510818,
0.054056857,
-0.059766885,
-0.012891039,
0.025927002,
-0.025840048,
0.00013881054,
-0.011862075,
0.004684686,
0.017376455,
0.0103403665,
0.018970624,
0.00009861663,
-0.00041394075,
-0.01348523,
-0.0023332853,
-0.03782531,
-0.033738434,
-0.008412871,
-0.0038622394,
0.052665584,
-0.056723468,
-0.040984664,
-0.04254985,
0.03098487,
0.019463368,
0.015275048,
0.019666262,
-0.029303744,
-0.020912614,
-0.011666426,
0.027477695,
-0.02307199,
0.011833089,
-0.031912386,
-0.031970356,
-0.003724561,
0.042578835,
0.022129979,
-0.034607984,
0.012405542,
-0.042984623,
-0.014999691,
-0.026753072,
-0.0270864,
-0.025318319,
0.031419642,
-0.05225979,
0.028680569,
-0.0054020626,
0.026869012,
-0.021666221,
-0.014064928,
0.04623093,
0.062143646,
-0.024448771,
0.008057805,
0.014869259,
-0.023173437,
0.022521276,
0.025579184,
-0.009188216,
0.039738312,
-0.033332646,
0.00018375981,
-0.059303127,
-0.05562204,
-0.011601211,
-0.0006797867,
0.05892632,
-0.008195483,
-0.019014101,
-0.015304033,
0.01171715,
-0.005670173,
0.010130227,
-0.07269415,
0.007351298,
-0.04026004,
-0.03057908,
0.019651769,
-0.022796633,
0.005851329,
0.012920024,
0.0017508698,
0.101099364,
-0.032550056,
0.019753216,
0.044897627,
0.015593882,
0.013304074,
-0.059100233,
0.026318299,
-0.0056919116,
-0.008847644,
-0.05312934,
-0.017390946,
-0.022985034,
0.02544875,
-0.013666385,
-0.057882868,
-0.013108426,
0.031013854,
0.055998847,
-0.0334196,
0.039361507,
0.0060506,
-0.008630257,
-0.048781604,
0.05547712,
0.0002755831,
0.004684686,
0.04915841,
0.005441917,
0.031970356,
0.031912386,
-0.0004288861,
0.0008840398,
-0.05353513,
0.05460757,
0.010260658,
-0.024869053,
0.0024619058,
0.032376144,
-0.03524565,
-0.022347366,
0.03741952,
0.011876567,
-0.062491465,
-0.016564876,
0.026057435,
0.003213702,
-0.02673858,
0.046114992,
0.017159067,
-0.051738065,
0.03747749,
-0.0003654816,
-0.011630195,
-0.043535337,
0.025318319,
0.035390574,
-0.044346914,
0.012391049,
-0.04721642,
0.027767545,
-0.0270864,
-0.025419766,
0.048723634,
0.02431834,
-0.016188072,
0.056723468,
-0.0016575746,
0.07930271,
-0.016376475,
-0.017956153,
0.025550198,
-0.012093954,
-0.046201948,
-0.02078218,
0.028651584,
0.006840439,
0.008680981,
-0.013862033,
0.025941495,
0.020332914,
0.040462933,
0.014818535,
-0.0530134,
0.032028325,
-0.01576779,
-0.023448793,
-0.0012381992,
-0.027405232,
-0.023869073,
0.02355024,
-0.017043127,
-0.016956173,
0.015898224,
0.02626033,
-0.024448771,
-0.015057661,
-0.022187948,
0.0034419582,
-0.015564897,
-0.053738024,
-0.020115528,
0.0011630196,
0.024390802,
0.042665787,
-0.012753361,
-0.025955988,
0.0063621877,
0.0038296313,
0.01189106,
0.012738868,
-0.0028550136,
-0.0095940055,
0.02408646,
-0.017014142,
-0.03782531,
0.05753505,
0.039709326,
-0.011209914,
-0.015956193,
0.018550342,
0.008014328,
-0.024724128,
-0.015492435,
0.044636764,
-0.022216935,
0.059998766,
-0.041709285,
0.010724417,
-0.014188114,
-0.0043115052,
-0.019202502,
-0.0017997818,
-0.014072174,
0.027361756,
0.011093974,
0.033332646,
0.0017508698,
0.027724067,
-0.014434486,
0.03646302,
0.0019890894,
-0.0071049263,
0.011753381,
-0.038318053,
0.035274636,
-0.048491754,
0.0021684335,
0.057216212,
-0.00073639787,
-0.010209935,
0.022332873,
-0.02295605,
-0.032608025,
0.00423542,
-0.009463573,
0.028883463,
0.03057908,
-0.057071287,
0.0014447166,
0.009985302,
-0.045042552,
0.014499702,
-0.034723923,
-0.021535788,
0.013057702,
-0.012920024,
0.0203619,
0.0033024682,
-0.006021615,
-0.026361777,
0.022825617,
0.004304259,
0.027579142,
-0.004996274,
-0.0006263458,
-0.0014184491,
-0.011028758,
-0.044781685,
0.0028695061,
0.035303622,
-0.021332894,
-0.024709636,
0.04875262,
0.036636926,
-0.017144574,
0.0003965045,
-0.058230683,
0.0019691624,
-0.006231756,
-0.004927435,
-0.036607943,
0.023695163,
-0.03776734,
0.035796363,
-0.01659386,
0.0072353585,
-0.0044346913,
0.033303663,
0.009267925,
0.0038405007,
-0.00086320686,
0.0066665295,
0.0066701523,
-0.021550281,
0.0025090063,
0.016753279,
0.02408646,
-0.024100954,
-0.0108983265,
-0.03646302,
0.0572452,
0.010731663,
0.018651789,
-0.009514296,
0.009441835,
0.006652037,
-0.0027137122,
-0.03941948,
0.06463635,
0.030839944,
0.043042593,
0.019608293,
-0.0121012,
-0.02207201,
0.023202421,
0.021492312,
0.04373823,
-0.036810838,
-0.0025524837,
0.03475291,
-0.02426037,
-0.034550015,
-0.0045904852,
-0.052201822,
-0.005188299,
-0.019579306,
0.0541728,
0.016724294,
0.038578916,
-0.018463388,
0.025955988,
0.031071823,
0.02349227,
0.022028532,
-0.0051701833,
0.06156395,
-0.018318463,
0.017956153,
-0.022767646,
-0.0017526813,
-0.011137452,
-0.014325792,
-0.06278132,
0.049013484,
0.008999814,
-0.037013732,
0.03411524,
-0.02397052,
0.0008532433,
-0.04921638,
0.01876773,
-0.042346954,
-0.0020325668,
0.007898388,
-0.030086337,
-0.033332646,
0.03252107,
-0.006068716,
0.03605723,
0.039332524,
0.0704913,
0.006336826,
0.005467279,
0.014760566,
0.022579245,
0.033245694,
0.007485353,
-0.036434032,
-0.03770937,
0.026100911,
0.01640546,
0.010130227,
-0.022057517,
-0.06921597,
0.039216585,
0.014999691,
-0.030521112,
-0.04652078,
0.049912017,
-0.022014039,
-0.019680753,
0.0045180228,
0.0789549,
-0.0130721945,
-0.021796653,
-0.00594553,
0.016825741,
-0.027521173,
-0.0113548385,
-0.028071886,
0.036607943,
-0.01995611,
-0.063882746,
0.0050651133,
-0.035999257,
0.0195938,
0.019463368,
-0.018927146,
-0.028071886,
0.0003989954,
-0.0012472569,
0.04144842,
-0.003311526,
-0.034289148,
0.0032553677,
0.041361466,
0.014985199,
0.008101283,
0.07350573,
0.024332833,
-0.009441835,
-0.00045356856,
-0.012318587,
0.034984786,
-0.009804146,
0.01254322,
0.024506742,
0.020811165,
-0.0012191777,
-0.052143853,
0.017332977,
0.0010153777,
0.03281092,
-0.029419685,
-0.022318382,
0.013282335,
-0.059998766,
-0.018159047,
-0.021941578,
0.036376063,
-0.019014101,
-0.016448937,
0.013115672,
-0.088635854,
0.25135714,
0.03878181,
0.029245775,
0.055100314,
0.008680981,
0.013057702,
0.014985199,
-0.038173128,
0.016985158,
-0.005318731,
0.020796673,
-0.052868478,
-0.023129959,
0.03423118,
-0.016898204,
0.037970234,
-0.030405171,
-0.002608642,
-0.012180909,
-0.027753051,
-0.056230728,
0.05660753,
0.009065031,
0.050984457,
0.025709616,
-0.004173827,
0.00029347223,
-0.027071906,
-0.0068694237,
-0.030318215,
0.016680816,
-0.060230643,
0.031680506,
-0.0165214,
-0.017130082,
-0.017622825,
0.011702658,
-0.052085884,
-0.02308648,
0.025767585,
-0.015738806,
-0.018318463,
0.054375693,
0.01112296,
-0.023883566,
-0.021622743,
-0.046781644,
0.052027915,
0.017361961,
-0.04823089,
0.016564876,
-0.03353554,
0.031912386,
-0.048607696,
-0.048056982,
-0.012586697,
-0.018869177,
-0.03478189,
-0.0039962945,
0.02562266,
-0.037564445,
0.0040289024,
-0.004586862,
0.004644832,
-0.02314445,
0.048549727,
0.02839072,
0.018985117,
-0.00211771,
-0.0022952426,
0.022477798,
-0.010108488,
-0.0070215943,
-0.039013688,
-0.006325957,
0.0249705,
-0.005420178,
0.031651523,
0.0012852997,
-0.038231097,
0.017275007,
-0.0055180024,
-0.017275007,
-0.025637154,
0.018854685,
0.08538955,
-0.030347202,
0.02018799,
-0.025984973,
0.020651748,
0.04617296,
0.015564897,
0.025245856,
-0.020811165,
0.019999588
] | Specify the model and tokenizer in the [pipeline], and now you can apply the classifier on French text:
classifier = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
classifier("Nous sommes très heureux de vous présenter la bibliothèque 🤗 Transformers.")
[{'label': '5 stars', 'score': 0.7273}] |
[
0.019086441,
-0.005015267,
-0.028264178,
0.0067377845,
-0.018030597,
-0.015472201,
0.0063249217,
0.005607488,
0.0007897692,
0.044914052,
0.05455203,
-0.011837655,
0.011350341,
-0.031512935,
0.005181089,
0.03822703,
0.012940878,
-0.029726118,
-0.06968582,
-0.013746299,
0.0083520105,
-0.0003722533,
-0.052440338,
-0.03649436,
-0.030998547,
-0.007641345,
0.047485985,
-0.0153503725,
0.036196556,
0.064000495,
-0.037793864,
-0.013983187,
-0.026044194,
-0.015878296,
-0.055553727,
0.017313162,
-0.004866366,
-0.021685446,
-0.06676193,
-0.069469236,
-0.0009847792,
-0.002294434,
0.020846184,
-0.055499583,
-0.0017013667,
0.023567017,
-0.0018274253,
-0.022050932,
0.00610157,
-0.025218468,
0.010910406,
-0.0022775133,
0.013732762,
-0.005302917,
0.0004445889,
0.015526347,
-0.033272676,
-0.015377445,
-0.041205056,
0.01008468,
0.032243904,
0.035249002,
-0.025502736,
-0.05577031,
0.028128812,
-0.009448466,
-0.012832587,
-0.022917267,
-0.028264178,
-0.008412925,
-0.06340489,
-0.0018105047,
-0.02728955,
-0.03191903,
0.0035127176,
-0.011756436,
0.01905937,
0.01382075,
0.0012698914,
0.05466032,
0.022957876,
0.050247427,
0.033705845,
0.020873258,
-0.006247087,
-0.052954722,
0.06497512,
-0.012230213,
-0.012000092,
-0.033895355,
-0.01716426,
0.019858021,
-0.028047593,
0.020697283,
0.05292765,
0.065083414,
0.00839262,
0.05011206,
0.026111877,
-0.019235343,
0.036169484,
0.06253856,
-0.006605804,
0.022795439,
-0.049408164,
0.016934142,
-0.01170229,
-0.011573694,
-0.0041895416,
-0.028968075,
-0.013468801,
0.030673672,
0.029915629,
0.0028765027,
0.0007775018,
0.018423155,
-0.012264054,
0.019858021,
-0.023553481,
-0.025001885,
0.013245449,
0.018396081,
-0.018341934,
-0.034166083,
0.032785363,
-0.02536737,
-0.018910468,
0.061076615,
-0.039093364,
0.033976573,
-0.01724548,
-0.02659919,
0.023228606,
0.068765335,
-0.0041861576,
-0.011377415,
0.029130513,
0.03576339,
0.008365546,
-0.02617956,
0.013969651,
0.020588992,
-0.018260716,
0.07071459,
0.0008083819,
-0.011302964,
0.040907253,
-0.06497512,
-0.019519608,
0.019587291,
-0.00762104,
0.04261285,
-0.0047208485,
-0.00050931016,
-0.022957876,
-0.014984887,
-0.0045381063,
0.01039602,
0.000059010606,
0.020426553,
-0.010389251,
0.03251463,
-0.05119498,
0.019492537,
0.016649874,
0.049245726,
-0.008602436,
-0.025462126,
0.011059307,
-0.047431838,
-0.0013764912,
0.009841024,
-0.0068088514,
0.03478876,
0.048406463,
0.029617826,
0.02102216,
0.009157431,
0.038281176,
-0.027127113,
-0.027465524,
-0.045049418,
0.0144975735,
0.01528269,
-0.005621025,
-0.018585593,
-0.02079204,
0.01024035,
-0.018626202,
0.019925704,
-0.0064907437,
0.023377506,
-0.0066430294,
0.013319899,
-0.033543408,
-0.0081557315,
-0.02217276,
0.030700745,
0.027086504,
-0.026152486,
-0.026355533,
0.037441913,
-0.05847761,
0.0422609,
0.019736193,
0.012162531,
-0.024690546,
0.03633192,
-0.01851791,
0.039391167,
0.03313731,
-0.02298495,
-0.026490899,
-0.04031165,
0.031675372,
-0.020061068,
-0.016054269,
0.020873258,
-0.0038477455,
-0.020995086,
-0.00398311,
0.00712019,
0.041665297,
-0.041015547,
0.021523008,
-0.013956115,
-0.00519801,
0.04453503,
-0.0032842893,
0.0015879987,
-0.0058612972,
0.03302902,
-0.0038274408,
0.059831258,
0.04044701,
-0.019776803,
0.062376115,
0.0459699,
0.026545044,
0.027262477,
0.021644836,
0.054795686,
-0.010571994,
0.052656922,
-0.028589053,
-0.018152425,
0.025069568,
0.02929295,
-0.009360478,
0.029590754,
-0.01593244,
0.016663412,
0.03741484,
0.008331706,
-0.070498005,
-0.011397719,
0.038822636,
0.027776863,
-0.04399357,
-0.023729455,
-0.0060812654,
0.03622363,
0.010253887,
-0.033841208,
0.010896869,
0.03248756,
0.025692245,
0.018423155,
-0.013915505,
-0.050139137,
-0.046592575,
-0.048216954,
-0.061455633,
-0.0299427,
-0.008744569,
0.0042335354,
-0.0006776702,
-0.061239053,
0.049597677,
-0.023485798,
-0.012331736,
0.0023959575,
-0.016121952,
0.07439651,
0.043316748,
0.013313131,
-0.024027258,
0.0392558,
-0.01409148,
0.020074606,
-0.0017182874,
-0.05566202,
0.013421424,
0.0043689,
0.00854829,
-0.0021133835,
-0.0010668441,
-0.012967952,
-0.05712396,
0.01739438,
-0.03275829,
0.01528269,
-0.00425384,
0.02113045,
-0.012162531,
0.028426616,
0.0015600797,
-0.036710944,
0.040717743,
0.03714411,
-0.033705845,
0.042910654,
0.020006923,
0.041557003,
-0.051249128,
0.022944339,
0.061076615,
-0.036440212,
-0.014145625,
-0.022524709,
-0.05409179,
-0.025516272,
-0.044210155,
-0.014984887,
-0.000119924785,
0.053875204,
-0.029699044,
-0.055607874,
-0.01478184,
-0.04150286,
-0.041394565,
-0.01601366,
-0.011797045,
0.042098463,
0.04911036,
-0.006152332,
-0.018680347,
0.0025905445,
-0.018409617,
0.04900207,
0.008257255,
0.017083041,
0.053685695,
0.050788887,
0.005512733,
-0.035817534,
0.016000124,
-0.01943839,
0.010267423,
0.0009856252,
0.0065854993,
0.016040733,
-0.020778501,
0.021644836,
0.0040947865,
0.035790462,
-0.059181508,
0.0036920758,
0.02020997,
-0.034166083,
0.012257285,
0.028941002,
-0.007167568,
0.0097395,
-0.0044907285,
-0.009996693,
0.030375868,
0.004487344,
0.055878606,
-0.024839448,
0.033380967,
-0.029509533,
-0.031512935,
0.0078917695,
-0.018111816,
-0.05046401,
0.033435114,
0.006835924,
0.026044194,
-0.03860605,
0.000979703,
-0.0028815789,
0.0067851623,
0.040744815,
0.02856198,
0.039066292,
-0.0296449,
-0.011275891,
-0.03486998,
0.007912074,
0.015770003,
0.010612603,
0.016934142,
-0.011154062,
-0.030592453,
-0.072501406,
0.028020522,
0.05046401,
0.016947677,
0.021523008,
0.039526533,
-0.0062606237,
-0.017624501,
0.00762104,
0.034436814,
0.0032589084,
-0.02081911,
0.02818296,
0.03722533,
-0.021333499,
-0.01774633,
-0.0349512,
-0.01224375,
0.0033198225,
-0.044291373,
-0.0086836545,
-0.04315431,
-0.016067807,
-0.034003645,
0.04908329,
-0.028155886,
-0.021523008,
-0.07818673,
0.004115091,
0.041746516,
-0.02309324,
-0.002940801,
-0.03449096,
0.023607627,
0.03191903,
-0.027343696,
-0.036656797,
-0.01455172,
-0.014443428,
-0.029888555,
0.018544983,
0.058802485,
-0.037008747,
0.028345397,
-0.0605893,
-0.008013599,
0.014741231,
0.002631154,
-0.006802083,
-0.012555089,
-0.0329478,
-0.010639676,
0.038091663,
0.013604166,
-0.0069915936,
0.0014881672,
-0.03985141,
0.0125144785,
-0.039716043,
0.010172667,
-0.017854622,
0.039580677,
-0.022281053,
-0.006182789,
0.019086441,
0.0174756,
-0.0056954753,
0.035249002,
-0.025746392,
-0.036115337,
0.010192972,
0.009827487,
-0.009428161,
0.065733165,
0.03311024,
-0.037983373,
0.004284297,
0.0073976885,
-0.013746299,
0.030457089,
0.011810582,
-0.009935779,
0.0036751553,
0.0010313109,
0.023242142,
-0.059452236,
0.05809859,
-0.0033891972,
-0.037089966,
-0.01697475,
-0.05685323,
-0.048514757,
0.010348641,
-0.0349512,
0.06557073,
-0.008169267,
-0.009563525,
-0.0054653552,
-0.010876564,
-0.02467701,
-0.0045787157,
-0.0050017308,
0.03010514,
0.03056538,
0.02983441,
0.05192595,
-0.044670396,
-0.046132337,
0.020846184,
-0.03229805,
0.019194733,
-0.027032357,
-0.0073706154,
0.0069915936,
-0.017502673,
-0.040907253,
-0.027451988,
-0.026545044,
0.00969889,
0.03403072,
-0.0329478,
-0.0032402957,
-0.029726118,
-0.03814581,
0.048135735,
-0.027384305,
-0.04115091,
-0.03311024,
0.0075804307,
0.022470562,
0.01312362,
0.0076751863,
-0.022524709,
-0.015580492,
-0.03633192,
0.007336774,
-0.016311463,
-0.0030186358,
-0.025814073,
-0.032812435,
0.00037690645,
0.050436936,
0.028886857,
-0.014808913,
0.048650123,
-0.046971597,
0.016852923,
-0.08620033,
-0.02421677,
-0.010883333,
0.022944339,
-0.034978274,
0.024622863,
-0.009069444,
-0.026653336,
0.01678524,
-0.0015008576,
0.045103565,
0.015255617,
-0.056149334,
-0.03191903,
-0.0028189728,
-0.004257224,
-0.007445066,
0.028670272,
-0.050247427,
0.027208332,
0.004981426,
0.022429952,
0.0053536794,
0.016297925,
-0.013719226,
-0.031079765,
0.031458788,
-0.03021343,
0.026639799,
-0.038633123,
0.0010262347,
-0.013807213,
-0.011221745,
-0.062267825,
0.016704021,
-0.00854829,
-0.030267578,
-0.0054958123,
-0.017949376,
-0.007194641,
-0.0075533576,
-0.008169267,
0.013428192,
-0.046240628,
0.005512733,
0.06405464,
-0.0018003524,
0.0035397904,
-0.032054394,
0.037306547,
0.033299748,
0.013996724,
-0.051682293,
0.04445381,
-0.017583892,
-0.014944278,
0.012020397,
-0.0359529,
-0.014876596,
0.028047593,
0.047296472,
-0.020142287,
0.022050932,
0.016257316,
-0.050897177,
-0.02532676,
0.014402819,
-0.0026328461,
0.010673517,
0.016135488,
0.042558704,
-0.016446827,
0.032812435,
-0.0144298915,
-0.021888494,
-0.017259017,
0.07515456,
0.000755928,
-0.04407479,
0.00800683,
0.018815711,
-0.047215253,
-0.06042686,
-0.009881633,
0.009401088,
-0.024338597,
0.0033807368,
0.023282751,
-0.05046401,
-0.033435114,
0.058964923,
0.0121828355,
-0.03752313,
0.006321538,
0.028318323,
0.004595636,
-0.045266002,
0.011749668,
0.04142164,
-0.042477485,
-0.016040733,
-0.037117038,
0.014267454,
-0.02682931,
-0.03876849,
0.08213938,
-0.028697345,
0.022538245,
0.028237104,
0.015986588,
0.022145687,
-0.015201471,
0.039499458,
0.036088265,
-0.0419631,
-0.060805883,
0.0042030783,
0.018639738,
-0.019749729,
0.043100163,
-0.03175659,
0.038524833,
0.0442643,
0.06432537,
-0.040176284,
-0.047296472,
0.0076616495,
-0.04488698,
-0.011668448,
0.061184905,
-0.0033401274,
0.004274145,
0.03871434,
0.01943839,
-0.052088387,
0.00621663,
0.028453689,
-0.00033418194,
-0.007499212,
-0.041854806,
0.032135613,
-0.0492728,
-0.0062572393,
-0.023621164,
0.008615972,
0.012961183,
0.021617765,
-0.022551782,
0.0016599112,
0.01793584,
0.012460333,
0.02198325,
0.04204432,
-0.03140464,
-0.0048291404,
-0.019235343,
-0.0049340483,
-0.041854806,
0.051682293,
0.008365546,
-0.06502926,
0.016149025,
-0.0053638318,
0.019370709,
-0.057448834,
-0.0057766945,
0.018896932,
-0.017462064,
-0.029428314,
-0.012961183,
0.0045719473,
-0.063134156,
0.010754736,
-0.021292888,
-0.026490899,
0.010165899,
0.03476169,
0.03468047,
0.028074667,
-0.016839385,
0.027885156,
-0.028399542,
0.018653274,
0.013164231,
0.008710727,
0.04060945,
-0.017827548,
-0.020223506,
-0.024947738,
0.02737077,
0.056149334,
-0.065299995,
0.00042322662,
0.009035603,
-0.01655512,
-0.029428314,
0.0021218439,
0.019749729,
0.06351318,
0.047404766,
-0.012040702,
0.0012275898,
-0.050572302,
-0.018544983,
0.023959575,
-0.082518406,
-0.03321853,
0.012061006,
-0.005803767,
-0.020372408,
-0.014023797,
-0.021739593,
-0.008981457,
0.0025025574,
0.007810551,
0.029428314,
0.008148963,
0.0010803806,
-0.0006789393,
-0.007438298,
-0.033408042,
-0.016676947,
0.019844485,
-0.037306547,
-0.0247853,
-0.01239265,
0.024649937,
0.029076366,
0.019316562,
-0.005996662,
-0.00996962,
-0.0012791976,
0.05923565,
-0.013353741,
0.018274253,
-0.037198257,
0.038524833,
-0.00063663773,
0.01743499,
-0.05116791,
0.041394565,
0.013035634,
-0.03248756,
0.014443428,
0.039824333,
0.06205124,
-0.037360694,
0.02937417,
0.027506134,
-0.0057191644,
0.005377368,
-0.0034027335,
0.032352194,
0.062917575,
0.053496182,
0.045699168,
-0.011986556,
0.06042686,
0.051222052,
-0.014565256,
-0.022037394,
0.041394565,
0.027506134,
0.027519671,
0.012541552,
0.012121921,
0.008169267,
-0.023837747,
0.0015279306,
0.0135703245,
-0.024988348,
-0.007885002,
-0.0111946715,
-0.01574293,
0.044832833,
0.015783539,
-0.026355533,
0.0040778657,
0.046375994,
0.021008622,
0.001033849,
0.019695584,
0.015187934,
0.011837655,
0.031675372,
0.04044701,
0.009130358,
0.022687146,
0.025218468,
-0.028074667,
0.032433413,
-0.02672102,
-0.013475569,
-0.024000185,
-0.017462064,
-0.007587199,
0.04973304,
0.02386482,
-0.031810734,
0.0016836001,
-0.012074543,
0.006470439,
-0.061184905,
0.014186235,
-0.061834656,
-0.004226767,
0.03137757,
0.0011641376,
-0.027384305,
0.025516272,
-0.022538245,
0.00088325556,
0.016257316,
0.04680916,
0.01997985,
0.06475854,
0.07553358,
0.018125352,
-0.0016379145,
0.026883457,
-0.0037394536,
-0.02929295,
0.02455518,
0.016419755,
-0.029211732,
-0.005032188,
-0.07195994,
0.022267515,
0.016717557,
-0.004653166,
-0.01366508,
0.025583955,
0.031648297,
-0.051113762,
-0.0267887,
0.09513441,
0.0031506165,
0.006494128,
-0.025218468,
-0.0054788915,
-0.033299748,
0.00923865,
-0.045374293,
0.07342189,
-0.02509664,
-0.05923565,
-0.00029272644,
-0.025529807,
-0.004030488,
0.0038206724,
-0.011763204,
-0.015945978,
0.0319461,
-0.013401119,
0.028859783,
0.028020522,
-0.01935717,
-0.012385882,
0.03237927,
0.05766542,
-0.008189573,
0.033435114,
0.029753191,
-0.017259017,
0.01281905,
0.028616127,
-0.035249002,
-0.0012758136,
-0.012081311,
-0.0105990665,
0.0047716103,
-0.04023043,
-0.05246741,
0.00037881004,
0.021279352,
-0.024880057,
-0.004379052,
-0.024771765,
-0.0038680502,
-0.074883826,
-0.02367531,
-0.03229805,
0.021956176,
-0.008717495,
-0.037875082,
0.0017022128,
-0.037008747,
0.21322669,
0.041990172,
0.026463825,
0.018260716,
0.040555306,
0.04615941,
0.026206631,
0.0044399668,
0.02983441,
-0.043939427,
0.0046294774,
-0.040826034,
0.023959575,
0.03175659,
-0.027776863,
0.025421515,
-0.05290058,
0.0032166068,
0.009631208,
-0.022023859,
-0.07163507,
0.03668387,
-0.01497135,
0.07141849,
0.015621102,
-0.025719319,
-0.009725964,
-0.061184905,
0.010978088,
-0.02286312,
0.017462064,
-0.042991873,
0.010639676,
-0.015160861,
-0.017489137,
0.017259017,
0.009719195,
-0.053414963,
-0.010192972,
-0.0076548816,
-0.03375999,
-0.03411194,
0.015675249,
0.012575394,
-0.047675494,
0.028643198,
0.0028088202,
-0.025435053,
0.023648236,
-0.038985074,
0.02221337,
-0.05755713,
0.008500911,
-0.012006861,
-0.048839632,
-0.011120222,
-0.036196556,
-0.049976695,
-0.015255617,
0.009089748,
0.0017132112,
0.011736131,
-0.061239053,
0.041177984,
-0.02686992,
-0.02586822,
-0.0052826125,
0.014064406,
0.01678524,
-0.0028392775,
0.0043756682,
0.02332336,
-0.0196279,
-0.039012145,
0.025651636,
0.030240504,
-0.013712457,
0.042964797,
-0.020020459,
-0.059181508,
0.0042978334,
-0.020264115,
0.009367246,
-0.027776863,
0.06280928,
0.022078004,
-0.048298173,
0.009164199,
-0.01716426,
0.024609327,
0.011343573,
0.05355033,
0.022727756,
-0.003969574,
0.003191226
] | If you can't find a model for your use-case, you'll need to finetune a pretrained model on your data. Take a look at our finetuning tutorial to learn how. Finally, after you've finetuned your pretrained model, please consider sharing the model with the community on the Hub to democratize machine learning for everyone! 🤗
AutoClass |
[
0.03100191,
0.014657564,
-0.018147461,
-0.011509387,
-0.011683881,
-0.031030994,
0.039726652,
0.005009455,
-0.014039561,
0.034549974,
-0.01813292,
0.022815196,
0.0066744266,
-0.0077577485,
-0.020023279,
-0.0016122593,
-0.008884694,
-0.04254765,
-0.02556349,
0.0047767954,
-0.001445944,
0.008230339,
-0.08119825,
-0.031030994,
-0.039290413,
0.026363257,
0.00081476354,
-0.000027406819,
0.05034175,
0.02733752,
-0.009240954,
0.04347829,
0.0057801404,
-0.038592435,
0.009786251,
-0.019514335,
0.013028946,
-0.028413571,
-0.029286046,
-0.027715592,
0.012040142,
-0.011116774,
-0.0039806627,
-0.027613804,
-0.055431183,
-0.011065879,
-0.0081503615,
-0.013021675,
-0.023934871,
-0.038010787,
-0.003995204,
0.011611176,
0.04557223,
0.031612642,
-0.031060075,
-0.0028646232,
-0.001230552,
-0.004714995,
-0.038214363,
-0.011989248,
0.014104997,
0.053773485,
-0.034549974,
-0.034462724,
-0.02202997,
0.020663094,
0.0023738565,
0.015166507,
-0.015311919,
-0.02768651,
-0.04007564,
0.040453713,
-0.006241825,
-0.033648416,
-0.035131622,
-0.007619607,
-0.009226413,
-0.014672105,
-0.0282827,
0.06473757,
-0.036411252,
0.023934871,
-0.00989531,
0.01379236,
-0.0055329395,
-0.054151557,
0.029765906,
-0.04830598,
-0.006281813,
-0.044205353,
-0.0024629214,
0.012999863,
-0.023004232,
0.027904628,
0.056507237,
0.06787848,
-0.010905925,
0.039552156,
-0.0087829055,
-0.017565811,
0.031234572,
0.077941015,
-0.05313367,
0.054064307,
0.027977334,
0.032456033,
0.020924836,
0.007292429,
-0.04914937,
0.016198935,
0.0063327076,
-0.03027485,
0.024996381,
-0.01000437,
-0.012970781,
0.06467941,
0.0093209315,
0.01614077,
-0.035567857,
-0.014788435,
0.009771709,
-0.0110367965,
-0.0045150532,
-0.044990577,
0.0054057036,
-0.06549372,
0.032805026,
0.01768214,
-0.018336495,
0.01685329,
0.037021983,
0.016867831,
0.021346532,
0.017362233,
-0.014199515,
0.011225833,
-0.0117202345,
-0.03946491,
0.034898963,
-0.021855475,
-0.023251433,
-0.010469688,
-0.0077722897,
0.076021574,
0.04865497,
-0.024531063,
0.009553591,
0.0043550995,
-0.018074755,
0.016402513,
-0.06334162,
0.006634438,
-0.0014850235,
0.022335336,
-0.024342027,
-0.012360049,
0.010455147,
-0.0012614521,
-0.036353085,
-0.0032845011,
0.019805161,
-0.018627321,
0.0031936185,
0.054267887,
0.007881349,
0.048451394,
-0.03167081,
-0.0431293,
0.022669785,
-0.034695383,
0.028907973,
-0.007968596,
0.018772732,
0.009880768,
0.026086975,
-0.01707141,
0.059793554,
-0.018089294,
0.007924973,
0.023833083,
0.002219356,
-0.0010824131,
-0.026377799,
0.013356123,
-0.008404833,
-0.0117202345,
0.009240954,
-0.018438285,
-0.023265975,
-0.005987353,
0.04158793,
0.036469415,
-0.029984025,
-0.026435964,
-0.02544716,
0.027759217,
-0.017594893,
-0.003806168,
-0.016417053,
-0.038447022,
-0.02250983,
0.033212177,
0.010426065,
0.029591411,
-0.027657427,
-0.0071324753,
0.019223511,
0.05455871,
-0.011356704,
0.018918145,
0.018583696,
-0.00089201384,
-0.01648976,
0.03393924,
0.019630667,
-0.01885998,
-0.016562466,
0.046619195,
-0.0052930093,
0.033881076,
-0.0052493857,
0.020648552,
0.0442926,
0.0021793675,
-0.011705694,
-0.032572366,
0.004053369,
0.026784953,
0.030216685,
0.021710062,
0.03969757,
0.024400191,
0.025999727,
0.028253619,
-0.0073833116,
0.04973102,
0.046590116,
0.039610323,
0.025054546,
-0.019383466,
-0.014330386,
-0.008273962,
0.042954806,
0.0008720196,
-0.007285158,
0.014744812,
0.00054211536,
-0.0027373873,
-0.06939077,
0.032223374,
-0.02780284,
0.066191696,
0.030420262,
-0.0071324753,
-0.04088995,
-0.066831514,
0.0052130325,
0.03879601,
-0.015370085,
-0.032107044,
0.038970508,
0.01603898,
0.06694784,
-0.0008165812,
0.018205626,
0.023585882,
0.013697842,
0.013443371,
-0.04522324,
-0.048364144,
-0.042082332,
-0.058746587,
-0.06223648,
0.0004126075,
-0.041966002,
-0.03443364,
0.0071542873,
-0.04798607,
0.022349877,
-0.0040133805,
-0.016097147,
-0.044932414,
-0.024327485,
0.033444837,
0.028268158,
0.025519866,
-0.05269743,
0.005351174,
-0.008702928,
0.045921218,
-0.012032871,
0.028544443,
-0.008935588,
-0.03393924,
-0.014068644,
0.008884694,
0.0117202345,
-0.021884557,
-0.036702074,
0.022524372,
-0.0023375035,
0.0021521025,
-0.025607113,
0.025359912,
-0.02345501,
0.020881211,
0.034724467,
-0.02886435,
0.0113276215,
0.06258547,
-0.015224672,
0.006965251,
0.019776078,
0.033764746,
-0.0035008022,
0.046939105,
0.028369948,
0.028995221,
-0.026537752,
-0.0059328238,
-0.03263053,
0.036818404,
-0.03228154,
-0.044874247,
0.019965114,
0.038476106,
-0.009800792,
-0.049411114,
-0.0055329395,
-0.05089432,
-0.049091205,
0.0030827415,
0.0016004445,
0.040162887,
0.008397562,
-0.0077359364,
-0.052493855,
-0.029707741,
0.011102232,
0.016228016,
0.012069224,
-0.018423744,
-0.0059364587,
0.034840796,
-0.012243719,
0.008383022,
0.039261334,
-0.028995221,
0.016707879,
0.0011087691,
0.02533083,
0.022204464,
0.03167081,
-0.0030881946,
0.024880052,
0.03324126,
-0.027482932,
0.026465045,
0.03902867,
0.03818528,
0.05444238,
0.009393637,
0.008412104,
0.0024265684,
-0.024821887,
-0.028675314,
-0.022175383,
0.028079122,
0.018889064,
-0.049236618,
0.03143815,
0.014679376,
0.00052757416,
0.022073593,
-0.010556936,
-0.02357134,
0.07526543,
0.0053329975,
0.058164936,
-0.027904628,
-0.02298969,
0.013537889,
0.0032408775,
0.020415893,
0.054296967,
0.060956854,
0.020764882,
-0.0006734409,
-0.008375751,
0.0067798505,
0.0221463,
-0.0025628926,
-0.023164187,
-0.0057474226,
-0.04205325,
-0.032717776,
0.0060018944,
0.03146723,
0.051330555,
-0.0051076086,
0.033270344,
0.00067480415,
0.00029332394,
0.039435826,
-0.005020361,
-0.04126802,
-0.023876706,
0.07142654,
0.020721259,
-0.009459073,
-0.04007564,
0.007786831,
-0.019659748,
0.013159817,
-0.0041297106,
0.02652321,
-0.013217982,
-0.007823184,
0.025970643,
0.011276727,
-0.03324126,
-0.025941562,
-0.03795262,
0.014046832,
0.054820452,
-0.017056867,
0.006441767,
0.007434206,
-0.00848481,
0.0054129744,
-0.00095608615,
-0.029300587,
-0.027453851,
-0.022582537,
-0.054064307,
0.030943746,
0.044787,
-0.00078295456,
0.0364985,
-0.051272392,
0.023106022,
0.008761094,
-0.024123907,
-0.0061763893,
0.011254915,
-0.019892408,
-0.017522188,
0.018903604,
-0.0308565,
-0.02861715,
0.049440198,
-0.03617859,
0.016126228,
-0.020663094,
0.003617132,
-0.04781158,
-0.011611176,
0.026814036,
0.058775667,
0.027541097,
-0.03995931,
-0.008877424,
0.032688696,
-0.043914527,
-0.08387384,
0.0029300586,
0.044030856,
-0.0039733923,
0.0030591122,
-0.02402212,
-0.002781011,
0.02509817,
0.0045550414,
0.013167088,
-0.025403537,
-0.015486415,
-0.00021323356,
-0.013159817,
-0.024734639,
0.013908691,
-0.022815196,
0.03347392,
-0.0011487575,
-0.023309598,
-0.04266398,
-0.049701937,
0.007968596,
0.0024647391,
-0.014112268,
0.021462861,
0.018452827,
-0.0012805375,
-0.016184393,
-0.034375478,
0.0022157205,
-0.0074269352,
-0.011582093,
-0.028355407,
0.07741753,
0.016547924,
0.058397595,
-0.039610323,
-0.037545465,
0.013058028,
-0.0056129163,
0.02309148,
-0.000073330986,
-0.014584858,
-0.0024411096,
-0.025621654,
0.0063181664,
0.036324,
-0.02710486,
-0.010753242,
0.0061836597,
0.020459516,
0.0005189403,
-0.005725611,
-0.026479587,
0.04586305,
-0.031292737,
-0.057088885,
-0.018830897,
0.015879028,
0.03204888,
0.013763278,
0.027453851,
-0.020706717,
-0.037865374,
-0.019543419,
0.015093801,
-0.04405994,
0.012752662,
-0.04618296,
-0.012898074,
-0.0015313737,
0.026537752,
-0.017187739,
-0.08166357,
-0.0065908143,
-0.03795262,
0.008114008,
-0.028791644,
-0.013886878,
-0.010215217,
-0.006845286,
-0.027541097,
0.024545603,
0.015879028,
-0.0046095713,
-0.012163742,
-0.010964091,
0.004398723,
0.087363735,
-0.05714705,
0.010426065,
0.014635752,
-0.021651898,
-0.009553591,
0.005703799,
-0.017420398,
0.019150805,
-0.025839774,
-0.00081567233,
-0.05313367,
-0.029649576,
-0.037254643,
0.017638518,
0.03027485,
-0.029387834,
-0.038447022,
-0.0341719,
0.037690878,
0.030420262,
0.036411252,
-0.024429273,
-0.027061237,
-0.058659337,
-0.048713133,
0.033095848,
-0.011669341,
0.011487575,
0.012774474,
-0.0038716036,
0.07701038,
-0.029358752,
0.009081,
0.06880912,
-0.0033881075,
0.03463722,
-0.047782496,
0.057437874,
0.008404833,
-0.04772433,
-0.004922208,
-0.014817517,
-0.037429135,
0.01683875,
-0.011938353,
-0.032456033,
-0.017623976,
0.022015428,
0.06688967,
-0.023818541,
0.029547788,
-0.017813012,
-0.041500684,
-0.039493993,
0.046677362,
0.036294922,
0.02426932,
0.027642885,
0.0077432073,
0.020197773,
0.022757031,
-0.014497611,
-0.009844416,
-0.026465045,
0.074102126,
-0.012265531,
-0.018540073,
0.016475217,
0.02000874,
-0.026334176,
-0.033764746,
0.017711224,
0.008266692,
-0.039784815,
-0.02345501,
0.0018530985,
0.016707879,
-0.03167081,
0.009880768,
0.017885718,
-0.0016740595,
-0.009699003,
0.03155448,
-0.0062309187,
-0.013087111,
0.04254765,
0.049091205,
-0.029024303,
0.00860114,
-0.053395413,
0.0075032767,
-0.046473783,
-0.025752526,
0.04051188,
0.0070743104,
0.0068052975,
0.035015292,
-0.012083765,
0.08590961,
-0.02967866,
-0.009749898,
0.017362233,
-0.014708458,
-0.052144866,
-0.0051185144,
0.04324563,
-0.005903741,
-0.005511128,
-0.020692175,
-0.004278758,
-0.0006520835,
0.029954942,
-0.0086374935,
-0.08672392,
0.07334598,
-0.01213466,
-0.046968184,
-0.024909135,
-0.030536592,
-0.0059800823,
0.024283862,
-0.029954942,
-0.051330555,
0.000043453296,
0.019049017,
-0.047666166,
-0.018074755,
-0.03097283,
0.010222487,
-0.042227745,
-0.021419238,
0.005089432,
-0.041558847,
0.0052275737,
0.000891105,
-0.025999727,
-0.029896777,
-0.015457332,
0.05112698,
-0.02758472,
0.015748156,
-0.017304068,
-0.021710062,
0.03158356,
0.00053484476,
-0.0034935316,
0.009262766,
0.05197037,
-0.029838612,
-0.012898074,
0.008630223,
0.00035035287,
-0.009473614,
0.027075779,
0.044757918,
-0.033619333,
0.045543145,
0.00689618,
0.02850082,
-0.056129165,
-0.049352948,
-0.0072488054,
-0.0044823354,
0.002664681,
0.017289527,
0.022524372,
0.039319497,
0.0015032,
0.0037189205,
0.01000437,
0.006696238,
0.03652758,
0.0020048725,
-0.011800212,
-0.023222351,
0.03923225,
-0.01378509,
-0.0030373002,
0.030013107,
-0.029867696,
0.044350766,
-0.0016358888,
-0.051301476,
-0.05022542,
0.024938216,
0.014672105,
0.022233548,
0.005972812,
-0.04900396,
0.0028955233,
0.011829294,
-0.017158655,
0.025418077,
-0.025185417,
-0.048509557,
0.03876693,
-0.0442926,
0.029358752,
-0.030187601,
-0.011931082,
0.0165043,
0.01992149,
0.02511271,
0.024705557,
0.026814036,
0.0026628636,
0.0072560757,
-0.054733206,
-0.009888039,
-0.010542395,
0.024138449,
-0.00256471,
-0.012178283,
0.05583834,
0.024429273,
-0.0044605234,
-0.027642885,
-0.042693064,
-0.0044096294,
0.008811988,
0.021273825,
-0.01261452,
-0.00070070574,
-0.05583834,
0.018641863,
-0.05452963,
-0.002855535,
0.03239787,
0.02509817,
0.012047413,
0.024429273,
0.016198935,
0.014868412,
0.049876433,
-0.009051918,
-0.009677191,
0.03498621,
0.022131758,
-0.008819259,
-0.017013244,
-0.03841794,
0.011945624,
0.05996805,
0.025025465,
-0.012410943,
0.02861715,
0.00055211247,
-0.025170876,
-0.0033608428,
0.02992586,
-0.002150285,
-0.011145856,
0.0014695735,
-0.020663094,
-0.030303933,
-0.008913777,
0.0039043215,
0.030943746,
0.0047113597,
-0.03274686,
0.026726788,
-0.04618296,
0.0042714877,
-0.0026537753,
-0.04278031,
0.0074305707,
-0.014424904,
0.039493993,
0.04135527,
0.01012797,
-0.05560568,
0.047200847,
0.0017794835,
0.032892272,
0.024720099,
-0.018714568,
0.029984025,
0.01130581,
0.022364419,
-0.03867968,
-0.023760376,
0.009815333,
-0.032368787,
-0.082419716,
0.022364419,
-0.007968596,
-0.023760376,
0.035975013,
-0.047869742,
-0.029067926,
-0.056361824,
0.022684325,
-0.032485116,
-0.013799631,
0.009226413,
-0.05409339,
-0.046997268,
0.027861005,
-0.03402649,
0.024371108,
0.00719064,
0.060142543,
0.030420262,
0.06700601,
0.0014377645,
-0.00695071,
0.035335198,
0.009691733,
-0.00430057,
-0.03722556,
-0.0142649505,
-0.027526556,
0.019034475,
-0.04804424,
-0.032019798,
0.003075471,
0.041995086,
-0.031234572,
-0.02732298,
0.023295058,
-0.016722418,
-0.0134361,
0.0120256,
0.07142654,
0.00028718938,
0.004071546,
0.003464449,
0.016431594,
-0.032252457,
-0.040133808,
-0.035858683,
0.0002244803,
-0.04321655,
-0.06281813,
0.015399167,
-0.03178714,
-0.006776215,
0.0030191238,
-0.007372406,
0.0030136707,
0.020023279,
0.0068670977,
0.02416753,
0.04266398,
-0.015021095,
-0.027381144,
0.08143091,
0.03228154,
-0.0033572074,
0.067238666,
0.046619195,
0.009350014,
0.031990714,
-0.007397853,
0.033095848,
0.007706854,
0.015951734,
-0.0023193269,
-0.013501536,
-0.04525232,
-0.06991425,
-0.04054096,
0.031089159,
0.023018774,
-0.02874802,
-0.041878752,
-0.023818541,
-0.05359899,
-0.021172037,
-0.031089159,
0.043769114,
-0.025883397,
0.014875682,
0.008339398,
-0.06421409,
0.25220317,
0.08067477,
0.04350737,
0.017420398,
-0.0042823935,
0.05054533,
0.00064390403,
-0.030362098,
-0.021637356,
-0.01095682,
0.0031590832,
-0.0325142,
0.015762698,
0.03667299,
-0.0070524984,
0.035887767,
-0.05016726,
-0.012759933,
-0.030100355,
-0.023251433,
-0.060840525,
0.041762423,
0.011167668,
0.04278031,
0.052871928,
-0.031292737,
0.03548061,
0.003606226,
-0.04804424,
-0.014039561,
0.020881211,
-0.01662063,
0.017493105,
0.0036916558,
-0.006703509,
0.0037625444,
-0.003391743,
-0.067238666,
-0.013574242,
0.03382291,
0.012425484,
-0.045077827,
0.028428113,
-0.003428096,
-0.021855475,
0.008026761,
-0.013966856,
0.025534406,
0.019761536,
-0.038127117,
-0.006401778,
-0.026494129,
0.023353223,
-0.05197037,
-0.033212177,
0.030536592,
-0.043158382,
-0.010389712,
-0.03167081,
0.021651898,
-0.019805161,
0.020706717,
0.009139165,
-0.028006418,
-0.04522324,
0.054064307,
-0.030798335,
0.08212889,
-0.029416917,
0.026668623,
-0.0062854486,
-0.008026761,
-0.0052239383,
-0.024952758,
0.0066308025,
0.050865237,
0.002906429,
0.031903468,
-0.008404833,
-0.050632577,
0.038330693,
-0.009699003,
-0.048625886,
-0.041878752,
0.007801372,
0.08143091,
-0.038010787,
0.022349877,
0.019078098,
0.014904765,
0.008964671,
0.019630667,
0.01213466,
-0.018409202,
-0.014533963
] | Pass your text to the tokenizer:
encoding = tokenizer("We are very happy to show you the 🤗 Transformers library.")
print(encoding)
{'input_ids': [101, 11312, 10320, 12495, 19308, 10114, 11391, 10855, 10103, 100, 58263, 13299, 119, 102],
'token_type_ids': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
'attention_mask': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]}
The tokenizer returns a dictionary containing: |
[
0.035326608,
0.0029610794,
-0.0069710896,
0.004986719,
-0.01674162,
-0.040031318,
-0.0085634,
0.012023152,
-0.0148707405,
0.05150421,
-0.00015744707,
0.000077218916,
0.016191361,
-0.0421223,
-0.03461127,
0.050623797,
-0.008205732,
-0.07345953,
-0.03518904,
-0.015544808,
-0.010675018,
-0.016411465,
-0.07246906,
-0.04501116,
-0.022106642,
0.0023506363,
0.015269678,
0.0024933596,
0.06344482,
0.020607186,
-0.04052655,
0.016342683,
0.005399413,
-0.018915141,
-0.024046304,
-0.03818795,
0.034171063,
-0.028861066,
-0.0047287853,
-0.032355208,
0.047019605,
-0.009828995,
0.014389264,
-0.02312462,
-0.051036492,
-0.012869175,
0.004278261,
-0.005031428,
-0.00019097845,
-0.018213563,
-0.0049764016,
-0.0030453377,
0.02908117,
-0.00044665526,
-0.03835303,
-0.023055838,
-0.022175424,
-0.0012174473,
-0.017456956,
-0.015971258,
0.007820551,
0.030704433,
-0.042534996,
-0.044983644,
-0.004814763,
0.028723503,
0.017842136,
0.011163373,
-0.020730995,
0.0022715365,
-0.05788721,
0.029218735,
-0.039536085,
-0.017388174,
-0.028283296,
0.021363793,
0.017608277,
-0.033043034,
-0.032052565,
0.026701301,
-0.012353307,
0.037472617,
0.008735356,
-0.00829515,
0.00008114166,
-0.06421518,
0.029273761,
-0.014403021,
0.008989851,
-0.06344482,
-0.0142517,
0.031309716,
-0.027279073,
0.011280303,
0.045809034,
0.047707427,
-0.014540585,
0.06135384,
0.002538068,
-0.024706613,
0.025573272,
0.06674638,
-0.018543717,
0.036509663,
-0.018956412,
0.0071808756,
0.006654691,
-0.0072083883,
-0.033593293,
-0.013013617,
0.015819937,
-0.0206347,
0.009890899,
-0.004814763,
-0.038435567,
0.02760923,
-0.00015798442,
-0.005196505,
-0.034556244,
-0.018750064,
-0.0059427936,
-0.013880275,
-0.0093268845,
-0.06151892,
0.009154929,
-0.06845218,
0.021886539,
0.012036908,
-0.0032344891,
-0.006792255,
0.0334007,
0.009877143,
0.03507899,
0.05920783,
0.003999693,
-0.0019173075,
-0.007511031,
-0.006039089,
0.021239985,
-0.009216833,
-0.012201986,
0.0083295405,
-0.0039721797,
0.07208388,
-0.011190886,
-0.0022646582,
0.03056687,
-0.017952189,
-0.0075385435,
0.014801958,
-0.06889238,
0.009416302,
-0.027155265,
0.011410989,
-0.043112766,
-0.004481169,
-0.003157109,
0.03329065,
-0.013240599,
0.025600784,
0.045836546,
-0.013350651,
-0.025628297,
0.052962396,
0.003239648,
0.038435567,
-0.046689447,
-0.018227318,
0.0325478,
-0.032355208,
0.0036041941,
-0.023743661,
0.03329065,
0.004684077,
0.034198575,
0.040086344,
0.058217365,
0.013281869,
0.0061113103,
0.0011684399,
-0.010606236,
-0.018681282,
-0.026109774,
0.014760689,
-0.023014568,
-0.01989185,
-0.0014891375,
0.008590913,
0.0063554877,
-0.019011436,
0.039618623,
0.027031457,
-0.027292829,
-0.011686118,
-0.027843088,
0.012525263,
-0.036619715,
0.01444429,
-0.017360661,
-0.0023231234,
-0.022216694,
0.04099427,
-0.045836546,
-0.00813695,
-0.009677675,
0.02822827,
0.040278934,
0.046661936,
-0.01631517,
0.025985966,
0.036619715,
0.012628436,
-0.04823017,
0.014540585,
0.0066202995,
-0.032767903,
0.0012165875,
0.02495423,
-0.009581379,
0.053154986,
0.009739579,
0.015627347,
0.028833553,
-0.017965944,
0.0053168745,
-0.015393486,
-0.008384567,
0.025023013,
0.023853714,
0.034281116,
-0.025587028,
0.0085221315,
0.007696743,
0.045286287,
0.01646649,
0.023000812,
0.039728675,
0.037445102,
0.009203076,
-0.0019001119,
-0.024830421,
0.018722551,
0.014237943,
0.023344724,
-0.0034133233,
-0.0055920035,
-0.004292018,
-0.0363721,
-0.020056928,
-0.012910444,
-0.046744473,
0.074229896,
0.0048835455,
0.008033777,
-0.036427125,
-0.044185773,
-0.01646649,
0.034363654,
-0.017113045,
-0.019149002,
0.019809311,
0.028393347,
0.022863248,
-0.01362578,
0.031309716,
0.048532814,
0.0020841046,
0.009113659,
-0.025256872,
-0.026027234,
-0.03337319,
-0.058932703,
-0.0636099,
0.0119062215,
0.009512597,
-0.0238262,
-0.0061113103,
-0.039233442,
0.026329877,
-0.0051689926,
-0.0325478,
-0.028943606,
-0.027361613,
0.041214373,
0.057447005,
-0.0076761083,
-0.036482148,
0.01880509,
-0.006125067,
0.040966757,
-0.002900895,
-0.035711788,
-0.021239985,
-0.013013617,
-0.010743801,
0.005729568,
-0.0041200616,
-0.0068472815,
-0.010296715,
0.033538267,
0.00883853,
-0.008969217,
-0.019960633,
0.044570953,
-0.035491683,
-0.0041750874,
0.026797596,
-0.015283435,
0.064325236,
0.050981466,
-0.0380779,
0.02822827,
0.0023540754,
0.0663612,
-0.014994549,
0.032520287,
0.06889238,
-0.0024589684,
-0.018158536,
-0.010853852,
-0.03480386,
0.008872921,
-0.03285044,
-0.047239706,
-0.023303455,
0.06421518,
-0.011823683,
-0.043470435,
-0.022987057,
-0.040003806,
-0.0013928423,
-0.028076949,
-0.02716902,
0.059868142,
0.0021580458,
-0.0048732283,
-0.062784515,
0.025229359,
-0.0049110586,
0.018007215,
0.026054747,
-0.026728814,
0.010516819,
0.048890483,
-0.01729188,
0.002593094,
0.057171874,
-0.067021504,
0.02480291,
-0.014114135,
0.04380059,
0.044158258,
0.008026898,
0.025298143,
-0.0072978055,
0.034913912,
-0.058327418,
0.047597375,
0.012243255,
0.0261648,
0.049110584,
-0.0035491684,
0.016824158,
0.0024572487,
-0.018887628,
-0.04388313,
0.003360017,
-0.011232155,
0.06790192,
-0.027650498,
-0.011424745,
0.021941565,
-0.03477635,
0.0022337062,
-0.017140558,
-0.0342536,
0.055961307,
0.00022891621,
0.05290737,
-0.018213563,
-0.025917184,
0.012621558,
-0.009588257,
0.054062914,
0.05095395,
0.035986915,
0.009313128,
-0.01693421,
-0.020345815,
-0.0034700688,
-0.0013532924,
0.008054411,
-0.0031983785,
-0.017952189,
-0.041406963,
-0.031254694,
0.02908117,
0.05477825,
0.036619715,
-0.0013558718,
0.018736308,
-0.021817757,
0.03554671,
0.02612353,
0.004708151,
-0.025600784,
-0.045946598,
0.06652627,
0.007827429,
0.0063073398,
-0.019107733,
-0.013639537,
-0.010331106,
0.0273341,
-0.020414596,
0.04016888,
-0.027581716,
0.0076004476,
-0.009595135,
0.023963764,
-0.048367735,
-0.020345815,
-0.025119308,
0.009918412,
0.020882316,
-0.04448841,
-0.004061597,
-0.025325656,
0.012236377,
0.028393347,
-0.004278261,
-0.03725251,
-0.02771928,
-0.027678011,
-0.046359293,
0.030374277,
0.040636603,
-0.022092886,
0.028530912,
-0.03263034,
-0.015819937,
0.015696129,
-0.025958452,
-0.037912823,
-0.020758508,
-0.011025808,
-0.01884636,
0.02814573,
0.0013756467,
-0.018695038,
0.031777438,
-0.033098057,
0.0013386762,
-0.014361751,
-0.017704573,
-0.024734126,
-0.015462268,
0.015242165,
0.04861535,
0.018034728,
-0.055823743,
-0.008817895,
0.054255504,
-0.022629388,
-0.071368545,
0.0031003638,
0.036344584,
-0.0049076197,
0.0316949,
-0.0008004544,
0.009526353,
0.028200757,
0.016095066,
-0.0182961,
0.0022594996,
0.003255124,
-0.009512597,
-0.031474795,
-0.020730995,
0.032988008,
-0.026742572,
0.026453685,
0.014403021,
-0.009512597,
-0.00042924474,
-0.03562925,
0.0062557533,
-0.004278261,
-0.013880275,
0.01848869,
0.032410234,
-0.0063176574,
-0.0031485113,
-0.021776486,
-0.0018089754,
-0.009086146,
-0.0206347,
0.020332057,
0.0714786,
0.00439863,
0.029053658,
-0.030924536,
-0.04088422,
0.025229359,
-0.042149812,
0.02359234,
-0.011672362,
-0.014884497,
-0.021267498,
-0.0046531246,
-0.038242977,
-0.003083168,
-0.007490396,
0.00032177236,
0.022959543,
-0.00010543042,
-0.0074972743,
-0.01880509,
-0.034858886,
0.037280023,
-0.059593014,
-0.056786694,
-0.018323613,
0.05224706,
-0.0017315953,
-0.015090844,
0.051641777,
-0.016810402,
-0.050458718,
-0.026907649,
0.044791054,
-0.020882316,
-0.0064105135,
-0.056043845,
-0.041819658,
0.007284049,
0.029026145,
-0.009945925,
-0.05953799,
-0.009622648,
-0.041241888,
0.008315784,
-0.017346904,
-0.037445102,
-0.024582805,
0.029934071,
-0.048477788,
0.029191222,
-0.017498225,
0.01101893,
-0.0008288271,
-0.00055928633,
0.029934071,
0.05392535,
-0.04069163,
0.0008206592,
-0.029576404,
-0.017168071,
0.014540585,
0.031364743,
0.0032465262,
0.0316949,
-0.032905467,
0.037004896,
-0.0476524,
-0.025366925,
-0.05111903,
-0.03210759,
0.042342406,
-0.050293643,
-0.025174335,
0.019107733,
0.051889393,
0.027347855,
0.054255504,
-0.022629388,
-0.011706753,
-0.06465539,
-0.06217923,
0.030869512,
-0.025201846,
-0.011466015,
-0.007039872,
-0.01210569,
0.07978751,
-0.07433995,
0.017938433,
0.07268917,
0.010028464,
-0.00288026,
-0.031667385,
0.029796507,
-0.011610458,
-0.010613114,
-0.013323138,
-0.0010282958,
-0.021047395,
0.024087572,
-0.056951772,
-0.0389308,
-0.038875774,
0.00498328,
0.038600646,
-0.014361751,
0.009815239,
0.005925598,
-0.033648316,
-0.063940056,
0.014155404,
0.019946877,
-0.0017470713,
0.0151596265,
0.019259052,
0.025119308,
0.021597652,
-0.039453547,
-0.022450553,
-0.030044124,
0.05739198,
0.014320482,
-0.049028046,
0.02814573,
0.021267498,
-0.026233582,
-0.06344482,
0.0016997834,
-0.0038002238,
-0.032300185,
-0.025009256,
-0.005416609,
-0.012394576,
-0.021171203,
0.0035698032,
0.020001903,
-0.026467443,
0.0037589546,
0.036124483,
0.022092886,
-0.03854562,
0.01903895,
0.029961584,
-0.026715059,
0.0078067947,
-0.06526068,
-0.0064414656,
-0.057061825,
-0.009739579,
0.035326608,
0.018241074,
0.032877956,
0.053512655,
-0.004804446,
0.08628056,
-0.008047533,
0.028448373,
-0.008185098,
-0.02133628,
-0.06548078,
-0.009203076,
0.021638922,
-0.01362578,
0.02035957,
-0.045533903,
-0.02195532,
0.020538405,
0.046937063,
-0.0066478127,
-0.07681611,
0.027581716,
-0.019534182,
-0.015627347,
0.009044877,
0.0054991473,
-0.009464449,
0.037224997,
-0.02744415,
-0.0412694,
0.018392395,
-0.017223096,
-0.006988285,
-0.029356299,
-0.017567009,
0.01697548,
-0.013350651,
-0.018351126,
-0.0057020555,
-0.021941565,
-0.005309996,
-0.0041131834,
0.014059109,
-0.007332197,
0.002854467,
0.028448373,
-0.02448651,
0.019162757,
0.0026739133,
0.0077861603,
0.013061765,
-0.0027547325,
-0.015118357,
0.017470712,
0.05497084,
-0.048065096,
0.012043786,
0.005509465,
0.0064964914,
-0.03584935,
0.05186188,
0.04228738,
-0.007517909,
0.020263275,
0.007428492,
0.029851533,
-0.01693421,
-0.045423854,
-0.024665345,
0.0002075292,
0.0022629388,
0.04682701,
-0.0004251608,
0.05882265,
0.037857797,
0.017195582,
0.0059703067,
0.03705992,
-0.0011667203,
-0.00021978105,
0.032025054,
-0.019602966,
0.03780277,
-0.03546417,
0.029108683,
0.018860117,
-0.042369917,
0.008343297,
0.0035285337,
-0.027554203,
-0.03458376,
0.027389126,
0.04558893,
0.044048205,
0.0062970226,
-0.029521378,
-0.010207298,
0.020992368,
-0.023330968,
-0.0036007552,
-0.04842276,
-0.043387897,
0.017099287,
-0.041049298,
0.018516203,
-0.024967987,
0.01121152,
0.02312462,
0.0029731162,
-0.0026481198,
0.01857123,
0.03009915,
0.031942517,
0.020125711,
-0.047322243,
-0.026508711,
-0.00015433037,
0.03518904,
-0.02495423,
-0.03395096,
0.05563115,
0.026577493,
0.018584987,
-0.027361613,
-0.041241888,
0.008102559,
0.006806012,
0.035601735,
-0.0023231234,
-0.010702531,
-0.03535412,
0.0572269,
-0.042369917,
0.0065068086,
0.013673928,
0.03386842,
0.006083797,
0.01533846,
0.0064655393,
0.060143273,
0.040031318,
-0.038518105,
-0.02082729,
0.025559515,
0.023523558,
-0.013653293,
0.0075523,
-0.028118217,
0.05777716,
0.040251423,
0.036262047,
-0.00323105,
0.04641432,
0.02842086,
-0.018681282,
0.00346491,
0.032300185,
0.013178695,
-0.026384903,
-0.01343319,
0.007854942,
-0.020978611,
-0.012078178,
0.012827905,
0.025490733,
0.0015063331,
-0.025999721,
-0.010014708,
-0.027416637,
0.00068223476,
0.0017049421,
-0.0668014,
0.00837081,
0.007545422,
0.021350035,
0.022973299,
0.024197625,
-0.03705992,
0.053210013,
0.05109152,
0.025944697,
0.013680806,
-0.0034563122,
0.04971587,
-0.013715197,
0.03554671,
-0.014279213,
-0.045946598,
-0.0159575,
0.006871355,
-0.03282293,
0.040966757,
-0.003344541,
-0.006303901,
0.008130072,
-0.041489504,
-0.020153224,
-0.06713156,
0.02861345,
-0.057281926,
0.030126661,
0.026288608,
-0.023028325,
-0.030731946,
0.026494954,
-0.045616444,
0.033098057,
0.0387107,
0.036894843,
0.016521517,
0.093378894,
0.021969078,
-0.0059703067,
0.030594382,
0.042232353,
-0.040223908,
-0.06548078,
-0.010468671,
-0.0011804767,
-0.015943745,
-0.03835303,
-0.033043034,
0.021817757,
0.035601735,
-0.029191222,
-0.03029174,
0.0031089615,
0.0044536563,
-0.02421138,
-0.010833218,
0.099761896,
-0.014024718,
-0.03535412,
0.0014642039,
0.01012476,
-0.040966757,
-0.037555154,
-0.020758508,
0.03920593,
-0.024335189,
-0.04696458,
-0.009574501,
-0.032685366,
-0.023014568,
-0.0026309243,
0.003597316,
0.004040962,
0.060088247,
0.02510555,
0.027636742,
0.03180495,
0.0009517755,
-0.010152272,
0.047982555,
0.044515926,
0.02304208,
0.09348895,
0.06834213,
0.002885419,
0.022354258,
0.017236853,
0.003989375,
-0.02214791,
-0.007490396,
0.0010248568,
-0.008790382,
-0.016095066,
-0.048642866,
-0.02106115,
0.031749927,
0.038215466,
-0.028585937,
-0.059482962,
0.0033720538,
-0.06790192,
0.0024520901,
-0.009464449,
0.014279213,
0.014898254,
0.0024434924,
0.036124483,
-0.03001661,
0.22197434,
0.062289283,
0.046496857,
0.046496857,
0.001615525,
0.058107316,
-0.0034563122,
-0.053127475,
-0.03535412,
-0.014155404,
0.015902475,
-0.027843088,
0.022092886,
0.031392258,
-0.012257012,
0.052824832,
-0.036069456,
-0.004185405,
-0.021198714,
-0.018282345,
-0.036482148,
0.017732086,
0.028585937,
0.036729764,
0.0018020971,
0.015200895,
0.03293298,
-0.021377549,
-0.015269678,
-0.053540166,
0.049963485,
-0.013832127,
0.004677199,
-0.017250609,
-0.027911872,
0.04963333,
0.010757557,
-0.08407953,
-0.0023145254,
0.0024417727,
-0.012332672,
-0.038298003,
0.0072634146,
-0.0072634146,
-0.030814486,
0.023152133,
0.016549028,
0.026192313,
0.05560364,
-0.08226367,
0.02024952,
-0.04388313,
0.007311562,
-0.024362702,
-0.046496857,
-0.0149670355,
-0.06267446,
-0.023963764,
0.007469761,
0.0093612755,
-0.028283296,
0.009787726,
0.013990327,
0.005272166,
-0.043855615,
0.04231489,
-0.007222145,
0.027966896,
-0.028530912,
0.005784594,
0.010179785,
0.004893863,
-0.01759452,
-0.018392395,
0.0051999446,
0.031639874,
0.006128506,
0.04784499,
-0.001681728,
-0.04247997,
0.016438978,
-0.0054750736,
-0.030126661,
-0.040471524,
0.0033032715,
0.054062914,
-0.04303023,
0.01296547,
0.00060958345,
0.021556383,
0.027512934,
0.05777716,
-0.018791333,
-0.011686118,
-0.019479157
] | tf_batch = tokenizer(
["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
padding=True,
truncation=True,
max_length=512,
return_tensors="tf",
)
Check out the preprocess tutorial for more details about tokenization, and how to use an [AutoImageProcessor], [AutoFeatureExtractor] and [AutoProcessor] to preprocess image, audio, and multimodal inputs.
AutoModel |
[
0.0033488926,
-0.014274198,
0.0048707994,
-0.015410833,
0.013165454,
0.026707463,
-0.0007378547,
-0.046497483,
0.008723508,
0.03612132,
0.031574775,
-0.02648432,
0.012893498,
-0.04222987,
0.028785484,
0.06309377,
0.0020344392,
-0.0016622432,
-0.053917,
-0.031100595,
-0.010187886,
0.0074264877,
-0.09405489,
-0.03773911,
-0.03469878,
-0.011094405,
0.016903104,
0.008667722,
0.05422382,
0.0672777,
-0.029538592,
-0.012335639,
0.010055395,
0.0060004625,
-0.060862333,
-0.045353875,
-0.015996585,
-0.012781926,
-0.032076847,
-0.045967516,
0.018869555,
0.010215779,
0.012879551,
-0.03648393,
-0.05068142,
0.012084603,
0.011345441,
-0.049370453,
-0.04158833,
-0.02132413,
-0.01386975,
0.010717851,
0.0043408344,
0.01877193,
-0.03899429,
-0.0420904,
-0.028590234,
0.0067047584,
-0.03199317,
0.0043826737,
0.008054078,
0.047668986,
-0.0206547,
-0.0420904,
-0.008277222,
0.034168817,
-0.017321497,
-0.02140781,
0.009511483,
-0.018353535,
-0.0582404,
0.019901592,
0.027613983,
-0.012307747,
-0.012614569,
0.039496362,
-0.013946456,
0.0073288623,
0.039524253,
0.009769492,
-0.008444578,
0.030933239,
0.03380621,
0.014309064,
-0.0136744995,
-0.04616277,
0.032160528,
-0.028339198,
-0.01786541,
-0.047752663,
-0.02050129,
0.029287556,
-0.03843643,
0.008883893,
0.054670107,
0.027683714,
-0.005407738,
0.04490759,
0.000008982117,
-0.021296237,
0.015243476,
0.075310856,
-0.009002437,
0.03832486,
-0.043847658,
-0.022370115,
0.00418045,
-0.0035877256,
-0.04189515,
-0.02545228,
-0.031100595,
0.00007937494,
0.013423463,
0.001763355,
0.0100693405,
0.017502801,
-0.018730089,
0.03084956,
-0.03651182,
-0.025898568,
-0.011694103,
0.011317548,
-0.031072702,
-0.059077185,
0.028088162,
-0.02577305,
-0.029427022,
0.047390055,
-0.0048603397,
0.018269857,
0.030124344,
0.026749302,
0.06130862,
0.05288496,
-0.0028346172,
-0.034531426,
0.03037538,
0.029622272,
-0.0018391889,
-0.0023238282,
0.006743111,
0.0026846926,
-0.0068372497,
0.0822283,
0.011387281,
-0.033666745,
0.019887645,
-0.07012278,
-0.06850499,
0.01715414,
-0.039831076,
0.019762127,
-0.016275514,
-0.0067675174,
-0.034531426,
-0.025201244,
0.01605237,
0.03824118,
0.0011104866,
-0.0031763052,
-0.024420243,
-0.03843643,
-0.023053491,
0.038938504,
-0.014811136,
0.025856728,
-0.009867117,
-0.011742916,
0.025577798,
-0.03322046,
-0.009762519,
0.014727457,
-0.0068930355,
0.012719167,
0.044405513,
0.0031832785,
0.04434973,
0.026735356,
0.01056444,
-0.023220848,
-0.015912905,
-0.039133754,
-0.00018152184,
0.01778173,
0.01428117,
-0.003702784,
-0.0015506715,
0.009664894,
0.0052891932,
0.011952112,
0.021895936,
0.054697998,
-0.013388597,
0.016219728,
-0.050346706,
0.02274667,
-0.03785068,
0.019971324,
-0.015801335,
0.0028956328,
0.0060701948,
0.035619248,
-0.061531764,
-0.01833959,
-0.021142827,
0.022021454,
0.002743965,
0.028897056,
-0.021059148,
0.02829736,
0.057347827,
0.030319594,
-0.03037538,
0.006673379,
0.0145043135,
-0.035786606,
-0.026609838,
0.02892495,
-0.0043373476,
-0.0042362357,
0.04886838,
0.015257422,
0.046051197,
-0.0053519523,
0.047362164,
-0.012307747,
-0.00898849,
0.049593598,
0.020236308,
0.03151899,
0.043066654,
0.0393569,
0.009392938,
0.040863115,
-0.010215779,
0.0037585697,
0.043401368,
0.009867117,
0.032076847,
-0.007447407,
0.026972445,
0.04540966,
0.04457287,
0.028102107,
-0.05709679,
-0.00013848394,
-0.025522014,
-0.005526283,
-0.014546153,
0.027097963,
-0.014601939,
0.03832486,
0.0153968865,
-0.024141315,
-0.048115272,
-0.0049440186,
0.012963231,
0.017377283,
-0.0025661478,
-0.028897056,
0.019901592,
-0.0008006137,
0.010703905,
-0.026972445,
0.037404392,
0.072409995,
0.022202756,
0.0334436,
-0.042313546,
-0.048756808,
-0.027851071,
-0.026386693,
-0.05835197,
0.0061050607,
-0.037237037,
-0.030235916,
-0.030989025,
-0.057961468,
0.031658456,
-0.008584043,
0.011226897,
0.004281562,
-0.045047052,
0.012900472,
0.025954355,
0.010920075,
-0.037683323,
0.021714631,
-0.007116179,
-0.0050172373,
0.01566187,
-0.047724772,
-0.020919682,
0.0017990927,
0.0073916214,
-0.0016430668,
0.021617007,
-0.024685226,
-0.037906468,
0.026093818,
-0.012279854,
0.009769492,
-0.008012239,
0.07229842,
0.007810015,
0.021617007,
-0.0074195145,
-0.05020724,
0.056008965,
0.056957323,
-0.026819034,
0.030765882,
0.04100258,
0.040528398,
-0.009211634,
0.032467347,
0.04923099,
0.0018670817,
-0.023750814,
-0.02525703,
-0.04532598,
0.03840854,
-0.032551028,
-0.017698051,
-0.008381819,
0.06599463,
-0.071628995,
-0.059635043,
-0.020766273,
-0.030124344,
-0.006328204,
-0.058575112,
-0.012105524,
0.04764109,
0.022453794,
0.010557467,
-0.05453064,
0.01762832,
0.021184666,
0.00415953,
-0.01931584,
-0.012258935,
0.05137874,
0.034642994,
0.014532207,
-0.031463202,
0.051601887,
-0.027655821,
0.019887645,
-0.02577305,
-0.0007574669,
0.01188238,
-0.00593073,
-0.020431558,
0.011038619,
0.024922317,
-0.018939286,
0.02184015,
-0.0027526817,
0.011136245,
0.04635802,
0.022160918,
-0.04147676,
0.023109278,
-0.008674695,
-0.017949088,
-0.008584043,
0.01499244,
0.033694636,
-0.038548004,
0.030124344,
-0.03143531,
-0.04041683,
0.03612132,
-0.004787121,
-0.052159745,
0.027851071,
0.016149996,
0.01570371,
-0.017140193,
-0.017893303,
-0.009511483,
0.0076705506,
0.04080733,
0.032746278,
0.029622272,
0.010696932,
0.0010930535,
-0.016233673,
-0.007684497,
0.009860144,
0.052048173,
0.0049405317,
0.003556346,
-0.029175986,
-0.05299653,
0.01644287,
0.031267952,
0.009999609,
-0.020780219,
0.044042908,
-0.0291202,
-0.011952112,
0.033304136,
0.009253473,
0.0035336833,
-0.025828836,
0.0068337633,
0.013116641,
0.0013676243,
-0.03182581,
-0.049119417,
-0.009399911,
0.021519382,
-0.027767394,
0.0051950547,
-0.008486418,
0.0046650893,
-0.03447564,
0.056371573,
-0.026219336,
-0.0015881526,
-0.058296185,
0.02073838,
-0.000043827826,
-0.037515964,
-0.004950992,
-0.033583064,
0.015717655,
0.030821666,
-0.008946652,
-0.024503922,
-0.006683839,
-0.01935768,
-0.034168817,
0.05952347,
0.03918954,
-0.07296786,
0.011436094,
-0.06420948,
-0.01833959,
-0.0062724184,
-0.00794948,
-0.023736868,
0.010766664,
-0.025368603,
-0.012196176,
-0.0024720093,
0.02435051,
0.023346366,
0.013144534,
-0.06398634,
0.021114934,
-0.047557414,
0.012084603,
-0.007970399,
0.021100987,
-0.021742525,
0.018465107,
0.015996585,
-0.0013536778,
-0.022579312,
0.03706968,
-0.04490759,
-0.034364067,
0.007656604,
0.037711214,
-0.018186178,
0.045911733,
0.0010041448,
-0.03439196,
0.039607935,
0.019776074,
-0.009929877,
0.019636609,
-0.029789628,
0.00286251,
0.023862386,
-0.009553322,
-0.0019211243,
-0.076984435,
0.024992049,
-0.035200853,
-0.0145601,
0.0121403895,
-0.066273555,
-0.028673913,
-0.017698051,
-0.00022575825,
0.0139604015,
0.039914757,
-0.005536743,
-0.028311305,
-0.0012761006,
-0.0015925108,
-0.031881597,
-0.014392742,
0.02486653,
0.02778134,
0.024880476,
0.056511037,
-0.053833317,
-0.0009370275,
-0.014741403,
0.0016387085,
0.030905345,
0.013744232,
-0.02864602,
-0.010613252,
0.0007448279,
-0.013974348,
-0.00110177,
-0.018130392,
0.037822787,
0.02045945,
-0.017851463,
-0.0020640753,
-0.025563853,
-0.01652655,
0.017209927,
-0.019971324,
-0.06181069,
-0.044851802,
0.0277395,
0.0056727207,
0.015926853,
0.048505772,
-0.04635802,
-0.040695757,
-0.038213287,
0.057570968,
0.011484906,
0.03545189,
-0.039412685,
-0.023792652,
0.019608716,
0.03308099,
0.02069654,
-0.0011837054,
-0.011554639,
-0.015327155,
0.004121178,
-0.046106983,
-0.023946064,
-0.011254789,
0.017809624,
-0.016568389,
0.017502801,
0.007984346,
0.0050904565,
-0.01414868,
0.01056444,
0.04080733,
-0.009281366,
-0.0668872,
-0.04635802,
0.00039028283,
-0.016903104,
-0.021700684,
0.05751518,
-0.013116641,
0.039886862,
-0.005822645,
0.02045945,
-0.022635097,
-0.018353535,
-0.02136597,
0.007872774,
0.024643388,
-0.03902218,
-0.034280386,
-0.008716535,
0.033750422,
0.013528062,
0.032160528,
-0.07135007,
0.0238066,
0.0016143023,
-0.05662261,
0.025159406,
-0.030877452,
0.007510166,
-0.03140742,
0.028673913,
0.065492555,
-0.02793475,
-0.022119079,
0.04945413,
-0.007552006,
-0.02687482,
-0.013521088,
0.030319594,
0.00036086453,
0.016414978,
-0.018102499,
0.047194805,
-0.016903104,
0.0137372585,
0.0025469714,
-0.062312763,
-0.03288574,
0.022927973,
0.035814498,
0.0024632928,
0.007314916,
0.018716143,
-0.018562732,
-0.037041787,
0.015090065,
0.029929094,
0.014058027,
0.026191443,
0.02588462,
-0.027084017,
0.028520502,
-0.045632802,
-0.035898175,
-0.00707434,
0.048031595,
-0.02482469,
-0.016652068,
0.00241971,
0.025159406,
-0.004208343,
-0.036623392,
0.0031205195,
0.06393055,
-0.05377753,
0.0068756025,
-0.004135124,
-0.017711999,
0.0057563996,
-0.01211947,
0.011819621,
-0.011003753,
-0.043819763,
0.06404212,
-0.003936387,
-0.03285785,
-0.0038980343,
0.05137874,
-0.006635026,
0.019497145,
-0.033387814,
0.020612862,
-0.02356951,
-0.041616224,
0.06208962,
-0.022160918,
0.006411883,
0.005453064,
0.00967884,
0.037460178,
-0.016582336,
0.01428117,
0.03902218,
0.00029592635,
-0.06459998,
0.0036086454,
0.020278146,
0.0011226897,
0.011986978,
-0.006213146,
0.039133754,
0.04292719,
0.042480905,
-0.025605692,
-0.07302364,
0.021379916,
-0.027000338,
-0.0023953037,
0.013765152,
0.027362946,
0.0005073023,
0.05517218,
0.016163941,
-0.02391817,
0.01661023,
0.035423998,
-0.05712468,
-0.006809357,
-0.04454498,
0.039970543,
-0.040946793,
-0.027014283,
-0.021826202,
-0.016568389,
0.025187299,
0.0067675174,
-0.043373477,
-0.007851855,
0.034280386,
0.016554443,
-0.008925731,
0.030347487,
-0.026512211,
0.02829736,
-0.0027648848,
-0.020180522,
-0.010857316,
0.027837126,
0.03631657,
-0.042369332,
0.010536547,
0.01829775,
0.012468131,
-0.016707854,
0.018716143,
0.047668986,
-0.028074214,
0.0029078359,
-0.013256106,
0.05268971,
-0.05372175,
-0.01099678,
-0.006882576,
-0.016986784,
-0.020724433,
0.03018013,
0.0022209731,
0.06130862,
-0.023708975,
-0.0016012274,
0.013374651,
0.049398344,
0.015243476,
-0.0022907052,
0.044489194,
-0.028060269,
-0.01011118,
-0.019901592,
-0.026177498,
0.012830739,
-0.03285785,
0.022969812,
0.024685226,
-0.02471312,
-0.032606814,
0.012774954,
0.04476812,
0.048728917,
0.041058365,
-0.00087121763,
-0.005787779,
-0.036093425,
-0.0120776305,
-0.019692395,
-0.054697998,
-0.040193684,
0.0110246735,
-0.028394984,
-0.004543058,
-0.037320714,
-0.023430046,
-0.002590554,
0.01518769,
0.025717264,
0.00076356845,
0.008904812,
-0.017251765,
-0.023653189,
-0.028618127,
-0.063763194,
0.01935768,
0.020710487,
-0.0302917,
-0.017140193,
0.041448865,
0.002885173,
-0.0018112959,
-0.02892495,
-0.025549907,
-0.008214463,
0.0008646802,
0.068728134,
-0.03631657,
-0.005198541,
-0.04292719,
0.0037620564,
-0.031351633,
-0.018757982,
-0.011303602,
0.03852011,
0.022788508,
0.003702784,
0.025159406,
0.006303798,
0.04981674,
-0.014741403,
0.022370115,
0.025828836,
-0.014071974,
-0.008653776,
0.0040061194,
-0.00771239,
0.07274471,
0.050458275,
-0.0031780486,
0.00079320464,
0.020780219,
0.017963035,
-0.02329058,
-0.021603059,
0.049314667,
0.0070429603,
0.0010102463,
-0.0023482344,
0.017711999,
-0.019287948,
0.030514844,
0.0073009697,
0.026819034,
-0.0036888374,
-0.010515627,
-0.0050869696,
-0.013005069,
0.006202686,
0.011185057,
-0.046804305,
-0.009127955,
0.013486222,
0.041420974,
0.0045744376,
-0.0058819177,
-0.041644115,
0.06482313,
0.03084956,
-0.004431486,
0.025940407,
0.029845415,
0.05751518,
0.0014216668,
0.018465107,
-0.0066419994,
-0.018506946,
-0.020612862,
-0.044293944,
-0.018855607,
0.03871536,
0.021338077,
-0.026093818,
0.015745549,
-0.02679114,
-0.01739123,
-0.051518206,
0.0030019747,
-0.045019157,
0.0056308815,
0.024643388,
-0.013967375,
-0.06644092,
0.020013163,
-0.008137757,
0.021142827,
-0.008277222,
0.0401379,
0.041448865,
0.060527615,
-0.00055655075,
-0.0014242817,
0.008298141,
0.034419853,
-0.042592473,
-0.03852011,
0.005299653,
-0.021003362,
-0.044126585,
-0.045270193,
-0.047390055,
0.00053911767,
0.015801335,
-0.02227249,
-0.03614921,
0.0015201636,
0.016666014,
-0.023639241,
0.012035791,
0.053498603,
0.013786071,
0.0038352753,
-0.043234013,
0.012691274,
-0.05012356,
-0.021742525,
-0.055311643,
0.02923177,
-0.038352754,
-0.038213287,
0.013974348,
-0.014309064,
0.004351294,
0.0003800409,
0.014462475,
-0.005871458,
0.020431558,
0.040165793,
0.024978101,
0.04147676,
0.0015306235,
-0.04005422,
0.047585305,
0.04292719,
0.006680352,
0.08897839,
0.04242512,
-0.0010529574,
-0.02223065,
0.022091186,
-0.0068337633,
-0.0075798985,
-0.017265713,
-0.008849026,
0.023262687,
-0.026024086,
-0.06917442,
0.034642994,
0.03793436,
-0.006673379,
-0.016317353,
-0.01514585,
0.036456034,
-0.054753784,
-0.0028136973,
-0.025187299,
0.037515964,
-0.015633976,
-0.0277395,
0.030347487,
-0.05126717,
0.22794087,
0.026512211,
0.0028921461,
0.031295847,
0.054000676,
0.072075285,
0.03631657,
-0.015355048,
0.0028816864,
-0.024113422,
0.025284924,
-0.053693853,
0.0003360224,
0.026233282,
-0.036846537,
0.0365955,
-0.041644115,
0.0129702035,
-0.028813377,
-0.049788848,
-0.067110345,
0.04139308,
-0.014023161,
0.06582727,
0.02577305,
-0.024782851,
-0.00008651161,
-0.027167695,
0.009595161,
-0.02864602,
-0.00060231256,
-0.028618127,
-0.003340176,
0.022063293,
-0.033499386,
0.009358072,
-0.014866921,
-0.050458275,
-0.04203462,
0.03400146,
-0.02361135,
-0.038966395,
0.06638513,
-0.013235186,
-0.021784363,
0.02711191,
-0.048617344,
-0.014699564,
0.041560438,
-0.02534071,
0.06326112,
-0.045911733,
0.009999609,
-0.06950913,
-0.008068024,
-0.017126247,
-0.062926404,
-0.075534,
-0.033778314,
-0.014978494,
0.026456427,
0.012154336,
-0.016833372,
0.033750422,
-0.007070853,
-0.006366557,
0.004577924,
0.031686347,
0.020347878,
0.031351633,
0.025675425,
0.0037690296,
-0.000045217024,
-0.018702196,
-0.00725913,
0.0436803,
0.0014251535,
0.06114126,
-0.0054565505,
-0.01877193,
0.008235382,
-0.013311892,
0.015368994,
-0.05874247,
0.04281562,
0.069620706,
-0.043652404,
0.01056444,
0.0042501823,
0.03687443,
0.013883697,
0.029482806,
0.04490759,
-0.013423463,
-0.01522953
] | AutoModel
🤗 Transformers provides a simple and unified way to load pretrained instances. This means you can load an [AutoModel] like you would load an [AutoTokenizer]. The only difference is selecting the correct [AutoModel] for the task. For text (or sequence) classification, you should load [AutoModelForSequenceClassification]: |
[
0.016809246,
-0.012772435,
0.0009912129,
0.018550614,
-0.0068935174,
0.020867642,
-0.016981943,
-0.0036086629,
-0.009383243,
0.06504948,
0.012297517,
-0.020277591,
-0.005364423,
-0.04110206,
-0.0021533247,
0.02260901,
-0.012995504,
-0.03986439,
-0.082319245,
-0.01948606,
0.0010496783,
-0.009368852,
-0.058026433,
-0.040037088,
0.004526119,
0.0065625133,
0.0195868,
-0.009620702,
0.029876705,
0.05652972,
0.0014517402,
0.0009822183,
0.0038281328,
0.0033226323,
-0.05203958,
-0.07126659,
0.0007182246,
-0.030941674,
-0.03050993,
-0.0493052,
0.00020833912,
-0.020651769,
0.011434028,
-0.044383314,
-0.028898085,
-0.00023655989,
-0.008778801,
-0.029171523,
-0.0100380555,
-0.01033308,
-0.011462811,
-0.010815195,
0.042656336,
0.018449873,
-0.038338892,
-0.041850414,
-0.0189104,
-0.0032542727,
-0.062056046,
0.00025297518,
0.011757837,
0.041792847,
-0.047232825,
-0.07472055,
0.0158738,
0.02016246,
-0.0032938493,
0.0009651284,
-0.023055146,
-0.040008307,
-0.09158736,
0.008793192,
-0.02388985,
-0.0076346784,
-0.04236851,
-0.008447797,
0.04901737,
-0.016305543,
0.024134506,
0.057537124,
-0.004267073,
0.026048573,
0.023112712,
0.005583893,
-0.026350794,
-0.048671976,
0.037302706,
-0.02797703,
-0.018953575,
-0.021572823,
-0.019356536,
0.031949077,
-0.017284164,
0.009275307,
0.038425244,
0.034942504,
-0.021875044,
0.029732792,
-0.0010937522,
-0.017327338,
0.02514191,
0.0504853,
-0.026163705,
0.038166195,
-0.043519825,
0.0013357089,
0.020248808,
-0.02953131,
-0.014643327,
-0.007206532,
-0.011585139,
0.0067208195,
0.002558085,
-0.012096036,
-0.013448835,
0.0077498103,
0.04521802,
0.019183839,
-0.0352879,
-0.0035618905,
0.00616315,
0.008404623,
0.01121096,
-0.06142282,
0.03635287,
-0.052845504,
-0.022090917,
0.036842182,
-0.05175175,
0.016032105,
0.017082684,
-0.016507024,
0.01480883,
0.07333896,
0.025444131,
0.007332457,
0.03295648,
0.035921127,
0.022076525,
-0.0032326854,
-0.0019248601,
0.011153394,
-0.010354668,
0.080534704,
-0.009311286,
-0.0019320558,
0.0018762888,
-0.037561756,
-0.022853665,
0.0058789183,
-0.06142282,
0.027746767,
0.007375632,
0.0050765933,
-0.020738117,
-0.009217741,
-0.0048283404,
0.0050154296,
-0.02260901,
0.009426417,
-0.0076274825,
-0.03125829,
-0.03128707,
0.045246802,
-0.030164536,
0.035805993,
-0.0026588254,
-0.030337233,
0.03206421,
-0.036870964,
0.013261746,
-0.0090162605,
0.020882033,
0.023717154,
0.023774719,
0.026710581,
0.035633296,
0.022119699,
0.018291567,
-0.0082822945,
-0.009224936,
-0.051809315,
-0.0007200236,
-0.0020507853,
0.010030859,
-0.0036248532,
-0.034913722,
-0.00066200795,
-0.01811887,
0.0013321111,
0.038856987,
0.0481251,
-0.019255796,
0.02114108,
-0.032380823,
0.0013599945,
-0.053565077,
0.0059508756,
0.00043219404,
0.017672734,
-0.008469384,
0.04317443,
-0.037590537,
0.008289491,
-0.05224106,
0.05514814,
0.044009134,
0.038425244,
-0.038540374,
0.021069122,
0.04251242,
0.01647824,
-0.05195323,
-0.02387546,
-0.002666021,
-0.043318346,
0.003910884,
0.022781707,
0.01686681,
-0.019543625,
-0.0040296135,
0.015744276,
0.036093824,
-0.0227961,
0.009160175,
-0.012786827,
-0.0214433,
0.03877064,
0.024666991,
0.00832547,
0.020910816,
0.028236078,
-0.0037921541,
0.058314264,
0.0054327827,
0.0109447185,
0.020263199,
0.06792777,
-0.02348689,
-0.022162873,
0.0038821008,
0.052269842,
0.027113542,
0.033848755,
-0.012995504,
-0.0057853735,
0.007893725,
-0.019370928,
-0.008303882,
0.018766485,
-0.05008234,
0.043318346,
0.025602438,
0.020694943,
-0.02855269,
-0.021932611,
0.00916737,
0.009361655,
-0.019370928,
-0.029905489,
0.029502528,
0.002559884,
0.022882449,
-0.03422293,
0.025357783,
0.05845818,
0.0129307415,
0.032726217,
-0.049161285,
-0.027228674,
-0.007343251,
-0.054428566,
-0.05722051,
0.01997537,
-0.018363524,
-0.03226569,
-0.037245143,
-0.06309223,
0.00050774927,
-0.024134506,
0.010002077,
-0.0090162605,
-0.06021394,
0.040497616,
0.013297725,
-0.020090502,
-0.056990247,
0.045937594,
-0.008440601,
0.041073274,
0.017025117,
-0.018219609,
-0.023702763,
-0.035834778,
-0.0014517402,
-0.012786827,
0.007900921,
-0.027430154,
-0.046513252,
0.0130458735,
0.006512143,
-0.0047923615,
0.01832035,
0.029301047,
-0.022637794,
0.045966376,
0.018737704,
-0.036899745,
0.062056046,
0.048009966,
-0.03263987,
0.0378208,
0.019917803,
0.05396804,
-0.018277176,
0.040152222,
0.03577721,
0.0039792433,
-0.025991008,
-0.04072788,
-0.062113613,
-0.0059832563,
-0.038482808,
-0.04942033,
0.008023248,
0.06441625,
-0.0155715775,
-0.06355276,
-0.03088411,
-0.014506608,
-0.008383035,
-0.019701932,
-0.03341701,
0.03753297,
0.051895667,
-0.009462396,
-0.06746724,
0.013081852,
0.0036104617,
0.037734453,
0.015442055,
-0.004155539,
0.04737674,
0.019903412,
0.015355705,
0.0015776657,
0.030250885,
-0.056616068,
-0.00063232554,
-0.034453195,
-0.003549298,
0.036496785,
0.0057134163,
0.03655435,
0.0034683459,
-0.0042994535,
-0.028408775,
0.02719989,
0.00638262,
0.00974303,
0.015657926,
0.019831454,
-0.017327338,
0.007915312,
-0.013578358,
-0.04133232,
-0.01929897,
0.012347887,
0.04668595,
-0.031546116,
0.01832035,
0.0102107525,
-0.031546116,
0.031056806,
-0.029675225,
-0.07846233,
0.038252544,
0.018003738,
0.0354606,
-0.015945757,
-0.01676607,
0.0005477756,
0.020306373,
0.028293643,
0.06510704,
0.024825297,
-0.013333703,
-0.02446551,
0.010304297,
0.002748772,
0.013945341,
0.028941259,
0.005447174,
0.0013689892,
-0.043778874,
-0.04277147,
0.04092936,
0.04775092,
0.011664292,
-0.00057430984,
0.049593028,
-0.011765032,
0.032323256,
0.017715909,
0.012232755,
0.027113542,
-0.050111122,
0.07869259,
-0.0055587078,
0.0014022695,
-0.027084759,
-0.034741025,
0.0079369,
0.015470837,
-0.025847092,
0.0076058954,
-0.037964717,
0.0015884592,
-0.0014292535,
0.049333982,
-0.04455601,
-0.01889601,
-0.07051823,
0.017989347,
0.03623774,
-0.035518166,
-0.008670865,
-0.026825713,
0.032755002,
0.025429739,
-0.04562098,
-0.023990592,
0.0042814645,
-0.0072461087,
-0.023731545,
0.033186745,
0.013679098,
-0.032668654,
0.005519131,
-0.038482808,
-0.008534146,
-0.005483153,
-0.024192072,
-0.034827374,
0.0064941538,
-0.014333911,
0.0052348995,
0.011757837,
-0.0044505643,
-0.018003738,
0.030941674,
-0.038741857,
-0.005839342,
-0.031200722,
-0.007864942,
-0.0391736,
0.0014553381,
-0.034424413,
0.013751056,
0.031114373,
-0.015269357,
-0.033273093,
0.034942504,
-0.036180172,
-0.07051823,
0.004706013,
0.027948247,
-0.017528819,
0.04150502,
0.0017800458,
-0.018924791,
0.017212206,
0.0036194564,
0.011088633,
0.025688786,
-0.009599115,
-0.01850744,
0.01490957,
-0.019572409,
0.037216358,
-0.035978694,
0.038051065,
-0.030135753,
-0.03997952,
-0.039605346,
-0.07195739,
0.0020471876,
-0.008469384,
-0.01754321,
0.022522662,
0.033359442,
-0.039116032,
0.0036482394,
-0.022580227,
-0.002586868,
-0.05604041,
-0.015413271,
0.016046496,
0.02017685,
0.015830625,
0.08099523,
-0.027286239,
-0.027919466,
0.0024159693,
-0.00022599116,
-0.0030473953,
-0.008210338,
-0.0029808346,
0.0045800875,
0.0042778663,
-0.005533523,
0.017600777,
0.005961669,
0.0138949705,
0.013110635,
-0.022752924,
0.0021947003,
-0.0041915174,
-0.03177638,
0.024580643,
-0.014823221,
-0.06464651,
-0.028509516,
0.03379119,
-0.017787864,
-0.013686295,
0.042569987,
-0.034280498,
-0.0329277,
-0.012959525,
0.0491325,
-0.009879748,
0.013017091,
-0.033503357,
-0.05143514,
0.035834778,
0.025386564,
0.01899675,
-0.023414932,
-0.0062027266,
-0.030826543,
0.014686502,
-0.028279252,
-0.03733149,
-0.035978694,
0.033560924,
-0.01470809,
0.010297102,
-0.0003449457,
-0.015614753,
-0.003551097,
0.0094552,
0.05379534,
0.02445112,
-0.07276331,
-0.013686295,
-0.0038137413,
-0.0017044905,
-0.0121392105,
0.043347128,
-0.022652185,
0.03790715,
0.012383866,
0.012822806,
-0.017068291,
-0.017845431,
-0.027602853,
-0.0054795546,
0.025314607,
-0.027257457,
-0.037216358,
-0.0044397707,
0.050801914,
0.00043331838,
0.019068707,
-0.055695016,
0.016017715,
-0.025616828,
-0.027847508,
-0.0028567081,
-0.017370513,
-0.0036248532,
0.015801841,
0.024710165,
0.06735211,
-0.026393969,
0.062056046,
0.059292883,
-0.005609078,
-0.001237667,
-0.03946143,
0.03419415,
-0.013060265,
0.0014841211,
-0.022767317,
0.008116793,
-0.04326078,
0.0133552905,
-0.01735612,
-0.04685865,
-0.011779424,
0.020738117,
0.05339238,
-0.009649485,
0.022436311,
0.0040835817,
-0.019183839,
-0.011340484,
0.021601606,
0.00041982636,
0.01276524,
0.03635287,
0.0047096107,
-0.014391476,
0.016147237,
-0.04872954,
-0.022076525,
-0.016967552,
0.058026433,
0.009570332,
-0.030250885,
0.011462811,
0.008785997,
-0.023443716,
-0.046945,
0.04159137,
0.0069223004,
-0.03761932,
-0.016435066,
0.013168201,
-0.012722066,
-0.028984435,
0.002637238,
0.013038678,
-0.041476235,
-0.02075251,
0.00862769,
-0.03548938,
-0.024105724,
0.033963885,
0.037734453,
-0.03666948,
0.0023602021,
-0.07558404,
-0.012009688,
-0.016564589,
-0.019745106,
0.06717941,
0.005720612,
0.03557573,
-0.0139525365,
0.015499621,
0.054111954,
-0.0027163913,
0.015211791,
0.019514842,
0.0023763925,
-0.06965475,
0.0016118453,
0.027530896,
-0.014341107,
0.0052348995,
-0.028149728,
0.04328956,
0.039893173,
0.05379534,
0.033762403,
-0.0959048,
0.024019375,
-0.009973293,
-0.0015147029,
0.028034596,
-0.026422752,
-0.018377915,
0.013657511,
-0.0018582995,
-0.010138796,
0.006911507,
-0.001693697,
-0.039634127,
-0.03672705,
-0.050830696,
0.012909154,
-0.019414103,
-0.035921127,
-0.011167786,
0.0041447454,
0.011772228,
0.034913722,
-0.009814987,
-0.0035313086,
-0.0138949705,
-0.009944511,
-0.0044649555,
0.02407694,
-0.005691829,
0.013621532,
-0.022493878,
0.009591919,
-0.01783104,
0.067294545,
0.02640836,
-0.050456516,
0.0056162737,
0.014485021,
0.009541549,
-0.016780462,
0.020709336,
0.037475407,
-0.03623774,
0.035172768,
-0.011462811,
0.006825158,
-0.0142619535,
-0.029675225,
-0.009311286,
-0.008210338,
0.024393553,
0.0317476,
0.00055227295,
0.045908812,
-0.0085917115,
0.032495953,
0.0013240159,
0.05923532,
0.0234725,
0.0146073485,
0.032898914,
-0.015125442,
-0.0008000762,
-0.038051065,
0.025775135,
0.029272264,
-0.02017685,
0.012556563,
0.015960148,
-0.019716322,
-0.061077427,
0.0019050718,
0.0024501488,
0.044124268,
0.032208126,
-0.051032178,
-0.0034845362,
-0.0040224176,
-0.0004983049,
0.00146883,
-0.06326493,
-0.059005056,
-0.0234725,
-0.024407944,
0.014542587,
-0.051003393,
-0.01490957,
-0.023961809,
0.0121392105,
0.025616828,
0.02494043,
0.03497129,
0.040411267,
-0.017500035,
0.0124486275,
-0.041188408,
0.02291123,
-0.000086967244,
-0.05270159,
-0.013117831,
0.043519825,
0.030366017,
0.011124612,
-0.0047671767,
-0.039893173,
-0.0043894006,
0.0034719438,
0.056184325,
-0.02640836,
0.007120183,
-0.04657082,
0.03451076,
-0.026350794,
-0.011390854,
-0.01247741,
0.006188335,
0.039835606,
0.0037058052,
-0.0110598495,
0.025429739,
0.047693353,
-0.012585347,
0.021687955,
-0.012937938,
0.016118454,
-0.013506401,
-0.009901336,
-0.014456239,
0.052931853,
0.07880773,
0.03701488,
-0.004921885,
0.03779202,
0.0232998,
-0.009260915,
-0.035143986,
0.06050177,
0.05396804,
-0.012398257,
-0.0030455962,
0.038223762,
-0.037676886,
0.011527573,
-0.013146614,
0.026753755,
-0.0037345882,
-0.01472248,
-0.0317476,
-0.023199061,
-0.0023026364,
0.034338064,
-0.029876705,
-0.0013734866,
-0.002342213,
0.036122605,
0.021673564,
0.026264446,
-0.0014850205,
0.059695844,
0.031114373,
0.021515258,
-0.00803764,
0.0134128565,
0.0440667,
-0.012887567,
0.029373003,
-0.033273093,
0.0010793607,
-0.044181835,
-0.00950557,
-0.022292398,
0.046225425,
-0.020810075,
-0.06792777,
0.007037432,
-0.0009197053,
-0.011088633,
-0.06499191,
0.0028513114,
-0.051982015,
-0.00066740473,
0.0479524,
-0.0013635925,
-0.0352879,
0.034856156,
0.015067876,
0.017687125,
0.0329277,
0.034366846,
0.022335572,
0.047520656,
0.011880164,
0.012211168,
0.03217934,
0.01939971,
-0.0076706572,
-0.053565077,
0.000948938,
0.0049938424,
-0.02737259,
-0.0079944655,
-0.048499275,
0.023745937,
0.020939598,
-0.03701488,
-0.031171938,
0.011045459,
0.0034827373,
0.0013267143,
-0.001843908,
0.08220412,
0.028120946,
-0.015211791,
-0.04484384,
0.018363524,
-0.040181004,
0.000460977,
-0.03459711,
0.061365258,
-0.017586384,
-0.057537124,
0.013650316,
-0.015499621,
-0.022925623,
-0.014247562,
0.00731087,
-0.03088411,
0.04248364,
0.02924348,
0.03793593,
0.03661192,
-0.016147237,
-0.03370484,
0.07489324,
0.043318346,
-0.0004893102,
0.04893102,
0.04668595,
-0.021515258,
0.00059814577,
0.02826486,
-0.0030348026,
0.004256279,
0.002559884,
0.010419429,
-0.008231925,
-0.028293643,
-0.06453138,
-0.0012871377,
0.011621118,
0.0018798866,
-0.024292814,
-0.024393553,
0.03508642,
-0.06338006,
-0.0028207295,
-0.018392308,
0.0026732169,
0.023256626,
-0.007505155,
0.01388058,
-0.03430928,
0.24661234,
0.043001734,
-0.008742822,
0.040152222,
0.033963885,
0.0682156,
0.02387546,
-0.043030515,
0.01193773,
-0.019241404,
0.015413271,
-0.064185984,
-0.008419014,
0.023083929,
-0.020047328,
0.043778874,
-0.052931853,
0.005860929,
-0.020248808,
-0.03753297,
-0.061077427,
0.060329072,
-0.0019392514,
0.07172712,
0.022062134,
-0.008800388,
0.002691206,
-0.020579811,
0.011095828,
-0.011693075,
0.005069398,
-0.024422336,
0.025674395,
-0.00660209,
-0.007872138,
0.016722895,
0.017399296,
-0.053939253,
-0.019889021,
0.031833947,
-0.02922909,
-0.025847092,
0.031114373,
-0.025429739,
-0.05126244,
0.047520656,
-0.03753297,
0.024177682,
0.05224106,
-0.06021394,
0.037360273,
-0.02426403,
0.006101986,
-0.030250885,
-0.027631635,
-0.032006644,
-0.04521802,
-0.02504117,
-0.008311078,
0.013146614,
-0.00063592335,
0.015053485,
-0.00670283,
0.028120946,
-0.009311286,
0.013772643,
0.03217934,
0.020781292,
-0.021702347,
-0.0027019999,
0.039605346,
-0.001377984,
0.008613299,
-0.011628313,
0.009721442,
0.052500106,
-0.0118513815,
0.083413,
0.018277176,
-0.047808487,
0.010743237,
-0.03370484,
-0.020795684,
-0.03865551,
0.023069536,
0.07449029,
-0.004180724,
0.0024141702,
0.0021785097,
0.014154017,
-0.00051269634,
0.01774469,
0.033014048,
-0.012189581,
0.00093094865
] |
Under the hood, the [AutoModelForSequenceClassification] and [AutoTokenizer] classes work together to power the [pipeline] you used above. An AutoClass is a shortcut that automatically retrieves the architecture of a pretrained model from its name or path. You only need to select the appropriate AutoClass for your task and it's associated preprocessing class.
Let's return to the example from the previous section and see how you can use the AutoClass to replicate the results of the [pipeline].
AutoTokenizer
A tokenizer is responsible for preprocessing text into an array of numbers as inputs to a model. There are multiple rules that govern the tokenization process, including how to split a word and at what level words should be split (learn more about tokenization in the tokenizer summary). The most important thing to remember is you need to instantiate a tokenizer with the same model name to ensure you're using the same tokenization rules a model was pretrained with.
Load a tokenizer with [AutoTokenizer]: |
[
0.02032337,
-0.0109703075,
-0.024770793,
-0.005997281,
-0.0031822652,
-0.013699408,
0.032075346,
0.011132032,
-0.021792367,
0.045848876,
-0.029406892,
-0.017169744,
-0.0155659765,
-0.04277611,
-0.005400922,
0.005323429,
0.010464919,
-0.05525585,
-0.01250669,
0.027681833,
-0.06706173,
0.019986445,
-0.0774121,
0.00018594098,
-0.018975668,
0.035175063,
0.016927157,
0.020565957,
0.083503716,
0.044420313,
0.0003874648,
0.022574035,
-0.017897503,
0.016819341,
-0.015336867,
-0.06862507,
-0.033261325,
-0.014878648,
-0.05506717,
-0.019339547,
0.0025437905,
0.0053638606,
-0.0013990848,
-0.0070956596,
-0.04256048,
-0.0032294348,
-0.00814013,
-0.0098382365,
0.021266764,
-0.0032631273,
-0.005835557,
0.010835537,
0.048490375,
0.028759995,
-0.020512048,
-0.012075424,
-0.04393514,
-0.0017317991,
-0.055040214,
0.011219633,
0.03547156,
0.05897551,
-0.009103738,
-0.053315155,
0.013106418,
0.0029666326,
0.014865171,
0.02319398,
-0.028140051,
-0.04746612,
-0.0542855,
0.031913623,
-0.015202097,
-0.04374646,
-0.04010766,
0.00034176922,
0.011313972,
0.013813962,
0.0056232936,
0.05051193,
-0.008605087,
0.02700798,
0.011610467,
0.044420313,
-0.03132063,
-0.06188655,
0.04315347,
-0.022816623,
-0.045821924,
-0.027897464,
-0.012371919,
-0.008901582,
-0.018490493,
-0.0043362365,
0.04633405,
0.060970113,
-0.013948732,
0.03396213,
-0.03878691,
-0.0072978153,
0.014797785,
0.050646704,
-0.04129364,
0.053962052,
-0.010788367,
0.028813904,
0.029299077,
0.0013965579,
-0.025579415,
0.023220934,
-0.042668298,
0.0057816487,
0.03051201,
-0.019137392,
-0.009036353,
0.03932599,
-0.015606408,
0.01250669,
-0.05406987,
-0.015768133,
0.0183692,
-0.025242489,
0.0036253228,
-0.051266644,
0.000260907,
-0.07433933,
-0.017627964,
0.011900223,
-0.0048146714,
-0.019487794,
0.041617088,
-0.019056529,
0.050754517,
0.033072647,
-0.0006999636,
0.0034484367,
-0.0066138557,
-0.019946013,
0.036927078,
-0.042102262,
-0.013766793,
0.019204777,
0.03296483,
0.07919107,
0.022991823,
0.014743878,
0.030296378,
-0.047546983,
-0.02750663,
0.05188659,
-0.047627848,
0.009144169,
0.0028739779,
0.00024869342,
-0.0377357,
-0.014838217,
0.017520146,
0.00037819933,
-0.006192698,
-0.011226371,
-0.016644139,
0.010256024,
-0.043530826,
0.03719662,
0.033342186,
0.010849014,
-0.021576734,
-0.028301775,
-0.0014083503,
-0.044312496,
-0.026482375,
-0.016024197,
0.013470298,
0.025269443,
0.03051201,
-0.014420428,
0.050269347,
-0.025835479,
0.0023113117,
-0.0025892756,
-0.00082588964,
-0.020363802,
-0.029245168,
0.027210137,
-0.00564014,
-0.021185901,
0.0021344256,
-0.012041732,
-0.03555242,
-0.0033490434,
0.035633285,
0.029945975,
0.009588911,
0.042722207,
-0.024770793,
0.02369263,
-0.0058321874,
0.014784309,
-0.01995949,
-0.004848364,
-0.017924458,
0.062317815,
-0.032129254,
0.04619928,
-0.007466278,
-0.0011750291,
-0.0067014564,
0.029541664,
-0.012034994,
0.018059228,
0.041670997,
0.036307134,
-0.037708748,
0.005562647,
0.02028294,
-0.019703427,
-0.042991746,
0.005633401,
-0.006243237,
-0.0052324594,
-0.014218274,
0.005498631,
0.04164404,
0.012560598,
0.005357122,
-0.006708195,
-0.024609068,
0.051536188,
-0.0058726184,
0.020539002,
0.031617127,
0.004383406,
0.007088921,
0.06566012,
0.01768187,
0.050808426,
0.044366404,
0.021253286,
0.011900223,
-0.008261424,
-0.0021698028,
0.029110398,
0.04652273,
0.026064588,
-0.012998601,
-0.009218292,
0.0032125886,
-0.0048584715,
-0.012830138,
0.04150927,
-0.027681833,
0.050808426,
0.023180502,
-0.009191339,
-0.06641483,
-0.03878691,
0.016563278,
0.034689892,
0.011287018,
-0.025404213,
0.022870531,
0.025902864,
0.05183268,
0.0023197348,
0.035848916,
-0.0065464703,
0.016509369,
0.04646882,
-0.03752007,
-0.092290744,
0.010983785,
-0.057466082,
-0.077466,
0.00022595093,
-0.038113058,
-0.012129333,
0.012560598,
-0.036576677,
0.034662936,
-0.024649499,
0.001300534,
-0.032048393,
-0.013355743,
0.035714146,
0.026913641,
0.013086203,
-0.015997242,
0.020458141,
-0.015067327,
0.003337251,
0.00023247888,
0.0012727376,
0.004346344,
-0.0031384649,
-0.014743878,
0.03177885,
-0.010539043,
-0.00042873822,
-0.054258548,
0.055687115,
-0.010114515,
0.011691329,
0.011125294,
0.03132063,
-0.041078005,
-0.0019171084,
0.03169799,
-0.02591634,
0.02959557,
0.04560629,
-0.008975706,
-0.0041273423,
0.015404252,
0.031671036,
-0.03547156,
0.02210234,
0.0602154,
-0.010498611,
-0.02683278,
-0.05056584,
-0.039406855,
0.037007943,
-0.026805826,
-0.026482375,
0.024784269,
0.023881309,
0.0068732887,
-0.047115717,
0.0014218274,
-0.029218214,
-0.013402913,
-0.04460899,
-0.012729061,
0.046576638,
0.024676453,
-0.022021478,
-0.03778961,
0.009865191,
-0.00094423484,
0.0034046362,
-0.011071385,
-0.02692712,
0.022129294,
0.053099524,
0.007749296,
0.009757374,
0.004110496,
-0.039757255,
-0.00050075614,
-0.019029574,
0.02892172,
0.024258666,
0.04382732,
0.016644139,
-0.02568723,
0.009973006,
0.0016703102,
0.02396217,
0.023854354,
-0.0025084133,
-0.01623983,
0.046711408,
-0.009521526,
0.0047944556,
-0.0052223518,
-0.030323332,
-0.015808564,
0.013167065,
0.044393357,
-0.037681792,
0.012648199,
0.03223707,
-0.035390697,
0.010559258,
-0.00032302772,
-0.04261439,
0.04792434,
0.048301697,
0.038409553,
-0.03018856,
-0.009979745,
-0.011671114,
0.002651607,
0.055633206,
0.08048486,
0.037115756,
-0.018679172,
-0.019299116,
0.00040873323,
-0.014905602,
-0.01277623,
-0.0043160208,
-0.0038342169,
0.039676394,
0.0068631805,
-0.038813863,
0.01378027,
-0.022627944,
0.039487716,
0.037547022,
0.036792308,
-0.029110398,
0.0066374405,
0.0022927807,
0.00057024707,
-0.009097,
-0.0067654722,
0.050592795,
0.018342245,
-0.012634722,
-0.009851714,
-0.0026532914,
-0.021212855,
0.017304514,
-0.030808505,
0.022547081,
-0.0043901447,
0.026051112,
0.030323332,
0.007803204,
-0.03018856,
-0.016293736,
-0.021671074,
-0.0026229683,
0.01946084,
-0.035633285,
0.026576715,
-0.015296436,
0.021846276,
0.010963569,
0.023975648,
-0.028140051,
-0.016172443,
-0.0016677832,
-0.062156092,
0.050215438,
0.04611842,
-0.025121195,
0.04875992,
-0.070511855,
0.014919079,
0.004888795,
-0.005694048,
0.0022776192,
0.034501214,
-0.046010602,
-0.017304514,
0.022088863,
0.012203456,
-0.010734459,
0.03506725,
-0.042317893,
0.01950127,
-0.04892164,
-0.03051201,
-0.06404287,
0.019016098,
-0.00018541454,
0.048301697,
0.0041273423,
-0.060269307,
-0.011401572,
0.039433807,
-0.0052897367,
-0.09191339,
-0.0010604743,
0.02491904,
-0.02964948,
0.022910962,
-0.008099698,
0.0102155935,
0.03541765,
0.0029312554,
0.005811972,
-0.013227711,
-0.014379998,
0.0055727544,
-0.038113058,
-0.025862433,
0.052317854,
-0.025175104,
0.012223672,
-0.0062263906,
-0.05924505,
0.011354403,
-0.0701884,
0.0021125255,
-0.01932607,
-0.038894728,
0.007850373,
0.022317972,
0.0008844305,
0.021441964,
-0.037304435,
-0.012964909,
-0.025808524,
-0.016617186,
-0.013396174,
0.022183202,
0.030835459,
0.051455323,
-0.061455283,
-0.013200757,
0.047196582,
0.0045720846,
0.019838197,
-0.014123934,
-0.014245227,
0.0002510098,
0.015431207,
0.018288339,
0.023706106,
-0.01764144,
0.009481095,
0.012291057,
0.0016711525,
-0.028140051,
-0.05134751,
-0.010013438,
0.03668449,
-0.053584695,
-0.028301775,
-0.046307098,
0.03522897,
0.0155659765,
0.016226351,
0.04110496,
-0.010768152,
-0.027870512,
-0.013025556,
0.022897484,
-0.030943274,
0.011064647,
-0.03501334,
-0.012183241,
0.028005281,
0.038274784,
0.011954132,
-0.053989008,
0.027129274,
-0.025026856,
-0.013766793,
-0.03501334,
-0.032156207,
-0.0023433196,
0.009353063,
-0.041751858,
0.033450004,
-0.024501251,
0.019582134,
-0.037088804,
-0.034339488,
0.050916243,
0.08366544,
-0.04746612,
-0.0157277,
-0.0020889407,
-0.015956812,
0.0103638405,
0.026401514,
0.011772191,
0.062533446,
-0.01482474,
0.018935235,
-0.061131835,
-0.022897484,
-0.040538926,
0.0018362462,
0.02587591,
-0.007870589,
-0.026105018,
-0.03156322,
0.03719662,
-0.010943353,
0.02260099,
-0.061778735,
-0.0009004345,
-0.05018848,
-0.04315347,
0.026751917,
-0.022708805,
-0.0053301677,
0.015296436,
0.013605068,
0.06738518,
-0.04420468,
0.005461569,
0.05110492,
-0.01623983,
0.0022405572,
-0.061077926,
0.0330996,
-0.012648199,
-0.013396174,
-0.05296475,
-0.011617205,
-0.039703347,
0.029029535,
-0.02091636,
-0.038032196,
-0.03520202,
0.012223672,
0.040485017,
-0.0033271434,
0.038301736,
0.0100067,
-0.023746537,
-0.07784336,
0.031751897,
0.044393357,
-0.0012887416,
0.031401493,
0.018315293,
0.059514593,
0.026603669,
-0.009123953,
0.010727721,
-0.030026836,
0.04045806,
-0.001388977,
-0.014379998,
0.0031317263,
0.0066408096,
-0.054581996,
-0.051590096,
0.012567337,
-0.011098339,
-0.05633401,
-0.02091636,
-0.012446043,
0.021455443,
-0.021819321,
0.01995949,
0.017493192,
-0.036792308,
-0.002186649,
0.0020636711,
-0.010350363,
-0.015889425,
0.03132063,
0.031886667,
0.005343645,
0.02246622,
-0.015970288,
0.007904282,
-0.06916415,
0.004720332,
0.059460685,
0.03493248,
0.019231731,
0.009076783,
0.0350942,
0.09218293,
-0.013827439,
-0.03005379,
-0.008039052,
-0.010087562,
-0.05110492,
-0.005165074,
0.03555242,
-0.007115875,
0.0026633993,
-0.02074116,
-0.009939314,
0.020714205,
0.047762617,
0.010127992,
-0.08566004,
0.034555122,
0.014972988,
-0.027951373,
-0.0054278765,
-0.021266764,
-0.021441964,
0.03913731,
-0.020296417,
-0.016078103,
0.023881309,
0.03277615,
-0.028679132,
-0.0032075346,
-0.02760097,
0.020565957,
-0.027277522,
-0.04897555,
-0.020202078,
-0.035121158,
0.022439266,
0.01223041,
-0.0052762595,
-0.0033069279,
0.003851063,
0.007688649,
0.0027846927,
0.012378658,
-0.0034164286,
-0.015579454,
0.031347588,
-0.016630663,
0.011138771,
0.032587472,
0.019285638,
-0.049676355,
-0.010249286,
-0.014312613,
0.024299096,
-0.012452781,
-0.010653597,
0.028355684,
-0.050943196,
0.027870512,
-0.03654972,
0.010774891,
-0.029218214,
-0.032668337,
-0.007439324,
-0.010694028,
-0.0135309445,
0.04406991,
0.017627964,
0.08749292,
0.0058692493,
0.0122506255,
0.0026128604,
0.045552384,
0.033072647,
0.033450004,
-0.0033945285,
-0.03886777,
0.044447266,
-0.0037162928,
0.020660296,
0.005552539,
-0.014218274,
0.021307195,
0.04016157,
-0.002146218,
-0.032344885,
0.01946084,
0.02074116,
0.023490474,
0.04032329,
-0.039568577,
0.01014147,
-0.0024309205,
-0.0027745848,
-0.0053672297,
-0.037034895,
-0.03781656,
0.012432566,
-0.041913584,
0.014770832,
-0.024582114,
-0.036927078,
-0.000893696,
-0.0004994926,
0.017385377,
0.0037904165,
0.027264044,
0.02991902,
-0.016010718,
0.0006165744,
-0.018220954,
0.014609107,
0.013962209,
-0.020727681,
-0.034797706,
0.020296417,
0.046010602,
-0.017520146,
-0.013800485,
-0.03288397,
-0.0036960773,
0.0033389358,
0.056819186,
-0.03501334,
0.0019238469,
-0.025498552,
0.024797747,
-0.0549324,
-0.015377298,
-0.0035444605,
0.03164408,
0.0146630155,
-0.0010672128,
0.0062263906,
0.044555083,
0.0019811243,
-0.00904983,
0.00586588,
0.02378697,
0.016859772,
-0.0025202057,
0.022897484,
-0.02309964,
0.039703347,
0.043261286,
0.0350942,
-0.053422973,
0.058490336,
0.013935256,
-0.022398835,
-0.020512048,
0.028032236,
0.031671036,
0.022627944,
0.019433886,
-0.019285638,
-0.04560629,
0.005896203,
0.008167084,
0.0327492,
-0.024568638,
0.004946072,
-0.007884067,
-0.043584734,
-0.0084837945,
0.008665734,
-0.038759954,
0.007567356,
0.013483775,
0.024838177,
0.021307195,
0.008746596,
-0.014582153,
0.03024247,
0.015107757,
0.022250587,
0.011502651,
0.003069395,
0.040916283,
-0.016792387,
0.020296417,
-0.025848955,
-0.025431167,
-0.023450043,
-0.0012895839,
-0.09460879,
0.07390807,
0.01946084,
-0.0026263373,
0.018571356,
-0.021428488,
-0.023975648,
-0.04857124,
-0.0057681715,
-0.04606451,
0.0019423779,
-0.006802534,
-0.03264138,
-0.05280303,
0.0033574665,
-0.02978425,
0.040673696,
0.0061084665,
0.03024247,
0.007008059,
0.041886628,
0.019582134,
0.008059268,
0.0073045534,
0.016105058,
0.0024039664,
-0.0284635,
0.027627924,
-0.04512112,
-0.008126653,
-0.039865073,
-0.06760082,
0.0037937856,
0.031886667,
-0.03288397,
-0.03870605,
0.014420428,
-0.028571317,
-0.016967589,
0.016522847,
0.08355763,
-0.0073988927,
-0.043126516,
-0.0121765025,
0.023450043,
-0.023167025,
0.0062095444,
-0.026037633,
0.017129313,
-0.023032255,
-0.075417496,
-0.02560637,
-0.03792438,
0.013881347,
0.009636081,
-0.0117991455,
-0.018342245,
0.036091503,
0.008712904,
0.0337465,
0.0028453392,
-0.006890135,
-0.024123894,
0.050484978,
0.042129215,
0.042317893,
0.10452789,
0.0589216,
-0.018059228,
-0.006438654,
-0.02378697,
0.020269463,
0.020727681,
-0.00795819,
-0.019932536,
0.020336848,
-0.019070007,
-0.07493232,
-0.0053739683,
0.016751956,
0.038679093,
-0.038625184,
-0.021563258,
0.021940615,
-0.035390697,
-0.030970229,
-0.021024177,
0.027156228,
-0.022304496,
-0.009629343,
0.016846295,
-0.056010563,
0.20970269,
0.04369255,
0.014420428,
0.015552499,
-0.013726361,
0.015013418,
0.011738499,
-0.0264689,
0.014272181,
0.017991843,
-0.017061928,
-0.012937955,
-0.010532304,
0.03625323,
-0.027183183,
0.044474218,
-0.05301866,
0.004508069,
-0.038733,
-0.022937916,
-0.048139974,
0.027951373,
0.031805806,
0.080700494,
0.03514811,
-0.025309874,
-0.0053705988,
-0.044501174,
-0.035255928,
-0.023557859,
0.022749238,
-0.028948674,
0.05150923,
-0.01568727,
-0.028355684,
0.010417749,
0.02369263,
-0.048166927,
0.0025269443,
0.028894765,
-0.0092317695,
-0.0403772,
0.041455362,
-0.011455481,
0.0021630642,
-0.018557878,
-0.027870512,
0.033719543,
0.016024197,
-0.08280291,
0.021859752,
-0.019231731,
0.056495737,
-0.05638792,
-0.026401514,
0.0041644042,
-0.07460887,
-0.047951296,
-0.019272162,
-0.0022725652,
0.0015102704,
0.011388096,
-0.0034534906,
0.016253306,
-0.0017907611,
0.053557742,
-0.0057513253,
0.061239652,
-0.030970229,
0.007311292,
0.0011084862,
0.00044347873,
-0.032803107,
-0.033719543,
-0.016967589,
0.052587394,
0.0007147041,
0.049811125,
-0.0019979705,
-0.026590193,
0.032156207,
-0.024797747,
-0.00677558,
-0.04528284,
0.0023483736,
0.08016141,
-0.02141501,
0.017264083,
-0.024865132,
0.027115798,
0.031617127,
0.031158907,
0.019379977,
-0.028706087,
-0.020714205
] | from transformers import AutoTokenizer
model_name = "nlptown/bert-base-multilingual-uncased-sentiment"
tokenizer = AutoTokenizer.from_pretrained(model_name)
Pass your text to the tokenizer: |
[
0.033200543,
0.010901034,
0.00009732273,
0.018518968,
-0.011803532,
-0.045650747,
-0.0072413,
0.022725886,
-0.0035193854,
0.04329146,
0.0040150485,
0.015818581,
-0.0014905423,
-0.056736544,
-0.03712321,
0.033655345,
0.0060190195,
-0.038146514,
-0.01398516,
0.00005515695,
0.021802068,
0.029846378,
-0.083342455,
-0.04835113,
-0.019556483,
-0.011569025,
0.035900928,
-0.045309644,
0.09141519,
0.04900491,
0.0044165533,
-0.0072910436,
0.035105027,
-0.016060194,
-0.026890166,
-0.018860068,
0.022768522,
-0.02508517,
-0.040818475,
-0.024886195,
0.044883266,
0.016415508,
-0.0093305465,
-0.013779078,
-0.06350172,
-0.011739575,
-0.012222802,
-0.009238165,
0.015562754,
-0.025468908,
-0.032489914,
0.006530672,
0.03035803,
0.005088097,
-0.034110148,
-0.004054133,
-0.000358423,
-0.009643222,
-0.018049952,
0.024275053,
0.04528122,
0.039823595,
0.0074615944,
-0.04033525,
0.012926324,
0.018334204,
-0.010950779,
-0.004409447,
-0.03018748,
-0.014397324,
-0.023592852,
-0.018362628,
-0.035332426,
-0.011590344,
-0.03140976,
0.024147142,
-0.0050383527,
0.014695788,
-0.024061866,
0.032603614,
0.01195987,
0.01853318,
0.041927055,
0.0054611764,
-0.039397217,
-0.019982861,
0.036384158,
-0.015292715,
-0.000754154,
-0.059237953,
-0.0017588044,
0.03175086,
-0.0044272128,
0.031779286,
0.0463898,
0.059010554,
-0.010495977,
0.028766224,
0.0087123,
0.008797575,
0.02657749,
0.111540176,
0.0144826,
0.032546766,
-0.026378512,
0.006491587,
0.055741664,
-0.001735709,
-0.033427943,
-0.008534643,
0.0066763507,
0.0038658166,
0.014319155,
-0.0022349253,
-0.010808652,
0.0413017,
-0.0008061187,
-0.009245271,
-0.03851604,
-0.008655449,
-0.0081509035,
-0.0070814085,
0.0291926,
-0.03217724,
0.024829345,
-0.074985474,
0.0069534956,
0.023152262,
-0.028879924,
-0.0014692235,
-0.0036330859,
0.0046794857,
0.0093376525,
0.031665586,
0.011071585,
0.0022757864,
-0.028780436,
0.017097712,
0.029761102,
-0.023152262,
0.03578723,
0.0053759012,
-0.01648657,
0.07242721,
-0.017751489,
0.014070435,
0.006033232,
-0.034309123,
0.00040217105,
0.015207441,
-0.06691274,
0.006964155,
-0.044371616,
0.008371199,
0.008676768,
-0.00938029,
0.006637266,
0.033228967,
-0.014454175,
0.011313198,
0.0077103144,
-0.03152346,
-0.03740746,
0.042978786,
0.052529626,
0.030016929,
-0.021688368,
-0.017723063,
-0.005041906,
-0.046020273,
0.011391368,
-0.005194691,
0.014148604,
-0.026563276,
0.04044895,
0.05810095,
0.04749838,
-0.038999267,
0.0042211306,
0.0015136377,
-0.031495035,
0.011263454,
0.025454696,
0.022597972,
0.028723586,
-0.030699132,
-0.003075243,
0.028012957,
-0.007369213,
0.004508935,
0.05301285,
0.033939596,
-0.0008052304,
0.028211933,
-0.04056265,
0.0035975545,
0.0081437975,
0.01864688,
-0.03263204,
-0.011064479,
-0.017339325,
0.0145252375,
-0.007152471,
0.024019228,
-0.057589296,
0.029761102,
0.009351865,
0.048692234,
-0.007959034,
0.019599121,
0.024360329,
-0.015321141,
-0.0074118506,
-0.035616677,
0.013224788,
-0.010112237,
-0.018902706,
0.015861219,
0.017012436,
-0.0070778555,
0.029334726,
-0.0048926743,
0.015363778,
-0.011739575,
0.002942,
-0.00319072,
-0.012144634,
0.03169401,
-0.018902706,
0.029107325,
0.014184136,
0.027273905,
-0.010886822,
0.053979307,
0.020835614,
0.01920117,
0.039653044,
0.022398995,
0.0054149856,
-0.00062490854,
0.0041642804,
0.00057827355,
0.012201483,
0.040932175,
-0.008428048,
0.011227923,
-0.007959034,
0.017453024,
-0.02875201,
0.025227295,
-0.062364716,
0.038032815,
-0.021929981,
0.019826522,
-0.050937817,
-0.052870728,
0.035616677,
0.0019329083,
-0.018348416,
0.005471836,
-0.01925802,
0.040591072,
0.020949315,
-0.002764343,
0.022157382,
0.027401818,
0.03200669,
0.014454175,
-0.022626396,
-0.029903227,
-0.027828194,
-0.06532093,
-0.06640109,
-0.002888703,
-0.029505277,
0.003181837,
-0.002851395,
-0.033769045,
-0.019513845,
-0.034763925,
-0.040363673,
-0.04522437,
-0.011675619,
0.037379034,
0.02890835,
-0.03425227,
-0.05821465,
0.009081827,
-0.003396802,
0.026961228,
0.017268261,
-0.00804431,
0.0032138154,
-0.023280175,
0.0100482805,
-0.010417807,
0.015179015,
-0.011732469,
-0.04482642,
0.010645208,
0.0032298046,
0.016628696,
0.012748667,
0.013594314,
-0.06270582,
0.040392097,
0.04428634,
-0.029562127,
0.00202529,
0.06037496,
-0.022043683,
0.013501933,
0.014297836,
0.009231058,
-0.022612184,
0.016500784,
0.034820773,
-0.02164573,
-0.031381335,
-0.032546766,
-0.06753809,
0.0065519908,
-0.0152500775,
-0.027117567,
0.008484899,
0.05704922,
-0.021972619,
-0.049544986,
0.008392517,
-0.054235134,
-0.01803574,
-0.009216846,
-0.01986916,
0.07669098,
0.038089663,
0.006488034,
-0.057305045,
0.005553558,
-0.0038906885,
0.039141394,
0.027885044,
-0.030699132,
0.025454696,
0.0154774785,
-0.026776465,
0.009671648,
0.04678775,
-0.049033336,
-0.014837913,
0.0101833,
0.019954436,
0.009756923,
0.00932344,
0.0041180896,
-0.022541123,
0.02136148,
-0.01981231,
0.031438183,
0.032433063,
0.024502454,
0.004434319,
0.0045444663,
0.0048926743,
0.058015674,
-0.022654822,
-0.012769986,
-0.017182985,
0.008030097,
0.057305045,
-0.044741143,
0.017168773,
0.024999894,
-0.028737798,
-0.0006271292,
0.0017099488,
-0.0012658063,
0.020494513,
0.001514526,
0.08737882,
-0.037492737,
-0.020935101,
0.02147518,
-0.0014985369,
0.020096561,
0.008335667,
0.031125508,
0.01465315,
0.0035940013,
-0.004089664,
0.020466087,
-0.011114223,
-0.0077955895,
-0.014781063,
-0.03135291,
-0.04994294,
-0.042779807,
0.0351903,
0.031921413,
0.0050596716,
-0.010872609,
0.020721914,
-0.016969798,
0.012052252,
0.06679904,
0.014148604,
-0.02447403,
-0.021603093,
0.049630262,
-0.00754687,
0.013672483,
-0.008506218,
0.008285923,
0.0016024662,
-0.0033790364,
0.0032333576,
-0.0048002927,
-0.019542271,
0.038288638,
-0.021901557,
0.040676348,
0.010332532,
-0.04189863,
-0.016330233,
0.031097082,
0.029846378,
-0.02819772,
-0.010758908,
-0.033427943,
0.031324483,
-0.0023095412,
-0.010069599,
-0.06679904,
-0.03931194,
-0.01104316,
-0.082376,
0.045849722,
0.06503668,
-0.06640109,
0.020124987,
-0.023706552,
0.017723063,
-0.01226544,
-0.035417702,
-0.008804682,
0.015818581,
0.014738426,
-0.007305256,
0.014091754,
0.007994565,
-0.003752116,
0.027558155,
-0.044257917,
0.017097712,
-0.044542167,
-0.010460445,
-0.039084543,
0.0027199287,
-0.017652001,
0.014965827,
-0.0022580207,
-0.020139199,
-0.0073834253,
0.034820773,
-0.022896435,
-0.014923189,
-0.007653464,
0.050681993,
-0.034707073,
0.03794754,
-0.016301807,
-0.015036889,
0.023777615,
-0.006765179,
-0.034223847,
-0.00943714,
0.015349566,
0.012606542,
-0.011810638,
-0.0012284982,
0.012002508,
-0.030159054,
0.047981605,
0.013771972,
-0.0035478105,
-0.01587543,
-0.06986895,
0.0016211203,
0.022569546,
-0.03567353,
0.020991953,
0.05301285,
-0.03729376,
0.0030326052,
-0.008172222,
0.007369213,
-0.010360957,
-0.026179537,
0.002178075,
0.05477521,
0.021276204,
0.034991324,
-0.0009362525,
-0.043092486,
0.03794754,
-0.033825897,
-0.00810116,
-0.0409606,
-0.019428572,
-0.002284669,
0.008086947,
-0.056310166,
0.010119343,
-0.02819772,
-0.016912948,
-0.014866339,
-0.06333117,
0.030642282,
-0.026833314,
-0.0049068867,
0.05866945,
-0.053751905,
-0.055144735,
-0.02880886,
0.013253213,
-0.023095412,
-0.012521266,
0.034024872,
-0.041870203,
-0.04974396,
-0.072597764,
0.048805933,
-0.0707217,
0.018561605,
-0.04917546,
-0.064468175,
-0.025426272,
0.008293029,
0.029277876,
-0.040420525,
-0.00073461176,
-0.030102205,
0.028439334,
-0.04795318,
-0.027259693,
-0.0015118612,
-0.011810638,
-0.025795799,
0.01257101,
-0.020849828,
-0.0018085483,
-0.0062037827,
0.03513345,
0.023450725,
0.054235134,
-0.035275575,
-0.009977218,
0.004444978,
-0.017509876,
-0.0041607274,
0.057077646,
-0.018391054,
0.035730377,
-0.018121015,
0.06867509,
-0.055457413,
-0.022768522,
-0.03490605,
-0.0086341305,
0.061739367,
-0.010176194,
-0.0009104922,
-0.011384261,
-0.0014416866,
-0.016344445,
0.036753684,
-0.004764761,
-0.012897899,
-0.03425227,
-0.06117086,
0.03339952,
-0.02109144,
0.019158533,
-0.003670394,
-0.008577281,
0.04223973,
-0.059465356,
0.05400773,
0.06293322,
-0.004988609,
0.003231581,
-0.021929981,
-0.024729855,
0.004381022,
-0.0013048907,
0.010069599,
0.02086404,
-0.02303856,
0.013267426,
-0.0702669,
-0.05312655,
0.003880029,
0.007959034,
0.0041394085,
0.018789006,
0.02642115,
-0.01847633,
-0.04329146,
-0.062421568,
0.002222489,
0.00008199982,
0.008186435,
0.020210262,
0.015918069,
0.006893092,
-0.0018076601,
-0.019997073,
-0.014248093,
-0.002595569,
0.047469955,
0.01209489,
-0.038857143,
0.032319363,
0.022995923,
-0.027586581,
-0.049118612,
0.02269746,
-0.014212561,
-0.039255094,
-0.013224788,
0.012855262,
0.003755669,
-0.0526149,
0.020608213,
0.03501975,
-0.0707217,
0.018419478,
-0.009032083,
-0.028794648,
-0.07248406,
-0.00011647638,
0.045480195,
-0.02086404,
0.012030933,
-0.040363673,
-0.00029579893,
-0.0105101885,
0.0022740099,
0.0073905317,
0.00410743,
0.0036330859,
0.04201233,
0.010972097,
0.05360978,
0.017438812,
0.02592371,
-0.025824223,
-0.040989026,
-0.06731069,
-0.019485421,
0.0058520217,
-0.003400355,
0.03806124,
0.0067332005,
-0.008783363,
0.044485316,
0.049317587,
-0.018604243,
-0.09772557,
0.039965723,
-0.029618977,
-0.02531257,
-0.032347787,
0.0020181837,
-0.025952136,
0.050681993,
-0.014781063,
-0.06264897,
0.0018227609,
0.017723063,
-0.005653046,
-0.004487616,
-0.055144735,
-0.010090918,
-0.020196049,
0.0022473612,
-0.042325005,
-0.015960706,
0.014319155,
0.040249974,
0.029036261,
0.0107518025,
0.0056672585,
0.014418643,
-0.0026186644,
-0.0142907305,
0.025539972,
-0.023777615,
-0.0025884626,
-0.0030805725,
-0.057361897,
0.03285944,
0.032831017,
-0.0036668407,
0.0057418747,
-0.010190406,
0.023024349,
-0.026108474,
0.018391054,
0.059863307,
-0.0072697247,
0.0067332005,
0.005198244,
0.0024943044,
-0.019456996,
-0.011526387,
-0.0053865607,
-0.040249974,
-0.00888285,
0.030557007,
0.024772493,
0.035872504,
0.016017556,
0.036099903,
0.0014328038,
0.019414358,
0.015008464,
-0.010382276,
-0.011441112,
0.0013999372,
-0.008015884,
-0.043462012,
0.022967499,
0.010233044,
-0.024545092,
0.008492005,
-0.0041180896,
-0.024701431,
-0.03456495,
0.018959556,
0.024061866,
0.022612184,
-0.0068042637,
-0.02298171,
0.001448793,
-0.008612812,
-0.011505068,
0.00022462508,
-0.080386244,
-0.0231949,
0.025710523,
-0.049317587,
-0.010645208,
0.017182985,
0.010623889,
0.021986831,
0.038999267,
-0.0072306404,
-0.013885672,
0.029590553,
0.02275431,
0.026335875,
-0.031836137,
-0.059635907,
-0.0023859337,
0.027430242,
-0.027870832,
-0.04545177,
-0.0023344131,
0.04289351,
0.039084543,
-0.030670706,
-0.038857143,
-0.030414881,
0.015605392,
-0.025497334,
-0.026648551,
0.027089141,
-0.02092089,
0.022597972,
-0.034024872,
0.004029261,
-0.046304524,
0.034451246,
0.020594,
-0.00417494,
0.00014101525,
0.01134873,
0.024729855,
-0.045423344,
-0.010922353,
0.030841257,
0.020124987,
-0.0009362525,
0.022228446,
0.003922667,
0.03351322,
0.06418393,
0.030755982,
0.014304942,
0.028282996,
0.0045231474,
-0.007724527,
-0.024346117,
0.045139093,
0.026065838,
-0.011725362,
0.019172745,
-0.02825457,
-0.004658167,
-0.04371784,
-0.017694639,
-0.011817744,
-0.0029331173,
-0.005947957,
0.002103459,
-0.027032292,
0.023180688,
-0.008413836,
-0.043632563,
-0.0018209844,
0.018803218,
0.006608841,
0.013473508,
-0.0011698714,
-0.00059470686,
0.046162397,
0.027686069,
0.00810116,
0.041529104,
0.008257498,
0.02592371,
0.027060715,
0.0525012,
-0.037435886,
-0.028851498,
-0.019215383,
-0.009664541,
-0.024502454,
0.018632667,
0.0010410701,
-0.030386455,
0.016415508,
-0.009067614,
0.017808339,
-0.01608862,
0.030102205,
-0.024857769,
0.0031871668,
0.037805412,
-0.020551363,
-0.009756923,
0.018575817,
0.03436597,
0.025070958,
0.009472672,
0.069073044,
0.013416657,
0.09175629,
0.06827714,
-0.025326783,
0.019798098,
0.03962462,
-0.0032280278,
-0.008591493,
-0.027103353,
-0.022001045,
0.019570697,
-0.046247672,
-0.04218288,
0.03379747,
0.028282996,
-0.0011583237,
-0.0073123625,
0.031921413,
-0.017055074,
-0.036270455,
-0.0057063433,
0.08300135,
0.0011991848,
-0.012286759,
0.009636116,
0.027785556,
-0.030869683,
0.032603614,
-0.057674572,
0.018831642,
-0.008165116,
-0.08300135,
-0.009032083,
-0.045821298,
-0.0140562225,
-0.0016584282,
-0.013686696,
-0.018632667,
0.061284564,
0.032120388,
0.062080465,
0.014951614,
-0.018106803,
-0.020238686,
0.03425227,
0.053240255,
0.0025404952,
0.053098127,
0.039397217,
-0.00876915,
0.0012267217,
0.0012604765,
0.02424663,
0.0010357404,
0.010140662,
-0.0066763507,
0.027515518,
-0.058726303,
-0.060829762,
-0.03345637,
0.02030975,
-0.011718256,
-0.0051236283,
-0.02015341,
-0.00686822,
-0.09090354,
-0.012052252,
-0.018959556,
0.049516562,
-0.00932344,
-0.0086199185,
-0.033882745,
-0.048720658,
0.23899843,
0.050795693,
0.024260841,
-0.012734454,
0.05156317,
0.047640502,
0.0066195005,
-0.0007856881,
0.013267426,
-0.033115268,
0.0087123,
0.01937172,
-0.006790051,
0.05653757,
-0.004228237,
0.024758281,
-0.07646358,
-0.024346117,
0.03018748,
-0.046475075,
-0.049914513,
0.029988503,
0.011206605,
0.03197826,
-0.002265127,
0.048436407,
0.03328582,
-0.03268889,
-0.0010161981,
-0.018845856,
0.046418224,
-0.038601317,
0.005944404,
-0.021958407,
0.005443411,
0.03945407,
0.014567875,
-0.012038039,
-0.018163653,
-0.013771972,
0.040221546,
0.007596614,
-0.010368063,
-0.029988503,
-0.022327933,
0.037776988,
-0.016998222,
0.06475243,
0.046247672,
-0.082376,
0.014511025,
-0.045053817,
0.014283624,
-0.045167517,
-0.07117651,
0.0021603093,
-0.045878146,
-0.043376736,
-0.019343296,
0.049431287,
0.011789319,
-0.001704619,
-0.010893928,
0.017069286,
-0.007156024,
0.015576967,
-0.028069807,
-0.011888808,
-0.039937295,
0.029391576,
0.0046475073,
-0.017097712,
-0.017609363,
-0.034991324,
-0.0046475073,
0.059010554,
0.0058484687,
0.016173894,
0.007845334,
-0.076577276,
0.009486885,
0.009884836,
0.035161875,
-0.044712715,
-0.0014070435,
0.068447694,
0.00024894188,
0.017254049,
-0.021844706,
0.01440443,
0.022669034,
-0.0004583551,
0.012578117,
0.035161875,
-0.027003866
] | Now pass your preprocessed batch of inputs directly to the model. You just have to unpack the dictionary by adding **:
pt_outputs = pt_model(**pt_batch)
The model outputs the final activations in the logits attribute. Apply the softmax function to the logits to retrieve the probabilities: |
[
0.011334148,
0.015542336,
-0.019485272,
-0.027571876,
-0.039515387,
-0.023714967,
-0.00782852,
0.0060004313,
-0.017592663,
0.041981515,
-0.006659977,
0.01124812,
-0.01699047,
-0.0011344901,
-0.03409564,
0.016044164,
-0.02613808,
-0.06423401,
-0.026095066,
-0.0069503207,
-0.015671378,
0.009914692,
-0.056921653,
-0.029736904,
-0.030081015,
0.006595456,
0.0036633457,
0.0028783432,
0.07513085,
0.029994989,
-0.022553593,
0.023987388,
0.011219445,
-0.022109117,
-0.023514235,
-0.04396015,
0.02725644,
-0.05485699,
-0.007434226,
-0.020947743,
0.012452508,
-0.0023800994,
-0.012660408,
-0.040490367,
-0.059588514,
-0.024059078,
-0.018969106,
-0.02271131,
-0.007763999,
-0.02704137,
-0.005638398,
0.012165749,
0.015527998,
0.016617682,
-0.04570938,
-0.005061296,
-0.0076779714,
0.017391931,
-0.025349492,
-0.027342469,
0.0075919437,
0.037077934,
-0.047831398,
-0.0296222,
-0.034468427,
0.02739982,
0.0125385355,
0.0031149192,
-0.0046634176,
-0.034066964,
-0.055831973,
0.031142024,
-0.018553305,
-0.03891319,
-0.022883365,
0.023356518,
-0.006136642,
-0.012696253,
-0.015757406,
0.036791176,
0.0040899,
0.030941293,
-0.01704782,
0.024345836,
-0.016646357,
-0.053222466,
0.048060805,
-0.030482478,
0.011900498,
-0.055229776,
-0.003068321,
0.0153702805,
-0.0068607084,
0.015771743,
0.050498255,
0.06280021,
-0.015327266,
0.056778274,
-0.004864149,
-0.018223532,
0.050612956,
0.07960429,
-0.03730734,
0.035414733,
-0.009427201,
0.032604493,
0.055029046,
0.0030557753,
-0.042927817,
0.014588863,
-0.010072409,
-0.018338235,
0.007491578,
-0.012904153,
-0.051817346,
0.042153567,
0.0029034344,
-0.0051401546,
-0.016718049,
-0.0036669304,
-0.004086315,
-0.003575526,
-0.004269124,
-0.027629226,
0.02130619,
-0.07759698,
0.018424263,
-0.0025001797,
-0.008022082,
-0.008789162,
0.030310422,
0.01872536,
0.028604208,
0.05319379,
0.009699622,
-0.0005269196,
-0.022739986,
-0.0065739495,
0.03466916,
-0.0064699994,
0.013026026,
-0.01405119,
-0.013757261,
0.07180445,
0.032862578,
-0.01699047,
0.02669726,
0.0018603489,
-0.006746005,
0.021449571,
-0.076621994,
0.020245183,
-0.0067352513,
0.016502978,
-0.021277515,
-0.013871965,
0.02124884,
0.009032908,
-0.020818701,
-0.009534735,
0.037909534,
-0.03185892,
-0.017449284,
0.051358532,
-0.0019123239,
0.026166756,
-0.0343824,
-0.020144818,
0.038884517,
-0.025836984,
0.014001006,
-0.0008284646,
0.032317735,
0.008437882,
0.01634526,
0.027959,
0.06268551,
-0.011986525,
0.0062513454,
0.013886303,
0.0068105254,
-0.010767799,
-0.035873547,
0.004527207,
-0.009577749,
-0.017348917,
0.016746724,
0.013183744,
-0.011907666,
-0.013742924,
0.044906456,
0.050440904,
-0.028460827,
-0.017019145,
-0.01787942,
0.021449571,
-0.00541616,
0.013391644,
-0.009527567,
-0.010896841,
-0.0019840137,
0.03507062,
-0.030023664,
-0.0016318378,
-0.014897129,
0.009018569,
0.037278667,
0.03598825,
-0.032661848,
0.0038210633,
0.019184176,
0.030568507,
-0.0038031407,
0.029794257,
-0.003591656,
-0.0423543,
-0.00021540528,
0.034497105,
-0.007857196,
0.026955344,
0.0074413954,
0.021478247,
0.031973626,
0.0023836838,
-0.011334148,
-0.03584487,
-0.00021428512,
0.023657614,
0.040146254,
0.03656177,
0.0066062096,
0.008882359,
-0.009735467,
0.038626432,
-0.007280093,
0.035271354,
0.04542262,
0.03466916,
-0.012380819,
-0.0069073066,
0.0085956,
0.0022564346,
0.04416088,
-0.0037744648,
0.0038533236,
0.029708229,
0.004613235,
-0.0043587363,
-0.06813393,
0.015599688,
-0.053021733,
0.06836334,
-0.004039717,
-0.026797626,
-0.045250565,
-0.059645865,
-0.00950606,
0.016732385,
-0.00260413,
-0.037020583,
0.031486135,
0.024618257,
0.027887309,
-0.008186969,
0.017965449,
0.039372005,
0.03251847,
0.04100653,
-0.027600551,
-0.026539542,
-0.032747876,
-0.08063662,
-0.061538473,
0.010939854,
-0.021808019,
-0.049752682,
-0.014925804,
-0.058670886,
0.014194569,
-0.01984372,
-0.030367775,
-0.01949961,
-0.050440904,
0.021750668,
0.035529435,
0.026353149,
-0.04654098,
0.015714392,
0.0005157181,
0.039802145,
0.021879708,
0.012853971,
-0.019542623,
-0.023571588,
-0.00066850684,
0.015527998,
0.013147899,
-0.026668584,
-0.010602913,
0.02018783,
0.014531511,
-0.0084665585,
-0.0047064316,
0.037479397,
-0.031916272,
0.015427632,
0.039027896,
-0.007025595,
0.022639621,
0.06503694,
-0.011384331,
0.0014042228,
0.0023783073,
0.020603633,
-0.019370569,
0.03690588,
0.03793821,
0.0018038931,
-0.014294934,
-0.024761638,
-0.04332928,
0.025220452,
-0.011929173,
-0.041637402,
-0.007950393,
0.054398175,
-0.037565425,
-0.040490367,
-0.021822358,
-0.04459102,
-0.017865084,
0.00943437,
-0.0005865117,
0.050555605,
0.0093555115,
-0.00022761493,
-0.041063882,
-0.045250565,
0.0041759275,
0.028718911,
0.024274146,
-0.03389491,
-0.027485847,
0.024976706,
0.025951687,
-0.00019625066,
0.042153567,
-0.057065036,
0.018108828,
-0.0047422764,
0.046770386,
0.053021733,
0.021937061,
-0.0070542707,
0.0058642207,
0.010516885,
-0.048806377,
0.0318876,
-0.010395013,
0.03584487,
0.048548292,
0.014201738,
0.003509213,
-0.0013585206,
-0.021793682,
-0.029392794,
-0.0020592879,
-0.013771599,
0.040633745,
-0.03739337,
0.0019069471,
0.03375153,
0.010079578,
0.014137217,
-0.016861428,
-0.04089183,
0.054111417,
0.011025882,
0.05528713,
-0.011291134,
-0.023241814,
-0.0035378889,
0.005925157,
0.012266115,
0.030912617,
0.044390287,
0.00964944,
0.0062011625,
0.011907666,
0.02229551,
-0.006122304,
0.01859632,
-0.02018783,
-0.0035486422,
-0.06429136,
-0.029063022,
0.017090835,
0.06629867,
0.039085247,
-0.0061258883,
0.024073415,
-0.0303391,
0.002591584,
0.032174356,
0.01195068,
-0.04619687,
-0.037221313,
0.059416458,
0.013570868,
-0.009104597,
-0.04668436,
0.016173206,
-0.033923585,
0.023571588,
-0.00055918,
0.021005094,
-0.030769236,
0.007921716,
0.0014794971,
0.0032349997,
-0.022467565,
-0.03813894,
-0.043644715,
0.008703135,
0.0567496,
-0.03928598,
-0.0058462983,
-0.0059108194,
0.005082803,
0.029020008,
0.0070399325,
-0.046024814,
-0.010007888,
-0.02173633,
-0.06475017,
0.047716692,
0.04507851,
-0.018338235,
0.024618257,
-0.042956494,
0.007050686,
-0.0050075287,
-0.04046169,
-0.01775038,
0.015700053,
-0.014180231,
-0.03613163,
0.022739986,
-0.0127249295,
-0.01865367,
0.04645495,
-0.013391644,
0.022266833,
-0.026109405,
0.0040970687,
-0.031772893,
0.00054394593,
0.014208907,
0.0656678,
0.0134059815,
-0.03899922,
-0.015814757,
0.043587364,
-0.012803788,
-0.06778982,
-0.002568285,
0.04158005,
-0.009319667,
0.006050614,
-0.0070937,
0.029679554,
0.015269915,
0.026998356,
0.0016694749,
-0.019327555,
0.0011210483,
-0.014130048,
-0.0144813275,
-0.0042332793,
0.024145106,
-0.03214568,
0.009972043,
0.036217656,
-0.01230196,
-0.0440175,
-0.027070047,
-0.021191487,
-0.018137505,
-0.006749589,
0.03389491,
0.031830244,
-0.0019768446,
-0.0132410955,
-0.03940068,
0.003243961,
-0.013291278,
-0.0144813275,
-0.01292566,
0.062226698,
0.02173633,
0.053279817,
-0.034554455,
-0.038483053,
0.015255577,
-0.019184176,
0.020876054,
-0.0113915,
-0.01970034,
-0.011907666,
-0.030195719,
-0.015728729,
0.031256728,
-0.013341461,
0.0056491517,
0.008237151,
-0.0002544986,
-0.010746293,
0.00081054214,
-0.029851608,
0.039744794,
-0.058842942,
-0.07077211,
-0.007201235,
0.03704926,
-0.010230126,
-0.00040280673,
0.049236514,
-0.006835617,
-0.03403829,
-0.005233351,
0.041694753,
-0.03822497,
-0.0013388059,
-0.079833694,
-0.014094204,
0.014940143,
0.014839777,
-0.016474303,
-0.058183394,
0.0020521188,
-0.04347266,
0.013520685,
0.0005134778,
-0.030081015,
0.0114631895,
-0.016244896,
-0.025105748,
0.03515665,
0.0011488281,
-0.009212132,
-0.015614026,
-0.03102732,
0.0283748,
0.07323824,
-0.051874697,
0.030453803,
-0.0013665857,
-0.03180157,
0.036504418,
0.0022152131,
0.026998356,
0.034152992,
-0.0296222,
0.019098148,
-0.048548292,
-0.02725644,
-0.06371784,
-0.008323179,
0.023915699,
-0.04688509,
-0.04808948,
-0.011312641,
0.03257582,
0.020818701,
0.079546936,
-0.014323611,
-0.027012695,
-0.0471145,
-0.031113349,
0.011434514,
-0.0122087635,
0.019384906,
0.006609794,
-0.00635888,
0.07409852,
-0.062226698,
0.0032099083,
0.043788094,
0.01446699,
0.023155786,
-0.035472084,
0.029478822,
-0.0132410955,
-0.026095066,
-0.009004232,
-0.01621622,
-0.0439028,
0.011570725,
-0.058326773,
-0.042096216,
-0.007893041,
0.043931473,
0.06910891,
-0.048347563,
0.02242455,
-0.010896841,
-0.03641839,
-0.054340824,
0.03194495,
0.015097859,
0.02243889,
0.02243889,
0.0002524823,
-0.007455733,
0.0030306838,
-0.028733248,
-0.011384331,
-0.037536748,
0.07140298,
-0.0093340045,
-0.016603345,
0.036074277,
0.007025595,
-0.010688941,
-0.026525205,
0.053509224,
0.018295223,
-0.033694178,
-0.037565425,
-0.009484553,
-0.016173206,
-0.018338235,
-0.004236864,
0.01964299,
-0.026725937,
-0.013735754,
0.016976131,
0.014997494,
-0.020015776,
0.0703133,
0.03257582,
-0.00009812533,
0.031629514,
-0.033063307,
0.01250986,
-0.04172343,
-0.02425981,
0.039113924,
-0.015743067,
0.019786369,
0.05683563,
0.01202237,
0.09405694,
-0.05319379,
0.011348486,
0.022610944,
-0.009319667,
-0.06044879,
0.0017330995,
0.047429934,
-0.011692597,
0.0223672,
-0.0408058,
-0.028747587,
-0.006351711,
0.04221092,
-0.00457739,
-0.100537695,
0.05700768,
-0.0036597613,
-0.042927817,
-0.005186753,
-0.0041329134,
0.019442258,
0.04017493,
-0.028876629,
-0.016976131,
0.0049143317,
-0.010237295,
-0.059014995,
-0.034066964,
-0.027084384,
0.0311707,
-0.015384618,
-0.015958136,
-0.012474015,
-0.051415883,
0.006681484,
0.000419385,
-0.0045809746,
-0.0143164415,
-0.011922004,
0.032030977,
-0.044533666,
0.015614026,
-0.0041329134,
-0.019571299,
0.02166464,
-0.0022026673,
-0.015700053,
-0.0038748307,
0.056004025,
-0.036819853,
-0.027973337,
0.023743642,
-0.004695678,
-0.009305328,
0.042784438,
0.049580626,
-0.032862578,
0.050698984,
0.0072227414,
0.030482478,
-0.05766723,
-0.036647797,
-0.00154581,
0.004996775,
0.000205996,
0.036303684,
0.05087104,
0.047831398,
0.0127249295,
0.0120008625,
0.006595456,
0.013886303,
0.0043228916,
0.009549074,
0.023041083,
-0.022395875,
0.030969968,
-0.020302534,
0.004186681,
0.0035307198,
-0.033808883,
0.019485272,
0.0063409577,
-0.023643278,
-0.03859776,
0.046168193,
-0.00003878527,
0.024446202,
0.0048605646,
-0.03928598,
0.017420607,
0.024747299,
-0.03948671,
0.0058642207,
-0.032977283,
-0.040146254,
0.028761925,
-0.034066964,
0.012638901,
-0.038741138,
-0.03710661,
0.02718475,
0.010918348,
0.000139795,
0.004702847,
0.042755764,
0.019528287,
-0.0057638553,
-0.041465346,
-0.028776262,
0.005150908,
0.0070327637,
-0.023944374,
-0.030998645,
0.03891319,
0.009032908,
0.0037350357,
-0.03180157,
-0.034009613,
0.0050218664,
0.023370856,
0.026238445,
-0.009377019,
-0.008495235,
-0.051215153,
0.015441971,
-0.041379318,
-0.014459821,
0.036819853,
0.030855265,
-0.0012285829,
0.021435233,
-0.000017278348,
0.021564275,
0.059531163,
-0.025593238,
-0.021349205,
0.024202457,
0.027930323,
-0.052161455,
-0.008832176,
-0.0074700713,
0.025464196,
0.05723709,
0.028417815,
0.008014913,
0.038339674,
0.01706216,
-0.027371144,
-0.000934655,
0.036389712,
0.0033461186,
-0.030253071,
-0.009448708,
-0.010509716,
0.0008705823,
-0.010674602,
0.016689371,
0.029048683,
0.017105173,
-0.007484409,
-0.000037413083,
-0.034009613,
-0.016316585,
0.013807444,
-0.029192062,
0.0034267697,
-0.013319954,
0.02956485,
0.03332139,
0.016646357,
-0.033694178,
0.047200527,
0.016603345,
0.019556962,
0.025120085,
-0.0016434874,
0.0236146,
0.011692597,
0.023915699,
-0.035558112,
-0.03934333,
-0.0093340045,
0.002104094,
-0.057065036,
0.016402613,
-0.026467852,
-0.025937349,
0.018969106,
-0.052706297,
-0.04576673,
-0.04857697,
0.029120373,
-0.030912617,
-0.018840063,
0.020073127,
-0.03633236,
-0.05844148,
0.012631733,
-0.03813894,
0.020574955,
0.028690236,
0.04499248,
0.027356805,
0.07937488,
0.00618324,
0.004011041,
0.05221881,
0.029994989,
-0.008760487,
-0.05024017,
-0.014925804,
-0.011283966,
-0.004620404,
-0.06085025,
-0.02480465,
0.011527711,
0.034152992,
-0.024202457,
-0.04935122,
0.019184176,
0.014510004,
0.014825439,
-0.012997351,
0.090271726,
-0.0035414733,
-0.019599976,
-0.011083234,
0.039716117,
-0.03137143,
-0.043501336,
0.00009650111,
0.010000719,
-0.03598825,
-0.07576172,
0.002281526,
-0.060964957,
0.012638901,
-0.0055595394,
-0.022209482,
0.018338235,
0.042182244,
0.02509141,
0.035902224,
0.04011758,
-0.021492586,
0.008222814,
0.08207042,
0.014560186,
-0.0008647575,
0.082127765,
0.050698984,
0.01984372,
0.020488929,
0.022696972,
0.009936199,
-0.010774968,
0.009348342,
0.003731451,
-0.00084011414,
-0.03876981,
-0.05715106,
-0.025822645,
0.03578752,
0.027170412,
-0.042469002,
-0.017076496,
-0.00909026,
-0.06434871,
0.0007697686,
-0.054254796,
0.026711598,
-0.02404474,
0.0018137505,
0.010681772,
-0.04396015,
0.243401,
0.07799844,
0.04172343,
-0.004695678,
0.01942792,
0.042096216,
-0.004111407,
-0.037909534,
-0.012595887,
-0.011355655,
0.019212851,
-0.026109405,
0.019470934,
0.026310135,
0.00073481986,
0.040691096,
-0.013771599,
0.009620763,
-0.018481616,
-0.03269052,
-0.038196295,
0.036217656,
0.027428495,
0.04605349,
0.013499178,
-0.010968531,
0.019757694,
-0.0042512016,
-0.028389137,
-0.0367625,
0.040146254,
-0.0011586854,
0.0107606305,
-0.0038138942,
0.0020252352,
0.021119798,
0.008057927,
-0.07702346,
0.01006524,
0.017148186,
0.0071868966,
-0.030597182,
0.015398957,
-0.023399532,
-0.010932686,
0.009964874,
-0.0076564644,
0.02880494,
0.039802145,
-0.07794109,
0.0020377808,
-0.0503262,
0.023858346,
-0.032030977,
-0.053767305,
0.0025521547,
-0.043788094,
-0.02438885,
-0.017764717,
0.025836984,
-0.034439754,
0.010029395,
0.013011688,
-0.007283678,
0.0037923874,
0.04702847,
0.0128898155,
0.031228052,
-0.036188982,
0.02732813,
0.01753531,
-0.019886734,
-0.008674459,
-0.010509716,
0.012631733,
0.047401257,
0.0026811964,
0.02844649,
-0.0047279387,
-0.045279242,
0.032260384,
-0.01286114,
-0.04264106,
-0.02696968,
0.013104885,
0.06847804,
-0.038970545,
0.031400107,
-0.00007264187,
0.031256728,
0.0052190134,
0.03068321,
0.0105742365,
-0.013542192,
-0.01865367
] | The tokenizer returns a dictionary containing:
input_ids: numerical representations of your tokens.
attention_mask: indicates which tokens should be attended to.
A tokenizer can also accept a list of inputs, and pad and truncate the text to return a batch with uniform length:
pt_batch = tokenizer(
["We are very happy to show you the 🤗 Transformers library.", "We hope you don't hate it."],
padding=True,
truncation=True,
max_length=512,
return_tensors="pt",
) |
[
0.008129315,
-0.015355375,
-0.01431885,
0.015992098,
0.010032079,
0.015932867,
-0.015725562,
-0.03663375,
0.009832178,
0.035330687,
0.02988153,
-0.00564906,
0.040424466,
-0.03814411,
0.03426455,
0.033642635,
-0.011386965,
-0.014148563,
-0.038884487,
-0.02857847,
-0.010091309,
0.031303048,
-0.09755179,
-0.022226052,
-0.0076924944,
0.0041646087,
0.025187552,
0.0015362778,
0.06062189,
0.0501678,
0.010691013,
-0.030621903,
0.038943715,
-0.019753201,
-0.04856859,
-0.033701863,
-0.003300221,
-0.0045051808,
-0.04578478,
-0.030384984,
0.030414598,
0.034086857,
0.025069091,
-0.044304032,
-0.051678166,
0.016051326,
0.010076501,
-0.022107594,
-0.02656465,
-0.039032564,
-0.028015785,
0.010261595,
0.020848956,
0.012253203,
-0.063020706,
-0.044748254,
-0.031273432,
0.00072417915,
-0.025009863,
-0.012749255,
0.06047382,
0.038617954,
-0.013756164,
-0.026757147,
-0.00007201302,
0.033405714,
-0.006474578,
0.012512335,
0.007388941,
-0.0079220105,
-0.051204324,
0.012297627,
-0.02455083,
-0.014311446,
-0.006970629,
0.038647566,
-0.015266529,
0.010698416,
0.0090177655,
-0.006689287,
0.008928921,
0.015459027,
0.026816377,
-0.012586372,
-0.012741851,
-0.05093779,
0.031006899,
-0.013763568,
-0.024002953,
-0.065508366,
-0.031717658,
0.0138005875,
-0.012875118,
0.017250733,
0.032309957,
0.029614994,
-0.00006293186,
0.039536018,
0.01266041,
-0.024595253,
0.02555774,
0.07688052,
-0.013000982,
0.018405719,
-0.029022694,
0.008351428,
0.025602162,
-0.015133262,
-0.031184588,
-0.039832167,
-0.027941747,
0.007847973,
0.021663368,
-0.002793064,
0.016569588,
-0.009380549,
-0.03361302,
0.010254191,
-0.007648072,
0.0011096369,
-0.004327491,
-0.018316874,
0.002711623,
-0.07137214,
0.03004441,
-0.060947657,
-0.009706315,
0.03307995,
-0.0042719627,
0.0059933346,
0.005275171,
-0.006233956,
0.040276393,
0.031747274,
0.006855871,
-0.009091803,
0.011979265,
-0.0014409545,
-0.029896336,
-0.0037129798,
0.0054528606,
-0.024062183,
-0.013245306,
0.092991084,
0.005645358,
-0.009846985,
-0.016717665,
-0.0513524,
-0.044570565,
0.019797623,
-0.05093779,
0.03470877,
-0.004149801,
-0.0016010606,
-0.016525166,
-0.02135241,
0.01833168,
0.021781828,
0.0010189409,
0.010765051,
0.012845503,
-0.041520223,
-0.032132268,
0.069062166,
0.014466925,
0.036574516,
0.007914607,
-0.028237896,
0.008277391,
-0.02372161,
0.020138197,
0.022685084,
-0.0023099696,
0.01927936,
0.039950628,
0.009780352,
0.08351428,
-0.0014640912,
0.019072056,
-0.009439779,
-0.014311446,
-0.025824275,
0.01505182,
0.031747274,
0.014481732,
0.005741607,
-0.0034871656,
-0.003381662,
-0.0013086125,
0.011742345,
0.015251722,
0.041845985,
-0.046495542,
0.020004928,
-0.05603157,
0.0035482463,
-0.022152016,
0.012031091,
-0.01505182,
-0.041016765,
-0.033938784,
0.034294162,
-0.061125346,
0.0055676186,
-0.019057248,
0.058075003,
0.0047606104,
0.04696938,
0.003677812,
0.019471858,
0.03023691,
0.015799599,
-0.015473834,
0.010357844,
0.018716676,
-0.018079953,
-0.019264553,
0.027349446,
-0.0014381781,
-0.022566626,
0.01941263,
0.027319832,
0.036307983,
0.0071409154,
0.037788734,
-0.036841054,
-0.028845005,
0.044037495,
0.027201371,
0.017606113,
0.03749258,
0.044837102,
-0.030918054,
0.0592596,
-0.024758134,
0.015414604,
0.029333651,
0.033168793,
0.0142374085,
-0.0047124857,
0.020153003,
0.00094675436,
0.019116478,
0.047709756,
-0.043800578,
-0.0036130291,
-0.01556268,
0.007126108,
-0.040542927,
0.043919034,
-0.04696938,
0.045340557,
0.020093773,
-0.0074703824,
-0.057068095,
-0.021618946,
0.0030281332,
0.017961495,
-0.0009314841,
-0.010083905,
0.01337117,
0.0011198169,
-0.013445207,
-0.0047272933,
0.0418756,
0.061717648,
0.012882522,
0.0076554758,
-0.019175708,
-0.030681133,
-0.050078955,
-0.05579465,
-0.0685291,
0.006389435,
-0.027586367,
-0.023988144,
0.008951132,
-0.03624875,
0.011150045,
-0.02644619,
-0.0038055268,
-0.003174357,
-0.019368205,
0.03968409,
0.023336615,
0.01893879,
-0.041816372,
0.026890414,
-0.039358325,
-0.018627832,
-0.007944223,
-0.026372151,
-0.012268011,
-0.012430893,
0.04294174,
0.018701868,
-0.014141159,
-0.04845013,
-0.027734442,
0.02797136,
0.008292198,
-0.00007999519,
0.030384984,
0.040246777,
-0.020789726,
0.021663368,
0.019086864,
-0.04886474,
0.043682117,
0.058874607,
-0.011201872,
0.031095743,
0.03746297,
0.021456063,
-0.025883505,
0.035301074,
0.032813415,
0.010417074,
-0.040957537,
-0.046880536,
-0.047828216,
0.03136228,
-0.0244916,
-0.014718652,
-0.009602662,
0.03799604,
-0.03553799,
-0.04667323,
0.004860561,
-0.05686079,
-0.026668303,
-0.02052319,
-0.003126233,
0.0655676,
0.0021859568,
0.03704836,
-0.07066137,
0.008136719,
-0.0042534536,
0.010046886,
-0.0015890296,
-0.05307007,
0.026875608,
0.05058241,
0.014555769,
-0.0067152,
0.04975319,
-0.022877583,
0.009735929,
-0.023751225,
0.016984198,
0.025750237,
0.02253701,
-0.018642638,
0.013682127,
0.019797623,
-0.0062413597,
0.018124375,
0.029126346,
0.033050332,
-0.0021322796,
0.019353399,
0.013600686,
0.008107104,
-0.02016781,
0.007714706,
-0.0047791195,
0.0146668255,
0.05330699,
-0.053455062,
0.008499503,
-0.032102652,
-0.026535034,
-0.012852907,
0.012764063,
-0.046110544,
0.027956555,
0.016939776,
0.035212226,
-0.013534052,
-0.04406711,
0.001191078,
0.02342546,
0.040128317,
0.010083905,
0.018302066,
-0.00030725557,
0.004742101,
-0.028252704,
-0.0015908804,
0.012075514,
0.026623879,
0.002174851,
0.013119442,
-0.027290218,
-0.016569588,
0.031243818,
0.044215187,
-0.0050567603,
0.0065190005,
0.04311943,
-0.039832167,
0.008329217,
0.029659417,
0.008891902,
-0.008810461,
-0.059703827,
0.008943728,
0.028282318,
0.0066781812,
0.005793433,
-0.024891403,
-0.018509371,
-0.0070483685,
-0.008766038,
-0.004242348,
-0.0006626355,
0.012416086,
-0.01750246,
0.02697926,
0.017102659,
-0.022003941,
-0.031036513,
0.017532077,
0.030148063,
-0.019871661,
0.021026645,
-0.03136228,
0.013260113,
0.045222096,
-0.01177196,
-0.0296298,
0.004238646,
-0.020922992,
-0.044748254,
0.07415594,
0.03248765,
-0.073385954,
0.0002176008,
-0.055291194,
-0.008854883,
0.020153003,
-0.028460009,
-0.059496522,
0.028682122,
-0.002650542,
-0.003740744,
-0.0035389918,
0.0068928897,
0.033524174,
0.030562673,
-0.04089831,
0.035034537,
-0.04199406,
0.00081024773,
-0.0025561443,
-0.0074037486,
0.012697428,
0.033553787,
0.021026645,
-0.022996042,
-0.020449154,
0.042971358,
-0.019471858,
-0.03636721,
-0.0037462967,
0.05769001,
0.0077517247,
0.04033562,
-0.014600192,
-0.014977783,
0.021189528,
0.036870666,
-0.0483909,
0.031214204,
0.0058933836,
0.0028078717,
-0.022403743,
-0.027127335,
-0.010261595,
-0.05979267,
0.032991104,
-0.036544904,
-0.010572553,
0.041075997,
-0.08138201,
-0.013689531,
-0.014933361,
-0.017487654,
0.0062006395,
0.034353394,
-0.025350435,
-0.019531088,
-0.02934846,
-0.007566631,
0.009772948,
-0.04750245,
0.002002714,
0.057838082,
0.026001964,
0.042349443,
-0.07368211,
-0.0191609,
0.030384984,
-0.013882028,
0.020567613,
-0.020626843,
-0.025942735,
-0.031984195,
-0.017665343,
-0.02755675,
0.008877095,
0.0036556008,
0.011283313,
-0.0044829696,
-0.034619927,
0.017931879,
-0.02650542,
-0.013748761,
0.04335635,
-0.03675221,
-0.055705804,
-0.02372161,
0.027156949,
0.010165347,
0.020567613,
0.035597224,
-0.040157933,
-0.024595253,
-0.048242826,
0.050315876,
-0.038232956,
0.05603157,
-0.024832172,
-0.033701863,
0.039595246,
0.005145605,
0.00081626326,
-0.02927442,
-0.016614012,
-0.031066129,
-0.006067372,
-0.03500492,
-0.02680157,
-0.029674225,
-0.0037148308,
-0.021485679,
0.04619939,
-0.00065939635,
0.017724574,
-0.02727541,
0.023203347,
0.0404837,
0.042971358,
-0.060296126,
-0.009217666,
0.029007886,
-0.0018203966,
0.0023488393,
0.044155955,
0.005682377,
0.041401763,
-0.008129315,
0.033790708,
-0.066752195,
-0.038529105,
-0.018687062,
0.017931879,
0.041845985,
-0.043149047,
-0.016051326,
-0.009624873,
0.004586622,
0.029422496,
0.014304042,
-0.01728035,
0.009417568,
-0.007385239,
-0.065922976,
0.028608084,
-0.051145095,
0.0071631265,
0.006059968,
0.011150045,
0.05401775,
-0.061776876,
0.01708785,
0.05384006,
-0.0033446434,
-0.030947668,
-0.026312921,
0.024639675,
0.0009014064,
0.022611048,
-0.016821317,
-0.020345502,
-0.017295156,
0.015081435,
-0.019975314,
-0.057512317,
-0.01963474,
0.020064158,
0.016110556,
-0.019368205,
0.040306006,
0.001427998,
-0.007759128,
-0.04969396,
0.020804534,
0.010698416,
-0.0061488133,
0.021781828,
0.0057601165,
-0.008262583,
0.0053677177,
-0.02431391,
-0.044304032,
-0.011764556,
0.05058241,
-0.020301078,
-0.04270482,
0.0019953102,
0.034797616,
0.010135732,
-0.02413622,
0.0039906204,
0.038381033,
-0.044511337,
-0.02851924,
-0.01218657,
0.015044417,
-0.03195458,
0.004682871,
0.023928914,
-0.022507396,
-0.017102659,
0.018909173,
-0.015125858,
-0.03980255,
0.020212233,
0.03373148,
-0.038203344,
0.010357844,
-0.04329712,
-0.0020656458,
-0.022670278,
-0.017398808,
0.04892397,
0.012578969,
-0.011231487,
0.05247777,
-0.0032946682,
0.04572555,
-0.008247776,
-0.019264553,
0.010446689,
-0.039180636,
-0.05508389,
-0.022033555,
0.043978266,
-0.0025802064,
0.023869686,
-0.017546885,
0.035863757,
0.046495542,
0.03998024,
-0.008484696,
-0.09269493,
0.0054084384,
-0.012119936,
-0.022670278,
0.0035223332,
0.029659417,
-0.012534546,
0.05188547,
-0.009254686,
-0.03719643,
-0.016939776,
0.034649543,
-0.034768004,
-0.0110612,
-0.05342545,
0.027956555,
-0.053277373,
-0.0033946186,
-0.04377096,
-0.028075013,
0.031599198,
0.04021716,
-0.0035445446,
-0.0014890789,
0.011883017,
0.013526648,
0.00926209,
0.035360303,
-0.012845503,
0.035360303,
-0.0074222577,
-0.006759622,
-0.025009863,
0.004327491,
0.036041446,
-0.047650523,
0.004953108,
0.013541456,
-0.0063116956,
-0.007240866,
0.0060525644,
0.056683097,
-0.021115491,
0.02081934,
-0.02431391,
0.04537017,
-0.047117457,
-0.0023099696,
-0.026949644,
-0.019842045,
-0.014407694,
0.05188547,
0.027719634,
0.038084883,
-0.02378084,
0.009772948,
-0.002095261,
0.056179643,
0.013807991,
0.029866721,
0.041727528,
-0.017591307,
-0.0013909793,
-0.033050332,
0.01005429,
-0.00329837,
-0.043741345,
0.033998013,
0.0071668285,
-0.015111051,
-0.019486666,
0.020537999,
0.059022684,
0.026283307,
0.004705082,
-0.024876595,
-0.007148319,
-0.0018176202,
-0.026653495,
0.019723587,
-0.072793655,
-0.02230009,
0.03790719,
-0.05425467,
0.0021248758,
-0.013748761,
-0.018005917,
0.034797616,
0.033790708,
0.018672254,
-0.0069076973,
-0.0017861543,
-0.016702857,
0.016850932,
-0.058874607,
-0.036041446,
-0.015192492,
0.007152021,
-0.05810462,
-0.03177689,
0.005656464,
0.042497516,
0.024698906,
-0.008840076,
-0.053158913,
-0.041668296,
0.008218161,
0.042675205,
-0.043859806,
0.009980253,
-0.033701863,
-0.00031836118,
-0.046080932,
-0.009350934,
0.0074592764,
0.040246777,
0.023099694,
0.029096732,
-0.016688049,
-0.005889682,
0.021915095,
-0.03207304,
0.0341757,
0.0142300045,
0.026357345,
-0.0062265527,
-0.011461003,
0.009654488,
0.07563669,
0.034738388,
0.016199403,
0.0008107105,
0.031273432,
0.021026645,
-0.008921517,
-0.020212233,
0.061717648,
0.02638696,
0.030384984,
0.01023198,
-0.03016287,
-0.017206311,
-0.007648072,
0.015844021,
0.0014372526,
-0.007796147,
0.008462485,
0.0077887434,
-0.03029614,
0.0039573037,
-0.019501474,
-0.012179166,
-0.017517269,
0.010483708,
0.041312918,
0.01568114,
0.001104084,
0.022048363,
0.057926927,
0.018642638,
-0.016140172,
0.039121408,
-0.0037499985,
0.048835125,
-0.0069039953,
0.029155962,
-0.026757147,
0.0038388437,
-0.011224083,
-0.049486656,
-0.023751225,
0.038055267,
0.027023682,
-0.033553787,
0.013104634,
-0.012682621,
-0.016614012,
-0.045222096,
-0.020315886,
-0.041105613,
-0.004334895,
0.015059224,
-0.038914103,
-0.041549835,
0.02360315,
-0.020182619,
0.03142151,
0.0066559697,
0.053099684,
0.012867715,
0.10791704,
0.0007773936,
-0.0026116723,
0.0004352016,
0.019768009,
-0.035656452,
0.008951132,
-0.00523445,
-0.01982724,
-0.018494563,
-0.044807486,
-0.04412634,
-0.005241854,
-0.004627343,
-0.0098840045,
-0.051589318,
-0.002532082,
-0.00766288,
-0.034531083,
0.005356612,
0.0979664,
0.03485685,
-0.0077887434,
-0.02680157,
0.015962481,
-0.060947657,
0.0019064653,
-0.037403736,
0.046110544,
-0.030681133,
-0.061539955,
0.009195455,
-0.039032564,
0.01532576,
-0.008788249,
0.0013271219,
-0.008810461,
0.028770966,
0.023588343,
0.04092792,
0.02040473,
-0.020286271,
-0.052625842,
0.031569585,
0.031332664,
0.0043645096,
0.09435337,
0.042793665,
-0.0012604882,
-0.014711248,
-0.00926209,
0.016599204,
-0.014385483,
-0.0031354874,
-0.012593776,
0.01112043,
-0.026994066,
-0.033820324,
0.0075555253,
0.034827232,
-0.02046396,
-0.0100987125,
-0.030192487,
0.008188546,
-0.07220136,
-0.00389067,
-0.007707302,
0.024713712,
-0.012586372,
-0.021263566,
-0.0071075987,
-0.054461975,
0.2622704,
0.056920018,
0.01733958,
0.008980747,
0.04329712,
0.04815398,
0.031184588,
-0.0011938545,
-0.026964452,
-0.02141164,
0.012801081,
-0.032428417,
0.0031576988,
0.03624875,
-0.011875613,
0.02940769,
-0.054906197,
-0.013526648,
-0.011201872,
-0.058459997,
-0.045459017,
0.035478763,
0.011446195,
0.030014796,
0.019027634,
-0.008047875,
0.014333657,
-0.034649543,
-0.0127048325,
-0.016939776,
-0.006152515,
-0.062132258,
0.003820334,
0.0037611043,
-0.014355868,
0.006559721,
-0.0064264536,
-0.031095743,
-0.037107587,
0.011001971,
0.0031651026,
-0.005971123,
0.03855872,
-0.006089583,
-0.02755675,
0.01040967,
-0.019782815,
0.0191609,
0.035626836,
-0.032991104,
0.05703848,
-0.07996048,
-0.0007135363,
-0.046406694,
-0.032694954,
-0.0076036495,
-0.053366218,
-0.053662367,
-0.019516282,
0.039595246,
0.015799599,
0.011868209,
-0.028089821,
0.0039498997,
-0.00018775443,
0.036456056,
-0.0048716664,
0.040276393,
0.009728526,
0.022670278,
0.0023988145,
-0.027038489,
-0.019501474,
-0.015503449,
0.0025080198,
0.060118437,
0.022759123,
0.043800578,
-0.03663375,
-0.036426444,
0.0029318845,
0.0011031586,
0.02697926,
-0.031806502,
0.0065856343,
0.06621913,
-0.016243825,
0.023558728,
-0.023691995,
0.039861783,
0.038262572,
0.072556734,
0.031747274,
-0.013911643,
-0.010157943
] |
from torch import nn
pt_predictions = nn.functional.softmax(pt_outputs.logits, dim=-1)
print(pt_predictions)
tensor([[0.0021, 0.0018, 0.0115, 0.2121, 0.7725],
[0.2084, 0.1826, 0.1969, 0.1755, 0.2365]], grad_fn=)
``
</pt>
<tf>
🤗 Transformers provides a simple and unified way to load pretrained instances. This means you can load an [TFAutoModel] like you would load an [AutoTokenizer]. The only difference is selecting the correct [TFAutoModel] for the task. For text (or sequence) classification, you should load [TFAutoModelForSequenceClassification`]: |
[
0.013347349,
0.012813455,
-0.01734471,
0.004014472,
0.001558902,
-0.018029189,
-0.00032555553,
-0.0036106291,
-0.034744177,
0.04219131,
-0.010506759,
0.0018480945,
0.018672599,
-0.06828367,
-0.0239294,
0.009295231,
0.009425282,
-0.054402426,
-0.03351211,
-0.027036937,
-0.027502384,
0.024504364,
-0.08854426,
-0.03926174,
0.0018138705,
-0.0027618746,
0.044354267,
-0.02030166,
0.07463564,
0.025366807,
0.007056983,
-0.014935342,
0.008583372,
0.0030664678,
-0.021081967,
-0.04490185,
0.009849659,
-0.017084606,
-0.031677708,
-0.041835383,
0.01830298,
-0.009712763,
0.018864254,
-0.0206439,
-0.05399174,
-0.0052807587,
0.008056323,
-0.013230988,
0.021711688,
-0.026188184,
-0.020342728,
0.01697509,
0.04561371,
-0.007830445,
-0.03236219,
-0.034935832,
-0.04517564,
-0.019083288,
-0.04219131,
-0.0099660205,
0.06187694,
0.040849734,
-0.030199233,
-0.058427166,
0.017057227,
0.014086586,
-0.0007157088,
-0.011382893,
-0.017043538,
-0.03233481,
-0.07200724,
-0.024148434,
-0.022231892,
-0.010499914,
-0.032772876,
0.01629061,
0.0047160634,
0.006290366,
-0.002145843,
-0.00034181192,
-0.009575867,
0.03301929,
0.04027477,
0.020397488,
-0.0001870554,
-0.08356125,
0.060781773,
-0.0045278315,
-0.024422226,
-0.06866698,
-0.042738896,
0.028748136,
-0.027762486,
0.0067968806,
0.019452905,
0.050788373,
0.00091549126,
0.052102573,
-0.0027789865,
-0.009486885,
-0.011923632,
0.05826289,
-0.0021338647,
0.057112966,
-0.014155035,
0.02361454,
0.024791846,
-0.0020791064,
-0.026585182,
-0.015455546,
-0.008733958,
0.0013501357,
0.013614296,
-0.021191483,
-0.020534383,
0.0042198156,
-0.005092527,
0.028022587,
-0.046517223,
-0.0043053757,
-0.016701298,
-0.046106536,
0.033758525,
-0.058536682,
0.016427506,
-0.08164471,
-0.0031605838,
0.020438556,
-0.01266287,
0.016208474,
0.040822353,
-0.007974185,
0.033922803,
0.04618867,
-0.015168064,
-0.009945487,
-0.0120536825,
-0.011369203,
-0.0067078983,
-0.0062082284,
-0.003222187,
0.019754076,
-0.01791967,
0.07616887,
-0.022177134,
0.0036003618,
0.025804875,
-0.04895397,
-0.009192559,
0.018864254,
-0.066312365,
0.00066009484,
-0.017495295,
-0.012060528,
-0.04503875,
-0.025216222,
0.022409856,
-0.00069132424,
-0.012827145,
0.02462757,
-0.0032906348,
-0.0143603785,
-0.023039578,
0.05035031,
0.025202533,
0.025572151,
-0.0099660205,
-0.03863202,
0.006454641,
-0.04123304,
0.00212702,
0.0058283424,
0.011451341,
0.015099617,
0.03452514,
0.019480284,
0.039891463,
-0.00915149,
0.013607451,
0.018522013,
-0.0055271713,
-0.03630479,
0.005092527,
0.019439217,
-0.0044799177,
-0.023765126,
-0.0070501384,
-0.0072760163,
-0.002965507,
0.008535459,
0.03258122,
0.036852375,
0.002799521,
0.01666023,
-0.03764637,
-0.003661965,
-0.020602832,
-0.0035148019,
-0.016085267,
0.017522674,
-0.018480945,
0.049036108,
-0.0632459,
0.0070090694,
-0.0412878,
0.03518224,
0.017796466,
0.040137876,
0.008501234,
0.026858972,
0.019863592,
0.0023494756,
-0.019507663,
0.011903098,
0.0064854426,
-0.052212093,
-0.017714327,
0.022149755,
-0.0042163935,
-0.021410517,
0.0070706727,
0.0067078983,
0.027570833,
-0.0050446135,
0.03134916,
-0.008761337,
-0.018426187,
0.04596964,
0.005335517,
0.03093847,
0.026913732,
0.008925612,
-0.0017009313,
0.054101255,
0.021259932,
0.009582712,
0.044819713,
0.028419586,
0.018070256,
-0.015168064,
0.0144698955,
-0.009178869,
0.03583934,
0.042300828,
-0.031403918,
-0.009213094,
0.0058967904,
0.0009702496,
-0.013326814,
0.01397707,
-0.059084266,
0.017892292,
0.019877283,
-0.003335126,
-0.042136554,
-0.036085755,
0.03526438,
0.034470383,
-0.002585621,
-0.008104237,
0.009418437,
0.03926174,
0.04027477,
-0.018111326,
0.041068766,
0.03928912,
0.015236512,
0.035894103,
-0.030253991,
-0.051637128,
-0.008549148,
-0.062972106,
-0.07967341,
0.022546753,
-0.026557801,
-0.019576112,
-0.009048819,
-0.040384285,
0.042382967,
-0.00054244994,
-0.039152224,
-0.014962721,
-0.034798935,
0.046161294,
0.037755884,
-0.011225463,
-0.035538174,
0.012122131,
-0.012909282,
0.018563082,
0.012101596,
-0.040493805,
-0.03296453,
-0.0070022247,
0.008939302,
0.00883663,
0.0059652384,
-0.017166745,
-0.033731148,
0.04487447,
-0.006218496,
-0.012231648,
0.009733298,
0.034415625,
-0.045203023,
0.017947052,
0.035538174,
-0.025462635,
0.020479625,
0.06428631,
0.0027806978,
0.03323832,
0.01600313,
0.042437725,
-0.019329699,
0.029104065,
0.060069915,
-0.013682744,
-0.012539663,
-0.02164324,
-0.05618207,
0.014921652,
-0.028994549,
-0.014812135,
0.010766862,
0.047037426,
-0.017823845,
-0.045066126,
-0.021944411,
-0.041725866,
-0.005859144,
-0.04254724,
-0.02365561,
0.067462295,
0.03351211,
-0.0045894347,
-0.07835921,
0.016578091,
-0.0000875385,
0.042766277,
0.013087247,
-0.02529836,
0.037153542,
0.046106536,
0.013066713,
0.0038809984,
0.04460068,
-0.057167724,
0.00102073,
-0.0107805515,
0.054019116,
0.03701665,
0.015879923,
0.015387097,
0.0057017137,
0.008754492,
-0.0022023127,
0.056948688,
0.026790526,
0.026242942,
0.009062508,
0.004366979,
0.017577432,
0.01898746,
-0.015428167,
-0.020370107,
-0.0053457846,
-0.006211651,
0.043724548,
-0.044162612,
-0.0009300364,
0.030418266,
-0.021424206,
-0.025572151,
-0.017714327,
-0.04662674,
0.028036278,
0.023833575,
0.043040067,
-0.030719437,
-0.028994549,
0.013983915,
0.0079057375,
0.047420736,
0.057331998,
0.012902438,
-0.02230034,
0.0116772195,
0.005314983,
0.005554551,
0.019233871,
0.009404748,
-0.0020756838,
0.008987215,
-0.035072725,
-0.025544772,
0.039015327,
0.01627692,
0.012259027,
0.009213094,
0.028501723,
-0.02962427,
0.026064977,
0.027488694,
0.0046236585,
-0.02365561,
-0.039042708,
0.064122036,
0.027365487,
0.019110667,
0.012957196,
-0.017878603,
0.0038193953,
0.010410932,
-0.032471705,
0.011711443,
-0.0078099105,
0.015277581,
0.016906641,
0.024203192,
-0.0052841813,
-0.0073102405,
-0.0262977,
0.007005647,
0.027680349,
-0.021040898,
0.004798201,
-0.04624343,
0.027721418,
0.022820545,
0.003696189,
-0.053060845,
-0.01229325,
-0.014880583,
-0.056127314,
0.07030973,
0.04451854,
-0.038577262,
0.021328378,
-0.036551204,
0.0014861759,
-0.011916787,
-0.023121715,
-0.057989098,
0.0008423375,
-0.022697339,
-0.019945731,
0.015154375,
0.026694698,
-0.0013681033,
0.0011088566,
-0.045668468,
0.015072237,
-0.049227763,
-0.004202704,
-0.043806683,
0.023231233,
0.014593102,
0.03687975,
0.008925612,
-0.025996529,
-0.027406557,
0.05319774,
-0.0075498084,
-0.08076857,
-0.0069063976,
0.04131518,
-0.004705796,
0.031184884,
0.00039507297,
-0.010041313,
0.0064649084,
0.024216883,
-0.019138046,
0.0114308065,
0.0034497764,
0.01233432,
-0.030117095,
-0.019247562,
0.026831593,
-0.040740214,
0.032526463,
-0.0018925857,
-0.03731782,
0.015551372,
-0.06926932,
-0.013354193,
-0.021725377,
-0.054676216,
0.024107365,
0.039480776,
-0.024148434,
-0.007871513,
-0.010383553,
-0.0047365976,
-0.007262327,
-0.033101425,
0.008514924,
0.053745326,
0.009432127,
0.055497594,
-0.050980028,
-0.014483585,
0.04336862,
-0.021615861,
0.010061848,
-0.014716308,
-0.03488107,
-0.015907302,
-0.016181095,
-0.015496614,
0.0035558706,
-0.0034822891,
0.015044858,
-0.0011884274,
-0.039152224,
-0.0051815095,
-0.05464884,
-0.017057227,
0.0445733,
-0.061165083,
-0.05486787,
-0.016386438,
0.022108685,
0.011403427,
-0.017604811,
0.058043856,
-0.040083114,
-0.047831424,
-0.06817415,
0.04857066,
-0.024901362,
0.032061018,
-0.04361503,
-0.012587577,
0.019713007,
0.018015498,
0.007974185,
-0.019945731,
0.00033411154,
-0.019918352,
-0.0050275014,
-0.023354439,
-0.04698267,
-0.025859633,
0.020767106,
-0.029679028,
0.024572812,
-0.01964456,
0.011389738,
-0.017905982,
0.003143472,
0.032389566,
0.069324076,
-0.031376537,
-0.0027533185,
0.003815973,
0.0067763464,
0.013210453,
0.028227933,
0.0008423375,
0.04421737,
-0.018275602,
0.03460728,
-0.055798765,
-0.053362016,
-0.01063681,
-0.01566089,
0.050760996,
-0.027132764,
-0.024394847,
-0.007892048,
0.023765126,
-0.029268341,
0.016386438,
-0.03351211,
-0.018220842,
-0.039809324,
-0.047174323,
0.040904492,
-0.05683917,
-0.006420417,
0.017235192,
0.017864913,
0.056401107,
-0.046407707,
0.046873152,
0.061438873,
-0.010157675,
-0.01894639,
-0.0023340748,
0.017851224,
-0.03529176,
0.009158335,
-0.042957928,
0.012252182,
-0.036441684,
0.032882392,
-0.038166575,
-0.036414307,
-0.010041313,
0.0005488669,
0.021081967,
0.014524654,
0.031020608,
0.023778815,
-0.0010746327,
-0.07479991,
0.014045518,
-0.013429486,
-0.0069303545,
0.032170534,
0.008562838,
0.0074813603,
-0.017741706,
-0.0063964603,
-0.048652798,
0.00026972766,
0.057112966,
0.013155695,
-0.043122206,
-0.0017882026,
0.028364828,
0.0035695604,
-0.06269832,
-0.0029501063,
0.004955631,
-0.040849734,
-0.004606547,
0.00087784487,
0.009760677,
-0.033265702,
0.028364828,
0.012881903,
-0.04824211,
-0.0079878755,
0.009452661,
0.0069816904,
-0.027201213,
0.007228103,
0.040055737,
-0.01313516,
0.029131444,
-0.04158897,
-0.0010943115,
-0.043478135,
0.016345369,
0.029158823,
0.018111326,
0.0061500478,
0.03594886,
-0.007659325,
0.07704501,
-0.010937981,
-0.0025685092,
-0.011738823,
-0.015496614,
-0.057879582,
-0.028885033,
0.016235853,
-0.0021150415,
0.003747525,
-0.029240962,
0.0062527196,
0.073978536,
0.057715308,
-0.001003618,
-0.09292493,
0.0306373,
-0.029076686,
-0.018070256,
-0.017070917,
0.029076686,
-0.03192412,
0.0406307,
-0.0293231,
-0.047393356,
0.014688929,
0.016112646,
-0.006926932,
-0.0014416848,
-0.04271152,
0.004914562,
-0.01213582,
-0.03564769,
-0.02228665,
-0.01963087,
0.0031212263,
0.03635955,
0.034470383,
0.014209793,
0.012594421,
-0.014853204,
0.019658249,
0.018398806,
0.008487545,
0.033429977,
-0.0036824993,
-0.005503215,
-0.017495295,
0.02763928,
0.011033809,
-0.03030875,
0.021848584,
0.007091207,
0.026461976,
-0.017125675,
0.005486103,
0.06346493,
-0.014634171,
0.029432615,
-0.015907302,
0.027584521,
-0.017892292,
-0.026229251,
-0.019425526,
-0.020739727,
-0.031869363,
0.05087051,
0.014634171,
0.06428631,
-0.0041513676,
0.021465275,
-0.019452905,
0.05952233,
0.0136279855,
0.013272056,
0.00532525,
-0.023860954,
0.033074047,
-0.015729338,
0.000013208314,
0.0017462781,
-0.04791356,
0.03463466,
0.018111326,
0.017358398,
-0.028857654,
0.039426014,
0.044628058,
0.031759847,
0.019740388,
-0.042410348,
0.0024932164,
0.014880583,
-0.009801745,
0.017454226,
-0.05968661,
-0.010219278,
0.021410517,
-0.05056934,
0.020274282,
0.0030288214,
-0.03531914,
-0.0010694991,
0.03162295,
0.025572151,
0.019110667,
0.0100207785,
0.033429977,
0.023546092,
-0.0024692595,
-0.041369937,
-0.01313516,
0.01596206,
-0.037071407,
-0.015496614,
0.045777984,
0.042054415,
0.019699318,
-0.008145305,
-0.048734937,
0.0047947783,
-0.0058557214,
0.0106505,
-0.0068003032,
0.009267852,
-0.045394678,
0.017837534,
-0.03028137,
-0.03827609,
-0.016098956,
0.030911092,
0.027570833,
-0.0018806072,
-0.02127362,
0.062041216,
-0.008378028,
-0.022081306,
0.0038741536,
0.023573471,
-0.0049008727,
-0.014552033,
0.015222822,
-0.032389566,
0.05486787,
0.041123524,
0.022245582,
-0.01331997,
0.049802724,
0.0010874667,
-0.010992739,
-0.014907962,
0.06571002,
0.043423377,
0.009336299,
0.0050651478,
-0.018590461,
-0.028392207,
-0.040466424,
0.010657345,
0.014011294,
-0.02266996,
-0.015496614,
-0.01366221,
-0.032061018,
0.0040281615,
0.0063177454,
-0.05130858,
-0.016386438,
0.028802894,
0.021670619,
0.026982179,
0.010917447,
-0.004014472,
0.047804043,
0.016085267,
0.018836875,
0.03200626,
-0.0219581,
0.058098614,
-0.031486053,
0.06121984,
0.007262327,
-0.029870683,
-0.015469235,
-0.011930477,
-0.04460068,
0.040822353,
0.011711443,
-0.019261252,
0.0069303545,
-0.014538343,
-0.004158213,
-0.03556555,
-0.00558193,
-0.045093507,
0.025914392,
0.01963087,
-0.028885033,
-0.032772876,
0.011800425,
-0.0020825288,
0.02692742,
0.021383138,
0.04022001,
0.019247562,
0.09144645,
0.036797613,
-0.012560198,
0.032772876,
0.02362823,
-0.026763147,
-0.015701959,
-0.0011439363,
-0.008446476,
-0.013573227,
-0.027803555,
-0.052732296,
0.002429902,
0.01097905,
-0.031239642,
-0.04826949,
0.02863862,
-0.015592442,
-0.02491505,
0.01163615,
0.10946195,
0.010301416,
-0.05166451,
-0.002515462,
0.018220842,
-0.048433766,
0.02429902,
-0.042081796,
0.042738896,
-0.010705259,
-0.08268511,
-0.0113076,
-0.054183394,
-0.017577432,
0.02266996,
-0.0061842715,
-0.03362163,
0.057331998,
0.03463466,
0.040493805,
-0.0060952893,
-0.008576527,
-0.035237003,
0.050405066,
0.05689393,
0.016167404,
0.086134896,
0.06647664,
-0.01767326,
-0.016550712,
0.008330115,
0.012484905,
-0.004058963,
-0.008521769,
-0.00052747695,
0.016085267,
-0.013046178,
-0.05327988,
-0.010452001,
0.01930232,
0.015592442,
-0.029514754,
-0.025736427,
-0.0036174739,
-0.05957709,
0.0049008727,
0.002197179,
0.032170534,
-0.016071577,
-0.013675899,
0.015099617,
-0.04232821,
0.21837632,
0.058043856,
0.043834064,
0.009856503,
0.016550712,
0.037180923,
0.003781749,
-0.01767326,
0.0027036937,
-0.007960496,
-0.014045518,
-0.019452905,
0.0057017137,
0.019713007,
-0.020849243,
0.039836705,
-0.068721734,
-0.00963747,
-0.031787224,
-0.01797443,
-0.052787054,
0.028775515,
0.0003638436,
0.035757206,
0.015510304,
0.013593761,
0.0126218,
-0.0299802,
-0.003887843,
-0.02362823,
0.040165253,
-0.028830273,
0.019849904,
-0.02225927,
-0.016810816,
0.028830273,
0.018672599,
-0.057167724,
-0.009863349,
0.010664189,
0.018412497,
-0.015647199,
0.038659398,
-0.017604811,
-0.017166745,
0.011779891,
-0.022026548,
0.024545433,
0.047338597,
-0.087394334,
0.04701005,
-0.04961107,
0.026037598,
-0.03687975,
-0.038522504,
-0.01266287,
-0.09407485,
-0.047448114,
0.0047947783,
0.02995282,
-0.024778156,
0.016482266,
-0.0066291834,
-0.001524678,
-0.01247806,
0.01200577,
-0.012087907,
0.035894103,
-0.004866649,
-0.01233432,
0.026941111,
0.0034429315,
-0.013826485,
-0.009924952,
-0.007898892,
0.07764735,
-0.0055648177,
0.053772703,
0.0046133916,
-0.052704915,
0.0027721417,
-0.036140513,
0.011403427,
-0.05056934,
-0.0054929475,
0.06379348,
-0.0030048648,
0.019904662,
-0.026735768,
0.00328379,
0.047146942,
0.040137876,
0.019890973,
-0.0013201897,
-0.0077140834
] | from transformers import TFAutoModelForSequenceClassification
model_name = "nlptown/bert-base-multilingual-uncased-sentiment"
tf_model = TFAutoModelForSequenceClassification.from_pretrained(model_name)
See the task summary for tasks supported by an [AutoModel] class.
Now pass your preprocessed batch of inputs directly to the model. You can pass the tensors as-is:
tf_outputs = tf_model(tf_batch) |
[
0.029736195,
0.025796901,
-0.017713143,
0.021748183,
-0.026549198,
-0.03200676,
-0.004958312,
0.020558188,
-0.022021746,
0.055204824,
0.0063261227,
0.020270947,
0.004879663,
-0.05326253,
-0.04946002,
0.019737503,
0.0154289,
-0.030009758,
-0.01925877,
-0.0158666,
0.017973026,
0.010470588,
-0.08392884,
-0.057010334,
-0.009773005,
-0.029024934,
0.021378875,
-0.05293426,
0.06642087,
0.045931067,
-0.0058371304,
-0.008952319,
0.007057901,
-0.021242093,
-0.028204247,
-0.0049138586,
0.027192067,
-0.03148699,
-0.021255773,
-0.037943058,
0.052961614,
0.008815537,
-0.023895646,
-0.018219233,
-0.06242686,
-0.020175202,
-0.019805893,
-0.0058576474,
0.025044607,
-0.027985398,
-0.021666115,
0.024771044,
0.024688976,
-0.008425712,
-0.044289697,
-0.013178852,
-0.018137164,
-0.02221324,
-0.018219233,
0.012542821,
0.06538133,
0.0127548305,
-0.0017183117,
-0.041225802,
0.033483997,
0.019600721,
-0.00045436947,
0.00302799,
-0.02256887,
0.009143812,
-0.045821644,
-0.0321709,
-0.041690856,
-0.002501383,
-0.024059782,
0.030009758,
-0.01895785,
0.010313289,
-0.032088827,
0.008624043,
-0.003720444,
0.012939485,
0.046724398,
-0.007946977,
-0.004571906,
-0.030912513,
0.023321165,
-0.0024774463,
-0.006062819,
-0.063302256,
-0.03725915,
0.024415413,
-0.0025253198,
0.031404924,
0.04007684,
0.061989162,
0.0036315364,
0.03750536,
0.013520804,
-0.02198071,
0.012002535,
0.08102908,
0.020161523,
0.028778728,
-0.017507972,
0.009998693,
0.029654127,
-0.010621047,
-0.0092737535,
-0.012214546,
-0.0046163597,
-0.001969647,
0.012406039,
0.0059875892,
-0.023923002,
0.019477619,
0.010785184,
-0.0032639373,
-0.018219233,
0.0006317574,
-0.0053242017,
-0.0122692585,
0.011434894,
-0.034140546,
0.0066441386,
-0.07599554,
-0.0070100278,
0.016017059,
-0.025126675,
-0.01975118,
-0.00562512,
-0.009827717,
0.014293618,
0.05837814,
-0.007899105,
0.0032844543,
-0.011120298,
0.008965996,
-0.00468475,
-0.013103622,
0.03756007,
-0.0052592307,
-0.013308794,
0.075503126,
-0.02927114,
0.0072083604,
0.02371783,
-0.032526527,
-0.00045949875,
0.017644752,
-0.0678981,
0.000573198,
-0.050773118,
-0.007871748,
-0.013295116,
-0.008234218,
0.017849924,
0.024182886,
-0.0028518843,
0.029079646,
0.022938179,
-0.02962677,
-0.025208743,
0.036438465,
0.047709223,
0.03884581,
-0.019805893,
-0.023608405,
0.0072630728,
-0.05219564,
0.012426556,
-0.0067945975,
0.016810387,
-0.011817881,
0.057776306,
0.04822899,
0.038544893,
-0.025783224,
0.009848234,
0.01247443,
-0.031623773,
-0.013787528,
0.03236239,
0.023663118,
0.01780889,
-0.01802774,
-0.010224381,
0.01882107,
0.010552656,
0.008856571,
0.042730395,
0.033894338,
-0.015114304,
0.016605217,
-0.056080222,
0.0062098587,
-0.018109808,
0.018273946,
-0.027451953,
0.011619548,
0.0040897527,
0.023444269,
-0.043715216,
0.023252774,
-0.05947239,
0.0647795,
0.02198071,
0.057885733,
-0.011475928,
0.026863793,
0.016892457,
-0.011236561,
-0.031678487,
-0.039912704,
0.014662926,
-0.021173703,
-0.030994581,
0.020681292,
0.0019234832,
-0.026631266,
0.021871286,
-0.013937986,
0.008500941,
-0.01276167,
0.020270947,
-0.012747992,
-0.0042436314,
0.021036923,
-0.0025851615,
0.0063705766,
0.020353017,
0.026836438,
-0.013096783,
0.050417487,
0.017945671,
0.0049993466,
0.04579429,
0.018711645,
0.018875781,
0.011058746,
0.0122692585,
-0.011537479,
0.011291274,
0.047326237,
-0.025044607,
0.0025971297,
-0.011619548,
0.008015368,
-0.030009758,
0.012529142,
-0.061606176,
0.032252967,
-0.023594728,
0.008357321,
-0.041034307,
-0.05293426,
0.04880347,
0.0044522225,
-0.019368194,
0.0036212776,
-0.005963653,
0.046587616,
0.019559687,
-0.021296807,
0.030502168,
0.034632955,
0.02176186,
0.014320973,
-0.02176186,
-0.039037306,
-0.010443231,
-0.04765451,
-0.045958426,
-0.0071126134,
-0.02235002,
0.004801014,
0.007563991,
-0.023964036,
-0.0040247818,
-0.036876164,
-0.047545087,
-0.034632955,
-0.038380757,
0.055970795,
0.04765451,
-0.03750536,
-0.047627155,
0.011277596,
-0.015278441,
0.0341679,
0.015579359,
-0.034906518,
-0.008405194,
-0.019559687,
0.01853383,
-0.017357511,
0.026316669,
-0.0052079377,
-0.038326044,
0.016331654,
0.011017712,
0.0078033577,
0.00850778,
0.034906518,
-0.05225035,
0.026316669,
0.025427593,
-0.022691973,
0.0032981324,
0.0639041,
-0.02003842,
0.04418027,
0.004845468,
0.014471433,
-0.020612901,
0.027862296,
0.058651704,
-0.033292502,
-0.011940984,
-0.024552194,
-0.067733966,
0.005307104,
-0.011722134,
-0.03676674,
0.006609943,
0.047900714,
-0.037943058,
-0.060347788,
-0.01521005,
-0.05826872,
-0.007174165,
-0.0214883,
-0.018793713,
0.082506314,
0.028559878,
-0.0062337955,
-0.0762691,
0.02226795,
-0.0043120217,
0.022131171,
0.027260458,
-0.01521005,
0.04043247,
0.015114304,
-0.017713143,
0.00070997904,
0.061770312,
-0.050526913,
0.00065398426,
0.0010250028,
0.0370403,
0.020284627,
-0.0036281168,
0.0154289,
-0.0047189454,
0.0158666,
-0.002804011,
0.05255127,
0.017316477,
0.020353017,
0.0065141963,
-0.0016747128,
0.018670611,
0.065709606,
-0.023690473,
-0.021720827,
-0.011140815,
0.013130979,
0.05837814,
-0.041116375,
0.0019525492,
0.015675105,
-0.023403233,
-0.027000574,
-0.016618894,
-0.019053597,
0.005077996,
-0.0005667864,
0.07074315,
-0.037341222,
-0.019696468,
0.019272447,
0.011161332,
0.01853383,
0.036903523,
0.014334652,
0.0154972905,
0.019874284,
0.0036452145,
0.02170715,
-0.0006676624,
-0.01708395,
-0.024620585,
-0.01608545,
-0.04822899,
-0.043715216,
0.047134742,
0.026822759,
0.002032908,
-0.02270565,
0.013418219,
-0.030228607,
0.015661428,
0.04108902,
0.015018557,
-0.027260458,
-0.033894338,
0.062481575,
-0.0051087714,
0.012953163,
0.018219233,
0.0039187763,
0.023444269,
-0.0013703749,
-0.00040329032,
-0.016687285,
-0.015976025,
0.047736578,
-0.022240596,
0.032745376,
-0.00066851726,
-0.02206278,
-0.023581048,
0.026809081,
0.020927496,
-0.020216236,
0.00040713727,
-0.04981565,
0.033976406,
0.019053597,
-0.01521005,
-0.07648795,
-0.053864367,
-0.016331654,
-0.07643324,
0.02235002,
0.061606176,
-0.09279225,
0.018684288,
-0.0011438313,
0.013589195,
-0.021160025,
-0.037341222,
-0.0449736,
-0.007864909,
-0.003857225,
-0.013596034,
0.025277134,
0.022582548,
-0.00044753042,
0.024552194,
-0.036930878,
0.015729818,
-0.04620463,
-0.0070100278,
-0.034058474,
-0.004052138,
-0.009581511,
0.014608214,
0.008630883,
-0.0158666,
-0.0076597375,
0.052414488,
-0.01492281,
-0.041690856,
0.001377214,
0.047052674,
0.0053173625,
0.041718215,
-0.005847389,
-0.017576363,
0.0019457102,
0.012221385,
-0.0445359,
0.021255773,
0.030666307,
0.0056490563,
-0.032198254,
-0.030474814,
0.02328013,
-0.034441464,
0.043222804,
0.008377838,
-0.012139316,
-0.0023765704,
-0.06286456,
-0.0014362008,
0.013199369,
-0.041991774,
0.02271933,
0.04500096,
-0.048420485,
-0.009143812,
-0.017658431,
0.0043427977,
-0.004486418,
-0.0073793363,
0.011421216,
0.05695562,
0.0085146185,
0.01635901,
-0.009677257,
-0.056189645,
0.041061666,
-0.025413916,
-0.012043569,
-0.009930302,
-0.05110139,
-0.03214354,
-0.013384024,
-0.063739955,
0.0017148921,
-0.015346832,
-0.0071194526,
0.008097437,
-0.060785487,
0.024771044,
-0.022254273,
-0.013616552,
0.059581816,
-0.045383945,
-0.044371765,
-0.019915318,
0.016235908,
-0.012884772,
-0.015989702,
0.040268335,
-0.05536896,
-0.04196442,
-0.054821834,
0.04809221,
-0.047982786,
0.006151727,
-0.044672683,
-0.05493126,
-0.011988857,
0.013301955,
0.023444269,
-0.022008067,
-0.0022500479,
-0.02617989,
0.029872976,
-0.024319667,
-0.033894338,
-0.032964226,
-0.002479156,
-0.045958426,
0.03192469,
-0.024237597,
0.005737964,
0.0036588926,
0.023745187,
0.017726822,
0.054985974,
-0.027438274,
-0.0004885647,
-0.0018020901,
-0.015565681,
-0.008193184,
0.030310676,
0.003323779,
0.046149917,
-0.018068774,
0.055669878,
-0.05695562,
-0.02869666,
-0.017166018,
-0.0035426286,
0.049268525,
-0.034085833,
-0.0016866811,
-0.0031151879,
0.0070100278,
-0.01946394,
0.03359342,
-0.02444277,
-0.02170715,
-0.03805248,
-0.0524692,
0.034003764,
-0.033620775,
0.015948668,
-0.0057789986,
-0.0072493944,
0.04902232,
-0.054520916,
0.067788675,
0.057885733,
-0.01860222,
-0.0077760015,
0.0027304913,
-0.015825564,
-0.0017319898,
0.013472931,
0.005105352,
0.019272447,
-0.011653744,
0.0125017855,
-0.039693855,
-0.023704153,
-0.008254735,
0.0002876676,
0.0017576362,
0.030283319,
0.024552194,
0.0027014252,
-0.018971529,
-0.075940825,
-0.0036896681,
-0.012187189,
0.009937142,
0.02025727,
0.03728651,
0.006032043,
-0.00353237,
-0.010374841,
-0.051785298,
-0.0130078755,
0.05523218,
0.017945671,
-0.05528689,
0.04073339,
0.04634141,
0.009239558,
-0.048858184,
0.012946324,
-0.0071262917,
-0.037095014,
-0.01607177,
0.001513995,
-0.009000191,
-0.039037306,
0.0147176385,
0.027151033,
-0.075940825,
0.017248087,
-0.015989702,
-0.027137356,
-0.06560018,
-0.00367599,
0.039475005,
-0.0070989355,
0.02574219,
-0.061989162,
0.0028313673,
-0.044453833,
0.017507972,
0.009082261,
0.006647558,
-0.014115802,
0.050089214,
0.009991854,
0.067788675,
0.009677257,
0.036329042,
-0.021146348,
-0.035125367,
-0.07156383,
-0.022322664,
0.0020243593,
0.0025184806,
0.02133784,
-0.011195527,
0.0052250354,
0.048721403,
0.058706418,
-0.009027548,
-0.08841526,
0.032882158,
-0.01412948,
-0.02364944,
-0.020065777,
0.02328013,
-0.02797172,
0.053672876,
-0.024470126,
-0.05271541,
0.0059568137,
0.020558188,
0.025277134,
-0.0068014367,
-0.035699848,
-0.013411379,
-0.010990355,
-0.007940139,
-0.031322856,
0.00649026,
0.003720444,
0.02940792,
0.03280009,
0.018260267,
0.021816574,
0.010149152,
0.0057687396,
-0.008247896,
0.0214883,
0.0134934485,
-0.008863411,
-0.013404541,
-0.05985538,
0.026193567,
0.017166018,
-0.031186074,
0.016454758,
-0.029955044,
0.02494886,
-0.026371382,
0.02545495,
0.064560644,
0.0053173625,
0.013110462,
-0.002342375,
-0.0038538054,
-0.016892457,
-0.017863601,
-0.011140815,
-0.031322856,
-0.005303684,
0.029736195,
0.013876435,
0.038681675,
0.007988012,
0.030502168,
-0.015456256,
0.039338224,
0.0064355475,
-0.0032912935,
-0.0065996847,
-0.0028364966,
0.026261957,
-0.036958233,
0.013760171,
0.0033853303,
-0.040706035,
0.040979594,
0.0032023857,
0.0072493944,
-0.026152533,
0.035508353,
0.029325852,
0.02552334,
0.00050480745,
-0.016605217,
-0.012925807,
0.005351558,
0.004606101,
0.016372688,
-0.07533899,
-0.015510969,
0.020777037,
-0.040842816,
-0.012146155,
0.039447647,
-0.0057995156,
0.013924308,
0.031623773,
0.00036610296,
0.005826872,
0.0366026,
0.028751371,
0.043140735,
-0.035508353,
-0.05060898,
-0.004937795,
0.035809275,
-0.035508353,
-0.060566638,
0.02602943,
0.030556882,
0.040788103,
-0.018041417,
-0.04138994,
-0.011934144,
0.02133784,
-0.0030758635,
-0.020175202,
0.0045240326,
-0.02847781,
0.031651128,
-0.009766165,
-0.013083105,
-0.03994006,
0.026549198,
0.02913436,
-0.016974526,
-0.011852076,
0.02891551,
0.015182694,
-0.06549075,
0.008692434,
0.01463557,
0.015593037,
0.005214777,
0.027369883,
-0.0051121907,
0.03178791,
0.049569443,
0.02221324,
0.01060053,
0.023799898,
0.010203864,
-0.011209205,
-0.030994581,
0.054602984,
0.03887317,
-0.019409228,
0.0039187763,
-0.019600721,
-0.008658239,
-0.060347788,
-0.006049141,
-0.014662926,
-0.013035232,
-0.015620394,
-0.008883928,
-0.02566012,
0.0066338796,
-0.011852076,
-0.021077957,
-0.0033562644,
0.013534483,
0.013814883,
0.008480424,
-0.009902947,
-0.006049141,
0.04330487,
0.016495792,
-0.0013353248,
0.017795213,
-0.011660582,
0.056900907,
0.00027249346,
0.06932063,
-0.012317131,
-0.011988857,
-0.007810197,
-0.012358166,
0.0053754942,
0.01824659,
0.012583855,
-0.03014654,
-0.006575748,
-0.0073588192,
0.019723823,
-0.022678295,
0.0139585035,
-0.039174087,
0.024319667,
0.04007684,
-0.009212202,
-0.00006892481,
0.0019576785,
0.03143228,
0.034906518,
0.026973218,
0.05739332,
0.02646713,
0.11434894,
0.07867645,
-0.009978176,
0.014307296,
0.031815268,
-0.015552003,
-0.007563991,
-0.005761901,
-0.017111307,
0.008097437,
-0.050526913,
-0.035344217,
0.012303454,
0.010149152,
-0.00699293,
-0.020804394,
0.018739,
-0.0080495635,
-0.026850116,
-0.008275252,
0.109753095,
0.017480616,
-0.020749683,
-0.0014584278,
0.024825757,
-0.024305988,
0.0308578,
-0.054602984,
0.046915893,
-0.010990355,
-0.066202015,
-0.0051498055,
-0.046751756,
-0.008459906,
0.0002530449,
-0.013178852,
-0.03107665,
0.054903906,
0.042620968,
0.0604025,
0.0026586812,
-0.019299803,
-0.03301894,
0.047490373,
0.04888554,
0.0061893417,
0.056408495,
0.054685056,
-0.016687285,
-0.0014507337,
0.021584047,
0.029353209,
-0.025892649,
0.0018482537,
0.020421408,
0.016837744,
-0.026070464,
-0.05235978,
-0.02328013,
0.012816383,
0.004448803,
-0.00045522436,
-0.024497481,
-0.004787336,
-0.09054904,
-0.011482767,
-0.0026980059,
0.042566255,
0.008658239,
-0.026056785,
-0.0029014675,
-0.044098202,
0.21764597,
0.055615164,
0.04144465,
-0.0125223035,
0.050499555,
0.056408495,
0.0042436314,
0.0013301955,
0.0053242017,
-0.014416721,
0.01831498,
-0.0016755676,
0.0054985974,
0.0256738,
-0.010894609,
0.02918907,
-0.078457594,
-0.016276943,
-0.0040487186,
-0.040623967,
-0.03684881,
0.03575456,
-0.0054609827,
0.028669303,
0.0056490563,
0.05897998,
0.025386559,
-0.037122373,
0.009807199,
-0.025249777,
0.043140735,
-0.028040111,
-0.018766357,
-0.018971529,
-0.00039089454,
0.046751756,
0.017248087,
-0.03627433,
-0.0008382112,
-0.020284627,
0.036712028,
-0.0024176047,
-0.010155992,
-0.027096322,
-0.02581058,
0.036712028,
-0.010682599,
0.04505567,
0.03813455,
-0.07003189,
0.014006377,
-0.049624156,
0.026439773,
-0.026754368,
-0.0670227,
-0.011578514,
-0.052086215,
-0.034085833,
-0.0036896681,
0.05022599,
-0.021255773,
0.015127982,
-0.01600338,
0.024046104,
-0.0070920964,
0.00033105284,
-0.019792214,
-0.009745648,
-0.021570368,
0.018629575,
0.013301955,
-0.0028535943,
-0.024634263,
-0.035563067,
0.010217543,
0.06549075,
-0.006278249,
0.03553571,
-0.0015336573,
-0.06560018,
0.006172244,
-0.010347485,
0.023663118,
-0.064068235,
-0.025701156,
0.057995155,
0.007591347,
0.026412416,
-0.021228416,
0.018492796,
0.028833441,
0.028149536,
0.0005561004,
0.039584428,
-0.028176893
] | See the task summary for tasks supported by an [AutoModel] class.
Now pass your preprocessed batch of inputs directly to the model. You can pass the tensors as-is:
tf_outputs = tf_model(tf_batch)
The model outputs the final activations in the logits attribute. Apply the softmax function to the logits to retrieve the probabilities:
import tensorflow as tf
tf_predictions = tf.nn.softmax(tf_outputs.logits, axis=-1)
tf_predictions # doctest: +IGNORE_RESULT |
[
0.011261038,
-0.00413437,
-0.0076300125,
-0.00912269,
0.006401157,
0.0014874706,
-0.0016028928,
-0.0065781954,
-0.019231241,
0.04721027,
-0.0139339715,
-0.012989766,
0.0025410233,
-0.06870483,
-0.02304972,
0.016523594,
0.005189658,
-0.05254225,
-0.047515746,
-0.008435364,
-0.028492786,
0.014079768,
-0.07753592,
-0.025701825,
-0.01170537,
0.006887145,
0.04801562,
-0.008206256,
0.08797772,
0.038462482,
0.0055784485,
-0.016398625,
0.01692627,
0.0221194,
-0.024993671,
-0.06287297,
0.0016219851,
-0.01527391,
-0.04693256,
-0.040045414,
0.0150934,
-0.006546953,
0.014079768,
-0.006199819,
-0.057429902,
-0.008483963,
0.015940407,
-0.0049501355,
0.029631386,
-0.017120665,
-0.009171288,
0.01656525,
0.037629362,
0.0071440246,
-0.020855831,
-0.014051997,
-0.037629362,
-0.0126981735,
-0.053791936,
-0.0077410955,
0.05992927,
0.05595805,
-0.024271632,
-0.05998481,
0.008428422,
0.009372626,
0.0021626467,
-0.025160296,
-0.009060206,
-0.04990403,
-0.06937132,
-0.010740336,
-0.0012305912,
-0.012267727,
-0.041045163,
0.0045891157,
0.013850659,
0.021439016,
0.0114554325,
0.033269353,
-0.0045439885,
0.03907344,
0.043350134,
0.026368324,
-0.020689206,
-0.07398127,
0.056763403,
-0.012101103,
-0.03907344,
-0.057041112,
-0.031408712,
0.0360742,
-0.027298642,
0.025910106,
0.039406687,
0.05770761,
-0.013572952,
0.03318604,
0.0022529017,
-0.00377335,
-0.005099403,
0.06814941,
-0.017092895,
0.053458687,
-0.033269353,
0.0128925685,
0.032880563,
-0.0012427409,
-0.037379425,
-0.0025826793,
-0.02584068,
0.0135104675,
0.013503525,
-0.033408206,
-0.026659915,
0.02571571,
-0.0017929488,
0.030103488,
-0.04851549,
-0.000004817167,
-0.00726205,
-0.033991393,
0.029575845,
-0.055735886,
0.023591248,
-0.078480124,
-0.028284505,
0.020355957,
-0.014072825,
0.009136575,
0.050737154,
-0.0023657205,
0.033019416,
0.034491267,
0.0017374073,
-0.009101862,
-0.011469318,
-0.0024698607,
0.031047694,
-0.006029723,
0.014024227,
0.034269102,
-0.021411246,
0.0812572,
-0.004977906,
-0.00086132705,
0.023216344,
-0.03979548,
-0.016107032,
0.02406335,
-0.06881591,
0.00819237,
-0.020536467,
-0.004137841,
-0.03168642,
-0.025812909,
0.025521316,
-0.0033099258,
-0.0077896942,
0.00894218,
-0.020633664,
-0.013142506,
-0.03679624,
0.03874019,
0.024354944,
0.024799276,
-0.010073838,
-0.044599816,
0.006199819,
-0.050598297,
0.00049032725,
-0.0069774,
0.0047973963,
0.00540141,
0.025923992,
0.014607413,
0.05248671,
-0.02586845,
0.008546447,
-0.0046793707,
-0.0061338637,
-0.034602348,
0.010365431,
0.017440028,
0.0032370277,
-0.016495824,
-0.012267727,
0.012135816,
-0.016606906,
0.002981884,
0.057429902,
0.042100452,
0.012406581,
0.027965141,
-0.030464508,
-0.0009086241,
-0.025104754,
0.008629759,
-0.031019922,
0.017092895,
-0.023952268,
0.04509969,
-0.0354077,
0.016995696,
-0.04801562,
0.007616127,
0.015176713,
0.025854565,
-0.012476007,
0.021480672,
0.032991648,
0.0064740553,
-0.02005048,
0.0102126915,
0.013343844,
-0.049709637,
-0.033324894,
0.015621045,
0.0062032905,
-0.019814428,
0.012989766,
0.0037768215,
0.031714194,
-0.027034821,
0.030325655,
0.003351582,
-0.027576352,
0.05187575,
-0.0062623033,
0.04235039,
0.031436484,
0.006633737,
-0.010407087,
0.052903272,
0.01560716,
0.029131513,
0.043683384,
0.03349152,
0.012295498,
-0.020522581,
0.021800036,
0.008025746,
0.04285026,
0.042544782,
-0.032158524,
-0.002664256,
0.012177472,
0.009816959,
-0.006526125,
0.035574324,
-0.05584697,
0.028215079,
0.01653748,
-0.0039191465,
-0.03915675,
-0.03576872,
0.047487974,
0.0383514,
-0.00025991682,
-0.0018259266,
0.00883804,
0.037768215,
0.044155486,
-0.012420466,
0.03621305,
0.03201967,
0.033547062,
0.043488987,
-0.03504668,
-0.05518047,
-0.016579134,
-0.06215093,
-0.08081287,
0.027409727,
-0.035157762,
-0.018911878,
-0.02173061,
-0.047821224,
0.031908587,
-0.012837027,
-0.02811788,
-0.028465014,
-0.02739584,
0.031519797,
0.027770746,
-0.018884107,
-0.046404917,
0.020689206,
0.0042766947,
0.010191863,
0.0061546913,
-0.020980798,
-0.015940407,
-0.01659302,
0.00022053877,
0.00826874,
0.00847702,
-0.011254095,
-0.03979548,
0.0476546,
-0.014357476,
0.004561345,
0.018536974,
0.027687434,
-0.034130245,
0.019550605,
0.040406436,
-0.028881576,
0.03013126,
0.059484936,
-0.0060609654,
0.010448744,
0.030686675,
0.033213813,
-0.02604896,
0.022036087,
0.039601084,
-0.01524614,
-0.022286024,
-0.029992405,
-0.05776315,
0.014218622,
-0.039628856,
-0.0031919002,
0.016898498,
0.057263277,
-0.009351798,
-0.048543263,
-0.005189658,
-0.03232515,
0.002563587,
-0.03568541,
-0.019453408,
0.0646503,
0.044099946,
-0.008386766,
-0.06137335,
0.015315566,
0.003419273,
0.044155486,
0.0038601337,
-0.01752334,
0.026923738,
0.0528755,
0.016134804,
-0.0023188572,
0.03357483,
-0.0610401,
-0.005908226,
-0.008136828,
0.033935852,
0.029992405,
0.030936612,
0.025063097,
-0.002431676,
0.013149448,
-0.0036414391,
0.036296364,
0.033991393,
0.023882842,
-0.0019370095,
0.01989774,
-0.008643645,
0.023910612,
-0.010150207,
-0.02907597,
-0.014676839,
0.0012939431,
0.03576872,
-0.050931547,
0.00540141,
0.033547062,
-0.023494052,
0.004845995,
-0.011587344,
-0.048987597,
0.030797757,
0.024021694,
0.051209256,
-0.031714194,
-0.026132273,
-0.0016211172,
-0.00498832,
0.03910121,
0.053292062,
0.015676586,
-0.011691484,
0.0016254565,
0.00049510034,
0.00568606,
0.011969191,
0.011337407,
0.011358235,
0.001982137,
-0.03163088,
-0.032991648,
0.030686675,
-0.0031207376,
0.005460423,
0.011906708,
0.025535202,
-0.04018427,
0.01635697,
0.031964127,
0.010268234,
-0.008345109,
-0.020092135,
0.05506939,
0.020772519,
0.013371614,
-0.0017773277,
-0.011823395,
-0.0010596275,
0.017662194,
-0.036240824,
0.006706635,
-0.008692243,
0.017051239,
0.013170276,
0.016579134,
-0.011990019,
-0.014426903,
-0.03832363,
0.013802061,
0.021119652,
-0.032186296,
0.012524607,
-0.029103741,
0.027048707,
0.011948364,
0.0020203218,
-0.054958306,
-0.0038045922,
-0.003922618,
-0.06287297,
0.06881591,
0.05051499,
-0.04990403,
0.033824768,
-0.06298405,
-0.0032682696,
-0.00049857167,
-0.006605966,
-0.03213075,
0.022952521,
-0.008699186,
4.6781773e-7,
0.0145241,
0.011358235,
0.004228096,
0.011156897,
-0.05965156,
0.013114735,
-0.054430664,
0.0011741818,
-0.043683384,
0.027020935,
-0.005856156,
0.03949,
0.014065883,
-0.03090884,
-0.02977024,
0.033713687,
-0.0096017355,
-0.08314561,
0.0023084432,
0.042655867,
-0.03424133,
0.03226961,
-0.005279913,
-0.019397866,
0.027770746,
0.011004158,
-0.014010341,
-0.0012488157,
0.0066684503,
0.009539251,
-0.0062657744,
0.010018297,
0.03643522,
-0.038184777,
0.034269102,
-0.008581161,
-0.0626508,
0.0039712167,
-0.08597823,
-0.020564238,
-0.015440535,
-0.053736392,
0.0046481285,
0.050931547,
-0.016051492,
0.008386766,
-0.0120872175,
0.004974435,
-0.03163088,
-0.028992658,
-0.006088736,
0.03226961,
0.020953028,
0.0730926,
-0.051931296,
-0.0065295966,
0.037573818,
-0.005602748,
0.0063629723,
-0.02178615,
-0.02139736,
-0.0010370638,
0.0036900379,
-0.008615874,
0.013336901,
-0.012344097,
0.015621045,
0.0014076297,
-0.033741456,
-0.012607919,
-0.047960076,
-0.0065191826,
0.03949,
-0.05656901,
-0.07048215,
-0.032602854,
0.020119905,
-0.0070155845,
-0.008671415,
0.049820717,
-0.036351908,
-0.052042376,
-0.06703858,
0.04648823,
-0.034269102,
0.026326668,
-0.037879296,
-0.023063604,
0.010101609,
0.026548833,
0.015398879,
-0.026285011,
0.0060401373,
-0.01842589,
0.007616127,
-0.042683635,
-0.041489493,
-0.014690724,
0.021772265,
-0.0261045,
-0.00095548725,
-0.015732128,
0.011670656,
-0.024743734,
0.00552985,
0.041545037,
0.048626576,
-0.04321128,
-0.017203977,
0.0015924787,
0.003514735,
0.008254854,
0.037101716,
-0.0108305905,
0.05057053,
-0.0051514735,
0.017564997,
-0.047904536,
-0.04323905,
-0.027020935,
-0.017079009,
0.059484936,
-0.0057381303,
-0.027798517,
-0.018925764,
0.028798264,
-0.029964635,
0.01051817,
-0.04318351,
-0.0023448924,
-0.032158524,
-0.040739685,
0.035241075,
-0.03682401,
0.0028881575,
0.018814681,
0.017148435,
0.053125437,
-0.04390555,
0.03990656,
0.058651816,
-0.008379823,
-0.007956319,
-0.01659302,
0.0001801844,
-0.030936612,
-0.006560839,
-0.038962357,
0.03285279,
-0.03971217,
0.03279725,
-0.036324136,
-0.059707105,
-0.0031797504,
-0.00069166516,
0.031436484,
0.029992405,
0.028659409,
0.016884614,
-0.026646031,
-0.06914916,
0.004054529,
-0.012746773,
-0.005807557,
0.035935346,
0.006973929,
0.021550098,
-0.007886892,
-0.018745253,
-0.026673801,
0.007532815,
0.046627082,
0.0062380037,
-0.03468566,
-0.011566516,
0.012455179,
-0.0042523956,
-0.05320875,
0.013350786,
0.0027493038,
-0.036768466,
0.0061824624,
0.0035650695,
0.015329451,
-0.027951255,
0.024688194,
0.0074703307,
-0.042100452,
-0.017953787,
-0.006109564,
-0.0055194357,
-0.033741456,
0.027243102,
0.046460457,
-0.00915046,
0.024202205,
-0.031853046,
-0.005390996,
-0.02271647,
0.009310142,
0.041461725,
0.019036846,
0.030964382,
0.020619778,
0.0095947925,
0.074147895,
-0.015621045,
-0.019939395,
-0.0027163262,
-0.003752522,
-0.05965156,
-0.011566516,
0.022188826,
-0.005863099,
0.0050959317,
-0.021855578,
0.0018311335,
0.07114865,
0.0447109,
0.0029975048,
-0.090254925,
0.03951777,
-0.015204484,
-0.014163081,
-0.014690724,
0.014774037,
-0.035213307,
0.029298136,
-0.019758886,
-0.042239305,
0.01005301,
0.03543547,
-0.04351676,
0.00007989514,
-0.0517369,
0.004550931,
-0.023160802,
-0.039934333,
-0.041656118,
-0.02418832,
0.017731622,
0.038462482,
0.022633158,
0.010330717,
0.018717483,
-0.013545182,
0.022730356,
0.019078502,
-0.0018623756,
0.014114481,
0.007241222,
-0.012857855,
-0.022855325,
0.043683384,
0.015162827,
-0.02793737,
0.004408606,
0.008122943,
0.037962608,
-0.025174182,
-0.012385753,
0.057485443,
-0.03799038,
0.03049228,
-0.00894218,
0.010719508,
-0.02403558,
-0.022494305,
0.0010127644,
-0.033741456,
-0.016717989,
0.03490783,
0.019786656,
0.078369044,
-0.0075467,
0.035990886,
-0.014829578,
0.052014608,
0.016079262,
0.021022454,
0.004033701,
-0.036740698,
0.016898498,
-0.0049709636,
0.0150934,
0.019259011,
-0.034130245,
0.030020176,
0.017787162,
-0.0016410776,
-0.04840441,
0.026590489,
0.021202965,
0.03910121,
0.024660422,
-0.0494597,
0.012302441,
-0.0004000723,
-0.007602242,
0.008963008,
-0.05920723,
-0.036185283,
0.012635689,
-0.054180726,
0.009268487,
-0.0075397575,
-0.028103994,
-0.0064879404,
0.03682401,
0.024743734,
0.0147601515,
0.01473238,
0.025465773,
0.000671271,
0.020966914,
-0.045849502,
-0.009525366,
0.01144849,
-0.03574095,
-0.016107032,
0.029659156,
0.03865688,
0.015676586,
-0.0035685408,
-0.051181484,
-0.0058283852,
-0.01248295,
0.022522075,
-0.019245127,
0.025021441,
-0.037046175,
0.020453155,
-0.042267077,
-0.022980291,
-0.022077743,
0.03693509,
0.034768973,
-0.0116637135,
-0.009914156,
0.04851549,
-0.0014319291,
-0.0074981013,
-0.008844983,
0.038212545,
0.0020394141,
-0.016009836,
0.009442054,
-0.031853046,
0.051181484,
0.050015114,
0.020883601,
-0.016065376,
0.041794974,
0.008129885,
-0.0150934,
-0.011490146,
0.053958558,
0.042378157,
0.013781233,
0.010316832,
-0.009657277,
-0.031436484,
-0.019078502,
-0.009761417,
0.026895968,
-0.026160043,
-0.015301681,
-0.004550931,
-0.045321856,
0.011254095,
0.019189585,
-0.05848519,
-0.016245887,
0.030020176,
0.022758126,
0.018800795,
0.0015056952,
-0.024715964,
0.057152197,
0.021688953,
0.026243355,
0.034741204,
0.0030148616,
0.049265303,
-0.021119652,
0.03610197,
-0.009358741,
-0.023632905,
-0.020883601,
-0.017898247,
-0.04884874,
0.050376132,
0.020244874,
-0.01602372,
0.020966914,
-0.0039399746,
-0.0054534804,
-0.039351147,
0.002405641,
-0.042989116,
0.01188588,
0.02274424,
-0.028576098,
-0.037157256,
0.016343083,
0.0041517266,
0.006404628,
0.0110458145,
0.04696033,
0.010920846,
0.060595766,
0.02809011,
-0.016162574,
0.017689966,
0.035102222,
-0.0110597,
-0.016009836,
-0.008199313,
-0.017190091,
-0.01863417,
-0.032963876,
-0.06581667,
0.008428422,
0.019425636,
-0.025076983,
-0.03571318,
0.024354944,
-0.021161309,
-0.026507176,
0.013441041,
0.07809134,
0.008310395,
-0.04390555,
-0.012239956,
0.028631639,
-0.04029535,
0.027298642,
-0.05148696,
0.023021948,
-0.018023213,
-0.08936626,
-0.016065376,
-0.038962357,
-0.020300414,
0.016426396,
-0.004665485,
-0.03154757,
0.06437259,
0.030214572,
0.03837917,
0.0033324894,
-0.013663207,
-0.028576098,
0.04754352,
0.05543041,
0.020439269,
0.07864675,
0.051209256,
-0.018106526,
-0.021119652,
0.0050612185,
0.012309383,
0.019092388,
-0.0036344964,
-0.00702947,
0.034852285,
-0.028381702,
-0.06415042,
-0.0061338637,
0.018953534,
0.008143771,
-0.035990886,
-0.025660168,
0.018189838,
-0.055208243,
-0.0069843424,
-0.010386259,
0.044544276,
-0.038018152,
-0.007109311,
-0.012233013,
-0.057374362,
0.2258317,
0.038962357,
0.022577617,
-0.0013355993,
0.015773784,
0.02511864,
0.005189658,
-0.025465773,
0.009823902,
-0.0050612185,
-0.01625977,
-0.020605894,
0.0035546555,
0.03724057,
-0.022369336,
0.033658143,
-0.07231502,
-0.004304466,
-0.018439775,
-0.03163088,
-0.0730926,
0.03718503,
0.005200072,
0.049209762,
0.016120918,
0.004682842,
0.020230988,
-0.0326584,
0.0065504247,
-0.011365178,
0.047515746,
-0.021716723,
0.0360742,
-0.016120918,
-0.0052833846,
0.0180371,
0.014649068,
-0.04251701,
-0.02304972,
0.022980291,
0.030714445,
-0.007768866,
0.04984849,
-0.03235292,
-0.015412764,
0.01662079,
-0.03946223,
0.03213075,
0.042378157,
-0.08764447,
0.04501638,
-0.03351929,
0.028714951,
-0.04468313,
-0.03826809,
-0.014565757,
-0.08531173,
-0.054958306,
-0.012246899,
0.033019416,
-0.0035581267,
0.012503779,
-0.0043843067,
0.0067101065,
-0.017259518,
0.016051492,
-0.0040510576,
0.030603362,
-0.013586838,
0.007977147,
0.036574073,
0.0045335745,
-0.004217682,
-0.014496329,
-0.0149684325,
0.07748038,
-0.009518423,
0.056457926,
0.017023467,
-0.06576113,
0.0071023684,
-0.028131766,
0.015509961,
-0.037407193,
0.008553389,
0.0669275,
-0.0077827517,
0.020161562,
-0.024771506,
0.00047383836,
0.03163088,
0.021272391,
0.022869209,
-0.020814175,
-0.014385247
] | from transformers import AutoModelForSequenceClassification
model_name = "nlptown/bert-base-multilingual-uncased-sentiment"
pt_model = AutoModelForSequenceClassification.from_pretrained(model_name)
See the task summary for tasks supported by an [AutoModel] class.
Now pass your preprocessed batch of inputs directly to the model. You just have to unpack the dictionary by adding **:
pt_outputs = pt_model(**pt_batch) |
[
0.0042180847,
-0.02153193,
-0.023257202,
0.036950693,
-0.020635333,
-0.0042961976,
-0.016559888,
-0.013129722,
0.010344836,
0.033228457,
0.02124665,
-0.0043403483,
0.014033113,
-0.030266965,
-0.009047486,
0.02373267,
0.018448178,
-0.037901632,
-0.074336104,
-0.038200498,
-0.019127417,
-0.00012427982,
-0.07808551,
-0.06623955,
-0.00023136636,
0.0013627267,
-0.00044320457,
0.00002582972,
0.05341549,
0.047655527,
0.008680697,
-0.007159197,
-0.016288193,
-0.010833889,
-0.053850204,
-0.027251137,
-0.015595366,
-0.0017914973,
-0.013768209,
-0.026368124,
0.009414276,
-0.033174116,
0.029370368,
-0.05569774,
-0.03871672,
-0.006975802,
-0.013707077,
0.0026524349,
-0.008178058,
-0.035374857,
0.026993025,
0.014725938,
0.022876827,
-0.0037324277,
-0.036977865,
-0.03638013,
-0.045074414,
-0.016750075,
-0.05553472,
-0.00037549276,
0.045074414,
0.04885099,
-0.0141417915,
-0.04151519,
0.034641277,
0.019371945,
-0.013238401,
0.0022126266,
-0.029071502,
-0.010338044,
-0.042873673,
-0.03809182,
-0.017687429,
-0.005325247,
-0.03719522,
0.0027288494,
0.016913094,
-0.019765904,
-0.0042995936,
0.0019748923,
-0.020336466,
0.024615683,
0.05039966,
0.0015962156,
0.003287525,
-0.07650967,
0.058577716,
-0.032196008,
0.015187822,
-0.038553704,
-0.03643447,
0.019793075,
-0.038934078,
-0.0010460307,
0.022985505,
0.02161344,
-0.007865608,
0.022374189,
0.018692704,
-0.023230031,
0.015975742,
0.0568932,
0.018027049,
0.042737827,
-0.017211959,
0.006856935,
0.007858815,
-0.009794651,
-0.028881315,
-0.03200582,
-0.009638426,
0.008395415,
0.006191279,
-0.01679083,
0.012287464,
0.023691915,
0.015962157,
0.014997635,
-0.006374674,
-0.018502517,
0.001417066,
-0.015867062,
-0.0028918672,
-0.07645533,
0.024629267,
-0.047791377,
-0.0026728122,
0.04175972,
-0.018977985,
0.011092001,
-0.014943295,
-0.041841228,
0.031788465,
0.03132658,
-0.0031975256,
-0.009421068,
0.005362605,
-0.00060325064,
0.01603008,
-0.037765782,
0.02187155,
0.034179393,
0.013469343,
0.06417466,
0.011723694,
-0.012090485,
0.033201285,
-0.045780823,
-0.021029292,
0.047057796,
-0.051404938,
0.037820123,
0.021110801,
0.007926739,
-0.024398327,
-0.008918431,
-0.0011521621,
0.0109629445,
-0.009305597,
0.016709322,
-0.006721087,
0.0124368975,
-0.029696403,
0.03926011,
0.0014620656,
0.03496731,
0.025919825,
-0.041243497,
0.021654194,
-0.032032993,
0.02624586,
0.014359148,
0.040537085,
0.02850094,
0.053198133,
0.013061799,
0.041297834,
0.009563709,
0.026463218,
0.022469282,
-0.008225605,
-0.042955182,
0.04089029,
0.022591546,
0.017402146,
-0.044123475,
-0.027156044,
-0.0075803264,
-0.005172418,
0.024778701,
0.0080286255,
0.06819577,
-0.008341076,
0.012328219,
-0.0388254,
-0.01459009,
-0.056567166,
0.015595366,
-0.0037935593,
-0.0034165808,
-0.031869974,
0.057273574,
-0.076998726,
0.021341743,
-0.035374857,
0.015799139,
0.042112924,
0.030076778,
0.018448178,
0.010507854,
0.023216447,
-0.025417186,
-0.046079688,
-0.03222318,
0.0035795984,
-0.035184667,
-0.013584814,
0.046351384,
0.0065139183,
-0.026911516,
0.012878404,
0.0042180847,
0.04953023,
0.0076346654,
0.029071502,
-0.009855783,
-0.011676148,
0.04602535,
-0.0034318636,
-0.020580994,
0.005243738,
0.023542482,
0.00586864,
0.056512825,
0.017959123,
0.0051995874,
0.031136394,
0.049340043,
0.02562096,
-0.00640524,
0.041243497,
0.026177937,
0.030484322,
0.05901243,
-0.040455576,
-0.0054203407,
-0.0007458912,
0.0049652494,
-0.039613318,
0.009427861,
-0.050915882,
0.018054217,
0.009808236,
-0.00674486,
-0.07221687,
-0.023719085,
0.0348858,
0.031299412,
-0.02153193,
-0.019548547,
0.013849718,
0.024479834,
0.005437322,
-0.05561623,
0.030538661,
0.044096306,
0.0053184545,
0.023583237,
0.02297192,
-0.039178602,
0.00872145,
-0.026463218,
-0.061512038,
-0.0022992298,
-0.027101705,
-0.005219965,
0.0009628237,
-0.067272,
0.026599066,
-0.0054169446,
-0.00933956,
-0.021042878,
-0.039830673,
0.05819734,
0.026816422,
0.006860331,
-0.048443448,
0.013435381,
-0.020852689,
0.013021044,
-0.009699557,
-0.02999527,
-0.00031733277,
-0.009475408,
0.01021578,
-0.01760592,
0.00747844,
-0.040700104,
-0.034179393,
0.009325975,
-0.014209716,
0.014413488,
-0.0014510279,
0.029153012,
-0.017877616,
0.03866238,
0.0183395,
-0.03434241,
0.047166474,
0.04754685,
-0.010718418,
0.051051732,
0.036787678,
0.04974759,
-0.043498576,
0.028609619,
0.054339256,
-0.006245618,
-0.03355449,
-0.017904785,
-0.059610166,
0.012484444,
-0.017931955,
-0.016885923,
-0.01814931,
0.036271453,
0.0026897932,
-0.048796654,
-0.014739524,
-0.04890533,
-0.011913882,
-0.048796654,
-0.016342532,
0.06846746,
0.030484322,
-0.0072474983,
-0.07362969,
-0.015337255,
-0.015812723,
0.0599362,
0.026069257,
-0.015011219,
0.03953181,
0.025159076,
0.0031958276,
-0.0068671233,
0.043851778,
-0.054094728,
-0.014264055,
-0.007892777,
0.035157498,
0.03711371,
0.013870095,
0.025661714,
0.030131118,
0.027984716,
0.014427072,
0.026381709,
0.019317606,
0.021722117,
0.01718479,
-0.005586755,
0.010711626,
0.026517557,
-0.0146715995,
-0.021518346,
-0.003189035,
0.0067346715,
0.03371751,
-0.052790586,
0.01794554,
0.009713142,
-0.0120836925,
0.00044150645,
-0.023134938,
-0.042058583,
0.014345564,
-0.0016089514,
0.03499448,
-0.0128512345,
-0.059664503,
-0.02339305,
0.01752441,
0.03648881,
0.058795076,
0.01371387,
-0.024371156,
0.006058827,
-0.013462551,
-0.019847414,
-0.011064831,
0.0010664079,
0.0045644976,
-0.013068591,
-0.021423252,
-0.03306544,
0.034586936,
0.05982752,
0.022088908,
-0.010521439,
0.033826187,
-0.017415732,
0.011832373,
0.030103948,
-0.00033219115,
0.016858755,
-0.04529177,
0.057273574,
0.010630117,
0.03638013,
-0.0023433804,
-0.015051974,
-0.002470738,
0.0048124203,
-0.0034097882,
-0.006191279,
-0.049964946,
0.010283704,
-0.017483655,
0.013007459,
-0.03798314,
-0.018298745,
-0.028066225,
0.012239917,
0.017171204,
-0.031245071,
0.0018713081,
-0.023868518,
0.00855164,
0.021776456,
0.014128206,
-0.03719522,
-0.008415792,
-0.0034912971,
-0.044965733,
0.05613245,
0.012627085,
-0.030593,
0.017320639,
-0.028011886,
-0.00021332403,
0.0028086603,
-0.06863048,
-0.05776263,
-0.003053187,
-0.013360664,
-0.021219479,
0.03428807,
0.019276852,
-0.016614228,
0.020350052,
-0.015310085,
0.00006288283,
-0.045835163,
0.0024096065,
-0.019548547,
0.024194553,
0.007077688,
0.011540299,
0.01780969,
-0.0039531807,
-0.04654157,
0.04322688,
-0.025444357,
-0.023990782,
-0.0038173327,
0.050127964,
-0.017021772,
0.021300988,
0.018434593,
0.008639942,
0.019426284,
0.005444114,
-0.0074308934,
0.005627509,
-0.023352295,
0.008483716,
-0.025390018,
-0.011750864,
0.036679,
-0.052980773,
0.050209474,
0.009346352,
-0.019942507,
-0.022088908,
-0.07596628,
-0.04233028,
-0.011418036,
-0.026191521,
0.029859422,
0.028283583,
-0.026014918,
0.0002368852,
0.0032637515,
-0.025702469,
0.0003489599,
-0.026925102,
0.01600291,
0.031706955,
0.03230469,
0.01298029,
-0.045563467,
-0.045427617,
0.036189944,
-0.020988537,
0.018977985,
-0.011934259,
-0.0687935,
-0.02768585,
0.0004954212,
-0.04472121,
0.00061131665,
-0.0027696039,
0.017877616,
0.041026138,
-0.033364303,
0.018611195,
-0.03798314,
-0.02153193,
0.03953181,
-0.033228457,
-0.06634823,
-0.024588514,
0.024371156,
0.013462551,
0.025186244,
0.007064103,
-0.019507794,
-0.04738383,
-0.02920735,
0.026707744,
0.008055795,
0.00076372124,
-0.036217116,
-0.048633635,
0.03860804,
0.04735666,
0.027903209,
-0.058306023,
0.022455698,
-0.04108048,
0.029153012,
-0.024928134,
-0.02153193,
-0.02669416,
-0.01425047,
-0.021491176,
0.044422343,
0.0019409303,
0.036733337,
0.01899157,
0.009618049,
0.03135375,
0.05317096,
-0.058903754,
-0.024085876,
-0.0005523076,
-0.0031007337,
-0.014168961,
0.01867912,
-0.0018373461,
0.019236097,
-0.020703256,
0.040374067,
-0.035592213,
-0.0047954395,
-0.022958336,
-0.02703378,
0.036679,
-0.046405725,
-0.0041841227,
-0.041352175,
0.051051732,
-0.0030480926,
0.037168052,
-0.041270666,
0.014725938,
-0.038635213,
-0.0568932,
0.021735702,
-0.021273818,
0.0027933775,
0.0061810906,
0.021436837,
0.0712931,
-0.03594542,
0.013510098,
0.058740735,
-0.02367833,
-0.010222573,
-0.02852811,
0.044368003,
-0.010012008,
-0.00148499,
-0.039694827,
0.055263024,
-0.037820123,
0.020064771,
-0.016288193,
-0.039124265,
-0.035673723,
0.014236885,
0.020064771,
0.0054984535,
0.050127964,
0.025838315,
-0.012470859,
-0.033119775,
0.00410601,
0.019344775,
0.006642974,
0.018869307,
0.008334284,
-0.01983383,
-0.012239917,
-0.014019528,
-0.005124871,
0.00823919,
0.058251683,
0.0263002,
-0.04382461,
-0.012695009,
0.021694949,
-0.028365092,
-0.069119535,
0.012531991,
0.012008975,
-0.043471403,
-0.014291224,
-0.004139972,
0.001603008,
-0.031516768,
0.029669235,
0.029859422,
-0.040401235,
-0.011418036,
-0.009210504,
-0.029560555,
-0.030484322,
0.015581782,
0.032712232,
-0.018393839,
0.026381709,
-0.07053235,
-0.0415967,
-0.030294135,
-0.0057293954,
0.052138515,
0.011329735,
0.019779488,
0.02627303,
0.012328219,
0.07792249,
-0.016328946,
0.039966524,
0.012151617,
-0.024452666,
-0.055426043,
0.0068841046,
0.025444357,
-0.029533386,
0.00804221,
-0.0183395,
0.02706095,
0.049856268,
0.050290983,
0.003932804,
-0.11574262,
-0.0018747044,
-0.044069137,
0.010874644,
0.017171204,
0.021015707,
-0.034179393,
0.040564254,
0.013374249,
-0.029125841,
-0.0123757655,
0.0033995998,
-0.016491964,
-0.004975438,
-0.047628358,
0.016342532,
-0.025063982,
-0.030131118,
-0.021219479,
-0.019127417,
-0.010718418,
0.04108048,
0.034097884,
-0.012307841,
-0.0026897932,
0.010331251,
0.02559379,
0.009434653,
-0.0019256474,
0.04670459,
0.0049177026,
-0.035266176,
-0.027957547,
0.054013222,
0.040618595,
-0.032359026,
0.029125841,
-0.022048153,
0.00056504336,
-0.061512038,
0.01075238,
0.03743975,
-0.016845169,
-0.019779488,
0.005936564,
0.016858755,
-0.042819332,
0.007193159,
-0.03589108,
-0.006975802,
-0.007342592,
0.042031415,
0.009244466,
0.046378557,
0.002739038,
0.024316818,
-0.00096876704,
0.032685064,
0.038961247,
0.007919947,
0.02920735,
-0.0077365516,
0.011689733,
-0.0068467464,
0.0044592153,
-0.002954697,
-0.048443448,
0.043444235,
-0.005121475,
0.026911516,
-0.028365092,
0.026150767,
0.025770392,
0.035374857,
0.028772635,
-0.022116078,
0.0027882832,
-0.02640888,
-0.0053014737,
0.0053456244,
-0.05341549,
-0.04151519,
-0.018950816,
-0.046351384,
-0.009957668,
-0.013747832,
-0.045916673,
-0.007593911,
0.00048183638,
-0.013401419,
0.033282794,
0.005518831,
0.036760505,
0.04531894,
0.000483959,
-0.037901632,
-0.0010315968,
-0.015079143,
-0.033744678,
0.012450482,
0.014128206,
0.045427617,
0.03629862,
0.003340166,
-0.008959184,
0.015323671,
0.00043768573,
0.04751968,
-0.0027882832,
0.01899157,
-0.03602693,
0.0034811087,
-0.012368973,
-0.00855164,
-0.004703742,
0.013116138,
0.025811147,
0.0073901387,
-0.02082552,
0.0067720297,
0.02119231,
-0.023297956,
0.020024016,
0.019113833,
0.0037969556,
-0.031163564,
0.0144949965,
-0.013190854,
0.07368403,
0.039287284,
0.035510704,
-0.0027577172,
0.051296256,
-0.005019589,
-0.030239796,
-0.055100005,
0.054393597,
0.022700224,
0.014739524,
0.0060656196,
0.0033911092,
-0.04833477,
-0.03282091,
0.031217903,
0.016491964,
-0.022836072,
0.026870763,
-0.045183092,
-0.025349263,
0.03638013,
0.0034946934,
-0.01972515,
0.0059637334,
-0.014440658,
0.053632844,
0.016383287,
-0.004051671,
0.037086543,
0.039966524,
0.034586936,
-0.02054024,
0.023882102,
0.0019952697,
0.047112133,
-0.015160653,
0.033146948,
-0.030402813,
-0.006554673,
-0.054583784,
-0.020866275,
-0.02011911,
0.0036746922,
-0.017035358,
-0.043770272,
-0.006938444,
0.0023416823,
0.0028256413,
-0.059501484,
-0.013224817,
-0.04075444,
0.029805083,
0.016750075,
-0.0026422464,
-0.042683486,
0.053931713,
-0.0009967857,
0.036244284,
-0.0054610954,
0.054393597,
0.0345326,
0.034043543,
0.030158287,
-0.004136576,
0.004170538,
0.032114502,
-0.023406634,
-0.037494086,
0.040808782,
0.00058839226,
0.006592031,
-0.026463218,
-0.066619925,
0.013224817,
0.028962823,
-0.016165929,
-0.04597101,
0.039314453,
-0.0016947056,
-0.016926678,
0.004055067,
0.10971096,
0.027577173,
-0.018393839,
-0.025797563,
0.0054644914,
-0.052790586,
0.015337255,
-0.027876038,
0.06363127,
0.0070844805,
-0.069608584,
-0.007064103,
-0.040211048,
-0.012538783,
0.011519922,
-0.0028596034,
-0.03662466,
0.036135606,
0.015079143,
0.028799806,
0.025553035,
-0.013639153,
-0.019956091,
0.06200109,
0.052247196,
0.038064647,
0.048742313,
0.06335957,
-0.011390867,
0.016940264,
0.010568986,
0.023270786,
-0.017470071,
-0.005026381,
-0.011608223,
-0.008986355,
-0.025580205,
-0.047193643,
-0.04694912,
-0.005508642,
0.0003769786,
-0.02677567,
-0.008076172,
0.00877579,
-0.060370915,
-0.014413488,
-0.0074988175,
-0.00022754564,
0.0049924194,
-0.008714658,
0.011540299,
-0.041922737,
0.21540082,
0.039857846,
0.038146157,
0.008375037,
0.06254449,
0.07884626,
0.004126387,
-0.033309963,
-0.013408211,
-0.047791377,
0.005372794,
-0.042683486,
-0.009957668,
0.010426344,
0.004207896,
0.021070046,
-0.059501484,
-0.0007323064,
-0.00125235,
-0.047247984,
-0.053062283,
0.051513616,
-0.018094972,
0.09069222,
0.022836072,
-0.023515314,
0.014454242,
-0.045916673,
-0.012355388,
-0.016315361,
0.015608951,
-0.022836072,
0.014345564,
-0.028854145,
-0.022428527,
0.002372248,
0.027672267,
-0.06819577,
-0.0049482686,
-0.0013712172,
0.008796167,
0.012878404,
0.0146715995,
-0.02189872,
-0.015867062,
-0.0045339316,
0.0048973253,
0.035239007,
0.04089029,
-0.05192116,
0.059610166,
-0.034423918,
0.041949905,
-0.021015707,
-0.06651125,
0.0019273455,
-0.0629792,
-0.05039966,
0.0029445083,
0.04091746,
-0.056675844,
0.02920735,
-0.02509115,
0.014155376,
-0.0172663,
0.014875371,
0.011153133,
0.036081266,
0.0023416823,
-0.016777245,
0.036787678,
-0.017904785,
-0.016315361,
-0.0128512345,
-0.00343526,
0.04238462,
-0.018747043,
0.05132343,
0.0109086055,
-0.074064404,
0.024316818,
-0.03798314,
-0.00916975,
-0.050644185,
0.011255018,
0.049557403,
-0.0043403483,
0.010208988,
0.0054305294,
0.022061737,
0.023691915,
0.04540045,
0.013408211,
0.018081388,
0.006524107
] | When you are ready to use the model again, reload it with [PreTrainedModel.from_pretrained]:
pt_model = AutoModelForSequenceClassification.from_pretrained("./pt_save_pretrained")
``
</pt>
<tf>
Once your model is fine-tuned, you can save it with its tokenizer using [TFPreTrainedModel.save_pretrained`]:
tf_save_directory = "./tf_save_pretrained"
tokenizer.save_pretrained(tf_save_directory) # doctest: +IGNORE_RESULT
tf_model.save_pretrained(tf_save_directory) |
[
-0.006135498,
-0.013838102,
-0.012508861,
0.032601394,
-0.01771389,
-0.03528786,
-0.0093256775,
-0.010514999,
-0.0028596178,
0.05328159,
0.017000297,
0.0023349174,
0.035735603,
-0.015279279,
0.004278058,
0.011893212,
0.026011154,
-0.012173052,
-0.056163944,
-0.042815562,
-0.015097383,
0.01715421,
-0.07303831,
-0.044018876,
0.0025133155,
-0.010018282,
-0.014915487,
0.0029278288,
0.046509456,
0.038254168,
-0.011382503,
0.015433191,
-0.03514794,
-0.0052854833,
-0.05051117,
-0.036295284,
0.00043069167,
0.0003589826,
-0.004033198,
-0.049251888,
0.005201531,
-0.023744447,
0.031062271,
-0.05747919,
-0.05314167,
-0.013061545,
-0.01562908,
0.0061075143,
-0.005663268,
-0.036994886,
0.027438339,
-0.0023349174,
0.019672772,
-0.0104240505,
-0.030138798,
-0.031873807,
-0.027298419,
-0.01445375,
-0.042535722,
0.0074997195,
0.036631092,
0.04944778,
-0.025381513,
-0.036854964,
0.03218163,
0.017629938,
-0.027200475,
0.0021092962,
-0.056611687,
-0.009640497,
-0.034616243,
-0.03730271,
-0.011585387,
-0.012550836,
-0.023954328,
0.015657064,
0.013509289,
-0.007261855,
-0.012047124,
0.010368083,
-0.014971455,
0.022359239,
0.050930932,
0.011284559,
-0.0001456044,
-0.068672806,
0.058598556,
-0.035343826,
0.015391216,
-0.03176187,
-0.029299278,
0.018147642,
-0.048692208,
-0.0023943833,
0.011767284,
0.024220176,
0.016930336,
0.043375243,
0.008912913,
-0.021505725,
0.022107381,
0.07343009,
0.019169059,
0.052330133,
-0.02598317,
0.015293271,
0.0042885523,
-0.0042885523,
-0.035511732,
-0.03201373,
0.00585216,
-0.009227733,
-0.0056457776,
-0.012180048,
0.020330396,
0.007933472,
0.008353232,
0.006299904,
-0.003921262,
-0.047824703,
0.018987162,
-0.02654285,
0.0052540014,
-0.074381545,
0.0075976634,
-0.038170215,
-0.005121077,
0.039457478,
-0.008325248,
-0.0071779033,
0.006069036,
-0.03279728,
0.035483748,
0.026668778,
-0.013334389,
-0.011760288,
0.010591955,
-0.008835956,
0.0021827542,
-0.057115402,
0.016510576,
0.027970036,
0.015601096,
0.050119393,
-0.0017883542,
-0.0036309275,
0.017308122,
-0.042199913,
-0.052050292,
0.035063986,
-0.066434085,
0.014719599,
0.017308122,
0.012201036,
-0.013593242,
0.0054358975,
-0.0053274594,
0.031426065,
-0.0010257895,
0.023324687,
-0.017182194,
0.022597102,
-0.034140512,
0.04245177,
0.012886645,
0.032601394,
0.022457182,
-0.049028017,
0.01354427,
-0.03148203,
0.010535986,
0.018385507,
0.030334687,
0.029914925,
0.053729333,
0.015545128,
0.05384127,
0.0045613963,
0.022121374,
0.019155066,
-0.0074717356,
-0.024653928,
0.055744182,
0.009038841,
0.009913342,
-0.025871234,
-0.025857242,
-0.011648351,
-0.012110088,
0.023534568,
-0.0012330462,
0.06509085,
-0.019784708,
0.01653856,
-0.031426065,
-0.004194106,
-0.05073504,
-0.0016904102,
0.009311685,
-0.015013431,
-0.03036267,
0.05899033,
-0.08070593,
0.013355377,
-0.0089758765,
0.014006006,
0.043235324,
0.031034287,
0.024835825,
0.010025278,
0.012935617,
-0.030026862,
-0.041444346,
-0.004236082,
0.023576543,
-0.035903506,
-0.008220308,
0.031118238,
0.0028928488,
-0.020876085,
0.010403062,
0.01340435,
0.057703067,
0.038254168,
0.0051490613,
-0.00075294526,
-0.010920767,
0.03481213,
-0.009220737,
0.0005684256,
0.003062502,
0.02550744,
0.010535986,
0.05112682,
0.025269577,
0.0018661849,
0.029215325,
0.025619378,
0.012284989,
0.017028281,
0.035483748,
0.030978318,
0.023310695,
0.060501467,
-0.029019438,
-0.0012610302,
-0.009577533,
-0.0016650497,
-0.051434644,
0.021029998,
-0.062628254,
0.02389836,
-0.0027861597,
-0.010745866,
-0.07018394,
-0.028823549,
0.008898921,
0.032349534,
-0.015685048,
-0.0033161072,
0.019490875,
0.02438808,
0.008227305,
-0.060333565,
0.039401513,
0.04122047,
0.014831535,
0.015069399,
0.030614527,
-0.05300175,
0.01737808,
-0.033440914,
-0.06917652,
-0.011326536,
-0.022555126,
-0.016244728,
-0.0077235918,
-0.06676989,
0.005372933,
-0.013040557,
-0.011060687,
-0.015810976,
-0.022904927,
0.051714484,
0.026626803,
0.019253012,
-0.042619675,
-0.005033627,
-0.030866383,
0.0078775035,
-0.010193182,
-0.032069694,
-0.010431047,
-0.0010922516,
0.01785381,
-0.0032846252,
0.024709897,
-0.055884104,
-0.017266145,
0.0052609975,
-0.014873511,
0.009591525,
-0.013733162,
0.02063822,
-0.025437482,
0.021547701,
0.03022275,
-0.033217043,
0.043599114,
0.06788925,
-0.0001379525,
0.042899515,
0.045082267,
0.036882948,
-0.0443267,
0.042619675,
0.063747615,
-0.015866945,
-0.02396832,
-0.023982313,
-0.058934364,
0.019490875,
-0.024500016,
-0.043739036,
-0.013908062,
0.052777875,
-0.008989869,
-0.046033725,
-0.020876085,
-0.048972048,
-0.018875226,
-0.04105257,
0.00201485,
0.07370993,
0.019406924,
0.0068945647,
-0.08143352,
-0.019029139,
-0.02361852,
0.050651092,
0.017895786,
-0.03786239,
0.028459756,
0.030418638,
-0.0007100947,
-0.0017962247,
0.04127644,
-0.037694484,
-0.028711613,
-0.012382932,
0.055380393,
0.036379237,
0.010417054,
0.005978088,
0.0052924794,
0.020232452,
0.008745009,
0.039793286,
0.021099957,
0.0073807873,
-0.0009943075,
-0.016426625,
0.0053484472,
0.011130647,
-0.021841533,
-0.038030293,
-0.010605946,
-0.008696036,
0.03134211,
-0.06940039,
0.00982939,
0.012277992,
-0.0004569267,
-0.009724449,
-0.008437185,
-0.04516622,
0.02105798,
0.01625872,
0.049979474,
-0.03237752,
-0.05809484,
-0.007170907,
0.009787413,
0.040520873,
0.053393524,
0.009164769,
-0.013607234,
0.005593308,
-0.00069304195,
-0.016916344,
-0.0057821996,
-0.004984655,
0.021911494,
-0.0013703429,
-0.01187922,
-0.05417708,
0.03738666,
0.057283305,
0.027270434,
0.01247388,
0.017825825,
-0.022834966,
0.005142065,
0.026486883,
0.0003043263,
0.010815827,
-0.050539155,
0.047488894,
0.017000297,
0.039177638,
-0.015559119,
-0.012711745,
-0.0017699897,
0.008031416,
-0.0042990465,
0.009045837,
-0.05107085,
0.00033690146,
-0.020806124,
0.005908128,
-0.031593967,
-0.023030855,
-0.025941193,
0.0041171503,
0.020414349,
-0.0197987,
0.0024573475,
-0.017112233,
0.010689898,
0.017196186,
0.020400357,
-0.041500315,
-0.032881234,
-0.008752004,
-0.04091265,
0.060221627,
0.014117942,
-0.020722173,
0.011172623,
-0.03752658,
-0.007940467,
-0.0053239614,
-0.07057572,
-0.049475763,
-0.0051770452,
-0.022499159,
-0.020806124,
0.034168497,
0.022946903,
-0.020246444,
0.021491732,
-0.016006865,
-0.0037288717,
-0.05224618,
0.010347094,
-0.02458397,
0.019490875,
0.016846385,
0.021855526,
0.015992872,
-0.028417781,
-0.016622512,
0.041416362,
-0.03257341,
-0.01618876,
0.0060375542,
0.028333828,
-0.020106524,
0.019211035,
0.0057891957,
0.0054358975,
0.009563542,
-0.0074157673,
-0.01895918,
0.0062824143,
-0.02258311,
0.011872224,
-0.03148203,
-0.0074017756,
0.026724746,
-0.049587697,
0.0536174,
0.0044984324,
-0.014320826,
-0.0065552583,
-0.05384127,
-0.04189209,
-0.02410824,
-0.033049136,
0.033944625,
0.028795565,
-0.03285325,
-0.00614949,
-0.0008071643,
-0.009402634,
0.0134533215,
-0.032069694,
0.01159938,
0.025031714,
0.037050854,
0.019434907,
-0.053393524,
-0.039233606,
0.04634155,
-0.01848345,
0.03201373,
-0.02612309,
-0.035679635,
-0.0076186517,
0.0045054285,
-0.028557701,
0.0034805133,
-0.011760288,
0.014327822,
0.031426065,
-0.027956044,
-0.00032225356,
-0.040632807,
0.0023436623,
0.040828697,
-0.025115665,
-0.06749748,
-0.0120891,
0.007090453,
0.0091857575,
0.012480876,
0.023786424,
-0.020750158,
-0.046733327,
-0.0047607827,
0.022499159,
0.005170049,
0.019197043,
-0.03229357,
-0.045334127,
0.022541134,
0.04690123,
0.019560836,
-0.052050292,
0.037134804,
-0.027634228,
0.012361945,
-0.028795565,
-0.006905059,
-0.016720457,
-0.008262284,
-0.02077814,
0.04438267,
-0.0047537866,
0.03618335,
0.021925487,
0.0016169521,
0.030446623,
0.062124543,
-0.056443784,
-0.014761575,
0.01003927,
-0.021029998,
-0.0087729925,
0.02216335,
-0.009696466,
0.01881926,
-0.030586543,
0.035595685,
-0.045306142,
-0.015810976,
-0.02458397,
0.0018521928,
0.011312543,
-0.040297,
0.009262714,
-0.04382299,
0.051098835,
-0.020988021,
0.054988615,
-0.04155628,
0.011837244,
-0.034840114,
-0.06464311,
0.0355677,
-0.02361852,
-0.011830248,
0.008800977,
0.019057123,
0.089045174,
-0.042227898,
0.03050259,
0.06402746,
-0.030586543,
-0.014397782,
-0.030530574,
0.051602546,
-0.0028718608,
-0.003059004,
-0.028026003,
0.026668778,
-0.037470613,
0.01965878,
-0.013558261,
-0.031649936,
-0.04189209,
0.010857803,
0.018371515,
0.0013274923,
0.052022308,
0.010997723,
-0.008745009,
-0.030026862,
0.013180478,
0.014096954,
0.0077445796,
0.016944328,
0.010584959,
-0.00989935,
-0.0026270007,
-0.01201914,
-0.01618876,
-0.0070694652,
0.057982907,
0.026934627,
-0.04933584,
-0.0022282281,
0.02876758,
-0.039793286,
-0.074941225,
0.0047852686,
0.012452892,
-0.028417781,
-0.006845593,
-0.007947464,
0.03022275,
-0.047684785,
0.030838398,
0.021113949,
-0.016412633,
0.0006707422,
-0.010941755,
-0.021281853,
-0.031426065,
0.0046243607,
0.03847804,
-0.028557701,
0.019770715,
-0.06805716,
-0.045893807,
-0.031034287,
0.0046033724,
0.032125663,
0.0067196647,
0.005775204,
0.024514008,
0.00090248487,
0.07801947,
-0.007219879,
0.029103389,
0.00017413498,
-0.04301145,
-0.05370135,
0.029886942,
0.01631469,
-0.032713328,
0.010242154,
-0.037974324,
0.008891925,
0.043795004,
0.05023133,
0.005925618,
-0.108074315,
-0.0044284724,
-0.024262153,
0.010892783,
0.0066392105,
0.013971026,
-0.031985745,
0.033328976,
0.014649639,
-0.014019998,
0.014565687,
-0.00053956703,
-0.01452371,
-0.013250438,
-0.051490612,
0.035623666,
-0.021589678,
-0.002116292,
-0.018875226,
-0.02146375,
-0.017126225,
0.018357523,
0.031314127,
-0.018539418,
0.015461176,
0.0252276,
0.018147642,
0.0017629938,
-2.2545726e-7,
0.036323268,
0.011473452,
-0.02202343,
-0.014047982,
0.047013167,
0.045530014,
-0.035231892,
0.022135366,
-0.0076046595,
-0.022331255,
-0.042675644,
0.041080553,
0.047265023,
-0.022191335,
-0.020932052,
0.015657064,
0.021016005,
-0.04550203,
-0.0054568853,
-0.043123387,
-0.0013371118,
0.015713032,
0.060557436,
0.0161188,
0.045585983,
0.006733657,
0.0062089562,
-0.00021490859,
0.039093688,
0.025899218,
0.0197987,
0.016692473,
-0.00036182473,
0.015195327,
0.011123651,
-0.004166122,
-0.0033056133,
-0.020344388,
0.04466251,
-0.0055688214,
0.029830974,
-0.0007962331,
0.03800231,
0.013887074,
0.014222882,
0.009661485,
-0.033776723,
0.012243012,
-0.006831601,
-0.017518,
0.013880078,
-0.046173647,
-0.028375804,
-0.0064643105,
-0.04639752,
-0.0075766756,
-0.016692473,
-0.041416362,
-0.0074297595,
-0.008605088,
-0.009906346,
0.0017909778,
-0.009066825,
0.04883213,
0.047265023,
-0.00071053195,
-0.03531584,
-0.004942679,
-0.0032076691,
-0.015866945,
0.0035032504,
0.022289278,
0.054652806,
0.046425503,
0.011270567,
-0.015503151,
0.0054743756,
0.0025885226,
0.029998878,
-0.006121506,
0.00882896,
-0.040129095,
0.00046523445,
-0.02305884,
-0.00017752367,
0.014943471,
0.027578259,
0.0124179125,
-0.0037148797,
-0.0033231033,
0.0052924794,
-0.0067826286,
-0.028739596,
-0.0074507473,
0.018931195,
-0.0058556576,
-0.0369669,
0.035259876,
-0.0065027885,
0.06637812,
0.030334687,
0.045949772,
-0.02668277,
0.05955001,
0.005848662,
-0.031314127,
-0.04390694,
0.05384127,
0.013677194,
-0.005449889,
0.0010065505,
-0.001494522,
-0.04015708,
-0.013936046,
0.021407781,
0.024192192,
-0.016846385,
0.030586543,
-0.049251888,
-0.017587962,
0.027662212,
-0.013859089,
-0.014719599,
0.009213741,
-0.017042274,
0.05843065,
0.020526284,
-0.0011700821,
0.036771014,
0.030726463,
0.045809854,
-0.037834406,
0.01890321,
-0.0031849323,
0.04343121,
-0.036938917,
0.035875525,
-0.03682698,
-0.0053589414,
-0.058206778,
-0.017685905,
-0.02342263,
-0.0129636,
-0.021155925,
-0.032489456,
0.010480018,
-0.008856945,
0.0017113982,
-0.07902689,
-0.02368848,
-0.046705343,
0.025437482,
0.024360096,
-0.0035382304,
-0.023744447,
0.031873807,
-0.0027704188,
0.023534568,
0.00023742698,
0.051518597,
0.045334127,
0.034420352,
0.0073528034,
-0.0024503514,
0.02764822,
0.018931195,
-0.023506584,
-0.042955484,
0.038030293,
-0.0062509323,
0.008968881,
-0.01187922,
-0.05591209,
0.014957462,
0.033245023,
-0.012138072,
-0.046313565,
0.038394086,
-0.016482592,
-0.015111375,
0.009122793,
0.11518226,
0.020456325,
-0.0141389305,
-0.011025707,
0.0073947795,
-0.03453229,
-0.004879715,
-0.029467182,
0.042004026,
0.002940072,
-0.069904104,
-0.0129006365,
-0.057171367,
-0.012872653,
0.023156783,
0.0021267862,
-0.0154471835,
0.04919592,
0.0045159226,
0.029495165,
0.013915058,
-0.018385507,
-0.021519717,
0.062628254,
0.05294578,
0.043123387,
0.061061148,
0.06335584,
-0.01792377,
0.030894367,
0.029103389,
0.031985745,
-0.015125367,
-0.011683332,
-0.011858231,
-0.01771389,
-0.03800231,
-0.04709712,
-0.065426655,
0.00620196,
0.00033427795,
-0.024080256,
-0.000501089,
-0.0056142956,
-0.065482624,
-0.022709038,
-0.000006456276,
0.008192324,
0.0021477742,
-0.017615946,
0.020274429,
-0.038310133,
0.23126,
0.04418678,
0.045949772,
0.022387221,
0.055688214,
0.06744151,
0.0023086823,
-0.028935485,
-0.011046695,
-0.044914365,
0.010633931,
-0.027592251,
-0.009297693,
0.002006105,
0.0035662146,
0.016860377,
-0.05627588,
-0.0032374023,
-0.0036729036,
-0.045334127,
-0.05753516,
0.057703067,
-0.011151635,
0.08820566,
0.0034752665,
-0.026318979,
0.020932052,
-0.056107976,
-0.026151074,
-0.019686764,
0.01855341,
-0.027494308,
0.0161188,
-0.0348681,
-0.019924628,
0.004096162,
0.037778437,
-0.052050292,
0.009451605,
-0.011732304,
0.0012129328,
0.008444181,
0.016832393,
-0.010689898,
-0.012606804,
-0.018595386,
0.0032706333,
0.030138798,
0.051210772,
-0.0537853,
0.052414086,
-0.030586543,
0.054289013,
-0.023380656,
-0.078187376,
-0.005103587,
-0.06335584,
-0.038785864,
0.00095845293,
0.036099397,
-0.04021305,
0.030558558,
-0.012942613,
0.02556341,
-0.000740265,
0.021337822,
-0.0037883378,
0.036882948,
-0.018973172,
-0.02668277,
0.049028017,
-0.028095964,
-0.029243309,
-0.024416065,
-0.013747154,
0.028571693,
0.0010633931,
0.045697916,
-0.0061774743,
-0.07398977,
0.03864594,
-0.032265585,
-0.003038016,
-0.04628558,
0.0033143582,
0.060053725,
0.0062579284,
0.020036563,
0.0036064417,
0.03730271,
0.03050259,
0.059661947,
0.013838102,
0.021253869,
0.0133134015
] | tf_save_directory = "./tf_save_pretrained"
tokenizer.save_pretrained(tf_save_directory) # doctest: +IGNORE_RESULT
tf_model.save_pretrained(tf_save_directory)
When you are ready to use the model again, reload it with [TFPreTrainedModel.from_pretrained]:
tf_model = TFAutoModelForSequenceClassification.from_pretrained("./tf_save_pretrained") |
[
-0.0008548026,
-0.004450285,
-0.021097645,
-0.008629523,
0.0063512702,
-0.032115307,
0.012841727,
-0.022694621,
-0.0031811295,
0.031968795,
0.0056370273,
0.00089051476,
0.021097645,
-0.050985977,
-0.025595546,
0.022328341,
-0.008409756,
-0.021126948,
-0.0652855,
0.011786845,
0.034840416,
0.005915399,
-0.047323193,
-0.02678229,
-0.03501623,
-0.025932522,
0.02036509,
-0.044305056,
0.0436018,
0.045594357,
-0.045711566,
0.012065216,
-0.00416825,
-0.0397632,
0.0033221466,
0.013171378,
0.0053879577,
-0.051103186,
-0.048905514,
-0.05678783,
0.060362708,
0.024892291,
-0.001188574,
-0.04266413,
-0.066457585,
-0.0019321195,
-0.0047799353,
-0.023119504,
-0.0065527237,
-0.027514847,
0.0070215603,
0.008607547,
0.0125560295,
0.02499485,
-0.05420923,
-0.010709985,
0.0015667566,
-0.0028221763,
-0.014277539,
-0.015295793,
0.038766924,
0.02769066,
-0.014841608,
-0.059278525,
0.012087193,
0.009801615,
0.002377148,
-0.0019083114,
-0.024438106,
0.021991365,
-0.052451093,
-0.025903221,
-0.021888807,
-0.040759478,
-0.01147917,
0.03835669,
0.008761384,
0.010233823,
0.006512433,
0.0010594608,
0.0032653734,
0.05587946,
0.014856259,
0.025317175,
0.009325452,
-0.03961669,
0.011120218,
-0.030796703,
-0.011244752,
-0.053535275,
0.005519818,
0.013317889,
-0.012929633,
0.03167577,
0.054326437,
0.053007834,
-0.002204997,
0.04002692,
-0.008468361,
-0.03662786,
0.052890625,
0.10929753,
-0.0029943273,
0.040437154,
-0.018050209,
0.0099408,
0.028306007,
-0.013969865,
-0.016043002,
-0.021463925,
0.015603467,
0.009860219,
-0.0027947056,
0.011523124,
-0.026606476,
0.023134155,
-0.019163694,
0.009852894,
-0.040554363,
0.0049301097,
0.00086167036,
-0.004406331,
0.02282648,
-0.039909713,
0.035192046,
-0.010812543,
0.019647183,
0.03894274,
-0.01051952,
0.0016491693,
0.0021683692,
0.008431733,
-0.0028368277,
0.032027397,
-0.00037245953,
-0.026870197,
-0.022269737,
0.038649715,
0.020203926,
-0.022401597,
0.024467409,
-0.010365684,
0.020086717,
0.0717906,
-0.0043367385,
-0.016013699,
0.04292785,
-0.05705155,
-0.028511124,
0.015603467,
-0.023720201,
0.013391145,
-0.011427891,
0.025434384,
-0.00550883,
-0.033492513,
-0.009867545,
0.008658825,
-0.018709509,
0.010460916,
-0.0028148508,
-0.027632056,
-0.03692088,
0.05177714,
0.015559514,
0.0423125,
-0.0076845246,
-0.024071828,
-0.00067074766,
-0.02499485,
0.014094399,
-0.019793695,
0.0057212715,
-0.006567375,
0.049374353,
0.029155774,
0.06780549,
-0.0037763321,
0.0071058045,
0.006124178,
-0.013178703,
-0.0073621995,
0.013632889,
0.016350675,
0.010292428,
-0.02473113,
-0.009838242,
-0.0003321689,
0.012255681,
0.016043002,
0.0042488314,
0.024335548,
-0.041960873,
-0.00015475269,
-0.05948364,
-0.007992199,
-0.024672525,
0.03384414,
0.0070435368,
-0.03012275,
0.0198816,
0.044422265,
-0.037125997,
0.011757542,
-0.02987368,
0.033346,
-0.021200204,
0.049931094,
0.036510646,
0.040173434,
0.042107385,
-0.021346714,
-0.0014083411,
-0.010373009,
0.023002295,
0.0016857971,
-0.03437158,
0.010270451,
-0.016086955,
0.0043697036,
0.028789496,
-0.0023423515,
0.032086004,
0.006446503,
0.034254372,
-0.012988239,
-0.01654114,
0.02294369,
0.023383224,
0.0012068879,
0.040847387,
0.063292935,
0.003085897,
0.0062047592,
0.01429219,
-0.022181831,
0.020746019,
0.0054319114,
0.021742295,
0.005007028,
0.0027342695,
-0.02062881,
-0.0021592123,
0.01326661,
-0.021537181,
0.013457075,
-0.006904351,
-0.017596023,
-0.042107385,
0.028364612,
-0.04881761,
0.040085528,
0.025199967,
-0.0059337127,
-0.07753385,
-0.02527322,
-0.006611328,
-0.012065216,
-0.04412924,
0.0076185944,
0.012731844,
0.0294781,
0.0070728394,
-0.019779043,
0.04562366,
0.051952954,
0.009208243,
0.017918348,
-0.00087494793,
-0.060069688,
-0.032759957,
-0.05731527,
-0.060421314,
-0.014284864,
-0.03829809,
0.013574284,
-0.0026500255,
-0.047440402,
-0.008841964,
-0.0061315033,
-0.037741344,
-0.00992615,
-0.022533458,
0.025302524,
0.038766924,
0.032232516,
-0.049257144,
0.01844579,
-0.019588578,
0.026459964,
0.03114833,
-0.045682263,
-0.015720677,
-0.001815826,
0.023939967,
0.003030955,
0.051894348,
-0.031089725,
-0.053271554,
-0.013750098,
0.010197195,
0.022079272,
-0.027280428,
0.029199729,
-0.014746375,
0.055410624,
-0.014460678,
-0.054121323,
0.048290167,
0.07167339,
-0.0052854,
0.036862276,
0.030620888,
0.028247403,
-0.030708795,
0.048993424,
0.04547715,
-0.018050209,
-0.027778568,
-0.038444597,
-0.046971563,
0.021874156,
-0.004237843,
-0.03873762,
-0.006622317,
0.07712362,
-0.0525683,
-0.041081805,
-0.024511361,
-0.052011557,
-0.013618237,
0.00087769504,
-0.014138353,
0.070735715,
0.032877166,
0.038444597,
-0.070208274,
0.007904291,
0.004241506,
0.028232753,
-0.0045894706,
-0.014145679,
0.026899498,
0.03533856,
-0.026049731,
0.010072661,
0.04451017,
-0.04588738,
0.025287872,
0.024232991,
0.040319946,
0.006904351,
-0.015911141,
-0.019837648,
-0.02448206,
0.025024151,
-0.009655103,
0.024438106,
0.004399006,
0.03000554,
0.040554363,
-0.005029005,
-0.009222895,
0.013090796,
-0.043513894,
0.004409994,
-0.018782765,
0.0102558,
0.04281064,
-0.02026253,
0.033140887,
0.014914864,
-0.03533856,
0.025580896,
-0.027763916,
-0.056992944,
0.017962301,
0.020555554,
0.051454812,
-0.011127543,
-0.034518093,
0.03653995,
0.002074968,
0.039411575,
-0.0011116555,
0.028232753,
0.026870197,
0.023031596,
-0.004717668,
0.021610435,
0.016365327,
-0.019383462,
-0.012761146,
-0.030650191,
-0.060597125,
-0.011559752,
0.051308304,
0.059014805,
-0.0017444018,
-0.0099334745,
0.026357407,
-0.0054941787,
-0.031119028,
0.015823234,
-0.031558562,
-0.060421314,
-0.03152926,
0.031324144,
0.037243206,
-0.0072926064,
0.026342755,
0.010460916,
-0.0006199265,
-0.015793933,
-0.00890057,
0.01038766,
0.000073198484,
0.028188799,
-0.0064355144,
0.04421715,
-0.01422626,
-0.022518806,
-0.044305056,
0.031851586,
0.028833449,
-0.02845252,
0.0050912723,
-0.009142313,
0.0006286256,
0.031236237,
-0.022123225,
-0.03255484,
-0.048671097,
0.01268789,
-0.043396685,
0.053652484,
0.037213903,
-0.055469226,
-0.0015649252,
-0.047499005,
0.010138591,
0.004479587,
-0.028936008,
-0.0037726692,
-0.025082756,
0.007955571,
-0.009830917,
0.032525536,
0.0022965667,
0.010658707,
-0.012189751,
-0.050663654,
0.01128138,
-0.0230902,
0.0065234215,
-0.0042305174,
-0.0060765618,
-0.04515482,
0.017727884,
0.020028112,
-0.009552545,
-0.0015447799,
0.022181831,
-0.033873443,
-0.025009502,
0.012878355,
0.037389718,
-0.009581847,
0.033433907,
-0.0016922071,
0.0005773466,
0.011508473,
0.02846717,
-0.04398273,
0.02229904,
0.0062597007,
-0.019002533,
-0.0461218,
-0.026635777,
0.015720677,
-0.061886426,
0.05500039,
-0.010409637,
-0.020980436,
0.0075892922,
-0.06206224,
-0.052187372,
0.044041336,
-0.0031536585,
0.025610197,
0.023529736,
-0.017683929,
-0.007398827,
-0.004409994,
0.025844617,
-0.019822996,
-0.035924602,
0.014958817,
0.067746885,
0.01731765,
0.015413002,
-0.041081805,
-0.03961669,
0.030357169,
-0.004633424,
0.032994375,
0.011486496,
-0.002769066,
-0.004358715,
-0.02845252,
-0.018372534,
0.0055967364,
-0.03882553,
0.0038092972,
0.0069666184,
-0.014387422,
0.011676961,
-0.014475329,
-0.0070545254,
0.048407376,
-0.013068819,
-0.0122630065,
-0.026503917,
0.035485066,
0.006549061,
-0.011347311,
-0.002298398,
-0.04908133,
-0.033639025,
-0.034986928,
0.05435574,
-0.05819434,
0.042634826,
-0.062238056,
-0.050839465,
0.01715649,
0.006116852,
0.0025547931,
-0.037594832,
0.01743486,
-0.00832185,
0.011926031,
-0.068684556,
-0.013457075,
-0.029771123,
0.0032086002,
0.00883464,
0.03727251,
-0.0051865047,
-0.011625682,
0.013523005,
0.0021445611,
0.024584617,
0.035690185,
-0.06382038,
0.009369406,
0.007955571,
-0.010680683,
0.03281856,
0.015061375,
-0.023939967,
0.015046724,
-0.0045894706,
0.03627623,
-0.0499897,
-0.026958102,
-0.016306723,
-0.036832973,
0.04934505,
-0.015823234,
-0.014761027,
-0.018094162,
0.0031078737,
-0.021727646,
0.04515482,
-0.01807951,
-0.028276706,
-0.0019064799,
-0.044305056,
0.066105954,
-0.032906465,
-0.016863465,
-0.0070325485,
-0.004644412,
0.04831947,
-0.055146903,
0.03627623,
0.06856735,
0.029155774,
0.015852537,
-0.012394867,
0.056465507,
0.026518568,
-0.0042781336,
0.00039649656,
0.04820226,
-0.04694226,
0.0008580076,
-0.016599745,
-0.06135899,
0.0034833092,
0.020848576,
0.008468361,
0.006662607,
0.023998572,
0.0076112687,
-0.04152134,
-0.029771123,
0.023339272,
-0.0075453385,
0.028130194,
0.020291833,
0.016423931,
-0.038532507,
0.04908133,
-0.032203212,
-0.04266413,
-0.0004576193,
0.066633396,
-0.022006016,
-0.026108338,
0.019588578,
0.021595785,
-0.013603586,
-0.04219529,
-0.031734377,
0.009039755,
-2.93309e-7,
-0.016116258,
0.0024046188,
0.011918705,
-0.06593014,
0.0017324976,
0.020789972,
0.015984397,
-0.004124297,
0.024701826,
-0.014079749,
-0.064406425,
0.0013222656,
0.031617165,
-0.04691296,
-0.0005347667,
-0.019588578,
0.01728835,
-0.021771599,
-0.01831393,
0.030679494,
-0.016043002,
0.010219173,
0.0230902,
-0.041697152,
0.038239483,
-0.04368971,
0.01705393,
0.0009999406,
-0.013061494,
-0.07589292,
0.00022491794,
0.011493822,
0.0045381915,
0.01780114,
-0.017464163,
-0.0093474295,
0.024775082,
0.05845806,
-0.032525536,
-0.06745386,
0.027793217,
-0.0022544446,
-0.031851586,
0.017962301,
0.0113180075,
-0.025287872,
0.04984319,
-0.011874751,
-0.040173434,
-0.0003465911,
0.018577648,
-0.021346714,
0.023178108,
-0.059454337,
0.024452757,
-0.007501385,
0.012534053,
-0.025536941,
-0.015427654,
-0.0031426703,
0.0075160363,
-0.0020090379,
0.04090599,
0.030679494,
0.009178941,
-0.03627623,
-0.006702898,
-0.01885602,
0.015017422,
0.0007394249,
0.01147917,
-0.050282724,
0.012929633,
0.028056938,
-0.02537578,
0.03167577,
0.026416011,
-0.0028423218,
-0.0028258392,
-0.000108567256,
0.04565296,
-0.0046041217,
0.0064831306,
0.003007147,
0.061827824,
-0.052597605,
0.0033917397,
-0.026621128,
-0.015603467,
0.02360299,
0.04348459,
0.012189751,
0.024145084,
0.0021702005,
0.003725053,
-0.018489743,
0.038415298,
0.0070142346,
0.00012270332,
0.020716716,
0.024291595,
-0.029126473,
-0.05549853,
0.01882672,
-0.0025950838,
-0.025156012,
0.028686937,
0.02001346,
-0.019427415,
-0.0108784735,
0.04565296,
0.034723207,
0.0461804,
0.023896014,
-0.014153004,
-0.025947174,
0.00161071,
-0.037155297,
0.015618118,
-0.037243206,
0.0063512702,
0.0024595605,
-0.057403177,
-0.027734613,
0.016775558,
0.02281183,
0.029258333,
0.01831393,
0.017932998,
0.008812662,
-0.0025804325,
0.011654984,
0.009647777,
-0.04729389,
-0.074076176,
-0.0384739,
0.02666508,
-0.02769066,
-0.0026811592,
0.043367382,
0.031646468,
-0.002759909,
-0.030708795,
-0.045389242,
-0.032232516,
0.010043358,
0.028027637,
-0.04535994,
0.0061424915,
-0.02704601,
0.013676842,
-0.00038436358,
0.013281261,
-0.018519044,
0.039001342,
0.008798012,
0.0031225248,
0.0275588,
0.03856181,
0.044363663,
-0.05075156,
-0.027236475,
0.0107685905,
-0.0050656325,
-0.027529497,
0.031734377,
0.00586412,
0.031236237,
0.03539716,
0.0061901077,
-0.014607189,
0.021991365,
0.024408804,
-0.033111583,
-0.013222656,
0.036217626,
0.04509622,
0.006856735,
0.027807869,
0.009552545,
-0.01692207,
-0.009589173,
-0.017859744,
0.0075966176,
0.028012985,
-0.029595308,
-0.0093474295,
-0.03000554,
0.014116377,
-0.010893125,
-0.030034844,
-0.006549061,
-0.007882315,
0.042224593,
-0.009860219,
0.006977607,
0.0080727795,
0.034781814,
0.023309968,
0.0074940594,
0.036129717,
-0.007006909,
0.04266413,
-0.0096038245,
0.028613683,
-0.023925316,
0.003179298,
-0.022709271,
-0.054912485,
-0.0262695,
0.05936643,
-0.01204324,
-0.044041336,
0.013493703,
-0.045037612,
-0.011896728,
-0.055293415,
0.012863703,
-0.0576962,
0.014182306,
0.027837172,
-0.0141237015,
-0.017244395,
0.00042076252,
0.02473113,
0.016013699,
0.0028093567,
0.032613445,
0.018431138,
0.08814128,
0.007248653,
-0.028672287,
0.056875736,
0.033814836,
-0.039645992,
-0.023119504,
0.013061494,
-0.003203106,
-0.0062816776,
-0.0067761536,
-0.033258095,
0.007911617,
-0.012490099,
0.01576463,
-0.068098515,
0.019207649,
-0.0045931335,
-0.00954522,
0.0040107504,
0.06165201,
0.021082995,
0.023485782,
0.0048348773,
0.004651738,
-0.031382747,
-0.009325452,
-0.019588578,
0.011801495,
-0.009948126,
-0.047381796,
0.035953905,
-0.051630627,
-0.001158356,
0.0028771183,
-0.0003958098,
-0.009764987,
0.029331587,
0.013523005,
0.07624455,
0.028906705,
-0.025536941,
-0.030357169,
0.037125997,
0.013750098,
0.008211966,
0.055967364,
0.068860374,
-0.0062010963,
-0.022093924,
0.006875049,
0.05230458,
-0.0056480155,
-0.021566482,
-0.028642984,
0.009647777,
-0.04779203,
-0.060421314,
-0.00045349865,
0.021610435,
-0.017141838,
0.017420208,
-0.02193276,
-0.031558562,
-0.069212,
-0.026064383,
-0.044422265,
0.047059473,
-0.01731765,
-0.025859267,
0.038766924,
-0.058428757,
0.2552815,
0.07706501,
0.025683453,
-0.006684584,
0.08099152,
0.08175338,
0.00039168916,
0.009449987,
0.00021610435,
-0.0205116,
0.041199014,
-0.04040785,
-0.0058934223,
0.029697867,
-0.050839465,
0.026240196,
-0.060186896,
-0.010739287,
-0.04398273,
-0.064758055,
-0.025302524,
0.02628415,
0.013515679,
0.036832973,
0.02128811,
-0.0008964668,
0.007882315,
-0.05086877,
0.0067468514,
-0.029756472,
-0.016130907,
-0.036862276,
-0.014797654,
-0.016013699,
-0.012731844,
0.012790448,
-0.009047081,
-0.04281064,
0.004450285,
0.027441591,
-0.0031060423,
-0.03744832,
0.033111583,
-0.03566088,
-0.019251602,
0.0028661299,
-0.03894274,
0.042898547,
0.028833449,
-0.061124567,
0.03191019,
-0.06721944,
0.0067541767,
-0.029404843,
-0.0679813,
0.020086717,
-0.046473425,
-0.03897204,
0.015808582,
0.050341327,
0.00067257904,
0.0062267357,
-0.040847387,
0.044363663,
0.0017379918,
0.009757661,
-0.049198538,
0.026035082,
-0.00056544255,
-0.0048824935,
0.0107319625,
-0.02267997,
-0.032466933,
-0.03885483,
0.009838242,
0.004992377,
0.008673477,
0.032759957,
-0.04281064,
-0.058047827,
0.006102201,
0.009552545,
0.008644175,
-0.068098515,
0.018768115,
0.03563158,
-0.028144846,
0.0076112687,
0.032115307,
0.037506927,
0.023163456,
0.03525065,
0.031177633,
0.037038088,
0.011640333
] | All 🤗 Transformers models (PyTorch or TensorFlow) output the tensors before the final activation
function (like softmax) because the final activation function is often fused with the loss. Model outputs are special dataclasses so their attributes are autocompleted in an IDE. The model outputs behave like a tuple or a dictionary (you can index with an integer, a slice or a string) in which case, attributes that are None are ignored.
Save a model |
[
0.00086317677,
0.003121091,
-0.042673826,
-0.09153309,
-0.004029045,
0.026401592,
-0.010789044,
0.008739055,
0.0014399579,
0.03447387,
0.052235715,
-0.011434543,
0.040914666,
-0.049228117,
0.033338927,
0.042106356,
-0.0069692545,
-0.03112579,
-0.062535316,
0.0034509336,
-0.023876347,
-0.0053342283,
-0.07445221,
-0.040432315,
-0.0358358,
-0.02390472,
0.031494647,
-0.040148582,
0.048972756,
0.04406413,
-0.03166489,
0.0014053776,
-0.013420692,
-0.008022623,
-0.03455899,
-0.021776704,
0.007696327,
-0.05555542,
-0.045426063,
-0.025238277,
0.031012297,
-0.045709796,
0.0057279114,
-0.030501572,
-0.039070386,
0.0034083733,
-0.042985935,
-0.025834123,
-0.014293179,
-0.0011251888,
0.03799219,
0.0051568937,
0.037453093,
0.035239957,
-0.005880419,
-0.049284864,
-0.013661867,
0.014491794,
-0.02808982,
0.005132067,
0.013378131,
0.0022592444,
-0.0188826,
-0.01915215,
0.031324405,
0.021450408,
-0.007958782,
0.004376621,
-0.014449233,
0.007054375,
-0.06310279,
-0.0005089507,
0.0018354143,
0.0050540394,
0.011867239,
0.022046253,
0.02765003,
-0.020017544,
-0.028855905,
0.024188455,
-0.040886294,
0.01492449,
0.029792232,
-0.009299433,
-0.023252128,
-0.0072990973,
0.047837812,
-0.037396345,
-0.05005095,
-0.0047880374,
-0.0026156872,
0.0368005,
-0.0039900313,
0.04151051,
0.044120878,
0.03200537,
-0.01061171,
0.033622663,
0.030444825,
-0.040829547,
0.030813681,
0.07780029,
0.0196345,
0.033622663,
-0.017208561,
0.017378803,
-0.016669463,
0.01927983,
0.0131724235,
-0.044972084,
0.049852338,
0.012463084,
-0.015151478,
0.004344701,
-0.010512402,
0.007150136,
-0.029565245,
0.042106356,
-0.04548281,
-0.046816368,
0.007980063,
-0.002349685,
-0.01800302,
-0.078878485,
0.00093189394,
-0.0230677,
-0.028061446,
0.04207798,
-0.035466943,
-0.026756262,
-0.027423041,
0.00054530427,
0.0016784731,
0.069742195,
-0.017009946,
-0.021422034,
0.0120162,
0.012044574,
0.00023297349,
-0.054250237,
0.014796809,
0.022003692,
-0.0029295697,
0.047185224,
0.028685665,
0.00977469,
0.00085475337,
-0.05433536,
-0.05385301,
0.014491794,
-0.020060103,
-0.016797144,
0.0039900313,
0.04148214,
0.022656284,
-0.014215151,
-0.0427022,
0.03262959,
-0.006940881,
-0.015080545,
0.011902707,
0.010327974,
-0.054136742,
0.03600604,
-0.005571857,
0.00983853,
-0.019719621,
-0.018641425,
-0.0056073237,
-0.034530617,
0.017676724,
-0.0075260857,
-0.01840025,
-0.021095738,
0.016967386,
0.030842055,
0.02214556,
0.011285582,
-0.014910303,
-0.01283194,
-0.040148582,
-0.0072139762,
0.069288224,
0.021464594,
0.002456086,
-0.016853891,
-0.02518153,
0.023933094,
-0.026075298,
0.027791897,
0.03623303,
0.05036306,
0.010725204,
0.0035413743,
-0.03399152,
-0.009278152,
-0.058279283,
0.029792232,
0.013683147,
0.014569821,
0.004170913,
0.029735485,
-0.06327303,
0.029962474,
0.00023674185,
0.010349254,
-0.036857247,
0.037850324,
-0.022244867,
0.0060896743,
0.039410867,
0.00638405,
-0.05617964,
-0.006334396,
0.03518321,
-0.0062811957,
-0.02442963,
-0.02721024,
-0.011874333,
-0.042418465,
0.039439242,
-0.027749337,
0.029820606,
0.019450072,
-0.004341154,
-0.0042631268,
0.007370031,
0.03175001,
0.023876347,
0.03177838,
0.029480124,
0.039864846,
-0.008377292,
0.017463923,
-0.0018318676,
-0.00891639,
0.025380146,
0.002328405,
-0.006905414,
0.031551395,
0.012583672,
0.023351436,
-0.009831437,
0.060038444,
-0.025990177,
0.005458363,
-0.007589926,
0.020585014,
0.002691941,
-0.013399412,
-0.064180985,
0.03671538,
0.011597691,
-0.011626064,
-0.025522012,
0.031267658,
0.009122098,
0.008710681,
-0.014896116,
-0.024216829,
0.0065471977,
0.020599201,
-0.01067555,
-0.058960248,
0.021450408,
0.0432413,
-0.0036069881,
0.012597859,
-0.01237087,
-0.041141655,
-0.0033746797,
-0.07326052,
-0.0495686,
-0.0005000839,
-0.020230345,
0.016754584,
0.0025766734,
-0.031835128,
0.016683651,
-0.016272234,
0.024004027,
-0.0019276284,
-0.024231017,
0.06815328,
0.023961468,
0.02945175,
-0.06605364,
0.0058236723,
-0.059754707,
-0.0047596637,
0.009859811,
0.014342832,
0.022202307,
-0.027933765,
0.00006561384,
0.002314218,
0.051044025,
-0.040262073,
-0.03972298,
-0.0383043,
-0.016343167,
0.015165665,
0.023720292,
0.03796382,
0.0029898633,
0.013413598,
0.013505813,
-0.019265644,
0.035722308,
0.02756491,
-0.047270343,
0.037878696,
0.02364936,
0.035466943,
-0.0377652,
0.0043021403,
0.04278732,
-0.011633158,
-0.012498551,
-0.047440585,
-0.052008726,
-0.012285749,
-0.008093556,
0.012335403,
-0.007887849,
0.06219483,
-0.01065427,
-0.07320377,
-0.023450743,
-0.019847302,
0.004816411,
-0.019747995,
-0.018144889,
0.012846127,
0.05737133,
-0.005004386,
-0.02729536,
0.0034722139,
-0.042900816,
0.023535864,
0.0119239865,
0.0054335357,
0.053228788,
0.005852046,
-0.019620314,
0.012094228,
0.047525704,
-0.06616713,
-0.021251792,
-0.01725112,
0.0495686,
-0.010562056,
0.00027176546,
0.009994585,
0.043780398,
-0.006660692,
-0.014541447,
0.012158069,
0.017506484,
-0.04979559,
0.025493639,
0.005674711,
-0.048462033,
0.005688898,
-0.03262959,
-0.00554703,
0.022869086,
0.03543857,
0.04877414,
-0.031835128,
0.04556793,
0.0032771456,
-0.011321048,
0.023266315,
-0.008682308,
-0.028373556,
0.012711353,
0.032856576,
0.022727218,
-0.031863503,
0.0000032730725,
0.0289694,
0.030019222,
0.044659976,
0.045511182,
-0.022329988,
-0.038134057,
0.003748856,
-0.006380503,
0.026671141,
0.034757607,
0.023096073,
-0.023450743,
-0.011760838,
-0.038644783,
-0.048887637,
0.044092506,
0.050192818,
0.033140313,
0.007533179,
0.05163987,
0.004692277,
-0.029565245,
0.0299341,
-0.017463923,
0.01796046,
-0.050164446,
0.05132776,
0.015860818,
-0.023365622,
-0.042900816,
-0.0024046588,
0.022103,
-0.0046177963,
-0.009987491,
0.0020358027,
-0.035239957,
-0.018840041,
-0.03353754,
0.050646797,
-0.073941484,
-0.030756934,
-0.058052294,
0.014541447,
0.04644751,
-0.05209385,
-0.024316138,
-0.08307777,
0.02597599,
0.014796809,
-0.0432413,
-0.07808402,
-0.024883607,
-0.012555298,
-0.059811454,
0.005664071,
0.027976325,
-0.02641578,
0.0036353618,
-0.031012297,
-0.028997773,
0.012647512,
-0.008384385,
0.01986149,
0.013427785,
0.004862518,
0.0012253829,
0.031835128,
-0.010051332,
-0.0014239978,
0.03455899,
-0.025451079,
-0.012846127,
-0.04094304,
0.044432987,
-0.01787534,
0.034048267,
-0.040716052,
0.0188826,
0.011023127,
0.027678404,
-0.04502883,
0.013725707,
-0.037538216,
0.0012502098,
0.0052455612,
0.02218812,
0.007320377,
0.052462704,
0.028884279,
-0.019960796,
0.0055789505,
0.03231748,
-0.038900144,
0.018527932,
-0.030983923,
0.07728957,
0.009349086,
-0.00854044,
0.016882265,
-0.07223907,
0.05969796,
-0.009561888,
-0.037878696,
-0.0041460856,
-0.06208134,
-0.05243433,
0.03450224,
-0.045681424,
0.04644751,
-0.0027504615,
-0.02773515,
-0.018669799,
0.014144218,
-0.022131372,
-0.008951857,
0.003115771,
0.030047596,
0.03192025,
0.017265309,
0.019095402,
-0.017265309,
-0.047440585,
0.0017884206,
-0.008767429,
0.04301431,
-0.014881929,
-0.020272905,
0.014505981,
-0.0011402622,
-0.041226774,
-0.018953536,
-0.010469842,
0.033055194,
0.022216493,
-0.056690365,
0.03121091,
-0.016683651,
-0.013051836,
0.06440797,
0.00003995573,
-0.04534094,
-0.012172256,
0.034445494,
0.018840041,
0.027848644,
0.011200461,
-0.059527718,
-0.028160753,
-0.008419853,
0.044972084,
-0.0476392,
0.0036264951,
-0.034360375,
-0.033055194,
0.005238468,
0.06247857,
0.0118317725,
-0.056974098,
0.05251945,
-0.013321384,
0.027196053,
-0.059584465,
-0.04596516,
0.028487049,
-0.0053235884,
-0.017705098,
0.015903378,
0.031636514,
-0.014881929,
0.024245203,
0.002681301,
0.030217836,
0.014321552,
-0.05291668,
0.03217561,
-0.011796306,
-0.0009013037,
0.0005346642,
0.05688898,
0.008199957,
0.041311897,
-0.0032576388,
0.036261402,
-0.013321384,
0.019946609,
0.01197364,
-0.036176283,
0.057655066,
-0.009661196,
0.02777771,
0.000508064,
-0.02298258,
-0.0019081216,
-0.027763523,
-0.015293347,
-0.0136193065,
-0.03399152,
-0.034814354,
0.042418465,
0.00009781118,
-0.03631815,
-0.008377292,
0.034048267,
0.047922935,
-0.042475212,
0.0001238018,
0.030104343,
0.007923315,
0.0057279114,
-0.030813681,
0.01747811,
0.033395674,
0.004968919,
-0.0024543125,
0.059527718,
-0.024273576,
-0.033849653,
0.03248772,
-0.04031882,
-0.010895445,
0.022173934,
0.015648015,
0.015435214,
0.021946944,
0.005664071,
-0.040262073,
0.016314795,
-0.013420692,
0.03055832,
-0.00039589975,
0.010441468,
0.035807427,
-0.0008104197,
0.061513867,
0.008831269,
-0.059073742,
-0.0037701363,
0.049199745,
0.03095555,
-0.029990848,
-0.01752067,
0.022968393,
-0.0510724,
-0.025394332,
-0.022046253,
-0.001064895,
-0.012888688,
-0.018811667,
0.0053200414,
-0.03895689,
-0.040886294,
0.020003356,
0.012690073,
-0.017619979,
0.014910303,
0.014584008,
-0.04031882,
-0.035949294,
0.019932423,
0.03328218,
-0.014640754,
0.014328646,
-0.03646002,
-0.015690576,
-0.0062279953,
-0.026217164,
0.05419349,
-0.030217836,
0.027309546,
0.00047126703,
0.019294018,
0.04948348,
-0.038616408,
0.06429448,
0.0010276547,
-0.01898191,
-0.04548281,
-0.03112579,
0.027281173,
-0.023308875,
-0.003213305,
0.005990367,
0.0136264,
0.0619111,
0.06730207,
-0.022301614,
-0.05138451,
0.014278992,
-0.034530617,
-0.029877353,
0.0018815214,
-0.02214556,
0.016811332,
0.018542118,
0.015435214,
-0.0016669463,
0.007859475,
0.016442476,
-0.0152224125,
-0.0061428747,
-0.018173262,
-0.016300607,
-0.019308204,
-0.030529946,
-0.021691583,
-0.02430195,
-0.0064549837,
0.040886294,
0.00023718519,
0.024514752,
-0.038900144,
0.03297007,
-0.020131037,
0.038616408,
-0.024372883,
-0.013186609,
-0.00340128,
-0.066734605,
-0.06088965,
0.041709125,
0.0151372915,
-0.041879367,
0.021109926,
0.022386735,
0.002711448,
0.0010914952,
0.023791226,
0.0062811957,
-0.03342405,
-0.028855905,
0.01232831,
0.019435886,
-0.031551395,
-0.013002181,
-0.025635507,
-0.03790707,
0.029877353,
0.0075473655,
0.023975654,
0.06991244,
0.0121013215,
0.014867743,
0.025777375,
0.0289694,
0.019407513,
-0.011250115,
0.014052004,
0.005004386,
-0.015094731,
-0.03748147,
0.0041460856,
0.041879367,
-0.029962474,
0.03983647,
-0.020187784,
0.020343838,
-0.0133497575,
0.027054185,
-0.02689813,
0.058449525,
-0.009583169,
-0.023393996,
-0.020088477,
-0.044347867,
-0.0038091498,
-0.0069373343,
-0.03271471,
-0.038729902,
0.007093389,
-0.049114626,
0.026132045,
0.011753745,
-0.019563567,
-0.017322056,
0.04148214,
-0.003887177,
0.047922935,
0.025834123,
0.0027079012,
0.0007625393,
-0.025266651,
-0.039694604,
0.03975135,
0.00013277937,
-0.022117186,
-0.011881426,
0.048490405,
0.009349086,
-0.0014674448,
-0.015506148,
-0.0096895695,
-0.02681301,
-0.006490451,
0.030047596,
-0.028997773,
0.000048656213,
-0.048149925,
0.012583672,
-0.00553639,
-0.0016554196,
0.0056924447,
0.052178968,
0.03782195,
-0.0038233367,
0.03271471,
0.039779726,
0.0063769566,
-0.022812339,
0.011328142,
0.027891206,
0.018343503,
-0.04636239,
0.026302285,
-0.011938173,
0.03112579,
0.055583794,
0.03407664,
0.05754157,
-0.0011792759,
0.024117522,
-0.019379139,
-0.0015924658,
0.024684994,
0.03129603,
-0.018570492,
0.005061133,
0.025805749,
-0.017563231,
-0.016328981,
-0.018258383,
-0.008646841,
0.003012917,
-0.015009611,
-0.027678404,
-0.03175001,
0.012569485,
0.00022155757,
-0.017463923,
0.027054185,
0.010108079,
0.03702749,
0.006568478,
-0.030842055,
0.022074627,
-0.0026883944,
0.040659305,
0.022301614,
0.02218812,
0.01492449,
0.011477103,
0.012973808,
0.0422766,
-0.009873997,
-0.014122937,
-0.03399152,
-0.05555542,
0.0069692545,
0.021152485,
-0.010455655,
-0.029792232,
-0.004639076,
-0.032601215,
-0.014179684,
-0.030983923,
0.0045433156,
-0.042588707,
0.026089484,
0.039070386,
0.0017919673,
-0.043184552,
0.04159563,
-0.02394728,
-0.0063273027,
0.00635213,
0.05283156,
0.04732709,
0.036034416,
0.0358358,
0.000633085,
0.029253136,
0.0031707447,
-0.017648352,
-0.008093556,
-0.0035821614,
-0.0048341444,
0.017790219,
-0.032771457,
-0.048008054,
0.03518321,
-0.0021457502,
-0.037538216,
-0.035098087,
0.030870428,
0.012860314,
-0.023337249,
-0.031976998,
0.05626476,
0.00040454484,
-0.001654533,
-0.014725875,
-0.02329469,
-0.0022539243,
-0.03175001,
-0.042929187,
0.009412927,
-0.003876537,
-0.012753913,
0.0073061907,
-0.038105685,
0.012526925,
0.0034615737,
-0.005664071,
-0.025947616,
0.034984592,
0.0072246166,
0.048206672,
0.018428624,
-0.033707783,
-0.015775697,
0.045681424,
0.0480648,
0.00096292753,
0.03450224,
0.06435122,
-0.038162433,
-0.0094200205,
0.048490405,
-0.0004796904,
-0.0031246378,
-0.016527597,
-0.0044049947,
-0.017180188,
0.023833787,
-0.06185435,
0.0024543125,
0.03799219,
-0.044716723,
0.0074338713,
-0.004550409,
0.006940881,
-0.06991244,
-0.0035821614,
-0.0535409,
-0.0007745094,
-0.00065613847,
-0.016626904,
0.019421699,
-0.052405957,
0.23697594,
0.04380877,
0.011023127,
0.027621657,
0.09141959,
0.06565641,
0.03192025,
0.0059726336,
0.028288435,
-0.08920646,
0.04159563,
-0.057087593,
0.020698508,
-0.0144847,
-0.028543796,
0.049284864,
-0.041170027,
0.026699515,
0.009093724,
-0.0203864,
-0.05634988,
0.046816368,
-0.015548708,
0.07598438,
-0.008909296,
0.006962161,
-0.0104911225,
-0.06957196,
0.008015529,
-0.035864174,
-0.007150136,
-0.008136117,
0.010682643,
0.008150304,
-0.0019648687,
0.012846127,
-0.016258048,
-0.045426063,
-0.007320377,
-0.0076182997,
0.00007331683,
-0.041709125,
0.0006313116,
0.0018762014,
0.010448562,
0.046646126,
0.022443483,
0.0230677,
0.022826524,
-0.0029153829,
0.05759832,
-0.04199286,
0.011391982,
-0.008086463,
-0.040886294,
0.032913323,
-0.046220522,
-0.05935748,
-0.0041141654,
0.0066677853,
0.009611541,
0.012583672,
-0.06111664,
0.022358362,
0.016485035,
-0.016839705,
0.014385393,
0.038389422,
-0.0034385202,
-0.029508498,
0.043212924,
-0.008604281,
-0.03407664,
0.0052987617,
0.031012297,
-0.015194039,
-0.038644783,
0.03245935,
0.02641578,
-0.05873326,
-0.009285246,
-0.007930409,
0.000383043,
-0.024982916,
0.011313955,
-0.021152485,
-0.036403272,
-0.00043247506,
-0.008419853,
-0.0015862591,
-0.024713367,
0.030842055,
0.020060103,
0.005082413,
0.054278612
] |
Custom model builds
You can modify the model's configuration class to change how a model is built. The configuration specifies a model's attributes, such as the number of hidden layers or attention heads. You start from scratch when you initialize a model from a custom configuration class. The model attributes are randomly initialized, and you'll need to train the model before you can use it to get meaningful results.
Start by importing [AutoConfig], and then load the pretrained model you want to modify. Within [AutoConfig.from_pretrained], you can specify the attribute you want to change, such as the number of attention heads: |
[
0.008649437,
-0.018697627,
-0.03145769,
-0.0054843994,
-0.02566285,
-0.01914009,
0.006997337,
0.0062301634,
0.017498694,
0.025748488,
0.0065441695,
0.0051311427,
0.0061730715,
-0.0054879677,
0.03328463,
0.036053594,
0.031029496,
-0.027175788,
-0.08775039,
-0.009327404,
-0.033769913,
0.00062042935,
-0.061031338,
-0.03485466,
-0.007693146,
-0.010476381,
-0.019967923,
0.0080499705,
0.04033549,
0.023892999,
-0.012767197,
0.042162437,
-0.022194512,
0.011810905,
-0.046929616,
-0.05018386,
-0.03237116,
-0.024478192,
-0.02847463,
-0.033684276,
-0.0025727078,
-0.031743146,
0.056920715,
-0.05203935,
-0.044959944,
-0.02242288,
-0.0035575447,
-0.0059625446,
-0.004039258,
-0.016499585,
0.026904602,
0.008942033,
0.013031247,
0.019454096,
-0.014829645,
-0.014529912,
-0.016142761,
0.0067332867,
-0.061830625,
0.0056949263,
0.022308696,
0.04398938,
-0.03257098,
-0.020952761,
0.012588784,
-0.000108051056,
-0.016642315,
0.012103502,
-0.068053655,
-0.018212344,
-0.034312285,
-0.03023021,
-0.0026797554,
0.0032167768,
-0.0012801095,
0.002174848,
0.024763651,
-0.018883176,
0.0031935833,
0.04213389,
-0.0054879677,
0.03279935,
0.031628963,
0.01809816,
-0.012239096,
-0.039450567,
0.06382885,
-0.052753,
0.020067835,
-0.020481752,
-0.003491532,
0.024592375,
-0.025691396,
0.03014457,
0.034540653,
0.042248074,
-0.00354684,
0.031400595,
-0.012660149,
-0.026733324,
0.013252478,
0.08152736,
-0.002303305,
0.046358697,
-0.027033057,
-0.009598591,
0.019325638,
-0.021452315,
-0.04724362,
-0.006822493,
0.0028117807,
0.010933116,
-0.005024095,
-0.0041998294,
0.022051781,
0.0025816285,
0.007054429,
0.003921506,
-0.012060683,
-0.033912644,
0.022322968,
-0.011682449,
-0.03274226,
-0.066226706,
0.03148623,
-0.03242825,
-0.015143651,
0.038965285,
-0.011782359,
-0.026776144,
0.010083873,
-0.038822554,
0.036253415,
0.030487124,
0.014094586,
0.0055700373,
0.000887156,
-0.023193622,
0.02313653,
-0.0474149,
0.01928282,
0.04832837,
0.03870837,
0.050383683,
0.031058043,
-0.019297093,
0.01738451,
-0.028346173,
-0.03870837,
0.047300715,
-0.044588845,
0.036110684,
0.016870683,
0.024392553,
0.0019785943,
0.0036057162,
-0.023264986,
0.029459467,
-0.0015218584,
0.03094386,
-0.019454096,
0.015357746,
-0.043646827,
0.025149021,
0.0009768083,
0.031600416,
0.0187119,
-0.026876055,
0.013288161,
-0.036110684,
0.02466374,
0.017313147,
0.02542021,
0.022394333,
0.035397034,
0.016513858,
0.075646885,
0.006562011,
-0.0009598591,
-0.017684244,
-0.006041046,
-0.016485313,
0.04498849,
0.018797537,
0.008677983,
-0.032656617,
-0.028788637,
0.0181838,
-0.021295313,
0.048014365,
-0.006165935,
0.0741625,
-0.0062694144,
0.018497804,
-0.044588845,
-0.013780579,
-0.036453236,
0.021980416,
-0.007079407,
-0.009570045,
-0.01742733,
0.05475122,
-0.037680715,
0.035768133,
0.0013523665,
-0.017355965,
0.007857285,
-0.0013942935,
0.018226618,
0.018340802,
0.038480002,
-0.03257098,
-0.04099205,
-0.039450567,
0.030030387,
-0.0022943844,
0.0058447924,
0.019753829,
0.003305983,
-0.0071150893,
0.029630743,
-0.00007225705,
0.055778876,
-0.0016726169,
-0.012360416,
0.005388057,
-0.004588769,
0.02694742,
-0.00090321316,
-0.00044380102,
0.00047680733,
0.014579867,
0.020396113,
0.03023021,
0.03850855,
0.010205193,
0.023165075,
0.024192732,
0.007850149,
0.025876945,
0.063257925,
0.016542405,
0.014001811,
0.04918475,
-0.008392523,
-0.015628932,
-0.0075860983,
0.011939363,
-0.043332823,
0.00580911,
-0.07119371,
0.029002732,
-0.0012176652,
-0.007892968,
-0.07724547,
-0.005338101,
0.031942967,
0.002790371,
-0.010519199,
-0.012831425,
0.025463028,
0.03200006,
0.002074937,
-0.048042912,
0.048642375,
0.03571104,
0.040449675,
0.015643205,
0.038451456,
-0.052353356,
0.038308725,
-0.016842138,
-0.06925259,
-0.015143651,
-0.014487092,
-0.0053309645,
-0.02052457,
-0.0926603,
0.0049134796,
-0.02270834,
0.02333635,
-0.020510297,
-0.044303384,
0.03979312,
0.03399828,
0.027703889,
-0.04122042,
0.0017225724,
-0.013266752,
-0.0045066993,
0.013088339,
-0.028588815,
0.015372018,
-0.0013487983,
-0.0122462325,
-0.0139589915,
0.0058697704,
-0.031942967,
-0.045388132,
0.0046851113,
-0.030801129,
0.022365788,
-0.02252279,
0.037595075,
-0.0034380083,
0.033941187,
0.0031935833,
-0.031029496,
0.051154424,
0.06576997,
-0.0064192805,
0.013288161,
0.042076796,
0.047329262,
-0.04193407,
0.04142024,
0.06491359,
-0.02028193,
-0.049869854,
-0.02199469,
-0.04938457,
0.012938472,
-0.030173117,
-0.029031277,
-0.02694742,
0.055065226,
-0.008727938,
-0.038794007,
-0.01590012,
-0.023693176,
-0.00049108034,
-0.02313653,
0.0124960095,
0.06594125,
-0.006779674,
-0.00080330216,
-0.046073236,
0.003561113,
-0.022494245,
0.04361828,
0.019982196,
-0.009256039,
0.03251389,
0.03257098,
-0.0033630752,
-0.009470134,
0.024492465,
-0.039878756,
-0.011975045,
-0.019539734,
0.024892109,
0.025905492,
0.014137404,
0.01942555,
-0.00778592,
0.019625371,
-0.003675297,
0.013345253,
0.010105282,
-0.0010856399,
0.00854239,
-0.0068546073,
-0.025734214,
0.02090994,
-0.026975965,
-0.016014304,
-0.005719904,
0.007907241,
0.020039288,
-0.06268701,
0.023008073,
0.0067332867,
-0.0037109794,
-0.00509546,
-0.025748488,
-0.034455016,
0.023165075,
0.017755609,
0.03522576,
-0.018312257,
-0.050383683,
-0.013666395,
0.009912597,
0.041248962,
0.03770926,
0.0137092145,
-0.013345253,
0.0062551415,
0.0055843103,
0.0009197163,
-0.011653903,
-0.007857285,
0.023479082,
-0.020210564,
0.0004219455,
-0.07427668,
0.029773474,
0.045102675,
0.03979312,
-0.003561113,
0.04747199,
-0.012039274,
0.0023532605,
0.034826115,
0.010626247,
0.029174007,
-0.046016145,
0.034654837,
0.023978636,
0.041448787,
-0.03085822,
-0.007136499,
0.002845679,
0.0030008978,
0.0010062463,
0.0062979604,
-0.060860064,
-0.015828755,
-0.040164217,
0.030772584,
-0.06479941,
-0.023264986,
-0.051011693,
0.020653028,
0.01347371,
-0.0156146595,
0.012988428,
-0.011982182,
0.012788606,
-0.004363969,
0.031942967,
-0.025634304,
-0.028545996,
0.023892999,
-0.051810984,
0.04099205,
0.016585223,
-0.03365573,
-0.005776996,
-0.062116086,
-0.011689585,
0.019539734,
-0.054380123,
-0.02866018,
0.014579867,
-0.0068760165,
-0.033627182,
0.012510283,
0.029773474,
-0.0129099265,
0.025149021,
-0.010490653,
-0.018497804,
-0.0327708,
-0.0056806533,
-0.03619632,
0.017926885,
-0.008228383,
0.0019286388,
0.022579882,
-0.008442478,
-0.0051703933,
0.049441665,
-0.042619172,
0.0137377605,
-0.009063354,
0.044017926,
-0.031600416,
0.02142377,
0.011511173,
0.011097256,
0.03748089,
-0.006893858,
0.004578064,
-0.008264066,
-0.035682496,
-0.009063354,
-0.017841248,
0.014287271,
0.023735994,
-0.04755763,
0.042876087,
0.0051418473,
-0.02380736,
-0.027775254,
-0.064057216,
-0.043075908,
-0.0046137464,
-0.01909727,
0.03242825,
0.029102642,
-0.02761825,
0.009491543,
-0.008342567,
0.011896543,
-0.004624451,
-0.02604822,
0.010604837,
0.015814481,
0.066112526,
0.016799318,
-0.0292311,
-0.02704733,
0.021466589,
-0.009241766,
0.020196293,
-0.00014228394,
-0.024692286,
0.020752938,
0.010683339,
-0.02071012,
0.000343221,
-0.011275669,
0.021252494,
0.04070659,
-0.0392222,
-0.003361291,
-0.03813745,
-0.022008963,
0.027247153,
-0.019596826,
-0.06936677,
-0.029744927,
-0.0012319381,
0.013794852,
0.029773474,
-0.0012792174,
-0.0145655945,
-0.03819454,
-0.014230179,
0.01475828,
-0.006669058,
-0.023307806,
-0.03242825,
-0.052753,
0.017741336,
0.048299823,
0.038594186,
-0.050383683,
0.037766352,
-0.03947911,
0.045102675,
-0.043447006,
-0.005794837,
-0.007068702,
-0.011732404,
-0.030601308,
0.037366707,
0.0034148148,
0.01459414,
0.015700297,
0.0024549556,
0.03828018,
0.035054483,
-0.05012677,
-0.0016690487,
0.0018269437,
-0.016199853,
-0.013623577,
0.025976855,
-0.008834986,
0.026219497,
-0.01233187,
0.029488014,
-0.040221307,
0.021580772,
-0.04633015,
-0.006519192,
-0.00065120554,
-0.028831456,
-0.017327419,
-0.067140184,
0.04938457,
-0.020453205,
0.036824334,
-0.04127751,
0.028488904,
-0.035882317,
-0.067026,
0.018726174,
0.0052988506,
-0.018512078,
0.0012488873,
0.016685134,
0.072050095,
-0.046587065,
-0.026533503,
0.058176737,
-0.021552227,
-0.00008067589,
-0.056178518,
0.059261486,
0.013609303,
0.0054344437,
-0.04790018,
0.06833912,
-0.039250743,
0.008863532,
-0.014544184,
-0.037509438,
-0.021480862,
0.047100894,
0.02813208,
0.0030240915,
0.062116086,
0.0053987615,
-0.038480002,
0.00027988455,
0.015785936,
0.0474149,
0.004103487,
0.008913487,
0.01708478,
-0.0058447924,
0.0034397924,
-0.021309586,
-0.0071008164,
-0.0028153488,
0.04036404,
0.022351515,
-0.028645907,
0.0037074112,
-0.0030990245,
-0.048071455,
-0.049156204,
0.006562011,
0.019496916,
-0.02623377,
0.02509193,
0.0020606641,
0.003878687,
-0.0181838,
0.045159765,
0.025306026,
-0.036339052,
-0.029887658,
-0.009477271,
-0.034740478,
-0.032884985,
0.024578102,
0.037909083,
-0.0317146,
0.008792167,
-0.05283864,
-0.03913656,
-0.03274226,
-0.019454096,
0.04947021,
0.009391633,
0.018454986,
0.0063300743,
0.001631582,
0.06257282,
-0.0059268624,
0.035311397,
0.008620891,
-0.035625402,
-0.058519293,
0.026633414,
0.037195433,
-0.045645047,
0.006308665,
-0.026961694,
0.012995564,
0.03128641,
0.050868966,
-0.0099839615,
-0.09351668,
0.007814466,
-0.009348813,
0.011411262,
0.026362227,
-0.007850149,
-0.010576291,
0.04627306,
0.013766306,
-0.040735137,
0.015257834,
0.004610178,
-0.02633368,
-0.018597716,
-0.051354244,
0.012995564,
-0.029031277,
-0.011325624,
-0.026861781,
-0.049356025,
-0.021366678,
0.022265876,
0.033313178,
-0.031914424,
-0.0064442586,
0.024835017,
0.018269436,
-0.0026565618,
-0.0033773482,
0.013074066,
0.02138095,
-0.040678043,
-0.025405936,
0.06354339,
0.046415787,
-0.028503176,
0.01518647,
0.0015414838,
-0.028160624,
-0.044303384,
0.012289051,
0.04090641,
-0.040478222,
-0.008121336,
0.024892109,
0.020339021,
-0.0459876,
-0.00039830586,
-0.017941158,
-0.00148796,
0.01842644,
0.038023267,
0.0099554155,
0.04384665,
0.02761825,
0.011525446,
0.0018715468,
0.007628917,
0.03037294,
0.0009509385,
0.030801129,
-0.028988458,
0.0016788613,
-0.009027671,
-0.021737775,
0.015628932,
-0.03237116,
0.049498755,
0.016870683,
0.01942555,
-0.012510283,
0.025034837,
-0.020296203,
0.01590012,
0.03348445,
-0.0147868255,
0.012831425,
-0.04122042,
0.013716351,
0.0016235535,
-0.031400595,
-0.055207957,
-0.01557184,
-0.03205715,
0.0068546073,
-0.0024050002,
-0.039108016,
-0.012196276,
-0.017327419,
-0.011910817,
0.004917048,
-0.0031721739,
0.022394333,
0.010597701,
0.009413042,
-0.05880475,
-0.0042961724,
0.012160594,
-0.011718132,
0.0065655787,
0.0031079452,
0.031257864,
0.038879644,
0.0062908237,
0.016328309,
-0.0070722704,
-0.006965223,
0.04376101,
-0.028417539,
0.02641932,
-0.029830566,
-0.00030553137,
-0.038537093,
0.03414101,
0.0006654785,
0.022051781,
0.007835876,
0.004349696,
0.041191872,
0.0031632532,
0.015343472,
0.00038380982,
-0.011846588,
0.042590626,
0.012874244,
-0.025477301,
0.026890328,
-0.000034232893,
0.04476012,
0.032685164,
0.036025047,
0.0058697704,
0.056635257,
0.008849259,
-0.041448787,
-0.035168666,
0.028017895,
0.029630743,
-0.021509407,
-0.009156128,
0.000032420892,
-0.0456165,
-0.0057555865,
0.0036931382,
0.03748089,
-0.011097256,
0.040592406,
-0.03756653,
-0.032856442,
0.029116916,
0.020053562,
-0.016199853,
0.033513,
0.003575386,
0.039250743,
0.02684751,
0.0067903786,
0.027275698,
0.022066055,
0.03979312,
-0.015072285,
0.0056592436,
0.013466573,
0.03836582,
-0.00580911,
0.028060714,
-0.049213298,
-0.0015709219,
-0.07775929,
-0.018597716,
-0.012545965,
0.0036253415,
-0.025448754,
-0.03722398,
0.013637849,
-0.010076736,
-0.012938472,
-0.09237484,
-0.02847463,
-0.061488073,
0.01647104,
0.011967909,
0.013502256,
-0.032685164,
0.038794007,
0.017213235,
0.02337917,
-0.02152368,
0.05595015,
0.031743146,
-0.008363977,
0.028917093,
-0.0051240064,
0.008292612,
0.0068724486,
-0.013830535,
-0.043589734,
0.03548267,
-0.016528131,
0.006083865,
-0.009441588,
-0.077074185,
0.032913532,
0.033513,
-0.02056739,
-0.039307836,
0.05104024,
-0.003232834,
-0.0015138298,
-0.0052703046,
0.08500998,
0.0023818065,
0.0037859126,
-0.03094386,
0.029573651,
-0.035054483,
-0.0064192805,
-0.047443446,
0.02504911,
0.014101721,
-0.07227846,
-0.017441602,
-0.042733356,
-0.017698517,
0.00660483,
-0.013031247,
-0.0097341845,
0.044360477,
-0.017584333,
0.034597747,
0.024278369,
-0.02190905,
-0.031058043,
0.047015253,
0.042105343,
0.04904202,
0.048385464,
0.059832405,
-0.012774333,
-0.004089214,
0.023393443,
0.033969734,
-0.0024799334,
-0.016485313,
-0.02542021,
-0.0062872553,
-0.03422665,
-0.08438196,
-0.07176463,
0.00032225752,
0.0152292885,
-0.024207003,
0.013138294,
-0.011161484,
-0.051154424,
-0.027775254,
-0.017270327,
-0.019068725,
0.004624451,
-0.03279935,
0.020025017,
-0.045530863,
0.2416133,
0.027818073,
0.018340802,
0.039650388,
0.05517941,
0.062629916,
-0.0004634264,
-0.01304552,
0.011539719,
-0.054637037,
0.014843917,
-0.023264986,
-0.021766322,
-0.0021677115,
0.002217667,
0.011689585,
-0.038936738,
0.0152007425,
-0.001816239,
-0.037166886,
-0.04013567,
0.07170754,
-0.0062694144,
0.09871205,
0.019154362,
-0.052867185,
0.008042835,
-0.060860064,
-0.023935817,
-0.022408606,
0.02333635,
-0.016742226,
0.020110654,
-0.032542434,
-0.0133238435,
0.007978606,
0.018540625,
-0.053495195,
-0.0032685164,
-0.0029420217,
-0.0059304307,
-0.025034837,
-0.013302434,
-0.00949868,
-0.00071231177,
-0.019653918,
0.0010062463,
0.034883205,
0.032028608,
-0.04613033,
0.053152643,
-0.042590626,
0.04670125,
-0.026890328,
-0.08324012,
0.00809279,
-0.048756562,
-0.04361828,
-0.0158573,
0.028103532,
-0.029773474,
0.0023282827,
-0.03057276,
0.0349403,
0.014829645,
0.03756653,
-0.012339006,
0.055864513,
-0.026590595,
-0.017484423,
0.03762362,
-0.013266752,
-0.033598635,
-0.066226706,
-0.0028545996,
-0.0006048183,
0.009876914,
0.04447466,
-0.02099558,
-0.083011754,
0.042590626,
-0.0187119,
0.0007524546,
-0.056064334,
0.02462092,
0.07193591,
-0.014458546,
-0.0012212334,
0.013266752,
0.03251389,
0.013452301,
0.031343505,
0.03023021,
0.010012508,
0.00014930894
] | Save a model
Once your model is fine-tuned, you can save it with its tokenizer using [PreTrainedModel.save_pretrained]:
pt_save_directory = "./pt_save_pretrained"
tokenizer.save_pretrained(pt_save_directory) # doctest: +IGNORE_RESULT
pt_model.save_pretrained(pt_save_directory)
When you are ready to use the model again, reload it with [PreTrainedModel.from_pretrained]: |
[
-0.0034610713,
-0.017149517,
-0.009705496,
-0.04844775,
-0.037140373,
-0.0021110722,
-0.0035208699,
0.01654066,
0.0023720115,
0.068772025,
0.046447214,
-0.0063314047,
0.047606945,
-0.038358092,
0.028166959,
0.059146263,
-0.0019534214,
0.0000096054355,
-0.06662653,
-0.009582275,
-0.020759178,
0.0026184544,
-0.08616799,
-0.04572238,
-0.0150909955,
-0.024136895,
0.026195416,
-0.038387086,
0.057000764,
0.05795754,
-0.014315425,
-0.002497045,
-0.011561065,
-0.01597529,
-0.020295287,
-0.018019315,
-0.00699825,
-0.04082252,
-0.05105714,
-0.021643473,
0.0006274324,
-0.019932872,
0.031022796,
-0.038735006,
-0.047143053,
0.004098923,
-0.029384676,
-0.008705229,
-0.009879456,
-0.030935816,
-0.014416902,
0.026166424,
0.042504128,
0.0055739554,
-0.019932872,
-0.06279942,
-0.030558903,
-0.012800528,
-0.04102547,
0.03238548,
0.012575829,
0.022063876,
-0.005399996,
-0.027920516,
-0.0059871096,
0.03267541,
-0.018178778,
0.016381197,
-0.034299035,
0.019657435,
-0.040271647,
0.010256368,
-0.014257439,
-0.017120523,
0.0019371127,
0.035255812,
-0.0040445607,
0.00508107,
0.009719993,
0.035342794,
-0.011503079,
0.046186276,
0.021846427,
0.0058493917,
-0.025383605,
-0.02923971,
0.031834606,
-0.023093138,
-0.039343864,
-0.025630048,
-0.0054833516,
0.018874617,
-0.030790849,
-0.004233017,
0.029747091,
0.017294483,
-0.018468712,
0.032472458,
-0.012757038,
0.0042910036,
-0.001442415,
0.071497396,
0.027369644,
0.037836213,
0.0009694624,
-0.006711941,
-0.013162944,
0.002290468,
-0.012111938,
-0.019874884,
0.01859918,
-0.0034157692,
0.004562815,
-0.016439183,
0.025601055,
-0.001328254,
-0.01988938,
0.04653419,
-0.05386949,
-0.021469515,
0.01743945,
-0.010125899,
-0.01575784,
-0.06506089,
-0.014315425,
-0.038821984,
-0.0050267074,
0.02217985,
-0.0141849555,
-0.000035930134,
0.024992196,
-0.02777555,
0.06401713,
0.04615728,
0.01903408,
-0.021947904,
0.0092561,
-0.00006172395,
-0.015250458,
-0.02963112,
0.0096837515,
0.017598912,
0.017077034,
0.09011108,
0.004580936,
-0.011227642,
0.01761341,
-0.029921051,
-0.056014992,
0.025267633,
-0.03267541,
-0.04659218,
0.008205094,
0.01076375,
-0.0032871116,
-0.005454358,
-0.021237567,
0.04021366,
-0.021672467,
0.00960402,
0.0016100324,
0.005787781,
-0.03134172,
0.027804542,
0.01089422,
0.016294217,
-0.025340116,
-0.02373099,
0.0014342606,
-0.033168297,
-0.021556495,
0.00908214,
-0.02561555,
0.016859585,
0.04360587,
0.0055703316,
0.049027614,
0.034212057,
0.021339044,
0.0050013387,
-0.011546569,
0.0043816073,
0.032182526,
0.019019583,
0.028645348,
-0.030239977,
-0.014946029,
-0.027398637,
-0.0037220106,
0.00839355,
0.022295821,
0.05244882,
0.014793814,
0.0033124806,
-0.051376067,
-0.017555423,
-0.03656051,
0.0151199885,
-0.024977699,
-0.0024517432,
0.0047186543,
0.047606945,
-0.05847942,
0.002290468,
-0.02493421,
-0.018744146,
-0.016381197,
0.047693923,
-0.013394889,
-0.0016344954,
0.041228425,
0.009292342,
-0.025861993,
0.0097417375,
0.013561601,
-0.024745753,
-0.03603863,
0.0035154335,
-0.0055522104,
-0.022281326,
0.012256904,
0.009502543,
0.043170974,
0.02062871,
-0.04102547,
0.022672735,
0.02329609,
0.05662385,
-0.0035498631,
0.010626032,
0.0019117435,
0.032965343,
0.04525849,
0.03656051,
0.0219624,
-0.016903074,
0.023615016,
0.009480799,
0.02863085,
0.025905484,
0.008335564,
0.045026544,
0.012800528,
0.074222766,
-0.02144052,
-0.0132934125,
-0.021179581,
0.009415563,
-0.019671932,
0.010524556,
-0.052767746,
0.06413311,
0.0039720777,
-0.020744683,
-0.03195058,
0.0017830859,
0.011959722,
0.027036222,
0.005494224,
-0.022368304,
0.04418574,
0.0020295286,
-0.010988448,
-0.029529642,
0.028558368,
0.015699854,
0.017381463,
0.0010165764,
0.0006138418,
-0.09150275,
0.025122665,
-0.038300104,
-0.08651591,
0.00019627082,
-0.034994874,
-0.021846427,
0.01748294,
-0.03284937,
0.041692317,
-0.007784692,
0.02751461,
-0.0028467763,
-0.010944958,
0.036995407,
0.035110846,
0.045142516,
-0.03052991,
0.0076614707,
-0.039024938,
-0.01153932,
0.020121327,
-0.011807508,
0.020918641,
-0.03255944,
0.026630316,
0.010270865,
-0.00079323765,
-0.042707082,
-0.018048309,
0.011807508,
-0.046041306,
0.023687499,
0.01575784,
0.05146305,
-0.0039213393,
0.018932603,
0.007806437,
-0.018541194,
0.028485885,
0.047722917,
-0.0114958305,
0.012988984,
0.023513539,
0.0378942,
-0.035255812,
0.0262679,
0.06593069,
-0.013206433,
-0.048853654,
-0.035980646,
-0.037314333,
0.032530446,
-0.039575808,
0.016990054,
0.006730062,
0.032878365,
-0.009350329,
-0.04464963,
0.015859317,
-0.026673805,
-0.00800939,
-0.024571793,
-0.007248317,
0.012829521,
0.014105224,
-0.014293681,
-0.062509485,
-0.017772872,
-0.031457696,
0.005131808,
-0.0040663057,
0.0025278504,
0.0202373,
0.04360587,
-0.0027670448,
0.009437309,
0.062277537,
-0.030239977,
0.008125363,
-0.026340382,
0.01899059,
-0.012590326,
0.01890361,
0.017149517,
0.0151199885,
0.015656363,
0.0015076499,
0.018845623,
0.036531515,
-0.015960794,
0.017555423,
0.017424954,
-0.024977699,
0.03363219,
-0.0353138,
-0.014757573,
0.015235961,
0.03621259,
0.06279942,
-0.049578488,
0.031254742,
0.018004818,
-0.03632856,
0.0035154335,
0.0011271132,
-0.04099648,
0.018555691,
0.027065214,
0.015540391,
0.004004695,
-0.030848837,
0.014329922,
0.0018419785,
0.041750304,
0.07056961,
-0.0159318,
-0.033777155,
-0.025006693,
-0.05033231,
-0.024571793,
0.012082944,
0.023354076,
0.021179581,
-0.005903754,
-0.04001071,
-0.056652844,
-0.0023919444,
0.023832465,
0.03203756,
0.032617424,
0.034588967,
0.002473488,
-0.015583881,
0.016482672,
-0.022745218,
0.033400245,
-0.02471676,
0.04847674,
0.04401178,
-0.011778515,
0.0013219118,
-0.04641822,
0.00544711,
-0.0022795957,
-0.013416634,
0.016091263,
-0.046128288,
0.010857979,
-0.037575275,
0.049781438,
-0.05360855,
-0.018222269,
-0.05476828,
-0.0030297963,
0.00723382,
-0.06262545,
-0.013786298,
-0.03195058,
-0.006269794,
0.004048185,
0.034762926,
-0.055986,
-0.0004965097,
0.0057841567,
-0.058102507,
0.022629244,
0.03650252,
-0.024803739,
0.00020114079,
-0.030877829,
-0.003892346,
-0.0022940922,
-0.038300104,
-0.017178511,
0.03328427,
-0.026166424,
-0.0417793,
0.020701192,
-0.0025042933,
-0.0006849659,
0.034009103,
-0.023701996,
0.0075599942,
-0.03427004,
-0.022643741,
-0.034415007,
0.027021725,
0.00792241,
0.01687408,
-0.015525894,
-0.007255565,
-0.019295018,
0.022165352,
-0.08106517,
-0.04572238,
0.019063072,
0.010379589,
0.0010392274,
0.030993802,
0.020164818,
-0.0132789165,
0.04030064,
0.022034883,
-0.029645616,
0.0167871,
-0.012633816,
0.03827111,
-0.020295287,
-0.03139971,
0.017816363,
-0.0637272,
0.047374997,
0.0037002657,
-0.037285343,
0.020773675,
-0.06604666,
-0.012648312,
0.0005653687,
-0.03496588,
0.017627906,
0.008234087,
-0.02596347,
-0.013112205,
0.037575275,
-0.007987645,
-0.0383291,
-0.02980508,
0.011850998,
0.009502543,
0.020904146,
0.032443464,
0.010379589,
-0.030703869,
0.013619587,
0.0032291252,
0.026557833,
-0.0023701997,
-0.008618249,
0.003504561,
-0.018700657,
-0.029225213,
-0.021049112,
-0.029355682,
0.009763483,
0.0041750306,
-0.019454483,
0.019150052,
-0.012735292,
-0.026427362,
0.03337125,
-0.009908449,
-0.04491057,
-0.031457696,
0.042359162,
0.020904146,
0.020005355,
0.063843176,
-0.0374593,
-0.04296802,
-0.025934476,
0.051347077,
-0.061523713,
-0.012793279,
-0.04012668,
-0.044968557,
0.031225748,
0.03221152,
-0.016613143,
-0.049404528,
0.027036222,
-0.022962667,
-0.012865762,
-0.0529707,
-0.03250145,
-0.02716669,
-0.0056210696,
-0.015467908,
0.03914091,
-0.019787904,
-0.00094952947,
-0.025093673,
-0.009698248,
0.027717562,
0.023774479,
-0.033139303,
-0.010524556,
0.003140333,
-0.0014016433,
-0.0017740255,
0.056043986,
0.032008566,
0.040155675,
-0.0062589217,
0.01490254,
-0.03638655,
-0.005816774,
-0.021194078,
0.00033229002,
0.01997636,
-0.022063876,
0.0079441555,
-0.025035687,
0.017265491,
0.0114958305,
0.039459836,
-0.031428702,
-0.027674073,
-0.034415007,
-0.06332129,
0.03966279,
-0.003366843,
-0.0021817433,
-0.015743343,
-0.002585837,
0.036589503,
-0.028529374,
-0.004004695,
0.04430171,
-0.026601322,
-0.01390952,
-0.06105982,
0.04375084,
-0.003140333,
0.008647242,
-0.010017173,
0.028123468,
-0.013532607,
0.018918106,
0.0079731485,
-0.018918106,
-0.022208842,
0.049752444,
0.013568849,
0.029399173,
0.02781904,
0.018294752,
-0.04160534,
-0.0059327474,
0.01072026,
0.060653914,
-0.0075165043,
0.010698516,
0.03772024,
-0.0019516093,
0.033139303,
0.020860655,
-0.023586022,
-0.0045265737,
0.044562653,
0.011829253,
-0.03290736,
-0.00848053,
0.035922658,
-0.06123378,
-0.034009103,
-0.028645348,
0.031254742,
-0.07236719,
-0.012807775,
-0.002723555,
-0.0036459032,
-0.02919622,
0.035023868,
0.04491057,
-0.014308177,
-0.014438647,
-0.0023756358,
-0.01442415,
-0.036995407,
-0.017279986,
0.020164818,
-0.002357515,
-0.020788172,
-0.06883001,
-0.026963739,
-0.044939563,
0.0027579844,
0.04311299,
-0.0042040236,
0.08100719,
0.030181991,
0.024876222,
0.061581697,
0.011691535,
0.04505554,
-0.028108973,
-0.034299035,
-0.060479954,
-0.011568313,
0.0038307353,
-0.017700389,
0.0142284455,
-0.027761053,
0.017381463,
0.055406135,
0.05041929,
-0.020556226,
-0.0607119,
0.0023611393,
-0.04195326,
-0.011633548,
0.02552857,
0.0022288575,
0.023020653,
0.042504128,
0.004693285,
-0.01313395,
0.015699854,
0.009611268,
0.0044069765,
0.020034347,
-0.03548776,
0.0021146964,
-0.035980646,
-0.030181991,
0.0073135514,
-0.019468978,
-0.0049107345,
0.061465725,
-0.017149517,
-0.008582007,
-0.0059617404,
0.03470494,
-0.011735025,
0.041402385,
0.008248584,
0.00075020076,
-0.015279451,
-0.03363219,
-0.045577414,
0.030384943,
0.004983218,
-0.05433338,
-0.0062190555,
0.004928855,
0.009060396,
0.0071359677,
0.026079444,
0.039923728,
-0.003638655,
-0.020599715,
-0.01877314,
0.0011787575,
-0.0383291,
0.008944423,
-0.05937821,
-0.0019969114,
0.011981468,
0.031109774,
-0.009538785,
0.049114592,
-0.019295018,
-0.02906575,
0.010995696,
0.032182526,
0.029776085,
-0.00956053,
-0.00536013,
-0.014061734,
0.0048889895,
0.022614747,
0.013938513,
0.025209645,
-0.04276507,
0.035632726,
0.015786834,
-0.000027478482,
-0.028094476,
0.020527232,
0.029776085,
0.036763463,
0.014808311,
-0.008495027,
-0.01735247,
-0.0141559625,
-0.0383291,
0.0075020078,
-0.031921588,
-0.038763996,
0.006045096,
-0.051086135,
-0.0028449644,
0.031486686,
0.0045591914,
0.019787904,
0.00024848134,
0.011611803,
0.034357022,
0.019686429,
-0.01029261,
-0.013271668,
-0.03389313,
-0.038184132,
0.017932335,
0.0017577168,
-0.019526966,
-0.014032741,
0.034733932,
0.053840496,
0.013242675,
0.0049107345,
0.018483208,
-0.023093138,
0.0027851658,
0.07944155,
-0.036995407,
-0.0064220084,
-0.03267541,
0.02178844,
-0.031834606,
0.002796038,
-0.000119144206,
0.028906288,
0.010140395,
0.0069910013,
0.0051825466,
0.046911106,
0.011974219,
0.012713548,
0.031457696,
0.0020023475,
-0.0020857032,
0.01020563,
-0.006429257,
0.008538517,
0.058015525,
0.037517287,
0.06221955,
0.0017993946,
0.05102815,
0.016888577,
-0.023745485,
-0.028152462,
0.026456356,
0.033690177,
0.009879456,
0.024122398,
-0.0020458375,
-0.015743343,
-0.0106332805,
0.010828985,
0.024455821,
0.0073099276,
-0.024948707,
-0.03221152,
-0.033661183,
0.024267364,
0.011350864,
-0.03861903,
0.029776085,
0.011111669,
0.06105982,
0.015917303,
0.013887775,
0.013170191,
0.036589503,
0.027630582,
0.008596503,
0.025717027,
-0.010350596,
0.016714618,
0.005874761,
0.049143586,
-0.029297696,
-0.001716945,
-0.012423615,
-0.054826267,
-0.040590573,
0.015250458,
-0.005903754,
-0.045809362,
-0.0151489815,
-0.011546569,
0.00087070407,
-0.037285343,
0.001581039,
-0.02010683,
0.032704405,
0.0030062394,
-0.019005086,
-0.030703869,
0.03337125,
-0.016758109,
0.030993802,
0.018889114,
0.03026897,
0.05059325,
0.0934163,
-0.0027616087,
-0.019773409,
0.028398905,
-0.0052477815,
-0.04589634,
-0.01912106,
0.019773409,
-0.046186276,
-0.0038271113,
-0.038850978,
-0.065988675,
0.02316562,
-0.004667916,
-0.046650168,
-0.019048577,
-0.0020983876,
-0.001808455,
-0.047432985,
-0.016323209,
0.09788127,
0.048505735,
-0.026934745,
-0.0015719787,
0.008560262,
-0.049114592,
0.011060932,
-0.06656854,
0.03337125,
-0.0026764409,
-0.02191891,
0.0050520767,
-0.04233017,
-0.008234087,
-0.011677038,
0.006744559,
0.0013219118,
0.03380615,
0.027456624,
0.0348789,
-0.00030714742,
-0.031167762,
-0.018135289,
0.014177707,
0.07341095,
0.042098224,
0.07845578,
0.06964183,
-0.024310853,
-0.015801331,
0.03467595,
-0.008132611,
-0.034125075,
-0.014163211,
-0.016047774,
-0.026673805,
-0.02170146,
-0.06378519,
-0.016975557,
0.006364022,
-0.0017731194,
0.00921261,
-0.026746288,
0.015540391,
-0.08274678,
-0.0404746,
-0.048128825,
-0.026166424,
-0.000056882298,
-0.027877025,
0.01485905,
-0.020048844,
0.2509657,
0.03035595,
0.024644276,
0.04102547,
0.05491325,
0.059001297,
0.010046167,
-0.0051390566,
0.035081852,
-0.04224319,
-0.029007763,
-0.045490436,
0.057725593,
0.025369108,
-0.045838356,
0.026340382,
-0.05743566,
0.022049379,
-0.029471656,
-0.030152997,
-0.07549847,
0.033052325,
-0.0070598605,
0.0676123,
0.030297963,
0.00040749132,
-0.01029261,
-0.052854724,
-0.0049650967,
-0.031428702,
0.009096637,
-0.004146037,
0.011619052,
-0.006320532,
0.003928588,
0.004580936,
-0.004258386,
-0.022281326,
-0.0055522104,
0.015946297,
0.0107057635,
-0.031370714,
0.031022796,
-0.011662542,
-0.0031330849,
0.029950045,
-0.013300661,
0.015888311,
0.05146305,
-0.015250458,
0.022977164,
-0.07346894,
0.02277421,
-0.046737146,
-0.050970163,
0.021513004,
-0.09359027,
-0.059784114,
0.015627371,
-0.0075672427,
-0.0021201326,
0.012024958,
-0.01748294,
0.02458629,
-0.011060932,
0.00063105655,
0.0035118095,
0.07990544,
0.016555155,
-0.024832733,
0.021802936,
-0.014242942,
-0.05105714,
-0.04366386,
0.043866813,
0.021397032,
-0.026209913,
0.030906823,
0.017816363,
-0.05537714,
0.03052991,
-0.03577769,
0.045664396,
-0.07027968,
0.034241047,
0.007023619,
-0.011126166,
-0.009328583,
-0.00055223115,
0.013162944,
0.0015937237,
0.0671484,
-0.000480654,
0.02161448,
0.010444825
] | from transformers import AutoConfig
my_config = AutoConfig.from_pretrained("distilbert/distilbert-base-uncased", n_heads=12)
Create a model from your custom configuration with [AutoModel.from_config]:
from transformers import AutoModel
my_model = AutoModel.from_config(my_config)
``
</pt>
<tf>
Create a model from your custom configuration with [TFAutoModel.from_config`]:
from transformers import TFAutoModel
my_model = TFAutoModel.from_config(my_config) |
[
0.015195399,
-0.03002532,
-0.03924658,
0.01997471,
-0.02177398,
-0.010289576,
-0.03227441,
-0.015701443,
0.016840044,
0.03345518,
0.034129906,
-0.013719435,
0.0396964,
-0.0506607,
0.0026057789,
0.053696968,
0.0050253053,
-0.03292102,
-0.04394155,
-0.041551895,
-0.026145644,
0.017275805,
-0.07663766,
-0.05260054,
-0.01264409,
0.0040589003,
0.006532897,
-0.031684022,
0.06949681,
0.051616564,
-0.011252467,
-0.034439154,
0.0070037995,
-0.019117245,
-0.050070316,
-0.034495384,
-0.009945185,
-0.010648024,
-0.040849056,
-0.021802094,
0.03463595,
-0.0094180545,
0.028816435,
-0.071802124,
-0.05158845,
0.015954467,
0.004350579,
-0.011350865,
-0.02330617,
-0.034270473,
-0.00680349,
0.026890654,
0.0017228363,
-0.0028746151,
-0.03868431,
-0.04956427,
-0.027143678,
-0.0066207517,
-0.027720006,
0.0061357925,
0.039302807,
0.034832746,
-0.017261747,
-0.046471775,
0.028985118,
0.030222116,
-0.022968808,
-0.0012914683,
-0.014450388,
-0.0051377597,
-0.03376443,
-0.028563414,
-0.018062986,
-0.004716056,
-0.0157155,
0.04169246,
-0.00030727283,
-0.01466124,
0.020143392,
-0.009558623,
-0.027298301,
0.022195684,
0.00500422,
-0.0034755433,
-0.0033033476,
-0.059207235,
0.070171535,
-0.030278344,
-0.021591242,
-0.050773155,
-0.034298588,
0.027326416,
-0.024163635,
0.005570006,
0.030418912,
0.006571553,
-0.00007533565,
0.017570999,
0.015434365,
-0.016741646,
0.016207488,
0.07140853,
0.006940544,
0.032330636,
-0.013283675,
-0.00090314925,
0.016390227,
-0.0069124303,
-0.0506607,
-0.03899356,
-0.0053556403,
0.0014706925,
0.007225194,
-0.014436332,
0.025316294,
0.0074430746,
-0.009214231,
0.021464732,
-0.00564029,
-0.029828526,
0.00059170334,
-0.018751768,
-0.010092781,
-0.06870963,
0.0407366,
-0.046218753,
0.013136078,
0.039049786,
0.0133891,
0.023587307,
0.01246838,
-0.021563128,
0.027115563,
0.031290434,
-0.01097836,
-0.035001427,
0.006385301,
0.0014408218,
0.00097343326,
-0.025695827,
-0.0011561717,
0.010106838,
0.014956433,
0.06623563,
0.010879962,
-0.017107124,
0.041889258,
-0.07956148,
-0.051869586,
0.029687958,
-0.028479073,
0.015420307,
-0.0015998393,
0.002834202,
-0.024332318,
-0.0069475723,
-0.0042205537,
0.024444772,
-0.015420307,
0.027973028,
-0.01641834,
-0.012278614,
-0.043210596,
0.052937903,
0.012095875,
0.023868443,
0.013051737,
-0.044813074,
0.026075361,
-0.019004792,
0.010528542,
0.024416659,
0.009987355,
0.033820655,
0.06707904,
0.0056156907,
0.035844836,
0.011716342,
0.017275805,
0.033258386,
-0.0102263205,
-0.0046914564,
0.025737997,
0.016783817,
0.018850166,
-0.031655908,
-0.021970775,
-0.019735744,
0.008476249,
0.036885038,
0.020157449,
0.06269332,
-0.020298017,
0.017444486,
-0.05307847,
-0.015195399,
-0.042704552,
0.006216619,
0.0023738418,
-0.0106409965,
-0.045459684,
0.049592383,
-0.07911166,
0.0015409765,
-0.030165888,
0.01360698,
0.024472885,
0.049761064,
0.03604163,
0.0046844278,
0.014773695,
-0.011983421,
-0.015040774,
-0.01821761,
0.0005785251,
-0.019862255,
-0.00803346,
0.049311247,
0.0054716086,
-0.02700311,
0.029828526,
0.008483278,
0.06488618,
0.03275234,
0.03547936,
0.004364636,
-0.018836109,
0.05136354,
0.03460784,
-0.019820085,
-0.006891345,
0.04219851,
0.018161383,
0.023109376,
0.019946596,
0.0047828257,
0.01825978,
0.022729842,
0.025499031,
-0.017177407,
0.019089133,
-0.0016701233,
0.038543742,
0.043885324,
-0.03581672,
-0.010387974,
-0.017458543,
0.005165873,
-0.046528,
0.01619343,
-0.05338772,
0.0019661947,
0.0074430746,
-0.035198223,
-0.054399807,
-0.010120895,
0.011962336,
0.038346946,
-0.006638323,
-0.006283389,
0.019791972,
0.0022613874,
-0.009811645,
-0.043435507,
0.048130475,
0.041551895,
0.009186118,
0.034917086,
0.0107885925,
-0.043800984,
-0.021014914,
-0.038628083,
-0.07326403,
-0.0055735204,
-0.03823449,
-0.00081397645,
0.009214231,
-0.049311247,
0.048186705,
0.01119624,
-0.02208323,
0.006589124,
-0.024332318,
0.05434358,
0.031402886,
0.024416659,
-0.06246841,
0.037672218,
-0.012018562,
0.002521438,
0.00067033357,
-0.030447025,
0.011702284,
-0.0053275265,
0.017500713,
-0.0017746708,
-0.008574647,
-0.062187277,
-0.029856639,
0.025766112,
-0.011969363,
0.016516738,
-0.016643248,
0.047849342,
-0.02414958,
0.03275234,
0.015870126,
-0.037784673,
0.038431287,
0.0541749,
0.009361828,
0.046781026,
0.036547676,
0.051869586,
-0.033033475,
0.03219007,
0.0680349,
0.0071935663,
-0.031431,
-0.010781564,
-0.046162523,
0.02084623,
-0.024402602,
-0.012707345,
-0.030671934,
0.037559766,
-0.011674171,
-0.019229699,
-0.022209741,
-0.04526289,
-0.017036838,
-0.044756845,
-0.023081262,
0.07787466,
0.03792524,
0.029575502,
-0.05324715,
-0.019820085,
-0.007843694,
0.056030396,
0.009642963,
-0.02295475,
0.05150411,
0.03775656,
0.0032190068,
-0.006184991,
0.046528,
-0.058757417,
-0.0054329527,
-0.005816,
0.036828812,
0.022575218,
0.004122156,
-0.0036407106,
0.0033103758,
0.030053435,
0.0011324508,
0.030896842,
0.016249659,
0.021296049,
0.032499317,
-0.003347275,
0.019763859,
0.005078018,
-0.033398952,
-0.010795621,
-0.0020645922,
0.0005947783,
0.03980885,
-0.044503823,
0.0109361885,
-0.01102053,
-0.021197652,
0.0061568776,
-0.015082944,
-0.028057368,
0.037559766,
0.013185277,
0.022631446,
-0.014084912,
-0.06764131,
-0.0073517053,
0.02111331,
0.037503537,
0.03964017,
0.003767222,
-0.035872947,
0.029097572,
-0.048748977,
-0.016362114,
0.0015866611,
0.022617389,
0.0014065583,
-0.016249659,
-0.039752625,
-0.02041047,
0.013909202,
0.06893454,
0.015546819,
0.0011491432,
0.03651956,
-0.017992701,
-0.004354093,
0.034129906,
-0.014127082,
-0.022504933,
-0.033708204,
0.030053435,
0.036238424,
0.0149283195,
0.0057176026,
-0.006248247,
-0.011364921,
0.002857044,
-0.018077042,
-0.008581676,
-0.040061876,
0.0122505,
-0.013023623,
0.021563128,
-0.021549072,
-0.034186132,
-0.033286497,
0.009453197,
0.02954739,
-0.014787751,
-0.0013389101,
-0.029378708,
0.00009351065,
0.028872663,
0.011990448,
-0.043126255,
0.009614849,
-0.017725622,
-0.06319936,
0.09620473,
0.022575218,
-0.023067206,
-0.004371664,
-0.05088561,
0.0015040773,
0.01989037,
-0.06443636,
-0.051560335,
-0.0026128073,
-0.004600087,
-0.030165888,
0.013614009,
0.0027797318,
0.0020558068,
-0.0062939315,
-0.031318545,
0.02787463,
-0.04447571,
-0.03086873,
-0.009952213,
0.020494811,
0.0071830237,
0.023784103,
0.015898239,
-0.0077944947,
-0.043660413,
0.047905568,
-0.049536157,
-0.042648327,
-0.014288736,
0.049058225,
-0.01646051,
0.033736315,
0.028788323,
0.0041502696,
0.024444772,
0.0019275384,
-0.03916224,
0.024571283,
-0.027776234,
0.014773695,
-0.011737427,
-0.00553135,
0.03469218,
-0.06432391,
0.03300536,
-0.003609083,
0.018667428,
0.011512518,
-0.0659545,
-0.0396964,
-0.007077598,
-0.015870126,
0.025836395,
0.03455161,
0.003224278,
0.009277487,
0.023235887,
-0.0023369426,
0.018681485,
-0.04385721,
0.013585895,
0.073601395,
0.02638461,
0.013353958,
-0.05057636,
-0.04464439,
0.023193717,
-0.028310392,
0.026075361,
0.004139727,
-0.05588983,
-0.026525179,
-0.025470918,
-0.029997207,
-0.008356767,
-0.010310661,
0.015476535,
0.039921306,
-0.038824875,
0.026876599,
-0.04354796,
-0.0016534309,
0.03989319,
-0.038093925,
-0.06432391,
-0.027256131,
0.025836395,
0.01619343,
0.008532477,
0.038431287,
-0.029097572,
-0.07303912,
-0.039752625,
0.047118388,
-0.040202443,
0.02111331,
-0.04149567,
-0.03955583,
0.036463335,
0.029463049,
0.020607267,
-0.04798991,
0.027902745,
-0.028816435,
0.0054294383,
-0.042001713,
-0.028268222,
-0.013585895,
-0.0014425789,
-0.014394161,
0.04745575,
-0.008230255,
0.015097002,
-0.00050780183,
0.02256116,
0.045993842,
0.050070316,
-0.04512232,
-0.036097858,
0.015068888,
-0.0031610224,
-0.004122156,
0.024332318,
-0.008715215,
0.009446168,
0.0057843723,
0.040371124,
-0.044419482,
-0.028296335,
-0.012700317,
-0.025808282,
0.036322765,
-0.038431287,
0.021014914,
-0.03359575,
0.032330636,
0.009333714,
0.050210882,
-0.01641834,
0.02107114,
-0.02787463,
-0.07585048,
0.036885038,
-0.02867587,
0.01650268,
-0.016488625,
0.0291538,
0.06955304,
-0.03924658,
0.017149294,
0.043660413,
-0.0045544025,
-0.009488339,
-0.008743328,
0.05268488,
0.018442519,
0.010964302,
-0.047736887,
0.05105429,
-0.03899356,
0.01606692,
-0.023488909,
-0.04127076,
-0.022659559,
0.0014724496,
0.009565651,
-0.006406386,
0.04683725,
0.01426765,
-0.0148299225,
-0.03238686,
0.011899079,
0.040708486,
0.018864224,
0.010697223,
0.0012712617,
-0.04841161,
0.026440836,
-0.017374203,
-0.026173757,
-0.0036512534,
0.04891766,
0.0115968585,
-0.027734064,
-0.021394446,
0.02528818,
-0.026019134,
-0.058869872,
-0.010648024,
0.0285353,
-0.06252464,
-0.010823734,
-0.015448421,
0.0069967713,
-0.025878565,
0.03424236,
0.05425924,
-0.011695256,
-0.024177693,
0.034045566,
-0.0055348645,
-0.04149567,
-0.0049761063,
0.033117816,
-0.025091385,
0.005215072,
-0.045291003,
-0.031290434,
-0.027677836,
-0.013417214,
0.045066096,
-0.021014914,
0.026215928,
0.044756845,
-0.02071972,
0.06089405,
-0.006262304,
0.035985403,
0.0109361885,
-0.02084623,
-0.04354796,
-0.011737427,
0.012095875,
-0.0027358043,
0.01567333,
-0.02204106,
0.012946311,
0.058982324,
0.050548244,
-0.01330476,
-0.088895194,
0.0032260353,
-0.057323623,
-0.011681199,
0.020115279,
0.030194003,
-0.012791687,
0.036322765,
0.0022807154,
-0.03446727,
-0.0046071154,
-0.0066629224,
-0.030475138,
0.009867872,
-0.057098713,
0.003131152,
-0.020874346,
-0.021281993,
-0.02076189,
-0.022772012,
-0.0025407663,
0.04315437,
0.02357325,
0.00015176949,
0.0054575517,
0.00034153627,
0.008982294,
0.027368587,
0.00011992206,
0.058701187,
-0.018316008,
-0.0031750794,
-0.026173757,
0.030671934,
0.027860574,
-0.026398666,
0.028549356,
-0.004817968,
-0.00043641965,
-0.032696113,
0.018287895,
0.044307027,
-0.014408218,
-0.017950531,
-0.0014487287,
0.033708204,
-0.049395587,
0.015223512,
-0.035676155,
-0.01619343,
-0.029800411,
0.054034334,
0.015434365,
0.044813074,
-0.017064953,
0.028605584,
0.006371244,
0.03564804,
0.025780167,
0.012763573,
0.044391368,
-0.0055875774,
-0.015111058,
-0.012229415,
0.0020786491,
0.0050112484,
-0.03221818,
0.03635088,
0.0009233559,
0.009516452,
-0.00799129,
0.036941264,
0.04728707,
0.023615422,
0.012742488,
-0.028900776,
-0.0015128629,
-0.025231952,
-0.025161669,
0.010563684,
-0.05057636,
-0.008455164,
0.003080196,
-0.050604474,
-0.0024353403,
-0.010943217,
-0.005510265,
0.0035475844,
0.009502396,
-0.024219863,
0.017922418,
-0.019876312,
0.00865196,
0.03275234,
-0.027242076,
-0.03978074,
-0.012791687,
0.012854942,
-0.03289291,
0.009797588,
0.017093066,
0.04512232,
0.0052467,
-0.01778185,
-0.011055672,
-0.013824861,
0.019257814,
0.038431287,
0.002535495,
0.0034087736,
-0.030615706,
0.006494241,
-0.03972451,
-0.023010978,
-0.005931969,
0.027185848,
0.019707631,
0.008202142,
-0.02107114,
0.023671648,
0.013100936,
-0.00090314925,
0.014717468,
0.008644931,
0.003189136,
-0.02743887,
0.020916516,
-0.0053942963,
0.06505486,
0.032555543,
0.03103741,
0.010057639,
0.057745326,
-0.0033947167,
-0.03289291,
-0.012032619,
0.056030396,
0.018906394,
0.018372236,
0.010001412,
-0.01821761,
-0.029884754,
-0.028872663,
0.03635088,
0.023235887,
-0.009516452,
0.030250229,
-0.017093066,
-0.029603617,
0.024009012,
-0.012348897,
-0.038487513,
0.0029853126,
0.003914818,
0.040174328,
0.01949678,
-0.0036055688,
0.01765534,
0.053696968,
0.03626654,
-0.021717753,
0.045937616,
-0.0044595194,
0.039583944,
-0.0061885053,
0.052150723,
-0.01330476,
-0.0074571315,
-0.029181913,
-0.035001427,
-0.0076187844,
0.011357893,
-0.010570712,
-0.037784673,
-0.009460225,
-0.012925226,
0.0044524907,
-0.05729551,
0.0032190068,
-0.045712706,
0.012721403,
-0.0020171506,
-0.012194272,
-0.04891766,
0.044531938,
-0.02243465,
0.025203839,
-0.013761605,
0.052010152,
0.013691321,
0.07956148,
0.012777629,
-0.013817833,
0.011231381,
0.048692748,
-0.047793113,
-0.01730392,
0.026398666,
-0.009917071,
-0.002904486,
-0.031908933,
-0.074051216,
0.016797874,
0.0064766696,
-0.0049585355,
-0.05667701,
0.0355637,
0.004262724,
-0.036407106,
0.008349738,
0.09153787,
0.025794225,
-0.037475422,
-0.001938081,
0.0021752894,
-0.07146476,
-0.0016464025,
-0.008778471,
0.0413551,
-0.011287609,
-0.062243503,
0.009017436,
-0.042592097,
0.002679577,
0.021141425,
-0.008813612,
-0.017556941,
0.022729842,
0.016882215,
0.03604163,
0.019510835,
-0.018807996,
-0.025934793,
0.047090273,
0.035760496,
0.029350594,
0.07326403,
0.072027035,
-0.00908772,
0.0010428387,
-0.010774536,
0.000624649,
-0.020101221,
-0.014647184,
-0.02427609,
0.0011702285,
-0.040596034,
-0.048973884,
-0.010676138,
0.0070002857,
-0.026483007,
-0.0355637,
-0.008729272,
0.0043576076,
-0.037503537,
-0.012102903,
-0.018147327,
0.0030239688,
-0.01641834,
-0.0003571305,
0.0035792121,
-0.041298874,
0.23368022,
0.042648327,
0.050857496,
0.00066374446,
0.04588139,
0.07258931,
0.0030924955,
-0.008771442,
-0.03345518,
-0.03438293,
0.004297866,
-0.037728447,
0.015378137,
0.005808972,
-0.0026198358,
0.0051693874,
-0.05071693,
-0.00789992,
-0.018203553,
-0.06550468,
-0.04141133,
0.04003376,
-0.01646051,
0.0723644,
0.031402886,
-0.009910042,
-0.00010097833,
-0.027199904,
-0.0041502696,
-0.00658561,
-0.0069300015,
-0.022603331,
0.024810249,
-0.013986514,
-0.017613169,
0.0039253607,
0.017641282,
-0.06190614,
-0.02634244,
0.003788307,
0.00665238,
-0.010486372,
0.03438293,
-0.004441948,
-0.011140012,
0.0015523976,
-0.0046633426,
0.030390797,
0.025484975,
-0.043126255,
0.038515627,
-0.062243503,
0.0126019195,
-0.034354813,
-0.046134412,
0.008349738,
-0.07793089,
-0.05220695,
-0.0034825718,
0.023039091,
-0.028788323,
0.036828812,
-0.03300536,
0.026904711,
-0.00017636889,
-0.004087014,
-0.021492844,
0.034214247,
0.008567618,
-0.0076187844,
0.03477652,
-0.027958972,
-0.007499302,
-0.0074219895,
-0.007696097,
0.035901062,
0.002957199,
0.036716357,
-0.0017527071,
-0.065448456,
0.008687101,
-0.010760479,
0.02287041,
-0.04970484,
0.013262589,
0.03564804,
-0.018161383,
-0.0007551136,
0.0044981753,
0.021281993,
0.034045566,
0.083778515,
0.0221254,
0.02115548,
0.004716056
] | When you are ready to use the model again, reload it with [TFPreTrainedModel.from_pretrained]:
tf_model = TFAutoModelForSequenceClassification.from_pretrained("./tf_save_pretrained")
One particularly cool 🤗 Transformers feature is the ability to save a model and reload it as either a PyTorch or TensorFlow model. The from_pt or from_tf parameter can convert the model from one framework to the other: |
[
0.0081413,
-0.0027143469,
-0.008593981,
-0.0026046587,
-0.014792234,
-0.00725683,
-0.0066892374,
-0.015168307,
-0.011498106,
0.05228818,
-0.00645245,
-0.006703166,
0.0321752,
-0.04841601,
0.014123658,
0.04072739,
-0.0012753427,
-0.022536566,
-0.06975471,
-0.043318123,
-0.009032734,
0.0038930594,
-0.07972763,
-0.049948163,
0.0045268135,
-0.0043770806,
0.028289102,
0.008691482,
0.05005959,
0.059224647,
0.013190438,
0.012208467,
-0.012514898,
-0.003920917,
-0.042398833,
-0.049418874,
0.00027117354,
0.002777026,
-0.01234079,
-0.03866595,
0.0119090015,
-0.010516136,
0.03370735,
-0.045685995,
-0.059781794,
0.0021589417,
-0.0024096577,
-0.012960615,
-0.019722978,
-0.017076533,
0.0025628728,
-0.004007971,
0.033428777,
0.010933995,
-0.052901037,
-0.047051,
-0.04320669,
-0.015850812,
-0.038833097,
-0.013037222,
0.015029021,
0.05265032,
-0.04342955,
-0.036771655,
-0.01721582,
0.028108029,
-0.0022982284,
0.024166219,
-0.020906914,
-0.012236325,
-0.052371748,
0.011470249,
-0.008956126,
-0.012605434,
-0.031395193,
0.027341953,
0.010662387,
-0.026826592,
0.016923318,
0.0350445,
-0.007228973,
0.039362382,
0.017967967,
0.016491529,
-0.0080438,
-0.065798976,
0.025642658,
-0.007848798,
-0.0256148,
-0.062678955,
-0.030085899,
0.025169082,
-0.041535255,
0.01430473,
0.03306663,
0.03253734,
-0.0034682355,
0.050839595,
-0.00333069,
-0.019667264,
0.013120795,
0.08490909,
-0.012494005,
0.030058041,
-0.0072429013,
-0.0038129697,
-0.00046312783,
0.003055599,
-0.04448813,
-0.012988472,
-0.011581678,
-0.002757874,
0.018469399,
-0.01493152,
0.006149502,
0.026102303,
0.006257449,
0.016143313,
-0.024180148,
-0.02021048,
-0.0009088449,
-0.033985924,
0.012709899,
-0.07176044,
0.032509483,
-0.06680184,
0.0024497025,
0.028971605,
0.0097291665,
0.020154767,
0.02955661,
-0.019555833,
0.054683905,
0.024946224,
-0.011275248,
-0.008614874,
-0.003116537,
-0.012299004,
-0.010864352,
0.0072498657,
-0.016951175,
0.006152984,
0.0054008365,
0.08797339,
0.029668039,
-0.025837658,
0.013232224,
-0.05401533,
-0.034375925,
0.022411209,
-0.047831006,
0.0033185026,
0.0041019893,
-0.005345122,
-0.014005264,
-0.0047392254,
-0.003182698,
0.02654802,
-0.0038268985,
0.01607367,
0.008747197,
-0.02344193,
-0.029055178,
0.04615957,
-0.0020213963,
0.041005965,
-0.016825818,
-0.036548793,
0.02860946,
-0.009081484,
-0.00233305,
0.013364546,
0.02106013,
0.02001548,
0.06067323,
0.0050177984,
0.07705333,
0.013037222,
-0.0033045737,
0.0068006665,
-0.01378937,
-0.042955976,
-0.013287938,
0.008433802,
0.02062834,
-0.024235863,
-0.0117975725,
0.002101486,
0.0028518925,
-0.003053858,
0.019820478,
0.06045037,
-0.019096188,
-0.0034456016,
-0.02955661,
-0.008245764,
-0.041228823,
0.0037851124,
-0.010425599,
0.0077721905,
-0.039055955,
0.06524183,
-0.048137438,
-0.0068145953,
-0.01597617,
0.002016173,
0.019263333,
0.04769172,
-0.006062448,
0.02603266,
0.03432021,
0.0018890741,
-0.02798267,
0.006024144,
-0.004920298,
-0.039362382,
-0.00975006,
0.04114525,
0.012654184,
-0.006236556,
0.011881144,
0.012521862,
0.059781794,
0.024040861,
0.009367022,
-0.020391554,
-0.010300241,
0.04654957,
0.0042482405,
0.01031417,
0.025795871,
0.017550107,
0.023037998,
0.04167454,
0.016519386,
0.0036110042,
0.0129745435,
0.0325652,
0.008545231,
0.0034421193,
0.021185488,
0.04342955,
0.026116231,
0.05944751,
-0.032063767,
0.002374836,
-0.02519694,
-0.028275173,
-0.036743797,
0.026506234,
-0.06446182,
0.05340247,
0.0020840752,
-0.013280974,
-0.057107493,
-0.036270224,
0.028553747,
0.030253042,
-0.020307982,
-0.008698446,
0.036799513,
0.00949238,
0.029333752,
-0.022257993,
0.03972453,
0.044515986,
0.00030447173,
0.017536178,
-0.019541906,
-0.05164746,
-0.00487503,
-0.046215285,
-0.08942197,
0.019319046,
-0.030977333,
-0.04042096,
-0.019931907,
-0.04824887,
0.028163744,
-0.009722202,
0.009325236,
-0.004979495,
-0.02157549,
0.023483716,
0.023497643,
0.019040473,
-0.042788833,
0.018302254,
-0.0350445,
0.012675078,
-0.022062993,
-0.02022441,
-0.014346517,
-0.012473112,
0.016240813,
0.02062834,
-0.00043287652,
-0.06925328,
-0.018149039,
0.02624159,
-0.018232612,
0.01824654,
-0.0010002516,
0.03805309,
-0.019778693,
0.01845547,
0.03337306,
-0.03877738,
0.059781794,
0.07471331,
-0.016867604,
0.018232612,
0.01773118,
0.045908853,
-0.038916666,
0.03554593,
0.070479006,
-0.007458796,
-0.035740934,
-0.038833097,
-0.030643044,
0.05401533,
-0.026687305,
-0.015015092,
0.006152984,
0.051591743,
-0.013719727,
-0.005024763,
-0.01332276,
-0.04292812,
-0.021728704,
-0.03565736,
-0.008844697,
0.04334598,
0.011672215,
0.007876655,
-0.08251336,
-0.0022738532,
-0.011658286,
0.023818003,
-0.0005540994,
-0.03774666,
0.036660224,
0.03443164,
0.014172408,
0.0031861803,
0.06468468,
-0.043903127,
0.0035866292,
-0.033345204,
0.024653722,
0.05005959,
0.009687381,
0.003010331,
-0.0067971842,
0.022480851,
0.013524726,
0.03273234,
0.027662313,
0.027258381,
0.023664787,
0.018497257,
-0.012152753,
0.009220771,
-0.042231686,
-0.024723366,
-0.037078083,
0.010147027,
0.041507397,
-0.05660606,
0.024096576,
-0.0016601217,
-0.026589805,
0.0023504607,
-0.016658673,
-0.047246,
0.039111666,
0.04459956,
0.038387377,
-0.0013267045,
-0.041340254,
0.0021049683,
-0.001972646,
0.029361608,
0.07482474,
0.012877043,
0.0024479614,
-0.012285075,
-0.04354098,
-0.016463673,
-0.0055296766,
0.013225259,
0.001642711,
-0.007570225,
-0.013956514,
-0.049196016,
0.0037050226,
0.029640181,
0.0089491615,
-0.0028867142,
0.019778693,
-0.012668113,
0.015168307,
0.034598783,
-0.005028245,
0.01425598,
-0.058500357,
0.04727386,
0.03370735,
0.022856927,
-0.013796334,
-0.050282452,
-0.013267046,
-0.0015948312,
0.011658286,
0.02106013,
-0.04395884,
-0.009471486,
-0.012765614,
0.024180148,
-0.035378788,
-0.023246927,
-0.037663087,
0.0036806476,
0.018399756,
-0.030197328,
0.0062853065,
-0.014959377,
-0.016004026,
0.024556221,
0.029473038,
-0.026380876,
-0.003456048,
0.007549332,
-0.04512885,
0.06563183,
0.026603734,
-0.019792622,
0.009248628,
-0.065687545,
0.0061042337,
0.008336301,
-0.047357433,
-0.045379564,
0.008322372,
-0.0050874418,
-0.025768016,
0.021951564,
0.004833244,
-0.012159717,
0.036660224,
-0.02894375,
-0.0037050226,
-0.04563028,
-0.016811889,
-0.050616737,
0.004561635,
0.03069876,
0.042565975,
0.004941191,
-0.010564886,
-0.013009366,
0.05889036,
-0.036158793,
-0.060617514,
0.021700848,
0.044125985,
-0.013427225,
0.015029021,
-0.0069225426,
-0.014555446,
0.021087985,
-0.0058500357,
0.00044658757,
0.010376849,
-0.013385439,
-0.009861489,
-0.010725066,
-0.0083293365,
0.011957752,
-0.062400382,
0.008893447,
0.00042330057,
-0.02841446,
0.0031339477,
-0.080006205,
-0.02302407,
-0.025461584,
-0.025865516,
0.015432952,
0.021199416,
-0.010342028,
-0.0036945762,
0.005216282,
-0.006302717,
-0.03429235,
-0.045463137,
0.009534165,
0.039947387,
0.027829455,
0.039223097,
-0.045045275,
-0.016226886,
0.030949475,
-0.003649308,
0.031757336,
-0.0019604585,
-0.03816452,
0.0011055871,
-0.007472724,
-0.02955661,
-0.0019674227,
-0.015251879,
0.0036110042,
0.012737757,
-0.0055644982,
0.008412909,
-0.028581604,
-0.02955661,
0.026269447,
-0.03287163,
-0.0651304,
-0.016811889,
0.031785194,
0.021018343,
-0.005498337,
0.07125901,
-0.023971219,
-0.038387377,
-0.032927345,
0.03058733,
-0.041033823,
0.040783107,
-0.045602422,
-0.029110892,
0.056550346,
0.03691094,
0.011700071,
-0.051591743,
-0.013280974,
-0.01514045,
0.006640487,
-0.035740934,
-0.03640951,
-0.026380876,
0.018915115,
-0.029417323,
0.038443092,
0.010195777,
0.016394028,
-0.022773353,
-0.0061773593,
0.030670902,
0.032398056,
-0.05716321,
-0.004735743,
0.009262557,
-0.01544688,
-0.0041960077,
0.04053239,
0.0056341416,
0.0235255,
-0.019611549,
0.022369422,
-0.053987473,
-0.022647996,
-0.054600336,
0.003645826,
0.028289102,
-0.043513123,
-0.049530305,
-0.026478376,
0.05805464,
-0.0049551195,
0.04791458,
-0.04459956,
0.003414262,
-0.061453234,
-0.055937484,
0.045017418,
-0.026715163,
-0.011310069,
-0.0059928047,
0.012800436,
0.07449046,
-0.05184246,
0.02778767,
0.07053472,
0.0006032849,
-0.012076145,
-0.023065856,
0.05382033,
-0.010933995,
0.017341178,
-0.024013003,
0.009826668,
-0.01752225,
0.040504534,
-0.015098664,
-0.045908853,
-0.010599708,
0.010383814,
0.022870854,
-0.0024862653,
0.017076533,
0.0022129153,
-0.03184091,
-0.022049064,
0.025155153,
0.02872089,
0.0075841537,
0.035128072,
0.0013571734,
0.005049138,
0.001728024,
-0.014179372,
-0.02312157,
-0.008621839,
0.056355346,
0.001517353,
-0.04164668,
-0.011734894,
0.031033047,
-0.018831544,
-0.029083036,
0.0029807326,
0.04056025,
-0.054683905,
-0.011950787,
-0.004088061,
0.022425137,
-0.031228049,
0.01197168,
0.035211645,
-0.014806162,
-0.029918754,
0.029668039,
-0.0075771892,
-0.015934383,
0.01773118,
0.039975245,
-0.017452607,
0.004787976,
-0.05228818,
-0.010836495,
-0.03078233,
-0.013023294,
0.052204605,
0.015836883,
0.03763523,
0.024556221,
-0.0028309994,
0.054293904,
0.0017027783,
0.013343653,
0.0053799436,
-0.03164591,
-0.054182474,
-0.0050595845,
0.01586474,
0.011219533,
0.009666488,
-0.037690945,
0.010321135,
0.06524183,
0.053597473,
-0.0025123814,
-0.11209783,
0.008176122,
-0.03287163,
-0.0046939575,
0.0140888365,
0.017564036,
0.0017097426,
0.04883387,
-0.010954889,
-0.020809414,
0.02447265,
0.0031844391,
-0.033512346,
-0.018998688,
-0.05660606,
0.03412521,
-0.027077308,
-0.01784261,
-0.026422663,
-0.025461584,
-0.0037050226,
0.03253734,
-0.016240813,
-0.015251879,
0.0152658075,
0.024765152,
-0.026673378,
0.02312157,
0.01306508,
0.023818003,
0.0071140616,
-0.010000776,
0.00047139797,
0.041368112,
0.028066244,
-0.046856,
0.015056878,
0.004916816,
-0.014221159,
-0.018720115,
0.03142305,
0.036019508,
-0.02249478,
0.015251879,
-0.01534938,
0.023678716,
-0.02405479,
-0.02695195,
-0.039223097,
0.0020718877,
0.0012971062,
0.04593671,
-0.008071656,
0.041395966,
0.005348604,
0.0039940425,
-0.0019778693,
0.039055955,
0.012668113,
0.006382807,
0.037858088,
-0.024876582,
0.026116231,
-0.0028710444,
0.018650472,
0.01845547,
-0.02975161,
0.033568062,
0.00076651137,
-0.026715163,
-0.038610235,
0.01938869,
0.05900179,
0.038749523,
0.010140062,
-0.035072356,
0.009986847,
-0.010766852,
-0.019305117,
0.021547632,
-0.051814605,
-0.033874493,
0.010321135,
-0.056968205,
0.00008183086,
-0.02032191,
-0.0053555686,
-0.0000882511,
0.01835797,
-0.0028710444,
0.019625477,
0.011449356,
0.014875805,
0.010035597,
-0.03763523,
-0.036158793,
0.013810263,
0.0037851124,
-0.020196551,
0.0010838236,
0.049056727,
0.05267818,
0.0139008,
-0.003945292,
-0.030921618,
-0.009304343,
0.015948312,
0.0643504,
-0.0131974025,
-0.010418635,
-0.053458184,
0.026353018,
-0.061118945,
0.007911477,
0.009875418,
0.018483328,
0.016101528,
0.027871242,
-0.00653254,
0.017341178,
0.0055296766,
0.021171559,
0.006469861,
0.023609074,
-0.00031513587,
-0.014639018,
0.007897548,
-0.00712799,
0.0727633,
0.043095265,
0.052176747,
-0.016017955,
0.049112443,
0.014402231,
-0.034153067,
-0.035573788,
0.04365241,
0.029500894,
0.008071656,
-0.0031008672,
0.0060345903,
-0.023302643,
-0.0042691333,
-0.009227735,
0.045880996,
-0.013051151,
0.004857619,
-0.025795871,
-0.0151543785,
0.014611161,
0.010801673,
-0.029779468,
0.0036945762,
0.010272385,
0.046856,
0.03423664,
0.019806549,
-0.010425599,
0.05019888,
0.03078233,
-0.007549332,
0.015586167,
-0.0031670283,
0.035128072,
-0.016742246,
0.019305117,
-0.026478376,
-0.003156582,
-0.035740934,
-0.03796952,
-0.067748986,
0.0048053865,
-0.0010298501,
-0.030448044,
0.01565581,
-0.009645595,
-0.026088374,
-0.07454617,
0.006915578,
-0.024806937,
0.025531229,
0.010209706,
-0.0278991,
-0.039278813,
0.030141613,
-0.01897083,
0.023205142,
0.019653335,
0.048165295,
0.020099051,
0.067526124,
-0.011470249,
-0.0069434354,
0.037690945,
0.024013003,
-0.034264494,
-0.04563028,
-0.014457946,
-0.018720115,
-0.01415848,
-0.03393021,
-0.07254045,
0.010933995,
0.0072846874,
-0.043373838,
-0.033038773,
0.011720965,
0.014040086,
-0.017285462,
0.018720115,
0.087806255,
0.029584467,
-0.02426372,
-0.0022738532,
0.024611937,
-0.07109186,
0.0006720577,
-0.046410285,
0.052232463,
-0.011825429,
-0.04003096,
0.01597617,
-0.037189513,
-0.011066318,
-0.014527589,
0.0035796647,
-0.00896309,
0.04788672,
0.016714389,
0.02997447,
0.009255593,
-0.018009754,
-0.015669739,
0.035573788,
0.04944673,
0.02500194,
0.09181771,
0.060896087,
-0.010460421,
0.00078522804,
0.03223091,
0.00019478356,
-0.022104777,
-0.023205142,
-0.0060345903,
-0.008357194,
-0.033456635,
-0.053458184,
-0.027119095,
0.012382576,
0.020252267,
-0.016296528,
-0.019709049,
0.0034508246,
-0.089254834,
-0.023901574,
-0.0049586017,
-0.0019064848,
0.012173646,
-0.02374836,
0.03145091,
-0.023999076,
0.22865283,
0.055241052,
0.024751224,
0.03393021,
0.025057653,
0.060784657,
0.0052545858,
-0.021728704,
0.008273622,
-0.031562336,
-0.014680804,
-0.05660606,
0.015906526,
0.025364084,
-0.04354098,
0.03493307,
-0.06852899,
0.0006385419,
-0.03203591,
-0.0445717,
-0.08329336,
0.044515986,
0.014694733,
0.04490599,
0.02944518,
-0.012744721,
0.007786119,
-0.040699534,
0.004854137,
-0.009081484,
0.009297378,
-0.02830303,
0.006633523,
-0.0086636245,
-0.0042691333,
0.005366015,
0.020099051,
-0.036966655,
-0.015405094,
0.0491403,
0.019541906,
-0.013636155,
0.02860946,
-0.017174033,
0.006490754,
0.0096177375,
-0.027815528,
0.009555059,
0.04986459,
-0.03816452,
0.04529599,
-0.04551885,
0.039418098,
-0.050867453,
-0.04841601,
-0.0051257457,
-0.06429468,
-0.048499584,
-0.009464522,
0.0039940425,
-0.020795485,
0.007291652,
0.0015922196,
0.017034747,
-0.018929044,
0.029473038,
-0.012737757,
0.059391793,
0.0008387663,
0.0064872717,
0.02186799,
-0.03273234,
-0.013872942,
-0.016992962,
-0.0013684905,
0.034570925,
-0.0017158363,
0.0655204,
-0.017550107,
-0.050449595,
0.03972453,
-0.015614024,
0.0018472881,
-0.0489453,
0.042231686,
0.05329104,
0.0016740505,
0.021798348,
-0.00017465229,
0.022522638,
0.023581216,
0.04114525,
0.00559932,
-0.011769715,
0.0073543307
] | from transformers import AutoModel
tokenizer = AutoTokenizer.from_pretrained(tf_save_directory)
pt_model = AutoModelForSequenceClassification.from_pretrained(tf_save_directory, from_tf=True)
from transformers import TFAutoModel
tokenizer = AutoTokenizer.from_pretrained(pt_save_directory)
tf_model = TFAutoModelForSequenceClassification.from_pretrained(pt_save_directory, from_pt=True) |