vector
sequencelengths 1.02k
1.02k
| text
stringlengths 2
11.8k
|
---|---|
[
-0.043179467,
-0.014780203,
-0.01791903,
0.030099776,
-0.017589416,
0.0047082403,
-0.034369778,
-0.017634364,
0.022129104,
0.056334075,
0.0016031238,
0.0119635,
0.042250555,
-0.021994261,
-0.006165285,
0.07173605,
0.011161937,
-0.00990341,
-0.030399425,
-0.027208159,
0.053307615,
-0.021335032,
-0.0748524,
-0.040872168,
0.010540165,
-0.009671182,
0.04332929,
-0.030039845,
0.06358559,
0.008847146,
-0.033141214,
-0.039044306,
0.00097292394,
-0.008472585,
-0.028871212,
-0.023237806,
0.018188715,
-0.02277335,
-0.0062963814,
-0.021799488,
0.024616193,
0.011978482,
0.033560723,
-0.03200255,
-0.05109021,
-0.022803314,
0.008030602,
-0.005996732,
-0.026563913,
-0.042999677,
0.00006630912,
0.038235255,
-0.0047344593,
-0.01955212,
-0.045786418,
-0.012383008,
-0.020361172,
0.0090943575,
-0.010435288,
-0.0033392173,
0.03565827,
0.01057013,
-0.012248166,
-0.02758272,
0.010337902,
0.039224096,
-0.002275462,
0.008974497,
0.022683455,
0.009334076,
-0.042310484,
0.02509563,
-0.00832276,
-0.031373285,
0.0025189272,
0.02344756,
-0.016915204,
0.03475932,
0.028092124,
-0.016420783,
-0.016990118,
0.009431463,
-0.013154605,
0.0048018806,
-0.023702262,
-0.029485494,
0.050460946,
-0.022863243,
-0.0016920823,
-0.015267133,
-0.012952343,
0.0006714018,
0.0018896635,
0.03577813,
-0.02412177,
0.055495057,
0.008704813,
0.023132928,
0.018488364,
-0.018638188,
0.022833278,
0.049292315,
-0.012420464,
0.029320687,
-0.056753583,
0.02072075,
-0.01445808,
0.002989002,
-0.0058206883,
-0.06915907,
-0.0062177237,
0.008922059,
-0.044617783,
0.014832642,
-0.04120178,
0.009708638,
0.016076187,
0.0374262,
-0.0028279405,
-0.0026912256,
0.04974179,
0.00071213534,
-0.0074013383,
-0.018638188,
0.00789576,
-0.02624928,
0.008907076,
0.021514822,
-0.047854,
-0.0027193176,
-0.010952183,
-0.026174368,
0.022024225,
0.06310615,
-0.0010319174,
-0.008525023,
0.010577621,
0.034369778,
0.021769524,
-0.019851768,
0.006019206,
-0.033141214,
-0.00014116292,
0.06993815,
-0.006884443,
-0.00197394,
0.020151418,
-0.057292953,
-0.023177875,
0.02058591,
-0.016166082,
0.0029478003,
-0.0041763624,
0.033680584,
0.027253106,
-0.019327382,
0.023507489,
0.022713419,
0.00022368354,
0.01841345,
0.015926361,
0.0023559928,
-0.05144979,
0.050131332,
0.021859419,
0.040962063,
0.0047531873,
-0.00057963416,
0.0060604075,
-0.013993624,
0.012989799,
0.019791838,
-0.008525023,
0.054446284,
0.023072999,
0.03433981,
0.033380937,
-0.0049179946,
-0.016630538,
0.053727124,
0.0007921979,
0.03547848,
0.026533948,
0.058611408,
0.04446796,
0.012233184,
-0.009513866,
-0.015132291,
0.012592763,
-0.004228801,
-0.00055528764,
0.015192221,
0.0038916958,
0.067481026,
-0.043808732,
0.016255977,
-0.0622072,
0.015986292,
-0.0046445644,
-0.041681223,
0.01937233,
0.04659547,
-0.04138157,
0.0017398389,
-0.018443417,
0.01111699,
-0.026339175,
0.053906914,
0.012780044,
-0.0021968042,
0.021664646,
0.02430156,
-0.024091806,
-0.036886834,
0.011873605,
0.003829893,
0.005423653,
0.004738205,
0.0071578734,
0.0438387,
0.024046859,
0.011154446,
0.023717245,
0.0040490115,
-0.03224227,
-0.015476888,
-0.012315587,
0.027432896,
0.011581447,
-0.030534266,
-0.029006055,
0.036707044,
-0.03736627,
0.025545105,
0.005521039,
-0.024496332,
0.029620336,
0.012562798,
-0.045396872,
0.00613532,
-0.0031107345,
0.020795664,
0.01178371,
0.030744022,
0.020331208,
0.0069144084,
0.030953776,
0.0012454175,
-0.038714692,
0.047194768,
-0.05435639,
0.05240867,
-0.03048932,
-0.029425563,
-0.018353522,
0.007090452,
-0.0131171495,
0.016840292,
-0.059000954,
-0.022998085,
0.011738762,
0.035268728,
-0.024825947,
-0.027957283,
0.0012004701,
0.07916735,
-0.023882052,
-0.00082450383,
0.019057697,
-0.027537772,
-0.034459673,
-0.04099203,
-0.046265855,
0.022563593,
-0.038834553,
-0.01421087,
0.042070765,
-0.026953457,
0.03505897,
-0.027627667,
0.0007678514,
0.012899904,
-0.024496332,
0.04635575,
0.012742587,
0.035508446,
-0.032961424,
0.05570481,
-0.05612432,
0.029785143,
0.008757251,
-0.0139786415,
0.0023803394,
-0.016315905,
0.013896237,
-0.0015703498,
-0.01937233,
-0.033560723,
-0.016480712,
-0.022323875,
-0.0069106626,
0.022129104,
0.027343001,
-0.029110933,
-0.01585145,
-0.01767931,
0.004775661,
-0.026024545,
0.044677716,
0.055225372,
-0.032571882,
0.0374262,
0.014667834,
0.012360535,
-0.04332929,
0.07395346,
0.053307615,
-0.020166399,
-0.0357182,
-0.04536691,
-0.01992668,
-0.0056970827,
0.0017623126,
-0.016465731,
-0.04830347,
0.05321772,
-0.01688524,
-0.05771246,
0.018248644,
-0.028556582,
-0.02557507,
0.023357665,
-0.031942617,
0.032691743,
0.04476761,
0.044168312,
-0.020211346,
0.006536101,
0.0069481186,
0.04749442,
0.014405642,
0.002833559,
0.017529486,
0.034100093,
0.026279246,
0.017784188,
0.034040164,
-0.042849854,
0.025485175,
-0.009446445,
-0.012383008,
-0.02885623,
-0.02945553,
-0.018802995,
0.03886452,
0.031972583,
-0.023986928,
0.026698755,
-0.006655961,
0.02010647,
0.027507808,
0.027238123,
0.019447241,
0.021275103,
-0.016121134,
0.0044497927,
0.02873637,
0.028331844,
0.017454574,
-0.06274657,
0.014855116,
-0.008083041,
-0.015881414,
-0.007708479,
-0.030504301,
-0.01148406,
0.064424604,
-0.0008568098,
0.056543827,
-0.02728307,
0.010525183,
0.010015779,
0.02581479,
0.027987247,
0.0066484693,
0.0019327381,
0.004329933,
0.03012974,
-0.034609497,
-0.013177079,
0.021499839,
-0.013409307,
-0.029860055,
-0.02824195,
-0.07269493,
-0.0501613,
0.006330092,
0.026923493,
0.034579534,
-0.015566783,
0.06268664,
-0.04842333,
0.014855116,
0.036347464,
0.0187131,
-0.07071724,
-0.03589799,
0.060409304,
-0.009558814,
-0.007112926,
-0.014480554,
0.012675166,
-0.03335097,
0.024361491,
0.018967802,
0.0034515858,
-0.024361491,
0.015372011,
0.00558846,
0.063345864,
-0.0027792475,
-0.040932097,
-0.007805865,
0.008420146,
0.0149674835,
-0.0368269,
-0.010053235,
-0.019312399,
-0.037306342,
0.01445808,
-0.008000637,
-0.050610773,
-0.018758047,
-0.007708479,
-0.06001976,
0.05492572,
-0.0019327381,
0.0037100331,
0.020241313,
-0.031373285,
-0.015431941,
0.027987247,
-0.0058057057,
-0.004438556,
-0.00014420623,
0.013581606,
0.015536818,
0.000084978674,
-0.01263771,
0.017754223,
0.0060716444,
-0.048543192,
0.082463495,
-0.025230473,
-0.017784188,
-0.007813356,
0.0021630935,
-0.020241313,
0.035748165,
0.025140578,
-0.011161937,
-0.03278164,
0.04458782,
-0.031792793,
-0.020076506,
-0.010030761,
0.0328116,
0.03060918,
0.061547972,
0.021245137,
-0.03317118,
0.05912081,
0.008847146,
-0.06304622,
0.041681223,
0.00085025496,
-0.0027511553,
0.029815108,
-0.0077159703,
-0.024496332,
-0.020750716,
0.03493911,
0.027717562,
-0.008847146,
0.011753744,
-0.020091487,
-0.040242903,
0.04075231,
-0.015566783,
-0.023177875,
0.033141214,
-0.043149505,
-0.029395599,
-0.009521358,
-0.03523876,
-0.018728083,
-0.028691422,
0.03535862,
0.032571882,
0.02557507,
0.0049779243,
0.0042625116,
-0.05393688,
0.03931399,
-0.037576027,
0.0058394163,
-0.038415045,
-0.013072202,
-0.0018053872,
-0.0044947397,
-0.072275415,
0.002803594,
0.0006714018,
-0.00020717942,
0.032481987,
-0.0287963,
0.02654893,
-0.0029515459,
-0.019522153,
0.039014343,
-0.026354158,
-0.027957283,
-0.04162129,
0.038984377,
0.006427478,
-0.009349059,
-0.007071724,
-0.039284028,
-0.042909782,
-0.056184247,
0.06394517,
-0.050820526,
-0.00030152214,
-0.032362126,
-0.068919346,
0.004786898,
0.00832276,
0.028556582,
-0.02776251,
0.03910424,
-0.03826522,
-0.005565986,
-0.042670064,
-0.059210707,
-0.01664552,
0.0033073795,
-0.015776537,
0.051479753,
0.005449872,
0.03158304,
0.00011552886,
0.017544469,
0.018308574,
0.012293113,
-0.05204909,
-0.068739556,
0.011109499,
-0.011102008,
0.017709276,
-0.0040003187,
-0.056783546,
0.027732546,
-0.04135161,
0.065143764,
-0.008480076,
-0.020196365,
-0.027912335,
-0.067840606,
0.057292953,
-0.018473381,
0.049472105,
0.027477844,
-0.010000796,
0.032302197,
0.052768245,
-0.022488682,
0.0041463976,
-0.032541916,
-0.046565507,
0.043898627,
-0.048633087,
0.030953776,
-0.0038654762,
0.0005712065,
0.01591138,
-0.030024862,
0.01907268,
0.022998085,
-0.025784824,
-0.003312998,
0.006360057,
0.01706503,
0.042999677,
-0.015327063,
-0.0065098815,
0.037516095,
-0.018263627,
-0.018578257,
-0.03625757,
-0.005734539,
-0.029695248,
0.02860153,
0.013649027,
-0.024840929,
0.038954414,
-0.012750079,
-0.052198913,
-0.023177875,
0.052138984,
-0.038295183,
0.0345196,
0.024646157,
0.036347464,
-0.048183613,
0.029919986,
0.002550765,
-0.0025638745,
-0.0018671899,
0.027357984,
-0.045636594,
-0.03736627,
0.05321772,
0.028481668,
-0.0054573636,
-0.054835826,
-0.0045284503,
-0.000676552,
-0.011843639,
0.0029122168,
-0.029890021,
-0.06688173,
-0.03448964,
-0.0552853,
0.021799488,
-0.0078732865,
-0.017993942,
0.010465253,
-0.020466048,
-0.0455467,
0.018308574,
0.038175326,
-0.01014313,
0.0053712144,
-0.01652566,
-0.014855116,
-0.04599617,
0.0025769842,
0.050071403,
0.012869938,
0.020301241,
0.034459673,
-0.012600254,
0.055914566,
-0.009169269,
0.016615555,
-0.0013802598,
-0.07089703,
-0.021829454,
-0.056903407,
0.018338539,
-0.0052625914,
-0.002226769,
0.026234299,
-0.003369182,
0.030534266,
0.032721706,
-0.03395027,
-0.08623908,
-0.017963978,
-0.037036657,
-0.008727287,
0.005393688,
-0.02527542,
0.02173956,
0.024810964,
0.008937041,
-0.034549568,
-0.024046859,
0.017334715,
0.0011920425,
-0.03760599,
-0.023432577,
-0.04009308,
-0.0328116,
-0.02945553,
-0.039703537,
-0.010697481,
-0.013956168,
-0.005569732,
0.01421087,
0.018458398,
-0.0058956007,
0.040063117,
-0.041321643,
0.008674848,
-0.035508446,
-0.045426838,
-0.060708955,
-0.020750716,
-0.021799488,
0.048812874,
0.022923173,
-0.04476761,
0.0032511952,
0.004846828,
0.00029028527,
0.006858224,
-0.003058296,
0.06103857,
-0.0017435845,
-0.015506852,
0.0317029,
0.0053749597,
-0.036107745,
0.016750397,
-0.010622568,
-0.008772234,
-0.041411538,
0.015357028,
0.04476761,
0.009940866,
0.023028051,
0.039194133,
-0.004258766,
-0.000028618852,
0.00762233,
0.030639144,
0.01397115,
0.027238123,
0.011349218,
0.0017866591,
0.010727446,
0.022159068,
-0.031493146,
0.0031388267,
-0.029530441,
0.003556463,
-0.041651256,
0.004535942,
0.022923173,
0.072275415,
0.027402932,
-0.013341886,
-0.022159068,
-0.00728897,
-0.05132993,
-0.0003172069,
-0.06490404,
0.0013222026,
0.0069406275,
-0.06921899,
0.0003385101,
-0.0018821723,
-0.005341249,
-0.016510678,
0.03353076,
-0.011499043,
0.031613003,
-0.02004654,
-0.008981989,
0.011371692,
-0.031133566,
-0.027238123,
0.012338061,
0.025230473,
-0.06346573,
-0.019357346,
0.00028700786,
0.041861013,
-0.036587182,
-0.0105102,
-0.034010198,
0.02173956,
0.019237487,
-0.007423812,
-0.04458782,
0.018458398,
-0.04677526,
0.025485175,
-0.027043352,
0.014473063,
-0.00631511,
0.01421087,
0.02545521,
-0.0019664487,
-0.013821325,
0.006738364,
0.03048932,
-0.06430475,
0.04422824,
0.035957918,
0.0040115556,
-0.008083041,
0.022518648,
-0.0018596987,
0.017169906,
0.02430156,
0.038804587,
0.004307459,
0.031732865,
-0.022278927,
-0.022833278,
0.04332929,
0.022248963,
0.0050490913,
-0.04707491,
0.003526498,
0.018967802,
0.038474973,
-0.021305067,
0.006449952,
-0.016166082,
-0.014038571,
-0.00013390579,
-0.022698436,
-0.01403108,
-0.02078068,
-0.045127187,
-0.026174368,
-0.010270481,
0.006446206,
0.01057013,
0.00197394,
-0.0058169425,
-0.003106989,
0.028511634,
0.04135161,
0.010847306,
0.04045266,
0.0092741465,
0.031433214,
0.0104952175,
-0.017169906,
0.039224096,
-0.03287153,
-0.01457794,
0.013641535,
0.0122182015,
0.0127575705,
-0.027792474,
-0.010045744,
-0.008210392,
-0.012967325,
-0.030114757,
-0.021829454,
0.03164297,
-0.0736538,
0.024496332,
0.048093718,
-0.018188715,
-0.052558493,
-0.010787376,
-0.040662415,
0.006757092,
0.01457794,
0.024226649,
-0.011753744,
0.09834491,
0.010757411,
-0.007738444,
0.035808094,
0.02290819,
-0.038804587,
0.019701943,
0.0017744858,
-0.012765061,
-0.008487567,
-0.00033593498,
-0.04275996,
-0.0011040205,
0.011311762,
-0.02114026,
-0.050850492,
0.04890277,
0.020496015,
-0.045906276,
-0.05909085,
0.078927636,
0.02873637,
0.03048932,
0.00017089376,
-0.052019123,
-0.044138346,
-0.0008877111,
-0.0118960785,
0.042190626,
-0.02229391,
-0.03080395,
-0.040123045,
-0.02137998,
0.011993464,
-0.008375199,
-0.037456166,
-0.023102963,
0.029695248,
0.042789925,
0.03413006,
0.047554348,
0.004202582,
-0.042310484,
0.0073414086,
0.04347912,
0.008352725,
0.049711823,
0.072814785,
0.020316225,
0.013266974,
0.034849215,
0.018563276,
-0.03188269,
-0.018473381,
-0.006225215,
-0.006846987,
-0.040602483,
-0.008240356,
0.017334715,
0.010802358,
-0.057292953,
-0.009671182,
0.018368503,
-0.008225374,
-0.07275486,
0.0073751193,
-0.03643736,
0.001744521,
-0.029860055,
-0.0057083196,
0.0078732865,
-0.02374721,
0.26896524,
0.04524705,
0.017124958,
0.015896397,
0.016690468,
0.036557216,
0.048153646,
-0.030369459,
0.007071724,
-0.051659543,
-0.013349378,
-0.009176761,
0.05279821,
0.011439113,
-0.017394643,
0.02830188,
-0.03152311,
-0.011633885,
0.05576474,
-0.083722025,
-0.017289767,
0.010442779,
-0.009311602,
0.055614915,
0.00029684012,
0.026159387,
0.012180746,
-0.020615874,
0.01779917,
-0.0130272545,
0.030714056,
0.0067458553,
0.021709593,
-0.033620656,
-0.004535942,
0.029380616,
-0.0052813194,
-0.04707491,
0.015072362,
-0.03625757,
0.0018110056,
0.031493146,
0.0031032434,
0.00826283,
0.0030770241,
0.031553075,
0.028511634,
0.023462543,
0.0128474645,
-0.07736946,
0.058881093,
-0.0616079,
0.015229677,
0.0057270476,
-0.07557156,
-0.008839655,
-0.03466943,
-0.022953138,
0.04488747,
0.00801562,
0.020256294,
0.02277335,
-0.029215809,
-0.023927,
-0.033830408,
0.0049105035,
-0.0047269682,
0.03389034,
-0.018278608,
0.011064552,
-0.017784188,
-0.029710231,
-0.013866273,
0.019462224,
0.023897033,
0.027372966,
0.016615555,
0.0064986446,
0.008667357,
-0.026743703,
-0.018862925,
-0.009880937,
-0.00598175,
-0.012412974,
0.028376792,
0.008996971,
-0.043269362,
0.0013802598,
0.0128175,
-0.0018915364,
0.018653171,
0.06610264,
0.0004967624,
-0.019327382,
0.014053553
] | FlashAttention can only be used for models with the fp16 or bf16 torch type, so make sure to cast your model to the appropriate type first. The memory-efficient attention backend is able to handle fp32 models.
By default, SDPA selects the most performant kernel available but you can check whether a backend is available in a given setting (hardware, problem size) with torch.backends.cuda.sdp_kernel as a context manager: |
[
-0.0048741302,
0.005925342,
-0.011450568,
0.04396902,
0.005670723,
-0.019758414,
-0.0089553045,
-0.008089601,
-0.016164653,
0.05118564,
0.004979615,
0.016193751,
0.04100089,
-0.0611085,
-0.018099755,
0.02278474,
0.018434396,
-0.038440157,
-0.049847074,
-0.010613964,
0.035559326,
0.007805883,
-0.05493945,
-0.028153557,
-0.0011867052,
-0.007256634,
0.021780815,
-0.0025698305,
0.043270636,
0.0044085416,
-0.03462815,
0.022755641,
0.008438793,
-0.02032585,
0.011908882,
-0.026291205,
0.016121004,
-0.020602293,
0.004190297,
-0.0037719947,
0.0034228035,
0.02525818,
0.03125263,
-0.037538078,
-0.062156074,
-0.043328837,
-0.0022624694,
-0.0012967369,
-0.005616162,
-0.0022752003,
-0.025374576,
0.0016450189,
0.01993301,
-0.02314848,
-0.029404826,
-0.0009007138,
-0.017823312,
-0.0041830223,
-0.05083645,
-0.047169942,
0.009413619,
0.042135764,
-0.023948712,
-0.06023552,
0.0050632753,
0.02608751,
-0.003826556,
-0.0048232065,
-0.010315697,
-0.012861884,
-0.02971037,
0.040127914,
-0.043678027,
-0.024239704,
-0.042223062,
0.016048256,
0.02522908,
0.006030827,
-0.021286126,
0.011646989,
0.0044849273,
0.004506752,
0.007820433,
-0.013305648,
-0.042077567,
-0.04437641,
0.050603658,
-0.030757943,
0.026989587,
-0.024908988,
-0.0026262105,
0.011006804,
0.0047177216,
0.015378972,
0.03826556,
0.053629983,
-0.020733241,
0.011072278,
-0.01284006,
-0.0018268895,
0.021635318,
0.0733884,
-0.027964413,
0.025781967,
-0.027091434,
-0.002875373,
0.02688774,
0.018972734,
-0.023846865,
-0.0055434136,
-0.017532319,
-0.033551477,
-0.014687864,
0.009690062,
-0.016470196,
0.04102999,
-0.00080523174,
0.008002304,
-0.04519119,
-0.018478045,
0.018972734,
-0.023468573,
0.023672268,
-0.051651232,
-0.0041248235,
-0.04647156,
0.021737166,
0.044230912,
-0.061981477,
0.0024825328,
0.028444551,
-0.000549249,
-0.0037610827,
0.019700216,
-0.0040084263,
0.011188675,
-0.026203906,
0.021664418,
0.05418287,
-0.00033395976,
0.011297798,
-0.036926992,
0.0002007396,
0.090091385,
0.0014322305,
-0.012374471,
0.029201133,
-0.004597687,
-0.036868792,
0.018085206,
-0.055463236,
-0.013240174,
-0.011377821,
0.05651081,
0.02119883,
-0.0029172034,
0.0017777844,
0.010548491,
-0.0024570709,
-0.00069474545,
0.008024128,
0.0012912807,
-0.007864081,
0.06797593,
0.0108904075,
0.053891875,
-0.01996211,
-0.015175277,
-0.0011930707,
-0.022697441,
0.030379653,
-0.0050996495,
-0.006259984,
0.022100907,
0.013822161,
0.010926781,
0.05648171,
0.018245252,
-0.021417074,
0.04845031,
-0.0065400642,
0.012534517,
0.012454494,
0.044434607,
0.041611977,
0.017808761,
-0.0114287445,
-0.0048232065,
-0.02645125,
0.0060963,
0.04405632,
0.055434138,
-0.028255405,
0.023948712,
-0.042106666,
0.014898834,
-0.044871096,
0.00086661306,
0.0048304815,
-0.060526513,
0.004674073,
0.04687895,
-0.01217805,
0.0072675464,
-0.025141781,
0.020514995,
0.0030681558,
0.0774041,
-0.0065146023,
-0.007762234,
0.043619826,
0.023483124,
-0.0162665,
-0.015655415,
0.03570482,
0.028008062,
-0.011450568,
0.034104362,
0.02029675,
0.04632606,
0.015044331,
0.038120065,
0.02191176,
-0.021795364,
-0.044521905,
-0.026116608,
0.017459571,
0.029855866,
-0.0011339628,
-0.02853185,
0.018492596,
0.0366651,
0.005867143,
0.00894803,
0.007031115,
0.019249177,
0.04632606,
0.016935784,
-0.021649867,
0.013378397,
-0.038963944,
0.0051869475,
0.0011585152,
0.017183127,
0.035093736,
0.017823312,
0.0244725,
-0.008657037,
-0.04804292,
0.034773644,
-0.059653535,
0.025360027,
0.014527818,
-0.028095359,
-0.06774314,
-0.033144087,
-0.012163501,
0.041728374,
-0.027367877,
-0.028299054,
0.060933903,
0.046005968,
0.01240357,
-0.041786574,
0.007256634,
0.060526513,
-0.008489717,
0.002518907,
-0.027615221,
0.007965929,
-0.03166002,
-0.055550534,
-0.061574087,
0.012927357,
-0.049992573,
-0.009195374,
0.01670299,
-0.027993511,
-0.007834982,
-0.025272729,
0.0091299005,
-0.007165699,
-0.018769039,
0.046937145,
0.036723297,
0.014869735,
-0.053862777,
0.071351446,
-0.02728058,
0.06186508,
-0.03820736,
0.012461768,
0.018870886,
-0.040942695,
-0.0037356208,
-0.019656567,
-0.02156257,
-0.024690744,
0.0025498248,
0.00039829646,
-0.024050558,
0.033202283,
0.022130007,
-0.0074021304,
-0.028648246,
0.015786363,
0.04341613,
-0.021358876,
0.03378427,
0.049497884,
0.014469619,
0.03977872,
0.02195541,
0.03177642,
-0.035093736,
0.064193025,
0.026684044,
0.0052960697,
-0.05773298,
-0.016717538,
-0.018812688,
0.0028299054,
-0.0044667404,
-0.041262787,
0.0005428835,
0.060584713,
-0.011086827,
-0.03291129,
0.025403677,
-0.031194434,
-0.040971793,
0.029492125,
-0.0057652956,
0.038381957,
0.036024913,
0.03777087,
-0.0649496,
0.0005483396,
-0.012578166,
-0.0034009789,
-0.0026080234,
-0.0035573875,
0.00238796,
0.03454085,
0.02119883,
0.027498825,
0.0108103845,
-0.027178733,
0.022930237,
-0.013276549,
-0.0071365996,
-0.02115518,
0.018085206,
-0.020631393,
0.003060881,
0.014877009,
-0.028764643,
0.015568118,
0.00097573537,
0.017794212,
0.031107135,
0.013560267,
0.040127914,
0.017023081,
0.010548491,
-0.010744911,
-0.028400902,
0.009901032,
0.04554038,
-0.025039935,
0.015349872,
0.011130476,
-0.02322123,
0.027178733,
-0.0324748,
-0.040011518,
0.03611221,
-0.0076676616,
0.044230912,
-0.014695139,
-0.020034857,
-0.0011294159,
0.013407496,
0.008482441,
0.019394673,
0.044085417,
0.040448006,
-0.00976281,
-0.005918067,
-0.042514056,
0.010504842,
0.0064600413,
-0.020194903,
-0.02278474,
-0.08107061,
-0.044434607,
0.0065873507,
0.019030932,
0.046995346,
0.030059561,
0.059246145,
-0.014644215,
0.023817765,
0.033580575,
-0.002586199,
-0.047839224,
-0.04935239,
0.0690817,
-0.005961716,
-0.006609175,
-0.027789816,
-0.016470196,
-0.024647094,
0.023381276,
0.03710159,
-0.005059638,
-0.0038956667,
0.01158879,
0.008489717,
0.046180565,
-0.032445703,
-0.05814037,
-0.022144556,
0.022872038,
0.029186582,
-0.05118564,
-0.007202073,
-0.01097043,
-0.0028299054,
0.02317758,
-0.017575968,
-0.032707594,
-0.032998588,
-0.009821009,
-0.05383368,
0.04152468,
0.020151256,
0.0032300206,
0.0028299054,
-0.04594777,
-0.0015977327,
0.027426075,
-0.013720313,
0.015509919,
0.0072057103,
0.016615693,
-0.0035592064,
-0.0135238925,
-0.000053253963,
-0.011370545,
0.020005759,
-0.053164393,
0.023439474,
-0.020689592,
-0.0129055325,
-0.02070414,
-0.019860262,
-0.0015313498,
0.047897425,
-0.010446643,
-0.060933903,
-0.017837862,
0.020922385,
-0.02560737,
-0.04507479,
0.03206741,
0.01422955,
0.012076203,
0.019685667,
0.015044331,
-0.0014395053,
0.04923599,
0.012607265,
-0.03576302,
-0.0032845817,
0.0030081386,
-0.01706673,
-0.011865233,
-0.025578272,
-0.011057728,
-0.010824934,
0.04431821,
0.019612918,
-0.023759566,
0.027062334,
-0.05930434,
-0.0001808475,
0.04155378,
-0.010242948,
-0.012890983,
0.031689122,
-0.049061395,
0.01827435,
-0.032591198,
0.027120534,
-0.013167426,
-0.049148694,
0.008773434,
0.079615645,
0.06413482,
0.037538078,
-0.031107135,
-0.031834617,
0.044143613,
-0.032765795,
0.01793971,
-0.0264658,
0.0039393157,
0.015757263,
-0.010919507,
-0.05493945,
0.0151898265,
0.007922281,
-0.035501126,
-0.0024261528,
0.009806459,
-0.007980479,
-0.019496521,
0.0038192812,
0.05086555,
-0.0026789529,
-0.06279626,
-0.031601824,
0.012694563,
0.020311302,
-0.014884284,
0.012985555,
-0.039313134,
0.011850684,
-0.027935313,
0.062039677,
-0.053804576,
0.020093055,
-0.027047785,
-0.064367615,
-0.019845713,
0.008547915,
0.012119852,
-0.09288492,
-0.011777936,
-0.052553307,
-0.011094103,
-0.014811536,
-0.034773644,
-0.04961428,
-0.0052378713,
-0.011959806,
0.05118564,
-0.014295024,
0.03544293,
-0.000987557,
0.02274109,
-0.0058489563,
0.033755172,
-0.04018611,
0.0035101012,
0.0032573012,
-0.0050632753,
0.024705293,
-0.012621814,
-0.040622603,
0.01361119,
-0.039633226,
0.02477804,
-0.05010897,
-0.032009214,
-0.040418908,
-0.0041320985,
0.02972492,
-0.052349612,
0.017837862,
0.010315697,
0.016921233,
0.017808761,
0.05377548,
-0.013276549,
-0.021096982,
-0.048159316,
-0.05168033,
0.04830481,
-0.02477804,
0.0061581363,
0.01038117,
-0.001394947,
0.018041557,
-0.018201603,
0.027964413,
0.04594777,
0.0087006865,
0.018157953,
-0.07525075,
0.023861414,
0.033260483,
-0.035559326,
0.010133826,
0.0066055376,
-0.04507479,
-0.01583001,
-0.04926509,
-0.022275502,
-0.009995604,
0.028517298,
0.0086061135,
-0.017197678,
0.020209454,
-0.026480349,
-0.051389337,
-0.017619617,
0.032387502,
-0.021606218,
0.04830481,
0.020034857,
0.019365573,
-0.01748867,
0.05412467,
-0.03090344,
-0.0066637364,
0.003881117,
0.03791637,
-0.040564403,
-0.01139237,
0.033202283,
0.0015331686,
-0.03305679,
-0.07676391,
0.002888104,
-0.005387005,
-0.0070711263,
-0.024996286,
-0.0014113153,
-0.02597111,
-0.04836301,
-0.05258241,
0.042921446,
0.0076676616,
-0.026902288,
0.027324228,
0.00023961443,
-0.048915897,
0.034919143,
0.057907578,
-0.033231385,
0.003233658,
-0.046966247,
-0.023133932,
-0.032329306,
0.013603915,
0.04911959,
0.018128855,
0.04548218,
0.02931753,
0.00043330653,
0.07449417,
-0.022290053,
0.0113341715,
-0.020980584,
-0.046180565,
-0.044230912,
-0.022246404,
-0.0074348673,
-0.026189357,
0.016717538,
0.024705293,
0.012745487,
0.006219972,
0.028168108,
-0.01830345,
-0.07234082,
0.006441854,
-0.01241812,
-0.026160257,
-0.02029675,
-0.042077567,
-0.024414299,
0.036810596,
-0.027746169,
-0.026349403,
-0.015480819,
0.018478045,
-0.02597111,
-0.02116973,
-0.027382428,
-0.026756793,
-0.029302979,
0.005874418,
-0.04149558,
-0.042135764,
0.015495369,
0.00894803,
-0.00028008063,
0.025403677,
-0.02240645,
0.037945468,
0.0030699745,
-0.023352176,
-0.024036009,
-0.03413346,
-0.019845713,
0.01140692,
-0.020078506,
0.04030251,
0.052989796,
-0.017866962,
0.0018196147,
0.011661538,
-0.0009048059,
-0.0051796725,
-0.014767887,
0.088170834,
-0.0051614856,
0.033609673,
-0.010053803,
0.017357724,
-0.05176763,
0.01952562,
-0.032445703,
-0.021780815,
0.002931753,
0.039720524,
0.023017535,
0.018870886,
0.02803716,
0.048683103,
-0.003499189,
0.027717069,
-0.003913854,
0.006532789,
-0.012098027,
0.016761187,
-0.019816613,
-0.015262575,
0.02682954,
0.010315697,
0.00772586,
0.029506674,
-0.010672162,
-0.026625846,
-0.053542685,
-0.02154802,
0.023279428,
0.051854927,
0.014957032,
-0.040913593,
-0.010322971,
0.002018763,
-0.045307588,
0.02364317,
-0.042572252,
0.014709689,
-0.017314075,
-0.07664751,
-0.013378397,
-0.02397781,
0.0045213015,
0.018187054,
0.01994756,
0.028444551,
-0.005339719,
0.011923432,
-0.008271472,
0.009522741,
-0.063960224,
0.0095736645,
-0.012563616,
0.007776784,
-0.022697441,
-0.019612918,
0.018230703,
0.06471681,
0.0016741182,
-0.030699745,
-0.04231036,
0.0096536875,
0.010046528,
0.04199027,
-0.040564403,
-0.000068030946,
-0.044638302,
0.024079658,
-0.056365315,
0.028211758,
-0.02071869,
0.03180552,
0.020864187,
0.019612918,
-0.016077355,
0.015800912,
0.038847547,
-0.0487704,
0.007423955,
0.043037843,
0.003017232,
-0.00743123,
0.019016383,
0.0024570709,
0.022246404,
0.0733884,
0.049323287,
-0.023468573,
0.039545927,
-0.012534517,
-0.02525818,
-0.010257497,
0.03090344,
0.03177642,
-0.029404826,
0.023119383,
-0.021227928,
0.01546627,
0.00137676,
0.016382897,
-0.0063836556,
0.009260847,
-0.0022461012,
0.009595489,
-0.023555871,
-0.03331868,
-0.018536244,
-0.012105303,
-0.034424454,
-0.010053803,
0.027440626,
0.022581045,
0.010519392,
-0.01018475,
0.020194903,
0.030437851,
0.03701429,
0.015349872,
-0.018769039,
0.042135764,
0.008096876,
0.036024913,
-0.013487519,
-0.018318,
-0.01546627,
-0.003597399,
-0.021664418,
0.035064638,
-0.033958867,
-0.043852624,
-0.006165411,
-0.023745017,
-0.0018578075,
-0.04105909,
0.02277019,
-0.037741773,
-0.004037526,
0.026116608,
-0.006583713,
-0.01462239,
0.0074275923,
-0.03497734,
0.023584971,
0.013589366,
0.040506203,
-0.01668844,
0.11313802,
0.0071984357,
0.0034446279,
0.04935239,
0.014011306,
-0.016572043,
0.018390749,
0.01223625,
-0.0017359542,
-0.028720994,
-0.029768568,
-0.037538078,
-0.016033705,
0.023555871,
-0.014775162,
-0.0112395985,
0.050283562,
-0.01160334,
-0.008315121,
0.006441854,
0.09486367,
0.018085206,
-0.00854064,
-0.018899985,
-0.024588896,
-0.042630453,
-0.024996286,
-0.013065578,
0.014207725,
-0.031456325,
-0.054211967,
-0.005114199,
0.00012844606,
-0.035995815,
-0.0487122,
0.018478045,
-0.02969582,
0.05162213,
0.044929296,
0.031427227,
0.053542685,
0.008184174,
-0.04638426,
0.027193282,
0.021227928,
-0.00027553385,
0.04801382,
0.08095421,
-0.0040993616,
0.016790288,
0.006583713,
0.030205058,
-0.020151256,
0.01706673,
-0.019845713,
-0.032998588,
-0.051796727,
-0.025942013,
-0.043619826,
0.018157953,
-0.019772964,
0.007227535,
-0.033144087,
-0.03296949,
-0.050952848,
0.009682787,
-0.04929419,
0.0447256,
-0.024617994,
-0.019903911,
-0.014447795,
-0.029826768,
0.25304738,
0.07088586,
0.048741303,
-0.0021278851,
0.05444476,
0.06855792,
0.008467892,
-0.032678496,
0.008395144,
-0.010519392,
-0.0064454917,
-0.014855185,
0.016091904,
0.039284036,
-0.052669704,
0.051825825,
-0.07210803,
-0.0108103845,
0.023424923,
-0.04801382,
-0.029215682,
0.016819386,
0.02077689,
0.032183807,
0.030990738,
0.036345005,
0.019598369,
-0.040884495,
0.0041611977,
0.003942953,
0.030845242,
-0.009006228,
0.010221124,
-0.040709898,
0.011108652,
0.032591198,
-0.018085206,
-0.05441566,
0.010446643,
0.009449992,
-0.0030008638,
0.0055215894,
0.014404146,
-0.019336475,
-0.042281263,
0.025330927,
0.016208302,
0.031078037,
0.043299735,
-0.059217043,
0.026174806,
-0.049876176,
0.011152301,
-0.017706914,
-0.055550534,
-0.0027116896,
-0.04754823,
-0.0071365996,
0.010206575,
0.0070565767,
-0.001444052,
0.023890512,
0.008846182,
-0.03212561,
-0.020398598,
0.020471347,
-0.01362574,
0.028284505,
-0.06768493,
-0.025985662,
-0.025083583,
-0.023075733,
-0.0014586017,
-0.02442885,
0.028750094,
0.04405632,
-0.005874418,
0.026975038,
-0.032649398,
-0.043357935,
0.014156802,
-0.008446068,
0.006430942,
-0.007842258,
0.020966034,
0.048595805,
-0.013938557,
0.009784634,
0.017328624,
0.011981631,
0.0059144297,
0.05124384,
-0.010570316,
0.008140525,
-0.004895955
] | with torch.backends.cuda.sdp_kernel(enable_flash=True, enable_math=False, enable_mem_efficient=False):
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True)) |
[
0.019099504,
-0.012807478,
-0.0060649933,
0.002037881,
-0.025845593,
0.0032343029,
0.0072037564,
0.007841608,
0.005301013,
0.040476535,
0.015380506,
-0.01725442,
0.034883622,
-0.050566837,
0.004270361,
0.038862083,
-0.021852715,
-0.04062068,
-0.0488659,
-0.012461525,
0.017441811,
-0.021708569,
-0.09306143,
-0.05613092,
-0.0028306907,
0.025384322,
0.048548777,
-0.010349769,
0.048058677,
0.03387459,
-0.03649807,
0.004731632,
0.0025928477,
-0.021377029,
-0.014695806,
-0.024274388,
0.011531776,
-0.0047604614,
-0.026292449,
-0.025052782,
0.033067368,
-0.0030018655,
0.018594988,
-0.038689107,
-0.06636537,
0.01119303,
-0.018076058,
-0.02263111,
0.01029211,
-0.037737735,
-0.0050235298,
-0.007308263,
0.05085513,
-0.0016072412,
-0.046588376,
-0.043272987,
-0.02721499,
-0.013456141,
-0.04376309,
-0.0032685378,
0.03445118,
0.042955864,
-0.03600797,
-0.04693433,
-0.0054884045,
0.034220546,
-0.0034847585,
0.027243821,
-0.009765972,
0.0074235806,
-0.045348708,
0.031078136,
-0.020094119,
-0.051028106,
-0.013261542,
0.0127137825,
0.01881121,
-0.020238267,
-0.032606095,
0.048779413,
-0.015164285,
0.017585957,
0.019459872,
0.023250943,
-0.030097935,
-0.024519438,
0.044426166,
0.0045046,
-0.006328062,
-0.036094457,
-0.016836394,
0.01220206,
-0.009535337,
-0.00925425,
0.03770891,
0.051229913,
-0.013917412,
0.015539068,
-0.015856192,
-0.017384153,
0.022890575,
0.0668843,
-0.02904566,
0.017297663,
-0.025860008,
0.011452495,
-0.0017171535,
-0.018681478,
-0.01001823,
-0.023351846,
-0.01700937,
0.0028415017,
0.029305125,
0.024476195,
0.00035248493,
0.024346462,
-0.015294017,
0.03964048,
-0.033499807,
-0.017758936,
0.010299318,
-0.020569805,
-0.033153854,
-0.08458558,
0.02904566,
-0.051575866,
0.011135371,
0.04635774,
-0.032577265,
-0.0010937168,
0.012439903,
-0.0071352865,
0.017946325,
0.05861025,
-0.008021791,
-0.015265188,
-0.019618433,
-0.0035424174,
0.003974859,
-0.0026360918,
-0.008396574,
-0.010681307,
-0.013549836,
0.08787213,
0.015784118,
-0.033240344,
0.024346462,
-0.046530716,
-0.016836394,
0.010832662,
-0.063482426,
0.017268835,
0.0135138,
0.014450757,
-0.0034739475,
0.0025802348,
-0.010573197,
0.012411074,
-0.005326239,
0.012454318,
0.029723153,
0.014198499,
-0.048145164,
0.060599484,
0.0008680364,
0.046530716,
-0.043820746,
-0.033211514,
0.01272099,
-0.014501208,
0.00003296804,
-0.00085272075,
0.0010144359,
0.0131750535,
0.037881885,
0.015553483,
0.03966931,
0.02033917,
-0.028079875,
0.010212829,
-0.011243481,
-0.00818756,
-0.015193115,
0.02544198,
0.013463348,
0.0035262008,
-0.017845424,
-0.026523083,
-0.014335439,
0.007935303,
0.026220376,
0.041543223,
-0.03499894,
0.01930131,
-0.04364777,
0.0025009539,
-0.048606437,
0.00021002698,
-0.010760589,
-0.04947132,
0.008144316,
0.045925297,
-0.032115996,
0.0021694154,
-0.01722559,
0.011171408,
-0.0021982447,
0.02901683,
-0.000945966,
0.027892483,
0.041341417,
0.013117395,
-0.03442235,
-0.010025438,
0.0044973926,
0.017470641,
-0.009888498,
0.025297834,
-0.0017288654,
0.025586128,
0.022155425,
0.010883113,
0.06261754,
-0.01195701,
-0.009441641,
-0.0070451945,
-0.0053334464,
0.0503362,
-0.004555051,
-0.0057010218,
0.0034505236,
0.028252851,
0.0026036587,
0.038775597,
0.0049478523,
0.016259804,
0.03756476,
0.046127103,
0.024793318,
-0.018638233,
-0.030011447,
0.026090642,
0.03646924,
0.03283673,
-0.008879468,
-0.004637936,
-0.014832746,
0.0017748124,
-0.017658032,
0.041946836,
-0.049932588,
0.05350744,
0.0029225845,
-0.018926527,
-0.0550354,
-0.008367745,
0.012209267,
0.045982957,
-0.012930004,
-0.0365269,
0.036815193,
0.025269004,
0.0070451945,
-0.01924365,
0.043042354,
0.05492008,
-0.034652986,
0.00471001,
-0.004468563,
-0.03543138,
-0.032288972,
-0.029896129,
-0.05468945,
0.016749904,
-0.046646032,
-0.018003985,
0.027042015,
-0.031654723,
0.018652648,
-0.011747996,
0.017196761,
-0.005506423,
-0.024822148,
0.03390342,
0.06388604,
0.049557805,
-0.030011447,
0.032317802,
-0.03087633,
0.02647984,
-0.034941282,
0.005877602,
0.027978972,
-0.03093399,
0.017513884,
0.0028685292,
-0.026623987,
-0.06123373,
-0.025643786,
0.00082479225,
0.014861576,
0.027978972,
0.010183999,
-0.0045766737,
-0.018494086,
0.0012892165,
-0.002443295,
-0.026436595,
0.0607148,
0.04260991,
-0.023957264,
0.011452495,
0.012648917,
0.033269174,
-0.05140289,
0.051633526,
0.045319878,
0.02263111,
-0.055669647,
-0.028368168,
-0.0293772,
0.019070674,
-0.03401874,
-0.008785772,
-0.00036464736,
0.038977403,
0.012238097,
-0.04630008,
0.01091915,
-0.03240429,
-0.041370247,
-0.030097935,
-0.012598465,
0.054285835,
0.025052782,
0.012699368,
-0.046155933,
0.022097765,
-0.0054667825,
0.007524484,
0.016793149,
-0.026004154,
0.031135794,
0.037910715,
0.008057828,
-0.001216242,
0.044483826,
-0.047107305,
0.00481812,
-0.012043498,
-0.030155594,
0.0011450693,
-0.011012846,
0.006774918,
-0.0042127017,
0.034681816,
-0.004695595,
0.013499385,
-0.00018108492,
0.018594988,
0.026696062,
0.049240682,
0.0057911137,
-0.0025676219,
-0.017614787,
-0.014263365,
-0.008973163,
0.009131725,
0.040447704,
-0.0260474,
0.0016054395,
-0.0024487006,
-0.046213593,
-0.0016315661,
-0.0028685292,
-0.020108534,
0.020901343,
0.04177386,
0.046617202,
0.018119304,
-0.013838131,
-0.01627422,
0.04053419,
0.053911053,
0.053392123,
0.015005724,
0.01646161,
0.0122813415,
-0.049154196,
-0.033125024,
0.010371391,
0.020411244,
-0.013549836,
-0.01206512,
-0.009484885,
-0.05492008,
0.02598974,
0.020353584,
0.031539407,
0.017931912,
0.052815534,
-0.01960402,
-0.012238097,
0.0071533048,
-0.008850638,
0.00062343664,
-0.04941366,
0.036382753,
0.011048882,
0.0034649384,
-0.015048968,
-0.01182007,
-0.024548268,
0.01563997,
0.0014694005,
0.013275957,
-0.026595159,
-0.004000085,
-0.022688769,
0.049961418,
-0.06134905,
-0.04831814,
-0.03185653,
0.019921143,
0.060945436,
-0.06584644,
0.01768686,
-0.038285494,
0.0009108301,
0.033211514,
0.019719336,
-0.036757536,
-0.0023387882,
0.013528215,
-0.054804765,
0.054458812,
0.026623987,
0.0015459787,
0.020771611,
-0.03254844,
-0.0021135584,
0.02544198,
-0.0026198754,
-0.021362614,
0.02650867,
-0.009326324,
-0.028613219,
-0.004028914,
-0.008994785,
-0.015164285,
0.042898208,
-0.05702463,
0.047683895,
-0.03860262,
-0.0068073515,
-0.054862425,
-0.020223852,
0.06382838,
0.038199008,
0.0032397083,
-0.043503623,
-0.019906728,
0.030703353,
-0.03511426,
-0.06526985,
0.0007446104,
0.047366768,
0.014162462,
0.048116334,
-0.006710052,
0.008158731,
0.059849918,
0.016548099,
-0.0067208633,
-0.006774918,
-0.029463688,
0.004111799,
-0.0060974266,
-0.025124857,
-0.000047185684,
-0.037478272,
0.017023783,
-0.034797132,
-0.018753551,
0.032606095,
-0.07680163,
0.0014459766,
0.020872515,
-0.0029297918,
-0.0063208546,
0.025067197,
-0.013268749,
-0.0036198965,
-0.00277123,
-0.003931615,
-0.0031099757,
-0.07864671,
-0.0045442404,
0.04728028,
0.0037586382,
0.042494595,
-0.03551787,
-0.060368847,
0.04422436,
0.008987578,
0.032663755,
-0.0100614745,
-0.022227498,
0.011452495,
-0.007304659,
-0.034220546,
0.010003815,
-0.013960656,
-0.02699877,
-0.0038126933,
0.012677746,
-0.002475728,
-0.021809472,
-0.055756137,
0.060368847,
-0.030645695,
-0.051374063,
-0.047337938,
0.022659939,
0.028988002,
-0.017946325,
0.04575232,
-0.018191377,
-0.0032937634,
-0.009023614,
0.046011787,
-0.06215627,
0.022948233,
-0.048692923,
-0.04774155,
0.040476535,
0.013463348,
0.019762581,
-0.068498746,
-0.01105609,
-0.038660277,
-0.0050703776,
-0.027906898,
-0.02601857,
-0.040361214,
0.021088734,
-0.034335863,
0.036930513,
-0.009643448,
0.012937211,
-0.012454318,
-0.0078344,
0.026422182,
0.030299742,
-0.031654723,
-0.017614787,
-0.010875906,
-0.008454233,
0.006115445,
0.061925635,
0.00062523846,
0.011870522,
0.0037298088,
0.04007292,
-0.069133,
-0.025485225,
-0.050134394,
0.005830754,
0.04111078,
-0.04165854,
0.0055532707,
0.006562301,
0.021405859,
0.035258405,
0.037276465,
-0.028022215,
-0.00034933173,
-0.04627125,
-0.07161233,
0.045608174,
-0.038804427,
0.001643278,
-0.019416628,
-0.013614703,
0.040130578,
-0.028137533,
-0.009607411,
0.08349006,
0.017211175,
0.027042015,
-0.07789715,
0.051143426,
0.016634587,
0.011214652,
-0.024274388,
-0.012821893,
-0.021982448,
-0.0107173445,
-0.021722984,
-0.019531945,
-0.027099673,
0.04165854,
0.0122669265,
-0.008418197,
0.04116844,
-0.026220376,
-0.044166703,
-0.035777334,
0.009946156,
0.05814898,
0.021146394,
0.012086743,
0.023481578,
0.0011648895,
0.04001526,
-0.01572646,
-0.036815193,
-0.014919235,
0.053334463,
-0.0022270742,
-0.029550176,
0.0241879,
0.044454996,
-0.041860346,
-0.068556406,
-0.019041846,
0.012360622,
-0.03592148,
-0.0039712554,
-0.0100326445,
-0.013708399,
-0.030472718,
-0.007409166,
0.01896977,
-0.010897528,
-0.028296094,
0.012757027,
-0.0236978,
-0.026811378,
-0.0035442193,
0.042927034,
-0.011877729,
-0.004043329,
-0.050797474,
-0.0032252935,
-0.043272987,
-0.009542544,
0.069882564,
0.0010261479,
0.034912452,
0.038141347,
-0.0032361045,
0.055871453,
0.009513715,
0.017658032,
-0.014875991,
-0.01896977,
-0.060426503,
-0.0280078,
0.030242082,
-0.0213482,
0.018897697,
-0.029867299,
0.009917327,
0.011589435,
0.03765125,
-0.014703014,
-0.052498408,
0.013131809,
-0.05670751,
-0.03540255,
0.028296094,
-0.020814855,
-0.0045190146,
0.06815279,
0.008591173,
-0.009066858,
0.022458134,
0.018436426,
-0.021377029,
-0.016014753,
-0.03292322,
0.006533472,
-0.03087633,
-0.012648917,
-0.03851613,
-0.025211345,
0.017052613,
0.022775257,
-0.012627294,
0.014270573,
-0.009744351,
0.053103827,
-0.009261457,
0.0065947343,
0.020180607,
-0.005301013,
-0.0021856318,
-0.004695595,
-0.01695171,
0.023236528,
0.03249078,
-0.045637004,
0.009888498,
-0.008425403,
0.01029211,
-0.012511977,
0.016288633,
0.046588376,
-0.024879806,
0.014818332,
-0.010602026,
0.01796074,
-0.042754058,
-0.013686776,
-0.024043752,
-0.020065289,
-0.0143066095,
0.047626235,
0.009967779,
0.022962648,
0.02449061,
-0.002196443,
-0.001655891,
0.036238607,
-0.0022504982,
-0.016101241,
0.03762242,
0.0033388094,
-0.0025297834,
0.000743259,
0.016778734,
0.043532453,
-0.018796794,
0.0055352524,
-0.010313732,
-0.04632891,
-0.021434689,
0.006270403,
0.03453767,
0.06221393,
0.016778734,
-0.04491627,
-0.010522746,
-0.006846992,
-0.02492305,
0.027114088,
-0.053968713,
-0.01878238,
-0.010803833,
-0.06400136,
0.01984907,
-0.029233051,
0.013823716,
0.015236359,
0.04258108,
0.009470471,
-0.007283037,
-0.019171577,
-0.009347945,
0.0031027684,
-0.058235466,
-0.006003731,
-0.019358968,
0.016504854,
-0.013823716,
-0.0127426125,
0.030155594,
0.02773392,
0.023596896,
-0.02317887,
-0.024995124,
0.0015621952,
-0.00029640266,
0.04728028,
-0.04779921,
-0.005967694,
-0.044656802,
0.060022894,
-0.064577945,
0.043301817,
-0.016937295,
0.019402213,
0.006969517,
0.034825962,
0.00810828,
0.03453767,
0.04987493,
-0.035863824,
0.0069659133,
0.034912452,
0.016663415,
0.0029135752,
-0.0008148821,
-0.019488702,
0.09461822,
0.028584389,
0.023092382,
-0.004637936,
0.022732014,
0.004043329,
-0.04480095,
-0.021766227,
0.010537161,
0.03188536,
0.005124433,
-0.0024360877,
-0.017658032,
-0.018710306,
-0.013679569,
-0.006147878,
0.030184424,
0.00070091576,
-0.014299402,
-0.013355237,
-0.03240429,
0.00047433437,
0.0026018568,
-0.026422182,
0.027748335,
0.02290499,
0.0313376,
-0.0010387608,
0.033153854,
-0.004616314,
0.03185653,
0.004414508,
0.025672616,
0.010702929,
-0.03546021,
0.022789672,
0.020987831,
0.00862721,
-0.020065289,
-0.0036973755,
-0.0270276,
-0.032115996,
-0.0422063,
0.044426166,
0.0052289395,
-0.036699876,
0.005066774,
-0.024879806,
-0.0012081336,
-0.059792258,
0.0213482,
-0.034595326,
0.014695806,
0.033586297,
-0.048491117,
-0.03915038,
0.028224021,
-0.025701445,
0.040188238,
-0.017052613,
0.042955864,
0.009607411,
0.089198284,
-0.013549836,
-0.01236783,
0.030472718,
0.009592996,
-0.04223513,
-0.014746258,
0.013030907,
0.0014486794,
-0.014328231,
-0.050249714,
-0.052815534,
0.006911858,
-0.018277865,
-0.054775935,
-0.042465765,
0.021679739,
0.011128164,
-0.03543138,
0.005910035,
0.082971126,
0.03511426,
-0.0001891932,
-0.0006428064,
-0.0038235043,
-0.049067706,
-0.0031352015,
-0.015769703,
0.05099928,
-0.02421673,
-0.044656802,
0.0042343237,
-0.0014171471,
-0.02577352,
-0.02244372,
0.008792979,
0.014011107,
0.04111078,
0.045377538,
0.029088905,
0.03860262,
0.0022252724,
-0.037478272,
0.017917497,
0.036209777,
0.01927248,
0.08896765,
0.079050325,
0.0009874083,
-0.0118344845,
0.008324501,
0.008432611,
-0.027359137,
0.00028311412,
0.006663204,
-0.028209606,
-0.021694154,
-0.05956162,
-0.030443888,
0.030126764,
-0.00011779529,
-0.0017955336,
-0.04108195,
-0.027719507,
-0.08614237,
-0.019690508,
-0.0032847542,
0.021276126,
0.017701276,
-0.017658032,
0.04113961,
-0.0397558,
0.24862508,
0.051921822,
0.014948064,
0.005982109,
0.034134056,
0.051633526,
0.030270912,
-0.012677746,
-0.011690338,
-0.010191207,
-0.01700937,
-0.053968713,
0.02544198,
0.042436935,
-0.055439014,
0.060368847,
-0.057428245,
-0.0151787,
-0.018047228,
-0.050538007,
-0.052498408,
0.019690508,
0.039784625,
0.04523339,
0.07149701,
0.011041676,
0.0044073006,
-0.039928775,
-0.008065036,
-0.011892144,
0.008519099,
-0.027892483,
0.009708314,
-0.0095857885,
0.0062091406,
0.017859837,
-0.009297494,
-0.04425319,
-0.01624539,
0.017110273,
0.008656039,
-0.0074235806,
0.027359137,
-0.0052685803,
-0.016937295,
0.008641625,
-0.017672446,
0.031712383,
0.027820408,
-0.04064951,
0.039842285,
-0.05342095,
0.023510408,
-0.012072328,
-0.028094288,
0.0006243375,
-0.04987493,
-0.032288972,
-0.012641709,
0.03499894,
0.004695595,
0.00337845,
0.014407513,
-0.0020649086,
-0.024908636,
0.017081443,
-0.035690848,
0.053709246,
-0.019647263,
-0.018580575,
-0.029204221,
-0.005538856,
-0.020959003,
-0.00914614,
0.04840463,
0.051720016,
-0.022890575,
0.05203714,
-0.014212914,
-0.046098273,
0.017600372,
-0.0012748018,
0.0052073174,
-0.021304956,
0.04477212,
0.027416797,
-0.021607665,
0.02159325,
0.014018315,
0.03185653,
0.027042015,
0.060022894,
-0.0062343664,
-0.024649171,
-0.0042739646
] | import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("facebook/opt-350m")
model = AutoModelForCausalLM.from_pretrained("facebook/opt-350m", torch_dtype=torch.float16).to("cuda")
convert the model to BetterTransformer
model.to_bettertransformer()
input_text = "Hello my dog is cute and"
inputs = tokenizer(input_text, return_tensors="pt").to("cuda") |
[
0.05908903,
-0.0034124202,
-0.08093996,
0.0027170659,
0.008444355,
-0.0020288615,
-0.008122597,
-0.014929562,
0.012441301,
0.041070595,
0.047305547,
0.0010501817,
0.053855103,
-0.05030862,
-0.006656811,
0.029973526,
-0.012684407,
-0.015458674,
-0.02810018,
0.03389182,
0.019076662,
-0.013799834,
-0.06269272,
-0.01404294,
-0.025869327,
-0.021665026,
0.002497198,
-0.025054207,
0.061319884,
0.04333005,
-0.02145052,
-0.02767117,
-0.014929562,
-0.045646705,
-0.013663981,
-0.024882602,
0.008351402,
0.010775311,
-0.0370951,
-0.05445572,
0.020306492,
-0.0045761107,
0.018862156,
-0.021536322,
-0.0702433,
-0.020120587,
0.020563899,
-0.062006302,
-0.027885675,
-0.012105243,
-0.044016466,
-0.003996947,
-0.002289843,
-0.004461708,
-0.01611649,
0.010489304,
0.019276867,
-0.0035947496,
-0.012906062,
0.0030084352,
0.03463544,
-0.0019126713,
-0.018518949,
-0.05036582,
0.011061318,
0.044102266,
-0.025297312,
0.008987768,
-0.020921407,
-0.02392448,
-0.021193113,
-0.023452569,
0.011540379,
-0.006317178,
-0.0165598,
0.03220438,
0.009810038,
0.005577135,
0.02022069,
0.013049066,
-0.001416628,
0.0146721555,
-0.05614316,
-0.010246198,
-0.041957214,
-0.035264652,
0.030230932,
-0.028815197,
-0.009631284,
-0.00495507,
0.009423928,
0.012076642,
0.03635148,
0.0013460201,
0.018118538,
0.06074787,
-0.039440356,
0.047305547,
0.0014854484,
-0.0027975054,
0.0025418866,
0.09180822,
-0.008565907,
0.03958336,
-0.065381184,
0.017046012,
0.037781514,
-0.04344445,
-0.042758036,
-0.039154347,
0.029029703,
0.02519721,
0.00065021886,
0.019248266,
-0.032862194,
0.01900516,
-0.011933639,
0.013463776,
-0.01485806,
-0.011812086,
0.00074764,
-0.053969506,
0.012541404,
-0.007153748,
0.017689528,
-0.07070091,
-0.012906062,
0.036694687,
-0.07321777,
-0.0052696774,
0.027027654,
0.014507702,
0.0021611399,
0.056457765,
0.013377974,
-0.0046476126,
-0.0075934837,
-0.007357528,
-0.0021790152,
0.0034320832,
0.006828415,
-0.041328,
0.009059269,
0.073332176,
-0.033348408,
-0.019948984,
-0.011182871,
-0.00038074673,
-0.07642105,
-0.026255436,
-0.034606837,
0.031088952,
0.003029886,
-0.000825845,
0.018361645,
-0.017260518,
-0.008916266,
0.014479101,
0.02556902,
0.0093667265,
-0.011833536,
-0.0055878605,
-0.038954142,
0.051452644,
-0.0016364959,
0.025897928,
-0.009037819,
-0.02433919,
0.021164512,
-0.030230932,
0.042472027,
0.012770209,
0.018375944,
0.0036215626,
0.068012446,
0.033605814,
0.065552786,
-0.017846832,
0.016531201,
0.0038503683,
-0.019734478,
-0.013106267,
-0.002195103,
0.016802907,
-0.005766615,
0.029215608,
0.009309526,
-0.029544516,
0.019848881,
0.019191064,
-0.010067443,
0.044731483,
-0.038181923,
0.056286164,
-0.033234004,
0.018647652,
-0.010081744,
-0.026112432,
0.02391018,
-0.085287265,
-0.0050837733,
0.046418924,
-0.007221675,
-0.014786558,
-0.041013394,
-0.0071179974,
0.010432103,
0.024653796,
0.028257484,
0.036094073,
0.061377086,
-0.008573057,
-0.022322841,
0.01570178,
0.011340175,
0.015530176,
0.030288134,
-0.010525055,
0.05660077,
0.034406632,
0.028000077,
0.0038360679,
0.05116664,
-0.018733453,
0.004136375,
-0.03377742,
0.019977584,
0.061663095,
0.01697451,
-0.0075934837,
0.000794563,
0.032032777,
0.010332,
0.019033762,
-0.01610219,
-0.005998995,
-0.00069937634,
-0.0009625921,
-0.025354514,
0.00033985666,
0.009030669,
0.019877482,
0.0036966396,
0.032461785,
0.00068105396,
0.013785534,
-0.0021522022,
-0.013406575,
-0.066182,
0.018690553,
-0.06835566,
0.06435156,
0.007900941,
-0.032375984,
-0.035064448,
0.02186523,
-0.00074317114,
0.023838677,
0.012713008,
-0.0033730941,
0.0116976835,
0.029187007,
-0.027428064,
-0.013342223,
0.04041278,
0.09769996,
-0.015987787,
0.010517905,
0.016459698,
-0.026484242,
-0.021536322,
-0.004908594,
-0.053483296,
-0.032347385,
-0.053082887,
-0.026398439,
0.005948944,
-0.023481168,
0.018418847,
0.0028118056,
0.008322801,
-0.003996947,
0.0066246353,
0.050108414,
0.036580287,
0.052711077,
-0.04467428,
0.043015443,
-0.042872436,
0.0048227916,
-0.011897888,
-0.039812163,
-0.033205405,
-0.0018930084,
-0.010267649,
-0.018776355,
0.007146598,
-0.03257619,
-0.018433146,
0.010260498,
0.002700978,
-0.02147912,
-0.017046012,
0.023767175,
-0.025497517,
0.04453128,
0.017546525,
-0.03434943,
0.05608596,
0.074476205,
-0.009988792,
0.045246296,
-0.0051445495,
0.03755271,
-0.0132778715,
0.05943224,
0.03463544,
-0.028443389,
-0.012798809,
-0.045103293,
0.023423968,
-0.015358572,
-0.0248111,
-0.055542544,
-0.04613292,
0.038181923,
-0.051738653,
-0.025812125,
0.014407598,
-0.0020735501,
-0.03640868,
0.013606779,
-0.0051016486,
0.04207162,
0.021650724,
0.031203356,
-0.034120627,
0.047705956,
-0.03640868,
0.008329952,
-0.010045993,
-0.048449572,
0.018089939,
0.03680909,
0.057658996,
0.026784549,
0.04244343,
-0.04095619,
-0.0041149245,
-0.000982255,
-0.051652852,
0.011883588,
-0.0069535435,
-0.032032777,
-0.0043115546,
0.0061241235,
-0.022666048,
0.010896863,
-0.00019104368,
0.016645603,
0.034778442,
0.034892846,
-0.00050498097,
-0.010803912,
-0.040155374,
0.009788587,
-0.018275842,
0.010174696,
0.054655924,
-0.019920383,
0.006163449,
-0.016145092,
-0.012062342,
-0.008329952,
0.022165537,
-0.04212882,
0.009431078,
0.027099157,
0.04413087,
-0.023981681,
-0.032862194,
-0.017818231,
0.016845807,
0.06154869,
0.03014513,
0.008573057,
-0.023509769,
0.022594547,
-0.035264652,
0.0059024678,
0.04338725,
0.04210022,
0.00867316,
-0.025683422,
-0.032375984,
-0.04676213,
0.03546486,
0.04244343,
-0.00078920036,
0.022351442,
0.05113804,
-0.007607784,
0.02850059,
0.05159565,
-0.006238526,
-0.054684523,
-0.03675189,
0.0207212,
0.043587454,
0.012434151,
-0.014843759,
-0.0037824416,
-0.0015444374,
-0.0037395405,
-0.004472433,
0.013056216,
-0.024096083,
-0.000061055776,
0.026183935,
0.05903183,
0.009423928,
-0.023323866,
-0.035264652,
0.03349141,
0.07499102,
-0.042643633,
0.006678262,
-0.019763079,
0.00865886,
0.040698785,
-0.02106441,
0.0041328003,
-0.014257445,
0.027013354,
-0.042300425,
0.06949969,
0.06486637,
0.008501556,
-0.037409704,
-0.044645682,
-0.039926566,
0.0455323,
-0.0016427523,
-0.01487236,
-0.004218602,
-0.0061384235,
-0.029215608,
-0.016531201,
0.023309564,
0.040012367,
0.03223298,
-0.07664986,
0.06469477,
-0.024682397,
-0.00032309844,
-0.024582295,
-0.050337218,
0.027442364,
0.027599668,
0.02642704,
-0.020406594,
-0.0022058284,
0.03463544,
-0.06658241,
-0.018947959,
0.016531201,
0.014743657,
0.012963264,
0.029773321,
0.009195123,
0.0038610934,
0.028958201,
0.006857016,
-0.037810117,
0.04330145,
-0.000038599763,
0.012133844,
0.00042498842,
-0.019562874,
-0.016788606,
-0.053883705,
0.012741609,
-0.027485266,
-0.0031639517,
0.0151011655,
-0.05662937,
-0.02272325,
0.041871414,
0.009745686,
0.018261543,
0.027299361,
-0.015043965,
0.0247253,
-0.029687518,
-0.017989835,
-0.04461708,
-0.039812163,
-0.014221694,
0.03849653,
0.040727384,
-0.00031214976,
-0.069900095,
-0.046504725,
0.0412708,
-0.051567048,
-0.023009257,
-0.024954105,
0.03995517,
0.018619051,
0.006317178,
-0.03466404,
-0.022222739,
-0.015229869,
0.0007619403,
-0.013878486,
0.023009257,
0.012148144,
-0.04207162,
-0.029859124,
0.046161518,
0.017889732,
-0.08963457,
-0.045189094,
0.03503585,
-0.007100122,
-0.0055127833,
0.025354514,
-0.023895878,
-0.020320792,
-0.050222818,
0.029859124,
-0.032118578,
0.019977584,
-0.023037858,
-0.050508823,
0.016288094,
0.005037297,
0.05168145,
-0.01565888,
-0.026369838,
-0.02023499,
0.009431078,
-0.055113535,
-0.010753861,
-0.034606837,
-0.030688543,
0.020120587,
0.033377007,
0.014829459,
-0.028800897,
0.008573057,
0.029630318,
0.021579223,
0.019334069,
-0.07213095,
-0.015615978,
0.017274817,
-0.034463834,
-0.0072288252,
0.011111369,
-0.041471004,
-0.0009876176,
-0.0370951,
0.03517885,
-0.05562835,
0.0029494464,
0.0020449494,
-0.044760086,
0.0049014436,
-0.032862194,
0.010203297,
0.010267649,
0.028629294,
0.0081869485,
0.025097108,
-0.009481129,
0.0054806075,
-0.03017373,
-0.06572439,
0.04167121,
-0.017289119,
-0.022480145,
-0.004089899,
-0.01821864,
0.048449572,
-0.026055232,
0.037695713,
0.063893944,
0.006982144,
0.028815197,
-0.026498541,
0.03680909,
0.009545481,
-0.017632326,
-0.029058304,
0.017632326,
-0.0027689044,
-0.023638472,
-0.036237076,
-0.025855025,
-0.018404545,
-0.0021003634,
0.050108414,
-0.035436258,
0.03266199,
-0.00042655252,
-0.043902062,
-0.023638472,
0.03924015,
0.007886641,
-0.00069848256,
0.027442364,
0.028157381,
-0.029101204,
0.051938858,
-0.004172126,
-0.03832493,
-0.03480704,
0.05113804,
-0.001960935,
-0.05454152,
0.041385204,
0.0019466346,
-0.0047191144,
-0.074304596,
-0.001671353,
0.0075362823,
0.007110847,
-0.005537809,
-0.0056879628,
0.017446423,
-0.00014948331,
-0.022551646,
0.022923455,
0.0043651806,
-0.016960211,
0.05948944,
0.0165455,
-0.050566025,
-0.024482192,
0.050594624,
-0.05571415,
-0.008122597,
-0.0025365239,
-0.0046047117,
-0.032518987,
-0.047963362,
0.06303593,
-0.040841788,
0.025726322,
0.013785534,
0.015859084,
0.025840726,
-0.009416778,
-0.029601717,
0.0077865385,
-0.01571608,
-0.013556728,
-0.009345276,
0.013184919,
0.0041506756,
0.047591552,
0.01154753,
0.03177537,
0.01604499,
0.015544476,
-0.032032777,
-0.062292308,
0.007765088,
-0.03832493,
-0.03926875,
-0.008966317,
-0.036894895,
-0.023280963,
0.009802887,
-0.03051694,
-0.051195238,
0.006524533,
0.015844783,
-0.0076149344,
-0.028643593,
-0.07098692,
0.004797766,
-0.041785613,
-0.012441301,
0.0011502841,
-0.049021587,
0.01906236,
0.016402498,
-0.03134636,
-0.012076642,
0.015158367,
0.026684446,
-0.010567956,
-0.011232922,
-0.021421919,
0.015058265,
-0.039840765,
0.03423503,
0.0037037898,
0.0054341317,
0.04046998,
0.0017625177,
0.00950258,
0.036151275,
-0.00058050465,
0.023981681,
0.026312636,
0.039068546,
-0.05039442,
-0.012870312,
0.0019466346,
0.024868302,
-0.038668137,
-0.020377994,
0.013242121,
-0.0051552746,
-0.034950048,
0.052110463,
0.056800976,
0.04830657,
0.011290124,
0.0082942005,
0.015472975,
0.037895918,
0.030431136,
-0.0015372873,
0.004958645,
0.032118578,
-0.05411251,
-0.035207454,
0.0022237038,
0.03597967,
-0.028629294,
0.03217578,
0.0070000193,
-0.03883974,
-0.018075638,
0.025011305,
-0.017589426,
0.039697763,
0.016073588,
0.015287071,
-0.0027438789,
-0.0070393453,
-0.059603844,
0.0138141345,
-0.037438307,
-0.02110731,
-0.009223724,
-0.04667633,
0.013149168,
0.015287071,
-0.006113398,
0.008308501,
0.02974472,
0.0010081744,
-0.021765128,
-0.000092393646,
0.016173692,
0.01982028,
-0.050537422,
-0.019634375,
-0.009602683,
0.024167586,
-0.06034746,
-0.019934682,
-0.02681315,
0.045246296,
0.0015784007,
-0.015630279,
-0.036608886,
-0.021650724,
0.029658917,
0.029801922,
-0.055256538,
0.019305468,
-0.022794751,
0.043215647,
-0.0660676,
0.0075791837,
-0.014536302,
0.014643555,
-0.011476028,
0.0065531335,
-0.00030008383,
0.025597619,
0.011025567,
0.0062993024,
-0.015086865,
0.013935687,
0.018819256,
0.018690553,
0.03995517,
0.0072180997,
0.019948984,
0.02641274,
0.042357627,
-0.005208901,
0.042386226,
0.056743775,
-0.02349547,
-0.0029565967,
0.034092024,
0.041328,
-0.009838638,
0.012355499,
-0.02974472,
0.016631303,
-0.028743695,
0.008015344,
0.03217578,
0.015644578,
0.020692602,
0.017503623,
-0.020792704,
0.004390206,
-0.013928537,
-0.0619491,
0.005301853,
0.00077624066,
0.04167121,
0.0043866313,
0.010310549,
-0.010510755,
0.026727347,
0.017303418,
0.0035429108,
0.022923455,
0.006234951,
0.02226564,
0.002908333,
0.012062342,
0.021278916,
-0.013849885,
-0.00039951593,
-0.014636405,
-0.033176802,
0.0413566,
-0.014800859,
-0.022408642,
0.0006091054,
-0.054970533,
-0.02722786,
-0.0536263,
0.03263339,
-0.03434943,
-0.033634413,
0.01157613,
-0.029158406,
-0.018704852,
0.011290124,
0.0012262547,
-0.00950973,
-0.016059289,
0.06715442,
-0.0037860167,
0.10896864,
-0.006610335,
0.009416778,
0.010203297,
0.00010194583,
-0.058374014,
-0.004654763,
0.019248266,
-0.018032737,
-0.024567995,
-0.004018397,
-0.066182,
0.009431078,
0.00827275,
-0.018261543,
-0.051881656,
0.023395367,
0.008472955,
-0.054255515,
0.00009663906,
0.08053955,
0.034149226,
0.04338725,
-0.0049729454,
0.014686456,
-0.028185982,
-0.0082942005,
-0.014572053,
0.02358127,
-0.029515915,
-0.023795776,
0.0048835683,
-0.046075717,
-0.04661913,
-0.013149168,
-0.004711964,
-0.0061241235,
0.023638472,
0.024710998,
0.016416797,
0.028915301,
0.02107871,
-0.01982028,
0.009416778,
0.060862273,
-0.0037359654,
0.07041491,
0.021607824,
-0.02147912,
-0.03014513,
0.01939127,
0.0019108838,
-0.0116976835,
-0.03883974,
-0.019291166,
0.033148203,
-0.043616056,
-0.046847936,
0.00091522216,
0.0069070673,
-0.0010081744,
-0.030745745,
-0.06732603,
-0.00868031,
-0.04839237,
-0.0014264595,
0.010374901,
-0.0052053262,
0.0012334049,
-0.024882602,
0.010546505,
-0.0035893868,
0.24230507,
0.022608848,
0.048020564,
0.009123621,
0.041900016,
0.034034826,
0.014958162,
-0.016388196,
0.0073217773,
-0.006653236,
0.010968366,
-0.012369799,
-0.0038217676,
0.014393299,
-0.029773321,
0.016817207,
-0.023023557,
-0.0017392796,
0.0066818367,
-0.052739676,
-0.03540766,
0.009516881,
-0.013485227,
0.0069213677,
0.03134636,
0.026055232,
0.029887723,
-0.047334146,
0.017174715,
-0.01690301,
-0.020692602,
-0.018461747,
0.057058383,
0.02765687,
-0.01530137,
0.03131776,
-0.008337102,
-0.029630318,
0.025869327,
0.032518987,
0.04344445,
-0.05045162,
-0.007071521,
-0.023724275,
-0.025597619,
0.020907106,
-0.011876438,
0.0069177924,
0.012534253,
-0.053168688,
0.03672329,
-0.06120548,
0.026798848,
-0.023738574,
-0.01404294,
-0.005444857,
-0.04210022,
-0.011318724,
0.0018268692,
0.057058383,
0.04044138,
0.01900516,
-0.010217598,
0.011047018,
0.0137354825,
0.015444374,
-0.052339267,
0.01940557,
-0.0034302955,
-0.016802907,
0.026984753,
-0.019677276,
-0.0017803931,
-0.0011565405,
-0.009187972,
0.051938858,
0.0023077184,
0.037066497,
-0.051824454,
-0.030459737,
-0.00217544,
-0.022952056,
-0.016030688,
-0.03186117,
0.0289439,
0.013649681,
-0.037295304,
-0.008422904,
-0.01570178,
0.024696698,
0.018390246,
0.035722263,
-0.0038968443,
-0.008773263,
0.021593522
] | Check out our benchmarks with BetterTransformer and scaled dot product attention in the Out of the box acceleration and memory savings of 🤗 decoder models with PyTorch 2.0 and learn more about the fastpath execution in the BetterTransformer blog post.
BetterTransformer accelerates inference with its fastpath (native PyTorch specialized implementation of Transformer functions) execution. The two optimizations in the fastpath execution are: |
[
-0.0034627263,
-0.0022612652,
-0.05277335,
0.026204793,
-0.0092759095,
-0.047037113,
-0.012067077,
0.0011796005,
-0.009142997,
0.046505462,
0.007145808,
0.0126756765,
0.036040336,
-0.04451877,
-0.019769019,
0.0050157066,
0.00068205217,
-0.036152262,
-0.02354654,
-0.022930942,
0.013864896,
-0.007743915,
-0.046897206,
-0.025309382,
0.008856185,
-0.0060755108,
-0.007687952,
-0.012605723,
0.06318251,
0.029856395,
-0.025896996,
0.004963241,
-0.00443159,
-0.043567393,
0.01032522,
-0.037775196,
0.02508553,
-0.02251122,
-0.007110831,
-0.019852964,
-0.0052360618,
0.019699065,
-0.014746318,
-0.058425635,
-0.05196188,
-0.03195502,
-0.009758593,
0.008415475,
0.0057502245,
0.02167177,
-0.010681986,
-0.0038894461,
0.007604007,
-0.009443799,
-0.01806214,
0.014592418,
-0.012276939,
-0.015921546,
-0.021391954,
-0.041160975,
0.009254923,
0.03937015,
-0.009387836,
-0.023994245,
0.0022140462,
0.033102263,
-0.016551131,
0.02340663,
-0.04197244,
0.0010038408,
-0.02666649,
0.026792407,
-0.028625203,
-0.05366876,
-0.021140119,
-0.005722243,
0.00035151918,
-0.0034399913,
-0.007275223,
0.04748482,
-0.027184151,
0.009380841,
0.010709967,
-0.000250523,
-0.008492424,
-0.040853176,
0.04110501,
-0.016145399,
0.0020951242,
-0.015935536,
-0.03161924,
0.009261918,
-0.0316752,
0.022958925,
0.040181614,
0.036152262,
-0.030499972,
0.010961803,
-0.027380021,
-0.024679795,
0.035172906,
0.06844306,
-0.008625336,
0.048380233,
-0.011248614,
0.000093836825,
0.025673142,
0.015235996,
-0.033102263,
0.00010963114,
-0.003843976,
-0.017152738,
0.02183966,
0.025771078,
-0.024497915,
0.028625203,
0.015096088,
0.01204609,
-0.036040336,
-0.026568554,
0.04160868,
-0.00851341,
0.024721768,
-0.03332612,
0.016187372,
-0.029884377,
0.015291959,
0.03282245,
-0.019055488,
-0.0121020535,
0.028639195,
0.022888971,
0.006956932,
0.042252257,
-0.018439893,
0.00010525901,
-0.012353888,
-0.00078654604,
0.058369674,
-0.020034844,
-0.0014524213,
-0.017306637,
-0.0028506282,
0.104483396,
0.01350813,
-0.017474527,
0.023518557,
0.009961459,
-0.04076923,
0.003571155,
-0.047792617,
0.011878201,
0.009184969,
0.011423499,
0.019727048,
-0.013424185,
0.011990127,
0.0011830982,
0.016649067,
0.014802281,
0.027366031,
0.015571775,
-0.048576105,
0.052213717,
0.013864896,
0.030835753,
-0.0021248548,
-0.042560056,
0.009450794,
-0.021335991,
0.043791246,
-0.0011586142,
0.012011114,
0.010744944,
0.013277282,
0.003431247,
0.066316456,
-0.036599968,
-0.020538514,
0.04113299,
0.0005211578,
0.014438519,
-0.0029608058,
0.053808667,
0.028737132,
-0.0027404507,
0.005956589,
-0.023966264,
-0.0043021752,
-0.02168576,
0.047540784,
0.059041232,
-0.031367403,
0.039174277,
-0.033773825,
0.03562061,
-0.023252731,
0.0043651336,
0.02322475,
-0.03869859,
-0.00060685154,
0.06402196,
-0.013892878,
0.005022702,
0.023994245,
-0.023252731,
0.04244813,
0.067099944,
0.019852964,
-0.0010405667,
0.030863734,
-0.0030010294,
-0.03646006,
0.006565189,
0.009038066,
-0.009506757,
0.023812365,
0.046197664,
0.04163666,
0.029184837,
-0.014004804,
0.030527955,
0.024679795,
-0.006082506,
-0.001184847,
-0.04250409,
-0.01702682,
0.027030252,
-0.0115284305,
-0.023882318,
0.015963519,
0.027044242,
-0.016621087,
0.05864949,
-0.0239103,
0.00851341,
0.050926562,
0.0143545745,
-0.007820865,
-0.010954807,
-0.0016946372,
0.037215564,
0.006082506,
0.031731166,
0.0027684323,
0.01238187,
0.030639881,
-0.0032476175,
-0.043987118,
0.0252814,
-0.05596325,
0.056159124,
0.013759965,
-0.0137809515,
-0.050870597,
-0.036236208,
-0.019894937,
0.03514492,
-0.0371596,
-0.011500449,
0.034613274,
0.035704557,
-0.020370625,
-0.017334618,
0.0065616914,
0.045470145,
-0.021112137,
0.017908242,
-0.016369252,
-0.024344016,
-0.06301463,
-0.04933161,
-0.052745365,
0.020902276,
-0.051514175,
-0.034417402,
0.0225392,
-0.031871073,
0.028933002,
-0.017306637,
0.011766274,
-0.008359511,
0.0012058333,
0.041216936,
0.02994034,
0.025043556,
-0.03010823,
0.051206376,
-0.008247584,
0.04166464,
-0.011059738,
0.006852001,
-0.012661686,
-0.011339555,
-0.007254237,
0.014998152,
-0.016900903,
-0.032934375,
-0.010584051,
0.025505252,
0.013151364,
0.018509846,
0.020272689,
0.016047463,
-0.036432076,
0.0032703527,
0.03909033,
-0.033074282,
0.030052267,
0.06687609,
-0.018048149,
0.050702706,
0.004323161,
0.041356843,
-0.043203633,
0.04731693,
0.027421994,
0.008926139,
-0.03419355,
-0.052073807,
-0.019517185,
-0.002145841,
-0.01941925,
-0.040125653,
0.00542144,
0.061167836,
-0.047400877,
-0.03836281,
0.018132094,
-0.04166464,
-0.027911672,
0.021377962,
-0.02287498,
0.056466922,
0.0633504,
0.02683438,
-0.03592841,
0.016760994,
0.0013789695,
0.05971279,
-0.0026005425,
-0.03008025,
-0.00027194642,
0.026568554,
0.030471992,
0.057222426,
0.018006178,
-0.036711894,
0.03713162,
0.003160175,
0.0014174443,
-0.00997545,
0.012339897,
-0.0013413692,
0.018327966,
0.04852014,
-0.028793095,
0.011451481,
0.0070338813,
0.05364078,
0.023602502,
-0.007499076,
0.03097566,
0.015529803,
0.0004704411,
-0.0115284305,
-0.013983818,
0.029128874,
0.05705454,
-0.01997888,
0.031759147,
-0.004029354,
-0.011045747,
0.013655034,
-0.029744469,
-0.026232775,
0.032290798,
-0.0013850905,
0.027380021,
-0.015893564,
-0.00606152,
-0.026932316,
0.015319941,
0.0031531795,
0.013088406,
0.021196082,
0.031367403,
0.005554353,
-0.010227284,
-0.018859616,
0.013480148,
-0.019741038,
-0.00073670375,
-0.033102263,
-0.08422469,
-0.029632542,
0.022763053,
0.030164193,
0.05448023,
0.018439893,
0.047540784,
-0.013850905,
0.04253207,
0.009730611,
-0.011703315,
-0.08081094,
-0.050674725,
0.07342379,
-0.021196082,
0.010451138,
-0.03819492,
0.0467573,
-0.03147933,
0.031927038,
0.0013186341,
-0.003725054,
-0.034473363,
0.025253419,
0.026554564,
0.0020356635,
-0.025519244,
-0.047848582,
-0.0024309037,
0.011388522,
0.04955546,
-0.04300776,
0.018887598,
0.0007944159,
-0.015529803,
0.019741038,
-0.0068694893,
-0.00884919,
-0.03254263,
-0.0011664841,
-0.061335728,
0.046505462,
0.04040547,
0.013487144,
0.0072332504,
-0.07101737,
-0.0053374954,
0.028821075,
-0.03368988,
0.0019499696,
-0.020678421,
0.00078436,
0.008919143,
-0.013697007,
-0.016453197,
0.010010427,
0.020272689,
-0.06480545,
0.044434823,
-0.025743097,
0.0041902484,
-0.028079562,
-0.007638984,
0.011290587,
0.057250407,
-0.008765245,
-0.07773296,
-0.026456628,
0.027743783,
-0.023602502,
-0.04144079,
0.017292645,
0.0011280093,
0.0026127845,
-0.00945779,
0.0008149649,
0.009702629,
0.023028878,
-0.0047673695,
-0.030471992,
0.004704411,
-0.011976136,
-0.020440578,
0.0061734463,
-0.01376696,
0.022623146,
-0.021419935,
0.052353624,
0.02441397,
-0.044770602,
-0.0046974155,
-0.053892612,
0.016802967,
0.04023758,
-0.0052360618,
-0.005767713,
0.029604562,
0.019615121,
-0.0093248775,
-0.028093554,
0.00091814715,
-0.039789874,
-0.024316033,
-0.0077788923,
0.05618711,
0.035032995,
0.010045404,
-0.051178396,
-0.0371596,
0.04040547,
-0.00843646,
0.0034714707,
-0.027841719,
-0.03525685,
0.03010823,
0.004043345,
-0.045526106,
0.0076110023,
0.0065022307,
-0.0077649015,
0.01410274,
0.004529526,
-0.009576712,
-0.0085064145,
-0.0023137308,
0.06413389,
-0.013738979,
-0.059768755,
-0.025365345,
0.020426588,
-0.031227496,
-0.009604693,
0.007687952,
-0.051821973,
-0.033438046,
-0.026344702,
0.056103162,
-0.052185733,
0.011199646,
-0.03987382,
-0.0440151,
-0.020734385,
0.028611213,
0.00903107,
-0.10213294,
0.010556068,
-0.04941555,
-0.01160538,
-0.034865107,
-0.04451877,
-0.020426588,
-0.023756402,
-0.028247451,
0.049583443,
0.016467188,
0.030751808,
-0.0012434336,
0.0028908518,
-0.00010793694,
0.04130088,
-0.04991922,
-0.007743915,
0.016733013,
0.0056627817,
-0.0029870386,
0.014760308,
-0.037271526,
0.017012829,
-0.039845835,
0.05881738,
-0.044770602,
-0.0268064,
-0.04991922,
-0.012521778,
0.010318225,
-0.03679584,
0.009191965,
0.013424185,
0.041776568,
0.008093686,
0.0516261,
-0.03802703,
0.005389961,
-0.06295866,
-0.056131143,
0.024008235,
-0.024358006,
0.006649134,
0.0028856052,
-0.03576052,
0.039538037,
-0.045805924,
0.02115411,
0.044938494,
-0.027813736,
0.013941846,
-0.055263713,
0.04796051,
0.03332612,
-0.02372842,
-0.0082685705,
0.013550103,
-0.021993559,
-0.013186341,
-0.01463439,
-0.016467188,
-0.025421308,
0.012927512,
0.03542474,
-0.045470145,
0.0143545745,
-0.008527401,
-0.047428858,
-0.040125653,
0.029800432,
0.006484742,
0.026302729,
0.03632015,
0.012388865,
-0.01702682,
0.022147458,
-0.029212818,
0.016635077,
0.016565124,
0.048883904,
-0.018285993,
-0.028933002,
0.059936646,
-0.007296209,
-0.02835938,
-0.08069901,
0.005729238,
-0.025001584,
0.0040853177,
-0.008121667,
-0.012857557,
-0.027995618,
-0.014592418,
-0.04314767,
0.010388179,
0.0088911615,
-0.020454569,
0.0037705242,
0.0018135592,
-0.06256692,
0.045526106,
0.062846735,
-0.054899953,
0.005445924,
-0.056942612,
-0.0076599703,
-0.045246292,
-0.016299298,
0.046925187,
0.027421994,
0.05176601,
0.016551131,
0.0072332504,
0.081650384,
-0.025211446,
-0.012304921,
-0.023798374,
-0.03676786,
-0.051877934,
-0.0074710944,
-0.02028668,
-0.04191648,
0.017194709,
-0.0057817036,
-0.01513806,
0.013179346,
0.022343328,
0.011465471,
-0.0622871,
0.0067750514,
0.006719088,
-0.017740352,
-0.0077858875,
-0.01597751,
-0.029884377,
0.023266723,
-0.02337865,
-0.040097672,
-0.031731166,
0.0014366816,
-0.011094715,
-0.019069478,
-0.07269627,
-0.0144525105,
-0.046673354,
-0.005225569,
-0.050478853,
-0.056047197,
-0.008275566,
0.0013868394,
0.0036061322,
-0.0019464719,
-0.015333932,
0.07605406,
0.007925795,
-0.011745288,
-0.013235309,
-0.04317565,
0.010898843,
0.029492635,
-0.0011726051,
0.03114355,
0.05593527,
-0.01823003,
0.008163639,
-0.0055508553,
-0.013864896,
0.01993691,
0.0024396481,
0.052941237,
-0.016593104,
0.003231878,
0.019587139,
0.042252257,
-0.049583443,
0.0062434003,
-0.0003458354,
0.0155997565,
-0.0051731034,
0.030751808,
0.027995618,
0.011374531,
0.02011879,
0.04558207,
0.0046834247,
0.01771237,
0.0002570812,
0.018537827,
-0.018859616,
0.015571775,
-0.016229343,
-0.0007747413,
0.028681168,
-0.0079817595,
0.022133466,
0.038810518,
-0.042112347,
-0.026932316,
-0.049947202,
0.0018432897,
0.0020846312,
0.021028193,
0.019027507,
-0.02648461,
0.012339897,
-0.014116731,
-0.04745684,
0.031255476,
-0.03626419,
0.0068415077,
-0.016257325,
-0.08976506,
-0.022343328,
-0.04454675,
-0.007254237,
0.021783696,
0.034501344,
0.0016928884,
-0.02115411,
-0.0008171509,
0.01195515,
0.018635763,
-0.050842617,
0.01993691,
-0.0056872657,
0.0005347114,
0.003314074,
-0.009534739,
-0.015375904,
0.0705137,
-0.015012143,
-0.034949053,
-0.045246292,
0.0121020535,
0.010702972,
0.037019692,
-0.013004461,
0.002016426,
-0.055263713,
0.02994034,
-0.058593526,
0.013836915,
-0.01478829,
0.0013352482,
-0.0021545852,
-0.0055963253,
-0.015795628,
0.012878544,
0.035480704,
-0.03648804,
-0.025645161,
0.061447654,
0.0017978195,
0.00172087,
0.0028313908,
-0.015669711,
0.025365345,
0.06743572,
0.053109128,
-0.02753392,
0.03662795,
-0.012172008,
-0.03763529,
0.0070128953,
0.031591255,
0.020916266,
-0.02598094,
0.024623832,
-0.0031706681,
0.012703659,
0.009611689,
0.022119476,
-0.0025760585,
0.009108019,
0.03094768,
0.00825458,
0.00085169077,
-0.005138126,
-0.043119688,
-0.02907291,
0.003291339,
-0.018495856,
0.04250409,
0.021615807,
0.016760994,
-0.015907554,
0.028093554,
0.031003643,
0.005928607,
0.01669104,
-0.01101077,
0.011689325,
-0.007436117,
0.025924977,
-0.023868328,
-0.006400797,
-0.016886912,
0.025001584,
-0.04421097,
0.009492767,
-0.029688505,
-0.04709308,
0.01615939,
-0.032794468,
-0.0032108917,
-0.063630216,
0.040713266,
-0.040965103,
-0.009485772,
0.025673142,
-0.019223377,
-0.008758249,
0.0019989375,
-0.034473363,
0.016243335,
-0.007946782,
0.041692626,
0.0012338149,
0.09720817,
-0.0040503405,
0.00322838,
0.025715115,
0.00076993194,
-0.019601129,
-0.016019482,
-0.02700227,
0.0013063923,
-0.02115411,
-0.039761893,
-0.07717333,
-0.0032371245,
0.04107703,
-0.03889446,
-0.029688505,
0.065309115,
0.009569717,
-0.028107544,
0.022091495,
0.10314028,
0.04681326,
0.01597751,
-0.015208014,
-0.009352859,
-0.021601817,
-0.011598384,
-0.019321313,
0.010318225,
-0.04709308,
-0.08081094,
0.00705137,
-0.013151364,
-0.0023154796,
-0.002110864,
-0.0027054735,
0.014186685,
0.010045404,
0.047568765,
0.031395387,
0.07224856,
0.014319598,
0.0034959544,
0.010465128,
0.027449977,
-0.010514096,
0.04597381,
0.046561427,
-0.019209387,
0.03590043,
0.013242305,
0.022581173,
-0.019545166,
-0.005540362,
-0.024050208,
0.013724988,
-0.06754765,
-0.030024286,
-0.026512591,
0.020538514,
-0.03080777,
-0.0017960707,
-0.040013727,
0.0006409541,
-0.053053163,
-0.008016736,
-0.02926878,
0.008065704,
-0.013221319,
-0.01134655,
0.014438519,
-0.040125653,
0.22989705,
0.045721978,
0.06295866,
0.010765931,
0.03576052,
0.054060504,
0.0036026344,
-0.04535822,
0.015347922,
-0.014494482,
-0.016914893,
-0.011500449,
0.011066733,
0.037943088,
-0.039761893,
0.04471464,
-0.06307059,
-0.001657037,
0.008163639,
-0.07001003,
-0.036711894,
0.012304921,
-0.0009400078,
0.05140225,
0.031535294,
0.018621773,
0.03729951,
-0.021909613,
-0.015249986,
-0.01941925,
0.024497915,
-0.007324191,
0.021377962,
-0.032934375,
0.025869014,
0.043427486,
-0.0098495325,
-0.051010504,
0.051738027,
-0.0012836572,
0.010793912,
-0.04230822,
0.0032843435,
-0.0054389285,
-0.014578427,
0.0072332504,
0.034165565,
0.033158228,
0.027827729,
-0.07801277,
0.022595163,
-0.02578507,
0.032094926,
-0.027310068,
-0.060104534,
0.0025270907,
-0.033633914,
-0.014081754,
0.009961459,
0.014536455,
-0.00507167,
0.023084842,
-0.00037731475,
-0.011514439,
-0.029436672,
0.023196768,
0.0015984505,
0.040461432,
-0.06698801,
-0.008597354,
-0.004067829,
-0.030583918,
-0.014277625,
0.013557098,
0.023938281,
0.07191278,
0.017600443,
0.027394013,
-0.0033805303,
-0.05590729,
0.023336677,
-0.006023045,
-0.027156169,
-0.027212132,
0.03405364,
0.04681326,
-0.023490576,
-0.0029223312,
0.012276939,
0.02337865,
0.02926878,
0.027785756,
0.0018730202,
0.023308694,
-0.008184626
] | print(tokenizer.decode(outputs[0], skip_special_tokens=True))
If you see a bug with the traceback below, try using the nightly version of PyTorch which may have broader coverage for FlashAttention:
```bash
RuntimeError: No available kernel. Aborting execution.
install PyTorch nightly
pip3 install -U --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu118
BetterTransformer |
[
0.02594011,
0.005701284,
-0.037182286,
-0.0035833516,
0.017745428,
0.025415186,
0.0073817773,
-0.02806898,
0.007108378,
0.030358242,
-0.002580888,
0.029177157,
0.05170525,
-0.0342077,
-0.007028181,
0.040652633,
-0.0028360605,
0.01969932,
-0.03190386,
-0.0003561024,
-0.0014417248,
-0.0043634507,
-0.068882,
-0.030416567,
-0.012576361,
0.0036653713,
0.03656987,
-0.05115116,
0.05319254,
0.011417149,
-0.05188022,
-0.046689287,
0.021521982,
-0.003565125,
-0.023038436,
-0.018620305,
0.03032908,
0.016593507,
-0.026887896,
-0.044327118,
0.0001613055,
0.01166503,
0.0342077,
-0.032662086,
-0.060599834,
0.037386425,
-0.009820498,
-0.048934802,
-0.037940513,
-0.042985637,
-0.037298936,
0.004844633,
-0.015704047,
0.0066235503,
-0.032662086,
-0.03654071,
0.0257943,
-0.01765794,
-0.020209666,
-0.0060074907,
0.0028688684,
0.012459711,
-0.015820697,
-0.015704047,
0.020428386,
0.037648886,
-0.018547399,
-0.014843752,
0.023971638,
-0.022105234,
-0.036861498,
0.060074907,
0.017905822,
-0.012503454,
-0.005252909,
0.025196467,
-0.0017306167,
0.035665832,
0.026537945,
-0.015601979,
-0.008508182,
0.03995273,
-0.021186613,
-0.018693212,
-0.047593325,
0.0046769483,
0.011927494,
-0.028856369,
-0.010644341,
-0.014180303,
0.001097242,
0.035053417,
0.019145232,
0.005365914,
0.027150359,
0.065849096,
-0.014734392,
0.0078009893,
-0.0132252285,
-0.02671292,
0.021594888,
0.022498928,
-0.029979128,
0.00905498,
-0.039690267,
-0.001161035,
0.021624051,
-0.024277845,
-0.0033536963,
-0.03586997,
0.00042285735,
0.03056238,
-0.025604742,
-0.012066016,
-0.020180503,
0.030154103,
-0.0070136,
0.027471147,
-0.042606525,
0.008690448,
0.008304044,
-0.033595286,
-0.035694994,
-0.00011699206,
0.040448494,
-0.045464456,
0.0015857151,
0.044881206,
-0.007968674,
-0.00928099,
0.028141886,
-0.0006046678,
0.050188795,
0.06450762,
0.00043174284,
0.010658922,
0.031845532,
0.007662467,
-0.009324734,
-0.009353897,
-0.0041228593,
-0.025371442,
0.019713901,
0.05940417,
-0.00074637966,
-0.022542672,
-0.013334588,
-0.041702483,
-0.062524565,
-0.03452849,
-0.007939512,
0.033566125,
-0.010622469,
0.0024697057,
0.003645322,
-0.027033709,
0.0032406913,
-0.012182666,
0.041702483,
0.05150111,
-0.027412822,
-0.01832868,
-0.04899313,
0.05599215,
-0.013611632,
0.07588103,
0.001408917,
-0.017278826,
0.0071266047,
0.001731528,
-0.011978528,
0.030387405,
-0.013407495,
0.012394095,
0.062466238,
0.0020340898,
0.056400422,
0.018780699,
-0.017264245,
0.0064157667,
-0.0047571454,
0.023621688,
-0.03225381,
0.049838845,
-0.028243955,
0.038552925,
0.01980139,
0.014974983,
0.010148576,
-0.011504636,
-0.0035578343,
0.028900113,
-0.038786225,
0.03394524,
-0.05354249,
-0.011562961,
-0.009485128,
-0.0044764555,
0.03239962,
-0.0684154,
-0.022659322,
0.043860514,
-0.016783062,
0.010542272,
-0.042694014,
-0.0054606926,
-0.021142868,
0.042577364,
0.021259518,
0.05954998,
0.054038253,
0.027602378,
-0.03858209,
-0.01765794,
-0.015791535,
0.0058653234,
0.031145632,
0.0337411,
-0.0054935003,
0.04733086,
0.02524021,
0.0076478855,
0.07261482,
-0.005183648,
-0.009696556,
0.028652232,
0.02545893,
0.053804953,
-0.015631141,
-0.052988403,
-0.0057960623,
0.031408094,
0.057100326,
0.0011583011,
0.005628377,
0.0042686723,
0.038727902,
-0.0088654235,
0.0040572435,
-0.009383059,
0.026669176,
0.015222865,
-0.0046660122,
0.016826807,
0.005876259,
0.0014362569,
-0.014275081,
-0.011723355,
-0.040681794,
0.027325334,
-0.0572753,
0.041148394,
0.0020577842,
-0.026217157,
-0.013837643,
0.026742082,
0.008391531,
0.04864318,
-0.048030764,
-0.01913065,
0.036365733,
0.059375007,
-0.034703467,
-0.010564144,
0.027660703,
0.04648515,
-0.026173413,
-0.011380696,
-0.016360205,
-0.026610851,
-0.05424239,
-0.03901953,
-0.01595193,
0.026727501,
-0.07028181,
-0.012970055,
0.026800407,
-0.038552925,
0.026902476,
0.0064194123,
0.015806116,
-0.017964147,
0.025283953,
0.027019126,
0.055233918,
0.058558453,
-0.032457948,
0.074189596,
-0.026887896,
0.024977747,
-0.012182666,
-0.0127586275,
-0.021536563,
-0.025954694,
-0.01857656,
0.007334388,
-0.020340897,
-0.056283772,
-0.044997856,
0.01619981,
-0.02003469,
-0.0050414805,
-0.02817105,
0.0018080798,
0.018868187,
-0.0016039417,
-0.017293409,
-0.025954694,
0.057566926,
0.075356096,
-0.008559216,
0.049634706,
0.009907985,
0.015806116,
-0.043743864,
0.04925559,
0.014435476,
0.0060767517,
-0.07529777,
-0.010039217,
-0.006856851,
0.010826606,
0.008282172,
-0.0035851742,
-0.038757063,
0.04969303,
-0.0056538945,
-0.037648886,
0.010600597,
-0.018532818,
-0.0120951785,
0.016243555,
-0.006528772,
0.035753317,
-0.009762173,
0.050509583,
-0.03499509,
0.01630188,
-0.03837795,
-0.018270355,
-0.026800407,
-0.055117268,
0.054038253,
0.020530455,
0.01641853,
-0.0065798066,
0.021113705,
-0.03654071,
0.03155391,
-0.03181637,
-0.031845532,
-0.028681394,
-0.026640013,
-0.050567906,
0.052259337,
0.038290463,
-0.0058799046,
-0.0045311353,
-0.021580307,
0.021244938,
0.019743064,
0.037182286,
-0.021755282,
-0.0131669035,
-0.042489875,
-0.007684339,
0.008129069,
-0.0058142887,
0.08702113,
-0.01346582,
0.013655377,
0.0020413804,
-0.04085677,
0.036832333,
-0.030474892,
-0.008952911,
0.049518056,
-0.0020031044,
0.019830553,
-0.037415586,
-0.032078832,
0.0046368497,
-0.007217738,
0.024977747,
-0.0044181305,
-0.015222865,
-0.019626414,
0.032078832,
-0.04648515,
-0.01571863,
0.049051452,
0.033012036,
-0.00050396577,
-0.015747791,
0.004501973,
-0.022878041,
0.017380895,
0.009062271,
-0.010666212,
0.017774591,
0.06596575,
0.00882897,
0.01210976,
0.016608087,
-0.0080488715,
-0.032195486,
-0.02093873,
-0.0077499547,
0.007771827,
-0.00031167504,
0.0013569711,
-0.016360205,
-0.01608316,
0.04412298,
-0.024175776,
0.005227392,
-0.002354878,
0.004742564,
-0.014129268,
0.06695727,
-0.032632925,
-0.043481402,
-0.092737,
0.022790553,
0.049663868,
-0.025721392,
0.01426779,
-0.003882268,
-0.023694593,
0.03700731,
-0.004308771,
-0.015995674,
0.0031586715,
0.012270154,
-0.026640013,
0.07115669,
0.03543253,
0.014880205,
-0.030504055,
-0.033128686,
-0.020545036,
0.039573617,
0.016112324,
0.011030745,
0.025283953,
0.019145232,
0.00026496933,
-0.013407495,
0.012590942,
0.016724737,
0.012503454,
-0.06713225,
0.03394524,
-0.010214193,
-0.015601979,
-0.023854988,
-0.015908185,
-0.0037127605,
0.017934985,
-0.00060238945,
-0.025735974,
-0.00010303731,
0.033653613,
-0.04447293,
-0.032807898,
-0.014610451,
0.016447693,
0.022338534,
0.041119233,
0.049430568,
-0.018547399,
0.036394894,
-0.0132252285,
-0.036249083,
0.04415214,
-0.0024642376,
-0.022323953,
0.02318425,
0.0035578343,
-0.014136559,
-0.013954293,
-0.0026683758,
-0.012539908,
-0.0033117752,
0.027252428,
-0.051792737,
-0.023563363,
0.050772045,
0.018984837,
-0.053163376,
0.053600814,
-0.016316462,
0.0075458167,
-0.0073307427,
0.022484347,
-0.01991804,
-0.027004546,
0.004447293,
0.054767318,
0.033187013,
0.048584852,
-0.033128686,
-0.013553307,
0.0013751978,
-0.0034284254,
0.011439021,
-0.008413403,
0.021026218,
-0.0015428825,
-0.025663067,
-0.027004546,
-0.0019502473,
-0.016841387,
-0.0010462074,
0.017585034,
0.0069625652,
-0.0027175876,
-0.01733715,
-0.043977164,
0.032982875,
-0.025094397,
-0.04934308,
-0.037532236,
0.015149958,
0.015179121,
-0.0141584305,
0.00067620724,
-0.0260276,
-0.011737937,
-0.04639766,
0.033449475,
-0.0427815,
0.008901876,
-0.027485728,
-0.0108703505,
0.0030128588,
0.0084571475,
0.033770263,
-0.02421952,
-0.021667795,
-0.030591542,
-0.007822861,
-0.06713225,
-0.054504856,
-0.010688084,
0.017118432,
-0.027689867,
0.024977747,
0.010899513,
-0.01707469,
-0.016462274,
-0.005905422,
-0.0003706837,
-0.013232519,
-0.026187994,
-0.04190662,
0.0064704465,
0.030708194,
0.027427403,
-0.034441,
-0.044764556,
0.016506018,
-0.024059126,
0.04097342,
-0.007837443,
0.042752337,
-0.03677401,
-0.010061089,
0.007002664,
-0.023636268,
-0.0060621705,
0.026290063,
0.0212741,
0.030970655,
0.05645875,
-0.028856369,
0.018299516,
-0.0036945338,
-0.040419333,
0.04144002,
-0.038640413,
0.019728484,
-0.008938329,
-0.020238828,
0.029614596,
-0.04718505,
0.015339515,
0.025663067,
0.027514892,
0.0332745,
-0.025838044,
0.03272041,
0.03642406,
-0.028156467,
-0.025298536,
0.016345624,
-0.00022122548,
-0.014194884,
-0.03858209,
-0.0006320077,
0.0019775871,
0.0068203975,
0.029075088,
-0.034353517,
0.02478819,
0.012022272,
-0.06310782,
-0.03893204,
0.04356889,
-0.0057122195,
0.029614596,
0.02318425,
0.048118252,
-0.06386604,
0.085563,
-0.018649468,
0.0012722174,
-0.033099525,
0.038202975,
-0.007093797,
-0.055379733,
0.004173894,
0.036278244,
-0.022484347,
-0.054067418,
0.0040353714,
0.03543253,
-0.022251045,
0.009769463,
-0.0054461113,
0.020501291,
-0.04470623,
-0.056079634,
0.002672021,
0.033216175,
-0.031378932,
0.032078832,
0.030999819,
-0.046922587,
0.012831533,
0.042868987,
-0.060191557,
-0.018897349,
0.027689867,
-0.006240791,
-0.054913133,
-0.035549182,
0.06474092,
0.00057869486,
0.017030945,
0.026465038,
-0.018430749,
0.052492637,
-0.012765918,
0.016506018,
0.018139122,
-0.031203957,
-0.04832239,
-0.0006648156,
0.01596651,
0.027850261,
0.022323953,
-0.018284936,
0.033041198,
0.0061423676,
0.033099525,
-0.0192473,
-0.049313918,
0.008960201,
-0.03202051,
-0.012488874,
-0.011759809,
0.011191139,
0.021303263,
0.026173413,
-0.04674761,
-0.011322371,
0.0032771446,
0.014931239,
-0.0077135013,
-0.030737355,
-0.0014635968,
-0.0049394113,
-0.03464514,
-0.02217814,
-0.02207607,
-0.022017745,
0.0260276,
-0.010046507,
-0.026537945,
0.006240791,
0.038436275,
0.0262609,
-0.020267991,
0.021930257,
-0.023636268,
-0.03167056,
-0.03429519,
0.012999219,
-0.015120796,
0.0089237485,
0.042694014,
0.02455489,
0.03362445,
0.0057997075,
-0.022046909,
-0.0016640895,
-0.0038312336,
0.040477656,
-0.0335078,
-0.0039661103,
-0.04423963,
0.027704448,
-0.027237846,
-0.017001782,
0.024409076,
-0.006601678,
-0.03925283,
0.013028381,
0.014800007,
0.029031346,
0.0042067016,
0.032341298,
0.012474292,
0.0427815,
0.019116068,
0.025269372,
0.030824844,
-0.0057668993,
-0.018736955,
-0.0118035525,
0.0023895085,
0.04176081,
0.020078434,
0.04196495,
0.028462674,
-0.038844552,
-0.041381694,
0.001819927,
0.020457547,
0.048059925,
0.020267991,
0.0046769483,
0.013706411,
-0.027325334,
-0.024890259,
0.010257936,
-0.057741903,
-0.007779117,
0.015412422,
-0.05648791,
-0.0066199047,
-0.00848631,
0.022761391,
-0.022440603,
-0.010221483,
0.03339115,
0.04219825,
-0.006306407,
-0.006120496,
0.022688484,
-0.03339115,
-0.010848478,
-0.022323953,
0.049663868,
-0.04843904,
-0.05695451,
-0.02977499,
0.04628101,
-0.009915276,
-0.0011792617,
-0.024263263,
-0.014843752,
0.023009272,
0.02806898,
-0.044968694,
0.000028536037,
-0.03464514,
0.03837795,
-0.06264121,
0.05106367,
-0.0053112344,
0.008697739,
0.007286999,
-0.017380895,
-0.006437639,
0.050101306,
0.026625432,
-0.002989164,
0.0043269973,
0.030154103,
0.021755282,
0.01053498,
0.015324934,
0.029847898,
0.014661485,
-0.00003651018,
0.043598052,
0.014763555,
0.01730799,
-0.005693993,
-0.047476675,
0.03204967,
-0.013626214,
0.046572633,
-0.019057743,
0.018970257,
-0.0016221683,
0.08060536,
0.007553107,
0.02468612,
0.018095378,
0.009499709,
-0.008143649,
0.014668776,
-0.0056502493,
-0.02115745,
-0.049547218,
-0.030883169,
0.00064294366,
0.030008292,
0.030154103,
0.023023855,
0.009813207,
-0.045201994,
0.029075088,
-0.008209265,
0.012117051,
0.022236465,
-0.010957838,
0.005037835,
0.018080797,
-0.012802371,
0.011460893,
0.012590942,
0.0033919723,
-0.000048357477,
-0.00610956,
0.029716665,
0.012022272,
-0.02716494,
0.004144731,
-0.0473017,
-0.03925283,
-0.052463476,
0.013567889,
-0.08048871,
-0.036365733,
0.028666813,
-0.04450209,
-0.047797464,
-0.0026045826,
-0.045231156,
-0.0005440643,
-0.0030365533,
0.055000618,
-0.07798073,
0.06544082,
-0.0047607906,
-0.005905422,
-0.007119314,
0.047884952,
-0.06806546,
0.020107597,
-0.007017245,
-0.030270755,
-0.03228297,
0.021988582,
-0.027369078,
-0.0022564544,
-0.0008448034,
0.008850842,
-0.049197268,
0.005974683,
0.028695974,
-0.053600814,
-0.006576161,
0.037823863,
0.007553107,
-0.028098142,
-0.02083666,
-0.013509563,
-0.053046726,
-0.06450762,
-0.029979128,
0.035840806,
-0.008005127,
-0.03508258,
-0.02195942,
-0.016914295,
-0.0056320224,
-0.016651832,
-0.021784445,
0.0065579345,
0.029293807,
-0.0020851241,
0.027675286,
0.065149195,
-0.011008873,
-0.016331043,
0.0017652472,
0.026785826,
-0.025488092,
0.07751413,
0.057800226,
0.0038531055,
-0.018824443,
0.0069078854,
-0.012000401,
-0.038027998,
-0.038990363,
-0.0020286217,
0.012131631,
-0.078389004,
-0.057129487,
0.006725619,
0.020180503,
-0.025546417,
-0.022907203,
0.015295771,
0.01391784,
-0.052755103,
0.003816652,
-0.022907203,
-0.023738338,
-0.021492818,
-0.04593106,
0.04155667,
-0.0561088,
0.25149807,
0.03155391,
0.02569223,
0.015616559,
0.0067402003,
0.0563421,
0.048001602,
-0.0078520235,
0.019028582,
-0.010272518,
-0.020545036,
-0.019888878,
0.026231738,
0.026508782,
-0.062466238,
0.0067402003,
-0.030824844,
0.0071703484,
0.028608488,
-0.073897965,
-0.018926512,
-0.021536563,
-0.016053999,
0.03067903,
0.033245336,
0.03916534,
-0.0027467501,
-0.0072359643,
0.012182666,
-0.034120213,
-0.018941093,
0.009900695,
0.04855569,
0.023402968,
-0.02954169,
0.02241144,
-0.04493953,
-0.07996379,
0.01539784,
0.005365914,
0.028827207,
0.027806517,
0.031320605,
0.00088080094,
-0.008143649,
-0.0043379334,
-0.0030019227,
-0.047243375,
-0.001618523,
-0.011176557,
0.058033526,
-0.07185659,
0.009776753,
-0.031116469,
-0.013560598,
-0.004775372,
-0.03610327,
-0.024015382,
0.06923196,
-0.008413403,
0.047535,
0.00011385936,
-0.02592553,
-0.0042941896,
-0.043423075,
-0.022557253,
-0.02095331,
0.045289483,
-0.012999219,
-0.03193302,
-0.017482964,
-0.009426803,
0.02570681,
0.0036489675,
0.016914295,
0.057683576,
0.02582346,
0.024511145,
-0.060599834,
-0.0040791156,
0.017934985,
0.014187594,
0.011110942,
-0.03181637,
0.055117268,
0.018284936,
-0.02614425,
-0.02184277,
-0.044647906,
0.011927494,
0.04642682,
0.055642195,
-0.0070464076,
-0.023271736,
-0.014296954
] | BetterTransformer
Some BetterTransformer features are being upstreamed to Transformers with default support for native torch.nn.scaled_dot_product_attention. BetterTransformer still has a wider coverage than the Transformers SDPA integration, but you can expect more and more architectures to natively support SDPA in Transformers. |
[
0.04524428,
0.018462077,
-0.06288869,
0.02531901,
-0.00717611,
-0.015019265,
0.004611933,
-0.017587028,
0.0017205091,
0.03669463,
0.05083885,
0.0025408666,
0.043178596,
-0.06529866,
-0.015664792,
0.03669463,
-0.0043035145,
-0.0015842313,
-0.0102567095,
0.037354507,
0.021359777,
-0.026107987,
-0.06042134,
-0.021431502,
-0.009109105,
0.0021678954,
0.036637254,
-0.030841853,
0.062429648,
0.045932844,
-0.010930927,
-0.017687444,
0.00829861,
-0.034743708,
-0.024687827,
-0.01438091,
0.023253324,
0.020025687,
-0.033825625,
-0.04208837,
0.02222048,
-0.005476222,
0.020441694,
-0.022952076,
-0.06610198,
-0.009682908,
0.017916964,
-0.052990608,
-0.015177061,
-0.043551564,
-0.052302044,
-0.017587028,
0.0054403595,
0.0013627795,
-0.021919234,
0.011648179,
0.012221981,
0.01037147,
0.013828626,
0.0022808625,
0.037842236,
-0.0043644807,
-0.022019649,
-0.057294123,
0.009331454,
0.039735783,
-0.0075311502,
0.02526163,
-0.022995112,
-0.029608179,
-0.033710863,
-0.046104982,
-0.012587779,
-0.029249553,
-0.026093641,
0.04088339,
0.025060799,
0.007380527,
0.030382812,
0.019107604,
0.027929809,
0.010550783,
-0.04811329,
0.013764073,
-0.040797316,
-0.03546096,
0.033768244,
-0.012666677,
-0.0070613497,
-0.018089106,
0.030612333,
0.021861853,
0.034887157,
-0.021947924,
0.009503595,
0.055888306,
-0.03893246,
0.048973992,
-0.007007556,
0.008449233,
-0.007007556,
0.07671732,
0.0067170686,
0.031559106,
-0.03962102,
0.026265783,
0.022693865,
-0.032706708,
-0.015894312,
-0.040080063,
0.02256476,
0.0057702954,
0.00475897,
0.015550032,
-0.02856099,
0.0018648562,
0.00377992,
0.01764441,
-0.008090607,
0.01764441,
-0.013828626,
-0.052129906,
0.032305047,
0.013814281,
-0.004170823,
-0.07775016,
-0.0195523,
0.02230655,
-0.07482377,
-0.0012785024,
0.009302763,
0.015521342,
-0.011002651,
0.05651949,
0.016927157,
-0.0063440977,
-0.00072621804,
0.0055192574,
0.0074450797,
0.004299928,
0.009015863,
-0.026753515,
0.02378409,
0.07683208,
-0.02980901,
0.005630431,
0.00047562798,
-0.02551984,
-0.05637604,
-0.013972077,
-0.042461343,
0.021029841,
0.012587779,
-0.010113259,
0.0046764854,
-0.023152906,
-0.02830278,
0.019494921,
0.012473019,
-0.00095932506,
-0.008635719,
-0.019222364,
-0.023769744,
0.060363963,
-0.010938099,
0.037641406,
-0.028517956,
-0.012343913,
0.010866374,
-0.02094377,
0.039707094,
0.013254824,
0.043408114,
0.0004056959,
0.047740318,
0.045732014,
0.057982683,
-0.0012381569,
0.0025713497,
0.013132892,
-0.01119631,
-0.020958114,
0.009467731,
0.021704057,
-0.013168754,
0.00806909,
-0.018361662,
-0.017171022,
0.009474904,
0.0037261262,
-0.03322313,
0.018117795,
-0.031645175,
0.044125367,
-0.046850927,
0.020570798,
-0.014058147,
-0.029077413,
0.010837683,
-0.072758086,
0.002298794,
0.056175206,
-0.018906774,
-0.018232556,
-0.061396804,
0.008614201,
0.026366198,
0.026509648,
0.010644025,
0.027872428,
0.05365048,
-0.005393738,
-0.012716885,
-0.008219712,
0.0059890575,
0.021245016,
0.020398658,
-0.003080599,
0.024601758,
0.009876565,
0.021560607,
0.001450643,
0.051355273,
-0.020785974,
0.007739153,
-0.031587794,
0.010134776,
0.06449533,
0.0037297125,
-0.0195523,
-0.0018433387,
0.042719554,
0.012544745,
0.041026838,
-0.0049992492,
-0.016654601,
0.0016487839,
-0.0053363577,
-0.0057810545,
-0.020341277,
0.026409233,
0.014875814,
0.022148754,
0.043063834,
0.00013964008,
0.03571917,
0.0017267851,
-0.013355239,
-0.059216358,
0.0034571565,
-0.05766709,
0.06994645,
-0.018404696,
-0.026724825,
-0.0422892,
0.011225,
-0.0045940015,
0.015550032,
0.023353739,
-0.0094031785,
-0.001560024,
0.041026838,
-0.030382812,
-0.00815516,
0.028718786,
0.09880869,
-0.016984537,
-0.0073016295,
0.01801738,
-0.036866773,
-0.02818802,
-0.010722923,
-0.05651949,
-0.037555337,
-0.05637604,
-0.0077319806,
0.013663658,
-0.037325814,
0.0009772563,
0.027929809,
0.005106837,
-0.0004859385,
0.004038131,
0.03870294,
0.037325814,
0.04819936,
-0.05365048,
0.067306966,
-0.02358326,
0.023210287,
-0.010235191,
-0.052101213,
-0.034227286,
-0.012157428,
-0.013240479,
-0.0075741853,
-0.004335791,
-0.047051758,
-0.03569048,
0.016898466,
0.018160831,
-0.029306933,
-0.019365815,
0.015047955,
-0.03262064,
0.04177278,
0.009790495,
-0.04756818,
0.066216744,
0.075799234,
-0.0026645926,
0.049863387,
-0.021130256,
0.026538339,
-0.027556837,
0.050121598,
0.046535335,
-0.031386964,
-0.0014085044,
-0.05353572,
0.009812013,
0.0019545127,
-0.0077319806,
-0.060363963,
-0.020054378,
0.045416422,
-0.057982683,
-0.02554853,
0.01796,
-0.0008033227,
-0.056232587,
0.0032061182,
0.0138788335,
0.05058064,
0.017543994,
0.008800687,
-0.049174823,
0.036723323,
-0.024802588,
0.021517571,
-0.008040399,
-0.058240894,
0.02995246,
0.020255208,
0.038301278,
0.010450368,
0.05017898,
-0.03333789,
-0.0027488698,
-0.014682157,
-0.021804472,
0.03213291,
-0.015506997,
-0.005121182,
-0.009281246,
-0.006268786,
-0.017787859,
0.014624776,
-0.010098914,
0.00015970074,
0.031559106,
0.043465495,
-0.0018738218,
0.0007746326,
-0.05425297,
0.017371854,
-0.009855048,
0.0061074044,
0.05052326,
-0.015550032,
0.01958099,
-0.010127604,
-0.0044541373,
-0.006749345,
0.021015495,
-0.05646211,
0.022736901,
0.028058914,
0.039678402,
-0.018476421,
-0.023870159,
-0.0045366213,
0.029063066,
0.037784856,
0.018835047,
0.0017079572,
-0.01960968,
0.011382796,
-0.022880351,
-0.0127886105,
0.01975313,
0.02659572,
-0.0013466413,
-0.030727092,
-0.035059296,
-0.034485497,
0.045588564,
0.037268434,
0.0074092173,
0.012480192,
0.06042134,
0.0081408145,
0.03815783,
0.049662556,
-0.0102567095,
-0.070175976,
-0.02998115,
0.026308818,
0.011899217,
-0.004199513,
-0.017859586,
-0.015879968,
-0.01199246,
-0.0065521006,
0.006225751,
0.004475655,
-0.034428116,
0.0073052156,
0.027772013,
0.060593482,
0.021402812,
-0.018031726,
-0.040309586,
0.0391046,
0.060593482,
-0.055773545,
0.002228862,
-0.0353462,
-0.0025139695,
0.029364314,
-0.018060416,
-0.018705942,
-0.022636486,
0.015937349,
-0.031186134,
0.060593482,
0.05666294,
0.007211973,
-0.037297126,
-0.052933227,
-0.045789395,
0.05399476,
-0.0039090253,
-0.016927157,
-0.0031272206,
0.01917933,
-0.037268434,
0.023081182,
0.021417156,
0.018820703,
0.032706708,
-0.064437956,
0.08119297,
-0.014015112,
-0.0027560424,
-0.03259195,
-0.026366198,
0.010020016,
0.021603642,
0.0042676516,
-0.01938016,
0.0047302796,
0.04455572,
-0.06667578,
-0.012135911,
0.011841837,
-0.016697636,
0.008556821,
0.02659572,
0.0061145765,
0.0038408865,
0.03241981,
0.034370735,
-0.02850361,
0.046047606,
-0.010177812,
0.011131757,
-0.01935147,
-0.0253477,
-0.0030196325,
-0.05367917,
-0.0072836983,
-0.042662174,
0.016884122,
0.0043859985,
-0.05715067,
-0.0053722207,
0.05304799,
0.013218962,
0.0082268845,
0.023195943,
-0.035317507,
0.031960767,
-0.02969425,
-0.014610431,
-0.040424347,
-0.05058064,
-0.009905255,
0.03586262,
0.035374887,
0.0132906865,
-0.03640773,
-0.03867425,
0.04458441,
-0.044067986,
0.00012742437,
-0.031329583,
0.024859969,
0.0074665975,
0.01270254,
-0.04177278,
-0.017945655,
0.00096560107,
-0.011648179,
-0.0073661823,
0.042690862,
0.005917332,
-0.046162363,
-0.03267802,
0.05385131,
0.0051104235,
-0.07700422,
-0.046104982,
0.046076294,
-0.011490383,
-0.020628178,
0.019953962,
-0.037756167,
-0.02543377,
-0.03264933,
0.045732014,
-0.025304664,
0.010593818,
-0.03279278,
-0.0506954,
0.02207703,
0.006229337,
0.049260896,
-0.023540223,
-0.036120832,
-0.017228402,
0.015492652,
-0.04223182,
-0.038301278,
-0.031386964,
-0.041600637,
0.018462077,
0.0512692,
0.0011467072,
-0.012860335,
0.010263882,
0.028460575,
0.025993226,
0.0362069,
-0.06179847,
-0.014531533,
0.0026574202,
-0.02514687,
0.009281246,
0.00283494,
-0.03583393,
-0.0074450797,
-0.037928306,
0.043350734,
-0.067192204,
0.017271439,
-0.013312205,
-0.048973992,
0.0065772044,
-0.04512952,
-0.002492452,
0.012315224,
0.023138562,
0.021646677,
0.034571566,
-0.034628946,
-0.008585511,
-0.04234658,
-0.06696268,
0.048400193,
-0.027743323,
0.0071832826,
-0.011174792,
-0.034026455,
0.04495738,
-0.000063207866,
0.044125367,
0.06001968,
0.019222364,
0.025821086,
-0.023669329,
0.016984537,
0.02227786,
-0.009195176,
-0.012092875,
0.0073195607,
-0.0073016295,
-0.015406582,
-0.041256357,
-0.0480846,
-0.01801738,
0.0053004953,
0.032907538,
-0.04512952,
0.02986639,
0.008420543,
-0.0425761,
-0.02091508,
0.033452652,
0.005795399,
0.010651198,
0.032448497,
0.02398492,
-0.031846005,
0.041112907,
-0.014961885,
-0.026294474,
-0.03279278,
0.04487131,
0.005651949,
-0.0657577,
0.034112524,
0.013972077,
-0.022952076,
-0.06931527,
0.0017007848,
-0.004393171,
0.018806357,
-0.02108722,
-0.0018953395,
0.008327301,
-0.0003570572,
-0.04535904,
0.02659572,
0.010902236,
-0.011368451,
0.04231789,
0.020656869,
-0.05686377,
-0.0025892812,
0.039678402,
-0.049433034,
-0.023454154,
-0.005773882,
0.005436773,
-0.046334505,
-0.051900383,
0.060765624,
-0.02097246,
0.015019265,
0.024673482,
0.013369584,
0.024214441,
-0.0021607229,
-0.019337125,
0.008721789,
-0.023267668,
0.0013600899,
-0.009976981,
0.015621757,
-0.010027189,
0.035087988,
0.0018191314,
0.0098335305,
0.017888274,
0.024443962,
-0.027499456,
-0.08354556,
0.01142583,
-0.03896115,
-0.03227636,
-0.016898466,
-0.034542877,
-0.021331087,
0.020900736,
-0.030468881,
-0.037698787,
0.0061289216,
0.01981051,
-0.01596604,
-0.02222048,
-0.058527794,
0.0076674283,
-0.045732014,
-0.007990192,
-0.00528615,
-0.06466748,
0.005573051,
0.030841853,
-0.0298377,
0.003666953,
0.0021409984,
0.016611565,
-0.02285166,
-0.02227786,
-0.019624026,
0.006720655,
-0.04768294,
0.052187283,
0.017285783,
-0.0033675,
0.049547795,
-0.00809778,
-0.012429984,
0.037784856,
0.007875431,
0.0063763736,
0.03322313,
0.028144984,
-0.02398492,
-0.00043842054,
0.003272464,
0.0062508546,
-0.030755782,
-0.014445463,
0.004013027,
-0.015406582,
-0.02827409,
0.03580524,
0.03569048,
0.05694984,
0.024544377,
0.00898,
-0.0067529315,
0.040625177,
0.027628561,
-0.0015797484,
-0.007488115,
0.053220127,
-0.047482107,
-0.074307345,
-0.000865634,
0.04512952,
-0.02236393,
0.03219029,
0.008850895,
-0.034944538,
-0.027040415,
0.03319444,
-0.007595703,
0.043322045,
0.008779169,
-0.0066740336,
-0.0032634984,
-0.0018630631,
-0.064151056,
0.018835047,
-0.05109706,
-0.014510016,
-0.027312972,
-0.039592333,
0.012867508,
0.004611933,
-0.0059890575,
0.021574952,
0.029120447,
0.016066454,
-0.024630448,
0.0027811462,
0.03026805,
0.012458674,
-0.065815076,
-0.020197827,
-0.018935462,
0.019667061,
-0.06564294,
-0.040280893,
-0.00375123,
0.04584677,
0.005953195,
-0.005874297,
-0.032448497,
-0.006613067,
0.037784856,
0.016109489,
-0.044670478,
0.01798869,
-0.020212173,
0.050092906,
-0.05984754,
0.00073204574,
-0.007861086,
0.01796,
-0.009991325,
0.001190639,
-0.016927157,
0.025132524,
0.010859202,
-0.010816166,
-0.0053327717,
0.0050028353,
0.032247666,
0.018720288,
0.022464344,
0.02392754,
0.021632332,
0.0051929075,
0.04851495,
-0.03930543,
0.04478524,
0.04799853,
0.004708762,
-0.009962636,
0.03962102,
0.033452652,
-0.015937349,
0.00049669726,
-0.02259345,
0.024271822,
-0.032104217,
0.010557955,
0.021374121,
0.017773515,
0.020900736,
0.01960968,
-0.020814665,
0.021201981,
-0.030985303,
-0.048687093,
0.005992644,
0.015377891,
0.01633901,
0.008198195,
0.009015863,
0.027155176,
0.04521559,
0.018591182,
0.0021643091,
0.029134793,
0.0016165075,
0.02856099,
-0.01102417,
0.01619556,
0.013986422,
0.014316358,
-0.009453387,
-0.018361662,
-0.037325814,
0.02100115,
-0.0240423,
-0.021488883,
-0.0012793989,
-0.031731244,
-0.023052491,
-0.07109406,
0.033108372,
-0.024644792,
-0.023540223,
0.02508949,
-0.016238594,
-0.039190672,
0.03571917,
0.0045688977,
0.0015716794,
0.007681773,
0.057982683,
0.0019114777,
0.114588246,
-0.014323531,
0.013893179,
0.031960767,
0.0014416773,
-0.039649714,
-0.003819369,
-0.008944137,
-0.028690096,
-0.013154409,
-0.0121646,
-0.040912077,
-0.0025964538,
-0.0033872244,
-0.023913195,
-0.039936613,
0.018921118,
0.01784524,
-0.042863004,
-0.020814665,
0.09100498,
0.03293623,
0.021847509,
0.00042542032,
0.012903371,
-0.04249003,
-0.010701406,
-0.015248786,
0.03267802,
-0.01511968,
-0.01653984,
0.0035611582,
-0.0654708,
-0.03583393,
-0.011712732,
-0.015105335,
0.0010265675,
0.025964538,
0.03322313,
0.011526246,
0.034542877,
-0.01207853,
-0.023640638,
0.03299361,
0.046334505,
-0.02676786,
0.07602876,
0.040711246,
-0.008090607,
-0.01142583,
0.031013994,
0.02074294,
-0.025878467,
-0.018376006,
-0.018892428,
0.021790128,
-0.02435789,
-0.043867156,
0.0059209187,
-0.006301062,
0.022105718,
-0.028890926,
-0.05132658,
-0.0006760104,
-0.06306083,
-0.0017949241,
0.021417156,
-0.0025211421,
0.0036364696,
-0.037067603,
0.022521725,
0.006487548,
0.24398057,
0.050092906,
0.055228435,
-0.0056340178,
0.03316575,
0.06529866,
-0.0026896964,
-0.01659722,
-0.0068784505,
0.0054654633,
0.019121949,
-0.009553802,
0.0022342412,
-0.007516805,
-0.018720288,
0.01190639,
-0.022263514,
-0.0033567413,
-0.0074092173,
-0.05152741,
-0.026523994,
0.009969808,
0.0025695567,
0.0020154791,
0.029177828,
0.037096296,
0.028790511,
-0.02358326,
0.0002496935,
-0.019996997,
-0.007739153,
-0.04197361,
0.049662556,
0.023038147,
0.0043895845,
0.0414285,
-0.012437156,
-0.033940382,
0.027556837,
0.020427348,
0.038588177,
-0.02401361,
0.008535303,
-0.034657635,
-0.014488499,
0.010622508,
-0.026222747,
-0.0018702357,
0.02285166,
-0.06994645,
0.034887157,
-0.052015144,
0.027341662,
-0.025103834,
-0.024702173,
-0.017127987,
-0.048601024,
-0.011146102,
-0.008234058,
0.043924537,
0.048859235,
0.0043071005,
0.0031308066,
0.011260862,
0.007516805,
0.033768244,
-0.021804472,
0.022894697,
-0.018146485,
-0.002024445,
-0.0032366014,
-0.037813548,
0.0102495365,
0.013018131,
0.006336925,
0.032161597,
0.006326166,
0.03609214,
-0.049605176,
-0.014316358,
0.015220095,
-0.022995112,
-0.017443579,
-0.02708345,
0.02091508,
0.0019796167,
-0.014007939,
-0.020872045,
-0.004723107,
0.025806742,
0.015650447,
0.03597738,
-0.008112124,
0.020269552,
0.01616687
] | BetterTransformer accelerates inference with its fastpath (native PyTorch specialized implementation of Transformer functions) execution. The two optimizations in the fastpath execution are:
fusion, which combines multiple sequential operations into a single "kernel" to reduce the number of computation steps
skipping the inherent sparsity of padding tokens to avoid unnecessary computation with nested tensors |
[
0.023651417,
0.0062014665,
-0.037741624,
-0.023917828,
-0.01347598,
-0.027366377,
0.019137222,
-0.011063476,
-0.025901115,
0.022437764,
-0.004769505,
-0.0278992,
0.043869086,
-0.023029791,
0.0022940987,
0.03276861,
0.012846952,
-0.025531098,
-0.038244843,
0.0007557575,
0.009642615,
-0.030814925,
-0.06648446,
-0.021505324,
-0.007030302,
0.009265198,
0.034071065,
0.0039443695,
0.06831974,
0.0053393296,
-0.017494353,
-0.023592215,
-0.007022902,
-0.034544684,
-0.015762677,
-0.018071577,
0.012943157,
-0.01928523,
0.007836937,
-0.026774352,
0.02862443,
-0.0100940345,
0.04836848,
-0.038777668,
-0.108281456,
-0.015200254,
0.0014671132,
-0.04046494,
0.00089451345,
-0.038718466,
-0.0014291864,
0.0162807,
0.0023514512,
0.035965547,
-0.011921912,
-0.010071834,
0.013564783,
-0.027173968,
-0.006652886,
-0.008954385,
0.03578794,
0.019492438,
-0.00650858,
-0.06091942,
0.012610142,
0.029719679,
-0.036853585,
0.0055687395,
-0.012676746,
-0.0038074637,
-0.027943602,
-0.0017751514,
0.045260347,
-0.018900413,
-0.010353046,
0.037031192,
0.012432534,
0.0035096009,
0.0121809235,
0.0015966187,
-0.02439145,
0.0049619135,
-0.004747304,
0.02138692,
-0.017938372,
-0.05946896,
0.06000178,
-0.021949343,
0.005461435,
-0.035314318,
0.00791094,
0.010900669,
-0.0046511,
0.030755723,
0.0209133,
0.0348703,
-0.0070414026,
0.03164376,
0.03114054,
-0.03235419,
0.0038555658,
0.08081148,
-0.0042366823,
0.04508274,
-0.008858181,
0.015007845,
0.028935244,
0.01487464,
-0.027159167,
-0.023903027,
0.03202858,
0.01884121,
0.0054244334,
-0.004044274,
-0.03608395,
0.017982773,
0.00767413,
0.027839998,
-0.03421907,
-0.010604656,
-0.0009601913,
-0.03883687,
-0.0005101594,
-0.02696676,
0.00953161,
-0.050114956,
0.026774352,
0.021283315,
-0.053815115,
0.010730461,
-0.006538181,
-0.023681019,
0.029453266,
0.0465332,
-0.002603062,
-0.014800636,
-0.012891354,
-0.0064308764,
0.021268515,
-0.050085355,
0.0055465386,
-0.006094162,
-0.008317958,
0.09093511,
0.011707303,
-0.025057478,
0.0139866015,
-0.066662066,
-0.018782008,
0.020987302,
-0.0056575434,
0.022408163,
0.010441849,
0.037060793,
0.02280778,
-0.017168738,
-0.03439668,
0.033745453,
-0.0036909087,
0.002070239,
0.042744238,
0.027514383,
-0.052956678,
0.040820155,
0.009812822,
0.04372108,
-0.00999783,
-0.0022811482,
0.013786793,
0.004632599,
0.018323189,
0.0140902065,
0.004133078,
0.015511068,
0.041412182,
0.021756936,
0.065182,
-0.024909472,
-0.016724719,
0.01977365,
-0.000412799,
-0.0041034766,
0.029690078,
0.04674041,
-0.022023346,
-0.02930526,
0.018293587,
0.0040590744,
-0.01278775,
0.015614672,
0.021993745,
0.048161272,
-0.020824496,
0.0348407,
-0.046829212,
0.014016203,
-0.037800826,
0.0010129185,
-0.0036594574,
-0.039843313,
-0.008895183,
0.048220474,
-0.015081849,
0.0046511,
-0.039340094,
-0.0045659966,
0.0016641465,
0.065300405,
0.009790621,
0.039310493,
0.034367077,
-0.0032727907,
-0.04505314,
0.002414354,
-0.007085805,
0.01789397,
0.0055206376,
0.028091608,
0.025161082,
0.022600573,
0.048546087,
-0.008473365,
0.03182137,
0.008932184,
0.007836937,
-0.00014014353,
0.013105963,
0.029320061,
0.018426793,
-0.010360446,
0.0022829983,
0.039606504,
0.030578116,
0.013424178,
0.017523954,
0.032235786,
0.03137735,
0.03347904,
-0.030178498,
0.00442539,
-0.010634257,
0.02909805,
0.04469792,
0.020558083,
-0.018056776,
0.022570971,
0.004203381,
0.0013126314,
-0.08021945,
0.01743515,
-0.05482156,
0.045911573,
-0.021238914,
-0.023991833,
-0.05301588,
0.0039221686,
0.03202858,
0.037060793,
-0.036202356,
-0.057722483,
0.019832853,
0.04928612,
-0.020350875,
-0.016561912,
0.010908069,
0.05736727,
-0.0348407,
0.0126989465,
0.022852182,
-0.022689376,
-0.0029231256,
-0.030045291,
-0.04256663,
0.010663859,
-0.033775054,
-0.00096851663,
0.0090357885,
-0.0883302,
0.015007845,
-0.029172055,
0.0020387876,
-0.02206775,
0.0029194255,
0.05736727,
0.050114956,
0.019374033,
-0.05422953,
0.04739164,
-0.02280778,
0.045408353,
-0.0022626473,
-0.02696676,
-0.022866983,
-0.016413907,
0.001837129,
-0.00015540668,
-0.0149412425,
-0.031969376,
-0.05834411,
-0.007785135,
-0.020069662,
0.020365676,
-0.013697989,
0.008739776,
0.008103348,
0.013068962,
0.014600828,
-0.010160637,
0.044461112,
0.062399484,
-0.025042677,
0.017301945,
0.0029453267,
0.04928612,
-0.035610333,
0.049670935,
0.04224102,
0.0063605737,
-0.0027973203,
-0.03415987,
-0.01046405,
-0.015451864,
-0.014726633,
-0.024539456,
-0.040790554,
0.07601607,
-0.030548513,
-0.051920634,
-0.005298628,
-0.033331033,
-0.04463872,
0.0062199677,
-0.0348407,
0.042892244,
0.042862643,
0.030844526,
0.0022903986,
0.031732567,
-0.020143667,
0.032531798,
0.0071968096,
-0.029053649,
0.038096838,
0.040376138,
0.019196426,
0.025205484,
0.034100667,
-0.035225514,
0.0029712277,
-0.00038273522,
0.014800636,
0.008747176,
-0.006016459,
-0.0023903027,
0.035728738,
0.016917128,
-0.020173268,
0.028757637,
0.023488611,
0.0123881325,
0.047273234,
0.016117893,
0.020439679,
0.014600828,
-0.026596744,
0.009790621,
0.0163103,
0.0073337154,
0.051920634,
-0.044786725,
0.0014939392,
0.01605869,
-0.037356805,
0.0074299197,
-0.0049027107,
0.009428006,
0.059439357,
-0.0076593296,
0.051476613,
-0.028757637,
-0.013557383,
-0.036764782,
0.009568611,
-0.017287143,
0.026211927,
-0.014068005,
-0.0070155016,
0.03510711,
-0.028239615,
-0.008051546,
0.009020988,
0.027469981,
-0.010020031,
0.0029730778,
-0.017361147,
-0.039813712,
0.018930014,
0.039280888,
0.016191896,
-0.022038149,
0.052897476,
-0.03276861,
0.016221497,
0.062162675,
0.0058684526,
-0.051091798,
-0.036113553,
0.024879871,
0.0009851673,
0.01675432,
-0.02416944,
-0.0015660924,
-0.03667598,
0.029808482,
0.025397893,
0.0002754306,
-0.03418947,
-0.00027866825,
-0.014068005,
0.047006823,
-0.020543283,
0.010264241,
-0.05091419,
0.020498881,
0.061689053,
-0.022689376,
-0.014711833,
-0.019314831,
-0.043277062,
0.038481656,
0.005609441,
-0.039902516,
-0.03003049,
0.0069562993,
-0.07631208,
0.049463727,
0.0099386275,
0.036231957,
0.0042699836,
-0.04227062,
0.02187534,
0.037712023,
-0.009354003,
-0.008118149,
-0.0048990105,
-0.000094180614,
0.024909472,
-0.007352216,
0.030074894,
0.00015841307,
0.036172755,
-0.0418266,
0.062695496,
-0.014223412,
0.006597384,
-0.026729949,
-0.017982773,
-0.028772438,
0.021505324,
0.038481656,
-0.011914512,
-0.030311704,
0.038925674,
-0.03578794,
-0.041471384,
-0.026789153,
0.04025773,
-0.000592488,
0.029482868,
0.049818944,
-0.0064308764,
0.05491036,
-0.015185453,
-0.02347381,
0.020602487,
-0.017390748,
0.0012663795,
0.030607717,
0.0001821172,
-0.019640444,
-0.0020369375,
0.0027122167,
-0.005701945,
-0.00060266344,
0.02394743,
-0.050529372,
-0.05929135,
0.0441355,
-0.0011794257,
-0.009272599,
0.0209281,
-0.019610843,
0.0021016905,
-0.0133945765,
0.0034762996,
-0.016798722,
-0.034988705,
0.019004017,
0.024361847,
0.056124013,
0.01907802,
-0.009383604,
-0.021801338,
0.04161939,
-0.033331033,
0.0137793925,
-0.029157255,
-0.04395789,
0.01696153,
-0.008473365,
-0.034692694,
0.000029398921,
-0.04623719,
-0.003911068,
0.03581754,
-0.012454736,
0.014112407,
-0.03350864,
-0.051535815,
0.046148386,
-0.054288734,
-0.043602675,
-0.05304548,
0.016887527,
0.010871068,
0.0061533647,
-0.0066380855,
-0.048013266,
-0.048723694,
-0.05946896,
0.03510711,
-0.03575834,
0.002677065,
-0.045230746,
-0.040553745,
-0.011988516,
0.017997574,
0.048516486,
-0.057071254,
0.031288546,
-0.023858625,
-0.016325101,
-0.05831451,
-0.022911385,
-0.017331546,
-0.004133078,
-0.017153937,
0.01583668,
0.009561211,
-0.013216969,
-0.008399361,
0.023814224,
0.0042107813,
0.02233416,
-0.048753295,
-0.041530587,
0.010382647,
-0.025945516,
-0.008125549,
0.018086378,
-0.044194702,
0.048753295,
-0.023281401,
0.04691802,
-0.02649314,
0.0007640829,
-0.021934543,
-0.05212784,
0.007137607,
-0.030548513,
0.005491036,
-0.0012386283,
0.018930014,
0.04301065,
0.017923571,
-0.020084463,
0.0209281,
-0.054051924,
-0.038452055,
0.008658373,
-0.014815438,
0.0076593296,
0.0028417222,
-0.023592215,
0.0302377,
-0.024213841,
0.01093767,
0.06411636,
-0.022704177,
0.0022145452,
-0.009909026,
0.023977032,
0.0019629344,
-0.012358531,
-0.012299329,
0.028402422,
-0.012025517,
-0.014327016,
-0.08542927,
-0.0372088,
-0.006390175,
0.0057796487,
0.035995148,
-0.030267302,
0.02066169,
0.013453779,
-0.03534392,
-0.001113748,
0.031288546,
0.011818308,
0.022482166,
0.028328419,
0.014119808,
-0.039606504,
0.043780282,
-0.0093096,
-0.020765293,
-0.015244655,
0.050529372,
-0.01347598,
-0.06133384,
0.025605101,
0.020809695,
-0.021194512,
-0.042033806,
0.022408163,
0.0030489312,
-0.025235085,
-0.001439362,
0.013512981,
-0.013594384,
-0.022200955,
-0.010353046,
0.046474,
0.003211738,
-0.032857414,
0.008517766,
-0.019566441,
-0.03741601,
-0.029867684,
0.030282103,
-0.008887783,
0.014852439,
-0.033390235,
-0.0051691225,
-0.059616964,
-0.010382647,
0.05952816,
0.011463093,
0.038511258,
0.013572183,
0.0012710047,
0.057840887,
-0.032531798,
0.018708006,
-0.008717575,
-0.03270941,
-0.043928288,
-0.017390748,
0.03421907,
0.0028861242,
0.01881161,
0.0029841783,
-0.027928801,
0.032472596,
0.038777668,
-0.030163698,
-0.074358396,
0.02298539,
-0.07098385,
-0.0020535884,
-0.0069748,
-0.026211927,
-0.013890398,
0.026996361,
0.014001402,
-0.0394881,
-0.0046214988,
0.034751896,
-0.021993745,
-0.039192084,
-0.061925862,
-0.037149597,
-0.035195913,
-0.04070175,
-0.011522296,
-0.039606504,
0.0054577347,
0.039132882,
-0.0092429975,
0.011766506,
0.0070969053,
0.032146983,
-0.018722806,
-0.0017603507,
-0.0012395533,
-0.015259456,
-0.036439165,
-0.021890141,
-0.038096838,
0.03371585,
0.020780094,
-0.005509537,
0.0054577347,
-0.005901754,
0.008029345,
-0.023148196,
-0.01583668,
0.04067215,
-0.029660476,
-0.02345901,
0.031732567,
0.011144879,
-0.061689053,
0.0021016905,
-0.011033875,
-0.004281084,
-0.037593618,
0.019166823,
0.045408353,
0.028239615,
0.0054281335,
0.011877511,
-0.0014476873,
0.027988004,
0.021224113,
0.034988705,
0.0103012435,
0.0050470172,
0.022023346,
-0.015037447,
-0.011751706,
0.048279677,
-0.038392853,
0.022615373,
-0.03202858,
-0.0255903,
-0.040376138,
0.028535627,
0.035728738,
0.056656837,
0.017050333,
-0.028728036,
-0.019344432,
-0.01604389,
-0.034929503,
-0.013350174,
-0.054525547,
-0.029630875,
-0.00044448161,
-0.052216645,
0.020706091,
0.00814035,
0.0012460286,
-0.015303859,
0.024613459,
0.012587941,
0.019625643,
0.003936969,
-0.013549983,
0.04600038,
-0.046414796,
-0.05603521,
-0.0084955655,
0.043928288,
-0.02394743,
-0.033834256,
0.0018778307,
0.02675955,
-0.008769377,
-0.06340592,
-0.03741601,
0.0016789472,
0.071457475,
0.02581231,
-0.025767908,
0.036646377,
-0.016606314,
0.03815604,
-0.06831974,
-0.039932117,
0.025679104,
-0.011463093,
0.03365665,
0.008110749,
0.0056279423,
0.01651751,
0.048161272,
-0.027514383,
0.0056353426,
0.035018306,
0.021312917,
0.022141753,
0.02021767,
0.00026409887,
0.036113553,
0.021712534,
0.024243442,
-0.00028491224,
0.011115278,
-0.012647144,
-0.015155852,
0.0027566187,
-0.017583156,
0.012684146,
-0.006371674,
0.0065825833,
0.013431578,
0.013372375,
-0.031051736,
-0.009405805,
0.019610843,
-0.003208038,
0.0085473675,
-0.0052246246,
-0.037800826,
0.006623285,
-0.024332246,
-0.06488599,
0.008110749,
0.0139347995,
0.026641145,
-0.013623986,
-0.02115011,
-0.019877255,
0.03093333,
0.025486697,
0.02908325,
0.026271129,
0.015881084,
0.009820222,
0.016413907,
0.008036746,
0.01070086,
-0.039221685,
0.016635915,
-0.027321976,
-0.014386219,
0.017642358,
-0.043365866,
-0.041471384,
-0.0013450078,
-0.04558596,
-0.049670935,
-0.061807457,
0.024687462,
-0.022008546,
0.038096838,
0.023799423,
-0.029616075,
-0.066129245,
0.0052653262,
-0.03202858,
0.018767208,
-0.0012053269,
0.046118785,
-0.0162955,
0.09034309,
0.034307875,
-0.012306729,
0.037119996,
0.025412694,
-0.050174158,
0.01324657,
0.010182838,
-0.012306729,
-0.014201211,
-0.02230456,
-0.043869086,
0.02345901,
-0.029468067,
-0.0047843056,
-0.039192084,
0.061748255,
0.0039480696,
-0.033982262,
-0.0034670492,
0.07234551,
0.04306985,
-0.011966315,
-0.01070826,
0.017627558,
-0.048309278,
-0.014800636,
-0.03741601,
0.053104684,
-0.0302377,
-0.045497157,
-0.021712534,
-0.04528995,
-0.027085165,
-0.0097832205,
-0.04369148,
-0.004839808,
0.025708705,
0.04742124,
0.016073491,
0.07110226,
0.0010147686,
-0.013927399,
0.023681019,
0.034781497,
0.009020988,
0.05718966,
0.07051023,
-0.00395547,
-0.014260413,
0.05023336,
0.0139422,
-0.04351387,
-0.015200254,
-0.026197126,
0.010649058,
-0.03741601,
-0.03448548,
-0.04528995,
-0.007851738,
-0.042596232,
-0.02159413,
-0.023769822,
0.008103348,
-0.037475213,
-0.027144367,
-0.02374022,
0.0060645607,
-0.00792574,
-0.013453779,
-0.00057028705,
-0.058758527,
0.2621489,
0.0651228,
0.016428707,
0.01694673,
0.029024048,
0.059557762,
0.03202858,
-0.032531798,
0.022644974,
-0.0027103666,
-0.03534392,
-0.031732567,
0.031969376,
-0.008014545,
-0.034041464,
0.0081329495,
-0.019240828,
-0.014793236,
0.0020480382,
-0.049878146,
-0.026389536,
0.019418435,
-0.030726122,
0.059024937,
0.025989918,
-0.008414162,
0.020306474,
-0.012846952,
-0.02002526,
-0.045941174,
0.007755534,
0.02298539,
0.021771736,
-0.009139393,
-0.004277384,
0.02721837,
-0.023917828,
-0.062162675,
0.03327183,
-0.029867684,
0.019936457,
0.013298372,
-0.0032653904,
-0.042862643,
0.009472407,
0.031525355,
-0.002140542,
0.03045971,
0.0013043061,
-0.041974604,
0.0861397,
-0.053163886,
0.0010526953,
0.006834194,
-0.04132338,
0.0029841783,
-0.05366711,
-0.045645162,
0.06831974,
0.05067738,
0.0068156933,
0.03575834,
-0.032857414,
-0.0038222645,
-0.031170141,
-0.00039082931,
-0.020602487,
0.05183183,
-0.0045289947,
0.009650015,
0.0001269617,
-0.034100667,
-0.021801338,
-0.015185453,
0.029157255,
0.037327204,
0.01722794,
0.009265198,
-0.014075405,
-0.026537541,
0.0030840826,
0.018278787,
-0.0005351355,
-0.039132882,
0.046622004,
0.024939073,
-0.059616964,
0.030341305,
0.018426793,
0.01648791,
0.044342708,
0.016857926,
0.034337476,
-0.012580541,
0.0063864747
] |
BetterTransformer also converts all attention operations to use the more memory-efficient scaled dot product attention (SDPA), and it calls optimized kernels like FlashAttention under the hood.
Before you start, make sure you have 🤗 Optimum installed.
Then you can enable BetterTransformer with the [PreTrainedModel.to_bettertransformer] method:
python
model = model.to_bettertransformer()
You can return the original Transformers model with the [~PreTrainedModel.reverse_bettertransformer] method. You should use this before saving your model to use the canonical Transformers modeling:
py
model = model.reverse_bettertransformer()
model.save_pretrained("saved_model")
bitsandbytes
bitsandbytes is a quantization library that includes support for 4-bit and 8-bit quantization. Quantization reduces your model size compared to its native full precision version, making it easier to fit large models onto GPUs with limited memory.
Make sure you have bitsandbytes and 🤗 Accelerate installed:
```bash
these versions support 8-bit and 4-bit
pip install bitsandbytes>=0.39.0 accelerate>=0.20.0
install Transformers
pip install transformers |
[
0.05069706,
-0.014916689,
-0.005792343,
-0.020624677,
-0.043779988,
-0.009349291,
0.027541747,
0.0040771347,
-0.022016527,
0.066640064,
0.011500332,
-0.039224844,
0.013222569,
-0.019710837,
0.009960862,
0.060397826,
0.008477628,
-0.05348076,
-0.03514771,
0.0009788638,
0.008505746,
0.0040138685,
-0.09172147,
-0.0030596084,
-0.007880117,
0.01951401,
0.031914122,
0.009131376,
0.079911835,
0.02242424,
-0.034950886,
-0.022339886,
0.0087939575,
-0.028750828,
-0.055224083,
-0.01612577,
0.0045973207,
-0.020877741,
-0.04605756,
-0.038184475,
0.047885243,
-0.015169752,
0.027373038,
-0.029720904,
-0.047491588,
-0.0076129944,
-0.01090282,
-0.029439723,
0.014220764,
-0.059666757,
-0.037369046,
0.011774483,
-0.00498746,
0.009426616,
-0.037537757,
-0.026923146,
-0.010256102,
0.016645957,
-0.017700387,
-0.00061684236,
0.05575833,
0.0034884103,
0.006126246,
-0.07541293,
0.009011873,
0.07299477,
-0.0011994157,
-0.018417401,
-0.004664101,
0.015450934,
-0.02809005,
-0.016645957,
-0.019232828,
-0.027907282,
-0.008519805,
0.0010561887,
0.045101542,
-0.0037748641,
-0.0074161673,
0.006737816,
0.03284202,
-0.005946993,
-0.013328012,
-0.004716823,
-0.018333046,
-0.061016425,
0.05376194,
-0.028300937,
0.008843164,
-0.018529873,
-0.032223422,
0.008062885,
0.008660397,
0.038437538,
0.012182197,
0.022072762,
0.0085479235,
0.04189607,
0.035681956,
-0.028722709,
-0.005497102,
0.12405736,
0.0026237767,
0.024448749,
-0.022846013,
0.0041509448,
0.0024445234,
0.047885243,
-0.025545357,
-0.022663245,
0.016406951,
0.03225154,
0.008477628,
0.013848199,
0.015268166,
0.028427469,
0.009588296,
0.024336275,
-0.033376265,
-0.012688324,
0.006245748,
-0.0020772298,
0.03084563,
-0.04867255,
-0.02442063,
-0.034754056,
-0.049628567,
0.053087104,
-0.032448366,
-0.021285454,
-0.0022670275,
-0.03576631,
-0.025517238,
0.06315341,
0.042149134,
-0.041164998,
0.024209743,
0.045663908,
0.01643507,
-0.017883155,
0.017166141,
0.00055621256,
-0.01719426,
0.074456915,
-0.00024867005,
0.021721285,
-0.0055884863,
-0.06230986,
-0.033066966,
0.03607561,
-0.03933732,
-0.019106297,
-0.019246887,
0.021088626,
-0.0150432205,
-0.010579461,
-0.023858266,
0.024392512,
-0.002848722,
-0.021791581,
0.023942621,
-0.01412235,
-0.0012767406,
0.036750447,
-0.011423007,
0.030198913,
-0.039112374,
-0.004038472,
0.0075919055,
-0.010656786,
0.057445418,
0.010952027,
-0.008976726,
0.048616316,
0.043583162,
0.02856806,
0.034500994,
0.016786547,
0.0011343923,
0.014986984,
-0.022761658,
0.015957061,
0.046676163,
0.0141153205,
0.017616034,
-0.0150432205,
-0.034529112,
-0.013124156,
-0.024237862,
0.012336846,
0.007310724,
0.03635679,
-0.014277,
0.03840942,
-0.023998857,
0.02165099,
-0.038606245,
-0.0034146002,
-0.0074161673,
-0.051343776,
0.0028434498,
0.037144102,
-0.042458434,
0.030676922,
-0.026220193,
0.060735244,
-0.008758809,
0.0623661,
-0.025362588,
-0.009518,
0.07136391,
0.0010403723,
-0.028286878,
-0.031407993,
0.038493775,
0.02426598,
-0.017447324,
-0.007978531,
0.0016642441,
-0.00025042743,
0.035597604,
0.018079983,
0.031548586,
-0.0035815518,
0.007296665,
-0.026487315,
-0.0034075705,
0.02657167,
0.053818177,
0.03989968,
-0.008351096,
0.034472875,
-0.01629448,
0.06495297,
0.0044778185,
-0.008505746,
0.045888852,
0.02381609,
-0.03697539,
0.011802602,
-0.00092262746,
0.002205519,
-0.005873183,
-0.010558372,
0.020821504,
0.014494916,
-0.008576042,
0.0006858197,
-0.025939012,
0.04344257,
-0.0077114077,
0.03393863,
-0.0073388424,
-0.0022353944,
-0.063040935,
-0.015324403,
0.027668279,
0.02994585,
-0.03438852,
-0.020301318,
-0.018712642,
0.042767737,
-0.015001044,
-0.051512487,
0.008119121,
0.080699146,
0.00049470406,
0.019162532,
0.046423096,
-0.0073177535,
-0.0006858197,
0.00027832593,
-0.051315658,
-0.013876316,
0.00004393464,
-0.006358221,
0.009286026,
-0.02104645,
0.011423007,
-0.01888135,
0.028343115,
0.016969316,
-0.019865487,
0.057698485,
0.031267405,
-0.019275006,
-0.07844969,
0.022325827,
-0.036497384,
0.04898185,
-0.0037221427,
-0.0065831663,
-0.009250877,
-0.043077037,
0.036947273,
0.011908045,
-0.008203476,
0.019921724,
0.00046570718,
-0.007957442,
-0.030620687,
0.008337037,
0.019935781,
0.012231404,
-0.02152446,
0.010340457,
0.013932553,
-0.0017802316,
0.04099629,
0.020526264,
-0.0420929,
0.026163956,
0.0028188464,
0.057754718,
-0.02503923,
0.042486552,
0.03410734,
-0.018501755,
-0.0052756714,
-0.023858266,
-0.014874511,
-0.01612577,
-0.020793386,
-0.022607008,
-0.06416566,
0.05589892,
-0.04945986,
-0.046338744,
0.026445137,
-0.02165099,
-0.032645196,
-0.020919917,
-0.04650745,
0.049403623,
-0.008498717,
0.015141634,
-0.04917868,
-0.007894176,
-0.03177353,
0.012646147,
0.018684523,
-0.011458154,
0.024828343,
0.027246507,
0.011191031,
-0.009187612,
0.047407232,
-0.015591525,
-0.008175357,
-0.004470789,
0.02980526,
-0.019218769,
0.023099076,
-0.010094423,
-0.013236628,
0.021608813,
-0.026782556,
0.021018332,
0.021144863,
-0.0025956584,
-0.00414743,
0.013545928,
-0.010621638,
0.057361066,
-0.003655362,
-0.0020315377,
-0.009075139,
0.015085398,
0.022438299,
-0.0014155741,
0.011430035,
0.00844951,
-0.034641586,
0.005651752,
0.03168918,
-0.011226179,
0.03627244,
0.044173643,
0.06467179,
-0.021552578,
-0.012161108,
0.02516576,
-0.006358221,
0.03655362,
0.04164301,
0.064221896,
-0.008224565,
0.015802411,
-0.007008454,
-0.016196065,
0.01843146,
-0.015029161,
-0.035738192,
-0.010825495,
-0.02428004,
-0.029973969,
0.020835564,
0.032813903,
0.014579271,
-0.0138692865,
0.035653837,
-0.04133371,
0.0023461098,
0.018656405,
0.009686709,
-0.0048468695,
-0.033376265,
0.052187324,
-0.015619643,
0.00058389135,
-0.048785023,
-0.029242896,
-0.023366198,
0.038493775,
0.0066780653,
-0.0016519425,
-0.060116645,
-0.025924953,
-0.041418064,
0.019570246,
-0.014480857,
0.02395668,
-0.01951401,
0.024322215,
0.033123203,
-0.054717958,
0.012336846,
-0.06450308,
0.0011062742,
0.028230641,
-0.0034567774,
-0.030283269,
-0.022958485,
-0.026093662,
-0.057979666,
0.04763218,
0.005328393,
-0.021187041,
-0.004365346,
-0.019007882,
-0.003586824,
-0.00937038,
0.0032617077,
-0.021875937,
0.0076622013,
0.0054760133,
0.039056137,
-0.032420248,
0.005163199,
0.011872897,
0.038578127,
-0.03728469,
0.00453054,
-0.025685947,
-0.010263132,
0.0155352885,
-0.028680533,
0.0092297895,
0.034725938,
0.004917165,
-0.016786547,
-0.01719426,
0.0208918,
-0.042458434,
-0.0024585824,
0.009581266,
0.027612042,
-0.025840597,
0.045973208,
0.021018332,
-0.020976154,
0.05331205,
0.025685947,
-0.03056445,
0.025714066,
-0.01964054,
0.04392058,
-0.012786738,
-0.012097842,
0.009447705,
-0.032364015,
0.057529774,
-0.008920489,
-0.0038135266,
0.031295523,
-0.066246405,
-0.033516858,
0.014579271,
-0.02457528,
0.029692786,
-0.012041606,
-0.026093662,
-0.008829105,
-0.0112753855,
-0.014354326,
-0.013482662,
-0.036778565,
0.012934358,
0.051990494,
0.017067729,
0.023197489,
-0.0014006363,
-0.042936444,
0.03455723,
-0.041980427,
0.00013070555,
-0.03168918,
-0.025826538,
-0.0033443049,
0.0034796235,
-0.03253272,
-0.016477248,
-0.00016936804,
0.020034196,
-0.021440104,
-0.024167566,
0.020849623,
-0.061185136,
-0.045973208,
0.04794148,
-0.04279585,
-0.050415877,
-0.027865106,
0.028933596,
0.004976916,
-0.009862448,
0.0024954875,
-0.06888951,
-0.04681675,
-0.03227966,
0.04543896,
-0.02474399,
0.03132364,
-0.022930367,
-0.053199574,
0.0003303885,
0.046001326,
0.04279585,
-0.03399487,
0.04712605,
-0.016041415,
0.028610237,
-0.024490925,
-0.016955256,
-0.073275946,
-0.021932172,
0.027682338,
0.01905006,
-0.035232067,
-0.00077061355,
-0.000110660374,
0.029299133,
0.032673314,
0.030451978,
-0.032757666,
-0.017292675,
-0.014178587,
-0.010389663,
-0.009412557,
0.021735344,
-0.056039512,
0.029749023,
-0.021847818,
0.024926757,
-0.046619926,
-0.02228365,
-0.0018645861,
0.00097095553,
0.03514771,
-0.049403623,
0.016660016,
-0.01705367,
-0.0021932172,
0.01321554,
0.0396185,
-0.012772678,
0.009271966,
-0.0282447,
-0.06708995,
0.04212102,
-0.049516097,
-0.053958766,
-0.02302878,
0.00859713,
0.017756624,
-0.011929133,
0.009447705,
0.056236338,
0.0036307585,
-0.012969506,
0.0032353469,
0.03697539,
-0.0057607098,
0.028933596,
0.0056622964,
0.014354326,
-0.023886384,
-0.021454163,
-0.052243557,
-0.049572334,
-0.025292294,
-0.003122874,
0.049712922,
0.01105747,
0.028511824,
-0.026951265,
-0.046648044,
-0.01905006,
0.0396185,
0.008554953,
0.014354326,
0.037059747,
0.03225154,
-0.044932835,
0.038465656,
-0.043526925,
-0.034838412,
-0.014804216,
0.025123585,
0.0084916875,
-0.017981568,
0.04254279,
0.0062281745,
-0.056433167,
-0.078899585,
-0.0066569764,
-0.0025411795,
-0.0026132322,
-0.010846584,
0.010340457,
-0.025517238,
-0.038184475,
0.008062885,
0.056883056,
-0.023225607,
-0.012421201,
0.017264556,
-0.031717297,
-0.037115984,
0.03287014,
0.04006839,
-0.0005346846,
-0.007950412,
-0.020694973,
-0.004867958,
-0.032729547,
-0.010930939,
0.059666757,
-0.043526925,
-0.005546309,
-0.0062000565,
0.02674038,
0.046085678,
-0.031126814,
0.049234916,
-0.007634083,
-0.066246405,
-0.046085678,
-0.05005034,
0.033066966,
0.0094195865,
0.016238242,
0.02980526,
0.020371614,
0.040040273,
0.038465656,
-0.040462047,
-0.05786719,
0.027527688,
-0.05379006,
0.003286311,
0.038662482,
-0.018262751,
0.01598518,
0.038634364,
0.018543933,
-0.026037425,
0.03166106,
-0.010220954,
-0.011943192,
-0.010930939,
-0.058035903,
-0.010073334,
-0.044904716,
-0.0105935205,
-0.010298279,
-0.044679772,
0.00055269775,
0.051315658,
-0.022508595,
0.0006234325,
-0.0057958574,
0.041164998,
0.013468603,
0.023759853,
-0.011774483,
0.011781513,
-0.023324022,
-0.033854276,
-0.084129564,
0.06776479,
0.02383015,
-0.012723472,
0.02165099,
-0.0146636255,
0.011922103,
-0.046929225,
-0.0069979094,
0.033516858,
0.004562173,
-0.009574236,
0.0011229694,
0.028736768,
-0.06529039,
0.032223422,
-0.022382062,
-0.035710074,
0.011753394,
0.022930367,
-0.005085874,
0.05589892,
0.011943192,
0.017700387,
-0.007402108,
0.005774769,
0.030198913,
0.03205471,
-0.003641303,
0.030592568,
-0.009300085,
-0.0202732,
0.035063356,
0.037144102,
-0.07636895,
0.008203476,
-0.0102912495,
0.014579271,
-0.0033003702,
0.035569485,
0.023520848,
0.044876598,
0.019907665,
0.0026993442,
-0.028061932,
-0.03115493,
-0.050893888,
0.003372423,
-0.063040935,
-0.015493112,
-0.0017547494,
-0.058429554,
-0.0048749875,
0.0085479235,
-0.013609194,
0.0023671985,
0.048897497,
-0.035288304,
0.031717297,
0.024209743,
-0.013264746,
0.021327632,
-0.022972545,
-0.06619017,
-0.0019436685,
0.008969696,
-0.07816851,
-0.0035516762,
-0.0020789872,
0.049094323,
0.039056137,
-0.02366144,
-0.044314235,
-0.03520395,
-0.009300085,
0.0060559507,
-0.04504531,
0.004519996,
-0.034922767,
0.0064742086,
-0.05173743,
0.005423292,
-0.026613846,
0.032195304,
0.01597112,
0.02595307,
0.018979764,
0.0028065448,
0.01703961,
-0.032926377,
0.035850666,
0.022157118,
0.0076411124,
0.008772869,
0.031914122,
-0.0016686376,
0.03885931,
0.014227794,
0.026445137,
-0.013166333,
0.03163294,
0.030676922,
-0.03393863,
-0.03624432,
0.02966467,
0.010474018,
-0.017545737,
0.0056904145,
0.008041796,
-0.008674455,
-0.01703961,
-0.01074817,
-0.00982027,
-0.013946612,
-0.008554953,
-0.015436875,
-0.03950603,
0.021693168,
0.0070717195,
-0.034950886,
-0.010066304,
0.017911274,
0.040968172,
-0.03205471,
0.010017098,
-0.0069627617,
0.034725938,
0.046929225,
0.029242896,
0.009475823,
-0.010452929,
0.06568404,
-0.0051702284,
0.050472114,
0.020188846,
-0.0055427942,
0.010059275,
-0.04102441,
-0.05528032,
0.025461001,
-0.01198537,
-0.002019236,
-0.022775717,
-0.02980526,
0.017798802,
-0.038015764,
0.017433265,
-0.061972447,
0.028061932,
0.04220537,
-0.003929514,
-0.0032511633,
0.029017951,
-0.0067975675,
0.039534144,
0.02966467,
0.06332212,
0.023099076,
0.05671435,
0.060397826,
0.018248692,
0.025981188,
-0.016674073,
-0.048756905,
0.013018712,
0.023338081,
-0.0008619976,
0.043498807,
0.006066495,
-0.041052528,
0.05176555,
-0.031829767,
-0.011113706,
-0.02380203,
0.0064074276,
-0.03545701,
-0.028905477,
0.0074161673,
0.09616414,
0.013278806,
-0.0187267,
-0.030648805,
-0.007159589,
-0.026079603,
0.025939012,
-0.026768496,
0.019598365,
-0.0013145244,
-0.02442063,
-0.014326207,
-0.036806684,
0.0012811341,
0.005057756,
-0.02794946,
-0.013201481,
0.009735916,
0.03070504,
0.0021000758,
0.045579553,
-0.002242424,
-0.022030586,
0.03928108,
0.010115512,
0.021749403,
0.030142678,
0.06439061,
0.008259712,
-0.011669041,
0.03132364,
0.0060629803,
-0.011303504,
-0.008730692,
-0.028877359,
0.0066288584,
-0.013046831,
-0.028427469,
0.0059821405,
0.0079433825,
-0.019767072,
-0.030733159,
-0.01642101,
-0.006048921,
-0.06264728,
0.016856842,
-0.021566635,
-0.0067975675,
-0.01813622,
0.00676242,
-0.010944997,
-0.06692124,
0.23371822,
0.033207558,
-0.008484658,
-0.02471587,
0.01919065,
0.06371577,
0.036637973,
-0.020413792,
0.016603779,
-0.06821468,
-0.017728506,
-0.0187267,
0.012800797,
0.022592949,
0.009546119,
0.026149897,
-0.066246405,
0.022396121,
-0.009096228,
-0.022789776,
-0.029242896,
0.011886956,
0.0065831663,
0.07423197,
0.012329817,
0.01994984,
0.006066495,
-0.02918666,
-0.0058556087,
-0.019331241,
0.025995247,
-0.0069170697,
0.026248312,
-0.047857124,
-0.027134033,
0.00921573,
-0.029299133,
-0.051624957,
-0.002752066,
0.0031896548,
-0.009862448,
-0.020301318,
-0.01765821,
0.0030016145,
-0.010670845,
0.03700351,
-0.01994984,
0.045270253,
0.033741802,
-0.06349082,
0.080530435,
-0.057220474,
0.015999239,
-0.028821124,
-0.052890275,
0.011549538,
-0.0636033,
-0.06281599,
-0.0076551717,
0.024519043,
0.027583923,
-0.003286311,
-0.020905858,
0.029214777,
0.036159966,
0.02288819,
-0.013349101,
0.0025622682,
0.0024533102,
-0.001481476,
0.027569866,
0.007500522,
-0.030480096,
-0.040602636,
0.016519424,
0.004316139,
0.005634178,
0.014635507,
0.027401157,
-0.011500332,
-0.008540894,
-0.023464613,
0.02657167,
-0.04653557,
0.008674455,
0.034810293,
-0.023253726,
0.0045727175,
0.0130538605,
-0.0052967602,
-0.012913269,
0.036188085,
0.02134169,
-0.0055814567,
-0.0033056422
] | To load a model in 4-bit for inference with multiple GPUs, you can control how much GPU RAM you want to allocate to each GPU. For example, to distribute 600MB of memory to the first GPU and 1GB of memory to the second GPU:
py
max_memory_mapping = {0: "600MB", 1: "1GB"}
model_name = "bigscience/bloom-3b"
model_4bit = AutoModelForCausalLM.from_pretrained(
model_name, device_map="auto", load_in_4bit=True, max_memory=max_memory_mapping
)
8-bit |
[
0.009225643,
0.0037907346,
-0.014263561,
-0.034373075,
-0.00076280185,
-0.016835216,
0.032321367,
-0.026124097,
-0.012246989,
0.03358612,
0.003427119,
-0.010497418,
-0.0023432993,
-0.050421335,
0.030916091,
0.020882415,
0.02998861,
-0.06486758,
-0.0074128355,
0.007820366,
-0.027037527,
0.00639401,
-0.06942068,
-0.046851933,
-0.027571533,
0.035890773,
0.034232546,
-0.012183751,
0.07268092,
0.05303515,
-0.03532866,
-0.0049606273,
0.04825721,
-0.040387657,
-0.054075055,
-0.038560797,
0.013975479,
0.0017188293,
-0.0104833655,
-0.030635037,
0.001617825,
-0.014671091,
0.044687804,
-0.024353448,
-0.08555326,
0.0043704114,
0.022161217,
-0.03049451,
0.010904949,
-0.050168384,
-0.01861992,
0.008635427,
-0.01410898,
0.017270854,
-0.0034200926,
0.0051784455,
0.039347753,
0.005385724,
-0.021795845,
0.024746927,
0.045783922,
0.008431662,
0.007693891,
-0.050252702,
0.019139871,
0.029651342,
-0.02821796,
-0.020264093,
-0.025688462,
-0.015064568,
-0.021374261,
-0.0040963823,
-0.02400213,
-0.026981317,
-0.037183627,
-0.00041499583,
-0.0076868646,
-0.005448961,
-0.041315142,
0.019772246,
0.007159886,
0.011818379,
-0.042214517,
0.02730453,
-0.011178978,
-0.030382087,
0.03639667,
0.00019520175,
-0.0005704546,
-0.020025196,
0.036649622,
0.042045884,
0.018507497,
0.049240902,
0.028836282,
0.017411381,
-0.011066556,
0.041792937,
0.017580014,
0.0010056513,
0.01428464,
0.066104226,
-0.0150505155,
0.046655193,
-0.03566593,
0.014333825,
-0.007616601,
0.015373729,
-0.015556416,
-0.026714314,
0.019701982,
-0.022667117,
0.0006192001,
0.009028904,
0.0047990205,
0.030944198,
-0.013153392,
0.030831775,
-0.017594067,
0.0011681365,
-0.023355702,
0.008761901,
0.007349598,
-0.008895403,
-0.0007821244,
-0.04471591,
0.010750368,
0.020474885,
-0.030410193,
0.0043809507,
-0.02551983,
0.00060163415,
0.022990331,
0.04080924,
-0.0023257332,
-0.038532693,
-0.008740823,
0.014460299,
-0.006959634,
0.014017637,
-0.0044793203,
-0.05039323,
0.033417486,
0.08010078,
-0.006232403,
0.027529374,
-0.010792526,
-0.027051581,
-0.013715503,
-0.009865044,
0.017439486,
-0.0044125696,
-0.011677851,
0.03811111,
-0.05913405,
-0.024128605,
-0.032237053,
0.050983448,
-0.0014412871,
-0.009696411,
0.028288225,
0.005958374,
0.0044301352,
0.049044166,
-0.022020688,
-0.0012752888,
-0.015247255,
-0.019912774,
0.029398393,
-0.0073917564,
-0.03968502,
-0.0040436843,
-0.007616601,
-0.025843043,
0.046008766,
0.043957062,
0.046261717,
-0.021107258,
0.013265814,
0.002826363,
-0.00274029,
-0.013202577,
0.0027648823,
0.02365081,
-0.026868895,
-0.0062640216,
0.012036197,
0.0035729166,
-0.027768271,
0.009260775,
0.006309693,
0.07279334,
-0.08454146,
-0.001809294,
0.008698664,
0.028246066,
-0.03648099,
0.0027859614,
0.01989872,
-0.0720626,
-0.047807522,
0.0026454339,
0.008101421,
0.007033411,
-0.013469579,
-0.032799162,
0.032602426,
0.04094977,
-0.019378768,
0.012422648,
-0.0025699001,
-0.007124754,
0.0018707749,
0.005410316,
0.041736726,
0.029791871,
0.017790806,
0.029848082,
0.017832965,
0.031393886,
0.011979986,
-0.0020622439,
0.055930022,
0.030747458,
0.026644051,
0.00085765804,
-0.005814333,
0.01766433,
0.040331446,
0.0050308914,
0.0045003993,
0.032546215,
0.04044387,
0.031984102,
0.03740847,
0.06385578,
0.048285313,
0.012085381,
0.011944854,
-0.0143408505,
-0.008747849,
0.0035430545,
0.020868363,
-0.013560922,
0.02501393,
0.014333825,
-0.024479924,
-0.022906013,
-0.037689526,
0.014727302,
-0.027585587,
0.02648947,
0.020643517,
0.0072512287,
-0.076671906,
0.0056351605,
-0.00058494654,
0.024395607,
-0.06329367,
0.0010583492,
0.0084527405,
0.0139544,
-0.009914229,
0.012211856,
0.036846362,
0.039853655,
-0.015233202,
0.00497468,
-0.022119058,
-0.010384996,
-0.0380549,
-0.03608751,
-0.056885608,
0.00890243,
-0.053569157,
-0.005438422,
0.0102796005,
-0.06492379,
0.024648556,
-0.025955465,
0.015992051,
0.01562668,
-0.003197005,
0.03886996,
0.071950175,
0.01004773,
-0.033333167,
0.054918222,
-0.019294452,
0.036733937,
-0.019013397,
-0.0064221155,
0.002719211,
-0.009548857,
0.020221936,
0.018198336,
-0.04094977,
-0.017931333,
-0.039572597,
-0.021795845,
-0.021697475,
0.002035895,
0.014474352,
-0.0018672617,
-0.020390568,
0.027515322,
0.008122501,
-0.05466527,
0.04283284,
0.015415887,
-0.031703047,
0.005814333,
-0.017060062,
0.040584397,
-0.021655317,
0.084372826,
0.05913405,
-0.0037872212,
-0.0034288757,
-0.016160684,
0.01070821,
0.031703047,
-0.0047076778,
-0.060483117,
-0.03465413,
0.05913405,
-0.01578126,
-0.06475516,
-0.009485619,
-0.014094927,
-0.063012615,
0.033305064,
-0.0032532162,
0.04699246,
0.0077501023,
0.01403169,
0.0017715272,
-0.0074971523,
0.00490793,
-0.0077009173,
0.01861992,
-0.03898238,
-0.015345624,
0.06323746,
0.013026917,
0.017987544,
0.016483897,
-0.009640199,
-0.004419596,
-0.014488405,
0.0002749073,
0.031197147,
-0.010392022,
-0.0059759403,
0.012239962,
0.039769337,
-0.05806604,
0.0121064605,
0.052276302,
0.020081406,
0.07346787,
0.029707555,
0.035834562,
-0.038504586,
-0.036818255,
-0.014270587,
-0.015092674,
0.012183751,
0.02582899,
-0.051995244,
0.017959438,
0.011509218,
-0.03532866,
0.048763108,
0.03440118,
-0.030719353,
0.025154456,
0.011263294,
0.038279742,
-0.06306883,
-0.037633315,
-0.030353982,
0.037745737,
0.016497951,
0.00044946902,
-0.0072652814,
-0.014298692,
-0.039769337,
-0.034935184,
-0.003948828,
-0.0116989305,
0.0031284976,
-0.019392822,
-0.014558669,
0.02582899,
-0.03715552,
0.0263911,
0.021374261,
0.02821796,
-0.011326532,
0.023664864,
0.027838536,
0.024241026,
0.06368715,
0.0065696696,
-0.02034841,
-0.04182104,
0.047666993,
0.01253507,
-0.0033515855,
-0.038448375,
-0.004163133,
0.0040612505,
0.01177622,
-0.005575436,
-0.011073582,
-0.033164535,
0.005522738,
-0.0026015188,
0.050871026,
-0.034878973,
0.017818911,
-0.055058748,
0.009548857,
0.072343655,
-0.0154580455,
-0.008839192,
-0.022090953,
-0.036368567,
0.043563586,
-0.027164003,
-0.015401835,
-0.040584397,
-0.019055555,
-0.034626022,
0.03490708,
0.06481137,
-0.0063132066,
0.0049254955,
-0.044884544,
0.01949119,
-0.0043001473,
-0.0033673947,
-0.015598574,
-0.0032321368,
-0.015710996,
0.016020156,
0.007433915,
0.045109387,
-0.03608751,
0.031084726,
-0.054974433,
-0.008333292,
-0.022695223,
-0.011094661,
-0.034035806,
-0.011333559,
-0.0011813109,
0.03968502,
0.05446853,
0.0037415498,
-0.015219149,
0.04800426,
-0.012738835,
-0.042860944,
0.022596853,
0.016259054,
-0.003966394,
0.029398393,
0.051517453,
-0.008206817,
0.032658637,
-0.011565429,
-0.013968453,
0.020025196,
-0.017537856,
-0.01811402,
0.028639544,
0.025042035,
-0.07048869,
-0.031140937,
0.007145833,
-0.037689526,
0.009921255,
-0.009984492,
-0.022343902,
-0.043676008,
0.03628425,
-0.009218616,
0.019814404,
0.0012190777,
0.022891961,
0.034148227,
-0.02497177,
0.019167976,
-0.008326266,
-0.03338938,
0.013631186,
0.06498001,
0.04912848,
0.06295641,
-0.036115617,
0.0051643928,
-0.021233734,
-0.024985824,
0.0021887189,
-0.026138151,
-0.008733796,
-0.0067383028,
-0.0051257475,
-0.0070263846,
-0.008178712,
0.0031284976,
-0.0073004137,
0.030353982,
-0.024142656,
-0.003123228,
0.004862258,
-0.030775564,
0.048959848,
-0.008951614,
-0.078302026,
0.004788481,
0.012900442,
-0.04370411,
0.007328519,
0.010546603,
-0.060426906,
-0.036509093,
-0.050055962,
0.0029686475,
-0.04724541,
-0.009120247,
-0.023383807,
0.007036924,
-0.007258255,
0.024297237,
0.03566593,
-0.0024328856,
0.006555617,
-0.015809365,
-0.0400785,
-0.039966077,
0.0027385333,
-0.017017903,
-0.015008357,
-0.010715236,
0.0125139905,
0.009035931,
-0.039713126,
0.006650473,
0.02903302,
0.019800352,
0.031450097,
-0.018746395,
-0.04806047,
0.045868237,
0.00085502316,
-0.011460033,
0.020334357,
-0.051180184,
0.021079153,
-0.009120247,
0.018156178,
-0.041596197,
-0.0084527405,
-0.024859348,
-0.02831633,
0.013905215,
-0.048903637,
0.0058037937,
0.00022418558,
-0.0123102255,
0.06267535,
0.028344436,
-0.040106602,
0.00024043409,
-0.051601768,
-0.058740575,
0.034738444,
-0.002248443,
-0.017411381,
-0.018563708,
-0.010054756,
0.034541707,
-0.026447311,
0.024704767,
0.039600704,
-0.005631647,
-0.05952753,
-0.0085019255,
-0.005066023,
-0.007672812,
0.021275893,
0.019238241,
-0.007651733,
0.007616601,
-0.005536791,
-0.05851573,
-0.051461242,
-0.005027378,
0.021992583,
0.023032488,
-0.04302958,
0.026967265,
-0.012211856,
-0.049971648,
-0.02334165,
0.023468124,
0.0013262301,
-0.0027701522,
-0.0012085382,
-0.005066023,
0.00023845793,
0.014347877,
-0.03572214,
-0.04887553,
-0.013343104,
0.07211881,
-0.029061126,
-0.031028515,
-0.008635427,
0.017903227,
-0.04272042,
-0.024423713,
-0.010384996,
0.031956,
-0.028751966,
-0.031365782,
0.02730453,
-0.007862524,
-0.003952341,
-0.0013631186,
0.026615944,
0.050618075,
-0.017678384,
0.048032366,
0.00979478,
-0.024283186,
0.0068612644,
0.053400524,
0.012717756,
-0.027852587,
0.0041596196,
0.059190262,
-0.047020566,
-0.024086446,
0.045980662,
-0.053456735,
0.043928955,
0.057026137,
0.030887986,
0.061494917,
-0.029426498,
0.009092142,
0.04114651,
-0.016273107,
-0.025337143,
-0.018704236,
0.017650278,
0.033670433,
0.037830055,
-0.058628153,
-0.010701183,
0.031393886,
-0.005726503,
-0.033164535,
-0.0410903,
-0.0029739172,
-0.074648306,
-0.015486152,
-0.004493373,
-0.025182562,
-0.013736581,
0.028007168,
0.00037371583,
-0.05368158,
-0.010911975,
0.036256146,
-0.035975087,
0.011972959,
-0.022765486,
-0.0027016448,
-0.032349475,
-0.027009422,
0.011551376,
-0.023903761,
0.003297131,
0.0016187034,
-0.000060602568,
-0.008234923,
0.035750244,
0.05542412,
0.005427882,
0.0010513228,
-0.039207228,
-0.02334165,
-0.0034113098,
0.007511205,
-0.041399457,
0.008572189,
0.022119058,
0.011825405,
0.0116497455,
0.048285313,
-0.0077571287,
-0.047470253,
0.014853777,
0.0033586118,
-0.0060813357,
-0.051489346,
-0.0025049062,
-0.017931333,
-0.045783922,
0.020306252,
-0.0011909722,
-0.0040507107,
-0.03490708,
-0.0077922605,
0.019505244,
0.04359169,
-0.016624426,
0.038645115,
-0.024732873,
-0.0018321298,
0.033276957,
0.032180842,
0.039544493,
-0.010539576,
0.023482177,
-0.020980785,
-0.03085988,
0.03740847,
-0.043113895,
0.020896468,
0.01583747,
-0.05562086,
-0.036312357,
0.048201,
0.02501393,
0.041539986,
0.003414823,
-0.018886922,
-0.03861701,
-0.028414698,
-0.024620451,
-0.0018690183,
-0.07009521,
-0.04988733,
0.029426498,
-0.015359676,
0.014094927,
0.01086279,
0.010384996,
0.021065101,
0.0097737005,
0.030916091,
0.013715503,
0.02466261,
-0.013912241,
0.04019092,
-0.035975087,
-0.012837204,
-0.02349623,
0.05623918,
-0.03822353,
-0.060764175,
-0.000054783843,
-0.013293919,
-0.015640732,
-0.032518107,
-0.02283575,
0.028358487,
0.067621924,
0.02826012,
-0.037549,
0.009443461,
-0.028021222,
0.04730162,
-0.016779006,
0.009492646,
0.016708743,
0.02223148,
0.014158165,
0.032799162,
-0.0041771857,
0.042326942,
0.052191984,
0.009035931,
0.031225253,
0.0436479,
0.054890115,
0.040612504,
-0.009204564,
0.004609308,
0.008017105,
0.054833904,
0.017594067,
0.020727834,
0.0066223675,
0.027557481,
0.0017197076,
0.03445739,
-0.017186537,
0.0004988733,
-0.021697475,
-0.010272575,
-0.014713249,
0.049044166,
0.0064642737,
0.019954933,
0.021289945,
-0.036846362,
-0.031956,
0.03257432,
-0.031112831,
0.054833904,
-0.043226317,
-0.09943739,
-0.044125695,
0.037549,
0.040303342,
-0.005842439,
-0.0048271264,
-0.0008774198,
0.024859348,
0.028035274,
0.016483897,
-0.005512199,
0.0035729166,
0.03243379,
-0.032208946,
-0.0020218422,
0.0130690755,
-0.0077219964,
0.023060594,
-0.025913306,
-0.02724832,
0.021079153,
-0.027192108,
-0.029426498,
0.0074971523,
-0.04730162,
-0.046936247,
-0.066385284,
0.058740575,
-0.03156252,
-0.012865311,
0.012429674,
-0.018844763,
-0.04836963,
0.012352384,
-0.033670433,
0.009324012,
0.017088167,
0.030129137,
-0.0127669405,
0.08673369,
0.054440428,
0.023201121,
0.04553097,
0.030072926,
-0.04724541,
0.020559201,
-0.010595788,
-0.024887454,
-0.0063483384,
-0.0041771857,
-0.040275235,
0.07807718,
-0.0134485,
0.024704767,
-0.007001792,
0.003857485,
0.05441232,
-0.049044166,
0.012724782,
0.017931333,
-0.0036396673,
-0.020362463,
-0.000013002928,
0.022512536,
-0.023988077,
-0.03743658,
-0.031506307,
0.033333167,
0.007286361,
-0.0035377846,
-0.011467059,
-0.038841855,
-0.038701326,
-0.028189855,
-0.012724782,
0.0029563513,
0.0055403044,
0.0390667,
-0.014404088,
0.048285313,
-0.016273107,
0.0075603896,
0.051686086,
0.030522615,
0.001750448,
0.073805146,
0.06784677,
0.03313643,
-0.006545077,
0.0057510957,
0.003709931,
-0.02771206,
-0.0048727975,
-0.040724926,
0.05095534,
-0.04851016,
-0.026475416,
0.012577228,
0.020896468,
-0.01943498,
-0.037745737,
-0.051742297,
-0.04662709,
-0.040331446,
-0.0047076778,
-0.039488282,
0.042748522,
-0.01679306,
-0.008066289,
0.013518764,
-0.04201778,
0.23226416,
0.05455285,
0.014994305,
0.015148885,
0.000609978,
0.043760322,
0.0020200855,
-0.003966394,
0.020123566,
-0.04378843,
-0.024831243,
-0.016483897,
0.026517576,
0.042467467,
0.017481646,
-0.0038083005,
-0.041652407,
-0.043282527,
-0.050561864,
-0.075997375,
-0.06166355,
0.0021131851,
-0.02034841,
-0.029004915,
0.026812684,
0.00039237968,
0.014657038,
-0.005431395,
-0.035160027,
-0.039544493,
-0.0004843814,
0.0039136964,
-0.008213843,
0.011530297,
-0.054890115,
0.050674286,
-0.029145444,
-0.043001473,
0.0034446851,
-0.0031583598,
-0.0009406572,
0.017017903,
-0.0008897159,
-0.027276425,
-0.016174737,
0.07892035,
-0.0060286378,
0.011888643,
-0.001768014,
-0.04491265,
0.046936247,
-0.05806604,
0.027627744,
-0.024381554,
-0.011221136,
-0.0071704253,
0.007216097,
-0.03465413,
0.048763108,
0.022751434,
0.018409127,
0.03830785,
-0.05460906,
-0.01319555,
-0.027852587,
-0.0020060327,
0.0017416651,
0.039628807,
-0.014980252,
-0.000027240963,
-0.04227073,
-0.013497685,
-0.016469846,
-0.007785234,
0.007806313,
-0.013870083,
0.02765585,
0.0020253554,
-0.023707021,
-0.013230682,
0.0063799573,
-0.02450803,
0.017017903,
-0.021472631,
0.02973566,
0.054328006,
-0.030410193,
0.024297237,
-0.018858816,
0.024634505,
-0.0014931067,
0.028780071,
0.029623237,
-0.023327596,
-0.016132578
] | If you're curious and interested in learning more about the concepts underlying 8-bit quantization, read the Gentle Introduction to 8-bit Matrix Multiplication for transformers at scale using Hugging Face Transformers, Accelerate and bitsandbytes blog post. |
[
0.031658463,
-0.0096143,
-0.013094958,
-0.03328425,
-0.04386663,
0.01813489,
0.015459736,
-0.032781735,
-0.016509106,
0.06715969,
0.04197481,
-0.051463477,
0.02250973,
-0.03742261,
0.028732052,
0.047768515,
0.014580334,
-0.03097859,
-0.028022619,
-0.0033993681,
0.017794954,
-0.011439613,
-0.09080747,
-0.046763483,
-0.02564306,
-0.005235766,
0.043955307,
-0.006318391,
0.07088422,
0.046438325,
-0.018681746,
-0.0034732677,
0.028259097,
-0.017144639,
-0.05678423,
-0.039343994,
-0.009185684,
-0.025436142,
-0.026455952,
-0.022021994,
0.042329524,
-0.010212884,
-0.0017237014,
-0.024298092,
-0.033845883,
-0.013811781,
-0.005110137,
-0.024032056,
-0.011121846,
-0.07407667,
-0.060479194,
0.0095404005,
-0.007936786,
0.029175447,
-0.02253929,
-0.035678588,
0.012503763,
-0.005150782,
-0.0405855,
0.011432223,
0.03541255,
0.005010373,
0.008845747,
-0.052734546,
0.003356876,
0.054094296,
-0.010131596,
-0.010604551,
-0.004910609,
0.003746695,
-0.032486137,
-0.0017486424,
-0.016272629,
-0.036949653,
-0.013530963,
0.019849354,
0.018267909,
-0.0059636743,
-0.015710993,
0.020706587,
0.0077815973,
0.008934426,
0.00031845985,
-0.004932779,
-0.0021430799,
-0.04164965,
0.051138323,
-0.013678762,
-0.034614436,
-0.0064624944,
-0.015844012,
0.03621066,
-0.0028174112,
0.033786763,
0.008402351,
0.025096206,
0.00097085215,
0.03319557,
0.046379205,
-0.015696213,
0.008210213,
0.10854331,
-0.015444956,
0.04410311,
-0.010922318,
0.0026086457,
0.008047635,
0.008247163,
-0.039905626,
-0.057375424,
0.008224993,
0.008313673,
-0.016701244,
0.0047406405,
0.010486312,
0.014528604,
0.01813489,
0.042713802,
-0.028865071,
-0.028599033,
0.018489607,
-0.007086944,
0.0062260167,
-0.058173537,
-0.019066023,
-0.031688023,
-0.038279843,
0.040467262,
-0.0384572,
-0.0069797896,
-0.01712986,
-0.020706587,
0.01615439,
0.05991756,
0.025096206,
-0.018400928,
0.018622626,
0.005479634,
0.011092287,
0.01068584,
0.025332684,
0.005693942,
-0.00021650188,
0.082826346,
0.007929396,
0.0012137962,
-0.010611941,
-0.071357176,
-0.061306868,
0.0074527455,
-0.028126078,
0.0007449974,
-0.005668077,
0.019878915,
-0.0029190227,
-0.013641813,
-0.01070801,
0.04377795,
0.0054205144,
0.020470109,
0.033018213,
-0.011210525,
-0.022169793,
0.039018836,
-0.013442284,
0.02237671,
-0.034850914,
0.010050306,
0.014506434,
-0.019154701,
0.010863199,
0.0039129686,
-0.012149046,
0.0319245,
0.05359178,
0.02137168,
0.04945342,
0.011343544,
-0.0030021595,
0.0063110013,
-0.026101235,
0.019095581,
0.044516943,
0.0045485026,
0.0145655535,
0.005062103,
-0.024312872,
-0.0128437,
-0.0042418204,
0.025554381,
0.007833327,
0.042713802,
-0.0038242892,
0.02253929,
-0.032367896,
0.0051951213,
-0.035560347,
-0.021327341,
-0.012998888,
-0.0384572,
-0.008077195,
0.019775456,
-0.05477417,
0.01068584,
-0.035826385,
0.045374177,
0.0036783381,
0.060656555,
-0.0035748791,
0.0026345104,
0.054892406,
0.02658897,
-0.03109683,
-0.0008447615,
0.034643997,
0.023972936,
-0.0051914263,
0.026988028,
-0.0065992083,
0.033638965,
0.019716335,
0.039107516,
0.05566096,
-0.009754709,
0.022834886,
-0.012052977,
-0.022598408,
0.016686464,
0.04493078,
0.04297984,
-0.003979478,
0.050901845,
-0.0010299716,
0.036979213,
0.006673108,
0.009067445,
0.04079242,
0.009850778,
-0.0028599033,
0.000989327,
0.008468861,
0.009422162,
0.029264126,
-0.002028536,
0.000008876577,
-0.0035176072,
-0.018060992,
0.0037208302,
-0.02790438,
0.043364115,
-0.020662246,
0.054153413,
0.014277346,
-0.018267909,
-0.045226377,
-0.011018387,
0.025909098,
0.03437796,
-0.030505635,
-0.025362244,
0.022036774,
0.01813489,
-0.008491031,
-0.03284085,
0.015149359,
0.08371314,
-0.005036238,
0.015622314,
0.037127014,
-0.03437796,
-0.0037208302,
0.0026492903,
-0.045285497,
0.0060190987,
-0.048950903,
-0.008690558,
-0.0027619868,
-0.02885029,
0.030328277,
-0.011506123,
0.025406582,
0.006329476,
-0.010486312,
0.056872908,
0.038072925,
0.022155013,
-0.051877316,
0.017750613,
-0.032722615,
0.028717272,
-0.017706275,
-0.04188613,
0.005150782,
-0.034939595,
-0.0091265645,
-0.003924053,
0.000082155246,
-0.025170105,
-0.012695901,
0.011180965,
0.0037614747,
0.013663982,
0.015053289,
0.015592754,
-0.023987716,
0.00004029822,
0.011291814,
-0.026411613,
0.04906914,
0.019080801,
-0.0031721278,
0.017366339,
-0.022849666,
0.049985494,
-0.023854697,
0.047266,
0.05699115,
-0.04067418,
-0.0298701,
-0.032988653,
-0.026130795,
0.021534258,
-0.036476698,
-0.010538042,
-0.032988653,
0.07076598,
-0.031510666,
-0.06331693,
-0.010981438,
-0.042684242,
-0.023987716,
-0.013826561,
-0.018386148,
0.047591154,
0.012984109,
0.022184573,
-0.049571656,
-0.0008461471,
-0.014395585,
-0.004810845,
0.01723332,
-0.009555181,
0.00970298,
0.028436454,
0.0066878875,
0.013508794,
0.066804975,
-0.007286472,
-0.009148735,
-0.015075459,
0.0004156836,
-0.031244628,
0.010582381,
-0.023145264,
-0.010345903,
0.03718613,
-0.008040245,
0.018726084,
0.016996842,
0.0061779823,
0.023736458,
0.013205807,
-0.013434894,
0.03224966,
-0.0145655535,
-0.0052874954,
-0.019745896,
0.041442733,
0.018814765,
-0.030476075,
0.01285848,
-0.00080919743,
-0.025539601,
-0.006192762,
0.036801856,
-0.018578287,
0.03748173,
0.054212533,
0.057493664,
-0.014402975,
0.0026880873,
-0.0036912705,
-0.002257624,
0.044398706,
0.027061926,
0.034850914,
0.0133092655,
-0.01282153,
-0.037806887,
-0.02256885,
0.017573256,
0.007301252,
0.009163515,
-0.021120423,
-0.036003742,
-0.04593581,
0.00009866712,
0.05243895,
-0.00040228936,
-0.0029448874,
0.021578599,
-0.0340528,
-0.016213508,
0.0117795495,
0.00750078,
-0.009991187,
-0.030830791,
0.043984868,
0.0051803417,
-0.026840229,
-0.03112639,
-0.042181727,
0.0025846283,
0.019716335,
-0.011003607,
0.011875619,
-0.04788675,
-0.00746383,
-0.024298092,
0.046822604,
-0.017351558,
-0.0076559684,
-0.038605,
0.030357836,
0.021031743,
-0.036003742,
-0.003306994,
-0.052793667,
-0.0048847445,
0.034821354,
-0.0011509818,
-0.040851537,
-0.0060634385,
-0.006200152,
-0.048507508,
0.0689924,
0.026633311,
-0.052025113,
-0.0041605313,
-0.012924989,
0.015577975,
0.003000312,
0.008173264,
-0.029293686,
0.009281754,
-0.015097629,
0.0061595077,
-0.03842764,
-0.028613813,
-0.015504075,
0.034673557,
-0.060479194,
0.0077889874,
-0.019908475,
-0.024844948,
0.021711618,
0.005948894,
0.029411925,
0.0044413484,
0.0044228737,
-0.010345903,
-0.015238037,
0.046527006,
-0.032693055,
-0.024460671,
-0.003731915,
0.014173888,
0.0070204344,
0.034791794,
-0.0043563643,
-0.011166186,
0.0557792,
0.011520903,
-0.042418204,
0.012932379,
-0.005232071,
0.029382365,
0.0152675975,
-0.0049992884,
-0.02051445,
-0.0451377,
0.04729556,
-0.025982996,
-0.008461471,
0.029190227,
-0.05873517,
-0.018873883,
0.034791794,
-0.030298717,
0.038250282,
0.011587412,
-0.017987091,
-0.012991498,
-0.016523886,
-0.010789299,
-0.025081426,
-0.048004992,
0.0075451196,
0.06532699,
0.029944,
0.061543345,
-0.033727646,
-0.0366245,
0.0096143,
-0.030801233,
-0.011897788,
-0.013878291,
-0.001318179,
0.005560923,
-0.020765705,
-0.032072302,
-0.021076083,
0.011949519,
0.016967282,
0.0043711443,
-0.011269645,
0.021327341,
-0.040526383,
-0.013250146,
0.040969778,
-0.014602504,
-0.078274146,
-0.020691806,
0.0001689292,
0.00373561,
0.004725861,
0.013227976,
-0.030801233,
-0.060449634,
-0.021948095,
0.053946495,
-0.020130172,
0.012237726,
-0.037127014,
-0.06107039,
-0.015740553,
0.007685528,
0.027135827,
-0.02992922,
0.037954684,
0.00534292,
0.0024405248,
-0.037363492,
-0.0131688565,
-0.049896814,
-0.020632688,
0.023027025,
0.02038143,
-0.0025698484,
-0.0062407968,
0.0036598633,
0.02998834,
0.029175447,
0.010397633,
-0.034555316,
-0.030919472,
-0.010405023,
-0.0033439437,
-0.042566,
0.057227626,
-0.024785828,
0.052734546,
0.002510729,
0.042240847,
-0.054242093,
-0.015504075,
-0.004688911,
0.0020303836,
0.0344962,
-0.06544523,
0.03958047,
0.020854386,
-0.0015943776,
0.012067758,
0.032633934,
-0.03881192,
0.05468549,
-0.039107516,
-0.05982888,
0.04194525,
-0.045521975,
-0.013612253,
-0.032663494,
-0.015651874,
0.04153141,
-0.017647155,
0.00642924,
0.06408548,
-0.010752349,
-0.02457891,
0.013287096,
0.021327341,
0.009983797,
0.009303923,
0.018859103,
0.015297157,
-0.013213197,
-0.014506434,
-0.021918535,
-0.044310026,
-0.0407333,
0.019686775,
0.025288343,
0.02988488,
0.044014428,
-0.010774519,
-0.03961003,
-0.041383613,
0.02692891,
0.01183128,
0.019553758,
0.010515871,
0.0557792,
-0.024046835,
0.0535031,
-0.027047148,
-0.035796825,
-0.020603128,
0.03884148,
0.0025975606,
-0.020824825,
0.027209725,
0.017469797,
-0.042447764,
-0.06219366,
-0.016656904,
0.03130375,
-0.056459073,
-0.013124517,
-0.012171216,
-0.020573568,
-0.032574814,
-0.010841029,
0.021076083,
-0.0053022755,
-0.027919158,
0.021608159,
-0.013819171,
-0.034673557,
0.009259583,
0.0656817,
0.0049918983,
-0.019317279,
-0.032545257,
-0.005978454,
-0.029677963,
-0.01831225,
0.039137073,
-0.0451377,
0.030682994,
0.006089303,
0.027121047,
0.08412697,
-0.030180478,
0.03621066,
0.02357388,
-0.029411925,
-0.06911063,
-0.03972827,
0.028451234,
0.017514136,
0.018785205,
-0.01495722,
0.02030753,
0.039166633,
0.03745217,
-0.02673677,
-0.06621378,
0.033638965,
-0.04714776,
-0.0034344704,
0.044250906,
-0.020100612,
0.00589347,
0.049542096,
0.022302812,
-0.045728892,
0.014750302,
0.035205632,
-0.014802031,
-0.0007671672,
-0.05778926,
0.0013514336,
-0.075791135,
-0.007929396,
-0.033047773,
-0.04830059,
0.006883721,
0.022687089,
0.007042604,
0.004615012,
-0.0055018035,
0.0446943,
-0.006758092,
0.0072384374,
-0.021785516,
0.045551535,
-0.0038279842,
-0.022051554,
-0.07927918,
0.040437702,
0.033757206,
-0.03505783,
0.010538042,
0.005778926,
0.023766018,
-0.015829232,
0.0007528492,
0.025554381,
-0.0069354502,
-0.0095404005,
0.015548415,
0.025436142,
-0.07945654,
0.04200437,
-0.036506258,
-0.0366245,
0.0054057343,
0.028273875,
0.01608049,
0.03975783,
0.01178694,
-0.007729868,
-0.014321686,
0.023869477,
0.04493078,
0.020972624,
0.021992434,
-0.013649203,
-0.016036151,
-0.020706587,
0.006074523,
0.046674803,
-0.07372195,
0.015238037,
-0.024120735,
-0.0040201223,
-0.023869477,
0.0063479505,
0.03943267,
0.040437702,
0.030742113,
-0.012984109,
-0.015844012,
-0.03007702,
-0.041383613,
0.0048293197,
-0.07514082,
-0.041797448,
0.03310689,
-0.06313957,
-0.0139448,
0.007397321,
-0.00026280442,
0.019154701,
0.04419179,
-0.019125141,
0.039196193,
0.03316601,
-0.029485824,
0.022095894,
-0.026056897,
-0.04599493,
-0.0123337945,
0.006092998,
-0.040112544,
-0.008757068,
0.023366962,
0.040999338,
0.034791794,
-0.00962169,
-0.03000312,
-0.022790547,
0.0046334867,
0.031717584,
-0.029648403,
-0.004378534,
-0.030150918,
0.039846506,
-0.049926374,
0.012185996,
-0.00480715,
0.014240397,
0.020499669,
0.027431423,
0.020913504,
-0.0035582518,
0.059089888,
-0.024416331,
0.017499356,
0.040082984,
0.022982685,
0.00036949656,
0.010235054,
-0.011121846,
0.051877316,
0.023987716,
0.011424833,
0.0014308754,
0.033964124,
0.014070429,
-0.07490434,
-0.021948095,
0.049542096,
0.021755956,
-0.008032855,
-0.0015066222,
-0.009230024,
-0.016198728,
-0.012038197,
0.009954237,
0.008882697,
-0.0020377734,
-0.010589771,
-0.011380494,
-0.036860976,
0.028998088,
-0.015489295,
-0.034969155,
-0.011624361,
0.025155324,
0.04729556,
-0.016627345,
0.0036044389,
-0.010175935,
0.031244628,
0.060508754,
0.010966658,
0.043600593,
-0.0018973647,
0.038279843,
0.0066878875,
0.05580876,
0.010242444,
-0.026958467,
0.030136138,
-0.05261631,
-0.025982996,
0.01924338,
-0.009555181,
-0.025495261,
-0.018533947,
-0.024401551,
0.0014973847,
-0.058410015,
0.034762233,
-0.04510814,
0.018711304,
0.055926997,
-0.0041051065,
-0.027564442,
0.047266,
-0.011631751,
0.04708864,
0.018371368,
0.04478298,
0.02670721,
0.0665685,
0.02673677,
-0.019745896,
0.029012868,
0.0048699644,
-0.05997668,
0.017144639,
0.02250973,
-0.029471045,
-0.011365714,
-0.035205632,
-0.04818235,
0.018962562,
-0.015622314,
-0.012075148,
-0.033964124,
0.020470109,
-0.008919647,
-0.04407355,
0.011306594,
0.05483329,
0.014720743,
-0.01393002,
-0.025909098,
0.014912881,
-0.0449899,
0.0050436277,
-0.027327964,
0.0037245252,
-0.03854588,
0.004607622,
-0.02582042,
-0.022746207,
-0.022214133,
0.019775456,
-0.010478922,
0.017750613,
-0.008468861,
0.03878236,
-0.005996929,
0.028613813,
0.000025821459,
-0.021741176,
0.03529431,
0.030535195,
0.014868541,
0.0535031,
0.053030144,
0.005653297,
-0.028687712,
0.0045632822,
0.0006914204,
-0.018563507,
-0.00860188,
-0.025938658,
-0.0074084057,
-0.025849978,
-0.039077956,
-0.0035582518,
-0.027460983,
-0.03210186,
-0.030889912,
-0.021667277,
-0.008158484,
-0.07407667,
-0.022243692,
-0.031421985,
0.0171742,
-0.019612877,
-0.008838357,
-0.010914928,
-0.05232071,
0.26154444,
0.03313645,
0.0109370975,
0.008010685,
0.03730437,
0.081643954,
0.039876066,
-0.038102485,
-0.0011546767,
-0.058350895,
-0.024061615,
-0.034850914,
0.0068615507,
0.03097859,
-0.0035342344,
0.04297984,
-0.05767102,
0.011853449,
-0.0031518056,
-0.038664117,
-0.03975783,
0.00028312672,
-0.013213197,
0.057404984,
0.025007525,
0.022214133,
0.023293063,
-0.038664117,
-0.01721854,
-0.011580022,
0.013663982,
-0.017528916,
0.02570218,
-0.012112097,
-0.03352073,
0.024889287,
-0.0088531375,
-0.034969155,
-0.025229225,
-0.00971037,
0.007083249,
-0.020883946,
0.012378135,
-0.0027749192,
-0.014196058,
0.047975432,
-0.0017246251,
0.050635807,
0.050813165,
-0.022938346,
0.066686735,
-0.045374177,
0.023248723,
-0.047413796,
-0.05125656,
0.0071423682,
-0.05232071,
-0.05669555,
-0.0033476388,
-0.0077372575,
0.017676715,
-0.021223882,
-0.048507508,
0.005741976,
0.012488984,
0.038250282,
-0.015297157,
0.032693055,
0.005771536,
0.00964386,
0.00076624344,
-0.024800608,
-0.056045238,
-0.026426394,
0.018814765,
-0.0019010598,
0.021342121,
0.012488984,
0.010168545,
-0.05764146,
0.015755333,
-0.024371993,
0.04708864,
-0.04253644,
0.038634557,
0.023706898,
-0.03724525,
0.005113832,
-0.010796689,
0.008904867,
0.0060597435,
0.04070374,
0.024046835,
-0.041206256,
-0.01942074
] | To load a model in 8-bit for inference, use the load_in_8bit parameter. The device_map parameter is optional, but we recommend setting it to "auto" to allow 🤗 Accelerate to automatically and efficiently allocate the model given the available resources in the environment:
from transformers import AutoModelForCausalLM
model_name = "bigscience/bloom-2b5"
model_8bit = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", load_in_8bit=True) |
[
0.0456225,
-0.01291596,
-0.0047393236,
-0.024701027,
-0.05523507,
0.02065363,
0.023227895,
-0.031545892,
-0.021963082,
0.051812638,
0.04898541,
-0.048390206,
0.029581713,
-0.03794435,
0.016606234,
0.059193186,
0.021546438,
-0.03151613,
-0.05211024,
0.0217994,
0.010252414,
-0.0052712886,
-0.09053075,
-0.02611464,
-0.031367328,
-0.0018814073,
0.025340874,
0.0018274669,
0.05958007,
0.05383634,
-0.018168647,
-0.03157565,
0.02937339,
-0.00036316836,
-0.060264558,
-0.025311114,
-0.013793888,
-0.034492157,
-0.02493911,
-0.027171131,
0.051544797,
-0.017513921,
0.009939931,
-0.03169469,
-0.032230377,
-0.005632132,
-0.022424366,
-0.040682297,
-0.015847346,
-0.06160377,
-0.059074145,
0.02705209,
-0.003898596,
0.01617471,
-0.030980445,
-0.040235892,
0.01084762,
-0.0006635611,
-0.025385514,
0.003132269,
0.024864709,
0.016948476,
0.007879033,
-0.0519912,
-0.019850103,
0.048509248,
-0.0018953575,
-0.002393842,
0.005334529,
-0.0077823116,
-0.020415548,
-0.012521636,
-0.010944341,
-0.04666411,
-0.0019716183,
0.022037484,
0.040265653,
0.0012238913,
-0.013124282,
0.01525214,
0.00032317798,
0.0024719627,
0.0047207237,
-0.016338391,
0.0062459377,
-0.04657483,
0.05097935,
-0.014523014,
-0.016055668,
-0.02175476,
-0.009047124,
0.040593013,
-0.014575095,
0.028302021,
0.018987056,
0.019210257,
0.0038576757,
0.026442004,
0.038390756,
-0.039581165,
-0.016710395,
0.095947124,
-0.019984024,
0.020936353,
-0.009553048,
-0.011055942,
-0.0010081293,
0.025668237,
-0.035504006,
-0.048330687,
0.0013717627,
0.028971627,
-0.015609264,
0.0050332067,
0.014523014,
0.014999178,
0.030117398,
0.048509248,
-0.03261726,
-0.007045745,
0.018168647,
-0.0052712886,
-0.0005198748,
-0.066543974,
-0.01307964,
-0.019760823,
-0.06469884,
0.05523507,
-0.02163572,
-0.010527697,
-0.008213836,
-0.019686421,
0.004984846,
0.052348323,
0.023317175,
-0.02615928,
0.034879044,
0.028435942,
-0.0016861055,
0.003472652,
0.013131721,
0.016144948,
-0.015267021,
0.06832959,
-0.001517774,
-0.0018879174,
-0.0067518624,
-0.05943127,
-0.068984315,
0.018897774,
-0.034045756,
-0.007056905,
-0.0073991483,
0.009553048,
-0.0009904591,
-0.016725274,
-0.027171131,
0.050771028,
-0.017677603,
0.009099204,
0.034760002,
-0.0033926712,
-0.00868256,
0.04452137,
-0.02276661,
0.0349088,
-0.05428274,
0.0041627185,
0.026084881,
-0.025087912,
0.02917995,
-0.00040339123,
-0.01834721,
0.051574554,
0.042527433,
0.023570137,
0.045890342,
0.031129247,
-0.013087081,
0.0041478383,
-0.024269504,
0.025817038,
0.052645925,
0.029656114,
-0.009099204,
-0.0038279153,
-0.007038305,
-0.023406455,
-0.020415548,
0.01739488,
0.0063500986,
0.0366349,
-0.0238975,
0.022647569,
-0.03612897,
0.00037479345,
-0.05300305,
-0.009523287,
-0.0008314277,
-0.032676782,
-0.0022524807,
0.022989811,
-0.05517555,
0.013094521,
-0.03901572,
0.04758668,
0.0025724038,
0.06416315,
-0.003777695,
0.0032959504,
0.05211024,
0.00972417,
-0.04853901,
0.0039767167,
0.015877107,
0.02923947,
-0.007231747,
0.04151558,
-0.009158725,
0.018719213,
0.0095679285,
0.035206404,
0.04898541,
-0.009009923,
0.0194781,
-0.0058181337,
-0.016472312,
0.024418306,
0.042497672,
0.04862829,
-0.020088185,
0.038658597,
-0.001836767,
0.035117123,
0.0064430996,
0.025430154,
0.018823374,
0.013258202,
-0.005565171,
0.0073991483,
0.0020999594,
0.023480857,
0.019716183,
-0.004661203,
0.008422158,
0.012186833,
-0.013622765,
0.0013801327,
-0.027498493,
0.036545616,
-0.002715625,
0.056990925,
0.022260685,
-0.009248005,
-0.039759725,
-0.010669058,
0.039759725,
0.03342079,
-0.032289896,
-0.020966113,
0.023421336,
0.022409488,
-0.0050369264,
-0.038599078,
0.015758066,
0.083804935,
0.020207226,
0.015579504,
0.03687298,
-0.035504006,
-0.0030746083,
-0.0065212203,
-0.047973562,
0.001733536,
-0.036188494,
-0.016472312,
-0.0066700215,
-0.028703785,
0.037587225,
-0.02928411,
0.03139709,
0.0012741118,
-0.014679256,
0.06303226,
0.042676233,
0.002605884,
-0.06434172,
0.017960325,
-0.020876832,
0.025683116,
-0.0054684505,
-0.032855343,
-0.004735604,
-0.028807946,
-0.006316618,
0.0065509803,
-0.003338731,
-0.01080298,
-0.017186558,
0.003688414,
-0.0047504837,
0.015906867,
-0.0023566417,
0.030415,
-0.019016815,
0.010244975,
0.011576747,
-0.014694136,
0.051723357,
0.015415822,
-0.015847346,
0.030950686,
-0.01727584,
0.04773548,
-0.031754214,
0.05315185,
0.044134486,
-0.01621935,
-0.028465703,
-0.014426293,
-0.017484162,
0.012543956,
-0.020742912,
-0.02269221,
-0.03261726,
0.07190082,
-0.026516404,
-0.044848733,
-0.014954538,
-0.030444762,
-0.021591078,
-0.01198595,
-0.030980445,
0.049074695,
-0.005531691,
0.02071315,
-0.04663435,
0.0194037,
-0.020222107,
0.0003345706,
0.004013917,
0.009285206,
0.011048502,
0.02827226,
0.018600171,
0.00757771,
0.046128426,
-0.008481679,
-0.0042817597,
-0.007172226,
0.0021539,
-0.023346936,
0.009329846,
-0.02931387,
-0.01518518,
0.027647296,
0.004445441,
0.023525497,
0.010483056,
0.0043784804,
0.0044380007,
0.010988981,
-0.0498187,
0.030147158,
-0.011160103,
-0.015311661,
-0.018600171,
0.037408665,
0.018704332,
-0.012447235,
-0.0018972175,
-0.004847205,
-0.020906594,
0.008109675,
0.009166164,
-0.006294298,
0.040473975,
0.0388074,
0.06452028,
-0.0023101412,
0.0057920935,
0.010311935,
0.0010611397,
0.037111063,
0.04883661,
0.034968324,
0.013548365,
-0.004657483,
-0.035087362,
-0.018734094,
0.031962536,
0.004735604,
-0.0059780953,
-0.017930565,
-0.029685874,
-0.044134486,
-0.004549602,
0.040235892,
0.008556079,
0.0025166033,
0.027558014,
-0.026575925,
-0.008809041,
0.020787552,
0.0030597283,
0.0010025492,
-0.040920377,
0.051574554,
0.0006942514,
-0.015891986,
-0.0237487,
-0.032408938,
-0.0011550706,
0.015356301,
-0.01843649,
0.010646738,
-0.046426028,
-0.019820344,
-0.033361267,
0.04336072,
-0.020162586,
-0.016665753,
-0.04550346,
0.023629658,
0.024626628,
-0.039640687,
0.001510334,
-0.04975918,
0.0016117048,
0.030712603,
0.0057846536,
-0.029358512,
0.003995317,
-0.016874075,
-0.0563362,
0.06416315,
0.016561592,
-0.030712603,
-0.004813724,
-0.016546713,
0.023034453,
0.0017837564,
-0.009367047,
-0.027513374,
0.02602536,
-0.01834721,
0.01845137,
-0.058151577,
-0.027677055,
0.0018711772,
0.05422322,
-0.05118767,
0.0063352184,
-0.0050071664,
-0.024596866,
0.010639298,
-0.0011392605,
0.024864709,
0.0061417767,
-0.0014461634,
-0.014575095,
-0.020802433,
0.04342024,
-0.041991748,
-0.020475069,
-0.0083328765,
0.023123734,
-0.018808493,
0.053747054,
-0.008920643,
-0.024701027,
0.058984865,
0.0024124424,
-0.043658324,
0.013347483,
-0.016070548,
0.025787277,
0.015400942,
-0.033123184,
-0.0049141655,
-0.05996695,
0.05508627,
-0.029432911,
-0.02048995,
0.030474521,
-0.058925346,
-0.026903288,
0.014701576,
-0.02833178,
0.028004419,
0.016963357,
-0.01938882,
-0.020207226,
-0.006171537,
-0.019612022,
-0.03351007,
-0.061306167,
0.028540103,
0.06475836,
0.025132552,
0.04776524,
-0.013116841,
-0.050771028,
0.005836734,
-0.019135857,
0.0047021233,
-0.010252414,
0.015713425,
-0.001614495,
-0.009798571,
-0.012737397,
-0.013719487,
-0.010401216,
0.027617535,
0.001954878,
-0.008987603,
0.023510616,
-0.039491884,
-0.015579504,
0.03330175,
-0.018287688,
-0.070769936,
-0.030013237,
0.009843211,
-0.0005003446,
-0.0011987811,
0.02075779,
-0.040950138,
-0.05749685,
-0.023183255,
0.031962536,
-0.033986233,
0.022186285,
-0.038450275,
-0.04029541,
-0.009590249,
0.031545892,
0.021516679,
-0.028316902,
0.02490935,
0.0017856165,
0.0092331255,
-0.043658324,
-0.02276661,
-0.07291267,
-0.0238975,
0.015862226,
0.009969692,
-0.008905762,
-0.011197303,
0.0011662308,
0.013087081,
0.03261726,
0.0151703,
-0.041961987,
-0.01840673,
-0.013555805,
0.010468177,
-0.039819248,
0.03499808,
-0.038926437,
0.050592467,
-0.001296432,
0.03586113,
-0.047795,
-0.019359058,
-0.005092727,
0.01408405,
0.04464041,
-0.06297274,
0.022305327,
0.009069444,
0.011844589,
-0.00433012,
0.037378903,
-0.040444214,
0.015400942,
-0.021233955,
-0.06469884,
0.041366782,
-0.052943528,
-0.02706697,
-0.032200616,
-0.01617471,
0.03282558,
-0.0086156,
-0.0047132834,
0.059103906,
0.00067751127,
-0.012000831,
0.009240565,
0.0453249,
0.010557458,
0.022067243,
0.02714137,
0.028302021,
0.008288236,
0.0007379618,
-0.030920925,
-0.04428329,
-0.025177192,
0.0032382898,
0.042497672,
0.006167817,
0.024507586,
-0.012811799,
-0.03342079,
-0.027810976,
0.0409799,
0.00983577,
0.012551396,
0.025058152,
0.06874623,
-0.038480036,
0.07023425,
-0.026337843,
-0.04089062,
-0.024180222,
0.04419401,
0.0015652045,
-0.02053459,
0.028346661,
0.008474238,
-0.04327144,
-0.06303226,
-0.02607,
0.0143146925,
-0.030682843,
0.0009858091,
-0.023064213,
-0.017439522,
-0.016948476,
0.00056823523,
0.029730514,
-0.012811799,
-0.040860858,
0.0148801375,
-0.0077823116,
-0.029700754,
0.01641279,
0.068984315,
0.0020348588,
-0.013325163,
-0.018659692,
0.0034875323,
-0.029923957,
-0.026471764,
0.053449452,
-0.037557468,
0.01621935,
-0.0071350257,
0.011063382,
0.06731774,
-0.028763305,
0.042944077,
0.00868256,
-0.032230377,
-0.059074145,
-0.027319932,
0.038331233,
0.020400668,
0.021948203,
-0.00979113,
0.023421336,
0.04342024,
0.03580161,
-0.035027843,
-0.055562433,
0.032795824,
-0.03699202,
-0.017201439,
0.04672363,
-0.017097278,
0.018555531,
0.04217031,
0.020460188,
-0.028822826,
0.025043271,
0.031248288,
-0.0033908114,
-0.0006942514,
-0.065353565,
0.004668643,
-0.071424656,
0.0026319243,
-0.036099214,
-0.048211645,
-0.008169196,
0.02928411,
-0.02479031,
-0.010959221,
0.010542577,
0.05627668,
-0.017290719,
0.033807673,
-0.0076483907,
0.04231911,
-0.013295403,
-0.01613007,
-0.07797192,
0.03999781,
0.019894743,
-0.012313314,
0.027513374,
-0.015081019,
0.030444762,
-0.024358785,
0.00324945,
0.046693873,
-0.004992286,
0.004642603,
0.004973686,
0.029730514,
-0.082912125,
0.03395647,
-0.035236165,
-0.017141918,
-0.0020832191,
0.028674025,
0.006171537,
0.050651986,
0.013808767,
-0.0029127868,
0.005531691,
0.007990634,
0.034968324,
0.01632351,
0.01187435,
0.007038305,
-0.023257654,
-0.011368425,
0.011152663,
0.039789487,
-0.07463877,
0.015014059,
-0.030950686,
0.010252414,
-0.024120703,
0.006848583,
0.048211645,
0.039551403,
0.039402604,
-0.010646738,
-0.0007393568,
-0.026203921,
-0.047348596,
0.0100068925,
-0.05383634,
-0.039729968,
0.049163975,
-0.06773438,
-0.023525497,
0.005531691,
0.0055726115,
0.0042668795,
0.03803363,
-0.009047124,
0.051247194,
0.02160596,
-0.027647296,
0.014932218,
-0.01298292,
-0.07701959,
-0.0029406871,
0.018124007,
-0.07112706,
0.00024249974,
0.012268674,
0.051336475,
0.019939383,
-0.0215762,
-0.024552226,
-0.050532945,
0.014009649,
0.027691936,
-0.023465976,
0.010311935,
-0.041634623,
0.0412775,
-0.054729145,
0.028435942,
-0.008161755,
0.006714662,
0.006718382,
0.029909076,
0.025162311,
-0.004780244,
0.039670445,
-0.020832192,
0.031248288,
0.052259043,
0.02048995,
0.0011634408,
0.014456053,
-0.004858365,
0.052437603,
0.018257929,
0.021963082,
-0.00541637,
0.03993829,
0.0057958136,
-0.08332877,
-0.027840737,
0.05080079,
0.019998904,
0.0026709847,
0.0148801375,
0.0018907074,
-0.007879033,
-0.0239719,
0.0068597435,
0.016769914,
-0.0030727484,
-0.010200334,
-0.0023175813,
-0.026888408,
0.039878767,
-0.007879033,
-0.04106918,
-0.007841832,
0.039819248,
0.046068907,
-0.01618959,
-0.00009939467,
-0.032885104,
0.04571178,
0.06493692,
0.010966661,
0.025385514,
0.0049588056,
0.041813187,
-0.003574953,
0.0648774,
0.025325993,
-0.0099027315,
0.025087912,
-0.04434281,
-0.039402604,
0.030950686,
-0.0091289645,
-0.00323457,
-0.016621113,
-0.0091289645,
-0.004233399,
-0.049312774,
0.022558289,
-0.055294592,
0.020847073,
0.041723903,
-0.024224864,
-0.009612569,
0.034760002,
-0.03237918,
0.023957022,
0.024492705,
0.028123459,
0.015400942,
0.055026747,
0.020906594,
-0.02913531,
0.016665753,
-0.0011773909,
-0.07130562,
0.010669058,
0.0069601843,
-0.026799127,
-0.023302294,
-0.035027843,
-0.03374815,
0.010401216,
-0.030980445,
-0.018079367,
-0.038063392,
0.005643292,
-0.023733819,
-0.034343358,
0.012149632,
0.06392507,
0.0151331,
-0.025549196,
-0.024180222,
-0.0043933606,
-0.03904548,
-0.01515542,
-0.029537072,
0.0081245545,
-0.033004146,
-0.004002757,
-0.03356959,
-0.02498375,
-0.008370077,
0.035146885,
-0.0055949315,
0.023451097,
-0.0010397496,
0.030072758,
-0.024492705,
0.04133702,
0.0047393236,
-0.019731062,
0.026308082,
0.015609264,
0.0107806595,
0.05960983,
0.03455168,
0.018823374,
-0.023049332,
0.029894195,
-0.0035786731,
-0.016963357,
-0.008734641,
-0.030534042,
-0.009932492,
-0.023451097,
-0.03470048,
0.012246353,
-0.026903288,
-0.022260685,
-0.038837157,
-0.024567107,
-0.0020106786,
-0.0761863,
0.0137492465,
-0.017677603,
0.01613007,
-0.024195103,
-0.00649146,
0.0062087374,
-0.04657483,
0.26546165,
0.043479763,
0.004188759,
-0.0030876284,
0.013942689,
0.062437057,
0.0327363,
-0.012424915,
0.0029537072,
-0.076483905,
0.001941858,
-0.054877948,
0.004754204,
0.01950786,
0.0061864173,
0.035355207,
-0.047170036,
0.015564623,
-0.002591004,
-0.02833178,
-0.04892589,
0.004002757,
-0.0041478383,
0.06862719,
0.01623423,
0.011807389,
0.021293476,
-0.015095899,
-0.016040787,
0.006781623,
-0.004754204,
-0.013139161,
0.035087362,
-0.014009649,
-0.04437257,
0.0047058435,
-0.019076336,
-0.037230104,
-0.031932775,
-0.0012471415,
0.017156798,
-0.024269504,
0.007350788,
-0.0052564084,
-0.013987329,
0.03898596,
-0.014582534,
0.021293476,
0.04672363,
-0.023733819,
0.06767487,
-0.047437876,
0.0127671575,
-0.05306257,
-0.060324077,
0.013883168,
-0.05541363,
-0.047199797,
-0.020415548,
0.007871592,
0.014478373,
-0.009925052,
-0.04222983,
0.007477269,
0.0017856165,
0.039878767,
-0.019240018,
0.03348031,
0.022126764,
-0.0033926712,
0.0033777913,
-0.0036009932,
-0.041842945,
-0.033182707,
0.032795824,
0.00017088908,
0.00863792,
0.014664375,
-0.000863513,
-0.039640687,
0.014508134,
-0.019061456,
0.03782531,
-0.046693873,
0.0563362,
0.025906319,
-0.033629112,
-0.006260818,
0.0029369672,
0.0008328227,
0.012030591,
0.046068907,
0.015653905,
-0.038450275,
-0.016784795
] | 4-bit
To load a model in 4-bit for inference, use the load_in_4bit parameter. The device_map parameter is optional, but we recommend setting it to "auto" to allow 🤗 Accelerate to automatically and efficiently allocate the model given the available resources in the environment.
from transformers import AutoModelForCausalLM
model_name = "bigscience/bloom-2b5"
model_4bit = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", load_in_4bit=True) |
[
0.051034555,
-0.016927024,
-0.0055132527,
-0.021377057,
-0.048330735,
-0.009723885,
0.023742896,
0.0065060607,
-0.018335262,
0.06742644,
0.014617513,
-0.045063622,
0.014138712,
-0.023968214,
0.010864558,
0.05880803,
0.0068616406,
-0.05373837,
-0.032417644,
0.00090479304,
0.008224111,
0.003770558,
-0.09249309,
-0.002973143,
-0.0046542273,
0.017870544,
0.03292461,
0.0048196954,
0.08032591,
0.025334205,
-0.03340341,
-0.022644471,
0.0051647136,
-0.022658553,
-0.056047883,
-0.018997133,
0.006182166,
-0.019954735,
-0.04416235,
-0.03619172,
0.04847156,
-0.011385606,
0.024968063,
-0.032530304,
-0.04557059,
-0.004953478,
-0.007541116,
-0.031488206,
0.012589649,
-0.05982196,
-0.036445204,
0.008090328,
-0.0032195847,
0.003038274,
-0.038106926,
-0.024263944,
-0.008421265,
0.01584268,
-0.018771816,
-0.0012621335,
0.053287733,
0.0034959514,
0.008970478,
-0.07131318,
0.01217422,
0.07029925,
0.000041091953,
-0.022827541,
-0.007196097,
0.013237439,
-0.03458633,
-0.015110396,
-0.021109492,
-0.027446562,
-0.013455716,
-0.002790072,
0.042894937,
-0.0025436303,
-0.0052703316,
0.007597445,
0.034501836,
-0.0032354274,
-0.008540965,
-0.0037987225,
-0.021081327,
-0.06286375,
0.055343762,
-0.02937585,
0.00650254,
-0.016786199,
-0.03416386,
0.00821707,
0.0055484585,
0.033938542,
0.011294071,
0.025038475,
0.008674747,
0.04393703,
0.03576925,
-0.027488811,
-0.00484786,
0.122573055,
0.0011019465,
0.023109188,
-0.030305287,
0.00650254,
0.0061680833,
0.048189912,
-0.024982147,
-0.023376755,
0.015349797,
0.032445807,
0.010554746,
0.017771967,
0.01685661,
0.032304984,
0.011779913,
0.021503797,
-0.035487603,
-0.014758336,
0.0046190214,
-0.003587487,
0.027643716,
-0.05196399,
-0.018419756,
-0.035966404,
-0.0458804,
0.055709906,
-0.03599457,
-0.0202223,
-0.008076246,
-0.036614195,
-0.02216567,
0.06359604,
0.036614195,
-0.04447216,
0.019996982,
0.046809837,
0.011237741,
-0.017631143,
0.016631294,
0.0028111956,
-0.017800132,
0.076044865,
-0.002476739,
0.018729568,
-0.00059190014,
-0.06517327,
-0.033572398,
0.0365297,
-0.038501233,
-0.016701706,
-0.015068149,
0.019701254,
-0.016039833,
-0.008949354,
-0.022531811,
0.022982448,
-0.0008009355,
-0.017701555,
0.02689735,
-0.012519238,
-0.0044183475,
0.037571795,
-0.0104420865,
0.031967007,
-0.04038827,
-0.0042986474,
0.00679827,
-0.014131671,
0.05162601,
0.01519489,
-0.0050696577,
0.048499726,
0.045260776,
0.030586934,
0.03269929,
0.015730022,
0.004812654,
0.01920837,
-0.02695368,
0.012110849,
0.04481014,
0.011688378,
0.02127848,
-0.018124025,
-0.036698688,
-0.011385606,
-0.022883872,
0.011371524,
0.0070271087,
0.035543934,
-0.01850425,
0.04137404,
-0.025911583,
0.025686266,
-0.034473673,
-0.0013096615,
-0.004281044,
-0.04675351,
0.0023394357,
0.04078258,
-0.04647186,
0.028418247,
-0.028235177,
0.063539706,
-0.008829653,
0.06263844,
-0.023095107,
-0.0090338485,
0.06737012,
0.0010086506,
-0.029995475,
-0.029826485,
0.036022734,
0.019461852,
-0.019602677,
-0.0056259115,
0.0037529548,
-0.005333702,
0.031291053,
0.015913092,
0.033375245,
-0.0058547505,
0.0066046375,
-0.028925214,
-0.0017110094,
0.030530605,
0.05385103,
0.035008803,
-0.0079635875,
0.034530003,
-0.01850425,
0.06579289,
0.008822612,
-0.014828748,
0.04971081,
0.025700347,
-0.036022734,
0.016293317,
0.00016260751,
0.004883066,
-0.0088507775,
-0.0026034804,
0.018405674,
0.013814817,
-0.007541116,
0.0005580144,
-0.022728965,
0.043261077,
-0.009913997,
0.035572097,
-0.008752201,
-0.0040310817,
-0.06889101,
-0.018250767,
0.028925214,
0.029094202,
-0.034980636,
-0.021686869,
-0.02210934,
0.04061359,
-0.012920585,
-0.05125987,
0.009435196,
0.07824171,
-0.0030593975,
0.018983051,
0.044584822,
-0.007171453,
-0.0068475585,
-0.0015508223,
-0.05373837,
-0.0138289,
-0.0039747525,
-0.004995725,
0.010406881,
-0.018053614,
0.011892572,
-0.015082232,
0.025094805,
0.019884324,
-0.018293014,
0.05835739,
0.031009406,
-0.022067092,
-0.07396067,
0.026939597,
-0.038754717,
0.047035158,
-0.0049746013,
-0.011125082,
-0.0050379722,
-0.039205354,
0.039881308,
0.013230398,
-0.00549917,
0.017236836,
-0.004953478,
-0.00762561,
-0.027770458,
0.00898456,
0.021475634,
0.005858271,
-0.025334205,
0.013913394,
0.01685661,
-0.0044253888,
0.039937638,
0.015631445,
-0.040810745,
0.02571443,
0.0034501837,
0.058019415,
-0.02210934,
0.038811047,
0.034839813,
-0.021602374,
-0.007914299,
-0.025165217,
-0.019292863,
-0.015814515,
-0.024320275,
-0.022503646,
-0.062582105,
0.05610421,
-0.04593673,
-0.048246242,
0.026573455,
-0.019813912,
-0.034558166,
-0.021264397,
-0.045711413,
0.049936127,
-0.003050596,
0.013695117,
-0.050752904,
-0.0070799175,
-0.032051504,
0.011808078,
0.017645225,
-0.012350249,
0.027235327,
0.025165217,
0.013012121,
-0.0083015645,
0.04799276,
-0.01826485,
-0.0070552733,
-0.005136549,
0.025573606,
-0.017166425,
0.02068702,
-0.008477594,
-0.016236987,
0.022419153,
-0.027164916,
0.017659307,
0.019827994,
-0.0037107076,
-0.0050168484,
0.014913242,
-0.007597445,
0.05514661,
-0.00295554,
-0.0020683499,
-0.010329427,
0.011772872,
0.02731982,
0.0013290248,
0.012181261,
0.01046321,
-0.03329075,
0.0073087565,
0.036698688,
-0.011786954,
0.03588191,
0.044753812,
0.06410301,
-0.025390536,
-0.011040588,
0.028502742,
-0.0040310817,
0.036811348,
0.042303476,
0.06297641,
-0.009590102,
0.015025902,
-0.013807775,
-0.01619474,
0.017842378,
-0.012983956,
-0.0340512,
-0.009315495,
-0.023179602,
-0.03216416,
0.021264397,
0.03368506,
0.015927175,
-0.006625761,
0.03593824,
-0.045176283,
0.0039536287,
0.02003923,
0.014054217,
0.000117719916,
-0.032135997,
0.050471257,
-0.015208973,
-0.0040522055,
-0.044641152,
-0.027024092,
-0.023785144,
0.036811348,
0.0054041143,
-0.0027108586,
-0.060441583,
-0.021236232,
-0.037599962,
0.01944777,
-0.011547553,
0.020123724,
-0.018067697,
0.02695368,
0.03334708,
-0.05669567,
0.01300508,
-0.06506061,
0.0029995474,
0.02943218,
-0.0013985566,
-0.027742293,
-0.02305286,
-0.024996229,
-0.057653274,
0.04503546,
0.008836695,
-0.024263944,
-0.003777599,
-0.018109944,
-0.0028921692,
-0.0102590155,
-0.0040522055,
-0.02068702,
0.009984409,
0.0028868883,
0.035910074,
-0.029629333,
0.0076326514,
0.004830257,
0.039487,
-0.037121158,
0.009604185,
-0.030220792,
-0.014899161,
0.012610774,
-0.025165217,
0.010716693,
0.033262588,
0.00071688124,
-0.018743651,
-0.01519489,
0.02364432,
-0.042894937,
-0.0036966254,
0.012040437,
0.026348136,
-0.023038777,
0.044584822,
0.020644773,
-0.023264095,
0.049429163,
0.021771362,
-0.027981693,
0.026756527,
-0.016828448,
0.041683853,
-0.013512046,
-0.011744707,
0.008731077,
-0.03517779,
0.059483983,
-0.0021950912,
-0.005516773,
0.029037872,
-0.06303275,
-0.033600565,
0.012124931,
-0.029770156,
0.03174169,
-0.011357442,
-0.030558769,
-0.008181864,
-0.016941106,
-0.021109492,
-0.013293769,
-0.031516373,
0.010301262,
0.051513355,
0.020813761,
0.029826485,
-0.005805462,
-0.04250063,
0.03534678,
-0.043768045,
-0.0028710456,
-0.033262588,
-0.02660162,
-0.0027337424,
0.0036684605,
-0.037121158,
-0.017419906,
0.0016634814,
0.014152794,
-0.02624956,
-0.027812704,
0.021250315,
-0.06551124,
-0.046838004,
0.05109088,
-0.041627523,
-0.050950058,
-0.027925365,
0.024813157,
0.0023007093,
-0.011047629,
0.0031720565,
-0.06838405,
-0.043965198,
-0.03540311,
0.047908265,
-0.02512297,
0.031403713,
-0.023404919,
-0.050161444,
0.0006117035,
0.047091488,
0.044303175,
-0.03185435,
0.039515164,
-0.017926872,
0.02920686,
-0.026643867,
-0.020644773,
-0.07170749,
-0.019602677,
0.028474577,
0.021926269,
-0.034727156,
-0.0033216819,
-0.00067375397,
0.030530605,
0.03422019,
0.031488206,
-0.03469899,
-0.01868732,
-0.013702158,
-0.012265755,
-0.009618267,
0.021926269,
-0.05373837,
0.025291959,
-0.02027863,
0.02920686,
-0.045739576,
-0.023489414,
-0.001625635,
0.0016714027,
0.039064527,
-0.051344365,
0.019996982,
-0.015673691,
-0.0033146406,
0.009864708,
0.039487,
-0.013899311,
0.009062013,
-0.029347684,
-0.06303275,
0.043430068,
-0.05125987,
-0.04965448,
-0.020827843,
0.006537746,
0.020095559,
-0.012920585,
0.009674597,
0.055963386,
0.004953478,
-0.0138289,
0.0014504853,
0.03469899,
-0.005699844,
0.02678469,
0.003298798,
0.015913092,
-0.027010009,
-0.02151788,
-0.046922497,
-0.0478801,
-0.027967611,
-0.0010596992,
0.049147513,
0.016490469,
0.02584117,
-0.023714732,
-0.046443697,
-0.02050395,
0.03334708,
0.0040522055,
0.015772268,
0.03323442,
0.033009104,
-0.039599657,
0.036980335,
-0.0409234,
-0.034079365,
-0.013997888,
0.030417945,
0.007541116,
-0.021236232,
0.041712016,
0.003381532,
-0.05368204,
-0.08122718,
-0.0072876327,
0.0010949052,
-0.004407786,
-0.011287029,
0.009160589,
-0.02429211,
-0.036022734,
0.0059146006,
0.05663934,
-0.02660162,
-0.009667556,
0.010857517,
-0.034023035,
-0.037487302,
0.036050897,
0.041036062,
0.0016141931,
-0.011357442,
-0.021208068,
-0.008963436,
-0.030615099,
-0.012927627,
0.061173867,
-0.03979681,
-0.0031421315,
-0.0051259873,
0.02819293,
0.04433134,
-0.027235327,
0.048809536,
-0.011519388,
-0.06308907,
-0.048274405,
-0.057258967,
0.033375245,
0.011378565,
0.013427552,
0.027925365,
0.023221849,
0.040134788,
0.04050093,
-0.03723382,
-0.060497914,
0.030615099,
-0.05438616,
0.001011291,
0.038670223,
-0.01861691,
0.015208973,
0.034558166,
0.019912489,
-0.028460495,
0.031234724,
-0.012547403,
-0.008801489,
-0.009252125,
-0.055005785,
-0.0138359405,
-0.042528793,
-0.009019766,
-0.010364633,
-0.041768346,
0.003376251,
0.052330133,
-0.022728965,
0.0020014585,
-0.0059568477,
0.041120555,
0.014082382,
0.023024695,
-0.015223055,
0.008935272,
-0.024658252,
-0.03565659,
-0.0868038,
0.06827139,
0.021377057,
-0.018321179,
0.022531811,
-0.0151808085,
0.013857064,
-0.044753812,
-0.009547855,
0.030784087,
0.0013395866,
-0.0075270333,
-0.0010843434,
0.025446864,
-0.06748278,
0.030643264,
-0.023447167,
-0.036107227,
0.014244329,
0.023630237,
-0.0030893227,
0.05739979,
0.015518785,
0.022982448,
-0.006829955,
0.006953176,
0.032417644,
0.033009104,
-0.0021422824,
0.031826183,
-0.009843585,
-0.017363578,
0.036107227,
0.03238948,
-0.07536891,
0.0076819393,
-0.0068968465,
0.015082232,
-0.0056716795,
0.033149928,
0.028178846,
0.047204144,
0.02039129,
0.0028129558,
-0.02761555,
-0.03162903,
-0.049147513,
0.006685611,
-0.06613087,
-0.013321933,
-0.0013932757,
-0.056526683,
-0.0048795454,
0.0038163257,
-0.016983353,
0.0019873763,
0.04841523,
-0.031065736,
0.02996731,
0.026531208,
-0.009667556,
0.020813761,
-0.019123875,
-0.061286528,
-0.0032019818,
0.004351456,
-0.07734045,
-0.007157371,
-0.005900518,
0.048387066,
0.042528793,
-0.022292411,
-0.04641553,
-0.035600264,
-0.011181411,
0.008773324,
-0.04421868,
0.0022179752,
-0.0365297,
0.011730624,
-0.048668712,
0.006569431,
-0.028361918,
0.032530304,
0.017926872,
0.023264095,
0.018771816,
0.0034836293,
0.016969271,
-0.03636071,
0.038163256,
0.023207765,
0.007365086,
0.00886486,
0.03630438,
-0.0016740431,
0.03895187,
0.013878188,
0.028981542,
-0.011068752,
0.03269929,
0.03038978,
-0.035149626,
-0.035572097,
0.031600866,
0.012392497,
-0.018025449,
0.006650405,
0.0070904796,
-0.0068475585,
-0.018236686,
-0.008294523,
-0.012990997,
-0.015744103,
-0.0034801087,
-0.013505004,
-0.040247448,
0.020672938,
0.0019592114,
-0.035487603,
-0.011160288,
0.022081176,
0.041824676,
-0.030023638,
0.013237439,
-0.00050344516,
0.033938542,
0.04534527,
0.026714278,
0.013406428,
-0.013026204,
0.06404667,
-0.0035839663,
0.047429465,
0.0170256,
0.00012036036,
0.009949203,
-0.0419655,
-0.053991854,
0.025108887,
-0.007597445,
-0.0050379722,
-0.023193683,
-0.024658252,
0.016110245,
-0.04038827,
0.01944777,
-0.057794098,
0.026967762,
0.0390082,
-0.0026862144,
-0.0049429163,
0.030248957,
-0.0036860635,
0.04185284,
0.031967007,
0.06444098,
0.022320576,
0.065454915,
0.05686466,
0.023925968,
0.02582709,
-0.012484032,
-0.04557059,
0.012976916,
0.022193834,
-0.0016546799,
0.04658452,
0.00043611377,
-0.045204446,
0.05171051,
-0.031009406,
-0.013681035,
-0.02223608,
0.0070095058,
-0.028418247,
-0.030784087,
0.0072665093,
0.09913997,
0.017053764,
-0.020757431,
-0.025052559,
-0.008294523,
-0.027685963,
0.029009707,
-0.025446864,
0.018926721,
-0.0045556505,
-0.02743248,
-0.014800584,
-0.03889554,
-0.0016053916,
0.0023095107,
-0.02588342,
-0.016927024,
0.012378414,
0.030361617,
0.002140522,
0.043768045,
-0.0006715536,
-0.020011066,
0.04095157,
0.011962984,
0.020137807,
0.03481165,
0.0637087,
0.005844189,
-0.01051954,
0.028925214,
0.004745763,
-0.012336167,
-0.0079354225,
-0.024151286,
0.009399991,
-0.014145753,
-0.028629484,
0.009611226,
0.009209878,
-0.016758034,
-0.03227682,
-0.020799678,
-0.0045978976,
-0.0675391,
0.013505004,
-0.019659005,
-0.010026656,
-0.015589197,
0.005882915,
-0.009076095,
-0.06765176,
0.23478147,
0.035741087,
-0.0047246395,
-0.022475483,
0.02175728,
0.06303275,
0.03830408,
-0.019799829,
0.017701555,
-0.06900367,
-0.018363426,
-0.018490167,
0.015518785,
0.020489866,
0.0077945986,
0.025038475,
-0.065454915,
0.018138109,
-0.004545089,
-0.022193834,
-0.028488658,
0.014321783,
0.009899914,
0.07334105,
0.014617513,
0.018814063,
0.005527335,
-0.02991098,
-0.00032015415,
-0.020489866,
0.028981542,
-0.010547704,
0.029460344,
-0.047795605,
-0.025460947,
0.01188553,
-0.026390385,
-0.050358597,
-0.0017858221,
0.0048971483,
-0.0100759445,
-0.019588593,
-0.017926872,
0.00071336067,
-0.014561183,
0.040641755,
-0.016391892,
0.042838607,
0.03540311,
-0.06928532,
0.07705879,
-0.057568777,
0.018011367,
-0.025489112,
-0.047373135,
0.0059674093,
-0.06415933,
-0.06624353,
-0.012695268,
0.02170095,
0.028530907,
-0.0015534628,
-0.021968516,
0.03174169,
0.037994266,
0.018335262,
-0.011047629,
-0.0024556154,
-0.0012709349,
0.0021686868,
0.021827692,
0.006537746,
-0.030361617,
-0.039458834,
0.020785596,
0.008548006,
0.0064814165,
0.016166575,
0.026263643,
-0.014969572,
-0.0077312277,
-0.027010009,
0.025235629,
-0.047401298,
0.011040588,
0.03438918,
-0.021855857,
0.003557562,
0.0077101043,
0.00032257457,
-0.011892572,
0.0340512,
0.020954585,
-0.004450033,
-0.0026404466
] | To load a model in 4-bit for inference with multiple GPUs, you can control how much GPU RAM you want to allocate to each GPU. For example, to distribute 1GB of memory to the first GPU and 2GB of memory to the second GPU:
py
max_memory_mapping = {0: "1GB", 1: "2GB"}
model_name = "bigscience/bloom-3b"
model_8bit = AutoModelForCausalLM.from_pretrained(
model_name, device_map="auto", load_in_8bit=True, max_memory=max_memory_mapping
) |
[
0.027712787,
-0.005090826,
-0.02111383,
-0.0056962026,
0.020561557,
-0.014500712,
0.009912596,
-0.023733588,
0.009855953,
0.052338507,
0.009006302,
-0.019372044,
0.020165052,
-0.05686998,
0.009438207,
0.03908395,
0.010663121,
-0.021127991,
-0.052735012,
0.009353243,
-0.0037526258,
0.018210854,
-0.103827365,
-0.02526296,
-0.03358954,
-0.027174674,
0.03044583,
-0.035826955,
0.10631967,
0.034835696,
-0.009657701,
-0.027387086,
-0.026240058,
-0.03744129,
0.00016760695,
-0.023167154,
0.004556254,
-0.018168373,
-0.022147572,
-0.03775283,
0.03378779,
-0.024186734,
0.023025544,
-0.057266485,
-0.044153534,
-0.018706486,
0.021708585,
-0.01413961,
-0.03894234,
-0.018409107,
-0.024314182,
0.02027834,
-0.017162953,
0.011342842,
-0.014727286,
-0.012893455,
0.015052985,
0.021581138,
-0.0002798981,
0.009055865,
0.060778376,
-0.023407888,
0.020759808,
-0.06564971,
0.036053527,
0.009997562,
-0.007285758,
0.02063236,
0.0022161733,
-0.010238295,
-0.047325566,
0.019357884,
-0.028321704,
-0.056530118,
-0.02376191,
0.016554035,
0.020844774,
0.013148351,
0.012319941,
0.0172904,
0.044295143,
0.011845552,
-0.0048465515,
-0.03908395,
-0.031295482,
-0.035515416,
0.03424094,
-0.0036145574,
-0.010925097,
-0.032683246,
-0.024993904,
0.023733588,
0.020986382,
0.030474152,
-0.03407101,
0.03228674,
-0.0515455,
0.04327556,
0.042822417,
-0.06712244,
0.009367404,
0.08173644,
-0.028732369,
-0.0026958722,
-0.022246698,
0.040585,
0.026509114,
-0.015251237,
-0.017063826,
-0.022374146,
0.012128769,
0.037979405,
0.010047124,
-0.019258758,
-0.0054483875,
-0.002511781,
-0.030700726,
0.022869775,
-0.022359984,
-0.02959618,
0.012121689,
-0.03358954,
0.01330412,
0.007197253,
0.033872757,
-0.040669966,
-0.028548276,
0.018848093,
-0.05188536,
-0.011286199,
-0.015930958,
-0.009105427,
-0.009955078,
0.052168578,
-0.0015930958,
0.009905515,
-0.0082840985,
-0.0016107969,
-0.01047903,
-0.04021682,
0.006368843,
-0.038630802,
0.017885156,
0.1000889,
-0.026395828,
0.021864355,
0.019782709,
-0.027854396,
-0.037186395,
0.022359984,
-0.036365066,
0.008277018,
-0.03840423,
0.039027307,
-0.03812101,
0.021071346,
-0.04086822,
0.029171355,
0.0046341387,
0.004262416,
0.0472406,
-0.0045951963,
-0.021127991,
0.0435871,
-0.0057599265,
0.030190935,
-0.017998442,
-0.0051722513,
-0.022020124,
-0.0042978185,
0.03160702,
0.004103107,
0.03475073,
0.00003166831,
0.05126228,
0.041349687,
0.0708609,
-0.008376144,
-0.0051651704,
0.02343621,
-0.02179355,
-0.014613999,
0.005770547,
0.022331662,
0.010500272,
-0.010061285,
-0.006429027,
0.008723085,
-0.026070127,
-0.012723525,
0.00764686,
0.05188536,
-0.027967682,
0.045399692,
-0.058116134,
0.0037597062,
0.0067264047,
-0.01662484,
-0.011179992,
-0.060438514,
0.006751186,
0.03594024,
0.024540756,
-0.0021878516,
-0.06751894,
0.026409987,
0.017616099,
0.02843499,
-0.043020666,
-0.0032552257,
0.026296701,
0.023691105,
-0.018140052,
0.0026905618,
0.03874409,
0.016837252,
-0.00096470804,
0.0054660887,
0.0027330443,
-0.016185854,
0.025206316,
-0.011484451,
0.033872757,
0.007299919,
0.023337083,
-0.065763,
0.024356665,
0.040528357,
0.010266618,
0.05307487,
0.023846874,
0.049647946,
-0.021666102,
0.036846537,
0.008404465,
0.02163778,
0.032683246,
0.011080867,
-0.007745986,
0.033136394,
0.0040004407,
0.0039119353,
0.015605259,
-0.005671421,
0.017219596,
-0.018437428,
0.008461108,
-0.012454469,
-0.026367506,
0.014196253,
-0.0038198896,
0.05007277,
0.005420066,
-0.03242835,
-0.07578888,
0.0011700403,
0.03724304,
0.01062772,
0.016723966,
-0.038460873,
0.0031012264,
0.01913131,
-0.031210518,
-0.025532015,
0.024186734,
0.08740078,
0.002194932,
0.009211634,
-0.011937598,
-0.016582357,
-0.018975541,
-0.032456674,
-0.06083502,
-0.014769768,
-0.04874165,
-0.022048445,
0.009919677,
-0.040358428,
0.00814957,
-0.020334983,
0.019881835,
0.02827922,
-0.014005083,
0.07867769,
0.041009825,
-0.005020022,
-0.017063826,
0.034269262,
-0.030814013,
-0.0058236504,
-0.032343384,
-0.03690318,
-0.008496511,
-0.047155637,
0.012369504,
-0.007632699,
-0.03191856,
0.01546365,
0.0056997426,
0.03905563,
-0.022529915,
0.0074981707,
0.022501593,
0.025305443,
0.0022232537,
0.028746529,
0.029426249,
-0.051290605,
0.036166813,
0.0077176644,
-0.011144591,
0.04191612,
0.0019577378,
0.014075886,
-0.031040587,
0.03324968,
0.03891402,
-0.006737025,
0.0006421061,
-0.0272738,
0.00040292047,
-0.014330782,
-0.024356665,
-0.05140389,
-0.019442849,
0.056388512,
-0.06066509,
-0.06089166,
0.009126669,
-0.01981103,
-0.0031985824,
0.007930077,
-0.0050129415,
0.04171787,
0.0019064046,
0.045994446,
-0.04075493,
0.013226235,
0.000110521025,
-0.024498273,
-0.0042447154,
-0.036535,
0.025843555,
0.038687445,
0.026693204,
0.02162362,
0.06564971,
-0.027712787,
-0.013488211,
-0.043020666,
0.0010523283,
0.036648285,
0.013204994,
-0.006397165,
0.013382005,
0.019711906,
-0.025008064,
-0.0033702827,
-0.0070591844,
-0.008963819,
0.067405656,
0.039961923,
0.026537435,
0.014656481,
-0.021821871,
0.034637444,
-0.032853175,
0.014684803,
0.060098656,
-0.03341961,
0.02495142,
-0.0038517516,
-0.0038446712,
-0.02626838,
0.028689886,
-0.0339294,
0.02843499,
0.018338302,
0.053754594,
-0.019244598,
-0.02496558,
0.0037667865,
0.01628498,
0.020575717,
0.009218714,
0.023337083,
-0.012957179,
0.010450709,
-0.019357884,
-0.025135512,
0.01447947,
0.041972764,
0.0034871097,
0.013573176,
-0.030389188,
-0.05471753,
0.056643408,
0.013070466,
0.0034817995,
0.010868453,
0.081283286,
-0.041009825,
0.03044583,
0.039508775,
0.0021241277,
-0.038064368,
-0.023393726,
0.027033066,
0.01379975,
0.0039048549,
-0.022529915,
-0.01081889,
-0.035770312,
-0.002541873,
0.022572398,
0.021142151,
-0.017219596,
-0.011498611,
0.02010841,
-0.0068113697,
0.06434691,
-0.022501593,
-0.03789444,
0.023011385,
0.041434653,
-0.044210177,
0.00482177,
-0.059645507,
-0.017573617,
0.04772207,
-0.028321704,
-0.03214513,
-0.022714006,
0.034722406,
-0.07544902,
0.063893765,
0.024073448,
0.017077986,
-0.012758927,
-0.02529128,
-0.015095468,
0.020689005,
0.002028542,
-0.0061493497,
-0.0049492177,
0.004124348,
0.028718207,
0.0039296364,
0.0601553,
0.040641643,
0.043955285,
-0.031522054,
0.04370039,
-0.039565418,
-0.0046766214,
0.018975541,
-0.029029746,
-0.011328681,
0.03356122,
0.030729048,
-0.014090047,
-0.050497595,
0.044351786,
-0.03075737,
-0.04537137,
0.06383712,
-0.0037703267,
0.014684803,
0.044436753,
0.028449152,
-0.021906838,
0.04327556,
0.048118573,
-0.02659408,
0.015718546,
-0.009629379,
0.036025207,
-0.024300022,
-0.018678164,
0.007781388,
-0.048826616,
0.021411208,
-0.0013851083,
-0.014642321,
0.011158751,
-0.04522976,
0.013417407,
0.055623826,
-0.028463311,
0.05437767,
-0.0064042453,
-0.020306662,
0.022289181,
-0.0016603599,
-0.012404906,
-0.013481131,
-0.030870657,
0.017870994,
0.04823186,
0.029851075,
0.0013550165,
-0.028307542,
-0.015109628,
0.038800735,
-0.006021902,
-0.016908057,
-0.023917679,
-0.014373264,
0.01947117,
-0.029086389,
-0.019074667,
0.0022356445,
-0.0059794197,
0.011725185,
0.01680893,
-0.029369606,
-0.006634359,
-0.0141891735,
0.008029203,
0.02227502,
-0.0309273,
-0.04304899,
-0.030644083,
0.0021860814,
0.0046872417,
0.00914791,
-0.0052111936,
-0.015435329,
-0.0461927,
-0.033136394,
0.06751894,
-0.0059298566,
-0.018904736,
-0.015237076,
-0.03560038,
-0.006662681,
0.012681043,
0.017502813,
-0.039876956,
-0.026650723,
-0.022827292,
0.002858722,
-0.059985366,
-0.012518193,
-0.054349348,
-0.008015042,
-0.0034127652,
0.005271377,
-0.01280141,
-0.012213735,
-0.024186734,
0.047495496,
0.0169647,
0.07680846,
-0.027217157,
-0.017715225,
0.005083746,
-0.043643743,
-0.008199133,
0.0074344473,
-0.031833593,
0.049364727,
-0.031946883,
0.00532094,
-0.030530795,
-0.056530118,
-0.021524495,
-0.05786124,
-0.0071583106,
-0.04902487,
0.010252456,
-0.0059723393,
-0.009048784,
0.030134292,
-0.021680264,
-0.029086389,
0.015435329,
-0.05075249,
-0.03959374,
0.010925097,
-0.028548276,
-0.0024728386,
-0.003692442,
-0.012900536,
0.021991802,
-0.051120676,
0.0059935804,
0.031946883,
0.020561557,
-0.0049633784,
-0.023039706,
0.012022563,
0.02294058,
0.008121248,
-0.028350025,
-0.033164714,
-0.026877297,
-0.0038694527,
-0.037328005,
-0.048146896,
-0.024370825,
0.022813132,
0.008064605,
0.024597399,
0.004860712,
-0.037979405,
-0.030814013,
-0.058909144,
0.02342205,
-0.016738126,
0.021807712,
0.05502907,
-0.03220178,
0.002440977,
0.034184296,
-0.034155972,
-0.006397165,
-0.015180433,
0.033136394,
-0.013403246,
-0.045824517,
0.023181314,
-0.01546365,
-0.026169254,
-0.04885494,
-0.0131554315,
0.0059617185,
-0.030644083,
-0.03177695,
-0.03744129,
0.0068149096,
0.014557355,
-0.023407888,
0.043757033,
-0.02793936,
0.01927292,
0.014061726,
0.0065316926,
-0.05432103,
0.020575717,
0.0038021887,
0.01263148,
0.008206214,
-0.009728505,
0.01014625,
-0.038602483,
0.0009049669,
0.049987808,
-0.0073424014,
0.038517516,
0.030162614,
0.034977302,
0.041123115,
-0.026098449,
-0.016384106,
0.0019984501,
-0.020504912,
-0.050950743,
-0.027726948,
0.036704928,
0.0058236504,
-0.0065104514,
-0.022685684,
-0.00023896438,
0.06117488,
0.0120084025,
-0.0068113697,
-0.046985704,
-0.0036464194,
-0.053471375,
-0.030530795,
-0.0020250017,
-0.021821871,
-0.01644075,
-0.003908395,
-0.007069805,
-0.038998984,
0.011973,
-0.013792669,
-0.014082967,
-0.041944444,
-0.033023108,
0.014713124,
-0.06683922,
-0.050271023,
-0.024484113,
-0.0461927,
0.021666102,
0.058455996,
-0.013566095,
0.021425368,
0.0024657582,
0.045966126,
-0.020504912,
-0.016327461,
-0.0375829,
0.0067264047,
-0.03443919,
0.014642321,
-0.028010165,
0.016525714,
0.03206017,
-0.012440308,
-0.0041208076,
0.036478356,
-0.019853514,
-0.027500374,
0.0006505141,
0.026990583,
-0.0030233418,
-0.0182675,
-0.022898097,
0.018989703,
-0.07244692,
-0.01246155,
-0.0064254864,
-0.004471289,
-0.009537334,
0.022997223,
-0.0014063496,
0.05287662,
0.03571367,
0.019556137,
-0.002295828,
0.014557355,
0.04004689,
0.013254557,
0.044635005,
0.04106647,
-0.0012275688,
-0.03894234,
0.040924862,
0.06287418,
-0.014415747,
0.009530253,
0.02495142,
-0.006524612,
-0.020816451,
-0.011958839,
-0.0012257987,
0.051772073,
0.03854584,
0.004775747,
-0.0068042893,
-0.033986043,
-0.019046346,
-0.02877485,
-0.043332204,
-0.013679382,
0.015038825,
-0.072560206,
0.04387032,
-0.007576056,
-0.023747748,
0.00059475575,
0.03429758,
0.0169647,
-0.01628498,
-0.010379904,
0.025064707,
0.04953466,
-0.05468921,
-0.036506675,
0.00365704,
0.00108065,
-0.05851264,
-0.033362966,
-0.003025112,
0.05737977,
0.008369063,
-0.007703503,
-0.056530118,
-0.0064927503,
0.014281219,
0.03273989,
-0.046164375,
-0.020646522,
0.0037597062,
0.036195137,
-0.06938817,
0.009332001,
-0.0142883,
0.037497934,
0.024356665,
0.030332545,
-0.013240396,
0.005505031,
0.048826616,
-0.041944444,
0.03721472,
-0.0037597062,
0.029964361,
0.0073919646,
0.016610678,
-0.025503693,
0.05352802,
0.008015042,
0.0538962,
0.026509114,
0.035685346,
0.037922762,
-0.0031330884,
-0.0036057069,
0.043530457,
0.016667323,
-0.002609137,
0.02129792,
-0.0011417187,
-0.012022563,
-0.009544414,
0.004230554,
0.0169647,
0.002761366,
0.0036110173,
0.017403686,
-0.006124568,
0.0018745427,
-0.022572398,
-0.0041172677,
0.0012780168,
0.00831242,
0.041349687,
-0.012935938,
-0.007384884,
0.009112508,
0.028350025,
0.017729387,
0.027684465,
0.05134725,
0.019513654,
0.045937803,
-0.027401248,
0.023889357,
0.0022409547,
-0.0040995665,
0.014111289,
-0.019499492,
-0.04024514,
-0.0029525375,
0.008730165,
-0.04888326,
0.022699846,
-0.031182196,
-0.028519955,
-0.070464395,
0.023138832,
-0.040500037,
0.01181015,
0.011937598,
-0.0028304001,
-0.031068908,
-0.009332001,
-0.026650723,
-0.0017701065,
0.061118234,
0.015067146,
0.0022922878,
0.09312176,
0.035373807,
0.027287962,
-0.008361983,
-0.015605259,
-0.04245423,
0.04075493,
0.021538656,
-0.013913036,
0.01811173,
-0.0027967682,
-0.039338846,
0.011123349,
0.009105427,
-0.06751894,
-0.037328005,
-0.019995123,
0.0047969883,
-0.011873874,
-0.0043934043,
0.0854749,
0.04222766,
0.027174674,
-0.02611261,
0.0070662647,
-0.049279764,
-0.012787249,
-0.02861908,
0.032994784,
-0.01714879,
-0.028675724,
-0.008843452,
-0.078564405,
-0.020490753,
-0.02376191,
-0.0013541314,
-0.0002635246,
0.033334646,
0.07981056,
0.017885156,
0.011045464,
-0.008418626,
0.0091974735,
-0.0052784574,
0.06434691,
-0.006722864,
0.08349238,
0.03526052,
0.032173455,
-0.044663325,
-0.006269717,
0.0152795585,
-0.017545296,
-0.0029472273,
-0.009947998,
0.05440599,
-0.01927292,
-0.02791104,
-0.023068028,
0.028265059,
-0.0070096217,
-0.043813676,
-0.044719968,
0.02462572,
-0.05701159,
-0.039310522,
-0.04259584,
0.009296599,
0.0029047446,
-0.022105088,
-0.031125551,
-0.03540213,
0.23676944,
0.02973779,
0.039848637,
0.01330412,
0.053103194,
0.06270425,
0.011774749,
-0.011080867,
0.017417848,
-0.021864355,
0.029624501,
-0.019145472,
-0.015477811,
-0.004892574,
-0.010875534,
0.06938817,
-0.030898979,
-0.014868895,
0.0056962026,
-0.047438852,
-0.04157626,
0.009558575,
0.024215056,
0.02360614,
-0.0011275578,
0.0025985162,
0.0010116159,
-0.015888475,
-0.00045447482,
-0.038829055,
-0.00648567,
-0.019400368,
0.022714006,
-0.00019028645,
-0.01513795,
0.011909276,
-0.0026533895,
-0.04273745,
-0.0052111936,
0.022544077,
-0.00046288283,
-0.060721733,
0.0072043333,
0.0020515535,
0.003674741,
0.023563657,
-0.019428689,
0.045116473,
0.03625178,
-0.042171016,
0.05437767,
-0.053018227,
0.014012163,
-0.009296599,
-0.011888035,
0.0010850752,
-0.06780216,
-0.067745514,
0.009926757,
0.021878516,
0.05126228,
-0.011548175,
-0.027174674,
-0.0016382335,
0.012723525,
0.03358954,
-0.016837252,
-0.0024338963,
-0.01862152,
-0.027387086,
-0.0107480865,
-0.019046346,
-0.01995264,
-0.012341182,
0.040103532,
0.041632902,
0.014698964,
0.02295474,
-0.049364727,
-0.022756489,
-0.016908057,
0.01764442,
0.018026764,
-0.013551935,
0.010663121,
0.0039508776,
-0.042539198,
0.04624934,
-0.018026764,
0.03146541,
0.027925199,
0.048146896,
0.029199677,
-0.0302759,
0.016398266
] |
ONNX Runtime (ORT) is a model accelerator that supports accelerated inference on Nvidia GPUs, and AMD GPUs that use ROCm stack. ORT uses optimization techniques like fusing common operations into a single node and constant folding to reduce the number of computations performed and speedup inference. ORT also places the most computationally intensive operations on the GPU and the rest on the CPU to intelligently distribute the workload between the two devices.
ORT is supported by 🤗 Optimum which can be used in 🤗 Transformers. You'll need to use an [~optimum.onnxruntime.ORTModel] for the task you're solving, and specify the provider parameter which can be set to either CUDAExecutionProvider, ROCMExecutionProvider or TensorrtExecutionProvider. If you want to load a model that was not yet exported to ONNX, you can set export=True to convert your model on-the-fly to the ONNX format: |
[
0.030968545,
-0.009188309,
0.0066867224,
0.0010289373,
-0.0064420416,
-0.04031754,
0.032254033,
-0.023810722,
-0.0022806434,
0.06333944,
0.0073696375,
-0.043911062,
0.03187423,
-0.04052205,
-0.007603362,
0.015192117,
0.024599543,
-0.028529042,
-0.028426787,
-0.011321048,
0.013965061,
-0.035643045,
-0.08437468,
-0.01950142,
-0.0321956,
0.002556366,
0.017441718,
0.0075011076,
0.072746865,
0.03786343,
-0.018288972,
0.008341056,
0.034240693,
-0.013147024,
-0.015907899,
-0.026586205,
0.0034730055,
0.004546679,
-0.030033646,
-0.0048534432,
0.029975215,
-0.036753237,
0.03733755,
-0.037512843,
-0.06100219,
-0.01343918,
0.0068510603,
-0.024453465,
-0.014921872,
-0.06333944,
-0.01130644,
-0.01817211,
-0.020918377,
0.054282602,
-0.020640828,
-0.020582397,
0.019705929,
0.0035679562,
-0.043472826,
-0.0035332628,
0.037220687,
0.035701476,
0.008414095,
-0.06900727,
0.038184803,
0.045751642,
-0.056999654,
0.007252775,
-0.006876624,
-0.0106636975,
-0.055012994,
0.016667506,
-0.020348672,
-0.029770706,
-0.010466492,
-0.019720536,
0.031377565,
-0.020947592,
-0.0027006178,
0.038038723,
-0.005784691,
0.0026969658,
-0.008026988,
0.014439815,
-0.022583665,
-0.043911062,
0.04990026,
-0.029697666,
-0.007910126,
0.003449268,
0.005324545,
0.03739598,
-0.012263252,
0.030968545,
-0.004612414,
0.06608571,
-0.0065187328,
0.033013638,
0.008121939,
-0.00283574,
0.025505226,
0.08922447,
-0.050309278,
0.017763091,
-0.00020256916,
-0.010225464,
0.025300717,
0.011445215,
-0.003980627,
-0.016536035,
-0.0057153036,
-0.016711328,
0.0018141067,
0.0030475531,
-0.034971084,
0.005003173,
0.025081601,
0.022846606,
-0.045605566,
-0.033890106,
0.013870111,
-0.01074404,
0.01950142,
-0.014220698,
0.0015000389,
-0.04104793,
0.010678305,
0.042742435,
-0.02348935,
0.022598274,
-0.012051439,
0.021531904,
0.026907576,
0.037133038,
0.029420119,
0.009407426,
0.022452196,
0.02841218,
0.030384233,
-0.023912976,
0.018931715,
-0.024000622,
0.0071651284,
0.08595232,
0.0168428,
-0.01750015,
0.02521307,
-0.06047631,
-0.018639559,
0.024336603,
-0.043940276,
0.0260165,
0.0047804043,
0.05574338,
-0.016550643,
0.028353749,
0.006285008,
-0.0179676,
-0.0007751266,
-0.007161476,
0.008260714,
-0.013293102,
-0.00085455657,
0.07362334,
-0.029376294,
0.015615743,
-0.009443945,
0.016492212,
-0.029522372,
-0.025154639,
-0.0075814505,
0.0031845013,
-0.021444257,
0.017850738,
0.03985009,
0.029595412,
0.014929176,
-0.0001784891,
0.027798653,
0.0028941713,
0.015382018,
0.006372655,
-0.019413773,
0.008019685,
0.024380425,
0.0009120748,
0.0126503585,
-0.010240071,
-0.016419172,
0.030384233,
0.012387418,
0.037220687,
0.0033908365,
0.042216554,
-0.040843423,
0.04107715,
-0.01709113,
-0.006281356,
-0.0006085064,
-0.04569321,
0.011912664,
0.013599866,
0.0036519512,
0.0106636975,
-0.028572867,
-0.014746578,
-0.02734581,
0.030588742,
-0.009086055,
0.01210987,
0.036577944,
0.05410731,
-0.015791036,
0.0055254023,
0.023635428,
0.0028046984,
-0.0007527584,
-0.0016826364,
0.010283895,
0.016550643,
0.025037777,
0.006292312,
0.0728053,
-0.02348935,
0.0073440736,
-0.003518655,
-0.002541758,
-0.007771352,
0.038038723,
0.010817079,
0.040843423,
0.057028867,
0.026571596,
0.045868505,
-0.012971731,
0.0023810721,
0.06947472,
0.011167667,
-0.024000622,
0.01888789,
-0.039674796,
0.020319456,
0.02521307,
0.023796113,
-0.00539028,
-0.00020519401,
-0.028791983,
-0.021210533,
-0.029887568,
0.03161129,
-0.026250225,
0.024511896,
-0.0059271166,
-0.009933307,
-0.06865668,
-0.045342624,
0.0043129544,
0.034766573,
-0.03400697,
-0.045430273,
0.020874552,
0.031026976,
-0.031085407,
-0.0065187328,
0.024205131,
0.07286373,
-0.03634422,
0.0372499,
0.010335022,
-0.019209264,
-0.009874876,
-0.005514446,
-0.06608571,
0.0065917717,
-0.027930122,
-0.0026969658,
0.023533173,
-0.04881928,
0.019369949,
-0.012014919,
-0.020713868,
-0.009392818,
-0.012854868,
0.022466803,
0.022481412,
0.035029516,
-0.030647174,
0.037805,
-0.0071140006,
0.054983776,
-0.021546511,
-0.012789133,
-0.0063251792,
-0.051536333,
-0.003951411,
0.0038528084,
-0.0062959637,
-0.0072089517,
-0.0061900574,
0.0075668427,
-0.008991104,
0.015425841,
-0.0030840728,
-0.015937114,
-0.007537627,
0.0005687914,
0.00029055835,
-0.03327658,
0.044933606,
0.032020308,
-0.017120346,
-0.0044298167,
-0.00801238,
0.052938685,
-0.0082168905,
0.03473736,
0.043881845,
-0.0024869787,
-0.02687836,
-0.0119784,
-0.0068693203,
0.008874241,
-0.015791036,
0.019340733,
-0.021429649,
0.056064755,
-0.010298503,
-0.0875884,
0.019910438,
-0.022247687,
-0.014542069,
0.017792307,
-0.04943281,
0.03240011,
0.022276903,
0.013395357,
-0.019910438,
-0.019209264,
-0.016609075,
-0.0006573512,
0.038739897,
-0.021444257,
-0.019486811,
0.049783397,
0.0042180037,
-0.013687513,
0.0327507,
-0.030121293,
-0.030442664,
-0.018259756,
0.011825018,
0.018522697,
0.035993632,
0.015717998,
0.027900906,
0.04212891,
-0.011956488,
0.0049922173,
0.03307207,
0.03473736,
0.051653195,
0.037074607,
0.025592873,
0.024789445,
-0.008063508,
-0.008896153,
-0.011708155,
0.008414095,
0.07052648,
-0.0290111,
0.0278863,
0.0058139064,
-0.028309925,
0.021502689,
0.011386784,
-0.035496965,
0.06339787,
0.024862483,
0.05150712,
-0.016200054,
-0.031786583,
-0.015002215,
0.010042866,
0.035146378,
0.017251818,
0.038243234,
0.0020670043,
-0.011562077,
0.0068364525,
-0.007559539,
-0.0071432167,
-0.001869799,
-0.003661081,
-0.023065723,
-0.0072819907,
-0.03979166,
0.015630351,
0.07531784,
0.037162255,
0.026513165,
0.023474742,
-0.02369386,
0.015513488,
0.049929477,
0.0011823191,
-0.00021363914,
-0.03891519,
0.028777376,
-0.0144909425,
-0.018201325,
-0.01224134,
-0.042859297,
-0.010758648,
0.009772621,
-0.018741813,
0.018128285,
-0.009779925,
-0.0033963146,
-0.0074171126,
0.07099393,
-0.022130825,
-0.039148916,
-0.02575356,
0.035234023,
0.03026737,
-0.03672402,
-0.01602476,
-0.037892643,
-0.019004753,
0.03280913,
-0.020480143,
-0.014717363,
-0.019735144,
-0.05854808,
-0.04843948,
0.053727504,
0.052851036,
-0.014176874,
-0.0350003,
-0.032341678,
-0.0041559204,
0.0032575405,
0.013577954,
-0.021064455,
0.021984747,
-0.020597005,
0.011372176,
0.0065990756,
-0.020071123,
-0.026790714,
0.02135661,
-0.039499503,
0.01061257,
-0.036548726,
-0.01637535,
-0.00961924,
-0.021882491,
-0.022072393,
0.015849467,
0.010882814,
-0.016156232,
-0.032779913,
0.034941867,
-0.04312224,
-0.06409904,
0.003292234,
0.003359795,
0.0023354227,
-0.00049620884,
0.01843505,
-0.025198463,
0.062287677,
0.013585258,
-0.0055582696,
0.011430607,
0.006427434,
0.043268315,
-0.0030092078,
-0.0047146687,
-0.021327395,
-0.003666559,
0.044407725,
-0.023124155,
-0.026221009,
0.0039112396,
-0.055714168,
0.0030238156,
0.025169248,
-0.003502221,
0.021517295,
0.009042231,
-0.032984424,
0.014220698,
-0.039207347,
0.014322952,
-0.027784044,
-0.018055247,
0.024321994,
0.071695104,
0.026206402,
0.07263,
0.009261348,
-0.025928853,
0.007625274,
-0.021911707,
-0.00061535375,
-0.019384557,
-0.0032630183,
0.012234036,
-0.0168428,
-0.01809907,
-0.002616623,
0.014395991,
-0.03640265,
0.018581128,
-0.0047365804,
0.03421148,
-0.029171785,
-0.04151538,
0.029361688,
-0.014081923,
-0.050543003,
-0.025227679,
0.01343918,
0.009188309,
0.029420119,
-0.009122574,
-0.05889867,
-0.06310572,
-0.032224815,
0.036899313,
-0.0120076155,
-0.0083994875,
-0.00838488,
-0.0690657,
-0.019545242,
0.0045831986,
0.024526505,
-0.035964414,
0.013789767,
-0.031143839,
0.02234994,
-0.046891052,
-0.005766431,
-0.01836201,
0.005660524,
-0.017324856,
0.00024833268,
0.00029329731,
-0.014921872,
0.011372176,
0.024453465,
0.02175102,
0.02794473,
-0.025140032,
-0.032925993,
-0.003436486,
-0.015352802,
-0.037279118,
0.038564604,
-0.014973,
0.045488704,
-0.0121171735,
0.029551588,
-0.0260165,
-0.034415986,
-0.0017328508,
-0.008932672,
0.029113354,
-0.06088533,
0.02348935,
-0.011795802,
0.02109367,
0.018084463,
0.033773243,
-0.032429326,
0.03993774,
-0.04224577,
-0.016477603,
0.022715136,
-0.045751642,
0.008728163,
-0.0016881144,
0.0045503313,
0.037834212,
-0.037483625,
0.01656525,
0.051740844,
-0.020129554,
0.036315,
-0.045430273,
-0.003808985,
0.012058742,
-0.000710761,
0.012000311,
0.03240011,
-0.038564604,
0.005357412,
-0.054516327,
-0.040901855,
-0.011773891,
0.0331305,
0.031114623,
-0.00063224405,
0.050601434,
-0.012175605,
-0.038243234,
-0.055451225,
0.035234023,
-0.0034675277,
0.024628758,
-0.0063142236,
0.03026737,
-0.025534442,
0.045868505,
-0.04204126,
-0.0120076155,
-0.035526183,
0.060593173,
-0.004703713,
-0.029975215,
0.009436642,
-0.00997713,
-0.045751642,
-0.05229594,
-0.017354071,
0.0510981,
-0.06567669,
-0.037834212,
0.02049475,
-0.022072393,
-0.0047329287,
0.0037870733,
0.029975215,
0.008026988,
-0.016506819,
0.015644958,
-0.020611612,
-0.018639559,
0.020114947,
0.06100219,
-0.043998707,
-0.019399164,
-0.027915515,
0.0041741803,
-0.044758312,
-0.010086689,
0.018084463,
-0.0013539608,
0.030793251,
0.05276339,
-0.0021254355,
0.04630674,
0.0037651616,
-0.007325814,
0.040638912,
-0.04937438,
-0.058840238,
-0.029902175,
0.020392494,
0.012314379,
0.04344361,
-0.004937438,
0.03672402,
-0.009560809,
0.0181575,
0.0035661303,
-0.06509238,
0.03999617,
-0.029756097,
0.022539843,
0.03161129,
-0.03459128,
-0.019516027,
0.029785313,
0.00078608247,
-0.05004634,
-0.0124677615,
0.044290863,
-0.030910114,
-0.012292468,
-0.024453465,
0.02015877,
-0.055334363,
-0.013278495,
-0.025928853,
-0.026469342,
-0.012591927,
-0.0073550297,
-0.019749751,
-0.004046362,
-0.0063945665,
0.033714812,
0.008114635,
-0.0046014586,
-0.028456002,
0.0036793407,
-0.006036675,
-0.027564928,
-0.07216255,
0.054253384,
0.025651304,
-0.009568112,
-0.009524289,
0.02755032,
0.008151155,
-0.05980435,
-0.013687513,
0.040288325,
-0.04166146,
-0.01929691,
0.020684652,
0.037220687,
-0.07607745,
0.04093107,
-0.033948537,
-0.02375229,
-0.049929477,
0.031698935,
0.0017757613,
0.027711006,
-0.0033397092,
0.009611935,
0.025958069,
0.022729743,
0.028017769,
0.011109236,
0.037892643,
0.0021838667,
-0.005382976,
-0.06795551,
-0.011598597,
0.048205756,
-0.01151095,
0.0209622,
-0.01270879,
-0.014973,
-0.04046362,
0.00072719477,
0.020553181,
0.032575402,
0.025110817,
-0.058372788,
-0.020377887,
-0.017850738,
-0.010437276,
0.030033646,
-0.10272208,
-0.056035537,
-0.0009271391,
-0.05477927,
0.04616066,
0.00012553582,
0.0065260367,
0.00069843564,
0.015805645,
-0.009071447,
0.016755152,
0.011474431,
-0.0121536935,
0.010583354,
-0.062521406,
0.0034017926,
-0.0096703665,
-0.006405522,
-0.018128285,
-0.06661159,
0.025169248,
0.020202594,
-0.007249123,
-0.019983476,
-0.04318067,
0.010247375,
-0.027068261,
0.02049475,
-0.040200677,
-0.0057116514,
-0.031260703,
0.019442989,
-0.02440964,
-0.012000311,
0.0007920169,
0.00868434,
0.041895185,
0.035964414,
0.025928853,
0.030647174,
0.07818097,
-0.0070519177,
0.031903446,
0.010656393,
0.031494427,
-0.027477281,
-0.011825018,
0.008392184,
0.024833268,
0.019267695,
0.030062862,
-0.014593197,
0.030822467,
0.0110435,
-0.03833088,
-0.0124677615,
0.04145695,
0.032224815,
-0.033101287,
-0.015528096,
-0.009801837,
0.011854233,
0.007610666,
-0.004637978,
-0.005156555,
0.009385514,
-0.0033378834,
-0.0057773865,
-0.05004634,
-0.001263575,
0.020991415,
-0.024073662,
-0.026732283,
-0.007844391,
0.02814924,
0.02049475,
0.0039294995,
-0.018537303,
0.04437851,
0.020319456,
0.056649067,
0.045868505,
-0.004798664,
0.050163202,
0.017427111,
0.025373757,
-0.0049593495,
-0.017733876,
-0.0008915326,
-0.039966952,
-0.017748483,
0.03646108,
-0.036607157,
-0.028470611,
-0.038155586,
-0.024205131,
-0.013059378,
-0.057730045,
0.028309925,
-0.060242586,
-0.0033050159,
0.049257517,
0.0015794688,
-0.06187866,
0.019530635,
-0.008194978,
0.050309278,
0.03891519,
0.063456304,
0.0023555085,
0.066261,
0.014264521,
0.0055692256,
0.04937438,
0.03020894,
-0.04952046,
-0.017529365,
0.037571274,
-0.010232767,
-0.005470623,
-0.021853276,
-0.05308476,
0.033890106,
-0.017339464,
-0.018537303,
-0.034153048,
-0.00945125,
0.00058385567,
-0.057145733,
0.009086055,
0.058139063,
0.044758312,
-0.002167433,
-0.025797382,
0.0029106052,
-0.011963792,
-0.013899326,
0.013161632,
0.03318893,
-0.037133038,
-0.049783397,
-0.0008107332,
-0.023036508,
-0.038009506,
-0.02474562,
-0.028017769,
-0.015528096,
0.013650994,
0.030705605,
0.041106362,
0.034153048,
-0.031961877,
-0.011379479,
0.028762767,
0.011905361,
0.02854365,
0.065442964,
0.029317863,
-0.010422668,
-0.0043750373,
-0.05141947,
0.02787169,
-0.027112085,
-0.0044444245,
-0.044144787,
0.0110435,
-0.040288325,
-0.044962823,
-0.027112085,
0.014476335,
-0.03374403,
-0.04119401,
-0.020859946,
0.0074171126,
-0.029317863,
-0.02440964,
-0.047650658,
0.021122886,
-0.031786583,
-0.0028959974,
0.025607482,
-0.042012047,
0.25522757,
0.043385178,
0.014753883,
0.037571274,
0.027827868,
0.0808688,
0.03321815,
-0.03678245,
0.007610666,
-0.029449334,
-0.010378845,
-0.042537928,
0.0030439012,
0.040113032,
-0.017719267,
0.04671576,
-0.048147324,
-0.03152364,
-0.04259636,
-0.06929942,
-0.008224194,
0.03692853,
-0.015732605,
0.03885676,
0.033364225,
0.0073659853,
0.0063069197,
-0.029770706,
-0.031348348,
-0.030501096,
0.038681466,
-0.04046362,
0.022379156,
-0.013541435,
-0.018318187,
0.012014919,
-0.0037030785,
-0.03120227,
-0.012905995,
-0.0018880587,
-0.038155586,
-0.011006981,
0.028660513,
-0.019749751,
-0.04478753,
0.026995223,
-0.027404241,
0.057058085,
0.06684531,
-0.055480443,
0.036315,
-0.045605566,
0.031903446,
-0.052412804,
-0.038710684,
-0.036431864,
-0.059658274,
-0.06199552,
-0.013475699,
0.016462997,
0.01549888,
-0.013548738,
-0.010291198,
0.051127315,
-0.018288972,
0.033422656,
-0.0012380114,
0.009823749,
-0.02874816,
-0.013351534,
0.0019501419,
-0.000104365914,
-0.010904727,
-0.0451089,
-0.0004930134,
0.039674796,
0.02528611,
0.041369304,
-0.0043786895,
-0.018201325,
-0.005298981,
-0.01237281,
0.016010154,
-0.04995869,
0.053201623,
0.06047631,
-0.024643367,
0.009516984,
0.017660836,
0.045459487,
0.008370272,
0.050747514,
0.01437408,
-0.018201325,
-0.03418226
] | If you're loading a model in 8-bit for text generation, you should use the [~transformers.GenerationMixin.generate] method instead of the [Pipeline] function which is not optimized for 8-bit models and will be slower. Some sampling strategies, like nucleus sampling, are also not supported by the [Pipeline] for 8-bit models. You should also place all inputs on the same device as the model: |
[
0.00918041,
-0.021624032,
0.0063023414,
0.00013031403,
-0.014537401,
0.016568154,
-0.024271015,
-0.019397205,
0.008515163,
0.06341556,
0.021385944,
-0.03319233,
0.025937635,
-0.033556465,
-0.006950082,
0.031539716,
-0.025937635,
-0.040671106,
-0.04285592,
-0.0066349646,
0.020685684,
0.033528455,
-0.07137051,
-0.037505932,
-0.025853604,
-0.005686112,
0.046665333,
-0.023724813,
0.084479384,
0.06532026,
0.019117102,
-0.01397019,
-0.007709864,
-0.031455684,
-0.0073247207,
-0.018907024,
0.015713837,
0.0074927835,
-0.0069360766,
-0.050026584,
-0.0007733498,
0.019747335,
0.044424504,
-0.0708103,
-0.04512476,
-0.004982351,
0.005892689,
-0.0037113787,
-0.03943865,
-0.009285449,
-0.030811446,
0.013108869,
0.021610027,
-0.0087672565,
-0.006092263,
-0.0062813335,
-0.023472719,
-0.013122874,
-0.039578702,
0.030363278,
0.021568011,
0.020657673,
0.0031651757,
-0.05943808,
0.027534228,
0.015951926,
-0.01106411,
-0.0020692686,
-0.030055165,
-0.027842343,
-0.026497843,
0.01397019,
0.003179181,
-0.012821763,
-0.045937065,
-0.009103382,
0.011848401,
0.0022250765,
0.018430846,
0.06767314,
0.00761883,
0.02414497,
0.034956984,
0.0071601598,
-0.03313631,
-0.051679198,
0.056272905,
-0.024495099,
-0.020363564,
-0.031511705,
-0.021371938,
0.039298598,
-0.023248635,
-0.016736217,
0.0069115674,
0.0126537,
0.00985266,
0.056328926,
0.033668507,
-0.008473148,
0.0067470064,
0.06884958,
0.01970532,
0.024439078,
-0.03941064,
0.03235202,
0.017142368,
0.015923915,
-0.035601225,
-0.004856304,
0.017184384,
-0.001354128,
-0.003343742,
-0.028822707,
-0.02904679,
0.024775203,
0.0044116387,
0.031651758,
-0.04293995,
-0.018696945,
0.021497985,
0.0024491597,
0.051539145,
-0.024663161,
0.035629235,
-0.03890645,
-0.023276646,
0.033976622,
-0.060614515,
0.017436476,
-0.009138395,
-0.011722354,
-0.025125334,
0.034844942,
0.0070551205,
-0.016484123,
0.014040216,
0.014733473,
0.0029393418,
-0.027548233,
-0.00013972378,
-0.009117387,
-0.030531341,
0.072154805,
-0.014019208,
0.0042890934,
0.0077168667,
-0.0062463204,
-0.023080574,
0.028598623,
-0.04492869,
0.020937778,
0.0059557124,
0.023962902,
-0.012240547,
-0.027814332,
0.0067960247,
0.010118759,
-0.013220911,
-0.008088005,
-0.026483838,
-0.009607569,
-0.033416413,
0.019551262,
-0.01179238,
0.049410354,
0.009894676,
-0.018066712,
0.01967731,
-0.008746249,
-0.018584903,
0.020629663,
0.041959587,
0.035573214,
0.04139938,
0.029214852,
0.07243491,
-0.018374825,
0.028010406,
0.00500686,
-0.007569812,
-0.010062738,
0.061846975,
0.0117713725,
0.012009461,
-0.023990912,
-0.022450339,
-0.022240262,
-0.05876583,
0.009740618,
0.0128637785,
0.0748438,
0.007548804,
0.016708206,
-0.03806614,
-0.0032124433,
-0.011554292,
-0.013367966,
-0.010370852,
-0.03442479,
-0.032576103,
0.086160004,
-0.047253553,
0.01728242,
-0.058485724,
0.032996256,
0.010748993,
0.0374219,
-0.022940522,
-0.00013348709,
0.026665905,
0.008235059,
-0.0037428904,
0.010924058,
0.027114073,
-0.014929546,
-0.030783435,
0.0032387031,
-0.020419585,
-0.020377569,
0.016316062,
0.017702576,
0.036189444,
-0.0022670922,
-0.0025209365,
-0.0104058655,
0.0076608458,
0.060726557,
-0.03686169,
0.037169807,
0.03111956,
0.026469832,
0.006603453,
0.033388402,
0.013416984,
-0.0014749229,
0.048654072,
0.028052421,
0.02355675,
0.00864121,
0.003494298,
0.020601653,
0.034928974,
0.03955069,
-0.015685827,
-0.024158975,
0.01001372,
0.011400235,
-0.028612629,
0.01383714,
-0.06341556,
0.045264814,
0.012247549,
-0.00044991713,
-0.02616172,
-0.014250293,
0.030727414,
0.013627062,
-0.015951926,
-0.038346246,
0.029663019,
0.025265384,
0.019453226,
-0.032604113,
0.017548518,
0.032884214,
0.028094437,
0.013066854,
-0.0007632835,
-0.051651187,
-0.020587647,
-0.0463012,
-0.054144114,
0.0009794888,
-0.041903567,
-0.006817032,
-0.020545632,
-0.08470347,
0.016834253,
0.035069026,
0.0036868695,
0.010545918,
-0.021694059,
0.040643096,
-0.0031284122,
-0.013423987,
-0.04498471,
0.03730986,
-0.025349416,
0.03243605,
-0.037057765,
-0.030279247,
-0.0126537,
-0.03999886,
0.049382344,
-0.0005216938,
-0.020937778,
-0.012989826,
-0.0027520224,
0.02460714,
-0.032015894,
-0.0074787783,
0.03333238,
0.035461172,
-0.017828623,
0.021133851,
0.050194647,
-0.038178183,
0.027338155,
0.049970564,
0.0012280812,
0.034816932,
0.019565267,
0.014285306,
-0.040615086,
0.015839884,
0.036945723,
-0.015629806,
-0.01731043,
-0.036133423,
-0.03389259,
0.0053114733,
-0.045825023,
-0.015685827,
-0.0125906775,
0.055516623,
-0.028654644,
-0.06912968,
0.018724956,
-0.034256727,
-0.03644154,
-0.0065474324,
-0.028738676,
0.037645984,
0.040559065,
0.025419442,
-0.06347158,
-0.02533541,
0.010664961,
0.05058679,
-0.013346958,
0.0025612013,
0.019061081,
0.05184726,
0.03111956,
0.002608469,
0.0317638,
-0.026315775,
0.0026889988,
-0.009320462,
0.007583817,
0.05540458,
0.0031214096,
0.026749937,
0.03999886,
0.02901878,
-0.01792666,
-0.0013558787,
0.011344214,
0.0066314633,
0.011687341,
0.010798011,
0.007254695,
0.021540001,
0.011904422,
0.013206906,
-0.019621288,
0.023430703,
0.027828338,
-0.06716895,
0.039270587,
0.0076258327,
-0.0028868224,
0.007835911,
0.0020605153,
-0.054536257,
0.040166922,
0.008031984,
0.07366736,
-0.026049677,
-0.030839456,
-0.00099612,
0.0025209365,
0.015965931,
0.04758968,
0.030615373,
-0.024943266,
-0.010160774,
-0.043276075,
-0.0317638,
-0.028486582,
0.02971904,
0.046861406,
0.011932433,
-0.07489982,
-0.054032072,
0.0023808845,
0.027212108,
0.012506646,
0.023444708,
0.04565696,
-0.027464202,
0.03380856,
0.011848401,
0.011323206,
-0.008235059,
-0.01297582,
0.02455112,
0.01865493,
0.00061097695,
-0.031987883,
-0.033976622,
0.000046693127,
0.021820106,
0.0029621003,
-0.02667991,
-0.01894904,
-0.007842913,
0.000004007348,
0.024761198,
-0.008375111,
0.024369052,
-0.028332524,
0.0070656245,
0.023276646,
-0.045432877,
-0.0029953627,
-0.041203305,
0.01555978,
0.015419728,
0.012506646,
-0.037533943,
0.010622947,
-0.023990912,
-0.06285535,
0.06039043,
0.029102812,
0.003009368,
0.011323206,
-0.022324292,
0.013515021,
0.0095865615,
-0.030111186,
-0.0009033356,
0.037505932,
-0.01520965,
0.024565125,
0.031987883,
0.021217883,
-0.025349416,
0.036245465,
-0.03851431,
0.038654357,
-0.04492869,
-0.007863921,
0.019061081,
0.012331581,
-0.034844942,
0.031147571,
0.02460714,
0.018234774,
-0.04221168,
0.031651758,
-0.07372338,
-0.050782863,
0.038990483,
-1.1967336e-7,
-0.014124246,
0.039074514,
0.02177809,
-0.0123175755,
0.030587362,
0.024803214,
-0.0436122,
-0.0047582677,
-0.014565411,
0.024537114,
-0.03532112,
-0.027730301,
0.019579273,
-0.067393035,
0.03109155,
-0.012254552,
-0.008207048,
-0.014901536,
-0.056356937,
-0.018752966,
-0.007394747,
-0.046721354,
0.0052904654,
0.035685256,
-0.000112698115,
0.003198438,
-0.031511705,
-0.028108442,
-0.0471135,
-0.041063253,
0.0130458465,
0.025503473,
0.058317665,
0.04562895,
-0.06005431,
-0.00048230417,
0.05319176,
0.022338297,
-0.009019351,
-0.051399093,
-0.006274331,
0.0147754885,
-0.028654644,
-0.025713552,
0.004369623,
0.030587362,
0.019131107,
0.0034575344,
-0.042603824,
0.017576529,
-0.012079488,
-0.0030251238,
0.043248065,
-0.015405723,
-0.07714066,
-0.0135920495,
0.010924058,
0.019635294,
0.0050733844,
0.035713267,
-0.0070901336,
-0.029859092,
-0.06700089,
0.050474748,
-0.021764085,
-0.003914454,
-0.022786465,
-0.032239977,
0.020363564,
0.032071915,
0.029158833,
-0.045208793,
-0.027464202,
-0.05179124,
-0.007730872,
-0.03593735,
-0.028388545,
-0.04702947,
-0.0021760582,
-0.013199903,
-0.0014337826,
-0.0053149746,
-0.016077973,
-0.030279247,
0.029831082,
0.021708064,
0.023710808,
-0.05467631,
-0.026637895,
0.0054235146,
0.010580931,
-0.011029097,
-0.0005724626,
-0.03854232,
0.04859805,
-0.044620574,
0.004716252,
-0.04913025,
-0.042771887,
-0.01836082,
-0.023164606,
0.04296796,
-0.024467088,
-0.009509533,
-0.015307686,
0.04913025,
-0.00355382,
-0.013213908,
-0.052995685,
0.0009934941,
-0.027842343,
-0.011911425,
0.015923915,
-0.01924315,
0.003033877,
0.0039879815,
0.006197302,
0.025853604,
-0.0134099815,
0.03271615,
0.033696517,
-0.0101327645,
-0.035573214,
-0.0018539387,
0.030951498,
-0.008144026,
0.014747478,
-0.035685256,
0.0062148087,
-0.014334325,
0.009964702,
-0.014817504,
-0.04915826,
-0.026637895,
0.024186986,
0.027338155,
0.017450482,
0.04506874,
0.008298082,
-0.06711293,
-0.018150743,
0.024943266,
-0.01766056,
0.02974705,
0.03798211,
0.0032999758,
-0.01865493,
-0.0060467464,
-0.013010833,
-0.014117244,
0.014831509,
0.054956414,
-0.019103097,
-0.03467688,
-0.014453369,
0.023766829,
-0.031343643,
-0.07461972,
0.03268814,
-0.003370002,
-0.0476457,
-0.01520965,
-0.004891317,
0.015391718,
-0.023514735,
-0.018500872,
0.02697402,
-0.048093867,
0.011295196,
-0.007443765,
-0.02460714,
-0.052183386,
0.03529311,
0.02452311,
-0.014565411,
-0.018024696,
-0.04005488,
-0.015517765,
-0.027310144,
0.015391718,
0.037730016,
0.006347858,
0.05389202,
0.05260354,
0.010938063,
0.06151085,
-0.007926945,
0.033556465,
-0.001171185,
-0.03386458,
-0.056160863,
0.000106352,
0.015461744,
0.009761626,
-0.00936948,
-0.013108869,
0.005031369,
0.068625495,
0.05523652,
0.0033717526,
-0.05747735,
0.005262455,
-0.045404866,
0.013655072,
-0.014334325,
-0.021231888,
0.019285165,
0.01900506,
-0.011008089,
-0.061790954,
0.014089234,
0.0060887616,
-0.02516735,
-0.00724069,
-0.073891446,
0.018696945,
-0.053723957,
-0.043108013,
-0.013949182,
-0.03375254,
0.030895477,
0.038654357,
-0.015951926,
0.0064669023,
0.017058337,
0.021946153,
-0.014313317,
-0.007569812,
-0.022212252,
0.011330209,
-0.018136738,
0.007069126,
-0.0082210535,
0.06655272,
0.035069026,
-0.012800755,
-0.013220911,
0.016484123,
0.015377712,
-0.048766114,
0.004695244,
0.07534799,
-0.029102812,
0.009803642,
-0.00018119231,
-0.01900506,
-0.057701435,
0.0035328122,
-0.020573642,
-0.005237946,
0.018150743,
0.013199903,
-0.01278675,
0.04921428,
0.021736074,
0.02589562,
0.010027725,
0.006929074,
0.02969103,
-0.0006149159,
0.01558779,
0.0063793696,
0.00019497868,
0.0013961436,
0.040699117,
0.039130535,
-0.02256238,
0.005847172,
-0.008599195,
0.01736645,
-0.040419016,
-0.013851145,
0.01731043,
0.02379484,
0.049914543,
-0.037617974,
-0.0014013955,
-0.027310144,
-0.026021667,
-0.015461744,
-0.053387832,
-0.02177809,
0.019299168,
-0.048934177,
0.0033805058,
-0.022842485,
-0.042323723,
0.0045446884,
0.023920886,
0.043948326,
0.020139482,
0.018122733,
-0.005553063,
0.027478207,
-0.0055565643,
-0.037645984,
-0.019355189,
-0.003058386,
-0.04761769,
-0.0263858,
0.03532112,
0.0788773,
0.03462086,
-0.003033877,
-0.028136453,
0.0099506965,
0.0021165363,
0.036189444,
-0.029438935,
0.02210021,
-0.01836082,
0.027268128,
-0.029803071,
-0.015573786,
0.0018206764,
0.04904622,
0.0119534405,
0.020559637,
-0.030895477,
0.02977506,
0.018696945,
-0.012639695,
0.030335268,
0.03181982,
0.016021952,
0.018080717,
-0.023696803,
0.009530541,
0.06095064,
0.04716952,
0.048850145,
-0.026511848,
0.04834596,
0.0015580788,
-0.03442479,
-0.008606197,
0.06873754,
-0.0058016554,
0.03803813,
0.037169807,
-0.008417127,
-0.017478492,
-0.027366165,
0.0075137913,
0.02487324,
0.011057108,
-0.009418499,
-0.024789209,
-0.021722069,
0.028626634,
-0.015041588,
-0.019061081,
-0.018893018,
0.020797726,
0.052463487,
0.012723726,
-0.014467374,
0.022338297,
0.0471135,
0.030979509,
0.027044047,
0.046861406,
-0.010048733,
0.013767114,
-0.047393605,
0.042687856,
-0.0040334985,
0.008340098,
-0.0068555465,
-0.03666562,
-0.05190328,
0.0045691975,
-0.011197159,
-0.036301486,
0.006617458,
-0.018472861,
0.014551406,
-0.03386458,
0.0061342786,
-0.023612771,
0.033584476,
-0.0005063756,
-0.015545775,
-0.046077117,
0.03798211,
-0.009432504,
0.004565696,
0.04207163,
0.031623747,
0.0253074,
0.085543774,
-0.013550034,
0.0018311802,
0.029326893,
0.02452311,
-0.016246036,
0.02151199,
0.0060152346,
-0.009642582,
-0.020083461,
-0.01485952,
-0.07764484,
-0.017128363,
-0.0041070255,
-0.012100495,
0.00794095,
0.0009593564,
-0.04296796,
-0.045236804,
-0.010426873,
0.08503959,
0.017212395,
-0.008017979,
0.010279818,
-0.0039634723,
-0.07585218,
0.014138252,
-0.065600365,
0.027366165,
-0.0021445467,
-0.033696517,
-0.0012981072,
-0.037029754,
-0.041819535,
-0.028934749,
-0.0039074514,
-0.042659845,
0.0068870583,
0.03666562,
0.024747193,
0.008031984,
-0.016077973,
-0.013087862,
-0.0015563281,
0.063303515,
-0.0027205106,
0.053415842,
0.049606428,
-0.010847029,
0.0019957414,
0.0053885016,
-0.016526138,
-0.02974705,
-0.005696616,
0.00011236987,
0.022184242,
-0.05955012,
-0.02694601,
-0.007443765,
0.0066314633,
-0.011484266,
-0.008515163,
-0.03322034,
0.013416984,
-0.08778461,
-0.027366165,
-0.05235145,
0.003208942,
-0.009278446,
-0.007499786,
-0.0573373,
-0.040362995,
0.23170207,
0.039270587,
0.059045933,
0.054592278,
0.054984424,
0.022786465,
-0.014621431,
-0.04655329,
0.012191528,
-0.044060368,
0.013444995,
-0.04081116,
-0.0046672337,
0.03439678,
-0.020377569,
0.01943922,
-0.058149602,
-0.0028850718,
0.014194272,
-0.03585332,
-0.07764484,
0.030839456,
0.005283463,
0.041791525,
-0.0014495385,
0.011071113,
0.033500444,
-0.023304656,
-0.010069741,
-0.0033682513,
0.010475892,
-0.03111956,
0.026049677,
-0.017674565,
-0.0036273475,
-0.0012438371,
0.0042890934,
-0.015195644,
-0.0050558783,
0.029663019,
-0.012744734,
0.015797868,
0.031623747,
-0.017562523,
-0.057813477,
0.037113786,
-0.015895905,
0.01663818,
0.05481636,
-0.057589393,
0.034256727,
-0.03246406,
0.04450853,
-0.057757456,
-0.034816932,
-0.008410124,
-0.06470404,
-0.06924172,
-0.013087862,
0.012730729,
0.0054445225,
0.013199903,
-0.011645325,
0.018570898,
-0.028080432,
-0.0036833682,
0.0068415413,
0.026105698,
-0.00090246025,
-0.005987224,
0.027912369,
0.006803027,
-0.008984338,
0.007520794,
0.014306314,
0.059718184,
-0.016091978,
0.04924229,
0.011162146,
-0.059270017,
0.011841399,
-0.039270587,
0.025391432,
-0.03109155,
0.03170778,
0.014173265,
-0.015153629,
0.042323723,
-0.04649727,
-0.004100023,
0.025349416,
0.019607283,
0.03806614,
-0.010328837,
0.014971562
] | from optimum.onnxruntime import ORTModelForSequenceClassification
ort_model = ORTModelForSequenceClassification.from_pretrained(
"distilbert/distilbert-base-uncased-finetuned-sst-2-english",
export=True,
provider="CUDAExecutionProvider",
)
Now you're free to use the model for inference: |
[
0.0076780287,
0.01666326,
0.006586298,
0.0045428933,
-0.029562924,
-0.016648896,
0.0013206712,
-0.0004798768,
-0.008087427,
0.032809388,
-0.0049666576,
-0.017352775,
0.010342713,
-0.05389703,
-0.009286895,
0.027135259,
-0.010005139,
-0.056137953,
-0.042836074,
-0.010450451,
-0.004129903,
0.00083361194,
-0.06831937,
-0.028528653,
0.005580756,
0.021676604,
0.042864803,
-0.009013962,
0.063090555,
0.03367128,
-0.019521872,
0.012159871,
0.012152689,
-0.024937432,
-0.026187178,
-0.035395063,
0.013689731,
-0.016720721,
-0.016993653,
-0.037578527,
0.032091144,
0.0069705583,
0.0004309464,
-0.044847157,
-0.030999413,
-0.01871744,
-0.011614006,
-0.009071422,
0.02587115,
-0.044387482,
-0.042577505,
0.0020523823,
0.019148385,
-0.01412786,
-0.05539098,
-0.046197455,
-0.014149407,
-0.00018101993,
-0.05622414,
-0.028270084,
0.026129717,
0.049099162,
-0.023946255,
-0.0624585,
-0.011017864,
0.0351365,
0.009703477,
0.02054178,
-0.007958144,
0.012705737,
-0.039158665,
0.04562286,
-0.02592861,
-0.061883904,
-0.030597195,
-0.0035553079,
0.03958961,
-0.016490882,
-0.027824773,
0.044013992,
0.010895762,
0.032953035,
0.009782484,
0.023802606,
-0.005584347,
-0.050794218,
0.05625287,
0.015154948,
-0.020685427,
-0.028356275,
-0.032004952,
0.020972725,
-0.017654438,
0.022854526,
0.05395449,
0.04817981,
-0.01442234,
0.033412714,
0.0010324757,
-0.016677625,
0.020886537,
0.09314188,
-0.033470172,
0.010522275,
-0.03614204,
0.005221634,
0.024592675,
-0.015873194,
-0.03720504,
-0.030712115,
-0.0022588775,
0.00780013,
0.01106814,
0.009236618,
-0.0002754017,
0.05639652,
0.0061876723,
0.049961053,
-0.052316893,
-0.033182874,
0.0052431813,
0.0040437137,
-0.017654438,
-0.064009905,
0.0087123,
-0.043812886,
0.00092653476,
0.060849633,
-0.033700008,
0.011240519,
-0.0060009286,
0.001155475,
0.031631466,
0.060907092,
0.0049558836,
-0.006449831,
-0.031688925,
0.0005198291,
0.028657936,
-0.0015729544,
-0.007656481,
-0.000066044784,
0.006216402,
0.1053233,
0.012461534,
-0.022035727,
0.01992409,
-0.042261478,
-0.0233142,
0.0150113,
-0.042232748,
-0.01692183,
0.017510789,
0.024319742,
-0.013711278,
-0.0009615492,
-0.019450048,
0.018114114,
-0.007164484,
-0.007117798,
0.044990804,
-0.0074553727,
-0.036716633,
0.039934367,
0.0068161357,
0.030367358,
-0.04898424,
-0.021805888,
0.010400173,
-0.049759947,
-0.0108311195,
0.0033559953,
0.002905297,
0.027867869,
0.031832576,
0.01144881,
0.043899074,
0.026876692,
-0.014853287,
-0.0032751928,
-0.018674344,
-0.001459831,
-0.017510789,
0.016074302,
0.012253243,
0.003140522,
-0.011025046,
-0.012138324,
-0.018142844,
-0.0021331848,
0.024966162,
0.043927804,
-0.020096468,
0.02525346,
-0.016031206,
0.007965326,
-0.008410637,
0.00550534,
-0.027810408,
-0.031171791,
0.006963376,
0.04711681,
-0.020599239,
-0.009488003,
-0.023687689,
0.03237844,
0.0061589424,
0.042807344,
-0.025037987,
0.009739389,
0.04694443,
0.022552863,
-0.022064457,
-0.0025497663,
0.01969425,
0.0023199283,
-0.02160478,
0.01860252,
0.013984211,
0.015212408,
-0.0053257793,
0.0137759205,
0.050966594,
0.014968205,
0.0028891366,
-0.019722981,
-0.013036129,
0.013560447,
0.002702393,
0.010033869,
0.02581369,
0.03151655,
0.012310702,
0.049616296,
0.024994891,
0.023213647,
0.045938887,
0.02996514,
-0.0022481037,
-0.0006877186,
-0.014882016,
0.030568466,
0.021130739,
0.027796043,
0.021202564,
0.022093186,
-0.009782484,
-0.009610105,
-0.022150645,
0.029203802,
-0.033297792,
0.07544435,
0.020153927,
-0.022825794,
-0.04338194,
-0.046226185,
0.01315823,
0.032148603,
-0.01851633,
-0.037664715,
0.023443485,
0.018387048,
0.01639033,
-0.019090926,
0.029764032,
0.053638462,
-0.023946255,
0.014867651,
-0.01139135,
-0.045220643,
-0.022911984,
-0.046025075,
-0.07429516,
0.0062559056,
-0.046714593,
-0.037750907,
0.0054155597,
-0.029505465,
0.01574391,
-0.020814711,
0.009732206,
0.00070567476,
-0.017898642,
0.03844042,
0.05042073,
0.011290796,
-0.0369752,
0.010795208,
-0.03459063,
0.03714758,
-0.0233142,
-0.0038641528,
0.017941736,
-0.030999413,
0.013072041,
0.004291508,
0.0045105726,
-0.040078018,
-0.010996316,
0.019349493,
0.0037276864,
0.025583852,
0.0015541005,
0.0050312993,
-0.029591653,
0.008985233,
0.014882016,
-0.02878722,
0.050851677,
0.02837064,
-0.022552863,
0.012928393,
-0.009538281,
0.039244853,
-0.027322002,
0.041399587,
0.058465064,
-0.010357079,
-0.04570905,
-0.053150058,
-0.04536429,
0.038124394,
-0.02901706,
-0.011671465,
0.0036073807,
0.059355687,
-0.0004794279,
-0.055304788,
-0.0056525804,
-0.021173833,
-0.033728737,
-0.014343333,
-0.00041501038,
0.045249373,
0.0337862,
0.0098974025,
-0.060619794,
0.0067048077,
-0.022696512,
0.0056525804,
0.026230272,
-0.0075128325,
0.021504225,
0.033470172,
-0.024003714,
0.013740008,
0.054615274,
-0.030338628,
0.0055412524,
-0.0021170243,
-0.026474474,
-0.0032338938,
0.015284233,
-0.010385809,
-0.006855639,
0.010285255,
-0.015255503,
0.00034543048,
0.011779202,
0.0054083774,
0.0071824403,
0.046456024,
0.014407975,
0.0020110833,
-0.017798087,
-0.026373921,
-0.021030186,
0.014996935,
0.030999413,
-0.031602737,
0.0038857001,
-0.0010073372,
-0.050593108,
-0.00021614655,
-0.009782484,
-0.04665713,
0.03487793,
0.016117396,
0.048898052,
0.013718461,
0.0045285285,
0.004424383,
-0.006787406,
0.05182849,
0.04941519,
0.028499922,
0.03229225,
-0.0041191294,
-0.037779637,
-0.011477539,
-0.0028101297,
-0.0055197054,
-0.011578093,
-0.016648896,
-0.027666759,
-0.04318083,
0.011843844,
0.039101206,
0.009983592,
0.024291012,
0.02393189,
-0.01739587,
-0.010084146,
-0.0013826197,
0.00030188693,
0.0087123,
-0.049357727,
0.03835423,
0.0039036563,
-0.018185938,
-0.003623541,
-0.010199065,
-0.024908703,
0.02628773,
0.02163351,
0.01871744,
-0.04453113,
-0.0011366211,
-0.0058141854,
0.031803846,
-0.04659967,
-0.0048984243,
-0.035596173,
0.015873194,
0.03148782,
-0.056999844,
0.012914027,
-0.03120052,
0.005347327,
0.027982786,
0.034418255,
-0.026100988,
-0.010234977,
-0.0013736417,
-0.04088245,
0.055908114,
0.028499922,
-0.008360361,
0.019766076,
-0.017381506,
0.013028947,
0.0042304574,
0.0064713787,
-0.01627541,
0.032091144,
-0.030740844,
0.0023881614,
-0.008669205,
-0.025483297,
-0.042778615,
0.071594566,
-0.06958348,
0.0052252254,
-0.04349686,
-0.021777159,
-0.0372625,
-0.008999597,
0.043784156,
0.04424383,
-0.023213647,
-0.031574007,
-0.029175073,
0.027896598,
-0.039704528,
-0.04941519,
0.024650134,
0.041169748,
-0.0053042322,
0.040480234,
0.003706139,
-0.011412897,
0.06148169,
0.010364261,
-0.0063528684,
-0.014034488,
-0.011262067,
0.00090543635,
-0.0065324293,
-0.021920808,
-0.0017848364,
-0.03358509,
0.036716633,
-0.011463175,
-0.02940491,
0.013452711,
-0.056626357,
-0.012159871,
0.029562924,
-0.041571964,
0.022710877,
0.020125197,
-0.0030776756,
0.0031135879,
-0.02292635,
-0.00494511,
-0.030913223,
-0.05162738,
-0.018932912,
0.0552186,
-0.007390731,
0.059413146,
-0.030712115,
-0.050851677,
0.04792124,
-0.0021583233,
0.011750472,
-0.025684407,
-0.019478777,
-0.01621795,
-0.0036504753,
-0.0517423,
0.002445621,
0.0002679948,
-0.035395063,
-0.015614625,
0.022610322,
0.001418532,
-0.021331847,
-0.0369752,
0.0517423,
-0.02396062,
-0.07147965,
-0.04938646,
0.020024642,
0.00641751,
-0.004079626,
0.0383255,
-0.0058644623,
-0.005796229,
-0.013495805,
0.041370854,
-0.047145538,
0.034504443,
-0.056109224,
-0.038124394,
0.031976223,
0.01753952,
0.01171456,
-0.07757036,
-0.004733228,
-0.01756825,
0.010601282,
-0.021058915,
-0.032119874,
-0.043697964,
0.011211789,
-0.00060467166,
0.045163184,
-0.0026359556,
0.020039009,
0.008044333,
-0.0022247608,
0.027034706,
0.04185926,
-0.045938887,
-0.015542801,
-0.016476518,
0.00026260797,
0.0149538405,
0.071709484,
0.010522275,
0.016174855,
-0.0102421595,
0.022725241,
-0.069066346,
-0.010615647,
-0.060504876,
0.007620569,
0.04792124,
-0.049702488,
-0.004083217,
0.007843224,
0.03131544,
0.02216501,
0.043669235,
-0.02982149,
-0.008934956,
-0.05516114,
-0.065274015,
0.067859694,
-0.048898052,
0.00039772762,
-0.025210366,
-0.015700813,
0.035481256,
-0.022883255,
0.0050384817,
0.083603606,
0.028686667,
-0.011499086,
-0.055017494,
0.034303334,
0.0074984673,
-0.00037258907,
0.007821677,
-0.0056202593,
-0.03122925,
-0.022696512,
-0.0260148,
-0.042864803,
-0.024980526,
0.041370854,
0.03976199,
0.0107305655,
0.023917526,
-0.004212501,
-0.04349686,
-0.042462587,
0.017266586,
0.03571109,
0.010414538,
0.03487793,
0.043985263,
-0.0016627349,
0.04582397,
-0.03249336,
-0.029448004,
-0.012547723,
0.043927804,
0.001745333,
-0.013819015,
0.01504003,
0.03720504,
-0.05148373,
-0.07745544,
-0.0074266433,
0.017065478,
-0.049587566,
-0.0054083774,
-0.013625089,
-0.012411256,
-0.04427256,
-0.0002399384,
0.013610724,
-0.011319526,
-0.026488839,
-0.002795765,
-0.01639033,
-0.04677205,
0.031803846,
0.05303514,
0.0060943007,
-0.012705737,
-0.05728714,
0.011793567,
-0.033470172,
-0.017798087,
0.051426273,
-0.017252222,
0.034389522,
0.028356275,
0.014925111,
0.07389294,
-0.0019410545,
0.019435683,
0.012389709,
-0.018588156,
-0.07705322,
-0.035423797,
0.030137518,
0.005465837,
0.026790502,
-0.020067738,
-0.0060009286,
0.010041052,
0.04435875,
-0.022825794,
-0.04766267,
0.012281973,
-0.045249373,
-0.033039223,
0.014968205,
-0.030597195,
0.020656697,
0.066595584,
0.010773661,
-0.01851633,
0.020139562,
0.020067738,
-0.04111229,
-0.00932999,
-0.021848982,
0.0039611156,
-0.05863744,
0.010558187,
-0.0109532215,
-0.037980743,
0.020211387,
0.03005133,
-0.007584657,
-0.0036037893,
-0.030855764,
0.050593108,
-0.020139562,
-0.0036271324,
0.010112876,
-0.00618049,
-0.008489644,
-0.015269868,
-0.03720504,
0.03953215,
0.03246463,
-0.06286072,
0.01021343,
0.0010055416,
0.020785982,
-0.010069781,
0.014479799,
0.03849788,
-0.019105291,
0.031717654,
-0.018803628,
0.0361995,
-0.05053565,
0.0020505867,
-0.040365312,
0.0105869165,
0.006363642,
0.03507904,
-0.011628371,
0.028930869,
0.045967616,
-0.016146125,
-0.010005139,
0.029505465,
0.036831554,
0.0066329837,
0.019033467,
-0.026100988,
0.0184876,
-0.018688709,
0.02340039,
0.058493793,
-0.031574007,
0.0054406985,
0.00406167,
-0.023888797,
-0.0396758,
-0.0003371258,
0.021647874,
0.046427295,
0.036889013,
-0.047030617,
0.0024779418,
-0.008180799,
-0.023716418,
0.013668183,
-0.050075974,
-0.027551841,
-0.010594099,
-0.0748123,
-0.0030722888,
-0.012921209,
0.0047440017,
0.0033111048,
0.02704907,
0.00008635762,
0.0036450883,
0.019536238,
0.00054406986,
-0.0059291045,
-0.0600452,
-0.019981548,
-0.009775301,
-0.008640476,
-0.035366334,
-0.022595957,
0.055304788,
0.063952446,
0.044933345,
-0.016016841,
-0.029476734,
0.005077985,
-0.01798483,
0.058177765,
-0.046973158,
0.0035660816,
-0.063550234,
0.03459063,
-0.036917742,
0.026632488,
-0.011743289,
0.034360792,
0.015111854,
0.045191914,
0.012116777,
0.031574007,
0.054787654,
-0.050133433,
0.010881397,
0.039273582,
0.02098709,
0.0037635986,
0.006216402,
-0.019579332,
0.07147965,
0.03976199,
0.030309897,
-0.016088666,
0.032809388,
0.014257144,
-0.062745795,
-0.023644593,
0.03332652,
0.025684407,
-0.015873194,
-0.00006733538,
-0.0073763663,
-0.0102637075,
-0.006604254,
-0.0042484133,
0.005659763,
-0.002740101,
-0.009071422,
-0.011628371,
-0.037923284,
0.007441008,
-0.00043678214,
-0.032809388,
-0.010436086,
0.027752949,
0.050794218,
-0.004664995,
0.02213628,
-0.013057676,
0.035308875,
0.050966594,
0.020096468,
0.005936287,
-0.021130739,
0.033700008,
0.020096468,
0.041026097,
0.0044962075,
-0.0073691835,
-0.000056617828,
-0.031401627,
-0.06889397,
0.04220402,
0.0074984673,
-0.04812235,
0.026187178,
-0.0068628215,
-0.016562708,
-0.067400016,
0.021532957,
-0.010788025,
0.016016841,
0.046973158,
-0.02822699,
-0.049932323,
0.0198379,
-0.0063025914,
0.055793196,
0.024678864,
0.037549797,
0.006984923,
0.080673166,
-0.010946039,
-0.006636575,
0.04114102,
0.00019987384,
-0.042634964,
-0.034016035,
0.0016277205,
-0.018889818,
-0.0056023034,
-0.059355687,
-0.058292683,
0.0024294604,
-0.00709266,
-0.029232532,
-0.022825794,
0.002740101,
0.0077283056,
-0.028686667,
0.012052135,
0.07044537,
0.008381908,
-0.017295316,
0.0074625555,
0.006234358,
-0.041600693,
0.0136538185,
0.0017875298,
0.041571964,
-0.037521068,
-0.0217197,
-0.025526393,
-0.00676945,
-0.029175073,
-0.0025946565,
0.014142225,
0.007606204,
0.036256958,
0.05266165,
0.010385809,
0.029764032,
0.014084765,
-0.039015014,
0.03507904,
0.04085372,
0.0048517385,
0.057172224,
0.064009905,
0.016993653,
-0.011628371,
0.02084344,
0.012159871,
-0.027508747,
-0.004506981,
-0.006363642,
-0.009222253,
-0.035452526,
-0.054902572,
-0.012863751,
0.005045664,
0.043094642,
-0.010170335,
-0.03714758,
-0.027594935,
-0.07205424,
-0.02999387,
-0.023386026,
0.036515526,
0.003214142,
-0.027652394,
0.013546082,
-0.042663693,
0.24661626,
0.060332496,
0.030281167,
0.010572552,
0.035395063,
0.047576483,
0.030827032,
-0.04441621,
0.013890839,
-0.023098728,
-0.03019498,
-0.045910157,
0.024736324,
0.047605213,
-0.04680078,
0.06125185,
-0.06923872,
-0.0044495217,
-0.0044997986,
-0.030166248,
-0.06498672,
0.030568466,
0.02996514,
0.02875849,
0.025181636,
0.019521872,
0.0007514628,
-0.028600477,
-0.0066473484,
-0.014156589,
0.028614841,
-0.02578496,
0.033096686,
-0.01748206,
-0.018846722,
0.049903594,
0.0033506083,
-0.02513854,
-0.0035660816,
0.013380886,
-0.005289867,
-0.0018171574,
-0.0024330516,
-0.011297978,
-0.015370422,
0.028183896,
-0.0067048077,
0.034044765,
0.06510164,
-0.05289149,
0.03387239,
-0.030453546,
0.0396758,
-0.017108573,
-0.04453113,
0.0042053186,
-0.04657094,
-0.05878109,
-0.043927804,
-0.0032626234,
0.0014652178,
-0.017582614,
0.015327327,
0.021374943,
-0.013517353,
0.033269063,
-0.0222512,
0.021202564,
-0.019205846,
-0.02281143,
-0.031545278,
0.0026485247,
-0.03229225,
-0.036572985,
0.040336583,
0.0369752,
-0.008439368,
0.018559426,
-0.01465936,
-0.01621795,
0.031803846,
-0.021389307,
-0.0031943903,
-0.02875849,
0.034992848,
0.02631646,
-0.011017864,
0.016059937,
0.010227795,
0.0026036345,
0.00903551,
0.022064457,
0.0039898455,
-0.010687471,
0.0015666698
] | from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "bigscience/bloom-2b5"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model_8bit = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", load_in_8bit=True)
prompt = "Hello, my llama is cute"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
generated_ids = model.generate(**inputs)
outputs = tokenizer.batch_decode(generated_ids, skip_special_tokens=True) |
[
0.05767761,
-0.013860512,
-0.017786724,
0.0208746,
-0.038256127,
0.0029551394,
0.029174142,
-0.0017229579,
0.01837356,
0.026798852,
0.021433493,
-0.018136032,
-0.022844695,
-0.045549665,
0.0041218256,
0.015816633,
0.011939322,
-0.033365827,
-0.021684993,
0.00042921127,
0.020553239,
0.028894695,
-0.08511919,
0.00068682537,
-0.011534126,
-0.0011247693,
0.03417622,
-0.015830604,
0.07036445,
0.014042151,
-0.014587071,
-0.021866633,
-0.02422795,
-0.06058385,
-0.012197809,
0.0047156475,
0.022663053,
-0.012072058,
-0.058907174,
-0.029705089,
0.029788923,
-0.018150004,
0.03166121,
-0.014796655,
-0.052032806,
-0.005606381,
0.017688919,
-0.05099886,
-0.015565131,
-0.02678488,
-0.050244354,
0.0022565247,
0.0028940104,
-0.01763303,
-0.036076453,
-0.003494819,
0.00646917,
0.020497348,
0.0014112013,
-0.015369519,
0.05217253,
0.012491227,
-0.0034389298,
-0.057565834,
0.025471484,
0.011059067,
0.010919345,
0.0030791434,
-0.001807665,
-0.014754738,
-0.04862357,
-0.0038773103,
-0.013951331,
-0.019519288,
0.004572432,
0.00011821867,
0.019756818,
-0.005498096,
-0.013776678,
0.022718944,
0.027022408,
0.007761607,
-0.022746887,
-0.024255894,
-0.037333958,
-0.043062598,
0.081654064,
0.0058054863,
-0.001771861,
-0.007202715,
-0.04454366,
0.028349776,
0.033393774,
0.022118134,
0.0028416144,
0.04736606,
-0.023207974,
0.055972993,
0.045717333,
-0.023361668,
0.008439263,
0.071202785,
-0.006084932,
0.0299007,
-0.014098041,
0.061701633,
0.036495622,
0.017660974,
-0.011666862,
-0.04764551,
-0.0026128183,
0.046583615,
-0.008572,
-0.0006370491,
0.007286549,
0.007143333,
-0.03051548,
0.028461555,
-0.02850347,
-0.0317171,
-0.008488166,
0.0053758384,
0.004582911,
0.007181757,
0.03241571,
-0.05644805,
-0.023752892,
0.050020795,
-0.08305129,
-0.03118615,
-0.051893085,
-0.03789285,
-0.033701163,
0.085566305,
0.007705718,
-0.0027176104,
-0.0008985929,
0.032723103,
0.0010723732,
-0.0162358,
-0.0183037,
-0.022006357,
-0.0011247693,
0.091267,
-0.02569504,
0.012267671,
0.035321947,
-0.042755205,
-0.023180028,
0.052200474,
-0.033980608,
-0.026994463,
-0.047114562,
0.040128417,
-0.00080471655,
-0.01652922,
-0.015970327,
0.011617959,
-0.0018618077,
0.022774832,
0.04851179,
-0.024940537,
-0.021000352,
0.01244931,
-0.01654319,
0.047757287,
-0.025667096,
0.00530947,
-0.011191804,
-0.020525293,
0.04923835,
0.018639034,
0.019505316,
0.03417622,
0.061589852,
0.07640048,
0.05614066,
-0.008830487,
0.01879273,
0.032806937,
-0.018010281,
0.016557163,
-0.004432709,
0.016277717,
0.017074138,
0.010444286,
-0.0078105098,
0.01799631,
0.00700361,
-0.011981239,
0.006556497,
0.043118484,
-0.036020562,
-0.009473212,
-0.04582911,
0.0024189528,
0.022998389,
-0.003716629,
-0.0010426821,
-0.071873456,
-0.007733662,
0.04350971,
-0.024549313,
0.011080026,
-0.038228184,
0.04717045,
-0.043286152,
0.0130082015,
-0.03501456,
-0.020497348,
0.060527958,
0.034958668,
0.009081989,
-0.020553239,
0.035713173,
0.023389613,
-0.020539265,
0.007286549,
-0.020315709,
0.0015264726,
0.0069721728,
-0.00024167694,
0.016193883,
-0.010625927,
0.011387416,
-0.017521251,
0.025639152,
0.03638384,
0.002338612,
0.03833996,
-0.0010994446,
0.040184304,
-0.032806937,
0.050300244,
0.016151967,
-0.007073472,
0.022746887,
0.010164841,
-0.031381764,
0.04093881,
-0.012952313,
0.009054043,
0.007042034,
0.01049319,
-0.0046248278,
0.024339728,
-0.008907335,
-0.0040205265,
-0.026114209,
0.040687308,
-0.0060884254,
0.06449609,
0.004680717,
-0.017926447,
-0.06499909,
-0.010611954,
0.013755719,
0.006210683,
0.010961262,
-0.040016636,
-0.0098225195,
0.04918246,
-0.010793594,
-0.026393656,
0.0038249143,
0.048791237,
0.0048448914,
0.02067899,
0.013643941,
0.018569173,
-0.016920444,
-0.05790117,
-0.025359705,
-0.022187997,
-0.0054841237,
-0.0073005212,
0.014391459,
-0.038284075,
-0.0014208072,
-0.016571136,
-0.008411318,
0.0266731,
-0.014712821,
0.07293535,
0.02105624,
0.012980257,
-0.03423211,
0.020175986,
-0.035238113,
0.02714816,
-0.020287765,
-0.037445735,
0.0010802327,
-0.01254013,
0.015984299,
0.0003012775,
-0.03269516,
0.02636571,
0.008858432,
-0.006137328,
-0.0063049956,
0.001280211,
0.036579456,
-0.027371716,
-0.030962594,
0.038787074,
0.0261701,
-0.022411553,
0.029146196,
0.03367322,
-0.013643941,
0.022201968,
-0.018820675,
0.05963373,
-0.009214725,
0.041944813,
0.017563168,
-0.012756701,
-0.008250637,
-0.045326106,
-0.0069582,
-0.005498096,
-0.025401622,
-0.026687073,
-0.03861941,
0.060863294,
-0.02232772,
-0.08238062,
0.029872755,
-0.03562934,
-0.047757287,
0.013238745,
-0.01397229,
0.04465544,
0.0044711325,
0.006556497,
-0.047813177,
0.0045654457,
-0.019183954,
-0.015844576,
0.025848735,
-0.03367322,
0.006745123,
0.029705089,
0.0025185053,
-0.009927312,
0.07433258,
-0.0070105963,
-0.014573098,
-0.018457394,
-0.012337532,
0.018988341,
0.009612936,
-0.00086497207,
-0.013329565,
0.040128417,
-0.0151319895,
0.019728873,
-0.027441576,
-0.018247811,
0.042419873,
0.012742728,
0.013154911,
0.043062598,
-0.023571253,
0.027483493,
-0.026505433,
0.027665135,
0.056364216,
-0.049629573,
0.046136502,
-0.0075659947,
-0.015327602,
-0.038535576,
0.021684993,
-0.0028189095,
0.017367557,
0.028671138,
0.03996075,
-0.0017447897,
-0.0035087913,
0.00945924,
-0.0114153605,
0.037613403,
0.034092385,
0.058907174,
0.0013815102,
0.011052081,
-0.044096548,
-0.009494171,
-0.016277717,
0.021810744,
0.0025988459,
-0.04010047,
-0.054994933,
-0.03996075,
0.02807033,
0.03741779,
0.0045409943,
0.015872521,
0.063937195,
-0.033533495,
0.03691479,
0.045577608,
0.031884763,
-0.036830954,
-0.04071525,
0.015593075,
0.031465597,
-0.010011146,
-0.037445735,
-0.044739272,
-0.02154527,
0.009040072,
-0.00023054278,
-0.04364943,
-0.018345617,
0.010849483,
0.0027211034,
0.028727029,
0.03289077,
-0.014132971,
-0.0366074,
0.011184818,
0.002172691,
-0.022914555,
0.0066787545,
-0.050887078,
0.011114957,
0.042783152,
-0.008355429,
-0.037278067,
-0.028671138,
-0.02190855,
-0.06863189,
0.07081156,
0.02665913,
-0.0011588268,
-0.023697004,
-0.059689622,
-0.00029581957,
0.036635343,
0.0031909216,
0.014866516,
0.008432277,
-0.0001410328,
0.015159935,
-0.003915734,
0.021377603,
-0.002948153,
0.0484559,
-0.04418038,
0.016976332,
-0.03361733,
0.00817379,
0.007132854,
-0.019128064,
-0.0072236736,
0.006228148,
0.030236036,
0.028265942,
-0.019547233,
0.044767216,
-0.03149354,
-0.04423627,
0.04454366,
0.0020836177,
-0.015187879,
0.099985704,
-0.0035542012,
-0.02714816,
0.051865138,
0.021573216,
-0.03423211,
-0.0071084024,
-0.0013413398,
0.05505082,
-0.03856352,
-0.015229796,
-0.0144752925,
-0.012644922,
0.023138111,
0.020245848,
0.025429567,
0.0028870243,
-0.04680717,
-0.00013928626,
0.020050235,
-0.069582,
-0.0014897954,
-0.029481532,
-0.03697068,
0.022900583,
-0.024647119,
-0.040296085,
-0.012819576,
-0.021279797,
0.0005099886,
0.055945046,
0.026770907,
-0.006077946,
-0.009619921,
-0.035936728,
0.057398167,
-0.027078297,
-0.011687821,
-0.045549665,
-0.009382392,
-0.008907335,
-0.000054988603,
-0.028573332,
-0.03875913,
-0.012393421,
0.009109933,
-0.00018698853,
-0.031409707,
0.017116055,
-0.032164212,
0.005840417,
0.035657283,
-0.015732799,
-0.05846006,
-0.007915302,
0.020818712,
0.031884763,
-0.005337415,
-0.019477371,
0.0021098158,
-0.034315944,
-0.0440686,
0.044934884,
-0.032611325,
-0.01629169,
-0.055972993,
-0.03923419,
-0.02245347,
-0.0035070446,
0.03912241,
-0.011226735,
-0.010786608,
-0.033226106,
0.020357626,
-0.045493774,
-0.02861525,
-0.07265591,
-0.02025982,
-0.0120511,
0.004907767,
-0.005023038,
0.002680933,
-0.0006846422,
0.02923003,
-0.0050894064,
0.07042034,
-0.034511555,
-0.0013561854,
-0.0018495818,
-0.015187879,
0.017535223,
0.002628537,
-0.062036965,
0.017535223,
-0.044962827,
0.025667096,
-0.0505238,
-0.033701163,
-0.033114325,
-0.031577375,
0.008809528,
-0.010807566,
0.014105027,
0.009340475,
-0.02025982,
0.010535106,
0.0071503194,
-0.0144752925,
0.0138255805,
-0.03031987,
-0.040799085,
0.026044348,
-0.056559827,
-0.029034417,
-0.046946894,
-0.012295615,
0.0032904742,
-0.012679853,
0.02508026,
0.074556135,
0.019826679,
0.026589267,
0.01868095,
0.010786608,
0.008928293,
0.017730836,
-0.033952665,
-0.033701163,
-0.03143765,
-0.0037899837,
-0.05583327,
-0.044934884,
-0.024675064,
0.02508026,
0.043733265,
0.00004622863,
0.0047400994,
-0.016682914,
-0.04605267,
-0.05382126,
0.050048742,
-0.01654319,
0.037333958,
0.022565247,
-0.007286549,
-0.048735347,
0.02105624,
-0.020120097,
-0.019966401,
-0.04269932,
0.030599315,
0.013071077,
-0.046360057,
0.022718944,
-0.010283605,
-0.05924251,
-0.06566976,
0.02263511,
0.024186034,
-0.012756701,
-0.026994463,
0.008816515,
0.010961262,
-0.040016636,
0.026016403,
0.046835113,
-0.024521368,
-0.0132527165,
0.026617212,
0.025764903,
-0.036327954,
0.035098393,
0.038647354,
0.015760742,
0.013092035,
-0.010283605,
-0.0108844135,
-0.01665497,
0.0066054,
0.020692961,
-0.04700278,
-0.0118205575,
0.032387767,
0.0084741935,
0.04350971,
-0.037445735,
0.0034144784,
0.03604851,
-0.039569523,
-0.04309054,
-0.047617562,
0.022690998,
0.026100237,
0.0059556887,
-0.007286549,
0.039709248,
0.037110403,
0.025890652,
-0.0634342,
-0.048232343,
0.00817379,
-0.0649432,
-0.024675064,
-0.010276619,
-0.038731188,
0.01611005,
0.0076009254,
-0.0015771223,
-0.04423627,
0.035657283,
-0.011387416,
-0.0015255994,
-0.025443539,
-0.031745043,
0.0137836635,
-0.033281993,
-0.0038284073,
0.0021272812,
-0.07567392,
0.025024371,
0.046164446,
-0.040994696,
0.017171944,
-0.0030581849,
0.020790767,
-0.0073494245,
0.018820675,
-0.030487536,
0.0144752925,
-0.053262368,
0.0019526274,
-0.04686306,
0.011429333,
0.015942382,
-0.01629169,
0.01156207,
0.023263862,
0.0024154596,
-0.026323793,
0.018583145,
0.015243768,
-0.0026460025,
0.017339611,
-0.0345395,
0.016696887,
-0.07192935,
-0.0042126453,
-0.050439965,
-0.012784645,
0.012295615,
0.023166057,
0.02136363,
0.06253997,
0.03143765,
0.02067899,
0.010360453,
-0.0034633812,
0.05211664,
0.000767166,
0.021587187,
0.023543308,
-0.010241688,
-0.043062598,
0.017856587,
0.020483376,
-0.024703009,
-0.024842732,
0.038675297,
0.011038109,
-0.021154046,
-0.020637073,
0.014391459,
0.03789285,
0.0060150707,
0.012100003,
-0.01061894,
-0.02067899,
-0.035517562,
0.013902429,
-0.057174608,
-0.01812206,
0.025345733,
-0.05840417,
0.017046193,
0.01781467,
-0.0079851635,
-0.004055457,
0.034092385,
-0.010234702,
-0.00945924,
-0.0016303916,
-0.013986262,
0.04898685,
-0.010849483,
-0.044515714,
0.0045549665,
-0.0010077514,
-0.07684759,
-0.008991169,
-0.006357392,
0.04454366,
0.04644389,
-0.001165813,
-0.041944813,
-0.03118615,
0.034288,
0.008068997,
-0.045326106,
0.0053444006,
-0.013364495,
0.045661442,
-0.06253997,
-0.0068778596,
0.022774832,
0.043621488,
0.0064202673,
0.029369753,
-0.015453353,
0.004876329,
0.07667992,
-0.04015636,
0.06114274,
0.016319634,
0.02959331,
0.028042385,
-0.008138859,
-0.005498096,
0.06919078,
-0.0112896105,
0.05429632,
0.0016085599,
0.02881086,
0.05443604,
-0.03613234,
0.0055574784,
0.04021225,
0.0062875305,
-0.011806585,
-0.014838572,
0.0012871972,
0.0019840652,
-0.04032403,
-0.011324541,
0.0079851635,
-0.007824482,
-0.0029726047,
0.00236481,
-0.031884763,
0.009256642,
-0.010765649,
-0.02185266,
-0.0101858,
0.022048274,
0.011806585,
-0.015453353,
0.032024488,
0.010101966,
0.040296085,
0.025401622,
0.044571605,
0.0456335,
0.0006322461,
0.040854976,
-0.012519171,
0.07925083,
0.0023700497,
-0.022299774,
0.030012479,
-0.021684993,
-0.032136265,
0.010940303,
0.00094312953,
-0.03778107,
0.021615133,
-0.04661156,
-0.013965304,
-0.02190855,
0.046555668,
-0.044739272,
0.034623332,
0.023263862,
0.013322578,
-0.015984299,
-0.011317555,
-0.00808297,
0.0021622118,
0.047086615,
0.029453587,
-0.0011422347,
0.061366297,
0.05692311,
0.036635343,
0.004537501,
0.007342438,
-0.036998622,
0.0345395,
0.007838454,
0.0322201,
0.022495387,
-0.017437417,
-0.037753128,
0.010122924,
-0.0024014872,
-0.01351819,
-0.034260053,
-0.03129793,
-0.014615015,
-0.0076847593,
-0.026882686,
0.0711469,
0.015159935,
-0.001316015,
-0.0070525133,
-0.013769692,
-0.045577608,
0.0072795628,
-0.0023281327,
0.027427604,
0.0132527165,
-0.049322184,
-0.009864436,
-0.035601392,
-0.017898504,
-0.00878857,
0.0011736724,
-0.026715018,
0.03990486,
0.014349542,
0.018736841,
0.0014304131,
0.026617212,
0.000964088,
0.022062246,
0.042643428,
-0.00723066,
0.076903485,
0.03051548,
0.04552172,
-0.020776795,
-0.007216688,
-0.024088228,
-0.024088228,
0.017549196,
-0.0047086617,
0.024381645,
-0.034343887,
-0.03210832,
-0.0122327395,
0.018471368,
0.011429333,
-0.052144587,
-0.04119031,
-0.018401505,
-0.0783566,
-0.017912475,
-0.03057137,
0.004429216,
-0.01397229,
-0.0009370167,
-0.043733265,
-0.04974135,
0.22914556,
0.070643894,
0.061254516,
0.026924603,
0.022495387,
0.041274145,
0.035545506,
-0.02801444,
0.007000117,
-0.043481767,
0.002225087,
0.0004977628,
-0.01696236,
0.010660857,
-0.01107304,
0.017255777,
-0.042252205,
0.0008549295,
0.031102316,
-0.00053575,
-0.038228184,
0.006280544,
0.021028295,
0.019379565,
0.011080026,
-0.019938458,
0.011408375,
-0.016305663,
0.01080058,
-0.026267905,
0.019966401,
-0.049042735,
0.019253815,
-0.046108555,
-0.028727029,
0.021559242,
0.0012627457,
-0.03129793,
0.019225871,
0.013671885,
0.009075002,
-0.018527256,
-0.000103973485,
0.031772986,
-0.0034598883,
0.038088463,
-0.016934415,
0.043230265,
0.04021225,
-0.06365775,
0.04568939,
-0.06891134,
-0.0005807233,
-0.011743709,
-0.04717045,
-0.018904507,
-0.06315475,
-0.05527438,
-0.00848118,
0.05664366,
0.032164212,
-0.017227834,
-0.021629104,
0.02605832,
0.012861493,
0.03051548,
-0.028182108,
-0.013734761,
0.016515246,
-0.03540578,
0.011080026,
-0.015243768,
-0.018932452,
-0.027930608,
0.027748967,
0.018653007,
0.007244632,
0.028838806,
-0.0144752925,
-0.003253797,
-0.006654303,
0.015048156,
0.0079851635,
-0.0016268985,
0.022593193,
-0.0049287253,
-0.05320648,
0.029369753,
-0.00034952557,
0.028489498,
0.027734995,
0.05139008,
0.014754738,
-0.016179912,
-0.020399543
] | Feel free to try running a 11 billion parameter T5 model or the 3 billion parameter BLOOM model for inference on Google Colab's free tier GPUs!
🤗 Optimum
Learn more details about using ORT with 🤗 Optimum in the Accelerated inference on NVIDIA GPUs and Accelerated inference on AMD GPUs guides. This section only provides a brief and simple example. |
[
0.04151195,
0.0040114243,
-0.026989756,
-0.028275648,
-0.012970737,
-0.03368478,
0.0067299674,
0.015193094,
-0.009217889,
0.042769887,
0.044614863,
-0.023006286,
0.02461365,
-0.03757041,
0.017918626,
0.051938858,
0.016660688,
-0.03949925,
-0.021776302,
0.019707693,
0.016297285,
-0.03748655,
-0.072624944,
-0.0032566614,
0.008700737,
-0.017387496,
0.04822095,
-0.04098082,
0.0816821,
0.0314764,
-0.044838496,
-0.029044388,
0.0029806138,
-0.017848741,
-0.01703807,
-0.009714075,
0.012208986,
0.01367658,
-0.041707627,
-0.037207007,
0.010706449,
-0.028988479,
0.024390018,
-0.054678366,
-0.08498069,
-0.0018082857,
0.008260459,
-0.058088776,
-0.034271818,
-0.055936303,
-0.036284517,
-0.0030452579,
-0.0015427211,
0.016674666,
-0.005010786,
0.010762357,
0.016437056,
0.03608884,
-0.0015060311,
0.008924371,
0.037710182,
0.002956154,
-0.01118167,
-0.04467077,
0.023355713,
0.05920694,
-0.03114095,
0.00436784,
-0.0017943085,
-0.0009050164,
-0.03195162,
-0.04344079,
0.020266777,
-0.00887545,
-0.003433122,
-0.011300475,
0.034271818,
-0.0014038237,
0.0101124225,
0.02394275,
-0.0023638748,
-0.017149886,
-0.038213357,
0.03306979,
-0.03991856,
-0.0398347,
0.055628806,
-0.04226671,
0.0068802214,
-0.035166353,
-0.018379869,
0.031504355,
-0.009336694,
0.024292178,
0.025829658,
0.014536171,
-0.0126632415,
0.0261092,
0.012509493,
0.007184223,
0.016199443,
0.08212937,
-0.019078724,
0.028708937,
-0.026123175,
0.004601956,
-0.010035548,
-0.014340492,
-0.0091689695,
-0.02806599,
0.015318887,
0.02116131,
0.018673388,
0.016045697,
-0.031308677,
-0.0002559554,
0.003405168,
0.044531,
-0.03656406,
-0.015542521,
0.022069821,
-0.029212112,
-0.00079494686,
-0.003406915,
0.018799182,
-0.020741997,
-0.04970252,
0.017625106,
-0.04682324,
-0.0005887848,
-0.023663208,
-0.00035357664,
0.005066694,
0.07290449,
-0.0035816287,
0.003924067,
0.03441159,
0.034523405,
-0.034327727,
-0.03762632,
0.020895746,
-0.0143964,
-0.002968384,
0.066530935,
-0.011356384,
0.008197562,
0.02116131,
-0.053252704,
-0.035194308,
0.012153077,
-0.013334141,
0.016520917,
-0.002596244,
0.020951655,
0.010384976,
-0.022349363,
-0.0143964,
0.001651917,
0.021147333,
0.017010115,
0.009301752,
0.0008539127,
-0.019120656,
0.027185434,
-0.016576825,
0.009448511,
-0.014172766,
0.007994894,
0.008574943,
-0.005182005,
0.020532342,
0.006660082,
0.016353192,
0.030302325,
0.042154897,
0.04687915,
0.02015496,
-0.001876424,
-0.013418004,
0.016003765,
0.0024127946,
0.02394275,
-0.023327759,
0.032510705,
-0.0034750532,
-0.004256023,
0.04606848,
0.0047347383,
-0.018841114,
0.01406095,
-0.026165107,
0.05853604,
-0.004301449,
0.04598462,
-0.07788033,
0.018016465,
-0.022978332,
-0.011433258,
-0.002288748,
-0.031336628,
-0.021245172,
0.057753325,
-0.0294637,
-0.0035414444,
-0.028317578,
-0.027660655,
-0.0054685352,
0.039275616,
-0.007750295,
0.021245172,
0.037989724,
0.01717784,
-0.036284517,
0.017904649,
0.012069215,
0.030525958,
0.0562438,
-0.0091689695,
0.028205762,
0.045425534,
0.033656824,
-0.00071064755,
0.036256563,
-0.012048249,
0.017848741,
-0.01319437,
0.015766155,
0.053029068,
-0.012383699,
-0.010657529,
0.00044268055,
0.032370932,
0.023551391,
0.047046877,
0.0042874715,
-0.0046089445,
0.044894405,
0.006590197,
-0.00018781712,
-0.00681383,
0.026654305,
0.0076314895,
0.0072820624,
0.04970252,
0.010308102,
-0.0011216613,
-0.02691987,
-0.016353192,
-0.052330215,
-0.019218495,
-0.035054535,
0.07117133,
0.008896416,
-0.0321473,
-0.04673938,
0.032902062,
0.018910998,
0.027199412,
-0.013683569,
-0.027241344,
0.0017279175,
0.034914766,
-0.043077383,
-0.042210802,
0.021860164,
0.06328825,
-0.01798851,
-0.004780164,
0.030581867,
-0.04304943,
-0.0043783225,
-0.034327727,
-0.045788936,
-0.019204518,
-0.01597581,
0.0202528,
-0.0059192963,
-0.067481376,
0.012991702,
-0.012097169,
0.023677185,
-0.0002727716,
0.006967578,
0.062561445,
0.03963902,
0.023663208,
-0.034719083,
0.05171522,
-0.02336969,
0.037011325,
0.014354468,
-0.045425534,
-0.026808053,
-0.0085469885,
-0.0027866818,
0.007317005,
-0.01871532,
-0.004741727,
-0.04257421,
-0.020588249,
-0.018869068,
-0.011908478,
0.0110768415,
0.027129527,
0.018072374,
0.014885598,
0.011293487,
-0.026458627,
0.04327306,
0.04030992,
-0.03402023,
0.017163863,
-0.021356989,
0.06300871,
-0.023397645,
0.03594907,
0.045425534,
0.0014029501,
-0.011936433,
-0.009245844,
0.004961866,
0.024166385,
-0.006443437,
-0.01656285,
-0.051547498,
0.08285617,
-0.038269266,
-0.053057022,
0.0048780036,
0.010999967,
-0.021608576,
0.0031203846,
-0.040365826,
0.044027824,
0.011146727,
0.027017709,
-0.021273127,
0.0065377825,
-0.046180297,
0.017722948,
-0.0006835669,
-0.01650694,
0.022572996,
0.035278168,
0.037738137,
0.032930017,
0.03930357,
-0.050010018,
0.013564764,
-0.035585664,
0.010454861,
-0.005863388,
-0.027800426,
0.008050802,
0.0071982,
0.03522226,
-0.047186647,
0.017080002,
0.01684239,
0.008120688,
0.038744487,
0.024166385,
-0.017694993,
0.029855058,
-0.046851195,
0.014647988,
0.022139706,
-0.0069745667,
0.06340007,
0.01473185,
0.036060885,
-0.010650541,
-0.033097744,
0.024390018,
0.023076171,
-0.015640361,
0.040869005,
0.04103673,
0.05576858,
-0.029435746,
-0.024487857,
-0.0039275615,
0.006534288,
0.016465008,
0.030358234,
0.015947856,
-0.005901825,
0.023551391,
-0.018938953,
0.015780132,
0.0018152742,
0.022419248,
0.006722979,
-0.04794141,
-0.019847464,
-0.060492832,
0.028736891,
0.030414142,
0.016856367,
-0.006799853,
0.05560085,
-0.035166353,
0.029575517,
0.071618594,
0.011545074,
-0.034327727,
-0.0090082325,
0.016185466,
-0.017597154,
0.0064294604,
-0.0053008106,
-0.008749656,
-0.010999967,
0.013480901,
-0.0040393784,
-0.005590835,
-0.052973162,
0.006038102,
-0.02423627,
0.07010907,
-0.02557807,
-0.026123175,
-0.039694928,
0.01343897,
0.03737473,
-0.04880799,
-0.016227398,
-0.08006076,
-0.0008255217,
0.03027437,
0.022349363,
0.009839869,
-0.017876694,
-0.024445925,
-0.08861473,
0.049842294,
0.04780164,
-0.002646911,
-0.028527236,
-0.06781683,
-0.023621278,
0.023104126,
0.011482177,
0.014193732,
-0.003109902,
-0.015486613,
0.007414845,
0.00073947525,
0.02624897,
0.0069605894,
0.03991856,
-0.037514504,
0.045034174,
-0.041092638,
-0.008190573,
-0.024152407,
0.00863784,
-0.03815745,
0.027227366,
0.024459902,
0.00041559996,
-0.03253866,
0.04399987,
-0.060436927,
0.0040568495,
-0.020769952,
0.016646711,
-0.023439575,
0.04344079,
0.008700737,
0.0012588114,
0.033992276,
0.0020249304,
-0.043692376,
0.04299352,
0.0055489037,
0.015151163,
0.018924976,
0.0007486477,
-0.03762632,
-0.05920694,
0.026402717,
-0.0023498978,
-0.03195162,
0.011454223,
-0.04030992,
-0.006782382,
0.0215946,
-0.003548433,
-0.015486613,
0.0026766122,
-0.022293454,
0.034104094,
-0.046096433,
-0.01804442,
-0.027241344,
-0.030749593,
0.007519673,
0.036228612,
0.006219804,
0.014228675,
0.013697546,
-0.01770897,
-0.0033457652,
-0.056411523,
0.024040591,
-0.035725433,
-0.005465041,
0.0024285188,
-0.0038891246,
-0.044111688,
0.001864194,
-0.01051077,
0.0021909084,
0.041707627,
-0.023858888,
0.02370514,
-0.073463574,
-0.068599544,
0.04634802,
-0.028513258,
-0.045956664,
-0.039583113,
0.027996106,
0.004217586,
0.021356989,
-0.010119411,
-0.06910272,
-0.037179053,
-0.037877906,
0.041120593,
-0.027283274,
-0.008707725,
-0.042071033,
-0.018212145,
-0.0012553171,
0.04707483,
0.05585244,
-0.016954208,
0.014689919,
-0.022335386,
-0.0006241643,
-0.0595983,
-0.028932571,
-0.018072374,
-0.009301752,
0.02644465,
0.015766155,
0.026179085,
-0.029240066,
-0.013075565,
0.0418474,
0.03259457,
0.026011359,
-0.04427941,
-0.033293422,
0.033405237,
-0.013886237,
-0.024110476,
0.009134026,
-0.03857676,
0.010839231,
-0.04486645,
0.062617354,
-0.048053227,
-0.010105434,
-0.0022485638,
-0.04285375,
0.00050929014,
-0.054287005,
0.03033028,
-0.011908478,
0.01626933,
0.027968151,
0.033908416,
-0.023775026,
0.021091424,
-0.035250213,
-0.02336969,
0.041428085,
-0.020672113,
0.016227398,
-0.03748655,
-0.019456105,
0.034271818,
-0.017639084,
0.0229364,
0.041428085,
0.0085260235,
0.019260427,
0.007834157,
0.018883046,
-0.0064084944,
0.003613077,
-0.0017567452,
0.0037004338,
-0.02269879,
-0.0575856,
-0.060772374,
-0.050680917,
-0.013424993,
0.021426875,
0.048137087,
-0.046152342,
0.04995411,
0.008358298,
-0.05820059,
-0.033936366,
0.03259457,
-0.0077712606,
0.02049041,
0.034243863,
0.033628874,
-0.040813096,
0.04338488,
-0.02269879,
-0.028736891,
-0.013858282,
0.05168727,
0.0036689853,
-0.04279784,
0.05140773,
-0.0022345867,
-0.055433128,
-0.04467077,
-0.014354468,
0.01161496,
-0.011628937,
0.00013813293,
-0.006359575,
-0.047857545,
-0.0061534126,
0.016688643,
0.044223506,
-0.036284517,
-0.011223601,
0.050121836,
-0.0022398282,
-0.048724126,
0.0038996073,
0.054622456,
-0.014871621,
-0.014228675,
-0.0027639691,
0.029184159,
-0.05283339,
-0.021832211,
0.05451064,
-0.00087269436,
0.023537414,
0.04405578,
-0.006128953,
0.051910903,
-0.03924766,
0.048388675,
-0.0064853686,
-0.042126942,
-0.04156786,
-0.030414142,
0.0073868907,
0.017960558,
0.03200753,
0.019609854,
0.026891915,
0.04198717,
0.037989724,
-0.006247758,
-0.052945208,
0.060213294,
-0.05383974,
0.00038349634,
0.0040568495,
-0.0018537112,
0.010874174,
0.02418036,
0.019232472,
-0.06720184,
0.0072191656,
0.02039257,
0.034802947,
-0.025550116,
-0.05028956,
-0.0015331118,
-0.04257421,
-0.035110444,
-0.007261097,
-0.054203145,
-0.02715748,
0.049562752,
-0.01603172,
0.015458658,
-0.01482969,
0.04140013,
-0.00020102982,
-0.005206465,
0.0063560805,
-0.004961866,
-0.024390018,
-0.022055844,
-0.05124,
0.069549985,
0.013355107,
0.046096433,
-0.0035781343,
0.0005673824,
-0.0050457283,
-0.02049041,
0.0057271114,
0.030106647,
0.0061499183,
-0.014843667,
0.0051994766,
0.009350671,
-0.062393717,
0.046096433,
0.007407856,
-0.027800426,
-0.03589316,
0.034187954,
0.040281966,
0.06200236,
0.022712767,
0.045313716,
-0.021902096,
-0.009874812,
0.034802947,
0.012740115,
0.010608609,
0.03259457,
-0.066642754,
-0.0294637,
-0.004794141,
0.032287072,
-0.031895712,
0.0025438298,
-0.021007562,
0.00041363444,
-0.035865206,
0.012900852,
0.017904649,
0.072345406,
0.02841542,
0.00071283145,
-0.034914766,
-0.03709519,
-0.022656858,
0.014081916,
-0.08676976,
-0.02687794,
0.0055454094,
-0.055544946,
0.006597185,
0.008658806,
-0.009252831,
0.015179117,
0.03153231,
-0.014046973,
0.0037738136,
0.003496019,
0.010804288,
0.025592048,
-0.057641506,
-0.055349264,
-0.039750837,
-0.0049933144,
-0.04553735,
-0.026332833,
-0.007876089,
0.025592048,
0.0047731753,
-0.030218463,
-0.0066391164,
0.008078757,
0.021231195,
0.030721638,
-0.06703411,
0.011985352,
-0.042238757,
0.029631425,
-0.02932393,
-0.014508217,
-0.035166353,
0.0027954176,
0.00010231665,
-0.013585729,
0.022419248,
0.013250278,
0.037123144,
-0.017848741,
0.014578102,
0.048556402,
0.04352465,
0.0294637,
-0.0036724797,
0.018785205,
0.035110444,
-0.0034715591,
0.04836072,
0.00974203,
0.024501834,
0.0063421032,
-0.029407792,
0.018659411,
0.022908445,
0.011628937,
-0.021944027,
0.007212177,
0.004266506,
0.039583113,
-0.014382423,
0.021622553,
-0.011104796,
-0.023201965,
0.015276956,
-0.010049526,
-0.02735316,
0.034719083,
-0.0143964,
-0.07955758,
0.0008010618,
0.024082521,
0.01721977,
-0.00997964,
0.012768069,
-0.012593356,
0.037989724,
0.024529789,
0.014270606,
0.013809362,
0.0070164977,
0.033377286,
0.028177807,
0.020867791,
0.0054545584,
0.013026645,
0.01871532,
-0.014969461,
-0.012264894,
-0.0026766122,
-0.018016465,
-0.04279784,
-0.015654339,
-0.04103673,
-0.0351384,
-0.046096433,
0.046571653,
-0.052973162,
-0.011139738,
0.042434435,
-0.020043144,
-0.0063735517,
0.047522098,
-0.0066146567,
0.0008373149,
-0.009756007,
0.033908416,
0.007945974,
0.09962868,
0.020937677,
0.023271851,
0.012670229,
0.023677185,
-0.037710182,
0.008931358,
0.0041197464,
-0.019847464,
0.000723751,
-0.01684239,
-0.05451064,
0.031364582,
-0.03273434,
-0.019903373,
-0.037989724,
0.013236302,
0.01170581,
-0.04626416,
-0.013480901,
0.062449627,
0.033265468,
-0.0029474183,
-0.01396311,
-0.010874174,
-0.023481507,
-0.008197562,
-0.044251457,
0.025032964,
-0.0016999632,
-0.021147333,
-0.0069885436,
-0.041539904,
0.011111785,
-0.006230287,
-0.017052047,
0.012558413,
0.015039346,
0.03153231,
0.020420525,
0.0175692,
-0.011901489,
0.0062722177,
0.0071457857,
0.02236334,
0.0008368781,
0.07083588,
0.03388046,
-0.019833487,
-0.02015496,
0.020797906,
0.013830327,
-0.046963014,
-0.010203274,
-0.022251522,
0.036116794,
-0.043077383,
-0.029295975,
-0.024585696,
0.020308707,
-0.036200657,
-0.035529755,
-0.03443954,
0.010308102,
-0.047382325,
0.0067439447,
-0.020979607,
-0.0123417685,
-0.01966576,
-0.008218528,
0.04592871,
-0.031336628,
0.22989513,
0.017317612,
0.037011325,
0.016520917,
0.036871556,
0.0562438,
0.008309378,
0.0032042472,
0.036284517,
-0.023076171,
-0.0019113667,
-0.022321409,
0.01118167,
0.013543798,
-0.016632734,
0.0074218335,
-0.042546254,
-0.01401203,
0.007289051,
-0.053532243,
-0.027395092,
0.03158822,
-0.013746466,
0.051379774,
0.01674455,
0.030749593,
0.027464977,
-0.01631126,
0.010636563,
-0.032091394,
0.01041293,
-0.029295975,
0.004933912,
-0.0046438873,
-0.033908416,
0.0281219,
-0.02802406,
-0.04567712,
0.01156604,
-0.016325237,
0.038241312,
-0.014410377,
-0.012146089,
-0.0015837786,
-0.026528511,
0.0068068416,
-0.013837316,
0.022013912,
-0.003160569,
-0.057417873,
0.040533554,
-0.0622819,
0.015905926,
-0.03033028,
-0.036592014,
-0.012747103,
-0.07877486,
-0.047046877,
0.044167597,
0.036731787,
0.048192997,
-0.0061009987,
-0.057361968,
0.025745794,
-0.011789673,
-0.04841663,
-0.029743241,
0.027716564,
-0.0019969763,
0.02250311,
-0.0000056474805,
-0.0115380855,
0.0054929955,
0.014843667,
0.008323356,
0.008519035,
-0.0041197464,
0.033377286,
-0.0057795257,
-0.04179149,
-0.011125761,
-0.013271244,
0.02471149,
-0.05048524,
0.04629211,
0.022013912,
-0.07323994,
-0.010503781,
-0.01218802,
0.028499281,
0.039079934,
0.0017558716,
0.019148609,
-0.0073938794,
-0.011405303
] | Combine optimizations
It is often possible to combine several of the optimization techniques described above to get the best inference performance possible for your model. For example, you can load a model in 4-bit, and then enable BetterTransformer with FlashAttention: |
[
0.018649248,
-0.020638693,
-0.012144196,
0.02696484,
-0.02427408,
-0.018520435,
-0.012401822,
-0.006437068,
0.008000714,
0.041535012,
0.010548348,
-0.045599774,
0.017690308,
-0.037785124,
0.0056033623,
0.034035236,
-0.046229526,
-0.038958754,
-0.05518918,
0.00685571,
0.0019787096,
0.00062706845,
-0.07293674,
-0.0009652024,
-0.015414613,
0.00078540103,
0.03704087,
-0.017790496,
0.049750414,
0.040046506,
0.024417205,
0.011128006,
-0.01371142,
-0.016659806,
-0.00034171206,
-0.037298497,
0.017289557,
-0.02045263,
-0.045027275,
-0.044741023,
0.015657926,
-0.0013337504,
0.0312586,
-0.05309955,
-0.060513448,
0.016960368,
0.0064764274,
-0.044454772,
-0.016530992,
-0.0265784,
-0.040361382,
-0.018778061,
0.04511315,
0.0071634296,
-0.027208151,
-0.019636815,
-0.029512472,
0.016702743,
-0.03623937,
0.022384824,
0.03781375,
0.018191248,
-0.015385988,
-0.04714553,
0.0131460745,
-0.008465871,
0.01910725,
0.019150188,
-0.027709091,
0.014140797,
-0.06549422,
0.045599774,
-0.022284636,
-0.031086853,
-0.035666868,
0.00096430787,
-0.005596206,
-0.0016817243,
0.024073705,
0.052527048,
-0.0014393055,
0.009195811,
0.006200911,
0.033491362,
-0.03881563,
-0.029541098,
0.05624831,
-0.025233021,
-0.021440195,
-0.028925657,
0.0036282307,
0.028653719,
0.0032793623,
-0.0065515684,
0.028639406,
0.05398693,
-0.013439482,
0.028868407,
-0.00010119418,
-0.02488952,
0.011729132,
0.07934876,
-0.010877536,
0.0062867864,
-0.019465065,
0.028968595,
0.012824042,
0.0016352085,
-0.021111008,
-0.011056443,
0.0113283815,
0.0032328465,
0.025032645,
-0.013468107,
-0.04580015,
0.032174606,
0.034750864,
0.029297784,
-0.039760254,
-0.018792374,
0.0049879225,
0.014376953,
0.012172821,
-0.045599774,
0.044741023,
-0.056105185,
0.010390909,
0.023587078,
-0.056649063,
-0.0028088375,
-0.010834598,
-0.016874492,
0.0026531885,
0.06973073,
0.015371676,
0.012895605,
0.021225508,
0.0040397164,
0.023944892,
-0.020166378,
-0.009267374,
-0.016788619,
-0.0048304847,
0.08736379,
0.0050666416,
0.0075713373,
0.020466942,
-0.0265784,
-0.02039538,
0.037956875,
-0.054702554,
0.01219429,
-0.0033902845,
0.058795944,
-0.025018333,
-0.0050451728,
0.0048948913,
0.013239106,
-0.010820285,
-0.0046014837,
0.019708378,
-0.015543426,
-0.062860705,
0.041935764,
-0.008687716,
0.031544853,
0.012423291,
-0.006079254,
0.015686551,
-0.017761871,
-0.0015779583,
0.020352442,
0.028682344,
0.023443952,
0.058509693,
0.028052593,
0.08507378,
0.013503889,
0.021783696,
-0.014491454,
-0.018291436,
-0.02118257,
-0.0065801935,
0.027050715,
0.006079254,
-0.015099737,
-0.0064334897,
-0.0037498875,
-0.03506574,
0.010076033,
0.009904282,
0.04591465,
-0.025776897,
-0.0071920548,
-0.053128175,
-0.00007698585,
0.00016917878,
0.0005957598,
-0.0027569544,
-0.03944538,
0.0026066727,
0.07259324,
-0.03583862,
0.009954376,
-0.047603533,
0.060112696,
0.0059754886,
0.04399677,
-0.033290986,
-0.008594684,
0.022613825,
0.049607288,
0.0052705957,
-0.0035423555,
0.049263787,
-0.01686018,
-0.021769384,
0.0027247511,
-0.0025744694,
0.00007228954,
0.024689144,
0.01764737,
0.02387333,
-0.015729489,
-0.016616868,
-0.017604433,
-0.003345558,
0.06400571,
-0.015972802,
-0.00539583,
0.021869572,
0.02500402,
-0.0075498684,
0.03698362,
0.01943644,
0.01219429,
0.04376777,
0.026793089,
-0.00036295725,
-0.019407814,
-0.010097502,
0.027222464,
0.030714726,
0.046057776,
-0.019622503,
-0.010662847,
0.0015976381,
-0.027952405,
-0.039760254,
0.017661683,
-0.04405402,
0.049464162,
0.0018498967,
-0.0053278455,
-0.054330427,
0.004451202,
0.014670361,
0.019765629,
0.0037785124,
-0.051210295,
0.035323367,
0.038329,
0.019923065,
-0.010798817,
0.024317017,
0.012630823,
-0.027408527,
0.029626973,
-0.033977985,
-0.057965815,
-0.025132833,
-0.0611432,
-0.055389557,
0.009675282,
-0.030371225,
-0.022799887,
-0.005564003,
-0.0763145,
-0.0003166651,
-0.007879057,
-0.0026460323,
-0.017990872,
-0.041764013,
0.04780391,
0.03423561,
0.0063368804,
-0.05040879,
0.04726003,
-0.032518107,
0.038729753,
-0.0069988356,
-0.039531257,
-0.024646206,
-0.033634488,
0.024660518,
0.0009821985,
-0.021955447,
-0.007088289,
-0.034035236,
0.018849624,
0.0051847203,
0.008415778,
0.036267996,
0.030428475,
-0.026263524,
0.039245006,
0.016216116,
-0.03870113,
0.040103756,
0.05209767,
-0.01759012,
0.042393766,
0.007743088,
0.04923516,
-0.01960819,
0.034035236,
0.023272201,
0.0075999624,
-0.042508263,
-0.026492525,
-0.020667318,
0.0014294656,
-0.046000525,
-0.04236514,
-0.021840947,
0.050523292,
-0.020323817,
-0.073165745,
0.006988101,
-0.036096245,
-0.034321487,
-0.0056999717,
-0.05123892,
0.06944448,
0.04316664,
0.004909204,
-0.071219236,
0.007828963,
0.011013505,
0.033577237,
-0.00048304847,
-0.01230879,
0.0025333208,
0.055618558,
-0.0047195624,
0.009725376,
0.022799887,
-0.038071375,
0.004690937,
-0.03303336,
-0.003347347,
0.043510143,
-0.002586993,
0.031287227,
0.015686551,
0.01073441,
-0.026750151,
-0.0009857767,
0.013568294,
-0.0019966003,
0.022599513,
0.033863485,
0.006197333,
0.032546733,
-0.0069737886,
-0.0136756385,
-0.02842472,
0.022098573,
0.06623847,
-0.06257445,
0.040332757,
-0.011399943,
-0.02786653,
0.0048734224,
-0.013503889,
-0.031945605,
0.060398947,
0.01207979,
0.049521413,
-0.03686912,
-0.018076748,
0.00030548344,
0.014183735,
0.03372036,
0.051210295,
0.023973517,
-0.0018373732,
-0.010398066,
-0.03343411,
-0.032632608,
-0.02000894,
0.022485012,
0.027165214,
0.007957776,
-0.04213614,
-0.058967695,
0.029512472,
0.021368632,
0.015142675,
0.013453795,
0.06389121,
-0.0305716,
0.032432232,
0.031945605,
-0.0015475441,
-0.011972446,
-0.016316304,
0.019751316,
0.012795418,
-0.013410857,
-0.008823685,
-0.04247964,
-0.005306377,
-0.006673225,
-0.0105197225,
-0.0030110022,
-0.0021433039,
0.0048018596,
-0.009575094,
0.022628138,
-0.028524907,
-0.027465777,
-0.03815725,
0.017461307,
0.023057513,
-0.05321405,
0.005839519,
-0.037012246,
0.010047408,
0.022857137,
-0.021654883,
-0.023472577,
0.01663118,
-0.027322652,
-0.071047485,
0.03715537,
0.05100992,
0.0047231405,
-0.00090437406,
-0.039073255,
0.004207889,
0.022842824,
-0.02415958,
0.00921728,
0.023386702,
-0.015858302,
0.008093745,
0.027551653,
-0.0037033716,
-0.024689144,
0.03921638,
-0.024803644,
0.026163336,
-0.007252883,
-0.010941942,
0.010512566,
-0.009596563,
-0.043309767,
0.029226221,
0.035609618,
-0.0059218165,
-0.0457429,
0.04107701,
-0.058452442,
-0.079119764,
0.01960819,
0.027236776,
0.0056319875,
0.026149023,
0.006147239,
-0.00081626244,
0.04371052,
0.015600677,
-0.014176578,
-0.0039144815,
-0.017346807,
0.018978437,
-0.04476965,
-0.037183996,
0.0025601569,
-0.041535012,
0.030199474,
0.0020842648,
-0.007063242,
-0.006147239,
-0.065207966,
0.028396094,
0.0057643782,
-0.027966717,
0.0032328465,
0.019321939,
-0.012960011,
0.005596206,
-0.018649248,
-0.023057513,
-0.039817505,
-0.028768219,
0.012602198,
0.041935764,
0.049693163,
0.03815725,
-0.04917791,
-0.017404057,
0.025347522,
0.017518558,
0.0014026297,
-0.035752743,
-0.00071115466,
0.011700507,
-0.012652292,
-0.0022327574,
0.0016173178,
-0.006698272,
0.018964125,
-0.0112926,
-0.034636363,
-0.01854906,
0.0034886834,
0.009389031,
0.05496018,
-0.053185426,
-0.056391437,
-0.0143841095,
0.016946055,
0.008888092,
0.00096878054,
0.02415958,
-0.016588243,
-0.025691021,
-0.029913224,
0.04365327,
-0.020824756,
-0.009353249,
-0.030485725,
-0.030686101,
0.019465065,
0.015944177,
0.009689595,
-0.046945155,
-0.029684223,
-0.040762134,
-0.020695943,
-0.037327122,
-0.025404772,
-0.04265139,
0.0014088914,
-0.0266929,
0.0063619274,
-0.01455586,
0.023672953,
-0.039187755,
-0.0020520615,
0.03781375,
0.04703103,
-0.046544403,
-0.008050808,
-0.012881292,
-0.006104301,
0.014248141,
0.013339294,
-0.027122276,
0.030743351,
-0.049149286,
0.02191251,
-0.05275605,
-0.040704884,
-0.03933088,
-0.029512472,
0.038014125,
-0.017933622,
-0.01708918,
-0.019135876,
0.04305214,
0.013940421,
-0.004469093,
-0.06085695,
-0.012859823,
-0.021025132,
-0.0298846,
0.007635744,
-0.01989444,
-0.00397531,
-0.01109938,
0.0147132985,
0.053242676,
-0.034979865,
0.011128006,
0.03377761,
0.029211909,
-0.007735932,
-0.039416756,
0.041391887,
0.0017291346,
0.0228142,
-0.07041773,
-0.0039144815,
-0.020309504,
-0.001672779,
-0.030915102,
-0.033577237,
-0.032432232,
0.021039445,
0.041592263,
-0.012294478,
0.044912774,
0.018677874,
-0.05799444,
-0.0460864,
0.022628138,
0.004630109,
0.00591466,
0.025590835,
0.017819121,
-0.0070238826,
0.016244741,
-0.012401822,
-0.028925657,
-0.02118257,
0.06257445,
-0.012516323,
-0.032890234,
0.015801052,
0.012423291,
-0.04422577,
-0.050494667,
0.04130601,
0.003164862,
-0.05982645,
-0.030170849,
0.014119328,
-0.001686197,
-0.016659806,
-0.018405935,
0.056162436,
-0.027279714,
0.020323817,
0.0052920645,
-0.014956612,
-0.041334637,
0.040332757,
0.038586628,
-0.04388227,
-0.00795062,
-0.05415868,
-0.0032561044,
-0.034407362,
-0.012573573,
0.04247964,
0.012437603,
0.047403157,
0.036783244,
-0.013002949,
0.056649063,
-0.0038787003,
0.016960368,
0.029770099,
-0.03286161,
-0.06589497,
0.0050344383,
0.00024308967,
0.00470525,
0.013317825,
-0.02348689,
0.016115928,
0.020738881,
0.049521413,
0.00539583,
-0.046057776,
0.01230879,
-0.041935764,
-0.003452902,
0.007428212,
-0.023343764,
0.014462829,
0.043452892,
-0.013926108,
-0.03500849,
0.01972269,
-0.006412021,
-0.038128626,
-0.028739594,
-0.040704884,
0.024145268,
-0.029712848,
-0.02393058,
0.005152517,
-0.030142223,
0.010841754,
0.037613373,
-0.031544853,
0.0094105,
0.019307626,
0.020910632,
-0.0014053133,
0.006093567,
-0.011550225,
0.012215759,
0.0024241877,
0.0004519634,
-0.010512566,
0.0767725,
0.030113598,
-0.041048385,
-0.016530992,
0.024460142,
0.0063368804,
-0.029770099,
0.012280165,
0.054301802,
-0.0050702197,
0.058681443,
-0.008494496,
-0.010161908,
-0.03990338,
-0.017446995,
-0.01396189,
0.013024418,
0.016616868,
0.022885762,
0.0040218257,
0.046658903,
0.019135876,
0.018921187,
0.015142675,
0.01123535,
0.031716604,
-0.0069165383,
0.032174606,
-0.008837998,
0.009381874,
-0.040361382,
0.034922615,
0.05642006,
-0.008337059,
-0.00977547,
0.011242506,
-0.0303426,
-0.053700678,
-0.024359955,
0.027494403,
0.03921638,
0.03297611,
-0.02759459,
0.0045943274,
-0.017761871,
-0.0147132985,
-0.012172821,
-0.053901054,
-0.027437152,
0.0049592974,
-0.025748271,
0.010097502,
-0.00008922978,
0.0022399137,
-0.0056999717,
0.030600226,
0.037441622,
0.008823685,
0.0225852,
-0.0028052593,
0.0149423,
-0.01275248,
-0.054931555,
-0.0078003383,
0.01353967,
-0.034979865,
-0.035638243,
0.024173893,
0.040275507,
0.034149736,
-0.015514801,
-0.04107701,
0.0060220044,
-0.0003285177,
0.033176485,
-0.04247964,
0.01899275,
-0.011557382,
0.05673494,
-0.045313526,
0.0072922427,
0.012580729,
0.036582872,
0.0130959805,
0.032775734,
-0.019336252,
0.030857852,
0.059024945,
-0.029569723,
0.029312097,
-0.0054495023,
0.041506387,
0.031229978,
-0.019121563,
-0.01219429,
0.07860451,
0.04276589,
0.04580015,
-0.030714726,
0.039703004,
0.014985237,
-0.021497445,
-0.0053815176,
0.038586628,
0.020280879,
0.0017792286,
0.007921995,
-0.0067376317,
-0.016058678,
-0.019364877,
0.015614989,
0.022785574,
0.02141157,
-0.0120869465,
-0.021511758,
-0.039817505,
-0.009553625,
0.0095607815,
-0.0299991,
0.0003792825,
0.0021558274,
0.022943012,
0.011729132,
0.02185526,
-0.01353967,
0.0452849,
0.015257175,
0.027065028,
0.029426597,
0.0038536533,
0.032403607,
-0.0045621246,
0.01759012,
-0.008916717,
-0.006419177,
0.0003271759,
-0.04219339,
-0.057908565,
0.03529474,
0.008702029,
-0.05095267,
0.02556221,
-0.03804275,
-0.005363627,
-0.03529474,
0.01348242,
-0.05994095,
0.021139633,
0.019808564,
-0.0049199383,
-0.06394846,
0.025046958,
-0.0014616689,
0.03535199,
0.054473553,
0.053013675,
0.03051435,
0.073280245,
0.012408978,
0.017074868,
0.037183996,
0.036525622,
-0.016745681,
-0.0032274793,
0.009696751,
-0.011249662,
-0.019092938,
-0.034092486,
-0.06635297,
0.020753194,
-0.00045889604,
-0.019851502,
0.01791931,
-0.0036783246,
-0.046887904,
-0.01522855,
-0.019350564,
0.073108494,
0.036382496,
-0.018577686,
-0.00649074,
0.0071634296,
-0.06320421,
0.0091314055,
-0.024402892,
0.0460864,
-0.011793539,
-0.05822344,
0.023558453,
-0.03062885,
-0.028267281,
-0.030829227,
0.013181856,
-0.03291886,
0.010326503,
0.034464613,
0.04708828,
-0.007929151,
-0.019422127,
-0.0092315925,
0.018663561,
0.030686101,
0.015085424,
0.098985575,
0.041048385,
-0.013775826,
-0.0025440552,
-0.03274711,
0.0054244553,
-0.037412997,
-0.006716163,
0.0020001784,
0.023773141,
-0.035151616,
-0.04207889,
-0.015872614,
0.019450752,
0.024631893,
-0.0049306727,
-0.04797566,
0.039932005,
-0.0907988,
-0.05175417,
-0.045199025,
0.01430539,
0.003846497,
-0.009739689,
-0.04101976,
-0.04179264,
0.2443438,
0.052899174,
0.038443502,
0.06412021,
0.030485725,
0.04079076,
0.018119685,
-0.062116455,
-0.00022139722,
-0.017175056,
0.0071813203,
-0.04614365,
-0.020853382,
0.020552818,
-0.027408527,
0.038672503,
-0.016115928,
-0.01730387,
-0.016588243,
-0.039474007,
-0.049693163,
0.037441622,
0.029312097,
0.031000977,
0.0230432,
-0.006276052,
0.006694694,
-0.02331514,
0.010111814,
-0.012852667,
0.0140048275,
-0.041878514,
0.038529377,
-0.043252517,
-0.007506931,
0.0026853916,
0.013203325,
-0.04253689,
0.009267374,
0.03612487,
-0.024302704,
-0.02158332,
0.03460774,
-0.0014232039,
-0.052183546,
0.019880127,
-0.037241247,
0.036525622,
0.04476965,
-0.07883351,
0.007714463,
-0.042794514,
0.020753194,
-0.049864914,
-0.022127198,
-0.018964125,
-0.058738694,
-0.063032456,
-0.02164057,
0.03168798,
0.014741924,
-0.007879057,
-0.00449414,
0.029269159,
-0.00658735,
0.013324982,
0.0026317197,
0.014255297,
0.004372483,
-0.007005992,
-0.01843456,
-0.003950263,
-0.00691296,
-0.03715537,
0.0036926372,
0.05118167,
0.015758114,
0.06360496,
0.01764737,
-0.019007063,
-0.0042293575,
-0.011285444,
0.01522855,
-0.022857137,
0.048176035,
0.027494403,
-0.027179526,
0.033290986,
-0.04434027,
0.032174606,
0.025776897,
0.033748984,
0.0031559167,
-0.0032131667,
-0.008108058
] | Now you're free to use the model for inference:
from optimum.pipelines import pipeline
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased-finetuned-sst-2-english")
pipeline = pipeline(task="text-classification", model=ort_model, tokenizer=tokenizer, device="cuda:0")
result = pipeline("Both the music and visual were astounding, not to mention the actors performance.") |
[
0.016339218,
-0.021480825,
-0.046439353,
0.043351393,
-0.005804919,
-0.0056999885,
-0.010837848,
-0.047728505,
0.009983412,
0.06014031,
0.015514762,
0.0007106248,
-0.0041709975,
-0.056063004,
0.0016395431,
0.013723444,
-0.010815362,
-0.007097816,
-0.057502054,
-0.017133694,
0.036575865,
0.004148512,
-0.08718247,
-0.01935223,
-0.057082333,
0.037235428,
-0.022125399,
-0.02092619,
0.05435413,
0.013288731,
-0.06451742,
-0.03180901,
0.008806689,
-0.05378451,
-0.013618513,
-0.036515903,
0.02344453,
-0.01932225,
-0.051805813,
-0.05276518,
0.014817722,
0.015057564,
-0.0138058895,
-0.05417425,
-0.043441333,
-0.010155798,
0.014255593,
-0.01800312,
0.008836669,
-0.039483946,
-0.033008218,
0.049167555,
0.017658347,
-0.01812304,
-0.0080047175,
0.0010268224,
-0.016878862,
-0.03312814,
-0.005362711,
-0.03204885,
0.04287171,
-0.009481243,
0.0060297707,
-0.059180945,
-0.00451577,
0.012134492,
0.00066752825,
-0.008327005,
0.02103112,
-0.04170248,
-0.030100137,
-0.0031966404,
-0.041252777,
-0.07974737,
-0.027326968,
0.030969564,
0.03582636,
-0.01388084,
-0.034087505,
0.018108051,
0.046019632,
0.029890275,
-0.021630725,
-0.031749047,
-0.027267007,
-0.03615614,
0.043321412,
-0.024164055,
-0.025438214,
0.010335679,
-0.05264526,
0.014075711,
-0.013611018,
0.013363681,
-0.005587563,
0.013730939,
-0.0026607441,
0.032558516,
-0.03063978,
0.0070790784,
0.037115507,
0.042721808,
0.0019103019,
0.047758482,
-0.053724546,
-0.0030092641,
-0.011594849,
0.0006056941,
-0.03369776,
0.017133694,
0.0011429958,
-0.0008193031,
-0.019082407,
0.016369198,
0.012419305,
0.003968631,
-0.0278816,
-0.009316352,
0.009331342,
-0.007026613,
0.0610697,
-0.022125399,
0.02224532,
-0.010208263,
0.018887537,
-0.008132134,
-0.00017777331,
0.027012175,
-0.030309997,
-0.03480703,
0.003318435,
-0.011295047,
-0.018842565,
0.035226755,
0.029710393,
0.017433496,
-0.0026588703,
0.011542384,
0.04050327,
-0.022590093,
0.014143167,
-0.0038936806,
-0.005092889,
0.089341044,
0.027521838,
0.005388944,
-0.011939621,
0.009308857,
-0.020986151,
0.024748668,
-0.00331094,
-0.0016863871,
0.0066893357,
0.0063745435,
-0.006505707,
-0.014293068,
-0.006962905,
0.059001066,
-0.0015168115,
0.060799878,
-0.009751066,
-0.0029849051,
-0.0022035458,
0.025258332,
-0.019906864,
0.04434074,
-0.03597626,
-0.048927713,
-0.01678892,
-0.021390883,
0.04320149,
-0.0067942664,
0.0003829504,
0.00021466303,
0.017088722,
0.0148252165,
0.065176986,
-0.018662684,
0.0068279942,
0.024328945,
-0.015574723,
-0.045150205,
-0.022575103,
0.006299593,
0.026082788,
0.0292457,
-0.028466215,
-0.010815362,
-0.033517882,
-0.00088629016,
-0.041792423,
0.018602723,
-0.03450723,
0.064937145,
-0.0118871555,
0.00096686196,
-0.021795617,
0.009586174,
-0.00981852,
-0.04844803,
-0.0052015674,
0.06679592,
-0.0101707885,
0.0066293753,
-0.0033952594,
-0.009915956,
0.004935493,
0.030759702,
-0.013221275,
-0.0046057105,
0.0747107,
-0.007742391,
-0.033338,
-0.0017885072,
0.06265865,
0.028676076,
-0.021795617,
0.009488738,
0.014615355,
-0.016998783,
0.0019843155,
0.027911581,
0.047608584,
-0.05147603,
0.00079260196,
-0.019292269,
-0.034417287,
0.03738533,
0.039423984,
0.026937224,
0.029515523,
0.050456703,
-0.020671358,
0.03852458,
0.029830314,
0.002059266,
0.044880383,
0.02800152,
0.018257951,
0.00036093369,
-0.0077049155,
0.0068729646,
0.015087544,
-0.0032809598,
0.028885938,
-0.00050966366,
0.024793638,
0.026652412,
-0.05120621,
0.017658347,
-0.049077615,
0.051056307,
-0.008499391,
-0.025408233,
-0.027162075,
0.013685969,
0.0209112,
0.021555776,
0.013086365,
0.010657967,
0.034866992,
0.014330544,
-0.030025186,
-0.011797215,
0.021181023,
0.013528572,
-0.0121869575,
0.014412989,
0.03177903,
-0.010882818,
-0.045450006,
0.005239043,
-0.03468711,
-0.036545884,
-0.039124183,
0.034866992,
0.0047031464,
-0.011677294,
0.02632263,
0.0040061064,
0.04571983,
0.048717853,
-0.036815707,
0.010800373,
0.040113527,
0.01668399,
-0.046979,
-0.0034121233,
-0.042212144,
0.026067797,
0.0062958454,
-0.020431517,
-0.00419723,
-0.0039349035,
0.060500074,
-0.018168012,
-0.009511223,
-0.038044892,
-0.009541203,
-0.008379471,
-0.015679654,
-0.01533488,
0.02789659,
-0.029515523,
-0.026022827,
0.042901687,
-0.02911079,
-0.05246538,
0.031209406,
0.0009256392,
0.00020927595,
0.017793259,
-0.0006131891,
0.03222873,
-0.04724882,
0.07201248,
0.029575484,
0.0048605427,
-0.045180187,
-0.05657267,
-0.025243342,
0.017253615,
-0.014795236,
-0.066016436,
-0.016803911,
0.018962486,
-0.03885436,
-0.06259869,
0.021690685,
-0.042362045,
-0.06217897,
-0.0028237617,
-0.021136053,
0.027611779,
-0.019157358,
0.033068176,
-0.07584994,
0.04185238,
-0.023279637,
0.041012935,
0.004193483,
-0.0022391474,
0.07644955,
0.02645754,
0.024733678,
-0.019652031,
-0.016324228,
-0.020161696,
-0.00076964835,
-0.03603622,
-0.015454802,
0.008147123,
0.022080429,
-0.011197611,
0.025678055,
0.017103713,
-0.057502054,
-0.003889933,
0.00904653,
0.05570324,
0.024313955,
0.017448485,
0.005902355,
0.00007184712,
-0.011572364,
0.0134311365,
0.013850859,
0.025408233,
0.056122962,
-0.031089485,
0.04302161,
-0.025258332,
-0.025528153,
-0.012396819,
-0.025723025,
-0.039753765,
0.042571906,
0.033907626,
0.03041493,
-0.0039573885,
-0.023189697,
0.03480703,
0.023309618,
0.01038065,
0.037775073,
-0.008971579,
-0.028226374,
0.05684249,
-0.0011701653,
-0.009069015,
0.008267044,
-0.0035151802,
-0.027147086,
-0.023429539,
-0.0064382516,
-0.0010333805,
0.031419266,
0.0082295695,
0.03585634,
0.007959748,
0.06793517,
-0.021166032,
-0.005441409,
-0.007217737,
0.010388145,
-0.014038236,
-0.030939583,
0.045390047,
0.01177473,
-0.010245739,
-0.009054026,
0.0066818404,
-0.027611779,
0.028945899,
-0.027551819,
-0.0012141988,
-0.015057564,
-0.0074051134,
-0.032618474,
0.01951712,
-0.060619995,
-0.06487719,
-0.033188097,
0.049017653,
0.047848426,
-0.030280018,
0.014210623,
-0.026832294,
-0.017613377,
0.0135060875,
-0.04305159,
-0.011197611,
-0.008739233,
0.005831152,
-0.06259869,
0.028825978,
0.039124183,
-0.034237407,
-0.029890275,
-0.054713894,
-0.032918278,
0.0019374714,
0.017538426,
-0.022949856,
0.00828953,
0.011010234,
-0.011729759,
-0.00086474186,
0.015087544,
0.00043494735,
-0.0020573924,
-0.034956932,
0.026112769,
-0.050636586,
0.024104094,
-0.009496233,
-0.009503729,
0.010305699,
0.010305699,
0.01039564,
-0.005239043,
0.018617714,
0.052075636,
-0.03597626,
-0.033847664,
0.012951453,
-0.024388906,
0.004920503,
0.07027362,
0.0038786905,
0.002805024,
0.039513923,
0.049197536,
-0.006108469,
-0.013663484,
-0.040952977,
0.005467642,
0.0062059048,
-0.007749886,
0.012276898,
-0.025498174,
0.034297366,
-0.034237407,
0.0048343097,
-0.00045415343,
-0.056152944,
0.0022934866,
0.033607822,
0.008836669,
0.018332902,
-0.025738016,
-0.029035838,
0.032618474,
-0.003730663,
-0.019217318,
0.0047855917,
-0.032618474,
-0.014795236,
0.05255532,
0.07195252,
0.026667401,
-0.035436615,
-0.0613695,
0.067455485,
-0.00630334,
0.008162114,
-0.0078023514,
-0.007465074,
0.0059323353,
0.005553835,
-0.04434074,
-0.011250076,
-0.025618095,
-0.014855197,
-0.021630725,
-0.018467814,
-0.015342375,
-0.0006656545,
-0.035346676,
0.05417425,
0.023999162,
-0.07668939,
-0.027956551,
0.0054863794,
-0.0139408,
-0.0035545293,
0.022530133,
0.007034108,
-0.008064678,
-0.009084006,
0.054773856,
-0.02927568,
-0.012246918,
0.0015261804,
-0.049647238,
0.03189895,
0.016893853,
0.011317532,
-0.042002283,
0.005722474,
-0.038284734,
0.032768376,
-0.06124958,
-0.008117143,
-0.005456399,
-0.026217699,
-0.035406634,
0.0100208875,
0.011782225,
0.010965264,
0.0014212496,
0.02497352,
-0.006783024,
0.03756521,
-0.034327347,
0.008297024,
-0.017748287,
0.034537207,
-0.0007298309,
-0.003698809,
-0.025872927,
0.0061309543,
0.0016929454,
0.007884797,
-0.043441333,
0.00001724448,
-0.043711156,
-0.00010979083,
0.019112388,
-0.008469411,
0.007184009,
0.011797215,
0.025393242,
0.004118532,
0.061699286,
-0.031269364,
-0.004148512,
-0.016054405,
-0.07225232,
0.0019112388,
0.0039386507,
0.0023684371,
-0.02083625,
0.016803911,
0.00332593,
-0.0292457,
0.01190964,
0.07489058,
0.024598768,
0.010905304,
-0.061879165,
0.026562471,
0.020266626,
-0.019831913,
-0.039483946,
-0.01038065,
-0.012524235,
-0.023849262,
-0.004373364,
-0.032768376,
0.002686977,
-0.0059848004,
0.014915157,
-0.025992848,
0.040803075,
-0.023174707,
-0.059120987,
-0.019786943,
0.013918315,
-0.028406255,
-0.016803911,
0.041342717,
0.02510843,
-0.026187718,
0.024373915,
-0.02650251,
-0.0011504908,
0.019277278,
0.008267044,
-0.007375133,
-0.03312814,
0.032438595,
0.019921854,
-0.047998324,
-0.05276518,
0.030759702,
0.019562092,
0.0060485085,
0.00731892,
0.008514381,
-0.006100974,
-0.0035601507,
-0.011759739,
0.037865013,
-0.0053514685,
0.0056512705,
-0.0033053188,
0.021600746,
-0.060799878,
0.012973938,
0.06112966,
-0.017793259,
-0.03489697,
0.004126027,
-0.017088722,
-0.0021529542,
-0.022020468,
0.03891432,
-0.03915416,
0.018422842,
0.025633086,
-0.006513202,
0.045120224,
-0.025333282,
-0.0048343097,
-0.007026613,
0.0071352916,
-0.053035002,
0.016878862,
-0.0060335184,
0.014015751,
0.025228351,
0.017808247,
0.025558135,
0.032288693,
-0.036336023,
-0.015349871,
-0.06523695,
0.009413788,
-0.044010956,
-0.018632704,
0.05267524,
0.004343384,
-0.03057982,
-0.014652831,
0.015072553,
-0.05042672,
-0.035196774,
-0.007989728,
-0.01824296,
-0.03210881,
-0.019082407,
0.012891493,
-0.07333161,
-0.02635261,
-0.013333701,
-0.028241364,
0.002115479,
-0.007401366,
-0.02230528,
-0.012839028,
-0.0153049,
0.009676115,
-0.013026404,
0.0106429765,
-0.027296986,
0.004793087,
-0.03426739,
0.026007837,
0.0193972,
0.035616495,
0.047758482,
-0.038434636,
0.024613757,
-0.007967242,
0.0015140009,
-0.039453965,
0.0024939792,
0.06535687,
-0.015709633,
-0.029635444,
-0.0193972,
0.035736416,
-0.038044892,
0.0012563585,
0.0026832293,
0.0012451159,
-0.013693464,
0.0050366763,
0.018857555,
0.022545122,
-0.00053589634,
0.047038957,
0.03213879,
0.05123619,
-0.014787742,
0.013858355,
0.04595967,
0.043471314,
-0.02501849,
-0.028031502,
0.043561254,
0.0059922957,
-0.013760919,
0.082745396,
0.014465454,
0.0025145905,
-0.048028305,
-0.01668399,
0.013048889,
0.056212906,
0.041252777,
-0.0032584746,
-0.012456779,
0.039004263,
-0.03468711,
0.00559131,
-0.027012175,
-0.007382628,
-0.0042871707,
-0.051146246,
-0.0052990033,
-0.044670522,
-0.007465074,
0.0063782907,
0.017868208,
0.032168772,
-0.00032369266,
-0.0044033444,
-0.0043546264,
0.04047329,
-0.05012692,
-0.01662403,
-0.020986151,
0.030759702,
-0.036545884,
-0.031359307,
-0.00094531366,
0.08922112,
-0.006003538,
0.027147086,
-0.060410134,
0.00070547196,
0.005325236,
0.0076711876,
-0.082505554,
0.027911581,
-0.048927713,
0.014375513,
-0.030160097,
-0.02521336,
-0.012876503,
0.06295846,
0.008889134,
0.03756521,
-0.016489118,
0.028166413,
0.00058742485,
-0.063318215,
0.01935223,
0.031149445,
0.009413788,
0.010185778,
0.0034214922,
0.020281617,
0.023354588,
0.01048558,
0.023459518,
-0.0025183382,
0.035676457,
0.037894994,
0.010335679,
0.00024031017,
-0.0049167555,
-0.010897809,
-0.005306498,
0.00695541,
-0.06229889,
-0.00048905227,
0.014060721,
0.02209542,
0.028511185,
-0.0058348994,
0.051895753,
0.014645335,
-0.028900929,
0.018392863,
-0.04443068,
-0.011347512,
0.02092619,
0.0001398296,
0.047908384,
0.026742352,
0.0474287,
0.03183899,
0.058611322,
0.022620073,
0.039693806,
-0.0034196184,
-0.012321869,
0.018212982,
-0.052315477,
0.032888297,
-0.024868589,
0.014165652,
0.01110767,
-0.03330802,
-0.011250076,
0.085443616,
-0.03888434,
-0.038464617,
-0.021315934,
-0.004508275,
-0.04586973,
-0.05432415,
0.03234865,
-0.049827117,
-0.014165652,
-0.0006572225,
-0.010598007,
-0.01313883,
0.010560531,
-0.011527393,
0.037145488,
0.026187718,
0.013670978,
-0.018497793,
0.10223254,
0.01316881,
0.010620492,
0.008859154,
-0.0013097607,
-0.034956932,
0.015342375,
-0.01938221,
0.03225871,
0.028076472,
-0.0047031464,
-0.05264526,
0.031089485,
0.014600365,
-0.017433496,
-0.014083207,
0.0010596133,
0.016923832,
-0.03474707,
0.015529752,
0.09036037,
0.01657906,
0.03450723,
-0.015664663,
-0.021870568,
-0.07369137,
0.015364861,
0.019337239,
0.03597626,
-0.016309237,
-0.020356566,
0.026742352,
-0.05147603,
0.007528782,
0.008836669,
-0.006486969,
-0.014660326,
0.013341196,
0.056302845,
0.04721884,
0.046259474,
-0.018287933,
-0.056242883,
0.028076472,
0.04194232,
0.022335261,
0.04434074,
0.068294935,
0.037205447,
-0.021046111,
0.03225871,
0.01672896,
0.0040210965,
0.0034664625,
-0.03840466,
-0.0386445,
-0.011857175,
-0.051146246,
0.0153049,
0.06397778,
-0.0028874695,
-0.012614176,
-0.03447725,
-0.061699286,
-0.053274844,
-0.018827576,
-0.04284173,
-0.024149064,
-0.021525795,
-0.02641257,
0.028795997,
-0.041252777,
0.2679032,
0.035076853,
0.00971359,
-0.027072135,
-0.0007935388,
0.034357328,
-0.0059698103,
0.008784203,
-0.01672896,
-0.016039416,
0.0058461423,
-0.03168909,
0.033757724,
0.0029605464,
-0.03056483,
0.025588114,
-0.031359307,
-0.012366839,
-0.01932225,
-0.038464617,
-0.010957769,
-0.019921854,
0.014397998,
0.02800152,
-0.000023875846,
-0.013715949,
-0.017703317,
-0.038044892,
0.044040937,
-0.026157739,
0.012726601,
-0.021061102,
0.05156597,
-0.031419266,
0.016129356,
0.059420787,
-0.019007457,
-0.021645715,
-0.0051228693,
-0.01801811,
-0.0017931917,
-0.016429158,
-0.005887365,
-0.045330085,
-0.0030223804,
0.02756681,
-0.03180901,
0.005737464,
0.033817682,
-0.049467355,
0.021151042,
-0.056632627,
0.050456703,
-0.00296242,
-0.04592969,
-0.0036144897,
-0.03054984,
-0.014712791,
-0.034237407,
0.020731319,
0.025378253,
0.022949856,
0.018767616,
0.015514762,
0.022620073,
-0.0053851963,
-0.012696621,
0.04991706,
-0.022455182,
0.0015402336,
0.042152185,
0.0055163596,
-0.008506887,
-0.038254756,
0.017883198,
0.03210881,
0.02224532,
0.042092223,
-0.008214579,
-0.03234865,
0.0059698103,
0.020686349,
0.010927789,
-0.031569168,
-0.0028106452,
0.04850799,
-0.023324609,
0.0013800268,
0.007817341,
0.032678436,
-0.008754223,
0.072432205,
0.008042193,
-0.0069216825,
0.015664663
] |
Efficient Training on Multiple CPUs
When training on a single CPU is too slow, we can use multiple CPUs. This guide focuses on PyTorch-based DDP enabling
distributed CPU training efficiently on bare metal and Kubernetes.
Intel® oneCCL Bindings for PyTorch
Intel® oneCCL (collective communications library) is a library for efficient distributed deep learning training implementing such collectives like allreduce, allgather, alltoall. For more information on oneCCL, please refer to the oneCCL documentation and oneCCL specification.
Module oneccl_bindings_for_pytorch (torch_ccl before version 1.12) implements PyTorch C10D ProcessGroup API and can be dynamically loaded as external ProcessGroup and only works on Linux platform now
Check more detailed information for oneccl_bind_pt.
Intel® oneCCL Bindings for PyTorch installation
Wheel files are available for the following Python versions:
| Extension Version | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10 |
| :---------------: | :--------: | :--------: | :--------: | :--------: | :---------: |
| 2.1.0 | | √ | √ | √ | √ |
| 2.0.0 | | √ | √ | √ | √ |
| 1.13.0 | | √ | √ | √ | √ |
| 1.12.100 | | √ | √ | √ | √ |
| 1.12.0 | | √ | √ | √ | √ |
Please run pip list | grep torch to get your pytorch_version. |
[
0.008724746,
-0.028522661,
-0.005380023,
0.024309732,
-0.0005942221,
0.009457738,
-0.011542853,
-0.003392759,
0.04497585,
0.031113042,
0.0070381514,
-0.007372624,
0.004561633,
-0.052803926,
0.009934539,
0.0698549,
0.017150601,
0.015869644,
-0.040478267,
0.015627686,
0.03512671,
-0.007870774,
-0.08203823,
-0.053202447,
-0.00971393,
0.023498459,
-0.008005986,
-0.02772562,
0.051238313,
0.042584732,
-0.03586682,
-0.035212107,
0.016752081,
-0.019584421,
-0.011535737,
-0.024665555,
0.012660133,
-0.0024765185,
-0.01982638,
-0.05027048,
0.01284516,
0.041559964,
-0.007344158,
-0.027255936,
-0.034101944,
-0.026458895,
-0.00263308,
-0.006867357,
0.019612888,
-0.049359575,
-0.060688935,
0.002666883,
0.04457733,
-0.022701418,
-0.03364649,
0.018887011,
0.008126966,
-0.03965276,
-0.042043883,
-0.024025075,
0.0117848115,
-0.01808997,
-0.009941656,
-0.01789071,
0.01274553,
0.012923441,
0.047623165,
0.00969258,
0.06046121,
-0.012140634,
0.014659851,
0.014396543,
-0.042954784,
-0.028850017,
0.001563836,
0.027341332,
0.0025156587,
0.016709384,
0.009934539,
0.041303772,
0.021206968,
0.034358136,
0.0043410235,
-0.012354126,
-0.027099375,
-0.016752081,
0.008895541,
0.0025441246,
-0.013499872,
0.033162575,
-0.04378029,
0.021278132,
-0.025547992,
-0.0022665837,
-0.01495874,
0.037233174,
0.008326226,
-0.0073228087,
0.0013076444,
-0.05411335,
0.029291235,
0.061827563,
-0.008824376,
0.025875347,
-0.032166272,
0.009578718,
-0.010824094,
-0.010311711,
-0.06638208,
0.0051238313,
-0.004113298,
0.017235998,
-0.011158566,
0.020609187,
0.03800175,
-0.008041568,
-0.03706238,
-0.030002879,
-0.010261895,
-0.033361834,
0.067065254,
-0.015414192,
0.017364094,
-0.011343593,
-0.016040439,
-0.020310298,
-0.0038784556,
0.0017248453,
-0.031653892,
-0.047680095,
0.004152438,
0.0192713,
0.029974412,
0.047366973,
0.047680095,
0.011628251,
-0.013571036,
-0.015442658,
0.032820985,
-0.04010821,
0.030629124,
-0.013998022,
-0.019299764,
0.089496255,
0.03452893,
-0.023242267,
0.017278697,
-0.025234869,
-0.04372336,
0.011549969,
-0.0141617,
0.030372933,
0.008020219,
0.004316116,
0.036948517,
-0.0223029,
0.014524639,
0.05197842,
0.014368077,
0.028921181,
-0.0048996634,
0.02951896,
0.0038926885,
0.02275835,
-0.00084685546,
0.028721921,
0.0064973026,
-0.037688624,
-0.0029515403,
-0.023256501,
0.054483406,
-0.002206094,
-0.017961875,
0.016211232,
0.04118991,
0.0011368501,
0.040079746,
0.014005139,
-0.0008352912,
0.000027437181,
-0.043353304,
-0.0074366718,
-0.0051985537,
0.029148906,
0.017762614,
0.03478512,
-0.028494194,
-0.010389991,
0.0111301,
-0.029291235,
-0.011941373,
0.015399959,
-0.013186749,
0.09097647,
-0.011870209,
-0.011884442,
-0.03265019,
0.012617434,
-0.00096516614,
-0.037546296,
-0.016068904,
0.04600062,
-0.025676088,
0.012973256,
0.036379203,
-0.058240883,
0.0057536354,
0.01749219,
0.03185315,
-0.012873626,
0.05325938,
-0.0029426448,
-0.017919177,
-0.003506622,
0.050668996,
0.00921578,
-0.015414192,
0.03467126,
0.008988054,
-0.0059528956,
0.025334498,
0.03840027,
0.06017655,
-0.034898985,
0.004778684,
-0.022943377,
-0.013692016,
0.03185315,
0.016908644,
0.037375502,
0.022786817,
0.07970404,
-0.011379175,
0.051152915,
-0.00055241305,
0.00054529664,
0.0333903,
0.004380164,
0.011407641,
-0.010603484,
0.029974412,
0.036834653,
-0.030942248,
0.016823245,
0.01659552,
-0.04230007,
0.014225748,
0.016766313,
-0.036379203,
0.025676088,
-0.0045580748,
0.05732998,
-0.00969258,
0.011258196,
-0.051295243,
0.00028888267,
0.018061506,
0.005646889,
-0.0010336618,
0.011621133,
0.02776832,
-0.0002786528,
-0.05206382,
0.014489056,
0.021690885,
-0.011208381,
-0.011791929,
0.008810143,
0.035297506,
-0.051209845,
-0.036293805,
0.002700686,
-0.036777724,
-0.023384597,
-0.070538074,
0.017321397,
0.019712517,
-0.015770014,
0.03327644,
-0.0212639,
-0.004230719,
0.0425278,
-0.017947642,
0.009329643,
0.065072656,
0.026757786,
-0.03367496,
-0.019200135,
-0.051095985,
-0.019541724,
0.000979399,
0.01073158,
-0.0035795653,
-0.040307473,
0.031881616,
-0.004924571,
-0.014674083,
-0.008902657,
-0.030088276,
-0.0011226172,
-0.03287792,
-0.0021989776,
0.03185315,
-0.0052626017,
0.016268164,
0.016567055,
0.021292366,
-0.05331631,
0.028380333,
0.023541158,
-0.05559357,
0.006290926,
0.027142072,
0.042613197,
-0.041019116,
0.08744672,
0.032137807,
-0.00094292726,
-0.036493063,
-0.047167715,
-0.012161982,
0.014631385,
-0.03418734,
-0.026245402,
0.0083760405,
0.023171103,
-0.038201008,
-0.056760665,
0.039567363,
-0.06917172,
-0.03085685,
-0.023640787,
-0.022943377,
0.03840027,
0.0038606646,
0.040563665,
-0.0020050548,
0.020936543,
-0.027782552,
0.05277546,
-0.0058639403,
-0.008909773,
0.05024201,
0.041702293,
-0.0032468722,
0.0057002623,
0.0079917535,
-0.019598654,
0.010318827,
-0.021932844,
-0.0058070086,
-0.0222602,
-0.011571319,
-0.025761485,
0.02822377,
0.020310298,
-0.050668996,
0.0016652452,
0.003125893,
0.029803619,
0.02016797,
0.0018876337,
0.01595504,
-0.0136849,
-0.0072552026,
0.0017550901,
0.015570754,
0.05024201,
0.046683796,
0.023427295,
0.02756906,
0.017435258,
-0.028508428,
-0.0047004037,
0.014353843,
-0.006650306,
0.026145771,
0.026530059,
0.02812414,
0.003524413,
-0.03726164,
0.0031703706,
0.022687186,
0.012233147,
0.018317696,
-0.002585044,
-0.031967014,
0.036208406,
-0.016680917,
-0.02822377,
0.00012709503,
-0.037631694,
0.019598654,
-0.021505859,
-0.035610627,
-0.025875347,
0.0017026064,
0.050071217,
0.060290415,
0.039111912,
0.0283234,
-0.0088599585,
0.0006854014,
0.0060347347,
-0.022701418,
-0.03154003,
-0.01510107,
0.07309999,
0.018004574,
-0.008354692,
-0.05937951,
0.003686312,
-0.032991778,
0.043011717,
-0.020879611,
-0.0068246587,
-0.011073168,
0.006838891,
-0.027668688,
0.03284945,
-0.0718475,
-0.08676354,
-0.01485911,
0.03193855,
0.06814695,
0.0059884777,
0.009279828,
-0.036976982,
-0.031169973,
0.017520657,
-0.037631694,
-0.032080878,
-0.0029604358,
0.016880177,
-0.044691194,
0.026145771,
0.057073787,
0.022004008,
-0.014446357,
-0.048818726,
-0.02156279,
0.01858812,
0.0070345933,
-0.027170539,
-0.010959306,
0.02315687,
0.03154003,
-0.00797752,
-0.021335064,
0.021505859,
0.009628532,
-0.05291779,
0.038286407,
-0.046996918,
0.009308293,
0.0072623193,
0.0053444407,
0.012638784,
0.020552257,
-0.008354692,
-0.009308293,
0.0028252236,
0.04893259,
-0.016453192,
0.005586399,
-0.013186749,
-0.013144051,
-0.0105963675,
0.050668996,
-0.0353829,
-0.004202253,
0.08101346,
0.044463467,
0.0027078025,
-0.018687751,
-0.02092231,
0.018061506,
-0.0076145823,
-0.01942786,
0.016823245,
-0.055024255,
0.04491892,
-0.027981812,
-0.016282396,
0.0029052834,
-0.06928559,
-0.0017079437,
0.012766879,
0.014617152,
0.008959589,
-0.032280136,
-0.0153857265,
0.004184462,
0.0032593259,
0.0016083136,
-0.032621726,
-0.044548865,
0.00036849777,
0.018004574,
0.059265647,
-0.0060311765,
-0.01384146,
-0.07719906,
0.044548865,
-0.012275846,
0.017976107,
0.01609737,
-0.0073868567,
-0.020879611,
-0.00602406,
-0.036891583,
-0.017250232,
-0.04025054,
0.010432689,
-0.023825815,
-0.023726186,
0.00799887,
-0.027611757,
-0.041076045,
0.023968143,
-0.00057465193,
-0.072132155,
-0.025263334,
-0.0137774125,
0.02748366,
-0.0014464149,
0.011699415,
-0.0016670242,
-0.06575584,
0.0037468015,
-0.007906356,
-0.038884185,
-0.018673519,
-0.02866499,
-0.057813894,
0.023413062,
0.022089405,
0.0022701418,
-0.045345906,
0.023228034,
-0.046114482,
0.004511818,
-0.07139205,
-0.012439524,
-0.0052270195,
-0.024622856,
-0.0021829656,
0.008240828,
-0.015513822,
0.024779417,
-0.021633955,
0.016865944,
-0.0018164694,
0.037005447,
-0.030742988,
0.009365225,
0.0018805172,
0.02499291,
-0.04184462,
-0.00959295,
-0.01663822,
0.040620595,
-0.0006475953,
0.031027645,
-0.0141617,
0.0050989236,
-0.03492745,
0.045032784,
0.011521504,
0.025220636,
-0.014545987,
0.009550252,
-0.0030404956,
0.009664115,
0.036037613,
-0.011678065,
-0.02339883,
-0.013770296,
-0.048961055,
0.026003443,
0.017577589,
0.0035422042,
-0.02485058,
-0.001087035,
0.014674083,
-0.017207533,
-0.010916607,
0.07366931,
0.0044620032,
-0.0053088586,
-0.054625735,
0.0566468,
0.0556505,
-0.031141508,
0.0013885938,
0.03552523,
-0.027597524,
0.009991471,
0.0059671286,
-0.03199548,
-0.0010158707,
0.010005704,
0.0040599247,
0.014901809,
0.03452893,
-0.01406207,
-0.048420206,
-0.028152606,
0.01569885,
0.009279828,
-0.006241111,
0.033077177,
0.05431261,
-0.029134674,
0.037887886,
-0.009806444,
0.040307473,
-0.000066438566,
0.022487925,
0.043552566,
-0.051864557,
0.059891894,
0.019000875,
-0.04779396,
-0.076402016,
0.010617717,
-0.008489904,
-0.03245093,
-0.023640787,
0.019797914,
0.005351557,
-0.0016892632,
-0.005579283,
0.029945947,
-0.03060066,
0.012190448,
-0.035667557,
0.034244273,
-0.022687186,
-0.0050953655,
0.04853407,
-0.026558526,
-0.046171412,
-0.008020219,
-0.020865379,
0.0077284453,
-0.019072039,
0.057415374,
-0.0029123998,
0.0394535,
0.027711388,
-0.03105611,
0.029945947,
-0.025462594,
-0.0029817852,
0.020580722,
-0.0072018295,
-0.07264454,
-0.0018164694,
0.006191296,
-0.00789924,
-0.005561492,
0.0021313715,
0.009336759,
0.022573324,
-0.0044691195,
-0.033504162,
-0.07970404,
-0.016140068,
-0.0065079774,
-0.044634264,
0.076288156,
0.0072267368,
-0.05491039,
-0.05143757,
0.011087402,
-0.054881927,
-0.015243398,
0.013506988,
-0.0077640275,
-0.00013254354,
-0.028551126,
-0.00052127865,
-0.064958796,
-0.03805868,
-0.018161135,
-0.038144078,
0.018033039,
-0.007671514,
0.0009856259,
-0.014360961,
-0.03259326,
0.029177371,
-0.0051060403,
0.016453192,
-0.0010754708,
-0.033447232,
-0.04631374,
0.013428708,
-0.035610627,
0.036976982,
0.050668996,
-0.043040182,
0.046285275,
-0.022587556,
0.017634518,
-0.0045545166,
-0.006194854,
0.04292632,
-0.05852554,
-0.04970116,
-0.0050989236,
0.0077640275,
-0.038087144,
0.005436954,
0.031710822,
-0.006120132,
-0.021434695,
0.008013103,
0.009101917,
-0.0035795653,
-0.018146902,
0.03319104,
-0.016723616,
0.016908644,
-0.029148906,
0.014190166,
0.012105051,
-0.00019136531,
-0.0026081724,
0.00869628,
0.039766625,
0.032564793,
-0.017947642,
0.06484493,
0.019897545,
-0.003704103,
-0.02166242,
0.033959616,
0.014190166,
0.032023944,
0.024537459,
-0.0018022364,
-0.016011972,
0.020836914,
-0.04773703,
0.045345906,
-0.028935414,
-0.018559655,
-0.0051060403,
-0.05212075,
-0.01739256,
-0.028978111,
-0.010802744,
0.012923441,
0.0191859,
0.013229447,
0.006169947,
0.008945355,
0.0058141253,
0.0072480864,
-0.034955915,
0.00046701587,
-0.003967411,
0.031226905,
-0.045602098,
-0.0022754793,
-0.026416197,
0.053031653,
-0.022089405,
0.012667249,
-0.044634264,
-0.01749219,
-0.0025227752,
-0.002734489,
-0.02822377,
0.035354435,
-0.050042752,
0.039681226,
-0.06905786,
-0.012396825,
-0.037802488,
0.029803619,
0.027298635,
0.0024249244,
-0.021875912,
0.037090845,
-0.015172234,
-0.00869628,
0.024409363,
0.059151784,
0.010418457,
-0.02319957,
-0.0021633953,
0.0023003868,
0.023327665,
0.022601789,
0.064788,
0.039823554,
0.019086272,
0.052832395,
0.0212639,
-0.028536893,
-0.00566468,
-0.021349296,
0.019641353,
0.01214775,
-0.04380876,
-0.025234869,
0.049074918,
0.007358391,
0.020822681,
-0.014916042,
0.034642793,
0.0107885115,
0.018004574,
0.015770014,
-0.014916042,
0.018573888,
0.011941373,
-0.019541724,
0.03287792,
0.017620286,
0.0114005245,
0.041702293,
0.032166272,
0.015869644,
0.010290361,
0.009870492,
-0.016410492,
0.05286086,
-0.03279252,
-0.010169381,
-0.016823245,
0.00434814,
0.004739544,
-0.018758915,
0.009002287,
0.056419075,
-0.03185315,
-0.028522661,
0.0051736464,
-0.018559655,
-0.04898952,
-0.041019116,
0.029049277,
-0.015172234,
0.0084400885,
0.0077142124,
-0.008255062,
-0.0032041736,
0.015855411,
-0.009898957,
0.061827563,
-0.023925446,
0.07332772,
-0.029604359,
0.06467414,
0.0047680098,
0.008475671,
-0.0015620568,
-0.022829514,
-0.064332545,
-0.00789924,
-0.032365534,
-0.023370363,
0.017207533,
0.006216204,
-0.054084886,
0.035297506,
0.049017984,
-0.03219474,
-0.04386569,
0.01683748,
0.039595827,
-0.062226083,
0.02702821,
0.0597211,
0.016339328,
0.06308006,
0.0056717964,
-0.041759223,
-0.058468606,
0.017961875,
0.00071297755,
0.023711951,
-0.03865646,
-0.032991778,
-0.0032593259,
-0.0012622771,
-0.008447205,
-0.00014822194,
-0.003460365,
-0.014702549,
-0.02768292,
0.013926858,
0.046199877,
0.05630521,
-0.0014481939,
-0.036549997,
-0.04799322,
0.034471996,
0.029035043,
0.067634575,
0.04372336,
0.015044138,
-0.0036791954,
0.0036436133,
0.015912343,
-0.013386009,
0.00921578,
-0.046598397,
0.0043908386,
-0.037432432,
-0.03720471,
-0.01073158,
0.060290415,
-0.028807318,
-0.022117872,
-0.0025761484,
-0.014446357,
-0.031113042,
-0.047310043,
-0.027796784,
-0.07270147,
-0.032052413,
-0.02926277,
-0.013514105,
-0.078280754,
0.23911212,
0.028166838,
0.004294767,
-0.014012255,
0.021534324,
0.00079659565,
-0.0059244297,
-0.0064119054,
-0.03979509,
-0.0577285,
-0.0127170645,
0.010503854,
0.016310863,
0.05812702,
-0.019769449,
0.023697719,
-0.07173364,
-0.009977238,
0.029148906,
-0.052576203,
-0.03304871,
-0.0031009854,
-0.0023608764,
0.058354743,
-0.0034141084,
-0.014239981,
0.0032682214,
-0.06268153,
-0.019740984,
-0.037830953,
0.006419022,
-0.007671514,
0.0547396,
-0.025889581,
0.0050313175,
0.050526667,
-0.019072039,
-0.0023110614,
0.007294343,
-0.008240828,
0.014375193,
-0.014731015,
0.019356696,
0.020594954,
-0.014531755,
-0.023626555,
0.011350709,
0.037802488,
0.057045322,
-0.041816156,
0.008290644,
-0.051551435,
0.039481968,
-0.015414192,
-0.076345086,
-0.01071023,
-0.044776592,
-0.005511677,
-0.000843742,
0.038172543,
0.020111037,
0.014382309,
-0.026615456,
-0.022786817,
-0.006878032,
-0.01254627,
-0.046114482,
0.068431616,
-0.010076868,
-0.0023484225,
0.02951896,
-0.02702821,
-0.011557086,
-0.02712784,
0.013471406,
0.037830953,
0.021192735,
0.027440963,
-0.01769145,
-0.031113042,
0.00057376234,
0.050953656,
-0.0017141706,
-0.024836348,
-0.010646183,
0.050839793,
-0.013827228,
-0.03877032,
0.007842308,
0.032023944,
0.02419587,
0.08095653,
0.00028932744,
0.0096143,
-0.02672932
] | pip install oneccl_bind_pt=={pytorch_version} -f https://developer.intel.com/ipex-whl-stable-cpu
where {pytorch_version} should be your PyTorch version, for instance 2.1.0.
Check more approaches for oneccl_bind_pt installation.
Versions of oneCCL and PyTorch must match.
oneccl_bindings_for_pytorch 1.12.0 prebuilt wheel does not work with PyTorch 1.12.1 (it is for PyTorch 1.12.0)
PyTorch 1.12.1 should work with oneccl_bindings_for_pytorch 1.12.100 |
[
0.004254851,
-0.028468821,
-0.026111156,
0.033950396,
0.010108494,
0.0056510316,
-0.014713312,
-0.04682915,
0.032535795,
0.03486399,
0.021101113,
-0.0047632228,
-0.0023281956,
-0.06212451,
0.022442037,
0.030708605,
0.016813109,
-0.0032546849,
-0.054462094,
-0.015192213,
0.031769555,
-0.016400516,
-0.114228934,
-0.036396474,
-0.042850588,
0.035689175,
-0.009187531,
-0.022972511,
0.054462094,
0.037369013,
-0.042762175,
-0.02207365,
0.012127247,
-0.043970477,
-0.038577314,
-0.047860626,
0.025507003,
-0.0062330803,
-0.036042824,
-0.038783614,
0.033979867,
0.005371059,
0.01841927,
-0.043027412,
-0.007831873,
-0.022633597,
0.029028768,
0.0031883754,
0.021189526,
-0.052045487,
-0.03589547,
0.03059072,
0.035777587,
-0.044884074,
-0.031327493,
-0.00025694878,
-0.00832551,
-0.03200532,
-0.02024646,
-0.01619422,
0.013644994,
0.010167437,
0.01028532,
-0.042939,
0.016665755,
0.022928305,
0.002718684,
-0.011331534,
0.04078763,
-0.021218996,
-0.029411888,
-0.017019404,
-0.051426597,
-0.03406828,
-0.014337558,
0.02863091,
0.03451034,
-0.0045900815,
-0.0076403124,
0.004800061,
0.042850588,
0.05782177,
-0.0005217258,
-0.047890097,
-0.031828497,
-0.03191691,
0.02236836,
-0.030826489,
0.0023558245,
-0.011486256,
-0.051338185,
0.04405889,
0.004829532,
-0.01002745,
-0.029898157,
-0.00044873942,
-0.034304045,
0.03981509,
-0.03271262,
0.006870387,
0.040934984,
0.050571945,
-0.022427302,
0.027142635,
-0.042939,
0.019819133,
-0.0077508283,
-0.0117957,
-0.07367708,
-0.01214935,
-0.00045564666,
0.02124847,
-0.05861748,
0.02024646,
0.011147342,
0.016253162,
-0.01948022,
-0.0038606788,
0.012119879,
-0.018566623,
0.05113189,
-0.0214695,
-0.0026008007,
-0.012642986,
-0.009217002,
-0.0140207475,
0.019745456,
0.043587357,
-0.040316094,
-0.010808427,
-0.0034609805,
-0.012952429,
-0.00509477,
0.01475015,
0.027628902,
0.025536474,
-0.0010720014,
-0.012679825,
0.044265185,
-0.010432674,
0.022810422,
-0.019715985,
0.013482905,
0.092774175,
0.023281956,
0.007356656,
-0.0017139129,
-0.0046932297,
-0.022604126,
0.010535821,
0.020143311,
-0.0022839892,
-0.017196229,
0.036514357,
0.014875402,
0.021911561,
0.001762724,
0.023385104,
-0.001183438,
0.014853299,
-0.0052016014,
-0.0018916589,
-0.0032049527,
0.023149338,
-0.01921498,
0.028675117,
-0.0058536436,
-0.04806692,
-0.01638578,
-0.017490938,
0.061888743,
-0.0038091047,
0.00025925122,
0.0074929586,
0.030163394,
0.026656365,
0.028851943,
0.024269229,
-0.011390476,
0.027687844,
-0.0059089013,
-0.014396501,
0.0017249645,
0.0039969813,
0.035866,
0.075504266,
-0.03975615,
0.016606813,
-0.0070361607,
0.0021587382,
-0.026081685,
0.014389133,
-0.049127873,
0.067665026,
-0.017269906,
-0.0096738,
-0.023871372,
0.0069109094,
0.0015785313,
-0.03377357,
-0.0049253125,
0.041730694,
-0.015280625,
-0.02490285,
-0.0041111805,
-0.027393136,
0.006877755,
0.016695226,
0.025757505,
-0.027363665,
0.078805,
-0.005161079,
-0.044442013,
-0.00861285,
0.09271523,
0.009666432,
-0.028793002,
-0.012289336,
0.022250477,
0.0068446,
0.006196242,
0.0060157334,
0.034922935,
-0.010852633,
-0.017402524,
-0.03760478,
-0.021926297,
0.045650315,
0.036455415,
0.012480896,
0.016945727,
0.04367577,
-0.013571317,
0.041701224,
0.03627859,
0.045945022,
0.012716663,
0.024858644,
-0.0076992544,
-0.01970125,
0.033213627,
0.010292687,
0.0126577215,
0.017343583,
0.036367003,
-0.017785646,
0.04724174,
0.014757518,
-0.07202671,
0.009091751,
-0.0323295,
0.0365733,
-0.008826514,
-0.014941711,
-0.026022743,
-0.004405889,
0.011029458,
0.017284641,
-0.010115862,
-0.0039969813,
0.026435334,
0.006502002,
-0.05116136,
0.013615523,
0.0041701226,
0.030325484,
-0.008627585,
-0.016901521,
0.026346922,
0.015855307,
-0.039284617,
0.008156052,
-0.041789636,
-0.014448075,
-0.052782256,
0.022265213,
0.020334873,
-0.02908771,
0.03766372,
0.0026652683,
0.01638578,
0.041347574,
-0.043528415,
0.0015315622,
0.035364997,
0.0007680835,
-0.06359805,
-0.012945062,
-0.06430535,
0.01378498,
-0.010351629,
0.013379756,
0.011228386,
0.0008693895,
0.05004147,
-0.03666171,
-0.04252641,
-0.033803042,
-0.015066962,
-0.007898183,
-0.003630438,
-0.0054521034,
0.008907558,
-0.033449393,
-0.004203277,
0.039579324,
-0.0055847224,
-0.043999948,
0.024961792,
-0.0040375036,
0.0069882707,
0.022279948,
-0.010130597,
0.019421278,
-0.028660381,
0.047772214,
0.03542394,
0.01809509,
-0.034362987,
-0.054933626,
-0.047389094,
0.015825836,
-0.020275932,
-0.058823776,
-0.021778943,
0.02519756,
-0.011854641,
-0.061476152,
0.029618183,
-0.03660277,
-0.032565266,
0.00029309661,
-0.030413896,
0.04464831,
0.0012488264,
0.04621026,
-0.06619149,
0.033537805,
0.002416608,
0.032859974,
-0.007025109,
-0.018065618,
0.038282607,
0.046740737,
-0.0070398445,
-0.028940355,
-0.004306425,
-0.016547872,
0.01921498,
-0.03984456,
-0.034922935,
-0.0035899153,
0.004634288,
-0.029942364,
0.0075224293,
0.03769319,
-0.020555904,
-0.022206271,
-0.029205592,
0.017358318,
0.005514729,
-0.00514266,
0.021292675,
-0.015177477,
-0.0035180803,
-0.0025050205,
-0.010661073,
0.029515035,
0.013158726,
-0.043616828,
0.029809745,
-0.016400516,
-0.022471508,
-0.004730068,
-0.012031467,
-0.009268576,
0.04376418,
0.015884778,
0.001865872,
-0.017697234,
-0.05148554,
0.029927628,
0.026332187,
0.029456094,
0.040669747,
-0.024387112,
-0.040021386,
0.042732704,
-0.014249146,
-0.0044169407,
-0.010955781,
-0.026980545,
0.011574669,
-0.00046784943,
-0.0107936915,
0.004914261,
0.020644316,
0.04122969,
0.02413661,
0.041848578,
0.06471794,
0.004781642,
-0.003801737,
0.014860666,
-0.016989933,
-0.04438307,
-0.016857315,
0.033036802,
0.019200245,
-0.006689878,
-0.03300733,
0.01841927,
-0.026229039,
0.031150667,
-0.02381243,
0.013018739,
-0.0088338815,
-0.0048147966,
0.003120224,
0.04111181,
-0.045709256,
-0.07438438,
-0.010521086,
0.041671753,
0.039932974,
-0.00514266,
0.019907545,
-0.038518373,
-0.016916256,
0.030060247,
-0.07008164,
-0.048361633,
-0.010852633,
-0.010093759,
-0.025507003,
0.059236366,
0.027849935,
-0.012834546,
-0.025728034,
-0.044235714,
-0.03333151,
0.029249799,
0.00851707,
-0.027628902,
-0.004284322,
0.023561928,
0.0278352,
-0.010241114,
-0.033272568,
-0.019273922,
0.01831612,
-0.041082337,
0.016459458,
-0.043469474,
0.015192213,
0.0117735965,
0.0073934942,
0.007437701,
0.016503666,
0.018699242,
0.0037041148,
0.014484913,
0.028424615,
-0.007603474,
-0.028454086,
0.028174113,
-0.023886107,
0.012517735,
0.05602405,
0.015339567,
0.0009237263,
0.048833165,
0.03159273,
0.00832551,
-0.006070991,
-0.033832513,
0.02451973,
0.026170097,
-0.032859974,
-0.013571317,
-0.017078346,
0.022206271,
-0.03336098,
0.03406828,
-0.005964159,
-0.05867642,
-0.008679159,
0.03265368,
0.024667084,
-0.0002349608,
-0.03904885,
-0.05257596,
0.024593407,
0.0075887386,
-0.017137287,
-0.032152675,
-0.030325484,
-0.006752504,
0.041052867,
0.06660408,
0.04794904,
-0.032152675,
-0.07184988,
0.06666302,
-0.012989269,
-0.010970516,
0.0022103123,
0.008981235,
0.00806764,
-0.026774248,
-0.038636256,
-0.026685836,
-0.01948022,
-0.017152023,
-0.010086391,
-0.021720001,
-0.016916256,
-0.004159071,
-0.0030557567,
0.04865634,
0.02645007,
-0.06996375,
-0.0309149,
-0.009327518,
-0.039314087,
-0.002921296,
0.031121196,
0.036484886,
-0.013121887,
-0.010705279,
0.04249694,
-0.0063362285,
-0.006955116,
-0.0044279923,
-0.07373602,
0.009408562,
0.025949067,
0.0124440575,
-0.051691834,
-0.023001982,
-0.04187805,
0.02362087,
-0.04727121,
-0.015015388,
-0.017328847,
-0.03551235,
-0.02577224,
0.001887975,
-0.014794356,
0.025344914,
-0.008273936,
0.026538482,
0.00062763656,
0.037899487,
-0.018006677,
0.0115820365,
-0.0013151357,
0.041819107,
-0.01356395,
0.020511698,
-0.022574656,
0.02130741,
-0.015590069,
0.00022413947,
-0.0436463,
-0.0021679478,
-0.05611246,
0.008281304,
0.043941006,
0.0034978192,
0.03548288,
0.025654357,
0.01063897,
0.0020187518,
0.04338106,
-0.026052214,
-0.022795686,
-0.025816446,
-0.061652977,
0.050630886,
0.0012119879,
-0.01668049,
-0.017373053,
0.00041512426,
-0.02927927,
-0.028763529,
0.012672457,
0.087646246,
0.036543828,
-0.0020887451,
-0.049894113,
0.044913545,
0.02275148,
-0.013077681,
-0.010801059,
-0.018566623,
-0.023164073,
-0.04591555,
-0.025330178,
-0.045385078,
-0.0037483212,
-0.0131366225,
0.05254649,
-0.04376418,
0.049599405,
-0.026626894,
-0.03088543,
0.0073198173,
0.039314087,
-0.018507682,
0.00022667213,
0.04679968,
0.013085049,
-0.0066530397,
0.025050206,
-0.029485565,
-0.0044979854,
-0.017564615,
-0.00509477,
0.003024444,
-0.009614858,
0.03592494,
0.025639622,
-0.032859974,
-0.05331273,
-0.005695238,
0.009460136,
0.005529464,
0.008502334,
0.004203277,
0.0071614115,
-0.019642308,
-0.025285972,
0.03194638,
0.010182172,
-0.009423298,
-0.019657044,
0.05363691,
-0.030443367,
-0.010933678,
0.05961949,
-0.020821141,
-0.019111833,
-0.005032144,
-0.0103811,
0.026892133,
-0.02339984,
0.029235063,
-0.05611246,
0.0015416928,
0.03412722,
-0.0073124496,
0.021071643,
-0.03227056,
-0.012893488,
0.008531805,
-0.0037464793,
-0.03692695,
0.0058536436,
0.017269906,
0.025507003,
0.010344261,
0.013703936,
0.009003338,
0.054403152,
-0.026273245,
-0.01201673,
-0.0611225,
-0.0020463807,
-0.06177086,
-0.021218996,
0.030413896,
-0.004707965,
-0.00870863,
-0.021484235,
0.01127996,
-0.042703234,
-0.04338106,
-0.007802402,
-0.031681143,
-0.02144003,
-0.017093081,
0.024696555,
-0.07680098,
-0.030620191,
-0.015354303,
-0.047919568,
0.0064504277,
0.0019192878,
-0.017343583,
0.009644329,
-0.039314087,
0.025433326,
-0.027083693,
-0.005433684,
-0.03669118,
-0.0026247457,
-0.066073604,
0.018920273,
-0.016179485,
0.03686801,
0.049864642,
-0.022677803,
0.024166081,
0.0075519,
0.0006092173,
-0.012841914,
-0.007231405,
0.054226328,
-0.043056883,
-0.043616828,
-0.0067930263,
0.033036802,
-0.041848578,
-0.017240435,
0.04650497,
0.015531127,
0.010440041,
-0.0038717303,
0.013033475,
0.009135957,
0.0040669744,
0.058028065,
0.031445377,
0.049216285,
0.004159071,
0.02715737,
0.023046188,
0.031386435,
-0.017653028,
-0.030354954,
0.01771197,
0.034569282,
-0.020880083,
0.06348017,
0.0052273883,
0.018566623,
-0.053135905,
-0.01420494,
-0.0057689147,
0.058735363,
0.049628876,
-0.011139974,
0.0015693217,
0.028277261,
-0.04373471,
0.008251833,
-0.026273245,
-0.0017967996,
0.021896826,
-0.041671753,
-0.020393815,
-0.060474142,
0.0029268218,
0.025448062,
0.028571969,
0.007168779,
0.009651696,
0.013748142,
0.010182172,
0.033950396,
-0.07927653,
-0.0029120864,
-0.021381088,
0.03580706,
-0.034304045,
-0.016813109,
-0.0054484196,
0.05652505,
-0.006446744,
0.024991263,
-0.05074877,
0.004188542,
0.010955781,
-0.008605482,
-0.06996375,
0.008008698,
-0.03898991,
0.006472531,
-0.039196204,
-0.008178155,
-0.041435987,
0.037722662,
0.028129907,
0.025344914,
-0.02889615,
0.029190857,
0.006070991,
-0.05466839,
0.02185262,
0.032977857,
0.01410916,
-0.023016717,
-0.02555121,
0.007028793,
0.019819133,
0.0471828,
0.029573977,
0.009880096,
0.021130584,
0.050925594,
0.009135957,
0.0037870016,
-0.021734737,
0.006196242,
-0.0074413847,
0.0038864657,
-0.062419217,
-0.0021513705,
0.008502334,
0.01269456,
0.04903946,
0.0011769913,
0.025182825,
0.03188744,
0.0012985584,
-0.01005692,
-0.028100437,
-0.010609498,
0.0059752106,
0.003934356,
0.039608795,
0.027481548,
0.038665727,
0.026199568,
0.025904858,
0.0273784,
0.021675795,
-0.00033315853,
-0.04903946,
0.028350938,
-0.052399136,
0.034746107,
-0.017343583,
0.0012221185,
0.015590069,
-0.0158111,
-0.021336881,
0.05074877,
-0.046593383,
-0.011928318,
-0.01790353,
-0.0027555225,
-0.058705892,
-0.07061211,
0.037781604,
-0.04903946,
-0.009386459,
0.026243774,
-0.011670449,
0.01288612,
0.012024099,
-0.024843909,
0.04794904,
0.02535965,
0.025565945,
-0.0057210247,
0.10974937,
0.022191536,
0.023473516,
-0.002219522,
-0.013210299,
-0.04653444,
0.020364344,
0.014374397,
0.027997289,
0.043528415,
-0.01812456,
-0.0021292674,
0.020555904,
0.05222231,
-0.037486896,
-0.0021218997,
-0.007824506,
0.032594737,
-0.03551235,
-0.0005258701,
0.062949695,
0.017078346,
0.055346217,
-0.02577224,
-0.03619018,
-0.05219284,
-0.035630234,
0.01279034,
0.008524437,
-0.03235897,
-0.0070582638,
0.0099095665,
-0.013939703,
0.008016066,
-0.006317809,
0.026140627,
0.0050247763,
-0.0034757159,
0.055906165,
0.040257152,
0.028793002,
-0.018596094,
-0.07426649,
0.011346269,
0.027142635,
0.018109825,
0.0464755,
0.079807006,
0.046357617,
-0.039490912,
0.027422607,
0.015766894,
-0.014175469,
0.020747464,
-0.047359623,
-0.015531127,
0.0013225034,
-0.025816446,
-0.005113189,
0.06966904,
0.018625565,
-0.03975615,
-0.028395144,
-0.04237905,
-0.035689175,
-0.034598753,
-0.04052239,
-0.020172782,
-0.005459471,
-0.016518401,
0.00095872296,
-0.064069584,
0.25745717,
0.04762486,
0.020732729,
-0.026774248,
0.010071656,
0.07072999,
0.0068556517,
-0.015310096,
-0.020143311,
-0.039284617,
0.012097776,
-0.010086391,
0.025241766,
0.04730068,
-0.01918551,
0.030296013,
-0.060297318,
-0.011508359,
0.0080455365,
-0.033891454,
-0.032447383,
-0.008760205,
0.021970503,
0.03442193,
0.01594372,
-0.0007473618,
0.0032381073,
-0.024829173,
0.04895105,
-0.03486399,
-0.023016717,
-0.044412542,
0.030708605,
-0.027599432,
0.0016172117,
0.06076885,
-0.010867368,
-0.009393827,
0.001712992,
-0.02606695,
-0.003297049,
-0.01744673,
0.019288657,
0.0036654344,
-0.00887072,
0.034245104,
0.006502002,
0.017093081,
0.0724393,
-0.030001305,
0.012193556,
-0.056348227,
0.021793678,
-0.002799729,
-0.06442323,
-0.0017268064,
-0.009261209,
-0.021322146,
-0.024446053,
0.00983589,
0.02255992,
0.03507029,
-0.016150014,
-0.010550557,
0.010167437,
0.0076182093,
-0.028454086,
0.050660357,
-0.018434005,
-0.017933,
0.0052273883,
-0.0067009297,
0.023414575,
-0.038282607,
-0.010425306,
0.03692695,
0.016768903,
0.023193544,
-0.0066051497,
-0.012488264,
0.00009077246,
0.04547349,
-0.012812443,
-0.0088338815,
-0.0115820365,
0.06177086,
-0.022412566,
-0.031356964,
-0.00016957239,
0.016429987,
-0.0040154005,
0.06630937,
-0.015604804,
0.008686527,
0.0020721678
] | Intel® MPI library
Use this standards-based MPI implementation to deliver flexible, efficient, scalable cluster messaging on Intel® architecture. This component is part of the Intel® oneAPI HPC Toolkit.
oneccl_bindings_for_pytorch is installed along with the MPI tool set. Need to source the environment before using it.
for Intel® oneCCL >= 1.12.0 |
[
0.019455273,
-0.020767847,
-0.017530164,
-0.00095799717,
-0.013745573,
0.007736898,
0.021365797,
0.0038064662,
-0.013709113,
0.034272783,
0.009333864,
-0.021497056,
0.030364227,
-0.048156902,
0.0027527607,
0.046085954,
-0.010624562,
-0.048769437,
-0.04246908,
0.005961276,
0.012192359,
-0.02035949,
-0.09841393,
-0.022328353,
-0.0016625945,
0.034068603,
0.050052844,
-0.0006758848,
0.05731576,
0.032989375,
-0.032231,
-0.00014982947,
0.025259769,
-0.021569977,
-0.02757865,
-0.023830522,
0.007540012,
-0.006858202,
-0.037656307,
-0.008881755,
0.029868364,
-0.0064498456,
0.033164386,
-0.040310625,
-0.07642101,
-0.011244389,
-0.031035097,
-0.02855579,
0.00048629066,
-0.03514783,
-0.006551935,
0.008896339,
0.04874027,
0.0033124278,
-0.045356743,
-0.051977955,
-0.020840768,
-0.011506904,
-0.057724115,
-0.0074415687,
0.029299581,
0.027695324,
-0.021424135,
-0.050694548,
0.0022496071,
0.04074815,
-0.004681516,
0.026163988,
-0.00805775,
0.019003164,
-0.01986363,
0.031735137,
-0.02648484,
-0.044190012,
0.0012287156,
0.00017056633,
0.028701631,
-0.020972025,
-0.033893593,
0.03325189,
-0.022153342,
-0.0022587222,
0.01993655,
0.016319677,
-0.029066235,
-0.035789534,
0.043810822,
-0.012345494,
-0.0042731594,
-0.03689793,
0.0068837246,
0.017573915,
-0.012236112,
0.0011020157,
0.042935774,
0.035293672,
-0.011455859,
0.0030954885,
-0.0023516961,
-0.016203005,
0.019994887,
0.07747107,
-0.016523857,
0.015823817,
-0.023728432,
-0.010033904,
-0.0011995473,
0.009027597,
-0.016378013,
-0.0127173895,
-0.017092638,
-0.0039851223,
0.0062602516,
0.013767449,
-0.0039267857,
0.014467489,
-0.004849234,
0.052007124,
-0.03476864,
-0.009851602,
0.00087824004,
-0.012214236,
-0.015167529,
-0.09608046,
0.004130964,
-0.04827358,
-0.001663506,
0.047573537,
-0.029707938,
-0.0024592543,
0.003419986,
-0.0016443643,
0.019382352,
0.042381577,
-0.009815142,
-0.013672652,
0.008662992,
0.0060706576,
0.014912306,
-0.014883137,
0.0037062003,
-0.009224483,
-0.0222846,
0.086746596,
0.024661819,
-0.023743017,
0.0089182155,
-0.044948388,
-0.03322272,
0.018346876,
-0.06545372,
0.018828154,
0.007926492,
0.037685476,
-0.0037845902,
0.003246799,
-0.02323257,
0.02490975,
-0.01986363,
0.0056841774,
0.043139953,
0.031326782,
-0.045385912,
0.06131182,
-0.007467091,
0.028803721,
-0.037685476,
-0.02788492,
0.01913442,
-0.015357123,
0.008371309,
-0.0015103723,
-0.0067925737,
0.011069379,
0.03199765,
0.01601341,
0.050869558,
0.015590469,
-0.027009869,
0.008896339,
-0.01696138,
-0.0008978375,
-0.002971523,
0.048623595,
0.011528781,
-0.0057935584,
-0.011310018,
-0.027943255,
-0.035264503,
0.0056076106,
0.03465197,
0.05375722,
-0.05364055,
0.019046916,
-0.029474592,
0.0044700457,
-0.06177851,
-0.0028894872,
-0.008954676,
-0.048711102,
0.012936152,
0.039785594,
-0.032493513,
0.006110764,
-0.020446995,
0.019849045,
0.0065774573,
0.04559009,
0.0030006913,
0.014737296,
0.032872703,
0.009013012,
-0.04874027,
-0.015794648,
0.018069778,
0.011492319,
-0.0013244243,
0.03710211,
0.0069821677,
0.022124175,
0.012673637,
0.008531735,
0.05393223,
0.003966892,
-0.009756804,
-0.016494688,
-0.009508874,
0.043985832,
0.009734929,
-0.0070623807,
-0.0049330927,
0.028599542,
0.010033904,
0.03797716,
0.0071061333,
0.03354357,
0.041564863,
0.040310625,
0.008232759,
-0.009902646,
-0.040223118,
0.031180939,
0.028089097,
0.021365797,
-0.005100811,
-0.0010701129,
-0.010383924,
-0.005301343,
-0.024968086,
0.01776351,
-0.050082013,
0.058219977,
0.0140737165,
-0.002874903,
-0.06405364,
-0.0064826603,
0.014489365,
0.047515202,
-0.0339811,
-0.03934807,
0.03742296,
0.03272686,
0.0034254552,
-0.018623976,
0.025901472,
0.07239578,
-0.02827869,
0.009953691,
0.0014328939,
-0.020680342,
-0.025463948,
-0.027184878,
-0.05970756,
0.018667728,
-0.037277117,
-0.011025626,
0.012484043,
-0.03202682,
0.023961779,
-0.03818134,
0.020549085,
-0.0059394003,
-0.021365797,
0.04086482,
0.050052844,
0.034389455,
-0.040281456,
0.04354831,
-0.029897533,
0.032668523,
-0.023115898,
0.011937137,
0.013388261,
-0.03363108,
0.017428074,
0.011645454,
-0.028249523,
-0.037247952,
-0.021044945,
0.0059649223,
0.008750497,
0.036110386,
0.017909352,
0.0072629126,
-0.025288938,
-0.0005163705,
-0.0046596397,
-0.02333466,
0.056499045,
0.03669375,
-0.025493115,
0.022313768,
0.015809232,
0.051482093,
-0.053465538,
0.059095025,
0.04334413,
0.027870335,
-0.05296968,
-0.026324414,
-0.035760365,
0.021540808,
-0.017325984,
-0.01531337,
-0.017165558,
0.040135615,
-0.0035384824,
-0.045765102,
-0.008291096,
-0.013927875,
-0.044481695,
-0.019499024,
-0.019192757,
0.048798606,
0.026324414,
0.015196697,
-0.041360684,
0.032931037,
0.0008431469,
0.009727636,
0.010515181,
-0.00029646867,
0.020869937,
0.045181736,
0.0013709113,
0.0077587743,
0.034389455,
-0.049323637,
0.005469061,
-0.014409153,
-0.014102885,
-0.0030881963,
-0.010894369,
0.00092700584,
-0.0008823418,
0.034564465,
-0.015284202,
0.01741349,
0.025828552,
0.015590469,
0.029066235,
0.037831318,
0.0037955283,
-0.0018093477,
-0.0044445232,
-0.012564256,
-0.0040106447,
0.011827756,
0.042381577,
-0.027622404,
0.0046341177,
-0.018667728,
-0.038939714,
0.019251093,
-0.0053159273,
-0.014948767,
0.029985037,
0.031122603,
0.047427695,
0.015225865,
-0.010128701,
-0.010208914,
0.04267326,
0.046144288,
0.0551573,
0.009217191,
0.023174234,
-0.0002982917,
-0.03258102,
-0.03882304,
0.02123454,
0.020330323,
-0.017107222,
-0.001386407,
-0.012104855,
-0.049323637,
0.012556964,
0.016523857,
0.03634373,
0.015882153,
0.060378432,
-0.022663789,
-0.007911908,
0.027549483,
-0.002163925,
-0.0017181967,
-0.05434059,
0.043752488,
0.001758303,
0.006716007,
-0.024545144,
-0.00019324015,
-0.0108433245,
0.007004044,
0.008261928,
0.008006705,
-0.03465197,
-0.010558933,
-0.030189216,
0.062653564,
-0.052677993,
-0.047136012,
-0.03660625,
0.018565638,
0.05655738,
-0.060320094,
0.012841355,
-0.02750573,
-0.0066759004,
0.030335058,
0.00048127735,
-0.019907381,
-0.02788492,
0.0027199462,
-0.05641154,
0.0539614,
0.022970056,
-0.0036588018,
0.009975567,
-0.038793873,
0.009523458,
0.020738678,
-0.0005514636,
-0.026251491,
0.029445423,
-0.02133663,
-0.0024865996,
-0.019280262,
-0.0017847369,
-0.009683884,
0.047136012,
-0.053698886,
0.036168724,
-0.032756027,
-0.013825785,
-0.048944447,
-0.015080024,
0.032697693,
0.03759797,
0.02638275,
-0.030889256,
-0.034418624,
0.039989773,
-0.025274353,
-0.060611777,
0.0061144102,
0.044306684,
0.014773756,
0.039114725,
0.0050096596,
0.0037481296,
0.049907003,
0.0019870922,
-0.018565638,
0.009559918,
-0.023290908,
0.011018335,
0.0037590677,
-0.030247552,
-0.016859291,
-0.04197322,
0.02116162,
-0.037189614,
-0.035410345,
0.04836108,
-0.0779961,
-0.0035621817,
0.02473474,
0.007496259,
-0.0052320682,
0.026295245,
-0.01688846,
-0.010595394,
-0.012680929,
-0.002151164,
-0.016859291,
-0.07822945,
0.011404815,
0.05641154,
0.009888062,
0.05375722,
-0.030480899,
-0.058249146,
0.031005928,
-0.003875741,
0.048331913,
-0.007897324,
-0.015955074,
0.012068395,
0.0025321753,
-0.023480501,
0.015575886,
-0.02368468,
-0.026820274,
0.012608008,
0.0005118129,
0.0031082495,
-0.01601341,
-0.05967839,
0.049294468,
-0.032289334,
-0.052677993,
-0.04541508,
0.030860087,
0.011186052,
-0.0030061605,
0.034710307,
-0.05116124,
-0.021453302,
-0.004109088,
0.031005928,
-0.062128533,
0.02617857,
-0.043635815,
-0.040427297,
0.023757601,
0.025420194,
0.02617857,
-0.060553443,
-0.0022259078,
-0.030072542,
-0.024238877,
-0.0175885,
-0.032931037,
-0.04646514,
0.019032331,
-0.018798985,
0.024340967,
-0.010544349,
0.01352681,
-0.0047070384,
0.009435953,
0.024763908,
0.037889652,
-0.038239673,
-0.01454041,
0.00683268,
-0.0086557,
-0.0064389077,
0.055040628,
-0.010675607,
0.02935792,
0.006716007,
0.03357274,
-0.06702881,
-0.03832718,
-0.042381577,
0.007288435,
0.044860885,
-0.05095706,
0.014584162,
-0.0025649895,
0.017296817,
0.032931037,
0.03634373,
-0.040310625,
-0.006293066,
-0.028687047,
-0.069712296,
0.043023277,
-0.03678126,
-0.007787943,
-0.010865201,
-0.011288142,
0.03185181,
-0.030393394,
-0.0001551846,
0.07554596,
0.005100811,
0.015692558,
-0.06329527,
0.05031536,
0.007802527,
0.017457243,
-0.0028329736,
-0.0058810636,
-0.02498267,
-0.0061654546,
-0.03503116,
-0.024122205,
-0.02785575,
0.030597573,
0.011959013,
-0.01898858,
0.024603482,
-0.025886888,
-0.04229407,
-0.02420971,
0.02263462,
0.059095025,
0.015852984,
0.015823817,
0.028293274,
-0.0012524149,
0.05696574,
-0.02158456,
-0.034272783,
-0.0187844,
0.057840787,
-0.007354064,
-0.02733072,
0.03182264,
0.03759797,
-0.04264409,
-0.06522037,
-0.0093922,
0.006891017,
-0.029985037,
0.00014982947,
-0.011579825,
-0.024472224,
-0.034156106,
-0.014241435,
0.019178173,
0.008677577,
-0.03500199,
0.0127173895,
-0.019221926,
-0.020724095,
-0.00504612,
0.06142849,
-0.02035949,
0.0012004588,
-0.045181736,
0.0073285415,
-0.04524007,
-0.019178173,
0.062420215,
0.0026105652,
0.042381577,
0.041010663,
-0.015575886,
0.06405364,
0.0072191604,
0.029109988,
-0.005994091,
-0.019892797,
-0.055828173,
-0.023465917,
0.029284999,
-0.030918423,
0.021292876,
-0.024515977,
0.0043570185,
0.011105839,
0.037539635,
-0.018653143,
-0.050227854,
0.01541546,
-0.045910943,
-0.020315738,
0.028118264,
-0.031151772,
-0.0075691803,
0.0679622,
0.011915261,
-0.010413092,
-0.0028913103,
0.018798985,
-0.025143096,
-0.011018335,
-0.050052844,
-0.001754657,
-0.039260566,
-0.0075254277,
-0.034010265,
-0.026761938,
0.006234729,
0.02792867,
-0.019017749,
0.0032103388,
0.0056951153,
0.089546755,
-0.009341156,
0.019280262,
0.019221926,
-0.002067305,
-0.0032905517,
-0.017457243,
-0.03205599,
0.032610185,
0.03392276,
-0.030539235,
0.011543364,
-0.005560212,
0.019426104,
-0.023538837,
-0.013227835,
0.048623595,
-0.0146716675,
0.00848069,
-0.006825388,
0.022940887,
-0.056294866,
-0.0015249564,
-0.035264503,
-0.021599144,
-0.026193155,
0.045852605,
0.008371309,
0.035614524,
0.016728034,
0.014387276,
-0.0020873582,
0.030597573,
-0.0004940385,
-0.0039231395,
0.034593634,
0.014153929,
-0.011594409,
-0.008735913,
0.009902646,
0.041623197,
-0.018755233,
0.0084004775,
-0.012688221,
-0.03640207,
-0.03290187,
0.013563271,
0.025741046,
0.06638711,
0.017923936,
-0.037656307,
-0.016757203,
-0.011594409,
-0.025011837,
0.017778093,
-0.060320094,
-0.030189216,
0.007882739,
-0.06691214,
0.01594049,
-0.017034302,
0.0058263727,
0.027272383,
0.054078072,
0.0074743833,
0.0014465665,
-0.007911908,
-0.022051252,
0.0018211972,
-0.061720174,
-0.031618465,
-0.022897135,
0.024603482,
-0.025449364,
-0.017530164,
0.03065591,
0.034331117,
0.022722125,
-0.041739874,
-0.025638957,
-0.00091971376,
0.011849632,
0.04944031,
-0.05381556,
0.00805775,
-0.056674056,
0.05235714,
-0.06627043,
0.047573537,
-0.014081009,
0.0055419817,
0.01618842,
0.034039434,
0.012877815,
0.029212076,
0.04664015,
-0.038502187,
0.009158853,
0.047661044,
0.00879425,
0.005848249,
0.0016124614,
-0.021701233,
0.09608046,
0.046173457,
0.020155312,
-0.01618842,
0.005567504,
-0.0052612363,
-0.03882304,
-0.018930243,
0.009756804,
0.026397334,
0.008954676,
0.0030572051,
-0.0225617,
-0.012666345,
-0.0140737165,
-0.0046158875,
0.012469458,
0.006092534,
-0.014620623,
0.008954676,
-0.032464344,
0.0029879303,
-0.015240449,
-0.038210504,
0.008050458,
0.031297613,
0.044715043,
-0.0019287554,
0.021322045,
-0.021322045,
0.0480694,
0.028176602,
0.011186052,
0.0070514423,
-0.024457641,
0.03380609,
0.009778681,
0.006679546,
-0.012352785,
-0.00844423,
-0.008327557,
-0.032231,
-0.039814763,
0.038414683,
-0.011922552,
-0.044452526,
0.0025048298,
-0.022590868,
-0.007014982,
-0.04404417,
0.033193555,
-0.04194405,
0.0096765915,
0.036635414,
-0.054690607,
-0.026047314,
0.030743415,
-0.03990227,
0.026849443,
-0.014905014,
0.02848287,
0.01345389,
0.07554596,
-0.011572532,
-0.016903045,
0.032143492,
0.004954969,
-0.040018942,
-0.009545335,
0.00826922,
0.0009087756,
-0.028759968,
-0.04351914,
-0.050577875,
0.014708128,
-0.025041007,
-0.046961002,
-0.045910943,
0.03062674,
0.0024793076,
-0.025303522,
0.02035949,
0.0814963,
0.025070176,
-0.011536072,
-0.018478133,
-0.016334262,
-0.047252685,
-0.017967688,
-0.025172263,
0.040456466,
-0.034447793,
-0.042906605,
-0.00069229194,
-0.0011083963,
-0.022576284,
-0.020271985,
-0.0045429664,
0.0068035116,
0.026703602,
0.05641154,
0.02140955,
0.056119855,
-0.0059539843,
-0.03226017,
0.024355551,
0.023859689,
0.016392598,
0.08423812,
0.07280414,
-0.0042622215,
0.005862833,
0.02263462,
0.024268046,
-0.024603482,
-0.0026160341,
-0.0190615,
-0.010959998,
-0.029547513,
-0.04208989,
-0.022313768,
0.027768245,
-0.0130965775,
-0.013038241,
-0.04424835,
-0.0139935035,
-0.06842889,
-0.0036114033,
-0.022430442,
0.049907003,
0.010070364,
-0.015138361,
0.03535201,
-0.042760763,
0.25481448,
0.052853003,
0.019294847,
0.013687236,
0.02925583,
0.048973616,
0.033514407,
-0.022751294,
0.002876726,
-0.015211281,
-0.015371707,
-0.06457867,
0.02932875,
0.040835656,
-0.051657103,
0.05518647,
-0.04993617,
-0.03237684,
-0.025624374,
-0.0452109,
-0.043373298,
-0.002331643,
0.030247552,
0.060553443,
0.06522037,
0.0107631115,
0.015080024,
-0.02393261,
-0.0043606646,
-0.011083963,
-0.000082605606,
-0.023174234,
0.0071863458,
-0.0008736825,
-0.0047981893,
0.019703204,
-0.016130084,
-0.030247552,
-0.02245961,
-0.007102487,
-0.0009908115,
-0.00046008473,
0.01454041,
-0.011339186,
-0.023757601,
0.004411709,
-0.017296817,
0.022474194,
0.022824215,
-0.03678126,
0.045356743,
-0.044802547,
0.01170379,
-0.0240347,
-0.03272686,
0.02043241,
-0.03829801,
-0.031180939,
0.0015358946,
0.042585753,
0.0016735326,
0.016625945,
-0.009625547,
-0.0055091674,
-0.030568404,
0.01748641,
-0.012082978,
0.05813247,
-0.022299184,
-0.022255432,
-0.026966115,
-0.011222512,
-0.023217987,
-0.025916057,
0.042964943,
0.03322272,
-0.022124175,
0.035614524,
-0.0031902855,
-0.043198287,
0.0014474781,
-0.005181024,
0.004652348,
-0.033660248,
0.064987026,
0.039785594,
-0.030072542,
0.012498627,
0.032522682,
0.026995284,
0.015546717,
0.048536092,
0.0075691803,
-0.021555392,
0.0016407182
] |
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
load model in 4-bit
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.float16
)
tokenizer = AutoTokenizer.from_pretrained("facebook/opt-350m")
model = AutoModelForCausalLM.from_pretrained("facebook/opt-350m", quantization_config=quantization_config)
enable BetterTransformer
model = model.to_bettertransformer()
input_text = "Hello my dog is cute and"
inputs = tokenizer(input_text, return_tensors="pt").to("cuda")
enable FlashAttention
with torch.backends.cuda.sdp_kernel(enable_flash=True, enable_math=False, enable_mem_efficient=False):
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
``` |
[
0.041592438,
0.024176523,
-0.010545079,
0.03662486,
-0.021898491,
-0.008994549,
-0.00033826006,
-0.028923646,
0.0027226144,
0.03506698,
-0.0074587143,
0.002775891,
0.03686001,
-0.005963297,
-0.0072823507,
0.014888035,
0.015475914,
-0.040299103,
-0.048882134,
-0.022045461,
0.007028828,
-0.0041555692,
-0.06537214,
-0.008671215,
-0.06237396,
0.013749019,
-0.018430006,
0.0047361,
0.0660776,
0.024955463,
-0.04585456,
0.00022803275,
0.014557353,
-0.052909106,
-0.046442438,
-0.016093187,
0.0019546975,
-0.015373035,
-0.02579319,
-0.04459062,
0.016151974,
-0.010721442,
0.01233811,
-0.030951828,
-0.023441674,
-0.0043319333,
0.018900309,
0.002428675,
-0.005628941,
-0.039182134,
-0.031245766,
0.041416075,
0.008002503,
-0.020325916,
-0.009126821,
0.0006480447,
-0.01981152,
-0.00721254,
-0.03074607,
0.0070214793,
-0.010434852,
0.057876684,
0.024014857,
-0.01175758,
-0.008538942,
0.036742434,
0.001048078,
0.0062976535,
-0.033479705,
-0.025411068,
-0.03274486,
0.019297127,
-0.056260016,
-0.057083048,
-0.010133564,
0.03618395,
0.030540312,
0.012573262,
0.01529955,
0.004207009,
0.014799853,
0.071897596,
-0.015475914,
-0.036154557,
-0.059640322,
0.00796576,
0.021898491,
-0.04482577,
-0.0069296234,
-0.016005006,
-0.018856218,
0.02608713,
-0.019400006,
0.046413045,
0.0055738273,
0.036977585,
-0.025749099,
0.04570759,
-0.02948213,
0.0071868203,
0.03806516,
0.07377881,
-0.022662735,
0.020766824,
-0.047853347,
0.045384258,
0.047089104,
0.02078152,
-0.039035164,
-0.011551822,
0.01146364,
-0.01097864,
0.01039076,
0.0034666487,
0.01088311,
-0.008928412,
0.0081127295,
-0.003817539,
-0.038829405,
0.0067936764,
0.06372608,
-0.033244554,
-0.0031047359,
-0.02229531,
-0.013976823,
-0.031451523,
0.013359549,
0.045795772,
-0.025043644,
-0.023147734,
0.023867887,
-0.012110307,
-0.00045147268,
-0.005224774,
0.030158192,
-0.005959623,
0.019899704,
-0.005353373,
0.06778245,
-0.024029553,
-0.009993942,
-0.016313642,
-0.00033137083,
0.09805821,
0.010508336,
-0.011875155,
-0.00043356075,
-0.024147129,
-0.042738803,
0.0076130326,
0.014851293,
-0.013462428,
-0.022016067,
-0.0037477284,
0.032186374,
-0.048264865,
-0.01660758,
0.054320015,
-0.039505467,
0.03306819,
0.011426898,
0.028218191,
-0.020370007,
0.057141837,
-0.021354703,
0.01471902,
-0.0199144,
-0.03453789,
-0.000584664,
-0.03812395,
-0.017724551,
0.016240157,
-0.023441674,
0.002505834,
0.029100008,
-0.01180167,
0.05367335,
0.010177654,
-0.0045634103,
0.0007247445,
-0.015461217,
-0.012294019,
0.040593043,
0.03938789,
0.015196672,
0.01801849,
0.013998868,
0.01442508,
-0.017474702,
-0.014395686,
-0.013124398,
0.020149551,
-0.009384018,
0.011823716,
-0.005790608,
-0.0014210137,
-0.017856823,
-0.0109272,
-0.0040637134,
-0.0068451157,
0.021883795,
0.045825165,
-0.012801064,
0.007363184,
-0.0084507605,
-0.018856218,
-0.0014669418,
0.043503042,
0.003457463,
-0.016534096,
0.04406153,
-0.00869326,
-0.041151527,
0.029246978,
0.042973954,
-0.002491137,
-0.042092133,
0.03633092,
0.006922275,
-0.0129627315,
0.012786368,
0.009626518,
0.035831224,
0.006235191,
0.037330315,
0.014285459,
-0.017665762,
0.022133643,
0.06954608,
0.010905155,
-0.017768642,
0.019458793,
-0.0019657202,
0.05969911,
0.012147049,
0.028629705,
0.061962444,
0.04667759,
0.009398715,
0.005188032,
-0.03148092,
0.013859247,
0.014079701,
0.02836516,
0.016798642,
0.020399401,
-0.01826834,
-0.027395159,
-0.041122135,
0.009655912,
-0.05599547,
0.04735365,
-0.020223036,
-0.009633866,
-0.05396729,
-0.03259789,
-0.027747888,
0.040240314,
-0.035419706,
-0.010794927,
0.04220971,
-0.002096156,
-0.024294099,
0.039946377,
0.033597283,
0.037359707,
0.0073889038,
0.012896595,
-0.0029063267,
-0.024588037,
-0.010096821,
-0.014087049,
-0.021413492,
-0.041033953,
-0.030951828,
0.019150157,
0.05346759,
-0.023941372,
-0.002803448,
-0.056113046,
-0.010126215,
0.014065004,
0.0021292241,
0.0054231836,
-0.0011895363,
0.029952433,
-0.0490585,
0.0042804936,
-0.06384365,
0.042268496,
-0.022368794,
-0.033803042,
0.0009153459,
-0.031892434,
0.003650361,
-0.00864182,
-0.0112064425,
-0.039564256,
-0.022016067,
-0.00013169866,
-0.024132432,
-0.032333344,
0.0013704929,
-0.016490005,
-0.035772435,
0.045149103,
-0.003935115,
-0.010530382,
0.057788502,
0.034508497,
-0.021075461,
0.015520005,
-0.008362578,
0.039858192,
-0.030687282,
0.048206076,
0.04182759,
-0.008913714,
-0.045443043,
-0.005930229,
-0.015534702,
-0.021251824,
-0.01816546,
-0.018003793,
0.006558525,
0.06278548,
0.0015027656,
-0.07807033,
0.012837807,
-0.060022444,
-0.0047691683,
-0.028379858,
-0.013800459,
0.0057244715,
0.014366292,
0.049087893,
-0.06437275,
-0.012132352,
-0.05396729,
0.0058934866,
0.019532278,
0.00519538,
-0.014998262,
0.03991698,
-0.059228808,
-0.013293413,
0.059963655,
-0.008472806,
0.009523639,
-0.02899713,
0.028071221,
-0.012426292,
0.04356183,
-0.0059486004,
0.028438644,
0.041298497,
-0.02486728,
-0.003993903,
-0.000095358104,
0.009406064,
0.0017673111,
0.035801828,
0.0041739405,
0.019708643,
-0.050498802,
-0.015417126,
0.017371824,
0.03953486,
0.032568496,
-0.049616985,
0.042415466,
-0.01723955,
0.022265917,
-0.018518187,
0.02253046,
-0.024940765,
0.042444862,
0.013388944,
0.06037517,
-0.0015505308,
-0.03312698,
0.020281825,
0.009964548,
0.0145059135,
0.022941977,
0.012000079,
-0.030981222,
-0.035449103,
-0.04123971,
0.015475914,
-0.010567124,
-0.021384098,
-0.008325836,
-0.00020633174,
-0.024323491,
-0.05382032,
-0.0070986385,
0.021266522,
0.045090318,
0.012543867,
0.0066577294,
-0.025513947,
-0.0005920125,
0.012859852,
0.015211368,
0.0029155123,
-0.043297287,
0.028276978,
0.03118698,
0.013521216,
-0.03321516,
-0.015666975,
-0.022603946,
0.019385308,
-0.015270156,
-0.02195728,
-0.045766376,
-0.025028948,
-0.013124398,
-0.014873338,
0.0013649815,
-0.035302132,
-0.04520789,
0.027498038,
0.051703956,
0.00094519916,
0.005478297,
-0.023544552,
-0.015328944,
0.029261675,
-0.0524682,
-0.07142729,
-0.013557958,
-0.017504096,
-0.04491395,
0.016681066,
0.037653647,
-0.01529955,
-0.044237893,
-0.045501832,
0.015916822,
-0.0098616695,
0.028468039,
-0.045002136,
0.012507125,
0.017518792,
0.010985988,
-0.026307583,
-0.03471425,
-0.020090764,
-0.010449548,
-0.01987031,
0.0330388,
-0.03148092,
-0.0036172927,
0.032333344,
-0.014483868,
0.009700003,
0.032303948,
0.009846972,
-0.02195728,
0.0027189401,
0.019458793,
-0.041151527,
-0.0018582487,
0.029496828,
0.020414097,
-0.018679854,
0.06519578,
-0.019855613,
-0.01297008,
0.05011668,
0.024779098,
-0.042092133,
0.021398794,
-0.040152133,
0.022986067,
-0.01719546,
-0.00044802806,
-0.0016267713,
-0.021251824,
0.08130366,
0.023382885,
-0.0075321994,
0.0127569735,
-0.007973108,
-0.03618395,
0.0020116484,
-0.024455765,
0.027439252,
0.00085563946,
0.017606976,
0.02103137,
0.008142124,
-0.0063307215,
0.010662654,
-0.022118947,
0.006698146,
0.0699576,
0.02326531,
0.021869097,
-0.043003347,
-0.029452736,
0.03051092,
-0.043591224,
-0.037477285,
-0.02511713,
-0.018136065,
0.0006351849,
0.0403285,
-0.043885164,
-0.037800618,
-0.04585456,
0.01626955,
-0.016093187,
0.01185311,
0.013234626,
-0.012720231,
0.019738037,
0.05969911,
0.015123187,
-0.046295468,
-0.012536519,
0.009097427,
0.013462428,
0.014807202,
0.014557353,
-0.0042915163,
-0.020605158,
-0.023809098,
0.022706825,
-0.015314247,
-0.024396976,
-0.015946217,
-0.053203046,
-0.029996524,
0.019076673,
-0.0044605318,
-0.046324864,
0.022133643,
-0.0087447,
-0.002160455,
-0.04065183,
0.0069810627,
-0.020796219,
-0.027453948,
-0.022310007,
0.03803577,
0.0024801143,
0.018679854,
0.0032608912,
0.0049675773,
-0.016122581,
0.08553639,
-0.036977585,
0.006455646,
-0.025425766,
0.0077159116,
-0.009501594,
-0.0014752088,
-0.038388498,
-0.010523033,
-0.0008478317,
0.012235231,
-0.0093252305,
-0.023000764,
0.0043613273,
0.0012428128,
0.046030924,
0.007708563,
0.037771225,
0.03112819,
0.0149762165,
0.01243364,
0.017577581,
-0.0056730323,
-0.00093739136,
-0.026983645,
-0.04056365,
0.02777728,
-0.008002503,
-0.024808493,
0.030128798,
0.016254853,
0.018371217,
-0.0811273,
0.02627819,
0.09364912,
0.018870914,
0.021369401,
-0.052526984,
-0.0077453055,
0.033626676,
-0.007275002,
-0.0037807967,
-0.021428188,
-0.045736983,
0.0002569674,
-0.035478495,
-0.0631382,
-0.023720916,
0.012235231,
0.044208497,
-0.012308716,
0.021340007,
-0.009112124,
-0.05026365,
-0.035155162,
0.050146077,
-0.035772435,
-0.009920457,
-0.006881858,
0.0065217824,
0.004515645,
0.041739408,
-0.024999553,
-0.003846933,
-0.045883954,
0.029908342,
0.021281218,
-0.0042474256,
0.015196672,
0.018238945,
-0.06319699,
-0.029834857,
0.0027391484,
0.028791372,
-0.016019702,
-0.05405547,
-0.008340533,
-0.012742276,
-0.01399152,
0.016695762,
0.0061947745,
0.014211974,
0.027909555,
-0.018812127,
-0.003170872,
-0.035831224,
0.03489062,
0.052526984,
0.0017351615,
-0.03139274,
-0.023544552,
-0.039035164,
-0.000065906745,
0.008737351,
0.03051092,
-0.053085472,
-0.010861064,
-0.0019877658,
0.0013815155,
0.06396123,
0.03312698,
0.040475465,
0.023250613,
-0.048294257,
-0.028100615,
-0.0024176522,
-0.004508297,
0.017856823,
0.038300313,
-0.030922433,
0.05232123,
-0.0065217824,
-0.0015431823,
-0.0033564214,
-0.064196385,
0.0065768957,
-0.044531833,
0.025381675,
0.022163037,
0.0089210635,
0.002911838,
0.006308676,
-0.037859406,
-0.027424553,
-0.03468486,
0.04741244,
-0.02724819,
-0.033714857,
-0.03148092,
-0.006624661,
-0.04212153,
-0.017665762,
-0.029158797,
-0.027645009,
-0.000038522146,
-0.000055228473,
-0.008009851,
-0.012507125,
0.00787023,
0.01388864,
-0.031069404,
0.009744094,
0.0032792625,
-0.001003987,
0.023985462,
0.0059669716,
-0.030775463,
0.0044127665,
0.041063346,
-0.05402608,
-0.015622883,
-0.023441674,
-0.0063307215,
0.0019840915,
-0.008730003,
0.047912136,
-0.031069404,
-0.00071050687,
-0.021046067,
0.024632128,
-0.037300922,
0.015373035,
-0.00078536954,
0.0031010616,
0.019576369,
0.0034813457,
0.019003188,
0.042621225,
-0.007072919,
0.00023561087,
0.019723339,
0.048000317,
0.051204257,
0.011595912,
-0.0140356105,
-0.015578792,
-0.015226065,
-0.03662486,
0.07078063,
0.061668504,
-0.0052431454,
0.023691522,
-0.013006822,
0.008200912,
0.046030924,
-0.050645772,
0.01734243,
0.078893356,
-0.00033940826,
-0.0035934101,
-0.011066821,
0.018224249,
-0.029981827,
0.0049124635,
-0.04673638,
-0.06819396,
0.015975611,
-0.055290017,
-0.0012850667,
-0.042239103,
0.0078040934,
0.008943109,
0.0010342996,
-0.042327285,
0.020370007,
0.026645614,
0.005026365,
0.05352638,
-0.08924003,
-0.033009402,
0.024352886,
0.029820161,
-0.06237396,
-0.013668186,
0.010015988,
0.10123276,
-0.020472884,
-0.008377275,
-0.051850926,
-0.030569706,
0.0018306918,
0.032509707,
-0.059816685,
-0.01224258,
-0.001522974,
-0.0018903983,
-0.003802842,
-0.022809705,
0.014924778,
0.001432955,
0.0034354178,
0.01311705,
-0.045648802,
-0.0013466103,
0.0101997005,
-0.0051512895,
0.003591573,
0.021266522,
0.02535228,
-0.0029191866,
-0.015872732,
0.011978034,
0.08018669,
0.016401824,
0.047383044,
0.015534702,
0.039652437,
0.022853795,
-0.0075064795,
-0.0005001564,
0.01010417,
-0.024690917,
-0.008950457,
0.011500382,
-0.04996971,
-0.057347592,
-0.025660917,
0.010236442,
-0.0007816953,
-0.03133395,
0.0032039403,
0.017092582,
0.0005277132,
0.03153971,
-0.012881898,
-0.034185164,
0.0684879,
-0.0056473124,
0.058288198,
-0.01831243,
-0.008965154,
0.017504096,
0.035008192,
0.050087288,
0.054849107,
0.011338715,
0.0223394,
0.028409252,
-0.024602735,
-0.01738652,
-0.0014265251,
-0.024161825,
-0.025543341,
-0.05235062,
-0.022986067,
0.03051092,
-0.019605763,
0.005933903,
-0.0022302659,
-0.013072958,
0.010971291,
-0.030246373,
-0.008289093,
-0.037036374,
0.015079096,
0.030158192,
0.034302738,
-0.03862365,
0.045002136,
0.00056169997,
0.053144258,
0.0660776,
0.014013565,
0.008267048,
0.044649407,
0.044708196,
0.010434852,
0.0074587143,
0.01340364,
-0.06578366,
0.008913714,
0.017606976,
0.03744789,
0.0081788665,
-0.03821213,
-0.039270315,
0.037506677,
0.063314565,
0.018782733,
-0.0500285,
0.02419122,
-0.008994549,
-0.05255638,
-0.0058457213,
0.073896386,
0.009839624,
-0.0012373015,
-0.015946217,
0.01753349,
-0.021369401,
0.013462428,
0.004570759,
0.02103137,
0.008634472,
-0.020605158,
-0.028820766,
-0.05502547,
0.011904549,
0.010478943,
-0.0286591,
0.0349788,
0.029893646,
0.025484553,
0.04691274,
0.044120315,
-0.05696547,
-0.033097588,
0.06637154,
0.027277583,
-0.001757207,
0.061609715,
0.0014880686,
0.013300762,
-0.009538337,
0.036007587,
-0.011470988,
-0.00078353245,
-0.023823796,
-0.0037054745,
-0.021266522,
-0.060845472,
-0.0509985,
0.023676826,
0.04109274,
0.016857428,
-0.022618644,
0.0034060238,
-0.024000159,
-0.08195033,
-0.04147486,
-0.04832365,
0.0089871995,
-0.02170743,
-0.039329104,
-0.0029853228,
-0.06354972,
0.2579613,
0.04391456,
0.02370622,
0.020825613,
-0.011132958,
0.074425474,
0.020531673,
-0.021134248,
-0.014256065,
-0.050440017,
-0.0071280324,
0.025925463,
0.021310613,
0.022618644,
-0.0029228607,
0.027909555,
-0.05867032,
0.013072958,
0.0083111385,
-0.045296073,
-0.022221824,
0.04673638,
-0.006047805,
0.039182134,
0.016636975,
0.027174706,
-0.013322807,
-0.046795167,
0.0075064795,
-0.037418496,
0.019929096,
-0.023985462,
0.047559407,
0.0073962524,
0.00796576,
0.016475309,
0.005059433,
0.0006053316,
-0.0030239024,
-0.015505307,
-0.004162918,
0.0011564682,
0.001675455,
-0.02516122,
-0.020325916,
0.07101578,
0.018430006,
0.032627285,
0.053790927,
-0.0018766199,
0.038976375,
-0.0046552666,
0.0024268378,
-0.04056365,
-0.068899415,
-0.011603261,
-0.028585615,
-0.014057656,
-0.04823547,
-0.020149551,
0.031363342,
0.016166672,
-0.0050998502,
0.011662049,
-0.0029210236,
0.06396123,
-0.0315691,
0.01768046,
-0.024646826,
-0.025278796,
0.024852583,
-0.015520005,
-0.027512735,
-0.044620015,
0.028644403,
-0.023794401,
0.020031976,
0.016636975,
0.010405458,
-0.0019822544,
0.02069334,
0.0084507605,
-0.033979405,
-0.0103319725,
0.03127516,
0.037800618,
-0.06596002,
-0.037124556,
-0.02170743,
0.010456897,
-0.004721403,
0.06484305,
-0.041004557,
-0.0034299064,
0.005143941
] |
resources:
limits:
cpu: 200 # Update the CPU and memory limit values based on your nodes
memory: 128Gi
requests:
cpu: 200 # Update the CPU and memory request values based on your nodes
memory: 128Gi
volumeMounts:
- name: pvc-volume
mountPath: /tmp/pvc-mount
- mountPath: /dev/shm
name: dshm
restartPolicy: Never
nodeSelector: # Optionally use the node selector to specify what types of nodes to use for the workers
node-type: spr
volumes:
- name: pvc-volume
persistentVolumeClaim:
claimName: transformers-pvc
- name: dshm
emptyDir:
medium: Memory
To run this example, update the yaml based on your training script and the nodes in your cluster. |
[
-0.0097344015,
-0.02513821,
0.009050907,
0.021771101,
-0.045671828,
0.011180532,
0.016662879,
-0.026807377,
0.0075544138,
0.032721404,
0.018274486,
0.015238332,
0.013900121,
-0.06314051,
-0.0061550485,
0.01863422,
0.02158404,
0.013166264,
-0.034246676,
0.001648481,
0.011885611,
0.020792624,
-0.094221525,
-0.03683676,
-0.03119613,
0.015324668,
0.010238029,
-0.016202418,
0.045240145,
0.038678598,
-0.037383556,
-0.019670254,
0.0032987606,
-0.04970085,
-0.009986215,
-0.015598065,
0.04000242,
-0.007334976,
-0.018504716,
-0.040952116,
0.014425333,
0.0039570737,
0.008388996,
-0.04092334,
-0.04601717,
-0.027239058,
0.0056154476,
0.017583797,
0.036980655,
-0.027051996,
-0.047772672,
0.019238574,
0.045038696,
-0.009863906,
-0.009914269,
0.0015315674,
0.002153008,
-0.05056421,
-0.024375575,
-0.041671585,
0.020274607,
0.002032497,
-0.028260702,
-0.0115042925,
0.011087001,
0.02672104,
0.010230835,
-0.003154867,
0.026548369,
0.0020936518,
0.012353265,
0.020749457,
-0.01382098,
-0.062507376,
-0.02715272,
0.008971766,
0.009475393,
-0.0049607316,
-0.03251995,
0.047715116,
0.0052449214,
0.026677873,
0.0018220526,
-0.025685007,
-0.043369528,
-0.01728162,
0.023756832,
0.0112237,
-0.021900605,
0.03686554,
-0.031599034,
0.039657075,
-0.019900484,
-0.013569166,
-0.004172914,
0.028102418,
-0.0020522824,
0.010921524,
-0.058276907,
-0.03162781,
0.024836034,
0.062507376,
-0.007935732,
0.043772433,
-0.033354536,
0.023310762,
0.007597582,
0.013439662,
-0.064867236,
0.015382226,
0.033296976,
0.0066442867,
-0.011166143,
0.018734947,
-0.0050039,
-0.016101694,
-0.015986579,
-0.0006439238,
-0.022720799,
-0.037815236,
0.06492479,
-0.022404233,
0.036232408,
-0.038275696,
-0.025325272,
-0.007842201,
-0.034879807,
0.030678114,
-0.026289359,
-0.02672104,
0.00041279476,
0.005496735,
0.009367473,
0.016044136,
0.0109790815,
0.02133942,
-0.01472751,
-0.019727811,
0.021512093,
-0.014720315,
0.018706167,
-0.042391054,
0.0009362077,
0.10078307,
0.03528271,
0.0020774638,
0.006435641,
0.027023217,
-0.04486602,
0.02135381,
-0.0065111853,
-0.008899819,
0.013619529,
0.009806348,
0.013756228,
0.038678598,
0.01682116,
0.04581572,
-0.009921463,
0.03706699,
0.02089335,
0.012504353,
0.016547764,
0.03525393,
-0.027541233,
0.045240145,
-0.036692865,
-0.043196857,
-0.032088272,
-0.0070579806,
0.07568803,
-0.0043132105,
-0.00232568,
0.006921282,
0.02856288,
0.014389359,
0.03752745,
0.024102177,
0.0017941733,
0.028793108,
-0.028102418,
-0.015914632,
-0.008050847,
0.004654958,
0.031340025,
0.035110038,
-0.020821404,
0.0031134977,
-0.045527935,
0.004586608,
-0.0075400244,
0.023080533,
-0.01549734,
0.049326725,
-0.018965175,
0.0030721282,
-0.03591584,
0.019195406,
-0.021828659,
-0.036923096,
-0.035369046,
0.03168537,
-0.032260943,
-0.0027159916,
0.006468017,
-0.027469287,
0.01818815,
0.036923096,
0.013763422,
-0.008245103,
0.04852092,
-0.0238,
-0.03885127,
0.00025113928,
0.058708586,
-0.008460944,
-0.023699274,
0.03551294,
0.0034786277,
-0.004039813,
0.0064860038,
0.04311052,
0.07119855,
0.013540387,
0.0072774184,
-0.03171415,
0.0012105049,
0.0503052,
0.01909468,
-0.007313392,
0.027095163,
0.05574438,
-0.02605913,
0.06446433,
0.0063852784,
0.031253688,
0.033153083,
0.009295526,
-0.0032951634,
0.008576058,
0.01797231,
0.038966384,
-0.00853289,
0.022893472,
0.04630496,
-0.029728416,
0.03525393,
0.017468682,
-0.030678114,
0.025598671,
-0.046161067,
0.040520437,
0.03905272,
-0.012310097,
-0.036002178,
-0.012820919,
0.0055758767,
0.020994075,
0.000028539833,
-0.0052341293,
0.032318503,
-0.0031206922,
-0.017641354,
0.011331621,
0.017094558,
-0.0043527815,
-0.03551294,
-0.010648126,
0.039570738,
-0.03574317,
-0.011662575,
0.02359855,
-0.06066554,
-0.0233971,
-0.07407642,
0.036721647,
0.05099589,
-0.010619347,
0.026174245,
-0.03453446,
-0.00045753666,
0.038764935,
-0.032721404,
0.013468441,
0.05076566,
0.020346554,
-0.027498066,
-0.021598428,
-0.06106844,
0.030706894,
-0.058996372,
-0.0011322628,
-0.0024947552,
-0.020634342,
0.016921887,
-0.025425998,
-0.015885852,
-0.021325031,
-0.026634704,
-0.012281318,
-0.041412577,
-0.030937122,
0.011986337,
-0.023612939,
-0.010727268,
0.029469408,
0.012907255,
-0.05033398,
0.03686554,
0.0074752723,
-0.044117775,
0.0079645105,
0.015238332,
0.040146314,
-0.036347523,
0.08645127,
0.018576663,
0.020029988,
-0.05237727,
-0.07396131,
-0.025555503,
0.04512503,
0.00008672962,
-0.01840399,
-0.0028868653,
0.024792867,
0.0052737,
-0.048664812,
0.04627618,
-0.03663531,
-0.022763968,
-0.047945347,
0.00864081,
0.01683555,
0.007993289,
0.03439057,
-0.051542684,
0.019339299,
-0.030706894,
0.04690931,
0.008388996,
-0.03254873,
0.02536844,
0.018173762,
0.019828537,
0.03508126,
-0.02716711,
-0.043945104,
0.011295647,
-0.030447885,
-0.0071191355,
-0.01268422,
0.01506566,
0.0020522824,
0.025497945,
0.011302842,
-0.033440873,
0.00943942,
-0.0047269044,
0.009173216,
0.04204571,
0.019353688,
-0.001098088,
-0.026893713,
-0.0025199365,
-0.032404836,
-0.027224667,
0.01223815,
0.051139783,
-0.030822007,
0.0110582225,
-0.011626602,
-0.019468803,
-0.020634342,
-0.0020918532,
-0.0010423292,
0.045038696,
0.021771101,
0.03139758,
-0.01505127,
-0.037153326,
0.020878961,
0.007291808,
0.044981137,
0.056780413,
0.016979445,
-0.021670375,
0.020807013,
-0.024073398,
-0.022102056,
0.0083961915,
-0.05614728,
0.008453749,
-0.024116566,
-0.021756712,
-0.03954196,
0.009612092,
0.03459202,
0.03885127,
0.062622495,
0.040693108,
-0.03416034,
-0.006129867,
0.009892684,
-0.020936517,
0.002680018,
-0.037815236,
0.083515845,
0.010036578,
-0.006806167,
-0.026418865,
0.003906711,
-0.016806772,
0.027239058,
-0.013266989,
0.01752624,
-0.006658676,
0.00014737852,
0.010187667,
0.008345828,
-0.0719468,
-0.06319807,
-0.022289118,
0.034678355,
0.055974606,
-0.041182347,
0.0031027056,
-0.037901573,
-0.008791898,
0.027296614,
-0.0285341,
-0.024562636,
-0.02987231,
-0.008129988,
-0.053384524,
0.029699638,
0.022893472,
0.025886457,
-0.0037376361,
-0.014094378,
-0.003498413,
0.004485883,
-0.0006155948,
-0.015223943,
-0.007719891,
0.005673005,
-0.0051621827,
-0.007205472,
-0.020073157,
-0.019914873,
0.03749867,
-0.0466503,
0.03390133,
-0.031512696,
0.012633857,
0.017353568,
-0.0027393743,
0.028303869,
0.013396493,
-0.025008706,
-0.008892624,
-0.0011448534,
0.017914753,
-0.034419347,
-0.0054571647,
0.021886216,
-0.019339299,
-0.004255653,
0.061874244,
-0.032951634,
0.013979263,
0.049672067,
0.063831195,
-0.0024911577,
-0.022850303,
-0.038908828,
0.013763422,
0.000051683655,
-0.03534027,
-0.00056073535,
-0.047916565,
0.039398067,
-0.030044982,
-0.007036397,
-0.004011034,
-0.049902298,
-0.005852872,
0.0292104,
-0.0031692565,
-0.0038491536,
-0.047974125,
-0.04558549,
0.044204112,
-0.023771223,
-0.0047880593,
-0.018044258,
-0.06348585,
-0.02110919,
0.014461306,
0.050218865,
0.008101209,
-0.0476,
-0.063946314,
0.06434921,
-0.014108767,
0.037469894,
0.003917503,
0.021281863,
0.025728175,
0.011935974,
-0.01202231,
-0.01414474,
-0.034649577,
-0.008201935,
-0.06273761,
-0.006036336,
0.002097249,
-0.000057529334,
-0.0069320737,
0.054679565,
0.030620556,
-0.087544866,
-0.010504233,
0.0076047764,
0.008604837,
0.0046405685,
-0.0034966143,
-0.014950545,
-0.008885429,
0.02898017,
0.018979564,
-0.031368803,
-0.0005481447,
-0.04172914,
-0.08242225,
0.038333252,
0.026764208,
-0.014569227,
-0.0520607,
-0.009072491,
-0.022562515,
0.024303628,
-0.04535526,
-0.004072189,
-0.014806651,
-0.053154293,
-0.03283652,
0.02990109,
-0.032404836,
0.020835793,
0.019871706,
0.027469287,
-0.02470653,
0.014598005,
-0.032922853,
0.0204185,
-0.022375453,
0.035110038,
-0.036030956,
0.024792867,
-0.009403447,
-0.003323942,
-0.02536844,
0.010921524,
-0.05295284,
-0.0021278264,
-0.009014933,
0.07091077,
0.022404233,
-0.00477367,
0.03413156,
0.025051875,
0.01437497,
-0.018864451,
0.050247643,
-0.020576784,
-0.018691778,
-0.0421896,
-0.038448367,
0.038908828,
-0.008835067,
0.0076407497,
0.00030420005,
-0.015670013,
0.024030231,
-0.031253688,
0.029814752,
0.07741475,
0.02024583,
0.007986095,
-0.04049166,
0.046592746,
0.015929021,
-0.025123822,
0.016979445,
0.026087908,
-0.01569879,
-0.016231198,
-0.0057737306,
0.0031566657,
-0.017929142,
-0.014835429,
0.03306675,
0.006827751,
0.033814996,
0.0052341293,
-0.07591826,
-0.0016772597,
0.038218137,
0.01020925,
0.01336052,
0.028649215,
0.021066023,
-0.015454172,
0.070220076,
-0.023540992,
0.002665629,
-0.013022371,
0.022979807,
-0.003949879,
-0.0210948,
0.048607256,
0.023094922,
-0.034419347,
-0.050851997,
-0.00082738814,
-0.010554595,
0.006140659,
-0.011518682,
0.014115961,
0.026922492,
0.007525635,
-0.021713544,
0.0014002646,
0.011770496,
0.023987062,
-0.025728175,
0.010065357,
-0.0346208,
0.0061010886,
0.078163,
-0.009619287,
-0.0431393,
0.003946282,
-0.029584523,
-0.008662394,
-0.022562515,
0.06314051,
-0.014497279,
-0.0023832377,
0.029814752,
-0.0069896313,
0.033843774,
-0.004162122,
0.0010279398,
0.028577268,
0.01089994,
-0.04762878,
0.018332044,
-0.001833744,
0.016777992,
-0.0031045042,
-0.0017132331,
0.003766415,
0.016159251,
0.0029030533,
-0.021814268,
-0.06872358,
-0.007104746,
-0.050621767,
-0.055859495,
0.053614754,
-0.01640387,
-0.03528271,
-0.014979323,
-0.007755865,
-0.03816058,
-0.032692626,
0.007014813,
-0.00079321343,
-0.00931711,
-0.043657318,
0.015957799,
-0.057327207,
-0.019468803,
-0.039254174,
-0.05525514,
0.006946463,
-0.021857437,
-0.018691778,
-0.0278578,
-0.04267884,
0.033153083,
-0.008374607,
-0.021454535,
-0.012641053,
0.009525756,
-0.0033509221,
0.020548005,
-0.008453749,
0.02198694,
0.038275696,
-0.021483313,
0.033555984,
-0.010338754,
0.012000726,
0.017324788,
0.020936517,
0.033613544,
-0.037153326,
-0.050161306,
-0.016346313,
0.038045466,
-0.06325562,
0.016734825,
-0.0024371978,
0.019828537,
0.009979021,
-0.008942987,
0.022720799,
0.039657075,
0.020533616,
0.027929747,
0.008547279,
0.017252842,
0.016936276,
-0.028016083,
0.019900484,
0.028260702,
0.0036746827,
-0.022562515,
0.029785974,
0.024404354,
-0.027325394,
0.06043531,
-0.0036656894,
-0.0030307588,
-0.031915598,
0.00511182,
0.002649441,
0.04397388,
0.03275018,
-0.02944063,
-0.013979263,
0.04947062,
-0.02630375,
0.037844013,
-0.041642807,
0.0068313484,
0.012324486,
-0.07764498,
-0.00067135354,
-0.04826191,
-0.03119613,
0.011856833,
-0.003618924,
0.000030240139,
0.01569879,
0.00061019877,
-0.009921463,
0.0063852784,
-0.06958694,
-0.005496735,
0.00820913,
0.006043531,
-0.011554656,
-0.010813603,
-0.0116481865,
0.074651994,
0.031829264,
0.004654958,
-0.048002902,
-0.0028149185,
0.005198156,
0.021828659,
-0.047053207,
0.02226034,
-0.029613301,
0.028879445,
-0.053125516,
-0.013892926,
-0.03721088,
0.0530104,
-0.0050039,
0.02941185,
-0.0018022673,
0.021612817,
-0.019886095,
-0.015353447,
-0.0008683079,
0.040721886,
0.016303144,
-0.025224548,
0.0045146616,
-0.0066730655,
0.0018688181,
0.02990109,
0.056780413,
0.000050924842,
0.040376544,
0.04875115,
-0.0037520255,
-0.02561306,
0.018490328,
0.007496856,
-0.0046729445,
0.0073745465,
-0.07033519,
-0.04892382,
0.040462878,
-0.015151995,
0.0067917774,
-0.017353568,
0.021224305,
-0.0084753325,
0.022562515,
0.030562999,
-0.05574438,
0.021296252,
0.019943653,
-0.014777872,
0.065960824,
0.03548416,
0.05082322,
0.05796034,
0.02513821,
0.01638948,
0.015871463,
-0.0057413545,
-0.02066312,
0.02964208,
-0.06446433,
-0.00023630026,
-0.03614607,
0.013669891,
-0.007263029,
-0.0076119713,
-0.030735672,
0.04066433,
-0.03954196,
0.014446917,
0.009648065,
-0.02287908,
-0.044607013,
-0.05928416,
0.05027642,
-0.037412334,
-0.0132526,
-0.009532951,
-0.0026962063,
-0.01641826,
0.0047556832,
-0.009518561,
0.04713954,
0.01841838,
0.06757243,
-0.021684764,
0.083170496,
0.0019587516,
0.00831705,
-0.023440266,
-0.014705925,
-0.03444813,
0.0036225212,
-0.011274063,
-0.013015175,
0.013691476,
-0.02518138,
-0.039225392,
0.04607473,
0.03372866,
-0.043254413,
-0.030160097,
-0.019440025,
0.029987425,
-0.049240388,
0.002762757,
0.06256493,
0.011022249,
0.040750667,
-0.0032663846,
-0.02538283,
-0.029929867,
0.0043240027,
0.012180593,
0.021411367,
-0.04601717,
0.005029081,
0.012497159,
-0.021843048,
-0.009158827,
0.024318017,
0.018893229,
0.0058960402,
-0.010216445,
0.043772433,
0.034476906,
0.05505369,
-0.008540085,
-0.03444813,
-0.016303144,
0.044981137,
0.026591536,
0.05004619,
0.051686577,
0.022044498,
-0.015569287,
0.0177133,
0.021699155,
-0.0071191355,
0.0066982466,
-0.04964329,
-0.00009150733,
-0.011813664,
-0.03165659,
-0.019842926,
0.049556956,
0.002086457,
-0.02562745,
-0.028217534,
-0.035369046,
-0.04020387,
-0.02089335,
-0.04463579,
-0.037585005,
-0.02179988,
-0.004622582,
0.00532766,
-0.053787425,
0.24565515,
0.04115357,
0.022389844,
0.0020630744,
0.041614026,
0.027814632,
-0.02739734,
0.003106303,
-0.041268684,
-0.049815964,
-0.0043419893,
-0.024447521,
-0.0048923823,
0.07770254,
-0.0033527208,
0.05551415,
-0.07799033,
-0.0091444375,
0.0020109129,
-0.021181136,
-0.029498186,
-0.019742202,
0.012813725,
0.023972673,
0.0027016022,
-0.021655986,
-0.013123096,
-0.06365853,
0.018576663,
-0.062852725,
0.011605019,
-0.031167353,
0.052492384,
-0.03888005,
-0.004910369,
0.033354536,
-0.020288996,
0.012979202,
0.03162781,
0.001651179,
0.0098782955,
-0.044088997,
-0.012957619,
-0.0028257105,
-0.008583253,
-0.0049895104,
-0.03194438,
0.035858285,
0.060147524,
-0.034678355,
0.038074244,
-0.04739855,
0.035887063,
-0.040088754,
-0.051974367,
0.011000665,
-0.02831826,
-0.008942987,
-0.026836155,
0.016936276,
0.0077990326,
0.021425756,
-0.0053528417,
-0.0074824668,
0.022490568,
0.01156185,
-0.04429045,
0.07632116,
-0.0021422158,
-0.04132624,
0.0021997732,
-0.037901573,
-0.014547642,
-0.025339661,
0.021713544,
0.02135381,
0.010079746,
0.01684994,
-0.00050947326,
-0.030937122,
0.025944015,
0.029253569,
0.007367352,
-0.025872068,
-0.017900363,
0.04831947,
-0.02673543,
-0.01929613,
0.015151995,
0.004741294,
0.021440145,
0.07706941,
-0.024577025,
-0.0116481865,
0.0012410822
] | oneccl_bindings_for_pytorch_path=$(python -c "from oneccl_bindings_for_pytorch import cwd; print(cwd)")
source $oneccl_bindings_for_pytorch_path/env/setvars.sh
for Intel® oneCCL whose version < 1.12.0 |
[
0.04475908,
-0.003906653,
-0.0074365926,
0.06468301,
-0.0027015202,
-0.010478201,
0.021095926,
-0.014998756,
-0.03142065,
0.042694137,
0.013233786,
-0.030304465,
0.03931767,
-0.0424709,
-0.00040657967,
0.014468568,
-0.0066692145,
-0.054442,
-0.060832165,
-0.009292253,
0.0023875928,
-0.025281625,
-0.05600466,
-0.00040439962,
-0.043698702,
0.03775501,
-0.021263354,
0.025449052,
0.07617973,
0.048916876,
-0.064850435,
-0.018319411,
-0.03022075,
-0.047410022,
-0.032620553,
-0.030583512,
0.0009984637,
0.0035473804,
-0.055809326,
-0.07634716,
0.032453123,
-0.028685994,
0.011622292,
-0.024249153,
-0.0047751856,
0.019896025,
0.008210947,
-0.0075761164,
0.03998738,
-0.05977179,
-0.02847671,
0.01626842,
0.020635499,
-0.0009879995,
-0.01771946,
0.026886143,
0.014175569,
0.005943693,
-0.038815387,
0.014998756,
-0.020621546,
0.011706007,
0.003486339,
-0.05366067,
0.02285392,
0.026104813,
0.0047019357,
-0.0080714235,
-0.013875594,
-0.06139026,
-0.026732668,
0.03541102,
-0.057874274,
-0.0586556,
-0.008880659,
0.009075992,
0.0049844705,
0.0034793627,
0.013736071,
0.0064250487,
0.055418663,
0.08226295,
0.01355469,
-0.03376464,
-0.05181896,
0.012633837,
0.007021511,
-0.044898603,
0.038424723,
-0.017552033,
-0.04841459,
0.029969608,
0.019463502,
-0.002814883,
-0.0104433205,
0.013966284,
-0.02441658,
0.05421876,
-0.0037636415,
0.012243171,
0.04146633,
0.05402343,
0.0034218093,
0.043698702,
-0.06624567,
0.030611416,
0.039345577,
0.03331817,
-0.03069513,
-0.00969687,
0.01008056,
0.010303797,
-0.020230882,
-0.010938628,
-0.021374973,
-0.019003076,
-0.005162363,
-0.01490109,
-0.0472705,
0.006428537,
0.06635729,
0.0055425637,
0.030974176,
-0.007694711,
-0.01626842,
-0.05463733,
-0.004234533,
0.02525372,
-0.016380038,
-0.049223825,
-0.0058216103,
-0.017482271,
-0.0055774446,
0.022309778,
0.082374565,
0.019017028,
0.013840714,
0.027025666,
0.01903098,
-0.023663154,
-0.007903996,
-0.03895491,
0.0045345076,
0.07383574,
0.016128896,
-0.003151483,
0.02339806,
-0.015766134,
-0.014873185,
0.0068331547,
0.009368991,
0.03273217,
0.013359358,
0.029830085,
0.0067215357,
-0.028504614,
-0.03063932,
0.026565239,
-0.0036241182,
0.018082222,
-0.003153227,
0.030862559,
-0.006065776,
0.047075167,
-0.02410963,
0.03075094,
-0.034713402,
-0.016226562,
0.005479778,
-0.032453123,
0.027123332,
0.01999369,
-0.028713899,
0.02496072,
0.037364345,
0.025588576,
0.030499797,
0.007471474,
-0.01968674,
0.013491904,
-0.02776514,
0.0029230134,
-0.012501289,
0.049754016,
0.0069517493,
0.014887138,
0.019351885,
0.021919113,
-0.007708663,
-0.0047751856,
-0.027095428,
-0.0053297905,
-0.015291756,
0.0317276,
-0.02267254,
-0.010045679,
-0.002652687,
-0.0040392,
-0.023732916,
-0.049977254,
0.016617227,
0.050814394,
-0.035327304,
0.008148162,
0.006683167,
-0.03956881,
-0.00698663,
0.052628197,
0.006100657,
0.034657594,
0.04821926,
0.0007320614,
-0.06133445,
0.016519561,
-0.0009923596,
0.023035299,
-0.015626611,
0.022365589,
-0.0146639,
-0.0051135295,
0.0014423223,
0.0067110714,
0.01723113,
-0.011203722,
0.011113033,
-0.028992945,
0.007778425,
0.026788477,
0.06055312,
0.0072273077,
-0.033373978,
0.025463006,
-0.00086896867,
0.061167024,
0.025867622,
0.0371132,
0.065855004,
0.021081973,
-0.012815217,
-0.014552282,
-0.030164942,
0.05014468,
-0.007311022,
0.005183291,
0.0014554026,
-0.013645381,
0.00022650739,
-0.008315589,
-0.031755507,
0.015152233,
-0.006463418,
0.030890463,
-0.03691787,
0.03460178,
-0.049084302,
-0.026844285,
-0.027555855,
0.03320655,
-0.028685994,
-0.046238028,
0.027667474,
0.00733195,
-0.009954989,
-0.011503697,
0.017496224,
0.049084302,
0.011915292,
0.0044263774,
0.0123826945,
-0.004583341,
-0.011692054,
-0.019128647,
-0.0023875928,
-0.042973183,
-0.027974425,
0.042275567,
0.07104527,
-0.038871195,
-0.0016149824,
0.009794537,
-0.0070773205,
0.041745376,
-0.011817625,
0.046879835,
-0.018598458,
-0.00034226815,
-0.024179392,
0.038396817,
-0.0137779275,
0.00022846943,
0.0037915462,
-0.03775501,
-0.004248485,
-0.02579786,
0.045010224,
-0.00066840387,
0.023370156,
0.044731177,
-0.030527702,
-0.02268649,
-0.018891457,
-0.03764339,
0.0071714986,
-0.0064564417,
-0.026146669,
0.05198639,
0.0074296165,
-0.0011406031,
0.041745376,
0.01402907,
-0.03619235,
0.010631677,
-0.029718466,
0.040768713,
-0.02763957,
0.027834902,
0.03990367,
-0.009362015,
-0.029216183,
-0.0022201648,
0.0009749192,
-0.040126905,
0.006697119,
-0.011824601,
-0.014775519,
0.04992144,
-0.0032474052,
-0.05631161,
0.046349645,
-0.039931573,
0.0067633926,
-0.016840464,
-0.039233956,
0.022546967,
-0.018863553,
0.026104813,
-0.015389422,
-0.003742713,
-0.03566216,
0.003906653,
0.040601287,
0.024695627,
0.004827507,
0.01555685,
-0.0146639,
-0.01670094,
0.04104776,
0.0035997017,
0.011803673,
-0.07651459,
0.01490109,
0.013596547,
0.034490164,
0.035383113,
0.022867871,
0.026021099,
-0.037420154,
-0.005472802,
0.0006653518,
0.0056158137,
0.0012513498,
0.008838803,
0.03214617,
0.015040614,
-0.034685496,
-0.006854083,
0.034071594,
0.0119501725,
0.046238028,
-0.045819458,
0.03733644,
-0.018486839,
-0.01584985,
0.0041368664,
0.003195084,
-0.011350222,
0.03236941,
0.014224403,
0.050953917,
-0.039261863,
-0.004213604,
0.035494734,
-0.009550371,
0.007994686,
0.014140688,
0.020119263,
-0.04272204,
-0.014942948,
-0.017245082,
0.005811146,
0.0015391166,
0.00062000676,
-0.002099826,
-0.012829169,
-0.030360274,
-0.06150188,
0.007056392,
0.0370853,
0.04408937,
-0.0033851846,
0.0502563,
-0.02123545,
0.0109177,
0.020802926,
0.0062506446,
-0.015152233,
-0.02680243,
0.048972685,
-0.008315589,
0.016059134,
-0.048079737,
-0.028406948,
-0.0107642235,
0.012752431,
-0.016979989,
0.0040601287,
-0.029132469,
-0.008106304,
0.0047716973,
-0.008901588,
0.00613205,
-0.032815885,
-0.032090362,
0.057874274,
0.043810323,
-0.0121176,
-0.027751189,
-0.032229885,
0.022742301,
0.03817358,
-0.05904627,
-0.057427797,
-0.007869115,
-0.02339806,
-0.050172586,
0.004953078,
0.047772784,
-0.03560635,
-0.04821926,
-0.05698132,
-0.0018399637,
0.04830297,
-0.0014118016,
-0.032620553,
-0.035327304,
0.044480033,
0.021095926,
-0.0072621885,
-0.025686244,
-0.0014152897,
-0.039261863,
-0.01926817,
0.023035299,
-0.016714893,
0.024514247,
0.016380038,
0.0063692397,
0.011706007,
0.025853671,
0.03984786,
-0.011712982,
0.0191426,
0.011126985,
-0.037364345,
0.0048972685,
-0.014287188,
0.012082719,
-0.0072273077,
0.04780069,
0.009641062,
-0.0059960145,
0.035271496,
0.04372661,
-0.031811316,
0.031253222,
-0.010722367,
0.0011859481,
-0.008357447,
0.031504367,
-0.02177959,
0.00655062,
0.040433858,
0.03998738,
0.0123199085,
-0.027207047,
-0.016407942,
-0.02141683,
0.035215687,
-0.03334607,
0.032285694,
-0.024974674,
-0.0020841295,
0.031448554,
-0.035494734,
-0.020021597,
-0.022993444,
0.0029648705,
-0.0008345238,
0.0382852,
0.032815885,
0.028099997,
0.011643221,
0.0031619472,
0.014342997,
-0.036136538,
-0.041131474,
-0.03853634,
-0.0059402054,
0.03577378,
-0.00090777356,
-0.051846866,
-0.028434852,
-0.008015615,
0.006616893,
-0.0013507601,
-0.0017850264,
0.032704264,
0.00025092397,
-0.02860228,
0.03848053,
-0.010868866,
-0.056395326,
-0.021277307,
0.0053960644,
-0.02399801,
0.007736568,
0.0066482862,
-0.007094761,
-0.070263945,
-0.04099195,
0.0066343336,
-0.0035508685,
-0.01723113,
0.008713231,
-0.008427208,
-0.052572384,
0.012326885,
-0.0048449473,
-0.04805183,
-0.013952332,
-0.03214617,
0.005863467,
-0.034127403,
-0.001176356,
-0.023984058,
-0.019351885,
-0.019421646,
0.048498306,
0.011852506,
-0.0065855007,
-0.025588576,
0.009927084,
0.00041791593,
0.053297907,
-0.043391753,
-0.03806196,
-0.040936142,
0.03602492,
-0.034434356,
0.015403374,
-0.03063932,
0.00655062,
-0.020551784,
0.009013207,
-0.015668469,
0.0022376052,
-0.03027656,
-0.012612908,
0.03206246,
-0.009941037,
0.028685994,
0.027388427,
0.0075761164,
0.022923682,
-0.010359607,
-0.0062297164,
0.008301637,
-0.02758376,
-0.03753177,
0.013080311,
-0.011371151,
-0.02537929,
-0.004415913,
-0.0007028487,
-0.016463751,
-0.053967617,
0.0029753346,
0.082374565,
-0.0072133555,
0.010450296,
-0.05589304,
0.007834234,
0.032871693,
-0.028881326,
0.009641062,
0.0038961887,
-0.03273217,
-0.04208023,
-0.029718466,
-0.04314061,
-0.043642893,
0.001518188,
0.011392079,
-0.025518814,
0.045456696,
-0.00038172706,
-0.054414093,
-0.023049252,
0.033262357,
-0.0070912726,
0.00984337,
0.0009984637,
0.030974176,
0.00545885,
0.049698208,
-0.049754016,
0.0017928747,
-0.04375451,
0.05966017,
-0.006927333,
-0.03666673,
0.050591156,
0.011287437,
-0.05427457,
-0.053549048,
0.025002578,
0.00051231217,
-0.011992029,
-0.049558684,
-0.0038892124,
-0.032285694,
-0.00066491583,
0.011050247,
0.012933811,
0.015180137,
0.035969112,
-0.041494235,
0.034239024,
-0.010994437,
0.04375451,
0.06752928,
-0.02800233,
-0.0072552124,
-0.014942948,
-0.03848053,
0.008510922,
0.017454367,
0.079360865,
-0.04205233,
-0.017845033,
0.0034148332,
-0.0033450716,
0.044591654,
0.006020431,
0.052153815,
0.002103314,
-0.04721469,
-0.012571051,
-0.029216183,
0.010785152,
0.012940788,
0.019407693,
-0.0030677689,
0.04869364,
-0.02512815,
-0.007317998,
-0.02447239,
-0.05594885,
0.016714893,
-0.06685957,
0.05301886,
0.013443071,
-0.012871026,
0.002188772,
0.00011565175,
-0.0137290945,
-0.029690562,
-0.049168017,
-0.0076319254,
-0.012487337,
-0.04983773,
-0.038647957,
0.0020980819,
-0.041270997,
-0.055139616,
-0.009864299,
-0.018096175,
0.006484346,
-0.0051100417,
-0.04989354,
-0.0019707668,
-0.038843293,
0.03334607,
-0.03211827,
0.0039345575,
-0.016784655,
-0.02016112,
0.011622292,
0.011657173,
-0.037169013,
0.017984556,
0.018793792,
-0.015933562,
-0.003488083,
-0.047103073,
-0.02763957,
-0.025993194,
-0.014580186,
0.04701936,
0.007366831,
-0.0054623378,
-0.024737485,
0.021221496,
-0.03404369,
0.019003076,
-0.016184704,
-0.021333115,
0.02267254,
0.023370156,
0.037727106,
0.048972685,
0.011985053,
0.010415415,
-0.013526785,
0.015347565,
0.055781424,
0.016784655,
-0.0029613825,
0.022909729,
0.0031445068,
-0.05572561,
0.043475464,
0.056255803,
-0.050116777,
0.027234951,
-0.019226313,
0.011413007,
-0.006302966,
-0.0065331794,
0.01717532,
0.071938224,
0.042638324,
0.033067025,
-0.020565737,
-0.0029142932,
-0.0037182963,
0.013568643,
-0.05240496,
-0.07316603,
0.04163376,
-0.02632805,
0.00060343836,
-0.01771946,
-0.056395326,
0.00007412176,
-0.012403623,
-0.04537298,
0.06384587,
0.05486057,
0.00016993504,
0.04333594,
-0.07757496,
-0.02674662,
0.008378375,
0.04978192,
-0.07389155,
-0.028337186,
0.0001430114,
0.042777847,
0.00891554,
0.03435064,
-0.06272969,
-0.0053751357,
0.03524359,
0.0009941036,
-0.03340188,
0.025630433,
0.0037113202,
0.019072838,
0.00969687,
-0.050591156,
-0.030862559,
-0.0118385535,
0.017440414,
0.0030102155,
-0.032341506,
0.036471397,
0.056255803,
-0.054246664,
0.013352381,
0.0017475296,
0.043642893,
-0.0024660747,
0.0017431695,
0.004363592,
0.029048754,
-0.005008887,
0.022937633,
0.03393207,
0.00420314,
0.039680433,
-0.023579441,
-0.039261863,
0.013784904,
-0.019854167,
-0.026551288,
0.014056974,
-0.03142065,
-0.014112784,
-0.027193094,
-0.00085937645,
-0.007122665,
-0.012731503,
0.023439918,
-0.013164025,
-0.01986812,
0.040489666,
-0.009250396,
-0.042973183,
0.018584507,
-0.008615565,
0.0103944875,
-0.0014431943,
0.023746869,
-0.016742798,
0.03836891,
0.051121343,
0.05966017,
0.0035421483,
-0.008364423,
0.034797117,
-0.018235698,
-0.0029875431,
-0.008685326,
-0.019644883,
0.025853671,
-0.036052827,
-0.028127901,
0.018444983,
-0.01992393,
-0.006508763,
-0.050367918,
0.0030520726,
0.021068022,
-0.06429234,
0.0077574966,
-0.06406911,
0.0028218592,
0.008510922,
0.028825518,
-0.03273217,
0.02225397,
0.044033557,
0.07082204,
0.07461707,
-0.0045484602,
0.015054566,
0.059939217,
0.07037556,
0.030974176,
-0.001554813,
-0.0035002911,
-0.02507234,
-0.008789969,
0.004796114,
0.040601287,
0.02057969,
0.008427208,
-0.028113948,
0.026286192,
0.05073068,
0.011922267,
-0.049168017,
0.010868866,
0.017817128,
-0.040908236,
-0.027332619,
0.059213694,
0.027862806,
0.0023718963,
-0.049502872,
-0.013254715,
-0.041131474,
-0.006515739,
0.012878003,
0.04062919,
0.00077261036,
-0.031922936,
-0.031615984,
-0.030081227,
0.026272241,
0.0029404538,
-0.0311137,
0.040964045,
0.037978247,
0.04721469,
0.0424709,
0.005371648,
-0.03878748,
-0.017565986,
0.04721469,
0.045149747,
-0.010840962,
0.060218263,
0.031002082,
0.02436077,
-0.010234036,
0.013575619,
0.010234036,
0.0037287606,
0.011447888,
0.013108215,
-0.046768215,
-0.058097508,
-0.039708335,
0.012836145,
0.031811316,
0.016547466,
0.006745952,
-0.012989621,
-0.0130733345,
-0.072775364,
-0.02225397,
-0.045066033,
-0.0053263027,
-0.0073807836,
-0.006428537,
0.001599286,
-0.063511014,
0.22881824,
0.048972685,
0.021556353,
0.033122834,
0.0026875678,
0.11212094,
0.020258786,
-0.030723035,
0.007317998,
-0.07595649,
0.024249153,
-0.0066727027,
0.0052077076,
0.011706007,
0.0121176,
0.008266756,
-0.015780088,
-0.011915292,
0.01903098,
-0.0061634425,
-0.02028669,
0.03278798,
0.024304962,
0.043224324,
0.0067040953,
0.033457693,
-0.0072482363,
-0.007869115,
-0.003990367,
-0.0633994,
0.0033677442,
-0.05151201,
0.026593145,
0.013484929,
-0.018472888,
0.037727106,
0.010966533,
-0.010694462,
-0.018765885,
-0.038396817,
-0.056506943,
0.007234284,
0.010638653,
-0.0054065287,
-0.004663567,
0.06356683,
0.023356203,
0.020035548,
0.054469902,
-0.045931075,
0.060832165,
-0.00715057,
-0.009815466,
-0.0007625821,
-0.06451558,
-0.040071096,
-0.005371648,
-0.017482271,
-0.04166166,
-0.0424988,
0.054135047,
0.01992393,
-0.019365836,
0.03984786,
-0.02405382,
0.0146918055,
-0.042749945,
0.0067040953,
-0.011706007,
-0.0030573048,
0.0070529035,
-0.029606847,
0.003746201,
-0.034797117,
0.004705424,
0.0037217846,
-0.025574625,
0.036638822,
0.050591156,
0.008810897,
-0.0028218592,
-0.0020945938,
-0.02083083,
-0.021486592,
0.006355287,
0.03792244,
-0.05820913,
-0.026188526,
-0.008685326,
0.0048240186,
0.011224651,
0.04481489,
-0.015221994,
0.013561666,
0.004464746
] |
The CPU resource limits/requests in the yaml are defined in cpu units
where 1 CPU unit is equivalent to 1 physical CPU core or 1 virtual core (depending on whether the node is a physical
host or a VM). The amount of CPU and memory limits/requests defined in the yaml should be less than the amount of
available CPU/memory capacity on a single machine. It is usually a good idea to not use the entire machine's capacity in
order to leave some resources for the kubelet and OS. In order to get "guaranteed"
quality of service for the worker pods,
set the same CPU and memory amounts for both the resource limits and requests. |
[
0.026694428,
0.0022950224,
-0.017568657,
0.043300845,
-0.031195233,
0.0045318445,
-0.043393966,
-0.04143844,
0.0015442416,
0.075551435,
0.0033659034,
0.027284188,
0.01022769,
-0.04081764,
0.024195705,
0.03873796,
-0.007872528,
-0.043952685,
-0.04876389,
-0.008939529,
0.0196949,
-0.0013560614,
-0.08089032,
-0.022116022,
-0.042773165,
0.036782436,
-0.02913107,
-0.025111387,
0.03973124,
0.026011547,
-0.030124351,
0.0025161826,
0.016233936,
-0.029798431,
0.0015937117,
-0.024614746,
0.027361788,
0.00026384028,
-0.059876222,
-0.04053828,
0.015341536,
-0.00975433,
0.010941612,
-0.05705158,
-0.035944358,
-0.0052030855,
0.008194569,
0.006921927,
0.034795877,
-0.032281633,
-0.012392732,
0.044790767,
0.026523707,
-0.014961296,
-0.043952685,
-0.0063903667,
-0.01010353,
-0.02816883,
-0.020253621,
-0.013983535,
-0.0012095913,
0.0017886818,
-0.011787452,
-0.04733605,
0.017242737,
-0.0022562223,
-0.012509133,
0.0015985616,
-0.011228732,
-0.06822599,
-0.03867588,
0.00021873522,
-0.034112994,
-0.035075236,
-0.0044775247,
0.04134532,
0.034144036,
-0.016171856,
-0.031008992,
0.020874422,
0.042959403,
0.032623075,
0.0025375227,
-0.028634429,
-0.027361788,
-0.016187377,
0.023636984,
-0.02882067,
-0.039576042,
0.0046288446,
-0.0153648155,
0.031024512,
-0.008939529,
-0.02003634,
-0.00081916584,
0.007794928,
-0.015124256,
0.0061420463,
-0.03041923,
-0.011934892,
0.08455305,
0.053450935,
-0.011655532,
0.021603862,
-0.043921646,
0.034671716,
-0.013580014,
0.014712975,
-0.04718085,
0.008815369,
0.045194287,
-0.01017337,
-0.012454812,
0.031878114,
0.011779692,
-0.027811868,
-0.0036569037,
-0.03653412,
-0.008256649,
0.016420176,
0.055468537,
-0.042338602,
0.033399075,
-0.035323557,
0.041252203,
-0.037217,
-0.04969509,
0.037993,
-0.03640996,
-0.05897606,
-0.0047879247,
-0.00032907285,
-0.011686572,
0.012175453,
0.021883223,
0.025266586,
0.0042369645,
0.02829299,
0.044759724,
-0.019275859,
0.015178575,
0.0010485711,
-0.012726413,
0.08089032,
0.055127095,
0.0032592034,
-0.026259867,
-0.006770607,
-0.014425855,
-0.00046584298,
-0.037123878,
-0.01944658,
0.0063011264,
0.0045434847,
0.004617205,
0.0192293,
-0.022209143,
0.062204223,
-0.0023493425,
0.02823091,
0.0012939813,
0.006114886,
-0.023155864,
0.042524844,
-0.005792846,
0.014247375,
-0.046746287,
-0.042555884,
-0.024878586,
-0.0107165715,
0.047677487,
-0.023186903,
0.020300182,
0.0034861835,
0.026135707,
0.015201855,
0.035106275,
0.023869785,
-0.005820006,
0.025716666,
-0.02899139,
-0.026849627,
0.02073474,
0.03184707,
0.034081955,
0.033616353,
-0.024599226,
-0.006596007,
-0.049198452,
0.00923441,
-0.019850101,
0.010871771,
-0.05081253,
0.019788021,
-0.02903795,
-0.006727927,
-0.014293935,
-0.00907145,
0.013254094,
-0.0401658,
0.008248889,
0.016684018,
-0.012819533,
-0.01046049,
0.028448189,
-0.010786411,
-0.008582569,
0.064128704,
-0.023621464,
-0.0026034827,
0.04944677,
0.0055134855,
-0.013960254,
-0.0193069,
0.04668421,
0.027175548,
-0.027051387,
-0.0013677015,
0.024614746,
-0.001988502,
0.034982115,
0.016389137,
0.047118768,
-0.018515378,
-0.014557775,
-0.035416678,
-0.06984007,
0.041003883,
0.031645313,
0.05146437,
-0.010344091,
0.023776665,
-0.03054339,
0.05068837,
-0.02976739,
0.0066037667,
0.054257974,
0.041935083,
0.006809407,
0.010437211,
0.017165137,
0.015349296,
0.021603862,
0.0002905153,
0.025095865,
0.0012028012,
0.017475538,
-0.0033950035,
-0.033554275,
0.03796196,
-0.062545665,
0.03901732,
-0.020750262,
-0.061459262,
-0.034516517,
0.031909153,
0.00017375142,
0.022457464,
0.0024832026,
0.0045085647,
0.033336993,
0.005668686,
-0.02815331,
-0.0026228826,
0.02976739,
0.06810183,
0.011880572,
-0.0037151037,
0.0378378,
0.010638971,
-0.02784291,
-0.0019244819,
-0.05736198,
-0.016621938,
-0.04708773,
0.0021689222,
0.03988644,
0.014573295,
0.002878963,
-0.017677298,
0.044169966,
0.02996915,
-0.027082428,
0.03786884,
0.007818208,
0.024568185,
-0.05006757,
0.012586733,
-0.05944166,
0.007639728,
-0.034547556,
0.005691966,
-0.01867058,
-0.031784993,
0.036782436,
-0.007841488,
0.00930425,
-0.011034732,
-0.023202423,
0.010576891,
-0.011865052,
-0.0053505255,
0.027951548,
-0.042897325,
-0.046404846,
0.033802595,
0.032405794,
-0.014177535,
0.043487083,
0.00065523566,
-0.017273778,
0.011632252,
0.023016185,
0.031753954,
-0.044635564,
0.046280686,
0.027315227,
-0.0054436456,
-0.028370589,
-0.054257974,
-0.016528817,
0.033647396,
0.0052729254,
-0.034920037,
-0.0008870659,
0.032126434,
-0.0024288825,
-0.055033978,
0.036503077,
-0.034112994,
-0.024164665,
0.002960443,
0.0099638505,
0.016606417,
-0.010957131,
0.0188413,
-0.057920698,
0.019788021,
-0.0051604053,
0.026104666,
0.0054669254,
-0.0072866473,
0.039855402,
0.02900691,
-0.0037073437,
-0.012524653,
0.0127108935,
-0.024661304,
0.003065203,
-0.03926564,
-0.0034396236,
-0.04209028,
0.04119012,
-0.0127108935,
0.00900937,
0.022116022,
-0.03603748,
-0.0005068255,
0.008861929,
0.025406266,
-0.02022258,
-0.014193054,
0.0065222867,
-0.00967673,
-0.03181603,
-0.0070887674,
0.016839217,
0.03142803,
0.034019876,
-0.06046598,
0.02919315,
-0.00987849,
-0.008691209,
-0.00933529,
0.03858276,
-0.0071042874,
0.05751718,
0.046529006,
0.043828525,
-0.014705215,
-0.033771556,
0.01865506,
0.033088673,
0.033554275,
0.012190972,
-0.015023376,
-0.022814423,
0.02947251,
0.010995931,
-0.032188512,
0.0034454435,
0.007954008,
-0.0076164478,
-0.011383932,
-0.02917763,
-0.0033794835,
0.03758948,
0.0045822845,
0.034175076,
0.024459545,
0.074806474,
-0.025468346,
0.010708811,
-0.011989213,
0.0043417243,
-0.016870257,
-0.031536672,
0.06505991,
0.021324502,
0.010569131,
-0.042897325,
0.023047224,
-0.02942595,
0.036999717,
-0.015954576,
-0.00946721,
-0.01933794,
-0.0071586072,
-0.032002274,
0.00930425,
-0.0024017224,
-0.07697928,
-0.00983969,
0.043487083,
0.062142145,
-0.0181429,
0.012578973,
-0.01929138,
-0.016792657,
-0.0073952875,
-0.084118485,
-0.025747707,
-0.032033313,
-0.03023299,
-0.06946759,
-0.00975433,
0.036099557,
-0.043487083,
-0.028836189,
-0.03889316,
-0.033585314,
-0.0012163812,
0.0027451029,
-0.023931865,
-0.018639538,
0.01949314,
0.0042757643,
-0.035323557,
-0.041624684,
-0.0053117257,
0.025561467,
-0.015155296,
0.022426423,
-0.02937939,
0.017568657,
0.0011698212,
-0.0146741755,
0.022100503,
0.02079682,
0.0012445112,
-0.031738434,
0.04081764,
0.052364536,
-0.03786884,
-0.005975206,
-0.003765544,
-0.011213211,
0.01898098,
0.042431723,
0.004586165,
0.018375698,
0.03755844,
0.0135644935,
-0.026834108,
0.0011184112,
-0.035727076,
0.02920867,
-0.0034027635,
-0.012097852,
0.026368506,
-0.03994852,
0.036347877,
-0.031257313,
-0.007015047,
0.017599698,
-0.052395575,
0.0022077223,
0.016823698,
-0.005618246,
-0.0061692065,
0.01986562,
-0.041810922,
0.032902434,
-0.012819533,
-0.0056531657,
-0.031381473,
-0.0376826,
-0.0017285418,
0.04693253,
0.05158853,
0.0031001233,
-0.067232706,
-0.051557492,
0.03982436,
-0.024304345,
0.013463614,
-0.0027625628,
0.017972179,
0.02975187,
-0.0075698877,
-0.035075236,
0.042493805,
0.0003768454,
-0.011104572,
0.0066192867,
-0.023093784,
-0.02092098,
0.007911328,
0.020362262,
0.04783269,
-0.018189458,
-0.064873666,
-0.00013046514,
0.024769945,
0.0021281822,
0.00033246784,
0.011585692,
-0.03653412,
-0.03693764,
-0.0033174034,
0.043021485,
-0.02764115,
-0.01013457,
-0.0061886064,
-0.07617224,
0.012229772,
0.004566765,
0.013944734,
-0.08219401,
0.006844327,
-0.025856346,
0.032623075,
-0.03693764,
0.008877449,
-0.011089051,
-0.017475538,
-0.0120590525,
0.0132696135,
0.009187849,
0.035571877,
-0.0050478852,
0.035851236,
-0.0010864012,
0.045815088,
-0.06555655,
-0.007767768,
-0.018375698,
0.033212833,
-0.011857293,
0.0024832026,
-0.03848964,
0.0030283432,
0.013898174,
0.016885778,
-0.034050915,
-0.034857955,
-0.035044197,
0.0043882844,
0.04929157,
0.0029003029,
0.027889468,
0.005862686,
0.024288826,
-0.0011853413,
0.03951396,
-0.023761144,
0.0045978045,
-0.032995556,
-0.082814805,
0.04811205,
-0.0017993519,
-0.018034259,
-0.011252011,
-0.0039653643,
0.014107695,
-0.034454435,
0.056151416,
0.07840712,
0.03746532,
0.044387247,
-0.05171269,
0.031381473,
0.021277942,
0.043176685,
-0.017103057,
-0.018561939,
-0.0038101638,
-0.01952418,
-0.00059461064,
-0.04028996,
-0.0009050109,
-0.03681348,
-0.0017285418,
-0.034516517,
0.046342768,
-0.036999717,
-0.05717574,
-0.015279456,
0.037217,
-0.05016069,
-0.016606417,
0.027687708,
0.01960178,
0.002890603,
0.0015801316,
-0.026989307,
-0.007860888,
0.005773446,
0.022147063,
0.0042718844,
-0.01808082,
0.02990707,
0.011283051,
-0.024133625,
-0.06456327,
0.015031136,
0.0015956516,
0.0033368035,
-0.013021293,
-0.00978537,
0.022240182,
-0.023838744,
-0.004838365,
0.017537618,
-0.014076655,
0.014697455,
-0.04826725,
-0.007775528,
-0.07170247,
0.008846409,
0.045163248,
-0.035230435,
-0.012237533,
-0.024475066,
-0.043300845,
-0.012284093,
-0.006017886,
0.05748614,
-0.00949825,
-0.04106596,
0.005781206,
0.0057191257,
0.0580759,
0.005676446,
0.019989781,
-0.020191541,
-0.034392357,
-0.013797294,
-0.0026151226,
0.03852068,
-0.008776569,
0.0417178,
0.0045008045,
0.007849248,
0.030776192,
-0.017289298,
-0.024599226,
-0.07958664,
-0.014006814,
-0.052768055,
-0.0203933,
0.022845464,
0.006828807,
-0.016342577,
-0.004264124,
-0.0012270513,
-0.0386138,
0.0024424626,
-0.007143087,
-0.008241128,
-0.044697646,
-0.042586923,
0.020889942,
-0.06316646,
-0.011888333,
-0.024444025,
-0.013921455,
-0.013968014,
-0.010530331,
-0.0027703228,
0.0052574053,
-0.008411849,
0.04069348,
-0.026352987,
-0.0057346458,
-0.035230435,
-0.016373618,
-0.001005891,
0.0193845,
-0.008683449,
0.035758115,
0.044635564,
-0.018049778,
0.017320339,
0.016854737,
0.00924217,
-0.036441,
0.0032378633,
0.05944166,
-0.01893442,
-0.033026595,
0.015582096,
0.013618814,
-0.03009331,
0.011244251,
-0.005959686,
-0.0186085,
0.021883223,
0.03060547,
-0.012121133,
0.048950132,
-0.0026287027,
0.01848434,
0.022954104,
0.04044516,
0.015457936,
-0.012470333,
-0.00050828053,
0.0389242,
-0.027548028,
-0.028510269,
0.06859847,
0.014278415,
-0.009249929,
0.03591332,
-0.017584179,
-0.00911025,
-0.0384586,
-0.030046752,
0.010413931,
0.06263878,
0.027392829,
-0.025437307,
0.00033537784,
0.014262895,
-0.04091076,
-0.011764172,
-0.043673325,
-0.008970569,
0.011702092,
-0.0560583,
0.026896188,
-0.026275387,
-0.028774109,
0.02852579,
0.011314091,
0.015132016,
0.018189458,
-0.023186903,
-0.011934892,
0.026740987,
-0.043797486,
-0.018360179,
-0.0012222013,
0.0025743826,
-0.027687708,
-0.03973124,
-0.032809313,
0.06766727,
-0.009443929,
0.00976209,
-0.026508188,
-0.0063205264,
0.014154254,
-0.002942983,
-0.063818306,
-0.005812246,
-0.021324502,
-0.00993281,
-0.044449326,
0.0012018313,
-0.006099366,
0.025933947,
0.004853885,
0.035944358,
-0.01936898,
0.015566576,
0.011802972,
-0.0778484,
-0.010351851,
0.031412512,
0.032312673,
0.0002820278,
0.0044581247,
-0.010732091,
0.013362734,
0.020113941,
0.04969509,
0.0134325735,
0.052116215,
0.02866547,
-0.020750262,
-0.044945966,
-0.0002368015,
0.010724331,
-0.0204709,
0.03926564,
-0.050719414,
-0.016947858,
-0.0027548028,
0.022472983,
0.0037771838,
0.0013492714,
0.041034922,
0.019213779,
0.014759535,
0.026772028,
-0.038427558,
0.011872812,
0.026725467,
-0.026865147,
0.03603748,
0.025701147,
0.032436833,
0.012229772,
0.026927227,
0.02815331,
0.020812342,
-0.004815085,
-0.011981452,
0.025452826,
-0.028836189,
0.03880004,
-0.051557492,
0.017785938,
-0.011500332,
-0.04963301,
-0.052147254,
0.0605591,
-0.0028052428,
-0.018887859,
-0.0015461816,
-0.021060662,
-0.01834466,
-0.055002935,
0.052240375,
-0.055592697,
0.014542255,
0.018561939,
-0.00033901536,
-0.023574904,
0.042493805,
-0.00034507786,
0.02823091,
0.065432385,
0.03731012,
0.027610108,
0.080207445,
0.00061498064,
0.0026248228,
-0.014123214,
-0.014130974,
-0.03951396,
0.021572823,
-0.006902527,
0.045846127,
0.0065921266,
-0.027066907,
-0.046466928,
0.022255702,
0.023124823,
-0.030326111,
-0.011717612,
-0.0013386013,
0.0018604619,
-0.012020253,
-0.0073021674,
0.09237514,
0.03131939,
0.034640677,
-0.01941554,
-0.0182205,
-0.03960708,
-0.016870257,
0.017863538,
0.004912085,
-0.012641053,
-0.01963282,
0.000996191,
-0.043176685,
0.023124823,
0.023621464,
-0.011508092,
-0.025561467,
0.034299236,
0.016668497,
0.062452544,
0.03827236,
-0.021153782,
-0.057299897,
0.014301695,
0.034702756,
-0.012819533,
0.06431495,
0.06574279,
-0.004884925,
-0.006696887,
-0.00900937,
0.035633955,
0.008823129,
0.015163056,
-0.016808176,
-0.037154917,
-0.011849532,
-0.012524653,
-0.032405794,
0.033926755,
-0.0038004639,
0.001890532,
-0.02002082,
-0.06530823,
-0.07741384,
-0.008466168,
-0.022193624,
-0.0062157665,
-0.007717328,
-0.021060662,
-0.013688654,
-0.037279077,
0.2868099,
0.04056932,
0.016109776,
-0.005955806,
0.008543769,
0.06468742,
0.0025511025,
-0.024490586,
-0.000947206,
-0.055189177,
-0.007624208,
-0.015814897,
0.04873285,
0.04913637,
0.0047724047,
0.021634903,
-0.053854454,
-0.025049306,
0.031505633,
-0.044511404,
-0.02757907,
0.0031835432,
0.0051410054,
0.041097004,
0.01834466,
-0.0051254854,
-0.0063205264,
-0.05847942,
0.04119012,
-0.016001137,
0.023947384,
-0.03048131,
0.037651557,
-0.052550774,
0.024071544,
0.045225326,
-0.0052690455,
-0.0066697267,
-0.0057346458,
-0.010088011,
0.023714585,
-0.0193845,
-0.013192014,
-0.009086969,
-0.017227218,
0.034857955,
-0.0146431355,
0.020688182,
0.040972844,
-0.06692231,
0.042773165,
-0.0577655,
0.036596198,
0.012703133,
-0.050129652,
-0.0021999623,
0.0031311633,
0.0034920035,
-0.02939491,
0.046280686,
0.049198452,
-0.00929649,
0.004718085,
0.03009331,
0.005726886,
0.027687708,
-0.020424342,
0.026368506,
-0.008054888,
-0.008233368,
0.03048131,
-0.016202897,
0.014596575,
-0.034454435,
0.016637458,
0.0053621656,
0.03935876,
0.026477147,
0.010444971,
-0.03988644,
0.021696983,
0.005261285,
-0.022286743,
-0.02916211,
-0.023357624,
0.023807704,
0.014813855,
0.000996191,
0.0049819252,
0.023311064,
-0.012796253,
0.06946759,
-0.021852182,
-0.01986562,
0.023481784
] |
torch_ccl_path=$(python -c "import torch; import torch_ccl; import os; print(os.path.abspath(os.path.dirname(torch_ccl.__file__)))")
source $torch_ccl_path/env/setvars.sh
Intel® Extension for PyTorch installation
Intel Extension for PyTorch (IPEX) provides performance optimizations for CPU training with both Float32 and BFloat16 (refer to the single CPU section to learn more).
The following "Usage in Trainer" takes mpirun in Intel® MPI library as an example.
Usage in Trainer
To enable multi CPU distributed training in the Trainer with the ccl backend, users should add --ddp_backend ccl in the command arguments.
Let's see an example with the question-answering example
The following command enables training with 2 processes on one Xeon node, with one process running per one socket. The variables OMP_NUM_THREADS/CCL_WORKER_COUNT can be tuned for optimal performance.
shell script
export CCL_WORKER_COUNT=1
export MASTER_ADDR=127.0.0.1
mpirun -n 2 -genv OMP_NUM_THREADS=23 \
python3 run_qa.py \
--model_name_or_path google-bert/bert-large-uncased \
--dataset_name squad \
--do_train \
--do_eval \
--per_device_train_batch_size 12 \
--learning_rate 3e-5 \
--num_train_epochs 2 \
--max_seq_length 384 \
--doc_stride 128 \
--output_dir /tmp/debug_squad/ \
--no_cuda \
--ddp_backend ccl \
--use_ipex
The following command enables training with a total of four processes on two Xeons (node0 and node1, taking node0 as the main process), ppn (processes per node) is set to 2, with one process running per one socket. The variables OMP_NUM_THREADS/CCL_WORKER_COUNT can be tuned for optimal performance.
In node0, you need to create a configuration file which contains the IP addresses of each node (for example hostfile) and pass that configuration file path as an argument.
shell script
cat hostfile
xxx.xxx.xxx.xxx #node0 ip
xxx.xxx.xxx.xxx #node1 ip
Now, run the following command in node0 and 4DDP will be enabled in node0 and node1 with BF16 auto mixed precision:
shell script
export CCL_WORKER_COUNT=1
export MASTER_ADDR=xxx.xxx.xxx.xxx #node0 ip
mpirun -f hostfile -n 4 -ppn 2 \
-genv OMP_NUM_THREADS=23 \
python3 run_qa.py \
--model_name_or_path google-bert/bert-large-uncased \
--dataset_name squad \
--do_train \
--do_eval \
--per_device_train_batch_size 12 \
--learning_rate 3e-5 \
--num_train_epochs 2 \
--max_seq_length 384 \
--doc_stride 128 \
--output_dir /tmp/debug_squad/ \
--no_cuda \
--ddp_backend ccl \
--use_ipex \
--bf16
Usage with Kubernetes
The same distributed training job from the previous section can be deployed to a Kubernetes cluster using the
Kubeflow PyTorchJob training operator.
Setup
This example assumes that you have:
* Access to a Kubernetes cluster with Kubeflow installed
* kubectl installed and configured to access the Kubernetes cluster
* A Persistent Volume Claim (PVC) that can be used
to store datasets and model files. There are multiple options for setting up the PVC including using an NFS
storage class or a cloud storage bucket.
* A Docker container that includes your model training script and all the dependencies needed to run the script. For
distributed CPU training jobs, this typically includes PyTorch, Transformers, Intel Extension for PyTorch, Intel
oneCCL Bindings for PyTorch, and OpenSSH to communicate between the containers.
The snippet below is an example of a Dockerfile that uses a base image that supports distributed CPU training and then
extracts a Transformers release to the /workspace directory, so that the example scripts are included in the image:
```dockerfile
FROM intel/ai-workflows:torch-2.0.1-huggingface-multinode-py3.9
WORKDIR /workspace
Download and extract the transformers code
ARG HF_TRANSFORMERS_VER="4.35.2"
RUN mkdir transformers && \
curl -sSL --retry 5 https://github.com/huggingface/transformers/archive/refs/tags/v${HF_TRANSFORMERS_VER}.tar.gz | tar -C transformers --strip-components=1 -xzf - |
[
0.052616525,
0.013467989,
-0.0641107,
0.03130209,
-0.027228912,
-0.02215139,
0.002282444,
-0.010713015,
0.041261844,
0.021272587,
0.003965071,
-0.0026364059,
0.048403855,
-0.05599224,
0.0004413626,
0.016362457,
-0.0062248474,
-0.02671279,
-0.0147164455,
-0.014353765,
-0.010168994,
0.018496688,
-0.056689702,
-0.027033623,
-0.0658404,
0.027089419,
-0.025178375,
0.00009524714,
0.060483895,
0.01810611,
-0.07515849,
0.0051786546,
0.00029119034,
-0.037411854,
-0.017269157,
-0.04522343,
0.027731085,
0.007539563,
-0.050914716,
-0.0034559236,
0.001691345,
0.0155534,
0.01902676,
-0.044191185,
-0.04974298,
0.0041533853,
-0.009541279,
-0.03752345,
0.030967308,
-0.0059005274,
-0.014067806,
0.05164008,
0.037774537,
0.0065421923,
0.01957078,
0.010901329,
-0.04248938,
-0.028958617,
-0.006625888,
-0.014604852,
-0.016571695,
0.03035354,
-0.005227477,
-0.017269157,
0.0062945937,
0.017450497,
0.0103921825,
-0.021691065,
-0.029377095,
-0.0004934543,
-0.029544486,
-0.009638923,
-0.04795748,
-0.039085764,
-0.010489827,
0.02248617,
0.007239654,
0.00065212685,
-0.024285622,
0.026684891,
0.014911735,
0.0071175983,
-0.00046337623,
-0.016822781,
-0.029432891,
-0.009743542,
0.039811123,
-0.030437237,
-0.008118456,
-0.023783451,
-0.017101765,
0.038499895,
0.0008038248,
-0.015232568,
0.00041128456,
0.023337075,
-0.016222963,
0.018217705,
0.009659847,
0.032306433,
0.04829226,
0.061376646,
0.0065282434,
0.0029833931,
-0.042907856,
0.014953583,
0.04042489,
-0.01958473,
-0.037188668,
-0.018538537,
0.011054771,
0.0028962104,
0.008027786,
0.0054018423,
-0.010831583,
0.018426944,
-0.0044986294,
0.0046834564,
0.015455755,
-0.03403614,
0.041987207,
-0.038918372,
-0.003619827,
-0.048961826,
-0.011270984,
-0.03986692,
-0.0035134642,
0.026099024,
-0.0105456235,
-0.039029967,
-0.015567349,
-0.010650243,
-0.023351023,
0.032445926,
0.046618354,
-0.022193236,
0.020017156,
-0.0051856292,
0.044191185,
-0.02234668,
0.00489967,
0.004868284,
-0.004892695,
0.09435264,
-0.006807228,
0.002247571,
-0.02031009,
-0.032306433,
-0.05655021,
0.028568039,
-0.015943978,
-0.0056285174,
0.003989482,
0.0038674262,
-0.034454618,
0.00942271,
-0.03225064,
0.03735606,
0.027103368,
0.022988344,
0.0006251002,
0.01336337,
-0.024662253,
0.0103712585,
0.029711876,
0.031274192,
-0.00043765732,
-0.049268708,
-0.008997259,
-0.023462618,
0.034705702,
0.016069522,
0.018231655,
-0.021314435,
0.071420096,
0.047511104,
0.0640549,
-0.015748689,
0.019501034,
0.001081066,
-0.027661338,
-0.010134121,
0.030409338,
0.03529157,
0.03141368,
0.05158428,
-0.033701357,
0.014437461,
0.02962818,
0.024355369,
-0.017311003,
0.058084626,
-0.026196668,
0.05401145,
-0.047455307,
-0.010782761,
-0.021928202,
-0.021481827,
-0.002802053,
-0.017311003,
-0.010915278,
0.034259327,
-0.016139269,
-0.0032240176,
-0.013698151,
-0.012093989,
-0.0012554314,
0.008146355,
0.035821643,
0.005635492,
0.056996584,
0.0024219365,
-0.041401338,
-0.009450609,
0.04042489,
-0.0022963933,
-0.028219309,
0.03093941,
0.008083583,
-0.030716222,
0.038667288,
-0.0047811014,
0.025889786,
0.010134121,
0.041206047,
-0.013509837,
-0.037635043,
0.041652422,
0.036686495,
-0.021453928,
-0.0008090558,
0.04315894,
-0.00021599523,
0.06500345,
-0.0062945937,
0.0082858475,
0.033227082,
0.046590455,
0.0007484638,
-0.006019096,
0.048152767,
-0.017283106,
-0.008376517,
0.007720903,
0.00048691558,
-0.00085831404,
0.002530043,
-0.009827238,
-0.00457535,
0.02325338,
-0.0641107,
0.03328288,
0.01025269,
-0.005307685,
-0.041401338,
-0.0530908,
-0.026866231,
0.024062434,
-0.02653145,
0.011912649,
0.0136284055,
0.025164425,
-0.0045927865,
0.028135613,
0.0750469,
0.03716077,
-0.009080954,
0.015818436,
0.002812515,
-0.013147157,
-0.044498067,
-0.028135613,
-0.024843592,
-0.054764707,
-0.03498469,
0.023895044,
0.016697237,
-0.030325642,
0.03492889,
-0.014012009,
0.0036791114,
0.032864403,
-0.011508121,
0.033199187,
0.026057176,
0.010601421,
-0.044135388,
0.0012563032,
-0.058252018,
0.038555693,
-0.03808142,
0.041875612,
0.023853196,
-0.004721817,
0.008362568,
0.0068839486,
-0.0029258525,
-0.006409675,
-0.0247041,
0.0042684665,
-0.009234395,
-0.026517501,
-0.025457358,
-0.020463532,
-0.00815333,
0.04862704,
-0.026378008,
-0.020449582,
0.039755326,
0.028763328,
-0.06835126,
0.035235774,
0.0040452788,
-0.02706152,
-0.02050538,
0.020533279,
0.014521156,
-0.026573298,
-0.03919736,
-0.034622006,
-0.039225258,
0.011598791,
-0.006758406,
-0.055043694,
-0.027201014,
0.04592089,
-0.04463756,
-0.05560166,
0.016780933,
-0.026991775,
-0.002322548,
-0.018064262,
-0.027577642,
0.08196572,
-0.0043451875,
0.03930895,
-0.06093027,
0.001625958,
0.011005948,
0.027605541,
0.033757154,
-0.037188668,
0.0078743445,
0.0044114464,
-0.010768811,
0.0056424667,
0.03166477,
-0.043856405,
0.026754638,
-0.052030656,
-0.030799916,
0.0040173805,
-0.009750517,
0.02743815,
0.022472221,
0.067067936,
-0.03950424,
0.013328496,
-0.0028107713,
0.019096507,
0.0008574422,
0.0016651902,
-0.004596274,
-0.0046171974,
-0.02688018,
-0.0365749,
0.013091359,
0.04042489,
0.026461704,
-0.04885023,
0.01958473,
-0.039113663,
0.0062422836,
-0.02854014,
0.005604106,
-0.0043417,
0.007239654,
-0.004271954,
0.042182494,
-0.0062143854,
-0.05470891,
0.0052030655,
0.045641907,
0.017868973,
0.00189884,
-0.010775786,
-0.010789735,
0.06154404,
-0.034622006,
-0.023155734,
0.012777502,
-0.04430278,
-0.019640526,
-0.0084602125,
-0.028623836,
-0.021300485,
0.04427488,
0.053035002,
0.056940787,
0.010364284,
0.053035002,
0.0109571265,
-0.012889096,
0.0033094566,
0.037077073,
-0.038360402,
-0.052728117,
0.022918597,
0.035989035,
0.008425339,
-0.029321298,
0.002010434,
-0.0064898827,
0.02837275,
-0.017004121,
-0.005286761,
-0.028930718,
0.0076372074,
-0.028568039,
0.014507207,
0.006231822,
-0.06695634,
-0.015232568,
0.039587937,
0.06857445,
-0.015399958,
-0.007393096,
-0.019835817,
-0.030632526,
0.0116964355,
-0.05069153,
-0.049882475,
0.021858456,
0.022611715,
-0.071643285,
0.042349886,
0.017478395,
-0.025736343,
-0.05470891,
-0.031525277,
-0.013795796,
-0.0067444565,
-0.031887956,
0.017520243,
-0.01025269,
0.031023104,
-0.021216791,
0.010231766,
-0.0329481,
-0.0036163398,
0.021439979,
-0.018761724,
0.06316215,
-0.014339817,
0.032418028,
-0.028261155,
-0.014507207,
0.020616973,
0.030576728,
0.01644615,
-0.0366028,
0.0024951699,
0.05066363,
-0.052588627,
-0.025331816,
0.024815693,
0.010113197,
0.00806266,
0.010671167,
0.012135836,
-0.0064027,
0.02506678,
-0.008132406,
-0.00059066305,
0.028010068,
-0.041652422,
0.059702735,
-0.0073303245,
0.0072047813,
0.023490516,
-0.04645096,
0.054206736,
-0.007672081,
-0.018454842,
0.015692892,
-0.06489185,
0.003185657,
0.042684667,
0.004631147,
0.075716466,
0.027089419,
-0.02653145,
-0.031915855,
0.022235084,
-0.013105309,
-0.0024463476,
-0.013398243,
-0.004202208,
0.016236912,
0.025485257,
-0.014507207,
-0.04993827,
-0.059981722,
0.029851368,
-0.044246983,
-0.017896872,
-0.016822781,
0.010908304,
-0.016892526,
-0.01775738,
-0.023867145,
-0.00026983058,
-0.021621319,
-0.006085355,
0.023685805,
-0.05214225,
0.0084392885,
0.006538705,
-0.031190496,
0.057359267,
-0.009499431,
-0.05819622,
-0.025861887,
0.011284933,
0.013698151,
0.043856405,
0.015985826,
-0.024606455,
-0.03169267,
-0.024355369,
0.031915855,
-0.03163687,
0.033422373,
-0.027382353,
-0.06896503,
0.0015928285,
0.04098286,
-0.0008862125,
-0.05158428,
-0.014493258,
-0.04466546,
0.03199955,
-0.043967996,
-0.012972791,
0.035542656,
-0.03275281,
-0.023560263,
0.031720567,
0.014437461,
-0.0028351825,
0.032278538,
-0.008083583,
-0.00023234199,
0.048375957,
-0.028344851,
-0.024676202,
0.030493034,
0.0020522815,
0.009129776,
0.04589299,
-0.042043,
0.029795572,
-0.0011499403,
0.049966168,
-0.025833989,
-0.013760923,
-0.012275329,
0.027340505,
0.027745035,
0.0053948676,
0.031385783,
0.0041289744,
-0.005084497,
0.02582004,
0.036128525,
0.0049903397,
0.0050810096,
0.0071385223,
-0.08140775,
0.02909811,
-0.021133095,
-0.031915855,
0.013035563,
-0.005823807,
0.046729945,
-0.061767224,
0.034817297,
0.045614008,
0.023281278,
0.028428547,
-0.0292934,
0.044386473,
0.036351714,
-0.0077627506,
-0.0012763552,
0.015888182,
-0.020589074,
-0.010273614,
-0.0047601773,
-0.054262534,
0.023155734,
0.0050775227,
-0.01353076,
-0.040313296,
0.025778191,
0.022932546,
-0.039950617,
-0.02086806,
0.023016242,
0.011787106,
-0.051807467,
0.048989724,
0.010733939,
-0.013419166,
0.0366028,
-0.023755552,
-0.006646812,
0.021174943,
0.058642596,
0.027354455,
-0.039476342,
0.028386699,
0.0068560503,
-0.0037593197,
-0.044944443,
0.032836504,
0.0060260706,
0.012714731,
0.011215187,
-0.012268354,
-0.024425115,
-0.027870577,
0.03409194,
-0.013419166,
0.0021429516,
-0.000848288,
-0.02084016,
-0.034677804,
-0.021258637,
-0.014590902,
0.04045279,
-0.060818676,
-0.025582902,
-0.0494361,
-0.028791226,
-0.026656993,
-0.022751207,
0.038165115,
-0.021453928,
0.019054659,
0.054959998,
0.022862801,
0.054625213,
-0.013956212,
0.015957927,
-0.0059249387,
-0.01978002,
-0.044023793,
-0.002298137,
-0.0011839415,
-0.05138899,
0.0009119314,
-0.034510415,
0.0058377557,
-0.0010139352,
0.00080774806,
0.008076608,
-0.051695876,
0.01032941,
-0.028679634,
0.002974675,
0.02690808,
-0.003741883,
-0.017827125,
-0.006465472,
-0.016250862,
-0.028679634,
-0.041094456,
0.005729649,
-0.0028107713,
-0.004550939,
-0.024690151,
-0.014381664,
-0.026852282,
-0.04226619,
-0.059925925,
-0.023211531,
-0.013467989,
0.017269157,
-0.033059694,
-0.013558659,
0.012498517,
0.05376036,
0.0052902484,
0.051667977,
-0.027493948,
-0.033589765,
-0.0052135275,
0.023881095,
-0.059423752,
0.010726964,
0.036993377,
-0.018175857,
0.023922943,
0.009269268,
0.01754814,
0.006570091,
0.007155959,
0.039783224,
-0.040648077,
-0.014535106,
0.0026625607,
0.03183216,
-0.026517501,
0.0013199466,
-0.006360852,
-0.02360211,
0.000061899744,
0.007944091,
0.0116964355,
0.018454842,
0.0011237855,
0.033561867,
0.021119146,
0.052030656,
0.02360211,
0.025722394,
0.0059319134,
-0.01828745,
-0.048180666,
-0.020993603,
0.060316503,
0.026057176,
0.004812487,
0.038137216,
-0.03169267,
0.008216101,
0.025262069,
0.0036477256,
-0.040173806,
0.056606006,
-0.015776588,
0.04248938,
-0.006287619,
-0.015497603,
-0.019305745,
0.03897417,
-0.03584954,
-0.043047346,
-0.0014751318,
-0.038220912,
-0.0004882233,
0.008355593,
-0.015413907,
-0.008146355,
0.008934487,
-0.01627876,
0.036742292,
-0.04851545,
0.035765845,
0.030074557,
-0.023881095,
-0.03420353,
-0.007337299,
0.062380992,
-0.039113663,
-0.001661703,
-0.010231766,
0.075493276,
-0.016181115,
0.013795796,
-0.017129663,
-0.0146467,
-0.020421684,
0.040285397,
-0.06533823,
0.028247206,
-0.030409338,
-0.012889096,
-0.017352851,
0.02213744,
-0.047343712,
0.046925236,
0.000898854,
0.018705927,
-0.048989724,
0.032724913,
-0.048766535,
-0.0347336,
0.016348507,
0.025917683,
-0.0048264363,
0.01034336,
-0.01721336,
-0.023922943,
0.018385096,
0.028930718,
0.029321298,
0.008704324,
0.0041568726,
0.0036233144,
-0.0059702736,
-0.03950424,
-0.0094366595,
0.0067549185,
0.038220912,
0.014521156,
-0.046199877,
-0.016181115,
-0.036519103,
0.032836504,
0.035933238,
-0.008662476,
-0.00036594953,
-0.03679809,
-0.0118987,
0.00813938,
-0.02142603,
-0.022904648,
0.006116741,
0.012073065,
0.044944443,
0.025373664,
0.017283106,
0.052421235,
0.0021045913,
0.04441437,
-0.009101878,
0.0056843143,
-0.0042196442,
0.014130577,
-0.030520933,
0.02669884,
-0.033980343,
0.016487999,
-0.002085411,
-0.030325642,
-0.026433805,
0.053007104,
0.02266751,
-0.022235084,
-0.0057157003,
-0.037411854,
0.01994741,
-0.03205535,
0.015344162,
-0.062994756,
0.018957013,
0.037635043,
-0.03054883,
0.0035012586,
0.03677019,
-0.020351937,
0.033003896,
-0.0036093653,
0.061711427,
-0.018984912,
0.014221248,
0.058084626,
-0.0034175632,
0.016585644,
-0.029209703,
-0.034817297,
-0.0068142028,
0.00978539,
0.038193014,
0.032641217,
-0.022388527,
-0.052979205,
0.03093941,
0.042126697,
-0.027493948,
-0.027298657,
0.054402027,
-0.0028037967,
-0.05964694,
-0.0024602967,
0.09212077,
0.043047346,
0.03590534,
-0.0053565074,
-0.0054262537,
-0.029516587,
-0.026210617,
-0.0022004922,
-0.004735766,
0.041596625,
-0.0512495,
-0.0046869437,
-0.026489602,
0.040703874,
0.042712566,
-0.03643541,
0.008243999,
-0.012233482,
0.015065176,
0.078227326,
0.015441806,
-0.045446616,
-0.041485034,
0.031804264,
0.058140423,
0.031023104,
0.05836361,
0.05507159,
-0.01719941,
-0.020742517,
-0.027772931,
-0.0105665475,
0.024494862,
-0.039699532,
-0.010713015,
0.001085425,
-0.04321474,
-0.05412304,
-0.008788019,
0.041652422,
-0.041819815,
-0.017659735,
-0.018217705,
-0.040675975,
-0.049882475,
-0.027675288,
-0.029990861,
0.012665908,
0.0011673769,
-0.031804264,
0.035207875,
-0.054095145,
0.22843271,
-0.028037967,
0.020965705,
-0.018970963,
0.012875146,
0.048794433,
0.026308263,
-0.022067694,
-0.0082649235,
-0.101048276,
0.027591592,
0.0064863954,
-0.0039301976,
0.017701583,
-0.019375492,
0.013182029,
-0.03403614,
-0.0027148703,
-0.002394038,
-0.025833989,
-0.0155534,
0.013809745,
0.015790537,
0.06511504,
-0.019277846,
-0.031357884,
-0.006702609,
-0.0823563,
0.021705015,
0.009262294,
0.017771328,
-0.023044141,
0.0059772483,
-0.015107024,
0.01828745,
0.03713287,
0.020923857,
-0.012128863,
-0.019710273,
-0.008864741,
0.009666822,
0.0130425375,
0.04555821,
-0.0038255784,
-0.021300485,
0.03696548,
0.036686495,
0.036295917,
0.026112974,
-0.02431352,
0.03512418,
-0.064557076,
0.015567349,
-0.03677019,
-0.06623098,
0.04742741,
-0.02746605,
-0.050300952,
-0.015985826,
0.034817297,
0.004418421,
0.04371691,
-0.03403614,
0.046032485,
0.009645898,
0.017994517,
-0.016990172,
-0.013537735,
-0.024285622,
-0.015246517,
0.015804486,
0.017855024,
-0.012770527,
-0.03531947,
-0.0018011953,
0.022848852,
0.00352567,
0.022583816,
0.0048647965,
-0.0512495,
-0.011689461,
0.05579695,
0.0035849542,
-0.002162132,
-0.014744344,
0.07476792,
-0.025596851,
-0.045641907,
0.013147157,
-0.012854222,
0.0347894,
0.057917234,
-0.021314435,
0.025666596,
0.05415094
] | Deploy
After the PyTorchJob spec has been updated with values appropriate for your cluster and training job, it can be deployed
to the cluster using: |
[
0.07049036,
0.0015687904,
-0.023849338,
0.015216801,
0.008252676,
-0.007947297,
-0.013094047,
0.010844671,
0.009719984,
0.032265875,
0.020393346,
-0.024594165,
0.05758997,
-0.019961346,
-0.014412389,
-0.004841371,
0.007813228,
-0.0060219206,
-0.046715505,
-0.022583134,
-0.0018052728,
-0.0049642674,
-0.0681665,
-0.010837223,
-0.06119493,
0.024668647,
-0.012125772,
0.022463962,
0.0574708,
-0.004007166,
-0.07495932,
-0.0070013674,
-0.008163297,
-0.06494886,
-0.021421205,
-0.0014403079,
0.026277473,
-0.015939284,
-0.071562916,
-0.06280375,
0.016311696,
0.040339794,
-0.008699572,
-0.012803565,
-0.026486024,
0.022180928,
0.0040890966,
0.0022139961,
0.00271303,
-0.0039810967,
0.00041081826,
0.05338915,
0.03113374,
-0.00078765384,
-0.010919154,
-0.021927686,
-0.024564372,
-0.018233348,
-0.003081719,
-0.00044154236,
-0.013920804,
0.013481356,
-0.0028247538,
-0.010010466,
0.003936407,
0.023178995,
0.0150305955,
0.0071168155,
-0.040339794,
-0.021793619,
-0.03619856,
0.021629756,
-0.032146703,
-0.050499223,
-0.024623958,
0.018307831,
0.022836374,
0.01003281,
0.015388112,
0.023000237,
0.033308633,
0.057530385,
0.00909433,
-0.037539247,
-0.051571775,
-0.018367417,
0.011678876,
-0.008438882,
0.013756942,
-0.021734033,
-0.038403247,
0.054133978,
-0.036734834,
0.030046294,
0.009809363,
0.009667845,
-0.025726302,
0.041740067,
-0.0048786122,
0.020259276,
0.035185594,
0.108208366,
-0.007694056,
0.03435139,
-0.030806016,
0.011678876,
0.04176986,
0.011701222,
-0.01976769,
0.00707585,
0.013094047,
-0.017443832,
0.03307029,
-0.0150901815,
0.00058655074,
0.003370339,
-0.0022307548,
-0.013451563,
-0.0218681,
-0.010829775,
0.039684348,
-0.028839676,
0.018203555,
-0.042395514,
-0.0064017824,
-0.048741434,
-0.016371282,
0.0231641,
0.0086772265,
-0.018114176,
0.024609061,
-0.026873333,
-0.025398577,
0.0321765,
0.029212087,
-0.014747561,
0.03315967,
0.011306464,
0.060986377,
-0.021927686,
0.011217085,
0.012379013,
-0.023774857,
0.07132457,
-0.003483925,
-0.009578466,
-0.0058468864,
-0.01595418,
-0.076329805,
0.0343216,
-0.010412672,
0.00030444775,
0.0021599964,
0.005910197,
-0.024609061,
0.005522887,
-0.048741434,
0.049545847,
0.0058357143,
0.042306136,
-0.0044317166,
0.01835252,
-0.020184793,
0.033249047,
0.007046057,
0.028482158,
-0.02161486,
-0.06375714,
-0.028020367,
-0.030076087,
0.035274975,
0.009638052,
0.016907558,
-0.005884128,
0.054312736,
0.009541226,
0.059198797,
-0.016952246,
-0.0006140162,
0.0074259182,
-0.0064017824,
-0.032444634,
0.015343422,
0.05657701,
-0.020616792,
0.027350023,
-0.025726302,
0.017473625,
0.015760524,
-0.024579268,
-0.018412106,
0.031967945,
-0.049158536,
0.029897328,
-0.034559943,
-0.013138737,
-0.014412389,
-0.022270307,
-0.018680245,
-0.05133343,
-0.0043944754,
0.029435536,
-0.017071418,
-0.029301468,
0.0053739217,
0.002238203,
-0.013198323,
0.043646824,
0.0058059213,
0.022761893,
0.06858361,
-0.0025491682,
-0.026903126,
0.008923019,
0.03637732,
-0.0065507474,
-0.03622835,
0.016430868,
-0.018412106,
-0.034023665,
0.009719984,
0.003370339,
0.010338189,
0.019618725,
0.032861736,
-0.02165955,
-0.021316929,
0.04317013,
0.0686432,
0.019663414,
0.0064315754,
0.028556641,
0.016713902,
0.07186084,
0.023938717,
0.019588932,
0.035364352,
0.033427805,
0.006573092,
-0.006290058,
-0.0151497675,
0.025100647,
0.025234716,
0.00939226,
0.025070854,
-0.033725735,
-0.023864236,
0.0184419,
-0.031282704,
0.038105313,
-0.075614765,
0.039058693,
-0.003057512,
0.0137420455,
-0.04138255,
-0.038433038,
-0.0424551,
0.017786453,
-0.025666716,
-0.0030202707,
0.010591431,
0.008215434,
-0.035781458,
0.022195823,
0.050886534,
0.053180598,
-0.010926602,
0.008111158,
0.0044875788,
-0.022746995,
-0.04343827,
0.00045876647,
-0.043080755,
-0.046387784,
-0.024087682,
0.016579835,
0.030120777,
0.0020277896,
0.013518598,
-0.039952483,
-0.02264272,
0.041025035,
-0.015015699,
0.026277473,
0.000551637,
0.0018657899,
-0.04400434,
-0.011939566,
-0.06405506,
-0.007895159,
-0.041025035,
0.007042333,
-0.007366332,
-0.00345227,
0.029942019,
-0.0040704757,
0.022925755,
-0.012647151,
-0.020393346,
0.012073634,
-0.0062565412,
-0.010390327,
0.020244379,
-0.016028663,
-0.026739266,
0.04254448,
-0.023596099,
-0.024430303,
0.012148118,
0.03670504,
-0.035990007,
0.021331826,
0.0027558573,
0.029599398,
-0.040756896,
0.045255646,
0.01933569,
-0.014345355,
-0.034500357,
-0.015134871,
-0.004442889,
0.0011386533,
-0.013496253,
-0.04722199,
-0.03134229,
0.042961583,
-0.042931788,
-0.06530637,
0.0073141945,
-0.027469195,
-0.01115005,
-0.035751663,
-0.00081186066,
0.028765192,
-0.029256778,
0.029658984,
-0.064353,
0.003936407,
-0.013004667,
0.031550843,
0.004126338,
-0.02294065,
0.013347288,
0.011068119,
-0.028571537,
0.007347712,
0.09730411,
-0.013101495,
0.016579835,
-0.041144207,
0.017131004,
-0.014680527,
0.017860936,
0.0021134447,
0.046804886,
0.023283271,
-0.0458813,
0.023178995,
-0.0077759866,
0.029882433,
0.0020519965,
0.049337294,
0.0099955695,
-0.025249612,
-0.026143404,
-0.030284638,
-0.012468393,
0.010286052,
0.03375553,
-0.031670015,
0.017086316,
-0.05181012,
-0.0020296518,
-0.028467262,
0.005522887,
-0.04558337,
0.0162968,
0.050975915,
0.055861972,
-0.015730731,
-0.05026088,
0.01398039,
0.018635554,
0.017145902,
0.017250178,
0.015172112,
0.02332796,
0.020512518,
-0.029837742,
-0.027767126,
0.026992505,
-0.021808514,
-0.013027012,
-0.0055824732,
-0.04567275,
-0.010047707,
0.0004413096,
0.045791924,
0.047877435,
0.016177628,
0.048860606,
0.017786453,
-0.011932118,
-0.009861501,
-0.010911706,
-0.012155565,
-0.03911828,
0.03914807,
0.025115544,
0.01805459,
-0.048562676,
-0.004390751,
-0.0077461936,
0.003847028,
-0.0043460615,
-0.0009212571,
-0.017354453,
0.0051057846,
-0.00441682,
-0.016147835,
0.009623156,
-0.06328044,
-0.025696509,
0.051095087,
0.055027768,
-0.0048786122,
0.026322162,
-0.03277236,
-0.014613492,
-0.020557206,
-0.0784749,
-0.05368708,
0.01826314,
0.041174,
-0.045076888,
0.028184228,
-0.002377858,
-0.023193892,
-0.04468958,
-0.047847643,
-0.00083048135,
-0.006398058,
-0.010725499,
-0.010286052,
-0.010122189,
0.038611796,
0.02054231,
0.016877765,
-0.06798775,
0.0028638572,
-0.025666716,
-0.0035639938,
0.015298733,
-0.017920522,
0.050886534,
0.007377505,
-0.016877765,
0.027171263,
0.017682176,
0.019708104,
-0.06465092,
0.03104436,
0.017339557,
-0.0574708,
-0.055474665,
0.024936786,
-0.010166879,
-0.0034876491,
0.05857314,
-0.000110560155,
0.013459012,
0.029480226,
0.00883364,
-0.038135108,
0.00061355066,
-0.028452365,
0.032385048,
-0.0026739265,
0.027201056,
0.014315562,
-0.03867138,
0.06244624,
-0.028318297,
-0.007384953,
0.0025584784,
-0.05571301,
-0.0042082686,
0.034291804,
-0.013257909,
0.03187857,
0.0343216,
-0.011686325,
0.00752647,
-0.007991986,
-0.020020932,
-0.029629191,
-0.02165955,
0.017473625,
0.05094612,
-0.006230472,
0.004319993,
-0.029644087,
-0.056457836,
0.040518552,
-0.058036868,
0.0062081274,
-0.015015699,
0.011783153,
0.0023610995,
-0.004219441,
-0.037002973,
0.018009901,
-0.023625892,
0.0076270215,
0.015790317,
-0.012639702,
-0.0031208224,
-0.019648518,
-0.0051914393,
0.047102816,
0.004413096,
-0.07186084,
-0.052048463,
0.018471694,
-0.010941499,
-0.00780578,
0.023834443,
-0.015686043,
-0.050797153,
-0.029539812,
0.04078669,
-0.040518552,
0.023387546,
-0.00015746093,
-0.04254448,
0.0014849975,
0.0055117146,
0.0015864801,
-0.052852876,
0.010360534,
-0.021018999,
0.022851272,
-0.025353888,
-0.0032939943,
-0.008044125,
-0.011395843,
-0.050141707,
0.040637724,
0.012177911,
0.0053962665,
0.020229483,
0.008215434,
0.012475841,
0.055653423,
-0.0321765,
-0.035870835,
-0.008163297,
0.0031915808,
-0.0022828926,
0.017548108,
-0.03521539,
0.024474993,
0.0013397563,
0.03113374,
-0.027647953,
-0.044719372,
-0.007783435,
0.014188942,
0.042335927,
-0.024147268,
0.035870835,
0.004357234,
0.016609628,
0.014188942,
-0.0055117146,
-0.00020831861,
-0.008885778,
0.012885495,
-0.07436346,
0.027513884,
-0.016267007,
-0.057232454,
0.029867535,
-0.027111677,
0.023551408,
-0.078653656,
0.014159149,
0.061433274,
0.0030090983,
0.011187292,
-0.05338915,
0.025294302,
0.02663499,
-0.008550606,
-0.006420403,
-0.013243012,
-0.059198797,
-0.010963843,
-0.012155565,
-0.038313866,
0.0055601285,
-0.023208788,
0.009317777,
-0.022046858,
0.03593042,
0.017846039,
-0.018978175,
-0.040905863,
0.043497857,
0.01625211,
-0.02191279,
0.013920804,
0.037122145,
0.0067853676,
0.036049593,
-0.0304485,
-0.02195748,
-0.004919578,
0.066021405,
0.02581568,
-0.0497544,
0.022180928,
0.022314997,
-0.040816482,
-0.03971414,
0.023223685,
0.0051393015,
0.025711404,
0.021167964,
-0.012580116,
0.031163534,
-0.035692077,
0.030865602,
-0.017682176,
0.035066422,
0.030076087,
-0.032385048,
-0.012773772,
-0.023223685,
0.010487154,
0.05455108,
-0.030895395,
-0.020974308,
-0.030508086,
-0.046268612,
-0.047996607,
-0.015157215,
0.020855136,
-0.0240132,
-0.013190874,
0.01453901,
0.0002914133,
0.08026248,
0.03581125,
0.040280208,
0.00070991257,
0.00002608347,
-0.03357677,
0.011336257,
-0.015343422,
-0.023015134,
-0.01848659,
-0.03187857,
0.019380381,
-0.0027986849,
0.015343422,
-0.0034113044,
-0.072575875,
-0.008409089,
-0.030657051,
0.0098168105,
0.023119409,
0.011574601,
-0.0012848254,
0.009705087,
-0.017577901,
-0.01346646,
-0.028556641,
0.0048562675,
-0.009935983,
-0.0016739971,
-0.056964315,
0.0009887569,
-0.07406553,
-0.010598878,
-0.029912226,
-0.009384812,
-0.0010343776,
-0.007954746,
-0.03756904,
-0.017145902,
0.0025417197,
0.033904493,
0.0029904777,
0.044183098,
-0.0017168247,
-0.016207421,
0.0017922383,
0.040161036,
-0.051988877,
-0.010360534,
0.009503984,
-0.06405506,
-0.0035453732,
-0.009414605,
-0.021734033,
0.02122755,
-0.017697074,
0.05055881,
0.021302033,
-0.005154198,
0.0184419,
0.041352756,
-0.03408325,
-0.011202188,
-0.0073216427,
-0.038284075,
0.01745873,
0.017816246,
0.0037986143,
0.029554708,
0.018114176,
-0.0072322637,
0.032087117,
0.027677746,
0.02894395,
0.033904493,
0.014978457,
-0.0171608,
-0.031252913,
-0.015015699,
0.04862226,
0.050737567,
-0.0100253625,
0.048681848,
-0.0010529982,
-0.0024113753,
0.020259276,
-0.013697356,
-0.014650734,
0.07597228,
-0.014591147,
0.0300165,
0.019246312,
-0.00075134356,
-0.0036757179,
-0.0005656025,
-0.03164022,
-0.047996607,
0.010710603,
-0.0566068,
-0.013280253,
-0.02843747,
-0.0036422007,
0.00045318026,
0.03277236,
-0.020378448,
-0.0032846841,
-0.018814312,
-0.00010538129,
0.015835008,
-0.04772847,
-0.025845474,
-0.014717768,
0.012386462,
-0.035364352,
-0.010107293,
0.022195823,
0.08216924,
-0.0074519874,
0.0065991613,
-0.029450433,
-0.035841044,
0.018933484,
0.04212738,
-0.04763909,
0.019871967,
-0.01780135,
0.015075285,
-0.0317296,
0.01187998,
-0.018561073,
0.019514449,
0.022106444,
0.0056569558,
-0.03697318,
0.030433603,
-0.025204923,
-0.030239949,
-0.011999152,
0.03408325,
0.016207421,
-0.009198605,
0.012706737,
-0.010181776,
0.019842174,
0.056159906,
0.034470562,
-0.015626457,
0.037151936,
0.017294867,
-0.011820394,
-0.03247443,
0.019991139,
0.015239147,
0.00020703844,
0.012125772,
-0.03980352,
-0.010539292,
-0.03229567,
0.01068081,
0.0070386087,
0.018129073,
0.010390327,
-0.013675012,
-0.0049046814,
0.028556641,
-0.019678311,
-0.044391647,
0.023521615,
0.0029476502,
0.046387784,
0.003817235,
0.003478339,
0.02951002,
0.020676378,
0.06643851,
0.0028098573,
0.004945647,
0.0009747915,
0.017265074,
-0.038790554,
0.013667563,
-0.020348655,
0.02332796,
-0.00015280578,
-0.04138255,
-0.025026165,
0.06107576,
0.0005521025,
-0.030299535,
-0.0019384105,
-0.011373498,
0.0111351535,
-0.057351626,
-0.0035397871,
-0.08580399,
0.025458165,
0.011693773,
-0.009675294,
-0.00995088,
0.022061756,
-0.0039997175,
0.033517186,
0.07305256,
0.06524678,
0.01136605,
0.036734834,
0.05279329,
0.003880545,
0.02770754,
0.01616273,
-0.022746995,
-0.004614199,
-0.00027209436,
0.020006035,
0.00018911606,
-0.037300903,
-0.04987357,
-0.00231641,
0.050529018,
-0.024921888,
-0.040250413,
0.0454642,
-0.007377505,
-0.03378532,
-0.0032902702,
0.09813832,
0.036615662,
0.020274172,
-0.012609909,
0.0035230285,
-0.033010703,
-0.02092962,
0.027022298,
0.0033200632,
0.015924387,
-0.024758026,
-0.01312384,
-0.03697318,
0.024683544,
0.019186726,
-0.020438034,
0.012892944,
0.03679442,
0.026962712,
0.07108622,
0.0026236507,
-0.052852876,
-0.05756018,
0.059526518,
0.044272475,
0.029793052,
0.06900071,
0.057738937,
-0.006036817,
-0.00011818299,
-0.004897233,
0.02633706,
0.016445765,
-0.021510584,
0.03348739,
-0.019886862,
-0.025458165,
-0.021108378,
-0.028586434,
0.030776223,
-0.020721069,
0.008572951,
-0.024906993,
-0.025145337,
-0.0596159,
-0.028824778,
-0.02469844,
0.009369915,
0.015328526,
-0.031699806,
0.008215434,
-0.058126245,
0.2645623,
0.027171263,
0.040339794,
0.026649885,
-0.0018695141,
0.060092587,
0.032236084,
-0.04606006,
-0.02006562,
-0.05329977,
0.024072787,
-0.057828315,
-0.02405789,
-0.025190026,
-0.02928657,
0.018471694,
-0.051869705,
-0.0031022017,
-0.0068561262,
-0.03581125,
-0.037420075,
0.008431434,
0.007947297,
0.04704323,
-0.012125772,
0.010367982,
-0.051303636,
-0.04176986,
0.014092114,
-0.005183991,
-0.008513365,
-0.007556263,
0.03777759,
-0.0008821537,
0.015730731,
0.04275303,
-0.0043535098,
-0.0056495075,
-0.033815116,
-0.020676378,
0.0014272734,
0.019186726,
0.039297037,
-0.029524915,
-0.019752795,
0.041352756,
0.010449913,
0.008632537,
0.040071655,
-0.056636594,
0.037330694,
-0.030120777,
-0.00013162478,
-0.022821479,
-0.04996295,
0.017577901,
-0.017056523,
-0.027126575,
-0.031193327,
0.044927925,
0.042961583,
0.03718173,
0.013347288,
0.03867138,
-0.021316929,
0.039446004,
-0.034559943,
0.005467025,
-0.022195823,
-0.023044927,
0.009585915,
0.0027800642,
-0.021450998,
-0.07269505,
0.019842174,
0.010442465,
0.013198323,
0.010226466,
0.018292934,
-0.041114412,
0.014285768,
0.036436904,
-0.042782824,
0.018248245,
0.004379579,
0.021495687,
-0.02440051,
-0.0476093,
0.012796116,
0.013958045,
0.0087368125,
0.08079876,
-0.01899307,
0.024638854,
0.040190827
] |
The image needs to be built and copied to the cluster's nodes or pushed to a container registry prior to deploying the
PyTorchJob to the cluster.
PyTorchJob Specification File
The Kubeflow PyTorchJob is used to run the distributed
training job on the cluster. The yaml file for the PyTorchJob defines parameters such as:
* The name of the PyTorchJob
* The number of replicas (workers)
* The python script and it's parameters that will be used to run the training job
* The types of resources (node selector, memory, and CPU) needed for each worker
* The image/tag for the Docker container to use
* Environment variables
* A volume mount for the PVC
The volume mount defines a path where the PVC will be mounted in the container for each worker pod. This location can be
used for the dataset, checkpoint files, and the saved model after training completes.
The snippet below is an example of a yaml file for a PyTorchJob with 4 workers running the
question-answering example.
yaml
apiVersion: "kubeflow.org/v1"
kind: PyTorchJob
metadata:
name: transformers-pytorchjob
namespace: kubeflow
spec:
elasticPolicy:
rdzvBackend: c10d
minReplicas: 1
maxReplicas: 4
maxRestarts: 10
pytorchReplicaSpecs:
Worker:
replicas: 4 # The number of worker pods
restartPolicy: OnFailure
template:
spec:
containers:
- name: pytorch
image: <image name>:<tag> # Specify the docker image to use for the worker pods
imagePullPolicy: IfNotPresent
command:
- torchrun
- /workspace/transformers/examples/pytorch/question-answering/run_qa.py
- --model_name_or_path
- "google-bert/bert-large-uncased"
- --dataset_name
- "squad"
- --do_train
- --do_eval
- --per_device_train_batch_size
- "12"
- --learning_rate
- "3e-5"
- --num_train_epochs
- "2"
- --max_seq_length
- "384"
- --doc_stride
- "128"
- --output_dir
- "/tmp/pvc-mount/output"
- --no_cuda
- --ddp_backend
- "ccl"
- --use_ipex
- --bf16 # Specify --bf16 if your hardware supports bfloat16
env:
- name: LD_PRELOAD
value: "/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4.5.9:/usr/local/lib/libiomp5.so"
- name: TRANSFORMERS_CACHE
value: "/tmp/pvc-mount/transformers_cache"
- name: HF_DATASETS_CACHE
value: "/tmp/pvc-mount/hf_datasets_cache"
- name: LOGLEVEL
value: "INFO"
- name: CCL_WORKER_COUNT
value: "1"
- name: OMP_NUM_THREADS # Can be tuned for optimal performance |
[
0.06188327,
0.019439362,
-0.041819353,
-0.0062488313,
0.008639717,
-0.0090821115,
0.017682793,
-0.007819984,
0.009615588,
0.03562582,
0.032268822,
0.03908691,
0.03801996,
-0.049079835,
-0.012224418,
0.013922435,
-0.0023632357,
-0.043250628,
-0.026296487,
-0.026986104,
0.0029764085,
-0.00061886525,
-0.059332993,
-0.054284483,
-0.079474986,
0.043693025,
0.003815658,
-0.0076833623,
0.043146536,
0.05053714,
-0.057563413,
-0.02166435,
0.024461849,
-0.054909043,
0.00043141659,
-0.032815307,
0.0373954,
0.010233641,
-0.04751844,
-0.07130369,
0.021560257,
0.005259948,
0.0004606927,
-0.03981556,
-0.037109144,
-0.035339564,
-0.015926225,
0.0008449422,
0.0034480796,
-0.02615336,
-0.0040075793,
0.049262,
-0.0029341206,
-0.006850619,
0.009400897,
0.0049964627,
-0.0039913147,
-0.0066554444,
-0.044187468,
0.01135264,
0.00863321,
0.044577815,
0.022601187,
-0.050927486,
-0.004258053,
0.030473217,
0.007689868,
-0.0042190184,
-0.002234746,
-0.040153865,
0.00347085,
0.039711468,
-0.015796108,
-0.021781454,
-0.044499744,
0.059280947,
0.042548,
0.016641865,
-0.02487822,
0.023694163,
-0.012100808,
0.03713517,
-0.02254914,
-0.005354282,
-0.04660763,
-0.019192142,
0.014403865,
-0.029224101,
-0.05980141,
-0.040310003,
0.004336123,
0.01877577,
0.003711565,
0.009934373,
0.04431758,
0.027142242,
-0.04421349,
0.02807908,
-0.017474607,
-0.011046867,
0.042964373,
0.080672055,
-0.027636684,
0.017890979,
-0.03692698,
-0.0088479025,
0.038462352,
-0.016095376,
-0.05025088,
0.022327943,
0.02286142,
0.009192711,
0.03364805,
0.075831726,
0.01292054,
0.02807908,
0.007319037,
0.0067205024,
-0.026751893,
-0.010103524,
0.020428246,
-0.021456163,
0.029380241,
-0.012341523,
0.0012726992,
-0.016186457,
-0.007227956,
0.029562404,
-0.013792318,
-0.003542414,
0.006151244,
0.04613921,
0.03554775,
-0.0036334952,
0.03682289,
0.0015313051,
0.019920792,
0.020102955,
0.051265787,
-0.02159929,
-0.039685447,
-0.018203259,
-0.036718797,
0.09675442,
0.0022770336,
-0.03546968,
0.006245578,
0.018034108,
-0.03177438,
-0.008333944,
-0.033596005,
0.0003053665,
-0.006014622,
-0.010760611,
-0.014234714,
-0.040179886,
-0.020168014,
0.03377817,
-0.008724292,
0.04098661,
0.02494328,
-0.010890727,
-0.024917254,
0.047076046,
-0.011560826,
0.029276147,
-0.024370767,
-0.043614954,
0.0014979629,
-0.03812405,
0.016784992,
-0.013792318,
0.006027634,
-0.017383527,
0.038072005,
-0.0049314047,
0.06604699,
0.010825669,
-0.0023762474,
0.023980418,
-0.028339311,
-0.0023258273,
-0.014729155,
0.046087164,
0.008828385,
-0.002101377,
0.02022006,
-0.0351574,
0.0070262756,
-0.012959575,
0.008405508,
0.04548863,
-0.031748354,
-0.0030479722,
-0.012901023,
-0.027142242,
-0.017123293,
0.00039339825,
-0.021937594,
-0.071720056,
0.006053657,
0.04502021,
-0.009043077,
0.033726122,
-0.010721576,
-0.03265917,
0.012263454,
0.051291812,
0.029067961,
-0.0020070425,
0.045384534,
0.0027909928,
-0.0018167476,
0.015392748,
-0.004365399,
0.020753536,
0.006974229,
0.03801996,
0.016837038,
-0.010682541,
0.040257957,
-0.0020200543,
0.033413842,
-0.0020200543,
0.06302829,
-0.03273724,
-0.021729408,
0.024930267,
0.060530063,
0.049782462,
0.00053266325,
0.04837721,
0.04205356,
0.031331982,
-0.012367547,
0.018177235,
0.016264526,
0.0016947637,
0.058396157,
0.0038351754,
-0.017526655,
0.014247726,
0.020532338,
0.018671677,
0.020610409,
0.040023748,
-0.007989136,
-0.02494328,
-0.035339564,
0.048923697,
-0.025541812,
0.063288525,
0.011014338,
-0.005715355,
-0.04910586,
-0.024826173,
-0.0041767303,
0.046035115,
0.0007225516,
0.0015247994,
-0.0059007704,
0.0038709573,
-0.00043792237,
0.0003027235,
0.05714704,
0.044161443,
0.008724292,
0.03708312,
0.01660283,
-0.0055429507,
-0.071720056,
-0.022809371,
-0.057199087,
-0.028313288,
-0.08212935,
0.0013857377,
0.03755154,
-0.01115096,
0.05761546,
-0.017032212,
-0.023720186,
0.016316574,
-0.007728903,
0.05230672,
0.013987493,
0.024982313,
-0.039399188,
0.001889938,
-0.035235472,
-0.010038466,
-0.013766295,
0.011801541,
-0.024058487,
-0.021287013,
0.017526655,
0.022054698,
0.015574911,
-0.017110283,
-0.016915107,
0.02166435,
-0.025723975,
-0.016342597,
-0.023616092,
0.0010848439,
-0.001785845,
0.025528802,
0.010298698,
-0.059332993,
0.047882766,
0.05280116,
-0.034246586,
0.0074036126,
0.010162076,
0.07546741,
-0.04036205,
0.042339817,
0.02880773,
0.020441256,
-0.034402728,
-0.02655672,
0.013831354,
0.01998585,
-0.031175844,
-0.034636937,
-0.011229029,
0.020428246,
-0.026934056,
-0.034636937,
0.0325811,
-0.06380899,
-0.024865208,
-0.012549709,
-0.030603334,
0.04306847,
-0.012250441,
0.04783072,
-0.052540928,
0.014455912,
-0.004739483,
-0.0037896347,
-0.003506632,
-0.010350745,
0.011521791,
0.049183927,
-0.0010051477,
0.0001531915,
0.08405507,
-0.053503785,
0.024826173,
-0.019062025,
0.010396286,
-0.019634537,
0.026348533,
-0.014820237,
0.013441005,
0.05626225,
-0.041455027,
-0.0016321453,
0.025099417,
0.03364805,
0.058708437,
0.0012645669,
0.01661584,
-0.0103832735,
-0.068805456,
-0.03065538,
-0.002626721,
0.0026234682,
0.058083877,
-0.034480795,
0.0337001,
-0.0034610913,
-0.00569909,
0.026829964,
0.0071694036,
-0.012543203,
0.05079737,
0.018671677,
0.046893883,
0.013675214,
-0.008965007,
-0.01428676,
0.002532387,
0.01685005,
0.024006441,
0.024214627,
0.0011328243,
0.0030170698,
-0.031644262,
-0.02680394,
-0.037967913,
0.0028267747,
-0.014026528,
-0.009257768,
-0.020675465,
-0.025424708,
0.013167761,
0.030759472,
0.05032895,
0.03364805,
0.050615206,
-0.061935317,
-0.004049867,
0.015939236,
-0.012705849,
-0.01885384,
-0.046997976,
0.038878724,
0.027298382,
0.003161824,
-0.034454774,
0.008652728,
-0.026010232,
0.02248408,
-0.0060666683,
-0.036380492,
-0.013545098,
0.009726187,
-0.009127652,
0.0037863818,
0.033491913,
-0.035183426,
-0.032372914,
0.030707426,
0.059437085,
-0.005943058,
0.00826238,
-0.015314679,
-0.014026528,
0.023824278,
-0.012367547,
-0.042001516,
-0.017006189,
-0.01660283,
-0.06552652,
0.0034220563,
0.02737645,
-0.013987493,
-0.045358513,
-0.05792774,
-0.017864956,
0.031566195,
-0.029250124,
-0.014026528,
0.014755178,
0.012738378,
-0.035651844,
-0.017864956,
0.0061349794,
0.010975302,
0.022679256,
-0.052176602,
-0.011209512,
-0.020311141,
-0.02872966,
-0.044343606,
-0.008834891,
0.026582742,
0.04936609,
0.04517635,
-0.049314044,
-0.01861963,
0.015262632,
-0.026855987,
-0.04541056,
0.023381883,
0.026452627,
0.031800404,
0.026023243,
-0.007943595,
0.013675214,
0.044655886,
0.047206163,
-0.019543456,
0.02424065,
0.020181024,
0.019842723,
-0.005055015,
0.030941635,
-0.0019891516,
-0.077497214,
0.045462605,
-0.026517684,
-0.013701238,
-0.009303309,
-0.07505103,
-0.051604092,
-0.00047695724,
-0.015587922,
0.057199087,
0.05191637,
0.010370262,
0.024422813,
-0.019803688,
0.010474355,
0.0028869535,
-0.034897167,
0.009635106,
0.053503785,
0.030993681,
-0.0049053812,
-0.05376402,
-0.035755936,
0.008815373,
-0.026751893,
-0.012217913,
-0.0028072572,
-0.025984207,
-0.0029812877,
-0.015783098,
-0.024045477,
-0.011931657,
-0.009218734,
0.0002161149,
-0.017500632,
0.022288907,
0.010409297,
0.001566274,
-0.033908285,
0.0637049,
-0.033596005,
-0.055585645,
-0.021169908,
0.065110154,
0.036328446,
0.0039327624,
0.008002147,
-0.01725341,
-0.0614669,
-0.026192393,
0.0015906707,
-0.055897925,
0.030525263,
-0.010337733,
-0.04759651,
-0.019608513,
0.03554775,
0.021326048,
-0.08488782,
-0.0018053624,
-0.039919656,
0.02559386,
-0.06432945,
0.03596412,
-0.014299772,
0.0048630936,
0.0009230119,
0.038748607,
0.022353966,
0.008620199,
0.004885864,
0.0026576237,
-0.020636432,
0.058708437,
-0.04887165,
-0.018905886,
0.014325795,
-0.022106744,
-0.007319037,
0.012198395,
-0.034923192,
-0.0007859832,
0.005669814,
0.008405508,
-0.020597396,
-0.019673571,
-0.01127457,
-0.00078557665,
0.025294593,
-0.005367294,
0.0069872406,
0.040622283,
0.019049013,
0.05207251,
0.030395148,
-0.023069605,
-0.011404686,
-0.02977059,
-0.07385396,
0.030525263,
0.0018004831,
-0.012809942,
-0.011684436,
0.012653802,
0.05969732,
-0.03947726,
0.042574026,
0.056678623,
-0.0029731556,
0.043146536,
-0.03869656,
0.03362203,
0.011580343,
-0.032841332,
-0.00084168924,
0.0075467406,
-0.0053510293,
0.013948458,
-0.0041767303,
-0.04275619,
0.014755178,
-0.007117357,
-0.0069937464,
-0.001735425,
0.032633148,
-0.03958135,
-0.07973522,
-0.06583881,
0.077549264,
0.017643759,
0.020610409,
0.04934007,
-0.015301667,
-0.028157149,
0.0674002,
0.011424203,
-0.023824278,
0.0019468638,
0.053972207,
-0.0000663796,
-0.014390853,
0.004160466,
0.01517155,
-0.056002017,
-0.051812276,
-0.0021680614,
0.03900884,
-0.033413842,
-0.041038655,
-0.032867357,
0.0065838806,
-0.008815373,
0.022536129,
-0.0007689055,
0.01636862,
0.0076833623,
0.040726375,
0.0029585175,
-0.07151187,
0.005220913,
0.045046233,
-0.021313036,
-0.00049566146,
-0.03200859,
0.000013888381,
-0.034376703,
-0.030239008,
0.041949466,
-0.031384032,
0.01573105,
0.07005457,
-0.01829434,
0.056990903,
-0.0009937626,
0.03328373,
-0.0026250947,
0.02977059,
-0.033596005,
-0.034636937,
-0.0089519955,
-0.014950353,
0.031358007,
-0.025255557,
-0.0018655412,
0.00052046485,
-0.015939236,
-0.027714754,
-0.038878724,
0.0097326925,
-0.022080721,
-0.027272359,
0.014078574,
0.009687152,
-0.019140095,
0.0229525,
-0.0057218606,
-0.009537518,
-0.023329837,
0.0098107625,
-0.04988656,
-0.009303309,
-0.044733953,
0.017604724,
-0.05191637,
-0.04012784,
-0.05113567,
0.004524791,
-0.0015540755,
-0.024097523,
-0.051239766,
0.003978303,
0.05032895,
0.009947385,
-0.03778575,
0.03658868,
-0.007208438,
0.010610977,
0.0043881694,
0.023967406,
-0.024826173,
-0.02945831,
0.03393431,
0.005829206,
-0.015028423,
0.020974733,
0.03643254,
0.013467028,
-0.0064765345,
0.03396033,
-0.040648304,
-0.0025893126,
-0.024709068,
0.031956542,
-0.023876324,
0.0075077056,
0.00051070616,
-0.044994187,
-0.027454522,
0.03154017,
0.0036855417,
0.002909724,
-0.012341523,
-0.018892875,
0.013232819,
0.008249368,
-0.015353713,
-0.02087064,
0.014416876,
-0.032138705,
-0.012914035,
-0.003093513,
0.046997976,
0.05527337,
0.005907276,
0.024813162,
-0.03900884,
-0.031384032,
0.025958184,
-0.050615206,
0.014898307,
0.052618995,
-0.0044727447,
-0.003997821,
-0.014533981,
0.018957932,
-0.05144795,
0.048429254,
-0.054440625,
-0.006076427,
0.026517684,
-0.05064123,
0.030473217,
-0.023655128,
-0.011756,
0.027350428,
0.022028675,
-0.020311141,
-0.0016248262,
-0.0096806465,
0.020792572,
0.017695805,
-0.07978726,
-0.01781291,
0.000777851,
0.053555835,
-0.038176097,
-0.040934563,
-0.012679825,
0.04231379,
-0.038072005,
-0.008255874,
-0.043302678,
-0.032607123,
0.017370515,
0.048143,
-0.03505331,
-0.0021566763,
-0.008776339,
0.029874682,
-0.036016166,
0.019439362,
0.0036562656,
0.04101263,
0.002522628,
0.0028690626,
-0.028443404,
0.022015663,
0.014260737,
-0.019127084,
-0.0060991975,
0.006733514,
-0.011463239,
0.008873926,
0.0043068468,
-0.012647296,
0.060217783,
0.008242862,
0.022002652,
-0.021404117,
-0.01885384,
0.034767054,
-0.031592216,
0.025255557,
0.022913465,
6.988664e-8,
-0.023043582,
0.01829434,
-0.036979027,
-0.00569909,
-0.010812657,
0.003396033,
0.0016183204,
0.023512,
-0.013109208,
0.025151463,
-0.0067595374,
0.028287265,
-0.020636432,
-0.011671424,
0.0070913336,
-0.022119757,
-0.006935194,
0.015548888,
-0.017565688,
-0.027090196,
0.022171803,
0.03354396,
0.017227387,
0.015757073,
0.00357169,
0.042339817,
-0.015926225,
0.036692772,
0.025424708,
-0.022366976,
-0.024175592,
-0.06620313,
-0.06776452,
0.04855937,
-0.009244757,
-0.0004293835,
-0.0056145145,
-0.05657453,
0.023928372,
-0.057407275,
0.008015159,
-0.03604219,
0.0009864436,
0.008203827,
-0.03307554,
-0.0337001,
0.023303814,
0.001818374,
0.03539161,
-0.00967414,
0.044890095,
0.017305456,
0.06589085,
0.037889842,
0.006554604,
0.026114324,
0.02559386,
-0.026960079,
0.013161255,
-0.007436142,
-0.006121968,
-0.005611262,
-0.0010165329,
-0.05287923,
-0.013480039,
0.034923192,
-0.02703815,
-0.046035115,
0.013545098,
-0.000039721024,
-0.043927234,
0.019816699,
0.065266296,
0.052749112,
0.033257704,
-0.0010051477,
0.00955053,
-0.013974481,
-0.017357502,
-0.005705596,
0.0007481682,
-0.03187847,
-0.041793328,
-0.021716395,
-0.012302488,
-0.02038921,
-0.009960396,
-0.0071368744,
0.015067457,
0.018268317,
0.01396147,
0.00810624,
0.036406517,
-0.028677614,
-0.031123798,
0.047726627,
0.05980141,
-0.025320616,
0.06713997,
0.038098026,
0.017943026,
-0.030473217,
0.0009482219,
0.008912961,
0.0043881694,
-0.005702343,
-0.004362146,
-0.0046906895,
-0.06490197,
-0.03859247,
0.012835965,
0.0061642556,
-0.01669391,
-0.0034806088,
-0.053243555,
-0.053503785,
-0.071772106,
-0.021417128,
-0.04070035,
0.058968667,
-0.03890475,
-0.010845186,
0.03932112,
-0.07380192,
0.18976149,
0.037681654,
0.030603334,
0.017669782,
0.020792572,
0.043693025,
0.011346133,
-0.013636179,
-0.008978019,
-0.019842723,
-0.0023111892,
-0.027974986,
0.034558866,
0.021521222,
-0.02545073,
-0.0011027349,
-0.025893126,
-0.021742418,
0.0046841837,
-0.071615964,
-0.029354218,
0.037525516,
0.036302425,
0.050927486,
0.027636684,
0.005490904,
0.0011555946,
-0.05178625,
-0.014937341,
-0.012556215,
0.002555157,
-0.034558866,
0.018047119,
0.034376703,
0.030421171,
0.012374052,
-0.025476756,
-0.0017110282,
-0.011788529,
0.0076768566,
-0.023564046,
0.013701238,
0.009088618,
-0.033023495,
-0.021313036,
0.040830467,
0.02166435,
-0.0072995196,
0.03154017,
-0.053035367,
0.03843633,
-0.031201867,
0.025789034,
-0.032555077,
-0.050615206,
0.031384032,
-0.032216776,
-0.0181382,
-0.03682289,
0.019569479,
0.02197663,
0.0069417,
0.037603587,
0.027116219,
-0.049262,
0.017149316,
-0.069221824,
0.014000504,
-0.029796613,
0.048299138,
0.012901023,
0.000641229,
-0.0020428246,
-0.01420869,
0.01796905,
0.039060887,
0.014325795,
0.01709727,
0.004599608,
-0.021898558,
-0.0022607693,
0.0029520115,
-0.0071694036,
-0.005770654,
0.013083185,
0.038644515,
-0.03338782,
-0.003711565,
0.0051916367,
-0.005835712,
-0.0070718164,
0.0784861,
0.00461262,
-0.04691991,
0.00093602354
] | transformers-pytorchjob-worker-0 1/1 Running 0 7m37s
transformers-pytorchjob-worker-1 1/1 Running 0 7m37s
transformers-pytorchjob-worker-2 1/1 Running 0 7m37s
transformers-pytorchjob-worker-3 1/1 Running 0 7m37s |
[
0.03335504,
0.0022067123,
-0.018863609,
0.024569439,
0.015330119,
-0.029092854,
0.012016614,
0.0094868,
0.033437535,
0.05978059,
0.010483602,
0.00012857451,
0.073694564,
-0.015440111,
-0.033547524,
-0.020760968,
0.019688549,
-0.06495021,
-0.019853536,
-0.020912208,
0.0045474772,
-0.010387359,
-0.036049843,
-0.0076238126,
-0.052411135,
0.016979998,
-0.03849716,
-0.047104027,
0.030440254,
0.07193469,
-0.052136157,
-0.018354896,
-0.027841697,
-0.06621512,
-0.011356662,
-0.033712514,
0.044601712,
-0.023249535,
-0.058515683,
-0.100257605,
0.015013893,
0.006929489,
0.02835041,
-0.06984485,
-0.008111902,
-0.0003001146,
-0.00096930354,
0.026961762,
0.023662005,
0.018904855,
-0.04179692,
0.01376961,
0.026411802,
-0.04300683,
0.011136679,
0.00027992076,
-0.01763995,
-0.014078962,
-0.046169095,
0.022039624,
0.0073007117,
0.012752185,
-0.006331408,
-0.026920514,
0.02318079,
0.031017713,
-0.031072708,
-0.04449172,
0.011528525,
-0.037177257,
-0.042429373,
0.040614504,
-0.042814344,
-0.021709649,
-0.04119196,
0.023345778,
0.02290581,
-0.0034097484,
0.010854824,
0.045426648,
0.0058501936,
0.046306584,
0.0034234975,
-0.044766698,
-0.016622525,
-0.0056645824,
-0.021022199,
-0.0071013514,
0.008758104,
-0.011267294,
0.0015914452,
0.04702153,
0.0352799,
-0.038689647,
0.008125651,
0.0032619468,
-0.035334893,
0.04044952,
-0.039679572,
0.028762879,
0.005324295,
0.07022982,
-0.00535523,
0.008703108,
-0.020128515,
0.0049702586,
0.042044397,
-0.0026277748,
-0.040751994,
-0.03577486,
-0.021283431,
0.021242183,
-0.0059498735,
0.018189909,
-0.0007888481,
-0.024459446,
0.016210055,
-0.039212108,
-0.059560608,
-0.05001881,
0.030880222,
0.014752662,
0.040477015,
-0.05040378,
-0.036682297,
-0.026384303,
-0.026205568,
0.032915074,
-0.040174536,
0.024060726,
-0.0016937032,
-0.025160644,
-0.009940517,
-0.018134912,
0.029395333,
0.022988304,
0.013480881,
0.0029577506,
0.033987492,
-0.029395333,
0.0069157397,
-0.03767222,
-0.013254022,
0.065280184,
-0.004365303,
0.03145768,
0.035719864,
0.014807658,
-0.02157216,
-0.01464267,
-0.0046059103,
0.025311884,
0.013047787,
-0.008050031,
-0.020169763,
-0.00040151336,
-0.05056877,
0.013810856,
0.015673844,
0.06253039,
0.0018595504,
0.043831766,
-0.038992126,
0.03338254,
-0.00671638,
0.041026976,
-0.0111848,
-0.06824996,
0.0023717,
-0.04817645,
0.0023476393,
0.024459446,
-0.011253545,
0.020389747,
0.04042202,
-0.00030505564,
0.032970067,
0.017983673,
-0.016333796,
0.023167042,
-0.0057092663,
0.016663771,
-0.005045878,
0.03225512,
-0.017296225,
0.0515312,
0.008050031,
0.0034595886,
-0.0058673797,
-0.025270637,
-0.0030093093,
0.04014704,
-0.07968912,
0.045949113,
-0.015962573,
-0.033657517,
-0.032860078,
-0.052796107,
0.03808469,
-0.05411601,
-0.020953454,
0.05477596,
-0.031375185,
0.013247148,
0.0031880462,
-0.0077338046,
0.010696711,
0.09145825,
0.0070257317,
0.003334129,
0.042759348,
0.012332841,
-0.03808469,
-0.036544804,
-0.006513582,
-0.014353941,
0.022699576,
0.024074474,
-0.039212108,
-0.054500982,
0.02264458,
-0.0023545139,
0.018492386,
-0.0049702586,
-0.010153626,
-0.028020434,
0.025916839,
0.034922425,
0.01710374,
-0.010614217,
-0.024019478,
0.017392468,
0.026425552,
0.05626085,
0.00030376666,
0.049688835,
0.07077978,
0.0018595504,
0.037369743,
-0.012635319,
-0.022878313,
0.012814055,
-0.0014565332,
0.020004775,
0.012497828,
-0.019014848,
-0.015577601,
0.0060358047,
-0.015247625,
0.027607964,
-0.06621512,
0.037342247,
0.009136201,
-0.0005456629,
-0.05194367,
-0.030220272,
-0.027346734,
0.06143047,
-0.030990215,
-0.0025659045,
0.024720676,
0.004935886,
0.0032636656,
0.004977133,
0.022809567,
0.049166374,
-0.007843796,
0.029395333,
-0.02088471,
-0.032145128,
0.0035919226,
-0.033712514,
0.0057505136,
-0.0582957,
-0.026150571,
0.0032585098,
0.044106748,
-0.020912208,
-0.008256266,
0.016938752,
0.0025074712,
0.057965726,
-0.048341434,
0.022892062,
-0.032062635,
-0.013027164,
-0.031677663,
0.011418533,
-0.01710374,
0.026989259,
0.024583187,
-0.025078151,
-0.025463123,
-0.041659426,
0.041549437,
-0.0031588296,
-0.00681606,
-0.0050493153,
-0.01747496,
-0.010476727,
-0.07600439,
-0.02074722,
-0.041659426,
-0.03756223,
-0.031155203,
0.026728028,
0.026659284,
-0.035334893,
0.030027786,
0.009026209,
0.01302029,
0.019578556,
-0.009947391,
-0.0013310737,
-0.051751185,
0.062200412,
0.033850003,
-0.000048094596,
-0.028652888,
-0.014670168,
-0.02060973,
-0.03907462,
-0.0014187235,
-0.040916983,
-0.020540984,
0.05034879,
-0.030825227,
-0.0461416,
0.041989405,
-0.016086314,
-0.02454194,
-0.025463123,
-0.0069088656,
0.035747364,
0.034179978,
0.02494066,
-0.052658617,
-0.02887287,
-0.0086549865,
0.040696997,
0.0018389269,
0.008015659,
0.018423641,
0.030715235,
-0.056370843,
-0.031622667,
0.074354514,
-0.0115354,
0.0049393233,
-0.01654003,
-0.016072564,
-0.013157779,
0.0127384355,
0.059615605,
0.013350265,
0.04259436,
-0.0461141,
-0.00895059,
-0.0014977802,
0.012875926,
-0.0016567528,
0.0003048408,
0.017199982,
-0.023084547,
-0.02344202,
-0.07044981,
0.0064207762,
-0.0014221608,
0.037892204,
-0.045756627,
0.020692224,
0.0036194206,
0.0071219746,
-0.0036056717,
-0.027745454,
-0.023758247,
0.032887574,
0.00855187,
0.06956987,
-0.026356807,
0.012064735,
0.0013327923,
0.038744643,
0.0041728173,
0.012697188,
0.015907576,
-0.02726424,
-0.004839643,
-0.026824271,
-0.023263285,
-0.000765217,
0.006609825,
0.02412947,
0.005465222,
-0.028790377,
-0.0031846089,
0.045234162,
0.047406502,
0.006259226,
0.029340336,
0.03143018,
-0.009321813,
0.040202036,
-0.005465222,
-0.017241228,
0.020499738,
-0.0142302,
-0.001069843,
0.02373075,
0.032970067,
-0.022067122,
0.0023029551,
-0.024184467,
0.012600945,
0.008050031,
-0.030990215,
0.013123407,
0.05884566,
0.050238796,
-0.00833876,
0.02157216,
-0.017571203,
-0.02562811,
0.054473482,
0.055683393,
-0.020032272,
0.039129615,
-0.011700387,
0.048368935,
0.021599658,
-0.047928967,
-0.07495947,
-0.020417245,
-0.050651263,
-0.054555975,
0.02549062,
0.020664725,
-0.030467752,
-0.04396926,
-0.0041487566,
0.0032671029,
-0.0032671029,
-0.02617807,
-0.027855447,
-0.02210837,
0.027401729,
0.02088471,
-0.030990215,
-0.027030507,
-0.049166374,
-0.013810856,
-0.014670168,
-0.0059429994,
-0.034372464,
0.008111902,
0.0036537931,
0.011837877,
-0.016870005,
0.01912484,
0.016443787,
-0.044271734,
0.03049525,
0.017873682,
-0.004238125,
-0.033135056,
0.040174536,
0.030550247,
-0.0096517885,
0.03962458,
0.059560608,
0.025738101,
0.01871237,
0.024514442,
-0.014738913,
0.00078798877,
-0.04185191,
0.020760968,
0.004324056,
0.011844751,
0.030852724,
-0.016856257,
0.041026976,
0.01343276,
0.010676088,
-0.0010878885,
-0.060660526,
-0.007850671,
-0.016608775,
-0.0049599465,
0.015082638,
0.040477015,
0.0152751235,
-0.024321957,
-0.050541274,
-0.015357617,
-0.0077750515,
-0.026150571,
-0.028006684,
0.057030793,
0.009885521,
0.03783721,
-0.039047122,
-0.010579845,
0.0038565905,
-0.0059051896,
-0.021805892,
-0.047598988,
0.030275267,
0.044381727,
0.0052211774,
-0.04869891,
0.00044770137,
0.011528525,
-0.016223803,
-0.013563375,
0.021379674,
0.04080699,
-0.026673032,
0.020939706,
0.015123884,
0.03335504,
-0.070064835,
-0.02074722,
0.016883755,
-0.016718768,
-0.014044589,
0.03321755,
-0.008751229,
-0.03690228,
-0.0033358478,
0.002313267,
-0.03973457,
-0.008331886,
-0.008489999,
-0.03962458,
-0.043721776,
-0.007108226,
0.051723685,
-0.072099686,
-0.004055951,
-0.03038526,
-0.0031983578,
-0.027319236,
-0.018918606,
-0.016086314,
-0.006627011,
-0.04867141,
0.056315847,
0.009397432,
0.021407172,
-0.027140498,
-0.005637084,
-0.003976894,
0.035719864,
-0.03346503,
-0.053071085,
-0.0045784125,
0.0007720915,
-0.0129515445,
0.01559135,
-0.01571509,
-0.0032207,
-0.026604287,
-0.0058673797,
-0.0379747,
0.0070222947,
-0.010600468,
0.02157216,
0.036132336,
-0.047626488,
0.016636273,
0.02344202,
0.025944337,
0.033300046,
0.007128849,
-0.000015413902,
-0.06995484,
-0.008572493,
-0.03767222,
0.02198463,
-0.019331075,
-0.024074474,
0.036957275,
0.016416289,
0.029642815,
-0.03838717,
-0.005482408,
0.036269825,
-0.014463933,
-0.015330119,
-0.043034326,
0.028240418,
0.024486944,
0.0006242899,
0.003389125,
0.011212298,
-0.0128415525,
-0.017186232,
0.0058330074,
-0.013089035,
0.029340336,
-0.011954743,
0.01559135,
-0.005286485,
0.05408851,
0.027209243,
-0.04314432,
-0.01572884,
0.014175205,
0.024088224,
0.032887574,
0.03890963,
0.03486743,
0.03225512,
0.06742503,
-0.028570393,
-0.00004011911,
-0.025325632,
0.04908388,
-0.008318136,
-0.015343868,
0.017543707,
0.014051463,
-0.046939038,
-0.09206321,
-0.011769132,
0.005004631,
0.000832673,
-0.024088224,
-0.019826038,
-0.010387359,
-0.017557455,
0.003134769,
-0.029257841,
0.0071975943,
0.024665682,
-0.03008278,
0.033575024,
-0.034839932,
0.052548625,
0.092558175,
-0.023648256,
0.032860078,
-0.031815153,
-0.018423641,
-0.039019622,
0.010682962,
0.03203514,
-0.02737423,
0.013927723,
0.032915074,
-0.022204613,
0.043694276,
0.033410035,
0.023098297,
0.00015263523,
-0.0044959183,
-0.017337471,
-0.019344823,
-0.012834678,
0.005313983,
0.035197403,
-0.027704207,
0.038744643,
-0.006162983,
0.006981048,
-0.027704207,
-0.04817645,
-0.0074519506,
-0.036269825,
0.026219316,
-0.018231155,
-0.030687736,
-0.0023527953,
0.0142302,
-0.03338254,
-0.013384638,
-0.05747076,
0.020870961,
-0.022864563,
0.024225714,
-0.035719864,
0.002724018,
0.00895059,
-0.04363928,
-0.05004631,
0.035004918,
0.018794864,
-0.057690747,
-0.061705448,
0.0076581854,
0.024363203,
0.02440445,
0.033822507,
-0.023909487,
0.01939982,
-0.024748174,
-0.0019403256,
0.046086602,
-0.056590825,
0.021393422,
0.0022256172,
-0.017241228,
0.029780304,
-0.00000979481,
-0.008380007,
0.011026687,
-0.010614217,
0.036792286,
0.008366258,
0.011452905,
-0.039679572,
0.029312838,
-0.016760014,
0.0114116585,
-0.020403495,
-0.0122091,
-0.023139544,
0.039129615,
-0.0079881605,
0.01545386,
0.040064543,
0.0025710603,
-0.021434668,
0.017804937,
0.0052933595,
0.02183339,
0.013714613,
0.009019335,
0.007018857,
-0.062970355,
0.06253039,
0.04314432,
-0.001530434,
0.03621483,
-0.0104148565,
0.0045440397,
-0.008160023,
-0.043171816,
-0.005228052,
0.058020722,
0.0176262,
0.0020193823,
-0.020857211,
0.020403495,
-0.0025332507,
0.028817875,
-0.07985411,
0.0028202608,
0.035747364,
0.0017160453,
0.021379674,
-0.02290581,
-0.030192774,
-0.027209243,
0.030880222,
0.011088558,
0.026329309,
0.018643625,
-0.013879602,
0.052961092,
-0.03555488,
0.022850815,
0.020527236,
0.0352799,
-0.03959708,
-0.045041677,
-0.00081634603,
0.0365998,
-0.005128372,
0.00369504,
-0.03038526,
-0.022424595,
0.009349311,
0.015811333,
0.0094868,
0.020774718,
-0.040724497,
0.041026976,
-0.0019695424,
0.0068676183,
-0.06484022,
0.001731513,
-0.013907099,
-0.026068078,
-0.015522605,
0.026315559,
0.036269825,
-0.010655465,
0.0250919,
-0.008345635,
-0.010435481,
0.0017719006,
-0.015165132,
-0.015233876,
0.021888386,
0.02969781,
0.04553664,
-0.015027641,
0.07259464,
0.008421254,
-0.058625676,
-0.0043274933,
0.052548625,
-0.0030625865,
-0.007919416,
0.03321755,
-0.034839932,
0.018134912,
-0.018368645,
-0.005451473,
-0.016595026,
0.009294314,
-0.009514298,
0.0182999,
0.021860888,
0.023565762,
0.005881129,
-0.014738913,
0.0033066312,
-0.03104521,
0.02021101,
0.025559366,
-0.016223803,
-0.0007720915,
0.015646346,
0.02780045,
0.0013001385,
0.03008278,
0.017419966,
-0.0008661861,
-0.034344967,
0.0277867,
0.024734426,
-0.018478638,
-0.043914262,
-0.0035163031,
-0.05205366,
-0.010765456,
-0.022163365,
0.003471619,
-0.0044546714,
-0.015563852,
0.024885666,
-0.08084404,
0.013095909,
-0.048121452,
0.023414522,
0.026494296,
0.023881989,
0.00464372,
0.012875926,
0.006750752,
0.046444073,
0.017131237,
0.06286036,
0.0021740585,
0.062970355,
0.0664351,
0.023373276,
-0.011885999,
0.018024921,
0.025559366,
-0.006248914,
0.010291116,
0.02494066,
0.004849955,
-0.016113812,
-0.056233354,
-0.0050252546,
0.033135056,
-0.0029646251,
-0.035609875,
-0.0059292503,
-0.0031691412,
-0.046306584,
-0.04245687,
0.06385029,
0.04435423,
0.027319236,
-0.018093666,
0.0049977563,
-0.00989927,
-0.028707882,
0.013102784,
0.0284604,
0.008070655,
-0.02535313,
0.01314403,
0.008558744,
-0.0036228579,
-0.0223696,
-0.029120352,
-0.009528047,
0.012415335,
0.02265833,
0.032200124,
-0.025806846,
-0.032475106,
-0.04418924,
0.047104027,
0.053098585,
0.004055951,
0.089203425,
-0.0010354705,
-0.056755815,
-0.014003342,
-0.001888767,
0.004671218,
-0.0036228579,
0.03890963,
0.0182999,
-0.013707739,
-0.0393221,
-0.06945988,
-0.018272402,
0.014161455,
0.03420748,
-0.016622525,
0.0034681817,
-0.051503703,
-0.060715523,
-0.02630181,
-0.045619134,
0.03277758,
0.01747496,
-0.012869051,
-0.010277367,
-0.0881035,
0.22163366,
0.07242966,
0.05326357,
0.022892062,
0.027085502,
0.04825894,
0.033327542,
-0.012147229,
-0.029340336,
-0.05653583,
0.015825083,
-0.0069501125,
0.003151955,
0.023552014,
0.011982242,
0.053318568,
-0.044546716,
-0.01410646,
0.017832436,
-0.033327542,
-0.04823144,
0.03624233,
0.030632742,
0.04176942,
0.015440111,
0.03915711,
-0.003554113,
-0.011040436,
0.001502936,
-0.012195351,
0.039569583,
-0.047791474,
0.02250709,
-0.025394376,
-0.006011744,
0.031265195,
-0.007706307,
-0.022823317,
0.008758104,
-0.014793909,
-0.02168215,
0.03277758,
-0.014656419,
-0.025985584,
-0.013309019,
0.036957275,
-0.01363212,
-0.012649067,
0.043694276,
-0.040367022,
0.005826133,
-0.009583043,
0.00705323,
-0.03459245,
-0.041741922,
0.011226047,
0.015522605,
-0.038744643,
-0.06808498,
-0.017791187,
0.04025703,
0.039927054,
0.006190481,
0.045234162,
0.010957941,
0.04042202,
-0.014876403,
-0.004966821,
-0.047269013,
0.0019832912,
-0.0028322912,
-0.00969991,
-0.0063210963,
-0.051861174,
-0.007238841,
0.03420748,
0.027085502,
-0.0038840885,
0.028116677,
-0.029120352,
-0.005633647,
-0.003201795,
-0.047104027,
-0.0131784035,
0.0054445984,
0.02412947,
0.017447464,
-0.041714422,
0.0026466798,
-0.018121164,
0.06709505,
0.04897389,
-0.013034039,
0.029450327,
0.03159517
] | The logs for worker can be viewed using kubectl logs -n kubeflow <pod name>. Add -f to stream the logs, for example: |
[
0.026192065,
-0.0066815754,
-0.052239742,
0.03139005,
0.0048803296,
-0.04409623,
-0.010634209,
-0.026986202,
0.036819056,
0.04813911,
0.014872011,
0.014648208,
0.042305816,
-0.071558915,
-0.015969362,
0.016720183,
-0.0029707924,
-0.019968923,
-0.05550292,
-0.035692826,
-0.0036801007,
-0.008641649,
-0.08068427,
-0.029484121,
-0.05489649,
0.00243836,
-0.048427887,
-0.027534878,
0.04839901,
0.026293136,
-0.10436397,
-0.014020119,
-0.00537847,
-0.06457052,
-0.020459844,
-0.03323822,
0.027188346,
-0.019333614,
-0.07542852,
-0.040717542,
0.00874994,
0.0147565,
-0.0017073934,
-0.06000784,
-0.014186165,
0.014308895,
0.0061653866,
0.010850792,
0.010432065,
0.0014213239,
-0.019622391,
0.08149284,
0.01263399,
-0.019015959,
-0.0040356573,
-0.016474722,
-0.0018608061,
-0.04161275,
0.00009943626,
-0.004385799,
0.024098432,
0.006010169,
-0.007688685,
-0.037078954,
0.011854292,
0.0036999541,
-0.010136069,
0.0052954466,
-0.006490261,
-0.020820815,
-0.024343893,
-0.00044151282,
-0.035432927,
-0.052355252,
0.002411287,
0.033584755,
0.015954923,
-0.0013987632,
-0.0035176636,
0.012735061,
0.03075474,
0.051026877,
-0.005974072,
-0.00041601923,
-0.027722582,
-0.033786897,
0.024055116,
-0.05377026,
-0.016994521,
-0.019290296,
-0.06537909,
0.03886937,
-0.016546916,
0.012330773,
0.0046781856,
0.004985011,
-0.022885568,
0.041237343,
-0.04900544,
-0.022091433,
0.04649308,
0.069537476,
-0.023174345,
0.03736773,
-0.04499144,
-0.025513439,
0.03551956,
-0.014633769,
-0.03228526,
-0.02450272,
-0.0061148508,
0.010280457,
-0.014474942,
0.016662426,
0.033555876,
-0.000038691593,
-0.02525354,
-0.005486761,
0.0026820155,
-0.032545157,
0.08126182,
-0.028819935,
0.03525966,
-0.03401792,
0.027145028,
-0.018481722,
-0.004887549,
0.040168867,
0.008222923,
-0.000025112873,
0.016315894,
-0.014381089,
-0.05076698,
-0.006439725,
0.046955124,
-0.012092533,
0.004172826,
-0.002638699,
0.038234062,
-0.0126556475,
-0.0009439395,
-0.00023023189,
-0.014814255,
0.073811375,
0.01611375,
-0.02301552,
0.009984462,
0.002562895,
-0.04172826,
0.021268418,
-0.010071094,
-0.0052304715,
0.02238021,
0.0060787536,
-0.016272578,
0.0064541637,
-0.03462435,
0.039562434,
0.020575354,
0.051229022,
-0.035201903,
0.0017227347,
-0.019405808,
0.032574035,
0.0026693814,
0.04816799,
-0.0107425,
-0.051200144,
-0.0055445163,
-0.04727278,
0.016980082,
0.011334494,
-0.0107208425,
-0.008345652,
0.063299894,
0.017788658,
0.059488043,
-0.00060959,
-0.00013198006,
0.022900008,
-0.0029816215,
-0.012013119,
0.010829134,
0.030263819,
0.010395968,
0.026682986,
-0.02626426,
0.012410187,
0.026076553,
0.030437086,
-0.029830653,
0.045800015,
-0.04224806,
0.03075474,
-0.03840733,
-0.021528319,
-0.028560035,
-0.0018716353,
-0.0025051397,
-0.051084634,
0.012417407,
0.053712502,
-0.018019678,
-0.008136289,
-0.0034544936,
-0.007811415,
-0.0017877095,
0.041179586,
0.015146349,
0.027448244,
0.074042395,
-0.0035790286,
-0.044847053,
-0.022322454,
0.019117031,
0.002788502,
0.0006086876,
-0.0018716353,
-0.011283957,
-0.050045036,
0.050189424,
-0.03240077,
-0.0044471645,
-0.018452844,
0.030552596,
-0.032689545,
-0.03953356,
0.03202536,
0.07294504,
0.0128289135,
0.00861999,
0.010388749,
0.027217222,
0.0322275,
-0.0035537607,
0.015853852,
0.07184769,
0.0272461,
0.004822574,
0.0104898205,
-0.00021714669,
0.028646668,
0.02688513,
-0.001976317,
0.018654987,
-0.0067573795,
-0.012041997,
0.023362052,
-0.046059914,
0.019088153,
-0.07802752,
0.029310856,
-0.029657388,
0.011796536,
-0.02450272,
-0.015853852,
-0.03450884,
0.008316775,
-0.009926706,
0.016647989,
0.019535758,
-0.00587661,
-0.022105873,
-0.0014953229,
0.037541,
0.07207871,
-0.007450444,
0.003288447,
0.012027558,
-0.029570755,
-0.010987961,
-0.017442124,
-0.022452405,
-0.051835455,
-0.047792576,
0.007905268,
0.05137341,
-0.028964324,
0.027202783,
-0.0032902518,
0.021947045,
0.066822976,
-0.016907888,
0.024979202,
0.018842693,
0.04161275,
-0.06214479,
0.021210663,
-0.024574915,
-0.025166906,
-0.027506,
-0.0009285982,
0.0033786898,
0.0020557307,
0.048889928,
0.0068945484,
0.018568356,
-0.016806815,
-0.038696107,
-0.006898158,
-0.0116304895,
-0.015911607,
-0.013478662,
0.002474457,
-0.010821914,
0.044673786,
-0.0032722033,
-0.04265235,
0.030552596,
0.008533358,
-0.014612111,
0.022856692,
-0.035086393,
0.030668106,
-0.050304934,
0.03113015,
0.047850333,
0.00022132043,
-0.034682106,
-0.040833052,
-0.02162939,
0.021152908,
-0.013471442,
-0.052817296,
-0.040399887,
0.0292531,
-0.07317606,
-0.053828016,
0.021918166,
-0.033815775,
0.008490041,
-0.0008821232,
-0.012258579,
0.044702664,
-0.024560476,
0.011291177,
-0.06514807,
0.012143069,
-0.033873532,
0.024820374,
0.023809655,
-0.007710343,
0.025672266,
0.020647548,
-0.006270068,
-0.02587441,
0.051315654,
-0.009240861,
0.0095224185,
-0.023260979,
-0.0043352633,
-0.024444964,
0.021961484,
0.021022959,
0.03424894,
0.03251628,
-0.036010478,
-0.0022434355,
-0.0027217222,
0.04314327,
-0.004559065,
0.018828254,
-0.02373746,
-0.020272138,
-0.032660667,
-0.021109592,
-0.0059199263,
0.021138469,
0.037541,
-0.07485097,
0.033584755,
-0.0402555,
-0.00087355013,
-0.00588022,
-0.0020394868,
-0.025166906,
0.025730021,
0.029541876,
0.061798256,
-0.015853852,
-0.045540117,
0.0068909386,
0.028314576,
0.0020809986,
0.031823214,
-0.0050102794,
-0.002151388,
0.038320694,
-0.022842253,
-0.0070425468,
0.018091872,
-0.0016388089,
-0.018192945,
-0.011356152,
-0.019319175,
-0.004649308,
0.012937205,
0.029426366,
0.03263179,
0.02350644,
0.06364643,
-0.007760879,
-0.019954484,
0.0053495923,
-0.035808336,
-0.029657388,
-0.018929325,
0.026928445,
0.039418045,
0.0069667427,
0.01012885,
0.008533358,
-0.00712196,
0.023029957,
-0.014583234,
-0.02675518,
-0.02988841,
0.014446065,
0.0063278237,
0.018423967,
-0.0036710764,
-0.05914151,
-0.040457644,
0.057668746,
0.04799472,
-0.001525103,
-0.021759339,
-0.017456563,
-0.0069450843,
-0.024055116,
-0.012800036,
-0.06098968,
0.0031801555,
-0.0029166467,
-0.07635261,
0.061971523,
0.020806376,
-0.039244782,
-0.05452108,
-0.038176306,
-0.02536905,
0.0006714063,
-0.007926926,
-0.02100852,
-0.0070822537,
0.023650829,
-0.012720622,
0.002200119,
-0.053481482,
0.016445845,
-0.023881849,
-0.0069559137,
0.040139988,
-0.023289857,
0.042161427,
-0.015550636,
0.0019330004,
0.009507979,
0.023665266,
0.040717542,
-0.025311295,
0.039071515,
0.0064649926,
-0.06711175,
-0.035866093,
0.015579514,
0.004985011,
0.00076751487,
0.05284617,
0.01687901,
0.015131909,
0.021239541,
-0.008518918,
-0.023174345,
0.0055733942,
-0.028675547,
0.035432927,
-0.00437497,
0.015464003,
0.024083994,
-0.023535317,
0.039100394,
-0.026827374,
0.03214087,
0.015334053,
-0.047908086,
-0.008323994,
0.013031058,
0.00750098,
0.016604671,
0.034566596,
0.010800256,
-0.008013559,
0.008742721,
0.0027433806,
-0.007674246,
-0.029527439,
-0.019102592,
0.076063834,
0.04522246,
0.028964324,
-0.04499144,
-0.036443643,
0.041064076,
-0.0018283187,
-0.005071644,
-0.017268859,
0.004826184,
-0.012670087,
0.0055336873,
-0.0440096,
0.011883169,
-0.00007845482,
-0.009161447,
0.018062996,
-0.012735061,
0.0013139349,
0.005158277,
-0.008071315,
0.021831533,
0.008425066,
-0.06745829,
-0.04198816,
-0.0067465506,
0.0078402925,
-0.02562895,
0.030899128,
-0.022336893,
-0.0399956,
0.00047512824,
0.048832174,
-0.040428765,
-0.00079052674,
-0.001181278,
-0.04914983,
0.0117460005,
0.023492001,
0.00093040307,
-0.074042395,
0.0027542098,
-0.023968482,
0.016474722,
-0.048947684,
0.018452844,
-0.0036223452,
-0.039591312,
-0.039100394,
0.04816799,
0.02313103,
0.01424392,
0.014359431,
0.004100632,
-0.0028679157,
0.05365475,
-0.07017279,
-0.019088153,
0.0009019766,
0.0059090974,
-0.010807475,
0.020286577,
-0.03765651,
0.01313213,
-0.018481722,
0.013413687,
-0.034566596,
-0.0006759184,
-0.050189424,
-0.0015539808,
0.029772898,
0.010922986,
0.052788418,
-0.008027998,
0.02737605,
-0.0015602977,
0.05299056,
0.004551846,
-0.008071315,
0.004486871,
-0.07820079,
0.031678826,
-0.01124786,
-0.020041117,
0.0074721025,
0.03199648,
0.02938305,
-0.05763987,
0.015319615,
0.049034316,
0.012980522,
0.015810536,
-0.030292697,
0.04164163,
0.008165167,
-0.031649947,
-0.012994961,
0.0051402287,
-0.020041117,
-0.008194044,
-0.006836793,
-0.022741182,
0.017846413,
-0.015435126,
0.00737825,
-0.012735061,
0.054145668,
-0.02850228,
-0.055676185,
-0.027664827,
0.04539573,
-0.008194044,
0.006277288,
0.04811023,
0.008114631,
-0.0067682085,
0.048832174,
-0.030061675,
0.012215263,
-0.002088218,
0.057437725,
0.008598332,
-0.02887769,
0.028083554,
0.017110031,
-0.015651708,
-0.051922087,
0.022466842,
0.053077195,
-0.0018644158,
0.03211199,
-0.0017245396,
0.0038443424,
-0.014727622,
0.03575058,
0.007869171,
0.012980522,
0.008533358,
0.025441244,
0.0038587814,
-0.04860115,
-0.011024058,
0.047965843,
-0.05264403,
-0.035201903,
-0.027823655,
-0.039042637,
-0.016185945,
-0.027477123,
0.017167786,
-0.026206505,
-0.0014113971,
0.034422208,
-0.022322454,
0.09090697,
0.0067429407,
0.028069114,
-0.029022079,
0.009327494,
-0.03037933,
0.032833934,
-0.026971763,
-0.023679705,
0.03188097,
-0.0050319373,
0.029368611,
0.0030393768,
-0.0095224185,
-0.0051835454,
-0.04178602,
0.02076306,
-0.029267538,
0.0053604213,
0.047070634,
0.004775648,
-0.011904827,
0.0014375675,
0.0199978,
-0.026639668,
-0.05174882,
-0.0072230324,
-0.023203224,
-0.010800256,
-0.0124607235,
0.031794336,
-0.035548437,
-0.030090554,
-0.007688685,
0.01050426,
-0.016084874,
-0.03052372,
-0.049207583,
-0.013558076,
0.03988009,
0.010951864,
0.0037180027,
0.028646668,
-0.021932606,
-0.0014899083,
-0.014929766,
0.035952725,
-0.03774314,
-0.009284178,
0.044587154,
-0.013666367,
0.036992323,
0.003476152,
-0.0031151809,
0.01462655,
-0.013290957,
0.056946807,
0.007038937,
-0.009110911,
-0.0082518,
0.084784895,
-0.028921006,
0.00862721,
-0.013413687,
0.0071833255,
0.0076814657,
-0.0036566374,
0.0004895671,
0.01937693,
0.00024388112,
0.02775146,
0.016460283,
0.0660144,
0.00079097797,
0.042219184,
0.028704423,
0.004898378,
-0.024690425,
-0.014482162,
0.023809655,
0.018481722,
-0.004324434,
0.05200872,
0.0054037375,
0.010894109,
0.0024925056,
-0.029065395,
0.0014231286,
0.06982625,
0.007421566,
0.016431406,
0.011348932,
0.012049216,
-0.021080714,
0.01950688,
-0.029484121,
-0.0142006045,
-0.00064072374,
-0.05452108,
-0.0066274297,
-0.026697425,
-0.013529198,
0.009421347,
0.007688685,
0.00010163593,
0.016893448,
-0.040804178,
0.0014339578,
0.034653228,
-0.051084634,
-0.045857772,
-0.02487813,
0.053914648,
-0.040573154,
-0.03124566,
-0.008721062,
0.07323382,
-0.029484121,
0.022972202,
-0.03315159,
-0.04097744,
0.02199036,
0.0252391,
-0.03713671,
0.0017200274,
-0.04178602,
0.003912927,
-0.014373871,
0.0010080119,
-0.040717542,
0.033671387,
-0.0020918276,
0.008273458,
-0.0062448005,
0.03101464,
0.01150054,
-0.054174546,
-0.003162107,
0.018221822,
0.004237801,
-0.017976362,
0.02362195,
-0.026509719,
0.017110031,
0.016806815,
-0.004728722,
-0.0073060556,
0.047561556,
0.014619331,
0.00047422582,
-0.022394648,
-0.0028480622,
-0.002400458,
-0.01212863,
-0.0013581539,
-0.04961187,
-0.034768738,
-0.03560619,
0.023347612,
0.016922327,
-0.0005915414,
0.033671387,
0.01424392,
0.0042955563,
0.019968923,
-0.029946165,
-0.03416231,
0.02450272,
0.014041777,
0.028588913,
0.022567915,
0.028141309,
-0.0019438295,
0.023650829,
0.027448244,
0.016099311,
-0.016777938,
-0.00549759,
0.012922767,
-0.05463659,
0.014662647,
-0.014344992,
0.025412368,
-0.017774219,
-0.04308551,
-0.038089674,
0.06364643,
-0.02585997,
-0.015204104,
-0.022293577,
0.0017398808,
-0.033786897,
-0.06913319,
-0.01162327,
-0.06364643,
0.0052557397,
0.006699624,
0.0027072835,
-0.036183745,
0.012208044,
0.006150948,
0.03139005,
0.040688664,
0.019304736,
0.022033678,
0.059545796,
0.04063091,
-0.00032893493,
0.014099532,
0.011810975,
-0.040688664,
-0.024719303,
-0.0048803296,
0.05261515,
-0.012041997,
0.0019149518,
-0.039822336,
0.021687144,
0.03202536,
-0.01862611,
-0.0054687127,
0.027563754,
-0.010858011,
-0.030437086,
-0.02688513,
0.08235917,
0.00825902,
0.048658907,
-0.014677086,
0.008937645,
-0.06116295,
-0.023304297,
0.01524742,
0.012157507,
0.021066274,
-0.053134948,
-0.010078314,
-0.027650388,
0.015738342,
-0.009717342,
-0.016373651,
0.008049656,
0.022365771,
0.050304934,
0.077161185,
0.02149944,
-0.038147427,
-0.025946604,
0.06826686,
0.022351332,
0.038436204,
0.0665342,
0.04588665,
-0.0020051945,
-0.015435126,
0.00987617,
0.045626752,
0.0099989,
-0.010266019,
0.017023398,
-0.040486522,
-0.021326175,
-0.060816415,
-0.009941145,
0.042074796,
-0.0046348693,
0.004151168,
-0.0078980485,
-0.060700905,
-0.051691066,
-0.0056419787,
-0.034335572,
0.016070435,
-0.011435566,
-0.030292697,
0.007638149,
-0.0745622,
0.24649996,
0.05691793,
0.041959282,
0.017860852,
0.020950764,
0.068209104,
0.012482381,
-0.034422208,
-0.0042486303,
-0.028069114,
0.01601268,
-0.022235822,
0.008562235,
-0.0017750756,
-0.034653228,
0.02262567,
-0.034826495,
-0.029715143,
-0.035201903,
-0.040688664,
-0.0070317173,
0.0330072,
0.052701786,
0.05937253,
-0.014886449,
-0.023159908,
-0.026914008,
-0.030234942,
0.020546477,
-0.049987283,
0.0019167566,
-0.0014005679,
-0.003037572,
-0.018034117,
0.01976678,
0.048687786,
0.007363811,
-0.022062555,
-0.001824709,
-0.027592633,
-0.013731342,
-0.0128866695,
0.0120059,
-0.036847934,
0.0066743563,
0.014828694,
-0.02789585,
-0.0045337975,
0.06780481,
-0.06202928,
0.029094273,
-0.03886937,
0.038147427,
-0.014359431,
-0.06110519,
0.008316775,
-0.019319175,
-0.04363419,
-0.02373746,
-0.0024058726,
0.033786897,
0.033786897,
0.0006637357,
0.05478098,
-0.008323994,
0.004735941,
-0.049842894,
0.028675547,
-0.038667228,
-0.0055336873,
0.022235822,
0.025845533,
-0.040804178,
-0.07485097,
-0.011096252,
0.0075587356,
0.04874554,
0.023852972,
-0.015738342,
-0.02962851,
0.0076959045,
0.0075731743,
-0.0031458633,
0.008836573,
-0.005912707,
0.036010478,
0.0075948327,
-0.03251628,
0.05065147,
0.014633769,
0.008323994,
0.04900544,
-0.0039923405,
-0.0007454054,
0.061451726
] |
kubectl logs -n kubeflow transformers-pytorchjob-worker-0 -f
After the training job completes, the trained model can be copied from the PVC or storage location. When you are done
with the job, the PyTorchJob resource can be deleted from the cluster using kubectl delete -f pytorchjob.yaml.
Summary
This guide covered running distributed PyTorch training jobs using multiple CPUs on bare metal and on a Kubernetes
cluster. Both cases utilize Intel Extension for PyTorch and Intel oneCCL Bindings for PyTorch for optimal training
performance, and can be used as a template to run your own workload on multiple nodes. |
[
0.059854526,
-0.024854101,
-0.042544376,
0.042251974,
0.032368813,
-0.03137465,
0.00981737,
0.008976717,
0.048187718,
0.033538416,
0.005084126,
-0.026038326,
0.060702488,
-0.02704711,
-0.035906866,
0.017777992,
-0.0052339816,
-0.016140547,
-0.03163781,
-0.015848145,
0.0054130773,
0.03175477,
-0.02678395,
-0.010168252,
-0.06684291,
0.028655319,
-0.03409398,
-0.023845319,
0.047339756,
0.03848,
-0.05172577,
-0.030205045,
0.0073940954,
-0.040439088,
-0.014188768,
-0.010489893,
0.017383251,
-0.00010822271,
-0.06263234,
-0.07777872,
0.030029604,
0.0014199733,
-0.0030903153,
-0.020833585,
-0.027003251,
0.0002935434,
-0.0024671352,
0.012989923,
0.047164313,
0.009364149,
-0.028552977,
0.062222976,
-0.0020066032,
-0.035936106,
-0.020979786,
0.013136124,
-0.027646534,
0.004550494,
-0.014247249,
-0.009312978,
-0.035439026,
0.018669816,
-0.011410957,
-0.04400638,
0.00978813,
0.008150684,
-0.009035197,
-0.02685705,
-0.014218008,
-0.021155227,
-0.02921088,
0.045556106,
-0.04093617,
-0.07479623,
-0.032836653,
0.018976837,
0.017544072,
0.00605636,
0.043099936,
-0.0034393691,
0.027734254,
0.061462734,
0.0050439206,
-0.03845076,
-0.03394778,
-0.0052376366,
-0.0003054222,
-0.028026655,
0.00039725445,
-0.01660839,
0.0012618939,
0.031140728,
0.00018297919,
-0.020599665,
0.007299065,
0.01937158,
-0.010285213,
0.015877385,
-0.022661094,
0.014890531,
0.04450346,
0.081112094,
0.013033783,
0.014912461,
-0.048158478,
0.024093859,
0.04640407,
-0.02902082,
-0.008837827,
-0.025468145,
0.014027948,
0.020745866,
0.023947658,
0.007858282,
0.016286748,
0.0088451365,
-0.003410129,
-0.013326185,
-0.026374588,
-0.012624422,
0.016286748,
-0.0052010864,
0.037895195,
-0.022324832,
-0.018070394,
-0.01459813,
-0.01947392,
0.04169641,
0.0036897378,
0.03169629,
-0.01456158,
-0.039620362,
-0.009488419,
0.022865774,
0.020848205,
0.00487579,
-0.014919771,
0.021301428,
0.046754953,
-0.03660863,
-0.0033315462,
-0.041053127,
-0.0050183358,
0.08029337,
0.025365803,
0.004704004,
0.006791018,
0.020833585,
-0.04175489,
-0.0052010864,
-0.024795622,
0.04081921,
-0.00035225207,
0.011966519,
-0.033012096,
0.020175682,
-0.019941762,
0.03631623,
0.020643525,
0.025307324,
-0.040760726,
-0.02418158,
0.0057274085,
0.003867006,
0.023757597,
0.03850924,
-0.021067506,
-0.03415246,
0.0040424466,
-0.050322246,
0.020044101,
0.025512004,
-0.0025749581,
0.042778295,
0.06099489,
0.00026544547,
0.040731486,
0.00984661,
0.0029934573,
0.01704699,
0.0071930694,
-0.0066082673,
-0.012829103,
0.064737625,
-0.017661033,
0.018816017,
0.019971002,
0.017836474,
0.013830577,
-0.006893358,
-0.011783768,
0.0065022716,
-0.037193432,
0.061579693,
-0.03213489,
-0.037047233,
-0.024912583,
0.0021783889,
0.014144908,
-0.035497505,
-0.008194543,
0.05353866,
-0.01214196,
-0.021272188,
-0.011220896,
-0.00610022,
0.00308666,
0.05052693,
0.010584923,
0.009269118,
0.037982915,
0.014949012,
-0.025643585,
-0.02422544,
0.022602612,
-0.010760364,
-0.002174734,
0.03362614,
-0.026155287,
-0.073451184,
0.04160869,
-0.0012564114,
0.048216958,
0.034298662,
-0.017441731,
-0.018216595,
0.003647705,
0.04081921,
0.0034009914,
-0.00975158,
0.011293996,
0.025497384,
0.0059722946,
0.08912388,
-0.00729541,
0.015818905,
0.053977262,
0.018508997,
0.009071747,
-0.011008905,
0.019342339,
0.01216389,
-0.0066155773,
0.018874498,
-0.005054886,
-0.023435956,
-0.01464199,
0.010263282,
-0.04093617,
0.0432169,
-0.07064413,
0.010475273,
-0.042953737,
0.006425516,
-0.03646243,
-0.047602914,
-0.041842613,
0.04602395,
-0.013618586,
0.028465256,
0.006016155,
0.0031944832,
-0.04894796,
-0.021725409,
0.037164193,
0.09579063,
-0.04078997,
0.024123099,
-0.0101828715,
-0.027514953,
-0.015336443,
-0.0029952847,
-0.0066484725,
-0.029927263,
-0.045088265,
0.03213489,
0.03634547,
-0.019722462,
0.02226635,
-0.010387553,
0.00097132026,
0.062456895,
-0.018231215,
0.023026595,
-0.024985682,
-0.014020638,
-0.05102401,
-0.0045651137,
-0.051842734,
0.0017343046,
-0.01722243,
0.023377476,
-0.002582268,
-0.03394778,
0.037602793,
0.002315452,
0.0030738676,
0.0035088144,
-0.020994406,
-0.009554209,
-0.057836957,
-0.041930333,
-0.012953374,
-0.02678395,
-0.027134832,
0.037047233,
0.0016136891,
-0.028012035,
0.035322066,
0.03663787,
-0.035526745,
0.025438905,
0.035234343,
-0.018552857,
-0.05043921,
0.028436016,
0.03614079,
-0.010117082,
-0.028436016,
-0.013296945,
-0.04859708,
-0.02440088,
0.011703358,
-0.041842613,
-0.01466392,
0.044298783,
-0.04371398,
-0.037807476,
0.037573554,
-0.013311565,
-0.031199208,
-0.012412431,
-0.038012154,
0.047398236,
-0.018801397,
0.030409725,
-0.02884538,
-0.0042763674,
0.0048282747,
0.025278084,
0.009473799,
0.0014007845,
0.011842249,
0.011608328,
-0.00616601,
-0.0108407745,
0.0878958,
-0.034766503,
0.020102583,
-0.03181325,
-0.003536227,
0.00037760873,
0.017602552,
0.020818966,
0.020979786,
0.05169653,
-0.057369117,
-0.015438783,
-0.006074635,
0.012375881,
0.0038743159,
0.03394778,
0.02666699,
-0.0027577088,
-0.006045395,
-0.04178413,
-0.02179851,
0.03155009,
0.02910854,
-0.083977625,
0.0054898327,
-0.020892065,
-0.009013267,
-0.01698851,
-0.032456532,
-0.02691553,
0.0036349124,
0.02188623,
0.057135195,
0.0128364125,
-0.035263583,
0.00057429424,
0.01950316,
0.007843662,
0.010416793,
0.023158176,
-0.00968579,
0.047456715,
-0.055468507,
-0.035439026,
0.03640395,
-0.02912316,
0.023143554,
-0.02644769,
-0.04330462,
0.009356839,
-0.00011753158,
0.04845088,
0.03608231,
0.0337431,
0.046637993,
-0.010848084,
-0.010365622,
0.015219483,
-0.015965106,
-0.0052559115,
-0.027836595,
0.025979847,
0.06614115,
0.015862765,
-0.025804406,
0.00183299,
-0.012712142,
-0.0014629198,
-0.014298419,
-0.0055044526,
-0.02195933,
0.03912328,
0.010475273,
0.016096687,
0.0083115045,
-0.057544556,
-0.0538603,
0.017587932,
0.047047354,
0.009232568,
0.01722243,
-0.012500151,
0.018859878,
0.0059649847,
-0.04155021,
-0.051550332,
0.026096808,
-0.018158115,
-0.063743465,
0.043158416,
0.0056762383,
-0.027222551,
-0.030760607,
-0.02948866,
-0.007953312,
0.011191656,
-0.03125769,
0.011791078,
-0.033889297,
0.04812924,
0.028757658,
-0.008231094,
-0.04859708,
-0.0070797643,
0.005829749,
-0.03131617,
0.020248784,
-0.026052946,
0.054971427,
0.019985622,
0.0077559417,
-0.0013020991,
0.01684231,
0.027924314,
-0.02919626,
0.020453464,
0.03435714,
-0.011864179,
-0.0064108963,
0.024137719,
0.02905006,
0.018275075,
0.045526866,
0.011432887,
-0.015862765,
0.042515136,
0.017704893,
-0.042485893,
0.0024671352,
-0.0074050603,
0.045877747,
0.010928495,
0.0038816258,
0.030088084,
-0.030555926,
0.054474343,
-0.011666808,
0.0021199088,
-0.01222237,
-0.047807597,
-0.029927263,
0.026067566,
-0.007624361,
0.054708265,
0.008114133,
-0.00029788373,
-0.010672644,
-0.022134772,
-0.019356959,
-0.04143325,
-0.06701835,
-0.036725592,
0.03687179,
-0.00486848,
0.014071808,
-0.040088203,
-0.03880164,
0.05169653,
-0.023479816,
-0.029912643,
-0.013954847,
-0.00023083705,
-0.013282324,
-0.028202096,
-0.064971544,
0.030614406,
-0.017821854,
-0.027851215,
0.012938753,
-0.003863351,
0.020716624,
-0.0012491014,
-0.0015405888,
0.05049769,
-0.006801983,
-0.049942125,
-0.039825045,
0.032456532,
-0.012646352,
0.005175501,
0.015950486,
-0.02905006,
-0.037105713,
0.00039382785,
0.026988631,
-0.0778372,
0.003428404,
0.0012353951,
-0.048158478,
0.008245714,
0.011074696,
0.021491488,
-0.060702488,
-0.00042923584,
-0.030117324,
0.028509118,
-0.0440941,
-0.014956322,
-0.016111307,
-0.025058784,
-0.0445327,
0.043363098,
-0.005277842,
0.010402173,
-0.005343632,
-0.023611397,
-0.001517745,
0.045556106,
-0.023933038,
-0.035555985,
-0.04114085,
-0.0025804406,
0.00009931361,
0.018143494,
-0.00736851,
0.037427355,
-0.015994346,
-0.008282264,
-0.03695951,
-0.02943018,
-0.0246348,
0.015161002,
0.03599459,
0.010774984,
-0.0011604673,
0.04640407,
0.020658145,
0.028918479,
0.013669756,
0.0024890653,
-0.047924556,
0.018435895,
-0.040380605,
0.017894953,
-0.0069372184,
-0.015102522,
0.018318934,
-0.015833525,
0.016681489,
-0.0389186,
0.015321823,
0.03663787,
-0.011988449,
-0.0149709415,
-0.064737625,
-0.0031378304,
0.03903556,
-0.02665237,
-0.010855394,
0.037602793,
-0.020468084,
-0.002578613,
-0.002041326,
-0.066784434,
0.008925547,
-0.01462006,
0.0075951214,
-0.016710728,
0.069649965,
0.021067506,
-0.020585045,
-0.038333796,
0.037690517,
0.0071784495,
-0.010789604,
0.015921246,
0.010818845,
0.0019536056,
0.02660851,
-0.017821854,
0.018289695,
0.016155167,
0.054737505,
0.000693996,
-0.047983035,
0.022909634,
0.016125927,
-0.027354132,
-0.05660887,
0.047310513,
0.023596777,
0.011959209,
0.032281093,
-0.035526745,
0.016301367,
-0.022310212,
0.010511823,
-0.033421457,
0.05081933,
-0.0064839968,
-0.039620362,
0.0074452655,
-0.02948866,
0.030088084,
0.043158416,
-0.034678783,
-0.000099713376,
-0.03932796,
-0.037251912,
-0.06643356,
0.009883161,
0.06134577,
0.0012819965,
0.013136124,
0.047807597,
-0.039094042,
0.03400626,
0.02688629,
0.013201914,
0.0076536015,
-0.007543951,
-0.020365743,
0.020906685,
0.0047661397,
-0.0010471618,
-0.030146563,
-0.032836653,
-0.0036751176,
0.013465075,
-0.0006802897,
-0.022997355,
-0.035088144,
-0.009890471,
-0.02166693,
-0.008625835,
0.002437895,
-0.007558571,
-0.034883462,
-0.008055653,
0.005157226,
0.0010928495,
-0.037222672,
0.007010319,
-0.0032164133,
0.00025470887,
-0.05169653,
0.0037865955,
-0.04353854,
-0.056988996,
-0.037807476,
0.033830818,
-0.00074790744,
-0.04655027,
-0.052983098,
-0.009342219,
-0.0034083014,
0.046813432,
0.027354132,
0.030789847,
-0.004071687,
-0.047690637,
-0.008486945,
0.04631635,
-0.05383106,
-0.019722462,
0.005745684,
-0.033450697,
0.012046929,
0.0123100905,
-0.020614285,
0.01660839,
0.007872903,
0.055497747,
-0.023289755,
0.0057237535,
-0.010234042,
0.035731427,
-0.04599471,
0.021476869,
-0.0069445283,
-0.03634547,
-0.009554209,
0.040526807,
-0.004371398,
0.0039876215,
0.055322308,
-0.0016657731,
0.030789847,
0.033538416,
0.041930333,
0.024897963,
-0.009305668,
-0.022982735,
-0.037865955,
-0.039971244,
0.06140425,
0.078422,
-0.040439088,
0.05570243,
-0.026199147,
-0.012463601,
-0.042544376,
0.009590759,
-0.01983942,
0.06052705,
-0.00076938065,
0.037047233,
0.016535288,
-0.011162416,
0.0037719754,
0.017339392,
-0.04903568,
-0.024576321,
0.011045455,
-0.030848326,
-0.021564588,
-0.024620181,
-0.020409605,
-0.01924,
0.023611397,
-0.00979544,
0.0021473214,
-0.0009160381,
0.0100439815,
0.035906866,
-0.03973732,
-0.007858282,
0.0044920132,
0.007558571,
-0.012770622,
-0.027997416,
-0.0031506228,
0.054211184,
0.008655076,
0.0034265765,
-0.033801578,
-0.037661273,
0.016184406,
0.032573495,
-0.02209091,
0.040585287,
-0.025906747,
0.020848205,
0.020336503,
0.010789604,
-0.05178425,
0.02190085,
0.015438783,
-0.004426223,
-0.0055227275,
0.043070696,
0.045439146,
-0.021213707,
0.0025091679,
0.0032292057,
0.017704893,
-0.005646998,
0.00059439684,
-0.016184406,
0.020190302,
0.016184406,
0.03441562,
0.018421276,
0.032982856,
-0.004704004,
-0.034737263,
-0.0340355,
0.04160869,
-0.0025164778,
0.005829749,
0.020716624,
-0.022471033,
0.012887583,
-0.036725592,
0.006370691,
-0.022427171,
0.0045541488,
0.0050329557,
0.00970041,
0.004181337,
-0.01937158,
-0.00010096979,
-0.010160942,
0.009656549,
-0.047544435,
0.005175501,
0.012675592,
-0.033392217,
0.025014922,
0.01232471,
0.043889422,
-0.007631671,
0.0005646998,
0.026506169,
0.010475273,
-0.058451,
0.040175926,
0.010745744,
0.0062281457,
-0.002582268,
-0.00040045258,
-0.016447568,
0.04406486,
0.01475164,
-0.04207653,
-0.0013249429,
-0.030906808,
0.0034302315,
-0.09432863,
-0.02903544,
-0.023567537,
0.00083425717,
0.010438723,
-0.022646474,
-0.005117021,
0.023538297,
0.0049452353,
0.042836774,
0.034971185,
0.03649167,
0.0084503945,
0.02884538,
0.061696652,
0.019079179,
0.012485531,
-0.010921185,
0.015614224,
-0.016359847,
0.001451041,
0.020775106,
0.0044627734,
0.0005350028,
-0.03169629,
0.03172553,
0.040029723,
-0.0019207104,
-0.06058553,
-0.0007543037,
-0.021213707,
-0.028684558,
-0.028596837,
0.055907108,
0.05619951,
0.029605621,
-0.019956382,
0.0000024949761,
-0.032427292,
-0.0012317401,
0.009970881,
0.03137465,
0.015862765,
-0.060351606,
0.035497505,
0.004078997,
0.028669938,
0.009137537,
-0.027397992,
-0.02425468,
-0.0023666222,
0.05330474,
0.06356802,
0.020760486,
-0.083919145,
-0.022368692,
0.052339815,
0.060234647,
0.014883221,
0.06315866,
0.025965227,
-0.06269082,
0.003168898,
-0.016257506,
0.019313099,
0.009400698,
0.021389147,
0.02438626,
-0.020862825,
-0.046637993,
-0.06795404,
-0.01223699,
0.061521214,
-0.01964936,
0.003391854,
0.01203231,
-0.051813494,
-0.06140425,
-0.049123403,
-0.035906866,
0.013647826,
-0.02945942,
-0.0012481876,
0.024123099,
-0.1018141,
0.25473994,
0.026550028,
0.07970857,
0.0055227275,
0.02445936,
0.035702188,
0.0071784495,
-0.015584984,
0.009349529,
-0.07491319,
0.025088023,
-0.06707683,
-0.010621473,
0.023304375,
0.0021363562,
0.01966398,
-0.018465135,
0.0016356192,
0.0064145513,
-0.027865835,
-0.028450636,
0.015336443,
0.03845076,
0.024766382,
-0.04418182,
0.018830637,
-0.017646413,
-0.044269543,
0.006308556,
0.023465196,
0.017397871,
-0.02209091,
0.038187597,
-0.005131641,
0.02443012,
0.042164255,
0.004879445,
-0.018801397,
-0.0053070816,
-0.02918164,
-0.022675714,
0.025146503,
0.042310454,
-0.018625956,
0.010774984,
0.022164011,
-0.01704699,
-0.0109723555,
0.025687445,
-0.044415742,
0.03617003,
-0.034678783,
0.012624422,
-0.052018173,
-0.03698875,
0.01948854,
0.01966398,
-0.035702188,
-0.054445103,
0.01717857,
0.020263404,
0.037251912,
0.01459082,
0.040146686,
0.011096626,
0.045877747,
-0.009349529,
-0.034883462,
-0.02179851,
-0.023699118,
0.002452515,
-0.010928495,
-0.024093859,
-0.035497505,
0.005855334,
0.012639042,
0.020482704,
-0.0047186245,
0.032251853,
-0.034971185,
-0.00735389,
0.047924556,
-0.057193674,
-0.012470911,
0.001135796,
0.0030848326,
-0.0049817855,
-0.02428392,
-0.004448153,
-0.00729541,
0.03210565,
0.055907108,
-0.028304435,
0.04418182,
0.03412322
] | kubectl create -f pytorchjob.yaml
The kubectl get pods -n kubeflow command can then be used to list the pods in the kubeflow namespace. You should see
the worker pods for the PyTorchJob that was just deployed. At first, they will probably have a status of "Pending" as
the containers get pulled and created, then the status should change to "Running".
NAME READY STATUS RESTARTS AGE |
[
0.030858645,
-0.00038721456,
-0.081082955,
-0.027496949,
-0.007535083,
-0.037811898,
-0.036633864,
0.01958116,
-0.00045792334,
0.046173036,
0.0007820612,
0.006852688,
0.00017856764,
-0.028617514,
0.023618069,
0.020716092,
-0.0034047945,
0.010034806,
0.0077721262,
-0.02703723,
-0.035915554,
0.02878991,
-0.04818431,
-0.03858767,
-0.08102549,
0.006964026,
0.005419657,
-0.004855783,
0.08861086,
0.0045540924,
-0.028574415,
0.0045145852,
0.0069999415,
-0.04358712,
-0.027583146,
-0.035197243,
0.038386546,
-0.010688469,
-0.05223558,
-0.051086284,
0.022770463,
-0.05565474,
0.0037028936,
-0.08286437,
-0.068268284,
0.010738751,
-0.026304552,
-0.032381464,
-0.008583818,
-0.056545448,
0.0081097325,
0.015572985,
-0.017828481,
0.008605367,
-0.038013022,
-0.05441925,
0.004435571,
-0.0118665,
-0.039995562,
-0.0012283119,
-0.03927725,
0.023086518,
-0.0047947266,
-0.036748797,
-0.006568955,
0.0029827869,
-0.036001753,
0.014366222,
-0.0052939528,
-0.0044104303,
-0.056861505,
0.049994454,
-0.013626361,
-0.018115805,
-0.018374398,
0.039449647,
0.028674979,
-0.01558735,
-0.016722282,
-0.0066623352,
0.03197921,
0.080680706,
-0.007337548,
0.01235495,
0.008885508,
0.043156132,
0.04482261,
-0.00840424,
0.023345111,
-0.024250183,
-0.0067593073,
0.026232721,
0.016248196,
0.015831577,
0.037898093,
0.054447982,
-0.0040692324,
0.03479499,
-0.029479487,
0.007384238,
0.054591645,
0.08981762,
-0.06326884,
-0.014157912,
-0.01844623,
0.0068634623,
0.051229946,
-0.0062888134,
-0.010968611,
-0.026534412,
0.050827693,
-0.004805501,
-0.01729693,
0.018058341,
-0.014998335,
0.074589424,
0.00044625078,
0.0091225505,
-0.065567434,
-0.03939218,
0.029149065,
-0.011686921,
-0.054706573,
-0.04200683,
0.0069137444,
-0.028804274,
0.0057069818,
0.0043350076,
0.022554968,
-0.0049635298,
-0.0061523346,
0.016248196,
0.069704905,
0.048385434,
0.0072585335,
0.014912139,
0.016664818,
0.017627355,
0.001655707,
-0.0155442525,
-0.013956784,
-0.011794669,
-0.018647356,
0.053988263,
0.049448535,
-0.04783952,
0.0036885275,
-0.029177796,
-0.065567434,
0.025801735,
-0.012290303,
-0.0065294476,
0.0034047945,
0.028430752,
-0.015759746,
-0.04430543,
-0.032180335,
0.015314393,
0.04600064,
0.02881864,
-0.0063678278,
0.01711017,
-0.015903408,
0.0451674,
-0.009323678,
0.038300347,
-0.023488773,
-0.009108185,
0.009998891,
-0.029335825,
0.03335837,
0.016564254,
-0.0279854,
-0.023143983,
0.043242328,
-0.0062959967,
0.054591645,
0.024106521,
-0.026520045,
-0.0026272228,
-0.023100885,
0.02064426,
-0.031576954,
-0.016880311,
-0.010710019,
-0.009984524,
0.027956668,
0.018589891,
0.014825941,
-0.017052704,
0.00413388,
0.061142642,
-0.042725142,
0.011385231,
-0.0068562794,
0.011284667,
0.00006313281,
0.07068181,
0.043213595,
-0.013410868,
0.019423133,
0.027382018,
-0.011457062,
0.012218472,
-0.006852688,
-0.011385231,
-0.021836657,
0.07849704,
-0.018187637,
0.028904838,
0.04703501,
0.04338599,
-0.04973586,
0.00031134297,
0.017785383,
-0.030542588,
0.005631559,
0.049764592,
0.010372412,
0.002779864,
0.036662597,
-0.015716646,
0.059706017,
0.019351302,
-0.006852688,
0.003595147,
0.0011753365,
0.03726598,
-0.028617514,
0.010264666,
0.012685374,
0.048730224,
0.043472186,
0.03470879,
0.003288069,
0.0063857855,
-0.0007569203,
-0.0038034571,
-0.008246211,
0.011478611,
0.037696965,
0.02779864,
0.0052077556,
0.058240663,
-0.026405117,
-0.012125092,
-0.019897217,
-0.0107603,
0.0032934563,
0.02452314,
-0.052034456,
0.04479388,
0.022942856,
-0.0091225505,
-0.04077134,
-0.017541157,
-0.014689462,
0.0054232487,
-0.023733,
-0.020069612,
0.027367653,
0.020198908,
-0.0269223,
-0.009093818,
0.04548346,
0.020888487,
0.03315724,
0.0038752884,
-0.013834672,
-0.051574737,
-0.020601163,
-0.06171729,
-0.062004615,
0.020989051,
-0.043414723,
0.026232721,
-0.034507666,
-0.060223203,
0.02239694,
-0.051574737,
0.00033176993,
0.0010639983,
0.0045935996,
0.008361141,
0.009057903,
0.03209414,
-0.046144303,
-0.015070166,
-0.021937221,
-0.012110725,
-0.008239028,
-0.043673314,
-0.01410763,
-0.042524017,
0.024767367,
0.022109615,
0.019035244,
-0.011536076,
-0.012958332,
-0.05088516,
-0.021147078,
0.01175157,
-0.035829358,
0.049477268,
-0.020242007,
-0.0057824044,
0.052407976,
0.016837211,
0.061774753,
0.03220907,
-0.003523316,
0.011428329,
-0.0022734546,
-0.0049886703,
-0.04327106,
0.06648687,
0.030169066,
-0.005922475,
-0.022210179,
-0.019552428,
-0.034306537,
0.018546792,
-0.007463252,
-0.017383128,
-0.0064755743,
0.06194715,
-0.039191052,
-0.07252069,
0.0070825475,
-0.036289077,
0.013288755,
0.0045289514,
-0.00851917,
0.016751016,
0.0070717726,
0.042725142,
-0.014452419,
-0.012254387,
-0.028272724,
0.003110287,
0.0052005723,
-0.0017320276,
0.0017652495,
-0.013619178,
-0.02140567,
-0.008375508,
0.02863188,
-0.07706042,
0.018920314,
-0.034249075,
0.020672994,
-0.036605135,
-0.007858323,
-0.017727917,
0.027913569,
0.052494176,
-0.039794434,
-0.0062026163,
-0.015644815,
-0.00538015,
0.05844179,
0.053988263,
-0.03735218,
-0.0152138285,
-0.064820394,
0.010006074,
-0.025270185,
0.014969603,
0.041087393,
-0.033214703,
0.020486232,
-0.00060383027,
-0.009776214,
0.025916664,
-0.030772448,
-0.01787158,
0.042236693,
-0.009316495,
0.024063421,
-0.04114486,
-0.028617514,
0.047178674,
0.01958116,
0.038616404,
-0.014294391,
-0.0005293055,
0.017555524,
0.03867387,
0.018158905,
0.0007236984,
0.020787923,
0.0038681054,
0.021736093,
0.014768476,
-0.057321224,
-0.0073986044,
0.02391976,
0.022167081,
0.02999667,
-0.00016678286,
0.083094224,
0.015759746,
-0.028991036,
-0.004022542,
-0.0077290274,
0.014603265,
-0.022612434,
0.021376938,
0.043069933,
-0.025385113,
-0.014244109,
-0.028459486,
0.019566795,
0.007078956,
-0.0005019199,
-0.014624814,
-0.045598388,
0.0012956536,
-0.008167197,
0.010472976,
-0.04102993,
-0.036490202,
-0.05643052,
0.012563261,
0.029939206,
-0.0016440345,
0.00424881,
-0.05749362,
0.016032703,
0.035024848,
0.009230298,
-0.059648555,
0.00371726,
-0.041173592,
-0.030140333,
0.022554968,
0.023891026,
-0.001834387,
-0.025758635,
-0.020242007,
-0.010085088,
0.029623149,
0.0020741234,
0.0081312815,
0.013532981,
-0.009733115,
0.0028929978,
0.012965515,
-0.0084617045,
-0.013604812,
0.029350191,
-0.061315034,
0.0033150057,
0.0075853653,
0.0052867695,
-0.01593214,
0.008274944,
-0.00063615426,
0.045253597,
0.012204105,
0.007879873,
-0.0046510645,
0.03562823,
-0.043069933,
-0.027425118,
0.018963413,
0.020931585,
-0.0050533186,
-0.0059260665,
0.014423687,
0.011011709,
0.025011592,
-0.023488773,
-0.022138348,
0.012304669,
-0.02205215,
-0.0016126084,
0.02634765,
0.012785938,
0.022037784,
-0.050109383,
0.03068625,
0.0018945455,
0.024149619,
-0.034047946,
-0.04643163,
-0.013770023,
0.030887377,
0.0048521915,
0.009108185,
0.0024189127,
0.007779309,
0.016837211,
-0.011018892,
0.0048270505,
-0.028904838,
0.033789355,
-0.00538015,
0.02874681,
0.043098666,
0.04594318,
-0.047408532,
-0.033645693,
-0.018316932,
0.0021190178,
0.004162613,
-0.015716646,
0.012527346,
0.034364004,
-0.009848045,
-0.034249075,
0.011816218,
-0.0010774666,
0.012161007,
0.014969603,
0.0050209947,
0.009460157,
-0.036518935,
-0.014998335,
0.037898093,
-0.049563464,
-0.07688802,
-0.044334162,
0.021319473,
-0.005760855,
0.036863726,
0.044075567,
-0.022310743,
-0.024896663,
-0.04597191,
0.033703156,
-0.054993898,
0.013834672,
0.0012336993,
-0.007294449,
-0.0057536718,
0.029766811,
0.0075709987,
-0.018834118,
-0.027884837,
0.0049276142,
0.024178352,
0.0049814875,
0.021937221,
0.023416942,
0.007463252,
-0.02064426,
0.01475411,
-0.0036813444,
-0.0012911642,
-0.0086341,
-0.043357257,
0.016937776,
0.0065330393,
-0.022310743,
-0.024207084,
-0.024350746,
0.021262009,
-0.006748533,
0.02521272,
0.008124098,
0.025658073,
-0.026405117,
0.021477502,
-0.0111769205,
-0.017167635,
-0.036834992,
0.0036472245,
0.023632435,
-0.010164102,
-0.0028301456,
0.008447339,
0.05059783,
0.03715105,
0.02463807,
-0.021247642,
0.019983415,
-0.036030486,
-0.045914445,
0.023359478,
-0.04608684,
-0.008662832,
-0.032956112,
-0.0161189,
0.06878547,
-0.060740385,
-0.011442696,
0.041058663,
0.0007681439,
0.029335825,
-0.02574427,
0.008907057,
-0.0100204395,
-0.015687915,
-0.0069137444,
0.036720064,
-0.020701725,
-0.020816656,
-0.02182229,
-0.0138921365,
-0.017426226,
0.031490758,
0.046402898,
-0.06079785,
0.017469326,
-0.002382997,
-0.016952142,
-0.0322378,
0.016592987,
0.035484567,
0.048988815,
0.041891903,
0.023891026,
0.0004199875,
0.037380908,
0.018762285,
-0.0061451513,
-0.048758958,
0.049994454,
0.020974685,
-0.008626916,
-0.01558735,
0.024350746,
-0.033329636,
-0.01346115,
0.0052544456,
0.07016463,
-0.029350191,
-0.028430752,
-0.021879757,
-0.022784827,
-0.024293281,
0.004791135,
0.040598944,
0.011392414,
-0.0024853563,
0.067348845,
0.014193827,
-0.00408719,
0.03588682,
0.051632203,
-0.019739188,
-0.03091611,
-0.06286658,
-0.0034191608,
0.0063283206,
-0.03174935,
0.03341583,
-0.027008496,
-0.00044153686,
0.01946623,
-0.032582592,
0.048615295,
-0.03950711,
0.03631781,
0.049592197,
-0.057407424,
-0.06855561,
0.009919876,
0.015903408,
0.004029725,
-0.022253277,
-0.02179356,
-0.0215637,
0.050281778,
0.035283443,
-0.023330744,
-0.073325194,
-0.016291296,
-0.016090168,
0.0068850117,
0.009366777,
0.006238532,
-0.008253395,
0.019825386,
-0.005857827,
-0.009761848,
0.016679185,
0.02380483,
-0.024077788,
-0.0070645898,
-0.033645693,
0.040254153,
-0.021003416,
0.0021226092,
-0.014854673,
-0.026290186,
-0.0060158554,
0.0073698717,
-0.030542588,
-0.006536631,
0.014294391,
0.061200105,
-0.046259236,
0.002221377,
-0.024738634,
-0.029192163,
0.02440821,
0.0064288843,
-0.039880633,
0.007922972,
0.054505445,
-0.014359038,
0.03459386,
-0.002860674,
-0.019308202,
0.011399597,
0.042753875,
0.047494728,
-0.0072190263,
0.01043706,
0.006805998,
0.02999667,
-0.039018657,
-0.027841737,
0.035542034,
0.044161767,
0.039104857,
-0.010401145,
-0.04476515,
0.022784827,
0.0037495838,
0.021161444,
0.059648555,
0.029680615,
0.015601717,
-0.047695857,
0.01235495,
-0.040484015,
-0.01378439,
-0.042955004,
-0.010063538,
0.031404562,
-0.004906065,
0.0065797297,
0.0043565566,
-0.03703612,
-0.03740964,
-0.0029773994,
-0.02380483,
0.029450756,
0.042179227,
0.024508774,
0.0301978,
-0.007750577,
-0.038874995,
0.02452314,
-0.05019558,
-0.056545448,
0.053988263,
-0.01867609,
-0.0107531175,
-0.029881742,
0.020012148,
-0.014495518,
-0.0047803605,
0.0042308522,
0.0073483223,
0.0021226092,
0.0017984714,
0.016966509,
-0.029709347,
-0.06763617,
0.0022662715,
0.067348845,
-0.023718633,
-0.04011049,
0.00010325722,
0.026232721,
0.013418051,
-0.00058677036,
-0.03930598,
-0.0046079657,
-0.0027744765,
0.03307104,
-0.012024527,
-0.019222004,
-0.037438374,
-0.0070394487,
-0.0333871,
0.024322014,
0.007280083,
0.008526352,
0.05832686,
0.0046654306,
0.0043565566,
0.02881864,
0.011169737,
-0.025557509,
-0.013094812,
0.011241568,
0.009050719,
-0.027769906,
-0.00039327532,
0.0064252927,
0.009510439,
0.03468006,
-0.006414518,
0.03539837,
0.008195929,
0.05936123,
-0.012800303,
-0.00025140887,
0.015731012,
0.029709347,
-0.016133267,
-0.0043816976,
-0.000913153,
0.019293835,
-0.021233276,
-0.037179783,
0.010077905,
-0.012541711,
0.0012938578,
-0.0008193236,
-0.041891903,
0.029077234,
0.008734663,
-0.008332409,
0.0022034193,
-0.0048198677,
0.009338045,
0.020558063,
0.010932695,
-0.0657973,
0.013403685,
0.020716092,
0.0067198,
0.031117236,
0.012290303,
0.035312172,
0.005031769,
0.02779864,
0.01851806,
-0.004694163,
-0.005135924,
-0.05493643,
0.011686921,
0.02493976,
0.0172682,
-0.00937396,
0.002973808,
-0.048299238,
-0.01195988,
-0.055281222,
0.020902853,
-0.063211374,
0.011141005,
0.002988174,
-0.033300903,
-0.03292738,
-0.015012702,
0.012857769,
0.041805707,
-0.0007789186,
0.05206319,
0.00040786603,
0.06964745,
0.010868046,
-0.029910473,
-0.012577627,
0.0062097996,
-0.034507666,
-0.05775221,
0.0025410254,
-0.03832908,
-0.014201011,
-0.05453418,
-0.018546792,
0.024192717,
0.0333871,
-0.03752457,
-0.010056355,
0.0086987475,
0.08591001,
-0.014782842,
0.016003972,
0.0007133727,
0.01669355,
-0.012297486,
-0.0098552285,
0.04467895,
-0.052925162,
-0.061315034,
-0.04123106,
-0.019193273,
-0.024077788,
-0.045799516,
-0.025658073,
-0.024264548,
-0.0133246705,
-0.048615295,
0.0067269835,
0.030571321,
0.048672758,
0.022253277,
0.02350314,
-0.0074273366,
-0.036404006,
0.04080007,
0.0086987475,
0.03174935,
-0.017124537,
0.06792349,
0.06924519,
-0.008080999,
-0.031576954,
0.0067557157,
-0.0040692324,
-0.02061553,
-0.017972143,
-0.01863299,
0.0025553918,
-0.043903176,
-0.05102882,
0.014473968,
0.057321224,
-0.010379596,
-0.02878991,
-0.011047625,
-0.019552428,
-0.05749362,
-0.021262009,
-0.072003506,
0.02856005,
-0.03505358,
-0.03513978,
0.025413847,
-0.044046838,
0.2443407,
0.031232167,
0.009431425,
0.030485123,
0.024465676,
0.09378269,
0.04490881,
0.013719742,
0.019078342,
-0.06217701,
0.03307104,
-0.032956112,
0.02140567,
0.011241568,
-0.03505358,
0.04482261,
-0.0377257,
0.028473852,
-0.00461874,
-0.038386546,
-0.033818085,
0.032122873,
-0.011579175,
0.07976127,
0.014675096,
0.016420592,
0.015946506,
0.001243576,
0.007843957,
-0.051948257,
-0.031031039,
-0.026649341,
0.0030240896,
0.04680515,
-0.03399048,
0.045684587,
0.006116419,
-0.022368208,
-0.0064252927,
0.05151727,
0.024508774,
-0.03220907,
-0.011277484,
0.028545683,
0.013691009,
0.03562823,
-0.015572985,
-0.048299238,
0.056057,
-0.051689666,
0.023345111,
-0.05349981,
0.033760622,
-0.014272842,
-0.009158466,
-0.002754723,
-0.024049055,
-0.043098666,
-0.029853009,
-0.0397657,
0.04258148,
-0.01163664,
-0.021233276,
0.018949047,
-0.017368762,
-0.0045684585,
0.017397495,
0.03307104,
-0.0038932462,
-0.02551441,
0.024250183,
-0.007491985,
-0.018245101,
-0.03172062,
0.016434958,
-0.011248752,
0.026965398,
0.035283443,
-0.005462756,
-0.03468006,
-0.016147634,
-0.011097906,
-0.014617631,
-0.042725142,
0.010903962,
0.029220896,
-0.043816976,
0.011169737,
0.00040539683,
0.025356382,
-0.024278915,
0.044621486,
-0.024623705,
0.004320641,
0.013956784
] | Custom Tools and Prompts
If you are not aware of what tools and agents are in the context of transformers, we recommend you read the
Transformers Agents page first.
Transformers Agents is an experimental API that is subject to change at any time. Results returned by the agents
can vary as the APIs or underlying models are prone to change.
Creating and using custom tools and prompts is paramount to empowering the agent and having it perform new tasks.
In this guide we'll take a look at: |
[
0.048000872,
-0.01867351,
-0.04700573,
0.009146508,
0.021644294,
-0.029078577,
-0.019551573,
0.0043647136,
-0.0284932,
0.03204936,
-0.019024735,
0.037698247,
-0.005297657,
-0.020356467,
-0.00416349,
0.01529296,
-0.018658875,
-0.038693383,
-0.035971384,
-0.012724621,
0.018849123,
0.013163653,
-0.077679455,
-0.06714268,
-0.081777096,
0.0060513294,
-0.015468573,
-0.0016783841,
0.08265516,
0.038517773,
-0.023707747,
-0.00036494565,
-0.010727024,
-0.01605395,
-0.022580897,
-0.032751814,
0.013690492,
-0.026693167,
-0.03380549,
-0.04624474,
0.024600446,
-0.045893516,
0.0061976733,
-0.0628109,
-0.11362157,
0.004708622,
-0.0402739,
-0.04176661,
-0.004672036,
-0.021790639,
0.0034555504,
0.009797739,
0.017590564,
0.010456287,
-0.043347128,
-0.05575711,
0.005363512,
0.005162289,
-0.055025388,
0.0018393627,
0.009966034,
0.017795445,
-0.039103147,
-0.040683664,
0.00013708328,
0.030644458,
-0.020546714,
0.026532188,
0.007741604,
-0.020195488,
-0.03585431,
0.019024735,
-0.03936657,
-0.028873695,
-0.0019079614,
0.018658875,
0.033688415,
-0.010727024,
-0.024673618,
0.006490362,
0.014473434,
0.06491825,
0.014334407,
-0.012600228,
0.0013875251,
-0.00079574616,
0.023971166,
0.011780702,
-0.0011295937,
-0.03231278,
-0.016961284,
0.035473816,
0.013558783,
0.026385844,
0.031259105,
0.06819636,
0.0012183147,
0.061874293,
-0.0108294645,
-0.010075793,
0.02547851,
0.072762296,
-0.06304505,
0.03453721,
-0.025859006,
0.010953858,
0.051571667,
0.010200185,
0.0020835744,
-0.0131343845,
0.039893407,
-0.027307812,
-0.033951834,
-0.007639163,
-0.034654286,
0.02959078,
0.04404958,
-0.0028354174,
-0.10238235,
-0.010595314,
0.037405558,
-0.06679145,
-0.035737235,
-0.03008835,
0.02762977,
-0.0011259351,
-0.013002675,
0.033688415,
0.013653906,
-0.02616633,
-0.009417244,
0.03904461,
0.06843051,
0.055376615,
-0.015673455,
0.036468953,
0.017766176,
0.015336864,
0.01497832,
-0.05900595,
0.009131873,
-0.021205263,
0.0019939386,
0.056810785,
0.07006957,
-0.028376125,
-0.028741986,
0.009878228,
-0.053181455,
0.0063440176,
-0.022185769,
0.02885906,
-0.013631955,
0.014283186,
0.016990552,
-0.016507616,
-0.030907879,
-0.0067318296,
-0.0026250477,
0.0068232943,
-0.0052866815,
0.0011488013,
-0.036937255,
0.050605796,
-0.023239447,
0.017927155,
-0.034273792,
-0.020356467,
0.025785834,
-0.03158106,
0.01251974,
0.01542467,
-0.0011488013,
-0.007105007,
0.013031944,
0.01631737,
0.056283947,
-0.0070245177,
-0.028244415,
0.013939277,
-0.05675225,
0.012636814,
-0.026239501,
0.014173428,
0.023605306,
-0.001055507,
-0.00019219099,
0.020049144,
-0.0036787253,
-0.008100147,
0.016478349,
0.044166654,
-0.0067318296,
0.02882979,
0.015644187,
0.0029506632,
-0.00015549062,
0.047064267,
-0.01579053,
-0.012695353,
-0.007529405,
0.03682018,
-0.01529296,
0.022361381,
-0.0048696008,
-0.0044927644,
-0.031054221,
0.06632315,
-0.029400533,
0.023224812,
0.052830227,
0.057337627,
-0.06930857,
0.003768361,
-0.0011222764,
-0.025112651,
-0.00518424,
0.013119751,
0.017605197,
0.015966143,
0.026034618,
-0.0077196523,
0.044517882,
0.009431878,
-0.02391263,
-0.024863865,
0.019654015,
-0.006354993,
0.0049757,
0.033132307,
0.022083327,
0.040186096,
0.018307649,
0.040010482,
-0.005491563,
0.0037025062,
0.063806035,
-0.0004865942,
-0.009578222,
0.008531862,
0.032020092,
0.029810296,
0.031054221,
0.038664117,
-0.0058574234,
0.023473596,
-0.031288374,
0.002385409,
-0.051688742,
0.0016527739,
-0.018600337,
0.047035,
0.034244522,
-0.021600392,
-0.03462502,
-0.020371102,
-0.021541854,
0.031259105,
-0.019361326,
-0.02762977,
0.06644023,
0.012402664,
-0.028171243,
-0.02066379,
0.008941625,
0.026224867,
0.012153879,
0.03702506,
-0.014356358,
-0.070596404,
-0.005345219,
-0.043873966,
-0.04756184,
0.0143124545,
-0.045834977,
-0.027907824,
0.001359171,
-0.0628109,
0.025844371,
-0.0425276,
0.010551411,
-0.01917108,
-0.013119751,
0.03962999,
-0.010778245,
0.006117184,
-0.070830554,
0.0030110301,
-0.019990606,
0.012351444,
0.008363566,
-0.0013820373,
-0.03679091,
-0.052420463,
0.030702997,
-0.024073608,
0.037229944,
0.016507616,
-0.027015124,
-0.008392835,
-0.033190846,
0.010931905,
-0.029166384,
0.04276175,
-0.037639707,
0.021322338,
0.03506405,
0.00072165945,
0.044839837,
0.03927876,
-0.006790367,
0.035034783,
-0.018014962,
0.020019876,
-0.010770927,
0.05765958,
0.05101556,
0.008926991,
-0.018146671,
-0.03924949,
-0.003022006,
0.026941951,
0.013105116,
-0.008151367,
0.016858842,
0.07200131,
-0.01754666,
-0.053679023,
-0.014773439,
-0.032488395,
-0.013207557,
-0.014890514,
-0.027673673,
0.017239338,
-0.0046500843,
0.032429855,
-0.02042964,
-0.020517446,
-0.039395835,
0.023371156,
-0.012102659,
0.03360061,
-0.00011644647,
0.01451002,
-0.026429748,
0.0125709595,
0.034449406,
-0.050137494,
-0.005806203,
-0.024702888,
-0.00030915195,
-0.01293682,
0.023312619,
-0.045834977,
0.030146888,
0.020019876,
-0.03854704,
0.0056159557,
0.0034903071,
0.013075847,
0.029546877,
0.029576147,
-0.060293775,
0.000098610784,
-0.038517773,
-0.012995358,
-0.0132221915,
0.035268933,
0.046683773,
-0.017034456,
0.016463714,
0.029166384,
-0.021454047,
-0.0027128542,
-0.06433287,
-0.04577644,
0.048000872,
0.02427849,
0.011173373,
-0.012805111,
0.004693988,
0.0045842296,
-0.011546551,
0.034420136,
0.05072287,
0.02739562,
0.03228351,
0.011114836,
0.042878825,
-0.016229562,
0.037522633,
0.017210068,
-0.021483317,
-0.009014797,
-0.028610276,
-0.030995684,
0.03327865,
0.016229562,
0.00963676,
0.02040037,
0.06000109,
-0.0024293123,
-0.0015549063,
-0.008524545,
-0.04188369,
0.024702888,
-0.051571667,
0.028127339,
0.0005048872,
0.032195706,
-0.033395726,
-0.0056013213,
0.008414787,
0.024044339,
0.0073794024,
-0.030966416,
-0.0601767,
0.011641675,
0.019785725,
-0.022376016,
-0.036995795,
-0.045659363,
0.016522251,
0.021161359,
0.055142462,
-0.010514825,
0.00076784927,
-0.044547148,
0.04381543,
0.01238803,
-0.019580843,
-0.030059082,
-0.025624854,
-0.036176264,
-0.03837143,
0.060118165,
0.040478785,
-0.010251406,
0.0026835853,
-0.026459016,
0.0027512694,
0.04530814,
-0.015585649,
0.023971166,
0.042147107,
-0.017371047,
0.019683285,
0.0087001575,
-0.0015210642,
-0.05795227,
0.039395835,
-0.044664226,
-0.015761262,
-0.03983487,
-0.002432971,
-0.032810353,
-0.032985963,
0.005539125,
0.036293343,
0.01275389,
-0.004083001,
-0.042264182,
0.018497897,
-0.026956586,
-0.030322501,
0.026663898,
0.017927155,
-0.00008889262,
-0.0062269424,
0.040478785,
0.008151367,
0.010470922,
0.008019658,
-0.009073336,
-0.0090001635,
-0.038429964,
0.0146124605,
-0.010807513,
0.0120075345,
0.019346692,
-0.043317858,
0.0070464695,
0.010339212,
-0.028595641,
-0.021907715,
-0.04282029,
-0.030498113,
0.036410417,
-0.0020762573,
-0.0094391955,
0.032927427,
0.008685524,
0.0065415823,
-0.03228351,
-0.022580897,
-0.02136624,
0.0244102,
-0.009512368,
0.050898485,
0.031229835,
0.038429964,
-0.0128709655,
-0.014831976,
0.007902582,
-0.008670889,
-0.02438093,
-0.004909845,
0.0074672084,
0.018132037,
-0.007492819,
-0.0023927263,
0.043434933,
-0.006728171,
0.015468573,
0.05897668,
0.0142246485,
0.016068583,
-0.04972773,
-0.009044066,
0.02773221,
-0.025829736,
-0.084235676,
0.005575711,
0.02325408,
-0.011912411,
0.009344072,
0.032546934,
-0.0121831475,
-0.03143472,
-0.03459575,
0.03734702,
-0.053913172,
-0.005151313,
-0.037493363,
-0.025215091,
0.020971112,
0.016273467,
0.03810801,
-0.041122697,
-0.06433287,
-0.027468791,
0.05947425,
-0.03834216,
0.0013692322,
0.017927155,
-0.00015594796,
-0.0038122642,
0.010280674,
0.009395292,
-0.00017789956,
0.013339266,
-0.026254134,
-0.009468464,
0.04176661,
-0.020780865,
0.020561349,
-0.016112488,
0.0026945611,
-0.0026799266,
0.03881046,
0.015468573,
-0.02278578,
-0.0037610438,
0.017663736,
-0.021615027,
-0.024176048,
0.0010957515,
-0.0038781192,
0.0053671706,
-0.02597608,
-0.02948834,
-0.009292851,
0.03228351,
0.037171405,
0.009622126,
-0.06860612,
0.054030247,
-0.027834652,
-0.02278578,
0.036498223,
-0.03286889,
-0.052420463,
-0.029341996,
0.027161468,
0.0642158,
-0.041239772,
0.00728062,
0.05479124,
-0.0180735,
0.022712607,
-0.014985638,
0.031142028,
-0.03008835,
-0.011012395,
0.011136787,
0.031142028,
-0.030146888,
0.0029579804,
-0.04434227,
-0.017927155,
-0.01930279,
0.022463823,
0.037464093,
-0.03485917,
0.05400098,
-0.011875825,
-0.04753257,
-0.027205372,
0.03386403,
0.016449079,
0.037229944,
0.027059028,
0.045659363,
-0.013031944,
0.004902528,
0.018102767,
-0.034127448,
-0.023034565,
0.030234694,
0.03386403,
-0.010251406,
0.0086123515,
0.03111276,
-0.07006957,
-0.06316212,
-0.032927427,
0.043200783,
-0.04504472,
-0.028537104,
-0.0018036913,
0.016361272,
-0.020093048,
-0.008605034,
0.028420027,
0.011414841,
-0.010500191,
0.065796316,
0.004181783,
-0.060996227,
0.010383115,
0.06866466,
-0.007983072,
0.033044502,
-0.045513023,
-0.009790421,
-0.0056452244,
-0.027161468,
0.027527329,
-0.022478458,
-0.002700049,
-0.0014451481,
-0.03702506,
0.04059586,
-0.027351717,
0.049961884,
0.05048872,
-0.061405994,
-0.036703106,
0.012688035,
0.01827838,
0.0023232128,
0.009058701,
-0.0011186178,
0.015863702,
0.014173428,
0.01890766,
-0.012417299,
-0.07434281,
-0.01036848,
-0.019478403,
0.0048696008,
-0.01966865,
-0.016932014,
0.0044452026,
-0.011422158,
0.02773221,
0.035971384,
0.016800305,
0.028844425,
-0.04050805,
-0.030937146,
-0.029810296,
0.021615027,
-0.021044284,
0.013368535,
0.008034292,
-0.042234913,
-0.03161033,
-0.009475782,
-0.027673673,
0.00031052393,
-0.0010518484,
0.048703324,
-0.057805926,
-0.009300169,
-0.0040427563,
-0.016829574,
-0.0036092119,
0.0116563095,
-0.042000763,
0.038254354,
0.043142248,
0.0071635447,
0.031932287,
0.00612816,
0.0002997768,
0.00081129523,
0.037932396,
0.052537538,
-0.026868781,
0.025917543,
-0.0016408834,
0.02959078,
-0.05575711,
-0.017502757,
-0.006278163,
-0.0028024898,
-0.004928138,
0.002689073,
0.030439576,
0.035268933,
-0.0066001196,
0.020458907,
0.011019712,
0.031990826,
0.01794179,
-0.040917814,
-0.001134167,
0.0006667804,
-0.016566154,
-0.04378616,
-0.0020286953,
0.030293232,
-0.016668595,
0.007975754,
-0.0021036968,
-0.02995664,
-0.037727512,
0.009848959,
0.026824877,
0.008634303,
0.041122697,
-0.01149533,
0.024468737,
-0.023576038,
-0.018585702,
0.045161795,
-0.031288374,
-0.0016417981,
-0.009563589,
-0.0121831475,
0.0056818104,
-0.021585757,
0.011275814,
-0.0069696386,
0.018336918,
0.008085513,
-0.007573308,
-0.0005670835,
0.011846556,
0.027190737,
-0.045220334,
-0.025902908,
-0.0005766873,
0.027790748,
0.003911047,
-0.046742313,
0.053357065,
0.02637121,
0.0006539753,
-0.00011650364,
-0.05347414,
-0.006318407,
-0.00809283,
0.036029924,
-0.063571885,
0.011956315,
-0.046917923,
0.0010289821,
-0.01857107,
-0.008707475,
-0.0071123242,
-0.0002221458,
0.058449842,
-0.019419864,
0.0069257356,
0.03682018,
0.006395238,
-0.021205263,
-0.009753835,
0.018951563,
0.0008199844,
-0.02563949,
0.011912411,
-0.02042964,
0.018497897,
0.053854637,
0.00093751703,
0.022946758,
0.016771035,
0.0207955,
-0.03860558,
0.010639218,
-0.020122316,
0.026663898,
-0.030937146,
-0.015410036,
0.048937473,
0.018805219,
-0.036439687,
0.0025226066,
-0.020971112,
-0.0027951726,
-0.020502811,
-0.011034346,
-0.041386116,
-0.0017689345,
0.017502757,
-0.034068912,
0.000498942,
-0.025610222,
0.02066379,
0.04999115,
-0.007705018,
-0.07024518,
0.020458907,
0.0061135255,
0.017971057,
0.035707965,
-0.01744422,
0.022288209,
0.0091757765,
0.06538655,
-0.00081541116,
-0.009563589,
-0.017810078,
-0.019493036,
-0.00827576,
0.026971221,
-0.024863865,
-0.0106319,
-0.015497842,
-0.02673707,
-0.014524654,
-0.054147325,
-0.01605395,
-0.039688524,
0.010968491,
0.010580679,
0.0091757765,
-0.030351771,
0.008429421,
0.010302626,
0.011905094,
0.00945383,
0.061347455,
0.01655152,
0.06737683,
0.020224757,
-0.017824713,
0.02364921,
0.004339103,
-0.027541963,
-0.052888766,
0.056283947,
-0.031463984,
-0.016478349,
-0.018863756,
-0.037522633,
-0.002948834,
0.06954273,
-0.04284956,
-0.029942006,
0.0065818266,
0.040186096,
-0.03450794,
0.023956532,
0.018644242,
0.0015878337,
-0.000058423317,
0.014597826,
-0.004028122,
-0.027776113,
-0.028141974,
-0.022405285,
-0.01605395,
0.0052683884,
-0.057162013,
-0.02610779,
-0.041678805,
-0.0073830606,
-0.02364921,
-0.0402739,
0.024366295,
0.018966198,
0.02239065,
0.03184448,
0.056869324,
-0.012841697,
-0.026034618,
0.03327865,
0.009761153,
0.017239338,
0.06954273,
0.07246961,
0.010405066,
-0.036000654,
-0.005531808,
0.013653906,
0.00872211,
0.016756402,
-0.01817594,
0.013441707,
-0.03907388,
-0.016200295,
0.008905039,
0.04475203,
0.0036512858,
0.0035525034,
-0.03008835,
-0.03333719,
-0.049083818,
-0.028156608,
-0.057074208,
0.02912248,
-0.005981816,
0.023590673,
-0.0069513456,
-0.036205534,
0.2545217,
0.06925004,
0.03228351,
0.043581277,
0.03453721,
0.09781641,
0.0069915904,
-0.0017149701,
0.0014442335,
-0.03658603,
0.022171134,
-0.03084934,
-0.003841533,
-0.00033316153,
-0.036381148,
0.023502866,
-0.020722328,
-0.0017149701,
-0.023502866,
-0.007785507,
-0.03676164,
0.020502811,
-0.00782941,
0.07685993,
0.024190683,
0.017224703,
0.03307377,
-0.0001630365,
-0.008100147,
-0.060586464,
-0.020693058,
-0.03960072,
0.00963676,
0.018336918,
-0.05648883,
0.056547366,
-0.012695353,
-0.055113196,
0.00016921038,
0.023941899,
-0.014414895,
-0.0063988967,
-0.0077928244,
-0.021585757,
0.011151422,
0.036615297,
0.0071233,
0.024658984,
0.046449624,
-0.08271369,
0.037551902,
-0.024161413,
0.031142028,
-0.023327252,
-0.035942115,
0.025463877,
0.0021512585,
-0.038693383,
-0.024088241,
0.0123075405,
0.022551628,
-0.029063942,
-0.012900234,
0.018936928,
-0.030498113,
0.035971384,
0.012819745,
0.05695713,
0.009658712,
-0.008209905,
0.019258887,
0.008041609,
-0.011992901,
-0.029312726,
0.016449079,
-0.029005405,
0.022346746,
0.012475836,
0.04147392,
-0.014202696,
-0.012044121,
-0.023429694,
-0.046800848,
-0.022727242,
0.020868672,
0.043405667,
-0.03588358,
-0.009841642,
0.0029762734,
0.020458907,
-0.031551793,
0.022376016,
-0.018424725,
-0.031990826,
0.0122051
] |
Customizing the prompt
As explained in Transformers Agents agents can run in [~Agent.run] and [~Agent.chat] mode.
Both the run and chat modes underlie the same logic. The language model powering the agent is conditioned on a long
prompt and completes the prompt by generating the next tokens until the stop token is reached.
The only difference between the two modes is that during the chat mode the prompt is extended with
previous user inputs and model generations. This allows the agent to have access to past interactions,
seemingly giving the agent some kind of memory.
Structure of the prompt
Let's take a closer look at how the prompt is structured to understand how it can be best customized.
The prompt is structured broadly into four parts. |
[
0.04199164,
-0.016702836,
-0.04528956,
-0.011947858,
-0.007868102,
-0.03550952,
-0.027648523,
0.045545436,
0.006755764,
0.047819864,
-0.0017982202,
0.0154092545,
0.00014825987,
-0.0074558617,
0.032353748,
0.0028448128,
0.031955723,
-0.021934021,
-0.019233137,
0.0009897319,
-0.021820301,
0.0404564,
-0.06101155,
-0.06993868,
-0.063911445,
-0.026255436,
-0.011578264,
0.0051707714,
0.061238993,
0.007096928,
-0.031358685,
-0.0019137185,
-0.0064927833,
-0.025828982,
-0.035253644,
-0.03161456,
0.034741897,
-0.012317453,
-0.045687586,
-0.006933454,
0.011436112,
-0.04688166,
0.03485562,
-0.054415707,
-0.07363463,
0.014328901,
-0.02456383,
-0.03002246,
-0.018422872,
-0.030249901,
0.017726328,
0.024720198,
0.004214801,
-0.018891973,
-0.010952796,
-0.019474795,
-0.009133252,
-0.0060023596,
-0.019375289,
-0.00023810426,
-0.026312297,
0.022758503,
-0.00751983,
-0.008401171,
0.0042219083,
0.020299276,
-0.04679637,
-0.021678148,
-0.0074416464,
-0.009595246,
-0.041650474,
0.02936856,
-0.045460142,
0.0035466873,
0.00066100585,
-0.0030704788,
0.035907544,
-0.032837063,
-0.03167142,
0.018849328,
0.014101458,
0.08085594,
-0.01583571,
-0.0037314845,
0.00914036,
0.013945091,
0.017413594,
0.008955563,
0.034457594,
-0.03329195,
0.0034329658,
0.027051486,
0.018309152,
-0.010085669,
0.03880744,
0.06175074,
0.005380445,
0.043555308,
0.00084224937,
0.024748627,
0.03650458,
0.07033671,
-0.05231186,
0.00055483624,
-0.005831777,
0.016589114,
0.041053437,
-0.030249901,
0.014407084,
-0.053534366,
0.037954528,
-0.03079008,
-0.029197978,
0.0041970317,
-0.04361217,
0.06544668,
0.034599748,
-0.015594052,
-0.06772111,
-0.0079605,
0.04980999,
-0.052823607,
-0.07374835,
-0.06482122,
-0.00849357,
-0.010043024,
-0.013845584,
0.028814169,
-0.012338776,
0.0006707788,
-0.031159673,
-0.0037528074,
0.055126466,
0.04344159,
0.008983993,
0.048729636,
-0.040598553,
-0.0024041422,
-0.0064074923,
-0.033320382,
-0.014513698,
-0.013874015,
0.013028212,
0.068858325,
0.0427024,
-0.0050108507,
0.003548464,
0.021493351,
-0.05060604,
0.048104167,
-0.007015191,
0.0054124296,
-0.008273235,
0.004381829,
0.011748846,
-0.045346424,
-0.026042208,
-0.008266127,
0.01211844,
0.027875967,
-0.009986163,
0.054955885,
-0.036106557,
0.043157283,
0.009616569,
0.04918452,
-0.021294339,
-0.01580728,
0.020853668,
-0.043214146,
0.03622028,
-0.0022531059,
-0.010910151,
-0.027350005,
0.032922354,
0.027591662,
0.026880905,
0.030989092,
-0.021038465,
-0.0008609068,
-0.019673808,
0.0059881443,
-0.033064507,
0.018380227,
-0.007146681,
-0.009666322,
0.033832125,
0.050378595,
-0.020057619,
-0.0038594212,
0.017825834,
0.043015134,
-0.01825229,
0.033775266,
0.028529866,
0.015977861,
-0.0052560624,
0.03815354,
0.025331449,
-0.03241061,
-0.004332076,
0.033661544,
-0.0065354286,
0.017555747,
0.006745103,
0.0066740266,
-0.024606476,
0.0602155,
-0.022260971,
0.01070403,
0.037954528,
0.07824035,
-0.045517005,
-0.026383372,
0.013426237,
-0.012580434,
0.020000758,
0.0059099607,
-0.002011448,
-0.004385383,
0.039802503,
0.008209266,
0.040911287,
-0.0022904207,
-0.045659155,
-0.0045488575,
0.009161683,
0.033803698,
-0.041508324,
0.029681295,
0.0048260535,
0.004520427,
0.044919968,
0.067436814,
0.0031575467,
0.016418532,
0.028629372,
-0.0023010822,
0.0005215194,
0.019460581,
0.0481326,
0.042673968,
-0.018565023,
0.04767771,
-0.008081329,
-0.025658399,
-0.010206499,
0.020839453,
-0.006741549,
-0.007096928,
-0.05526862,
0.040854424,
0.025573108,
0.006745103,
-0.05307948,
-0.018707177,
0.008948456,
0.014044597,
-0.022360478,
-0.026525525,
0.025828982,
0.060670387,
-0.011869675,
0.00911193,
0.023156527,
0.035225216,
0.01624795,
0.010625847,
0.0017964432,
-0.049497254,
-0.0023312895,
-0.047364976,
-0.040029947,
0.014343116,
-0.00076539855,
0.025473602,
-0.0069583305,
-0.050975632,
-0.0035715639,
-0.06800542,
0.047905155,
-0.010000379,
-0.013170363,
0.058140084,
0.020299276,
0.017726328,
-0.032240026,
-0.005419537,
-0.019090986,
0.00021966895,
-0.012388529,
-0.04688166,
-0.016759697,
-0.040598553,
0.031188104,
0.0018479733,
0.037783947,
0.016589114,
-0.020924743,
-0.05856654,
-0.052539304,
-0.00079427316,
-0.013412022,
0.025729476,
-0.017598392,
-0.0006894362,
0.043128856,
-0.01085329,
0.044919968,
0.00890581,
-0.044891536,
0.042275943,
-0.0027968364,
-0.017669467,
-0.04745027,
0.061068412,
0.027947042,
-0.02574369,
-0.033604685,
-0.01707243,
-0.034287013,
0.003930497,
-0.02423688,
-0.002896343,
-0.019361075,
0.025317235,
-0.031102812,
-0.08404014,
0.03010775,
-0.02763431,
0.026269652,
-0.010654277,
0.0034258582,
0.0051494488,
0.0017884473,
0.017370949,
-0.023966793,
-0.02656817,
-0.05231186,
0.01188389,
0.0011700869,
-0.021422274,
0.016532253,
0.029567573,
0.006460799,
-0.025502032,
0.024620691,
-0.0729523,
-0.0030669249,
-0.022246756,
0.029254839,
-0.01111627,
-0.005288047,
0.012900275,
0.05154424,
0.06465063,
-0.07715999,
-0.010597416,
0.009438879,
-0.0061764955,
0.036931034,
0.043839615,
-0.0150680905,
-0.025914272,
-0.018877758,
-0.011542725,
0.02624122,
0.022829577,
0.03397428,
-0.031074382,
0.030050889,
-0.0027453066,
-0.020882098,
0.009062177,
-0.056093097,
0.00018146564,
0.017825834,
0.011166023,
0.02544517,
-0.04136617,
0.0024645568,
0.005167218,
0.021194832,
0.033462532,
0.013006889,
0.03388899,
0.008848949,
0.026397588,
0.028273992,
0.02028506,
0.049241383,
-0.020356137,
0.018053278,
-0.011215776,
-0.05569507,
-0.017086646,
0.038409416,
0.0005339577,
0.027122563,
0.010924365,
0.04600032,
0.012992674,
0.0014446176,
0.0020860776,
-0.006841055,
0.011656447,
-0.022431552,
0.041877918,
0.0240663,
-0.0069476687,
-0.037556503,
-0.048985507,
0.008600184,
0.024549615,
-0.016660191,
0.006027236,
-0.06408203,
0.019659594,
-0.02816027,
0.006890808,
-0.052709885,
-0.04145146,
-0.03556638,
0.0132983,
0.021166403,
-0.012779446,
-0.018181214,
-0.07062101,
0.027904397,
0.036106557,
-0.02922641,
-0.017186152,
0.002564063,
-0.04608561,
-0.056036238,
0.01501123,
0.050463885,
-0.008607291,
0.002461003,
0.005433752,
-0.042929843,
0.0053129233,
0.015608267,
0.032183167,
-0.0051494488,
-0.0036923927,
0.026397588,
0.016333241,
-0.001377984,
-0.037471212,
0.051032495,
-0.042133793,
-0.027563233,
0.010696922,
0.08307351,
-0.018792467,
-0.0011532065,
0.031045951,
0.016347457,
0.024862349,
0.014542129,
0.032922354,
0.04284455,
-0.017911127,
-0.011606694,
0.016418532,
0.011947858,
-0.032353748,
-0.003274822,
0.00893424,
0.010178069,
0.00875655,
-0.007274618,
-0.021919807,
0.004801177,
-0.0006161392,
0.023369756,
0.031159673,
-0.0021820301,
0.0002013447,
-0.04273083,
0.02544517,
0.017342519,
-0.0012349437,
-0.029425422,
-0.03007932,
0.0035147031,
0.013632357,
0.0043036453,
0.014783787,
-0.019474795,
-0.009382019,
0.03423015,
-0.07039357,
-0.0022300063,
-0.03880744,
0.024052083,
-0.008024469,
0.034685038,
0.034429163,
0.03417329,
-0.020626225,
-0.031330254,
0.012758124,
-0.024663337,
-0.007018745,
-0.0059952517,
0.045545436,
0.058225375,
0.014826432,
-0.022474198,
0.050151154,
-0.0061338497,
0.018238075,
0.046142474,
0.011158916,
0.020398783,
-0.047109105,
-0.036959466,
0.05393239,
-0.015707774,
-0.08142455,
-0.017797405,
0.016319025,
-0.032865494,
0.03664673,
0.01860767,
-0.028146055,
-0.03167142,
-0.058026362,
0.0068339473,
-0.0033885434,
-0.03397428,
0.008941348,
-0.049582545,
0.0059170686,
0.030591065,
0.02220411,
-0.028885245,
-0.024009438,
-0.03559481,
0.03241061,
-0.02096739,
0.015025444,
0.002508979,
-0.009730291,
-0.018024847,
0.01907677,
0.024833918,
-0.009012423,
-0.014584774,
-0.059021425,
0.028586725,
0.006745103,
-0.02137963,
-0.013902445,
-0.0057429327,
0.017697899,
-0.0067308876,
0.036078125,
-0.0033370133,
-0.0080528995,
-0.04608561,
0.03505463,
-0.01899148,
-0.005202756,
-0.04042797,
0.0075269374,
0.016446963,
-0.027463727,
-0.024535399,
-0.014911723,
0.02843036,
0.022431552,
0.017385164,
-0.02300016,
0.020811023,
-0.040769134,
0.0008973332,
0.008045792,
-0.022303617,
-0.031813573,
-0.029112687,
0.013788724,
0.05086191,
-0.073975794,
0.018692961,
0.052681454,
0.011073625,
0.040996578,
-0.017058216,
0.0016365225,
0.017498886,
0.0035147031,
-0.01619109,
0.056462694,
-0.027577449,
-0.012132656,
-0.02376778,
0.011791491,
-0.03585068,
0.03093223,
0.06544668,
-0.06772111,
0.016901849,
-0.00030429367,
-0.033576254,
0.0005508382,
-0.0062440177,
0.01093858,
0.041678905,
-0.00813819,
0.06032922,
-0.016418532,
-0.0029336577,
-0.023199173,
-0.017825834,
-0.024663337,
0.041081868,
0.0309038,
-0.0033299057,
-0.010035916,
0.014357331,
-0.040086806,
-0.034628175,
0.0024112498,
0.034372304,
-0.019190492,
-0.017413594,
-0.017015569,
-0.021393845,
0.012381421,
-0.008230588,
0.054415707,
-0.020242415,
0.004300092,
0.046654217,
0.010156746,
0.0053164773,
-0.0052382937,
0.05239715,
-0.005128126,
-0.0019545872,
-0.080401056,
-0.0046341484,
-0.002944319,
0.021336984,
0.01872139,
0.00003687062,
-0.026994625,
0.0067628715,
0.007910747,
0.018039063,
-0.03966035,
0.06732309,
0.064423196,
-0.07357777,
-0.05293733,
0.0035555717,
0.026738752,
-0.00066678075,
-0.020356137,
-0.01654647,
0.011876782,
0.035338935,
0.029652864,
-0.03178514,
-0.054330416,
-0.025786335,
-0.011962074,
0.012637295,
0.0076477663,
-0.017896911,
-0.008273235,
0.00987955,
0.008202159,
0.014158319,
-0.01627638,
0.013568388,
-0.017882695,
-0.044777814,
-0.03806825,
0.04824632,
-0.013575496,
-0.022829577,
-0.0039091744,
0.00059614907,
-0.033320382,
-0.022744287,
-0.035310507,
0.0013495536,
-0.014385762,
0.058282234,
-0.036874175,
-0.018138569,
-0.03391742,
-0.027890181,
0.023284463,
0.001855081,
-0.028913675,
0.041792627,
0.0563774,
-0.029965598,
0.061637018,
-0.0017013793,
-0.0059845904,
-0.018053278,
0.019162063,
0.03872215,
-0.011201561,
0.013419129,
-0.0002461003,
0.0038594212,
-0.030306762,
-0.020014973,
-0.00079738273,
0.044095486,
0.023781994,
-0.027179424,
-0.0019119416,
0.028643586,
-0.008721013,
0.021223262,
0.067891695,
0.02491921,
0.015594052,
-0.04375432,
0.010341543,
-0.0011754177,
0.006201372,
-0.035168353,
0.0013237885,
-0.0024005885,
-0.018451303,
0.0011976289,
-0.00077295036,
-0.038125113,
-0.058964565,
0.024080513,
-0.015153381,
0.032069445,
0.051203076,
0.035992835,
-0.02527459,
-0.0015174703,
-0.012623079,
0.03556638,
-0.07369149,
-0.03479876,
0.016674405,
-0.0012269476,
-0.016574899,
-0.0074913995,
-0.0053378,
-0.01828072,
-0.022076173,
0.004072649,
-0.047364976,
0.028231347,
0.011443219,
0.006873039,
-0.039404478,
-0.023184957,
0.0026351388,
0.05069133,
0.007235526,
-0.06624273,
0.011436112,
0.0073137097,
0.009339373,
-0.016446963,
-0.018877758,
0.0051210183,
-0.016532253,
0.039347615,
-0.018764038,
0.033149797,
-0.04173577,
-0.004165048,
0.0024112498,
0.03241061,
-0.03815354,
0.036703594,
0.031045951,
-0.005924176,
-0.0074416464,
0.04182106,
0.022417339,
-0.018678745,
0.014357331,
0.014435515,
0.012864738,
-0.03164299,
-0.007981823,
0.022246756,
-0.013070857,
0.05856654,
0.016333241,
0.009239866,
0.0034933803,
0.048729636,
-0.016418532,
-0.014869078,
-0.0015698889,
0.03093223,
-0.041536756,
0.0071608964,
0.018394442,
0.0047336547,
-0.02843036,
-0.02014291,
0.0027843982,
-0.022332046,
0.003290814,
-0.03229689,
-0.041877918,
0.056178387,
0.031358685,
-0.0025534015,
0.022104604,
-0.030505775,
-0.0061374037,
0.030221472,
0.0074061085,
-0.03477033,
0.01250225,
0.046227764,
0.006148065,
0.014165427,
-0.006169388,
0.021479135,
0.01085329,
0.024748627,
-0.019417934,
-0.019034125,
-0.029823447,
-0.013575496,
0.0003096244,
0.040598553,
0.0104126185,
-0.025146652,
-0.0034560654,
-0.031159673,
0.007917855,
-0.03798296,
0.012289022,
-0.05558135,
0.0044955504,
0.025928488,
0.014236502,
-0.030420484,
-0.029823447,
-0.007292387,
0.022602135,
-0.020540934,
0.026809828,
0.025828982,
0.08944191,
0.045545436,
-0.004175709,
-0.020924743,
-0.0049433284,
-0.0012233938,
-0.056036238,
0.046995383,
-0.026525525,
-0.016461177,
-0.038352553,
-0.01265151,
0.03010775,
0.059760615,
-0.028942104,
0.014179641,
0.009993271,
0.071075894,
-0.02607064,
-0.025658399,
0.020654656,
-0.0009950625,
0.01503966,
0.0008644606,
0.012416959,
-0.036191847,
-0.01822386,
-0.04304356,
0.020924743,
0.011528511,
-0.052823607,
-0.02327025,
-0.032012586,
-0.018764038,
-0.05302262,
-0.0043676137,
-0.0018604116,
0.012026042,
-0.00019345971,
0.0064927833,
-0.016802343,
-0.019133631,
-0.014954369,
0.018394442,
0.028202916,
0.016446963,
0.07170136,
0.08347154,
-0.012104225,
-0.019318428,
-0.0068517164,
-0.0051352335,
-0.022346262,
0.0057962392,
0.0102988975,
-0.026724538,
-0.030363623,
-0.044095486,
-0.007598013,
0.083585255,
-0.0009177675,
-0.027449511,
-0.010711137,
-0.038210403,
-0.051743254,
0.00987955,
-0.068176,
0.044976827,
-0.031813573,
-0.0103557585,
0.022175679,
-0.045687586,
0.23972479,
0.016475393,
-0.009083499,
0.039290756,
0.022076173,
0.08432444,
0.043015134,
0.001516582,
0.0118128145,
-0.08267549,
0.047905155,
-0.026340727,
-0.02807498,
0.03872215,
-0.030249901,
0.028359283,
-0.016006293,
-0.004641256,
0.010270467,
-0.0012020711,
-0.044095486,
0.034486026,
-0.020427212,
0.08386956,
-0.040115237,
0.0014490598,
0.030420484,
-0.007171558,
0.00067788636,
-0.043725893,
0.00021500459,
-0.04054169,
-0.002217568,
-0.0117062,
-0.04685323,
0.063911445,
0.035168353,
-0.013355161,
0.000054917236,
0.02423688,
0.009545493,
-0.026667677,
-0.018351797,
0.00970186,
0.011187346,
0.0050428347,
0.014385762,
-0.020953175,
0.025814766,
-0.07181509,
0.054472566,
-0.016645975,
0.010952796,
0.012111333,
-0.004175709,
0.024279526,
-0.002269098,
-0.02418002,
-0.02061201,
-0.016148444,
0.02934013,
-0.0240663,
-0.04352688,
0.017115075,
-0.036675163,
0.00002679228,
0.02297173,
0.047933586,
0.006880147,
-0.018266505,
0.03010775,
-0.010313112,
-0.00546929,
-0.054387275,
0.020512505,
-0.023639843,
0.020469857,
0.011649339,
0.029908737,
-0.0468248,
-0.02571526,
-0.017669467,
-0.053505935,
-0.03505463,
-0.0069938684,
0.016091583,
-0.031472407,
-0.021479135,
-0.007104036,
0.022218326,
-0.025132436,
0.033036076,
-0.07118962,
-0.04608561,
0.024819704
] | Creating and using custom tools and prompts is paramount to empowering the agent and having it perform new tasks.
In this guide we'll take a look at:
How to customize the prompt
How to use custom tools
How to create custom tools |
[
0.026203873,
-0.012853627,
-0.0055942493,
-0.020580411,
-0.009954258,
-0.033244155,
-0.055475086,
0.029870078,
0.028102703,
0.055650365,
0.0271825,
0.015278289,
-0.0053094244,
0.011181195,
-0.0051341476,
0.023998307,
-0.026145447,
-0.04565959,
-0.030410513,
0.015015374,
-0.025984777,
0.008274523,
-0.026364543,
-0.04536746,
-0.020229857,
0.028190343,
-0.034383453,
0.0060470477,
0.070052266,
0.025911745,
-0.025882531,
0.025531977,
-0.023837637,
-0.015511991,
-0.01831642,
-0.056146983,
0.0067627607,
-0.026685884,
-0.044870846,
-0.032805964,
0.039846245,
-0.009946955,
0.068533204,
-0.04513376,
-0.06613775,
0.026598245,
0.01267835,
-0.015409746,
-0.043001227,
-0.031900365,
0.027810575,
0.005707449,
0.020974783,
-0.02800046,
-0.0023059845,
-0.037626073,
-0.042592246,
0.034587942,
-0.046126995,
0.02252306,
-0.0033576451,
0.02916897,
0.020478165,
-0.025122998,
0.003994849,
0.017892834,
-0.039641757,
0.006843096,
-0.022274753,
-0.027737543,
-0.073440954,
0.048025828,
-0.04478321,
-0.06128843,
-0.03508456,
0.0010890893,
0.021252304,
-0.03558118,
-0.015979396,
0.0060032285,
0.04542589,
0.05895141,
-0.02005458,
-0.022859007,
-0.013540128,
0.0014149945,
0.005086677,
0.011064344,
0.021135453,
-0.033361007,
0.0060287896,
0.029870078,
0.03327337,
0.009026752,
0.017965866,
0.049135912,
-0.014496847,
0.052816723,
-0.039086714,
0.020697262,
0.06309962,
0.051151596,
-0.081737384,
-0.025093786,
-0.0630412,
-0.0013520045,
0.002320591,
0.008917204,
-0.03435424,
-0.0062004146,
-0.0015309327,
-0.010932887,
0.026057808,
-0.019864697,
-0.038181115,
0.039729394,
0.006733548,
-0.04598093,
-0.023238774,
-0.0046813497,
0.026510607,
0.017279366,
-0.02074108,
-0.041920353,
-0.012422739,
-0.00052263506,
-0.01722094,
-0.028175736,
0.01434348,
-0.036691263,
-0.0091363,
-0.010377844,
0.069760144,
0.029081332,
0.014840097,
0.046652824,
-0.010085716,
0.027781364,
0.0068321414,
0.014409209,
-0.0060726088,
-0.011225014,
-0.022435423,
0.07595325,
0.05059655,
0.0062186727,
-0.0006623087,
0.041394524,
-0.07361623,
0.026320724,
-0.019747846,
-0.017586099,
-0.012415436,
-0.0121452175,
-0.020448953,
-0.074025206,
-0.004922355,
0.029431885,
0.015526597,
-0.019280441,
0.010618849,
0.0057476163,
-0.05287515,
0.04741236,
-0.041014757,
0.01900292,
-0.023925275,
0.010319418,
0.024042126,
-0.0087273205,
0.029154364,
-0.007807118,
0.009793588,
-0.017089482,
0.035055347,
-0.00038775415,
0.044637144,
0.046828102,
-0.020580411,
0.004414783,
0.03309809,
-0.015745694,
-0.015336715,
-0.0019919472,
0.033740774,
-0.014810884,
0.04416974,
0.046857316,
-0.014840097,
-0.022698337,
0.028424045,
0.066313036,
-0.08471709,
0.049486466,
0.039933883,
0.008471709,
-0.019923123,
0.036486775,
0.027401596,
-0.047733698,
-0.026116233,
0.023194956,
-0.006068957,
-0.0157603,
-0.0022274752,
0.03131611,
-0.0040642293,
0.03683733,
-0.0064450717,
0.0056745843,
0.009611008,
0.030819492,
-0.044958483,
0.03978782,
0.0099323485,
-0.06502767,
0.0015601455,
0.058396365,
0.023253381,
0.0004416152,
0.004926007,
-0.00045576517,
0.01434348,
0.025751075,
-0.017571492,
-0.06660516,
-0.00968404,
0.055416662,
-0.017805194,
0.02665667,
-0.0034069417,
0.027518447,
-0.014022139,
0.03663284,
0.014036746,
0.04241697,
0.004586408,
0.038677733,
0.003730108,
-0.005557733,
0.025824105,
0.025488159,
0.03435424,
0.016300736,
-0.010326721,
0.000095626245,
0.019791665,
-0.034003686,
-0.00073077617,
-0.014796278,
-0.06502767,
0.10055042,
0.014752459,
0.005532172,
-0.054277364,
0.000112514885,
0.0061018215,
0.0226107,
-0.056497537,
-0.014650214,
-0.01091828,
0.01077952,
0.027722938,
-0.008194188,
0.026992617,
0.025385914,
0.035785668,
0.0063026594,
-0.04013837,
-0.051619,
0.0013675237,
-0.050976317,
-0.045484312,
0.01786362,
-0.008026214,
-0.0005801477,
-0.04720787,
-0.030118385,
0.00063811685,
-0.04776291,
0.033244155,
0.047003377,
-0.021894986,
0.0052546505,
-0.008303735,
-0.020171432,
-0.023516295,
0.0063976008,
-0.0390575,
0.02957795,
-0.0065911356,
-0.032017216,
-0.0062734466,
-0.045455102,
0.00842789,
0.020930964,
0.012627228,
-0.0063829944,
-0.021690497,
-0.047470782,
-0.025342096,
-0.026671277,
-0.023574721,
0.002012031,
-0.032689113,
0.064209715,
0.051619,
-0.02370618,
0.029256608,
0.03248462,
-0.002229301,
0.0073031974,
-0.0046448335,
0.009567189,
-0.053868383,
0.047908977,
0.021792741,
-0.00456815,
-0.028292587,
-0.012765989,
-0.019747846,
-0.01685578,
0.0028135567,
-0.07420049,
-0.003193323,
0.031023983,
-0.03327337,
-0.060996305,
0.004652137,
-0.036895752,
0.0042760223,
-0.047616847,
-0.0012935789,
0.015015374,
-0.023384837,
0.036895752,
-0.052290894,
-0.0117216315,
0.011429504,
0.011882302,
-0.01203567,
-0.037100244,
0.013379457,
-0.012612622,
0.03853167,
0.005462792,
0.03894065,
-0.049690954,
0.02905212,
-0.03645756,
0.04209563,
0.013810346,
-0.0060068797,
-0.013379457,
0.03350707,
0.02523985,
-0.05319649,
0.008895295,
-0.028935269,
-0.025429733,
0.008866082,
0.04113161,
-0.03119926,
-0.02916897,
-0.019981548,
-0.0065217554,
0.016943417,
0.010604243,
0.017352397,
-0.04598093,
0.03160824,
-0.028672352,
-0.0065692263,
0.007836331,
-0.043819185,
0.007945878,
0.01738161,
-0.015847938,
0.031958792,
-0.028467864,
-0.016096247,
0.026028596,
0.017717557,
0.044023674,
0.004013107,
0.018126536,
0.006507149,
0.00573301,
0.017922046,
0.016505226,
0.022654518,
-0.0037647982,
0.017834408,
-0.012546893,
-0.016417587,
-0.032513835,
0.058250304,
0.02528367,
0.047675274,
-0.0039437264,
0.021077028,
-0.016811961,
-0.0011730761,
0.024290435,
-0.04542589,
0.024933117,
-0.0219242,
0.01217443,
0.006240582,
-0.01701645,
-0.03622386,
-0.007777905,
-0.0006079912,
0.013620463,
0.0045425887,
0.017980471,
-0.046565186,
0.014840097,
0.005433579,
-0.02090175,
-0.019353474,
-0.035873305,
-0.022318572,
0.02791282,
0.03111162,
-0.036048584,
0.025122998,
-0.069818564,
0.017878227,
0.029607162,
0.015891757,
-0.020668048,
-0.016213099,
-0.0032006262,
-0.033886835,
-0.0022457333,
0.027284745,
-0.053780746,
-0.01875461,
-0.04504612,
-0.018009685,
0.014840097,
-0.0075222934,
0.060937878,
-0.019718634,
-0.0019243925,
-0.03707103,
-0.024816265,
-0.012203643,
-0.025269063,
0.046448335,
-0.00966213,
0.027649906,
0.0021891333,
0.023764605,
-0.038414817,
0.009238545,
0.050129145,
0.035873305,
0.016505226,
-0.007631841,
0.017732164,
0.0507134,
-0.005086677,
-0.011312652,
0.04083948,
0.015307502,
-0.050947104,
-0.01418281,
0.016315343,
0.013357548,
-0.019017527,
0.015585023,
-0.0100784125,
0.008500922,
-0.026992617,
-0.013342942,
0.04346863,
-0.001573839,
-0.0037867078,
-0.058045812,
0.010823338,
0.02973862,
0.03853167,
-0.017688343,
-0.023896063,
-0.036282286,
0.0038086174,
0.00040099118,
0.021909593,
-0.000022565739,
-0.008340252,
0.012561499,
-0.061522134,
-0.05214483,
-0.044432655,
0.028263373,
-0.022435423,
0.039408054,
-0.020434346,
0.04311808,
-0.04974938,
-0.035464328,
0.01665129,
-0.029534131,
0.0073397136,
0.018520908,
0.04712023,
0.06543665,
0.043380994,
-0.030702641,
0.020361314,
-0.0015510166,
0.039437268,
0.035055347,
-0.0021526176,
-0.011487929,
-0.014314267,
-0.019616388,
0.047178656,
-0.017469248,
-0.07455104,
-0.039028287,
0.029709408,
-0.027562266,
0.027576873,
0.057081793,
0.01952875,
-0.003202452,
-0.03981703,
0.018535515,
-0.024582563,
-0.011553658,
-0.0027788666,
0.0041445647,
0.006215021,
-0.00075816317,
0.0037081984,
-0.04230012,
-0.033361007,
-0.034178965,
0.0058571645,
0.005758571,
0.03683733,
-0.022712944,
0.0008193275,
-0.00069106504,
0.038853012,
0.02309271,
0.0046630916,
-0.04113161,
-0.061872687,
0.040605776,
-0.0044512986,
-0.03236777,
0.023253381,
-0.0232972,
0.0091509065,
-0.016096247,
0.034295816,
0.02941728,
0.04083948,
-0.019704027,
0.02949031,
-0.0017664608,
-0.018184962,
-0.06876691,
-0.0007978743,
0.026510607,
-0.02560501,
-0.024991542,
0.00392912,
0.03327337,
0.032104857,
0.025181424,
-0.047558423,
0.01432157,
-0.043410204,
-0.038969863,
-0.0032079294,
-0.010567727,
-0.0049807806,
-0.033857625,
-0.007588022,
0.03359471,
-0.07215559,
0.028146522,
0.07864083,
0.016417587,
0.022829795,
-0.028058885,
0.0438484,
0.020711867,
0.017001843,
-0.038590096,
0.024772447,
-0.013971017,
-0.0072557265,
-0.045571953,
0.006722593,
0.0015327586,
0.011254227,
0.030206025,
-0.032601472,
-0.017819801,
-0.042533822,
-0.04282595,
-0.026364543,
0.012554197,
-0.008544741,
0.0045718015,
0.021500614,
0.034500305,
-0.014788975,
0.017001843,
0.0002483087,
-0.013876075,
-0.04533825,
0.05635147,
0.005678236,
-0.04481242,
0.01596479,
0.042358544,
-0.019572569,
-0.023341019,
0.021602858,
0.011473323,
-0.0048347167,
-0.056205407,
-0.023063498,
-0.011195802,
-0.0401968,
-0.016943417,
-0.010450875,
0.0107941255,
-0.010253689,
0.049983084,
-0.0004514289,
-0.016592864,
0.042855162,
0.058279514,
0.032630686,
0.019090557,
-0.05319649,
0.003969288,
0.009063268,
-0.008398677,
0.03622386,
-0.026875766,
-0.014759762,
0.019704027,
0.014328874,
0.024962328,
-0.029811652,
0.04939883,
0.047792125,
-0.068533204,
-0.050362848,
0.028599322,
0.021427581,
0.0076172347,
-0.02074108,
-0.022902828,
0.004633879,
0.04752921,
0.011480627,
0.0034726704,
-0.07969249,
-0.017513067,
-0.04378997,
0.0042102933,
-0.0021818301,
0.0067116385,
0.015979396,
0.025298275,
0.004531634,
0.0032517486,
-0.02743081,
0.0058863773,
0.00064861524,
-0.0034982315,
-0.04741236,
0.06339175,
-0.053985234,
-0.017688343,
-0.01900292,
0.0076464475,
-0.03561039,
0.0035639603,
-0.015979396,
-0.01502998,
-0.016782748,
0.0929551,
-0.03435424,
0.01811193,
-0.025897138,
-0.0016340904,
0.030819492,
-0.0049077487,
-0.022230932,
0.014584485,
0.02750384,
-0.040284436,
0.011254227,
0.041832715,
-0.02783979,
0.017775983,
0.011597478,
0.040868692,
-0.030848706,
0.01564345,
-0.020142218,
-0.0064669815,
-0.013379457,
-0.028628534,
0.013525521,
0.03309809,
0.030001534,
0.00751499,
-0.01130535,
0.049661744,
0.023720786,
0.064560264,
0.026233084,
-0.015205257,
-0.0076756603,
-0.03674969,
0.008982933,
-0.009055965,
-0.00573301,
-0.015950182,
0.019704027,
0.002311462,
-0.012751383,
-0.01660747,
0.0046265754,
-0.034821644,
-0.052729085,
-0.016724322,
0.0028701567,
0.040605776,
0.058162663,
0.051180806,
-0.00022662735,
0.008259917,
-0.03695418,
0.033039667,
-0.050742615,
-0.034587942,
-0.007829027,
-0.024217403,
-0.010976706,
-0.034821644,
-0.025751075,
-0.022376997,
-0.0013547431,
0.0047616847,
-0.0053495923,
0.019835485,
0.0063282205,
-0.018681578,
-0.027240926,
-0.04428659,
0.014562576,
0.033623923,
0.022815188,
-0.028204948,
0.018988313,
0.018331025,
-0.020814113,
-0.017031057,
-0.022479242,
0.0030162206,
-0.003238968,
0.017629918,
-0.015015374,
-0.0030381302,
-0.023764605,
-0.0025634223,
-0.024728626,
0.028774599,
-0.0232972,
0.0214714,
0.03391605,
-0.023501689,
0.015000767,
0.030439727,
-0.008252613,
-0.02183656,
0.02074108,
0.032396983,
0.009837407,
-0.018404057,
-0.021734316,
0.03184194,
0.013824953,
0.074025206,
0.012619925,
0.02503536,
0.008982933,
0.060178347,
0.0031714134,
0.002211043,
0.0022639912,
0.009669433,
-0.024845477,
0.024787052,
0.023749998,
-0.014577182,
0.0023589327,
-0.017936653,
0.028701566,
0.0045718015,
-0.0401968,
-0.011487929,
-0.02727014,
0.02450953,
0.007281288,
-0.013532825,
0.002439268,
-0.009355396,
-0.0017682867,
-0.014438421,
0.004823762,
-0.047938187,
0.07367466,
0.024714021,
0.0074383067,
0.0071133142,
0.041277673,
0.0050903284,
-0.010655365,
-0.02155904,
-0.025269063,
-0.00447686,
-0.026043203,
-0.020755688,
-0.036311496,
0.030089173,
-0.026627459,
-0.0018970055,
0.01502998,
-0.04168665,
-0.006704335,
-0.04478321,
0.03298124,
-0.032192495,
0.015511991,
0.026978012,
-0.008712715,
-0.017454641,
0.034675583,
0.015292895,
0.024202796,
0.03452952,
0.008259917,
0.00861047,
0.037421584,
0.018856855,
-0.0057111005,
-0.019470325,
-0.0011694245,
-0.021033209,
-0.030615004,
0.015088405,
0.009676737,
0.011612084,
-0.019265834,
-0.033799198,
0.019996155,
0.0429428,
-0.035376687,
-0.024640989,
-0.018783825,
0.06491082,
-0.028321799,
-0.00074538257,
0.017118694,
-0.0020868888,
-0.005104935,
-0.018243387,
0.040372074,
-0.060587324,
-0.0052108313,
-0.04776291,
0.032192495,
0.01361316,
-0.03143296,
-0.021033209,
-0.019616388,
-0.010180657,
-0.049924657,
0.0014241235,
0.014927736,
0.015862545,
0.039729394,
0.03204643,
0.006477936,
-0.018345632,
-0.0037428886,
0.037333947,
0.032952026,
0.030615004,
0.079225086,
0.05194034,
-0.0027898215,
-0.051589787,
0.008741927,
-0.009903136,
-0.030615004,
-0.0053715017,
-0.0066568647,
-0.001811193,
-0.0048383684,
-0.040459715,
0.00063035724,
0.082380064,
0.008749231,
-0.008325645,
0.00020346252,
-0.0119991535,
-0.08208794,
0.0066897287,
-0.06923431,
0.04939883,
-0.011918819,
-0.016899599,
0.01822878,
-0.03771371,
0.25403443,
0.024538744,
-0.024012914,
0.052115615,
0.024538744,
0.07642066,
0.031053195,
-0.015059193,
0.023282593,
-0.07899138,
0.04063499,
0.0043965247,
-0.0037794046,
0.028175736,
-0.011626691,
0.04367312,
-0.04346863,
0.021632072,
-0.016227705,
-0.033769984,
-0.03520141,
0.012218249,
0.035230625,
0.066371456,
0.006112776,
0.0069124764,
0.036369924,
0.0008448887,
0.018331025,
-0.030206025,
-0.0012232856,
-0.03572724,
-0.015249076,
-0.029198183,
-0.034003686,
0.029066727,
0.0504797,
-0.04031365,
-0.030556578,
0.034091327,
-0.0043965247,
-0.00048338037,
0.04741236,
0.014022139,
0.0050355545,
0.027197108,
0.009983471,
-0.0057403133,
0.005941151,
-0.055358235,
0.039291203,
-0.03140375,
0.026349936,
-0.019645602,
0.0041810805,
-0.027167894,
0.027255533,
-0.021880379,
-0.04472478,
-0.035464328,
0.045162972,
0.0049880836,
0.009472247,
0.0032371422,
-0.0017755899,
0.042592246,
0.016417587,
0.0404305,
-0.022172507,
-0.041102394,
0.011509839,
-0.03154981,
-0.017162515,
-0.064852394,
0.015278289,
-0.019630995,
0.0023333717,
0.020843325,
0.027255533,
-0.026861161,
0.0059557576,
-0.0053276825,
-0.028102703,
-0.06526137,
0.026072415,
-0.000052463205,
-0.042563036,
-0.00094667694,
0.011181195,
0.03079028,
0.008091942,
0.060762603,
-0.028424045,
0.0037355856,
0.023720786
] | Introduction: how the agent should behave, explanation of the concept of tools.
Description of all the tools. This is defined by a <<all_tools>> token that is dynamically replaced at runtime with the tools defined/chosen by the user.
A set of examples of tasks and their solution
Current example, and request for solution. |
[
0.052167982,
-0.026235908,
-0.026205525,
-0.0129204625,
0.04192884,
-0.020068115,
-0.01289008,
0.019141426,
-0.0007648025,
0.043994896,
-0.030261684,
0.010808829,
0.021663234,
-0.020478288,
-0.013604085,
-0.018002056,
-0.006080441,
-0.012411544,
-0.025673818,
-0.020235222,
-0.008940262,
-0.00067080447,
-0.06781534,
-0.036915608,
-0.035122998,
-0.02871214,
0.030778198,
-0.0054879687,
0.07304125,
0.016224638,
-0.03864745,
0.025445944,
-0.009502351,
-0.03749289,
0.02474713,
-0.022544347,
0.047853567,
-0.04694207,
-0.046790153,
-0.033877287,
-0.0034314045,
-0.013915514,
0.010907575,
-0.024549639,
-0.0865314,
-0.012297607,
-0.021845533,
0.003256701,
-0.026008034,
-0.030216109,
0.038799368,
0.019187002,
-0.0006147854,
0.001709056,
-0.021070762,
-0.01491816,
-0.004120724,
-0.020554246,
-0.04864353,
0.0068969904,
0.018032439,
0.034636866,
0.006437444,
-0.049706943,
-0.020599822,
0.0029205866,
-0.015275162,
0.006976746,
-0.010170782,
-0.016118297,
-0.031112414,
0.047367435,
-0.0030440185,
-0.017698223,
-0.035761047,
0.0107936375,
0.035973728,
-0.0013435079,
-0.016513279,
0.047732033,
0.0065399874,
0.049828473,
-0.0061639952,
-0.012950846,
0.00023594467,
-0.047671266,
0.031568162,
0.015601782,
0.034636866,
-0.022255706,
-0.021131527,
0.017212093,
-0.020007348,
0.009092177,
0.020873269,
0.049646176,
-0.016589236,
0.028955206,
0.019657942,
0.014295303,
0.030200917,
0.06641771,
-0.04411643,
0.01576889,
-0.031066839,
0.00916054,
0.043022636,
-0.020159265,
-0.006745074,
0.0009798587,
0.052836414,
-0.035274915,
0.0119178165,
-0.015996763,
-0.039163966,
0.04666862,
0.01822993,
-0.04317455,
-0.05724198,
-0.0054423935,
-0.011636772,
-0.022878563,
-0.023182394,
-0.036672544,
0.012609035,
0.0006304518,
-0.023607759,
0.024488872,
-0.050405756,
-0.0036383902,
0.006821032,
0.020918844,
0.02682838,
0.017713415,
-0.008150298,
0.01138611,
-0.032753106,
0.012722972,
0.043842983,
-0.023744484,
0.01699941,
-0.026797997,
-0.029152697,
0.08154856,
0.03138586,
0.001124179,
-0.0109683415,
0.037614424,
-0.066296175,
0.026175141,
-0.02416985,
0.007493261,
-0.01223684,
-0.0066387327,
-0.021177102,
-0.01634617,
-0.028696949,
-0.031142797,
-0.008059149,
0.016361361,
0.018138781,
0.021298636,
-0.03694599,
0.035487596,
0.0061943782,
0.05280603,
-0.027344896,
-0.019399684,
0.016786728,
-0.019825049,
0.0048195375,
-0.020523863,
0.016118297,
-0.00448912,
0.040196996,
0.015601782,
0.029775552,
-0.0064602313,
0.011469664,
0.01993139,
-0.020706162,
0.017971672,
-0.016741153,
0.022316473,
0.00072255085,
0.012335586,
0.0026471377,
0.04998039,
0.0033535475,
-0.022741837,
0.011143045,
0.06471625,
-0.03172008,
0.03138586,
0.0058791526,
0.010072037,
-0.029167889,
0.033664603,
0.025932075,
-0.072129756,
-0.042080756,
0.018913552,
0.024959812,
0.0067792553,
-0.011826667,
0.017941289,
-0.0051613487,
0.047762416,
-0.028377924,
0.035639513,
0.04733705,
0.029593254,
-0.060310684,
0.0195516,
0.034181118,
-0.01748554,
-0.017394392,
-0.00079423626,
-0.009228902,
-0.0030193322,
0.013999067,
0.024716746,
0.0040409677,
0.005825982,
-0.010467018,
-0.04031853,
-0.013186316,
0.035943344,
0.005225913,
0.052259132,
0.010459422,
0.046729386,
0.0069121816,
0.04514946,
0.032935407,
0.021967066,
0.032631576,
-0.009570713,
-0.011933008,
0.016011955,
-0.0039460203,
0.03673331,
0.06514162,
0.043934133,
0.027284129,
0.018867977,
0.0010045451,
0.007599602,
0.019202193,
0.017196901,
-0.068362236,
0.0570293,
0.010580955,
0.019718708,
-0.028089283,
-0.009456776,
0.0047131963,
0.037128292,
-0.030322451,
-0.053322546,
-0.01795648,
0.017515924,
-0.0013245184,
-0.007967998,
0.019414876,
0.02568901,
-0.0057955985,
0.0075198463,
-0.0054006167,
-0.06696461,
-0.011553219,
-0.015366312,
-0.092121914,
-0.009107369,
-0.03138586,
-0.000033558026,
-0.0029756562,
-0.0392855,
-0.032935407,
-0.07541114,
-0.018867977,
0.01747035,
-0.039893165,
0.048765063,
-0.013771193,
-0.0068476177,
-0.043691065,
-0.032145444,
-0.028605798,
0.046364788,
-0.032844257,
-0.0030155343,
-0.043751832,
-0.04129079,
0.0071666413,
-0.010672105,
0.022559538,
0.0014707376,
-0.0047815586,
-0.028013326,
-0.021982256,
-0.031416245,
0.012776143,
-0.0032016314,
-0.017546307,
0.007170439,
0.022468388,
-0.016574044,
0.03521415,
0.046911687,
-0.023091245,
0.054142892,
-0.004189086,
0.026494164,
-0.04675977,
0.054629024,
-0.004238459,
-0.009388414,
0.0038206894,
0.007937616,
0.009707438,
-0.02767911,
-0.012867292,
-0.04372145,
-0.024139466,
0.039802015,
-0.033117708,
-0.08081935,
-0.00026870158,
-0.00535884,
-0.012662206,
-0.048400465,
-0.00745908,
0.024823088,
-0.0036364913,
0.020903653,
-0.028256392,
0.023471035,
0.0039346265,
0.04551406,
0.007569219,
-0.0053778295,
-0.008340193,
0.005324659,
-0.003725742,
0.041533858,
0.022392431,
-0.06295402,
-0.0031408651,
-0.019293342,
0.026585314,
0.033938054,
0.033208854,
0.015662549,
0.048521996,
0.030018618,
-0.03591296,
0.026752422,
-0.000040679093,
0.020098498,
0.008317405,
0.05942957,
0.019247768,
0.008560471,
-0.012031754,
-0.0049486663,
0.007056502,
0.017607074,
0.08318925,
-0.043204933,
-0.0082490435,
0.020508671,
-0.027542386,
-0.023638142,
-0.04496716,
-0.055084772,
0.04654709,
0.035669897,
0.07018523,
-0.008157894,
-0.010884787,
-0.011629176,
-0.005598108,
0.02445849,
-0.011135449,
0.025840925,
0.019703517,
0.017409584,
0.04013623,
-0.006198176,
0.022422815,
0.0033915266,
-0.015738506,
-0.010550572,
-0.05535822,
-0.018624911,
0.008871899,
0.013725618,
0.057971176,
0.017044984,
-0.0044321516,
0.00088206277,
0.02739047,
0.014842201,
-0.023638142,
0.043417618,
-0.046273638,
0.051499553,
-0.0043144166,
0.009677054,
-0.037462506,
0.010034057,
0.014819414,
0.0040637553,
0.02673723,
0.005860163,
-0.064169355,
-0.011226598,
0.012426736,
0.000007892515,
-0.04976771,
-0.02514211,
0.0010073936,
0.02237724,
0.05146917,
-0.020478288,
-0.00058914954,
-0.028104475,
0.026980296,
0.0002234828,
-0.028681757,
-0.03721944,
-0.018883169,
-0.0042498526,
-0.043873366,
0.0152068,
0.04268842,
-0.019065468,
0.008507301,
-0.03709791,
-0.038009405,
0.021465743,
-0.0030535134,
0.027056254,
-0.0030971891,
0.012335586,
0.046152107,
-0.010041653,
-0.006084239,
-0.055175923,
0.0066881054,
-0.016589236,
-0.00559431,
-0.017607074,
0.04748897,
-0.020295989,
-0.015556207,
-0.019035086,
0.03977163,
0.030945307,
-0.04666862,
0.021116335,
0.020371947,
-0.027800644,
-0.031811226,
0.054477107,
0.014553561,
0.00021398805,
0.018002056,
0.007588208,
-0.004963858,
0.004466333,
0.012966038,
-0.033451922,
-0.015427078,
-0.0063918694,
0.005077795,
0.001144118,
0.008803537,
-0.0042004795,
-0.036581393,
0.0483397,
-0.015373908,
-0.017318433,
-0.024200233,
-0.053930208,
0.0019616163,
0.01623983,
0.0027819632,
0.0049372725,
-0.00052221154,
-0.034059584,
0.008704792,
-0.056330483,
-0.032996174,
-0.033148088,
0.0024686363,
0.009464372,
0.062103294,
-0.0096694585,
0.033664603,
-0.015290353,
-0.035730664,
0.036338326,
-0.048704296,
-0.01842742,
0.0037637209,
-0.0062741344,
0.043022636,
-0.024792705,
-0.028605798,
0.038708217,
-0.009502351,
-0.0059968876,
0.03351269,
0.02183034,
0.010072037,
-0.017971672,
-0.0056664697,
0.06240713,
-0.022331664,
-0.08677447,
-0.041868072,
0.027420852,
0.007892041,
0.0071400558,
0.0195516,
-0.024488872,
-0.03232774,
-0.0604626,
0.034089968,
-0.00963148,
-0.01889836,
-0.01241914,
-0.034910318,
0.0034408993,
0.033755753,
0.009950504,
-0.05942957,
-0.007573017,
-0.041412324,
0.027739877,
-0.04165539,
0.020812504,
-0.049555026,
0.008180681,
-0.0037029546,
0.013338232,
0.007793295,
0.0139383,
-0.016011955,
-0.007683156,
0.018959127,
0.01993139,
-0.015829656,
0.0039346265,
0.0028066495,
-0.014470007,
-0.017424775,
0.0008493058,
-0.0017014601,
0.035244532,
-0.009335243,
0.018442612,
-0.008522492,
-0.05733313,
-0.043387234,
-0.00096846506,
0.02729932,
-0.024701554,
-0.014325687,
-0.035821814,
0.03958933,
0.0059209294,
-0.00086164905,
-0.013543319,
-0.0023452046,
-0.038799368,
-0.041412324,
0.03184161,
-0.021936683,
-0.031963143,
-0.0018875573,
0.0029623637,
0.054568257,
-0.0398324,
0.018093206,
0.0783887,
-0.0022825391,
0.03305694,
-0.08215622,
0.027512003,
-0.02710183,
-0.028074091,
-0.027360087,
-0.013459765,
-0.0432657,
-0.004876506,
-0.040561594,
-0.02031118,
-0.037644807,
0.05034499,
0.050588056,
-0.028408308,
0.03412035,
0.02483828,
-0.054750558,
-0.018852785,
0.02521807,
0.01417377,
0.011446876,
0.016255021,
0.020280797,
-0.0029775552,
-0.004694207,
-0.009107369,
-0.006555179,
-0.019779474,
0.048886597,
0.012609035,
-0.043235317,
0.036885224,
0.03445457,
-0.03919435,
-0.051408403,
0.020159265,
0.007557825,
-0.049342345,
-0.011059491,
0.00037029546,
0.041807305,
-0.022908945,
0.0072425995,
0.025871309,
0.002681319,
-0.009623884,
0.007219812,
-0.024610406,
-0.044906393,
-0.015267567,
0.044359498,
-0.043842983,
0.0046296427,
-0.06368322,
0.0021116335,
-0.0284235,
0.019657942,
0.02183034,
0.020721354,
-0.021374593,
0.03788787,
-0.01859453,
0.073405854,
-0.017834948,
0.0057728114,
-0.001124179,
-0.044632945,
-0.0345761,
0.000039699946,
0.037432123,
0.0011289264,
-0.030626282,
-0.006745074,
0.013193912,
0.037614424,
0.039710864,
0.021784766,
-0.049068894,
0.0032111262,
-0.03211506,
0.0060234726,
-0.018746445,
-0.02464079,
-0.028028518,
-0.008446534,
0.0015191608,
0.0033136695,
-0.0033668403,
0.029866703,
0.0050588055,
-0.020630203,
-0.058518074,
0.012373565,
-0.0135129355,
-0.03615603,
0.0042878315,
0.0005098684,
-0.027785452,
0.02559786,
-0.022559538,
-0.019308534,
-0.0040865424,
0.04277957,
-0.0032149241,
0.020371947,
-0.035457212,
-0.0052145193,
0.019187002,
0.008416151,
-0.028636182,
0.019430067,
0.037827104,
-0.040743895,
0.00081370055,
0.009289669,
-0.02597765,
0.0066881054,
0.030443983,
0.049737327,
-0.021298636,
0.028681757,
0.015996763,
-0.019308534,
-0.0349407,
-0.035487596,
-0.012616631,
0.002134421,
-0.0033649413,
0.04560521,
-0.006828628,
0.04165539,
-0.0000877078,
0.030717432,
0.014082621,
0.010292315,
0.037067525,
-0.0045233015,
0.009525139,
0.013968684,
-0.0015780283,
-0.013444574,
-0.0012628024,
0.041533858,
-0.029714786,
0.031066839,
-0.020508671,
-0.020478288,
-0.04241497,
-0.020068115,
-0.019657942,
0.0064108586,
0.046425555,
-0.014530773,
0.0009827071,
0.0054537873,
-0.008203468,
0.014751052,
-0.061495632,
-0.06277172,
-0.0061108246,
-0.043417618,
0.025673818,
0.0028921023,
0.005894344,
-0.024777513,
0.015305545,
0.003611805,
-0.025233261,
0.017941289,
0.0014859292,
0.014424432,
-0.030717432,
-0.01118862,
0.010687296,
-0.00029410006,
0.011256982,
-0.069638334,
0.035578746,
0.05754581,
0.0213594,
-0.032145444,
-0.07401352,
0.027739877,
-0.021891108,
-0.008841516,
-0.016893068,
0.04609134,
-0.047732033,
0.0142193455,
-0.02447368,
0.025795352,
-0.003953616,
0.006957757,
0.041442707,
-0.0036896619,
0.009737821,
0.02237724,
-0.031294715,
-0.019065468,
-0.0024116677,
0.03542683,
0.022665879,
-0.009008624,
0.0030933912,
-0.03834362,
0.006741276,
0.06441242,
0.019384492,
0.013778789,
0.02134421,
0.044815246,
0.008469322,
0.017895715,
0.0013928806,
0.030808581,
0.0052145193,
-0.002949071,
0.010353081,
-0.0057614176,
-0.029426144,
-0.01775899,
0.008005978,
-0.008340193,
-0.011370919,
-0.041746538,
-0.05013231,
0.020052923,
0.0150472885,
0.0011782991,
-0.015799273,
-0.05933842,
0.0119482,
0.0035149583,
-0.012973634,
-0.020463096,
0.04366068,
0.04891698,
0.016725961,
0.041351557,
-0.011469664,
0.012540673,
-0.017136134,
-0.0039764033,
-0.005700651,
0.012001371,
-0.01710575,
-0.022438005,
-0.03904243,
0.043994896,
0.006452636,
-0.004147309,
0.036915608,
-0.018078014,
-0.008583259,
-0.05979417,
-0.01964275,
-0.041351557,
0.03363422,
0.016756345,
-0.022407623,
-0.041503474,
0.01964275,
0.0027439843,
0.030109767,
0.035548363,
0.078631766,
0.020721354,
0.045392524,
0.045939423,
-0.02228609,
0.010991128,
0.015297949,
0.020615013,
-0.034697633,
0.053990975,
-0.003877658,
0.0033193664,
-0.048613146,
-0.019566791,
0.01897432,
0.05958149,
-0.04645594,
-0.032996174,
-0.0007785699,
0.014986522,
-0.04147309,
0.028058901,
0.06122218,
-0.008066744,
0.00045123824,
-0.014477603,
-0.0020014944,
-0.021298636,
-0.0069615543,
-0.05584435,
0.00925169,
0.0008260437,
-0.06660001,
-0.029213462,
-0.05396059,
-0.009471968,
-0.029122313,
0.0032851852,
-0.038617067,
-0.0006109875,
0.038951285,
0.036429476,
0.00025374733,
-0.014059833,
0.009509947,
0.044177197,
0.059824552,
0.05356561,
0.054234043,
0.05204645,
-0.01927815,
-0.01859453,
-0.02445849,
0.033543073,
0.016832301,
0.00874277,
0.029061547,
0.013186316,
-0.01633098,
-0.014310495,
-0.05450749,
0.05544937,
-0.014986522,
-0.00024733838,
-0.07796334,
-0.006346294,
-0.060098004,
-0.0037010557,
0.0026110576,
0.06307556,
-0.02445849,
0.022893753,
-0.014766243,
-0.0782064,
0.27685186,
0.032935407,
0.02369891,
0.06751151,
0.035669897,
0.078631766,
0.009289669,
-0.024899047,
0.002677521,
-0.04147309,
0.036885224,
-0.041047726,
-0.035852194,
-0.005894344,
-0.009517543,
0.0099581,
-0.021313826,
0.0010406252,
-0.028469075,
-0.017394392,
-0.023638142,
0.018062823,
-0.004147309,
0.07370968,
0.0070223208,
0.029122313,
0.060979117,
-0.055692434,
0.015981572,
-0.051499553,
0.019035086,
-0.019354109,
0.003839679,
0.004572674,
-0.014690286,
0.04894736,
0.011196216,
-0.056664698,
-0.02530922,
0.00045503615,
0.015503036,
-0.01586004,
0.01241914,
-0.0031332693,
0.00092858705,
0.03506223,
0.013490148,
0.035882577,
0.029957851,
-0.07498578,
0.030656666,
-0.035366066,
0.026965104,
-0.012722972,
-0.04420758,
-0.022969712,
-0.007922424,
-0.022422815,
0.01596638,
0.041199643,
0.008256639,
-0.003797902,
0.019612366,
0.019764282,
-0.06805841,
0.05411251,
0.041898455,
0.027967751,
-0.05450749,
-0.0144016445,
0.023167202,
0.00939601,
-0.01417377,
-0.044784863,
0.017971672,
0.016118297,
0.024701554,
0.008469322,
0.033300005,
-0.0477928,
0.013072379,
0.003368739,
-0.066478476,
-0.017120942,
0.024245806,
0.057302747,
-0.043873366,
0.0045612804,
-0.0152068,
0.030990882,
0.009031411,
0.0104974015,
-0.023121627,
0.015191608,
0.011933008
] |
To better understand each part, let's look at a shortened version of how the run prompt can look like:
````text
I will ask you to perform a task, your job is to come up with a series of simple commands in Python that will perform the task.
[]
You can print intermediate results if it makes sense to do so.
Tools:
- document_qa: This is a tool that answers a question about a document (pdf). It takes an input named document which should be the document containing the information, as well as a question that is the question about the document. It returns a text that contains the answer to the question.
- image_captioner: This is a tool that generates a description of an image. It takes an input named image which should be the image to the caption and returns a text that contains the description in English.
[]
Task: "Answer the question in the variable question about the image stored in the variable image. The question is in French."
I will use the following tools: translator to translate the question into English and then image_qa to answer the question on the input image.
Answer:
py
translated_question = translator(question=question, src_lang="French", tgt_lang="English")
print(f"The translated question is {translated_question}.")
answer = image_qa(image=image, question=translated_question)
print(f"The answer is {answer}")
Task: "Identify the oldest person in the document and create an image showcasing the result as a banner."
I will use the following tools: document_qa to find the oldest person in the document, then image_generator to generate an image according to the answer.
Answer:
py
answer = document_qa(document, question="What is the oldest person?")
print(f"The answer is {answer}.")
image = image_generator("A banner showing " + answer)
[]
Task: "Draw me a picture of rivers and lakes"
I will use the following
`
The introduction (the text before "Tools:") explains precisely how the model shall behave and what it should do.
This part most likely does not need to be customized as the agent shall always behave the same way.
The second part (the bullet points below "Tools") is dynamically added upon calling run or chat. There are
exactly as many bullet points as there are tools in agent.toolbox and each bullet point consists of the name
and description of the tool:
text
- <tool.name>: <tool.description>
Let's verify this quickly by loading the document_qa tool and printing out the name and description. |
[
0.024357911,
-0.021135129,
-0.010459659,
-0.009150403,
-0.0040536574,
0.006010347,
-0.005438447,
-0.0217394,
0.00012274273,
0.029249636,
0.04293208,
-0.012776034,
0.031163163,
-0.027825281,
-0.0025861398,
0.0385583,
-0.0001472463,
-0.01939425,
-0.022127861,
0.0029044617,
-0.0337529,
0.005416866,
-0.066527456,
0.005384494,
-0.036083665,
-0.0028163386,
0.006215368,
-0.0024728389,
0.067736,
0.041723534,
-0.042299032,
0.0031724274,
-0.0047730287,
-0.020473307,
0.020128008,
-0.05035599,
0.030386243,
-0.028141804,
-0.026674287,
-0.041493338,
-0.0064131953,
0.021509202,
0.014466557,
-0.054355696,
-0.06560666,
0.027321722,
-0.0047766254,
-0.008862655,
-0.032601908,
-0.053118378,
-0.008632456,
0.0069779013,
-0.010711439,
0.004104013,
-0.019322313,
-0.032486808,
-0.022674583,
-0.014128452,
-0.055477913,
0.00031067847,
0.034213297,
0.049607843,
0.014207583,
-0.036256313,
-0.018905077,
0.045147743,
-0.0035195241,
-0.0040968196,
0.010143136,
-0.024142101,
-0.025580844,
0.05153576,
-0.0075749797,
-0.03369535,
-0.03950787,
0.008754749,
0.031220714,
0.0005179473,
-0.022185411,
0.03303353,
0.0051722797,
0.025969304,
0.030501343,
0.0012427139,
0.0024926215,
-0.050528638,
0.022876007,
-0.010581952,
-0.0039133797,
-0.014135646,
-0.04175231,
0.027854057,
-0.006136237,
0.0040680445,
0.05539159,
0.045406714,
-0.0139126405,
0.012696903,
-0.01799867,
-0.0113660665,
0.05996679,
0.10802079,
-0.036659162,
0.010301397,
-0.008841073,
0.0034511837,
0.02392629,
-0.015826168,
-0.036169987,
-0.007977827,
0.016919613,
-0.016113916,
0.03542184,
-0.016559927,
0.009517282,
0.016286567,
0.0016015003,
0.019768324,
-0.023278855,
-0.046241187,
-0.020358207,
-0.007819566,
-0.04002582,
-0.046413835,
-0.015624745,
-0.02392629,
-0.025249932,
0.041550886,
0.011078318,
-0.008877042,
0.0033504718,
-0.0005934813,
0.016416052,
0.040543765,
0.01542332,
-0.01137326,
-0.01174014,
-0.031220714,
0.007387943,
0.0013290384,
0.043392476,
-0.02090493,
-0.024098938,
0.09064078,
0.022976719,
-0.011509941,
0.020976868,
-0.011416422,
-0.06031209,
0.055103842,
-0.03358025,
-0.0043881647,
-0.008754749,
-0.00032056984,
-0.04175231,
-0.024214037,
-0.020257495,
-0.0049384837,
0.015121184,
-0.0011455988,
0.0063700327,
0.00019434265,
-0.039594196,
0.06485852,
-0.014560075,
0.052456554,
-0.026314601,
-0.027638245,
0.014387426,
-0.00016489338,
-0.00265448,
0.012696903,
-0.0069203516,
0.012538642,
0.05700298,
-0.028256904,
0.041924957,
0.029264024,
0.023854353,
0.024861472,
-0.0065966346,
0.011891208,
-0.0020088444,
0.021394102,
0.007312409,
0.013545762,
0.01559597,
0.051017813,
-0.011812077,
-0.016142692,
0.048600726,
0.06670011,
-0.061347984,
0.0023973049,
-0.022976719,
-0.004341406,
-0.04572324,
0.01067547,
0.004384568,
-0.0580101,
-0.031767435,
0.021149516,
0.008963366,
0.0046687196,
-0.0018631717,
0.023998227,
0.022703357,
0.04011214,
-0.017365623,
0.021768175,
0.07320322,
0.05504629,
-0.035277966,
0.02202715,
0.01883314,
-0.015394546,
-0.040198468,
0.047392182,
0.008395063,
-0.029868295,
0.022271736,
0.02084738,
0.030587668,
-0.000037991795,
0.008697199,
-0.029983396,
0.005215442,
0.08143283,
0.018228868,
0.030242369,
0.016775738,
0.03588224,
0.014689562,
0.051996157,
-0.0056003053,
0.025120445,
0.04957907,
0.00025065592,
0.041493338,
-0.019423025,
0.005085955,
0.009466927,
0.03006972,
0.021609914,
-0.0061254464,
0.010682664,
-0.013351531,
-0.014164421,
-0.01559597,
0.024055775,
-0.033839226,
0.069117196,
0.019739548,
-0.023034269,
-0.046528935,
-0.035594493,
-0.0036795842,
0.03622754,
-0.03711956,
-0.010409303,
0.0033774483,
0.017178586,
0.0014980907,
-0.001709406,
0.032573134,
0.022588259,
0.00021390055,
-0.013538567,
-0.013315562,
-0.060945135,
-0.01092725,
-0.0011995516,
-0.07539011,
0.008395063,
-0.05018334,
-0.017754083,
0.00021210212,
-0.0291777,
-0.009100047,
0.000061371364,
0.024674436,
0.012481092,
-0.021106353,
0.03297598,
0.023696091,
0.00776921,
-0.05585199,
0.0016833288,
-0.026890099,
0.02844394,
-0.042011283,
0.0060247346,
-0.009215146,
-0.055593014,
0.007913084,
0.029048212,
-0.0142435515,
-0.027408047,
-0.037148334,
-0.011322904,
-0.047910128,
-0.014502525,
-0.033234954,
0.025120445,
-0.045838337,
0.04014092,
0.02419965,
-0.0031040872,
0.051679634,
0.046816684,
0.010912863,
0.049665395,
0.03588224,
0.000713976,
-0.061117783,
0.043392476,
0.03565204,
0.0015781207,
-0.023768028,
-0.013351531,
-0.041119263,
0.023883127,
-0.017394397,
-0.033436377,
0.014847823,
0.056974206,
-0.027364884,
-0.06589441,
0.019351088,
-0.029436674,
-0.015394546,
-0.048082776,
0.020804217,
0.022818457,
-0.010186298,
0.015495257,
-0.053118378,
-0.0023001898,
0.0043270183,
-0.004708285,
0.008366288,
-0.041665986,
0.00790589,
0.008351901,
0.022760907,
0.002704836,
0.020315045,
-0.048485626,
-0.016372891,
0.00132724,
0.009790643,
-0.0108697,
0.011402035,
0.008596487,
-0.008510162,
0.015826168,
-0.012423542,
0.0029494222,
0.017308073,
0.034184523,
0.009294277,
0.039536647,
0.01358173,
-0.026616737,
0.00041026645,
-0.0107186325,
-0.044802442,
-0.02090493,
0.03242926,
-0.06416792,
0.0050679706,
-0.010517208,
-0.03309108,
0.012984652,
0.00927989,
-0.04756483,
0.03766628,
0.0044205366,
0.071476735,
0.018487843,
-0.04063009,
-0.020703506,
0.018459067,
0.032745782,
0.024084551,
0.033781677,
0.023566604,
0.008416644,
-0.029249636,
-0.024731984,
0.009790643,
0.011150255,
0.03124949,
-0.01005681,
-0.034731247,
-0.017638983,
0.011222192,
0.00751743,
0.053549998,
0.01598443,
0.0015403538,
-0.023724865,
0.008279963,
0.041637212,
-0.016516766,
0.039392773,
-0.049751718,
0.04626996,
0.021782562,
0.0048054,
0.0065786503,
0.011596265,
-0.010653889,
0.036659162,
0.02923525,
-0.008229608,
-0.0072116973,
0.0059599914,
0.020358207,
0.030530117,
0.0018200093,
-0.03208396,
-0.012747259,
0.008977754,
0.02884679,
-0.015653519,
0.015006085,
-0.02202715,
0.0036022516,
0.03240048,
-0.0006424885,
-0.030328693,
0.005614693,
-0.022962332,
-0.07913084,
0.05475854,
0.05254288,
-0.029666873,
-0.0059707817,
-0.032832105,
-0.0013820921,
0.0053449287,
-0.013409081,
0.008467,
-0.015653519,
-0.0036903748,
-0.0009900348,
0.0040968196,
-0.03309108,
-0.02888995,
0.029810747,
-0.064455666,
0.027005197,
-0.02078983,
0.008344707,
0.0009158496,
0.0019117292,
0.016315341,
0.03565204,
0.00771166,
-0.03427085,
0.000034647845,
0.01542332,
-0.039939493,
-0.04644261,
0.045464266,
0.02476076,
-0.006265724,
0.019638836,
0.00080075016,
-0.009035303,
0.056657683,
-0.0061002686,
-0.022631422,
0.002830726,
-0.020804217,
0.008344707,
0.0045392327,
-0.03499022,
0.0043198247,
-0.04814033,
0.03991072,
0.013783154,
0.012524255,
0.0017130029,
-0.064743415,
-0.007776404,
0.011207805,
-0.010747408,
0.02230051,
0.012365992,
-0.019379864,
-0.010042423,
-0.067736,
-0.0029710035,
-0.008761942,
-0.024746373,
-0.036285087,
0.050442316,
0.020228721,
0.042183932,
-0.05035599,
-0.022775294,
0.0043485994,
-0.01738001,
0.0027731764,
0.015639132,
0.0037623118,
0.045694463,
-0.017135425,
-0.005085955,
0.03435717,
-0.02817058,
-0.012107018,
-0.030558892,
-0.008251188,
0.019034564,
-0.031882536,
0.014265133,
0.045176517,
0.014516912,
-0.089604884,
-0.035623267,
0.03185376,
-0.010474046,
0.010322978,
0.058211524,
-0.044514697,
-0.032112736,
-0.033781677,
0.025724716,
-0.021307778,
0.022516321,
-0.042845756,
0.0127976155,
0.006959917,
0.013085363,
0.020027297,
-0.046874233,
-0.0011941564,
-0.04011214,
-0.035911016,
0.007646917,
0.012027888,
-0.04655771,
-0.022401221,
0.014552881,
0.037982803,
0.011452391,
0.02230051,
-0.039997045,
-0.03113439,
0.019408638,
0.015826168,
-0.048284203,
-0.0063988077,
-0.012869553,
-0.012545835,
-0.03162356,
0.005697421,
-0.019379864,
0.021408489,
-0.034328397,
0.028472716,
-0.029781971,
-0.05202493,
-0.052341454,
0.019120889,
0.02280407,
-0.06019699,
-0.016746964,
-0.023465892,
0.03124949,
0.0025681555,
0.030242369,
-0.025221158,
-0.011027962,
-0.04042867,
-0.0669303,
0.04460102,
-0.034011874,
0.0051435046,
-0.012013501,
0.024803922,
0.037148334,
-0.022876007,
-0.001755266,
0.07141918,
0.029321574,
0.017638983,
-0.06923229,
0.046471387,
0.0027911607,
-0.036371414,
-0.0025483728,
0.0033666575,
-0.013617698,
0.021883275,
-0.01143081,
-0.024933409,
-0.0242572,
-0.013711217,
0.04727708,
0.011912788,
0.024544949,
0.01168259,
-0.047305856,
-0.049924366,
0.04615486,
0.040169694,
0.0011375059,
0.00821522,
0.0063016927,
0.0023667316,
0.0137471855,
-0.003809071,
-0.02609879,
-0.008243995,
0.06019699,
-0.023897514,
-0.0084885815,
0.032055184,
0.035306744,
-0.022099085,
-0.047363404,
-0.014459363,
0.022343673,
-0.037090782,
-0.039191347,
-0.048859697,
0.017077874,
-0.00008997761,
-0.00776921,
0.037551183,
-0.021509202,
-0.014401813,
0.024947796,
-0.026314601,
-0.012999039,
-0.005168683,
0.04448592,
-0.01900579,
-0.0036418173,
-0.044111848,
0.0024674435,
-0.037148334,
-0.034443498,
0.05237023,
0.01586933,
-0.014257939,
0.031940084,
0.0065858443,
0.107330196,
-0.0048773373,
0.006165012,
0.030990515,
-0.035277966,
-0.05444202,
-0.010409303,
0.04549304,
0.017912345,
-0.007107388,
-0.017063487,
0.013315562,
0.027235396,
0.024012614,
0.002309182,
-0.09230972,
0.045953438,
-0.052456554,
0.010186298,
0.0017579636,
-0.02168185,
-0.010934443,
0.02995462,
-0.019811485,
0.010243847,
-0.03185376,
0.043709,
-0.02542258,
0.008668424,
-0.03896115,
0.018372742,
-0.02772457,
-0.039047472,
-0.0113516785,
-0.011236579,
0.0060786875,
0.005028405,
-0.02693326,
-0.013056589,
0.00568663,
0.04696056,
-0.0007355572,
-0.0007845643,
-0.027465597,
0.018775592,
0.040658865,
-0.0216243,
-0.032371707,
-0.00072296814,
0.023998227,
-0.028746076,
0.0020268287,
0.030386243,
0.014416201,
0.020631569,
0.012704097,
0.02509167,
-0.03219906,
0.024847085,
-0.00021760982,
0.005639871,
-0.054183047,
-0.0045464267,
-0.0065031163,
0.0048845313,
-0.00249442,
0.033868,
0.008114508,
0.050816387,
0.01654554,
-0.021509202,
0.011459584,
0.023854353,
0.04598221,
0.0035662833,
0.03622754,
-0.015639132,
-0.0059815724,
0.002192284,
-0.0008367187,
0.002535784,
-0.028832402,
0.020199945,
0.008567712,
-0.03309108,
-0.03749363,
-0.0042478875,
0.027983543,
0.045953438,
0.054125495,
-0.037637506,
0.013092558,
-0.006967111,
-0.008618068,
0.012833584,
-0.05075884,
-0.036428962,
0.026890099,
-0.049838044,
0.0034835555,
-0.014236358,
-0.013970191,
0.00550319,
0.010999187,
0.0035770738,
-0.017480722,
0.019940972,
-0.029163312,
0.004183144,
-0.055477913,
-0.021322165,
-0.015063635,
0.033896774,
-0.002280407,
-0.027882831,
-0.00073645636,
0.035479393,
0.063132025,
0.00076298317,
-0.04180986,
-0.008085733,
-0.019451799,
0.044572245,
-0.0035339114,
-0.0023775222,
-0.019120889,
0.013675248,
-0.06514627,
0.053549998,
-0.01939425,
0.016113916,
0.01794112,
0.0014576261,
0.005913232,
0.036860585,
-0.011214999,
0.0050787614,
-0.011862433,
0.050902713,
0.002541179,
-0.023796802,
-0.008582099,
-0.016804513,
0.022890395,
0.02704836,
0.0018577763,
-0.02933596,
0.026012465,
0.029105762,
-0.030472567,
-0.020530857,
0.027566308,
0.0126465475,
0.009402183,
0.016344115,
-0.028084256,
-0.012250893,
0.0129630705,
0.008452613,
0.024113325,
-0.048197877,
-0.03973807,
-0.028602203,
-0.028688528,
0.019480575,
-0.013214851,
-0.030817866,
-0.00084301323,
-0.02503412,
0.0438241,
-0.0132724,
-0.006485132,
-0.038126677,
0.022286123,
0.029724421,
-0.0041435785,
0.036803037,
0.022717746,
0.050931487,
-0.028818013,
0.004032076,
-0.008812298,
0.04969417,
0.001314651,
-0.071246535,
-0.055679336,
0.029134538,
0.026314601,
0.025393806,
0.022113474,
-0.043680225,
0.0066182157,
-0.04157966,
0.019135276,
-0.04471612,
0.0059923627,
0.021221453,
-0.036515288,
-0.05193861,
0.028832402,
0.008251188,
0.018128157,
0.011322904,
0.08488581,
0.022573872,
0.048715822,
-0.00827277,
-0.02733611,
-0.002481831,
0.012423542,
-0.0266599,
-0.013783154,
0.022444384,
-0.03337883,
0.0020124412,
-0.06514627,
-0.017106649,
-0.0048269816,
0.02348028,
-0.04376655,
-0.008877042,
0.009992068,
0.014509719,
-0.05219758,
0.026328988,
0.07061349,
0.01003523,
0.006866399,
0.0019189229,
0.008646843,
-0.015452095,
-0.020444533,
-0.033954326,
0.0024908232,
-0.028372005,
-0.02319253,
-0.006539085,
-0.05193861,
-0.021408489,
-0.0031652336,
0.014049321,
-0.015639132,
-0.012668128,
0.03570959,
0.030328693,
-0.01799867,
-0.034213297,
0.0025825428,
0.027134685,
0.02861659,
0.014049321,
0.11377576,
0.084080115,
-0.03795403,
-0.0265448,
-0.017077874,
0.027149072,
0.01003523,
0.003006972,
-0.0011896603,
0.015394546,
-0.0037263434,
-0.036860585,
-0.005017615,
0.028127417,
-0.011063931,
-0.014430588,
-0.056082185,
0.019825872,
-0.055708114,
-0.025940528,
-0.04707566,
0.06042719,
-0.052399006,
0.008769136,
-0.0216243,
-0.12004868,
0.24654293,
0.031220714,
0.034126975,
0.039105024,
0.021048805,
0.06531891,
0.021408489,
-0.04900357,
-0.018041832,
-0.029897071,
0.025552068,
-0.00044263815,
-0.012905521,
0.06687275,
-0.019969746,
0.03605489,
-0.08966244,
-0.0148765985,
-0.024516173,
-0.04917622,
-0.049320094,
0.014042128,
-0.01654554,
0.056859106,
0.03196886,
-3.2315506e-7,
0.028472716,
-0.027983543,
0.025336256,
-0.030271145,
0.007244069,
-0.008632456,
0.024458624,
0.016329728,
-0.03142214,
-0.0015853145,
-0.003431401,
-0.047478504,
-0.010581952,
0.008143283,
0.010394915,
-0.03677426,
0.06963514,
-0.005539159,
0.0015754232,
0.012301249,
-0.032227833,
0.018358355,
0.03142214,
-0.025566455,
0.044773668,
-0.019466188,
0.02202715,
-0.056283608,
-0.02007046,
0.01923599,
-0.008589293,
-0.047708705,
-0.03749363,
0.013538567,
0.018674878,
0.01749511,
0.008884235,
-0.007790791,
-0.03219906,
0.03711956,
0.019739548,
0.06537646,
0.007920278,
0.014509719,
-0.0010547781,
-0.00012633958,
-0.0099201305,
-0.045579366,
0.014804661,
0.016531153,
-0.007913084,
0.0064060013,
0.006334064,
-0.029422285,
0.040601317,
-0.016531153,
-0.01972516,
-0.061232883,
0.022142248,
0.078037396,
-0.012553029,
0.0040716417,
-0.01620024,
0.03766628,
0.046528935,
0.033551477,
-0.009207953,
-0.000029336861,
0.015236284
] | from transformers import load_tool
document_qa = load_tool("document-question-answering")
print(f"- {document_qa.name}: {document_qa.description}") |
[
0.04848687,
-0.023013694,
0.009523161,
0.012077798,
-0.025414614,
0.018416813,
-0.016996756,
0.006459792,
0.009252326,
0.060140114,
0.0000786315,
0.013585693,
0.0016012233,
0.013710131,
-0.0075175143,
0.012692668,
-0.0020221162,
-0.005186133,
-0.03103628,
-0.005914461,
-0.017113874,
-0.007067342,
-0.06851406,
-0.014486038,
-0.027742336,
0.014690994,
-0.013944367,
0.016279407,
0.05317159,
0.023013694,
-0.0335836,
0.030011497,
0.0039271144,
-0.028210808,
0.023042975,
-0.033027288,
0.035545327,
-0.026527237,
-0.012260795,
-0.05068283,
-0.008044546,
-0.0015335144,
0.03305657,
-0.04596883,
-0.073725805,
0.028620722,
-0.032119624,
-0.012926904,
-0.017260272,
-0.0550162,
0.032558814,
0.006511031,
-0.0025290176,
-0.0275081,
-0.017860502,
-0.03633587,
-0.018914564,
0.00050552905,
-0.043128718,
0.001978197,
0.0048823585,
0.030333573,
0.009976993,
-0.048545428,
-0.022369545,
0.03466694,
-0.044592693,
0.00006364862,
-0.0047103413,
-0.011770363,
-0.030011497,
0.062014002,
-0.0061377175,
-0.026820032,
-0.057153605,
-0.04225033,
0.028840318,
-0.0042089294,
-0.03648227,
0.05495764,
0.0037587571,
0.036130916,
0.022838019,
-0.00597668,
-0.008205582,
-0.024697267,
0.02809369,
0.0020349259,
0.027229944,
-0.010957857,
0.025004702,
0.03223674,
0.023613924,
0.0028199828,
0.054225653,
0.051736895,
0.013614972,
0.028415766,
0.0076785516,
0.04834047,
0.07226183,
0.049160298,
-0.046905775,
0.021286204,
-0.045880992,
0.0067306273,
0.04359719,
-0.041694023,
-0.021827875,
-0.015152146,
0.034403425,
-0.018504651,
0.00063499936,
-0.022310987,
-0.03173899,
0.020715253,
0.0371557,
-0.01616229,
-0.017772663,
-0.01743595,
-0.009632959,
0.009091288,
-0.071617685,
-0.04784272,
-0.0093474835,
-0.015679177,
0.018006898,
-0.0061084377,
-0.009486562,
-0.005131234,
0.023101533,
-0.017026035,
-0.006639129,
0.051766176,
0.02034926,
0.011192093,
-0.0026095363,
-0.0018976782,
0.043128718,
0.0035739301,
0.017055314,
-0.03291017,
-0.014661714,
0.073784366,
0.02749346,
0.0010494875,
-0.012795146,
0.00658789,
-0.07109065,
0.068455495,
-0.04175258,
0.012165637,
-0.007473595,
-0.004311408,
-0.015196065,
-0.032558814,
-0.011785002,
0.00021616514,
0.03039213,
-0.015357103,
-0.005083655,
0.0382976,
-0.029777262,
0.008556937,
-0.03106556,
0.05270312,
-0.021388682,
-0.027625218,
0.0022618421,
0.018109377,
0.02510718,
0.026468677,
-0.022003552,
0.023862801,
0.058236945,
-0.020759173,
0.008417859,
-0.0051092748,
0.01853393,
0.013966327,
0.0012992782,
0.02031998,
0.006141377,
0.013658891,
0.0078103095,
0.0033708035,
0.026497956,
0.036892183,
-0.019895427,
-0.023526087,
0.03103628,
0.062248237,
-0.055953145,
0.030831324,
0.011148173,
-0.005614346,
-0.053727902,
0.03885391,
0.039117426,
-0.063653655,
-0.029133113,
0.014690994,
0.010247828,
-0.0034806018,
-0.023540726,
0.012268115,
0.015840216,
0.0274349,
0.0012187596,
0.03536965,
0.06980235,
0.04175258,
-0.026981069,
-0.0074296757,
0.026863951,
-0.054225653,
-0.021271564,
0.027361702,
-0.004428526,
0.00036668012,
0.019324476,
0.032675933,
-0.009288925,
0.0071990998,
-0.012473071,
-0.039995812,
-0.01375405,
0.068923965,
-0.0072686384,
0.020056464,
-0.005460629,
0.04353863,
-0.0018976782,
0.041547626,
0.02154972,
-0.015562059,
0.045910273,
0.01016731,
-0.021008048,
0.0024887584,
0.0028565822,
0.04345079,
0.013849208,
0.05317159,
0.011697165,
-0.0010339327,
-0.0010412526,
-0.036921464,
0.0155767,
0.028942795,
-0.04002509,
0.08479346,
0.009281605,
0.012070478,
-0.040610682,
-0.02327721,
-0.017113874,
0.026746832,
-0.06541043,
-0.036716506,
-0.013080621,
0.05141482,
0.009779356,
0.0013065982,
-0.011828922,
0.011806962,
0.017553067,
-0.008256822,
-0.012868345,
-0.05246888,
-0.015342464,
-0.040991314,
-0.09621247,
0.0008125064,
-0.024023838,
0.0034806018,
-0.03888319,
-0.052351765,
-0.010804139,
-0.033261523,
0.007071002,
-0.0042894483,
-0.042191774,
0.008586217,
-0.025780609,
0.014237162,
-0.042191774,
0.0078029893,
-0.036862902,
0.019046322,
-0.011419009,
-0.035691723,
-0.035193972,
-0.04714001,
0.030948441,
-0.012941544,
0.012721947,
0.00897417,
-0.032178182,
-0.035076853,
-0.032705214,
-0.065351866,
-0.026131963,
0.0022838018,
-0.05384502,
0.023979919,
-0.009998953,
0.0041613504,
0.037214257,
0.058881097,
-0.022384185,
0.025487814,
0.0018500991,
-0.019046322,
-0.052029688,
0.028327927,
-0.0017851351,
-0.03223674,
-0.009750077,
0.0071405405,
0.002095315,
0.022501303,
-0.03818048,
-0.060257234,
-0.013322177,
0.04116699,
-0.029660145,
-0.080928564,
0.006097458,
-0.023408968,
0.0022325628,
-0.020817732,
0.006339014,
0.03238314,
0.008469098,
0.02927951,
-0.022501303,
-0.008073825,
0.028357206,
0.023438249,
0.02873784,
-0.053054474,
0.03607236,
-0.034461983,
0.018226495,
0.004245529,
-0.004834779,
-0.059964437,
0.0013523474,
-0.022589142,
0.0381512,
0.028723199,
0.0008564257,
0.0010659571,
0.0050470554,
0.042162497,
-0.023511447,
-0.0142298415,
-0.015649898,
-0.0027028648,
0.01497647,
0.07032938,
0.028401125,
-0.022764819,
-0.0022472024,
-0.01913416,
-0.027742336,
-0.007422356,
0.037887685,
-0.04959949,
-0.008249502,
-0.0042235693,
-0.02383352,
0.04295304,
-0.034110628,
-0.017714104,
0.037829127,
0.0009863535,
0.037858408,
0.0032738151,
-0.03765345,
0.009340163,
0.012926904,
0.048047677,
-0.011733764,
0.0075175143,
0.009815956,
0.0036635988,
0.031914666,
-0.013951686,
0.009493881,
-0.002152044,
0.004128411,
0.0044651255,
-0.0057131643,
-0.0441535,
0.033876393,
0.025019342,
0.041108433,
0.032998007,
0.019265918,
0.021871794,
0.026161242,
0.015283904,
-0.017157793,
0.056977928,
-0.050741393,
0.040493563,
-0.021608278,
0.015210706,
-0.020803092,
0.001849184,
0.010335667,
0.029440548,
0.027771616,
0.0033616538,
-0.049131017,
-0.01974903,
0.012260795,
0.01853393,
-0.018724246,
-0.038034085,
-0.03695074,
0.0064927316,
0.028020492,
-0.008871691,
0.0059620403,
-0.006445152,
0.020642055,
0.031299796,
-0.045646757,
-0.014522637,
-0.009874515,
-0.027888734,
-0.08104569,
0.031007001,
0.03173899,
0.009918435,
0.015210706,
-0.03765345,
-0.02395064,
0.027259223,
-0.03162187,
0.019910067,
0.009171806,
0.0011025566,
0.028840318,
0.004014953,
-0.002869392,
-0.043831427,
0.02153508,
-0.031416915,
0.009252326,
0.0054752682,
0.058236945,
0.00717348,
0.024228795,
-0.00838858,
0.033261523,
0.02149116,
-0.010525984,
0.007839588,
0.025048621,
-0.02869392,
-0.03636515,
0.046437304,
0.015605979,
-0.009684198,
0.018270414,
0.0015966482,
0.0054679485,
0.025809888,
0.002801683,
-0.032705214,
0.015693817,
-0.023745682,
-0.030128617,
0.01856321,
-0.009728117,
-0.02329185,
-0.01913416,
0.02987974,
0.011770363,
0.01853393,
-0.055777468,
-0.06300951,
-0.015488861,
0.017699463,
-0.027024988,
0.01973439,
0.012465752,
-0.00597302,
0.0019818568,
-0.058441903,
-0.048252635,
-0.017040676,
0.02695179,
-0.026146602,
0.018504651,
0.02213531,
0.039907973,
-0.0334372,
-0.0442999,
0.01017463,
-0.01607445,
-0.013256298,
0.013878488,
0.03466694,
0.05261528,
-0.0069063045,
-0.005083655,
0.058266226,
-0.009976993,
-0.012765867,
0.003174997,
-0.024111677,
0.031885386,
-0.0111847725,
-0.03232458,
0.043480072,
0.019924706,
-0.07419428,
-0.0347255,
0.026556516,
-0.0060279192,
0.048896782,
0.037243538,
-0.035047572,
-0.026205162,
-0.020422459,
-0.00058787764,
-0.004249189,
-0.0006203596,
-0.020041825,
0.005801003,
-0.00036828133,
0.015591339,
0.033817835,
-0.034842618,
-0.027010348,
-0.046847217,
-0.025927007,
0.00358857,
0.04309944,
-0.03826832,
0.021944992,
0.005628986,
0.02263306,
-0.0061303973,
0.02807905,
-0.057797752,
-0.024770467,
0.06148697,
0.011301891,
-0.025883088,
-0.0057534236,
0.010862698,
0.008586217,
-0.01375405,
-0.0005023266,
-0.038443998,
0.04497333,
-0.05507476,
0.027229944,
-0.0040332526,
-0.040288605,
-0.06043291,
0.019265918,
0.03818048,
-0.030216455,
-0.008073825,
-0.0347255,
0.034461983,
0.015064308,
-0.0010540624,
-0.05270312,
0.0073784366,
-0.011558087,
-0.0381512,
0.013007422,
-0.029616226,
-0.013453935,
0.005098295,
-0.010723621,
0.034901176,
-0.023086894,
0.009340163,
0.08643311,
0.0016542923,
0.027888734,
-0.06037435,
0.04345079,
0.001851929,
-0.043128718,
-0.02563421,
0.014822752,
-0.029616226,
0.008271461,
-0.028122969,
-0.012714627,
-0.018460732,
0.021857154,
0.052117527,
-0.021081248,
0.01379797,
0.021622919,
-0.029103832,
-0.013885808,
0.06781135,
0.00778835,
-0.02695179,
0.0059510604,
0.01255359,
0.004296768,
-0.015020389,
-0.0066647483,
-0.009815956,
-0.026102683,
0.06833838,
-0.018694967,
-0.024184875,
0.040376443,
0.04418278,
-0.01736275,
-0.038678233,
0.019324476,
0.0250779,
-0.033173684,
-0.05027292,
-0.020583495,
-0.01847537,
-0.054723404,
-0.016616123,
0.039117426,
0.0081104245,
0.0022526924,
-0.008242182,
0.013417335,
0.0069721835,
0.004300428,
0.06341942,
-0.041108433,
0.0034842617,
-0.072027594,
0.013205059,
-0.021008048,
-0.0014594006,
0.04842831,
0.023701763,
-0.037916966,
0.038531836,
-0.016045172,
0.07870332,
-0.0018171596,
0.015752377,
0.057036486,
-0.04661298,
-0.049423814,
-0.006701348,
0.059027493,
0.007060022,
-0.014456758,
-0.037712008,
0.011711804,
0.029777262,
0.013702811,
-0.0057168244,
-0.057007205,
-0.0070819817,
-0.032441698,
0.024755826,
-0.008322701,
-0.013907768,
0.0011675204,
0.009201086,
-0.015664538,
0.009391403,
-0.0108846575,
0.03835616,
-0.0040808315,
0.012495031,
-0.038912468,
0.043333676,
-0.004062532,
-0.02863536,
-0.023613924,
0.013051341,
-0.018065458,
0.016835717,
-0.026380839,
-0.036687225,
-0.0008541382,
0.06324374,
-0.012392553,
-0.008637455,
-0.029440548,
-0.0021245945,
0.0321489,
-0.011484887,
-0.033642158,
0.015796296,
0.017538426,
-0.028445045,
-0.011850881,
0.03718498,
-0.0066061895,
0.022808738,
0.011763044,
0.029689424,
-0.02990902,
0.015444942,
0.018782806,
-0.0029663804,
-0.06218968,
-0.03525253,
-0.002150214,
0.0052959314,
0.018080097,
0.0109505365,
0.01791906,
0.043802146,
-0.0048786984,
0.017860502,
0.029147752,
-0.0122241955,
0.036804345,
-0.023204012,
0.0348719,
-0.005859562,
0.0022032831,
-0.0014493357,
-0.021344762,
0.02087629,
-0.021681478,
0.011931401,
-0.0054569687,
-0.0043992465,
-0.059847318,
-0.025429254,
-0.041694023,
0.040317886,
0.06265815,
0.0067635668,
0.0044504856,
0.035398927,
-0.0010540624,
0.019251278,
-0.057329282,
-0.055367555,
0.009911114,
-0.021769315,
-0.010628462,
-0.021564359,
-0.007978667,
-0.008417859,
0.008776533,
-0.01857785,
-0.008915611,
0.037946247,
-0.023057614,
-0.005559447,
-0.023028335,
-0.019104881,
-0.0047066812,
0.033671435,
-0.00895953,
-0.050038684,
0.0043955864,
0.051824734,
0.03657011,
-0.015986612,
-0.048106235,
0.027083548,
-0.0033671437,
-0.0065293307,
0.007524834,
0.034286305,
-0.034432705,
0.022369545,
-0.048750386,
0.02443375,
-0.009340163,
0.00536913,
0.054049976,
-0.02630764,
-0.0072722984,
0.0006322544,
0.03162187,
-0.0073381774,
-0.004238209,
0.018065458,
0.01919272,
-0.030567808,
-0.014888631,
-0.011689845,
0.006467112,
0.018694967,
-0.0077956696,
-0.017699463,
-0.024741186,
0.038561113,
0.0044065663,
-0.021417962,
0.034110628,
0.021579,
-0.022296347,
0.020598136,
-0.014112724,
0.015679177,
-0.018416813,
-0.012033879,
0.015840216,
-0.0137613695,
-0.049745888,
-0.03583812,
-0.06218968,
0.024960782,
0.01977831,
-0.015430302,
-0.03534037,
-0.009991633,
0.03888319,
-0.012919584,
0.0012892134,
-0.023745682,
0.033085845,
0.044504855,
0.0021611939,
0.0020806752,
0.03050925,
0.022925857,
-0.029967578,
-0.008147024,
0.0015966482,
0.04728641,
-0.0035958898,
-0.022574503,
-0.00053984096,
0.02930879,
-0.0032042763,
0.015020389,
0.030128617,
-0.04066924,
0.006280455,
-0.02692251,
-0.008073825,
-0.059466686,
0.036775064,
0.037799846,
-0.035398927,
-0.057680637,
0.01553278,
0.039088145,
0.034432705,
0.03223674,
0.051678337,
0.010291748,
0.04476837,
-0.02327721,
-0.02744954,
-0.020422459,
0.0018885285,
-0.0065476303,
-0.037858408,
0.032646652,
-0.030889884,
0.019997906,
-0.06394645,
-0.0091132475,
0.0137613695,
0.03873679,
-0.025897726,
-0.022369545,
0.005262992,
0.017069954,
-0.038561113,
0.00046847216,
0.044534136,
0.010269788,
0.024360552,
-0.0091791265,
0.0058339424,
-0.03864895,
-0.037360653,
-0.054079257,
0.023247931,
-0.009149847,
-0.04189898,
-0.02449231,
-0.03176827,
-0.01677716,
-0.042016096,
0.0024393492,
-0.035047572,
0.013366097,
0.036130916,
0.03528181,
-0.0012370594,
0.0033854435,
0.027039628,
0.02519502,
0.026644355,
-0.012721947,
0.09433858,
0.07442851,
-0.034227747,
-0.018343613,
-0.04550036,
0.032646652,
-0.011067655,
0.011170133,
0.0014612306,
0.016235488,
-0.017157793,
0.009164487,
-0.03165115,
0.08139704,
-0.007861548,
-0.018080097,
-0.04596883,
-0.01554742,
-0.050741393,
-0.0025784269,
-0.06552754,
0.05990588,
-0.020583495,
-0.00046458349,
0.0048640585,
-0.09603679,
0.25602004,
0.032529537,
0.036511548,
0.049745888,
0.027698416,
0.06078426,
0.060608584,
-0.037829127,
0.006166997,
-0.0645906,
0.049833726,
0.0027980232,
-0.027815536,
0.034608383,
0.022867298,
0.029601585,
-0.05135626,
-0.030157896,
-0.033320084,
-0.04248457,
-0.014332321,
0.019207358,
-0.013841889,
0.080987126,
-0.0015783486,
-0.008593536,
0.052527443,
-0.008915611,
0.04309944,
-0.04716929,
-0.014815432,
-0.029572306,
0.012919584,
-0.005489908,
-0.040200766,
0.010504024,
0.02147652,
-0.057739194,
-0.03528181,
0.010225869,
0.006715988,
-0.014068805,
0.025356056,
0.004424866,
0.012699988,
0.04175258,
0.010891978,
-0.019705111,
0.027742336,
-0.05440133,
0.03039213,
-0.03595524,
0.040903475,
-0.000016126605,
-0.04476837,
-0.0072979177,
0.015196065,
-0.0040844916,
-0.00777371,
0.019207358,
0.0021447241,
0.0046591023,
-0.008256822,
0.001431036,
-0.065351866,
0.027639858,
0.03103628,
0.041108433,
0.0051824735,
-0.0054203696,
0.007458955,
-0.022881938,
-0.0103503065,
-0.030275013,
0.010401546,
0.03238314,
0.00052428624,
0.014749553,
0.024097037,
-0.01611837,
0.016352607,
-0.0033653136,
-0.06804558,
-0.021330124,
0.033290803,
0.054137815,
-0.033407923,
-0.022428105,
-0.005277632,
0.033612877,
0.019895427,
0.046378743,
0.0054642884,
0.008029906,
-0.015957333
] |
which gives:
text
- document_qa: This is a tool that answers a question about a document (pdf). It takes an input named `document` which should be the document containing the information, as well as a `question` that is the question about the document. It returns a text that contains the answer to the question.
We can see that the tool name is short and precise. The description includes two parts, the first explaining
what the tool does and the second states what input arguments and return values are expected.
A good tool name and tool description are very important for the agent to correctly use it. Note that the only
information the agent has about the tool is its name and description, so one should make sure that both
are precisely written and match the style of the existing tools in the toolbox. In particular make sure the description
mentions all the arguments expected by name in code-style, along with the expected type and a description of what they
are. |
[
0.0109626455,
-0.028417379,
-0.034634132,
-0.028692713,
-0.006361667,
-0.015404219,
-0.018085103,
0.03130114,
0.028040607,
0.037503406,
0.032112654,
0.0043872315,
0.045879357,
0.0014310129,
0.017722823,
0.0142521635,
0.023968559,
0.00071007217,
-0.04738645,
0.012868247,
-0.008810692,
0.04031471,
-0.049705055,
-0.03547463,
-0.05880557,
0.008890394,
-0.018577807,
-0.018896615,
0.06874658,
0.02833043,
-0.04303907,
-0.015012955,
0.011288699,
-0.003727879,
-0.035242766,
-0.023809155,
0.029634645,
0.0026301653,
-0.041387066,
-0.07790507,
-0.0048908032,
-0.052197553,
0.030402683,
-0.06410938,
-0.068688616,
0.026446566,
-0.004144503,
-0.010875697,
-0.009643939,
-0.06828286,
-0.0023566426,
0.013694249,
-0.0015886053,
-0.014020303,
-0.018563315,
-0.05753034,
-0.032576375,
0.03196774,
-0.019012544,
-0.0101366425,
0.0026627707,
0.047763225,
0.0035250012,
-0.025142351,
0.0030159955,
0.03993794,
-0.00907878,
-0.03208367,
-0.014121742,
-0.0333589,
-0.03379364,
0.06996385,
-0.037851196,
-0.044256337,
-0.0075861793,
-0.0007589802,
0.026837831,
-0.02249045,
0.013614547,
0.010795996,
0.02009939,
0.06005182,
0.008477393,
-0.010455451,
-0.010187362,
0.0068507474,
0.0030975088,
0.007919478,
-0.006825388,
-0.029591171,
-0.019316861,
0.03677884,
0.025533617,
0.022113677,
0.08126704,
0.04918337,
0.024982948,
0.03231553,
-0.018867632,
0.023591787,
0.043444823,
0.088106915,
-0.041068256,
-0.023461364,
-0.048661683,
-0.018172052,
0.025359722,
-0.016983768,
-0.019331353,
-0.031446055,
0.023461364,
-0.0066080187,
0.00673844,
-0.0011294133,
-0.00536177,
0.06347176,
0.005767525,
-0.014368094,
-0.050893337,
-0.031822827,
0.004064801,
-0.017722823,
-0.071760766,
-0.04738645,
0.00428217,
0.018563315,
0.025635054,
-0.001482638,
0.022780275,
0.027229095,
0.0061732805,
-0.005792885,
0.058660656,
0.029663628,
0.021780377,
0.01723012,
-0.0043799863,
0.009556992,
0.01667945,
-0.039966922,
0.020751497,
-0.0058146217,
0.013868145,
0.07500681,
0.016505556,
-0.004144503,
0.019258896,
-0.004245942,
-0.04428532,
0.0100641865,
-0.002876517,
-0.0034507334,
-0.0034779047,
-0.003981476,
-0.026924778,
-0.039908957,
-0.025591582,
0.008752727,
0.050197758,
-0.015114394,
-0.027431972,
0.003660857,
-0.061732806,
0.026403092,
-0.014353602,
0.05242941,
-0.009375852,
-0.009991731,
0.025823442,
0.0034271851,
0.014331865,
0.031243177,
-0.023229504,
0.009977239,
0.046545956,
-0.02305561,
0.021374622,
0.047908135,
0.009912028,
0.009839572,
0.01782426,
-0.013136336,
-0.03503989,
0.0022642608,
-0.032141633,
-0.032692302,
0.08526663,
0.03779323,
-0.040807415,
-0.044691075,
0.033474833,
0.051096216,
-0.058428798,
0.017606892,
-0.0010026147,
0.022287572,
-0.034981925,
0.05083537,
0.04727052,
-0.038836602,
-0.012440755,
0.043444823,
-0.023591787,
-0.003577532,
0.018635772,
-0.0014907893,
0.007948461,
0.040343694,
0.0147013925,
0.012092964,
0.044807006,
0.043155,
-0.022983152,
-0.0028928197,
0.030547595,
-0.05022674,
0.00059006637,
0.057298478,
0.018447386,
-0.014737621,
0.058023043,
0.027431972,
0.053414818,
0.023504838,
-0.0031735878,
-0.017172154,
0.017606892,
0.05193671,
0.008506375,
0.020360233,
-0.008115111,
0.028620256,
0.042372473,
0.049849965,
0.0029942584,
0.024490245,
0.03251841,
0.021780377,
0.005133532,
-0.014375339,
0.0413291,
0.0036065145,
-0.010730784,
0.07431123,
-0.023548312,
-0.017201137,
0.020519637,
-0.01359281,
-0.010665574,
0.00015849825,
-0.06886251,
0.05138604,
0.010223591,
-0.018201035,
-0.050748426,
-0.044140406,
-0.024243893,
0.033069078,
-0.03527175,
-0.0013205169,
0.022403503,
0.018432895,
-0.036720876,
-0.035155818,
0.057965077,
0.04738645,
0.04370567,
-0.024417788,
-0.016853346,
-0.06039961,
-0.0059015695,
-0.0063761584,
-0.06266025,
0.03417041,
-0.03805407,
0.015027446,
-0.025084388,
-0.06503682,
0.01701275,
-0.016505556,
0.03289518,
0.0132812485,
-0.012259614,
0.024924982,
-0.007890496,
0.03324297,
-0.013918865,
0.0075861793,
-0.029373802,
-0.00042590746,
-0.042053662,
-0.0461402,
-0.018143069,
-0.04225654,
0.041039273,
0.01986753,
-0.008477393,
-0.048487786,
-0.036952738,
-0.023925085,
-0.07100722,
-0.004898049,
-0.0577622,
0.029402785,
-0.019650161,
-0.0025160466,
0.04602427,
0.001210021,
0.07007978,
0.0559363,
-0.012991423,
0.004079292,
0.028171027,
0.0104916785,
-0.06770321,
0.041908752,
0.029402785,
-0.025765477,
-0.047531363,
0.007093476,
-0.03530073,
0.013274003,
-0.03060556,
-0.032721285,
-0.005647972,
0.045386653,
-0.021823851,
-0.059877925,
0.021041322,
-0.02751892,
-0.007238389,
-0.005372638,
0.034431256,
0.018795175,
-0.017679349,
0.04327093,
-0.04909642,
-0.022229606,
-0.0086223055,
0.0069521866,
0.0032460443,
-0.04361872,
0.04176384,
0.002039646,
0.024823545,
-0.033590764,
0.01802714,
-0.0632399,
0.038749654,
-0.019809565,
0.024722105,
0.0041988455,
-0.030982334,
-0.002061383,
0.0013485937,
0.040140815,
-0.05196569,
-0.010549644,
0.006582659,
0.031185212,
0.037503406,
0.024852527,
0.008491884,
-0.04828491,
-0.027229095,
-0.037648316,
0.0056443494,
-0.017288085,
0.022562906,
-0.03985099,
0.030083874,
-0.008832429,
-0.030402683,
0.03732951,
-0.021591991,
-0.0043328893,
0.009368606,
-0.013607302,
0.05240043,
0.014513006,
-0.043010086,
0.017404014,
0.012933458,
0.019621179,
0.013469635,
0.01736054,
0.004481425,
0.021751394,
-0.0050248476,
0.005651595,
0.01860679,
0.00033624272,
0.030982334,
0.0009029872,
0.0012670803,
-0.030054891,
0.030315734,
0.024026524,
0.027113164,
0.02033125,
0.046169184,
0.0076441444,
-0.028939065,
-0.0073506963,
-0.031996723,
0.053124994,
-0.0413291,
0.0006425972,
0.007140573,
-0.013317476,
-0.016302679,
-0.009020815,
-0.008991833,
0.0060537276,
-0.020374725,
-0.012542194,
-0.045850378,
0.014005812,
-0.003209816,
0.014897025,
-0.01838942,
-0.009701905,
-0.054834962,
0.016838854,
0.010027958,
0.009187465,
0.007379679,
-0.029170925,
-0.010013467,
0.05466107,
-0.015809976,
-0.018853141,
0.0066913436,
-0.025750985,
-0.03379364,
0.02876517,
0.020954376,
-0.021606483,
-0.016578011,
-0.013216037,
-0.024026524,
0.0027334157,
-0.018592298,
0.015549132,
-0.0029544076,
-0.00086675904,
0.0040539326,
0.031475037,
0.0018512596,
-0.032924164,
0.0577622,
-0.03631512,
-0.024026524,
-0.0041191434,
0.03596733,
-0.010296047,
0.047009677,
-0.027591377,
0.036923755,
0.008970096,
0.004637206,
0.014426058,
0.021055814,
-0.03483701,
-0.061500948,
0.033300936,
0.013737723,
-0.017853243,
0.012969686,
0.008071637,
0.0037133878,
0.029214399,
0.011288699,
-0.033619743,
0.03002591,
-0.010375748,
-0.01860679,
0.05002386,
-0.0077238465,
0.038575757,
-0.0643992,
0.023997542,
0.05002386,
0.018114086,
-0.03390957,
-0.016534539,
-0.05271924,
-0.0041698627,
-0.021055814,
0.025881406,
0.000037530124,
0.007774566,
0.017563418,
-0.045502584,
-0.015998362,
-0.047879152,
-0.010948154,
-0.009057043,
0.042372473,
0.027475446,
0.03298213,
-0.04179282,
-0.03161995,
0.0060609733,
-0.015896922,
0.004818347,
-0.0016809872,
0.050516564,
0.018635772,
0.02488151,
-0.0078180395,
0.026605971,
-0.004445197,
-0.016809871,
0.021896308,
0.0013033085,
0.0010062375,
-0.034228377,
0.01455648,
0.03657596,
-0.0015804541,
-0.083295815,
-0.034692097,
0.027489938,
-0.0130928615,
0.017085206,
0.06405141,
-0.04074945,
-0.015578114,
-0.017085206,
-0.0024707613,
-0.02899703,
0.006803651,
-0.007825285,
0.021099288,
0.003608326,
0.053124994,
0.047328487,
0.0071260817,
-0.021287674,
-0.03277925,
0.017143171,
-0.029852014,
-0.024751088,
-0.00018215978,
0.008412181,
-0.01165098,
0.035764452,
-0.003093886,
0.018693738,
-0.05871862,
-0.024200419,
0.005133532,
-0.013346459,
-0.018128578,
-0.028142044,
-0.022678837,
0.0055030594,
-0.012491474,
0.033069078,
-0.024272876,
0.019519739,
-0.038575757,
0.011556787,
-0.015694045,
0.006745686,
-0.038575757,
-0.01375946,
0.035242766,
-0.02763485,
-0.044575144,
0.005981271,
0.037010703,
0.009759869,
0.013339213,
-0.035996314,
-0.04260433,
-0.03573547,
-0.053704645,
0.0106076095,
-0.045502584,
0.012803037,
-0.005977649,
-0.02431635,
0.069500126,
-0.021418096,
0.0015433201,
0.04179282,
0.014498515,
0.023997542,
-0.04338686,
0.014100005,
0.046516974,
-0.0026482795,
-0.034894977,
0.03312704,
-0.014498515,
0.031098263,
-0.024620667,
-0.029315837,
-0.012440755,
0.004285793,
0.049734037,
-0.04327093,
0.019331353,
-0.00072456343,
-0.047734242,
-0.05550156,
0.03460515,
0.016722925,
0.020113882,
0.02079497,
0.038430847,
-0.014824568,
0.035706487,
0.028678222,
0.0014391642,
-0.042372473,
0.04669087,
-0.03266332,
-0.017172154,
-0.01301316,
0.036025297,
-0.0061986404,
-0.023272978,
-0.002273318,
0.059037432,
-0.015201341,
-0.041358083,
-0.021591991,
-0.020592093,
-0.018461877,
-0.004010459,
0.004220582,
0.026837831,
0.023736699,
0.010469942,
0.0046516974,
-0.007738338,
0.0033873343,
0.04408244,
-0.031706896,
-0.0023512084,
-0.021635465,
0.027533412,
-0.023548312,
-0.039677095,
0.048603717,
0.015694045,
0.0019708127,
0.02580895,
-0.0030159955,
0.057646267,
-0.0077600745,
0.05445819,
0.065384604,
-0.052603308,
-0.07089129,
0.011259716,
0.025823442,
0.009622203,
-0.028605765,
-0.045734446,
-0.009136745,
0.053501766,
-0.011013364,
-0.04141605,
-0.078716576,
-0.0006711269,
-0.024562702,
0.02033125,
0.030315734,
0.01507092,
0.007861514,
-0.0031047545,
-0.017780788,
-0.0031862678,
-0.010223591,
0.051733833,
-0.02362077,
-0.008274515,
-0.016534539,
0.05251636,
-0.041155204,
-0.014585462,
-0.023417892,
-0.0009437439,
0.0070101516,
0.0008264552,
-0.039242357,
-0.028127553,
0.024852527,
0.045966305,
-0.047676276,
-0.010694557,
-0.03289518,
0.007977444,
0.005854473,
0.0044669337,
-0.02466414,
0.0062783426,
0.033416867,
-0.0029091223,
0.052922115,
0.024374316,
0.006010254,
0.017954683,
0.0050465846,
0.0013730477,
-0.022693327,
-0.0028076833,
-0.0132812485,
0.0053038048,
-0.05129909,
-0.006604396,
0.019476267,
0.014969481,
-0.007292731,
-0.003106566,
-0.0071441955,
0.036373086,
0.010230836,
0.008144094,
0.015375237,
-0.0052893134,
0.005597253,
-0.060341645,
0.025866916,
-0.038314916,
-0.018085103,
0.006205886,
-0.009651185,
0.028113062,
-0.017404014,
0.0058218674,
0.029214399,
-0.02056311,
-0.061037228,
-0.03799611,
-0.019374827,
0.038401864,
0.05981996,
0.0383439,
0.022446975,
0.00013540279,
-0.043995492,
0.06300804,
-0.029967945,
-0.028026115,
0.03593835,
-0.00673844,
-0.002508801,
-0.030170823,
-0.0052277255,
-0.014781094,
-0.0029833901,
-0.004778496,
0.024533719,
0.042053662,
-0.0010632969,
0.0021320279,
-0.02444677,
-0.032257564,
0.00536177,
0.045270726,
0.0071260817,
-0.03788018,
-0.0067565544,
-0.024606176,
0.026272671,
-0.00015317724,
-0.010151134,
-0.030054891,
0.006941318,
0.047067642,
-0.0029507848,
-0.017215628,
-0.03985099,
0.032634337,
-0.046198167,
0.06167484,
-0.012947949,
0.02305561,
0.032257564,
-0.013962338,
0.007213029,
0.050980285,
0.013715986,
0.02533074,
-0.00025518218,
0.011911823,
-0.0026519024,
-0.033648726,
-0.019113984,
0.018998055,
-0.011172769,
0.0098757995,
0.014498515,
0.015621589,
0.00936136,
0.032605357,
-0.01837493,
0.010107661,
0.035532594,
0.002508801,
0.010288801,
0.0019219046,
0.012918967,
0.047067642,
-0.0027370385,
-0.0014944122,
0.013462389,
-0.028736187,
-0.05355973,
-0.009672922,
-0.02990998,
0.028620256,
0.013375442,
0.006003008,
-0.017302575,
-0.007615162,
0.009115009,
-0.03573547,
0.013201546,
-0.02990998,
0.025388703,
0.0054632085,
-0.014911516,
0.026852323,
0.04074945,
0.0424884,
-0.026548006,
0.013288494,
0.028576782,
0.01015838,
-0.021664448,
-0.03756137,
0.020186339,
0.005977649,
0.018201035,
-0.0002317471,
0.04750238,
-0.05170485,
0.001378482,
-0.072050594,
-0.00636529,
-0.058979467,
-0.015563623,
0.009259921,
0.005532042,
-0.019592196,
0.0030069384,
0.0027714553,
0.02557709,
0.01621573,
0.024475753,
0.00873099,
0.054226328,
-0.0027225472,
-0.013165318,
-0.0076368987,
-0.0033837114,
-0.021664448,
-0.031156229,
0.0061116926,
-0.017056223,
-0.019157458,
-0.0577622,
-0.02934482,
0.018345946,
0.03185181,
0.010462697,
-0.03721358,
-0.03561954,
0.054603104,
-0.054487173,
-0.028562292,
0.04785017,
0.0059414203,
0.007897742,
-0.012223385,
0.008158584,
-0.05469005,
-0.05124113,
-0.049154386,
0.035358697,
-0.001779709,
-0.03251841,
0.014599954,
-0.04474904,
-0.0022280326,
-0.05332787,
-0.014897025,
0.0067239488,
0.02809857,
0.040691484,
0.019461775,
0.0049451455,
-0.040140815,
0.025678528,
0.017650366,
0.02990998,
-0.024722105,
0.09396139,
0.053385835,
-0.020693533,
-0.023577295,
-0.011426366,
-0.0160998,
-0.029417276,
0.017085206,
0.01746198,
-0.003923511,
-0.0024725727,
-0.04741543,
-0.0070717395,
0.05787813,
-0.0032170617,
-0.045502584,
0.0023041118,
-0.031533003,
-0.046632905,
-0.026301654,
-0.058428798,
0.035126835,
-0.03399652,
-0.026461057,
0.03619919,
-0.08625203,
0.24901797,
0.048024066,
0.03503989,
0.043763634,
0.036691893,
0.05492191,
0.026229197,
0.0037206335,
0.018505352,
-0.06932623,
0.016708434,
-0.0061624125,
0.004774873,
0.045734446,
-0.020302268,
0.03503989,
-0.053762607,
0.005767525,
-0.015592606,
-0.035358697,
-0.025156843,
0.014628937,
0.0077021094,
0.06625408,
-0.009542501,
-0.046864763,
0.025127862,
-0.017548926,
0.021867326,
-0.03593835,
0.012795791,
-0.03657596,
0.011752419,
-0.0030431666,
-0.03985099,
0.025664037,
0.02806959,
-0.038198985,
0.008513621,
0.011904578,
0.009796098,
-0.007847022,
0.025750985,
-0.008933867,
0.01621573,
0.015491167,
-0.017404014,
-0.051328074,
0.024707614,
-0.037532385,
0.045415636,
-0.03356178,
0.060457576,
-0.00936136,
-0.021635465,
0.025432177,
-0.010571381,
-0.032489426,
-0.047067642,
-0.04019878,
0.020084899,
-0.014194198,
-0.016809871,
0.005151646,
-0.03993794,
0.020751497,
-0.011984279,
0.040575553,
0.020954376,
-0.033271953,
0.010310538,
-0.010469942,
-0.012368298,
-0.028547801,
0.006800028,
-0.017621383,
0.03973506,
0.01495499,
0.0029145565,
-0.025722003,
-0.012462491,
-0.012513211,
-0.04260433,
-0.043792617,
0.022229606,
-0.009216447,
-0.038198985,
-0.027388498,
-0.0058399816,
0.008477393,
0.0062602283,
0.038575757,
0.0013123655,
0.027924675,
0.0120277535
] | Check the naming and description of the curated Transformers tools to better understand what name and
description a tool is expected to have. You can see all tools with the [Agent.toolbox] property. |
[
0.054876972,
-0.020029785,
0.003770085,
-0.009427146,
-0.006867355,
-0.059084002,
-0.010734109,
0.009728753,
0.0022581844,
0.067993,
-0.015714489,
-0.0061056046,
0.039193418,
0.014353391,
-0.010966115,
-0.0035245463,
-0.0027531288,
-0.011004782,
-0.055712193,
-0.022643711,
-0.0003303658,
-0.005138916,
-0.08185145,
-0.05877466,
-0.053639613,
0.034893587,
-0.005123449,
0.021158878,
0.059393343,
0.016178498,
-0.038574737,
-0.0021750492,
-0.009032737,
-0.021390883,
-0.0061984067,
-0.02773236,
0.048999507,
-0.03798699,
-0.02006072,
-0.050298735,
-0.0025191903,
-0.04157534,
0.023881072,
-0.07770629,
-0.10981581,
-0.009303411,
-0.010045827,
0.0020571132,
-0.020586599,
-0.043029238,
0.018622287,
0.024762692,
0.014701399,
-0.0027144614,
-0.0077567087,
-0.023432529,
-0.003733351,
-0.03551227,
-0.043122042,
0.0000593003,
0.0031862054,
0.02627846,
-0.0007438668,
-0.054753236,
-0.031800184,
0.02680434,
-0.022767447,
0.03110417,
-0.020818604,
-0.0028130636,
-0.02830464,
0.047824014,
-0.024870962,
-0.023958407,
-0.041606274,
-0.021035142,
0.025597911,
-0.02720648,
-0.020957807,
0.0502678,
0.005343854,
0.044606876,
0.0031630048,
0.0280417,
0.017508661,
-0.040090505,
0.043771654,
0.032326065,
0.013170164,
-0.020725802,
-0.014848336,
0.02177756,
-0.022272503,
0.027747827,
0.016410504,
0.060940042,
0.008847133,
0.026046455,
-0.009721019,
0.016596109,
0.04986566,
0.09583363,
-0.06842608,
0.02010712,
-0.02409761,
0.0016114698,
0.020602066,
-0.02581445,
-0.0032036058,
-0.009574083,
0.023231458,
-0.0135955075,
0.004609171,
-0.008661529,
-0.034707986,
0.043091107,
0.02903159,
-0.0016008362,
-0.07925299,
-0.0040484914,
-0.0059934687,
-0.020602066,
-0.039100617,
-0.026386729,
0.018962562,
-0.0053747883,
0.0056918617,
0.036997102,
-0.0025153235,
0.022102365,
0.004527969,
-0.00339501,
0.039379023,
0.044637807,
-0.012744822,
0.013920315,
0.0052433186,
-0.0002851731,
0.008816199,
-0.026185658,
-0.020478329,
-0.038451,
-0.017694267,
0.0988033,
0.033501558,
-0.032202326,
0.0068750884,
0.0054791905,
-0.058650926,
0.022767447,
-0.024113078,
-0.0043307645,
-0.005537192,
0.016549706,
-0.012853091,
-0.022195168,
-0.034893587,
-0.018560419,
-0.009164207,
-0.004149027,
0.017137453,
0.033563424,
-0.047514673,
0.058496255,
-0.047112532,
0.028567579,
-0.02700541,
-0.025566978,
0.01787987,
-0.014585396,
0.009790621,
0.046370115,
0.007451235,
0.019163633,
0.052742526,
0.018467616,
0.04602984,
0.0023683868,
-0.0155366175,
-0.0069292234,
-0.008963136,
-0.0003025735,
-0.0119560035,
0.02166929,
0.0064690793,
-0.0034336776,
0.0091410065,
0.03603815,
0.008298054,
0.009179674,
0.012729354,
0.035017323,
-0.043276712,
0.039379023,
0.02903159,
0.037863255,
-0.04197748,
0.012597885,
0.021189813,
-0.06313636,
-0.03566694,
0.037182707,
0.019442039,
0.00042824302,
-0.021885827,
-0.010192764,
-0.0074628354,
0.030702027,
-0.043524183,
0.03115057,
0.04142067,
0.018560419,
-0.040771056,
0.002497923,
0.01886976,
-0.02839744,
-0.03158365,
0.016132098,
0.024577089,
0.021731157,
0.010927447,
0.009782888,
0.024917362,
0.0007462835,
0.013943515,
-0.021004207,
0.011770399,
0.0369043,
0.0016076029,
0.023695469,
0.02839744,
0.023432529,
0.020339126,
0.046153575,
0.023834672,
0.009094605,
0.042936437,
0.01891616,
0.00017799152,
0.014136853,
0.010223698,
0.039131552,
0.034398645,
0.03811073,
0.008089249,
0.0456277,
0.0038010192,
-0.007196029,
-0.006708818,
0.014925671,
-0.038079794,
0.03956463,
0.013680575,
0.01298456,
-0.057042357,
-0.043122042,
-0.018127343,
0.026680604,
-0.0064845467,
-0.037553914,
-0.006190673,
0.01798814,
-0.010571705,
0.011762666,
0.0051505165,
0.021994097,
0.00767164,
0.029851342,
-0.016889982,
-0.059114937,
-0.048752036,
-0.006577349,
-0.08178958,
0.01814281,
-0.04188468,
-0.010958381,
-0.016364103,
-0.056887686,
-0.0019401439,
-0.05546472,
-0.019658577,
0.010169563,
-0.025010165,
0.038853146,
0.005738263,
0.02021539,
-0.039038748,
-0.005958668,
-0.023788271,
0.02892332,
-0.001020823,
-0.014848336,
-0.04250336,
-0.023107722,
0.023927474,
0.007342966,
0.007640706,
-0.0068325545,
-0.026649669,
-0.008615128,
-0.03176925,
-0.007404834,
0.016039295,
-0.0007922012,
-0.01871509,
0.030284418,
-0.00035670807,
-0.0044313003,
0.020586599,
0.039471824,
-0.019967917,
0.0338109,
-0.011584795,
0.018684156,
-0.053268403,
0.061032847,
0.018374816,
-0.00022535925,
0.01093518,
-0.02193223,
0.008986336,
0.0018686089,
-0.0021363816,
-0.042008415,
-0.04197748,
0.04451407,
-0.04834989,
-0.08172771,
-0.027082745,
-0.03566694,
-0.040616386,
-0.029619336,
-0.018266546,
0.0457205,
0.019411106,
0.030655626,
-0.041606274,
0.0038474202,
-0.027531289,
0.027175548,
0.0012953626,
-0.015598485,
-0.012953626,
0.027407553,
-0.032109525,
0.019055365,
0.020911405,
-0.04804055,
0.012041072,
-0.0251339,
0.033037547,
0.05407269,
-0.008491392,
-0.013232032,
0.019921517,
0.039069682,
-0.05048434,
0.0001283279,
-0.00427663,
0.018096408,
0.008236186,
0.04940165,
-0.011461059,
-0.010695442,
-0.04432847,
-0.046834126,
-0.015992895,
0.011360523,
0.057258893,
-0.044452205,
0.009519949,
0.016209433,
-0.037275508,
-0.00081346836,
-0.032728206,
-0.08049035,
0.03956463,
0.031274308,
0.059207737,
0.008313521,
-0.040337976,
0.008414057,
-0.007876578,
0.06301262,
0.0027995298,
0.028180903,
0.010161829,
0.0029000656,
0.0014297323,
0.02643313,
0.01586916,
0.0049803792,
-0.014129119,
-0.007138028,
-0.038698476,
-0.037089903,
0.012133874,
0.05422736,
0.023958407,
0.02337066,
0.024840027,
0.021344483,
0.012760288,
-0.00053892884,
-0.026634201,
0.044080995,
-0.05054621,
0.03198579,
0.022055965,
0.0012296278,
-0.013572306,
-0.0021247813,
0.028227305,
0.0022253168,
0.02607739,
-0.0037681519,
-0.05339214,
-0.011986937,
0.011244521,
0.011553861,
-0.036718696,
-0.022427173,
-0.0033756762,
0.026572334,
0.041204132,
-0.022659179,
-0.0012112607,
-0.020865005,
-0.009419412,
0.015389681,
-0.019735912,
-0.013680575,
0.015791824,
-0.03152178,
-0.016317703,
0.010672241,
0.055650324,
-0.028861452,
-0.00941168,
-0.044699676,
-0.0022272503,
0.02105061,
-0.018173743,
0.001228661,
-0.007501503,
-0.001666571,
0.03851287,
0.018885227,
-0.007246297,
-0.03795606,
0.010432502,
-0.02332426,
0.007304298,
-0.022458108,
0.02980494,
-0.030052412,
-0.006983358,
0.001672371,
0.01897803,
0.02965027,
-0.020756736,
0.007339099,
0.028521178,
-0.03560507,
-0.046060774,
0.0325426,
0.011623463,
-0.003035402,
0.022566376,
0.0000010610917,
-0.0006090138,
0.034120236,
-0.014624064,
-0.009373012,
-0.0028961988,
0.00093430444,
0.009233808,
0.015606219,
-0.010339701,
0.014740067,
-0.050515275,
0.03597628,
-0.00042002616,
-0.014848336,
-0.02903159,
-0.055279117,
-0.0034897455,
0.0022736513,
-0.015714489,
0.0024341217,
0.03557414,
-0.016302235,
-0.0018405749,
-0.0399049,
-0.03653309,
-0.054846037,
0.0055565257,
-0.0053863884,
0.04364792,
0.02301492,
0.051536098,
-0.0056067933,
-0.03606908,
0.01902443,
-0.0025056566,
0.017168388,
-0.006523214,
0.00010838995,
0.027933432,
0.007118694,
-0.022953052,
0.02129808,
-0.013332568,
-0.0015747356,
0.023649067,
-0.020462863,
0.027608624,
-0.040337976,
-0.01990605,
0.0676218,
-0.01256695,
-0.077830024,
-0.044235665,
0.026293928,
-0.012164808,
0.022612777,
0.041606274,
-0.03820353,
-0.03653309,
-0.06397158,
0.017508661,
-0.033377822,
0.0037140173,
-0.022318903,
-0.020973274,
0.0251339,
0.016735312,
0.03773952,
-0.038945947,
-0.01803454,
-0.049432583,
0.022782914,
-0.028629446,
0.015559819,
-0.020493796,
-0.0016549707,
-0.013177898,
0.02617019,
0.028629446,
-0.0049417117,
-0.017183855,
-0.016395036,
0.027345685,
0.02125168,
-0.033130348,
-0.018529486,
-0.0044119665,
-0.0072501637,
-0.019735912,
0.045998905,
-0.02026179,
-0.004071692,
-0.0021924495,
0.024870962,
-0.0458133,
-0.052773457,
-0.02233437,
0.007640706,
0.04794775,
-0.04788588,
0.0056802616,
-0.028227305,
0.027825162,
0.00532452,
0.031336173,
-0.007613639,
0.014453926,
-0.03975023,
-0.043307643,
0.019782314,
-0.024020275,
-0.021483686,
-0.0057730637,
-0.010958381,
0.06898289,
-0.041235063,
0.029371863,
0.07331365,
-0.0021499153,
0.01459313,
-0.047452804,
0.01897803,
-0.0135413725,
-0.0022697847,
-0.01985965,
0.025474176,
-0.03705897,
-0.008947669,
-0.037244573,
0.0022639844,
0.00082313525,
0.03359436,
0.059207737,
-0.0309495,
0.033470623,
-0.014979805,
-0.06267235,
-0.03125884,
0.041204132,
0.020756736,
0.022226103,
0.010997049,
0.023509864,
0.0039556893,
-0.0042534294,
-0.013394436,
-0.026108323,
-0.047607474,
0.055155378,
-0.0022137167,
-0.02965027,
-0.007292698,
0.06755993,
-0.059084002,
-0.039317153,
0.006728152,
0.04847363,
-0.045225553,
-0.03384183,
-0.018251078,
0.024066677,
-0.051041152,
0.021762092,
0.026030988,
0.012636553,
-0.01975138,
0.017647866,
-0.011654397,
-0.05425829,
0.010146363,
0.06576575,
-0.028644914,
-0.010239164,
-0.048288025,
0.008646062,
0.00047802748,
0.008406323,
0.048071485,
0.0038087526,
-0.03668776,
0.014654998,
-0.010192764,
0.08828573,
-0.024484286,
0.012682953,
0.030191615,
-0.046710387,
-0.035295732,
-0.01690545,
0.032109525,
-0.009419412,
-0.016333168,
-0.025427774,
-0.0003927172,
0.031552713,
0.02519577,
0.015095808,
-0.051659834,
-0.015621686,
-0.036656827,
0.025334973,
0.0019266101,
-0.014709133,
-0.0061172047,
-0.0037932857,
0.011143985,
-0.0015776356,
-0.0017497062,
0.028273705,
-0.041915614,
-0.033779964,
-0.032975677,
0.020880472,
-0.030903097,
-0.007973247,
-0.0005297453,
-0.0037836188,
-0.017353993,
-0.0026293928,
-0.036811497,
-0.026355796,
0.013092829,
0.04213215,
-0.032728206,
0.01311603,
-0.017972672,
-0.0046439716,
0.00723083,
-0.015931027,
-0.02965027,
0.022519976,
0.014074985,
-0.027191015,
-0.0042224955,
-0.0025501242,
-0.029480133,
-0.02006072,
0.030083347,
0.069477834,
-0.024824562,
0.03384183,
0.032356996,
0.02887692,
-0.055371918,
-0.02746942,
0.0013881647,
0.013355768,
-0.0025462576,
0.009257009,
0.0032848075,
0.058094114,
0.00084923586,
0.039409958,
0.00941168,
0.0013726976,
0.012922692,
-0.01684358,
0.02923266,
-0.01699825,
0.00019623777,
-0.017771602,
0.015977427,
0.026355796,
-0.022195168,
-0.011205853,
-0.0063453433,
-0.012048805,
-0.056114335,
-0.013255233,
0.0022813848,
0.04005957,
0.066570036,
-0.0020803136,
0.023138655,
-0.00011878185,
-0.01607023,
0.03031535,
-0.06434279,
-0.0561762,
0.01814281,
-0.03223326,
0.008414057,
-0.00752857,
0.027144613,
-0.029093457,
0.0015341346,
-0.0053786547,
0.0054946574,
0.026649669,
-0.03016068,
0.02182396,
-0.04819522,
-0.037244573,
0.005861999,
0.046060774,
-0.001725539,
-0.04649385,
0.0016105031,
0.051041152,
0.01741586,
-0.018127343,
-0.03415117,
0.011151719,
-0.033408754,
0.019318303,
-0.038265396,
0.037028037,
-0.03396557,
0.02912439,
-0.02887692,
0.010270098,
-0.0037874856,
0.02244264,
0.05073181,
0.0004238929,
0.0061984067,
0.026897142,
0.017323058,
-0.024283215,
0.023587199,
0.025706181,
0.008769798,
0.010989315,
-0.03145991,
-0.0025733248,
0.022195168,
0.05998109,
-0.019349238,
-0.010409302,
0.01549795,
0.051412363,
-0.020246323,
-0.018653221,
0.020462863,
0.010355167,
0.013487238,
-0.00087871985,
-0.022241568,
0.007919112,
-0.024128545,
-0.00003709667,
0.021762092,
-0.028227305,
-0.023262393,
-0.023494398,
-0.05391802,
0.018699622,
0.0011474593,
-0.030516423,
-0.017539596,
-0.009929825,
0.04903044,
0.023231458,
0.018019075,
-0.043431383,
0.0619918,
0.04865923,
0.017400393,
0.04748374,
-0.0042340956,
0.030145215,
-0.015088074,
-0.005877466,
-0.0035670805,
-0.005537192,
0.013108296,
-0.041482538,
-0.032944743,
0.030763894,
0.003702417,
-0.00035574136,
-0.0082129855,
-0.013123763,
0.0058735996,
-0.043988194,
0.0007158328,
-0.035233863,
0.02021539,
0.028861452,
-0.03767765,
-0.062239274,
0.016627042,
0.020478329,
0.02923266,
0.015791824,
0.05002033,
-0.0017216722,
0.061311252,
0.05648554,
-0.0016801046,
0.027856097,
0.04587517,
-0.02493283,
-0.04228682,
0.05063901,
-0.029016122,
0.00044951015,
-0.04275083,
-0.0324498,
0.027655024,
0.017276658,
-0.011731732,
-0.04618451,
-0.01296136,
0.043988194,
-0.05416549,
0.036625896,
0.051103022,
0.018776957,
-0.0020339126,
-0.0037101505,
0.013108296,
-0.044854347,
0.0047406405,
-0.027144613,
0.039781164,
-0.008096983,
-0.044080995,
-0.021452751,
-0.03183112,
-0.008282587,
-0.04370979,
-0.02094234,
0.003934422,
-0.0016250034,
0.023602666,
0.057784773,
0.0016163032,
-0.0066546835,
0.00752857,
0.051443294,
0.05280439,
0.030500956,
0.06551828,
0.04612264,
0.0029967343,
-0.016472371,
-0.014786467,
0.0031166037,
0.00020892556,
0.01415232,
-0.00023405945,
-0.0077605755,
-0.017910805,
-0.043122042,
-0.034955457,
0.023587199,
0.009721019,
-0.0072578974,
-0.04380259,
0.0072540306,
-0.05806318,
-0.025783516,
-0.027747827,
0.057475433,
-0.005707329,
0.0029155326,
0.012744822,
-0.05264972,
0.28731528,
0.051288627,
-0.012907225,
0.039224353,
0.02347893,
0.06502333,
0.05456763,
-0.010246898,
0.0070529594,
-0.049649123,
0.00501518,
-0.033130348,
-0.00677842,
-0.008506859,
-0.031954855,
-0.007447368,
-0.06100191,
-0.019643111,
-0.03773952,
-0.026046455,
-0.033285018,
0.0456277,
-0.0063066757,
0.060197625,
0.024809094,
-0.011723998,
0.034924522,
-0.03773952,
-0.0143611245,
-0.040461715,
-0.005529458,
-0.020632999,
0.020431928,
-0.008050581,
-0.020138055,
0.039533693,
0.012188009,
-0.017864404,
-0.0040136906,
0.024453353,
0.00487211,
-0.014917937,
-0.0048025083,
-0.016657976,
-0.022798382,
0.045751434,
-0.015443816,
0.0071612285,
0.021994097,
-0.057320762,
0.026464064,
-0.024530688,
0.027067278,
-0.021901295,
-0.030964967,
-0.011329589,
0.016101163,
-0.009829288,
-0.015977427,
0.0053786547,
0.0032886744,
-0.014569929,
0.031243373,
0.033934634,
-0.05967175,
0.0502678,
0.0015602353,
0.028892387,
-0.039224353,
0.009999426,
0.01690545,
0.0048643765,
-0.017183855,
-0.041235063,
0.02488643,
0.010022626,
0.02477816,
0.06075444,
0.02228797,
-0.04442127,
-0.0058233314,
0.00020517963,
-0.07145762,
-0.02114341,
0.0442666,
0.056423675,
-0.06084724,
0.023649067,
0.014809668,
0.037151773,
-0.00025641412,
0.042008415,
0.0097983545,
0.02140635,
0.0068364213
] |
The third part includes a set of curated examples that show the agent exactly what code it should produce
for what kind of user request. The large language models empowering the agent are extremely good at
recognizing patterns in a prompt and repeating the pattern with new data. Therefore, it is very important
that the examples are written in a way that maximizes the likelihood of the agent to generating correct,
executable code in practice.
Let's have a look at one example:
```text
Task: "Identify the oldest person in thedocument` and create an image showcasing the result as a banner."
I will use the following tools: document_qa to find the oldest person in the document, then image_generator to generate an image according to the answer.
Answer:
py
answer = document_qa(document, question="What is the oldest person?")
print(f"The answer is {answer}.")
image = image_generator("A banner showing " + answer)
`
The pattern the model is prompted to repeat has three parts: The task statement, the agent's explanation of
what it intends to do, and finally the generated code. Every example that is part of the prompt has this exact
pattern, thus making sure that the agent will reproduce exactly the same pattern when generating new tokens.
The prompt examples are curated by the Transformers team and rigorously evaluated on a set of
problem statements
to ensure that the agent's prompt is as good as possible to solve real use cases of the agent.
The final part of the prompt corresponds to:
```text
Task: "Draw me a picture of rivers and lakes"
I will use the following |
[
0.04527466,
-0.024008842,
-0.013567651,
-0.0072889253,
-0.0066547855,
-0.0652427,
-0.025306618,
0.053002324,
0.006533119,
0.050524753,
-0.013951085,
-0.04521567,
0.02807914,
0.022312887,
0.007572814,
-0.010153617,
0.028683783,
0.0005502641,
-0.03495145,
0.0015927242,
0.025188638,
0.011392402,
-0.033476703,
-0.028521562,
-0.046483953,
-0.007252057,
0.0058510494,
0.020145012,
0.08364752,
0.021000365,
-0.029834084,
0.0048371623,
-0.014858052,
-0.0427381,
-0.010411697,
-0.018788246,
0.03049772,
-0.044832237,
-0.03539387,
-0.026589647,
0.024628235,
0.001292245,
0.030792668,
-0.033771653,
-0.06984391,
-0.0036905485,
-0.012594319,
0.009003316,
0.00013871817,
-0.029642368,
0.03483347,
0.024642983,
-0.0061570588,
-0.029362166,
-0.032562364,
-0.024760963,
-0.0046565062,
-0.009607961,
-0.01152513,
0.026397929,
-0.0112154335,
0.04515668,
0.023138743,
-0.06252918,
0.0005249169,
0.017284008,
-0.021442788,
0.013796236,
-0.02374339,
-0.020823395,
-0.038018916,
0.040614467,
-0.0133833075,
-0.009032811,
-0.014747446,
-0.007067714,
0.053120304,
-0.032267414,
-0.011311292,
0.0514096,
0.012026543,
0.04365244,
0.007853015,
-0.038077906,
-0.004556961,
-0.010035638,
0.0167531,
0.0021549705,
0.027798938,
0.00080696185,
0.0036039073,
0.029081965,
-0.00542706,
0.056276254,
0.03586579,
0.07173158,
-0.0012129775,
0.03515791,
-0.026825605,
0.023935106,
0.056748174,
0.080992974,
-0.032208424,
-0.0056408984,
-0.015175123,
-0.011326039,
0.059520695,
-0.011097454,
-0.00019747752,
-0.011237554,
0.036485184,
-0.0039080735,
-0.0011171191,
-0.038077906,
-0.032237917,
0.04365244,
0.049580917,
-0.013611893,
-0.03760599,
-0.013707751,
-0.0038159017,
-0.025291871,
-0.029362166,
-0.04406537,
-0.0025218134,
0.01564704,
0.024554498,
0.014408255,
-0.03539387,
-0.01669411,
0.0060427664,
-0.006024332,
0.015263607,
0.03436155,
0.004055548,
0.036986597,
-0.023153491,
0.032562364,
0.040643964,
-0.025380356,
0.016826836,
-0.023758136,
-0.022342382,
0.092495985,
0.025350861,
-0.03515791,
0.00018169315,
0.024185812,
-0.07155461,
0.033476703,
-0.021693494,
-0.007594935,
-0.011045838,
0.034066603,
-0.015352092,
-0.008177459,
-0.03742902,
-0.008995943,
-0.019997537,
-0.004225143,
0.038962755,
0.040909417,
-0.018183602,
0.037930433,
-0.015971486,
0.03899225,
-0.04379992,
0.0028351967,
-0.037399523,
-0.020484203,
0.053857677,
0.013132601,
0.007757157,
0.0020849202,
0.045658093,
0.010809878,
0.049875863,
0.017048048,
0.0065109977,
0.026442172,
-0.024996921,
-0.004339436,
-0.014740073,
0.027105806,
0.02905247,
-0.011554624,
0.007296299,
0.032178927,
0.012033916,
-0.03194297,
0.033860136,
0.014644215,
-0.05002334,
0.054093633,
0.0031430495,
0.07149562,
-0.029332671,
0.03032075,
0.0119823,
-0.06943098,
-0.0199238,
0.0047523645,
0.014791689,
0.0052427175,
-0.01772643,
0.0080373585,
-0.0008327699,
0.06736634,
-0.028919743,
0.024244802,
0.044507794,
0.018139359,
-0.046867386,
-0.0030877467,
0.044389814,
-0.017578956,
-0.018979963,
0.032532867,
0.0062234225,
-0.006400392,
0.012151896,
0.029273681,
0.03857932,
-0.0066142296,
-0.01754946,
-0.012763915,
0.001933759,
0.04014255,
-0.0017116255,
0.041204367,
-0.0021844655,
0.040584974,
0.0035264832,
0.045953043,
0.0033513573,
-0.007229936,
0.0119896745,
0.006791199,
-0.026250456,
0.009600588,
-0.032591857,
0.038195886,
0.008877963,
0.04297406,
0.010072506,
0.009246649,
0.023153491,
0.004877718,
0.009357255,
0.0030564084,
-0.05987463,
0.05382818,
0.03014378,
-0.0048887786,
-0.058075443,
-0.027754694,
0.017284008,
0.0009567406,
-0.05780999,
-0.029937316,
-0.023153491,
0.020380972,
-0.025719548,
0.01639916,
0.01687108,
0.013567651,
-0.021575514,
0.0056519588,
-0.032326404,
-0.059520695,
-0.026943585,
0.0009484452,
-0.059756655,
0.010957353,
0.007816147,
-0.0050473134,
-0.0011125105,
-0.029303176,
0.017357744,
-0.06954896,
-0.022327634,
0.010138869,
-0.006190241,
0.02715005,
-0.023551673,
0.0027927977,
-0.04182376,
0.009357255,
-0.031058123,
0.043976884,
-0.025572073,
-0.02287329,
-0.023551673,
-0.04267911,
0.042384163,
0.022209654,
0.020838141,
0.0019116377,
0.008302812,
-0.030733678,
-0.028610047,
-0.016015727,
-0.03940518,
-0.015927242,
-0.018168854,
0.014644215,
0.01128917,
-0.016177949,
0.058016457,
0.065301694,
-0.036160737,
-0.0020222436,
0.0018277616,
0.027017321,
-0.049698897,
0.06075948,
0.007484329,
-0.020056527,
-0.029494893,
-0.007779278,
0.0011327883,
-0.0038970127,
-0.0100872535,
-0.016649866,
-0.009040184,
0.039877094,
-0.021059353,
-0.083706506,
0.007406905,
-0.024672478,
-0.008848468,
-0.00883372,
-0.008118469,
0.017637946,
0.007547006,
0.037163567,
-0.025896516,
-0.01974683,
-0.025719548,
0.02998156,
-0.0067506437,
-0.0025918637,
0.0074253394,
0.025852274,
0.011620988,
0.01354553,
0.04568759,
-0.0479292,
-0.0022858542,
-0.029553883,
0.04279709,
0.004693375,
0.00029126208,
-0.011421897,
0.005972716,
0.022652078,
-0.055361915,
-0.012778662,
0.0019503498,
0.022165412,
0.018463803,
0.050052833,
0.0132063385,
-0.032208424,
-0.002665601,
-0.025306618,
-0.018758751,
0.017696936,
0.058075443,
-0.0059247864,
0.016959563,
-0.0041366587,
-0.0664225,
-0.0077497833,
-0.027430251,
-0.054388583,
0.026176717,
-0.004442668,
0.0502593,
-0.007547006,
-0.039995074,
0.008981195,
0.0060427664,
0.029701358,
0.0109721,
0.046601932,
0.020838141,
0.01128917,
0.025203386,
-0.020292487,
0.03545286,
-0.028595299,
0.007816147,
-0.03158903,
-0.040791437,
-0.012188764,
0.02709106,
0.024362782,
0.027444998,
0.019230671,
-0.006153372,
-0.0073147337,
0.018906226,
0.0017429638,
-0.037576493,
0.05359222,
-0.036750637,
0.033358723,
0.009873415,
0.00016141542,
-0.017829662,
-0.0167531,
0.0064520077,
0.014762194,
0.029701358,
0.016413908,
-0.022888036,
-0.017195523,
0.02794641,
0.015588051,
-0.012387855,
-0.013869974,
0.02061693,
0.026456919,
0.028654289,
-0.041145377,
-0.015720777,
-0.0392872,
0.007351602,
0.0000115214425,
-0.020897131,
-0.014238659,
0.0013493914,
-0.016738351,
-0.04430133,
0.0099619,
0.02968661,
-0.014386134,
-0.009246649,
-0.03170701,
-0.026530657,
0.022371877,
-0.005917413,
0.007392158,
-0.025970254,
0.002632419,
0.049816873,
0.028226612,
-0.008531398,
-0.07149562,
0.012690178,
-0.029893074,
-0.017018553,
-0.008936953,
0.04683789,
0.005806807,
-0.021413293,
-0.02495268,
0.026147222,
-0.0002963315,
-0.011008969,
0.02720904,
0.017431483,
-0.025616314,
-0.021590263,
0.042826585,
-0.0050473134,
-0.016590877,
0.023949854,
0.0023964602,
-0.015868252,
0.04026053,
-0.011613614,
-0.03279832,
0.012210886,
-0.00308959,
0.035954274,
-0.0071230168,
-0.018906226,
-0.0013908686,
-0.023713894,
0.03946417,
0.024053086,
-0.013914216,
-0.030969638,
-0.05577484,
0.01895047,
0.010330587,
-0.021221576,
-0.010441192,
0.0101167485,
-0.035836294,
0.044419307,
-0.07078774,
-0.041322347,
-0.041263357,
0.00296608,
-0.010448566,
0.05394616,
0.00889271,
0.012446845,
-0.020469455,
-0.064121895,
0.032709837,
-0.061054427,
0.0008313873,
-0.009711194,
0.011893815,
0.028211866,
0.012203512,
-0.0456286,
0.030070044,
-0.0048887786,
-0.0144524975,
0.03701609,
0.00843554,
-0.002969767,
-0.04424234,
-0.0071193296,
0.05780999,
-0.006389331,
-0.09633032,
-0.0248347,
0.02622096,
0.0037937807,
0.018670266,
0.014858052,
-0.038431846,
-0.014105933,
-0.0456286,
0.05990413,
-0.026810858,
-0.020233497,
0.007779278,
-0.03285731,
0.005416,
-0.0031651708,
0.029362166,
-0.04610052,
-0.021354303,
-0.018316329,
0.011591493,
-0.016723605,
-0.019835316,
-0.04350497,
0.0099619,
-0.009290892,
0.041499313,
0.010072506,
-0.020012286,
-0.017814916,
-0.0019134812,
0.006562614,
0.011702099,
-0.0035117357,
0.011444018,
-0.05267788,
-0.018227844,
-0.00020058831,
0.03014378,
0.010028264,
0.0248347,
-0.038372856,
0.032296907,
0.0075875614,
-0.03489246,
-0.030674689,
0.0017107038,
0.050908186,
-0.038726795,
-0.01186432,
-0.040820934,
0.032591857,
0.028270856,
0.00011700025,
-0.027798938,
0.0023208794,
-0.0352464,
-0.0699029,
0.000579759,
-0.030055296,
-0.046483953,
-0.013044116,
0.013722499,
0.0352169,
-0.05966817,
0.009932405,
0.065419674,
0.01297038,
0.018449055,
-0.065655634,
-0.02010077,
0.03014378,
-0.025085406,
-0.009467861,
0.040732447,
-0.06394493,
0.014732699,
-0.018611278,
-0.038667805,
-0.03533488,
0.0023042886,
0.036573667,
-0.041971233,
0.008877963,
-0.01172422,
-0.028742773,
-0.03501044,
0.042148203,
0.0352464,
0.011208059,
0.007934126,
0.04374093,
0.021678746,
0.011141696,
-0.006230796,
-0.014415629,
-0.016826836,
0.046277486,
0.003696079,
-0.018906226,
0.014754821,
0.03135307,
-0.05179303,
-0.04748678,
0.013560277,
0.02176723,
-0.026869848,
-0.03509892,
-0.009113922,
-0.010109374,
0.004874031,
0.004984637,
0.021413293,
0.026088232,
0.020056527,
0.015632294,
-0.020867636,
-0.022298139,
0.009681699,
0.052471414,
-0.058871806,
-0.032119937,
-0.05129162,
0.007639177,
-0.016723605,
-0.015307849,
0.04002457,
0.046749406,
-0.009659577,
-0.0025771162,
-0.026781363,
0.06258816,
-0.020233497,
0.02390561,
0.05194051,
-0.07214451,
-0.03955265,
-0.01970259,
0.023315713,
0.0037200435,
-0.042767595,
-0.0040186793,
-0.0102052335,
0.013479166,
0.024908436,
-0.029509641,
-0.052471414,
-0.00048021373,
-0.04533365,
0.032591857,
-0.011930685,
-0.023876116,
-0.012350987,
-0.022194907,
0.007222562,
-0.0074548344,
0.019732084,
0.027297523,
-0.021133091,
-0.009364628,
-0.06270614,
0.013103106,
-0.040172044,
-0.028580552,
0.006794886,
-0.0065921084,
-0.0032536555,
-0.0001269663,
-0.045363147,
-0.022194907,
-0.0352464,
0.05161606,
-0.011510382,
-0.0358068,
-0.027415503,
-0.01594199,
0.010994221,
0.008295438,
-0.04996435,
0.032827817,
0.032355897,
-0.017475724,
0.040319517,
-0.034184583,
-0.025085406,
-0.0059063523,
-0.0077719046,
0.027474493,
-0.019540368,
0.04135184,
0.052176464,
-0.0019226983,
-0.06406291,
-0.031176101,
-0.0013788863,
0.009018064,
0.0071377642,
0.008192207,
0.0018858297,
0.017284008,
0.023699146,
0.0072115012,
0.02188521,
0.0133833075,
0.016118959,
0.0011567528,
-0.0072262487,
0.004317315,
-0.015691284,
-0.041322347,
0.015396334,
0.01976158,
-0.026766615,
0.010795131,
-0.009482608,
-0.00060971477,
-0.061939277,
0.007517511,
0.03164802,
0.028698532,
0.040349014,
-0.0022397684,
0.01518987,
-0.008907458,
-0.012697551,
0.03262135,
-0.09078528,
-0.03332923,
0.0035873165,
-0.025498334,
-0.0030859031,
-0.025483588,
0.031500544,
-0.0118422,
-0.00055302924,
-0.026235707,
-0.0013245051,
-0.0016627746,
-0.042118706,
0.022902785,
-0.081110954,
0.007779278,
0.01946663,
0.023463188,
0.01754946,
-0.061054427,
0.023020765,
0.06418089,
0.017991886,
-0.025247628,
-0.034332056,
-0.012461592,
0.011620988,
0.022740563,
-0.021973696,
0.0010774853,
-0.041499313,
0.02402359,
-0.025557324,
0.040349014,
-0.021324808,
0.004472163,
0.0670124,
-0.011503008,
0.006134938,
0.05931423,
0.0034361552,
0.00020623382,
0.0027762067,
0.04574658,
0.034450036,
-0.029642368,
0.008966448,
0.02715005,
0.00365368,
0.025277123,
0.020690668,
0.036013264,
0.026427424,
0.049993843,
-0.009401497,
-0.031618524,
0.018626025,
0.014164923,
-0.007808773,
0.00072492915,
0.012918763,
0.030291256,
-0.01594199,
-0.006260291,
-0.010360082,
0.0026637577,
-0.02790217,
-0.048017684,
-0.03501044,
0.0071856934,
0.033948623,
-0.01663512,
-0.0067764516,
-0.06406291,
0.04769324,
-0.030232266,
-0.030586204,
-0.0047523645,
0.04580557,
0.07019784,
0.02697308,
0.030969638,
0.0055745346,
0.034627005,
0.0026711312,
0.018552288,
-0.010249475,
0.020749656,
0.00636721,
-0.04610052,
-0.016059969,
0.033299733,
0.003773503,
0.0032665594,
-0.005969029,
0.0074364,
0.029435903,
-0.038077906,
0.035836294,
-0.054093633,
0.036131244,
0.018788246,
-0.008546146,
-0.038136896,
-0.016974311,
0.019274913,
0.040437497,
0.038962755,
0.054536056,
0.007524885,
0.066835426,
0.019097943,
-0.021044606,
0.042885575,
0.011650483,
-0.0053348886,
-0.041204367,
0.05388717,
-0.0013466262,
0.019496124,
-0.046690416,
-0.027061565,
0.0066326642,
0.028949238,
-0.0006954343,
-0.012210886,
0.0034416853,
0.016930068,
-0.041440327,
-0.022032686,
0.056512214,
0.0016314363,
0.0052095354,
-0.013987953,
0.006352463,
-0.050465763,
0.00599115,
-0.019938547,
0.026250456,
-0.020218749,
-0.032591857,
-0.004608577,
-0.024805205,
0.00938675,
-0.037517503,
-0.012815531,
0.00064381823,
0.02414157,
0.046985365,
0.024185812,
0.012063411,
-0.022784805,
0.0040371134,
0.02604399,
0.028108634,
0.02408258,
0.073501274,
0.06477079,
-0.024937931,
-0.02091188,
-0.016590877,
-0.001917168,
-0.00031753097,
0.007572814,
-0.0032260038,
-0.026928838,
-0.02097087,
-0.034096096,
-0.029480146,
0.052058488,
-0.0073479153,
-0.034007613,
-0.029834084,
0.01657613,
-0.0485191,
-0.027297523,
-0.04533365,
0.022666825,
-0.029096711,
-0.009416245,
0.006389331,
-0.07426814,
0.25979102,
0.037458513,
0.008221702,
0.065183714,
0.03008479,
0.07993116,
0.052795857,
-0.028433077,
-0.029126206,
-0.07674571,
0.019156933,
-0.033653673,
-0.011709472,
0.04129285,
-0.013847852,
-0.012144522,
-0.054565553,
-0.0031633272,
-0.00498095,
-0.011856947,
-0.02673712,
0.031117111,
-0.012439471,
0.083588526,
0.008885336,
-0.0064040786,
0.022445614,
-0.0600516,
0.009025438,
-0.034332056,
0.006134938,
-0.016782595,
0.046012033,
-0.02962762,
-0.039877094,
0.04188275,
0.034037106,
-0.04371143,
0.01305149,
0.011097454,
0.0006157059,
-0.0005097086,
0.0039560026,
0.0052980203,
-0.017534714,
0.027621968,
-0.013847852,
0.01865552,
0.03515791,
-0.08246772,
0.039700124,
-0.022740563,
0.043062545,
-0.037871443,
-0.02188521,
-0.024436519,
-0.00079820555,
-0.03940518,
-0.013700378,
0.0123141175,
0.0018314485,
-0.011119574,
-0.013678256,
0.045363147,
-0.056453224,
0.058193423,
0.0017770673,
0.00466388,
-0.016413908,
-0.015086638,
0.014400882,
0.0014682927,
0.027017321,
-0.043328,
0.027238535,
-0.009018064,
0.03533488,
0.038962755,
0.08736388,
-0.02841833,
-0.024642983,
-0.024318539,
-0.061821297,
-0.016207444,
0.019717336,
0.007985743,
-0.038962755,
0.008700994,
-0.0061386246,
0.04002457,
-0.00096042745,
0.050495256,
-0.019422388,
0.025985,
-0.005139485
] |
which is probably not what we wanted. Instead, it is more likely that we want an image of a tree to be generated.
To steer the agent more towards using a specific tool it can therefore be very helpful to use important keywords that
are present in the tool's name and description. Let's have a look.
py
agent.toolbox["image_generator"].description
text
'This is a tool that creates an image according to a prompt, which is a text description. It takes an input named `prompt` which contains the image description and outputs an image.
The name and description make use of the keywords "image", "prompt", "create" and "generate". Using these words will most likely work better here. Let's refine our prompt a bit.
py
agent.run("Create an image of a tree", return_code=True)
gives:
``text
==Explanation from the agent==
I will use the following toolimage_generator` to generate an image of a tree.
==Code generated by the agent==
image = image_generator(prompt="tree") |
[
0.04642897,
0.0016253062,
-0.015807472,
-0.017414516,
0.016318804,
-0.06539209,
0.016903184,
0.031498067,
0.008948315,
0.03544263,
-0.004978185,
-0.011899432,
0.03555951,
-0.043799262,
0.012228146,
0.013185068,
0.020102663,
-0.042572062,
-0.017253812,
-0.034682937,
0.025844194,
-0.006314954,
-0.052623395,
-0.03605623,
-0.051717605,
0.005310551,
0.009167457,
0.009357381,
0.05715234,
0.041578617,
-0.027538896,
-0.009152847,
-0.015383797,
-0.0704762,
-0.012914793,
-0.01817421,
0.044295985,
-0.03056306,
-0.01845179,
-0.060191114,
0.019182265,
0.021271423,
0.022279477,
-0.056480303,
-0.05683093,
-0.026224041,
-0.026355525,
0.008071745,
-0.039124224,
-0.014390351,
-0.012944011,
-0.0060848542,
0.012381546,
0.010263169,
-0.031790257,
-0.050578065,
0.012315803,
-0.0021786408,
-0.016552556,
0.015076998,
0.020950014,
0.014521836,
-0.0020380244,
-0.05364606,
-0.00030839728,
0.05855485,
-0.044617392,
-0.0006282082,
-0.036114667,
0.020789308,
-0.02188502,
0.048298985,
0.003864211,
-0.019240703,
-0.026282478,
-0.03664061,
0.003433231,
-0.027217487,
0.013462649,
0.05735687,
-0.002642492,
0.044471297,
0.0014810374,
0.03345574,
-0.00079576083,
-0.042542845,
0.035880916,
0.026399355,
0.0011806297,
-0.01095712,
-0.028313199,
0.023199875,
-0.0047626947,
0.08134566,
0.017662877,
0.07965096,
-0.011534195,
0.05189292,
-0.0075823274,
0.03202401,
0.033105113,
0.06346364,
-0.07065151,
0.01729764,
-0.029555006,
0.0017476607,
0.027348971,
-0.002914594,
0.0010098813,
0.0040650917,
0.03517966,
-0.024383245,
0.0069358572,
-0.020628605,
-0.009751837,
0.035150442,
0.027611943,
0.010708759,
-0.028152494,
-0.009087105,
-0.0026388397,
-0.02885375,
-0.011256615,
-0.03459528,
0.001173325,
-0.024207931,
0.052155893,
-0.00042047948,
-0.026413964,
0.0032652218,
0.026472403,
-0.011651071,
0.026194822,
0.025756538,
-0.0352381,
0.012410765,
0.00065605756,
-0.003237829,
0.04639975,
0.0042696246,
0.0020581123,
-0.049730714,
0.0015266921,
0.08590382,
0.019664379,
-0.023784256,
-0.011373491,
0.002218817,
-0.037604835,
0.0013842495,
-0.00440111,
-0.019182265,
-0.006866462,
0.022630105,
-0.06445709,
-0.006073897,
-0.030709155,
0.012337717,
-0.013813276,
-0.0037948159,
0.027319754,
-0.022600887,
-0.004156401,
0.07222933,
-0.026954515,
0.048006795,
-0.041987684,
-0.028868359,
0.000542834,
-0.035092004,
0.015047778,
0.008378545,
0.002436133,
-0.032111667,
0.0012536772,
-0.030504622,
0.058671728,
-0.0057050074,
-0.025259815,
-0.003100865,
-0.0060812016,
-0.022571668,
-0.04666272,
0.022133382,
0.0053543793,
-0.041958466,
0.020438682,
0.025318252,
-0.0037692494,
-0.03176104,
0.044617392,
0.03146885,
-0.056451082,
0.012359631,
-0.011271224,
0.03783859,
-0.026647717,
0.0032268718,
-0.00012475137,
-0.056012798,
-0.010723368,
0.029175159,
0.012396155,
0.014039723,
-0.015018559,
-0.0046896474,
-0.01588052,
0.03716655,
-0.035062786,
0.017209982,
0.047802262,
0.0044924193,
-0.04450052,
-0.0008190447,
0.051162448,
-0.020555558,
-0.032783702,
0.027436629,
0.010986339,
0.014346522,
0.039241098,
0.014492618,
0.039241098,
0.060717054,
0.00894101,
-0.02537669,
0.0083493255,
0.031381194,
0.018977731,
0.012410765,
0.00013844778,
0.006406263,
0.02882453,
0.018627103,
-0.0015230397,
0.00006774011,
-0.009014058,
-0.0054018605,
-0.010920596,
0.012052832,
0.014784807,
0.015208483,
0.044295985,
0.04438364,
-0.013689095,
0.012293889,
-0.012936707,
0.0062674726,
-0.02593185,
0.009306247,
-0.058671728,
0.052039016,
0.027129829,
0.024178712,
-0.05797047,
-0.026457792,
0.004021263,
0.015909739,
-0.057064682,
0.0009934455,
-0.039387196,
0.007377794,
0.016406462,
0.023813475,
0.02482153,
0.01181908,
-0.0012691998,
-0.00042230566,
-0.011760642,
-0.08537788,
-0.013667181,
-0.031965572,
-0.067554295,
0.015164655,
-0.018013505,
-0.022381743,
-0.018013505,
-0.009408514,
-0.001888277,
-0.037312645,
-0.03228698,
0.0044084145,
-0.022907685,
0.012366937,
0.0012637211,
0.0021110717,
-0.016742479,
0.0015988265,
-0.049438525,
-0.0035774997,
-0.02742202,
-0.02366738,
-0.026896078,
-0.040731266,
0.013214287,
0.009277028,
-0.00018855378,
-0.027275924,
-0.015252311,
-0.0061834683,
-0.017093107,
-0.022264868,
-0.038861252,
0.011453843,
-0.053295434,
-0.016698651,
0.029511176,
-0.027275924,
0.07117745,
0.053879812,
-0.020526338,
-0.0025402256,
-0.002593185,
0.02740741,
-0.014609493,
0.04853274,
0.040994238,
-0.006190773,
-0.009883323,
-0.0036943757,
-0.009445038,
0.015792862,
-0.021096108,
-0.016508728,
-0.02826937,
0.0273928,
0.005938759,
-0.06258707,
-0.023170657,
-0.011760642,
-0.036465295,
-0.0026041423,
-0.01557372,
0.046691943,
0.03813078,
0.03199479,
-0.04502646,
0.027597332,
-0.0035939354,
0.034186214,
0.0014910814,
-0.051250104,
0.024149492,
0.052272767,
0.0054237745,
0.0053470745,
0.04298113,
-0.037926245,
0.010548054,
-0.014653322,
-0.00083867623,
0.008466202,
0.0017860106,
-0.043214884,
-0.0021768145,
0.03030009,
-0.04119877,
0.0032286982,
0.031293534,
0.028780703,
0.043068785,
0.045610838,
-0.004039525,
-0.0029492916,
-0.027436629,
-0.032462295,
-0.015369187,
0.010716064,
0.042425968,
-0.04292269,
-0.015033169,
0.0035154093,
-0.0583211,
0.003944563,
-0.021227594,
-0.046282876,
0.012856354,
0.034566063,
0.017648268,
-0.0070198616,
-0.01209666,
-0.010628407,
-0.038715158,
0.04406223,
0.051483855,
0.0053142034,
0.017838191,
0.009722618,
-0.033952463,
-0.012345022,
0.019211484,
-0.02135908,
0.009284333,
-0.0102485595,
-0.054551847,
-0.01081833,
0.020453291,
0.025508177,
0.0013632483,
0.022235649,
0.040234543,
-0.007816079,
-0.00070764736,
0.019854302,
-0.034566063,
0.052623395,
-0.029379692,
0.018802417,
0.030358527,
-0.0066509717,
-0.013192372,
0.021446737,
0.010548054,
0.009130933,
0.030241651,
0.0017330511,
-0.032199323,
-0.010781806,
0.036406856,
0.024441682,
-0.021446737,
-0.007903736,
0.007845298,
0.012498422,
0.05908079,
-0.05797047,
0.023287533,
-0.020073444,
0.013543,
0.024427073,
-0.012301194,
-0.016654823,
0.023594333,
-0.037195772,
-0.01486516,
0.017443735,
0.036202326,
-0.005584479,
0.013374992,
-0.009992894,
-0.013550305,
0.012396155,
-0.021855803,
0.015646767,
0.035530288,
0.0034843641,
0.022863857,
0.052097455,
-0.010781806,
-0.06147675,
0.01991274,
-0.01455836,
-0.0116949,
0.01269565,
0.017253812,
-0.009328161,
0.019050779,
-0.0084150685,
0.042221434,
0.013842495,
-0.016464898,
0.009890627,
0.023886522,
-0.059577513,
-0.073924035,
0.027801866,
0.020540947,
0.0064500915,
0.0016472203,
0.012235451,
0.011103215,
0.012885573,
0.03351418,
-0.016012006,
-0.004050482,
-0.027918743,
0.021139937,
-0.0012573295,
-0.020584777,
0.0139155425,
-0.040146887,
0.017414516,
0.017677488,
-0.022863857,
-0.029335864,
-0.03319277,
-0.0120382225,
-0.007896431,
-0.007859907,
0.018028116,
0.014814027,
-0.0026205778,
0.0005241156,
-0.024514731,
-0.020979233,
-0.05396747,
-0.012549555,
-0.01703467,
0.07859907,
0.0120163085,
0.06054174,
-0.04412067,
-0.04496802,
0.011322358,
-0.042864256,
-0.015632158,
0.001418947,
0.012045528,
-0.0041746628,
0.004656776,
-0.004331715,
0.0030771245,
-0.02596107,
-0.010496921,
0.0102485595,
0.027611943,
0.021154547,
-0.043185662,
-0.009795666,
0.065567404,
-0.003316355,
-0.09262419,
-0.016654823,
0.03976704,
0.026107164,
0.03427387,
0.0352381,
-0.032929797,
-0.013703705,
-0.04882493,
0.040877365,
-0.014083552,
-0.01152689,
-0.035910133,
-0.060366426,
-0.0024142188,
0.043623947,
0.044003796,
-0.03775093,
-0.021855803,
-0.029043673,
-0.013725619,
-0.0011294965,
-0.023448236,
-0.03030009,
0.011826385,
-0.0082616685,
0.023579722,
-0.0002234796,
-0.032199323,
-0.010635711,
0.001202544,
0.037195772,
0.01612888,
-0.000107060194,
0.0015330837,
-0.0008861571,
-0.022074945,
-0.012564165,
0.0709437,
0.006585229,
0.025464347,
-0.0043938053,
0.036582172,
-0.03114744,
-0.0069468142,
-0.016508728,
-0.00620173,
0.04613678,
0.0103800455,
0.009992894,
-0.04011767,
0.04040986,
0.0045545097,
0.039241098,
-0.0026187517,
-0.019693598,
-0.011117824,
-0.060132675,
0.034010902,
-0.03868594,
-0.016304195,
-0.016508728,
0.010087855,
0.046838038,
-0.03351418,
0.029365081,
0.029277425,
0.016362634,
0.009671485,
-0.060249552,
0.014616799,
0.024719262,
-0.02512833,
-0.0054164696,
-0.0036943757,
-0.024324806,
-0.003776554,
-0.020073444,
-0.024850748,
-0.011161653,
0.011220091,
0.026063336,
-0.036845144,
0.026560059,
0.001203457,
-0.046575066,
-0.013798666,
0.040818926,
0.04178315,
0.0076042414,
0.009262419,
0.016610995,
0.033835586,
0.060775492,
0.014887074,
-0.016537948,
-0.061593626,
0.06258707,
0.0082835825,
-0.01671326,
-0.009152847,
0.032812923,
-0.07526811,
-0.021023061,
-0.0034587977,
0.013250811,
-0.027568115,
-0.0139812855,
-0.002122029,
-0.011877518,
-0.023039171,
0.026706154,
0.032199323,
0.044325203,
-0.008473506,
0.02366738,
0.017399907,
-0.020073444,
0.0083054975,
0.05797047,
-0.023375189,
-0.03316355,
-0.035910133,
0.02479231,
-0.040848143,
-0.028941406,
0.028780703,
0.028123274,
-0.030183213,
0.025712708,
0.003404012,
0.052623395,
-0.0052375034,
0.010058636,
0.041374087,
-0.059957363,
-0.019416017,
0.008656125,
0.055194665,
0.030913688,
-0.0039993487,
-0.029029064,
-0.022104165,
0.03351418,
0.024032617,
-0.029511176,
-0.05367528,
0.0019978483,
-0.03433231,
-0.018656323,
-0.0638727,
-0.026048727,
-0.031498067,
0.007998697,
-0.004313453,
-0.027348971,
0.06638554,
0.046078343,
-0.022907685,
-0.018276477,
-0.04528943,
0.006318606,
-0.005106018,
-0.040789705,
0.03193635,
-0.07935877,
0.045114115,
0.025142938,
-0.045201775,
-0.031235097,
-0.0023064737,
0.027173659,
-0.018101163,
-0.0017805321,
-0.016012006,
-0.040994238,
-0.016464898,
0.021183766,
-0.02799179,
0.020161102,
0.044471297,
-0.06229488,
0.00071632175,
0.023009952,
0.012352327,
0.011979785,
0.016698651,
0.027012954,
-0.021198375,
0.035676382,
0.0535584,
0.021841193,
-0.052155893,
-0.023404408,
0.010664931,
-0.0012637211,
0.0076553747,
-0.00040746792,
0.0045545097,
0.071937144,
-0.002503702,
-0.0034880165,
0.015076998,
0.014587579,
0.0042038816,
0.0004684169,
0.020599386,
-0.009759142,
0.0011879344,
-0.019474454,
-0.02771421,
0.034975126,
-0.040526737,
0.006446439,
0.00009227949,
-0.0016883096,
-0.02594646,
0.012944011,
-0.0055004745,
0.07748875,
0.028751483,
-0.022527838,
-0.00048211328,
0.03722499,
-0.03085525,
0.0024014355,
-0.08461819,
-0.024967624,
0.03351418,
-0.018028116,
-0.020263368,
-0.02106689,
0.027933352,
-0.006599839,
0.018714761,
-0.031059783,
0.039416414,
0.008268974,
-0.026969125,
0.0037875113,
-0.05674327,
-0.010555359,
-0.022323307,
0.059197668,
0.0031921742,
-0.058408756,
0.03368949,
0.04967228,
-0.002680842,
-0.026340917,
-0.026560059,
-0.01618732,
0.023886522,
0.045698497,
-0.026881468,
0.03404012,
-0.054990135,
0.030387746,
-0.0520098,
0.016245756,
0.011417319,
0.031614944,
0.017239202,
0.0038861253,
0.024982234,
0.048854146,
0.02653084,
0.0028086752,
0.028941406,
0.030212432,
0.029613443,
-0.011373491,
-0.011242005,
-0.020803919,
0.037897028,
0.012980535,
0.019825082,
-0.0012737652,
0.0369328,
0.050081342,
0.0057670977,
-0.013075497,
0.025435127,
-0.0023722164,
0.010504226,
-0.02596107,
-0.0038459492,
0.02594646,
-0.023988789,
0.016216537,
0.014638713,
0.0019923698,
-0.036815923,
-0.032959018,
-0.039182663,
0.0020508077,
0.006888376,
-0.017239202,
0.0037875113,
-0.0029693795,
0.040555954,
0.019269923,
-0.040818926,
-0.041374087,
0.01529614,
0.02882453,
0.011651071,
0.037634056,
0.003805773,
-0.00087017793,
-0.007881822,
0.02225026,
-0.0017686618,
0.0045727715,
0.0014399482,
-0.03775093,
-0.044033013,
0.015018559,
0.016201928,
-0.0026863206,
0.055486858,
-0.027086,
-0.045055676,
-0.06428177,
0.023287533,
-0.039357975,
0.020657824,
0.019109217,
-0.04298113,
-0.054142784,
0.0037875113,
-0.011943261,
0.035062786,
0.00584745,
0.048561957,
0.017385297,
0.0704762,
0.025259815,
-0.011190872,
0.033572618,
-0.015252311,
-0.019284531,
-0.050110564,
0.0072316993,
-0.017516783,
-0.00849542,
-0.0835663,
-0.020146491,
0.012352327,
0.022104165,
-0.016625604,
-0.03664061,
-0.021782754,
0.009518085,
-0.056655616,
-0.027159048,
0.03775093,
-0.017779754,
-0.012461898,
0.0017010929,
0.015383797,
-0.01986891,
0.006347825,
-0.03205323,
0.02888297,
-0.02911672,
-0.01485055,
-0.00046271004,
-0.005222894,
-0.0011769773,
-0.018787809,
-0.048795708,
0.006545053,
-0.01166568,
0.069365874,
0.019226093,
0.025902633,
-0.007447189,
0.017648268,
0.05241886,
0.023258314,
0.012965925,
0.09332544,
0.06352208,
-0.021183766,
-0.046370532,
0.020584777,
0.006523139,
-0.015003949,
0.0056684837,
0.044558953,
0.029072892,
-0.059314545,
-0.032170106,
-0.011892128,
0.034975126,
0.006398958,
-0.04648741,
-0.028152494,
0.0012061963,
-0.0818716,
-0.018656323,
-0.029978681,
0.03745874,
-0.016333414,
-0.022264868,
-0.02188502,
-0.056451082,
0.25455582,
0.04815289,
0.039474852,
0.049701497,
0.03345574,
0.05276949,
0.04131565,
-0.020380244,
-0.0072024805,
-0.03114744,
-0.0025110068,
-0.043477852,
0.0031812172,
0.008597687,
-0.018846247,
0.01671326,
-0.047130227,
0.03547185,
-0.023009952,
-0.033017457,
-0.057298433,
0.03351418,
0.030709155,
0.036202326,
0.018612495,
-0.0032524385,
0.030738374,
-0.03398168,
-0.028152494,
-0.03950407,
0.008992143,
-0.014353828,
0.053704496,
-0.017370688,
-0.04984759,
0.061944254,
0.013462649,
-0.04271816,
0.0045837285,
0.009072496,
-0.009934455,
-0.011724118,
0.0017887498,
-0.016070442,
-0.029379692,
0.020365633,
-0.034449186,
-0.04274738,
0.051220883,
-0.06691148,
0.0025548353,
-0.04987681,
0.06457396,
-0.043507073,
-0.0137402285,
0.0022644715,
-0.013017058,
-0.009306247,
-0.030738374,
-0.010475007,
0.0041198772,
0.013411515,
-0.019518284,
0.027611943,
-0.051191665,
0.05013978,
-0.03254995,
0.03894891,
-0.031907134,
0.011220091,
0.0023356928,
0.011789861,
0.05104557,
-0.012439984,
-0.0041746628,
0.032082446,
-0.0024525686,
0.055486858,
0.03430309,
0.0029419868,
0.02482153,
-0.021987287,
-0.056597177,
-0.004521638,
0.024003398,
0.009306247,
-0.029657273,
0.0005259418,
-0.013667181,
0.04756851,
0.014309999,
0.035384193,
-0.02854695,
0.026180211,
-0.022031115
] | from transformers import HfAgent
agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
agent.run("Show me a tree", return_code=True)
gives:
``text
==Explanation from the agent==
I will use the following tool:image_segmenter` to create a segmentation mask for the image.
==Code generated by the agent==
mask = image_segmenter(image, prompt="tree") |
[
0.01975109,
-0.02609058,
-0.010608175,
0.007569258,
-0.0029267797,
-0.06752152,
-0.015998235,
0.019317495,
-0.025507465,
0.058490742,
-0.018136317,
0.012036054,
0.01734388,
-0.000027581653,
-0.0193773,
-0.008514948,
-0.041475795,
-0.025746692,
-0.06345468,
-0.0272269,
0.010054965,
0.005550789,
-0.075715005,
-0.06261739,
-0.03492699,
0.02194898,
0.011527699,
0.010638079,
0.054812644,
0.018106412,
-0.061959516,
0.01862972,
-0.025148626,
-0.035644665,
-0.007098282,
-0.030516258,
0.03274405,
-0.022218108,
-0.031129275,
-0.051343866,
0.025342997,
-0.022397527,
0.010944586,
-0.032893565,
-0.09862089,
-0.017762525,
0.0029286488,
-0.020992076,
-0.0060105515,
-0.008784077,
0.04398767,
0.019123124,
0.02703253,
-0.011146434,
-0.04655935,
-0.022397527,
-0.029499548,
-0.037319247,
-0.055919062,
-0.0010709099,
-0.0244459,
0.018689526,
-0.019526817,
-0.060883,
-0.019123124,
0.008357956,
-0.034568146,
0.012103337,
-0.024027254,
-0.01254441,
-0.043509215,
0.026240095,
-0.03911344,
-0.040758118,
-0.010197005,
-0.010862352,
0.024087062,
-0.026778353,
-0.008066399,
0.03441863,
0.046439733,
0.057982385,
0.0037902358,
-0.004945249,
-0.017508348,
-0.023384335,
0.00908311,
0.014734822,
0.027047481,
-0.021380818,
-0.05672645,
0.01854001,
-0.009262529,
0.009897973,
-0.014226467,
0.061959516,
0.016895331,
0.00622735,
-0.017852236,
-0.0015942166,
0.05654703,
0.07876514,
-0.056337707,
-0.0019979104,
-0.038934022,
0.01697009,
0.025432708,
-0.01074274,
-0.03301318,
0.0009905449,
0.031787146,
-0.0038070565,
0.011251095,
-0.004444369,
-0.050835513,
0.06327526,
0.018973608,
-0.039412472,
-0.06494984,
0.007487024,
-0.011654789,
-0.006806725,
-0.042671926,
-0.02517853,
0.019795947,
-0.031099372,
-0.009957779,
0.04030957,
-0.01393491,
-0.022262964,
0.0049190833,
-0.0025361688,
0.029978,
0.039621796,
-0.041027248,
0.013179854,
-0.019975366,
0.019392252,
0.034986794,
-0.012746257,
0.020050123,
-0.015258129,
-0.01945206,
0.08175546,
0.034986794,
-0.019033413,
-0.008365432,
0.03477747,
-0.048682477,
0.002644568,
-0.020558478,
-0.00835048,
-0.0032519775,
-0.014772201,
-0.012581789,
-0.00885136,
-0.031966567,
-0.020349156,
0.002285729,
0.008664465,
-0.016955137,
0.019945463,
-0.030007903,
0.051971834,
-0.028363224,
0.038395762,
-0.032534726,
-0.042253282,
0.02638961,
-0.011325853,
0.021081785,
0.017044848,
0.015108613,
-0.011908966,
0.036751084,
0.012417321,
0.039681602,
-0.016013186,
-0.0013531217,
0.009344763,
-0.016072992,
-0.008365432,
-0.007991642,
0.03328231,
0.03337202,
-0.0045938855,
-0.003080034,
0.041655216,
0.02840808,
-0.018196123,
0.026150385,
0.041984152,
-0.039233055,
0.057713255,
0.022397527,
0.013583547,
-0.035255924,
0.015243177,
0.02813895,
-0.058969192,
-0.039681602,
0.0479648,
-0.0022221846,
0.012372466,
-0.015519783,
-0.0058199186,
-0.023354432,
0.043778345,
-0.0055769547,
0.03441863,
0.031667534,
0.024012303,
-0.063394874,
-0.020543527,
0.021171495,
-0.04195425,
-0.02988829,
0.020528575,
0.025791546,
0.028931387,
0.027167095,
0.05089532,
-0.002601582,
0.049968317,
-0.011243619,
-0.03821634,
-0.013695684,
0.04093754,
0.0030594754,
0.040429182,
0.029678967,
0.031099372,
-0.0069562416,
0.046469636,
0.0341495,
0.012372466,
0.043868057,
0.020857511,
-0.027241854,
0.00052704464,
0.015953379,
0.06022513,
0.049489863,
0.021784512,
0.013845201,
0.012895773,
-0.016626202,
0.0046723816,
-0.0008807439,
0.01982585,
-0.058371127,
0.043509215,
0.037528567,
0.014413362,
-0.030740533,
-0.013987241,
0.004380825,
0.021829367,
-0.0479648,
-0.022846077,
0.009883021,
0.00972603,
-0.017657865,
-0.024595417,
0.022681609,
0.03800702,
0.014682491,
0.0014633898,
-0.009337287,
-0.052599803,
-0.0012045399,
-0.017747574,
-0.068119586,
-0.0028688423,
-0.039532084,
-0.015893573,
0.0012652809,
-0.03552505,
0.0027342776,
-0.069196105,
-0.03006771,
0.020812657,
-0.044496022,
0.03208618,
0.008081351,
-0.044824958,
-0.068956874,
-0.021889172,
-0.022741415,
0.024700077,
-0.006234826,
-0.009068158,
-0.009359715,
-0.029514499,
0.03394018,
-0.01420404,
0.035255924,
0.028722065,
-0.0235189,
-0.01425637,
-0.019885655,
-0.0145180235,
-0.0011793091,
0.005109716,
-0.021335963,
0.04362883,
0.016207557,
0.009157868,
0.03358134,
0.045153894,
-0.025627078,
0.004223833,
-0.015474928,
0.026060674,
-0.04410728,
0.05968687,
0.043778345,
-0.026494272,
0.02130606,
0.011161385,
-0.017119605,
-0.008462617,
-0.01578891,
-0.05038696,
-0.03743886,
0.038395762,
-0.043748442,
-0.059537355,
-0.006070358,
-0.041984152,
-0.010630602,
-0.016252412,
-0.023832884,
0.05212135,
0.02665874,
0.038306054,
-0.028034288,
0.013695684,
-0.01605804,
0.052360576,
0.0021978882,
-0.0053003496,
0.0051545715,
0.004885442,
0.0015241308,
0.029678967,
0.022068592,
-0.037648182,
0.024191722,
-0.019227784,
0.030306935,
0.022218108,
0.012529458,
-0.0044518453,
0.02683816,
0.026299901,
-0.049579576,
-0.0038182703,
-0.0020969647,
0.017373784,
-0.019123124,
0.029409839,
-0.0033080461,
-0.013478886,
-0.011393135,
-0.0020558478,
-0.007692609,
0.056307804,
0.054005254,
-0.021515382,
-0.00020885546,
0.014996476,
-0.01955672,
-0.04593138,
-0.045602445,
-0.043060668,
0.040997345,
0.038575184,
0.03184695,
-0.02988829,
-0.028826725,
0.029484596,
-0.024490755,
0.023130158,
0.00046747178,
0.01714951,
0.031906758,
0.013022861,
0.01097449,
-0.004605099,
0.041864537,
-0.017299026,
-0.011624885,
0.0025137411,
-0.056965675,
-0.043060668,
0.00913544,
0.030112565,
0.035285827,
0.013478886,
0.03633244,
0.032445017,
0.018644672,
0.011737023,
-0.067043066,
0.02028935,
-0.04649954,
0.032953374,
0.010899732,
-0.002362356,
-0.03441863,
0.004866753,
0.0142488945,
-0.0066459957,
0.027361466,
0.019018462,
-0.044316605,
-0.009853118,
0.011400611,
-0.013434031,
-0.01993051,
-0.029963048,
0.020334205,
0.035764277,
0.02546261,
0.0033846733,
0.018465253,
-0.039890926,
0.012768684,
0.01070536,
-0.03265434,
0.0051583094,
0.0027099813,
-0.010451183,
-0.017852236,
0.032504823,
0.053526804,
-0.041027248,
-0.015385218,
-0.04733683,
-0.012350039,
0.014465693,
-0.016491638,
-0.002526824,
-0.00169514,
-0.0023100255,
0.041116957,
0.021620044,
-0.0022315294,
-0.03238521,
0.017284073,
-0.014271322,
0.008200964,
-0.02582145,
0.05553032,
-0.012768684,
-0.05304835,
-0.018794188,
0.021021979,
0.022083543,
-0.027196998,
0.020453818,
0.03199647,
-0.004182716,
-0.020453818,
0.03337202,
-0.000572834,
-0.018839043,
-0.009509231,
0.03450834,
-0.0047919946,
0.011318377,
-0.0014334867,
0.0036481954,
-0.015908524,
-0.01679067,
0.016446782,
0.003190302,
0.008911166,
0.0145180235,
-0.03450834,
0.012678974,
-0.001979221,
-0.010585748,
-0.021335963,
-0.06076339,
-0.004257474,
0.01623746,
-0.009897973,
0.009621368,
0.02314511,
-0.023578705,
0.0059731724,
-0.039890926,
-0.03642215,
-0.048174124,
0.016730864,
-0.003631375,
0.065428294,
-0.012649071,
0.03579418,
-0.021874221,
-0.00922515,
0.010630602,
-0.024834642,
-0.0026688643,
-0.0015867407,
-0.016117847,
0.032415114,
-0.021694802,
-0.038246248,
0.072186425,
-0.01743359,
0.008612134,
0.04907122,
0.016013186,
0.0028651042,
-0.024969207,
-0.028034288,
0.047486346,
-0.030770436,
-0.06007561,
-0.010047489,
0.009277481,
-0.015355315,
0.027152143,
0.019138075,
-0.019437106,
-0.03211608,
-0.07427965,
0.051971834,
-0.025477562,
-0.008141157,
-0.020259446,
-0.028288467,
0.023444142,
-0.001024186,
0.019840801,
-0.03516621,
-0.032325406,
-0.0341495,
0.027555836,
-0.033192597,
0.03773789,
-0.019048365,
0.01388258,
-0.04159541,
0.01102682,
0.021350915,
0.005453604,
0.030456452,
-0.013052765,
0.029783629,
0.004844325,
-0.03247492,
-0.015198323,
-0.010047489,
0.010518465,
-0.004601361,
0.04344941,
-0.012903249,
0.006967455,
-0.022203157,
0.035853986,
-0.023623561,
-0.04937025,
-0.028423032,
0.0008756043,
0.0415356,
-0.02721195,
-0.030411597,
-0.03531573,
0.030516258,
0.021799464,
0.00057376846,
-0.01420404,
-0.011594982,
-0.049430057,
-0.059148613,
0.03127879,
-0.022083543,
-0.032893565,
-0.05343709,
0.0032538464,
0.055410706,
-0.031069469,
0.03349163,
0.096288435,
-0.0048181596,
0.038126633,
-0.06566752,
0.02960421,
-0.01732893,
-0.0042350465,
-0.037887406,
0.004706023,
-0.048114315,
-0.016401928,
-0.040369377,
-0.017627962,
-0.0132620875,
0.011557603,
0.04730693,
-0.028916435,
0.041744925,
0.00940457,
-0.048204027,
-0.017239219,
0.041027248,
0.048742283,
0.021799464,
0.019347398,
0.030411597,
0.029260322,
-0.021530334,
-0.012858394,
-0.01489929,
-0.021500431,
0.042462602,
-0.0061488543,
-0.055111673,
0.06007561,
0.06614597,
-0.07027262,
-0.057713255,
-0.00931486,
0.030037805,
-0.03274405,
-0.015355315,
-0.0057376847,
0.03441863,
-0.051224254,
0.008597182,
0.0140096685,
0.010226909,
-0.022816174,
0.036751084,
-0.011228668,
-0.0488918,
0.0021231303,
0.053795934,
-0.03364115,
-0.008522424,
-0.084386945,
-0.027884772,
-0.008701843,
0.0008045841,
0.04778538,
-0.02730166,
-0.034747567,
0.0058984146,
-0.0077449395,
0.09610902,
-0.004141599,
0.028437983,
0.038664892,
-0.061002612,
-0.030426549,
-0.015340363,
0.022038689,
-0.011206239,
0.0017904566,
-0.023593659,
-0.0133144185,
0.026060674,
0.041176762,
0.008828932,
-0.051074736,
-0.03247492,
-0.037050117,
0.017762525,
-0.02480474,
-0.010032537,
-0.008126206,
0.0007751481,
0.029723823,
-0.0068104635,
0.005554527,
0.01190149,
0.005520886,
0.00456772,
-0.061660483,
0.019526817,
-0.03633244,
-0.002366094,
0.0013727457,
0.007008572,
-0.01973614,
-0.0048966557,
-0.03848547,
-0.014914242,
0.018569913,
0.044346508,
-0.04757606,
0.012761208,
-0.019661382,
-0.021231301,
0.01643183,
-0.0020446342,
-0.047187317,
0.026778353,
0.011707119,
-0.03734915,
0.019511865,
-0.023130158,
-0.03247492,
-0.00358652,
0.008171061,
0.068418615,
-0.026165336,
0.026045723,
0.0078047463,
0.009210198,
-0.038874213,
-0.037648182,
0.02371327,
0.0056629265,
0.022203157,
0.0156693,
0.010219432,
0.049938414,
-0.0030164896,
0.034358826,
-0.00039201282,
0.00023280141,
0.010667982,
-0.015833767,
0.005274184,
-0.006784298,
0.021904124,
-0.018495155,
0.016446782,
0.014368508,
-0.020558478,
0.0142488945,
-0.0015895442,
-0.020737898,
-0.019018462,
0.01670096,
0.013598499,
0.036481954,
0.026823208,
-0.015086185,
0.018315736,
-0.009673699,
-0.014682491,
0.02269656,
-0.057892676,
-0.030291984,
-0.00844019,
-0.02481969,
-0.0039621796,
-0.012843442,
0.024715029,
-0.023264723,
0.006417983,
-0.0052816602,
-0.008395335,
-0.0065562855,
-0.017583106,
0.011355756,
-0.020259446,
-0.025238335,
0.02360861,
0.049788896,
0.006847842,
-0.04730693,
0.025851352,
0.053556707,
0.01374054,
-0.0359437,
-0.07804746,
0.015938427,
-0.013105095,
0.021126641,
-0.03118908,
0.014398411,
-0.021560237,
0.0010662375,
-0.03827615,
0.025103772,
-0.0068777455,
0.00844019,
0.075715005,
-0.011968773,
0.003352901,
0.041655216,
-0.007180516,
-0.01955672,
0.014233943,
0.023997352,
0.013082668,
-0.0040107723,
0.0020577167,
-0.009995159,
0.0064927414,
0.0673421,
0.0030202274,
0.007389839,
0.009583989,
0.05729461,
-0.028378176,
-0.017837284,
0.0049377726,
0.03743886,
0.013164902,
-0.018839043,
-0.0023081566,
-0.015639395,
-0.019063316,
0.0016680402,
0.008021545,
-0.017299026,
-0.011355756,
-0.021021979,
-0.021978883,
-0.0071618264,
0.022681609,
0.004306067,
0.0105633205,
-0.01714951,
0.05322777,
0.006989883,
-0.011796829,
-0.036751084,
0.02869216,
0.023862787,
0.027780112,
0.03337202,
-0.014749774,
0.008126206,
-0.015190847,
0.020588381,
-0.013591023,
0.0040817927,
-0.017807381,
-0.02887158,
-0.038126633,
0.03654176,
0.0077598915,
0.0065712375,
0.009068158,
-0.0030183585,
-0.0018240977,
-0.0516429,
0.0005854494,
-0.030456452,
0.038605087,
0.022277916,
0.004653692,
-0.034538243,
0.028019337,
0.026494272,
0.021007027,
0.031876855,
0.08594192,
0.014974048,
0.081396624,
0.06530868,
0.0029660277,
0.013015386,
0.03274405,
-0.029948097,
-0.055111673,
0.04485486,
-0.015445025,
0.01631222,
-0.023459094,
-0.038335957,
0.012297709,
0.05469303,
-0.036272634,
-0.05092522,
-0.008499997,
0.03364115,
-0.031159177,
0.023085302,
0.04362883,
-0.009307384,
0.015833767,
-0.026569031,
-0.0021492955,
-0.056397513,
0.020139834,
-0.041236572,
0.028542643,
-0.0120061515,
-0.063394874,
-0.025582224,
-0.020154785,
-0.008903691,
0.008357956,
-0.014794629,
-0.022920834,
0.015624444,
0.032415114,
0.052898835,
0.011961297,
-0.029305177,
-0.014263846,
0.04383815,
0.040728215,
0.023907641,
0.032295503,
0.05218116,
-0.023623561,
-0.030291984,
-0.01668601,
0.021799464,
0.006309584,
0.014159185,
0.028198756,
-0.004724712,
-0.028288467,
-0.0341196,
-0.002281991,
0.045153894,
-0.0055844304,
0.0016007579,
-0.02621019,
-0.022203157,
-0.077090554,
-0.019511865,
-0.008499997,
0.06189971,
0.024640271,
-0.0044294177,
0.0016306612,
-0.045183796,
0.26793304,
0.05831132,
0.007060903,
0.06429197,
0.034747567,
0.060195226,
0.033252403,
-0.037528567,
-0.003504286,
-0.028183805,
0.036780987,
-0.015609493,
-0.021575188,
-0.0060217655,
-0.0074832863,
0.00028618338,
-0.04742654,
0.021350915,
-0.021186447,
-0.009449424,
-0.036212824,
0.026509224,
0.004485486,
0.07780824,
0.01734388,
0.030800339,
0.038874213,
-0.048413347,
0.011938869,
-0.046619155,
-0.022397527,
-0.022816174,
-0.020364108,
0.0026968985,
-0.02683816,
0.027062435,
0.0244459,
-0.03211608,
-0.0030856407,
-0.008679416,
0.0044667968,
-0.007187992,
0.021664899,
-0.019212833,
-0.02046877,
0.031876855,
-0.0059320554,
0.027047481,
0.032265596,
-0.080320105,
0.0070384755,
-0.014218992,
0.04844325,
-0.01982585,
-0.007991642,
-0.015003951,
0.041445892,
-0.023743173,
0.00917282,
0.018495155,
0.014099378,
-0.015003951,
0.025686884,
0.038664892,
-0.047007896,
0.052719414,
0.006989883,
0.019407203,
-0.03588389,
-0.011288473,
0.027884772,
-0.0017315845,
0.012163144,
-0.042283185,
0.041206665,
0.012551886,
0.020124882,
0.036123116,
0.040728215,
-0.041087054,
0.009800787,
-0.013658306,
-0.05977658,
-0.020408962,
0.018390493,
0.032445017,
-0.051852223,
0.0070571653,
0.028632354,
0.029589258,
-0.010810022,
0.028841676,
0.0043995143,
0.024236577,
0.0035753064
] |
is a final and unfinished example that the agent is tasked to complete. The unfinished example
is dynamically created based on the actual user input. For the above example, the user ran:
py
agent.run("Draw me a picture of rivers and lakes")
The user input - a.k.a the task: "Draw me a picture of rivers and lakes" is cast into the
prompt template: "Task: \n\n I will use the following". This sentence makes up the final lines of the
prompt the agent is conditioned on, therefore strongly influencing the agent to finish the example
exactly in the same way it was previously done in the examples.
Without going into too much detail, the chat template has the same prompt structure with the
examples having a slightly different style, e.g.:
````text
[]
=====
Human: Answer the question in the variable question about the image stored in the variable image.
Assistant: I will use the tool image_qa to answer the question on the input image.
py
answer = image_qa(text=question, image=image)
print(f"The answer is {answer}")
Human: I tried this code, it worked but didn't give me a good result. The question is in French
Assistant: In this case, the question needs to be translated first. I will use the tool translator to do this.
py
translated_question = translator(question=question, src_lang="French", tgt_lang="English")
print(f"The translated question is {translated_question}.")
answer = image_qa(text=translated_question, image=image)
print(f"The answer is {answer}")
=====
[]
`
Contrary, to the examples of the run prompt, each chat prompt example has one or more exchanges between the
Human and the Assistant. Every exchange is structured similarly to the example of the run prompt.
The user's input is appended to behind Human: and the agent is prompted to first generate what needs to be done
before generating code. An exchange can be based on previous exchanges, therefore allowing the user to refer
to past exchanges as is done e.g. above by the user's input of "I tried this code" refers to the
previously generated code of the agent.
Upon running .chat, the user's input or task is cast into an unfinished example of the form:
text
Human: <user-input>\n\nAssistant:
which the agent completes. Contrary to the run command, the chat command then appends the completed example
to the prompt, thus giving the agent more context for the next chat turn.
Great now that we know how the prompt is structured, let's see how we can customize it!
Writing good user inputs
While large language models are getting better and better at understanding users' intentions, it helps
enormously to be as precise as possible to help the agent pick the correct task. What does it mean to be
as precise as possible?
The agent sees a list of tool names and their description in its prompt. The more tools are added the
more difficult it becomes for the agent to choose the correct tool and it's even more difficult to choose
the correct sequences of tools to run. Let's look at a common failure case, here we will only return
the code to analyze it. |
[
0.038995232,
-0.028261552,
-0.020296933,
-0.03151591,
-0.022252403,
-0.051927034,
-0.021381719,
0.03862412,
-0.004467609,
0.043048907,
-0.0021642211,
-0.017270949,
0.046531644,
0.019611804,
0.008371414,
-0.011383125,
0.02654873,
-0.0032168925,
-0.056037802,
-0.0052954727,
0.0099200895,
-0.0053739767,
-0.039937284,
-0.035883605,
-0.035626683,
0.0013845306,
0.023151634,
0.011490176,
0.07456482,
-0.00096792245,
-0.04333438,
-0.008749662,
-0.034570444,
-0.015515306,
0.000015751042,
-0.022309497,
0.04638891,
-0.024450524,
-0.04858703,
-0.05520994,
0.055267032,
-0.040222753,
0.004695985,
-0.056580197,
-0.056323275,
0.023280095,
-0.008528423,
0.02357984,
0.012639194,
-0.051898483,
0.008228679,
0.041678652,
-0.00050715567,
-0.0011356362,
-0.04764498,
-0.020296933,
-0.0016807059,
-0.010840732,
-0.038195916,
-0.016328895,
0.013467058,
0.045446858,
0.021809924,
-0.0445619,
0.00030576537,
0.030688047,
-0.016485905,
-0.010619492,
-0.032743435,
-0.01882676,
-0.053611305,
0.0450472,
-0.024250695,
-0.004631754,
-0.0061090626,
0.008763935,
0.037168223,
-0.05329729,
-0.0121324845,
0.03505574,
0.01233945,
0.071824305,
-0.005120622,
-0.03202976,
-0.019997189,
-0.006248229,
0.01715676,
0.0054560495,
0.007097503,
-0.02430779,
-0.024322063,
0.020796506,
-0.01667146,
0.037510786,
0.033485655,
0.07193849,
0.00004460472,
0.048044637,
-0.0014496534,
-0.0023658343,
0.038195916,
0.08221542,
-0.015415392,
-0.010298338,
-0.041250445,
-0.0112332525,
0.034770273,
-0.033200186,
0.0062767765,
0.0143448785,
0.06114772,
-0.02146736,
0.012525005,
-0.017813342,
-0.04033694,
0.06000584,
0.0241936,
-0.0053846817,
-0.062632166,
-0.033285826,
-0.007586371,
-0.041735746,
-0.03516993,
-0.05740806,
-0.0040179933,
-0.018598385,
-0.0010972761,
0.018370008,
-0.0020179176,
-0.015800776,
0.0138310315,
0.0030438262,
0.0050528226,
0.042420875,
0.0065551098,
0.03191557,
-0.037881896,
0.01931206,
0.023465652,
-0.014487613,
-0.0020375436,
-0.011490176,
-0.01946907,
0.099058166,
0.012596373,
-0.038567025,
0.011989749,
0.020439668,
-0.06086225,
0.0071117766,
-0.022081122,
0.011911245,
0.0074935933,
0.0010169876,
-0.0074507724,
-0.03143027,
-0.014073682,
-0.0016789217,
0.022980353,
0.006847717,
0.038966686,
0.04533267,
-0.022509327,
0.060348403,
-0.0027619244,
0.03919506,
-0.035883605,
0.0044247885,
-0.022252403,
-0.012689151,
0.03708258,
0.0072045545,
-0.015115648,
-0.0035826513,
0.047359508,
0.008428508,
0.02008283,
0.037624974,
0.019982915,
0.042820532,
-0.038595572,
-0.037510786,
-0.0047281003,
0.01878394,
-0.0025246271,
-0.008728252,
0.030830784,
0.027348047,
0.011747099,
-0.055324126,
0.03536976,
0.04127899,
-0.04247797,
0.05760789,
0.017542144,
0.050157115,
-0.026477363,
0.031487364,
0.022152489,
-0.06651456,
-0.016314622,
0.030802237,
-0.0027637086,
0.011804193,
-0.019155052,
-0.013616929,
-0.015829323,
0.036540188,
-0.028489927,
0.049671818,
0.045903612,
0.017028298,
-0.058007546,
-0.019411974,
0.026991209,
-0.028803945,
0.010640902,
0.036226172,
0.00747932,
-0.00039608992,
0.032829076,
0.025535312,
0.036226172,
-0.03394241,
-0.010005731,
-0.032743435,
-0.0052169682,
0.045104295,
-0.005306178,
0.019454796,
-0.003971604,
0.023922404,
0.033114545,
0.051127717,
0.0041607283,
0.012924664,
0.03288617,
0.012061116,
-0.036483094,
0.0072866273,
0.016029153,
0.04410515,
0.009991458,
0.044875916,
0.013616929,
-0.00008720223,
0.008542696,
0.02025411,
-0.0036647238,
-0.016999751,
-0.07022567,
0.04533267,
0.0003891762,
0.022209583,
-0.035683777,
-0.028832491,
0.02151018,
0.03776771,
-0.039337795,
-0.029660355,
-0.022866163,
0.011033424,
-0.0120040225,
-0.010248381,
0.05932071,
0.025506763,
-0.021053428,
0.0027244564,
-0.012253809,
-0.04992874,
-0.024364883,
-0.020539582,
-0.047787715,
-0.0029599692,
-0.023237275,
0.006091221,
-0.004924361,
-0.022994626,
0.023365738,
-0.048073184,
-0.015015733,
0.0017601023,
-0.013010305,
0.023351464,
0.0006472145,
0.025321208,
-0.03619762,
-0.006569383,
-0.02931779,
0.038852498,
-0.02512138,
-0.056694385,
0.00020663138,
-0.038567025,
0.024122233,
0.014059408,
0.009563252,
-0.032058306,
-0.020639496,
-0.03582651,
-0.04947199,
-0.009306329,
-0.031772833,
0.0023247981,
-0.0076006446,
-0.0065622465,
0.03548395,
-0.001813628,
0.057636436,
0.048929594,
-0.022680609,
0.025349755,
-0.0025299797,
0.026191892,
-0.05646601,
0.050842244,
0.02118189,
-0.017285222,
-0.02289471,
-0.01812736,
-0.011368851,
0.00415716,
0.0077433796,
-0.0024407704,
-0.016557273,
0.035683777,
-0.018384282,
-0.0852985,
0.02296608,
-0.019097958,
0.010505304,
-0.017542144,
-0.019155052,
0.025563858,
0.017042572,
0.04224959,
-0.022666335,
0.00081046775,
-0.026720012,
0.019454796,
0.022109669,
-0.015929239,
0.0488725,
-0.0066550244,
0.024735995,
0.022223856,
0.06114772,
-0.08255798,
0.032515056,
-0.013124493,
0.04870122,
0.005309746,
-0.010062825,
0.032343775,
0.022066848,
0.018284367,
-0.044333525,
-0.01601488,
-0.01752787,
0.011939792,
0.04085079,
0.050356947,
-0.010241244,
-0.02931779,
-0.025264114,
0.00031245608,
-0.013045989,
0.015015733,
0.07753371,
-0.0035969247,
0.0035951405,
-0.011640048,
-0.046446003,
0.010105645,
-0.002116048,
-0.037824802,
0.031829927,
0.010134192,
0.06748516,
-0.006123336,
-0.009491885,
0.018312914,
-0.011126202,
-0.010976329,
0.003750365,
0.026662918,
-0.013616929,
0.031087706,
0.017770521,
-0.003391743,
0.03948053,
-0.004563955,
0.0054667545,
-0.014409109,
-0.027105397,
-0.020296933,
0.03919506,
0.02390813,
0.028632663,
0.022038301,
0.018798213,
-0.0046888483,
-0.0068726954,
-0.01154727,
-0.026734285,
0.043362927,
-0.022152489,
0.041849934,
-0.0127747925,
-0.017998897,
-0.020782232,
-0.038281556,
0.016956931,
0.017299496,
0.0054953014,
0.023694027,
-0.026077705,
0.011083381,
0.0091207735,
0.002362266,
-0.016171888,
-0.011004876,
-0.020282658,
0.025720866,
0.035227023,
-0.024821635,
0.0023872447,
-0.050927885,
0.0010928157,
0.025678046,
-0.006776349,
-0.04005147,
0.012318039,
-0.003778912,
-0.04264925,
0.01370257,
0.034456253,
-0.032914717,
0.009270645,
-0.008435645,
-0.0059020966,
0.023694027,
-0.009477611,
0.023565566,
-0.016286075,
0.008606927,
0.01735659,
0.011582954,
-0.008528423,
-0.05224105,
0.02236659,
-0.010055688,
0.00069895596,
-0.0023747555,
0.05623763,
-0.012589237,
0.00884244,
-0.009991458,
0.04179284,
0.0035041468,
-0.018641206,
0.02098206,
0.03785335,
-0.047102585,
-0.03000292,
0.02650591,
0.014701716,
-0.0108978255,
0.020625222,
0.01205398,
-0.0073579946,
0.029003773,
0.01964035,
-0.04524703,
0.014145049,
-0.021167617,
0.023351464,
0.004952908,
-0.011818467,
0.007115345,
-0.044419166,
0.019897275,
0.03979455,
0.007757653,
-0.0025567426,
-0.06914089,
-0.0069654733,
0.03688275,
-0.0488725,
-0.0104339365,
0.0017208501,
-0.032543603,
0.010562398,
-0.055809427,
-0.009534705,
-0.032229587,
-0.0027833346,
0.024008045,
0.041992668,
0.009185004,
0.024222149,
-0.023793943,
-0.0584643,
0.034484804,
-0.026134798,
-0.0027619244,
-0.027733432,
0.001142773,
0.016514452,
0.010341158,
-0.061376095,
0.009527569,
-0.013103083,
0.023808217,
0.019526163,
0.025149927,
0.018940948,
-0.04724532,
-0.020439668,
0.05301182,
-0.042906173,
-0.09997167,
-0.033285826,
0.01805599,
0.0065836567,
-0.0029688901,
0.03394241,
0.0019608235,
-0.044618994,
-0.07051114,
0.033457108,
-0.035883605,
-0.019212145,
0.013823895,
-0.05175575,
-0.011290347,
0.028789671,
0.047759168,
-0.041421726,
-0.01731377,
-0.026962662,
0.031487364,
-0.028332919,
-0.012218125,
-0.018484196,
0.030288389,
-0.017028298,
0.04484737,
0.012246672,
0.0039180787,
-0.012018296,
-0.0032454396,
0.025235567,
0.016642913,
0.0028993068,
-0.004849425,
-0.032001212,
0.014180733,
-0.02081078,
0.020068556,
0.008507012,
0.017085392,
-0.043477114,
0.029860184,
0.0019536868,
-0.008664021,
-0.0407366,
-0.020439668,
0.056694385,
-0.04119335,
-0.015158468,
-0.02390813,
0.041935574,
0.010933509,
-0.00578434,
-0.009741671,
-0.001067837,
-0.067999005,
-0.050556775,
0.0032168925,
-0.033628393,
-0.026049158,
-0.0012409034,
-0.016728554,
0.032686338,
-0.070568234,
0.019940095,
0.06919798,
0.018969495,
0.039908737,
-0.05010002,
-0.0126463305,
0.032172494,
-0.020111376,
-0.018940948,
0.020496761,
-0.03402805,
0.006526563,
-0.030688047,
0.003334649,
-0.020796506,
-0.010391116,
0.03736805,
-0.03471318,
0.042906173,
0.002162437,
-0.056580197,
-0.017599238,
0.026862748,
0.015658041,
0.008364277,
0.013531288,
0.06183285,
0.005534554,
0.011868424,
-0.0108193215,
-0.012996032,
-0.0359407,
0.03748224,
-0.0042178226,
-0.031316083,
0.028589843,
0.04670293,
-0.014815904,
-0.041079164,
-0.004232096,
0.023565566,
-0.05363985,
-0.03996583,
-0.011640048,
-0.033285826,
0.01418787,
0.0051919897,
0.023722574,
0.017113939,
0.0058699814,
0.009648893,
-0.026563004,
-0.027790526,
0.015315477,
0.022038301,
-0.05826447,
-0.034827366,
-0.07656311,
-0.008970901,
-0.008556969,
-0.016700007,
0.04656019,
0.027776252,
-0.011468766,
-0.014815904,
-0.014573255,
0.047273867,
-0.020097103,
0.045361217,
0.013474194,
-0.06343148,
-0.06240379,
-0.023294369,
0.05623763,
0.003402448,
-0.027904714,
-0.01262492,
0.0055060065,
0.037910443,
0.01951189,
-0.015187016,
-0.06348857,
0.006369554,
-0.044304978,
0.030630954,
0.014401972,
0.00004245812,
-0.013624066,
-0.01392381,
0.0046495963,
-0.0044426303,
0.00007883884,
0.030431125,
-0.0155295795,
-0.034427706,
-0.0455325,
0.018327188,
-0.040679507,
-0.02727668,
-0.007415089,
0.0005508683,
-0.007664875,
0.008250089,
-0.029075142,
-0.01882676,
-0.031972665,
0.055067204,
-0.02642027,
-0.010419663,
-0.022252403,
-0.02166719,
0.016000606,
-0.0068548536,
-0.05369695,
0.015401118,
0.044790275,
-0.024536164,
0.038881045,
-0.015215563,
-0.015772229,
0.020710863,
-0.010248381,
0.022680609,
-0.03257215,
0.034342065,
0.054267887,
0.012946074,
-0.03536976,
-0.02991728,
0.020539582,
0.003932352,
0.002513922,
-0.010540987,
0.003657587,
0.037139677,
0.019697445,
0.006715687,
0.0056309,
0.006330302,
0.02918933,
-0.020239837,
-0.00096613826,
-0.01585787,
-0.0138310315,
-0.022552148,
0.014023724,
0.050128568,
-0.029346338,
0.021267531,
0.0034845208,
-0.011611501,
-0.059206523,
-0.024893003,
0.007161734,
0.031887025,
0.01447334,
0.026705738,
0.014401972,
-0.010212697,
-0.035512496,
0.041164804,
-0.06777063,
-0.043106,
0.023608387,
-0.04627472,
0.002494296,
-0.02362266,
-0.0013060262,
-0.011354578,
-0.00031424026,
-0.025877874,
0.03439916,
0.034427706,
-0.0020036441,
0.03711113,
-0.056979854,
-0.015458212,
0.015443939,
0.022109669,
0.007928935,
-0.06503011,
0.01449475,
0.020710863,
0.0068441485,
-0.024907276,
-0.04895814,
0.0015602731,
0.0016931952,
0.0068084644,
-0.0053026094,
0.0019126504,
-0.03191557,
0.01020556,
-0.037453692,
0.029945826,
-0.012860433,
0.03776771,
0.06777063,
-0.010548124,
-0.0014193222,
0.05723678,
0.006565815,
0.0048458567,
0.014509024,
0.03748224,
0.039680358,
-0.029489074,
-0.007643465,
-0.0049172244,
-0.008200132,
0.0349701,
0.035997793,
0.027476508,
0.017770521,
0.055352673,
0.0019376291,
-0.005677289,
0.02410796,
0.035712324,
-0.006394533,
0.008628338,
-0.0005776311,
0.008792482,
-0.046417456,
-0.018041717,
-0.0030242,
-0.0007359779,
-0.021881292,
-0.010020005,
-0.022951806,
0.02228095,
0.04972891,
-0.024236422,
0.004146455,
-0.042592157,
0.025963517,
-0.01585787,
0.003693271,
-0.021438813,
0.043648396,
0.038395744,
0.037139677,
0.04102207,
0.0059770327,
0.029660355,
0.0045568184,
-0.0014505455,
-0.0007484672,
0.0027833346,
-0.006622909,
-0.054125153,
0.0034506212,
0.038367197,
0.015429665,
0.0057236776,
-0.0018591247,
-0.013167313,
0.014608938,
-0.03171574,
0.032058306,
-0.057750624,
0.015886417,
0.012182442,
-0.0009286703,
-0.041450277,
-0.009862996,
0.0067692124,
0.021952659,
0.040593866,
0.059491992,
0.005099212,
0.066914216,
0.019740265,
-0.01504428,
0.008635474,
0.0013675807,
-0.0029171486,
-0.031744286,
0.039994378,
0.0005602353,
0.020197017,
-0.0455325,
-0.028975226,
0.026648644,
0.040793695,
-0.008471329,
-0.014944366,
-0.0002899307,
0.04204976,
-0.06577234,
-0.01671428,
0.049100876,
0.028803945,
0.0039359205,
0.014858725,
0.015301203,
-0.072281055,
0.002890386,
-0.045275576,
0.00030777257,
0.019711718,
-0.03853848,
-0.009541842,
-0.030688047,
-0.001634317,
-0.041478824,
-0.026819926,
0.0040108566,
0.028761124,
0.01317445,
0.023194455,
0.0017592103,
-0.02659155,
-0.011040561,
0.030802237,
0.062232506,
0.016086247,
0.069826014,
0.07325166,
-0.040365487,
-0.046845663,
-0.014037997,
0.011982612,
-0.026220439,
0.020582402,
0.036169074,
-0.038681213,
-0.013745391,
-0.044533353,
-0.04541831,
0.06971183,
-0.017841889,
-0.045075748,
-0.012367997,
-0.0022338044,
-0.061889943,
-0.010519577,
-0.043362927,
0.037796255,
-0.033771127,
-0.022794796,
0.01040539,
-0.05752225,
0.24185036,
0.04524703,
0.007814747,
0.045875065,
0.04350566,
0.08369987,
0.03505574,
-0.007614918,
0.009420517,
-0.0996862,
0.001152586,
0.0009937931,
-0.024907276,
0.05001438,
-0.016086247,
0.0011472334,
-0.032943264,
0.022409411,
-0.007033272,
-0.015843596,
-0.027961807,
0.025920695,
0.005687994,
0.07878978,
-0.003818164,
0.0059663276,
0.04516139,
-0.054096606,
0.010683723,
-0.03280053,
0.02142454,
-0.011682869,
0.028575568,
-0.028889585,
-0.015472486,
0.023993772,
0.0064195115,
-0.057179686,
0.011904108,
-0.017656332,
0.027148217,
-0.012068253,
-0.009556116,
-0.022580694,
0.011169022,
0.04664583,
-0.002012565,
0.013695434,
0.035626683,
-0.058921054,
0.038224462,
-0.043819677,
0.032343775,
-0.03696839,
-0.011204706,
-0.019568983,
-0.03516993,
-0.043362927,
-0.019583257,
-0.004196412,
0.00023372874,
0.0019144346,
-0.02639172,
0.018455649,
-0.065201394,
0.02991728,
0.0044854507,
0.018812487,
-0.01849847,
-0.022751976,
0.02837574,
0.008499876,
0.0009857643,
-0.033371467,
0.014052271,
-0.0088638505,
0.033485655,
0.05874977,
0.0541537,
-0.03488446,
-0.01906941,
-0.025949242,
-0.07250944,
-0.022181036,
0.010555261,
-0.008435645,
-0.04753079,
0.015058554,
-0.0132386815,
0.033913862,
-0.0020089967,
0.0402513,
-0.015686588,
0.023065994,
-0.0087353885
] |
Much better! That looks more like what we want. In short, when you notice that the agent struggles to
correctly map your task to the correct tools, try looking up the most pertinent keywords of the tool's name
and description and try refining your task request with it.
Customizing the tool descriptions
As we've seen before the agent has access to each of the tools' names and descriptions. The base tools
should have very precise names and descriptions, however, you might find that it could help to change the
the description or name of a tool for your specific use case. This might become especially important
when you've added multiple tools that are very similar or if you want to use your agent only for a certain
domain, e.g. image generation and transformations.
A common problem is that the agent confuses image generation with image transformation/modification when
used a lot for image generation tasks, e.g.
py
agent.run("Make an image of a house and a car", return_code=True)
returns
``text
==Explanation from the agent==
I will use the following toolsimage_generatorto generate an image of a house andimage_transformer` to transform the image of a car into the image of a house.
==Code generated by the agent==
house_image = image_generator(prompt="A house")
car_image = image_generator(prompt="A car")
house_car_image = image_transformer(image=car_image, prompt="A house") |
[
0.037045218,
-0.0224389,
-0.027646119,
-0.012822229,
-0.024208484,
-0.07844187,
-0.005334134,
0.042266943,
-0.015723186,
0.050766744,
-0.025310848,
-0.024948228,
0.03231666,
0.004177378,
0.0129745295,
-0.029473722,
0.034028225,
-0.020538775,
-0.03446337,
-0.009326576,
0.017608808,
-0.00006657469,
-0.048184894,
-0.042470008,
-0.039482024,
-0.020872384,
0.003992442,
0.007897855,
0.053261567,
0.022163311,
-0.038727775,
-0.00021485212,
-0.02079986,
-0.009877758,
-0.0023588405,
-0.02013264,
0.041860808,
-0.032635763,
-0.03373813,
-0.031997554,
0.04099052,
-0.022293853,
0.016201844,
-0.06544559,
-0.09021976,
-0.004104854,
-0.020567784,
-0.004590764,
0.0021503342,
-0.033419024,
0.0050766743,
0.027123947,
-0.0059469617,
0.00015728625,
-0.03016995,
-0.03101123,
-0.013808555,
0.004195509,
-0.024005419,
0.0027704139,
-0.005029534,
0.042731095,
0.010298396,
-0.059382588,
-0.013373411,
0.042005856,
-0.015491109,
-0.005602473,
-0.017072132,
-0.0020089126,
-0.037451353,
0.02592005,
-0.013199354,
0.003992442,
-0.02288855,
0.018043952,
0.02731251,
-0.042382978,
-0.022279348,
0.045545023,
-0.003163856,
0.044848792,
0.013663507,
-0.014504785,
0.00081136136,
-0.021046443,
0.03692918,
-0.003475709,
-0.0038292632,
-0.008710123,
-0.013823059,
0.021322032,
-0.008013893,
0.044065535,
0.04905518,
0.06115217,
-0.0003102664,
0.034637425,
0.0154621005,
0.006160907,
0.038582727,
0.06747626,
-0.030924201,
0.01070453,
-0.006693958,
-0.002572786,
0.029879855,
-0.013728778,
-0.015984273,
0.005533575,
0.05117288,
-0.029604265,
-0.010240378,
-0.027602604,
-0.031185286,
0.077571586,
0.038089562,
-0.008347503,
-0.056829743,
-0.024716152,
0.009812486,
-0.051695053,
-0.025238324,
-0.04844598,
0.00076422084,
-0.0122783,
0.031417362,
0.033999216,
-0.016941588,
-0.010015554,
0.001958146,
0.012053476,
0.015563633,
0.041918825,
-0.02422299,
0.015665168,
-0.022366377,
0.016970597,
0.046821445,
-0.02625366,
0.0049461313,
-0.015360567,
-0.017420245,
0.085984364,
0.010675522,
-0.03481148,
0.0047757,
0.0026561886,
-0.07293005,
0.025325354,
-0.036581066,
0.0086303465,
-0.014744113,
0.02019066,
-0.022685483,
-0.014823889,
-0.02346874,
0.014388746,
-0.016607977,
0.015055967,
0.025673468,
0.04014924,
-0.027341519,
0.06532955,
-0.006440124,
0.03434733,
-0.04583512,
-0.009623924,
-0.026717812,
-0.00937009,
0.02310612,
0.009174276,
-0.0035155972,
-0.0033125302,
0.061500285,
0.004801084,
0.038147584,
0.029067587,
-0.004721307,
0.03901787,
-0.048736077,
-0.02388938,
-0.019146316,
0.003220062,
0.024962734,
-0.009145266,
0.03544969,
0.019030277,
0.0050766743,
-0.01230731,
0.03231666,
0.028632443,
-0.036813144,
0.058164187,
0.03443436,
0.07176967,
-0.046067193,
0.00976172,
0.017753856,
-0.05317454,
-0.017478265,
0.03713225,
-0.006639565,
0.0074844686,
-0.012981782,
-0.01124846,
-0.00069215015,
0.06527153,
-0.035130586,
0.04038132,
0.038031545,
0.012147757,
-0.06933287,
0.008804404,
0.02525283,
-0.0040432084,
0.009565906,
0.03292586,
0.00827498,
0.02261296,
0.02858893,
0.020219669,
0.04450068,
0.00912351,
-0.00806466,
-0.022511424,
-0.009841496,
0.013598235,
0.0070384466,
0.04502285,
0.0071109706,
0.027022414,
0.031968545,
0.048329942,
-0.0034902138,
0.003143912,
0.013910088,
0.010864084,
-0.018943248,
0.010813316,
-0.010588492,
0.061442267,
0.029734807,
0.03156241,
0.015650662,
0.00991402,
0.0048736073,
-0.004884486,
-0.022569444,
-0.00223555,
-0.033331994,
0.039249945,
0.02958976,
-0.0021575866,
-0.024774171,
-0.02249692,
0.009565906,
0.041193586,
-0.04957735,
-0.042034864,
0.030750142,
0.0114515275,
-0.0146425795,
-0.005334134,
0.0524493,
0.020408232,
-0.0064437506,
0.009138014,
-0.029169122,
-0.05636559,
-0.0154621005,
-0.018624144,
-0.074322514,
0.01615833,
-0.035362665,
-0.021684652,
-0.008572328,
-0.034608416,
0.027791167,
-0.046038184,
-0.020640308,
-0.01343143,
-0.009362838,
0.031968545,
0.004086723,
0.0034158768,
-0.04162873,
0.008746385,
-0.02261296,
0.04389148,
-0.033477042,
-0.042499017,
-0.036058895,
-0.027849186,
0.005083927,
-0.0014840207,
0.027994234,
-0.035275634,
-0.01882721,
-0.019653983,
-0.046473328,
-0.0052072178,
-0.03855372,
0.014671589,
-0.00713998,
-0.009384596,
-0.00079912296,
0.004674167,
0.054160863,
0.05787409,
-0.038698766,
0.013416925,
-0.01916082,
0.05163703,
-0.034579407,
0.056046486,
0.011299227,
0.0005335041,
-0.029357683,
-0.019334877,
0.029415702,
0.008644852,
-0.004380445,
-0.022627464,
-0.024759667,
0.04896815,
-0.00857958,
-0.073684305,
0.008340251,
-0.02346874,
-0.012256543,
-0.031939536,
-0.03640701,
0.041309625,
0.04574809,
0.039133906,
-0.014635327,
-0.012271048,
-0.031388354,
0.024788676,
0.007934117,
-0.01654996,
0.03434733,
0.0041121063,
-0.0066649485,
0.022656472,
0.05178208,
-0.057554983,
0.0039453013,
-0.02249692,
0.04035231,
-0.0038147583,
-0.0079631265,
0.0072777756,
0.017275197,
0.035101578,
-0.055495303,
-0.01176338,
0.01161108,
0.016477436,
0.04171576,
0.059382588,
-0.033215955,
-0.02458561,
-0.03170746,
-0.029763818,
-0.016172834,
0.0009799795,
0.055669364,
0.024121456,
0.015868234,
-0.0037567392,
-0.051491983,
0.004543624,
-0.016956093,
-0.063240856,
0.036523048,
0.021974748,
0.0512309,
-0.015026957,
-0.011966447,
0.0077310503,
-0.027457556,
0.009312072,
0.00057339226,
0.029705798,
-0.010994626,
0.02194574,
0.016332388,
-0.0034086243,
0.010204116,
-0.010080826,
0.00613915,
-0.030547075,
-0.03629097,
-0.030808162,
0.028733978,
0.031939536,
0.019639477,
0.022018263,
0.015491109,
-0.019697497,
0.0019327626,
-0.013235616,
-0.026964394,
0.029517235,
-0.01916082,
0.04148368,
-0.022018263,
-0.007926865,
-0.027268995,
-0.008383765,
0.005054917,
0.025760496,
0.026732318,
0.021031937,
-0.018218009,
-0.00513832,
0.014867404,
-0.006860763,
-0.03301289,
-0.008543318,
0.023961904,
0.013714273,
0.033999216,
-0.03484049,
-0.0033179694,
-0.045457993,
-0.01209699,
0.027907206,
-0.0066323127,
-0.006026738,
0.009341081,
-0.0036787759,
-0.015940757,
0.043572374,
0.0418318,
-0.0025419635,
0.0077963215,
-0.034086242,
0.000042664462,
0.024121456,
-0.030024903,
0.02177168,
-0.019436412,
-0.002922714,
0.039424002,
0.017594304,
0.006142776,
-0.045138888,
0.015012451,
-0.029647779,
0.0067954916,
-0.020567784,
0.03237468,
0.007158111,
-0.0066685746,
-0.023004588,
0.050592687,
-0.015897244,
-0.026790336,
-0.008079165,
0.029821837,
-0.060978115,
-0.040758442,
0.015810214,
0.0067809867,
-0.007832584,
-0.004162873,
0.0101170875,
-0.0034720828,
0.041367646,
-0.0006182664,
-0.03823461,
0.0030931453,
-0.01343143,
0.011335489,
0.014562803,
-0.015012451,
0.00739744,
-0.06341492,
0.02622465,
0.008057408,
-0.0068680155,
-0.009312072,
-0.06121019,
0.0076150117,
0.028327843,
-0.018986763,
-0.0012691686,
0.032229632,
-0.01161108,
0.028675959,
-0.037161257,
-0.009406352,
-0.034057233,
0.0007225196,
0.022932064,
0.05065071,
0.0064836387,
0.038785793,
-0.033883177,
-0.034724455,
0.014454017,
-0.050795756,
-0.008253222,
-0.04502285,
-0.014178427,
0.008985714,
-0.0073938137,
-0.02328018,
0.023367207,
-0.014366989,
0.009225043,
0.041164577,
0.004492857,
0.03295487,
-0.060804054,
0.0016127507,
0.08319944,
-0.024252,
-0.10083726,
-0.0218297,
-0.004627026,
0.014809385,
0.010044564,
0.040439337,
-0.035217617,
-0.025006248,
-0.07310411,
0.040062215,
-0.03028599,
-0.018189,
0.002329831,
-0.02967679,
-0.014599065,
0.015142995,
0.05175307,
-0.0497224,
0.008391018,
-0.016448425,
0.04708253,
-0.04113557,
-0.014171175,
-0.022874044,
0.00629145,
-0.021002928,
0.040613394,
-0.0014441325,
-0.016709512,
0.004550876,
0.0010180546,
-0.00083447836,
0.019233344,
-0.01721718,
-0.020379221,
-0.039859146,
-0.0037821224,
-0.012561143,
0.041889817,
0.0035065317,
0.0156071475,
-0.0013371598,
0.037248287,
-0.0047974573,
-0.019334877,
-0.017333217,
-0.036436018,
0.032838833,
-0.03164944,
-0.013873826,
-0.036581066,
0.039394993,
0.008659356,
0.011241208,
-0.028675959,
0.030982219,
-0.07908008,
-0.08383765,
0.023048103,
-0.034057233,
-0.024077943,
-0.0092975665,
-0.0010098956,
0.06295077,
-0.048329942,
-0.0035155972,
0.062196516,
0.0026308054,
0.024339028,
-0.05038962,
0.012205776,
0.02519481,
-0.015737692,
-0.007433702,
0.03240369,
-0.04931627,
0.0041157324,
-0.039278954,
-0.027210975,
-0.030140942,
-0.0012999913,
0.0418318,
-0.0382056,
0.03431832,
-0.01579571,
-0.05987575,
-0.018290533,
0.018812705,
0.04969339,
0.03292586,
0.035826817,
0.031359345,
0.026442222,
0.016288873,
-0.0020995676,
-0.022583948,
-0.04235397,
0.04992547,
0.0039851894,
-0.028908035,
0.020524269,
0.055524316,
-0.051927127,
-0.05105684,
-0.012800472,
0.026906375,
-0.040729433,
-0.049374286,
-0.005903447,
-0.015708681,
-0.024397047,
0.008572328,
0.037219275,
0.023715323,
0.0018511731,
0.030082922,
-0.016303377,
-0.030605095,
0.0033959327,
0.023787847,
-0.053957798,
-0.028487395,
-0.07403242,
-0.014475775,
-0.024411552,
-0.009021976,
0.04168675,
0.040584385,
-0.005479182,
-0.008978462,
-0.018218009,
0.058918435,
-0.022569444,
0.051462974,
0.027762158,
-0.055350255,
-0.044819783,
-0.0064038625,
0.0145700555,
-0.0020995676,
-0.02900957,
-0.0023008215,
-0.019189829,
0.016578969,
0.01982804,
-0.019334877,
-0.046589367,
-0.003181987,
-0.042266943,
0.029488226,
-0.017434752,
0.011545808,
0.006661322,
-0.001296365,
-0.008746385,
0.00020102724,
0.014526541,
0.02127852,
-0.030460047,
-0.041048538,
-0.05378374,
-0.013416925,
-0.029647779,
-0.024788676,
0.01276421,
-0.028966054,
-0.0021122592,
0.004543624,
-0.029821837,
-0.019363888,
-0.041048538,
0.038379658,
-0.027631614,
-0.022047272,
-0.0101170875,
-0.038060553,
0.016303377,
0.011574818,
-0.049403295,
0.016724017,
0.035362665,
-0.011139674,
0.048097864,
-0.044848792,
-0.009268557,
0.01261191,
0.0005248919,
0.02822631,
-0.028240815,
0.019712001,
0.045951158,
0.004739438,
-0.0685206,
-0.03411525,
0.004844598,
0.019088296,
0.002088689,
-0.0036225698,
-0.0017868081,
0.042470008,
0.014301717,
-0.0015647036,
0.0145700555,
0.011509546,
0.021699157,
-0.008956704,
0.012590153,
-0.004010573,
-0.0038836559,
-0.024774171,
-0.011270218,
0.03423129,
-0.018899733,
0.004543624,
0.0036026258,
-0.03101123,
-0.04960636,
0.0035155972,
0.00960942,
0.01230731,
0.030111933,
0.020727336,
0.015360567,
-0.0055408278,
-0.023004588,
0.019813536,
-0.056162525,
-0.0114152655,
0.012655424,
-0.054189876,
0.0069876797,
-0.028704967,
0.03443436,
-0.000045695735,
0.0054646777,
-0.016840054,
0.004369566,
0.0033741754,
-0.013453187,
0.037074227,
-0.09381694,
-0.016071301,
0.013518459,
0.028777491,
0.030024903,
-0.067360215,
0.033564072,
0.035159595,
0.0026489361,
-0.031069247,
-0.04629927,
0.014628075,
-0.0043151733,
0.027152956,
0.00003691354,
0.016738521,
-0.046183232,
0.018885229,
-0.06190642,
0.005254358,
-0.014091398,
0.0056496137,
0.045922145,
-0.0064981435,
0.011473284,
0.064459264,
0.027805671,
-0.00529062,
0.0113790035,
0.034637425,
0.040526368,
-0.02692088,
0.005203591,
-0.0075932546,
0.0034158768,
0.037973527,
0.016898073,
0.027472062,
0.027747652,
0.04714055,
-0.0067809867,
0.005602473,
0.016404912,
0.009304819,
-0.016346892,
-0.012923763,
0.0133081395,
0.030692123,
-0.039859146,
0.005772904,
0.002977107,
0.0077020405,
-0.01715916,
-0.030866181,
-0.043108217,
0.011980952,
0.030082922,
-0.026239155,
-0.004126611,
-0.050679717,
0.059991788,
-0.0037893748,
-0.028443882,
-0.024948228,
0.042499017,
0.055611342,
0.016869064,
0.045428984,
0.019088296,
0.031069247,
-0.007103718,
0.0030260605,
0.00256916,
0.00498602,
0.021380052,
-0.04569007,
-0.005163703,
0.010740792,
-0.0025383371,
-0.009341081,
-0.0010769803,
-0.020393727,
0.019204335,
-0.04371742,
0.047981825,
-0.025760496,
0.02225034,
0.031765476,
-0.0107480455,
-0.034898512,
-0.0044457163,
-0.0031130894,
0.04026528,
0.013489449,
0.06678002,
0.0036080652,
0.06950693,
0.004757569,
-0.03695819,
0.040584385,
0.023454236,
-0.01091485,
-0.042470008,
0.05575639,
-0.038698766,
0.0178844,
-0.047546685,
-0.048213903,
0.03028599,
0.0457771,
-0.01721718,
-0.0045943903,
0.016042292,
0.028704967,
-0.05584342,
-0.013532964,
0.045341957,
0.02085788,
0.0006685799,
0.006106514,
-0.009725458,
-0.05770003,
0.013293635,
-0.028182795,
0.026543755,
-0.0008471701,
-0.0221343,
-0.016840054,
-0.030402027,
0.0027051424,
-0.024048932,
-0.033883177,
0.013271878,
0.0245566,
0.04029429,
0.004155621,
0.024832191,
0.00960942,
-0.005004151,
0.032548737,
0.046009175,
0.0018602386,
0.08128481,
0.06997108,
-0.023323692,
-0.009834244,
-0.00028624287,
-0.0005706726,
-0.012481367,
0.02883551,
0.013373411,
-0.0157667,
-0.018653153,
-0.015041461,
-0.031214295,
0.060804054,
-0.031475384,
-0.025093276,
-0.051375944,
-0.00547193,
-0.046096206,
-0.041048538,
-0.0442686,
0.048707064,
-0.02288855,
0.008470794,
0.013953603,
-0.0557854,
0.2513389,
0.056249555,
0.0074699637,
0.048155885,
0.05233326,
0.10286793,
0.022163311,
-0.023294684,
0.008507056,
-0.074090436,
0.0020252306,
-0.017362228,
-0.011233956,
0.015650662,
-0.0037893748,
-0.0152735375,
-0.03559474,
0.0038981608,
-0.010073572,
-0.0070311944,
-0.035159595,
0.005885316,
0.0030061165,
0.08227114,
0.012184019,
0.016883569,
0.031185286,
-0.040671416,
0.00860859,
-0.042092886,
0.0155346235,
-0.011647342,
0.023425227,
-0.009413605,
-0.028458387,
0.058715366,
0.004083097,
-0.05511818,
0.004924374,
-0.001175794,
-0.009754468,
-0.009188781,
-0.00027717737,
-0.023903884,
-0.014316222,
0.056916773,
0.0018022194,
0.020727336,
0.05050566,
-0.09056787,
0.041048538,
-0.032084584,
0.03884381,
-0.020712832,
-0.001451385,
-0.0019744637,
-0.01615833,
-0.026326183,
-0.009312072,
0.0014568242,
0.004286164,
-0.0028991438,
-0.005363144,
0.024846695,
-0.04377544,
0.027747652,
-0.0020125387,
0.029531742,
-0.021626633,
-0.006585172,
0.01921884,
0.0077020405,
0.029212635,
-0.02225034,
0.005334134,
0.004949758,
0.035304643,
0.046763424,
0.060978115,
-0.024063436,
-0.019421905,
-0.033854168,
-0.07310411,
-0.015404081,
0.029024074,
0.012706191,
-0.034869503,
0.01612932,
0.0030605095,
0.028400367,
-0.012822229,
0.032606754,
-0.017942417,
0.025658963,
-0.013670759
] |
which is probably not exactly what we want here. It seems like the agent has a difficult time
to understand the difference between image_generator and image_transformer and often uses the two together.
We can help the agent here by changing the tool name and description of image_transformer. Let's instead call it modifier
to disassociate it a bit from "image" and "prompt":
py
agent.toolbox["modifier"] = agent.toolbox.pop("image_transformer")
agent.toolbox["modifier"].description = agent.toolbox["modifier"].description.replace(
"transforms an image according to a prompt", "modifies an image"
)
Now "modify" is a strong cue to use the new image processor which should help with the above prompt. Let's run it again.
py
agent.run("Make an image of a house and a car", return_code=True)
Now we're getting:
``text
==Explanation from the agent==
I will use the following tools:image_generatorto generate an image of a house, thenimage_generator` to generate an image of a car.
==Code generated by the agent==
house_image = image_generator(prompt="A house")
car_image = image_generator(prompt="A car") |
[
0.030732336,
-0.024633106,
-0.02681438,
-0.0024591426,
-0.030176597,
-0.07296846,
-0.0056824256,
0.023007572,
0.041680384,
0.04045776,
-0.013212682,
-0.014213011,
0.027161716,
-0.0037547078,
0.0019068775,
-0.0043382333,
0.019881543,
0.009065484,
-0.013157108,
0.0028689997,
0.012177618,
0.026272535,
-0.04751564,
-0.05301745,
-0.04584842,
0.026508724,
0.017144531,
0.00071117154,
0.06880042,
0.032788567,
-0.031927172,
-0.022701915,
-0.0057484196,
-0.020826299,
-0.020326134,
-0.027397905,
0.043625467,
-0.0040360503,
-0.033788897,
-0.040680055,
0.0611868,
-0.037706852,
0.035622835,
-0.06452123,
-0.06591058,
-0.014991044,
0.038846117,
-0.05362876,
-0.00724544,
-0.032705206,
0.019770395,
0.010281161,
0.006269424,
-0.031899385,
-0.019575886,
-0.020604003,
0.021868307,
-0.0033761112,
-0.017158424,
-0.0083360765,
0.020687364,
0.026036346,
-0.007328801,
-0.04651531,
-0.013705899,
0.03023217,
-0.028731678,
-0.021145849,
-0.0029019967,
-0.005411503,
-0.052684005,
0.044097845,
-0.044014484,
-0.019464739,
-0.014025449,
-0.0141643835,
0.011851123,
-0.027592413,
-0.01846441,
0.017283466,
0.002396622,
0.03239955,
-0.019937117,
-0.0023375747,
-0.016255349,
0.008120728,
0.03592849,
-0.003890169,
0.027925856,
-0.020131625,
-0.0014683652,
0.02220175,
0.009357246,
0.021409823,
0.019492526,
0.06468795,
0.039929807,
0.041402515,
-0.004088151,
-0.01606084,
0.019714821,
0.0686337,
-0.06046434,
0.03167709,
-0.032093894,
-0.0013285623,
-0.000021382904,
-0.012969546,
0.032816354,
-0.038790543,
0.034011193,
-0.0048557646,
-0.021646012,
0.016727727,
-0.049571868,
0.07307961,
0.031288076,
0.014101863,
-0.04451465,
0.0012790668,
0.024549745,
-0.015199446,
-0.014866004,
-0.023868967,
0.019756502,
-0.011003621,
0.019450845,
0.047904655,
-0.009697636,
-0.018186541,
-0.010642392,
-0.008461118,
0.022743596,
0.06635517,
0.010545137,
0.025869625,
0.03114914,
0.035067096,
0.015894119,
-0.035539474,
-0.013636432,
-0.028370447,
0.009211365,
0.089696184,
-0.0025598702,
-0.01633871,
0.0085722655,
-0.0129834395,
-0.044570222,
0.054128923,
-0.007349641,
0.016672153,
0.0079956865,
0.007453842,
-0.030482253,
-0.03042668,
-0.012413807,
0.026953315,
0.0065195067,
0.008697307,
0.0089126555,
0.039651938,
-0.042819645,
0.029954301,
-0.012531902,
0.04181932,
-0.026480937,
-0.021507077,
0.0051787877,
-0.017394613,
0.044570222,
0.040429972,
0.0038450153,
0.030621188,
0.042513993,
0.042513993,
0.037956934,
0.009919931,
0.021965561,
0.028953973,
-0.040068742,
-0.015991373,
-0.0050815335,
0.026203068,
0.009225259,
-0.0044459077,
0.02798143,
0.026355896,
0.0049217585,
-0.03826259,
-0.000987304,
0.01697781,
-0.025174951,
0.052517284,
0.014657602,
0.030982418,
-0.0043972805,
0.034872588,
0.026550405,
-0.04740449,
-0.024216302,
0.01986765,
0.0036192467,
0.014351945,
-0.026314216,
-0.01561625,
-0.024271876,
0.03412234,
-0.040068742,
0.01194143,
0.032816354,
0.027411798,
-0.038651608,
-0.04304194,
0.040513333,
-0.033649962,
0.0032076528,
0.03312201,
0.024827614,
0.020770725,
0.03692882,
0.0006816479,
0.033872258,
-0.002096176,
-0.021284783,
0.009947718,
0.008211035,
0.025605649,
-0.013837887,
-0.011851123,
0.0055886446,
0.031065779,
0.0022698443,
0.057296634,
0.017255679,
-0.0033830577,
0.036150787,
0.023549417,
-0.03459472,
0.019242443,
0.005116267,
0.058908276,
-0.0036018798,
0.04276407,
-0.007808125,
0.0068147425,
-0.025563968,
0.020437282,
-0.010697965,
0.0045084283,
-0.044181205,
0.0486549,
0.024299663,
0.006529927,
-0.07141239,
-0.021604331,
0.0038866957,
0.030259958,
-0.066855334,
-0.04712662,
-0.00619301,
0.04017989,
0.008613946,
-0.01642207,
0.021687692,
0.0006560319,
-0.02099302,
0.020465069,
-0.012719464,
-0.032149468,
-0.025063803,
-0.035289392,
-0.057630077,
-0.0013980295,
-0.03078791,
-0.009419766,
0.00044003196,
-0.058074668,
0.025563968,
-0.049071703,
-0.030121023,
-0.0075372024,
0.010913313,
0.03139922,
0.013754526,
-0.00057918363,
-0.039651938,
0.009107164,
-0.017561335,
0.022854744,
-0.012038684,
-0.036234148,
-0.023618884,
-0.00873204,
0.008461118,
-0.008127674,
0.016880555,
0.017519655,
-0.01729736,
-0.056101795,
-0.021507077,
-0.015505102,
-0.0028446862,
-0.026355896,
-0.0094128195,
0.026883848,
0.01569961,
0.0077664447,
0.058908276,
0.015046618,
-0.04712662,
0.031037992,
-0.017144531,
-0.009572594,
-0.045098174,
0.07674748,
0.03348324,
-0.030315531,
0.0060749156,
-0.023410482,
0.038846117,
0.012413807,
0.00040616666,
-0.0022142704,
-0.052600645,
0.03692882,
-0.011489892,
-0.07919273,
-0.011635774,
-0.022771383,
-0.020756831,
0.0093086185,
-0.046459734,
0.021618225,
0.012865345,
0.03359439,
-0.026578192,
-0.013525284,
-0.008245769,
0.021409823,
0.043264236,
-0.04587621,
0.024758147,
0.030176597,
-0.037401196,
-0.0030426679,
0.06157582,
-0.05607401,
0.02641147,
0.009822677,
0.0052239415,
0.015560676,
-0.026869955,
0.004831451,
0.02700889,
0.058185816,
-0.0841388,
-0.024827614,
0.011566306,
-0.0037512344,
0.048404817,
0.04776572,
-0.024521958,
-0.003462945,
-0.028676104,
-0.038762756,
0.008801508,
-0.0064778263,
0.07163469,
-0.010829953,
0.013754526,
0.009614275,
-0.03367775,
0.0075927763,
-0.018130967,
-0.04687654,
0.021659905,
0.012309606,
0.043097515,
-0.044347927,
0.016727727,
0.037595704,
-0.0017219208,
0.04548719,
0.0011514206,
0.029426351,
-0.014067129,
0.006259004,
-0.010760485,
0.0020805458,
0.03276078,
-0.028439915,
-0.029787581,
-0.029676434,
-0.030648975,
-0.037929147,
0.025272205,
0.059464015,
0.036234148,
0.0010220377,
0.031288076,
-0.018283796,
-0.0003490732,
-0.0024226722,
0.009086324,
0.025174951,
-0.036901034,
0.037067752,
-0.006099229,
-0.034344636,
-0.0050745867,
0.0011766024,
0.020173306,
0.004515375,
0.0055018105,
0.0028273193,
-0.022813063,
-0.00097427896,
0.003508099,
-0.009565648,
-0.036373083,
-0.048599325,
0.01234434,
0.053350892,
0.029732008,
-0.04540383,
-0.038068082,
-0.050210968,
-0.0052795154,
0.023549417,
-0.0018843006,
0.009134951,
-0.03212168,
-0.055740565,
-0.004831451,
0.009899091,
0.06668861,
-0.009301672,
0.0018026766,
-0.056629747,
0.0134558175,
0.02216007,
-0.009857411,
0.024299663,
-0.025466714,
-0.005922088,
-0.008884869,
0.04287522,
-0.0011505523,
-0.023146506,
0.021868307,
-0.025202738,
0.011753868,
-0.0049113384,
0.020826299,
-0.010371469,
-0.022048922,
-0.016533218,
0.03520603,
0.0019832915,
0.0066132876,
0.0075649894,
0.04532047,
-0.03440021,
-0.009336405,
-0.0009951191,
-0.0056928457,
-0.009002963,
0.019839862,
0.03431685,
0.0033535343,
0.00091089006,
-0.011364851,
-0.014421413,
0.038873903,
-0.03312201,
0.00760667,
-0.013240469,
-0.0055573843,
0.028787252,
-0.04946072,
0.030732336,
0.027314544,
-0.025980772,
-0.024827614,
-0.031510368,
0.02581405,
0.039151773,
-0.02898176,
0.010559031,
0.0031051885,
-0.027231183,
0.038790543,
-0.037317835,
-0.032066107,
-0.012052578,
0.036650952,
0.0045501087,
0.035817344,
-0.0011140819,
0.0076136165,
-0.010677124,
-0.059352867,
-0.0024886662,
-0.04804359,
0.014893791,
-0.05471245,
0.004650836,
0.007551096,
0.017033383,
-0.06663304,
0.027425691,
-0.009982452,
-0.015852438,
0.045653913,
0.016574899,
0.018533876,
-0.044736944,
-0.06668861,
0.06518812,
0.0019138242,
-0.0877511,
-0.0261336,
0.021020807,
-0.008495851,
0.03873497,
0.01854777,
-0.05398999,
-0.011635774,
-0.09019635,
0.005981135,
-0.053600974,
-0.025119377,
-0.018964574,
-0.03376111,
0.027092248,
0.015421742,
0.036623165,
-0.022104496,
-0.046181865,
-0.044848092,
0.040874563,
-0.032538485,
-0.030704549,
0.039651938,
0.01565793,
-0.010975834,
0.037401196,
0.0002859014,
-0.017811418,
0.012177618,
0.02477204,
0.01733904,
0.03898505,
-0.022993678,
-0.04796023,
-0.032927502,
0.0034438416,
0.0041680383,
0.028356554,
-0.019006254,
-0.010468723,
-0.041680384,
0.026216961,
-0.024494171,
-0.000725065,
-0.02821762,
-0.04776572,
0.03701218,
-0.019534206,
0.00289505,
-0.04804359,
0.021326464,
0.03042668,
0.042708497,
-0.028759465,
0.025841838,
-0.049405146,
-0.013462764,
-0.02870389,
-0.04796023,
-0.015004938,
-0.035539474,
-0.011080035,
0.04476473,
-0.057296634,
0.025577862,
0.052572858,
-0.0195481,
0.028175939,
-0.013108481,
-0.015727397,
0.011232863,
0.0012573582,
-0.018228222,
0.04106907,
-0.01963146,
-0.01922855,
-0.044431288,
-0.010427043,
-0.03312201,
0.02925963,
0.04548719,
-0.05273958,
0.023063146,
0.012358233,
-0.03456693,
-0.03937407,
0.034177914,
-0.0015986164,
0.018978467,
0.0005904721,
0.06513254,
-0.021687692,
0.005029433,
-0.01187891,
0.0006907655,
-0.051072363,
0.048627112,
-0.013212682,
-0.02730065,
0.022215644,
0.06057549,
-0.050072033,
-0.058741555,
-0.010503457,
0.047737934,
-0.02388286,
-0.05851926,
-0.00001740753,
-0.048154738,
-0.031065779,
0.002851633,
0.03701218,
0.01674162,
0.036373083,
0.02054843,
0.012059525,
-0.011420425,
-0.011684401,
0.05246171,
-0.043097515,
-0.015088298,
-0.04118022,
0.005640745,
0.0056650587,
-0.010531244,
0.060242046,
-0.0060471287,
-0.021326464,
0.0009951191,
-0.022632448,
0.038790543,
-0.02573069,
0.016936129,
0.039123986,
-0.065299265,
-0.04784908,
-0.029898727,
0.03295529,
-0.0032024428,
0.01485211,
-0.017603016,
0.0013190105,
0.010816059,
0.024897082,
-0.009669849,
-0.046737604,
-0.03448357,
-0.05326753,
0.011913643,
-0.0073357476,
-0.032427337,
-0.03023217,
0.009190525,
0.019159082,
-0.019298017,
-0.006286791,
0.022493513,
-0.008002633,
-0.03312201,
-0.021326464,
0.010364522,
0.001384136,
0.0054948637,
0.0014032396,
-0.0058248336,
-0.016408177,
-0.012518008,
-0.04515375,
-0.015852438,
-0.013893461,
0.072301574,
-0.044709157,
-0.00724544,
-0.024716467,
-0.023257654,
-0.007780338,
-0.007933166,
-0.03962415,
0.019464739,
0.012573582,
-0.057630077,
0.05265622,
-0.029426351,
0.024466384,
0.0009074167,
0.014740963,
0.038846117,
-0.01697781,
0.0055608577,
0.016185882,
0.03376111,
-0.03692882,
-0.0007576278,
0.005744946,
0.015324487,
-0.010753538,
-0.012073418,
0.0015126505,
0.040485546,
0.009023803,
0.036789887,
0.024952656,
0.0018651972,
0.0057310527,
-0.0120108975,
0.02853717,
-0.008982123,
0.0020492855,
-0.050599985,
0.020145519,
0.026633766,
-0.03312201,
0.008725094,
-0.00013893461,
-0.025994666,
-0.029481925,
0.023007572,
-0.022993678,
0.039513003,
0.036595378,
0.0348448,
0.0039353226,
-0.014421413,
-0.0139281945,
0.014727069,
-0.07335748,
-0.042013828,
0.005581698,
-0.02725897,
-0.0105937645,
-0.0072801737,
-0.0018217801,
0.004230559,
-0.043014154,
-0.018700598,
0.022104496,
0.018269902,
-0.0008197142,
0.028648317,
-0.06718878,
-0.03239955,
0.016644366,
0.04990531,
-0.031538155,
-0.0792483,
0.008419437,
0.03431685,
-0.0057171592,
-0.020465069,
-0.059908602,
0.031010205,
0.0069085234,
0.019075722,
-0.019714821,
0.027606307,
-0.039040625,
0.02609192,
-0.009440606,
0.027717454,
-0.011170343,
0.034427997,
0.038401525,
-0.014838217,
-0.014629815,
0.052211627,
0.029120695,
-0.026703233,
0.04415342,
0.01601916,
0.036011852,
-0.019492526,
0.016630473,
0.011177289,
0.007849805,
0.032343976,
0.024521958,
0.008551425,
0.038318165,
0.079859614,
-0.03078791,
-0.014074076,
0.02388286,
0.008794561,
-0.029315203,
-0.017241785,
-0.0030009877,
0.0684114,
-0.043292023,
-0.005526124,
-0.016950022,
-0.0444035,
-0.00805126,
-0.010760485,
-0.045348257,
0.03881833,
-0.030760122,
-0.006856423,
-0.01899236,
-0.009128004,
0.01958978,
0.01770027,
0.022646341,
-0.031204714,
0.03167709,
0.053712122,
0.015713504,
0.03754013,
0.015588463,
0.028148152,
-0.009628168,
0.00762751,
0.019450845,
-0.01270557,
0.005314249,
-0.014282478,
-0.017964246,
0.0444035,
0.0073426943,
-0.0087112,
-0.024827614,
-0.052044906,
0.006210377,
-0.04145809,
0.031538155,
-0.06624402,
-0.006408359,
0.011371798,
0.009489234,
-0.018700598,
-0.019381378,
0.00015293661,
0.025466714,
0.00900991,
0.035733983,
0.0035046255,
0.06813353,
0.07474682,
0.021951668,
0.006571607,
0.045376044,
-0.036428656,
-0.033622175,
0.008127674,
-0.033649962,
0.01121897,
-0.052406136,
-0.050961215,
0.010628498,
0.039151773,
-0.011482946,
0.0014336315,
-0.03737341,
0.07952617,
-0.061242376,
-0.017839205,
0.024758147,
0.016324816,
0.019492526,
0.002040602,
-0.014351945,
-0.0686337,
-0.0006230349,
-0.033066437,
0.054184496,
0.018325476,
-0.05298966,
-0.018492198,
-0.024549745,
-0.017769737,
-0.017561335,
-0.020340027,
0.0068147425,
0.009857411,
-0.00217259,
0.041152433,
0.01481043,
0.0015456475,
0.0076344567,
0.014838217,
0.037706852,
0.036706526,
0.062409427,
0.040207677,
0.0059012477,
-0.0014397099,
-0.005376769,
0.027745241,
-0.006748749,
0.025258312,
-0.0008427253,
0.000059427108,
-0.044542436,
-0.014657602,
0.0048627113,
0.051878184,
-0.008752881,
-0.014991044,
-0.03312201,
-0.0054080295,
-0.056852043,
0.0061513297,
-0.025619542,
0.027967537,
0.012566635,
-0.001529149,
0.027203396,
-0.040124316,
0.22829735,
0.038234804,
0.003053088,
0.058130242,
0.019895436,
0.044903666,
0.043653253,
-0.014185224,
0.018686704,
-0.0673555,
0.011851123,
0.007273227,
0.020423388,
0.013212682,
-0.01633871,
0.0076691904,
-0.029370777,
-0.017213998,
-0.0020944392,
-0.040568907,
-0.035984065,
0.02275749,
0.00401521,
0.050766706,
-0.012927866,
-0.022299005,
0.022729702,
-0.028509382,
-0.01192059,
-0.036123,
0.025758477,
-0.02054843,
0.017047277,
-0.02256298,
-0.046737604,
0.054267857,
0.029787581,
-0.04126358,
-0.0030148812,
0.040235464,
-0.016950022,
-0.0036331401,
-0.03790136,
-0.015908012,
-0.02031224,
0.054406792,
0.0075927763,
0.005394136,
0.037234474,
-0.10025521,
0.04073563,
-0.027870283,
0.061075654,
-0.013296043,
-0.024077369,
-0.018811746,
-0.010788272,
-0.003917956,
-0.008857082,
-0.017853098,
0.036789887,
-0.010065813,
-0.012976493,
0.056824256,
-0.037567917,
-0.0000047487415,
0.03990202,
0.0053594024,
0.008641733,
-0.00805126,
-0.0076414035,
0.013976822,
0.014879897,
-0.006397939,
0.026897741,
0.0050085927,
0.0045014815,
0.06824468,
0.067022055,
-0.012768091,
-0.028134258,
-0.01778363,
-0.04540383,
-0.023396589,
0.022618555,
0.013775366,
-0.044292353,
-0.0016064314,
0.0038762756,
0.035372753,
0.0014935471,
0.059352867,
-0.022535194,
0.014824323,
-0.0038276485
] | Agents are still brittle for many use cases, especially when it comes to
slightly more complex use cases like generating an image of multiple objects.
Both the agent itself and the underlying prompt will be further improved in the coming
months making sure that agents become more robust to a variety of user inputs. |
[
0.03077175,
0.018411906,
-0.008019692,
-0.033385787,
-0.019633684,
-0.08455838,
0.0019694061,
0.057395138,
0.003224925,
0.034834873,
-0.008864991,
-0.016905993,
0.041000586,
0.0057430654,
-0.004475116,
-0.0014375423,
0.017758397,
-0.0066380887,
-0.034550738,
-0.0107473815,
0.007266736,
-0.0051321764,
-0.075181946,
-0.028370814,
-0.034635976,
0.017204335,
0.038812753,
0.017019648,
0.056542736,
0.016295105,
-0.009887875,
-0.004265567,
-0.019960439,
-0.033613093,
-0.0061870255,
-0.0054908963,
0.038926404,
-0.035488382,
-0.03861386,
-0.047279954,
0.05830437,
-0.026651802,
0.017488468,
-0.05864533,
-0.045347843,
-0.02068498,
-0.0027987233,
0.011109653,
-0.0052245203,
-0.029095357,
0.017502677,
0.015172774,
0.02778834,
0.0010006856,
-0.039920878,
-0.022645507,
-0.01761633,
0.016067797,
-0.00425136,
0.0010415299,
0.0035960753,
0.011116756,
0.021025943,
-0.072511084,
-0.010726072,
0.039807223,
-0.0010282112,
-0.011031516,
-0.02514589,
-0.0073022526,
-0.025557885,
0.017062267,
-0.025174303,
0.008175966,
-0.019832578,
0.005860271,
0.033442613,
-0.027759926,
-0.0043366007,
0.028853843,
0.016593445,
0.034266602,
0.037818283,
0.003587196,
-0.011926539,
-0.022872815,
0.021864139,
-0.02319957,
0.0001894599,
-0.019988852,
-0.026523942,
0.02150897,
-0.010981793,
0.048018705,
0.036283955,
0.041796163,
0.011891022,
0.04020501,
0.008232793,
0.009525604,
0.033385787,
0.07830743,
-0.015982557,
0.015982557,
-0.023128536,
-0.0060733715,
-0.0070998073,
-0.019548444,
0.015400082,
0.016366139,
0.02891067,
-0.01969051,
0.026467115,
-0.02328481,
-0.02523113,
0.07046532,
0.026779663,
-0.0066380887,
-0.05898629,
-0.022148272,
-0.0040737763,
-0.015868904,
-0.004350807,
-0.0315105,
-0.009717395,
-0.033613093,
0.010711865,
0.045859285,
-0.045035295,
-0.020287193,
0.012416671,
-0.0006828104,
-0.0013824912,
0.035772514,
-0.014917053,
-0.00023285698,
-0.035942994,
0.036141887,
0.03190829,
-0.030714924,
0.030061414,
-0.032277662,
-0.0009989098,
0.09461674,
-0.005451828,
-0.018326666,
0.023426877,
0.009894978,
-0.04807553,
-0.0034611116,
-0.01869604,
-0.0042691184,
-0.008836579,
0.045006882,
-0.035687275,
0.009902082,
-0.03506218,
0.006890258,
-0.009497191,
0.017175922,
0.0014996966,
0.02047188,
-0.014448232,
0.0505475,
-0.011770265,
0.038358137,
-0.06285052,
0.010655038,
-0.03878434,
-0.023938319,
0.023085916,
0.008651891,
0.002404487,
-0.006016545,
0.05006447,
0.019164862,
0.039665155,
0.02406618,
0.018667627,
0.024037765,
-0.04960986,
-0.02994776,
0.02211986,
0.044665918,
0.02254606,
-0.043160006,
0.006261611,
0.014590299,
0.017758397,
-0.0515988,
0.044864815,
0.02540161,
-0.046370726,
0.057338312,
-0.0030278068,
0.041739337,
-0.02059974,
-0.0022641956,
-0.009376434,
-0.07501147,
-0.03284593,
0.001739435,
0.013475072,
0.015186981,
-0.015357462,
-0.0028111541,
-0.0058283056,
0.06370292,
-0.033811986,
0.016422965,
0.030089827,
0.012736322,
-0.058020234,
0.007643214,
0.04071645,
0.007543767,
-0.021239042,
0.020230366,
-0.0049155243,
0.0005580576,
0.027532618,
0.014007824,
0.012025986,
0.018284045,
-0.023853078,
0.0002248657,
-0.010037046,
0.02588464,
0.059440907,
0.039636742,
-0.008083622,
0.023767838,
0.004919076,
0.03358468,
0.008943128,
-0.010285663,
-0.012082813,
-0.005416311,
-0.033328958,
0.015897317,
0.00042353777,
0.06358927,
0.039807223,
0.019591063,
0.02085546,
0.022929642,
-0.011130963,
0.002271299,
-0.015044914,
-0.025955673,
-0.028811224,
0.031055884,
0.022020413,
0.014135684,
-0.04105741,
-0.023384256,
0.024293486,
0.041398376,
-0.03796035,
-0.009468777,
-0.02739055,
0.031482086,
-0.030913817,
0.007600594,
0.046541207,
0.016522413,
-0.006865396,
-0.016209865,
-0.022091446,
-0.027575238,
-0.040574387,
-0.007721351,
-0.0843879,
-0.0046988716,
-0.024009353,
-0.017644743,
0.040176596,
-0.020258779,
0.018468732,
-0.046058178,
-0.025557885,
0.007728454,
-0.011287237,
0.011088343,
0.011045723,
-0.006812121,
-0.038102414,
-0.0009269883,
-0.022759162,
0.045859285,
-0.022446614,
-0.053218365,
-0.003599627,
-0.011841299,
0.006954188,
0.0031006162,
0.013816033,
-0.012111227,
-0.02882543,
-0.011692128,
-0.040091358,
0.001962303,
-0.042563327,
-0.0051250733,
0.008474307,
0.0076148007,
0.005938408,
-0.024748102,
0.037931934,
0.061657153,
-0.04185299,
0.0015263342,
0.02211986,
0.05841802,
-0.029066944,
0.06563503,
0.0061159916,
0.0039956393,
-0.0027667582,
0.0011347616,
0.03241973,
0.006261611,
-0.008026795,
-0.01804253,
-0.019136447,
0.023583151,
-0.002800499,
-0.091775395,
-0.01493126,
-0.0414552,
-0.02142373,
-0.024023559,
0.00031210383,
0.031141125,
-0.013744999,
0.051911347,
-0.0074159065,
-0.0025412266,
-0.013610035,
0.0452626,
0.023100123,
-0.02704959,
0.04543308,
-0.0014464214,
0.011550061,
0.011699231,
0.057196245,
-0.05915677,
-0.0026282428,
-0.013794723,
0.01804253,
-0.009873669,
0.0029141528,
-0.0040489146,
-0.01994623,
0.030373963,
-0.053303603,
0.008133345,
-0.0026761903,
0.025870433,
0.025543679,
0.06637378,
0.014306164,
0.0004253136,
-0.036511265,
-0.04176775,
0.026538149,
0.010370904,
0.049751926,
0.0113227535,
0.016607653,
0.006623882,
-0.06824907,
0.01856818,
-0.013425348,
-0.08222848,
0.034465495,
0.022403993,
0.036482852,
-0.010974689,
0.0012217778,
-0.008829474,
-0.010143597,
0.018085152,
0.016167244,
0.061657153,
0.0027987233,
0.0015343255,
0.010740278,
-0.023938319,
0.010896552,
-0.017928878,
0.003921054,
-0.046285484,
-0.035516795,
-0.041313134,
0.01753109,
0.01895176,
0.01389417,
-0.0004586106,
-0.006702019,
-0.016082004,
0.00653509,
-0.006975498,
-0.056287013,
0.04756409,
-0.008943128,
0.05526413,
-0.009362226,
-0.010903656,
-0.049155243,
-0.02042926,
-0.0011223307,
0.027120624,
0.045688804,
0.04026184,
-0.04324525,
-0.016351933,
-0.033328958,
0.02886805,
-0.019633684,
-0.0037044017,
0.024591828,
0.014789193,
0.030373963,
-0.05881581,
-0.003633368,
-0.02722007,
-0.003988536,
0.022872815,
-0.005391449,
-0.006822776,
-0.0120117795,
-0.0075579737,
-0.02246082,
0.0022446613,
0.045148946,
-0.048160773,
0.00467401,
-0.03358468,
0.0028413434,
0.041824576,
-0.029919347,
0.028498676,
-0.02618298,
0.008943128,
0.03176622,
-0.0042904285,
0.002415142,
-0.018553972,
0.0070358766,
-0.018284045,
-0.010832622,
-0.022688128,
0.029095357,
0.008112036,
0.001628445,
-0.015258014,
0.03909689,
-0.002867981,
0.003365216,
-0.000018535327,
0.036539678,
-0.07478416,
-0.041824576,
0.020003058,
-0.0036582297,
-0.02639608,
0.024250867,
-0.00047459317,
-0.016664479,
0.028413435,
0.0051428317,
-0.03778987,
0.018738661,
-0.010576901,
0.023682598,
-0.0011951401,
-0.015243808,
0.027106417,
-0.061088886,
0.030459203,
0.02146635,
-0.023554737,
-0.016948614,
-0.06955609,
-0.019974645,
0.021949379,
-0.04625707,
-0.014604505,
0.015911523,
-0.034295015,
0.027333725,
-0.039153714,
-0.017360609,
-0.02332743,
-0.010292767,
-0.001871735,
0.02891067,
-0.013702379,
0.02929425,
0.021622624,
-0.06529407,
0.027845167,
-0.047194716,
0.014831813,
-0.031794634,
-0.01601097,
0.011294341,
-0.011891022,
-0.014014927,
0.030317135,
-0.0110173095,
-0.0045781145,
0.03392564,
0.0338404,
0.024591828,
-0.050348606,
-0.015783664,
0.06444167,
-0.041171066,
-0.07177234,
-0.021395316,
0.019108035,
0.011415098,
0.007245426,
0.043131594,
-0.048160773,
-0.038642272,
-0.08552444,
0.03011824,
-0.04176775,
-0.0006122207,
0.005299106,
-0.043046355,
0.008112036,
0.04236443,
0.055377785,
-0.014263544,
0.021494763,
-0.03207877,
0.03943785,
-0.037704628,
-0.027106417,
-0.03284593,
0.025657332,
-0.030089827,
0.041909818,
-0.007600594,
-0.015371668,
-0.000094008516,
0.024350313,
-0.005728859,
0.013624242,
0.008062312,
-0.013695275,
-0.04722313,
-0.012082813,
-0.026864903,
0.042648565,
0.0008217698,
0.0027827409,
0.010832622,
0.017758397,
-0.0027117073,
-0.022574473,
-0.0070713935,
-0.015471116,
0.026523942,
-0.034635976,
-0.027191658,
-0.058929466,
0.02211986,
0.008055209,
0.0014339905,
-0.026509734,
-0.022304546,
-0.06347562,
-0.09512818,
0.018085152,
-0.027063796,
-0.023426877,
-0.023796251,
0.046768513,
0.035630446,
-0.036653332,
-0.020003058,
0.076148,
0.0005225408,
0.020500293,
-0.055122063,
-0.0169202,
0.019718925,
-0.020883875,
-0.028427642,
0.03293117,
-0.06591917,
0.009731601,
-0.03159574,
-0.046796925,
-0.050007645,
-0.004421841,
0.032050356,
-0.030146655,
0.042790633,
-0.011116756,
-0.055235717,
-0.0089857485,
0.025870433,
0.04642755,
0.018511353,
0.016849168,
0.015385875,
0.04276222,
0.02865495,
-0.005473138,
-0.018923348,
-0.012430877,
0.04423972,
-0.016408758,
-0.017303782,
0.03886958,
0.046001352,
-0.06614648,
-0.033471026,
-0.019335343,
0.034607563,
-0.014299061,
-0.045035295,
0.02003147,
-0.0067730527,
-0.019093828,
0.016408758,
0.032817516,
0.02423666,
0.003620937,
0.022972262,
-0.025785193,
-0.05327519,
-0.011294341,
0.009554017,
-0.04011977,
-0.042080298,
-0.07046532,
-0.005739514,
-0.039636742,
-0.007820798,
0.0241088,
0.027276898,
0.001052185,
-0.02713483,
-0.013283281,
0.044296544,
-0.009149126,
0.052962642,
0.011216204,
-0.05708259,
-0.049837165,
-0.014817607,
0.018497147,
0.015868904,
-0.047535677,
0.0020901633,
-0.018894935,
-0.014774987,
0.0013247764,
-0.012523222,
-0.038329724,
-0.019889405,
-0.035800926,
0.029549973,
-0.035545208,
-0.013446658,
0.0015192309,
-0.011450614,
0.027205864,
-0.008090725,
0.012828666,
0.023014883,
-0.017801017,
0.024208246,
-0.07535243,
-0.030572856,
-0.03773304,
-0.00049679115,
-0.0000064582296,
0.004773457,
-0.025174303,
0.024634449,
-0.03739208,
-0.021651037,
-0.058929466,
0.023313222,
-0.030544443,
-0.020741807,
0.031823047,
-0.061884463,
0.0024169178,
-0.0037292633,
-0.041966643,
0.02800144,
0.014590299,
-0.026069326,
0.03349944,
-0.044182893,
-0.009497191,
0.024336107,
-0.0069648433,
0.031283192,
-0.012807356,
0.024563415,
0.044211306,
0.030516028,
-0.046058178,
-0.024037765,
0.010420627,
0.020912288,
0.019406376,
0.0032533384,
-0.0028519984,
0.062054943,
-0.010179113,
0.00423005,
0.00044351595,
0.00839617,
-0.0007951322,
0.022915436,
-0.021878345,
-0.0047272854,
0.023270603,
-0.03318689,
0.0012786046,
0.028342402,
-0.031823047,
0.015172774,
0.030828577,
-0.008879199,
-0.04225078,
0.00659902,
-0.0015911524,
0.007778178,
0.024378726,
0.029606799,
-0.011166479,
-0.006378816,
-0.017602123,
0.0056329635,
-0.052536443,
-0.042392846,
0.011550061,
-0.028470261,
0.01844032,
-0.00471663,
-0.005526413,
0.014128581,
0.017971497,
-0.013837343,
0.0009944702,
0.014917053,
-0.018298252,
0.009376434,
-0.06841955,
-0.0102501465,
0.0452626,
0.021310076,
0.01956265,
-0.060918406,
0.036283955,
0.032703865,
-0.009028369,
-0.046598032,
-0.034635976,
0.020400846,
-0.0036369197,
0.01605359,
-0.0010353145,
0.026623389,
-0.044609092,
0.031396847,
-0.041739337,
0.025927259,
-0.01770157,
0.03972198,
0.05841802,
-0.0152722215,
0.01960527,
0.049439378,
0.0042158435,
0.0043898756,
0.03406771,
0.016565032,
0.04043232,
0.009582431,
0.0025145889,
-0.036028236,
0.0011951401,
0.05094529,
0.028029853,
0.023227982,
0.03392564,
0.045802455,
0.0072702877,
0.004983006,
0.036113475,
0.020400846,
0.0056258603,
-0.026126154,
0.020500293,
0.03366992,
-0.0049652476,
0.010143597,
-0.022773368,
-0.0046491483,
-0.038074,
-0.020528706,
-0.040801693,
0.037022706,
0.025259543,
-0.030146655,
-0.028228747,
-0.028598122,
0.016280899,
0.001052185,
-0.021310076,
0.0013824912,
0.04543308,
0.0615435,
0.030231895,
0.0505475,
0.006844086,
0.044126064,
-0.001683496,
-0.001008677,
0.0035978511,
-0.0033368028,
-0.0024062628,
-0.02540161,
-0.011748956,
0.026452908,
0.00752956,
-0.012388257,
0.014306164,
-0.027703099,
0.017317988,
-0.051087357,
0.05461062,
-0.03375516,
0.042137124,
0.011557165,
-0.009902082,
-0.049183656,
-0.007728454,
0.001029987,
0.03608506,
0.025984086,
0.07222695,
0.016366139,
0.08313771,
0.060406964,
-0.0036298162,
0.039665155,
0.016280899,
-0.0086021675,
-0.024350313,
0.04790505,
-0.04861539,
0.016849168,
-0.042620152,
-0.03173781,
0.043387316,
0.038102414,
-0.010981793,
-0.023270603,
-0.017687364,
0.057224657,
-0.059270427,
0.007664524,
0.06756715,
0.0095611205,
-0.0047912155,
0.0030739785,
-0.014718159,
-0.021139596,
0.05657115,
-0.036283955,
0.03153891,
0.008474307,
-0.051229425,
-0.01770157,
-0.023668392,
0.018596593,
-0.03406771,
-0.040631212,
-0.0058496157,
0.010889449,
0.038755924,
0.031226365,
0.013837343,
-0.007721351,
-0.009873669,
0.025770985,
0.04458068,
0.014604505,
0.07313618,
0.07773916,
-0.03267545,
-0.019278515,
0.0048658005,
0.00943326,
-0.02730531,
0.025770985,
0.025728365,
0.020329813,
-0.035971407,
-0.04054597,
-0.02977728,
0.026495527,
-0.016422965,
-0.017744191,
-0.019420583,
0.034039296,
-0.03989246,
-0.044978466,
-0.02354053,
0.036369197,
-0.008943128,
-0.0058567193,
0.0036724363,
-0.0647258,
0.2400367,
0.04077328,
0.019491617,
0.021054355,
0.030800164,
0.06438484,
0.0011125635,
-0.011997573,
-0.0086803045,
-0.041824576,
0.009873669,
0.005860271,
-0.0118199885,
0.015144361,
0.0048338356,
-0.017744191,
-0.034295015,
0.03844338,
-0.013965203,
-0.023256397,
-0.021977792,
0.021622624,
0.021864139,
0.0805805,
0.01662186,
0.0086803045,
0.014419818,
-0.042875875,
-0.015073327,
-0.041796163,
0.028470261,
-0.013325901,
0.04159727,
-0.012061503,
-0.04375669,
0.044495437,
-0.008900508,
-0.040631212,
0.024293486,
-0.019818371,
-0.017090682,
-0.007877625,
0.0169202,
-0.02470548,
-0.004553253,
0.026296634,
-0.009198849,
0.04111424,
0.020741807,
-0.102174714,
0.02518851,
-0.022176687,
0.025685744,
-0.036198717,
-0.023497911,
-0.019250102,
-0.02609774,
-0.022219306,
0.010115183,
-0.0009838152,
0.008786854,
0.0066949157,
-0.013908376,
0.044950053,
-0.030913817,
0.027816752,
-0.011521648,
0.0015494201,
-0.025600504,
0.018894935,
0.0062438524,
0.010576901,
0.024336107,
-0.0348917,
-0.004478668,
0.0130843865,
-0.0056649284,
0.049325723,
0.07376128,
-0.02138111,
-0.013808929,
-0.0486438,
-0.042307604,
-0.0015849369,
0.014085961,
0.03210718,
-0.05475269,
0.014071753,
0.0073448727,
0.048331253,
0.0042264983,
0.043983996,
0.0012679496,
0.057054177,
-0.010086769
] | which is definitely closer to what we had in mind! However, we want to have both the house and car in the same image. Steering the task more toward single image generation should help:
py
agent.run("Create image: 'A house and car'", return_code=True)
``text
==Explanation from the agent==
I will use the following tool:image_generator` to generate an image.
==Code generated by the agent==
image = image_generator(prompt="A house and car") |
[
0.0007050473,
-0.031144852,
-0.000116210475,
-0.0030248086,
-0.013230869,
-0.02361486,
-0.020753745,
0.01710974,
0.01723785,
0.021963669,
0.01830543,
0.010853725,
0.008206128,
0.0076225176,
-0.013544025,
0.014803769,
-0.021508168,
-0.047571342,
-0.04170677,
-0.03023385,
-0.006476649,
-0.028340677,
-0.05653901,
-0.082901105,
-0.038774487,
-0.005024741,
-0.007309361,
0.014312683,
0.07487291,
0.002348675,
-0.0044518067,
0.030547008,
-0.032511353,
-0.015173864,
-0.000025799838,
-0.010049482,
0.026419034,
0.011223819,
-0.039998647,
-0.032027386,
-0.0019714634,
-0.035244357,
0.03029079,
-0.06866671,
-0.064225584,
-0.0065798485,
-0.020113198,
0.017095506,
-0.03399173,
-0.01297465,
0.002348675,
-0.030461602,
0.00044171102,
0.0040425677,
-0.045094557,
0.0130102355,
-0.030660883,
-0.03214126,
-0.05323663,
0.009017488,
-0.017351726,
0.036525454,
-0.010832373,
-0.04182065,
0.04876703,
0.06633227,
-0.038404394,
0.02429811,
-0.011003186,
-0.02977835,
-0.019842744,
0.020127432,
-0.035272826,
-0.045094557,
0.0017739612,
-0.022461873,
0.03077476,
-0.011287874,
-0.0022205655,
0.05206941,
0.009935606,
0.059955265,
-0.010277232,
-0.018134616,
-0.034333356,
0.0014714804,
0.042133804,
-0.014084932,
0.06741409,
-0.02018437,
-0.03641158,
0.009551278,
0.037151765,
0.0029394021,
-0.02546533,
0.067527965,
-0.0011903511,
0.039543144,
-0.018832102,
0.006291602,
0.021251949,
0.06143564,
-0.045692403,
-0.0037721142,
-0.032084323,
0.016355317,
0.020340947,
0.011159765,
-0.01347997,
-0.021977903,
0.02089609,
0.0026120113,
-0.01581441,
-0.023928015,
-0.021066902,
0.024924424,
0.01426998,
0.008312886,
-0.07715041,
-0.01814885,
0.058702637,
-0.010761201,
-0.027273098,
-0.011850133,
0.0021920966,
-0.006288043,
-0.030205382,
0.03922999,
-0.0073947674,
-0.017792992,
-0.029237444,
-0.028070224,
0.031087914,
0.053407446,
-0.012519149,
0.05801939,
0.0071385484,
0.007373416,
-0.0011672203,
-0.050332814,
0.0015124043,
-0.009942723,
0.02873924,
0.07088728,
0.0192449,
-0.0010293246,
-0.010725616,
0.02452586,
-0.05391988,
0.018134616,
0.014874941,
-0.0011334135,
0.003693825,
0.002254372,
-0.016511897,
-0.019102557,
-0.020042026,
-0.03755033,
0.015458551,
0.013956822,
-0.02792788,
-0.009750559,
-0.020113198,
0.05725073,
-0.00962245,
0.062972955,
-0.006369891,
-0.02799905,
-0.014205924,
-0.05226869,
-0.009828849,
0.004466041,
0.0057613705,
-0.043329492,
0.026290925,
0.028141396,
0.026034705,
-0.023401342,
0.003640446,
-0.0037507627,
-0.053378977,
0.045493122,
0.018618587,
0.037123296,
0.0012882126,
-0.008405409,
0.017792992,
0.020212838,
-0.009771911,
0.009024605,
0.03752186,
0.05485935,
-0.035956077,
0.031144852,
0.011814547,
-0.026874535,
-0.016141802,
0.022262592,
0.022589982,
-0.033194605,
0.01513116,
0.026191283,
0.0014074256,
0.0058005154,
0.031287197,
-0.00312267,
-0.02929438,
0.053806007,
-0.02614858,
0.0143909715,
0.041251272,
0.025849659,
-0.06052464,
0.03197045,
0.006049617,
-0.024497392,
0.004775639,
-0.012519149,
0.017166678,
0.014704129,
-0.01538738,
0.019131025,
0.03638311,
0.0052596084,
0.0010168694,
0.017479835,
-0.021878263,
0.044525184,
-0.027401207,
0.033023793,
0.020824917,
-0.019415712,
0.015956756,
0.04147902,
-0.0056830817,
0.0009990765,
0.039742425,
-0.009067308,
-0.033052262,
0.002932285,
0.040909648,
0.027586255,
0.036013015,
0.022433404,
-0.037436455,
0.017380195,
-0.02018437,
-0.004818342,
-0.010163357,
0.025166407,
-0.048197657,
0.069179155,
0.029863758,
0.019273369,
-0.015188098,
0.016810818,
0.0050781197,
-0.0007410781,
-0.035956077,
0.013978174,
0.051300753,
0.06502271,
-0.024810547,
-0.017479835,
0.0039393683,
0.024895955,
0.0281841,
0.017223615,
0.02799905,
-0.039286926,
0.026490206,
-0.06433946,
-0.057848573,
0.029180506,
-0.03162882,
0.0028308649,
0.014440792,
-0.046404123,
0.03988477,
-0.013458619,
0.04816919,
0.037094828,
-0.033450823,
0.040938117,
0.035728328,
-0.0137860095,
-0.037664205,
0.016156036,
-0.02313089,
-0.007643869,
-0.009309294,
-0.02510947,
-0.011558328,
-0.034077138,
0.016938929,
-0.011152647,
-0.006060293,
-0.0007873399,
-0.008547753,
-0.0069321496,
-0.0054838,
-0.005295194,
0.027657427,
0.0049144244,
-0.046859622,
0.007992612,
0.03641158,
-0.033934794,
0.028497256,
0.03683861,
-0.0059642107,
0.07920016,
0.00076865725,
0.055485666,
-0.035642922,
0.028981226,
0.013116993,
0.017123975,
-0.025536502,
-0.014818003,
-0.029465195,
0.0045051854,
-0.021294652,
-0.010618857,
-0.03290992,
0.03328001,
0.0105121,
-0.0756131,
-0.0066296686,
-0.011387515,
0.0014465703,
-0.023600625,
-0.050105065,
0.016967397,
0.022689624,
0.011508507,
-0.00809937,
-0.026390566,
-0.020469058,
0.014832238,
-0.011800312,
0.000031832773,
0.030603945,
0.030888634,
-0.0074659395,
0.0035888464,
0.009700739,
-0.040909648,
-0.013956822,
-0.018462008,
0.037891954,
0.0013264675,
0.026419034,
-0.025863893,
0.06724327,
0.03780655,
-0.039514676,
-0.0192449,
0.018106148,
0.019159494,
-0.007373416,
0.061321765,
-0.022760795,
-0.028497256,
-0.027386973,
0.0008469464,
-0.018817868,
0.06211889,
0.058247138,
-0.036212295,
0.010946249,
-0.025678845,
-0.02407036,
-0.03145801,
-0.047770623,
0.0065584965,
0.033906326,
0.032539822,
0.00051555195,
-0.005910832,
-0.03262523,
0.008170541,
-0.030603945,
0.028895818,
0.016725412,
0.03942927,
0.0295506,
0.006337864,
0.022461873,
-0.013536908,
0.014198807,
-0.0056368196,
0.03165729,
-0.0223907,
-0.046375655,
-0.01739443,
0.012810954,
0.039002236,
0.02569308,
0.035329763,
0.037692674,
0.032739103,
0.021807091,
-0.005871687,
-0.02203484,
0.033137668,
-0.0581902,
0.034902733,
0.012896361,
0.02216295,
-0.0591012,
-0.014818003,
0.017294789,
0.019358775,
-0.014860706,
-0.0047329357,
-0.057905514,
-0.0063663325,
-0.00044994027,
0.012675728,
-0.021180777,
-0.009942723,
-0.024682438,
-0.008092253,
0.045123026,
-0.01581441,
0.016825054,
-0.046318717,
0.01998509,
0.029863758,
-0.0219352,
-0.03288145,
0.013522673,
-0.05095913,
-0.04996272,
0.03777808,
0.04367112,
-0.027742833,
0.0344757,
-0.030831696,
-0.014490613,
0.026461737,
-0.024454689,
0.027742833,
0.011351929,
0.006732868,
0.020511761,
0.030347727,
0.0011369722,
-0.055884227,
0.057592355,
-0.035642922,
-0.0011191792,
-0.01226293,
0.041877586,
-0.029080866,
-0.021009965,
0.022589982,
0.016255677,
0.0062275473,
-0.00205687,
0.009465871,
0.02439775,
-0.0192449,
-0.023415577,
0.021906732,
-0.021878263,
-0.005583441,
0.018362368,
0.0497065,
-0.011010303,
-0.0088680275,
0.021536637,
-0.022077544,
-0.018063445,
-0.038119704,
0.03239748,
-0.009779029,
-0.000118434604,
0.023444045,
-0.03826205,
0.0066474616,
-0.0056546126,
-0.0223907,
0.0030070157,
-0.039685488,
-0.020170135,
-0.008191894,
-0.011159765,
0.0016138244,
0.010846607,
0.008433878,
0.013821596,
-0.041877586,
0.0026209077,
-0.03920152,
-0.01279672,
-0.038148176,
0.06348539,
0.008405409,
0.020511761,
-0.032995325,
0.0021689658,
0.028169865,
-0.013245103,
-0.01401376,
-0.01772182,
0.013978174,
0.03903071,
0.010625974,
-0.038404394,
0.05821867,
0.016440725,
0.046574935,
0.010234529,
0.033166137,
-0.010255881,
-0.045123026,
-0.010853725,
0.030660883,
-0.0137006035,
-0.06912222,
-0.02485325,
0.017280554,
-0.023572156,
0.016398022,
0.03165729,
-0.00082248106,
-0.01736596,
-0.05602657,
0.026789129,
-0.011266522,
-0.039059177,
-0.031030977,
-0.043044806,
0.008191894,
0.018931743,
0.017266318,
-0.07384803,
-0.0009768353,
-0.057848573,
0.031116383,
-0.020426355,
-0.007629635,
0.0009439182,
0.012440859,
-0.018561648,
0.025906596,
0.0017330374,
0.004533654,
0.022732327,
-0.020113198,
0.025038298,
0.018832102,
-0.03903071,
-0.0036902665,
-0.00032561173,
0.00015813521,
0.010312818,
0.056966044,
0.05656748,
0.0053806007,
-0.037265643,
0.03868908,
-0.026646784,
0.00082070177,
-0.0143909715,
0.02530875,
-0.0021849794,
-0.033678576,
0.0035230124,
-0.023785671,
0.0059926794,
0.007992612,
-0.00043704035,
-0.0073520644,
0.0286396,
-0.03071782,
-0.014661425,
0.034674983,
-0.016383788,
-0.028653834,
-0.016825054,
-0.010391107,
0.07139972,
-0.052951943,
0.040254865,
0.06786959,
0.009223887,
0.043955807,
-0.047429,
0.020497527,
-0.00921677,
-0.031287197,
-0.03308073,
0.018063445,
-0.024967127,
-0.0281841,
-0.0197004,
0.015301973,
-0.027757067,
0.027002644,
0.028938523,
-0.045806278,
0.012497798,
-0.0056474954,
-0.079370975,
-0.013373213,
0.02167898,
0.01535891,
0.019159494,
0.00357995,
0.05206941,
0.00080157426,
0.007316478,
-0.035756797,
0.006006914,
-0.037863486,
0.04629025,
0.026419034,
0.004572799,
0.024725141,
0.052240223,
-0.077093475,
-0.07760591,
-0.022988545,
0.03288145,
-0.021650512,
-0.0038397275,
-0.025351455,
0.018020742,
-0.032112792,
-0.008526402,
0.0095583955,
-0.028112927,
-0.0010222073,
0.020782214,
0.01266861,
-0.031059446,
0.038091235,
0.07139972,
-0.025123704,
-0.005615468,
-0.068154275,
-0.015828645,
-0.013842948,
-0.013451502,
0.006199078,
-0.02708805,
-0.010142005,
0.031714227,
-0.035585985,
0.053094286,
-0.004323697,
0.08984749,
0.04520843,
-0.06536433,
-0.03328001,
-0.00018048767,
0.01535891,
-0.02439775,
0.013522673,
0.009665153,
0.00416356,
0.037635736,
0.049421813,
0.0050959126,
-0.07629635,
-0.016938929,
0.0073662987,
0.00837694,
-0.008156307,
-0.021550871,
0.029408257,
-0.010533451,
0.000035752793,
0.032055855,
-0.02391378,
0.022917373,
0.007643869,
-0.016540365,
0.00472226,
0.030603945,
-0.004754287,
-0.024468923,
0.00016402914,
-0.033194605,
-0.016469194,
-0.037493393,
-0.022305295,
-0.02828374,
-0.00926659,
0.032312073,
-0.023258999,
0.034845795,
0.006167051,
-0.052752662,
0.037237175,
-0.0058503356,
-0.029408257,
0.060183015,
0.06006914,
-0.008177659,
0.04409815,
0.0073022437,
-0.017309023,
0.008291534,
0.014255745,
0.03706636,
-0.0013487088,
-0.030632414,
0.003957161,
-0.011707788,
-0.06302989,
-0.016696943,
0.024796313,
0.06570596,
0.037436455,
0.022646919,
-0.016312614,
0.027031112,
-0.013437267,
-0.0021920966,
0.047685217,
0.018618587,
0.05446079,
-0.03942927,
0.010775436,
0.018291196,
-0.0068253917,
-0.013401682,
-0.004483834,
0.034674983,
-0.010761201,
0.01830543,
-0.01114553,
0.006519352,
-0.04876703,
0.037664205,
-0.010803904,
0.044496715,
0.0031297873,
-0.018732462,
0.0005208898,
-0.031799633,
0.012875008,
0.048681624,
-0.0797126,
-0.03612689,
0.0043557244,
-0.036895547,
0.0032365452,
-0.0052169054,
-0.047315124,
-0.008882262,
-0.010761201,
0.015202332,
-0.026034705,
-0.0045941505,
0.016739646,
0.027002644,
-0.04834,
0.016825054,
0.004793432,
0.0090388395,
-0.0016752102,
-0.051443096,
0.05485935,
0.038831424,
0.022632685,
0.019301837,
0.010149122,
0.019757338,
-0.035329763,
0.028525725,
-0.003836169,
0.0290951,
-0.049450282,
-0.0017890853,
-0.023344405,
0.003793466,
-0.012711314,
-0.0021618486,
0.036980953,
0.012661492,
0.023828374,
0.04626178,
-0.0018095473,
-0.016625771,
0.023984952,
0.035642922,
0.03003457,
-0.028084459,
-0.014355386,
0.0022757237,
0.01736596,
0.053578258,
-0.0009892903,
0.024113063,
0.017380195,
0.041393615,
-0.023557922,
0.009999662,
-0.014732597,
0.016355317,
-0.05653901,
0.010056599,
0.035102013,
-0.051756255,
-0.018590117,
-0.016796583,
0.02695994,
0.005466007,
0.006743544,
-0.03197045,
-0.048197657,
0.003967837,
-0.005583441,
-0.028241036,
0.01840507,
-0.055684946,
0.047457468,
0.07384803,
0.007871619,
-0.016141802,
0.051784724,
0.0102487635,
0.0022597099,
0.02251881,
-0.026362097,
0.029465195,
0.02391378,
0.034703452,
-0.01360808,
0.009956958,
-0.047315124,
-0.008739918,
0.0032525589,
0.026903003,
-0.011608148,
-0.013294923,
-0.0032543382,
-0.022248358,
-0.0041600014,
-0.03829052,
0.0068111573,
-0.057877045,
-0.005946418,
0.043500304,
-0.012768251,
-0.062972955,
0.031372603,
0.011330578,
0.009928489,
-0.016255677,
0.06843896,
0.013992408,
0.04577781,
0.02436928,
-0.0041422085,
0.040311802,
-0.007430353,
-0.034646515,
-0.03427642,
0.04785603,
-0.0016004796,
-0.03441876,
0.018106148,
-0.029465195,
0.0023397785,
0.026789129,
-0.050845254,
-0.08113604,
0.0096438015,
0.033194605,
-0.028867349,
-0.009949841,
0.03777808,
-0.0075584627,
-0.015543957,
0.0034109165,
-0.05602657,
-0.045635466,
0.012099234,
-0.060183015,
-0.015074222,
-0.0003140463,
-0.051784724,
-0.048624687,
-0.035956077,
-0.013437267,
-0.00792144,
-0.008576222,
0.005092354,
-0.023173593,
0.010924897,
0.005999797,
0.028725006,
-0.019002914,
-0.011558328,
0.031087914,
0.034162544,
0.022945842,
0.043528777,
0.026732191,
0.012497798,
-0.0029838847,
-0.017792992,
0.009665153,
-0.05841795,
-0.0034340473,
0.023088185,
0.011088592,
-0.018462008,
-0.025579205,
-0.021138074,
0.064624146,
-0.03330848,
-0.019415712,
-0.022205655,
-0.061378703,
-0.0559981,
-0.018419305,
-0.03982783,
0.002754355,
0.0037578798,
0.02358639,
-0.025123704,
-0.042560834,
0.23913781,
0.00014367841,
0.01284654,
0.06382702,
0.039486207,
0.08711449,
0.012832305,
-0.009608216,
-0.008213245,
-0.04224768,
0.011878601,
-0.052866537,
0.0034037994,
0.0010035248,
-0.013764658,
0.023202062,
-0.035614453,
0.0016734309,
0.0038681964,
-0.022276826,
-0.04973497,
-0.0042240564,
-0.011572562,
0.08284417,
0.025166407,
0.054119162,
0.0550871,
0.009942723,
-0.03162882,
-0.05608351,
-0.013551142,
-0.018903274,
0.0045585646,
0.0033290687,
-0.06371315,
0.033194605,
-0.038973767,
-0.048226126,
0.028554194,
-0.009010371,
0.014988816,
-0.0019714634,
0.012248696,
-0.014334034,
-0.029692944,
-0.009864435,
0.019031383,
0.025422627,
0.055229448,
-0.07390497,
0.016440725,
-0.012391039,
0.05653901,
-0.012946181,
-0.03071782,
-0.0074588223,
0.022362232,
-0.036696266,
-0.025251813,
-0.027913645,
0.03285298,
-0.029749881,
-0.03123026,
0.005690199,
-0.04597709,
0.025493799,
0.015173864,
0.056909103,
-0.01723785,
-0.04814072,
0.026945706,
-0.0032098556,
0.006458856,
-0.017422898,
0.02520911,
0.0110672405,
-0.0003587512,
0.009380465,
0.027671661,
-0.028895818,
0.028084459,
-0.038546737,
-0.02754355,
-0.043016337,
-0.0073307124,
0.014576019,
-0.07680879,
0.0072346306,
-0.035130482,
0.012689962,
-0.005978445,
0.037464924,
-0.024938658,
0.020696808,
0.018490477
] | Customizing the whole prompt
To give the user maximum flexibility, the whole prompt template as explained in above
can be overwritten by the user. In this case make sure that your custom prompt includes an introduction section,
a tool section, an example section, and an unfinished example section. If you want to overwrite the run prompt template,
you can do as follows:
template = """ [] """
agent = HfAgent(your_endpoint, run_prompt_template=template) |
[
0.0024397504,
-0.02756161,
-0.015395293,
0.034653824,
-0.030617604,
-0.029954512,
-0.017730534,
0.01797559,
0.03557639,
0.02787874,
0.00015845313,
0.008879682,
0.0024397504,
-0.002782108,
-0.029334664,
-0.014523181,
-0.02218479,
-0.032924015,
-0.034653824,
-0.037911627,
0.00961485,
-0.0336736,
-0.06936531,
-0.038863022,
-0.05030859,
0.015971895,
-0.013420428,
0.022300111,
0.073747486,
0.0276481,
-0.0294644,
0.017456647,
-0.0015117803,
-0.036844913,
-0.019806303,
-0.0402757,
0.0122456,
0.009247266,
-0.04661833,
-0.04232264,
0.018537778,
-0.019748643,
0.02332358,
-0.048175156,
-0.07196002,
-0.005629084,
-0.015770085,
0.008375155,
0.00005110029,
-0.030934736,
0.020671207,
-0.027201233,
0.034567334,
-0.005398443,
-0.048175156,
-0.011878016,
-0.03208794,
-0.030559944,
-0.04252445,
0.002259562,
-0.0120221665,
0.03822876,
0.0027568818,
-0.05091402,
0.028945457,
0.02124781,
-0.024563275,
0.00052524905,
-0.020541472,
-0.03370243,
-0.033269975,
0.0318573,
-0.043158714,
-0.053883523,
-0.008937342,
-0.0069841007,
0.026192179,
-0.02338124,
-0.009694133,
0.041601885,
0.020700037,
0.0589288,
0.016418763,
-0.003016353,
-0.021694677,
0.0046524634,
0.039237816,
0.0121230725,
0.058006234,
-0.031136546,
-0.045292143,
0.022588411,
0.039237816,
0.0022937977,
-0.00008412544,
0.06717422,
0.019979285,
0.03413488,
-0.02454886,
0.027806666,
0.021954149,
0.031223038,
-0.06919233,
-0.007957118,
-0.0130960895,
0.015222312,
0.051404133,
-0.003910087,
-0.02431822,
-0.007333666,
0.011546469,
-0.02010902,
-0.0011180687,
-0.027720176,
-0.012209563,
0.025831802,
0.02645165,
0.0061336113,
-0.06423354,
-0.0041227094,
0.017932344,
-0.02531286,
-0.035057444,
-0.007531873,
-0.010840131,
0.030358134,
0.0038308043,
0.026466064,
0.003974955,
-0.023092939,
-0.011813148,
-0.032491565,
0.060024343,
0.03569171,
-0.012721297,
0.0468778,
-6.2995537e-7,
0.0043713693,
0.028685985,
-0.043937128,
0.01669265,
-0.017961174,
0.022112714,
0.074324094,
0.022674901,
0.007913873,
0.0014604266,
0.010897792,
-0.06394524,
0.0070633832,
0.0030127491,
0.011114017,
-0.016332272,
0.0046128216,
-0.018436871,
-0.023309166,
-0.01595748,
-0.03332764,
0.0075607034,
0.0038019742,
-0.02943557,
0.01481869,
-0.036498953,
0.059563063,
-0.005214651,
0.05059689,
-0.021709092,
-0.013319523,
0.009477907,
-0.058121555,
0.032347415,
0.013355561,
0.0043533505,
0.001793775,
0.016577328,
0.0016189923,
0.04010272,
0.0030740132,
0.0065660635,
0.0069660814,
-0.0070741945,
0.036181822,
-0.018566608,
0.021982979,
0.027431875,
-0.0131249195,
0.030041002,
0.0017036808,
0.007567911,
-0.015424123,
0.053451072,
0.020541472,
-0.03177081,
0.047886856,
0.03592235,
-0.013261863,
-0.018162986,
0.034567334,
0.033039335,
-0.04059283,
-0.022790223,
0.052442018,
0.007315647,
0.022588411,
0.024447955,
-0.018335966,
-0.013521334,
0.04007389,
-0.01481869,
0.021838829,
0.04880942,
0.04220732,
-0.074727714,
0.014393445,
0.011625753,
-0.027028253,
-0.01797559,
0.032866355,
-0.0017640439,
0.015654763,
-0.00018548139,
0.037017893,
0.05518088,
0.032578055,
-0.02093068,
-0.0036614274,
0.0014496152,
0.035028614,
-0.016735895,
0.024087578,
0.0018793645,
-0.0013559173,
0.030646434,
0.053970017,
0.0069228364,
0.022458676,
0.051202323,
0.021795584,
-0.005384028,
-0.001994685,
0.017398987,
0.013225825,
0.037479177,
0.054546617,
-0.02779225,
-0.006432724,
-0.004468671,
0.002690212,
-0.0297527,
0.028080553,
-0.04425426,
0.070806816,
0.027893158,
0.033241145,
-0.031569,
-0.03358711,
0.010768056,
0.03384658,
-0.05552684,
-0.013687107,
0.03142485,
0.0067318366,
-0.021593772,
0.014422276,
0.027547196,
0.021737922,
0.016634988,
-0.00087931915,
0.0034415976,
-0.047569726,
0.0284121,
-0.040938795,
-0.050049115,
0.02534169,
-0.051375303,
-0.01791793,
-0.0012279836,
-0.020354075,
0.020152265,
-0.044859692,
0.037219707,
0.027071498,
-0.051548284,
0.032779865,
0.021622602,
-0.014494351,
-0.039381966,
-0.013002391,
0.0023316373,
0.008259834,
-0.017557552,
-0.00044371383,
-0.0005725485,
-0.05910178,
0.020656792,
-0.012512279,
0.0009194111,
0.013016807,
-0.016606158,
-0.0025748916,
-0.031021226,
-0.000100511315,
-0.017644044,
-0.010371641,
-0.03387541,
-0.0005986758,
0.0507987,
-0.023020864,
0.039410796,
0.045955237,
0.0070777982,
0.044744372,
-0.00029573412,
0.026653461,
-0.04016038,
0.027489536,
0.017615214,
0.031107716,
-0.047742706,
0.0052795187,
-0.054373637,
-0.0013099693,
-0.022343356,
-0.008317494,
-0.028873382,
0.022386601,
0.009088701,
-0.055815145,
0.017168347,
-0.02969504,
-0.0056362916,
-0.04050634,
-0.027893158,
0.023842523,
0.039208986,
0.0072219493,
-0.0062741586,
-0.0065624597,
-0.019950455,
0.018782834,
0.000672553,
-0.023309166,
0.043331694,
0.00046218312,
-0.02093068,
-0.0034812388,
0.043619998,
-0.044657882,
-0.018018834,
-0.0077120615,
0.028685985,
-0.008483267,
0.03341413,
-0.006912025,
0.037479177,
0.04679131,
-0.01783144,
-0.0077553065,
0.023986673,
0.036960233,
-0.0020595528,
0.04174604,
-0.022256864,
-0.04240913,
-0.018220646,
-0.007798552,
-0.0012207761,
0.05939008,
0.05048157,
-0.029392324,
-0.009268889,
-0.012173525,
-0.047483236,
-0.036931403,
-0.059736043,
-0.0054452918,
0.061235208,
0.010544622,
0.02329475,
-0.01675031,
-0.036124162,
0.03231858,
-0.012454619,
0.03142485,
0.039468456,
0.015063746,
0.024217315,
0.019763058,
0.028368855,
-0.013917748,
0.0048831045,
0.0010243708,
0.03825759,
-0.017326912,
-0.05691069,
-0.022501921,
0.0076039485,
0.00393171,
0.017672874,
0.054114167,
0.04065049,
0.013312316,
0.041342415,
0.0067210253,
-0.022271281,
0.028253533,
-0.030156322,
0.008526512,
0.008641833,
0.028830137,
-0.037421517,
-0.007409345,
-0.010061718,
0.025932707,
-0.009290512,
0.017254837,
-0.04036219,
0.00034168217,
0.030098662,
0.0168368,
-0.0070561757,
-0.01920087,
-0.006832742,
0.0024649766,
0.0441966,
-0.0037515215,
0.017125102,
-0.04889591,
0.022530751,
0.03869004,
-0.028873382,
-0.009009417,
0.006475969,
-0.049991455,
-0.03142485,
0.038891852,
0.024332635,
-0.017240422,
0.0074670054,
-0.01049417,
0.009009417,
-0.00070003176,
-0.03802695,
0.014112351,
0.022732563,
-0.008115684,
0.024001088,
0.023035279,
-0.015539443,
-0.06873105,
0.051346473,
-0.020858604,
0.005740801,
-0.016404347,
0.018062081,
-0.010263529,
-0.019388266,
0.03560522,
0.021752337,
-0.028397685,
-0.018148571,
-0.0059822532,
0.030329304,
-0.036585443,
-0.01572684,
0.032779865,
0.0073444773,
-0.0064867805,
0.0036416065,
0.03200145,
-0.0034452013,
0.021464037,
0.013002391,
-0.0068111196,
-0.02101717,
-0.008836437,
0.022199204,
-0.020728868,
-0.021896489,
0.026076859,
-0.043216374,
0.013297901,
0.006883195,
-0.012750127,
0.016634988,
-0.033010505,
0.013449258,
-0.00476418,
-0.026134519,
0.0075607034,
0.015092576,
-0.010400471,
0.0030451831,
-0.053681713,
-0.025586747,
-0.03574937,
-0.0028361646,
-0.015395293,
0.048031006,
0.0058272914,
0.0550079,
-0.024159655,
0.0035911538,
0.04174604,
-0.033183485,
-0.026970593,
-0.0041515394,
-0.0067354403,
-0.00028807612,
0.0072363643,
-0.030242814,
0.043648828,
-0.03145368,
0.008850852,
0.016505253,
0.045926407,
-0.008490475,
-0.04846346,
-0.027359799,
0.05526737,
0.0109338295,
-0.0712681,
-0.002983919,
0.0178891,
-0.017182762,
0.022573996,
0.05039508,
0.021723507,
-0.02949323,
-0.0471661,
0.021882074,
-0.002119015,
-0.027330969,
-0.025658822,
-0.037421517,
-0.001762242,
0.033154655,
0.015308802,
-0.061235208,
-0.04067932,
-0.06907701,
0.03883419,
-0.023756033,
-0.003974955,
-0.013052844,
0.029449984,
-0.018984646,
0.03404839,
-0.007034553,
0.0045443503,
-0.0068111196,
-0.032866355,
0.024822747,
0.017658459,
-0.00014460114,
0.0059930645,
0.019071136,
0.012252808,
-0.013348353,
0.043475844,
0.018955814,
0.022170374,
-0.010090548,
0.0097157555,
-0.029104022,
-0.018263891,
-0.049270704,
0.02756161,
0.015135822,
-0.033096995,
-0.02349656,
-0.036816083,
0.03592235,
0.021694677,
0.0012315874,
-0.03197262,
0.014386238,
-0.0444849,
-0.030156322,
0.026869686,
-0.029104022,
-0.0011036537,
-0.00844723,
-0.026912931,
0.037882797,
-0.0589288,
0.016245782,
0.08539487,
-0.025125464,
0.0297527,
-0.060600948,
0.040938795,
-0.005755216,
-0.013816843,
-0.043533504,
0.013593409,
-0.036210652,
-0.020829773,
-0.027864326,
0.006530026,
-0.013427636,
-0.009787831,
0.026105689,
-0.05887114,
0.045897577,
-0.030732926,
-0.056247596,
-0.019806303,
0.02417407,
0.026754366,
0.015092576,
0.008584173,
0.051663604,
0.02440471,
0.009809454,
-0.019532418,
0.018206231,
-0.026610216,
0.04197668,
0.03992974,
0.0054957448,
0.054604277,
0.06700124,
-0.0586405,
-0.06475249,
0.010789678,
0.012505071,
-0.034596164,
-0.011647375,
-0.019186456,
0.027720176,
-0.02969504,
-0.0049587833,
0.014681747,
0.015525028,
-0.014364615,
-0.0020595528,
0.016274612,
-0.017514307,
0.0013009598,
0.087758936,
-0.01227443,
0.017269252,
-0.091737494,
-0.026538141,
-0.009456284,
0.013896125,
0.032664545,
0.006234517,
0.0015505208,
0.051721264,
-0.045868747,
0.054661937,
0.0020072982,
0.0471661,
0.06890403,
-0.05705484,
-0.037104387,
-0.02036849,
0.04171721,
-0.03344296,
0.0039425213,
0.013715938,
0.009045456,
0.030502284,
0.046387687,
0.0022541562,
-0.074958354,
-0.018422456,
-0.04067932,
0.0020649584,
-0.017197177,
-0.00045902983,
0.011950091,
0.0023856938,
-0.015856575,
-0.00027050776,
-0.04004506,
0.037363857,
-0.004580388,
-0.019705398,
-0.01177711,
0.002598316,
-0.03866121,
-0.030242814,
-0.018393626,
-0.01391054,
0.004767784,
-0.041313585,
0.0008365244,
-0.033241145,
-0.034423184,
0.018220646,
-0.0468778,
0.021175735,
-0.00844723,
-0.030444624,
-0.01675031,
-0.010047303,
-0.029305834,
0.027489536,
0.03811344,
-0.02779225,
0.039036006,
0.009276097,
0.0029424757,
-0.00081445137,
0.00850489,
0.043677658,
-0.015279972,
-0.022314526,
-0.009009417,
-0.011532054,
-0.052067228,
-0.02036849,
0.00011216725,
0.043850638,
0.013903333,
0.012346506,
-0.010768056,
0.009600435,
0.0016252989,
0.024447955,
0.023150599,
0.022631656,
0.020786528,
-0.041515395,
0.014220465,
-0.030531114,
0.017759364,
-0.007856213,
0.0016793554,
0.033212315,
-0.006493988,
0.00689761,
-0.04220732,
-0.024419125,
-0.041371245,
0.018725174,
0.024001088,
0.025557917,
0.010602282,
-0.008706701,
0.013369976,
0.001485653,
-0.01937385,
0.03341413,
-0.08014778,
-0.01800442,
0.019128796,
-0.02511105,
-0.008850852,
-0.033010505,
-0.029954512,
-0.017903514,
-0.0033821354,
-0.009124738,
-0.009153568,
0.030877076,
0.002616335,
0.023092939,
-0.06752018,
0.012908693,
-0.017629629,
0.034423184,
-0.012973561,
-0.0468778,
0.04699312,
0.031367186,
0.028902212,
0.03378892,
-0.03335647,
-0.0031496924,
0.0032271734,
0.03358711,
-0.023957843,
0.03805578,
-0.04710844,
-0.01589982,
-0.03603767,
0.02098834,
-0.00786342,
-0.01174828,
0.05691069,
0.0012414977,
0.024635352,
0.040909965,
0.016346687,
-0.023309166,
0.035143934,
0.020728868,
0.043619998,
-0.03355828,
-0.03159783,
-0.02516871,
0.033096995,
0.036268312,
-0.013615032,
0.012800581,
0.029204927,
0.017081855,
-0.017701704,
-0.0053624054,
0.0019766663,
0.0074021374,
-0.036354803,
0.020570302,
-0.0088436445,
-0.04849229,
-0.015063746,
-0.009175191,
0.0036866537,
0.016447593,
0.004054238,
-0.035288088,
-0.049501345,
0.0035154747,
0.011315828,
-0.011366282,
0.027359799,
-0.037796307,
0.02750395,
0.022141544,
-0.0059101777,
-0.0571125,
0.03995857,
-0.0018063883,
0.027691346,
-0.00042164075,
-0.02636516,
0.025240785,
0.0010171633,
0.025442595,
-0.016260197,
0.010047303,
-0.025211954,
-0.01920087,
-0.009989643,
0.030329304,
-0.026336329,
-0.0033388902,
-0.0019766663,
-0.010616697,
-0.008202174,
-0.028267948,
-0.0010937433,
-0.044052448,
0.02016668,
0.041198265,
-0.026869686,
-0.03854589,
0.048088666,
0.0072363643,
0.022891128,
0.003081221,
0.06296502,
0.0070741945,
0.07639986,
-0.0072615906,
-0.034682654,
-0.00065408373,
-0.015222312,
-0.01675031,
-0.036816083,
0.032722205,
-0.006883195,
-0.034452014,
-0.02008019,
-0.025759727,
-0.030473454,
0.023510976,
-0.045695767,
-0.07795669,
-0.013196995,
0.016562913,
-0.034884464,
0.0048578777,
0.047973346,
0.00031150063,
-0.012389751,
-0.027893158,
-0.023929013,
-0.06319566,
0.010270736,
-0.047656216,
-0.029277002,
0.0018081901,
-0.06948063,
-0.05555567,
-0.012800581,
-0.020483812,
0.005427273,
-0.010501377,
0.01423488,
-0.009204021,
0.0336736,
0.014443899,
0.04693546,
-0.030559944,
-0.021637017,
0.039353136,
0.0357782,
0.019892793,
0.059620723,
0.03217443,
-0.011387904,
-0.019734228,
0.0075534955,
0.025802972,
-0.039439626,
0.04918421,
0.006807516,
-0.022343356,
-0.041082945,
-0.009254473,
0.022314526,
0.08873916,
-0.0070561757,
-0.04829048,
-0.013456466,
-0.04434075,
-0.04013155,
-0.03179964,
-0.057890914,
0.037709817,
0.0021009962,
0.0157845,
-0.006389479,
-0.04439841,
0.24747789,
0.053220432,
0.029060777,
0.06348396,
0.02323709,
0.08654807,
0.040852305,
-0.04206317,
0.00065993983,
-0.041140605,
0.010688773,
-0.015452953,
0.0049299533,
0.034394354,
-0.018465701,
0.027057083,
-0.03828642,
-0.0087139085,
0.013297901,
-0.013506919,
-0.036758423,
0.02124781,
0.014494351,
0.0808397,
0.0502221,
0.03217443,
0.045061503,
0.01166179,
-0.035403408,
-0.05062572,
0.0012973561,
-0.037652157,
0.024779502,
-0.010645527,
-0.06682826,
0.022372186,
-0.020685622,
-0.056593556,
0.0054200655,
-0.017168347,
0.017053025,
-0.016418763,
-0.0034001542,
0.00011588363,
-0.018134156,
0.0036614274,
-0.0020991943,
0.06440652,
0.07824499,
-0.07161406,
-0.0019424304,
-0.012476241,
0.07934053,
-0.020728868,
0.021233395,
-0.011791525,
0.053941187,
-0.041486565,
-0.018119741,
-0.015943065,
-0.003218164,
-0.0024505616,
-0.023280336,
0.01613046,
-0.051865414,
0.028858967,
0.019330606,
0.07945585,
-0.02955089,
-0.030185152,
-0.007639986,
-0.006641743,
0.018105326,
-0.049703155,
0.018984646,
0.025356105,
0.020209925,
0.015640348,
0.04863644,
-0.01058066,
0.0044038035,
-0.022328941,
-0.024015503,
-0.031021226,
0.0056254803,
0.016995365,
-0.060716268,
-0.011726658,
-0.032952845,
0.043389354,
0.0020757697,
0.00806523,
-0.043937128,
0.030934736,
-0.013744768
] | template = """ [] """
agent = HfAgent(your_endpoint, run_prompt_template=template)
Please make sure to have the <<all_tools>> string and the <<prompt>> defined somewhere in the template so that the agent can be aware
of the tools, it has available to it as well as correctly insert the user's prompt.
Similarly, one can overwrite the chat prompt template. Note that the chat mode always uses the following format for the exchanges:
```text
Human: <>
Assistant: |
[
-0.0143436575,
-0.034620635,
-0.015812587,
0.035254292,
-0.028197672,
-0.026829552,
-0.0022627984,
0.018980864,
0.026512725,
0.010484119,
0.011895443,
0.014106037,
0.00029005043,
-0.0032348838,
-0.048129022,
0.0065957783,
-0.01983054,
-0.043607023,
-0.021789111,
-0.034735847,
0.0016804474,
-0.024467746,
-0.08254804,
-0.055444863,
-0.03787532,
0.008655159,
-0.008129513,
0.015092524,
0.0832393,
0.034044586,
-0.018736044,
0.027664825,
-0.022811601,
-0.015913395,
-0.025087,
-0.036896035,
0.0054544783,
-0.0017623545,
-0.045450386,
-0.043491814,
0.035283092,
-0.02907615,
0.036089566,
-0.05348629,
-0.085658714,
0.020204972,
-0.018131189,
0.0084679425,
-0.008115112,
-0.018174393,
0.0074094497,
-0.004889229,
0.01768475,
0.011312192,
-0.03511028,
-0.0353695,
-0.043174986,
-0.046084043,
-0.03433261,
0.01892326,
-0.01334277,
0.040438745,
-0.014170842,
-0.04346301,
0.021947525,
0.037356876,
-0.028773723,
0.0034004983,
-0.014876504,
-0.017857566,
-0.022811601,
0.009533636,
-0.032978892,
-0.063480765,
0.0077262777,
-0.018044783,
0.017627146,
-0.019744132,
-0.013825213,
0.023344448,
0.011124976,
0.04971316,
0.01654705,
-0.009418426,
-0.016359834,
0.0028334486,
0.052939042,
-0.001151201,
0.047840994,
-0.01402683,
-0.04254133,
0.028442495,
0.036550406,
-0.018520024,
-0.0074598542,
0.072006315,
0.023632472,
0.031769186,
-0.024266127,
-0.01094496,
0.017123101,
0.013198758,
-0.056481753,
0.013782009,
-0.011830637,
0.01836161,
0.057317026,
0.011002565,
-0.021544289,
-0.013825213,
0.004021553,
-0.0031322746,
-0.00040863582,
-0.013710002,
-0.015913395,
0.03715526,
-0.000060811584,
-0.001527434,
-0.08946065,
-0.018736044,
0.01345078,
-0.024366938,
-0.03318051,
0.0000039765205,
0.0056848987,
0.0050152396,
0.017367924,
0.042714145,
-0.0052960645,
-0.032402843,
-0.029148156,
-0.02475577,
0.04847465,
0.04570961,
-0.017871967,
0.03410219,
-0.016849477,
-0.009188006,
0.019571315,
-0.0626743,
0.01504932,
-0.009152003,
0.019240087,
0.06146459,
0.00638696,
-0.0053212666,
0.003999951,
0.002349206,
-0.064920895,
-0.011369797,
0.025605446,
0.023819689,
-0.01984494,
0.0037299271,
-0.0102536995,
-0.024338134,
0.00049639354,
-0.05106688,
0.01996015,
-0.0028352486,
-0.020781022,
0.025187809,
-0.025288617,
0.07062379,
-0.017583942,
0.074656144,
-0.029090552,
-0.026584731,
0.0037947327,
-0.037587296,
0.030012231,
0.011787434,
-0.007218633,
-0.002143988,
0.0058217105,
0.026512725,
0.021832315,
-0.0034905062,
0.018390413,
0.030357862,
-0.008935983,
0.025173407,
-0.0030080639,
0.01960012,
0.0296666,
-0.011160979,
0.016230224,
-0.0041331626,
0.028500099,
-0.0035661128,
0.03502387,
0.027347999,
-0.037529692,
0.036579207,
0.01722391,
-0.015178931,
-0.010455317,
0.042310912,
0.044759125,
-0.025735056,
-0.025461433,
0.06088854,
-0.029061748,
0.028687315,
0.024021307,
0.0024788175,
-0.02600868,
0.021126652,
-0.028572105,
0.016979089,
0.037904125,
0.022105938,
-0.09055514,
0.0051340503,
0.025562242,
-0.018894456,
-0.021861117,
0.012701914,
-0.015711777,
0.02862971,
0.0070530185,
0.037040047,
0.0626743,
0.03355494,
-0.024453344,
0.0020917833,
0.0005670497,
0.035945553,
-0.024554154,
0.03557112,
0.025821464,
0.0017389525,
0.014761294,
0.048359443,
0.000013669949,
0.018102387,
0.06757072,
0.02599428,
-0.001083695,
0.01129779,
0.012183469,
0.011110574,
0.023690077,
0.050375618,
-0.02452535,
0.0016705465,
-0.014271651,
0.03295009,
-0.030645888,
0.034476623,
-0.04470152,
0.049799565,
0.029263366,
0.022667589,
-0.020953838,
-0.023819689,
0.030012231,
0.027492011,
-0.0478986,
-0.002873052,
0.020219373,
-0.008770369,
-0.022552378,
0.015006116,
0.01882245,
0.019686526,
0.0078990925,
0.022091538,
-0.007596666,
-0.05279503,
0.004558,
-0.04415427,
-0.034735847,
-0.00029207562,
-0.046314463,
-0.028528903,
-0.0012358084,
-0.022609983,
0.039027423,
-0.025288617,
0.020492997,
0.013400375,
-0.041101206,
0.033122905,
0.029724207,
0.0075534624,
-0.04582482,
-0.0005751504,
-0.0074310517,
0.00866956,
-0.01562537,
0.006476968,
0.01288913,
-0.033986982,
0.029522588,
-0.008727165,
-0.015682975,
0.022336358,
-0.02576386,
0.0023942098,
-0.043088578,
0.014062833,
0.005792908,
0.0011241985,
-0.045335177,
-0.0031988805,
0.029047348,
-0.019369699,
0.051959757,
0.04084198,
0.0041475636,
0.054811206,
0.0025922274,
0.03784652,
-0.028816927,
0.02769363,
0.018217597,
0.040669166,
-0.020348985,
-0.010678536,
-0.06353837,
0.026498323,
-0.017281516,
0.0036543205,
-0.020953838,
0.010160091,
-0.0039315447,
-0.07396489,
0.005152052,
-0.04015072,
-0.0148909055,
-0.019672126,
-0.05305425,
0.042627737,
0.044643916,
-0.0043023773,
0.0004230371,
-0.014509273,
-0.03545591,
0.023085224,
-0.0031070726,
-0.0120106535,
0.050318014,
0.0070782206,
-0.021601895,
0.0050260406,
0.033439733,
-0.038508978,
-0.013652397,
0.008561551,
0.031452358,
-0.0060593314,
0.013285165,
-0.006624581,
0.056193728,
0.048532255,
-0.0028766522,
-0.017814362,
0.02782324,
0.023978103,
-0.0028154468,
0.036435194,
-0.029392978,
-0.0330653,
-0.021904321,
0.007603867,
0.002781244,
0.08081989,
0.06296232,
-0.02793845,
-0.013357172,
0.004914431,
-0.061176565,
-0.046026435,
-0.048388243,
-0.0025076198,
0.037817717,
0.024323734,
0.014048432,
-0.022019532,
-0.031884395,
0.02451095,
-0.030876307,
0.03055948,
0.04493194,
-0.013436378,
-0.0071610278,
0.022609983,
0.012723516,
-0.0043635825,
0.018289603,
-0.0048388243,
0.030818703,
-0.009375222,
-0.05460959,
-0.018419215,
0.0019261689,
0.00072816387,
0.021933123,
0.040813178,
0.0683772,
0.025245413,
0.042339712,
0.022293154,
-0.031193135,
0.037270468,
-0.046631288,
-0.003467104,
0.013025942,
0.031452358,
-0.013465181,
-0.026023082,
-0.01129779,
0.011189781,
-0.0020575805,
0.010707339,
-0.042570133,
-0.0073050405,
0.04778339,
0.029292168,
-0.005173654,
-0.017151903,
-0.006635382,
-0.0023924098,
0.045104757,
-0.012529098,
0.03021385,
-0.05051963,
0.011002565,
0.04755297,
-0.02862971,
-0.029277768,
0.001949571,
-0.0444711,
-0.030991517,
0.037443284,
0.038278557,
-0.031970803,
-0.004413987,
0.0055336854,
0.012608306,
0.020233775,
-0.04061156,
-0.0005026941,
0.023214836,
-0.0045111957,
0.025821464,
0.03865299,
-0.0063581574,
-0.03922904,
0.036896035,
-0.008266325,
0.02325804,
-0.044096667,
0.015366147,
-0.02271079,
-0.010073683,
0.035081476,
0.017756756,
-0.018548826,
0.0078774905,
-0.0131843565,
0.01949931,
-0.022653187,
-0.016086211,
0.016100612,
-0.01265151,
0.015063721,
0.005270862,
0.039257843,
-0.02042099,
0.014034031,
-0.0009297815,
-0.0016948486,
-0.01219787,
-0.025187809,
0.03433261,
-0.018966462,
-0.018390413,
0.03329572,
-0.031020321,
0.009605642,
0.008647959,
-0.010462518,
0.022638785,
-0.023416454,
0.015135727,
0.016259026,
-0.03715526,
0.003512108,
-0.010476919,
0.00307827,
-0.0053680707,
-0.027780036,
-0.02587907,
-0.0069630104,
-0.017065497,
-0.019254489,
0.049540345,
0.0125723025,
0.030012231,
-0.032662064,
-0.010793746,
0.036435194,
-0.017238311,
-0.03168278,
-0.028039258,
-0.040813178,
0.01436526,
0.005540886,
-0.049108308,
0.037673704,
-0.027981654,
0.011780233,
0.026973566,
0.039027423,
0.008151115,
-0.0661882,
-0.007985501,
0.029897021,
-0.00422317,
-0.07148787,
0.011240185,
-0.001356419,
-0.014624482,
0.03502387,
0.04265654,
0.013839614,
-0.027535215,
-0.04619925,
0.029032946,
-0.016287828,
-0.028024858,
-0.023934899,
-0.05106688,
-0.0033824965,
0.051038075,
0.0051232493,
-0.038249753,
-0.037932925,
-0.045594398,
0.01722391,
-0.019412903,
0.0036507202,
0.017425528,
0.017036693,
-0.023286842,
0.047956206,
-0.012233873,
-0.0070782206,
0.0035391103,
-0.03456303,
0.02441014,
0.010570527,
-0.010556126,
0.00022265702,
0.023690077,
0.024770172,
-0.017713554,
0.048762675,
0.0017731555,
0.037040047,
-0.023315644,
0.021501085,
-0.020809826,
-0.011794634,
-0.025979878,
0.021961926,
0.015855791,
-0.030041035,
-0.0056272936,
-0.049137108,
0.025000593,
0.008979187,
0.0009738854,
-0.042310912,
0.00833113,
-0.05760505,
-0.022321958,
0.028932137,
-0.03361255,
0.005504883,
-0.00433118,
-0.008712764,
0.05691379,
-0.055704083,
0.0036903236,
0.07436812,
-0.021645099,
0.017151903,
-0.044039063,
0.061406985,
-0.021501085,
0.0048640263,
-0.029753009,
0.03315171,
-0.036464,
-0.03136595,
-0.02269639,
0.023747683,
-0.017396726,
-0.0102320975,
0.020824226,
-0.050346814,
0.062098246,
-0.01893766,
-0.05164293,
-0.02782324,
0.009987276,
0.029925825,
0.009699251,
-0.008172717,
0.03513908,
0.020507399,
-0.0048064217,
-0.03355494,
0.009519235,
-0.024842178,
0.052766226,
0.039257843,
0.005602091,
0.039776288,
0.058785956,
-0.05028921,
-0.07932216,
-0.014041231,
0.027664825,
-0.030818703,
0.0019351697,
0.004115161,
0.029104952,
-0.01607181,
0.010412113,
0.023560466,
-0.0022267953,
-0.005922519,
0.0065201716,
0.033353325,
-0.028557705,
-0.001198005,
0.084679425,
-0.022163544,
0.016964687,
-0.091764845,
-0.020550603,
0.015193332,
0.0049432334,
0.03559992,
-0.011031368,
0.0023708078,
0.025576644,
-0.024251727,
0.069471695,
0.022811601,
0.016950287,
0.052276585,
-0.046256855,
-0.03387177,
-0.014818899,
0.031077925,
-0.043174986,
0.016331032,
0.025130203,
0.010476919,
0.012809923,
0.05688499,
-0.012536299,
-0.058641944,
-0.012831525,
-0.03511028,
-0.00086947624,
-0.037472088,
0.0035157083,
-0.0013177155,
0.010311305,
0.013364372,
-0.01756954,
-0.01720951,
0.044067863,
0.00501884,
-0.022681989,
-0.0016543451,
-0.011650622,
-0.014415665,
-0.010095285,
-0.019758532,
-0.019571315,
-0.0015229336,
-0.027636023,
0.0084967455,
-0.013580391,
-0.044327088,
0.01539495,
-0.02384849,
0.039027423,
-0.02157309,
-0.044643916,
-0.0125795035,
-0.015697377,
-0.033238113,
0.02896094,
0.040093116,
-0.029925825,
0.04720734,
-0.01036891,
-0.010656934,
-0.004687611,
-0.004910831,
0.027247189,
-0.0076254685,
-0.029148156,
0.0065885778,
-0.00055354857,
-0.055732887,
-0.0027182384,
-0.019225687,
0.044845533,
0.02680075,
0.0025292218,
-0.001664246,
0.031077925,
0.0019891744,
0.039401855,
0.005940521,
0.025259815,
0.025231013,
-0.02769363,
0.021429079,
-0.006718189,
0.0119890515,
0.003114273,
-0.010476919,
0.024726968,
-0.01186664,
-0.0000045074266,
-0.03341093,
-0.0273768,
-0.03355494,
0.028471297,
0.020910634,
0.014235648,
-0.013825213,
-0.022955613,
0.01882245,
-0.009036792,
0.003351894,
0.025720656,
-0.08133833,
-0.017425528,
0.020276979,
-0.022264352,
0.0072474354,
-0.032028407,
-0.043952655,
-0.027117578,
-0.0056416946,
-0.0040971595,
-0.020608207,
0.025591044,
0.00616014,
0.040870786,
-0.044442296,
0.03490866,
-0.003708325,
0.024021307,
-0.016201422,
-0.056856185,
0.05175814,
0.039632276,
0.017108701,
-0.0020215772,
-0.052708622,
0.032258827,
-0.013522786,
0.039632276,
-0.018836852,
0.034159794,
-0.034937464,
-0.010880155,
-0.03784652,
0.005648895,
-0.021270664,
-0.020291379,
0.06710988,
0.019542513,
0.01322756,
0.03021385,
0.0053464686,
-0.024338134,
0.05838272,
0.011362596,
0.030732295,
-0.03090511,
-0.016374236,
-0.034044586,
0.043261394,
0.03914263,
-0.015236536,
0.0056272936,
0.010865753,
-0.0022159943,
-0.019067273,
-0.030645888,
0.0045147957,
0.017180707,
-0.027189584,
0.008395936,
0.012104262,
-0.032978892,
-0.017065497,
0.012478694,
-0.004115161,
0.0013177155,
0.0041907676,
-0.020651411,
-0.05040442,
-0.02007536,
0.010397712,
-0.015452555,
0.032777276,
-0.03332452,
0.027189584,
0.029148156,
-0.005742504,
-0.031769186,
0.02543263,
-0.012737917,
0.038508978,
0.008309528,
-0.04729375,
0.036809627,
-0.0022411966,
0.03522549,
-0.026872756,
-0.012284277,
-0.024582956,
-0.020651411,
-0.0064841686,
0.035052672,
-0.02200513,
0.0057749064,
-0.007971099,
-0.028111266,
-0.014818899,
-0.044096667,
-0.013292366,
-0.037558492,
0.014667686,
0.02792405,
-0.030818703,
-0.05460959,
0.020565003,
-0.0011088973,
0.01300434,
0.0040647564,
0.049684357,
0.0015814387,
0.05962123,
0.012680312,
-0.02361807,
-0.0017200508,
-0.015337345,
-0.037241668,
-0.029868219,
0.04778339,
-0.0043491814,
-0.015178931,
-0.0057533043,
-0.038048137,
-0.026627935,
0.023906097,
-0.040755574,
-0.07477136,
-0.021832315,
0.018620834,
-0.032258827,
0.003602116,
0.06284711,
-0.0036741223,
-0.009728053,
-0.02200513,
-0.040035512,
-0.043376602,
-0.008071908,
-0.051383708,
-0.016604656,
0.011917045,
-0.06169501,
-0.04288696,
-0.013630795,
-0.01631663,
0.02668554,
-0.015207734,
0.029493786,
-0.0035193085,
0.030012231,
0.026498323,
0.04366463,
-0.008143914,
-0.010786545,
0.028068062,
0.044528704,
0.021501085,
0.057749063,
0.04141803,
-0.02350286,
-0.02792405,
0.001949571,
0.034390215,
-0.04300217,
0.028140068,
0.00048874284,
-0.017195107,
-0.039315447,
-0.02042099,
0.026080687,
0.08254804,
0.003548111,
-0.05766266,
-0.015438153,
-0.021385875,
-0.064978495,
-0.026771948,
-0.035513513,
0.028759321,
0.0061061354,
0.010023279,
0.020464195,
-0.054811206,
0.24678004,
0.055704083,
0.032546856,
0.03637759,
0.02337325,
0.09245611,
0.035542317,
-0.02248037,
-0.010649734,
-0.044039063,
0.0035751136,
-0.023747683,
0.020939436,
0.013645196,
-0.020161768,
0.0376449,
-0.04288696,
-0.00015650122,
0.0058109094,
-0.012471493,
-0.035974354,
0.0285145,
-0.0055804895,
0.09896548,
0.05916039,
0.021846715,
0.041763663,
-0.013486783,
-0.04242612,
-0.06284711,
0.01300434,
-0.037040047,
0.0017569541,
-0.0006431064,
-0.084621824,
0.035974354,
-0.019412903,
-0.048647467,
0.029047348,
-0.034246203,
0.029162558,
-0.010217696,
-0.017929573,
-0.0010170892,
-0.031538766,
-0.01003768,
0.0019207684,
0.056366544,
0.074656144,
-0.060370095,
-0.010109686,
-0.022379562,
0.07920694,
-0.038825806,
0.02589347,
-0.01607181,
0.045997635,
-0.052996647,
0.0025616246,
0.021515487,
-0.008453541,
-0.005634494,
-0.025907872,
0.011693825,
-0.043635827,
0.015063721,
0.014847702,
0.092744134,
-0.020449793,
-0.02073782,
-0.010685737,
-0.006167341,
0.009418426,
-0.05224778,
0.02109785,
0.005778507,
-0.003135875,
0.024784574,
0.027448807,
-0.022408364,
-0.0119818505,
-0.02543263,
-0.009396824,
-0.020492997,
0.010764944,
0.018736044,
-0.0615798,
0.005051243,
-0.026167095,
0.05806589,
0.009785658,
0.009965674,
-0.03559992,
0.023402052,
-0.01801598
] | Similarly, one can overwrite the chat prompt template. Note that the chat mode always uses the following format for the exchanges:
```text
Human: <>
Assistant:
Therefore it is important that the examples of the custom chat prompt template also make use of this format.
You can overwrite the chat template at instantiation as follows.
thon
template = """ [] """
agent = HfAgent(url_endpoint=your_endpoint, chat_prompt_template=template) |
[
-0.007462165,
-0.0030078846,
0.008444752,
0.008918867,
-0.0126018515,
-0.027581152,
-0.0027828515,
0.0025234623,
0.050902136,
0.034081344,
0.027539924,
0.0034081342,
0.034493618,
0.002056218,
-0.0094891805,
-0.004555631,
-0.008135546,
0.0007189033,
-0.050847165,
0.007352225,
-0.027003966,
-0.022812512,
-0.05431027,
-0.031992488,
-0.027361272,
0.021438263,
-0.002446161,
0.0016946192,
0.08971089,
0.060576838,
-0.05175417,
0.0051603,
-0.009317399,
-0.014993042,
-0.037324566,
-0.03017848,
0.027278816,
-0.014745678,
-0.028446928,
-0.05178165,
0.024530321,
-0.030590754,
0.031222908,
-0.042684134,
-0.049637824,
-0.007640817,
0.04221689,
0.020022789,
0.04155725,
-0.056289185,
0.018016387,
0.029491356,
0.03540062,
0.0056069307,
-0.021190898,
-0.0057409196,
-0.03606026,
0.013330203,
-0.048181124,
-0.010293115,
-0.017301777,
0.025780886,
-0.013412657,
-0.027292559,
0.013804317,
0.014525798,
-0.021658143,
0.022743799,
-0.008314199,
-0.024873883,
-0.03834151,
0.050132554,
-0.051589258,
-0.029024111,
-0.0056550293,
0.018469889,
0.002136955,
-0.015625196,
0.0073384824,
0.044415686,
0.013749348,
0.031387817,
0.00624252,
-0.03485092,
0.0048407875,
0.012423199,
-0.0034682576,
0.006586082,
0.022949936,
-0.036335107,
-0.035812896,
0.036417563,
0.032652125,
-0.00033712015,
0.044140834,
0.012643078,
0.027278816,
0.038918693,
0.002987271,
0.013227134,
0.030920573,
0.06568904,
-0.048071183,
-0.031937517,
-0.023499636,
0.0137837045,
0.007812598,
-0.022152873,
0.004833916,
-0.03300943,
0.010293115,
-0.027457468,
0.029931115,
-0.040265456,
-0.012004053,
0.037571933,
-0.037489478,
0.012059024,
-0.02591831,
-0.0014249231,
0.026522981,
-0.008540949,
-0.033833977,
-0.053183384,
-0.022345267,
0.013199649,
0.011138277,
0.030893087,
0.011440611,
-0.008011864,
0.011619264,
-0.03606026,
0.03628014,
0.014292176,
0.025437325,
0.046037298,
-0.022372752,
0.010554222,
0.028282017,
-0.038368996,
0.026330585,
0.010196918,
0.040128034,
0.088006824,
0.021012247,
0.043371256,
0.0155564835,
-0.008870768,
-0.06458964,
0.06442473,
0.008018735,
-0.021781826,
-0.014883102,
0.03185506,
-0.004926678,
-0.036197685,
-0.040512823,
-0.02707268,
0.054090388,
0.020132728,
-0.01842866,
0.015075497,
-0.036032774,
0.04235431,
0.0010701953,
0.041694675,
-0.02796594,
-0.0064280434,
-0.0009714213,
-0.017659083,
-0.002272662,
0.023375953,
-0.009729673,
0.026729118,
0.07085621,
-0.00004117375,
0.03622517,
0.052413806,
0.020847337,
0.019596772,
0.014065425,
0.0029838353,
0.014993042,
-0.0017315521,
-0.012436941,
-0.025780886,
0.040457852,
0.036445048,
-0.035812896,
-0.046614483,
0.043920957,
0.008637147,
-0.013996713,
0.04188707,
0.0040093674,
-0.0072491565,
-0.034960862,
0.025533522,
0.027278816,
-0.07305501,
-0.020462548,
0.022551404,
0.005909265,
0.011461225,
-0.013130937,
-0.031965002,
0.024516579,
0.05076471,
-0.018195039,
0.020407578,
0.02962878,
0.025712173,
-0.037516963,
-0.010629806,
-0.01731552,
-0.02951884,
-0.021630658,
0.08855652,
0.00391317,
-0.0027656734,
-0.004620908,
0.03674738,
0.06717323,
0.005342388,
-0.014250948,
-0.01021066,
-0.037874267,
0.08047594,
0.00535613,
0.0030834682,
-0.0073934523,
-0.0030267804,
0.02924399,
0.07679296,
0.007063633,
0.050242495,
0.041694675,
0.033586614,
-0.0017659082,
0.0103068575,
0.031827576,
0.027141392,
-0.00031972732,
0.047301605,
-0.020352608,
-0.010080107,
0.017246809,
-0.025684688,
-0.016188638,
-0.022730056,
-0.035538044,
0.07113106,
0.028556867,
0.025382355,
-0.051039558,
-0.04776885,
0.013776833,
0.0432888,
-0.049417946,
-0.011110793,
0.00079534587,
0.032377277,
-0.0089669665,
0.0068471893,
0.05870786,
0.012842344,
0.03551056,
-0.029079081,
-0.0003287458,
-0.01930818,
0.01864854,
-0.0028910735,
-0.049857706,
0.04339874,
-0.032872003,
0.0049507273,
0.020888565,
-0.03424625,
-0.0064452216,
-0.02774606,
0.044195805,
0.04433323,
-0.05238632,
0.032212365,
0.02951884,
-0.014113524,
-0.0072697704,
0.0035060493,
-0.03905612,
-0.0015048012,
-0.050297465,
-0.028831717,
-0.0012849215,
-0.04488293,
-0.009551021,
0.011179505,
-0.035153255,
-0.022675086,
-0.011791045,
-0.04361862,
-0.023870682,
-0.02869429,
-0.047851305,
-0.011344414,
-0.014168493,
0.009015065,
0.032102425,
-0.030096024,
0.038753785,
0.04260168,
0.007908795,
0.039908152,
0.007386581,
0.009880841,
-0.078826845,
0.044855446,
0.024104305,
-0.004868272,
-0.058213133,
0.015693909,
-0.0087677,
-0.0008473096,
-0.014841875,
0.0102381455,
-0.0051637357,
0.03474098,
0.01715061,
-0.07091118,
0.03704972,
-0.014525798,
0.017164353,
-0.07118603,
-0.00317623,
-0.0029752462,
-0.010684776,
0.01680705,
-0.010354957,
-0.009846484,
-0.02292245,
-0.0087677,
0.0010521584,
-0.047988728,
0.056509063,
0.003509485,
0.0021970784,
-0.015446544,
0.030150995,
-0.021987963,
0.0042773457,
-0.020984761,
0.026564207,
0.009145618,
0.008458494,
0.054227814,
0.030041054,
0.04565251,
-0.033888947,
-0.009015065,
0.008121803,
0.035757925,
0.03628014,
0.034576073,
0.022152873,
-0.0593675,
-0.02957381,
-0.02896914,
0.007922538,
0.014553283,
0.027801031,
-0.037022233,
0.01519918,
-0.015006784,
-0.027223846,
0.0038513292,
-0.02968375,
-0.006311232,
0.03611523,
-0.025588492,
0.027031451,
-0.018840935,
-0.019871622,
0.01675208,
0.03622517,
0.033861462,
0.0076545593,
0.022785027,
0.008059963,
-0.02042132,
-0.0070086634,
-0.0036520632,
-0.0033875206,
-0.017246809,
0.05980726,
-0.021122187,
-0.034933377,
-0.030480813,
0.009605992,
0.009557893,
0.057608463,
-0.00023705773,
0.0051671714,
0.021149673,
0.011220733,
0.037654385,
-0.02802091,
0.060027137,
-0.01664214,
0.017604113,
0.020338865,
0.012959155,
-0.021383293,
-0.013467628,
-0.032926973,
0.038808756,
-0.014663222,
0.008382911,
-0.0412824,
0.010993982,
-0.014154751,
-0.01675208,
-0.0063181035,
-0.024434123,
-0.022111645,
0.03611523,
0.017741537,
-0.021960478,
-0.0043804143,
-0.046202205,
0.0083073275,
0.054667573,
-0.0231973,
-0.020874823,
-0.0014549848,
-0.04510281,
-0.041969523,
0.01702693,
0.034163795,
-0.012622464,
0.012340744,
-0.045487598,
-0.006314668,
-0.031277876,
-0.03529068,
-0.0038478936,
-0.021534462,
0.0020064015,
-0.010739746,
0.011749818,
-0.023664545,
-0.03375152,
0.010705389,
-0.029656265,
0.0013656586,
0.020050274,
0.017576627,
-0.0058611664,
0.005565703,
0.013976099,
0.024873883,
-0.017975159,
-0.02791097,
0.026619177,
0.007235414,
-0.024873883,
-0.037709355,
0.02385694,
0.025231188,
-0.043013953,
0.037214626,
0.015350346,
-0.030865602,
0.02086108,
0.025286157,
-0.030480813,
0.008815799,
-0.024118047,
-0.012189577,
0.022881223,
-0.034383677,
0.048401,
-0.048373517,
0.0593675,
0.03006854,
-0.009317399,
0.0020802675,
-0.046504542,
-0.0052221413,
-0.021836795,
-0.020132728,
0.019569287,
-0.0013235722,
-0.014938072,
0.044580594,
-0.03806666,
0.011358157,
-0.045679994,
0.00737971,
0.006431479,
0.04677939,
0.00029889887,
0.044498138,
-0.051067043,
-0.012519396,
0.021259611,
-0.030920573,
0.010918397,
0.012959155,
0.016944474,
0.00754462,
0.0252999,
-0.03567547,
0.002879049,
-0.015309119,
-0.019706711,
0.004249861,
0.036939777,
0.000236843,
-0.046092268,
-0.04389347,
0.038094144,
0.009860227,
-0.07365967,
-0.054282784,
0.03878127,
-0.016339805,
0.024777686,
0.06766795,
0.02442038,
-0.036829837,
-0.030480813,
0.00047325654,
-0.016394775,
-0.020778624,
-0.0015632068,
-0.0031710765,
-0.0076270746,
0.028996626,
0.050572313,
-0.04688933,
-0.029656265,
-0.052606203,
0.014608253,
-0.038039174,
-0.025725916,
0.011949084,
-0.0014232052,
-0.020984761,
0.06327036,
-0.009722802,
0.019596772,
-0.043206345,
-0.020325122,
0.031662665,
0.0056859497,
0.020599972,
-0.0054591987,
-0.032102425,
0.027457468,
-0.020448806,
0.048620883,
0.0027089857,
0.057223674,
-0.025231188,
0.020654943,
-0.004882015,
0.011413127,
-0.044030897,
0.010245017,
0.01980291,
-0.019280694,
-0.017411718,
-0.027003966,
0.06568904,
0.0050056973,
0.0013682353,
-0.030728178,
-0.019390635,
-0.07256028,
-0.040265456,
0.0020149907,
-0.006476142,
-0.0012119147,
-0.013020997,
-0.04361862,
0.033888947,
-0.035208225,
0.023966879,
0.072780155,
0.0027038322,
0.03828654,
-0.057608463,
0.015611454,
0.043811016,
0.014828132,
-0.048071183,
0.02292245,
-0.016408518,
-0.0028326681,
-0.019610515,
-0.033146854,
-0.027649863,
-0.00926243,
0.031112967,
-0.044965383,
0.047246635,
-0.015762622,
-0.05903768,
-0.03355913,
0.05026998,
0.010004523,
0.0076202033,
0.031497758,
0.03523571,
0.023678288,
0.026976481,
-0.002526898,
0.0350708,
-0.045982327,
0.06700832,
0.02358209,
-0.00496447,
-0.0031195423,
0.045295205,
-0.02020144,
-0.033641584,
0.02464026,
-0.009049421,
-0.021534462,
-0.04455311,
0.012794246,
-0.04427826,
-0.009791515,
0.015254149,
0.014580768,
0.015309119,
0.0206412,
0.006964,
0.012512526,
0.0032861698,
0.0013381736,
0.0469443,
0.00067166355,
0.013020997,
-0.044910412,
-0.027045194,
-0.016559685,
0.005125944,
0.07305501,
0.039825696,
0.025987023,
0.030233448,
0.0010770666,
0.05738858,
-0.04172216,
0.049692795,
0.039825696,
-0.06464461,
-0.06964687,
-0.009454824,
0.024049334,
0.010162561,
-0.0010504406,
0.0030834682,
0.0065757753,
0.032377277,
0.0068506245,
0.008575305,
-0.09526285,
-0.0035524303,
-0.037407022,
-0.011962826,
0.042519223,
-0.012251418,
0.021232126,
-0.00036739654,
-0.04939046,
0.0019926592,
-0.041035037,
0.046532027,
0.016174896,
-0.015913788,
-0.00943421,
0.025203703,
-0.028227048,
-0.058542952,
-0.021122187,
-0.00069356564,
0.0017564603,
-0.026206903,
-0.00821113,
-0.037324566,
-0.016916988,
0.03366907,
-0.032102425,
-0.004249861,
-0.005421407,
-0.01664214,
0.0053355168,
0.004892322,
-0.03828654,
0.031030513,
0.02924399,
-0.013728734,
0.03911109,
0.0071323453,
0.011633007,
-0.04488293,
-0.024214244,
0.04067773,
0.020833595,
-0.021823052,
-0.017604113,
-0.013859288,
-0.024392895,
-0.017975159,
-0.008059963,
-0.020613715,
0.023403438,
-0.0064246077,
-0.014786905,
-0.0026454267,
-0.024269214,
0.0027656734,
-0.025396097,
0.0057958895,
0.010774102,
0.011811659,
0.02896914,
-0.053348295,
0.018181296,
-0.0013854135,
0.03985318,
0.023650803,
-0.029051596,
-0.006586082,
-0.017714053,
-0.013495112,
-0.045927357,
-0.03245973,
0.0049610343,
0.023169816,
0.026234388,
0.070031665,
0.00654829,
0.021259611,
-0.036087744,
0.026674148,
-0.062445816,
-0.05870786,
0.031607695,
-0.04315138,
-0.019940333,
-0.000911298,
-0.038478933,
-0.020228926,
0.010945883,
-0.03685732,
0.0367199,
0.028227048,
0.002200514,
0.012471298,
-0.058103193,
0.0029288654,
-0.0058405525,
0.03130536,
-0.032432247,
-0.034905892,
0.013433271,
-0.012388843,
-0.0024702102,
0.023375953,
-0.008135546,
-0.027251331,
-0.0026488623,
0.029491356,
0.00013699531,
0.0070842467,
-0.045240235,
-0.0047961245,
-0.054502662,
0.05914762,
-0.015638938,
0.023156073,
0.023884425,
-0.021190898,
0.023458408,
0.05414536,
0.016573427,
0.020737397,
0.05565703,
0.023499636,
0.046119753,
-0.02135581,
-0.039138574,
0.012395714,
-0.0016276246,
-0.016628398,
0.029601295,
0.005510733,
0.037269596,
0.027278816,
-0.004150228,
-0.018057615,
0.021190898,
0.0036658056,
-0.004122743,
0.050737225,
-0.0143059185,
-0.0013459038,
-0.005620673,
-0.029079081,
0.030150995,
-0.027539924,
-0.017604113,
-0.051451832,
-0.025932053,
0.049033158,
-0.011110793,
-0.0044285133,
0.012753018,
-0.038891207,
-0.0041914554,
-0.010162561,
0.0042876527,
-0.03284452,
0.046064783,
0.019789167,
-0.0012376818,
0.019349407,
0.02135581,
0.04504784,
-0.013776833,
-0.0026402734,
-0.003957833,
0.018662283,
-0.003799795,
-0.052166443,
-0.025217446,
0.03006854,
0.004586552,
-0.002562972,
0.031112967,
-0.0045281462,
0.02157569,
-0.017109383,
0.0028910735,
-0.051341895,
0.0113512855,
0.044003412,
0.015240407,
-0.027402498,
0.04834603,
-0.011172634,
0.03718714,
0.025121247,
0.04133737,
-0.004404464,
0.028474411,
-0.0072285426,
-0.025478551,
-0.029271476,
-0.026948998,
-0.022249069,
-0.04727412,
-0.007207929,
-0.018937133,
-0.00097485696,
-0.02802091,
-0.053843025,
-0.0035421234,
0.024008106,
-0.034383677,
-0.024654003,
-0.013447014,
0.036252655,
-0.06535922,
-0.007427809,
0.08228995,
0.0061772433,
-0.023444666,
-0.036884807,
-0.0011062694,
-0.07662805,
-0.010849685,
-0.06568904,
0.002987271,
0.010753488,
-0.041749645,
-0.0045075323,
-0.02951884,
-0.0057958895,
-0.037764326,
-0.026096964,
0.025368612,
0.042904012,
0.03410883,
0.020009046,
0.03006854,
-0.05549212,
0.0126705635,
0.006369638,
0.02990363,
-0.029079081,
0.07349476,
0.01731552,
-0.01448457,
-0.01448457,
0.027828515,
-0.024461608,
-0.05326584,
0.008485979,
0.018208781,
-0.033888947,
-0.024049334,
-0.030096024,
0.016628398,
0.04732909,
-0.013673765,
-0.04265665,
0.013447014,
-0.009564764,
-0.039028633,
-0.028639322,
-0.054722544,
-0.013474499,
-0.011770431,
-0.011550551,
-0.000010206205,
-0.05277111,
0.22108896,
0.027141392,
-0.004057466,
0.034466133,
0.022908708,
0.0695919,
0.010616063,
-0.056179244,
0.022386495,
-0.08157534,
0.009338013,
0.028364472,
0.02202919,
0.06915215,
0.0010590296,
0.040320426,
-0.05016004,
0.008080577,
0.011914727,
-0.046696935,
-0.055134818,
0.0017461535,
0.015625196,
0.0588178,
0.024818912,
0.038423967,
0.010451154,
-0.012979769,
0.0029254297,
-0.039880667,
0.041474793,
-0.028804231,
0.030700693,
-0.042931497,
-0.024736458,
-0.0009808693,
0.004349494,
-0.05980726,
-0.003628014,
0.009338013,
0.024214244,
-0.010382441,
0.020462548,
-0.038368996,
0.015611454,
0.022262812,
-0.013996713,
0.023843197,
0.02257889,
-0.042766586,
0.019376893,
-0.036197685,
0.04727412,
-0.02358209,
-0.023705773,
0.025670948,
0.0122376755,
-0.046999272,
-0.024406638,
-0.05065477,
-0.0030353696,
0.0026385556,
-0.035647985,
0.016023727,
-0.019734196,
-0.015102982,
-0.012581238,
0.030041054,
0.0014979299,
-0.049005672,
-0.0044972254,
-0.035373136,
0.02513499,
-0.06920711,
0.032322306,
0.01519918,
0.025313642,
0.046037298,
0.01803013,
-0.018566087,
0.011289445,
-0.024324184,
-0.0017246809,
-0.041419826,
0.0063902517,
0.010086978,
-0.04983022,
-0.02186428,
0.0010126488,
0.03174512,
0.038011692,
0.021039732,
-0.019871622,
0.035895348,
0.018607313
] | Please make sure to have the <<all_tools>> string defined somewhere in the template so that the agent can be aware
of the tools, it has available to it. |
[
0.015874846,
-0.017180441,
-0.019732285,
0.012744386,
-0.028159307,
-0.032699216,
-0.027818073,
0.0019899195,
0.008115459,
0.022298967,
-0.02710593,
-0.0060495036,
0.01534074,
-0.0099106515,
-0.0057119774,
-0.0055710324,
0.03204642,
-0.010229632,
-0.06551712,
0.0021345734,
0.003087806,
0.027936762,
-0.08468563,
-0.04661567,
-0.043678083,
-0.0027836617,
-0.0011683591,
0.0038314757,
0.092934616,
0.011876462,
-0.033589397,
-0.02602288,
-0.007206735,
-0.0077668056,
0.007633279,
-0.00025569444,
0.026289932,
-0.007358807,
-0.044508915,
-0.026008043,
0.012069334,
0.01008127,
0.009198509,
-0.049671948,
-0.06160034,
0.0023626816,
-0.017284295,
-0.029895155,
-0.009621344,
-0.012054498,
-0.0001745584,
0.028040616,
0.024761794,
0.009688107,
-0.037150107,
-0.014769542,
-0.04456826,
-0.04990933,
-0.041066892,
0.0022940636,
-0.025117865,
0.02569648,
-0.017684875,
-0.034390554,
0.04320332,
0.020296065,
-0.022536347,
-0.02091919,
-0.035725825,
-0.05195674,
-0.02766971,
0.06397415,
-0.018901452,
-0.05195674,
-0.014984668,
-0.024138669,
0.043114305,
0.0028689704,
0.025993207,
0.02698724,
0.0015745029,
0.07062081,
0.003525477,
-0.02858956,
-0.018100291,
-0.03536975,
0.058366023,
0.0019250106,
0.022432493,
-0.023545217,
-0.0032602781,
0.024539249,
0.010563449,
0.0044954005,
0.01750684,
0.07993801,
-0.0135826375,
0.059641946,
-0.007944841,
0.0053855786,
0.016839206,
0.0620751,
-0.03818865,
0.010481849,
0.03798094,
-0.008530876,
0.046704687,
-0.02136428,
-0.0161419,
-0.008197059,
0.03421252,
-0.027269129,
-0.0048922715,
-0.030829841,
-0.01574132,
0.022269294,
0.00441751,
0.0003959439,
-0.052105103,
-0.036200583,
0.019272361,
-0.036022548,
-0.0083157495,
-0.03617091,
0.010288978,
-0.00089620554,
0.013723582,
0.05100722,
0.0003342805,
-0.05572516,
-0.026393786,
-0.026453132,
0.043054957,
0.06278724,
-0.0059901583,
0.009005637,
-0.016230918,
0.0065205563,
0.03717978,
-0.06664468,
0.016512807,
0.027521346,
-0.008456694,
0.040117368,
0.028337343,
-0.0028485707,
0.007981932,
-0.0068024457,
-0.04955326,
0.016082555,
-0.004721654,
0.008241568,
-0.012091588,
0.008167386,
-0.02597837,
0.008115459,
-0.01626059,
-0.032461837,
0.0043544555,
0.032254126,
-0.0018165201,
0.039375555,
-0.035221387,
0.03851505,
-0.003139733,
0.029598428,
-0.018486036,
-0.009680689,
-0.010986284,
-0.06723814,
0.046467308,
0.018352509,
0.002601917,
-0.0060495036,
0.057772573,
0.012766641,
0.020147702,
0.0012360497,
0.029524248,
0.0106895575,
-0.02216544,
0.013923872,
0.01272955,
0.040028352,
-0.011609409,
0.028277997,
-0.01080083,
0.0056044143,
0.02541459,
-0.006954518,
-0.00646492,
0.021112062,
0.0020103194,
0.049404897,
0.00033497595,
0.034627937,
0.007585061,
0.007737133,
0.02903465,
-0.027610363,
-0.006661501,
0.034716953,
0.004521364,
0.011075302,
0.036734693,
-0.034598265,
-0.015607793,
0.03397514,
-0.03007319,
-0.0011748499,
0.06628861,
0.033055287,
-0.043678083,
0.029286867,
0.025236554,
-0.035844512,
-0.0075182975,
-0.00046085272,
-0.018842107,
-0.010704394,
-0.031126568,
0.028233489,
0.0487521,
-0.026304768,
-0.022343475,
-0.014710196,
-0.0078038964,
0.010726648,
-0.0112236645,
0.05795061,
0.003939039,
-0.00594194,
0.00582325,
0.05430088,
0.015370412,
-0.0021976277,
0.07999736,
0.042580195,
0.011201411,
0.035755496,
-0.01505885,
0.012670205,
0.025800334,
0.032788236,
-0.0012907585,
0.00393533,
0.02023672,
0.01023705,
0.02016254,
0.013093039,
-0.08516039,
0.023797434,
0.02421285,
-0.00006879177,
-0.018456364,
-0.04388579,
-0.0030024971,
0.012440242,
-0.004506528,
0.015207212,
0.06409284,
0.02899014,
-0.016186409,
0.0007520152,
0.014947577,
0.034390554,
-0.007826151,
0.024999173,
-0.026393786,
-0.033055287,
-0.018767927,
-0.014762124,
-0.050324745,
0.01003676,
-0.03115624,
0.0053076884,
0.009391381,
-0.03809963,
0.024079323,
-0.042224124,
0.017714549,
0.024791466,
-0.022254458,
0.047832247,
0.026289932,
0.0034104956,
-0.069433905,
0.0026649714,
-0.023382017,
0.026646003,
-0.016156737,
0.02364907,
-0.008998219,
-0.022744056,
0.016497971,
-0.013107875,
0.00079791504,
0.014087072,
-0.00803386,
0.007996769,
-0.0093765445,
0.025963534,
0.021008208,
-0.003518059,
-0.025666809,
-0.008968546,
0.028352179,
-0.027061421,
0.05658567,
0.019539414,
-0.025844844,
0.042105433,
0.019376215,
0.026913058,
-0.02376776,
0.057772573,
0.0035106407,
0.0031193332,
-0.04388579,
0.0085753845,
-0.057713225,
-0.0068803364,
-0.018812435,
-0.032906923,
-0.035162043,
0.046704687,
-0.013256239,
-0.07157034,
0.0021086098,
-0.015978701,
-0.03115624,
-0.01441347,
-0.024687612,
0.05204576,
-0.0022810819,
0.01590452,
-0.010311232,
-0.030859515,
-0.045161713,
-0.003404932,
-0.013323002,
0.020978535,
0.0012536678,
0.028381852,
-0.028411524,
-0.010541195,
0.049404897,
-0.051778704,
-0.016690843,
-0.026230587,
0.018945962,
-0.005756486,
0.0109640295,
0.01795193,
0.063380696,
0.042906594,
-0.06747551,
-0.0027317347,
0.00038945302,
0.032639872,
0.013753255,
0.044983678,
-0.016349608,
-0.029999008,
-0.023678742,
-0.01437638,
-0.030711152,
0.027803237,
0.07115492,
-0.0057082684,
0.035844512,
-0.0031452966,
-0.020607628,
-0.045310076,
-0.033856448,
-0.020948863,
0.036645673,
0.013033694,
0.016394118,
-0.0206373,
-0.055191055,
0.013901618,
-0.009984833,
0.046467308,
0.017195277,
0.026927894,
0.013167221,
0.032580525,
0.021260425,
-0.01915367,
0.033856448,
-0.0067727733,
-0.0022069004,
-0.029079158,
-0.06254986,
-0.033708084,
0.022833074,
0.024479903,
0.05910784,
0.05317332,
0.046229925,
-0.011498136,
0.037773233,
-0.0006421338,
0.0065242653,
0.021735188,
-0.049286205,
0.034894988,
0.009502653,
0.026601495,
-0.03536975,
-0.024999173,
-0.0045992546,
0.027076257,
-0.009769707,
0.01321173,
-0.030859515,
-0.003931621,
0.018352509,
0.022135768,
-0.015934192,
-0.037031416,
-0.020103194,
0.009072401,
0.045072693,
-0.01437638,
-0.012254788,
-0.037802905,
-0.002598208,
0.025192047,
-0.025592627,
-0.04952359,
0.010281559,
-0.008523458,
-0.051986415,
0.060650814,
0.045992546,
-0.0054708873,
0.011772608,
-0.011794862,
0.003677549,
0.014317035,
-0.0075071706,
0.003946457,
0.0068840454,
-0.0031007878,
0.03160133,
0.03842603,
-0.0002858307,
-0.0702054,
0.014999504,
0.0018563927,
-0.021616496,
-0.025622299,
0.013723582,
-0.0135900555,
-0.017655203,
-0.0056229597,
0.011772608,
-0.018753089,
-0.0072660805,
0.02818898,
0.012514424,
-0.013300748,
-0.040028352,
0.039642606,
-0.019687777,
0.020177376,
0.017180441,
0.032343145,
-0.010748903,
0.01903498,
-0.00034958043,
-0.016601825,
0.006476047,
0.0034920953,
0.048010282,
-0.014954995,
0.0024220268,
0.02461343,
-0.033352014,
0.058484714,
-0.020711482,
-0.021468133,
-0.028574724,
-0.02642346,
0.002008465,
0.0031768237,
-0.0073365527,
0.054745965,
-0.015414921,
-0.021453297,
-0.0030859516,
-0.04795094,
-0.025518445,
-0.017402986,
-0.003360423,
-0.017640367,
0.054419566,
0.016038045,
0.022491839,
-0.023589725,
-0.043114305,
0.031512313,
-0.038040288,
-0.010941775,
-0.023752924,
-0.011193993,
0.002525881,
-0.049612604,
-0.046229925,
0.0412746,
-0.0093172,
0.027803237,
0.022818238,
0.036794037,
0.017714549,
-0.052668884,
0.011987735,
0.03115624,
-0.013345256,
-0.08237117,
-0.021661006,
0.0034605681,
0.02124559,
0.009769707,
-0.009740034,
-0.008775675,
-0.023886451,
-0.047327813,
0.052372158,
-0.009710361,
-0.014962413,
-0.011653918,
-0.05284692,
0.003670131,
0.016245754,
-0.00646492,
-0.060354088,
-0.0184712,
-0.025770662,
0.020488936,
-0.029464902,
-0.008538294,
0.002674244,
0.020815335,
-0.026675677,
0.035725825,
0.00048542535,
-0.01915367,
-0.0021976277,
-0.0057416502,
0.003987257,
0.05798028,
-0.008560548,
-0.012321551,
-0.016854042,
-0.03213544,
-0.00045552093,
0.034538917,
-0.029004976,
0.024390886,
-0.016319936,
0.0112162465,
-0.00795226,
-0.036437966,
-0.023322672,
0.021304933,
-0.00485889,
-0.047416832,
0.008708911,
-0.0109640295,
0.015815502,
-0.026037715,
0.0001825561,
-0.025622299,
0.009984833,
-0.031957403,
-0.048514716,
0.011498136,
-0.037150107,
-0.040532786,
0.0009263418,
-0.027565856,
0.028396688,
-0.054924,
0.025622299,
0.060205728,
-0.0063091386,
0.008916619,
-0.08694075,
0.043232992,
0.013456529,
-0.027372982,
-0.013382347,
0.010259305,
-0.03501368,
-0.008278659,
-0.044746295,
0.0032973688,
-0.034153175,
0.010133197,
0.034034483,
-0.03332234,
0.034924664,
0.0037443126,
-0.041868053,
-0.08106557,
0.0409482,
-0.005886304,
0.023159472,
0.01574132,
0.053588733,
0.0469124,
0.008708911,
-0.01666117,
-0.015993537,
-0.02124559,
0.057416502,
0.037921596,
-0.01738815,
0.026690513,
0.01437638,
-0.06836569,
-0.057920936,
-0.025592627,
0.030221554,
-0.047238797,
0.0012295588,
0.0012870495,
0.031631004,
-0.036794037,
0.019969666,
0.010734066,
-0.024806302,
-0.005752777,
-0.0109566115,
-0.0050777253,
-0.016646335,
0.025844844,
0.08225247,
-0.029999008,
-0.03068148,
-0.057149448,
-0.017210115,
-0.05263921,
0.015311067,
0.029657774,
0.0036756946,
0.022951763,
0.016735353,
-0.011579736,
0.06830635,
-0.0005169525,
0.053292006,
0.016171573,
-0.061481647,
-0.05023573,
-0.0035755495,
-0.01606772,
-0.041541655,
-0.007110299,
0.021067554,
0.025206883,
0.011201411,
0.04581451,
-0.008464112,
-0.06320266,
0.018515708,
-0.00971778,
0.033767432,
-0.004970162,
-0.0044916915,
-0.015236885,
-0.019064652,
-0.00055914326,
-0.027402656,
-0.026230587,
0.009243018,
0.0050628893,
-0.032343145,
-0.023114963,
-0.025518445,
-0.06183772,
-0.028797269,
-0.013367511,
-0.005574742,
0.0063017206,
-0.033797104,
-0.031423293,
-0.023782598,
-0.0329366,
0.029820973,
0.021423625,
0.020043848,
-0.05011704,
-0.03287725,
0.0276252,
-0.0075145885,
0.007440407,
0.0076258606,
0.034182847,
-0.027313638,
0.054093167,
-0.0034512954,
-0.019613596,
-0.010645049,
0.028515378,
0.03513237,
-0.009561999,
-0.0010960321,
0.007343971,
0.00393533,
-0.06171903,
-0.0143912155,
-0.013501038,
0.024123833,
-0.013315584,
0.032995943,
-0.018026112,
-0.001437267,
0.013167221,
-0.012825985,
0.01807062,
0.040651478,
0.033025615,
-0.026289932,
-0.0021215917,
-0.004124493,
-0.015222049,
-0.02818898,
0.014457979,
0.04136362,
-0.01497725,
0.015222049,
-0.013775509,
0.022506675,
-0.032580525,
0.019094326,
0.0065465197,
0.012069334,
0.004261729,
0.013864527,
0.020652136,
-0.03658633,
0.034984007,
0.030533116,
-0.06183772,
-0.0351027,
0.059374895,
-0.05023573,
0.022017077,
-0.05103689,
-0.020666974,
-0.011676172,
0.01750684,
0.012039661,
-0.019227851,
0.042698886,
0.048010282,
0.022150604,
-0.049167514,
-0.015429758,
0.015607793,
0.021141734,
-0.0041393293,
-0.06676337,
0.021987405,
0.061897065,
0.03548844,
0.013226566,
-0.028648905,
0.0015754302,
-0.030132536,
0.04533975,
-0.022373147,
0.032906923,
-0.033500377,
0.011156902,
-0.0017543931,
0.025384918,
-0.036764365,
-0.001571721,
0.053737096,
0.03967228,
0.0093691265,
0.028737923,
-0.0045399093,
-0.001802611,
0.025755826,
0.05898915,
0.02035541,
-0.025740989,
0.0065539377,
0.013552965,
0.03213544,
0.05035442,
0.0047031087,
0.006253503,
0.049493913,
-0.0030711151,
0.005578451,
-0.00558216,
-0.002839298,
0.010467013,
-0.063855454,
-0.010385414,
0.012603441,
-0.012825985,
-0.010021924,
0.008916619,
-0.007292044,
0.011245919,
0.030191882,
-0.047001414,
-0.050532456,
-0.0062423754,
0.018337673,
0.0074144434,
0.013018858,
-0.02381227,
0.032699216,
0.03397514,
-0.0080412775,
0.010734066,
0.010741485,
0.02228413,
0.032550853,
0.0047439085,
-0.02750651,
0.04798061,
-0.007848405,
0.04614091,
-0.0104373405,
0.004614091,
-0.046734363,
0.005689723,
0.026868548,
0.049167514,
0.025281064,
-0.028441196,
-0.010288978,
0.001529994,
-0.021023044,
-0.03216511,
-0.014725033,
-0.07251986,
0.0050814347,
0.029331375,
-0.0032510054,
-0.051808376,
0.02790709,
0.0046734363,
0.01995483,
0.03795127,
0.05809897,
0.011119811,
0.06094754,
0.049642276,
-0.027921926,
0.017803567,
0.016349608,
-0.02136428,
-0.016201245,
0.04955326,
-0.029895155,
-0.011468464,
-0.028678577,
-0.032461837,
-0.003842603,
0.024257358,
-0.03080017,
-0.033797104,
0.022076422,
0.019672941,
-0.037031416,
0.008004187,
0.058722097,
-0.0025629718,
0.013842273,
-0.007640697,
-0.02875276,
-0.030562788,
-0.021408789,
-0.026690513,
-0.02421285,
-0.00277068,
-0.07892914,
-0.028500542,
-0.025711317,
0.0020733736,
0.007974514,
-0.013501038,
0.024064487,
0.01477696,
0.006112558,
0.0027780982,
0.023011109,
-0.006602156,
-0.025444264,
0.03967228,
0.034538917,
0.015533611,
0.04706076,
0.04887079,
-0.007848405,
0.011772608,
0.0010607959,
0.013641982,
-0.0004374392,
-0.0073217168,
0.0040725656,
-0.02023672,
-0.031007878,
-0.04130427,
-0.04068115,
0.05691207,
0.0031749692,
-0.013337838,
-0.041749362,
-0.044271536,
-0.03468728,
-0.055161383,
-0.03887112,
0.013360092,
-0.005964195,
-0.027699381,
0.02068181,
-0.04934555,
0.2634928,
0.039850317,
0.052995283,
0.03174969,
0.007280917,
0.05240183,
0.029361049,
-0.014821469,
-0.013523292,
-0.07251986,
0.038841445,
-0.03830734,
-0.0053818696,
-0.0028504252,
-0.033055287,
0.027016912,
-0.029731955,
-0.015993537,
0.043856118,
-0.024287032,
-0.054033823,
0.036705017,
-0.03007319,
0.09661402,
0.020726318,
0.018500872,
-0.010407668,
-0.015622629,
-0.0154445935,
-0.043796774,
0.018129965,
-0.020399919,
0.020503774,
-0.011691009,
-0.049849987,
0.032906923,
-0.006145939,
-0.047505848,
0.028500542,
-0.014450561,
0.02252151,
0.018129965,
0.007900332,
0.012121261,
-0.031957403,
0.017937092,
0.02272922,
0.011401701,
0.06884046,
-0.09038277,
0.029019812,
-0.011453628,
0.040087696,
-0.02421285,
-0.045844182,
-0.03706109,
-0.00045042095,
-0.034390554,
-0.0010561595,
0.00867182,
0.02875276,
0.01180228,
-0.0051407795,
-0.018129965,
-0.047891594,
0.020785663,
0.022744056,
0.062015757,
-0.008656984,
-0.0065576467,
-0.014836305,
0.027610363,
-0.0029932247,
-0.0713923,
0.03091886,
0.015073686,
0.015681975,
0.0023830815,
0.03183871,
-0.034301538,
-0.013182057,
-0.013975799,
-0.045191385,
-0.021661006,
0.011193993,
0.03614124,
-0.077801585,
-0.015874846,
-0.008938874,
0.036556657,
-0.0074515343,
0.0437671,
-0.01497725,
0.020310901,
0.022833074
] |
In both cases, you can pass a repo ID instead of the prompt template if you would like to use a template hosted by someone in the community. The default prompts live in this repo as an example.
To upload your custom prompt on a repo on the Hub and share it with the community just make sure:
- to use a dataset repository
- to put the prompt template for the run command in a file named run_prompt_template.txt
- to put the prompt template for the chat command in a file named chat_prompt_template.txt
Using custom tools
In this section, we'll be leveraging two existing custom tools that are specific to image generation: |
[
0.04216801,
-0.007600725,
-0.005008907,
-0.017662222,
-0.0041170595,
-0.049273666,
0.010658489,
-0.015871245,
0.00091004855,
0.029907836,
0.040828418,
-0.018492186,
0.030635873,
-0.040013015,
0.0065523493,
0.009333458,
-0.0062356526,
-0.043245506,
-0.011350125,
0.011379247,
-0.0068872473,
-0.013082857,
-0.06563998,
-0.038090993,
0.0023934275,
-0.0056568617,
0.035906874,
-0.019293029,
0.068319164,
0.008496213,
-0.04991434,
0.009027681,
0.012675156,
-0.009064083,
-0.024054402,
-0.024462104,
-0.028378954,
0.002739246,
-0.047002185,
-0.024200011,
0.035557415,
-0.020749107,
0.037275586,
-0.048895087,
-0.03054851,
0.035790388,
0.022379914,
-0.0112482,
-0.001724542,
-0.014691823,
-0.025918182,
0.009435383,
-0.020618059,
0.03168425,
-0.015405301,
0.010097899,
0.00356375,
-0.015609153,
0.00011472299,
0.033606272,
0.03302384,
0.060922287,
0.0073349914,
-0.024695076,
0.031422157,
0.05515622,
-0.05043853,
-0.064999305,
-0.017487492,
-0.008285082,
-0.031567764,
0.025728893,
0.008423409,
-0.013293989,
0.010986106,
0.03389749,
-0.014036588,
-0.037042614,
-0.006337578,
0.042313617,
0.018157288,
0.051457785,
0.01218009,
-0.01649736,
-0.009821244,
-0.010920582,
0.019161982,
0.0191183,
-0.0049979864,
-0.019540561,
-0.015303376,
0.039867405,
0.0059954,
0.02683551,
0.006286615,
0.046070296,
0.0038768067,
0.027490746,
0.023894234,
0.0012522268,
0.012915408,
0.041352604,
-0.015419862,
0.0029849592,
-0.056728784,
-0.0056313802,
0.050176434,
-0.01369441,
0.023020588,
-0.032004587,
0.01839026,
-0.017152594,
0.023297243,
0.0081467545,
-0.0018082664,
0.027316017,
-0.023471972,
0.00506715,
-0.03226668,
-0.048370898,
-0.027898448,
-0.015114086,
-0.020297723,
-0.049186304,
0.005551296,
-0.028786656,
0.045546107,
0.017356446,
-0.03619809,
-0.0071275,
0.0089839995,
-0.027913008,
0.005136314,
0.06861038,
0.0016854099,
-0.028204223,
-0.017531175,
0.013199344,
-0.006486826,
-0.039663553,
-0.0064977463,
-0.00506351,
0.018215531,
0.07897765,
-0.0049361032,
-0.0038695263,
0.0019820856,
-0.016774014,
-0.028204223,
-0.010025094,
0.0009628313,
0.013789055,
0.018463064,
0.03054851,
-0.012733399,
-0.01595861,
-0.05247704,
0.015856685,
0.010338151,
-0.00031555933,
0.024913488,
0.02192853,
-0.055272706,
0.06785322,
-0.012413062,
0.037625045,
-0.06167945,
-0.027883887,
-0.010054216,
-0.018885328,
0.016220706,
-0.023195317,
-0.014407888,
0.0032670742,
0.017647661,
0.030024322,
0.013301269,
0.01463358,
-0.016803136,
0.00937714,
0.0038112833,
-0.00899128,
0.021768361,
0.024287375,
-0.002646421,
-0.009238813,
0.021084005,
-0.032499652,
0.013621606,
-0.035324443,
0.02754899,
0.027417943,
-0.048079684,
0.014968478,
-0.022277988,
-0.006501387,
-0.022962345,
-0.018099045,
0.047730226,
-0.05739858,
-0.024855245,
0.04822529,
-0.040013015,
0.009624673,
0.014182196,
-0.023908796,
0.023675822,
0.020006508,
-0.012238333,
0.022962345,
0.024141768,
0.00022387193,
-0.036372818,
-0.0064067417,
0.03113094,
0.021637313,
-0.0013951043,
0.0202686,
-0.011466611,
0.015419862,
0.030985333,
0.024971731,
0.042138886,
0.006053643,
0.00993045,
0.005300123,
0.02626764,
0.033839244,
0.0023934275,
-0.017502053,
-0.034974985,
0.019831777,
0.017778708,
0.029514695,
0.023209877,
0.04764286,
0.025190143,
0.006526868,
-0.017924316,
-0.008030268,
-0.0033034761,
0.05474852,
0.012325698,
0.03771241,
0.019191103,
-0.023326363,
0.0397218,
-0.0035928716,
0.016264386,
0.010469198,
-0.09942098,
0.040362474,
0.008845672,
0.018317457,
-0.06843565,
0.0012667875,
0.0057806284,
0.033606272,
-0.02194309,
-0.013388634,
-0.0014160355,
-0.020588938,
-0.0005665052,
0.015769321,
0.0574277,
0.037595924,
-0.0067816814,
-0.007942904,
-0.014589898,
-0.053700145,
-0.05856344,
-0.02154995,
-0.04423564,
-0.027141288,
-0.008525334,
0.013832738,
0.0071129394,
-0.018099045,
0.0108769,
0.0030614033,
-0.019220226,
0.034654647,
-0.02098208,
0.007600725,
0.03943058,
0.03427607,
-0.024316497,
0.043944422,
-0.011197237,
0.05305947,
-0.037770655,
-0.018710598,
0.013577924,
-0.0006920919,
0.003338058,
0.020006508,
-0.029485572,
-0.02832071,
-0.018914448,
-0.017720465,
0.0018983613,
-0.021418903,
-0.027767401,
-0.008234119,
-0.02436018,
0.008103072,
-0.021593632,
-0.0068144435,
0.037595924,
0.04743901,
-0.029106991,
0.026107471,
-0.029121554,
0.055010613,
-0.03710086,
0.062145393,
0.0059589976,
0.00028439017,
-0.038382206,
-0.023908796,
-0.0100396555,
-0.0016790396,
-0.022350792,
-0.019890022,
-0.04254659,
0.031771615,
0.01913286,
-0.07000821,
0.007840978,
-0.0043427516,
-0.046419755,
-0.027184969,
-0.021331538,
0.041585576,
0.015070404,
0.03247053,
-0.030519387,
0.018186409,
0.009267935,
0.025554163,
0.020588938,
-0.07466766,
0.038411327,
0.0217538,
0.018710598,
0.020865593,
0.026180277,
-0.053758387,
0.01068761,
-0.036052484,
0.04388618,
0.029485572,
0.0011348305,
0.005234599,
0.005536735,
-0.006435863,
-0.04936103,
0.0010956984,
0.028786656,
-0.03319857,
0.07000821,
0.020676302,
-0.011015227,
-0.053962238,
-0.0052127577,
-0.012915408,
0.03395573,
-0.011029788,
0.058039255,
-0.028539121,
-0.0041316203,
0.008401568,
-0.054078724,
0.022190623,
0.04056632,
0.010250786,
0.0040005734,
0.009420822,
0.050933596,
-0.060631074,
0.0015634634,
0.009107766,
-0.011495733,
0.015216012,
-0.0082049975,
-0.00487786,
-0.030461144,
0.029325403,
-0.01951144,
-0.0551271,
-0.0026919236,
0.0135997655,
-0.022015894,
0.007087458,
-0.043012533,
-0.032965597,
-0.0073277107,
0.06226188,
0.052651767,
0.025830816,
0.024200011,
-0.025845379,
0.00027278706,
0.033082083,
-0.008022988,
0.0064395033,
-0.04711867,
0.033489786,
-0.023413729,
-0.037945382,
-0.021913968,
0.010804096,
0.011015227,
0.013577924,
-0.037450317,
0.031626005,
-0.039692678,
-0.04598293,
0.0023388248,
0.04050808,
-0.04222625,
0.00009111861,
-0.044031788,
-0.00825596,
0.06563998,
-0.073910505,
0.03392661,
-0.06371796,
-0.01293725,
0.019890022,
-0.049943462,
-0.015696516,
-0.013344952,
0.0070656165,
-0.0138764195,
0.071406044,
0.022598324,
0.005827951,
0.010563843,
-0.0154926665,
-0.022933222,
-0.017152594,
-0.02510278,
0.003807643,
0.028917702,
0.031160062,
0.017210837,
0.020108432,
0.06342674,
-0.01970073,
0.03712998,
-0.009988693,
0.024039842,
-0.038731664,
0.010745853,
-0.019569684,
0.011422929,
-0.020050189,
0.049419276,
0.04033335,
-0.029791348,
0.0069272895,
-0.0033162169,
-0.018623233,
-0.024214571,
0.009122326,
0.023515655,
0.06132999,
0.046973065,
-0.010745853,
0.0010092438,
0.032965597,
0.030228171,
-0.03092709,
0.003598332,
-0.024345618,
0.0018055363,
0.01575476,
-0.015783882,
-0.0005860712,
-0.012798922,
0.016249826,
-0.016744893,
0.010017814,
-0.015987733,
-0.013941944,
0.0090932045,
0.03223756,
0.005198197,
0.028597364,
-0.0023588457,
-0.002793849,
0.05870905,
-0.02082191,
-0.0005660502,
-0.03547005,
-0.062028907,
0.015041282,
0.06447512,
-0.0043536723,
0.004706771,
-0.04388618,
-0.024272814,
-0.0070801773,
-0.033227693,
0.034363434,
-0.05704912,
0.015885808,
-0.011481172,
0.008729186,
-0.028291589,
-0.0262822,
-0.028655607,
-0.015143207,
-0.016919622,
-0.0040042135,
0.0028211505,
-0.02192853,
-0.0161479,
0.061970666,
-0.044497732,
-0.056029867,
-0.009253373,
0.011022508,
-0.0064795455,
0.04106139,
-0.0012485866,
-0.011291882,
-0.01237666,
-0.03037378,
-0.0006019971,
-0.039517947,
-0.03616897,
-0.019773534,
-0.046099417,
0.017181717,
0.04988522,
0.0031232866,
-0.018186409,
0.0065487092,
-0.0479632,
-0.020006508,
-0.058213983,
-0.043420237,
0.00081449345,
-0.020647181,
-0.019351272,
0.028742973,
-0.0045320415,
-0.008110353,
0.008547176,
0.021899408,
0.034742013,
0.0012422162,
-0.015973171,
-0.024840685,
0.026733585,
-0.0083724465,
0.0042663077,
0.013454158,
-0.014196757,
0.040158622,
-0.04633239,
0.060631074,
0.016570164,
0.0153761795,
-0.04312902,
-0.045720838,
0.04534226,
-0.061504718,
0.044410367,
-0.02511734,
0.023370046,
0.024695076,
0.05399136,
-0.00431727,
-0.021244172,
-0.08451074,
-0.09161641,
0.035353564,
-0.040653687,
-0.010228946,
-0.008357885,
-0.012478585,
0.018506747,
-0.033227693,
0.040828418,
0.03788714,
0.0055622165,
0.0239816,
-0.02154995,
0.016206143,
0.06261134,
-0.0056568617,
-0.0116195,
-0.006108246,
-0.020923836,
-0.028597364,
-0.046215903,
-0.022379914,
-0.036372818,
0.052214943,
0.040799297,
-0.05704912,
0.01481559,
-0.03427607,
-0.033082083,
-0.033256814,
0.021870287,
0.017924316,
0.013592484,
-0.022467278,
0.0073932344,
0.040711932,
0.05454467,
-0.016570164,
-0.038323965,
-0.011393808,
0.06325201,
-0.007986586,
-0.040741052,
-0.00075443025,
0.01219465,
-0.030839724,
-0.082413994,
-0.013847298,
0.017793268,
-0.026122034,
-0.025889061,
0.03281999,
-0.021113126,
-0.023166195,
0.009915888,
0.023937916,
0.008124913,
-0.016031414,
-0.00016415,
0.008547176,
-0.027898448,
0.011714145,
0.02851,
-0.039314095,
-0.043565843,
0.0050416687,
-0.021491706,
-0.016977865,
0.0067634806,
0.06325201,
-0.01125548,
0.032587018,
0.03975092,
0.048895087,
0.037945382,
-0.015434423,
0.025175583,
0.0012030841,
-0.049040694,
-0.07763806,
-0.03247053,
0.023748627,
0.01237666,
0.007029215,
-0.045720838,
-0.006585111,
-0.01367985,
0.040682808,
-0.038586058,
-0.050555017,
0.00081312837,
-0.052593525,
-0.0029776788,
0.0033071165,
0.012696997,
0.0029358165,
0.015987733,
-0.041702062,
-0.06540701,
-0.0072330656,
0.01670121,
0.012682436,
-0.03992565,
0.008277802,
-0.013534241,
-0.046769213,
-0.039226733,
0.01349784,
-0.0439153,
0.02383599,
0.01687594,
0.011306443,
-0.010724012,
-0.0029394568,
0.020763667,
-0.010163422,
0.010753133,
-0.013738093,
-0.019351272,
-0.0040042135,
0.0075788843,
-0.016191583,
0.011175396,
0.066222414,
-0.019161982,
0.015143207,
0.033256814,
-0.02923804,
-0.0144879725,
-0.011859752,
0.01706523,
0.018637793,
-0.021302415,
0.013082857,
-0.022350792,
-0.061562963,
-0.015769321,
-0.017924316,
-0.007972025,
-0.010301749,
0.0299952,
-0.0029485573,
0.049215425,
0.015114086,
0.022802176,
0.007833698,
0.011590378,
0.008598139,
-0.021462584,
0.010527441,
-0.007666249,
0.016584724,
-0.03765417,
0.02532119,
0.05454467,
-0.02495717,
0.024665955,
0.00023593009,
-0.027781961,
0.008947597,
0.014335085,
0.016468238,
0.08113264,
-0.019962825,
0.015871245,
0.0151577685,
0.023763187,
-0.048982453,
0.011910715,
-0.033635393,
-0.024709638,
0.022045016,
-0.030752359,
0.018739719,
-0.05474852,
0.010833218,
-0.002830251,
-0.010177983,
0.0038149233,
0.030169928,
0.027417943,
0.006279335,
0.054661155,
-0.052972104,
-0.013759933,
-0.006905448,
0.004251747,
-0.037595924,
-0.05399136,
-0.010949704,
0.030781481,
-0.02028316,
-0.012471305,
-0.040449835,
0.0154926665,
0.040624566,
0.06057283,
-0.027840205,
0.009843085,
-0.051283054,
0.045546107,
-0.039547067,
0.02210326,
-0.017006988,
0.039459705,
-0.011102592,
0.008670942,
0.030752359,
0.044119153,
0.029398208,
-0.04799232,
0.03826572,
0.026908316,
0.03937234,
-0.0006916369,
0.0039059282,
-0.010003254,
0.017181717,
0.0333733,
0.029616619,
0.022263426,
0.02230711,
0.04385706,
0.0108769,
0.03937234,
0.02287498,
-0.0010410955,
0.0021477146,
-0.013061017,
-0.05719473,
0.014204037,
-0.013381354,
0.009486346,
0.013789055,
0.017196277,
0.008911195,
0.0137672145,
-0.021273294,
0.03279087,
-0.056350205,
-0.04743901,
0.013206624,
0.016628407,
0.032412287,
-0.00505987,
0.03844045,
0.038090993,
0.008154035,
0.022642007,
-0.009449944,
0.022773053,
0.0198609,
0.006861766,
-0.0003881357,
-0.0022077777,
-0.032761745,
-0.034101337,
0.011153555,
-0.01218009,
0.008882074,
0.015769321,
0.009828524,
-0.002531755,
0.02963118,
-0.018259214,
-0.0093698595,
-0.03395573,
0.031800736,
-0.026369566,
-0.025728893,
0.017735025,
-0.0080375485,
-0.03430519,
0.026675342,
-0.04589557,
0.03503323,
0.03937234,
0.020210357,
0.0018446684,
0.0679697,
0.018739719,
-0.0029212558,
0.002304243,
0.028597364,
-0.03596512,
-0.0039969333,
-0.04368233,
-0.016249826,
0.031771615,
-0.025059097,
-0.052040216,
0.036372818,
0.021491706,
-0.018696036,
-0.018346578,
0.040711932,
0.036664035,
-0.06365971,
-0.017225398,
0.05343805,
-0.054049604,
-0.012696997,
-0.013395914,
-0.0036893368,
-0.028815776,
-0.047351643,
-0.036314577,
0.015536348,
0.031975467,
0.005478492,
-0.0089257555,
-0.011029788,
-0.012857165,
-0.005303763,
0.009413542,
0.00014037499,
0.059932157,
0.050118193,
-0.0044592377,
0.02436018,
-0.03261614,
0.017327324,
0.0072731078,
0.06220364,
-0.009144167,
0.08765587,
0.10908934,
-0.009741159,
-0.007884661,
0.021360658,
0.0348585,
-0.05271001,
0.0138764195,
0.017225398,
0.04478895,
-0.04612854,
-0.019758973,
-0.020647181,
0.089170195,
0.018084485,
-0.071755506,
-0.04630327,
-0.013592484,
-0.073619284,
-0.0018783401,
-0.019263906,
0.020676302,
-0.0198609,
-0.025816256,
0.020181237,
-0.03264526,
0.25184318,
0.034421675,
0.032703504,
0.037246466,
0.013541522,
0.07315334,
0.034742013,
0.0021640954,
0.028961385,
-0.07035767,
0.007557043,
-0.014786469,
0.027883887,
0.034392554,
0.02156451,
0.02454947,
-0.04633239,
-0.0002454856,
-0.00843797,
-0.04746813,
-0.018448504,
0.020938396,
0.0022441796,
0.036664035,
0.0066506346,
0.014771908,
-0.0118743135,
-0.040362474,
-0.043245506,
-0.050584137,
-0.0018528588,
-0.011299162,
0.011386527,
-0.012696997,
-0.005685983,
0.04330375,
-0.026981119,
-0.057456825,
-0.03334418,
-0.007928343,
0.01068761,
0.003396301,
0.022467278,
-0.011226359,
-0.0035874113,
0.02754899,
0.0041571017,
-0.05416609,
0.002943097,
-0.009580991,
0.03456728,
-0.05568041,
-0.003920489,
0.004200784,
-0.032412287,
-0.020661741,
-0.048865966,
-0.03054851,
0.037392072,
-0.0037967225,
0.029354526,
0.032965597,
-0.029165234,
-0.019831777,
-0.035353564,
0.018040802,
-0.01801168,
0.012849885,
-0.037799776,
-0.062028907,
0.0037384795,
-0.0018619592,
0.005183636,
-0.015987733,
0.022656567,
0.021593632,
0.009530028,
0.029339965,
0.0031651487,
-0.03733383,
0.020574378,
-0.004328191,
-0.023894234,
-0.015594591,
0.021477146,
0.005118113,
-0.05926236,
0.019424075,
-0.016249826,
0.025568724,
0.016177023,
0.06488282,
-0.021782922,
0.009653795,
-0.017895194
] | We replace huggingface-tools/image-transformation,
with diffusers/controlnet-canny-tool
to allow for more image modifications.
We add a new tool for image upscaling to the default toolbox:
diffusers/latent-upscaler-tool replace the existing image-transformation tool.
We'll start by loading the custom tools with the convenient [load_tool] function: |
[
0.021957207,
0.0017804117,
-0.017652439,
-0.040360812,
0.0045611765,
-0.016048985,
-0.013571576,
-0.019111438,
-0.003053424,
0.04379885,
0.02915108,
0.00021792437,
0.040360812,
-0.048276965,
0.029107744,
0.047670253,
-0.02369067,
-0.04628348,
-0.045618985,
0.020527098,
-0.016135657,
-0.014445531,
-0.071707614,
-0.037442815,
-0.044550017,
-0.007901705,
-0.0077428045,
-0.035767134,
0.073614426,
0.024571847,
-0.0449256,
-0.022390572,
0.0063704792,
-0.027952101,
-0.0068652383,
-0.035478223,
-0.01635234,
-0.0035933258,
-0.060035627,
-0.029988922,
0.007323884,
-0.0048175845,
0.03137569,
-0.075347885,
-0.054315194,
0.043452155,
0.023589551,
-0.012560389,
-0.0030389784,
-0.027403172,
-0.021307157,
0.032791354,
-0.009562941,
0.013629358,
-0.036027152,
-0.0031256517,
-0.0061357394,
-0.016569024,
-0.0074394485,
0.015471163,
0.018808082,
0.06015119,
0.014994461,
-0.02912219,
0.033484742,
0.0652938,
-0.04160313,
-0.04376996,
-0.02282394,
-0.016959053,
-0.021061584,
0.04463669,
-0.022246117,
-0.012192028,
0.0052401163,
0.05411296,
-0.013311557,
-0.019342566,
0.0143371895,
0.030884545,
0.031086782,
0.06650722,
-0.01047301,
-0.0026868687,
-0.018865863,
-0.017507983,
0.026810905,
0.008681764,
-0.013911046,
-0.01635234,
-0.024860758,
0.034178127,
-0.008342294,
0.006821902,
0.0118092215,
0.027807647,
-0.015196699,
0.044810038,
0.009981861,
-0.005575975,
0.014243294,
0.100078635,
-0.00280785,
-0.019096991,
-0.01475611,
0.007154149,
0.032300208,
-0.010559683,
-0.010032421,
-0.0030588412,
0.020570436,
-0.03074009,
0.012011459,
-0.0073636095,
0.020194853,
0.03189573,
0.006038232,
0.01365825,
-0.07557902,
-0.035333768,
0.00046677122,
-0.009274031,
-0.022116108,
-0.042007603,
0.005395406,
-0.03726947,
-0.0002530225,
0.033975888,
-0.029179972,
-0.012025904,
0.009274031,
-0.02488965,
0.012769849,
0.05549973,
0.023907354,
-0.012350929,
-0.012603725,
0.0012224531,
-0.0050595473,
-0.04307657,
0.014568318,
0.0016160938,
0.012972087,
0.09643836,
0.016756816,
-0.015110025,
-0.0007859272,
-0.036027152,
-0.01619344,
0.023488432,
-0.018735854,
-0.025019659,
0.005518193,
0.021711633,
0.0019068101,
-0.026175302,
-0.03484262,
0.014322744,
0.020238189,
0.02831324,
0.016222332,
-0.0072047086,
-0.029165527,
0.06818291,
0.0040628053,
0.016337896,
-0.051686108,
-0.034004778,
-0.010429673,
-0.014532204,
-0.011953677,
-0.02369067,
-0.023098404,
-0.012134246,
0.051830564,
-0.0029468883,
0.040938634,
0.04897035,
-0.0140699465,
0.0047164657,
-0.012654285,
0.0011384884,
0.01703128,
0.033166938,
0.000024419154,
-0.012112577,
0.045590095,
-0.012480939,
-0.010790812,
-0.02366178,
0.039927445,
0.03978299,
-0.035998262,
-0.0029559168,
-0.037962854,
-0.02556859,
0.015196699,
-0.0030949549,
0.0062404694,
-0.049750406,
-0.011245846,
0.03048007,
-0.051599436,
0.02912219,
-0.005399017,
-0.0155722825,
0.01768133,
0.041458674,
-0.03261801,
0.012719289,
0.040476378,
0.03536266,
-0.025611926,
0.0010770949,
0.02841436,
0.017724667,
-0.019949278,
0.025611926,
0.0033080266,
-0.01935701,
0.065004885,
0.0037052787,
0.066969484,
0.02097491,
0.020729337,
-0.011823667,
-0.01703128,
0.082397304,
0.03160682,
0.0033315006,
0.0006816485,
0.039060716,
0.021740524,
0.054633,
0.01635234,
0.013990496,
0.037356142,
0.020252634,
-0.000822041,
-0.01055246,
0.02556859,
0.03790507,
-0.010523569,
0.03836733,
-0.0064318725,
-0.0059948955,
0.0053665144,
-0.037182797,
-0.027966548,
-0.0016838071,
-0.06200022,
0.04709243,
0.002995642,
-0.0074033346,
-0.064311504,
-0.008710655,
0.0088262195,
0.033051375,
0.0024412947,
-0.007858369,
0.046919085,
-0.014301076,
-0.02734539,
0.01823026,
0.04683241,
0.033947,
0.008212284,
0.008580646,
0.0007015111,
-0.056482024,
-0.04079418,
-0.0156734,
-0.057406537,
-0.011462528,
-0.043192137,
-0.00039273786,
0.022246117,
-0.01635234,
0.016410124,
0.0078078094,
0.03154904,
0.019949278,
-0.004218095,
0.0172913,
0.04324992,
0.034467038,
-0.023011731,
-0.0023058678,
-0.018952535,
0.045705657,
-0.03778951,
-0.008739546,
0.008428968,
-0.0112025095,
0.014951124,
0.034929294,
-0.0086745415,
-0.041025307,
-0.036691647,
-0.012553167,
-0.055095255,
0.010855816,
-0.019010318,
0.028659932,
0.0065546595,
-0.0018282625,
-0.004521451,
-0.043134354,
0.03429369,
0.029266646,
-0.005153443,
0.038454004,
0.0019754262,
0.038569566,
-0.055701967,
0.058966655,
0.023011731,
0.0012314814,
-0.04085196,
-0.03862735,
-0.012459271,
0.00026679088,
-0.025944173,
-0.0023365647,
-0.02841436,
0.04547453,
-0.00009829732,
-0.070956446,
0.022347236,
-0.03354252,
-0.02520745,
-0.043192137,
-0.0034615104,
0.0143371895,
-0.02149495,
0.023907354,
-0.051715,
0.0017894402,
-0.018201368,
0.003429008,
0.008616759,
-0.048594765,
0.027692083,
0.022520583,
0.016366785,
0.014821115,
0.013853264,
-0.08621093,
0.007829478,
-0.027778756,
0.023358423,
-0.0015583116,
0.020093733,
0.02123493,
0.03570935,
0.024196263,
-0.030884545,
-0.01000353,
0.018244706,
0.009765179,
0.06015119,
0.015716737,
-0.011368632,
-0.039089605,
-0.010379114,
-0.0056482027,
0.007276936,
-0.0046767406,
0.05281286,
-0.036633868,
0.017233519,
0.021870533,
-0.034755945,
0.014048278,
0.033918105,
-0.029526664,
0.0061790757,
0.012257033,
0.054835234,
-0.039002933,
-0.035536006,
-0.013723254,
0.018345824,
0.018562507,
-0.0044961716,
-0.014134952,
-0.012567611,
0.036922775,
-0.03258912,
-0.03839622,
0.012033127,
0.022101661,
0.0075766807,
0.021422721,
-0.047236886,
-0.039002933,
0.0037486153,
0.040736396,
0.06148018,
0.008270066,
0.01812914,
-0.007995601,
-0.03160682,
0.02821212,
-0.017796895,
-0.002719371,
-0.029338872,
0.05093494,
0.027200934,
-0.031635713,
-0.014402194,
-0.015312263,
-0.003947241,
0.019862605,
-0.014994461,
0.018475834,
-0.03435147,
-0.0063740904,
-0.004084474,
0.02653644,
-0.039494082,
-0.03186684,
-0.06587162,
0.002697703,
0.07615684,
-0.039060716,
0.021610513,
-0.044434454,
-0.015471163,
0.03700945,
-0.018374715,
-0.01635234,
-0.00023880268,
-0.0072444337,
-0.011816444,
0.07026306,
0.064600416,
-0.0074322256,
-0.01593342,
0.0013316973,
-0.026435321,
-0.015687846,
-0.00076651596,
-0.001719921,
0.03406256,
0.008941784,
-0.0049078693,
0.0060851797,
0.018576952,
0.0049873195,
0.037125014,
-0.04388552,
0.02640643,
-0.031231238,
0.027923211,
-0.00006156279,
-0.014402194,
-0.009093462,
0.048276965,
0.027489845,
-0.03354252,
-0.012293147,
0.009418486,
-0.05032823,
-0.036807213,
0.011563648,
0.025915282,
0.028168784,
0.04056305,
-0.00080127554,
-0.0006067123,
0.043654393,
0.025323015,
-0.011729771,
0.0014761527,
-0.052350603,
0.009447377,
-0.011339742,
-0.023445096,
0.009577387,
-0.0345826,
0.024167374,
0.00028439637,
-0.0013127376,
-0.00804616,
-0.053737376,
0.0009172912,
0.010306886,
-0.0076561314,
0.04244097,
-0.010321332,
0.0013930908,
0.0068074563,
-0.047728032,
0.033918105,
-0.027446508,
-0.04382774,
-0.0076200175,
0.07852591,
0.025091887,
0.018894754,
-0.054835234,
0.0043264367,
-0.022014989,
-0.01068247,
0.03787618,
-0.030913435,
-0.0063199196,
-0.00052861613,
0.016135657,
-0.03022005,
-0.030162267,
-0.032329097,
0.009570164,
-0.030451179,
0.0019989002,
-0.0018454165,
-0.009996307,
-0.009736287,
0.057926577,
-0.029454438,
-0.07159205,
-0.03137569,
0.015370045,
-0.009216249,
0.019227002,
0.025221897,
-0.02081601,
-0.030277831,
-0.023329532,
0.009086239,
-0.03126013,
-0.006811068,
-0.01903921,
-0.0345826,
0.006908575,
0.042874336,
0.0050884383,
-0.035738245,
0.0060743457,
-0.03758727,
-0.0083711855,
-0.04160313,
-0.036056045,
0.008602314,
-0.036893886,
-0.035882697,
0.018288042,
0.003006476,
0.013441566,
-0.028168784,
0.004095308,
0.039031822,
-0.008002824,
-0.036027152,
-0.010581351,
-0.011325296,
-0.0022318345,
-0.018981427,
0.017363528,
-0.015745629,
0.033311393,
-0.0072444337,
0.052899532,
-0.015471163,
0.031664602,
-0.04873922,
-0.048883677,
0.04440556,
-0.06176909,
0.016857935,
-0.018158032,
0.04495449,
0.033369176,
0.024167374,
-0.0018002742,
-0.01449609,
-0.06373368,
-0.07008971,
0.022347236,
-0.020584881,
-0.0010427868,
-0.023170631,
-0.012112577,
0.04518562,
-0.025900837,
0.005821549,
0.032878026,
0.037731726,
0.024759639,
-0.049114805,
0.013701586,
0.04437667,
-0.008140056,
0.002264337,
0.011339742,
-0.010841371,
-0.002087379,
-0.013961606,
-0.031144565,
-0.03126013,
0.052697297,
0.043336593,
-0.03539155,
0.02410959,
-0.019125883,
-0.042325404,
-0.02598751,
0.011303628,
0.02436961,
0.017637992,
-0.00031328746,
0.024745194,
0.030826762,
0.062231347,
-0.012748181,
-0.025597481,
0.012307592,
0.051888347,
-0.013224883,
-0.014308298,
-0.025944173,
0.011599761,
-0.04056305,
-0.05963115,
-0.02993114,
0.036084935,
-0.03137569,
-0.027822092,
0.0033784485,
-0.010090203,
0.02165385,
0.021090474,
0.060035627,
-0.03559379,
-0.030451179,
0.0074322256,
-0.020165961,
-0.03865624,
0.009274031,
0.022852829,
-0.023603998,
-0.049114805,
-0.011209732,
-0.0025929727,
-0.037096124,
-0.009404041,
0.058533292,
-0.005604866,
0.05466189,
0.04382774,
0.033340286,
0.039609645,
-0.014597209,
0.017565764,
0.014351634,
-0.06829847,
-0.06968524,
-0.01961703,
0.03154904,
0.015355599,
0.0121198,
-0.020469317,
0.0099096345,
-0.0146261,
0.02611752,
-0.017320191,
-0.094704896,
0.009447377,
-0.0433077,
-0.021408277,
0.020989357,
0.00016002939,
0.004189204,
0.007988378,
-0.038858477,
-0.043654393,
-0.022332791,
-0.011563648,
0.0010725807,
-0.027807647,
-0.020873792,
0.0013380173,
-0.063040294,
-0.046514608,
0.0015447689,
-0.03594048,
0.0123798195,
0.0063777016,
0.02165385,
-0.012278701,
-0.0014048278,
0.03322472,
-0.011729771,
0.0068363473,
0.0012504413,
-0.03261801,
0.029194418,
-0.0008261038,
-0.034958184,
0.03160682,
0.054257415,
-0.033398066,
0.030826762,
0.04353883,
-0.010155208,
-0.006020175,
-0.009259585,
0.035507113,
0.01152031,
-0.0060526775,
0.007302216,
-0.0062982515,
-0.047988053,
0.01496557,
-0.012914305,
0.0049945423,
-0.009497937,
0.034207016,
-0.018793635,
0.036633868,
-0.020209298,
0.006782177,
0.022448355,
0.031202346,
0.027388725,
-0.0073202727,
-0.0047200774,
-0.019501466,
-0.00885511,
-0.0046009016,
0.033947,
0.045503423,
-0.023445096,
0.026940914,
0.008587868,
-0.040707506,
-0.014250516,
0.0014580957,
0.011419192,
0.05847551,
0.012358151,
-0.009656837,
0.017464647,
0.00044532862,
-0.042787664,
0.009866297,
-0.000842355,
-0.030422287,
0.035275985,
-0.06413816,
0.023315087,
-0.02029597,
-0.0009633363,
-0.003614994,
-0.005731264,
0.016785707,
0.0019266726,
0.03946519,
-0.00045796848,
0.039494082,
-0.05064603,
-0.028255459,
-0.010104649,
0.015124471,
-0.03559379,
-0.028948843,
-0.0034597046,
0.02624753,
-0.016280113,
-0.0020566825,
-0.043134354,
-0.024514066,
0.012430379,
0.08794439,
-0.03859846,
-0.013831596,
-0.044983383,
0.029700011,
-0.046167918,
0.025453025,
-0.015658956,
0.038222875,
0.002883689,
0.006717172,
0.038511787,
0.03562268,
0.036287174,
-0.027562073,
0.008833442,
0.023228412,
0.027923211,
0.0094907135,
-0.0060346206,
-0.0046261814,
0.013087651,
0.022405019,
0.054315194,
0.0062332465,
0.01671348,
0.026290866,
0.005716819,
-0.0049475944,
0.0037991747,
0.007540567,
0.017479092,
0.014517758,
-0.061537962,
-0.011729771,
-0.015890084,
0.029425547,
0.0023347589,
-0.029786684,
0.0052401163,
0.0000731305,
-0.021191593,
0.03862735,
-0.04088085,
-0.016496796,
0.03507375,
0.00030358185,
0.04899924,
0.017175736,
0.017320191,
0.010429673,
0.01141197,
0.023026176,
-0.020541545,
0.03183795,
0.03157793,
0.02669534,
0.009497937,
0.026030846,
-0.040100794,
-0.0086745415,
-0.00037174672,
-0.0276343,
-0.05830216,
0.022997284,
0.01645346,
-0.018808082,
0.015312263,
-0.030855654,
-0.003878625,
-0.033340286,
0.036287174,
-0.04215206,
0.0048573096,
0.0065907734,
-0.00013215403,
-0.06356034,
0.013976051,
-0.03100011,
0.0345826,
0.056453135,
0.037385035,
0.019949278,
0.10256327,
0.025164114,
-0.023343978,
0.008818996,
0.04111198,
-0.04255653,
-0.009411263,
-0.015095579,
-0.04359661,
-0.0036763875,
-0.050212666,
-0.03455371,
0.025395242,
0.02666645,
-0.032531336,
-0.0052148364,
0.013419898,
0.019096991,
-0.057522103,
0.010277995,
0.08626871,
-0.0146261,
-0.014893342,
0.00028033357,
0.026464213,
-0.029786684,
-0.0240807,
-0.052032802,
0.028587705,
-0.020527098,
-0.0065654935,
-0.004286711,
-0.03455371,
-0.010964158,
-0.012560389,
-0.0077789184,
0.01838916,
0.04758358,
0.031086782,
0.010357445,
-0.007193874,
-0.020252634,
0.014221625,
0.029988922,
0.03695167,
-0.00859509,
0.08124167,
0.09222027,
-0.023849571,
-0.023213968,
0.023098404,
0.0063163084,
-0.028977735,
-0.0061212936,
0.003241216,
0.030162267,
-0.03105789,
-0.0756368,
-0.016178994,
0.056193113,
0.0045647877,
-0.042065386,
-0.028139893,
0.01580341,
-0.07702357,
-0.044434454,
-0.042383187,
0.005565141,
-0.048276965,
-0.027720973,
0.005323178,
-0.023835126,
0.24846312,
0.024658522,
0.009425709,
0.045618985,
0.040707506,
0.06373368,
0.018374715,
-0.016048985,
0.020151515,
-0.06558271,
-0.011448083,
-0.03562268,
0.019819269,
0.05310177,
-0.023575107,
0.03978299,
-0.045561206,
0.0074900077,
-0.0076777996,
-0.05581753,
-0.041227546,
0.013824373,
-0.0031563484,
0.04980819,
-0.005247339,
0.016901271,
-0.01368714,
-0.046023462,
-0.012220919,
-0.061884653,
-0.0037161128,
-0.013340448,
0.042700987,
0.011527534,
0.034322582,
0.0120186815,
0.014228848,
-0.010379114,
-0.014402194,
-0.0044492236,
0.03371587,
-0.014098838,
0.037153903,
-0.012235365,
-0.008450636,
0.029700011,
-0.027619855,
-0.014553872,
0.021812752,
0.009678505,
0.062462475,
-0.05122385,
0.013159879,
-0.012495384,
-0.024860758,
0.03218464,
-0.06280917,
-0.038020637,
-0.0146261,
0.008977897,
0.017955795,
0.013708808,
-0.034438144,
0.0081039425,
-0.010017975,
-0.0052040024,
-0.005521804,
0.03891626,
-0.023676224,
-0.024918541,
0.020093733,
0.0038244543,
-0.017883567,
-0.044492234,
0.033022482,
0.04408776,
-0.0015249064,
0.039522972,
-0.008963452,
-0.036662757,
0.038540676,
-0.022766156,
0.018244706,
-0.051339418,
0.046947975,
0.007446671,
-0.049143694,
0.0174502,
-0.027692083,
0.012488161,
0.007815032,
0.055181928,
-0.014951124,
0.01739242,
0.0040628053
] | We'll start by loading the custom tools with the convenient [load_tool] function:
from transformers import load_tool
controlnet_transformer = load_tool("diffusers/controlnet-canny-tool")
upscaler = load_tool("diffusers/latent-upscaler-tool") |
[
0.046655856,
-0.029122286,
-0.012770159,
-0.015742589,
0.0051998706,
-0.047227766,
-0.014365489,
0.020739282,
0.002227441,
0.033170808,
0.019670712,
-0.029167436,
0.019610511,
-0.01498255,
0.02396004,
0.010550244,
0.00979773,
-0.036391567,
-0.040455144,
-0.026322933,
0.0015003245,
-0.008729161,
-0.06357237,
-0.046294652,
-0.06441519,
-0.01495245,
-0.029107235,
-0.0056363284,
0.04954551,
0.0073106717,
-0.0543917,
-0.018873047,
0.009730004,
-0.024607202,
0.0021973404,
-0.004112488,
0.027858062,
-0.010572819,
-0.045963544,
-0.056829844,
0.0017938048,
-0.033441715,
0.013951606,
-0.068328254,
-0.072722934,
0.037354786,
-0.008164775,
0.008653909,
-0.011061953,
-0.05607733,
-0.009895557,
0.024516901,
0.003297892,
0.0014100227,
-0.048010383,
-0.040154137,
-0.018361337,
-0.018812846,
-0.0093386965,
0.012476679,
-0.019956667,
0.049906716,
0.018195784,
-0.034555435,
-0.0058094067,
0.06573961,
-0.042110674,
-0.012965813,
-0.031184172,
-0.015667338,
-0.024200846,
0.038889915,
-0.012424003,
-0.036090564,
0.0088871885,
-0.0028576714,
0.013168992,
-0.042200975,
-0.010994227,
0.029709246,
0.005546027,
0.059418492,
-0.016796108,
-0.041930072,
-0.0021597147,
-0.012424003,
0.02886643,
0.015531885,
0.00026620177,
-0.011009277,
-0.0000038140106,
0.017939929,
0.0023685372,
0.006053974,
0.039431725,
0.058665976,
0.0006001298,
0.034013625,
-0.017774377,
0.014636394,
0.049575612,
0.07206073,
-0.028339671,
-0.0000518823,
-0.045060527,
-0.007099968,
0.059689395,
-0.014267663,
-0.020257672,
-0.0024550764,
0.05655894,
-0.020949984,
0.009037691,
-0.028399872,
-0.023192476,
0.064354986,
0.028369771,
-0.0051321443,
-0.07001389,
-0.02611223,
0.003034512,
-0.030943368,
-0.05926799,
-0.052164257,
-0.023674086,
-0.0077659427,
0.021853002,
-0.0011259489,
-0.0149900755,
0.011197406,
0.018165683,
-0.027135648,
0.008616284,
0.06971288,
-0.0008545735,
0.022424912,
-0.004594097,
-0.004616672,
0.017443271,
-0.026608888,
0.0056250407,
-0.011919819,
-0.011235031,
0.08662939,
0.034043726,
-0.008947389,
-0.027391503,
0.016118847,
-0.038769513,
0.015531885,
-0.027572107,
-0.004153876,
0.010422316,
0.021461694,
-0.0015087902,
-0.021672398,
-0.032719303,
0.013221668,
-0.013748428,
0.017277718,
0.02668414,
0.021145638,
-0.016991762,
0.050960235,
0.002293286,
0.02934804,
-0.033050407,
-0.015832892,
-0.020558678,
-0.012032696,
0.018436588,
0.007931496,
-0.018948298,
-0.028159067,
0.037836395,
-0.0016442427,
0.018210834,
0.053247876,
-0.011543562,
0.0044210185,
-0.009413948,
-0.0047445996,
-0.013597925,
-0.022545313,
0.003928122,
-0.028429972,
0.049605712,
0.012469154,
-0.006260915,
-0.048732795,
0.035699256,
0.05387999,
-0.054120794,
0.03154538,
0.0002135258,
0.0073144343,
-0.014877198,
0.008262602,
0.050298024,
-0.039251123,
-0.003946935,
0.050207723,
-0.025284465,
-0.0038566333,
-0.008939864,
0.0068629263,
0.017337918,
0.030792866,
-0.013740903,
0.051923454,
0.053759586,
0.020980086,
-0.055595722,
0.0071300683,
0.052886672,
-0.032538697,
-0.018737594,
0.011671489,
0.009075317,
-0.023041973,
0.069592476,
0.022951672,
0.054482,
0.022545313,
0.0025773598,
-0.037505288,
0.022184107,
0.053398382,
-0.020302823,
0.024065392,
-0.0042893286,
0.032538697,
0.030943368,
0.057973664,
0.007457412,
-0.0027090497,
0.010986702,
0.028776128,
-0.0031455078,
-0.01741317,
0.040364843,
0.033381514,
0.009353747,
0.06694363,
-0.003147389,
-0.0077584176,
0.014049433,
-0.024170743,
-0.011505936,
-0.007363348,
-0.07188012,
0.075191185,
0.0029103472,
0.0020110933,
-0.052405063,
-0.011949919,
0.0042216023,
0.013168992,
-0.01741317,
-0.014929874,
0.018391438,
-0.011912294,
-0.031966787,
0.008729161,
0.051381644,
0.032629,
-0.019535258,
-0.0010450536,
-0.01797003,
-0.062849954,
-0.00019729971,
-0.034404933,
-0.07476977,
0.0033204672,
-0.024547001,
-0.010422316,
-0.015501785,
-0.0039318847,
0.027993515,
-0.0057943566,
-0.0000037074533,
-0.005771781,
-0.016449952,
0.028926631,
0.008202401,
0.018722543,
-0.0137108015,
-0.001093967,
-0.038920015,
0.044007007,
-0.016735908,
-0.029047033,
-0.018812846,
-0.060110804,
0.017398119,
0.014403115,
0.0024832955,
-0.047649175,
-0.043826405,
-0.0023553683,
-0.047107365,
-0.004500033,
-0.043465197,
0.022530263,
-0.031214273,
-0.0027918264,
0.0014815116,
-0.0103395395,
0.057883363,
0.039431725,
-0.013123841,
0.04409731,
-0.0050456054,
0.040425044,
-0.05002712,
0.037896596,
0.015336231,
0.0064038928,
-0.030853067,
-0.026503537,
-0.032538697,
0.018466689,
-0.020423226,
-0.032930005,
0.0014363608,
0.022409862,
-0.0031944213,
-0.06598041,
0.020709181,
-0.022771068,
0.0026225108,
-0.012190724,
-0.0021559522,
0.015050276,
0.035428353,
0.03919092,
-0.04788998,
-0.0014034383,
-0.015486735,
0.026187481,
0.011460786,
-0.040816348,
0.042622384,
-0.0017665263,
0.016073694,
0.017729226,
0.038528707,
-0.073806554,
0.025811223,
-0.03103367,
0.034675837,
-0.027858062,
0.0060652616,
0.008322803,
0.035699256,
0.024155693,
-0.037625693,
-0.019520208,
0.0063850796,
0.021988453,
0.056197733,
0.057461955,
-0.043886606,
-0.051231142,
-0.020664029,
0.022259358,
-0.0032696726,
0.013793578,
0.054813106,
-0.0117994165,
0.010256764,
-0.006644697,
-0.045241132,
-0.006558158,
-0.0134398965,
-0.02614233,
0.023478432,
-0.0024908208,
0.044849824,
-0.0043721055,
-0.035879858,
0.033592217,
-0.020092119,
0.039762832,
0.022485113,
-0.008405579,
-0.00066832633,
0.037144084,
0.0060991244,
0.0020712942,
0.046144146,
-0.009022641,
0.0035951347,
-0.0019772302,
-0.018436588,
-0.008541032,
0.022515213,
0.023764387,
0.029212587,
0.019219203,
0.046505354,
0.018481739,
-0.031244375,
0.014606293,
-0.039522026,
0.032779504,
-0.032719303,
0.02883633,
0.014124684,
-0.0032489784,
-0.015998444,
-0.009504249,
0.016359651,
-0.020046968,
-0.009263446,
0.009346222,
-0.024261046,
-0.0022725917,
0.040665846,
0.016856309,
-0.039522026,
-0.0021728836,
-0.056257933,
0.021943303,
0.045542136,
-0.0043984433,
0.048762895,
-0.039311323,
-0.008736686,
0.028700877,
-0.047077265,
-0.011791891,
0.024456698,
-0.0045903344,
-0.019776063,
0.026398186,
0.011520986,
-0.015426533,
-0.016901461,
0.022936622,
-0.032237694,
0.007954071,
-0.005056893,
0.011784366,
0.021250991,
-0.009556926,
0.016194098,
0.010061109,
0.007656828,
-0.040575545,
0.070615895,
-0.012950763,
0.014320338,
-0.021145638,
0.06905067,
0.007005904,
-0.014222511,
-0.016359651,
0.041839767,
0.005158482,
-0.018812846,
0.0057680183,
0.026368085,
-0.034766138,
-0.037445087,
0.029152386,
0.0137108015,
0.018978398,
0.018617192,
-0.0103470655,
0.024923258,
0.045512035,
0.029047033,
-0.025961727,
-0.008322803,
-0.021506846,
0.023087123,
0.028791178,
-0.010128836,
0.021597147,
-0.035277847,
0.018978398,
0.022665717,
0.012303601,
-0.008781836,
-0.034134027,
-0.004680636,
0.043404996,
-0.018496789,
-0.0033468052,
-0.008458256,
-0.024080442,
0.012303601,
-0.031334676,
-0.0103470655,
-0.036301266,
-0.009406423,
-0.008074474,
0.042261176,
-0.0006880798,
0.040575545,
-0.04734817,
-0.031906586,
0.018060332,
-0.039823033,
-0.007607915,
-0.019956667,
0.027090497,
0.01334207,
0.018316187,
-0.025781123,
-0.0031643207,
-0.029874798,
-0.007284334,
-0.018918198,
0.0028068766,
-0.00557989,
-0.023628933,
0.0039770356,
0.06965268,
-0.009617127,
-0.08422135,
-0.021913202,
0.025796173,
-0.005135907,
0.027301202,
0.037264485,
-0.035849757,
-0.028896531,
-0.028971782,
0.031906586,
-0.022470063,
-0.028174117,
-0.0024249759,
-0.02177775,
0.0036083038,
0.026699191,
0.013643076,
-0.01250678,
-0.010015959,
-0.021536946,
0.026187481,
-0.028520273,
-0.021175738,
-0.025826275,
-0.008059423,
-0.034374833,
0.034766138,
-0.00030077036,
0.00009894381,
-0.03756549,
-0.031274475,
0.02394499,
-0.007160169,
-0.020302823,
-0.012830361,
0.0042328904,
0.0034672075,
-0.00031511518,
0.043043792,
0.0054783006,
0.020122219,
-0.022470063,
0.041328058,
-0.005771781,
-0.017789427,
-0.03211729,
-0.01360545,
0.046114046,
-0.039070517,
0.009466624,
-0.021536946,
0.051231142,
0.011927344,
0.006524295,
-0.011400584,
-0.009444049,
-0.066341616,
-0.054120794,
0.002955498,
-0.024742655,
-0.011694065,
-0.0030965945,
-0.031485178,
0.04623445,
-0.04846189,
0.019535258,
0.050358225,
0.002374181,
0.034525335,
-0.039883234,
0.032388195,
0.032538697,
-0.037113983,
-0.026970096,
0.035277847,
-0.020528577,
-0.002718456,
-0.030281156,
-0.01687136,
0.010587869,
0.011092054,
0.022289459,
-0.055806424,
0.020167371,
-0.000975446,
-0.048251186,
-0.033381514,
0.049936816,
0.011295233,
-0.011445736,
0.0066747977,
0.036903277,
0.03428453,
0.023628933,
0.005862083,
-0.008292702,
-0.023598833,
0.03594006,
0.0033486865,
-0.01198002,
0.009015116,
0.029182486,
-0.03702368,
-0.044879925,
-0.011543562,
0.026187481,
-0.037083883,
-0.041869868,
-0.0047634123,
-0.020498477,
0.00024009895,
0.008909764,
0.021973403,
-0.011415634,
-0.001322543,
-0.0027786572,
-0.0034295816,
-0.011332858,
0.009850406,
0.044879925,
-0.038950115,
-0.033020306,
-0.052435163,
0.00057567307,
-0.038769513,
-0.0029141097,
0.038348105,
0.027526956,
0.034374833,
0.0022312035,
-0.0054783006,
0.060201105,
-0.009571976,
0.044548817,
0.044669222,
-0.062849954,
-0.052976973,
0.002253779,
0.042441778,
0.0031172885,
0.00037649207,
-0.022138957,
-0.012145573,
0.048612393,
0.023072073,
-0.040485244,
-0.07446877,
0.020558678,
-0.040274538,
0.021235941,
0.017653974,
0.035067145,
-0.020618878,
0.0064603314,
-0.033381514,
-0.004646773,
-0.010399741,
0.017187417,
0.008375479,
-0.015012651,
-0.044037107,
-0.005914759,
-0.05556562,
-0.022003504,
0.023719236,
-0.03157548,
0.009594551,
0.0060389233,
-0.004078625,
-0.030145703,
-0.023704186,
0.046354853,
-0.016239248,
0.011882193,
-0.018406488,
-0.02557042,
-0.0064452807,
0.006102887,
-0.012574506,
0.008864613,
0.052645866,
-0.039100617,
0.05165255,
0.032869805,
-0.021356342,
0.03482634,
0.011904769,
0.018000131,
-0.011746741,
0.007833669,
0.048341487,
0.004097438,
-0.06670283,
-0.037685893,
0.024215896,
0.014771846,
0.008488356,
0.012393903,
-0.009541876,
0.034495234,
0.012311126,
-0.005064418,
0.026864743,
0.009775154,
0.030717615,
-0.054482,
0.0024757704,
-0.031725984,
-0.020242622,
-0.014749271,
0.0020863446,
0.074167766,
-0.0111673055,
0.019971717,
0.0058959457,
-0.02504366,
-0.047167566,
-0.0041614017,
-0.016720857,
0.039100617,
0.031334676,
0.026623938,
0.041839767,
-0.0033336363,
-0.046956863,
0.0037851445,
-0.032388195,
-0.024863057,
0.011671489,
-0.03973273,
-0.006652222,
-0.048160885,
0.009165619,
-0.015847942,
0.0029649045,
-0.0008917289,
0.024170743,
0.023041973,
-0.017398119,
0.019490108,
-0.061224524,
-0.010422316,
-0.031996887,
0.013846254,
0.006023873,
-0.034194227,
0.034645736,
0.007675641,
0.014658969,
-0.007408499,
-0.038438406,
-0.018572042,
-0.0037832633,
0.046204347,
-0.024652353,
0.035006944,
-0.04677626,
0.015893092,
-0.06658243,
0.027015246,
0.003000649,
0.030807916,
0.036933377,
-0.012040221,
0.017924879,
0.0597797,
0.024547001,
-0.014711645,
-0.00045009734,
0.02504366,
0.032267794,
-0.0145310415,
-0.023719236,
-0.007013429,
0.0032151153,
0.009910607,
0.024125593,
0.017398119,
0.024185793,
0.027707558,
0.012732534,
0.009459099,
0.022906521,
0.018150633,
-0.0021333767,
0.026864743,
-0.016434902,
0.01198002,
-0.04792008,
0.023147326,
0.0114382105,
0.010730847,
-0.021401493,
-0.004733312,
-0.029543692,
0.014914824,
0.016705807,
-0.017578723,
0.028685827,
-0.020513527,
0.036602274,
-0.013597925,
0.015456634,
-0.033351414,
0.017578723,
0.048190985,
0.028445022,
0.021853002,
0.018286087,
0.020137269,
-0.006016348,
0.017082063,
-0.01580279,
0.013251768,
0.013515148,
-0.037113983,
-0.0060803117,
0.017669024,
-0.00031276356,
-0.007604152,
0.026924945,
-0.011927344,
-0.012446579,
-0.039582226,
0.012476679,
-0.041297957,
0.02829452,
0.022951672,
-0.033261113,
-0.046174247,
0.0090677915,
-0.006471619,
0.017157314,
0.051592346,
0.036722675,
0.014771846,
0.07988687,
0.000025412039,
-0.053970292,
0.0133495955,
-0.006580733,
-0.02826442,
-0.06260915,
0.030687513,
-0.026247682,
0.0010083686,
-0.05327798,
-0.017864678,
0.05496361,
0.035247747,
-0.021822901,
-0.039040416,
-0.011520986,
0.001990399,
-0.044037107,
-0.014749271,
0.057221152,
-0.008706585,
-0.025073761,
0.009925657,
0.0068328255,
-0.076335005,
-0.03100357,
-0.043465197,
0.0009980215,
-0.006313591,
-0.013816154,
-0.022274408,
-0.04734817,
-0.008736686,
-0.041057155,
-0.013786053,
0.032568797,
0.033863124,
0.040786248,
0.017729226,
0.0035443401,
-0.001364872,
0.012694908,
0.035458453,
0.029077135,
-0.0009486377,
0.09295051,
0.07362595,
-0.039341424,
-0.027707558,
0.007502563,
0.017368019,
-0.017352968,
0.0062458646,
0.038829714,
0.008668959,
-0.020122219,
-0.06092352,
-0.020995136,
0.10523153,
0.0023346741,
-0.05878638,
-0.043043792,
-0.007664353,
-0.045602337,
-0.036120664,
-0.047558874,
0.014937399,
-0.031816285,
-0.025961727,
0.010234188,
-0.049786314,
0.26946014,
0.036210965,
0.019896466,
0.033802923,
0.036150765,
0.075070776,
0.053247876,
0.0044323066,
0.019986767,
-0.09584016,
0.012273501,
-0.03157548,
-0.011144729,
0.042080574,
-0.022048656,
0.016480053,
-0.052886672,
0.0020524815,
-0.022349661,
-0.020919884,
-0.014794421,
-0.0016470646,
0.0013987351,
0.087231405,
-0.02231956,
0.015622187,
0.034164127,
-0.0326591,
0.0046129096,
-0.040786248,
-0.008360429,
-0.017623873,
0.022048656,
-0.020904833,
-0.02557042,
0.04951541,
0.019821214,
-0.061164323,
0.008623809,
-0.0019132664,
0.042742785,
-0.004541421,
0.022334611,
-0.005335323,
-0.004078625,
0.033923324,
-0.012672333,
-0.024832956,
0.036000263,
-0.033080507,
0.052073956,
-0.061224524,
0.045843143,
-0.0022048655,
-0.000045679943,
0.009579501,
-0.037896596,
-0.021100488,
-0.02501356,
-0.0025735972,
0.005117094,
0.008924814,
-0.035729356,
0.0074273115,
-0.055144213,
0.046956863,
-0.039853133,
0.049425106,
-0.02942329,
-0.050388325,
0.029618945,
-0.0067011355,
0.006881739,
-0.015185729,
0.014523516,
0.011957444,
0.028911581,
0.04948531,
0.03756549,
-0.018346287,
-0.000487723,
-0.027421603,
-0.050990336,
-0.050478626,
0.018933248,
-0.009541876,
-0.056980345,
-0.0028012327,
-0.016299449,
0.014568668,
-0.0033336363,
0.030792866,
-0.028776128,
0.044277914,
-0.008383004
] |
Upon adding custom tools to an agent, the tools' descriptions and names are automatically
included in the agents' prompts. Thus, it is imperative that custom tools have
a well-written description and name in order for the agent to understand how to use them.
Let's take a look at the description and name of controlnet_transformer:
py
print(f"Description: '{controlnet_transformer.description}'")
print(f"Name: '{controlnet_transformer.name}'")
gives
text
Description: 'This is a tool that transforms an image with ControlNet according to a prompt.
It takes two inputs: `image`, which should be the image to transform, and `prompt`, which should be the prompt to use to change it. It returns the modified image.'
Name: 'image_transformer'
The name and description are accurate and fit the style of the curated set of tools.
Next, let's instantiate an agent with controlnet_transformer and upscaler:
py
tools = [controlnet_transformer, upscaler]
agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder", additional_tools=tools)
This command should give you the following info:
text
image_transformer has been replaced by <transformers_modules.diffusers.controlnet-canny-tool.bd76182c7777eba9612fc03c0
8718a60c0aa6312.image_transformation.ControlNetTransformationTool object at 0x7f1d3bfa3a00> as provided in `additional_tools`
The set of curated tools already has an image_transformer tool which is hereby replaced with our custom tool. |
[
0.044889268,
-0.038641486,
-0.013494911,
-0.004426745,
0.013406079,
-0.033696562,
-0.016641008,
0.010837383,
-0.014249974,
0.026101511,
0.0036624284,
-0.035946947,
0.030409815,
-0.0011196408,
0.023703074,
-0.009586346,
0.016655814,
-0.01595997,
-0.0077431025,
0.00096973847,
-0.031179683,
-0.001856198,
-0.064668976,
-0.020993728,
-0.019528016,
-0.00064680073,
-0.01724802,
-0.018180747,
0.06200404,
0.02300723,
-0.043023817,
0.011969978,
-0.011903355,
0.016803864,
-0.01856568,
-0.04136564,
0.0019098666,
0.009793619,
-0.056763012,
-0.054867953,
0.040062785,
-0.003538435,
0.027345145,
-0.06383988,
-0.06922896,
0.05051523,
0.019320743,
-0.0018367661,
-0.012280887,
-0.041602522,
-0.003183111,
0.026856573,
-0.02741917,
0.027715273,
-0.04859056,
-0.03002488,
-0.028529558,
-0.023540217,
-0.016033996,
0.008387128,
0.002948079,
0.10351773,
0.0076098563,
-0.011089071,
-0.007058364,
0.048679393,
-0.041987456,
-0.035917338,
-0.022296583,
-0.0122512765,
-0.015138284,
0.047879912,
-0.0058887554,
-0.014368415,
-0.027567223,
0.007202714,
0.007432194,
-0.0234958,
-0.0044008363,
0.029417869,
0.030380204,
0.036006168,
0.029269816,
-0.018639706,
0.016744645,
-0.027611637,
0.023362555,
0.0022670412,
-0.0006551287,
-0.013561534,
-0.046488225,
0.03875993,
-0.00885349,
0.031623837,
0.065142736,
0.052558344,
-0.000777734,
0.038078893,
-0.018373214,
0.003271942,
0.037397854,
0.092147365,
-0.03961863,
-0.011436992,
-0.040270057,
-0.010289592,
0.04687316,
-0.00816505,
0.003632818,
0.015056856,
0.04515576,
0.0085944,
0.015190102,
-0.027700469,
-0.011436992,
0.05291367,
0.0053705745,
-0.0005024504,
-0.06798533,
-0.042816546,
0.008031803,
-0.010178553,
-0.05374276,
-0.03985551,
0.0052854447,
-0.011496212,
0.035058636,
0.0016877891,
-0.0064957673,
0.012280887,
0.024458136,
-0.022266973,
0.016315294,
0.03878954,
0.014620103,
-0.008727646,
0.010992837,
0.00040436615,
0.034880973,
-0.043616023,
0.017588539,
-0.009194009,
-0.02257788,
0.07716453,
0.013576339,
-0.037397854,
0.009490113,
-0.019202303,
-0.040862262,
0.03796045,
-0.006455053,
0.019646458,
-0.015693478,
0.014442441,
-0.02781891,
-0.027285924,
-0.0034181431,
0.02870722,
0.008327907,
0.009490113,
0.008350114,
0.0020727236,
-0.042905375,
0.041809794,
-0.00816505,
0.06496508,
-0.03263059,
-0.02724151,
-0.01715919,
0.0059072617,
0.0055186264,
0.019868536,
-0.0035847013,
0.011451798,
0.015811918,
-0.0064624557,
0.02773008,
0.035650842,
0.011681277,
0.024961513,
0.016404126,
0.0027519106,
-0.017203605,
-0.00641804,
-0.013058158,
-0.032127213,
0.05925028,
0.023895541,
0.0043971348,
-0.055193666,
0.03878954,
0.024709824,
-0.06763001,
0.03171267,
-0.021482298,
0.0220597,
-0.031949554,
0.0026834367,
0.037812397,
-0.03455526,
-0.018313993,
0.022222556,
-0.0021467493,
0.027463585,
-0.00977141,
0.0087942695,
0.01727763,
0.039411355,
0.004541485,
0.043023817,
0.05910223,
0.022711128,
-0.04299421,
0.004822783,
0.030469036,
-0.019750094,
-0.009704787,
0.04157291,
0.000018130548,
0.011385174,
0.07124247,
0.0024946707,
0.07029494,
0.039589018,
0.022725932,
0.005429795,
0.013872442,
0.050011855,
0.011133486,
0.007787518,
-0.020283079,
0.03191994,
0.043764077,
0.04850173,
0.000777734,
0.027167482,
0.023377359,
0.029610336,
-0.008490764,
-0.006976935,
0.0039899927,
0.046221733,
0.01942438,
0.05125549,
0.011503615,
-0.014790363,
0.014494259,
-0.020727234,
-0.013828027,
-0.00021305561,
-0.039056033,
0.041099146,
-0.0006690085,
-0.02650125,
-0.07680921,
-0.038700707,
-0.035680454,
0.04062538,
-0.04850173,
-0.01850646,
0.015323348,
0.011585044,
-0.0102747865,
0.0027167483,
0.052203022,
0.033755783,
0.0034422015,
0.009393879,
-0.008002193,
-0.0842118,
-0.037249804,
-0.02704904,
-0.049715754,
-0.009623359,
-0.016344905,
0.008076219,
0.0045081736,
-0.03722019,
0.02077165,
-0.008942321,
-0.017144384,
0.0022133726,
-0.017766202,
0.01017115,
-0.004822783,
0.019898145,
-0.024739435,
-0.005796223,
-0.0059516774,
0.049093936,
-0.052884057,
-0.02346619,
-0.021363856,
-0.027700469,
-0.008031803,
0.041720964,
-0.0034514547,
-0.02873683,
-0.023703074,
-0.02040152,
-0.05057445,
-0.0056888857,
-0.05575626,
0.0012167997,
-0.014531272,
-0.019291133,
0.0061219367,
0.0077282977,
0.05122588,
0.04157291,
-0.0059257685,
0.009393879,
0.0049597314,
0.06472819,
-0.037249804,
0.047139652,
-0.005448302,
-0.0049116146,
-0.0541573,
-0.009504918,
-0.0013768806,
0.026131121,
-0.026826965,
-0.02879605,
-0.021141779,
0.029743582,
-0.0008494465,
-0.080777,
0.0072064153,
-0.032245655,
0.0002618664,
-0.055430546,
-0.006277391,
0.029092154,
-0.00004840596,
0.022770347,
-0.043319922,
0.016063606,
-0.01105946,
0.0234958,
0.004882004,
-0.051729254,
0.022030089,
0.007213818,
-0.023732685,
0.029506698,
0.023999177,
-0.05374276,
0.037871618,
-0.012014394,
0.048472118,
-0.013324651,
-0.008372323,
-0.001782172,
0.037871618,
-0.0068140784,
-0.032334488,
-0.005936872,
0.010045306,
0.0048783026,
0.028781246,
0.046310563,
0.0023651256,
-0.050900165,
-0.0030517152,
-0.00951232,
0.011148292,
-0.035177078,
0.050900165,
-0.01850646,
0.016863085,
0.03440721,
-0.06354378,
0.0102747865,
-0.012081017,
-0.0052595357,
0.028514752,
-0.0171888,
0.056940675,
-0.004374927,
-0.036835257,
0.01675945,
-0.029906439,
0.0326602,
0.015634257,
0.0031146372,
-0.0020949312,
0.045481473,
0.014649713,
-0.010408033,
-0.004515576,
0.011762706,
0.010445046,
0.017040748,
-0.009726996,
-0.002478015,
0.018861784,
0.041010313,
0.045422256,
0.032423317,
0.026442029,
-0.00024127797,
-0.01764776,
0.012280887,
-0.02031269,
0.04503732,
-0.042786933,
0.0492716,
-0.039944343,
0.005081874,
-0.012458549,
-0.0052003153,
0.016981527,
0.028529558,
-0.012547379,
0.007021351,
-0.037338633,
-0.016019192,
-0.017396072,
0.0075876485,
-0.03881915,
-0.02300723,
-0.04237239,
-0.007298948,
0.024458136,
-0.022192946,
0.039174475,
-0.034229547,
-0.014227767,
0.005440899,
-0.03378539,
-0.0027519106,
0.008438946,
-0.027493196,
0.0008915487,
0.045244593,
0.02105295,
-0.00062089175,
-0.024502553,
-0.019453991,
-0.026826965,
-0.00017349806,
-0.040181223,
0.0101489425,
-0.0041380445,
-0.016344905,
0.0039714864,
0.01853607,
-0.020623598,
-0.032038383,
0.04693238,
-0.028662805,
0.002143048,
-0.016108023,
0.03206799,
-0.002289249,
-0.010067514,
-0.028929297,
0.046399396,
0.015723089,
-0.03434799,
0.020327495,
0.0045451866,
-0.03419994,
-0.06105651,
-0.00862401,
0.026131121,
0.007898557,
-0.0017858733,
0.017958669,
0.009689982,
0.043556802,
0.015278933,
-0.040891875,
-0.007942973,
-0.03529552,
0.010726344,
0.016463347,
0.0130507555,
0.039115254,
-0.03976668,
0.011414784,
0.01214764,
0.011585044,
-0.036568765,
-0.05116666,
0.0112001095,
-0.0048523936,
0.00029032008,
0.004730251,
0.015545426,
0.001254738,
0.019557627,
-0.030291373,
-0.012362315,
-0.04657706,
-0.0029961958,
0.024191644,
0.07313753,
0.013939065,
0.02707865,
-0.06117495,
-0.025538914,
0.0015286335,
-0.029802803,
0.018091915,
-0.025242811,
-0.013117379,
-0.011866342,
0.016670618,
-0.02704904,
0.008512971,
-0.011281538,
-0.0038900578,
0.00484129,
-0.010866993,
0.016966723,
-0.034111105,
0.013879845,
0.08024401,
-0.008261284,
-0.066031046,
-0.024532164,
0.023703074,
-0.008868296,
0.013939065,
0.020001782,
-0.032186434,
-0.0254945,
-0.010815175,
0.0027315535,
-0.028648,
-0.0027093457,
-0.006936221,
-0.037634738,
0.0011686829,
0.036094997,
0.045333423,
-0.0074395966,
0.016492957,
-0.031327736,
-0.016581789,
-0.04672511,
-0.029713972,
-0.01352452,
-0.0032645394,
-0.04329031,
0.0029425272,
-0.013754001,
-0.0055593406,
-0.014923609,
-0.0042490833,
0.013383872,
0.0064735594,
-0.03804928,
-0.029506698,
-0.006566092,
-0.00013313084,
-0.037605125,
0.0010123033,
-0.0059405738,
0.042934988,
-0.01939477,
0.05196614,
0.006214469,
0.014760752,
-0.06549806,
-0.036776036,
0.030528255,
-0.019246718,
0.0006195037,
0.00036689057,
0.05021913,
0.016803864,
0.027345145,
-0.015123479,
-0.0066216113,
-0.046458617,
-0.058569245,
0.028263066,
-0.04151369,
-0.0010548682,
-0.0041787587,
-0.023555022,
0.03443682,
-0.057651322,
0.0045821993,
0.06002015,
0.0042712907,
0.028648,
-0.040773433,
0.010815175,
0.046132904,
-0.007558038,
-0.019528016,
0.017233215,
-0.014027896,
0.0055889506,
-0.04065499,
-0.04844251,
-0.012939717,
0.038286164,
0.042905375,
-0.03621344,
0.030557865,
0.008801673,
-0.04320148,
-0.03878954,
0.044533946,
0.025568524,
-0.0006926042,
0.00020565304,
-0.0100305015,
0.013531923,
0.029950853,
0.0036735323,
-0.0106449155,
-0.023229308,
0.04044772,
-0.027522806,
-0.036924087,
0.02074204,
0.032334488,
-0.025390863,
-0.031949554,
-0.007883752,
0.03713136,
-0.04604407,
-0.025953459,
0.016655814,
0.024946708,
-0.03191994,
0.015382569,
0.041039925,
0.0028351897,
0.00092948694,
0.0016979676,
-0.015338154,
-0.000008841172,
-0.008675829,
0.032097604,
-0.06366222,
-0.02741917,
-0.02031269,
-0.003830837,
-0.022903595,
-0.01798828,
0.040566158,
0.024102813,
-0.0075247264,
0.0052410294,
0.004245382,
0.06007937,
-0.0045303814,
0.023969566,
0.019009836,
-0.04740615,
-0.060997292,
-0.021023339,
0.027863326,
0.003214572,
-0.008142842,
-0.047050823,
-0.0034162924,
0.007084273,
0.017736591,
-0.0237771,
-0.07769752,
0.028396312,
-0.03686487,
0.020238664,
0.004904212,
-0.0031016825,
-0.00016112186,
0.0246358,
-0.017825421,
-0.018580485,
0.0052928473,
0.025820212,
-0.0077579077,
-0.013739196,
-0.013835429,
0.0118145235,
-0.035029028,
-0.023599437,
0.010245176,
-0.03784201,
0.010963227,
0.0016063607,
-0.01715919,
-0.034703314,
0.017144384,
0.010348812,
-0.03784201,
-0.0007296172,
-0.028425923,
-0.017914252,
0.011540628,
0.014642311,
-0.044622775,
0.022829568,
0.033992667,
-0.035117857,
0.031031631,
-0.001280647,
-0.02876644,
0.0040381094,
-0.010045306,
0.031890333,
-0.02561294,
-0.006669728,
0.041069534,
0.0115702385,
-0.055400938,
-0.009364269,
0.0053187567,
0.025509303,
0.0012963775,
0.008809075,
-0.0149014015,
0.034644093,
0.0016877891,
0.017544124,
0.028781246,
0.013509716,
0.021704376,
-0.00091745774,
0.037871618,
-0.035562012,
-0.0017710682,
-0.028573973,
0.008150245,
0.050544843,
-0.018787758,
0.020623598,
0.0229184,
-0.038463827,
-0.06579416,
-0.009401281,
0.008157647,
0.047376536,
0.0026649302,
0.016996333,
0.023421776,
0.034732923,
-0.0237771,
0.056200415,
-0.0047857706,
-0.025849823,
0.006314404,
-0.0066882344,
0.019157887,
-0.034140717,
0.034022275,
0.0154714,
-0.006517975,
-0.030158127,
0.03597656,
0.027774494,
-0.013657767,
0.044652387,
-0.0406846,
-0.042875767,
0.003978889,
0.027463585,
0.0052669384,
-0.050692894,
-0.014242571,
0.036539152,
0.012044004,
-0.028411116,
-0.03263059,
-0.0013602248,
0.0389672,
0.08030323,
-0.024132423,
-0.0032127213,
-0.03893759,
0.038700707,
-0.087232046,
0.036154218,
-0.009045958,
0.024532164,
0.042046677,
-0.006821481,
0.026782548,
0.040329278,
0.041128755,
-0.0022540868,
-0.012169848,
0.015945166,
0.014109325,
-0.022622297,
-0.015278933,
-0.018373214,
-0.008268686,
0.036094997,
0.033933446,
0.010408033,
0.033341236,
0.031416565,
-0.050959386,
0.011622056,
-0.0017803214,
0.0269306,
0.015560231,
0.022799958,
0.0010317351,
0.02653086,
-0.016507762,
0.011955173,
-0.0040122005,
-0.018787758,
-0.0014351759,
0.01724802,
-0.02790774,
0.023184892,
0.0012991534,
-0.027582027,
0.01128894,
-0.033282015,
0.040210836,
-0.011910757,
0.020386716,
-0.008875698,
0.012976729,
0.0309428,
0.00727674,
0.034673702,
0.04746537,
0.015204907,
-0.015974777,
0.021793207,
-0.036509544,
0.012192056,
0.0021041844,
-0.03878954,
-0.031535007,
0.028411116,
0.030084101,
0.0150272455,
0.022903595,
-0.024058398,
-0.010430241,
-0.065912604,
0.014509064,
-0.063188456,
0.020904897,
0.0037938242,
-0.03443682,
-0.03431838,
0.0034422015,
-0.024783852,
0.03722019,
0.035532404,
0.047080435,
0.007787518,
0.053417046,
-0.023362555,
-0.030261762,
-0.0054779123,
0.033311628,
-0.04243161,
-0.0432607,
-0.0031609032,
-0.029699167,
0.017529318,
-0.05546016,
-0.03784201,
0.02873683,
0.054601457,
0.018284382,
-0.024798656,
-0.022725932,
0.04334953,
-0.057207167,
0.0045970045,
0.070531815,
0.008557387,
-0.031475786,
-0.021556323,
0.014131533,
-0.06093807,
-0.03345968,
-0.036716815,
0.030617086,
-0.019868536,
-0.021126974,
-0.0067770653,
-0.028529558,
-0.0074507007,
-0.009231022,
-0.015175297,
0.010593098,
0.034288768,
0.035946947,
0.025849823,
0.032867473,
-0.016004385,
0.026175536,
0.013650364,
0.035532404,
0.0022096713,
0.083501145,
0.08486322,
-0.018417628,
-0.03680565,
-0.02555372,
0.016892696,
-0.0134208845,
0.010652319,
-0.0038456423,
0.0057518077,
-0.03268981,
-0.014390623,
-0.03366695,
0.055845093,
-0.02251866,
-0.066031046,
-0.030010074,
0.0005852668,
-0.057296,
-0.059694435,
-0.033104356,
0.025835017,
-0.049301207,
0.024043592,
0.034851365,
-0.07787518,
0.26080784,
0.06993961,
0.028159428,
0.06312923,
0.029862024,
0.08699516,
0.020978922,
-0.019083861,
-0.0028296376,
-0.10482059,
0.0010252579,
-0.04500771,
0.005677782,
0.061589498,
-0.01764776,
0.01412413,
-0.061471056,
-0.0343776,
-0.014538675,
-0.04568875,
-0.018373214,
-0.01148881,
-0.01712958,
0.0670378,
0.020638404,
-0.010696733,
0.015352959,
-0.033992667,
0.00816505,
-0.04136564,
0.004237979,
-0.011118681,
0.017632954,
-0.014227767,
-0.027463585,
0.033015523,
-0.0027260014,
-0.05400925,
-0.009630761,
0.021526713,
0.0045451866,
-0.0017951266,
0.032452926,
-0.03100202,
-0.00564447,
0.03618383,
-0.0069288183,
-0.03991473,
0.021689571,
-0.06691936,
0.06407677,
-0.059072617,
0.009268035,
-0.0108892005,
-0.023747489,
0.034792144,
-0.04693238,
-0.020593988,
0.005707392,
0.016137633,
0.026338393,
-0.0012917509,
-0.016700229,
0.012636211,
-0.04423784,
0.029980464,
0.009260632,
0.04065499,
-0.01715919,
-0.042017065,
0.029906439,
-0.0010271085,
-0.00928284,
-0.031623837,
-0.034022275,
0.016167244,
0.07147935,
0.02257788,
0.0104006305,
-0.040921483,
0.026826965,
0.0057296,
-0.051906917,
-0.028840467,
0.046132904,
0.03431838,
-0.029121764,
-0.012414133,
-0.016108023,
0.015619452,
0.0017571884,
0.044800438,
-0.002117139,
0.0061219367,
-0.015915556
] |
The upscaler tool was given the name image_upscaler which is not yet present in the default toolbox and is therefore simply added to the list of tools.
You can always have a look at the toolbox that is currently available to the agent via the agent.toolbox attribute:
py
print("\n".join([f"- {a}" for a in agent.toolbox.keys()]))
text
- document_qa
- image_captioner
- image_qa
- image_segmenter
- transcriber
- summarizer
- text_classifier
- text_qa
- text_reader
- translator
- image_transformer
- text_downloader
- image_generator
- video_generator
- image_upscaler
Note how image_upscaler is now part of the agents' toolbox.
Let's now try out the new tools! We will re-use the image we generated in Transformers Agents Quickstart. |
[
0.008008206,
0.0066554197,
0.015336402,
-0.036778428,
0.0065143537,
-0.051536098,
0.028762987,
-0.0014902352,
0.02678083,
0.04143722,
-0.011524004,
-0.03437669,
0.048642438,
-0.031483028,
0.014511708,
0.008963114,
0.00592477,
-0.038948674,
-0.038948674,
-0.017752608,
0.004796243,
0.024784204,
-0.027388498,
-0.040655933,
-0.013831698,
0.025348468,
0.03744397,
-0.009628656,
0.06846401,
0.023163754,
-0.05995665,
0.0064492463,
-0.007856289,
-0.039643154,
-0.0027544033,
0.0061634975,
0.00754522,
-0.017767077,
-0.04291299,
-0.042970862,
0.02362674,
0.011140593,
0.0040438906,
-0.03796483,
-0.01782495,
0.014453835,
0.030354502,
0.018331341,
0.013513396,
-0.023916107,
0.0046045375,
0.019170502,
0.014547879,
0.029660022,
-0.041495096,
-0.024827609,
0.003123345,
-0.028560432,
0.006438395,
0.005440082,
0.0097227,
0.029023416,
0.009071627,
-0.02165905,
-0.0071220226,
0.030238755,
-0.018230062,
-0.01587173,
0.0011312405,
-0.0023456737,
-0.011285277,
0.042421065,
0.017593456,
-0.021876074,
-0.013383181,
0.05877025,
-0.01603088,
-0.029833643,
0.009346524,
0.022223314,
0.00533157,
0.058914933,
0.048237324,
0.030354502,
-0.0064275437,
-0.032871984,
0.000008724783,
0.020197751,
0.023076944,
-0.004919223,
-0.048758183,
0.047947958,
-0.053937837,
0.0070713833,
0.021167127,
0.028980011,
-0.005382209,
0.01902582,
-0.009578017,
-0.0081311865,
0.036575872,
0.101335995,
0.020906698,
0.0380227,
-0.037791207,
0.012384868,
0.0031124938,
0.0037472907,
-0.0070496807,
-0.012601892,
0.015886197,
-0.023829296,
0.017376432,
-0.0011023039,
0.027258284,
0.033566464,
-0.022035226,
-0.0011511344,
-0.038861863,
-0.03258262,
-0.014309152,
0.008840133,
0.015683642,
-0.042999797,
-0.016551739,
-0.04511217,
-0.020197751,
0.054719124,
-0.0056317872,
0.018099848,
-0.0071256394,
-0.024408028,
0.026795298,
0.030238755,
-0.013014239,
-0.03460818,
-0.04441769,
-0.012811683,
0.0131372195,
-0.018939009,
0.038659308,
-0.008297572,
-0.0052990164,
0.075119436,
-0.006525205,
0.028517026,
0.041466158,
-0.033132415,
-0.06487587,
0.019329654,
-0.03631544,
0.0062683923,
0.011415492,
0.03674949,
-0.054805934,
0.01613216,
0.0015698109,
0.014612987,
0.01258019,
0.007668201,
0.029153632,
0.00754522,
-0.008926943,
0.072978124,
0.0002773845,
0.023756955,
-0.036778428,
-0.02294673,
-0.0015725237,
-0.03761759,
-0.0069845733,
-0.007150959,
-0.00032327615,
0.0070207445,
0.04068487,
0.0069881906,
0.02081989,
0.03156984,
0.0084928945,
0.017246218,
-0.000258847,
-0.031222599,
0.006044134,
0.020790951,
0.014048723,
-0.017101536,
0.013339776,
-0.0016231628,
-0.03709673,
-0.022382466,
0.037067793,
0.015408743,
-0.030499185,
0.01125634,
-0.038369942,
0.02514591,
-0.04169765,
-0.0073173447,
-0.00038567072,
-0.053069737,
-0.037212476,
0.022223314,
-0.045661967,
0.007053298,
0.020067537,
0.010055471,
0.027402967,
0.037472907,
-0.014830011,
0.02721488,
0.05810471,
-0.007245003,
-0.03096217,
-0.034289878,
0.02089223,
0.006937552,
-0.013339776,
0.03871718,
-0.025579961,
-0.0037979297,
0.03104898,
0.029515339,
0.05396677,
0.012131672,
-0.00012704979,
-0.016927915,
-0.0064130756,
0.047832213,
0.03718354,
0.02225225,
-0.009013753,
0.025898263,
0.009382695,
0.055934463,
0.021818202,
0.076971374,
0.013064878,
0.010757184,
0.050552253,
-0.017622394,
-0.020863295,
0.04800583,
0.036286507,
0.012167843,
0.009505675,
-0.01662408,
0.007581391,
0.0147576695,
-0.026042946,
0.04817945,
-0.066149086,
0.019300718,
0.0056932773,
0.020762015,
-0.06840614,
-0.009961427,
0.017246218,
0.03342178,
-0.025001228,
-0.022310125,
-0.036546934,
0.007972036,
-0.0077477763,
0.016870042,
0.046674747,
0.023322904,
-0.035273723,
-0.02336631,
-0.0064818,
-0.04988671,
-0.049076486,
0.0041198493,
-0.04913436,
0.005425614,
-0.035997137,
-0.021268407,
0.008738855,
-0.017521115,
0.008709919,
0.008637577,
-0.025796985,
0.004054742,
-0.00963589,
0.01027973,
0.050262887,
0.022382466,
-0.07523518,
0.004474323,
-0.021991821,
0.029529808,
-0.055326793,
0.0014640115,
0.0023510994,
-0.0055232747,
-0.0062575415,
0.016942384,
-0.022570554,
-0.028126381,
-0.015220655,
-0.012363166,
-0.024943355,
-0.019691361,
-0.008174592,
0.0070243613,
-0.03443456,
0.0077839475,
-0.018967945,
0.01695685,
0.035794582,
0.038601436,
-0.03411626,
0.0388908,
-0.020226689,
0.026476996,
-0.04612495,
0.061692845,
0.04389683,
-0.012775512,
-0.017434306,
-0.014526177,
-0.01757899,
0.0013925742,
0.024248878,
-0.026404655,
-0.06591759,
0.04858456,
0.00081338995,
-0.03981677,
0.027128069,
-0.019720297,
-0.027171474,
-0.05263569,
-0.010308666,
0.03929591,
-0.018866668,
0.031193662,
-0.03932485,
-0.002296843,
0.000024429391,
0.02815532,
-0.011654219,
-0.026520401,
0.015249592,
0.030730676,
-0.012869556,
0.0067060585,
0.064181395,
-0.037472907,
0.020631801,
-0.008673748,
0.0023818444,
0.00058777485,
0.020009663,
0.021007977,
-0.013809996,
0.010178451,
-0.067769535,
0.027865952,
0.025681239,
0.030730676,
0.041234665,
0.010916335,
0.0076175616,
-0.038369942,
0.018056443,
-0.04791902,
0.017853886,
-0.009621422,
0.07483006,
-0.035100106,
0.018707516,
0.028328938,
-0.06285031,
-0.0033186672,
0.030499185,
-0.028328938,
0.029804705,
0.023756955,
0.0550953,
-0.052346323,
-0.011994224,
-0.04514111,
0.012978069,
0.04444663,
-0.0092163095,
0.0445045,
0.018447086,
-0.010236325,
-0.032785177,
-0.04051125,
0.006666271,
0.0035845223,
-0.028965544,
-0.018331341,
-0.043462783,
-0.011929116,
0.006857976,
0.041321475,
0.04459131,
-0.0036586723,
0.040395502,
-0.008196294,
0.008832899,
0.026042946,
-0.0062864777,
-0.00044377,
-0.026882108,
0.031106852,
0.013158922,
-0.04571984,
-0.03695205,
-0.0038558028,
0.001344648,
0.02618763,
0.0014603944,
0.027996168,
-0.011625282,
0.007769479,
0.0024125897,
0.030412374,
-0.040135074,
-0.015423211,
-0.022917792,
0.0007342664,
0.057005115,
-0.043289166,
0.029862579,
-0.05781534,
0.0002753499,
0.0027580203,
-0.018707516,
0.0059754094,
-0.010988677,
0.0011113465,
-0.038485687,
0.051275667,
0.03972996,
-0.015958538,
0.0031088768,
-0.00951291,
0.030470246,
-0.011777199,
0.0070171272,
-0.030151945,
-0.028357875,
-0.0014748627,
-0.010728247,
0.040800616,
0.008044377,
-0.016855573,
0.008789495,
-0.003655055,
0.03385583,
-0.0066915904,
-0.013101049,
0.019763703,
-0.017405368,
0.00029230493,
0.046587937,
0.026390186,
-0.060593255,
0.036807366,
0.012572955,
-0.027837016,
-0.066785686,
0.033884767,
0.0059283874,
0.01756452,
0.04927904,
0.012941898,
-0.006640951,
0.07818671,
0.04522792,
-0.04401258,
-0.01671089,
-0.04826626,
-0.015987476,
0.004004103,
-0.022064162,
0.02406079,
-0.029370656,
0.031830266,
-0.03524479,
-0.00771884,
0.00045575155,
-0.05133354,
0.00061716355,
0.004709433,
0.005997112,
0.018302403,
0.007639264,
-0.012515083,
0.020371372,
-0.03573671,
0.026549337,
-0.020631801,
-0.043607466,
0.025941668,
0.07083681,
-0.021977354,
0.029688958,
-0.03640225,
-0.027648928,
-0.011690389,
-0.0377044,
0.08727281,
-0.055471476,
-0.010236325,
-0.009997598,
-0.018924542,
-0.01125634,
-0.017897291,
-0.00462624,
-0.02754765,
-0.046067078,
0.02788042,
0.015611299,
-0.033653274,
0.0109018665,
0.055066362,
-0.032003887,
-0.066554196,
-0.014359791,
0.02618763,
0.0013120943,
0.019329654,
0.0086809825,
-0.029891515,
-0.0055630626,
-0.041495096,
0.025362937,
-0.053069737,
-0.002195565,
-0.049250104,
-0.06337117,
0.0073788348,
0.023887169,
0.017897291,
-0.044996426,
0.04314448,
-0.027996168,
-0.0013862443,
-0.029399592,
-0.040974237,
-0.03863037,
-0.015582363,
-0.05816258,
0.016508335,
-0.016754296,
-0.0075886254,
0.02021222,
0.036980983,
0.02746084,
-0.004322406,
-0.040077202,
-0.017087067,
-0.03819632,
-0.03573671,
-0.0038738882,
0.030123008,
-0.026216567,
0.026751893,
-0.049481597,
0.020790951,
-0.023395248,
-0.005830726,
-0.019749233,
-0.00763203,
0.05032076,
-0.073325366,
-0.0007229631,
-0.008246933,
0.034579247,
0.009889086,
0.03096217,
0.017419837,
-0.05168078,
-0.08698344,
-0.110132724,
0.045170043,
-0.04554622,
-0.00848566,
-0.029139163,
-0.019474337,
0.033711147,
-0.013274669,
0.013375946,
0.050783746,
0.0020129026,
-0.026028479,
-0.071994275,
0.011017613,
0.021933949,
-0.00080208655,
0.009860149,
-0.010612501,
-0.036807366,
0.0020129026,
-0.0100193005,
-0.0344635,
-0.02890767,
-0.00049780007,
0.027070196,
-0.0291681,
0.057699595,
0.018461555,
-0.047658592,
-0.05321442,
0.014533411,
0.051188856,
0.017984102,
-0.0024704628,
0.02320716,
0.048324134,
0.0259272,
-0.03512904,
-0.0040366566,
-0.01850496,
0.06742229,
-0.025912732,
-0.031164726,
0.00710032,
0.028777456,
-0.04068487,
-0.077550106,
-0.0004394747,
0.01705813,
-0.010156749,
-0.028502557,
0.025869327,
0.0035519686,
-0.030209817,
-0.008377148,
0.01901135,
0.0047528376,
-0.017260686,
0.029327251,
0.016653018,
-0.019401995,
0.010062705,
0.02294673,
-0.027837016,
-0.053648468,
-0.01334701,
-0.028068509,
-0.04739816,
-0.027952762,
0.07008446,
0.015596831,
0.010648672,
0.028444685,
0.034579247,
0.06250307,
-0.0118929455,
0.007451176,
-0.004438152,
-0.026042946,
-0.041495096,
-0.018215595,
0.033161353,
0.034839675,
-0.011625282,
-0.01346999,
-0.013961913,
-0.008217996,
0.024769736,
-0.015278528,
-0.069563605,
-0.014490006,
-0.07448283,
-0.023091413,
-0.02336631,
-0.022179909,
-0.012052096,
0.00968653,
-0.030325564,
-0.034405626,
-0.018258998,
0.0037292053,
0.012377634,
-0.0007378835,
-0.030383438,
-0.016739827,
-0.075350925,
-0.04519898,
0.0051832697,
-0.024118662,
0.051536098,
0.008861836,
-0.016667485,
-0.027359562,
-0.01048952,
0.027388498,
-0.0013934785,
0.00810225,
-0.002258864,
0.010272495,
0.015553426,
0.021948416,
-0.028719582,
0.009230778,
0.057207674,
-0.0377044,
0.01458405,
-0.009266948,
-0.027099133,
-0.0339137,
0.003765376,
0.01671089,
0.020762015,
-0.012645298,
0.0027236582,
0.024610585,
-0.04522792,
-0.022396933,
-0.009368227,
-0.036865238,
0.0020110942,
0.034232005,
0.012558487,
0.034318816,
0.014743201,
-0.030991105,
-0.004282618,
-0.01646493,
-0.010518457,
-0.015727047,
-0.008152889,
-0.0047058156,
0.034405626,
-0.036112886,
0.038977608,
0.029356187,
-0.034289878,
0.034810737,
0.012847854,
-0.020834357,
0.018910073,
0.0040366566,
0.040742744,
0.073730476,
0.009035456,
-0.017535584,
0.029023416,
-0.021702455,
-0.058220454,
0.0086809825,
-0.046038143,
-0.01078612,
0.026751893,
-0.054632314,
-0.0151193775,
-0.041495096,
0.017926227,
0.034752864,
0.010236325,
-0.023048008,
0.012638063,
0.00028823572,
-0.019242844,
0.01901135,
-0.054024644,
-0.016580677,
-0.0028086593,
0.0377044,
-0.029920451,
-0.055847652,
0.0016900788,
0.012392102,
0.038832925,
0.010923569,
-0.035273723,
-0.019807108,
-0.002430675,
0.036112886,
-0.019734766,
-0.0034742013,
-0.04357853,
0.01773814,
-0.032177508,
0.015220655,
-0.02670849,
0.04334704,
0.0011312405,
0.0071364907,
0.02730169,
0.04195808,
-0.024755267,
-0.034289878,
0.023612272,
0.04673262,
0.035592027,
0.0024379091,
0.0026404655,
-0.0086665135,
0.037559718,
0.045951333,
0.034666054,
-0.008500128,
0.058365136,
0.023149285,
0.0018917307,
0.0016638549,
0.058625568,
-0.0059754094,
0.033219226,
-0.018432619,
-0.071762785,
-0.0030347267,
0.016088754,
0.0068832953,
0.00462624,
-0.0006605685,
-0.0073137274,
0.013838932,
-0.023670144,
0.017101536,
-0.015828324,
-0.030151945,
-0.009643124,
0.0077116056,
0.051362477,
-0.020950103,
0.037038855,
0.030296627,
0.049423724,
0.037646525,
-0.039353784,
0.03822526,
-0.020443713,
0.034232005,
-0.019850513,
0.0071111713,
-0.023583334,
-0.0077477763,
0.00177508,
-0.018273467,
-0.048468817,
0.02618763,
0.0259272,
-0.01526406,
0.04230532,
-0.04262362,
-0.024089726,
-0.034492437,
0.01467086,
-0.0035610113,
-0.008594172,
0.009889086,
0.0048251795,
-0.027735738,
0.025652302,
-0.032524746,
0.033740085,
0.026592743,
0.08825665,
0.004760072,
0.0760454,
0.05900174,
-0.0018682197,
0.010062705,
0.027388498,
0.0009657593,
-0.009455036,
-0.019416463,
-0.03113579,
0.029558744,
-0.045314725,
-0.058278326,
0.014627455,
0.018953478,
-0.01817219,
-0.018258998,
0.028676178,
0.019300718,
-0.05697618,
-0.0044887913,
0.06967935,
-0.03495542,
-0.0073209614,
-0.0064094584,
-0.033074543,
-0.016276842,
-0.015206187,
-0.028545963,
0.04025082,
0.01249338,
0.00003066037,
0.012746575,
-0.026245503,
0.009628656,
0.055471476,
-0.0076103276,
0.008340977,
0.025478683,
0.060824748,
-0.0056498726,
-0.008095016,
-0.0335954,
0.000561551,
0.03819632,
0.061519228,
0.017969633,
0.09537505,
0.06227158,
-0.028603837,
0.00053035375,
0.013549566,
0.035765648,
-0.007639264,
-0.017014725,
0.012732107,
0.03941166,
-0.030614931,
-0.01850496,
-0.029978326,
0.027128069,
-0.0024361005,
-0.012442741,
-0.045083232,
0.01160358,
-0.07205215,
-0.000188314,
-0.014142767,
-0.0045973035,
0.0011683155,
-0.018070912,
-0.00031988515,
-0.0615771,
0.24978079,
0.017043661,
0.03727035,
0.024957824,
0.027026791,
0.061519228,
0.013484459,
-0.026202098,
0.017116003,
-0.037791207,
-0.009787807,
-0.0315409,
0.017622394,
0.01815772,
0.02395951,
0.029558744,
-0.040713806,
0.033190288,
-0.0014043297,
-0.04502536,
-0.033682212,
0.007288408,
0.0055558286,
0.015654704,
0.011393789,
0.0074222395,
-0.001747952,
-0.06539673,
-0.0062792436,
-0.038861863,
-0.0122546535,
0.017709203,
0.024509307,
-0.016522802,
0.014735967,
0.00049101806,
-0.02634678,
-0.015625767,
-0.011155062,
-0.0064058416,
-0.004673262,
-0.025985073,
0.03819632,
-0.022961197,
-0.0008007302,
0.004524962,
-0.017940696,
-0.00886907,
0.005342421,
-0.02132628,
0.039093357,
-0.039180167,
0.009881851,
-0.046964113,
-0.04751391,
0.0025355702,
-0.029717896,
-0.05868344,
0.012044863,
0.0010941655,
0.02055946,
0.041408285,
0.01671089,
0.014887884,
-0.03993252,
0.037154604,
0.013875104,
0.021818202,
-0.027677864,
-0.008449489,
-0.010395476,
-0.0042934692,
0.013983616,
-0.03915123,
0.012449975,
0.016739827,
0.0067494637,
0.04033763,
0.016870042,
-0.037299287,
0.019836044,
-0.017897291,
-0.012326995,
0.00269653,
0.0056788092,
0.020660738,
-0.043549594,
0.016074285,
-0.030817486,
0.03573671,
0.040395502,
0.057352357,
-0.028878734,
0.014605752,
-0.0034850526
] | from diffusers.utils import load_image
image = load_image(
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/rivers_and_lakes.png"
) |
[
0.027867295,
-0.0030923046,
0.0017161195,
-0.036785997,
0.007917177,
-0.05927283,
0.020074394,
0.039183814,
-0.014533101,
0.05860027,
0.0040682447,
-0.003487067,
0.054594163,
-0.006656131,
0.024358295,
-0.027881915,
-0.0049418393,
-0.031405535,
-0.025571825,
0.014569653,
-0.023100905,
-0.007814831,
-0.08339719,
-0.056611836,
-0.063688315,
-0.0016073771,
0.020849297,
-0.0010755445,
0.053746156,
0.02989959,
-0.05292739,
-0.0027030252,
-0.008348492,
-0.05257649,
-0.008882152,
-0.00028579147,
0.03310155,
-0.024416778,
-0.026624523,
-0.045032144,
0.040265754,
-0.020746952,
-0.0008078006,
-0.01150659,
-0.052167106,
-0.0047371476,
-0.008794427,
0.00046352588,
-0.017077124,
-0.01309295,
0.042722054,
0.036727514,
0.017603474,
0.0002611188,
-0.009408501,
-0.024343675,
-0.010293061,
0.002026812,
0.005376809,
0.011499279,
-0.036698274,
0.04143542,
0.0046128705,
-0.0261859,
0.0034212733,
0.031580985,
-0.028028123,
0.011755144,
-0.01894859,
0.022384485,
-0.050324883,
0.049652323,
0.010563547,
0.017574232,
0.007573588,
0.027311703,
-0.010344234,
-0.059711453,
-0.01486207,
0.045032144,
-0.011806317,
0.027414048,
0.0068242704,
0.015863596,
0.01397751,
-0.037312347,
0.016960157,
0.015132555,
0.039563954,
-0.013743577,
-0.039096087,
0.025191683,
-0.018436862,
0.02549872,
0.024460642,
0.05187469,
0.003501688,
-0.0017992754,
-0.002768819,
0.0015032036,
0.039008364,
0.087023154,
0.0071788253,
0.048570383,
-0.029811865,
-0.030294351,
0.011616246,
-0.0081291795,
-0.017632715,
0.01700402,
0.033744864,
-0.02213593,
0.03593799,
-0.012720118,
0.0016731707,
0.05436023,
0.036405858,
-0.027457912,
-0.024007397,
-0.034856047,
-0.011345761,
-0.039973337,
-0.019928185,
-0.030118901,
-0.019372594,
-0.04248812,
-0.011813628,
0.04658195,
-0.02796964,
-0.031025393,
0.010812101,
-0.016974779,
0.00025083855,
0.030908426,
-0.032282785,
-0.011740523,
-0.040411964,
-0.0005327463,
0.032370508,
-0.023671117,
0.03824808,
-0.031814918,
-0.005278118,
0.07871853,
0.027823431,
-0.02567417,
0.022633038,
0.010395407,
-0.06357135,
0.011989078,
-0.046611194,
-0.0017078952,
0.027998881,
0.0011029586,
0.008933324,
0.0010252855,
-0.012551979,
0.009876368,
-0.034680597,
0.007482208,
0.037634004,
0.033013824,
-0.050763506,
0.051553033,
0.028130468,
0.03666903,
-0.027209356,
-0.029534068,
-0.034797564,
-0.0051026684,
0.016272979,
0.0047152163,
0.0023192286,
-0.028978476,
0.03470984,
0.010526994,
0.03859898,
-0.0020725022,
0.011923283,
0.040061064,
-0.036405858,
-0.011565073,
0.006484336,
0.025688792,
-0.0090941535,
-0.023978155,
0.00318734,
0.01044658,
0.005789847,
-0.028993098,
0.046464983,
0.04143542,
-0.013794749,
0.038335804,
-0.017501129,
0.03894988,
-0.0318734,
-0.0052817734,
0.0051611513,
-0.06748973,
-0.04868735,
0.02760412,
-0.046260294,
0.0096278135,
-0.043131437,
-0.017837407,
0.025381753,
0.06462405,
0.003275065,
0.044710487,
0.021536477,
-0.0060895737,
-0.05824937,
-0.014759724,
0.05079275,
0.02462147,
-0.033423208,
0.011937904,
-0.007171515,
0.0077929003,
0.060822636,
0.040294997,
0.02760412,
0.028876131,
0.0010325959,
0.008114559,
-0.015907459,
0.06251865,
0.0098836785,
0.03348169,
-0.0041705905,
0.02761874,
0.005643639,
0.03737083,
0.011440796,
0.050003223,
-0.026785353,
0.029592551,
-0.036259647,
-0.026127417,
0.0011504763,
0.072168395,
0.04427186,
0.039593197,
-0.0081291795,
0.021287922,
-0.00031206326,
0.008911394,
-0.021887377,
0.030557526,
-0.054915823,
-0.0074931732,
0.008224214,
0.007295792,
-0.030908426,
-0.0056253625,
0.027487153,
0.011396933,
-0.030235868,
-0.03947623,
-0.035470124,
0.01824679,
0.023934292,
0.016711604,
0.030820701,
0.017237954,
-0.017077124,
-0.01877314,
-0.024884645,
-0.08374809,
-0.03754628,
-0.03968092,
-0.07737341,
-0.014620826,
-0.046084844,
-0.02833516,
0.02621514,
-0.048453417,
0.033920314,
-0.01823217,
-0.0065610954,
0.008406975,
-0.0051392205,
0.013363435,
0.01665312,
-0.015410351,
-0.060998086,
-0.0031617535,
-0.019869702,
0.021668063,
-0.0322243,
-0.010826722,
0.0144599965,
-0.007485863,
-0.014152959,
-0.012837085,
0.0064368187,
-0.046289533,
-0.033247758,
-0.029431723,
-0.018012857,
-0.0069960654,
-0.029139306,
0.038218837,
-0.021053988,
0.008977187,
-0.0075297253,
-0.00025266616,
0.047722377,
0.037429314,
-0.028247435,
0.021112472,
-0.022033585,
0.021843513,
-0.020600744,
0.06035477,
0.032662924,
-0.0021346405,
0.01239115,
0.008480079,
0.0071788253,
-0.010205337,
-0.0015379281,
-0.023948913,
-0.04623105,
0.043277644,
-0.011133759,
-0.071408115,
-0.031171601,
-0.01150659,
-0.022209035,
-0.047751617,
-0.028729923,
0.05591004,
0.035528608,
0.027370187,
-0.013348814,
0.040499687,
-0.011404244,
0.06251865,
-0.0069083404,
-0.00018755779,
0.031113118,
0.0038964502,
-0.015585801,
0.039739404,
0.06708035,
-0.026858456,
0.014503859,
-0.0315225,
0.020103635,
-0.007939109,
0.020045152,
-0.0032147542,
0.014818207,
0.035528608,
-0.05453568,
-0.00024215743,
-0.018758519,
0.0044337655,
0.047693133,
0.0009658883,
-0.0013186157,
-0.032312024,
0.005577845,
-0.018641554,
0.0060786083,
0.032516718,
0.05593928,
0.0037191727,
-0.014701241,
0.053336773,
-0.04409641,
0.005680191,
-0.011660108,
-0.026142037,
0.045616977,
0.0020560536,
0.048628867,
-0.044184137,
-0.01274205,
-0.037780214,
-0.010249199,
0.059857663,
0.008363113,
0.037078414,
0.000187672,
0.016243737,
0.0011120966,
-0.01719409,
0.031756435,
0.0072665503,
-0.02159496,
-0.023758842,
-0.06316197,
-0.02248683,
0.014131028,
0.003532757,
0.020746952,
-0.017588854,
0.030031176,
0.00956202,
0.035908747,
0.026405212,
-0.040236514,
0.0014913243,
0.0016658603,
0.035996474,
-0.0029735104,
0.019928185,
-0.01292481,
0.010256509,
0.03435894,
-0.016389946,
0.012859017,
0.041143004,
-0.01824679,
0.0233787,
-0.002587886,
0.029811865,
-0.029636415,
0.0072299982,
0.017691199,
0.013122191,
0.01576125,
-0.05523748,
0.022954697,
-0.03824808,
0.021828894,
-0.005058806,
-0.0036332752,
-0.020834677,
-0.012822464,
0.015103313,
-0.02248683,
0.024753058,
0.023276355,
-0.04251736,
-0.0030575802,
-0.027896537,
-0.019167902,
0.031405535,
0.004923563,
-0.030177385,
-0.030586768,
-0.01947494,
0.021170955,
0.013041777,
-0.002681094,
-0.010790169,
0.019518802,
-0.012581221,
-0.0022187103,
-0.033686385,
0.016521534,
-0.014145649,
-0.0098032635,
-0.037517037,
0.03681524,
0.0095400885,
-0.037867937,
0.022384485,
0.015819734,
-0.056260936,
-0.050237156,
0.013926337,
0.0017343955,
0.002233331,
0.0067950287,
0.009415812,
0.008180352,
0.058980413,
0.0038343116,
-0.018758519,
-0.017120987,
-0.04728375,
0.021492613,
0.0012107871,
-0.0016567223,
0.02444602,
-0.01912404,
0.00557419,
-0.008443527,
0.0009841643,
-0.032721408,
-0.08187663,
0.036698274,
0.04125997,
-0.0018714657,
-0.014650067,
0.024329055,
-0.009342708,
-0.00027688188,
-0.05573459,
-0.016199876,
-0.033043068,
-0.013180674,
0.002929648,
0.061992303,
-0.023524908,
0.019898944,
-0.01966501,
-0.06848395,
0.017428024,
-0.063045,
0.046318777,
-0.015468834,
-0.022896213,
0.016243737,
-0.007522415,
-0.020074394,
-0.015805112,
-0.035821024,
-0.03044056,
0.04550001,
0.015117934,
0.011126448,
-0.057752263,
0.006213851,
0.066437036,
-0.030528285,
-0.07842611,
-0.026142037,
0.03631813,
0.006626889,
0.011711282,
0.037136897,
-0.035148464,
-0.027574878,
-0.041230727,
0.024840783,
-0.061641403,
-0.03155174,
-0.019723494,
-0.01595132,
-0.00921112,
0.021039369,
0.03684448,
-0.04795631,
0.01577587,
-0.03982713,
-0.012493496,
-0.058804963,
-0.008297319,
-0.003647896,
-0.012625083,
-0.040587414,
0.039710164,
0.0077929003,
-0.016930915,
0.015556559,
-0.0057350188,
-0.00336279,
0.012800533,
-0.01026382,
-0.029314756,
-0.009430433,
-0.029256273,
0.0050003226,
0.04336537,
-0.0038160356,
0.030849943,
-0.019065557,
0.025586445,
-0.02424133,
-0.008004902,
0.0051282546,
0.013356124,
0.03172719,
-0.018480724,
0.008838289,
-0.048453417,
0.043423854,
0.022238277,
0.005062461,
-0.011740523,
-0.0226769,
-0.05365843,
-0.07509256,
0.038131114,
-0.026112795,
-0.015878217,
-0.026492937,
0.0025824034,
0.059009653,
-0.025615687,
0.006484336,
0.03897912,
0.02690232,
0.019986669,
-0.059857663,
-0.00044913348,
0.017281815,
-0.003371928,
-0.0460556,
0.018290654,
-0.04269281,
0.0028547163,
-0.006710959,
-0.029227031,
-0.043511577,
0.019007074,
0.031288568,
-0.0506173,
0.06596917,
0.006838891,
-0.055149756,
-0.011075276,
0.011915973,
0.057927713,
0.000681696,
0.016521534,
0.054038573,
0.061992303,
0.022077447,
-0.011082586,
-0.0159367,
-0.01665312,
0.013838612,
0.002109054,
-0.042371154,
0.025878862,
0.062401686,
-0.051202133,
-0.05608549,
0.008465458,
0.006126126,
-0.0045872843,
-0.043803994,
0.036581308,
-0.0162876,
-0.01168935,
0.032341268,
0.018670795,
0.025454858,
-0.012603152,
0.038160354,
0.017091746,
-0.048804317,
0.011579694,
0.01912404,
-0.06357135,
-0.057050463,
-0.09094153,
-0.018144445,
-0.004104797,
-0.008187663,
0.034651358,
0.03044056,
-0.009423122,
0.022940075,
0.003541895,
0.048161,
-0.016199876,
0.012895568,
-0.011484658,
-0.022179794,
-0.030937668,
-0.024928508,
0.03491453,
0.018992452,
-0.024928508,
-0.044388827,
-0.03348169,
0.034622114,
0.017281815,
-0.03044056,
-0.028393643,
0.0010335096,
-0.059682213,
0.020220602,
-0.021726547,
-0.04374551,
-0.042371154,
-0.017413404,
0.006926616,
-0.0044337655,
0.01665312,
-0.0007621105,
0.013341503,
0.011111828,
-0.04742996,
-0.01770582,
-0.025206303,
-0.023671117,
0.031814918,
-0.016887054,
0.015132555,
0.028379023,
-0.028700681,
-0.04588015,
0.0021035713,
0.050705023,
0.0035163085,
-0.019504182,
-0.009576641,
-0.03716614,
0.006623234,
0.018758519,
-0.017501129,
0.057430603,
0.053687673,
-0.013568127,
0.010183405,
-0.03137629,
-0.02602507,
0.002441678,
0.0067840633,
0.023598013,
-0.0033335483,
0.030469801,
0.038014147,
0.0090941535,
-0.029270893,
-0.031171601,
0.04693285,
0.014474617,
0.024153605,
0.041669354,
0.020790813,
0.024767678,
-0.0027487152,
-0.015483455,
0.018261412,
-0.012668946,
-0.021887377,
-0.02285235,
-0.0024910232,
-0.00010799993,
0.039096087,
-0.03403728,
0.030499043,
0.029607173,
-0.029153926,
0.0046494226,
-0.00025495066,
-0.020995505,
-0.022209035,
0.014182201,
0.0051684617,
0.061290503,
0.025220925,
-0.01310026,
0.012815154,
-0.015995184,
-0.05114365,
0.01788127,
-0.057225913,
-0.034826808,
-0.010190716,
-0.033364724,
0.012288804,
-0.012829775,
0.047868583,
-0.0025220925,
-0.03169795,
-0.0042985226,
0.016009804,
-0.0077782795,
-0.01239846,
0.01735492,
-0.07134963,
-0.036902964,
0.039388504,
0.043950204,
-0.011119138,
-0.01577587,
0.012486185,
-0.0017645509,
-0.0018294308,
-0.021828894,
-0.032312024,
0.0026774388,
0.006162678,
0.039739404,
-0.026683006,
0.024504503,
-0.028890751,
0.030001935,
-0.053775396,
0.007829452,
-0.00991292,
0.015439592,
0.00062778173,
-0.031200843,
-0.0048065963,
0.03701993,
-0.0032768925,
-0.020235224,
0.010007955,
0.01965039,
0.048044033,
0.011828248,
-0.023627255,
-0.04090907,
-0.0058008125,
0.060764153,
0.026770731,
0.010826722,
0.042078737,
0.0254841,
0.017413404,
0.021682685,
0.028905373,
0.0023594357,
0.016682362,
-0.0064879917,
0.009488916,
0.0065281987,
-0.011638178,
0.032370508,
0.034826808,
0.010475822,
-0.031025393,
-0.034505147,
-0.014306478,
0.017559612,
0.040967554,
-0.035148464,
0.006601303,
-0.018159065,
0.017574232,
-0.017062504,
-0.0066305446,
0.03345245,
0.040265754,
0.0644486,
-0.0060639875,
0.051231373,
-0.00092613796,
0.010914447,
0.0050185984,
0.01824679,
-0.00318734,
-0.0037374487,
-0.0053402567,
-0.036084197,
-0.036025714,
0.043306887,
-0.0009649745,
-0.029285515,
0.029300135,
-0.017632715,
0.013429228,
-0.05167,
0.037604764,
-0.01576125,
0.041669354,
-0.0006711873,
-0.025527962,
-0.051640756,
0.011667419,
-0.023919672,
0.029680276,
0.039885614,
0.07556043,
0.011411554,
0.07327958,
0.049973983,
-0.029110065,
-0.017296437,
-0.0034212733,
0.008370423,
-0.044008687,
0.035821024,
-0.02389043,
0.004280247,
-0.05436023,
-0.049886256,
0.040821347,
0.05468189,
-0.0093646385,
-0.010329613,
0.0068425466,
0.026609903,
-0.024212088,
-0.030645251,
0.026405212,
-0.008187663,
-0.005113634,
0.012361908,
-0.0060859188,
-0.043511577,
0.0027121631,
-0.045616977,
0.058161646,
-0.013122191,
-0.023627255,
-0.021010127,
-0.038569737,
-0.011945215,
-0.007332344,
-0.03576254,
0.0017106367,
0.02266228,
0.05664108,
0.0025787482,
0.038394287,
-0.01931411,
0.00992023,
0.0077417274,
0.058863446,
0.031961124,
0.065384336,
0.057927713,
-0.031639468,
-0.024723817,
0.0036369304,
0.022516072,
-0.013231847,
-0.005738674,
0.00973747,
-0.0025988517,
-0.024489883,
-0.034271214,
-0.049330667,
0.037517037,
-0.019533424,
-0.030060418,
-0.03611344,
0.02549872,
-0.033978797,
-0.019679632,
-0.008947945,
0.02726784,
0.023159388,
0.005449913,
-0.0049454942,
-0.049096733,
0.2549872,
0.017866649,
0.034125008,
0.035148464,
0.022472208,
0.054214023,
0.015746629,
-0.04903825,
-0.041347694,
-0.04146466,
0.007105721,
0.0049674255,
-0.012486185,
0.011587004,
-0.03242899,
-0.014218753,
-0.027033906,
0.025864242,
-0.029884968,
-0.029227031,
-0.040324237,
0.06210927,
0.032107335,
0.027194737,
-0.01009568,
-0.007346965,
0.033891074,
-0.048014794,
-0.004251005,
-0.039739404,
0.0012811499,
-0.022647658,
-0.008465458,
-0.014021372,
-0.018553829,
0.047225267,
0.015980562,
-0.023115525,
-0.00066707516,
0.0063819904,
-0.00039955977,
-0.013948268,
-0.005881227,
-0.01045389,
-0.02707777,
0.040411964,
-0.0031580983,
0.007924488,
0.044827454,
-0.039359264,
0.035177708,
-0.042897504,
0.015848976,
-0.021697305,
-0.045090627,
0.006034746,
-0.022340622,
-0.016682362,
-0.0006638769,
-0.011777075,
0.015732009,
0.028466748,
-0.004693285,
0.065033436,
-0.05219635,
0.047371477,
-0.032341268,
0.031200843,
-0.059214346,
-0.029841106,
0.0059506763,
-0.008655529,
0.0036972414,
-0.02690232,
-0.0043241093,
0.023495667,
0.015117934,
0.08140876,
0.061699886,
-0.034095764,
-0.0006807822,
-0.012383839,
-0.06450708,
0.023978155,
0.0051611513,
0.009759401,
-0.033393968,
0.029782623,
-0.006751166,
0.038482014,
0.025206303,
0.024226708,
-0.013063708,
0.036785997,
-0.004762734
] | Let's transform the image into a beautiful winter landscape:
py
image = agent.run("Transform the image: 'A frozen lake and snowy forest'", image=image)
``text
==Explanation from the agent==
I will use the following tool:image_transformer` to transform the image.
==Code generated by the agent==
image = image_transformer(image, prompt="A frozen lake and snowy forest") |
[
0.016622927,
0.0028161234,
-0.022196252,
0.013247045,
-0.039262827,
-0.038597357,
-0.031304896,
0.01732999,
0.032053553,
0.07519829,
0.029142112,
-0.017829094,
0.0041176057,
-0.003569978,
0.0021749139,
0.015527671,
0.005597587,
0.001904566,
-0.031693086,
0.002065735,
-0.027339794,
0.0067067062,
-0.06371891,
-0.06255434,
-0.035990924,
-0.0077984957,
0.0017347321,
-0.0029824914,
0.07553103,
0.042728826,
-0.028670736,
0.022057611,
-0.028448913,
-0.023222188,
-0.020296885,
-0.02319446,
0.028379593,
0.009060119,
-0.031110799,
-0.05007674,
0.009954346,
-0.042507,
0.03343995,
-0.10309265,
-0.072092764,
0.021308957,
-0.013898653,
-0.021891244,
-0.021447597,
-0.031388078,
0.027825033,
-0.013378752,
0.0043013035,
-0.014418553,
-0.019991877,
0.014279912,
-0.025232466,
-0.028310273,
-0.021170316,
0.03524227,
-0.026410906,
0.024553131,
-0.012442933,
-0.05711965,
0.02496905,
0.04669393,
-0.03843099,
0.00361157,
0.013517393,
-0.028587552,
-0.04211881,
0.029973952,
-0.027963674,
-0.039456923,
0.020296885,
0.0027364055,
0.033800412,
0.0022355688,
-0.026618866,
0.034327246,
0.014335368,
0.06887632,
0.0015952257,
-0.02889256,
-0.014210592,
0.018466838,
0.033911325,
-0.012304293,
0.053625923,
-0.014487872,
-0.017718183,
0.016096095,
0.028171632,
-0.0006659049,
-0.008027252,
0.08030024,
0.033550862,
0.020380069,
-0.0083114635,
-0.016761567,
0.050575845,
0.07004089,
-0.028171632,
-0.019312542,
-0.017690454,
-0.008630335,
0.029530304,
-0.0012538248,
0.0050707553,
-0.039429195,
0.01906299,
0.0016359511,
-0.012248837,
-0.002027609,
-0.015694039,
0.0485517,
0.0125538455,
-0.008498628,
-0.04954991,
-0.04419841,
0.03302403,
-0.0020206769,
-0.05656509,
-0.029253025,
0.026313858,
-0.0002759801,
-0.0064675524,
0.0297244,
0.012650893,
-0.044891607,
-0.016512016,
-0.03152672,
0.042756554,
0.07769381,
0.021586236,
0.051241316,
-0.0050672893,
0.017537951,
-0.0034659982,
-0.020962358,
-0.015194936,
-0.014876064,
0.0029703605,
0.06615897,
0.0017685256,
-0.003530119,
0.025274059,
-0.007507352,
-0.072869144,
0.016317919,
0.01069607,
0.010876303,
-0.0023118209,
-0.0024088686,
0.013371821,
-0.043422025,
-0.038625084,
-0.02430358,
0.048801254,
0.009434447,
-0.010640615,
0.032303102,
-0.029419392,
0.06260979,
-0.01719135,
0.08251848,
-0.013309433,
-0.02916984,
0.005133143,
-0.0049841055,
0.05451322,
-0.0024573926,
-0.03452134,
-0.003771006,
0.08523583,
0.051407684,
0.015472216,
0.032247648,
0.0046375054,
0.012858853,
-0.02069894,
0.026064306,
0.007978728,
-0.00060611643,
0.026507953,
-0.011659618,
0.003677424,
0.017468631,
0.028670736,
0.0005051692,
0.023166731,
0.058561504,
-0.047581222,
0.05273863,
0.014820608,
-0.0069562583,
-0.027908217,
0.04145334,
0.049744006,
-0.036905948,
0.011243698,
0.038403258,
-0.006866142,
0.01177053,
-0.001082258,
0.009510699,
-0.012997493,
0.027963674,
-0.021891244,
0.031914912,
0.04730394,
0.033245854,
-0.06782265,
-0.008484763,
0.007666788,
0.00017297496,
0.024664043,
0.023374692,
0.012955901,
-0.0029668943,
0.011659618,
0.026896145,
0.04292292,
-0.031166255,
-0.027700257,
-0.0064606206,
-0.020976221,
0.041370153,
-0.02270922,
0.024109483,
0.008990799,
0.005237123,
0.028643008,
0.054125026,
-0.012796465,
0.0064398246,
0.041370153,
0.018882757,
-0.034188606,
0.005919925,
0.037210956,
0.07830383,
-0.0046167094,
0.06161158,
-0.027617073,
-0.012338953,
0.0146958325,
0.006907734,
0.032857664,
0.012976697,
-0.05090858,
0.046998933,
-0.008838295,
0.03246947,
-0.028254816,
-0.009254215,
0.012976697,
0.005809013,
-0.043976583,
-0.037820973,
-0.0038403259,
0.055067778,
-0.03660094,
-0.036434572,
0.033689503,
0.0046479036,
0.034604527,
0.027977537,
0.003788336,
-0.047664408,
-0.0024227328,
-0.040233307,
-0.03127717,
0.0013552053,
-0.013676829,
0.0009462175,
-0.029197568,
-0.0399283,
0.011534842,
-0.036406845,
0.03163763,
0.04719303,
-0.007139956,
0.015888136,
0.01597132,
0.011936897,
-0.030888975,
0.0027086774,
-0.010917895,
0.005746625,
0.002024143,
-0.03868054,
-0.011728938,
-0.018037055,
0.028643008,
0.006315049,
0.0272982,
0.017912278,
0.0028750454,
-0.01135461,
-0.029058928,
0.008318395,
-0.0031956502,
-0.008658064,
-0.020352341,
0.015804952,
0.02058803,
-0.013004425,
0.036711853,
0.043006103,
-0.036684126,
0.042285178,
-0.02600885,
0.020809853,
-0.047830775,
0.02496905,
0.0065611345,
-0.031693086,
-0.03194264,
-0.025482018,
-0.035436366,
0.011139718,
-0.02628613,
-0.01666452,
-0.048052598,
0.04844079,
-0.023457875,
-0.075752854,
0.02222398,
-0.02538497,
0.031221712,
-0.012990561,
-0.021891244,
0.008768976,
0.013974904,
0.008491696,
-0.018744119,
-0.026937738,
-0.057729665,
0.012990561,
-0.005188599,
-0.03454907,
0.046888024,
-0.019381862,
0.010820846,
-0.02010279,
0.009385923,
-0.06510531,
0.00948297,
-0.011749733,
0.037072316,
0.015846543,
-0.01770432,
0.027367521,
0.051823605,
0.054790497,
-0.04361612,
0.00020221932,
0.020366205,
0.0010224695,
0.015929727,
0.06205523,
0.0052197934,
-0.039983753,
-0.051463142,
-0.00413147,
-0.009053187,
0.058561504,
0.04691575,
-0.017829094,
0.020047333,
-0.020324614,
-0.033689503,
0.0148622,
-0.029363936,
0.0016914071,
0.021100996,
0.015915863,
0.0050049014,
-0.04539071,
-0.044115223,
0.015694039,
-0.014973112,
0.0064051645,
-0.01823115,
0.016304055,
0.008006455,
0.01500084,
0.022348756,
0.0013032153,
0.020823717,
-0.025135418,
0.026549546,
-0.045473896,
-0.04428159,
-0.017759774,
0.023707427,
0.03851417,
-0.0073271203,
0.01721908,
0.01947891,
0.018605478,
0.0034798621,
0.012006218,
-0.009413651,
0.020518709,
-0.04278428,
0.010689138,
0.0073271203,
0.0120894015,
-0.030639423,
-0.033634044,
-0.021683285,
0.017981598,
-0.02635545,
-0.016581334,
-0.036406845,
0.008318395,
-0.015153344,
0.005805547,
-0.020227564,
-0.026050443,
-0.08224121,
0.016262462,
0.027589345,
-0.01774591,
-0.026923874,
-0.057064194,
0.010183102,
0.042091083,
0.0038021998,
-0.034465887,
0.005365365,
-0.027769577,
-0.068155386,
0.02069894,
0.056703728,
-0.035990924,
0.00976025,
-0.0297244,
-0.045751177,
-0.005250987,
-0.03632366,
0.020005742,
0.0022788937,
0.04139788,
0.01809251,
0.014709696,
0.0030015544,
-0.030057136,
0.052516803,
-0.036379118,
-0.0003751943,
-0.024026299,
0.05135223,
-0.0077984957,
-0.005999643,
0.0047068256,
0.030251231,
0.013025221,
0.0024816548,
0.028310273,
0.035685915,
-0.026646594,
-0.023762884,
0.0032753681,
-0.010605955,
-0.024844274,
0.024525402,
-0.001921896,
-0.0061694765,
-0.006020439,
-0.008554083,
-0.01719135,
0.044253863,
-0.026452499,
0.025676114,
0.016581334,
0.004290906,
0.016248599,
-0.039651018,
0.02139214,
0.03920737,
0.030306688,
-0.023236051,
-0.04649983,
-0.009399787,
0.014162068,
-0.0034573332,
0.022182388,
-0.02111486,
-0.016290192,
0.012338953,
-0.047664408,
-0.0055178693,
-0.06205523,
0.020393932,
-0.03288539,
0.05024311,
0.037210956,
0.0146958325,
-0.013323297,
-0.018744119,
0.007957932,
-0.022113068,
-0.009496835,
0.0029149044,
0.01601291,
0.037377324,
0.033800412,
-0.06310889,
0.04982719,
0.008283735,
0.032857664,
0.025579067,
0.0012633563,
0.001804052,
-0.05296045,
-0.04419841,
0.043061562,
-0.020740533,
-0.09643793,
-0.013552053,
0.0014123942,
-0.03313494,
0.014834472,
0.03233083,
0.0015129081,
-0.05076994,
-0.052516803,
0.014487872,
-0.0061798748,
-0.023804475,
0.018563885,
-0.03540864,
-0.005805547,
0.027201153,
0.005410423,
-0.03332904,
-0.021170316,
-0.049633093,
0.034798622,
-0.027076377,
0.017246807,
-0.0026358915,
0.0033984112,
-0.00385419,
0.0015527671,
0.013170793,
-0.015056296,
-0.022043748,
-0.031554446,
0.036434572,
0.007081034,
-0.061722495,
-0.016817022,
-0.0058748666,
0.023180595,
-0.014141273,
0.018078646,
-0.008949207,
0.024289714,
-0.036268204,
0.056038257,
0.0022113067,
0.0027589346,
-0.049688548,
0.02069894,
0.019756189,
-0.02065735,
-0.004918251,
-0.03962329,
0.039872844,
0.008976935,
0.0032216453,
-0.026785234,
0.022321029,
-0.038347803,
-0.040094666,
0.021641692,
-0.051906787,
-0.002271962,
-0.036933675,
-0.018910486,
0.06260979,
-0.05465186,
-0.001798853,
0.084015794,
0.02416494,
0.057618752,
-0.03565819,
0.0024573926,
0.027949808,
-0.029003473,
-0.042507,
0.04869034,
-0.0067032403,
-0.030362144,
-0.019354133,
0.001854309,
-0.02441449,
0.01906299,
0.039845113,
-0.077471994,
0.01458492,
-0.016442696,
-0.034798622,
-0.01830047,
0.02434517,
0.022487396,
0.028102312,
0.0029582295,
0.032719024,
-0.03343995,
-0.0068938704,
-0.028587552,
0.027561618,
-0.02483041,
0.070262715,
0.022528987,
-0.03590774,
0.017246807,
0.03188718,
-0.04006694,
-0.069597244,
-0.010737662,
0.04652756,
-0.008221348,
-0.03881918,
-0.03540864,
-0.023319235,
-0.008082707,
-0.0014097948,
0.04211881,
-0.019076854,
-0.00032342094,
0.027492298,
-0.0020709338,
0.0064155627,
0.025398834,
0.05284954,
-0.0048038736,
-0.0028369194,
-0.0659926,
-0.027173426,
-0.0061244187,
-0.009115575,
0.038181435,
-0.023305371,
0.003705152,
0.005975381,
-0.008879887,
0.051241316,
-0.020310748,
0.04649983,
0.04472524,
-0.08068844,
-0.07619651,
-0.012248837,
-0.021683285,
-0.014078884,
-0.009885027,
0.0013777342,
0.016609063,
0.02014438,
0.03429952,
-0.013600577,
-0.06543805,
-0.012463729,
-0.012311226,
0.02889256,
0.027492298,
-0.0021766468,
-0.008644199,
-0.0086234035,
0.019284813,
-0.019326406,
-0.008616472,
0.055677794,
0.0029339674,
-0.030861247,
-0.008533288,
0.055650067,
-0.05215634,
-0.016082231,
-0.0022736948,
0.013212385,
-0.005275249,
-0.036767308,
-0.009961278,
-0.009926619,
-0.021378277,
0.036711853,
-0.021239636,
0.009621611,
-0.026799098,
-0.017565679,
0.02531565,
0.01131995,
-0.0554837,
0.028143905,
0.044503417,
-0.019090718,
0.046083912,
-0.03194264,
-0.039401468,
-0.0008773308,
0.013524325,
0.024289714,
-0.0195205,
0.007729176,
0.011396202,
0.01954823,
-0.060835198,
-0.02409562,
0.024955187,
0.04125924,
0.026341585,
0.0030379475,
-0.023582652,
0.034576796,
-0.0072092763,
0.03327358,
0.04403204,
0.020615757,
0.02489973,
-0.018591614,
0.0024764556,
-0.010536634,
0.0050118333,
-0.020795988,
0.0028629145,
0.0013465403,
-0.020269157,
0.038874634,
-0.012997493,
-0.0025752366,
-0.051989973,
-0.008789771,
-0.030667152,
0.034271788,
0.025759298,
0.031748544,
0.008755111,
-0.026050443,
0.012491457,
0.037238684,
-0.097547054,
-0.050936308,
0.0047830776,
-0.035741374,
-0.001672344,
-0.011486318,
-0.022764675,
-0.036573213,
0.019978013,
-0.01656747,
-0.010800051,
0.0009904089,
0.015874272,
0.032386288,
-0.016096095,
-0.017787503,
0.04996583,
0.03443816,
-0.0065230085,
-0.057563297,
-0.019562094,
0.00819362,
0.016678384,
0.0048385332,
0.015264256,
0.03385587,
-0.027353657,
0.042007897,
-0.00680722,
0.02354106,
-0.043727033,
0.008872955,
-0.010883234,
0.012013149,
-0.021308957,
0.0046929615,
0.047387127,
-0.0032684363,
-0.017829094,
0.0045404574,
-0.0015770291,
-0.021724876,
0.036905948,
0.0229865,
0.04278428,
-0.0032978973,
0.00409681,
0.010169239,
-0.027478432,
0.03771006,
0.025814755,
0.02489973,
-0.009566155,
0.052239522,
-0.007791564,
-0.047775317,
-0.00043844877,
0.018050918,
-0.043837946,
0.015541536,
0.024927458,
-0.005344569,
0.0029374333,
-0.017524086,
0.023444012,
-0.015846543,
0.023111276,
-0.029419392,
-0.05437458,
0.008872955,
0.024996778,
-0.02014438,
0.022750812,
-0.054735042,
0.042007897,
0.014557192,
0.0132955685,
-0.025537474,
0.037820973,
0.03621275,
-0.0025336447,
-0.00010912478,
-0.008034184,
0.043200202,
0.0064363587,
0.0051262113,
0.0010709934,
0.00037844368,
0.00038754192,
-0.036240477,
0.0038888499,
0.028837105,
0.0038299279,
0.0026306927,
-0.014321504,
-0.018841166,
0.0044607394,
-0.05162951,
0.019742325,
-0.058395136,
0.0028837104,
0.029142112,
-0.006062031,
-0.048634887,
0.00402749,
0.02524633,
0.014175932,
0.012526117,
0.03291312,
0.013240113,
0.03729414,
0.010654478,
0.007424168,
-0.0024313978,
0.013330229,
-0.023735154,
-0.019076854,
0.027658666,
0.0008201418,
0.0060273707,
-0.0029564963,
-0.043699306,
0.021378277,
0.014765152,
-0.02201602,
-0.048634887,
0.016068367,
0.060336094,
-0.047109846,
0.002271962,
0.036961403,
0.015375168,
0.021516917,
-0.00036934542,
0.009926619,
-0.0789693,
0.016609063,
-0.07164911,
0.0014132607,
0.0011377139,
-0.06399619,
0.005944187,
-0.02958576,
-0.011340746,
-0.019049127,
0.013461937,
-0.006273457,
0.012900445,
0.012567709,
0.04114833,
0.027769577,
-0.0065715327,
-0.0061105546,
0.01007219,
0.037599146,
-0.0005415622,
0.054180484,
0.035075903,
-0.002122924,
-0.003826462,
0.007992592,
0.0050430275,
-0.02944712,
0.007417236,
0.017399311,
0.014460145,
-0.03618502,
-0.017024983,
-0.015486079,
0.06626988,
-0.031221712,
-0.01961755,
-0.020934628,
-0.07298005,
-0.049854916,
-0.0031107333,
-0.047387127,
0.016304055,
-0.029114384,
-0.020421661,
0.01333716,
-0.046305735,
0.22437486,
0.0107653905,
-0.00666858,
0.0068176184,
0.060336094,
0.08961685,
0.03177627,
0.0003899248,
0.03274675,
-0.08251848,
0.023388555,
-0.03629593,
-0.013364889,
0.023319235,
-0.0045612534,
0.0037814039,
-0.04649983,
-0.01242907,
0.005961517,
-0.00046660998,
-0.0329963,
0.027977537,
-0.005580257,
0.09416424,
0.019742325,
0.01670611,
0.041481066,
-0.034798622,
0.01830047,
-0.056232356,
0.009995938,
-0.0041591977,
0.0016636791,
-0.020088926,
-0.038486443,
0.023333099,
-0.022307163,
-0.030473055,
0.01100801,
0.01513948,
0.03510363,
0.0026705517,
-0.029530304,
0.009226487,
-0.011749733,
0.028753921,
0.003433071,
0.005209395,
0.049633093,
-0.079024754,
0.033495408,
-0.030084863,
0.051102675,
0.00066547166,
-0.01823115,
-0.025163146,
0.01961755,
-0.038569625,
-0.003951238,
-0.026854554,
0.04580663,
-0.00037931016,
-0.03881918,
0.026868418,
-0.033523135,
-0.044531144,
-0.001908032,
0.0070325104,
-0.007063704,
-0.033883598,
0.055650067,
0.008422376,
-0.0069493265,
-0.019783918,
0.033828143,
0.01423832,
0.028032992,
0.03962329,
0.021724876,
-0.042728826,
-0.032414015,
-0.030334415,
-0.03632366,
-0.046610743,
-0.0004982372,
-0.0005580257,
-0.047276214,
-0.00364623,
0.003677424,
0.025135418,
0.001954823,
0.060391553,
-0.020934628,
0.023457875,
0.0050049014
] | Overwriting existing tools can be beneficial if we want to use a custom tool exactly for the same task as an existing tool
because the agent is well-versed in using the specific task. Beware that the custom tool should follow the exact same API
as the overwritten tool in this case, or you should adapt the prompt template to make sure all examples using that
tool are updated. |
[
0.073275104,
-0.048288677,
0.0052699265,
0.018346384,
0.005825564,
-0.038791075,
-0.016041007,
0.0040102517,
-0.022625826,
0.05505296,
0.01293496,
-0.01931271,
0.011002309,
0.025759483,
0.011340523,
-0.016883092,
0.018194534,
-0.0501385,
0.009283629,
0.020334255,
-0.026422108,
-0.010222346,
-0.08034308,
-0.026794832,
-0.03752105,
-0.0053596566,
0.0013071281,
0.0026660238,
0.043954015,
0.00011485903,
-0.072778136,
0.006678001,
-0.021038292,
-0.02809247,
0.002338163,
-0.026532544,
0.026919074,
0.0023485166,
-0.048399117,
-0.04177288,
0.04660451,
-0.015185119,
0.015019463,
-0.028409977,
-0.074986875,
0.022791483,
-0.033710964,
0.007371685,
0.00072948966,
-0.012472505,
0.0007872966,
0.03031502,
-0.005508057,
-0.015806329,
-0.0358921,
0.008821174,
-0.018015074,
-0.009387164,
-0.00081404316,
0.017076356,
-0.017352449,
0.03901195,
0.030232191,
-0.025317734,
-0.0023726749,
0.05624016,
-0.06659365,
-0.05891826,
-0.0018446469,
-0.011002309,
0.009421676,
0.032772247,
-0.020803614,
0.021217752,
-0.011678737,
0.027719744,
0.018553454,
-0.027636915,
-0.048730426,
0.051795058,
0.019105641,
0.05698561,
-0.0005634024,
-0.031253736,
0.024020096,
-0.043788362,
0.020831222,
0.017932246,
0.008469155,
0.004313954,
-0.0080412105,
0.031971578,
-0.019022813,
0.0072060293,
0.014840002,
0.028548023,
0.005728931,
0.020513715,
0.023771614,
0.0022622375,
0.019078031,
0.06366706,
-0.003906717,
0.016869286,
-0.053230744,
0.0075373407,
0.054417945,
-0.00622935,
-0.027208973,
-0.0033441773,
0.04740518,
-0.0069782524,
0.032137234,
-0.015847743,
-0.027926814,
0.061679192,
0.025731875,
-0.03150222,
-0.027153753,
-0.039149996,
0.027153753,
-0.009000634,
-0.03340726,
-0.025773289,
-0.02150765,
-0.03219245,
0.006163778,
0.032054406,
-0.02770594,
-0.0023450656,
0.010374197,
-0.040033493,
-0.025676655,
0.034787726,
0.009124876,
-0.0029179587,
-0.014135965,
-0.0175043,
0.04011632,
-0.032578982,
0.02411673,
-0.04453381,
-0.030535894,
0.068305425,
0.014108356,
-0.009835816,
0.0021794096,
0.01871911,
-0.018732915,
0.008027406,
-0.045500137,
0.022087445,
-0.013894384,
0.016054813,
-0.00028666225,
-0.014881416,
-0.047874536,
0.02984566,
-0.024599893,
0.005107722,
0.022391148,
0.027485065,
-0.03741061,
0.049199786,
-0.0054183267,
0.03895673,
-0.055522315,
-0.02865846,
0.00009280394,
0.008303499,
0.02388205,
-0.0023312608,
-0.0072129313,
0.009000634,
0.023771614,
0.026822442,
0.03854259,
0.03779714,
-0.0043070517,
0.03981262,
-0.020210013,
-0.011375034,
-0.014674347,
-0.013093714,
-0.00079549314,
-0.008386327,
0.035422742,
-0.022529194,
-0.0023623214,
-0.046356026,
0.050801124,
0.03594732,
-0.057924327,
0.021604283,
0.013590681,
-0.0042380285,
-0.0072336383,
0.0016522445,
0.023785418,
-0.081778765,
-0.0397574,
0.021549065,
0.006519248,
0.03152983,
-0.017103966,
0.009697769,
0.026946684,
0.05969132,
-0.026422108,
0.023785418,
0.03859781,
0.004376075,
-0.030011317,
0.021521455,
0.06593102,
0.011437155,
-0.005173294,
0.008510569,
-0.0038135354,
0.034428805,
0.07040373,
0.027595501,
0.03343487,
0.0025728422,
0.0043036006,
-0.011768467,
0.01833258,
0.03909478,
0.015833937,
0.028465195,
-0.039343264,
0.034456413,
0.0074752197,
0.030121753,
0.0198787,
0.043263786,
0.011105844,
0.04897891,
-0.04704626,
0.0036444284,
-0.025414366,
0.07283335,
0.026063185,
0.010967798,
0.04619037,
0.013521658,
0.008393229,
-0.017642347,
-0.028548023,
0.022915725,
-0.031778313,
0.033710964,
0.0045969496,
-0.0070024105,
-0.05416946,
-0.011644226,
-0.014660542,
0.039177608,
-0.042352676,
-0.043622706,
-0.008172355,
-0.0069817035,
0.0019930468,
0.0014339584,
0.05775867,
0.016634608,
0.010940188,
-0.007420001,
-0.0049282615,
-0.05212637,
-0.03431837,
-0.01670363,
-0.04456142,
-0.040420026,
0.0029231354,
0.006715964,
0.010546755,
-0.018953789,
0.022653436,
-0.033213995,
-0.027374627,
-0.018373994,
-0.01145096,
0.022639632,
0.0077651176,
-0.0061327172,
-0.017600933,
-0.017393863,
-0.00072258734,
0.05347923,
-0.039978277,
-0.009739183,
-0.034097493,
-0.039370872,
0.006740122,
-0.00014246834,
0.017311035,
-0.0057945033,
-0.001167356,
-0.030591112,
-0.030149363,
-0.01056056,
-0.05770345,
-0.0014512142,
-0.011078235,
-0.0064398707,
0.012852132,
-0.011782272,
0.03859781,
0.02509686,
-0.03139178,
0.020348059,
-0.03716213,
0.06742193,
-0.03266181,
0.040834166,
-0.0080964295,
-0.009739183,
-0.024461847,
-0.012051462,
0.021700915,
0.009683965,
-0.011761565,
-0.050525032,
-0.03909478,
0.0031198517,
0.0011069607,
-0.05947045,
0.036941253,
-0.048923694,
0.0034252796,
-0.023108989,
-0.0290726,
0.04105504,
0.028354758,
0.024668915,
-0.031557437,
0.029210648,
-0.0064847358,
0.040999822,
0.03429076,
-0.046300806,
0.02868607,
0.037907578,
-0.006446773,
0.033490088,
0.02827193,
-0.035146646,
0.0477641,
-0.023605958,
0.03194397,
0.03186114,
0.03459446,
0.009145583,
0.02308138,
0.012493212,
-0.05066308,
-0.0023778516,
-0.00854508,
-0.027968228,
0.053147916,
0.019920114,
0.002082777,
-0.03545035,
0.014964244,
0.011872002,
0.038045626,
-0.009656355,
0.05069069,
-0.022943335,
-0.01554404,
0.03611297,
-0.045168824,
-0.007558048,
0.016413733,
0.0034080239,
0.04867521,
-0.02563524,
0.07912827,
-0.065765366,
-0.005936001,
-0.03315878,
-0.02148004,
0.032164842,
0.02145243,
0.030121753,
0.00008444565,
0.035726443,
0.00863481,
-0.015295556,
0.012941862,
0.0043070517,
-0.012672672,
0.017821807,
-0.033352043,
-0.029790442,
0.0031854238,
0.05704083,
0.0335177,
-0.02008577,
-0.003906717,
-0.018995203,
0.00409308,
0.03158505,
-0.023688786,
0.028741289,
-0.030922424,
0.05347923,
-0.03859781,
-0.017780393,
-0.041607227,
-0.003699647,
0.027429847,
0.0019050422,
-0.032578982,
0.026090795,
-0.024751743,
-0.028382368,
-0.015019463,
-0.023205623,
-0.030094145,
-0.0064157126,
-0.017421473,
0.003452889,
0.04262877,
-0.036803205,
0.05389337,
-0.03710691,
0.023136599,
0.02266724,
-0.050801124,
-0.02615982,
-0.026408302,
-0.007972187,
-0.017642347,
0.011830588,
0.036830816,
-0.031999186,
-0.008317304,
-0.0063673966,
-0.030094145,
-0.0041448474,
-0.017614737,
0.0019499073,
-0.027429847,
0.0065123453,
0.051436137,
0.0017307585,
-0.012631258,
-0.007599462,
0.054832082,
-0.03787997,
-0.009028243,
-0.03315878,
0.0442025,
0.055605143,
-0.046052326,
-0.040751338,
0.049144566,
0.04654929,
-0.028989771,
0.005414875,
-0.009932448,
-0.017697565,
-0.02651874,
0.0064812847,
0.029017381,
0.03219245,
0.014770979,
-0.0054735453,
0.012451798,
0.07272291,
0.033987056,
-0.03611297,
0.0045727915,
-0.028713679,
0.026684396,
0.00091800943,
0.018470626,
0.007420001,
-0.01414977,
-0.003906717,
0.012941862,
0.028520415,
-0.0046418146,
-0.060353946,
0.009884132,
0.053920977,
-0.014315425,
0.019630218,
-0.011354327,
-0.009704672,
0.037935186,
-0.059525665,
-0.010484634,
-0.015778719,
0.0009551095,
0.021162534,
0.05974654,
-0.008496764,
-0.00967016,
-0.033545308,
-0.03953653,
0.006105108,
-0.058586948,
-0.014853807,
-0.049172174,
0.017932246,
-0.0018066841,
0.031557437,
-0.03028741,
-0.005307889,
-0.019188467,
-0.010360393,
0.0063950056,
-0.008703834,
0.004251833,
-0.039232824,
0.012928058,
0.08917806,
-0.025731875,
-0.089509375,
-0.0066400385,
0.04337422,
0.004393331,
0.0019913213,
0.007896262,
-0.047598444,
-0.013507853,
-0.05452838,
-0.005366559,
-0.027512675,
-0.05176745,
0.0028023447,
-0.054749254,
-0.023633568,
0.025787093,
0.018249752,
-0.026435912,
0.013839165,
-0.048840865,
0.0047453498,
-0.0474604,
-0.006608978,
-0.02290192,
-0.023481715,
-0.05502535,
0.016979724,
-0.0074269036,
-0.011464764,
-0.019478366,
0.008027406,
0.017890831,
0.018884767,
-0.021728525,
-0.04732235,
0.00658482,
-0.01657939,
-0.013204151,
0.019271296,
-0.011816784,
0.011236988,
-0.011181769,
0.055549927,
0.022612022,
0.010429416,
-0.02586992,
-0.028133884,
0.052153982,
-0.0501385,
0.020776004,
-0.018732915,
0.038487375,
0.042131804,
0.017587129,
0.007350978,
-0.018360188,
-0.055936456,
-0.064440124,
0.029735224,
-0.016358515,
-0.026201231,
-0.02749887,
-0.0028920749,
0.039508916,
-0.056516252,
0.025538608,
0.0670354,
-0.009221508,
0.018594868,
-0.018456822,
-0.0027195166,
0.040475246,
-0.02127297,
-0.028327148,
-0.011236988,
-0.02228071,
-0.029652396,
-0.05731692,
-0.034345977,
-0.024254777,
0.021203948,
0.044450983,
-0.05532905,
0.050939173,
-0.00012467327,
-0.04296008,
-0.034925774,
0.020679371,
0.03909478,
0.018622477,
-0.004766057,
-0.008690029,
0.052512903,
0.016441341,
-0.008206867,
-0.030425455,
-0.010802141,
0.033710964,
-0.049144566,
-0.03868064,
0.02530393,
0.05256812,
-0.042711597,
-0.055163395,
-0.004251833,
-0.0039653867,
-0.030535894,
-0.040834166,
0.062231377,
-0.015281752,
-0.016041007,
0.013031593,
0.051795058,
-0.0011604537,
0.019436952,
-0.0007087827,
-0.004317405,
-0.011057528,
-0.023164209,
0.01675885,
-0.050883953,
-0.02073459,
-0.060519602,
-0.035174258,
-0.008124039,
0.004162103,
0.04583145,
0.0038549495,
-0.008503666,
0.0060774987,
0.01776659,
0.064550556,
-0.026974292,
0.052788995,
0.0016324003,
-0.044092063,
-0.033931836,
-0.04030959,
0.026919074,
0.019782068,
0.0077237035,
-0.03669277,
-0.02088644,
-0.022653436,
0.007482122,
-0.026477326,
-0.048868474,
0.0002262669,
-0.050055675,
0.004452001,
-0.014812393,
0.007095592,
-0.013293881,
0.015267947,
-0.03307595,
-0.032026798,
-0.011872002,
0.006270764,
0.006550308,
-0.03553318,
-0.05259573,
-0.02091405,
-0.031143298,
-0.040502854,
0.030563504,
-0.050525032,
0.0007260385,
0.016979724,
0.0068402058,
-0.026242645,
-0.033793792,
0.031447,
-0.041662443,
0.008469155,
-0.013735631,
-0.04025437,
0.0034045726,
-0.00062854314,
-0.034704898,
0.044340547,
0.059194352,
-0.038073234,
0.0017618189,
-0.004376075,
-0.029707614,
0.006105108,
0.004676326,
0.047957364,
-0.0020137539,
0.013404318,
0.052402463,
-0.007095592,
-0.04066851,
-0.026822442,
0.0011104118,
0.019505976,
0.03547796,
0.011630421,
-0.0034718704,
0.05731692,
-0.022004617,
0.0103811,
0.021314384,
-0.025649047,
0.009628746,
0.0073233685,
0.03594732,
-0.040033493,
0.0057392847,
-0.015971985,
0.018594868,
0.05289943,
-0.021190142,
0.015461212,
0.00031578145,
-0.024365213,
-0.030756768,
-0.004310503,
-0.038929123,
0.01833258,
-0.013369807,
0.038570203,
-0.0108918715,
0.03268942,
-0.044699468,
0.026297865,
-0.027001902,
-0.025952749,
0.010615778,
-0.0030422006,
-0.007813434,
-0.038349327,
0.019009007,
0.0010922932,
0.01002908,
-0.034152713,
0.034207933,
0.011664933,
-0.015212728,
0.049365442,
-0.06802933,
-0.030756768,
-0.0042414796,
0.025883725,
0.0015193747,
-0.03070155,
-0.0010551933,
0.019961528,
0.009352652,
-0.036830816,
-0.054638818,
0.012203313,
0.045914277,
0.019947724,
-0.020858832,
0.036913645,
-0.017062552,
0.02863085,
-0.06057482,
0.0067297686,
0.014729565,
0.03865303,
0.016137639,
-0.015350775,
0.029321084,
0.01657939,
0.02088644,
-0.0040827263,
0.00034619484,
0.0101947365,
0.036858425,
0.01115416,
-0.007910066,
-0.027167559,
0.008324206,
0.035588395,
0.040281978,
0.022653436,
0.03219245,
0.044092063,
-0.017725175,
0.008593397,
-0.008441546,
0.010815946,
0.018015074,
0.01866389,
-0.014218793,
0.024875985,
-0.018774329,
-0.004655619,
-0.0074061966,
-0.0028592888,
-0.0041690054,
-0.012796914,
-0.033987056,
0.033352043,
-0.02584231,
-0.020776004,
0.02951435,
-0.020279037,
0.02824432,
-0.0008675362,
0.02584231,
-0.023178013,
-0.0017721724,
0.051712234,
0.029680004,
0.07625691,
0.022653436,
-0.005936001,
-0.0012381049,
0.033600528,
-0.024586087,
-0.019685436,
0.04226985,
-0.029597176,
-0.007123201,
0.025773289,
0.025014032,
0.023136599,
0.020196209,
-0.012507016,
-0.022239298,
-0.034898166,
0.0338214,
-0.060077854,
0.038376935,
-0.0011000583,
-0.033931836,
-0.039232824,
0.015530235,
-0.039591745,
0.02690527,
0.06355663,
0.056461032,
0.029155428,
0.10237531,
0.023191817,
-0.025138274,
0.010822848,
0.036278628,
-0.014494886,
-0.03106047,
-0.009780597,
-0.014646737,
0.04456142,
-0.026684396,
-0.034511633,
0.027926814,
0.046521682,
0.009518309,
-0.009987667,
0.004817824,
0.022888115,
-0.0335177,
-0.018581064,
0.05414185,
0.006360494,
-0.040033493,
-0.019713046,
-0.010201639,
-0.029983707,
-0.023964878,
-0.027139949,
0.019478366,
-0.017642347,
0.00866242,
-0.00907656,
-0.026504934,
-0.006205192,
-0.024903595,
-0.020430887,
-0.007350978,
0.030646332,
0.051795058,
0.016979724,
0.018360188,
0.0006777222,
0.034484025,
0.023937268,
0.0537001,
0.018622477,
0.07211551,
0.10640627,
0.0016608724,
-0.030121753,
0.015475016,
0.00996696,
-0.0266982,
0.0064191637,
-0.0065986244,
0.020665566,
-0.037272565,
-0.041220695,
-0.017200598,
0.072778136,
-0.013362905,
-0.044754688,
-0.06482665,
0.000106123276,
-0.058586948,
-0.020030553,
-0.011140355,
0.046466462,
-0.026781028,
0.0046004006,
-0.013176542,
-0.074379474,
0.22341451,
0.046825383,
-0.0021293678,
0.061127007,
0.025966553,
0.055964064,
0.021065902,
-0.03611297,
-0.032551374,
-0.0715081,
0.02987327,
-0.0011544141,
0.011796077,
0.025580022,
-0.0136597045,
0.011616616,
-0.015433603,
0.0052699265,
-0.007309564,
0.0011328444,
0.0036133681,
0.005552922,
-0.013597583,
0.07575994,
0.0068436568,
0.017890831,
0.013494049,
-0.06134788,
-0.026408302,
-0.034401197,
0.02912782,
-0.00622935,
0.020320449,
-0.018567258,
-0.013155835,
0.036333848,
0.0055667264,
-0.05099439,
-0.009904839,
0.0028437586,
-0.0145363,
0.0027505772,
-0.006695257,
-0.04975197,
-0.00519055,
0.027540283,
-0.0006199152,
-0.0101671275,
0.0038376937,
-0.034815338,
0.032109626,
-0.055936456,
0.009290532,
-0.012348263,
-0.0073854895,
-0.0005590885,
-0.02471033,
0.010422514,
0.043125737,
0.040944602,
0.022598218,
0.0038929123,
-0.030094145,
0.0018170375,
-0.040778946,
0.049310222,
-0.008496764,
0.017393863,
-0.023260841,
-0.009732281,
0.044947952,
-0.001910219,
-0.010657192,
0.006381201,
-0.013507853,
0.045665793,
0.036002535,
0.042021364,
0.034456413,
-0.04947588,
0.010795239,
0.0017980561,
-0.037990406,
-0.016082421,
0.013383611,
0.0129970815,
-0.058642168,
-0.0009525211,
-0.03550557,
0.0136942165,
0.026712004,
0.04144157,
-0.025207298,
0.0070024105,
-0.0074269036
] | The new image processing tool is based on ControlNet which can make very strong modifications to the image.
By default the image processing tool returns an image of size 512x512 pixels. Let's see if we can upscale it.
py
image = agent.run("Upscale the image", image)
``text
==Explanation from the agent==
I will use the following tool:image_upscaler` to upscale the image.
==Code generated by the agent==
upscaled_image = image_upscaler(image) |
[
0.022819497,
-0.023746097,
-0.031818513,
0.0057127266,
-0.026667245,
-0.0026718285,
0.012611188,
0.006611843,
0.021908602,
0.025316607,
-0.010467443,
-0.011574652,
0.020416617,
-0.021720141,
0.016647397,
0.017322715,
0.003252917,
-0.051135775,
-0.053146027,
-0.016396115,
0.02918006,
0.0031999124,
-0.030467877,
-0.047555014,
-0.049847957,
0.0057833996,
0.017149959,
-0.016191948,
0.062757544,
0.026196092,
-0.04849732,
-0.016882973,
-0.0018669426,
-0.039419778,
0.016458936,
-0.03646722,
0.0076248217,
-0.03141018,
-0.039859522,
-0.06285177,
0.010247571,
0.008881229,
0.037001193,
-0.06891394,
-0.04896847,
0.027295448,
-0.0017197074,
-0.009642926,
0.031582937,
-0.051763978,
-0.005975787,
0.041964002,
-0.0111349095,
0.0066864425,
-0.04485374,
-0.02517526,
-0.0081744995,
0.02140604,
-0.02063649,
0.009745009,
0.03304351,
0.04651848,
-0.007459918,
-0.063354336,
-0.02399738,
0.019976875,
-0.030687748,
-0.013412148,
-0.046424247,
-0.020997707,
-0.03989093,
0.043063357,
-0.0028269163,
-0.059867807,
-0.033954408,
0.020165337,
0.010962154,
-0.0044288356,
0.024075905,
0.04865437,
0.040581957,
0.06282036,
0.01597993,
0.0020946665,
0.0125483675,
-0.016741626,
0.03803773,
-0.009776419,
-0.054182563,
-0.04827745,
0.015532335,
0.030153774,
-0.019175915,
0.04334605,
0.060998574,
0.0051002284,
-0.003816337,
0.045419123,
-0.029996723,
0.0144722415,
0.06728061,
0.099004894,
-0.018657647,
-0.001202421,
-0.03992234,
0.0031999124,
0.041838363,
-0.014158139,
-0.009116805,
-0.035587735,
0.015995635,
0.005681317,
0.014582177,
-0.035776198,
-0.010695167,
0.03844606,
-0.011810228,
0.02520667,
-0.03970247,
-0.013467115,
-0.021955717,
-0.0030408981,
0.0056773904,
-0.071552396,
-0.015461662,
0.003311811,
0.041775543,
0.0030212668,
0.013828333,
-0.017888099,
-0.016521756,
0.0058540725,
0.008370813,
0.05509346,
0.003900752,
-0.0049942187,
0.007813282,
-0.0018561454,
0.05722935,
-0.02767237,
-0.015390989,
-0.013145161,
-0.0026463077,
0.09134081,
0.012328496,
-0.019678479,
0.0031783178,
-0.0061956584,
-0.011119205,
0.015218233,
-0.012838912,
0.042717848,
0.0072793094,
0.004907841,
0.012509105,
-0.038760163,
-0.036655683,
0.025253786,
-0.016050603,
0.008001744,
0.0030389351,
-0.009203183,
-0.038697343,
0.049847957,
-0.03285505,
0.009627221,
-0.006148543,
-0.008771293,
0.03257236,
-0.015987782,
-0.008370813,
0.0051473435,
0.008213762,
-0.010420328,
0.03778645,
-0.0062741837,
0.033734534,
-0.0028838473,
-0.0021398186,
0.0041382913,
-0.0021947864,
-0.0015744354,
0.027829422,
0.011535389,
-0.006592212,
-0.010624494,
0.014754933,
-0.004507361,
-0.006937724,
-0.021924308,
0.024044493,
0.05025629,
-0.045953095,
0.013443558,
-0.024280071,
-0.0046565593,
-0.04146144,
0.0166631,
0.005964008,
-0.047523607,
-0.008527865,
0.06052742,
-0.02517526,
0.011920164,
-0.004707601,
-0.012202855,
0.032697998,
0.0124148745,
-0.036655683,
0.026086155,
0.056412686,
0.00038502013,
-0.035681967,
-0.008739883,
0.01804515,
-0.027248332,
-0.0011582505,
0.02674577,
-0.013145161,
0.0027955063,
0.0011827897,
0.0059836395,
0.022379754,
0.037378117,
-0.0042639324,
-0.033546075,
-0.03112749,
0.034048636,
-0.013985383,
0.008457191,
0.024782633,
0.04180695,
0.022945138,
0.04485374,
0.02440571,
0.0022144178,
0.019175915,
0.021767257,
0.0044131307,
-0.030656338,
-0.017416947,
-0.030844798,
0.014535062,
0.01650605,
0.0001604864,
-0.028017882,
0.025379427,
-0.01345141,
-0.02585058,
0.025442246,
-0.08449339,
0.08166647,
-0.0029564833,
0.009336676,
-0.064830616,
-0.017165665,
0.0468954,
0.034519788,
-0.04340887,
-0.01650605,
-0.005210164,
0.017825278,
0.002218344,
0.0035630926,
0.007656232,
0.03753517,
0.013467115,
-0.012666156,
-0.023180714,
-0.092408754,
-0.026321732,
-0.033357613,
-0.072243415,
0.012312791,
0.0021731919,
-0.014974804,
-0.03998516,
-0.029462751,
0.0005442796,
-0.030640632,
0.013529936,
0.011888754,
0.0071222587,
-0.0031370919,
0.007860398,
0.024060199,
-0.047900528,
-0.018123675,
-0.03093903,
0.038320422,
0.0130587835,
-0.04447682,
-0.006073944,
-0.021688731,
0.012501252,
0.010263277,
-0.023651866,
-0.02325924,
-0.006725705,
-0.0074756234,
-0.04670694,
-0.020809246,
-0.0036376917,
0.021343218,
-0.01554804,
0.029117238,
0.009140363,
-0.035147995,
0.045544762,
0.07789725,
-0.011009268,
0.009266004,
-0.009485875,
-0.023337765,
-0.048780013,
0.056349866,
0.029698327,
-0.0018649795,
-0.042372335,
-0.022222703,
-0.038791575,
0.011480422,
-0.018343545,
-0.027358267,
-0.01255622,
0.036906965,
-0.026604423,
-0.066401124,
0.0068317144,
-0.035901837,
-0.0013741954,
-0.033451844,
-0.054465257,
0.011543241,
0.019332968,
0.022065653,
-0.032258257,
-0.008512159,
0.010710872,
0.042089645,
0.007385319,
-0.024044493,
0.03637299,
0.026211796,
-0.008834113,
0.015767911,
0.057386402,
-0.06784599,
-0.014118876,
0.028897367,
0.00754237,
-0.00544574,
0.011653177,
0.028331984,
0.03477107,
0.03156723,
-0.05722935,
-0.0034315623,
0.01996117,
0.015767911,
0.040393494,
0.011496127,
-0.0047350847,
-0.028143523,
-0.034676842,
0.00451914,
-0.028269164,
0.03192845,
0.04020503,
-0.051010136,
0.03276082,
-0.026557308,
-0.038854394,
0.028881662,
-0.027154103,
-0.06445369,
0.027342563,
0.019364377,
0.061249856,
0.019050276,
-0.007185079,
0.018390661,
0.022049947,
0.0059679346,
0.0033471475,
-0.005716653,
-0.00833155,
0.011095647,
-0.0019778598,
0.01724419,
0.025724938,
-0.004754716,
0.007024102,
-0.028677495,
-0.021154758,
-0.0033805207,
0.025677824,
0.052894745,
0.061469726,
-0.0074324342,
0.022222703,
-0.012619041,
-0.010781545,
0.012281381,
-0.002475515,
0.033389024,
-0.03634158,
0.02841051,
0.022097062,
-0.0017108733,
-0.04347169,
0.0022949064,
0.0019641179,
0.004330679,
0.026463078,
0.027248332,
-0.05361718,
0.009611515,
0.0042246697,
0.010192604,
-0.03276082,
-0.024547057,
-0.026415963,
0.030844798,
0.05346013,
0.002907405,
-0.0030448246,
-0.027122691,
-0.028253458,
0.03480248,
-0.02079354,
-0.02418584,
0.0039262725,
0.0038850468,
-0.059647936,
0.0028112112,
0.027122691,
0.005889409,
0.01338859,
-0.06658959,
0.03813196,
0.021735845,
-0.04139862,
-0.015500925,
0.026510194,
0.008253025,
0.0016657212,
0.027326858,
-0.01724419,
-0.044508226,
0.01239917,
-0.018155085,
0.005539971,
-0.027106987,
0.0013967715,
-0.00757378,
-0.008394371,
-0.0014851127,
0.039105676,
0.014079614,
-0.004271785,
0.023541931,
0.042560797,
-0.0014419237,
-0.04849732,
0.02258392,
0.040424902,
0.0047429376,
0.024751224,
0.013859742,
-0.033231974,
0.04325182,
0.009980585,
-0.029823968,
0.012218561,
-0.022913728,
0.0027542803,
0.025442246,
-0.005355436,
0.019490018,
-0.058234476,
0.055878714,
0.04334605,
-0.016537461,
-0.008268731,
-0.06260049,
-0.024656992,
-0.0065725804,
-0.012595483,
0.017762458,
0.0040872497,
-0.02690282,
0.017731048,
-0.033546075,
-0.045450535,
-0.047931936,
-0.020369504,
0.020306682,
0.056287047,
0.032540947,
0.061281264,
-0.018563418,
-0.0345512,
0.017197074,
-0.04378579,
0.004825389,
-0.0071929316,
0.0139618255,
0.016348999,
0.003353037,
-0.009619368,
0.02936852,
-0.03257236,
0.013207981,
-0.023369174,
-0.018610533,
0.009564401,
-0.009360234,
-0.0146057345,
0.06514472,
0.004307121,
-0.06194088,
0.0034099678,
0.0182022,
0.0016686659,
0.011676735,
0.027311154,
-0.017558292,
-0.01909739,
-0.03998516,
0.036969785,
-0.04105311,
0.0017059655,
-0.029227175,
-0.04654989,
0.018029444,
0.018641943,
0.00034698437,
-0.03266659,
-0.013765512,
-0.013365032,
0.016788742,
-0.03951401,
-0.020259567,
-0.0018414219,
0.0070319544,
-0.013953974,
0.029918198,
0.00873203,
-0.02517526,
-0.043189,
0.02073072,
0.027106987,
0.022882318,
-0.0056224223,
0.018689059,
-0.006034681,
0.012249971,
-0.022222703,
0.054056924,
0.006388046,
0.010169046,
-0.003989093,
0.0048999884,
-0.008574979,
-0.04020503,
-0.03778645,
-0.018987454,
0.06746907,
-0.02255251,
-0.010836513,
0.001166103,
0.013537789,
0.011009268,
0.017888099,
-0.015398841,
-0.0007219434,
-0.06197229,
-0.063040234,
0.0360903,
-0.0033628526,
0.0007126185,
0.0017943067,
-0.0059679346,
0.047429375,
-0.049125522,
0.017479766,
0.073562644,
0.03294928,
-0.0019925835,
-0.05540756,
0.033860177,
0.02514385,
0.020809246,
0.009517285,
-0.020495143,
-0.049282577,
0.018343545,
-0.030467877,
-0.057826143,
-0.0056656115,
-0.010349655,
0.028661791,
-0.020872066,
0.053051796,
-0.022913728,
-0.07437931,
-0.04004798,
0.051072955,
-0.030640632,
0.005975787,
0.021421744,
0.028630381,
0.008794851,
-0.001504744,
-0.0029466676,
-0.022332639,
-0.009368086,
0.06746907,
-0.02338488,
-0.016176244,
0.037503757,
0.04293772,
-0.026400257,
-0.0311589,
-0.024295775,
0.01308234,
-0.051072955,
-0.040990286,
-0.029352814,
-0.0044288356,
-0.014095319,
0.004966735,
0.027075578,
0.0068042306,
-0.014142434,
-0.027782306,
-0.011503979,
-0.04881142,
0.0023969894,
0.03010666,
-0.030829092,
-0.016820153,
-0.022175588,
0.014299485,
-0.021107642,
-0.035744786,
0.045576174,
-0.01909739,
0.011409748,
0.01663169,
-0.018186495,
0.06037037,
-0.03119031,
0.01980412,
0.004260006,
-0.053742822,
-0.04309477,
-0.015328169,
0.049125522,
0.008080269,
-0.00814309,
-0.03810055,
-0.011700293,
0.05342872,
0.028284868,
-0.029462751,
-0.07940494,
0.03627876,
-0.044225536,
-0.03433133,
-0.013718396,
0.026274618,
-0.023698982,
0.005473224,
0.00044244184,
-0.0103575075,
0.011818081,
0.03170858,
-0.018437777,
0.011511832,
-0.059396654,
0.00129567,
-0.032917872,
-0.022599626,
-0.018155085,
-0.025316607,
0.016176244,
0.002130003,
-0.01909739,
-0.02069931,
-0.022316935,
0.040079392,
-0.04516784,
0.004978514,
-0.024060199,
0.0053750672,
0.022034243,
0.009375939,
-0.021107642,
0.029541276,
0.013184424,
-0.016647397,
0.01641182,
0.019537132,
-0.021578794,
0.03439415,
0.020950591,
0.040016573,
-0.008465044,
-0.022159884,
0.028881662,
0.0079153655,
-0.049376804,
-0.037095424,
-0.004173628,
-0.007648379,
-0.008472896,
0.013655577,
0.0062152897,
0.014315191,
0.0215945,
-0.008865524,
-0.01042818,
0.01212433,
0.03316915,
-0.018374957,
0.0107422825,
-0.034676842,
-0.031378772,
-0.025033915,
0.014024646,
0.024044493,
-0.028127817,
0.009815682,
-0.007828988,
0.018374957,
-0.014582177,
-0.002116261,
0.040644776,
0.042058233,
0.01335718,
-0.03819478,
0.028237753,
0.0020985927,
-0.052800514,
-0.010836513,
-0.049345396,
-0.037723627,
0.041964002,
-0.02255251,
-0.004401352,
-0.033200562,
0.021248989,
0.018359251,
0.039482597,
0.008669211,
0.023667572,
0.0042796372,
-0.009454465,
0.029918198,
-0.060747292,
-0.020526554,
-0.031363066,
0.024782633,
0.012352054,
-0.05339731,
0.009344529,
0.038257603,
0.01989835,
-0.013011668,
-0.008245173,
-0.021515975,
0.021940012,
0.03263518,
-0.014417273,
-0.019599954,
-0.06313446,
0.013553494,
-0.028096408,
0.04479092,
-0.013506378,
0.0062074373,
0.015092593,
-0.007989965,
0.016710216,
0.064076774,
0.00061838794,
0.003657323,
0.02258392,
0.061658185,
0.038665935,
-0.031787105,
-0.018280726,
0.008080269,
0.040644776,
0.014103171,
0.0029761146,
0.011472569,
0.010114078,
0.014896278,
-0.020338092,
0.0034570831,
0.036749914,
0.045576174,
-0.007891808,
0.051387057,
-0.021029117,
-0.014974804,
0.0011238955,
-0.012014395,
0.0487486,
0.014111024,
-0.029792557,
-0.0049117673,
-0.034990944,
0.006552949,
-0.0044759507,
-0.045733225,
0.025505068,
0.00062476814,
0.061846647,
-0.042906307,
-0.0007155632,
0.01740124,
0.046801172,
0.04202682,
0.0028406584,
0.022081358,
0.016678806,
0.042780668,
-0.014880573,
0.0013977531,
-0.013545641,
0.0030742716,
-0.005610644,
-0.068725474,
-0.031331655,
0.04837168,
0.0166631,
0.0103575075,
0.03643581,
-0.044445407,
-0.022034243,
-0.026918525,
-0.0038830838,
-0.026306028,
-0.0027798011,
0.01465285,
-0.002575635,
-0.022175588,
0.031237425,
0.013647724,
0.0072321943,
0.04315759,
0.04516784,
0.028583266,
0.07450495,
0.0050766706,
-0.047366556,
0.034990944,
-0.01335718,
-0.04497938,
0.020982001,
-0.010648051,
0.030467877,
0.010977859,
-0.027719485,
-0.034990944,
0.007703347,
-0.00833155,
-0.0147313755,
-0.029714031,
0.02585058,
0.00714189,
-0.04293772,
0.004766495,
0.048905652,
0.007919292,
0.012878175,
0.002287054,
0.027358267,
-0.049690906,
-0.03998516,
-0.03199127,
-0.009336676,
0.011401896,
-0.036875553,
0.004373868,
-0.054245383,
0.018312136,
0.0026207871,
-0.003985167,
0.0119044585,
0.024499942,
0.041838363,
0.023086483,
0.030185185,
-0.045921687,
-0.011920164,
0.033420432,
0.04783771,
0.0053200996,
0.09058696,
0.049345396,
-0.016851563,
-0.031473003,
0.0009315082,
0.037315294,
-0.013341474,
0.014660702,
0.009124658,
-0.003700512,
-0.015069035,
-0.044256944,
-0.050947316,
0.03769222,
-0.006925945,
-0.038822986,
-0.043660153,
-0.0021142978,
-0.07739469,
-0.011606062,
-0.056444097,
0.022709562,
0.008629947,
-0.02239546,
-0.033231974,
-0.09799977,
0.29500443,
0.045544762,
0.009925618,
0.025897695,
0.04180695,
0.085561335,
0.043063357,
0.012171445,
0.015265348,
-0.047178093,
0.014315191,
-0.047649246,
-0.012147888,
0.0567582,
0.02677718,
0.03461402,
-0.05719794,
-0.015744353,
0.00041544874,
-0.050758854,
-0.044602457,
-0.010498853,
0.0038830838,
0.030829092,
0.02140604,
0.01369484,
0.025253786,
-0.006293815,
0.024609877,
-0.02322783,
-0.0051041543,
-0.0076091164,
0.030059544,
-0.028803136,
-0.0037927795,
0.043063357,
0.00754237,
-0.04331464,
-0.013616314,
0.005602791,
0.023557637,
-0.0015214307,
0.034237098,
-0.036121707,
-0.010216162,
0.047900528,
-0.030986145,
0.017793868,
0.036655683,
-0.024782633,
0.033828765,
-0.043817203,
0.021940012,
0.0081744995,
-0.018312136,
-0.009642926,
-0.001352601,
-0.052800514,
-0.04293772,
-0.005810884,
0.029242879,
0.005960082,
-0.010765839,
-0.002216381,
-0.056318454,
0.018987454,
-0.025190966,
0.07714341,
-0.010655904,
-0.017354125,
0.008284436,
0.006419456,
-0.002879921,
-0.015846437,
0.030405056,
0.004201112,
-0.0003055131,
0.02264674,
0.029792557,
-0.023133598,
-0.01169244,
0.0084257815,
-0.029949607,
-0.04457105,
0.02936852,
0.04105311,
-0.026290322,
-0.012140036,
0.011566799,
0.029572686,
0.022034243,
0.0345512,
0.0065293917,
-0.01465285,
0.00042624597
] |
This class has a few needs:
- An attribute name, which corresponds to the name of the tool itself. To be in tune with other tools which have a
performative name, we'll name it model_download_counter.
- An attribute description, which will be used to populate the prompt of the agent.
- inputs and outputs attributes. Defining this will help the python interpreter make educated choices about types,
and will allow for a gradio-demo to be spawned when we push our tool to the Hub. They're both a list of expected
values, which can be text, image, or audio.
- A __call__ method which contains the inference code. This is the code we've played with above!
Here's what our class looks like now:
thon
from transformers import Tool
from huggingface_hub import list_models
class HFModelDownloadsTool(Tool):
name = "model_download_counter"
description = (
"This is a tool that returns the most downloaded model of a given task on the Hugging Face Hub. "
"It takes the name of the category (such as text-classification, depth-estimation, etc), and "
"returns the name of the checkpoint."
)
inputs = ["text"]
outputs = ["text"] |
[
0.034873053,
-0.016577799,
-0.023549499,
0.013834239,
-0.014802126,
0.008725541,
0.022326905,
-0.012073121,
0.038744602,
0.03164191,
0.013630473,
-0.002110431,
0.010159178,
-0.015282432,
0.017087214,
0.017960496,
-0.009904471,
-0.020929653,
0.003353038,
-0.025427055,
0.008274345,
-0.008834701,
-0.053357515,
-0.006706076,
-0.02247245,
-0.018324362,
0.03891926,
0.0039479616,
0.08470833,
0.03362135,
-0.029327713,
-0.02494675,
-0.0095406035,
-0.006644219,
-0.006455008,
-0.045381542,
0.013361211,
-0.022428786,
-0.016781565,
-0.02640222,
0.005428902,
0.0005508043,
0.029458705,
-0.054318126,
-0.06310917,
0.04701167,
0.0039734324,
-0.022574333,
-0.01599561,
-0.059732474,
-0.009809866,
-0.000037438545,
0.0031183437,
0.0106685925,
-0.010523045,
-0.050097264,
-0.048146937,
0.016475916,
-0.029895347,
0.025514383,
0.037172694,
0.05033014,
0.01781495,
-0.05719996,
-0.016781565,
0.018397136,
-0.033650458,
0.004038928,
0.009205845,
-0.039006587,
-0.05990713,
0.060605757,
-0.01427088,
-0.037987757,
-0.0427617,
0.042965464,
0.0047630244,
-0.0036150226,
-0.0010870539,
0.06491394,
0.014409149,
0.062643416,
0.01778584,
-0.012298718,
-0.0010524865,
-0.032369643,
0.060140006,
0.03076863,
-0.031554583,
-0.04124801,
-0.045759965,
0.03641585,
-0.026387665,
0.002796321,
0.045730855,
0.022879982,
0.025587156,
0.030652191,
-0.020216474,
0.014882177,
0.038715493,
0.05853899,
-0.014467368,
0.00088738167,
-0.036182977,
-0.014176275,
0.033359364,
-0.009547881,
-0.0060620313,
-0.017407417,
0.0055999192,
-0.013113782,
0.03827885,
-0.029531479,
0.008172462,
0.02104609,
-0.00048758232,
0.023185631,
-0.022297796,
-0.039268572,
-0.02321474,
-0.026358556,
-0.009395056,
-0.052426018,
-0.01284452,
-0.02615479,
0.0015782749,
0.014947673,
0.016170267,
0.0072446,
0.03600832,
-0.008405337,
0.018091489,
0.028134229,
-0.0011925754,
0.011556429,
0.009096685,
-0.016330369,
0.04372231,
0.010355666,
0.015486197,
-0.010603096,
-0.008769205,
0.07789674,
-0.024219016,
-0.040782258,
0.027726697,
-0.022821764,
-0.044886682,
0.046662357,
-0.030419316,
0.028425323,
0.004541065,
-0.008674599,
-0.00012223671,
-0.005283355,
-0.014904009,
0.005439818,
0.028090565,
0.005381599,
-0.02271988,
-0.010377498,
-0.05030103,
0.059674256,
-0.01723276,
0.02876008,
-0.0156463,
-0.0070735826,
0.029458705,
-0.009919026,
-0.00096879696,
0.007102692,
-0.007044473,
0.023010975,
0.043926075,
-0.011985793,
0.031583693,
-0.011905742,
0.008041469,
0.0203038,
0.015762737,
0.019052098,
0.012473375,
0.00090239116,
-0.0028254304,
-0.016228486,
0.016854338,
0.008674599,
0.030477535,
-0.0063604023,
0.04066582,
0.06456463,
-0.0604311,
0.011207116,
-0.04704078,
0.0006599645,
-0.05947049,
0.005257884,
0.022792654,
-0.050213702,
-0.04217951,
0.058306113,
-0.03071041,
0.0156463,
-0.029327713,
-0.027464712,
0.035688117,
0.038744602,
-0.028163338,
0.03210766,
0.037958648,
0.020958763,
-0.033825114,
0.018237034,
0.0036659641,
-0.015850065,
-0.0076994346,
0.06997898,
-0.04075315,
-0.013193833,
0.027246391,
0.006298545,
0.031438146,
0.017349198,
0.037114475,
-0.040141854,
-0.005279716,
0.063167386,
0.012931848,
-0.00005449483,
0.029138502,
0.028672753,
0.011476378,
0.04922398,
0.002310558,
0.031234378,
0.032340534,
0.03021555,
-0.016097493,
-0.0054543726,
0.0071791043,
0.029953565,
0.009795311,
0.011876632,
-0.022909092,
0.0081870165,
-0.0147875715,
0.0028581785,
-0.019867161,
0.026707867,
-0.043372996,
0.0368816,
0.0156463,
0.013535867,
-0.06765023,
-0.027770361,
-0.0036987122,
0.05717085,
-0.038249742,
-0.013790575,
0.005508953,
-0.0025052272,
0.0070626666,
-0.018993879,
0.022617998,
0.03827885,
0.029487815,
0.0069280355,
0.0058655427,
-0.08284533,
-0.03883193,
-0.03929768,
-0.053037316,
0.0029891708,
-0.002316016,
-0.014350931,
-0.027915908,
-0.037085366,
0.02271988,
-0.022385122,
0.004184475,
0.027450157,
0.008965693,
0.013455817,
0.023927921,
0.045148667,
-0.006662412,
-0.0131283365,
-0.011913019,
0.01583551,
-0.023418507,
-0.025237843,
0.01756752,
-0.0027326443,
0.015253322,
0.011461823,
-0.028992955,
-0.024306344,
-0.027712142,
-0.009817143,
-0.04410073,
-0.015180549,
-0.01753841,
0.029094838,
-0.014823958,
-0.0046938895,
0.039035697,
-0.039734323,
0.042063072,
0.08092411,
0.006931674,
0.008019637,
0.0092204,
0.017975051,
-0.048787344,
0.07143445,
0.02324385,
-0.023185631,
-0.06235232,
-0.024626546,
-0.04744831,
-0.001997632,
-0.03458196,
0.0017556603,
-0.0059237615,
0.038016867,
-0.021671943,
-0.066369414,
0.0058109625,
-0.04314012,
-0.014816681,
-0.044013403,
-0.06491394,
0.040549383,
-0.0019430519,
0.015078666,
-0.04165554,
0.0046829735,
0.0108941905,
0.04226684,
-0.0058800974,
-0.032427862,
0.057461943,
0.021526396,
0.040840477,
-0.011439991,
0.011025183,
-0.04372231,
0.00026494096,
-0.001460018,
0.048379812,
0.054230798,
0.0069498676,
0.03635763,
0.045352433,
0.04549798,
0.020070927,
0.006455008,
0.00057445565,
-0.008136075,
0.0034967659,
0.014074392,
-0.0076776026,
0.0029127586,
-0.013499481,
-0.0015173272,
-0.0073719537,
0.011178007,
0.044566482,
-0.047681186,
0.0003438547,
-0.007502946,
-0.039559666,
0.048263375,
-0.038191523,
-0.02637311,
0.028221557,
0.0077212662,
0.04267437,
-0.009882639,
0.012276886,
0.012684418,
0.035193257,
0.026853414,
0.042965464,
-0.009526049,
0.0028418044,
0.018382581,
-0.028876517,
-0.012691695,
-0.008878365,
0.0034312697,
0.034232646,
0.010093682,
-0.014285435,
-0.033650458,
0.01320111,
0.039588775,
0.026707867,
-0.005283355,
0.04468292,
-0.0041262563,
0.0024797565,
0.016068384,
-0.029109392,
0.029895347,
-0.004915849,
0.03172924,
0.012990067,
-0.024320899,
-0.010122791,
-0.019808942,
0.0210752,
0.0029837128,
-0.030419316,
0.00985353,
-0.042528823,
-0.01772762,
0.015282432,
0.039472338,
0.00015441624,
-0.019314082,
-0.048787344,
-0.0063276542,
0.03461107,
0.0023524028,
0.008427169,
-0.04116068,
0.020187365,
0.0712598,
0.039996307,
-0.027464712,
0.0014536503,
-0.047652077,
-0.03548435,
0.060198225,
0.053444844,
-0.009598822,
0.0074447272,
-0.048205156,
-0.006309461,
0.009387779,
-0.015660854,
-0.016170267,
0.049573295,
0.01018101,
0.0070626666,
0.019605177,
-0.04043295,
-0.017902277,
0.03944323,
-0.030361097,
0.011243503,
-0.04174287,
0.004140811,
-0.017451081,
-0.0035749974,
-0.0065750843,
0.050825,
0.025558047,
-0.007044473,
0.00115255,
0.02346217,
-0.02494675,
-0.08383505,
0.028905626,
0.02082777,
-0.006968061,
0.009802588,
-0.0026344,
-0.019939935,
0.0049777064,
-0.002741741,
-0.037754882,
0.026169345,
-0.000114504524,
0.012291441,
-0.008980248,
-0.04543976,
-0.006043838,
-0.027595704,
0.014882177,
0.03728913,
0.03545524,
0.022574333,
-0.08919118,
-0.01149821,
-0.008056024,
-0.019663395,
-0.0058327946,
-0.003713267,
0.0122259455,
-0.010741366,
-0.00260711,
-0.025892805,
-0.02349128,
-0.034756616,
-0.026285782,
0.0635167,
0.015457087,
0.08569805,
-0.04974795,
-0.009336838,
0.04977706,
-0.004777579,
0.0012653489,
0.0045956452,
-0.016941667,
0.031467255,
0.009176736,
0.0006599645,
0.0071791043,
-0.033679567,
0.012910016,
-0.016577799,
-0.02857087,
-0.0004725728,
-0.03411621,
-0.015791846,
0.06037288,
-0.021016981,
-0.06409888,
-0.021220747,
-0.004344577,
0.019532403,
-0.0036022873,
0.052949987,
-0.017887723,
-0.008972971,
-0.027712142,
0.013113782,
-0.05568627,
-0.012167727,
0.006251242,
-0.03629941,
-0.027042625,
0.041946635,
0.0026216647,
0.0045701745,
-0.01199307,
-0.02752293,
-0.01890655,
-0.025558047,
-0.023884257,
-0.008689154,
0.026038352,
-0.057461943,
0.036561396,
-0.00622941,
-0.017145433,
-0.03728913,
-0.02779947,
0.042383276,
0.01992538,
-0.016839784,
-0.018921105,
0.004424628,
0.012167727,
-0.031583693,
0.032398753,
-0.0077503757,
0.055890035,
-0.0032147686,
0.0124297105,
-0.047244545,
-0.024146242,
-0.061246164,
0.00551623,
0.03210766,
-0.026533213,
0.0035258753,
-0.008521775,
-0.010108237,
-0.0021904819,
-0.0030237383,
-0.0613626,
0.018499019,
-0.03883193,
-0.047098998,
0.03257341,
-0.041480884,
0.025718149,
0.0031620078,
-0.018266143,
0.045381542,
-0.03359224,
-0.00072955416,
0.090763085,
0.0054689273,
0.02234146,
-0.0421504,
0.016388588,
0.008529052,
-0.03073952,
-0.03263163,
-0.042819917,
-0.00971526,
0.02832344,
-0.025368836,
-0.013164723,
-0.032864504,
0.018280698,
0.040141854,
-0.0362703,
0.042004853,
-0.0074956687,
-0.054783877,
-0.016315814,
0.011862078,
0.029647917,
0.024553772,
0.011956683,
0.015180549,
0.011207116,
0.044741135,
-0.025325172,
-0.0097662015,
-0.046749685,
0.049049325,
-0.008630935,
-0.029240385,
0.0069171195,
0.03743468,
-0.012589812,
-0.02209403,
-0.005985619,
0.028614534,
-0.050155483,
-0.016999885,
-0.01967795,
0.001257162,
-0.017363753,
-0.0015591718,
0.02857087,
-0.009511494,
-0.02085688,
0.009868084,
0.019110316,
-0.01078503,
-0.0042026686,
0.027988682,
-0.016257595,
-0.011236225,
-0.048874673,
-0.017945942,
-0.034319974,
-0.014401872,
0.03886104,
0.004541065,
-0.0048539913,
0.032427862,
0.016068384,
0.045643527,
-0.013011899,
0.032660738,
0.012509761,
-0.055540722,
-0.06177013,
-0.014758462,
0.059266724,
-0.011156175,
0.013768743,
-0.037143584,
0.03312649,
0.071376234,
0.017087214,
0.021540951,
-0.054027032,
0.01676701,
-0.015850065,
-0.020231027,
-0.04424628,
-0.006898926,
-0.0016938028,
0.015602634,
-0.014547419,
-0.023753265,
0.023302069,
0.037492897,
-0.052076705,
0.0038278853,
-0.011621925,
0.00038865587,
-0.0010697702,
-0.03210766,
-0.02420446,
-0.014198107,
0.0011461823,
0.02138085,
-0.026256673,
-0.01438004,
0.024495553,
0.017829504,
-0.029487815,
0.009969967,
-0.02785769,
-0.012546148,
0.011418159,
-0.005014093,
-0.053444844,
0.030273769,
0.065787226,
-0.01536976,
-0.0013936122,
-0.004188114,
0.030535754,
-0.009096685,
0.025965579,
0.0306813,
-0.0048867394,
-0.00042708937,
0.011716531,
0.018993879,
-0.056326676,
-0.016577799,
-0.00982442,
0.015195103,
-0.014139888,
0.0059346776,
-0.0012799036,
0.03827885,
-0.0005658138,
-0.0013463094,
0.0041590044,
0.04034562,
0.025252398,
-0.0034822111,
0.046749685,
-0.03356313,
-0.0017329186,
0.004599284,
-0.001822066,
0.031554583,
-0.022909092,
-0.010006354,
0.006633303,
-0.014409149,
-0.010253783,
-0.01624304,
0.02761026,
0.015660854,
0.008929307,
-0.028556315,
0.008114243,
0.016854338,
-0.046196606,
0.037754882,
-0.07277348,
-0.035862774,
0.027537486,
-0.043926075,
0.00040548475,
-0.018862886,
0.0152387675,
-0.016374033,
0.013222942,
-0.003060125,
0.04497401,
0.001621939,
0.0041917525,
0.011308999,
-0.0567051,
-0.0057636597,
-0.0026962576,
0.03172924,
-0.006185746,
-0.03199122,
0.016344924,
0.023054639,
-0.0030801375,
0.0022195913,
-0.040258292,
-0.042528823,
0.02563082,
0.0175093,
-0.00145456,
-0.0041699205,
-0.025703594,
0.021235302,
-0.04424628,
0.009278619,
-0.029633362,
0.008478111,
0.009846252,
-0.0117747495,
0.016665127,
0.002467021,
0.032224096,
0.021540951,
0.00044960366,
0.027741252,
0.027319165,
-0.0061457204,
-0.03309738,
0.014722075,
0.038977478,
0.0115491515,
0.030623082,
-0.013426707,
0.020129146,
-0.0020558508,
-0.028454432,
-0.002008548,
0.036241192,
0.020114591,
0.026314892,
0.023200186,
-0.018848332,
-0.006611471,
-0.01363775,
-0.026547767,
0.035891883,
-0.002590736,
-0.04412984,
0.005760021,
-0.016636018,
-0.00430819,
-0.02162828,
-0.016956221,
0.0137832975,
-0.017072659,
0.03504771,
-0.016213931,
0.003633216,
-0.023549499,
0.05463833,
-0.010937855,
0.019838052,
0.043489434,
-0.00016931206,
0.054230798,
0.003995264,
0.042063072,
-0.039996307,
-0.03207855,
-0.030535754,
-0.047593858,
-0.043489434,
0.033242926,
0.023840593,
0.008732818,
0.03728913,
-0.025805477,
-0.02299642,
-0.030943284,
0.000060265542,
-0.020187365,
-0.009707983,
0.015267877,
-0.05571538,
-0.041509993,
0.0048649074,
-0.022938201,
0.02922583,
0.007706712,
0.043926075,
0.043431215,
0.0994959,
-0.019576067,
-0.03787132,
0.004879462,
-0.009897194,
-0.04031651,
0.024510108,
0.010435717,
0.0019284973,
-0.0073865084,
-0.054842096,
-0.047360983,
-0.0034367277,
0.0011370856,
-0.0095406035,
-0.0016646934,
0.03600832,
0.02206492,
-0.049165763,
-0.005246968,
0.07155089,
0.0104211625,
-0.002143179,
-0.0075975517,
0.030972393,
-0.059674256,
-0.045265105,
-0.05460922,
0.006542336,
-0.023869703,
-0.06898926,
0.027741252,
-0.035659008,
-0.024568327,
-0.0051196143,
0.0053561283,
-0.013746911,
0.013157446,
0.030302878,
0.030273769,
0.016999885,
-0.019314082,
-0.00003817765,
0.051494516,
0.03560079,
0.017334644,
0.092276774,
0.03693982,
-0.031496365,
-0.030623082,
0.014183552,
-0.0071536335,
-0.026635094,
0.023927921,
-0.0021923012,
0.010210119,
-0.017407417,
-0.055249628,
-0.009482385,
0.06380779,
-0.010028186,
-0.05850988,
-0.035309695,
-0.009140349,
-0.064331755,
-0.028017791,
-0.033796005,
0.052920878,
-0.03458196,
-0.028279776,
0.001915762,
-0.10962597,
0.25336817,
0.03597921,
0.0029018426,
0.046633247,
0.016606908,
0.08331108,
0.0136595825,
0.006498672,
-0.035688117,
-0.035338804,
0.031409036,
-0.043809637,
-0.021701053,
0.036619615,
-0.025179625,
0.058073238,
-0.019474184,
-0.012895461,
-0.01729098,
-0.03889015,
-0.0261839,
0.0406076,
0.00647684,
0.07725633,
0.06392422,
-0.01945963,
0.03554257,
-0.02033291,
0.03944323,
-0.026576877,
-0.019983599,
-0.046720576,
0.0048321593,
-0.016374033,
-0.007171827,
0.012233223,
0.0218466,
-0.052076705,
-0.021526396,
0.011476378,
-0.00010626065,
-0.025703594,
0.05027192,
-0.024481,
-0.033155598,
0.03461107,
-0.025339726,
0.027712142,
0.04706989,
0.008674599,
0.02538339,
-0.061944786,
0.040840477,
-0.023083748,
-0.023593163,
-0.016374033,
-0.053939704,
-0.033912443,
-0.0026635095,
-0.018848332,
-0.0046393094,
0.030885065,
-0.05033014,
-0.019037543,
-0.06642763,
0.015151439,
0.0028763718,
0.053241078,
-0.008652767,
-0.040054526,
0.02947326,
0.003353038,
-0.056996193,
-0.05181472,
-0.013041008,
0.046866123,
0.015035002,
0.040986024,
0.002159553,
-0.018484464,
-0.012044012,
0.02055123,
-0.016752455,
-0.030855957,
0.03073952,
0.041015133,
-0.035222366,
-0.0016410421,
-0.0013845155,
0.034407303,
0.051931158,
0.053241078,
0.001144363,
-0.006786127,
-0.0048649074
] | For the task text-classification, this returns 'facebook/bart-large-mnli', for translation it returns 'google-t5/t5-base.
How do we convert this to a tool that the agent can leverage? All tools depend on the superclass Tool that holds the
main attributes necessary. We'll create a class that inherits from it:
thon
from transformers import Tool
class HFModelDownloadsTool(Tool):
pass |
[
0.034691185,
0.0043837307,
-0.04077889,
-0.011986081,
-0.037021406,
0.012175411,
-0.0065755956,
-0.005872888,
0.019646686,
0.019457355,
0.0035899985,
0.011767622,
0.029317109,
-0.01711257,
0.0031785688,
0.0035226406,
0.026826683,
-0.01801553,
-0.047099616,
0.0022373775,
0.021656502,
-0.006713953,
-0.056245737,
-0.05074059,
-0.03868169,
0.008752897,
-0.0050427467,
-0.02108851,
0.061517864,
0.04433248,
-0.064314134,
-0.017287336,
-0.009510219,
-0.023928469,
-0.00013448841,
-0.05414854,
-0.010820969,
-0.030380271,
-0.047157872,
-0.049866755,
0.0115054725,
0.011578292,
0.005883811,
-0.0760235,
-0.025705263,
0.03029289,
0.013012835,
0.01954474,
0.035128098,
-0.036060188,
-0.01899131,
0.053245578,
0.0078717815,
0.008723769,
-0.033875607,
-0.02857435,
-0.02404498,
-0.019442791,
-0.02909865,
0.019821452,
0.012335613,
0.018598085,
-0.0072418936,
-0.023506116,
0.010333079,
0.048789028,
-0.04124493,
-0.0162533,
-0.017869892,
-0.021889525,
-0.018860236,
0.056245737,
-0.03078806,
-0.041623592,
0.0019934322,
0.037283555,
0.015452286,
-0.029593822,
0.0029655718,
0.017505795,
0.022559464,
0.061692633,
0.021554556,
0.0040159924,
-0.011388961,
-0.01336965,
0.037429195,
-0.031370617,
-0.02352068,
-0.021962345,
-0.026127616,
0.016544577,
-0.010420462,
0.022501208,
0.03801175,
0.025108144,
-0.011825877,
0.04206051,
-0.024481896,
-0.012124437,
0.042293534,
0.08685903,
-0.029462747,
-0.020680722,
0.0055124317,
-0.01011462,
0.010966608,
0.012342895,
-0.023608064,
-0.0043728077,
0.01958843,
-0.0056653526,
0.024205184,
-0.010078211,
0.017869892,
0.0058109914,
-0.008738333,
0.024540152,
-0.031836662,
-0.012976425,
0.018335937,
-0.008141214,
-0.009211659,
-0.05939154,
0.0049080304,
-0.007067127,
0.018568957,
0.021292405,
0.031778406,
-0.045177184,
0.025748955,
-0.023666319,
0.021394353,
0.046691827,
-0.009182531,
0.015976585,
-0.009634012,
0.006280677,
0.068159,
-0.030613294,
-0.005891093,
-0.015830947,
0.01947192,
0.086684264,
0.02003991,
-0.014702246,
0.024074107,
-0.06489669,
-0.025515933,
0.030584166,
-0.008024703,
0.016733909,
0.00017192216,
-0.011563728,
-0.028705426,
-0.0015455927,
-0.05135227,
0.034574673,
0.02921516,
0.022428388,
-0.008192187,
0.0049444404,
-0.02857435,
0.051031865,
-0.0014063255,
0.017374719,
-0.032069683,
-0.010675331,
0.033001773,
-0.007201843,
-0.0050718742,
0.01490614,
0.00030879996,
-0.0077843987,
0.06390634,
0.0031549025,
0.036875766,
0.023054635,
-0.0151318805,
0.020564212,
0.001531939,
0.022748794,
0.020942872,
0.041710977,
0.020127295,
-0.01438184,
0.03576891,
0.017170824,
-0.011228758,
-0.017360155,
0.01906413,
0.03195317,
-0.06419762,
0.039409883,
-0.039613776,
0.019020438,
-0.017505795,
0.018743725,
0.003397027,
-0.030758932,
-0.017622305,
0.048905537,
-0.040021565,
0.024714919,
-0.019224333,
-0.024918813,
0.01228464,
0.031283233,
0.009444682,
0.009226223,
0.06938237,
0.008141214,
-0.0592459,
-0.022049727,
0.0036755614,
0.0125832,
-0.0230692,
0.028006358,
-0.017083442,
-0.009794215,
0.037312683,
0.0019278948,
0.038565177,
0.022515772,
0.01179675,
-0.013602672,
-0.011381679,
0.039613776,
0.009976264,
-0.0173019,
0.0011469063,
0.022865305,
0.0293608,
0.071829095,
0.002827215,
0.010813687,
0.0403711,
0.059944965,
0.009888881,
-0.014410968,
0.006113192,
0.011163221,
0.00042440082,
0.041332316,
-0.03326392,
-0.020083603,
0.029972482,
0.0076533235,
-0.047361765,
0.03329305,
-0.08184905,
0.0429926,
-0.014279893,
0.017505795,
-0.05167268,
-0.025647009,
0.04377905,
0.0006790413,
-0.035361122,
-0.03696315,
0.0004915312,
0.035535887,
0.008017421,
-0.01565618,
0.026593661,
0.029608386,
0.004871621,
0.0064263158,
-0.015743563,
-0.07089701,
-0.03329305,
0.013915796,
-0.037778728,
-0.016165916,
-0.032040555,
0.002404862,
0.008862127,
-0.030059867,
0.032710493,
-0.025151836,
0.021365225,
0.032535728,
-0.0018414217,
0.03850692,
0.023229403,
0.012757966,
-0.038565177,
-0.020578776,
-0.03381735,
0.046458807,
-0.022341006,
-0.027161652,
0.024831431,
-0.02921516,
0.014054152,
0.028880192,
-0.009218941,
-0.039613776,
-0.045060672,
-0.008498029,
-0.05280866,
0.019093258,
-0.0035226406,
0.027773336,
-0.016457194,
0.0025978338,
-0.0030129044,
-0.033729967,
0.0540029,
0.050653204,
-0.012597764,
0.018132042,
-0.021117639,
-0.010879225,
-0.05411941,
0.05007065,
0.048468623,
-0.0060658595,
-0.06780946,
-0.0059857583,
-0.04377905,
0.0133186765,
-0.018860236,
-0.017389283,
-0.03209881,
0.045526717,
-0.035477635,
-0.0571487,
0.011789468,
-0.038623434,
0.0065064174,
-0.051847443,
-0.013515289,
0.035040718,
-0.037778728,
0.01715626,
-0.022268185,
0.0051774625,
-0.035128098,
0.015583361,
0.00013835695,
-0.047274385,
0.055896204,
0.018845672,
-0.00047742247,
-0.026651917,
0.057032187,
-0.06874155,
-0.0008055651,
-0.01123604,
0.009335453,
-0.0298851,
-0.00857813,
0.035885423,
0.0450898,
0.046604443,
-0.033322178,
0.004558497,
-0.0068777963,
0.012175411,
0.028020922,
0.012473971,
0.00423081,
-0.02767139,
-0.04433248,
-0.007595068,
-0.043866433,
0.024744047,
0.07765465,
-0.040516738,
0.018481575,
-0.018568957,
-0.033001773,
0.03174928,
-0.02730729,
-0.0055306368,
0.015379466,
0.025909157,
0.02561788,
-0.011738494,
-0.0293608,
-0.020855488,
0.030584166,
0.030991955,
0.013588108,
0.0015792716,
-0.02711796,
0.03288526,
-0.0059493487,
0.010005391,
0.012539508,
-0.0057673,
0.017622305,
-0.004878903,
-0.011454498,
-0.034021243,
0.04168185,
0.03760396,
0.05907113,
0.016340682,
0.06314902,
0.014294457,
-0.009524783,
0.024714919,
-0.0059420667,
0.037167042,
-0.04546846,
0.023797395,
0.018976746,
-0.029652078,
-0.007471275,
-0.030147249,
0.008257725,
0.035128098,
0.00696518,
0.00340795,
-0.020724414,
-0.0012788915,
0.018219424,
0.019020438,
-0.01966125,
-0.020986564,
-0.047740426,
0.018568957,
0.045526717,
-0.005902016,
0.0026706532,
-0.020389445,
-0.009801497,
0.045905378,
0.007966447,
-0.02835589,
-0.0056871986,
-0.00040392036,
-0.036380593,
0.035302866,
0.031836662,
-0.002805369,
-0.016821291,
-0.04677921,
0.0018559856,
-0.024176056,
-0.021976909,
0.0025486806,
0.0058146324,
-0.00087019237,
-0.002018919,
0.00051610783,
-0.038856454,
-0.009451964,
0.028253945,
-0.01954474,
0.03830303,
-0.023506116,
0.025137272,
-0.023608064,
-0.006375342,
0.021292405,
0.015670745,
0.023156583,
-0.012466689,
0.029477311,
0.015510541,
-0.031924043,
-0.05176006,
0.016209608,
0.009852471,
0.0015383108,
0.014971677,
0.033467818,
-0.03640972,
0.032535728,
0.0065755956,
-0.010646203,
-0.004329116,
-0.033875607,
0.013639082,
0.0099617,
-0.011789468,
0.016763035,
-0.0650132,
0.045672353,
0.03078806,
0.020768106,
0.0013007373,
-0.08068395,
0.010187441,
-0.0006490033,
-0.013376932,
0.031661894,
-0.0037065097,
-0.022646846,
-0.035506763,
-0.026826683,
0.00081739825,
-0.046196654,
0.002805369,
0.02078267,
0.071654335,
0.04273045,
0.050682332,
-0.045206312,
-0.025079016,
0.013784721,
-0.028399583,
-0.002943726,
-0.012750684,
-0.01899131,
0.012969143,
0.0023502475,
-0.023171147,
0.020069038,
-0.05726521,
0.016763035,
-0.01644263,
0.0012279178,
-0.0036755614,
-0.015728999,
-0.003142159,
0.054818477,
-0.015233828,
-0.07975186,
-0.013245856,
0.008978637,
0.0002910502,
0.02509358,
0.053682495,
-0.04340039,
-0.01985058,
-0.035331994,
0.031399745,
-0.041536212,
-0.016078534,
-0.027496621,
-0.04127406,
-0.028385019,
0.048934665,
0.014134254,
-0.087441586,
-0.00959032,
-0.016544577,
-0.009226223,
-0.03970116,
-0.0204477,
-0.008228597,
0.015015369,
0.0010986633,
0.044186838,
0.0017103467,
-0.019748634,
-0.03640972,
0.025079016,
0.023768267,
0.018233988,
-0.017272772,
-0.017432975,
0.0049007484,
0.0044347043,
-0.05205134,
0.06827551,
-0.0032131579,
0.02187496,
0.007842654,
0.0124229975,
-0.025268346,
-0.0298851,
-0.027059706,
-0.019981656,
0.055109754,
-0.037021406,
0.029943354,
-0.014877012,
0.015175572,
0.016879547,
-0.0005079156,
-0.022981817,
0.00842521,
-0.039730288,
-0.034545545,
0.01179675,
-0.031370617,
0.0061932937,
-0.015787255,
-0.0393225,
0.03233183,
-0.045759737,
0.006269754,
0.07823721,
0.02745293,
-0.009350017,
-0.060877055,
0.03876907,
0.0393225,
-0.0014846064,
0.00352082,
0.005905657,
-0.018976746,
0.02228275,
-0.0024430924,
-0.017767943,
-0.02292356,
-0.007631478,
0.013173037,
-0.018306809,
0.04610927,
0.021933217,
-0.040749762,
-0.007959166,
0.02816656,
0.0017731534,
0.0016939623,
0.019792324,
0.0665861,
0.0083378265,
0.037050534,
-0.007478557,
-0.0011978799,
-0.013719183,
0.05266302,
-0.008410646,
-0.009087866,
0.026855811,
0.06891632,
-0.04549759,
-0.038827326,
-0.03434165,
0.046750084,
-0.050536692,
-0.027030578,
-0.038972966,
-0.0038303027,
-0.016486323,
0.013413342,
0.007296508,
0.0061823707,
0.0056799166,
-0.0046240347,
-0.016544577,
-0.027700515,
0.03448729,
0.045410205,
-0.03431252,
-0.025297474,
-0.045060672,
0.008738333,
-0.032069683,
-0.026957758,
0.03434165,
-0.026098488,
-0.011905979,
0.025137272,
0.0000614414,
0.058109917,
-0.0128453495,
0.0435169,
0.008010139,
-0.05674091,
-0.07223689,
-0.03329305,
0.02797723,
-0.03157451,
0.021467172,
-0.046575315,
0.026870375,
0.026346074,
0.005050028,
-0.021598248,
-0.08691729,
0.014432814,
-0.034283396,
-0.022326441,
0.0049298764,
0.021263277,
-0.010820969,
0.0049080304,
0.008731051,
-0.019646686,
-0.02070985,
0.047274385,
0.001958843,
-0.02890932,
-0.035506763,
0.0004888005,
-0.06332379,
-0.066353075,
-0.024409078,
-0.0016921419,
-0.019486483,
-0.0142362015,
-0.016209608,
-0.034283396,
-0.035535887,
0.044448987,
-0.008869409,
0.0083451085,
-0.017913584,
-0.006561032,
0.0083451085,
-0.0020771746,
-0.033001773,
0.033759095,
0.026622789,
-0.007624196,
0.045963634,
-0.008599976,
-0.0005215693,
0.016864983,
-0.0115127545,
0.019632122,
-0.023243966,
-0.011163221,
0.008381518,
0.009888881,
-0.038739946,
0.015714437,
-0.0014054152,
0.013959487,
-0.023578936,
0.030147249,
-0.010573383,
0.010369489,
-0.024802303,
-0.016879547,
0.00030197314,
0.028486967,
0.031108467,
-0.016457194,
0.018132042,
-0.029054958,
-0.0053449473,
-0.031924043,
0.0027034217,
0.03483682,
-0.03483682,
0.0361767,
-0.03853605,
0.007121742,
-0.020141859,
-0.0040050694,
0.014134254,
0.051323146,
0.024292566,
-0.0050791563,
-0.0030311092,
-0.044478115,
-0.037079662,
0.010456872,
-0.061284844,
-0.030642422,
0.04284696,
-0.05359511,
-0.007544094,
-0.013733747,
0.0066702613,
0.029375363,
-0.00857813,
-0.032011427,
0.026113052,
-0.023637192,
-0.0019533816,
0.041536212,
-0.059275027,
-0.037079662,
-0.015787255,
0.052517384,
-0.005461458,
-0.054439817,
-0.007966447,
0.052896045,
0.010609793,
-0.0075295307,
-0.023811959,
-0.003917686,
0.02280705,
0.047099616,
-0.014447378,
0.0016420785,
-0.013347804,
0.0046276757,
-0.035972804,
0.033089153,
-0.047915194,
0.033584327,
0.028719988,
0.017185388,
0.02969577,
0.055604927,
0.007478557,
0.0077552707,
0.0025013478,
0.053711623,
0.029972482,
-0.019166078,
-0.016005713,
0.0034480006,
0.023491552,
0.029666642,
0.0173019,
0.035535887,
0.014891576,
-0.008832999,
-0.0018259475,
-0.03640972,
-0.0010331259,
0.037924368,
0.00039868645,
0.046953976,
-0.023549808,
-0.0119642345,
-0.003961378,
0.008527157,
0.02161281,
-0.022049727,
0.009794215,
-0.04220615,
-0.019340845,
0.016588269,
-0.012088028,
0.0037611243,
0.043720793,
-0.012233666,
0.06227519,
-0.016340682,
-0.0048971074,
-0.015539669,
0.042089637,
0.062042166,
0.0040014284,
0.01074815,
0.026011106,
0.034749437,
-0.020535083,
0.040662378,
-0.012699711,
0.03000161,
-0.0037829701,
-0.04281783,
-0.032972645,
0.022457516,
0.034778565,
0.011978799,
-0.00092253136,
-0.00745307,
-0.005902016,
-0.037545703,
0.036846638,
-0.045293692,
-0.0023830163,
0.030322017,
-0.011672957,
-0.061051823,
0.038419537,
0.014483787,
0.0361767,
0.020942872,
0.036380593,
0.032681365,
0.047740426,
0.03539025,
-0.030322017,
0.0099617,
-0.008250443,
-0.01861265,
-0.0073402,
0.030904572,
-0.029462747,
0.002572347,
-0.03486595,
-0.01839419,
-0.0014318123,
-0.0033242076,
-0.020884616,
-0.028501531,
0.0319823,
0.016675653,
-0.06437239,
0.006040373,
0.08184905,
0.035448506,
-0.011891415,
-0.03483682,
0.019005874,
-0.07142131,
-0.03786611,
-0.049313325,
0.024962505,
0.0039031222,
-0.033176538,
-0.021452608,
-0.033409562,
0.017971838,
-0.0061750887,
-0.031428874,
0.015845511,
-0.016340682,
0.025341166,
0.055983588,
0.017622305,
-0.025923721,
-0.008709205,
0.034137756,
0.03472031,
0.014775065,
0.0671104,
0.05164355,
-0.028385019,
-0.029258853,
0.00062260625,
0.0042562964,
-0.035186354,
0.007307431,
0.007445788,
-0.029069522,
-0.024438206,
-0.0723534,
-0.026986886,
0.009779652,
-0.030088995,
-0.01041318,
-0.008847563,
-0.0015173751,
-0.057439975,
-0.06769296,
-0.04313824,
0.012015209,
-0.013224011,
-0.024423642,
0.0024503742,
-0.077130355,
0.2537612,
0.015029933,
0.023345914,
0.012430279,
0.048963793,
0.099500485,
0.032972645,
0.020578776,
0.0251664,
-0.104626976,
-0.0101583125,
-0.027948102,
0.0132968305,
0.041303188,
-0.032564856,
0.03393386,
-0.027700515,
0.00060986285,
0.00041780155,
-0.0424683,
-0.053391214,
-0.0015273879,
0.006943334,
0.053245578,
0.028326763,
-0.0003520365,
0.019311717,
-0.043837305,
-0.0059493487,
-0.04115755,
0.024714919,
0.0034552827,
0.0101583125,
-0.023243966,
-0.012262794,
0.039992437,
0.026491713,
-0.011337987,
-0.016413502,
0.016748471,
0.020200113,
-0.014432814,
0.023899341,
-0.0016648346,
-0.007966447,
0.060993567,
-0.022967253,
0.032011427,
0.036089316,
0.00089795474,
0.06810074,
-0.03224445,
0.0304094,
-0.030438527,
-0.019792324,
0.017680561,
-0.0029801358,
-0.04730351,
-0.03751658,
-0.026506277,
0.013245856,
0.011243322,
-0.028268509,
0.030147249,
-0.055488415,
-0.006378983,
-0.016471758,
0.05595446,
-0.027831592,
0.008330544,
-0.025122708,
-0.0079081915,
0.0047441865,
-0.056187484,
0.01438184,
0.0023047354,
0.023112891,
0.039002094,
0.04124493,
-0.010740868,
-0.004321834,
-0.0029564693,
-0.02187496,
-0.05595446,
0.031894915,
0.017680561,
-0.021904089,
-0.030584166,
0.015699873,
-0.0066593383,
0.043196496,
0.039730288,
-0.011148657,
0.02123415,
0.004704136
] |
In order to let others benefit from it and for simpler initialization, we recommend pushing it to the Hub under your
namespace. To do so, just call push_to_hub on the tool variable:
python
tool.push_to_hub("hf-model-downloads")
You now have your code on the Hub! Let's take a look at the final step, which is to have the agent use it.
Having the agent use the tool
We now have our tool that lives on the Hub which can be instantiated as such (change the user name for your tool):
thon
from transformers import load_tool
tool = load_tool("lysandre/hf-model-downloads") |
[
0.000052188763,
-0.01698297,
-0.03866089,
-0.0021482299,
-0.015345533,
-0.004108082,
-0.007839409,
0.010114431,
0.03367613,
0.051586498,
-0.0029977406,
-0.0023583435,
0.015374515,
-0.015968628,
-0.0063722366,
0.018605916,
0.032690767,
-0.040399764,
-0.045906186,
0.0016446818,
0.017533613,
0.03692202,
-0.036864057,
-0.04993457,
-0.021489544,
-0.040428743,
0.009860846,
-0.0074264267,
0.043674637,
0.045152675,
-0.03860293,
-0.0042058933,
-0.0052021216,
-0.025996117,
-0.011505527,
-0.03671915,
0.020388259,
-0.032835674,
0.011288169,
-0.010549149,
0.0019163804,
-0.0022243054,
0.050079476,
-0.052108157,
-0.038487006,
-0.009628996,
0.008926203,
0.01416455,
0.016070062,
-0.027488647,
-0.009513072,
0.025967136,
-0.019359427,
-0.02730027,
-0.005904915,
-0.028981177,
-0.032748733,
-0.022301016,
-0.013700852,
0.009911563,
0.021228712,
0.005430348,
0.019881088,
-0.03671915,
0.007096766,
0.013679116,
-0.049383927,
-0.03373409,
-0.014526815,
-0.035270095,
-0.060628623,
0.037095908,
-0.010121676,
-0.009759411,
-0.026372872,
0.06178787,
0.04277622,
-0.016301913,
0.00774522,
0.06103436,
0.0034107224,
0.08456708,
0.013345832,
0.019707201,
-0.015997611,
-0.03150254,
0.033531222,
0.013990664,
-0.027879894,
-0.00911458,
-0.047384225,
0.0122517925,
-0.038892742,
0.016780103,
0.042428445,
0.028691366,
-0.012824171,
0.033183448,
-0.027995817,
-0.017881386,
0.019968031,
0.078481026,
0.004459479,
-0.024576038,
-0.022924112,
0.0046261204,
0.064512104,
-0.021156259,
-0.03918255,
-0.038081266,
0.024228266,
-0.0014590211,
0.0031698162,
-0.024749925,
-0.014403645,
0.008955184,
0.017011952,
0.008614655,
-0.008817524,
-0.005629594,
0.008404542,
0.008781297,
0.004013893,
-0.045877203,
-0.03657425,
-0.02853197,
-0.0009717751,
0.007082275,
0.023923961,
-0.04581924,
-0.0031824955,
-0.031879295,
0.02090992,
0.032342993,
-0.012345982,
0.028387064,
-0.012186585,
0.019127578,
0.056194503,
-0.014526815,
0.031937256,
-0.016533762,
-0.0037965344,
0.08984165,
0.017330745,
-0.029126083,
0.0069265016,
0.0147804,
-0.027445175,
0.038313117,
-0.021286676,
0.011396849,
-0.03863191,
-0.0078973705,
0.004999253,
0.01204168,
-0.031821333,
0.010904168,
0.033270393,
0.0035320811,
0.007136615,
-0.008064013,
-0.047123395,
0.042689275,
0.005357895,
0.03173439,
-0.026938004,
0.0065243877,
0.03127069,
0.01820018,
0.022822678,
-0.00056966126,
-0.019707201,
0.023242904,
0.0699026,
-0.003140835,
0.006796086,
0.019794144,
0.025430983,
0.012208321,
-0.006480916,
-0.011266433,
0.058715865,
0.0035121564,
0.012701001,
0.01696848,
0.0071982,
0.016896026,
-0.020721542,
-0.022329997,
0.013266134,
0.020504184,
-0.04037078,
0.025793249,
-0.041877802,
-0.0037077793,
-0.037182853,
0.008158201,
0.010099941,
-0.055093218,
-0.050977893,
0.024807889,
-0.041530028,
0.017301762,
-0.009063863,
0.014186286,
0.013751569,
-0.0011963792,
-0.029763669,
0.027908875,
0.05242695,
0.011527264,
-0.05341231,
-0.0403418,
-0.002506872,
-0.02659023,
0.0022768339,
0.016620705,
-0.03935644,
-0.0047891396,
0.03350224,
0.008556693,
0.0153165525,
0.005937519,
-0.00910009,
-0.06306304,
0.0006031708,
0.0486594,
0.00749888,
0.02361966,
-0.006274425,
0.019533314,
0.026793098,
0.05147057,
0.048253663,
0.023764566,
0.049905587,
0.01378055,
-0.00712937,
0.0061077834,
0.002675325,
0.0034487601,
-0.0065461234,
0.021982223,
0.009201524,
-0.013012549,
0.018055273,
-0.0045319316,
0.000060849154,
0.013237153,
-0.0649758,
0.045674335,
0.006944615,
-0.007343106,
-0.035530925,
-0.03170541,
0.06422229,
0.0036878549,
-0.005647707,
-0.025662834,
-0.01315021,
0.0027912497,
0.009882581,
-0.01549044,
0.022445923,
0.02459053,
0.018663878,
0.017852405,
0.008984165,
-0.04532656,
-0.019562295,
-0.0053760083,
-0.085436516,
-0.01093315,
-0.014715193,
-0.004198648,
0.000037330246,
0.009788393,
0.006346878,
-0.024764417,
0.00652801,
-0.007643786,
-0.06625097,
0.0155484015,
0.034835376,
0.0030738162,
-0.03645832,
-0.02237347,
-0.026909024,
0.02654676,
-0.038023304,
-0.012208321,
0.02682208,
-0.022982074,
0.00424212,
0.027633553,
0.008911712,
-0.047326263,
0.0064628026,
0.0028800045,
-0.060454737,
-0.01943188,
-0.012498133,
0.0031643824,
-0.027590081,
0.017098894,
0.0734383,
-0.044022407,
0.050659098,
0.05677413,
0.001124832,
0.006038953,
0.019968031,
-0.007089521,
-0.0486594,
0.060454737,
0.05016642,
-0.0349513,
-0.01670765,
0.0030575143,
-0.05999104,
-0.00049992534,
-0.027546609,
0.02460502,
-0.06306304,
0.019243503,
-0.027995817,
-0.04155901,
0.01846101,
-0.013389304,
0.026938004,
-0.043152973,
0.010925904,
0.025112191,
-0.016214969,
0.023866,
-0.04599313,
0.03028533,
-0.029415896,
0.04645683,
-0.0042674784,
-0.04457305,
0.052108157,
0.02218509,
0.0027224193,
-0.005854198,
0.02853197,
-0.0580493,
-0.007694503,
0.00063939724,
0.02560487,
0.021982223,
0.0015948705,
0.02335883,
0.042428445,
0.038284134,
0.013251644,
0.0077379746,
-0.013382059,
0.035791755,
0.017736482,
0.0067598596,
-0.0003224156,
0.0046659694,
0.0035755527,
-0.057933375,
0.0153165525,
-0.004104459,
0.03373409,
-0.06201972,
0.005321669,
-0.0032440806,
-0.009911563,
0.027952345,
-0.020388259,
-0.010418734,
0.042399462,
0.052745745,
0.020040484,
-0.02266328,
0.019823126,
0.0038037796,
0.031995222,
0.015823724,
0.0526588,
0.015838213,
-0.012527114,
0.034777414,
-0.00031109483,
-0.005625971,
0.024807889,
-0.012679265,
0.025749777,
-0.03173439,
-0.03561787,
-0.08074156,
0.054745443,
0.039762177,
0.053586196,
0.020620108,
0.006930124,
-0.034545563,
0.0026372871,
0.029357933,
-0.015997611,
0.041935764,
-0.029879594,
0.05631043,
0.009462355,
-0.022025695,
-0.022243055,
-0.038052287,
0.005205744,
0.042254556,
0.026054079,
0.025648342,
-0.059875112,
0.0017126065,
-0.029473858,
0.01045496,
-0.029575292,
-0.028560951,
-0.009679713,
-0.014316702,
0.02237347,
0.006535256,
0.030227369,
-0.04138512,
0.0012978134,
0.04506573,
0.0065497463,
-0.087001495,
-0.011049074,
0.01341104,
-0.072163135,
0.042660292,
0.036226474,
-0.05607858,
0.022344489,
-0.038979683,
-0.0076582762,
0.0099840155,
-0.015026741,
-0.009752166,
0.0069989543,
0.008491485,
0.021475052,
-0.005937519,
-0.03935644,
-0.033531222,
0.008774051,
-0.01576576,
0.004709441,
-0.031038841,
0.02314147,
0.0034234016,
-0.015099194,
0.023474755,
0.014316702,
0.022547357,
-0.005760009,
0.026735136,
0.059353452,
-0.0040102703,
-0.05051419,
0.0488043,
0.019315954,
0.007890126,
0.03570481,
0.020214371,
-0.039327458,
0.030401256,
0.047674038,
-0.032806695,
-0.0036588737,
-0.000993511,
0.022924112,
-0.016780103,
-0.0028709478,
0.023300868,
-0.06474395,
0.028850762,
0.027619062,
0.025199134,
0.014867344,
-0.043848522,
-0.005625971,
0.0057129147,
-0.03176337,
0.039733194,
-0.022590827,
-0.029126083,
-0.0035357038,
-0.02582223,
-0.031212728,
-0.035472963,
-0.044225276,
0.014534061,
0.024576038,
0.03222707,
0.013758814,
-0.043500748,
-0.034342695,
0.075582914,
-0.0032803072,
-0.015432477,
0.0030412124,
0.020040484,
0.021214223,
0.021938752,
-0.021373618,
0.007556842,
-0.03298058,
0.00034007602,
0.0013476248,
0.00028052874,
0.013092247,
-0.0031661936,
0.004763781,
0.04228354,
-0.023040036,
-0.083233945,
-0.024735436,
0.022272035,
0.023474755,
-0.02212713,
0.036023606,
-0.040283836,
-0.04703645,
-0.055209145,
0.022735734,
-0.039588287,
-0.005169518,
-0.03422677,
-0.09940544,
-0.017098894,
0.03518315,
0.027111892,
-0.04437018,
0.007535106,
-0.010041978,
0.011556244,
-0.026851062,
-0.0075713326,
-0.03271975,
0.014700702,
0.0041298177,
0.028111743,
-0.00063939724,
-0.030720048,
-0.057005975,
0.031328652,
0.0146717215,
0.003519402,
-0.006082425,
0.01820018,
-0.025662834,
0.03254586,
-0.025271587,
0.031386614,
0.004752913,
0.035501942,
-0.00639035,
0.003465062,
-0.0042783464,
-0.034139827,
-0.06074455,
-0.0061476324,
0.05975919,
-0.027445175,
0.031067822,
0.000835473,
0.040399764,
-0.0055824993,
0.012940096,
-0.024025396,
-0.007607559,
-0.068279654,
-0.035791755,
0.018055273,
-0.037791457,
-0.0029307215,
0.005013744,
-0.03561787,
0.035501942,
-0.03298058,
0.025402002,
0.086479835,
0.051499553,
0.0018729087,
-0.06248342,
0.01918554,
0.026343891,
-0.018547954,
-0.031415597,
-0.017156858,
-0.019736182,
0.0014590211,
0.0075206156,
-0.029676726,
-0.05413684,
0.016142515,
0.015244099,
-0.0013077756,
0.0488043,
-0.016388856,
-0.06735226,
0.007353974,
0.034835376,
0.002048607,
0.04454407,
0.03176337,
0.043645654,
0.004495705,
-0.008491485,
-0.02015641,
-0.0383421,
-0.02114177,
0.046311922,
0.0012063415,
-0.0043073273,
0.042370483,
0.039153572,
0.0017361537,
-0.016881537,
-0.00025856643,
0.006223708,
-0.054977294,
-0.03124171,
-0.030343292,
-0.027474156,
-0.019881088,
0.01367187,
0.013331342,
-0.028749328,
0.004495705,
-0.021489544,
0.00036951003,
-0.05045623,
0.017026441,
-0.012143114,
-0.022054676,
-0.021098297,
-0.0806836,
-0.031038841,
-0.009926054,
0.014867344,
0.062135644,
-0.010940394,
-0.011208471,
0.028647894,
0.008056767,
0.039762177,
-0.0016754743,
0.018649388,
-0.018591426,
-0.048340604,
-0.045123693,
-0.024561549,
0.029242009,
0.000806039,
-0.017069913,
-0.017837916,
0.023648642,
0.047442187,
0.034806393,
-0.021822827,
-0.05147057,
-0.0127154915,
-0.02777846,
-0.0027459667,
-0.016171496,
-0.005430348,
-0.015939647,
-0.006317897,
0.009085599,
-0.021359129,
-0.0013023417,
0.037124887,
-0.024749925,
-0.015099194,
-0.04770302,
0.018605916,
-0.020736033,
-0.06712041,
-0.012135868,
0.030806992,
-0.012693756,
0.011324395,
-0.025546908,
-0.024242755,
-0.033850014,
0.061382134,
-0.036864057,
-0.007270653,
-0.021243203,
0.026662683,
0.006723633,
-0.008172692,
-0.01769301,
0.04677562,
0.043761577,
-0.02682208,
0.03892172,
-0.003901591,
-0.008404542,
-0.0060498207,
0.051789366,
0.034545563,
-0.024445623,
-0.011592471,
0.02730027,
-0.016301913,
-0.025112191,
0.0069989543,
-0.0078104273,
0.000030509482,
0.015244099,
0.023547206,
-0.014352928,
0.04451509,
0.04031282,
0.02240245,
-0.015374515,
0.011447566,
0.0045427997,
-0.015664326,
0.016185988,
-0.011367867,
0.038052287,
-0.012273529,
0.008933448,
0.008056767,
-0.035328057,
0.035588887,
-0.03170541,
0.0003355477,
0.0007897371,
-0.008042277,
-0.01204168,
0.035270095,
0.039936062,
-0.009585525,
-0.014599268,
-0.011592471,
-0.050543174,
0.0064628026,
-0.08572632,
-0.02512668,
0.012027189,
-0.059411414,
-0.001253436,
-0.013483493,
-0.012831417,
-0.014939797,
0.032082163,
-0.034835376,
0.02461951,
0.018721841,
0.015968628,
0.03590768,
-0.030430237,
-0.0119402455,
0.017446669,
0.030951899,
-0.0017769084,
-0.05535405,
-0.00187472,
0.043500748,
0.0383421,
-0.011701151,
-0.055035256,
-0.02779295,
0.020533165,
0.028227666,
0.0048797056,
-0.023271887,
-0.0137443235,
0.020547654,
-0.019286973,
-0.0030357784,
-0.06196176,
-0.010527412,
0.023228414,
0.024547057,
0.034313716,
0.029502839,
0.0051079327,
0.0009563789,
0.013983418,
0.040428743,
0.017591575,
-0.013650135,
-0.030372275,
-0.006234576,
0.037994325,
0.05975919,
0.02361966,
0.0132299075,
0.015360024,
0.03222707,
0.0009998507,
0.0010922281,
0.030314311,
0.02929997,
0.010353526,
0.02337332,
-0.042921126,
-0.031038841,
-0.016388856,
-0.015026741,
0.019721692,
0.00633601,
0.010310054,
-0.0044522337,
0.0038581192,
-0.0040102703,
-0.014229759,
0.011679415,
0.037762474,
-0.018663878,
0.034835376,
-0.011186735,
0.01425874,
-0.007890126,
0.04431222,
0.027155364,
0.013497983,
0.017316254,
-0.00418778,
0.046109054,
-0.032111146,
0.011520018,
-0.024996266,
-0.006940992,
-0.026909024,
-0.037443683,
-0.038747836,
0.025184644,
0.010614356,
0.0072344267,
0.031908277,
0.009027637,
-0.048021812,
-0.049615778,
-0.005923028,
-0.010273827,
0.023242904,
0.031328652,
0.006140387,
-0.012643039,
0.022996565,
0.016649686,
0.025619362,
0.003974044,
0.06619301,
0.028676875,
0.04425426,
0.04309501,
-0.039472364,
-0.02143158,
-0.0017814367,
-0.028894234,
0.0014336626,
0.028459517,
0.00005513216,
0.014352928,
-0.046196,
-0.009179788,
0.0093391845,
0.014092098,
-0.030488199,
-0.021576487,
-0.00012633982,
-0.013353078,
-0.025300568,
-0.012360472,
0.07958231,
0.0009020392,
0.007241672,
-0.0067924634,
0.035241112,
-0.03512519,
-0.0054267254,
-0.06248342,
0.0064519346,
0.0062599345,
-0.03929848,
-0.007343106,
-0.0437326,
-0.012686511,
0.002994118,
-0.015997611,
-0.010425978,
-0.003419779,
0.015026741,
0.038023304,
-0.015273081,
-0.018359575,
-0.01550493,
0.064338215,
0.04506573,
0.050398268,
0.06196176,
0.043442786,
-0.028198685,
-0.05784643,
0.023098,
-0.0076220497,
-0.02730027,
0.03176337,
0.021460563,
-0.020736033,
-0.009795638,
-0.05068808,
-0.089377955,
0.022576338,
0.0024362302,
-0.020562146,
-0.027401704,
-0.022706753,
-0.0703663,
-0.0017307197,
-0.000816907,
0.041501045,
-0.026387362,
-0.0320242,
-0.035472963,
-0.08126322,
0.25062922,
0.051035855,
-0.03715387,
0.01327338,
0.032169107,
0.08549447,
-0.0007969824,
0.013092247,
0.0026626457,
-0.03228503,
0.008969675,
-0.033531222,
-0.014186286,
0.04842755,
-0.020938901,
0.06028085,
-0.056455333,
0.0060135946,
0.004260233,
-0.047181357,
-0.027619062,
0.07453959,
0.013374814,
0.05384703,
0.0047384226,
0.032574844,
0.037878398,
-0.022315508,
0.040428743,
-0.0044920826,
0.030401256,
-0.01696848,
-0.009810128,
-0.045732297,
0.0010043789,
0.0012172095,
0.02854646,
-0.054513596,
0.014954288,
0.021750374,
0.023416791,
-0.040023006,
0.0068214447,
0.0041769124,
-0.041269198,
0.04335584,
-0.050340306,
0.043413803,
0.036342397,
-0.0028528348,
0.038776815,
-0.027024949,
0.0019109464,
-0.020721542,
-0.0842193,
-0.0120706605,
0.010723036,
-0.049876608,
-0.021011354,
-0.023692112,
-0.00658235,
0.0022170602,
-0.027039438,
0.015084703,
-0.037182853,
0.036284436,
-0.009462355,
0.02190977,
-0.0073793326,
0.0035683075,
0.036023606,
-0.021214223,
-0.04900717,
-0.066366896,
-0.013715343,
0.005415858,
-0.024706455,
0.0283291,
0.0081799375,
-0.03347326,
0.022996565,
-0.021518525,
-0.043181956,
-0.036023606,
0.014773156,
0.04164595,
-0.022924112,
-0.0127807,
0.029140575,
0.008469749,
0.041037347,
0.042051688,
0.002278645,
0.02015641,
0.033878997
] | def __call__(self, task: str):
model = next(iter(list_models(filter=task, sort="downloads", direction=-1)))
return model.id
We now have our tool handy. Save it in a file and import it from your main script. Let's name this file
model_downloads.py, so the resulting import code looks like this:
thon
from model_downloads import HFModelDownloadsTool
tool = HFModelDownloadsTool() |
[
0.052864928,
-0.013803955,
-0.03255081,
-0.0072372807,
0.012598369,
-0.028632658,
-0.006193696,
0.022815706,
0.002369729,
0.0533773,
-0.012613439,
-0.024729574,
0.030983549,
-0.010511199,
0.027924376,
-0.011106458,
0.012816882,
-0.038940415,
-0.010202268,
-0.008107563,
-0.015642473,
-0.0014269236,
-0.07076787,
-0.062147938,
-0.03773483,
-0.0037241292,
0.0016115288,
-0.024036363,
0.07522854,
0.0039784326,
-0.040296696,
0.01583838,
-0.006359464,
-0.023644548,
-0.013630652,
-0.047228813,
0.004125363,
0.02005793,
-0.055698052,
-0.05774755,
0.0318576,
-0.021474494,
0.040326837,
-0.04867552,
-0.07342016,
0.043732617,
-0.009486452,
-0.0069961636,
0.02170054,
-0.05027292,
-0.010232408,
0.038156785,
-0.0011085736,
0.023900734,
-0.026974978,
-0.028060004,
-0.024548735,
-0.020299047,
-0.013457349,
0.022499241,
0.003484896,
0.061967097,
0.007553747,
-0.023297941,
-0.010360501,
0.04361206,
-0.039543208,
-0.056752943,
-0.026583161,
-0.010081709,
-0.023252731,
0.030425966,
-0.01922909,
-0.016501453,
-0.012990184,
0.01837011,
0.015657542,
-0.020796351,
0.004852482,
0.056572102,
0.030636944,
0.06630721,
0.017405642,
0.007256118,
0.013163487,
-0.0027408234,
0.045330018,
0.02521181,
-0.0038013621,
-0.030320477,
-0.02332808,
0.011927762,
-0.0008076482,
0.032189135,
0.025317296,
0.038578738,
-0.0032814532,
0.035323657,
0.021369005,
0.017948154,
0.030636944,
0.067331955,
0.0047093187,
-0.0034133142,
-0.040025443,
0.01585345,
0.021549841,
-0.014986936,
0.018822204,
-0.022137566,
0.052201856,
-0.013238837,
0.010601618,
-0.036047008,
-0.017887875,
0.03737315,
0.001962844,
-0.010119384,
-0.08469239,
-0.030787641,
0.00017094826,
-0.013690931,
-0.022197844,
-0.056451544,
0.0010530036,
-0.013050464,
0.025302228,
0.020434676,
-0.015687682,
-0.02255952,
-0.020705933,
-0.028225772,
0.040296696,
0.070828155,
0.009283009,
0.007659236,
-0.017239874,
0.00084296806,
0.052382693,
-0.04768091,
0.0015587845,
-0.015597263,
-0.0052028554,
0.07522854,
0.0076969103,
-0.0091473805,
0.0032456624,
-0.011543482,
-0.04077893,
0.03671008,
-0.02165533,
0.036318265,
-0.0066307206,
-0.0013346209,
-0.002993243,
-0.017465921,
-0.04433541,
0.012779207,
0.017902946,
0.00046386788,
0.015017075,
0.025317296,
-0.053708836,
0.06570441,
-0.0058508576,
0.037011478,
-0.019470207,
-0.011950367,
0.030712293,
-0.016290475,
-0.022062216,
0.006642023,
-0.029612197,
0.0022491706,
0.034931842,
0.025362507,
0.030561594,
0.025377577,
-0.0065063946,
0.009358358,
-0.018942764,
0.00039440545,
0.013736141,
0.011287295,
-0.01419577,
-0.02005793,
0.040748794,
-0.010978363,
0.0036111055,
-0.032882348,
0.012183949,
0.037282735,
-0.059616208,
0.03583603,
-0.0031514762,
0.0069961636,
-0.017164525,
-0.009878267,
0.041833818,
-0.059284672,
-0.014504702,
0.041592702,
-0.006284115,
0.0385486,
-0.012696323,
-0.015672613,
0.0002585416,
0.018490668,
-0.039935023,
0.0052555995,
0.04599309,
0.040748794,
-0.055547357,
-0.045330018,
0.01048106,
-0.0007125199,
-0.0055193217,
0.027999725,
-0.010782456,
0.023071894,
0.025874881,
0.0062313704,
0.04171326,
0.030456105,
-0.015431495,
0.00385599,
-0.008100028,
0.034540027,
-0.0014288073,
0.010179663,
-0.009298079,
0.016998757,
0.027502421,
0.057325594,
0.026296835,
0.03182746,
0.030531455,
0.016380895,
-0.01005157,
-0.004554853,
0.0037862922,
0.042105075,
0.013517628,
0.056451544,
0.0020381932,
-0.024006223,
0.032219276,
-0.0001514046,
-0.024925482,
0.022966405,
-0.06950201,
0.042707868,
-0.00882338,
0.031917877,
-0.06962257,
-0.035805892,
0.005135041,
0.040507674,
-0.021082677,
-0.046505462,
0.0034547562,
0.009923477,
-0.0019571928,
-0.0014674237,
0.033002906,
0.03851846,
-0.006404673,
-0.0031514762,
-0.011415388,
-0.07263653,
-0.036047008,
-0.019003043,
-0.054582886,
-0.0052706692,
0.005398763,
0.008537053,
-0.0069208145,
-0.030230058,
-0.015597263,
-0.024835063,
0.013005255,
0.016169917,
-0.007244816,
0.008122633,
0.015521915,
0.022303334,
-0.041532423,
-0.0159288,
-0.031917877,
0.03848832,
-0.012636044,
-0.020374397,
0.0060166256,
-0.021112818,
0.011814739,
0.025874881,
-0.0076969103,
-0.00481104,
-0.009659754,
-0.033093326,
-0.030983549,
-0.01597401,
0.01127976,
0.0012762253,
-0.012214089,
-0.0032965231,
0.012771673,
-0.033123463,
0.020751141,
0.052231994,
-0.018505739,
0.006163556,
-0.030471176,
0.019937372,
-0.038277343,
0.05425135,
0.024804924,
-0.011731855,
-0.051327806,
-0.03342486,
-0.018053643,
-0.0024224736,
-0.017511131,
-0.010639293,
-0.03342486,
0.026673581,
-0.031164387,
-0.07800139,
0.012146275,
-0.027261304,
-0.00024441365,
-0.038729437,
-0.017480992,
0.031254806,
0.018581089,
0.01675764,
-0.027170885,
0.004498341,
-0.038880136,
0.035685334,
0.003206104,
-0.025543345,
0.026070789,
0.010194733,
-0.0149341915,
0.033183742,
0.054010235,
-0.05750643,
0.0283614,
-0.0073427698,
0.030365687,
-0.013201162,
0.022423891,
-0.00004423816,
0.041291308,
0.030621873,
-0.053075906,
-0.003884246,
0.028240843,
-0.02094705,
0.02677907,
0.057446152,
-0.008529518,
-0.017511131,
-0.011445528,
-0.011897623,
0.038126644,
0.018053643,
0.052834786,
-0.04105019,
0.013645722,
0.026176278,
-0.03767455,
-0.0029065914,
-0.018098854,
-0.04505876,
0.017134385,
0.03933223,
0.043973733,
-0.025362507,
-0.007553747,
0.008725425,
0.0003925217,
0.034148213,
0.0176769,
-0.0042760614,
-0.024458317,
0.02415692,
0.015491774,
-0.006611883,
0.02998894,
0.008732961,
-0.0066307206,
-0.0046678768,
-0.032008298,
-0.026613303,
0.011988042,
0.030983549,
0.05509526,
0.014979401,
0.052352555,
0.003835269,
-0.004370248,
0.014542376,
-0.002045728,
0.040537816,
-0.039724045,
0.042316053,
-0.008439099,
-0.027818887,
-0.021399144,
-0.025452925,
-0.0031495923,
0.023674687,
0.0042835963,
0.009787848,
-0.054884285,
-0.023267802,
-0.032309692,
0.006973559,
-0.05509526,
-0.019560626,
-0.03164662,
0.004976808,
0.06883894,
-0.035504494,
0.009365893,
-0.05434177,
-0.0019684953,
0.012801812,
-0.027216094,
-0.040025443,
0.00037368442,
-0.011227015,
-0.04092963,
0.033786535,
0.02919024,
-0.0024431946,
0.00072806067,
-0.005647415,
-0.024171991,
0.007670538,
-0.011844878,
0.0056248102,
0.019545557,
0.014534841,
0.012131205,
0.019409928,
-0.0023245197,
-0.053799257,
0.023915803,
-0.01298265,
-0.018204343,
-0.019364718,
0.041381724,
-0.015107494,
-0.017797457,
0.016923407,
0.040507674,
0.03686078,
-0.013110743,
0.052352555,
0.038759578,
0.0076893754,
-0.05331702,
0.00922273,
0.03773483,
0.022800637,
0.0176769,
0.013178557,
-0.0032739183,
0.037132036,
0.019515416,
-0.05265395,
0.013969723,
-0.027818887,
0.043220244,
0.02346371,
0.024367899,
0.021610122,
-0.032219276,
0.02498576,
0.027427072,
0.008205517,
-0.029476568,
-0.060701232,
0.014346468,
0.013389535,
-0.007889051,
0.013306651,
0.0002028539,
0.0020702165,
0.026402324,
-0.027969586,
-0.030546524,
-0.037101895,
-0.0070602107,
0.03903083,
0.058832575,
0.023102034,
0.016365824,
-0.033665977,
-0.03246039,
0.013374465,
-0.037282735,
0.014030002,
-0.029793033,
0.012515485,
0.007941795,
0.01255316,
-0.02748735,
0.020645654,
-0.021384073,
0.013909443,
-0.0011255272,
0.012636044,
-0.019786673,
-0.029838243,
-0.016260335,
0.06443855,
-0.033846814,
-0.07993032,
-0.008966543,
0.026974978,
-0.014037537,
0.020253837,
0.014775958,
-0.019681184,
-0.030305408,
-0.02840661,
0.019455137,
-0.04680686,
-0.03176718,
-0.008959007,
-0.0683567,
-0.010714642,
0.056240566,
0.018792065,
-0.016576802,
-0.0043175034,
-0.036257986,
0.012455206,
-0.03354542,
-0.030636944,
-0.01126469,
0.0044493643,
-0.040537816,
0.010609153,
-0.016561732,
-0.020525094,
-0.02340343,
-0.013773815,
0.036197707,
-0.009320684,
-0.007444491,
0.008002074,
-0.0041592703,
0.005142576,
-0.020073,
0.038819857,
-0.003808897,
0.012357252,
-0.015958939,
0.048072726,
-0.0039143856,
-0.008725425,
-0.048072726,
-0.016245266,
0.033123463,
-0.027818887,
-0.0062652775,
-0.011098922,
0.02423227,
0.03438933,
0.046264347,
-0.01666722,
-0.004147968,
-0.069562286,
-0.049007054,
0.03851846,
-0.026462603,
-0.020585373,
-0.0056248102,
-0.036318265,
0.040146,
-0.057777688,
0.012251764,
0.068597816,
-0.0055833682,
0.019455137,
-0.05361842,
0.004863784,
0.028783355,
0.017782386,
-0.019003043,
0.013999863,
-0.03417835,
-0.009659754,
-0.049609847,
-0.039573345,
-0.018897554,
0.05515554,
0.03089313,
-0.05343758,
0.04909747,
-0.0041140607,
-0.052081298,
-0.01505475,
0.03182746,
-0.005952579,
0.009870732,
0.0027483583,
0.04774119,
0.03246039,
-0.010179663,
0.0014890865,
-0.017782386,
-0.012794277,
0.05256353,
-0.019831883,
-0.038940415,
0.022619799,
0.052141577,
-0.05431163,
-0.04114061,
-0.0078061665,
0.015243122,
-0.044365548,
-0.028225772,
0.012033251,
-0.014429352,
-0.035745613,
0.017902946,
0.051357947,
-0.007222211,
-0.010028965,
-0.014135491,
0.008740496,
-0.025317296,
0.0026937302,
0.025287157,
-0.016878199,
-0.02165533,
-0.04520946,
-0.0046415045,
0.0031119178,
0.010993433,
0.043792896,
0.00791919,
0.00729756,
0.020329187,
0.013803955,
0.043702476,
-0.026613303,
0.020796351,
0.006559139,
-0.05699406,
-0.055788472,
-0.04605337,
0.029808104,
0.00543267,
-0.008687751,
-0.045390297,
0.0074331886,
0.005157646,
0.01843039,
-0.011814739,
-0.07950837,
0.007693143,
-0.03426877,
-0.00034378027,
-0.012884696,
0.01588359,
-0.027698329,
0.0038107806,
0.0021248446,
-0.014316329,
-0.00058442645,
0.015702752,
-0.00013916037,
-0.022665009,
-0.04011586,
0.006412208,
-0.024714503,
-0.029777965,
0.033846814,
-0.009531661,
0.01662201,
0.010511199,
-0.0126661835,
-0.023780176,
-0.03252067,
0.036378544,
-0.04584239,
0.006163556,
-0.012048321,
-0.014956796,
0.010744781,
-0.009802918,
-0.04927831,
0.025573485,
0.036619663,
-0.03236997,
0.036167566,
0.011618831,
-0.034148213,
0.011106458,
-0.001416563,
0.040628236,
-0.0018997391,
-0.010179663,
0.044606667,
-0.0025543345,
-0.025287157,
-0.01585345,
-0.029386148,
0.0033266628,
0.007663003,
0.038880136,
-0.02245403,
0.019063322,
-0.008499378,
0.00042572242,
0.013042929,
-0.005300809,
0.0131032085,
-0.02753256,
0.011980507,
-0.04753021,
-0.005511787,
-0.035504494,
0.012229159,
0.058018807,
-0.017767318,
0.01207846,
-0.0026824279,
-0.025588553,
-0.029551916,
0.0049805753,
0.0056624846,
0.044847783,
0.013969723,
0.033274163,
0.00963715,
0.02506111,
-0.046686303,
0.028949123,
-0.045812253,
-0.05108669,
0.019862022,
0.0029875918,
0.013668327,
-0.020600444,
0.03942265,
0.01594387,
0.03441947,
-0.0041215955,
0.040477537,
0.03006429,
0.0183249,
0.06407687,
-0.025543345,
-0.027698329,
-0.020012721,
0.026025578,
-0.0022303334,
-0.04750007,
-0.021399144,
0.03601687,
0.040477537,
-0.021534773,
-0.020736072,
0.010782456,
0.03447975,
0.05274437,
-0.05780783,
0.015567124,
-0.04997152,
0.023448639,
-0.043642197,
0.036408685,
-0.006732442,
0.04433541,
0.013977258,
0.0005938451,
0.027999725,
0.03351528,
0.0015747962,
0.003407663,
0.04517932,
0.03194802,
0.041592702,
-0.0044418294,
-0.000767148,
-0.016139777,
0.020208629,
0.022288263,
0.04035698,
0.012801812,
0.018490668,
0.041170746,
-0.017797457,
-0.024804924,
0.017270014,
0.028120283,
-0.0037486176,
0.021610122,
-0.024970692,
-0.0032437786,
-0.02592009,
0.010420781,
-0.011875018,
-0.0060731373,
-0.0040123393,
-0.00794933,
-0.051357947,
0.033002906,
-0.0026993814,
-0.038789716,
0.03188774,
-0.00883845,
0.03441947,
-0.023810316,
0.014806098,
0.021158027,
0.0026146136,
0.037855387,
0.0111667365,
0.033696115,
-0.0008100028,
0.01674257,
0.014647865,
0.007286258,
-0.06871838,
-0.008130168,
-0.0007360665,
-0.033153605,
-0.017089175,
0.04578211,
0.03586617,
-0.017978296,
0.023659617,
-0.013788885,
-0.019726394,
-0.05590903,
-0.0067927213,
-0.058350343,
0.0028651494,
0.018566018,
-0.001347807,
-0.045299876,
0.017480992,
-0.006366999,
0.036408685,
0.038880136,
0.027306514,
0.03173704,
0.064317994,
0.04587253,
-0.039603487,
0.0028594984,
-0.0023000313,
-0.019409928,
-0.007843841,
-0.004905226,
-0.021263516,
0.02590502,
-0.051177107,
-0.032942627,
0.03158634,
0.03447975,
-0.015582194,
-0.022966405,
-0.0027634283,
0.028798426,
-0.045691695,
0.0046904813,
0.06552358,
0.00043726023,
-0.03004922,
-0.018144064,
0.027833957,
-0.053769115,
-0.021022398,
-0.056240566,
-0.00071440364,
0.008612402,
-0.044124432,
-0.0033963607,
-0.035022262,
-0.008258261,
-0.029627265,
-0.00543267,
0.019801743,
0.037704688,
0.029401219,
0.021971798,
0.022001937,
-0.03830748,
0.0065553715,
0.035172958,
0.049609847,
0.011814739,
0.08354708,
0.09548238,
-0.0028651494,
-0.048735797,
0.008024679,
0.025663903,
-0.028843636,
0.02831619,
0.0041027586,
-0.0019873325,
-0.031345226,
-0.046415046,
-0.04186396,
0.068296425,
-0.002350892,
-0.06437827,
-0.034720864,
-0.0009366835,
-0.075771056,
-0.044546388,
-0.019319508,
0.01586852,
-0.024970692,
0.0014702493,
-0.013901909,
-0.0820401,
0.27222124,
0.0485851,
0.004253457,
0.050483897,
0.03903083,
0.08228122,
0.035625055,
0.003206104,
0.008770635,
-0.117785715,
0.009885802,
-0.061243746,
0.022544451,
0.044606667,
-0.0020438442,
0.02423227,
-0.02677907,
-0.014821168,
-0.0015983428,
-0.035534635,
-0.028994333,
0.0010501781,
-0.0093357535,
0.08469239,
0.0008236598,
0.014512236,
0.016908338,
-0.036137428,
-0.0144142825,
-0.05521582,
0.02004286,
-0.0032889883,
0.027743539,
-0.026206417,
0.015476705,
0.040417258,
0.013216232,
-0.047861747,
0.007015001,
-0.00055193214,
0.02429255,
0.0059412764,
-0.0034151978,
-0.021414213,
-0.0050898315,
0.042195495,
-0.011822274,
-0.007527375,
-0.0041215955,
-0.058832575,
0.04927831,
-0.06799503,
0.0037806411,
0.008069889,
-0.04680686,
-0.017209735,
-0.024021292,
-0.04337094,
0.004664109,
0.00039982115,
0.029099822,
0.002861382,
-0.047831606,
0.013095673,
-0.054914422,
0.023704827,
0.0005816009,
0.034720864,
-0.01745085,
-0.040658373,
0.03081778,
-0.00058018806,
-0.0052706692,
-0.037071757,
0.014866377,
0.0044757365,
0.042135216,
0.039814465,
0.027833957,
-0.035625055,
-0.0015314705,
0.0024808692,
-0.034781143,
-0.01500954,
0.025995439,
0.017993364,
-0.04927831,
-0.008160307,
-0.022996545,
0.030079361,
-0.0013666443,
0.024036363,
-0.03432905,
0.009614545,
0.0010756084
] |
The agent automatically mapped our prompt "Upscale the image" to the just added upscaler tool purely based on the description and name of the upscaler tool
and was able to correctly run it.
Next, let's have a look at how you can create a new custom tool.
Adding new tools
In this section, we show how to create a new tool that can be added to the agent.
Creating a new tool
We'll first start by creating a tool. We'll add the not-so-useful yet fun task of fetching the model on the Hugging Face
Hub with the most downloads for a given task.
We can do that with the following code:
thon
from huggingface_hub import list_models
task = "text-classification"
model = next(iter(list_models(filter=task, sort="downloads", direction=-1)))
print(model.id) |
[
0.040276475,
0.0068309987,
-0.026931494,
0.031460334,
-0.018356893,
-0.01723978,
0.010703156,
0.021829003,
0.018281413,
0.021511985,
-0.018296508,
-0.028848704,
0.038585708,
-0.032577448,
0.036774173,
-0.014620601,
0.01665103,
-0.037196863,
-0.03689494,
-0.025769094,
0.011571183,
0.0070687626,
-0.07819795,
-0.06107894,
-0.033664368,
0.0033079395,
-0.00036065598,
-0.021904483,
0.07312565,
0.036593016,
-0.013782767,
0.0036966647,
-0.014688534,
-0.05721433,
0.009035033,
-0.018930547,
0.02172333,
-0.0068159024,
-0.027625917,
-0.07777526,
0.020319391,
-0.018054971,
0.03139995,
-0.08097564,
-0.054587606,
-0.00030970652,
0.0017558686,
-0.0043741036,
0.032184947,
-0.03891782,
-0.038072437,
0.0042344644,
0.03849513,
0.02780707,
-0.03127918,
-0.048458576,
-0.008016045,
-0.017586991,
-0.032245334,
-0.0011812721,
0.03260764,
0.030826297,
-0.0032456678,
-0.03209437,
-0.0056535006,
0.049515303,
-0.026735246,
-0.0009680393,
-0.0265239,
-0.0028626036,
-0.020153333,
0.031218795,
-0.023957558,
-0.034298405,
-0.012537336,
-0.01119378,
-0.0072876564,
-0.043748584,
0.02765611,
0.044352427,
0.007766959,
0.05854279,
0.013835602,
0.018809777,
-0.0074159736,
-0.024289673,
0.028878896,
-0.014371515,
-0.029346876,
-0.02819957,
-0.035506096,
0.030358316,
-0.023323521,
0.05627837,
0.033271868,
0.04166532,
-0.0069328975,
0.022523426,
-0.021345926,
0.035989173,
0.029044954,
0.08115679,
-0.051538188,
-0.0039929263,
-0.020998716,
-0.00004337189,
0.021708235,
-0.013782767,
-0.0064611435,
-0.010167243,
0.03342283,
-0.015148966,
0.021044005,
-0.025512459,
-0.021013813,
0.035777826,
0.010476714,
0.024878422,
-0.05802952,
-0.016952954,
0.0085217655,
-0.015896225,
-0.017753048,
-0.044171274,
0.017375644,
-0.0020096723,
0.028018417,
0.011344741,
0.002781462,
-0.03888763,
0.0077292183,
-0.027882552,
0.055765104,
0.059267405,
-0.00085293135,
0.038283784,
-0.0077745067,
-0.013337431,
0.065396436,
-0.02972428,
0.004993045,
-0.02199506,
-0.009608687,
0.096252926,
0.013941276,
0.0044835503,
-0.014907428,
-0.046647042,
-0.027625917,
0.034932442,
-0.01723978,
0.028214667,
-0.0045288387,
0.032456677,
-0.038585708,
-0.0022738546,
-0.04755281,
0.007948113,
0.010129503,
-0.0074159736,
0.044171274,
0.0083104195,
-0.06726836,
0.058723945,
-0.018492758,
0.031128218,
-0.005487443,
-0.0027493825,
0.032818984,
-0.0053176116,
-0.011918394,
0.040276475,
0.009352053,
-0.0009680393,
0.031641487,
0.008846332,
0.034539945,
-0.0055176355,
-0.0009576607,
-0.007819795,
-0.0065781386,
-0.008763303,
-0.00978984,
0.010620127,
-0.008023593,
-0.0030513052,
0.03541552,
-0.013631805,
-0.017179396,
0.0043627815,
0.011276809,
0.040819936,
-0.083753325,
0.021768618,
-0.01466589,
0.020409968,
-0.019911794,
0.019715546,
0.0129902195,
-0.05253453,
-0.032456677,
0.060626056,
-0.006038452,
0.026659764,
-0.04193705,
-0.00314943,
0.0139714675,
0.044080697,
-0.025965342,
0.01509613,
0.0589051,
0.031098027,
-0.058814522,
-0.027339092,
0.02718813,
-0.0038872533,
-0.015428244,
0.043205123,
-0.010695607,
0.012356182,
0.020938331,
0.0064951098,
0.044292044,
0.04996819,
0.011299453,
-0.02098362,
-0.02410852,
0.015609398,
-0.0018096486,
0.0061101583,
0.01782853,
0.02484823,
0.055976447,
0.05667087,
0.0098124845,
0.016152859,
0.012446759,
0.00059346657,
-0.004657156,
-0.015254639,
-0.015941514,
0.004868502,
0.019489104,
0.07946602,
-0.027550437,
-0.011276809,
0.0101596955,
0.0000036708361,
-0.0284713,
0.016424589,
-0.0487605,
0.054678183,
0.009533206,
0.029860144,
-0.08061333,
-0.019247565,
0.035898596,
0.033060525,
-0.03623071,
-0.03798186,
-0.01263546,
0.04531858,
-0.0032928432,
-0.0051892945,
0.021421408,
0.023866981,
-0.016016994,
0.0057365294,
-0.041091666,
-0.066000275,
-0.02016843,
-0.020228814,
-0.05289684,
0.0092161875,
-0.029573318,
-0.026750341,
-0.015926417,
-0.0138959875,
-0.021466697,
-0.014914976,
-0.022780059,
-0.00858215,
-0.019081507,
0.014552669,
0.013654449,
0.011759885,
-0.039340515,
0.003924994,
-0.030947065,
0.018281413,
-0.005955423,
-0.042993777,
-0.0063328263,
-0.034570135,
0.044050507,
0.031581104,
-0.014446996,
-0.027354186,
0.002564455,
-0.014296034,
-0.042269163,
-0.0067064557,
-0.020742081,
0.018311605,
-0.04142378,
-0.0021455374,
0.000145772,
-0.041091666,
0.04453358,
0.08163987,
-0.007804699,
0.01486214,
-0.010137051,
0.004196724,
-0.028607165,
0.02881851,
0.018356893,
0.010823925,
-0.040276475,
0.0067102294,
-0.023308424,
0.0009963446,
-0.03795167,
-0.01283171,
-0.03767994,
0.031852834,
-0.019398527,
-0.070046045,
-0.0034777708,
-0.04302397,
0.022085637,
-0.023866981,
-0.023097077,
0.04728108,
0.020138238,
0.022327175,
-0.05972029,
0.016394397,
-0.009269023,
0.03713648,
0.010876762,
-0.036653403,
0.04785473,
0.044141084,
-0.024636883,
-0.018809777,
0.044443004,
-0.042118203,
0.015941514,
-0.0005104379,
0.019156989,
-0.011827817,
-0.003373985,
0.007880179,
0.033392638,
0.030675335,
-0.02438025,
0.0017992699,
0.019232469,
0.0167718,
0.03553629,
0.028410915,
0.005521409,
-0.011722145,
-0.036291096,
-0.019474007,
0.0049062422,
0.032003794,
0.044865698,
-0.06135067,
0.019957084,
0.005679919,
-0.046013,
0.027082456,
-0.012461855,
-0.013171373,
0.033754945,
0.044412814,
0.017390741,
0.0022625325,
-0.014892332,
-0.0038721573,
0.005732755,
0.039129168,
0.053651646,
-0.010295561,
0.0016615178,
-0.0041099214,
-0.006061096,
-0.01770776,
0.009510562,
-0.017451126,
0.0020719438,
-0.009970994,
-0.0035324944,
-0.021194967,
0.023731116,
0.015866032,
0.03447956,
0.0067291,
0.075601414,
0.01025782,
-0.015866032,
0.035445713,
-0.03363418,
0.023806596,
-0.022130925,
0.022749867,
-0.0011246616,
0.0073857815,
-0.012137288,
-0.02672015,
-0.04088032,
0.00627999,
0.027822167,
-0.0007312188,
-0.04248051,
-0.002236114,
-0.0022889506,
0.011246617,
-0.002804106,
0.0023436742,
-0.005951649,
0.02979976,
0.05709356,
-0.0019360787,
0.010076666,
-0.0378309,
-0.015488629,
0.029784665,
-0.004619416,
-0.034570135,
-0.018417278,
-0.021074196,
-0.046979155,
0.016364204,
0.041363396,
0.021436503,
0.013903535,
-0.030630047,
0.005151554,
0.0059667453,
-0.029543126,
0.011110751,
0.042389933,
-0.0059780674,
0.010861665,
0.0347211,
-0.038253594,
-0.049364343,
0.019504199,
0.003738179,
0.028305244,
-0.013850699,
0.038585708,
0.0018785247,
-0.032396294,
0.014213006,
0.013209113,
0.021330832,
-0.012892094,
0.013186469,
0.04652627,
-0.028018417,
-0.070891425,
0.015609398,
0.031098027,
-0.0029343101,
0.00091520284,
0.03713648,
-0.025029384,
0.021285543,
0.017254876,
-0.03460033,
0.0072046276,
-0.010740896,
0.014114881,
-0.0021398764,
-0.0124316625,
-0.011148492,
-0.0386159,
0.035989173,
0.04208801,
0.010129503,
0.033060525,
-0.052957222,
-0.0026342745,
-0.0066724895,
-0.03973301,
0.0076499637,
0.015081033,
-0.01965516,
-0.008257583,
-0.024184,
-0.0167718,
-0.057033177,
-0.00723482,
0.026191784,
0.05920702,
0.038042247,
0.06618143,
-0.037800707,
-0.012197672,
0.032184947,
-0.044805314,
0.0019492877,
-0.014688534,
0.008612342,
0.00982758,
0.001452059,
-0.021044005,
0.018160643,
-0.032426488,
-0.0026059693,
0.001973819,
-0.018085163,
0.0062082834,
-0.0335436,
-0.008053785,
0.07705065,
-0.015941514,
-0.06666451,
-0.001751151,
0.024953902,
0.0024738782,
0.020953428,
0.036804363,
-0.02625217,
-0.018900353,
-0.057969138,
0.01891545,
-0.025331305,
-0.0040344405,
-0.023580154,
-0.03716667,
-0.03635148,
0.039129168,
0.02672015,
-0.04960588,
-0.016500069,
-0.011986326,
0.0072499164,
-0.016137762,
-0.015413148,
-0.017541703,
0.00959359,
-0.005562924,
0.0191117,
0.014567765,
-0.028290147,
-0.020877948,
-0.004638286,
0.031581104,
0.0139337275,
-0.0067102294,
0.007446166,
0.010944694,
0.0027380604,
-0.01563959,
0.088101014,
-0.00026677691,
0.03444937,
-0.02519544,
0.010718252,
-0.023474481,
-0.05627837,
-0.027444763,
-0.019126797,
0.064852975,
0.017783241,
0.027716493,
-0.023217848,
0.014567765,
0.035838213,
0.029845048,
-0.040789742,
0.012529788,
-0.047371656,
-0.04154455,
0.020485448,
-0.012409018,
-0.01992689,
0.00032079275,
-0.013661997,
0.04574127,
-0.032305717,
0.024093423,
0.056912407,
0.021859195,
0.0063403742,
-0.048941653,
0.022281887,
0.0017020886,
0.007857535,
-0.028984569,
0.0014086576,
-0.013337431,
0.033996485,
-0.03553629,
-0.044443004,
-0.016092474,
0.006329052,
0.023278233,
-0.053953566,
0.035777826,
-0.008801044,
-0.07336719,
-0.015654687,
0.04969646,
0.0027210773,
0.0007873575,
0.028214667,
0.03810263,
0.018024778,
0.010084215,
0.004777925,
-0.021496888,
-0.035355136,
0.05262511,
-0.020877948,
-0.011208876,
0.019066412,
0.0655172,
-0.03713648,
-0.027097553,
0.00021806831,
0.011971231,
-0.062981054,
-0.031520717,
-0.028999666,
-0.0129902195,
-0.027882552,
0.0022474362,
0.0042344644,
0.015790552,
-0.008551957,
-0.005721433,
0.0018304057,
-0.03073572,
0.009548302,
0.053953566,
-0.015699975,
-0.0096011385,
-0.062196054,
0.02945255,
-0.0261314,
-0.020787371,
0.03357379,
0.0005854468,
-0.014884784,
0.017571894,
-0.01162402,
0.033392638,
-0.027641013,
0.03888763,
0.021315735,
-0.045529928,
-0.061260093,
-0.017420933,
0.024229288,
0.009774744,
0.0036589245,
-0.053500682,
-0.009653975,
0.039219745,
0.0030569662,
-0.02125535,
-0.05808991,
0.0143186785,
-0.036321286,
-0.024561403,
-0.018205931,
0.015820744,
-0.00815191,
0.028154282,
0.0073933294,
-0.025497362,
0.019172085,
0.068717584,
-0.006853643,
-0.007933016,
-0.03931032,
-0.017571894,
-0.03363418,
-0.028365627,
0.010808829,
-0.013480844,
0.022825347,
0.0042873006,
-0.030297931,
-0.012665653,
-0.019141892,
0.056187794,
-0.038797054,
-0.0015511273,
-0.035898596,
-0.0053893183,
0.0001273736,
0.0038098856,
-0.050572034,
0.039551858,
0.01466589,
-0.014733822,
0.029784665,
0.013782767,
0.008589698,
0.02472746,
0.016243435,
0.04531858,
-0.0012718489,
0.010340849,
0.03915936,
0.013277046,
-0.025331305,
-0.001803044,
-0.013480844,
-0.0027776877,
-0.017420933,
0.023685828,
0.006959316,
0.050873958,
-0.0138959875,
-0.0053289337,
0.021693138,
0.039129168,
0.02819957,
-0.041876663,
0.027686302,
-0.019172085,
0.020183526,
-0.047401845,
-0.027474957,
0.035898596,
-0.034690905,
0.014250746,
-0.012212769,
-0.0054232846,
-0.011088107,
-0.025587939,
-0.00025899298,
0.04930396,
0.01450738,
-0.01719449,
-0.0007741484,
0.0026191785,
-0.037921477,
0.0031135767,
-0.06744951,
-0.02664467,
0.054044142,
-0.025648324,
-0.009193543,
-0.015035745,
0.022674387,
0.015971705,
0.045771465,
-0.013163825,
0.041906856,
0.0070272484,
-0.03447956,
0.030977258,
-0.050572034,
-0.042027626,
-0.012492048,
0.07674872,
-0.013631805,
-0.041061472,
0.021693138,
0.04154455,
0.037106287,
-0.002332352,
-0.020998716,
0.010771088,
0.017405838,
0.018024778,
-0.035355136,
0.018492758,
-0.025255825,
0.0019077734,
-0.036019366,
0.037740324,
-0.0027663657,
0.017843625,
0.020500544,
0.035596672,
0.0351136,
0.0538328,
0.036381673,
-0.005242131,
0.025633229,
0.047220692,
0.010423877,
-0.016801992,
-0.0071668876,
-0.026403131,
0.033724755,
0.016409492,
0.0035702346,
-0.007985853,
-0.0056648226,
0.01770776,
-0.026433323,
-0.022764964,
0.028426012,
0.037196863,
-0.006906479,
0.017390741,
-0.024968999,
-0.008785947,
-0.04344666,
-0.0137601225,
0.018900353,
0.001283171,
0.0005297798,
0.005321386,
-0.040548205,
0.015850935,
0.0025286018,
-0.037740324,
0.012975124,
-0.007200854,
0.050753187,
-0.018613528,
-0.009925705,
-0.014386611,
0.022764964,
0.038042247,
0.023972653,
0.015624494,
-0.0018171966,
0.032124564,
0.01474137,
0.015450888,
-0.006887609,
-0.011110751,
-0.01571507,
-0.049213383,
-0.05905606,
0.010212531,
0.029890336,
-0.009012389,
0.039400898,
-0.03179245,
-0.02699188,
-0.04130301,
-0.016681224,
-0.059357982,
0.015450888,
0.025406785,
0.008280227,
-0.04426185,
0.017586991,
0.0047364105,
0.05410453,
0.01423565,
0.035626866,
0.02644842,
0.059478752,
0.017934201,
-0.030101683,
0.02465198,
-0.005819558,
-0.025693612,
-0.024244385,
0.019292854,
-0.016952954,
-0.004060859,
-0.040548205,
-0.025406785,
-0.01045407,
-0.005355352,
-0.038042247,
-0.037770517,
-0.011042818,
-0.0010982434,
-0.059388172,
-0.02480294,
0.06726836,
0.012718489,
-0.00045170452,
-0.03170187,
-0.0009416211,
-0.046707425,
-0.010008734,
-0.027625917,
0.017466221,
-0.0039967005,
-0.046556465,
-0.027490051,
-0.02800332,
0.011035271,
-0.01603209,
-0.017330356,
0.02336881,
-0.0023568831,
0.03810263,
0.040699165,
0.015443341,
-0.007970757,
-0.025708709,
0.054225296,
0.029784665,
0.013322335,
0.09504523,
0.03487206,
-0.019504199,
-0.037468594,
0.016560454,
0.051809918,
-0.05531222,
0.017179396,
0.007472584,
0.0006642297,
-0.051145688,
-0.049424727,
-0.03931032,
0.05410453,
-0.010552195,
-0.019700449,
-0.027097553,
0.003936316,
-0.07831872,
-0.044684544,
-0.018387087,
0.020893043,
0.0011916508,
-0.0025304887,
-0.027474957,
-0.08091526,
0.272938,
0.04516762,
0.0026059693,
0.024440633,
0.032547254,
0.095467925,
0.06974412,
0.0056346306,
0.023338616,
-0.065698355,
-0.01844747,
-0.03620052,
-0.0014765902,
0.0378309,
-0.016515166,
0.03357379,
-0.04103128,
0.0009944575,
-0.015020649,
-0.054436643,
-0.06714758,
-0.0053893183,
0.018070066,
0.03330206,
0.014854591,
0.012446759,
0.039370704,
-0.0041589835,
0.002685224,
-0.05410453,
0.047794346,
-0.01232599,
0.021225158,
-0.036925133,
-0.027308898,
0.054949913,
0.019836314,
-0.04661685,
-0.018356893,
0.020108044,
0.018130451,
-0.02344429,
0.018824873,
-0.0017841738,
-0.01099753,
0.04317493,
-0.043325894,
0.008687822,
0.03674398,
-0.038857438,
0.045560118,
-0.038404554,
0.04039724,
-0.01797949,
-0.039642435,
-0.015926417,
-0.009669071,
-0.029044954,
-0.03538533,
-0.01985141,
0.027550437,
-0.011133395,
-0.017647376,
0.030841393,
-0.069804505,
0.009419985,
-0.050360687,
0.0339361,
-0.0126052685,
-0.011842914,
0.00016027843,
-0.013352526,
0.0120467115,
-0.034781482,
-0.0020681696,
0.021678042,
0.02780707,
0.04426185,
0.032305717,
-0.01965516,
0.0010623902,
-0.01041633,
-0.012197672,
-0.021391215,
0.021662947,
0.014031853,
-0.05250434,
-0.019806122,
0.002328578,
0.018221028,
0.016077379,
0.00022408317,
-0.014884784,
0.01708882,
-0.00014081858
] |
In order to use it in the agent, simply pass it in the additional_tools parameter of the agent initialization method:
thon
from transformers import HfAgent
agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder", additional_tools=[tool])
agent.run(
"Can you read out loud the name of the model that has the most downloads in the 'text-to-video' task on the Hugging Face Hub?"
)
which outputs the following:text
==Code generated by the agent==
model = model_download_counter(task="text-to-video")
print(f"The model with the most downloads is {model}.")
audio_model = text_reader(model)
==Result==
The model with the most downloads is damo-vilab/text-to-video-ms-1.7b. |
[
0.019150043,
-0.024484484,
0.0034164398,
0.006042453,
-0.034524024,
-0.03017855,
0.007919247,
0.019075122,
0.028964816,
0.028620174,
0.04141684,
0.014459931,
-0.0035194573,
-0.0032253887,
-0.013418516,
0.046601437,
0.0083762705,
0.021952122,
-0.020139012,
-0.017112168,
0.042525683,
0.017306965,
-0.03164702,
-0.018565653,
-0.0140104,
0.01558376,
0.023060968,
-0.015171689,
0.09841744,
0.042016216,
-0.039768558,
0.0003193547,
-0.017097183,
-0.011657851,
-0.047350656,
-0.035992492,
0.029878862,
-0.046871156,
-0.034673866,
-0.020513622,
0.020768357,
-0.006656813,
0.047560435,
-0.05010778,
-0.033894677,
-0.014452439,
0.0012249735,
-0.024919031,
0.008690943,
-0.074442424,
0.012481992,
0.014999369,
0.029039737,
-0.026432455,
-0.00041558253,
-0.018790418,
-0.014130275,
0.03623224,
-0.015658682,
0.022731312,
0.0033003106,
0.013231211,
0.0038659712,
-0.042735465,
-0.0086834505,
0.028964816,
-0.016587714,
0.004330487,
0.010946093,
-0.04267553,
-0.012931524,
0.048789155,
-0.044443686,
-0.008998123,
-0.013103845,
-0.040757526,
0.037371054,
-0.009447655,
-0.015943386,
0.03698146,
0.04189634,
0.028380424,
0.009762326,
-0.011260765,
-0.01862559,
0.028110705,
0.014527361,
0.034793742,
0.039049305,
-0.0127517115,
0.0006949008,
0.049448468,
0.0014890732,
0.0026541092,
0.019944215,
0.04333484,
0.011493023,
0.04306512,
-0.0006176376,
0.00733111,
0.029788956,
0.07474211,
0.007140059,
-0.009162951,
-0.057540037,
0.022221843,
0.006896563,
-0.0133361025,
0.009372733,
0.0001445759,
0.013343594,
-0.03338521,
-0.038030367,
-0.028395409,
-0.06134607,
0.042885307,
0.019854309,
0.0024949,
-0.054183535,
-0.0002209026,
0.029504253,
-0.024619345,
-0.025413517,
-0.04869925,
0.034494054,
0.011148382,
0.0013663885,
0.03482371,
-0.034673866,
-0.001656711,
-0.0036468245,
0.000026866534,
-0.009110506,
0.021352747,
0.013388547,
0.030163566,
0.01264682,
0.028410394,
0.019254934,
-0.019060137,
0.010436623,
-0.0052557727,
0.017711543,
0.070426606,
0.0036805396,
-0.025728188,
0.021292811,
-0.007140059,
-0.036412053,
0.07132567,
-0.012317164,
0.009934647,
0.04015815,
0.0052070734,
0.010211858,
-0.060746696,
-0.0092978105,
-0.015096768,
0.029998738,
-0.010788756,
0.029069707,
0.0622751,
-0.035423085,
0.05547219,
0.010076999,
0.019494684,
-0.022686359,
-0.0002786159,
0.0072449497,
-0.032006644,
0.017022261,
0.017486777,
-0.016258057,
0.00936524,
0.052775003,
0.040517777,
0.0423159,
0.029953785,
0.04063765,
0.020288857,
-0.027676158,
0.009732358,
0.026642235,
0.028485315,
0.02497897,
0.011283241,
0.03967865,
0.03794046,
-0.012594375,
-0.045192905,
-0.0034164398,
0.027331518,
0.006701766,
0.06683035,
0.025548376,
0.0021090521,
-0.0244695,
0.02788594,
0.037670743,
-0.043214966,
-0.016392916,
-0.0060649295,
-0.036352117,
0.031497177,
-0.04267553,
-0.033774804,
0.004952339,
0.043784373,
-0.01667762,
0.015883448,
0.03338521,
0.049778126,
-0.021457639,
-0.04723078,
0.0049598315,
-0.03575274,
-0.009028092,
0.01838584,
0.003039957,
-0.007679497,
-0.0010002076,
0.038150243,
0.0018224758,
0.007522161,
-0.02470925,
-0.032366272,
0.009837248,
0.06137604,
-0.039798524,
-0.0028189374,
-0.019854309,
0.042225994,
0.01363579,
0.067130044,
0.029758988,
0.0014918828,
0.07276417,
0.05259519,
-0.0059038475,
0.0027440153,
0.041266996,
0.05619144,
0.0044091553,
0.042136088,
0.008571068,
0.0070014535,
-0.018295933,
-0.01876045,
-0.015433916,
0.0033078028,
-0.028425377,
0.059547946,
0.03500352,
0.021982092,
-0.04747053,
-0.008196458,
0.03257605,
0.027046815,
-0.054603096,
-0.05331444,
-0.0145798065,
0.025308626,
-0.03605243,
-0.00028259613,
0.014370025,
-0.01691737,
0.009342764,
0.011597914,
0.0017859513,
-0.027661175,
-0.00864599,
-0.049088843,
-0.06778935,
-0.0043529635,
-0.012504469,
-0.014782095,
-0.042435776,
-0.07498186,
0.020828294,
-0.061915476,
0.006113629,
0.02764619,
-0.023225795,
0.030987708,
-0.003970862,
0.028994784,
-0.037610807,
0.038509868,
-0.04435378,
0.042885307,
0.005836418,
-0.037550867,
-0.032995615,
-0.033445146,
0.046601437,
0.014647236,
0.013366071,
0.0009664928,
-0.06353379,
-0.044593528,
-0.004873671,
-0.047320686,
0.01787637,
-0.018191043,
-0.020543592,
0.012024969,
0.00032731515,
-0.02252153,
0.026192704,
0.022296764,
-0.045792278,
0.023810187,
-0.00013193283,
-0.0024199781,
-0.053524222,
0.06401329,
0.020993123,
-0.058109444,
0.0017644112,
-0.022596452,
0.031916738,
0.018400824,
-0.004233089,
0.0030586876,
-0.0016866798,
0.04237584,
0.012309672,
-0.07672005,
0.027915908,
-0.0360824,
0.0045365226,
-0.040757526,
-0.02406492,
-0.0075034304,
0.0046601435,
0.036621835,
0.011995,
-0.04848947,
-0.026432455,
0.033415176,
0.017336933,
-0.046841186,
0.0042630574,
0.015703635,
0.0023506754,
0.029039737,
0.016587714,
-0.07869799,
0.000021320555,
-0.015613728,
0.039828494,
0.002732777,
-0.030118613,
0.03500352,
0.012159828,
0.037341084,
-0.04648156,
-0.03653193,
0.0032534844,
0.017816434,
0.024154827,
0.047170844,
-0.0030717987,
-0.012669297,
-0.044114027,
-0.003626221,
-0.02382517,
-0.0025248688,
0.06928779,
-0.025008937,
0.026387502,
-0.012796665,
-0.05016772,
0.00687034,
-0.041746493,
-0.046541497,
0.014909463,
0.019809356,
0.03794046,
-0.03260602,
-0.02204203,
0.02569822,
0.02518875,
0.041207056,
-0.0065069688,
0.019704465,
-0.026462423,
-0.03650196,
0.010181889,
0.029893847,
0.026087813,
-0.009904678,
-0.0008339746,
-0.021217888,
-0.042016216,
-0.045462623,
0.02105306,
0.024484484,
0.02703183,
0.012661804,
0.04192631,
0.03554296,
0.005338187,
-0.0069490084,
-0.0058776247,
0.012699266,
-0.034943584,
0.042465746,
-0.020363778,
-0.022027045,
-0.010841202,
-0.0111708585,
0.032785833,
0.00048137334,
-0.009065553,
-0.0062559806,
-0.013688236,
0.008825802,
0.047860123,
0.045462623,
-0.061196227,
-0.036891554,
-0.02983391,
0.02932444,
0.011762742,
-0.0038921938,
-0.020258889,
-0.0423159,
0.011320703,
0.025203735,
-0.0056341286,
-0.0020135266,
0.033235364,
-0.055891756,
-0.0013720077,
0.038749617,
0.021112997,
-0.0015883448,
-0.015613728,
-0.00028657637,
-0.0010807487,
0.008241411,
-0.014062845,
0.011695312,
0.013927985,
0.007421016,
0.022027045,
0.008226427,
0.0019329856,
-0.032336302,
0.026867002,
-0.017846402,
0.024259718,
0.0010760662,
-0.0017278868,
-0.0073348563,
0.0052183117,
-0.013201242,
0.02682205,
0.013763157,
0.02481414,
-0.000097339966,
0.008593544,
-0.015988339,
-0.01971945,
-0.008129029,
0.02860519,
-0.0408774,
0.033175427,
0.003242246,
0.021172935,
0.0044953153,
-0.00032216427,
-0.004716335,
0.027706128,
-0.025683235,
0.015284073,
0.020603528,
-0.019015184,
0.013306133,
-0.068748355,
0.04720081,
0.018790418,
0.0029200818,
-0.050976876,
-0.03536315,
-0.013073876,
-0.012182305,
-0.016497808,
0.017247027,
0.0017381886,
-0.032366272,
0.020648481,
-0.04720081,
-0.038419962,
-0.034194365,
0.0136582665,
-0.01339604,
0.03308552,
0.00857856,
0.0408774,
-0.013366071,
-0.0013738808,
0.032276366,
-0.025383547,
-0.013695727,
-0.005847656,
0.03431424,
0.008616021,
0.05334441,
-0.055382285,
0.042975213,
0.006285949,
0.02908469,
0.009987093,
0.011433085,
0.011972523,
-0.024274703,
-0.022851186,
0.043364808,
0.011418101,
-0.076959796,
-0.03821018,
0.011425593,
-0.024244735,
0.0045440146,
0.04381434,
-0.026312578,
-0.043155026,
-0.061675727,
0.0060199765,
0.0077394345,
-0.032486144,
-0.014340056,
-0.041476775,
0.027586251,
0.0099796,
0.03485368,
0.0062822034,
-0.04869925,
-0.043484684,
0.030583128,
-0.010196874,
-0.023030998,
0.027840987,
0.024874078,
-0.014864509,
0.050227657,
0.01619812,
-0.024034953,
-0.049718186,
-0.035243273,
0.047590405,
0.010099475,
-0.00943267,
-0.05055731,
0.0037311118,
-0.0010976061,
0.011320703,
0.011552961,
-0.014886986,
0.03701143,
-0.04627178,
0.043634526,
0.0038022876,
-0.03263599,
-0.040008307,
-0.047020998,
0.029579176,
-0.03413443,
-0.037580837,
-0.023016015,
0.039109245,
0.019224966,
-0.018595621,
-0.049718186,
0.014347549,
-0.0370414,
-0.028380424,
-0.013291149,
-0.029549206,
0.010211858,
-0.03506346,
-0.033235364,
0.016452854,
-0.06341392,
-0.014976893,
0.042136088,
0.013680743,
0.009275334,
-0.04066762,
0.005791465,
0.033924647,
-0.01582351,
-0.0050759604,
0.010474085,
-0.016003322,
-0.0044616004,
-0.021247856,
-0.004611444,
-0.04264556,
0.040577713,
0.03725118,
-0.07234461,
0.0011659724,
-0.007480954,
-0.042765435,
-0.015898433,
0.0494185,
-0.019464716,
-0.016168151,
0.0068740863,
0.025713203,
-0.030163566,
-0.021727357,
-0.012549422,
0.010099475,
-0.030028706,
0.035183337,
0.005188343,
0.005836418,
0.044923186,
0.06689029,
-0.050527345,
-0.037550867,
0.014752126,
0.027241612,
-0.014699682,
-0.056401223,
-0.0051246593,
-0.033505082,
-0.011957539,
-0.0023075952,
0.034913614,
-0.015119244,
0.041057214,
-0.01326118,
0.009080537,
0.0017756496,
0.0065669063,
0.052655127,
-0.047560435,
-0.024829125,
-0.05286491,
0.01814609,
0.012886571,
-0.002539853,
0.05673088,
0.022296764,
-0.03182683,
0.015306549,
-0.040487807,
0.07624055,
-0.022101967,
0.025353579,
0.07767905,
-0.06527198,
-0.0651521,
-0.014467423,
0.06437292,
-0.0033340256,
-0.009807279,
-0.0370414,
-0.0030886563,
0.019944215,
0.032815803,
0.021922154,
-0.037071366,
-0.01374068,
-0.014347549,
0.022926109,
0.0027833495,
-0.023690311,
-0.0086834505,
0.008795834,
-0.0001951482,
-0.00002846155,
-0.023255765,
0.037161272,
-0.034404147,
-0.0067055123,
-0.00018870959,
0.04117709,
-0.0086984355,
-0.021487607,
-0.008368779,
0.011822679,
-0.036202274,
-0.023735264,
-0.0043192487,
-0.03575274,
-0.017097183,
0.02604286,
-0.032815803,
-0.019839326,
-0.0016239326,
-0.016722573,
0.016033292,
0.030253472,
-0.043424748,
0.014677204,
0.0025567105,
-0.02348053,
0.057090506,
-0.019000199,
0.016273042,
0.012167321,
-0.015433916,
0.0063646175,
0.0026409978,
0.01558376,
-0.012144844,
-0.03257605,
-0.029399363,
-0.0035719026,
0.019704465,
0.00035002586,
0.014864509,
-0.017187089,
0.0036955238,
0.00733111,
0.012212274,
0.017996246,
0.0013588964,
0.024829125,
0.035602897,
-0.011268257,
0.035722774,
-0.009207904,
-0.013448485,
-0.01862559,
0.01021935,
0.0071999966,
-0.01534401,
-0.006158582,
-0.0092978105,
-0.015598744,
-0.04920872,
-0.027811017,
-0.003427678,
0.03134733,
0.045882184,
-0.006188551,
0.007518415,
-0.025248688,
-0.013201242,
0.014092813,
-0.071145855,
-0.03263599,
0.018340888,
-0.007679497,
-0.01059396,
0.0006246615,
-0.018415809,
0.0027758572,
-0.025893016,
-0.021098014,
-0.014812064,
0.024379594,
-0.0072711725,
-0.00009915448,
-0.051096752,
0.004926116,
0.020183966,
0.032336302,
-0.045372717,
-0.052505285,
-0.006432047,
0.021083029,
-0.006132359,
-0.003937147,
-0.04753047,
0.0027777303,
-0.01435504,
0.01873048,
-0.013043907,
0.017486777,
-0.029639112,
0.032276366,
-0.014789588,
0.022731312,
-0.022701342,
0.0059450543,
0.035393115,
-0.013830587,
-0.05667094,
0.042975213,
0.010803741,
0.004259311,
0.024349624,
0.04522287,
0.029803941,
-0.040068243,
0.01339604,
0.009132982,
-0.008323826,
0.04672131,
0.0046901125,
-0.011028507,
0.006315918,
0.047290716,
-0.008144013,
-0.016962323,
0.0076944814,
0.013051399,
-0.033744834,
-0.02286617,
-0.016527776,
0.05055731,
-0.020288857,
-0.0029032244,
0.0033396448,
-0.038779587,
-0.026867002,
-0.03287574,
-0.02775108,
0.030328395,
-0.0013888652,
0.022701342,
-0.016662635,
-0.041656587,
-0.007608321,
0.023705296,
0.015246611,
-0.017546713,
0.022341717,
0.030028706,
0.017921323,
0.013515915,
0.020603528,
0.017801449,
-0.0059001013,
0.013455978,
0.0038772095,
0.022821218,
-0.016767526,
-0.009462639,
-0.0061997892,
0.030673034,
0.0059075938,
0.012886571,
-0.01715712,
-0.04309509,
0.019269919,
-0.018235996,
0.024754204,
-0.0879883,
-0.011028507,
0.029204566,
-0.031287394,
-0.037700713,
-0.00615109,
0.035932556,
0.03116752,
0.008196458,
0.029189581,
0.020109044,
0.058558974,
0.04204618,
-0.021292811,
-0.011350671,
0.0014684697,
-0.010009569,
-0.036651805,
0.033205397,
-0.010608944,
0.013980431,
-0.025922986,
-0.006424555,
-0.023030998,
0.029983753,
-0.0069752308,
-0.027256595,
-0.023885109,
0.036112368,
-0.05376397,
-0.025488438,
0.033025585,
0.024379594,
0.049028907,
0.015306549,
-0.004517792,
-0.09146468,
0.01404786,
-0.06689029,
0.06293441,
0.030717988,
-0.069587484,
-0.026222672,
-0.006342141,
-0.021742342,
-0.04696106,
-0.050227657,
-0.014017892,
0.04384431,
0.0021633706,
0.047560435,
-0.04747053,
-0.012736727,
-0.0029519238,
0.025203735,
0.008503638,
-0.020888232,
0.08792837,
0.046151903,
0.009477623,
-0.032216426,
-0.022701342,
0.0028713827,
0.020498637,
0.01729198,
0.0003238032,
-0.013073876,
-0.04117709,
-0.035992492,
0.024829125,
0.06089654,
0.014474915,
-0.04795003,
-0.009784803,
-0.01873048,
-0.043694466,
-0.0053531714,
-0.029009769,
0.049328595,
-0.0021614975,
-0.003002496,
0.030028706,
-0.054453254,
0.2694792,
0.033954617,
-0.011223304,
0.030373348,
0.02190717,
0.03749093,
0.042555653,
-0.023120906,
0.03871965,
-0.09763825,
0.023690311,
0.007439747,
0.0066942736,
0.044923186,
0.0017072833,
0.010084491,
-0.059488006,
-0.04633172,
-0.0057090507,
-0.046241812,
-0.013868048,
0.006259727,
0.00639084,
0.08055605,
-0.019000199,
-0.012114875,
0.039348993,
-0.030583128,
0.013545884,
-0.05547219,
0.014534853,
-0.04875919,
0.011657851,
-0.0389594,
-0.047170844,
0.022311749,
0.012654313,
-0.020139012,
-0.010316749,
0.021142967,
-0.009844741,
0.023600405,
0.012219765,
-0.013066383,
-0.025638282,
0.060027443,
0.010953585,
0.034404147,
0.038300086,
-0.06742973,
0.037311118,
-0.021607483,
0.07144555,
0.006008738,
-0.036651805,
0.010032046,
0.005368156,
-0.025773142,
0.0017419347,
-0.04189634,
0.004873671,
-0.0149019705,
-0.037430994,
0.02580311,
-0.029054722,
0.0130289225,
0.01138064,
0.0054093627,
0.0114780385,
-0.016617682,
-0.005446824,
0.009132982,
-0.0041843895,
-0.035722774,
0.033744834,
-0.012287195,
0.0034913616,
0.02470925,
0.061435975,
-0.0022682613,
-0.02252153,
-0.066290915,
-0.07749923,
-0.01910509,
0.021457639,
0.0060199765,
-0.039498836,
-0.0034464085,
-0.0025211228,
0.017142136,
0.01828095,
0.01039167,
-0.018370856,
0.0013073876,
0.020633498
] | Depending on the LLM, some are quite brittle and require very exact prompts in order to work well. Having a well-defined
name and description of the tool is paramount to having it be leveraged by the agent. |
[
-0.018276816,
0.017580045,
-0.02030013,
0.020929903,
0.008877119,
-0.07750227,
-0.04100224,
0.027334828,
0.01818302,
0.038777936,
0.013881804,
0.017807836,
0.045960028,
-0.024695141,
-0.009366198,
-0.0037384396,
-0.03124746,
-0.049845863,
-0.042636972,
-0.019603359,
-0.009413096,
-0.02007234,
-0.03824196,
-0.008354542,
-0.0023683484,
0.033927344,
-0.006039791,
0.018745797,
0.06855146,
0.025807293,
-0.009192006,
-0.007651072,
-0.0039561805,
-0.016387498,
0.010665943,
-0.03175664,
0.05437487,
-0.005379869,
-0.01351332,
-0.010853535,
0.0021171093,
-0.039099522,
0.030979471,
-0.05852869,
-0.024413753,
-0.06254852,
0.003681492,
-0.0063982257,
0.020032141,
0.030684683,
0.008575632,
-0.013948802,
0.050221045,
-0.026396869,
0.019080782,
-0.006123537,
-0.015288744,
-0.004994636,
-0.032721397,
0.020179534,
-0.0061134878,
0.040948644,
-0.00862253,
-0.060029425,
0.0011816618,
0.0013349177,
0.007088296,
-0.011838392,
-0.03891193,
-0.009801679,
-0.016561689,
0.04617442,
-0.021104096,
-0.003845635,
0.0021673571,
-0.024172563,
0.0068873046,
-0.044218104,
0.013473122,
0.024708541,
0.015543333,
0.05922546,
0.014471379,
0.0064987214,
-0.014203391,
-0.043923315,
0.018625202,
-0.019670356,
-0.006411625,
-0.0014973858,
0.021157693,
0.034677714,
-0.033310972,
-0.0119522875,
0.015663927,
0.016977072,
0.015074354,
0.056116793,
0.012314072,
0.010766438,
0.038563546,
0.052445352,
-0.035106495,
0.017111067,
-0.012133179,
-0.04065386,
0.013687513,
0.011630701,
-0.030175505,
-0.019549761,
0.013774609,
-0.016374098,
0.05456246,
-0.024507549,
0.014672371,
0.07766307,
0.01728526,
0.02517752,
-0.046228018,
-0.023515992,
-0.0035005999,
0.017807836,
-0.00054979516,
-0.06871226,
-0.004843892,
-0.03684842,
-0.0045792535,
0.00078721624,
-0.030657886,
0.000031457246,
-0.018317014,
0.0042275186,
0.01562373,
0.010927231,
0.013024242,
0.0256331,
-0.047005184,
0.04220819,
0.0162937,
-0.041404225,
0.019402368,
-0.0396355,
0.00793246,
0.07492959,
-0.024051968,
0.02028673,
0.014431181,
-0.0023415496,
-0.02260483,
0.001959666,
0.000659503,
-0.0010753039,
0.043172948,
0.02661126,
-0.011349313,
-0.05429447,
-0.052338157,
-0.000026955875,
0.00037853376,
0.014752767,
0.022323443,
0.013144836,
-0.03687522,
0.0037015912,
-0.034865305,
0.03518689,
-0.010304159,
-0.0163339,
-0.026423667,
-0.049551073,
0.022712026,
0.008763224,
0.014993957,
-0.0029311243,
0.023864377,
0.00792576,
0.020943303,
0.0056110094,
0.028085196,
0.015275345,
-0.023140807,
-0.004180621,
0.021465879,
0.026973043,
0.008501936,
-0.0060297414,
0.011704398,
0.0039092824,
-0.038590346,
-0.0045859534,
0.016615288,
0.05997583,
-0.042288586,
-0.022752224,
-0.017673843,
0.012320772,
-0.027870804,
-0.013881804,
-0.014953759,
-0.07160653,
-0.0023482493,
0.023140807,
-0.012454766,
0.010096467,
-0.027951201,
0.0041370727,
-0.026008284,
0.080610946,
-0.02521772,
0.043494534,
0.02679885,
0.048371926,
-0.05692076,
0.015690727,
-0.0060062925,
-0.0057215546,
-0.014498178,
0.026705055,
0.03824196,
0.039903488,
-0.044191305,
-0.012287273,
0.028272787,
0.023502592,
0.026879247,
-0.014377584,
0.041377425,
0.025740296,
0.022497635,
0.028621173,
-0.014632173,
0.018973587,
0.009285802,
0.071874514,
0.017365655,
0.016400896,
0.06898024,
0.041377425,
-0.0011339263,
-0.023033611,
-0.073804036,
0.033471763,
0.013191734,
0.060779795,
0.004130373,
0.03454372,
0.039340712,
-0.00099072,
0.0041638715,
-0.031033069,
-0.011148322,
0.065603584,
0.047889546,
0.050515834,
-0.0466836,
-0.04520966,
0.03454372,
0.052498948,
-0.03175664,
-0.053490505,
0.010290759,
0.013962201,
-0.021157693,
0.00816695,
-0.01610611,
0.031033069,
0.011503407,
-0.017995428,
-0.028862363,
-0.04336054,
-0.043976914,
-0.07026659,
-0.06399565,
0.016146308,
0.007764967,
0.020407325,
0.053812094,
-0.015663927,
0.004944388,
-0.0016179807,
-0.0014370884,
0.0074567804,
0.0148197645,
0.026262874,
-0.005641158,
-0.0014898486,
-0.060619,
0.028165592,
-0.03127426,
0.023381997,
0.009171907,
-0.0032527104,
0.028594375,
-0.00025479845,
0.038322356,
0.019965144,
-0.01678948,
0.026343271,
0.0033967544,
0.0030868927,
-0.030363098,
0.03430253,
-0.03170304,
-0.020206334,
-0.019308573,
0.06260212,
0.007865462,
-0.011155021,
0.00063605397,
0.022913018,
-0.0676939,
0.04124343,
0.026477264,
0.04968507,
-0.00051294675,
0.024132365,
0.021506079,
0.03221222,
-0.02472194,
0.024172563,
-0.025954686,
-0.042476177,
0.032292616,
-0.0077984654,
-0.027602816,
0.011697698,
0.038804736,
-0.05174858,
0.016668886,
-0.030872276,
-0.035964057,
-0.0076376726,
0.011429709,
0.010552048,
0.045316856,
-0.0061067883,
-0.05341011,
-0.009158507,
-0.008522035,
0.032480206,
0.03055069,
-0.015342342,
-0.023355199,
0.05992223,
-0.004247618,
0.038107965,
0.052150562,
-0.040091082,
0.035937257,
0.028272787,
-0.012535162,
0.0043414137,
0.012314072,
0.0039997282,
0.02725443,
0.0045390553,
-0.05499124,
0.03282859,
0.039581902,
-0.013935402,
0.043467738,
0.01842421,
0.044244904,
-0.030202305,
-0.0038355854,
-0.03612485,
0.005520563,
-0.006414975,
0.03052389,
-0.04212779,
0.024668342,
-0.008066454,
-0.050328244,
0.025927888,
-0.0115503045,
-0.020340327,
0.06828347,
-0.042636972,
0.038322356,
-0.011463208,
-0.0068873046,
0.001223535,
-0.030872276,
0.03867074,
0.008354542,
0.046710398,
-0.0326678,
-0.02915715,
-0.020916503,
-0.042047396,
-0.0326142,
-0.026437066,
0.0031907381,
-0.024507549,
-0.066085964,
-0.019790951,
0.01768724,
0.047514364,
0.026664857,
0.029585931,
0.00443186,
-0.0006414975,
0.04151142,
0.014082796,
-0.043976914,
0.011557004,
-0.0069543016,
0.007711369,
0.014431181,
0.018477807,
-0.036660828,
-0.011155021,
-0.08999054,
0.012387768,
0.045960028,
0.0373308,
-0.0419402,
0.033337772,
-0.0186788,
0.014752767,
0.016856477,
0.019040583,
-0.0004195695,
0.030470293,
0.017379055,
-0.05922546,
0.010920532,
-0.06228053,
0.010364455,
0.051936172,
-0.026557662,
-0.006374777,
-0.018933387,
-0.010404654,
-0.02661126,
-0.0037685884,
0.029719925,
0.03826876,
0.01768724,
-0.02915715,
0.031622645,
0.024842534,
-0.012354271,
0.03170304,
-0.029559132,
0.010659243,
-0.005105181,
0.015918517,
-0.00007280704,
-0.06270931,
0.010217062,
-0.03521369,
0.024453951,
-0.013687513,
0.006572418,
0.0063211787,
-0.0119522875,
0.0163205,
0.0039461306,
-0.01444458,
-0.019187978,
-0.008790023,
0.020393925,
-0.05943985,
-0.061154976,
0.037411194,
-0.029719925,
-0.012086282,
0.004281116,
0.004180621,
-0.0088101225,
0.01958996,
0.0034905502,
-0.016735882,
0.007959259,
-0.00081569003,
0.034168534,
-0.0442717,
-0.037625585,
-0.029183948,
-0.026892647,
0.018102624,
-0.010900432,
-0.06935543,
-0.044914875,
-0.06646115,
-0.008428238,
0.017312057,
0.01705747,
0.029746724,
0.018531404,
0.0071217944,
0.01190539,
-0.04842552,
-0.035106495,
-0.042315386,
-0.016776081,
-0.0004080544,
0.022350242,
0.021774067,
0.034865305,
-0.022444038,
-0.047273174,
0.0373576,
-0.055580817,
0.035990857,
-0.019254975,
-0.0013709287,
0.0018206469,
-0.0047601457,
-0.0056378082,
0.04102904,
-0.03706281,
-0.0018340463,
0.02870157,
0.0047902944,
0.004502207,
-0.057671126,
-0.071874514,
0.034195334,
0.023020213,
-0.01494036,
-0.011778095,
0.0325874,
-0.021626672,
0.04496847,
0.028728368,
-0.029746724,
-0.008341142,
-0.0350261,
0.02913035,
0.009667685,
0.026021684,
-0.046978384,
-0.031837035,
-0.013386026,
0.014578575,
-0.013412825,
-0.06013662,
-0.02843358,
0.0004534868,
-0.0063982257,
-0.04542405,
0.010994229,
-0.03845635,
0.024118965,
0.011067925,
0.022899618,
0.013895204,
0.01890659,
0.055848803,
-0.010753039,
-0.003313008,
0.017915031,
-0.0256465,
-0.004575904,
0.010310858,
0.004847242,
0.025994886,
0.0049778866,
-0.01259546,
0.013814808,
-0.06946262,
-0.006599217,
-0.023448994,
-0.010913832,
-0.035535276,
-0.019027185,
0.025767095,
-0.039501507,
-0.0029043255,
-0.012575361,
0.037920374,
0.052579343,
-0.009754782,
-0.03826876,
-0.01704407,
-0.055152036,
-0.055473622,
0.01583812,
-0.008716326,
-0.04167221,
-0.012521763,
0.03885833,
0.02662466,
-0.016749281,
0.046254817,
0.05156099,
0.05019425,
0.0066796136,
-0.037920374,
0.005028134,
0.023301601,
-0.008133451,
0.017580045,
0.02891596,
-0.022658428,
-0.0032443358,
-0.039742697,
-0.023944773,
-0.0038489848,
-0.039983884,
0.053276114,
-0.02356959,
-0.0012260474,
-0.013627215,
-0.009037913,
-0.029183948,
0.02496313,
0.03564247,
0.0057148547,
0.032265816,
0.008448338,
0.012488265,
0.05852869,
-0.02194826,
-0.017124465,
0.0072758878,
0.049497478,
-0.020407325,
-0.02237704,
0.024788937,
0.005312872,
-0.05713515,
-0.007651072,
-0.056277588,
-0.008930717,
-0.056116793,
-0.058367897,
-0.0001712614,
-0.011463208,
-0.014042598,
0.012461466,
0.039528307,
-0.0014998981,
0.031059869,
0.017070867,
-0.026102081,
-0.04711238,
0.058850277,
0.013252032,
-0.015328943,
-0.0256197,
-0.05574161,
0.008287544,
-0.0062106336,
0.0057249046,
-0.019965144,
0.0010962405,
0.07096336,
0.025820693,
-0.014739368,
0.030389898,
-0.012019285,
0.03475811,
0.0022913017,
-0.02031353,
-0.086667486,
0.006716462,
-0.008910618,
-0.00004941038,
0.03561567,
-0.045558047,
-0.013607116,
0.002847378,
0.028192392,
-0.0074232817,
-0.0630845,
-0.021841064,
-0.03172984,
-0.005477015,
-0.031327855,
-0.0072624884,
0.021331886,
0.0074098823,
0.036982413,
-0.024413753,
-0.025914488,
-0.012722755,
-0.002217605,
-0.025324915,
-0.024547746,
-0.019254975,
-0.019469365,
-0.0256331,
0.012434667,
0.00816025,
-0.024427153,
-0.04663,
-0.00722899,
0.010980829,
-0.058635887,
0.022899618,
-0.04494167,
-0.0030131957,
0.0012243725,
0.0066394154,
0.036339242,
0.009480094,
-0.022068854,
0.035294086,
0.008240647,
-0.02752242,
0.01583812,
-0.008213848,
0.0021740568,
-0.017660443,
-0.008481836,
0.040895045,
0.018169621,
-0.021398881,
-0.049175892,
0.039983884,
-0.030979471,
0.010237161,
-0.05718875,
0.031595845,
0.0011263893,
0.003428578,
0.00016550384,
0.07107055,
-0.0068471064,
0.031327855,
-0.024788937,
0.007530477,
0.011751296,
-0.007624273,
0.039715897,
-0.007986058,
0.020434124,
-0.05102501,
0.008441638,
0.031193862,
-0.03052389,
-0.0151011525,
-0.055312827,
-0.025284715,
-0.04153822,
-0.018826192,
0.072892874,
0.049497478,
0.014377584,
0.0029244246,
-0.0069141034,
0.019268373,
-0.002941174,
0.026222676,
-0.032641,
-0.037304,
0.01728526,
-0.041859806,
0.030631086,
0.0056478577,
0.0014161518,
0.0155031355,
0.0045558047,
0.0063580275,
-0.030202305,
0.035535276,
0.0017059144,
0.019670356,
-0.07053457,
0.007436681,
0.036526833,
0.029103551,
-0.04290496,
-0.06351328,
0.05432127,
0.055420022,
-0.007530477,
-0.04084145,
-0.0162803,
0.03449012,
-0.014136394,
0.018290216,
-0.02520432,
0.009178607,
0.0049108895,
-0.01516815,
0.03234621,
0.03288219,
-0.01678948,
0.03143505,
0.009473394,
0.005574161,
-0.0017235011,
0.05665277,
-0.011114824,
0.029344741,
0.032078225,
0.03516009,
0.013211833,
-0.009701184,
-0.0063312287,
0.001609606,
0.039421108,
0.07123134,
0.014109595,
-0.052311357,
-0.010873633,
0.036017656,
0.0046496005,
-0.0029729975,
0.045584846,
0.047943145,
-0.010572147,
0.018290216,
-0.04360173,
-0.013218533,
-0.0009002739,
-0.0030651186,
-0.001689165,
-0.002515742,
-0.03143505,
-0.03309658,
0.004240918,
0.038295556,
-0.00979498,
-0.07578715,
-0.024695141,
-0.0027418574,
-0.0037886875,
0.034892105,
-0.023261402,
-0.0019211426,
0.043012157,
0.03872434,
0.0039829793,
0.013620516,
-0.003594396,
0.058635887,
-0.00020256163,
0.0041672215,
-0.0044151107,
-0.021090696,
-0.030389898,
0.008300944,
-0.06871226,
-0.008970915,
-0.026892647,
-0.038161565,
-0.0011188521,
-0.0069610015,
0.023529392,
-0.03432933,
0.028862363,
-0.021666871,
0.0116709,
0.028165592,
0.0068002082,
-0.027361626,
0.036928818,
-0.024628144,
0.023033611,
0.015931917,
0.052096967,
-0.035106495,
0.08200448,
0.010150065,
-0.014672371,
0.006512121,
0.026262874,
-0.018062426,
-0.04062706,
0.0047467463,
-0.007825265,
-0.032533806,
-0.004130373,
-0.023944773,
-0.029237546,
0.008388041,
-0.01118852,
-0.005527263,
-0.0064987214,
-0.010237161,
-0.073428854,
0.013721012,
0.04944388,
0.030845476,
0.0030852177,
-0.008207148,
-0.01374781,
-0.015757725,
-0.0119522875,
-0.023489192,
0.05223096,
-0.011228719,
-0.01492696,
-0.06040461,
-0.018571604,
-0.03411494,
-0.0070949956,
0.025968086,
-0.023033611,
0.036500033,
0.027924402,
0.038590346,
0.023073811,
-0.025231117,
0.028513977,
0.0144177815,
0.056063198,
0.01701727,
0.07734148,
0.036634028,
0.005527263,
0.005741654,
-0.0010878658,
0.04845232,
-0.02587429,
0.009707884,
-0.036607232,
-0.012937145,
-0.050489035,
-0.05081062,
0.00489414,
0.06378126,
-0.0100428695,
0.0046295016,
-0.08436278,
0.05174858,
-0.05718875,
-0.033444967,
-0.03537448,
0.06356687,
-0.00091116095,
-0.021774067,
-0.03189063,
-0.026276274,
0.20956701,
0.021171093,
0.05150739,
0.018799394,
0.018745797,
0.06329889,
0.050060254,
-0.029425139,
0.010210362,
-0.020206334,
0.021666871,
-0.02729463,
0.0055373125,
0.055473622,
0.024695141,
0.056331184,
-0.019174578,
-0.025311515,
0.014591974,
-0.07074896,
-0.060994186,
0.023274802,
0.015248546,
0.04062706,
0.0039025827,
0.008133451,
0.001445463,
-0.011342614,
0.010391254,
-0.004569204,
0.019174578,
-0.042529777,
0.015074354,
0.0027854056,
-0.029827122,
0.027683213,
-0.017352255,
-0.039367512,
0.0023465743,
0.006940902,
-0.0056311083,
0.023971573,
0.020420725,
-0.042770967,
-0.03146185,
0.03432933,
0.019991942,
0.03470451,
0.04687119,
-0.03826876,
0.019549761,
-0.029746724,
0.005942645,
-0.020085739,
-0.04499527,
-0.0033465065,
-0.004240918,
-0.009654286,
0.0018457709,
0.023221204,
-0.043923315,
0.020876305,
0.015007356,
0.036794823,
-0.08221887,
0.000079873134,
-0.021331886,
0.012193477,
-0.023408797,
-0.009292502,
-0.016266903,
-0.046335213,
0.027736811,
-0.08318363,
-0.008079854,
0.032105025,
-0.033525363,
0.0075572757,
0.0036580432,
-0.035133295,
-0.03432933,
-0.010518549,
0.0148197645,
-0.018558204,
0.02749562,
0.03189063,
-0.02729463,
0.02586089,
0.0105922455,
0.0419938,
0.030791879,
0.00815355,
-0.0111349225,
-0.001037618,
-0.006646115
] | and generates the following audio.
| Audio |
|------------------------------------------------------------------------------------------------------------------------------------------------------|
| | |
[
0.02941859,
-0.001303536,
-0.027011475,
-0.0075488924,
-0.019851072,
-0.008059261,
-0.021481207,
0.033882413,
-0.005187483,
0.045674227,
0.012523087,
-0.007815503,
0.0020433809,
-0.030347917,
0.022776173,
0.022821877,
0.00013961356,
-0.04067718,
-0.041499864,
-0.016164226,
-0.020993691,
0.031901877,
-0.07008053,
-0.062127914,
-0.02765134,
-0.010321644,
-0.0009855075,
0.016011879,
0.07501664,
-0.010070268,
-0.030332683,
-0.00006385565,
-0.00657005,
-0.009948389,
0.014252247,
-0.064961605,
0.034918386,
-0.03604577,
-0.01582906,
-0.019927246,
0.014678825,
0.010603489,
0.047167245,
-0.07562604,
-0.064352214,
0.006471023,
0.032176107,
-0.026249731,
-0.009940771,
-0.037934896,
-0.017306844,
0.036472347,
-0.0024642448,
-0.011540435,
-0.03881852,
-0.034156643,
0.010809161,
-0.014381744,
-0.04210926,
0.010466375,
-0.00063320046,
0.043998387,
-0.003174572,
-0.021298388,
0.02189255,
0.06331624,
-0.0437851,
-0.01959208,
-0.051981475,
-0.015981408,
-0.010352113,
0.05213382,
-0.009902684,
-0.009849362,
-0.020064361,
-0.013353389,
0.011845133,
-0.0026413505,
-0.0074879527,
0.04159127,
0.03299879,
0.055790197,
0.00023566483,
-0.018617045,
-0.017809596,
-0.0042010234,
0.041987382,
0.03001275,
-0.033699594,
-0.053383086,
-0.027255233,
0.03610671,
0.0039801174,
0.03604577,
0.03583248,
0.03878805,
-0.02702671,
0.025625098,
-0.031627648,
0.029509999,
0.023873085,
0.0931157,
-0.02158785,
0.019394025,
-0.0052636573,
-0.020947985,
0.03723409,
-0.012058422,
-0.0039382214,
-0.028032213,
0.04034201,
0.0034659393,
0.025625098,
0.0059911236,
-0.015196811,
0.030530736,
-0.014290335,
0.008881946,
-0.07751516,
-0.019805368,
-0.014069429,
-0.0314753,
-0.00054226717,
-0.02714859,
0.01968349,
-0.018571341,
0.04058577,
0.02242577,
-0.0077774157,
0.0027708472,
-0.010473993,
-0.0042086407,
0.04003731,
0.052499462,
-0.018327583,
0.028321676,
-0.027407583,
-0.023004696,
0.0012597357,
-0.051646307,
0.019135032,
0.0055683553,
0.022730468,
0.074041605,
0.0061244294,
-0.024330134,
0.0013168665,
0.022060134,
-0.02385785,
0.015889999,
-0.025838388,
-0.03583248,
-0.029601408,
0.018738925,
-0.011822281,
-0.015844295,
-0.036167648,
0.004962768,
0.020460468,
0.019348321,
-0.0027537078,
-0.0067681037,
-0.03458322,
0.062158387,
-0.003222181,
0.028367382,
-0.020643288,
-0.0010988171,
0.009300905,
-0.0067871474,
0.031627648,
0.030332683,
0.002302374,
-0.02684389,
0.027514227,
0.017687717,
0.02117651,
0.0065319627,
-0.019912012,
0.0057054693,
-0.023355098,
-0.016377516,
-0.0045133387,
0.009727483,
0.0077279024,
-0.008782919,
0.017428724,
-0.0048294626,
0.011311912,
0.006059681,
0.025716508,
0.037995838,
-0.048507918,
0.032358926,
-0.030515501,
0.0031307717,
-0.017245905,
-0.013254361,
0.00040634332,
-0.045796104,
-0.018571341,
0.059080936,
-0.0081735235,
-0.0031783807,
-0.0077926507,
-0.020643288,
0.018342817,
0.04485154,
-0.04076859,
0.018312348,
0.030515501,
0.032572214,
-0.012949664,
0.01710879,
0.00047704275,
-0.0054274327,
0.004467634,
0.022197247,
0.027544696,
0.044455435,
0.05588161,
0.009102852,
0.021755435,
0.038544293,
-0.0040143956,
-0.00970463,
-0.0056788083,
0.05091503,
-0.008120201,
0.01236312,
0.0060254023,
0.027011475,
0.028870132,
0.02612785,
0.0059378017,
-0.0058997143,
0.02469577,
0.011639463,
-0.023796912,
-0.010314026,
0.0076593454,
-0.0026051677,
0.00053703017,
0.04518671,
-0.0010692994,
0.009902684,
0.035527784,
0.012378355,
-0.02755993,
0.01729161,
-0.07489476,
0.05886765,
0.019119797,
-0.025777448,
-0.057892613,
-0.016956441,
0.015105402,
0.012302181,
-0.013810435,
-0.005751174,
0.03075926,
0.006501493,
-0.021374563,
-0.007891677,
0.015333925,
0.013490503,
-0.0022528607,
0.03069832,
-0.012294563,
-0.05527221,
-0.03433946,
-0.03199329,
-0.06447409,
0.0024890015,
0.004856124,
-0.009636073,
-0.031185837,
-0.022562884,
0.022151543,
-0.026493488,
0.006954731,
-0.025168052,
-0.019607315,
0.027011475,
0.035284024,
0.021877315,
-0.03756926,
-0.017535368,
-0.0047380533,
0.0691055,
-0.019851072,
-0.016286107,
-0.008965738,
-0.032176107,
0.039671674,
0.0040410566,
-0.011593758,
-0.0269353,
0.0063377176,
-0.0165451,
-0.02314181,
0.008546778,
0.006265352,
0.024284428,
0.0058006877,
0.017611543,
0.026752481,
-0.04600939,
0.04658832,
0.015966173,
0.008257315,
0.008996207,
-0.012408825,
0.007427013,
-0.030347917,
0.06145758,
-0.009118087,
0.011068154,
-0.041195165,
-0.03199329,
-0.021161273,
0.0009950293,
-0.03060691,
-0.02469577,
-0.037721608,
0.02923577,
-0.007636493,
-0.06392563,
0.008440134,
-0.02708765,
0.00088695675,
-0.053596374,
-0.05838013,
0.04692349,
0.0057892613,
0.024467247,
-0.036837984,
-0.021572616,
-0.02992134,
0.03324255,
0.015562449,
-0.030424092,
0.036837984,
0.024771946,
0.012500234,
-0.015478657,
0.050640803,
-0.07166496,
0.004220067,
0.00097074866,
0.038361475,
0.02093275,
0.01794671,
0.014000871,
0.0389404,
0.0027460905,
-0.023735972,
0.0058197314,
0.0044752513,
0.022776173,
0.03144483,
0.026143085,
0.0062958216,
-0.03881852,
-0.035405904,
-0.016560335,
-0.029677583,
0.023583623,
0.045278117,
-0.023583623,
-0.004993238,
0.0023118958,
-0.0541753,
-0.016986912,
-0.027300939,
-0.038239595,
0.014305569,
0.00062082213,
0.018297113,
-0.022593355,
-0.050153285,
0.0012387877,
-0.010413053,
0.012462147,
0.0037116022,
0.0070423316,
0.019302616,
0.050366573,
-0.024558656,
-0.0172002,
0.015646242,
0.0013797105,
0.0392451,
-0.054601878,
-0.055485502,
-0.015113019,
-0.003547827,
0.0210851,
0.04003731,
0.014625503,
0.02690483,
-0.026722012,
-0.023050401,
0.028900603,
-0.033547245,
0.010260704,
-0.02992134,
0.038848992,
0.02643255,
-0.007358456,
-0.011555671,
-0.011662315,
-0.00094075495,
0.03421758,
0.03622859,
0.0062882043,
-0.031779997,
0.034766037,
0.022182012,
0.000620346,
-0.02416255,
-0.037020802,
-0.018708454,
0.008097349,
0.03072879,
-0.03165812,
0.0016786953,
-0.035375435,
-0.01346765,
0.01122812,
-0.012797315,
-0.022136308,
0.015981408,
0.0011169085,
-0.035680134,
0.03293785,
0.052804157,
0.0055645467,
0.025289932,
-0.020917516,
0.013330536,
0.018159999,
-0.033608187,
-0.01803812,
0.032389395,
0.01272114,
0.025305167,
0.048568856,
-0.0048180367,
-0.0528651,
0.027757986,
-0.02941859,
0.012675435,
-0.020612817,
0.01782483,
-0.059477042,
-0.011212885,
-0.0073356037,
0.052926037,
0.009438019,
-0.02905295,
-0.017992415,
0.033364426,
-0.06483973,
-0.062463082,
0.037081745,
-0.000031511245,
0.009872214,
0.030424092,
0.029692817,
-0.015889999,
0.022471474,
-0.0070042447,
-0.033638656,
-0.0076403017,
-0.044303086,
0.020688992,
0.013010603,
0.006817617,
0.0028374998,
-0.020475704,
0.01931785,
0.025746979,
0.0032297985,
0.0071261236,
-0.053169794,
-0.0003720648,
-0.023339864,
-0.0344004,
0.018144764,
-0.008691509,
-0.038452882,
0.006722399,
-0.04930013,
0.009651308,
-0.019942483,
-0.0131248655,
-0.03263315,
0.0694102,
0.03150577,
0.0041248486,
-0.02111557,
-0.035192616,
0.026782952,
-0.044150736,
-0.005949228,
-0.023766441,
-0.027940804,
0.0063796137,
-0.010710133,
-0.032084696,
0.044546843,
-0.01391708,
0.013452415,
0.0062691607,
0.0060406374,
0.022562884,
-0.027285703,
-0.01788577,
0.07324939,
-0.021572616,
-0.09116563,
-0.025746979,
0.022090603,
0.0030526929,
0.021267919,
0.020231945,
-0.018175233,
0.016712684,
-0.090251535,
0.051981475,
-0.05408389,
-0.00053179316,
-0.025046173,
-0.050183754,
0.029525233,
0.006707164,
-0.008089731,
-0.06343812,
-0.019089328,
-0.041469395,
0.021572616,
-0.02018624,
-0.038391944,
0.006665268,
-0.009186644,
-0.04223114,
0.04911731,
0.007960235,
0.0104968455,
-0.016164226,
0.017093556,
0.00068128563,
0.026691543,
0.01576812,
-0.016011879,
-0.017840067,
0.0041248486,
0.007815503,
0.058136374,
0.026676307,
0.015234899,
-0.031201072,
0.058623888,
-0.04677114,
-0.024543421,
-0.01732208,
0.002612785,
0.019988187,
-0.05082362,
0.008706745,
-0.022410536,
0.025289932,
0.007068993,
0.06873986,
-0.006417701,
-0.012195536,
-0.063499056,
-0.09098282,
0.050579865,
-0.010534932,
-0.0006974727,
-0.021359328,
0.0217402,
0.052072883,
-0.06139664,
0.0049170633,
0.04789852,
0.05725275,
0.020490939,
-0.05838013,
0.017672483,
0.015783355,
0.009529429,
-0.010214999,
0.011936543,
-0.020140536,
0.0077240937,
-0.03144483,
-0.011113859,
-0.039580267,
0.012614496,
0.036990333,
-0.028824428,
0.054937042,
-0.035284024,
-0.07014147,
-0.04677114,
0.009559899,
0.035101205,
0.00940755,
0.016225167,
0.030271742,
0.013307684,
-0.02410161,
-0.023690267,
-0.051646307,
-0.015387247,
0.048843086,
-0.011182415,
-0.026813421,
0.0027137164,
0.045643754,
-0.05508939,
-0.05131114,
-0.014572181,
0.045521878,
-0.02317228,
-0.030226039,
-0.026143085,
-0.0051646307,
0.0071337414,
0.028900603,
0.04664926,
0.0016101383,
0.0049132546,
0.021785906,
0.0011426174,
-0.053657312,
-0.022029663,
0.06337718,
-0.009163791,
-0.027361877,
-0.05716134,
-0.0029155787,
-0.04808134,
-0.022760939,
0.018647516,
0.0030088925,
0.023339864,
0.02618879,
-0.0019176928,
0.057496507,
-0.017687717,
0.04792899,
0.01585953,
-0.043998387,
-0.03144483,
0.00048799283,
0.0030374578,
0.010565402,
-0.009392315,
-0.026645837,
-0.025183287,
0.050092347,
0.030119395,
-0.020003421,
-0.06319436,
0.010710133,
-0.029083421,
-0.01710879,
-0.037934896,
-0.0027975081,
0.023888322,
0.008028791,
-0.0005960654,
-0.044120267,
0.03906228,
-0.008821006,
-0.039641205,
-0.00040562917,
-0.0464055,
-0.01592047,
-0.032023758,
-0.012012717,
0.00023102295,
-0.04046389,
-0.025198523,
-0.006265352,
-0.022562884,
0.013185805,
-0.029388119,
0.04162174,
-0.041317046,
0.0041743624,
-0.015524361,
-0.013399093,
0.0035078353,
0.014686442,
-0.03921463,
0.023476979,
0.020567114,
-0.026645837,
0.03281597,
0.0013540016,
0.00937708,
0.017276375,
0.022684764,
0.045308586,
-0.0017720091,
0.009003825,
0.04079906,
-0.0061091944,
-0.038056776,
-0.009498959,
-0.030058455,
0.019866308,
-0.013985637,
-0.008539161,
0.01424463,
0.039519325,
0.014183691,
-0.0020871812,
0.043084294,
0.02317228,
0.05868483,
-0.029190065,
0.038574763,
-0.0217402,
-0.0027708472,
-0.018114295,
-0.0057740267,
0.03741691,
-0.011357617,
0.008980973,
0.009590369,
0.010702516,
-0.029479528,
0.007743137,
0.02167926,
0.02170973,
0.031901877,
-0.028687313,
0.007990704,
-0.016072817,
-0.01579859,
0.04064671,
-0.06770389,
-0.034766037,
0.02260859,
-0.0421702,
0.0052636573,
-0.01806859,
0.0048294626,
0.03342537,
0.0017405872,
0.020064361,
-0.0021062247,
-0.00093885063,
0.009719865,
0.037264563,
-0.07647919,
-0.014419831,
-0.012972516,
0.03144483,
-0.0013787583,
-0.053474493,
0.01579859,
0.025076643,
0.015646242,
-0.004814228,
0.0008940981,
0.016148992,
0.002433775,
0.042901475,
-0.035405904,
0.03592389,
-0.07416349,
0.035284024,
-0.047532883,
0.024863355,
-0.020231945,
0.02618879,
0.040128723,
0.0060749156,
0.008622953,
0.03458322,
0.0004715677,
0.00337453,
0.016773622,
0.03613718,
0.009537047,
-0.011639463,
-0.008363959,
0.019165503,
0.015531979,
0.03610671,
0.019454965,
-0.019896777,
0.017687717,
0.010534932,
-0.04162174,
0.004787567,
0.028077917,
0.0667898,
-0.024452012,
0.01797718,
-0.032541744,
-0.004452399,
-0.034735568,
0.014130368,
0.04847745,
-0.0068899826,
-0.023339864,
-0.0149225835,
-0.050457984,
0.0050503686,
0.0011569001,
-0.009956006,
0.012660201,
-0.0149225835,
0.044120267,
0.018403757,
0.011349999,
-0.008341107,
0.035405904,
0.020429999,
-0.020003421,
0.021907784,
-0.0068937917,
0.04549141,
0.019866308,
0.028474025,
-0.009674161,
0.0021938253,
-0.040738117,
-0.0344004,
-0.014716912,
0.037873957,
0.0066043283,
-0.014694059,
-0.0042810063,
-0.02323322,
0.0022319127,
-0.029190065,
0.013985637,
-0.06362093,
0.011570905,
0.0017205913,
-0.019394025,
-0.052164294,
0.008356342,
-0.0067719123,
0.02102416,
0.02858067,
0.04061624,
0.02714859,
0.09262818,
0.019104563,
-0.02621926,
0.04472966,
0.01875416,
-0.026950536,
0.0006555767,
0.035558254,
-0.015501509,
0.0035364009,
-0.07666201,
-0.05402295,
-0.0049132546,
0.008790537,
-0.029616643,
-0.0076669627,
0.018677985,
0.02407114,
-0.050793152,
0.014876878,
0.07050711,
0.035405904,
-0.024208253,
-0.005324597,
-0.003132676,
-0.032084696,
-0.010801543,
-0.054632347,
0.027544696,
0.0072556203,
-0.04207879,
-0.004494295,
-0.036167648,
0.0035306877,
-0.015052079,
-0.019546375,
-0.0029441442,
0.026950536,
0.053901073,
0.012058422,
-0.0010454949,
-0.019759662,
-0.019180737,
0.03281597,
0.03467463,
0.017870536,
0.08135436,
0.07294469,
-0.023553153,
-0.05070174,
-0.017565837,
0.009567516,
-0.038452882,
0.01275161,
0.019195972,
-0.0015653858,
-0.022273421,
-0.04003731,
-0.056094896,
0.021389797,
0.021999193,
-0.0028717783,
-0.07123838,
-0.0059568454,
-0.081963755,
-0.033760536,
-0.0477157,
0.02982993,
-0.0073089427,
-0.031079194,
-0.0004951342,
-0.053017445,
0.2788596,
0.04320617,
0.008798154,
0.009087617,
0.03900134,
0.0878749,
0.023187516,
0.014876878,
-0.0035192615,
-0.024345368,
0.012104127,
-0.030515501,
0.019074094,
0.022105837,
-0.00008641044,
0.02621926,
-0.062249795,
-0.03436993,
0.012736375,
-0.03199329,
-0.03199329,
0.008143053,
0.012340268,
0.03305973,
0.04652738,
0.033516776,
0.009773187,
-0.041713152,
0.0013016317,
-0.018617045,
-0.0031441022,
-0.0039229863,
0.018297113,
-0.0054274327,
0.015615771,
0.060756776,
0.033943355,
-0.029281475,
-0.007206107,
0.0013444797,
-0.0017824831,
-0.009460872,
0.0022090604,
-0.007373691,
-0.006471023,
0.025457514,
-0.0075565097,
0.023720738,
0.057892613,
-0.042535838,
0.035741072,
-0.05411436,
0.04375463,
-0.01045114,
-0.01726114,
0.012683053,
-0.06672885,
-0.015501509,
-0.013216275,
0.016347047,
0.04521718,
0.0021671643,
0.0054693287,
0.00486755,
-0.026569663,
-0.007861207,
-0.015067315,
0.07775892,
-0.009392315,
-0.03141436,
-0.010755838,
0.021877315,
0.032054227,
-0.051890064,
0.04817275,
0.022105837,
-0.008097349,
0.036289528,
0.025122348,
-0.026813421,
0.008287785,
-0.021405032,
0.012126979,
-0.03004322,
0.022182012,
0.038331006,
-0.016438456,
-0.0052217613,
-0.021465972,
0.03796537,
-0.008051644,
0.047685232,
-0.045704696,
0.015486274,
-0.009963623
] | We pass that instance to the Tool.from_gradio method:
thon
from transformers import Tool
tool = Tool.from_gradio(gradio_tool)
Now we can manage it exactly as we would a usual custom tool. We leverage it to improve our prompt
a rabbit wearing a space suit:
thon
from transformers import HfAgent
agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder", additional_tools=[tool])
agent.run("Generate an image of the prompt after improving it.", prompt="A rabbit wearing a space suit") |
[
0.045112923,
0.010735584,
-0.027205614,
-0.016264705,
-0.027366942,
-0.03335071,
-0.0061670947,
-0.0044328286,
0.020561872,
0.024199065,
0.05526186,
-0.008337677,
0.03481732,
-0.04176905,
0.023128439,
0.008117686,
0.021676496,
-0.015590064,
-0.0120701995,
-0.0073513826,
-0.0010486261,
-0.006189094,
-0.046990182,
-0.044702273,
-0.034846652,
-0.016763352,
-0.010742918,
-0.016895346,
0.056112498,
0.022761786,
-0.033673365,
-0.0052797957,
0.0012493683,
-0.050715372,
0.005224798,
-0.04320633,
-0.005455789,
-0.011138903,
-0.056376487,
-0.034436002,
0.025211025,
-0.017731315,
0.0500114,
-0.07221588,
-0.034993313,
0.023671085,
0.011498222,
-0.011960204,
-0.024536384,
-0.013991459,
-0.03757455,
0.0048031476,
-0.0076483707,
0.008682331,
-0.048222136,
-0.047576826,
-0.011542221,
0.004113841,
-0.0113295615,
0.043998297,
0.052504636,
0.043792974,
-0.017643318,
-0.012143531,
0.0077217016,
0.07561841,
-0.029170873,
-0.007388048,
-0.014490106,
-0.0017975138,
-0.026237652,
0.050803367,
-0.0070030624,
-0.031678773,
0.007113058,
0.031180128,
-0.007424713,
-0.021588499,
-0.008367009,
0.03030016,
0.035814617,
0.058459073,
0.0019469247,
0.0047921482,
0.00827168,
0.028554896,
0.04024378,
0.036078606,
-0.0001070167,
-0.038630508,
-0.065469466,
0.009782288,
-0.0010605423,
0.030857474,
0.013852131,
0.041974377,
0.008015024,
0.034993313,
-0.0025519014,
-0.016558027,
0.0103396,
0.058048423,
-0.06429618,
-0.026325649,
-0.011872208,
-0.054528557,
0.013023497,
0.013742135,
-0.012847504,
-0.009004985,
0.04185705,
-0.04537691,
0.018141964,
0.0026453978,
0.039275814,
0.043792974,
-0.0056244493,
0.026457643,
-0.025768338,
-0.033556037,
-0.00060680986,
-0.004033177,
-0.040830422,
-0.03587328,
-0.0025940663,
-0.0075970395,
0.01647003,
-0.008000357,
0.0125468485,
-0.0018974267,
0.012260859,
-0.013441481,
0.030769477,
0.046579532,
0.0040405104,
0.0027333943,
-0.01094091,
0.005078137,
-0.0040698424,
-0.013954794,
0.014196784,
-0.014409442,
0.007538375,
0.073389165,
-0.013324152,
0.0048361463,
-0.0012741174,
-0.02248313,
-0.04159306,
0.011285564,
-0.009650294,
-0.02075253,
-0.0062880903,
-0.011366227,
-0.03349737,
-0.03628393,
-0.031942766,
0.01601538,
0.061714947,
0.007109392,
-0.020591203,
-0.02774826,
-0.048867445,
0.060717653,
-0.016836682,
0.047430165,
-0.030124169,
-0.017921973,
0.0028965548,
0.021925818,
0.0224098,
0.007391714,
-0.009166312,
0.0068674013,
0.033145387,
0.013624807,
0.045024924,
0.01534074,
-0.022923114,
-0.0042091706,
-0.000009746368,
0.0020165886,
-0.0035326967,
-0.008477005,
0.029581523,
-0.02086986,
0.06136296,
-0.0002747602,
0.018479286,
-0.026501643,
0.053795252,
0.03138545,
-0.07655704,
0.028525563,
-0.031004135,
-0.010830915,
-0.013118826,
0.008880324,
0.027645597,
-0.045406245,
-0.008836325,
0.03041749,
-0.02940553,
-0.007109392,
0.008572335,
0.03481732,
0.004322833,
0.012216861,
-0.015106083,
0.021749826,
0.05576051,
0.034787986,
-0.062066935,
-0.012862169,
0.018889936,
0.03892383,
0.006042433,
0.052211314,
0.0002655939,
-0.029464195,
0.065938786,
0.0089023225,
0.061010975,
0.034934647,
0.0318841,
-0.03426001,
-0.000939547,
0.070338614,
0.0062477584,
0.00086804974,
0.008806992,
0.013434147,
0.0379852,
0.034611996,
-0.013001497,
0.008227682,
0.006321089,
0.0025464015,
-0.018860605,
-0.007483377,
0.033174716,
0.013720136,
0.020107223,
0.050744705,
-0.049160767,
-0.016030047,
-0.013632139,
0.005217465,
-0.005463122,
0.03320405,
-0.0629469,
0.05772577,
-0.0052027986,
0.019960562,
-0.044731602,
-0.024683045,
0.01007561,
0.030564152,
-0.062888235,
-0.006306423,
-0.004715151,
-0.008396342,
0.005774777,
-0.0027223947,
0.05309128,
0.040478434,
0.018376622,
0.015854053,
-0.026149655,
-0.04106508,
-0.0120408675,
-0.010757584,
-0.053795252,
0.00083321775,
-0.034465335,
-0.01654336,
-0.029904177,
-0.013925461,
0.04015578,
-0.008616334,
0.0042238366,
0.031092132,
0.005301795,
0.011050906,
0.023641752,
0.029478861,
-0.023685751,
0.022703122,
-0.02507903,
0.0009881285,
-0.054763217,
-0.013500145,
0.025431016,
-0.013918129,
0.0014308613,
0.04707818,
-0.024580384,
-0.041563727,
-0.0041468395,
-0.031708106,
-0.056875136,
-0.0023777415,
-0.032236088,
0.00044823266,
-0.025240358,
-0.004227503,
-0.003661025,
-0.024917703,
0.07027995,
0.032646738,
-0.024008404,
0.03323338,
-0.0077143684,
0.024111068,
-0.04256102,
0.030388158,
0.023905743,
0.02135384,
-0.061304297,
-0.006244092,
-0.021383174,
0.016851349,
-0.024609715,
0.00061735115,
-0.04578756,
0.027264278,
-0.022615125,
-0.045406245,
0.007138724,
0.0006008518,
0.015399405,
-0.046256877,
-0.022923114,
0.021001855,
0.009415636,
0.004491493,
-0.028980212,
0.015062084,
-0.012444185,
0.030476155,
0.022116479,
-0.08541536,
0.07473844,
-0.008645666,
0.03587328,
-0.025504347,
0.05215265,
-0.07057327,
0.010933577,
-0.0034813653,
0.033820026,
0.017086007,
0.00025092778,
0.027088286,
0.020400545,
0.034787986,
-0.011688882,
0.015692726,
0.035491962,
-0.014614768,
0.04241436,
0.044995595,
-0.019300587,
-0.040067784,
-0.015956717,
-0.015927384,
-0.00041340067,
0.009312973,
0.025885666,
-0.05455789,
0.0147980945,
-0.0120701995,
-0.056904465,
0.015135415,
0.027322944,
0.007355049,
0.0041028415,
0.035022646,
0.02876022,
-0.027088286,
-0.023363097,
-0.0025940663,
-0.021075185,
0.0035106975,
0.025313688,
-0.015766056,
-0.00049818907,
0.034318674,
-0.019109927,
-0.015458069,
-0.0038388516,
-0.025900332,
0.011754879,
-0.023817746,
-0.03082814,
-0.013998792,
-0.02012189,
0.007773033,
0.030094836,
0.016455363,
0.04039044,
-0.017349996,
-0.025167027,
0.036606584,
-0.023216436,
0.04537691,
-0.025123028,
-0.0005023139,
0.019491246,
-0.019520579,
-0.0051074694,
0.0054264567,
0.0048324796,
0.020811195,
-0.004755483,
-0.009950949,
-0.057344448,
-0.0047041513,
0.006229426,
0.008953654,
-0.022967111,
0.0064017526,
-0.030358827,
0.001595855,
0.030476155,
-0.041006416,
0.019344585,
-0.06441351,
-0.012304857,
0.036606584,
0.024727045,
-0.005140468,
0.02053254,
-0.01759932,
-0.023363097,
0.038865164,
0.034523997,
-0.009598962,
0.011388226,
-0.025167027,
-0.042179704,
-0.024639048,
-0.028070914,
0.018024636,
0.033174716,
0.036342595,
0.0048654787,
0.031033468,
-0.0037306892,
-0.019887231,
0.025401684,
-0.017584654,
0.047987476,
-0.01748199,
0.06494149,
-0.013852131,
0.0076117055,
0.009818953,
0.061304297,
0.032118756,
-0.033820026,
-0.0021760825,
0.029772183,
-0.06828536,
-0.042443693,
0.026853628,
0.016528694,
0.010684254,
0.011292896,
0.014688099,
-0.0025262355,
0.0422677,
0.012385521,
-0.04426229,
0.0053201276,
-0.039862458,
0.010244271,
0.029244203,
-0.010486261,
0.013250821,
-0.035139974,
-0.0061854273,
0.025445683,
0.048280798,
0.041299738,
-0.04414496,
0.0044108294,
0.0071020587,
-0.0064457506,
-0.0021485835,
0.010808916,
-0.0075823735,
-0.0097016245,
-0.017042007,
0.015692726,
-0.037515882,
-0.049659412,
-0.021104516,
0.07350649,
0.03959847,
0.025724338,
-0.08828992,
-0.030740146,
0.021427171,
-0.044907596,
-0.0031202126,
-0.01692468,
-0.022087146,
0.019197924,
0.020312548,
-0.025108362,
0.012825504,
-0.022981778,
-0.006742739,
-0.012884169,
0.004561157,
0.0029808846,
-0.042385027,
-0.019021932,
0.046168882,
-0.019725904,
-0.091692455,
-0.00082175987,
0.013881464,
-0.0009862952,
0.04578756,
0.053560596,
-0.018391289,
-0.0069187325,
-0.03959847,
0.042179704,
-0.03120946,
-0.019051263,
-0.021309843,
-0.07638105,
0.008125019,
0.026413646,
-0.017130004,
-0.04443828,
-0.034230676,
-0.020136554,
-0.0063614207,
-0.007531042,
-0.028906882,
-0.00011916206,
-0.027762927,
0.024785709,
0.043910302,
-0.0027663931,
-0.0070140623,
-0.037691876,
-0.023597755,
0.02606166,
-0.004971808,
-0.0020715867,
-0.01767265,
0.006753739,
0.02086986,
-0.031297456,
0.06318156,
0.016836682,
0.0370759,
-0.005485121,
0.041329067,
-0.022732453,
0.0062550916,
-0.039715797,
-0.018068634,
0.045259584,
-0.011358894,
0.003283373,
-0.054205906,
0.031180128,
0.025108362,
0.054675218,
0.00018309709,
0.017907308,
-0.042619687,
-0.07092526,
0.041123744,
-0.059192378,
0.026648303,
-0.0013135326,
0.0215445,
0.059544366,
-0.04789948,
-0.0003524447,
0.04880878,
0.0065887454,
0.050715372,
-0.035022646,
0.02226314,
0.03786787,
-0.029698852,
-0.026662968,
0.0362546,
-0.013001497,
0.017174002,
-0.023583088,
-0.017511323,
-0.03203076,
-0.0016664355,
0.05012873,
-0.05710979,
0.014240783,
-0.02620832,
-0.036635917,
-0.032734733,
0.020180553,
0.05464589,
0.021031186,
-0.0017736814,
0.0465502,
0.0049498086,
0.042590354,
0.0024272394,
0.0023429093,
-0.04003845,
0.048222136,
-0.013419481,
-0.009378971,
0.028144246,
0.054616556,
-0.034494665,
-0.03772121,
-0.011285564,
0.070514604,
-0.046462204,
-0.013331484,
-0.023025777,
0.0013538643,
0.0034941982,
0.019153927,
0.029977508,
0.0030047172,
-0.018112633,
0.029317534,
-0.026413646,
-0.01515008,
0.004498826,
0.018948602,
-0.011791544,
-0.029258868,
-0.058664396,
-0.022116479,
-0.010082943,
-0.019652573,
0.049043436,
0.0063540875,
-0.015927384,
0.023568422,
0.009994946,
0.039833125,
0.0033475372,
0.03200143,
0.050598044,
-0.07221588,
-0.060482994,
-0.015824722,
0.0125761805,
-0.013918129,
-0.017393993,
-0.029097542,
-0.0027700595,
0.056141827,
0.048339464,
-0.01586872,
-0.0800769,
0.007927027,
-0.04696085,
-0.011102238,
-0.007307384,
0.017320663,
-0.022703122,
0.024037737,
-0.008242348,
-0.002729728,
-0.0010073778,
0.05279796,
-0.030505488,
-0.049806073,
-0.019975228,
0.003470366,
-0.023891076,
-0.035931945,
0.006057099,
-0.037427887,
-0.011828209,
0.006064432,
-0.033321377,
-0.018552616,
0.0005440206,
0.03200143,
-0.015399405,
0.012458852,
-0.025313688,
-0.017863309,
-0.00006891921,
0.012231527,
-0.037926532,
0.010317601,
0.0414464,
-0.043998297,
0.04094775,
0.024081735,
0.022981778,
0.03252941,
0.011578886,
0.013309485,
-0.02293778,
-0.0034813653,
0.011102238,
0.018581947,
-0.06928265,
0.005224798,
0.020356547,
0.03610794,
-0.023480425,
0.008828992,
-0.033673365,
0.02606166,
-0.016968677,
0.007927027,
0.021471169,
0.02793892,
0.021823157,
-0.029493526,
0.03733989,
-0.017276665,
-0.02639898,
-0.008249681,
-0.04508359,
0.04150506,
-0.024785709,
0.021295177,
-0.029962841,
-0.019329919,
0.023817746,
-0.013265487,
0.0026068992,
0.06388553,
-0.0034080348,
-0.010508261,
0.026897626,
0.0042385026,
-0.033145387,
0.013529477,
-0.07327183,
-0.03909982,
0.034993313,
-0.06488282,
0.0049241427,
-0.039129153,
-0.016499363,
-0.039921124,
0.0054301233,
-0.016118044,
0.015692726,
-0.024771042,
-0.024023071,
0.02086986,
-0.062888235,
-0.033790693,
0.003039549,
0.043030336,
-0.0005325627,
-0.04109441,
0.0030890473,
0.011344228,
0.008491672,
0.011586219,
-0.011292896,
-0.015399405,
0.010838248,
0.05546719,
-0.028554896,
0.016000714,
-0.04839813,
-0.0029313867,
-0.052621964,
0.0077290344,
-0.016426032,
0.053120613,
0.01966724,
0.004256835,
0.042179704,
0.04963008,
0.0060607656,
-0.011006908,
0.011938205,
0.033174716,
0.025284356,
-0.008491672,
-0.0008135102,
-0.015546066,
0.024169732,
0.0147980945,
0.020664534,
-0.008718996,
0.016895346,
0.026912292,
0.019564576,
-0.022497797,
0.017276665,
-0.0038021863,
0.020957856,
-0.0149154235,
-0.023847077,
-0.03255874,
-0.016030047,
0.0097016245,
0.05203532,
-0.016220706,
0.0025372352,
0.037926532,
-0.037193228,
0.032089427,
-0.011461557,
-0.012693509,
0.019637907,
-0.010493594,
0.029420195,
-0.015018086,
-0.014556103,
-0.009525632,
0.018933935,
0.02019522,
-0.02293778,
0.014394777,
0.024492387,
0.033966687,
0.011982203,
0.0056207827,
-0.015912717,
0.01627937,
-0.0063394215,
-0.04963008,
-0.011820876,
0.0019799233,
0.017423326,
0.011197567,
0.03335071,
-0.010530259,
-0.026589638,
-0.047430165,
0.015912717,
-0.030388158,
-0.0029112208,
-0.004036844,
-0.007307384,
-0.05801909,
0.018420622,
-0.016822016,
0.021779157,
0.011014241,
0.036841244,
0.0033695365,
0.0509207,
0.011989537,
-0.031297456,
0.02079653,
0.010288269,
-0.026193654,
-0.026105657,
0.0052577965,
-0.020517873,
-0.0038681838,
-0.04963008,
-0.04373431,
0.018141964,
0.01692468,
-0.05722712,
-0.033702698,
-0.009393637,
0.044496946,
-0.038659837,
-0.034934647,
0.04678486,
-0.012884169,
-0.019271255,
-0.028144246,
0.041299738,
-0.05749111,
-0.012202195,
-0.04816347,
0.018919269,
-0.013038162,
-0.016778018,
-0.0054154573,
-0.011138903,
0.008469673,
0.0041101743,
-0.023612421,
0.03082814,
-0.02221914,
0.049542084,
0.010346933,
0.03200143,
-0.024199065,
0.0073807146,
0.027953586,
0.028628226,
0.017188668,
0.075031765,
0.047694154,
-0.0073697153,
-0.034523997,
0.0071350574,
0.009730957,
-0.0645895,
0.018816605,
0.03933448,
0.021309843,
-0.023245769,
-0.02301111,
-0.022395134,
0.066584095,
-0.007758367,
-0.05526186,
-0.038307853,
-0.0047408165,
-0.07655704,
-0.023905743,
-0.039715797,
0.04789948,
-0.046374205,
-0.033468038,
-0.012972165,
-0.06552813,
0.25460348,
0.006027767,
0.025431016,
0.041974377,
0.038894497,
0.10049211,
0.010691587,
0.011886873,
0.019197924,
-0.072743855,
-0.021984484,
-0.033262715,
0.0018570948,
0.03736922,
-0.03455333,
0.033966687,
-0.045435578,
0.022512462,
0.00872633,
-0.021427171,
-0.030446822,
0.03238275,
0.016822016,
0.06617344,
0.024389723,
0.020972522,
0.023935074,
-0.023143105,
0.005818775,
-0.052856624,
0.023245769,
-0.006148762,
0.0020715867,
-0.009290974,
-0.016514027,
0.047312837,
0.0077290344,
-0.032646738,
-0.032236088,
-0.012693509,
0.034113348,
-0.011952871,
0.011322229,
0.016308703,
0.012554181,
0.037838537,
-0.040126447,
-0.013456146,
0.04229703,
-0.012708175,
0.04147573,
-0.03505198,
0.05464589,
-0.05534986,
0.015208745,
0.020576539,
-0.027792258,
-0.033526704,
-0.04080109,
-0.047283504,
0.01680735,
0.0067574056,
-0.005364126,
0.013214156,
-0.038043864,
-0.009444968,
-0.020385878,
0.050363384,
-0.031854767,
-0.017159337,
0.026692301,
0.000698473,
0.011439558,
-0.042942338,
0.00491681,
0.009892284,
0.044790268,
0.03522797,
-0.0073953806,
-0.025900332,
0.008345011,
-0.01413812,
0.00025024032,
-0.03575595,
-0.0023942408,
-0.0025519014,
-0.047430165,
-0.011952871,
0.001652686,
0.017247332,
0.0065007485,
0.053941913,
-0.025958996,
0.027982919,
-0.0058481074
] | Replacing existing tools
Replacing existing tools can be done simply by assigning a new item to the agent's toolbox. Here's how one would do so:
thon
from transformers import HfAgent, load_tool
agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
agent.toolbox["image-transformation"] = load_tool("diffusers/controlnet-canny-tool") |
[
0.0067893704,
-0.019057155,
-0.011750302,
0.015220885,
-0.059337992,
-0.031214545,
-0.014627505,
0.04374452,
0.018505175,
0.065133795,
0.049567923,
0.017663402,
0.005205874,
-0.009859766,
-0.009100792,
-0.006289137,
0.007437948,
-0.0076656407,
-0.023169415,
-0.007879534,
0.005119627,
0.023031421,
-0.06369864,
-0.034912817,
-0.02986219,
0.005250722,
-0.0011470862,
-0.0096734725,
0.07595263,
0.0443241,
-0.040708624,
0.0059544984,
0.0029651746,
-0.014351514,
-0.02895142,
-0.034719624,
0.034664426,
0.0030962701,
-0.018215384,
-0.03184932,
0.014806899,
-0.03400205,
0.027295476,
-0.07308233,
-0.06088354,
-0.0034326338,
-0.015110489,
-0.03129734,
-0.012854265,
-0.04694601,
0.011715803,
-0.0004055769,
0.009514778,
-0.013944428,
-0.037369136,
-0.005264522,
0.009086993,
0.004816037,
-0.011570908,
0.01715282,
-0.017511608,
0.02892382,
-0.017470209,
-0.0442413,
0.030276176,
0.051306665,
-0.014751701,
-0.011336316,
0.016173054,
-0.02013352,
-0.017594405,
0.04498648,
-0.02510135,
-0.018822564,
0.008714405,
-0.004484848,
0.028247643,
-0.02013352,
-0.019457342,
0.026840093,
0.005412867,
0.040653422,
0.0016576689,
-0.012329883,
-0.020271514,
0.030690162,
0.043882515,
0.020188717,
0.024549369,
-0.013502843,
-0.011902098,
0.023459205,
0.026522702,
-0.023528203,
0.013102656,
0.06143552,
0.03458163,
0.03038657,
0.021154685,
0.0063615846,
0.043965314,
0.022576036,
-0.033808857,
-0.0076725404,
-0.03720354,
-0.026522702,
0.010598041,
-0.017401211,
0.005240373,
-0.01862937,
0.04081902,
-0.013075057,
-0.0051541254,
0.019070955,
-0.027336875,
0.06739692,
0.014751701,
-0.008024428,
-0.026481304,
-0.015759068,
0.04633883,
-0.008831701,
-0.044213705,
-0.040901817,
0.02983459,
-0.0047194404,
0.01947114,
0.021430675,
-0.006948065,
-0.028095849,
-0.014586106,
0.016642237,
0.0619875,
0.043358132,
0.019043356,
0.0740207,
-0.013047459,
0.018063588,
-0.0133234495,
-0.045317665,
0.002685734,
-0.004943683,
0.015193285,
0.079264514,
0.013792633,
-0.0124540785,
0.0012980186,
-0.0032911885,
-0.047746383,
0.01653184,
-0.026108716,
0.0325117,
-0.0050989273,
-0.025887923,
0.005875151,
-0.045400463,
0.0040432634,
-0.0027650814,
0.034719624,
-0.0019474591,
-0.017028624,
0.03781072,
-0.02569473,
0.037948716,
-0.026467504,
0.07230955,
-0.03516121,
0.0030807457,
0.005230023,
0.022093052,
0.022382842,
0.01271627,
-0.02864783,
0.011543309,
0.047359996,
0.027654264,
0.016366245,
0.027819859,
-0.005792354,
0.019305546,
-0.01829818,
0.006879067,
0.007562144,
0.0037017248,
0.025073752,
-0.005699207,
0.03747953,
0.036541164,
-0.017911794,
-0.009038694,
0.036485966,
0.029475803,
-0.0054749646,
0.051223867,
0.035575196,
0.012536876,
-0.023679998,
0.05884121,
0.04813277,
-0.042585358,
-0.0042192074,
0.021209883,
-0.024494171,
0.02510135,
-0.02039571,
-0.03184932,
-0.01152261,
0.049457528,
0.0007395687,
0.030082982,
0.038307503,
0.05583291,
-0.04760839,
-0.035602797,
-0.007838135,
0.012785267,
0.034912817,
0.04219897,
0.021168483,
-0.015151887,
0.021113286,
-0.0006235664,
0.047387596,
-0.010466945,
0.00111,
-0.010315151,
0.006685874,
0.03665156,
-0.004843636,
0.021099485,
-0.004874685,
0.01948494,
0.033864055,
0.07760857,
0.0025511887,
0.01123972,
0.047056407,
0.016062656,
-0.049181536,
0.00251669,
0.047691185,
0.057461254,
0.017911794,
0.066734545,
-0.040432632,
-0.016932027,
0.015303683,
0.0059268996,
0.009425081,
-0.00010080128,
-0.04644923,
0.05762685,
0.01505529,
0.028040651,
-0.021251282,
-0.019553939,
0.024080185,
0.047773983,
-0.07473827,
-0.050727084,
-0.025929322,
0.03982545,
-0.026702097,
-0.025763728,
0.039494265,
0.0031307691,
0.01210219,
0.02187226,
0.0030979952,
-0.057240464,
-0.02805445,
-0.029475803,
-0.037451934,
0.01919515,
-0.036955148,
0.0073758503,
-0.026439905,
-0.05475655,
0.03190452,
-0.045400463,
0.016766433,
0.010466945,
-0.019567737,
0.023404008,
-0.013157855,
-0.012619673,
-0.029448204,
0.020644102,
-0.015110489,
0.030883355,
-0.03634797,
-0.04545566,
-0.022810629,
-0.04219897,
0.020299112,
0.026853891,
0.024604568,
-0.006913566,
-0.007879534,
-0.07782937,
-0.035354402,
-0.022645034,
-0.028013052,
-0.014096223,
-0.017263215,
-0.007603543,
0.03190452,
-0.018974358,
0.043220136,
0.05492214,
-0.053956173,
0.019774731,
-0.021485873,
0.009728671,
-0.03665156,
0.020188717,
0.02275543,
-0.016228251,
-0.04498648,
-0.02212065,
-0.013219953,
0.014323915,
-0.009942563,
0.0007542307,
-0.025929322,
0.026412306,
-0.009128391,
-0.06629296,
0.061049134,
-0.024963355,
0.013364848,
-0.029172212,
-0.034084845,
0.025059951,
0.021416875,
0.007217156,
-0.00738275,
-0.034029648,
-0.0650786,
0.03389165,
-0.007914032,
-0.057737246,
0.029889788,
-0.018794963,
0.01597986,
-0.042750955,
0.013288951,
-0.06684494,
-0.0035102563,
-0.02748867,
0.048988342,
0.022134451,
-0.014296317,
0.038831886,
0.047442794,
0.047939576,
-0.02983459,
-0.004012214,
0.037424333,
0.000115032046,
0.016794031,
0.064692214,
-0.0017232167,
-0.017028624,
-0.015427878,
-0.020961491,
0.0071619577,
-0.0063167363,
0.04965072,
-0.016131654,
0.0324841,
0.013109556,
-0.017663402,
0.012309183,
-0.034388438,
0.008845501,
0.030772958,
-0.008224522,
0.039797854,
-0.056522887,
-0.014434312,
0.036182374,
-0.0011565734,
0.039549462,
-0.01358564,
0.02097529,
-0.01984373,
0.027254079,
0.009086993,
0.0024045687,
0.017828997,
-0.03667916,
0.009839067,
-0.030690162,
-0.04462769,
-0.03339487,
0.021982657,
0.011405314,
0.009411282,
0.022700232,
0.021361677,
-0.0077484376,
-0.0050161304,
-0.0055301627,
-0.019402143,
0.029917387,
-0.036154777,
0.03099375,
-0.0026719347,
0.002395944,
-0.033477668,
-0.008914499,
-0.017787598,
0.043634124,
0.001714592,
-0.006530629,
-0.059117198,
-0.002570163,
0.00012096153,
0.011136224,
-0.017870395,
-0.020588903,
-0.040101442,
0.01686303,
0.027378274,
-0.024673564,
-0.0051679253,
-0.057185266,
0.008942097,
0.029199813,
-0.0041778088,
-0.0125230765,
0.0051230765,
-0.047359996,
-0.0531282,
0.017594405,
0.044848483,
-0.016159253,
0.010094359,
-0.014296317,
-0.0324289,
-0.0043330532,
-0.019595336,
0.033560466,
0.0057164566,
0.009004195,
0.0054094167,
0.046614822,
0.0019422843,
-0.044682886,
0.050092306,
-0.03822471,
0.017359812,
-0.012888764,
0.062373888,
-0.017014824,
-0.011612307,
-0.012971561,
0.05149986,
-0.011998694,
0.005930349,
0.0010444522,
0.016435243,
-0.040073846,
-0.035933983,
0.00024925405,
0.0086316075,
-0.031545732,
0.018767364,
-0.005261072,
0.01032895,
0.0050575286,
-0.009770069,
-0.03046937,
0.035409603,
-0.027833657,
-0.009293986,
0.0065444284,
-0.0005541375,
0.01270247,
-0.028868623,
0.010839533,
0.020878693,
0.02750247,
-0.041536596,
-0.040018644,
-0.02159627,
0.01744261,
-0.008017529,
0.028841024,
-0.0054439157,
0.00250979,
0.0036430766,
-0.0944992,
-0.008645408,
-0.030524567,
0.009066293,
-0.007858834,
0.034112446,
0.049899112,
0.0071619577,
-0.03397445,
-0.017925594,
0.026840093,
-0.007769137,
-0.025542935,
-0.017911794,
-0.007182657,
0.031545732,
0.018104987,
-0.05050629,
0.035713192,
-0.00014780594,
0.032622095,
0.011702004,
-0.0021648018,
-0.0039432165,
-0.037451934,
-0.025943123,
0.058454823,
-0.01242648,
-0.086937055,
-0.02514275,
0.018367179,
-0.01802219,
0.030662563,
0.009369883,
-0.012881864,
-0.034471232,
-0.052245032,
0.019691933,
-0.0021751514,
-0.022700232,
0.006409883,
-0.030855756,
0.009549277,
0.02339021,
0.011984894,
-0.04818797,
-0.029282609,
-0.04691841,
0.043551326,
-0.024549369,
0.0029306759,
0.028151046,
-0.0055405125,
-0.010563542,
0.0443241,
0.017870395,
-0.030966152,
-0.018808763,
-0.046725217,
0.03601678,
-0.0045676455,
-0.02775086,
-0.0071619577,
-0.022838227,
0.03309128,
-0.017649602,
0.013730535,
-0.007506946,
0.018353378,
-0.0650234,
0.04929193,
0.0030048483,
0.016683636,
-0.03822471,
-0.03714834,
0.031711325,
-0.0025891373,
-0.005951049,
-0.034719624,
0.038666293,
0.04818797,
0.02839944,
-0.040018644,
0.03019338,
-0.04341333,
-0.028592633,
-0.00020656176,
-0.058565218,
0.016435243,
-0.040101442,
-0.003222191,
0.04230937,
-0.06596177,
-0.0027133331,
0.06276028,
0.008196923,
0.039466664,
-0.04873995,
-0.004484848,
0.012529976,
-0.018173985,
-0.020837294,
0.050975475,
-0.014903496,
-0.024425173,
-0.0177186,
-0.018215384,
-0.06281547,
0.029779391,
0.040046245,
-0.024963355,
0.021223681,
-0.01949874,
-0.03731394,
-0.002511515,
0.018725967,
-0.0023390208,
0.030883355,
0.011108624,
0.045372866,
-0.045372866,
-0.0021096037,
-0.018836362,
-0.00031480184,
-0.021734264,
0.038335104,
0.04816037,
-0.029668996,
0.054866944,
0.063367456,
-0.047773983,
-0.04586965,
0.00013486887,
0.022700232,
-0.02339021,
-0.036844753,
-0.011467412,
0.0011858974,
-0.007955431,
0.0036465265,
0.027295476,
-0.007644941,
0.00591655,
0.015869463,
-0.011232819,
-0.0118124,
0.011232819,
0.049788713,
-0.01241268,
-0.011598508,
-0.07241995,
-0.03935627,
0.006385734,
0.0031186945,
0.061877105,
0.024908157,
-0.0066548246,
-0.0013506293,
-0.011074125,
0.0039121676,
-0.033284474,
0.075511046,
0.04691841,
-0.09659673,
-0.053376593,
-0.0034688576,
0.037396733,
-0.012447178,
-0.00039371793,
-0.018201584,
0.010301352,
0.013054358,
0.04611804,
-0.031738926,
-0.051527455,
0.021030487,
-0.03756233,
0.026674498,
0.028316641,
-0.014310116,
0.0074655474,
0.0072792536,
0.013392447,
0.009300885,
0.00036115965,
0.008052028,
-0.012971561,
-0.04611804,
-0.0034740325,
0.037645128,
-0.011957295,
-0.037286337,
-0.011156922,
0.009335384,
-0.022576036,
-0.034167644,
-0.026412306,
-0.0016775058,
-0.01210219,
0.053266197,
-0.03317408,
-0.0023545453,
-0.033201676,
-0.016366245,
0.010598041,
0.0013989276,
-0.0678937,
0.026053518,
0.05172065,
0.017635804,
0.062208295,
-0.023197016,
0.0063374355,
0.016504241,
0.018932959,
0.0324841,
-0.0074862465,
-0.014296317,
0.008307319,
-0.014696503,
-0.041536596,
-0.0052783214,
0.0117917005,
0.028427038,
-0.011005128,
-0.0072861533,
-0.0071895565,
0.03574079,
-0.018436177,
0.019567737,
0.024866758,
0.021444473,
0.045842048,
-0.06364345,
0.009066293,
-0.024287177,
-0.019360745,
-0.027267877,
-0.020285314,
0.032980885,
-0.009287085,
0.0049195336,
-0.029448204,
-0.011453613,
-0.047746383,
0.012861165,
-0.04261296,
0.044848483,
0.07363431,
0.028427038,
0.00354303,
-0.029172212,
0.0026546852,
0.05966918,
-0.06612736,
-0.025349742,
-0.002188951,
-0.023735197,
-0.0154416775,
-0.03861109,
-0.035271607,
-0.014227319,
-0.00078959204,
-0.021472074,
0.0032428904,
0.014627505,
0.033229277,
0.024866758,
-0.035713192,
-0.01857417,
0.013426946,
0.042336967,
-0.014068624,
-0.05762685,
-0.0073413514,
-0.01684923,
0.003698275,
0.019567737,
-0.010494545,
0.04081902,
0.0069825635,
0.008962797,
-0.019622937,
0.003756923,
-0.048546758,
-0.0011005128,
-0.008017529,
-0.007624242,
-0.040377434,
0.016462842,
0.019719532,
-0.007472447,
0.0046297433,
0.034084845,
0.023983588,
-0.017815197,
-0.0036568763,
0.041674588,
0.032953285,
-0.04556606,
0.030220978,
0.03458163,
-0.003605128,
0.022893425,
0.03455403,
0.0055060135,
0.0016033333,
0.03781072,
-0.011039627,
-0.017704802,
-0.008673007,
-0.013061258,
-0.028592633,
0.0024597668,
0.02453557,
0.003632727,
-0.04611804,
-0.034333237,
0.025266945,
-0.004933333,
0.015124288,
-0.01684923,
-0.074131094,
0.032980885,
0.006585827,
-0.008107225,
0.0003301107,
-0.03574079,
0.020768298,
0.009397482,
0.0020578553,
-0.04368932,
0.027612865,
0.026715895,
-0.0028082049,
0.01506909,
0.03276009,
0.026439905,
0.01418592,
-0.02721268,
0.006858368,
0.014751701,
-0.005940699,
-0.01857417,
0.00073525636,
0.008969696,
-0.008459114,
0.011377715,
0.008086527,
-0.044517294,
-0.009176689,
-0.023293613,
0.026743496,
-0.06977044,
-0.02011972,
0.031407736,
0.0011729603,
-0.059503585,
-0.0064788805,
0.025887923,
0.039190672,
-0.009390582,
0.046835616,
0.017966991,
0.051361863,
0.02187226,
-0.0068618176,
-0.027129881,
0.0128335655,
-0.022369044,
-0.044544894,
0.01419972,
-0.037396733,
0.02130648,
-0.005499114,
-0.024093986,
0.026232913,
0.010963729,
-0.026384708,
-0.01592466,
-0.017290816,
0.04931953,
-0.03643077,
-0.018974358,
0.04219897,
0.013413146,
0.016932027,
-0.02802685,
0.012322983,
-0.0678937,
0.025529137,
-0.041784987,
0.017484007,
0.0042088577,
-0.050009508,
-0.014351514,
-0.0042399066,
-0.01711142,
-0.025322143,
-0.028427038,
-0.024314778,
0.015455477,
0.0064857807,
0.0034050348,
0.043965314,
-0.009866666,
0.019774731,
0.0134614445,
0.052383028,
-0.011363915,
0.05873081,
0.031214545,
-0.013647738,
-0.003308438,
-0.00916979,
-0.006002797,
-0.03872149,
0.022962423,
0.007055011,
0.0015403728,
-0.043275334,
0.007451748,
0.018242983,
0.09356084,
-0.014751701,
-0.041453797,
-0.009487179,
-0.052935008,
-0.06822489,
-0.0040053143,
-0.077277385,
0.024287177,
-0.023542004,
0.036844753,
0.03074536,
-0.051251467,
0.22366284,
0.020892493,
0.0045641954,
0.047139205,
0.03427804,
0.08975216,
0.038583495,
-0.009528577,
0.038169507,
-0.086495474,
0.011729603,
-0.006527179,
-0.0025598134,
0.030800557,
-0.0035292306,
0.023652399,
-0.06364345,
-0.025253145,
0.03902508,
-0.04402051,
-0.0384455,
0.012854265,
0.015248484,
0.091463305,
-0.022658832,
0.014931095,
0.042419765,
-0.031462934,
-0.007141258,
-0.06474741,
0.037948716,
-0.024080185,
0.014254917,
-0.02448037,
-0.035713192,
0.02423198,
-0.013102656,
-0.03104895,
-0.0077070394,
0.002985874,
0.0017154544,
0.026922889,
-0.028123448,
0.014958694,
-0.0024304427,
0.040073846,
0.007155058,
0.010073659,
0.028192446,
-0.079319715,
0.06861128,
-0.024880558,
0.08704746,
-0.010977528,
-0.027309276,
0.0066617248,
0.004553846,
-0.022852026,
-0.009625174,
-0.02747487,
0.034250442,
-0.0104738455,
-0.023983588,
0.030855756,
-0.044158507,
-0.021389276,
0.0033118878,
0.026674498,
-0.0009418181,
-0.008079627,
0.020243915,
-0.0022268996,
0.0006054545,
-0.022962423,
0.035933983,
-0.017290816,
0.048022375,
0.024218181,
0.042971745,
-0.0042054076,
-0.01625585,
-0.016959626,
-0.061821908,
-0.06259468,
-0.0040432634,
0.016614638,
-0.04462769,
-0.0067238226,
0.0033325872,
0.015993658,
-0.027240278,
0.023555802,
-0.016476642,
0.0031204193,
-0.008010629
] | Beware when replacing tools with others! This will also adjust the agent's prompt. This can be good if you have a better
prompt suited for the task, but it can also result in your tool being selected way more than others or for other
tools to be selected instead of the one you have defined. |
[
0.026045015,
0.01699637,
-0.037159767,
0.005983416,
0.013437237,
-0.017599612,
-0.010594455,
0.02866912,
0.0038287076,
0.07739607,
0.010458725,
-0.009915806,
0.025094908,
-0.02738723,
0.04847057,
0.011906507,
0.003694863,
-0.021852477,
-0.03818528,
0.008015591,
-0.0069712265,
0.05854473,
-0.05718743,
-0.07359564,
-0.012441886,
0.019876854,
0.026331555,
-0.017584532,
0.0834285,
-0.0038173967,
-0.039934684,
-0.0019907018,
-0.0112354,
-0.023918582,
0.0056931055,
-0.023390746,
0.010918697,
0.010828211,
-0.016830478,
-0.01826318,
0.026150582,
-0.015322371,
0.035350036,
-0.04017598,
-0.04831976,
0.0015816276,
0.015118777,
-0.013965074,
-0.0176901,
-0.03230366,
-0.007955266,
0.03242431,
-0.033932418,
0.008158861,
-0.040507764,
0.008513266,
0.010737725,
-0.00024436053,
-0.021264315,
0.03818528,
-0.007144659,
0.07962807,
-0.018760856,
-0.038004305,
0.020133233,
0.050039005,
-0.027734095,
-0.028835014,
-0.035289712,
-0.013120534,
-0.011258022,
0.022938313,
0.021324638,
-0.03483728,
-0.02429561,
0.024868691,
0.0021942963,
-0.019967342,
0.03456582,
0.019469665,
0.059178133,
0.055558674,
0.0011791515,
-0.0182481,
-0.035983443,
-0.0004213275,
0.0429509,
0.012404183,
-0.025396528,
-0.056493703,
-0.0048636463,
0.04014582,
-0.00085443706,
0.03272593,
0.04424787,
0.0019275497,
-0.01376902,
0.046570357,
-0.026029933,
0.05477446,
0.025547339,
0.08879736,
-0.015910532,
0.01909264,
-0.03326885,
-0.012864156,
0.04777684,
0.01066986,
0.011559643,
-0.051878896,
0.012879237,
-0.0086112935,
0.016257398,
0.027010202,
0.015985938,
0.046962462,
-0.016317721,
-0.0025185393,
-0.039029818,
-0.03032804,
-0.0640644,
-0.02865404,
0.0068807397,
-0.036948632,
-0.01670983,
-0.012087481,
0.051335976,
0.017780585,
-0.005885389,
0.013618209,
-0.02866912,
-0.008626374,
0.010850833,
0.049888194,
-0.0018973876,
0.0039022279,
0.016393127,
-0.0039512413,
-0.00091381883,
-0.01755437,
0.04313187,
-0.026271231,
0.035018254,
0.051758245,
-0.024702799,
0.0010066617,
0.012472048,
-0.0077592125,
-0.010096779,
-0.0012969724,
-0.029015986,
-0.0130300475,
-0.007355794,
0.029770039,
0.013806723,
-0.019077558,
-0.048530895,
0.035832632,
0.0021886409,
0.011190156,
-0.033238687,
0.0039474713,
-0.014983047,
0.049073815,
-0.044006575,
0.0075028343,
-0.03963306,
-0.0056629432,
0.02698004,
-0.016332803,
0.025441771,
0.010519049,
0.004995606,
-0.023089124,
0.032484632,
0.044881277,
0.021384962,
-0.0019831613,
-0.041653927,
0.0076423343,
0.013241183,
-0.024401177,
0.0030388364,
-0.0165741,
-0.0026146811,
0.00065744057,
0.031911552,
-0.011167536,
0.0057421187,
-0.010059076,
0.016649505,
0.040326793,
-0.06949359,
0.032635443,
-0.024657555,
0.017901234,
-0.021007936,
-0.0070466315,
-0.007600861,
-0.07528472,
-0.015518425,
0.04349382,
-0.0066809156,
-0.019726045,
0.0058514564,
-0.009252239,
-0.013814264,
0.040115654,
-0.02556242,
0.020027665,
0.051667757,
0.0041359845,
-0.05323619,
-0.014372263,
0.028593715,
-0.01502829,
0.0009034506,
0.015654154,
0.026587933,
0.042196844,
0.013588048,
0.0018643978,
0.00785724,
0.029724797,
-0.00012736439,
0.0056139296,
0.01502829,
0.061138675,
-0.015970858,
0.013520183,
-0.0030067891,
0.022651773,
0.015096155,
0.03456582,
0.04044744,
0.0024223975,
0.00024412488,
0.027628528,
-0.0069976184,
-0.003495039,
0.0033819308,
0.04083955,
-0.0020566816,
0.025743393,
0.0011414487,
-0.021822315,
0.040809385,
0.0033611944,
0.007238915,
0.022365233,
-0.1003193,
0.05573965,
-0.029860526,
-0.013919831,
-0.06683932,
0.00017567094,
-0.003625113,
0.040417276,
-0.047867328,
0.008181483,
0.020419775,
0.013045128,
0.00017531749,
-0.013753939,
0.02809604,
0.027899986,
0.025637826,
-0.010684941,
-0.020525342,
-0.056342892,
-0.03595328,
-0.042619113,
-0.07564667,
-0.008950617,
0.007514145,
0.007076794,
-0.0207968,
-0.026105339,
-0.014244074,
-0.044881277,
0.012389102,
0.005101173,
-0.024401177,
-0.023270097,
0.02034437,
0.030644743,
-0.012547454,
-0.009063725,
-0.0011989453,
0.08312688,
-0.018429073,
-0.0078044557,
-0.005866538,
-0.000058645346,
0.044127222,
0.0076574152,
-0.002064222,
-0.009146671,
-0.010059076,
-0.014425047,
-0.03522939,
-0.025924366,
0.002373384,
-0.012472048,
-0.0008454827,
0.007834618,
-0.003706174,
-0.0057685105,
0.04762603,
0.03740106,
-0.0038569847,
0.011431454,
0.011763237,
-0.0063566724,
-0.027402312,
0.03918063,
0.026195826,
0.0035270862,
-0.04479079,
0.006967456,
-0.014930263,
-0.012698264,
-0.0002402368,
-0.037763007,
-0.055377703,
0.052632947,
-0.0023187152,
-0.06472797,
0.041503116,
-0.0005306653,
-0.032544956,
-0.0033197214,
-0.04439868,
0.000688074,
0.0026090257,
0.019876854,
-0.05884635,
-0.0064094565,
0.0011989453,
0.009591563,
0.015970858,
-0.059178133,
0.026286311,
0.011423914,
0.04364463,
-0.017041614,
0.044428844,
-0.04020614,
0.006560267,
0.010880995,
0.027794419,
0.032816418,
0.011642589,
0.0032348903,
0.007073024,
0.00042344828,
-0.07196689,
-0.0021603638,
0.020676153,
0.011348508,
0.046027437,
0.033359334,
0.01278875,
-0.04454949,
-0.028774688,
-0.008196563,
-0.023224853,
0.0427096,
0.049948517,
-0.019318856,
0.009289942,
-0.00702401,
-0.07902483,
0.008943077,
-0.014221452,
-0.019499829,
0.046268735,
0.012426805,
0.04666084,
-0.02248588,
-0.0013422156,
0.027507879,
0.042800087,
0.0059193214,
-0.005843916,
0.014244074,
0.0036986333,
-0.0031406337,
-0.017252749,
-0.015103695,
0.006854348,
0.027719013,
0.015322371,
-0.071725585,
-0.019922098,
-0.0037570726,
0.009516157,
0.032906905,
0.036134254,
-0.012374021,
0.0114616165,
0.013527723,
0.007355794,
0.014922722,
0.011031806,
-0.011190156,
-0.022003287,
0.0026203366,
-0.0046374304,
0.0009746144,
-0.03408323,
-0.04578614,
-0.011363589,
0.010142022,
0.016272478,
0.041895222,
-0.04859122,
-0.0019341477,
-0.016106587,
0.062435646,
-0.043312844,
0.002192411,
-0.03372128,
0.026241068,
0.019786369,
-0.023511395,
0.027764257,
-0.035018254,
-0.021264315,
0.010911157,
-0.043584302,
-0.013942453,
0.031067012,
-0.0016796546,
-0.029935932,
0.040930033,
0.029860526,
0.00051511294,
0.0030803094,
-0.046510033,
-0.021023016,
0.006861889,
-0.03357047,
-0.016046263,
0.011785859,
0.03387209,
0.034867443,
0.04005533,
0.0118838865,
-0.029694634,
-0.007849699,
0.004143525,
-0.00035841114,
-0.0061606187,
-0.019469665,
-0.05380927,
0.014319479,
-0.03541036,
0.040809385,
0.028156364,
-0.022244584,
0.0019605395,
0.021897718,
-0.011763237,
-0.076189585,
0.025230637,
-0.010481346,
0.021415126,
0.01785599,
0.0118838865,
-0.0069486047,
-0.0015712593,
0.004528092,
-0.02767377,
-0.0031915323,
-0.021852477,
0.0010575603,
-0.0063830647,
-0.029377932,
-0.0015194182,
-0.042257167,
0.028880257,
-0.0015787999,
-0.025622744,
-0.0045582545,
-0.035983443,
-0.0235868,
-0.015118777,
-0.018549722,
0.032665607,
-0.032544956,
-0.029860526,
0.043192197,
-0.08553985,
-0.013309048,
-0.04774668,
-0.01686064,
0.012630399,
0.053356837,
0.039572738,
0.01109967,
0.007600861,
-0.055015758,
0.021596098,
-0.04174441,
-0.009274861,
-0.039844196,
-0.014485371,
0.014364723,
-0.010036455,
-0.016332803,
0.003214154,
-0.03354031,
-0.022229502,
-0.0014289317,
-0.013135616,
-0.0051087136,
-0.01966572,
-0.0525123,
0.063400835,
0.0018502593,
-0.06150062,
-0.033962578,
0.031067012,
0.012668102,
0.044338357,
0.0077441316,
0.01756945,
0.028819932,
-0.019077558,
0.052874245,
-0.066417046,
0.0077139693,
-0.0471736,
-0.05193922,
0.042920735,
0.027161013,
0.008943077,
-0.047083113,
0.0021415125,
-0.048259437,
0.014817155,
-0.029996255,
-0.017765505,
-0.018836262,
0.011069508,
-0.058363754,
0.048953164,
0.0054706596,
-0.004117133,
-0.022425557,
0.015488263,
0.02035945,
0.017478965,
-0.0039022279,
-0.015133858,
-0.013399534,
-0.004822173,
0.017765505,
0.008648996,
-0.012660561,
0.028488148,
-0.057247758,
0.064908944,
-0.0039474713,
0.007879861,
-0.023149448,
-0.00042816112,
0.007925104,
-0.03592312,
-0.012132724,
-0.0017899349,
0.03498809,
-0.013723778,
0.057850998,
-0.0114691565,
-0.016815398,
-0.07534505,
-0.10526589,
0.031338472,
-0.040930033,
0.025818799,
-0.011024265,
-0.0351389,
0.010353157,
-0.020449936,
0.0032669376,
0.055830136,
0.056101594,
0.03326885,
-0.041050684,
0.03372128,
0.033630796,
0.030418526,
0.004384822,
-0.003089735,
-0.043795437,
0.017614694,
-0.042800087,
-0.04017598,
-0.025456853,
0.02260653,
0.066356726,
-0.024129719,
0.040417276,
-0.028337337,
-0.05773035,
-0.02921204,
0.009206995,
-0.003525201,
0.031790905,
0.01965064,
-0.013572967,
0.02038961,
-0.015548587,
-0.015910532,
-0.015608911,
0.03019231,
0.050219975,
-0.031097174,
-0.04759587,
0.031640094,
0.021023016,
-0.02542669,
-0.047264084,
0.007842158,
0.031067012,
-0.008679158,
-0.023300258,
-0.018187774,
-0.0033065255,
-0.016136749,
0.010096779,
0.02821669,
0.0010396516,
0.007706429,
0.026452204,
-0.010880995,
-0.026783988,
-0.001952999,
0.044157386,
-0.02049518,
-0.023677286,
-0.01672491,
0.023858259,
-0.05073273,
0.009380428,
0.00898832,
-0.010028914,
0.04409706,
0.029860526,
0.014259155,
0.025999771,
-0.01870053,
0.028880257,
0.005587538,
-0.04352398,
-0.03746139,
0.010451185,
0.009501076,
0.0153148305,
-0.011717995,
-0.0049465923,
-0.010858373,
0.026391879,
0.022063611,
-0.044187546,
-0.07486245,
0.030870957,
-0.045544844,
-0.03230366,
0.0043207277,
0.0005825065,
0.0027183637,
0.00023658434,
-0.02978512,
-0.032273497,
0.035621498,
-0.012245832,
-0.018625125,
0.00603997,
-0.036556523,
-0.009063725,
-0.04859122,
-0.052572623,
0.0018436613,
-0.05196938,
-0.024551988,
-0.0065376456,
-0.038788524,
0.018233018,
-0.0029558905,
0.023556637,
-0.04340333,
-0.0008035385,
-0.05058192,
-0.0065263347,
-0.04578614,
0.038848847,
0.0022659313,
0.02811112,
0.012268454,
-0.02794523,
-0.0030237553,
0.020480098,
-0.028488148,
0.012999886,
0.0060739024,
0.037189927,
0.0005985301,
-0.017584532,
0.048259437,
0.002780573,
-0.037853494,
-0.02259145,
-0.0059080105,
0.010172185,
-0.034294363,
0.03495793,
-0.013806723,
0.0014864283,
0.013195939,
-0.014560777,
0.017192423,
-0.0065527265,
0.0230288,
-0.029438255,
0.03706928,
-0.022787502,
-0.026497446,
-0.03725025,
0.03061458,
0.04156344,
0.0019086984,
0.019394262,
0.023813015,
0.004294336,
-0.04509241,
-0.011363589,
0.051275652,
0.05073273,
-0.022139017,
0.0012253373,
0.030659823,
0.040085495,
-0.02866912,
0.032363985,
-0.039995007,
-0.034626145,
0.025245717,
-0.02500442,
0.0032970998,
-0.043554142,
0.04044744,
0.030403445,
-0.011763237,
0.031700417,
0.0051200246,
-0.0009661313,
-0.00898832,
0.024024151,
-0.10043995,
0.006122916,
-0.024340853,
-0.005282146,
-0.026060095,
-0.041774575,
-0.0020698775,
0.058966998,
-0.0030011337,
-0.016890803,
0.010292833,
-0.008354915,
0.020449936,
0.027055446,
-0.017931396,
0.017343234,
-0.10086222,
0.04632906,
-0.04126182,
0.029694634,
0.0028258162,
0.059359107,
-0.0027070527,
-0.0003136392,
0.008264428,
0.04198571,
0.011672751,
0.007977888,
0.061289486,
0.008656536,
0.029121554,
-0.043463655,
-0.01868545,
0.018052045,
-0.0106095355,
0.036888305,
-0.016875722,
-0.030584417,
0.024265448,
0.013331669,
-0.04328268,
0.004422525,
0.032363985,
0.040899873,
-0.017916316,
0.013233642,
-0.05661435,
0.0031689107,
-0.0002610911,
-0.0060588215,
0.029739877,
0.0001539919,
-0.009734833,
-0.0069636856,
-0.018941829,
-0.00059570244,
0.009078806,
-0.017901234,
0.009305023,
0.018474316,
0.032756094,
-0.022214422,
0.016362965,
0.023119286,
0.026919717,
0.017750423,
-0.037310578,
0.041201495,
0.029573986,
0.013919831,
0.005659173,
0.032635443,
-0.014364723,
0.0165741,
-0.032846577,
-0.016408209,
-0.0057194973,
0.039844196,
0.007940185,
0.008535888,
0.011431454,
-0.03749155,
-0.019922098,
-0.04005533,
0.015262047,
-0.034234036,
-0.013580507,
0.022169178,
-0.025909284,
-0.030388365,
0.0046864436,
-0.036616847,
0.0056101596,
0.04237782,
0.073897265,
0.006556497,
0.06508991,
0.021415126,
-0.0107452655,
0.0502803,
0.004256633,
-0.014259155,
-0.0035855253,
-0.008550969,
-0.0066771456,
0.011996994,
-0.034535658,
-0.03679782,
0.01643837,
0.0014157358,
-0.038728196,
0.008973239,
0.008927995,
0.045967113,
-0.041653927,
0.0014920838,
0.056493703,
-0.018308423,
0.008068374,
-0.027628528,
-0.0017607154,
-0.03851706,
-0.0052595246,
-0.054442678,
0.0059306324,
0.017056694,
-0.024763124,
0.016061343,
-0.013731318,
0.0066243615,
-0.01039086,
-0.013097913,
-0.05902732,
0.043192197,
0.07202721,
0.015563668,
0.0028333568,
-0.025652906,
-0.020555504,
0.018429073,
0.05477446,
0.017433722,
0.083790444,
0.06876969,
-0.019047396,
-0.024913933,
-0.014146048,
0.015088614,
-0.03821544,
0.005745889,
0.011401292,
0.0037457617,
-0.029106472,
-0.050129488,
-0.089340284,
0.04424787,
0.024702799,
-0.03299739,
-0.04364463,
-0.009742374,
-0.06177208,
-0.012992345,
-0.0525123,
-0.0052972273,
0.009485995,
-0.03103685,
0.013965074,
-0.0640644,
0.27097672,
0.033178363,
0.0224708,
0.01784091,
0.027025284,
0.060837053,
0.0087621035,
0.018489396,
0.014869939,
-0.02922712,
0.02737215,
-0.026995122,
-0.0057421187,
0.032544956,
0.029483499,
0.00730678,
-0.04551468,
-0.0012536142,
0.031338472,
-0.01839891,
-0.0052180514,
0.011627508,
0.05082322,
-0.0038023158,
0.04509241,
0.008226726,
0.007385956,
-0.014183749,
-0.012306157,
-0.0351389,
-0.03652636,
-0.0049239704,
0.035078578,
-0.010760346,
0.014990588,
0.06967456,
0.01278875,
-0.053025056,
-0.03020739,
0.0165741,
-0.0038871467,
-0.028307175,
0.01868545,
-0.024250366,
0.003004904,
0.029031066,
-0.0007922277,
-0.009727293,
0.04171425,
-0.034173712,
0.012894318,
-0.0685284,
0.02360188,
-0.0012903743,
-0.038879007,
-0.01910772,
-0.027975392,
-0.035862792,
0.025667988,
0.0086188335,
0.04702279,
0.029046148,
0.015367614,
-0.014960425,
-0.002429938,
-0.020480098,
0.0070843343,
0.05531738,
-0.028261932,
-0.05124549,
0.008204104,
0.012849075,
0.029317608,
-0.0114616165,
0.04180474,
0.016302641,
0.017313072,
0.012125183,
0.011265562,
-0.039421927,
0.032092527,
0.016227236,
-0.008995861,
-0.014817155,
0.024205124,
0.046600517,
-0.009003401,
0.0022244584,
-0.04117133,
0.04129198,
-0.016393127,
0.066055104,
-0.054261703,
-0.02360188,
0.0026938568
] |
Leveraging gradio-tools
gradio-tools is a powerful library that allows using Hugging
Face Spaces as tools. It supports many existing Spaces as well as custom Spaces to be designed with it.
We offer support for gradio_tools by using the Tool.from_gradio method. For example, we want to take
advantage of the StableDiffusionPromptGeneratorTool tool offered in the gradio-tools toolkit so as to
improve our prompts and generate better images.
We first import the tool from gradio_tools and instantiate it:
thon
from gradio_tools import StableDiffusionPromptGeneratorTool
gradio_tool = StableDiffusionPromptGeneratorTool() |
[
-0.011802606,
-0.008376283,
-0.02463088,
-0.0008779489,
0.0056746155,
-0.034783497,
-0.025374116,
0.016291758,
0.019175518,
0.052977946,
0.008547227,
-0.017213373,
0.040342912,
-0.031542987,
0.022103874,
-0.011423555,
-0.00615772,
0.006559068,
-0.05773466,
0.003861117,
0.0037960839,
0.017941745,
-0.021375502,
-0.006243192,
-0.04414829,
-0.014842446,
0.013014083,
-0.002001166,
0.075037226,
-0.00680062,
-0.044207748,
0.008695874,
0.007109063,
0.00032098553,
0.01316273,
-0.034248367,
0.018164717,
-0.0399267,
-0.013950561,
-0.032791622,
0.008569525,
0.017213373,
0.005916168,
-0.02889706,
-0.026087625,
-0.0019342747,
0.02861463,
-0.029565975,
-0.042394247,
-0.012412061,
0.008926278,
-0.0084877685,
-0.004459423,
0.012040442,
-0.02836193,
-0.012211386,
0.0153701445,
-0.008145879,
-0.034129452,
-0.0009782859,
0.0028298756,
0.036775373,
-0.0005843702,
-0.037845638,
0.00014795065,
-0.012858002,
-0.016693106,
-0.019294437,
-0.036715917,
-0.008012096,
-0.032821354,
0.01826877,
-0.0074881143,
-0.021955226,
0.0006517261,
0.009513436,
0.0040543587,
-0.015935006,
0.032137576,
0.02573087,
0.031572714,
0.023010623,
-0.007856017,
-0.029610569,
-0.025626818,
0.022802517,
0.0016527736,
-0.019978214,
0.021910632,
-0.05271038,
-0.017807962,
0.046110433,
-0.045991514,
0.053096864,
0.04938068,
0.05788331,
0.015028255,
0.05969681,
-0.0073877773,
0.008183042,
0.026860591,
0.10078296,
-0.03308892,
0.039718594,
-0.029120032,
-0.040164538,
0.033118647,
0.020409292,
0.008019529,
-0.058269795,
0.014619475,
-0.03344567,
0.026741672,
0.0094539765,
0.021851173,
0.033713236,
-0.016276894,
-0.011542473,
-0.04408883,
-0.037815906,
-0.021925496,
0.0012170508,
-0.017257966,
-0.044861794,
0.0017270973,
-0.02058767,
0.028421389,
0.012374898,
-0.011081666,
0.0037291925,
-0.00034351493,
0.024720067,
0.03285108,
0.03368351,
-0.011386394,
0.027009238,
0.013556646,
0.006785755,
0.0007957283,
-0.012471519,
0.00022726798,
-0.027440315,
0.018105257,
0.06778323,
-0.01770391,
-0.008770199,
0.008614119,
0.028837603,
-0.03814293,
-0.0046229353,
-0.009781001,
-0.015057985,
0.008264797,
0.040848315,
-0.013415431,
-0.019784974,
-0.017867422,
0.019710649,
0.0045114495,
0.03927265,
-0.020706587,
0.03071056,
-0.046675295,
0.029937593,
0.0006168868,
0.030948395,
0.009268167,
0.02287684,
-0.018476875,
-0.04741853,
0.05045094,
0.019978214,
0.004786447,
-0.020780912,
0.013816779,
0.0128505705,
0.035110522,
0.04581314,
0.011334367,
0.0017512526,
-0.0051283366,
0.00038346392,
0.02541871,
0.0121667925,
0.0076925047,
-0.0016304766,
0.021449825,
0.03308892,
0.014626907,
-0.016157975,
0.01874444,
0.03042813,
-0.042037494,
0.036626726,
-0.026756538,
0.03808347,
-0.017510667,
0.0068935244,
0.01594987,
-0.069864295,
-0.019012006,
0.03297,
0.015429604,
0.029179491,
0.005158066,
0.025121417,
-0.015875546,
0.042394247,
-0.025864653,
0.0679616,
0.039005086,
0.011193152,
-0.04340505,
0.02773761,
0.03588349,
-0.010301267,
-0.0058529926,
0.0121742245,
0.0129471915,
0.06290759,
0.031632174,
0.018105257,
0.0339808,
0.002398798,
-0.0005852993,
0.0025901815,
0.024140343,
0.037934825,
0.029149761,
0.04212668,
-0.02049848,
0.02810923,
0.0028651792,
0.021137664,
0.031156503,
-0.011356664,
0.03980778,
0.008814793,
-0.008056691,
-0.01203301,
-0.03421864,
0.034367286,
0.003121596,
0.03189974,
0.0006475454,
-0.021598471,
0.039718594,
-0.007038456,
0.04572395,
-0.0056857644,
-0.06344272,
0.049440134,
0.012649897,
0.010546535,
-0.084134445,
-0.035259172,
0.002818727,
0.04572395,
-0.049083382,
-0.032524057,
-0.0071871034,
0.03933211,
-0.017302562,
0.04153209,
0.020929558,
0.009141817,
-0.009691813,
-0.01476069,
-0.047329344,
-0.060350858,
-0.04111588,
-0.04242398,
-0.05966708,
0.013712726,
-0.0007320886,
-0.008517498,
-0.0017298845,
-0.012761382,
0.001119501,
-0.01507285,
-0.008168177,
-0.033921342,
0.002560452,
0.0006066673,
0.0036678754,
0.023010623,
-0.04331586,
0.008688442,
0.006484744,
0.07699937,
0.019755244,
-0.04509963,
-0.022356573,
0.0000036980405,
0.000006782765,
-0.0013619821,
-0.02234171,
0.0006475454,
-0.011557338,
0.007856017,
-0.030041646,
-0.019874161,
-0.017659316,
0.005916168,
0.030948395,
0.01942822,
-0.0020847803,
-0.036597,
0.06671297,
0.034991607,
-0.033891615,
0.016930943,
0.024214666,
0.01586068,
-0.016707972,
0.025552494,
0.0021721106,
-0.01814985,
-0.034902416,
0.009706677,
0.0014855453,
-0.03285108,
-0.013118136,
-0.010524238,
-0.03463485,
0.050629314,
-0.0046638134,
-0.07902098,
0.004321924,
-0.007220549,
-0.04566449,
-0.0010349577,
-0.041502364,
0.020186322,
0.018982276,
0.026028166,
-0.04691313,
0.0342781,
0.01736202,
0.015110011,
0.038291577,
-0.043048296,
-0.004518882,
0.0104276175,
-0.0030621372,
-0.009126952,
0.04646719,
-0.038559143,
0.04230506,
0.014991093,
0.033148378,
0.026474107,
-0.033891615,
0.0023263323,
0.024229532,
0.023947101,
-0.057169802,
0.0025641683,
0.0027053833,
0.032167304,
0.0435537,
0.015385009,
0.006659405,
-0.029536245,
-0.0066891345,
-0.004399964,
0.010293835,
0.04509963,
0.07271832,
0.01770391,
0.00043363243,
0.0043293564,
-0.072123736,
0.011163422,
-0.035675384,
-0.041353717,
0.06278867,
-0.018684981,
0.07955611,
-0.043286134,
-0.0055259685,
0.011430987,
0.0000074831787,
0.011341799,
-0.042453706,
0.03838077,
0.013274216,
0.0024972768,
-0.005001986,
-0.02058767,
0.020780912,
-0.023917371,
0.024972769,
-0.06843728,
-0.04052129,
0.007744531,
0.01532555,
0.048221227,
0.03475377,
0.011728282,
-0.011074234,
-0.0064067044,
0.011728282,
0.0018311505,
-0.011698553,
0.012664761,
-0.015593115,
0.0067746066,
-0.010828965,
-0.010643156,
-0.020706587,
-0.029015979,
-0.018075528,
-0.012062739,
0.0036344298,
0.060945448,
-0.019725515,
0.024080884,
0.016128246,
0.04682394,
-0.039302383,
0.008755334,
-0.03136461,
0.033891615,
0.03249433,
-0.040313184,
-0.022475492,
-0.02460115,
-0.018060664,
0.05030229,
-0.06183733,
0.008978304,
-0.0016927227,
-0.03707267,
-0.017436344,
0.014173533,
0.043702345,
0.009892487,
-0.030294348,
-0.044386122,
-0.017941745,
0.037994284,
-0.03071056,
0.008346553,
-0.014998526,
0.010724912,
0.040878043,
0.016098516,
0.01504312,
-0.014463395,
0.0010860553,
-0.028555172,
0.023218729,
0.006116842,
0.023843048,
-0.0039168596,
-0.014805284,
-0.033207837,
0.03415918,
-0.012820841,
-0.029060572,
-0.013586375,
0.027336262,
-0.039569948,
-0.039064545,
0.0280795,
-0.009862757,
-0.012389763,
0.02174712,
-0.018997142,
0.0026756537,
0.015340415,
-0.012746518,
-0.035734843,
0.00996681,
-0.013080974,
-0.030502453,
-0.031126773,
-0.026815997,
0.000093020775,
-0.03522944,
0.044415854,
0.005466509,
-0.029788945,
0.003496931,
-0.035913218,
-0.019264707,
-0.011022207,
-0.013541781,
0.01128234,
-0.0042141546,
-0.04182939,
0.041294258,
-0.05719953,
-0.016960671,
-0.013170162,
-0.02234171,
0.013170162,
0.05098607,
0.0094539765,
0.0034913565,
0.00053280813,
-0.044326663,
0.03766726,
-0.07111293,
-0.00076739234,
-0.011334367,
-0.018045798,
0.004827325,
-0.004901649,
-0.0229363,
0.02174712,
0.0063509615,
0.00088538125,
0.0035229442,
0.021970091,
-0.008814793,
-0.048934735,
-0.051402282,
0.051877953,
0.0031699066,
-0.044802338,
-0.0068935244,
0.007198252,
0.017822826,
0.033059187,
0.01817958,
-0.01300665,
0.011289773,
-0.06023194,
0.05488063,
-0.021197123,
0.002599472,
-0.05089688,
-0.030799748,
-0.003080718,
0.016485,
0.0061094095,
-0.041294258,
0.0114978785,
-0.057110343,
0.0077519636,
-0.0672481,
-0.025180874,
-0.019770108,
0.049945537,
-0.04069967,
0.008101285,
0.011951254,
-0.009387085,
-0.014225559,
0.020409292,
0.031097043,
0.020453887,
0.009112088,
-0.01767418,
-0.03071056,
-0.01560798,
0.007826287,
0.011081666,
-0.009178979,
0.04628881,
-0.06368056,
0.046110433,
0.0011817471,
0.02115253,
-0.034456477,
-0.01968092,
0.017822826,
-0.04391045,
-0.021940362,
-0.011943821,
0.025701141,
0.0011966118,
0.004619219,
-0.029328138,
-0.012553276,
-0.05491036,
-0.080329075,
-0.0050354316,
-0.043761805,
-0.025091687,
-0.003240514,
0.023545753,
0.0042513167,
-0.06344272,
-0.011787741,
0.065345414,
0.0399267,
0.02830247,
-0.07271832,
0.031156503,
0.033802427,
0.013051244,
-0.0022148467,
0.0032665273,
-0.049975265,
-0.007982367,
-0.036715917,
-0.051699575,
-0.029788945,
0.0048644873,
0.060529236,
-0.04295911,
0.015139741,
-0.0052881325,
-0.051759034,
-0.06070761,
0.022178197,
0.0070570367,
-0.004106385,
0.021598471,
0.02296603,
0.026652485,
0.016574189,
-0.041472632,
-0.01823904,
-0.0008556518,
0.050748233,
-0.026087625,
-0.038559143,
0.07033996,
0.015280956,
-0.035556465,
-0.052888755,
-0.021137664,
0.012486384,
-0.027678153,
-0.040342912,
0.019889027,
-0.02403629,
-0.0037682124,
-0.017168779,
0.021271447,
0.019086331,
0.035794303,
0.010851262,
-0.0010869843,
-0.004117534,
-0.018075528,
0.046586104,
-0.047834743,
-0.02375386,
-0.019784974,
0.017243102,
-0.05443469,
0.006837782,
0.0003339922,
0.017540397,
0.052264437,
0.027588964,
-0.034426745,
0.01645527,
-0.020201186,
0.009186411,
0.003718044,
-0.058240063,
-0.083777696,
0.009929649,
0.020706587,
0.018432282,
-0.01883363,
-0.033742968,
0.0135269165,
0.024987632,
0.030130835,
-0.028228147,
-0.025344387,
0.013028948,
-0.03867806,
-0.0065665003,
0.0020123145,
0.011817471,
-0.008695874,
0.010160052,
-0.01999308,
-0.06510758,
0.041740198,
-0.0025567359,
-0.011014774,
0.02544844,
-0.036448352,
-0.011371529,
-0.02983354,
-0.035794303,
-0.0120776035,
-0.04750772,
-0.0068154847,
0.0019658622,
-0.030309211,
-0.008799928,
-0.007280008,
0.021940362,
-0.030249752,
0.0188039,
-0.027588964,
-0.02052821,
0.0046117865,
0.009126952,
-0.012404628,
0.030324075,
0.035437547,
-0.049440134,
0.03059164,
0.01175058,
0.0048347577,
-0.015429604,
0.013281648,
0.040788855,
-0.004180709,
-0.02237144,
0.0136235375,
0.0027462614,
-0.053453617,
-0.033742968,
0.012471519,
0.020290375,
-0.02952138,
0.011928956,
0.013675564,
0.014002588,
0.0047938796,
0.027247075,
-0.0075550056,
-0.0229363,
0.011698553,
-0.02895652,
0.038529415,
0.0020123145,
-0.0049313786,
-0.065761626,
-0.0206174,
0.04863744,
-0.0073506157,
-0.013787049,
0.011966119,
-0.015489062,
-0.028183553,
-0.030829478,
0.05083742,
0.022178197,
-0.009387085,
0.02338224,
0.013407999,
0.01228571,
-0.011646526,
0.036388893,
-0.05621846,
-0.08425336,
0.018001204,
-0.033534862,
0.015206632,
-0.033326752,
0.018120121,
0.009691813,
-0.0038462523,
0.013452592,
0.017852556,
0.0458726,
-0.008324256,
0.028272742,
-0.08330202,
-0.011430987,
-0.0016787869,
0.020914694,
-0.028733548,
-0.058864385,
0.023679536,
0.04227533,
0.010620859,
-0.012367466,
-0.02836193,
0.005945897,
-0.00852493,
0.008628983,
-0.0062654894,
0.012456655,
-0.06712918,
0.040729396,
-0.00855466,
0.039005086,
-0.016172841,
0.017718773,
0.023040352,
-0.0020048823,
0.028718684,
0.054583337,
0.018357959,
-0.006429001,
-0.015280956,
0.03808347,
0.011252611,
-0.01128234,
-0.038172662,
0.043850992,
0.0055148196,
0.05217525,
0.016930943,
-0.004236452,
0.056515753,
0.03594295,
-0.0028651792,
0.04230506,
0.03184028,
0.055980623,
-0.016053922,
0.003298115,
-0.034842957,
0.03404026,
0.0055445493,
-0.020394428,
0.014047182,
0.016499866,
-0.040283453,
0.01761472,
-0.02629573,
0.0142106945,
0.025894383,
-0.018075528,
-0.041353717,
-0.006146571,
0.014270154,
-0.018848494,
0.013578943,
0.02469034,
0.039064545,
0.055445492,
-0.013943129,
0.026994374,
0.024407908,
0.050034724,
-0.008301959,
0.00767764,
0.01642554,
-0.029045708,
-0.037042942,
-0.010152619,
-0.038975358,
0.04069967,
-0.0037570638,
-0.019918757,
0.02058767,
-0.021078207,
-0.0132370535,
-0.031691633,
0.0058121146,
-0.07218319,
0.011274908,
0.0019231262,
-0.009951945,
-0.008093853,
-0.025567358,
-0.032137576,
0.023768725,
0.040253725,
0.071410224,
-0.008168177,
0.09614516,
-0.010412753,
-0.045575302,
0.017852556,
0.034248367,
-0.03516998,
-0.0079898,
-0.00556313,
-0.016618783,
-0.022534952,
-0.036180787,
-0.04807258,
0.024526827,
0.00780399,
-0.008547227,
0.0063100834,
-0.012360034,
0.02005254,
-0.05446442,
-0.011334367,
0.053602263,
-0.018818764,
0.027470045,
-0.015340415,
0.0016704255,
-0.04694286,
-0.023486294,
-0.056931965,
0.026964644,
0.007833719,
-0.017629586,
0.020394428,
-0.009959378,
-0.003379871,
-0.009476274,
0.008093853,
-0.030770019,
0.03820239,
0.03356459,
0.024705203,
0.020944424,
-0.0012514256,
0.00664454,
0.017198509,
0.05208606,
0.038053744,
0.10458833,
0.03927265,
-0.03368351,
-0.01027897,
-0.027633557,
0.03531863,
-0.017659316,
-0.049440134,
-0.012620167,
0.024244396,
-0.026057895,
-0.042513166,
-0.05606981,
0.09091277,
-0.017243102,
0.0114904465,
-0.066415675,
0.029655162,
-0.04046183,
-0.005659751,
-0.045188818,
0.0148870405,
-0.0029302125,
-0.033326752,
0.024838986,
-0.06249138,
0.26423568,
0.03178082,
0.02084037,
0.058596816,
-0.026563296,
0.077772334,
0.02409575,
0.013987724,
-0.011460717,
-0.027276805,
0.045991514,
-0.0059867753,
-0.042394247,
0.014626907,
0.010241808,
0.023352511,
-0.024125477,
-0.03130515,
0.018714711,
-0.035615925,
-0.012553276,
0.017748503,
0.01710932,
0.0061391387,
-0.0054850904,
0.026994374,
0.019532273,
-0.028718684,
-0.004203006,
-0.055415764,
-0.0108141005,
-0.008993169,
0.029387597,
-0.03600241,
-0.020914694,
0.050034724,
-0.013512052,
-0.0481915,
-0.021851173,
-0.000699572,
-0.0075884513,
-0.04010508,
0.007908043,
-0.0027313966,
-0.015578251,
0.028064635,
0.027395722,
0.031156503,
0.0602914,
-0.04504017,
0.045902327,
-0.058834653,
0.040313184,
-0.014768123,
-0.017629586,
-0.017555261,
-0.054642797,
-0.02751464,
0.01583095,
0.033415943,
0.028465983,
0.020037673,
0.020825505,
0.009409382,
-0.05627792,
-0.008316824,
0.0050465805,
0.034307826,
-0.023828184,
-0.036983483,
-0.036388893,
0.013787049,
0.052353624,
-0.04533747,
0.03136461,
0.015444468,
0.01187693,
0.016871484,
0.021330906,
-0.034783497,
-0.014515421,
0.0386186,
0.029655162,
-0.021494418,
0.05838871,
0.05268065,
-0.016901214,
0.0035582478,
-0.019383626,
0.045545574,
0.03255379,
0.02864436,
-0.02541871,
-0.00484219,
-0.006923254
] | Before finally generating the image:
gradio-tools requires textual inputs and outputs, even when working with different modalities. This implementation
works with image and audio objects. The two are currently incompatible, but will rapidly become compatible as we
work to improve the support. |
[
0.039521936,
0.01983582,
-0.014633595,
0.029401924,
-0.023847895,
-0.023788013,
-0.0077022864,
-0.0073729367,
-0.00020596037,
0.05613911,
-0.024880854,
-0.0044873864,
0.00037472858,
-0.0028818077,
-0.023024522,
0.0068826554,
0.0056213965,
0.014708447,
-0.028129438,
-0.0014343543,
0.029596541,
-0.011602083,
-0.06455249,
-0.013645547,
-0.05254621,
0.041977085,
0.037336253,
-0.010786195,
0.121619776,
0.053055204,
-0.008832553,
0.009206815,
0.006134134,
0.0055540297,
-0.022036472,
-0.030015713,
0.018907653,
-0.0014025422,
0.0043152263,
-0.060630243,
0.018728008,
0.0030464826,
0.012829659,
-0.08497216,
-0.05706728,
0.006205243,
0.042665727,
-0.019042388,
-0.0010105041,
-0.050091058,
-0.011265249,
-0.0011096832,
-0.020763986,
0.032066662,
-0.020629253,
-0.041168682,
0.017635167,
0.0046932297,
-0.04562987,
-0.008173855,
0.022889787,
0.030030683,
0.017934576,
-0.05784574,
-0.00032396946,
0.023877837,
0.004554753,
0.031887017,
-0.027395887,
-0.03586915,
-0.040539924,
0.00087202754,
-0.04556999,
-0.06443273,
-0.0035741902,
0.01845854,
-0.031497784,
0.0042927708,
0.01462611,
0.010509242,
0.007964269,
0.0342224,
0.00653085,
-0.031527724,
0.0088699795,
-0.0075413543,
0.015120135,
-0.04179744,
0.01096584,
-0.059971545,
-0.025270086,
0.04533046,
-0.014281791,
0.034252346,
0.037186548,
0.051677924,
0.014798271,
0.026886893,
-0.039072823,
-0.023847895,
0.028982753,
0.070780195,
-0.045120876,
0.050600056,
-0.032156482,
-0.0023615854,
0.014880608,
0.008637939,
0.0026404096,
0.009064595,
-0.027590502,
-0.057456512,
-0.006036826,
0.0012331891,
-0.008061577,
0.023293989,
0.0070248744,
0.0144988615,
-0.024656298,
-0.037096728,
0.054073192,
-0.016497415,
-0.0063848887,
-0.03311459,
0.02089872,
-0.041378267,
0.015778834,
0.023548486,
0.026362928,
-0.024611387,
0.042545963,
0.014281791,
0.06994185,
0.0013379822,
0.002415853,
0.0017899021,
0.027261153,
0.014004838,
0.009581075,
0.016093213,
-0.023084404,
-0.03332418,
0.040240515,
0.06461237,
0.011033207,
-0.0043825936,
0.010786195,
-0.046138864,
-0.05257615,
0.0031999294,
0.045719694,
0.014147056,
-0.000717645,
0.026632395,
-0.02265026,
-0.029626481,
-0.032156482,
0.00038314945,
0.017335758,
0.01407969,
-0.038144656,
0.004730656,
-0.05877391,
0.022889787,
0.008780157,
0.033743348,
0.017350728,
0.019521441,
-0.003647171,
-0.031527724,
-0.0011321388,
0.020524459,
-0.012582647,
0.021138247,
0.0383243,
-0.001561603,
0.01985079,
0.032545716,
0.008488234,
0.00539684,
0.02540482,
0.014087175,
-0.014229394,
0.022874817,
0.019087298,
-0.039581817,
0.0002596434,
0.02021008,
0.0184286,
-0.01562913,
-0.027395887,
0.035539802,
-0.06652859,
0.038114715,
-0.021422686,
0.050689876,
-0.026258135,
0.0136380615,
0.006957507,
-0.021422686,
-0.023862865,
0.043324426,
-0.007429076,
0.023039492,
-0.03299483,
0.005591456,
0.0038848266,
0.0285037,
-0.002617954,
0.045719694,
0.009768206,
-0.032545716,
-0.028114468,
0.006695525,
0.029057605,
-0.03691708,
-0.021138247,
0.029866008,
-0.016302798,
0.017979486,
0.050629996,
0.023189196,
0.07299582,
0.0012135404,
-0.024910796,
-0.0005866537,
0.017635167,
0.013420991,
0.05431272,
0.034881104,
0.044552,
0.039102763,
0.044072945,
0.030569619,
0.0076498897,
0.006938794,
0.078504935,
0.022395764,
0.0066693267,
0.010718828,
0.0015110777,
0.030150447,
0.007256916,
0.017141143,
0.019656174,
-0.037126668,
-0.021497538,
-0.0043339394,
0.0054080677,
-0.035479918,
-0.055749882,
0.017575284,
-0.002125801,
-0.041288447,
-0.06365427,
-0.034671515,
0.0037575779,
0.04149803,
-0.03302477,
-0.043743595,
0.028368965,
0.04874372,
0.0080241505,
0.0066431286,
0.024746122,
0.009087051,
0.033533763,
0.013241345,
-0.022530498,
-0.037426077,
-0.04838443,
-0.032216366,
-0.06161829,
0.006066767,
-0.04419271,
-0.02720127,
0.015209957,
-0.04146809,
0.024656298,
0.010883503,
-0.009843058,
-0.023518546,
0.03760572,
0.0063661756,
0.01881783,
0.036976963,
-0.010292171,
0.034970924,
-0.0153446905,
0.01511265,
0.027066538,
-0.0361985,
-0.0069537647,
-0.020988543,
-0.0037594493,
0.0070248744,
-0.035390098,
-0.010666432,
-0.03248583,
-0.004472416,
-0.019716056,
0.032246307,
-0.0014614882,
0.03167743,
-0.02820429,
0.013039244,
-0.016168065,
-0.03688714,
0.07359464,
0.057935566,
0.0013800865,
-0.010254744,
0.006396116,
0.027560562,
-0.012627558,
0.06970232,
0.045150816,
-0.012657499,
-0.06233687,
-0.0018937594,
-0.008570571,
0.03248583,
0.0077771386,
-0.011991315,
0.021332864,
0.035809267,
-0.02398263,
-0.055091184,
0.012081137,
-0.014528803,
-0.044552,
0.0044948715,
-0.04386336,
0.037875187,
0.034970924,
0.03892312,
-0.046587978,
-0.0038062318,
-0.020120258,
0.025853932,
-0.0046408335,
0.0031812163,
0.016048301,
-0.010868533,
-0.0068714274,
-0.022695173,
0.045689754,
-0.04380348,
0.027336005,
-0.0007639598,
0.014820726,
-0.0069013685,
-0.019686116,
0.003475011,
0.046408333,
0.04943236,
-0.0013520169,
-0.010037674,
-0.004079442,
0.009902939,
0.03024027,
0.027695296,
-0.036108676,
-0.004128096,
-0.024626357,
-0.014566229,
0.0065495633,
0.0055577722,
0.05464207,
0.02925222,
0.0066580987,
0.013009304,
-0.048683837,
0.024536535,
-0.02473115,
-0.053713903,
0.04317472,
0.024057481,
0.05254621,
-0.0466778,
-0.043025017,
-0.003233613,
-0.006339977,
0.06275605,
0.018159132,
-0.018907653,
-0.029521689,
0.018338777,
-0.012867085,
-0.0035461206,
0.019656174,
-0.021542449,
-0.01812919,
-0.016916586,
0.0041992054,
-0.020749016,
0.022096355,
0.019775938,
-0.009940365,
-0.017769901,
0.042755548,
0.027336005,
0.006418572,
0.012163474,
-0.03829436,
0.01096584,
-0.027321035,
0.014528803,
0.02297961,
-0.017799841,
0.01845854,
-0.009221785,
-0.021722093,
0.0015634743,
-0.005778586,
0.023473635,
-0.028788136,
0.0017608969,
0.045749635,
0.008518174,
-0.02196162,
-0.0035536059,
-0.024237126,
0.02925222,
0.04530052,
-0.028758196,
-0.0018001943,
-0.023907777,
-0.018653156,
0.036048796,
-0.026078489,
-0.029072575,
-0.011819155,
-0.05353426,
-0.02613837,
0.04628857,
0.05284562,
-0.002674093,
-0.031767253,
-0.056169055,
-0.0156441,
0.0144988615,
-0.022440676,
0.014064719,
0.012732351,
-0.016736941,
-0.014678507,
0.0048691323,
0.008046607,
0.015172531,
0.030779205,
-0.038054835,
-0.0088624945,
-0.043683715,
-0.02543476,
0.021153217,
-0.024341919,
-0.0130991265,
0.03245589,
-0.019207062,
-0.0027863714,
-0.012455398,
0.060839828,
-0.041677676,
-0.020120258,
0.020389726,
0.015584217,
-0.017979486,
-0.007762168,
0.00029098772,
0.015584217,
0.026871921,
-0.009775691,
-0.026288075,
0.028997723,
-0.018488482,
-0.023249079,
-0.025823992,
-0.0119988,
0.009895454,
-0.058893673,
0.036018856,
0.02194665,
0.010194863,
0.00024490687,
-0.070780195,
-0.0479952,
0.01708126,
-0.0034675258,
0.00141377,
0.019775938,
0.011729332,
0.021841858,
0.0042965133,
-0.033713408,
-0.014678507,
0.005340701,
0.0016916586,
0.03796501,
0.038174596,
0.029012693,
-0.017739959,
-0.02958157,
0.042665727,
-0.0080166655,
-0.010232289,
-0.010479301,
-0.002384041,
0.035420038,
-0.0056288815,
-0.020793928,
0.010913444,
0.013668003,
-0.03134808,
0.019192092,
0.0024719923,
-0.013600635,
-0.044581942,
0.0043189693,
0.05107911,
0.017620197,
-0.050150942,
-0.00047390768,
0.014274305,
-0.0067928326,
0.035420038,
0.026647365,
-0.0010067614,
-0.033234354,
-0.05314503,
-0.0094313705,
-0.032186426,
-0.0043638805,
-0.0070323595,
-0.0037725484,
0.006025598,
0.044851407,
0.034312226,
-0.037066784,
-0.030360032,
-0.032006778,
0.038384184,
-0.05820503,
-0.020674163,
-0.027874941,
0.02922228,
-0.011407468,
0.025883874,
0.010299656,
-0.0047381413,
-0.019656174,
-0.025165293,
0.025045529,
0.042815432,
-0.009476283,
-0.02194665,
0.043054957,
0.008705305,
-0.049612004,
0.019311855,
-0.023548486,
0.0507797,
0.0030614529,
0.0184286,
-0.063833915,
0.01010504,
-0.037515897,
-0.030090565,
0.045390345,
-0.021557419,
0.026168311,
-0.039432112,
0.022305941,
0.02124304,
0.01881783,
-0.08401405,
0.029117487,
-0.033743348,
-0.01339105,
-0.0017618325,
-0.054073192,
-0.002617954,
-0.010030189,
-0.014199453,
0.04416277,
-0.04967189,
0.000077308236,
0.05697746,
-0.018219013,
0.017650137,
-0.04006087,
0.023578428,
-0.01738067,
-0.02543476,
-0.023713162,
0.04554005,
-0.043983124,
0.022560438,
-0.035569742,
-0.027904881,
-0.009902939,
0.030060623,
0.012904511,
-0.017829781,
0.02291973,
0.008637939,
-0.01059158,
-0.050240763,
0.031198377,
-0.004060729,
0.0073280255,
0.022126297,
0.025225176,
0.004158037,
0.03410264,
-0.024970677,
0.00080887106,
-0.054163016,
0.040959097,
0.02541979,
-0.026063519,
0.028608492,
0.023129314,
-0.011587113,
-0.07233712,
-0.045060996,
0.029776186,
-0.04533046,
-0.010060129,
0.03446193,
-0.015359662,
0.016108183,
-0.007226975,
0.015853686,
0.021991562,
0.019296885,
0.022335881,
0.012620073,
-0.0057935566,
-0.0058908644,
0.06455249,
-0.026512632,
-0.006141619,
-0.021048425,
-0.009236756,
-0.04562987,
-0.023039492,
0.05296538,
-0.0044349898,
0.021317892,
0.02124304,
-0.018683096,
0.0717383,
-0.012028741,
0.016796822,
-0.0066917823,
-0.06473214,
-0.052396506,
0.03272536,
0.033713408,
0.008742731,
0.0068115457,
-0.061079353,
0.0053182454,
0.019057358,
0.03167743,
0.008211281,
-0.050629996,
-0.0077397125,
-0.02815938,
-0.012178445,
-0.0040944126,
-0.015928539,
0.0023148027,
0.019656174,
-0.026737189,
-0.044043005,
-0.0041730073,
0.057246923,
-0.042186674,
0.0027395887,
-0.017979486,
0.005026322,
-0.04703709,
0.017979486,
0.00016584429,
-0.039881226,
0.009521194,
0.003104493,
-0.008113973,
-0.03452181,
0.010359538,
0.059462547,
-0.047246676,
-0.006010628,
-0.031557668,
-0.054851655,
0.0006395181,
-0.022440676,
-0.04706703,
0.04239626,
0.033922996,
-0.008480749,
0.021093337,
-0.012724865,
0.021377774,
-0.042785488,
0.0056026834,
0.014513832,
-0.034551755,
-0.0067853476,
0.0026273106,
0.026901864,
-0.040150695,
-0.019985525,
-0.0007850119,
0.028713284,
-0.024461683,
0.010853562,
-0.033922996,
0.04380348,
-0.007911872,
0.048983246,
-0.008652909,
0.02893784,
0.04533046,
-0.008548115,
0.010471816,
-0.0047269133,
-0.03245589,
-0.01811422,
-0.00994785,
0.03311459,
-0.0028350253,
-0.004083185,
-0.012215871,
-0.0012547092,
-0.004835449,
-0.01917712,
0.0010713214,
0.00994785,
0.059971545,
-0.011901492,
-0.009543649,
0.015838714,
-0.055510353,
0.004367623,
-0.044402298,
-0.055181004,
0.00071577367,
-0.016212976,
0.015913567,
-0.030315122,
0.0054342663,
-0.015898596,
0.01636268,
0.01601836,
0.014386583,
0.028967783,
0.0029922146,
-0.012058682,
-0.057486452,
-0.06640883,
-0.014281791,
0.040569864,
-0.02543476,
-0.057965506,
0.029371984,
0.050989285,
-0.03377329,
0.014521318,
-0.027066538,
0.00084770063,
-0.009476283,
0.009102021,
-0.030898968,
0.0029416895,
-0.036018856,
0.011894006,
-0.012455398,
-0.0029997,
-0.01666209,
0.0119988,
0.026602454,
0.0039072824,
0.00061051286,
0.037156608,
0.021856828,
-0.0069462797,
-0.0006329685,
0.03595897,
-0.01845854,
0.0015709595,
0.027815059,
0.01880286,
0.021407716,
0.0023297733,
0.024656298,
0.010733798,
0.07557073,
0.013630576,
0.022994582,
-0.017126173,
0.037306312,
0.031228317,
-0.015584217,
0.011474835,
-0.017665107,
0.014072204,
-0.00004356629,
0.005348186,
0.00137073,
0.005572743,
-0.031976838,
0.020329844,
-0.05113899,
0.029342042,
-0.017485462,
-0.018009428,
-0.05185757,
-0.0201502,
0.04838443,
0.026557542,
-0.0027433312,
-0.002679707,
0.00040022508,
0.047546085,
0.04377354,
0.04065969,
0.03622844,
0.028309083,
-0.037515897,
0.0066244155,
0.00070220674,
0.01132513,
0.009880484,
-0.040480044,
-0.032276247,
0.03449187,
-0.030554648,
0.0062202136,
-0.008203796,
-0.010172407,
-0.011714362,
-0.05883379,
-0.012036226,
-0.08305594,
-0.036048796,
-0.008248707,
0.023608368,
-0.01986576,
-0.013256316,
-0.003394545,
0.030120505,
0.048414372,
0.019701086,
-0.022770025,
0.067426816,
-0.013675488,
-0.02297961,
-0.014918034,
0.02925222,
-0.029491747,
-0.011250278,
0.010673917,
-0.029566599,
-0.023907777,
-0.025285056,
-0.05494148,
0.034671515,
-0.00040490335,
-0.025255116,
-0.025913814,
-0.013727885,
0.048564076,
-0.040899213,
0.024865884,
0.06473214,
0.0024439227,
0.006253897,
-0.015449484,
0.029656421,
-0.04871378,
-0.02266523,
-0.028458787,
0.025015589,
0.007679831,
-0.04554005,
-0.0027433312,
-0.034641575,
-0.009670898,
-0.016766882,
-0.011265249,
0.020314874,
0.011422439,
0.00854063,
0.04943236,
0.034881104,
-0.0055053756,
-0.020225052,
0.016287828,
0.018608244,
-0.020973573,
0.08401405,
0.049851533,
0.02122807,
-0.027560562,
-0.0030258982,
0.03242595,
-0.008203796,
-0.006025598,
-0.05119887,
0.02369819,
-0.026512632,
-0.034252346,
0.019506471,
0.04314478,
-0.0010507371,
-0.051378515,
0.004101898,
0.0012865213,
-0.03829436,
-0.01407969,
-0.05227674,
0.017919606,
-0.023458663,
-0.0285037,
0.022515526,
-0.03479128,
0.26803058,
0.061857816,
0.029132457,
0.05982184,
0.016991438,
0.078325294,
-0.006590732,
0.02291973,
0.01373537,
-0.04934254,
-0.0052134525,
0.025659317,
-0.017889664,
0.014753358,
-0.031916957,
0.03616856,
-0.026961744,
-0.021048425,
-0.03583921,
-0.0688041,
-0.04170762,
0.0040382734,
0.01985079,
0.040929157,
0.022904757,
-0.0035255363,
0.0003585886,
-0.021707123,
-0.026407838,
-0.07197783,
0.005101174,
-0.028428847,
0.026497662,
-0.011063148,
-0.060690124,
0.031108554,
0.022560438,
-0.06784599,
-0.0060592815,
0.062456634,
-0.00047484334,
0.00004426803,
0.012552706,
-0.015928539,
-0.02821926,
0.05838468,
0.0030913937,
0.022380793,
0.044821467,
-0.05080964,
0.03658773,
-0.012732351,
0.0604506,
-0.097367674,
-0.021452626,
-0.003486239,
-0.06754658,
-0.036318265,
-0.0051947394,
-0.0267821,
-0.0014596169,
0.0051124017,
-0.00783702,
0.04871378,
-0.08377453,
-0.014977915,
-0.005991915,
0.029057605,
-0.032156482,
-0.035210453,
-0.0091619035,
-0.003362733,
-0.00854063,
-0.018922623,
0.020464579,
0.027845,
-0.004670774,
0.042246554,
0.012268268,
-0.027979733,
-0.006025598,
-0.0050150943,
0.014843182,
-0.06934303,
0.021527478,
0.03242595,
-0.018593274,
0.0005950746,
0.020374756,
0.02265026,
0.044761587,
0.029895948,
-0.014431494,
-0.007724742,
0.0021145733
] |
Future compatibility with Langchain
We love Langchain and think it has a very compelling suite of tools. In order to handle these tools,
Langchain requires textual inputs and outputs, even when working with different modalities.
This is often the serialized version (i.e., saved to disk) of the objects.
This difference means that multi-modality isn't handled between transformers-agents and langchain.
We aim for this limitation to be resolved in future versions, and welcome any help from avid langchain
users to help us achieve this compatibility.
We would love to have better support. If you would like to help, please
open an issue and share what you have in mind. |
[
0.042809863,
0.008567429,
0.04750285,
0.034051437,
-0.022960166,
-0.024365332,
0.0036425216,
-0.013983463,
-0.030231565,
0.08572886,
0.0008935774,
0.021554997,
0.019767843,
-0.030286135,
-0.06575638,
0.025402155,
-0.008785708,
-0.046138607,
-0.0351974,
0.01810347,
0.011787036,
0.011220877,
-0.07754342,
-0.027066529,
-0.045320064,
0.017475918,
0.020531816,
0.0019304,
0.08245469,
0.049412783,
-0.028294344,
0.016166247,
0.008369614,
-0.042591583,
-0.018758304,
-0.03604323,
0.027721364,
-0.01242823,
-0.018185323,
-0.020709168,
0.046684302,
-0.009229085,
0.06766632,
-0.038744424,
-0.058389485,
-0.034133293,
-0.022291686,
-0.002423232,
-0.016766513,
-0.04654788,
-0.035224684,
0.0026346892,
0.0038369258,
0.0017146795,
-0.051240865,
0.034597136,
-0.020818308,
0.007448752,
-0.0073259706,
-0.009038093,
-0.009836173,
-0.022687316,
0.029167458,
-0.033287466,
0.007373719,
0.009911206,
-0.018117111,
0.00060154474,
0.0034839287,
-0.0052489145,
-0.026138844,
0.0025596558,
0.0013343976,
-0.028130636,
-0.0540512,
0.024392618,
0.028676331,
0.0007013048,
-0.010088557,
0.0536965,
0.0076738517,
0.043737546,
0.038853563,
-0.0073941825,
-0.05522445,
-0.06417386,
0.0152522065,
-0.0091267675,
-0.0035947734,
-0.02242811,
-0.021582281,
0.02781686,
0.032441635,
0.002844441,
0.0045360993,
0.046984438,
-0.00953604,
0.06553811,
0.023710497,
-0.015470485,
0.017926117,
0.075524345,
-0.007837561,
-0.020013405,
-0.019235788,
0.047257286,
0.014993001,
-0.0068996456,
-0.013164919,
-0.0005938709,
-0.025620433,
0.021377645,
0.022673674,
-0.031868655,
-0.0648287,
0.017271282,
0.02418798,
0.02077738,
-0.03784403,
0.01901751,
0.035361107,
0.005647955,
0.029031035,
-0.010927565,
-0.005511531,
-0.041172773,
-0.014802008,
0.0057025244,
-0.030531699,
-0.03639793,
-0.007898952,
0.008137694,
0.009856637,
0.061390813,
0.02242811,
0.025020167,
0.0011902996,
0.015047571,
0.066083804,
-0.030749977,
0.034651704,
-0.0016788682,
-0.013123992,
0.07192275,
-0.0066779563,
-0.0019167577,
0.021909699,
-0.0054808357,
-0.0000683186,
0.021773275,
-0.08130872,
0.016411811,
-0.012714719,
-0.019645061,
-0.021991555,
0.004941961,
0.0010180643,
-0.00493855,
0.0021367413,
0.01617989,
0.018212609,
-0.019672345,
-0.03661621,
0.031404812,
-0.021132082,
0.0459749,
-0.022782814,
0.033014614,
0.02327394,
-0.027625866,
0.008444647,
-0.017557774,
0.008178621,
-0.011664255,
0.02128215,
0.06641122,
0.029494876,
-0.020163473,
0.025893282,
-0.0026466262,
0.0058798757,
0.024965597,
0.025456725,
-0.014379093,
-0.01231909,
-0.018894728,
-0.013731079,
0.027612224,
-0.009392794,
0.0118075,
0.0028188615,
0.035442963,
0.01675287,
0.008417362,
0.0013156392,
-0.021309434,
-0.06777546,
0.049876627,
-0.0012354902,
-0.022441754,
-0.02111844,
0.02185513,
-0.04207317,
0.016875653,
-0.011214055,
0.001828082,
0.017776052,
0.047993973,
-0.0067222943,
-0.035060976,
0.03503369,
0.005115901,
0.013758364,
0.016166247,
0.014106245,
-0.02878547,
-0.05001305,
0.016520951,
-0.028485337,
0.034897268,
0.02458361,
0.020859234,
0.002968928,
0.0019849697,
0.010375048,
-0.03967211,
0.015525055,
0.019604133,
0.0015074855,
0.051350005,
-0.005047689,
0.023110231,
0.011282267,
0.028703617,
0.0022339434,
0.030804547,
0.059535448,
0.011159486,
-0.036534354,
0.039180983,
0.008335508,
-0.01555234,
-0.010375048,
0.009283655,
0.012973925,
0.0010598442,
-0.03298733,
-0.018717377,
-0.02133672,
-0.016452739,
-0.01254419,
0.052877955,
0.035497535,
-0.008396899,
-0.023833279,
-0.02032718,
0.010470545,
0.0071827252,
-0.039944958,
-0.018321747,
0.006483552,
0.025170233,
-0.02594785,
-0.04125463,
0.011548295,
0.022960166,
0.0099930605,
0.034869984,
-0.011398228,
-0.017189428,
-0.03279634,
-0.05568829,
-0.043273702,
-0.00527961,
-0.023164801,
0.009522397,
0.027557654,
-0.052768815,
-0.011514189,
-0.019317644,
-0.038689855,
0.020654598,
-0.003434475,
0.017175786,
-0.033860445,
-0.0075851763,
-0.09844358,
0.027666794,
-0.0011203823,
0.07328699,
-0.026125202,
0.00014793481,
-0.017625986,
-0.025756856,
0.055824716,
-0.012782932,
0.02526573,
-0.0056070276,
0.023410363,
0.01600254,
0.008390078,
0.0010982135,
-0.023983344,
0.010245445,
-0.0052659675,
0.026698183,
0.053505506,
-0.03530654,
0.027093813,
0.06237307,
-0.029222028,
0.005245504,
0.03094097,
0.06837572,
-0.0180489,
0.0020497711,
0.029549446,
-0.02821249,
-0.01583883,
-0.049576495,
-0.051186297,
-0.013860682,
0.025006525,
-0.02508838,
-0.025156591,
0.06706605,
-0.021254864,
-0.038608,
0.016220817,
-0.05574286,
-0.026084276,
-0.050149474,
-0.019726915,
0.05159557,
0.0024658644,
0.050858878,
-0.028185206,
-0.037271045,
0.0071213343,
0.04649331,
-0.01442002,
0.0020685294,
0.0033355677,
0.04829411,
-0.002269755,
-0.008512859,
0.0141881,
-0.052195836,
-0.002327735,
-0.001053023,
0.02758494,
0.019426782,
0.034651704,
0.009515576,
-0.010907101,
0.032550775,
-0.0747058,
0.017462276,
-0.040599793,
0.011493725,
0.04343741,
0.021718705,
0.011671076,
0.023178443,
-0.029931433,
-0.042264163,
0.012325912,
0.037543893,
0.055197164,
-0.0047611985,
0.018922014,
0.02440626,
-0.027380303,
0.008874384,
-0.027230237,
0.020177115,
0.07607004,
0.0044474234,
0.022714602,
-0.040517937,
-0.055279016,
0.044828936,
-0.015033929,
0.039863102,
0.033560313,
0.046929866,
0.0029569909,
-0.023287583,
-0.017325852,
0.018949298,
-0.0082604755,
-0.024979241,
-0.0027455336,
-0.038744424,
-0.07394183,
-0.03151395,
-0.0053273584,
0.07459666,
0.010716108,
0.014406377,
0.012844322,
-0.016957507,
0.06635665,
0.010293193,
-0.015279491,
-0.039972242,
-0.04114549,
0.060299423,
-0.011077631,
0.04188218,
-0.015988898,
-0.013137634,
-0.053669214,
0.012673792,
-0.030204281,
0.007025838,
-0.03230521,
0.022346256,
0.030258851,
0.0038539788,
-0.014638299,
-0.01946771,
-0.011555116,
-0.011793857,
0.05893518,
-0.07672488,
-0.011493725,
-0.03656164,
0.0152112795,
0.035115547,
0.0416639,
-0.031950507,
-0.025020167,
-0.04900351,
-0.060135715,
0.034542564,
0.041418336,
-0.015306776,
0.028921895,
-0.03514283,
-0.010907101,
-0.0032042596,
-0.047366425,
0.010429617,
-0.032441635,
0.02384692,
0.012619223,
0.013219489,
-0.034651704,
-0.047420993,
0.030040571,
-0.024501756,
-0.017216712,
-0.04627503,
-0.018717377,
0.044992644,
-0.028485337,
-0.014842935,
0.044610657,
0.026084276,
0.0042393766,
0.008410541,
0.024842815,
-0.0037277867,
-0.010463723,
0.027571296,
0.017898833,
-0.07956249,
0.051950272,
-0.010552399,
0.009863458,
0.0333966,
0.086711116,
-0.015224922,
-0.00001157073,
0.010429617,
0.0592626,
-0.035743095,
-0.013765185,
0.02968587,
-0.03803502,
0.008540144,
-0.015797904,
0.005177292,
-0.0042427876,
-0.06401016,
-0.05593385,
-0.01736678,
-0.02566136,
0.062536776,
0.02843077,
0.008444647,
-0.006227757,
-0.024037914,
0.0057127564,
-0.008199085,
-0.02038175,
-0.008949417,
0.035743095,
0.043682974,
0.009665643,
0.007339613,
0.021241222,
0.06515612,
-0.012455514,
-0.036998197,
-0.008567429,
0.028076066,
0.012551011,
-0.014024391,
-0.0069746785,
-0.0032383655,
-0.020286253,
-0.009406437,
0.01873102,
-0.025620433,
0.041718468,
0.004587258,
-0.027216595,
0.031186534,
-0.00953604,
-0.030913686,
0.0166983,
0.025388513,
-0.0025119076,
-0.005828717,
0.019440424,
-0.0360978,
-0.06286419,
-0.0333966,
0.06504698,
-0.021241222,
-0.017503204,
-0.059644587,
-0.049030796,
-0.018594597,
0.049358215,
0.02009526,
-0.028458053,
0.00032763084,
-0.050395038,
0.045511056,
-0.05773465,
-0.0039972244,
-0.024092484,
-0.01639817,
-0.030204281,
0.02469275,
-0.010954849,
0.0073191496,
0.03440614,
0.022673674,
-0.0013105234,
0.029440306,
-0.024529042,
-0.0014375682,
-0.005296663,
-0.0054978887,
-0.011098095,
-0.0062243463,
-0.0038028199,
0.035333823,
-0.044119533,
0.025456725,
-0.012053063,
-0.023478577,
-0.039699394,
-0.0016711944,
0.06886685,
-0.06264591,
0.0036459323,
0.012421408,
-0.0071963677,
-0.007919415,
0.038880847,
0.008956238,
-0.003809641,
-0.011207234,
-0.038853563,
0.04990391,
-0.02781686,
-0.018253535,
0.023615,
-0.012803395,
0.06324618,
-0.051159013,
0.029085604,
0.06592009,
-0.002252702,
-0.013410483,
-0.00012501984,
0.017803336,
-0.006715473,
-0.044146817,
0.020177115,
-0.017803336,
-0.035224684,
-0.018239893,
-0.08021733,
-0.083709784,
0.0099930605,
0.02582507,
0.027830502,
0.00028712995,
0.053914778,
-0.017680554,
-0.068703145,
-0.042946286,
0.064337574,
-0.017926117,
-0.0047475565,
0.06351903,
-0.015852472,
0.0035708991,
-0.00040884578,
-0.036179654,
-0.032332495,
-0.031186534,
0.03991767,
0.023001092,
-0.021091156,
0.02781686,
0.013321807,
-0.047093578,
-0.10209975,
0.010170411,
-0.012626044,
-0.023205727,
-0.036779918,
-0.004208681,
-0.016111678,
-0.034651704,
0.034460712,
0.032550775,
-0.013703794,
0.021786919,
0.001991791,
-0.010306836,
-0.01657552,
0.012114454,
0.049958482,
-0.0044474234,
0.0040824893,
-0.041391052,
-0.017898833,
-0.02968587,
0.023424007,
0.02021804,
0.009617894,
-0.0022100692,
0.029604016,
0.018758304,
0.06062684,
-0.013178562,
0.05789836,
0.005262557,
-0.037107337,
-0.029795008,
-0.024392618,
0.035470247,
0.0010879816,
0.006091333,
0.015811546,
-0.047011722,
0.0005759652,
0.0008633083,
-0.014051676,
-0.06668407,
0.032960046,
-0.0091199465,
-0.013430946,
-0.035442963,
-0.010968492,
0.037953164,
0.041309197,
-0.015183995,
-0.053614646,
-0.03151395,
0.031541236,
-0.02815792,
0.009665643,
-0.011418692,
0.04406496,
-0.040681645,
-0.008008091,
-0.05211398,
-0.0077216,
-0.003734608,
-0.0018587775,
0.029767724,
0.009099483,
-0.031404812,
0.026138844,
-0.01952228,
0.021418573,
0.013778827,
0.0057468624,
0.012250878,
-0.016029824,
-0.011937103,
0.05001305,
0.05181385,
0.01639817,
-0.005006762,
0.02162321,
-0.01907208,
-0.023505861,
0.030504413,
0.06821202,
0.006248221,
0.015265849,
-0.002088993,
0.0005465488,
-0.05817121,
-0.009972597,
-0.007837561,
-0.041854892,
-0.004955603,
0.023178443,
-0.0033611471,
0.04439238,
0.008315044,
0.025347585,
0.02128215,
0.009003987,
0.018526383,
0.011834784,
0.0065313005,
0.03582495,
0.018881086,
-0.043219134,
0.029140173,
0.012912535,
-0.0407635,
-0.025838712,
-0.0031411634,
-0.0022799866,
-0.008621999,
0.028348913,
-0.030859116,
0.014829292,
-0.021132082,
-0.017885191,
-0.008144515,
0.016630089,
-0.038962703,
0.009092662,
-0.07104964,
0.030695407,
0.012312269,
-0.0025084969,
-0.043410126,
-0.023655927,
0.0073191496,
0.06373731,
0.05216855,
-0.036425218,
-0.036970913,
0.027612224,
0.003905138,
0.030668123,
-0.035333823,
-0.026275268,
0.018130753,
-0.02815792,
-0.040599793,
-0.026739111,
0.03399687,
-0.00004191309,
-0.010368226,
-0.018362675,
-0.014679226,
0.0040824893,
-0.028758187,
0.0069166985,
-0.011480083,
0.009406437,
-0.03410601,
0.014038033,
0.0082468325,
-0.011561937,
-0.011405049,
0.03871714,
0.04019052,
-0.0035845414,
-0.020149829,
0.006364181,
0.019917909,
-0.058826044,
0.01799433,
0.025347585,
0.059862867,
-0.025443083,
-0.0028069245,
-0.009031271,
0.0373529,
-0.0028785472,
0.0038471578,
-0.017857905,
0.012632865,
-0.0008718348,
-0.021159368,
-0.03462442,
0.031213818,
0.017571416,
-0.029085604,
0.011473261,
0.05017676,
-0.028185206,
0.005272789,
-0.012551011,
0.01845817,
0.0062823268,
-0.01481565,
-0.0057127564,
-0.046984438,
0.03383316,
-0.007503322,
-0.040681645,
0.0040108664,
-0.00300815,
0.04791212,
0.02197791,
-0.04324642,
0.0003598184,
0.011862069,
0.0567524,
0.026889177,
0.033805877,
0.0054706037,
0.039208267,
-0.0015944559,
0.04529278,
0.01980877,
-0.016480023,
-0.032741766,
-0.033915013,
0.00007503322,
0.008894847,
-0.047721125,
-0.015074856,
0.026097918,
-0.02968587,
-0.0032434813,
-0.02480189,
0.024651824,
-0.06559268,
0.00204295,
0.046466026,
-0.0017973867,
0.0020395394,
0.041500192,
0.010920743,
0.007271401,
0.013253595,
0.023628643,
0.02066824,
0.03991767,
0.003219607,
-0.011875712,
0.04818497,
0.032850906,
-0.007939879,
-0.0003295493,
-0.01476108,
0.00087822974,
-0.006398287,
-0.015565982,
-0.024665466,
-0.008526502,
0.01680744,
-0.0019031153,
-0.042891715,
-0.02753037,
0.012967104,
-0.040517937,
-0.021759633,
0.05789836,
0.01277611,
-0.02214162,
-0.0257705,
-0.017012076,
0.0197542,
0.012025778,
-0.017557774,
-0.01112538,
-0.05552458,
-0.03871714,
-0.028594477,
-0.058444057,
0.007755706,
-0.028567193,
-0.024174338,
-0.041527476,
0.01793976,
0.034133293,
0.07481494,
0.01845817,
-0.042209595,
0.016084393,
0.0023192086,
0.0481304,
-0.0011024767,
0.030804547,
0.043219134,
0.044310525,
0.003905138,
0.02282374,
0.0038301046,
0.016439095,
-0.008008091,
0.008526502,
0.024160696,
-0.03672535,
-0.032277927,
-0.021527713,
0.0030848884,
0.025047453,
-0.008737959,
-0.012626044,
-0.014993001,
-0.0493855,
-0.00073626346,
-0.029031035,
0.0134514095,
0.017530488,
0.0021589103,
-0.017230356,
-0.055797428,
0.21598653,
0.036970913,
0.025443083,
-0.040163234,
0.032905478,
0.046984438,
0.0099521335,
-0.014310881,
-0.027339377,
-0.030340705,
0.030067857,
-0.035361107,
0.021377645,
-0.006006068,
0.0035504354,
-0.012994389,
-0.056806967,
0.0045974897,
-0.0011630149,
-0.035115547,
-0.051677424,
0.02162321,
0.010061272,
0.0382533,
0.00055123837,
0.047202714,
0.0296313,
-0.03877171,
0.0017342905,
-0.057461802,
0.06510155,
-0.024720035,
0.026834607,
-0.03156852,
0.012141739,
0.024624538,
0.002339672,
-0.015593267,
0.01010902,
0.016466381,
0.015347703,
-0.041745752,
0.0012789753,
-0.017748768,
-0.014706511,
0.016275387,
-0.025456725,
0.03882628,
-0.003939244,
-0.0653744,
0.04155476,
-0.000914041,
-0.0091472315,
-0.045429204,
-0.08038104,
-0.0061390814,
-0.004000635,
-0.0333966,
-0.006572228,
0.014706511,
-0.016507307,
-0.01368333,
0.006561996,
0.022305328,
-0.016671017,
0.051677424,
-0.0069678575,
-0.024720035,
0.012932998,
0.00351974,
0.028976465,
0.0014776428,
-0.0091131255,
-0.006903056,
0.015102141,
-0.0180489,
0.011275446,
0.008335508,
0.0069064666,
-0.004696397,
-0.010102199,
-0.012080348,
0.018062541,
-0.05773465,
-0.0066097444,
0.05920803,
-0.05516988,
0.0126124015,
0.02356043,
0.013014853,
0.0481304,
0.040408798,
-0.005245504,
0.008594714,
-0.012230415
] | True or 'longest': pad to the longest sequence in the batch (no padding is applied if you only provide
a single sequence).
'max_length': pad to a length specified by the max_length argument or the maximum length accepted
by the model if no max_length is provided (max_length=None). Padding will still be applied if you only provide a single sequence.
False or 'do_not_pad': no padding is applied. This is the default behavior. |
[
0.037439167,
-0.014656698,
-0.0154288635,
0.014620616,
0.016872162,
-0.04687834,
-0.029414427,
0.04910102,
0.01082474,
0.07458968,
-0.009042267,
-0.0333402,
0.029515458,
-0.015284534,
-0.008464946,
-0.0026448448,
0.02875051,
-0.036226798,
-0.023006182,
-0.001330541,
0.01418041,
0.004474226,
-0.060618546,
-0.04006597,
-0.026065974,
0.015688658,
0.008378349,
-0.0045572156,
0.0652371,
0.01335773,
-0.0106154615,
0.009049483,
-0.0078659775,
-0.015760822,
0.00646237,
-0.008796905,
0.04751339,
-0.019441234,
-0.018979378,
-0.04967834,
0.040268034,
-0.02290515,
0.021880409,
-0.054960813,
-0.07782266,
-0.008811339,
-0.013299998,
-0.005607215,
-0.0041603083,
-0.043010302,
0.019268038,
-0.0065164934,
0.018618554,
-0.039026797,
-0.013545359,
-0.0007090205,
-0.009107214,
-0.01623711,
-0.012996905,
0.027740201,
0.033571128,
0.05019793,
0.0130907195,
-0.05874226,
-0.009403091,
0.07054844,
-0.029096901,
0.0086886585,
-0.041913394,
0.014057729,
-0.038767003,
0.03397525,
-0.0043623704,
-0.0017292523,
-0.032676283,
-0.0031626283,
0.0318969,
-0.037323706,
-0.013855668,
0.04367422,
0.02648453,
0.030078344,
0.016973192,
-0.010398967,
-0.012434018,
-0.02701855,
0.057558753,
0.018719584,
0.020855667,
-0.0069855656,
0.018272161,
0.028534016,
0.0030219066,
0.030597933,
0.01094742,
0.05406597,
-0.0005732602,
0.042461846,
0.0014234533,
0.030453602,
-0.00081726786,
0.083711326,
-0.047744323,
0.018387625,
-0.019975254,
0.00942474,
0.05169896,
-0.005863401,
-0.0025636593,
-0.011618555,
0.022573192,
-0.009020617,
0.0020386593,
-0.004986597,
-0.028490717,
0.060907204,
0.03541855,
-0.012289688,
-0.050169062,
-0.019484533,
-0.0040051537,
-0.027451541,
-0.023973191,
-0.031204117,
-0.0022569583,
-0.01012474,
0.046214424,
0.056375246,
-0.0458969,
-0.018618554,
-0.022212368,
-0.035245355,
0.01345876,
0.04809071,
-0.012015462,
0.020235049,
0.0032347932,
0.0114381425,
0.043991745,
-0.014050513,
0.03562061,
-0.03842061,
-0.0076278336,
0.06962473,
0.009641236,
0.009626802,
-0.0044381437,
-0.012556699,
-0.052824732,
0.018618554,
-0.040672157,
-0.00035067648,
-0.00035067648,
0.04295257,
-0.018272161,
-0.009395874,
-0.038969066,
-0.0041314424,
-0.031146387,
-0.0057371124,
0.024536077,
0.036832985,
-0.022010306,
0.055884525,
-0.031030921,
0.027076283,
-0.04543504,
-0.030597933,
-0.02097113,
-0.022602057,
0.0065922667,
0.0017193296,
0.018734017,
0.01753608,
0.053142257,
0.024896903,
0.02967422,
0.017767007,
0.006393813,
0.0026701025,
-0.002677319,
-0.015688658,
-0.010052576,
-0.008630926,
0.014101028,
0.023179376,
0.019239172,
0.008363916,
-0.007692782,
-0.0013738399,
0.016352573,
0.04586803,
-0.060272153,
0.05885772,
0.0017247419,
0.059521638,
-0.01483711,
-0.00082222925,
0.017564945,
-0.06223504,
-0.004697937,
0.016323708,
-0.0022930407,
0.0044706175,
-0.051294837,
0.021346388,
-0.006960308,
0.05397937,
-0.027465975,
0.010586596,
0.04214432,
0.005177834,
-0.046156693,
-0.007822679,
0.041624736,
-0.006588659,
0.005134535,
0.038334012,
0.027422676,
0.025863912,
0.0037742262,
0.00039713265,
0.02473814,
0.027263913,
-0.027393809,
-0.011676286,
0.00027106953,
0.04058556,
-0.028447418,
0.012672163,
0.0053293803,
0.03608247,
-0.02068247,
0.05126597,
0.019628862,
0.012506183,
0.019282471,
0.01000206,
0.005347422,
-0.0011600513,
-0.02247216,
0.05605772,
0.032503087,
0.031146387,
0.0007207473,
0.028678345,
-0.005080411,
-0.0057551535,
-0.03435051,
-0.009265978,
-0.05068865,
0.06552576,
0.015486595,
-0.00004141027,
-0.0666804,
-0.00707938,
0.009814431,
0.05663504,
-0.067777306,
-0.056519575,
-0.008436081,
0.021750512,
-0.010608246,
-0.027552573,
0.022356696,
0.016280409,
-0.029096901,
0.01512577,
-0.01753608,
-0.05011133,
-0.0278268,
-0.029385561,
-0.083711326,
-0.01070206,
-0.004181958,
-0.01224639,
-0.007238143,
-0.03599587,
-0.022024738,
-0.04280824,
-0.02788453,
0.018127833,
-0.030078344,
0.025690718,
0.0047556693,
0.010088658,
-0.043327827,
0.013812369,
-0.018921645,
0.040787622,
-0.00998041,
-0.033686593,
-0.04517525,
-0.02512783,
0.018921645,
0.0076206173,
0.021375254,
-0.0059139165,
-0.0044237105,
-0.02589278,
-0.020321645,
-0.024940202,
-0.0207835,
-0.0485237,
-0.02164948,
0.01239072,
-0.0046113394,
-0.00006150933,
0.047340196,
0.029457726,
-0.010651545,
0.024348449,
-0.011676286,
0.036399994,
-0.038622674,
0.07938143,
0.016915461,
-0.005805669,
-0.025055666,
-0.015746389,
0.01442577,
0.010348451,
0.0060293805,
-0.042375248,
-0.032012366,
0.029934015,
0.016973192,
-0.05957937,
0.023525769,
-0.018517522,
-0.031492777,
-0.0145556675,
-0.030886592,
0.018012367,
0.02619587,
0.03657319,
-0.06760411,
-0.02488247,
-0.017723707,
0.035880405,
0.007043298,
-0.046936072,
0.013018554,
0.041134015,
-0.0050768033,
0.017579379,
0.042865973,
-0.05822267,
0.002864948,
-0.0125855645,
0.02613814,
0.026311336,
0.020927832,
-0.00465103,
0.020422677,
0.021129893,
-0.05461442,
-0.0021739686,
0.009504122,
-0.008407215,
0.008378349,
0.038391747,
0.0069819572,
-0.01253505,
-0.027581438,
-0.040210303,
0.0041134013,
-0.0026195871,
0.056923702,
-0.04179793,
-0.012361853,
-0.0094680395,
-0.06465978,
-0.0114381425,
-0.020408243,
-0.06304329,
0.046734013,
0.019167006,
0.054181434,
-0.018445358,
-0.021851541,
0.014808245,
0.0069675245,
0.05242061,
0.005877834,
0.029731954,
0.010471132,
0.016020615,
0.01055773,
-0.033715457,
0.0033664943,
-0.013660822,
-0.014526801,
-0.040325765,
-0.0652371,
-0.024002057,
0.030597933,
0.05074638,
0.015544327,
0.021880409,
0.030338138,
-0.0346969,
0.023670098,
0.009994843,
-0.00036307983,
0.037554633,
-0.041249476,
0.023309274,
-0.014101028,
-0.0063685556,
-0.010463916,
-0.0042469064,
-0.012773193,
-0.008818555,
0.03339793,
0.0002897873,
-0.0026971644,
-0.004456185,
0.011921647,
0.012361853,
-0.033744324,
-0.007046906,
0.04378968,
0.03097319,
0.04321236,
-0.047657724,
0.0141443275,
-0.036746386,
0.009763916,
0.022457728,
0.0021126284,
-0.01913814,
-0.008667009,
-0.009756699,
-0.039171126,
0.038045354,
0.04367422,
-0.00535103,
-0.0137762865,
-0.027552573,
0.013206183,
0.01705979,
-0.037035044,
0.027682468,
-0.004665463,
0.0040664943,
0.028115459,
0.018907214,
-0.013956699,
-0.05784741,
0.022602057,
-0.020711336,
0.009164947,
-0.01418041,
0.0029208758,
-0.0010166236,
-0.01239072,
-0.005657731,
0.050948445,
-0.0003278994,
-0.03362886,
-0.026874222,
0.0123113375,
-0.03550515,
-0.053315453,
0.008039174,
0.010976287,
0.01109175,
0.021144327,
0.0067546377,
0.011098967,
0.012758761,
0.003335824,
-0.02831752,
0.0123113375,
-0.011546389,
0.01985979,
0.0054231947,
-0.026282469,
0.010175256,
-0.029313397,
0.04049896,
-0.007108246,
-0.014909276,
-0.009634019,
-0.028014427,
0.031146387,
0.0033412364,
-0.02566185,
0.019989686,
0.03541855,
-0.023814429,
0.0049685556,
-0.062061843,
-0.039055664,
-0.03019381,
0.0006386597,
0.0045391745,
0.05992576,
-0.00007036081,
0.010023709,
0.0010914947,
-0.050804116,
0.0019917523,
-0.057183493,
-0.00068782206,
-0.04494432,
0.013617523,
0.018199997,
0.011820616,
-0.03943092,
0.0059608235,
-0.004708762,
-0.01599175,
0.037756693,
-0.010377318,
0.0033574735,
-0.060560815,
-0.023684531,
0.06598762,
-0.006491236,
-0.089426786,
-0.03178144,
0.025820613,
0.04687834,
0.027725767,
0.01782474,
-0.04430927,
0.0034007726,
-0.061484523,
0.03504329,
-0.04208659,
0.00085154624,
-0.020206181,
-0.029457726,
0.040989682,
-0.0011871132,
0.06275463,
-0.05117937,
-0.0035703601,
-0.05169896,
0.021216491,
-0.03391752,
-0.022298966,
-0.0067077307,
0.010860823,
-0.028202057,
0.06402473,
-0.001843814,
-0.0014667523,
-0.0015253864,
0.014728863,
0.024680408,
0.023857728,
0.012001028,
-0.028476283,
-0.02111546,
0.0034927828,
0.007764947,
0.02937113,
-0.012599997,
0.03019381,
-0.029313397,
0.064371124,
-0.023684531,
-0.02478144,
-0.013718554,
-0.019686595,
0.037006177,
-0.06546803,
0.02556082,
-0.0388536,
0.03957525,
0.038449477,
0.043039165,
-0.027956696,
-0.0032474222,
-0.064255655,
-0.07378143,
0.028432984,
-0.03957525,
-0.025142264,
-0.016251544,
-0.028173191,
0.02885154,
-0.04696494,
0.018373193,
0.055538133,
-0.0058994833,
0.016309274,
-0.05435463,
0.0152701,
0.009475256,
-0.0019268037,
-0.01000206,
0.011264946,
-0.042057723,
-0.0005633375,
-0.040989682,
-0.04006597,
-0.016583502,
0.028418552,
0.020740202,
-0.037525766,
0.0430969,
-0.02391546,
-0.036832985,
-0.014880409,
0.024925768,
0.032301024,
0.00806804,
-0.009020617,
0.023872161,
0.0053762877,
-0.014245358,
0.00036059917,
-0.025936078,
-0.010355668,
0.039517518,
-0.004503092,
-0.04537731,
0.036371127,
0.04087422,
-0.047369063,
-0.05608659,
-0.03019381,
0.019830924,
-0.036515456,
-0.046503086,
-0.00257268,
0.002967783,
-0.055538133,
0.011373194,
0.026296902,
-0.00037976797,
0.01990309,
0.015529894,
-0.023511335,
-0.04049896,
0.0052896896,
0.05328659,
-0.021736078,
-0.021678347,
-0.047311332,
-0.011914431,
-0.03175257,
0.0030182984,
0.044713393,
0.030713396,
0.004777319,
0.015342265,
-0.01701649,
0.057443287,
-0.011871132,
0.04208659,
0.02473814,
-0.053459782,
-0.059406176,
-0.039142262,
0.030886592,
0.015154636,
0.0071912357,
-0.0007626932,
-0.02014845,
0.01345876,
0.014490719,
0.0027693294,
-0.055567,
-0.02294845,
-0.06367834,
-0.012903091,
-0.03025154,
-0.027278345,
-0.0040737106,
0.018618554,
0.008724741,
-0.011135049,
0.002179381,
0.01778144,
0.0075484524,
0.008053606,
-0.051063906,
-0.027653603,
-0.028663913,
-0.037987623,
0.012282472,
-0.030164942,
-0.00018909469,
0.007649483,
-0.013812369,
-0.0010644328,
-0.038564943,
0.0485237,
-0.01695876,
-0.019109275,
-0.021418553,
-0.017954636,
-0.032589685,
0.015760822,
-0.044193804,
0.058251534,
0.014909276,
-0.048263907,
-0.0000018252655,
-0.011690719,
-0.03238762,
0.011286596,
0.0068268026,
0.070721634,
-0.0001071762,
0.033802055,
0.05550927,
0.01292474,
-0.057241227,
0.00312835,
-0.0055242255,
-0.0008059921,
-0.017261852,
0.042317517,
-0.017853605,
0.024146387,
0.018503089,
0.0030904633,
0.027336078,
-0.0010608245,
0.01444742,
0.00280902,
-0.0058237105,
-0.0334268,
0.014339172,
-0.044136073,
0.03504329,
0.013790719,
-0.015356698,
0.00819072,
-0.00017015138,
-0.029125767,
-0.055826794,
0.0017860822,
-0.007959792,
0.01903711,
0.024824739,
0.014346389,
0.006242267,
-0.00027422674,
-0.0065670093,
0.01619381,
-0.07695669,
-0.007606184,
-0.007815463,
-0.013689688,
0.0033863396,
-0.032185562,
0.03992164,
0.007519586,
0.0004577963,
-0.008739173,
-0.0094680395,
-0.008580411,
-0.009496906,
0.045088653,
-0.08226803,
-0.0007879509,
-0.017521646,
0.021577315,
-0.0085515445,
-0.051727824,
0.0070685553,
0.050948445,
0.010622678,
-0.0444536,
-0.035389684,
0.019643296,
-0.010860823,
0.013372162,
-0.020898964,
0.04982267,
-0.052362878,
0.044367,
-0.04260618,
0.020509275,
-0.0029912365,
0.026787624,
0.018575255,
-0.0020675254,
0.009583503,
0.04150927,
0.021808242,
-0.00026633372,
0.03729484,
0.0046113394,
0.058049474,
-0.01152474,
0.0019051543,
-0.030280408,
0.022313397,
0.029544324,
0.02130309,
-0.010550514,
0.047628857,
0.029876282,
-0.066276275,
-0.001520876,
0.02391546,
-0.00066436845,
0.016583502,
0.013379379,
-0.037439167,
0.03726597,
-0.021577315,
0.01319175,
-0.02111546,
-0.0039582467,
-0.0039438135,
-0.02831752,
-0.06038762,
0.010586596,
-0.015284534,
-0.035909273,
-0.028086593,
-0.03025154,
0.04387628,
0.012867008,
-0.005426803,
-0.020884532,
0.029558757,
0.047571126,
0.0013449739,
0.030626798,
0.0035342777,
0.020379378,
0.008378349,
0.026931955,
0.006794329,
-0.016655667,
0.021057729,
-0.016453605,
-0.028057726,
0.018806182,
0.006491236,
-0.0019123708,
0.0002272068,
-0.029760819,
0.018098965,
-0.032734014,
0.024997933,
-0.046734013,
0.02512783,
0.037958756,
-0.03570721,
-0.031377316,
0.01730515,
-0.01749278,
0.023121646,
0.034090716,
0.0749938,
0.0076278336,
0.08376905,
0.034754634,
0.010240205,
0.041336074,
0.03435051,
-0.019744325,
-0.027985562,
0.037554633,
-0.04402061,
0.031175252,
-0.052795865,
-0.036977313,
-0.010593812,
0.014122678,
-0.017276285,
-0.013249482,
0.013956699,
0.023208244,
-0.03319587,
-0.008508245,
0.06454432,
0.028837107,
-0.0194701,
-0.0151979355,
-0.025762882,
-0.014909276,
0.008724741,
-0.011589688,
0.0318969,
-0.0125134,
-0.028548447,
-0.026701026,
-0.01913814,
-0.0056288647,
-0.029587623,
-0.033946384,
-0.008934019,
0.041422673,
0.04257731,
0.045204114,
0.0069350502,
0.008645359,
0.007967009,
0.029847417,
0.045637105,
0.015977317,
0.084635034,
0.08700205,
-0.031088654,
-0.004892783,
-0.004210824,
0.022703089,
-0.017030925,
0.004665463,
0.0032510303,
-0.0032420098,
-0.03850721,
-0.020595873,
-0.059030917,
0.05348865,
0.014808245,
-0.022775253,
-0.04096082,
-0.0039257724,
-0.06823916,
-0.026080407,
-0.021274222,
0.056317516,
0.021750512,
-0.0016002575,
0.022270098,
-0.036688652,
0.24986388,
0.03995051,
0.020769069,
0.021577315,
0.037756693,
0.06731545,
0.072222665,
-0.030309273,
0.00090296374,
-0.034206178,
-0.0016552832,
-0.016323708,
0.0047917515,
0.009229895,
0.0016480667,
-0.0043226797,
-0.0360536,
-0.00458969,
0.025921645,
-0.033138137,
-0.01619381,
0.0061087618,
0.0069567,
0.05227628,
0.030626798,
0.009778349,
0.04482886,
-0.036948446,
-0.018344326,
-0.03726597,
-0.01094742,
-0.017088657,
0.046358753,
-0.041480403,
-0.048148446,
0.05097731,
0.013307214,
-0.04967834,
0.004914432,
-0.00891237,
-0.007126287,
-0.004044845,
-0.011149483,
-0.022298966,
-0.0346969,
0.032445356,
0.011178348,
0.033744324,
0.025531953,
-0.08838761,
0.013588658,
-0.037468035,
0.044338137,
-0.031665973,
-0.039084528,
-0.011986596,
-0.012975255,
-0.015977317,
0.014519585,
0.0049613393,
0.031492777,
0.010853606,
-0.006855669,
0.018632986,
-0.015140204,
0.025762882,
0.01442577,
0.027971128,
-0.03971958,
-0.018416492,
0.008125772,
-0.00444536,
0.009078349,
-0.022053605,
0.020134017,
0.027119583,
-0.00526804,
0.046618547,
0.03097319,
-0.02903917,
0.023323707,
-0.023872161,
-0.039690714,
-0.0061773183,
0.036111332,
0.046214424,
-0.03284948,
-0.0025780923,
-0.035216488,
0.0458103,
0.010651545,
0.067026794,
-0.027379377,
0.039142262,
-0.022674223
] | The model adequately leverages the tool:
``text
==Explanation from the agent==
I will use the following tools:StableDiffusionPromptGeneratorto improve the prompt, thenimage_generator` to generate an image according to the improved prompt.
==Code generated by the agent==
improved_prompt = StableDiffusionPromptGenerator(prompt)
print(f"The improved prompt is {improved_prompt}.")
image = image_generator(improved_prompt)
Before finally generating the image: |
[
0.009895708,
-0.008438463,
0.059970703,
0.027572425,
-0.045276254,
-0.0193983,
0.0010971697,
-0.01862562,
-0.016443143,
0.052867483,
0.07732208,
0.000022306116,
0.005998426,
-0.02944312,
-0.032913398,
0.006269541,
-0.02509172,
-0.011549512,
-0.00072311534,
0.025986401,
-0.039094824,
-0.011563067,
-0.05349105,
0.017080264,
-0.019872751,
-0.021065658,
-0.012200188,
0.011773182,
0.05262348,
0.0331574,
-0.03350985,
0.0049309093,
0.03920327,
-0.014897785,
-0.009448368,
-0.019926975,
0.049370095,
0.008221571,
-0.018828956,
-0.033943634,
0.029632902,
0.009265365,
0.04524914,
-0.044056237,
-0.03844415,
-0.049695432,
0.0012081575,
-0.020780988,
-0.0058323676,
-0.022258567,
-0.034512978,
0.023153245,
0.046875834,
-0.01638892,
-0.048963424,
0.028982226,
-0.0013081313,
-0.011556289,
-0.036763236,
0.03706146,
-0.016063582,
-0.010363382,
0.013555765,
-0.029687125,
0.0016046637,
0.035732996,
-0.014477557,
-0.02772154,
-0.014192886,
-0.00066677417,
-0.008574021,
-0.002570512,
-0.022746574,
-0.04665894,
-0.023912368,
0.016253361,
0.05265059,
0.0058493125,
-0.034485865,
0.09646282,
0.0018588343,
0.05904891,
0.0034634979,
-0.02217723,
-0.022285677,
-0.029497344,
0.031991605,
0.033645406,
-0.044517133,
-0.015209568,
-0.024956163,
0.010864945,
-0.0034414697,
-0.00008837723,
0.0172836,
0.008275795,
-0.0056866435,
0.031883158,
0.0076928963,
-0.041778866,
0.059482697,
0.03790192,
0.010336271,
0.037468135,
-0.036546342,
0.055578634,
0.045655817,
0.035082318,
-0.05509063,
-0.029904017,
0.012464526,
0.0066592693,
0.04164331,
-0.017107375,
-0.040152173,
0.023451474,
0.01735138,
0.0072862236,
-0.0373868,
-0.034784093,
0.029470233,
-0.0057340884,
0.035028096,
0.004073507,
0.014423334,
-0.006455933,
0.0021706168,
0.03524499,
-0.0067643267,
-0.04215843,
0.00070659426,
-0.0027569036,
0.0073946696,
0.002999213,
0.023668366,
0.0016199138,
-0.018571397,
0.04524914,
-0.0026382906,
-0.019018738,
0.025593285,
-0.012620417,
-0.01690404,
0.08106347,
-0.0062898747,
0.021201216,
0.009455146,
0.027057307,
-0.01552135,
0.02765376,
-0.047526512,
0.027897764,
0.021906115,
0.005239303,
-0.021038547,
-0.011441066,
-0.03898638,
0.021201216,
0.012959311,
0.019411854,
0.0068795504,
0.009021361,
-0.0040667295,
0.036085445,
-0.028412882,
0.03191027,
-0.048122965,
-0.008574021,
0.0037685025,
-0.010085489,
-0.007604784,
0.0022536458,
-0.03616678,
-0.0098618185,
0.031340927,
0.05904891,
0.017514048,
-0.06132628,
0.02534928,
0.010783611,
-0.039230384,
0.058452457,
0.015548462,
0.023600586,
0.0016241501,
-0.0011031004,
0.0061305948,
0.033347182,
-0.032154273,
-0.009882152,
0.0065914905,
0.042673547,
-0.03719702,
0.025850844,
0.017310712,
-0.0068151606,
-0.053084373,
0.04389357,
-0.0036465006,
-0.037685025,
-0.030988479,
0.0134947635,
-0.016971817,
-0.005767978,
-0.020767432,
-0.054168835,
0.012999979,
0.0651219,
0.0075234496,
0.042592213,
-0.019181408,
0.03391652,
-0.02941601,
0.04909898,
-0.013054201,
-0.033347182,
-0.014450445,
0.016632924,
0.010166824,
0.03700724,
-0.017608939,
0.05140346,
0.0042463434,
0.059645366,
-0.009780484,
-0.010044822,
0.024590157,
0.051132344,
0.022733018,
0.025240835,
0.0060865385,
0.045818485,
0.0122883,
0.04571004,
0.01427422,
0.021987451,
0.05018344,
0.0451407,
-0.033401404,
0.05387061,
-0.046523385,
0.05368083,
0.006350876,
-0.010681943,
0.019804973,
-0.0034397752,
0.026135515,
-0.043351337,
-0.008018235,
-0.0096449265,
-0.054873735,
0.0698393,
0.032479614,
0.014843563,
-0.019994752,
-0.009367034,
-0.015263791,
-0.036193892,
-0.08502176,
-0.018042723,
0.043215778,
0.010661609,
-0.011691847,
-0.021418108,
0.061705843,
0.021499444,
0.048285633,
0.0007942831,
-0.0067575485,
-0.03437742,
-0.021743447,
-0.041263748,
-0.042077094,
-0.021363886,
-0.022367012,
0.019357633,
0.031883158,
-0.070327304,
0.0037922252,
-0.0067846603,
-0.039257497,
0.018612064,
-0.04061307,
0.007537005,
0.00077225495,
-0.027003083,
-0.027707983,
0.03012091,
-0.011644402,
0.08621466,
-0.020889433,
-0.036627676,
-0.011081838,
0.0065474343,
0.012844088,
0.0090620285,
0.0049919104,
0.006510156,
0.0023315914,
-0.028494218,
-0.015060455,
-0.037847694,
-0.015236679,
0.068212606,
-0.02835866,
0.030581806,
0.017554715,
-0.02621685,
0.015385793,
0.05601242,
0.0067711044,
0.015236679,
-0.008323239,
0.04289044,
-0.029931128,
0.0064728777,
0.03367252,
-0.0036566677,
-0.049749658,
-0.038905043,
-0.010600608,
0.02909067,
-0.007781009,
-0.0028975448,
-0.028873779,
0.047878962,
-0.020658985,
-0.049207427,
0.013210093,
-0.02506461,
0.048854977,
0.010587052,
-0.045276254,
0.04289044,
0.04359534,
0.00944159,
-0.038362816,
-0.035353433,
-0.010302382,
0.008777358,
0.03069025,
-0.040857077,
-0.017405601,
0.0003221612,
0.00095229247,
0.023465028,
-0.0067778826,
-0.024522379,
0.00841813,
-0.011129283,
0.02259746,
0.04833986,
0.019262742,
-0.0006053496,
0.0049647987,
0.02944312,
-0.041073967,
-0.0069473293,
-0.01392177,
0.008885804,
0.011915517,
-0.008709579,
-0.0023536196,
-0.008906137,
-0.031693377,
-0.03741391,
-0.00512069,
0.028141767,
0.02224501,
-0.034512978,
0.024373265,
0.02285502,
-0.029226229,
0.03210005,
-0.003741391,
-0.014938453,
0.07092376,
0.0025569561,
0.05086123,
-0.03773925,
-0.01735138,
0.0017309018,
0.012844088,
0.045818485,
0.046902947,
0.02781643,
-0.02784354,
-0.011230951,
-0.0025383169,
0.007557339,
-0.00841813,
0.007150666,
0.0031246038,
-0.010776833,
-0.034106303,
-0.027613092,
-0.012010408,
0.04074863,
0.07119488,
0.011766404,
-0.029280452,
-0.0154942395,
0.013589654,
0.009746595,
-0.0038769487,
0.00726589,
-0.0331574,
0.05758489,
0.0038396704,
-0.001123434,
-0.013664211,
-0.01094628,
0.004615738,
0.015670463,
-0.018381618,
0.0071032206,
-0.043351337,
0.020753875,
0.04503225,
0.009360256,
-0.028819555,
-0.030229356,
-0.00029166075,
0.021065658,
0.029497344,
-0.039609946,
-0.00024188567,
-0.0071642217,
0.04275488,
0.048285633,
0.004239565,
-0.02297702,
-0.033591185,
-0.049180314,
-0.083937295,
0.053626604,
0.06024182,
-0.040667295,
0.015941579,
-0.03012091,
-0.0053884163,
0.014436889,
-0.019601636,
0.018029166,
-0.04630649,
0.011915517,
0.017066708,
0.0066084354,
-0.06398321,
-0.042321097,
0.0060221483,
-0.08079236,
0.018029166,
-0.07038153,
-0.022705905,
-0.03971839,
-0.018639177,
-0.0068422724,
0.027951987,
-0.0010014321,
0.004036229,
-0.024766382,
0.024685048,
-0.031205371,
-0.015453571,
0.033130288,
-0.011596957,
-0.015236679,
0.060458712,
0.0055985306,
0.019466078,
0.02182478,
-0.0000402172,
-0.04234821,
0.0060560377,
-0.038227256,
0.011190284,
-0.040287733,
-0.033265848,
-0.015900912,
-0.01859851,
0.030798698,
0.020536983,
-0.026962416,
-0.0071709994,
-0.035380546,
-0.004500514,
0.0036600565,
0.005286748,
-0.00060323154,
-0.004727573,
0.015046899,
0.01325076,
-0.05227103,
-0.01613136,
0.025023941,
-0.018218948,
-0.022733018,
0.022041673,
0.06734504,
0.054141726,
0.010648053,
-0.039745502,
0.015900912,
0.00038739835,
-0.041616198,
-0.017012484,
-0.011007281,
0.038552593,
0.026731968,
-0.02048276,
-0.006669436,
-0.007760675,
0.022407679,
-0.01942541,
-0.012132409,
0.026162626,
0.004598793,
-0.0008777358,
0.020116756,
0.015873801,
-0.019072961,
0.026420185,
0.018923847,
-0.056066643,
-0.010451495,
-0.0050359666,
-0.0075912285,
-0.00034270668,
-0.04465269,
0.008343574,
-0.019710083,
-0.016172027,
-0.057259552,
-0.017175155,
-0.002196034,
-0.0058357567,
0.021336773,
-0.045438923,
0.012342524,
-0.02381748,
0.008275795,
-0.049315874,
-0.0007561575,
-0.012349302,
-0.022556793,
0.016849816,
0.058940466,
-0.008485909,
-0.019886307,
0.0013801462,
-0.013115202,
0.025471281,
0.027382646,
-0.024400376,
0.0061949845,
-0.030581806,
-0.0038633929,
0.006876162,
0.0018063056,
-0.026555743,
0.0041175634,
-0.041778866,
0.005551086,
0.006642325,
0.0082283495,
-0.00060831493,
0.010282048,
0.012566194,
-0.03440453,
0.04042329,
-0.0310427,
0.019954085,
0.0067304373,
0.03014802,
-0.019615192,
0.035705883,
-0.033726744,
-0.042104207,
0.039393052,
-0.027897764,
-0.024779938,
-0.0156026855,
-0.017229376,
0.07298424,
-0.059428472,
0.07217089,
0.087136455,
0.0037651137,
0.0045954045,
-0.014409778,
0.04999366,
0.037847694,
-0.07287579,
0.038579706,
0.0025586507,
-0.0409113,
0.003251689,
-0.0670197,
-0.017270043,
-0.03546188,
-0.0000984911,
0.029876906,
0.009970265,
0.041914426,
0.0025755954,
-0.026284628,
-0.060458712,
0.05693421,
0.0022672017,
-0.00046725027,
0.024712158,
-0.013630321,
0.013908215,
0.049207427,
-0.041616198,
-0.0489092,
-0.037332576,
0.052542143,
-0.009075585,
-0.022448346,
0.04625227,
0.005534141,
-0.07021886,
-0.04595404,
-0.034079194,
-0.017093819,
-0.0056832545,
-0.053030152,
-0.041372195,
0.027436867,
-0.059320025,
0.0019486411,
0.001353882,
-0.006571157,
0.044029124,
-0.024983274,
-0.0030432693,
-0.019113628,
0.019723637,
0.04638783,
-0.01897807,
0.02137744,
-0.048963424,
-0.022773685,
-0.0067338264,
0.028982226,
0.024630824,
0.0068931063,
0.03405208,
-0.004886853,
-0.009007806,
0.064417,
-0.04560159,
0.03399786,
0.015060455,
-0.06550146,
-0.05758489,
0.0018605287,
0.01975075,
0.0209301,
0.010993726,
-0.01417933,
-0.04684872,
-0.0090281395,
0.019059405,
0.0010725999,
-0.05069856,
-0.007259112,
-0.018652732,
-0.010905613,
-0.034296084,
-0.023790367,
0.044896692,
0.033970747,
-0.045872707,
-0.009075585,
-0.02854844,
0.00393795,
-0.018652732,
0.04595404,
-0.029714236,
-0.0118951835,
-0.025227278,
-0.025606839,
-0.03172049,
-0.029578678,
-0.055578634,
0.0029314342,
-0.006174651,
0.020238757,
-0.05457551,
0.06002493,
0.0037854472,
0.013433763,
-0.039799724,
-0.056066643,
0.030256467,
0.0047174064,
-0.009977043,
0.020672541,
0.020048976,
0.026650634,
0.00031983134,
-0.0052291364,
-0.03971839,
-0.03172049,
0.014775784,
0.012471303,
-0.0038498372,
0.019127185,
-0.018720511,
-0.0020943657,
-0.04042329,
-0.012105298,
-0.022556793,
0.0273962,
-0.0075302273,
0.009339922,
0.017107375,
0.07119488,
-0.0039481167,
-0.012566194,
-0.002678958,
-0.014694449,
0.03613967,
0.022814352,
0.008018235,
-0.010824278,
-0.015196012,
-0.03651923,
-0.0015639963,
0.00656099,
-0.0006989691,
0.0126610845,
-0.009319589,
-0.010139712,
-0.002246868,
0.0048089074,
-0.013555765,
0.0035956665,
0.019737193,
0.024075039,
-0.009834708,
-0.010526052,
-0.025715286,
0.014436889,
-0.03472987,
-0.032235608,
0.0037210574,
-0.013677767,
0.0031246038,
-0.013813324,
-0.020347202,
-0.020062532,
0.02765376,
-0.001681762,
0.0045344033,
0.03866104,
0.01091239,
0.04180598,
-0.017880054,
-0.0018774734,
0.03421475,
0.010878501,
-0.044218905,
-0.031232482,
0.047824737,
0.037630804,
-0.017473381,
-0.042673547,
-0.033238735,
-0.0065271007,
0.017392047,
0.030880032,
-0.009949931,
0.011576623,
-0.015101122,
-0.0050495225,
-0.046821613,
0.05153902,
-0.011081838,
0.022882132,
0.014341999,
-0.014586003,
0.0075166714,
0.07059842,
0.034296084,
0.004551348,
-0.013548987,
-0.000018864224,
0.03367252,
-0.017758051,
-0.031828936,
0.0045954045,
0.032588057,
0.029497344,
0.04625227,
-0.006377987,
-0.010729387,
0.04093841,
-0.041209526,
-0.024725715,
0.056771543,
0.01808339,
0.0023671754,
0.022421235,
-0.013101647,
-0.016334696,
-0.0411553,
-0.041561976,
0.027897764,
0.0081537925,
0.00222484,
-0.028683998,
-0.038335703,
0.040884186,
-0.022556793,
-0.022882132,
-0.0012886449,
-0.0009573759,
0.018612064,
0.025918622,
-0.02410215,
0.010126157,
0.014409778,
0.039393052,
0.017270043,
0.010648053,
0.060567155,
0.046143822,
-0.071140654,
0.0524337,
0.022231454,
0.031259593,
-0.031395152,
-0.034106303,
-0.023966592,
0.014423334,
-0.015860245,
0.016660035,
0.0136032095,
-0.05143057,
0.0053511383,
-0.013426985,
0.02694886,
-0.024332598,
0.003139854,
0.014003105,
0.0052257474,
-0.019804973,
0.035028096,
-0.005645976,
0.022380568,
0.031395152,
0.030283578,
0.027206419,
0.05601242,
0.021960339,
-0.033889413,
-0.0034346918,
0.040179286,
-0.0021570611,
-0.0149113415,
-0.019018738,
-0.040287733,
0.0015131623,
0.0034770537,
-0.008485909,
-0.034675647,
0.019411854,
-0.013704878,
-0.051810134,
-0.034865428,
0.03191027,
-0.06409165,
0.029605791,
0.039637055,
-0.028087545,
0.020320091,
-0.038227256,
-0.0036193891,
-0.0025383169,
0.025403503,
-0.0074760043,
0.014504668,
-0.063495204,
-0.0066660475,
-0.027125085,
-0.022705905,
-0.012993201,
-0.03437742,
0.017866498,
-0.036221005,
0.03332007,
0.008072458,
0.014952009,
0.054683954,
-0.035190765,
0.043622453,
-0.00825546,
0.02506461,
-0.04080285,
0.044327352,
0.046550497,
-0.00079979014,
0.019194962,
-0.009109474,
0.033618297,
0.011671513,
-0.030337801,
-0.04215843,
0.032913398,
-0.06479655,
-0.020970767,
-0.015358682,
0.03706146,
-0.011718959,
-0.028656887,
-0.07835232,
-0.029388897,
-0.06810416,
-0.015670463,
-0.03895927,
0.0059475917,
-0.008926471,
0.00828935,
0.024820605,
-0.06880906,
0.21277128,
0.04324289,
0.026067736,
0.018571397,
-0.014382666,
0.07374336,
-0.01977786,
-0.042429544,
-0.010729387,
-0.018340949,
0.030364914,
-0.027219975,
0.004666572,
0.0531386,
0.03142226,
0.0015470517,
-0.037983254,
-0.024034372,
-0.0035177208,
-0.03985395,
-0.02909067,
-0.010404049,
0.022312788,
0.048502527,
-0.028277325,
0.043703787,
-0.0059204805,
-0.011115727,
-0.005706977,
-0.07553272,
0.0068253274,
-0.026027068,
0.045520257,
-0.013894659,
-0.0021248662,
0.05818134,
0.04625227,
-0.03719702,
0.010099045,
-0.0057408665,
-0.004683517,
-0.014206441,
-0.0012073104,
-0.04790607,
-0.003748169,
0.015697576,
-0.012159521,
0.07173711,
0.036275227,
-0.058018673,
0.06062138,
0.018286727,
0.031395152,
-0.02205523,
-0.05213547,
-0.0005540919,
-0.030717364,
-0.000997196,
-0.02064543,
0.007923344,
0.03882371,
-0.008431686,
-0.038389925,
0.034648534,
-0.03475698,
0.03210005,
-0.011529178,
0.0071845553,
-0.04204998,
-0.02736909,
0.0070489976,
-0.012830531,
-0.005995037,
-0.014003105,
-0.011657958,
0.033211622,
-0.015480683,
0.061922733,
0.03651923,
0.029280452,
0.053165708,
0.021404553,
0.015697576,
-0.034946762,
0.031639155,
0.05389772,
-0.05780178,
0.0065914905,
-0.019506745,
-0.02109277,
0.010417605,
0.059699588,
0.011258063,
-0.016009359,
-0.036763236
] | The truncation argument controls truncation. It can be a boolean or a string: |
[
0.029879646,
0.023563389,
0.05226054,
0.043233193,
-0.046376903,
-0.02334708,
-0.015011926,
-0.0023091112,
-0.062297333,
0.074295335,
0.014781196,
0.019338131,
-0.011976373,
-0.020549467,
-0.05378913,
0.03671505,
-0.038185958,
-0.056788635,
-0.014146686,
0.03700346,
0.010274733,
-0.008270259,
-0.06385477,
0.00012944812,
-0.007390598,
0.018170055,
-0.00034699758,
0.00011159127,
0.06610439,
0.03590749,
-0.028379897,
0.01551665,
0.0191074,
-0.015415706,
-0.020347578,
-0.015242658,
0.0012951572,
-0.011125553,
-0.026447525,
-0.010289154,
0.04167576,
-0.00012663158,
0.059240147,
-0.03694578,
-0.04225259,
-0.041935332,
-0.024471892,
-0.009546489,
-0.02484683,
-0.02825011,
-0.043204352,
0.005890847,
0.03884931,
0.012091739,
-0.0794291,
0.012567622,
-0.03290799,
0.0053897286,
-0.041185457,
0.022842355,
-0.010707354,
0.005970161,
-0.010548727,
-0.029057669,
0.015502229,
0.029764282,
-0.0038359005,
0.007282443,
0.0010626238,
0.0011401349,
-0.032388844,
0.009798851,
-0.022438576,
-0.029288398,
-0.033686705,
-0.00008083467,
0.047242142,
-0.011731222,
-0.013108397,
0.08323616,
0.023635492,
0.035878647,
0.013303076,
-0.016713567,
-0.051943284,
-0.042714052,
0.0403779,
-0.0012347706,
-0.020275474,
-0.02504872,
-0.02781749,
0.022222266,
0.013353549,
0.014045741,
0.027298344,
0.0233615,
-0.02737045,
0.054308277,
0.028985564,
-0.035128772,
0.044300325,
0.043723498,
-0.017896062,
-0.015156133,
-0.006204497,
0.03360018,
0.029821964,
0.0096690655,
-0.030254584,
0.023101928,
-0.0038971885,
0.008573093,
0.00956091,
-0.023116348,
-0.06743109,
0.021155136,
0.012070108,
0.012178264,
-0.03550371,
0.018343104,
0.033052195,
0.00870288,
0.014391838,
-0.026029326,
0.027759807,
-0.047876652,
-0.0120773185,
0.0025524602,
-0.0073257047,
-0.027255083,
0.0036880886,
-0.010642461,
0.0036286032,
0.040320218,
0.024933353,
0.020232212,
-0.005350072,
0.020852301,
0.020131268,
-0.024111375,
0.018790144,
0.0016493652,
-0.039685708,
0.07227644,
0.019035297,
0.01338239,
0.003781823,
0.0044307536,
0.026029326,
-0.0006651538,
-0.0744107,
0.014622568,
0.0053897286,
0.007246391,
0.0033906621,
-0.004805691,
-0.012632514,
-0.007368967,
0.013656382,
0.023217293,
0.035215296,
-0.007116605,
-0.036195904,
0.036859255,
-0.025438078,
0.048799578,
-0.04057979,
-0.0032554683,
0.030110378,
-0.016381891,
0.01721829,
-0.03391744,
0.0071021845,
-0.012228736,
0.012228736,
0.07827544,
0.031350557,
-0.027687702,
0.006539778,
0.00048804985,
-0.00743386,
0.042367954,
0.025567863,
-0.0140241105,
-0.014175527,
-0.009286917,
-0.01040452,
0.02380854,
-0.026937827,
0.021991536,
0.015055189,
0.023923906,
-0.016684726,
0.005328441,
-0.011601436,
-0.014766775,
-0.074064605,
0.063681714,
0.013216552,
-0.016468415,
-0.03169665,
0.0297066,
-0.035186455,
-0.0008084593,
-0.010721775,
-0.007715063,
0.017578807,
0.0475594,
-0.020895563,
-0.013014663,
0.0042793364,
0.016079057,
-0.014117844,
0.041791126,
-0.00038102138,
-0.025452498,
-0.02039084,
-0.00016775305,
-0.016180001,
0.06120136,
0.004441569,
0.0129281385,
0.0128560355,
0.017694173,
0.0048273224,
-0.032994512,
0.008854297,
0.02190501,
-0.00097249454,
0.04378118,
-0.001066229,
0.032590736,
0.011118343,
0.047126777,
-0.009286917,
0.017521124,
0.07562204,
0.05502931,
-0.026490787,
0.026793621,
0.016929876,
0.014687462,
-0.0049174516,
0.006925531,
0.027961696,
-0.00018532826,
-0.000433747,
-0.01680009,
-0.018977614,
-0.010238682,
-0.03204275,
0.07844849,
0.02424116,
0.0006074711,
-0.014759565,
-0.000002080718,
-0.008803824,
0.0065866453,
-0.047963176,
-0.023707597,
0.033744387,
0.024904512,
-0.0025073956,
-0.044069596,
0.00573943,
0.019727489,
0.03446542,
0.027658861,
0.022150163,
-0.00012471635,
-0.017074084,
-0.05650022,
-0.038099434,
-0.005119341,
-0.005177024,
-0.002548855,
0.009870955,
-0.048395798,
-0.0081116315,
-0.020289894,
-0.023923906,
0.0024244767,
-0.0037926384,
0.01677125,
-0.008241418,
-0.008868718,
-0.0820825,
0.040089488,
-0.014420679,
0.08750468,
-0.021169556,
-0.012207105,
-0.024789147,
-0.009726748,
0.014701882,
0.004528093,
0.015617595,
-0.0005957543,
-0.009921427,
0.013512176,
0.012610883,
-0.008774983,
0.008573093,
0.02333266,
-0.007880901,
0.03847437,
0.030081537,
-0.017175028,
0.02910093,
0.04611733,
-0.024385368,
0.024904512,
0.019785171,
0.055202357,
-0.010231472,
-0.021126295,
0.022438576,
0.013036294,
-0.024500733,
-0.047905494,
-0.039801072,
0.015978113,
0.004499252,
-0.016396312,
0.008760562,
0.0412143,
-0.032244638,
-0.051799078,
-0.015228237,
-0.059990022,
-0.0076790117,
-0.013238183,
-0.028134745,
0.043031305,
0.014031321,
0.0066407225,
-0.04251216,
-0.057221252,
-0.0259428,
0.033225246,
0.007307679,
-0.033254087,
-0.037291877,
0.0378687,
-0.004070237,
-0.026072588,
0.012062898,
-0.06385477,
-0.012142211,
0.010772247,
0.04141619,
0.032388844,
0.027961696,
0.027961696,
-0.008378414,
0.024918932,
-0.06218197,
0.011695171,
-0.011587015,
-0.0037313506,
0.007772746,
0.0028372686,
-0.008407256,
0.01166633,
-0.024270002,
-0.038301323,
0.016554939,
0.045627028,
0.0590671,
-0.02020337,
0.019929377,
0.0373784,
-0.03377323,
0.021140715,
0.0012518952,
-0.010801088,
0.085428104,
0.01636747,
0.03273494,
-0.03783986,
-0.047011413,
0.021530073,
-0.008183735,
0.05929783,
0.051337615,
0.019467916,
-0.004376676,
-0.046405744,
-0.009755589,
0.016699146,
0.007794377,
-0.0036538395,
-0.010808298,
-0.0130002415,
-0.048165068,
-0.022654887,
-0.03397512,
0.06881548,
0.013440073,
0.012545991,
-0.002644392,
-0.014564886,
0.021789646,
0.012791142,
-0.017521124,
-0.034263533,
-0.033484817,
0.08156336,
-0.016641464,
0.0028084272,
-0.024673782,
-0.035878647,
-0.020592729,
0.012574832,
-0.021544494,
0.013209342,
-0.03590749,
0.0027038772,
0.014182738,
-0.018400786,
-0.04251216,
-0.022640465,
-0.013504965,
-0.0050796843,
0.069334626,
-0.049635977,
-0.007996267,
-0.038705103,
0.011010189,
0.014197159,
0.030629521,
-0.02504872,
-0.039166562,
-0.049261037,
-0.05416407,
0.048597686,
0.030225743,
-0.021832908,
0.022654887,
-0.019900536,
-0.03634011,
0.010894823,
-0.033225246,
0.018198896,
-0.025466919,
0.010476623,
0.02360665,
0.018645938,
-0.042425636,
-0.05416407,
0.024832409,
-0.031062143,
-0.00196662,
-0.062297333,
0.019006455,
-0.004571355,
-0.02825011,
-0.0038935833,
0.038935833,
0.036542,
0.0005033718,
-0.0221069,
0.011219288,
-0.009762799,
-0.048770737,
0.015415706,
-0.0022370077,
-0.053298827,
0.03824364,
-0.012978611,
0.031812016,
0.01571854,
0.04715562,
-0.01932371,
-0.008522621,
0.014326944,
0.057423145,
-0.035590235,
-0.022986561,
0.041473873,
-0.024370948,
0.02868273,
0.0031761546,
-0.015848326,
-0.0011365297,
-0.07014218,
-0.0057322197,
-0.000022363318,
-0.012509939,
0.038330164,
0.027875172,
-0.0060422644,
-0.00065298635,
-0.03613822,
0.000094804695,
-0.004488436,
-0.037724495,
-0.014636989,
0.054942787,
0.03380207,
0.050241645,
-0.0027255083,
-0.004928267,
0.07221876,
-0.02908651,
-0.03758029,
-0.01721829,
0.0004659682,
0.019179503,
-0.007246391,
-0.010317995,
0.00012370238,
-0.005923294,
-0.014983085,
-0.00018938407,
-0.031812016,
0.019078558,
-0.0008129658,
-0.0140962135,
0.039454978,
-0.014910982,
-0.017694173,
0.025611125,
0.017261552,
-0.014528834,
0.0027813883,
0.0027146928,
-0.023952747,
-0.03227348,
-0.024370948,
0.039945282,
0.001954002,
-0.0086956695,
-0.06593134,
-0.073026314,
0.008443307,
0.020448523,
-0.010700144,
-0.06397013,
0.011745643,
-0.053414196,
0.016180001,
-0.038532052,
0.010108896,
-0.02888462,
-0.011587015,
0.00014736131,
0.021328185,
0.0017151595,
-0.0005569987,
0.024183478,
-0.025192926,
0.03783986,
0.052375905,
-0.020073585,
0.011291391,
-0.013274235,
0.019150661,
-0.0129714,
-0.023693176,
0.0062982314,
0.045569345,
-0.057048205,
0.026389843,
-0.024486313,
-0.04268521,
-0.056817476,
-0.004228864,
0.055836868,
-0.049405247,
0.0019035296,
-0.020982089,
-0.005696168,
0.013584279,
0.049030308,
-0.0045569343,
0.041502714,
-0.016079057,
-0.014968664,
0.041733444,
-0.016439574,
-0.005833165,
0.014709093,
-0.004398307,
0.059874658,
-0.07562204,
0.02611585,
0.094022825,
-0.02020337,
0.019439075,
-0.029057669,
0.03717651,
-0.009950268,
-0.049866706,
0.029562391,
-0.0045605395,
-0.03758029,
-0.000060386592,
-0.07389156,
-0.051799078,
-0.025192926,
0.036542,
0.043867704,
-0.022813514,
0.040204853,
-0.03077373,
-0.056154124,
-0.05352956,
0.058259543,
0.0088903485,
0.007823219,
0.04202186,
-0.030946776,
0.012985821,
0.0097411685,
-0.051481824,
-0.01126976,
-0.035215296,
0.047242142,
0.017809538,
-0.017708594,
0.04331972,
0.029850805,
-0.05883637,
-0.100598656,
0.0064640692,
-0.019035297,
-0.037753336,
-0.04548282,
-0.016655885,
0.027889593,
-0.05165487,
0.035561394,
0.024255581,
-0.014204369,
0.023289395,
0.0037529815,
-0.010858771,
-0.019179503,
0.04591544,
0.04311783,
-0.018963194,
0.01658378,
-0.056240648,
-0.0038971885,
-0.014031321,
0.024587257,
0.03328293,
-0.005140972,
0.0072427858,
0.0096690655,
-0.00084586296,
0.085485786,
-0.029432606,
0.061778188,
0.020549467,
-0.041964177,
-0.045598187,
-0.005862006,
0.03657084,
-0.009171552,
0.026029326,
0.013425652,
-0.046261538,
-0.008169315,
0.048799578,
-0.006683985,
-0.05122225,
0.03443658,
0.0080395285,
0.0028643073,
-0.023981588,
-0.01105345,
0.026678255,
0.03697462,
-0.01593485,
-0.027226241,
-0.019525599,
-0.011651908,
-0.043377403,
-0.0045064623,
-0.033052195,
0.026231214,
-0.041762285,
-0.023505706,
-0.0137789585,
-0.034984566,
-0.04268521,
0.021414708,
0.017175028,
0.014528834,
-0.056702107,
0.020318737,
-0.021919431,
0.020275474,
-0.0005678142,
-0.0045316983,
0.023390342,
-0.011168816,
-0.013187711,
0.030629521,
0.050789632,
0.0014249433,
-0.004102683,
0.03864742,
-0.014680251,
-0.045742393,
0.009842114,
0.049001466,
-0.007945794,
0.013440073,
0.00785206,
0.016540518,
-0.056211807,
-0.0074627013,
-0.018530572,
-0.005501489,
0.0009742971,
0.012870456,
0.008854297,
0.048338115,
0.012906508,
0.008948031,
-0.00829189,
0.013209342,
0.021573335,
0.016612623,
-0.008746142,
0.007058922,
-0.002983278,
-0.043838862,
0.031725492,
0.009842114,
-0.031812016,
-0.015761802,
-0.012048477,
-0.018444048,
-0.0027849935,
0.0009427519,
-0.010519885,
0.01954002,
-0.013519387,
-0.03143708,
-0.0036466292,
0.021861749,
-0.03720535,
-0.0021342605,
-0.0744107,
-0.023678755,
-0.0048309276,
-0.01848731,
-0.022380894,
-0.023750858,
-0.03336945,
0.047703605,
0.02551018,
-0.01445673,
-0.0070228707,
0.03657084,
0.0043478347,
0.034667313,
-0.044040754,
-0.015271499,
0.025870698,
-0.031292874,
-0.04124314,
-0.015805064,
0.044905994,
0.041560397,
-0.01424042,
-0.032994512,
-0.033427134,
-0.0020675648,
-0.0066984054,
0.036397792,
-0.02272699,
0.028235689,
-0.029821964,
-0.0016746013,
-0.017795118,
0.0147523545,
-0.01783838,
0.028552944,
0.03700346,
-0.0005880933,
0.010044003,
0.027976116,
0.03016806,
-0.04605965,
0.0036268006,
0.022914458,
0.042569842,
-0.023231713,
-0.005566382,
-0.014060162,
0.043060146,
0.03861858,
0.03166781,
-0.01891993,
0.009200393,
0.017780697,
-0.02763002,
-0.046723,
0.036657367,
0.030917935,
-0.013952007,
-0.0031761546,
0.018544992,
-0.020347578,
-0.016180001,
0.0073257047,
0.021486811,
0.02846642,
0.0024821593,
-0.007332915,
-0.040868204,
0.055952232,
-0.0035150405,
-0.026231214,
0.020866722,
-0.0060747107,
0.02868273,
0.022885617,
-0.017665332,
-0.008774983,
0.0050688684,
0.04946293,
0.033427134,
0.005606039,
0.022279948,
0.048309274,
-0.025149664,
0.043665815,
-0.029591233,
0.011320232,
-0.048799578,
-0.046838365,
-0.005714194,
0.010029582,
-0.03913772,
-0.009092238,
0.009524859,
-0.04357929,
-0.02444305,
-0.011572595,
0.035532553,
-0.03861858,
0.009842114,
0.026678255,
-0.0064965156,
-0.025120823,
0.04525209,
-0.0025128033,
-0.00020470604,
0.030629521,
0.020073585,
0.017117346,
0.05226054,
-0.0012455861,
-0.022236686,
0.072334126,
0.047703605,
-0.01890551,
-0.01678567,
0.0016854168,
0.020506205,
-0.018227737,
0.0044091227,
-0.031927384,
-0.0027525472,
0.014939823,
-0.031379398,
-0.04603081,
-0.022424156,
0.009106658,
-0.02063599,
-0.018963194,
0.03850321,
-0.0028426764,
-0.018011428,
-0.060797583,
0.0018025849,
-0.0094743855,
0.012351312,
-0.010671303,
0.028610626,
-0.04081052,
-0.026043747,
-0.035647918,
-0.023087507,
0.0014844286,
-0.027096456,
-0.012978611,
-0.013692435,
0.016309788,
0.02253952,
0.063681714,
0.034782678,
-0.010519885,
0.002348768,
0.0221069,
0.020088006,
-0.014406258,
0.02548134,
0.078102395,
0.035965174,
0.02441421,
0.018573834,
0.015617595,
0.030975617,
0.00062639825,
0.011608646,
0.019280447,
-0.044069596,
-0.021731963,
-0.043636974,
0.03357134,
0.0061684456,
-0.009798851,
-0.053673767,
-0.015588754,
-0.09154247,
-0.011659118,
-0.03734956,
0.01041173,
-0.007794377,
-0.005970161,
0.017549966,
-0.061720505,
0.24665129,
0.052837368,
0.020030323,
-0.017823959,
0.010289154,
0.06731573,
-0.00573943,
-0.048972625,
-0.000057119407,
-0.051164567,
0.0063378885,
-0.048366956,
0.016684726,
0.037666813,
0.01148607,
0.013267024,
-0.046838365,
0.0051553925,
-0.0065505933,
-0.041935332,
-0.043463927,
0.012423415,
0.016122319,
0.06293184,
-0.006453254,
0.045973122,
0.003760192,
-0.016511677,
-0.0049066357,
-0.065758295,
0.034494262,
-0.038705103,
0.0059160837,
-0.030283425,
-0.004845348,
0.054712057,
0.009308548,
-0.016439574,
-0.0041315244,
0.00031432573,
0.0078087975,
-0.027125297,
-0.0034663707,
-0.015055189,
-0.014478361,
0.009820483,
-0.0012518952,
0.054337118,
0.042714052,
-0.08023666,
0.023101928,
-0.019511178,
-0.0016827129,
-0.012228736,
-0.08271702,
0.0015078622,
-0.018818986,
-0.023895064,
0.005267153,
0.0008571291,
-0.000036981153,
-0.014499992,
-0.012423415,
0.009185973,
-0.035763282,
0.04732867,
0.0038395058,
0.024976615,
-0.012654145,
-0.0042865467,
0.036686208,
-0.006309047,
-0.016497256,
-0.0012464874,
0.021645438,
0.033081036,
0.01147886,
-0.004243285,
0.030687204,
0.0014339562,
0.024197899,
-0.0000977339,
0.0034411345,
-0.0382148,
-0.0018656753,
0.060451485,
-0.059874658,
0.023649912,
0.024918932,
0.011450019,
0.014795616,
0.04268521,
-0.011356285,
-0.027889593,
-0.0107866675
] |
The max_length argument controls the length of the padding and truncation. It can be an integer or None, in which case it will default to the maximum length the model can accept. If the model has no specific maximum input length, truncation or padding to max_length is deactivated.
The following table summarizes the recommended way to setup padding and truncation. If you use pairs of input sequences in any of the following examples, you can replace truncation=True by a STRATEGY selected in
['only_first', 'only_second', 'longest_first'], i.e. truncation='only_second' or truncation='longest_first' to control how both sequences in the pair are truncated as detailed before.
| Truncation | Padding | Instruction |
|--------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------|
| no truncation | no padding | tokenizer(batch_sentences) |
| | padding to max sequence in batch | tokenizer(batch_sentences, padding=True) or |
| | | tokenizer(batch_sentences, padding='longest') |
| | padding to max model input length | tokenizer(batch_sentences, padding='max_length') |
| | padding to specific length | tokenizer(batch_sentences, padding='max_length', max_length=42) |
| | padding to a multiple of a value | tokenizer(batch_sentences, padding=True, pad_to_multiple_of=8) |
| truncation to max model input length | no padding | tokenizer(batch_sentences, truncation=True) or |
| | | tokenizer(batch_sentences, truncation=STRATEGY) |
| | padding to max sequence in batch | tokenizer(batch_sentences, padding=True, truncation=True) or |
| | | tokenizer(batch_sentences, padding=True, truncation=STRATEGY) |
| | padding to max model input length | tokenizer(batch_sentences, padding='max_length', truncation=True) or |
| | | tokenizer(batch_sentences, padding='max_length', truncation=STRATEGY) |
| | padding to specific length | Not possible |
| truncation to specific length | no padding | tokenizer(batch_sentences, truncation=True, max_length=42) or |
| | | tokenizer(batch_sentences, truncation=STRATEGY, max_length=42) |
| | padding to max sequence in batch | tokenizer(batch_sentences, padding=True, truncation=True, max_length=42) or |
| | | tokenizer(batch_sentences, padding=True, truncation=STRATEGY, max_length=42) |
| | padding to max model input length | Not possible |
| | padding to specific length | tokenizer(batch_sentences, padding='max_length', truncation=True, max_length=42) or |
| | | tokenizer(batch_sentences, padding='max_length', truncation=STRATEGY, max_length=42) | |
[
0.02986606,
0.028872417,
0.05175459,
0.021732386,
-0.040228333,
-0.006969694,
-0.010170643,
-0.006224462,
-0.04760968,
0.07801515,
0.0034777494,
0.021916918,
-0.010781024,
-0.044401634,
-0.048262645,
0.038638506,
-0.005489876,
-0.059107546,
0.0017858953,
0.01977349,
-0.022953147,
0.00078515516,
-0.08585073,
-0.020057388,
-0.010014499,
0.0083111115,
0.03117199,
0.00035842112,
0.0703499,
0.010681659,
-0.02458556,
0.010958459,
0.0328186,
-0.044543583,
-0.004599146,
-0.0125128,
0.020866496,
-0.0134638585,
-0.0049895057,
-0.007523295,
0.06325246,
-0.0073316637,
0.044344854,
-0.03134233,
-0.04249952,
-0.0202987,
-0.0065119085,
0.0045317207,
-0.0063841543,
-0.026359921,
-0.043038923,
0.014500086,
0.014776886,
-0.030462246,
-0.07296176,
0.023024121,
-0.023989374,
-0.004844008,
-0.018126883,
-0.0047127055,
-0.018609509,
-0.030802924,
0.0037935858,
-0.041363925,
0.018297222,
0.007572977,
0.00020272085,
-0.009027954,
0.0023208654,
-0.017701035,
-0.04749612,
-0.02792136,
-0.025593396,
-0.038411386,
-0.026870938,
0.035799526,
0.033329614,
0.0083111115,
-0.033272836,
0.04525333,
0.026175387,
0.052038487,
0.004137812,
-0.0076439516,
-0.012888965,
-0.06279822,
0.047127053,
0.023776451,
0.015387267,
-0.045310106,
-0.023350604,
0.014301358,
0.017161628,
0.007221653,
0.011192676,
0.036367323,
-0.016281545,
0.08783802,
0.025451448,
-0.0353169,
0.026757378,
0.0653533,
-0.008552425,
0.005905077,
-0.009524775,
0.06325246,
0.032449532,
0.010191935,
-0.024131322,
0.0020174496,
-0.013108986,
-0.016906122,
0.030575806,
-0.028943393,
-0.044628754,
0.0151317585,
-0.0023847425,
0.01090168,
-0.03514656,
0.0017441978,
0.019248279,
-0.007977531,
0.038808845,
-0.010255813,
0.016224766,
-0.038979184,
0.018098492,
0.014209091,
-0.01899277,
-0.036140203,
0.0035913086,
-0.011164285,
0.005042737,
0.052350774,
0.028020725,
-0.0005562625,
-0.021448487,
0.03168301,
0.006047026,
-0.0009741247,
0.00684194,
0.00034112108,
-0.0138187315,
0.06603465,
-0.012896063,
-0.008140773,
0.034493595,
-0.014975615,
0.011370111,
-0.0056779585,
-0.056864753,
0.01320835,
0.0035025906,
-0.009184098,
-0.03239275,
-0.00047819054,
-0.014734302,
0.020596793,
0.0035629189,
0.006054123,
0.023378994,
-0.025210135,
-0.010745537,
0.037588082,
-0.019447008,
0.051271964,
-0.041704603,
0.018297222,
0.008680179,
-0.020114167,
-0.011866933,
-0.01368388,
0.013215448,
-0.002107942,
0.044089347,
0.08198972,
0.034891054,
-0.010802316,
0.0132012535,
-0.0025089479,
0.0006001779,
0.027325174,
0.026487676,
-0.0049327263,
0.0050924188,
-0.018311415,
-0.0065615904,
0.009964817,
-0.010071279,
0.007395541,
0.017544892,
0.03968893,
-0.030348687,
-0.0037580987,
-0.0034280673,
-0.017857179,
-0.055757552,
0.058057126,
-0.0005460599,
-0.008431768,
-0.027680047,
0.010965557,
-0.05723382,
-0.010426151,
-0.040285114,
0.006015087,
0.010092571,
0.052719843,
-0.012051467,
0.004730449,
0.016522858,
0.022924757,
0.010695854,
0.053316027,
0.0016634644,
-0.029525382,
-0.040086385,
-0.0073387614,
-0.02186014,
0.036111817,
0.007892362,
0.015387267,
0.0044075153,
0.025281109,
-0.0028318816,
-0.004847557,
0.033074107,
0.022924757,
0.032108855,
0.038439777,
-0.005947661,
0.025479838,
0.020426456,
0.04900078,
0.015699554,
0.015770528,
0.058312632,
0.03931986,
-0.017005485,
0.04528172,
-0.0078000952,
-0.019390227,
-0.0076297564,
-0.017062265,
0.022697639,
-0.01852434,
-0.019234084,
-0.006760319,
-0.02997962,
-0.021263953,
-0.05266306,
0.056637634,
0.015174343,
-0.028318817,
-0.040512234,
-0.010702952,
-0.012250195,
-0.019560566,
-0.055729162,
-0.0018595314,
0.035856307,
0.027992334,
-0.0006307857,
-0.029724112,
0.035033002,
0.045792732,
0.04496943,
0.019574761,
0.0075020026,
0.0023847425,
-0.03298894,
-0.0814787,
-0.041619435,
-0.006877427,
0.004599146,
0.0076794387,
-0.0039142426,
-0.06291178,
0.0038468167,
-0.008098188,
-0.04891561,
0.027864581,
-0.011426891,
0.006110903,
-0.0043400894,
-0.0010681659,
-0.073075324,
0.029071147,
-0.003632119,
0.071371935,
-0.018708874,
-0.020752938,
-0.033130888,
0.007530392,
0.024656534,
0.006802904,
0.009340242,
0.0032133695,
0.006504811,
-0.007743316,
0.0061392924,
-0.010610685,
-0.009020857,
0.030916482,
-0.0042016893,
0.027098056,
0.038070712,
-0.009198292,
0.023847425,
0.041051637,
0.00007524404,
0.010255813,
0.015571801,
0.041619435,
-0.010468735,
0.006185426,
0.060413476,
-0.013981973,
-0.015373073,
-0.04743934,
-0.037559696,
0.010944265,
0.023705477,
-0.013236741,
-0.022967342,
0.080797344,
-0.039802488,
-0.047269,
-0.0151885385,
-0.030604195,
0.0046204384,
-0.0164093,
-0.026374117,
0.033783853,
0.012534093,
0.017317774,
-0.03537368,
-0.038666897,
0.010646172,
0.033755463,
0.016097011,
-0.036140203,
-0.016650613,
0.019134719,
-0.010440346,
0.004418161,
0.023407383,
-0.055502042,
0.0050178957,
0.0048653004,
0.080910906,
0.03534529,
0.016238961,
-0.016011842,
0.001588054,
0.027055472,
-0.07932108,
0.020951666,
-0.0353169,
0.009737698,
0.050562218,
0.008886005,
0.013804536,
0.0024255528,
-0.0353169,
-0.02452878,
0.014436209,
0.031711396,
0.051186793,
-0.012236,
0.010781024,
0.03963215,
-0.014358137,
0.001102766,
-0.0054437425,
-0.013861315,
0.08011599,
0.011774666,
0.037360966,
-0.05453679,
-0.039149523,
0.027481318,
-0.0123211695,
0.030405467,
0.040086385,
0.048432983,
0.00089427846,
0.002146978,
0.007736218,
-0.0027520354,
0.00008533572,
0.010426151,
-0.016508663,
-0.024287466,
-0.06132195,
0.007821388,
-0.0035274315,
0.090336315,
0.03517495,
-0.0033925802,
0.0021789165,
-0.003318057,
0.039802488,
0.015699554,
0.0026508968,
-0.0789804,
-0.050136372,
0.073416,
-0.0018861467,
0.021916918,
-0.014890445,
-0.023464162,
-0.028943393,
0.014131019,
-0.022896366,
0.030433856,
-0.052265607,
-0.00022800552,
0.027396148,
0.009822868,
-0.038411386,
-0.04335121,
-0.015330488,
-0.027325174,
0.066148214,
-0.06421771,
-0.004102325,
-0.038837235,
0.019901244,
0.009070538,
0.012420534,
-0.035827916,
-0.032307584,
-0.03824105,
-0.049824085,
0.05865331,
0.041988503,
0.008126578,
0.019645736,
-0.012867673,
-0.003701319,
0.007108094,
-0.033130888,
-0.0012704432,
-0.030689364,
0.034578767,
0.02542306,
0.03795715,
-0.021065226,
-0.037417747,
0.0059796,
-0.02858852,
0.008445963,
-0.059505004,
0.004219433,
-0.011128798,
-0.02093747,
0.0017725877,
0.06643211,
0.027353564,
-0.016082818,
-0.015429852,
0.04675799,
-0.010071279,
-0.028347207,
0.02455717,
-0.0017016132,
-0.021959504,
0.023421578,
0.0022587627,
0.036424104,
-0.0005367445,
0.040370286,
-0.032307584,
0.014500086,
-0.0015401462,
0.045565616,
-0.054621957,
-0.022811197,
0.021633022,
-0.030462246,
0.012754114,
-0.008005921,
0.0008614527,
0.016622223,
-0.030660976,
-0.026345726,
0.0052911476,
-0.020341286,
0.045537226,
0.039774098,
-0.0011639815,
-0.010262909,
-0.022655053,
0.007821388,
0.03960376,
-0.025068186,
-0.004084581,
0.06342279,
0.03296055,
0.017473917,
0.009063441,
-0.022626664,
0.032875378,
-0.028290428,
-0.019092135,
-0.020752938,
-0.017388748,
0.00878664,
-0.020256117,
-0.043436382,
0.009411216,
-0.011767569,
-0.0150749795,
0.015685359,
0.0006968807,
0.013840023,
-0.037531305,
-0.03426648,
0.024684925,
-0.034607157,
-0.016664807,
0.02124976,
0.0076794387,
0.0042762123,
-0.0072322995,
-0.0016093464,
-0.023151875,
-0.046246972,
-0.033358004,
0.05825585,
-0.025522422,
-0.024017764,
-0.05195332,
-0.04482748,
0.0050640292,
0.019404422,
0.0020263214,
-0.056183398,
-0.013513541,
-0.05842619,
0.025281109,
-0.009986109,
-0.012747017,
-0.011788861,
-0.004797875,
-0.030149959,
0.03818427,
-0.03679317,
-0.01098685,
0.018822432,
-0.015373073,
0.014606548,
0.07103126,
-0.012697334,
0.021633022,
-0.029809281,
0.0066183703,
0.0027733278,
-0.023095096,
0.010135155,
0.034408428,
-0.064501606,
0.019447008,
-0.03296055,
-0.018765653,
-0.024429416,
-0.021079421,
0.037304185,
-0.051499084,
-0.02653026,
-0.015458241,
-0.012690237,
0.002402486,
0.045792732,
0.0062918877,
0.0065367497,
-0.04207367,
-0.029071147,
0.03778681,
-0.031200381,
-0.012576678,
0.0031920772,
-0.0258631,
0.06688635,
-0.07284821,
0.028531741,
0.06296856,
-0.018836627,
-0.0013307715,
0.0062670466,
0.015004005,
-0.018481754,
-0.041732993,
0.041363925,
-0.0074097356,
-0.042527907,
0.0054082554,
-0.08363633,
-0.053486366,
-0.014393624,
0.04335121,
0.034493595,
-0.037644863,
0.05439484,
0.00019052211,
-0.023819035,
-0.05135713,
0.03667961,
-0.010078376,
-0.0035363035,
0.026998691,
-0.024315856,
0.009553165,
0.005848297,
-0.054877467,
-0.033755463,
-0.033017326,
0.047212224,
0.012668945,
-0.0339258,
0.03778681,
0.020909082,
-0.034777496,
-0.0764821,
-0.023790644,
0.007221653,
-0.013442567,
-0.031881735,
-0.008275624,
-0.009134416,
-0.027240004,
0.022186622,
0.0253095,
-0.022243401,
0.023222849,
0.022300182,
0.018935991,
-0.008041409,
0.04071096,
0.019958023,
0.00024597094,
0.001745085,
-0.05306052,
-0.011888226,
-0.038780455,
0.037417747,
0.035288513,
-0.014492989,
-0.0058305534,
0.03134233,
0.003298539,
0.06501263,
-0.031938516,
0.053741876,
0.012952843,
-0.056864753,
-0.051243573,
-0.015273708,
0.03128555,
-0.024131322,
0.029837672,
-0.0063451184,
-0.05192493,
0.0009457349,
0.036338933,
-0.0018666288,
-0.07642532,
0.017360358,
-0.017417137,
-0.045310106,
-0.036991898,
-0.017942348,
0.02594827,
0.045622393,
-0.0439474,
-0.054451622,
0.0032470825,
0.0015268385,
-0.0027821995,
0.027452929,
-0.024855262,
0.017033875,
-0.031115212,
-0.005294696,
-0.028375596,
-0.03426648,
-0.022087257,
0.020951666,
0.019730905,
0.02102264,
-0.057574496,
0.027325174,
-0.032421142,
0.049398236,
0.0006112677,
-0.0024929785,
-0.0017521825,
-0.005926369,
-0.019674126,
-0.0019447007,
0.036594443,
-0.014762691,
0.013378689,
0.04349316,
-0.03236436,
-0.034351647,
0.023151875,
0.061549067,
0.0056531173,
0.02116459,
0.0028602716,
0.029127926,
-0.04902917,
-0.011668204,
-0.03256309,
-0.015614386,
-0.008822128,
0.0077078287,
-0.009858355,
0.047325782,
0.022200817,
0.011916615,
-0.0063096313,
-0.005734738,
0.016877731,
0.02110781,
0.011987589,
0.012519898,
-0.0005598112,
-0.06166263,
0.0024947529,
0.0012438277,
-0.058000345,
-0.0021345573,
0.0038468167,
-0.015160149,
-0.018595314,
0.057659667,
0.0038290732,
-0.002524917,
-0.02383323,
-0.020568404,
-0.032449532,
0.022967342,
-0.021874335,
-0.02241374,
-0.05169781,
-0.02371967,
-0.0017734747,
-0.012441826,
-0.025536617,
-0.014088434,
-0.017757814,
0.05456518,
0.008573717,
-0.025039796,
-0.025210135,
0.02438683,
0.01181725,
0.031143602,
-0.0647855,
-0.0072961766,
0.005362122,
-0.014862056,
-0.034181308,
-0.01618218,
0.038752064,
0.048858833,
-0.009304754,
-0.029241486,
-0.028985977,
-0.0021735935,
0.020681962,
0.027452929,
0.003053677,
0.005564399,
-0.042868584,
0.01329352,
-0.008935687,
-0.0033837082,
-0.015174343,
0.03724741,
0.029922841,
0.015756335,
-0.0033553184,
0.05848297,
0.033499952,
-0.052237216,
0.0018879211,
-0.0044430024,
0.04264147,
-0.019872854,
-0.0011799507,
-0.023691282,
0.047354173,
0.023620307,
0.019702515,
-0.012484411,
0.012768309,
0.003818427,
-0.020312896,
-0.033045717,
0.033812243,
0.01843917,
-0.024642339,
-0.013918095,
-0.00027214276,
-0.009730601,
-0.038638506,
-0.017559087,
0.013272228,
0.019858658,
-0.01093007,
-0.020426456,
-0.042982146,
0.052805014,
0.0058802357,
-0.02850335,
0.010475833,
-0.0056247273,
0.02812009,
0.02049743,
-0.037304185,
0.019447008,
0.014975615,
0.019844465,
0.041562654,
0.039887656,
0.006185426,
0.044373244,
-0.019262474,
0.07546007,
-0.0013671459,
0.009354437,
-0.035118174,
-0.016906122,
0.021959504,
0.011355917,
-0.034891054,
-0.001779685,
-0.0060328306,
-0.037815202,
-0.015813114,
-0.049653746,
0.010376469,
-0.03548724,
0.023904204,
0.01983027,
-0.018112687,
-0.03940503,
0.025082381,
-0.020738743,
0.0065367497,
0.0328186,
0.014606548,
0.020909082,
0.08108124,
0.005493425,
-0.014201993,
0.07381346,
0.049909253,
-0.011199772,
-0.0044678436,
-0.03239275,
-0.0029578614,
-0.0026189582,
-0.03412453,
-0.03369868,
0.001382228,
0.015926674,
-0.011277845,
-0.04621858,
-0.017090654,
0.028219452,
-0.020767132,
-0.01504659,
0.061719406,
0.0010211453,
-0.025934074,
-0.020057388,
-0.007395541,
-0.008360794,
-0.004010058,
-0.006274144,
0.009006661,
-0.045849513,
-0.043237653,
-0.037133846,
-0.04360672,
-0.0058695893,
-0.011881128,
-0.018794041,
-0.0078426795,
0.042669855,
0.02736776,
0.06376347,
0.027027082,
-0.03667961,
0.016693197,
0.009389924,
0.016537054,
-0.0060363794,
0.037133846,
0.08460158,
0.03315928,
0.020099973,
-0.004592049,
0.0057915174,
0.0041236174,
0.00545084,
-0.012924452,
0.018424975,
-0.014010362,
-0.018581118,
-0.037275795,
0.039007574,
0.01632413,
-0.026998691,
-0.048177477,
-0.029553773,
-0.06234398,
0.00558924,
-0.008154968,
0.009546068,
-0.0025337888,
0.0089002,
0.041591045,
-0.035969865,
0.23733866,
0.0678516,
0.051499084,
-0.03554402,
0.034635548,
0.079604976,
-0.027751021,
-0.03983088,
-0.018637897,
-0.0151317585,
0.016011842,
-0.046985105,
0.016480274,
0.0085169375,
0.018538535,
0.009404118,
-0.02380484,
0.0039958633,
-0.026317338,
-0.038666897,
-0.028020725,
0.0012065661,
0.02803492,
0.044004176,
0.011767569,
0.034152918,
-0.003348221,
-0.013151571,
-0.0046133413,
-0.077049896,
0.017331967,
0.00089427846,
0.014116824,
-0.020738743,
-0.0017477466,
0.06609143,
0.002744938,
-0.05308891,
0.008020116,
0.009418313,
0.0032435337,
-0.0380991,
-0.0072287507,
-0.018765653,
0.008758251,
0.019858658,
0.0043507353,
0.049653746,
0.037275795,
-0.090393096,
0.044231296,
-0.030433856,
-0.0024645887,
-0.023762256,
-0.05751772,
-0.008978272,
-0.044600364,
-0.030575806,
0.026161194,
0.030774534,
0.009255072,
0.005205978,
0.001078812,
0.023691282,
-0.01852434,
0.035260122,
-0.00048395724,
-0.0014789307,
-0.0005939677,
-0.013215448,
0.0023297372,
0.0036906728,
-0.035288513,
0.010717146,
0.02800653,
0.016153792,
0.0022144038,
-0.00033468902,
-0.00074478844,
-0.0020529367,
0.018226245,
-0.005454389,
0.0052414653,
-0.016891927,
-0.0108590955,
0.06376347,
-0.04377706,
0.008382086,
0.009460898,
0.019674126,
0.04079613,
0.08585073,
-0.02177497,
0.0010779249,
-0.015543411
] |
Padding and truncation
Batched inputs are often different lengths, so they can't be converted to fixed-size tensors. Padding and truncation are strategies for dealing with this problem, to create rectangular tensors from batches of varying lengths. Padding adds a special padding token to ensure shorter sequences will have the same length as either the longest sequence in a batch or the maximum length accepted by the model. Truncation works in the other direction by truncating long sequences.
In most cases, padding your batch to the length of the longest sequence and truncating to the maximum length a model can accept works pretty well. However, the API supports more strategies if you need them. The three arguments you need to are: padding, truncation and max_length.
The padding argument controls padding. It can be a boolean or a string: |
[
0.026198851,
0.010533937,
-0.07980211,
0.016348554,
0.004039357,
-0.017627621,
0.032902934,
-0.027683746,
0.0123055205,
0.03399088,
-0.018362718,
-0.0025765144,
0.036313783,
-0.05322101,
0.026169447,
0.019538874,
-0.013305252,
-0.052926973,
-0.056837685,
0.015584053,
0.006957691,
0.015466437,
-0.08397746,
-0.027448514,
-0.026786929,
0.0021391318,
0.0117027415,
-0.01420207,
0.080154955,
0.044840906,
-0.03813682,
0.01677491,
-0.000340212,
-0.013555185,
-0.018509738,
-0.038754303,
-0.0028705532,
-0.009776788,
-0.067158446,
-0.05142737,
0.019597681,
-0.013577239,
-0.00008424899,
-0.02490508,
-0.07427418,
0.008902023,
0.045340773,
-0.03272651,
0.006858453,
-0.019171325,
-0.0015547298,
0.027580833,
-0.028110102,
0.02528733,
-0.03475538,
0.00005541941,
0.0036313783,
0.003570733,
-0.017642323,
-0.0124010835,
0.046899177,
0.027683746,
-0.018759672,
-0.081978,
0.0040614097,
0.029256854,
-0.027301496,
-0.029242152,
-0.032814723,
-0.040195093,
-0.04813414,
0.0053000483,
0.004579653,
-0.0637476,
-0.022376347,
0.03910715,
-0.0055316035,
0.026713418,
-0.00546912,
0.029212747,
0.064335674,
0.04760487,
-0.016069217,
0.01883318,
-0.033843856,
-0.047957715,
0.052133065,
-0.04222396,
-0.045576002,
-0.032314856,
-0.017862853,
0.018127488,
-0.0008219301,
0.043017864,
0.030168373,
0.028492352,
-0.012379031,
0.051574394,
0.0123055205,
0.0074685835,
0.039959863,
0.06398283,
-0.02589011,
0.01222466,
-0.06427687,
0.008541825,
0.0067481888,
-0.008791758,
-0.0056308415,
-0.040195093,
-0.006468852,
-0.006263025,
0.008468315,
0.016466169,
0.014665182,
0.012989161,
-0.031550355,
0.0017872042,
-0.02178827,
-0.010945592,
-0.009350431,
-0.030991683,
0.007997854,
-0.02490508,
0.019303642,
-0.029242152,
0.0035321403,
0.049457315,
-0.029653806,
-0.03013897,
0.0014738691,
0.009372485,
0.0020858373,
0.033814453,
0.017671727,
-0.016069217,
-0.0077258674,
0.012408434,
0.042400386,
-0.029447978,
0.00079344516,
-0.02072973,
0.020068143,
0.08979943,
0.006931963,
-0.012842141,
-0.0051346514,
-0.04428223,
-0.03575511,
0.0074832854,
-0.013018564,
0.011930621,
-0.020362182,
0.01648087,
-0.052250683,
0.012923002,
-0.033079356,
0.03863669,
0.015554649,
0.009357782,
0.0075788484,
-0.020817941,
-0.033167567,
0.034725975,
-0.0031517276,
0.03378505,
-0.04010688,
-0.028830497,
0.030874066,
-0.03825444,
-0.00021501583,
-0.00813017,
-0.0007084496,
-0.0063218325,
0.058895957,
0.028286526,
0.044664484,
-0.011195525,
0.025522562,
0.029830229,
0.00006977677,
-0.020582711,
0.027007457,
0.0004203835,
-0.0074355043,
-0.0021170788,
-0.0099091055,
0.013172935,
-0.010930889,
-0.003903364,
-0.023964155,
0.039754037,
-0.068746254,
0.008394806,
0.0011871813,
-0.013753662,
-0.01420207,
-0.01268042,
0.018156892,
-0.07339206,
-0.008652089,
0.049075063,
-0.005755808,
0.005921205,
0.025625475,
-0.039959863,
0.0057484573,
0.015554649,
-0.003980549,
-0.0073987497,
0.06821699,
0.0029164967,
-0.0012349626,
-0.0035358157,
0.02847765,
0.029889036,
-0.026639909,
0.009504802,
0.00252322,
0.015657563,
0.023611309,
0.013452272,
0.036931265,
0.00055224146,
0.037695765,
-0.035196435,
-0.016819015,
0.021582443,
0.0501042,
0.01434909,
0.014760744,
0.036549013,
0.014040349,
0.036872458,
-0.009350431,
0.014569619,
0.01631915,
0.012974459,
0.0004399095,
0.00010790992,
-0.001986599,
-0.020097546,
0.029977249,
0.015128292,
0.041782904,
0.008703547,
0.019377152,
0.0077405693,
-0.038107418,
0.014606373,
-0.052074257,
0.05277995,
0.010835327,
-0.029051026,
-0.03748994,
-0.009394538,
0.010879433,
0.021905886,
-0.0007879319,
-0.006042496,
-0.0023559853,
-0.0013764688,
-0.030638836,
-0.024655147,
0.029286258,
0.05839609,
-0.0002986331,
0.03319697,
0.018921392,
-0.020788537,
-0.053779684,
-0.019788807,
-0.054367762,
-0.034667168,
-0.023096742,
-0.0013553348,
0.01731888,
-0.030815259,
0.009394538,
0.010541288,
0.033373397,
0.033755645,
-0.003298747,
0.019039007,
0.041635882,
0.010372216,
-0.05483822,
0.02056801,
-0.026360571,
0.026404677,
-0.015084187,
-0.023111444,
0.041400652,
0.01837742,
0.02771315,
0.014937167,
-0.01693663,
-0.022567471,
-0.03816623,
0.012320222,
0.0020270294,
-0.021347212,
0.014569619,
-0.006417395,
-0.024052368,
0.021170788,
0.020626817,
-0.037342917,
0.02984493,
0.029036324,
0.0086153345,
0.014547566,
-0.0022953397,
0.018612651,
-0.021582443,
0.03743113,
0.03431432,
-0.025463754,
-0.0463111,
-0.038548477,
-0.005605113,
-0.014172667,
-0.02384654,
-0.08068423,
-0.028007189,
0.06133648,
-0.03310876,
-0.06886387,
0.012628963,
-0.013775715,
-0.07233353,
0.01792166,
-0.0026665637,
0.03143274,
-0.0070348764,
0.025625475,
-0.062277403,
0.025919514,
-0.008394806,
-0.010225196,
0.0061233565,
-0.0027308846,
0.0637476,
0.046134677,
0.010872082,
-0.0015538109,
0.046046466,
-0.02741911,
0.009725331,
-0.016377958,
0.000121405836,
-0.029242152,
0.030403605,
-0.00014564105,
-0.007358319,
0.029830229,
-0.050751083,
0.0025948917,
0.02140602,
0.02330257,
0.026845736,
0.019935826,
0.021126682,
0.0017623947,
-0.027154477,
-0.0017853664,
0.004873692,
-0.013150882,
0.024317002,
-0.049310293,
0.023978857,
-0.025640177,
-0.03013897,
-0.0057668346,
-0.009747384,
-0.04010688,
0.048869237,
0.061160054,
0.044223424,
-0.030756451,
-0.026904544,
0.022964425,
0.030962277,
0.02611064,
0.028668776,
0.008777056,
0.0004578275,
0.028110102,
-0.0061895153,
-0.016804313,
0.009695927,
0.029550891,
-0.0066452753,
-0.018818479,
-0.011960025,
-0.04648752,
0.027213285,
0.047134407,
0.034784783,
-0.014187369,
0.066099904,
-0.05892536,
0.017598217,
0.009953211,
0.028639372,
-0.053162202,
-0.06880506,
0.017215967,
0.035343453,
-0.016245639,
-0.023126146,
0.01162188,
-0.04275323,
0.013312603,
-0.017171862,
-0.001403116,
-0.023934752,
-0.031109298,
-0.014069753,
0.036078554,
-0.007350968,
-0.054779414,
-0.040518537,
0.028065996,
0.05345624,
-0.040518537,
-0.009387187,
-0.054926433,
-0.016054515,
0.017642323,
-0.013768364,
-0.019524172,
-0.015216504,
0.0024000912,
-0.049604334,
0.044752695,
0.008211032,
-0.015172399,
-0.018421527,
-0.08668262,
-0.0125039965,
0.009982615,
-0.0031333503,
-0.008387455,
0.007214975,
0.001068647,
-0.028345333,
0.0030616783,
0.036078554,
-0.0025324086,
0.026772225,
-0.03522584,
0.011166121,
-0.040342115,
-0.03757815,
-0.04822235,
0.006303455,
0.037783977,
0.05586736,
0.046369907,
-0.041253634,
0.024669848,
0.036460802,
-0.03690186,
-0.03825444,
0.019230133,
0.012459891,
-0.012621612,
0.04137125,
0.00020663113,
-0.040724363,
0.03584332,
0.007214975,
-0.0043627997,
0.017671727,
-0.025919514,
-0.00077828375,
0.017304178,
-0.005785212,
0.0045281965,
-0.029139237,
0.040489133,
-0.020509202,
0.00896083,
0.00865944,
-0.059719265,
-0.032755915,
0.027242688,
0.0042856145,
0.036490206,
0.004708295,
0.015892792,
0.008593282,
-0.009975264,
0.0038702847,
-0.009931158,
-0.008784407,
0.03052122,
0.06121886,
0.044605676,
0.004046708,
-0.04578183,
-0.012937704,
0.03175618,
-0.02528733,
0.005138327,
-0.023817137,
0.0008508746,
-0.02209701,
-0.029168641,
-0.02247926,
-0.015613456,
-0.003070867,
-0.007115737,
0.008644738,
-0.015407629,
-0.013680152,
-0.019009603,
-0.028036593,
0.06615871,
0.0031609163,
-0.049222082,
-0.037166495,
0.020038739,
0.008593282,
0.008637387,
0.030756451,
-0.017657025,
-0.02422879,
-0.06104244,
0.03613736,
-0.049545527,
0.02178827,
-0.033343993,
-0.02149423,
0.0075420933,
0.033667434,
0.025066802,
-0.0167014,
0.020538606,
-0.048928045,
0.018436229,
-0.060924824,
-0.00857858,
0.004425283,
0.005138327,
-0.04160648,
0.04131244,
0.0021336186,
-0.012268766,
0.019921124,
0.051309757,
0.0066710035,
0.039430592,
-0.04989837,
-0.034108493,
0.032285452,
-0.017142458,
0.010614798,
0.007152492,
-0.010423673,
0.006652626,
0.012129097,
0.006402693,
-0.013680152,
-0.010651553,
-0.021949992,
-0.02324376,
0.008409508,
-0.027522026,
0.021582443,
-0.011952674,
0.0026794279,
0.027698448,
0.0561908,
-0.019244835,
0.001986599,
-0.024390513,
-0.09126962,
0.034255512,
-0.02299383,
-0.011048505,
-0.009335729,
-0.0038482319,
0.038107418,
-0.03669603,
0.027066264,
0.049516123,
0.025654878,
0.00059083407,
-0.019480066,
0.06045436,
0.026154745,
0.024772763,
-0.006902559,
-0.02087675,
-0.049310293,
-0.016245639,
-0.016422063,
-0.05851371,
0.010431024,
0.002315555,
0.02164125,
-0.03296174,
0.038019206,
-0.02840414,
-0.043488327,
-0.053515047,
0.017480602,
-0.013342007,
0.020553308,
0.025169715,
-0.002115241,
-0.012761281,
0.036049146,
-0.024199387,
-0.023861242,
0.0031737806,
0.059660457,
-0.023008531,
-0.018186295,
0.012717175,
0.0020711352,
-0.022802703,
-0.057572782,
-0.0057594837,
0.03469657,
-0.010791222,
-0.017818747,
-0.013775715,
-0.0075714975,
-0.026772225,
-0.0047854804,
0.05860192,
-0.00038018287,
-0.022743896,
0.039224766,
0.011879165,
-0.04981016,
-0.002565488,
0.047046196,
-0.015892792,
-0.016083919,
0.011739496,
-0.0009004936,
-0.0318738,
-0.04872222,
0.043723557,
-0.044929117,
-0.0052669686,
0.0523683,
0.0318738,
0.050809894,
-0.017392391,
0.0018441741,
-0.012356978,
-0.027845468,
-0.045164347,
-0.032491278,
0.040636152,
-0.0015142994,
0.02422879,
-0.027007457,
-0.0027474244,
0.01336406,
0.007281134,
-0.036666628,
-0.0736273,
0.0050427644,
-0.039459996,
-0.029565593,
0.02452283,
0.005369882,
0.006990771,
0.010151687,
-0.003375932,
-0.04972195,
-0.006193191,
-0.014672533,
-0.04928089,
-0.025449052,
-0.012805386,
0.0055316035,
-0.05869013,
-0.013319954,
0.0010521073,
-0.03310876,
0.030491816,
0.032079626,
0.0011697228,
0.01912722,
0.022405751,
0.013547834,
-0.004531872,
0.020817941,
-0.025801899,
-0.0072701075,
-0.037754573,
0.025478456,
-0.009475398,
0.005171406,
0.038283844,
-0.0034604683,
0.0026628883,
0.023096742,
-0.0030322743,
-0.022655685,
0.005351505,
0.05869013,
0.0054176636,
-0.027742554,
-0.014716638,
0.034049686,
-0.0371959,
-0.006704083,
-0.030874066,
-0.026551697,
-0.039312977,
0.05057466,
0.011930621,
0.036725435,
-0.018553844,
0.031638566,
0.018862585,
0.030580027,
-0.0074281534,
0.03901894,
0.009394538,
0.022979127,
-0.020670922,
-0.03060943,
0.01814219,
0.044399846,
0.009703278,
0.0569553,
0.022332242,
-0.015378226,
0.008556527,
0.022199923,
0.02771315,
0.066687986,
0.01237168,
-0.010114932,
-0.009622417,
-0.0078140795,
-0.09121081,
0.007417127,
-0.047310833,
0.019259537,
0.001403116,
-0.038019206,
-0.004531872,
-0.02337608,
0.008505071,
0.010335461,
0.004223131,
0.009703278,
-0.0035082495,
-0.018465633,
0.0054544182,
0.018583247,
-0.026242957,
-0.02474336,
-0.034872994,
0.028462948,
-0.046340503,
-0.04895745,
0.012342276,
0.04563481,
-0.02392005,
0.008953479,
-0.028551161,
-0.010945592,
0.0036809973,
0.022567471,
-0.075979605,
0.0037673712,
-0.04792831,
0.012592209,
-0.024566935,
0.0318738,
-0.0038849867,
0.056573052,
0.0070569296,
0.019215431,
0.02665461,
0.04563481,
0.0026739147,
-0.038225036,
0.03166797,
0.020420989,
0.021214895,
0.016833717,
0.026316466,
-0.03319697,
0.045664214,
0.0023706872,
0.0080199065,
0.009247518,
0.060160324,
0.020553308,
-0.014716638,
0.014018296,
-0.00030828122,
0.01724537,
-0.00073279964,
-0.0040026023,
-0.056014378,
0.018509738,
0.017892256,
0.06639394,
0.06468852,
-0.022346944,
0.014165316,
0.009850297,
-0.039136555,
0.00634021,
-0.020479796,
-0.064982556,
-0.0063365344,
0.024008263,
0.054191336,
0.014304984,
0.040195093,
0.0070495787,
0.042635616,
0.051074527,
-0.011790953,
0.016377958,
0.009129902,
0.033843856,
-0.029036324,
0.020641519,
-0.0040209796,
0.0069981217,
-0.004572302,
-0.017936362,
-0.009740033,
0.046634544,
0.0167014,
-0.02725739,
0.017818747,
-0.018700862,
-0.029624403,
-0.062395018,
0.022420453,
-0.058807746,
-0.028668776,
0.0098135425,
-0.009269571,
-0.012496646,
0.020171057,
-0.021317808,
0.015422331,
0.03325578,
0.018759672,
0.016025111,
0.081978,
0.02043569,
0.03543167,
0.016348554,
-0.029051026,
-0.0652766,
-0.002942225,
-0.018289208,
0.02459634,
0.0061748135,
-0.043076675,
-0.03901894,
0.037548747,
0.0130994255,
-0.021994097,
-0.0072627566,
0.02528733,
0.015863389,
-0.029286258,
-0.01040162,
0.09297504,
0.032285452,
0.012107044,
0.0038519073,
-0.0058660726,
-0.049457315,
-0.033343993,
0.006060873,
0.007836132,
0.015025379,
-0.04889864,
-0.0011265358,
-0.051397968,
-0.00964447,
-0.008894672,
-0.016128024,
-0.011320491,
0.034814186,
0.04654633,
0.00873295,
0.038960133,
-0.020817941,
-0.017436497,
0.043605942,
0.06280667,
0.015745774,
0.06686441,
0.08321296,
0.018862585,
-0.039636422,
-0.015451735,
-0.018877286,
-0.005480147,
0.0034788456,
-0.009600365,
0.0029385495,
-0.029800825,
-0.04290025,
0.033432204,
0.01351843,
-0.005564683,
-0.051721413,
-0.034255512,
-0.03575511,
-0.038313247,
-0.008600633,
-0.05777861,
-0.0026555373,
-0.009637119,
-0.030050758,
0.0031664295,
-0.030756451,
0.25851884,
0.04378237,
0.022611579,
-0.0069797444,
0.021170788,
0.058631323,
0.01192327,
0.026845736,
0.011452808,
-0.03690186,
0.014143263,
-0.026360571,
0.046899177,
0.0005586736,
-0.013856575,
0.0341673,
-0.023640715,
0.005028062,
-0.029095132,
-0.061630517,
-0.02991844,
-0.0012193419,
0.027404409,
0.026522294,
0.03066824,
-0.020715028,
-0.010747115,
-0.052191876,
0.015098888,
-0.027286794,
0.018406825,
0.0022806379,
0.018098084,
-0.02269979,
0.011849761,
0.047810696,
-0.026831035,
-0.042606212,
-0.0015005164,
0.0052485913,
0.006127032,
-0.040665556,
0.037019476,
-0.041194826,
-0.004414256,
0.06292429,
-0.015539947,
-0.0009519504,
-0.0018588761,
-0.03916596,
0.03143274,
-0.10291355,
-0.0079169925,
-0.00622627,
-0.04266502,
0.00076633843,
-0.022155818,
-0.039077748,
0.0029789798,
0.015407629,
0.055455703,
0.007266432,
-0.0025213822,
0.040812574,
0.010732413,
0.0112984385,
-0.004076112,
0.021891184,
-0.026434083,
-0.008799109,
-0.011739496,
-0.009651821,
-0.002251234,
-0.024655147,
0.03940119,
0.015833985,
0.04190052,
0.031138701,
-0.03866609,
-0.029800825,
0.031462144,
-0.004689918,
0.013033266,
-0.013268498,
-0.0012900949,
0.064570904,
-0.046340503,
0.009629768,
-0.006711434,
0.047046196,
-0.005351505,
0.037695765,
-0.0071451413,
-0.010416322,
-0.011489564
] |
Distributed training with 🤗 Accelerate
As models get bigger, parallelism has emerged as a strategy for training larger models on limited hardware and accelerating training speed by several orders of magnitude. At Hugging Face, we created the 🤗 Accelerate library to help users easily train a 🤗 Transformers model on any type of distributed setup, whether it is multiple GPU's on one machine or multiple GPU's across several machines. In this tutorial, learn how to customize your native PyTorch training loop to enable training in a distributed environment.
Setup
Get started by installing 🤗 Accelerate: |
[
0.022428095,
0.01236683,
0.033860423,
0.049139902,
-0.037762146,
-0.023778694,
-0.007844376,
0.005317123,
-0.030859096,
0.07339608,
0.018471802,
0.008233185,
0.004096129,
-0.022005182,
-0.059535407,
0.028048763,
-0.03145936,
-0.066411175,
-0.025061078,
0.014829283,
-0.012619214,
-0.015770609,
-0.07006734,
-0.014460938,
-0.0062993756,
0.039972216,
-0.012523718,
0.011057161,
0.090694636,
0.031213798,
-0.039508373,
0.013328619,
-0.0030900023,
-0.03025883,
-0.0027097205,
-0.025674986,
0.03937195,
0.012721533,
-0.03607049,
0.0062652696,
0.035088237,
0.009713384,
0.07159528,
-0.014952064,
-0.0150066335,
-0.018335378,
-0.014774713,
-0.0053034807,
-0.049549177,
-0.050585996,
-0.04029963,
0.02421525,
0.026643597,
-0.0015765491,
-0.047830235,
0.0068962304,
-0.025238428,
0.016493654,
-0.016234448,
0.031704925,
0.0064085145,
0.0151567,
0.0018997034,
-0.021759618,
-0.029031014,
0.04062705,
-0.01567511,
0.018676437,
0.009092656,
-0.020299882,
-0.011016233,
-0.0018877663,
0.0039255987,
-0.008014906,
-0.050613284,
0.0064528524,
0.07759794,
-0.001635382,
-0.01583882,
0.076561116,
0.0387444,
0.020067962,
0.027380286,
-0.023355778,
-0.050776992,
-0.04444692,
0.029222008,
-0.016657364,
0.008055834,
-0.032850884,
-0.05042229,
0.007714774,
0.005743448,
0.0031326348,
0.018608226,
-0.008669741,
-0.006224342,
0.029985983,
0.0131649105,
-0.008451463,
0.053751033,
0.03841698,
-0.0058832825,
0.010988949,
-0.053860173,
0.031595785,
0.04365566,
-0.0060538123,
-0.029222008,
-0.01190981,
-0.011439147,
0.020149816,
0.019167563,
-0.013376367,
-0.047257252,
0.016725576,
0.0064528524,
0.016834714,
-0.04957646,
0.006217521,
0.028594458,
0.027994193,
0.021636836,
-0.016248092,
0.046356857,
-0.046820696,
0.01635723,
0.00450199,
-0.012141731,
-0.013969812,
0.032387044,
-0.016889283,
0.012475969,
0.027257504,
0.0434101,
0.025552204,
-0.022960149,
0.030395254,
0.022237102,
-0.020763723,
0.016548224,
0.011104909,
-0.010641067,
0.062864155,
0.014256302,
-0.006309607,
-0.014392726,
0.010054445,
-0.0020634122,
0.02592055,
-0.092222586,
0.04529275,
-0.0068075545,
-0.008471927,
-0.0043041753,
-0.025224786,
-0.052577786,
-0.017816966,
0.013669679,
0.022932865,
0.030913666,
0.0041609304,
-0.02557949,
0.04319182,
-0.048594207,
0.055633683,
-0.015866105,
0.006821197,
0.038444266,
0.004935136,
-0.0072441115,
-0.018976571,
0.001664372,
-0.013042129,
-0.0057809646,
0.07847105,
0.038935393,
-0.019986108,
0.013840209,
-0.018922001,
0.008710668,
0.04873063,
0.04564745,
0.0024999687,
-0.014488223,
-0.021445844,
-0.017271271,
0.017216701,
-0.0140243815,
0.012141731,
-0.026766377,
0.017857894,
-0.007019012,
0.010859346,
-0.0004416725,
-0.01225087,
-0.061172497,
0.06182733,
-0.0031667408,
-0.020190744,
-0.032632608,
0.048621494,
-0.033696715,
0.015988886,
-0.016602794,
0.00086586573,
0.045156326,
0.058826003,
-0.016589152,
-0.0012303734,
-0.001370208,
0.0009327987,
-0.023683196,
0.029876843,
0.00336285,
-0.018267166,
-0.012162195,
0.024010614,
-0.01885379,
0.02911287,
0.026370747,
0.010081729,
0.028021477,
0.0066302037,
0.0013983455,
0.0066302037,
0.011152658,
0.05958998,
0.009556497,
0.05465143,
0.017694185,
0.06340985,
0.017162131,
0.011957559,
0.009733848,
0.030176977,
0.047775663,
0.046575133,
-0.027366642,
0.034624398,
-0.008772059,
-0.0010325587,
0.016616436,
0.007510138,
0.04079076,
0.019508624,
-0.02109114,
-0.027939623,
-0.019631404,
0.005818481,
-0.050122157,
0.04864878,
0.028539889,
0.016862,
-0.02416068,
-0.0131649105,
-0.020531803,
-0.023287566,
-0.0408999,
-0.011630141,
0.01834902,
0.03184135,
-0.0103955045,
-0.053068914,
0.010381862,
0.023601342,
0.019931538,
0.0018587762,
0.0026227504,
-0.019986108,
-0.012755639,
-0.057407193,
-0.053969312,
-0.02387419,
-0.021213923,
-0.007837555,
0.02416068,
-0.04109089,
-0.018089814,
-0.016193522,
-0.020504517,
-0.01128226,
-0.0164118,
0.04057248,
-0.005003348,
-0.011309545,
-0.07088588,
0.037352875,
-0.009931663,
0.11154021,
-0.009958948,
-0.021104785,
-0.015852463,
-0.03738016,
0.013028487,
-0.002929704,
-0.004276891,
-0.0076602045,
0.0010632541,
0.010722922,
0.013833388,
0.007844376,
-0.01709392,
0.016507298,
-0.032905456,
0.026548099,
0.037352875,
-0.023396706,
0.036561616,
0.051213548,
-0.010525107,
0.014747428,
-0.0055285804,
0.07585171,
-0.02154134,
-0.0055592754,
0.024201607,
0.027080152,
-0.024911013,
-0.057079777,
-0.027557636,
-0.00024812104,
0.024297103,
-0.02581141,
-0.012148552,
0.035934065,
-0.042918973,
-0.01994518,
0.011787029,
-0.07312323,
0.0023294387,
0.019085709,
-0.025061078,
0.052441362,
0.021282135,
0.017857894,
-0.035988636,
-0.0593717,
-0.027202934,
0.025825052,
0.008321861,
-0.04553831,
-0.04643871,
0.025961475,
-0.008110403,
0.015634183,
0.022127964,
-0.044228643,
0.013417294,
0.008253649,
0.028921876,
0.05230494,
0.041172747,
0.033887707,
-0.0218824,
0.024078825,
-0.056370374,
0.014829283,
-0.0014836104,
0.019781472,
-0.009092656,
0.014433653,
-0.014720144,
0.017134847,
-0.03339658,
-0.023055647,
-0.009126762,
0.04564745,
0.05372375,
-0.032114197,
0.024010614,
0.01960412,
-0.022469023,
0.034979098,
-0.002650035,
0.016289018,
0.06766628,
0.0113641145,
0.029713135,
-0.0412546,
-0.047366392,
0.012196301,
0.0009993054,
0.041527446,
0.05339633,
0.035306517,
-0.01709392,
-0.054733284,
-0.03669804,
-0.005845766,
0.021964254,
0.0043962616,
-0.012510075,
0.0073259654,
-0.03778943,
-0.017694185,
-0.029222008,
0.031022804,
-0.0018945875,
0.016289018,
-0.00900398,
-0.026998298,
0.017571405,
0.018321736,
-0.016643722,
-0.004491758,
-0.023260282,
0.056097526,
0.002056591,
0.009692921,
0.0024147038,
-0.032168765,
-0.016329946,
0.023301208,
-0.02109114,
-0.002825681,
-0.06782998,
0.030040553,
0.030176977,
-0.019331273,
-0.04365566,
-0.007169078,
-0.013621931,
0.003078065,
0.056152094,
-0.063955545,
0.010722922,
-0.02837618,
0.01738041,
0.04905805,
0.045783874,
-0.019112995,
-0.025006508,
-0.012755639,
-0.073723495,
0.051486395,
0.024760945,
-0.020750081,
0.018321736,
-0.040545195,
-0.038935393,
0.0033867243,
-0.036861748,
0.016248092,
-0.046929836,
0.008990338,
0.013062593,
-0.00888802,
-0.012018949,
-0.043164536,
0.0013207543,
-0.01583882,
0.012346366,
-0.04946732,
-0.017680543,
-0.014952064,
-0.03634334,
0.0006066602,
0.04278255,
0.03435155,
0.029467572,
-0.033696715,
0.008355967,
-0.008799344,
-0.056370374,
0.023614984,
0.020490875,
-0.071486145,
0.027898695,
0.004883977,
0.028212471,
0.022987435,
0.051786527,
-0.010907094,
-0.012216764,
0.009788418,
0.054214876,
-0.037407443,
-0.012564645,
0.024529025,
-0.030859096,
0.0051977523,
0.0066302037,
-0.0032281314,
-0.005999243,
-0.08223635,
-0.025388496,
-0.031977773,
0.011227691,
0.024310747,
0.042045858,
0.026875516,
-0.008199079,
-0.033860423,
-0.00939961,
-0.013962991,
-0.044528775,
-0.02911287,
0.007878482,
0.027148364,
0.039835792,
-0.004873745,
0.007994443,
0.07912589,
0.02120028,
-0.03339658,
-0.025211144,
-0.020695511,
0.0214322,
0.0022970382,
-0.022496307,
0.0012892062,
0.015197627,
-0.0021572036,
-0.0039699366,
-0.024774589,
0.01151418,
0.01983604,
-0.042236853,
0.03937195,
-0.01714849,
-0.043573808,
0.028458035,
0.0029655155,
-0.03653433,
0.0004723679,
0.044992615,
-0.022318957,
-0.022660017,
-0.030040553,
0.024010614,
-0.023792336,
0.0065483493,
-0.06990363,
-0.019808756,
0.0035231484,
0.024447171,
0.0095837815,
-0.039917644,
0.0113777565,
-0.05653408,
-0.0006147604,
-0.026329821,
0.013615109,
-0.03009512,
0.0045497385,
-0.004205268,
0.044228643,
0.003258827,
0.02170505,
0.018321736,
-0.021077499,
0.044583343,
0.051759243,
-0.034869958,
0.011882525,
-0.015770609,
0.024419885,
-0.021814188,
-0.0044371886,
-0.027380286,
0.040326916,
-0.052277654,
0.030122407,
-0.02398333,
-0.03514281,
-0.048130367,
0.005593382,
0.02541578,
-0.060353953,
0.008158152,
-0.0012482791,
0.009952126,
0.014256302,
0.019153921,
-0.017980676,
0.046629705,
-0.021132069,
-0.049221758,
0.067939125,
-0.0053546396,
-0.009611066,
-0.02785777,
0.011943916,
0.06493779,
-0.058444016,
0.036889035,
0.07710681,
-0.049303614,
0.012346366,
-0.037762146,
0.048894342,
-0.023314852,
-0.019222133,
0.0113504715,
0.0025426012,
-0.031595785,
-0.004508811,
-0.0656472,
-0.055360835,
-0.01310352,
0.028758166,
0.028212471,
-0.009010801,
0.051377255,
-0.050395004,
-0.046793412,
-0.055251695,
0.07132243,
0.021418558,
-0.013233122,
0.06919422,
-0.055060703,
-0.00746239,
0.013710606,
-0.048457783,
-0.04507447,
-0.030804526,
0.06182733,
0.010845703,
-0.0042257314,
0.036397908,
0.031159228,
-0.049112618,
-0.08976696,
0.010170405,
-0.0046008974,
0.0020412432,
-0.04684798,
-0.012407757,
0.025538562,
-0.055579115,
0.030477108,
0.022291671,
-0.035579365,
-0.0004269643,
0.008990338,
0.005954905,
-0.019631404,
0.010811597,
0.046602417,
-0.037925854,
-0.001983263,
-0.04057248,
-0.021977898,
0.004024506,
0.00837643,
0.042809833,
-0.008772059,
0.0009796944,
-0.0077761644,
0.005740037,
0.08949411,
-0.020872863,
0.053259905,
0.028458035,
-0.04853964,
-0.034869958,
-0.03339658,
0.029031014,
0.0038880822,
0.015593257,
-0.009877093,
-0.03691632,
0.00024705523,
0.0016413506,
-0.017967032,
-0.015988886,
0.025988761,
0.0015816651,
-0.0032230157,
-0.026793662,
-0.0164118,
0.02290558,
0.034842674,
-0.0019252829,
-0.018567298,
-0.023314852,
0.028676312,
-0.024979224,
-0.005429673,
-0.031104658,
0.01851273,
-0.027966907,
-0.0038266915,
-0.0061800047,
-0.032441612,
-0.038498838,
0.029385718,
0.0070804027,
-0.0022356473,
-0.023942402,
0.02308293,
-0.00012235522,
0.009761133,
-0.004085897,
-0.029931413,
0.025593132,
-0.007544244,
-0.0057639116,
0.02774863,
0.051704675,
0.017339483,
0.020654585,
0.016834714,
-0.045483742,
-0.021118427,
0.006473316,
0.04512904,
0.012039413,
0.029276578,
-0.0052625537,
0.021623194,
-0.063955545,
-0.028212471,
-0.0012184363,
-0.003185499,
0.0017112679,
0.034406118,
0.0013753239,
0.049603745,
-0.0002977879,
0.015224912,
0.0026909623,
0.015879747,
0.029713135,
0.002650035,
0.004907851,
0.008342324,
-0.0006752985,
-0.028403465,
0.01196438,
0.011541465,
-0.014324514,
-0.023178428,
0.0104705375,
-0.03634334,
0.004409904,
-0.020122532,
-0.019699616,
-0.0017735113,
-0.00056402775,
0.00013685027,
-0.004096129,
0.009304113,
-0.042373277,
-0.023710482,
-0.0618819,
-0.01657551,
-0.0013514496,
-0.0019764418,
-0.016234448,
-0.025661344,
-0.039453804,
0.041936718,
0.030040553,
0.0065824552,
-0.027475782,
0.013499149,
-0.018649153,
0.023287566,
-0.020872863,
-0.015661469,
0.014010739,
-0.0040893075,
-0.05664322,
0.0065551703,
0.01800796,
0.04240056,
-0.007107687,
-0.016480012,
-0.059535407,
-0.013922064,
0.012571466,
0.021636836,
-0.026971012,
-0.003492453,
-0.008874377,
0.000002458029,
-0.030859096,
-0.020831935,
-0.0075647077,
0.027625848,
0.046220433,
0.01840359,
-0.028676312,
0.048594207,
0.039808504,
-0.0328236,
0.00003338656,
0.0026517403,
0.011132194,
-0.027557636,
-0.01920849,
-0.029085584,
0.0781982,
0.011671068,
0.017939748,
-0.025797768,
-0.008417357,
0.015402263,
-0.019863326,
-0.040599763,
0.04019049,
0.011848419,
-0.014706501,
0.011186764,
0.013430937,
-0.042809833,
-0.017421337,
-0.0064016934,
0.033669427,
0.016957495,
0.0034515257,
-0.0012303734,
-0.06270044,
0.042045858,
-0.01949498,
-0.022605447,
-0.013533255,
-0.006057223,
0.033287443,
0.019986108,
-0.010006696,
-0.0042530163,
0.023751408,
0.031322937,
0.06963078,
0.024992866,
0.01099577,
0.033778567,
-0.030531678,
0.04051791,
-0.011316366,
-0.009099477,
-0.07175899,
-0.055060703,
-0.032987308,
0.03418784,
-0.059753686,
-0.005173878,
0.009167689,
-0.03304188,
-0.029222008,
-0.008001264,
0.020518161,
-0.024051541,
-0.0058662295,
0.03435155,
-0.003253711,
-0.020995645,
0.043955795,
0.0015458538,
0.03094095,
0.014597362,
0.009290471,
0.008567424,
0.04182758,
0.0049044406,
-0.033014596,
0.06166362,
0.044828907,
0.0060810973,
-0.04109089,
0.004945368,
-0.018389948,
-0.008233185,
0.027966907,
-0.028867306,
-0.03094095,
0.018185312,
-0.015429548,
-0.04957646,
-0.016780145,
0.007905767,
-0.031432077,
0.0064085145,
0.02826704,
-0.027052868,
-0.0019508624,
-0.06177276,
-0.007128151,
0.0020429485,
0.019003855,
-0.011930274,
-0.006906462,
-0.024583595,
-0.010579676,
-0.04057248,
-0.03424241,
0.012926169,
-0.05942627,
-0.012898884,
-0.033533003,
0.02154134,
0.021363989,
0.04199129,
0.018212596,
-0.020900147,
0.01879922,
-0.011493717,
0.022291671,
-0.03287817,
0.03380585,
0.05571554,
0.018076172,
0.010688816,
0.061554484,
0.03890811,
0.02586598,
-0.014460938,
-0.023696838,
0.0025170217,
-0.056206662,
-0.037298307,
-0.03989036,
0.035852212,
0.021514056,
-0.015470475,
-0.043792084,
-0.015388621,
-0.067284286,
0.014556435,
-0.021391274,
-0.0013881136,
0.006657488,
0.016248092,
0.016234448,
-0.053751033,
0.21554983,
0.06706601,
0.0425097,
-0.007612456,
-0.02894916,
0.05500613,
0.006623382,
-0.045674734,
0.01373107,
-0.034378834,
-0.0011937094,
-0.017366767,
0.009358683,
0.01960412,
0.0122304065,
0.014938422,
-0.047448248,
0.008437821,
0.009154047,
-0.04444692,
-0.018035244,
0.026943728,
-0.000010884605,
0.042837117,
-0.009044907,
0.039508373,
0.037516583,
-0.025784126,
-0.020122532,
-0.052905206,
0.033669427,
-0.032332473,
0.01607074,
-0.0072441115,
-0.0032485952,
0.052686926,
0.044692483,
-0.0018587762,
0.010927558,
0.015129415,
0.015647827,
-0.05235951,
-0.01789882,
-0.021050215,
-0.01772147,
0.0015901916,
0.003714142,
0.035688505,
0.021500412,
-0.0638464,
0.04245513,
0.014679216,
0.027230218,
-0.047202684,
-0.075251445,
-0.014242659,
-0.017012065,
-0.03811685,
0.00604017,
0.02148677,
0.0048635136,
-0.016589152,
-0.0131239835,
0.026166111,
-0.03781672,
0.05293249,
-0.0048294077,
0.015647827,
-0.018594583,
-0.008158152,
0.05391474,
-0.04229142,
-0.013601467,
-0.020027034,
-0.010579676,
0.022810083,
0.009147225,
0.04098175,
0.004665699,
-0.0042632483,
0.02109114,
-0.009774775,
0.015429548,
-0.029358432,
0.011807492,
0.075033166,
-0.053259905,
0.025934191,
0.020163458,
0.0043007648,
0.032086913,
0.0303134,
-0.0018417232,
-0.020245314,
0.0054740105
] |
True or 'longest_first': truncate to a maximum length specified by the max_length argument or
the maximum length accepted by the model if no max_length is provided (max_length=None). This will
truncate token by token, removing a token from the longest sequence in the pair until the proper length is
reached.
'only_second': truncate to a maximum length specified by the max_length argument or the maximum
length accepted by the model if no max_length is provided (max_length=None). This will only truncate
the second sentence of a pair if a pair of sequences (or a batch of pairs of sequences) is provided.
'only_first': truncate to a maximum length specified by the max_length argument or the maximum
length accepted by the model if no max_length is provided (max_length=None). This will only truncate
the first sentence of a pair if a pair of sequences (or a batch of pairs of sequences) is provided.
False or 'do_not_truncate': no truncation is applied. This is the default behavior. |
[
-0.0013517466,
0.025886731,
-0.045844566,
-0.032233156,
-0.010925313,
0.0038308187,
-0.00077373144,
0.01569905,
0.011683823,
0.015462451,
-0.011475059,
0.005901061,
0.02624859,
-0.031620782,
0.022059392,
0.044063114,
-0.02919912,
-0.043422904,
-0.09079841,
0.025051676,
0.008524529,
0.018037206,
-0.06502301,
-0.03000634,
-0.030785725,
-0.02207331,
0.004881597,
-0.009624018,
0.053666256,
0.041864134,
-0.040722888,
0.007849525,
-0.025636215,
0.012616302,
-0.004930309,
-0.013228676,
-0.013980227,
-0.019484635,
-0.04904561,
-0.015198017,
-0.017062975,
-0.010744385,
0.003371538,
0.011878669,
-0.111173764,
-0.019526388,
0.036937304,
-0.011864752,
-0.014293373,
0.002849628,
0.0043179346,
0.02015268,
0.027612513,
0.0068370197,
0.013005994,
-0.011363718,
-0.0073415325,
-0.002966188,
-0.026540859,
-0.0060854694,
0.01720215,
0.02599807,
-0.045093015,
-0.02599807,
0.0021032968,
0.051411603,
-0.044564147,
-0.032762025,
-0.050827064,
-0.027487254,
-0.07354058,
0.026847046,
0.03343007,
0.0111897485,
-0.02300579,
0.027014056,
0.008914221,
0.00839927,
0.011161913,
0.0095265955,
0.04517652,
0.02033361,
0.03006201,
0.022574343,
-0.019275872,
-0.017731018,
0.036853798,
-0.03331873,
-0.018677415,
-0.05166212,
-0.06017969,
0.029560976,
0.003411551,
-0.0036881634,
0.05750751,
0.009338708,
-0.020264022,
0.02931046,
0.011001861,
-0.0056888177,
0.022852695,
0.08807056,
0.002613029,
0.014529971,
-0.031481605,
0.049602315,
0.03317955,
0.008350559,
-0.021669699,
-0.04008268,
0.025385696,
0.010681756,
0.014696983,
-0.041363098,
-0.021864545,
0.038078547,
-0.031732123,
0.009359584,
-0.060569383,
-0.0047354624,
-0.0018162464,
0.008656746,
-0.011892587,
-0.03451564,
0.007828648,
-0.018635662,
-0.023409398,
0.031982638,
-0.048850767,
-0.0065656267,
-0.012797231,
-0.028865097,
-0.00851757,
0.042086814,
-0.030924901,
0.031147582,
-0.0024407986,
0.014557807,
-0.009937164,
-0.02403569,
0.053360067,
0.02658261,
0.013701875,
0.08311589,
0.0036568486,
-0.01540678,
-0.018621745,
-0.02207331,
-0.017369162,
0.023729503,
-0.07020036,
-0.024759406,
-0.039637316,
0.032706354,
-0.022407332,
0.006753514,
-0.0128598595,
0.0013317401,
0.026554776,
-0.009784071,
-0.019846493,
0.005264331,
-0.009797988,
0.03515585,
0.0344043,
0.017424831,
-0.039525975,
0.0041161296,
0.035879567,
-0.007397203,
0.020222269,
-0.009644895,
0.016659364,
0.029087778,
0.0642993,
0.036213588,
0.031537276,
0.016033072,
-0.013326099,
0.006586503,
0.008475817,
-0.010897479,
0.048683755,
-0.0012021324,
0.0009872796,
0.01592173,
0.018621745,
0.04114042,
0.00007192571,
0.015170181,
0.027153233,
0.038941436,
-0.025719719,
0.024300124,
-0.030312527,
-0.018468652,
-0.05155078,
-0.01314517,
0.0011473319,
-0.032233156,
0.011099284,
0.016422765,
-0.0181903,
-0.018162465,
0.047069315,
-0.024049608,
0.02224032,
0.031286757,
-0.000119821816,
0.018747004,
0.03980433,
0.012825066,
-0.013458316,
0.013882803,
0.028391898,
0.007779937,
-0.027598595,
0.0130895,
0.029171284,
0.0138480095,
0.03838473,
0.0016588037,
0.027890865,
0.009011644,
0.016770706,
-0.02416095,
0.0050486084,
0.041056912,
-0.004241388,
0.013590533,
0.029616646,
0.018719168,
0.009992835,
0.0573405,
-0.007320656,
-0.004738942,
0.053137388,
0.027765606,
-0.013917597,
-0.007974783,
0.018635662,
0.035322864,
0.016659364,
0.035072345,
-0.024898581,
-0.008134835,
0.015476368,
0.006168975,
-0.037104316,
0.031732123,
-0.02843365,
0.027125398,
0.02698622,
-0.019401131,
-0.037271325,
-0.0008868119,
-0.001964121,
-0.01071655,
-0.024898581,
-0.015211934,
0.048433237,
0.01707689,
-0.018579992,
-0.04164145,
0.026443435,
0.071814805,
0.00007540511,
-0.00851757,
0.0058941026,
-0.012205733,
0.036464106,
-0.012539756,
-0.008447981,
-0.03070222,
-0.013256512,
0.014529971,
-0.0037890659,
-0.042198155,
-0.017925866,
-0.014752653,
0.051940475,
0.015462451,
-0.011565523,
0.05358275,
0.02194805,
0.03955381,
-0.060513712,
-0.007933031,
-0.031258922,
0.004203114,
-0.022769189,
-0.031064076,
0.012748519,
-0.032650683,
-0.010410363,
-0.014585642,
0.014418631,
-0.030590879,
-0.032929037,
0.010361651,
-0.030618714,
-0.002178104,
0.028892932,
0.023311974,
0.029004272,
0.046957973,
0.015615544,
-0.029644482,
0.030785725,
0.015281522,
-0.027723854,
-0.009832783,
0.026902715,
-0.007626843,
-0.018051123,
0.04473116,
0.0030096804,
-0.027835194,
-0.03253934,
-0.037688855,
-0.005838432,
-0.008788963,
-0.0155181205,
-0.04731983,
-0.01604699,
0.08233651,
-0.06418796,
-0.04790437,
0.022101145,
-0.009401337,
-0.009429172,
-0.057897203,
0.010305981,
0.0016892484,
0.0042761816,
0.021349594,
-0.06747251,
0.026624363,
-0.014432549,
0.0019241078,
-0.015782556,
-0.032288827,
0.04442497,
0.04431363,
0.01002067,
0.03671462,
0.048572414,
-0.011085366,
0.012838984,
-0.012811149,
0.037633184,
-0.035267193,
-0.013597492,
0.023645997,
0.019916082,
-0.014863994,
-0.022630014,
0.055614717,
0.033096045,
0.03857958,
0.014161156,
0.026513023,
0.029588811,
-0.003976953,
-0.050353866,
-0.009610101,
-0.0036986014,
0.027890865,
0.012762437,
-0.05967866,
0.03863525,
0.003110583,
-0.034432136,
-0.017216068,
-0.027264573,
0.003180171,
0.016993387,
0.06379826,
0.0354342,
-0.013813215,
-0.02079289,
-0.018760921,
0.018106794,
-0.0058523496,
0.062517844,
0.028350146,
0.031871296,
0.044508476,
0.015545956,
0.017619679,
0.03022902,
-0.00047189352,
0.037716687,
-0.06017969,
-0.005076444,
-0.07008902,
-0.013277388,
0.06446631,
0.008900303,
-0.021989804,
0.008983809,
-0.038134217,
-0.013861927,
0.02542745,
0.021516606,
-0.019526388,
-0.02861458,
0.019971753,
0.022504754,
0.030312527,
-0.018872261,
-0.029672317,
-0.006214207,
-0.009317831,
0.013875845,
-0.028238805,
-0.00584887,
-0.018719168,
-0.03017335,
0.05052088,
-0.020848561,
-0.06613642,
-0.028531075,
-0.0022041996,
0.061014745,
-0.0046658744,
-0.0012073516,
-0.08495301,
0.01864958,
0.0010246831,
-0.049797162,
-0.005375672,
-0.06134877,
0.009575307,
-0.031592946,
0.026053742,
0.017438749,
-0.022490837,
-0.003969995,
-0.054139454,
-0.023715585,
0.023826927,
0.0038934478,
-0.0044884253,
-0.037967205,
0.0036011783,
0.013047747,
-0.031231089,
-0.010466034,
-0.01425162,
0.042253826,
-0.044842497,
0.056700293,
-0.017758854,
0.03690947,
-0.05288687,
-0.0015344151,
0.042448673,
0.03150944,
0.0733179,
-0.01958206,
-0.02154444,
0.046373434,
-0.05219099,
-0.023270223,
0.029755823,
0.007668596,
0.01604699,
0.044452805,
-0.03175996,
-0.024147032,
0.039832164,
0.007004031,
-0.02253259,
0.011600317,
-0.027668184,
0.00084723375,
0.05845391,
-0.0029609688,
0.017995453,
-0.043868266,
-0.0006684796,
-0.034376465,
-0.03226099,
0.0026547816,
-0.08378393,
-0.008148753,
-0.00028248373,
-0.0077312253,
0.031175418,
0.015072757,
0.014432549,
-0.019373296,
0.029477471,
0.0002716106,
-0.0389136,
-0.010918355,
-0.0006354253,
0.024801157,
0.040361032,
-0.017438749,
-0.06285187,
-0.0054069865,
0.037494007,
-0.06157145,
-0.015198017,
-0.01575472,
-0.0022824858,
0.013646204,
-0.010528662,
-0.012386662,
0.023715585,
-0.031091912,
0.012901613,
0.0071466863,
-0.0024634148,
0.0028583265,
0.011690781,
0.00127433,
0.056060083,
0.022560425,
-0.055169355,
-0.04024969,
-0.0035663843,
0.019387214,
0.02114083,
0.02004134,
-0.04865592,
-0.050660055,
-0.07159212,
0.06045804,
-0.02038928,
-0.0033610996,
-0.053721927,
-0.061849803,
0.0057653645,
-0.007425038,
0.018802674,
-0.031537276,
0.04384043,
-0.05230233,
0.024982087,
-0.05617142,
-0.0017510077,
-0.0019310666,
-0.0025869333,
-0.040695053,
0.035851732,
-0.00793999,
0.02936613,
-0.0009429172,
0.055419873,
0.013903679,
-0.03579606,
-0.043339398,
-0.011301089,
0.0046902304,
0.014627394,
-0.030396033,
0.014126361,
-0.0027243698,
0.028002206,
-0.03498884,
0.019484635,
0.010285105,
-0.012609343,
-0.017647514,
-0.0408899,
-0.0043805637,
-0.048683755,
0.022142896,
-0.005890623,
0.025594462,
0.028698085,
0.031425934,
-0.042587847,
0.01928979,
-0.04837757,
-0.08044371,
0.039748657,
-0.015907813,
0.0044640694,
-0.015907813,
-0.0279187,
0.026666116,
-0.0133539345,
0.017466584,
0.06947665,
0.00428662,
0.030924901,
-0.048683755,
0.052692022,
0.0042622644,
-0.008928139,
0.010793096,
-0.00083201134,
-0.01998567,
-0.0057549262,
-0.023353728,
-0.03874659,
-0.009992835,
0.02867025,
-0.00033967636,
0.028030042,
0.028837262,
0.0024338397,
-0.03960948,
-0.0463456,
0.022922283,
-0.0007189309,
-0.012254444,
-0.0147109,
0.05185697,
-0.0029818453,
0.013708834,
-0.042671353,
-0.017410913,
0.0058349525,
0.049184788,
-0.021767123,
-0.041363098,
0.03902494,
0.032622848,
-0.02855891,
-0.076880805,
0.013221717,
-0.008002618,
0.005079923,
-0.012671973,
-0.020639796,
-0.007640761,
-0.03017335,
0.008983809,
0.04726416,
-0.026652198,
-0.004258785,
0.033875432,
0.022518672,
-0.047403336,
-0.018719168,
0.07148078,
-0.03278986,
-0.019234119,
-0.04055588,
-0.0009768413,
-0.03156511,
-0.028865097,
0.042031143,
0.00828097,
0.022226403,
0.020653713,
0.008684581,
0.05438997,
-0.024188785,
-0.0002622597,
0.015462451,
-0.028183134,
-0.03660328,
-0.012964242,
0.015768638,
-0.026833128,
-0.016186165,
0.020542374,
0.013604451,
0.036631115,
0.021975886,
-0.009944123,
-0.08228084,
0.009401337,
-0.049435306,
-0.0024129634,
0.017981535,
-0.0067326375,
-0.0012960762,
0.047069315,
0.016144414,
-0.03156511,
0.011349801,
0.008357517,
-0.013708834,
-0.011245418,
-0.05422296,
0.0056261886,
-0.043311562,
-0.039052777,
-0.039637316,
-0.03381976,
-0.013019912,
0.015365027,
-0.010229434,
0.0031679932,
-0.029672317,
0.0014952718,
-0.005514848,
-0.010730468,
-0.012671973,
0.0039978297,
0.020013506,
0.010556498,
-0.017647514,
0.05219099,
0.029115614,
-0.026666116,
-0.017731018,
0.02705581,
-0.017090809,
-0.019735154,
0.05461265,
0.06574673,
0.018914014,
-0.009262161,
0.0035524666,
0.014961417,
-0.062239494,
-0.029059943,
-0.018037206,
-0.006301192,
-0.014529971,
0.055392038,
0.029032107,
0.06285187,
0.015824309,
0.0011621193,
0.0062176865,
-0.007605967,
0.002767862,
0.0016727212,
-0.005306084,
0.030924901,
-0.030952737,
0.002832231,
0.0013213019,
0.055113684,
-0.012463208,
0.038356896,
-0.0002542136,
-0.023465069,
-0.038830098,
-0.011001861,
0.012658055,
0.0712581,
0.04924046,
-0.004328373,
0.0034393861,
-0.021572275,
-0.013124295,
0.014446466,
-0.022282073,
-0.05369409,
-0.009832783,
-0.010779179,
-0.00029422672,
0.021627946,
0.0023886077,
-0.0066456525,
0.025037758,
-0.015893895,
-0.0015213673,
-0.030117681,
-0.0017049056,
-0.007292821,
-0.008009577,
-0.04564972,
-0.0048746383,
-0.019428967,
-0.044063114,
-0.016074825,
0.030423868,
0.013235635,
0.0050486084,
-0.023799092,
-0.016172249,
-0.035601214,
0.028837262,
0.038663086,
-0.056060083,
0.012922489,
-0.031815626,
0.01592173,
-0.030396033,
0.0093456665,
-0.04066722,
0.017216068,
0.046707455,
0.013451357,
0.044063114,
0.030451702,
0.011558564,
-0.007675555,
-0.0017188232,
0.058509577,
0.01899752,
0.00411265,
0.013778421,
0.0050346907,
0.05074356,
0.0019328063,
0.025163015,
0.03493317,
0.0473755,
0.015448533,
-0.026513023,
-0.033569243,
0.017522255,
0.014474301,
-0.015462451,
-0.004164841,
-0.04345074,
0.004958144,
-0.009519637,
0.053721927,
0.05052088,
-0.017243903,
0.0065203942,
-0.012080475,
-0.022546507,
0.0071084127,
-0.0051877843,
-0.034042444,
0.026958385,
0.0046902304,
0.05722916,
-0.00013895851,
0.010486909,
-0.00020006546,
0.030507373,
0.03579606,
-0.038857933,
0.037911534,
0.015949566,
0.06274053,
-0.020305775,
0.0074528735,
-0.03156511,
0.00885855,
-0.022393415,
0.001790151,
0.01894185,
0.013694916,
-0.007258027,
-0.034487806,
0.03863525,
-0.020932067,
-0.018969685,
-0.040054847,
0.02843365,
-0.041502275,
0.027125398,
0.022393415,
-0.01703514,
-0.015545956,
0.02577539,
0.010285105,
-0.007251068,
0.010688715,
0.06162712,
0.013312181,
0.063909605,
0.021099078,
0.009999794,
0.025817143,
-0.0112384595,
-0.045677554,
-0.029644482,
0.00025682317,
0.0078147305,
-0.026151165,
-0.04339507,
-0.037132148,
0.024494972,
0.0069414014,
-0.0041335262,
-0.030340362,
0.023144964,
-0.0077938545,
-0.010340774,
-0.010918355,
0.045900237,
0.03568472,
0.006816143,
-0.024996005,
0.022518672,
-0.04667962,
-0.032650683,
-0.07532204,
0.0443693,
-0.005942814,
-0.018092876,
-0.0009098629,
-0.01575472,
-0.023910431,
0.03933113,
-0.030034175,
-0.026833128,
0.02178104,
0.028948601,
0.01784236,
0.0014239441,
0.0009490062,
-0.030479537,
0.05155078,
0.060235362,
0.009971959,
0.08912829,
0.06151578,
-0.0048468034,
-0.023311974,
0.015323275,
-0.025218686,
0.004975541,
-0.008016536,
0.03654761,
0.02044495,
-0.0128598595,
-0.055920906,
-0.05722916,
0.009025562,
-0.05553121,
0.036352765,
-0.03718782,
-0.020778973,
-0.073596254,
-0.028461486,
-0.010925313,
0.020208351,
-0.05091057,
-0.020932067,
0.012157021,
-0.026276425,
0.2269125,
0.04361775,
0.0072789034,
0.008447981,
0.048516743,
0.07515503,
0.02033361,
-0.04094557,
0.04361775,
-0.072427176,
0.00550441,
-0.050409537,
0.02698622,
-0.020834643,
-0.023437234,
0.044285793,
-0.031147582,
-0.006697844,
0.00845494,
-0.03805071,
-0.051244594,
0.038078547,
0.0014752652,
0.054696158,
-0.0004466679,
0.019428967,
0.039943505,
-0.06363125,
0.0045510544,
-0.027348079,
-0.026011989,
-0.0032567177,
-0.014905747,
0.020319693,
-0.013799298,
0.054306466,
-0.016158331,
-0.040416703,
-0.0130407885,
0.0058523496,
0.0043353317,
-0.06557972,
-0.0063116304,
-0.048349734,
0.0026252067,
0.018524323,
-0.03660328,
0.057284832,
-0.0015726885,
-0.03888577,
0.029282624,
-0.061961144,
0.0032306223,
0.0015013608,
-0.053193055,
0.009985876,
0.012414496,
-0.02855891,
-0.014035896,
0.044174455,
0.0378837,
-0.03568472,
-0.00718148,
0.021057324,
-0.016353177,
-0.016937716,
-0.002051106,
0.051773462,
-0.00637078,
-0.022671767,
-0.024592394,
-0.012268362,
-0.0057305708,
-0.020639796,
0.026485188,
-0.0018092876,
0.015977401,
0.024341878,
-0.035406366,
-0.028405815,
0.027668184,
-0.0040743765,
-0.0014474301,
-0.030841395,
0.022950118,
0.0663591,
-0.018566074,
-0.0026513024,
-0.015685132,
0.030535208,
0.032233156,
-0.015058841,
-0.022421248,
-0.015490286,
0.010375569
] | from accelerate import Accelerator
accelerator = Accelerator()
Prepare to accelerate
The next step is to pass all the relevant training objects to the [~accelerate.Accelerator.prepare] method. This includes your training and evaluation DataLoaders, a model and an optimizer:
train_dataloader, eval_dataloader, model, optimizer = accelerator.prepare(
train_dataloader, eval_dataloader, model, optimizer
) |
[
0.000343673,
0.008080104,
-0.043962423,
-0.010831221,
-0.0029070359,
-0.014316892,
-0.017130377,
-0.020304209,
-0.012986378,
0.027067658,
0.006811958,
-0.009105709,
0.005568065,
-0.027123095,
-0.012487435,
0.029215885,
-0.020692276,
-0.05225042,
-0.10483347,
0.024683818,
0.027677476,
0.01672845,
-0.062423315,
-0.03955509,
-0.014067421,
-0.025293639,
0.026651872,
-0.020733854,
0.060372103,
0.022812784,
-0.040525258,
0.0070371754,
-0.004868159,
-0.020193333,
0.022507872,
0.01609091,
-0.017338268,
-0.008391944,
-0.028107122,
-0.013623916,
0.001921277,
-0.030130614,
0.008863168,
-0.025570828,
-0.096018806,
-0.015370216,
-0.004046982,
-0.026970642,
-0.006101657,
-0.0060877977,
-0.018003527,
-0.01027684,
0.007317831,
-0.009479917,
-0.005311664,
0.0021828755,
0.016645294,
0.015730564,
-0.044683117,
-0.0056200386,
0.01589688,
0.033373743,
-0.018738082,
-0.06364295,
0.0141713675,
0.021995071,
-0.052028667,
-0.028938694,
-0.019126149,
-0.019583512,
-0.074786015,
-0.0042618047,
0.021260515,
-0.009015623,
-0.021024903,
0.031211657,
0.02935448,
0.00822563,
-0.024295753,
0.018710362,
0.009715529,
0.021163499,
0.03841861,
0.0029763335,
-0.021191219,
-0.025958896,
0.05319287,
-0.025265919,
0.002702608,
-0.036201086,
-0.045015745,
0.029299041,
-0.007920721,
0.023672074,
0.0258203,
0.018225279,
-0.021121921,
0.030130614,
0.004237551,
-0.010131314,
0.02730327,
0.076116525,
-0.0042479453,
0.0059803864,
-0.038640365,
0.029021852,
0.04432277,
-0.003724748,
0.001107896,
-0.03439935,
-0.0056131086,
-0.0011408124,
-0.008080104,
-0.035092324,
-0.014649521,
0.029243603,
-0.015619688,
0.0003956462,
-0.040552977,
-0.01438619,
0.01025605,
0.023297867,
0.008447383,
0.004459303,
0.026527137,
0.008260279,
0.0029832635,
0.02963167,
-0.07234673,
-0.023893826,
0.00056304334,
-0.004012333,
-0.01144104,
0.055909336,
-0.0061224466,
0.019708248,
-0.021537706,
0.038280018,
0.0152177615,
-0.034205314,
0.071127094,
0.011690511,
-0.011503408,
0.10100824,
-0.028800098,
-0.011967702,
-0.01144797,
-0.014178297,
-0.01586916,
0.025640126,
-0.07511864,
0.016381962,
-0.031876914,
-0.001327916,
-0.0025674775,
0.0046533365,
-0.028328875,
0.020595258,
0.009299743,
-0.008551328,
-0.007650459,
-0.022549452,
-0.025016448,
0.04257647,
0.019569654,
0.040691573,
-0.037947387,
-0.021828756,
0.021205077,
-0.019458776,
0.013575408,
-0.0328748,
0.021371393,
0.04374067,
0.0510585,
0.076227404,
0.05194551,
0.009292813,
0.017019501,
0.01672845,
-0.015675126,
-0.0090433415,
0.053026553,
-0.0075257234,
0.0027441864,
-0.004570179,
0.025155043,
0.013991193,
-0.04667889,
0.006656038,
0.019126149,
0.048813257,
-0.0264024,
0.02293752,
-0.051113937,
-0.016229507,
-0.052056387,
-0.02259103,
0.004632547,
-0.019916141,
0.0012724779,
0.028273437,
-0.04193893,
0.008031596,
0.016964061,
0.00031162283,
0.034815133,
0.03961053,
0.014400049,
0.033872686,
0.0222584,
-0.002934755,
-0.023658214,
-0.00062844297,
0.034537945,
0.015134605,
-0.037060376,
0.020664556,
0.02087245,
0.035036888,
0.025002588,
0.009881843,
0.015231621,
0.010138244,
0.028107122,
-0.014552504,
-0.009812546,
0.03844633,
0.002615986,
0.0047399583,
0.029465357,
0.02200893,
0.007823704,
0.052167263,
0.010838151,
-0.01937562,
0.046568014,
0.027441865,
0.0007349881,
0.008974045,
0.013360585,
0.022729626,
0.032403577,
0.035064604,
-0.017657038,
0.030075176,
0.027081518,
-0.008849309,
-0.040303506,
0.034759697,
-0.037309848,
0.023089973,
0.018724222,
-0.023699792,
-0.06159174,
0.010997536,
-0.00058513193,
-0.0020875914,
-0.027816072,
-0.013485321,
0.0264024,
0.019458776,
-0.034149878,
-0.04340804,
0.03911159,
0.07190323,
0.011794458,
-0.0063823126,
0.042964537,
-0.042354718,
0.0008939395,
-0.033900406,
-0.027483443,
-0.01262603,
-0.039139308,
0.0019282068,
-0.0020754642,
-0.05189007,
-0.01877966,
0.0070302454,
0.006070473,
-0.0071723056,
0.0063026203,
0.022854362,
0.010373857,
0.022216823,
-0.06746818,
0.009431409,
-0.015300918,
0.010318418,
0.0063857776,
-0.023616636,
0.016548276,
-0.0234919,
0.010519382,
-0.011482619,
0.0065728812,
-0.04368523,
-0.03875124,
-0.02965939,
-0.016548276,
-0.0037143535,
-0.001748033,
0.0073732687,
-0.0020269558,
0.03226498,
0.016492838,
-0.014649521,
0.035563547,
0.053774968,
-0.027469585,
0.03614565,
0.02142683,
0.0035965475,
-0.0352032,
0.06702468,
0.011836037,
-0.007879142,
-0.029520795,
-0.016977921,
-0.017795634,
-0.00010031916,
0.005987316,
-0.045930475,
-0.017573882,
0.07899931,
-0.030435523,
-0.04867466,
0.0043900055,
-0.014441628,
-0.05577074,
-0.02960395,
0.0020927887,
0.038141422,
0.023256287,
-0.00052579585,
-0.06375383,
0.0037108886,
-0.0058210017,
0.034149878,
0.0050587277,
-0.015093026,
0.010685696,
0.07844493,
0.008752292,
0.026249945,
0.054163035,
-0.020082455,
-0.0034354303,
0.008932466,
0.03761476,
-0.020955605,
0.021579284,
0.036007054,
0.018072825,
0.0036208017,
-0.01998544,
0.04997746,
0.03290252,
0.02586188,
0.045653284,
-0.014413909,
0.027705196,
-0.01792037,
-0.02411558,
-0.029437637,
0.027982386,
0.023713652,
0.0487301,
-0.04191121,
0.028231857,
0.033844966,
-0.026291525,
0.00038806678,
-0.01556425,
-0.011267796,
0.04687292,
0.04870238,
0.0653061,
-0.02227226,
-0.0022140595,
0.029548513,
-0.0061848145,
-0.015314778,
0.055410393,
0.008391944,
0.02087245,
0.03758704,
-0.0042167613,
0.0016042404,
0.0023041465,
0.0031218587,
0.013305146,
-0.06053842,
-0.037143536,
-0.056519154,
-0.0038044404,
0.04288138,
0.009369041,
-0.0006539965,
0.022383137,
-0.052887958,
-0.0037108886,
0.044405926,
0.02113578,
-0.032098666,
-0.033235148,
0.0077266865,
0.019846844,
-0.0062333224,
0.0037801862,
-0.012750765,
-0.015231621,
0.001276809,
-0.030684995,
-0.02641626,
-0.013575408,
-0.016201789,
-0.01794809,
0.05078131,
0.022743486,
-0.045653284,
-0.034122158,
0.016201789,
0.060205787,
-0.058542646,
0.004868159,
-0.052056387,
0.017102657,
0.019167727,
-0.0131665515,
-0.00067478576,
-0.050032895,
-0.044211894,
-0.033567775,
0.036450557,
-0.00046645972,
-0.0028342735,
0.025404515,
-0.048009403,
0.011877615,
0.008184051,
0.00064836605,
-0.01877966,
-0.028633785,
0.0028464005,
-0.0023630494,
0.0010524578,
-0.00939676,
-0.020040877,
0.029465357,
-0.02411558,
0.040941045,
-0.0363674,
-0.007879142,
-0.020886308,
0.020595258,
-0.00087704824,
0.015578109,
0.024475927,
-0.03545267,
-0.035314076,
0.030768152,
-0.03758704,
-0.052943397,
0.015134605,
0.015190043,
0.00794844,
0.032930236,
-0.009521496,
-0.026804326,
0.032763924,
0.011912264,
-0.0246561,
-0.017892651,
-0.029326761,
0.0010879729,
0.012563662,
-0.021579284,
0.029770266,
-0.043629795,
0.03755932,
-0.017851071,
-0.040996484,
0.0018675714,
-0.07356638,
0.0041162795,
0.0032344672,
-0.0040677716,
0.00820484,
0.025168903,
-0.0047087744,
-0.010845081,
-0.0074148476,
-0.00011997154,
-0.01674231,
-0.028412033,
0.027150815,
0.042493314,
0.023741372,
-0.009583863,
-0.060871046,
0.00035861527,
0.008475102,
-0.0475659,
0.0053878915,
-0.011059904,
-0.050614994,
0.0029694038,
0.00034735442,
-0.032154106,
0.0498943,
-0.026859764,
0.013124973,
0.02020719,
0.017463004,
-0.01555039,
-0.019029131,
-0.00019944727,
0.062035248,
0.0045251357,
-0.048536066,
-0.035951614,
0.0085097505,
0.0038009754,
-0.0025951965,
-0.0075603724,
-0.02498873,
-0.052167263,
-0.045348376,
0.06757906,
-0.03678319,
-0.0031582399,
-0.06890957,
-0.0932469,
-0.0057170554,
-0.003911852,
0.018058965,
-0.04285366,
0.04462768,
-0.0510585,
0.04612451,
-0.04601363,
0.0057967473,
-0.030740432,
0.0065659513,
-0.01609091,
0.053054273,
-0.0008805131,
0.017227393,
0.052666206,
0.030213771,
0.0100689465,
-0.0022625679,
-0.0699629,
-0.0062437174,
0.023602776,
0.004930527,
0.001182391,
-0.008759222,
-0.0105609605,
0.02171788,
-0.034205314,
0.03936106,
0.0131596215,
-0.011842966,
-0.0105748195,
-0.05252761,
0.010838151,
-0.03692178,
0.050088335,
-0.012508224,
0.024739258,
-0.0009900901,
0.035397235,
-0.009507637,
0.01764318,
-0.043518916,
-0.069741145,
0.040580697,
-0.027178533,
0.038307734,
0.008682994,
-0.04263191,
0.05552127,
-0.035147764,
0.054135315,
0.06281138,
0.031876914,
0.04019263,
-0.056519154,
0.021038763,
0.016465118,
0.00037680593,
0.008038526,
-0.005128025,
-0.017809493,
-0.028010106,
-0.04022035,
-0.061203673,
-0.0047746073,
0.0100620175,
-0.0046602665,
-0.004497417,
0.04462768,
-0.007366339,
-0.045985915,
-0.056436,
0.0258203,
0.0026644943,
0.033346023,
0.009708599,
0.038058262,
0.0047434233,
0.033955842,
-0.015065307,
0.0018987553,
-0.004279129,
0.041828055,
-0.04110736,
-0.030962186,
0.050393242,
-0.009902633,
-0.020609118,
-0.09019781,
-0.012778484,
0.0066075297,
-0.010339208,
-0.014580224,
-0.005897229,
0.0049132025,
-0.01171823,
-0.0025570828,
0.022119807,
-0.045126624,
-0.0045667146,
0.017712476,
0.007394058,
-0.06486259,
-0.0021551566,
0.043990143,
-0.02023491,
-0.01794809,
-0.052666206,
0.0044523734,
-0.041883495,
-0.021967351,
0.022341559,
0.011406392,
0.031876914,
0.014871273,
0.032459013,
0.058210015,
-0.006597135,
0.009646231,
0.0009840265,
-0.016603714,
-0.061259113,
0.004071236,
0.029409919,
-0.033983562,
0.017837211,
0.011946913,
-0.018266859,
0.0311285,
0.040109474,
-0.02259103,
-0.08881185,
-0.0043553566,
-0.04734415,
-0.038584925,
0.0056824065,
-0.014580224,
-0.028037826,
0.020969465,
0.04753818,
-0.05277708,
0.034787416,
0.021898054,
-0.0060046404,
-0.005076052,
-0.059706844,
0.016853185,
-0.035147764,
-0.04520978,
-0.038252298,
-0.022812784,
0.020900168,
0.003036969,
0.015384076,
0.029576233,
-0.04667889,
0.019417198,
-0.0040850956,
-0.039471935,
-0.017518444,
0.007969229,
0.0023907686,
0.015633548,
-0.028328875,
0.057600196,
0.025875738,
-0.015772143,
0.003272581,
0.014233735,
-0.014081281,
-0.016257226,
0.02083087,
0.06586047,
0.0069955965,
-0.019056851,
0.02085859,
0.03755932,
-0.07495233,
0.015633548,
-0.027829932,
-0.01965281,
-0.0023873036,
0.057711072,
0.032375857,
0.053747248,
-0.01969439,
0.004279129,
-0.0044800923,
0.00051323563,
-0.021149639,
0.002172481,
0.00969474,
0.008128613,
-0.009791756,
-0.02228612,
0.0006176152,
0.046512574,
-0.012695327,
-0.006524373,
0.0076365997,
-0.015772143,
-0.023672074,
0.023311725,
0.011170779,
0.047177833,
0.033373743,
0.0024340795,
-0.021898054,
-0.027691336,
-0.04673433,
0.0038252296,
-0.02554311,
-0.013741721,
0.0036346612,
-0.016492838,
0.016575996,
-0.0077890544,
0.011267796,
0.015342497,
0.035702143,
0.015508812,
-0.014774256,
-0.012293401,
0.0346211,
-0.008184051,
-0.007574232,
-0.045071185,
-0.0073801987,
-0.008572118,
-0.029215885,
-0.047704495,
0.0070856838,
0.056491435,
-0.0037836512,
-0.037365288,
-0.034011282,
-0.011004465,
0.032736205,
0.051779196,
-0.046346262,
0.015079167,
-0.007130727,
0.037531603,
-0.001092304,
-0.019181587,
-0.041245956,
0.02580644,
-0.0008311386,
0.0008454312,
0.025404515,
0.024919432,
0.018585626,
-0.021967351,
0.0037767214,
0.045570128,
0.0035930825,
-0.008551328,
0.01524548,
-0.0033003,
0.07184779,
0.0018970228,
0.03226498,
0.0076989676,
0.04046982,
0.024018561,
-0.046540294,
-0.038307734,
0.037337568,
0.008537469,
-0.019777546,
0.029215885,
-0.045098905,
-0.000047317295,
0.01291015,
0.04046982,
0.012515154,
-0.025293639,
0.030906746,
0.0007938911,
-0.0434912,
0.025598548,
-0.014303032,
-0.048785537,
0.021925773,
-0.024143297,
0.06852151,
-0.010651047,
-0.0061501656,
-0.0012594846,
0.007879142,
0.032542173,
-0.037697915,
0.045320656,
0.0152177615,
0.034427065,
-0.027483443,
0.02142683,
-0.022341559,
-0.0016206985,
-0.05635284,
-0.023949264,
0.009805616,
0.006818888,
-0.025307497,
-0.07046184,
0.035563547,
0.0024583337,
0.00036208017,
-0.045320656,
0.014344611,
-0.03994316,
0.002553618,
0.044877153,
-0.005668547,
-0.033595495,
0.030629557,
0.005841791,
-0.0016977922,
0.017047219,
0.0781123,
0.016825467,
0.0673573,
0.04670661,
0.0013331133,
0.0006609262,
0.0010056819,
-0.02907729,
-0.008385015,
0.0077405465,
0.009611582,
-0.024226455,
-0.03256989,
-0.033207428,
0.0066109947,
0.0025934642,
0.0014266651,
-0.031294815,
0.0427705,
-0.015273199,
-0.016187929,
-0.0023197385,
0.047953967,
0.032348137,
-0.007823704,
-0.018959833,
0.0007523125,
-0.019084569,
-0.005342848,
-0.0427705,
0.033346023,
-0.042382438,
-0.018017387,
-0.017754056,
-0.035674423,
-0.028800098,
0.03930562,
-0.0024895177,
-0.02874466,
0.025265919,
0.008343436,
0.01318734,
0.034260754,
-0.012529013,
-0.022965237,
0.06746818,
0.018336155,
-0.015009869,
0.050975345,
0.040941045,
0.007692038,
-0.020276489,
0.011337094,
0.009646231,
-0.008398874,
-0.004459303,
0.015037588,
0.004757283,
-0.041329112,
-0.023256287,
-0.057101253,
-0.00997886,
-0.020706134,
0.02346418,
-0.033955842,
0.0042098314,
-0.073067434,
-0.011863756,
-0.02053982,
0.04404558,
-0.05249989,
0.0059734564,
-0.008911677,
-0.04196665,
0.226631,
0.06419733,
0.04842519,
-0.00068777904,
0.0592079,
0.07245761,
0.027677476,
-0.041883495,
0.026194507,
-0.027705196,
0.019181587,
-0.08215928,
0.0317106,
0.009140358,
-0.026042053,
0.043075413,
-0.046346262,
0.0016475514,
0.038252298,
-0.047427304,
-0.06048298,
0.053885844,
0.008710713,
0.054717414,
0.017171955,
0.052139543,
0.03312427,
-0.059429657,
0.012251822,
-0.016312664,
0.012009281,
-0.0030317716,
0.015661266,
-0.007248533,
0.008149402,
0.06375383,
-0.0046464065,
-0.025764862,
0.007830633,
-0.028827818,
0.007754406,
-0.022729626,
0.0059180185,
-0.058819838,
-0.01969439,
0.008599837,
-0.04371295,
0.045348376,
0.024406629,
-0.061924372,
0.045514688,
-0.029271323,
-0.01203007,
-0.011565776,
-0.044849433,
0.0039153164,
-0.030934466,
-0.040636137,
-0.01290322,
0.03758704,
0.039721407,
0.009209656,
-0.005256226,
0.03908387,
-0.015508812,
0.015065307,
0.013984264,
0.045681003,
-0.018017387,
-0.015009869,
0.0061501656,
-0.016867045,
-0.021454548,
-0.008149402,
0.03877896,
0.0018017386,
0.023976984,
0.030657275,
-0.04254875,
-0.027469585,
0.025695564,
-0.018017387,
0.019943861,
-0.031461127,
0.02496101,
0.046179947,
-0.01379023,
-0.00013296485,
-0.02788537,
0.02320085,
0.010900519,
0.025986616,
0.007816774,
-0.018627206,
-0.004459303
] | train_dataloader, eval_dataloader, model, optimizer = accelerator.prepare(
train_dataloader, eval_dataloader, model, optimizer
)
Backward
The last addition is to replace the typical loss.backward() in your training loop with 🤗 Accelerate's [~accelerate.Accelerator.backward]method:
for epoch in range(num_epochs):
for batch in train_dataloader:
outputs = model(**batch)
loss = outputs.loss
accelerator.backward(loss) |
[
-0.020260634,
0.019911312,
-0.056226753,
-0.009096326,
-0.019478153,
0.00089426246,
0.011227186,
-0.0015658326,
0.027903784,
0.052509975,
-0.013176398,
0.002915086,
0.038704798,
-0.0032818734,
0.009326878,
0.036944218,
-0.026730064,
-0.05818295,
-0.060698066,
0.019184723,
0.026744036,
0.019282535,
-0.08053951,
-0.034540888,
-0.021741755,
0.0064973757,
0.0039193844,
-0.029398879,
0.07645944,
0.059188996,
-0.005260778,
0.012331041,
-0.015551783,
0.006734914,
-0.022230806,
-0.041331694,
-0.027261032,
-0.048457846,
-0.059077214,
-0.026785955,
0.008411656,
-0.010374842,
-0.010703204,
-0.0045202174,
-0.06829929,
0.0050372127,
0.02705144,
-0.016348235,
0.0076291766,
-0.02519305,
0.020917358,
0.043399673,
0.013190371,
0.022314643,
-0.044685178,
-0.012142408,
-0.020568036,
0.0076152035,
-0.010158262,
0.00051568553,
0.008691113,
0.006885122,
-0.001293362,
-0.06550472,
0.00079863577,
0.0065742265,
-0.01573343,
-0.017969087,
-0.029147366,
-0.02367001,
-0.03621763,
0.012792145,
0.0021710317,
-0.03641325,
0.0017108009,
0.034960072,
-0.020791601,
0.0028260092,
0.014322172,
0.028253105,
0.05885365,
0.04038154,
-0.012701321,
0.0026827874,
-0.07372076,
-0.0014514299,
0.042170063,
-0.01979953,
-0.038313556,
-0.025165105,
-0.0076152035,
0.031243294,
-0.009718118,
0.020945303,
-0.0030740271,
0.014350118,
0.0035560906,
0.06377209,
0.047563583,
0.000589043,
0.025863746,
0.057903495,
-0.005749828,
0.025332779,
-0.028504616,
0.023111096,
-0.0018339367,
-0.024145085,
-0.03426143,
-0.029734226,
0.01788525,
-0.0029080997,
-0.014531765,
-0.002750905,
-0.012638443,
-0.015230407,
-0.030432869,
0.017242499,
-0.044182155,
0.024787838,
0.008523439,
-0.005438932,
0.027330896,
-0.037056,
-0.006305249,
-0.009515512,
-0.020456254,
0.047507692,
-0.018290462,
-0.020512145,
-0.008048362,
-0.047815096,
0.00064537104,
0.027582407,
-0.027135277,
-0.0051804343,
-0.004387475,
-0.0032713937,
0.05494125,
-0.053348344,
0.027456652,
0.0027439187,
0.0029762173,
0.08299874,
0.020232689,
0.014755331,
-0.017535929,
-0.0393196,
-0.01426628,
0.035323367,
-0.037056,
-0.001938733,
-0.009096326,
0.044936687,
-0.033506896,
0.035323367,
-0.026213069,
0.038928363,
0.038900416,
0.025053322,
0.024452489,
0.0022723349,
-0.04448956,
0.018066896,
0.02970628,
0.021462299,
-0.054997142,
-0.0070772488,
0.012289123,
-0.022370534,
0.0048520723,
0.0024382626,
-0.0032102624,
0.020749684,
0.031830154,
0.02509524,
0.043343782,
0.0268139,
0.013965865,
0.014238335,
-0.029398879,
-0.022677938,
0.056673884,
0.008202064,
0.012170353,
0.004611041,
-0.018178679,
0.03498802,
-0.026827874,
0.022272725,
0.011408833,
0.03792232,
-0.06259837,
0.034904182,
-0.031886045,
-0.027261032,
-0.013812163,
0.015719457,
0.0029482716,
-0.021853538,
0.0035910227,
0.023586173,
-0.04091251,
-0.01485314,
-0.0072309505,
-0.009410715,
-0.011478697,
0.05591935,
-0.0017457331,
-0.027750082,
0.053292453,
0.013826136,
-0.010856905,
-0.011136362,
0.0056520184,
0.020372417,
-0.01379819,
0.009103312,
0.012694335,
0.007713014,
0.06125698,
-0.0002674491,
0.043287892,
0.03406581,
0.012338027,
-0.0127642,
-0.02220286,
0.0503861,
0.043204054,
0.029287096,
0.007209991,
0.041890606,
-0.030907946,
0.06947301,
0.008760978,
-0.012428851,
0.010095385,
0.05351602,
-0.031774264,
0.03873274,
0.04387475,
0.0183743,
0.0256821,
0.017158661,
0.0032818734,
-0.008565358,
0.04988308,
0.011506643,
-0.05544427,
-0.0014916018,
-0.049491838,
0.055025086,
-0.022412453,
-0.013714354,
-0.029175313,
-0.012065557,
0.027875837,
0.048988815,
-0.022412453,
-0.02886791,
-0.006692996,
0.021448325,
-0.039040145,
-0.029790118,
0.029846009,
0.059747912,
0.009969629,
0.020414336,
0.012875982,
-0.010193194,
-0.03157864,
-0.013868054,
-0.05091707,
-0.02529086,
-0.021741755,
-0.003926371,
0.009732091,
-0.013001738,
0.014643548,
-0.035071857,
0.040213864,
0.045523547,
0.03210961,
0.03783848,
0.0032574208,
0.004450353,
-0.034149647,
-0.007161086,
-0.05223052,
0.033534843,
-0.04166704,
-0.037083946,
0.042449523,
-0.017703602,
0.015495892,
0.0069654663,
0.03068438,
-0.014964923,
-0.035379257,
0.009082353,
-0.016501937,
0.025123186,
0.03680449,
-0.0032486878,
-0.018779512,
0.00026897737,
0.026534444,
-0.05225846,
0.00877495,
0.045914788,
-0.00081129867,
0.029315041,
0.01661372,
-0.009683185,
-0.051783387,
0.010116344,
0.029231204,
-0.033786353,
-0.017438117,
-0.049827185,
-0.0054633846,
0.0025710044,
-0.024494408,
-0.045495603,
-0.024228923,
0.058630083,
-0.027093358,
-0.082104474,
0.01632029,
-0.020554064,
-0.048206337,
-0.030349033,
0.004565629,
-0.0063471673,
-0.023404526,
-0.0021046607,
-0.029566552,
0.0049184435,
-0.03856507,
0.001486362,
0.013679421,
-0.01940829,
0.05239819,
0.017661683,
0.009152218,
0.008153158,
0.053180672,
-0.026785955,
0.0064973757,
-0.011331982,
0.015817268,
-0.0070353304,
0.008006443,
0.011946787,
0.026185123,
0.032612633,
-0.03792232,
0.0033168055,
0.018639782,
-0.013902986,
-0.011115403,
-0.0021745248,
0.023851657,
0.00025784277,
-0.018765539,
-0.03160659,
0.01901705,
0.00026002602,
0.03568666,
-0.04929622,
0.01778744,
-0.019058969,
-0.026967602,
-0.02494154,
-0.021616,
-0.034429103,
0.03146686,
0.063939765,
0.056142915,
-0.04465723,
-0.015188489,
0.0076920544,
0.016487963,
0.05415877,
0.026143204,
0.0020173304,
0.008369737,
0.029873956,
0.018737594,
0.0003215939,
0.012757213,
0.02769419,
0.031299185,
-0.009515512,
-0.021769702,
-0.06651077,
0.028071458,
0.04979924,
0.025067294,
-0.025346752,
0.058518298,
-0.020987222,
-0.0025011403,
0.0009955657,
0.029762173,
-0.008048362,
-0.060418606,
0.032389067,
0.02853256,
0.0033971493,
-0.056869503,
-0.047870986,
-0.024214951,
0.017284416,
-0.031774264,
0.012352,
-0.017270444,
-0.035015963,
-0.041639097,
0.024927566,
-0.009222082,
-0.03146686,
-0.059188996,
0.025542371,
0.053208616,
-0.026338823,
-0.0461663,
-0.04636192,
0.03023725,
0.021280652,
-0.010025521,
-0.018737594,
-0.034708563,
0.008747005,
-0.04675316,
0.05376753,
-0.014203403,
-0.0069200546,
-0.0043420633,
-0.050945014,
-0.029398879,
-0.0031072127,
-0.013337086,
-0.025542371,
-0.01612467,
0.020176796,
0.010619367,
-0.008956597,
0.00093792763,
-0.03289209,
0.04988308,
-0.012554606,
-0.0146994395,
-0.017507982,
0.01022114,
-0.016893176,
0.010703204,
0.010752109,
0.0204842,
0.0063087423,
-0.01891924,
-0.002076715,
0.022440398,
-0.05818295,
-0.033115655,
0.02509524,
-0.031690426,
-0.023977412,
0.02044228,
0.004118498,
-0.03141097,
0.01583124,
0.011059511,
0.0037412308,
0.023991385,
-0.024745919,
-0.0062668235,
0.016893176,
-0.0063436744,
0.036972165,
-0.052174624,
0.024969485,
-0.0058930498,
0.0026653213,
0.012121448,
-0.0806513,
-0.025724018,
-0.010374842,
-0.019841447,
0.063939765,
0.006857177,
0.01608275,
-0.017997032,
0.0072309505,
-0.0029342987,
-0.011918842,
-0.02298534,
0.034764454,
0.041918553,
0.04747975,
-0.010640326,
-0.03400992,
-0.00125581,
0.046641376,
-0.03275236,
0.013658462,
-0.022901503,
0.0038145883,
0.0004960362,
-0.022677938,
-0.0075104074,
-0.008551384,
0.0017221539,
0.01293886,
0.021490244,
-0.020945303,
-0.010395801,
-0.0038984255,
-0.020861465,
0.052062843,
-0.0020697284,
-0.046976723,
-0.03504391,
0.0068886154,
0.0018531494,
-0.00945962,
0.048485793,
-0.033702515,
-0.032668523,
-0.03985057,
0.058350626,
-0.038201775,
-0.0008152285,
-0.026925683,
-0.04876525,
-0.011527602,
0.036552977,
0.029035585,
-0.043064326,
0.031969883,
-0.069081776,
0.026939657,
-0.06947301,
-0.04284076,
-0.0029377919,
0.02548648,
-0.0513642,
0.029510662,
-0.018472109,
-0.014182444,
-0.0071051945,
0.051308308,
0.022622045,
0.028784072,
-0.05896543,
-0.04284076,
-0.01788525,
0.0051524886,
-0.030153412,
0.009711131,
-0.0041674026,
0.03088,
0.021490244,
0.0057742805,
-0.0059175026,
0.006521828,
-0.0073357467,
-0.03275236,
0.042868707,
-0.047172345,
0.00010747087,
-0.026213069,
0.02308315,
0.028057484,
0.0099277105,
-0.06399566,
0.01970172,
-0.033786353,
-0.06829929,
-0.0004715837,
-0.0076920544,
-0.0009003756,
-0.0046704253,
0.00016974831,
0.018695675,
-0.04108018,
0.021783674,
0.06600775,
0.0127642,
-0.01622248,
-0.038593013,
0.05046994,
0.040353592,
0.016110698,
-0.0016715023,
-0.00916619,
-0.03867685,
-0.0136095565,
-0.0062493575,
-0.054298498,
-0.01411258,
0.002702,
-0.00453419,
-0.008719059,
0.057400472,
-0.04407037,
-0.028350914,
-0.015901104,
-0.0029220725,
-0.008062335,
-0.007971511,
0.000993819,
0.054913305,
0.02253821,
0.04499258,
-0.017563874,
-0.009983602,
0.031886045,
0.027372815,
-0.008886733,
-0.005337629,
0.041694988,
0.05225846,
-0.03822972,
-0.06835519,
0.014909032,
-0.004921937,
-0.00879591,
-0.040940452,
-0.01053553,
-0.002281068,
-0.014713412,
0.018318407,
0.04102429,
-0.035323367,
0.009389756,
-0.0028277556,
-0.0029814572,
-0.04686494,
0.0005781267,
0.044182155,
-0.012722281,
-0.031159457,
-0.052090786,
-0.026408687,
-0.043455567,
-0.03842534,
0.021238733,
0.0014715159,
0.039934408,
0.044293936,
0.022566155,
0.038928363,
-0.016334262,
0.024885647,
0.017521955,
-0.050609667,
-0.06136876,
-0.03574255,
0.060809847,
-0.009990589,
0.0024330227,
0.00033469344,
-0.00058380316,
0.020023094,
0.023502335,
-0.0034058825,
-0.08216036,
-0.008984543,
-0.05181133,
-0.027847892,
0.023837684,
-0.001149267,
0.019771583,
0.0011815792,
0.017284416,
-0.024228923,
-0.044349827,
-0.02970628,
-0.027624326,
-0.032808255,
-0.039487276,
-0.008691113,
-0.064051546,
-0.026925683,
-0.04448956,
0.005040706,
0.0012112715,
0.02249629,
0.002298534,
0.012673376,
-0.017969087,
0.017899223,
-0.02112695,
0.00080693216,
-0.010304977,
-0.007685068,
-0.024620162,
0.020637901,
-0.036133792,
0.055947296,
0.044573393,
-0.03406581,
-0.005914009,
-0.013225303,
0.034624726,
-0.026590336,
0.0054459185,
0.03275236,
0.0009265747,
-0.02886791,
-0.009061393,
0.014350118,
-0.038006153,
-0.00064973754,
-0.02382371,
-0.018541973,
-0.018863348,
0.030768218,
0.0027736109,
0.019268561,
-0.013197358,
0.022021214,
0.008733031,
0.04147142,
-0.020414336,
0.030544652,
0.01573343,
0.026254987,
-0.029342987,
0.00077854976,
0.026031421,
0.01936637,
0.016557828,
0.017675657,
-0.013015711,
-0.013511747,
-0.012400906,
-0.014964923,
0.004747276,
0.03068438,
0.0049009775,
0.014049701,
-0.0015553529,
-0.0513642,
-0.07103797,
-0.00713314,
-0.04091251,
-0.0073008146,
0.018905267,
-0.012044597,
-0.022272725,
0.04440572,
-0.04337173,
0.016110698,
0.004876525,
0.0027002534,
0.024731945,
0.009969629,
0.0006008326,
0.0023631584,
-0.01573343,
-0.048597574,
0.001961439,
-0.0061969594,
-0.0151745165,
-0.016292345,
-0.0043385704,
0.06388387,
-0.0064799096,
-0.0042128144,
-0.03543515,
-0.05519276,
-0.0014802489,
0.02142038,
-0.058406517,
0.012575566,
-0.052090786,
-0.0004807534,
-0.024480434,
0.036049955,
-0.0068956017,
0.058518298,
0.028127348,
0.010318951,
0.06287783,
0.008628235,
-0.0069654663,
-0.031327132,
0.0075872582,
0.02347439,
0.032668523,
0.008719059,
0.044936687,
-0.025751963,
0.036944218,
-0.017983058,
0.06170411,
0.030153412,
0.077297814,
0.009026461,
-0.03725162,
-0.023502335,
0.007713014,
0.01014429,
0.0030949865,
0.03264058,
-0.035602823,
-0.003908905,
0.005631059,
0.03275236,
0.015719457,
-0.0045411764,
0.023977412,
-0.012282136,
-0.043259945,
0.019198697,
-0.01592905,
-0.014364091,
0.014294227,
0.014161484,
0.06013915,
-0.0019492127,
0.003367457,
-0.002045276,
0.010891837,
0.08724648,
-0.026185123,
0.013302154,
0.01872362,
0.027736109,
-0.023963438,
0.022831637,
-0.01720058,
-0.0010828959,
0.01921267,
-0.00772,
0.0010575701,
0.018164705,
0.036441196,
-0.042952545,
0.015188489,
-0.015509864,
-0.032556742,
-0.06539294,
0.036301468,
-0.040800724,
0.034932125,
0.020078987,
-0.017689629,
-0.01940829,
0.0422539,
-0.01788525,
0.015481919,
0.07444735,
0.03973879,
0.050553773,
0.08266339,
0.017759493,
0.028085431,
0.014475874,
-0.0046913847,
-0.048010714,
-0.020023094,
0.010724163,
0.008998516,
-0.0023491855,
-0.05519276,
-0.022817666,
0.017480036,
0.02519305,
-0.0148112215,
-0.007196018,
0.018108815,
0.004897484,
-0.004383982,
-0.024187004,
0.105802424,
0.05885365,
0.010409774,
-0.0017396199,
0.0020033575,
-0.041191965,
-0.00772,
-0.020637901,
0.039962355,
0.023809738,
-0.04395859,
0.014196416,
-0.05102885,
-0.021308597,
0.012575566,
-0.0565621,
-0.010780054,
0.026618281,
0.038928363,
0.022188887,
0.027065411,
-0.0045027514,
-0.00079688913,
0.02793173,
0.06734914,
0.015090679,
0.04401448,
0.069584794,
-0.014042716,
-0.032137558,
0.012198299,
-0.016599746,
-0.019282535,
0.00021177602,
0.023516309,
-0.016990986,
-0.023222879,
-0.05818295,
0.003695819,
0.0042128144,
-0.028462697,
-0.010605394,
-0.0058371583,
-0.017563874,
-0.05396315,
-0.047926877,
-0.05544427,
-0.019226642,
-0.018709647,
-0.036301468,
-0.007468489,
-0.019352399,
0.23049615,
0.04298049,
0.014825195,
0.0021710317,
0.07098208,
0.05762404,
0.031913992,
-0.02867229,
0.02083352,
-0.068411075,
-0.0037202716,
-0.035854336,
0.021797648,
0.0015483665,
-0.02577991,
0.052006952,
-0.009801955,
0.0039647967,
0.024983458,
-0.03764286,
-0.048318118,
-0.007454516,
0.024704,
0.0669579,
-0.033059765,
0.0053411224,
-0.0007423077,
-0.061927676,
0.01911486,
-0.02347439,
0.01778744,
-0.0034093757,
0.044042427,
-0.03303182,
-0.002618163,
0.03744724,
-0.014021756,
-0.009836887,
-0.008998516,
-0.010842932,
0.02136449,
-0.023334661,
0.019156778,
-0.037670806,
-0.004859059,
0.07919812,
-0.011730208,
0.0360779,
0.016781393,
-0.04694878,
0.06354853,
-0.0701996,
0.026646227,
0.027135277,
-0.050833233,
0.030349033,
-0.00053184165,
-0.020023094,
0.0122961085,
0.0139379185,
0.020372417,
0.0037726697,
-0.032500852,
0.014378063,
0.009438661,
-0.0328362,
0.020232689,
0.049966916,
-0.012414878,
0.005320163,
-0.027540488,
-0.021434354,
-0.03121535,
-0.0663431,
0.023991385,
0.011981719,
0.044573393,
0.04387475,
-0.016781393,
-0.04230979,
0.026436634,
0.013399964,
0.015188489,
-0.013085575,
0.03342306,
0.011408833,
-0.023683982,
0.025430588,
-0.029678335,
0.01866773,
0.024508381,
0.01979953,
0.0025448054,
0.010395801,
0.02431276
] | pip install accelerate
Then import and create an [~accelerate.Accelerator] object. The [~accelerate.Accelerator] will automatically detect your type of distributed setup and initialize all the necessary components for training. You don't need to explicitly place your model on a device.
from accelerate import Accelerator
accelerator = Accelerator() |
[
0.018995432,
0.01598598,
-0.05209939,
0.015240521,
-0.020886693,
0.0008830771,
-0.022184346,
-0.026311986,
0.023813315,
0.056654982,
-0.0070577143,
-0.015709884,
0.048454918,
-0.04594244,
0.0057186466,
0.014826377,
-0.011154294,
-0.043954547,
-0.05969204,
0.006716045,
0.0274992,
0.00936657,
-0.09304449,
-0.020527767,
-0.029542314,
0.017380267,
0.017173195,
-0.017214611,
0.067919716,
0.050249543,
-0.021811616,
-0.016248273,
-0.0076409676,
-0.014246574,
-0.037990864,
-0.018167144,
0.017338853,
-0.013349261,
-0.064937875,
-0.058035463,
-0.0040724217,
-0.012424338,
-0.03600297,
-0.04069661,
-0.076257825,
0.0020275828,
0.03222045,
-0.013563235,
0.012776361,
-0.026160134,
-0.010153445,
0.020596791,
0.0068644467,
-0.0121206315,
-0.016344907,
-0.002912817,
-0.010892003,
0.0008300148,
-0.061735153,
0.0034166928,
0.020859083,
0.054749917,
-0.023330146,
-0.07311033,
0.006481363,
0.038625885,
-0.027402567,
-0.018553678,
-0.0050974297,
-0.043540403,
-0.06477222,
0.010381225,
-0.0035961557,
-0.01644154,
-0.03158543,
0.0025935806,
0.033297226,
0.010553785,
0.009849739,
0.05060847,
0.044009767,
0.016331103,
-0.0067125936,
0.015364764,
-0.04442391,
-0.044810444,
0.044948492,
-0.0023347402,
-0.05370075,
-0.018249972,
-0.0329383,
0.033407666,
-0.033573322,
0.02265371,
0.04287777,
0.0249177,
-0.019340552,
0.0443963,
0.022985024,
-0.0010672852,
0.026767546,
0.07438037,
-0.02110757,
-0.0028058297,
-0.03141977,
-0.0045003714,
-0.0037790695,
-0.020417329,
-0.015654666,
-0.007751406,
-0.012279388,
0.014633109,
0.0072130184,
-0.0075857486,
0.016303493,
0.023868533,
-0.0018705531,
0.047709458,
-0.026353402,
0.016455345,
0.0031164382,
-0.0041207387,
0.009028352,
-0.018539874,
0.034291174,
-0.038487837,
-0.02460019,
0.05113305,
-0.03128172,
-0.010526176,
0.0025469894,
-0.012914409,
-0.027388763,
0.03539556,
0.002257088,
0.0120378025,
0.0240618,
0.01457789,
0.043844108,
-0.024158435,
0.020362109,
-0.009035255,
0.0070093973,
0.0936519,
0.034788147,
0.0012338058,
-0.0140947215,
-0.030425822,
-0.046356585,
0.012942019,
-0.040945094,
0.014909206,
-0.0044727614,
-0.0075857486,
-0.026311986,
-0.00942179,
-0.027830517,
0.037024528,
0.0056668785,
0.027485397,
0.019395772,
0.0005487416,
-0.0403929,
0.013093872,
-0.016565785,
0.023758095,
-0.024821065,
-0.04514176,
0.04290538,
-0.015530422,
0.02302644,
0.0049283206,
0.03470532,
0.00014613695,
0.063336514,
0.0103122005,
0.04889667,
0.006636667,
0.01056759,
0.019092066,
-0.0240618,
-0.027416373,
0.005711744,
-0.035423167,
0.032993518,
0.00432436,
-0.025456088,
-0.0030836517,
-0.034760535,
-0.007523627,
0.020030793,
0.050332375,
-0.038874373,
0.007171604,
0.011906657,
-0.010415737,
-0.004293299,
-0.0063226074,
-0.0019085164,
-0.013721991,
-0.011451098,
0.03371137,
-0.0059015607,
0.010105128,
-0.026519058,
-0.02257088,
0.019340552,
0.020638205,
-0.040724218,
-0.019520015,
0.036610384,
-0.0012053334,
-0.011499415,
0.000025412193,
0.024641603,
0.0139704775,
-0.054887965,
0.0073786764,
0.025276626,
0.00058627344,
0.023647657,
0.0044002864,
0.03578209,
-0.017573535,
0.043264307,
-0.039619833,
-0.021038545,
0.056986295,
0.003199267,
0.019547625,
0.017739194,
-0.0057186466,
0.0022415577,
0.060189016,
-0.0016600296,
0.021756396,
0.010933418,
0.048869062,
0.017435487,
0.014481256,
0.01641393,
0.0120792175,
0.047102045,
0.042574063,
-0.007240628,
0.019409576,
0.01165817,
-0.00045512765,
-0.03964744,
-0.00601545,
-0.06206647,
0.051022615,
0.013128384,
-0.03531273,
-0.025953062,
-0.02156313,
0.057041515,
0.02838271,
-0.01761495,
-0.02259849,
-0.0015789262,
0.033297226,
-0.012231071,
-0.02526282,
0.007371774,
0.045031324,
0.021922054,
0.018429434,
-0.0023727035,
-0.044534348,
-0.039564613,
-0.048758622,
-0.06560051,
-0.021010935,
-0.02107996,
-0.019354358,
0.0019033395,
-0.060906865,
0.03128172,
0.009856641,
0.037300624,
-0.0070749703,
0.000045755427,
0.034732927,
0.01457789,
-0.010788467,
-0.034263562,
0.020127427,
-0.028714025,
0.042601675,
-0.02500053,
-0.046660293,
0.012017095,
-0.027029837,
0.03989593,
0.018981628,
0.026988422,
-0.0038998616,
-0.057869807,
0.013024848,
-0.0055460865,
0.014660719,
0.021121375,
0.01039503,
-0.033380054,
0.023813315,
0.0024814163,
-0.04141446,
0.017035147,
0.016137835,
-0.003359748,
0.040310074,
0.0053769774,
0.029211,
-0.049724963,
0.02142508,
0.027347349,
-0.007565041,
-0.03771477,
-0.06466178,
-0.028051395,
0.022529466,
-0.025110967,
-0.05450143,
0.012362217,
0.06112774,
-0.038018472,
-0.066925764,
0.025966866,
-0.024779651,
-0.06317086,
-0.037300624,
0.0051768073,
0.01635871,
0.030922797,
-0.0009525326,
-0.05991292,
0.034953803,
0.0030905541,
0.02294361,
0.03164065,
-0.0066228625,
0.056986295,
0.0383774,
0.007765211,
-0.02302644,
0.055219278,
-0.03067431,
0.023937557,
-0.011616756,
0.026339596,
-0.0013244,
0.0063226074,
0.018249972,
0.025994476,
0.014729743,
-0.023827119,
0.000095824864,
0.012810873,
0.037052136,
0.0074200905,
0.01420516,
-0.010526176,
0.020058403,
-0.03890198,
-0.022115322,
0.010698736,
0.017256025,
0.07344164,
-0.043153867,
0.030425822,
-0.01354943,
-0.029238608,
-0.008565891,
-0.0037134965,
-0.04917277,
0.058422,
0.037383452,
0.05886375,
-0.03313157,
-0.03534034,
0.033186786,
0.020293085,
0.044009767,
0.044838056,
0.007578846,
-0.0019309492,
0.017311243,
-0.0139773805,
-0.005960231,
0.009028352,
0.03539556,
0.003937825,
-0.024006581,
-0.0051457467,
-0.043429963,
0.035920143,
0.011361367,
0.015861738,
-0.006395083,
0.02563555,
-0.07172985,
0.0061811083,
0.0028645,
0.040779438,
0.008628013,
-0.057925023,
0.048648186,
0.03843262,
-0.02366146,
-0.015171497,
-0.007917064,
-0.019547625,
0.013860039,
-0.011009344,
-0.0139773805,
-0.04075183,
-0.020569181,
-0.020886693,
0.014163746,
-0.009552935,
-0.018967822,
-0.036610384,
0.041359242,
0.043264307,
-0.03128172,
-0.014370818,
-0.05825634,
0.003056042,
0.028962512,
-0.0045348834,
0.011665073,
-0.0024365508,
-0.0063709244,
-0.059968136,
0.03600297,
0.012942019,
-0.023758095,
-0.015116278,
-0.07631304,
-0.008828183,
0.0034701866,
-0.0028023785,
-0.026339596,
-0.011561536,
-0.015143887,
0.012886799,
0.010574492,
-0.0023537218,
-0.026132524,
0.047019217,
-0.035561215,
0.0033977113,
-0.046439413,
0.00042794942,
-0.042297967,
0.021963468,
0.017835828,
0.036251456,
0.028575977,
-0.03771477,
-0.018111924,
0.02600828,
-0.05980248,
-0.05381119,
0.008483062,
-0.0064261435,
-0.029459486,
0.0075167245,
-0.014964425,
-0.034097906,
0.020914301,
0.013715088,
-0.0011794493,
0.01076776,
-0.026643302,
0.006936922,
0.021273227,
0.01884358,
0.019671869,
-0.06687055,
0.023054048,
-0.031198893,
-0.020596791,
0.003359748,
-0.08282892,
-0.017973876,
-0.016841881,
-0.027899541,
0.016676223,
0.02079006,
0.0024451788,
-0.012797068,
-0.0009706514,
-0.004938674,
-0.035478387,
0.00339426,
0.0045176274,
0.054529037,
0.031033235,
0.048537746,
-0.04820643,
0.0025418124,
0.04594244,
-0.05129871,
0.009311351,
-0.02571838,
-0.023620047,
-0.0034529306,
-0.013542528,
-0.00355129,
-0.0070128487,
-0.020845277,
0.017739194,
0.009069767,
-0.025580332,
-0.014412232,
-0.025304236,
-0.018318996,
0.06433046,
-0.006871349,
-0.08194541,
-0.04514176,
0.028189443,
0.0013451071,
-0.023965167,
0.04682595,
-0.06764362,
-0.054225333,
-0.03360093,
0.020610597,
-0.024351703,
0.0074338955,
-0.0137496,
-0.028631197,
-0.0038101303,
0.044589568,
0.038543057,
-0.030950407,
0.009207815,
-0.048841454,
0.009663374,
-0.07559519,
-0.009076669,
-0.024310287,
0.034153126,
-0.01735266,
0.017504511,
0.028852073,
-0.02107996,
0.018332802,
0.022018688,
0.026891788,
0.020513963,
-0.061624717,
-0.026229158,
0.015916957,
-0.00085374183,
-0.020928107,
0.013314749,
-0.008144843,
-0.0074200905,
0.011879047,
0.005725549,
-0.025276626,
-0.003259663,
-0.016400127,
-0.041165974,
0.037935644,
-0.020458743,
0.0025728734,
-0.015502812,
0.04815121,
-0.0046556755,
0.015019644,
-0.076478705,
0.04889667,
-0.029652754,
-0.048979502,
0.019782307,
-0.02076245,
0.0146055,
-0.024241263,
0.003634119,
0.039426565,
-0.038543057,
0.040282466,
0.061956033,
0.001519393,
-0.0074200905,
-0.034926195,
0.02918339,
0.009090474,
0.031695865,
-0.008324306,
-0.028299881,
0.007123287,
0.010905808,
0.0102914935,
-0.07145375,
0.0055805985,
-0.008938621,
0.006315705,
-0.003823935,
0.034622487,
-0.014101624,
-0.058642875,
-0.03144738,
-0.0014771158,
-0.0030802004,
-0.0062328763,
0.03288308,
0.027278325,
0.000557801,
0.023067854,
-0.0160412,
-0.02984602,
-0.00026229158,
0.057980243,
-0.014715938,
0.008034405,
0.016331103,
0.036306676,
-0.031254113,
-0.043954547,
0.041607726,
0.047295313,
-0.017311243,
-0.025179991,
-0.008759159,
-0.018084314,
-0.025856428,
0.005963682,
0.028548367,
-0.004559042,
0.0067125936,
0.018595092,
-0.02574599,
-0.04994584,
0.04671551,
0.0535627,
-0.018912604,
-0.005911914,
-0.04144207,
0.00993947,
-0.02454497,
-0.05049803,
0.020182647,
-0.017104171,
0.02843793,
0.049283206,
0.03683126,
0.07620261,
-0.013901453,
0.028299881,
0.02073484,
-0.0052423803,
-0.05693108,
-0.008724647,
0.03219284,
0.0038101303,
0.034070294,
0.0032872728,
0.025953062,
0.06422002,
0.0033235103,
0.020569181,
-0.08625252,
0.014992034,
-0.04931082,
-0.01692471,
0.025953062,
0.01798768,
0.011147392,
0.024020387,
0.007868747,
-0.02185303,
-0.011471805,
0.005266539,
-0.031364553,
-0.019671869,
-0.050856955,
0.0055944035,
-0.05836678,
-0.029514706,
-0.013452797,
-0.029487096,
0.0012484734,
0.030481042,
-0.021963468,
-0.0022950512,
0.0020758999,
0.02265371,
-0.015337155,
0.0415249,
-0.019699479,
0.027609639,
-0.0068678977,
0.0041725067,
-0.0075512365,
0.052844852,
0.03520229,
-0.016206859,
0.014715938,
-0.013011043,
0.027664859,
-0.042104702,
0.0029352498,
0.045114152,
-0.01881597,
-0.023799509,
-0.017200805,
0.01641393,
-0.003906764,
0.027678665,
-0.015806518,
-0.0056979395,
-0.017104171,
0.012921311,
0.0078066257,
0.06753318,
-0.022529466,
0.015226716,
0.0035927044,
0.046246145,
0.0063226074,
0.020237867,
0.005742805,
-0.018691726,
-0.0031854622,
-0.0075029195,
0.019768503,
0.048786234,
-0.018940212,
0.012258681,
0.004866199,
-0.0075995536,
-0.022916,
-0.0121344365,
0.023633853,
0.067919716,
0.045583516,
-0.026298182,
-0.0064261435,
-0.013832429,
-0.055661034,
0.0006229425,
-0.060409892,
-0.020997131,
-0.005283795,
-0.040862266,
-0.0060706697,
-0.022142932,
-0.0033890833,
-0.010457151,
0.014246574,
0.0066470206,
-0.0013002414,
0.0030249811,
0.011699585,
0.019989379,
-0.043043427,
-0.031116065,
-0.0033183335,
-0.016372517,
-0.052320268,
-0.03277264,
-0.0070749703,
0.08255282,
0.016110225,
0.003333864,
-0.021369861,
0.013342358,
0.011292343,
0.045721564,
-0.07057024,
0.01769778,
-0.059250288,
-0.015406179,
-0.046963997,
0.014329403,
0.014564085,
0.047737066,
0.025097163,
-0.005725549,
-0.00066565117,
0.007088775,
0.0058532436,
-0.034374002,
0.022377614,
0.031999573,
0.018125728,
0.01283158,
0.01761495,
-0.014757353,
0.06604226,
0.006598704,
0.028203247,
-0.007965381,
0.045832,
0.0101948595,
-0.028603587,
-0.008262184,
0.032662205,
0.01910587,
-0.008517574,
0.019009236,
-0.015999787,
-0.0002862343,
0.0034218698,
0.014853986,
0.047405753,
-0.03746628,
0.030481042,
-0.010498566,
-0.052403096,
0.041745774,
-0.03382181,
-0.043043427,
0.007440798,
-0.0010785016,
0.0781905,
0.026767546,
-0.003359748,
-0.022308588,
0.035423167,
0.044009767,
0.0013951496,
0.0139497705,
0.015185302,
0.02228098,
-0.003238956,
0.028023785,
0.001979266,
0.041883823,
0.0027368055,
-0.044285864,
-0.021466495,
0.015530422,
0.014343208,
-0.039316125,
0.019368162,
0.000072043906,
-0.028217051,
-0.064109586,
0.021438885,
-0.062287346,
0.032993518,
0.031364553,
-0.03296591,
-0.020375915,
0.052789632,
-0.012217266,
0.008538282,
0.033242006,
0.014067112,
0.022350004,
0.06847191,
-0.0014132684,
0.0005547812,
0.014495061,
0.027443983,
-0.050856955,
-0.039426565,
-0.020444939,
0.026601888,
-0.02680896,
-0.058532435,
-0.030895187,
0.025511308,
-0.0021069606,
-0.026670912,
0.0030129019,
0.040116806,
0.010871296,
-0.03313157,
-0.003720399,
0.08431984,
0.021494105,
-0.004358872,
-0.0009628862,
0.00033411977,
-0.07322077,
0.013121481,
-0.02079006,
0.037134964,
0.009608155,
-0.05301051,
0.00355129,
-0.03851545,
-0.02185303,
-0.025069553,
-0.042739723,
-0.030978017,
0.03376659,
0.039564613,
0.01695232,
0.04064139,
-0.014384623,
0.0037238502,
0.06057555,
0.023537219,
0.0352299,
0.036279067,
0.059139848,
0.019381966,
-0.024779651,
0.014301794,
0.024393117,
-0.0021431984,
0.0013252627,
0.021618348,
0.009573642,
-0.041359242,
-0.03360093,
-0.0018032546,
-0.016579589,
-0.020099819,
-0.044479128,
-0.03296591,
-0.02294361,
-0.058090683,
-0.038487837,
-0.034318782,
0.030978017,
0.003703143,
-0.024130825,
-0.01921631,
-0.025732184,
0.22374852,
0.03989593,
-0.0011337209,
0.01764256,
0.021714982,
0.057041515,
0.033877026,
-0.03202718,
0.006785069,
-0.039343737,
-0.021328447,
-0.028299881,
0.022032492,
0.03840501,
-0.036389504,
0.03285547,
-0.045003712,
-0.028134223,
-0.014992034,
-0.06565572,
-0.082166284,
0.023620047,
0.017380267,
0.03829457,
0.028631197,
0.0013649516,
0.00922162,
-0.050829347,
0.020693425,
0.02076245,
0.016690027,
0.0061189863,
0.040475734,
-0.017532121,
0.016137835,
0.03890198,
0.0042794943,
-0.037742376,
-0.013100774,
-0.0076547726,
0.025235211,
-0.0120654125,
0.015212911,
-0.04514176,
0.004345067,
0.07719655,
-0.0012363942,
-0.0014486433,
0.03153021,
-0.03583731,
0.030453432,
-0.059581604,
0.034429222,
0.00086668384,
-0.01945099,
0.00919401,
-0.020320695,
-0.03434639,
0.0054149404,
0.010822979,
0.036389504,
-0.0020620949,
0.014633109,
0.0567102,
0.005722098,
-0.013335456,
-0.0048454916,
0.035726875,
-0.00056340924,
0.014633109,
-0.0007980912,
0.00555644,
-0.019064456,
-0.02646384,
0.01303175,
0.033242006,
0.04227036,
0.059305508,
0.005021503,
-0.052209828,
0.023633853,
-0.015475203,
0.014329403,
-0.031751085,
0.02150791,
0.036168627,
-0.05295529,
0.015171497,
-0.042491235,
0.01337687,
0.0035823507,
0.0009879074,
-0.011202611,
-0.0027833967,
0.024986723
] | As you can see in the following code, you only need to add four additional lines of code to your training loop to enable distributed training!
+ from accelerate import Accelerator
from transformers import AdamW, AutoModelForSequenceClassification, get_scheduler
accelerator = Accelerator()
model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=2)
optimizer = AdamW(model.parameters(), lr=3e-5) |
[
-0.0013721068,
-0.017403355,
-0.0088206865,
0.019993557,
-0.024445903,
0.010752837,
-0.03043837,
-0.02517396,
0.014477127,
0.02929028,
0.010444813,
-0.024851935,
0.03713089,
-0.057460472,
-0.009569745,
0.04561555,
-0.02556599,
-0.034498684,
-0.08831888,
-0.0012399715,
0.027274122,
0.013714068,
-0.08843088,
-0.039147045,
-0.012061939,
0.013966087,
0.028548222,
0.0018551444,
0.047043663,
0.03251053,
-0.03713089,
-0.02929028,
-0.013378041,
-0.016605293,
-0.018845467,
-0.014365118,
0.00423883,
0.017865391,
-0.03774694,
-0.04214328,
0.009359729,
0.008197638,
-0.03150245,
-0.0040953187,
-0.07487783,
-0.027582146,
-0.0069165383,
-0.0036962877,
0.01759937,
-0.030074341,
-0.012874002,
-0.008827687,
0.044523466,
-0.021561678,
-0.016283268,
-0.034330674,
-0.028030181,
0.014561133,
-0.060428705,
-0.021743692,
0.04166724,
0.0552203,
-0.03609481,
-0.062444862,
0.019685533,
0.03970709,
-0.014071095,
-0.003930806,
0.0008785684,
-0.004035814,
-0.05110398,
0.026798086,
-0.0053029126,
-0.03444268,
-0.041387223,
-0.007147556,
0.036962878,
0.008750681,
0.0068395324,
0.035898793,
0.022891782,
0.006643517,
0.02108564,
-0.0007000545,
-0.033070575,
-0.034358673,
0.04121921,
-0.013455047,
-0.041471228,
-0.033490606,
-0.026406055,
0.020567602,
0.0028299703,
-0.017361352,
0.047939733,
0.01913949,
-0.024641918,
0.0126359835,
0.02658807,
-0.020665608,
0.0218277,
0.08109431,
-0.004557355,
0.008330649,
-0.037858948,
0.003941307,
0.010367807,
-0.018803464,
-0.03685087,
-0.02146367,
0.009394731,
0.015905239,
0.01876146,
-0.010563822,
0.010857845,
0.03931506,
-0.019937553,
0.036906872,
-0.003622782,
0.011998934,
-0.0069025373,
-0.0064159995,
0.002352183,
-0.054828268,
0.019111488,
-0.051075976,
-0.031026416,
0.044411458,
-0.04021113,
-0.0040043117,
0.004273833,
-0.025005946,
-0.025523987,
0.037046883,
-0.007931617,
0.013994089,
0.009849766,
0.038138967,
0.032090496,
0.0034460183,
0.03511473,
-0.016871313,
-0.0016363774,
0.094423346,
0.017123332,
-0.006822031,
0.00023648716,
-0.012369962,
-0.033994645,
0.020847622,
-0.06742925,
0.01632527,
-0.0065700114,
-0.0082186395,
0.0073575727,
-0.008106631,
-0.0011139617,
0.013651063,
-0.0038327982,
0.030354362,
0.022807775,
-0.0045923577,
-0.028674232,
0.0321185,
0.0011358385,
0.039595082,
-0.028548222,
-0.0231298,
0.025201961,
-0.021631684,
0.03881102,
-0.014981166,
0.03391064,
0.042283293,
0.033574615,
0.03715889,
0.029514298,
0.0231298,
0.0055584325,
-0.0015856234,
-0.01720734,
-0.03057838,
0.017571367,
-0.011571901,
0.047715712,
0.020441592,
-0.015723225,
-0.012166947,
-0.026868092,
0.014855157,
0.035898793,
0.060932744,
-0.013133022,
0.029122267,
-0.014169103,
-0.011543899,
-0.059812654,
-0.002455441,
-0.017879391,
-0.045671556,
-0.0062759886,
0.0218277,
-0.043879416,
-0.025075952,
-0.005810452,
0.012397965,
0.022779774,
0.026252043,
-0.01887347,
0.013182026,
0.027932175,
0.014239108,
-0.021967709,
-0.0048513776,
0.020917628,
0.0282542,
-0.019713534,
0.0025201961,
0.0045048506,
0.01580723,
0.023451826,
0.011459892,
0.03032636,
-0.0016258765,
0.02388586,
-0.05101997,
-0.011774916,
0.07011746,
-0.008169636,
0.016353274,
0.015779229,
0.010157791,
-0.015205183,
0.0616608,
-0.01041681,
0.0073295706,
0.022807775,
0.044383455,
-0.001786889,
-0.001451738,
-0.010990855,
0.033686623,
0.05676042,
0.048023738,
-0.0050578937,
-0.016899316,
0.004557355,
0.007896614,
-0.024333894,
0.036822867,
-0.03777494,
0.023801852,
-0.0027547143,
-0.0057789497,
-0.028982256,
-0.03626282,
0.02415188,
0.011977932,
-0.03556277,
-0.029598303,
0.02095963,
0.018803464,
-0.0012303458,
-0.03634683,
0.01863545,
0.07364573,
0.0017632622,
-0.0007153682,
0.0037592927,
0.002607703,
-0.019559523,
-0.03875502,
-0.05160802,
-0.009359729,
-0.042031273,
0.0021754194,
0.014589136,
-0.031026416,
0.011298879,
-0.0042458307,
0.036150813,
0.015345194,
-0.030298358,
0.052952122,
0.033574615,
0.018859468,
-0.042787332,
0.005624938,
-0.025369974,
0.010759838,
-0.037214898,
-0.01822942,
0.023787852,
-0.049759872,
0.0020721613,
-0.02943029,
0.0028964754,
-0.031782474,
-0.026154036,
-0.0076515954,
-0.013007012,
0.027302125,
0.021169648,
0.0041443226,
-0.017655374,
0.040435147,
0.0111028645,
-0.029458294,
0.03494672,
0.028086185,
-0.04869579,
0.032426525,
0.03480671,
0.009583746,
-0.03827898,
0.024501907,
0.01066183,
-0.014407122,
-0.0603727,
-0.05202805,
-0.03735491,
0.005561933,
-0.030410366,
-0.04687565,
-0.010311803,
0.039931107,
-0.03265054,
-0.060932744,
0.04575556,
-0.035926796,
-0.020063562,
-0.046959653,
-0.0099617755,
0.033378597,
0.04455147,
0.016535288,
-0.060036674,
0.036066808,
-0.0015016169,
0.019335505,
0.025467983,
-0.03531075,
0.06462903,
0.04662363,
0.022247732,
0.014190105,
0.055332307,
-0.020217573,
-0.0025114454,
-0.027078107,
0.016087253,
-0.018187415,
-0.0045468537,
0.0218417,
0.03144645,
0.00398331,
-0.025902016,
0.020497596,
0.013301035,
0.031390443,
0.020791618,
0.024431901,
0.0073015685,
0.017501362,
-0.011718912,
-0.023045793,
0.00019448389,
0.032538533,
0.041051194,
-0.044775486,
0.010220796,
-0.027974177,
-0.0449715,
-0.019433513,
0.006871035,
-0.016031248,
0.015989244,
0.04945185,
0.045027506,
0.0072385636,
-0.03480671,
0.015387198,
0.029514298,
0.008694677,
0.031810477,
0.019993557,
0.032342516,
0.021127645,
-0.036178816,
-0.0218557,
0.009072706,
0.0013169775,
0.016787307,
-0.053764183,
-0.024837933,
-0.054688256,
0.02660207,
0.018145412,
0.020343583,
0.014869157,
0.037858948,
-0.040435147,
0.014022091,
0.028674232,
0.01245397,
-0.011025858,
-0.039147045,
0.05536031,
0.006023969,
0.007553588,
-0.04096719,
-0.022373741,
-0.031642463,
0.012439968,
-0.002864973,
-0.012698988,
-0.032930564,
0.017151335,
-0.03416266,
0.027680155,
-0.022499751,
-0.049171828,
-0.028044183,
0.019363508,
0.05020791,
-0.029094264,
-0.019867547,
-0.069669425,
0.017935395,
0.03225851,
-0.011207872,
-0.028982256,
-0.004133822,
0.0038187972,
-0.064461015,
0.041387223,
-0.016437279,
0.012180948,
0.007693599,
-0.0423953,
-0.012831999,
0.0015278689,
-0.023185804,
-0.048919808,
-0.014246109,
-0.0028177192,
0.01632527,
-0.018803464,
-0.032678545,
-0.017487362,
0.06653318,
-0.050319918,
0.03301457,
-0.03830698,
0.020861624,
-0.018943474,
-0.0033760127,
0.02198171,
0.031390443,
0.020147568,
-0.04460747,
-0.049087822,
0.031278435,
-0.047379687,
-0.048779797,
0.017557366,
0.030942408,
-0.0147711495,
0.026742082,
-0.02943029,
-0.022303736,
0.0436834,
0.01323103,
-0.03130644,
-0.0030382364,
-0.009947774,
0.010507818,
0.032482527,
-0.0099617755,
0.0046203597,
-0.041695245,
0.03995911,
-0.042787332,
-0.022779774,
0.015975244,
-0.098679684,
-0.024865935,
0.015051171,
-0.035142735,
0.006692521,
0.02738613,
-0.014477127,
0.013196027,
0.010304802,
-0.01388208,
-0.04326337,
-0.038390987,
-0.0040778173,
0.037438914,
0.02402587,
0.03200649,
-0.046567626,
-0.019643528,
0.05897259,
-0.055836346,
0.015331193,
-0.018607449,
-0.005243408,
0.011557899,
-0.0075325863,
-0.025720002,
0.021379665,
-0.026322048,
0.017823387,
-0.0112848785,
-0.006072973,
-0.017137334,
-0.011725913,
-0.02787617,
0.08008623,
0.0045398534,
-0.05642439,
-0.03315458,
0.021253655,
0.011137867,
-0.011753915,
0.019615527,
-0.041471228,
-0.054016203,
-0.028562224,
0.053344153,
-0.037214898,
0.02993433,
-0.03354661,
-0.077061996,
0.014729147,
0.026070029,
0.011151868,
-0.021869702,
-0.0037382909,
-0.061044753,
-0.0084286565,
-0.057124447,
-0.007945619,
-0.065413095,
0.027988179,
-0.022653764,
0.027092109,
-0.0042423303,
0.028310204,
0.04432745,
0.036934875,
0.03799896,
0.00039203052,
-0.044187438,
-0.027218118,
0.013973088,
0.01387508,
-0.009464737,
0.047827724,
-0.02801618,
-0.01220195,
-0.01720734,
0.0073715737,
-0.014939163,
-0.01631127,
-0.01940551,
-0.04035114,
0.03945507,
-0.011340883,
0.019853545,
0.019755539,
0.036570847,
0.020497596,
0.006345994,
-0.04457947,
-0.0043333373,
-0.039119046,
-0.08064628,
0.064237,
-0.02465592,
0.013546054,
-0.0028894749,
-0.031922486,
0.03251053,
-0.032230508,
0.019363508,
0.0720216,
0.005456925,
-0.011683909,
-0.05085196,
0.03444268,
0.01297901,
0.0022209228,
-0.005253909,
-0.03169847,
-0.021351662,
0.0055514323,
-0.0167033,
-0.064237,
0.00052591594,
0.010808841,
-0.00782661,
0.011683909,
0.032146502,
-0.00847766,
-0.046455614,
-0.016535288,
0.01246797,
0.010857845,
0.0044768485,
0.018803464,
0.017865391,
-0.009387731,
0.035506763,
-0.024459904,
-0.0095417425,
0.0036297825,
0.04191926,
-0.010486816,
-0.02672808,
0.046343606,
0.025159959,
-0.048107743,
-0.06535709,
0.017809385,
0.0028247198,
-0.035898793,
-0.016255265,
-0.0028369708,
-0.030298358,
-0.044747483,
0.0046168594,
0.021141646,
-0.009898771,
-0.004084818,
0.017949397,
-0.019167492,
-0.0500959,
0.017417356,
0.03931506,
-0.013826076,
-0.01516318,
-0.05732046,
-0.007952619,
-0.02929028,
-0.009464737,
0.035674777,
-0.0023451825,
0.032566536,
0.03648684,
0.011718912,
0.07235763,
0.005740447,
0.030410366,
-0.010388808,
0.0066750194,
-0.047295682,
-0.02198171,
0.028450215,
-0.015779229,
0.005603936,
0.015345194,
0.03685087,
0.06888536,
0.035086732,
0.01899948,
-0.07358973,
-0.0018411434,
-0.05740447,
-0.012614982,
0.034918718,
0.008841688,
-0.011718912,
0.041275214,
0.014435124,
-0.010115787,
0.008183637,
0.027834166,
-0.03581479,
0.004231829,
-0.047827724,
-0.0022489252,
-0.04690365,
-0.036822867,
-0.05034792,
-0.012320959,
0.023143802,
0.029178271,
0.00047078665,
-0.000003028556,
-0.033210587,
0.017095331,
-0.015261188,
0.016563289,
-0.016129255,
0.010829843,
-0.0018813964,
-0.0023276813,
-0.014463126,
0.03920305,
0.04779972,
-0.027540144,
0.016353274,
0.008484661,
0.011354884,
-0.013140023,
0.011228874,
0.057516478,
-0.020469593,
-0.016423278,
-0.01439312,
0.012824998,
-0.035394754,
0.003955308,
-0.041639242,
-0.036962878,
-0.00861067,
0.042787332,
0.0029244777,
0.043851413,
0.020693611,
0.017193338,
-0.0048793796,
0.03752292,
0.012411966,
0.021799697,
0.002504445,
0.008568667,
-0.022653764,
0.008071628,
0.010164791,
0.046567626,
-0.0244039,
-0.0068150302,
-0.016339272,
-0.029402288,
-0.027064107,
-0.008890692,
0.045279525,
0.07863012,
0.03710289,
-0.012271956,
0.0036542844,
-0.009926773,
-0.056340385,
0.013413044,
-0.048583783,
-0.016549287,
-0.031222431,
-0.060988747,
0.005463925,
-0.019587524,
0.009681754,
-0.0009074456,
0.0475197,
-0.0012137195,
-0.006794029,
-0.01825742,
0.025033949,
0.024991944,
-0.03365862,
-0.008659674,
0.010220796,
-0.014505129,
-0.04446746,
-0.021799697,
0.021785695,
0.06636517,
0.009835766,
0.0006116726,
-0.028198196,
0.0017527614,
0.010388808,
0.03710289,
-0.040015116,
0.0084006535,
-0.033490606,
0.028954254,
-0.032706548,
-0.012362963,
-0.016927317,
0.032062497,
0.03018635,
-0.0009188215,
-0.014176103,
-0.011683909,
0.013973088,
-0.031782474,
0.020007558,
0.04572756,
0.02763815,
-0.00006612233,
0.01682931,
-0.020189572,
0.07823809,
0.034638695,
0.027932175,
-0.015485206,
0.022779774,
0.030662386,
-0.019433513,
-0.019769538,
0.043487385,
0.044243444,
0.0010745836,
0.012621982,
0.0024746927,
-0.020371586,
-0.014491128,
0.0035125234,
0.042619318,
-0.031838477,
0.006591013,
-0.012972009,
-0.020581601,
0.0076025915,
-0.036178816,
-0.019937553,
0.0046693636,
0.0019951554,
0.054912273,
-0.009835766,
-0.0018673954,
0.00086894265,
0.01785139,
0.030214353,
0.0057124444,
0.028422212,
-0.011830921,
0.05051593,
-0.018201416,
0.006913038,
0.003948307,
0.018201416,
0.0000025226573,
-0.037970956,
-0.008281644,
0.013714068,
-0.015023169,
-0.03365862,
0.019069484,
-0.023297813,
-0.0067520253,
-0.04200327,
0.017459359,
-0.047687713,
0.04995589,
0.07078951,
-0.008547666,
-0.017165337,
0.059532635,
-0.0042563314,
0.019503519,
0.010297801,
0.0462596,
0.015079173,
0.095935464,
-0.011319881,
-0.017963398,
0.021967709,
0.0154152,
-0.035982803,
-0.030214353,
0.0010702083,
0.036038805,
-0.027400132,
-0.04281533,
-0.02853422,
0.017613372,
0.010969854,
-0.023521831,
-0.03531075,
0.01259398,
-0.013623061,
-0.033434603,
0.0015077423,
0.07538187,
0.03365862,
0.014120099,
-0.017991401,
-0.0020546599,
-0.06216484,
0.020539599,
-0.016045248,
0.06418099,
-0.018327426,
-0.03265054,
-0.013308036,
-0.0031257432,
-0.030494373,
-0.002838721,
-0.012600981,
-0.025411978,
0.024599915,
0.06535709,
-0.00089869497,
0.05071195,
0.005960964,
-0.032286514,
0.055080287,
0.044131435,
0.024627917,
0.03536675,
0.06765327,
0.025902016,
-0.008183637,
0.010640828,
0.003930806,
0.0074065765,
0.004403343,
0.019545522,
-0.013126021,
-0.0028492217,
-0.028422212,
-0.051720027,
0.009135711,
-0.037186895,
-0.023213807,
-0.028674232,
-0.0028107187,
-0.07543787,
-0.009835766,
-0.016885314,
0.04032314,
-0.006244486,
-0.0008234391,
-0.0067765275,
-0.015891237,
0.23275411,
0.05051593,
0.02107164,
0.03405065,
0.046847645,
0.06334093,
0.026532065,
-0.060596716,
0.01079484,
-0.073813744,
-0.023185804,
-0.04379541,
-0.0071440563,
0.048863802,
-0.048527777,
0.06126877,
-0.06418099,
-0.021883704,
0.017767383,
-0.069053374,
-0.08053427,
0.044411458,
0.015709223,
0.03519874,
0.0066225156,
0.029738314,
0.029318282,
-0.05460425,
0.017403355,
0.010486816,
-0.018663453,
-0.015387198,
0.022961788,
-0.02929028,
0.029122267,
0.03430267,
-0.0010010779,
-0.037074886,
-0.010164791,
-0.0033077574,
0.009940774,
-0.026868092,
0.015219185,
-0.024725925,
-0.02004956,
0.057236455,
0.00083175226,
0.026378052,
0.0732537,
-0.046343606,
0.034218665,
-0.05037592,
0.003432017,
0.0024851935,
-0.03648684,
0.0009870768,
-0.03561877,
-0.023325816,
-0.0014123599,
0.027988179,
0.005383419,
-0.011067862,
0.009429734,
0.004175825,
-0.013224029,
0.011522897,
-0.008260643,
0.048835803,
-0.0016853812,
-0.020105565,
-0.0018043905,
-0.008715678,
-0.010710834,
0.0038853025,
0.03262254,
0.04211528,
0.014323114,
0.035674777,
-0.0077916062,
-0.05897259,
0.02375985,
-0.009191715,
0.018173415,
0.022835778,
0.014813153,
0.029206274,
-0.04166724,
0.0032255012,
-0.006013468,
-0.0023084297,
0.03587079,
0.027554145,
-0.026686078,
-0.017039327,
0.01733335
] | accelerator = Accelerator()
model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=2)
optimizer = AdamW(model.parameters(), lr=3e-5)
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
model.to(device)
train_dataloader, eval_dataloader, model, optimizer = accelerator.prepare(
train_dataloader, eval_dataloader, model, optimizer
) |
[
0.017152676,
0.019451192,
-0.036747526,
0.004686818,
-0.019910894,
0.016305098,
-0.011111888,
0.008590704,
-0.0020866217,
0.040712465,
-0.012598741,
0.004331266,
-0.006328102,
-0.048268836,
0.0010388215,
0.059186786,
-0.016405659,
-0.032207955,
-0.07924134,
0.030800115,
0.021074519,
0.022266874,
-0.06694428,
-0.06251964,
-0.017569281,
0.01124118,
0.013295479,
0.014222068,
0.04849869,
0.043240834,
-0.031604595,
-0.015012183,
0.007369617,
-0.012986615,
0.0076138345,
-0.001692462,
-0.008260292,
0.011169352,
-0.036517672,
-0.029248618,
0.013331393,
-0.014925988,
0.022927698,
-0.007585103,
-0.05806626,
-0.046430025,
0.009416733,
-0.011169352,
0.00083455886,
-0.03979306,
-0.009603487,
0.017152676,
0.006346059,
-0.0031622553,
0.004913078,
-0.015371326,
-0.006662105,
0.0027115305,
-0.046257634,
0.024608487,
0.015601178,
0.019034587,
-0.016017783,
-0.06901295,
0.0077215773,
0.033730723,
-0.056917004,
-0.014071228,
-0.026375473,
-0.045596812,
-0.06349651,
0.013410404,
0.006245499,
-0.030426607,
-0.030713921,
0.014336994,
0.025398603,
-0.011779895,
0.0031335237,
0.042465083,
0.029737052,
0.012907604,
0.006439436,
0.008303389,
-0.050624818,
-0.012232415,
0.07424207,
-0.018072082,
-0.01585976,
-0.051630415,
-0.005904313,
0.03048407,
-0.0053691897,
-0.0036560772,
0.033644527,
0.01841686,
-0.01912078,
0.039275892,
0.034592666,
-0.016247636,
0.020844668,
0.0768279,
-0.009502927,
0.028544696,
-0.019666677,
-0.011097522,
0.028774548,
-0.0035698828,
-0.026576592,
-0.024507927,
0.028573427,
-0.021634782,
0.04122963,
-0.010795843,
0.025355505,
0.01515584,
-0.026935736,
0.011715249,
-0.03128855,
-0.010645002,
0.006676471,
-0.014387274,
0.035397146,
-0.026677152,
0.041057244,
-0.029061861,
-0.0037350885,
0.031547133,
-0.045481887,
-0.031346012,
0.0072510997,
-0.010070373,
0.011571592,
0.022640383,
-0.004169652,
0.014688954,
-0.0038823374,
0.05010765,
0.033989307,
-0.0066585136,
0.035167295,
0.011880455,
-0.006960194,
0.08527494,
0.006037196,
-0.0072834226,
-0.027179953,
-0.017267602,
-0.017368162,
0.023344304,
-0.07108161,
0.024306808,
-0.020844668,
0.017109578,
-0.0077790404,
0.00833212,
-0.011435118,
0.05766402,
-0.01277113,
0.009043224,
-0.000006397237,
-0.022956429,
-0.012706484,
0.019379364,
0.018531786,
0.032552734,
-0.058956936,
-0.021232542,
0.013151822,
-0.020140747,
0.008626618,
-0.03548334,
-0.0009221,
0.014882891,
0.03485125,
0.04620017,
0.029851977,
0.007836503,
0.022913331,
0.0003604899,
0.0075420057,
-0.01771294,
0.017669842,
0.0032430624,
0.016405659,
-0.0015954934,
0.009948265,
0.013618708,
-0.012598741,
0.004356406,
0.013862925,
0.055250578,
0.0027115305,
0.024005126,
-0.04734943,
-0.0034783012,
-0.06717413,
-0.03470759,
-0.037925515,
-0.036690064,
-0.01302253,
0.01221805,
-0.042091575,
-0.026375473,
-0.0032430624,
0.0090288585,
0.017425625,
0.038069174,
0.00042648247,
0.03743708,
0.029018765,
0.018459957,
-0.013575611,
-0.0013602546,
0.026116889,
0.00818128,
-0.01011347,
0.018732905,
-0.0024673133,
0.047062118,
0.021088885,
0.0011672152,
0.026231814,
0.009646584,
0.025585357,
-0.037149765,
0.002923425,
0.036402747,
-0.01814391,
0.021821536,
0.031116161,
0.023947664,
0.021318736,
0.08211449,
0.017483087,
-0.018459957,
0.0503375,
0.010659368,
0.034305353,
0.0058253016,
-0.0065292222,
0.029219884,
0.039477013,
0.000858801,
-0.0065543624,
0.0110328775,
-0.01851742,
-0.005329684,
-0.048987124,
0.011765529,
-0.019479923,
0.021764074,
0.019882163,
-0.017325064,
-0.0396494,
-0.011959466,
0.005196801,
-0.0008929196,
-0.03125982,
-0.02268348,
0.0315184,
0.026964467,
-0.009596304,
-0.014530931,
0.0068739997,
0.07085176,
0.0059258617,
0.015658641,
0.040109105,
-0.0128357755,
-0.008116635,
-0.029966904,
-0.054417368,
-0.011794261,
-0.035224758,
0.0058324845,
0.014487834,
-0.026763346,
0.016678607,
-0.035713192,
0.01267057,
0.0059581846,
-0.012232415,
0.05013638,
0.0075132744,
0.0058683986,
-0.04895839,
0.012929153,
-0.025355505,
-0.004697592,
-0.032150492,
-0.0063927476,
0.0019142329,
-0.012792679,
-0.028616525,
-0.03011056,
0.0072977883,
0.0056062243,
-0.024637219,
0.017770402,
-0.0005764247,
-0.012684936,
0.01942246,
0.011205265,
-0.024709048,
0.0447636,
-0.004237889,
-0.028544696,
0.019637946,
0.012225232,
-0.028372308,
-0.002273376,
0.028918205,
0.009890802,
-0.041890454,
0.042005382,
0.026892638,
-0.028472867,
-0.031978104,
-0.032753855,
-0.002115353,
-0.00054904004,
-0.015242035,
-0.02416315,
-0.01129146,
0.06079575,
-0.0360867,
-0.034420278,
-0.006320919,
-0.02564282,
-0.0019429644,
-0.024752144,
-0.03031168,
0.03766693,
-0.0010253537,
0.019192608,
-0.020557353,
0.01713831,
-0.016951555,
0.027136855,
0.026590958,
-0.015687373,
0.025772111,
0.047033384,
-0.01821574,
0.051371835,
0.028817644,
-0.0432121,
-0.0012965067,
-0.0049346266,
0.0029970494,
-0.023186281,
0.021246908,
0.012297061,
0.014035313,
0.02735234,
-0.018531786,
-0.0018388128,
0.024234978,
0.029679589,
0.02378964,
-0.011011329,
0.03944828,
0.012505364,
-0.028458502,
-0.031058699,
0.010199665,
0.023890201,
0.02150549,
-0.06119799,
0.016276367,
0.015342595,
-0.0022195044,
-0.0036435071,
0.010350505,
0.003354397,
0.047636744,
0.07309281,
0.029363543,
-0.007836503,
0.00036655046,
0.023502328,
-0.011952284,
-0.0069817426,
0.05229124,
0.02248236,
0.021002691,
0.030254217,
0.029650858,
0.028860742,
0.0030652867,
0.017052116,
-0.023602886,
-0.07406968,
-0.04450502,
-0.06366889,
0.013977851,
0.07188609,
0.031662058,
-0.010709648,
0.033213556,
-0.036144163,
0.012210866,
0.05209012,
0.016793532,
-0.003094018,
-0.03904604,
0.045424424,
-0.009172516,
0.023329938,
-0.023071354,
-0.054589756,
-0.010041642,
-0.0038284657,
0.0027133264,
-0.011176534,
-0.010041642,
-0.02564282,
-0.047464356,
0.034362815,
0.0007173884,
-0.056600958,
-0.04574047,
0.013130273,
0.054991998,
0.0005095343,
-0.011765529,
-0.04611398,
0.02873145,
0.014207702,
-0.021663513,
-0.03827029,
-0.034966175,
-0.016678607,
-0.060048733,
0.07067937,
0.014157422,
-0.0043995036,
0.0030114152,
-0.0539002,
-0.0060838847,
0.003781777,
0.0010379236,
-0.030570263,
-0.018000254,
0.02526931,
0.0062993704,
-0.011154986,
-0.027223049,
-0.014925988,
0.03545461,
-0.03384565,
0.03309863,
-0.02742417,
-0.008210012,
-0.043298297,
-0.011923552,
0.0493319,
0.024809608,
0.02910496,
-0.031001234,
-0.05128564,
0.023775276,
-0.01653495,
-0.027783312,
0.019307535,
0.0019429644,
0.020945227,
0.030800115,
-0.021131981,
-0.008123818,
0.018905295,
0.022094486,
-0.041545678,
0.00050190254,
-0.012404804,
0.009553207,
0.008878018,
0.01909205,
0.038701262,
-0.05981888,
0.009416733,
-0.002840822,
-0.004054726,
0.0039469833,
-0.07803462,
0.0025966049,
0.0065902765,
-0.02466595,
0.031949375,
0.030598994,
-0.012605924,
0.0062814136,
0.011657786,
-0.008842104,
-0.053785276,
-0.03528222,
0.03602924,
0.04611398,
0.027567826,
-0.016305098,
-0.04714831,
-0.007972977,
0.04197665,
-0.058956936,
0.016003419,
-0.00825311,
-0.010709648,
0.014566845,
0.0009714822,
-0.03427662,
0.046860997,
-0.014459102,
-0.011370472,
0.004995681,
0.00043546106,
-0.0026576591,
-0.019580483,
-0.01909205,
0.039735597,
0.003006028,
-0.04849869,
-0.029406639,
0.020973958,
0.0071541313,
0.0002475843,
0.014186154,
-0.016822264,
-0.05884201,
-0.056773346,
0.048642345,
-0.032006837,
0.009933899,
-0.039706863,
-0.081712246,
0.0019681044,
-0.004395912,
0.014495017,
-0.03982179,
-0.0037781857,
-0.034966175,
0.022539822,
-0.06435845,
0.007814955,
-0.0117008835,
0.033587065,
-0.033385947,
0.009653768,
-0.0068919566,
0.021462394,
0.02080157,
0.05050989,
0.025729014,
-0.000079740996,
-0.053727813,
-0.04341322,
0.012634655,
0.03944828,
-0.032035567,
0.021792805,
-0.027639655,
0.017985888,
0.00012962823,
0.02386147,
0.008648166,
-0.002185386,
-0.018833466,
-0.043068446,
0.025700282,
-0.024278076,
0.027194317,
0.006342468,
0.012404804,
-0.00900731,
0.011550043,
-0.05461849,
0.019652313,
-0.059531566,
-0.0752764,
0.021835903,
-0.006762665,
0.0039828974,
0.011392021,
-0.04611398,
0.035023637,
-0.04056881,
0.036316555,
0.088435404,
0.008748727,
0.033759456,
-0.055681553,
0.03447774,
0.016103977,
0.0075132744,
-0.0016412841,
-0.0173107,
0.0061916276,
-0.011348923,
-0.04482106,
-0.05864089,
0.0050315955,
0.034736324,
-0.012311427,
0.015069646,
0.0233874,
0.009653768,
-0.04812518,
-0.020428061,
0.03327102,
0.0054086954,
-0.003936209,
0.0007218777,
0.0223818,
-0.012957884,
0.019752873,
-0.023631617,
-0.006518448,
-0.0025409376,
0.023100086,
0.0020938045,
-0.036402747,
0.0692428,
0.031116161,
-0.040769927,
-0.072518185,
0.01871854,
0.00021391462,
-0.034908712,
-0.012016929,
-0.0088061895,
-0.037350886,
-0.040109105,
0.03519603,
0.021907732,
-0.014796697,
0.009474196,
-0.004413869,
0.021031423,
-0.06487562,
-0.010206847,
0.042350158,
-0.027237415,
-0.025901403,
-0.061657693,
-0.016319463,
-0.026978832,
0.0026827992,
0.04436136,
-0.002223096,
0.0193219,
0.007136174,
0.022065755,
0.06631219,
0.018000254,
-0.0048663896,
0.0035375599,
0.0094957445,
-0.077172674,
-0.0051429295,
0.0315184,
-0.011937918,
0.010896402,
-0.014064045,
0.027079392,
0.047780402,
-0.0010621658,
-0.0012372481,
-0.07539133,
-0.011133437,
-0.04809645,
0.0059581846,
0.0067878054,
-0.013101541,
-0.024421733,
0.045223303,
0.02355979,
-0.059933808,
0.03485125,
0.036517672,
-0.021246908,
-0.015098377,
-0.060853213,
0.007462994,
-0.031748254,
-0.03740835,
-0.05068228,
-0.0068560424,
-0.0031927824,
0.03904604,
0.0011223223,
-0.004589849,
-0.028616525,
0.03726469,
0.004561118,
-0.011111888,
0.017598014,
0.0078939665,
0.0030652867,
0.012763947,
-0.032150492,
0.031144893,
0.049418095,
-0.026461666,
-0.03381692,
0.02913369,
-0.008490143,
-0.0264473,
0.002722305,
0.045280766,
-0.0032251053,
0.00019315166,
-0.0043923203,
0.023329938,
-0.068438314,
0.032552734,
-0.028587794,
-0.037293423,
-0.023588521,
0.08475778,
0.025384236,
0.045108378,
0.033615798,
0.01302253,
-0.008346487,
0.011126255,
0.0144375535,
-0.016262,
0.016649876,
0.02815682,
-0.04620017,
-0.026432935,
0.012857324,
0.020327501,
-0.043528147,
0.014660222,
-0.06137038,
-0.024206247,
-0.01949429,
-0.018402494,
0.012742398,
0.056600958,
0.016175807,
-0.010494162,
-0.0066513307,
-0.03108743,
-0.048699807,
-0.010623454,
-0.0457692,
-0.051745344,
0.012692118,
-0.029018765,
0.0038823374,
0.026634054,
-0.008418315,
0.012361706,
0.07464431,
-0.004704775,
-0.02305699,
-0.026792077,
0.041114707,
0.034736324,
-0.01342477,
-0.053066988,
0.013446319,
0.016477486,
-0.050423697,
-0.048441228,
0.025628453,
0.05826738,
0.027625289,
-0.030570263,
-0.017253237,
-0.014344176,
0.037552007,
0.025197482,
-0.0457692,
0.019551752,
-0.022554189,
0.022798406,
-0.028530331,
-0.016060881,
-0.018833466,
0.02990944,
0.020528622,
0.0055164387,
0.014380091,
0.014301079,
0.025369871,
-0.030455338,
-0.012340158,
0.049849067,
0.02228124,
0.003993672,
-0.003921843,
-0.010565991,
0.055681553,
0.022611652,
0.043068446,
-0.017210139,
0.023775276,
0.03519603,
-0.019580483,
-0.022166314,
0.047320697,
0.0040583173,
-0.009725596,
0.015356961,
-0.08659659,
-0.007858052,
-0.00081301027,
0.06022112,
0.018431226,
-0.005383556,
0.011571592,
-0.014983452,
-0.03444901,
0.018345032,
-0.0119451005,
-0.031432208,
0.016204538,
-0.00015162575,
0.035167295,
-0.006701611,
0.0019232115,
-0.010716831,
-0.00022053633,
0.052750945,
0.007685663,
0.042723667,
0.019953992,
0.04493599,
-0.028946936,
0.030570263,
-0.03602924,
-0.009280259,
-0.034362815,
-0.038356487,
-0.0061988104,
0.020945227,
-0.014710503,
-0.04263747,
0.030455338,
0.0033364396,
-0.014502199,
-0.055681553,
0.011305826,
-0.045252036,
0.0025553033,
0.047780402,
-0.0034872799,
-0.03410423,
0.06481815,
-0.011736797,
-0.0029521566,
0.037350886,
0.071598776,
0.03192064,
0.056141254,
0.055193115,
-0.010659368,
0.013647439,
0.005053144,
-0.023875836,
-0.0068201283,
0.004722732,
0.00046778392,
-0.0010729401,
-0.06625473,
-0.04450502,
0.017382527,
0.0033831282,
-0.019264437,
-0.03623036,
0.027855141,
-0.032380346,
-0.019235706,
-0.013834193,
0.0427524,
0.034391545,
0.0007218777,
-0.006827311,
0.012555644,
-0.028645257,
-0.0047263238,
-0.013783913,
0.04597032,
-0.03746581,
-0.011514129,
-0.017281968,
-0.028616525,
-0.044447552,
0.042235233,
-0.014739234,
0.0063999305,
0.029320445,
0.028444136,
0.045280766,
0.010451065,
-0.012282695,
-0.054216247,
0.05025131,
0.05028004,
-0.006644148,
0.058382306,
0.0721734,
0.031460937,
-0.028860742,
0.0003081897,
-0.031001234,
0.0026845948,
-0.010336139,
0.015213303,
-0.03163333,
-0.0152851315,
-0.033529602,
-0.07188609,
-0.042149037,
-0.029650858,
0.02009765,
-0.03766693,
-0.023401767,
-0.08119508,
0.012957884,
-0.0016888706,
0.058008797,
-0.031662058,
-0.027869508,
0.00049876,
-0.029406639,
0.24571137,
0.07194355,
0.012828593,
0.025254944,
0.05487707,
0.05424498,
0.05010765,
-0.039678134,
0.02060045,
-0.042005382,
-0.015443155,
-0.058152456,
0.021246908,
0.006870408,
-0.024737779,
0.051228177,
-0.042493816,
-0.0009840522,
0.016420024,
-0.053210646,
-0.048412494,
0.025010727,
0.005455384,
0.05841104,
-0.010709648,
0.029392274,
0.03565573,
-0.030081829,
0.00015555386,
-0.008389584,
-0.020155113,
-0.0017184999,
0.00034006365,
-0.0013027918,
0.0073839827,
0.020370599,
0.0024780876,
-0.021448027,
-0.020255672,
-0.011988197,
0.011111888,
-0.006902731,
-0.015989052,
-0.04482106,
0.004359998,
0.009079139,
-0.026892638,
0.035770655,
0.031346012,
-0.06476069,
0.047263235,
-0.071139075,
-0.013575611,
-0.014566845,
-0.094641395,
0.016965922,
-0.019681044,
-0.024335539,
-0.010544443,
0.03746581,
0.026174352,
-0.010379236,
-0.024823973,
0.029018765,
-0.02060045,
0.01282141,
-0.018675443,
0.03482252,
-0.017957157,
0.0037997344,
0.020945227,
0.00021548588,
-0.03565573,
-0.026116889,
0.024737779,
0.030455338,
0.004388729,
0.03643148,
-0.039879255,
-0.025096921,
0.050739743,
0.0054338356,
0.027151221,
-0.0006675573,
0.036345284,
0.037868053,
-0.010106288,
-0.0054733413,
-0.011535677,
0.017009018,
0.032351613,
0.02514002,
0.001698747,
-0.020772839,
-0.016118344
] | model.to(device)
train_dataloader, eval_dataloader, model, optimizer = accelerator.prepare(
train_dataloader, eval_dataloader, model, optimizer
)
num_epochs = 3
num_training_steps = num_epochs * len(train_dataloader)
lr_scheduler = get_scheduler(
"linear",
optimizer=optimizer,
num_warmup_steps=0,
num_training_steps=num_training_steps
)
progress_bar = tqdm(range(num_training_steps))
model.train()
for epoch in range(num_epochs):
for batch in train_dataloader: |
[
0.029465072,
0.011380308,
-0.027810538,
-0.010545849,
0.0013631912,
-0.032026,
-0.019293291,
0.01732224,
-0.021882996,
0.041348934,
-0.010617784,
0.017926503,
-0.00024907914,
-0.033579823,
0.007200815,
0.02169596,
0.0021095295,
-0.05147755,
-0.08275542,
0.02222829,
-0.0121788,
0.022285838,
-0.052570984,
-0.029666493,
-0.040773444,
0.0208615,
0.004139929,
-0.05691593,
0.04146403,
0.012221962,
-0.03427041,
-0.01972491,
0.0014252361,
-0.043449473,
0.02217074,
0.006395129,
0.012250736,
-0.006380742,
-0.0781515,
-0.04428393,
0.011934217,
-0.054642744,
0.0037047148,
-0.000043077427,
-0.09265384,
-0.014732536,
-0.017351015,
-0.021508927,
0.0058628013,
-0.03662992,
0.0053052953,
0.04652834,
0.018027214,
-0.02566684,
-0.015005893,
-0.022199515,
0.001850559,
0.014099497,
-0.018372508,
0.0058771884,
0.018789738,
0.030069336,
-0.014933958,
-0.052196916,
0.01100624,
0.015063442,
-0.020573756,
-0.028918358,
-0.03093257,
-0.03714786,
-0.048427455,
-0.0051110676,
0.016861849,
-0.00499597,
-0.00056424964,
0.020257236,
0.040773444,
-0.010912723,
-0.022415323,
0.060426418,
0.020775178,
0.02290449,
0.039766338,
0.026299879,
-0.022372162,
-0.033292077,
0.06877102,
-0.013790172,
-0.013797365,
-0.027048016,
-0.017437337,
0.026285492,
-0.034471832,
0.03395389,
0.02880326,
0.017609984,
-0.014300918,
0.015768418,
0.011653666,
0.018386895,
0.009553129,
0.06353406,
-0.016818685,
0.014890796,
-0.02473167,
-0.0019224952,
0.031910904,
-0.023393655,
-0.012689548,
-0.0030788698,
0.010560236,
-0.011653666,
0.03939227,
0.020199688,
0.017379789,
0.008042469,
0.007326703,
-0.002782133,
-0.03582423,
-0.031738255,
0.01851638,
0.0054779425,
-0.011531374,
-0.02592581,
0.033407178,
-0.0018451638,
-0.010804819,
0.025652453,
-0.037809674,
-0.051045936,
-0.010128618,
-0.01450234,
-0.0026832207,
0.035651587,
-0.009927197,
0.027896862,
-0.01763876,
0.049520887,
0.03041463,
-0.027048016,
0.033435952,
0.00324792,
-0.0012031331,
0.10122863,
-0.015782805,
-0.0115457615,
-0.006851924,
0.0070785233,
-0.027191887,
0.034500606,
-0.06307367,
-0.01847322,
-0.017092044,
0.016027387,
-0.022731842,
0.009366095,
-0.02294765,
0.04851378,
0.0070533454,
0.026990466,
-0.010135812,
-0.019465938,
-0.03573791,
0.020990986,
0.0060678194,
0.042816434,
-0.05608147,
-0.047190156,
-0.010459525,
-0.041607905,
0.006200901,
-0.04252869,
0.010876755,
-0.0076684,
0.020127751,
0.04434148,
0.045837753,
0.009581903,
0.00881938,
0.015394349,
-0.022602357,
-0.0073374934,
0.01778263,
0.019595424,
0.015897902,
-0.005053519,
0.02290449,
0.023278559,
-0.037378054,
-0.011337147,
0.014790085,
0.07366268,
-0.041694228,
0.024990639,
-0.026170393,
-0.02457341,
-0.024602184,
-0.023120299,
0.010049488,
-0.01867464,
-0.014516727,
0.040456925,
-0.032026,
0.010495493,
0.006215289,
0.019969491,
-0.001428833,
0.015164154,
-0.017192755,
0.015768418,
0.052513435,
0.015020281,
-0.037867222,
0.007445398,
0.03806864,
-0.006280031,
-0.03944982,
-0.008301439,
0.0137757845,
0.028903969,
0.005125455,
0.0024907913,
0.02806951,
0.010279684,
0.028601836,
-0.009143093,
0.016948171,
0.029191714,
-0.009200641,
0.022055643,
0.013200294,
-0.00024817992,
-0.007920177,
0.0781515,
0.006531808,
0.012711128,
0.049751084,
0.039737564,
-0.003008732,
0.025120124,
0.0057980586,
0.028414803,
0.013502426,
0.0348459,
0.00097473565,
0.018055988,
-0.005355651,
0.0004035172,
-0.032428842,
-0.018214248,
-0.04638447,
0.028716935,
-0.0032784927,
-0.01779702,
-0.050412897,
0.02171035,
0.011272404,
0.026357427,
-0.033205755,
0.0027839313,
0.008970445,
0.026112845,
-0.025652453,
-0.0019782458,
0.014595857,
0.026616398,
-0.0025141705,
-0.018084763,
0.061577395,
-0.02540787,
0.005981496,
-0.05403848,
-0.08298561,
-0.008064049,
-0.027767377,
0.010401976,
0.0062548537,
-0.03953614,
-0.02560929,
-0.01283342,
0.0005264831,
0.002174272,
0.012876581,
0.032543942,
0.016631652,
0.017149592,
-0.023911597,
-0.026199168,
-0.03438551,
-0.005391619,
-0.000348441,
-0.0216528,
0.0018262805,
-0.010776045,
0.020386722,
-0.02159525,
0.011114145,
0.020027041,
-0.042384814,
-0.012157219,
-0.0070929104,
0.020199688,
0.021134859,
0.020847114,
-0.031018894,
0.04511839,
-0.01173999,
-0.049261916,
0.009697001,
0.029983012,
-0.029666493,
0.046614666,
0.02545103,
0.010711302,
-0.023278559,
0.050269023,
0.010186167,
-0.003598609,
-0.021293119,
-0.021436991,
-0.019753683,
0.014696568,
0.004895259,
-0.01400598,
0.018199861,
0.04851378,
-0.015005893,
-0.06514543,
-0.0038953458,
-0.014171434,
-0.04793829,
-0.033982664,
0.008179147,
0.0017453523,
-0.0028468755,
0.0064634685,
-0.054700296,
0.036227077,
-0.027824927,
0.03933472,
0.017523661,
0.007247573,
0.03694644,
0.051736522,
-0.025062576,
-0.0022713859,
0.037694573,
-0.053923383,
0.0047334027,
-0.005542685,
-0.0020519805,
-0.013754204,
0.017437337,
0.0077043683,
0.023868434,
0.020257236,
-0.021149246,
0.02149454,
-0.009502773,
0.020559369,
0.019897556,
-0.015063442,
0.01873219,
-0.009056769,
-0.011150112,
-0.020645693,
0.015437511,
0.044485353,
0.07153337,
-0.049578436,
0.04569388,
0.034961,
-0.046931185,
-0.035507713,
-0.010423557,
-0.023897208,
0.052398335,
0.037838448,
0.046816085,
-0.03099012,
0.006431097,
0.03228497,
-0.020616919,
0.009265384,
0.036399722,
0.014710955,
0.0100782635,
0.03752193,
0.018271798,
-0.013200294,
0.027724216,
-0.023695787,
0.013854914,
-0.07734581,
-0.03323453,
-0.047132604,
0.046729762,
0.06842572,
0.01565332,
0.009186254,
0.039766338,
-0.06198024,
-0.013293812,
0.0333784,
0.01632952,
0.014473566,
-0.049002945,
0.031536836,
0.011768764,
0.016991332,
-0.016833073,
-0.0142649505,
0.006125368,
0.030731149,
-0.023710174,
-0.010711302,
-0.0195091,
0.008222309,
-0.02598336,
0.010732883,
-0.004974389,
-0.025436644,
-0.037550703,
0.02217074,
0.03775212,
-0.07654013,
-0.00933732,
-0.044571675,
-0.0007094709,
0.027292598,
-0.029134165,
-0.027048016,
-0.052628532,
-0.042183395,
-0.05723245,
0.042010747,
0.012114058,
-0.020904662,
0.011445051,
-0.039248396,
0.007884209,
-0.00091179146,
0.015710868,
-0.012063703,
0.003474519,
0.036917664,
0.00070677325,
-0.006531808,
-0.0043017855,
-0.019537875,
0.031939678,
-0.023724562,
-0.003492503,
-0.022976426,
0.031997226,
-0.022631131,
0.015523834,
0.0024710088,
0.019840008,
0.012308286,
-0.03274536,
-0.028529901,
0.030472178,
-0.034903448,
-0.0473628,
0.0321411,
-0.0034223653,
-0.009315739,
0.013732622,
-0.015523834,
-0.035335068,
0.038931876,
0.04632692,
-0.007175637,
-0.01043075,
-0.042183395,
0.021954931,
-0.01340891,
0.0059383344,
0.041550357,
-0.032112323,
0.04543491,
-0.0005152431,
-0.031133993,
0.0036975213,
-0.060886808,
0.007934564,
-0.008323019,
-0.020645693,
-0.0004435317,
0.004366528,
-0.022444097,
-0.002418855,
-0.014725342,
-0.006715245,
-0.020041429,
-0.02743647,
0.02880326,
0.046614666,
0.014905183,
-0.031536836,
-0.0433056,
-0.0243576,
0.03792477,
-0.049578436,
0.027968798,
-0.00049456145,
-0.023983533,
0.021192407,
0.016948171,
-0.045952853,
0.043219276,
-0.028184608,
-0.01637268,
0.028529901,
-0.006679277,
-0.026558848,
-0.0045427717,
0.021408217,
0.048772752,
-0.028616225,
-0.023940371,
-0.018214248,
0.031105217,
-0.035651587,
0.040773444,
-0.009999134,
-0.031162767,
-0.033925116,
-0.031133993,
0.04339192,
-0.024602184,
-0.015523834,
-0.050269023,
-0.08764708,
-0.029349973,
-0.010646559,
0.045463685,
-0.037550703,
0.029867915,
-0.06267083,
0.05024025,
-0.07918738,
0.0057045417,
-0.0126607735,
0.016459005,
-0.016156873,
0.041089963,
0.026458139,
0.01022933,
0.01904871,
0.03959369,
0.0030069335,
0.023854047,
-0.061692495,
-0.010898336,
0.031076442,
0.015538221,
0.0156101575,
0.023580689,
-0.0053232796,
0.011948604,
0.006740423,
0.05904524,
0.006204498,
-0.015984226,
-0.058297105,
0.0018046997,
0.046039175,
-0.011063789,
0.023753338,
-0.015782805,
0.020401109,
-0.025321547,
0.02676027,
-0.038845554,
0.0073734615,
-0.032630265,
-0.05524701,
0.014049142,
-0.01763876,
-0.0033612195,
0.016890623,
-0.03317698,
0.031939678,
-0.045147166,
0.05576495,
0.067159645,
0.034040216,
0.0445429,
-0.07947513,
0.024472699,
0.0061073843,
0.0043521407,
0.0067979717,
-0.002143699,
-0.014804472,
-0.02101976,
-0.007776304,
-0.042068295,
0.0053448603,
0.03130664,
0.020990986,
0.0007863527,
0.040054083,
-0.008783411,
-0.035392616,
-0.024314439,
0.04324805,
0.020314787,
0.021796672,
0.0024476296,
0.0012615813,
0.027134338,
0.01909187,
-0.009984746,
-0.0045427717,
0.010178974,
0.06376426,
0.0023864838,
-0.017034495,
0.03798232,
0.035133645,
-0.06198024,
-0.064454846,
0.00474779,
0.021998093,
-0.022026869,
-0.014933958,
0.005053519,
0.0013200295,
-0.04664344,
0.061289653,
0.0016095727,
-0.061059456,
0.008905703,
-0.015466285,
-0.02795441,
-0.09035188,
0.000029505087,
0.024055468,
-0.013552782,
-0.029349973,
-0.055736177,
0.0026364622,
-0.011178887,
-0.009085543,
0.0060642227,
-0.021321893,
0.0047621774,
0.042240944,
0.024587797,
0.06238308,
-0.0035338663,
0.023667013,
-0.017984053,
-0.030011786,
-0.052196916,
-0.0074094296,
0.019221356,
-0.0013541991,
0.018084763,
-0.016343907,
-0.00590956,
0.027637891,
0.008438118,
-0.0022749826,
-0.09242364,
-0.005409603,
-0.050700642,
-0.024098631,
-0.0023631046,
-0.025882648,
-0.0092222225,
0.021983705,
0.0243576,
-0.059275437,
0.025307158,
0.0104451375,
-0.029465072,
-0.013243456,
-0.047967065,
0.021134859,
-0.06554828,
-0.026414977,
-0.02342243,
-0.021667186,
-0.008682701,
0.03145051,
0.0013380136,
-0.000696882,
-0.013459265,
0.04503207,
0.019552262,
-0.014689374,
0.0037550703,
0.008632345,
-0.018127926,
0.0056469925,
-0.018171087,
0.045866527,
0.01241619,
-0.0032569119,
0.033349626,
0.0146318255,
-0.012768677,
-0.016473392,
-0.005294505,
0.055304557,
-0.0011482817,
0.0021778687,
0.005125455,
0.0216528,
-0.036083203,
0.027724216,
-0.029954238,
-0.01889045,
-0.006985006,
0.056167793,
0.027422084,
0.04011163,
0.0010376798,
0.00035248743,
0.017609984,
0.0031633948,
-0.009970359,
-0.045463685,
-0.02133628,
0.0070497487,
-0.0070533454,
-0.034471832,
0.017394176,
0.027494019,
-0.020516207,
0.018645866,
-0.0013748808,
0.013876495,
0.002325338,
-0.012840614,
0.0032281375,
0.063361414,
0.024386376,
-0.016214421,
-0.05962073,
-0.005546282,
-0.06249818,
0.008682701,
-0.05680083,
-0.021106085,
0.005139842,
-0.055333335,
-0.0015502253,
-0.00025537354,
0.016113712,
0.027983187,
0.040456925,
-0.00045297333,
-0.041089963,
-0.020170914,
0.035853006,
0.034961,
-0.006549792,
-0.04992373,
0.01831496,
-0.0067979717,
0.000009364352,
-0.020401109,
0.022472871,
0.079302475,
0.016833073,
-0.03421286,
-0.0174805,
-0.029551396,
0.014725342,
0.028961519,
-0.055304557,
0.028544288,
-0.038212515,
0.0037910384,
0.010157393,
0.0035194792,
-0.018545154,
0.045952853,
-0.012150026,
-0.011430664,
0.031133993,
0.0029062228,
0.0026706317,
-0.03369492,
0.007970532,
0.0019332856,
0.03009811,
0.0041255415,
0.0049564047,
-0.01768192,
0.068943664,
0.013020454,
0.043737218,
-0.0118047325,
0.044801872,
0.021609638,
-0.05326157,
-0.027249437,
0.01841567,
0.018228635,
0.0092222225,
0.012092477,
-0.033608597,
-0.02419934,
0.00060201617,
0.018545154,
-0.006190111,
-0.024587797,
0.0057584937,
-0.02958017,
-0.01768192,
0.056052696,
-0.0055966373,
-0.012617611,
0.03870168,
-0.03838516,
0.06911631,
0.014710955,
0.004992373,
0.02608407,
0.009128705,
0.030875022,
-0.0018865272,
0.017336627,
0.011632085,
0.033119433,
-0.019365229,
0.021724736,
-0.035536487,
0.028860807,
-0.04695996,
-0.0156101575,
-0.00017590652,
0.019135032,
0.005168617,
-0.05800936,
0.038356386,
-0.0021724736,
0.00601027,
-0.0642822,
0.005204585,
-0.066871904,
0.0037946352,
0.02509135,
0.009481193,
-0.050297797,
0.031651933,
0.0348459,
-0.008387762,
0.040341828,
0.07170601,
0.032802913,
0.039507367,
0.04016918,
-0.011610504,
-0.00090190023,
0.012157219,
-0.012013347,
-0.03907575,
0.014149853,
0.026731497,
-0.040370602,
-0.066238865,
-0.04903172,
0.038356386,
0.021969318,
-0.006251257,
-0.04897417,
0.017955279,
-0.029278038,
-0.020386722,
-0.004366528,
0.0861508,
0.02028601,
-0.009272577,
-0.005319683,
0.012272318,
-0.012243543,
-0.009661033,
-0.0026130828,
0.017609984,
-0.008380569,
0.0011950403,
-0.02008459,
-0.06549072,
-0.008064049,
0.054959264,
0.0027641489,
-0.02201248,
0.030270757,
0.011027821,
0.060944356,
0.017451724,
0.004629095,
-0.011308372,
0.0613472,
0.04057202,
-0.004780161,
0.03752193,
0.05536211,
0.015638933,
-0.010373201,
0.025321547,
0.030069336,
-0.010452331,
-0.0036597548,
0.01654533,
-0.018703414,
-0.028227769,
-0.054355,
-0.06733229,
-0.015797192,
-0.016631652,
0.039507367,
-0.042183395,
-0.0067296326,
-0.06364916,
-0.024803605,
-0.04388109,
0.051822845,
-0.015207315,
-0.048226036,
-0.03694644,
-0.03688889,
0.24746056,
0.059448086,
0.04221217,
0.041924424,
0.042240944,
0.03683134,
0.02441515,
-0.030587276,
0.008193535,
-0.019365229,
-0.015523834,
-0.07061259,
-0.0027371729,
0.027249437,
-0.04727648,
0.03061605,
-0.06848327,
-0.004704628,
0.0058771884,
-0.017609984,
-0.050988387,
0.04549246,
0.013689461,
0.017494887,
0.010013521,
0.01058901,
-0.0061217714,
-0.061174553,
0.033781245,
-0.0077331425,
0.02733576,
-0.010143005,
-0.0025986957,
-0.047564223,
0.011531374,
0.06641151,
0.017811406,
0.00063079066,
0.0006964324,
-0.029695267,
0.01299168,
0.006779988,
0.008538828,
-0.01799844,
0.014538309,
0.026904143,
-0.013768591,
0.064052,
0.045636334,
-0.05654186,
0.028731322,
-0.04370844,
0.007833853,
0.013315393,
-0.047794417,
0.015236089,
-0.03657237,
-0.027494019,
-0.028357254,
0.05697348,
0.049952503,
-0.004704628,
0.004215462,
0.013049229,
-0.020386722,
0.014106691,
-0.019825619,
0.038327612,
-0.038903102,
-0.02791125,
0.027781764,
-0.008625152,
-0.035651587,
-0.052657306,
0.04091732,
0.020199688,
-0.014070723,
0.016271971,
0.0012211172,
-0.047132604,
0.035076097,
-0.0236814,
0.014157047,
-0.013847721,
0.0026436558,
0.03625585,
-0.021293119,
-0.001850559,
-0.0059383344,
0.019278904,
-0.002724584,
0.025307158,
-0.01074727,
0.014732536,
0.00951716
] | outputs = model(**batch)
loss = outputs.loss
+ accelerator.backward(loss)
optimizer.step()
lr_scheduler.step()
optimizer.zero_grad()
progress_bar.update(1)
Train
Once you've added the relevant lines of code, launch your training in a script or a notebook like Colaboratory.
Train with a script
If you are running your training from a script, run the following command to create and save a configuration file: |
[
0.027924161,
0.017417626,
-0.054141536,
0.0010886017,
0.011611751,
-0.028413814,
-0.00032373876,
-0.01243017,
-0.003868252,
0.075658254,
-0.023909014,
-0.004934994,
0.007876405,
-0.011730666,
0.007946354,
0.02244006,
0.0031372712,
-0.054309417,
-0.07554633,
0.021404793,
0.021614645,
0.0076595587,
-0.078288384,
-0.028231943,
-0.036598,
-0.0014505945,
0.0059702587,
-0.012360219,
0.06401852,
0.037913065,
-0.030246513,
-0.008505957,
0.010786337,
-0.03726952,
0.0032439455,
0.0049105114,
-0.009037579,
-0.01828501,
-0.055988226,
-0.040067535,
0.018830622,
-0.017669447,
0.016788073,
-0.02283178,
-0.060604945,
0.0071384287,
0.012367214,
-0.013178637,
0.0014908159,
-0.019138403,
0.012227314,
0.030162573,
-0.0057114423,
-0.024272757,
0.0012853369,
0.012730956,
-0.010926238,
0.01028969,
-0.026581116,
-0.0055470592,
0.006501881,
0.019879878,
-0.005158835,
-0.06866322,
0.020089729,
0.03472333,
-0.02991075,
-0.019306285,
-0.022496019,
-0.048993193,
-0.06597713,
-0.005571542,
-0.011583771,
-0.03150562,
-0.017991219,
0.03438757,
0.032820683,
0.018718703,
-0.019222343,
0.04580346,
0.0547571,
0.008869699,
0.02954701,
-0.0012223816,
-0.030302472,
-0.03858459,
0.044236574,
-0.011723671,
-0.020243619,
-0.022034347,
-0.024748418,
0.027672341,
-0.030246513,
0.033184424,
0.017529547,
0.030722175,
-0.00052244135,
0.06905494,
0.030134592,
0.0035954458,
0.0064144433,
0.08640262,
-0.018774662,
-0.00034406807,
-0.026189394,
0.0023328427,
0.02262193,
0.0009626911,
-0.0032789207,
-0.010723382,
-0.017795358,
-0.007002026,
0.019642046,
0.006442423,
0.023195522,
0.0072398568,
-0.0025776688,
0.011324954,
-0.028357854,
-0.0025881613,
0.032512903,
0.012129383,
0.049021173,
0.005557552,
0.03175744,
-0.026651066,
-0.019474166,
0.021502724,
-0.03961985,
-0.0501124,
-0.010429591,
-0.015193206,
-0.016326401,
0.046419024,
0.019474166,
0.02057938,
0.0005871454,
0.037157603,
0.056547828,
-0.008058275,
0.060101304,
0.009758067,
-0.014927396,
0.083660565,
-0.017599497,
-0.016606202,
-0.02278981,
0.00097318366,
-0.037185583,
0.02754643,
-0.07476289,
0.05204303,
-0.024006944,
-0.0049384916,
0.0067117317,
0.0063934578,
-0.03156158,
0.054029617,
-0.0035394854,
0.020775242,
-0.0063759703,
-0.035226975,
-0.019921847,
0.0013281815,
0.012891841,
0.049189053,
-0.046670843,
-0.049608756,
0.014067006,
-0.023825074,
0.02514014,
-0.009618167,
0.021334844,
-0.008079261,
0.035478797,
0.03626224,
0.039675813,
-0.02056539,
0.008512952,
0.023713155,
0.007463698,
-0.021152973,
0.030750155,
-0.023475323,
0.030498333,
-0.019670026,
0.0014401019,
0.015822759,
-0.062451635,
-0.013437454,
-0.011157074,
0.04160644,
-0.012591055,
0.03654204,
-0.019670026,
-0.014689565,
-0.01026171,
-0.032373,
0.011185054,
0.0032841668,
-0.010639441,
0.032932606,
-0.025853634,
0.023111582,
-0.008918664,
0.03242896,
0.0020460465,
0.032149162,
-0.031029956,
-0.00022908725,
0.0360384,
-0.014353802,
-0.023027642,
0.009422306,
0.035954457,
0.0251961,
-0.051511407,
0.009226445,
-0.0022034347,
0.014353802,
0.02290173,
0.007463698,
0.02937913,
-0.0090026045,
0.018299,
-0.029155288,
-0.013115683,
0.020775242,
0.014605624,
0.024916299,
0.017669447,
0.013843166,
0.0068376423,
0.07705726,
0.017627478,
0.0029134303,
0.02273385,
0.037465382,
0.02064933,
0.014703554,
0.0016884255,
-0.0013675285,
0.0099679185,
-0.0078344345,
-0.006379468,
0.041886244,
0.014577644,
-0.0020547903,
-0.04373293,
-0.002416783,
-0.058478456,
0.049440876,
0.011248009,
-0.035758596,
-0.058198653,
-0.0018152104,
0.025769692,
0.017375655,
-0.035786577,
-0.004819576,
-0.003464289,
0.040459257,
-0.026175404,
-0.04353707,
0.0117796315,
0.049189053,
0.02045347,
0.0030340946,
0.035842538,
-0.022649908,
-0.023909014,
-0.02487433,
-0.03461141,
-0.019600077,
-0.010660427,
-0.01376622,
0.003658401,
-0.046726804,
0.0114019,
-0.0027000818,
0.0046447003,
0.0015939926,
0.015179217,
0.016550243,
0.013297553,
-0.0072118766,
-0.056687728,
-0.00087437883,
-0.030694194,
0.03150562,
-0.0058513433,
-0.022258187,
-0.010793332,
-0.024524577,
-0.0019516136,
-0.008946644,
0.022216218,
0.010646436,
-0.037353463,
-0.016340392,
-0.0006269296,
0.0018991508,
0.004760118,
-0.0059947413,
-0.03587052,
0.011227024,
-0.0031792414,
-0.03461141,
0.0051763225,
0.0034905202,
-0.009988904,
0.037325483,
0.024230786,
0.022370107,
-0.042333927,
0.05470114,
0.015277147,
-0.009814028,
-0.03651406,
-0.041494522,
-0.02295769,
-0.0021824494,
-0.009981909,
-0.045859423,
-0.024020934,
0.056659747,
-0.018830622,
-0.06704038,
0.0077155186,
-0.019725986,
-0.06351488,
-0.01261204,
-0.0056694723,
0.045327798,
-0.008429012,
0.014857445,
-0.070621826,
0.014787495,
-0.02957499,
0.04535578,
0.032708764,
0.012185344,
0.027140718,
0.04093492,
-0.0061941,
-0.014339813,
0.055232763,
-0.051679287,
0.015654879,
0.0069180853,
0.03668194,
-0.0103316605,
0.029854791,
0.013829175,
0.0412427,
0.03690578,
-0.033072505,
0.014955375,
0.0053511984,
0.02954701,
0.015291137,
-0.0180192,
0.017095855,
-0.009338366,
-0.008324087,
-0.04362101,
0.026874907,
0.0005373058,
0.054365378,
-0.03892035,
0.026035504,
0.02052342,
0.0046447003,
-0.018732691,
0.010569491,
-0.033464227,
0.041886244,
0.060045343,
0.06396256,
-0.04577548,
-0.00921945,
0.055708423,
-0.011352935,
0.014248878,
0.037325483,
0.037717205,
-0.00399766,
0.04101886,
0.036653962,
-0.0017400138,
0.011877562,
-0.00019323772,
-0.032904625,
-0.02712673,
-0.053078294,
-0.03421969,
0.049468856,
0.04488012,
0.015626898,
-0.011436875,
0.057023488,
-0.07979931,
0.009331371,
0.020663321,
0.035422835,
0.0058618356,
-0.06345892,
0.032960583,
0.015640888,
-0.0038857395,
-0.015221187,
-0.011248009,
-0.0067222244,
-0.0028102535,
-0.016816054,
-0.026021514,
-0.013241593,
-0.024258766,
-0.03276472,
0.025741713,
0.02732259,
-0.026259344,
-0.011786627,
0.035282936,
0.0454677,
-0.06815958,
0.011954507,
-0.028483765,
0.014339813,
0.0019516136,
-0.029211247,
0.0020792729,
-0.055624485,
-0.026063483,
-0.06155627,
0.05763905,
0.038164888,
-0.033296347,
0.000330078,
-0.069614545,
0.014318828,
-0.01355637,
0.024804378,
-0.015570939,
-0.00127397,
0.015347097,
-0.002735057,
-0.008205171,
-0.005396666,
-0.025433931,
0.033044524,
-0.01810314,
0.0049245018,
-0.035115052,
-0.00032067843,
-0.03206522,
-0.014493704,
0.020761251,
0.03421969,
0.017375655,
-0.02968691,
-0.019124413,
0.01376622,
-0.028455785,
-0.04113078,
-0.0023905516,
-0.015500988,
0.0058793235,
0.019446185,
-0.007288822,
-0.0413826,
0.036849823,
0.024090886,
-0.0080233,
0.0002149879,
-0.03861257,
0.005498094,
0.0076385736,
0.01592069,
0.060325146,
-0.051259585,
0.044516373,
-0.026679046,
-0.028483765,
-0.0012022709,
-0.07767282,
0.0015345349,
0.002965893,
-0.0032352016,
0.03136572,
0.014451733,
-0.01853683,
-0.026916878,
-0.0112969745,
0.014178927,
-0.008932654,
-0.016172512,
0.017851317,
0.0737556,
0.01839693,
-0.014087992,
-0.035702635,
-0.00402564,
0.025252061,
-0.056212068,
0.036318198,
-0.016886003,
-0.03668194,
0.008603888,
-0.006970548,
-0.031225817,
0.033660088,
-0.01628443,
-0.008911669,
0.009583192,
-0.01023373,
-0.016941965,
-0.028371844,
-0.0046866704,
0.04829369,
-0.009925948,
-0.06200395,
-0.037605286,
0.021111002,
-0.012968787,
-0.023741134,
0.0110171735,
-0.030750155,
-0.022006366,
-0.04591538,
0.0368778,
-0.027840221,
-0.0006076933,
-0.021894446,
-0.08690626,
-0.012870857,
0.008995609,
0.04141058,
-0.04538376,
0.025755703,
-0.049664717,
0.05948574,
-0.05425346,
-0.017459596,
0.014675574,
0.033939887,
-0.018676732,
0.011744657,
-0.0053511984,
-0.0073447824,
0.040011574,
0.017291715,
0.0057114423,
0.012038448,
-0.06720825,
-0.023573253,
0.014325823,
0.007974335,
-0.014136957,
0.0068586273,
-0.01156978,
0.012290269,
0.016592212,
0.011178059,
-0.0026598603,
-0.016941965,
-0.0229437,
-0.040151477,
0.033408266,
-0.029043367,
0.04292151,
-0.008212166,
0.017557526,
-0.03217714,
0.024076896,
-0.035674658,
0.02071928,
-0.024832359,
-0.05246273,
0.014745524,
-0.023405373,
0.002714072,
0.03494717,
-0.03880843,
0.037493363,
-0.044768196,
0.04776207,
0.046838727,
0.014717544,
0.042333927,
-0.05047614,
0.015361087,
0.01620049,
0.01359834,
-0.004976964,
-0.010884267,
-0.0025741712,
-0.028064063,
-0.015654879,
-0.06317911,
0.014563654,
0.0054316414,
0.011080128,
0.006624294,
0.042837568,
-0.009779053,
-0.04776207,
-0.045187898,
0.005865333,
-0.0007873781,
0.004819576,
0.014304837,
0.028959427,
-0.0017540039,
0.047202468,
-0.01638236,
-0.0053581935,
0.02511216,
0.056323987,
-0.010163779,
-0.030834096,
0.040459257,
0.021362824,
-0.047650147,
-0.073196,
0.009625162,
0.017753387,
0.023363402,
-0.020243619,
-0.008163201,
-0.024622507,
-0.02313956,
0.012416179,
0.0020355538,
-0.022188237,
0.027910173,
0.011010178,
-0.0022611436,
-0.07101355,
0.04127068,
0.0457475,
-0.024678469,
-0.021278882,
-0.041830283,
-0.031617537,
-0.044628296,
-0.0112969745,
0.02729461,
-0.028120022,
0.027854212,
0.031253796,
0.050532103,
0.04320131,
-0.016410341,
0.01628443,
0.004553765,
-0.011324954,
-0.08091851,
0.0007891269,
0.017039895,
-0.021236913,
0.0074986727,
0.009016595,
0.015431037,
0.030442374,
-0.011206039,
-0.0089606345,
-0.10929036,
0.011052148,
-0.028651645,
-0.03220512,
0.013969076,
-0.015347097,
0.00044768196,
0.020845192,
0.012024458,
-0.06480196,
0.010268705,
-0.0009775555,
-0.0006334875,
-0.026273334,
-0.05240677,
0.01378021,
-0.055848323,
-0.02530802,
-0.033016544,
-0.015221187,
0.012234309,
0.021880455,
0.0015013084,
0.013878141,
-0.014199913,
0.047342367,
0.028959427,
0.00084945903,
0.0084779775,
-0.0023730642,
-0.008918664,
0.0024797383,
-0.039172173,
0.057695013,
0.03908823,
-0.020299578,
0.01273795,
0.0018414418,
-0.0154450275,
-0.031085916,
0.0047426308,
0.077001296,
0.007246852,
-0.016969943,
-0.0048965216,
0.052882433,
-0.042669687,
0.03184138,
-0.017879298,
-0.04141058,
-0.028203964,
0.04723045,
0.024356697,
0.050895844,
-0.009240435,
0.02774229,
0.01793526,
0.017641468,
-0.02522408,
0.0045187897,
-0.0048475564,
0.023195522,
-0.005679965,
-0.039647833,
0.030246513,
0.03424767,
-0.02487433,
0.025685752,
-0.007757489,
-0.01255608,
-0.005484104,
0.027840221,
-0.037129622,
0.055568524,
0.03150562,
-0.012164358,
-0.02756042,
-0.03606638,
-0.04563558,
-0.012248298,
-0.04412465,
-0.02306961,
-0.0013587847,
-0.036150318,
0.009548217,
-0.021208933,
-0.030554295,
0.007302812,
0.035143033,
0.019921847,
-0.042138066,
-0.028581696,
0.023853054,
0.0412427,
-0.012926817,
-0.074035406,
-0.013857156,
0.0047041583,
-0.04860147,
-0.05265859,
0.0018641757,
0.07442713,
0.011192049,
-0.007554633,
-0.033072505,
-0.019404216,
0.008072265,
0.03206522,
-0.070006266,
0.012059432,
-0.024790388,
-0.018984513,
-0.030386413,
-0.0029099328,
-0.017907279,
0.04563558,
-0.009772058,
-0.008275121,
0.025601812,
0.013122678,
-0.0017898534,
-0.03819287,
0.016746104,
0.032149162,
0.004907014,
0.020999081,
0.02060736,
-0.014633604,
0.047258426,
0.011646726,
0.047454286,
-0.0055820346,
0.045131937,
-0.0023328427,
-0.037325483,
-0.032512903,
0.020411499,
0.0032089702,
-0.01044358,
0.026567126,
-0.07414732,
-0.007596603,
0.022510009,
0.04571952,
0.015361087,
-0.011234019,
0.030946016,
-0.017333686,
-0.06648077,
0.03693376,
-0.02530802,
-0.034639392,
0.02728062,
-0.01638236,
0.07521057,
0.011038158,
0.0062185824,
-0.0034660376,
0.0054526264,
0.03435959,
-0.0128288865,
0.024160836,
0.028959427,
0.04806985,
-0.03220512,
0.05036422,
-0.02722466,
0.0085199475,
-0.05679965,
-0.05056008,
0.024524577,
0.004336919,
0.00800931,
-0.046782766,
0.019614065,
0.004392879,
-0.0018641757,
-0.051819187,
0.004851054,
-0.06648077,
-0.01130397,
0.040095516,
-0.012591055,
-0.0041445554,
0.04846157,
-0.0014689565,
-0.012297263,
0.055596504,
0.06166819,
0.031393696,
0.021083022,
0.048909254,
0.010667422,
0.008547927,
0.009960923,
-0.010569491,
-0.016452312,
-0.02295769,
0.030470353,
0.00089973584,
-0.04972068,
-0.01596266,
0.027518451,
-0.015361087,
-0.0011874065,
-0.014039027,
0.04093492,
-0.014871435,
-0.04073906,
-0.0019498648,
0.06894302,
0.028763566,
-0.009793043,
-0.004900019,
-0.014136957,
-0.021124993,
0.02050943,
-0.010226735,
0.03861257,
-0.0064179404,
-0.042641707,
0.0054526264,
-0.06536157,
-0.022286167,
0.03961985,
-0.019474166,
-0.015459018,
0.04557962,
0.026161414,
0.040151477,
0.047510248,
-0.010947223,
-0.029323168,
0.05931786,
0.037241545,
0.009534227,
0.031197837,
0.050672002,
0.019474166,
-0.021446764,
0.008743788,
0.009723092,
-0.0032264579,
0.0024570045,
0.03189734,
-0.015151236,
-0.03150562,
-0.042641707,
-0.040291376,
-0.023657193,
-0.017347677,
0.0035919482,
-0.028064063,
-0.026133435,
-0.054085575,
-0.008701818,
-0.02270587,
0.06317911,
-0.030638235,
-0.025601812,
-0.026105454,
-0.021684594,
0.23145157,
0.05425346,
0.009618167,
-0.0011025917,
0.041550484,
0.05498094,
0.02537797,
-0.008610883,
-0.004718148,
-0.025489891,
0.0070754737,
-0.04563558,
0.040431276,
0.0028522238,
-0.0320932,
0.03634618,
-0.04359303,
0.016564233,
0.009737083,
-0.046391044,
-0.046447005,
0.025084179,
0.020005787,
0.02971489,
-0.01583675,
0.022202227,
0.009555212,
-0.05279849,
0.03447151,
0.0062290747,
0.03866853,
0.004392879,
0.011450865,
-0.025713732,
0.0250562,
0.037493363,
-0.012961792,
-0.024930289,
-0.0024937284,
-0.028987408,
0.013332528,
0.008121231,
-0.014269862,
-0.056379948,
0.0013071963,
0.032540884,
-0.007617588,
-0.020663321,
0.010107819,
-0.049272995,
0.047510248,
-0.051707268,
0.007729509,
0.0056240046,
-0.06351488,
0.0076595587,
-0.021446764,
-0.03472333,
-0.01586473,
0.06217183,
0.06150031,
0.014577644,
-0.00454677,
0.05481306,
0.022398088,
0.010310675,
0.008261131,
0.014647594,
-0.032792702,
0.0020390514,
0.026413236,
0.03198128,
-0.054505277,
-0.04127068,
0.021754546,
0.017487576,
0.0074776877,
0.061052628,
-0.026371265,
-0.030890055,
0.03198128,
-0.005050412,
0.033324327,
-0.019152394,
0.008324087,
0.04787399,
-0.007246852,
0.012723961,
-0.037521344,
0.012185344,
-0.02501423,
0.04107482,
0.010989193,
0.0014558408,
-0.004711153
] | for epoch in range(num_epochs):
for batch in train_dataloader:
outputs = model(**batch)
loss = outputs.loss
accelerator.backward(loss)
optimizer.step()
lr_scheduler.step()
optimizer.zero_grad()
progress_bar.update(1)
As you can see in the following code, you only need to add four additional lines of code to your training loop to enable distributed training! |
[
0.017332751,
0.005442256,
-0.042628046,
0.015541178,
-0.010557479,
0.017844629,
-0.008225592,
0.01709103,
0.0029610707,
0.033727057,
-0.07063913,
0.049168706,
0.030456727,
-0.0003516938,
-0.00086423807,
0.010941388,
-0.026745614,
-0.030968606,
-0.07308477,
0.031338297,
-0.0044042817,
0.00050876744,
-0.078032926,
0.0041305693,
-0.05394623,
0.017290095,
-0.003625801,
-0.013977108,
0.034637064,
0.022636373,
-0.00074515544,
-0.016337432,
-0.006441129,
-0.01139639,
-0.02013386,
-0.017233219,
0.0053853807,
-0.001891104,
-0.05713125,
-0.02135668,
-0.011133342,
-0.0119935805,
-0.008182935,
0.0045997906,
-0.10544682,
-0.012206864,
0.025153106,
0.0008829003,
-0.021200271,
-0.020048546,
0.035603944,
0.05829719,
0.01443922,
0.00021717037,
-0.076838546,
-0.014496095,
-0.03577457,
-0.030769542,
0.0032170096,
-0.016564934,
-0.01989214,
0.008438874,
-0.021129178,
-0.03321518,
0.017389625,
-0.003625801,
0.019934796,
-0.038248647,
-0.028167497,
-0.03566082,
-0.037139576,
0.025920922,
-0.019138541,
0.0036577934,
-0.024769198,
0.05007871,
0.005129442,
0.010486385,
-0.008744579,
0.029290784,
0.045386497,
0.027982652,
-0.0051116683,
0.027840463,
-0.07479103,
-0.015214145,
0.04109241,
-0.045983687,
-0.021669492,
-0.05613593,
-0.01467383,
0.014488985,
0.0021968088,
-0.0059719076,
0.019920576,
0.021655275,
-0.011631001,
0.017873066,
0.02364591,
0.01758869,
0.01855557,
0.042827107,
-0.0028846445,
0.038703647,
-0.030286102,
0.015000863,
0.026859365,
-0.024555914,
-0.0075004315,
-0.027868902,
-0.008190044,
0.009761225,
0.024954041,
-0.005747961,
0.008865438,
-0.02098699,
0.0019444246,
-0.023475284,
-0.027243273,
-0.0060394467,
-0.01818588,
-0.010941388,
-0.017972598,
-0.030257665,
0.011574126,
-0.023830755,
-0.042514294,
0.05141528,
-0.00884411,
-0.018342286,
-0.034295812,
-0.016536497,
-0.043594923,
0.03204924,
-0.007884339,
0.013806481,
0.0058403835,
0.010514823,
0.0153136775,
-0.040779598,
0.0342105,
-0.00021728146,
0.029376097,
0.091683,
-0.0036329103,
-0.03199236,
-0.038618334,
-0.04899808,
-0.013067102,
0.036656138,
-0.06802287,
-0.038845837,
-0.019053228,
0.01768822,
-0.0789998,
0.0276414,
-0.014801799,
0.022892311,
0.018100567,
0.053491227,
-0.04149054,
0.024186226,
-0.022821218,
0.028949533,
0.034608625,
0.07473416,
-0.07905668,
-0.019934796,
0.007663948,
-0.05164278,
0.003169021,
0.008886768,
0.031082356,
0.02351794,
0.07103726,
0.02934766,
0.023617472,
0.011730532,
0.010202008,
0.011062248,
-0.038845837,
-0.008893876,
0.02886422,
-0.0065868716,
-0.0075004315,
0.010109587,
0.018541351,
0.040409908,
-0.0009819878,
0.01829963,
-0.010742324,
0.053747166,
-0.062221587,
0.043083046,
-0.024157787,
-0.04521587,
-0.046609316,
-0.031082356,
0.020062765,
-0.063814096,
-0.011069357,
0.04106397,
-0.012832492,
-0.0014245488,
0.034352686,
-0.016237902,
-0.0031850173,
0.066544116,
0.01928073,
-0.018882602,
0.059207197,
0.029489849,
0.014801799,
0.021015426,
0.023944505,
0.0069032405,
-0.011815846,
0.028153278,
0.0006651745,
-0.011346624,
0.03176486,
0.018754633,
0.04302617,
0.01915276,
0.025551233,
0.0040665846,
0.018328069,
0.04621119,
0.011147561,
0.03822021,
0.019223854,
0.01879729,
-0.006512223,
0.07951168,
-0.027954215,
-0.005890149,
0.030371414,
0.03381237,
-0.014161952,
0.03258955,
0.015569616,
0.025266856,
0.026774053,
0.023731222,
-0.0067112865,
-0.016053056,
-0.019963233,
0.009114268,
-0.041007098,
0.0005096561,
-0.04717807,
0.00442561,
-0.015910868,
-0.030399853,
-0.009547942,
0.017489158,
-0.013195071,
0.0054991315,
0.0075999633,
0.012562334,
0.02885,
0.012924914,
-0.043139923,
-0.021385117,
0.030741105,
0.04134835,
0.0025007362,
0.008723251,
0.04049522,
-0.0038355286,
0.014233046,
-0.023802318,
-0.041632727,
-0.038163334,
-0.029546723,
0.01817166,
0.038959585,
-0.04888433,
-0.010329978,
-0.009156925,
0.026233736,
0.05454342,
0.006281167,
0.04581306,
0.002273235,
0.012299285,
-0.042002417,
-0.004752643,
-0.030940168,
-0.0028295466,
-0.022650592,
-0.019053228,
0.020787926,
0.004443384,
0.017517595,
0.0045749075,
0.011104904,
0.019693077,
-0.057273436,
-0.0054493654,
-0.0004585572,
0.021228708,
0.016579153,
-0.0035778123,
-0.019621981,
0.046893694,
-0.0112044355,
-0.05468561,
0.035632383,
0.018001035,
-0.01528524,
0.043737113,
0.026717177,
-0.00630605,
-0.04473243,
0.03830552,
-0.0017053706,
-0.038362395,
-0.038874272,
-0.04390774,
-0.0153136775,
0.008566843,
-0.00078647886,
-0.024214663,
-0.018811509,
0.05784219,
-0.035006754,
-0.080080435,
0.029575162,
-0.04424899,
0.00703121,
-0.030712668,
0.021299804,
0.0054387012,
-0.025778733,
0.020901676,
-0.03867521,
0.031850174,
-0.013422573,
-0.0032312286,
-0.021043865,
0.00496948,
0.055737805,
0.042229917,
-0.015626492,
0.007141406,
0.031850174,
-0.03395456,
-0.0126192095,
-0.019849483,
0.0062989406,
-0.04171804,
-0.0056448746,
0.032106113,
0.02449904,
0.03551863,
-0.040921785,
0.021868557,
-0.038248647,
0.021783244,
-0.037793644,
0.033272058,
0.016849311,
-0.0011268421,
-0.034722377,
0.019963233,
0.0059114774,
0.044931494,
0.029802661,
-0.07063913,
0.04316836,
-0.015128832,
-0.060970332,
-0.03057048,
-0.028082184,
-0.011623891,
0.036798324,
0.04558556,
0.036457073,
-0.0030765987,
-0.035006754,
-0.01649384,
-0.0061638616,
0.028139059,
0.02715796,
-0.00801231,
0.028821563,
0.036855202,
0.013628746,
-0.033727057,
0.00654777,
0.029205471,
0.024683883,
-0.046239626,
0.0010601913,
-0.052894037,
0.0392724,
0.08809985,
0.015242583,
0.009462629,
0.024100913,
-0.06916038,
0.0065157777,
0.00945552,
0.024385288,
-0.007436447,
-0.031252984,
0.038447708,
0.0018395608,
0.026859365,
-0.049054954,
-0.029233908,
-0.026361706,
0.027442336,
-0.03261799,
-0.014602736,
-0.0070525385,
-0.017261656,
-0.033869248,
0.035859883,
-0.029518286,
-0.032532677,
-0.048201825,
-0.024157787,
0.02364591,
-0.023077156,
-0.03867521,
-0.037168015,
-0.00046788828,
-0.00050699007,
-0.018271193,
0.010585917,
-0.04362336,
-0.020076985,
-0.06853475,
0.041518975,
0.010927169,
-0.032674864,
0.0074151186,
-0.069387875,
-0.0032027909,
0.029063283,
0.013237728,
-0.015455865,
-0.009590599,
0.023020282,
0.0298311,
-0.023873411,
0.011822955,
-0.009277785,
0.029404534,
-0.050476838,
0.024655446,
-0.031594235,
0.047860574,
-0.0071805078,
-0.0070454287,
0.03930084,
0.029376097,
0.037850518,
-0.037054263,
-0.0019319832,
0.052837163,
-0.034523312,
-0.014240156,
0.022024963,
0.005214755,
-0.010443728,
0.054173734,
-0.011815846,
-0.023574816,
0.049737457,
0.03284549,
-0.008431764,
0.013308822,
-0.055254363,
0.0027691165,
-0.006878358,
-0.009199581,
0.023873411,
-0.046154313,
0.024356851,
-0.022949187,
0.022579499,
0.004994363,
-0.054287482,
0.002841988,
-0.0108489655,
-0.008964971,
0.002388763,
-0.029290784,
0.015171489,
-0.005954134,
0.016763998,
-0.00042523182,
-0.023944505,
-0.022209808,
-0.0022447973,
0.043225236,
0.030200789,
-0.03142361,
-0.027115304,
-0.009071612,
0.065406606,
-0.05016402,
0.0023461066,
-0.039243963,
0.01151725,
-0.02026183,
-0.025295293,
-0.023262002,
0.008637938,
-0.018484475,
0.01707681,
0.059377823,
0.012441474,
0.015726022,
0.014289921,
-0.000118527256,
0.043765552,
-0.007493322,
-0.023930287,
-0.025181543,
0.0046744393,
0.004439829,
0.021029646,
0.01807213,
-0.03540488,
-0.026404362,
-0.053661853,
0.045358058,
-0.023816535,
-0.00022972292,
-0.042969298,
-0.048201825,
-0.0061460882,
-0.0025967134,
0.041604288,
0.0036897857,
0.054401234,
-0.07120789,
0.010294431,
-0.08059231,
-0.0017258101,
-0.009320442,
0.018967915,
-0.062619716,
0.049680583,
0.015057738,
0.0074648843,
-0.0019621982,
0.073369145,
0.0038852945,
0.0019550887,
-0.04257117,
-0.04859995,
0.022707468,
0.015967743,
0.0032809945,
0.011886939,
0.00028637607,
0.048571516,
0.008979189,
0.01515727,
-0.006334488,
0.019366043,
-0.059719075,
0.020162297,
0.0066046454,
-0.0385899,
-0.0129462425,
-0.021541523,
0.01552696,
0.03321518,
0.010777871,
-0.040324595,
0.038277082,
0.0023514386,
-0.06705599,
0.003967053,
0.007080976,
-0.017247438,
0.004038147,
0.025494358,
0.040353034,
-0.017773535,
0.026162643,
0.05610749,
0.0102233365,
0.021683712,
-0.029376097,
0.057500936,
0.03554707,
0.015242583,
0.011510141,
-0.015427427,
-0.0021914768,
0.008666376,
0.014531641,
-0.026390143,
-0.020048546,
0.01770244,
0.009988726,
-0.03540488,
0.03986959,
-0.010728105,
-0.017432282,
-0.02775515,
0.02778359,
0.013536324,
-0.0045855716,
0.009611927,
0.0060821036,
0.018626664,
0.05579468,
-0.031707983,
-0.024754979,
0.0127542885,
0.054031543,
-0.035575505,
-0.035859883,
0.018839946,
0.05926407,
-0.047377132,
-0.075359784,
0.0032205645,
0.017489158,
-0.012526787,
-0.019536668,
-0.01236327,
0.02667452,
-0.06364347,
0.029774224,
0.048685264,
-0.05516905,
-0.03793583,
0.021058083,
0.009242238,
-0.036513947,
-0.00993896,
0.029319221,
-0.013237728,
-0.01612415,
-0.048827454,
0.026162643,
-0.031452045,
-0.040921785,
0.040694285,
-0.030883294,
-0.0075146505,
0.04291242,
-0.0131097585,
0.032106113,
0.0015658484,
0.02994485,
0.003449843,
-0.047860574,
0.00028504306,
-0.0104224,
-0.0005963021,
-0.012512568,
0.030968606,
0.013159525,
-0.0024580797,
-0.0058155004,
0.00076070725,
-0.02195387,
-0.08332233,
-0.007336915,
-0.018413382,
0.0021612619,
0.023702785,
-0.018754633,
0.023688566,
0.01443211,
0.019238073,
-0.045187432,
0.004102132,
-0.005456475,
-0.040694285,
0.0037644345,
-0.030485166,
0.009747006,
-0.066600986,
-0.014218828,
-0.045073684,
-0.018697757,
-0.014133515,
0.023333095,
-0.026404362,
-0.008040747,
0.021541523,
0.026958896,
-0.0035298239,
0.0106570115,
-0.0044895946,
-0.0009784331,
-0.032817055,
0.020404017,
0.002594936,
0.033414245,
0.020659955,
0.033044554,
0.02279278,
-0.025423264,
-0.025565451,
-0.037509266,
0.03480769,
0.04859995,
0.018256973,
-0.008623719,
-0.032703303,
-0.008069185,
-0.033869248,
-0.027442336,
-0.036201134,
-0.0069387876,
-0.017503377,
0.03347112,
0.021669492,
0.02594936,
0.002091945,
0.019863702,
0.00910005,
0.011581235,
0.0048450655,
0.011894049,
-0.016209463,
0.020816363,
-0.005228974,
-0.024044037,
0.0076923855,
0.033158306,
-0.010116695,
0.050334647,
0.065406606,
0.014396562,
-0.017290095,
0.017645564,
0.014645392,
0.012477021,
0.016152589,
-0.01965042,
-0.013671403,
0.010365525,
-0.034637064,
-0.0019284284,
-0.043850865,
-0.020787926,
-0.0059576887,
-0.039215527,
-0.021186052,
0.01599618,
-0.012740069,
0.014005545,
0.00020372914,
-0.01939448,
0.0000619852,
-0.015299458,
0.010927169,
-0.027200617,
-0.03258955,
-0.055225924,
0.0066010905,
-0.011936706,
-0.025736077,
-0.009043174,
0.048315573,
0.048144948,
-0.007240938,
-0.0038533022,
-0.02256528,
-0.04271336,
0.021171834,
0.009256457,
-0.06318847,
0.03796427,
-0.05733031,
-0.0006660632,
-0.005563116,
0.010472166,
-0.011225765,
0.04558556,
0.014659611,
0.008709032,
0.011979362,
-0.024996698,
0.008381999,
-0.008495749,
0.026887802,
0.008630828,
0.032191426,
0.0090787215,
0.0010948497,
-0.016792435,
0.04558556,
-0.02134246,
0.04402149,
0.014659611,
0.06603223,
-0.0073440243,
-0.071378514,
-0.03699739,
0.027257493,
-0.00044678221,
0.004525142,
-0.0014112187,
-0.013514996,
0.008524187,
0.0004432275,
0.027911559,
0.030854855,
-0.020418236,
-0.0061887447,
-0.018598227,
-0.015598054,
0.017318532,
0.007109414,
-0.031935487,
0.023461064,
-0.021669492,
0.046012126,
0.02730015,
0.015939305,
0.02193965,
0.056676246,
0.047974322,
0.003807091,
0.016508058,
-0.00294152,
0.060572203,
-0.0017115914,
0.025366388,
-0.020162297,
0.036229573,
-0.024243101,
0.022878094,
-0.0027620073,
0.012690304,
0.008175826,
-0.028906876,
0.024456384,
0.009185363,
-0.034693938,
-0.062733464,
0.020830583,
-0.05565249,
0.009355988,
-0.016877748,
-0.037253328,
-0.017062593,
-0.013166634,
0.012157097,
-0.0027140186,
0.008979189,
0.070127256,
0.019991672,
0.049282454,
0.025053574,
0.01855557,
0.0031565796,
-0.022380434,
-0.033414245,
-0.03833396,
0.046154313,
0.010301541,
-0.041803353,
-0.054230608,
-0.020389799,
0.042485856,
0.033727057,
0.027826246,
-0.040779598,
-0.015470084,
0.01612415,
-0.00045189212,
-0.016863529,
0.10385431,
0.04740557,
0.008296685,
-0.013984216,
-0.035632383,
-0.047718383,
-0.043395862,
-0.005865266,
0.018598227,
-0.013180853,
-0.043765552,
-0.028793124,
-0.042542733,
-0.014289921,
0.0131097585,
-0.029489849,
-0.037765205,
-0.014858674,
0.005442256,
0.037196454,
0.014467657,
0.020048546,
-0.021413554,
0.046723068,
0.05610749,
0.028636718,
0.06523598,
0.051358406,
-0.0077776983,
0.0012796945,
-0.0230345,
0.0034622846,
0.005239638,
-0.0047028773,
0.022963407,
0.0037928722,
-0.010244665,
-0.046125878,
-0.048173387,
0.007187617,
-0.018527132,
0.015441647,
-0.035603944,
-0.04106397,
-0.050476838,
-0.00848864,
-0.028636718,
-0.012668976,
-0.04453337,
-0.035575505,
0.0070027723,
-0.020816363,
0.2393313,
0.064667225,
0.03941459,
0.045557123,
-0.012185535,
0.03611582,
0.02717218,
-0.019238073,
-0.011531469,
-0.054429673,
-0.0010530819,
-0.04422055,
-0.0028384335,
0.016394308,
0.0072480473,
0.0298311,
-0.014126405,
-0.008737469,
0.004980144,
-0.022209808,
-0.06170971,
0.016465401,
-0.0012521455,
0.050249334,
0.018342286,
-0.023347314,
0.009512396,
-0.040950224,
0.033869248,
-0.018598227,
-0.007251602,
0.031594235,
0.0047704168,
-0.0264328,
-0.013529214,
0.042770233,
-0.017972598,
-0.006114096,
-0.02994485,
-0.017759316,
0.013934451,
-0.027584525,
0.022693248,
-0.01310265,
0.042258356,
0.044305865,
0.00022283569,
0.06290409,
0.05175653,
-0.047945887,
0.035348006,
-0.045642436,
-0.0011961588,
-0.0045393608,
-0.028295467,
0.035859883,
-0.007735042,
-0.015228364,
-0.014716486,
0.03406831,
0.034409564,
-0.034409564,
0.0004901052,
0.0017586912,
-0.00084868626,
0.033727057,
0.015455865,
0.06728349,
-0.022607936,
-0.010450838,
-0.018029474,
-0.024427945,
-0.036457073,
-0.031821735,
0.02776937,
0.005538233,
0.03711114,
-0.024285758,
-0.0005034354,
-0.060344703,
0.03091173,
0.040950224,
0.010614354,
0.011623891,
0.005250302,
0.051870283,
-0.025608107,
0.0064944495,
0.0008593504,
0.030684229,
0.047917448,
0.007408009,
-0.03554707,
0.023901848,
-0.0039706076
] | accelerate config
Then launch your training with:
accelerate launch train.py
Train with a notebook
🤗 Accelerate can also run in a notebook if you're planning on using Colaboratory's TPUs. Wrap all the code responsible for training in a function, and pass it to [~accelerate.notebook_launcher]:
from accelerate import notebook_launcher
notebook_launcher(training_function)
For more information about 🤗 Accelerate and its rich features, refer to the documentation. |
[
0.06133457,
0.01604135,
-0.04169571,
0.0076078456,
-0.013262127,
-0.03721357,
0.011625554,
-0.024106255,
-0.01251756,
0.027379397,
0.004423166,
-0.012642883,
0.053284407,
-0.07023988,
0.0022465996,
-0.0028142394,
0.008853704,
-0.029030712,
-0.06292691,
-0.028101848,
-0.0064246487,
-0.016999701,
-0.06852958,
-0.020361308,
-0.019712577,
0.004854425,
0.02257289,
0.01980104,
0.07112451,
0.021024782,
-0.034471206,
-0.03019548,
0.019712577,
-0.035739183,
-0.0017139768,
-0.027733251,
0.017368298,
-0.028735835,
-0.050925385,
-0.05652806,
0.000910435,
-0.031286526,
0.023206878,
-0.06428335,
-0.048124045,
0.010247001,
0.02363445,
-0.025801802,
-0.0060376218,
-0.06953217,
-0.0050460952,
0.02438639,
0.02662746,
0.014847094,
-0.026480021,
-0.024710754,
-0.03060831,
-0.023413293,
-0.021231197,
0.0023700797,
0.01437529,
0.04119442,
-0.0056874542,
-0.0484779,
0.017471505,
0.034500696,
-0.0015269137,
0.006354615,
-0.005440494,
-0.014176248,
-0.05048307,
0.014397405,
-0.0364174,
-0.067880854,
0.00625878,
-0.013483284,
0.018297164,
-0.00956141,
0.009362368,
0.020641442,
-0.008971655,
0.067585975,
-0.0032915727,
0.028514678,
-0.05060102,
-0.079911865,
0.07224505,
-0.0086546615,
-0.022823537,
-0.05761911,
0.017442018,
0.021349149,
0.01695547,
0.013748675,
0.072775826,
0.033173744,
0.0069922884,
0.0484779,
-0.030033298,
0.030254455,
0.012561792,
0.07501689,
-0.033940427,
0.041223906,
-0.036328938,
-0.012038384,
0.044821415,
-0.019565137,
0.014190991,
-0.040457226,
-0.021290172,
-0.005189848,
0.01828242,
-0.0041172304,
0.008529339,
0.02879481,
0.0030999023,
0.018990126,
-0.03012176,
-0.026465276,
-0.011640299,
-0.043170102,
-0.026494764,
-0.033940427,
0.04066364,
-0.03441223,
0.024637034,
0.03827513,
-0.00057869754,
0.005845951,
0.03479557,
-0.006155573,
0.03470711,
0.056115232,
0.02211583,
0.017279835,
0.004828623,
0.022764562,
0.0388354,
-0.0025451635,
-0.0041909497,
0.003768906,
-0.0049023423,
0.080324695,
0.011831969,
-0.01115375,
-0.005108757,
-0.03402889,
-0.044556025,
0.01589391,
-0.011087403,
0.02226327,
-0.0018780025,
0.021761976,
-0.027865946,
-0.011972036,
-0.022425452,
0.043523952,
0.026052449,
0.026494764,
0.005602677,
0.0027128751,
-0.0017471506,
0.066288516,
-0.027821714,
0.02609668,
-0.014736515,
-0.062337153,
0.011544463,
-0.045529123,
-0.013328474,
0.03178782,
0.0023203192,
-0.0056727105,
0.041489296,
0.027172983,
0.039189253,
-0.0071028676,
0.0039292458,
-0.0069406847,
0.006690039,
-0.022278013,
-0.031581406,
0.028234543,
-0.025108838,
0.0048765405,
-0.01119061,
-0.02860314,
0.008219717,
-0.009310764,
-0.024990888,
0.073070705,
-0.06558081,
-0.017088166,
-0.0006275367,
-0.0050424095,
-0.030785237,
0.013571748,
0.004161462,
-0.05679345,
-0.045794513,
0.061924323,
0.00053999486,
0.020125406,
-0.0010191712,
-0.025241535,
0.0113749085,
0.0361815,
-0.011736134,
0.02920764,
0.0578845,
0.02522679,
-0.01635097,
0.0064062187,
0.056881916,
-0.03273143,
-0.03034292,
0.031109601,
-0.0047401595,
0.030549334,
-0.013461169,
0.023457523,
0.044615,
0.0025764941,
0.0130851995,
-0.026863363,
-0.0014172561,
0.03217116,
-0.019299747,
-0.020051686,
0.0057722316,
0.036830228,
0.01767792,
0.04753429,
0.017235603,
0.042875223,
0.03830462,
0.03656484,
0.044703465,
0.021245942,
-0.017206116,
-0.01669008,
0.043081637,
0.04865483,
-0.019167053,
-0.011043171,
-0.0056911404,
0.011323305,
-0.025447948,
0.032495525,
-0.08433503,
0.07649128,
0.010674574,
-0.008462991,
-0.05652806,
-0.026686436,
-0.0062956396,
0.031139089,
0.0053741466,
-0.006118713,
0.033527598,
0.01274609,
-0.013210523,
0.0006450451,
0.031109601,
0.04488039,
0.0047512176,
0.027290935,
-0.00208626,
-0.036859717,
-0.03576867,
-0.03747896,
-0.10126101,
-0.001237565,
-0.041666225,
0.012532304,
-0.0049318303,
-0.08115035,
0.022484427,
0.0051198145,
-0.012694486,
0.014058296,
0.0026852305,
0.026597971,
0.05195746,
0.034087867,
-0.029915346,
0.026981313,
-0.00390713,
0.020125406,
0.021275429,
0.0012265071,
-0.0152599225,
-0.007718425,
0.015001905,
0.017722152,
-0.0066310633,
-0.0131441755,
-0.052517723,
0.008706265,
-0.021585051,
-0.00857357,
-0.0002960296,
0.021570306,
-0.033350673,
0.033085283,
0.00093439384,
-0.00051235006,
0.04555861,
0.039896958,
-0.0041098585,
0.023487011,
0.025388973,
0.05284209,
-0.043464977,
0.055613942,
0.043052148,
0.022395965,
-0.04263932,
-0.006380417,
-0.057147305,
-0.019579882,
0.0084998505,
-0.040958516,
-0.02298572,
0.044054735,
0.0034703424,
-0.07772977,
-0.009834172,
-0.031080114,
-0.05387416,
0.011905689,
-0.0074935807,
0.0443791,
0.03827513,
0.03880591,
-0.037007157,
-0.015215691,
-0.005440494,
0.005245138,
-0.009303393,
-0.0037025586,
0.028190311,
0.019860016,
-0.0022631867,
-0.013129431,
0.0028326693,
-0.05484726,
-0.009259161,
-0.020420283,
0.0124438405,
0.0014753102,
0.02852942,
-0.004990806,
0.016601617,
0.050895896,
-0.03034292,
-0.009613014,
0.009878404,
0.01403618,
0.018120237,
0.038098205,
0.001103027,
-0.012333262,
-0.016188787,
0.0052598817,
-0.004939202,
-0.009863661,
0.05413955,
-0.04768173,
0.040575176,
-0.012650255,
-0.0323186,
0.018827943,
-0.009259161,
-0.04794712,
0.07643231,
-0.028028129,
0.03857001,
-0.007438291,
-0.03258399,
0.03429428,
0.03736101,
0.014839722,
0.010984195,
0.005326229,
-0.04384832,
0.00085560617,
-0.047504805,
-0.019226028,
-0.019697832,
0.016174044,
-0.024209462,
-0.024710754,
-0.014353174,
-0.0114338845,
0.039543103,
0.021909416,
0.05349082,
-0.02204211,
0.062042277,
0.022071598,
0.0034537555,
0.0249614,
0.016174044,
-0.017353555,
-0.07183222,
0.029148664,
0.04225598,
-0.009170698,
-0.004566919,
-0.018267676,
-0.031728845,
0.0063398713,
-0.0050940127,
0.018503578,
-0.03880591,
-0.020346563,
0.017029189,
0.011691902,
-0.030180736,
-0.04889073,
-0.046590682,
0.014839722,
0.049126633,
-0.0025580644,
0.0013177348,
-0.020877345,
-0.016129812,
0.004828623,
-0.0060486794,
-0.0061518867,
-0.0001660991,
-0.0042314953,
-0.030372407,
0.023737658,
0.043877807,
-0.0014605663,
-0.04160725,
-0.08067855,
0.022440195,
0.038599495,
0.012790321,
-0.010372324,
0.018164469,
-0.021747233,
-0.024681266,
0.014382661,
0.018621529,
0.0002755264,
0.040457226,
-0.009428715,
-0.016793286,
-0.02457806,
-0.013077827,
-0.029532006,
0.0017370142,
0.0056432225,
0.024754986,
0.027512092,
-0.024342157,
0.008588314,
0.050276656,
-0.03591611,
-0.032967333,
-0.0025064608,
0.008529339,
-0.0070107183,
0.0015978687,
0.02397356,
-0.012421724,
0.0127166025,
0.0100921905,
0.0041909497,
-0.020803625,
-0.012053127,
-0.012775578,
-0.008779985,
-0.01960937,
-0.014589076,
-0.008794729,
0.04980485,
0.00056763965,
-0.004942888,
-0.00754887,
-0.04355344,
-0.024946656,
0.014146759,
-0.0076447055,
0.010785153,
0.01714714,
-0.01092522,
-0.021658769,
-0.015407362,
-0.007829004,
-0.05349082,
-0.005414692,
0.010025843,
0.056587037,
0.01331373,
0.046944536,
-0.034117356,
-0.036771253,
0.0033450194,
-0.0107335495,
0.0046516964,
-0.028352495,
-0.032495525,
0.012628139,
0.007792144,
-0.02204211,
-0.0142499665,
-0.04874329,
0.002093632,
0.0110652875,
-0.019240772,
-0.0016632947,
-0.021186965,
-0.045676563,
0.072363,
-0.021703001,
-0.0566755,
-0.025624875,
0.004168834,
0.010335465,
0.016793286,
0.043111127,
0.013365333,
-0.02192416,
-0.06516798,
0.005728,
-0.05166258,
0.0021691944,
-0.04420217,
0.032937843,
0.0030851583,
0.009966867,
0.0013094414,
-0.04835995,
-0.026465276,
-0.035178915,
0.012532304,
-0.039926447,
-0.009251789,
-0.019889504,
0.018562553,
-0.039543103,
0.026081936,
0.031876285,
0.023870353,
0.0030298687,
0.013733931,
0.019624114,
0.048949704,
-0.042727783,
-0.02993009,
-0.0026889164,
0.010615598,
0.011728762,
0.027438374,
-0.042875223,
0.040309787,
-0.02279405,
-0.0015094054,
-0.049539458,
-0.011456,
-0.037125107,
-0.009539295,
0.0390713,
-0.028190311,
0.0056800824,
-0.014397405,
-0.00080077734,
-0.018827943,
0.0039587338,
-0.01050502,
-0.01172139,
-0.02749735,
-0.07802465,
0.027954409,
-0.0029340335,
-0.0036712277,
-0.0026668005,
-0.013269498,
0.05405109,
-0.057530645,
0.043288052,
0.05679345,
0.0037578482,
0.027924921,
-0.025698595,
0.07082963,
-0.00014559588,
-0.006092911,
-0.04464449,
-0.0022521287,
-0.016675336,
0.010232258,
-0.022130575,
-0.0070954957,
-0.007998559,
0.008934796,
0.058326818,
-0.052635677,
0.012583908,
0.011404396,
-0.037655886,
-0.03579816,
0.019049102,
0.015495825,
0.007792144,
0.024327414,
0.009679361,
0.020759393,
0.026199887,
0.012178451,
-0.0081312535,
-0.012613395,
0.056233183,
0.010527135,
-0.04199059,
-0.015613776,
0.023752403,
-0.019285005,
-0.04517527,
-0.004585349,
0.0417252,
-0.021157477,
-0.029104432,
0.00758573,
-0.012664999,
-0.040958516,
0.02693708,
0.035709694,
-0.031581406,
0.0045779767,
0.027467862,
0.031198064,
-0.041371346,
0.024696011,
0.04199059,
-0.03444172,
-0.020007454,
-0.019697832,
0.01460382,
-0.04544066,
-0.021231197,
0.06505003,
-0.03060831,
0.0073903734,
0.05310748,
0.012959876,
0.06864753,
0.011942549,
0.018400371,
0.019904247,
-0.043877807,
-0.032230135,
-0.0089274235,
0.0043457607,
-0.011419141,
0.0593294,
-0.053667746,
0.014190991,
0.022130575,
0.0064246487,
-0.00070263835,
-0.049185608,
0.03455967,
-0.043170102,
-0.020361308,
0.006354615,
0.004290471,
0.005882811,
0.0031072742,
-0.0075709857,
-0.06434232,
-0.015716983,
0.04266881,
-0.019447187,
0.01608558,
-0.04505732,
0.024445364,
-0.07389636,
0.010829384,
0.008330296,
-0.025212046,
0.021673514,
0.039277714,
-0.007843748,
-0.0009970553,
0.025610132,
0.034913525,
-0.0042646695,
0.017795872,
-0.061511494,
-0.010917848,
-0.012805066,
0.006656865,
-0.020154893,
-0.028367238,
0.005632165,
-0.043789342,
0.026833873,
0.02006643,
0.0047659613,
-0.041518785,
0.01642469,
0.042698298,
-0.023545988,
-0.0049944916,
-0.008315552,
0.033173744,
-0.02609668,
-0.018179212,
0.008617802,
-0.014795491,
-0.026332581,
0.026008217,
0.06428335,
0.019771552,
0.012613395,
-0.00800593,
0.020346563,
0.04753429,
-0.015805447,
-0.010011099,
0.04025081,
-0.021555563,
-0.0005593462,
-0.0296647,
0.017810615,
0.046030413,
-0.034323767,
0.037685376,
0.020199126,
-0.01301148,
-0.005912299,
-0.00233322,
0.01285667,
0.043907296,
0.004961318,
-0.022897257,
0.018179212,
-0.007161843,
-0.01517146,
0.026583228,
-0.03553277,
-0.031168576,
0.026214631,
-0.058238354,
0.009045375,
-0.04544066,
0.010018471,
0.023310086,
0.016026605,
0.0032307543,
0.024548572,
-0.011537092,
-0.007910095,
0.028809555,
-0.06310383,
-0.009244417,
-0.050777946,
0.042491883,
-0.030637797,
-0.033792987,
0.031876285,
0.059801206,
0.013977204,
0.0067563863,
-0.01384451,
-0.033232722,
0.026185144,
0.020317076,
-0.052222848,
0.0082270885,
-0.031316016,
0.01126433,
-0.011817225,
0.028971737,
-0.01570224,
0.05841528,
0.011072659,
0.013733931,
0.020582465,
0.037036642,
0.027246702,
-0.034087867,
0.031728845,
-0.0016402574,
0.03258399,
-0.003131233,
0.015864423,
-0.005440494,
0.05192797,
0.019830529,
0.023413293,
-0.0032878867,
0.016291995,
0.026715923,
-0.031964745,
-0.005860695,
0.032554504,
0.015525313,
0.0025599073,
-0.0011583166,
-0.032554504,
0.01927026,
0.000023598857,
0.021378636,
0.06251408,
-0.007946955,
-0.0015987902,
-0.001243094,
-0.013520144,
0.033409648,
-0.0026833874,
-0.025197303,
0.031433966,
0.0027368339,
0.015569544,
0.012436468,
0.01907859,
0.002091789,
0.051338214,
0.023796633,
0.008765241,
0.0065831454,
0.0035016732,
0.016984958,
-0.0017582085,
0.025005631,
0.029251872,
-0.042462394,
-0.033675037,
-0.0064246487,
-0.034913525,
0.05207541,
-0.016070837,
-0.032141674,
0.004268355,
-0.03898284,
-0.012126847,
-0.030785237,
0.01789908,
-0.04184315,
-0.004688556,
0.021437611,
-0.021761976,
-0.018960638,
0.012642883,
-0.03273143,
0.035296865,
0.029532006,
0.008728381,
-0.004828623,
0.0648731,
0.02226327,
0.0076594492,
0.026642203,
0.0051493025,
-0.03960208,
-0.015997117,
0.0097235935,
-0.017515738,
-0.020641442,
-0.056321647,
-0.04479193,
0.006174003,
0.0188132,
-0.0036767568,
-0.039690543,
0.022587635,
0.027851202,
-0.059064012,
-0.0070918095,
0.08911205,
-0.030018553,
-0.019211285,
-0.021983135,
0.018459346,
-0.073188655,
-0.05349082,
-0.018149724,
0.021481844,
-0.011485488,
-0.055967793,
-0.022499172,
-0.06145252,
-0.00753044,
0.0006809833,
-0.019742064,
0.0028031815,
0.04355344,
0.0073350836,
0.042167515,
-0.016144557,
-0.031286526,
-0.021599794,
0.036712278,
0.05419853,
-0.015274667,
0.084865816,
0.042609833,
0.0008528417,
0.008824216,
0.0042794133,
0.009480319,
-0.024076767,
-0.0046774982,
-0.0143089425,
-0.028470445,
-0.011610811,
-0.06404744,
-0.03933669,
0.011566579,
0.03234809,
-0.03467762,
-0.07189119,
-0.005705884,
-0.023885097,
-0.029251872,
-0.05997813,
0.0054110065,
0.020951062,
-0.029532006,
0.01281981,
-0.029428799,
0.26137963,
0.03827513,
0.05496521,
0.017353555,
-0.0058975546,
0.055613942,
0.043376517,
0.006903825,
0.01126433,
-0.010291233,
-0.017928567,
-0.015879165,
0.0074751507,
0.017397786,
-0.020818368,
0.019830529,
-0.03125704,
0.00041444146,
-0.038628984,
-0.02044977,
-0.029900603,
-0.016365714,
-0.00703652,
0.00035177992,
0.03747896,
-0.0054110065,
-0.015790703,
-0.008890564,
0.0059712743,
0.0010348365,
0.024017792,
-0.03193526,
0.04343549,
0.024976144,
-0.013114687,
0.040575176,
-0.0004319498,
-0.061511494,
-0.0013674955,
0.013357962,
-0.002716561,
-0.014876582,
0.045381684,
-0.007991186,
-0.000375278,
0.048979193,
-0.0076299612,
-0.039720032,
0.029679444,
-0.034471206,
0.03800974,
-0.07808363,
0.025197303,
-0.0055400156,
-0.03190577,
-0.021408124,
-0.032259624,
-0.051338214,
-0.0113749085,
-0.008979027,
0.010158538,
-0.0011841184,
-0.0030685714,
0.008507223,
-0.06310383,
0.02530051,
-0.013719187,
0.040280297,
-0.021083757,
-0.015466337,
-0.020729905,
-0.003995593,
-0.016056092,
-0.026347326,
0.020036941,
0.018385626,
0.032377575,
0.026642203,
-0.023147902,
-0.021481844,
0.010563995,
0.012001524,
0.009797313,
-0.015053509,
0.0405162,
0.05405109,
-0.034500696,
0.006527856,
-0.01464068,
0.03774435,
0.020007454,
0.03576867,
-0.030136505,
-0.014906069,
-0.009694106
] |
Community
This page regroups resources around 🤗 Transformers developed by the community.
Community resources:
| Resource | Description | Author |
|:----------|:-------------|------:|
| Hugging Face Transformers Glossary Flashcards | A set of flashcards based on the Transformers Docs Glossary that has been put into a form which can be easily learned/revised using Anki an open source, cross platform app specifically designed for long term knowledge retention. See this Introductory video on how to use the flashcards. | Darigov Research |
Community notebooks:
| Notebook | Description | Author | |
|:----------|:-------------|:-------------|------:|
| Fine-tune a pre-trained Transformer to generate lyrics | How to generate lyrics in the style of your favorite artist by fine-tuning a GPT-2 model | Aleksey Korshuk | |
| Train T5 in Tensorflow 2 | How to train T5 for any task using Tensorflow 2. This notebook demonstrates a Question & Answer task implemented in Tensorflow 2 using SQUAD | Muhammad Harris | |
| Train T5 on TPU | How to train T5 on SQUAD with Transformers and Nlp | Suraj Patil | |
| Fine-tune T5 for Classification and Multiple Choice | How to fine-tune T5 for classification and multiple choice tasks using a text-to-text format with PyTorch Lightning | Suraj Patil | |
| Fine-tune DialoGPT on New Datasets and Languages | How to fine-tune the DialoGPT model on a new dataset for open-dialog conversational chatbots | Nathan Cooper | |
| Long Sequence Modeling with Reformer | How to train on sequences as long as 500,000 tokens with Reformer | Patrick von Platen | |
| Fine-tune BART for Summarization | How to fine-tune BART for summarization with fastai using blurr | Wayde Gilliam | |
| Fine-tune a pre-trained Transformer on anyone's tweets | How to generate tweets in the style of your favorite Twitter account by fine-tuning a GPT-2 model | Boris Dayma | |
| Optimize 🤗 Hugging Face models with Weights & Biases | A complete tutorial showcasing W&B integration with Hugging Face | Boris Dayma | |
| Pretrain Longformer | How to build a "long" version of existing pretrained models | Iz Beltagy | |
| Fine-tune Longformer for QA | How to fine-tune longformer model for QA task | Suraj Patil | |
| Evaluate Model with 🤗nlp | How to evaluate longformer on TriviaQA with nlp | Patrick von Platen | |
| Fine-tune T5 for Sentiment Span Extraction | How to fine-tune T5 for sentiment span extraction using a text-to-text format with PyTorch Lightning | Lorenzo Ampil | |
| Fine-tune DistilBert for Multiclass Classification | How to fine-tune DistilBert for multiclass classification with PyTorch | Abhishek Kumar Mishra | |
|Fine-tune BERT for Multi-label Classification|How to fine-tune BERT for multi-label classification using PyTorch|Abhishek Kumar Mishra ||
|Fine-tune T5 for Summarization|How to fine-tune T5 for summarization in PyTorch and track experiments with WandB|Abhishek Kumar Mishra ||
|Speed up Fine-Tuning in Transformers with Dynamic Padding / Bucketing|How to speed up fine-tuning by a factor of 2 using dynamic padding / bucketing|Michael Benesty ||
|Pretrain Reformer for Masked Language Modeling| How to train a Reformer model with bi-directional self-attention layers | Patrick von Platen | |
|Expand and Fine Tune Sci-BERT| How to increase vocabulary of a pretrained SciBERT model from AllenAI on the CORD dataset and pipeline it. | Tanmay Thakur | |
|Fine Tune BlenderBotSmall for Summarization using the Trainer API| How to fine-tune BlenderBotSmall for summarization on a custom dataset, using the Trainer API. | Tanmay Thakur | |
|Fine-tune Electra and interpret with Integrated Gradients | How to fine-tune Electra for sentiment analysis and interpret predictions with Captum Integrated Gradients | Eliza Szczechla | |
|fine-tune a non-English GPT-2 Model with Trainer class | How to fine-tune a non-English GPT-2 Model with Trainer class | Philipp Schmid | |
|Fine-tune a DistilBERT Model for Multi Label Classification task | How to fine-tune a DistilBERT Model for Multi Label Classification task | Dhaval Taunk | |
|Fine-tune ALBERT for sentence-pair classification | How to fine-tune an ALBERT model or another BERT-based model for the sentence-pair classification task | Nadir El Manouzi | |
|Fine-tune Roberta for sentiment analysis | How to fine-tune a Roberta model for sentiment analysis | Dhaval Taunk | |
|Evaluating Question Generation Models | How accurate are the answers to questions generated by your seq2seq transformer model? | Pascal Zoleko | |
|Classify text with DistilBERT and Tensorflow | How to fine-tune DistilBERT for text classification in TensorFlow | Peter Bayerle | |
|Leverage BERT for Encoder-Decoder Summarization on CNN/Dailymail | How to warm-start a EncoderDecoderModel with a google-bert/bert-base-uncased checkpoint for summarization on CNN/Dailymail | Patrick von Platen | |
|Leverage RoBERTa for Encoder-Decoder Summarization on BBC XSum | How to warm-start a shared EncoderDecoderModel with a FacebookAI/roberta-base checkpoint for summarization on BBC/XSum | Patrick von Platen | |
|Fine-tune TAPAS on Sequential Question Answering (SQA) | How to fine-tune TapasForQuestionAnswering with a tapas-base checkpoint on the Sequential Question Answering (SQA) dataset | Niels Rogge | |
|Evaluate TAPAS on Table Fact Checking (TabFact) | How to evaluate a fine-tuned TapasForSequenceClassification with a tapas-base-finetuned-tabfact checkpoint using a combination of the 🤗 datasets and 🤗 transformers libraries | Niels Rogge | |
|Fine-tuning mBART for translation | How to fine-tune mBART using Seq2SeqTrainer for Hindi to English translation | Vasudev Gupta | |
|Fine-tune LayoutLM on FUNSD (a form understanding dataset) | How to fine-tune LayoutLMForTokenClassification on the FUNSD dataset for information extraction from scanned documents | Niels Rogge | |
|Fine-Tune DistilGPT2 and Generate Text | How to fine-tune DistilGPT2 and generate text | Aakash Tripathi | |
|Fine-Tune LED on up to 8K tokens | How to fine-tune LED on pubmed for long-range summarization | Patrick von Platen | |
|Evaluate LED on Arxiv | How to effectively evaluate LED on long-range summarization | Patrick von Platen | |
|Fine-tune LayoutLM on RVL-CDIP (a document image classification dataset) | How to fine-tune LayoutLMForSequenceClassification on the RVL-CDIP dataset for scanned document classification | Niels Rogge | |
|Wav2Vec2 CTC decoding with GPT2 adjustment | How to decode CTC sequence with language model adjustment | Eric Lam | |
|Fine-tune BART for summarization in two languages with Trainer class | How to fine-tune BART for summarization in two languages with Trainer class | Eliza Szczechla | |
|Evaluate Big Bird on Trivia QA | How to evaluate BigBird on long document question answering on Trivia QA | Patrick von Platen | |
| Create video captions using Wav2Vec2 | How to create YouTube captions from any video by transcribing the audio with Wav2Vec | Niklas Muennighoff | |
| Fine-tune the Vision Transformer on CIFAR-10 using PyTorch Lightning | How to fine-tune the Vision Transformer (ViT) on CIFAR-10 using HuggingFace Transformers, Datasets and PyTorch Lightning | Niels Rogge | |
| Fine-tune the Vision Transformer on CIFAR-10 using the 🤗 Trainer | How to fine-tune the Vision Transformer (ViT) on CIFAR-10 using HuggingFace Transformers, Datasets and the 🤗 Trainer | Niels Rogge | |
| Evaluate LUKE on Open Entity, an entity typing dataset | How to evaluate LukeForEntityClassification on the Open Entity dataset | Ikuya Yamada | |
| Evaluate LUKE on TACRED, a relation extraction dataset | How to evaluate LukeForEntityPairClassification on the TACRED dataset | Ikuya Yamada | |
| Evaluate LUKE on CoNLL-2003, an important NER benchmark | How to evaluate LukeForEntitySpanClassification on the CoNLL-2003 dataset | Ikuya Yamada | |
| Evaluate BigBird-Pegasus on PubMed dataset | How to evaluate BigBirdPegasusForConditionalGeneration on PubMed dataset | Vasudev Gupta | |
| Speech Emotion Classification with Wav2Vec2 | How to leverage a pretrained Wav2Vec2 model for Emotion Classification on the MEGA dataset | Mehrdad Farahani | |
| Detect objects in an image with DETR | How to use a trained DetrForObjectDetection model to detect objects in an image and visualize attention | Niels Rogge | |
| Fine-tune DETR on a custom object detection dataset | How to fine-tune DetrForObjectDetection on a custom object detection dataset | Niels Rogge | |
| Finetune T5 for Named Entity Recognition | How to fine-tune T5 on a Named Entity Recognition Task | Ogundepo Odunayo | | |
[
0.012092959,
-0.012079582,
-0.027637228,
0.012066205,
-0.004033216,
-0.01709602,
0.023998639,
0.028680647,
0.056023575,
0.03999773,
0.024185918,
0.014500849,
0.041067902,
-0.04235211,
-0.022834824,
0.02403877,
0.012253486,
-0.01638703,
-0.06330076,
-0.022821447,
-0.004618467,
-0.012360503,
-0.049789816,
-0.02422605,
-0.021885045,
0.0045816796,
0.0040532816,
-0.046124473,
0.08459721,
0.037242033,
-0.081440195,
-0.015731549,
-0.014153043,
0.0019865094,
-0.020426935,
-0.03178415,
0.046044208,
-0.025858065,
-0.07218319,
-0.025898196,
-0.03419204,
-0.0012516013,
0.042994216,
-0.06811654,
-0.0015400464,
0.008119941,
-0.010768619,
-0.038927555,
0.008715224,
-0.06099988,
0.0008553026,
0.0079527255,
-0.036573175,
0.0029312717,
-0.00703639,
0.025175828,
-0.0014179797,
0.018821675,
-0.04684684,
-0.05950164,
0.025898196,
0.03951615,
0.024975171,
-0.0104408795,
0.01756422,
0.043368775,
-0.043422285,
-0.0154506285,
0.016989002,
0.013022672,
-0.05369595,
0.058270942,
0.019236367,
-0.035155196,
-0.019824961,
0.004454597,
0.013477496,
-0.004661943,
0.0043375464,
0.037081506,
-0.006982881,
0.06426391,
-0.014647998,
0.007959414,
-0.010641537,
-0.033121865,
0.017738124,
-0.0010835505,
-0.016641196,
-0.01123682,
-0.015624532,
0.050565694,
-0.0032055038,
0.025777802,
0.0771595,
0.048719645,
-0.043609567,
0.005715395,
-0.013276839,
-0.011812039,
0.038900804,
0.07641038,
-0.057200767,
0.013510939,
-0.046499033,
-0.016413784,
-0.013263461,
-0.018460492,
-0.028841173,
-0.07089899,
0.004618467,
0.015236594,
0.008280466,
0.028600384,
0.005534803,
0.057147257,
0.012801949,
0.018741412,
-0.028011788,
-0.03783063,
0.039676677,
0.0040532816,
0.0020149357,
-0.019731322,
0.013805237,
0.00836073,
0.02304886,
0.061160408,
0.0153034795,
0.0076584285,
-0.004076692,
0.028787663,
0.07421652,
0.04133545,
-0.028707402,
-0.0311688,
0.03716177,
0.0010944195,
0.001054288,
-0.0010124843,
-0.0023209385,
-0.01355107,
0.014500849,
0.06469198,
0.030526696,
-0.01907584,
0.047114383,
-0.04055957,
-0.032560024,
-0.01577168,
0.0041669877,
0.042138077,
-0.013564448,
0.020146014,
-0.024868155,
-0.033790726,
-0.0010358944,
0.022741184,
0.065013036,
0.01067498,
-0.010093072,
0.03986396,
-0.020908512,
0.032479763,
0.011230132,
0.0022139212,
0.016748214,
-0.019918602,
0.036359143,
-0.042726673,
-0.012119713,
0.006347466,
-0.026058722,
-0.011424101,
0.042566147,
0.0047723046,
0.025817933,
-0.0063875974,
0.028653892,
0.03036617,
0.0077922,
-0.0023326436,
-0.010360616,
0.007357442,
-0.012634735,
-0.02819907,
0.010975966,
-0.01648067,
-0.009002834,
-0.005283981,
-0.0012097976,
0.029403014,
-0.016614443,
0.015129576,
-0.0036252122,
0.008032989,
-0.036867473,
0.035824053,
0.0214436,
-0.08406212,
-0.041736763,
-0.020186145,
-0.026433283,
0.0028677303,
0.023971884,
-0.0789788,
-0.010775308,
0.02710214,
0.009604806,
-0.0043743337,
0.017510712,
0.034245547,
-0.011450855,
0.011858859,
0.021523863,
-0.027744245,
0.025175828,
0.028252577,
0.011016097,
0.028413104,
0.019771453,
0.033978004,
0.050512183,
0.0046318443,
0.004263972,
0.0045114495,
0.027476702,
0.020908512,
-0.020721233,
0.015183085,
-0.014313569,
0.045963947,
0.06517356,
0.0077922,
0.017203037,
0.028653892,
0.070631444,
0.018259833,
0.030018363,
-0.0024162508,
0.022018818,
0.02064097,
0.005728772,
0.024573857,
-0.011404035,
-0.0299381,
-0.039221853,
0.0023761194,
-0.03049994,
0.0065748775,
-0.0012532733,
0.033924498,
0.06351479,
-0.06838408,
-0.06843759,
-0.035904318,
0.016132863,
0.06228409,
-0.056772698,
-0.007852397,
0.007243736,
0.0031837658,
-0.015517514,
-0.0057321163,
0.027423194,
0.031489853,
0.0022155934,
0.02116268,
-0.0015785057,
-0.047970522,
-0.04050606,
-0.04770298,
-0.0530806,
0.008380795,
-0.052545514,
0.0059762495,
0.03017889,
-0.056719188,
0.044465706,
-0.00892257,
-0.016654573,
-0.02678109,
0.02512232,
0.023597322,
0.051635865,
0.06747443,
-0.028172314,
0.016708082,
0.014540981,
-0.011143181,
-0.01228024,
-0.03400476,
-0.0009497789,
-0.044840265,
0.022941843,
0.053535424,
-0.0033409474,
-0.007303933,
-0.045455616,
-0.008019612,
-0.029456522,
-0.01010645,
-0.02975082,
0.034860898,
0.011999319,
-0.014179797,
0.02187167,
-0.034299057,
0.041950796,
0.05345516,
-0.03654642,
0.03561002,
0.012246797,
0.03173064,
-0.03753633,
0.060571812,
0.044224914,
0.027797753,
0.004009806,
0.022299739,
-0.038552996,
0.008487812,
-0.018835051,
-0.025938326,
-0.030580204,
0.02734293,
0.0031419622,
-0.062872685,
0.013698219,
-0.07871125,
-0.042164832,
0.02672758,
-0.0035115064,
0.029295996,
0.0029162224,
0.025282847,
0.006681895,
-0.02219272,
-0.0051736194,
0.0013051099,
0.018674526,
0.005354211,
-0.0064845816,
0.045562632,
0.0021737898,
-0.04192404,
0.023222763,
-0.044171408,
0.015276725,
0.006497959,
-0.0044980724,
-0.023971884,
-0.012333748,
-0.018032422,
0.03036617,
0.06533408,
-0.042378865,
0.011798661,
-0.015423873,
0.014714884,
0.03462011,
0.02148373,
0.034031514,
-0.006404319,
-0.030232398,
-0.023490306,
0.011424101,
0.0015316857,
0.052625775,
0.014755015,
0.030473188,
0.010915768,
-0.008942637,
0.025617275,
-0.03470037,
0.0047422056,
0.05907357,
-0.008394172,
0.013791859,
-0.022741184,
-0.04326176,
-0.0023343158,
0.001856082,
0.031008273,
-0.004758927,
0.0042338734,
-0.02771749,
0.013952386,
-0.040960886,
0.057200767,
0.022607412,
-0.024854777,
0.039168347,
-0.032800816,
-0.02049382,
-0.05449858,
0.007464459,
0.06346128,
0.026874729,
0.00038124927,
0.033416163,
0.015718171,
0.02172452,
0.03154336,
0.012106337,
-0.04783675,
-0.036439404,
0.029483277,
0.07352091,
-0.0154506285,
-0.025149075,
-0.019437024,
-0.028065298,
0.01752409,
-0.02332978,
-0.0055080485,
-0.040104747,
0.023436798,
-0.012648112,
0.021082416,
-0.044652984,
-0.057361294,
-0.054846387,
-0.012714998,
0.041763518,
-0.014059403,
0.028734155,
-0.023102367,
0.017055888,
0.037242033,
0.0076383627,
-0.008715224,
-0.020868381,
-0.0054110643,
-0.034459583,
-0.0022674298,
0.056879714,
0.0071835387,
-0.014621244,
-0.060250763,
0.014286814,
0.049843326,
0.010521142,
0.010146582,
-0.03689423,
-0.014581112,
-0.018206324,
0.022139212,
0.010333862,
0.0091232285,
0.018406982,
-0.06399637,
-0.020079128,
-0.007484525,
-0.027878016,
-0.025817933,
0.033469673,
0.009223557,
0.017791633,
0.002519924,
0.00277409,
-0.016092733,
0.035931073,
-0.042084567,
-0.059769183,
-0.008695159,
0.040318783,
-0.017323432,
0.016614443,
0.0459907,
-0.029777575,
0.025777802,
-0.002555039,
0.02129645,
-0.0026169084,
0.0018694592,
0.011383969,
0.015611154,
-0.008046366,
-0.019878471,
-0.06255163,
0.05591656,
0.0029981576,
0.012915655,
-0.038178436,
-0.045696404,
0.019958735,
0.031195555,
-0.0072169816,
0.021737898,
0.012621357,
0.040586326,
-0.039596416,
-0.0075380336,
-0.012320371,
-0.014112911,
0.008842307,
-0.00022030523,
0.020707855,
-0.017015757,
0.022553904,
-0.04443895,
-0.020079128,
-0.003461342,
0.011544496,
0.0058859535,
-0.0149824275,
-0.005260571,
0.011129803,
-0.00024747758,
-0.046927102,
-0.024613988,
-0.022366624,
0.0018126061,
0.028653892,
-0.012166534,
0.033309147,
-0.021697765,
-0.02200544,
0.03320213,
-0.006671862,
-0.05869901,
-0.033656955,
0.00046903692,
-0.00238448,
0.023236139,
0.003195471,
-0.043074477,
-0.0065949433,
-0.050913498,
-0.036760457,
-0.038981065,
-0.025202584,
-0.012641423,
0.014848656,
-0.03569028,
0.05704024,
0.050565694,
-0.031489853,
0.012226731,
-0.014848656,
-0.015999092,
-0.041094657,
0.015156331,
0.0077922,
0.023971884,
-0.045642894,
0.03542274,
0.019370139,
0.01709602,
-0.020426935,
0.00035972038,
0.013965762,
0.018179571,
-0.031436343,
-0.05316086,
0.007196916,
-0.009939236,
-0.020052373,
0.031249063,
-0.036867473,
0.008260401,
-0.03646616,
0.03555651,
0.01157125,
0.009805463,
-0.037803873,
0.005130144,
0.023476928,
-0.027048633,
0.025898196,
0.019731322,
0.010895703,
0.018714657,
0.030205645,
-0.017644484,
-0.022834824,
-0.017751502,
-0.02049382,
0.01058134,
-0.034299057,
-0.010761932,
-0.0321052,
-0.0024313002,
0.037910894,
-0.02101553,
0.021497108,
0.061695494,
0.022018818,
0.0066250423,
-0.035235457,
0.03154336,
0.032372747,
0.015557646,
-0.008996145,
0.01907584,
0.0061702183,
-0.0075781653,
-0.010614783,
0.023222763,
-0.013724973,
-0.008902505,
0.06308672,
0.0040499372,
0.02148373,
0.016440539,
-0.06693935,
-0.034539845,
0.015410497,
0.0270085,
0.024921663,
-0.002830943,
0.033924498,
-0.049602535,
0.024466839,
-0.019196235,
-0.005364244,
-0.04839859,
0.04481351,
0.03202494,
-0.02247364,
-0.010527831,
-0.002484809,
-0.024493594,
-0.046392016,
-0.010019498,
0.046953857,
-0.06394286,
-0.020801496,
-0.009524543,
-0.034780636,
0.020574084,
0.036706947,
0.026486792,
0.014126289,
0.011544496,
0.06099988,
0.044786755,
-0.024814645,
-0.004294071,
0.075500734,
-0.03994422,
-0.033656955,
-0.022540526,
0.013310282,
-0.037563086,
-0.028065298,
0.07084548,
-0.0401315,
-0.008367418,
0.01601247,
-0.004962929,
0.024988549,
0.025135698,
0.007404262,
0.046927102,
-0.068544604,
-0.0484521,
-0.0008214417,
-0.0021370025,
0.021965308,
0.003243963,
-0.0016437194,
0.014233306,
-0.022607412,
0.03437932,
-0.036198616,
-0.057147257,
-0.016881986,
-0.028974945,
-0.018219702,
0.043582812,
-0.014808524,
0.0067354036,
-0.012059516,
-0.014674753,
-0.057735853,
0.014046025,
0.02181816,
-0.005889298,
0.009584741,
-0.012440765,
0.057735853,
-0.031944677,
-0.0039362316,
-0.058056906,
-0.02672758,
0.013029361,
0.029617049,
-0.031489853,
-0.024761137,
0.0045984015,
0.053669196,
0.022112457,
0.008347352,
-0.023062237,
-0.01468813,
0.034272302,
0.018099308,
-0.06940074,
0.017216414,
0.02809205,
-0.023664208,
0.02469425,
0.021804783,
0.013250085,
-0.021938555,
0.025202584,
0.032747306,
-0.034780636,
-0.022594035,
0.008675093,
-0.002613564,
-0.033817478,
0.025630653,
0.011611382,
0.0020901824,
-0.0672604,
0.0021286418,
-0.01724317,
0.020895135,
-0.026379773,
0.034646865,
0.018754788,
0.00040319617,
-0.0026052033,
-0.016280012,
0.020707855,
0.00623376,
-0.006591599,
0.010761932,
0.0047488944,
0.032185465,
-0.029215733,
0.015062691,
0.036252122,
-0.035636775,
-0.019356761,
-0.01672146,
-0.01931663,
0.028118806,
0.058538485,
-0.0050565694,
-0.05209069,
-0.012487586,
-0.021002153,
0.05412402,
-0.05789638,
-0.02045369,
0.015035936,
-0.045509122,
-0.002568416,
-0.020159392,
0.008320598,
0.07523319,
-0.065869175,
0.010360616,
-0.031463098,
0.005595,
0.02025303,
0.009671692,
-0.06833057,
0.028225822,
-0.025510259,
0.057200767,
-0.01524997,
-0.04727491,
-0.000847778,
-0.014755015,
0.0076517398,
0.020560706,
-0.011123114,
0.03017889,
-0.0054478515,
-0.004524827,
0.025630653,
-0.032560024,
-0.031008273,
0.042245094,
-0.032800816,
0.038178436,
-0.032319237,
0.022915088,
-0.017871896,
0.009450968,
-0.0023410043,
0.04807754,
0.06314023,
0.021176055,
0.0045181382,
0.06319374,
0.005775592,
-0.037001245,
-0.016681328,
0.01700238,
0.01152443,
0.047167893,
0.040773608,
-0.008828931,
0.026660694,
0.020747986,
-0.05998322,
0.020346671,
0.020788118,
-0.008534633,
-0.005076635,
-0.01614624,
0.013189887,
0.037696857,
0.054043755,
0.0055883117,
0.052839812,
-0.029242488,
-0.00058859534,
0.052839812,
-0.0065046474,
0.040318783,
-0.004872633,
0.002212249,
-0.013377167,
-0.03277406,
-0.008367418,
0.02120281,
0.016547555,
-0.028306086,
-0.000078434095,
0.04486702,
0.021644257,
0.008842307,
0.009317197,
0.02502868,
-0.024721006,
0.0006776371,
-0.0010935834,
-0.021938555,
-0.03135608,
-0.018206324,
-0.053321388,
0.02181816,
-0.010661602,
0.008855685,
0.013939008,
-0.058163922,
-0.012273551,
-0.04494728,
0.033870988,
-0.08588141,
-0.040211763,
0.00963156,
-0.040399045,
-0.043903865,
-0.0021838224,
-0.015183085,
0.011036163,
-0.00694275,
0.03598458,
-0.043154743,
0.058163922,
0.0133704785,
0.013163133,
-0.027904771,
0.043074477,
-0.057682347,
0.00021654289,
0.02077474,
-0.026914861,
-0.012407322,
-0.052625775,
-0.047595963,
0.008193515,
0.0094175255,
-0.032479763,
-0.039275363,
-0.026660694,
0.07336038,
-0.055167437,
0.0112033775,
0.032934587,
0.016774967,
-0.009330574,
-0.0046017454,
-0.0336302,
0.019008955,
-0.043288514,
-0.026192494,
-0.0045616142,
-0.036867473,
-0.008447682,
-0.03462011,
-0.007150096,
-0.008935948,
-0.0038492798,
-0.019891847,
0.027476702,
0.0109692775,
-0.0040064617,
-0.00307006,
-0.008180138,
0.009277065,
0.057682347,
0.020293163,
0.05511393,
-0.0013285199,
0.045054298,
0.020092506,
-0.016360275,
-0.0020751331,
-0.02030654,
-0.005936118,
-0.0014564391,
-0.017885273,
-0.045776665,
-0.0053241127,
-0.055756032,
-0.04783675,
0.0270085,
0.04007799,
-0.03221222,
-0.012621357,
-0.02370434,
-0.032560024,
-0.039970975,
-0.014393832,
-0.043609567,
0.0016445555,
-0.031917922,
-0.035101686,
0.053776212,
-0.055381473,
0.20472416,
0.037268788,
0.021604124,
0.015851943,
-0.014139666,
0.016828477,
0.029670557,
0.010695045,
0.035931073,
-0.056826208,
-0.017443826,
0.011183312,
0.020132637,
0.055809543,
-0.038552996,
0.038686767,
-0.040720098,
0.025042057,
0.0035081622,
-0.027637228,
-0.037750367,
0.011196689,
-0.02493504,
0.027182404,
0.012768506,
-0.009711823,
-0.0040633148,
-0.038365714,
-0.042806935,
-0.047569208,
0.044974037,
-0.05449858,
0.03882054,
-0.0021721176,
-0.027262667,
0.039302118,
0.015731549,
-0.025189206,
-0.00075455586,
0.003461342,
0.019169481,
-0.05907357,
0.015116199,
0.0056685745,
0.019343384,
-0.00032418728,
0.017069265,
-0.027690737,
-0.0017825075,
-0.0016345226,
0.019423647,
-0.021122547,
0.005946151,
-0.032372747,
-0.020467065,
0.0047488944,
-0.016199749,
-0.01808593,
-0.016226504,
-0.043529302,
0.04949552,
-0.014915542,
-0.03159687,
0.026272757,
-0.07100601,
-0.011651513,
-0.01524997,
0.033737216,
0.033362657,
0.010293731,
-0.03154336,
0.00001969997,
0.0059695607,
-0.012340437,
0.013765105,
-0.0006625878,
0.019102596,
0.0070631444,
-0.0040532816,
-0.021791406,
0.028573629,
-0.0071567846,
0.009343951,
-0.033790726,
0.058163922,
0.062498126,
-0.04987008,
-0.009250311,
0.0038559684,
0.03504818,
0.015892075,
0.056023575,
0.006551468,
-0.023677586,
-0.017069265
] | Troubleshoot
Sometimes errors occur, but we are here to help! This guide covers some of the most common issues we've seen and how you can resolve them. However, this guide isn't meant to be a comprehensive collection of every 🤗 Transformers issue. For more help with troubleshooting your issue, try: |
[
0.030058522,
0.0054668393,
-0.015465735,
0.044054795,
-0.021401783,
-0.033724904,
0.05019453,
-0.00048785083,
0.002318769,
0.01419996,
0.02855996,
0.013043304,
0.040155623,
-0.049176093,
-0.0018377382,
0.032095402,
-0.0056996252,
-0.024660792,
-0.0456261,
-0.008591267,
0.012344945,
-0.00045193263,
-0.051503953,
-0.010693617,
-0.034074083,
0.003479063,
0.0120103145,
0.023962433,
0.054995745,
0.022769403,
-0.025941115,
-0.032182697,
-0.009093212,
-0.047721177,
0.0073836884,
0.0008693111,
-0.0076673967,
-0.0023314997,
-0.028618157,
-0.04073759,
-0.0026734043,
-0.019350355,
0.018622898,
-0.059214998,
-0.018011834,
0.0052522393,
-0.0026261196,
-0.013261541,
0.0064270822,
-0.020034164,
-0.016833354,
0.035412606,
0.0035663578,
-0.0032771938,
-0.050951086,
-0.01959769,
-0.022609362,
0.009951611,
-0.07367684,
-0.07542274,
0.047604784,
0.021270841,
0.0051904055,
-0.05310436,
0.034481462,
0.05295887,
-0.027163243,
0.011486545,
-0.0045793415,
0.029680245,
-0.058603935,
0.031135159,
-0.016382331,
-0.041726932,
-0.030349504,
0.025781075,
0.0054413783,
0.008511246,
-0.033346627,
0.031222453,
0.030902373,
0.018797489,
0.0025697418,
0.01039536,
-0.024820833,
-0.034452364,
0.058982212,
-0.020921662,
0.00038509755,
-0.016338684,
-0.051125675,
0.018695645,
-0.030058522,
0.029622048,
0.022682108,
0.04158144,
-0.04108677,
0.033055644,
-0.0066416822,
-0.049758058,
0.01978683,
0.111621,
-0.031047864,
0.014083567,
-0.049088795,
0.022114692,
0.02551919,
0.004586616,
-0.043152746,
-0.0056232424,
0.018186424,
0.00811842,
0.024602596,
0.028778197,
-0.0021096251,
0.0422507,
-0.037944157,
0.0059578726,
-0.034219574,
-0.048885107,
0.019917771,
-0.0050994735,
0.009558785,
-0.03791506,
0.015116556,
-0.04257078,
-0.014301804,
0.03296835,
0.014796475,
-0.0122431,
-0.0068126344,
0.005539585,
-0.016746059,
0.042017914,
-0.01590221,
-0.03680932,
-0.016629666,
0.03520892,
0.07297848,
-0.0097261,
-0.002426069,
-0.017822696,
-0.03986464,
0.08729484,
0.020863466,
-0.033404823,
0.045393314,
-0.058749426,
-0.038467925,
0.014956515,
-0.0405921,
0.045073234,
0.010017082,
0.018666547,
0.026595827,
0.005248602,
-0.013799859,
0.036547437,
0.035441704,
0.003600912,
0.04614987,
0.028763648,
-0.02839992,
0.05202772,
-0.002227837,
0.035936374,
-0.030058522,
-0.03503433,
-0.01878294,
-0.03165893,
0.03279376,
0.028443567,
-0.023307722,
0.008169342,
0.0507183,
0.004670274,
0.017560812,
-0.0083075585,
-0.013319737,
0.029316517,
-0.013916252,
0.0031753497,
0.028981885,
0.009107761,
0.029229222,
0.003555446,
-0.0030134905,
-0.036256455,
-0.025068168,
0.018564701,
0.0059469608,
0.009842493,
-0.03584908,
0.05327895,
-0.0321245,
-0.0106717935,
-0.0073618647,
0.00017947727,
0.015873112,
-0.050136335,
-0.030204013,
0.04158144,
-0.03264827,
0.004561155,
-0.015625775,
0.00039851002,
-0.000018342715,
0.01655692,
-0.0017304383,
-0.02367145,
0.03165893,
-0.0015222037,
0.025897468,
-0.010511753,
0.031600732,
-0.00980612,
-0.015262047,
0.007278207,
-0.0026770416,
0.0046557244,
0.007980203,
0.031571634,
-0.019655887,
0.0036391036,
0.023424115,
-0.042628977,
-0.010817286,
-0.012526809,
0.00058605755,
0.0153493425,
0.013137873,
0.07187275,
-0.013028754,
0.031193355,
0.0068890173,
0.0050340025,
0.074433394,
0.029403811,
0.0042738095,
0.012781419,
-0.04140685,
0.039602757,
0.0065943976,
-0.008154793,
0.019233963,
-0.004837589,
-0.024573496,
0.011544742,
-0.041959718,
0.04329824,
-0.03806055,
0.024282513,
0.00502309,
-0.01671696,
-0.06564572,
-0.0304077,
0.0022569352,
0.030436799,
-0.0128541645,
-0.0558105,
-0.00786381,
0.022565715,
-0.0071472647,
-0.007420061,
0.058283854,
0.07495717,
-0.020557934,
0.03936997,
0.01878294,
0.011741156,
-0.05546132,
-0.017851794,
-0.06372523,
-0.0041865148,
-0.023758745,
0.0039028067,
0.03503433,
-0.014774651,
0.0035772696,
-0.016702412,
-0.012053962,
-0.002182371,
-0.021780062,
0.031018766,
0.050951086,
0.02991303,
-0.04836134,
-0.005517761,
-0.012890537,
0.008911348,
-0.02857451,
-0.03922448,
0.01792454,
-0.018302817,
0.058225658,
-0.02672677,
-0.0095296865,
-0.02872,
-0.015567579,
-0.015334793,
-0.00862764,
0.0020477914,
0.010111652,
0.008256637,
-0.026755868,
0.017648106,
0.021634571,
-0.011995765,
0.040883083,
0.018142777,
-0.0026370315,
0.04783757,
0.022071045,
0.051445756,
-0.028298076,
0.0658785,
0.04687733,
0.0028843668,
-0.007456434,
-0.028181683,
0.0040955828,
-0.030204013,
-0.021969201,
-0.020499738,
-0.021183547,
0.051620346,
-0.041377753,
-0.058953114,
-0.0023933335,
-0.046091672,
-0.058283854,
0.016149545,
-0.053860914,
0.027716111,
0.03148434,
0.03840973,
-0.040330216,
0.0019859576,
-0.0489724,
0.03360851,
0.01961224,
-0.0056487033,
0.03616916,
0.023482312,
-0.009777022,
-0.011348329,
0.023758745,
-0.039981034,
0.015422088,
0.032502778,
-0.024820833,
-0.0081256945,
0.015538481,
-0.019495847,
0.001075727,
0.004008288,
-0.017328026,
0.04289086,
-0.008322108,
0.017328026,
0.03855522,
0.019292159,
0.056101482,
0.008445775,
-0.015087457,
-0.010358987,
0.009951611,
0.0073582274,
0.048535928,
-0.021576373,
0.026086608,
-0.011602939,
-0.02182371,
-0.007521905,
0.017517164,
0.008831328,
0.052231412,
-0.0007851989,
0.047721177,
0.0027679738,
-0.0086203655,
0.0029007348,
0.018681096,
0.04277447,
0.02079072,
0.043123648,
-0.0094642155,
0.034306873,
-0.000011053936,
0.008780406,
-0.0011666592,
-0.0026370315,
0.00017174805,
0.004048298,
-0.02010691,
-0.04987445,
0.024151571,
0.046615444,
0.027614268,
-0.03026221,
0.04495684,
-0.04620807,
0.008387579,
0.021096252,
0.018826587,
-0.06442359,
-0.084908776,
0.061280977,
0.028545411,
0.0041937893,
-0.03125155,
-0.016324135,
-0.007558278,
0.008205715,
0.0106717935,
-0.0023915148,
-0.026261197,
0.020659778,
0.014745553,
-0.003982827,
-0.009638805,
-0.063841626,
-0.022041947,
0.0060742656,
0.04798306,
-0.043240044,
-0.0058633033,
-0.048914205,
-0.0057687336,
0.015465735,
-0.0060197064,
-0.034801543,
-0.03986464,
0.0021805523,
-0.08316288,
0.034481462,
0.028501764,
-0.013399757,
-0.017662656,
-0.043240044,
-0.004401115,
-0.0038082371,
0.03247368,
-0.023976982,
0.019088471,
0.0001917531,
0.0021732778,
-0.009871591,
-0.0133488355,
0.007070882,
0.015014712,
-0.034161378,
0.03346302,
-0.03756588,
-0.026959555,
-0.023045836,
-0.00043397356,
-0.025722878,
0.02889459,
0.012068511,
-0.026857711,
-0.036605634,
-0.01445457,
-0.004441125,
-0.046760935,
0.015232949,
0.018040933,
-0.0018695644,
0.042716272,
0.043210946,
-0.06459818,
0.065994896,
0.017982736,
-0.0008324836,
-0.029301967,
-0.015451186,
-0.011806627,
-0.0011384701,
-0.021765513,
0.017837245,
-0.042308897,
0.07524815,
0.02755607,
0.03145524,
0.025257306,
-0.05106748,
-0.00016879276,
0.020703426,
-0.052842475,
0.05490845,
0.003524529,
-0.017400771,
0.010686343,
0.0034808817,
-0.018448308,
0.041843325,
-0.015000163,
0.02061613,
0.048244946,
0.020426992,
-0.0039500915,
-0.028661804,
-0.02639214,
0.058429345,
-0.023424115,
0.011610214,
-0.017720852,
-0.03503433,
0.022463871,
-0.0021332675,
-0.06221212,
-0.0118939215,
-0.03026221,
-0.013625269,
-0.018826587,
-0.02095076,
0.0074637085,
0.01520385,
-0.0035609019,
0.044083893,
-0.03954456,
-0.029694794,
-0.044898644,
0.06395802,
0.007900183,
0.031426143,
-0.025126364,
-0.030465897,
-0.032851957,
-0.035092525,
0.019292159,
-0.05394821,
0.015422088,
-0.01894298,
-0.05854574,
-0.00955151,
0.02839992,
0.03756588,
-0.053162556,
0.040853985,
-0.04027202,
0.017619008,
-0.070767015,
0.017153436,
-0.026173903,
0.010220771,
-0.023016738,
0.039166283,
-0.0038191492,
0.016789706,
-0.0013930801,
0.024122473,
0.0039864643,
0.066344075,
-0.026435787,
-0.003088055,
0.0010420821,
-0.006132462,
0.026159354,
0.0014112665,
-0.05106748,
-0.008933172,
-0.02890914,
0.03096057,
-0.019394003,
-0.035878178,
0.004324732,
0.004906697,
0.046237167,
0.0030535005,
0.028603608,
0.023395017,
0.026290296,
0.018841136,
0.022274733,
-0.0033790376,
0.043181844,
-0.029171025,
-0.058924016,
0.0053613577,
-0.033346627,
-0.018637449,
-0.013399757,
-0.013239717,
0.008751308,
0.0023624166,
0.022769403,
0.06512195,
0.014876495,
0.00795838,
0.0030862363,
0.008998643,
0.0067471634,
-0.0016349596,
-0.032910153,
-0.015873112,
-0.04466586,
-0.03232819,
-0.014861946,
-0.035936374,
-0.03093147,
-0.012781419,
0.03314294,
-0.012985107,
0.039078988,
-0.026857711,
-0.022725755,
-0.055868696,
0.019859575,
0.011697508,
0.03954456,
0.0014467301,
0.01123921,
-0.043851107,
0.03395769,
-0.017488066,
0.0059433235,
-0.006754438,
0.039602757,
-0.03346302,
-0.01123921,
0.027075948,
0.019699534,
0.005899676,
-0.055694107,
-0.021518176,
0.0038009626,
-0.00912231,
-0.0144909425,
-0.0016449621,
-0.010577224,
-0.021183547,
0.023380468,
0.039806444,
0.0321536,
-0.006532564,
0.04178513,
-0.0014894682,
-0.06139737,
0.015756719,
0.043443732,
-0.030524094,
-0.0060087945,
-0.049263388,
-0.0153493425,
-0.0044774977,
-0.041552342,
0.07513176,
-0.04577159,
-0.014971064,
0.02637759,
-0.0029007348,
0.03951546,
-0.0064052586,
0.020237854,
0.0046448126,
-0.03532531,
-0.042308897,
0.009275076,
-0.004892148,
-0.013639818,
0.033666708,
-0.014505492,
0.014767377,
-0.017400771,
0.055519518,
-0.019539494,
-0.08537435,
0.0026079332,
-0.04667364,
0.0030298582,
0.036547437,
-0.008904073,
-0.029403811,
0.0013712564,
0.010424458,
-0.040330216,
-0.015800366,
0.021227194,
-0.023569606,
-0.005619605,
-0.055432223,
-0.017691754,
-0.0693121,
-0.02909828,
-0.0406212,
-0.033521216,
0.034015886,
0.0030480446,
0.011813901,
-0.0043210946,
-0.021154448,
0.038089648,
-0.017837245,
0.00955151,
-0.009842493,
-0.028749099,
-0.015494834,
0.006128825,
-0.026828613,
0.016993394,
0.024151571,
-0.017124336,
0.020077812,
-0.0033990426,
0.02637759,
-0.034714248,
-0.0107372645,
0.023365919,
-0.0253737,
-0.054646567,
0.036285553,
0.029141927,
-0.047633883,
-0.00354999,
-0.011908471,
-0.044083893,
-0.021416333,
0.02281305,
0.028749099,
0.054675665,
-0.032560974,
0.016804256,
-0.019815927,
0.013203344,
0.010715441,
0.0033081106,
0.015858563,
0.0029989413,
-0.017298928,
-0.026566729,
0.045829788,
-0.0016122265,
-0.024937226,
0.03229909,
-0.0005460474,
-0.013334286,
0.002717052,
-0.029040081,
0.010940953,
0.051096577,
0.024442554,
-0.005590507,
-0.006408896,
-0.05324985,
-0.050340023,
0.018070031,
-0.07641208,
-0.014243607,
-0.009718825,
-0.041174065,
-0.0074236984,
-0.036867518,
0.0042592604,
0.015131105,
0.015087457,
-0.023555057,
0.009173232,
0.010126201,
0.012934185,
0.03293925,
-0.06279409,
-0.0037318543,
-0.028385371,
0.008067498,
-0.055606812,
-0.013901703,
-0.019510396,
0.054471977,
0.0149856135,
-0.02249297,
-0.06465638,
-0.004928521,
0.0024187944,
0.021765513,
0.0049648937,
-0.019903222,
-0.037769567,
0.0049248836,
-0.03229909,
0.0073982375,
-0.010526302,
0.0129196355,
0.01284689,
0.013312463,
0.006943577,
0.023380468,
0.02214379,
-0.049321584,
0.009478765,
0.02249297,
0.010977326,
-0.021576373,
0.019801378,
-0.0016413248,
0.0338122,
-0.0068635563,
0.041697834,
0.025068168,
0.04428758,
0.013938076,
-0.019990517,
0.018695645,
0.024457103,
0.021401783,
-0.0024606232,
-0.0064961906,
-0.009151408,
-0.01641143,
0.018011834,
-0.024238866,
0.010591773,
0.0048448634,
-0.007329129,
0.013181521,
-0.005121297,
0.00036577447,
-0.016920649,
-0.028676353,
-0.0075946506,
0.00050058134,
0.03564539,
-0.007747417,
0.024529848,
0.003102604,
0.018651998,
0.034947034,
0.018186424,
0.014563689,
-0.010599048,
0.029694794,
-0.036605634,
0.0071036173,
-0.018710194,
-0.008111145,
0.011348329,
-0.05039822,
-0.022798501,
0.0321536,
-0.0039500915,
0.004241074,
-0.0070126853,
-0.017822696,
-0.01927761,
-0.015145654,
-0.023234976,
-0.09282351,
-0.003422685,
0.02450075,
0.006307052,
-0.010839109,
0.010198947,
0.008700386,
0.012228551,
0.014483668,
0.04818675,
0.004888511,
0.06744981,
0.045887984,
0.013741662,
0.009958886,
0.023715097,
-0.06448179,
0.0025460995,
0.013748936,
0.023234976,
-0.013407032,
-0.026144804,
-0.058982212,
0.022041947,
0.013428856,
-0.009536961,
-0.04882691,
0.040010132,
0.0010093466,
-0.030727783,
0.0015294782,
0.10015628,
0.04513143,
-0.01975773,
-0.036081865,
-0.0073582274,
-0.03331753,
0.006317964,
0.0014285436,
0.021736415,
-0.014345451,
-0.051824033,
-0.0018595619,
-0.042949058,
-0.0029625685,
0.02722144,
-0.030204013,
-0.008293009,
0.04635356,
0.04955437,
0.015945857,
0.07629569,
0.009820669,
-0.036081865,
0.062095728,
0.065529324,
0.023438664,
0.020397894,
0.042861763,
0.02602841,
0.023249526,
0.028690903,
0.017313477,
-0.009558785,
-0.012504986,
-0.009078663,
0.007303668,
-0.03343392,
-0.022100143,
-0.022900345,
0.017662656,
-0.04699372,
-0.03468515,
-0.038642514,
-0.027308734,
-0.032269992,
0.011348329,
-0.04719741,
-0.00705997,
0.0052049547,
-0.03247368,
-0.01726983,
-0.0760629,
0.2523403,
0.056363367,
0.036780223,
-0.022260183,
0.02450075,
0.047110114,
0.008794955,
-0.022376576,
0.005488663,
-0.027992545,
-0.0020878015,
-0.030669587,
-0.00076974044,
0.03532531,
-0.03453966,
0.08066043,
-0.055403125,
-0.008511246,
-0.024253415,
-0.023205878,
0.02198375,
0.009573334,
0.00027734297,
0.029360164,
0.05054371,
-0.005859666,
-0.014687357,
-0.06273589,
-0.0060342555,
-0.023147682,
0.024631694,
-0.038147844,
0.014825573,
-0.041523244,
0.012199453,
0.041726932,
0.017880892,
-0.013072402,
-0.0018422848,
-0.03145524,
0.0011484727,
-0.04003923,
0.027599718,
-0.0013630725,
0.019364905,
0.04210521,
0.032764662,
0.03125155,
0.0540937,
-0.019466748,
0.049612567,
-0.010249869,
-0.015785817,
-0.0042192503,
-0.037216697,
0.0024297063,
-0.06477277,
-0.05292977,
-0.0049867174,
0.043269143,
0.034481462,
-0.0006610765,
-0.01082456,
0.04478225,
0.007871085,
0.015145654,
-0.019510396,
0.018622898,
-0.016207742,
-0.04364742,
0.026959555,
-0.001655874,
-0.052406,
-0.0027134146,
0.01910302,
0.08397763,
0.021154448,
0.03520892,
0.038758907,
-0.027483324,
-0.013014205,
0.022711206,
0.007558278,
0.0019823203,
-0.0038518847,
0.045829788,
-0.045422412,
-0.010766363,
0.0025824723,
0.021881906,
0.040824886,
0.048565026,
-0.011508369,
-0.0024678977,
0.016877001
] |
For more details about troubleshooting and getting help, take a look at Chapter 8 of the Hugging Face course.
Firewalled environments
Some GPU instances on cloud and intranet setups are firewalled to external connections, resulting in a connection error. When your script attempts to download model weights or datasets, the download will hang and then timeout with the following message:
ValueError: Connection error, and we cannot find the requested files in the cached path.
Please try again or make sure your Internet connection is on.
In this case, you should try to run 🤗 Transformers on offline mode to avoid the connection error.
CUDA out of memory
Training large models with millions of parameters can be challenging without the appropriate hardware. A common error you may encounter when the GPU runs out of memory is:
CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 11.17 GiB total capacity; 9.70 GiB already allocated; 179.81 MiB free; 9.85 GiB reserved in total by PyTorch)
Here are some potential solutions you can try to lessen memory use: |
[
0.016579177,
0.022105569,
-0.041278765,
0.0280408,
-0.02209147,
-0.011095078,
0.0035932122,
-0.020371523,
0.035667785,
0.0075212508,
0.027420491,
0.0032883442,
0.039981756,
-0.045113407,
-0.036006138,
0.0023614047,
-0.013851225,
-0.008324833,
-0.05712485,
0.012681096,
0.004405606,
-0.0021217398,
-0.0636099,
-0.03814902,
-0.0060021975,
0.042773146,
0.022176059,
-0.03344031,
0.089493714,
0.043619025,
-0.053177428,
-0.012004395,
0.014675954,
-0.001214185,
-0.01142638,
-0.037810672,
0.0064145625,
-0.018482398,
-0.0086067915,
-0.05819629,
-0.01770701,
-0.022669487,
0.014901522,
-0.06062114,
-0.0978397,
0.010989344,
-0.0064075133,
-0.028125389,
0.0047510057,
-0.030536136,
-0.038346395,
0.0031403159,
0.01594477,
0.018101754,
-0.007619936,
0.01997678,
-0.016889332,
0.019723017,
-0.053402994,
0.022472115,
0.032453455,
0.06580918,
0.002246859,
-0.04119418,
0.02906995,
0.018510595,
-0.005300825,
-0.0032689597,
0.016790645,
-0.0017040884,
-0.030592527,
0.035583198,
0.008747771,
-0.041814487,
-0.04085583,
0.03524485,
0.020611187,
-0.024163868,
-0.00923415,
0.064286605,
-0.009868558,
0.014351702,
-0.0065520173,
-0.018524691,
-0.018947631,
-0.010361985,
0.046889745,
0.010122321,
-0.020709872,
0.0075423974,
-0.0044655222,
0.0533466,
0.01907451,
0.03544222,
0.015380852,
0.042575777,
-0.013660903,
0.030874487,
0.027462786,
-0.008402372,
-0.0029623294,
0.04576191,
-0.020399718,
0.017213583,
0.0074296137,
-0.0081768045,
0.025094332,
0.0031967077,
-0.015155285,
-0.054784592,
0.0001174094,
-0.013054691,
0.0025200066,
-0.019328274,
0.006812829,
0.04110959,
-0.01621263,
0.009664137,
-0.049004436,
-0.048863456,
0.04150433,
0.004014388,
-0.014210722,
-0.045931086,
0.052303355,
-0.009064975,
0.04009454,
0.072970934,
0.017227681,
0.02906995,
0.006710619,
0.0074296137,
0.012293403,
0.0403765,
0.0039051292,
-0.0017657669,
0.025742836,
-0.00053528114,
0.015310362,
-0.04920181,
-0.020498404,
-0.001984285,
0.013350748,
0.075226605,
0.016043454,
0.006129079,
-0.014929717,
-0.022260645,
-0.053938717,
-0.008155658,
-0.0012150662,
0.025601858,
0.013421238,
0.023740929,
-0.0050118174,
-0.02619397,
-0.064286605,
0.027124435,
0.016043454,
0.0023455445,
-0.011066882,
0.007641083,
-0.010319691,
0.053402994,
-0.04734088,
0.029915826,
-0.051683046,
-0.01381598,
0.029464692,
-0.016367707,
-0.0100447815,
0.023219306,
-0.01738276,
0.010481818,
0.06710619,
0.031353816,
0.028985362,
0.040799435,
-0.013985155,
0.0060303933,
0.008289589,
-0.015155285,
-0.0099390475,
0.0014423954,
-0.00800763,
-0.013216818,
0.037951652,
-0.014816934,
-0.000032298598,
-0.006950284,
-0.008437617,
0.0560816,
-0.00033196242,
0.022119667,
-0.012096032,
-0.012645852,
-0.042603973,
0.0072674877,
0.017862089,
-0.049709335,
-0.051288303,
0.034934692,
-0.008205,
0.034850106,
0.011144421,
-0.061410625,
-0.0012115416,
0.0050576357,
-0.017185388,
0.00015959308,
0.0424066,
-0.0018080607,
0.006150226,
-0.020145955,
-0.0070560183,
0.026222168,
0.027829332,
0.06710619,
0.018778455,
0.03552681,
0.010305594,
0.01580379,
0.06868516,
0.0019490401,
0.02250031,
0.006791682,
0.0033253513,
0.031015467,
0.01908861,
-0.019751213,
0.008874653,
0.022683583,
0.040404692,
0.04364722,
-0.004965999,
0.01990629,
0.0437882,
0.0465232,
-0.005445329,
-0.0028759795,
0.034511756,
0.02551727,
0.010700336,
0.016099846,
-0.012906663,
-0.0048884605,
-0.005286727,
-0.03112825,
0.0010115271,
0.029887632,
-0.028604718,
0.0362599,
0.02250031,
-0.0064956252,
-0.055968817,
0.000025827865,
-0.002056537,
0.058872994,
-0.008663184,
-0.04508521,
0.017974872,
0.014986109,
0.0062348135,
-0.018693868,
0.03823361,
0.043816395,
-0.028703405,
0.031833146,
-0.009283493,
-0.066373095,
-0.039023094,
-0.025094332,
-0.051119126,
0.014577269,
-0.08300866,
0.050245054,
-0.0011154994,
-0.069587424,
0.050527014,
0.007204047,
-0.014831032,
0.00060356804,
0.02784343,
0.03673923,
0.041391548,
0.058365468,
-0.045931086,
0.02784343,
-0.020075465,
0.027519178,
-0.017904382,
-0.01703031,
-0.04249119,
-0.02468549,
0.0023102998,
0.021217398,
-0.01832732,
-0.020075465,
-0.034652736,
-0.009227101,
-0.018172244,
-0.01416138,
-0.029154537,
-0.0053466433,
0.006347597,
-0.008233196,
0.0066366047,
-0.023740929,
0.048609693,
0.0588166,
-0.014943816,
-0.008726625,
-0.025601858,
0.043365262,
-0.0554049,
0.057068456,
0.035611395,
0.0111585185,
-0.050724383,
-0.013378944,
0.0028372102,
-0.0033711698,
0.0011313596,
0.03933325,
0.0049519013,
0.034257993,
0.022951445,
-0.062425673,
0.03583696,
-0.009332836,
-0.04023552,
-0.034737322,
-0.012540117,
0.014690053,
0.037303146,
0.0072463406,
-0.02969026,
-0.026532322,
-0.028350955,
0.015127089,
-0.0050118174,
-0.041025,
0.010834266,
0.020174151,
0.0049413275,
-0.017298171,
0.008085168,
-0.02688477,
0.0052197617,
-0.02983124,
-0.0013719057,
0.046495,
-0.020399718,
0.015197579,
0.043703612,
0.06073392,
-0.019666625,
-0.021724924,
0.032594435,
0.0028125388,
0.068797946,
0.0114475265,
0.019652527,
-0.02763196,
-0.0314666,
-0.05622258,
-0.020470208,
0.010016586,
0.053064644,
-0.016776547,
0.024953352,
0.02134428,
-0.024995646,
0.029662063,
-0.01648049,
-0.0061995685,
0.019610234,
0.006957333,
0.045057014,
-0.045649126,
-0.035555,
-0.00708069,
0.014901522,
0.021583945,
-0.008000581,
-0.0082120495,
-0.05151387,
0.0049624746,
-0.052218765,
-0.031297427,
-0.022739977,
-0.014379898,
0.009191857,
-0.028068997,
-0.027420491,
-0.036344487,
0.009332836,
0.06524526,
0.020879047,
0.017876187,
0.030395158,
0.024925156,
-0.011045735,
0.03434258,
-0.01019281,
0.028365053,
-0.04604387,
-0.0033412115,
0.046889745,
-0.0006899179,
0.013491727,
-0.011609653,
-0.011828171,
0.013026495,
-0.0009489675,
-0.046974335,
-0.02954928,
-0.016128043,
-0.0085363025,
0.008486959,
-0.011687191,
-0.0076622297,
-0.033214744,
0.012497823,
0.028012605,
-0.027519178,
0.00044210255,
-0.04009454,
-0.004405606,
0.070038565,
-0.027928017,
-0.037528712,
0.007915993,
-0.020343326,
-0.029774848,
0.052218765,
0.053036448,
0.018905336,
-0.009967243,
-0.034229796,
0.015296264,
0.02983124,
-0.014760543,
0.0057237633,
0.009593648,
0.015620517,
-0.013111084,
0.0043668365,
0.0029147489,
-0.0068198782,
0.014006303,
-0.02750508,
-0.00834598,
-0.05207779,
-0.044634074,
-0.06558362,
0.0048743626,
-0.023360286,
0.017340465,
-0.012145375,
-0.0066401293,
0.0035227225,
-0.026546419,
-0.062200107,
-0.05842186,
-0.012328648,
0.0266733,
-0.0028107767,
0.011024589,
0.012420285,
-0.021316083,
0.052162375,
-0.005251482,
0.008240245,
0.02620807,
-0.025432682,
0.008197952,
0.033327527,
-0.011384086,
-0.0012088983,
-0.04206825,
0.047707427,
-0.014957913,
0.036344487,
-0.04906083,
-0.02572874,
-0.009368081,
0.00002924221,
-0.021908198,
0.034596343,
0.01477464,
0.034117013,
-0.004458473,
0.03516026,
0.036513664,
-0.009593648,
-0.033609487,
-0.011320645,
0.03002861,
0.00067009265,
0.015789691,
-0.04344985,
0.0054065594,
-0.018087655,
0.01518348,
-0.028266368,
-0.0031403159,
-0.03817722,
0.021654435,
0.034314383,
-0.008656135,
-0.041560724,
-0.019370569,
-0.015352656,
0.0171008,
-0.033694074,
0.017876187,
-0.040545672,
-0.060508355,
0.05808351,
0.006312352,
-0.07037691,
-0.04297052,
0.013019447,
0.015394949,
0.03084629,
0.030536136,
-0.01820044,
-0.021034125,
-0.045254383,
-0.0012274018,
-0.03434258,
-0.005935232,
-0.006689472,
0.018552888,
0.020991832,
0.014633661,
0.064117424,
-0.05486918,
-0.023755027,
-0.024333043,
0.015409048,
-0.052980054,
-0.026912965,
0.014097939,
0.007930091,
-0.020357424,
0.06095949,
0.00046875648,
-0.018764356,
0.0030451547,
-0.0062841563,
0.0024195588,
0.012237011,
-0.019314177,
-0.04979392,
-0.03482191,
0.019666625,
-0.0069925776,
0.007422565,
-0.024361238,
0.039981756,
-0.0055651614,
0.029944023,
-0.0012185907,
0.0048073973,
-0.030395158,
-0.014450388,
0.009727578,
-0.0431115,
0.031579383,
0.012800929,
0.036372684,
0.036429074,
0.038797528,
-0.024981549,
-0.025164822,
-0.05047062,
-0.06738815,
0.018595181,
-0.026631007,
0.014203673,
0.0026662727,
-0.01942696,
0.05419248,
0.009502011,
0.007634034,
0.049230002,
0.029323714,
0.0064427583,
-0.039699797,
0.005998673,
0.032453455,
-0.0040531573,
-0.007024298,
0.020145955,
-0.023501264,
0.007951237,
-0.022598997,
-0.019878095,
0.010643944,
-0.025164822,
0.02619397,
-0.0046452708,
0.024375336,
0.004835593,
-0.05909856,
-0.057435002,
0.025785131,
0.053515777,
0.0032619108,
0.039587013,
0.0026944687,
0.00032843792,
0.062030934,
0.004934279,
0.04801758,
-0.04330887,
0.071730316,
0.046100263,
-0.07060248,
-0.0431115,
0.01388647,
-0.047848407,
-0.04268856,
-0.034455363,
0.03583696,
-0.04480325,
-0.041363355,
0.031438403,
0.017326368,
-0.01676245,
0.026969358,
0.013245014,
0.004331592,
-0.011651946,
0.034568146,
0.018228635,
0.01333665,
-0.0071370816,
0.07060248,
-0.021696728,
-0.01832732,
0.0045324876,
-0.011327694,
-0.037810672,
0.0042716754,
0.075903304,
0.007119459,
0.05396691,
0.029182734,
0.04192727,
0.029521085,
0.0061854706,
0.026165776,
0.030085003,
-0.0024266078,
-0.080753,
-0.021048224,
-0.01409089,
-0.0053254967,
-0.00014086925,
-0.032594435,
0.022063274,
0.02906995,
0.015155285,
-0.016635569,
-0.0738732,
-0.022866858,
-0.03688021,
-0.020893145,
0.046410415,
-0.012363893,
-0.0012335697,
-0.007443712,
-0.0056004063,
-0.042773146,
0.023656342,
0.07770784,
-0.04187088,
-0.037387736,
0.0007260439,
0.0007678971,
-0.028590621,
-0.068797946,
-0.05238794,
-0.063158765,
0.024347141,
0.0053642658,
-0.003061015,
-0.022387527,
0.0035491562,
0.011546212,
-0.00051193143,
0.016424099,
-0.008219099,
-0.005018866,
0.0042928224,
0.005040013,
-0.040743046,
-0.003919227,
0.026771987,
0.020568892,
0.031212837,
0.0016476966,
0.01601526,
-0.015620517,
0.0205125,
0.045310777,
-0.043534435,
-0.047989383,
-0.014591367,
0.022796368,
-0.0294083,
0.020681677,
-0.011525066,
-0.011384086,
-0.05281088,
0.0015930671,
-0.03823361,
0.035865158,
-0.007436663,
0.0067952066,
-0.019920388,
0.0077820625,
0.0031297426,
-0.009389227,
0.046495,
-0.03995356,
0.0071793753,
-0.011362939,
0.040404692,
0.0212033,
-0.010185761,
0.023148816,
-0.000930464,
0.00862089,
0.03541402,
-0.027758842,
0.018031264,
0.058591034,
-0.0017684102,
0.012096032,
0.017467346,
-0.0008392679,
-0.008092217,
0.066542275,
-0.03645727,
-0.023712734,
0.005103454,
-0.05419248,
0.0082120495,
-0.013794834,
0.048525106,
0.0031385536,
0.019723017,
-0.006104408,
0.053854126,
-0.016424099,
-0.0011234295,
0.018454202,
-0.07032052,
-0.008317784,
0.042152837,
0.03611892,
-0.029887632,
-0.017566033,
0.00738732,
0.017157191,
-0.011045735,
-0.0044655222,
-0.019398764,
-0.00030927354,
0.018623378,
0.03296098,
0.01580379,
-0.0079230415,
-0.03279181,
0.018115852,
-0.04494423,
-0.021090517,
-0.018989924,
0.014591367,
-0.002405461,
0.025912013,
-0.009762823,
0.021499356,
0.061128665,
0.029633868,
0.002079446,
-0.010213957,
0.03002861,
-0.03406062,
0.014478584,
0.018270928,
0.04125057,
0.012878467,
0.0151129905,
0.0013287307,
0.021189202,
0.000034749217,
-0.03358129,
-0.0015824937,
0.02592611,
-0.013597462,
0.0042082346,
-0.0012899614,
-0.014549073,
0.028139487,
0.004588879,
0.008381225,
0.05109093,
-0.0048250197,
-0.0024442303,
-0.007204047,
-0.027857527,
0.039502427,
-0.05622258,
-0.031100053,
-0.014986109,
-0.013181573,
0.046100263,
0.006432185,
0.023416677,
-0.017044408,
0.003926276,
-0.005751959,
-0.0031649873,
0.048948046,
0.022895053,
0.019934487,
-0.015028403,
0.0055510635,
0.018595181,
-0.041532528,
-0.012934859,
-0.043280672,
-0.000412585,
0.013393043,
-0.015465439,
-0.03248165,
-0.005568686,
-0.02887258,
0.0000032663438,
-0.050498817,
0.03496289,
-0.038938507,
-0.011616702,
0.011144421,
-0.035583198,
-0.066824235,
0.011736535,
-0.0287316,
0.0431115,
-0.020470208,
0.06513248,
-0.017946677,
0.014126135,
0.01340714,
-0.0246291,
-0.0059528546,
0.006594311,
-0.06349712,
-0.015521831,
-0.028097192,
-0.054756396,
0.008916946,
0.0013930526,
-0.09141104,
0.009191857,
-0.019257786,
-0.054277066,
-0.017227681,
0.013435336,
0.038741138,
-0.052472528,
0.021217398,
0.045931086,
0.040489282,
-0.023487167,
-0.009586599,
0.029492889,
-0.038600158,
-0.031551186,
-0.020540698,
0.03194593,
-0.016297217,
-0.012067836,
0.008317784,
-0.032735415,
-0.008240245,
0.0021992784,
-0.032058712,
0.0036337439,
0.015352656,
0.019596135,
0.025601858,
0.065414436,
-0.021287888,
0.022415724,
-0.013526972,
0.05362856,
-0.026461832,
0.042632166,
0.012053738,
-0.0075282995,
0.0078102583,
0.002653937,
-0.042914126,
-0.039840776,
-0.012483725,
-0.00064806466,
0.0021340756,
-0.032115106,
-0.033073764,
0.0059035122,
0.041758094,
0.010594601,
-0.0069820043,
-0.017002115,
-0.020315131,
-0.06564,
-0.045874692,
-0.049230002,
-0.003307729,
-0.0232475,
-0.021217398,
0.06874155,
-0.05382593,
0.23504084,
0.06473774,
0.027519178,
-0.002828399,
0.0046840403,
0.07443712,
0.010834266,
-0.031635776,
0.03885392,
-0.021062322,
-0.017946677,
0.0049131317,
0.025700543,
0.031551186,
-0.038600158,
-0.0017261164,
-0.036626447,
-0.013773686,
0.008945142,
-0.040827632,
-0.06005722,
0.02455861,
-0.020315131,
0.026828378,
0.059211344,
0.049765725,
-0.00006024666,
-0.03549861,
-0.03194593,
-0.05185222,
0.010954099,
-0.037528712,
-0.0016009972,
0.027787037,
-0.02196459,
0.024798274,
-0.006485052,
-0.04711531,
-0.028844383,
0.051485673,
0.025883816,
-0.026320852,
-0.025940208,
-0.030902682,
-0.0011005204,
0.061805364,
-0.010051831,
0.03267902,
0.04951196,
-0.012286354,
0.0059740017,
-0.023162914,
0.046495,
-0.05295186,
-0.022458017,
0.003416988,
-0.037782475,
-0.046269435,
-0.0129207615,
-0.032735415,
0.03236887,
0.016198533,
-0.034709126,
0.043196086,
-0.06062114,
-0.00031500083,
-0.026377244,
0.023078326,
-0.015521831,
-0.039868973,
-0.0027949165,
-0.00052250485,
-0.01976531,
0.016973918,
0.018524691,
-0.00786665,
0.017269975,
0.025193017,
-0.013865323,
-0.024995646,
0.016832938,
0.013111084,
-0.012956006,
-0.033412118,
0.06513248,
0.037810672,
-0.023092424,
-0.020286934,
-0.0029517561,
-0.0015366754,
0.029182734,
0.048807066,
0.01908861,
0.0021111665,
0.010911805
] | Check the Migration guide if you use an older version of 🤗 Transformers since some important changes have been introduced between versions. |
[
0.030863268,
0.027194766,
-0.007071171,
0.048036113,
-0.025892183,
-0.0137303,
0.026756141,
0.014487926,
0.0029341371,
0.0577922,
0.038678773,
-0.0021781733,
0.040194023,
-0.048142444,
-0.03697744,
0.012221695,
0.026397265,
-0.04649428,
-0.02476239,
0.01912672,
-0.01154382,
0.02715489,
-0.074327044,
-0.019459011,
-0.02706185,
-0.00030051646,
-0.0031816945,
0.021080596,
0.075337216,
0.008699401,
-0.051784366,
-0.021319846,
-0.012195111,
-0.024975058,
0.004004117,
-0.04333086,
0.043862525,
0.024071222,
-0.01674751,
-0.035196356,
0.04277261,
-0.032670937,
0.04808928,
-0.019020386,
-0.047398113,
-0.010540298,
-0.009344047,
-0.050189365,
-0.00076344056,
-0.03490394,
-0.011763132,
0.02388514,
-0.011264695,
-0.025147848,
0.0033594707,
0.026224473,
0.020921096,
-0.018621637,
-0.0011015475,
-0.023898432,
0.0033827312,
0.030039186,
0.021971138,
-0.052874282,
0.033787437,
0.0273011,
-0.026370684,
-0.036605272,
-0.025613056,
-0.024682641,
-0.0625772,
-0.013929675,
0.0047982945,
-0.054974366,
-0.036312856,
0.00077133253,
0.043463778,
0.01642851,
-0.03450519,
0.021306554,
0.038439523,
0.010487132,
0.015245551,
-0.0075363796,
-0.051943865,
-0.042878944,
0.049737446,
-0.038067356,
-0.031926602,
-0.0012643705,
-0.018063387,
0.028204935,
-0.0047717113,
0.0050441907,
0.000878912,
0.010639986,
-0.0037648669,
0.008486735,
0.047105696,
-0.015989885,
0.021851514,
0.023393348,
0.0027131632,
0.03578119,
-0.059653036,
0.0257061,
0.010573527,
0.0024290537,
-0.019658387,
-0.006366712,
0.015976593,
0.027168183,
0.033441853,
0.019140013,
-0.022888264,
0.006572733,
-0.0076692966,
0.0019804596,
-0.04992353,
-0.012467591,
0.02236989,
-0.0071044,
0.034850772,
-0.010733027,
0.00384794,
-0.041283943,
0.018063387,
0.027181474,
-0.020867929,
-0.011656798,
0.0050109616,
-0.001779423,
-0.010447256,
0.046653777,
0.033468436,
0.0006438155,
-0.022981307,
0.011723258,
0.00432644,
-0.029826518,
0.015670884,
-0.0061673373,
-0.015032885,
0.067362204,
-0.028949268,
0.031129103,
-0.0038313253,
-0.051624864,
0.00633016,
-0.034717854,
-0.04808928,
0.025094682,
-0.0097228605,
-0.0023709026,
-0.00038109723,
-0.023433223,
-0.02484214,
0.06332154,
0.013358133,
0.03886486,
0.05167803,
0.0151392175,
-0.043144777,
0.04364986,
0.0018608344,
0.08102605,
-0.025121266,
-0.010301048,
0.02072172,
-0.029348018,
0.012195111,
0.006708973,
-0.02190468,
-0.003841294,
0.022263555,
0.046201862,
0.051332448,
0.015697468,
0.03381402,
0.022436347,
-0.010101673,
-0.023672473,
0.01842226,
0.0016689359,
0.016827261,
0.0255466,
-0.0005341592,
0.0011165007,
-0.025068099,
0.0073835254,
0.0067754313,
0.025772557,
-0.022502806,
0.046653777,
-0.021412889,
-0.03437227,
-0.00054745085,
-0.008267421,
0.0050541596,
-0.054230034,
-0.012274861,
0.06013154,
-0.046520863,
0.014075884,
-0.006582702,
-0.009942173,
0.0035422314,
0.0632152,
0.023911724,
0.017013343,
0.004043992,
0.0544427,
0.0071708583,
0.030624019,
-0.0010766257,
0.011091903,
-0.0074765673,
-0.0076294215,
0.035063438,
0.0073303585,
0.039077524,
-0.025692808,
0.0056954827,
-0.006506275,
0.043197945,
-0.0036186585,
0.033122852,
-0.009530131,
0.015258843,
0.03556852,
0.0015410036,
0.020110304,
0.023034472,
0.08123872,
-0.0030437936,
0.020801472,
0.0261846,
0.022489514,
0.017996928,
0.035515357,
-0.0277796,
0.012454299,
0.014660717,
-0.01856847,
-0.0041902005,
0.0033794083,
-0.008646235,
0.0013100607,
-0.040911775,
0.010380798,
-0.036685023,
0.02611814,
-0.026450433,
-0.02166543,
-0.06055687,
-0.009769381,
0.015790509,
0.024576306,
-0.038439523,
-0.0312886,
-0.0066259,
0.047796864,
-0.026609933,
-0.016946886,
0.04524486,
0.058058035,
-0.008639589,
0.050694447,
0.0285771,
0.014806925,
-0.03984844,
-0.04245361,
-0.0553997,
-0.014474634,
0.0019505533,
0.0019937512,
0.030756935,
-0.04245361,
-0.0063135456,
0.008493381,
0.018475428,
-0.0013956259,
0.0028278038,
0.03381402,
0.046520863,
0.04093836,
-0.0142619675,
0.028869517,
-0.013437883,
0.024549723,
-0.02190468,
-0.03602044,
0.009423797,
-0.012666966,
0.034957103,
0.00032086932,
0.040991526,
-0.018209595,
-0.028789768,
-0.039237022,
0.014713884,
0.005276795,
-0.02046918,
0.0053698365,
-0.0274606,
0.009895652,
0.014860093,
-0.026796017,
0.029321434,
0.013258446,
-0.023792097,
0.032910187,
-0.013118883,
0.06661788,
-0.043384027,
0.015936717,
0.030092351,
-0.0065195663,
-0.017518427,
-0.036924273,
-0.0022263555,
-0.00833388,
-0.010487132,
-0.049631115,
-0.019007094,
0.035435606,
0.0040572835,
-0.07039271,
0.040220607,
-0.03944969,
-0.019392554,
0.00023779637,
-0.030730352,
0.026490308,
0.00087143545,
-0.015750635,
-0.02990627,
-0.004123742,
-0.054097116,
-0.0046454403,
0.04731836,
-0.03641919,
0.017079802,
0.028364435,
0.023552848,
0.0060377433,
0.011716612,
-0.025493432,
-0.006456431,
-0.0053000553,
0.0043497006,
0.025506724,
0.03570144,
0.0026267671,
0.05545287,
-0.01202232,
-0.04723861,
0.004662055,
0.024855431,
0.0022197098,
0.03317602,
0.01226157,
0.050986864,
0.0073037753,
-0.017106386,
-0.0035056793,
0.051013447,
-0.017677927,
0.038386356,
-0.030703768,
0.007237317,
0.011457424,
-0.012534049,
-0.0015302041,
0.014461342,
0.033362105,
0.059865702,
0.037376188,
0.05545287,
-0.04713228,
-0.028364435,
0.006984775,
0.0097228605,
0.03596727,
0.04792978,
0.03325577,
-0.0069449,
0.06566087,
0.0081544425,
0.023207264,
0.011577048,
0.013145466,
-0.0063168686,
-0.047185447,
-0.019950803,
-0.035435606,
0.034239355,
0.034478605,
0.01896722,
-0.030251851,
0.019578638,
-0.07570938,
0.029746769,
0.021319846,
0.03309627,
-0.015232259,
-0.055187035,
0.05311353,
-0.0013075685,
0.017744387,
-0.027168183,
0.0075696087,
-0.041523192,
0.029640434,
-0.045271445,
-0.0008157765,
-0.031448103,
0.014780343,
-0.020017263,
0.013451175,
0.03469127,
-0.012666966,
-0.030225268,
0.012221695,
0.016322177,
-0.04006111,
-0.0043098256,
-0.07315738,
0.02318068,
0.018834304,
-0.0065594413,
-0.02945435,
-0.019671679,
-0.028949268,
-0.069063544,
0.033202603,
0.029932851,
-0.007277192,
-0.010885881,
-0.004459357,
0.016574718,
-0.0119957365,
0.012301445,
-0.006054358,
-0.04428786,
0.010068444,
-0.0121685285,
-0.02340664,
0.031182269,
-0.023898432,
0.02016347,
-0.025732683,
0.01762476,
-0.027274517,
-0.018036803,
2.401328e-7,
-0.011796362,
0.027832767,
0.034425437,
0.03721669,
-0.03657869,
-0.011371028,
0.0036751481,
-0.024190849,
-0.015737344,
-0.009576651,
0.015338593,
-0.027673267,
0.029667018,
-0.0034624813,
-0.004535784,
0.03405327,
0.040752277,
-0.033388685,
0.02388514,
-0.002535387,
0.024695931,
0.011397611,
-0.008001588,
0.011490653,
-0.034478605,
0.0029540746,
0.008367109,
-0.018276053,
-0.012573924,
-0.04181561,
0.004981055,
0.03330894,
-0.047531027,
0.05816437,
0.028603684,
-0.0047949716,
0.024868723,
0.000122948,
-0.00782215,
0.024855431,
-0.02286168,
0.011922632,
0.048674114,
0.015431634,
-0.018289344,
-0.013783467,
-0.017983636,
0.03285702,
-0.03261777,
0.012653674,
-0.01769122,
-0.024868723,
0.018369095,
-0.0013898107,
-0.06284304,
0.024695931,
-0.016760802,
-0.005751972,
-0.017478552,
-0.015192384,
0.008267421,
-0.022290139,
-0.031581018,
0.087565556,
-0.017013343,
-0.03588752,
-0.014062592,
0.041390274,
-0.014248676,
0.01729247,
0.0060277744,
-0.028364435,
-0.042400442,
-0.031581018,
0.05072103,
-0.007636067,
-0.028816352,
-0.017837428,
-0.081929885,
-0.044633444,
0.028630268,
0.031049352,
-0.0031351738,
0.035860937,
-0.05032228,
-0.0037648669,
-0.06757487,
0.015923426,
-0.005110649,
0.011503944,
-0.028869517,
0.047743697,
0.03174052,
-0.031873435,
0.008745922,
0.016707635,
-0.0007144275,
0.06183287,
-0.048115864,
-0.05577187,
-0.041868776,
-0.0042666276,
0.015684176,
-0.044128362,
-0.017704511,
-0.0047185444,
-0.051226113,
0.034345686,
-0.013384717,
0.015817093,
0.0040672524,
-0.043384027,
0.04000794,
-0.009802611,
0.008779151,
0.026038392,
-0.00018566808,
-0.0055924724,
0.051545113,
-0.03333552,
0.03501027,
-0.06980788,
-0.05928087,
-0.0019488918,
-0.04508536,
0.01571076,
0.0054263263,
-0.009656401,
0.03729644,
-0.03142152,
0.03897119,
0.07730438,
-0.004489263,
-0.00026251058,
0.009237714,
0.006473046,
0.009264298,
-0.02388514,
-0.018608345,
-0.018435553,
0.005845014,
-0.030756935,
-0.040034525,
-0.056144033,
-0.01650826,
0.016494969,
-0.0064664,
0.022343306,
0.0550807,
-0.008121213,
-0.030544268,
-0.07028638,
-0.0062603788,
-0.012992612,
0.051571697,
0.007237317,
-0.005854983,
-0.016774094,
0.01975143,
-0.055984534,
-0.023831973,
0.0016024775,
0.05223628,
-0.028523935,
-0.049418446,
0.019445721,
0.029667018,
-0.0052535343,
-0.047265194,
0.0031002832,
-0.018714678,
0.0012087116,
-0.029055601,
-0.0029241685,
-0.019392554,
-0.029215101,
0.012088778,
0.015218968,
-0.03229877,
0.035807773,
-0.027075142,
0.016401926,
-0.048275363,
-0.010985569,
0.057366867,
-0.015179093,
-0.019831179,
-0.044819526,
-0.029667018,
-0.03689769,
-0.009530131,
0.037801523,
-0.009264298,
-0.019073553,
-0.01381005,
0.047025945,
0.05404395,
-0.017877303,
0.030703768,
0.0078952545,
-0.05975937,
-0.022569263,
-0.0023094285,
0.021731889,
-0.006506275,
0.04731836,
-0.011138423,
-0.0018043448,
0.009138026,
0.018382385,
-0.005104003,
-0.056463033,
-0.0053299614,
-0.06815971,
-0.009476964,
0.0074366922,
-0.023712348,
0.02492189,
0.04976403,
-0.007908546,
-0.08006905,
0.0023493036,
0.03633944,
-0.018063387,
-0.04333086,
-0.0155778425,
-0.0037150232,
-0.050907113,
-0.04593603,
-0.07438021,
-0.008752568,
-0.011317861,
0.024642766,
0.024935182,
0.051438782,
-0.0013698732,
0.009344047,
-0.008958588,
-0.0074965046,
0.001945569,
0.017917177,
0.013796759,
0.016295593,
-0.038359772,
0.0057453266,
0.010726382,
-0.014022717,
0.0015842015,
0.00053831283,
-0.0055891494,
-0.04572336,
0.029959435,
0.030251851,
0.00239084,
-0.038226858,
-0.001653152,
0.033388685,
-0.04200169,
0.017797552,
-0.04460686,
-0.028311267,
-0.027434018,
0.02056222,
0.016441802,
0.0636937,
-0.0074898587,
0.028497351,
0.024350349,
0.03373427,
-0.009124734,
0.045191694,
-0.0018774491,
0.022236971,
-0.0067355563,
-0.051651448,
0.034319103,
0.014713884,
-0.04165611,
0.03913069,
-0.023433223,
-0.007396817,
0.0005420511,
0.014886675,
0.011869466,
0.036286272,
0.013590737,
-0.011098549,
-0.024150973,
-0.0041902005,
-0.027101725,
-0.004459357,
-0.048780445,
-0.051438782,
0.01127134,
-0.011005507,
-0.014860093,
0.0155778425,
-0.01842226,
0.032112688,
0.009151318,
-0.0041137733,
-0.0062736706,
0.017425386,
0.049817197,
0.06555454,
-0.03277727,
-0.018369095,
0.0076626507,
0.008200963,
-0.022409763,
-0.017731095,
0.0060344203,
0.06528871,
0.032989938,
-0.0025004963,
-0.041151024,
0.0060776183,
0.03248485,
0.005359868,
-0.042187776,
0.018741261,
-0.03897119,
0.031235436,
0.011198236,
-0.0012170189,
-0.00085897447,
0.00231109,
0.002885955,
-0.005894858,
0.0013482743,
0.03705719,
0.05021595,
-0.060184702,
0.023433223,
-0.0032066165,
0.0523692,
-0.030278435,
0.013876509,
-0.0010699799,
0.06353421,
-0.029082185,
0.032032937,
0.00011599063,
0.035515357,
0.0043497006,
-0.056303535,
-0.011656798,
0.03493052,
0.0117365485,
-0.044154942,
-0.019831179,
-0.05072103,
-0.012753362,
-0.03237852,
0.019193178,
-0.0060344203,
-0.049896948,
0.00096115423,
-0.014767051,
-0.039396524,
0.017106386,
-0.028869517,
-0.0555592,
0.021492638,
0.0035854292,
0.037562273,
0.0047318363,
0.019724846,
-0.021785054,
0.012507466,
0.04755761,
0.023831973,
0.009935527,
-0.0000073597457,
0.049498197,
-0.014767051,
0.016229134,
0.026131433,
-0.0054030656,
-0.001315045,
-0.011012153,
0.03556852,
0.032032937,
-0.009536777,
-0.026596641,
-0.015777217,
-0.02349968,
-0.008745922,
-0.06725588,
-0.0017063187,
-0.07214721,
-0.022914847,
0.045430943,
0.0015559567,
-0.05404395,
0.030916436,
-0.045032196,
0.027101725,
0.0547617,
0.031075936,
0.0041337106,
0.10734357,
0.04617528,
-0.0037216689,
0.0058649513,
0.036791354,
-0.040513024,
-0.024895307,
-0.039556023,
-0.0276201,
0.012700195,
-0.07337005,
-0.044075195,
0.024642766,
0.0053399303,
0.006825275,
-0.037243273,
0.0138898,
-0.00015233505,
-0.037642024,
-0.02579914,
0.078846216,
0.027673267,
0.0033827312,
-0.010181423,
-0.0120821325,
0.0042666276,
-0.0105137145,
-0.0017628084,
0.031022768,
-0.0276201,
-0.043277692,
-0.015617718,
-0.047025945,
-0.00019947896,
0.015883552,
-0.03285702,
-0.010274464,
0.0496577,
0.019857762,
0.0044294507,
0.024935182,
0.017531719,
0.013358133,
0.05912137,
0.033282354,
0.008526609,
0.01301255,
0.027181474,
0.044899277,
0.011324507,
0.017319052,
-0.00042138764,
-0.030411351,
-0.007270546,
0.0033245801,
0.019272929,
-0.040459856,
-0.030810103,
-0.0072506084,
-0.019977387,
-0.024975058,
-0.0068053375,
-0.04383594,
-0.027194766,
-0.06342787,
0.0011680059,
-0.0049744095,
-0.021479346,
-0.06699004,
-0.021014137,
-0.00293746,
-0.07283838,
0.20235246,
0.07134971,
0.03713694,
-0.0022845066,
0.03317602,
0.05021595,
0.030251851,
-0.07586888,
0.0015717405,
-0.022077471,
-0.0076161297,
-0.034106437,
0.002983981,
0.018462136,
0.019312803,
0.041310526,
-0.019392554,
-0.02190468,
0.030969603,
-0.027354266,
-0.031155685,
0.027434018,
-0.0024107776,
0.025852308,
0.015019593,
0.0073901713,
0.006825275,
-0.037269857,
-0.029746769,
-0.025573183,
0.025333932,
-0.006426525,
0.017186135,
-0.028789768,
-0.003223231,
0.057313703,
0.011344444,
-0.07204088,
-0.02238318,
-0.05016278,
0.014075884,
-0.025333932,
-0.029401185,
-0.025214307,
-0.0047318363,
0.0276201,
0.020548929,
0.04992353,
0.025254183,
-0.09325439,
0.07772972,
-0.029667018,
0.010865944,
0.007768984,
-0.058058035,
-0.035621688,
-0.022821806,
-0.0151392175,
0.022236971,
0.04460686,
0.03952944,
-0.0042167837,
0.048620947,
0.038758524,
0.002817835,
-0.0140493,
-0.01547151,
0.00531667,
-0.038306605,
0.0061872746,
0.022941431,
-0.048993114,
-0.056994703,
0.006326837,
0.045032196,
0.061035372,
0.028869517,
0.03110252,
-0.019352678,
0.0043164715,
0.016627885,
-0.014275258,
0.028470768,
-0.011085257,
0.00087143545,
0.031129103,
-0.0546022,
-0.0059845764,
-0.0316076,
0.00093623233,
0.043782778,
0.05032228,
-0.013285029,
-0.04088519,
0.01801022
] | Reduce the per_device_train_batch_size value in [TrainingArguments].
Try using gradient_accumulation_steps in [TrainingArguments] to effectively increase overall batch size.
Refer to the Performance guide for more details about memory-saving techniques. |
[
0.022010287,
-0.019537859,
-0.037399016,
-0.012973138,
0.009768929,
-0.027750865,
0.034557145,
0.0025683404,
0.017690644,
0.05030111,
0.01709385,
-0.010443874,
0.022905476,
-0.032425743,
-0.019623116,
0.023999596,
0.035580218,
-0.014891401,
-0.06956899,
-0.006213039,
0.005261013,
-0.00952737,
-0.06428311,
-0.017250154,
-0.035580218,
0.005779654,
0.028418705,
-0.009363963,
0.053796608,
0.07366128,
-0.010763585,
-0.0047530285,
0.008944787,
-0.01668178,
-0.016852291,
-0.039388325,
0.014273294,
-0.022749173,
-0.033534072,
-0.046834026,
0.0037370597,
-0.017633807,
0.013442047,
-0.066272415,
-0.003625161,
0.011211179,
0.0056659793,
-0.015189798,
0.015701335,
-0.07195616,
0.0059501664,
0.019168416,
-0.02654307,
0.006028318,
-0.028233983,
0.010536235,
0.005854253,
-0.014507748,
-0.05746262,
-0.014649842,
0.04237229,
0.053825025,
0.0053107454,
-0.03660329,
0.025960486,
0.047743425,
-0.029100753,
0.013449152,
0.004298329,
0.015601869,
-0.05129576,
0.041803915,
0.0009173913,
-0.029356522,
-0.042826988,
0.019282091,
0.0017433099,
0.011793762,
-0.0009511385,
0.056467965,
-0.035267614,
0.03177211,
-0.0016314113,
0.03702957,
-0.03771162,
-0.03381826,
0.032056298,
-0.0068346984,
-0.03180053,
-0.011104609,
-0.019452604,
0.031942625,
-0.014607214,
0.04825496,
0.06115705,
0.06831857,
-0.04214494,
0.005435077,
0.019282091,
-0.020703027,
0.033960354,
0.055359636,
-0.04191759,
0.020901958,
-0.031942625,
-0.024653226,
-0.01425198,
0.010486502,
0.003847182,
-0.032965697,
0.02171189,
0.015204007,
0.0046819816,
0.02590365,
0.0150192855,
0.041121867,
0.034528725,
0.02040463,
-0.061782263,
-0.052318834,
0.05422289,
0.015189798,
-0.036091756,
-0.024397457,
0.041889172,
-0.010138373,
0.018628461,
0.06098654,
0.018230598,
0.0016944653,
-0.008632181,
0.017960621,
0.026159417,
0.029697547,
-0.0192963,
-0.023843292,
0.014223562,
0.03378984,
0.024028014,
-0.006298295,
-0.00064252916,
-0.011268016,
-0.017449085,
0.074457005,
0.012987348,
-0.031004807,
0.03310779,
-0.034727655,
-0.008596658,
-0.026628327,
-0.013008662,
0.012262671,
0.0049235406,
0.016141824,
-0.009889709,
0.0003037249,
-0.020575142,
0.012902092,
0.06559037,
0.034841333,
0.020134652,
0.030692201,
-0.017832737,
0.040184047,
-0.006074498,
0.015218216,
-0.0067636515,
-0.03924623,
0.035011843,
-0.041121867,
-0.026585698,
0.0082556335,
-0.030180665,
0.028020842,
0.049448546,
0.021953449,
0.020347793,
-0.0012148996,
-0.00019704376,
0.017875366,
0.010280467,
-0.01733541,
-0.008752961,
0.027509306,
-0.008369309,
-0.010280467,
0.031004807,
-0.012894987,
-0.013562826,
-0.0027566142,
0.016056567,
0.03421612,
-0.031487923,
0.010372827,
-0.045270998,
0.017221736,
-0.016724408,
0.03180053,
0.0023001388,
-0.050329525,
-0.04061033,
0.022152381,
-0.021498749,
0.030635362,
-0.008198796,
-0.064112596,
-0.008170377,
0.02259287,
-0.015942894,
0.014166724,
0.04174708,
0.01557345,
-0.024099061,
0.013719129,
0.01020942,
-0.037399016,
-0.0150192855,
0.024212737,
0.007136647,
0.0044084517,
-0.0046180394,
0.03219839,
0.016610732,
0.003928886,
0.007651736,
-0.008788484,
0.008625077,
0.028674472,
-0.009456323,
-0.016866501,
-0.0066783954,
0.01470668,
0.032937277,
0.024667436,
0.03245416,
-0.0037761354,
0.06144124,
0.04492997,
0.0058933287,
0.009491847,
-0.014287503,
0.04828338,
0.019211045,
0.042798568,
-0.043707967,
-0.022223426,
-0.012916301,
-0.0042485963,
-0.038706277,
0.025718927,
-0.013022872,
0.05703634,
0.0237012,
-0.031743694,
-0.061498076,
-0.016198661,
0.0031757902,
0.0341877,
-0.046890862,
-0.03643278,
0.029001288,
0.022436567,
0.0039892755,
-0.014678261,
0.028745519,
0.026855676,
-0.00027508417,
0.037796877,
-0.020731445,
-0.07366128,
-0.06115705,
-0.047743425,
-0.0837215,
0.000104571955,
-0.049420126,
-0.0039608567,
0.029441778,
-0.04566886,
0.051949393,
0.005172204,
-0.018884229,
-0.00504432,
0.012539754,
0.024667436,
0.026713582,
0.036063336,
-0.014209352,
0.026386768,
-0.0038294203,
0.011815077,
-0.030521689,
-0.008568239,
0.0047423714,
-0.016354965,
0.02105826,
0.02519318,
-0.00045780756,
-0.020006768,
-0.0527167,
-0.011488262,
-0.06615874,
-0.018017458,
-0.00044182205,
0.01128933,
-0.009285811,
0.016298126,
-0.0017584073,
-0.021754518,
0.047089793,
0.03774004,
-0.033050954,
0.051238924,
0.011900333,
0.0012317732,
-0.045754116,
0.049420126,
0.043963734,
0.03822316,
0.0009520266,
0.0004475946,
-0.00079083926,
-0.004976826,
-0.011999798,
-0.019409975,
0.009690778,
0.059395093,
-0.004195311,
-0.06252115,
0.0029200218,
-0.06865959,
-0.038706277,
0.024255365,
-0.020930376,
0.062975846,
0.028802358,
0.02739563,
0.030095408,
0.019139998,
-0.0350971,
-0.0074457005,
0.058485694,
0.035381287,
0.016482849,
0.02785033,
-0.020333583,
-0.041604985,
-0.016369173,
-0.046834026,
0.014720889,
-0.0078009344,
-0.024425877,
0.009882605,
-0.024511132,
0.013733339,
0.0192963,
0.093781725,
-0.035608638,
-0.0071153333,
-0.0006629551,
0.03197104,
0.020234117,
0.0068027275,
0.017605387,
0.006408418,
-0.022436567,
-0.029981732,
0.0021065364,
0.013058395,
0.060475003,
-0.010252047,
0.04257122,
-0.007324921,
-0.017662225,
0.0390473,
-0.013989108,
-0.026173627,
0.062634826,
0.010735165,
0.045896206,
-0.025107926,
-0.037171666,
0.018713716,
0.012092159,
-0.010379932,
0.007481224,
0.012781313,
-0.051466275,
-0.004522126,
-0.045043647,
0.020234117,
0.015246635,
-0.023630153,
0.027949795,
-0.03953042,
0.010891468,
-0.0416334,
0.033050954,
0.050045338,
0.052489348,
0.021967659,
0.0155024035,
-0.0037548214,
-0.0017601835,
0.013541513,
-0.0013729787,
0.0027406288,
-0.031630017,
0.024113271,
0.03458556,
-0.031090062,
-0.009520266,
0.005463496,
-0.018273227,
0.027836122,
-0.020504095,
-0.0075167473,
-0.036518034,
0.009363963,
-0.01666757,
0.012909196,
-0.05331349,
-0.036546454,
-0.028773937,
0.010600177,
0.025136344,
-0.039359905,
0.00943501,
-0.01950944,
-0.0007966118,
0.030805876,
0.0063906563,
-0.045100484,
-0.010884364,
-0.024681645,
-0.04851073,
0.02698356,
0.07866298,
-0.008426146,
0.015374519,
-0.0697395,
-0.0028738414,
0.04546993,
-0.016411802,
-0.007950133,
-0.026585698,
-0.02564788,
-0.0033161077,
0.040297724,
0.01754855,
0.004039008,
-0.010642805,
-0.039189395,
-0.014564586,
-0.012816836,
0.019466812,
-0.05419447,
0.033903513,
0.004348062,
0.043764804,
0.01996414,
-0.033505652,
-0.02785033,
0.027225118,
-0.05422289,
-0.06399892,
0.014529062,
0.032425743,
0.004433318,
0.03941674,
0.029001288,
-0.05311456,
0.030550107,
0.007154409,
0.0011021129,
0.016838083,
-0.026372558,
-0.027949795,
0.011935856,
-0.004539888,
0.020433048,
-0.04367955,
0.055359636,
0.010223629,
-0.007836457,
-0.028745519,
-0.03842209,
0.0025825498,
0.028702892,
-0.035409708,
0.033704583,
0.0067636515,
0.0012788418,
-0.007843562,
-0.015857637,
0.0075167473,
-0.007218351,
0.011054876,
0.011005144,
0.049675897,
-0.0013587693,
0.042258613,
-0.00065185403,
-0.024397457,
0.0138896415,
-0.00059945707,
-0.013953584,
-0.027466677,
-0.03219839,
0.008092226,
-0.022877058,
-0.044105828,
-0.0106712235,
-0.019438393,
-0.036489617,
0.042287033,
-0.01469247,
0.04566886,
-0.0147777265,
-0.026017323,
0.029924896,
-0.029868059,
-0.045896206,
-0.050130595,
0.0036091756,
0.0024120375,
0.038336832,
0.020859329,
-0.03398877,
-0.04865282,
-0.023871712,
-0.010294676,
-0.05462075,
-0.031743694,
-0.04055349,
-0.0037690308,
-0.018102715,
0.04777184,
0.03421612,
-0.047686584,
0.009740511,
-0.035438124,
0.016809663,
-0.05092632,
-0.0037228502,
-0.007871981,
0.03862102,
-0.039615676,
0.041349214,
0.018926857,
0.023360174,
-0.025804184,
0.019651534,
0.007264531,
0.04825496,
-0.018727927,
-0.045782533,
0.024113271,
0.005303641,
-0.037882134,
0.015630288,
-0.047118213,
0.018671088,
-0.015886055,
0.042997498,
-0.0118790185,
-0.0057547875,
-0.014166724,
-0.023544896,
0.03290886,
-0.014003317,
0.020674607,
-0.0010790227,
0.0271967,
0.009619731,
0.010465188,
-0.027964005,
0.02412748,
-0.01753434,
-0.044134248,
0.0017060103,
-0.031317413,
0.0038827055,
-0.008951892,
-0.023743827,
0.04646458,
-0.028106099,
0.025178973,
0.06809121,
0.012632114,
0.038024228,
-0.047544494,
0.021669263,
0.034756076,
-0.01820218,
0.006525645,
0.01557345,
-0.0065611685,
-0.0071828277,
0.021584006,
-0.018017458,
-0.026457814,
0.024383249,
0.07167197,
-0.01669599,
0.019225253,
0.008951892,
-0.072979234,
-0.03208472,
0.015232425,
0.031459507,
0.008745857,
0.016710198,
0.015147169,
-0.028219774,
0.02590365,
0.0049555115,
-0.027779283,
-0.016852291,
0.051835716,
0.009818662,
-0.0027051053,
0.016724408,
0.023743827,
-0.018230598,
-0.036034916,
-0.03421612,
0.025846811,
-0.07047839,
-0.008944787,
-0.00004748477,
-0.036319103,
-0.018955275,
0.0474024,
0.018543204,
-0.020745654,
-0.010784898,
0.017122269,
0.0014093901,
-0.020390421,
0.02721091,
0.060702354,
-0.042230196,
-0.038478926,
-0.033136208,
0.008824008,
-0.049647477,
-0.028603425,
0.09258814,
-0.020916166,
0.018173762,
0.03356249,
-0.010173896,
0.04518574,
-0.008291157,
-0.00081792584,
0.017861156,
-0.06433994,
-0.06462413,
-0.008475878,
0.006976792,
0.004213073,
0.03921781,
-0.040184047,
0.021200353,
-0.0014262637,
0.02760877,
-0.01906895,
-0.051665206,
0.02152717,
-0.040979773,
-0.012909196,
0.010536235,
0.00032015448,
-0.00044914873,
-0.022806011,
0.018955275,
-0.05396712,
0.004706848,
0.004507917,
-0.013676502,
-0.016099196,
-0.04365113,
0.031487923,
-0.06559037,
-0.04492997,
-0.025818393,
0.0046713245,
-0.021598216,
0.024425877,
-0.024440086,
-0.014635633,
-0.0008787596,
0.06439678,
0.003015935,
0.000809045,
-0.03290886,
-0.0059537184,
0.0049732733,
-0.013548617,
-0.050983157,
0.020120442,
0.002710434,
-0.053853445,
0.029953314,
-0.021186145,
0.012347927,
-0.013740444,
0.0011793763,
-0.024013806,
-0.04305434,
-0.029924896,
0.047004536,
0.009349754,
-0.05791732,
0.022848638,
0.009349754,
-0.004394242,
-0.06337371,
0.00084456836,
0.017221736,
0.0033090028,
-0.028006634,
0.052347254,
-0.023388594,
0.0029164695,
-0.00691285,
0.02786454,
0.04492997,
0.012575277,
0.0017388695,
0.0011065534,
0.018145343,
0.017846946,
-0.03356249,
0.023999596,
-0.017932203,
-0.018699508,
-0.042002846,
-0.013250221,
-0.03992828,
0.018315855,
0.049846407,
-0.02610258,
-0.04061033,
-0.033931933,
-0.024752691,
0.04433318,
-0.07837879,
-0.0632032,
0.009740511,
-0.043821644,
-0.005033663,
-0.041491307,
0.0054812576,
0.029214429,
-0.044418436,
-0.03157318,
0.010720956,
0.0025718927,
0.03307937,
0.0014120544,
-0.055672243,
0.032113135,
-0.037200086,
0.03248258,
0.0013170294,
-0.04981799,
0.0076872595,
0.048368637,
0.008546925,
0.011864809,
-0.021669263,
0.014394074,
-0.022862848,
0.012049531,
0.008049598,
-0.011630354,
-0.06354422,
0.04194601,
-0.027978215,
0.0048524938,
-0.057150014,
0.015630288,
-0.0075735846,
0.0031686856,
0.014593005,
0.035409708,
0.048965428,
0.00510471,
0.021584006,
0.015857637,
0.02695514,
0.025363693,
-0.010173896,
-0.0098755,
0.05069897,
0.016767036,
0.061554912,
0.008390622,
0.02017728,
0.021740308,
-0.018131133,
-0.026898304,
0.025761556,
0.0020727892,
0.020589352,
-0.0071188854,
-0.009108195,
0.01950944,
0.031544764,
0.021896612,
0.045299415,
-0.033960354,
0.0026642536,
0.009733406,
-0.016823873,
0.045583602,
0.0016092091,
-0.007765411,
-0.011367482,
-0.020205699,
0.053569257,
0.02148454,
0.005435077,
-0.023914339,
0.009797349,
0.037882134,
0.033903513,
0.012248462,
0.017505921,
0.016156033,
-0.031459507,
0.01666757,
0.02435483,
0.018997904,
-0.010337303,
-0.029725965,
-0.036688548,
0.041349214,
-0.005655322,
-0.008028284,
0.00066739554,
-0.026145209,
-0.019367347,
-0.061782263,
0.014386969,
-0.06991001,
-0.014323027,
0.009591313,
-0.015402938,
-0.026940932,
0.020958794,
-0.017278573,
0.019566279,
0.004518574,
0.043736387,
-0.032852024,
0.047231887,
0.030749038,
0.010891468,
0.012454498,
0.052517764,
-0.018969486,
-0.043707967,
0.015871847,
-0.013854118,
-0.020020977,
-0.047516074,
-0.052347254,
0.022266055,
0.03580757,
-0.03751269,
-0.03810948,
0.00388981,
0.045953047,
-0.09236079,
0.013122337,
0.051864136,
0.033477236,
-0.023431221,
-0.00037699187,
-0.008426146,
-0.011275121,
-0.038990464,
-0.021200353,
0.034244537,
-0.01197138,
-0.035608638,
-0.0112324925,
-0.023758037,
0.0010275138,
0.00024733154,
-0.020731445,
-0.005065634,
-0.004149131,
-0.009413696,
0.025932068,
0.017321201,
-0.005264565,
0.037626363,
0.019665744,
0.053796608,
0.009733406,
0.05419447,
0.037626363,
-0.015417147,
0.008831113,
0.014578795,
0.007594899,
-0.025079507,
-0.030606944,
-0.00405677,
-0.011360377,
-0.0311469,
-0.04123554,
-0.031260576,
0.041718658,
-0.018557414,
-0.0067174714,
-0.044105828,
-0.015829219,
-0.061554912,
-0.0385926,
-0.03637594,
0.008262739,
-0.044873133,
-0.01663915,
0.024951622,
-0.060872864,
0.23939916,
0.045810953,
0.036574874,
0.038081065,
0.015374519,
0.065874554,
0.019353138,
-0.027495097,
0.0341877,
-0.051722042,
-0.007310712,
0.011537994,
0.016312337,
0.029868059,
-0.028489752,
0.034045607,
-0.050954737,
-0.0086606005,
-0.0070265247,
-0.02303336,
-0.035153937,
0.042173356,
-0.024155898,
0.041292377,
0.040752422,
-0.017889574,
0.014116991,
-0.041491307,
-0.013946479,
-0.04313959,
0.057803646,
-0.015616078,
0.04473104,
-0.010692538,
0.00510471,
0.03177211,
0.009619731,
-0.006493674,
-0.00026242898,
-0.0026855676,
0.030010153,
-0.041803915,
-0.0063018478,
-0.0094634285,
0.011559308,
0.032766767,
0.010855945,
-0.009847081,
0.008824008,
-0.025704717,
0.030834295,
-0.03290886,
-0.0012690728,
-0.04035456,
-0.032994118,
-0.015900265,
-0.028376076,
-0.0232465,
-0.011502471,
-0.021456122,
0.007022972,
0.0046286965,
-0.048198123,
0.042599637,
-0.073774956,
-0.030976389,
-0.021498749,
0.03864944,
-0.007165066,
0.037569527,
-0.0054563913,
-0.0021704785,
-0.0064226273,
-0.010273362,
0.021100888,
0.03512552,
-0.0035345764,
0.03225523,
-0.0019413527,
-0.022223426,
0.00082547456,
-0.0112324925,
0.0062663243,
-0.011381691,
0.045413088,
0.072297186,
-0.02630151,
0.00038609473,
0.001503527,
0.04498681,
0.03376142,
0.07917451,
0.009569999,
-0.010578862,
-0.04183233
] | Asking for help on the forums. There are specific categories you can post your question to, like Beginners or 🤗 Transformers. Make sure you write a good descriptive forum post with some reproducible code to maximize the likelihood that your problem is solved!
Create an Issue on the 🤗 Transformers repository if it is a bug related to the library. Try to include as much information describing the bug as possible to help us better figure out what's wrong and how we can fix it. |
[
0.04515444,
0.015037722,
-0.038605534,
0.019935643,
-0.009204241,
-0.027406352,
0.02388425,
-0.013544956,
0.0055651953,
0.06438842,
0.01728031,
-0.0075876517,
0.03315728,
-0.04300816,
0.010972171,
0.046750393,
0.020898718,
-0.005169647,
-0.055307996,
-0.029304983,
0.013758209,
-0.003515222,
-0.074569486,
-0.013476165,
-0.019289007,
0.008241166,
0.009348703,
-0.0032469372,
0.05943546,
0.012072828,
-0.028396942,
0.0073744,
0.0019605446,
-0.03018551,
-0.018284658,
-0.019564172,
-0.004722505,
-0.03747736,
-0.026869781,
-0.041109525,
0.023058757,
-0.046805426,
0.05222616,
-0.08276938,
-0.06174684,
-0.005389778,
-0.017665539,
-0.019137667,
-0.006287501,
-0.032304272,
0.018945053,
0.026993604,
-0.039981354,
0.014102164,
-0.04531954,
-0.050410077,
0.0045023737,
0.031396233,
-0.038715597,
-0.015987039,
0.060095854,
0.025370136,
0.027736548,
-0.014487393,
0.009733932,
0.042045083,
-0.012960232,
0.0031299924,
-0.0019330282,
-0.0022460276,
-0.052501325,
-0.031671394,
-0.03238682,
-0.042898092,
0.006851588,
0.04752085,
0.018449757,
-0.0138613945,
-0.02165542,
-0.025205038,
-0.0020568522,
0.01858734,
0.037532393,
0.005905711,
0.022412121,
-0.03662435,
0.05030001,
-0.039210893,
-0.007154268,
-0.014680008,
-0.053106684,
0.023815459,
-0.029827796,
0.03417539,
0.0040036384,
0.023526536,
-0.029002303,
0.030735837,
-0.023512779,
-0.052473806,
0.030900937,
0.10467245,
-0.003962364,
0.026154354,
-0.020912476,
-0.025150005,
0.0068550273,
0.025356378,
-0.05805964,
-0.021201398,
-0.0210363,
-0.01758299,
-0.013249154,
0.012753859,
-0.0020620115,
-0.007594531,
0.0043166378,
0.014707524,
-0.029525114,
-0.032964665,
0.013111573,
0.014955172,
-0.013400495,
-0.03877063,
0.026608374,
0.008901561,
-0.00027473422,
0.051208053,
0.027929163,
-0.001167728,
0.00261062,
-0.006229029,
0.021215158,
0.026291937,
-0.032304272,
-0.04738327,
-0.0018951932,
0.016028313,
-0.012107223,
-0.008929078,
0.01805077,
-0.007278092,
0.04405378,
0.056848917,
0.001060242,
-0.0115568945,
0.048126213,
-0.07847682,
-0.035358597,
0.026003014,
-0.020541005,
0.03761494,
-0.015464226,
0.041990053,
-0.02442082,
0.0046984283,
-0.050547656,
0.05437244,
0.018325934,
0.020554762,
-0.00076358055,
0.016124621,
-0.049034253,
0.07809159,
0.0037869469,
0.028754655,
-0.015477984,
0.014501152,
0.0062737428,
-0.017624265,
-0.009355581,
0.023361437,
-0.022219507,
0.022054408,
0.051868446,
0.009066659,
0.027750306,
0.011316126,
-0.0021686375,
0.007904091,
0.009032263,
-0.011969641,
0.040229,
0.01773433,
0.036431737,
-0.033514995,
0.007670201,
0.0144048445,
-0.016028313,
0.02526007,
-0.0073744,
0.06835078,
-0.058499902,
-0.0030508826,
-0.045567185,
-0.020224566,
-0.055225447,
-0.0012072828,
0.0034223543,
-0.023127548,
-0.015244095,
0.025700333,
-0.02902982,
0.026278177,
0.01466625,
0.033982776,
0.0013526039,
0.031368714,
0.022921175,
-0.016674949,
0.04339339,
-0.03263447,
-0.032827087,
-0.023980558,
0.016330993,
-0.015629325,
-0.007033884,
0.0024472412,
-0.017789364,
-0.011969641,
0.046557777,
-0.009396857,
-0.0009089016,
-0.0030216465,
0.01957793,
-0.009011626,
0.021600386,
-0.00990591,
0.035193495,
-0.012148498,
0.013338583,
0.03794514,
0.031974077,
-0.0012734941,
0.016399784,
0.014102164,
0.031368714,
0.01743165,
0.017335342,
0.03461565,
0.0019020723,
0.0055720746,
0.010414964,
0.005114614,
-0.0060845674,
-0.01635851,
-0.044714175,
-0.009555075,
-0.046200063,
0.0021669178,
-0.03692703,
0.029249951,
-0.012774496,
-0.042045083,
-0.05467512,
-0.016220927,
-0.013648143,
-0.00322458,
-0.007855937,
-0.020623554,
0.027516417,
0.022852384,
-0.014012735,
-0.019371558,
0.051483214,
0.06829575,
0.0011083956,
0.0076082894,
0.038688082,
-0.02319634,
0.01320788,
0.009768328,
-0.06488371,
-0.005520481,
-0.007972882,
0.014391086,
0.028672107,
-0.039871287,
0.016647432,
-0.0012115822,
0.022480913,
-0.009300549,
-0.0009837119,
0.009087296,
0.025934223,
0.03984377,
-0.048456408,
-0.0019399073,
-0.01820211,
-0.009376219,
0.0010275661,
-0.069616534,
0.010882743,
-0.0003319168,
0.013187243,
0.0012176015,
0.01704642,
-0.021916825,
-0.026195629,
-0.009589471,
-0.0042512864,
-0.003807584,
-0.025150005,
0.062132068,
-0.0013397055,
0.040229,
-0.02149032,
-0.027929163,
0.048896674,
0.059930757,
0.008316837,
0.02012826,
-0.0037491117,
0.048786607,
-0.04267796,
0.027021121,
0.093005486,
-0.0139852185,
-0.028589556,
-0.023251371,
-0.026319452,
0.0019141107,
0.02710367,
-0.012017795,
0.005207482,
0.034257937,
-0.036074024,
-0.036431737,
-0.01620717,
-0.04267796,
-0.003018207,
-0.029800279,
-0.011550016,
0.03238682,
-0.009857756,
0.04298064,
-0.02433827,
-0.025466444,
-0.036211602,
-0.00019981648,
-0.0025985816,
-0.0330197,
0.02611308,
0.027585208,
0.0070373234,
-0.022838626,
0.05888513,
-0.048401378,
0.00009920958,
0.006187754,
0.027007364,
0.013641263,
0.007800904,
-0.026058046,
0.00045402086,
0.049034253,
0.010036613,
0.03709213,
-0.024585918,
0.019261492,
0.04154979,
-0.007257455,
0.026966088,
0.009121692,
-0.05360198,
0.013524319,
0.01044248,
-0.020320874,
0.046475228,
-0.014012735,
0.05219864,
-0.011006567,
-0.034505587,
0.009266153,
-0.021311464,
0.008179255,
0.049254384,
0.030625772,
0.010311777,
-0.028231844,
-0.036734417,
0.0050939764,
0.008282442,
0.03714716,
0.026250662,
0.03623912,
-0.02066483,
-0.005396657,
0.002173797,
0.055995908,
-0.029304983,
-0.0047397027,
-0.0044782967,
-0.025906706,
0.004244407,
-0.039128345,
0.035358597,
0.066699795,
0.01743165,
-0.042953126,
0.04460411,
-0.034835782,
0.0008177535,
0.0365418,
-0.01895881,
-0.034285456,
-0.04691549,
0.06059115,
0.022756077,
0.018037012,
-0.00057225546,
-0.0021084454,
-0.004467978,
0.016881322,
-0.00019745178,
-0.009610108,
-0.028782172,
-0.013675659,
-0.029552631,
-0.01074516,
-0.037009582,
-0.030598255,
-0.034973364,
0.006156798,
0.02695233,
-0.006796555,
0.023526536,
-0.06119651,
0.0011556895,
0.025480201,
0.0038454193,
-0.035661276,
-0.048401378,
-0.01298087,
-0.04254038,
0.038605534,
-0.016028313,
-0.03833037,
-0.027282527,
-0.06334279,
0.0068068737,
0.011391796,
-0.017775605,
-0.013586231,
-0.032689504,
-0.010270502,
-0.0201145,
0.017459167,
0.006425083,
0.03923841,
-0.004805054,
-0.01789943,
0.0029580148,
-0.060701214,
-0.025934223,
0.017060177,
0.018862503,
-0.027819097,
0.0031729867,
0.02495739,
-0.0032091022,
-0.03018551,
0.013586231,
-0.051785897,
-0.010002217,
0.0015624166,
0.042210184,
-0.0028049548,
0.017954461,
0.019935643,
-0.03156133,
0.028314393,
0.03778004,
-0.03709213,
0.03571631,
-0.037202194,
-0.0037972655,
-0.0075738938,
0.001397318,
0.019784303,
-0.04853896,
0.06389312,
0.024200689,
-0.011398676,
0.004381989,
-0.049722165,
-0.045099407,
0.0009458768,
-0.008303079,
0.033652578,
0.017940704,
0.010373689,
-0.011838938,
-0.008653913,
-0.009637625,
0.0047809775,
-0.009396857,
0.037890106,
0.06488371,
0.011866455,
0.0034498707,
-0.018449757,
-0.012526848,
0.020252082,
-0.0293325,
0.048566476,
-0.0023371757,
-0.06664476,
0.034257937,
-0.0087089455,
-0.024241963,
-0.02349902,
-0.012850166,
0.0068550273,
0.04446653,
-0.058775067,
0.04086188,
-0.029772762,
-0.019701755,
0.009334944,
-0.015092755,
-0.027709031,
-0.009802723,
0.0045642857,
0.025081214,
0.037972655,
-0.013655022,
-0.06818568,
-0.041990053,
-0.030240541,
0.04160482,
-0.02188931,
0.00020379346,
-0.03147878,
-0.040229,
-0.039953835,
0.039678674,
0.039513573,
-0.031066034,
0.031121068,
-0.020939993,
0.0026914496,
-0.047493335,
-0.01029114,
-0.033294864,
-0.012650672,
-0.016220927,
0.059765656,
0.013235397,
0.011013445,
0.0068068737,
0.004983911,
0.016716223,
0.045979932,
-0.025769124,
0.005183405,
-0.002718966,
0.008158618,
-0.038743116,
-0.010194832,
-0.01212786,
0.021710454,
0.0032882118,
0.030130476,
-0.033074733,
-0.022549704,
0.015519259,
-0.01297399,
0.036294155,
-0.052556355,
0.027323801,
-0.034835782,
0.023141306,
-0.024379546,
0.076275505,
-0.038578015,
0.036486767,
-0.0497772,
-0.051840927,
0.036514286,
-0.04383365,
0.011770147,
-0.01889002,
-0.0053691408,
0.03800017,
-0.0075601353,
-0.02234333,
0.070552096,
-0.022013133,
0.006318457,
0.012808892,
0.014886381,
-0.0033535634,
-0.0031901845,
-0.0330197,
0.05200603,
-0.043668553,
0.010868984,
-0.019220216,
-0.02387049,
-0.010875864,
-0.010380568,
0.029882828,
0.020059468,
0.055005316,
-0.006751841,
-0.011942125,
-0.06097638,
0.038110238,
0.0068171923,
0.025714092,
-0.009864636,
0.02572785,
-0.035413627,
-0.0105663035,
-0.015106513,
-0.011632565,
0.002648455,
0.039045796,
-0.011797664,
-0.010573183,
0.005128372,
0.03178146,
-0.024806049,
-0.026594616,
-0.055995908,
0.022370847,
-0.03877063,
-0.0121760145,
0.004179056,
-0.007477586,
-0.032909635,
0.04146724,
0.026911056,
0.0024386423,
-0.013125331,
0.048263796,
0.013159726,
-0.018628614,
-0.022274539,
0.03516598,
-0.042843062,
0.0049391966,
-0.023361437,
-0.003485986,
-0.03593644,
-0.02641576,
0.025810398,
-0.012182893,
0.0050389436,
0.007456949,
-0.003255536,
0.06059115,
-0.032139175,
0.053712044,
-0.023086274,
-0.0658743,
-0.0457598,
-0.000982852,
0.01820211,
0.00990591,
0.01865613,
-0.01704642,
0.04754837,
-0.0033054096,
0.05789454,
0.01558805,
-0.09273032,
0.027475143,
-0.052171126,
0.009087296,
0.02356781,
0.014968931,
0.0025762245,
0.038192786,
-0.011845818,
-0.05453754,
-0.009465647,
0.011618807,
-0.029304983,
-0.010456238,
-0.054152306,
0.009720175,
-0.08144859,
0.0015297408,
-0.034588136,
-0.052638903,
-0.023595328,
0.017417891,
0.032001592,
-0.012313596,
-0.009603229,
0.014652492,
-0.0072230594,
-0.005307229,
0.024627192,
0.066149466,
-0.016757498,
-0.040036388,
-0.03808272,
0.052473806,
0.0030990364,
-0.00859888,
0.0010559425,
-0.012987749,
-0.022453396,
-0.023375196,
0.023168823,
0.031038517,
-0.0006406166,
-0.022274539,
0.019522898,
0.05104295,
-0.05646369,
0.019784303,
-0.033817675,
-0.018174592,
-0.02150408,
0.050052363,
-0.017624265,
0.038715597,
-0.017638024,
0.035523694,
0.008234288,
0.026305694,
0.013806362,
-0.015684357,
0.043448422,
0.011605049,
-0.009706416,
0.0021789563,
-0.005537679,
0.0028032348,
-0.021875551,
0.055858325,
0.034120355,
0.015230336,
-0.0038110237,
0.02281111,
0.03816527,
0.06950647,
0.05074027,
-0.024751017,
-0.024654709,
-0.02080241,
-0.0048772846,
-0.011611928,
-0.042182665,
-0.044218883,
0.004079309,
-0.04108201,
0.0007760489,
-0.008578243,
0.011371159,
0.021765485,
-0.003577134,
-0.031533815,
0.036872,
-0.009658262,
-0.019564172,
0.019825578,
-0.039871287,
-0.059600558,
0.00545169,
0.012760738,
-0.0040586716,
-0.011873334,
0.019399073,
0.03802769,
0.013565593,
-0.008688308,
-0.022315813,
-0.0156706,
0.0036837603,
0.033597544,
-0.023622844,
-0.02587919,
-0.038302854,
-0.0060088974,
0.009149209,
-0.028204327,
0.00514557,
0.0076839593,
0.018848745,
0.017142728,
0.04586987,
0.014941414,
0.016234687,
-0.025370136,
0.02847949,
0.03040564,
0.0075257397,
-0.029304983,
0.0549778,
-0.0016845206,
0.063948154,
0.012141619,
0.01873868,
-0.003417195,
0.027530175,
-0.011949004,
-0.021201398,
-0.032001592,
0.05437244,
0.028286876,
-0.032249242,
-0.0059882603,
-0.00729185,
-0.035853893,
0.0015520978,
0.035523694,
0.029992893,
0.006665852,
0.006043293,
-0.0009183604,
-0.05200603,
0.03178146,
-0.023003723,
-0.04075181,
-0.0060260952,
0.02202689,
0.04815373,
-0.0025831037,
-0.011467467,
-0.013854516,
0.03992632,
0.033955257,
0.010435601,
0.052336223,
0.009231757,
0.050134912,
-0.0100710085,
0.0422377,
-0.009052901,
0.0045574065,
0.017803121,
-0.024792291,
0.005090537,
-0.0024438018,
-0.044549078,
-0.0011711675,
0.0008508592,
-0.036046505,
-0.0003254676,
-0.050492626,
-0.012691947,
-0.076880865,
-0.00828932,
0.037890106,
0.00071456697,
-0.039458543,
0.02149032,
-0.011763268,
0.014762557,
-0.011075358,
0.0583348,
0.0078903325,
0.05673885,
0.046777908,
-0.002111885,
0.005905711,
0.016083345,
-0.069616534,
-0.0014308536,
0.04658529,
-0.03178146,
0.013517439,
-0.049639616,
-0.087942466,
0.044411495,
-0.007353762,
-0.026677165,
-0.058224738,
0.02626442,
0.004591802,
-0.008825891,
-0.0029924102,
0.089043126,
0.00230278,
-0.0053622616,
-0.035221014,
-0.0002702198,
-0.018532306,
-0.037064612,
-0.012581881,
0.045292024,
-0.024200689,
-0.015244095,
0.015065238,
-0.065213904,
0.031203616,
0.015849456,
-0.030955968,
-0.004199693,
0.020953752,
0.026663408,
0.03940351,
0.029607665,
-0.035881408,
-0.021283949,
0.076880865,
0.02318258,
0.037339777,
0.026911056,
0.04815373,
0.0294976,
-0.004921999,
0.0440813,
0.030157993,
-0.009644504,
-0.031148583,
-0.02971773,
0.014170955,
0.0036149693,
-0.0511255,
0.0037559909,
-0.0037835073,
-0.01957793,
-0.019921886,
-0.007855937,
-0.058499902,
-0.047025558,
0.014170955,
-0.04215515,
-0.015367919,
-0.00706484,
-0.012114102,
0.024943631,
-0.060150888,
0.21947093,
0.055555645,
0.0477685,
0.0048016147,
0.06196697,
0.0806231,
0.019935643,
0.009954064,
0.00921112,
-0.050272495,
0.030350607,
-0.038578015,
-0.023388954,
0.0024592797,
-0.0032520965,
0.010050371,
-0.04892419,
0.014597459,
-0.039348476,
-0.023815459,
-0.013111573,
0.021435289,
-0.0201145,
0.06328776,
0.051400665,
0.008076068,
-0.02742011,
-0.049006738,
0.0012580162,
-0.044961825,
-0.020981267,
0.00029924104,
-0.020334631,
-0.018917536,
-0.00921112,
-0.013882033,
0.014831348,
-0.045704767,
-0.008103585,
-0.020059468,
-0.05888513,
-0.042402796,
0.01650985,
-0.02847949,
0.022329573,
0.014115922,
-0.0078353,
0.040806845,
0.04215515,
-0.033102248,
0.058720034,
-0.022824867,
0.0029425367,
-0.05098792,
-0.038908213,
0.011226698,
-0.049502034,
-0.03379016,
0.019880611,
-0.0075051025,
-0.009431251,
0.027241252,
-0.017156485,
0.05728918,
-0.02641576,
0.014996447,
-0.019302767,
0.032992184,
-0.0065695443,
-0.011040962,
0.023760425,
-0.013778846,
-0.031423748,
-0.032029107,
0.013579352,
0.00798664,
0.020527247,
0.04531954,
-0.0077045965,
-0.028286876,
-0.0047500213,
0.0003263275,
0.018339692,
-0.043420907,
0.02425572,
0.060095854,
-0.041879985,
0.0116807185,
0.03601899,
0.0328546,
0.03494585,
0.04399875,
0.032772053,
0.008819012,
-0.0040655504
] | Refer to the Performance guide for more details about memory-saving techniques.
Unable to load a saved TensorFlow model
TensorFlow's model.save method will save the entire model - architecture, weights, training configuration - in a single file. However, when you load the model file again, you may run into an error because 🤗 Transformers may not load all the TensorFlow-related objects in the model file. To avoid issues with saving and loading TensorFlow models, we recommend you: |